@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.
Files changed (122) hide show
  1. package/README.md +1 -1
  2. package/components/Accordion/AccordionGroup.svelte +1 -2
  3. package/components/Accordion/AccordionItem.svelte +6 -3
  4. package/components/Accordion/AccordionItem.svelte.d.ts +1 -0
  5. package/components/Alert/Alert.svelte +3 -3
  6. package/components/AppRail/AppRailTile.svelte +8 -6
  7. package/components/AppShell/AppShell.svelte +3 -3
  8. package/components/Breadcrumb/Crumb.svelte +3 -1
  9. package/components/Breadcrumb/Crumb.svelte.d.ts +5 -0
  10. package/components/ConicGradient/ConicGradient.svelte +2 -2
  11. package/components/ConicGradient/ConicGradient.svelte.d.ts +5 -0
  12. package/{tailwind/colors.d.ts → components/ConicGradient/settings.d.ts} +1 -1
  13. package/{tailwind/colors.js → components/ConicGradient/settings.js} +1 -1
  14. package/components/FileButton/FileButton.svelte +2 -2
  15. package/components/FileButton/FileButton.svelte.d.ts +3 -0
  16. package/components/FileDropzone/FileDropzone.svelte +5 -4
  17. package/components/FileDropzone/FileDropzone.svelte.d.ts +4 -0
  18. package/components/GradientHeading/GradientHeading.svelte +1 -1
  19. package/components/InputChip/InputChip.svelte +107 -0
  20. package/components/InputChip/InputChip.svelte.d.ts +29 -0
  21. package/components/ListBox/ListBoxItem.svelte +6 -5
  22. package/components/ListBox/ListBoxItem.svelte.d.ts +2 -0
  23. package/components/Paginator/Paginator.svelte +21 -9
  24. package/components/Paginator/Paginator.svelte.d.ts +5 -1
  25. package/components/ProgressBar/ProgressBar.svelte +6 -4
  26. package/components/ProgressBar/ProgressBar.svelte.d.ts +1 -0
  27. package/components/ProgressRadial/ProgressRadial.svelte +1 -1
  28. package/components/Radio/RadioGroup.svelte +2 -2
  29. package/components/Radio/RadioItem.svelte +3 -1
  30. package/components/Radio/RadioItem.svelte.d.ts +2 -0
  31. package/components/RangeSlider/RangeSlider.svelte +1 -1
  32. package/components/SlideToggle/SlideToggle.svelte +9 -6
  33. package/components/SlideToggle/SlideToggle.svelte.d.ts +4 -1
  34. package/components/Stepper/Step.svelte +52 -13
  35. package/components/Stepper/Step.svelte.d.ts +11 -3
  36. package/components/Stepper/Stepper.svelte +32 -10
  37. package/components/Stepper/Stepper.svelte.d.ts +8 -3
  38. package/components/SvgIcon/SvgIcon.svelte +1 -1
  39. package/components/SvgIcon/icons.js +2 -148
  40. package/components/Tab/Tab.svelte +16 -4
  41. package/components/Tab/Tab.svelte.d.ts +5 -0
  42. package/components/Table/Table.svelte +3 -3
  43. package/components/TableOfContents/TableOfContents.svelte +132 -0
  44. package/components/TableOfContents/TableOfContents.svelte.d.ts +32 -0
  45. package/index.d.ts +2 -0
  46. package/index.js +2 -0
  47. package/package.json +37 -29
  48. package/styles/all.css +0 -3
  49. package/styles/core.css +3 -0
  50. package/styles/elements/alerts.css +43 -0
  51. package/styles/elements/badges.css +12 -6
  52. package/styles/elements/breadcrumbs.css +27 -0
  53. package/styles/elements/buttons.css +34 -10
  54. package/styles/elements/cards.css +23 -4
  55. package/styles/elements/chips.css +58 -5
  56. package/styles/elements/lists.css +1 -1
  57. package/styles/elements/logo-clouds.css +1 -1
  58. package/styles/elements/menus.css +1 -1
  59. package/styles/elements/placeholders.css +1 -1
  60. package/styles/elements/tables.css +1 -1
  61. package/styles/elements/tooltips.css +1 -1
  62. package/styles/elements.css +2 -0
  63. package/styles/forms.css +59 -41
  64. package/styles/typography.css +6 -6
  65. package/tailwind/generated/allComponents.cjs +1 -0
  66. package/tailwind/generated/allComponents.d.cts +5552 -0
  67. package/tailwind/settings.cjs +20 -0
  68. package/tailwind/settings.d.cts +6 -0
  69. package/tailwind/skeleton.cjs +54 -0
  70. package/tailwind/skeleton.d.cts +5 -0
  71. package/tailwind/theme/colors.cjs +18 -0
  72. package/tailwind/theme/colors.d.cts +2 -0
  73. package/tailwind/tokens/backgrounds.cjs +40 -0
  74. package/tailwind/tokens/backgrounds.d.cts +2 -0
  75. package/tailwind/tokens/border-radius.cjs +21 -0
  76. package/tailwind/tokens/border-radius.d.cts +33 -0
  77. package/tailwind/tokens/borders.cjs +20 -0
  78. package/tailwind/tokens/borders.d.cts +6 -0
  79. package/tailwind/tokens/fills.cjs +20 -0
  80. package/tailwind/tokens/fills.d.cts +15 -0
  81. package/tailwind/tokens/rings.cjs +42 -0
  82. package/tailwind/tokens/rings.d.cts +17 -0
  83. package/tailwind/tokens/text.cjs +33 -0
  84. package/tailwind/tokens/text.d.cts +21 -0
  85. package/themes/theme-crimson.css +88 -64
  86. package/themes/theme-gold-nouveau.css +108 -115
  87. package/themes/theme-hamlindigo.css +97 -74
  88. package/themes/theme-modern.css +107 -64
  89. package/themes/theme-rocket.css +96 -63
  90. package/themes/theme-sahara.css +104 -65
  91. package/themes/theme-seafoam.css +100 -66
  92. package/themes/theme-seasonal.css +111 -65
  93. package/themes/theme-skeleton.css +99 -75
  94. package/themes/theme-vintage.css +102 -63
  95. package/utilities/CodeBlock/CodeBlock.svelte +6 -1
  96. package/utilities/CodeBlock/CodeBlock.svelte.d.ts +2 -0
  97. package/utilities/DataTable/DataTable.js +3 -1
  98. package/utilities/Drawer/Drawer.svelte +11 -10
  99. package/utilities/Drawer/Drawer.svelte.d.ts +1 -2
  100. package/utilities/Drawer/stores.d.ts +1 -1
  101. package/utilities/LightSwitch/LightSwitch.svelte +42 -14
  102. package/utilities/LightSwitch/LightSwitch.svelte.d.ts +5 -0
  103. package/utilities/LightSwitch/stores.d.ts +2 -3
  104. package/utilities/LocalStorageStore/LocalStorageStore.d.ts +3 -1
  105. package/utilities/LocalStorageStore/LocalStorageStore.js +9 -4
  106. package/utilities/Menu/menu.js +11 -7
  107. package/utilities/Modal/Modal.svelte +25 -12
  108. package/utilities/Modal/Modal.svelte.d.ts +2 -0
  109. package/utilities/Modal/types.d.ts +12 -2
  110. package/utilities/Toast/Toast.svelte +2 -2
  111. package/utilities/Toast/stores.js +17 -1
  112. package/utilities/Toast/types.d.ts +5 -0
  113. package/styles/tokens/backgrounds.css +0 -239
  114. package/styles/tokens/border-radius.css +0 -41
  115. package/styles/tokens/borders.css +0 -185
  116. package/styles/tokens/fills.css +0 -29
  117. package/styles/tokens/misc.css +0 -22
  118. package/styles/tokens/rings.css +0 -185
  119. package/styles/tokens/text.css +0 -216
  120. package/styles/tokens.css +0 -11
  121. package/tailwind/theme.cjs +0 -37
  122. package/tailwind/theme.d.cts +0 -5
@@ -1,18 +1,71 @@
1
- /* Stylesheet Add-On: chips.css */
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-black dark:text-primary-400;
10
+ @apply text-xs text-token;
11
11
  /* Padding */
12
- @apply px-2 py-1;
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-primary-500/10 border border-primary-600-300-token backdrop-blur-lg hover:bg-primary-500/30;
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
  }
@@ -1,4 +1,4 @@
1
- /* Stylesheet Add-On: button.css */
1
+ /* Tailwind Elements: button.css */
2
2
 
3
3
  @layer components {
4
4
  /* === Lists (Parents) === */
@@ -1,4 +1,4 @@
1
- /* Stylesheet Add-On: logo-clouds.css */
1
+ /* Tailwind Elements: logo-clouds.css */
2
2
 
3
3
  @layer components {
4
4
  /* === Logo Cloud (Parent) === */
@@ -1,4 +1,4 @@
1
- /* Stylesheet Add-On: menus.css */
1
+ /* Tailwind Elements: menus.css */
2
2
 
3
3
  [data-menu] {
4
4
  @apply absolute z-20 hidden;
@@ -1,4 +1,4 @@
1
- /* Stylesheet Add-On: placeholders.css */
1
+ /* Tailwind Elements: placeholders.css */
2
2
 
3
3
  @layer components {
4
4
  /* === Base === */
@@ -85,7 +85,7 @@
85
85
  /* === Rows Specific === */
86
86
 
87
87
  .table-row-checked {
88
- @apply !bg-accent-500/30;
88
+ @apply !bg-secondary-500/30;
89
89
  }
90
90
 
91
91
  /* === Cells Specific === */
@@ -1,4 +1,4 @@
1
- /* Stylesheet Add-On: tooltips.css */
1
+ /* Tailwind Elements: tooltips.css */
2
2
 
3
3
  /* FIXME: adding @layer components causes visual strobing effect bug */
4
4
 
@@ -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-accent-500 focus:ring-accent-500 transition-all duration-200 hover:brightness-110;
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-accent-500;
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-accent-600 focus:ring-accent-500 w-5 h-5;
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-green-200 !border-green-500 !text-green-500;
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-green-500;
129
+ @apply text-success-700;
112
130
  }
113
131
  .input-valid:-ms-input-placeholder,
114
132
  textarea:-ms-input-placeholder {
115
- @apply text-green-500;
133
+ @apply text-success-700;
116
134
  }
117
135
  .input-valid::placeholder,
118
136
  textarea::placeholder {
119
- @apply text-green-500;
137
+ @apply text-success-700;
120
138
  }
121
139
 
122
140
  /* Invalid */
123
141
  .input-invalid {
124
- @apply !bg-red-200 !border-red-500 !text-red-500;
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-red-500;
146
+ @apply text-error-500;
129
147
  }
130
148
  .input-invalid:-ms-input-placeholder,
131
149
  textarea:-ms-input-placeholder {
132
- @apply text-red-500;
150
+ @apply text-error-500;
133
151
  }
134
152
  .input-invalid::placeholder,
135
153
  textarea::placeholder {
136
- @apply text-red-500;
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-accent-token;
177
+ @apply w-full accent-secondary-500;
160
178
  }
161
179
  }
@@ -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-600-300-token underline underline-offset-4 decoration-dotted decoration-primary-500/20 hover:decoration-primary-500;
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-accent-500 px-4 pl-4;
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-primary-800 dark:text-primary-300 bg-primary-500/20 text-xs md:text-[13px] py-1 px-2;
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-token;
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-red-500;
104
+ @apply bg-success-500 text-on-success-token;
105
105
  }
106
106
  ins {
107
- @apply bg-green-500;
107
+ @apply bg-error-500 text-on-error-token;
108
108
  }
109
109
 
110
110
  /* === Date/Time === */