@skeletonlabs/skeleton 0.86.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 (73) hide show
  1. package/components/Accordion/AccordionItem.svelte +5 -2
  2. package/components/ConicGradient/ConicGradient.svelte +1 -1
  3. package/{tailwind/colors.d.ts → components/ConicGradient/settings.d.ts} +1 -1
  4. package/{tailwind/colors.js → components/ConicGradient/settings.js} +1 -1
  5. package/components/FileDropzone/FileDropzone.svelte +1 -4
  6. package/components/InputChip/InputChip.svelte +107 -0
  7. package/components/InputChip/InputChip.svelte.d.ts +29 -0
  8. package/components/ListBox/ListBoxItem.svelte +3 -4
  9. package/components/SlideToggle/SlideToggle.svelte +1 -1
  10. package/components/Stepper/Step.svelte +25 -6
  11. package/components/Stepper/Step.svelte.d.ts +5 -0
  12. package/components/Stepper/Stepper.svelte +13 -0
  13. package/components/Stepper/Stepper.svelte.d.ts +2 -0
  14. package/components/SvgIcon/SvgIcon.svelte +1 -1
  15. package/components/SvgIcon/icons.js +2 -148
  16. package/components/Tab/Tab.svelte +1 -1
  17. package/components/TableOfContents/TableOfContents.svelte +132 -0
  18. package/components/TableOfContents/TableOfContents.svelte.d.ts +32 -0
  19. package/index.d.ts +2 -0
  20. package/index.js +2 -0
  21. package/package.json +20 -10
  22. package/styles/all.css +0 -3
  23. package/styles/core.css +3 -0
  24. package/styles/elements/alerts.css +43 -0
  25. package/styles/elements/badges.css +1 -1
  26. package/styles/elements/breadcrumbs.css +27 -0
  27. package/styles/elements/buttons.css +1 -1
  28. package/styles/elements/cards.css +1 -1
  29. package/styles/elements/chips.css +58 -7
  30. package/styles/elements/lists.css +1 -1
  31. package/styles/elements/logo-clouds.css +1 -1
  32. package/styles/elements/menus.css +1 -1
  33. package/styles/elements/placeholders.css +1 -1
  34. package/styles/elements/tooltips.css +1 -1
  35. package/styles/elements.css +2 -0
  36. package/styles/forms.css +57 -39
  37. package/styles/typography.css +2 -2
  38. package/tailwind/generated/allComponents.cjs +1 -0
  39. package/tailwind/generated/allComponents.d.cts +5552 -0
  40. package/tailwind/settings.cjs +20 -0
  41. package/tailwind/settings.d.cts +6 -0
  42. package/tailwind/skeleton.cjs +54 -0
  43. package/tailwind/skeleton.d.cts +5 -0
  44. package/tailwind/theme/colors.cjs +18 -0
  45. package/tailwind/theme/colors.d.cts +2 -0
  46. package/tailwind/tokens/backgrounds.cjs +40 -0
  47. package/tailwind/tokens/backgrounds.d.cts +2 -0
  48. package/tailwind/tokens/border-radius.cjs +21 -0
  49. package/tailwind/tokens/border-radius.d.cts +33 -0
  50. package/tailwind/tokens/borders.cjs +20 -0
  51. package/tailwind/tokens/borders.d.cts +6 -0
  52. package/tailwind/tokens/fills.cjs +20 -0
  53. package/tailwind/tokens/fills.d.cts +15 -0
  54. package/tailwind/tokens/rings.cjs +42 -0
  55. package/tailwind/tokens/rings.d.cts +17 -0
  56. package/tailwind/tokens/text.cjs +33 -0
  57. package/tailwind/tokens/text.d.cts +21 -0
  58. package/themes/theme-seasonal.css +2 -2
  59. package/themes/theme-skeleton.css +6 -6
  60. package/utilities/LightSwitch/LightSwitch.svelte +36 -13
  61. package/utilities/LightSwitch/stores.d.ts +2 -3
  62. package/utilities/Modal/Modal.svelte +4 -3
  63. package/utilities/Modal/types.d.ts +4 -2
  64. package/utilities/Toast/stores.js +0 -1
  65. package/styles/tokens/backgrounds.css +0 -329
  66. package/styles/tokens/border-radius.css +0 -41
  67. package/styles/tokens/borders.css +0 -253
  68. package/styles/tokens/fills.css +0 -38
  69. package/styles/tokens/rings.css +0 -253
  70. package/styles/tokens/text.css +0 -293
  71. package/styles/tokens.css +0 -8
  72. package/tailwind/theme.cjs +0 -39
  73. package/tailwind/theme.d.cts +0 -5
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-secondary-500 focus:ring-secondary-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-secondary-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'] {
80
+ [type='checkbox']:not(.unstyled),
81
+ [type='radio']:not(.unstyled) {
81
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 === */
@@ -101,10 +101,10 @@ body {
101
101
  }
102
102
 
103
103
  del {
104
- @apply bg-success-500;
104
+ @apply bg-success-500 text-on-success-token;
105
105
  }
106
106
  ins {
107
- @apply bg-error-500;
107
+ @apply bg-error-500 text-on-error-token;
108
108
  }
109
109
 
110
110
  /* === Date/Time === */