@cognite/aura 0.3.5 → 1.0.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 (540) hide show
  1. package/CHANGELOG.md +274 -0
  2. package/DESIGN.md +664 -281
  3. package/LICENSE +21 -0
  4. package/README.md +21 -13
  5. package/dist/colors-deprecated.css +618 -0
  6. package/dist/colors.css +803 -830
  7. package/dist/components/index.d.ts +63 -57
  8. package/dist/components/index.js +62 -59
  9. package/dist/components/index.js.map +1 -0
  10. package/dist/components/ui/core/accordion/accordion.d.ts +19 -18
  11. package/dist/components/ui/core/accordion/accordion.js +99 -78
  12. package/dist/components/ui/core/accordion/accordion.js.map +1 -0
  13. package/dist/components/ui/core/action-toolbar/action-toolbar-motion.d.ts +8 -0
  14. package/dist/components/ui/core/action-toolbar/action-toolbar-motion.js +132 -0
  15. package/dist/components/ui/core/action-toolbar/action-toolbar-motion.js.map +1 -0
  16. package/dist/components/ui/core/action-toolbar/action-toolbar.d.ts +31 -31
  17. package/dist/components/ui/core/action-toolbar/action-toolbar.js +156 -106
  18. package/dist/components/ui/core/action-toolbar/action-toolbar.js.map +1 -0
  19. package/dist/components/ui/core/alert/alert.d.ts +25 -25
  20. package/dist/components/ui/core/alert/alert.gallery.d.ts +2 -0
  21. package/dist/components/ui/core/alert/alert.gallery.js +54 -0
  22. package/dist/components/ui/core/alert/alert.gallery.js.map +1 -0
  23. package/dist/components/ui/core/alert/alert.js +181 -152
  24. package/dist/components/ui/core/alert/alert.js.map +1 -0
  25. package/dist/components/ui/core/avatar/avatar.d.ts +10 -9
  26. package/dist/components/ui/core/avatar/avatar.gallery.d.ts +2 -0
  27. package/dist/components/ui/core/avatar/avatar.gallery.js +67 -0
  28. package/dist/components/ui/core/avatar/avatar.gallery.js.map +1 -0
  29. package/dist/components/ui/core/avatar/avatar.js +75 -65
  30. package/dist/components/ui/core/avatar/avatar.js.map +1 -0
  31. package/dist/components/ui/core/badge/badge.d.ts +13 -12
  32. package/dist/components/ui/core/badge/badge.gallery.d.ts +2 -0
  33. package/dist/components/ui/core/badge/badge.gallery.js +64 -0
  34. package/dist/components/ui/core/badge/badge.gallery.js.map +1 -0
  35. package/dist/components/ui/core/badge/badge.js +88 -72
  36. package/dist/components/ui/core/badge/badge.js.map +1 -0
  37. package/dist/components/ui/core/banner/banner.d.ts +18 -18
  38. package/dist/components/ui/core/banner/banner.gallery.d.ts +2 -0
  39. package/dist/components/ui/core/banner/banner.gallery.js +56 -0
  40. package/dist/components/ui/core/banner/banner.gallery.js.map +1 -0
  41. package/dist/components/ui/core/banner/banner.js +179 -142
  42. package/dist/components/ui/core/banner/banner.js.map +1 -0
  43. package/dist/components/ui/core/breadcrumb/breadcrumb.d.ts +12 -12
  44. package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.d.ts +2 -0
  45. package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js +31 -0
  46. package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js.map +1 -0
  47. package/dist/components/ui/core/breadcrumb/breadcrumb.js +139 -104
  48. package/dist/components/ui/core/breadcrumb/breadcrumb.js.map +1 -0
  49. package/dist/components/ui/core/button/button.d.ts +7 -7
  50. package/dist/components/ui/core/button/button.gallery.d.ts +2 -0
  51. package/dist/components/ui/core/button/button.gallery.js +76 -0
  52. package/dist/components/ui/core/button/button.gallery.js.map +1 -0
  53. package/dist/components/ui/core/button/button.js +57 -47
  54. package/dist/components/ui/core/button/button.js.map +1 -0
  55. package/dist/components/ui/core/button-group/button-group.d.ts +9 -9
  56. package/dist/components/ui/core/button-group/button-group.gallery.d.ts +2 -0
  57. package/dist/components/ui/core/button-group/button-group.gallery.js +62 -0
  58. package/dist/components/ui/core/button-group/button-group.gallery.js.map +1 -0
  59. package/dist/components/ui/core/button-group/button-group.js +50 -40
  60. package/dist/components/ui/core/button-group/button-group.js.map +1 -0
  61. package/dist/components/ui/core/calendar/calendar-header.d.ts +7 -7
  62. package/dist/components/ui/core/calendar/calendar-header.js +102 -63
  63. package/dist/components/ui/core/calendar/calendar-header.js.map +1 -0
  64. package/dist/components/ui/core/calendar/calendar-utils.d.ts +30 -30
  65. package/dist/components/ui/core/calendar/calendar-utils.js +116 -39
  66. package/dist/components/ui/core/calendar/calendar-utils.js.map +1 -0
  67. package/dist/components/ui/core/calendar/calendar.d.ts +10 -10
  68. package/dist/components/ui/core/calendar/calendar.js +95 -66
  69. package/dist/components/ui/core/calendar/calendar.js.map +1 -0
  70. package/dist/components/ui/core/calendar/constants.js +3 -0
  71. package/dist/components/ui/core/calendar/constants.js.map +1 -0
  72. package/dist/components/ui/core/card/card.d.ts +20 -20
  73. package/dist/components/ui/core/card/card.js +133 -104
  74. package/dist/components/ui/core/card/card.js.map +1 -0
  75. package/dist/components/ui/core/chart/chart.d.ts +55 -53
  76. package/dist/components/ui/core/chart/chart.js +196 -116
  77. package/dist/components/ui/core/chart/chart.js.map +1 -0
  78. package/dist/components/ui/core/chart/index.d.ts +2 -2
  79. package/dist/components/ui/core/chart/index.js +3 -2
  80. package/dist/components/ui/core/chart/index.js.map +1 -0
  81. package/dist/components/ui/core/checkbox/checkbox.d.ts +9 -9
  82. package/dist/components/ui/core/checkbox/checkbox.gallery.d.ts +2 -0
  83. package/dist/components/ui/core/checkbox/checkbox.gallery.js +36 -0
  84. package/dist/components/ui/core/checkbox/checkbox.gallery.js.map +1 -0
  85. package/dist/components/ui/core/checkbox/checkbox.js +88 -68
  86. package/dist/components/ui/core/checkbox/checkbox.js.map +1 -0
  87. package/dist/components/ui/core/checkbox/checkbox.metadata.d.ts +1 -1
  88. package/dist/components/ui/core/checkbox/checkbox.metadata.js +6 -7
  89. package/dist/components/ui/core/checkbox/checkbox.metadata.js.map +1 -0
  90. package/dist/components/ui/core/code-block/code-block.d.ts +19 -19
  91. package/dist/components/ui/core/code-block/code-block.js +260 -175
  92. package/dist/components/ui/core/code-block/code-block.js.map +1 -0
  93. package/dist/components/ui/core/collapsible/collapsible.d.ts +5 -5
  94. package/dist/components/ui/core/collapsible/collapsible.gallery.d.ts +2 -0
  95. package/dist/components/ui/core/collapsible/collapsible.gallery.js +39 -0
  96. package/dist/components/ui/core/collapsible/collapsible.gallery.js.map +1 -0
  97. package/dist/components/ui/core/collapsible/collapsible.js +36 -30
  98. package/dist/components/ui/core/collapsible/collapsible.js.map +1 -0
  99. package/dist/components/ui/core/combobox/combobox.d.ts +13 -13
  100. package/dist/components/ui/core/combobox/combobox.js +89 -40
  101. package/dist/components/ui/core/combobox/combobox.js.map +1 -0
  102. package/dist/components/ui/core/command/command.d.ts +20 -18
  103. package/dist/components/ui/core/command/command.js +137 -85
  104. package/dist/components/ui/core/command/command.js.map +1 -0
  105. package/dist/components/ui/core/conversation/conversation.d.ts +14 -0
  106. package/dist/components/ui/core/conversation/conversation.js +51 -0
  107. package/dist/components/ui/core/conversation/conversation.js.map +1 -0
  108. package/dist/components/ui/core/count/count.d.ts +8 -6
  109. package/dist/components/ui/core/count/count.gallery.d.ts +2 -0
  110. package/dist/components/ui/core/count/count.gallery.js +55 -0
  111. package/dist/components/ui/core/count/count.gallery.js.map +1 -0
  112. package/dist/components/ui/core/count/count.js +51 -21
  113. package/dist/components/ui/core/count/count.js.map +1 -0
  114. package/dist/components/ui/core/data-grid/data-grid-cell.d.ts +5 -7
  115. package/dist/components/ui/core/data-grid/data-grid-cell.js +18 -22
  116. package/dist/components/ui/core/data-grid/data-grid-cell.js.map +1 -0
  117. package/dist/components/ui/core/data-grid/data-grid-column-filter.d.ts +4 -0
  118. package/dist/components/ui/core/data-grid/data-grid-column-filter.js +13 -0
  119. package/dist/components/ui/core/data-grid/data-grid-column-filter.js.map +1 -0
  120. package/dist/components/ui/core/data-grid/data-grid-column-resizer.d.ts +8 -0
  121. package/dist/components/ui/core/data-grid/data-grid-column-resizer.js +25 -0
  122. package/dist/components/ui/core/data-grid/data-grid-column-resizer.js.map +1 -0
  123. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.d.ts +14 -0
  124. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js +36 -0
  125. package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js.map +1 -0
  126. package/dist/components/ui/core/data-grid/data-grid-filter-panel.d.ts +43 -0
  127. package/dist/components/ui/core/data-grid/data-grid-filter-panel.js +287 -0
  128. package/dist/components/ui/core/data-grid/data-grid-filter-panel.js.map +1 -0
  129. package/dist/components/ui/core/data-grid/data-grid-footer.d.ts +6 -0
  130. package/dist/components/ui/core/data-grid/data-grid-footer.js +34 -0
  131. package/dist/components/ui/core/data-grid/data-grid-footer.js.map +1 -0
  132. package/dist/components/ui/core/data-grid/data-grid-header-row.d.ts +10 -10
  133. package/dist/components/ui/core/data-grid/data-grid-header-row.js +85 -55
  134. package/dist/components/ui/core/data-grid/data-grid-header-row.js.map +1 -0
  135. package/dist/components/ui/core/data-grid/data-grid-header.d.ts +11 -0
  136. package/dist/components/ui/core/data-grid/data-grid-header.js +67 -0
  137. package/dist/components/ui/core/data-grid/data-grid-header.js.map +1 -0
  138. package/dist/components/ui/core/data-grid/data-grid-row.d.ts +13 -15
  139. package/dist/components/ui/core/data-grid/data-grid-row.js +117 -76
  140. package/dist/components/ui/core/data-grid/data-grid-row.js.map +1 -0
  141. package/dist/components/ui/core/data-grid/data-grid-selection-state.d.ts +15 -0
  142. package/dist/components/ui/core/data-grid/data-grid-selection-state.js +32 -0
  143. package/dist/components/ui/core/data-grid/data-grid-selection-state.js.map +1 -0
  144. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.d.ts +11 -0
  145. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js +129 -0
  146. package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js.map +1 -0
  147. package/dist/components/ui/core/data-grid/data-grid-selection.types.d.ts +24 -0
  148. package/dist/components/ui/core/data-grid/data-grid-selection.types.js +3 -0
  149. package/dist/components/ui/core/data-grid/data-grid-selection.types.js.map +1 -0
  150. package/dist/components/ui/core/data-grid/data-grid.d.ts +125 -35
  151. package/dist/components/ui/core/data-grid/data-grid.fixtures.d.ts +7 -7
  152. package/dist/components/ui/core/data-grid/data-grid.fixtures.js +139 -0
  153. package/dist/components/ui/core/data-grid/data-grid.fixtures.js.map +1 -0
  154. package/dist/components/ui/core/data-grid/data-grid.js +540 -132
  155. package/dist/components/ui/core/data-grid/data-grid.js.map +1 -0
  156. package/dist/components/ui/core/data-grid/data-grid.utils.d.ts +3 -4
  157. package/dist/components/ui/core/data-grid/data-grid.utils.js +46 -33
  158. package/dist/components/ui/core/data-grid/data-grid.utils.js.map +1 -0
  159. package/dist/components/ui/core/data-grid/index.d.ts +6 -1
  160. package/dist/components/ui/core/data-grid/index.js +6 -2
  161. package/dist/components/ui/core/data-grid/index.js.map +1 -0
  162. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.d.ts +11 -13
  163. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +85 -61
  164. package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js.map +1 -0
  165. package/dist/components/ui/core/date-time-pickers/date-picker/index.d.ts +3 -3
  166. package/dist/components/ui/core/date-time-pickers/date-picker/index.js +3 -0
  167. package/dist/components/ui/core/date-time-pickers/date-picker/index.js.map +1 -0
  168. package/dist/components/ui/core/date-time-pickers/date-picker/types.d.ts +14 -14
  169. package/dist/components/ui/core/date-time-pickers/date-picker/types.js +3 -0
  170. package/dist/components/ui/core/date-time-pickers/date-picker/types.js.map +1 -0
  171. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.d.ts +2 -2
  172. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +51 -36
  173. package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js.map +1 -0
  174. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.d.ts +11 -13
  175. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +89 -64
  176. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js.map +1 -0
  177. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.d.ts +3 -3
  178. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js +3 -0
  179. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js.map +1 -0
  180. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +20 -20
  181. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js +3 -0
  182. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js.map +1 -0
  183. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.d.ts +4 -4
  184. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +95 -60
  185. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js.map +1 -0
  186. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.d.ts +15 -0
  187. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js +120 -0
  188. package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js.map +1 -0
  189. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.d.ts +3 -1
  190. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js +3 -0
  191. package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js.map +1 -0
  192. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.d.ts +25 -32
  193. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js +3 -0
  194. package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js.map +1 -0
  195. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.d.ts +2 -2
  196. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js +78 -0
  197. package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js.map +1 -0
  198. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.d.ts +13 -15
  199. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +165 -119
  200. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js.map +1 -0
  201. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.d.ts +3 -3
  202. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js +3 -0
  203. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js.map +1 -0
  204. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +37 -37
  205. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js +3 -0
  206. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js.map +1 -0
  207. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.d.ts +3 -3
  208. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +163 -104
  209. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js.map +1 -0
  210. package/dist/components/ui/core/date-time-pickers/index.d.ts +17 -12
  211. package/dist/components/ui/core/date-time-pickers/index.js +10 -6
  212. package/dist/components/ui/core/date-time-pickers/index.js.map +1 -0
  213. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.d.ts +5 -5
  214. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +52 -42
  215. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js.map +1 -0
  216. package/dist/components/ui/core/date-time-pickers/shared/constants.d.ts +6 -1
  217. package/dist/components/ui/core/date-time-pickers/shared/constants.js +23 -0
  218. package/dist/components/ui/core/date-time-pickers/shared/constants.js.map +1 -0
  219. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.d.ts +16 -15
  220. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +87 -64
  221. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js.map +1 -0
  222. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.d.ts +10 -9
  223. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +89 -38
  224. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js.map +1 -0
  225. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.d.ts +5 -5
  226. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +34 -23
  227. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js.map +1 -0
  228. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.d.ts +23 -23
  229. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +95 -52
  230. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js.map +1 -0
  231. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.d.ts +5 -5
  232. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +22 -18
  233. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js.map +1 -0
  234. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.d.ts +19 -19
  235. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js +41 -24
  236. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js.map +1 -0
  237. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.d.ts +13 -13
  238. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +33 -24
  239. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js.map +1 -0
  240. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.d.ts +5 -5
  241. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +9 -4
  242. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js.map +1 -0
  243. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.d.ts +13 -9
  244. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +22 -17
  245. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js.map +1 -0
  246. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.d.ts +2 -2
  247. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js +3 -0
  248. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js.map +1 -0
  249. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.d.ts +13 -13
  250. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js +49 -40
  251. package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js.map +1 -0
  252. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.d.ts +7 -7
  253. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +41 -34
  254. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js.map +1 -0
  255. package/dist/components/ui/core/date-time-pickers/time-picker/index.d.ts +3 -3
  256. package/dist/components/ui/core/date-time-pickers/time-picker/index.js +3 -0
  257. package/dist/components/ui/core/date-time-pickers/time-picker/index.js.map +1 -0
  258. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.d.ts +12 -14
  259. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js +99 -79
  260. package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js.map +1 -0
  261. package/dist/components/ui/core/date-time-pickers/time-picker/types.d.ts +20 -20
  262. package/dist/components/ui/core/date-time-pickers/time-picker/types.js +3 -0
  263. package/dist/components/ui/core/date-time-pickers/time-picker/types.js.map +1 -0
  264. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.d.ts +2 -2
  265. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js +63 -41
  266. package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js.map +1 -0
  267. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.d.ts +3 -1
  268. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js +3 -0
  269. package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js.map +1 -0
  270. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.d.ts +14 -0
  271. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js +115 -0
  272. package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js.map +1 -0
  273. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.d.ts +30 -36
  274. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js +3 -0
  275. package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js.map +1 -0
  276. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.d.ts +2 -2
  277. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js +145 -0
  278. package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js.map +1 -0
  279. package/dist/components/ui/core/date-time-pickers/utils/date-input.d.ts +56 -0
  280. package/dist/components/ui/core/date-time-pickers/utils/date-input.js +67 -0
  281. package/dist/components/ui/core/date-time-pickers/utils/date-input.js.map +1 -0
  282. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.d.ts +18 -18
  283. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js +42 -0
  284. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js.map +1 -0
  285. package/dist/components/ui/core/date-time-pickers/utils/format-utils.d.ts +31 -29
  286. package/dist/components/ui/core/date-time-pickers/utils/format-utils.js +56 -0
  287. package/dist/components/ui/core/date-time-pickers/utils/format-utils.js.map +1 -0
  288. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.d.ts +21 -21
  289. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js +170 -0
  290. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js.map +1 -0
  291. package/dist/components/ui/core/date-time-pickers/utils/time-utils.d.ts +28 -28
  292. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +88 -7
  293. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js.map +1 -0
  294. package/dist/components/ui/core/date-time-pickers/utils/time-validation.d.ts +17 -17
  295. package/dist/components/ui/core/date-time-pickers/utils/time-validation.js +43 -0
  296. package/dist/components/ui/core/date-time-pickers/utils/time-validation.js.map +1 -0
  297. package/dist/components/ui/core/dialog/dialog.d.ts +12 -9
  298. package/dist/components/ui/core/dialog/dialog.js +90 -82
  299. package/dist/components/ui/core/dialog/dialog.js.map +1 -0
  300. package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +22 -19
  301. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +204 -149
  302. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js.map +1 -0
  303. package/dist/components/ui/core/empty-state/empty-state.context.d.ts +4 -4
  304. package/dist/components/ui/core/empty-state/empty-state.context.js +8 -5
  305. package/dist/components/ui/core/empty-state/empty-state.context.js.map +1 -0
  306. package/dist/components/ui/core/empty-state/empty-state.d.ts +14 -14
  307. package/dist/components/ui/core/empty-state/empty-state.js +96 -82
  308. package/dist/components/ui/core/empty-state/empty-state.js.map +1 -0
  309. package/dist/components/ui/core/helper-text/helper-text.d.ts +7 -7
  310. package/dist/components/ui/core/helper-text/helper-text.js +55 -36
  311. package/dist/components/ui/core/helper-text/helper-text.js.map +1 -0
  312. package/dist/components/ui/core/hover-card/hover-card.d.ts +7 -6
  313. package/dist/components/ui/core/hover-card/hover-card.js +56 -52
  314. package/dist/components/ui/core/hover-card/hover-card.js.map +1 -0
  315. package/dist/components/ui/core/inline-citation/inline-citation.d.ts +26 -25
  316. package/dist/components/ui/core/inline-citation/inline-citation.js +121 -97
  317. package/dist/components/ui/core/inline-citation/inline-citation.js.map +1 -0
  318. package/dist/components/ui/core/input/input.d.ts +2 -2
  319. package/dist/components/ui/core/input/input.gallery.d.ts +2 -0
  320. package/dist/components/ui/core/input/input.gallery.js +89 -0
  321. package/dist/components/ui/core/input/input.gallery.js.map +1 -0
  322. package/dist/components/ui/core/input/input.js +15 -13
  323. package/dist/components/ui/core/input/input.js.map +1 -0
  324. package/dist/components/ui/core/input-group/input-group.d.ts +25 -14
  325. package/dist/components/ui/core/input-group/input-group.js +149 -76
  326. package/dist/components/ui/core/input-group/input-group.js.map +1 -0
  327. package/dist/components/ui/core/item/item.d.ts +20 -0
  328. package/dist/components/ui/core/item/item.js +93 -0
  329. package/dist/components/ui/core/item/item.js.map +1 -0
  330. package/dist/components/ui/core/kbd/kbd.d.ts +3 -3
  331. package/dist/components/ui/core/kbd/kbd.js +24 -20
  332. package/dist/components/ui/core/kbd/kbd.js.map +1 -0
  333. package/dist/components/ui/core/label/label.d.ts +3 -3
  334. package/dist/components/ui/core/label/label.gallery.d.ts +2 -0
  335. package/dist/components/ui/core/label/label.gallery.js +57 -0
  336. package/dist/components/ui/core/label/label.gallery.js.map +1 -0
  337. package/dist/components/ui/core/label/label.js +33 -26
  338. package/dist/components/ui/core/label/label.js.map +1 -0
  339. package/dist/components/ui/core/loader/loader.d.ts +6 -6
  340. package/dist/components/ui/core/loader/loader.js +97 -80
  341. package/dist/components/ui/core/loader/loader.js.map +1 -0
  342. package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +8 -9
  343. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +18 -12
  344. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js.map +1 -0
  345. package/dist/components/ui/core/message/message-response-math-plugin.d.ts +3 -0
  346. package/dist/components/ui/core/message/message-response-math-plugin.js +6 -0
  347. package/dist/components/ui/core/message/message-response-math-plugin.js.map +1 -0
  348. package/dist/components/ui/core/message/message.d.ts +27 -23
  349. package/dist/components/ui/core/message/message.js +458 -316
  350. package/dist/components/ui/core/message/message.js.map +1 -0
  351. package/dist/components/ui/core/overflow-list/overflow-list.d.ts +21 -0
  352. package/dist/components/ui/core/overflow-list/overflow-list.js +197 -0
  353. package/dist/components/ui/core/overflow-list/overflow-list.js.map +1 -0
  354. package/dist/components/ui/core/overflow-list/overflow-list.utils.d.ts +37 -35
  355. package/dist/components/ui/core/overflow-list/overflow-list.utils.js +206 -0
  356. package/dist/components/ui/core/overflow-list/overflow-list.utils.js.map +1 -0
  357. package/dist/components/ui/core/pagination/pagination-size-context.d.ts +2 -2
  358. package/dist/components/ui/core/pagination/pagination-size-context.js +6 -5
  359. package/dist/components/ui/core/pagination/pagination-size-context.js.map +1 -0
  360. package/dist/components/ui/core/pagination/pagination-teleport.d.ts +9 -9
  361. package/dist/components/ui/core/pagination/pagination-teleport.js +127 -84
  362. package/dist/components/ui/core/pagination/pagination-teleport.js.map +1 -0
  363. package/dist/components/ui/core/pagination/pagination-teleport.utils.js +6 -6
  364. package/dist/components/ui/core/pagination/pagination-teleport.utils.js.map +1 -0
  365. package/dist/components/ui/core/pagination/pagination.d.ts +39 -39
  366. package/dist/components/ui/core/pagination/pagination.js +294 -234
  367. package/dist/components/ui/core/pagination/pagination.js.map +1 -0
  368. package/dist/components/ui/core/popover/popover.d.ts +12 -11
  369. package/dist/components/ui/core/popover/popover.js +104 -89
  370. package/dist/components/ui/core/popover/popover.js.map +1 -0
  371. package/dist/components/ui/core/progress/progress.d.ts +9 -8
  372. package/dist/components/ui/core/progress/progress.js +50 -35
  373. package/dist/components/ui/core/progress/progress.js.map +1 -0
  374. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +27 -27
  375. package/dist/components/ui/core/prompt-input/prompt-input.js +342 -271
  376. package/dist/components/ui/core/prompt-input/prompt-input.js.map +1 -0
  377. package/dist/components/ui/core/radio-group/radio-group.d.ts +12 -12
  378. package/dist/components/ui/core/radio-group/radio-group.gallery.d.ts +2 -0
  379. package/dist/components/ui/core/radio-group/radio-group.gallery.js +44 -0
  380. package/dist/components/ui/core/radio-group/radio-group.gallery.js.map +1 -0
  381. package/dist/components/ui/core/radio-group/radio-group.js +88 -58
  382. package/dist/components/ui/core/radio-group/radio-group.js.map +1 -0
  383. package/dist/components/ui/core/reasoning/reasoning.d.ts +7 -7
  384. package/dist/components/ui/core/reasoning/reasoning.js +68 -56
  385. package/dist/components/ui/core/reasoning/reasoning.js.map +1 -0
  386. package/dist/components/ui/core/scroll-area/scroll-area.d.ts +4 -4
  387. package/dist/components/ui/core/scroll-area/scroll-area.js +50 -40
  388. package/dist/components/ui/core/scroll-area/scroll-area.js.map +1 -0
  389. package/dist/components/ui/core/search/search.d.ts +8 -8
  390. package/dist/components/ui/core/search/search.js +122 -76
  391. package/dist/components/ui/core/search/search.js.map +1 -0
  392. package/dist/components/ui/core/segmented-control/segmented-control.d.ts +10 -10
  393. package/dist/components/ui/core/segmented-control/segmented-control.js +203 -149
  394. package/dist/components/ui/core/segmented-control/segmented-control.js.map +1 -0
  395. package/dist/components/ui/core/select/select.d.ts +33 -26
  396. package/dist/components/ui/core/select/select.js +262 -168
  397. package/dist/components/ui/core/select/select.js.map +1 -0
  398. package/dist/components/ui/core/separator/separator.d.ts +2 -2
  399. package/dist/components/ui/core/separator/separator.gallery.d.ts +2 -0
  400. package/dist/components/ui/core/separator/separator.gallery.js +63 -0
  401. package/dist/components/ui/core/separator/separator.gallery.js.map +1 -0
  402. package/dist/components/ui/core/separator/separator.js +13 -13
  403. package/dist/components/ui/core/separator/separator.js.map +1 -0
  404. package/dist/components/ui/core/shimmer/shimmer.d.ts +8 -8
  405. package/dist/components/ui/core/shimmer/shimmer.js +64 -40
  406. package/dist/components/ui/core/shimmer/shimmer.js.map +1 -0
  407. package/dist/components/ui/core/skeleton/skeleton.d.ts +2 -2
  408. package/dist/components/ui/core/skeleton/skeleton.gallery.d.ts +2 -0
  409. package/dist/components/ui/core/skeleton/skeleton.gallery.js +22 -0
  410. package/dist/components/ui/core/skeleton/skeleton.gallery.js.map +1 -0
  411. package/dist/components/ui/core/skeleton/skeleton.js +13 -13
  412. package/dist/components/ui/core/skeleton/skeleton.js.map +1 -0
  413. package/dist/components/ui/core/slider/slider.d.ts +7 -7
  414. package/dist/components/ui/core/slider/slider.gallery.d.ts +2 -0
  415. package/dist/components/ui/core/slider/slider.gallery.js +62 -0
  416. package/dist/components/ui/core/slider/slider.gallery.js.map +1 -0
  417. package/dist/components/ui/core/slider/slider.js +51 -39
  418. package/dist/components/ui/core/slider/slider.js.map +1 -0
  419. package/dist/components/ui/core/sonner-toast/sonner-toast.d.ts +2 -2
  420. package/dist/components/ui/core/sonner-toast/sonner-toast.js +67 -54
  421. package/dist/components/ui/core/sonner-toast/sonner-toast.js.map +1 -0
  422. package/dist/components/ui/core/sources/sources.d.ts +12 -12
  423. package/dist/components/ui/core/sources/sources.js +87 -58
  424. package/dist/components/ui/core/sources/sources.js.map +1 -0
  425. package/dist/components/ui/core/status-text/status-text.d.ts +4 -0
  426. package/dist/components/ui/core/status-text/status-text.js +14 -0
  427. package/dist/components/ui/core/status-text/status-text.js.map +1 -0
  428. package/dist/components/ui/core/switch/switch.d.ts +9 -9
  429. package/dist/components/ui/core/switch/switch.gallery.d.ts +2 -0
  430. package/dist/components/ui/core/switch/switch.gallery.js +67 -0
  431. package/dist/components/ui/core/switch/switch.gallery.js.map +1 -0
  432. package/dist/components/ui/core/switch/switch.js +83 -61
  433. package/dist/components/ui/core/switch/switch.js.map +1 -0
  434. package/dist/components/ui/core/switch/switch.metadata.d.ts +1 -1
  435. package/dist/components/ui/core/switch/switch.metadata.js +8 -0
  436. package/dist/components/ui/core/switch/switch.metadata.js.map +1 -0
  437. package/dist/components/ui/core/tabs/tabs.d.ts +20 -18
  438. package/dist/components/ui/core/tabs/tabs.js +176 -147
  439. package/dist/components/ui/core/tabs/tabs.js.map +1 -0
  440. package/dist/components/ui/core/tabs/tabs.utils.d.ts +1 -1
  441. package/dist/components/ui/core/tabs/tabs.utils.js +10 -6
  442. package/dist/components/ui/core/tabs/tabs.utils.js.map +1 -0
  443. package/dist/components/ui/core/textarea/textarea.d.ts +2 -2
  444. package/dist/components/ui/core/textarea/textarea.gallery.d.ts +2 -0
  445. package/dist/components/ui/core/textarea/textarea.gallery.js +51 -0
  446. package/dist/components/ui/core/textarea/textarea.gallery.js.map +1 -0
  447. package/dist/components/ui/core/textarea/textarea.js +13 -13
  448. package/dist/components/ui/core/textarea/textarea.js.map +1 -0
  449. package/dist/components/ui/core/toggle/toggle.d.ts +9 -9
  450. package/dist/components/ui/core/toggle/toggle.gallery.d.ts +2 -0
  451. package/dist/components/ui/core/toggle/toggle.gallery.js +32 -0
  452. package/dist/components/ui/core/toggle/toggle.gallery.js.map +1 -0
  453. package/dist/components/ui/core/toggle/toggle.js +60 -54
  454. package/dist/components/ui/core/toggle/toggle.js.map +1 -0
  455. package/dist/components/ui/core/tool/tool.d.ts +18 -18
  456. package/dist/components/ui/core/tool/tool.js +167 -126
  457. package/dist/components/ui/core/tool/tool.js.map +1 -0
  458. package/dist/components/ui/core/toolbar/toolbar.d.ts +37 -0
  459. package/dist/components/ui/core/toolbar/toolbar.js +171 -0
  460. package/dist/components/ui/core/toolbar/toolbar.js.map +1 -0
  461. package/dist/components/ui/core/tooltip/tooltip.d.ts +8 -7
  462. package/dist/components/ui/core/tooltip/tooltip.gallery.d.ts +2 -0
  463. package/dist/components/ui/core/tooltip/tooltip.gallery.js +52 -0
  464. package/dist/components/ui/core/tooltip/tooltip.gallery.js.map +1 -0
  465. package/dist/components/ui/core/tooltip/tooltip.js +53 -46
  466. package/dist/components/ui/core/tooltip/tooltip.js.map +1 -0
  467. package/dist/components/ui/core/topbar/topbar.d.ts +26 -26
  468. package/dist/components/ui/core/topbar/topbar.js +160 -105
  469. package/dist/components/ui/core/topbar/topbar.js.map +1 -0
  470. package/dist/components/ui/core/tree/tree.d.ts +20 -0
  471. package/dist/components/ui/core/tree/tree.js +100 -0
  472. package/dist/components/ui/core/tree/tree.js.map +1 -0
  473. package/dist/eslint/index.d.ts +5 -5
  474. package/dist/eslint/index.js +9 -5
  475. package/dist/eslint/index.js.map +1 -0
  476. package/dist/eslint/no-overriding-styles.d.ts +1 -1
  477. package/dist/eslint/no-overriding-styles.js +341 -201
  478. package/dist/eslint/no-overriding-styles.js.map +1 -0
  479. package/dist/icons/index.d.ts +1 -1
  480. package/dist/icons/index.js +2 -0
  481. package/dist/icons/index.js.map +1 -0
  482. package/dist/index.d.ts +1 -1
  483. package/dist/index.js +3 -0
  484. package/dist/index.js.map +1 -0
  485. package/dist/lib/ai/types.d.ts +43 -43
  486. package/dist/lib/ai/types.js +3 -0
  487. package/dist/lib/ai/types.js.map +1 -0
  488. package/dist/lib/decorative-variant-classes.d.ts +53 -0
  489. package/dist/lib/decorative-variant-classes.js +58 -0
  490. package/dist/lib/decorative-variant-classes.js.map +1 -0
  491. package/dist/lib/highlight-code.d.ts +11 -8
  492. package/dist/lib/highlight-code.js +58 -40
  493. package/dist/lib/highlight-code.js.map +1 -0
  494. package/dist/lib/portal-container-context.d.ts +1 -1
  495. package/dist/lib/portal-container-context.js +8 -8
  496. package/dist/lib/portal-container-context.js.map +1 -0
  497. package/dist/lib/shared-theme-from-url.d.ts +13 -0
  498. package/dist/lib/shared-theme-from-url.js +61 -0
  499. package/dist/lib/shared-theme-from-url.js.map +1 -0
  500. package/dist/lib/style-scope.d.ts +2 -2
  501. package/dist/lib/style-scope.js +6 -6
  502. package/dist/lib/style-scope.js.map +1 -0
  503. package/dist/lib/theme-share-url.d.ts +31 -0
  504. package/dist/lib/theme-share-url.js +116 -0
  505. package/dist/lib/theme-share-url.js.map +1 -0
  506. package/dist/lib/types.d.ts +39 -39
  507. package/dist/lib/types.js +3 -0
  508. package/dist/lib/types.js.map +1 -0
  509. package/dist/lib/use-controllable-state.d.ts +4 -7
  510. package/dist/lib/use-controllable-state.js +34 -21
  511. package/dist/lib/use-controllable-state.js.map +1 -0
  512. package/dist/lib/utils.d.ts +63 -34
  513. package/dist/lib/utils.js +134 -32
  514. package/dist/lib/utils.js.map +1 -0
  515. package/dist/styles.css +2 -1
  516. package/dist/styles.source.css +46 -16
  517. package/dist/utils/assign-ref.d.ts +3 -0
  518. package/dist/utils/assign-ref.js +13 -0
  519. package/dist/utils/assign-ref.js.map +1 -0
  520. package/package.json +49 -14
  521. package/src/components/ui/core/alert/alert.md +46 -0
  522. package/src/components/ui/core/avatar/avatar.md +30 -0
  523. package/src/components/ui/core/badge/badge.md +32 -0
  524. package/src/components/ui/core/banner/banner.md +51 -0
  525. package/src/components/ui/core/breadcrumb/breadcrumb.md +45 -0
  526. package/src/components/ui/core/button/button.md +93 -0
  527. package/src/components/ui/core/button-group/button-group.md +38 -0
  528. package/src/components/ui/core/checkbox/checkbox.md +37 -0
  529. package/src/components/ui/core/collapsible/collapsible.md +42 -0
  530. package/src/components/ui/core/count/count.md +33 -0
  531. package/src/components/ui/core/input/input.md +48 -0
  532. package/src/components/ui/core/label/label.md +35 -0
  533. package/src/components/ui/core/radio-group/radio-group.md +38 -0
  534. package/src/components/ui/core/separator/separator.md +32 -0
  535. package/src/components/ui/core/skeleton/skeleton.md +33 -0
  536. package/src/components/ui/core/slider/slider.md +41 -0
  537. package/src/components/ui/core/switch/switch.md +26 -0
  538. package/src/components/ui/core/textarea/textarea.md +42 -0
  539. package/src/components/ui/core/toggle/toggle.md +39 -0
  540. package/src/components/ui/core/tooltip/tooltip.md +41 -0
@@ -1,203 +1,343 @@
1
- //#region libs/aura/src/eslint/no-overriding-styles.ts
2
- var e = /* @__PURE__ */ new Set(["@cognite/aura/components", "@cognite/aura-labs/components"]), t = [
3
- /^(block|inline|inline-block|flex|inline-flex|grid|inline-grid|contents|hidden)$/,
4
- /^(w|h|min-w|max-w|min-h|max-h|size|aspect)-.+$/,
5
- /^(m|mx|my|mt|mr|mb|ml|ms|me)-.+$/,
6
- /^space-[xy]-.+$/,
7
- /^gap(?:-[xy])?-.+$/,
8
- /^(grow|grow-0|shrink|shrink-0)$/,
9
- /^flex-(1|auto|initial|none|row|row-reverse|col|col-reverse|wrap|wrap-reverse|nowrap)$/,
10
- /^basis-.+$/,
11
- /^order-.+$/,
12
- /^grid-(cols|rows)-.+$/,
13
- /^auto-(cols|rows)-.+$/,
14
- /^(col|row)-(auto|span-.+|start-.+|end-.+)$/,
15
- /^justify-(start|end|center|between|around|evenly|stretch|normal)$/,
16
- /^items-(start|end|center|baseline|stretch)$/,
17
- /^content-(start|end|center|between|around|evenly|stretch|baseline)$/,
18
- /^self-(auto|start|end|center|stretch|baseline)$/,
19
- /^place-(items|content|self)-.+$/,
20
- /^justify-self-.+$/,
21
- /^(overflow|overflow-x|overflow-y|overscroll|overscroll-x|overscroll-y)-.+$/,
22
- /^(whitespace|break)-.+$/,
23
- /^(text-(left|center|right|justify|wrap|nowrap|balance|pretty))$/,
24
- /^(truncate|line-clamp-.+)$/,
25
- /^(static|fixed|absolute|relative|sticky)$/,
26
- /^(inset|inset-x|inset-y|top|right|bottom|left|start|end|z)-.+$/,
27
- /^(visible|invisible|isolate)$/
1
+ const auraImportSources = new Set([
2
+ '@cognite/aura/components',
3
+ '@cognite/aura-labs/components'
4
+ ]);
5
+ const allowedAuraLayoutClassPatterns = [
6
+ /^(block|inline|inline-block|flex|inline-flex|grid|inline-grid|contents|hidden)$/,
7
+ /^(w|h|min-w|max-w|min-h|max-h|size|aspect)-.+$/,
8
+ /^(m|mx|my|mt|mr|mb|ml|ms|me)-.+$/,
9
+ /^space-[xy]-.+$/,
10
+ /^gap(?:-[xy])?-.+$/,
11
+ /^(grow|grow-0|shrink|shrink-0)$/,
12
+ /^flex-(1|auto|initial|none|row|row-reverse|col|col-reverse|wrap|wrap-reverse|nowrap)$/,
13
+ /^basis-.+$/,
14
+ /^order-.+$/,
15
+ /^grid-(cols|rows)-.+$/,
16
+ /^auto-(cols|rows)-.+$/,
17
+ /^(col|row)-(auto|span-.+|start-.+|end-.+)$/,
18
+ /^justify-(start|end|center|between|around|evenly|stretch|normal)$/,
19
+ /^items-(start|end|center|baseline|stretch)$/,
20
+ /^content-(start|end|center|between|around|evenly|stretch|baseline)$/,
21
+ /^self-(auto|start|end|center|stretch|baseline)$/,
22
+ /^place-(items|content|self)-.+$/,
23
+ /^justify-self-.+$/,
24
+ /^(overflow|overflow-x|overflow-y|overscroll|overscroll-x|overscroll-y)-.+$/,
25
+ /^(whitespace|break)-.+$/,
26
+ /^(text-(left|center|right|justify|wrap|nowrap|balance|pretty))$/,
27
+ /^(truncate|line-clamp-.+)$/,
28
+ /^(static|fixed|absolute|relative|sticky)$/,
29
+ /^(inset|inset-x|inset-y|top|right|bottom|left|start|end|z)-.+$/,
30
+ /^(visible|invisible|isolate)$/
28
31
  ];
29
- function n(e) {
30
- return typeof e == "object" && !!e;
31
- }
32
- function r(e) {
33
- return n(e) && typeof e.type == "string";
34
- }
35
- function i(e, t) {
36
- return r(e) && e.type === t;
37
- }
38
- function a(e) {
39
- return i(e, "Literal");
40
- }
41
- function o(e) {
42
- if (!n(e)) return !1;
43
- let t = e, r = Array.isArray(t.expressions) && Array.isArray(t.quasis);
44
- return i(t, "TemplateLiteral") && r;
45
- }
46
- function s(e) {
47
- return i(e, "JSXExpressionContainer") && "expression" in e;
48
- }
49
- function c(e) {
50
- if (!n(e)) return !1;
51
- let t = e, r = Array.isArray(t.arguments) && "callee" in t;
52
- return i(t, "CallExpression") && r;
53
- }
54
- function l(e) {
55
- return i(e, "ConditionalExpression") && "consequent" in e && "alternate" in e;
56
- }
57
- function u(e) {
58
- return i(e, "LogicalExpression") && "left" in e && "right" in e;
59
- }
60
- function d(e) {
61
- if (!n(e)) return !1;
62
- let t = e, r = Array.isArray(t.elements);
63
- return i(t, "ArrayExpression") && r;
64
- }
65
- function f(e) {
66
- if (!n(e)) return !1;
67
- let t = e, r = typeof t.name == "string";
68
- return i(t, "JSXIdentifier") && r;
69
- }
70
- function p(e) {
71
- return i(e, "JSXAttribute") && "name" in e;
72
- }
73
- function m(e) {
74
- if (!n(e)) return !1;
75
- let t = e, r = Array.isArray(t.attributes) && "name" in t;
76
- return i(t, "JSXOpeningElement") && r;
77
- }
78
- function h(e) {
79
- if (!n(e)) return !1;
80
- let t = e, r = Array.isArray(t.specifiers) && "source" in t;
81
- return i(t, "ImportDeclaration") && r;
82
- }
83
- function g(e) {
84
- return n(e.source) && typeof e.source.value == "string" ? e.source.value : null;
85
- }
86
- function _(e) {
87
- if (!n(e) || !("local" in e)) return null;
88
- let t = e.local;
89
- return n(t) && typeof t.name == "string" ? t.name : null;
90
- }
91
- function v(e) {
92
- return e.trim().split(":").at(-1)?.replace(/!$/, "").replace(/^-/, "");
93
- }
94
- function y(e) {
95
- let n = v(e);
96
- return n ? t.some((e) => e.test(n)) : !1;
97
- }
98
- function b(e) {
99
- return e.split(/\s+/).map((e) => e.trim()).filter(Boolean);
100
- }
101
- function x(e) {
102
- return e.value?.cooked ?? "";
103
- }
104
- function S(e) {
105
- return e ? a(e) ? typeof e.value == "string" ? b(e.value) : [] : o(e) ? e.quasis.flatMap((e) => b(x(e))) : s(e) ? S(e.expression) : c(e) ? e.arguments.flatMap((e) => S(e)) : l(e) ? [...S(e.consequent), ...S(e.alternate)] : u(e) ? [...S(e.left), ...S(e.right)] : d(e) ? e.elements.flatMap((e) => S(e)) : [] : [];
106
- }
107
- function C(e) {
108
- return f(e.name) ? e.name.name : null;
109
- }
110
- function w(e) {
111
- return e.filter(y);
112
- }
113
- function T(e, t) {
114
- return t.range ? e.text.slice(t.range[0], t.range[1]) : null;
115
- }
116
- function E({ expressionNode: e, sourceCode: t, sanitizedTokens: i, valueNode: l }) {
117
- let u = i.join(" ");
118
- if (a(l)) return u === "" ? null : `"${u}"`;
119
- if (!s(l) || !e) return null;
120
- if (a(e) || o(e) && e.expressions.length === 0) return u === "" ? null : `{${JSON.stringify(u)}}`;
121
- if (!c(e) || !n(e.callee) || (typeof e.callee.name == "string" ? e.callee.name : null) !== "cn") return null;
122
- let d = [];
123
- for (let n of e.arguments) {
124
- if (a(n) && typeof n.value == "string") {
125
- let e = w(b(n.value)).join(" ");
126
- e && d.push(JSON.stringify(e));
127
- continue;
128
- }
129
- if (o(n) && n.expressions.length === 0) {
130
- let e = w(b(x(n.quasis[0] ?? {}))).join(" ");
131
- e && d.push(JSON.stringify(e));
132
- continue;
133
- }
134
- if (!r(n)) return null;
135
- let e = T(t, n);
136
- if (e === null) return null;
137
- d.push(e);
138
- }
139
- return d.length === 0 ? null : `{cn(${d.join(", ")})}`;
140
- }
141
- function D({ classNameAttribute: e, disallowedTokens: t, sourceCode: n, tokens: i }) {
142
- if (t.length === 0) return null;
143
- let a = e.value;
144
- if (!a) return null;
145
- let o = E({
146
- expressionNode: s(a) ? a.expression : null,
147
- sanitizedTokens: w(i),
148
- sourceCode: n,
149
- valueNode: a
150
- }), c = e.range;
151
- return c ? (e) => o === null ? e.removeRange([c[0] - 1, c[1]]) : !r(a) || !a.range ? null : e.replaceTextRange(a.range, o) : null;
152
- }
153
- var O = {
154
- meta: {
155
- type: "suggestion",
156
- fixable: "code",
157
- hasSuggestions: !0,
158
- docs: { description: "Warn when consumers visually override Aura component styles via className" },
159
- schema: [],
160
- messages: {
161
- overridingAuraStyles: "Overriding Aura styles: only layout and sizing utilities should be passed via className. Move visual styling into Aura variants, props, or composition instead. Offending classes: {{classes}}.",
162
- removeOverridingAuraStyles: "Remove disallowed Aura styling classes and keep only layout-safe utilities."
163
- }
164
- },
165
- create(t) {
166
- let n = /* @__PURE__ */ new Set(), r = t.sourceCode;
167
- return {
168
- ImportDeclaration(t) {
169
- if (!h(t)) return;
170
- let r = g(t);
171
- if (!(!r || !e.has(r))) for (let e of t.specifiers) {
172
- let t = _(e);
173
- t && n.add(t);
174
- }
175
- },
176
- JSXOpeningElement(e) {
177
- if (!m(e)) return;
178
- let i = C(e);
179
- if (!i || !n.has(i)) return;
180
- let a = e.attributes.find((e) => p(e) && f(e.name) && e.name.name === "className");
181
- if (!a?.value) return;
182
- let o = S(a.value), s = [...new Set(o)].filter((e) => !y(e)), c = D({
183
- classNameAttribute: a,
184
- disallowedTokens: s,
185
- sourceCode: r,
186
- tokens: o
187
- });
188
- s.length !== 0 && t.report({
189
- node: a,
190
- messageId: "overridingAuraStyles",
191
- data: { classes: s.join(", ") },
192
- fix: c,
193
- suggest: c ? [{
194
- messageId: "removeOverridingAuraStyles",
195
- fix: c
196
- }] : void 0
197
- });
198
- }
199
- };
200
- }
32
+ function isRecord(value) {
33
+ return typeof value === 'object' && value !== null;
34
+ }
35
+ function isBaseNode(value) {
36
+ return isRecord(value) && typeof value.type === 'string';
37
+ }
38
+ function hasType(value, type) {
39
+ return isBaseNode(value) && value.type === type;
40
+ }
41
+ function isLiteralNode(value) {
42
+ return hasType(value, 'Literal');
43
+ }
44
+ function isTemplateLiteralNode(value) {
45
+ if (!isRecord(value)) {
46
+ return false;
47
+ }
48
+ const record = value;
49
+ const hasTemplateLiteralShape = Array.isArray(record.expressions) && Array.isArray(record.quasis);
50
+ return hasType(record, 'TemplateLiteral') && hasTemplateLiteralShape;
51
+ }
52
+ function isJsxExpressionContainerNode(value) {
53
+ return hasType(value, 'JSXExpressionContainer') && 'expression' in value;
54
+ }
55
+ function isCallExpressionNode(value) {
56
+ if (!isRecord(value)) {
57
+ return false;
58
+ }
59
+ const record = value;
60
+ const hasCallExpressionShape = Array.isArray(record.arguments) && 'callee' in record;
61
+ return hasType(record, 'CallExpression') && hasCallExpressionShape;
62
+ }
63
+ function isConditionalExpressionNode(value) {
64
+ return hasType(value, 'ConditionalExpression') && 'consequent' in value && 'alternate' in value;
65
+ }
66
+ function isLogicalExpressionNode(value) {
67
+ return hasType(value, 'LogicalExpression') && 'left' in value && 'right' in value;
68
+ }
69
+ function isArrayExpressionNode(value) {
70
+ if (!isRecord(value)) {
71
+ return false;
72
+ }
73
+ const record = value;
74
+ const hasArrayExpressionShape = Array.isArray(record.elements);
75
+ return hasType(record, 'ArrayExpression') && hasArrayExpressionShape;
76
+ }
77
+ function isJsxIdentifierNode(value) {
78
+ if (!isRecord(value)) {
79
+ return false;
80
+ }
81
+ const record = value;
82
+ const hasJsxIdentifierShape = typeof record.name === 'string';
83
+ return hasType(record, 'JSXIdentifier') && hasJsxIdentifierShape;
84
+ }
85
+ function isJsxAttributeNode(value) {
86
+ return hasType(value, 'JSXAttribute') && 'name' in value;
87
+ }
88
+ function isJsxOpeningElementNode(value) {
89
+ if (!isRecord(value)) {
90
+ return false;
91
+ }
92
+ const record = value;
93
+ const hasJsxOpeningElementShape = Array.isArray(record.attributes) && 'name' in record;
94
+ return hasType(record, 'JSXOpeningElement') && hasJsxOpeningElementShape;
95
+ }
96
+ function isImportDeclarationNode(value) {
97
+ if (!isRecord(value)) {
98
+ return false;
99
+ }
100
+ const record = value;
101
+ const hasImportDeclarationShape = Array.isArray(record.specifiers) && 'source' in record;
102
+ return hasType(record, 'ImportDeclaration') && hasImportDeclarationShape;
103
+ }
104
+ function getImportSourceValue(node) {
105
+ if (!isRecord(node.source)) {
106
+ return null;
107
+ }
108
+ return typeof node.source.value === 'string' ? node.source.value : null;
109
+ }
110
+ function getImportLocalName(specifier) {
111
+ if (!isRecord(specifier) || !('local' in specifier)) {
112
+ return null;
113
+ }
114
+ const local = specifier.local;
115
+ return isRecord(local) && typeof local.name === 'string' ? local.name : null;
116
+ }
117
+ function getUtilityToken(token) {
118
+ return token.trim().split(':').at(-1)?.replace(/!$/, '').replace(/^-/, '');
119
+ }
120
+ function isAllowedAuraLayoutClass(token) {
121
+ const utility = getUtilityToken(token);
122
+ if (!utility) {
123
+ return false;
124
+ }
125
+ return allowedAuraLayoutClassPatterns.some((pattern)=>pattern.test(utility));
126
+ }
127
+ function splitClassTokens(value) {
128
+ return value.split(/\s+/).map((token)=>token.trim()).filter(Boolean);
129
+ }
130
+ function getTemplateQuasiValue(quasi) {
131
+ return quasi.value?.cooked ?? '';
132
+ }
133
+ function collectClassTokens(node) {
134
+ if (!node) {
135
+ return [];
136
+ }
137
+ if (isLiteralNode(node)) {
138
+ return typeof node.value === 'string' ? splitClassTokens(node.value) : [];
139
+ }
140
+ if (isTemplateLiteralNode(node)) {
141
+ return node.quasis.flatMap((quasi)=>splitClassTokens(getTemplateQuasiValue(quasi)));
142
+ }
143
+ if (isJsxExpressionContainerNode(node)) {
144
+ return collectClassTokens(node.expression);
145
+ }
146
+ if (isCallExpressionNode(node)) {
147
+ return node.arguments.flatMap((argument)=>collectClassTokens(argument));
148
+ }
149
+ if (isConditionalExpressionNode(node)) {
150
+ return [
151
+ ...collectClassTokens(node.consequent),
152
+ ...collectClassTokens(node.alternate)
153
+ ];
154
+ }
155
+ if (isLogicalExpressionNode(node)) {
156
+ return [
157
+ ...collectClassTokens(node.left),
158
+ ...collectClassTokens(node.right)
159
+ ];
160
+ }
161
+ if (isArrayExpressionNode(node)) {
162
+ return node.elements.flatMap((element)=>collectClassTokens(element));
163
+ }
164
+ return [];
165
+ }
166
+ function getAuraComponentName(node) {
167
+ return isJsxIdentifierNode(node.name) ? node.name.name : null;
168
+ }
169
+ function getSanitizedTokenList(tokens) {
170
+ return tokens.filter(isAllowedAuraLayoutClass);
171
+ }
172
+ function getNodeText(sourceCode, node) {
173
+ if (!node.range) {
174
+ return null;
175
+ }
176
+ return sourceCode.text.slice(node.range[0], node.range[1]);
177
+ }
178
+ function getClassTextReplacement({ expressionNode, sourceCode, sanitizedTokens, valueNode }) {
179
+ const sanitizedValue = sanitizedTokens.join(' ');
180
+ if (isLiteralNode(valueNode)) {
181
+ return sanitizedValue === '' ? null : `"${sanitizedValue}"`;
182
+ }
183
+ if (!isJsxExpressionContainerNode(valueNode) || !expressionNode) {
184
+ return null;
185
+ }
186
+ if (isLiteralNode(expressionNode)) {
187
+ return sanitizedValue === '' ? null : `{${JSON.stringify(sanitizedValue)}}`;
188
+ }
189
+ if (isTemplateLiteralNode(expressionNode) && expressionNode.expressions.length === 0) {
190
+ return sanitizedValue === '' ? null : `{${JSON.stringify(sanitizedValue)}}`;
191
+ }
192
+ if (!isCallExpressionNode(expressionNode)) {
193
+ return null;
194
+ }
195
+ if (!isRecord(expressionNode.callee)) {
196
+ return null;
197
+ }
198
+ const calleeName = typeof expressionNode.callee.name === 'string' ? expressionNode.callee.name : null;
199
+ if (calleeName !== 'cn') {
200
+ return null;
201
+ }
202
+ const nextArguments = [];
203
+ for (const argument of expressionNode.arguments){
204
+ if (isLiteralNode(argument) && typeof argument.value === 'string') {
205
+ const nextValue = getSanitizedTokenList(splitClassTokens(argument.value)).join(' ');
206
+ if (nextValue) {
207
+ nextArguments.push(JSON.stringify(nextValue));
208
+ }
209
+ continue;
210
+ }
211
+ if (isTemplateLiteralNode(argument) && argument.expressions.length === 0) {
212
+ const cookedValue = getTemplateQuasiValue(argument.quasis[0] ?? {});
213
+ const nextValue = getSanitizedTokenList(splitClassTokens(cookedValue)).join(' ');
214
+ if (nextValue) {
215
+ nextArguments.push(JSON.stringify(nextValue));
216
+ }
217
+ continue;
218
+ }
219
+ if (!isBaseNode(argument)) {
220
+ return null;
221
+ }
222
+ const argumentText = getNodeText(sourceCode, argument);
223
+ if (argumentText === null) {
224
+ return null;
225
+ }
226
+ nextArguments.push(argumentText);
227
+ }
228
+ if (nextArguments.length === 0) {
229
+ return null;
230
+ }
231
+ return `{cn(${nextArguments.join(', ')})}`;
232
+ }
233
+ function getClassNameFixer({ classNameAttribute, disallowedTokens, sourceCode, tokens }) {
234
+ if (disallowedTokens.length === 0) {
235
+ return null;
236
+ }
237
+ const valueNode = classNameAttribute.value;
238
+ if (!valueNode) {
239
+ return null;
240
+ }
241
+ const expressionNode = isJsxExpressionContainerNode(valueNode) ? valueNode.expression : null;
242
+ const sanitizedTokens = getSanitizedTokenList(tokens);
243
+ const replacement = getClassTextReplacement({
244
+ expressionNode,
245
+ sanitizedTokens,
246
+ sourceCode,
247
+ valueNode
248
+ });
249
+ const range = classNameAttribute.range;
250
+ if (!range) {
251
+ return null;
252
+ }
253
+ return (fixer)=>{
254
+ if (replacement === null) {
255
+ return fixer.removeRange([
256
+ range[0] - 1,
257
+ range[1]
258
+ ]);
259
+ }
260
+ if (!isBaseNode(valueNode) || !valueNode.range) {
261
+ return null;
262
+ }
263
+ return fixer.replaceTextRange(valueNode.range, replacement);
264
+ };
265
+ }
266
+ export const auraNoOverridingStylesRule = {
267
+ meta: {
268
+ type: 'suggestion',
269
+ fixable: 'code',
270
+ hasSuggestions: true,
271
+ docs: {
272
+ description: 'Warn when consumers visually override Aura component styles via className'
273
+ },
274
+ schema: [],
275
+ messages: {
276
+ overridingAuraStyles: 'Overriding Aura styles: only layout and sizing utilities should be passed via className. Move visual styling into Aura variants, props, or composition instead. Offending classes: {{classes}}.',
277
+ removeOverridingAuraStyles: 'Remove disallowed Aura styling classes and keep only layout-safe utilities.'
278
+ }
279
+ },
280
+ create (context) {
281
+ const auraComponentNames = new Set();
282
+ const sourceCode = context.sourceCode;
283
+ return {
284
+ ImportDeclaration (node) {
285
+ if (!isImportDeclarationNode(node)) {
286
+ return;
287
+ }
288
+ const sourceValue = getImportSourceValue(node);
289
+ if (!sourceValue || !auraImportSources.has(sourceValue)) {
290
+ return;
291
+ }
292
+ for (const specifier of node.specifiers){
293
+ const localName = getImportLocalName(specifier);
294
+ if (localName) {
295
+ auraComponentNames.add(localName);
296
+ }
297
+ }
298
+ },
299
+ JSXOpeningElement (node) {
300
+ if (!isJsxOpeningElementNode(node)) {
301
+ return;
302
+ }
303
+ const componentName = getAuraComponentName(node);
304
+ if (!componentName || !auraComponentNames.has(componentName)) {
305
+ return;
306
+ }
307
+ const classNameAttribute = node.attributes.find((attribute)=>isJsxAttributeNode(attribute) && isJsxIdentifierNode(attribute.name) && attribute.name.name === 'className');
308
+ if (!classNameAttribute?.value) {
309
+ return;
310
+ }
311
+ const tokens = collectClassTokens(classNameAttribute.value);
312
+ const disallowedTokens = [
313
+ ...new Set(tokens)
314
+ ].filter((token)=>!isAllowedAuraLayoutClass(token));
315
+ const fix = getClassNameFixer({
316
+ classNameAttribute,
317
+ disallowedTokens,
318
+ sourceCode,
319
+ tokens
320
+ });
321
+ if (disallowedTokens.length === 0) {
322
+ return;
323
+ }
324
+ context.report({
325
+ node: classNameAttribute,
326
+ messageId: 'overridingAuraStyles',
327
+ data: {
328
+ classes: disallowedTokens.join(', ')
329
+ },
330
+ fix,
331
+ suggest: fix ? [
332
+ {
333
+ messageId: 'removeOverridingAuraStyles',
334
+ fix
335
+ }
336
+ ] : undefined
337
+ });
338
+ }
339
+ };
340
+ }
201
341
  };
202
- //#endregion
203
- export { O as auraNoOverridingStylesRule };
342
+
343
+ //# sourceMappingURL=no-overriding-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/eslint/no-overriding-styles.ts"],"sourcesContent":["import type { AST, Rule } from 'eslint';\n\ntype BaseNode = {\n range?: AST.Range;\n type: string;\n};\n\ntype LiteralNode = BaseNode & {\n type: 'Literal';\n value?: unknown;\n};\n\ntype TemplateElementNode = {\n value?: {\n cooked?: string | null;\n };\n};\n\ntype TemplateLiteralNode = BaseNode & {\n type: 'TemplateLiteral';\n expressions: unknown[];\n quasis: TemplateElementNode[];\n};\n\ntype JSXExpressionContainerNode = BaseNode & {\n expression: unknown;\n type: 'JSXExpressionContainer';\n};\n\ntype CallExpressionNode = BaseNode & {\n arguments: unknown[];\n callee: unknown;\n type: 'CallExpression';\n};\n\ntype ConditionalExpressionNode = BaseNode & {\n alternate: unknown;\n consequent: unknown;\n type: 'ConditionalExpression';\n};\n\ntype LogicalExpressionNode = BaseNode & {\n left: unknown;\n right: unknown;\n type: 'LogicalExpression';\n};\n\ntype ArrayExpressionNode = BaseNode & {\n elements: unknown[];\n type: 'ArrayExpression';\n};\n\ntype JSXIdentifierNode = BaseNode & {\n name: string;\n type: 'JSXIdentifier';\n};\n\ntype JSXAttributeNode = BaseNode & {\n name: unknown;\n type: 'JSXAttribute';\n value?: unknown;\n};\n\ntype JSXOpeningElementNode = BaseNode & {\n attributes: unknown[];\n name: unknown;\n type: 'JSXOpeningElement';\n};\n\ntype ImportDeclarationNode = BaseNode & {\n source: unknown;\n specifiers: unknown[];\n type: 'ImportDeclaration';\n};\n\nconst auraImportSources = new Set([\n '@cognite/aura/components',\n '@cognite/aura-labs/components',\n]);\n\nconst allowedAuraLayoutClassPatterns = [\n /^(block|inline|inline-block|flex|inline-flex|grid|inline-grid|contents|hidden)$/,\n /^(w|h|min-w|max-w|min-h|max-h|size|aspect)-.+$/,\n /^(m|mx|my|mt|mr|mb|ml|ms|me)-.+$/,\n /^space-[xy]-.+$/,\n /^gap(?:-[xy])?-.+$/,\n /^(grow|grow-0|shrink|shrink-0)$/,\n /^flex-(1|auto|initial|none|row|row-reverse|col|col-reverse|wrap|wrap-reverse|nowrap)$/,\n /^basis-.+$/,\n /^order-.+$/,\n /^grid-(cols|rows)-.+$/,\n /^auto-(cols|rows)-.+$/,\n /^(col|row)-(auto|span-.+|start-.+|end-.+)$/,\n /^justify-(start|end|center|between|around|evenly|stretch|normal)$/,\n /^items-(start|end|center|baseline|stretch)$/,\n /^content-(start|end|center|between|around|evenly|stretch|baseline)$/,\n /^self-(auto|start|end|center|stretch|baseline)$/,\n /^place-(items|content|self)-.+$/,\n /^justify-self-.+$/,\n /^(overflow|overflow-x|overflow-y|overscroll|overscroll-x|overscroll-y)-.+$/,\n /^(whitespace|break)-.+$/,\n /^(text-(left|center|right|justify|wrap|nowrap|balance|pretty))$/,\n /^(truncate|line-clamp-.+)$/,\n /^(static|fixed|absolute|relative|sticky)$/,\n /^(inset|inset-x|inset-y|top|right|bottom|left|start|end|z)-.+$/,\n /^(visible|invisible|isolate)$/,\n];\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null;\n}\n\nfunction isBaseNode(value: unknown): value is BaseNode {\n return isRecord(value) && typeof value.type === 'string';\n}\n\nfunction hasType(value: unknown, type: string): value is BaseNode {\n return isBaseNode(value) && value.type === type;\n}\n\nfunction isLiteralNode(value: unknown): value is LiteralNode {\n return hasType(value, 'Literal');\n}\n\nfunction isTemplateLiteralNode(value: unknown): value is TemplateLiteralNode {\n if (!isRecord(value)) {\n return false;\n }\n\n const record = value;\n const hasTemplateLiteralShape =\n Array.isArray(record.expressions) && Array.isArray(record.quasis);\n\n return hasType(record, 'TemplateLiteral') && hasTemplateLiteralShape;\n}\n\nfunction isJsxExpressionContainerNode(\n value: unknown\n): value is JSXExpressionContainerNode {\n return hasType(value, 'JSXExpressionContainer') && 'expression' in value;\n}\n\nfunction isCallExpressionNode(value: unknown): value is CallExpressionNode {\n if (!isRecord(value)) {\n return false;\n }\n\n const record = value;\n const hasCallExpressionShape =\n Array.isArray(record.arguments) && 'callee' in record;\n\n return hasType(record, 'CallExpression') && hasCallExpressionShape;\n}\n\nfunction isConditionalExpressionNode(\n value: unknown\n): value is ConditionalExpressionNode {\n return (\n hasType(value, 'ConditionalExpression') &&\n 'consequent' in value &&\n 'alternate' in value\n );\n}\n\nfunction isLogicalExpressionNode(\n value: unknown\n): value is LogicalExpressionNode {\n return (\n hasType(value, 'LogicalExpression') && 'left' in value && 'right' in value\n );\n}\n\nfunction isArrayExpressionNode(value: unknown): value is ArrayExpressionNode {\n if (!isRecord(value)) {\n return false;\n }\n\n const record = value;\n const hasArrayExpressionShape = Array.isArray(record.elements);\n\n return hasType(record, 'ArrayExpression') && hasArrayExpressionShape;\n}\n\nfunction isJsxIdentifierNode(value: unknown): value is JSXIdentifierNode {\n if (!isRecord(value)) {\n return false;\n }\n\n const record = value;\n const hasJsxIdentifierShape = typeof record.name === 'string';\n\n return hasType(record, 'JSXIdentifier') && hasJsxIdentifierShape;\n}\n\nfunction isJsxAttributeNode(value: unknown): value is JSXAttributeNode {\n return hasType(value, 'JSXAttribute') && 'name' in value;\n}\n\nfunction isJsxOpeningElementNode(\n value: unknown\n): value is JSXOpeningElementNode {\n if (!isRecord(value)) {\n return false;\n }\n\n const record = value;\n const hasJsxOpeningElementShape =\n Array.isArray(record.attributes) && 'name' in record;\n\n return hasType(record, 'JSXOpeningElement') && hasJsxOpeningElementShape;\n}\n\nfunction isImportDeclarationNode(\n value: unknown\n): value is ImportDeclarationNode {\n if (!isRecord(value)) {\n return false;\n }\n\n const record = value;\n const hasImportDeclarationShape =\n Array.isArray(record.specifiers) && 'source' in record;\n\n return hasType(record, 'ImportDeclaration') && hasImportDeclarationShape;\n}\n\nfunction getImportSourceValue(node: ImportDeclarationNode): string | null {\n if (!isRecord(node.source)) {\n return null;\n }\n\n return typeof node.source.value === 'string' ? node.source.value : null;\n}\n\nfunction getImportLocalName(specifier: unknown): string | null {\n if (!isRecord(specifier) || !('local' in specifier)) {\n return null;\n }\n\n const local = specifier.local;\n\n return isRecord(local) && typeof local.name === 'string' ? local.name : null;\n}\n\nfunction getUtilityToken(token: string): string | undefined {\n return token.trim().split(':').at(-1)?.replace(/!$/, '').replace(/^-/, '');\n}\n\nfunction isAllowedAuraLayoutClass(token: string): boolean {\n const utility = getUtilityToken(token);\n\n if (!utility) {\n return false;\n }\n\n return allowedAuraLayoutClassPatterns.some((pattern) =>\n pattern.test(utility)\n );\n}\n\nfunction splitClassTokens(value: string): string[] {\n return value\n .split(/\\s+/)\n .map((token) => token.trim())\n .filter(Boolean);\n}\n\nfunction getTemplateQuasiValue(quasi: TemplateElementNode): string {\n return quasi.value?.cooked ?? '';\n}\n\nfunction collectClassTokens(node: unknown): string[] {\n if (!node) {\n return [];\n }\n\n if (isLiteralNode(node)) {\n return typeof node.value === 'string' ? splitClassTokens(node.value) : [];\n }\n\n if (isTemplateLiteralNode(node)) {\n return node.quasis.flatMap((quasi) =>\n splitClassTokens(getTemplateQuasiValue(quasi))\n );\n }\n\n if (isJsxExpressionContainerNode(node)) {\n return collectClassTokens(node.expression);\n }\n\n if (isCallExpressionNode(node)) {\n return node.arguments.flatMap((argument) => collectClassTokens(argument));\n }\n\n if (isConditionalExpressionNode(node)) {\n return [\n ...collectClassTokens(node.consequent),\n ...collectClassTokens(node.alternate),\n ];\n }\n\n if (isLogicalExpressionNode(node)) {\n return [\n ...collectClassTokens(node.left),\n ...collectClassTokens(node.right),\n ];\n }\n\n if (isArrayExpressionNode(node)) {\n return node.elements.flatMap((element) => collectClassTokens(element));\n }\n\n return [];\n}\n\nfunction getAuraComponentName(node: JSXOpeningElementNode): string | null {\n return isJsxIdentifierNode(node.name) ? node.name.name : null;\n}\n\ntype RuleContext = Rule.RuleContext;\ntype ReportDescriptor = Parameters<RuleContext['report']>[0];\ntype RuleFix = NonNullable<ReportDescriptor['fix']>;\ntype RuleFixer = Parameters<RuleFix>[0];\n\nfunction getSanitizedTokenList(tokens: string[]): string[] {\n return tokens.filter(isAllowedAuraLayoutClass);\n}\n\nfunction getNodeText(\n sourceCode: RuleContext['sourceCode'],\n node: BaseNode\n): string | null {\n if (!node.range) {\n return null;\n }\n\n return sourceCode.text.slice(node.range[0], node.range[1]);\n}\n\nfunction getClassTextReplacement({\n expressionNode,\n sourceCode,\n sanitizedTokens,\n valueNode,\n}: {\n expressionNode: unknown;\n sanitizedTokens: string[];\n sourceCode: RuleContext['sourceCode'];\n valueNode: unknown;\n}): string | null {\n const sanitizedValue = sanitizedTokens.join(' ');\n\n if (isLiteralNode(valueNode)) {\n return sanitizedValue === '' ? null : `\"${sanitizedValue}\"`;\n }\n\n if (!isJsxExpressionContainerNode(valueNode) || !expressionNode) {\n return null;\n }\n\n if (isLiteralNode(expressionNode)) {\n return sanitizedValue === '' ? null : `{${JSON.stringify(sanitizedValue)}}`;\n }\n\n if (\n isTemplateLiteralNode(expressionNode) &&\n expressionNode.expressions.length === 0\n ) {\n return sanitizedValue === '' ? null : `{${JSON.stringify(sanitizedValue)}}`;\n }\n\n if (!isCallExpressionNode(expressionNode)) {\n return null;\n }\n\n if (!isRecord(expressionNode.callee)) {\n return null;\n }\n\n const calleeName =\n typeof expressionNode.callee.name === 'string'\n ? expressionNode.callee.name\n : null;\n\n if (calleeName !== 'cn') {\n return null;\n }\n\n const nextArguments: string[] = [];\n\n for (const argument of expressionNode.arguments) {\n if (isLiteralNode(argument) && typeof argument.value === 'string') {\n const nextValue = getSanitizedTokenList(\n splitClassTokens(argument.value)\n ).join(' ');\n\n if (nextValue) {\n nextArguments.push(JSON.stringify(nextValue));\n }\n continue;\n }\n\n if (isTemplateLiteralNode(argument) && argument.expressions.length === 0) {\n const cookedValue = getTemplateQuasiValue(argument.quasis[0] ?? {});\n const nextValue = getSanitizedTokenList(\n splitClassTokens(cookedValue)\n ).join(' ');\n\n if (nextValue) {\n nextArguments.push(JSON.stringify(nextValue));\n }\n continue;\n }\n\n if (!isBaseNode(argument)) {\n return null;\n }\n\n const argumentText = getNodeText(sourceCode, argument);\n\n if (argumentText === null) {\n return null;\n }\n\n nextArguments.push(argumentText);\n }\n\n if (nextArguments.length === 0) {\n return null;\n }\n\n return `{cn(${nextArguments.join(', ')})}`;\n}\n\nfunction getClassNameFixer({\n classNameAttribute,\n disallowedTokens,\n sourceCode,\n tokens,\n}: {\n classNameAttribute: JSXAttributeNode;\n disallowedTokens: string[];\n sourceCode: RuleContext['sourceCode'];\n tokens: string[];\n}): RuleFix | null {\n if (disallowedTokens.length === 0) {\n return null;\n }\n\n const valueNode = classNameAttribute.value;\n\n if (!valueNode) {\n return null;\n }\n\n const expressionNode = isJsxExpressionContainerNode(valueNode)\n ? valueNode.expression\n : null;\n const sanitizedTokens = getSanitizedTokenList(tokens);\n const replacement = getClassTextReplacement({\n expressionNode,\n sanitizedTokens,\n sourceCode,\n valueNode,\n });\n\n const range = classNameAttribute.range;\n\n if (!range) {\n return null;\n }\n\n return (fixer: RuleFixer) => {\n if (replacement === null) {\n return fixer.removeRange([range[0] - 1, range[1]]);\n }\n\n if (!isBaseNode(valueNode) || !valueNode.range) {\n return null;\n }\n\n return fixer.replaceTextRange(valueNode.range, replacement);\n };\n}\n\nexport const auraNoOverridingStylesRule: Rule.RuleModule = {\n meta: {\n type: 'suggestion',\n fixable: 'code',\n hasSuggestions: true,\n docs: {\n description:\n 'Warn when consumers visually override Aura component styles via className',\n },\n schema: [],\n messages: {\n overridingAuraStyles:\n 'Overriding Aura styles: only layout and sizing utilities should be passed via className. Move visual styling into Aura variants, props, or composition instead. Offending classes: {{classes}}.',\n removeOverridingAuraStyles:\n 'Remove disallowed Aura styling classes and keep only layout-safe utilities.',\n },\n },\n create(context: RuleContext) {\n const auraComponentNames = new Set<string>();\n const sourceCode = context.sourceCode;\n\n return {\n ImportDeclaration(node: unknown) {\n if (!isImportDeclarationNode(node)) {\n return;\n }\n\n const sourceValue = getImportSourceValue(node);\n\n if (!sourceValue || !auraImportSources.has(sourceValue)) {\n return;\n }\n\n for (const specifier of node.specifiers) {\n const localName = getImportLocalName(specifier);\n\n if (localName) {\n auraComponentNames.add(localName);\n }\n }\n },\n JSXOpeningElement(node: unknown) {\n if (!isJsxOpeningElementNode(node)) {\n return;\n }\n\n const componentName = getAuraComponentName(node);\n\n if (!componentName || !auraComponentNames.has(componentName)) {\n return;\n }\n\n const classNameAttribute = node.attributes.find(\n (attribute): attribute is JSXAttributeNode =>\n isJsxAttributeNode(attribute) &&\n isJsxIdentifierNode(attribute.name) &&\n attribute.name.name === 'className'\n );\n\n if (!classNameAttribute?.value) {\n return;\n }\n\n const tokens = collectClassTokens(classNameAttribute.value);\n const disallowedTokens = [...new Set(tokens)].filter(\n (token) => !isAllowedAuraLayoutClass(token)\n );\n const fix = getClassNameFixer({\n classNameAttribute,\n disallowedTokens,\n sourceCode,\n tokens,\n });\n\n if (disallowedTokens.length === 0) {\n return;\n }\n\n context.report({\n node: classNameAttribute,\n messageId: 'overridingAuraStyles',\n data: {\n classes: disallowedTokens.join(', '),\n },\n fix,\n suggest: fix\n ? [\n {\n messageId: 'removeOverridingAuraStyles',\n fix,\n },\n ]\n : undefined,\n });\n },\n };\n },\n};\n"],"names":["auraImportSources","Set","allowedAuraLayoutClassPatterns","isRecord","value","isBaseNode","type","hasType","isLiteralNode","isTemplateLiteralNode","record","hasTemplateLiteralShape","Array","isArray","expressions","quasis","isJsxExpressionContainerNode","isCallExpressionNode","hasCallExpressionShape","arguments","isConditionalExpressionNode","isLogicalExpressionNode","isArrayExpressionNode","hasArrayExpressionShape","elements","isJsxIdentifierNode","hasJsxIdentifierShape","name","isJsxAttributeNode","isJsxOpeningElementNode","hasJsxOpeningElementShape","attributes","isImportDeclarationNode","hasImportDeclarationShape","specifiers","getImportSourceValue","node","source","getImportLocalName","specifier","local","getUtilityToken","token","trim","split","at","replace","isAllowedAuraLayoutClass","utility","some","pattern","test","splitClassTokens","map","filter","Boolean","getTemplateQuasiValue","quasi","cooked","collectClassTokens","flatMap","expression","argument","consequent","alternate","left","right","element","getAuraComponentName","getSanitizedTokenList","tokens","getNodeText","sourceCode","range","text","slice","getClassTextReplacement","expressionNode","sanitizedTokens","valueNode","sanitizedValue","join","JSON","stringify","length","callee","calleeName","nextArguments","nextValue","push","cookedValue","argumentText","getClassNameFixer","classNameAttribute","disallowedTokens","replacement","fixer","removeRange","replaceTextRange","auraNoOverridingStylesRule","meta","fixable","hasSuggestions","docs","description","schema","messages","overridingAuraStyles","removeOverridingAuraStyles","create","context","auraComponentNames","ImportDeclaration","sourceValue","has","localName","add","JSXOpeningElement","componentName","find","attribute","fix","report","messageId","data","classes","suggest","undefined"],"mappings":"AA2EA,MAAMA,oBAAoB,IAAIC,IAAI;IAChC;IACA;CACD;AAED,MAAMC,iCAAiC;IACrC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAED,SAASC,SAASC,KAAc;IAC9B,OAAO,OAAOA,UAAU,YAAYA,UAAU;AAChD;AAEA,SAASC,WAAWD,KAAc;IAChC,OAAOD,SAASC,UAAU,OAAOA,MAAME,IAAI,KAAK;AAClD;AAEA,SAASC,QAAQH,KAAc,EAAEE,IAAY;IAC3C,OAAOD,WAAWD,UAAUA,MAAME,IAAI,KAAKA;AAC7C;AAEA,SAASE,cAAcJ,KAAc;IACnC,OAAOG,QAAQH,OAAO;AACxB;AAEA,SAASK,sBAAsBL,KAAc;IAC3C,IAAI,CAACD,SAASC,QAAQ;QACpB,OAAO;IACT;IAEA,MAAMM,SAASN;IACf,MAAMO,0BACJC,MAAMC,OAAO,CAACH,OAAOI,WAAW,KAAKF,MAAMC,OAAO,CAACH,OAAOK,MAAM;IAElE,OAAOR,QAAQG,QAAQ,sBAAsBC;AAC/C;AAEA,SAASK,6BACPZ,KAAc;IAEd,OAAOG,QA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MyD;oBACN8B,WAAW;oBACXC,MAAM;wBACJC,SAAS/B,iBAAiBb,IAAI,CAAC;oBACjC;oBACAwC;oBACAK,SAASL,MACL;wBACE;4BACEE,WAAW;4BACXF;wBACF;qBACD,GACDM;gBACN;YACF;QACF;IACF;AACF,EAAE"}
@@ -1 +1 @@
1
- export * from '@tabler/icons-react';
1
+ export * from "@tabler/icons-react";
@@ -1 +1,3 @@
1
1
  export * from "@tabler/icons-react";
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/icons/index.ts"],"sourcesContent":["export * from '@tabler/icons-react';\n"],"names":[],"mappings":"AAAA,cAAc,sBAAsB"}