@sveltia/ui 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/package/components/composite/calendar.svelte +5 -6
  2. package/package/components/composite/calendar.svelte.d.ts +8 -1
  3. package/package/components/composite/checkbox-group.svelte.d.ts +11 -1
  4. package/package/components/composite/combobox.svelte +21 -17
  5. package/package/components/composite/combobox.svelte.d.ts +16 -1
  6. package/package/components/composite/disclosure.svelte.d.ts +10 -1
  7. package/package/components/composite/grid.svelte.d.ts +10 -1
  8. package/package/components/composite/listbox.svelte +1 -1
  9. package/package/components/composite/listbox.svelte.d.ts +20 -7
  10. package/package/components/composite/menu-item-group.svelte.d.ts +11 -1
  11. package/package/components/composite/menu.svelte.d.ts +14 -5
  12. package/package/components/composite/radio-button-group.svelte.d.ts +10 -1
  13. package/package/components/composite/select-button-group.svelte.d.ts +14 -1
  14. package/package/components/composite/select.svelte.d.ts +14 -2
  15. package/package/components/composite/tab-list.svelte.d.ts +22 -9
  16. package/package/components/core/button.svelte +25 -14
  17. package/package/components/core/button.svelte.d.ts +50 -19
  18. package/package/components/core/checkbox.svelte +11 -1
  19. package/package/components/core/checkbox.svelte.d.ts +16 -1
  20. package/package/components/core/dialog.svelte +50 -36
  21. package/package/components/core/dialog.svelte.d.ts +29 -1
  22. package/package/components/core/drawer.svelte +338 -0
  23. package/package/components/core/drawer.svelte.d.ts +59 -0
  24. package/package/components/core/grid-cell.svelte.d.ts +9 -1
  25. package/package/components/core/group.svelte.d.ts +11 -1
  26. package/package/components/core/icon.svelte.d.ts +8 -1
  27. package/package/components/core/menu-button.svelte.d.ts +17 -1
  28. package/package/components/core/menu-item-checkbox.svelte.d.ts +12 -2
  29. package/package/components/core/menu-item-radio.svelte.d.ts +12 -2
  30. package/package/components/core/menu-item.svelte.d.ts +17 -2
  31. package/package/components/core/number-input.svelte +1 -1
  32. package/package/components/core/number-input.svelte.d.ts +17 -3
  33. package/package/components/core/option.svelte +6 -0
  34. package/package/components/core/option.svelte.d.ts +31 -6
  35. package/package/components/core/password-input.svelte +1 -1
  36. package/package/components/core/password-input.svelte.d.ts +15 -4
  37. package/package/components/core/radio-button.svelte +1 -1
  38. package/package/components/core/radio-button.svelte.d.ts +11 -1
  39. package/package/components/core/row-group.svelte.d.ts +9 -1
  40. package/package/components/core/row.svelte.d.ts +11 -1
  41. package/package/components/core/search-bar.svelte +3 -2
  42. package/package/components/core/search-bar.svelte.d.ts +25 -11
  43. package/package/components/core/select-button.svelte.d.ts +19 -2
  44. package/package/components/core/separator.svelte.d.ts +7 -1
  45. package/package/components/core/slider.svelte +2 -1
  46. package/package/components/core/slider.svelte.d.ts +17 -1
  47. package/package/components/core/spacer.svelte.d.ts +7 -1
  48. package/package/components/core/switch.svelte +6 -0
  49. package/package/components/core/switch.svelte.d.ts +11 -1
  50. package/package/components/core/tab-panel.svelte.d.ts +9 -1
  51. package/package/components/core/tab.svelte.d.ts +15 -1
  52. package/package/components/core/text-area.svelte.d.ts +25 -11
  53. package/package/components/core/text-input.svelte +3 -2
  54. package/package/components/core/text-input.svelte.d.ts +33 -15
  55. package/package/components/core/toolbar.svelte +3 -3
  56. package/package/components/core/toolbar.svelte.d.ts +10 -1
  57. package/package/components/editor/markdown.svelte +1 -1
  58. package/package/components/editor/markdown.svelte.d.ts +7 -1
  59. package/package/components/helpers/popup.d.ts +7 -2
  60. package/package/components/helpers/popup.js +11 -0
  61. package/package/components/util/app-shell.svelte +128 -58
  62. package/package/components/util/app-shell.svelte.d.ts +11 -1
  63. package/package/components/util/popup.svelte +24 -14
  64. package/package/components/util/popup.svelte.d.ts +24 -8
  65. package/package/components/util/portal.svelte.d.ts +8 -1
  66. package/package/index.d.ts +2 -0
  67. package/package/index.js +5 -5
  68. package/package/styles/core.scss +3 -3
  69. package/package/styles/variables.scss +127 -57
  70. package/package.json +23 -13
@@ -1,11 +1,18 @@
1
1
  /** @typedef {typeof __propDef.props} IconProps */
2
2
  /** @typedef {typeof __propDef.events} IconEvents */
3
3
  /** @typedef {typeof __propDef.slots} IconSlots */
4
- export default class Icon {
4
+ export default class Icon extends SvelteComponentTyped<{
5
+ label?: string;
6
+ class?: string;
7
+ name?: string;
8
+ }, {
9
+ [evt: string]: CustomEvent<any>;
10
+ }, {}> {
5
11
  }
6
12
  export type IconProps = typeof __propDef.props;
7
13
  export type IconEvents = typeof __propDef.events;
8
14
  export type IconSlots = typeof __propDef.slots;
15
+ import { SvelteComponentTyped } from "svelte";
9
16
  declare const __propDef: {
10
17
  props: {
11
18
  label?: string;
@@ -2,11 +2,27 @@
2
2
  /** @typedef {typeof __propDef.events} MenuButtonEvents */
3
3
  /** @typedef {typeof __propDef.slots} MenuButtonSlots */
4
4
  /** @see https://w3c.github.io/aria-practices/#menubutton */
5
- export default class MenuButton {
5
+ export default class MenuButton extends SvelteComponentTyped<{
6
+ [x: string]: any;
7
+ class?: string;
8
+ popupPosition?: any;
9
+ }, {
10
+ [evt: string]: CustomEvent<any>;
11
+ }, {
12
+ 'start-icon': {
13
+ slot: string;
14
+ };
15
+ default: {};
16
+ 'end-icon': {
17
+ slot: string;
18
+ };
19
+ popup: {};
20
+ }> {
6
21
  }
7
22
  export type MenuButtonProps = typeof __propDef.props;
8
23
  export type MenuButtonEvents = typeof __propDef.events;
9
24
  export type MenuButtonSlots = typeof __propDef.slots;
25
+ import { SvelteComponentTyped } from "svelte";
10
26
  declare const __propDef: {
11
27
  props: {
12
28
  [x: string]: any;
@@ -2,18 +2,28 @@
2
2
  /** @typedef {typeof __propDef.events} MenuItemCheckboxEvents */
3
3
  /** @typedef {typeof __propDef.slots} MenuItemCheckboxSlots */
4
4
  /** @see https://w3c.github.io/aria/#menuitemcheckbox */
5
- export default class MenuItemCheckbox {
5
+ export default class MenuItemCheckbox extends SvelteComponentTyped<{
6
+ [x: string]: any;
7
+ class?: string;
8
+ }, {
9
+ click: MouseEvent;
10
+ } & {
11
+ [evt: string]: CustomEvent<any>;
12
+ }, {
13
+ default: {};
14
+ }> {
6
15
  }
7
16
  export type MenuItemCheckboxProps = typeof __propDef.props;
8
17
  export type MenuItemCheckboxEvents = typeof __propDef.events;
9
18
  export type MenuItemCheckboxSlots = typeof __propDef.slots;
19
+ import { SvelteComponentTyped } from "svelte";
10
20
  declare const __propDef: {
11
21
  props: {
12
22
  [x: string]: any;
13
23
  class?: string;
14
24
  };
15
25
  events: {
16
- click: any;
26
+ click: MouseEvent;
17
27
  } & {
18
28
  [evt: string]: CustomEvent<any>;
19
29
  };
@@ -2,18 +2,28 @@
2
2
  /** @typedef {typeof __propDef.events} MenuItemRadioEvents */
3
3
  /** @typedef {typeof __propDef.slots} MenuItemRadioSlots */
4
4
  /** @see https://w3c.github.io/aria/#menuitemradio */
5
- export default class MenuItemRadio {
5
+ export default class MenuItemRadio extends SvelteComponentTyped<{
6
+ [x: string]: any;
7
+ class?: string;
8
+ }, {
9
+ click: MouseEvent;
10
+ } & {
11
+ [evt: string]: CustomEvent<any>;
12
+ }, {
13
+ default: {};
14
+ }> {
6
15
  }
7
16
  export type MenuItemRadioProps = typeof __propDef.props;
8
17
  export type MenuItemRadioEvents = typeof __propDef.events;
9
18
  export type MenuItemRadioSlots = typeof __propDef.slots;
19
+ import { SvelteComponentTyped } from "svelte";
10
20
  declare const __propDef: {
11
21
  props: {
12
22
  [x: string]: any;
13
23
  class?: string;
14
24
  };
15
25
  events: {
16
- click: any;
26
+ click: MouseEvent;
17
27
  } & {
18
28
  [evt: string]: CustomEvent<any>;
19
29
  };
@@ -2,11 +2,26 @@
2
2
  /** @typedef {typeof __propDef.events} MenuItemEvents */
3
3
  /** @typedef {typeof __propDef.slots} MenuItemSlots */
4
4
  /** @see https://w3c.github.io/aria/#menuitem */
5
- export default class MenuItem {
5
+ export default class MenuItem extends SvelteComponentTyped<{
6
+ [x: string]: any;
7
+ label?: string;
8
+ class?: string;
9
+ role?: "menuitem" | "menuitemcheckbox" | "menuitemradio";
10
+ checked?: boolean;
11
+ iconName?: string;
12
+ iconLabel?: string;
13
+ }, {
14
+ click: MouseEvent;
15
+ } & {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {
18
+ default: {};
19
+ }> {
6
20
  }
7
21
  export type MenuItemProps = typeof __propDef.props;
8
22
  export type MenuItemEvents = typeof __propDef.events;
9
23
  export type MenuItemSlots = typeof __propDef.slots;
24
+ import { SvelteComponentTyped } from "svelte";
10
25
  declare const __propDef: {
11
26
  props: {
12
27
  [x: string]: any;
@@ -18,7 +33,7 @@ declare const __propDef: {
18
33
  iconLabel?: string;
19
34
  };
20
35
  events: {
21
- click: any;
36
+ click: MouseEvent;
22
37
  } & {
23
38
  [evt: string]: CustomEvent<any>;
24
39
  };
@@ -108,5 +108,5 @@
108
108
  border-radius: 0 4px 4px 0;
109
109
  }
110
110
  .number-input :global(button) :global(.icon) {
111
- font-size: 20px;
111
+ font-size: var(--font-size--xx-large);
112
112
  }</style>
@@ -2,11 +2,25 @@
2
2
  /** @typedef {typeof __propDef.events} NumberInputEvents */
3
3
  /** @typedef {typeof __propDef.slots} NumberInputSlots */
4
4
  /** @see https://w3c.github.io/aria/#textbox */
5
- export default class NumberInput {
5
+ export default class NumberInput extends SvelteComponentTyped<{
6
+ [x: string]: any;
7
+ class?: string;
8
+ disabled?: boolean;
9
+ value?: string;
10
+ min?: any;
11
+ max?: any;
12
+ step?: number;
13
+ }, {
14
+ keypress: KeyboardEvent;
15
+ input: Event;
16
+ } & {
17
+ [evt: string]: CustomEvent<any>;
18
+ }, {}> {
6
19
  }
7
20
  export type NumberInputProps = typeof __propDef.props;
8
21
  export type NumberInputEvents = typeof __propDef.events;
9
22
  export type NumberInputSlots = typeof __propDef.slots;
23
+ import { SvelteComponentTyped } from "svelte";
10
24
  declare const __propDef: {
11
25
  props: {
12
26
  [x: string]: any;
@@ -18,8 +32,8 @@ declare const __propDef: {
18
32
  step?: number;
19
33
  };
20
34
  events: {
21
- keypress: any;
22
- input: any;
35
+ keypress: KeyboardEvent;
36
+ input: Event;
23
37
  } & {
24
38
  [evt: string]: CustomEvent<any>;
25
39
  };
@@ -14,6 +14,8 @@
14
14
 
15
15
  export { className as class };
16
16
 
17
+ export let label = '';
18
+ export let value = undefined;
17
19
  export let selected = false;
18
20
  </script>
19
21
 
@@ -21,6 +23,9 @@
21
23
  <Button
22
24
  role="option"
23
25
  aria-selected={selected}
26
+ {label}
27
+ {value}
28
+ data-type={typeof value}
24
29
  {...$$restProps}
25
30
  on:click
26
31
  on:dragover
@@ -49,6 +54,7 @@
49
54
  padding: 0 8px 0 16px;
50
55
  width: 100%;
51
56
  height: var(--option--medium--height);
57
+ white-space: nowrap;
52
58
  }
53
59
  .option :global([role="option"]:hover) {
54
60
  color: var(--highlight-foreground-color);
@@ -2,23 +2,48 @@
2
2
  /** @typedef {typeof __propDef.events} OptionEvents */
3
3
  /** @typedef {typeof __propDef.slots} OptionSlots */
4
4
  /** @see https://w3c.github.io/aria/#option */
5
- export default class Option {
5
+ export default class Option extends SvelteComponentTyped<{
6
+ [x: string]: any;
7
+ label?: string;
8
+ class?: string;
9
+ value?: any;
10
+ selected?: boolean;
11
+ }, {
12
+ click: MouseEvent;
13
+ dragover: DragEvent;
14
+ dragleave: DragEvent;
15
+ dragend: DragEvent;
16
+ drop: DragEvent;
17
+ } & {
18
+ [evt: string]: CustomEvent<any>;
19
+ }, {
20
+ 'start-icon': {
21
+ slot: string;
22
+ };
23
+ default: {};
24
+ 'end-icon': {
25
+ slot: string;
26
+ };
27
+ }> {
6
28
  }
7
29
  export type OptionProps = typeof __propDef.props;
8
30
  export type OptionEvents = typeof __propDef.events;
9
31
  export type OptionSlots = typeof __propDef.slots;
32
+ import { SvelteComponentTyped } from "svelte";
10
33
  declare const __propDef: {
11
34
  props: {
12
35
  [x: string]: any;
36
+ label?: string;
13
37
  class?: string;
38
+ value?: any;
14
39
  selected?: boolean;
15
40
  };
16
41
  events: {
17
- click: any;
18
- dragover: any;
19
- dragleave: any;
20
- dragend: any;
21
- drop: any;
42
+ click: MouseEvent;
43
+ dragover: DragEvent;
44
+ dragleave: DragEvent;
45
+ dragend: DragEvent;
46
+ drop: DragEvent;
22
47
  } & {
23
48
  [evt: string]: CustomEvent<any>;
24
49
  };
@@ -77,5 +77,5 @@
77
77
  border-radius: 0 4px 4px 0;
78
78
  }
79
79
  .password-input :global(button) :global(.icon) {
80
- font-size: 20px;
80
+ font-size: var(--font-size--xx-large);
81
81
  }</style>
@@ -2,11 +2,22 @@
2
2
  /** @typedef {typeof __propDef.events} PasswordInputEvents */
3
3
  /** @typedef {typeof __propDef.slots} PasswordInputSlots */
4
4
  /** @see https://w3c.github.io/aria/#textbox */
5
- export default class PasswordInput {
5
+ export default class PasswordInput extends SvelteComponentTyped<{
6
+ [x: string]: any;
7
+ class?: string;
8
+ value?: string;
9
+ }, {
10
+ input: Event;
11
+ keypress: KeyboardEvent;
12
+ change: Event;
13
+ } & {
14
+ [evt: string]: CustomEvent<any>;
15
+ }, {}> {
6
16
  }
7
17
  export type PasswordInputProps = typeof __propDef.props;
8
18
  export type PasswordInputEvents = typeof __propDef.events;
9
19
  export type PasswordInputSlots = typeof __propDef.slots;
20
+ import { SvelteComponentTyped } from "svelte";
10
21
  declare const __propDef: {
11
22
  props: {
12
23
  [x: string]: any;
@@ -14,9 +25,9 @@ declare const __propDef: {
14
25
  value?: (string | undefined);
15
26
  };
16
27
  events: {
17
- input: any;
18
- keypress: any;
19
- change: any;
28
+ input: Event;
29
+ keypress: KeyboardEvent;
30
+ change: Event;
20
31
  } & {
21
32
  [evt: string]: CustomEvent<any>;
22
33
  };
@@ -82,7 +82,7 @@
82
82
  transition: all 200ms;
83
83
  }
84
84
  .radio-button :global(button) :global(.icon) {
85
- font-size: 16px;
85
+ font-size: var(--font-size--large);
86
86
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 48;
87
87
  }
88
88
  .radio-button :global(button[aria-checked="true"]) {
@@ -5,11 +5,21 @@
5
5
  * @see https://w3c.github.io/aria/#radio
6
6
  * @see https://w3c.github.io/aria-practices/#radiobutton
7
7
  */
8
- export default class RadioButton {
8
+ export default class RadioButton extends SvelteComponentTyped<{
9
+ class?: string;
10
+ name?: string;
11
+ value?: string;
12
+ selected?: boolean;
13
+ }, {
14
+ [evt: string]: CustomEvent<any>;
15
+ }, {
16
+ default: {};
17
+ }> {
9
18
  }
10
19
  export type RadioButtonProps = typeof __propDef.props;
11
20
  export type RadioButtonEvents = typeof __propDef.events;
12
21
  export type RadioButtonSlots = typeof __propDef.slots;
22
+ import { SvelteComponentTyped } from "svelte";
13
23
  declare const __propDef: {
14
24
  props: {
15
25
  class?: string;
@@ -1,11 +1,19 @@
1
1
  /** @typedef {typeof __propDef.props} RowGroupProps */
2
2
  /** @typedef {typeof __propDef.events} RowGroupEvents */
3
3
  /** @typedef {typeof __propDef.slots} RowGroupSlots */
4
- export default class RowGroup {
4
+ export default class RowGroup extends SvelteComponentTyped<{
5
+ [x: string]: any;
6
+ class?: string;
7
+ }, {
8
+ [evt: string]: CustomEvent<any>;
9
+ }, {
10
+ default: {};
11
+ }> {
5
12
  }
6
13
  export type RowGroupProps = typeof __propDef.props;
7
14
  export type RowGroupEvents = typeof __propDef.events;
8
15
  export type RowGroupSlots = typeof __propDef.slots;
16
+ import { SvelteComponentTyped } from "svelte";
9
17
  declare const __propDef: {
10
18
  props: {
11
19
  [x: string]: any;
@@ -1,11 +1,21 @@
1
1
  /** @typedef {typeof __propDef.props} RowProps */
2
2
  /** @typedef {typeof __propDef.events} RowEvents */
3
3
  /** @typedef {typeof __propDef.slots} RowSlots */
4
- export default class Row {
4
+ export default class Row extends SvelteComponentTyped<{
5
+ [x: string]: any;
6
+ class?: string;
7
+ }, {
8
+ click: MouseEvent;
9
+ } & {
10
+ [evt: string]: CustomEvent<any>;
11
+ }, {
12
+ default: {};
13
+ }> {
5
14
  }
6
15
  export type RowProps = typeof __propDef.props;
7
16
  export type RowEvents = typeof __propDef.events;
8
17
  export type RowSlots = typeof __propDef.slots;
18
+ import { SvelteComponentTyped } from "svelte";
9
19
  declare const __propDef: {
10
20
  props: {
11
21
  [x: string]: any;
@@ -46,7 +46,7 @@
46
46
  />
47
47
  {#if value}
48
48
  <Button
49
- class="ternary iconic"
49
+ class="iconic"
50
50
  on:click={() => {
51
51
  value = '';
52
52
  input.element.focus();
@@ -68,7 +68,7 @@
68
68
  position: relative;
69
69
  }
70
70
  [role=search] :global(.icon) {
71
- font-size: 20px;
71
+ font-size: var(--font-size--xx-large);
72
72
  opacity: 0.5;
73
73
  }
74
74
  [role=search] > :global(.icon) {
@@ -80,6 +80,7 @@
80
80
  position: absolute;
81
81
  inset: 0 0 auto auto;
82
82
  z-index: 2;
83
+ height: var(--button--medium--height);
83
84
  }
84
85
  [role=search] :global(.label) {
85
86
  inset: 0 36px;
@@ -2,18 +2,32 @@
2
2
  /** @typedef {typeof __propDef.events} SearchBarEvents */
3
3
  /** @typedef {typeof __propDef.slots} SearchBarSlots */
4
4
  /** @see https://w3c.github.io/aria/#search */
5
- export default class SearchBar {
6
- get focus(): any;
5
+ export default class SearchBar extends SvelteComponentTyped<{
6
+ [x: string]: any;
7
+ focus?: () => void;
8
+ class?: string;
9
+ value?: string;
10
+ }, {
11
+ input: Event;
12
+ keydown: KeyboardEvent;
13
+ keyup: KeyboardEvent;
14
+ keypress: KeyboardEvent;
15
+ change: Event;
16
+ } & {
17
+ [evt: string]: CustomEvent<any>;
18
+ }, {}> {
19
+ get focus(): () => void;
7
20
  /**accessor*/
8
- set class(arg: any);
9
- get class(): any;
21
+ set class(arg: string);
22
+ get class(): string;
10
23
  /**accessor*/
11
- set value(arg: any);
12
- get value(): any;
24
+ set value(arg: string);
25
+ get value(): string;
13
26
  }
14
27
  export type SearchBarProps = typeof __propDef.props;
15
28
  export type SearchBarEvents = typeof __propDef.events;
16
29
  export type SearchBarSlots = typeof __propDef.slots;
30
+ import { SvelteComponentTyped } from "svelte";
17
31
  declare const __propDef: {
18
32
  props: {
19
33
  [x: string]: any;
@@ -22,11 +36,11 @@ declare const __propDef: {
22
36
  value?: string;
23
37
  };
24
38
  events: {
25
- input: any;
26
- keydown: any;
27
- keyup: any;
28
- keypress: any;
29
- change: any;
39
+ input: Event;
40
+ keydown: KeyboardEvent;
41
+ keyup: KeyboardEvent;
42
+ keypress: KeyboardEvent;
43
+ change: Event;
30
44
  } & {
31
45
  [evt: string]: CustomEvent<any>;
32
46
  };
@@ -6,11 +6,28 @@
6
6
  * @see https://w3c.github.io/aria/#radio
7
7
  * @see https://w3c.github.io/aria-practices/#radiobutton
8
8
  */
9
- export default class SelectButton {
9
+ export default class SelectButton extends SvelteComponentTyped<{
10
+ [x: string]: any;
11
+ class?: string;
12
+ selected?: boolean;
13
+ }, {
14
+ click: MouseEvent;
15
+ } & {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {
18
+ 'start-icon': {
19
+ slot: string;
20
+ };
21
+ default: {};
22
+ 'end-icon': {
23
+ slot: string;
24
+ };
25
+ }> {
10
26
  }
11
27
  export type SelectButtonProps = typeof __propDef.props;
12
28
  export type SelectButtonEvents = typeof __propDef.events;
13
29
  export type SelectButtonSlots = typeof __propDef.slots;
30
+ import { SvelteComponentTyped } from "svelte";
14
31
  declare const __propDef: {
15
32
  props: {
16
33
  [x: string]: any;
@@ -18,7 +35,7 @@ declare const __propDef: {
18
35
  selected?: boolean;
19
36
  };
20
37
  events: {
21
- click: any;
38
+ click: MouseEvent;
22
39
  } & {
23
40
  [evt: string]: CustomEvent<any>;
24
41
  };
@@ -2,11 +2,17 @@
2
2
  /** @typedef {typeof __propDef.events} SeparatorEvents */
3
3
  /** @typedef {typeof __propDef.slots} SeparatorSlots */
4
4
  /** @see https://w3c.github.io/aria/#separator */
5
- export default class Separator {
5
+ export default class Separator extends SvelteComponentTyped<{
6
+ class?: string;
7
+ orientation?: string;
8
+ }, {
9
+ [evt: string]: CustomEvent<any>;
10
+ }, {}> {
6
11
  }
7
12
  export type SeparatorProps = typeof __propDef.props;
8
13
  export type SeparatorEvents = typeof __propDef.events;
9
14
  export type SeparatorSlots = typeof __propDef.slots;
15
+ import { SvelteComponentTyped } from "svelte";
10
16
  declare const __propDef: {
11
17
  props: {
12
18
  class?: string;
@@ -254,6 +254,7 @@
254
254
  [role=slider] {
255
255
  position: absolute;
256
256
  top: 0;
257
+ border: 2px solid var(--primary-accent-color-lighter);
257
258
  border-radius: 8px;
258
259
  width: 16px;
259
260
  height: 16px;
@@ -266,5 +267,5 @@
266
267
  position: absolute;
267
268
  top: 12px;
268
269
  transform: translateX(-50%);
269
- font-size: 10px;
270
+ font-size: var(--font-size--x-small);
270
271
  }</style>
@@ -7,11 +7,27 @@
7
7
  * @see https://www.w3.org/WAI/ARIA/apg/patterns/slider/
8
8
  * @see https://www.w3.org/WAI/ARIA/apg/patterns/slider-multithumb/
9
9
  */
10
- export default class Slider {
10
+ export default class Slider extends SvelteComponentTyped<{
11
+ class?: string;
12
+ value?: number;
13
+ min?: number;
14
+ max?: number;
15
+ step?: number;
16
+ sliderLabel?: string;
17
+ values?: any;
18
+ sliderLabels?: any[];
19
+ optionLabels?: any[];
20
+ }, {
21
+ click: MouseEvent;
22
+ change: CustomEvent<any>;
23
+ } & {
24
+ [evt: string]: CustomEvent<any>;
25
+ }, {}> {
11
26
  }
12
27
  export type SliderProps = typeof __propDef.props;
13
28
  export type SliderEvents = typeof __propDef.events;
14
29
  export type SliderSlots = typeof __propDef.slots;
30
+ import { SvelteComponentTyped } from "svelte";
15
31
  declare const __propDef: {
16
32
  props: {
17
33
  class?: string;
@@ -1,11 +1,17 @@
1
1
  /** @typedef {typeof __propDef.props} SpacerProps */
2
2
  /** @typedef {typeof __propDef.events} SpacerEvents */
3
3
  /** @typedef {typeof __propDef.slots} SpacerSlots */
4
- export default class Spacer {
4
+ export default class Spacer extends SvelteComponentTyped<{
5
+ class?: string;
6
+ flex?: boolean;
7
+ }, {
8
+ [evt: string]: CustomEvent<any>;
9
+ }, {}> {
5
10
  }
6
11
  export type SpacerProps = typeof __propDef.props;
7
12
  export type SpacerEvents = typeof __propDef.events;
8
13
  export type SpacerSlots = typeof __propDef.slots;
14
+ import { SvelteComponentTyped } from "svelte";
9
15
  declare const __propDef: {
10
16
  props: {
11
17
  class?: string;
@@ -45,6 +45,9 @@ input {
45
45
  position: absolute;
46
46
  left: -99999px;
47
47
  }
48
+ input:focus + span {
49
+ background-color: var(--highlight-background-color);
50
+ }
48
51
 
49
52
  input:checked + span {
50
53
  background-color: var(--primary-accent-color);
@@ -69,6 +72,9 @@ span {
69
72
  background-color: var(--control-border-color);
70
73
  transition: all 200ms;
71
74
  }
75
+ span:hover {
76
+ background-color: var(--highlight-background-color);
77
+ }
72
78
  span::before {
73
79
  display: inline-block;
74
80
  width: 16px;
@@ -5,11 +5,21 @@
5
5
  * @see https://w3c.github.io/aria/#switch
6
6
  * @see https://w3c.github.io/aria-practices/#switch
7
7
  */
8
- export default class Switch {
8
+ export default class Switch extends SvelteComponentTyped<{
9
+ label?: string;
10
+ class?: string;
11
+ disabled?: boolean;
12
+ checked?: boolean;
13
+ }, {
14
+ [evt: string]: CustomEvent<any>;
15
+ }, {
16
+ default: {};
17
+ }> {
9
18
  }
10
19
  export type SwitchProps = typeof __propDef.props;
11
20
  export type SwitchEvents = typeof __propDef.events;
12
21
  export type SwitchSlots = typeof __propDef.slots;
22
+ import { SvelteComponentTyped } from "svelte";
13
23
  declare const __propDef: {
14
24
  props: {
15
25
  label?: string;
@@ -5,11 +5,19 @@
5
5
  * @see https://w3c.github.io/aria/#tabpanel
6
6
  * @see https://w3c.github.io/aria-practices/#tabpanel
7
7
  */
8
- export default class TabPanel {
8
+ export default class TabPanel extends SvelteComponentTyped<{
9
+ [x: string]: any;
10
+ class?: string;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {
14
+ default: {};
15
+ }> {
9
16
  }
10
17
  export type TabPanelProps = typeof __propDef.props;
11
18
  export type TabPanelEvents = typeof __propDef.events;
12
19
  export type TabPanelSlots = typeof __propDef.slots;
20
+ import { SvelteComponentTyped } from "svelte";
13
21
  declare const __propDef: {
14
22
  props: {
15
23
  [x: string]: any;