@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
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* Orientation is a modifier class rather than a `[data-orientation]` descendant selector, and
|
|
5
5
|
* that is not a style preference. A splitter nests — a vertical group inside a panel of a
|
|
6
|
-
* horizontal one is the ordinary case — so `.splitter[data-orientation="horizontal"]
|
|
7
|
-
* .splitter__handle` would reach the inner group's handle as well as its own and lay it out on
|
|
6
|
+
* horizontal one is the ordinary case — so `.rp-splitter[data-orientation="horizontal"]
|
|
7
|
+
* .rp-splitter__handle` would reach the inner group's handle as well as its own and lay it out on
|
|
8
8
|
* the wrong axis. Every rule below therefore sits on the part it styles.
|
|
9
9
|
*
|
|
10
10
|
* The modifier also buys the Storybook forced-colors sweep, which collects `[class*='--']` and a
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
* anything — the handle and its grip — would never be audited.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
.splitter {
|
|
15
|
+
.rp-splitter {
|
|
16
16
|
@apply isolate flex h-full w-full;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.splitter--horizontal {
|
|
19
|
+
.rp-splitter--horizontal {
|
|
20
20
|
@apply flex-row;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.splitter--vertical {
|
|
23
|
+
.rp-splitter--vertical {
|
|
24
24
|
@apply flex-col;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
* `flex-1` is the unmanaged fallback only. The component writes the whole `flex` shorthand inline;
|
|
32
32
|
* an inline `flex-basis` alone would leave this `flex-grow: 1` in place and the panel would grow
|
|
33
33
|
* straight back past the size it was given. */
|
|
34
|
-
.splitter__panel {
|
|
34
|
+
.rp-splitter__panel {
|
|
35
35
|
@apply relative min-h-0 min-w-0 flex-1 overflow-hidden;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/* The flex item is the gutter and paints nothing itself. The line you see is `::after`, absolutely
|
|
39
39
|
* positioned, which is what lets it thicken on hover without the gutter changing width and
|
|
40
|
-
* reflowing both panels by a pixel. `.slider__thumb::after` carries its knob the same way. */
|
|
41
|
-
.splitter__handle {
|
|
40
|
+
* reflowing both panels by a pixel. `.rp-slider__thumb::after` carries its knob the same way. */
|
|
41
|
+
.rp-splitter__handle {
|
|
42
42
|
/* The gutter is the line, with nothing either side of it. Dead space inside the gutter shows up
|
|
43
43
|
* as a gap wherever a nested group's divider meets this one — the panel between them clips its own
|
|
44
44
|
* contents, so the inner line cannot reach across to close it. `1px` rather than a spacing step,
|
|
@@ -64,6 +64,14 @@
|
|
|
64
64
|
* every crossing reads as a twitch rather than an invitation. Waiting means only an approach that
|
|
65
65
|
* settles counts. */
|
|
66
66
|
--splitter-highlight-delay: 500ms;
|
|
67
|
+
/* What the line and the grip are painted with, at rest and lit. Separate properties so a caller
|
|
68
|
+
* can retune one state without flattening the rest onto a single colour. */
|
|
69
|
+
--splitter-line: var(--separator);
|
|
70
|
+
--splitter-line-hover: var(--accent);
|
|
71
|
+
--splitter-line-dragging: var(--splitter-line-hover);
|
|
72
|
+
--splitter-grip-bg: var(--separator);
|
|
73
|
+
--splitter-grip-bg-hover: var(--accent);
|
|
74
|
+
--splitter-grip-bg-dragging: var(--splitter-grip-bg-hover);
|
|
67
75
|
|
|
68
76
|
@apply relative z-10 flex shrink-0 grow-0 items-center justify-center self-stretch;
|
|
69
77
|
@apply bg-transparent outline-none select-none no-highlight;
|
|
@@ -71,8 +79,14 @@
|
|
|
71
79
|
/* The gesture is ours; the browser must not also pan or scroll from a drag on this. */
|
|
72
80
|
@apply touch-none;
|
|
73
81
|
|
|
82
|
+
/* On the host, not in `::after` where the transition lives: the variant reaches a pseudo-element
|
|
83
|
+
* from its originating element, and appending its condition after `::after` matches nothing. */
|
|
84
|
+
@apply motion-reduce:transition-none;
|
|
85
|
+
|
|
74
86
|
&::after {
|
|
75
|
-
@apply pointer-events-none absolute rounded-sm
|
|
87
|
+
@apply pointer-events-none absolute rounded-sm content-[''];
|
|
88
|
+
|
|
89
|
+
background-color: var(--splitter-line);
|
|
76
90
|
|
|
77
91
|
/* Flattened to `Canvas` the divider stops existing rather than weakening — the whole part
|
|
78
92
|
* *is* its background, which is why `separator.css` restates its colour the same way. */
|
|
@@ -80,58 +94,54 @@
|
|
|
80
94
|
background-color: CanvasText;
|
|
81
95
|
}
|
|
82
96
|
|
|
83
|
-
/**
|
|
84
|
-
* Transitions
|
|
85
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
86
|
-
*/
|
|
87
97
|
transition:
|
|
88
98
|
background-color 150ms var(--ease-out),
|
|
89
99
|
inline-size 150ms var(--ease-out),
|
|
90
100
|
block-size 150ms var(--ease-out);
|
|
91
|
-
@apply motion-reduce:transition-none;
|
|
92
101
|
}
|
|
93
102
|
|
|
103
|
+
/* Delayed on the way in and immediate on the way out: the delay lives here rather than in the
|
|
104
|
+
* base rule, so leaving drops the highlight at once and a pointer that only passes through never
|
|
105
|
+
* starts the transition at all. It covers the thickening too — both are the same flare. */
|
|
94
106
|
&:hover::after,
|
|
95
|
-
&[data-hovered="true"]::after
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
/* `bg-separator` and `bg-accent` both flatten to `Canvas`, so without this the resting and
|
|
100
|
-
* active states are byte-identical under the mode and grabbing the handle shows nothing. */
|
|
101
|
-
@media (forced-colors: active) {
|
|
102
|
-
background-color: Highlight;
|
|
103
|
-
}
|
|
107
|
+
&[data-hovered="true"]::after {
|
|
108
|
+
background-color: var(--splitter-line-hover);
|
|
109
|
+
transition-delay: var(--splitter-highlight-delay);
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
/* The grip answers to the same states as the line, and is reached as a direct child so a nested
|
|
107
113
|
* group's own grip is left alone. */
|
|
108
|
-
&:hover > .splitter__handle-grip,
|
|
109
|
-
&[data-hovered="true"] > .splitter__handle-grip
|
|
110
|
-
|
|
111
|
-
@apply bg-accent;
|
|
112
|
-
|
|
113
|
-
@media (forced-colors: active) {
|
|
114
|
-
background-color: Highlight;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* Delayed on the way in and immediate on the way out: the delay lives here rather than in the
|
|
119
|
-
* base rule, so leaving drops the highlight at once and a pointer that only passes through never
|
|
120
|
-
* starts the transition at all. It covers the thickening too — both are the same flare. */
|
|
121
|
-
&:hover::after,
|
|
122
|
-
&[data-hovered="true"]::after,
|
|
123
|
-
&:hover > .splitter__handle-grip,
|
|
124
|
-
&[data-hovered="true"] > .splitter__handle-grip {
|
|
114
|
+
&:hover > .rp-splitter__handle-grip,
|
|
115
|
+
&[data-hovered="true"] > .rp-splitter__handle-grip {
|
|
116
|
+
background-color: var(--splitter-grip-bg-hover);
|
|
125
117
|
transition-delay: var(--splitter-highlight-delay);
|
|
126
118
|
}
|
|
127
119
|
|
|
128
120
|
/* Once a drag is under way the intent is not in question, so it skips the wait. Last, because a
|
|
129
121
|
* drag usually starts from a hover and has to win. */
|
|
130
|
-
&[data-dragging="true"]::after
|
|
131
|
-
|
|
122
|
+
&[data-dragging="true"]::after {
|
|
123
|
+
background-color: var(--splitter-line-dragging);
|
|
132
124
|
transition-delay: 0ms;
|
|
133
125
|
}
|
|
134
126
|
|
|
127
|
+
&[data-dragging="true"] > .rp-splitter__handle-grip {
|
|
128
|
+
background-color: var(--splitter-grip-bg-dragging);
|
|
129
|
+
transition-delay: 0ms;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Every lit colour flattens to the same `Canvas` as the resting one, so without this grabbing
|
|
133
|
+
* the handle shows nothing. One block for both parts, after the colours it overrides. */
|
|
134
|
+
@media (forced-colors: active) {
|
|
135
|
+
&:hover::after,
|
|
136
|
+
&[data-hovered="true"]::after,
|
|
137
|
+
&[data-dragging="true"]::after,
|
|
138
|
+
&:hover > .rp-splitter__handle-grip,
|
|
139
|
+
&[data-hovered="true"] > .rp-splitter__handle-grip,
|
|
140
|
+
&[data-dragging="true"] > .rp-splitter__handle-grip {
|
|
141
|
+
background-color: Highlight;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
135
145
|
&:focus-visible,
|
|
136
146
|
&[data-focus-visible="true"] {
|
|
137
147
|
@apply status-focused;
|
|
@@ -143,7 +153,7 @@
|
|
|
143
153
|
/* `status-disabled` reaches `color` and `border-color`, and neither the line nor the grip is
|
|
144
154
|
* either of those. */
|
|
145
155
|
&::after,
|
|
146
|
-
& > .splitter__handle-grip {
|
|
156
|
+
& > .rp-splitter__handle-grip {
|
|
147
157
|
@media (forced-colors: active) {
|
|
148
158
|
background-color: GrayText;
|
|
149
159
|
}
|
|
@@ -156,7 +166,7 @@
|
|
|
156
166
|
* border: forced colors turns a transparent *border-color* opaque — the trap `slider.css` documents
|
|
157
167
|
* at both ends of its track — and a bordered target would render as two solid blocks flanking every
|
|
158
168
|
* divider. `inset` has no such behaviour, so this needs no forced-colors rule of its own. */
|
|
159
|
-
.splitter__handle-target {
|
|
169
|
+
.rp-splitter__handle-target {
|
|
160
170
|
@apply absolute inset-0 bg-transparent;
|
|
161
171
|
}
|
|
162
172
|
|
|
@@ -167,8 +177,10 @@
|
|
|
167
177
|
*
|
|
168
178
|
* Sized from custom properties rather than utilities so a theme can retune the pill without
|
|
169
179
|
* restating both axes in both orientations. */
|
|
170
|
-
.splitter__handle-grip {
|
|
171
|
-
@apply pointer-events-none absolute rounded-full
|
|
180
|
+
.rp-splitter__handle-grip {
|
|
181
|
+
@apply pointer-events-none absolute rounded-full;
|
|
182
|
+
|
|
183
|
+
background-color: var(--splitter-grip-bg);
|
|
172
184
|
|
|
173
185
|
/* The whole part *is* its background, so the mode flattening it onto the page removes the grip
|
|
174
186
|
* rather than weakening it — the same reason the line restates its colour. */
|
|
@@ -176,26 +188,22 @@
|
|
|
176
188
|
background-color: CanvasText;
|
|
177
189
|
}
|
|
178
190
|
|
|
179
|
-
/**
|
|
180
|
-
* Transitions
|
|
181
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
182
|
-
*/
|
|
183
191
|
transition: background-color 150ms var(--ease-out);
|
|
184
192
|
@apply motion-reduce:transition-none;
|
|
185
193
|
}
|
|
186
194
|
|
|
187
|
-
.splitter__handle-grip--horizontal {
|
|
195
|
+
.rp-splitter__handle-grip--horizontal {
|
|
188
196
|
inline-size: var(--splitter-grip-thickness);
|
|
189
197
|
block-size: var(--splitter-grip-length);
|
|
190
198
|
}
|
|
191
199
|
|
|
192
|
-
.splitter__handle-grip--vertical {
|
|
200
|
+
.rp-splitter__handle-grip--vertical {
|
|
193
201
|
inline-size: var(--splitter-grip-length);
|
|
194
202
|
block-size: var(--splitter-grip-thickness);
|
|
195
203
|
}
|
|
196
204
|
|
|
197
205
|
/* A horizontal group puts its panels side by side, so the divider is a vertical line. */
|
|
198
|
-
.splitter__handle--horizontal {
|
|
206
|
+
.rp-splitter__handle--horizontal {
|
|
199
207
|
@apply cursor-col-resize;
|
|
200
208
|
|
|
201
209
|
inline-size: var(--splitter-gutter);
|
|
@@ -212,13 +220,13 @@
|
|
|
212
220
|
inline-size: calc(var(--splitter-gutter) * 2);
|
|
213
221
|
}
|
|
214
222
|
|
|
215
|
-
& > .splitter__handle-target {
|
|
223
|
+
& > .rp-splitter__handle-target {
|
|
216
224
|
inset-inline: calc((var(--splitter-target) - var(--splitter-gutter)) / -2);
|
|
217
225
|
}
|
|
218
226
|
}
|
|
219
227
|
|
|
220
228
|
/* A vertical group stacks its panels, so the divider is a horizontal line. */
|
|
221
|
-
.splitter__handle--vertical {
|
|
229
|
+
.rp-splitter__handle--vertical {
|
|
222
230
|
@apply cursor-row-resize;
|
|
223
231
|
|
|
224
232
|
block-size: var(--splitter-gutter);
|
|
@@ -235,7 +243,7 @@
|
|
|
235
243
|
block-size: calc(var(--splitter-gutter) * 2);
|
|
236
244
|
}
|
|
237
245
|
|
|
238
|
-
& > .splitter__handle-target {
|
|
246
|
+
& > .rp-splitter__handle-target {
|
|
239
247
|
inset-block: calc((var(--splitter-target) - var(--splitter-gutter)) / -2);
|
|
240
248
|
}
|
|
241
249
|
}
|
|
@@ -1,25 +1,8 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const surfaceVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
transparent: "surface--transparent";
|
|
8
|
-
};
|
|
9
|
-
}, undefined, "surface", {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "surface--default";
|
|
12
|
-
secondary: "surface--secondary";
|
|
13
|
-
tertiary: "surface--tertiary";
|
|
14
|
-
transparent: "surface--transparent";
|
|
15
|
-
};
|
|
16
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
17
|
-
variant: {
|
|
18
|
-
default: "surface--default";
|
|
19
|
-
secondary: "surface--secondary";
|
|
20
|
-
tertiary: "surface--tertiary";
|
|
21
|
-
transparent: "surface--transparent";
|
|
22
|
-
};
|
|
23
|
-
}, undefined>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const surfaceVariants: (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" | "secondary" | "tertiary" | "transparent" | undefined;
|
|
6
|
+
}) | undefined) => string;
|
|
24
7
|
export type SurfaceVariants = VariantProps<typeof surfaceVariants>;
|
|
25
8
|
//# sourceMappingURL=surface.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.styles.d.ts","sourceRoot":"","sources":["../../../src/components/surface/surface.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"surface.styles.d.ts","sourceRoot":"","sources":["../../../src/components/surface/surface.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,eAAe;;;;yBAa1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/surface/surface.styles.ts
|
|
3
3
|
const surfaceVariants = tv({
|
|
4
|
-
base: "surface",
|
|
4
|
+
base: "rp-surface",
|
|
5
5
|
defaultVariants: { variant: "default" },
|
|
6
6
|
variants: { variant: {
|
|
7
|
-
default: "surface--default",
|
|
8
|
-
secondary: "surface--secondary",
|
|
9
|
-
tertiary: "surface--tertiary",
|
|
10
|
-
transparent: "surface--transparent"
|
|
7
|
+
default: "rp-surface--default",
|
|
8
|
+
secondary: "rp-surface--secondary",
|
|
9
|
+
tertiary: "rp-surface--tertiary",
|
|
10
|
+
transparent: "rp-surface--transparent"
|
|
11
11
|
} }
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* Surface component styles */
|
|
2
2
|
|
|
3
3
|
/* Block */
|
|
4
|
-
.surface {
|
|
4
|
+
.rp-surface {
|
|
5
5
|
@apply relative text-foreground;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
/* Modifier - variant */
|
|
9
|
-
.surface--transparent {
|
|
9
|
+
.rp-surface--transparent {
|
|
10
10
|
@apply bg-transparent;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.surface--default {
|
|
13
|
+
.rp-surface--default {
|
|
14
14
|
@apply bg-surface text-surface-foreground;
|
|
15
15
|
|
|
16
16
|
/* Forced Colors Mode flattens the fill onto the page and strips the shadow, so the container
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.surface--secondary {
|
|
25
|
+
.rp-surface--secondary {
|
|
26
26
|
@apply bg-surface-secondary text-surface-secondary-foreground;
|
|
27
27
|
|
|
28
28
|
/* Forced Colors Mode flattens the fill onto the page and strips the shadow, so the container
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.surface--tertiary {
|
|
37
|
+
.rp-surface--tertiary {
|
|
38
38
|
@apply bg-surface-tertiary text-surface-tertiary-foreground;
|
|
39
39
|
|
|
40
40
|
/* Forced Colors Mode flattens the fill onto the page and strips the shadow, so the container
|
|
@@ -1,58 +1,34 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const switchVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
sm
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
control:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
md
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
base: string;
|
|
34
|
-
content: string;
|
|
35
|
-
control: string;
|
|
36
|
-
icon: string;
|
|
37
|
-
thumb: string;
|
|
38
|
-
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
39
|
-
size: {
|
|
40
|
-
lg: {
|
|
41
|
-
base: string;
|
|
42
|
-
};
|
|
43
|
-
md: {
|
|
44
|
-
base: string;
|
|
45
|
-
};
|
|
46
|
-
sm: {
|
|
47
|
-
base: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
}, {
|
|
51
|
-
base: string;
|
|
52
|
-
content: string;
|
|
53
|
-
control: string;
|
|
54
|
-
icon: string;
|
|
55
|
-
thumb: string;
|
|
56
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const switchVariants: (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
|
+
size?: "lg" | "md" | "sm" | 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
|
+
size?: "lg" | "md" | "sm" | 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
|
+
size?: "lg" | "md" | "sm" | undefined;
|
|
16
|
+
}) | undefined) => string;
|
|
17
|
+
control: (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
|
+
size?: "lg" | "md" | "sm" | undefined;
|
|
21
|
+
}) | undefined) => string;
|
|
22
|
+
icon: (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
|
+
size?: "lg" | "md" | "sm" | undefined;
|
|
26
|
+
}) | undefined) => string;
|
|
27
|
+
thumb: (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
|
+
size?: "lg" | "md" | "sm" | undefined;
|
|
31
|
+
}) | undefined) => string;
|
|
32
|
+
};
|
|
57
33
|
export type SwitchVariants = VariantProps<typeof switchVariants>;
|
|
58
34
|
//# sourceMappingURL=switch.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.styles.d.ts","sourceRoot":"","sources":["../../../src/components/switch/switch.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"switch.styles.d.ts","sourceRoot":"","sources":["../../../src/components/switch/switch.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/switch/switch.styles.ts
|
|
3
3
|
const switchVariants = tv({
|
|
4
4
|
defaultVariants: { size: "md" },
|
|
5
5
|
slots: {
|
|
6
|
-
base: "switch",
|
|
7
|
-
content: "switch__content",
|
|
8
|
-
control: "switch__control",
|
|
9
|
-
icon: "switch__icon",
|
|
10
|
-
thumb: "switch__thumb"
|
|
6
|
+
base: "rp-switch",
|
|
7
|
+
content: "rp-switch__content",
|
|
8
|
+
control: "rp-switch__control",
|
|
9
|
+
icon: "rp-switch__icon",
|
|
10
|
+
thumb: "rp-switch__thumb"
|
|
11
11
|
},
|
|
12
12
|
variants: { size: {
|
|
13
|
-
lg: { base: "switch--lg" },
|
|
14
|
-
md: { base: "switch--md" },
|
|
15
|
-
sm: { base: "switch--sm" }
|
|
13
|
+
lg: { base: "rp-switch--lg" },
|
|
14
|
+
md: { base: "rp-switch--md" },
|
|
15
|
+
sm: { base: "rp-switch--sm" }
|
|
16
16
|
} }
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
@@ -1,40 +1,19 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const switchGroupVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
vertical: {
|
|
20
|
-
base: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}, {
|
|
24
|
-
base: string;
|
|
25
|
-
items: string;
|
|
26
|
-
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
27
|
-
orientation: {
|
|
28
|
-
horizontal: {
|
|
29
|
-
base: string;
|
|
30
|
-
};
|
|
31
|
-
vertical: {
|
|
32
|
-
base: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
}, {
|
|
36
|
-
base: string;
|
|
37
|
-
items: string;
|
|
38
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const switchGroupVariants: (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
|
+
orientation?: "horizontal" | "vertical" | 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
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
11
|
+
}) | undefined) => string;
|
|
12
|
+
items: (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
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
16
|
+
}) | undefined) => string;
|
|
17
|
+
};
|
|
39
18
|
export type SwitchGroupVariants = VariantProps<typeof switchGroupVariants>;
|
|
40
19
|
//# sourceMappingURL=switch-group.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch-group.styles.d.ts","sourceRoot":"","sources":["../../../src/components/switch-group/switch-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"switch-group.styles.d.ts","sourceRoot":"","sources":["../../../src/components/switch-group/switch-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;CAkB9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/switch-group/switch-group.styles.ts
|
|
3
3
|
const switchGroupVariants = tv({
|
|
4
4
|
defaultVariants: { orientation: "vertical" },
|
|
5
5
|
slots: {
|
|
6
|
-
base: "switch-group",
|
|
7
|
-
items: "switch-group__items"
|
|
6
|
+
base: "rp-switch-group",
|
|
7
|
+
items: "rp-switch-group__items"
|
|
8
8
|
},
|
|
9
9
|
variants: { orientation: {
|
|
10
|
-
horizontal: { base: "switch-group--horizontal" },
|
|
11
|
-
vertical: { base: "switch-group--vertical" }
|
|
10
|
+
horizontal: { base: "rp-switch-group--horizontal" },
|
|
11
|
+
vertical: { base: "rp-switch-group--vertical" }
|
|
12
12
|
} }
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* Switch Group styles */
|
|
2
|
-
.switch-group {
|
|
2
|
+
.rp-switch-group {
|
|
3
3
|
@apply flex flex-col gap-6;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.switch-group__items {
|
|
6
|
+
.rp-switch-group__items {
|
|
7
7
|
@apply flex gap-4;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/* Orientation modifiers */
|
|
11
|
-
.switch-group--horizontal .switch-group__items {
|
|
11
|
+
.rp-switch-group--horizontal .rp-switch-group__items {
|
|
12
12
|
@apply flex-row;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.switch-group--vertical .switch-group__items {
|
|
15
|
+
.rp-switch-group--vertical .rp-switch-group__items {
|
|
16
16
|
@apply flex-col;
|
|
17
17
|
}
|