@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
@@ -6,7 +6,7 @@
6
6
  Table Root — Outer container for table + optional footer.
7
7
  Primary variant: gray background with the table body as a white card inside.
8
8
  -------------------------------------------------------------------------- */
9
- .table-root {
9
+ .rp-table-root {
10
10
  @apply relative grid w-full overflow-clip;
11
11
  grid-template-columns: minmax(0, 1fr);
12
12
  }
@@ -17,14 +17,15 @@
17
17
  minmax(0, 1fr) creates a hard width boundary that table layout
18
18
  cannot push beyond.
19
19
  -------------------------------------------------------------------------- */
20
- .table__scroll-container {
20
+ .rp-table__scroll-container {
21
21
  @apply scrollbar overflow-x-auto;
22
22
  scrollbar-gutter: auto;
23
23
  }
24
24
 
25
- .table-root--primary {
25
+ .rp-table-root--primary {
26
26
  @apply bg-surface-secondary px-1 pb-1;
27
- border-radius: min(32px, calc(var(--radius) * 2.5));
27
+
28
+ border-radius: min(32px, var(--component-radius));
28
29
 
29
30
  /* Forced Colors Mode flattens the fill onto the page and strips the shadow, so the container
30
31
  * stops having any shape and its contents sit loose on the page. */
@@ -34,45 +35,45 @@
34
35
  }
35
36
  }
36
37
 
37
- .table-root--secondary {
38
+ .rp-table-root--secondary {
38
39
  /* No background, padding, or rounding on the root */
39
40
  }
40
41
 
41
42
  /* Secondary: header is a standalone rounded card.
42
43
  Background is on cells (not <thead>) because Firefox does not support */
43
- .table-root--secondary .table__header {
44
+ .rp-table-root--secondary .rp-table__header {
44
45
  @apply border-b-0 bg-transparent;
45
46
  }
46
47
 
47
- .table-root--secondary .table__column {
48
+ .rp-table-root--secondary .rp-table__column {
48
49
  @apply bg-surface-secondary;
49
50
  }
50
51
 
51
52
  /* Round only the truly first/last column header.
52
53
  Non-virtualized: column is a <th> child of <tr>.
53
54
  Virtualized: column is wrapped in a `VirtualizerItem` (role="presentation") so
54
- `:first-child` / `:last-child` on `.table__column` would match every column
55
+ `:first-child` / `:last-child` on `.rp-table__column` would match every column
55
56
  (each is the only child of its wrapper). Walk up to the row instead. */
56
- .table-root--secondary
57
+ .rp-table-root--secondary
57
58
  :is(
58
- th.table__column:first-child,
59
- [role="row"] > [role="presentation"]:first-of-type > .table__column
59
+ th.rp-table__column:first-child,
60
+ [role="row"] > [role="presentation"]:first-of-type > .rp-table__column
60
61
  ) {
61
- border-start-start-radius: min(32px, var(--radius-2xl));
62
- border-end-start-radius: min(32px, var(--radius-2xl));
62
+ border-start-start-radius: min(32px, var(--component-radius));
63
+ border-end-start-radius: min(32px, var(--component-radius));
63
64
  }
64
65
 
65
- .table-root--secondary
66
+ .rp-table-root--secondary
66
67
  :is(
67
- th.table__column:last-child,
68
- [role="row"] > [role="presentation"]:last-of-type > .table__column
68
+ th.rp-table__column:last-child,
69
+ [role="row"] > [role="presentation"]:last-of-type > .rp-table__column
69
70
  ) {
70
- border-start-end-radius: min(32px, var(--radius-2xl));
71
- border-end-end-radius: min(32px, var(--radius-2xl));
71
+ border-start-end-radius: min(32px, var(--component-radius));
72
+ border-end-end-radius: min(32px, var(--component-radius));
72
73
  }
73
74
 
74
75
  /* Secondary: body has no shadow or rounded corners */
75
- .table-root--secondary .table__body {
76
+ .rp-table-root--secondary .rp-table__body {
76
77
  @apply shadow-none;
77
78
 
78
79
  /* Non-virtualized */
@@ -83,50 +84,51 @@
83
84
  @apply rounded-none;
84
85
  }
85
86
 
86
- /* Virtualized: undo the rounding applied by .table__body:not(tbody) */
87
+ /* Virtualized: undo the rounding applied by .rp-table__body:not(tbody) */
87
88
  &:not(tbody) {
88
89
  @apply overflow-visible rounded-none;
89
90
  }
90
91
  }
91
92
 
92
93
  /* Secondary: rows are transparent and keep bottom border on every row */
93
- .table-root--secondary .table__row {
94
- .table__cell {
95
- @apply border-b border-separator-tertiary/50 bg-transparent;
96
- }
94
+ .rp-table-root--secondary .rp-table__row {
95
+ .rp-table__cell {
96
+ @apply border-b border-separator-tertiary/50;
97
97
 
98
- @media (hover: hover) {
99
- &:hover .table__cell,
100
- &[data-hovered="true"] .table__cell {
101
- @apply bg-default/50;
102
- }
98
+ --table-cell-bg: transparent;
99
+ --table-cell-bg-hover: color-mix(in oklab, var(--state-layer) 50%, transparent);
103
100
  }
104
101
  }
105
102
 
106
103
  /* --------------------------------------------------------------------------
107
104
  Table Content (<table> element) — the white card inside the root
108
105
  -------------------------------------------------------------------------- */
109
- .table__content {
106
+ .rp-table__content {
110
107
  @apply w-full border-separate border-spacing-0 text-sm;
111
108
  }
112
109
 
113
110
  /* Primary variant: table gets the white surface card look */
114
- .table-root--primary .table__content {
111
+ .rp-table-root--primary .rp-table__content {
115
112
  @apply overflow-clip;
116
113
  }
117
114
 
118
115
  /* --------------------------------------------------------------------------
119
116
  Table Header (<thead>)
120
117
  -------------------------------------------------------------------------- */
121
- .table__header {
118
+ .rp-table__header {
122
119
  @apply border-b border-separator/50 bg-surface-secondary;
123
120
  }
124
121
 
125
122
  /* --------------------------------------------------------------------------
126
123
  Table Column (<th>)
127
124
  -------------------------------------------------------------------------- */
128
- .table__column {
129
- @apply relative px-4 py-2.5 text-start text-xs font-medium text-muted;
125
+ .rp-table__column {
126
+ @apply relative px-4 py-2.5 text-start text-xs font-medium;
127
+
128
+ --table-column-fg: var(--muted);
129
+ --table-column-fg-hover: var(--foreground);
130
+
131
+ color: var(--table-column-fg);
130
132
 
131
133
  /* Separator between columns — a short vertical line on the right edge */
132
134
  &::after {
@@ -138,6 +140,13 @@
138
140
  content: none;
139
141
  }
140
142
 
143
+ /* A column holding nothing but the select-all box has no heading for the line to divide from
144
+ * the next one, and where the end padding is collapsed it lands on the box's own edge and
145
+ * reads as a border the box grew. */
146
+ &:has(> .rp-checkbox:only-child)::after {
147
+ content: none;
148
+ }
149
+
141
150
  /* Sortable columns */
142
151
  &[data-allows-sorting="true"] {
143
152
  cursor: var(--cursor-interactive);
@@ -146,7 +155,7 @@
146
155
  @media (hover: hover) {
147
156
  &[data-allows-sorting="true"]:hover,
148
157
  &[data-allows-sorting="true"][data-hovered="true"] {
149
- @apply text-foreground;
158
+ color: var(--table-column-fg-hover);
150
159
  }
151
160
  }
152
161
 
@@ -159,9 +168,9 @@
159
168
  }
160
169
 
161
170
  /* Virtualized: each column is wrapped in a `VirtualizerItem` (role="presentation"),
162
- so `.table__column:last-child:not(:only-child)::after` above never matches.
171
+ so `.rp-table__column:last-child:not(:only-child)::after` above never matches.
163
172
  Hide the trailing separator on the rightmost wrapper instead. */
164
- [role="row"] > [role="presentation"]:last-of-type:not(:only-of-type) > .table__column::after {
173
+ [role="row"] > [role="presentation"]:last-of-type:not(:only-of-type) > .rp-table__column::after {
165
174
  content: none;
166
175
  }
167
176
 
@@ -169,7 +178,7 @@
169
178
  Sortable Column Header — wraps the column label and an optional indicator
170
179
  icon. Rendered inside a sortable `Table.Column`'s render prop callback.
171
180
  -------------------------------------------------------------------------- */
172
- .table__sortable-column-header {
181
+ .rp-table__sortable-column-header {
173
182
  @apply flex items-center justify-between;
174
183
  }
175
184
 
@@ -177,7 +186,7 @@
177
186
  Sortable Column Indicator — chevron that flips based on `data-direction`.
178
187
  Defaults to pointing up (ascending) and rotates 180° for descending.
179
188
  -------------------------------------------------------------------------- */
180
- .table__sortable-column-indicator {
189
+ .rp-table__sortable-column-indicator {
181
190
  @apply inline-grid size-3 transform place-content-center transition-transform duration-100 ease-out;
182
191
 
183
192
  &[data-direction="descending"] {
@@ -188,21 +197,21 @@
188
197
  /* --------------------------------------------------------------------------
189
198
  Table Body (<tbody>)
190
199
  -------------------------------------------------------------------------- */
191
- .table__body {
200
+ .rp-table__body {
192
201
  /* Non-virtualized: round corners via first/last cells
193
202
  (border-radius on <tbody> itself has no effect).
194
203
  Logical properties so corners follow `dir` in RTL. */
195
204
  & tr:first-child td:first-child {
196
- border-start-start-radius: min(32px, var(--radius-2xl));
205
+ border-start-start-radius: min(32px, var(--component-radius));
197
206
  }
198
207
  & tr:first-child td:last-child {
199
- border-start-end-radius: min(32px, var(--radius-2xl));
208
+ border-start-end-radius: min(32px, var(--component-radius));
200
209
  }
201
210
  & tr:last-child td:first-child {
202
- border-end-start-radius: min(32px, var(--radius-2xl));
211
+ border-end-start-radius: min(32px, var(--component-radius));
203
212
  }
204
213
  & tr:last-child td:last-child {
205
- border-end-end-radius: min(32px, var(--radius-2xl));
214
+ border-end-end-radius: min(32px, var(--component-radius));
206
215
  }
207
216
 
208
217
  /* Virtualized: elements are divs, not tr/td, and only a window of the rows
@@ -210,14 +219,14 @@
210
219
  than the table's. Round the body itself and clip overflow instead. */
211
220
  &:not(tbody) {
212
221
  @apply relative h-full overflow-clip;
213
- border-radius: min(32px, var(--radius-2xl));
222
+ border-radius: min(32px, var(--component-radius));
214
223
  }
215
224
  }
216
225
 
217
226
  /* --------------------------------------------------------------------------
218
227
  Table Row (<tr>)
219
228
  -------------------------------------------------------------------------- */
220
- .table__row {
229
+ .rp-table__row {
221
230
  @apply relative h-full;
222
231
 
223
232
  /* Bottom separator */
@@ -230,25 +239,35 @@
230
239
 
231
240
  /* Hover state — applied to cells so Firefox clips bg to border-radius */
232
241
  @media (hover: hover) {
233
- &:hover .table__cell,
234
- &[data-hovered="true"] .table__cell {
235
- @apply bg-surface/40;
242
+ &:hover .rp-table__cell,
243
+ &[data-hovered="true"] .rp-table__cell {
244
+ background-color: var(--table-cell-bg-hover);
236
245
  }
237
246
  }
238
247
 
239
248
  /* Selected state */
240
- &[data-selected="true"] .table__cell {
241
- @apply bg-surface/10;
249
+ &[data-selected="true"] .rp-table__cell {
250
+ background-color: var(--table-cell-bg-selected);
251
+
242
252
  @apply forced-selected;
243
253
  }
244
254
 
255
+ /* A selected row still answers the pointer. Without this the rule above swallows the hover -
256
+ * it is later and equally specific, so the row that is both reads as merely selected. */
257
+ @media (hover: hover) {
258
+ &[data-selected="true"]:hover .rp-table__cell,
259
+ &[data-selected="true"][data-hovered="true"] .rp-table__cell {
260
+ background-color: var(--table-cell-bg-selected-hover);
261
+ }
262
+ }
263
+
245
264
  /* Disabled state */
246
265
  &[aria-disabled="true"],
247
266
  &[data-disabled="true"] {
248
267
  @apply status-disabled;
249
268
  }
250
269
 
251
- /* Row focus ring: see “Table row focus ring” block below (after `.table__cell`). */
270
+ /* Row focus ring: see “Table row focus ring” block below (after `.rp-table__cell`). */
252
271
  &:focus-visible,
253
272
  &[data-focus-visible="true"] {
254
273
  @apply outline-none;
@@ -260,16 +279,26 @@
260
279
  }
261
280
 
262
281
  /* Drop target state */
263
- &[data-drop-target="true"] .table__cell {
264
- @apply bg-accent-soft;
282
+ &[data-drop-target="true"] .rp-table__cell {
283
+ background-color: var(--table-cell-bg-drop-target);
265
284
  }
266
285
  }
267
286
 
268
287
  /* --------------------------------------------------------------------------
269
288
  Table Cell (<td>)
270
289
  -------------------------------------------------------------------------- */
271
- .table__cell {
272
- @apply h-full bg-surface px-4 py-3 align-middle text-sm text-foreground;
290
+ .rp-table__cell {
291
+ @apply h-full px-4 py-3 align-middle text-sm text-foreground;
292
+
293
+ /* The row's fill, per state, declared on the cell because that is what paints — Firefox clips a
294
+ * row's own background outside the border radius. `.rp-table-root--secondary` re-points two. */
295
+ --table-cell-bg: var(--surface);
296
+ --table-cell-bg-hover: var(--surface-hover);
297
+ --table-cell-bg-selected: var(--accent-soft);
298
+ --table-cell-bg-selected-hover: var(--accent-soft-hover);
299
+ --table-cell-bg-drop-target: var(--accent-soft);
300
+
301
+ background-color: var(--table-cell-bg);
273
302
 
274
303
  @apply border-b border-separator-tertiary/50;
275
304
 
@@ -281,69 +310,118 @@
281
310
  }
282
311
  }
283
312
 
313
+ /* Virtualized, a cell is a div: `align-middle` above says nothing to one, and block layout pins
314
+ * its content under the top padding, so anything taller than the content box of a row whose
315
+ * height the layout fixed hangs off the bottom. Flex is what centring costs a div. */
316
+ .rp-table__cell:not(td) {
317
+ @apply flex items-center;
318
+ }
319
+
284
320
  /* --------------------------------------------------------------------------
285
- Table row focus ring — must follow `.table__cell` (cascade). One continuous
286
- inset ring split across cells; `:is(.table__cell, .table__column)` + direct vs
321
+ Table row focus ring — must follow `.rp-table__cell` (cascade). One continuous
322
+ inset ring split across cells; `:is(.rp-table__cell, .rp-table__column)` + direct vs
287
323
  `> *:…` covers virtualized wrappers. `:is(:focus-visible, [data-focus-visible])`
288
324
  matches row keyboard focus from RAC.
289
325
  -------------------------------------------------------------------------- */
290
- .table__row:is(:focus-visible, [data-focus-visible="true"]) :is(.table__cell, .table__column) {
326
+ .rp-table__row:is(:focus-visible, [data-focus-visible="true"])
327
+ :is(.rp-table__cell, .rp-table__column) {
291
328
  @apply shadow-none;
292
329
  }
293
330
 
294
- .table__row:is(:focus-visible, [data-focus-visible="true"])
295
- > :is(.table__cell, .table__column):only-child,
296
- .table__row:is(:focus-visible, [data-focus-visible="true"])
331
+ .rp-table__row:is(:focus-visible, [data-focus-visible="true"])
332
+ > :is(.rp-table__cell, .rp-table__column):only-child,
333
+ .rp-table__row:is(:focus-visible, [data-focus-visible="true"])
297
334
  > *:only-child
298
- :is(.table__cell, .table__column) {
335
+ :is(.rp-table__cell, .rp-table__column) {
299
336
  @apply rounded-lg shadow-[inset_0_0_0_2px_var(--focus)] outline-none;
300
337
  }
301
338
 
302
- .table__row:is(:focus-visible, [data-focus-visible="true"])
303
- > :is(.table__cell, .table__column):first-child:not(:only-child),
304
- .table__row:is(:focus-visible, [data-focus-visible="true"])
339
+ .rp-table__row:is(:focus-visible, [data-focus-visible="true"])
340
+ > :is(.rp-table__cell, .rp-table__column):first-child:not(:only-child),
341
+ .rp-table__row:is(:focus-visible, [data-focus-visible="true"])
305
342
  > *:first-child:not(:only-child)
306
- :is(.table__cell, .table__column) {
343
+ :is(.rp-table__cell, .rp-table__column) {
307
344
  @apply rounded-s-lg shadow-[inset_2px_0_0_0_var(--focus),inset_0_2px_0_0_var(--focus),inset_0_-2px_0_0_var(--focus)] outline-none;
308
345
  }
309
346
 
310
- .table__row:is(:focus-visible, [data-focus-visible="true"])
311
- > :is(.table__cell, .table__column):last-child:not(:only-child),
312
- .table__row:is(:focus-visible, [data-focus-visible="true"])
347
+ .rp-table__row:is(:focus-visible, [data-focus-visible="true"])
348
+ > :is(.rp-table__cell, .rp-table__column):last-child:not(:only-child),
349
+ .rp-table__row:is(:focus-visible, [data-focus-visible="true"])
313
350
  > *:last-child:not(:only-child)
314
- :is(.table__cell, .table__column) {
351
+ :is(.rp-table__cell, .rp-table__column) {
315
352
  @apply rounded-e-lg shadow-[inset_-2px_0_0_0_var(--focus),inset_0_2px_0_0_var(--focus),inset_0_-2px_0_0_var(--focus)] outline-none;
316
353
  }
317
354
 
318
- .table__row:is(:focus-visible, [data-focus-visible="true"])
319
- > :is(.table__cell, .table__column):not(:first-child):not(:last-child):not(:only-child),
320
- .table__row:is(:focus-visible, [data-focus-visible="true"])
355
+ .rp-table__row:is(:focus-visible, [data-focus-visible="true"])
356
+ > :is(.rp-table__cell, .rp-table__column):not(:first-child):not(:last-child):not(:only-child),
357
+ .rp-table__row:is(:focus-visible, [data-focus-visible="true"])
321
358
  > *:not(:first-child):not(:last-child):not(:only-child)
322
- :is(.table__cell, .table__column) {
359
+ :is(.rp-table__cell, .rp-table__column) {
323
360
  @apply shadow-[inset_0_2px_0_0_var(--focus),inset_0_-2px_0_0_var(--focus)] outline-none;
324
361
  }
325
362
 
363
+ /* --------------------------------------------------------------------------
364
+ Drop indicator — the gap between two rows a drop would land in.
365
+ Styled here rather than left to the caller because a windowed collection
366
+ renders its own: `TableBody` produces one per row it has laid out, and
367
+ markup written in the row slot cannot reach them.
368
+ -------------------------------------------------------------------------- */
369
+ .rp-table__drop-indicator {
370
+ --table-drop-indicator-size: 2px;
371
+ --table-drop-indicator-bg: var(--accent);
372
+ }
373
+
374
+ /* Windowed, the layout has already placed it: a band straddling the boundary, out of flow. */
375
+ .rp-table__drop-indicator:not(tr) {
376
+ height: var(--table-drop-indicator-size);
377
+
378
+ &[data-drop-target="true"] {
379
+ background-color: var(--table-drop-indicator-bg);
380
+ }
381
+ }
382
+
383
+ /* In flow, as a real row, it has to take no height at all. A row that occupies the thickness
384
+ * steps every row below it down, and since the gap moves with the pointer the whole table walks
385
+ * about under a drag. So the cell paints the line instead, lifted half a thickness onto the
386
+ * boundary — which is where the windowed one straddles too, so the two read alike. */
387
+ tr.rp-table__drop-indicator {
388
+ height: 0;
389
+
390
+ > td {
391
+ position: relative;
392
+ }
393
+
394
+ &[data-drop-target="true"] > td::after {
395
+ content: "";
396
+ position: absolute;
397
+ inset-inline: 0;
398
+ top: calc(var(--table-drop-indicator-size) / -2);
399
+ height: var(--table-drop-indicator-size);
400
+ background-color: var(--table-drop-indicator-bg);
401
+ }
402
+ }
403
+
326
404
  /* --------------------------------------------------------------------------
327
405
  Tree / expandable rows — indent the tree column by depth (any level).
328
406
  React Aria sets `--table-row-level` (1-based) on each body row and
329
407
  `data-level` on cells; tree column cells expose `[data-tree-column]`.
330
408
  The row custom property inherits onto cells (1rem per level).
331
409
  -------------------------------------------------------------------------- */
332
- .table__cell[data-tree-column] {
410
+ .rp-table__cell[data-tree-column] {
333
411
  padding-inline-start: calc(1rem * var(--table-row-level, 1));
334
412
  }
335
413
 
336
414
  /* --------------------------------------------------------------------------
337
415
  Table Footer (div outside <table>, sits on gray bg)
338
416
  -------------------------------------------------------------------------- */
339
- .table__footer {
417
+ .rp-table__footer {
340
418
  @apply flex items-center px-4 py-2.5;
341
419
  }
342
420
 
343
421
  /* --------------------------------------------------------------------------
344
422
  Resizable Container — wraps table to enable column resizing via React Aria.
345
423
  -------------------------------------------------------------------------- */
346
- .table__resizable-container {
424
+ .rp-table__resizable-container {
347
425
  @apply relative scrollbar overflow-auto;
348
426
  scrollbar-gutter: auto;
349
427
  }
@@ -352,31 +430,44 @@
352
430
  Column Resizer — drag handle between resizable columns.
353
431
  Replaces the ::after separator when present.
354
432
  -------------------------------------------------------------------------- */
355
- .table__column-resizer {
433
+ .rp-table__column-resizer {
356
434
  /* Match the ::after separator: absolute, right edge, short vertical line */
357
- @apply absolute end-0 top-1/2 h-4 w-px -translate-y-1/2 rounded-sm bg-separator;
435
+ @apply absolute end-0 top-1/2 h-4 w-px -translate-y-1/2 rounded-sm;
358
436
  /* Make it interactive — wider hit area with transparent padding */
359
437
  @apply box-content translate-x-1/2 cursor-col-resize touch-none px-2;
360
438
  /* Reset appearance */
361
439
  @apply border-none bg-clip-content outline-none;
362
440
 
441
+ --table-resizer-bg: var(--separator);
442
+ --table-resizer-bg-hover: var(--accent);
443
+ --table-resizer-bg-resizing: var(--table-resizer-bg-hover);
444
+ --table-resizer-bg-focus-visible: var(--focus);
445
+
446
+ background-color: var(--table-resizer-bg);
447
+
363
448
  &[data-hovered="true"],
364
449
  &:hover {
365
- @apply h-full w-0.5 bg-accent;
450
+ @apply h-full w-0.5;
451
+
452
+ background-color: var(--table-resizer-bg-hover);
366
453
  }
367
454
 
368
455
  &[data-resizing="true"] {
369
- @apply h-full w-0.5 bg-accent;
456
+ @apply h-full w-0.5;
457
+
458
+ background-color: var(--table-resizer-bg-resizing);
370
459
  }
371
460
 
372
461
  &[data-focus-visible="true"],
373
462
  &:focus-visible {
374
- @apply h-full w-0.5 bg-focus;
463
+ @apply h-full w-0.5;
464
+
465
+ background-color: var(--table-resizer-bg-focus-visible);
375
466
  }
376
467
  }
377
468
 
378
469
  /* Hide the ::after separator when a resizer is present in the column */
379
- .table__column:has(.table__column-resizer)::after {
470
+ .rp-table__column:has(.rp-table__column-resizer)::after {
380
471
  content: none;
381
472
  }
382
473
 
@@ -385,7 +476,7 @@
385
476
  Non-virtualized: <tr> with <td colSpan=N> inside.
386
477
  Virtualized: <div> with <div role="rowheader"> inside.
387
478
  -------------------------------------------------------------------------- */
388
- .table__load-more {
479
+ .rp-table__load-more {
389
480
  & td,
390
481
  & [role="rowheader"] {
391
482
  @apply py-3 text-center;
@@ -399,6 +490,6 @@
399
490
  Load More Content — styled container for the loading indicator inside
400
491
  the load-more sentinel row.
401
492
  -------------------------------------------------------------------------- */
402
- .table__load-more-content {
493
+ .rp-table__load-more-content {
403
494
  @apply flex items-center justify-center gap-2 py-2;
404
495
  }
@@ -1,59 +1,60 @@
1
- import type { VariantProps } from "tailwind-variants";
2
- export declare const tabsVariants: import("tailwind-variants").TVReturnType<{
3
- variant: {
4
- primary: {};
5
- secondary: {
6
- base: string;
7
- };
8
- };
9
- }, {
10
- base: string;
11
- scrollNext: string;
12
- scrollPrev: string;
13
- scroller: string;
14
- separator: string;
15
- tab: string;
16
- tabIndicator: string;
17
- tabList: string;
18
- tabListContainer: string;
19
- tabPanel: string;
20
- }, undefined, {
21
- variant: {
22
- primary: {};
23
- secondary: {
24
- base: string;
25
- };
26
- };
27
- }, {
28
- base: string;
29
- scrollNext: string;
30
- scrollPrev: string;
31
- scroller: string;
32
- separator: string;
33
- tab: string;
34
- tabIndicator: string;
35
- tabList: string;
36
- tabListContainer: string;
37
- tabPanel: string;
38
- }, import("tailwind-variants").TVReturnTypeLike<{
39
- variant: {
40
- primary: {};
41
- secondary: {
42
- base: string;
43
- };
44
- };
45
- }, {
46
- base: string;
47
- scrollNext: string;
48
- scrollPrev: string;
49
- scroller: string;
50
- separator: string;
51
- tab: string;
52
- tabIndicator: string;
53
- tabList: string;
54
- tabListContainer: string;
55
- tabPanel: string;
56
- }>>;
1
+ import type { VariantProps } from "../../tv";
2
+ export declare const tabsVariants: (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
+ variant?: "primary" | "secondary" | undefined;
6
+ }) | undefined) => {
7
+ base: (props?: ({
8
+ 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;
9
+ } & {
10
+ variant?: "primary" | "secondary" | undefined;
11
+ }) | undefined) => string;
12
+ scrollNext: (props?: ({
13
+ 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;
14
+ } & {
15
+ variant?: "primary" | "secondary" | undefined;
16
+ }) | undefined) => string;
17
+ scrollPrev: (props?: ({
18
+ 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;
19
+ } & {
20
+ variant?: "primary" | "secondary" | undefined;
21
+ }) | undefined) => string;
22
+ scroller: (props?: ({
23
+ 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;
24
+ } & {
25
+ variant?: "primary" | "secondary" | undefined;
26
+ }) | undefined) => string;
27
+ separator: (props?: ({
28
+ 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;
29
+ } & {
30
+ variant?: "primary" | "secondary" | undefined;
31
+ }) | undefined) => string;
32
+ tab: (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
+ variant?: "primary" | "secondary" | undefined;
36
+ }) | undefined) => string;
37
+ tabIndicator: (props?: ({
38
+ 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;
39
+ } & {
40
+ variant?: "primary" | "secondary" | undefined;
41
+ }) | undefined) => string;
42
+ tabList: (props?: ({
43
+ 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;
44
+ } & {
45
+ variant?: "primary" | "secondary" | undefined;
46
+ }) | undefined) => string;
47
+ tabListContainer: (props?: ({
48
+ 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;
49
+ } & {
50
+ variant?: "primary" | "secondary" | undefined;
51
+ }) | undefined) => string;
52
+ tabPanel: (props?: ({
53
+ 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;
54
+ } & {
55
+ variant?: "primary" | "secondary" | undefined;
56
+ }) | undefined) => string;
57
+ };
57
58
  type TabsRenderPropsKeys = "selectedKey";
58
59
  export type TabsVariants = Omit<VariantProps<typeof tabsVariants>, TabsRenderPropsKeys>;
59
60
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.styles.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,YAAY;;QAkBnB,OAAO;QACP,SAAS;YACP,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIV,CAAC;AAGH,KAAK,mBAAmB,GAAG,aAAa,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,YAAY,CAAC,EAAE,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"tabs.styles.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBvB,CAAC;AAGH,KAAK,mBAAmB,GAAG,aAAa,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,YAAY,CAAC,EAAE,mBAAmB,CAAC,CAAC"}