@cognite/aura 0.3.4 → 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.
- package/CHANGELOG.md +274 -0
- package/DESIGN.md +664 -281
- package/LICENSE +21 -0
- package/README.md +48 -13
- package/dist/colors-deprecated.css +618 -0
- package/dist/colors.css +803 -830
- package/dist/components/index.d.ts +63 -57
- package/dist/components/index.js +62 -59
- package/dist/components/index.js.map +1 -0
- package/dist/components/ui/core/accordion/accordion.d.ts +19 -18
- package/dist/components/ui/core/accordion/accordion.js +99 -78
- package/dist/components/ui/core/accordion/accordion.js.map +1 -0
- package/dist/components/ui/core/action-toolbar/action-toolbar-motion.d.ts +8 -0
- package/dist/components/ui/core/action-toolbar/action-toolbar-motion.js +132 -0
- package/dist/components/ui/core/action-toolbar/action-toolbar-motion.js.map +1 -0
- package/dist/components/ui/core/action-toolbar/action-toolbar.d.ts +31 -31
- package/dist/components/ui/core/action-toolbar/action-toolbar.js +156 -106
- package/dist/components/ui/core/action-toolbar/action-toolbar.js.map +1 -0
- package/dist/components/ui/core/alert/alert.d.ts +25 -25
- package/dist/components/ui/core/alert/alert.gallery.d.ts +2 -0
- package/dist/components/ui/core/alert/alert.gallery.js +54 -0
- package/dist/components/ui/core/alert/alert.gallery.js.map +1 -0
- package/dist/components/ui/core/alert/alert.js +181 -152
- package/dist/components/ui/core/alert/alert.js.map +1 -0
- package/dist/components/ui/core/avatar/avatar.d.ts +10 -9
- package/dist/components/ui/core/avatar/avatar.gallery.d.ts +2 -0
- package/dist/components/ui/core/avatar/avatar.gallery.js +67 -0
- package/dist/components/ui/core/avatar/avatar.gallery.js.map +1 -0
- package/dist/components/ui/core/avatar/avatar.js +75 -65
- package/dist/components/ui/core/avatar/avatar.js.map +1 -0
- package/dist/components/ui/core/badge/badge.d.ts +13 -12
- package/dist/components/ui/core/badge/badge.gallery.d.ts +2 -0
- package/dist/components/ui/core/badge/badge.gallery.js +64 -0
- package/dist/components/ui/core/badge/badge.gallery.js.map +1 -0
- package/dist/components/ui/core/badge/badge.js +88 -72
- package/dist/components/ui/core/badge/badge.js.map +1 -0
- package/dist/components/ui/core/banner/banner.d.ts +18 -18
- package/dist/components/ui/core/banner/banner.gallery.d.ts +2 -0
- package/dist/components/ui/core/banner/banner.gallery.js +56 -0
- package/dist/components/ui/core/banner/banner.gallery.js.map +1 -0
- package/dist/components/ui/core/banner/banner.js +179 -142
- package/dist/components/ui/core/banner/banner.js.map +1 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.d.ts +12 -12
- package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.d.ts +2 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js +31 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.gallery.js.map +1 -0
- package/dist/components/ui/core/breadcrumb/breadcrumb.js +139 -104
- package/dist/components/ui/core/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/ui/core/button/button.d.ts +7 -7
- package/dist/components/ui/core/button/button.gallery.d.ts +2 -0
- package/dist/components/ui/core/button/button.gallery.js +76 -0
- package/dist/components/ui/core/button/button.gallery.js.map +1 -0
- package/dist/components/ui/core/button/button.js +57 -47
- package/dist/components/ui/core/button/button.js.map +1 -0
- package/dist/components/ui/core/button-group/button-group.d.ts +9 -9
- package/dist/components/ui/core/button-group/button-group.gallery.d.ts +2 -0
- package/dist/components/ui/core/button-group/button-group.gallery.js +62 -0
- package/dist/components/ui/core/button-group/button-group.gallery.js.map +1 -0
- package/dist/components/ui/core/button-group/button-group.js +50 -40
- package/dist/components/ui/core/button-group/button-group.js.map +1 -0
- package/dist/components/ui/core/calendar/calendar-header.d.ts +7 -7
- package/dist/components/ui/core/calendar/calendar-header.js +102 -63
- package/dist/components/ui/core/calendar/calendar-header.js.map +1 -0
- package/dist/components/ui/core/calendar/calendar-utils.d.ts +30 -30
- package/dist/components/ui/core/calendar/calendar-utils.js +116 -39
- package/dist/components/ui/core/calendar/calendar-utils.js.map +1 -0
- package/dist/components/ui/core/calendar/calendar.d.ts +10 -10
- package/dist/components/ui/core/calendar/calendar.js +95 -66
- package/dist/components/ui/core/calendar/calendar.js.map +1 -0
- package/dist/components/ui/core/calendar/constants.js +3 -0
- package/dist/components/ui/core/calendar/constants.js.map +1 -0
- package/dist/components/ui/core/card/card.d.ts +20 -20
- package/dist/components/ui/core/card/card.js +133 -104
- package/dist/components/ui/core/card/card.js.map +1 -0
- package/dist/components/ui/core/chart/chart.d.ts +55 -53
- package/dist/components/ui/core/chart/chart.js +196 -116
- package/dist/components/ui/core/chart/chart.js.map +1 -0
- package/dist/components/ui/core/chart/index.d.ts +2 -2
- package/dist/components/ui/core/chart/index.js +3 -2
- package/dist/components/ui/core/chart/index.js.map +1 -0
- package/dist/components/ui/core/checkbox/checkbox.d.ts +9 -9
- package/dist/components/ui/core/checkbox/checkbox.gallery.d.ts +2 -0
- package/dist/components/ui/core/checkbox/checkbox.gallery.js +36 -0
- package/dist/components/ui/core/checkbox/checkbox.gallery.js.map +1 -0
- package/dist/components/ui/core/checkbox/checkbox.js +88 -68
- package/dist/components/ui/core/checkbox/checkbox.js.map +1 -0
- package/dist/components/ui/core/checkbox/checkbox.metadata.d.ts +1 -1
- package/dist/components/ui/core/checkbox/checkbox.metadata.js +6 -7
- package/dist/components/ui/core/checkbox/checkbox.metadata.js.map +1 -0
- package/dist/components/ui/core/code-block/code-block.d.ts +19 -19
- package/dist/components/ui/core/code-block/code-block.js +260 -175
- package/dist/components/ui/core/code-block/code-block.js.map +1 -0
- package/dist/components/ui/core/collapsible/collapsible.d.ts +5 -5
- package/dist/components/ui/core/collapsible/collapsible.gallery.d.ts +2 -0
- package/dist/components/ui/core/collapsible/collapsible.gallery.js +39 -0
- package/dist/components/ui/core/collapsible/collapsible.gallery.js.map +1 -0
- package/dist/components/ui/core/collapsible/collapsible.js +36 -30
- package/dist/components/ui/core/collapsible/collapsible.js.map +1 -0
- package/dist/components/ui/core/combobox/combobox.d.ts +13 -13
- package/dist/components/ui/core/combobox/combobox.js +89 -40
- package/dist/components/ui/core/combobox/combobox.js.map +1 -0
- package/dist/components/ui/core/command/command.d.ts +20 -18
- package/dist/components/ui/core/command/command.js +137 -85
- package/dist/components/ui/core/command/command.js.map +1 -0
- package/dist/components/ui/core/conversation/conversation.d.ts +14 -0
- package/dist/components/ui/core/conversation/conversation.js +51 -0
- package/dist/components/ui/core/conversation/conversation.js.map +1 -0
- package/dist/components/ui/core/count/count.d.ts +8 -6
- package/dist/components/ui/core/count/count.gallery.d.ts +2 -0
- package/dist/components/ui/core/count/count.gallery.js +55 -0
- package/dist/components/ui/core/count/count.gallery.js.map +1 -0
- package/dist/components/ui/core/count/count.js +51 -21
- package/dist/components/ui/core/count/count.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-cell.d.ts +5 -7
- package/dist/components/ui/core/data-grid/data-grid-cell.js +19 -0
- package/dist/components/ui/core/data-grid/data-grid-cell.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-column-filter.d.ts +4 -0
- package/dist/components/ui/core/data-grid/data-grid-column-filter.js +13 -0
- package/dist/components/ui/core/data-grid/data-grid-column-filter.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-column-resizer.d.ts +8 -0
- package/dist/components/ui/core/data-grid/data-grid-column-resizer.js +25 -0
- package/dist/components/ui/core/data-grid/data-grid-column-resizer.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-clauses.d.ts +14 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js +36 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-clauses.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-panel.d.ts +43 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-panel.js +287 -0
- package/dist/components/ui/core/data-grid/data-grid-filter-panel.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-footer.d.ts +6 -0
- package/dist/components/ui/core/data-grid/data-grid-footer.js +34 -0
- package/dist/components/ui/core/data-grid/data-grid-footer.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-header-row.d.ts +10 -10
- package/dist/components/ui/core/data-grid/data-grid-header-row.js +86 -0
- package/dist/components/ui/core/data-grid/data-grid-header-row.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-header.d.ts +11 -0
- package/dist/components/ui/core/data-grid/data-grid-header.js +67 -0
- package/dist/components/ui/core/data-grid/data-grid-header.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-row.d.ts +13 -15
- package/dist/components/ui/core/data-grid/data-grid-row.js +118 -0
- package/dist/components/ui/core/data-grid/data-grid-row.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-state.d.ts +15 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-state.js +32 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-state.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.d.ts +11 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js +129 -0
- package/dist/components/ui/core/data-grid/data-grid-selection-toolbar.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid-selection.types.d.ts +24 -0
- package/dist/components/ui/core/data-grid/data-grid-selection.types.js +3 -0
- package/dist/components/ui/core/data-grid/data-grid-selection.types.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid.d.ts +125 -35
- package/dist/components/ui/core/data-grid/data-grid.fixtures.d.ts +7 -7
- package/dist/components/ui/core/data-grid/data-grid.fixtures.js +139 -0
- package/dist/components/ui/core/data-grid/data-grid.fixtures.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid.js +542 -0
- package/dist/components/ui/core/data-grid/data-grid.js.map +1 -0
- package/dist/components/ui/core/data-grid/data-grid.utils.d.ts +3 -4
- package/dist/components/ui/core/data-grid/data-grid.utils.js +53 -0
- package/dist/components/ui/core/data-grid/data-grid.utils.js.map +1 -0
- package/dist/components/ui/core/data-grid/index.d.ts +6 -0
- package/dist/components/ui/core/data-grid/index.js +6 -0
- package/dist/components/ui/core/data-grid/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.d.ts +11 -13
- package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js +85 -61
- package/dist/components/ui/core/date-time-pickers/date-picker/date-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/index.d.ts +3 -3
- package/dist/components/ui/core/date-time-pickers/date-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/types.d.ts +14 -14
- package/dist/components/ui/core/date-time-pickers/date-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.d.ts +2 -2
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js +51 -36
- package/dist/components/ui/core/date-time-pickers/date-picker/use-date-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.d.ts +11 -13
- package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +89 -64
- package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/index.d.ts +3 -3
- package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +20 -20
- package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.d.ts +4 -4
- package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +95 -60
- package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.d.ts +15 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js +120 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/date-time-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/index.d.ts +3 -1
- package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/types.d.ts +25 -32
- package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.d.ts +2 -2
- package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js +78 -0
- package/dist/components/ui/core/date-time-pickers/date-time-picker/use-date-time-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.d.ts +13 -15
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +165 -119
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.d.ts +3 -3
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +37 -37
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.d.ts +3 -3
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +163 -104
- package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/index.d.ts +17 -12
- package/dist/components/ui/core/date-time-pickers/index.js +10 -6
- package/dist/components/ui/core/date-time-pickers/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.d.ts +5 -5
- package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +52 -42
- package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/constants.d.ts +6 -1
- package/dist/components/ui/core/date-time-pickers/shared/constants.js +23 -0
- package/dist/components/ui/core/date-time-pickers/shared/constants.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.d.ts +16 -15
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +87 -64
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.d.ts +10 -9
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +89 -38
- package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.d.ts +5 -5
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +34 -23
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.d.ts +23 -23
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +95 -52
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.d.ts +5 -5
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +22 -18
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.d.ts +19 -19
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js +41 -24
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-single-date-state.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.d.ts +13 -13
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +33 -24
- package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.d.ts +5 -5
- package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +9 -4
- package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.d.ts +13 -9
- package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +22 -17
- package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.d.ts +2 -2
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.d.ts +13 -13
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js +49 -40
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-panel/time-picker-panel.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.d.ts +7 -7
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +41 -34
- package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/index.d.ts +3 -3
- package/dist/components/ui/core/date-time-pickers/time-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.d.ts +12 -14
- package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js +99 -79
- package/dist/components/ui/core/date-time-pickers/time-picker/time-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/types.d.ts +20 -20
- package/dist/components/ui/core/date-time-pickers/time-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.d.ts +2 -2
- package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js +63 -41
- package/dist/components/ui/core/date-time-pickers/time-picker/use-time-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/index.d.ts +3 -1
- package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js +3 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/index.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.d.ts +14 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js +115 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/time-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/types.d.ts +30 -36
- package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js +3 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/types.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.d.ts +2 -2
- package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js +145 -0
- package/dist/components/ui/core/date-time-pickers/time-range-picker/use-time-range-picker.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-input.d.ts +56 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-input.js +67 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-input.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.d.ts +18 -18
- package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js +42 -0
- package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/format-utils.d.ts +31 -29
- package/dist/components/ui/core/date-time-pickers/utils/format-utils.js +56 -0
- package/dist/components/ui/core/date-time-pickers/utils/format-utils.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/segment-utils.d.ts +21 -21
- package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js +170 -0
- package/dist/components/ui/core/date-time-pickers/utils/segment-utils.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/time-utils.d.ts +28 -28
- package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +88 -7
- package/dist/components/ui/core/date-time-pickers/utils/time-utils.js.map +1 -0
- package/dist/components/ui/core/date-time-pickers/utils/time-validation.d.ts +17 -17
- package/dist/components/ui/core/date-time-pickers/utils/time-validation.js +43 -0
- package/dist/components/ui/core/date-time-pickers/utils/time-validation.js.map +1 -0
- package/dist/components/ui/core/dialog/dialog.d.ts +12 -9
- package/dist/components/ui/core/dialog/dialog.js +90 -82
- package/dist/components/ui/core/dialog/dialog.js.map +1 -0
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +22 -19
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +204 -149
- package/dist/components/ui/core/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/ui/core/empty-state/empty-state.context.d.ts +4 -4
- package/dist/components/ui/core/empty-state/empty-state.context.js +8 -5
- package/dist/components/ui/core/empty-state/empty-state.context.js.map +1 -0
- package/dist/components/ui/core/empty-state/empty-state.d.ts +14 -14
- package/dist/components/ui/core/empty-state/empty-state.js +96 -82
- package/dist/components/ui/core/empty-state/empty-state.js.map +1 -0
- package/dist/components/ui/core/helper-text/helper-text.d.ts +7 -7
- package/dist/components/ui/core/helper-text/helper-text.js +55 -36
- package/dist/components/ui/core/helper-text/helper-text.js.map +1 -0
- package/dist/components/ui/core/hover-card/hover-card.d.ts +7 -6
- package/dist/components/ui/core/hover-card/hover-card.js +56 -52
- package/dist/components/ui/core/hover-card/hover-card.js.map +1 -0
- package/dist/components/ui/core/inline-citation/inline-citation.d.ts +26 -25
- package/dist/components/ui/core/inline-citation/inline-citation.js +121 -97
- package/dist/components/ui/core/inline-citation/inline-citation.js.map +1 -0
- package/dist/components/ui/core/input/input.d.ts +2 -2
- package/dist/components/ui/core/input/input.gallery.d.ts +2 -0
- package/dist/components/ui/core/input/input.gallery.js +89 -0
- package/dist/components/ui/core/input/input.gallery.js.map +1 -0
- package/dist/components/ui/core/input/input.js +15 -13
- package/dist/components/ui/core/input/input.js.map +1 -0
- package/dist/components/ui/core/input-group/input-group.d.ts +25 -14
- package/dist/components/ui/core/input-group/input-group.js +149 -76
- package/dist/components/ui/core/input-group/input-group.js.map +1 -0
- package/dist/components/ui/core/item/item.d.ts +20 -0
- package/dist/components/ui/core/item/item.js +93 -0
- package/dist/components/ui/core/item/item.js.map +1 -0
- package/dist/components/ui/core/kbd/kbd.d.ts +3 -3
- package/dist/components/ui/core/kbd/kbd.js +24 -20
- package/dist/components/ui/core/kbd/kbd.js.map +1 -0
- package/dist/components/ui/core/label/label.d.ts +3 -3
- package/dist/components/ui/core/label/label.gallery.d.ts +2 -0
- package/dist/components/ui/core/label/label.gallery.js +57 -0
- package/dist/components/ui/core/label/label.gallery.js.map +1 -0
- package/dist/components/ui/core/label/label.js +33 -26
- package/dist/components/ui/core/label/label.js.map +1 -0
- package/dist/components/ui/core/loader/loader.d.ts +6 -6
- package/dist/components/ui/core/loader/loader.js +97 -80
- package/dist/components/ui/core/loader/loader.js.map +1 -0
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +8 -9
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +18 -12
- package/dist/components/ui/core/message/message-response-default-streamdown-controls.js.map +1 -0
- package/dist/components/ui/core/message/message-response-math-plugin.d.ts +3 -0
- package/dist/components/ui/core/message/message-response-math-plugin.js +6 -0
- package/dist/components/ui/core/message/message-response-math-plugin.js.map +1 -0
- package/dist/components/ui/core/message/message.d.ts +27 -23
- package/dist/components/ui/core/message/message.js +458 -316
- package/dist/components/ui/core/message/message.js.map +1 -0
- package/dist/components/ui/core/overflow-list/overflow-list.d.ts +21 -0
- package/dist/components/ui/core/overflow-list/overflow-list.js +197 -0
- package/dist/components/ui/core/overflow-list/overflow-list.js.map +1 -0
- package/dist/components/ui/core/overflow-list/overflow-list.utils.d.ts +37 -35
- package/dist/components/ui/core/overflow-list/overflow-list.utils.js +206 -0
- package/dist/components/ui/core/overflow-list/overflow-list.utils.js.map +1 -0
- package/dist/components/ui/core/pagination/pagination-size-context.d.ts +2 -2
- package/dist/components/ui/core/pagination/pagination-size-context.js +6 -5
- package/dist/components/ui/core/pagination/pagination-size-context.js.map +1 -0
- package/dist/components/ui/core/pagination/pagination-teleport.d.ts +9 -9
- package/dist/components/ui/core/pagination/pagination-teleport.js +127 -84
- package/dist/components/ui/core/pagination/pagination-teleport.js.map +1 -0
- package/dist/components/ui/core/pagination/pagination-teleport.utils.js +6 -6
- package/dist/components/ui/core/pagination/pagination-teleport.utils.js.map +1 -0
- package/dist/components/ui/core/pagination/pagination.d.ts +39 -39
- package/dist/components/ui/core/pagination/pagination.js +294 -234
- package/dist/components/ui/core/pagination/pagination.js.map +1 -0
- package/dist/components/ui/core/popover/popover.d.ts +12 -11
- package/dist/components/ui/core/popover/popover.js +104 -89
- package/dist/components/ui/core/popover/popover.js.map +1 -0
- package/dist/components/ui/core/progress/progress.d.ts +9 -8
- package/dist/components/ui/core/progress/progress.js +50 -35
- package/dist/components/ui/core/progress/progress.js.map +1 -0
- package/dist/components/ui/core/prompt-input/prompt-input.d.ts +27 -27
- package/dist/components/ui/core/prompt-input/prompt-input.js +342 -271
- package/dist/components/ui/core/prompt-input/prompt-input.js.map +1 -0
- package/dist/components/ui/core/radio-group/radio-group.d.ts +12 -12
- package/dist/components/ui/core/radio-group/radio-group.gallery.d.ts +2 -0
- package/dist/components/ui/core/radio-group/radio-group.gallery.js +44 -0
- package/dist/components/ui/core/radio-group/radio-group.gallery.js.map +1 -0
- package/dist/components/ui/core/radio-group/radio-group.js +88 -58
- package/dist/components/ui/core/radio-group/radio-group.js.map +1 -0
- package/dist/components/ui/core/reasoning/reasoning.d.ts +7 -7
- package/dist/components/ui/core/reasoning/reasoning.js +68 -56
- package/dist/components/ui/core/reasoning/reasoning.js.map +1 -0
- package/dist/components/ui/core/scroll-area/scroll-area.d.ts +4 -4
- package/dist/components/ui/core/scroll-area/scroll-area.js +50 -40
- package/dist/components/ui/core/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/ui/core/search/search.d.ts +8 -8
- package/dist/components/ui/core/search/search.js +122 -76
- package/dist/components/ui/core/search/search.js.map +1 -0
- package/dist/components/ui/core/segmented-control/segmented-control.d.ts +17 -11
- package/dist/components/ui/core/segmented-control/segmented-control.js +204 -108
- package/dist/components/ui/core/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/ui/core/select/select.d.ts +33 -26
- package/dist/components/ui/core/select/select.js +262 -168
- package/dist/components/ui/core/select/select.js.map +1 -0
- package/dist/components/ui/core/separator/separator.d.ts +2 -2
- package/dist/components/ui/core/separator/separator.gallery.d.ts +2 -0
- package/dist/components/ui/core/separator/separator.gallery.js +63 -0
- package/dist/components/ui/core/separator/separator.gallery.js.map +1 -0
- package/dist/components/ui/core/separator/separator.js +13 -13
- package/dist/components/ui/core/separator/separator.js.map +1 -0
- package/dist/components/ui/core/shimmer/shimmer.d.ts +8 -8
- package/dist/components/ui/core/shimmer/shimmer.js +64 -40
- package/dist/components/ui/core/shimmer/shimmer.js.map +1 -0
- package/dist/components/ui/core/skeleton/skeleton.d.ts +2 -2
- package/dist/components/ui/core/skeleton/skeleton.gallery.d.ts +2 -0
- package/dist/components/ui/core/skeleton/skeleton.gallery.js +22 -0
- package/dist/components/ui/core/skeleton/skeleton.gallery.js.map +1 -0
- package/dist/components/ui/core/skeleton/skeleton.js +13 -13
- package/dist/components/ui/core/skeleton/skeleton.js.map +1 -0
- package/dist/components/ui/core/slider/slider.d.ts +7 -7
- package/dist/components/ui/core/slider/slider.gallery.d.ts +2 -0
- package/dist/components/ui/core/slider/slider.gallery.js +62 -0
- package/dist/components/ui/core/slider/slider.gallery.js.map +1 -0
- package/dist/components/ui/core/slider/slider.js +51 -39
- package/dist/components/ui/core/slider/slider.js.map +1 -0
- package/dist/components/ui/core/sonner-toast/sonner-toast.d.ts +2 -2
- package/dist/components/ui/core/sonner-toast/sonner-toast.js +67 -54
- package/dist/components/ui/core/sonner-toast/sonner-toast.js.map +1 -0
- package/dist/components/ui/core/sources/sources.d.ts +12 -12
- package/dist/components/ui/core/sources/sources.js +87 -58
- package/dist/components/ui/core/sources/sources.js.map +1 -0
- package/dist/components/ui/core/status-text/status-text.d.ts +4 -0
- package/dist/components/ui/core/status-text/status-text.js +14 -0
- package/dist/components/ui/core/status-text/status-text.js.map +1 -0
- package/dist/components/ui/core/switch/switch.d.ts +9 -9
- package/dist/components/ui/core/switch/switch.gallery.d.ts +2 -0
- package/dist/components/ui/core/switch/switch.gallery.js +67 -0
- package/dist/components/ui/core/switch/switch.gallery.js.map +1 -0
- package/dist/components/ui/core/switch/switch.js +83 -61
- package/dist/components/ui/core/switch/switch.js.map +1 -0
- package/dist/components/ui/core/switch/switch.metadata.d.ts +1 -1
- package/dist/components/ui/core/switch/switch.metadata.js +8 -0
- package/dist/components/ui/core/switch/switch.metadata.js.map +1 -0
- package/dist/components/ui/core/tabs/tabs.d.ts +20 -18
- package/dist/components/ui/core/tabs/tabs.js +176 -147
- package/dist/components/ui/core/tabs/tabs.js.map +1 -0
- package/dist/components/ui/core/tabs/tabs.utils.d.ts +1 -1
- package/dist/components/ui/core/tabs/tabs.utils.js +10 -6
- package/dist/components/ui/core/tabs/tabs.utils.js.map +1 -0
- package/dist/components/ui/core/textarea/textarea.d.ts +2 -2
- package/dist/components/ui/core/textarea/textarea.gallery.d.ts +2 -0
- package/dist/components/ui/core/textarea/textarea.gallery.js +51 -0
- package/dist/components/ui/core/textarea/textarea.gallery.js.map +1 -0
- package/dist/components/ui/core/textarea/textarea.js +13 -13
- package/dist/components/ui/core/textarea/textarea.js.map +1 -0
- package/dist/components/ui/core/toggle/toggle.d.ts +9 -9
- package/dist/components/ui/core/toggle/toggle.gallery.d.ts +2 -0
- package/dist/components/ui/core/toggle/toggle.gallery.js +32 -0
- package/dist/components/ui/core/toggle/toggle.gallery.js.map +1 -0
- package/dist/components/ui/core/toggle/toggle.js +60 -54
- package/dist/components/ui/core/toggle/toggle.js.map +1 -0
- package/dist/components/ui/core/tool/tool.d.ts +18 -18
- package/dist/components/ui/core/tool/tool.js +167 -126
- package/dist/components/ui/core/tool/tool.js.map +1 -0
- package/dist/components/ui/core/toolbar/toolbar.d.ts +37 -0
- package/dist/components/ui/core/toolbar/toolbar.js +171 -0
- package/dist/components/ui/core/toolbar/toolbar.js.map +1 -0
- package/dist/components/ui/core/tooltip/tooltip.d.ts +8 -7
- package/dist/components/ui/core/tooltip/tooltip.gallery.d.ts +2 -0
- package/dist/components/ui/core/tooltip/tooltip.gallery.js +52 -0
- package/dist/components/ui/core/tooltip/tooltip.gallery.js.map +1 -0
- package/dist/components/ui/core/tooltip/tooltip.js +53 -46
- package/dist/components/ui/core/tooltip/tooltip.js.map +1 -0
- package/dist/components/ui/core/topbar/topbar.d.ts +26 -26
- package/dist/components/ui/core/topbar/topbar.js +160 -105
- package/dist/components/ui/core/topbar/topbar.js.map +1 -0
- package/dist/components/ui/core/tree/tree.d.ts +20 -0
- package/dist/components/ui/core/tree/tree.js +100 -0
- package/dist/components/ui/core/tree/tree.js.map +1 -0
- package/dist/eslint/index.d.ts +5 -5
- package/dist/eslint/index.js +9 -5
- package/dist/eslint/index.js.map +1 -0
- package/dist/eslint/no-overriding-styles.d.ts +1 -1
- package/dist/eslint/no-overriding-styles.js +341 -201
- package/dist/eslint/no-overriding-styles.js.map +1 -0
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +2 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/ai/types.d.ts +43 -43
- package/dist/lib/ai/types.js +3 -0
- package/dist/lib/ai/types.js.map +1 -0
- package/dist/lib/decorative-variant-classes.d.ts +53 -0
- package/dist/lib/decorative-variant-classes.js +58 -0
- package/dist/lib/decorative-variant-classes.js.map +1 -0
- package/dist/lib/highlight-code.d.ts +11 -8
- package/dist/lib/highlight-code.js +58 -40
- package/dist/lib/highlight-code.js.map +1 -0
- package/dist/lib/portal-container-context.d.ts +1 -1
- package/dist/lib/portal-container-context.js +8 -8
- package/dist/lib/portal-container-context.js.map +1 -0
- package/dist/lib/shared-theme-from-url.d.ts +13 -0
- package/dist/lib/shared-theme-from-url.js +61 -0
- package/dist/lib/shared-theme-from-url.js.map +1 -0
- package/dist/lib/style-scope.d.ts +2 -2
- package/dist/lib/style-scope.js +6 -6
- package/dist/lib/style-scope.js.map +1 -0
- package/dist/lib/theme-share-url.d.ts +31 -0
- package/dist/lib/theme-share-url.js +116 -0
- package/dist/lib/theme-share-url.js.map +1 -0
- package/dist/lib/types.d.ts +39 -39
- package/dist/lib/types.js +3 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/use-controllable-state.d.ts +4 -7
- package/dist/lib/use-controllable-state.js +34 -21
- package/dist/lib/use-controllable-state.js.map +1 -0
- package/dist/lib/utils.d.ts +63 -34
- package/dist/lib/utils.js +134 -32
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles.css +2 -1
- package/dist/styles.source.css +46 -16
- package/dist/utils/assign-ref.d.ts +3 -0
- package/dist/utils/assign-ref.js +13 -0
- package/dist/utils/assign-ref.js.map +1 -0
- package/package.json +53 -14
- package/src/components/ui/core/alert/alert.md +46 -0
- package/src/components/ui/core/avatar/avatar.md +30 -0
- package/src/components/ui/core/badge/badge.md +32 -0
- package/src/components/ui/core/banner/banner.md +51 -0
- package/src/components/ui/core/breadcrumb/breadcrumb.md +45 -0
- package/src/components/ui/core/button/button.md +93 -0
- package/src/components/ui/core/button-group/button-group.md +38 -0
- package/src/components/ui/core/checkbox/checkbox.md +37 -0
- package/src/components/ui/core/collapsible/collapsible.md +42 -0
- package/src/components/ui/core/count/count.md +33 -0
- package/src/components/ui/core/input/input.md +48 -0
- package/src/components/ui/core/label/label.md +35 -0
- package/src/components/ui/core/radio-group/radio-group.md +38 -0
- package/src/components/ui/core/separator/separator.md +32 -0
- package/src/components/ui/core/skeleton/skeleton.md +33 -0
- package/src/components/ui/core/slider/slider.md +41 -0
- package/src/components/ui/core/switch/switch.md +26 -0
- package/src/components/ui/core/textarea/textarea.md +42 -0
- package/src/components/ui/core/toggle/toggle.md +39 -0
- package/src/components/ui/core/tooltip/tooltip.md +41 -0
|
@@ -1,203 +1,343 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
function
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
function
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
203
|
-
|
|
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,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F,OAAO;oBAC9B;gBACF;gBAEA,MAAMkE,SAASX,mBAAmBkC,mBAAmBzF,KAAK;gBAC1D,MAAM0F,mBAAmB;uBAAI,IAAI7F,IAAIqE;iBAAQ,CAAChB,MAAM,CAClD,CAACZ,QAAU,CAACK,yBAAyBL;gBAEvC,MAAM+E,MAAM7B,kBAAkB;oBAC5BC;oBACAC;oBACAtB;oBACAF;gBACF;gBAEA,IAAIwB,iBAAiBV,MAAM,KAAK,GAAG;oBACjC;gBACF;gBAEA0B,QAAQY,MAAM,CAAC;oBACbtF,MAAMyD;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"}
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "@tabler/icons-react";
|
package/dist/icons/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/icons/index.ts"],"sourcesContent":["export * from '@tabler/icons-react';\n"],"names":[],"mappings":"AAAA,cAAc,sBAAsB"}
|