@skeletonlabs/skeleton 0.80.9 → 0.92.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/README.md +1 -1
- package/components/Accordion/AccordionGroup.svelte +1 -2
- package/components/Accordion/AccordionItem.svelte +6 -3
- package/components/Accordion/AccordionItem.svelte.d.ts +1 -0
- package/components/Alert/Alert.svelte +3 -3
- package/components/AppRail/AppRailTile.svelte +8 -6
- package/components/AppShell/AppShell.svelte +3 -3
- package/components/Breadcrumb/Crumb.svelte +3 -1
- package/components/Breadcrumb/Crumb.svelte.d.ts +5 -0
- package/components/ConicGradient/ConicGradient.svelte +2 -2
- package/components/ConicGradient/ConicGradient.svelte.d.ts +5 -0
- package/{tailwind/colors.d.ts → components/ConicGradient/settings.d.ts} +1 -1
- package/{tailwind/colors.js → components/ConicGradient/settings.js} +1 -1
- package/components/FileButton/FileButton.svelte +2 -2
- package/components/FileButton/FileButton.svelte.d.ts +3 -0
- package/components/FileDropzone/FileDropzone.svelte +5 -4
- package/components/FileDropzone/FileDropzone.svelte.d.ts +4 -0
- package/components/GradientHeading/GradientHeading.svelte +1 -1
- package/components/InputChip/InputChip.svelte +107 -0
- package/components/InputChip/InputChip.svelte.d.ts +29 -0
- package/components/ListBox/ListBoxItem.svelte +6 -5
- package/components/ListBox/ListBoxItem.svelte.d.ts +2 -0
- package/components/Paginator/Paginator.svelte +21 -9
- package/components/Paginator/Paginator.svelte.d.ts +5 -1
- package/components/ProgressBar/ProgressBar.svelte +6 -4
- package/components/ProgressBar/ProgressBar.svelte.d.ts +1 -0
- package/components/ProgressRadial/ProgressRadial.svelte +1 -1
- package/components/Radio/RadioGroup.svelte +2 -2
- package/components/Radio/RadioItem.svelte +3 -1
- package/components/Radio/RadioItem.svelte.d.ts +2 -0
- package/components/RangeSlider/RangeSlider.svelte +1 -1
- package/components/SlideToggle/SlideToggle.svelte +9 -6
- package/components/SlideToggle/SlideToggle.svelte.d.ts +4 -1
- package/components/Stepper/Step.svelte +52 -13
- package/components/Stepper/Step.svelte.d.ts +11 -3
- package/components/Stepper/Stepper.svelte +32 -10
- package/components/Stepper/Stepper.svelte.d.ts +8 -3
- package/components/SvgIcon/SvgIcon.svelte +1 -1
- package/components/SvgIcon/icons.js +2 -148
- package/components/Tab/Tab.svelte +16 -4
- package/components/Tab/Tab.svelte.d.ts +5 -0
- package/components/Table/Table.svelte +3 -3
- package/components/TableOfContents/TableOfContents.svelte +132 -0
- package/components/TableOfContents/TableOfContents.svelte.d.ts +32 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +37 -29
- package/styles/all.css +0 -3
- package/styles/core.css +3 -0
- package/styles/elements/alerts.css +43 -0
- package/styles/elements/badges.css +12 -6
- package/styles/elements/breadcrumbs.css +27 -0
- package/styles/elements/buttons.css +34 -10
- package/styles/elements/cards.css +23 -4
- package/styles/elements/chips.css +58 -5
- package/styles/elements/lists.css +1 -1
- package/styles/elements/logo-clouds.css +1 -1
- package/styles/elements/menus.css +1 -1
- package/styles/elements/placeholders.css +1 -1
- package/styles/elements/tables.css +1 -1
- package/styles/elements/tooltips.css +1 -1
- package/styles/elements.css +2 -0
- package/styles/forms.css +59 -41
- package/styles/typography.css +6 -6
- package/tailwind/generated/allComponents.cjs +1 -0
- package/tailwind/generated/allComponents.d.cts +5552 -0
- package/tailwind/settings.cjs +20 -0
- package/tailwind/settings.d.cts +6 -0
- package/tailwind/skeleton.cjs +54 -0
- package/tailwind/skeleton.d.cts +5 -0
- package/tailwind/theme/colors.cjs +18 -0
- package/tailwind/theme/colors.d.cts +2 -0
- package/tailwind/tokens/backgrounds.cjs +40 -0
- package/tailwind/tokens/backgrounds.d.cts +2 -0
- package/tailwind/tokens/border-radius.cjs +21 -0
- package/tailwind/tokens/border-radius.d.cts +33 -0
- package/tailwind/tokens/borders.cjs +20 -0
- package/tailwind/tokens/borders.d.cts +6 -0
- package/tailwind/tokens/fills.cjs +20 -0
- package/tailwind/tokens/fills.d.cts +15 -0
- package/tailwind/tokens/rings.cjs +42 -0
- package/tailwind/tokens/rings.d.cts +17 -0
- package/tailwind/tokens/text.cjs +33 -0
- package/tailwind/tokens/text.d.cts +21 -0
- package/themes/theme-crimson.css +88 -64
- package/themes/theme-gold-nouveau.css +108 -115
- package/themes/theme-hamlindigo.css +97 -74
- package/themes/theme-modern.css +107 -64
- package/themes/theme-rocket.css +96 -63
- package/themes/theme-sahara.css +104 -65
- package/themes/theme-seafoam.css +100 -66
- package/themes/theme-seasonal.css +111 -65
- package/themes/theme-skeleton.css +99 -75
- package/themes/theme-vintage.css +102 -63
- package/utilities/CodeBlock/CodeBlock.svelte +6 -1
- package/utilities/CodeBlock/CodeBlock.svelte.d.ts +2 -0
- package/utilities/DataTable/DataTable.js +3 -1
- package/utilities/Drawer/Drawer.svelte +11 -10
- package/utilities/Drawer/Drawer.svelte.d.ts +1 -2
- package/utilities/Drawer/stores.d.ts +1 -1
- package/utilities/LightSwitch/LightSwitch.svelte +42 -14
- package/utilities/LightSwitch/LightSwitch.svelte.d.ts +5 -0
- package/utilities/LightSwitch/stores.d.ts +2 -3
- package/utilities/LocalStorageStore/LocalStorageStore.d.ts +3 -1
- package/utilities/LocalStorageStore/LocalStorageStore.js +9 -4
- package/utilities/Menu/menu.js +11 -7
- package/utilities/Modal/Modal.svelte +25 -12
- package/utilities/Modal/Modal.svelte.d.ts +2 -0
- package/utilities/Modal/types.d.ts +12 -2
- package/utilities/Toast/Toast.svelte +2 -2
- package/utilities/Toast/stores.js +17 -1
- package/utilities/Toast/types.d.ts +5 -0
- package/styles/tokens/backgrounds.css +0 -239
- package/styles/tokens/border-radius.css +0 -41
- package/styles/tokens/borders.css +0 -185
- package/styles/tokens/fills.css +0 -29
- package/styles/tokens/misc.css +0 -22
- package/styles/tokens/rings.css +0 -185
- package/styles/tokens/text.css +0 -216
- package/styles/tokens.css +0 -11
- package/tailwind/theme.cjs +0 -37
- package/tailwind/theme.d.cts +0 -5
|
@@ -1,18 +1,71 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Tailwind Elements: chips.css */
|
|
2
2
|
|
|
3
3
|
/* NOTE: these are a work in progress; best not to use them yet! */
|
|
4
4
|
|
|
5
5
|
@layer components {
|
|
6
6
|
.chip {
|
|
7
7
|
/* Core */
|
|
8
|
-
@apply inline-flex items-center space-x-2 whitespace-nowrap;
|
|
8
|
+
@apply inline-flex items-center space-x-2 whitespace-nowrap cursor-pointer;
|
|
9
9
|
/* Text */
|
|
10
|
-
@apply text-xs text-
|
|
10
|
+
@apply text-xs text-token;
|
|
11
11
|
/* Padding */
|
|
12
|
-
@apply px-
|
|
12
|
+
@apply px-3 py-1.5;
|
|
13
13
|
/* Theme: Rounded */
|
|
14
14
|
@apply rounded;
|
|
15
|
+
/* Ring */
|
|
16
|
+
@apply ring-[1px] ring-surface-500-400-token ring-inset;
|
|
15
17
|
/* Background */
|
|
16
|
-
@apply bg-
|
|
18
|
+
@apply hover:bg-surface-hover-token;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.chip-disabled,
|
|
22
|
+
.chip:disabled {
|
|
23
|
+
@apply !opacity-50 !cursor-not-allowed active:scale-100;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* === Variations === */
|
|
27
|
+
|
|
28
|
+
.chip-primary {
|
|
29
|
+
@apply ring-primary-500-400-token hover:bg-primary-hover-token;
|
|
30
|
+
}
|
|
31
|
+
.chip-secondary {
|
|
32
|
+
@apply ring-secondary-500-400-token hover:bg-secondary-hover-token;
|
|
33
|
+
}
|
|
34
|
+
.chip-tertiary {
|
|
35
|
+
@apply ring-tertiary-500-400-token hover:bg-tertiary-hover-token;
|
|
36
|
+
}
|
|
37
|
+
.chip-success {
|
|
38
|
+
@apply ring-success-500-400-token hover:bg-success-hover-token;
|
|
39
|
+
}
|
|
40
|
+
.chip-warning {
|
|
41
|
+
@apply ring-warning-500-400-token hover:bg-warning-hover-token;
|
|
42
|
+
}
|
|
43
|
+
.chip-error {
|
|
44
|
+
@apply ring-error-500-400-token hover:bg-error-hover-token;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* === States === */
|
|
48
|
+
|
|
49
|
+
.chip-active,
|
|
50
|
+
.chip-primary-active {
|
|
51
|
+
@apply !bg-primary-500 !text-on-primary-token ring-0;
|
|
52
|
+
}
|
|
53
|
+
.chip-secondary-active {
|
|
54
|
+
@apply !bg-secondary-500 !text-on-secondary-token ring-0;
|
|
55
|
+
}
|
|
56
|
+
.chip-tertiary-active {
|
|
57
|
+
@apply !bg-tertiary-500 !text-on-tertiary-token ring-0;
|
|
58
|
+
}
|
|
59
|
+
.chip-success-active {
|
|
60
|
+
@apply !bg-success-500 !text-on-success-token ring-0;
|
|
61
|
+
}
|
|
62
|
+
.chip-warning-active {
|
|
63
|
+
@apply !bg-warning-500 !text-on-warning-token ring-0;
|
|
64
|
+
}
|
|
65
|
+
.chip-error-active {
|
|
66
|
+
@apply !bg-error-500 !text-on-error-token ring-0;
|
|
67
|
+
}
|
|
68
|
+
.chip-surface-active {
|
|
69
|
+
@apply !bg-surface-500 !text-on-surface-token ring-0;
|
|
17
70
|
}
|
|
18
71
|
}
|
package/styles/elements.css
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
/* Import AFTER your theme, but BEFORE your global stylesheet. */
|
|
3
3
|
/* Recommended as the LAST stylesheet in the set */
|
|
4
4
|
|
|
5
|
+
@import 'elements/alerts.css';
|
|
5
6
|
@import 'elements/badges.css';
|
|
7
|
+
@import 'elements/breadcrumbs.css';
|
|
6
8
|
@import 'elements/buttons.css';
|
|
7
9
|
@import 'elements/cards.css';
|
|
8
10
|
@import 'elements/chips.css';
|
package/styles/forms.css
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
@layer base {
|
|
4
4
|
/* === Fieldset === */
|
|
5
5
|
|
|
6
|
-
fieldset {
|
|
6
|
+
fieldset:not(.unstyled) {
|
|
7
7
|
@apply block;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/* === Labels === */
|
|
11
11
|
|
|
12
|
-
label {
|
|
12
|
+
label:not(.unstyled) {
|
|
13
13
|
@apply block overflow-visible;
|
|
14
14
|
}
|
|
15
|
-
label span,
|
|
16
|
-
legend {
|
|
15
|
+
label:not(.unstyled) span,
|
|
16
|
+
legend:not(.unstyled) {
|
|
17
17
|
@apply block text-surface-700 dark:text-surface-300 text-sm mb-2;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -26,47 +26,48 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/* Inputs */
|
|
29
|
-
[type='text'],
|
|
30
|
-
[type='email'],
|
|
31
|
-
[type='url'],
|
|
32
|
-
[type='password'],
|
|
33
|
-
[type='number'],
|
|
34
|
-
[type='date'],
|
|
35
|
-
[type='datetime-local'],
|
|
36
|
-
[type='month'],
|
|
37
|
-
[type='search'],
|
|
38
|
-
[type='tel'],
|
|
39
|
-
[type='time'],
|
|
40
|
-
[type='week'],
|
|
41
|
-
[type='file'],
|
|
42
|
-
[multiple],
|
|
43
|
-
textarea,
|
|
44
|
-
select
|
|
29
|
+
[type='text']:not(.unstyled),
|
|
30
|
+
[type='email']:not(.unstyled),
|
|
31
|
+
[type='url']:not(.unstyled),
|
|
32
|
+
[type='password']:not(.unstyled),
|
|
33
|
+
[type='number']:not(.unstyled),
|
|
34
|
+
[type='date']:not(.unstyled),
|
|
35
|
+
[type='datetime-local']:not(.unstyled),
|
|
36
|
+
[type='month']:not(.unstyled),
|
|
37
|
+
[type='search']:not(.unstyled),
|
|
38
|
+
[type='tel']:not(.unstyled),
|
|
39
|
+
[type='time']:not(.unstyled),
|
|
40
|
+
[type='week']:not(.unstyled),
|
|
41
|
+
[type='file']:not(.unstyled),
|
|
42
|
+
[multiple]:not(.unstyled),
|
|
43
|
+
textarea:not(.unstyled),
|
|
44
|
+
select:not(.unstyled),
|
|
45
|
+
.input-chip {
|
|
45
46
|
/* Base */
|
|
46
|
-
@apply w-full caret-
|
|
47
|
+
@apply w-full caret-secondary-500 transition duration-200;
|
|
47
48
|
/* Text */
|
|
48
49
|
@apply text-black dark:text-white;
|
|
49
50
|
/* Background */
|
|
50
|
-
@apply bg-surface-200-700-token;
|
|
51
|
+
@apply bg-surface-200-700-token hover:brightness-110;
|
|
51
52
|
/* Border */
|
|
52
|
-
@apply border-surface-400-500-token focus:border-
|
|
53
|
+
@apply border-token border-surface-400-500-token focus:border-secondary-500;
|
|
54
|
+
/* Ring - NOTE: we use border instead */
|
|
55
|
+
@apply ring-0;
|
|
53
56
|
/* Shadow */
|
|
54
57
|
@apply shadow-sm;
|
|
55
|
-
/* Theme: Border Width */
|
|
56
|
-
@apply border-token;
|
|
57
58
|
/* Theme: Rounded */
|
|
58
59
|
@apply rounded-token;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
.file-dropzone-input,
|
|
62
|
-
[multiple],
|
|
63
|
-
textarea {
|
|
63
|
+
[multiple]:not(.unstyled),
|
|
64
|
+
textarea:not(.unstyled) {
|
|
64
65
|
/* Theme: Rounded */
|
|
65
66
|
@apply rounded-container-token;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
/* File */
|
|
69
|
-
[type='file'] {
|
|
70
|
+
[type='file']:not(.unstyled) {
|
|
70
71
|
@apply p-2;
|
|
71
72
|
}
|
|
72
73
|
|
|
@@ -76,15 +77,32 @@
|
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
/* Checkbox */
|
|
79
|
-
[type='checkbox'],
|
|
80
|
-
[type='radio'] {
|
|
81
|
-
@apply border-surface-500 rounded text-
|
|
80
|
+
[type='checkbox']:not(.unstyled),
|
|
81
|
+
[type='radio']:not(.unstyled) {
|
|
82
|
+
@apply border-surface-500 rounded text-secondary-600 focus:ring-secondary-500 w-5 h-5;
|
|
82
83
|
}
|
|
83
84
|
/* Checkbox */
|
|
84
|
-
[type='radio'] {
|
|
85
|
+
[type='radio']:not(.unstyled) {
|
|
85
86
|
@apply rounded-token;
|
|
86
87
|
}
|
|
87
88
|
|
|
89
|
+
/* Color Picker */
|
|
90
|
+
/* https://stackoverflow.com/questions/11167281/webkit-css-to-control-the-box-around-the-color-in-an-inputtype-color */
|
|
91
|
+
input[type='color'] {
|
|
92
|
+
@apply border-none w-10 h-10 overflow-hidden rounded-token cursor-pointer;
|
|
93
|
+
/* WebKit */
|
|
94
|
+
-webkit-appearance: none;
|
|
95
|
+
}
|
|
96
|
+
input[type='color']::-webkit-color-swatch-wrapper {
|
|
97
|
+
@apply p-0;
|
|
98
|
+
}
|
|
99
|
+
input[type='color']::-webkit-color-swatch {
|
|
100
|
+
@apply border-none;
|
|
101
|
+
}
|
|
102
|
+
input[type='color']::-moz-color-swatch {
|
|
103
|
+
@apply border-none;
|
|
104
|
+
}
|
|
105
|
+
|
|
88
106
|
/* Placeholder */
|
|
89
107
|
::-moz-placeholder,
|
|
90
108
|
textarea::-moz-placeholder {
|
|
@@ -104,36 +122,36 @@
|
|
|
104
122
|
|
|
105
123
|
/* Valid */
|
|
106
124
|
.input-valid {
|
|
107
|
-
@apply !bg-
|
|
125
|
+
@apply !bg-success-200 !border-success-500 !text-success-700;
|
|
108
126
|
}
|
|
109
127
|
.input-valid::-moz-placeholder,
|
|
110
128
|
textarea::-moz-placeholder {
|
|
111
|
-
@apply text-
|
|
129
|
+
@apply text-success-700;
|
|
112
130
|
}
|
|
113
131
|
.input-valid:-ms-input-placeholder,
|
|
114
132
|
textarea:-ms-input-placeholder {
|
|
115
|
-
@apply text-
|
|
133
|
+
@apply text-success-700;
|
|
116
134
|
}
|
|
117
135
|
.input-valid::placeholder,
|
|
118
136
|
textarea::placeholder {
|
|
119
|
-
@apply text-
|
|
137
|
+
@apply text-success-700;
|
|
120
138
|
}
|
|
121
139
|
|
|
122
140
|
/* Invalid */
|
|
123
141
|
.input-invalid {
|
|
124
|
-
@apply !bg-
|
|
142
|
+
@apply !bg-error-200 !border-error-500 !text-error-500;
|
|
125
143
|
}
|
|
126
144
|
.input-invalid::-moz-placeholder,
|
|
127
145
|
textarea::-moz-placeholder {
|
|
128
|
-
@apply text-
|
|
146
|
+
@apply text-error-500;
|
|
129
147
|
}
|
|
130
148
|
.input-invalid:-ms-input-placeholder,
|
|
131
149
|
textarea:-ms-input-placeholder {
|
|
132
|
-
@apply text-
|
|
150
|
+
@apply text-error-500;
|
|
133
151
|
}
|
|
134
152
|
.input-invalid::placeholder,
|
|
135
153
|
textarea::placeholder {
|
|
136
|
-
@apply text-
|
|
154
|
+
@apply text-error-500;
|
|
137
155
|
}
|
|
138
156
|
|
|
139
157
|
/* === Placeholders === */
|
|
@@ -156,6 +174,6 @@
|
|
|
156
174
|
/* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
|
|
157
175
|
|
|
158
176
|
[type='range']:not(.range-input) {
|
|
159
|
-
@apply w-full accent-
|
|
177
|
+
@apply w-full accent-secondary-500;
|
|
160
178
|
}
|
|
161
179
|
}
|
package/styles/typography.css
CHANGED
|
@@ -48,11 +48,11 @@ body {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
a:not(.unstyled):not(.btn):not(.btn-icon):not(.app-bar a):not(.logo-item):not(.card):not(.list-nav a) {
|
|
51
|
-
@apply text-primary-
|
|
51
|
+
@apply text-primary-700 dark:text-primary-500 underline underline-offset-4 decoration-dotted decoration-primary-500/20 hover:decoration-primary-500;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
blockquote:not(.unstyled) {
|
|
55
|
-
@apply text-base border-l-4 border-l-
|
|
55
|
+
@apply text-base border-l-4 border-l-secondary-500 px-4 pl-4;
|
|
56
56
|
/* Theme: Font Color */
|
|
57
57
|
@apply text-token;
|
|
58
58
|
}
|
|
@@ -72,11 +72,11 @@ body {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
code:not(.unstyled):not(.code-block code):not(article pre code) {
|
|
75
|
-
@apply !font-mono text-
|
|
75
|
+
@apply !font-mono text-black dark:text-primary-400 bg-primary-500/20 dark:bg-primary-500/10 text-xs md:text-[13px] py-1 px-2;
|
|
76
76
|
/* Theme: Font Family */
|
|
77
77
|
@apply font-token;
|
|
78
78
|
/* Theme: Rounded */
|
|
79
|
-
@apply rounded
|
|
79
|
+
@apply rounded;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/* === Insertions / Deletions ==== */
|
|
@@ -101,10 +101,10 @@ body {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
del {
|
|
104
|
-
@apply bg-
|
|
104
|
+
@apply bg-success-500 text-on-success-token;
|
|
105
105
|
}
|
|
106
106
|
ins {
|
|
107
|
-
@apply bg-
|
|
107
|
+
@apply bg-error-500 text-on-error-token;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/* === Date/Time === */
|