@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
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* @see https://w3c.github.io/aria/#switch
|
|
7
7
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/switch/
|
|
8
8
|
*/
|
|
9
|
-
export default class Switch extends
|
|
9
|
+
export default class Switch extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
+
class?: string;
|
|
11
12
|
label?: string;
|
|
12
13
|
disabled?: boolean;
|
|
13
|
-
class?: string;
|
|
14
14
|
checked?: boolean;
|
|
15
15
|
}, {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -21,13 +21,13 @@ export default class Switch extends SvelteComponentTyped<{
|
|
|
21
21
|
export type SwitchProps = typeof __propDef.props;
|
|
22
22
|
export type SwitchEvents = typeof __propDef.events;
|
|
23
23
|
export type SwitchSlots = typeof __propDef.slots;
|
|
24
|
-
import {
|
|
24
|
+
import { SvelteComponent } from "svelte";
|
|
25
25
|
declare const __propDef: {
|
|
26
26
|
props: {
|
|
27
27
|
[x: string]: any;
|
|
28
|
+
class?: string;
|
|
28
29
|
label?: string;
|
|
29
30
|
disabled?: boolean;
|
|
30
|
-
class?: string;
|
|
31
31
|
checked?: boolean;
|
|
32
32
|
};
|
|
33
33
|
events: {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody
|
|
7
7
|
* @see https://w3c.github.io/aria/#rowgroup
|
|
8
8
|
*/
|
|
9
|
-
export default class TableBody extends
|
|
9
|
+
export default class TableBody extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
}, {
|
|
@@ -18,7 +18,7 @@ export default class TableBody extends SvelteComponentTyped<{
|
|
|
18
18
|
export type TableBodyProps = typeof __propDef.props;
|
|
19
19
|
export type TableBodyEvents = typeof __propDef.events;
|
|
20
20
|
export type TableBodySlots = typeof __propDef.slots;
|
|
21
|
-
import {
|
|
21
|
+
import { SvelteComponent } from "svelte";
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td
|
|
7
7
|
* @see https://w3c.github.io/aria/#gridcell
|
|
8
8
|
*/
|
|
9
|
-
export default class TableCell extends
|
|
9
|
+
export default class TableCell extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
}, {
|
|
@@ -18,7 +18,7 @@ export default class TableCell extends SvelteComponentTyped<{
|
|
|
18
18
|
export type TableCellProps = typeof __propDef.props;
|
|
19
19
|
export type TableCellEvents = typeof __propDef.events;
|
|
20
20
|
export type TableCellSlots = typeof __propDef.slots;
|
|
21
|
-
import {
|
|
21
|
+
import { SvelteComponent } from "svelte";
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th
|
|
7
7
|
* @see https://w3c.github.io/aria/#columnheader
|
|
8
8
|
*/
|
|
9
|
-
export default class TableColHeader extends
|
|
9
|
+
export default class TableColHeader extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
}, {
|
|
@@ -18,7 +18,7 @@ export default class TableColHeader extends SvelteComponentTyped<{
|
|
|
18
18
|
export type TableColHeaderProps = typeof __propDef.props;
|
|
19
19
|
export type TableColHeaderEvents = typeof __propDef.events;
|
|
20
20
|
export type TableColHeaderSlots = typeof __propDef.slots;
|
|
21
|
-
import {
|
|
21
|
+
import { SvelteComponent } from "svelte";
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot
|
|
7
7
|
* @see https://w3c.github.io/aria/#rowgroup
|
|
8
8
|
*/
|
|
9
|
-
export default class TableFoot extends
|
|
9
|
+
export default class TableFoot extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
}, {
|
|
@@ -18,7 +18,7 @@ export default class TableFoot extends SvelteComponentTyped<{
|
|
|
18
18
|
export type TableFootProps = typeof __propDef.props;
|
|
19
19
|
export type TableFootEvents = typeof __propDef.events;
|
|
20
20
|
export type TableFootSlots = typeof __propDef.slots;
|
|
21
|
-
import {
|
|
21
|
+
import { SvelteComponent } from "svelte";
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead
|
|
7
7
|
* @see https://w3c.github.io/aria/#rowgroup
|
|
8
8
|
*/
|
|
9
|
-
export default class TableHead extends
|
|
9
|
+
export default class TableHead extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
}, {
|
|
@@ -18,7 +18,7 @@ export default class TableHead extends SvelteComponentTyped<{
|
|
|
18
18
|
export type TableHeadProps = typeof __propDef.props;
|
|
19
19
|
export type TableHeadEvents = typeof __propDef.events;
|
|
20
20
|
export type TableHeadSlots = typeof __propDef.slots;
|
|
21
|
-
import {
|
|
21
|
+
import { SvelteComponent } from "svelte";
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th
|
|
7
7
|
* @see https://w3c.github.io/aria/#rowheader
|
|
8
8
|
*/
|
|
9
|
-
export default class TableRowHeader extends
|
|
9
|
+
export default class TableRowHeader extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
}, {
|
|
@@ -18,7 +18,7 @@ export default class TableRowHeader extends SvelteComponentTyped<{
|
|
|
18
18
|
export type TableRowHeaderProps = typeof __propDef.props;
|
|
19
19
|
export type TableRowHeaderEvents = typeof __propDef.events;
|
|
20
20
|
export type TableRowHeaderSlots = typeof __propDef.slots;
|
|
21
|
-
import {
|
|
21
|
+
import { SvelteComponent } from "svelte";
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr
|
|
7
7
|
* @see https://w3c.github.io/aria/#row
|
|
8
8
|
*/
|
|
9
|
-
export default class TableRow extends
|
|
9
|
+
export default class TableRow extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
}, {
|
|
@@ -20,7 +20,7 @@ export default class TableRow extends SvelteComponentTyped<{
|
|
|
20
20
|
export type TableRowProps = typeof __propDef.props;
|
|
21
21
|
export type TableRowEvents = typeof __propDef.events;
|
|
22
22
|
export type TableRowSlots = typeof __propDef.slots;
|
|
23
|
-
import {
|
|
23
|
+
import { SvelteComponent } from "svelte";
|
|
24
24
|
declare const __propDef: {
|
|
25
25
|
props: {
|
|
26
26
|
[x: string]: any;
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
.table:global(.data) :global(.table-col-header),
|
|
40
40
|
.table:global(.data) :global(.table-row-header),
|
|
41
41
|
.table:global(.data) :global(.table-cell) {
|
|
42
|
-
border: 1px solid var(--secondary-border-color);
|
|
42
|
+
border: 1px solid var(--sui-secondary-border-color);
|
|
43
43
|
padding: 8px 8px;
|
|
44
44
|
}</style>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table
|
|
7
7
|
* @see https://w3c.github.io/aria/#grid
|
|
8
8
|
*/
|
|
9
|
-
export default class Table extends
|
|
9
|
+
export default class Table extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
element?: HTMLElement;
|
|
@@ -19,7 +19,7 @@ export default class Table extends SvelteComponentTyped<{
|
|
|
19
19
|
export type TableProps = typeof __propDef.props;
|
|
20
20
|
export type TableEvents = typeof __propDef.events;
|
|
21
21
|
export type TableSlots = typeof __propDef.slots;
|
|
22
|
-
import {
|
|
22
|
+
import { SvelteComponent } from "svelte";
|
|
23
23
|
declare const __propDef: {
|
|
24
24
|
props: {
|
|
25
25
|
[x: string]: any;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
<style>.tab-list {
|
|
43
43
|
display: flex;
|
|
44
44
|
align-items: center;
|
|
45
|
-
border-color: var(--control-border-color);
|
|
45
|
+
border-color: var(--sui-control-border-color);
|
|
46
46
|
}
|
|
47
47
|
.tab-list[aria-orientation=horizontal] {
|
|
48
48
|
gap: 16px;
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
border-color: transparent;
|
|
71
71
|
padding: 0;
|
|
72
72
|
border-radius: 0;
|
|
73
|
-
height: var(--tab
|
|
73
|
+
height: var(--sui-tab-medium-height);
|
|
74
74
|
}
|
|
75
75
|
.tab-list :global(button[aria-selected="true"]) {
|
|
76
|
-
border-color: var(--primary-accent-color-lighter);
|
|
76
|
+
border-color: var(--sui-primary-accent-color-lighter);
|
|
77
77
|
}</style>
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* @see https://w3c.github.io/aria/#tablist
|
|
7
7
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
|
|
8
8
|
*/
|
|
9
|
-
export default class TabList extends
|
|
9
|
+
export default class TabList extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
name?: string;
|
|
12
11
|
class?: string;
|
|
12
|
+
name?: string;
|
|
13
13
|
element?: HTMLElement;
|
|
14
14
|
orientation?: "vertical" | "horizontal";
|
|
15
15
|
}, {
|
|
@@ -35,12 +35,12 @@ export default class TabList extends SvelteComponentTyped<{
|
|
|
35
35
|
export type TabListProps = typeof __propDef.props;
|
|
36
36
|
export type TabListEvents = typeof __propDef.events;
|
|
37
37
|
export type TabListSlots = typeof __propDef.slots;
|
|
38
|
-
import {
|
|
38
|
+
import { SvelteComponent } from "svelte";
|
|
39
39
|
declare const __propDef: {
|
|
40
40
|
props: {
|
|
41
41
|
[x: string]: any;
|
|
42
|
-
name?: string;
|
|
43
42
|
class?: string;
|
|
43
|
+
name?: string;
|
|
44
44
|
element?: HTMLElement | null;
|
|
45
45
|
orientation?: ('horizontal' | 'vertical');
|
|
46
46
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://w3c.github.io/aria/#tabpanel
|
|
7
7
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
|
|
8
8
|
*/
|
|
9
|
-
export default class TabPanel extends
|
|
9
|
+
export default class TabPanel extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
}, {
|
|
@@ -18,7 +18,7 @@ export default class TabPanel extends SvelteComponentTyped<{
|
|
|
18
18
|
export type TabPanelProps = typeof __propDef.props;
|
|
19
19
|
export type TabPanelEvents = typeof __propDef.events;
|
|
20
20
|
export type TabPanelSlots = typeof __propDef.slots;
|
|
21
|
-
import {
|
|
21
|
+
import { SvelteComponent } from "svelte";
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
24
|
[x: string]: any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://w3c.github.io/aria/#tab
|
|
7
7
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
|
|
8
8
|
*/
|
|
9
|
-
export default class Tab extends
|
|
9
|
+
export default class Tab extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
class?: string;
|
|
12
12
|
}, {
|
|
@@ -24,7 +24,7 @@ export default class Tab extends SvelteComponentTyped<{
|
|
|
24
24
|
export type TabProps = typeof __propDef.props;
|
|
25
25
|
export type TabEvents = typeof __propDef.events;
|
|
26
26
|
export type TabSlots = typeof __propDef.slots;
|
|
27
|
-
import {
|
|
27
|
+
import { SvelteComponent } from "svelte";
|
|
28
28
|
declare const __propDef: {
|
|
29
29
|
props: {
|
|
30
30
|
[x: string]: any;
|
|
@@ -69,7 +69,7 @@ div :global([role="toolbar"]) {
|
|
|
69
69
|
gap: 8px;
|
|
70
70
|
border-radius: 4px 4px 0 0;
|
|
71
71
|
padding: 8px;
|
|
72
|
-
background-color: var(--tertiary-background-color);
|
|
72
|
+
background-color: var(--sui-tertiary-background-color);
|
|
73
73
|
}
|
|
74
74
|
div :global([role="toolbar"]) :global(button) {
|
|
75
75
|
flex: none;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} MarkdownEditorEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} MarkdownEditorSlots */
|
|
4
4
|
/** A Markdown text editor. */
|
|
5
|
-
export default class MarkdownEditor extends
|
|
5
|
+
export default class MarkdownEditor extends SvelteComponent<{
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
value?: string;
|
|
8
8
|
}, {
|
|
@@ -12,7 +12,7 @@ export default class MarkdownEditor extends SvelteComponentTyped<{
|
|
|
12
12
|
export type MarkdownEditorProps = typeof __propDef.props;
|
|
13
13
|
export type MarkdownEditorEvents = typeof __propDef.events;
|
|
14
14
|
export type MarkdownEditorSlots = typeof __propDef.slots;
|
|
15
|
-
import {
|
|
15
|
+
import { SvelteComponent } from "svelte";
|
|
16
16
|
declare const __propDef: {
|
|
17
17
|
props: {
|
|
18
18
|
disabled?: boolean;
|
|
@@ -112,9 +112,9 @@
|
|
|
112
112
|
.number-input :global(button) {
|
|
113
113
|
flex: none;
|
|
114
114
|
border-width: 1px;
|
|
115
|
-
border-color: var(--control-border-color);
|
|
115
|
+
border-color: var(--sui-control-border-color);
|
|
116
116
|
width: 32px;
|
|
117
|
-
height: var(--input
|
|
117
|
+
height: var(--sui-input-medium-height);
|
|
118
118
|
}
|
|
119
119
|
.number-input :global(button):first-of-type {
|
|
120
120
|
border-radius: 0;
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
border-radius: 0 4px 4px 0;
|
|
125
125
|
}
|
|
126
126
|
.number-input :global(button) :global(.icon) {
|
|
127
|
-
font-size: var(--font-size
|
|
127
|
+
font-size: var(--sui-font-size-xx-large);
|
|
128
128
|
}</style>
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number
|
|
7
7
|
* @see https://w3c.github.io/aria/#textbox
|
|
8
8
|
*/
|
|
9
|
-
export default class NumberInput extends
|
|
9
|
+
export default class NumberInput extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
+
class?: string;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
value?: string;
|
|
13
|
-
class?: string;
|
|
14
14
|
min?: any;
|
|
15
15
|
max?: any;
|
|
16
16
|
step?: number;
|
|
@@ -24,13 +24,13 @@ export default class NumberInput extends SvelteComponentTyped<{
|
|
|
24
24
|
export type NumberInputProps = typeof __propDef.props;
|
|
25
25
|
export type NumberInputEvents = typeof __propDef.events;
|
|
26
26
|
export type NumberInputSlots = 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;
|
|
31
32
|
disabled?: boolean;
|
|
32
33
|
value?: string | null;
|
|
33
|
-
class?: string;
|
|
34
34
|
min?: any;
|
|
35
35
|
max?: any;
|
|
36
36
|
step?: number;
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
flex: none;
|
|
73
73
|
margin-left: -1px;
|
|
74
74
|
border-width: 1px;
|
|
75
|
-
border-color: var(--control-border-color);
|
|
76
|
-
height: var(--input
|
|
75
|
+
border-color: var(--sui-control-border-color);
|
|
76
|
+
height: var(--sui-input-medium-height);
|
|
77
77
|
aspect-ratio: 1/1;
|
|
78
78
|
}
|
|
79
79
|
.password-input :global(button):last-child {
|
|
80
80
|
border-radius: 0 4px 4px 0;
|
|
81
81
|
}
|
|
82
82
|
.password-input :global(button) :global(.icon) {
|
|
83
|
-
font-size: var(--font-size
|
|
83
|
+
font-size: var(--sui-font-size-xx-large);
|
|
84
84
|
}</style>
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password
|
|
8
8
|
* @see https://w3c.github.io/aria/#textbox
|
|
9
9
|
*/
|
|
10
|
-
export default class PasswordInput extends
|
|
10
|
+
export default class PasswordInput extends SvelteComponent<{
|
|
11
11
|
[x: string]: any;
|
|
12
|
-
value?: string;
|
|
13
12
|
class?: string;
|
|
13
|
+
value?: string;
|
|
14
14
|
}, {
|
|
15
15
|
input: Event;
|
|
16
16
|
keypress: KeyboardEvent;
|
|
@@ -22,12 +22,12 @@ export default class PasswordInput extends SvelteComponentTyped<{
|
|
|
22
22
|
export type PasswordInputProps = typeof __propDef.props;
|
|
23
23
|
export type PasswordInputEvents = typeof __propDef.events;
|
|
24
24
|
export type PasswordInputSlots = typeof __propDef.slots;
|
|
25
|
-
import {
|
|
25
|
+
import { SvelteComponent } from "svelte";
|
|
26
26
|
declare const __propDef: {
|
|
27
27
|
props: {
|
|
28
28
|
[x: string]: any;
|
|
29
|
-
value?: string | null;
|
|
30
29
|
class?: string;
|
|
30
|
+
value?: string | null;
|
|
31
31
|
};
|
|
32
32
|
events: {
|
|
33
33
|
input: Event;
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
position: relative;
|
|
72
72
|
}
|
|
73
73
|
[role=search] :global(.icon) {
|
|
74
|
-
font-size: var(--font-size
|
|
74
|
+
font-size: var(--sui-font-size-xx-large);
|
|
75
75
|
opacity: 0.5;
|
|
76
76
|
}
|
|
77
77
|
[role=search] > :global(.icon) {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
position: absolute;
|
|
84
84
|
inset: 0 0 auto auto;
|
|
85
85
|
z-index: 2;
|
|
86
|
-
height: var(--button
|
|
86
|
+
height: var(--sui-button-medium-height);
|
|
87
87
|
}
|
|
88
88
|
[role=search] :global(.label) {
|
|
89
89
|
inset: 0 36px;
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/search
|
|
8
8
|
* @see https://w3c.github.io/aria/#search
|
|
9
9
|
*/
|
|
10
|
-
export default class SearchBar extends
|
|
10
|
+
export default class SearchBar extends SvelteComponent<{
|
|
11
11
|
[x: string]: any;
|
|
12
|
+
class?: string;
|
|
12
13
|
focus?: () => void;
|
|
13
14
|
value?: string;
|
|
14
|
-
class?: string;
|
|
15
15
|
}, {
|
|
16
16
|
input: Event;
|
|
17
17
|
keydown: KeyboardEvent;
|
|
@@ -32,13 +32,13 @@ export default class SearchBar extends SvelteComponentTyped<{
|
|
|
32
32
|
export type SearchBarProps = typeof __propDef.props;
|
|
33
33
|
export type SearchBarEvents = typeof __propDef.events;
|
|
34
34
|
export type SearchBarSlots = typeof __propDef.slots;
|
|
35
|
-
import {
|
|
35
|
+
import { SvelteComponent } from "svelte";
|
|
36
36
|
declare const __propDef: {
|
|
37
37
|
props: {
|
|
38
38
|
[x: string]: any;
|
|
39
|
+
class?: string;
|
|
39
40
|
focus?: () => void;
|
|
40
41
|
value?: string;
|
|
41
|
-
class?: string;
|
|
42
42
|
};
|
|
43
43
|
events: {
|
|
44
44
|
input: Event;
|
|
@@ -103,9 +103,9 @@ textarea {
|
|
|
103
103
|
display: block;
|
|
104
104
|
margin: 0;
|
|
105
105
|
border-width: 1px;
|
|
106
|
-
border-color: var(--control-border-color);
|
|
107
|
-
border-radius: var(--input
|
|
108
|
-
background-color: var(--control-background-color);
|
|
106
|
+
border-color: var(--sui-control-border-color);
|
|
107
|
+
border-radius: var(--sui-input-medium-border-radius);
|
|
108
|
+
background-color: var(--sui-control-background-color);
|
|
109
109
|
padding: 8px;
|
|
110
110
|
width: 100%;
|
|
111
111
|
min-height: 8em;
|
|
@@ -120,10 +120,10 @@ textarea.resizing {
|
|
|
120
120
|
transition-duration: 0ms;
|
|
121
121
|
}
|
|
122
122
|
textarea:focus {
|
|
123
|
-
border-color: var(--primary-accent-color);
|
|
123
|
+
border-color: var(--sui-primary-accent-color);
|
|
124
124
|
}
|
|
125
125
|
textarea:disabled {
|
|
126
|
-
background-color: var(--disabled-background-color);
|
|
126
|
+
background-color: var(--sui-disabled-background-color);
|
|
127
127
|
opacity: 0.4;
|
|
128
128
|
cursor: default;
|
|
129
129
|
}</style>
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
|
|
7
7
|
* @see https://w3c.github.io/aria/#textbox
|
|
8
8
|
*/
|
|
9
|
-
export default class TextArea extends
|
|
9
|
+
export default class TextArea extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
+
class?: string;
|
|
11
12
|
name?: string;
|
|
12
13
|
value?: string;
|
|
13
|
-
class?: string;
|
|
14
14
|
element?: HTMLTextAreaElement;
|
|
15
15
|
autoResize?: boolean;
|
|
16
16
|
}, {
|
|
@@ -39,13 +39,13 @@ export default class TextArea extends SvelteComponentTyped<{
|
|
|
39
39
|
export type TextAreaProps = typeof __propDef.props;
|
|
40
40
|
export type TextAreaEvents = typeof __propDef.events;
|
|
41
41
|
export type TextAreaSlots = typeof __propDef.slots;
|
|
42
|
-
import {
|
|
42
|
+
import { SvelteComponent } from "svelte";
|
|
43
43
|
declare const __propDef: {
|
|
44
44
|
props: {
|
|
45
45
|
[x: string]: any;
|
|
46
|
+
class?: string;
|
|
46
47
|
name?: string;
|
|
47
48
|
value?: string | null;
|
|
48
|
-
class?: string;
|
|
49
49
|
element?: HTMLTextAreaElement | null;
|
|
50
50
|
autoResize?: boolean;
|
|
51
51
|
};
|
|
@@ -86,12 +86,12 @@ input {
|
|
|
86
86
|
display: inline-block;
|
|
87
87
|
flex: auto;
|
|
88
88
|
border-width: 1px;
|
|
89
|
-
border-color: var(--control-border-color);
|
|
90
|
-
border-radius: var(--input
|
|
89
|
+
border-color: var(--sui-control-border-color);
|
|
90
|
+
border-radius: var(--sui-input-medium-border-radius);
|
|
91
91
|
padding: 0 8px;
|
|
92
92
|
min-width: 0;
|
|
93
|
-
height: var(--input
|
|
94
|
-
background-color: var(--control-background-color);
|
|
93
|
+
height: var(--sui-input-medium-height);
|
|
94
|
+
background-color: var(--sui-control-background-color);
|
|
95
95
|
color: inherit;
|
|
96
96
|
font-family: inherit;
|
|
97
97
|
font-size: inherit;
|
|
@@ -99,14 +99,14 @@ input {
|
|
|
99
99
|
transition: all 200ms;
|
|
100
100
|
}
|
|
101
101
|
input:focus {
|
|
102
|
-
border-color: var(--primary-accent-color);
|
|
102
|
+
border-color: var(--sui-primary-accent-color);
|
|
103
103
|
}
|
|
104
104
|
input:read-only {
|
|
105
|
-
color: var(--tertiary-foreground-color);
|
|
106
|
-
border-color: var(--control-border-color) !important;
|
|
105
|
+
color: var(--sui-tertiary-foreground-color);
|
|
106
|
+
border-color: var(--sui-control-border-color) !important;
|
|
107
107
|
}
|
|
108
108
|
input:disabled {
|
|
109
|
-
background-color: var(--disabled-background-color);
|
|
109
|
+
background-color: var(--sui-disabled-background-color);
|
|
110
110
|
opacity: 0.4;
|
|
111
111
|
cursor: default;
|
|
112
112
|
}
|
|
@@ -117,15 +117,15 @@ input ~ :global(button) {
|
|
|
117
117
|
flex: none;
|
|
118
118
|
margin-left: -1px;
|
|
119
119
|
border-width: 1px;
|
|
120
|
-
border-color: var(--control-border-color);
|
|
121
|
-
height: var(--input
|
|
120
|
+
border-color: var(--sui-control-border-color);
|
|
121
|
+
height: var(--sui-input-medium-height);
|
|
122
122
|
aspect-ratio: 1/1;
|
|
123
123
|
}
|
|
124
124
|
input ~ :global(button):last-child {
|
|
125
125
|
border-radius: 0 4px 4px 0;
|
|
126
126
|
}
|
|
127
127
|
input ~ :global(button) :global(.icon) {
|
|
128
|
-
font-size: var(--font-size
|
|
128
|
+
font-size: var(--sui-font-size-xx-large);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.label {
|
|
@@ -133,9 +133,9 @@ input ~ :global(button) :global(.icon) {
|
|
|
133
133
|
inset: 0 8px;
|
|
134
134
|
z-index: 2;
|
|
135
135
|
display: flex;
|
|
136
|
-
justify-content: var(--input-label-align, flex-start);
|
|
136
|
+
justify-content: var(--sui-input-label-align, flex-start);
|
|
137
137
|
align-items: center;
|
|
138
|
-
color: var(--primary-foreground-color);
|
|
138
|
+
color: var(--sui-primary-foreground-color);
|
|
139
139
|
opacity: 0.5;
|
|
140
140
|
pointer-events: none;
|
|
141
141
|
}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text
|
|
7
7
|
* @see https://w3c.github.io/aria/#textbox
|
|
8
8
|
*/
|
|
9
|
-
export default class TextInput extends
|
|
9
|
+
export default class TextInput extends SvelteComponent<{
|
|
10
10
|
[x: string]: any;
|
|
11
|
-
|
|
11
|
+
class?: string;
|
|
12
12
|
name?: string;
|
|
13
|
+
disabled?: boolean;
|
|
13
14
|
value?: string | number;
|
|
14
|
-
class?: string;
|
|
15
15
|
element?: HTMLInputElement;
|
|
16
16
|
role?: "textbox" | "searchbox" | "combobox" | "spinbutton";
|
|
17
17
|
readOnly?: boolean;
|
|
@@ -49,14 +49,14 @@ export default class TextInput extends SvelteComponentTyped<{
|
|
|
49
49
|
export type TextInputProps = typeof __propDef.props;
|
|
50
50
|
export type TextInputEvents = typeof __propDef.events;
|
|
51
51
|
export type TextInputSlots = typeof __propDef.slots;
|
|
52
|
-
import {
|
|
52
|
+
import { SvelteComponent } from "svelte";
|
|
53
53
|
declare const __propDef: {
|
|
54
54
|
props: {
|
|
55
55
|
[x: string]: any;
|
|
56
|
-
|
|
56
|
+
class?: string;
|
|
57
57
|
name?: string;
|
|
58
|
+
disabled?: boolean;
|
|
58
59
|
value?: (string | number | undefined);
|
|
59
|
-
class?: string;
|
|
60
60
|
element?: HTMLInputElement | null;
|
|
61
61
|
role?: ('textbox' | 'searchbox' | 'combobox' | 'spinbutton');
|
|
62
62
|
readOnly?: boolean;
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
}
|
|
40
40
|
[role=toolbar].primary {
|
|
41
41
|
--toolbar-size: 48px;
|
|
42
|
-
background-color: var(--secondary-background-color);
|
|
42
|
+
background-color: var(--sui-secondary-background-color);
|
|
43
43
|
}
|
|
44
44
|
[role=toolbar].secondary {
|
|
45
|
-
background-color: var(--tertiary-background-color);
|
|
45
|
+
background-color: var(--sui-tertiary-background-color);
|
|
46
46
|
}
|
|
47
47
|
[role=toolbar][aria-orientation=horizontal] {
|
|
48
48
|
height: var(--toolbar-size);
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
}
|
|
54
54
|
[role=toolbar]:not(:last-child) {
|
|
55
55
|
border-width: 0 0 1px;
|
|
56
|
-
border-color: var(--primary-border-color);
|
|
56
|
+
border-color: var(--sui-primary-border-color);
|
|
57
57
|
}
|
|
58
58
|
[role=toolbar] :global(button[role="button"][aria-pressed="true"]),
|
|
59
59
|
[role=toolbar] :global(button[role="button"][aria-checked="true"]) {
|
|
60
|
-
background-color: var(--highlight-background-color);
|
|
60
|
+
background-color: var(--sui-highlight-background-color);
|
|
61
61
|
}
|
|
62
62
|
[role=toolbar] :global(h2) {
|
|
63
63
|
display: flex;
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
gap: 8px;
|
|
66
66
|
margin: 0;
|
|
67
67
|
padding: 0 8px;
|
|
68
|
-
font-size: var(--font-size
|
|
68
|
+
font-size: var(--sui-font-size-large);
|
|
69
69
|
}
|
|
70
70
|
[role=toolbar] :global(h2) :global(span) {
|
|
71
|
-
font-size: var(--font-size
|
|
71
|
+
font-size: var(--sui-font-size-small);
|
|
72
72
|
font-weight: normal;
|
|
73
73
|
opacity: 0.8;
|
|
74
74
|
}</style>
|