@ropav/styles 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -20
- package/dist/components/accordion/accordion.styles.d.ts +47 -50
- package/dist/components/accordion/accordion.styles.d.ts.map +1 -1
- package/dist/components/accordion/accordion.styles.js +10 -10
- package/dist/components/accordion.css +15 -15
- package/dist/components/alert/alert.styles.d.ts +32 -74
- package/dist/components/alert/alert.styles.d.ts.map +1 -1
- package/dist/components/alert/alert.styles.js +11 -11
- package/dist/components/alert-dialog/alert-dialog.styles.d.ts +79 -173
- package/dist/components/alert-dialog/alert-dialog.styles.d.ts.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.styles.js +24 -24
- package/dist/components/alert-dialog.css +27 -27
- package/dist/components/alert.css +15 -15
- package/dist/components/autocomplete/autocomplete.styles.d.ts +58 -107
- package/dist/components/autocomplete/autocomplete.styles.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete.styles.js +16 -16
- package/dist/components/autocomplete.css +19 -19
- package/dist/components/avatar/avatar.styles.d.ts +30 -119
- package/dist/components/avatar/avatar.styles.d.ts.map +1 -1
- package/dist/components/avatar/avatar.styles.js +13 -13
- package/dist/components/avatar.css +18 -18
- package/dist/components/badge/badge.styles.d.ts +34 -176
- package/dist/components/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/badge/badge.styles.js +19 -19
- package/dist/components/badge.css +28 -28
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +17 -44
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +5 -5
- package/dist/components/breadcrumbs.css +4 -4
- package/dist/components/button/button.styles.d.ts +9 -68
- package/dist/components/button/button.styles.d.ts.map +1 -1
- package/dist/components/button/button.styles.js +14 -14
- package/dist/components/button-group/button-group.styles.d.ts +20 -56
- package/dist/components/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/button-group/button-group.styles.js +6 -6
- package/dist/components/button-group.css +24 -24
- package/dist/components/button.css +16 -16
- package/dist/components/calendar/calendar.styles.d.ts +41 -77
- package/dist/components/calendar/calendar.styles.d.ts.map +1 -1
- package/dist/components/calendar/calendar.styles.js +13 -13
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.d.ts +20 -50
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.d.ts.map +1 -1
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.js +6 -6
- package/dist/components/calendar-year-picker.css +18 -17
- package/dist/components/calendar.css +22 -22
- package/dist/components/card/card.styles.d.ts +37 -68
- package/dist/components/card/card.styles.d.ts.map +1 -1
- package/dist/components/card/card.styles.js +11 -11
- package/dist/components/card.css +10 -10
- package/dist/components/checkbox/checkbox.styles.d.ts +27 -44
- package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.styles.js +7 -7
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +6 -17
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts.map +1 -1
- package/dist/components/checkbox-group/checkbox-group.styles.js +4 -4
- package/dist/components/checkbox-group.css +1 -1
- package/dist/components/checkbox.css +33 -32
- package/dist/components/chip/chip.styles.d.ts +23 -140
- package/dist/components/chip/chip.styles.d.ts.map +1 -1
- package/dist/components/chip/chip.styles.js +15 -15
- package/dist/components/chip.css +23 -23
- package/dist/components/close-button/close-button.styles.d.ts +6 -14
- package/dist/components/close-button/close-button.styles.d.ts.map +1 -1
- package/dist/components/close-button/close-button.styles.js +3 -3
- package/dist/components/close-button.css +2 -2
- package/dist/components/color-area/color-area.styles.d.ts +17 -32
- package/dist/components/color-area/color-area.styles.d.ts.map +1 -1
- package/dist/components/color-area/color-area.styles.js +4 -4
- package/dist/components/color-area.css +3 -3
- package/dist/components/color-field/color-field.styles.d.ts +6 -17
- package/dist/components/color-field/color-field.styles.d.ts.map +1 -1
- package/dist/components/color-field/color-field.styles.js +3 -3
- package/dist/components/color-field.css +2 -2
- package/dist/components/color-input-group/color-input-group.styles.d.ts +37 -89
- package/dist/components/color-input-group/color-input-group.styles.d.ts.map +1 -1
- package/dist/components/color-input-group/color-input-group.styles.js +10 -10
- package/dist/components/color-input-group.css +13 -13
- package/dist/components/color-picker/color-picker.styles.d.ts +14 -38
- package/dist/components/color-picker/color-picker.styles.d.ts.map +1 -1
- package/dist/components/color-picker/color-picker.styles.js +4 -4
- package/dist/components/color-picker.css +3 -3
- package/dist/components/color-slider/color-slider.styles.d.ts +17 -44
- package/dist/components/color-slider/color-slider.styles.d.ts.map +1 -1
- package/dist/components/color-slider/color-slider.styles.js +5 -5
- package/dist/components/color-slider.css +16 -16
- package/dist/components/color-swatch/color-swatch.styles.d.ts +7 -38
- package/dist/components/color-swatch/color-swatch.styles.d.ts.map +1 -1
- package/dist/components/color-swatch/color-swatch.styles.js +9 -9
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.d.ts +37 -119
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.d.ts.map +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.js +14 -14
- package/dist/components/color-swatch-picker.css +20 -20
- package/dist/components/color-swatch.css +12 -12
- package/dist/components/combo-box/combo-box.styles.d.ts +38 -71
- package/dist/components/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/combo-box/combo-box.styles.js +10 -10
- package/dist/components/combo-box.css +10 -10
- package/dist/components/date-field/date-field.styles.d.ts +6 -17
- package/dist/components/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/date-field/date-field.styles.js +3 -3
- package/dist/components/date-field.css +2 -2
- package/dist/components/date-input-group/date-input-group.styles.d.ts +51 -95
- package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -1
- package/dist/components/date-input-group/date-input-group.styles.js +12 -12
- package/dist/components/date-input-group.css +16 -16
- package/dist/components/date-picker/date-picker.styles.d.ts +17 -44
- package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.styles.js +5 -5
- package/dist/components/date-picker.css +8 -8
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts +20 -50
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.styles.js +6 -6
- package/dist/components/date-range-picker.css +9 -9
- package/dist/components/description/description.styles.d.ts +4 -2
- package/dist/components/description/description.styles.d.ts.map +1 -1
- package/dist/components/description/description.styles.js +2 -2
- package/dist/components/description.css +1 -1
- package/dist/components/disclosure/disclosure.styles.d.ts +26 -26
- package/dist/components/disclosure/disclosure.styles.d.ts.map +1 -1
- package/dist/components/disclosure/disclosure.styles.js +8 -8
- package/dist/components/disclosure-group/disclosure-group.styles.d.ts +8 -8
- package/dist/components/disclosure-group/disclosure-group.styles.d.ts.map +1 -1
- package/dist/components/disclosure-group/disclosure-group.styles.js +2 -2
- package/dist/components/disclosure-group.css +1 -1
- package/dist/components/disclosure.css +6 -6
- package/dist/components/drawer/drawer.styles.d.ts +68 -125
- package/dist/components/drawer/drawer.styles.d.ts.map +1 -1
- package/dist/components/drawer/drawer.styles.js +22 -22
- package/dist/components/drawer.css +37 -37
- package/dist/components/drop-zone/drop-zone.styles.d.ts +11 -32
- package/dist/components/drop-zone/drop-zone.styles.d.ts.map +1 -1
- package/dist/components/drop-zone/drop-zone.styles.js +3 -3
- package/dist/components/drop-zone.css +2 -2
- package/dist/components/dropdown/dropdown.styles.d.ts +17 -44
- package/dist/components/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.styles.js +5 -5
- package/dist/components/dropdown.css +13 -11
- package/dist/components/empty-state/empty-state.styles.d.ts +4 -2
- package/dist/components/empty-state/empty-state.styles.d.ts.map +1 -1
- package/dist/components/empty-state/empty-state.styles.js +2 -2
- package/dist/components/empty-state.css +1 -1
- package/dist/components/error-message/error-message.styles.d.ts +4 -2
- package/dist/components/error-message/error-message.styles.d.ts.map +1 -1
- package/dist/components/error-message/error-message.styles.js +2 -2
- package/dist/components/error-message.css +1 -1
- package/dist/components/field-error/field-error.styles.d.ts +4 -2
- package/dist/components/field-error/field-error.styles.d.ts.map +1 -1
- package/dist/components/field-error/field-error.styles.js +2 -2
- package/dist/components/field-error.css +7 -7
- package/dist/components/fieldset/fieldset.styles.d.ts +20 -50
- package/dist/components/fieldset/fieldset.styles.d.ts.map +1 -1
- package/dist/components/fieldset/fieldset.styles.js +6 -6
- package/dist/components/fieldset.css +4 -4
- package/dist/components/header/header.styles.d.ts +3 -1
- package/dist/components/header/header.styles.d.ts.map +1 -1
- package/dist/components/header/header.styles.js +2 -2
- package/dist/components/header.css +1 -1
- package/dist/components/input/input.styles.d.ts +8 -44
- package/dist/components/input/input.styles.d.ts.map +1 -1
- package/dist/components/input/input.styles.js +7 -7
- package/dist/components/input-group/input-group.styles.d.ts +37 -89
- package/dist/components/input-group/input-group.styles.d.ts.map +1 -1
- package/dist/components/input-group/input-group.styles.js +10 -10
- package/dist/components/input-group.css +17 -17
- package/dist/components/input-otp/input-otp.styles.d.ts +42 -53
- package/dist/components/input-otp/input-otp.styles.d.ts.map +1 -1
- package/dist/components/input-otp/input-otp.styles.js +10 -10
- package/dist/components/input-otp.css +10 -10
- package/dist/components/input.css +6 -6
- package/dist/components/kbd/kbd.styles.d.ts +22 -29
- package/dist/components/kbd/kbd.styles.d.ts.map +1 -1
- package/dist/components/kbd/kbd.styles.js +6 -6
- package/dist/components/kbd.css +4 -4
- package/dist/components/label/label.styles.d.ts +8 -32
- package/dist/components/label/label.styles.d.ts.map +1 -1
- package/dist/components/label/label.styles.js +5 -5
- package/dist/components/label.css +9 -9
- package/dist/components/link/link.styles.d.ts +11 -32
- package/dist/components/link/link.styles.d.ts.map +1 -1
- package/dist/components/link/link.styles.js +3 -3
- package/dist/components/link.css +7 -7
- package/dist/components/list-box/list-box.styles.d.ts +7 -32
- package/dist/components/list-box/list-box.styles.d.ts.map +1 -1
- package/dist/components/list-box/list-box.styles.js +6 -6
- package/dist/components/list-box-item/list-box-item.styles.d.ts +17 -38
- package/dist/components/list-box-item/list-box-item.styles.d.ts.map +1 -1
- package/dist/components/list-box-item/list-box-item.styles.js +5 -5
- package/dist/components/list-box-item.css +9 -9
- package/dist/components/list-box-section/list-box-section.styles.d.ts +4 -2
- package/dist/components/list-box-section/list-box-section.styles.d.ts.map +1 -1
- package/dist/components/list-box-section/list-box-section.styles.js +2 -2
- package/dist/components/list-box-section.css +1 -1
- package/dist/components/list-box.css +53 -3
- package/dist/components/menu/menu.styles.d.ts +6 -20
- package/dist/components/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/menu/menu.styles.js +4 -4
- package/dist/components/menu-item/menu-item.styles.d.ts +22 -41
- package/dist/components/menu-item/menu-item.styles.d.ts.map +1 -1
- package/dist/components/menu-item/menu-item.styles.js +6 -6
- package/dist/components/menu-item.css +11 -11
- package/dist/components/menu-section/menu-section.styles.d.ts +4 -2
- package/dist/components/menu-section/menu-section.styles.d.ts.map +1 -1
- package/dist/components/menu-section/menu-section.styles.js +2 -2
- package/dist/components/menu-section.css +1 -1
- package/dist/components/menu.css +4 -4
- package/dist/components/meter/meter.styles.d.ts +32 -104
- package/dist/components/meter/meter.styles.d.ts.map +1 -1
- package/dist/components/meter/meter.styles.js +13 -13
- package/dist/components/meter.css +14 -14
- package/dist/components/modal/modal.styles.d.ts +79 -167
- package/dist/components/modal/modal.styles.d.ts.map +1 -1
- package/dist/components/modal/modal.styles.js +26 -26
- package/dist/components/modal.css +30 -30
- package/dist/components/number-field/number-field.styles.d.ts +44 -95
- package/dist/components/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/number-field/number-field.styles.js +12 -12
- package/dist/components/number-field.css +24 -24
- package/dist/components/pagination/pagination.styles.d.ts +44 -59
- package/dist/components/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/pagination/pagination.styles.js +19 -12
- package/dist/components/pagination.css +18 -18
- package/dist/components/popover/popover.styles.d.ts +17 -44
- package/dist/components/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/popover/popover.styles.js +5 -5
- package/dist/components/popover.css +4 -4
- package/dist/components/progress-bar/progress-bar.styles.d.ts +42 -140
- package/dist/components/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/progress-bar/progress-bar.styles.js +15 -15
- package/dist/components/progress-bar.css +25 -25
- package/dist/components/progress-circle/progress-circle.styles.d.ts +32 -104
- package/dist/components/progress-circle/progress-circle.styles.d.ts.map +1 -1
- package/dist/components/progress-circle/progress-circle.styles.js +13 -13
- package/dist/components/progress-circle.css +17 -17
- package/dist/components/radio/radio.styles.d.ts +17 -44
- package/dist/components/radio/radio.styles.d.ts.map +1 -1
- package/dist/components/radio/radio.styles.js +5 -5
- package/dist/components/radio-group/radio-group.styles.d.ts +6 -17
- package/dist/components/radio-group/radio-group.styles.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.styles.js +4 -4
- package/dist/components/radio-group.css +8 -8
- package/dist/components/radio.css +39 -39
- package/dist/components/range-calendar/range-calendar.styles.d.ts +44 -77
- package/dist/components/range-calendar/range-calendar.styles.d.ts.map +1 -1
- package/dist/components/range-calendar/range-calendar.styles.js +15 -13
- package/dist/components/range-calendar.css +38 -38
- package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts +16 -68
- package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts.map +1 -1
- package/dist/components/scroll-shadow/scroll-shadow.styles.js +6 -6
- package/dist/components/scroll-shadow.css +6 -6
- package/dist/components/search-field/search-field.styles.d.ts +44 -95
- package/dist/components/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/search-field/search-field.styles.js +12 -12
- package/dist/components/search-field.css +18 -18
- package/dist/components/segmented-control/segmented-control.styles.d.ts +32 -71
- package/dist/components/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.styles.js +9 -9
- package/dist/components/segmented-control.css +17 -17
- package/dist/components/select/select.styles.d.ts +44 -101
- package/dist/components/select/select.styles.d.ts.map +1 -1
- package/dist/components/select/select.styles.js +14 -14
- package/dist/components/select.css +16 -16
- package/dist/components/separator/separator.styles.d.ts +7 -32
- package/dist/components/separator/separator.styles.d.ts.map +1 -1
- package/dist/components/separator/separator.styles.js +7 -7
- package/dist/components/separator.css +13 -13
- package/dist/components/sidebar/sidebar.styles.d.ts +222 -224
- package/dist/components/sidebar/sidebar.styles.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.styles.js +36 -36
- package/dist/components/sidebar.css +54 -48
- package/dist/components/skeleton/skeleton.styles.d.ts +12 -26
- package/dist/components/skeleton/skeleton.styles.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.styles.js +5 -5
- package/dist/components/skeleton.css +6 -6
- package/dist/components/slider/slider.styles.d.ts +23 -56
- package/dist/components/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/slider/slider.styles.js +7 -7
- package/dist/components/slider.css +14 -14
- package/dist/components/spinner/spinner.styles.d.ts +7 -44
- package/dist/components/spinner/spinner.styles.d.ts.map +1 -1
- package/dist/components/spinner/spinner.styles.js +11 -11
- package/dist/components/spinner.css +10 -10
- package/dist/components/splitter/splitter.styles.d.ts +32 -59
- package/dist/components/splitter/splitter.styles.d.ts.map +1 -1
- package/dist/components/splitter/splitter.styles.js +12 -12
- package/dist/components/splitter.css +23 -23
- package/dist/components/surface/surface.styles.d.ts +6 -23
- package/dist/components/surface/surface.styles.d.ts.map +1 -1
- package/dist/components/surface/surface.styles.js +6 -6
- package/dist/components/surface.css +5 -5
- package/dist/components/switch/switch.styles.d.ts +32 -56
- package/dist/components/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/switch/switch.styles.js +9 -9
- package/dist/components/switch-group/switch-group.styles.d.ts +17 -38
- package/dist/components/switch-group/switch-group.styles.d.ts.map +1 -1
- package/dist/components/switch-group/switch-group.styles.js +5 -5
- package/dist/components/switch-group.css +4 -4
- package/dist/components/switch.css +52 -52
- package/dist/components/table/table.styles.d.ts +87 -77
- package/dist/components/table/table.styles.d.ts.map +1 -1
- package/dist/components/table/table.styles.js +20 -18
- package/dist/components/table.css +112 -63
- package/dist/components/tabs/tabs.styles.d.ts +57 -56
- package/dist/components/tabs/tabs.styles.d.ts.map +1 -1
- package/dist/components/tabs/tabs.styles.js +12 -12
- package/dist/components/tabs.css +33 -33
- package/dist/components/tag/tag.styles.d.ts +20 -71
- package/dist/components/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/tag/tag.styles.js +8 -8
- package/dist/components/tag-group/tag-group.styles.d.ts +11 -32
- package/dist/components/tag-group/tag-group.styles.d.ts.map +1 -1
- package/dist/components/tag-group/tag-group.styles.js +3 -3
- package/dist/components/tag-group.css +6 -6
- package/dist/components/tag.css +11 -11
- package/dist/components/textarea/textarea.styles.d.ts +8 -44
- package/dist/components/textarea/textarea.styles.d.ts.map +1 -1
- package/dist/components/textarea/textarea.styles.js +7 -7
- package/dist/components/textarea.css +6 -6
- package/dist/components/textfield/textfield.styles.d.ts +6 -17
- package/dist/components/textfield/textfield.styles.d.ts.map +1 -1
- package/dist/components/textfield/textfield.styles.js +3 -3
- package/dist/components/textfield.css +2 -2
- package/dist/components/time-field/time-field.styles.d.ts +6 -17
- package/dist/components/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/time-field/time-field.styles.js +3 -3
- package/dist/components/time-field.css +2 -2
- package/dist/components/toast/toast.styles.d.ts +56 -161
- package/dist/components/toast/toast.styles.d.ts.map +1 -1
- package/dist/components/toast/toast.styles.js +26 -26
- package/dist/components/toast.css +55 -55
- package/dist/components/toggle-button/toggle-button.styles.d.ts +8 -41
- package/dist/components/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/toggle-button/toggle-button.styles.js +8 -8
- package/dist/components/toggle-button-group/toggle-button-group.styles.d.ts +23 -74
- package/dist/components/toggle-button-group/toggle-button-group.styles.d.ts.map +1 -1
- package/dist/components/toggle-button-group/toggle-button-group.styles.js +7 -7
- package/dist/components/toggle-button-group.css +22 -22
- package/dist/components/toggle-button.css +9 -9
- package/dist/components/toolbar/toolbar.styles.d.ts +7 -26
- package/dist/components/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.styles.js +5 -5
- package/dist/components/toolbar.css +7 -7
- package/dist/components/tooltip/tooltip.styles.d.ts +11 -32
- package/dist/components/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.styles.js +3 -3
- package/dist/components/tooltip.css +2 -2
- package/dist/components/typography/typography.styles.d.ts +29 -107
- package/dist/components/typography/typography.styles.d.ts.map +1 -1
- package/dist/components/typography/typography.styles.js +24 -24
- package/dist/components/typography.css +41 -41
- package/dist/components/virtualizer/virtualizer.styles.d.ts +13 -37
- package/dist/components/virtualizer/virtualizer.styles.d.ts.map +1 -1
- package/dist/components/virtualizer/virtualizer.styles.js +4 -4
- package/dist/components/virtualizer.css +3 -3
- package/dist/core.css +26 -0
- package/dist/index.css +8 -24
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/no-preflight.css +8 -0
- package/dist/ropav.min.css +1 -1
- package/dist/themes.d.ts +12 -0
- package/dist/themes.d.ts.map +1 -0
- package/dist/themes.js +39 -0
- package/dist/tv.d.ts +34 -0
- package/dist/tv.d.ts.map +1 -0
- package/dist/tv.js +21 -0
- package/package.json +5 -3
- package/src/components/accordion/accordion.styles.ts +11 -11
- package/src/components/alert/alert.styles.ts +12 -12
- package/src/components/alert-dialog/alert-dialog.styles.ts +25 -25
- package/src/components/autocomplete/autocomplete.styles.ts +17 -17
- package/src/components/avatar/avatar.styles.ts +14 -14
- package/src/components/badge/badge.styles.ts +20 -20
- package/src/components/breadcrumbs/breadcrumbs.styles.ts +6 -6
- package/src/components/button/button.styles.ts +15 -15
- package/src/components/button-group/button-group.styles.ts +7 -7
- package/src/components/calendar/calendar.styles.ts +14 -14
- package/src/components/calendar-year-picker/calendar-year-picker.styles.ts +7 -7
- package/src/components/card/card.styles.ts +12 -12
- package/src/components/checkbox/checkbox.styles.ts +8 -8
- package/src/components/checkbox-group/checkbox-group.styles.ts +5 -5
- package/src/components/chip/chip.styles.ts +16 -16
- package/src/components/close-button/close-button.styles.ts +4 -4
- package/src/components/color-area/color-area.styles.ts +5 -5
- package/src/components/color-field/color-field.styles.ts +4 -4
- package/src/components/color-input-group/color-input-group.styles.ts +11 -11
- package/src/components/color-picker/color-picker.styles.ts +5 -5
- package/src/components/color-slider/color-slider.styles.ts +6 -6
- package/src/components/color-swatch/color-swatch.styles.ts +10 -10
- package/src/components/color-swatch-picker/color-swatch-picker.styles.ts +15 -15
- package/src/components/combo-box/combo-box.styles.ts +11 -11
- package/src/components/date-field/date-field.styles.ts +4 -4
- package/src/components/date-input-group/date-input-group.styles.ts +13 -13
- package/src/components/date-picker/date-picker.styles.ts +6 -6
- package/src/components/date-range-picker/date-range-picker.styles.ts +7 -7
- package/src/components/description/description.styles.ts +3 -3
- package/src/components/disclosure/disclosure.styles.ts +9 -9
- package/src/components/disclosure-group/disclosure-group.styles.ts +3 -3
- package/src/components/drawer/drawer.styles.ts +23 -23
- package/src/components/drop-zone/drop-zone.styles.ts +4 -4
- package/src/components/dropdown/dropdown.styles.ts +6 -6
- package/src/components/empty-state/empty-state.styles.ts +3 -3
- package/src/components/error-message/error-message.styles.ts +3 -3
- package/src/components/field-error/field-error.styles.ts +3 -3
- package/src/components/fieldset/fieldset.styles.ts +7 -7
- package/src/components/header/header.styles.ts +2 -2
- package/src/components/input/input.styles.ts +8 -8
- package/src/components/input-group/input-group.styles.ts +11 -11
- package/src/components/input-otp/input-otp.styles.ts +11 -11
- package/src/components/kbd/kbd.styles.ts +7 -7
- package/src/components/label/label.styles.ts +6 -6
- package/src/components/link/link.styles.ts +4 -4
- package/src/components/list-box/list-box.styles.ts +7 -7
- package/src/components/list-box-item/list-box-item.styles.ts +6 -6
- package/src/components/list-box-section/list-box-section.styles.ts +3 -3
- package/src/components/menu/menu.styles.ts +5 -5
- package/src/components/menu-item/menu-item.styles.ts +7 -7
- package/src/components/menu-section/menu-section.styles.ts +3 -3
- package/src/components/meter/meter.styles.ts +14 -14
- package/src/components/modal/modal.styles.ts +27 -27
- package/src/components/number-field/number-field.styles.ts +13 -13
- package/src/components/pagination/pagination.styles.ts +18 -11
- package/src/components/popover/popover.styles.ts +6 -6
- package/src/components/progress-bar/progress-bar.styles.ts +16 -16
- package/src/components/progress-circle/progress-circle.styles.ts +14 -14
- package/src/components/radio/radio.styles.ts +6 -6
- package/src/components/radio-group/radio-group.styles.ts +5 -5
- package/src/components/range-calendar/range-calendar.styles.ts +16 -14
- package/src/components/scroll-shadow/scroll-shadow.styles.ts +7 -7
- package/src/components/search-field/search-field.styles.ts +13 -13
- package/src/components/segmented-control/segmented-control.styles.ts +10 -10
- package/src/components/select/select.styles.ts +15 -15
- package/src/components/separator/separator.styles.ts +8 -8
- package/src/components/sidebar/sidebar.styles.ts +37 -37
- package/src/components/skeleton/skeleton.styles.ts +6 -6
- package/src/components/slider/slider.styles.ts +8 -8
- package/src/components/spinner/spinner.styles.ts +12 -12
- package/src/components/splitter/splitter.styles.ts +13 -13
- package/src/components/surface/surface.styles.ts +7 -7
- package/src/components/switch/switch.styles.ts +10 -10
- package/src/components/switch-group/switch-group.styles.ts +6 -6
- package/src/components/table/table.styles.ts +21 -19
- package/src/components/tabs/tabs.styles.ts +13 -13
- package/src/components/tag/tag.styles.ts +9 -9
- package/src/components/tag-group/tag-group.styles.ts +4 -4
- package/src/components/textarea/textarea.styles.ts +8 -8
- package/src/components/textfield/textfield.styles.ts +4 -4
- package/src/components/time-field/time-field.styles.ts +4 -4
- package/src/components/toast/toast.styles.ts +27 -27
- package/src/components/toggle-button/toggle-button.styles.ts +9 -9
- package/src/components/toggle-button-group/toggle-button-group.styles.ts +8 -8
- package/src/components/toolbar/toolbar.styles.ts +6 -6
- package/src/components/tooltip/tooltip.styles.ts +4 -4
- package/src/components/typography/typography.styles.ts +25 -25
- package/src/components/virtualizer/virtualizer.styles.ts +4 -4
- package/src/index.ts +5 -2
- package/src/themes.ts +40 -0
- package/src/tv.ts +82 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* Toast component styles */
|
|
2
2
|
|
|
3
3
|
/* Toast Region - Container for all toasts */
|
|
4
|
-
.toast-region {
|
|
4
|
+
.rp-toast-region {
|
|
5
5
|
@apply pointer-events-none fixed z-50 outline-none;
|
|
6
6
|
@apply w-[calc(100vw-2rem)] sm:w-auto sm:min-w-(--toast-width);
|
|
7
7
|
|
|
@@ -9,39 +9,39 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/* Placement variants - Bottom */
|
|
12
|
-
.toast-region--bottom {
|
|
12
|
+
.rp-toast-region--bottom {
|
|
13
13
|
/* left-1/2 + -translate-x-1/2 centers in both LTR and RTL (translate is physical) */
|
|
14
14
|
@apply bottom-4 left-1/2 -translate-x-1/2;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.toast-region--bottom-start {
|
|
17
|
+
.rp-toast-region--bottom-start {
|
|
18
18
|
@apply start-4 bottom-4;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.toast-region--bottom-end {
|
|
21
|
+
.rp-toast-region--bottom-end {
|
|
22
22
|
@apply end-4 bottom-4;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/* Placement variants - Top */
|
|
26
|
-
.toast-region--top {
|
|
26
|
+
.rp-toast-region--top {
|
|
27
27
|
/* left-1/2 + -translate-x-1/2 centers in both LTR and RTL (translate is physical) */
|
|
28
28
|
@apply top-4 left-1/2 -translate-x-1/2;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.toast-region--top-start {
|
|
31
|
+
.rp-toast-region--top-start {
|
|
32
32
|
@apply start-4 top-4;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.toast-region--top-end {
|
|
35
|
+
.rp-toast-region--top-end {
|
|
36
36
|
@apply end-4 top-4;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.toast-region:focus-visible {
|
|
39
|
+
.rp-toast-region:focus-visible {
|
|
40
40
|
@apply outline-2 outline-offset-2 outline-focus;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/* Base toast styles */
|
|
44
|
-
.toast {
|
|
44
|
+
.rp-toast {
|
|
45
45
|
position: absolute;
|
|
46
46
|
inset-inline-start: 0;
|
|
47
47
|
inset-inline-end: 0;
|
|
@@ -50,58 +50,58 @@
|
|
|
50
50
|
border-radius: min(32px, var(--component-radius));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.toast--bottom,
|
|
54
|
-
.toast--bottom-start,
|
|
55
|
-
.toast--bottom-end {
|
|
53
|
+
.rp-toast--bottom,
|
|
54
|
+
.rp-toast--bottom-start,
|
|
55
|
+
.rp-toast--bottom-end {
|
|
56
56
|
bottom: 0;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.toast--top,
|
|
60
|
-
.toast--top-start,
|
|
61
|
-
.toast--top-end {
|
|
59
|
+
.rp-toast--top,
|
|
60
|
+
.rp-toast--top-start,
|
|
61
|
+
.rp-toast--top-end {
|
|
62
62
|
top: 0;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.toast:not([data-frontmost="true"]) {
|
|
65
|
+
.rp-toast:not([data-frontmost="true"]) {
|
|
66
66
|
@apply pointer-events-none;
|
|
67
67
|
|
|
68
68
|
height: var(--front-height);
|
|
69
69
|
overflow: hidden;
|
|
70
70
|
|
|
71
|
-
.toast__close-button {
|
|
71
|
+
.rp-toast__close-button {
|
|
72
72
|
@apply pointer-events-none opacity-0;
|
|
73
73
|
outline: none;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.toast[data-hidden="true"] {
|
|
77
|
+
.rp-toast[data-hidden="true"] {
|
|
78
78
|
@apply pointer-events-none flex opacity-0;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.toast:focus-visible {
|
|
81
|
+
.rp-toast:focus-visible {
|
|
82
82
|
@apply outline-2 outline-offset-2 outline-focus;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/* Toast placements + view transitions */
|
|
86
|
-
.toast--bottom,
|
|
87
|
-
.toast--bottom-start,
|
|
88
|
-
.toast--bottom-end {
|
|
89
|
-
view-transition-class: toast-bottom;
|
|
86
|
+
.rp-toast--bottom,
|
|
87
|
+
.rp-toast--bottom-start,
|
|
88
|
+
.rp-toast--bottom-end {
|
|
89
|
+
view-transition-class: rp-toast-bottom;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.toast--top,
|
|
93
|
-
.toast--top-start,
|
|
94
|
-
.toast--top-end {
|
|
95
|
-
view-transition-class: toast-top;
|
|
92
|
+
.rp-toast--top,
|
|
93
|
+
.rp-toast--top-start,
|
|
94
|
+
.rp-toast--top-end {
|
|
95
|
+
view-transition-class: rp-toast-top;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/* Toast content */
|
|
99
|
-
.toast__content {
|
|
99
|
+
.rp-toast__content {
|
|
100
100
|
@apply flex h-full grow flex-col items-start self-center;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/* Toast indicator */
|
|
104
|
-
.toast__indicator {
|
|
104
|
+
.rp-toast__indicator {
|
|
105
105
|
@apply flex shrink-0 items-center justify-center p-1 text-overlay-foreground select-none;
|
|
106
106
|
|
|
107
107
|
[data-slot="toast-default-icon"] {
|
|
@@ -119,17 +119,17 @@
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
/* Toast title */
|
|
122
|
-
.toast__title {
|
|
122
|
+
.rp-toast__title {
|
|
123
123
|
@apply text-sm leading-5 font-medium text-overlay-foreground;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/* Toast description */
|
|
127
|
-
.toast__description {
|
|
127
|
+
.rp-toast__description {
|
|
128
128
|
@apply text-sm text-muted;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/* Toast close button */
|
|
132
|
-
.toast__close-button {
|
|
132
|
+
.rp-toast__close-button {
|
|
133
133
|
@apply pointer-events-none absolute -end-1 -top-1 size-5 border-border bg-default opacity-0 sm:border sm:bg-overlay;
|
|
134
134
|
|
|
135
135
|
--toast-close-button-bg-hover: var(--default);
|
|
@@ -150,47 +150,47 @@
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
/* Only show close button on hover for frontmost toast */
|
|
153
|
-
.toast[data-frontmost="true"]:hover .toast__close-button {
|
|
153
|
+
.rp-toast[data-frontmost="true"]:hover .rp-toast__close-button {
|
|
154
154
|
@apply pointer-events-auto opacity-100;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
/* Toast action button */
|
|
158
|
-
.toast__action {
|
|
158
|
+
.rp-toast__action {
|
|
159
159
|
@apply mt-2 sm:mt-0;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
/* Variant modifiers */
|
|
163
|
-
.toast--accent .toast__title {
|
|
163
|
+
.rp-toast--accent .rp-toast__title {
|
|
164
164
|
@apply text-accent-soft-foreground;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
.toast--success .toast__title {
|
|
167
|
+
.rp-toast--success .rp-toast__title {
|
|
168
168
|
@apply text-success-soft-foreground;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
.toast--success .toast__indicator {
|
|
171
|
+
.rp-toast--success .rp-toast__indicator {
|
|
172
172
|
@apply text-success-soft-foreground;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
.toast--warning .toast__title {
|
|
175
|
+
.rp-toast--warning .rp-toast__title {
|
|
176
176
|
@apply text-warning-soft-foreground;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.toast--warning .toast__indicator {
|
|
179
|
+
.rp-toast--warning .rp-toast__indicator {
|
|
180
180
|
@apply text-warning-soft-foreground;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.toast--danger .toast__title {
|
|
183
|
+
.rp-toast--danger .rp-toast__title {
|
|
184
184
|
@apply text-danger-soft-foreground;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
.toast--danger .toast__indicator {
|
|
187
|
+
.rp-toast--danger .rp-toast__indicator {
|
|
188
188
|
@apply text-danger-soft-foreground;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
/* View transition animations */
|
|
192
|
-
::view-transition-group(.toast-bottom),
|
|
193
|
-
::view-transition-group(.toast-top) {
|
|
192
|
+
::view-transition-group(.rp-toast-bottom),
|
|
193
|
+
::view-transition-group(.rp-toast-top) {
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
::view-transition-old(*),
|
|
@@ -199,36 +199,36 @@
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/* Bottom */
|
|
202
|
-
::view-transition-new(.toast-bottom):only-child {
|
|
203
|
-
animation: toast-slide-bottom-in 350ms;
|
|
202
|
+
::view-transition-new(.rp-toast-bottom):only-child {
|
|
203
|
+
animation: rp-toast-slide-bottom-in 350ms;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
::view-transition-old(.toast-bottom):only-child {
|
|
207
|
-
animation: toast-slide-bottom-out 350ms;
|
|
206
|
+
::view-transition-old(.rp-toast-bottom):only-child {
|
|
207
|
+
animation: rp-toast-slide-bottom-out 350ms;
|
|
208
208
|
animation-fill-mode: forwards;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
/* Top */
|
|
212
|
-
::view-transition-new(.toast-top):only-child {
|
|
213
|
-
animation: toast-slide-top-in 350ms;
|
|
212
|
+
::view-transition-new(.rp-toast-top):only-child {
|
|
213
|
+
animation: rp-toast-slide-top-in 350ms;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
::view-transition-old(.toast-top):only-child {
|
|
217
|
-
animation: toast-slide-top-out 350ms;
|
|
216
|
+
::view-transition-old(.rp-toast-top):only-child {
|
|
217
|
+
animation: rp-toast-slide-top-out 350ms;
|
|
218
218
|
animation-fill-mode: forwards;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
/* Keyframes */
|
|
222
222
|
|
|
223
223
|
/* Bottom */
|
|
224
|
-
@keyframes toast-slide-bottom-in {
|
|
224
|
+
@keyframes rp-toast-slide-bottom-in {
|
|
225
225
|
from {
|
|
226
226
|
translate: 0 100%;
|
|
227
227
|
opacity: 0;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
@keyframes toast-slide-bottom-out {
|
|
231
|
+
@keyframes rp-toast-slide-bottom-out {
|
|
232
232
|
to {
|
|
233
233
|
translate: 0 100%;
|
|
234
234
|
opacity: 0;
|
|
@@ -236,14 +236,14 @@
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
/* Top */
|
|
239
|
-
@keyframes toast-slide-top-in {
|
|
239
|
+
@keyframes rp-toast-slide-top-in {
|
|
240
240
|
from {
|
|
241
241
|
translate: 0 -100%;
|
|
242
242
|
opacity: 0;
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
@keyframes toast-slide-top-out {
|
|
246
|
+
@keyframes rp-toast-slide-top-out {
|
|
247
247
|
to {
|
|
248
248
|
translate: 0 -100%;
|
|
249
249
|
opacity: 0;
|
|
@@ -1,43 +1,10 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const toggleButtonVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
size
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
sm: "toggle-button--sm";
|
|
10
|
-
};
|
|
11
|
-
variant: {
|
|
12
|
-
default: "toggle-button--default";
|
|
13
|
-
ghost: "toggle-button--ghost";
|
|
14
|
-
};
|
|
15
|
-
}, undefined, "toggle-button", {
|
|
16
|
-
isIconOnly: {
|
|
17
|
-
true: "toggle-button--icon-only";
|
|
18
|
-
};
|
|
19
|
-
size: {
|
|
20
|
-
lg: "toggle-button--lg";
|
|
21
|
-
md: "toggle-button--md";
|
|
22
|
-
sm: "toggle-button--sm";
|
|
23
|
-
};
|
|
24
|
-
variant: {
|
|
25
|
-
default: "toggle-button--default";
|
|
26
|
-
ghost: "toggle-button--ghost";
|
|
27
|
-
};
|
|
28
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
29
|
-
isIconOnly: {
|
|
30
|
-
true: "toggle-button--icon-only";
|
|
31
|
-
};
|
|
32
|
-
size: {
|
|
33
|
-
lg: "toggle-button--lg";
|
|
34
|
-
md: "toggle-button--md";
|
|
35
|
-
sm: "toggle-button--sm";
|
|
36
|
-
};
|
|
37
|
-
variant: {
|
|
38
|
-
default: "toggle-button--default";
|
|
39
|
-
ghost: "toggle-button--ghost";
|
|
40
|
-
};
|
|
41
|
-
}, undefined>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const toggleButtonVariants: (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
|
+
isIconOnly?: boolean | undefined;
|
|
6
|
+
size?: "lg" | "md" | "sm" | undefined;
|
|
7
|
+
variant?: "default" | "ghost" | undefined;
|
|
8
|
+
}) | undefined) => string;
|
|
42
9
|
export type ToggleButtonVariants = VariantProps<typeof toggleButtonVariants>;
|
|
43
10
|
//# sourceMappingURL=toggle-button.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button.styles.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button/toggle-button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"toggle-button.styles.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button/toggle-button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,oBAAoB;;;;;;yBAqB/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/toggle-button/toggle-button.styles.ts
|
|
3
3
|
const toggleButtonVariants = tv({
|
|
4
|
-
base: "toggle-button",
|
|
4
|
+
base: "rp-toggle-button",
|
|
5
5
|
defaultVariants: {
|
|
6
6
|
isIconOnly: false,
|
|
7
7
|
size: "md",
|
|
8
8
|
variant: "default"
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
11
|
-
isIconOnly: { true: "toggle-button--icon-only" },
|
|
11
|
+
isIconOnly: { true: "rp-toggle-button--icon-only" },
|
|
12
12
|
size: {
|
|
13
|
-
lg: "toggle-button--lg",
|
|
14
|
-
md: "toggle-button--md",
|
|
15
|
-
sm: "toggle-button--sm"
|
|
13
|
+
lg: "rp-toggle-button--lg",
|
|
14
|
+
md: "rp-toggle-button--md",
|
|
15
|
+
sm: "rp-toggle-button--sm"
|
|
16
16
|
},
|
|
17
17
|
variant: {
|
|
18
|
-
default: "toggle-button--default",
|
|
19
|
-
ghost: "toggle-button--ghost"
|
|
18
|
+
default: "rp-toggle-button--default",
|
|
19
|
+
ghost: "rp-toggle-button--ghost"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
});
|
|
@@ -1,76 +1,25 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const toggleButtonGroupVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
false
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
base: string;
|
|
25
|
-
separator: string;
|
|
26
|
-
}, undefined, {
|
|
27
|
-
fullWidth: {
|
|
28
|
-
false: {};
|
|
29
|
-
true: {
|
|
30
|
-
base: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
isDetached: {
|
|
34
|
-
false: {};
|
|
35
|
-
true: {
|
|
36
|
-
base: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
orientation: {
|
|
40
|
-
horizontal: {
|
|
41
|
-
base: string;
|
|
42
|
-
};
|
|
43
|
-
vertical: {
|
|
44
|
-
base: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
}, {
|
|
48
|
-
base: string;
|
|
49
|
-
separator: string;
|
|
50
|
-
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
51
|
-
fullWidth: {
|
|
52
|
-
false: {};
|
|
53
|
-
true: {
|
|
54
|
-
base: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
isDetached: {
|
|
58
|
-
false: {};
|
|
59
|
-
true: {
|
|
60
|
-
base: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
orientation: {
|
|
64
|
-
horizontal: {
|
|
65
|
-
base: string;
|
|
66
|
-
};
|
|
67
|
-
vertical: {
|
|
68
|
-
base: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
}, {
|
|
72
|
-
base: string;
|
|
73
|
-
separator: string;
|
|
74
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const toggleButtonGroupVariants: (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
|
+
fullWidth?: boolean | undefined;
|
|
6
|
+
isDetached?: boolean | undefined;
|
|
7
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
8
|
+
}) | undefined) => {
|
|
9
|
+
base: (props?: ({
|
|
10
|
+
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;
|
|
11
|
+
} & {
|
|
12
|
+
fullWidth?: boolean | undefined;
|
|
13
|
+
isDetached?: boolean | undefined;
|
|
14
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
15
|
+
}) | undefined) => string;
|
|
16
|
+
separator: (props?: ({
|
|
17
|
+
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;
|
|
18
|
+
} & {
|
|
19
|
+
fullWidth?: boolean | undefined;
|
|
20
|
+
isDetached?: boolean | undefined;
|
|
21
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
22
|
+
}) | undefined) => string;
|
|
23
|
+
};
|
|
75
24
|
export type ToggleButtonGroupVariants = VariantProps<typeof toggleButtonGroupVariants>;
|
|
76
25
|
//# sourceMappingURL=toggle-button-group.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button-group.styles.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button-group/toggle-button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"toggle-button-group.styles.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button-group/toggle-button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;CAgCpC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,YAAY,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/toggle-button-group/toggle-button-group.styles.ts
|
|
3
3
|
const toggleButtonGroupVariants = tv({
|
|
4
4
|
defaultVariants: {
|
|
@@ -7,21 +7,21 @@ const toggleButtonGroupVariants = tv({
|
|
|
7
7
|
orientation: "horizontal"
|
|
8
8
|
},
|
|
9
9
|
slots: {
|
|
10
|
-
base: "toggle-button-group",
|
|
11
|
-
separator: "toggle-button-group__separator"
|
|
10
|
+
base: "rp-toggle-button-group",
|
|
11
|
+
separator: "rp-toggle-button-group__separator"
|
|
12
12
|
},
|
|
13
13
|
variants: {
|
|
14
14
|
fullWidth: {
|
|
15
15
|
false: {},
|
|
16
|
-
true: { base: "toggle-button-group--full-width" }
|
|
16
|
+
true: { base: "rp-toggle-button-group--full-width" }
|
|
17
17
|
},
|
|
18
18
|
isDetached: {
|
|
19
19
|
false: {},
|
|
20
|
-
true: { base: "toggle-button-group--detached" }
|
|
20
|
+
true: { base: "rp-toggle-button-group--detached" }
|
|
21
21
|
},
|
|
22
22
|
orientation: {
|
|
23
|
-
horizontal: { base: "toggle-button-group--horizontal" },
|
|
24
|
-
vertical: { base: "toggle-button-group--vertical" }
|
|
23
|
+
horizontal: { base: "rp-toggle-button-group--horizontal" },
|
|
24
|
+
vertical: { base: "rp-toggle-button-group--vertical" }
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
5
|
/* Base styles */
|
|
6
|
-
.toggle-button-group {
|
|
6
|
+
.rp-toggle-button-group {
|
|
7
7
|
@apply inline-flex h-auto w-fit items-center justify-center gap-0;
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
Orientation variants
|
|
12
12
|
========================================================================== */
|
|
13
13
|
|
|
14
|
-
.toggle-button-group--horizontal {
|
|
14
|
+
.rp-toggle-button-group--horizontal {
|
|
15
15
|
@apply flex-row;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.toggle-button-group--vertical {
|
|
18
|
+
.rp-toggle-button-group--vertical {
|
|
19
19
|
@apply flex-col;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
Full width modifier
|
|
24
24
|
========================================================================== */
|
|
25
25
|
|
|
26
|
-
.toggle-button-group--full-width {
|
|
26
|
+
.rp-toggle-button-group--full-width {
|
|
27
27
|
@apply w-full;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -32,55 +32,55 @@
|
|
|
32
32
|
========================================================================== */
|
|
33
33
|
|
|
34
34
|
/* Remove border radius from all toggle buttons in attached group */
|
|
35
|
-
.toggle-button-group .toggle-button {
|
|
35
|
+
.rp-toggle-button-group .rp-toggle-button {
|
|
36
36
|
@apply rounded-none;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/* Apply border radius to first button (start edge) */
|
|
40
|
-
.toggle-button-group--horizontal .toggle-button:first-child {
|
|
40
|
+
.rp-toggle-button-group--horizontal .rp-toggle-button:first-child {
|
|
41
41
|
@apply rounded-s-component;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/* Apply border radius to last button (end edge) */
|
|
45
|
-
.toggle-button-group--horizontal .toggle-button:last-child {
|
|
45
|
+
.rp-toggle-button-group--horizontal .rp-toggle-button:last-child {
|
|
46
46
|
@apply rounded-e-component;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/* If only one button, apply both rounded edges */
|
|
50
|
-
.toggle-button-group--horizontal .toggle-button:first-child:last-child {
|
|
50
|
+
.rp-toggle-button-group--horizontal .rp-toggle-button:first-child:last-child {
|
|
51
51
|
@apply rounded-component;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/* Apply border radius to first button (top edge) in vertical */
|
|
55
|
-
.toggle-button-group--vertical .toggle-button:first-child {
|
|
55
|
+
.rp-toggle-button-group--vertical .rp-toggle-button:first-child {
|
|
56
56
|
@apply rounded-t-component;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/* Apply border radius to last button (bottom edge) in vertical */
|
|
60
|
-
.toggle-button-group--vertical .toggle-button:last-child {
|
|
60
|
+
.rp-toggle-button-group--vertical .rp-toggle-button:last-child {
|
|
61
61
|
@apply rounded-b-component;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/* If only one button in vertical, apply all rounded edges */
|
|
65
|
-
.toggle-button-group--vertical .toggle-button:first-child:last-child {
|
|
65
|
+
.rp-toggle-button-group--vertical .rp-toggle-button:first-child:last-child {
|
|
66
66
|
@apply rounded-component;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
/* Remove scale transform on active/pressed state for buttons in group */
|
|
70
|
-
.toggle-button-group .toggle-button:active,
|
|
71
|
-
.toggle-button-group .toggle-button[data-pressed="true"] {
|
|
70
|
+
.rp-toggle-button-group .rp-toggle-button:active,
|
|
71
|
+
.rp-toggle-button-group .rp-toggle-button[data-pressed="true"] {
|
|
72
72
|
transform: none;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/* Override focus ring to use inset style so it stays within button bounds */
|
|
76
|
-
.toggle-button-group .toggle-button:focus-visible:not(:focus),
|
|
77
|
-
.toggle-button-group .toggle-button[data-focus-visible="true"] {
|
|
76
|
+
.rp-toggle-button-group .rp-toggle-button:focus-visible:not(:focus),
|
|
77
|
+
.rp-toggle-button-group .rp-toggle-button[data-focus-visible="true"] {
|
|
78
78
|
--tw-ring-offset-width: 0px;
|
|
79
79
|
@apply ring-inset;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/* Full width: stretch each toggle button */
|
|
83
|
-
.toggle-button-group--full-width .toggle-button {
|
|
83
|
+
.rp-toggle-button-group--full-width .rp-toggle-button {
|
|
84
84
|
@apply flex-1;
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
Separator (compound component)
|
|
89
89
|
========================================================================== */
|
|
90
90
|
|
|
91
|
-
.toggle-button-group__separator {
|
|
91
|
+
.rp-toggle-button-group__separator {
|
|
92
92
|
@apply rounded-sm bg-current opacity-15;
|
|
93
93
|
position: absolute;
|
|
94
94
|
pointer-events: none;
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
@apply motion-reduce:transition-none;
|
|
98
98
|
|
|
99
99
|
/* Horizontal orientation - vertical divider */
|
|
100
|
-
.toggle-button-group--horizontal & {
|
|
100
|
+
.rp-toggle-button-group--horizontal & {
|
|
101
101
|
inset-inline-start: -1px;
|
|
102
102
|
top: 25%;
|
|
103
103
|
width: 1px;
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
/* Vertical orientation - horizontal divider */
|
|
108
|
-
.toggle-button-group--vertical & {
|
|
108
|
+
.rp-toggle-button-group--vertical & {
|
|
109
109
|
inset-inline-start: 25%;
|
|
110
110
|
top: -1px;
|
|
111
111
|
width: 50%;
|
|
@@ -117,16 +117,16 @@
|
|
|
117
117
|
Detached mode - buttons separated with gaps
|
|
118
118
|
========================================================================== */
|
|
119
119
|
|
|
120
|
-
.toggle-button-group--detached {
|
|
120
|
+
.rp-toggle-button-group--detached {
|
|
121
121
|
@apply gap-1;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/* Restore border radius in detached mode */
|
|
125
|
-
.toggle-button-group--detached .toggle-button {
|
|
125
|
+
.rp-toggle-button-group--detached .rp-toggle-button {
|
|
126
126
|
@apply rounded-component;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/* Hide separators in detached mode */
|
|
130
|
-
.toggle-button-group--detached .toggle-button-group__separator {
|
|
130
|
+
.rp-toggle-button-group--detached .rp-toggle-button-group__separator {
|
|
131
131
|
display: none;
|
|
132
132
|
}
|