@sveltia/ui 0.4.0 → 0.6.0
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.
- package/package/components/alert/alert.svelte +55 -0
- package/package/components/alert/alert.svelte.d.ts +36 -0
- package/package/components/button/button.svelte +29 -29
- package/package/components/button/button.svelte.d.ts +6 -6
- package/package/components/button/select-button-group.svelte +3 -3
- package/package/components/button/select-button-group.svelte.d.ts +4 -4
- package/package/components/button/select-button.svelte.d.ts +2 -2
- package/package/components/calendar/calendar.svelte +8 -8
- package/package/components/calendar/calendar.svelte.d.ts +2 -2
- package/package/components/checkbox/checkbox-group.svelte.d.ts +2 -2
- package/package/components/checkbox/checkbox.svelte +7 -7
- package/package/components/checkbox/checkbox.svelte.d.ts +6 -6
- package/package/components/dialog/dialog.svelte +5 -5
- package/package/components/dialog/dialog.svelte.d.ts +4 -4
- package/package/components/disclosure/disclosure.svelte.d.ts +4 -4
- package/package/components/divider/divider.svelte +1 -1
- package/package/components/divider/divider.svelte.d.ts +2 -2
- package/package/components/divider/spacer.svelte.d.ts +2 -2
- package/package/components/drawer/drawer.svelte +5 -5
- package/package/components/drawer/drawer.svelte.d.ts +4 -4
- package/package/components/icon/icon.svelte.d.ts +6 -6
- package/package/components/listbox/listbox.svelte +4 -4
- package/package/components/listbox/listbox.svelte.d.ts +2 -2
- package/package/components/listbox/option-group.svelte +2 -2
- package/package/components/listbox/option-group.svelte.d.ts +4 -4
- package/package/components/listbox/option.svelte +4 -4
- package/package/components/listbox/option.svelte.d.ts +4 -4
- package/package/components/menu/menu-button.svelte.d.ts +2 -2
- package/package/components/menu/menu-item-checkbox.svelte.d.ts +2 -2
- package/package/components/menu/menu-item-group.svelte.d.ts +4 -4
- package/package/components/menu/menu-item-radio.svelte.d.ts +2 -2
- package/package/components/menu/menu-item.svelte +4 -4
- package/package/components/menu/menu-item.svelte.d.ts +4 -4
- package/package/components/menu/menu.svelte +1 -1
- package/package/components/menu/menu.svelte.d.ts +2 -2
- package/package/components/radio/radio-group.svelte.d.ts +2 -2
- package/package/components/radio/radio.svelte +5 -5
- package/package/components/radio/radio.svelte.d.ts +6 -6
- package/package/components/select/combobox.svelte +9 -9
- package/package/components/select/combobox.svelte.d.ts +8 -5
- package/package/components/select/select.svelte.d.ts +4 -4
- package/package/components/slider/slider.svelte +6 -6
- package/package/components/slider/slider.svelte.d.ts +4 -4
- package/package/components/switch/switch.svelte +6 -6
- package/package/components/switch/switch.svelte.d.ts +4 -4
- package/package/components/table/table-body.svelte.d.ts +2 -2
- package/package/components/table/table-cell.svelte.d.ts +2 -2
- package/package/components/table/table-col-header.svelte.d.ts +2 -2
- package/package/components/table/table-foot.svelte.d.ts +2 -2
- package/package/components/table/table-head.svelte.d.ts +2 -2
- package/package/components/table/table-row-header.svelte.d.ts +2 -2
- package/package/components/table/table-row.svelte.d.ts +2 -2
- package/package/components/table/table.svelte +1 -1
- package/package/components/table/table.svelte.d.ts +2 -2
- package/package/components/tabs/tab-list.svelte +3 -3
- package/package/components/tabs/tab-list.svelte.d.ts +4 -4
- package/package/components/tabs/tab-panel.svelte.d.ts +2 -2
- package/package/components/tabs/tab.svelte.d.ts +2 -2
- package/package/components/text-field/markdown-editor.svelte +1 -1
- package/package/components/text-field/markdown-editor.svelte.d.ts +2 -2
- package/package/components/text-field/number-input.svelte +3 -3
- package/package/components/text-field/number-input.svelte.d.ts +4 -4
- package/package/components/text-field/password-input.svelte +3 -3
- package/package/components/text-field/password-input.svelte.d.ts +4 -4
- package/package/components/text-field/search-bar.svelte +2 -2
- package/package/components/text-field/search-bar.svelte.d.ts +4 -4
- package/package/components/text-field/text-area.svelte +5 -5
- package/package/components/text-field/text-area.svelte.d.ts +4 -4
- package/package/components/text-field/text-input.svelte +13 -13
- package/package/components/text-field/text-input.svelte.d.ts +6 -6
- package/package/components/toolbar/toolbar.svelte +6 -6
- package/package/components/toolbar/toolbar.svelte.d.ts +2 -2
- package/package/components/util/app-shell.svelte +168 -163
- package/package/components/util/app-shell.svelte.d.ts +4 -4
- package/package/components/util/group.svelte.d.ts +2 -2
- package/package/components/util/popup.svelte +4 -4
- package/package/components/util/popup.svelte.d.ts +2 -2
- package/package/components/util/portal.svelte.d.ts +2 -2
- package/package/index.d.ts +1 -0
- package/package/index.js +1 -0
- package/package/styles/core.scss +5 -5
- package/package/styles/variables.scss +158 -153
- package/package.json +26 -18
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* A Material Symbols icon.
|
|
6
6
|
* @see https://developers.google.com/fonts/docs/material_symbols
|
|
7
7
|
*/
|
|
8
|
-
export default class Icon extends
|
|
8
|
+
export default class Icon extends SvelteComponent<{
|
|
9
9
|
[x: string]: any;
|
|
10
|
-
label?: string;
|
|
11
|
-
name?: string;
|
|
12
10
|
class?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
label?: string;
|
|
13
13
|
}, {
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
15
15
|
}, {}> {
|
|
@@ -17,13 +17,13 @@ export default class Icon extends SvelteComponentTyped<{
|
|
|
17
17
|
export type IconProps = typeof __propDef.props;
|
|
18
18
|
export type IconEvents = typeof __propDef.events;
|
|
19
19
|
export type IconSlots = typeof __propDef.slots;
|
|
20
|
-
import {
|
|
20
|
+
import { SvelteComponent } from "svelte";
|
|
21
21
|
declare const __propDef: {
|
|
22
22
|
props: {
|
|
23
23
|
[x: string]: any;
|
|
24
|
-
label?: string;
|
|
25
|
-
name?: string;
|
|
26
24
|
class?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
label?: string;
|
|
27
27
|
};
|
|
28
28
|
events: {
|
|
29
29
|
[evt: string]: CustomEvent<any>;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
color: inherit;
|
|
45
45
|
margin: 0;
|
|
46
46
|
border-width: 1px;
|
|
47
|
-
border-color: var(--control-border-color);
|
|
47
|
+
border-color: var(--sui-control-border-color);
|
|
48
48
|
border-radius: 4px;
|
|
49
49
|
padding: 4px;
|
|
50
50
|
min-width: 160px;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
[role=listbox]:global(.tabs) {
|
|
56
56
|
padding: 0;
|
|
57
57
|
border-width: 0 1px 0 0;
|
|
58
|
-
border-color: var(--control-border-color);
|
|
58
|
+
border-color: var(--sui-control-border-color);
|
|
59
59
|
}
|
|
60
60
|
[role=listbox]:global(.tabs) :global(.option button) {
|
|
61
61
|
justify-content: flex-start;
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
padding: 0 12px;
|
|
65
65
|
border-top-right-radius: 0;
|
|
66
66
|
border-bottom-right-radius: 0;
|
|
67
|
-
height: var(--tab
|
|
67
|
+
height: var(--sui-tab-medium-height);
|
|
68
68
|
}
|
|
69
69
|
[role=listbox]:global(.tabs) :global(.option button) :global(.icon) {
|
|
70
70
|
display: none;
|
|
71
71
|
}
|
|
72
72
|
[role=listbox]:global(.tabs) :global(.option button[aria-selected="true"]) {
|
|
73
|
-
border-color: var(--primary-accent-color-lighter);
|
|
73
|
+
border-color: var(--sui-primary-accent-color-lighter);
|
|
74
74
|
}</style>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @see https://w3c.github.io/aria/#listbox
|
|
8
8
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/listbox/
|
|
9
9
|
*/
|
|
10
|
-
export default class Listbox extends
|
|
10
|
+
export default class Listbox extends SvelteComponent<{
|
|
11
11
|
[x: string]: any;
|
|
12
12
|
class?: string;
|
|
13
13
|
element?: HTMLElement;
|
|
@@ -33,7 +33,7 @@ export default class Listbox extends SvelteComponentTyped<{
|
|
|
33
33
|
export type ListboxProps = typeof __propDef.props;
|
|
34
34
|
export type ListboxEvents = typeof __propDef.events;
|
|
35
35
|
export type ListboxSlots = typeof __propDef.slots;
|
|
36
|
-
import {
|
|
36
|
+
import { SvelteComponent } from "svelte";
|
|
37
37
|
declare const __propDef: {
|
|
38
38
|
props: {
|
|
39
39
|
[x: string]: any;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* @see https://w3c.github.io/aria/#listbox
|
|
9
9
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/listbox/examples/listbox-grouped/
|
|
10
10
|
*/
|
|
11
|
-
export default class OptionGroup extends
|
|
11
|
+
export default class OptionGroup extends SvelteComponent<{
|
|
12
12
|
[x: string]: any;
|
|
13
|
-
label?: string;
|
|
14
13
|
class?: string;
|
|
14
|
+
label?: string;
|
|
15
15
|
}, {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
17
17
|
}, {
|
|
@@ -21,12 +21,12 @@ export default class OptionGroup extends SvelteComponentTyped<{
|
|
|
21
21
|
export type OptionGroupProps = typeof __propDef.props;
|
|
22
22
|
export type OptionGroupEvents = typeof __propDef.events;
|
|
23
23
|
export type OptionGroupSlots = typeof __propDef.slots;
|
|
24
|
-
import {
|
|
24
|
+
import { SvelteComponent } from "svelte";
|
|
25
25
|
declare const __propDef: {
|
|
26
26
|
props: {
|
|
27
27
|
[x: string]: any;
|
|
28
|
-
label?: string;
|
|
29
28
|
class?: string;
|
|
29
|
+
label?: string;
|
|
30
30
|
};
|
|
31
31
|
events: {
|
|
32
32
|
[evt: string]: CustomEvent<any>;
|
|
@@ -84,14 +84,14 @@
|
|
|
84
84
|
border-radius: 4px;
|
|
85
85
|
padding: 0 8px 0 16px;
|
|
86
86
|
width: 100%;
|
|
87
|
-
height: var(--option
|
|
87
|
+
height: var(--sui-option-medium-height);
|
|
88
88
|
white-space: nowrap;
|
|
89
89
|
}
|
|
90
90
|
.option :global(.focused),
|
|
91
91
|
.option :global([role="option"]:hover) {
|
|
92
|
-
color: var(--highlight-foreground-color);
|
|
93
|
-
background-color: var(--highlight-background-color);
|
|
92
|
+
color: var(--sui-highlight-foreground-color);
|
|
93
|
+
background-color: var(--sui-highlight-background-color);
|
|
94
94
|
}
|
|
95
95
|
.option :global([role="option"][aria-selected="true"]) :global(.icon) {
|
|
96
|
-
color: var(--primary-accent-color-lighter);
|
|
96
|
+
color: var(--sui-primary-accent-color-lighter);
|
|
97
97
|
}</style>
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option
|
|
7
7
|
* @see https://w3c.github.io/aria/#option
|
|
8
8
|
*/
|
|
9
|
-
export default class Option extends
|
|
9
|
+
export default class Option extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
+
class?: string;
|
|
11
12
|
label?: string;
|
|
12
13
|
value?: any;
|
|
13
|
-
class?: string;
|
|
14
14
|
selected?: boolean;
|
|
15
15
|
}, {
|
|
16
16
|
click: MouseEvent;
|
|
@@ -33,13 +33,13 @@ export default class Option extends SvelteComponentTyped<{
|
|
|
33
33
|
export type OptionProps = typeof __propDef.props;
|
|
34
34
|
export type OptionEvents = typeof __propDef.events;
|
|
35
35
|
export type OptionSlots = typeof __propDef.slots;
|
|
36
|
-
import {
|
|
36
|
+
import { SvelteComponent } from "svelte";
|
|
37
37
|
declare const __propDef: {
|
|
38
38
|
props: {
|
|
39
39
|
[x: string]: any;
|
|
40
|
+
class?: string;
|
|
40
41
|
label?: string;
|
|
41
42
|
value?: any;
|
|
42
|
-
class?: string;
|
|
43
43
|
selected?: boolean;
|
|
44
44
|
};
|
|
45
45
|
events: {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* A button to open a `<Menu>` widget.
|
|
6
6
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/
|
|
7
7
|
*/
|
|
8
|
-
export default class MenuButton extends
|
|
8
|
+
export default class MenuButton extends SvelteComponent<{
|
|
9
9
|
[x: string]: any;
|
|
10
10
|
class?: string;
|
|
11
11
|
popupPosition?: PopupPosition;
|
|
@@ -25,7 +25,7 @@ export default class MenuButton extends SvelteComponentTyped<{
|
|
|
25
25
|
export type MenuButtonProps = typeof __propDef.props;
|
|
26
26
|
export type MenuButtonEvents = typeof __propDef.events;
|
|
27
27
|
export type MenuButtonSlots = typeof __propDef.slots;
|
|
28
|
-
import {
|
|
28
|
+
import { SvelteComponent } from "svelte";
|
|
29
29
|
declare const __propDef: {
|
|
30
30
|
props: {
|
|
31
31
|
[x: string]: any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* A menu item widget with a checkbox.
|
|
6
6
|
* @see https://w3c.github.io/aria/#menuitemcheckbox
|
|
7
7
|
*/
|
|
8
|
-
export default class MenuItemCheckbox extends
|
|
8
|
+
export default class MenuItemCheckbox extends SvelteComponent<{
|
|
9
9
|
[x: string]: any;
|
|
10
10
|
class?: string;
|
|
11
11
|
}, {
|
|
@@ -19,7 +19,7 @@ export default class MenuItemCheckbox extends SvelteComponentTyped<{
|
|
|
19
19
|
export type MenuItemCheckboxProps = typeof __propDef.props;
|
|
20
20
|
export type MenuItemCheckboxEvents = typeof __propDef.events;
|
|
21
21
|
export type MenuItemCheckboxSlots = typeof __propDef.slots;
|
|
22
|
-
import {
|
|
22
|
+
import { SvelteComponent } from "svelte";
|
|
23
23
|
declare const __propDef: {
|
|
24
24
|
props: {
|
|
25
25
|
[x: string]: any;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} MenuItemGroupEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} MenuItemGroupSlots */
|
|
4
4
|
/** A menu item group. */
|
|
5
|
-
export default class MenuItemGroup extends
|
|
5
|
+
export default class MenuItemGroup extends SvelteComponent<{
|
|
6
6
|
[x: string]: any;
|
|
7
|
-
title?: string;
|
|
8
7
|
class?: string;
|
|
8
|
+
title?: string;
|
|
9
9
|
ariaLabel?: string;
|
|
10
10
|
}, {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
@@ -16,12 +16,12 @@ export default class MenuItemGroup extends SvelteComponentTyped<{
|
|
|
16
16
|
export type MenuItemGroupProps = typeof __propDef.props;
|
|
17
17
|
export type MenuItemGroupEvents = typeof __propDef.events;
|
|
18
18
|
export type MenuItemGroupSlots = typeof __propDef.slots;
|
|
19
|
-
import {
|
|
19
|
+
import { SvelteComponent } from "svelte";
|
|
20
20
|
declare const __propDef: {
|
|
21
21
|
props: {
|
|
22
22
|
[x: string]: any;
|
|
23
|
-
title?: string;
|
|
24
23
|
class?: string;
|
|
24
|
+
title?: string;
|
|
25
25
|
ariaLabel?: string;
|
|
26
26
|
};
|
|
27
27
|
events: {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* `<MenuItemGroup>` component.
|
|
7
7
|
* @see https://w3c.github.io/aria/#menuitemradio
|
|
8
8
|
*/
|
|
9
|
-
export default class MenuItemRadio extends
|
|
9
|
+
export default class MenuItemRadio extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
}, {
|
|
@@ -20,7 +20,7 @@ export default class MenuItemRadio extends SvelteComponentTyped<{
|
|
|
20
20
|
export type MenuItemRadioProps = typeof __propDef.props;
|
|
21
21
|
export type MenuItemRadioEvents = typeof __propDef.events;
|
|
22
22
|
export type MenuItemRadioSlots = typeof __propDef.slots;
|
|
23
|
-
import {
|
|
23
|
+
import { SvelteComponent } from "svelte";
|
|
24
24
|
declare const __propDef: {
|
|
25
25
|
props: {
|
|
26
26
|
[x: string]: any;
|
|
@@ -86,14 +86,14 @@
|
|
|
86
86
|
padding: 0 16px;
|
|
87
87
|
width: 100%;
|
|
88
88
|
min-width: 160px;
|
|
89
|
-
height: var(--option
|
|
89
|
+
height: var(--sui-option-medium-height);
|
|
90
90
|
}
|
|
91
91
|
.menuitem :global(button[aria-checked="true"]) :global(.icon) {
|
|
92
|
-
color: var(--primary-accent-color-lighter);
|
|
92
|
+
color: var(--sui-primary-accent-color-lighter);
|
|
93
93
|
}
|
|
94
94
|
.menuitem :global(button:hover) {
|
|
95
|
-
color: var(--highlight-foreground-color);
|
|
96
|
-
background-color: var(--highlight-background-color);
|
|
95
|
+
color: var(--sui-highlight-foreground-color);
|
|
96
|
+
background-color: var(--sui-highlight-background-color);
|
|
97
97
|
}
|
|
98
98
|
.menuitem:hover > :global([role="menu"]) {
|
|
99
99
|
opacity: 1;
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* A menu item widget.
|
|
6
6
|
* @see https://w3c.github.io/aria/#menuitem
|
|
7
7
|
*/
|
|
8
|
-
export default class MenuItem extends
|
|
8
|
+
export default class MenuItem extends SvelteComponent<{
|
|
9
9
|
[x: string]: any;
|
|
10
|
-
label?: string;
|
|
11
10
|
class?: string;
|
|
11
|
+
label?: string;
|
|
12
12
|
role?: "menuitem" | "menuitemcheckbox" | "menuitemradio";
|
|
13
13
|
checked?: boolean;
|
|
14
14
|
iconName?: string;
|
|
@@ -24,12 +24,12 @@ export default class MenuItem extends SvelteComponentTyped<{
|
|
|
24
24
|
export type MenuItemProps = typeof __propDef.props;
|
|
25
25
|
export type MenuItemEvents = typeof __propDef.events;
|
|
26
26
|
export type MenuItemSlots = typeof __propDef.slots;
|
|
27
|
-
import {
|
|
27
|
+
import { SvelteComponent } from "svelte";
|
|
28
28
|
declare const __propDef: {
|
|
29
29
|
props: {
|
|
30
30
|
[x: string]: any;
|
|
31
|
-
label?: string;
|
|
32
31
|
class?: string;
|
|
32
|
+
label?: string;
|
|
33
33
|
role?: ('menuitem' | 'menuitemcheckbox' | 'menuitemradio');
|
|
34
34
|
checked?: boolean;
|
|
35
35
|
iconName?: string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://w3c.github.io/aria/#menu
|
|
7
7
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/menubar/
|
|
8
8
|
*/
|
|
9
|
-
export default class Menu extends
|
|
9
|
+
export default class Menu extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
element?: HTMLElement;
|
|
@@ -25,7 +25,7 @@ export default class Menu extends SvelteComponentTyped<{
|
|
|
25
25
|
export type MenuProps = typeof __propDef.props;
|
|
26
26
|
export type MenuEvents = typeof __propDef.events;
|
|
27
27
|
export type MenuSlots = typeof __propDef.slots;
|
|
28
|
-
import {
|
|
28
|
+
import { SvelteComponent } from "svelte";
|
|
29
29
|
declare const __propDef: {
|
|
30
30
|
props: {
|
|
31
31
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://w3c.github.io/aria/#radiogroup
|
|
7
7
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/radio/
|
|
8
8
|
*/
|
|
9
|
-
export default class RadioGroup extends
|
|
9
|
+
export default class RadioGroup extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
element?: HTMLElement;
|
|
@@ -22,7 +22,7 @@ export default class RadioGroup extends SvelteComponentTyped<{
|
|
|
22
22
|
export type RadioGroupProps = typeof __propDef.props;
|
|
23
23
|
export type RadioGroupEvents = typeof __propDef.events;
|
|
24
24
|
export type RadioGroupSlots = typeof __propDef.slots;
|
|
25
|
-
import {
|
|
25
|
+
import { SvelteComponent } from "svelte";
|
|
26
26
|
declare const __propDef: {
|
|
27
27
|
props: {
|
|
28
28
|
[x: string]: any;
|
|
@@ -92,17 +92,17 @@
|
|
|
92
92
|
cursor: default;
|
|
93
93
|
}
|
|
94
94
|
.radio.disabled label {
|
|
95
|
-
color: var(--disabled-foreground-color);
|
|
95
|
+
color: var(--sui-disabled-foreground-color);
|
|
96
96
|
}
|
|
97
97
|
.radio :global(button) {
|
|
98
98
|
justify-content: center;
|
|
99
99
|
overflow: hidden;
|
|
100
100
|
border-width: 2px;
|
|
101
|
-
border-color: var(--checkbox-border-color);
|
|
101
|
+
border-color: var(--sui-checkbox-border-color);
|
|
102
102
|
border-radius: 24px;
|
|
103
103
|
width: 20px;
|
|
104
104
|
height: 20px;
|
|
105
|
-
color: var(--primary-accent-color-lighter);
|
|
105
|
+
color: var(--sui-primary-accent-color-lighter);
|
|
106
106
|
transition: all 200ms;
|
|
107
107
|
}
|
|
108
108
|
.radio :global(button) :global(.icon) {
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 48;
|
|
111
111
|
}
|
|
112
112
|
.radio :global(button[aria-checked="true"]) {
|
|
113
|
-
border-color: var(--primary-accent-color-lighter);
|
|
114
|
-
color: var(--primary-accent-color-lighter);
|
|
113
|
+
border-color: var(--sui-primary-accent-color-lighter);
|
|
114
|
+
color: var(--sui-primary-accent-color-lighter);
|
|
115
115
|
}
|
|
116
116
|
.radio :global(button[aria-checked="false"]) {
|
|
117
117
|
color: transparent;
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
* @see https://w3c.github.io/aria/#radio
|
|
8
8
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/radio/
|
|
9
9
|
*/
|
|
10
|
-
export default class Radio extends
|
|
10
|
+
export default class Radio extends SvelteComponent<{
|
|
11
11
|
[x: string]: any;
|
|
12
|
+
class?: string;
|
|
13
|
+
name?: string;
|
|
12
14
|
label?: string;
|
|
13
15
|
disabled?: boolean;
|
|
14
|
-
name?: string;
|
|
15
16
|
value?: string;
|
|
16
|
-
class?: string;
|
|
17
17
|
selected?: boolean;
|
|
18
18
|
}, {
|
|
19
19
|
[evt: string]: CustomEvent<any>;
|
|
@@ -24,15 +24,15 @@ export default class Radio extends SvelteComponentTyped<{
|
|
|
24
24
|
export type RadioProps = typeof __propDef.props;
|
|
25
25
|
export type RadioEvents = typeof __propDef.events;
|
|
26
26
|
export type RadioSlots = typeof __propDef.slots;
|
|
27
|
-
import {
|
|
27
|
+
import { SvelteComponent } from "svelte";
|
|
28
28
|
declare const __propDef: {
|
|
29
29
|
props: {
|
|
30
30
|
[x: string]: any;
|
|
31
|
+
class?: string;
|
|
32
|
+
name?: string;
|
|
31
33
|
label?: string | null;
|
|
32
34
|
disabled?: boolean;
|
|
33
|
-
name?: string;
|
|
34
35
|
value?: string | null;
|
|
35
|
-
class?: string;
|
|
36
36
|
selected?: boolean;
|
|
37
37
|
};
|
|
38
38
|
events: {
|
|
@@ -138,10 +138,10 @@
|
|
|
138
138
|
display: flex;
|
|
139
139
|
align-items: center;
|
|
140
140
|
position: relative;
|
|
141
|
-
min-width: var(--combobox-min-width, 160px);
|
|
141
|
+
min-width: var(--sui-combobox-min-width, 160px);
|
|
142
142
|
}
|
|
143
143
|
.combobox :global(.icon) {
|
|
144
|
-
font-size: var(--font-size
|
|
144
|
+
font-size: var(--sui-font-size-xx-large);
|
|
145
145
|
opacity: 0.5;
|
|
146
146
|
}
|
|
147
147
|
.combobox > :global(.icon) {
|
|
@@ -163,12 +163,12 @@
|
|
|
163
163
|
display: flex;
|
|
164
164
|
align-items: center;
|
|
165
165
|
border-width: 1px;
|
|
166
|
-
border-color: var(--control-border-color);
|
|
166
|
+
border-color: var(--sui-control-border-color);
|
|
167
167
|
border-radius: 4px;
|
|
168
168
|
padding: 0 32px 0 8px;
|
|
169
169
|
width: 100%;
|
|
170
|
-
height: var(--input
|
|
171
|
-
background-color: var(--disabled-background-color);
|
|
170
|
+
height: var(--sui-input-medium-height);
|
|
171
|
+
background-color: var(--sui-disabled-background-color);
|
|
172
172
|
-webkit-user-select: none;
|
|
173
173
|
user-select: none;
|
|
174
174
|
cursor: pointer;
|
|
@@ -178,10 +178,10 @@
|
|
|
178
178
|
font-style: italic;
|
|
179
179
|
}
|
|
180
180
|
.combobox div[role=combobox]:hover, .combobox div[role=combobox]:focus {
|
|
181
|
-
background-color: var(--highlight-background-color);
|
|
181
|
+
background-color: var(--sui-highlight-background-color);
|
|
182
182
|
}
|
|
183
183
|
.combobox div[role=combobox][aria-disabled=true] {
|
|
184
|
-
background-color: var(--disabled-background-color);
|
|
184
|
+
background-color: var(--sui-disabled-background-color);
|
|
185
185
|
opacity: 0.4;
|
|
186
186
|
cursor: default;
|
|
187
187
|
}
|
|
@@ -200,9 +200,9 @@
|
|
|
200
200
|
position: fixed;
|
|
201
201
|
z-index: 100;
|
|
202
202
|
border-radius: 4px;
|
|
203
|
-
box-shadow: 0 8px 16px var(--popup-shadow-color);
|
|
203
|
+
box-shadow: 0 8px 16px var(--sui-popup-shadow-color);
|
|
204
204
|
overflow: auto;
|
|
205
|
-
background-color: var(--secondary-background-color);
|
|
205
|
+
background-color: var(--sui-secondary-background-color);
|
|
206
206
|
backdrop-filter: blur(16px);
|
|
207
207
|
transition: opacity 100ms 100ms;
|
|
208
208
|
}
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
* @see https://w3c.github.io/aria/#combobox
|
|
7
7
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/combobox/
|
|
8
8
|
*/
|
|
9
|
-
export default class Combobox extends
|
|
9
|
+
export default class Combobox extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
+
class?: string;
|
|
11
12
|
label?: string;
|
|
12
13
|
position?: PopupPosition;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
value?: string | number;
|
|
15
|
-
class?: string;
|
|
16
16
|
readOnly?: boolean;
|
|
17
17
|
}, {
|
|
18
18
|
change: CustomEvent<any>;
|
|
@@ -25,15 +25,18 @@ export default class Combobox extends SvelteComponentTyped<{
|
|
|
25
25
|
export type ComboboxProps = typeof __propDef.props;
|
|
26
26
|
export type ComboboxEvents = typeof __propDef.events;
|
|
27
27
|
export type ComboboxSlots = typeof __propDef.slots;
|
|
28
|
-
import {
|
|
28
|
+
import { SvelteComponent } from "svelte";
|
|
29
29
|
declare const __propDef: {
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Where to show the dropdown menu.
|
|
32
|
+
* @type {PopupPosition}
|
|
33
|
+
*/ props: {
|
|
31
34
|
[x: string]: any;
|
|
35
|
+
class?: string;
|
|
32
36
|
label?: string;
|
|
33
37
|
position?: PopupPosition;
|
|
34
38
|
disabled?: boolean;
|
|
35
39
|
value?: (string | number | undefined);
|
|
36
|
-
class?: string;
|
|
37
40
|
readOnly?: boolean;
|
|
38
41
|
};
|
|
39
42
|
events: {
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select
|
|
7
7
|
* @see https://w3c.github.io/aria/#combobox
|
|
8
8
|
*/
|
|
9
|
-
export default class Select extends
|
|
9
|
+
export default class Select extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
+
class?: string;
|
|
11
12
|
label?: string;
|
|
12
13
|
value?: string;
|
|
13
|
-
class?: string;
|
|
14
14
|
}, {
|
|
15
15
|
change: CustomEvent<any>;
|
|
16
16
|
} & {
|
|
@@ -22,13 +22,13 @@ export default class Select extends SvelteComponentTyped<{
|
|
|
22
22
|
export type SelectProps = typeof __propDef.props;
|
|
23
23
|
export type SelectEvents = typeof __propDef.events;
|
|
24
24
|
export type SelectSlots = typeof __propDef.slots;
|
|
25
|
-
import {
|
|
25
|
+
import { SvelteComponent } from "svelte";
|
|
26
26
|
declare const __propDef: {
|
|
27
27
|
props: {
|
|
28
28
|
[x: string]: any;
|
|
29
|
+
class?: string;
|
|
29
30
|
label?: string;
|
|
30
31
|
value?: string | null;
|
|
31
|
-
class?: string;
|
|
32
32
|
};
|
|
33
33
|
events: {
|
|
34
34
|
change: CustomEvent<any>;
|
|
@@ -288,10 +288,10 @@
|
|
|
288
288
|
|
|
289
289
|
.base {
|
|
290
290
|
position: relative;
|
|
291
|
-
width: var(--slider-base-width, 200px);
|
|
291
|
+
width: var(--sui-slider-base-width, 200px);
|
|
292
292
|
height: 8px;
|
|
293
293
|
border-radius: 8px;
|
|
294
|
-
background-color: var(--control-border-color);
|
|
294
|
+
background-color: var(--sui-control-border-color);
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
.bar {
|
|
@@ -299,17 +299,17 @@
|
|
|
299
299
|
top: 0;
|
|
300
300
|
height: 8px;
|
|
301
301
|
border-radius: 8px;
|
|
302
|
-
background-color: var(--primary-accent-color-lighter);
|
|
302
|
+
background-color: var(--sui-primary-accent-color-lighter);
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
[role=slider] {
|
|
306
306
|
position: absolute;
|
|
307
307
|
top: 0;
|
|
308
|
-
border: 2px solid var(--primary-accent-color-lighter);
|
|
308
|
+
border: 2px solid var(--sui-primary-accent-color-lighter);
|
|
309
309
|
border-radius: 8px;
|
|
310
310
|
width: 16px;
|
|
311
311
|
height: 16px;
|
|
312
|
-
background-color: var(--primary-accent-color-foreground);
|
|
312
|
+
background-color: var(--sui-primary-accent-color-foreground);
|
|
313
313
|
cursor: pointer;
|
|
314
314
|
transform: translate(-8px, -4px);
|
|
315
315
|
}
|
|
@@ -318,5 +318,5 @@
|
|
|
318
318
|
position: absolute;
|
|
319
319
|
top: 12px;
|
|
320
320
|
transform: translateX(-50%);
|
|
321
|
-
font-size: var(--font-size
|
|
321
|
+
font-size: var(--sui-font-size-x-small);
|
|
322
322
|
}</style>
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/slider/
|
|
10
10
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/slider-multithumb/
|
|
11
11
|
*/
|
|
12
|
-
export default class Slider extends
|
|
12
|
+
export default class Slider extends SvelteComponent<{
|
|
13
13
|
[x: string]: any;
|
|
14
|
-
value?: number;
|
|
15
14
|
class?: string;
|
|
15
|
+
value?: number;
|
|
16
16
|
sliderLabel?: string;
|
|
17
17
|
values?: [number, number];
|
|
18
18
|
sliderLabels?: [string, string];
|
|
@@ -30,12 +30,12 @@ export default class Slider extends SvelteComponentTyped<{
|
|
|
30
30
|
export type SliderProps = typeof __propDef.props;
|
|
31
31
|
export type SliderEvents = typeof __propDef.events;
|
|
32
32
|
export type SliderSlots = typeof __propDef.slots;
|
|
33
|
-
import {
|
|
33
|
+
import { SvelteComponent } from "svelte";
|
|
34
34
|
declare const __propDef: {
|
|
35
35
|
props: {
|
|
36
36
|
[x: string]: any;
|
|
37
|
-
value?: number;
|
|
38
37
|
class?: string;
|
|
38
|
+
value?: number;
|
|
39
39
|
sliderLabel?: string;
|
|
40
40
|
values?: [number, number];
|
|
41
41
|
sliderLabels?: [string, string];
|
|
@@ -69,15 +69,15 @@ button:focus-visible span::before {
|
|
|
69
69
|
outline-offset: 1px;
|
|
70
70
|
outline-width: 2px;
|
|
71
71
|
outline-style: solid;
|
|
72
|
-
outline-color: var(--primary-accent-color-lighter);
|
|
72
|
+
outline-color: var(--sui-primary-accent-color-lighter);
|
|
73
73
|
}
|
|
74
74
|
button[aria-checked=true] span {
|
|
75
|
-
background-color: var(--primary-accent-color);
|
|
75
|
+
background-color: var(--sui-primary-accent-color);
|
|
76
76
|
border-color: transparent;
|
|
77
77
|
}
|
|
78
78
|
button[aria-checked=true] span::before {
|
|
79
79
|
transform: translateX(22px);
|
|
80
|
-
background-color: var(--primary-accent-color-foreground);
|
|
80
|
+
background-color: var(--sui-primary-accent-color-foreground);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
span {
|
|
@@ -87,18 +87,18 @@ span {
|
|
|
87
87
|
padding: 2px;
|
|
88
88
|
display: inline-block;
|
|
89
89
|
border-radius: 16px;
|
|
90
|
-
background-color: var(--control-border-color);
|
|
90
|
+
background-color: var(--sui-control-border-color);
|
|
91
91
|
transition: all 200ms;
|
|
92
92
|
}
|
|
93
93
|
span:hover {
|
|
94
|
-
background-color: var(--highlight-background-color);
|
|
94
|
+
background-color: var(--sui-highlight-background-color);
|
|
95
95
|
}
|
|
96
96
|
span::before {
|
|
97
97
|
display: inline-block;
|
|
98
98
|
width: 16px;
|
|
99
99
|
height: 16px;
|
|
100
100
|
border-radius: 16px;
|
|
101
|
-
background-color: var(--primary-accent-color-foreground);
|
|
101
|
+
background-color: var(--sui-primary-accent-color-foreground);
|
|
102
102
|
transition: all 200ms;
|
|
103
103
|
content: "";
|
|
104
104
|
}</style>
|