@code-coaching/vuetiful 0.26.0 → 0.27.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 (262) hide show
  1. package/README.md +47 -55
  2. package/dist/css/animations.css +2 -0
  3. package/{src → dist}/css/overrides/quasar.css +73 -58
  4. package/{src/styles → dist/css}/transitions/slide.css +6 -0
  5. package/dist/favicon.ico +0 -0
  6. package/dist/types/components/atoms/VAvatar.vue.d.ts +39 -90
  7. package/dist/types/components/atoms/VBadge.vue.d.ts +34 -21
  8. package/dist/types/components/atoms/VButton.vue.d.ts +42 -48
  9. package/dist/types/components/atoms/VChip.vue.d.ts +33 -21
  10. package/dist/types/components/atoms/VLightSwitch.vue.d.ts +5 -5
  11. package/dist/types/components/atoms/VRadio/VRadioDescription.vue.d.ts +7 -12
  12. package/dist/types/components/atoms/VRadio/VRadioGroup.vue.d.ts +53 -83
  13. package/dist/types/components/atoms/VRadio/VRadioItem.vue.d.ts +46 -12
  14. package/dist/types/components/atoms/VRadio/VRadioLabel.vue.d.ts +7 -12
  15. package/dist/types/components/atoms/VSwitch/VSwitch.vue.d.ts +51 -72
  16. package/dist/types/components/atoms/VSwitch/VSwitchDescription.vue.d.ts +32 -11
  17. package/dist/types/components/atoms/VSwitch/VSwitchGroup.vue.d.ts +32 -11
  18. package/dist/types/components/atoms/VSwitch/VSwitchLabel.vue.d.ts +33 -20
  19. package/dist/types/components/molecules/VAccordion/VAccordion.vue.d.ts +39 -28
  20. package/dist/types/components/molecules/VAccordion/VAccordionItem.vue.d.ts +35 -19
  21. package/dist/types/components/molecules/VAlert.vue.d.ts +50 -73
  22. package/dist/types/components/molecules/VCard/VCard.vue.d.ts +37 -48
  23. package/dist/types/components/molecules/VCard/VCardBody.vue.d.ts +33 -12
  24. package/dist/types/components/molecules/VCard/VCardFooter.vue.d.ts +36 -20
  25. package/dist/types/components/molecules/VCard/VCardHeader.vue.d.ts +36 -20
  26. package/dist/types/components/molecules/VCodeBlock.vue.d.ts +15 -16
  27. package/dist/types/components/molecules/VDrawer.vue.d.ts +13 -7
  28. package/dist/types/components/molecules/VListbox/VListbox.vue.d.ts +54 -132
  29. package/dist/types/components/molecules/VListbox/VListboxButton.vue.d.ts +22 -21
  30. package/dist/types/components/molecules/VListbox/VListboxItem.vue.d.ts +22 -19
  31. package/dist/types/components/molecules/VListbox/VListboxItems.vue.d.ts +19 -30
  32. package/dist/types/components/molecules/VListbox/VListboxLabel.vue.d.ts +7 -12
  33. package/dist/types/components/molecules/VPreview.vue.d.ts +57 -74
  34. package/dist/types/components/molecules/VRail/VRail.vue.d.ts +28 -13
  35. package/dist/types/components/molecules/VRail/VRailTile.vue.d.ts +49 -16
  36. package/dist/types/components/molecules/VShell.vue.d.ts +76 -44
  37. package/dist/types/components/molecules/VShellConfigurator.vue.d.ts +99 -0
  38. package/dist/types/components/molecules/VTabs/VTab.vue.d.ts +52 -20
  39. package/dist/types/components/molecules/VTabs/VTabPanel.vue.d.ts +8 -1
  40. package/dist/types/components/molecules/VTabs/VTabs.vue.d.ts +43 -101
  41. package/dist/types/components/molecules/Vuetiful.vue.d.ts +22 -0
  42. package/dist/types/components/molecules/index.d.ts +3 -4
  43. package/dist/types/directives/click-outside-group.d.ts +1 -1
  44. package/dist/types/directives/click-outside.d.ts +1 -1
  45. package/dist/types/directives/clipboard.d.ts +1 -1
  46. package/dist/types/index.d.ts +1 -8
  47. package/dist/types/props/props.d.ts +1 -14
  48. package/dist/types/services/dark-mode.service.d.ts +1 -1
  49. package/dist/types/services/drawer.service.d.ts +3 -3
  50. package/dist/types/services/index.d.ts +2 -2
  51. package/dist/types/utils/id-generator.d.ts +1 -0
  52. package/dist/types/utils/index.d.ts +3 -4
  53. package/dist/types/utils/tailwind-merge.d.ts +1 -0
  54. package/dist/types/utils/theme/rocket.theme.d.ts +223 -0
  55. package/dist/types/utils/theme/theme-switcher.vue.d.ts +14 -5
  56. package/dist/types/utils/theme/theme.service.d.ts +6 -9
  57. package/dist/types/utils/theme/themes.d.ts +3 -39
  58. package/dist/types/utils/theme/vuetiful.theme.d.ts +224 -0
  59. package/dist/vuetiful.es.mjs +54831 -49535
  60. package/dist/vuetiful.umd.cjs +189 -0
  61. package/package.json +53 -37
  62. package/dist/style.css +0 -10
  63. package/dist/types/components/VBootstrap.vue.d.ts +0 -15
  64. package/dist/types/components/atoms/VAvatar.test.d.ts +0 -1
  65. package/dist/types/components/atoms/VBadge.test.d.ts +0 -1
  66. package/dist/types/components/atoms/VButton.test.d.ts +0 -1
  67. package/dist/types/components/atoms/VChip.test.d.ts +0 -1
  68. package/dist/types/components/atoms/VLightSwitch.test.d.ts +0 -1
  69. package/dist/types/components/atoms/VRadio/VRadioDescription.test.d.ts +0 -1
  70. package/dist/types/components/atoms/VRadio/VRadioGroup.test.d.ts +0 -1
  71. package/dist/types/components/atoms/VRadio/VRadioItem.test.d.ts +0 -1
  72. package/dist/types/components/atoms/VRadio/VRadioLabel.test.d.ts +0 -1
  73. package/dist/types/components/atoms/VSwitch/VSwitch.test.d.ts +0 -1
  74. package/dist/types/components/atoms/VSwitch/VSwitchDescription.test.d.ts +0 -1
  75. package/dist/types/components/atoms/VSwitch/VSwitchGroup.test.d.ts +0 -1
  76. package/dist/types/components/atoms/VSwitch/VSwitchLabel.test.d.ts +0 -1
  77. package/dist/types/components/molecules/VAccordion/VAccordion.test.d.ts +0 -1
  78. package/dist/types/components/molecules/VAccordion/VAccordionItem.test.d.ts +0 -1
  79. package/dist/types/components/molecules/VAlert.test.d.ts +0 -1
  80. package/dist/types/components/molecules/VCard/VCard.test.d.ts +0 -1
  81. package/dist/types/components/molecules/VCard/VCardBody.test.d.ts +0 -1
  82. package/dist/types/components/molecules/VCard/VCardFooter.test.d.ts +0 -1
  83. package/dist/types/components/molecules/VCard/VCardHeader.test.d.ts +0 -1
  84. package/dist/types/components/molecules/VCodeBlock.test.d.ts +0 -1
  85. package/dist/types/components/molecules/VDrawer.test.d.ts +0 -1
  86. package/dist/types/components/molecules/VListbox/VListbox.test.d.ts +0 -1
  87. package/dist/types/components/molecules/VListbox/VListboxButton.test.d.ts +0 -1
  88. package/dist/types/components/molecules/VListbox/VListboxItem.test.d.ts +0 -1
  89. package/dist/types/components/molecules/VListbox/VListboxItems.test.d.ts +0 -1
  90. package/dist/types/components/molecules/VListbox/VListboxLabel.test.d.ts +0 -1
  91. package/dist/types/components/molecules/VPreview.test.d.ts +0 -1
  92. package/dist/types/components/molecules/VRail/VRail.test.d.ts +0 -1
  93. package/dist/types/components/molecules/VRail/VRailTile.test.d.ts +0 -1
  94. package/dist/types/components/molecules/VShell.test.d.ts +0 -1
  95. package/dist/types/components/molecules/VTabs/VTab.test.d.ts +0 -1
  96. package/dist/types/components/molecules/VTabs/VTabPanel.test.d.ts +0 -1
  97. package/dist/types/components/molecules/VTabs/VTabs.test.d.ts +0 -1
  98. package/dist/types/directives/click-outside-group.test.d.ts +0 -1
  99. package/dist/types/directives/click-outside.test.d.ts +0 -1
  100. package/dist/types/directives/clipboard.test.d.ts +0 -1
  101. package/dist/types/services/dark-mode.service.test.d.ts +0 -1
  102. package/dist/types/services/drawer.service.test.d.ts +0 -1
  103. package/dist/types/services/highlight.service.test.d.ts +0 -1
  104. package/dist/types/services/rail.service.test.d.ts +0 -1
  105. package/dist/types/services/settings.service.test.d.ts +0 -1
  106. package/dist/types/types/index.d.ts +0 -54
  107. package/dist/types/types/tailwind.d.ts +0 -4
  108. package/dist/types/utils/colors/colors.service.d.ts +0 -69
  109. package/dist/types/utils/platform/platform.service.test.d.ts +0 -1
  110. package/dist/types/utils/theme/callback.test.d.ts +0 -1
  111. package/dist/types/utils/theme/remove.test.d.ts +0 -1
  112. package/dist/types/utils/theme/theme.service.test.d.ts +0 -1
  113. package/dist/vuetiful.umd.js +0 -99
  114. package/src/assets/fonts/myfont.woff +0 -0
  115. package/src/assets/main.css +0 -17
  116. package/src/components/VBootstrap.vue +0 -62
  117. package/src/components/atoms/VAvatar.test.ts +0 -175
  118. package/src/components/atoms/VAvatar.vue +0 -89
  119. package/src/components/atoms/VBadge.test.ts +0 -28
  120. package/src/components/atoms/VBadge.vue +0 -17
  121. package/src/components/atoms/VButton.test.ts +0 -180
  122. package/src/components/atoms/VButton.vue +0 -76
  123. package/src/components/atoms/VChip.test.ts +0 -33
  124. package/src/components/atoms/VChip.vue +0 -17
  125. package/src/components/atoms/VLightSwitch.test.ts +0 -69
  126. package/src/components/atoms/VLightSwitch.vue +0 -121
  127. package/src/components/atoms/VRadio/VRadioDescription.test.ts +0 -55
  128. package/src/components/atoms/VRadio/VRadioDescription.vue +0 -14
  129. package/src/components/atoms/VRadio/VRadioGroup.test.ts +0 -81
  130. package/src/components/atoms/VRadio/VRadioGroup.vue +0 -88
  131. package/src/components/atoms/VRadio/VRadioItem.test.ts +0 -183
  132. package/src/components/atoms/VRadio/VRadioItem.vue +0 -36
  133. package/src/components/atoms/VRadio/VRadioLabel.test.ts +0 -55
  134. package/src/components/atoms/VRadio/VRadioLabel.vue +0 -16
  135. package/src/components/atoms/VSwitch/VSwitch.test.ts +0 -100
  136. package/src/components/atoms/VSwitch/VSwitch.vue +0 -106
  137. package/src/components/atoms/VSwitch/VSwitchDescription.test.ts +0 -55
  138. package/src/components/atoms/VSwitch/VSwitchDescription.vue +0 -16
  139. package/src/components/atoms/VSwitch/VSwitchGroup.test.ts +0 -26
  140. package/src/components/atoms/VSwitch/VSwitchGroup.vue +0 -16
  141. package/src/components/atoms/VSwitch/VSwitchLabel.test.ts +0 -89
  142. package/src/components/atoms/VSwitch/VSwitchLabel.vue +0 -20
  143. package/src/components/atoms/index.ts +0 -31
  144. package/src/components/index.ts +0 -2
  145. package/src/components/molecules/VAccordion/VAccordion.test.ts +0 -27
  146. package/src/components/molecules/VAccordion/VAccordion.vue +0 -32
  147. package/src/components/molecules/VAccordion/VAccordionItem.test.ts +0 -134
  148. package/src/components/molecules/VAccordion/VAccordionItem.vue +0 -68
  149. package/src/components/molecules/VAlert.test.ts +0 -100
  150. package/src/components/molecules/VAlert.vue +0 -137
  151. package/src/components/molecules/VCard/VCard.test.ts +0 -47
  152. package/src/components/molecules/VCard/VCard.vue +0 -74
  153. package/src/components/molecules/VCard/VCardBody.test.ts +0 -39
  154. package/src/components/molecules/VCard/VCardBody.vue +0 -16
  155. package/src/components/molecules/VCard/VCardFooter.test.ts +0 -63
  156. package/src/components/molecules/VCard/VCardFooter.vue +0 -31
  157. package/src/components/molecules/VCard/VCardHeader.test.ts +0 -86
  158. package/src/components/molecules/VCard/VCardHeader.vue +0 -53
  159. package/src/components/molecules/VCodeBlock.test.ts +0 -133
  160. package/src/components/molecules/VCodeBlock.vue +0 -113
  161. package/src/components/molecules/VDrawer.test.ts +0 -14
  162. package/src/components/molecules/VDrawer.vue +0 -87
  163. package/src/components/molecules/VListbox/VListbox.test.ts +0 -146
  164. package/src/components/molecules/VListbox/VListbox.vue +0 -149
  165. package/src/components/molecules/VListbox/VListboxButton.test.ts +0 -66
  166. package/src/components/molecules/VListbox/VListboxButton.vue +0 -57
  167. package/src/components/molecules/VListbox/VListboxItem.test.ts +0 -51
  168. package/src/components/molecules/VListbox/VListboxItem.vue +0 -39
  169. package/src/components/molecules/VListbox/VListboxItems.test.ts +0 -44
  170. package/src/components/molecules/VListbox/VListboxItems.vue +0 -42
  171. package/src/components/molecules/VListbox/VListboxLabel.test.ts +0 -30
  172. package/src/components/molecules/VListbox/VListboxLabel.vue +0 -14
  173. package/src/components/molecules/VPreview.test.ts +0 -73
  174. package/src/components/molecules/VPreview.vue +0 -230
  175. package/src/components/molecules/VRail/VRail.test.ts +0 -14
  176. package/src/components/molecules/VRail/VRail.vue +0 -33
  177. package/src/components/molecules/VRail/VRailTile.test.ts +0 -97
  178. package/src/components/molecules/VRail/VRailTile.vue +0 -49
  179. package/src/components/molecules/VShell.test.ts +0 -14
  180. package/src/components/molecules/VShell.vue +0 -63
  181. package/src/components/molecules/VTabs/VTab.test.ts +0 -143
  182. package/src/components/molecules/VTabs/VTab.vue +0 -50
  183. package/src/components/molecules/VTabs/VTabPanel.test.ts +0 -24
  184. package/src/components/molecules/VTabs/VTabPanel.vue +0 -9
  185. package/src/components/molecules/VTabs/VTabs.test.ts +0 -92
  186. package/src/components/molecules/VTabs/VTabs.vue +0 -104
  187. package/src/components/molecules/index.ts +0 -51
  188. package/src/directives/click-outside-group.test.ts +0 -44
  189. package/src/directives/click-outside-group.ts +0 -39
  190. package/src/directives/click-outside.test.ts +0 -38
  191. package/src/directives/click-outside.ts +0 -28
  192. package/src/directives/clipboard.test.ts +0 -26
  193. package/src/directives/clipboard.ts +0 -9
  194. package/src/directives/index.ts +0 -5
  195. package/src/env.d.ts +0 -8
  196. package/src/index.ts +0 -21
  197. package/src/props/index.ts +0 -1
  198. package/src/props/props.ts +0 -62
  199. package/src/services/dark-mode.service.test.ts +0 -104
  200. package/src/services/dark-mode.service.ts +0 -75
  201. package/src/services/drawer.service.test.ts +0 -45
  202. package/src/services/drawer.service.ts +0 -46
  203. package/src/services/highlight.service.test.ts +0 -24
  204. package/src/services/highlight.service.ts +0 -19
  205. package/src/services/index.ts +0 -8
  206. package/src/services/rail.service.test.ts +0 -13
  207. package/src/services/rail.service.ts +0 -11
  208. package/src/services/settings.service.test.ts +0 -17
  209. package/src/services/settings.service.ts +0 -136
  210. package/src/styles/all.css +0 -24
  211. package/src/styles/core.css +0 -66
  212. package/src/styles/elements/alerts.css +0 -17
  213. package/src/styles/elements/badges.css +0 -31
  214. package/src/styles/elements/breadcrumbs.css +0 -26
  215. package/src/styles/elements/buttons.css +0 -103
  216. package/src/styles/elements/cards.css +0 -32
  217. package/src/styles/elements/chips.css +0 -22
  218. package/src/styles/elements/forms.css +0 -269
  219. package/src/styles/elements/lists.css +0 -48
  220. package/src/styles/elements/logo-clouds.css +0 -29
  221. package/src/styles/elements/modals.css +0 -15
  222. package/src/styles/elements/placeholders.css +0 -17
  223. package/src/styles/elements/popups.css +0 -16
  224. package/src/styles/elements/tables.css +0 -102
  225. package/src/styles/elements.css +0 -19
  226. package/src/styles/highlight-js.css +0 -116
  227. package/src/styles/tailwind.css +0 -16
  228. package/src/styles/transitions.css +0 -2
  229. package/src/styles/typography.css +0 -101
  230. package/src/styles/variants.css +0 -156
  231. package/src/tailwind/core.cjs +0 -37
  232. package/src/tailwind/generated/intellisense-classes.cjs +0 -558
  233. package/src/tailwind/intellisense.cjs +0 -21
  234. package/src/tailwind/settings.cjs +0 -20
  235. package/src/tailwind/theme/colors.cjs +0 -20
  236. package/src/tailwind/tokens/backgrounds.cjs +0 -48
  237. package/src/tailwind/tokens/border-radius.cjs +0 -21
  238. package/src/tailwind/tokens/borders.cjs +0 -24
  239. package/src/tailwind/tokens/fills.cjs +0 -20
  240. package/src/tailwind/tokens/rings.cjs +0 -50
  241. package/src/tailwind/tokens/text.cjs +0 -35
  242. package/src/tailwind/vuetiful.cjs +0 -19
  243. package/src/themes/theme-rocket.css +0 -119
  244. package/src/themes/theme-sahara.css +0 -128
  245. package/src/themes/theme-seafoam.css +0 -120
  246. package/src/themes/theme-seasonal.css +0 -115
  247. package/src/themes/theme-skeleton.css +0 -115
  248. package/src/themes/theme-vintage.css +0 -125
  249. package/src/themes/theme-vuetiful.css +0 -136
  250. package/src/types/index.ts +0 -59
  251. package/src/types/tailwind.ts +0 -7
  252. package/src/utils/colors/colors.service.ts +0 -293
  253. package/src/utils/index.ts +0 -8
  254. package/src/utils/platform/platform.service.test.ts +0 -19
  255. package/src/utils/platform/platform.service.ts +0 -8
  256. package/src/utils/theme/callback.test.ts +0 -28
  257. package/src/utils/theme/remove.test.ts +0 -27
  258. package/src/utils/theme/theme-switcher.vue +0 -78
  259. package/src/utils/theme/theme.service.test.ts +0 -269
  260. package/src/utils/theme/theme.service.ts +0 -173
  261. package/src/utils/theme/themes.ts +0 -282
  262. /package/{src/styles → dist/css}/transitions/fade.css +0 -0
@@ -1,103 +0,0 @@
1
- /* Tailwind Elements: button.css */
2
-
3
- @layer components {
4
- /* === States === */
5
-
6
- button:disabled {
7
- @apply !cursor-not-allowed !opacity-50 hover:brightness-100 active:scale-100;
8
- }
9
-
10
- .button-base-styles {
11
- /* Size (match base) */
12
- @apply px-5 py-[9px] text-base;
13
- /* Core */
14
- @apply whitespace-nowrap text-center;
15
- /* Flex Columns */
16
- @apply inline-flex items-center justify-center space-x-2;
17
- /* States */
18
- @apply hover:brightness-[1.15];
19
- /* Transitions */
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;
28
- }
29
-
30
- /* Button: Sizes */
31
- /* Note: Default values are built into `.btn` */
32
- .btn-sm {
33
- @apply px-3 py-1.5 text-sm;
34
- }
35
- .btn-lg {
36
- @apply px-7 py-3 text-lg;
37
- }
38
- .btn-xl {
39
- @apply px-9 py-4 text-xl;
40
- }
41
-
42
- /* === Icon Button === */
43
- /* A circular button meant for housing icons. */
44
-
45
- .btn-icon {
46
- /* Extend Base Button Clases */
47
- @apply btn;
48
- /* Size (match base) */
49
- @apply aspect-square w-[43px] text-base;
50
- /* Rounded */
51
- @apply rounded-full;
52
- }
53
-
54
- /* Icon Button: Size */
55
- .btn-icon-sm {
56
- @apply aspect-square w-[33px] text-sm;
57
- }
58
- .btn-icon-base {
59
- @apply aspect-square w-[43px] text-base;
60
- }
61
- .btn-icon-lg {
62
- @apply aspect-square w-[53px] text-lg;
63
- }
64
- .btn-icon-xl {
65
- @apply aspect-square w-[63px] text-xl;
66
- }
67
-
68
- /* File Input Button */
69
- input[type='file']:not(.file-dropzone-input)::file-selector-button {
70
- @apply variant-filled btn btn-sm mr-2 border-0;
71
- }
72
-
73
- /* === Button Groups === */
74
-
75
- .btn-group {
76
- @apply inline-flex flex-row space-x-0 overflow-hidden rounded-token;
77
- /* Safari: hover overflow fix for border radius */
78
- isolation: isolate;
79
- }
80
- .btn-group-vertical {
81
- @apply btn-group flex-col space-y-0 rounded-container-token;
82
- /* Safari: hover overflow fix for border radius */
83
- isolation: isolate;
84
- }
85
-
86
- /* Button / Anchors */
87
- .btn-group button,
88
- .btn-group a,
89
- .btn-group-vertical button,
90
- .btn-group-vertical a {
91
- @apply button-base-styles hover:bg-surface-50/[3%] active:bg-surface-900/[3%];
92
- /* Reset Anchor Styles */
93
- @apply !text-inherit !no-underline;
94
- }
95
-
96
- /* Set Neutral Divider */
97
- .btn-group * + * {
98
- @apply border-l border-t-0 border-surface-500/20;
99
- }
100
- .btn-group-vertical * + * {
101
- @apply border-l-0 border-t border-surface-500/20;
102
- }
103
- }
@@ -1,32 +0,0 @@
1
- /* Tailwind Elements: cards.css */
2
-
3
- @layer components {
4
- .card {
5
- /* background */
6
- @apply bg-surface-100-800-token;
7
- /* Ring */
8
- @apply ring-outline-token;
9
- /* Theme: Rounded */
10
- @apply rounded-container-token;
11
- }
12
-
13
- /* === Regions === */
14
-
15
- .card-header {
16
- @apply p-4 pb-0;
17
- }
18
-
19
- .card-footer {
20
- @apply p-4 pt-0;
21
- }
22
-
23
- /* === States === */
24
-
25
- a.card {
26
- @apply transition-all hover:brightness-105;
27
- }
28
-
29
- .card-hover {
30
- @apply transition-all hover:scale-[101%] hover:shadow-xl;
31
- }
32
- }
@@ -1,22 +0,0 @@
1
- /* Tailwind Elements: chips.css */
2
-
3
- @layer components {
4
- .chip {
5
- @apply cursor-pointer whitespace-nowrap px-3 py-1.5;
6
- /* Text */
7
- @apply text-center text-xs;
8
- /* Rounded */
9
- @apply rounded;
10
- /* Flex Columns */
11
- @apply inline-flex items-center justify-center space-x-2;
12
- /* States */
13
- @apply hover:brightness-[1.15];
14
- /* Transitions */
15
- @apply transition-all;
16
- }
17
-
18
- .chip-disabled,
19
- .chip:disabled {
20
- @apply !cursor-not-allowed !opacity-50 active:scale-100;
21
- }
22
- }
@@ -1,269 +0,0 @@
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 h-2 w-full 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 text-xl font-heading-token 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 hover:brightness-105 focus:brightness-105;
74
- /* Ring */
75
- @apply !ring-0;
76
- /* Border */
77
- @apply border-token border-surface-400-500-token focus-within: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 space-y-1 p-2 pr-8;
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 cursor-pointer px-4 py-2 bg-surface-200-700-token rounded-token;
113
- }
114
- .select option:checked {
115
- /* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
116
- /* prettier-ignore */
117
- background: rgb(var(--color-primary-500)) linear-gradient(0deg, rgb(var(--color-primary-500)) 0%, rgb(var(--color-primary-500)) 100%);
118
- @apply text-on-primary-token;
119
- }
120
-
121
- /* Checkbox & Radio */
122
- .checkbox,
123
- .radio {
124
- @apply h-5 w-5 cursor-pointer rounded !ring-0;
125
- /* Background */
126
- @apply bg-surface-200-700-token hover:brightness-105 focus:brightness-105;
127
- /* Border */
128
- @apply border-token border-surface-400-500-token focus:border-primary-500;
129
- }
130
- .checkbox:checked,
131
- .radio:checked {
132
- @apply bg-primary-500 hover:bg-primary-500 focus:bg-primary-500 focus:ring-0;
133
- }
134
- .radio {
135
- @apply rounded-token;
136
- }
137
-
138
- /* === Specialized === */
139
-
140
- /* File Inputs */
141
- .input[type='file'] {
142
- @apply p-1;
143
- }
144
-
145
- /* Color Picker */
146
- /* https://stackoverflow.com/questions/11167281/webkit-css-to-control-the-box-around-the-color-in-an-inputtype-color */
147
- .input[type='color'] {
148
- @apply h-10 w-10 cursor-pointer overflow-hidden border-none rounded-token;
149
- -webkit-appearance: none; /* WebKit Only */
150
- }
151
- .input[type='color']::-webkit-color-swatch-wrapper {
152
- @apply p-0;
153
- }
154
- .input[type='color']::-webkit-color-swatch {
155
- @apply border-none hover:brightness-110;
156
- }
157
- .input[type='color']::-moz-color-swatch {
158
- @apply border-none;
159
- }
160
-
161
- /* === States === */
162
-
163
- .input:disabled,
164
- .textarea:disabled,
165
- .select:disabled {
166
- @apply !cursor-not-allowed !opacity-50 hover:!brightness-100;
167
- }
168
-
169
- .input[readonly],
170
- .textarea[readonly],
171
- .select[readonly] {
172
- @apply !cursor-not-allowed !border-0 hover:!brightness-100;
173
- }
174
-
175
- /* === Input Groups === */
176
-
177
- .input-group {
178
- @apply grid overflow-hidden;
179
- }
180
- .input-group input,
181
- .input-group select {
182
- @apply border-0 bg-transparent ring-0;
183
- }
184
- .input-group select option {
185
- @apply bg-surface-200-700-token;
186
- }
187
- .input-group div,
188
- .input-group a,
189
- .input-group button {
190
- @apply flex items-center justify-between px-4;
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 !border-success-500 !bg-success-200 !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 !border-warning-500 !bg-warning-200 !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 !border-error-500 !bg-error-200 !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-bl-none !rounded-br-none !rounded-tl !rounded-tr;
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
- }
@@ -1,48 +0,0 @@
1
- /* Tailwind Elements: button.css */
2
-
3
- @layer components {
4
- /* === Lists (Parents) === */
5
-
6
- .list,
7
- .list-dl,
8
- .list-nav ul {
9
- /* List Style */
10
- @apply list-none;
11
- /* Spacing */
12
- @apply space-y-1;
13
- }
14
-
15
- /* === List Items (Children) === */
16
-
17
- .list li {
18
- /* @apply bg-red-500; */
19
- @apply flex items-center space-x-4 whitespace-nowrap;
20
- /* Padding */
21
- @apply p-2;
22
- /* Theme: Rounded */
23
- @apply rounded-token;
24
- }
25
-
26
- .list-dl div {
27
- /* @apply bg-blue-500; */
28
- @apply flex items-center space-x-4 whitespace-nowrap;
29
- /* Padding */
30
- @apply p-2;
31
- /* Theme: Rounded */
32
- @apply rounded-token;
33
- }
34
-
35
- .list-nav a,
36
- .list-nav button,
37
- .list-option {
38
- @apply flex items-center space-x-4 whitespace-nowrap;
39
- /* Padding */
40
- @apply px-4 py-2;
41
- /* Hover */
42
- @apply bg-primary-hover-token;
43
- /* Cursor */
44
- @apply cursor-pointer;
45
- /* Theme: Rounded */
46
- @apply rounded-token;
47
- }
48
- }
@@ -1,29 +0,0 @@
1
- /* Tailwind Elements: logo-clouds.css */
2
-
3
- @layer components {
4
- .logo-cloud {
5
- @apply grid overflow-hidden;
6
- /* Theme: Rounded */
7
- @apply rounded-container-token;
8
- }
9
-
10
- /* === Logo Item (Child) === */
11
-
12
- .logo-item {
13
- @apply: flex-auto text-center space-x-4 shadow;
14
- /* Center Contents */
15
- @apply flex items-center justify-center space-x-4;
16
- /* Background */
17
- @apply bg-surface-100-800-token;
18
- /* Text */
19
- @apply text-base font-bold text-black dark:text-white;
20
- /* Padding */
21
- @apply py-4 md:py-8;
22
- }
23
-
24
- /* === States === */
25
-
26
- a.logo-item {
27
- @apply hover:brightness-110;
28
- }
29
- }
@@ -1,15 +0,0 @@
1
- /* Tailwind Elements: modals.css */
2
-
3
- /* === Modal (helpers) === */
4
-
5
- .w-modal-slim {
6
- @apply w-full max-w-[400px];
7
- }
8
-
9
- .w-modal {
10
- @apply w-full max-w-[640px];
11
- }
12
-
13
- .w-modal-wide {
14
- @apply w-full max-w-[80%];
15
- }
@@ -1,17 +0,0 @@
1
- /* Tailwind Elements: placeholders.css */
2
-
3
- @layer components {
4
- /* === Base === */
5
-
6
- .placeholder {
7
- @apply h-5 bg-surface-300-600-token;
8
- /* Theme: Rounded */
9
- @apply rounded-token;
10
- }
11
-
12
- /* === Shapes === */
13
-
14
- .placeholder-circle {
15
- @apply aspect-square rounded-full bg-surface-300-600-token;
16
- }
17
- }
@@ -1,16 +0,0 @@
1
- /* Tailwind Elements: popups.css */
2
-
3
- /* === Popup === */
4
-
5
- [data-popup] {
6
- /* https://floating-ui.com/docs/computeposition#usage */
7
- @apply absolute left-0 top-0; /* max-w-max */
8
- /* Set hidden on page load */
9
- @apply hidden;
10
- /* Transitions */
11
- @apply transition-opacity duration-200;
12
- }
13
-
14
- [data-popup] .arrow {
15
- @apply absolute h-2 w-2 rotate-45;
16
- }
@@ -1,102 +0,0 @@
1
- /* Elements: tables.css */
2
-
3
- @layer components {
4
- .table-container {
5
- @apply w-full overflow-x-auto rounded-container-token;
6
- }
7
-
8
- .table {
9
- @apply w-full table-auto overflow-hidden;
10
- /* background */
11
- @apply bg-surface-100-800-token;
12
- /* Theme: Rounded */
13
- @apply rounded-container-token;
14
- }
15
-
16
- /* === Hover Styles ==== */
17
-
18
- .table-hover tbody tr {
19
- @apply hover:bg-surface-500/20 even:hover:bg-surface-500/20;
20
- }
21
-
22
- .table-interactive tbody tr {
23
- @apply cursor-pointer hover:bg-primary-hover-token even:hover:bg-primary-hover-token;
24
- }
25
-
26
- /* === Sort Styles ==== */
27
-
28
- [data-sort] {
29
- @apply cursor-pointer hover:bg-primary-hover-token;
30
- /* Sort Icon - invisible by default */
31
- @apply after:!ml-2 after:opacity-0 after:!content-['↓'];
32
- }
33
-
34
- .table-sort-asc {
35
- @apply after:opacity-50 after:!content-['↓'];
36
- }
37
-
38
- .table-sort-dsc {
39
- @apply after:opacity-50 after:!content-['↑'];
40
- }
41
-
42
- /* === Table Head === */
43
-
44
- .table thead {
45
- @apply border-b border-surface-500/20 bg-surface-200-700-token;
46
- }
47
-
48
- .table thead tr {
49
- @apply text-left capitalize;
50
- }
51
-
52
- .table thead th {
53
- @apply p-4 font-bold;
54
- }
55
-
56
- /* === Table Body === */
57
-
58
- .table tbody tr {
59
- @apply border-b border-surface-500/20 even:bg-surface-500/5;
60
- }
61
-
62
- .table tbody td {
63
- /* NOTE: removed this to allow wrapping */
64
- @apply whitespace-nowrap px-3 py-4 align-top text-sm lg:whitespace-normal;
65
- }
66
-
67
- .table-compact tbody td {
68
- @apply !py-3;
69
- }
70
-
71
- .table-comfortable tbody td {
72
- @apply !py-5;
73
- }
74
-
75
- /* === Table Foot === */
76
-
77
- .table tfoot {
78
- @apply bg-surface-100-800-token;
79
- }
80
-
81
- .table tfoot tr {
82
- @apply text-left capitalize;
83
- }
84
-
85
- .table tfoot th,
86
- .table tfoot td {
87
- @apply p-4;
88
- }
89
-
90
- /* === Rows Specific === */
91
-
92
- .table-row-checked {
93
- @apply !bg-secondary-500/20;
94
- }
95
-
96
- /* === Cells Specific === */
97
-
98
- /* Source: https://stackoverflow.com/questions/11267154/fit-cell-width-to-content */
99
- .table-cell-fit {
100
- @apply w-[1%] whitespace-nowrap;
101
- }
102
- }
@@ -1,19 +0,0 @@
1
- /* Stylesheet: elements.css */
2
- /* Import AFTER your theme, but BEFORE your global stylesheet. */
3
- /* Recommended as the LAST stylesheet in the set */
4
-
5
- @import 'elements/alerts.css';
6
- @import 'elements/badges.css';
7
- @import 'elements/breadcrumbs.css';
8
- @import 'elements/buttons.css';
9
- @import 'elements/cards.css';
10
- @import 'elements/chips.css';
11
- @import 'elements/forms.css';
12
- @import 'elements/lists.css';
13
- @import 'elements/logo-clouds.css';
14
- @import 'elements/placeholders.css';
15
- @import 'elements/tables.css';
16
-
17
- /* Utilities */
18
- @import 'elements/modals.css';
19
- @import 'elements/popups.css';