@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
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
const separatorVariants = tv({
|
|
6
|
-
base: "separator",
|
|
6
|
+
base: "rp-separator",
|
|
7
7
|
defaultVariants: {
|
|
8
8
|
orientation: "horizontal",
|
|
9
9
|
variant: "default",
|
|
10
10
|
},
|
|
11
11
|
variants: {
|
|
12
12
|
orientation: {
|
|
13
|
-
horizontal: "separator--horizontal",
|
|
14
|
-
vertical: "separator--vertical",
|
|
13
|
+
horizontal: "rp-separator--horizontal",
|
|
14
|
+
vertical: "rp-separator--vertical",
|
|
15
15
|
},
|
|
16
16
|
variant: {
|
|
17
|
-
default: "separator--default",
|
|
18
|
-
secondary: "separator--secondary",
|
|
19
|
-
tertiary: "separator--tertiary",
|
|
17
|
+
default: "rp-separator--default",
|
|
18
|
+
secondary: "rp-separator--secondary",
|
|
19
|
+
tertiary: "rp-separator--tertiary",
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
* Side and collapse mode are carried as modifier classes rather than left to `[data-side]` /
|
|
@@ -16,78 +16,101 @@ export const sidebarVariants = tv({
|
|
|
16
16
|
defaultVariants: {
|
|
17
17
|
collapsible: "icon",
|
|
18
18
|
side: "left",
|
|
19
|
+
variant: "sidebar",
|
|
19
20
|
},
|
|
20
21
|
slots: {
|
|
21
|
-
base: "sidebar",
|
|
22
|
-
content: "sidebar__content",
|
|
23
|
-
footer: "sidebar__footer",
|
|
24
|
-
group: "sidebar__group",
|
|
25
|
-
groupLabel: "sidebar__group-label",
|
|
26
|
-
header: "sidebar__header",
|
|
27
|
-
inset: "sidebar__inset",
|
|
28
|
-
item: "sidebar__item",
|
|
29
|
-
itemIcon: "sidebar__item-icon",
|
|
30
|
-
itemIndicator: "sidebar__item-indicator",
|
|
31
|
-
itemLabel: "sidebar__item-label",
|
|
32
|
-
itemTooltip: "sidebar__item-tooltip",
|
|
33
|
-
itemTrailing: "sidebar__item-trailing",
|
|
34
|
-
panel: "sidebar__panel",
|
|
35
|
-
rail: "sidebar__rail",
|
|
36
|
-
railTarget: "sidebar__rail-target",
|
|
37
|
-
separator: "sidebar__separator",
|
|
38
|
-
subMenu: "sidebar__sub-menu",
|
|
39
|
-
trigger: "sidebar__trigger",
|
|
22
|
+
base: "rp-sidebar",
|
|
23
|
+
content: "rp-sidebar__content",
|
|
24
|
+
footer: "rp-sidebar__footer",
|
|
25
|
+
group: "rp-sidebar__group",
|
|
26
|
+
groupLabel: "rp-sidebar__group-label",
|
|
27
|
+
header: "rp-sidebar__header",
|
|
28
|
+
inset: "rp-sidebar__inset",
|
|
29
|
+
item: "rp-sidebar__item",
|
|
30
|
+
itemIcon: "rp-sidebar__item-icon",
|
|
31
|
+
itemIndicator: "rp-sidebar__item-indicator",
|
|
32
|
+
itemLabel: "rp-sidebar__item-label",
|
|
33
|
+
itemTooltip: "rp-sidebar__item-tooltip",
|
|
34
|
+
itemTrailing: "rp-sidebar__item-trailing",
|
|
35
|
+
panel: "rp-sidebar__panel",
|
|
36
|
+
rail: "rp-sidebar__rail",
|
|
37
|
+
railTarget: "rp-sidebar__rail-target",
|
|
38
|
+
separator: "rp-sidebar__separator",
|
|
39
|
+
subMenu: "rp-sidebar__sub-menu",
|
|
40
|
+
trigger: "rp-sidebar__trigger",
|
|
40
41
|
},
|
|
41
42
|
variants: {
|
|
42
43
|
collapsible: {
|
|
43
44
|
icon: {
|
|
44
|
-
panel: "sidebar__panel--icon",
|
|
45
|
+
panel: "rp-sidebar__panel--icon",
|
|
45
46
|
},
|
|
46
47
|
none: {
|
|
47
|
-
panel: "sidebar__panel--none",
|
|
48
|
+
panel: "rp-sidebar__panel--none",
|
|
48
49
|
},
|
|
49
50
|
offcanvas: {
|
|
50
|
-
panel: "sidebar__panel--offcanvas",
|
|
51
|
+
panel: "rp-sidebar__panel--offcanvas",
|
|
51
52
|
},
|
|
52
53
|
},
|
|
53
54
|
// Whether the panel is rendering inside a drawer. Resolved by the panel at call time rather
|
|
54
55
|
// than by the root, because it is the one part that changes shape when the viewport narrows.
|
|
55
56
|
inDrawer: {
|
|
56
57
|
true: {
|
|
57
|
-
panel: "sidebar__panel--drawer",
|
|
58
|
+
panel: "rp-sidebar__panel--drawer",
|
|
58
59
|
},
|
|
59
60
|
},
|
|
60
61
|
// Whether this submenu folds. Resolved by the submenu at call time rather than by the root,
|
|
61
62
|
// because one sidebar holds items that fold and items that do not.
|
|
62
63
|
isCollapsible: {
|
|
63
64
|
true: {
|
|
64
|
-
subMenu: "sidebar__sub-menu--collapsible",
|
|
65
|
+
subMenu: "rp-sidebar__sub-menu--collapsible",
|
|
65
66
|
},
|
|
66
67
|
},
|
|
67
68
|
// Whether the rail resizes rather than only toggling. Not folded into `collapsible`, because
|
|
68
69
|
// the two are independent: a sidebar that cannot collapse at all can still be dragged wider.
|
|
69
70
|
isResizable: {
|
|
70
71
|
true: {
|
|
71
|
-
rail: "sidebar__rail--resizable",
|
|
72
|
+
rail: "rp-sidebar__rail--resizable",
|
|
72
73
|
},
|
|
73
74
|
},
|
|
74
75
|
// Whether the row is a child under another item. Resolved by the item at call time, from the
|
|
75
76
|
// submenu it finds itself inside rather than from a prop a caller has to remember on every row.
|
|
76
77
|
isSub: {
|
|
77
78
|
true: {
|
|
78
|
-
item: "sidebar__item--sub",
|
|
79
|
+
item: "rp-sidebar__item--sub",
|
|
79
80
|
},
|
|
80
81
|
},
|
|
81
82
|
side: {
|
|
82
83
|
left: {
|
|
83
|
-
base: "sidebar--left",
|
|
84
|
-
panel: "sidebar__panel--left",
|
|
84
|
+
base: "rp-sidebar--left",
|
|
85
|
+
panel: "rp-sidebar__panel--left",
|
|
85
86
|
},
|
|
86
87
|
right: {
|
|
87
|
-
base: "sidebar--right",
|
|
88
|
-
panel: "sidebar__panel--right",
|
|
88
|
+
base: "rp-sidebar--right",
|
|
89
|
+
panel: "rp-sidebar__panel--right",
|
|
89
90
|
},
|
|
90
91
|
},
|
|
92
|
+
/*
|
|
93
|
+
* How much chrome the shell paints. Each slot's modifier is named for what that slot does
|
|
94
|
+
* rather than for the value, the way `inDrawer` becomes `--drawer` and `isSub` becomes
|
|
95
|
+
* `--sub`: `inset` is already a slot, so echoing the value would read `sidebar__inset--inset`,
|
|
96
|
+
* and `sidebar__panel--inset` would be false besides — under it the panel is the bare one and
|
|
97
|
+
* the inset is the card.
|
|
98
|
+
*
|
|
99
|
+
* `sidebar` emits nothing, because the base rules already are that look. A modifier saying so
|
|
100
|
+
* would be an empty rule restating the block above it.
|
|
101
|
+
*/
|
|
102
|
+
variant: {
|
|
103
|
+
floating: {
|
|
104
|
+
panel: "rp-sidebar__panel--floating",
|
|
105
|
+
rail: "rp-sidebar__rail--quiet",
|
|
106
|
+
},
|
|
107
|
+
inset: {
|
|
108
|
+
inset: "rp-sidebar__inset--card",
|
|
109
|
+
panel: "rp-sidebar__panel--bare",
|
|
110
|
+
rail: "rp-sidebar__rail--quiet",
|
|
111
|
+
},
|
|
112
|
+
sidebar: {},
|
|
113
|
+
},
|
|
91
114
|
},
|
|
92
115
|
});
|
|
93
116
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const skeletonVariants = tv({
|
|
6
6
|
defaultVariants: {
|
|
7
7
|
animationType: "shimmer",
|
|
8
8
|
},
|
|
9
9
|
slots: {
|
|
10
|
-
base: "skeleton",
|
|
10
|
+
base: "rp-skeleton",
|
|
11
11
|
},
|
|
12
12
|
variants: {
|
|
13
13
|
animationType: {
|
|
14
|
-
none: "skeleton--none",
|
|
15
|
-
pulse: "skeleton--pulse",
|
|
16
|
-
shimmer: "skeleton--shimmer",
|
|
14
|
+
none: "rp-skeleton--none",
|
|
15
|
+
pulse: "rp-skeleton--pulse",
|
|
16
|
+
shimmer: "rp-skeleton--shimmer",
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const sliderVariants = tv({
|
|
6
6
|
slots: {
|
|
7
|
-
base: "slider",
|
|
8
|
-
fill: "slider__fill",
|
|
9
|
-
marks: "slider__marks",
|
|
10
|
-
output: "slider__output",
|
|
11
|
-
thumb: "slider__thumb",
|
|
12
|
-
track: "slider__track",
|
|
7
|
+
base: "rp-slider",
|
|
8
|
+
fill: "rp-slider__fill",
|
|
9
|
+
marks: "rp-slider__marks",
|
|
10
|
+
output: "rp-slider__output",
|
|
11
|
+
thumb: "rp-slider__thumb",
|
|
12
|
+
track: "rp-slider__track",
|
|
13
13
|
},
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const spinnerVariants = tv({
|
|
6
|
-
base: "spinner",
|
|
6
|
+
base: "rp-spinner",
|
|
7
7
|
defaultVariants: {
|
|
8
8
|
color: "accent",
|
|
9
9
|
size: "md",
|
|
10
10
|
},
|
|
11
11
|
variants: {
|
|
12
12
|
color: {
|
|
13
|
-
accent: "spinner--accent",
|
|
14
|
-
current: "spinner--current",
|
|
15
|
-
danger: "spinner--danger",
|
|
16
|
-
success: "spinner--success",
|
|
17
|
-
warning: "spinner--warning",
|
|
13
|
+
accent: "rp-spinner--accent",
|
|
14
|
+
current: "rp-spinner--current",
|
|
15
|
+
danger: "rp-spinner--danger",
|
|
16
|
+
success: "rp-spinner--success",
|
|
17
|
+
warning: "rp-spinner--warning",
|
|
18
18
|
},
|
|
19
19
|
size: {
|
|
20
|
-
lg: "spinner--lg",
|
|
21
|
-
md: "spinner--md",
|
|
22
|
-
sm: "spinner--sm",
|
|
23
|
-
xl: "spinner--xl",
|
|
20
|
+
lg: "rp-spinner--lg",
|
|
21
|
+
md: "rp-spinner--md",
|
|
22
|
+
sm: "rp-spinner--sm",
|
|
23
|
+
xl: "rp-spinner--xl",
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
* Orientation is carried as a modifier class rather than left to a `[data-orientation]` selector
|
|
@@ -19,23 +19,23 @@ export const splitterVariants = tv({
|
|
|
19
19
|
orientation: "horizontal",
|
|
20
20
|
},
|
|
21
21
|
slots: {
|
|
22
|
-
base: "splitter",
|
|
23
|
-
handle: "splitter__handle",
|
|
24
|
-
handleGrip: "splitter__handle-grip",
|
|
25
|
-
handleTarget: "splitter__handle-target",
|
|
26
|
-
panel: "splitter__panel",
|
|
22
|
+
base: "rp-splitter",
|
|
23
|
+
handle: "rp-splitter__handle",
|
|
24
|
+
handleGrip: "rp-splitter__handle-grip",
|
|
25
|
+
handleTarget: "rp-splitter__handle-target",
|
|
26
|
+
panel: "rp-splitter__panel",
|
|
27
27
|
},
|
|
28
28
|
variants: {
|
|
29
29
|
orientation: {
|
|
30
30
|
horizontal: {
|
|
31
|
-
base: "splitter--horizontal",
|
|
32
|
-
handle: "splitter__handle--horizontal",
|
|
33
|
-
handleGrip: "splitter__handle-grip--horizontal",
|
|
31
|
+
base: "rp-splitter--horizontal",
|
|
32
|
+
handle: "rp-splitter__handle--horizontal",
|
|
33
|
+
handleGrip: "rp-splitter__handle-grip--horizontal",
|
|
34
34
|
},
|
|
35
35
|
vertical: {
|
|
36
|
-
base: "splitter--vertical",
|
|
37
|
-
handle: "splitter__handle--vertical",
|
|
38
|
-
handleGrip: "splitter__handle-grip--vertical",
|
|
36
|
+
base: "rp-splitter--vertical",
|
|
37
|
+
handle: "rp-splitter__handle--vertical",
|
|
38
|
+
handleGrip: "rp-splitter__handle-grip--vertical",
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
41
|
},
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const surfaceVariants = tv({
|
|
6
|
-
base: "surface",
|
|
6
|
+
base: "rp-surface",
|
|
7
7
|
defaultVariants: {
|
|
8
8
|
variant: "default",
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
|
-
default: "surface--default",
|
|
13
|
-
secondary: "surface--secondary",
|
|
14
|
-
tertiary: "surface--tertiary",
|
|
15
|
-
transparent: "surface--transparent",
|
|
12
|
+
default: "rp-surface--default",
|
|
13
|
+
secondary: "rp-surface--secondary",
|
|
14
|
+
tertiary: "rp-surface--tertiary",
|
|
15
|
+
transparent: "rp-surface--transparent",
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
});
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const switchVariants = tv({
|
|
6
6
|
defaultVariants: {
|
|
7
7
|
size: "md",
|
|
8
8
|
},
|
|
9
9
|
slots: {
|
|
10
|
-
base: "switch",
|
|
11
|
-
content: "switch__content",
|
|
12
|
-
control: "switch__control",
|
|
13
|
-
icon: "switch__icon",
|
|
14
|
-
thumb: "switch__thumb",
|
|
10
|
+
base: "rp-switch",
|
|
11
|
+
content: "rp-switch__content",
|
|
12
|
+
control: "rp-switch__control",
|
|
13
|
+
icon: "rp-switch__icon",
|
|
14
|
+
thumb: "rp-switch__thumb",
|
|
15
15
|
},
|
|
16
16
|
variants: {
|
|
17
17
|
size: {
|
|
18
18
|
lg: {
|
|
19
|
-
base: "switch--lg",
|
|
19
|
+
base: "rp-switch--lg",
|
|
20
20
|
},
|
|
21
21
|
md: {
|
|
22
|
-
base: "switch--md",
|
|
22
|
+
base: "rp-switch--md",
|
|
23
23
|
},
|
|
24
24
|
sm: {
|
|
25
|
-
base: "switch--sm",
|
|
25
|
+
base: "rp-switch--sm",
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
},
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const switchGroupVariants = tv({
|
|
6
6
|
defaultVariants: {
|
|
7
7
|
orientation: "vertical",
|
|
8
8
|
},
|
|
9
9
|
slots: {
|
|
10
|
-
base: "switch-group",
|
|
11
|
-
items: "switch-group__items",
|
|
10
|
+
base: "rp-switch-group",
|
|
11
|
+
items: "rp-switch-group__items",
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
14
14
|
orientation: {
|
|
15
15
|
horizontal: {
|
|
16
|
-
base: "switch-group--horizontal",
|
|
16
|
+
base: "rp-switch-group--horizontal",
|
|
17
17
|
},
|
|
18
18
|
vertical: {
|
|
19
|
-
base: "switch-group--vertical",
|
|
19
|
+
base: "rp-switch-group--vertical",
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
},
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const tableVariants = tv({
|
|
6
6
|
defaultVariants: {
|
|
7
7
|
variant: "primary",
|
|
8
8
|
},
|
|
9
9
|
slots: {
|
|
10
|
-
base: "table-root",
|
|
11
|
-
body: "table__body",
|
|
12
|
-
cell: "table__cell",
|
|
13
|
-
column: "table__column",
|
|
14
|
-
columnResizer: "table__column-resizer",
|
|
15
|
-
content: "table__content",
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
base: "rp-table-root",
|
|
11
|
+
body: "rp-table__body",
|
|
12
|
+
cell: "rp-table__cell",
|
|
13
|
+
column: "rp-table__column",
|
|
14
|
+
columnResizer: "rp-table__column-resizer",
|
|
15
|
+
content: "rp-table__content",
|
|
16
|
+
/** Named but unstyled: the hook a caller's own rule attaches to. */
|
|
17
|
+
dropIndicator: "rp-table__drop-indicator",
|
|
18
|
+
footer: "rp-table__footer",
|
|
19
|
+
header: "rp-table__header",
|
|
20
|
+
loadMore: "rp-table__load-more",
|
|
21
|
+
loadMoreContent: "rp-table__load-more-content",
|
|
22
|
+
resizableContainer: "rp-table__resizable-container",
|
|
23
|
+
row: "rp-table__row",
|
|
24
|
+
scrollContainer: "rp-table__scroll-container",
|
|
25
|
+
sortableColumnHeader: "rp-table__sortable-column-header",
|
|
26
|
+
sortableColumnIndicator: "rp-table__sortable-column-indicator",
|
|
25
27
|
},
|
|
26
28
|
variants: {
|
|
27
29
|
variant: {
|
|
28
30
|
primary: {
|
|
29
|
-
base: "table-root--primary",
|
|
31
|
+
base: "rp-table-root--primary",
|
|
30
32
|
},
|
|
31
33
|
secondary: {
|
|
32
|
-
base: "table-root--secondary",
|
|
34
|
+
base: "rp-table-root--secondary",
|
|
33
35
|
},
|
|
34
36
|
},
|
|
35
37
|
},
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const tabsVariants = tv({
|
|
6
6
|
defaultVariants: {
|
|
7
7
|
variant: "primary",
|
|
8
8
|
},
|
|
9
9
|
slots: {
|
|
10
|
-
base: "tabs",
|
|
11
|
-
scrollNext: "tabs__list-container__scroll-next",
|
|
12
|
-
scrollPrev: "tabs__list-container__scroll-prev",
|
|
13
|
-
scroller: "tabs__list-container__scroller",
|
|
14
|
-
separator: "tabs__separator",
|
|
15
|
-
tab: "tabs__tab",
|
|
16
|
-
tabIndicator: "tabs__indicator",
|
|
17
|
-
tabList: "tabs__list",
|
|
18
|
-
tabListContainer: "tabs__list-container",
|
|
19
|
-
tabPanel: "tabs__panel",
|
|
10
|
+
base: "rp-tabs",
|
|
11
|
+
scrollNext: "rp-tabs__list-container__scroll-next",
|
|
12
|
+
scrollPrev: "rp-tabs__list-container__scroll-prev",
|
|
13
|
+
scroller: "rp-tabs__list-container__scroller",
|
|
14
|
+
separator: "rp-tabs__separator",
|
|
15
|
+
tab: "rp-tabs__tab",
|
|
16
|
+
tabIndicator: "rp-tabs__indicator",
|
|
17
|
+
tabList: "rp-tabs__list",
|
|
18
|
+
tabListContainer: "rp-tabs__list-container",
|
|
19
|
+
tabPanel: "rp-tabs__panel",
|
|
20
20
|
},
|
|
21
21
|
variants: {
|
|
22
22
|
variant: {
|
|
23
23
|
primary: {},
|
|
24
24
|
secondary: {
|
|
25
|
-
base: "tabs--secondary",
|
|
25
|
+
base: "rp-tabs--secondary",
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const tagVariants = tv({
|
|
6
6
|
defaultVariants: {
|
|
@@ -8,27 +8,27 @@ export const tagVariants = tv({
|
|
|
8
8
|
variant: "default",
|
|
9
9
|
},
|
|
10
10
|
slots: {
|
|
11
|
-
base: "tag",
|
|
12
|
-
removeButton: "tag__remove-button",
|
|
11
|
+
base: "rp-tag",
|
|
12
|
+
removeButton: "rp-tag__remove-button",
|
|
13
13
|
},
|
|
14
14
|
variants: {
|
|
15
15
|
size: {
|
|
16
16
|
lg: {
|
|
17
|
-
base: "tag--lg",
|
|
17
|
+
base: "rp-tag--lg",
|
|
18
18
|
},
|
|
19
19
|
md: {
|
|
20
|
-
base: "tag--md",
|
|
20
|
+
base: "rp-tag--md",
|
|
21
21
|
},
|
|
22
22
|
sm: {
|
|
23
|
-
base: "tag--sm",
|
|
23
|
+
base: "rp-tag--sm",
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
variant: {
|
|
27
27
|
default: {
|
|
28
|
-
base: "tag--default",
|
|
28
|
+
base: "rp-tag--default",
|
|
29
29
|
},
|
|
30
30
|
surface: {
|
|
31
|
-
base: "tag--surface",
|
|
31
|
+
base: "rp-tag--surface",
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
},
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const tagGroupVariants = tv({
|
|
6
6
|
slots: {
|
|
7
|
-
base: "tag-group",
|
|
8
|
-
list: "tag-group__list",
|
|
7
|
+
base: "rp-tag-group",
|
|
8
|
+
list: "rp-tag-group__list",
|
|
9
9
|
},
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const textAreaVariants = tv({
|
|
6
|
-
base: "textarea",
|
|
6
|
+
base: "rp-textarea",
|
|
7
7
|
defaultVariants: {
|
|
8
8
|
fullWidth: false,
|
|
9
9
|
size: "md",
|
|
@@ -12,16 +12,16 @@ export const textAreaVariants = tv({
|
|
|
12
12
|
variants: {
|
|
13
13
|
fullWidth: {
|
|
14
14
|
false: "",
|
|
15
|
-
true: "textarea--full-width",
|
|
15
|
+
true: "rp-textarea--full-width",
|
|
16
16
|
},
|
|
17
17
|
size: {
|
|
18
|
-
lg: "textarea--lg",
|
|
18
|
+
lg: "rp-textarea--lg",
|
|
19
19
|
md: "",
|
|
20
|
-
sm: "textarea--sm",
|
|
20
|
+
sm: "rp-textarea--sm",
|
|
21
21
|
},
|
|
22
22
|
variant: {
|
|
23
|
-
primary: "textarea--primary",
|
|
24
|
-
secondary: "textarea--secondary",
|
|
23
|
+
primary: "rp-textarea--primary",
|
|
24
|
+
secondary: "rp-textarea--secondary",
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const textFieldVariants = tv({
|
|
6
|
-
base: "textfield",
|
|
6
|
+
base: "rp-textfield",
|
|
7
7
|
defaultVariants: {
|
|
8
8
|
fullWidth: false,
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
11
11
|
fullWidth: {
|
|
12
12
|
false: "",
|
|
13
|
-
true: "textfield--full-width",
|
|
13
|
+
true: "rp-textfield--full-width",
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
2
|
|
|
3
|
-
import { tv } from "
|
|
3
|
+
import { tv } from "../../tv";
|
|
4
4
|
|
|
5
5
|
export const timeFieldVariants = tv({
|
|
6
|
-
base: "time-field",
|
|
6
|
+
base: "rp-time-field",
|
|
7
7
|
defaultVariants: {
|
|
8
8
|
fullWidth: false,
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
11
11
|
fullWidth: {
|
|
12
12
|
false: "",
|
|
13
|
-
true: "time-field--full-width",
|
|
13
|
+
true: "rp-time-field--full-width",
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
});
|