@ropav/styles 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -15
- 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 +16 -24
- 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 -39
- 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 +43 -53
- 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 +13 -6
- 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 -28
- package/dist/components/button.css +19 -23
- 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 +36 -23
- package/dist/components/calendar.css +68 -43
- 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 +87 -88
- 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 +26 -24
- 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 +9 -8
- 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 +9 -9
- 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 +23 -40
- 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 +4 -8
- 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 +30 -28
- 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 +21 -104
- package/dist/components/color-swatch.css +13 -13
- 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 +23 -13
- 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 +50 -48
- 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 +9 -13
- 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 +10 -14
- 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 -10
- 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 +41 -45
- package/dist/components/drop-zone/drop-zone.styles.d.ts +13 -0
- package/dist/components/drop-zone/drop-zone.styles.d.ts.map +1 -0
- package/dist/components/drop-zone/drop-zone.styles.js +8 -0
- package/dist/components/drop-zone/index.d.ts +2 -0
- package/dist/components/drop-zone/index.d.ts.map +1 -0
- package/dist/components/drop-zone/index.js +2 -0
- package/dist/components/drop-zone.css +78 -0
- 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 -15
- 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 -5
- 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 -11
- 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/index.css +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +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 +29 -54
- 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 +24 -36
- package/dist/components/input.css +17 -38
- 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 +7 -5
- 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 +16 -11
- 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 +20 -18
- 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 +13 -19
- 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 +15 -21
- 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 +22 -30
- 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 -42
- 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 +47 -59
- 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 -22
- 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 -8
- package/dist/components/progress-bar/progress-bar.styles.d.ts +42 -104
- package/dist/components/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/progress-bar/progress-bar.styles.js +23 -13
- package/dist/components/progress-bar.css +97 -31
- 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 -21
- 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 +46 -48
- 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 +111 -69
- 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 +29 -46
- 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 +26 -31
- 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 +33 -47
- 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 -188
- package/dist/components/sidebar/sidebar.styles.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.styles.js +45 -32
- package/dist/components/sidebar.css +180 -80
- 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 +24 -25
- 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 +64 -56
- 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 +68 -67
- 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 +177 -86
- 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 +41 -52
- 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 +43 -35
- 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 +17 -38
- 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 +58 -56
- 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 -26
- package/dist/components/toggle-button.css +11 -15
- 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 -6
- 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 +53 -45
- 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 +14 -6
- 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 +3 -2
- package/dist/no-preflight.css +8 -0
- package/dist/ropav.min.css +1 -1
- package/dist/themes/airbnb.css +6 -4
- package/dist/themes/coinbase.css +6 -4
- package/dist/themes/default.css +24 -4
- package/dist/themes/discord.css +6 -4
- package/dist/themes/hero.css +24 -4
- package/dist/themes/lavender.css +6 -4
- package/dist/themes/mint.css +6 -4
- package/dist/themes/netflix.css +6 -4
- package/dist/themes/rabbit.css +6 -4
- package/dist/themes/shared/theme.css +1 -0
- package/dist/themes/sky.css +6 -4
- package/dist/themes/spotify.css +6 -4
- package/dist/themes/uber.css +6 -4
- 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 +12 -0
- package/src/components/drop-zone/index.ts +1 -0
- 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/index.ts +1 -0
- 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 +28 -14
- 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 +55 -32
- 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
|
@@ -13,17 +13,31 @@
|
|
|
13
13
|
* so it belongs where a state key belongs and not in the class list.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
.sidebar {
|
|
16
|
+
.rp-sidebar {
|
|
17
17
|
/* The two widths the panel resolves between. Held on the shell rather than the panel so a caller
|
|
18
18
|
* retunes both from one place, and so a drag can write the expanded one to the same property the
|
|
19
19
|
* stylesheet reads. */
|
|
20
20
|
--sidebar-width: calc(var(--spacing) * 64);
|
|
21
21
|
--sidebar-width-icon: calc(var(--spacing) * 14);
|
|
22
|
+
/* The gap a card stands off by and the corner it wears, for the variants where something is
|
|
23
|
+
* a card: the panel under `--floating`, the inset under `--card`. One pair rather than two,
|
|
24
|
+
* because a variant makes exactly one of them a card and a second set would be the same two
|
|
25
|
+
* numbers under a name that is wrong half the time.
|
|
26
|
+
*
|
|
27
|
+
* The corner is the one every container in the library wears, so a sidebar's card and a Card
|
|
28
|
+
* dropped beside it round the same. */
|
|
29
|
+
--sidebar-card-gap: calc(var(--spacing) * 2);
|
|
30
|
+
--sidebar-card-radius: min(32px, var(--component-radius));
|
|
22
31
|
/* The rail's line and the grab area around it, matching `splitter.css` — same hairline, same
|
|
23
32
|
* reasoning about a target no one can hit, same wait before it flares. */
|
|
24
33
|
--sidebar-rail-gutter: 1px;
|
|
25
34
|
--sidebar-rail-target: 15px;
|
|
26
35
|
--sidebar-highlight-delay: 500ms;
|
|
36
|
+
/* What the line is painted with, at rest and lit. Separate properties so a caller can retune one
|
|
37
|
+
* state without flattening the rest onto a single colour. */
|
|
38
|
+
--sidebar-rail-line: var(--separator);
|
|
39
|
+
--sidebar-rail-line-hover: var(--accent);
|
|
40
|
+
--sidebar-rail-line-dragging: var(--sidebar-rail-line-hover);
|
|
27
41
|
|
|
28
42
|
@apply isolate flex h-full w-full;
|
|
29
43
|
}
|
|
@@ -31,11 +45,11 @@
|
|
|
31
45
|
/* Reversing the row rather than reordering the parts: the shell's children are written panel,
|
|
32
46
|
* rail, inset in that order whichever side the sidebar is on, so the rail stays between the two
|
|
33
47
|
* either way and a caller's markup does not change with the prop. */
|
|
34
|
-
.sidebar--left {
|
|
48
|
+
.rp-sidebar--left {
|
|
35
49
|
@apply flex-row;
|
|
36
50
|
}
|
|
37
51
|
|
|
38
|
-
.sidebar--right {
|
|
52
|
+
.rp-sidebar--right {
|
|
39
53
|
@apply flex-row-reverse;
|
|
40
54
|
}
|
|
41
55
|
|
|
@@ -43,18 +57,14 @@
|
|
|
43
57
|
Panel — the nav landmark
|
|
44
58
|
========================================================================== */
|
|
45
59
|
|
|
46
|
-
/* `min-h-0` for the same reason `.splitter__panel` has it: a flex item's automatic minimum is its
|
|
60
|
+
/* `min-h-0` for the same reason `.rp-splitter__panel` has it: a flex item's automatic minimum is its
|
|
47
61
|
* content, so a long nav list would push the panel past the viewport instead of scrolling inside
|
|
48
|
-
* `.sidebar__content`. */
|
|
49
|
-
.sidebar__panel {
|
|
62
|
+
* `.rp-sidebar__content`. */
|
|
63
|
+
.rp-sidebar__panel {
|
|
50
64
|
@apply relative flex min-h-0 shrink-0 grow-0 flex-col overflow-hidden bg-surface text-surface-foreground;
|
|
51
65
|
|
|
52
66
|
inline-size: var(--sidebar-width);
|
|
53
67
|
|
|
54
|
-
/**
|
|
55
|
-
* Transitions
|
|
56
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
57
|
-
*/
|
|
58
68
|
transition: inline-size 200ms var(--ease-out);
|
|
59
69
|
@apply motion-reduce:transition-none;
|
|
60
70
|
}
|
|
@@ -62,23 +72,50 @@
|
|
|
62
72
|
/* Under the pointer the panel follows it exactly. Easing towards each frame's width instead makes
|
|
63
73
|
* the edge lag the cursor by the whole duration, which reads as the panel chasing the drag rather
|
|
64
74
|
* than being dragged. */
|
|
65
|
-
.sidebar__panel[data-resizing="true"] {
|
|
75
|
+
.rp-sidebar__panel[data-resizing="true"] {
|
|
76
|
+
transition: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* And while a stored layout is being put back: that width is where the sidebar starts, not
|
|
80
|
+
* somewhere it moved to. */
|
|
81
|
+
.rp-sidebar__panel[data-restoring="true"] {
|
|
66
82
|
transition: none;
|
|
67
83
|
}
|
|
68
84
|
|
|
69
85
|
/* The separating line is a border rather than a background, so it is one of the few things Forced
|
|
70
86
|
* Colors Mode recolours instead of flattening — no restatement needed here. */
|
|
71
|
-
.sidebar__panel--left {
|
|
87
|
+
.rp-sidebar__panel--left {
|
|
72
88
|
@apply border-e border-separator/50;
|
|
73
89
|
}
|
|
74
90
|
|
|
75
|
-
.sidebar__panel--right {
|
|
91
|
+
.rp-sidebar__panel--right {
|
|
76
92
|
@apply border-s border-separator/50;
|
|
77
93
|
}
|
|
78
94
|
|
|
95
|
+
/* Neither fill nor line: the panel has stopped being a surface, and the inset beside it is the one
|
|
96
|
+
* that paints. After the side modifiers, whose border this has to beat at equal specificity, and
|
|
97
|
+
* before `--drawer`, which stays last for the reason given there. */
|
|
98
|
+
.rp-sidebar__panel--bare {
|
|
99
|
+
@apply border-0 bg-transparent;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* The panel as a card of its own, standing off the page on every side. A whole border rather than
|
|
103
|
+
* the side modifiers' single edge, which at equal specificity is enough to overwrite it — no
|
|
104
|
+
* `border-0` first.
|
|
105
|
+
*
|
|
106
|
+
* The margin is what the rail then sits in, and that gap is already dividing the two, which is why
|
|
107
|
+
* this variant quiets the line: a hairline inside it would be a second answer to the same question.
|
|
108
|
+
*/
|
|
109
|
+
.rp-sidebar__panel--floating {
|
|
110
|
+
@apply border border-separator/50 shadow-surface;
|
|
111
|
+
|
|
112
|
+
margin: var(--sidebar-card-gap);
|
|
113
|
+
border-radius: var(--sidebar-card-radius);
|
|
114
|
+
}
|
|
115
|
+
|
|
79
116
|
/* Collapsing to icons is the default, so the width it collapses to lives on the mode that has one
|
|
80
117
|
* and `--none` is the empty rule. */
|
|
81
|
-
.sidebar__panel--icon[data-collapsed="true"] {
|
|
118
|
+
.rp-sidebar__panel--icon[data-collapsed="true"] {
|
|
82
119
|
inline-size: var(--sidebar-width-icon);
|
|
83
120
|
}
|
|
84
121
|
|
|
@@ -89,22 +126,30 @@
|
|
|
89
126
|
* border paints no background either way. Saying so is what keeps the Storybook forced-colors
|
|
90
127
|
* sweep honest — it reads this panel as one that painted a surface and then lost it to the mode,
|
|
91
128
|
* where in truth there was never anything on screen to lose. */
|
|
92
|
-
.sidebar__panel--offcanvas[data-collapsed="true"] {
|
|
129
|
+
.rp-sidebar__panel--offcanvas[data-collapsed="true"] {
|
|
93
130
|
@apply border-0 bg-transparent;
|
|
94
131
|
|
|
95
132
|
inline-size: 0;
|
|
133
|
+
/* And the standing-off a card variant asks for, which on a box no longer there is a gap held
|
|
134
|
+
* open around nothing — the same fault as the hairline, a little wider. */
|
|
135
|
+
margin: 0;
|
|
96
136
|
}
|
|
97
137
|
|
|
98
|
-
.sidebar__panel--none {
|
|
138
|
+
.rp-sidebar__panel--none {
|
|
99
139
|
}
|
|
100
140
|
|
|
101
141
|
/* Inside a drawer the panel is no longer the surface — the dialog is, and it paints, sizes and
|
|
102
|
-
* slides itself. The panel gives all
|
|
103
|
-
*
|
|
104
|
-
.
|
|
142
|
+
* slides itself. The panel gives all of that up and becomes the column that fills what it was
|
|
143
|
+
* handed, the standing-off and the corner of a card variant included: the dialog is already the
|
|
144
|
+
* shape, and a card inset within it would be a second one drawn inside the first.
|
|
145
|
+
* Last of the panel's modifiers, so it beats the widths and the card geometry above at equal
|
|
146
|
+
* specificity. */
|
|
147
|
+
.rp-sidebar__panel--drawer {
|
|
105
148
|
@apply size-full border-0 bg-transparent;
|
|
106
149
|
|
|
107
150
|
inline-size: auto;
|
|
151
|
+
margin: 0;
|
|
152
|
+
border-radius: 0;
|
|
108
153
|
transition: none;
|
|
109
154
|
}
|
|
110
155
|
|
|
@@ -112,7 +157,7 @@
|
|
|
112
157
|
Header, content, footer
|
|
113
158
|
========================================================================== */
|
|
114
159
|
|
|
115
|
-
.sidebar__header {
|
|
160
|
+
.rp-sidebar__header {
|
|
116
161
|
@apply flex shrink-0 flex-col gap-2 p-2;
|
|
117
162
|
}
|
|
118
163
|
|
|
@@ -123,16 +168,16 @@
|
|
|
123
168
|
* the nearest edge, which is exactly where the fade is, so a keyboard user tabbing down the nav
|
|
124
169
|
* would land on item after item with its focus ring faded out. The padding moves that landing
|
|
125
170
|
* point clear of the fade. Sized from the same property the fade is, so retuning one moves both. */
|
|
126
|
-
.sidebar__content {
|
|
171
|
+
.rp-sidebar__content {
|
|
127
172
|
@apply flex min-h-0 flex-1 flex-col gap-1 overflow-x-hidden overflow-y-auto p-2;
|
|
128
173
|
|
|
129
174
|
scroll-padding-block: var(--scroll-shadow-size, 0px);
|
|
130
175
|
}
|
|
131
176
|
|
|
132
177
|
/* Two classes to beat one: `scroll-shadow.css` is imported under Layout, long after this file under
|
|
133
|
-
* Navigation, so `.scroll-shadow--vertical`'s `scrollbar` wins at equal specificity and the nav
|
|
178
|
+
* Navigation, so `.rp-scroll-shadow--vertical`'s `scrollbar` wins at equal specificity and the nav
|
|
134
179
|
* would grow a full-width scrollbar the moment it became a shadow container. */
|
|
135
|
-
.sidebar__content.scroll-shadow {
|
|
180
|
+
.rp-sidebar__content.rp-scroll-shadow {
|
|
136
181
|
@apply scrollbar-thin;
|
|
137
182
|
|
|
138
183
|
/* The fade is a `mask-image` over the rows, which in Forced Colors Mode means system-coloured
|
|
@@ -145,7 +190,7 @@
|
|
|
145
190
|
}
|
|
146
191
|
}
|
|
147
192
|
|
|
148
|
-
.sidebar__footer {
|
|
193
|
+
.rp-sidebar__footer {
|
|
149
194
|
@apply flex shrink-0 flex-col gap-2 p-2;
|
|
150
195
|
}
|
|
151
196
|
|
|
@@ -153,19 +198,19 @@
|
|
|
153
198
|
Groups
|
|
154
199
|
========================================================================== */
|
|
155
200
|
|
|
156
|
-
.sidebar__group {
|
|
201
|
+
.rp-sidebar__group {
|
|
157
202
|
@apply flex w-full min-w-0 flex-col gap-0.5;
|
|
158
203
|
}
|
|
159
204
|
|
|
160
|
-
/* Matches `.header`, which is the same muted label above the same kind of list. */
|
|
161
|
-
.sidebar__group-label {
|
|
205
|
+
/* Matches `.rp-header`, which is the same muted label above the same kind of list. */
|
|
206
|
+
.rp-sidebar__group-label {
|
|
162
207
|
@apply w-full truncate px-2 pt-1.5 pb-1 text-start text-xs font-medium text-muted;
|
|
163
208
|
}
|
|
164
209
|
|
|
165
210
|
/* `sr-only` rather than `hidden`: the label is what tells a screen reader which group an item
|
|
166
211
|
* belongs to, and a collapsed sidebar is still being read. Taking it out of flow also takes it out
|
|
167
212
|
* of the group's `gap`, so the icons close up rather than leaving a hole where the label was. */
|
|
168
|
-
.sidebar__group-label[data-collapsed="true"] {
|
|
213
|
+
.rp-sidebar__group-label[data-collapsed="true"] {
|
|
169
214
|
@apply sr-only;
|
|
170
215
|
}
|
|
171
216
|
|
|
@@ -174,7 +219,7 @@
|
|
|
174
219
|
* tailwind-merge cannot help either, because the width lives inside a BEM rule rather than in the
|
|
175
220
|
* class string. It needs no taking back: the rule runs the width of the content's padding box,
|
|
176
221
|
* which is exactly the box every item beside it already fills. */
|
|
177
|
-
.sidebar__separator {
|
|
222
|
+
.rp-sidebar__separator {
|
|
178
223
|
@apply my-1;
|
|
179
224
|
}
|
|
180
225
|
|
|
@@ -182,16 +227,24 @@
|
|
|
182
227
|
Nav item
|
|
183
228
|
========================================================================== */
|
|
184
229
|
|
|
185
|
-
.sidebar__item {
|
|
186
|
-
@apply relative flex min-h-9 w-full min-w-0 items-center justify-start gap-2 rounded-component px-2 text-sm font-medium
|
|
230
|
+
.rp-sidebar__item {
|
|
231
|
+
@apply relative flex min-h-9 w-full min-w-0 items-center justify-start gap-2 rounded-component px-2 text-sm font-medium no-underline outline-none no-highlight;
|
|
232
|
+
|
|
233
|
+
/* The row's fill and label, per state. A caller retuning the resting pair used to flatten the
|
|
234
|
+
* current page's along with it, since one declaration cannot tell the states apart. */
|
|
235
|
+
--sidebar-item-bg: transparent;
|
|
236
|
+
--sidebar-item-bg-hover: var(--state-layer);
|
|
237
|
+
--sidebar-item-bg-pressed: var(--sidebar-item-bg-hover);
|
|
238
|
+
--sidebar-item-bg-current: var(--accent-soft);
|
|
239
|
+
--sidebar-item-fg: var(--foreground);
|
|
240
|
+
--sidebar-item-fg-current: var(--accent-soft-foreground);
|
|
241
|
+
|
|
242
|
+
background-color: var(--sidebar-item-bg);
|
|
243
|
+
color: var(--sidebar-item-fg);
|
|
187
244
|
|
|
188
245
|
/* Cursor */
|
|
189
246
|
cursor: var(--cursor-interactive);
|
|
190
247
|
|
|
191
|
-
/**
|
|
192
|
-
* Transitions
|
|
193
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
194
|
-
*/
|
|
195
248
|
transition:
|
|
196
249
|
background-color 150ms var(--ease-out),
|
|
197
250
|
color 150ms var(--ease-out);
|
|
@@ -201,7 +254,7 @@
|
|
|
201
254
|
@media (hover: hover) {
|
|
202
255
|
&:hover,
|
|
203
256
|
&[data-hovered="true"] {
|
|
204
|
-
|
|
257
|
+
background-color: var(--sidebar-item-bg-hover);
|
|
205
258
|
}
|
|
206
259
|
}
|
|
207
260
|
|
|
@@ -214,14 +267,15 @@
|
|
|
214
267
|
/* Pressed state */
|
|
215
268
|
&:active,
|
|
216
269
|
&[data-pressed="true"] {
|
|
217
|
-
|
|
270
|
+
background-color: var(--sidebar-item-bg-pressed);
|
|
218
271
|
}
|
|
219
272
|
|
|
220
273
|
/* The current page. Its whole job is to be the one item that stands out, so the mode flattening
|
|
221
274
|
* the fill onto the page would take exactly the distinction away — hence `forced-selected`,
|
|
222
275
|
* which is what the rest of the library reaches for to say "this one". */
|
|
223
276
|
&[data-current="true"] {
|
|
224
|
-
|
|
277
|
+
background-color: var(--sidebar-item-bg-current);
|
|
278
|
+
color: var(--sidebar-item-fg-current);
|
|
225
279
|
|
|
226
280
|
@apply forced-selected;
|
|
227
281
|
}
|
|
@@ -238,7 +292,7 @@
|
|
|
238
292
|
}
|
|
239
293
|
}
|
|
240
294
|
|
|
241
|
-
.sidebar__item-icon {
|
|
295
|
+
.rp-sidebar__item-icon {
|
|
242
296
|
@apply flex size-4 shrink-0 items-center justify-center;
|
|
243
297
|
|
|
244
298
|
svg {
|
|
@@ -246,28 +300,28 @@
|
|
|
246
300
|
}
|
|
247
301
|
}
|
|
248
302
|
|
|
249
|
-
.sidebar__item-label {
|
|
303
|
+
.rp-sidebar__item-label {
|
|
250
304
|
@apply min-w-0 flex-1 truncate text-start;
|
|
251
305
|
}
|
|
252
306
|
|
|
253
307
|
/* Hidden the same way the group label is, and for the same reason — this *is* the item's
|
|
254
308
|
* accessible name. */
|
|
255
|
-
.sidebar__item-label[data-collapsed="true"] {
|
|
309
|
+
.rp-sidebar__item-label[data-collapsed="true"] {
|
|
256
310
|
@apply sr-only;
|
|
257
311
|
}
|
|
258
312
|
|
|
259
|
-
.sidebar__item-trailing {
|
|
313
|
+
.rp-sidebar__item-trailing {
|
|
260
314
|
@apply flex shrink-0 items-center;
|
|
261
315
|
}
|
|
262
316
|
|
|
263
|
-
.sidebar__item-trailing[data-collapsed="true"] {
|
|
317
|
+
.rp-sidebar__item-trailing[data-collapsed="true"] {
|
|
264
318
|
@apply hidden;
|
|
265
319
|
}
|
|
266
320
|
|
|
267
321
|
/* The tooltip's own trigger is `inline-block`, and inside the nav's column that would shrink the
|
|
268
322
|
* item it wraps down to its contents. An item is a full-width row and has to stay one whether or
|
|
269
323
|
* not it has a tooltip hanging off it. */
|
|
270
|
-
.sidebar__item-tooltip {
|
|
324
|
+
.rp-sidebar__item-tooltip {
|
|
271
325
|
@apply block w-full;
|
|
272
326
|
}
|
|
273
327
|
|
|
@@ -282,7 +336,7 @@
|
|
|
282
336
|
* open or shut; this one sits at the end of a nav row and has a direction to mean, so the shut
|
|
283
337
|
* state points the way the rows will come from. `rtl` turns it the other way for the same reason
|
|
284
338
|
* it is `ms-auto` and not `ml-auto`. */
|
|
285
|
-
.sidebar__item-indicator {
|
|
339
|
+
.rp-sidebar__item-indicator {
|
|
286
340
|
@apply ms-auto size-3.5 shrink-0 -rotate-90 text-muted rtl:rotate-90;
|
|
287
341
|
|
|
288
342
|
/**
|
|
@@ -297,14 +351,14 @@
|
|
|
297
351
|
|
|
298
352
|
/* Nothing left to point at once the sidebar is a rail: the children are not rendered there at all,
|
|
299
353
|
* and a chevron promising something that never opens is worse than no chevron. */
|
|
300
|
-
.sidebar__item-indicator[data-collapsed="true"] {
|
|
354
|
+
.rp-sidebar__item-indicator[data-collapsed="true"] {
|
|
301
355
|
@apply hidden;
|
|
302
356
|
}
|
|
303
357
|
|
|
304
358
|
/* The rows under a nav item, indented and gathered by a line down the gutter they share. One border
|
|
305
359
|
* on the container rather than one per row, so the line runs unbroken from the first child to the
|
|
306
360
|
* last however many there are. */
|
|
307
|
-
.sidebar__sub-menu {
|
|
361
|
+
.rp-sidebar__sub-menu {
|
|
308
362
|
/* The row's own inline padding plus half its icon, which lands the line on the icon's centre.
|
|
309
363
|
* Written from those two rather than as the number they come to, so retuning either moves the
|
|
310
364
|
* line with it instead of leaving it a few pixels off. */
|
|
@@ -332,15 +386,11 @@
|
|
|
332
386
|
* and `height: var(--disclosure-panel-height)` with nothing behind it would leave the rows sitting
|
|
333
387
|
* under an `opacity: 0` that never lifts.
|
|
334
388
|
*/
|
|
335
|
-
.sidebar__sub-menu--collapsible {
|
|
389
|
+
.rp-sidebar__sub-menu--collapsible {
|
|
336
390
|
opacity: 0;
|
|
337
391
|
height: var(--disclosure-panel-height);
|
|
338
392
|
overflow: clip;
|
|
339
393
|
|
|
340
|
-
/**
|
|
341
|
-
* Transitions
|
|
342
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
343
|
-
*/
|
|
344
394
|
transition:
|
|
345
395
|
height 200ms var(--ease-out-quad),
|
|
346
396
|
opacity 200ms var(--ease-out);
|
|
@@ -354,7 +404,7 @@
|
|
|
354
404
|
|
|
355
405
|
/* A child row carries no icon, so it gives up the gap that was holding one and drops to the weight
|
|
356
406
|
* of what it is — a destination under a heading rather than another heading. */
|
|
357
|
-
.sidebar__item--sub {
|
|
407
|
+
.rp-sidebar__item--sub {
|
|
358
408
|
@apply gap-0 font-normal;
|
|
359
409
|
}
|
|
360
410
|
|
|
@@ -362,20 +412,41 @@
|
|
|
362
412
|
Inset — the content beside the sidebar
|
|
363
413
|
========================================================================== */
|
|
364
414
|
|
|
365
|
-
/* `min-w-0` for the reason `.splitter__panel` documents: without it a wide table inside the inset
|
|
415
|
+
/* `min-w-0` for the reason `.rp-splitter__panel` documents: without it a wide table inside the inset
|
|
366
416
|
* sets a floor under the whole shell and the sidebar can never be given its width back. */
|
|
367
|
-
.sidebar__inset {
|
|
417
|
+
.rp-sidebar__inset {
|
|
368
418
|
@apply relative flex min-w-0 flex-1 flex-col overflow-hidden bg-background;
|
|
369
419
|
}
|
|
370
420
|
|
|
421
|
+
/* The page beside a bare panel, and now the thing that paints. `--surface` rather than the base
|
|
422
|
+
* rule's `--background`: this stopped being the page's background the moment it became a plate
|
|
423
|
+
* lying on one, which is what `--surface` names.
|
|
424
|
+
*
|
|
425
|
+
* The first of this component's modifiers to *add* paint rather than drop it, which is what puts it
|
|
426
|
+
* in front of the forced-colors sweep as a box with something to lose. Under the mode the fill
|
|
427
|
+
* flattens onto the page behind it and the shadow goes, leaving the contents sitting loose — so it
|
|
428
|
+
* takes the same inset outline every container that paints takes, offset inwards so nothing moves
|
|
429
|
+
* and the radius above still holds it. */
|
|
430
|
+
.rp-sidebar__inset--card {
|
|
431
|
+
@apply bg-surface text-surface-foreground shadow-surface;
|
|
432
|
+
|
|
433
|
+
margin: var(--sidebar-card-gap);
|
|
434
|
+
border-radius: var(--sidebar-card-radius);
|
|
435
|
+
|
|
436
|
+
@media (forced-colors: active) {
|
|
437
|
+
outline: 1px solid CanvasText;
|
|
438
|
+
outline-offset: -1px;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
371
442
|
/* ==========================================================================
|
|
372
443
|
Rail — the edge strip
|
|
373
444
|
========================================================================== */
|
|
374
445
|
|
|
375
|
-
/* Built like `.splitter__handle`, down to the `::after`: the flex item is the gutter and paints
|
|
446
|
+
/* Built like `.rp-splitter__handle`, down to the `::after`: the flex item is the gutter and paints
|
|
376
447
|
* nothing, so the line can thicken on hover without the gutter changing width and shifting the
|
|
377
448
|
* whole page by a pixel. */
|
|
378
|
-
.sidebar__rail {
|
|
449
|
+
.rp-sidebar__rail {
|
|
379
450
|
@apply relative z-10 flex shrink-0 grow-0 items-center justify-center self-stretch;
|
|
380
451
|
@apply bg-transparent outline-none select-none no-highlight;
|
|
381
452
|
|
|
@@ -385,9 +456,14 @@
|
|
|
385
456
|
inline-size: var(--sidebar-rail-gutter);
|
|
386
457
|
cursor: var(--cursor-interactive);
|
|
387
458
|
|
|
459
|
+
/* On the host, not in `::after` where the transition lives: the variant reaches a pseudo-element
|
|
460
|
+
* from its originating element, and appending its condition after `::after` matches nothing. */
|
|
461
|
+
@apply motion-reduce:transition-none;
|
|
462
|
+
|
|
388
463
|
&::after {
|
|
389
|
-
@apply pointer-events-none absolute inset-y-0 rounded-sm
|
|
464
|
+
@apply pointer-events-none absolute inset-y-0 rounded-sm content-[''];
|
|
390
465
|
|
|
466
|
+
background-color: var(--sidebar-rail-line);
|
|
391
467
|
inline-size: var(--sidebar-rail-gutter);
|
|
392
468
|
|
|
393
469
|
/* Flattened to `Canvas` the line stops existing rather than weakening — the whole part *is*
|
|
@@ -396,28 +472,15 @@
|
|
|
396
472
|
background-color: CanvasText;
|
|
397
473
|
}
|
|
398
474
|
|
|
399
|
-
/**
|
|
400
|
-
* Transitions
|
|
401
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
402
|
-
*/
|
|
403
475
|
transition:
|
|
404
476
|
background-color 150ms var(--ease-out),
|
|
405
477
|
inline-size 150ms var(--ease-out);
|
|
406
|
-
@apply motion-reduce:transition-none;
|
|
407
478
|
}
|
|
408
479
|
|
|
409
480
|
&:hover::after,
|
|
410
481
|
&[data-hovered="true"]::after,
|
|
411
482
|
&[data-dragging="true"]::after {
|
|
412
|
-
@apply bg-accent;
|
|
413
|
-
|
|
414
483
|
inline-size: calc(var(--sidebar-rail-gutter) * 2);
|
|
415
|
-
|
|
416
|
-
/* `bg-separator` and `bg-accent` both flatten to `Canvas`, so without this the resting and
|
|
417
|
-
* active states are byte-identical under the mode. */
|
|
418
|
-
@media (forced-colors: active) {
|
|
419
|
-
background-color: Highlight;
|
|
420
|
-
}
|
|
421
484
|
}
|
|
422
485
|
|
|
423
486
|
/* Delayed on the way in and immediate on the way out. A grab area many times the width of the
|
|
@@ -425,15 +488,27 @@
|
|
|
425
488
|
* reads as a twitch rather than an invitation. */
|
|
426
489
|
&:hover::after,
|
|
427
490
|
&[data-hovered="true"]::after {
|
|
491
|
+
background-color: var(--sidebar-rail-line-hover);
|
|
428
492
|
transition-delay: var(--sidebar-highlight-delay);
|
|
429
493
|
}
|
|
430
494
|
|
|
431
495
|
/* A drag under way is not in question, so it skips the wait. Last, because a drag usually starts
|
|
432
496
|
* from a hover and has to win. */
|
|
433
497
|
&[data-dragging="true"]::after {
|
|
498
|
+
background-color: var(--sidebar-rail-line-dragging);
|
|
434
499
|
transition-delay: 0ms;
|
|
435
500
|
}
|
|
436
501
|
|
|
502
|
+
/* Every lit colour flattens to the same `Canvas` as the resting one, so without this the two are
|
|
503
|
+
* byte-identical under the mode. One block for all of them, after the colours it overrides. */
|
|
504
|
+
@media (forced-colors: active) {
|
|
505
|
+
&:hover::after,
|
|
506
|
+
&[data-hovered="true"]::after,
|
|
507
|
+
&[data-dragging="true"]::after {
|
|
508
|
+
background-color: Highlight;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
437
512
|
&:focus-visible,
|
|
438
513
|
&[data-focus-visible="true"] {
|
|
439
514
|
@apply status-focused;
|
|
@@ -453,14 +528,34 @@
|
|
|
453
528
|
|
|
454
529
|
/* Only a rail that resizes says so with the cursor. One that merely toggles is a button, and
|
|
455
530
|
* `--cursor-interactive` on the base rule already covers it. */
|
|
456
|
-
.sidebar__rail--resizable {
|
|
531
|
+
.rp-sidebar__rail--resizable {
|
|
457
532
|
@apply cursor-col-resize;
|
|
458
533
|
}
|
|
459
534
|
|
|
535
|
+
/* Nothing left for the line to divide once something else is drawing that division — a card's own
|
|
536
|
+
* edge, or the gap it stands in — so it goes quiet in every state.
|
|
537
|
+
*
|
|
538
|
+
* Re-pointing the properties rather than restating the state rules, the shape `.rp-input--secondary`
|
|
539
|
+
* takes: a `background-color` here would lose to `.rp-sidebar__rail:hover::after` on specificity, and
|
|
540
|
+
* restating that set drifts the day a state is added to it.
|
|
541
|
+
*
|
|
542
|
+
* All three, and the third is not redundant. `--sidebar-rail-line-dragging` is declared on the
|
|
543
|
+
* shell as a `var()` of the hover one, so it is substituted there, against the shell's value; only
|
|
544
|
+
* the resolved colour reaches this far. Re-pointing hover here arrives too late for it, and a drag
|
|
545
|
+
* would still flare.
|
|
546
|
+
*
|
|
547
|
+
* The line comes back under Forced Colors Mode, on purpose: those blocks paint system keywords,
|
|
548
|
+
* which are not a component's to quiet. */
|
|
549
|
+
.rp-sidebar__rail--quiet {
|
|
550
|
+
--sidebar-rail-line: transparent;
|
|
551
|
+
--sidebar-rail-line-hover: transparent;
|
|
552
|
+
--sidebar-rail-line-dragging: transparent;
|
|
553
|
+
}
|
|
554
|
+
|
|
460
555
|
/* The invisible hit area, overhanging the hairline on both sides. A negative `inset` rather than a
|
|
461
556
|
* transparent border, because Forced Colors Mode turns a transparent border-color opaque and every
|
|
462
557
|
* rail would render as a solid block. */
|
|
463
|
-
.sidebar__rail-target {
|
|
558
|
+
.rp-sidebar__rail-target {
|
|
464
559
|
@apply absolute inset-0 bg-transparent;
|
|
465
560
|
|
|
466
561
|
inset-inline: calc((var(--sidebar-rail-target) - var(--sidebar-rail-gutter)) / -2);
|
|
@@ -470,16 +565,20 @@
|
|
|
470
565
|
Trigger
|
|
471
566
|
========================================================================== */
|
|
472
567
|
|
|
473
|
-
.sidebar__trigger {
|
|
474
|
-
@apply inline-flex size-8 shrink-0 items-center justify-center rounded-component
|
|
568
|
+
.rp-sidebar__trigger {
|
|
569
|
+
@apply inline-flex size-8 shrink-0 items-center justify-center rounded-component outline-none select-none no-highlight;
|
|
570
|
+
|
|
571
|
+
--sidebar-trigger-bg: transparent;
|
|
572
|
+
--sidebar-trigger-bg-hover: var(--state-layer);
|
|
573
|
+
--sidebar-trigger-fg: var(--muted);
|
|
574
|
+
--sidebar-trigger-fg-hover: var(--foreground);
|
|
575
|
+
|
|
576
|
+
background-color: var(--sidebar-trigger-bg);
|
|
577
|
+
color: var(--sidebar-trigger-fg);
|
|
475
578
|
|
|
476
579
|
/* Cursor */
|
|
477
580
|
cursor: var(--cursor-interactive);
|
|
478
581
|
|
|
479
|
-
/**
|
|
480
|
-
* Transitions
|
|
481
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
482
|
-
*/
|
|
483
582
|
transition:
|
|
484
583
|
background-color 150ms var(--ease-out),
|
|
485
584
|
color 150ms var(--ease-out);
|
|
@@ -493,7 +592,8 @@
|
|
|
493
592
|
@media (hover: hover) {
|
|
494
593
|
&:hover,
|
|
495
594
|
&[data-hovered="true"] {
|
|
496
|
-
|
|
595
|
+
background-color: var(--sidebar-trigger-bg-hover);
|
|
596
|
+
color: var(--sidebar-trigger-fg-hover);
|
|
497
597
|
}
|
|
498
598
|
}
|
|
499
599
|
|
|
@@ -1,28 +1,14 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const skeletonVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
pulse: "skeleton--pulse";
|
|
14
|
-
shimmer: "skeleton--shimmer";
|
|
15
|
-
};
|
|
16
|
-
}, {
|
|
17
|
-
base: string;
|
|
18
|
-
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
19
|
-
animationType: {
|
|
20
|
-
none: "skeleton--none";
|
|
21
|
-
pulse: "skeleton--pulse";
|
|
22
|
-
shimmer: "skeleton--shimmer";
|
|
23
|
-
};
|
|
24
|
-
}, {
|
|
25
|
-
base: string;
|
|
26
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const skeletonVariants: (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
|
+
animationType?: "none" | "pulse" | "shimmer" | 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
|
+
animationType?: "none" | "pulse" | "shimmer" | undefined;
|
|
11
|
+
}) | undefined) => string;
|
|
12
|
+
};
|
|
27
13
|
export type SkeletonVariants = VariantProps<typeof skeletonVariants>;
|
|
28
14
|
//# sourceMappingURL=skeleton.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.styles.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"skeleton.styles.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;;;;;;;CAc3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/skeleton/skeleton.styles.ts
|
|
3
3
|
const skeletonVariants = tv({
|
|
4
4
|
defaultVariants: { animationType: "shimmer" },
|
|
5
|
-
slots: { base: "skeleton" },
|
|
5
|
+
slots: { base: "rp-skeleton" },
|
|
6
6
|
variants: { animationType: {
|
|
7
|
-
none: "skeleton--none",
|
|
8
|
-
pulse: "skeleton--pulse",
|
|
9
|
-
shimmer: "skeleton--shimmer"
|
|
7
|
+
none: "rp-skeleton--none",
|
|
8
|
+
pulse: "rp-skeleton--pulse",
|
|
9
|
+
shimmer: "rp-skeleton--shimmer"
|
|
10
10
|
} }
|
|
11
11
|
});
|
|
12
12
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.skeleton {
|
|
1
|
+
.rp-skeleton {
|
|
2
2
|
@apply pointer-events-none relative overflow-hidden rounded-sm bg-surface-tertiary/70;
|
|
3
3
|
|
|
4
4
|
/* Forced Colors Mode flattens the fill to `Canvas` - the same colour as the page behind it -
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
/* TODO: Skeleton with parent are not visible */
|
|
15
15
|
|
|
16
16
|
/* Animation types */
|
|
17
|
-
.skeleton--shimmer {
|
|
17
|
+
.rp-skeleton--shimmer {
|
|
18
18
|
&::after {
|
|
19
19
|
@apply absolute inset-0 -translate-x-full animate-skeleton bg-linear-to-r from-transparent via-surface-tertiary to-transparent content-[''];
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/* When applied to a parent container with multiple skeletons */
|
|
23
|
-
&:has(.skeleton) {
|
|
23
|
+
&:has(.rp-skeleton) {
|
|
24
24
|
&::after {
|
|
25
25
|
content: none;
|
|
26
26
|
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/* Ensure children don't have their own shimmer */
|
|
44
|
-
& .skeleton {
|
|
44
|
+
& .rp-skeleton {
|
|
45
45
|
&::after {
|
|
46
46
|
content: none;
|
|
47
47
|
}
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.skeleton--pulse {
|
|
52
|
+
.rp-skeleton--pulse {
|
|
53
53
|
@apply animate-pulse;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.skeleton--none {
|
|
56
|
+
.rp-skeleton--none {
|
|
57
57
|
}
|