mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
breaking(breakpoint): add breakpointObserver store (#1092)
* breaking: re-name event "on:match" to "on:change" in `Breakpoint.svelte` * feat: add `breakpointObserver` read-only store * refactor: export breakpoint constants from `breakpoints.js`
This commit is contained in:
parent
bbd2cbe62c
commit
5de0d9a357
14 changed files with 180 additions and 101 deletions
9
types/Breakpoint/Breakpoint.svelte.d.ts
vendored
9
types/Breakpoint/Breakpoint.svelte.d.ts
vendored
|
@ -22,15 +22,10 @@ export interface BreakpointProps {
|
|||
export default class Breakpoint extends SvelteComponentTyped<
|
||||
BreakpointProps,
|
||||
{
|
||||
match: CustomEvent<{
|
||||
change: CustomEvent<{
|
||||
size: BreakpointSize;
|
||||
breakpointValue: BreakpointValue;
|
||||
}>;
|
||||
},
|
||||
{ default: { size: BreakpointSize; sizes: Record<BreakpointSize, boolean> } }
|
||||
> {
|
||||
/**
|
||||
* Reference the Carbon grid breakpoints
|
||||
*/
|
||||
breakpoints: Record<BreakpointSize, BreakpointValue>;
|
||||
}
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue