@skeletonlabs/skeleton 0.92.2 → 0.124.2

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 (128) hide show
  1. package/README.md +0 -1
  2. package/actions/Filters/filter.js +6 -9
  3. package/components/Accordion/Accordion.svelte +30 -0
  4. package/components/Accordion/Accordion.svelte.d.ts +37 -0
  5. package/components/Accordion/AccordionItem.svelte +83 -63
  6. package/components/Accordion/AccordionItem.svelte.d.ts +20 -6
  7. package/components/AppBar/AppBar.svelte +48 -49
  8. package/components/AppBar/AppBar.svelte.d.ts +20 -1
  9. package/components/AppRail/AppRail.svelte +20 -40
  10. package/components/AppRail/AppRail.svelte.d.ts +13 -1
  11. package/components/AppRail/AppRailTile.svelte +32 -43
  12. package/components/AppRail/AppRailTile.svelte.d.ts +10 -4
  13. package/components/AppShell/AppShell.svelte +30 -39
  14. package/components/AppShell/AppShell.svelte.d.ts +11 -0
  15. package/components/Avatar/Avatar.svelte +18 -35
  16. package/components/Avatar/Avatar.svelte.d.ts +16 -5
  17. package/components/ConicGradient/ConicGradient.svelte +43 -49
  18. package/components/ConicGradient/ConicGradient.svelte.d.ts +11 -0
  19. package/components/ConicGradient/settings.d.ts +2 -4
  20. package/components/ConicGradient/settings.js +2 -2
  21. package/components/FileButton/FileButton.svelte +19 -14
  22. package/components/FileButton/FileButton.svelte.d.ts +3 -1
  23. package/components/FileDropzone/FileDropzone.svelte +48 -88
  24. package/components/FileDropzone/FileDropzone.svelte.d.ts +24 -8
  25. package/components/InputChip/InputChip.svelte +111 -96
  26. package/components/InputChip/InputChip.svelte.d.ts +28 -5
  27. package/components/ListBox/ListBox.svelte +18 -54
  28. package/components/ListBox/ListBox.svelte.d.ts +11 -10
  29. package/components/ListBox/ListBoxItem.svelte +69 -75
  30. package/components/ListBox/ListBoxItem.svelte.d.ts +11 -7
  31. package/components/Paginator/Paginator.svelte +27 -43
  32. package/components/Paginator/Paginator.svelte.d.ts +13 -2
  33. package/components/ProgressBar/ProgressBar.svelte +25 -44
  34. package/components/ProgressBar/ProgressBar.svelte.d.ts +9 -1
  35. package/components/ProgressRadial/ProgressRadial.svelte +20 -40
  36. package/components/ProgressRadial/ProgressRadial.svelte.d.ts +9 -2
  37. package/components/Radio/RadioGroup.svelte +22 -44
  38. package/components/Radio/RadioGroup.svelte.d.ts +15 -7
  39. package/components/Radio/RadioItem.svelte +37 -45
  40. package/components/Radio/RadioItem.svelte.d.ts +10 -6
  41. package/components/RangeSlider/RangeSlider.svelte +26 -57
  42. package/components/RangeSlider/RangeSlider.svelte.d.ts +11 -2
  43. package/components/SlideToggle/SlideToggle.svelte +43 -54
  44. package/components/SlideToggle/SlideToggle.svelte.d.ts +11 -3
  45. package/components/Stepper/Step.svelte +69 -120
  46. package/components/Stepper/Step.svelte.d.ts +17 -18
  47. package/components/Stepper/Stepper.svelte +61 -61
  48. package/components/Stepper/Stepper.svelte.d.ts +28 -14
  49. package/components/Tab/Tab.svelte +48 -61
  50. package/components/Tab/Tab.svelte.d.ts +19 -14
  51. package/components/Tab/TabGroup.svelte +35 -66
  52. package/components/Tab/TabGroup.svelte.d.ts +25 -9
  53. package/components/Table/Table.svelte +20 -36
  54. package/components/Table/Table.svelte.d.ts +9 -0
  55. package/components/TableOfContents/TableOfContents.svelte +63 -94
  56. package/components/TableOfContents/TableOfContents.svelte.d.ts +12 -0
  57. package/index.d.ts +2 -6
  58. package/index.js +1 -6
  59. package/package.json +39 -29
  60. package/styles/all.css +3 -3
  61. package/styles/core.css +11 -2
  62. package/styles/elements/alerts.css +2 -28
  63. package/styles/elements/badges.css +0 -25
  64. package/styles/elements/breadcrumbs.css +2 -3
  65. package/styles/elements/buttons.css +33 -120
  66. package/styles/elements/cards.css +2 -29
  67. package/styles/elements/chips.css +9 -58
  68. package/styles/elements/forms.css +269 -0
  69. package/styles/elements/lists.css +5 -4
  70. package/styles/elements/logo-clouds.css +2 -4
  71. package/styles/elements/tables.css +14 -10
  72. package/styles/elements.css +1 -0
  73. package/styles/tailwind.css +7 -3
  74. package/styles/typography.css +46 -62
  75. package/styles/variants.css +154 -0
  76. package/tailwind/core.cjs +37 -0
  77. package/tailwind/core.d.cts +5 -0
  78. package/tailwind/generated/intellisense-classes.cjs +1 -0
  79. package/tailwind/generated/{allComponents.d.cts → intellisense-classes.d.cts} +886 -1029
  80. package/tailwind/intellisense.cjs +21 -0
  81. package/tailwind/intellisense.d.cts +5 -0
  82. package/tailwind/settings.cjs +16 -16
  83. package/tailwind/skeleton.cjs +13 -44
  84. package/tailwind/skeleton.d.cts +4 -2
  85. package/tailwind/theme/colors.cjs +7 -7
  86. package/tailwind/tokens/backgrounds.cjs +28 -30
  87. package/tailwind/tokens/border-radius.cjs +15 -15
  88. package/tailwind/tokens/borders.cjs +14 -14
  89. package/tailwind/tokens/fills.cjs +14 -14
  90. package/tailwind/tokens/rings.cjs +40 -32
  91. package/tailwind/tokens/rings.d.cts +5 -0
  92. package/tailwind/tokens/text.cjs +24 -26
  93. package/themes/theme-skeleton.css +6 -6
  94. package/utilities/CodeBlock/CodeBlock.svelte +28 -40
  95. package/utilities/CodeBlock/CodeBlock.svelte.d.ts +8 -0
  96. package/utilities/DataTable/DataTable.js +1 -1
  97. package/utilities/Drawer/Drawer.svelte +82 -105
  98. package/utilities/Drawer/Drawer.svelte.d.ts +13 -0
  99. package/utilities/LightSwitch/LightSwitch.svelte +32 -50
  100. package/utilities/LightSwitch/LightSwitch.svelte.d.ts +3 -1
  101. package/utilities/Modal/Modal.svelte +58 -93
  102. package/utilities/Modal/Modal.svelte.d.ts +18 -0
  103. package/utilities/Modal/examples/ModalExampleEmbed.svelte +3 -6
  104. package/utilities/Modal/examples/ModalExampleForm.svelte +16 -22
  105. package/utilities/Modal/examples/ModalExampleImage.svelte +19 -0
  106. package/utilities/Modal/examples/ModalExampleImage.svelte.d.ts +16 -0
  107. package/utilities/Modal/examples/ModalExampleList.svelte +11 -15
  108. package/utilities/Toast/Toast.svelte +65 -87
  109. package/utilities/Toast/Toast.svelte.d.ts +12 -0
  110. package/utilities/Toast/stores.js +13 -4
  111. package/components/Accordion/AccordionGroup.svelte +0 -46
  112. package/components/Accordion/AccordionGroup.svelte.d.ts +0 -24
  113. package/components/Alert/Alert.svelte +0 -65
  114. package/components/Alert/Alert.svelte.d.ts +0 -30
  115. package/components/Breadcrumb/Breadcrumb.svelte +0 -24
  116. package/components/Breadcrumb/Breadcrumb.svelte.d.ts +0 -21
  117. package/components/Breadcrumb/Crumb.svelte +0 -37
  118. package/components/Breadcrumb/Crumb.svelte.d.ts +0 -26
  119. package/components/Divider/Divider.svelte +0 -21
  120. package/components/Divider/Divider.svelte.d.ts +0 -22
  121. package/components/GradientHeading/GradientHeading.svelte +0 -21
  122. package/components/GradientHeading/GradientHeading.svelte.d.ts +0 -22
  123. package/components/SvgIcon/SvgIcon.svelte +0 -45
  124. package/components/SvgIcon/SvgIcon.svelte.d.ts +0 -26
  125. package/components/SvgIcon/icons.d.ts +0 -1
  126. package/components/SvgIcon/icons.js +0 -25
  127. package/styles/forms.css +0 -178
  128. package/tailwind/generated/allComponents.cjs +0 -1
@@ -7,31 +7,31 @@
7
7
  @apply !opacity-50 !cursor-not-allowed active:scale-100 hover:brightness-100;
8
8
  }
9
9
 
10
- /* === Button === */
11
- /* Standard button/anchor tag elements. */
12
-
13
- .btn {
10
+ .button-base-styles {
14
11
  /* Size (match base) */
15
12
  @apply text-base px-5 py-[9px];
16
13
  /* Core */
17
14
  @apply text-center whitespace-nowrap;
18
15
  /* Flex Columns */
19
16
  @apply inline-flex justify-center items-center space-x-2;
20
- /* Hover */
21
- @apply hover:brightness-110;
17
+ /* States */
18
+ @apply hover:brightness-[1.15];
22
19
  /* Transitions */
23
- @apply transition-all active:scale-90;
24
- /* Theme: Rounded */
25
- @apply rounded-token;
20
+ @apply transition-all;
21
+ }
22
+
23
+ /* === Button === */
24
+ /* Standard button/anchor tag elements. */
25
+
26
+ .btn {
27
+ @apply button-base-styles rounded-token active:scale-[95%] active:brightness-90;
26
28
  }
27
29
 
28
30
  /* Button: Sizes */
31
+ /* Note: Default values are built into `.btn` */
29
32
  .btn-sm {
30
33
  @apply text-sm px-3 py-1.5;
31
34
  }
32
- .btn-base {
33
- @apply text-base px-5 py-[9px];
34
- }
35
35
  .btn-lg {
36
36
  @apply text-lg px-7 py-3;
37
37
  }
@@ -65,122 +65,35 @@
65
65
  @apply text-xl aspect-square w-[63px];
66
66
  }
67
67
 
68
- /* === Utilities === */
69
- /* A set of utility classes that work for any kind of button. */
70
-
71
- /* Outline */
72
- .btn-outline {
73
- @apply ring-2 ring-surface-900 dark:ring-surface-50 ring-inset;
74
- }
75
- .btn-outline-primary {
76
- @apply ring-2 ring-primary-500 ring-inset;
77
- }
78
- .btn-outline-secondary {
79
- @apply ring-2 ring-secondary-500 ring-inset;
80
- }
81
- .btn-outline-tertiary {
82
- @apply ring-2 ring-tertiary-500 ring-inset;
83
- }
84
- .btn-outline-success {
85
- @apply ring-2 ring-success-500 ring-inset;
86
- }
87
- .btn-outline-warning {
88
- @apply ring-2 ring-warning-500 ring-inset;
89
- }
90
- .btn-outline-error {
91
- @apply ring-2 ring-error-500 ring-inset;
92
- }
93
- .btn-outline-surface {
94
- @apply ring-2 ring-surface-400-500-token ring-inset;
68
+ /* File Input Button */
69
+ input[type='file']:not(.file-dropzone-input)::file-selector-button {
70
+ @apply border-0 btn variant-filled btn-sm mr-2;
95
71
  }
96
72
 
97
- /* === Variants === */
98
- /* A canned set of preset styles. */
73
+ /* === Button Groups === */
99
74
 
100
- /* Filled */
101
- .btn-filled {
102
- @apply bg-surface-900 dark:bg-surface-50 text-white dark:text-black;
103
- }
104
- .btn-filled-primary {
105
- @apply bg-primary-500 text-on-primary-token;
75
+ .btn-group {
76
+ @apply inline-flex flex-row space-x-0 overflow-hidden rounded-token;
106
77
  }
107
- .btn-filled-secondary {
108
- @apply bg-secondary-500 text-on-secondary-token;
109
- }
110
- .btn-filled-tertiary {
111
- @apply bg-tertiary-500 text-on-tertiary-token;
112
- }
113
- .btn-filled-success {
114
- @apply bg-success-500 text-on-success-token;
115
- }
116
- .btn-filled-warning {
117
- @apply bg-warning-500 text-on-warning-token;
118
- }
119
- .btn-filled-error {
120
- @apply bg-error-500 text-on-error-token;
121
- }
122
- .btn-filled-surface {
123
- @apply bg-surface-400-500-token;
78
+ .btn-group-vertical {
79
+ @apply btn-group flex-col space-y-0 rounded-container-token;
124
80
  }
125
81
 
126
- /* Ringed */
127
- .btn-ringed {
128
- @apply btn-outline;
129
- }
130
- .btn-ringed-primary {
131
- @apply btn-outline-primary;
132
- }
133
- .btn-ringed-secondary {
134
- @apply btn-outline-secondary;
135
- }
136
- .btn-ringed-tertiary {
137
- @apply btn-outline-tertiary;
138
- }
139
- .btn-ringed-success {
140
- @apply btn-outline-success;
141
- }
142
- .btn-ringed-warning {
143
- @apply btn-outline-warning;
144
- }
145
- .btn-ringed-error {
146
- @apply btn-outline-error;
147
- }
148
- .btn-ringed-surface {
149
- @apply btn-outline-surface;
82
+ /* Button / Anchors */
83
+ .btn-group button,
84
+ .btn-group a,
85
+ .btn-group-vertical button,
86
+ .btn-group-vertical a {
87
+ @apply button-base-styles hover:bg-surface-50/[3%] active:bg-surface-900/[3%];
88
+ /* Reset Anchor Styles */
89
+ @apply !no-underline !text-inherit;
150
90
  }
151
91
 
152
- /* Ghost */
153
- .btn-ghost {
154
- @apply btn-outline;
155
- /* Background */
156
- @apply bg-surface-900/20 dark:bg-surface-50/20;
157
- /* Hover */
158
- @apply hover:bg-surface-900/10 hover:dark:bg-surface-50/30;
159
- }
160
- .btn-ghost-primary {
161
- @apply btn-outline-primary bg-primary-500/20 hover:bg-primary-500/30;
162
- }
163
- .btn-ghost-secondary {
164
- @apply btn-outline-secondary bg-secondary-500/20 hover:bg-secondary-500/30;
165
- }
166
- .btn-ghost-tertiary {
167
- @apply btn-outline-tertiary bg-tertiary-500/20 hover:bg-tertiary-500/30;
168
- }
169
- .btn-ghost-success {
170
- @apply btn-outline-success bg-success-500/20 hover:bg-success-500/30;
171
- }
172
- .btn-ghost-warning {
173
- @apply btn-outline-warning bg-warning-500/20 hover:bg-warning-500/30;
92
+ /* Set Neutral Divider */
93
+ .btn-group * + * {
94
+ @apply border-t-0 border-l border-surface-500/20;
174
95
  }
175
- .btn-ghost-error {
176
- @apply btn-outline-error bg-error-500/20 hover:bg-error-500/30;
177
- }
178
- .btn-ghost-surface {
179
- @apply btn-outline-surface bg-surface-400/20 hover:bg-surface-500/30;
180
- }
181
-
182
- /* File Input Button */
183
- input[type='file']:not(.file-dropzone-input)::file-selector-button {
184
- @apply border-0 btn btn-filled-secondary btn-sm mr-2 text-token;
96
+ .btn-group-vertical * + * {
97
+ @apply border-t border-l-0 border-surface-500/20;
185
98
  }
186
99
  }
@@ -1,8 +1,6 @@
1
1
  /* Tailwind Elements: cards.css */
2
2
 
3
3
  @layer components {
4
- /* === Card (parent) === */
5
-
6
4
  .card {
7
5
  /* background */
8
6
  @apply bg-surface-100-800-token;
@@ -12,7 +10,7 @@
12
10
  @apply rounded-container-token;
13
11
  }
14
12
 
15
- /* === Card Regions (children) === */
13
+ /* === Regions === */
16
14
 
17
15
  .card-header {
18
16
  @apply p-4 pb-0;
@@ -25,35 +23,10 @@
25
23
  /* === States === */
26
24
 
27
25
  a.card {
28
- @apply transition-all hover:brightness-110;
26
+ @apply transition-all hover:brightness-105;
29
27
  }
30
28
 
31
29
  .card-hover {
32
30
  @apply transition-all hover:scale-[101%] hover:shadow-xl;
33
31
  }
34
-
35
- /* === Variants === */
36
-
37
- .card-glass-primary {
38
- @apply bg-primary-500/10 dark:bg-primary-500/10 backdrop-blur-lg;
39
- }
40
- .card-glass-secondary {
41
- @apply bg-secondary-500/10 dark:bg-secondary-500/10 backdrop-blur-lg;
42
- }
43
- .card-glass-tertiary {
44
- @apply bg-tertiary-500/10 dark:bg-tertiary-500/10 backdrop-blur-lg;
45
- }
46
- .card-glass-success {
47
- @apply bg-success-500/10 dark:bg-success-500/10 backdrop-blur-lg;
48
- }
49
- .card-glass-warning {
50
- @apply bg-warning-500/10 dark:bg-warning-500/10 backdrop-blur-lg;
51
- }
52
- .card-glass-error {
53
- @apply bg-error-500/10 dark:bg-error-500/10 backdrop-blur-lg;
54
- }
55
- .card-glass,
56
- .card-glass-surface {
57
- @apply bg-surface-500/10 dark:bg-surface-500/10 backdrop-blur-lg;
58
- }
59
32
  }
@@ -1,71 +1,22 @@
1
1
  /* Tailwind Elements: chips.css */
2
2
 
3
- /* NOTE: these are a work in progress; best not to use them yet! */
4
-
5
3
  @layer components {
6
4
  .chip {
7
- /* Core */
8
- @apply inline-flex items-center space-x-2 whitespace-nowrap cursor-pointer;
5
+ @apply px-3 py-1.5 whitespace-nowrap cursor-pointer;
9
6
  /* Text */
10
- @apply text-xs text-token;
11
- /* Padding */
12
- @apply px-3 py-1.5;
13
- /* Theme: Rounded */
7
+ @apply text-xs text-center;
8
+ /* Rounded */
14
9
  @apply rounded;
15
- /* Ring */
16
- @apply ring-[1px] ring-surface-500-400-token ring-inset;
17
- /* Background */
18
- @apply hover:bg-surface-hover-token;
10
+ /* Flex Columns */
11
+ @apply inline-flex justify-center items-center space-x-2;
12
+ /* States */
13
+ @apply hover:brightness-[1.15];
14
+ /* Transitions */
15
+ @apply transition-all;
19
16
  }
20
17
 
21
18
  .chip-disabled,
22
19
  .chip:disabled {
23
20
  @apply !opacity-50 !cursor-not-allowed active:scale-100;
24
21
  }
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;
70
- }
71
22
  }
@@ -0,0 +1,269 @@
1
+ /* Stylesheet: forms.css */
2
+
3
+ @layer base {
4
+ /* === Resets === */
5
+
6
+ fieldset,
7
+ legend,
8
+ label {
9
+ @apply block;
10
+ }
11
+
12
+ /* Placeholders */
13
+ ::-moz-placeholder {
14
+ @apply text-surface-500-400-token;
15
+ }
16
+ :-ms-input-placeholder {
17
+ @apply text-surface-500-400-token;
18
+ }
19
+ ::placeholder {
20
+ @apply text-surface-500-400-token;
21
+ }
22
+
23
+ /* Date Calendar Picker (Webkit) */
24
+ ::-webkit-calendar-picker-indicator {
25
+ @apply dark:invert;
26
+ }
27
+
28
+ /* Progress Bar */
29
+ progress {
30
+ webkit-appearance: none;
31
+ -moz-appearance: none;
32
+ appearance: none;
33
+ @apply w-full h-2 overflow-hidden rounded-token;
34
+ @apply bg-surface-400-500-token;
35
+ }
36
+ progress::-webkit-progress-bar {
37
+ @apply bg-surface-400-500-token;
38
+ }
39
+ progress::-webkit-progress-value {
40
+ @apply bg-surface-900-50-token;
41
+ }
42
+ ::-moz-progress-bar {
43
+ @apply bg-surface-900-50-token;
44
+ }
45
+ :indeterminate::-moz-progress-bar {
46
+ width: 0;
47
+ }
48
+
49
+ /* Range Input */
50
+ /* https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color */
51
+ [type='range'] {
52
+ @apply w-full accent-surface-900 dark:accent-surface-50;
53
+ }
54
+
55
+ /* === Text Labeling === */
56
+
57
+ .legend {
58
+ @apply font-heading-token text-xl md:text-2xl;
59
+ }
60
+
61
+ .label {
62
+ @apply space-y-1;
63
+ }
64
+
65
+ /* === Core Styles === */
66
+
67
+ .input,
68
+ .textarea,
69
+ .select,
70
+ .input-group {
71
+ @apply w-full transition duration-200;
72
+ /* Background */
73
+ @apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105;
74
+ /* Ring */
75
+ @apply !ring-0;
76
+ /* Border */
77
+ @apply border-token border-surface-400-500-token focus:border-primary-500;
78
+ }
79
+
80
+ /* Base Inputs */
81
+ .input,
82
+ .input-group {
83
+ @apply rounded-token;
84
+ }
85
+
86
+ /* Container Inputs */
87
+ .textarea,
88
+ .select {
89
+ @apply rounded-container-token;
90
+ }
91
+
92
+ /* Select (size/multiple) */
93
+ .select {
94
+ @apply p-2 space-y-1;
95
+ }
96
+ .select[size] {
97
+ @apply bg-none;
98
+ }
99
+ .select optgroup {
100
+ @apply space-y-1 font-bold;
101
+ }
102
+ .select optgroup option {
103
+ @apply ml-0 pl-0;
104
+ }
105
+ .select optgroup option:first-of-type {
106
+ @apply mt-3;
107
+ }
108
+ .select optgroup option:last-child {
109
+ @apply !mb-3;
110
+ }
111
+ .select option {
112
+ @apply px-4 py-2 rounded-token;
113
+ }
114
+ .select option:checked {
115
+ /* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
116
+ background: rgb(var(--color-surface-900)) linear-gradient(0deg, rgb(var(--color-surface-900)) 0%, rgb(var(--color-surface-900)) 100%);
117
+ @apply text-surface-50-900-token;
118
+ }
119
+ .dark .select option:checked {
120
+ /* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
121
+ background: rgb(var(--color-surface-50)) linear-gradient(0deg, rgb(var(--color-surface-50)) 0%, rgb(var(--color-surface-50)) 100%);
122
+ }
123
+
124
+ /* Checkbox & Radio */
125
+ .checkbox,
126
+ .radio {
127
+ @apply w-5 h-5 !ring-0 rounded cursor-pointer;
128
+ /* Background */
129
+ @apply bg-surface-200-700-token focus:brightness-105 hover:brightness-105;
130
+ /* Border */
131
+ @apply border-token border-surface-400-500-token focus:border-primary-500;
132
+ }
133
+ .checkbox:checked,
134
+ .radio:checked {
135
+ @apply bg-primary-500 hover:bg-primary-500 focus:bg-primary-500 focus:ring-0;
136
+ }
137
+ .radio {
138
+ @apply rounded-token;
139
+ }
140
+
141
+ /* === Specialized === */
142
+
143
+ /* File Inputs */
144
+ .input[type='file'] {
145
+ @apply p-1;
146
+ }
147
+
148
+ /* Color Picker */
149
+ /* https://stackoverflow.com/questions/11167281/webkit-css-to-control-the-box-around-the-color-in-an-inputtype-color */
150
+ .input[type='color'] {
151
+ @apply border-none w-10 h-10 overflow-hidden rounded-token cursor-pointer;
152
+ -webkit-appearance: none; /* WebKit Only */
153
+ }
154
+ .input[type='color']::-webkit-color-swatch-wrapper {
155
+ @apply p-0;
156
+ }
157
+ .input[type='color']::-webkit-color-swatch {
158
+ @apply border-none hover:brightness-110;
159
+ }
160
+ .input[type='color']::-moz-color-swatch {
161
+ @apply border-none;
162
+ }
163
+
164
+ /* === States === */
165
+
166
+ .input:disabled,
167
+ .textarea:disabled,
168
+ .select:disabled {
169
+ @apply !opacity-50 !cursor-not-allowed hover:!brightness-100;
170
+ }
171
+
172
+ .input[readonly],
173
+ .textarea[readonly],
174
+ .select[readonly] {
175
+ @apply !border-0 !cursor-not-allowed hover:!brightness-100;
176
+ }
177
+
178
+ /* === Input Groups === */
179
+
180
+ .input-group {
181
+ @apply grid overflow-hidden;
182
+ }
183
+ .input-group input,
184
+ .input-group select {
185
+ @apply border-0 ring-0 bg-transparent;
186
+ }
187
+ .input-group div,
188
+ .input-group a,
189
+ .input-group button {
190
+ @apply px-4 flex justify-between items-center;
191
+ }
192
+ .input-group-divider input,
193
+ .input-group-divider select,
194
+ .input-group-divider div,
195
+ .input-group-divider a {
196
+ @apply border-l border-surface-400-500-token focus:border-surface-400-500-token;
197
+ /* Disable Ring */
198
+ @apply !ring-0;
199
+ /* Prevent buttons from being squished */
200
+ @apply !min-w-fit;
201
+ }
202
+ .input-group-divider *:first-child {
203
+ @apply !border-l-0;
204
+ }
205
+ .input-group-shim {
206
+ @apply bg-surface-400/10 text-surface-600-300-token;
207
+ }
208
+
209
+ /* === Variants === */
210
+
211
+ /* success */
212
+ .input-success {
213
+ @apply !bg-success-200 !border-success-500 !text-success-700;
214
+ }
215
+ .input-success::-moz-placeholder {
216
+ @apply text-success-700;
217
+ }
218
+ .input-success:-ms-input-placeholder {
219
+ @apply text-success-700;
220
+ }
221
+ .input-success::placeholder {
222
+ @apply text-success-700;
223
+ }
224
+
225
+ /* warning */
226
+ .input-warning {
227
+ @apply !bg-warning-200 !border-warning-500 !text-warning-700;
228
+ }
229
+ .input-warning::-moz-placeholder {
230
+ @apply text-warning-700;
231
+ }
232
+ .input-warning:-ms-input-placeholder {
233
+ @apply text-warning-700;
234
+ }
235
+ .input-warning::placeholder {
236
+ @apply text-warning-700;
237
+ }
238
+
239
+ /* error */
240
+ .input-error {
241
+ @apply !bg-error-200 !border-error-500 !text-error-500;
242
+ }
243
+ .input-error::-moz-placeholder {
244
+ @apply text-error-500;
245
+ }
246
+ .input-error:-ms-input-placeholder {
247
+ @apply text-error-500;
248
+ }
249
+ .input-error::placeholder {
250
+ @apply text-error-500;
251
+ }
252
+
253
+ /* === Variants === */
254
+
255
+ /* Material */
256
+ .variant-form-material {
257
+ /* Border Radius */
258
+ @apply !rounded-tl !rounded-tr !rounded-bl-none !rounded-br-none;
259
+ /* Background */
260
+ @apply bg-surface-500/10 dark:bg-surface-500/20;
261
+ /* Border */
262
+ @apply border-0 border-b-2;
263
+ /* Blur */
264
+ @apply backdrop-blur;
265
+ }
266
+ .variant-form-material[type='file'] {
267
+ @apply !py-1.5;
268
+ }
269
+ }
@@ -18,7 +18,7 @@
18
18
  /* @apply bg-red-500; */
19
19
  @apply flex items-center space-x-4 whitespace-nowrap;
20
20
  /* Padding */
21
- @apply px-4 py-3;
21
+ @apply p-2;
22
22
  /* Theme: Rounded */
23
23
  @apply rounded-token;
24
24
  }
@@ -27,16 +27,17 @@
27
27
  /* @apply bg-blue-500; */
28
28
  @apply flex items-center space-x-4 whitespace-nowrap;
29
29
  /* Padding */
30
- @apply px-4 py-3;
30
+ @apply p-2;
31
31
  /* Theme: Rounded */
32
32
  @apply rounded-token;
33
33
  }
34
34
 
35
35
  .list-nav a,
36
- .list-nav .option {
36
+ .list-nav button,
37
+ .list-option {
37
38
  @apply flex items-center space-x-4 whitespace-nowrap;
38
39
  /* Padding */
39
- @apply px-4 py-3;
40
+ @apply px-4 py-2;
40
41
  /* Hover */
41
42
  @apply bg-primary-hover-token;
42
43
  /* Cursor */
@@ -1,8 +1,6 @@
1
1
  /* Tailwind Elements: logo-clouds.css */
2
2
 
3
3
  @layer components {
4
- /* === Logo Cloud (Parent) === */
5
-
6
4
  .logo-cloud {
7
5
  @apply grid overflow-hidden;
8
6
  /* Theme: Rounded */
@@ -16,11 +14,11 @@
16
14
  /* Center Contents */
17
15
  @apply flex justify-center items-center space-x-4;
18
16
  /* Background */
19
- @apply bg-surface-100-800-token;
17
+ @apply bg-surface-500/10 dark:bg-surface-500/20;
20
18
  /* Text */
21
19
  @apply text-base font-bold text-black dark:text-white;
22
20
  /* Padding */
23
- @apply py-4 md:py-10;
21
+ @apply py-4 md:py-8;
24
22
  }
25
23
 
26
24
  /* === States === */
@@ -9,8 +9,6 @@
9
9
  @apply w-full overflow-hidden table-auto;
10
10
  /* background */
11
11
  @apply bg-surface-100-800-token;
12
- /* Ring */
13
- @apply ring-[1px] ring-neutral-900/5 dark:ring-neutral-50/5 ring-inset;
14
12
  /* Theme: Rounded */
15
13
  @apply rounded-container-token;
16
14
  }
@@ -29,20 +27,22 @@
29
27
 
30
28
  [data-sort] {
31
29
  @apply hover:bg-primary-hover-token cursor-pointer;
30
+ /* Sort Icon - invisible by default */
31
+ @apply after:opacity-0 after:!ml-2 after:!content-['↓'];
32
32
  }
33
33
 
34
34
  .table-sort-asc {
35
- @apply after:opacity-50 after:ml-2 after:!content-['↓'];
35
+ @apply after:opacity-50 after:!content-['↓'];
36
36
  }
37
37
 
38
38
  .table-sort-dsc {
39
- @apply after:opacity-50 after:ml-2 after:!content-['↑'];
39
+ @apply after:opacity-50 after:!content-['↑'];
40
40
  }
41
41
 
42
42
  /* === Table Head === */
43
43
 
44
44
  .table thead {
45
- @apply bg-surface-200-700-token;
45
+ @apply bg-surface-200-700-token border-b border-surface-500/20;
46
46
  }
47
47
 
48
48
  .table thead tr {
@@ -56,15 +56,19 @@
56
56
  /* === Table Body === */
57
57
 
58
58
  .table tbody tr {
59
- @apply border-b border-surface-500/30 even:bg-surface-500/5;
59
+ @apply border-b border-surface-500/20 even:bg-surface-500/5;
60
60
  }
61
61
 
62
62
  .table tbody td {
63
- @apply text-sm p-4 py-2 md:py-3 xl:py-4 whitespace-nowrap;
63
+ @apply text-sm px-4 py-2 md:py-3 xl:py-4 whitespace-nowrap;
64
64
  }
65
65
 
66
- .table tbody td input[type='checkbox'] {
67
- @apply ring-2 ring-white/20;
66
+ .table-compact tbody td {
67
+ @apply py-1 md:py-2 xl:py-3;
68
+ }
69
+
70
+ .table-comfortable tbody td {
71
+ @apply py-3 md:py-4 xl:py-8;
68
72
  }
69
73
 
70
74
  /* === Table Foot === */
@@ -85,7 +89,7 @@
85
89
  /* === Rows Specific === */
86
90
 
87
91
  .table-row-checked {
88
- @apply !bg-secondary-500/30;
92
+ @apply !bg-secondary-500/20;
89
93
  }
90
94
 
91
95
  /* === Cells Specific === */