@ropav/styles 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -20
- package/dist/components/accordion/accordion.styles.d.ts +47 -50
- package/dist/components/accordion/accordion.styles.d.ts.map +1 -1
- package/dist/components/accordion/accordion.styles.js +10 -10
- package/dist/components/accordion.css +15 -15
- package/dist/components/alert/alert.styles.d.ts +32 -74
- package/dist/components/alert/alert.styles.d.ts.map +1 -1
- package/dist/components/alert/alert.styles.js +11 -11
- package/dist/components/alert-dialog/alert-dialog.styles.d.ts +79 -173
- package/dist/components/alert-dialog/alert-dialog.styles.d.ts.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.styles.js +24 -24
- package/dist/components/alert-dialog.css +27 -27
- package/dist/components/alert.css +15 -15
- package/dist/components/autocomplete/autocomplete.styles.d.ts +58 -107
- package/dist/components/autocomplete/autocomplete.styles.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete.styles.js +16 -16
- package/dist/components/autocomplete.css +19 -19
- package/dist/components/avatar/avatar.styles.d.ts +30 -119
- package/dist/components/avatar/avatar.styles.d.ts.map +1 -1
- package/dist/components/avatar/avatar.styles.js +13 -13
- package/dist/components/avatar.css +18 -18
- package/dist/components/badge/badge.styles.d.ts +34 -176
- package/dist/components/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/badge/badge.styles.js +19 -19
- package/dist/components/badge.css +28 -28
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +17 -44
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +5 -5
- package/dist/components/breadcrumbs.css +4 -4
- package/dist/components/button/button.styles.d.ts +9 -68
- package/dist/components/button/button.styles.d.ts.map +1 -1
- package/dist/components/button/button.styles.js +14 -14
- package/dist/components/button-group/button-group.styles.d.ts +20 -56
- package/dist/components/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/button-group/button-group.styles.js +6 -6
- package/dist/components/button-group.css +24 -24
- package/dist/components/button.css +16 -16
- package/dist/components/calendar/calendar.styles.d.ts +41 -77
- package/dist/components/calendar/calendar.styles.d.ts.map +1 -1
- package/dist/components/calendar/calendar.styles.js +13 -13
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.d.ts +20 -50
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.d.ts.map +1 -1
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.js +6 -6
- package/dist/components/calendar-year-picker.css +18 -17
- package/dist/components/calendar.css +22 -22
- package/dist/components/card/card.styles.d.ts +37 -68
- package/dist/components/card/card.styles.d.ts.map +1 -1
- package/dist/components/card/card.styles.js +11 -11
- package/dist/components/card.css +10 -10
- package/dist/components/checkbox/checkbox.styles.d.ts +27 -44
- package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.styles.js +7 -7
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +6 -17
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts.map +1 -1
- package/dist/components/checkbox-group/checkbox-group.styles.js +4 -4
- package/dist/components/checkbox-group.css +1 -1
- package/dist/components/checkbox.css +33 -32
- package/dist/components/chip/chip.styles.d.ts +23 -140
- package/dist/components/chip/chip.styles.d.ts.map +1 -1
- package/dist/components/chip/chip.styles.js +15 -15
- package/dist/components/chip.css +23 -23
- package/dist/components/close-button/close-button.styles.d.ts +6 -14
- package/dist/components/close-button/close-button.styles.d.ts.map +1 -1
- package/dist/components/close-button/close-button.styles.js +3 -3
- package/dist/components/close-button.css +2 -2
- package/dist/components/color-area/color-area.styles.d.ts +17 -32
- package/dist/components/color-area/color-area.styles.d.ts.map +1 -1
- package/dist/components/color-area/color-area.styles.js +4 -4
- package/dist/components/color-area.css +3 -3
- package/dist/components/color-field/color-field.styles.d.ts +6 -17
- package/dist/components/color-field/color-field.styles.d.ts.map +1 -1
- package/dist/components/color-field/color-field.styles.js +3 -3
- package/dist/components/color-field.css +2 -2
- package/dist/components/color-input-group/color-input-group.styles.d.ts +37 -89
- package/dist/components/color-input-group/color-input-group.styles.d.ts.map +1 -1
- package/dist/components/color-input-group/color-input-group.styles.js +10 -10
- package/dist/components/color-input-group.css +13 -13
- package/dist/components/color-picker/color-picker.styles.d.ts +14 -38
- package/dist/components/color-picker/color-picker.styles.d.ts.map +1 -1
- package/dist/components/color-picker/color-picker.styles.js +4 -4
- package/dist/components/color-picker.css +3 -3
- package/dist/components/color-slider/color-slider.styles.d.ts +17 -44
- package/dist/components/color-slider/color-slider.styles.d.ts.map +1 -1
- package/dist/components/color-slider/color-slider.styles.js +5 -5
- package/dist/components/color-slider.css +16 -16
- package/dist/components/color-swatch/color-swatch.styles.d.ts +7 -38
- package/dist/components/color-swatch/color-swatch.styles.d.ts.map +1 -1
- package/dist/components/color-swatch/color-swatch.styles.js +9 -9
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.d.ts +37 -119
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.d.ts.map +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.js +14 -14
- package/dist/components/color-swatch-picker.css +20 -20
- package/dist/components/color-swatch.css +12 -12
- package/dist/components/combo-box/combo-box.styles.d.ts +38 -71
- package/dist/components/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/combo-box/combo-box.styles.js +10 -10
- package/dist/components/combo-box.css +10 -10
- package/dist/components/date-field/date-field.styles.d.ts +6 -17
- package/dist/components/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/date-field/date-field.styles.js +3 -3
- package/dist/components/date-field.css +2 -2
- package/dist/components/date-input-group/date-input-group.styles.d.ts +51 -95
- package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -1
- package/dist/components/date-input-group/date-input-group.styles.js +12 -12
- package/dist/components/date-input-group.css +16 -16
- package/dist/components/date-picker/date-picker.styles.d.ts +17 -44
- package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.styles.js +5 -5
- package/dist/components/date-picker.css +8 -8
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts +20 -50
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.styles.js +6 -6
- package/dist/components/date-range-picker.css +9 -9
- package/dist/components/description/description.styles.d.ts +4 -2
- package/dist/components/description/description.styles.d.ts.map +1 -1
- package/dist/components/description/description.styles.js +2 -2
- package/dist/components/description.css +1 -1
- package/dist/components/disclosure/disclosure.styles.d.ts +26 -26
- package/dist/components/disclosure/disclosure.styles.d.ts.map +1 -1
- package/dist/components/disclosure/disclosure.styles.js +8 -8
- package/dist/components/disclosure-group/disclosure-group.styles.d.ts +8 -8
- package/dist/components/disclosure-group/disclosure-group.styles.d.ts.map +1 -1
- package/dist/components/disclosure-group/disclosure-group.styles.js +2 -2
- package/dist/components/disclosure-group.css +1 -1
- package/dist/components/disclosure.css +6 -6
- package/dist/components/drawer/drawer.styles.d.ts +68 -125
- package/dist/components/drawer/drawer.styles.d.ts.map +1 -1
- package/dist/components/drawer/drawer.styles.js +22 -22
- package/dist/components/drawer.css +37 -37
- package/dist/components/drop-zone/drop-zone.styles.d.ts +11 -32
- package/dist/components/drop-zone/drop-zone.styles.d.ts.map +1 -1
- package/dist/components/drop-zone/drop-zone.styles.js +3 -3
- package/dist/components/drop-zone.css +2 -2
- package/dist/components/dropdown/dropdown.styles.d.ts +17 -44
- package/dist/components/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.styles.js +5 -5
- package/dist/components/dropdown.css +13 -11
- package/dist/components/empty-state/empty-state.styles.d.ts +4 -2
- package/dist/components/empty-state/empty-state.styles.d.ts.map +1 -1
- package/dist/components/empty-state/empty-state.styles.js +2 -2
- package/dist/components/empty-state.css +1 -1
- package/dist/components/error-message/error-message.styles.d.ts +4 -2
- package/dist/components/error-message/error-message.styles.d.ts.map +1 -1
- package/dist/components/error-message/error-message.styles.js +2 -2
- package/dist/components/error-message.css +1 -1
- package/dist/components/field-error/field-error.styles.d.ts +4 -2
- package/dist/components/field-error/field-error.styles.d.ts.map +1 -1
- package/dist/components/field-error/field-error.styles.js +2 -2
- package/dist/components/field-error.css +7 -7
- package/dist/components/fieldset/fieldset.styles.d.ts +20 -50
- package/dist/components/fieldset/fieldset.styles.d.ts.map +1 -1
- package/dist/components/fieldset/fieldset.styles.js +6 -6
- package/dist/components/fieldset.css +4 -4
- package/dist/components/header/header.styles.d.ts +3 -1
- package/dist/components/header/header.styles.d.ts.map +1 -1
- package/dist/components/header/header.styles.js +2 -2
- package/dist/components/header.css +1 -1
- package/dist/components/input/input.styles.d.ts +8 -44
- package/dist/components/input/input.styles.d.ts.map +1 -1
- package/dist/components/input/input.styles.js +7 -7
- package/dist/components/input-group/input-group.styles.d.ts +37 -89
- package/dist/components/input-group/input-group.styles.d.ts.map +1 -1
- package/dist/components/input-group/input-group.styles.js +10 -10
- package/dist/components/input-group.css +17 -17
- package/dist/components/input-otp/input-otp.styles.d.ts +42 -53
- package/dist/components/input-otp/input-otp.styles.d.ts.map +1 -1
- package/dist/components/input-otp/input-otp.styles.js +10 -10
- package/dist/components/input-otp.css +10 -10
- package/dist/components/input.css +6 -6
- package/dist/components/kbd/kbd.styles.d.ts +22 -29
- package/dist/components/kbd/kbd.styles.d.ts.map +1 -1
- package/dist/components/kbd/kbd.styles.js +6 -6
- package/dist/components/kbd.css +4 -4
- package/dist/components/label/label.styles.d.ts +8 -32
- package/dist/components/label/label.styles.d.ts.map +1 -1
- package/dist/components/label/label.styles.js +5 -5
- package/dist/components/label.css +9 -9
- package/dist/components/link/link.styles.d.ts +11 -32
- package/dist/components/link/link.styles.d.ts.map +1 -1
- package/dist/components/link/link.styles.js +3 -3
- package/dist/components/link.css +7 -7
- package/dist/components/list-box/list-box.styles.d.ts +7 -32
- package/dist/components/list-box/list-box.styles.d.ts.map +1 -1
- package/dist/components/list-box/list-box.styles.js +6 -6
- package/dist/components/list-box-item/list-box-item.styles.d.ts +17 -38
- package/dist/components/list-box-item/list-box-item.styles.d.ts.map +1 -1
- package/dist/components/list-box-item/list-box-item.styles.js +5 -5
- package/dist/components/list-box-item.css +9 -9
- package/dist/components/list-box-section/list-box-section.styles.d.ts +4 -2
- package/dist/components/list-box-section/list-box-section.styles.d.ts.map +1 -1
- package/dist/components/list-box-section/list-box-section.styles.js +2 -2
- package/dist/components/list-box-section.css +1 -1
- package/dist/components/list-box.css +53 -3
- package/dist/components/menu/menu.styles.d.ts +6 -20
- package/dist/components/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/menu/menu.styles.js +4 -4
- package/dist/components/menu-item/menu-item.styles.d.ts +22 -41
- package/dist/components/menu-item/menu-item.styles.d.ts.map +1 -1
- package/dist/components/menu-item/menu-item.styles.js +6 -6
- package/dist/components/menu-item.css +11 -11
- package/dist/components/menu-section/menu-section.styles.d.ts +4 -2
- package/dist/components/menu-section/menu-section.styles.d.ts.map +1 -1
- package/dist/components/menu-section/menu-section.styles.js +2 -2
- package/dist/components/menu-section.css +1 -1
- package/dist/components/menu.css +4 -4
- package/dist/components/meter/meter.styles.d.ts +32 -104
- package/dist/components/meter/meter.styles.d.ts.map +1 -1
- package/dist/components/meter/meter.styles.js +13 -13
- package/dist/components/meter.css +14 -14
- package/dist/components/modal/modal.styles.d.ts +79 -167
- package/dist/components/modal/modal.styles.d.ts.map +1 -1
- package/dist/components/modal/modal.styles.js +26 -26
- package/dist/components/modal.css +30 -30
- package/dist/components/number-field/number-field.styles.d.ts +44 -95
- package/dist/components/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/number-field/number-field.styles.js +12 -12
- package/dist/components/number-field.css +24 -24
- package/dist/components/pagination/pagination.styles.d.ts +44 -59
- package/dist/components/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/pagination/pagination.styles.js +19 -12
- package/dist/components/pagination.css +18 -18
- package/dist/components/popover/popover.styles.d.ts +17 -44
- package/dist/components/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/popover/popover.styles.js +5 -5
- package/dist/components/popover.css +4 -4
- package/dist/components/progress-bar/progress-bar.styles.d.ts +42 -140
- package/dist/components/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/progress-bar/progress-bar.styles.js +15 -15
- package/dist/components/progress-bar.css +25 -25
- package/dist/components/progress-circle/progress-circle.styles.d.ts +32 -104
- package/dist/components/progress-circle/progress-circle.styles.d.ts.map +1 -1
- package/dist/components/progress-circle/progress-circle.styles.js +13 -13
- package/dist/components/progress-circle.css +17 -17
- package/dist/components/radio/radio.styles.d.ts +17 -44
- package/dist/components/radio/radio.styles.d.ts.map +1 -1
- package/dist/components/radio/radio.styles.js +5 -5
- package/dist/components/radio-group/radio-group.styles.d.ts +6 -17
- package/dist/components/radio-group/radio-group.styles.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.styles.js +4 -4
- package/dist/components/radio-group.css +8 -8
- package/dist/components/radio.css +39 -39
- package/dist/components/range-calendar/range-calendar.styles.d.ts +44 -77
- package/dist/components/range-calendar/range-calendar.styles.d.ts.map +1 -1
- package/dist/components/range-calendar/range-calendar.styles.js +15 -13
- package/dist/components/range-calendar.css +38 -38
- package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts +16 -68
- package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts.map +1 -1
- package/dist/components/scroll-shadow/scroll-shadow.styles.js +6 -6
- package/dist/components/scroll-shadow.css +6 -6
- package/dist/components/search-field/search-field.styles.d.ts +44 -95
- package/dist/components/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/search-field/search-field.styles.js +12 -12
- package/dist/components/search-field.css +18 -18
- package/dist/components/segmented-control/segmented-control.styles.d.ts +32 -71
- package/dist/components/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.styles.js +9 -9
- package/dist/components/segmented-control.css +17 -17
- package/dist/components/select/select.styles.d.ts +44 -101
- package/dist/components/select/select.styles.d.ts.map +1 -1
- package/dist/components/select/select.styles.js +14 -14
- package/dist/components/select.css +16 -16
- package/dist/components/separator/separator.styles.d.ts +7 -32
- package/dist/components/separator/separator.styles.d.ts.map +1 -1
- package/dist/components/separator/separator.styles.js +7 -7
- package/dist/components/separator.css +13 -13
- package/dist/components/sidebar/sidebar.styles.d.ts +222 -224
- package/dist/components/sidebar/sidebar.styles.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.styles.js +36 -36
- package/dist/components/sidebar.css +54 -48
- package/dist/components/skeleton/skeleton.styles.d.ts +12 -26
- package/dist/components/skeleton/skeleton.styles.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.styles.js +5 -5
- package/dist/components/skeleton.css +6 -6
- package/dist/components/slider/slider.styles.d.ts +23 -56
- package/dist/components/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/slider/slider.styles.js +7 -7
- package/dist/components/slider.css +14 -14
- package/dist/components/spinner/spinner.styles.d.ts +7 -44
- package/dist/components/spinner/spinner.styles.d.ts.map +1 -1
- package/dist/components/spinner/spinner.styles.js +11 -11
- package/dist/components/spinner.css +10 -10
- package/dist/components/splitter/splitter.styles.d.ts +32 -59
- package/dist/components/splitter/splitter.styles.d.ts.map +1 -1
- package/dist/components/splitter/splitter.styles.js +12 -12
- package/dist/components/splitter.css +23 -23
- package/dist/components/surface/surface.styles.d.ts +6 -23
- package/dist/components/surface/surface.styles.d.ts.map +1 -1
- package/dist/components/surface/surface.styles.js +6 -6
- package/dist/components/surface.css +5 -5
- package/dist/components/switch/switch.styles.d.ts +32 -56
- package/dist/components/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/switch/switch.styles.js +9 -9
- package/dist/components/switch-group/switch-group.styles.d.ts +17 -38
- package/dist/components/switch-group/switch-group.styles.d.ts.map +1 -1
- package/dist/components/switch-group/switch-group.styles.js +5 -5
- package/dist/components/switch-group.css +4 -4
- package/dist/components/switch.css +52 -52
- package/dist/components/table/table.styles.d.ts +87 -77
- package/dist/components/table/table.styles.d.ts.map +1 -1
- package/dist/components/table/table.styles.js +20 -18
- package/dist/components/table.css +112 -63
- package/dist/components/tabs/tabs.styles.d.ts +57 -56
- package/dist/components/tabs/tabs.styles.d.ts.map +1 -1
- package/dist/components/tabs/tabs.styles.js +12 -12
- package/dist/components/tabs.css +33 -33
- package/dist/components/tag/tag.styles.d.ts +20 -71
- package/dist/components/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/tag/tag.styles.js +8 -8
- package/dist/components/tag-group/tag-group.styles.d.ts +11 -32
- package/dist/components/tag-group/tag-group.styles.d.ts.map +1 -1
- package/dist/components/tag-group/tag-group.styles.js +3 -3
- package/dist/components/tag-group.css +6 -6
- package/dist/components/tag.css +11 -11
- package/dist/components/textarea/textarea.styles.d.ts +8 -44
- package/dist/components/textarea/textarea.styles.d.ts.map +1 -1
- package/dist/components/textarea/textarea.styles.js +7 -7
- package/dist/components/textarea.css +6 -6
- package/dist/components/textfield/textfield.styles.d.ts +6 -17
- package/dist/components/textfield/textfield.styles.d.ts.map +1 -1
- package/dist/components/textfield/textfield.styles.js +3 -3
- package/dist/components/textfield.css +2 -2
- package/dist/components/time-field/time-field.styles.d.ts +6 -17
- package/dist/components/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/time-field/time-field.styles.js +3 -3
- package/dist/components/time-field.css +2 -2
- package/dist/components/toast/toast.styles.d.ts +56 -161
- package/dist/components/toast/toast.styles.d.ts.map +1 -1
- package/dist/components/toast/toast.styles.js +26 -26
- package/dist/components/toast.css +55 -55
- package/dist/components/toggle-button/toggle-button.styles.d.ts +8 -41
- package/dist/components/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/toggle-button/toggle-button.styles.js +8 -8
- package/dist/components/toggle-button-group/toggle-button-group.styles.d.ts +23 -74
- package/dist/components/toggle-button-group/toggle-button-group.styles.d.ts.map +1 -1
- package/dist/components/toggle-button-group/toggle-button-group.styles.js +7 -7
- package/dist/components/toggle-button-group.css +22 -22
- package/dist/components/toggle-button.css +9 -9
- package/dist/components/toolbar/toolbar.styles.d.ts +7 -26
- package/dist/components/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.styles.js +5 -5
- package/dist/components/toolbar.css +7 -7
- package/dist/components/tooltip/tooltip.styles.d.ts +11 -32
- package/dist/components/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.styles.js +3 -3
- package/dist/components/tooltip.css +2 -2
- package/dist/components/typography/typography.styles.d.ts +29 -107
- package/dist/components/typography/typography.styles.d.ts.map +1 -1
- package/dist/components/typography/typography.styles.js +24 -24
- package/dist/components/typography.css +41 -41
- package/dist/components/virtualizer/virtualizer.styles.d.ts +13 -37
- package/dist/components/virtualizer/virtualizer.styles.d.ts.map +1 -1
- package/dist/components/virtualizer/virtualizer.styles.js +4 -4
- package/dist/components/virtualizer.css +3 -3
- package/dist/core.css +26 -0
- package/dist/index.css +8 -24
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/no-preflight.css +8 -0
- package/dist/ropav.min.css +1 -1
- package/dist/themes.d.ts +12 -0
- package/dist/themes.d.ts.map +1 -0
- package/dist/themes.js +39 -0
- package/dist/tv.d.ts +34 -0
- package/dist/tv.d.ts.map +1 -0
- package/dist/tv.js +21 -0
- package/package.json +5 -3
- package/src/components/accordion/accordion.styles.ts +11 -11
- package/src/components/alert/alert.styles.ts +12 -12
- package/src/components/alert-dialog/alert-dialog.styles.ts +25 -25
- package/src/components/autocomplete/autocomplete.styles.ts +17 -17
- package/src/components/avatar/avatar.styles.ts +14 -14
- package/src/components/badge/badge.styles.ts +20 -20
- package/src/components/breadcrumbs/breadcrumbs.styles.ts +6 -6
- package/src/components/button/button.styles.ts +15 -15
- package/src/components/button-group/button-group.styles.ts +7 -7
- package/src/components/calendar/calendar.styles.ts +14 -14
- package/src/components/calendar-year-picker/calendar-year-picker.styles.ts +7 -7
- package/src/components/card/card.styles.ts +12 -12
- package/src/components/checkbox/checkbox.styles.ts +8 -8
- package/src/components/checkbox-group/checkbox-group.styles.ts +5 -5
- package/src/components/chip/chip.styles.ts +16 -16
- package/src/components/close-button/close-button.styles.ts +4 -4
- package/src/components/color-area/color-area.styles.ts +5 -5
- package/src/components/color-field/color-field.styles.ts +4 -4
- package/src/components/color-input-group/color-input-group.styles.ts +11 -11
- package/src/components/color-picker/color-picker.styles.ts +5 -5
- package/src/components/color-slider/color-slider.styles.ts +6 -6
- package/src/components/color-swatch/color-swatch.styles.ts +10 -10
- package/src/components/color-swatch-picker/color-swatch-picker.styles.ts +15 -15
- package/src/components/combo-box/combo-box.styles.ts +11 -11
- package/src/components/date-field/date-field.styles.ts +4 -4
- package/src/components/date-input-group/date-input-group.styles.ts +13 -13
- package/src/components/date-picker/date-picker.styles.ts +6 -6
- package/src/components/date-range-picker/date-range-picker.styles.ts +7 -7
- package/src/components/description/description.styles.ts +3 -3
- package/src/components/disclosure/disclosure.styles.ts +9 -9
- package/src/components/disclosure-group/disclosure-group.styles.ts +3 -3
- package/src/components/drawer/drawer.styles.ts +23 -23
- package/src/components/drop-zone/drop-zone.styles.ts +4 -4
- package/src/components/dropdown/dropdown.styles.ts +6 -6
- package/src/components/empty-state/empty-state.styles.ts +3 -3
- package/src/components/error-message/error-message.styles.ts +3 -3
- package/src/components/field-error/field-error.styles.ts +3 -3
- package/src/components/fieldset/fieldset.styles.ts +7 -7
- package/src/components/header/header.styles.ts +2 -2
- package/src/components/input/input.styles.ts +8 -8
- package/src/components/input-group/input-group.styles.ts +11 -11
- package/src/components/input-otp/input-otp.styles.ts +11 -11
- package/src/components/kbd/kbd.styles.ts +7 -7
- package/src/components/label/label.styles.ts +6 -6
- package/src/components/link/link.styles.ts +4 -4
- package/src/components/list-box/list-box.styles.ts +7 -7
- package/src/components/list-box-item/list-box-item.styles.ts +6 -6
- package/src/components/list-box-section/list-box-section.styles.ts +3 -3
- package/src/components/menu/menu.styles.ts +5 -5
- package/src/components/menu-item/menu-item.styles.ts +7 -7
- package/src/components/menu-section/menu-section.styles.ts +3 -3
- package/src/components/meter/meter.styles.ts +14 -14
- package/src/components/modal/modal.styles.ts +27 -27
- package/src/components/number-field/number-field.styles.ts +13 -13
- package/src/components/pagination/pagination.styles.ts +18 -11
- package/src/components/popover/popover.styles.ts +6 -6
- package/src/components/progress-bar/progress-bar.styles.ts +16 -16
- package/src/components/progress-circle/progress-circle.styles.ts +14 -14
- package/src/components/radio/radio.styles.ts +6 -6
- package/src/components/radio-group/radio-group.styles.ts +5 -5
- package/src/components/range-calendar/range-calendar.styles.ts +16 -14
- package/src/components/scroll-shadow/scroll-shadow.styles.ts +7 -7
- package/src/components/search-field/search-field.styles.ts +13 -13
- package/src/components/segmented-control/segmented-control.styles.ts +10 -10
- package/src/components/select/select.styles.ts +15 -15
- package/src/components/separator/separator.styles.ts +8 -8
- package/src/components/sidebar/sidebar.styles.ts +37 -37
- package/src/components/skeleton/skeleton.styles.ts +6 -6
- package/src/components/slider/slider.styles.ts +8 -8
- package/src/components/spinner/spinner.styles.ts +12 -12
- package/src/components/splitter/splitter.styles.ts +13 -13
- package/src/components/surface/surface.styles.ts +7 -7
- package/src/components/switch/switch.styles.ts +10 -10
- package/src/components/switch-group/switch-group.styles.ts +6 -6
- package/src/components/table/table.styles.ts +21 -19
- package/src/components/tabs/tabs.styles.ts +13 -13
- package/src/components/tag/tag.styles.ts +9 -9
- package/src/components/tag-group/tag-group.styles.ts +4 -4
- package/src/components/textarea/textarea.styles.ts +8 -8
- package/src/components/textfield/textfield.styles.ts +4 -4
- package/src/components/time-field/time-field.styles.ts +4 -4
- package/src/components/toast/toast.styles.ts +27 -27
- package/src/components/toggle-button/toggle-button.styles.ts +9 -9
- package/src/components/toggle-button-group/toggle-button-group.styles.ts +8 -8
- package/src/components/toolbar/toolbar.styles.ts +6 -6
- package/src/components/tooltip/tooltip.styles.ts +4 -4
- package/src/components/typography/typography.styles.ts +25 -25
- package/src/components/virtualizer/virtualizer.styles.ts +4 -4
- package/src/index.ts +5 -2
- package/src/themes.ts +40 -0
- package/src/tv.ts +82 -0
|
@@ -1,80 +1,90 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const tableVariants:
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const tableVariants: (props?: ({
|
|
3
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
4
|
+
} & {
|
|
5
|
+
variant?: "primary" | "secondary" | undefined;
|
|
6
|
+
}) | undefined) => {
|
|
7
|
+
base: (props?: ({
|
|
8
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
variant?: "primary" | "secondary" | undefined;
|
|
11
|
+
}) | undefined) => string;
|
|
12
|
+
body: (props?: ({
|
|
13
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
variant?: "primary" | "secondary" | undefined;
|
|
16
|
+
}) | undefined) => string;
|
|
17
|
+
cell: (props?: ({
|
|
18
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
variant?: "primary" | "secondary" | undefined;
|
|
21
|
+
}) | undefined) => string;
|
|
22
|
+
column: (props?: ({
|
|
23
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
variant?: "primary" | "secondary" | undefined;
|
|
26
|
+
}) | undefined) => string;
|
|
27
|
+
columnResizer: (props?: ({
|
|
28
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
variant?: "primary" | "secondary" | undefined;
|
|
31
|
+
}) | undefined) => string;
|
|
32
|
+
content: (props?: ({
|
|
33
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
variant?: "primary" | "secondary" | undefined;
|
|
36
|
+
}) | undefined) => string;
|
|
37
|
+
dropIndicator: (props?: ({
|
|
38
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
39
|
+
} & {
|
|
40
|
+
variant?: "primary" | "secondary" | undefined;
|
|
41
|
+
}) | undefined) => string;
|
|
42
|
+
footer: (props?: ({
|
|
43
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
44
|
+
} & {
|
|
45
|
+
variant?: "primary" | "secondary" | undefined;
|
|
46
|
+
}) | undefined) => string;
|
|
47
|
+
header: (props?: ({
|
|
48
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
variant?: "primary" | "secondary" | undefined;
|
|
51
|
+
}) | undefined) => string;
|
|
52
|
+
loadMore: (props?: ({
|
|
53
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
54
|
+
} & {
|
|
55
|
+
variant?: "primary" | "secondary" | undefined;
|
|
56
|
+
}) | undefined) => string;
|
|
57
|
+
loadMoreContent: (props?: ({
|
|
58
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
59
|
+
} & {
|
|
60
|
+
variant?: "primary" | "secondary" | undefined;
|
|
61
|
+
}) | undefined) => string;
|
|
62
|
+
resizableContainer: (props?: ({
|
|
63
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
64
|
+
} & {
|
|
65
|
+
variant?: "primary" | "secondary" | undefined;
|
|
66
|
+
}) | undefined) => string;
|
|
67
|
+
row: (props?: ({
|
|
68
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
69
|
+
} & {
|
|
70
|
+
variant?: "primary" | "secondary" | undefined;
|
|
71
|
+
}) | undefined) => string;
|
|
72
|
+
scrollContainer: (props?: ({
|
|
73
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
74
|
+
} & {
|
|
75
|
+
variant?: "primary" | "secondary" | undefined;
|
|
76
|
+
}) | undefined) => string;
|
|
77
|
+
sortableColumnHeader: (props?: ({
|
|
78
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
79
|
+
} & {
|
|
80
|
+
variant?: "primary" | "secondary" | undefined;
|
|
81
|
+
}) | undefined) => string;
|
|
82
|
+
sortableColumnIndicator: (props?: ({
|
|
83
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
84
|
+
} & {
|
|
85
|
+
variant?: "primary" | "secondary" | undefined;
|
|
86
|
+
}) | undefined) => string;
|
|
87
|
+
};
|
|
78
88
|
type TableRenderPropsKeys = "isHovered" | "isFocused" | "isFocusVisible" | "isSelected" | "isDisabled" | "isDragging" | "isDropTarget" | "state";
|
|
79
89
|
export type TableVariants = Omit<VariantProps<typeof tableVariants>, TableRenderPropsKeys>;
|
|
80
90
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"table.styles.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCxB,CAAC;AAGH,KAAK,oBAAoB,GACrB,WAAW,GACX,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,OAAO,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,aAAa,CAAC,EAAE,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/table/table.styles.ts
|
|
3
3
|
const tableVariants = tv({
|
|
4
4
|
defaultVariants: { variant: "primary" },
|
|
5
5
|
slots: {
|
|
6
|
-
base: "table-root",
|
|
7
|
-
body: "table__body",
|
|
8
|
-
cell: "table__cell",
|
|
9
|
-
column: "table__column",
|
|
10
|
-
columnResizer: "table__column-resizer",
|
|
11
|
-
content: "table__content",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
base: "rp-table-root",
|
|
7
|
+
body: "rp-table__body",
|
|
8
|
+
cell: "rp-table__cell",
|
|
9
|
+
column: "rp-table__column",
|
|
10
|
+
columnResizer: "rp-table__column-resizer",
|
|
11
|
+
content: "rp-table__content",
|
|
12
|
+
/** Named but unstyled: the hook a caller's own rule attaches to. */
|
|
13
|
+
dropIndicator: "rp-table__drop-indicator",
|
|
14
|
+
footer: "rp-table__footer",
|
|
15
|
+
header: "rp-table__header",
|
|
16
|
+
loadMore: "rp-table__load-more",
|
|
17
|
+
loadMoreContent: "rp-table__load-more-content",
|
|
18
|
+
resizableContainer: "rp-table__resizable-container",
|
|
19
|
+
row: "rp-table__row",
|
|
20
|
+
scrollContainer: "rp-table__scroll-container",
|
|
21
|
+
sortableColumnHeader: "rp-table__sortable-column-header",
|
|
22
|
+
sortableColumnIndicator: "rp-table__sortable-column-indicator"
|
|
21
23
|
},
|
|
22
24
|
variants: { variant: {
|
|
23
|
-
primary: { base: "table-root--primary" },
|
|
24
|
-
secondary: { base: "table-root--secondary" }
|
|
25
|
+
primary: { base: "rp-table-root--primary" },
|
|
26
|
+
secondary: { base: "rp-table-root--secondary" }
|
|
25
27
|
} }
|
|
26
28
|
});
|
|
27
29
|
//#endregion
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Table Root — Outer container for table + optional footer.
|
|
7
7
|
Primary variant: gray background with the table body as a white card inside.
|
|
8
8
|
-------------------------------------------------------------------------- */
|
|
9
|
-
.table-root {
|
|
9
|
+
.rp-table-root {
|
|
10
10
|
@apply relative grid w-full overflow-clip;
|
|
11
11
|
grid-template-columns: minmax(0, 1fr);
|
|
12
12
|
}
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
minmax(0, 1fr) creates a hard width boundary that table layout
|
|
18
18
|
cannot push beyond.
|
|
19
19
|
-------------------------------------------------------------------------- */
|
|
20
|
-
.table__scroll-container {
|
|
20
|
+
.rp-table__scroll-container {
|
|
21
21
|
@apply scrollbar overflow-x-auto;
|
|
22
22
|
scrollbar-gutter: auto;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.table-root--primary {
|
|
25
|
+
.rp-table-root--primary {
|
|
26
26
|
@apply bg-surface-secondary px-1 pb-1;
|
|
27
27
|
|
|
28
28
|
border-radius: min(32px, var(--component-radius));
|
|
@@ -35,45 +35,45 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.table-root--secondary {
|
|
38
|
+
.rp-table-root--secondary {
|
|
39
39
|
/* No background, padding, or rounding on the root */
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/* Secondary: header is a standalone rounded card.
|
|
43
43
|
Background is on cells (not <thead>) because Firefox does not support */
|
|
44
|
-
.table-root--secondary .table__header {
|
|
44
|
+
.rp-table-root--secondary .rp-table__header {
|
|
45
45
|
@apply border-b-0 bg-transparent;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.table-root--secondary .table__column {
|
|
48
|
+
.rp-table-root--secondary .rp-table__column {
|
|
49
49
|
@apply bg-surface-secondary;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/* Round only the truly first/last column header.
|
|
53
53
|
Non-virtualized: column is a <th> child of <tr>.
|
|
54
54
|
Virtualized: column is wrapped in a `VirtualizerItem` (role="presentation") so
|
|
55
|
-
`:first-child` / `:last-child` on `.table__column` would match every column
|
|
55
|
+
`:first-child` / `:last-child` on `.rp-table__column` would match every column
|
|
56
56
|
(each is the only child of its wrapper). Walk up to the row instead. */
|
|
57
|
-
.table-root--secondary
|
|
57
|
+
.rp-table-root--secondary
|
|
58
58
|
:is(
|
|
59
|
-
th.table__column:first-child,
|
|
60
|
-
[role="row"] > [role="presentation"]:first-of-type > .table__column
|
|
59
|
+
th.rp-table__column:first-child,
|
|
60
|
+
[role="row"] > [role="presentation"]:first-of-type > .rp-table__column
|
|
61
61
|
) {
|
|
62
62
|
border-start-start-radius: min(32px, var(--component-radius));
|
|
63
63
|
border-end-start-radius: min(32px, var(--component-radius));
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.table-root--secondary
|
|
66
|
+
.rp-table-root--secondary
|
|
67
67
|
:is(
|
|
68
|
-
th.table__column:last-child,
|
|
69
|
-
[role="row"] > [role="presentation"]:last-of-type > .table__column
|
|
68
|
+
th.rp-table__column:last-child,
|
|
69
|
+
[role="row"] > [role="presentation"]:last-of-type > .rp-table__column
|
|
70
70
|
) {
|
|
71
71
|
border-start-end-radius: min(32px, var(--component-radius));
|
|
72
72
|
border-end-end-radius: min(32px, var(--component-radius));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/* Secondary: body has no shadow or rounded corners */
|
|
76
|
-
.table-root--secondary .table__body {
|
|
76
|
+
.rp-table-root--secondary .rp-table__body {
|
|
77
77
|
@apply shadow-none;
|
|
78
78
|
|
|
79
79
|
/* Non-virtualized */
|
|
@@ -84,15 +84,15 @@
|
|
|
84
84
|
@apply rounded-none;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
/* Virtualized: undo the rounding applied by .table__body:not(tbody) */
|
|
87
|
+
/* Virtualized: undo the rounding applied by .rp-table__body:not(tbody) */
|
|
88
88
|
&:not(tbody) {
|
|
89
89
|
@apply overflow-visible rounded-none;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/* Secondary: rows are transparent and keep bottom border on every row */
|
|
94
|
-
.table-root--secondary .table__row {
|
|
95
|
-
.table__cell {
|
|
94
|
+
.rp-table-root--secondary .rp-table__row {
|
|
95
|
+
.rp-table__cell {
|
|
96
96
|
@apply border-b border-separator-tertiary/50;
|
|
97
97
|
|
|
98
98
|
--table-cell-bg: transparent;
|
|
@@ -103,26 +103,26 @@
|
|
|
103
103
|
/* --------------------------------------------------------------------------
|
|
104
104
|
Table Content (<table> element) — the white card inside the root
|
|
105
105
|
-------------------------------------------------------------------------- */
|
|
106
|
-
.table__content {
|
|
106
|
+
.rp-table__content {
|
|
107
107
|
@apply w-full border-separate border-spacing-0 text-sm;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/* Primary variant: table gets the white surface card look */
|
|
111
|
-
.table-root--primary .table__content {
|
|
111
|
+
.rp-table-root--primary .rp-table__content {
|
|
112
112
|
@apply overflow-clip;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/* --------------------------------------------------------------------------
|
|
116
116
|
Table Header (<thead>)
|
|
117
117
|
-------------------------------------------------------------------------- */
|
|
118
|
-
.table__header {
|
|
118
|
+
.rp-table__header {
|
|
119
119
|
@apply border-b border-separator/50 bg-surface-secondary;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
/* --------------------------------------------------------------------------
|
|
123
123
|
Table Column (<th>)
|
|
124
124
|
-------------------------------------------------------------------------- */
|
|
125
|
-
.table__column {
|
|
125
|
+
.rp-table__column {
|
|
126
126
|
@apply relative px-4 py-2.5 text-start text-xs font-medium;
|
|
127
127
|
|
|
128
128
|
--table-column-fg: var(--muted);
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
/* A column holding nothing but the select-all box has no heading for the line to divide from
|
|
144
144
|
* the next one, and where the end padding is collapsed it lands on the box's own edge and
|
|
145
145
|
* reads as a border the box grew. */
|
|
146
|
-
&:has(> .checkbox:only-child)::after {
|
|
146
|
+
&:has(> .rp-checkbox:only-child)::after {
|
|
147
147
|
content: none;
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -168,9 +168,9 @@
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
/* Virtualized: each column is wrapped in a `VirtualizerItem` (role="presentation"),
|
|
171
|
-
so `.table__column:last-child:not(:only-child)::after` above never matches.
|
|
171
|
+
so `.rp-table__column:last-child:not(:only-child)::after` above never matches.
|
|
172
172
|
Hide the trailing separator on the rightmost wrapper instead. */
|
|
173
|
-
[role="row"] > [role="presentation"]:last-of-type:not(:only-of-type) > .table__column::after {
|
|
173
|
+
[role="row"] > [role="presentation"]:last-of-type:not(:only-of-type) > .rp-table__column::after {
|
|
174
174
|
content: none;
|
|
175
175
|
}
|
|
176
176
|
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
Sortable Column Header — wraps the column label and an optional indicator
|
|
179
179
|
icon. Rendered inside a sortable `Table.Column`'s render prop callback.
|
|
180
180
|
-------------------------------------------------------------------------- */
|
|
181
|
-
.table__sortable-column-header {
|
|
181
|
+
.rp-table__sortable-column-header {
|
|
182
182
|
@apply flex items-center justify-between;
|
|
183
183
|
}
|
|
184
184
|
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
Sortable Column Indicator — chevron that flips based on `data-direction`.
|
|
187
187
|
Defaults to pointing up (ascending) and rotates 180° for descending.
|
|
188
188
|
-------------------------------------------------------------------------- */
|
|
189
|
-
.table__sortable-column-indicator {
|
|
189
|
+
.rp-table__sortable-column-indicator {
|
|
190
190
|
@apply inline-grid size-3 transform place-content-center transition-transform duration-100 ease-out;
|
|
191
191
|
|
|
192
192
|
&[data-direction="descending"] {
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
/* --------------------------------------------------------------------------
|
|
198
198
|
Table Body (<tbody>)
|
|
199
199
|
-------------------------------------------------------------------------- */
|
|
200
|
-
.table__body {
|
|
200
|
+
.rp-table__body {
|
|
201
201
|
/* Non-virtualized: round corners via first/last cells
|
|
202
202
|
(border-radius on <tbody> itself has no effect).
|
|
203
203
|
Logical properties so corners follow `dir` in RTL. */
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
/* --------------------------------------------------------------------------
|
|
227
227
|
Table Row (<tr>)
|
|
228
228
|
-------------------------------------------------------------------------- */
|
|
229
|
-
.table__row {
|
|
229
|
+
.rp-table__row {
|
|
230
230
|
@apply relative h-full;
|
|
231
231
|
|
|
232
232
|
/* Bottom separator */
|
|
@@ -239,14 +239,14 @@
|
|
|
239
239
|
|
|
240
240
|
/* Hover state — applied to cells so Firefox clips bg to border-radius */
|
|
241
241
|
@media (hover: hover) {
|
|
242
|
-
&:hover .table__cell,
|
|
243
|
-
&[data-hovered="true"] .table__cell {
|
|
242
|
+
&:hover .rp-table__cell,
|
|
243
|
+
&[data-hovered="true"] .rp-table__cell {
|
|
244
244
|
background-color: var(--table-cell-bg-hover);
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
/* Selected state */
|
|
249
|
-
&[data-selected="true"] .table__cell {
|
|
249
|
+
&[data-selected="true"] .rp-table__cell {
|
|
250
250
|
background-color: var(--table-cell-bg-selected);
|
|
251
251
|
|
|
252
252
|
@apply forced-selected;
|
|
@@ -255,8 +255,8 @@
|
|
|
255
255
|
/* A selected row still answers the pointer. Without this the rule above swallows the hover -
|
|
256
256
|
* it is later and equally specific, so the row that is both reads as merely selected. */
|
|
257
257
|
@media (hover: hover) {
|
|
258
|
-
&[data-selected="true"]:hover .table__cell,
|
|
259
|
-
&[data-selected="true"][data-hovered="true"] .table__cell {
|
|
258
|
+
&[data-selected="true"]:hover .rp-table__cell,
|
|
259
|
+
&[data-selected="true"][data-hovered="true"] .rp-table__cell {
|
|
260
260
|
background-color: var(--table-cell-bg-selected-hover);
|
|
261
261
|
}
|
|
262
262
|
}
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
@apply status-disabled;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
/* Row focus ring: see “Table row focus ring” block below (after `.table__cell`). */
|
|
270
|
+
/* Row focus ring: see “Table row focus ring” block below (after `.rp-table__cell`). */
|
|
271
271
|
&:focus-visible,
|
|
272
272
|
&[data-focus-visible="true"] {
|
|
273
273
|
@apply outline-none;
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
/* Drop target state */
|
|
282
|
-
&[data-drop-target="true"] .table__cell {
|
|
282
|
+
&[data-drop-target="true"] .rp-table__cell {
|
|
283
283
|
background-color: var(--table-cell-bg-drop-target);
|
|
284
284
|
}
|
|
285
285
|
}
|
|
@@ -287,11 +287,11 @@
|
|
|
287
287
|
/* --------------------------------------------------------------------------
|
|
288
288
|
Table Cell (<td>)
|
|
289
289
|
-------------------------------------------------------------------------- */
|
|
290
|
-
.table__cell {
|
|
290
|
+
.rp-table__cell {
|
|
291
291
|
@apply h-full px-4 py-3 align-middle text-sm text-foreground;
|
|
292
292
|
|
|
293
293
|
/* The row's fill, per state, declared on the cell because that is what paints — Firefox clips a
|
|
294
|
-
* row's own background outside the border radius. `.table-root--secondary` re-points two. */
|
|
294
|
+
* row's own background outside the border radius. `.rp-table-root--secondary` re-points two. */
|
|
295
295
|
--table-cell-bg: var(--surface);
|
|
296
296
|
--table-cell-bg-hover: var(--surface-hover);
|
|
297
297
|
--table-cell-bg-selected: var(--accent-soft);
|
|
@@ -310,69 +310,118 @@
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
+
/* Virtualized, a cell is a div: `align-middle` above says nothing to one, and block layout pins
|
|
314
|
+
* its content under the top padding, so anything taller than the content box of a row whose
|
|
315
|
+
* height the layout fixed hangs off the bottom. Flex is what centring costs a div. */
|
|
316
|
+
.rp-table__cell:not(td) {
|
|
317
|
+
@apply flex items-center;
|
|
318
|
+
}
|
|
319
|
+
|
|
313
320
|
/* --------------------------------------------------------------------------
|
|
314
|
-
Table row focus ring — must follow `.table__cell` (cascade). One continuous
|
|
315
|
-
inset ring split across cells; `:is(.table__cell, .table__column)` + direct vs
|
|
321
|
+
Table row focus ring — must follow `.rp-table__cell` (cascade). One continuous
|
|
322
|
+
inset ring split across cells; `:is(.rp-table__cell, .rp-table__column)` + direct vs
|
|
316
323
|
`> *:…` covers virtualized wrappers. `:is(:focus-visible, [data-focus-visible])`
|
|
317
324
|
matches row keyboard focus from RAC.
|
|
318
325
|
-------------------------------------------------------------------------- */
|
|
319
|
-
.table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
326
|
+
.rp-table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
327
|
+
:is(.rp-table__cell, .rp-table__column) {
|
|
320
328
|
@apply shadow-none;
|
|
321
329
|
}
|
|
322
330
|
|
|
323
|
-
.table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
324
|
-
> :is(.table__cell, .table__column):only-child,
|
|
325
|
-
.table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
331
|
+
.rp-table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
332
|
+
> :is(.rp-table__cell, .rp-table__column):only-child,
|
|
333
|
+
.rp-table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
326
334
|
> *:only-child
|
|
327
|
-
:is(.table__cell, .table__column) {
|
|
335
|
+
:is(.rp-table__cell, .rp-table__column) {
|
|
328
336
|
@apply rounded-lg shadow-[inset_0_0_0_2px_var(--focus)] outline-none;
|
|
329
337
|
}
|
|
330
338
|
|
|
331
|
-
.table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
332
|
-
> :is(.table__cell, .table__column):first-child:not(:only-child),
|
|
333
|
-
.table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
339
|
+
.rp-table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
340
|
+
> :is(.rp-table__cell, .rp-table__column):first-child:not(:only-child),
|
|
341
|
+
.rp-table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
334
342
|
> *:first-child:not(:only-child)
|
|
335
|
-
:is(.table__cell, .table__column) {
|
|
343
|
+
:is(.rp-table__cell, .rp-table__column) {
|
|
336
344
|
@apply rounded-s-lg shadow-[inset_2px_0_0_0_var(--focus),inset_0_2px_0_0_var(--focus),inset_0_-2px_0_0_var(--focus)] outline-none;
|
|
337
345
|
}
|
|
338
346
|
|
|
339
|
-
.table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
340
|
-
> :is(.table__cell, .table__column):last-child:not(:only-child),
|
|
341
|
-
.table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
347
|
+
.rp-table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
348
|
+
> :is(.rp-table__cell, .rp-table__column):last-child:not(:only-child),
|
|
349
|
+
.rp-table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
342
350
|
> *:last-child:not(:only-child)
|
|
343
|
-
:is(.table__cell, .table__column) {
|
|
351
|
+
:is(.rp-table__cell, .rp-table__column) {
|
|
344
352
|
@apply rounded-e-lg shadow-[inset_-2px_0_0_0_var(--focus),inset_0_2px_0_0_var(--focus),inset_0_-2px_0_0_var(--focus)] outline-none;
|
|
345
353
|
}
|
|
346
354
|
|
|
347
|
-
.table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
348
|
-
> :is(.table__cell, .table__column):not(:first-child):not(:last-child):not(:only-child),
|
|
349
|
-
.table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
355
|
+
.rp-table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
356
|
+
> :is(.rp-table__cell, .rp-table__column):not(:first-child):not(:last-child):not(:only-child),
|
|
357
|
+
.rp-table__row:is(:focus-visible, [data-focus-visible="true"])
|
|
350
358
|
> *:not(:first-child):not(:last-child):not(:only-child)
|
|
351
|
-
:is(.table__cell, .table__column) {
|
|
359
|
+
:is(.rp-table__cell, .rp-table__column) {
|
|
352
360
|
@apply shadow-[inset_0_2px_0_0_var(--focus),inset_0_-2px_0_0_var(--focus)] outline-none;
|
|
353
361
|
}
|
|
354
362
|
|
|
363
|
+
/* --------------------------------------------------------------------------
|
|
364
|
+
Drop indicator — the gap between two rows a drop would land in.
|
|
365
|
+
Styled here rather than left to the caller because a windowed collection
|
|
366
|
+
renders its own: `TableBody` produces one per row it has laid out, and
|
|
367
|
+
markup written in the row slot cannot reach them.
|
|
368
|
+
-------------------------------------------------------------------------- */
|
|
369
|
+
.rp-table__drop-indicator {
|
|
370
|
+
--table-drop-indicator-size: 2px;
|
|
371
|
+
--table-drop-indicator-bg: var(--accent);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/* Windowed, the layout has already placed it: a band straddling the boundary, out of flow. */
|
|
375
|
+
.rp-table__drop-indicator:not(tr) {
|
|
376
|
+
height: var(--table-drop-indicator-size);
|
|
377
|
+
|
|
378
|
+
&[data-drop-target="true"] {
|
|
379
|
+
background-color: var(--table-drop-indicator-bg);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/* In flow, as a real row, it has to take no height at all. A row that occupies the thickness
|
|
384
|
+
* steps every row below it down, and since the gap moves with the pointer the whole table walks
|
|
385
|
+
* about under a drag. So the cell paints the line instead, lifted half a thickness onto the
|
|
386
|
+
* boundary — which is where the windowed one straddles too, so the two read alike. */
|
|
387
|
+
tr.rp-table__drop-indicator {
|
|
388
|
+
height: 0;
|
|
389
|
+
|
|
390
|
+
> td {
|
|
391
|
+
position: relative;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&[data-drop-target="true"] > td::after {
|
|
395
|
+
content: "";
|
|
396
|
+
position: absolute;
|
|
397
|
+
inset-inline: 0;
|
|
398
|
+
top: calc(var(--table-drop-indicator-size) / -2);
|
|
399
|
+
height: var(--table-drop-indicator-size);
|
|
400
|
+
background-color: var(--table-drop-indicator-bg);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
355
404
|
/* --------------------------------------------------------------------------
|
|
356
405
|
Tree / expandable rows — indent the tree column by depth (any level).
|
|
357
406
|
React Aria sets `--table-row-level` (1-based) on each body row and
|
|
358
407
|
`data-level` on cells; tree column cells expose `[data-tree-column]`.
|
|
359
408
|
The row custom property inherits onto cells (1rem per level).
|
|
360
409
|
-------------------------------------------------------------------------- */
|
|
361
|
-
.table__cell[data-tree-column] {
|
|
410
|
+
.rp-table__cell[data-tree-column] {
|
|
362
411
|
padding-inline-start: calc(1rem * var(--table-row-level, 1));
|
|
363
412
|
}
|
|
364
413
|
|
|
365
414
|
/* --------------------------------------------------------------------------
|
|
366
415
|
Table Footer (div outside <table>, sits on gray bg)
|
|
367
416
|
-------------------------------------------------------------------------- */
|
|
368
|
-
.table__footer {
|
|
417
|
+
.rp-table__footer {
|
|
369
418
|
@apply flex items-center px-4 py-2.5;
|
|
370
419
|
}
|
|
371
420
|
|
|
372
421
|
/* --------------------------------------------------------------------------
|
|
373
422
|
Resizable Container — wraps table to enable column resizing via React Aria.
|
|
374
423
|
-------------------------------------------------------------------------- */
|
|
375
|
-
.table__resizable-container {
|
|
424
|
+
.rp-table__resizable-container {
|
|
376
425
|
@apply relative scrollbar overflow-auto;
|
|
377
426
|
scrollbar-gutter: auto;
|
|
378
427
|
}
|
|
@@ -381,7 +430,7 @@
|
|
|
381
430
|
Column Resizer — drag handle between resizable columns.
|
|
382
431
|
Replaces the ::after separator when present.
|
|
383
432
|
-------------------------------------------------------------------------- */
|
|
384
|
-
.table__column-resizer {
|
|
433
|
+
.rp-table__column-resizer {
|
|
385
434
|
/* Match the ::after separator: absolute, right edge, short vertical line */
|
|
386
435
|
@apply absolute end-0 top-1/2 h-4 w-px -translate-y-1/2 rounded-sm;
|
|
387
436
|
/* Make it interactive — wider hit area with transparent padding */
|
|
@@ -418,7 +467,7 @@
|
|
|
418
467
|
}
|
|
419
468
|
|
|
420
469
|
/* Hide the ::after separator when a resizer is present in the column */
|
|
421
|
-
.table__column:has(.table__column-resizer)::after {
|
|
470
|
+
.rp-table__column:has(.rp-table__column-resizer)::after {
|
|
422
471
|
content: none;
|
|
423
472
|
}
|
|
424
473
|
|
|
@@ -427,7 +476,7 @@
|
|
|
427
476
|
Non-virtualized: <tr> with <td colSpan=N> inside.
|
|
428
477
|
Virtualized: <div> with <div role="rowheader"> inside.
|
|
429
478
|
-------------------------------------------------------------------------- */
|
|
430
|
-
.table__load-more {
|
|
479
|
+
.rp-table__load-more {
|
|
431
480
|
& td,
|
|
432
481
|
& [role="rowheader"] {
|
|
433
482
|
@apply py-3 text-center;
|
|
@@ -441,6 +490,6 @@
|
|
|
441
490
|
Load More Content — styled container for the loading indicator inside
|
|
442
491
|
the load-more sentinel row.
|
|
443
492
|
-------------------------------------------------------------------------- */
|
|
444
|
-
.table__load-more-content {
|
|
493
|
+
.rp-table__load-more-content {
|
|
445
494
|
@apply flex items-center justify-center gap-2 py-2;
|
|
446
495
|
}
|