@geoffcox/sterling-svelte 0.0.8 → 0.0.10
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 +152 -145
- package/display/Label.svelte +27 -0
- package/display/Label.svelte.d.ts +20 -0
- package/display/Progress.svelte +141 -133
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/inputs/Checkbox.svelte +129 -117
- package/inputs/Input.svelte +108 -142
- package/inputs/Radio.svelte +129 -113
- package/inputs/Select.svelte +191 -199
- package/inputs/Slider.svelte +182 -209
- package/lists/List.svelte +143 -214
- package/package.json +5 -1
- package/surfaces/CloseX.svelte +5 -0
- package/surfaces/CloseX.svelte.d.ts +23 -0
- package/surfaces/Dialog.svelte +241 -0
- package/surfaces/Dialog.svelte.d.ts +34 -0
- package/theme/colors.js +2 -0
- package/theme/darkTheme.js +3 -3
package/buttons/Button.svelte
CHANGED
|
@@ -7,153 +7,160 @@ export let shape = "rounded";
|
|
|
7
7
|
A styled HTML button element.
|
|
8
8
|
-->
|
|
9
9
|
<button
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
10
|
+
class="sterling-button"
|
|
11
|
+
class:square={shape === 'square'}
|
|
12
|
+
class:circular={shape === 'circular'}
|
|
13
|
+
class:outline={variant === 'outline'}
|
|
14
|
+
class:ghost={variant === 'ghost'}
|
|
15
|
+
type="button"
|
|
16
|
+
on:blur
|
|
17
|
+
on:click
|
|
18
|
+
on:dblclick
|
|
19
|
+
on:focus
|
|
20
|
+
on:focusin
|
|
21
|
+
on:focusout
|
|
22
|
+
on:keydown
|
|
23
|
+
on:keypress
|
|
24
|
+
on:keyup
|
|
25
|
+
on:mousedown
|
|
26
|
+
on:mouseenter
|
|
27
|
+
on:mouseleave
|
|
28
|
+
on:mousemove
|
|
29
|
+
on:mouseover
|
|
30
|
+
on:mouseout
|
|
31
|
+
on:mouseup
|
|
32
|
+
on:pointercancel
|
|
33
|
+
on:pointerdown
|
|
34
|
+
on:pointerenter
|
|
35
|
+
on:pointerleave
|
|
36
|
+
on:pointermove
|
|
37
|
+
on:pointerover
|
|
38
|
+
on:pointerout
|
|
39
|
+
on:pointerup
|
|
40
|
+
on:wheel
|
|
41
|
+
{...$$restProps}
|
|
41
42
|
>
|
|
42
|
-
|
|
43
|
+
<slot />
|
|
43
44
|
</button>
|
|
44
45
|
|
|
45
46
|
<style>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
47
|
+
button {
|
|
48
|
+
align-content: center;
|
|
49
|
+
align-items: center;
|
|
50
|
+
background-color: var(--Button__background-color);
|
|
51
|
+
border-color: var(--Button__border-color);
|
|
52
|
+
border-radius: var(--Button__border-radius);
|
|
53
|
+
border-style: var(--Button__border-style);
|
|
54
|
+
border-width: var(--Button__border-width);
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
color: var(--Button__color);
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
flex-direction: row;
|
|
60
|
+
font: inherit;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
justify-items: center;
|
|
63
|
+
column-gap: 0.25em;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
padding: 0.5em 1em;
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
text-overflow: ellipsis;
|
|
68
|
+
transition: background-color 250ms, color 250ms, border-color 250ms;
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
user-select: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
button.vertical {
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
row-gap: 0.15em;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
button.circular {
|
|
79
|
+
border-radius: 10000px;
|
|
80
|
+
padding: 0.5em;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
button.square {
|
|
84
|
+
border-radius: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
button:hover {
|
|
88
|
+
background-color: var(--Button__background-color--hover);
|
|
89
|
+
border-color: var(--Button__border-color--hover);
|
|
90
|
+
color: var(--Button__color--hover);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
button:active {
|
|
94
|
+
background-color: var(--Button__background-color--active);
|
|
95
|
+
border-color: var(--Button__border-color--active);
|
|
96
|
+
color: var(--Button__color--active);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
button:focus-visible {
|
|
100
|
+
border-color: var(--Button__border-color--focus);
|
|
101
|
+
outline-color: var(--Common__outline-color);
|
|
102
|
+
outline-offset: var(--Common__outline-offset);
|
|
103
|
+
outline-style: var(--Common__outline-style);
|
|
104
|
+
outline-width: var(--Common__outline-width);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
button:disabled {
|
|
108
|
+
background-color: var(--Button__background-color--disabled);
|
|
109
|
+
border-color: var(--Button__border-color--disabled);
|
|
110
|
+
color: var(--Button__color--disabled);
|
|
111
|
+
cursor: not-allowed;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
button.outline {
|
|
115
|
+
background-color: transparent;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
button.outline:hover {
|
|
119
|
+
background-color: var(--Button__background-color--hover);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
button.outline:active {
|
|
123
|
+
background-color: var(--Button__background-color--active);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
button.outline:disabled {
|
|
127
|
+
background-color: transparent;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
button.outline:disabled:hover {
|
|
131
|
+
border-color: var(--Button__border-color--disabled);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
button.ghost {
|
|
135
|
+
background-color: transparent;
|
|
136
|
+
border-color: transparent;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
button.ghost:hover {
|
|
140
|
+
background-color: var(--Button__background-color--hover);
|
|
141
|
+
border-color: transparent;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
button.ghost:active {
|
|
145
|
+
background-color: var(--Button__background-color--active);
|
|
146
|
+
border-color: transparent;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
button.ghost:focus-visible {
|
|
150
|
+
border-color: var(--Button__border-color--focus);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
button.ghost:disabled {
|
|
154
|
+
border-color: transparent;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
button.ghost:disabled:hover {
|
|
158
|
+
background-color: var(--Button__background-color--disabled);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media (prefers-reduced-motion) {
|
|
162
|
+
button {
|
|
163
|
+
transition: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
159
166
|
</style>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script>export let disabled = false;
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<label class="sterling-label" class:disabled {...$$restProps}>
|
|
5
|
+
<slot />
|
|
6
|
+
</label>
|
|
7
|
+
|
|
8
|
+
<!--
|
|
9
|
+
@component
|
|
10
|
+
A styled HTML label element
|
|
11
|
+
-->
|
|
12
|
+
<style>
|
|
13
|
+
label {
|
|
14
|
+
transition: opacity 250ms;
|
|
15
|
+
font: inherit;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
label.disabled {
|
|
19
|
+
opacity: 0.5;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (prefers-reduced-motion) {
|
|
23
|
+
label {
|
|
24
|
+
transition: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type LabelProps = typeof __propDef.props;
|
|
15
|
+
export type LabelEvents = typeof __propDef.events;
|
|
16
|
+
export type LabelSlots = typeof __propDef.slots;
|
|
17
|
+
/** A styled HTML label element */
|
|
18
|
+
export default class Label extends SvelteComponentTyped<LabelProps, LabelEvents, LabelSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
package/display/Progress.svelte
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
<script>
|
|
1
|
+
<script>import { v4 as uuid } from "uuid";
|
|
2
|
+
import Label from "../display/Label.svelte";
|
|
3
|
+
export let value = 0;
|
|
2
4
|
export let max = 100;
|
|
3
5
|
export let percent = 0;
|
|
4
6
|
export let vertical = false;
|
|
5
7
|
export let colorful = "none";
|
|
6
8
|
export let disabled = false;
|
|
9
|
+
const inputId = uuid();
|
|
7
10
|
let clientHeight;
|
|
8
11
|
let clientWidth;
|
|
9
12
|
$:
|
|
@@ -33,140 +36,145 @@ $:
|
|
|
33
36
|
<!-- svelte-ignore a11y-label-has-associated-control -->
|
|
34
37
|
|
|
35
38
|
<div
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
39
|
+
class="sterling-progress"
|
|
40
|
+
class:disabled
|
|
41
|
+
class:vertical
|
|
42
|
+
on:click
|
|
43
|
+
on:dblclick
|
|
44
|
+
on:focus
|
|
45
|
+
on:blur
|
|
46
|
+
on:mousedown
|
|
47
|
+
on:mouseenter
|
|
48
|
+
on:mouseleave
|
|
49
|
+
on:mousemove
|
|
50
|
+
on:mouseover
|
|
51
|
+
on:mouseout
|
|
52
|
+
on:mouseup
|
|
53
|
+
on:wheel
|
|
54
|
+
{...$$restProps}
|
|
52
55
|
>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
56
|
+
{#if $$slots.label}
|
|
57
|
+
<div class="label">
|
|
58
|
+
<Label {disabled} for={inputId}>
|
|
59
|
+
<slot name="label" />
|
|
60
|
+
</Label>
|
|
61
|
+
</div>
|
|
62
|
+
{/if}
|
|
63
|
+
<div class="progress-bar" id={inputId}>
|
|
64
|
+
<div class="container" bind:clientWidth bind:clientHeight>
|
|
65
|
+
<div
|
|
66
|
+
class="indicator"
|
|
67
|
+
class:progress={indicatorColor === 'progress'}
|
|
68
|
+
class:success={indicatorColor === 'success'}
|
|
69
|
+
class:warning={indicatorColor === 'warning'}
|
|
70
|
+
class:error={indicatorColor === 'error'}
|
|
71
|
+
style={indicatorStyle}
|
|
72
|
+
/>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
70
75
|
</div>
|
|
71
76
|
|
|
72
77
|
<style>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
78
|
+
.sterling-progress {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
align-content: flex-start;
|
|
82
|
+
align-items: flex-start;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.label {
|
|
86
|
+
font-size: 0.7em;
|
|
87
|
+
margin: 0.5em 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.progress-bar {
|
|
91
|
+
display: block;
|
|
92
|
+
background: var(--Common__background-color);
|
|
93
|
+
box-sizing: border-box;
|
|
94
|
+
height: 1em;
|
|
95
|
+
padding: 0.2em;
|
|
96
|
+
border-width: var(--Common__border-width);
|
|
97
|
+
border-style: var(--Common__border-style);
|
|
98
|
+
border-color: var(--Common__border-color);
|
|
99
|
+
border-radius: var(--Common__border-radius);
|
|
100
|
+
transition: background-color 250ms, color 250ms, border-color 250ms;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.container {
|
|
104
|
+
display: flex;
|
|
105
|
+
justify-content: flex-start;
|
|
106
|
+
width: 100%;
|
|
107
|
+
height: 100%;
|
|
108
|
+
min-width: 100px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.indicator {
|
|
112
|
+
background-color: var(--Display__color);
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
height: 100%;
|
|
115
|
+
min-height: 1px;
|
|
116
|
+
transition: background-color 250ms, color 250ms, border-color 250ms;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* ----- Vertical ----- */
|
|
120
|
+
|
|
121
|
+
.sterling-progress.vertical {
|
|
122
|
+
align-items: center;
|
|
123
|
+
align-content: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.sterling-progress.vertical .progress-bar {
|
|
127
|
+
height: unset;
|
|
128
|
+
width: 1em;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.sterling-progress.vertical .container {
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
justify-content: flex-end;
|
|
134
|
+
min-width: unset;
|
|
135
|
+
min-height: 100px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.sterling-progress.vertical .indicator {
|
|
139
|
+
height: unset;
|
|
140
|
+
min-height: unset;
|
|
141
|
+
min-width: 1px;
|
|
142
|
+
width: 100%;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* ----- Colorful ----- */
|
|
146
|
+
|
|
147
|
+
.indicator.progress {
|
|
148
|
+
background-color: var(--Display__color--progress);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.indicator.success {
|
|
152
|
+
background-color: var(--Display__color--success);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.indicator.warning {
|
|
156
|
+
background-color: var(--Display__color--warning);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.indicator.error {
|
|
160
|
+
background-color: var(--Display__color--error);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* ----- Disabled ----- */
|
|
164
|
+
|
|
165
|
+
.sterling-progress.disabled .progress-bar {
|
|
166
|
+
background: var(--Common__background-color--disabled);
|
|
167
|
+
border-color: var(--Common__border-color--disabled);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.sterling-progress.disabled .indicator {
|
|
171
|
+
background-color: var(--Display__color--disabled);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@media (prefers-reduced-motion) {
|
|
175
|
+
.progress-bar,
|
|
176
|
+
.indicator {
|
|
177
|
+
transition: none;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
172
180
|
</style>
|
package/index.d.ts
CHANGED
|
@@ -11,10 +11,12 @@ export { type ProgressColorful } from './display/Progress.types';
|
|
|
11
11
|
export { clickOutside } from './clickOutside';
|
|
12
12
|
import Button from './buttons/Button.svelte';
|
|
13
13
|
import Checkbox from './inputs/Checkbox.svelte';
|
|
14
|
+
import Dialog from './surfaces/Dialog.svelte';
|
|
14
15
|
import Input from './inputs/Input.svelte';
|
|
16
|
+
import Label from './display/Label.svelte';
|
|
15
17
|
import List from './lists/List.svelte';
|
|
16
18
|
import Progress from './display/Progress.svelte';
|
|
17
19
|
import Radio from './inputs/Radio.svelte';
|
|
18
20
|
import Select from './inputs/Select.svelte';
|
|
19
21
|
import Slider from './inputs/Slider.svelte';
|
|
20
|
-
export { Button, Checkbox, Input, List, Progress, Radio, Select, Slider };
|
|
22
|
+
export { Button, Checkbox, Dialog, Input, Label, List, Progress, Radio, Select, Slider };
|
package/index.js
CHANGED
|
@@ -11,10 +11,12 @@ export {} from './display/Progress.types';
|
|
|
11
11
|
export { clickOutside } from './clickOutside';
|
|
12
12
|
import Button from './buttons/Button.svelte';
|
|
13
13
|
import Checkbox from './inputs/Checkbox.svelte';
|
|
14
|
+
import Dialog from './surfaces/Dialog.svelte';
|
|
14
15
|
import Input from './inputs/Input.svelte';
|
|
16
|
+
import Label from './display/Label.svelte';
|
|
15
17
|
import List from './lists/List.svelte';
|
|
16
18
|
import Progress from './display/Progress.svelte';
|
|
17
19
|
import Radio from './inputs/Radio.svelte';
|
|
18
20
|
import Select from './inputs/Select.svelte';
|
|
19
21
|
import Slider from './inputs/Slider.svelte';
|
|
20
|
-
export { Button, Checkbox, Input, List, Progress, Radio, Select, Slider };
|
|
22
|
+
export { Button, Checkbox, Dialog, Input, Label, List, Progress, Radio, Select, Slider };
|