@pathscale/ui 1.1.33 → 1.1.35

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 (260) hide show
  1. package/dist/components/badge/Badge.css +5 -5
  2. package/dist/components/badge/Badge.d.ts +1 -1
  3. package/dist/components/badge/Badge.js +1 -2
  4. package/dist/components/button/Button.css +10 -1
  5. package/dist/components/button/Button.d.ts +2 -0
  6. package/dist/components/button/Button.js +31 -6
  7. package/dist/components/button-group/ButtonGroup.css +117 -0
  8. package/dist/components/button-group/ButtonGroup.d.ts +23 -0
  9. package/dist/components/button-group/ButtonGroup.js +91 -0
  10. package/dist/components/button-group/context.d.ts +8 -0
  11. package/dist/components/button-group/context.js +3 -0
  12. package/dist/components/button-group/index.d.ts +1 -0
  13. package/dist/components/button-group/index.js +6 -0
  14. package/dist/components/card/Card.css +110 -0
  15. package/dist/components/card/Card.d.ts +26 -26
  16. package/dist/components/card/Card.js +131 -70
  17. package/dist/components/card/index.d.ts +1 -1
  18. package/dist/components/card/index.js +6 -1
  19. package/dist/components/checkbox/Checkbox.js +18 -4
  20. package/dist/components/checkbox-group/CheckboxGroup.css +10 -0
  21. package/dist/components/checkbox-group/CheckboxGroup.d.ts +18 -0
  22. package/dist/components/checkbox-group/CheckboxGroup.js +97 -0
  23. package/dist/components/checkbox-group/context.d.ts +11 -0
  24. package/dist/components/checkbox-group/context.js +3 -0
  25. package/dist/components/checkbox-group/index.d.ts +4 -0
  26. package/dist/components/checkbox-group/index.js +4 -0
  27. package/dist/components/chip/Chip.css +197 -0
  28. package/dist/components/chip/Chip.d.ts +25 -0
  29. package/dist/components/chip/Chip.js +142 -0
  30. package/dist/components/chip/index.d.ts +8 -0
  31. package/dist/components/chip/index.js +9 -0
  32. package/dist/components/close-button/CloseButton.css +81 -0
  33. package/dist/components/close-button/CloseButton.d.ts +14 -0
  34. package/dist/components/close-button/CloseButton.js +76 -0
  35. package/dist/components/close-button/index.d.ts +1 -0
  36. package/dist/components/close-button/index.js +3 -0
  37. package/dist/components/combo-box/ComboBox.css +344 -0
  38. package/dist/components/combo-box/ComboBox.d.ts +86 -0
  39. package/dist/components/combo-box/ComboBox.js +708 -0
  40. package/dist/components/combo-box/index.d.ts +1 -0
  41. package/dist/components/combo-box/index.js +10 -0
  42. package/dist/components/date-field/DateField.css +215 -0
  43. package/dist/components/date-field/DateField.d.ts +64 -0
  44. package/dist/components/date-field/DateField.js +341 -0
  45. package/dist/components/date-field/index.d.ts +1 -0
  46. package/dist/components/date-field/index.js +11 -0
  47. package/dist/components/description/Description.css +10 -0
  48. package/dist/components/description/Description.d.ts +11 -0
  49. package/dist/components/{form/Label.js → description/Description.js} +23 -14
  50. package/dist/components/description/index.d.ts +1 -0
  51. package/dist/components/description/index.js +5 -0
  52. package/dist/components/drawer/Drawer.css +15 -0
  53. package/dist/components/drawer/Drawer.d.ts +2 -0
  54. package/dist/components/drawer/Drawer.js +24 -16
  55. package/dist/components/error-message/ErrorMessage.css +20 -0
  56. package/dist/components/error-message/ErrorMessage.d.ts +11 -0
  57. package/dist/components/error-message/ErrorMessage.js +40 -0
  58. package/dist/components/error-message/index.d.ts +1 -0
  59. package/dist/components/error-message/index.js +5 -0
  60. package/dist/components/field-error/FieldError.css +27 -0
  61. package/dist/components/field-error/FieldError.d.ts +21 -0
  62. package/dist/components/field-error/FieldError.js +69 -0
  63. package/dist/components/field-error/index.d.ts +1 -0
  64. package/dist/components/field-error/index.js +5 -0
  65. package/dist/components/fieldset/Fieldset.css +30 -0
  66. package/dist/components/fieldset/Fieldset.d.ts +22 -9
  67. package/dist/components/fieldset/Fieldset.js +88 -44
  68. package/dist/components/fieldset/index.d.ts +1 -2
  69. package/dist/components/fieldset/index.js +7 -2
  70. package/dist/components/form/Form.css +5 -0
  71. package/dist/components/form/Form.d.ts +10 -16
  72. package/dist/components/form/Form.js +33 -16
  73. package/dist/components/form/index.d.ts +1 -4
  74. package/dist/components/form/index.js +3 -4
  75. package/dist/components/header/Header.css +13 -0
  76. package/dist/components/header/Header.d.ts +9 -0
  77. package/dist/components/{menu/MenuDetails.js → header/Header.js} +17 -20
  78. package/dist/components/header/index.d.ts +1 -0
  79. package/dist/components/header/index.js +5 -0
  80. package/dist/components/immersive-landing/components/FirefoxPWABanner.js +62 -68
  81. package/dist/components/immersive-landing/components/PWAInstallPrompt.js +58 -64
  82. package/dist/components/input/Input.css +3 -2
  83. package/dist/components/input/Input.d.ts +2 -2
  84. package/dist/components/input/Input.js +7 -7
  85. package/dist/components/input-group/InputGroup.css +172 -0
  86. package/dist/components/input-group/InputGroup.d.ts +44 -0
  87. package/dist/components/input-group/InputGroup.js +227 -0
  88. package/dist/components/input-group/index.d.ts +1 -0
  89. package/dist/components/input-group/index.js +9 -0
  90. package/dist/components/input-otp/InputOTP.css +170 -0
  91. package/dist/components/input-otp/InputOTP.d.ts +46 -0
  92. package/dist/components/input-otp/InputOTP.js +385 -0
  93. package/dist/components/input-otp/index.d.ts +1 -0
  94. package/dist/components/input-otp/index.js +11 -0
  95. package/dist/components/label/Label.css +30 -0
  96. package/dist/components/label/Label.d.ts +17 -0
  97. package/dist/components/label/Label.js +64 -0
  98. package/dist/components/label/index.d.ts +1 -0
  99. package/dist/components/label/index.js +5 -0
  100. package/dist/components/list-box/ListBox.css +148 -0
  101. package/dist/components/list-box/ListBox.d.ts +23 -0
  102. package/dist/components/list-box/ListBox.js +224 -0
  103. package/dist/components/list-box/ListBoxItem.d.ts +28 -0
  104. package/dist/components/list-box/ListBoxItem.js +231 -0
  105. package/dist/components/list-box/ListBoxSection.d.ts +11 -0
  106. package/dist/components/list-box/ListBoxSection.js +48 -0
  107. package/dist/components/list-box/context.d.ts +27 -0
  108. package/dist/components/list-box/context.js +3 -0
  109. package/dist/components/list-box/index.d.ts +17 -0
  110. package/dist/components/list-box/index.js +17 -0
  111. package/dist/components/menu/Menu.css +199 -0
  112. package/dist/components/menu/Menu.d.ts +32 -20
  113. package/dist/components/menu/Menu.js +213 -39
  114. package/dist/components/menu/MenuItem.d.ts +35 -5
  115. package/dist/components/menu/MenuItem.js +270 -19
  116. package/dist/components/menu/MenuSection.d.ts +11 -0
  117. package/dist/components/menu/MenuSection.js +48 -0
  118. package/dist/components/menu/context.d.ts +26 -0
  119. package/dist/components/menu/context.js +3 -0
  120. package/dist/components/menu/index.d.ts +4 -3
  121. package/dist/components/menu/index.js +11 -2
  122. package/dist/components/number-field/NumberField.css +198 -0
  123. package/dist/components/number-field/NumberField.d.ts +48 -0
  124. package/dist/components/number-field/NumberField.js +350 -0
  125. package/dist/components/number-field/index.d.ts +1 -0
  126. package/dist/components/number-field/index.js +9 -0
  127. package/dist/components/search-field/SearchField.css +183 -0
  128. package/dist/components/search-field/SearchField.d.ts +53 -0
  129. package/dist/components/search-field/SearchField.js +303 -0
  130. package/dist/components/search-field/index.d.ts +1 -0
  131. package/dist/components/search-field/index.js +9 -0
  132. package/dist/components/select/Select.css +16 -10
  133. package/dist/components/select/Select.d.ts +10 -2
  134. package/dist/components/select/Select.js +119 -33
  135. package/dist/components/separator/Separator.css +35 -0
  136. package/dist/components/separator/Separator.d.ts +12 -0
  137. package/dist/components/separator/Separator.js +57 -0
  138. package/dist/components/separator/index.d.ts +1 -0
  139. package/dist/components/separator/index.js +4 -0
  140. package/dist/components/sidenav/Sidenav.js +2 -2
  141. package/dist/components/surface/Surface.css +37 -0
  142. package/dist/components/surface/Surface.d.ts +12 -0
  143. package/dist/components/surface/Surface.js +41 -0
  144. package/dist/components/surface/index.d.ts +1 -0
  145. package/dist/components/surface/index.js +4 -0
  146. package/dist/components/table/hooks/index.d.ts +1 -9
  147. package/dist/components/table/hooks/index.js +1 -18
  148. package/dist/components/tag/Tag.css +121 -0
  149. package/dist/components/tag/Tag.d.ts +33 -0
  150. package/dist/components/tag/Tag.js +241 -0
  151. package/dist/components/tag/index.d.ts +1 -0
  152. package/dist/components/tag/index.js +6 -0
  153. package/dist/components/tag-group/TagGroup.css +22 -0
  154. package/dist/components/tag-group/TagGroup.d.ts +32 -0
  155. package/dist/components/tag-group/TagGroup.js +177 -0
  156. package/dist/components/tag-group/context.d.ts +15 -0
  157. package/dist/components/tag-group/context.js +3 -0
  158. package/dist/components/tag-group/index.d.ts +2 -0
  159. package/dist/components/tag-group/index.js +6 -0
  160. package/dist/components/text/Text.css +66 -0
  161. package/dist/components/text/Text.d.ts +17 -0
  162. package/dist/components/text/Text.js +46 -0
  163. package/dist/components/text/index.d.ts +1 -0
  164. package/dist/components/text/index.js +5 -0
  165. package/dist/components/text-area/TextArea.css +95 -0
  166. package/dist/components/text-area/TextArea.d.ts +19 -0
  167. package/dist/components/text-area/TextArea.js +64 -0
  168. package/dist/components/text-area/index.d.ts +1 -0
  169. package/dist/components/text-area/index.js +5 -0
  170. package/dist/components/text-field/TextField.css +33 -0
  171. package/dist/components/text-field/TextField.d.ts +34 -0
  172. package/dist/components/text-field/TextField.js +85 -0
  173. package/dist/components/text-field/index.d.ts +1 -0
  174. package/dist/components/text-field/index.js +7 -0
  175. package/dist/components/textarea/Textarea.d.ts +8 -13
  176. package/dist/components/textarea/Textarea.js +14 -45
  177. package/dist/components/textarea/index.d.ts +2 -1
  178. package/dist/components/textarea/index.js +4 -1
  179. package/dist/components/time-field/TimeField.css +215 -0
  180. package/dist/components/time-field/TimeField.d.ts +64 -0
  181. package/dist/components/time-field/TimeField.js +341 -0
  182. package/dist/components/time-field/index.d.ts +1 -0
  183. package/dist/components/time-field/index.js +11 -0
  184. package/dist/components/utils.d.ts +2 -2
  185. package/dist/components/utils.js +3 -17
  186. package/dist/hooks/form/index.d.ts +5 -0
  187. package/dist/hooks/form/index.js +12 -0
  188. package/dist/hooks/form/useField.d.ts +11 -0
  189. package/dist/hooks/form/useField.js +20 -0
  190. package/dist/hooks/form/useFieldError.d.ts +3 -0
  191. package/dist/hooks/form/useFieldError.js +3 -0
  192. package/dist/hooks/form/useFieldMeta.d.ts +20 -0
  193. package/dist/hooks/form/useFieldMeta.js +49 -0
  194. package/dist/hooks/form/useFieldProps.d.ts +10 -0
  195. package/dist/hooks/form/useFieldProps.js +51 -0
  196. package/dist/hooks/form/useForm.d.ts +27 -0
  197. package/dist/hooks/form/useForm.js +54 -0
  198. package/dist/hooks/form/utils.d.ts +4 -0
  199. package/dist/hooks/form/utils.js +30 -0
  200. package/dist/hooks/layout/index.d.ts +1 -0
  201. package/dist/hooks/layout/index.js +3 -0
  202. package/dist/hooks/layout/useDesktop.d.ts +1 -0
  203. package/dist/hooks/layout/useDesktop.js +17 -0
  204. package/dist/hooks/table/index.d.ts +9 -0
  205. package/dist/hooks/table/index.js +18 -0
  206. package/dist/index.d.ts +63 -7
  207. package/dist/index.js +145 -15
  208. package/dist/primitives/streaming/index.d.ts +2 -0
  209. package/dist/primitives/streaming/index.js +5 -0
  210. package/dist/primitives/streaming/useStreamingBuffer.d.ts +15 -0
  211. package/dist/primitives/streaming/useStreamingBuffer.js +115 -0
  212. package/dist/primitives/streaming/useStreamingSubscription.d.ts +27 -0
  213. package/dist/primitives/streaming/useStreamingSubscription.js +115 -0
  214. package/dist/styles/icons/generated-icons.css +1 -1
  215. package/package.json +1 -1
  216. package/dist/components/card/CardActions.d.ts +0 -4
  217. package/dist/components/card/CardActions.js +0 -15
  218. package/dist/components/card/CardBody.d.ts +0 -4
  219. package/dist/components/card/CardBody.js +0 -15
  220. package/dist/components/card/CardImage.d.ts +0 -3
  221. package/dist/components/card/CardImage.js +0 -10
  222. package/dist/components/card/CardTitle.d.ts +0 -6
  223. package/dist/components/card/CardTitle.js +0 -13
  224. package/dist/components/card/card.css +0 -171
  225. package/dist/components/form/FormBase.d.ts +0 -8
  226. package/dist/components/form/FormBase.js +0 -74
  227. package/dist/components/form/FormDropdown.d.ts +0 -25
  228. package/dist/components/form/FormDropdown.js +0 -139
  229. package/dist/components/form/FormField.d.ts +0 -14
  230. package/dist/components/form/FormField.js +0 -78
  231. package/dist/components/form/Label.d.ts +0 -7
  232. package/dist/components/form/NumberField.d.ts +0 -20
  233. package/dist/components/form/NumberField.js +0 -109
  234. package/dist/components/form/PasswordField.d.ts +0 -16
  235. package/dist/components/form/PasswordField.js +0 -113
  236. package/dist/components/form/ValidatedForm.d.ts +0 -26
  237. package/dist/components/form/ValidatedForm.js +0 -55
  238. package/dist/components/menu/MenuDetails.d.ts +0 -8
  239. package/dist/components/menu/MenuDropdown.d.ts +0 -12
  240. package/dist/components/menu/MenuDropdown.js +0 -48
  241. package/dist/components/menu/MenuTitle.d.ts +0 -8
  242. package/dist/components/menu/MenuTitle.js +0 -22
  243. package/dist/components/menu/menu.css +0 -364
  244. package/dist/components/textarea/textarea.css +0 -191
  245. /package/dist/{components/table/hooks → hooks/table}/helpers.d.ts +0 -0
  246. /package/dist/{components/table/hooks → hooks/table}/helpers.js +0 -0
  247. /package/dist/{components/table/hooks → hooks/table}/useAnchoredOverlayPosition.d.ts +0 -0
  248. /package/dist/{components/table/hooks → hooks/table}/useAnchoredOverlayPosition.js +0 -0
  249. /package/dist/{components/table/hooks → hooks/table}/useTableExpansion.d.ts +0 -0
  250. /package/dist/{components/table/hooks → hooks/table}/useTableExpansion.js +0 -0
  251. /package/dist/{components/table/hooks → hooks/table}/useTableFiltering.d.ts +0 -0
  252. /package/dist/{components/table/hooks → hooks/table}/useTableFiltering.js +0 -0
  253. /package/dist/{components/table/hooks → hooks/table}/useTableModel.d.ts +0 -0
  254. /package/dist/{components/table/hooks → hooks/table}/useTableModel.js +0 -0
  255. /package/dist/{components/table/hooks → hooks/table}/useTablePagination.d.ts +0 -0
  256. /package/dist/{components/table/hooks → hooks/table}/useTablePagination.js +0 -0
  257. /package/dist/{components/table/hooks → hooks/table}/useTableSelection.d.ts +0 -0
  258. /package/dist/{components/table/hooks → hooks/table}/useTableSelection.js +0 -0
  259. /package/dist/{components/table/hooks → hooks/table}/useTableSorting.d.ts +0 -0
  260. /package/dist/{components/table/hooks → hooks/table}/useTableSorting.js +0 -0
@@ -1,364 +0,0 @@
1
- @layer components {
2
- .menu {
3
- display: flex;
4
- width: fit-content;
5
- flex-direction: column;
6
- flex-wrap: wrap;
7
- padding: calc(0.25rem * 2);
8
- --menu-active-fg: var(--color-neutral-content);
9
- --menu-active-bg: var(--color-neutral);
10
- font-size: 0.875rem;
11
- }
12
-
13
- .menu :where(li ul) {
14
- position: relative;
15
- margin-inline-start: calc(0.25rem * 4);
16
- padding-inline-start: calc(0.25rem * 2);
17
- white-space: nowrap;
18
- }
19
-
20
- .menu :where(li ul):before {
21
- position: absolute;
22
- inset-inline-start: calc(0.25rem * 0);
23
- top: calc(0.25rem * 3);
24
- bottom: calc(0.25rem * 3);
25
- background-color: var(--color-base-content);
26
- opacity: 10%;
27
- width: var(--border);
28
- content: "";
29
- }
30
-
31
- .menu :where(li > .menu-dropdown:not(.menu-dropdown-show)) {
32
- display: none;
33
- }
34
-
35
- .menu :where(li:not(.menu-title) > *:not(ul, details, .menu-title, .btn)),
36
- .menu :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
37
- display: grid;
38
- grid-auto-flow: column;
39
- align-content: flex-start;
40
- align-items: center;
41
- gap: calc(0.25rem * 2);
42
- border-radius: var(--radius-field);
43
- padding-inline: calc(0.25rem * 3);
44
- padding-block: calc(0.25rem * 1.5);
45
- text-align: start;
46
- transition-property: color, background-color, box-shadow;
47
- transition-duration: 0.2s;
48
- transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
49
- grid-auto-columns: minmax(auto, max-content) auto max-content;
50
- text-wrap: balance;
51
- user-select: none;
52
- }
53
-
54
- .menu :where(li > details > summary) {
55
- --tw-outline-style: none;
56
- outline-style: none;
57
- }
58
-
59
- @media (forced-colors: active) {
60
- .menu :where(li > details > summary) {
61
- outline: 2px solid transparent;
62
- outline-offset: 2px;
63
- }
64
- }
65
-
66
- .menu :where(li > details > summary)::-webkit-details-marker {
67
- display: none;
68
- }
69
-
70
- .menu :where(li > details > summary):after,
71
- .menu :where(li > .menu-dropdown-toggle):after {
72
- justify-self: flex-end;
73
- display: block;
74
- height: 0.375rem;
75
- width: 0.375rem;
76
- rotate: -135deg;
77
- translate: 0 -1px;
78
- transition-property: rotate, translate;
79
- transition-duration: 0.2s;
80
- content: "";
81
- transform-origin: 50% 50%;
82
- box-shadow: 2px 2px inset;
83
- pointer-events: none;
84
- }
85
-
86
- .menu details {
87
- overflow: hidden;
88
- interpolate-size: allow-keywords;
89
- }
90
-
91
- .menu details::details-content {
92
- block-size: 0;
93
- }
94
-
95
- @media (prefers-reduced-motion: no-preference) {
96
- .menu details::details-content {
97
- transition-behavior: allow-discrete;
98
- transition-property: block-size, content-visibility;
99
- transition-duration: 0.2s;
100
- transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
101
- }
102
- }
103
-
104
- .menu details[open]::details-content {
105
- block-size: auto;
106
- }
107
-
108
- .menu :where(li > details[open] > summary):after,
109
- .menu :where(li > .menu-dropdown-toggle.menu-dropdown-show):after {
110
- rotate: 45deg;
111
- translate: 0 1px;
112
- }
113
-
114
- .menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn).menu-focus,
115
- .menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn):focus-visible {
116
- cursor: pointer;
117
- background-color: var(--color-base-content);
118
- color: var(--color-base-content);
119
- --tw-outline-style: none;
120
- outline-style: none;
121
- }
122
-
123
- @supports (color: color-mix(in lab, red, red)) {
124
- .menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn).menu-focus,
125
- .menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn):focus-visible {
126
- background-color: color-mix(in oklab, var(--color-base-content) 10%, transparent);
127
- }
128
- }
129
-
130
- @media (forced-colors: active) {
131
- .menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn).menu-focus,
132
- .menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title), li:not(.menu-title, .disabled) > details > summary:not(.menu-title) ):not(.menu-active, :active, .btn):focus-visible {
133
- outline: 2px solid transparent;
134
- outline-offset: 2px;
135
- }
136
- }
137
-
138
- .menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title):not(.menu-active, :active, .btn):hover, li:not(.menu-title, .disabled) > details > summary:not(.menu-title):not(.menu-active, :active, .btn):hover ) {
139
- cursor: pointer;
140
- background-color: var(--color-base-content);
141
- --tw-outline-style: none;
142
- outline-style: none;
143
- box-shadow: 0 1px oklch(0% 0 0 / 0.01) inset, 0 -1px oklch(100% 0 0 / 0.01) inset;
144
- }
145
-
146
- @supports (color: color-mix(in lab, red, red)) {
147
- .menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title):not(.menu-active, :active, .btn):hover, li:not(.menu-title, .disabled) > details > summary:not(.menu-title):not(.menu-active, :active, .btn):hover ) {
148
- background-color: color-mix(in oklab, var(--color-base-content) 10%, transparent);
149
- }
150
- }
151
-
152
- @media (forced-colors: active) {
153
- .menu :where( li:not(.menu-title, .disabled) > *:not(ul, details, .menu-title):not(.menu-active, :active, .btn):hover, li:not(.menu-title, .disabled) > details > summary:not(.menu-title):not(.menu-active, :active, .btn):hover ) {
154
- outline: 2px solid transparent;
155
- outline-offset: 2px;
156
- }
157
- }
158
-
159
- .menu :where(li:empty) {
160
- background-color: var(--color-base-content);
161
- opacity: 10%;
162
- margin: 0.5rem 1rem;
163
- height: 1px;
164
- }
165
-
166
- .menu :where(li) {
167
- position: relative;
168
- display: flex;
169
- flex-shrink: 0;
170
- flex-direction: column;
171
- flex-wrap: wrap;
172
- align-items: stretch;
173
- }
174
-
175
- .menu :where(li) .badge {
176
- justify-self: flex-end;
177
- }
178
-
179
- .menu :where(li) > *:not(ul, .menu-title, details, .btn):active,
180
- .menu :where(li) > *:not(ul, .menu-title, details, .btn).menu-active,
181
- .menu :where(li) > details > summary:active {
182
- --tw-outline-style: none;
183
- outline-style: none;
184
- color: var(--menu-active-fg);
185
- background-color: var(--menu-active-bg);
186
- background-size: auto, calc(var(--noise) * 100%);
187
- background-image: none, var(--fx-noise);
188
- }
189
-
190
- @media (forced-colors: active) {
191
- .menu :where(li) > *:not(ul, .menu-title, details, .btn):active,
192
- .menu :where(li) > *:not(ul, .menu-title, details, .btn).menu-active,
193
- .menu :where(li) > details > summary:active {
194
- outline: 2px solid transparent;
195
- outline-offset: 2px;
196
- }
197
- }
198
-
199
- .menu :where(li) > *:not(ul, .menu-title, details, .btn):active:not(.menu :where(li) > *:not(ul, .menu-title, details, .btn):active:active),
200
- .menu :where(li) > *:not(ul, .menu-title, details, .btn).menu-active:not(.menu :where(li) > *:not(ul, .menu-title, details, .btn).menu-active:active),
201
- .menu :where(li) > details > summary:active:not(.menu :where(li) > details > summary:active:active) {
202
- box-shadow: 0 2px calc(var(--depth) * 3px) -2px var(--menu-active-bg);
203
- }
204
-
205
- .menu :where(li).menu-disabled {
206
- pointer-events: none;
207
- color: var(--color-base-content);
208
- }
209
-
210
- @supports (color: color-mix(in lab, red, red)) {
211
- .menu :where(li).menu-disabled {
212
- color: color-mix(in oklab, var(--color-base-content) 20%, transparent);
213
- }
214
- }
215
-
216
- .menu .dropdown:focus-within .menu-dropdown-toggle:after {
217
- rotate: 45deg;
218
- translate: 0 1px;
219
- }
220
-
221
- .menu .dropdown-content {
222
- margin-top: calc(0.25rem * 2);
223
- padding: calc(0.25rem * 2);
224
- }
225
-
226
- .menu .dropdown-content:before {
227
- display: none;
228
- }
229
-
230
- .menu-horizontal {
231
- display: inline-flex;
232
- flex-direction: row;
233
- }
234
-
235
- .menu-horizontal > li:not(.menu-title) > details > ul {
236
- position: absolute;
237
- margin-inline-start: calc(0.25rem * 0);
238
- margin-top: calc(0.25rem * 4);
239
- transform-origin: top;
240
- border-radius: var(--radius-box);
241
- background-color: var(--color-base-100);
242
- padding-block: calc(0.25rem * 2);
243
- padding-inline-end: calc(0.25rem * 2);
244
- opacity: 0%;
245
- scale: 95%;
246
- box-shadow: 0 1px 3px 0 oklch(0% 0 0/0.1), 0 1px 2px -1px oklch(0% 0 0/0.1);
247
- }
248
-
249
- @media (prefers-reduced-motion: no-preference) {
250
- @starting-style {
251
- .menu-horizontal > li:not(.menu-title) > details > ul {
252
- scale: 95%;
253
- opacity: 0;
254
- }
255
- }
256
- }
257
-
258
- .menu-horizontal > li:not(.menu-title) > details[open] > ul {
259
- opacity: 100%;
260
- scale: 100%;
261
- }
262
-
263
- .menu-horizontal > li > details > ul:before {
264
- --tw-content: none;
265
- content: var(--tw-content);
266
- }
267
-
268
- .menu-vertical {
269
- display: inline-flex;
270
- flex-direction: column;
271
- }
272
-
273
- .menu-vertical > li:not(.menu-title) > details > ul {
274
- position: relative;
275
- margin-inline-start: calc(0.25rem * 4);
276
- margin-top: calc(0.25rem * 0);
277
- padding-block: calc(0.25rem * 0);
278
- padding-inline-end: calc(0.25rem * 0);
279
- background-color: revert-layer;
280
- border-radius: revert-layer;
281
- animation: revert-layer;
282
- transition: revert-layer;
283
- box-shadow: revert-layer;
284
- }
285
-
286
- .menu-lg :where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
287
- .menu-lg :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
288
- border-radius: var(--radius-field);
289
- padding-inline: calc(0.25rem * 4);
290
- padding-block: calc(0.25rem * 1.5);
291
- font-size: 1.125rem;
292
- }
293
-
294
- .menu-lg .menu-title {
295
- padding-inline: calc(0.25rem * 6);
296
- padding-block: calc(0.25rem * 3);
297
- }
298
-
299
- .menu-md :where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
300
- .menu-md :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
301
- border-radius: var(--radius-field);
302
- padding-inline: calc(0.25rem * 3);
303
- padding-block: calc(0.25rem * 1.5);
304
- font-size: 0.875rem;
305
- }
306
-
307
- .menu-md .menu-title {
308
- padding-inline: calc(0.25rem * 3);
309
- padding-block: calc(0.25rem * 2);
310
- }
311
-
312
- .menu-sm :where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
313
- .menu-sm :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
314
- border-radius: var(--radius-field);
315
- padding-inline: calc(0.25rem * 2.5);
316
- padding-block: calc(0.25rem * 1);
317
- font-size: 0.75rem;
318
- }
319
-
320
- .menu-sm .menu-title {
321
- padding-inline: calc(0.25rem * 3);
322
- padding-block: calc(0.25rem * 2);
323
- }
324
-
325
- .menu-xl :where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
326
- .menu-xl :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
327
- border-radius: var(--radius-field);
328
- padding-inline: calc(0.25rem * 5);
329
- padding-block: calc(0.25rem * 1.5);
330
- font-size: 1.375rem;
331
- }
332
-
333
- .menu-xl .menu-title {
334
- padding-inline: calc(0.25rem * 6);
335
- padding-block: calc(0.25rem * 3);
336
- }
337
-
338
- .menu-xs :where(li:not(.menu-title) > *:not(ul, details, .menu-title)),
339
- .menu-xs :where(li:not(.menu-title) > details > summary:not(.menu-title)) {
340
- border-radius: var(--radius-field);
341
- padding-inline: calc(0.25rem * 2);
342
- padding-block: calc(0.25rem * 1);
343
- font-size: 0.6875rem;
344
- }
345
-
346
- .menu-xs .menu-title {
347
- padding-inline: calc(0.25rem * 2);
348
- padding-block: calc(0.25rem * 1);
349
- }
350
-
351
- .menu-title {
352
- padding-inline: calc(0.25rem * 3);
353
- padding-block: calc(0.25rem * 2);
354
- color: var(--color-base-content);
355
- font-size: 0.875rem;
356
- font-weight: 600;
357
- }
358
-
359
- @supports (color: color-mix(in lab, red, red)) {
360
- .menu-title {
361
- color: color-mix(in oklab, var(--color-base-content) 40%, transparent);
362
- }
363
- }
364
- }
@@ -1,191 +0,0 @@
1
- @layer components {
2
- .textarea {
3
- border: var(--border) solid #0000;
4
- min-height: calc(0.25rem * 20);
5
- flex-shrink: 1;
6
- appearance: none;
7
- border-radius: var(--radius-field);
8
- background-color: var(--color-base-100);
9
- padding-block: calc(0.25rem * 2);
10
- vertical-align: middle;
11
- width: clamp(3rem, 20rem, 100%);
12
- padding-inline-start: 0.75rem;
13
- padding-inline-end: 0.75rem;
14
- font-size: max(var(--font-size, 0.875rem), 0.875rem);
15
- touch-action: manipulation;
16
- border-color: var(--input-color);
17
- box-shadow: 0 1px var(--input-color) inset, 0 -1px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset;
18
- --input-color: var(--color-base-content);
19
- }
20
-
21
- @supports (color: color-mix(in lab, red, red)) {
22
- .textarea {
23
- box-shadow: 0 1px color-mix(in oklab, var(--input-color) calc(var(--depth) * 10%), #0000) inset, 0 -1px oklch(100% 0 0 / calc(var(--depth) * 0.1)) inset;
24
- }
25
- }
26
-
27
- @supports (color: color-mix(in lab, red, red)) {
28
- .textarea {
29
- --input-color: color-mix(in oklab, var(--color-base-content) 20%, #0000);
30
- }
31
- }
32
-
33
- .textarea textarea {
34
- appearance: none;
35
- background-color: transparent;
36
- border: none;
37
- }
38
-
39
- .textarea textarea:focus,
40
- .textarea textarea:focus-within {
41
- --tw-outline-style: none;
42
- outline-style: none;
43
- }
44
-
45
- @media (forced-colors: active) {
46
- .textarea textarea:focus,
47
- .textarea textarea:focus-within {
48
- outline: 2px solid transparent;
49
- outline-offset: 2px;
50
- }
51
- }
52
-
53
- .textarea:focus,
54
- .textarea:focus-within {
55
- --input-color: var(--color-base-content);
56
- box-shadow: 0 1px var(--input-color);
57
- outline: 2px solid var(--input-color);
58
- outline-offset: 2px;
59
- isolation: isolate;
60
- }
61
-
62
- @supports (color: color-mix(in lab, red, red)) {
63
- .textarea:focus,
64
- .textarea:focus-within {
65
- box-shadow: 0 1px color-mix(in oklab, var(--input-color) calc(var(--depth) * 10%), #0000);
66
- }
67
- }
68
-
69
- @media (pointer: coarse) {
70
- @supports (-webkit-touch-callout: none) {
71
- .textarea:focus,
72
- .textarea:focus-within {
73
- --font-size: 1rem;
74
- }
75
- }
76
- }
77
-
78
- .textarea:has(> textarea[disabled]),
79
- .textarea:is(:disabled, [disabled]) {
80
- cursor: not-allowed;
81
- border-color: var(--color-base-200);
82
- background-color: var(--color-base-200);
83
- color: var(--color-base-content);
84
- box-shadow: none;
85
- }
86
-
87
- @supports (color: color-mix(in lab, red, red)) {
88
- .textarea:has(> textarea[disabled]),
89
- .textarea:is(:disabled, [disabled]) {
90
- color: color-mix(in oklab, var(--color-base-content) 40%, transparent);
91
- }
92
- }
93
-
94
- .textarea:has(> textarea[disabled])::placeholder,
95
- .textarea:is(:disabled, [disabled])::placeholder {
96
- color: var(--color-base-content);
97
- }
98
-
99
- @supports (color: color-mix(in lab, red, red)) {
100
- .textarea:has(> textarea[disabled])::placeholder,
101
- .textarea:is(:disabled, [disabled])::placeholder {
102
- color: color-mix(in oklab, var(--color-base-content) 20%, transparent);
103
- }
104
- }
105
-
106
- .textarea:has(> textarea[disabled]) > textarea[disabled] {
107
- cursor: not-allowed;
108
- }
109
-
110
- .textarea-ghost {
111
- background-color: transparent;
112
- box-shadow: none;
113
- border-color: #0000;
114
- }
115
-
116
- .textarea-ghost:focus,
117
- .textarea-ghost:focus-within {
118
- background-color: var(--color-base-100);
119
- color: var(--color-base-content);
120
- border-color: #0000;
121
- box-shadow: none;
122
- }
123
-
124
- .textarea-lg {
125
- font-size: max(var(--font-size, 1.125rem), 1.125rem);
126
- }
127
-
128
- .textarea-md {
129
- font-size: max(var(--font-size, 0.875rem), 0.875rem);
130
- }
131
-
132
- .textarea-sm {
133
- font-size: max(var(--font-size, 0.75rem), 0.75rem);
134
- }
135
-
136
- .textarea-xl {
137
- font-size: max(var(--font-size, 1.375rem), 1.375rem);
138
- }
139
-
140
- .textarea-xs {
141
- font-size: max(var(--font-size, 0.6875rem), 0.6875rem);
142
- }
143
-
144
- .textarea-accent,
145
- .textarea-accent:focus,
146
- .textarea-accent:focus-within {
147
- --input-color: var(--color-accent);
148
- }
149
-
150
- .textarea-error,
151
- .textarea-error:focus,
152
- .textarea-error:focus-within {
153
- --input-color: var(--color-error);
154
- }
155
-
156
- .textarea-info,
157
- .textarea-info:focus,
158
- .textarea-info:focus-within {
159
- --input-color: var(--color-info);
160
- }
161
-
162
- .textarea-neutral,
163
- .textarea-neutral:focus,
164
- .textarea-neutral:focus-within {
165
- --input-color: var(--color-neutral);
166
- }
167
-
168
- .textarea-primary,
169
- .textarea-primary:focus,
170
- .textarea-primary:focus-within {
171
- --input-color: var(--color-primary);
172
- }
173
-
174
- .textarea-secondary,
175
- .textarea-secondary:focus,
176
- .textarea-secondary:focus-within {
177
- --input-color: var(--color-secondary);
178
- }
179
-
180
- .textarea-success,
181
- .textarea-success:focus,
182
- .textarea-success:focus-within {
183
- --input-color: var(--color-success);
184
- }
185
-
186
- .textarea-warning,
187
- .textarea-warning:focus,
188
- .textarea-warning:focus-within {
189
- --input-color: var(--color-warning);
190
- }
191
- }