@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
package/README.md
CHANGED
|
@@ -2,13 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
The style layer behind [`ropav`](https://www.npmjs.com/package/ropav): plain CSS for every component,
|
|
4
4
|
themes, utilities, and custom variants, plus `tv()` variants that do nothing but map props to class names.
|
|
5
|
-
Framework-agnostic — not a line of Vue or React in it. `
|
|
6
|
-
|
|
5
|
+
Framework-agnostic — not a line of Vue or React in it. The only `dependency` is `tw-animate-css`;
|
|
6
|
+
the only peer is `tailwindcss`.
|
|
7
|
+
|
|
8
|
+
**[Theming guide](https://ropav.netlify.app/theming/)** ·
|
|
9
|
+
[Tokens](https://ropav.netlify.app/theming/tokens) ·
|
|
10
|
+
[Class names](https://ropav.netlify.app/theming/class-names) ·
|
|
11
|
+
[State colors](https://ropav.netlify.app/theming/state-colors)
|
|
7
12
|
|
|
8
13
|
## Provenance
|
|
9
14
|
|
|
10
15
|
A derivative work of [`@heroui/styles@3.2.4`](https://github.com/heroui-inc/heroui/tree/v3.2.4/packages/styles),
|
|
11
|
-
vendored into this workspace so the style layer can be fixed in place. See
|
|
16
|
+
vendored into this workspace so the style layer can be fixed in place. See
|
|
17
|
+
[`ropav`](https://www.npmjs.com/package/ropav) for the rest.
|
|
12
18
|
|
|
13
19
|
## Installation
|
|
14
20
|
|
|
@@ -34,7 +40,7 @@ That single line pulls in, in layer order (`theme, base, components, utilities`)
|
|
|
34
40
|
|
|
35
41
|
- Tailwind CSS v4 and `tw-animate-css`
|
|
36
42
|
- base styles and the scrollbar system
|
|
37
|
-
- the component layer —
|
|
43
|
+
- the component layer — 88 files, one per component
|
|
38
44
|
- the default theme: tokens for light and dark
|
|
39
45
|
- utilities and custom variants
|
|
40
46
|
|
|
@@ -59,7 +65,7 @@ That single line pulls in, in layer order (`theme, base, components, utilities`)
|
|
|
59
65
|
```ts
|
|
60
66
|
import {buttonVariants, type ButtonVariants} from "@ropav/styles";
|
|
61
67
|
|
|
62
|
-
buttonVariants({variant: "primary", size: "sm"}); // "button button--primary button--sm"
|
|
68
|
+
buttonVariants({variant: "primary", size: "sm"}); // "rp-button rp-button--primary rp-button--sm"
|
|
63
69
|
```
|
|
64
70
|
|
|
65
71
|
Every component also has its own subpath so bundlers can drop the rest:
|
|
@@ -73,7 +79,7 @@ packages/styles/
|
|
|
73
79
|
├── base/
|
|
74
80
|
│ ├── base.css # Layout tokens, typography, resets
|
|
75
81
|
│ └── scrollbar.css # Scrollbar system
|
|
76
|
-
├── components/ #
|
|
82
|
+
├── components/ # 88 CSS files, one per component
|
|
77
83
|
├── themes/
|
|
78
84
|
│ ├── default.css # Default theme — hand-written, light and dark token sets
|
|
79
85
|
│ ├── sky.css … rabbit.css # Ten more themes — generated, do not edit
|
|
@@ -88,22 +94,31 @@ packages/styles/
|
|
|
88
94
|
|
|
89
95
|
## Class naming
|
|
90
96
|
|
|
91
|
-
BEM, so a class can be read without looking it up:
|
|
97
|
+
Prefixed BEM, so a class can be read without looking it up and belongs to nobody else:
|
|
92
98
|
|
|
93
|
-
- **
|
|
94
|
-
- **
|
|
95
|
-
- **
|
|
99
|
+
- **Prefix** — `rp-`, on every class the component layer defines
|
|
100
|
+
- **Block** — the component itself: `.rp-button`, `.rp-card`, `.rp-alert`
|
|
101
|
+
- **Modifier** — a variation, double dash: `.rp-button--primary`, `.rp-button--lg`, `.rp-button--icon-only`
|
|
102
|
+
- **Element** — a part of the component, double underscore: `.rp-card__header`, `.rp-alert__icon`
|
|
96
103
|
|
|
97
104
|
```html
|
|
98
|
-
<button class="button">Click me</button>
|
|
99
|
-
<button class="button button--primary">Save</button>
|
|
100
|
-
<button class="button button--primary button--sm">Small primary</button>
|
|
105
|
+
<button class="rp-button">Click me</button>
|
|
106
|
+
<button class="rp-button rp-button--primary">Save</button>
|
|
107
|
+
<button class="rp-button rp-button--primary rp-button--sm">Small primary</button>
|
|
101
108
|
```
|
|
102
109
|
|
|
110
|
+
**The prefix is not decoration.** Component rules live in the `components` layer and a host app's
|
|
111
|
+
CSS is usually unlayered, so the host wins every property it declares — and what leaks onto it is
|
|
112
|
+
every property it never mentioned. A host element wearing a bare `menu` or `card` would inherit
|
|
113
|
+
half a component and no error anywhere. `rp-` is what stops the library from claiming names it does
|
|
114
|
+
not own; keyframes and `view-transition-class` names carry it for the same reason, being
|
|
115
|
+
document-global too. `tests/styles/class-prefix.test.ts` in `ropav` fails on any that does not.
|
|
116
|
+
|
|
103
117
|
Two conventions the whole layer relies on:
|
|
104
118
|
|
|
105
|
-
**Default size lives in the base class.** `.button` already renders at the `--md` size, so
|
|
106
|
-
empty rule with a comment saying why. A component with no size modifier
|
|
119
|
+
**Default size lives in the base class.** `.rp-button` already renders at the `--md` size, so
|
|
120
|
+
`.rp-button--md` is an empty rule with a comment saying why. A component with no size modifier
|
|
121
|
+
never looks broken.
|
|
107
122
|
|
|
108
123
|
**State keys on `data-*`, with a pseudo-class fallback.** Interactive rules are written as
|
|
109
124
|
`&:hover, &[data-hovered="true"]`, `&:active, &[data-pressed="true"]`, `&:focus-visible,
|
|
@@ -112,6 +127,13 @@ component that publishes it as an attribute.
|
|
|
112
127
|
|
|
113
128
|
`components/button.css` is the densest example of both — read it before writing a new component file.
|
|
114
129
|
|
|
130
|
+
**Every `ropav` component takes a `class` prop**, appended to the classes its `tv()` recipe
|
|
131
|
+
carries. A utility passed that way wins on cascade order alone — component rules live in the
|
|
132
|
+
`components` layer, utilities in the later `utilities` one — so nothing has to be stripped for it
|
|
133
|
+
to take effect. That is the first thing to reach for. It cannot reach a part drawn in
|
|
134
|
+
`::before`/`::after`, and it flattens every state of whatever property it sets — see
|
|
135
|
+
[State colors](#state-colors) for the way round both.
|
|
136
|
+
|
|
115
137
|
## Theming
|
|
116
138
|
|
|
117
139
|
Two independent axes. `data-theme` picks the palette, a `light`/`dark` class picks the appearance:
|
|
@@ -203,6 +225,80 @@ scrollbar set, and shadows.
|
|
|
203
225
|
stale the moment a token moves. `themes/shared/theme.css` holds what is derived from those tokens: the
|
|
204
226
|
`--radius-xs` … `--radius-4xl` scale and the easing curves.
|
|
205
227
|
|
|
228
|
+
### State colors
|
|
229
|
+
|
|
230
|
+
A component's own properties are the third tier, declared on its block and private to its file —
|
|
231
|
+
`--button-bg`, `--switch-control-bg-checked-hover`, `--sidebar-rail-line`. The convention:
|
|
232
|
+
|
|
233
|
+
> **A color a state rule paints goes through a custom property — where more than one state paints
|
|
234
|
+
> that property.**
|
|
235
|
+
|
|
236
|
+
That is what makes one state retunable on its own. A color written straight into the rule is not:
|
|
237
|
+
the resting and the lit value are the same property on the same element, so the one declaration a
|
|
238
|
+
caller writes to change either beats every state rule at once — and a utility beats them all
|
|
239
|
+
whatever their specificity, `utilities` being a later layer than `components`. The only way left is
|
|
240
|
+
to restate the whole state set behind `:not()`, which drifts silently the day a state is added.
|
|
241
|
+
|
|
242
|
+
So a caller sets the property instead, and the states that read the others are left standing:
|
|
243
|
+
|
|
244
|
+
```html
|
|
245
|
+
<!-- No line at rest; it still flares on hover and while dragging. -->
|
|
246
|
+
<Sidebar class="[--sidebar-rail-line:transparent]">
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
The qualifier is what keeps this from becoming surface for its own sake. Where exactly one state
|
|
250
|
+
paints a property, a caller can name that state from the call site — `hover:bg-*`, `focus-visible:outline-*` —
|
|
251
|
+
and there is no other state for it to flatten, so no property is minted. It is the second state
|
|
252
|
+
painting the same thing that makes the call site unable to tell them apart.
|
|
253
|
+
|
|
254
|
+
Defaults chain, so retuning one carries the states below it unless they are set too —
|
|
255
|
+
`--sidebar-rail-line-dragging` follows `--sidebar-rail-line-hover`, the way `--button-bg-pressed`
|
|
256
|
+
follows `--button-bg-hover`. Read `components/button.css` for the shape and
|
|
257
|
+
`components/sidebar.css` for a part painted on a pseudo-element, which a class cannot reach at all.
|
|
258
|
+
|
|
259
|
+
Two limits. The properties are per component and resolve to the tokens above, so a palette change
|
|
260
|
+
belongs in a theme rather than here. And Forced Colors Mode is not covered: those blocks paint the
|
|
261
|
+
system keywords, which are the only colors exempt from the override and not a component's to
|
|
262
|
+
retune — `[--sidebar-rail-line:transparent]` leaves the line drawn under High Contrast, on purpose.
|
|
263
|
+
|
|
264
|
+
`state-colors.test.ts` in the `ropav` package reads every component file and fails on a state color
|
|
265
|
+
that does not go through a property. Its ledger of exceptions is currently empty, so an entry
|
|
266
|
+
appearing there is debt to pay down rather than a licence to add more.
|
|
267
|
+
|
|
268
|
+
### Translucent surfaces
|
|
269
|
+
|
|
270
|
+
A `surface--transparent` paints nothing of its own, and so does a surface a caller has thinned to
|
|
271
|
+
let something through — a blurred header, a panel over an image, a window whose material the OS
|
|
272
|
+
draws. What sits on one of those has no way to know what is behind it, and that splits the palette
|
|
273
|
+
in two.
|
|
274
|
+
|
|
275
|
+
**Safe on anything: the tokens that are an alpha.** `--state-layer` is what a state paints, and
|
|
276
|
+
`--separator` and `--border` are the lines — each an alpha of `--surface-foreground` rather than a
|
|
277
|
+
neutral of its own. An alpha darkens or lightens whatever it lands on, so it holds its contrast
|
|
278
|
+
against a fill it was never tuned for: another surface, the far half of the theme, or a photograph.
|
|
279
|
+
The `-soft` family and `--scrollbar-thumb` are alphas too, which is why a selection is
|
|
280
|
+
`--accent-soft` wherever the library marks one.
|
|
281
|
+
|
|
282
|
+
**Not safe: the fills.** `--default`, `--accent`, the status colors, `--surface` and its secondary
|
|
283
|
+
and tertiary steps are opaque, and they are meant to be — a badge you can read the page through is a
|
|
284
|
+
broken badge. They assume a background because they *are* one. Use them to fill a box, never to mark
|
|
285
|
+
a state on a box that is already transparent.
|
|
286
|
+
|
|
287
|
+
`--surface-hover` sits on the fill side of that line despite the name: it is a surface that has been
|
|
288
|
+
tinted and stays opaque, for a component opaque at rest whose hover must stay that way.
|
|
289
|
+
`--state-layer` is the one for a component transparent at rest. Reaching for the wrong one fails
|
|
290
|
+
quietly — a translucent hover on an opaque tag shows the page through it, and a flat neutral on a
|
|
291
|
+
transparent row vanishes the moment the fill behind it matches.
|
|
292
|
+
|
|
293
|
+
The line between the two is what a color is for, not what it looks like. `--default` is a fine grey
|
|
294
|
+
until it is asked to be a state layer: then it is a fixed lightness laid on an unknown one, and the
|
|
295
|
+
day those two match it is gone with nothing to fail but the eye.
|
|
296
|
+
|
|
297
|
+
**Contrast on a translucent surface is the app's to guarantee.** `contrast.browser.test.ts` holds
|
|
298
|
+
the floor for text on the fills, where both sides are known. Once the background is whatever happens
|
|
299
|
+
to be behind the window, ropav cannot see it and does not claim to — an app that thins a surface
|
|
300
|
+
owns the legibility of what it puts there.
|
|
301
|
+
|
|
206
302
|
### Reduced motion
|
|
207
303
|
|
|
208
304
|
`data-reduce-motion="true"` on any ancestor forces animations off, `"false"` forces them on regardless
|
|
@@ -1,53 +1,50 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const accordionVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
default
|
|
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
|
-
panel: string;
|
|
49
|
-
trigger: string;
|
|
50
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const accordionVariants: (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?: "default" | "surface" | 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?: "default" | "surface" | 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?: "default" | "surface" | undefined;
|
|
16
|
+
}) | undefined) => string;
|
|
17
|
+
bodyInner: (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?: "default" | "surface" | undefined;
|
|
21
|
+
}) | undefined) => string;
|
|
22
|
+
heading: (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?: "default" | "surface" | undefined;
|
|
26
|
+
}) | undefined) => string;
|
|
27
|
+
indicator: (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?: "default" | "surface" | undefined;
|
|
31
|
+
}) | undefined) => string;
|
|
32
|
+
item: (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?: "default" | "surface" | undefined;
|
|
36
|
+
}) | undefined) => string;
|
|
37
|
+
panel: (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?: "default" | "surface" | undefined;
|
|
41
|
+
}) | undefined) => string;
|
|
42
|
+
trigger: (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?: "default" | "surface" | undefined;
|
|
46
|
+
}) | undefined) => string;
|
|
47
|
+
};
|
|
51
48
|
type DisclosureRenderPropsKeys = "isExpanded" | "isDisabled" | "state";
|
|
52
49
|
export type AccordionVariants = Omit<VariantProps<typeof accordionVariants>, DisclosureRenderPropsKeys>;
|
|
53
50
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.styles.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"accordion.styles.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmB5B,CAAC;AAGH,KAAK,yBAAyB,GAAG,YAAY,GAAG,YAAY,GAAG,OAAO,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,YAAY,CAAC,OAAO,iBAAiB,CAAC,EACtC,yBAAyB,CAC1B,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/accordion/accordion.styles.ts
|
|
3
3
|
const accordionVariants = tv({
|
|
4
4
|
slots: {
|
|
5
|
-
base: "accordion",
|
|
6
|
-
body: "accordion__body",
|
|
7
|
-
bodyInner: "accordion__body-inner",
|
|
8
|
-
heading: "accordion__heading",
|
|
9
|
-
indicator: "accordion__indicator",
|
|
10
|
-
item: "accordion__item",
|
|
11
|
-
panel: "accordion__panel",
|
|
12
|
-
trigger: "accordion__trigger"
|
|
5
|
+
base: "rp-accordion",
|
|
6
|
+
body: "rp-accordion__body",
|
|
7
|
+
bodyInner: "rp-accordion__body-inner",
|
|
8
|
+
heading: "rp-accordion__heading",
|
|
9
|
+
indicator: "rp-accordion__indicator",
|
|
10
|
+
item: "rp-accordion__item",
|
|
11
|
+
panel: "rp-accordion__panel",
|
|
12
|
+
trigger: "rp-accordion__trigger"
|
|
13
13
|
},
|
|
14
14
|
variants: { variant: {
|
|
15
15
|
default: {},
|
|
16
|
-
surface: { base: "accordion--surface" }
|
|
16
|
+
surface: { base: "rp-accordion--surface" }
|
|
17
17
|
} }
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Base accordion styles */
|
|
2
|
-
.accordion {
|
|
2
|
+
.rp-accordion {
|
|
3
3
|
@apply w-full;
|
|
4
4
|
|
|
5
5
|
/* Performance optimization - contain layout changes */
|
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
/* Accordion elements */
|
|
10
|
-
.accordion__body {
|
|
10
|
+
.rp-accordion__body {
|
|
11
11
|
@apply text-sm;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.accordion__body-inner {
|
|
14
|
+
.rp-accordion__body-inner {
|
|
15
15
|
@apply px-4 pt-0 pb-4 text-muted;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.accordion__heading {
|
|
18
|
+
.rp-accordion__heading {
|
|
19
19
|
@apply flex;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.accordion__indicator {
|
|
22
|
+
.rp-accordion__indicator {
|
|
23
23
|
@apply ms-auto size-4 shrink-0 text-muted;
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -34,35 +34,31 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/* Accordion Item - Separator styles */
|
|
37
|
-
.accordion__item {
|
|
37
|
+
.rp-accordion__item {
|
|
38
38
|
@apply relative border-none;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.accordion__item::after {
|
|
41
|
+
.rp-accordion__item::after {
|
|
42
42
|
content: "";
|
|
43
43
|
@apply absolute start-0 bottom-0 h-px w-full rounded-xs bg-separator;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.accordion__item:last-child::after {
|
|
46
|
+
.rp-accordion__item:last-child::after {
|
|
47
47
|
content: none;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/* Hide separator when hideSeparator prop is set */
|
|
51
|
-
.accordion__item[data-hide-separator="true"]::after {
|
|
51
|
+
.rp-accordion__item[data-hide-separator="true"]::after {
|
|
52
52
|
display: none;
|
|
53
53
|
}
|
|
54
54
|
/* ------------------------------------ */
|
|
55
55
|
|
|
56
|
-
.accordion__trigger {
|
|
56
|
+
.rp-accordion__trigger {
|
|
57
57
|
cursor: var(--cursor-interactive);
|
|
58
58
|
|
|
59
59
|
/* Base Styles */
|
|
60
60
|
@apply flex flex-1 items-center justify-between px-4 py-4 text-start text-sm font-medium no-highlight;
|
|
61
61
|
|
|
62
|
-
/**
|
|
63
|
-
* Transitions
|
|
64
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
65
|
-
*/
|
|
66
62
|
transition:
|
|
67
63
|
opacity 150ms var(--ease-out),
|
|
68
64
|
box-shadow 150ms var(--ease-out);
|
|
@@ -93,15 +89,11 @@
|
|
|
93
89
|
}
|
|
94
90
|
}
|
|
95
91
|
|
|
96
|
-
.accordion__panel {
|
|
92
|
+
.rp-accordion__panel {
|
|
97
93
|
opacity: 0;
|
|
98
94
|
height: var(--disclosure-panel-height);
|
|
99
95
|
overflow: clip;
|
|
100
96
|
|
|
101
|
-
/**
|
|
102
|
-
* Transitions
|
|
103
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
104
|
-
*/
|
|
105
97
|
transition:
|
|
106
98
|
height 200ms var(--ease-out-quad),
|
|
107
99
|
opacity 200ms var(--ease-out);
|
|
@@ -114,7 +106,7 @@
|
|
|
114
106
|
}
|
|
115
107
|
|
|
116
108
|
/* Surface variant */
|
|
117
|
-
.accordion--surface {
|
|
109
|
+
.rp-accordion--surface {
|
|
118
110
|
@apply bg-surface;
|
|
119
111
|
border-radius: min(32px, var(--component-radius));
|
|
120
112
|
|
|
@@ -125,21 +117,21 @@
|
|
|
125
117
|
outline-offset: -1px;
|
|
126
118
|
}
|
|
127
119
|
|
|
128
|
-
.accordion__trigger {
|
|
120
|
+
.rp-accordion__trigger {
|
|
129
121
|
@media (hover: hover) {
|
|
130
122
|
&:hover:not([aria-expanded="true"]),
|
|
131
123
|
&[data-hovered="true"]:not([aria-expanded="true"]) {
|
|
132
|
-
@apply bg-
|
|
124
|
+
@apply bg-state-layer;
|
|
133
125
|
}
|
|
134
126
|
}
|
|
135
127
|
}
|
|
136
128
|
|
|
137
|
-
.accordion__item::after {
|
|
129
|
+
.rp-accordion__item::after {
|
|
138
130
|
@apply bg-surface-foreground/6;
|
|
139
131
|
}
|
|
140
132
|
}
|
|
141
133
|
|
|
142
|
-
.accordion--surface .accordion__item {
|
|
134
|
+
.rp-accordion--surface .rp-accordion__item {
|
|
143
135
|
/* Surface variant separator styling */
|
|
144
136
|
&::after {
|
|
145
137
|
@apply start-[3%] w-[94%];
|
|
@@ -1,76 +1,34 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const alertVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
default
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
default: {
|
|
35
|
-
base: string;
|
|
36
|
-
};
|
|
37
|
-
success: {
|
|
38
|
-
base: string;
|
|
39
|
-
};
|
|
40
|
-
warning: {
|
|
41
|
-
base: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
}, {
|
|
45
|
-
base: string;
|
|
46
|
-
content: string;
|
|
47
|
-
description: string;
|
|
48
|
-
indicator: string;
|
|
49
|
-
title: string;
|
|
50
|
-
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
51
|
-
status: {
|
|
52
|
-
accent: {
|
|
53
|
-
base: string;
|
|
54
|
-
};
|
|
55
|
-
danger: {
|
|
56
|
-
base: string;
|
|
57
|
-
};
|
|
58
|
-
default: {
|
|
59
|
-
base: string;
|
|
60
|
-
};
|
|
61
|
-
success: {
|
|
62
|
-
base: string;
|
|
63
|
-
};
|
|
64
|
-
warning: {
|
|
65
|
-
base: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
}, {
|
|
69
|
-
base: string;
|
|
70
|
-
content: string;
|
|
71
|
-
description: string;
|
|
72
|
-
indicator: string;
|
|
73
|
-
title: string;
|
|
74
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const alertVariants: (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
|
+
status?: "accent" | "danger" | "default" | "success" | "warning" | 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
|
+
status?: "accent" | "danger" | "default" | "success" | "warning" | undefined;
|
|
11
|
+
}) | undefined) => string;
|
|
12
|
+
content: (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
|
+
status?: "accent" | "danger" | "default" | "success" | "warning" | undefined;
|
|
16
|
+
}) | undefined) => string;
|
|
17
|
+
description: (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
|
+
status?: "accent" | "danger" | "default" | "success" | "warning" | undefined;
|
|
21
|
+
}) | undefined) => string;
|
|
22
|
+
indicator: (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
|
+
status?: "accent" | "danger" | "default" | "success" | "warning" | undefined;
|
|
26
|
+
}) | undefined) => string;
|
|
27
|
+
title: (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
|
+
status?: "accent" | "danger" | "default" | "success" | "warning" | undefined;
|
|
31
|
+
}) | undefined) => string;
|
|
32
|
+
};
|
|
75
33
|
export type AlertVariants = VariantProps<typeof alertVariants>;
|
|
76
34
|
//# sourceMappingURL=alert.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.styles.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"alert.styles.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/alert/alert.styles.ts
|
|
3
3
|
const alertVariants = tv({
|
|
4
4
|
defaultVariants: { status: "default" },
|
|
5
5
|
slots: {
|
|
6
|
-
base: "alert",
|
|
7
|
-
content: "alert__content",
|
|
8
|
-
description: "alert__description",
|
|
9
|
-
indicator: "alert__indicator",
|
|
10
|
-
title: "alert__title"
|
|
6
|
+
base: "rp-alert",
|
|
7
|
+
content: "rp-alert__content",
|
|
8
|
+
description: "rp-alert__description",
|
|
9
|
+
indicator: "rp-alert__indicator",
|
|
10
|
+
title: "rp-alert__title"
|
|
11
11
|
},
|
|
12
12
|
variants: { status: {
|
|
13
|
-
accent: { base: "alert--accent" },
|
|
14
|
-
danger: { base: "alert--danger" },
|
|
15
|
-
default: { base: "alert--default" },
|
|
16
|
-
success: { base: "alert--success" },
|
|
17
|
-
warning: { base: "alert--warning" }
|
|
13
|
+
accent: { base: "rp-alert--accent" },
|
|
14
|
+
danger: { base: "rp-alert--danger" },
|
|
15
|
+
default: { base: "rp-alert--default" },
|
|
16
|
+
success: { base: "rp-alert--success" },
|
|
17
|
+
warning: { base: "rp-alert--warning" }
|
|
18
18
|
} }
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|