@ropav/styles 0.5.0 → 0.7.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 (479) hide show
  1. package/README.md +111 -15
  2. package/dist/components/accordion/accordion.styles.d.ts +47 -50
  3. package/dist/components/accordion/accordion.styles.d.ts.map +1 -1
  4. package/dist/components/accordion/accordion.styles.js +10 -10
  5. package/dist/components/accordion.css +16 -24
  6. package/dist/components/alert/alert.styles.d.ts +32 -74
  7. package/dist/components/alert/alert.styles.d.ts.map +1 -1
  8. package/dist/components/alert/alert.styles.js +11 -11
  9. package/dist/components/alert-dialog/alert-dialog.styles.d.ts +79 -173
  10. package/dist/components/alert-dialog/alert-dialog.styles.d.ts.map +1 -1
  11. package/dist/components/alert-dialog/alert-dialog.styles.js +24 -24
  12. package/dist/components/alert-dialog.css +27 -39
  13. package/dist/components/alert.css +15 -15
  14. package/dist/components/autocomplete/autocomplete.styles.d.ts +58 -107
  15. package/dist/components/autocomplete/autocomplete.styles.d.ts.map +1 -1
  16. package/dist/components/autocomplete/autocomplete.styles.js +16 -16
  17. package/dist/components/autocomplete.css +43 -53
  18. package/dist/components/avatar/avatar.styles.d.ts +30 -119
  19. package/dist/components/avatar/avatar.styles.d.ts.map +1 -1
  20. package/dist/components/avatar/avatar.styles.js +13 -13
  21. package/dist/components/avatar.css +18 -18
  22. package/dist/components/badge/badge.styles.d.ts +34 -176
  23. package/dist/components/badge/badge.styles.d.ts.map +1 -1
  24. package/dist/components/badge/badge.styles.js +19 -19
  25. package/dist/components/badge.css +28 -28
  26. package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +17 -44
  27. package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
  28. package/dist/components/breadcrumbs/breadcrumbs.styles.js +5 -5
  29. package/dist/components/breadcrumbs.css +13 -6
  30. package/dist/components/button/button.styles.d.ts +9 -68
  31. package/dist/components/button/button.styles.d.ts.map +1 -1
  32. package/dist/components/button/button.styles.js +14 -14
  33. package/dist/components/button-group/button-group.styles.d.ts +20 -56
  34. package/dist/components/button-group/button-group.styles.d.ts.map +1 -1
  35. package/dist/components/button-group/button-group.styles.js +6 -6
  36. package/dist/components/button-group.css +24 -28
  37. package/dist/components/button.css +19 -23
  38. package/dist/components/calendar/calendar.styles.d.ts +41 -77
  39. package/dist/components/calendar/calendar.styles.d.ts.map +1 -1
  40. package/dist/components/calendar/calendar.styles.js +13 -13
  41. package/dist/components/calendar-year-picker/calendar-year-picker.styles.d.ts +20 -50
  42. package/dist/components/calendar-year-picker/calendar-year-picker.styles.d.ts.map +1 -1
  43. package/dist/components/calendar-year-picker/calendar-year-picker.styles.js +6 -6
  44. package/dist/components/calendar-year-picker.css +36 -23
  45. package/dist/components/calendar.css +68 -43
  46. package/dist/components/card/card.styles.d.ts +37 -68
  47. package/dist/components/card/card.styles.d.ts.map +1 -1
  48. package/dist/components/card/card.styles.js +11 -11
  49. package/dist/components/card.css +10 -10
  50. package/dist/components/checkbox/checkbox.styles.d.ts +27 -44
  51. package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -1
  52. package/dist/components/checkbox/checkbox.styles.js +7 -7
  53. package/dist/components/checkbox-group/checkbox-group.styles.d.ts +6 -17
  54. package/dist/components/checkbox-group/checkbox-group.styles.d.ts.map +1 -1
  55. package/dist/components/checkbox-group/checkbox-group.styles.js +4 -4
  56. package/dist/components/checkbox-group.css +1 -1
  57. package/dist/components/checkbox.css +87 -88
  58. package/dist/components/chip/chip.styles.d.ts +23 -140
  59. package/dist/components/chip/chip.styles.d.ts.map +1 -1
  60. package/dist/components/chip/chip.styles.js +15 -15
  61. package/dist/components/chip.css +26 -24
  62. package/dist/components/close-button/close-button.styles.d.ts +6 -14
  63. package/dist/components/close-button/close-button.styles.d.ts.map +1 -1
  64. package/dist/components/close-button/close-button.styles.js +3 -3
  65. package/dist/components/close-button.css +9 -8
  66. package/dist/components/color-area/color-area.styles.d.ts +17 -32
  67. package/dist/components/color-area/color-area.styles.d.ts.map +1 -1
  68. package/dist/components/color-area/color-area.styles.js +4 -4
  69. package/dist/components/color-area.css +9 -9
  70. package/dist/components/color-field/color-field.styles.d.ts +6 -17
  71. package/dist/components/color-field/color-field.styles.d.ts.map +1 -1
  72. package/dist/components/color-field/color-field.styles.js +3 -3
  73. package/dist/components/color-field.css +2 -2
  74. package/dist/components/color-input-group/color-input-group.styles.d.ts +37 -89
  75. package/dist/components/color-input-group/color-input-group.styles.d.ts.map +1 -1
  76. package/dist/components/color-input-group/color-input-group.styles.js +10 -10
  77. package/dist/components/color-input-group.css +23 -40
  78. package/dist/components/color-picker/color-picker.styles.d.ts +14 -38
  79. package/dist/components/color-picker/color-picker.styles.d.ts.map +1 -1
  80. package/dist/components/color-picker/color-picker.styles.js +4 -4
  81. package/dist/components/color-picker.css +4 -8
  82. package/dist/components/color-slider/color-slider.styles.d.ts +17 -44
  83. package/dist/components/color-slider/color-slider.styles.d.ts.map +1 -1
  84. package/dist/components/color-slider/color-slider.styles.js +5 -5
  85. package/dist/components/color-slider.css +30 -28
  86. package/dist/components/color-swatch/color-swatch.styles.d.ts +7 -38
  87. package/dist/components/color-swatch/color-swatch.styles.d.ts.map +1 -1
  88. package/dist/components/color-swatch/color-swatch.styles.js +9 -9
  89. package/dist/components/color-swatch-picker/color-swatch-picker.styles.d.ts +37 -119
  90. package/dist/components/color-swatch-picker/color-swatch-picker.styles.d.ts.map +1 -1
  91. package/dist/components/color-swatch-picker/color-swatch-picker.styles.js +14 -14
  92. package/dist/components/color-swatch-picker.css +21 -104
  93. package/dist/components/color-swatch.css +13 -13
  94. package/dist/components/combo-box/combo-box.styles.d.ts +38 -71
  95. package/dist/components/combo-box/combo-box.styles.d.ts.map +1 -1
  96. package/dist/components/combo-box/combo-box.styles.js +10 -10
  97. package/dist/components/combo-box.css +23 -13
  98. package/dist/components/date-field/date-field.styles.d.ts +6 -17
  99. package/dist/components/date-field/date-field.styles.d.ts.map +1 -1
  100. package/dist/components/date-field/date-field.styles.js +3 -3
  101. package/dist/components/date-field.css +2 -2
  102. package/dist/components/date-input-group/date-input-group.styles.d.ts +51 -95
  103. package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -1
  104. package/dist/components/date-input-group/date-input-group.styles.js +12 -12
  105. package/dist/components/date-input-group.css +50 -48
  106. package/dist/components/date-picker/date-picker.styles.d.ts +17 -44
  107. package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -1
  108. package/dist/components/date-picker/date-picker.styles.js +5 -5
  109. package/dist/components/date-picker.css +9 -13
  110. package/dist/components/date-range-picker/date-range-picker.styles.d.ts +20 -50
  111. package/dist/components/date-range-picker/date-range-picker.styles.d.ts.map +1 -1
  112. package/dist/components/date-range-picker/date-range-picker.styles.js +6 -6
  113. package/dist/components/date-range-picker.css +10 -14
  114. package/dist/components/description/description.styles.d.ts +4 -2
  115. package/dist/components/description/description.styles.d.ts.map +1 -1
  116. package/dist/components/description/description.styles.js +2 -2
  117. package/dist/components/description.css +1 -1
  118. package/dist/components/disclosure/disclosure.styles.d.ts +26 -26
  119. package/dist/components/disclosure/disclosure.styles.d.ts.map +1 -1
  120. package/dist/components/disclosure/disclosure.styles.js +8 -8
  121. package/dist/components/disclosure-group/disclosure-group.styles.d.ts +8 -8
  122. package/dist/components/disclosure-group/disclosure-group.styles.d.ts.map +1 -1
  123. package/dist/components/disclosure-group/disclosure-group.styles.js +2 -2
  124. package/dist/components/disclosure-group.css +1 -1
  125. package/dist/components/disclosure.css +6 -10
  126. package/dist/components/drawer/drawer.styles.d.ts +68 -125
  127. package/dist/components/drawer/drawer.styles.d.ts.map +1 -1
  128. package/dist/components/drawer/drawer.styles.js +22 -22
  129. package/dist/components/drawer.css +41 -45
  130. package/dist/components/drop-zone/drop-zone.styles.d.ts +13 -0
  131. package/dist/components/drop-zone/drop-zone.styles.d.ts.map +1 -0
  132. package/dist/components/drop-zone/drop-zone.styles.js +8 -0
  133. package/dist/components/drop-zone/index.d.ts +2 -0
  134. package/dist/components/drop-zone/index.d.ts.map +1 -0
  135. package/dist/components/drop-zone/index.js +2 -0
  136. package/dist/components/drop-zone.css +78 -0
  137. package/dist/components/dropdown/dropdown.styles.d.ts +17 -44
  138. package/dist/components/dropdown/dropdown.styles.d.ts.map +1 -1
  139. package/dist/components/dropdown/dropdown.styles.js +5 -5
  140. package/dist/components/dropdown.css +13 -15
  141. package/dist/components/empty-state/empty-state.styles.d.ts +4 -2
  142. package/dist/components/empty-state/empty-state.styles.d.ts.map +1 -1
  143. package/dist/components/empty-state/empty-state.styles.js +2 -2
  144. package/dist/components/empty-state.css +1 -1
  145. package/dist/components/error-message/error-message.styles.d.ts +4 -2
  146. package/dist/components/error-message/error-message.styles.d.ts.map +1 -1
  147. package/dist/components/error-message/error-message.styles.js +2 -2
  148. package/dist/components/error-message.css +1 -5
  149. package/dist/components/field-error/field-error.styles.d.ts +4 -2
  150. package/dist/components/field-error/field-error.styles.d.ts.map +1 -1
  151. package/dist/components/field-error/field-error.styles.js +2 -2
  152. package/dist/components/field-error.css +7 -11
  153. package/dist/components/fieldset/fieldset.styles.d.ts +20 -50
  154. package/dist/components/fieldset/fieldset.styles.d.ts.map +1 -1
  155. package/dist/components/fieldset/fieldset.styles.js +6 -6
  156. package/dist/components/fieldset.css +4 -4
  157. package/dist/components/header/header.styles.d.ts +3 -1
  158. package/dist/components/header/header.styles.d.ts.map +1 -1
  159. package/dist/components/header/header.styles.js +2 -2
  160. package/dist/components/header.css +1 -1
  161. package/dist/components/index.css +1 -0
  162. package/dist/components/index.d.ts +1 -0
  163. package/dist/components/index.d.ts.map +1 -1
  164. package/dist/components/input/input.styles.d.ts +8 -44
  165. package/dist/components/input/input.styles.d.ts.map +1 -1
  166. package/dist/components/input/input.styles.js +7 -7
  167. package/dist/components/input-group/input-group.styles.d.ts +37 -89
  168. package/dist/components/input-group/input-group.styles.d.ts.map +1 -1
  169. package/dist/components/input-group/input-group.styles.js +10 -10
  170. package/dist/components/input-group.css +29 -54
  171. package/dist/components/input-otp/input-otp.styles.d.ts +42 -53
  172. package/dist/components/input-otp/input-otp.styles.d.ts.map +1 -1
  173. package/dist/components/input-otp/input-otp.styles.js +10 -10
  174. package/dist/components/input-otp.css +24 -36
  175. package/dist/components/input.css +17 -38
  176. package/dist/components/kbd/kbd.styles.d.ts +22 -29
  177. package/dist/components/kbd/kbd.styles.d.ts.map +1 -1
  178. package/dist/components/kbd/kbd.styles.js +6 -6
  179. package/dist/components/kbd.css +7 -5
  180. package/dist/components/label/label.styles.d.ts +8 -32
  181. package/dist/components/label/label.styles.d.ts.map +1 -1
  182. package/dist/components/label/label.styles.js +5 -5
  183. package/dist/components/label.css +16 -11
  184. package/dist/components/link/link.styles.d.ts +11 -32
  185. package/dist/components/link/link.styles.d.ts.map +1 -1
  186. package/dist/components/link/link.styles.js +3 -3
  187. package/dist/components/link.css +20 -18
  188. package/dist/components/list-box/list-box.styles.d.ts +7 -32
  189. package/dist/components/list-box/list-box.styles.d.ts.map +1 -1
  190. package/dist/components/list-box/list-box.styles.js +6 -6
  191. package/dist/components/list-box-item/list-box-item.styles.d.ts +17 -38
  192. package/dist/components/list-box-item/list-box-item.styles.d.ts.map +1 -1
  193. package/dist/components/list-box-item/list-box-item.styles.js +5 -5
  194. package/dist/components/list-box-item.css +13 -19
  195. package/dist/components/list-box-section/list-box-section.styles.d.ts +4 -2
  196. package/dist/components/list-box-section/list-box-section.styles.d.ts.map +1 -1
  197. package/dist/components/list-box-section/list-box-section.styles.js +2 -2
  198. package/dist/components/list-box-section.css +1 -1
  199. package/dist/components/list-box.css +53 -3
  200. package/dist/components/menu/menu.styles.d.ts +6 -20
  201. package/dist/components/menu/menu.styles.d.ts.map +1 -1
  202. package/dist/components/menu/menu.styles.js +4 -4
  203. package/dist/components/menu-item/menu-item.styles.d.ts +22 -41
  204. package/dist/components/menu-item/menu-item.styles.d.ts.map +1 -1
  205. package/dist/components/menu-item/menu-item.styles.js +6 -6
  206. package/dist/components/menu-item.css +15 -21
  207. package/dist/components/menu-section/menu-section.styles.d.ts +4 -2
  208. package/dist/components/menu-section/menu-section.styles.d.ts.map +1 -1
  209. package/dist/components/menu-section/menu-section.styles.js +2 -2
  210. package/dist/components/menu-section.css +1 -1
  211. package/dist/components/menu.css +4 -4
  212. package/dist/components/meter/meter.styles.d.ts +32 -104
  213. package/dist/components/meter/meter.styles.d.ts.map +1 -1
  214. package/dist/components/meter/meter.styles.js +13 -13
  215. package/dist/components/meter.css +22 -30
  216. package/dist/components/modal/modal.styles.d.ts +79 -167
  217. package/dist/components/modal/modal.styles.d.ts.map +1 -1
  218. package/dist/components/modal/modal.styles.js +26 -26
  219. package/dist/components/modal.css +30 -42
  220. package/dist/components/number-field/number-field.styles.d.ts +44 -95
  221. package/dist/components/number-field/number-field.styles.d.ts.map +1 -1
  222. package/dist/components/number-field/number-field.styles.js +12 -12
  223. package/dist/components/number-field.css +47 -59
  224. package/dist/components/pagination/pagination.styles.d.ts +44 -59
  225. package/dist/components/pagination/pagination.styles.d.ts.map +1 -1
  226. package/dist/components/pagination/pagination.styles.js +19 -12
  227. package/dist/components/pagination.css +18 -22
  228. package/dist/components/popover/popover.styles.d.ts +17 -44
  229. package/dist/components/popover/popover.styles.d.ts.map +1 -1
  230. package/dist/components/popover/popover.styles.js +5 -5
  231. package/dist/components/popover.css +4 -8
  232. package/dist/components/progress-bar/progress-bar.styles.d.ts +42 -104
  233. package/dist/components/progress-bar/progress-bar.styles.d.ts.map +1 -1
  234. package/dist/components/progress-bar/progress-bar.styles.js +23 -13
  235. package/dist/components/progress-bar.css +97 -31
  236. package/dist/components/progress-circle/progress-circle.styles.d.ts +32 -104
  237. package/dist/components/progress-circle/progress-circle.styles.d.ts.map +1 -1
  238. package/dist/components/progress-circle/progress-circle.styles.js +13 -13
  239. package/dist/components/progress-circle.css +17 -21
  240. package/dist/components/radio/radio.styles.d.ts +17 -44
  241. package/dist/components/radio/radio.styles.d.ts.map +1 -1
  242. package/dist/components/radio/radio.styles.js +5 -5
  243. package/dist/components/radio-group/radio-group.styles.d.ts +6 -17
  244. package/dist/components/radio-group/radio-group.styles.d.ts.map +1 -1
  245. package/dist/components/radio-group/radio-group.styles.js +4 -4
  246. package/dist/components/radio-group.css +8 -8
  247. package/dist/components/radio.css +46 -48
  248. package/dist/components/range-calendar/range-calendar.styles.d.ts +44 -77
  249. package/dist/components/range-calendar/range-calendar.styles.d.ts.map +1 -1
  250. package/dist/components/range-calendar/range-calendar.styles.js +15 -13
  251. package/dist/components/range-calendar.css +111 -69
  252. package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts +16 -68
  253. package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts.map +1 -1
  254. package/dist/components/scroll-shadow/scroll-shadow.styles.js +6 -6
  255. package/dist/components/scroll-shadow.css +6 -6
  256. package/dist/components/search-field/search-field.styles.d.ts +44 -95
  257. package/dist/components/search-field/search-field.styles.d.ts.map +1 -1
  258. package/dist/components/search-field/search-field.styles.js +12 -12
  259. package/dist/components/search-field.css +29 -46
  260. package/dist/components/segmented-control/segmented-control.styles.d.ts +32 -71
  261. package/dist/components/segmented-control/segmented-control.styles.d.ts.map +1 -1
  262. package/dist/components/segmented-control/segmented-control.styles.js +9 -9
  263. package/dist/components/segmented-control.css +26 -31
  264. package/dist/components/select/select.styles.d.ts +44 -101
  265. package/dist/components/select/select.styles.d.ts.map +1 -1
  266. package/dist/components/select/select.styles.js +14 -14
  267. package/dist/components/select.css +33 -47
  268. package/dist/components/separator/separator.styles.d.ts +7 -32
  269. package/dist/components/separator/separator.styles.d.ts.map +1 -1
  270. package/dist/components/separator/separator.styles.js +7 -7
  271. package/dist/components/separator.css +13 -13
  272. package/dist/components/sidebar/sidebar.styles.d.ts +222 -188
  273. package/dist/components/sidebar/sidebar.styles.d.ts.map +1 -1
  274. package/dist/components/sidebar/sidebar.styles.js +45 -32
  275. package/dist/components/sidebar.css +180 -80
  276. package/dist/components/skeleton/skeleton.styles.d.ts +12 -26
  277. package/dist/components/skeleton/skeleton.styles.d.ts.map +1 -1
  278. package/dist/components/skeleton/skeleton.styles.js +5 -5
  279. package/dist/components/skeleton.css +6 -6
  280. package/dist/components/slider/slider.styles.d.ts +23 -56
  281. package/dist/components/slider/slider.styles.d.ts.map +1 -1
  282. package/dist/components/slider/slider.styles.js +7 -7
  283. package/dist/components/slider.css +24 -25
  284. package/dist/components/spinner/spinner.styles.d.ts +7 -44
  285. package/dist/components/spinner/spinner.styles.d.ts.map +1 -1
  286. package/dist/components/spinner/spinner.styles.js +11 -11
  287. package/dist/components/spinner.css +10 -10
  288. package/dist/components/splitter/splitter.styles.d.ts +32 -59
  289. package/dist/components/splitter/splitter.styles.d.ts.map +1 -1
  290. package/dist/components/splitter/splitter.styles.js +12 -12
  291. package/dist/components/splitter.css +64 -56
  292. package/dist/components/surface/surface.styles.d.ts +6 -23
  293. package/dist/components/surface/surface.styles.d.ts.map +1 -1
  294. package/dist/components/surface/surface.styles.js +6 -6
  295. package/dist/components/surface.css +5 -5
  296. package/dist/components/switch/switch.styles.d.ts +32 -56
  297. package/dist/components/switch/switch.styles.d.ts.map +1 -1
  298. package/dist/components/switch/switch.styles.js +9 -9
  299. package/dist/components/switch-group/switch-group.styles.d.ts +17 -38
  300. package/dist/components/switch-group/switch-group.styles.d.ts.map +1 -1
  301. package/dist/components/switch-group/switch-group.styles.js +5 -5
  302. package/dist/components/switch-group.css +4 -4
  303. package/dist/components/switch.css +68 -67
  304. package/dist/components/table/table.styles.d.ts +87 -77
  305. package/dist/components/table/table.styles.d.ts.map +1 -1
  306. package/dist/components/table/table.styles.js +20 -18
  307. package/dist/components/table.css +177 -86
  308. package/dist/components/tabs/tabs.styles.d.ts +57 -56
  309. package/dist/components/tabs/tabs.styles.d.ts.map +1 -1
  310. package/dist/components/tabs/tabs.styles.js +12 -12
  311. package/dist/components/tabs.css +41 -52
  312. package/dist/components/tag/tag.styles.d.ts +20 -71
  313. package/dist/components/tag/tag.styles.d.ts.map +1 -1
  314. package/dist/components/tag/tag.styles.js +8 -8
  315. package/dist/components/tag-group/tag-group.styles.d.ts +11 -32
  316. package/dist/components/tag-group/tag-group.styles.d.ts.map +1 -1
  317. package/dist/components/tag-group/tag-group.styles.js +3 -3
  318. package/dist/components/tag-group.css +6 -6
  319. package/dist/components/tag.css +43 -35
  320. package/dist/components/textarea/textarea.styles.d.ts +8 -44
  321. package/dist/components/textarea/textarea.styles.d.ts.map +1 -1
  322. package/dist/components/textarea/textarea.styles.js +7 -7
  323. package/dist/components/textarea.css +17 -38
  324. package/dist/components/textfield/textfield.styles.d.ts +6 -17
  325. package/dist/components/textfield/textfield.styles.d.ts.map +1 -1
  326. package/dist/components/textfield/textfield.styles.js +3 -3
  327. package/dist/components/textfield.css +2 -2
  328. package/dist/components/time-field/time-field.styles.d.ts +6 -17
  329. package/dist/components/time-field/time-field.styles.d.ts.map +1 -1
  330. package/dist/components/time-field/time-field.styles.js +3 -3
  331. package/dist/components/time-field.css +2 -2
  332. package/dist/components/toast/toast.styles.d.ts +56 -161
  333. package/dist/components/toast/toast.styles.d.ts.map +1 -1
  334. package/dist/components/toast/toast.styles.js +26 -26
  335. package/dist/components/toast.css +58 -56
  336. package/dist/components/toggle-button/toggle-button.styles.d.ts +8 -41
  337. package/dist/components/toggle-button/toggle-button.styles.d.ts.map +1 -1
  338. package/dist/components/toggle-button/toggle-button.styles.js +8 -8
  339. package/dist/components/toggle-button-group/toggle-button-group.styles.d.ts +23 -74
  340. package/dist/components/toggle-button-group/toggle-button-group.styles.d.ts.map +1 -1
  341. package/dist/components/toggle-button-group/toggle-button-group.styles.js +7 -7
  342. package/dist/components/toggle-button-group.css +22 -26
  343. package/dist/components/toggle-button.css +11 -15
  344. package/dist/components/toolbar/toolbar.styles.d.ts +7 -26
  345. package/dist/components/toolbar/toolbar.styles.d.ts.map +1 -1
  346. package/dist/components/toolbar/toolbar.styles.js +5 -5
  347. package/dist/components/toolbar.css +7 -7
  348. package/dist/components/tooltip/tooltip.styles.d.ts +11 -32
  349. package/dist/components/tooltip/tooltip.styles.d.ts.map +1 -1
  350. package/dist/components/tooltip/tooltip.styles.js +3 -3
  351. package/dist/components/tooltip.css +2 -6
  352. package/dist/components/typography/typography.styles.d.ts +29 -107
  353. package/dist/components/typography/typography.styles.d.ts.map +1 -1
  354. package/dist/components/typography/typography.styles.js +24 -24
  355. package/dist/components/typography.css +53 -45
  356. package/dist/components/virtualizer/virtualizer.styles.d.ts +13 -37
  357. package/dist/components/virtualizer/virtualizer.styles.d.ts.map +1 -1
  358. package/dist/components/virtualizer/virtualizer.styles.js +4 -4
  359. package/dist/components/virtualizer.css +14 -6
  360. package/dist/core.css +26 -0
  361. package/dist/index.css +8 -24
  362. package/dist/index.d.ts +2 -1
  363. package/dist/index.d.ts.map +1 -1
  364. package/dist/index.js +3 -2
  365. package/dist/no-preflight.css +8 -0
  366. package/dist/ropav.min.css +1 -1
  367. package/dist/themes/airbnb.css +6 -4
  368. package/dist/themes/coinbase.css +6 -4
  369. package/dist/themes/default.css +24 -4
  370. package/dist/themes/discord.css +6 -4
  371. package/dist/themes/hero.css +24 -4
  372. package/dist/themes/lavender.css +6 -4
  373. package/dist/themes/mint.css +6 -4
  374. package/dist/themes/netflix.css +6 -4
  375. package/dist/themes/rabbit.css +6 -4
  376. package/dist/themes/shared/theme.css +1 -0
  377. package/dist/themes/sky.css +6 -4
  378. package/dist/themes/spotify.css +6 -4
  379. package/dist/themes/uber.css +6 -4
  380. package/dist/themes.d.ts +12 -0
  381. package/dist/themes.d.ts.map +1 -0
  382. package/dist/themes.js +39 -0
  383. package/dist/tv.d.ts +34 -0
  384. package/dist/tv.d.ts.map +1 -0
  385. package/dist/tv.js +21 -0
  386. package/package.json +5 -3
  387. package/src/components/accordion/accordion.styles.ts +11 -11
  388. package/src/components/alert/alert.styles.ts +12 -12
  389. package/src/components/alert-dialog/alert-dialog.styles.ts +25 -25
  390. package/src/components/autocomplete/autocomplete.styles.ts +17 -17
  391. package/src/components/avatar/avatar.styles.ts +14 -14
  392. package/src/components/badge/badge.styles.ts +20 -20
  393. package/src/components/breadcrumbs/breadcrumbs.styles.ts +6 -6
  394. package/src/components/button/button.styles.ts +15 -15
  395. package/src/components/button-group/button-group.styles.ts +7 -7
  396. package/src/components/calendar/calendar.styles.ts +14 -14
  397. package/src/components/calendar-year-picker/calendar-year-picker.styles.ts +7 -7
  398. package/src/components/card/card.styles.ts +12 -12
  399. package/src/components/checkbox/checkbox.styles.ts +8 -8
  400. package/src/components/checkbox-group/checkbox-group.styles.ts +5 -5
  401. package/src/components/chip/chip.styles.ts +16 -16
  402. package/src/components/close-button/close-button.styles.ts +4 -4
  403. package/src/components/color-area/color-area.styles.ts +5 -5
  404. package/src/components/color-field/color-field.styles.ts +4 -4
  405. package/src/components/color-input-group/color-input-group.styles.ts +11 -11
  406. package/src/components/color-picker/color-picker.styles.ts +5 -5
  407. package/src/components/color-slider/color-slider.styles.ts +6 -6
  408. package/src/components/color-swatch/color-swatch.styles.ts +10 -10
  409. package/src/components/color-swatch-picker/color-swatch-picker.styles.ts +15 -15
  410. package/src/components/combo-box/combo-box.styles.ts +11 -11
  411. package/src/components/date-field/date-field.styles.ts +4 -4
  412. package/src/components/date-input-group/date-input-group.styles.ts +13 -13
  413. package/src/components/date-picker/date-picker.styles.ts +6 -6
  414. package/src/components/date-range-picker/date-range-picker.styles.ts +7 -7
  415. package/src/components/description/description.styles.ts +3 -3
  416. package/src/components/disclosure/disclosure.styles.ts +9 -9
  417. package/src/components/disclosure-group/disclosure-group.styles.ts +3 -3
  418. package/src/components/drawer/drawer.styles.ts +23 -23
  419. package/src/components/drop-zone/drop-zone.styles.ts +12 -0
  420. package/src/components/drop-zone/index.ts +1 -0
  421. package/src/components/dropdown/dropdown.styles.ts +6 -6
  422. package/src/components/empty-state/empty-state.styles.ts +3 -3
  423. package/src/components/error-message/error-message.styles.ts +3 -3
  424. package/src/components/field-error/field-error.styles.ts +3 -3
  425. package/src/components/fieldset/fieldset.styles.ts +7 -7
  426. package/src/components/header/header.styles.ts +2 -2
  427. package/src/components/index.ts +1 -0
  428. package/src/components/input/input.styles.ts +8 -8
  429. package/src/components/input-group/input-group.styles.ts +11 -11
  430. package/src/components/input-otp/input-otp.styles.ts +11 -11
  431. package/src/components/kbd/kbd.styles.ts +7 -7
  432. package/src/components/label/label.styles.ts +6 -6
  433. package/src/components/link/link.styles.ts +4 -4
  434. package/src/components/list-box/list-box.styles.ts +7 -7
  435. package/src/components/list-box-item/list-box-item.styles.ts +6 -6
  436. package/src/components/list-box-section/list-box-section.styles.ts +3 -3
  437. package/src/components/menu/menu.styles.ts +5 -5
  438. package/src/components/menu-item/menu-item.styles.ts +7 -7
  439. package/src/components/menu-section/menu-section.styles.ts +3 -3
  440. package/src/components/meter/meter.styles.ts +14 -14
  441. package/src/components/modal/modal.styles.ts +27 -27
  442. package/src/components/number-field/number-field.styles.ts +13 -13
  443. package/src/components/pagination/pagination.styles.ts +18 -11
  444. package/src/components/popover/popover.styles.ts +6 -6
  445. package/src/components/progress-bar/progress-bar.styles.ts +28 -14
  446. package/src/components/progress-circle/progress-circle.styles.ts +14 -14
  447. package/src/components/radio/radio.styles.ts +6 -6
  448. package/src/components/radio-group/radio-group.styles.ts +5 -5
  449. package/src/components/range-calendar/range-calendar.styles.ts +16 -14
  450. package/src/components/scroll-shadow/scroll-shadow.styles.ts +7 -7
  451. package/src/components/search-field/search-field.styles.ts +13 -13
  452. package/src/components/segmented-control/segmented-control.styles.ts +10 -10
  453. package/src/components/select/select.styles.ts +15 -15
  454. package/src/components/separator/separator.styles.ts +8 -8
  455. package/src/components/sidebar/sidebar.styles.ts +55 -32
  456. package/src/components/skeleton/skeleton.styles.ts +6 -6
  457. package/src/components/slider/slider.styles.ts +8 -8
  458. package/src/components/spinner/spinner.styles.ts +12 -12
  459. package/src/components/splitter/splitter.styles.ts +13 -13
  460. package/src/components/surface/surface.styles.ts +7 -7
  461. package/src/components/switch/switch.styles.ts +10 -10
  462. package/src/components/switch-group/switch-group.styles.ts +6 -6
  463. package/src/components/table/table.styles.ts +21 -19
  464. package/src/components/tabs/tabs.styles.ts +13 -13
  465. package/src/components/tag/tag.styles.ts +9 -9
  466. package/src/components/tag-group/tag-group.styles.ts +4 -4
  467. package/src/components/textarea/textarea.styles.ts +8 -8
  468. package/src/components/textfield/textfield.styles.ts +4 -4
  469. package/src/components/time-field/time-field.styles.ts +4 -4
  470. package/src/components/toast/toast.styles.ts +27 -27
  471. package/src/components/toggle-button/toggle-button.styles.ts +9 -9
  472. package/src/components/toggle-button-group/toggle-button-group.styles.ts +8 -8
  473. package/src/components/toolbar/toolbar.styles.ts +6 -6
  474. package/src/components/tooltip/tooltip.styles.ts +4 -4
  475. package/src/components/typography/typography.styles.ts +25 -25
  476. package/src/components/virtualizer/virtualizer.styles.ts +4 -4
  477. package/src/index.ts +5 -2
  478. package/src/themes.ts +40 -0
  479. package/src/tv.ts +82 -0
@@ -1,5 +1,5 @@
1
1
  /* Number field styles */
2
- .number-field {
2
+ .rp-number-field {
3
3
  @apply flex flex-col gap-1;
4
4
 
5
5
  &[data-invalid="true"],
@@ -14,8 +14,15 @@
14
14
  }
15
15
  }
16
16
 
17
- .number-field__group {
18
- @apply grid h-9 items-center overflow-hidden rounded-field border bg-field text-sm text-field-foreground shadow-field outline-none;
17
+ .rp-number-field__group {
18
+ @apply grid h-9 items-center overflow-hidden rounded-field border text-sm text-field-foreground shadow-field outline-none;
19
+
20
+ /* The fill, per state. The `--secondary` variant re-points these and declares nothing else. */
21
+ --number-field-group-bg: var(--field-background, var(--default));
22
+ --number-field-group-bg-hover: var(--field-hover);
23
+ --number-field-group-bg-focus: var(--field-focus);
24
+
25
+ background-color: var(--number-field-group-bg);
19
26
  border-width: var(--border-width-field);
20
27
  border-color: var(--field-border);
21
28
 
@@ -40,10 +47,6 @@
40
47
  grid-template-columns: 40px 1fr 40px;
41
48
  }
42
49
 
43
- /**
44
- * Transitions
45
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
46
- */
47
50
  transition:
48
51
  background-color 150ms var(--ease-smooth),
49
52
  border-color 150ms var(--ease-smooth),
@@ -54,7 +57,7 @@
54
57
  @media (hover: hover) {
55
58
  &:hover:not(:focus-within),
56
59
  &[data-hovered="true"]:not([data-focus-within="true"]) {
57
- @apply bg-field-hover;
60
+ background-color: var(--number-field-group-bg-hover);
58
61
  border-color: var(--field-border-hover);
59
62
  }
60
63
  }
@@ -64,13 +67,13 @@
64
67
  &:focus-within {
65
68
  @apply status-focused-field;
66
69
  border-color: var(--field-border-focus);
67
- background-color: var(--field-focus);
70
+ background-color: var(--number-field-group-bg-focus);
68
71
  }
69
72
 
70
73
  /* Invalid state */
71
74
  &[data-invalid="true"] {
72
75
  @apply status-invalid-field;
73
- background-color: var(--field-focus);
76
+ background-color: var(--number-field-group-bg-focus);
74
77
  border-color: var(--color-field-border-invalid);
75
78
  }
76
79
 
@@ -91,21 +94,21 @@
91
94
  */
92
95
  &:has([data-slot="number-field-input"]:-webkit-autofill),
93
96
  &:has([data-slot="number-field-input"]:autofill) {
94
- background-color: var(--field-focus);
97
+ background-color: var(--number-field-group-bg-focus);
95
98
  border-color: var(--field-border-focus);
96
99
  }
97
100
  }
98
101
 
99
- .number-field__input {
102
+ .rp-number-field__input {
100
103
  @apply min-w-0 rounded-none border-0 bg-transparent px-3 field-line-md tabular-nums shadow-none outline-none;
101
104
 
102
105
  /* Remove border radius on left side when decrement button is present */
103
- .number-field__group:has([slot="decrement"]) & {
106
+ .rp-number-field__group:has([slot="decrement"]) & {
104
107
  @apply rounded-s-none;
105
108
  }
106
109
 
107
110
  /* Remove border radius on right side when increment button is present */
108
- .number-field__group:has([slot="increment"]) & {
111
+ .rp-number-field__group:has([slot="increment"]) & {
109
112
  @apply rounded-e-none;
110
113
  }
111
114
 
@@ -118,7 +121,7 @@
118
121
  /**
119
122
  * Neutralize the browser's per-input autofill paint so the inner <input>
120
123
  * doesn't draw a sharp-cornered yellow rectangle. The unified highlight
121
- * is applied to `.number-field__group` above. Preserve the autofilled
124
+ * is applied to `.rp-number-field__group` above. Preserve the autofilled
122
125
  * text and caret colors, and pin the background-color transition so the
123
126
  * inset box-shadow trick doesn't flicker on state changes.
124
127
  */
@@ -135,17 +138,22 @@
135
138
  }
136
139
  }
137
140
 
138
- .number-field__increment-button,
139
- .number-field__decrement-button {
140
- @apply flex h-full w-10 items-center justify-center rounded-none bg-transparent text-field-foreground outline-none;
141
+ .rp-number-field__increment-button,
142
+ .rp-number-field__decrement-button {
143
+ @apply flex h-full w-10 items-center justify-center rounded-none text-field-foreground outline-none;
144
+
145
+ --number-field-button-bg: transparent;
146
+ --number-field-button-bg-pressed: color-mix(
147
+ in oklab,
148
+ var(--field-foreground, var(--foreground)) 10%,
149
+ transparent
150
+ );
151
+
152
+ background-color: var(--number-field-button-bg);
141
153
  border-width: var(--border-width-field);
142
154
  border-color: var(--field-border);
143
155
  border-style: solid;
144
156
 
145
- /**
146
- * Transitions
147
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
148
- */
149
157
  transition:
150
158
  background-color 150ms var(--ease-smooth),
151
159
  border-color 150ms var(--ease-smooth);
@@ -167,7 +175,7 @@
167
175
  /* Pressed state */
168
176
  &:active,
169
177
  &[data-pressed="true"] {
170
- @apply bg-field-foreground/10;
178
+ background-color: var(--number-field-button-bg-pressed);
171
179
  transform: scale(0.97);
172
180
  }
173
181
 
@@ -185,57 +193,37 @@
185
193
  }
186
194
  }
187
195
 
188
- .number-field__increment-button {
196
+ .rp-number-field__increment-button {
189
197
  @apply rounded-s-none rounded-e-field border-s border-field-placeholder/15;
190
198
  }
191
199
 
192
- .number-field__decrement-button {
200
+ .rp-number-field__decrement-button {
193
201
  @apply rounded-s-field rounded-e-none border-e border-field-placeholder/15;
194
202
  }
195
203
 
196
204
  /* Variant property definitions */
197
- .number-field--primary {
205
+ .rp-number-field--primary {
198
206
  /* Default styles */
199
207
  }
200
208
 
201
- .number-field--secondary .number-field__group {
209
+ .rp-number-field--secondary .rp-number-field__group {
202
210
  @apply shadow-none;
203
- background-color: var(--number-field-group-bg);
204
211
 
205
212
  --number-field-group-bg: var(--default);
206
213
  --number-field-group-bg-hover: var(--default-hover);
207
214
  --number-field-group-bg-focus: var(--default);
208
215
 
209
- @media (hover: hover) {
210
- &:hover:not(:focus-within),
211
- &[data-hovered="true"]:not([data-focus-within="true"]) {
212
- background-color: var(--number-field-group-bg-hover);
213
- }
214
- }
215
-
216
- &:focus-within,
217
- &[data-focus-within="true"] {
218
- background-color: var(--number-field-group-bg-focus);
219
- }
220
-
221
- /* Invalid state */
222
- &[data-invalid="true"] {
223
- @apply status-invalid-field;
224
- border-color: var(--color-field-border-invalid);
225
- background-color: var(--number-field-group-bg-focus);
226
- }
227
-
228
216
  [data-slot="number-field-input"] {
229
217
  @apply bg-transparent;
230
218
  }
231
219
  }
232
220
 
233
221
  /* Full width modifier */
234
- .number-field--full-width {
222
+ .rp-number-field--full-width {
235
223
  @apply w-full;
236
224
  }
237
225
 
238
- .number-field__group--full-width {
226
+ .rp-number-field__group--full-width {
239
227
  @apply w-full;
240
228
  }
241
229
 
@@ -244,8 +232,8 @@
244
232
  ========================================================================== */
245
233
 
246
234
  /* The stepper column stays 4px wider than the field is tall, as it is at `md`. */
247
- .number-field--sm {
248
- .number-field__group {
235
+ .rp-number-field--sm {
236
+ .rp-number-field__group {
249
237
  @apply h-8;
250
238
 
251
239
  &:has([slot="decrement"]) {
@@ -261,18 +249,18 @@
261
249
  }
262
250
  }
263
251
 
264
- .number-field__input {
252
+ .rp-number-field__input {
265
253
  @apply field-line-sm;
266
254
  }
267
255
 
268
- .number-field__increment-button,
269
- .number-field__decrement-button {
256
+ .rp-number-field__increment-button,
257
+ .rp-number-field__decrement-button {
270
258
  @apply w-9;
271
259
  }
272
260
  }
273
261
 
274
- .number-field--lg {
275
- .number-field__group {
262
+ .rp-number-field--lg {
263
+ .rp-number-field__group {
276
264
  @apply h-10;
277
265
 
278
266
  &:has([slot="decrement"]) {
@@ -288,12 +276,12 @@
288
276
  }
289
277
  }
290
278
 
291
- .number-field__input {
279
+ .rp-number-field__input {
292
280
  @apply field-line-lg;
293
281
  }
294
282
 
295
- .number-field__increment-button,
296
- .number-field__decrement-button {
283
+ .rp-number-field__increment-button,
284
+ .rp-number-field__decrement-button {
297
285
  @apply w-11;
298
286
  }
299
287
  }
@@ -1,61 +1,46 @@
1
- import type { VariantProps } from "tailwind-variants";
2
- export declare const paginationVariants: import("tailwind-variants").TVReturnType<{
3
- size: {
4
- lg: {
5
- base: string;
6
- };
7
- md: {
8
- base: string;
9
- };
10
- sm: {
11
- base: string;
12
- };
13
- };
14
- }, {
15
- base: string;
16
- content: string;
17
- ellipsis: string;
18
- item: string;
19
- link: string;
20
- summary: string;
21
- }, undefined, {
22
- size: {
23
- lg: {
24
- base: string;
25
- };
26
- md: {
27
- base: string;
28
- };
29
- sm: {
30
- base: string;
31
- };
32
- };
33
- }, {
34
- base: string;
35
- content: string;
36
- ellipsis: string;
37
- item: string;
38
- link: string;
39
- summary: string;
40
- }, import("tailwind-variants").TVReturnTypeLike<{
41
- size: {
42
- lg: {
43
- base: string;
44
- };
45
- md: {
46
- base: string;
47
- };
48
- sm: {
49
- base: string;
50
- };
51
- };
52
- }, {
53
- base: string;
54
- content: string;
55
- ellipsis: string;
56
- item: string;
57
- link: string;
58
- summary: string;
59
- }>>;
1
+ import type { VariantProps } from "../../tv";
2
+ export declare const paginationVariants: (props?: ({
3
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
4
+ } & {
5
+ isNav?: boolean | undefined;
6
+ size?: "lg" | "md" | "sm" | undefined;
7
+ }) | undefined) => {
8
+ base: (props?: ({
9
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
10
+ } & {
11
+ isNav?: boolean | undefined;
12
+ size?: "lg" | "md" | "sm" | undefined;
13
+ }) | undefined) => string;
14
+ content: (props?: ({
15
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
16
+ } & {
17
+ isNav?: boolean | undefined;
18
+ size?: "lg" | "md" | "sm" | undefined;
19
+ }) | undefined) => string;
20
+ ellipsis: (props?: ({
21
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
22
+ } & {
23
+ isNav?: boolean | undefined;
24
+ size?: "lg" | "md" | "sm" | undefined;
25
+ }) | undefined) => string;
26
+ item: (props?: ({
27
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
28
+ } & {
29
+ isNav?: boolean | undefined;
30
+ size?: "lg" | "md" | "sm" | undefined;
31
+ }) | undefined) => string;
32
+ link: (props?: ({
33
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
34
+ } & {
35
+ isNav?: boolean | undefined;
36
+ size?: "lg" | "md" | "sm" | undefined;
37
+ }) | undefined) => string;
38
+ summary: (props?: ({
39
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
40
+ } & {
41
+ isNav?: boolean | undefined;
42
+ size?: "lg" | "md" | "sm" | undefined;
43
+ }) | undefined) => string;
44
+ };
60
45
  export type PaginationVariants = VariantProps<typeof paginationVariants>;
61
46
  //# sourceMappingURL=pagination.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.styles.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/pagination.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,kBAAkB;;QAczB,EAAE;YACA,IAAI;;QAEN,EAAE;YACA,IAAI;;QAEN,EAAE;YACA,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIV,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"pagination.styles.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/pagination.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -1,20 +1,27 @@
1
- import { tv } from "tailwind-variants";
1
+ import { tv } from "../../tv.js";
2
2
  //#region src/components/pagination/pagination.styles.ts
3
3
  const paginationVariants = tv({
4
4
  defaultVariants: { size: "md" },
5
5
  slots: {
6
- base: "pagination",
7
- content: "pagination__content",
8
- ellipsis: "pagination__ellipsis",
9
- item: "pagination__item",
10
- link: "pagination__link",
11
- summary: "pagination__summary"
6
+ base: "rp-pagination",
7
+ content: "rp-pagination__content",
8
+ ellipsis: "rp-pagination__ellipsis",
9
+ item: "rp-pagination__item",
10
+ link: "rp-pagination__link",
11
+ summary: "rp-pagination__summary"
12
12
  },
13
- variants: { size: {
14
- lg: { base: "pagination--lg" },
15
- md: { base: "pagination--md" },
16
- sm: { base: "pagination--sm" }
17
- } }
13
+ variants: {
14
+ /** A previous/next control rather than a page number, which sizes and spaces differently. */
15
+ isNav: {
16
+ false: {},
17
+ true: { link: "rp-pagination__link--nav" }
18
+ },
19
+ size: {
20
+ lg: { base: "rp-pagination--lg" },
21
+ md: { base: "rp-pagination--md" },
22
+ sm: { base: "rp-pagination--sm" }
23
+ }
24
+ }
18
25
  });
19
26
  //#endregion
20
27
  export { paginationVariants };
@@ -3,35 +3,31 @@
3
3
  ========================================================================== */
4
4
 
5
5
  /* Base styles */
6
- .pagination {
6
+ .rp-pagination {
7
7
  @apply flex w-full flex-col items-center justify-between gap-4 sm:flex-row;
8
8
  }
9
9
 
10
10
  /* Summary - left side info container */
11
- .pagination__summary {
11
+ .rp-pagination__summary {
12
12
  @apply flex items-center gap-2 self-start text-sm text-muted sm:self-center;
13
13
  }
14
14
 
15
15
  /* Content - container for pagination items */
16
- .pagination__content {
16
+ .rp-pagination__content {
17
17
  @apply flex items-center gap-1 self-start sm:self-center;
18
18
  }
19
19
 
20
20
  /* Item - list item wrapper */
21
- .pagination__item {
21
+ .rp-pagination__item {
22
22
  @apply inline-flex;
23
23
  }
24
24
 
25
25
  /* Link - page number button (ghost button style) */
26
- .pagination__link {
26
+ .rp-pagination__link {
27
27
  @apply relative isolate inline-flex size-8 origin-center items-center justify-center rounded-component text-sm font-medium whitespace-nowrap outline-none select-none no-highlight;
28
28
 
29
29
  cursor: var(--cursor-interactive);
30
30
 
31
- /**
32
- * Transitions
33
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
34
- */
35
31
  transition:
36
32
  transform 250ms var(--ease-smooth),
37
33
  background-color 100ms var(--ease-out),
@@ -87,12 +83,12 @@
87
83
  }
88
84
 
89
85
  /* Ellipsis */
90
- .pagination__ellipsis {
86
+ .rp-pagination__ellipsis {
91
87
  @apply inline-flex size-8 items-center justify-center text-sm text-muted select-none;
92
88
  }
93
89
 
94
90
  /* Navigation buttons (Previous / Next) */
95
- .pagination__link--nav {
91
+ .rp-pagination__link--nav {
96
92
  @apply w-auto gap-1.5 px-2.5;
97
93
 
98
94
  & [data-slot="pagination-previous-icon"],
@@ -105,8 +101,8 @@
105
101
  Size variants
106
102
  ========================================================================== */
107
103
 
108
- .pagination--sm {
109
- .pagination__link {
104
+ .rp-pagination--sm {
105
+ .rp-pagination__link {
110
106
  @apply size-7 text-xs;
111
107
 
112
108
  &:active,
@@ -115,25 +111,25 @@
115
111
  }
116
112
  }
117
113
 
118
- .pagination__link--nav {
114
+ .rp-pagination__link--nav {
119
115
  @apply w-auto px-2;
120
116
  }
121
117
 
122
- .pagination__ellipsis {
118
+ .rp-pagination__ellipsis {
123
119
  @apply size-7 text-xs;
124
120
  }
125
121
 
126
- .pagination__summary {
122
+ .rp-pagination__summary {
127
123
  @apply text-xs;
128
124
  }
129
125
  }
130
126
 
131
- .pagination--md {
127
+ .rp-pagination--md {
132
128
  /* No styles as this is the default size */
133
129
  }
134
130
 
135
- .pagination--lg {
136
- .pagination__link {
131
+ .rp-pagination--lg {
132
+ .rp-pagination__link {
137
133
  @apply size-9 text-base;
138
134
 
139
135
  &:active,
@@ -142,15 +138,15 @@
142
138
  }
143
139
  }
144
140
 
145
- .pagination__link--nav {
141
+ .rp-pagination__link--nav {
146
142
  @apply w-auto px-3;
147
143
  }
148
144
 
149
- .pagination__ellipsis {
145
+ .rp-pagination__ellipsis {
150
146
  @apply size-9 text-base;
151
147
  }
152
148
 
153
- .pagination__summary {
149
+ .rp-pagination__summary {
154
150
  @apply text-base;
155
151
  }
156
152
  }
@@ -1,46 +1,19 @@
1
- import type { VariantProps } from "tailwind-variants";
2
- export declare const popoverVariants: import("tailwind-variants").TVReturnType<{
3
- [key: string]: {
4
- [key: string]: {
5
- base?: import("tailwind-variants").ClassValue;
6
- dialog?: import("tailwind-variants").ClassValue;
7
- heading?: import("tailwind-variants").ClassValue;
8
- trigger?: import("tailwind-variants").ClassValue;
9
- } | import("tailwind-variants").ClassValue;
10
- };
11
- } | {
12
- [x: string]: {
13
- [x: string]: {
14
- base?: import("tailwind-variants").ClassValue;
15
- dialog?: import("tailwind-variants").ClassValue;
16
- heading?: import("tailwind-variants").ClassValue;
17
- trigger?: import("tailwind-variants").ClassValue;
18
- } | import("tailwind-variants").ClassValue;
19
- };
20
- } | {}, {
21
- base: string;
22
- dialog: string;
23
- heading: string;
24
- trigger: string;
25
- }, undefined, {
26
- [key: string]: {
27
- [key: string]: {
28
- base?: import("tailwind-variants").ClassValue;
29
- dialog?: import("tailwind-variants").ClassValue;
30
- heading?: import("tailwind-variants").ClassValue;
31
- trigger?: import("tailwind-variants").ClassValue;
32
- } | import("tailwind-variants").ClassValue;
33
- };
34
- } | {}, {
35
- base: string;
36
- dialog: string;
37
- heading: string;
38
- trigger: string;
39
- }, import("tailwind-variants").TVReturnTypeLike<unknown, {
40
- base: string;
41
- dialog: string;
42
- heading: string;
43
- trigger: string;
44
- }>>;
1
+ import type { VariantProps } from "../../tv";
2
+ export declare const popoverVariants: (props?: ({
3
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
4
+ } & object) | undefined) => {
5
+ base: (props?: ({
6
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
7
+ } & object) | undefined) => string;
8
+ dialog: (props?: ({
9
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
10
+ } & object) | undefined) => string;
11
+ heading: (props?: ({
12
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
13
+ } & object) | undefined) => string;
14
+ trigger: (props?: ({
15
+ class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
16
+ } & object) | undefined) => string;
17
+ };
45
18
  export type PopoverVariants = VariantProps<typeof popoverVariants>;
46
19
  //# sourceMappingURL=popover.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.styles.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAO1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"popover.styles.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;CAO1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -1,10 +1,10 @@
1
- import { tv } from "tailwind-variants";
1
+ import { tv } from "../../tv.js";
2
2
  //#region src/components/popover/popover.styles.ts
3
3
  const popoverVariants = tv({ slots: {
4
- base: "popover",
5
- dialog: "popover__dialog",
6
- heading: "popover__heading",
7
- trigger: "popover__trigger"
4
+ base: "rp-popover",
5
+ dialog: "rp-popover__dialog",
6
+ heading: "rp-popover__heading",
7
+ trigger: "rp-popover__trigger"
8
8
  } });
9
9
  //#endregion
10
10
  export { popoverVariants };
@@ -1,7 +1,7 @@
1
1
  /* Popover component styles */
2
2
 
3
3
  /* Base popover styles */
4
- .popover {
4
+ .rp-popover {
5
5
  @apply origin-(--trigger-anchor-point) bg-overlay p-0 text-sm;
6
6
  border-radius: min(32px, var(--component-radius));
7
7
  box-shadow: var(--shadow-overlay);
@@ -72,23 +72,19 @@
72
72
  }
73
73
 
74
74
  /* Popover dialog */
75
- .popover__dialog {
75
+ .rp-popover__dialog {
76
76
  @apply p-4 outline-none;
77
77
  }
78
78
 
79
79
  /* Popover heading */
80
- .popover__heading {
80
+ .rp-popover__heading {
81
81
  @apply font-medium;
82
82
  }
83
83
 
84
84
  /* Popover trigger */
85
- .popover__trigger {
85
+ .rp-popover__trigger {
86
86
  @apply inline-block;
87
87
 
88
- /**
89
- * Transitions
90
- * CRITICAL: motion-reduce must be AFTER transition for correct override specificity
91
- */
92
88
  transition:
93
89
  color 150ms var(--ease-smooth),
94
90
  background-color 150ms var(--ease-smooth),