mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
Remove additional exports of breakpoint symbols.
Restore typedef entries in `Breakpoint` component. Generate type definitions for `constants.js` and `breakpointObserver.js`. Validate size passed to `smallerThan`/`largerThan`. Document `breakpointObserver`/`breakpoints`. Fix `Breakpoint` component docs/example.
This commit is contained in:
parent
3c1e868165
commit
213d4debe7
13 changed files with 97 additions and 14 deletions
4
types/Breakpoint/Breakpoint.svelte.d.ts
vendored
4
types/Breakpoint/Breakpoint.svelte.d.ts
vendored
|
@ -1,6 +1,10 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export type BreakpointSize = "sm" | "md" | "lg" | "xlg" | "max";
|
||||
|
||||
export type BreakpointValue = 320 | 672 | 1056 | 1312 | 1584;
|
||||
|
||||
export interface BreakpointProps {
|
||||
/**
|
||||
* Determine the current Carbon grid breakpoint size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue