@geoffcox/sterling-svelte 0.0.16 → 0.0.18
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/{buttons/Button.svelte → Button.svelte} +27 -27
- package/{inputs/Checkbox.svelte → Checkbox.svelte} +26 -21
- package/{inputs/Checkbox.svelte.d.ts → Checkbox.svelte.d.ts} +2 -1
- package/{surfaces/Dialog.svelte → Dialog.svelte} +34 -21
- package/Field.svelte +257 -0
- package/Field.svelte.d.ts +63 -0
- package/Field.types.d.ts +1 -0
- package/Input.svelte +115 -0
- package/{inputs/Input.svelte.d.ts → Input.svelte.d.ts} +8 -3
- package/Label.svelte +51 -0
- package/Label.svelte.d.ts +41 -0
- package/List.constants.d.ts +1 -0
- package/List.constants.js +1 -0
- package/List.svelte +293 -0
- package/List.svelte.d.ts +63 -0
- package/List.types.d.ts +6 -0
- package/ListItem.svelte +89 -0
- package/ListItem.svelte.d.ts +51 -0
- package/{containers/Menu.svelte → Menu.svelte} +42 -27
- package/{containers/MenuBar.svelte → MenuBar.svelte} +13 -13
- package/{buttons/MenuButton.svelte → MenuButton.svelte} +17 -17
- package/{buttons/MenuButton.svelte.d.ts → MenuButton.svelte.d.ts} +1 -1
- package/{containers/MenuItem.svelte → MenuItem.svelte} +42 -54
- package/{containers/MenuItem.svelte.d.ts → MenuItem.svelte.d.ts} +2 -2
- package/{containers/MenuSeparator.svelte → MenuSeparator.svelte} +2 -2
- package/Menus.types.d.ts +22 -0
- package/{containers/Menus.utils.d.ts → Menus.utils.d.ts} +2 -2
- package/{containers/Menus.utils.js → Menus.utils.js} +6 -6
- package/{display/Progress.svelte → Progress.svelte} +28 -52
- package/{display/Progress.svelte.d.ts → Progress.svelte.d.ts} +1 -3
- package/Progress.types.d.ts +1 -0
- package/{inputs/Radio.svelte → Radio.svelte} +34 -29
- package/{inputs/Radio.svelte.d.ts → Radio.svelte.d.ts} +7 -2
- package/{inputs/Select.svelte → Select.svelte} +112 -130
- package/Select.svelte.d.ts +53 -0
- package/{inputs/Slider.svelte → Slider.svelte} +90 -86
- package/Slider.svelte.d.ts +51 -0
- package/{inputs/Switch.svelte → Switch.svelte} +43 -41
- package/Tab.svelte +181 -0
- package/{containers/Tab.svelte.d.ts → Tab.svelte.d.ts} +12 -15
- package/TabList.svelte +247 -0
- package/{containers/TabList.svelte.d.ts → TabList.svelte.d.ts} +21 -21
- package/TabList.types.d.ts +7 -0
- package/TextArea.svelte +113 -0
- package/{inputs/TextArea.svelte.d.ts → TextArea.svelte.d.ts} +3 -6
- package/TextArea.types.js +1 -0
- package/Tooltip.svelte +182 -0
- package/Tooltip.svelte.d.ts +24 -0
- package/Tooltip.types.d.ts +3 -0
- package/Tooltip.types.js +1 -0
- package/Tree.constants.d.ts +2 -0
- package/Tree.constants.js +2 -0
- package/Tree.svelte +114 -0
- package/Tree.svelte.d.ts +24 -0
- package/Tree.types.d.ts +28 -0
- package/Tree.types.js +1 -0
- package/{containers/TreeChevron.svelte → TreeChevron.svelte} +3 -3
- package/TreeItem.svelte +276 -0
- package/TreeItem.svelte.d.ts +65 -0
- package/{containers/TreeItem.svelte → TreeItemDisplay.svelte} +18 -18
- package/{containers/TreeItem.svelte.d.ts → TreeItemDisplay.svelte.d.ts} +11 -14
- package/{forwardEvents.js → actions/forwardEvents.js} +0 -2
- package/index.d.ts +44 -31
- package/index.js +40 -25
- package/package.json +45 -41
- package/theme/darkTheme.js +73 -74
- package/theme/lightTheme.js +76 -77
- package/containers/List.svelte +0 -249
- package/containers/List.svelte.d.ts +0 -68
- package/containers/ListItem.svelte +0 -48
- package/containers/ListItem.svelte.d.ts +0 -26
- package/containers/Menus.types.d.ts +0 -22
- package/containers/Tab.svelte +0 -327
- package/containers/TabList.svelte +0 -126
- package/containers/Tabs.types.d.ts +0 -12
- package/containers/Tree.constants.d.ts +0 -2
- package/containers/Tree.constants.js +0 -2
- package/containers/Tree.svelte +0 -222
- package/containers/Tree.svelte.d.ts +0 -50
- package/containers/Tree.types.d.ts +0 -47
- package/containers/TreeNode.svelte +0 -266
- package/containers/TreeNode.svelte.d.ts +0 -43
- package/display/Label.svelte +0 -27
- package/display/Label.svelte.d.ts +0 -20
- package/display/Progress.types.d.ts +0 -1
- package/inputs/Input.svelte +0 -129
- package/inputs/Select.svelte.d.ts +0 -62
- package/inputs/Slider.svelte.d.ts +0 -28
- package/inputs/TextArea.svelte +0 -154
- package/surfaces/CloseX.svelte +0 -5
- package/surfaces/CloseX.svelte.d.ts +0 -23
- package/surfaces/Portal.svelte +0 -14
- package/surfaces/Portal.svelte.d.ts +0 -21
- /package/{buttons/Button.svelte.d.ts → Button.svelte.d.ts} +0 -0
- /package/{buttons/Button.types.d.ts → Button.types.d.ts} +0 -0
- /package/{buttons/Button.types.js → Button.types.js} +0 -0
- /package/{surfaces/Dialog.svelte.d.ts → Dialog.svelte.d.ts} +0 -0
- /package/{containers/Menus.types.js → Field.types.js} +0 -0
- /package/{containers/Tabs.types.js → List.types.js} +0 -0
- /package/{containers/Menu.svelte.d.ts → Menu.svelte.d.ts} +0 -0
- /package/{containers/MenuBar.svelte.d.ts → MenuBar.svelte.d.ts} +0 -0
- /package/{containers/MenuItemDisplay.svelte → MenuItemDisplay.svelte} +0 -0
- /package/{containers/MenuItemDisplay.svelte.d.ts → MenuItemDisplay.svelte.d.ts} +0 -0
- /package/{containers/MenuSeparator.svelte.d.ts → MenuSeparator.svelte.d.ts} +0 -0
- /package/{containers/Menus.constants.d.ts → Menus.constants.d.ts} +0 -0
- /package/{containers/Menus.constants.js → Menus.constants.js} +0 -0
- /package/{containers/Tree.types.js → Menus.types.js} +0 -0
- /package/{display/Progress.types.js → Progress.types.js} +0 -0
- /package/{inputs/Switch.svelte.d.ts → Switch.svelte.d.ts} +0 -0
- /package/{containers/Tabs.constants.d.ts → TabList.constants.d.ts} +0 -0
- /package/{containers/Tabs.constants.js → TabList.constants.js} +0 -0
- /package/{inputs/TextArea.types.js → TabList.types.js} +0 -0
- /package/{inputs/TextArea.types.d.ts → TextArea.types.d.ts} +0 -0
- /package/{containers/TreeChevron.svelte.d.ts → TreeChevron.svelte.d.ts} +0 -0
- /package/{clickOutside.d.ts → actions/clickOutside.d.ts} +0 -0
- /package/{clickOutside.js → actions/clickOutside.js} +0 -0
- /package/{forwardEvents.d.ts → actions/forwardEvents.d.ts} +0 -0
- /package/{portal.d.ts → actions/portal.d.ts} +0 -0
- /package/{portal.js → actions/portal.js} +0 -0
package/inputs/Input.svelte
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
<script>import { v4 as uuid } from "uuid";
|
|
2
|
-
import Label from "../display/Label.svelte";
|
|
3
|
-
export let value = "";
|
|
4
|
-
export let disabled = false;
|
|
5
|
-
const inputId = uuid();
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<!--
|
|
9
|
-
@component
|
|
10
|
-
A styled HTML input element with optional label.
|
|
11
|
-
-->
|
|
12
|
-
<div class="sterling-input">
|
|
13
|
-
{#if $$slots.label}
|
|
14
|
-
<Label {disabled} for={inputId}>
|
|
15
|
-
<slot name="label" />
|
|
16
|
-
</Label>
|
|
17
|
-
{/if}
|
|
18
|
-
<input
|
|
19
|
-
bind:value
|
|
20
|
-
on:blur
|
|
21
|
-
on:click
|
|
22
|
-
on:change
|
|
23
|
-
on:copy
|
|
24
|
-
on:cut
|
|
25
|
-
on:paste
|
|
26
|
-
on:dblclick
|
|
27
|
-
on:focus
|
|
28
|
-
on:focusin
|
|
29
|
-
on:focusout
|
|
30
|
-
on:input
|
|
31
|
-
on:invalid
|
|
32
|
-
on:keydown
|
|
33
|
-
on:keypress
|
|
34
|
-
on:keyup
|
|
35
|
-
on:mousedown
|
|
36
|
-
on:mouseenter
|
|
37
|
-
on:mouseleave
|
|
38
|
-
on:mousemove
|
|
39
|
-
on:mouseover
|
|
40
|
-
on:mouseout
|
|
41
|
-
on:mouseup
|
|
42
|
-
on:select
|
|
43
|
-
on:submit
|
|
44
|
-
on:reset
|
|
45
|
-
on:wheel
|
|
46
|
-
{...$$restProps}
|
|
47
|
-
{disabled}
|
|
48
|
-
id={inputId}
|
|
49
|
-
/>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<style>
|
|
53
|
-
.sterling-input {
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
background-color: var(--Input__background-color);
|
|
57
|
-
border-color: var(--Input__border-color);
|
|
58
|
-
border-radius: var(--Input__border-radius);
|
|
59
|
-
border-style: var(--Input__border-style);
|
|
60
|
-
border-width: var(--Input__border-width);
|
|
61
|
-
color: var(--Input__color);
|
|
62
|
-
font: inherit;
|
|
63
|
-
margin: 0;
|
|
64
|
-
transition: background-color 250ms, color 250ms, border-color 250ms;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.sterling-input:hover {
|
|
68
|
-
background-color: var(--Input__background-color--hover);
|
|
69
|
-
border-color: var(--Input__border-color--hover);
|
|
70
|
-
color: var(--Input__color--hover);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.sterling-input:focus-within {
|
|
74
|
-
background-color: var(--Input__background-color--focus);
|
|
75
|
-
border-color: var(--Input__border-color--focus);
|
|
76
|
-
color: var(--Input__color--focus);
|
|
77
|
-
outline-color: var(--Common__outline-color);
|
|
78
|
-
outline-offset: var(--Common__outline-offset);
|
|
79
|
-
outline-style: var(--Common__outline-style);
|
|
80
|
-
outline-width: var(--Common__outline-width);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.sterling-input:disabled {
|
|
84
|
-
background-color: var(--Input__background-color--disabled);
|
|
85
|
-
border-color: var(---Input__border-color--disabled);
|
|
86
|
-
color: var(--Input__color--disabled);
|
|
87
|
-
cursor: not-allowed;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.sterling-input input {
|
|
91
|
-
font: inherit;
|
|
92
|
-
color: inherit;
|
|
93
|
-
padding: 0.5em;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.sterling-input input,
|
|
97
|
-
.sterling-input input:hover,
|
|
98
|
-
.sterling-input input:focus-within,
|
|
99
|
-
.sterling-input input:disabled {
|
|
100
|
-
background-color: transparent;
|
|
101
|
-
border: none;
|
|
102
|
-
outline: none;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.sterling-input input::placeholder {
|
|
106
|
-
color: var(--Display__color--faint);
|
|
107
|
-
transition: background-color 250ms, color 250ms, border-color 250ms;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.sterling-input input:disabled::placeholder {
|
|
111
|
-
color: var(--Display__color--disabled);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.sterling-input > :global(label) {
|
|
115
|
-
font-size: 0.7em;
|
|
116
|
-
margin: 0.5em 0 0 0.7em;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.sterling-input > :global(label):empty {
|
|
120
|
-
margin: 0;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
@media (prefers-reduced-motion) {
|
|
124
|
-
.sterling-input,
|
|
125
|
-
.sterling-input input::placeholder {
|
|
126
|
-
transition: none;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
</style>
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare class __sveltets_Render<T> {
|
|
3
|
-
props(): {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
disabled?: boolean | undefined;
|
|
6
|
-
items?: T[] | undefined;
|
|
7
|
-
open?: boolean | undefined;
|
|
8
|
-
selectedIndex?: number | undefined;
|
|
9
|
-
selectedItem?: T | undefined;
|
|
10
|
-
};
|
|
11
|
-
events(): {
|
|
12
|
-
blur: FocusEvent;
|
|
13
|
-
click: MouseEvent;
|
|
14
|
-
copy: ClipboardEvent;
|
|
15
|
-
cut: ClipboardEvent;
|
|
16
|
-
dblclick: MouseEvent;
|
|
17
|
-
focus: FocusEvent;
|
|
18
|
-
focusin: FocusEvent;
|
|
19
|
-
focusout: FocusEvent;
|
|
20
|
-
keydown: KeyboardEvent;
|
|
21
|
-
keypress: KeyboardEvent;
|
|
22
|
-
keyup: KeyboardEvent;
|
|
23
|
-
mousedown: MouseEvent;
|
|
24
|
-
mouseenter: MouseEvent;
|
|
25
|
-
mouseleave: MouseEvent;
|
|
26
|
-
mousemove: MouseEvent;
|
|
27
|
-
mouseover: MouseEvent;
|
|
28
|
-
mouseout: MouseEvent;
|
|
29
|
-
mouseup: MouseEvent;
|
|
30
|
-
wheel: WheelEvent;
|
|
31
|
-
paste: ClipboardEvent;
|
|
32
|
-
itemSelected: CustomEvent<any>;
|
|
33
|
-
itemSelectPending: CustomEvent<any>;
|
|
34
|
-
} & {
|
|
35
|
-
[evt: string]: CustomEvent<any>;
|
|
36
|
-
};
|
|
37
|
-
slots(): {
|
|
38
|
-
label: {
|
|
39
|
-
index: number;
|
|
40
|
-
item: undefined;
|
|
41
|
-
selected: boolean;
|
|
42
|
-
};
|
|
43
|
-
value: {};
|
|
44
|
-
button: {
|
|
45
|
-
open: boolean;
|
|
46
|
-
};
|
|
47
|
-
list: {};
|
|
48
|
-
default: {
|
|
49
|
-
disabled: boolean;
|
|
50
|
-
index: any;
|
|
51
|
-
item: any;
|
|
52
|
-
selected: any;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export type SelectProps<T> = ReturnType<__sveltets_Render<T>['props']>;
|
|
57
|
-
export type SelectEvents<T> = ReturnType<__sveltets_Render<T>['events']>;
|
|
58
|
-
export type SelectSlots<T> = ReturnType<__sveltets_Render<T>['slots']>;
|
|
59
|
-
/** A single item that can be selected from a popup list of items. */
|
|
60
|
-
export default class Select<T> extends SvelteComponentTyped<SelectProps<T>, SelectEvents<T>, SelectSlots<T>> {
|
|
61
|
-
}
|
|
62
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
value?: number | undefined;
|
|
6
|
-
min?: number | undefined;
|
|
7
|
-
max?: number | undefined;
|
|
8
|
-
step?: number | undefined;
|
|
9
|
-
precision?: number | undefined;
|
|
10
|
-
vertical?: boolean | undefined;
|
|
11
|
-
disabled?: boolean | undefined;
|
|
12
|
-
};
|
|
13
|
-
events: {
|
|
14
|
-
change: CustomEvent<any>;
|
|
15
|
-
} & {
|
|
16
|
-
[evt: string]: CustomEvent<any>;
|
|
17
|
-
};
|
|
18
|
-
slots: {
|
|
19
|
-
label: {};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export type SliderProps = typeof __propDef.props;
|
|
23
|
-
export type SliderEvents = typeof __propDef.events;
|
|
24
|
-
export type SliderSlots = typeof __propDef.slots;
|
|
25
|
-
/** Slider lets the user chose a value within a min/max range by dragging a thumb button. */
|
|
26
|
-
export default class Slider extends SvelteComponentTyped<SliderProps, SliderEvents, SliderSlots> {
|
|
27
|
-
}
|
|
28
|
-
export {};
|
package/inputs/TextArea.svelte
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
<script>import { v4 as uuid } from "uuid";
|
|
2
|
-
import Label from "../display/Label.svelte";
|
|
3
|
-
export let value;
|
|
4
|
-
export let resize = "none";
|
|
5
|
-
export let disabled = false;
|
|
6
|
-
export let autoHeight = false;
|
|
7
|
-
const inputId = uuid();
|
|
8
|
-
let textAreaRef;
|
|
9
|
-
const autoSetHeight = () => {
|
|
10
|
-
if (autoHeight && textAreaRef) {
|
|
11
|
-
textAreaRef.style.height = "auto";
|
|
12
|
-
textAreaRef.style.height = `${textAreaRef.scrollHeight}px`;
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
const onInput = () => {
|
|
16
|
-
autoSetHeight();
|
|
17
|
-
};
|
|
18
|
-
$:
|
|
19
|
-
autoHeight, autoSetHeight();
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<div class="sterling-text-area" style={`--TextArea__resize: ${resize};`}>
|
|
23
|
-
{#if $$slots.label}
|
|
24
|
-
<Label {disabled} for={inputId}>
|
|
25
|
-
<slot name="label" />
|
|
26
|
-
</Label>
|
|
27
|
-
{/if}
|
|
28
|
-
<textarea
|
|
29
|
-
{...$$restProps}
|
|
30
|
-
bind:this={textAreaRef}
|
|
31
|
-
bind:value
|
|
32
|
-
on:blur
|
|
33
|
-
on:click
|
|
34
|
-
on:change
|
|
35
|
-
on:copy
|
|
36
|
-
on:cut
|
|
37
|
-
on:paste
|
|
38
|
-
on:dblclick
|
|
39
|
-
on:focus
|
|
40
|
-
on:focusin
|
|
41
|
-
on:focusout
|
|
42
|
-
on:input
|
|
43
|
-
on:invalid
|
|
44
|
-
on:keydown
|
|
45
|
-
on:keypress
|
|
46
|
-
on:keyup
|
|
47
|
-
on:mousedown
|
|
48
|
-
on:mouseenter
|
|
49
|
-
on:mouseleave
|
|
50
|
-
on:mousemove
|
|
51
|
-
on:mouseover
|
|
52
|
-
on:mouseout
|
|
53
|
-
on:mouseup
|
|
54
|
-
on:select
|
|
55
|
-
on:submit
|
|
56
|
-
on:reset
|
|
57
|
-
on:wheel
|
|
58
|
-
on:input={onInput}
|
|
59
|
-
{disabled}
|
|
60
|
-
rows="1"
|
|
61
|
-
{...$$restProps}
|
|
62
|
-
/>
|
|
63
|
-
</div>
|
|
64
|
-
|
|
65
|
-
<style>
|
|
66
|
-
.sterling-text-area {
|
|
67
|
-
background-color: var(--Input__background-color);
|
|
68
|
-
border-color: var(--Input__border-color);
|
|
69
|
-
border-radius: var(--Input__border-radius);
|
|
70
|
-
border-style: var(--Input__border-style);
|
|
71
|
-
border-width: var(--Input__border-width);
|
|
72
|
-
box-sizing: border-box;
|
|
73
|
-
color: var(--Input__color);
|
|
74
|
-
overflow: hidden;
|
|
75
|
-
width: 100%;
|
|
76
|
-
height: 100%;
|
|
77
|
-
display: grid;
|
|
78
|
-
grid-template-columns: 1fr;
|
|
79
|
-
grid-template-rows: 1fr;
|
|
80
|
-
padding: 0;
|
|
81
|
-
margin: 0;
|
|
82
|
-
transition: background-color 250ms, color 250ms, border-color 250ms;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.sterling-text-area:hover {
|
|
86
|
-
background-color: var(--Input__background-color--hover);
|
|
87
|
-
border-color: var(--Input__border-color--hover);
|
|
88
|
-
color: var(--Input__color--hover);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.sterling-text-area:focus-wthin {
|
|
92
|
-
background-color: var(--Input__background-color--focus);
|
|
93
|
-
border-color: var(--Input__border-color--focus);
|
|
94
|
-
color: var(--Input__color--focus);
|
|
95
|
-
outline-color: var(--Common__outline-color);
|
|
96
|
-
outline-offset: var(--Common__outline-offset);
|
|
97
|
-
outline-style: var(--Common__outline-style);
|
|
98
|
-
outline-width: var(--Common__outline-width);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.sterling-text-area:disabled {
|
|
102
|
-
background-color: var(--Input__background-color--disabled);
|
|
103
|
-
border-color: var(---Input__border-color--disabled);
|
|
104
|
-
color: var(--Input__color--disabled);
|
|
105
|
-
cursor: not-allowed;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
textarea {
|
|
109
|
-
background: none;
|
|
110
|
-
box-sizing: border-box;
|
|
111
|
-
color: inherit;
|
|
112
|
-
font: inherit;
|
|
113
|
-
line-height: inherit;
|
|
114
|
-
padding: 0 0.5em 0.5em 0.5em;
|
|
115
|
-
min-height: 3em;
|
|
116
|
-
margin: 0.5em 0 0 0;
|
|
117
|
-
resize: var(--TextArea__resize, none);
|
|
118
|
-
width: 100%;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
textarea,
|
|
122
|
-
textarea:hover,
|
|
123
|
-
textarea:focus-within,
|
|
124
|
-
textarea:disabled {
|
|
125
|
-
background-color: transparent;
|
|
126
|
-
border: none;
|
|
127
|
-
outline: none;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
textarea::placeholder {
|
|
131
|
-
color: var(--Display__color--faint);
|
|
132
|
-
transition: background-color 250ms, color 250ms, border-color 250ms;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
textarea:disabled::placeholder {
|
|
136
|
-
color: var(--Display__color--disabled);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.sterling-text-area > :global(label) {
|
|
140
|
-
font-size: 0.7em;
|
|
141
|
-
margin: 0.5em 0 0 0.7em;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.sterling-text-area > :global(label):empty {
|
|
145
|
-
margin: 0;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
@media (prefers-reduced-motion) {
|
|
149
|
-
.sterling-text-area,
|
|
150
|
-
.sterling-text-area textarea::placeholder {
|
|
151
|
-
transition: none;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
</style>
|
package/surfaces/CloseX.svelte
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16" {...$$restProps}>
|
|
2
|
-
<path
|
|
3
|
-
d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"
|
|
4
|
-
/>
|
|
5
|
-
</svg>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} CloseXProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} CloseXEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} CloseXSlots */
|
|
4
|
-
export default class CloseX extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {}> {
|
|
9
|
-
}
|
|
10
|
-
export type CloseXProps = typeof __propDef.props;
|
|
11
|
-
export type CloseXEvents = typeof __propDef.events;
|
|
12
|
-
export type CloseXSlots = typeof __propDef.slots;
|
|
13
|
-
import { SvelteComponentTyped } from "svelte";
|
|
14
|
-
declare const __propDef: {
|
|
15
|
-
props: {
|
|
16
|
-
[x: string]: never;
|
|
17
|
-
};
|
|
18
|
-
events: {
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export {};
|
package/surfaces/Portal.svelte
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<script>import { portal } from "../portal";
|
|
2
|
-
export let target = document.body;
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<div class="portal" use:portal={{ target }}>
|
|
6
|
-
<slot {...$$restProps} />
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<style>
|
|
10
|
-
.portal {
|
|
11
|
-
position: relative;
|
|
12
|
-
overflow: visible;
|
|
13
|
-
}
|
|
14
|
-
</style>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
target?: HTMLElement | undefined;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {
|
|
11
|
-
default: {
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export type PortalProps = typeof __propDef.props;
|
|
17
|
-
export type PortalEvents = typeof __propDef.events;
|
|
18
|
-
export type PortalSlots = typeof __propDef.slots;
|
|
19
|
-
export default class Portal extends SvelteComponentTyped<PortalProps, PortalEvents, PortalSlots> {
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|