odj-svelte-ui 0.1.1 → 0.2.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 (144) hide show
  1. package/README.md +77 -35
  2. package/dist/_legacy/accordion/Accordion.svelte +2 -2
  3. package/dist/_legacy/accordion/Accordion.svelte.d.ts +1 -1
  4. package/dist/_legacy/avatar/Avatar.svelte +2 -2
  5. package/dist/_legacy/avatar/Placeholder.svelte +1 -1
  6. package/dist/_legacy/badge/Badge.svelte +1 -1
  7. package/dist/_legacy/banner/Banner.svelte +3 -3
  8. package/dist/_legacy/button-group/ButtonGroup.svelte +2 -2
  9. package/dist/_legacy/button-group/ButtonGroup.svelte.d.ts +1 -1
  10. package/dist/_legacy/buttons/Button.svelte +1 -1
  11. package/dist/_legacy/buttons/GradientButton.svelte +20 -20
  12. package/dist/_legacy/cards/Card.svelte +1 -1
  13. package/dist/_legacy/carousel/ControlButton.svelte +2 -2
  14. package/dist/_legacy/carousel/Slide.svelte +1 -1
  15. package/dist/_legacy/darkmode/DarkMode.svelte +2 -2
  16. package/dist/_legacy/darkmode/DarkMode.svelte.d.ts +1 -1
  17. package/dist/_legacy/drawer/Drawer.svelte +0 -2
  18. package/dist/_legacy/drawer/Drawer.svelte.d.ts +0 -2
  19. package/dist/_legacy/footer/Footer.svelte +1 -1
  20. package/dist/_legacy/forms/Fileupload.svelte +2 -2
  21. package/dist/_legacy/forms/Fileupload.svelte.d.ts +1 -1
  22. package/dist/_legacy/forms/FloatingLabelInput.svelte +4 -4
  23. package/dist/_legacy/forms/MultiSelect.svelte +1 -1
  24. package/dist/_legacy/forms/Radio.svelte +1 -1
  25. package/dist/_legacy/forms/Select.svelte +3 -3
  26. package/dist/_legacy/forms/Select.svelte.d.ts +1 -1
  27. package/dist/_legacy/forms/Textarea.svelte +2 -2
  28. package/dist/_legacy/forms/Textarea.svelte.d.ts +1 -1
  29. package/dist/_legacy/indicators/Indicator.svelte +1 -1
  30. package/dist/_legacy/list-group/ListgroupItem.svelte +2 -2
  31. package/dist/_legacy/list-group/ListgroupItem.svelte.d.ts +1 -1
  32. package/dist/_legacy/mega-menu/MegaMenu.svelte +1 -1
  33. package/dist/_legacy/modal/Modal.svelte +2 -2
  34. package/dist/_legacy/modal/Modal.svelte.d.ts +1 -1
  35. package/dist/_legacy/navbar/NavLi.svelte +1 -1
  36. package/dist/_legacy/pagination/PaginationItem.svelte +1 -1
  37. package/dist/_legacy/popover/Popover.svelte +1 -1
  38. package/dist/_legacy/rating/AdvancedRating.svelte +4 -4
  39. package/dist/_legacy/rating/AdvancedRating.svelte.d.ts +2 -2
  40. package/dist/_legacy/rating/Review.svelte +1 -1
  41. package/dist/_legacy/rating/ScoreRating.svelte +6 -6
  42. package/dist/_legacy/rating/ScoreRating.svelte.d.ts +2 -2
  43. package/dist/_legacy/sidebar/SidebarCta.svelte +2 -2
  44. package/dist/_legacy/sidebar/SidebarCta.svelte.d.ts +1 -1
  45. package/dist/_legacy/sidebar/SidebarWrapper.svelte +2 -2
  46. package/dist/_legacy/sidebar/SidebarWrapper.svelte.d.ts +1 -1
  47. package/dist/_legacy/skeleton/CardPlaceholder.svelte +3 -3
  48. package/dist/_legacy/skeleton/CardPlaceholder.svelte.d.ts +1 -1
  49. package/dist/_legacy/skeleton/ImagePlaceholder.svelte +1 -1
  50. package/dist/_legacy/skeleton/ListPlaceholder.svelte +2 -2
  51. package/dist/_legacy/skeleton/ListPlaceholder.svelte.d.ts +1 -1
  52. package/dist/_legacy/skeleton/WidgetPlaceholder.svelte +2 -2
  53. package/dist/_legacy/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
  54. package/dist/_legacy/speed-dial/SpeedDial.svelte +2 -2
  55. package/dist/_legacy/speed-dial/SpeedDialButton.svelte +2 -2
  56. package/dist/_legacy/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
  57. package/dist/_legacy/steps/StepIndicator.svelte +4 -4
  58. package/dist/_legacy/table/TableBodyRow.svelte +6 -6
  59. package/dist/_legacy/tabs/Tabs.svelte +2 -2
  60. package/dist/_legacy/timeline/ActivityItem.svelte +2 -2
  61. package/dist/_legacy/timeline/ActivityItem.svelte.d.ts +1 -1
  62. package/dist/_legacy/toast/Toast.svelte +3 -3
  63. package/dist/_legacy/toast/Toast.svelte.d.ts +1 -1
  64. package/dist/_legacy/toolbar/ToolbarButton.svelte +3 -3
  65. package/dist/_legacy/toolbar/ToolbarGroup.svelte +2 -2
  66. package/dist/_legacy/toolbar/ToolbarGroup.svelte.d.ts +1 -1
  67. package/dist/_legacy/typography/Mark.svelte +2 -2
  68. package/dist/_legacy/typography/Mark.svelte.d.ts +1 -1
  69. package/dist/_legacy/typography/Span.svelte +2 -2
  70. package/dist/_legacy/typography/Span.svelte.d.ts +1 -1
  71. package/dist/_legacy/utils/backdrop.js +1 -1
  72. package/dist/accordion/theme.js +1 -1
  73. package/dist/alert/Alert.svelte +2 -2
  74. package/dist/alert/Alert.svelte.d.ts +1 -1
  75. package/dist/avatar/Avatar.svelte +2 -2
  76. package/dist/avatar/theme.js +1 -1
  77. package/dist/badge/Badge.svelte +2 -2
  78. package/dist/badge/Badge.svelte.d.ts +1 -1
  79. package/dist/badge/theme.js +1 -1
  80. package/dist/banner/theme.js +3 -3
  81. package/dist/bottom-navigation/theme.d.ts +15 -15
  82. package/dist/buttongroup/theme.d.ts +2 -2
  83. package/dist/buttongroup/theme.js +1 -1
  84. package/dist/buttons/theme.js +46 -46
  85. package/dist/cards/theme.js +2 -2
  86. package/dist/darkmode/theme.d.ts +1 -1
  87. package/dist/darkmode/theme.js +1 -1
  88. package/dist/device-mockups/theme.d.ts +230 -230
  89. package/dist/drawer/theme.d.ts +20 -20
  90. package/dist/drawer/theme.js +1 -1
  91. package/dist/dropdown/theme.d.ts +30 -30
  92. package/dist/dropdown/theme.js +1 -1
  93. package/dist/footer/theme.d.ts +55 -55
  94. package/dist/footer/theme.js +3 -3
  95. package/dist/forms/checkbox/theme.js +2 -2
  96. package/dist/forms/dropzone/Dropzone.svelte.d.ts +9 -7
  97. package/dist/forms/fileupload/theme.js +1 -1
  98. package/dist/forms/floating-label-input/theme.js +22 -22
  99. package/dist/forms/input/theme.js +23 -23
  100. package/dist/forms/input-addon/InputAddon.svelte +1 -1
  101. package/dist/forms/label/Label.svelte +2 -2
  102. package/dist/forms/label/theme.d.ts +28 -7
  103. package/dist/forms/label/theme.js +4 -1
  104. package/dist/forms/label/type.d.ts +2 -1
  105. package/dist/forms/radio/Radio.svelte +4 -5
  106. package/dist/forms/radio/theme.d.ts +0 -56
  107. package/dist/forms/radio/theme.js +23 -27
  108. package/dist/forms/radio/type.d.ts +1 -0
  109. package/dist/forms/select/theme.d.ts +2 -2
  110. package/dist/forms/select/theme.js +4 -4
  111. package/dist/forms/textarea/theme.js +1 -1
  112. package/dist/forms/toggle/theme.js +2 -2
  113. package/dist/gallery/theme.d.ts +15 -15
  114. package/dist/indicator/theme.js +2 -2
  115. package/dist/list-group/theme.js +1 -1
  116. package/dist/mega-menu/theme.js +1 -1
  117. package/dist/modal/theme.js +2 -2
  118. package/dist/nav/theme.d.ts +17 -17
  119. package/dist/nav/theme.js +8 -8
  120. package/dist/pagination/theme.js +1 -1
  121. package/dist/rating/Review.svelte +1 -1
  122. package/dist/rating/ScoreRating.svelte +2 -2
  123. package/dist/rating/theme.d.ts +125 -125
  124. package/dist/rating/theme.js +5 -5
  125. package/dist/sidebar/theme.d.ts +72 -72
  126. package/dist/sidebar/theme.js +6 -6
  127. package/dist/skeleton/theme.d.ts +55 -55
  128. package/dist/skeleton/theme.js +11 -11
  129. package/dist/table/theme.js +21 -21
  130. package/dist/tabs/theme.js +1 -1
  131. package/dist/theme/Theme.svelte.d.ts +3 -2
  132. package/dist/timeline/theme.d.ts +95 -95
  133. package/dist/timeline/theme.js +1 -1
  134. package/dist/toast/theme.js +1 -1
  135. package/dist/toolbar/ToolbarButton.svelte +3 -3
  136. package/dist/toolbar/theme.d.ts +2 -2
  137. package/dist/toolbar/theme.js +3 -3
  138. package/dist/typography/img/theme.js +5 -5
  139. package/dist/typography/mark/theme.d.ts +1 -1
  140. package/dist/typography/mark/theme.js +1 -1
  141. package/dist/typography/span/theme.js +12 -12
  142. package/dist/utils/index.d.ts +2 -2
  143. package/dist/utils/index.js +3 -3
  144. package/package.json +645 -645
@@ -15,98 +15,98 @@ export const input = tv({
15
15
  },
16
16
  color: {
17
17
  default: {
18
- input: "border border-light-surface-300 dark:border-dark-surface-600 focus:border-primary-500 focus:ring-primary-500 dark:focus:border-primary-500 dark:focus:ring-primary-500 bg-light-surface-50 text-light-surface-900 dark:bg-dark-surface-700 dark:text-white dark:placeholder-dark-surface-400 bg-light-surface-50 text-light-surface-900 dark:bg-dark-surface-700 dark:text-white dark:placeholder-dark-surface-400 outline-none focus:ring-1",
18
+ input: "border border-light-surface-300 dark:border-dark-surface-600 focus:border-primary-500 focus:ring-primary-500 dark:focus:border-primary-500 dark:focus:ring-primary-500 bg-light-surface-50 text-light-surface-900 dark:bg-dark-surface-700 dark:text-white dark:placeholder-dark-surface-400 bg-light-surface-50 text-light-surface-900 dark:bg-dark-surface-700 dark:text-white dark:placeholder-dark-surface-400 outline-hidden focus:ring-1",
19
19
  searchInputXButton: "text-primary-600 dark:text-primary-500"
20
20
  },
21
21
  tinted: {
22
- input: "border border-neutral-300 dark:border-neutral-500 bg-light-surface-50 text-neutral-900 dark:bg-dark-surface-600 dark:text-white dark:placeholder-dark-surface-400 outline-none focus:ring-1",
22
+ input: "border border-neutral-300 dark:border-neutral-500 bg-light-surface-50 text-neutral-900 dark:bg-dark-surface-600 dark:text-white dark:placeholder-dark-surface-400 outline-hidden focus:ring-1",
23
23
  searchInputXButton: "text-light-surface-600 dark:text-dark-surface-500"
24
24
  },
25
25
  primary: {
26
- input: "border border-primary-200 dark:border-primary-400 focus:ring-primary-500 focus:border-primary-600 dark:focus:ring-primary-500 dark:focus:border-primary-500 bg-primary-50 text-primary-900 placeholder-primary-700 dark:text-primary-400 dark:placeholder-primary-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
26
+ input: "border border-primary-200 dark:border-primary-400 focus:ring-primary-500 focus:border-primary-600 dark:focus:ring-primary-500 dark:focus:border-primary-500 bg-primary-50 text-primary-900 placeholder-primary-700 dark:text-primary-400 dark:placeholder-primary-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
27
27
  searchInputXButton: "text-primary-600 dark:text-primary-500"
28
28
  },
29
29
  secondary: {
30
- input: "border border-secondary-200 dark:border-secondary-400 focus:ring-secondary-500 focus:border-secondary-600 dark:focus:ring-secondary-500 dark:focus:border-secondary-500 bg-secondary-50 text-secondary-900 placeholder-secondary-700 dark:text-secondary-400 dark:placeholder-secondary-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
30
+ input: "border border-secondary-200 dark:border-secondary-400 focus:ring-secondary-500 focus:border-secondary-600 dark:focus:ring-secondary-500 dark:focus:border-secondary-500 bg-secondary-50 text-secondary-900 placeholder-secondary-700 dark:text-secondary-400 dark:placeholder-secondary-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
31
31
  searchInputXButton: "text-secondary-600 dark:text-secondary-500"
32
32
  },
33
33
  green: {
34
- input: "border border-green-200 dark:border-green-400 focus:ring-green-500 focus:border-green-600 dark:focus:ring-green-500 dark:focus:border-green-500 bg-green-50 text-green-900 placeholder-green-700 dark:text-green-400 dark:placeholder-green-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
34
+ input: "border border-green-200 dark:border-green-400 focus:ring-green-500 focus:border-green-600 dark:focus:ring-green-500 dark:focus:border-green-500 bg-green-50 text-green-900 placeholder-green-700 dark:text-green-400 dark:placeholder-green-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
35
35
  searchInputXButton: "text-green-600 dark:text-green-500"
36
36
  },
37
37
  emerald: {
38
- input: "border border-emerald-200 dark:border-emerald-400 focus:ring-emerald-500 focus:border-emerald-600 dark:focus:ring-emerald-500 dark:focus:border-emerald-500 bg-emerald-50 text-emerald-900 placeholder-emerald-700 dark:text-emerald-400 dark:placeholder-emerald-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
38
+ input: "border border-emerald-200 dark:border-emerald-400 focus:ring-emerald-500 focus:border-emerald-600 dark:focus:ring-emerald-500 dark:focus:border-emerald-500 bg-emerald-50 text-emerald-900 placeholder-emerald-700 dark:text-emerald-400 dark:placeholder-emerald-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
39
39
  searchInputXButton: "text-emerald-600 dark:text-emerald-500"
40
40
  },
41
41
  red: {
42
- input: "border border-red-200 dark:border-red-400 focus:ring-red-500 focus:border-red-600 dark:focus:ring-red-500 dark:focus:border-red-500 bg-red-50 text-red-900 placeholder-red-700 dark:text-red-400 dark:placeholder-red-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
42
+ input: "border border-red-200 dark:border-red-400 focus:ring-red-500 focus:border-red-600 dark:focus:ring-red-500 dark:focus:border-red-500 bg-red-50 text-red-900 placeholder-red-700 dark:text-red-400 dark:placeholder-red-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
43
43
  searchInputXButton: "text-red-600 dark:text-red-500"
44
44
  },
45
45
  blue: {
46
- input: "border border-blue-200 dark:border-blue-400 focus:ring-blue-500 focus:border-blue-600 dark:focus:ring-blue-500 dark:focus:border-blue-500 bg-blue-50 text-blue-900 placeholder-blue-700 dark:text-blue-400 dark:placeholder-blue-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
46
+ input: "border border-blue-200 dark:border-blue-400 focus:ring-blue-500 focus:border-blue-600 dark:focus:ring-blue-500 dark:focus:border-blue-500 bg-blue-50 text-blue-900 placeholder-blue-700 dark:text-blue-400 dark:placeholder-blue-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
47
47
  searchInputXButton: "text-blue-600 dark:text-blue-500"
48
48
  },
49
49
  yellow: {
50
- input: "border border-yellow-200 dark:border-yellow-400 focus:ring-yellow-500 focus:border-yellow-600 dark:focus:ring-yellow-500 dark:focus:border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 dark:text-yellow-400 dark:placeholder-yellow-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
50
+ input: "border border-yellow-200 dark:border-yellow-400 focus:ring-yellow-500 focus:border-yellow-600 dark:focus:ring-yellow-500 dark:focus:border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 dark:text-yellow-400 dark:placeholder-yellow-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
51
51
  searchInputXButton: "text-yellow-600 dark:text-yellow-500"
52
52
  },
53
53
  orange: {
54
- input: "border border-orange-200 dark:border-orange-400 focus:ring-orange-500 focus:border-orange-600 dark:focus:ring-orange-500 dark:focus:border-orange-500 bg-orange-50 text-orange-900 placeholder-orange-700 dark:text-orange-400 dark:placeholder-orange-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
54
+ input: "border border-orange-200 dark:border-orange-400 focus:ring-orange-500 focus:border-orange-600 dark:focus:ring-orange-500 dark:focus:border-orange-500 bg-orange-50 text-orange-900 placeholder-orange-700 dark:text-orange-400 dark:placeholder-orange-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
55
55
  searchInputXButton: "text-orange-600 dark:text-orange-500"
56
56
  },
57
57
  gray: {
58
- input: "border border-gray-200 dark:border-gray-400 focus:ring-gray-500 focus:border-gray-600 dark:focus:ring-gray-500 dark:focus:border-gray-500 bg-light-surface-50 text-gray-900 placeholder-gray-700 dark:text-gray-400 dark:placeholder-dark-surface-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
58
+ input: "border border-gray-200 dark:border-gray-400 focus:ring-gray-500 focus:border-gray-600 dark:focus:ring-gray-500 dark:focus:border-gray-500 bg-light-surface-50 text-gray-900 placeholder-gray-700 dark:text-gray-400 dark:placeholder-dark-surface-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
59
59
  searchInputXButton: "text-gray-600 dark:text-gray-500"
60
60
  },
61
61
  teal: {
62
- input: "border border-teal-200 dark:border-teal-400 focus:ring-teal-500 focus:border-teal-600 dark:focus:ring-teal-500 dark:focus:border-teal-500 bg-teal-50 text-teal-900 placeholder-teal-700 dark:text-teal-400 dark:placeholder-teal-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
62
+ input: "border border-teal-200 dark:border-teal-400 focus:ring-teal-500 focus:border-teal-600 dark:focus:ring-teal-500 dark:focus:border-teal-500 bg-teal-50 text-teal-900 placeholder-teal-700 dark:text-teal-400 dark:placeholder-teal-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
63
63
  searchInputXButton: "text-teal-600 dark:text-teal-500"
64
64
  },
65
65
  cyan: {
66
- input: "border border-cyan-200 dark:border-cyan-400 focus:ring-cyan-500 focus:border-cyan-600 dark:focus:ring-cyan-500 dark:focus:border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 dark:text-cyan-400 dark:placeholder-cyan-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
66
+ input: "border border-cyan-200 dark:border-cyan-400 focus:ring-cyan-500 focus:border-cyan-600 dark:focus:ring-cyan-500 dark:focus:border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 dark:text-cyan-400 dark:placeholder-cyan-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
67
67
  searchInputXButton: "text-cyan-600 dark:text-cyan-500"
68
68
  },
69
69
  sky: {
70
- input: "border border-sky-200 dark:border-sky-400 focus:ring-sky-500 focus:border-sky-600 dark:focus:ring-sky-500 dark:focus:border-sky-500 bg-sky-50 text-sky-900 placeholder-sky-700 dark:text-sky-400 dark:placeholder-sky-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
70
+ input: "border border-sky-200 dark:border-sky-400 focus:ring-sky-500 focus:border-sky-600 dark:focus:ring-sky-500 dark:focus:border-sky-500 bg-sky-50 text-sky-900 placeholder-sky-700 dark:text-sky-400 dark:placeholder-sky-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
71
71
  searchInputXButton: "text-sky-600 dark:text-sky-500"
72
72
  },
73
73
  indigo: {
74
- input: "border border-indigo-200 dark:border-indigo-400 focus:ring-indigo-500 focus:border-indigo-600 dark:focus:ring-indigo-500 dark:focus:border-indigo-500 bg-indigo-50 text-indigo-900 placeholder-indigo-700 dark:text-indigo-400 dark:placeholder-indigo-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
74
+ input: "border border-indigo-200 dark:border-indigo-400 focus:ring-indigo-500 focus:border-indigo-600 dark:focus:ring-indigo-500 dark:focus:border-indigo-500 bg-indigo-50 text-indigo-900 placeholder-indigo-700 dark:text-indigo-400 dark:placeholder-indigo-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
75
75
  searchInputXButton: "text-indigo-600 dark:text-indigo-500"
76
76
  },
77
77
  lime: {
78
- input: "border border-lime-200 dark:border-lime-400 focus:ring-lime-500 focus:border-lime-600 dark:focus:ring-lime-500 dark:focus:border-lime-500 bg-lime-50 text-lime-900 placeholder-lime-700 dark:text-lime-400 dark:placeholder-lime-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
78
+ input: "border border-lime-200 dark:border-lime-400 focus:ring-lime-500 focus:border-lime-600 dark:focus:ring-lime-500 dark:focus:border-lime-500 bg-lime-50 text-lime-900 placeholder-lime-700 dark:text-lime-400 dark:placeholder-lime-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
79
79
  searchInputXButton: "text-lime-600 dark:text-lime-500"
80
80
  },
81
81
  amber: {
82
- input: "border border-amber-200 dark:border-amber-400 focus:ring-amber-500 focus:border-amber-600 dark:focus:ring-amber-500 dark:focus:border-amber-500 bg-amber-50 text-amber-900 placeholder-amber-700 dark:text-amber-400 dark:placeholder-amber-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
82
+ input: "border border-amber-200 dark:border-amber-400 focus:ring-amber-500 focus:border-amber-600 dark:focus:ring-amber-500 dark:focus:border-amber-500 bg-amber-50 text-amber-900 placeholder-amber-700 dark:text-amber-400 dark:placeholder-amber-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
83
83
  searchInputXButton: "text-amber-600 dark:text-amber-500"
84
84
  },
85
85
  violet: {
86
- input: "border border-violet-200 dark:border-violet-400 focus:ring-violet-500 focus:border-violet-600 dark:focus:ring-violet-500 dark:focus:border-violet-500 bg-violet-50 text-violet-900 placeholder-violet-700 dark:text-violet-400 dark:placeholder-violet-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
86
+ input: "border border-violet-200 dark:border-violet-400 focus:ring-violet-500 focus:border-violet-600 dark:focus:ring-violet-500 dark:focus:border-violet-500 bg-violet-50 text-violet-900 placeholder-violet-700 dark:text-violet-400 dark:placeholder-violet-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
87
87
  searchInputXButton: "text-violet-600 dark:text-violet-500"
88
88
  },
89
89
  purple: {
90
- input: "border border-purple-200 dark:border-purple-400 focus:ring-purple-500 focus:border-purple-600 dark:focus:ring-purple-500 dark:focus:border-purple-500 bg-purple-50 text-purple-900 placeholder-purple-700 dark:text-purple-400 dark:placeholder-purple-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
90
+ input: "border border-purple-200 dark:border-purple-400 focus:ring-purple-500 focus:border-purple-600 dark:focus:ring-purple-500 dark:focus:border-purple-500 bg-purple-50 text-purple-900 placeholder-purple-700 dark:text-purple-400 dark:placeholder-purple-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
91
91
  searchInputXButton: "text-purple-600 dark:text-purple-500"
92
92
  },
93
93
  fuchsia: {
94
- input: "border border-fuchsia-200 dark:border-fuchsia-400 focus:ring-fuchsia-500 focus:border-fuchsia-600 dark:focus:ring-fuchsia-500 dark:focus:border-fuchsia-500 bg-fuchsia-50 text-fuchsia-900 placeholder-fuchsia-700 dark:text-fuchsia-400 dark:placeholder-fuchsia-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
94
+ input: "border border-fuchsia-200 dark:border-fuchsia-400 focus:ring-fuchsia-500 focus:border-fuchsia-600 dark:focus:ring-fuchsia-500 dark:focus:border-fuchsia-500 bg-fuchsia-50 text-fuchsia-900 placeholder-fuchsia-700 dark:text-fuchsia-400 dark:placeholder-fuchsia-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
95
95
  searchInputXButton: "text-fuchsia-600 dark:text-fuchsia-500"
96
96
  },
97
97
  pink: {
98
- input: "border border-pink-200 dark:border-pink-400 focus:ring-pink-500 focus:border-pink-600 dark:focus:ring-pink-500 dark:focus:border-pink-500 bg-pink-50 text-pink-900 placeholder-pink-700 dark:text-pink-400 dark:placeholder-pink-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
98
+ input: "border border-pink-200 dark:border-pink-400 focus:ring-pink-500 focus:border-pink-600 dark:focus:ring-pink-500 dark:focus:border-pink-500 bg-pink-50 text-pink-900 placeholder-pink-700 dark:text-pink-400 dark:placeholder-pink-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
99
99
  searchInputXButton: "text-pink-600 dark:text-pink-500"
100
100
  },
101
101
  rose: {
102
- input: "border border-rose-200 dark:border-rose-400 focus:ring-rose-500 focus:border-rose-600 dark:focus:ring-rose-500 dark:focus:border-rose-500 bg-rose-50 text-rose-900 placeholder-rose-700 dark:text-rose-400 dark:placeholder-rose-500 dark:bg-dark-surface-700 outline-none focus:ring-1",
102
+ input: "border border-rose-200 dark:border-rose-400 focus:ring-rose-500 focus:border-rose-600 dark:focus:ring-rose-500 dark:focus:border-rose-500 bg-rose-50 text-rose-900 placeholder-rose-700 dark:text-rose-400 dark:placeholder-rose-500 dark:bg-dark-surface-700 outline-hidden focus:ring-1",
103
103
  searchInputXButton: "text-rose-600 dark:text-rose-500"
104
104
  }
105
105
  },
106
106
  group: {
107
107
  false: { input: "rounded-lg" },
108
108
  true: {
109
- input: "first:rounded-s-lg last:rounded-e-lg [&:not(:first-child)]:-ms-px"
109
+ input: "first:rounded-s-lg last:rounded-e-lg not-first:-ms-px"
110
110
  }
111
111
  }
112
112
  },
@@ -30,7 +30,7 @@
30
30
  // size: explicit, inherited, default
31
31
  let _size = size || clampSize(group?.size) || "md";
32
32
 
33
- let divClass: string = twMerge(textSizes[_size], prefixPadding[_size], "text-gray-500 bg-gray-200", background ? darkBgClasses.tinted : darkBgClasses.base, background ? divider.tinted : divider.base, background ? borderClasses["tinted"] : borderClasses["base"], "inline-flex items-center border", group && "[&:not(:first-child)]:-ms-px", "first:rounded-s-lg last:rounded-e-lg", className);
33
+ let divClass: string = twMerge(textSizes[_size], prefixPadding[_size], "text-gray-500 bg-gray-200", background ? darkBgClasses.tinted : darkBgClasses.base, background ? divider.tinted : divider.base, background ? borderClasses["tinted"] : borderClasses["base"], "inline-flex items-center border", group && "not-first:-ms-px", "first:rounded-s-lg last:rounded-e-lg", className);
34
34
  </script>
35
35
 
36
36
  <div {...restProps} class={divClass}>
@@ -1,9 +1,9 @@
1
1
  <script lang="ts">
2
2
  import { type LabelProps as Props, label } from ".";
3
3
 
4
- let { children, color = "gray", show = true, class: className, ...restProps }: Props = $props();
4
+ let { children, color = "default", show = true, disabled = false, class: className, ...restProps }: Props = $props();
5
5
 
6
- const base = $derived(label({ color, className }));
6
+ const base = $derived(label({ color, disabled, className }));
7
7
  </script>
8
8
 
9
9
  {#if show}
@@ -1,6 +1,6 @@
1
1
  export declare const label: import("tailwind-variants").TVReturnType<{
2
2
  color: {
3
- disabled: string;
3
+ default: string;
4
4
  primary: string;
5
5
  secondary: string;
6
6
  green: string;
@@ -22,9 +22,12 @@ export declare const label: import("tailwind-variants").TVReturnType<{
22
22
  pink: string;
23
23
  rose: string;
24
24
  };
25
+ disabled: {
26
+ true: string;
27
+ };
25
28
  }, undefined, "text-sm rtl:text-right font-medium block space-y-1", import("tailwind-variants/dist/config").TVConfig<{
26
29
  color: {
27
- disabled: string;
30
+ default: string;
28
31
  primary: string;
29
32
  secondary: string;
30
33
  green: string;
@@ -46,9 +49,12 @@ export declare const label: import("tailwind-variants").TVReturnType<{
46
49
  pink: string;
47
50
  rose: string;
48
51
  };
52
+ disabled: {
53
+ true: string;
54
+ };
49
55
  }, {
50
56
  color: {
51
- disabled: string;
57
+ default: string;
52
58
  primary: string;
53
59
  secondary: string;
54
60
  green: string;
@@ -70,9 +76,12 @@ export declare const label: import("tailwind-variants").TVReturnType<{
70
76
  pink: string;
71
77
  rose: string;
72
78
  };
79
+ disabled: {
80
+ true: string;
81
+ };
73
82
  }>, {
74
83
  color: {
75
- disabled: string;
84
+ default: string;
76
85
  primary: string;
77
86
  secondary: string;
78
87
  green: string;
@@ -94,9 +103,12 @@ export declare const label: import("tailwind-variants").TVReturnType<{
94
103
  pink: string;
95
104
  rose: string;
96
105
  };
106
+ disabled: {
107
+ true: string;
108
+ };
97
109
  }, undefined, import("tailwind-variants").TVReturnType<{
98
110
  color: {
99
- disabled: string;
111
+ default: string;
100
112
  primary: string;
101
113
  secondary: string;
102
114
  green: string;
@@ -118,9 +130,12 @@ export declare const label: import("tailwind-variants").TVReturnType<{
118
130
  pink: string;
119
131
  rose: string;
120
132
  };
133
+ disabled: {
134
+ true: string;
135
+ };
121
136
  }, undefined, "text-sm rtl:text-right font-medium block space-y-1", import("tailwind-variants/dist/config").TVConfig<{
122
137
  color: {
123
- disabled: string;
138
+ default: string;
124
139
  primary: string;
125
140
  secondary: string;
126
141
  green: string;
@@ -142,9 +157,12 @@ export declare const label: import("tailwind-variants").TVReturnType<{
142
157
  pink: string;
143
158
  rose: string;
144
159
  };
160
+ disabled: {
161
+ true: string;
162
+ };
145
163
  }, {
146
164
  color: {
147
- disabled: string;
165
+ default: string;
148
166
  primary: string;
149
167
  secondary: string;
150
168
  green: string;
@@ -166,4 +184,7 @@ export declare const label: import("tailwind-variants").TVReturnType<{
166
184
  pink: string;
167
185
  rose: string;
168
186
  };
187
+ disabled: {
188
+ true: string;
189
+ };
169
190
  }>, unknown, unknown, undefined>>;
@@ -3,7 +3,7 @@ export const label = tv({
3
3
  base: "text-sm rtl:text-right font-medium block space-y-1",
4
4
  variants: {
5
5
  color: {
6
- disabled: "text-light-surface-500 dark:text-dark-surface-500",
6
+ default: "text-light-surface-700 dark:text-dark-surface-200",
7
7
  primary: "text-primary-700 dark:text-primary-500",
8
8
  secondary: "text-secondary-700 dark:text-secondary-500",
9
9
  green: "text-green-700 dark:text-green-500",
@@ -24,6 +24,9 @@ export const label = tv({
24
24
  fuchsia: "text-fuchsia-700 dark:text-fuchsia-500",
25
25
  pink: "text-pink-700 dark:text-pink-500",
26
26
  rose: "text-rose-700 dark:text-rose-500"
27
+ },
28
+ disabled: {
29
+ true: "opacity-50"
27
30
  }
28
31
  }
29
32
  });
@@ -3,8 +3,9 @@ import type { HTMLLabelAttributes } from "svelte/elements";
3
3
  import { type ColorName } from "../../types";
4
4
  interface LabelProps extends HTMLLabelAttributes {
5
5
  children: Snippet;
6
- color?: ColorName | "disabled";
6
+ color?: ColorName | "default";
7
7
  show?: boolean;
8
+ disabled?: boolean;
8
9
  class?: string;
9
10
  for?: string;
10
11
  }
@@ -1,15 +1,14 @@
1
1
  <script lang="ts" generics="T">
2
- import { getContext } from "svelte";
3
2
  import Label from "../label/Label.svelte";
4
3
  import { type RadioProps as Props, radio } from ".";
5
4
 
6
- let { children, aria_describedby, labelClass, color = "primary", group = $bindable<T>(), value = $bindable<T>(), inputClass, custom = false, ...restProps }: Props<T> = $props();
5
+ let { children, aria_describedby, labelClass, color = "primary", group = $bindable<T>(), value = $bindable<T>(), inputClass, custom = false, disabled = false, ...restProps }: Props<T> = $props();
7
6
 
8
- const { input, label } = $derived(radio({ color, custom, tinted: !!getContext("background") }));
7
+ const { input, label } = $derived(radio({ color, custom }));
9
8
  </script>
10
9
 
11
- <Label class={label({ class: labelClass })}>
12
- <input type="radio" bind:group {value} aria-describedby={aria_describedby} {...restProps} class={input({ class: inputClass })} />
10
+ <Label class={label({ class: labelClass })} {disabled}>
11
+ <input type="radio" bind:group {value} aria-describedby={aria_describedby} {disabled} aria-checked={group === value} class={input({ class: inputClass })} {...restProps} />
13
12
  {@render children()}
14
13
  </Label>
15
14
 
@@ -61,14 +61,6 @@ export declare const radio: import("tailwind-variants").TVReturnType<{
61
61
  input: string;
62
62
  };
63
63
  };
64
- tinted: {
65
- true: {
66
- input: string;
67
- };
68
- false: {
69
- input: string;
70
- };
71
- };
72
64
  custom: {
73
65
  true: {
74
66
  input: string;
@@ -140,14 +132,6 @@ export declare const radio: import("tailwind-variants").TVReturnType<{
140
132
  input: string;
141
133
  };
142
134
  };
143
- tinted: {
144
- true: {
145
- input: string;
146
- };
147
- false: {
148
- input: string;
149
- };
150
- };
151
135
  custom: {
152
136
  true: {
153
137
  input: string;
@@ -216,14 +200,6 @@ export declare const radio: import("tailwind-variants").TVReturnType<{
216
200
  input: string;
217
201
  };
218
202
  };
219
- tinted: {
220
- true: {
221
- input: string;
222
- };
223
- false: {
224
- input: string;
225
- };
226
- };
227
203
  custom: {
228
204
  true: {
229
205
  input: string;
@@ -292,14 +268,6 @@ export declare const radio: import("tailwind-variants").TVReturnType<{
292
268
  input: string;
293
269
  };
294
270
  };
295
- tinted: {
296
- true: {
297
- input: string;
298
- };
299
- false: {
300
- input: string;
301
- };
302
- };
303
271
  custom: {
304
272
  true: {
305
273
  input: string;
@@ -371,14 +339,6 @@ export declare const radio: import("tailwind-variants").TVReturnType<{
371
339
  input: string;
372
340
  };
373
341
  };
374
- tinted: {
375
- true: {
376
- input: string;
377
- };
378
- false: {
379
- input: string;
380
- };
381
- };
382
342
  custom: {
383
343
  true: {
384
344
  input: string;
@@ -450,14 +410,6 @@ export declare const radio: import("tailwind-variants").TVReturnType<{
450
410
  input: string;
451
411
  };
452
412
  };
453
- tinted: {
454
- true: {
455
- input: string;
456
- };
457
- false: {
458
- input: string;
459
- };
460
- };
461
413
  custom: {
462
414
  true: {
463
415
  input: string;
@@ -526,14 +478,6 @@ export declare const radio: import("tailwind-variants").TVReturnType<{
526
478
  input: string;
527
479
  };
528
480
  };
529
- tinted: {
530
- true: {
531
- input: string;
532
- };
533
- false: {
534
- input: string;
535
- };
536
- };
537
481
  custom: {
538
482
  true: {
539
483
  input: string;
@@ -1,75 +1,71 @@
1
1
  import { tv } from "tailwind-variants";
2
2
  export const radio = tv({
3
3
  slots: {
4
- input: "relative flex items-center w-4 h-4 bg-light-surface-100 border-light-surface-300 dark:bg-dark-surface-100 dark:border-dark-surface-300 dark:ring-offset-dark-surface-800 focus:ring-2 mr-2",
5
- label: "flex items-center"
4
+ input: "mr-2 my-auto appearance-none size-4 shrink-0 cursor-default rounded-full transition-all duration-150 bg-light-surface-100 dark:bg-dark-surface-700 border border-light-surface-300 dark:border-dark-surface-600 hover:border-light-surface-400 checked:border-5 checked:bg-white focus-visible:ring-2 focus-visible:ring-white outline-hidden disabled:opacity-50",
5
+ label: "flex items-center disabled:opacity-50 transition-all duration-150"
6
6
  },
7
7
  variants: {
8
8
  color: {
9
9
  // primary, secondary, gray, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose
10
10
  primary: {
11
- input: "text-primary-600 focus:ring-primary-500 dark:focus:ring-primary-600"
11
+ input: "checked:border-primary-600 hover:checked:border-primary-600"
12
12
  },
13
13
  secondary: {
14
- input: "text-secondary-600 focus:ring-secondary-500 dark:focus:ring-secondary-600"
14
+ input: "checked:border-secondary-600 hover:checked:border-secondary-600"
15
15
  },
16
16
  gray: {
17
- input: "text-gray-600 focus:ring-gray-500 dark:focus:ring-gray-600"
17
+ input: "checked:border-gray-600 hover:checked:border-gray-600"
18
18
  },
19
- red: { input: "text-red-600 focus:ring-red-500 dark:focus:ring-red-600" },
19
+ red: { input: "checked:border-red-600 hover:checked:border-red-600" },
20
20
  orange: {
21
- input: "text-orange-500 focus:ring-orange-500 dark:focus:ring-orange-600"
21
+ input: "checked:border-orange-500 hover:checked:border-orange-500"
22
22
  },
23
23
  amber: {
24
- input: "text-amber-600 focus:ring-amber-500 dark:focus:ring-amber-600"
24
+ input: "checked:border-amber-600 hover:checked:border-amber-600"
25
25
  },
26
26
  yellow: {
27
- input: "text-yellow-400 focus:ring-yellow-500 dark:focus:ring-yellow-600"
27
+ input: "checked:border-yellow-400 hover:checked:border-yellow-400"
28
28
  },
29
29
  lime: {
30
- input: "text-lime-600 focus:ring-lime-500 dark:focus:ring-lime-600"
30
+ input: "checked:border-lime-600 hover:checked:border-lime-600"
31
31
  },
32
32
  green: {
33
- input: "text-green-600 focus:ring-green-500 dark:focus:ring-green-600"
33
+ input: "checked:border-green-600 hover:checked:border-green-600"
34
34
  },
35
35
  emerald: {
36
- input: "text-emerald-600 focus:ring-emerald-500 dark:focus:ring-emerald-600"
36
+ input: "checked:border-emerald-600 hover:checked:border-emerald-600"
37
37
  },
38
38
  teal: {
39
- input: "text-teal-600 focus:ring-teal-500 dark:focus:ring-teal-600"
39
+ input: "checked:border-teal-600 hover:checked:border-teal-600"
40
40
  },
41
41
  cyan: {
42
- input: "text-cyan-600 focus:ring-cyan-500 dark:focus:ring-cyan-600"
42
+ input: "checked:border-cyan-600 hover:checked:border-cyan-600"
43
43
  },
44
- sky: { input: "text-sky-600 focus:ring-sky-500 dark:focus:ring-sky-600" },
44
+ sky: { input: "checked:border-sky-600 hover:checked:border-sky-600" },
45
45
  blue: {
46
- input: "text-blue-600 focus:ring-blue-500 dark:focus:ring-blue-600"
46
+ input: "checked:border-blue-600 hover:checked:border-blue-600"
47
47
  },
48
48
  indigo: {
49
- input: "text-indigo-600 focus:ring-indigo-500 dark:focus:ring-indigo-600"
49
+ input: "checked:border-indigo-600 hover:checked:border-indigo-600"
50
50
  },
51
51
  violet: {
52
- input: "text-violet-600 focus:ring-violet-500 dark:focus:ring-violet-600"
52
+ input: "checked:border-violet-600 hover:checked:border-violet-600"
53
53
  },
54
54
  purple: {
55
- input: "text-purple-600 focus:ring-purple-500 dark:focus:ring-purple-600"
55
+ input: "checked:border-purple-600 hover:checked:border-purple-600"
56
56
  },
57
57
  fuchsia: {
58
- input: "text-fuchsia-600 focus:ring-fuchsia-500 dark:focus:ring-fuchsia-600"
58
+ input: "checked:border-fuchsia-600 hover:checked:border-fuchsia-600"
59
59
  },
60
60
  pink: {
61
- input: "text-pink-600 focus:ring-pink-500 dark:focus:ring-pink-600"
61
+ input: "checked:border-pink-600 hover:checked:border-pink-600"
62
62
  },
63
63
  rose: {
64
- input: "text-rose-600 focus:ring-rose-500 dark:focus:ring-rose-600"
64
+ input: "checked:border-rose-600 hover:checked:border-rose-600"
65
65
  }
66
66
  },
67
- tinted: {
68
- true: { input: "dark:bg-dark-surface-600 dark:border-dark-surface-500" },
69
- false: { input: "dark:bg-dark-surface-700 dark:border-dark-surface-600" }
70
- },
71
67
  custom: {
72
- true: { input: "!sr-only peer" }
68
+ true: { input: "sr-only! peer" }
73
69
  }
74
70
  },
75
71
  defaultVariants: {
@@ -11,5 +11,6 @@ interface RadioProps<T> extends HTMLInputAttributes {
11
11
  labelClass?: string;
12
12
  hidden?: boolean;
13
13
  custom?: boolean;
14
+ disabled?: boolean;
14
15
  }
15
16
  export { type RadioProps, type RadioColorType };
@@ -8,7 +8,7 @@ export declare const select: import("tailwind-variants").TVReturnType<{
8
8
  md: string;
9
9
  lg: string;
10
10
  };
11
- }, undefined, "block w-full", import("tailwind-variants/dist/config").TVConfig<{
11
+ }, undefined, "block w-full disabled:cursor-not-allowed disabled:opacity-50", import("tailwind-variants/dist/config").TVConfig<{
12
12
  underline: {
13
13
  true: string;
14
14
  false: string;
@@ -48,7 +48,7 @@ export declare const select: import("tailwind-variants").TVReturnType<{
48
48
  md: string;
49
49
  lg: string;
50
50
  };
51
- }, undefined, "block w-full", import("tailwind-variants/dist/config").TVConfig<{
51
+ }, undefined, "block w-full disabled:cursor-not-allowed disabled:opacity-50", import("tailwind-variants/dist/config").TVConfig<{
52
52
  underline: {
53
53
  true: string;
54
54
  false: string;
@@ -1,11 +1,11 @@
1
1
  import { tv } from "tailwind-variants";
2
- // block w-full disabled:cursor-not-allowed disabled:opacity-50 rtl:text-right text-sm p-2.5 border border-light-surface-300 dark:border-dark-surface-600 focus:border-primary-500 focus:ring-primary-500 dark:focus:border-primary-500 dark:focus:ring-primary-500 bg-light-surface-50 text-light-surface-900 dark:bg-dark-surface-700 dark:text-white dark:placeholder-dark-surface-400 outline-none focus:ring-1 rounded-lg
2
+ // block w-full disabled:cursor-not-allowed disabled:opacity-50 rtl:text-right text-sm p-2.5 border border-light-surface-300 dark:border-dark-surface-600 focus:border-primary-500 focus:ring-primary-500 dark:focus:border-primary-500 dark:focus:ring-primary-500 bg-light-surface-50 text-light-surface-900 dark:bg-dark-surface-700 dark:text-white dark:placeholder-dark-surface-400 outline-hidden focus:ring-1 rounded-lg
3
3
  export const select = tv({
4
- base: "block w-full",
4
+ base: "block w-full disabled:cursor-not-allowed disabled:opacity-50",
5
5
  variants: {
6
6
  underline: {
7
- true: "text-light-surface-500 bg-transparent border-0 border-b-2 border-light-surface-200 appearance-none dark:text-dark-surface-400 dark:border-dark-surface-700 focus:outline-none focus:ring-0 focus:border-light-surface-200 peer !px-0",
8
- false: "text-light-surface-900 bg-light-surface-50 border border-light-surface-300 rounded-lg focus:ring-primary-500 focus:border-primary-500 dark:bg-dark-surface-700 dark:border-dark-surface-600 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500 dark:placeholder-dark-surface-400 required:invalid:text-dark-surface-400 outline-none focus:ring-1"
7
+ true: "text-light-surface-500 bg-transparent border-0 border-b-2 border-light-surface-200 appearance-none dark:text-dark-surface-400 dark:border-dark-surface-700 focus:outline-hidden focus:ring-0 focus:border-light-surface-200 peer px-0!",
8
+ false: "text-light-surface-900 bg-light-surface-50 border border-light-surface-300 rounded-lg focus:ring-primary-500 focus:border-primary-500 dark:bg-dark-surface-700 dark:border-dark-surface-600 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500 dark:placeholder-dark-surface-400 required:invalid:text-dark-surface-400 outline-hidden focus:ring-1"
9
9
  },
10
10
  size: {
11
11
  sm: "text-sm p-2",
@@ -1,7 +1,7 @@
1
1
  import { tv } from "tailwind-variants";
2
2
  export const textarea = tv({
3
3
  slots: {
4
- base: "block text-sm bg-inherit dark:bg-inherit focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
4
+ base: "block text-sm bg-inherit dark:bg-inherit focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
5
5
  wrapper: "",
6
6
  innerWrapper: "",
7
7
  headerCls: "py-2 px-3 border-light-surface-200 dark:border-dark-surface-500",
@@ -1,9 +1,9 @@
1
1
  import { tv } from "tailwind-variants";
2
2
  export const toggle = tv({
3
3
  slots: {
4
- span: "me-3 shrink-0 bg-gray-200 rounded-full peer-focus:ring-4 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:bg-white after:border-gray-300 after:border after:rounded-full after:transition-all dark:bg-gray-600 dark:border-gray-500 relative ",
4
+ span: "me-3 shrink-0 bg-gray-200 rounded-full peer-focus:ring-4 peer-checked:after:translate-x-full peer-checked:rtl:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:bg-white after:border-gray-300 after:border after:rounded-full after:transition-all dark:bg-gray-600 dark:border-gray-500 relative ",
5
5
  label: "flex items-center",
6
- input: "w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2 rounded dark:bg-gray-700 dark:border-gray-600 sr-only peer"
6
+ input: "w-4 h-4 bg-gray-100 border-gray-300 dark:ring-offset-gray-800 focus:ring-2 rounded-sm dark:bg-gray-700 dark:border-gray-600 sr-only peer"
7
7
  },
8
8
  variants: {
9
9
  disabled: {