@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,34 +1,10 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const labelVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
isInvalid
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
isRequired: {
|
|
10
|
-
true: "label--required";
|
|
11
|
-
};
|
|
12
|
-
}, undefined, "label", {
|
|
13
|
-
isDisabled: {
|
|
14
|
-
true: "label--disabled";
|
|
15
|
-
};
|
|
16
|
-
isInvalid: {
|
|
17
|
-
true: "label--invalid";
|
|
18
|
-
};
|
|
19
|
-
isRequired: {
|
|
20
|
-
true: "label--required";
|
|
21
|
-
};
|
|
22
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
23
|
-
isDisabled: {
|
|
24
|
-
true: "label--disabled";
|
|
25
|
-
};
|
|
26
|
-
isInvalid: {
|
|
27
|
-
true: "label--invalid";
|
|
28
|
-
};
|
|
29
|
-
isRequired: {
|
|
30
|
-
true: "label--required";
|
|
31
|
-
};
|
|
32
|
-
}, undefined>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const labelVariants: (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
|
+
isDisabled?: boolean | undefined;
|
|
6
|
+
isInvalid?: boolean | undefined;
|
|
7
|
+
isRequired?: boolean | undefined;
|
|
8
|
+
}) | undefined) => string;
|
|
33
9
|
export type LabelVariants = VariantProps<typeof labelVariants>;
|
|
34
10
|
//# sourceMappingURL=label.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.styles.d.ts","sourceRoot":"","sources":["../../../src/components/label/label.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"label.styles.d.ts","sourceRoot":"","sources":["../../../src/components/label/label.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,aAAa;;;;;;yBAkBxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/label/label.styles.ts
|
|
3
3
|
const labelVariants = tv({
|
|
4
|
-
base: "label",
|
|
4
|
+
base: "rp-label",
|
|
5
5
|
defaultVariants: {
|
|
6
6
|
isDisabled: false,
|
|
7
7
|
isInvalid: false,
|
|
8
8
|
isRequired: false
|
|
9
9
|
},
|
|
10
10
|
variants: {
|
|
11
|
-
isDisabled: { true: "label--disabled" },
|
|
12
|
-
isInvalid: { true: "label--invalid" },
|
|
13
|
-
isRequired: { true: "label--required" }
|
|
11
|
+
isDisabled: { true: "rp-label--disabled" },
|
|
12
|
+
isInvalid: { true: "rp-label--invalid" },
|
|
13
|
+
isRequired: { true: "rp-label--required" }
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Base label styles */
|
|
2
|
-
.label {
|
|
2
|
+
.rp-label {
|
|
3
3
|
/* Base styling */
|
|
4
4
|
@apply text-sm font-medium;
|
|
5
5
|
|
|
@@ -14,20 +14,20 @@
|
|
|
14
14
|
* to ensure asterisks only appear on atomic form field labels and group labels,
|
|
15
15
|
* not on individual options within those groups
|
|
16
16
|
*/
|
|
17
|
-
.label--required,
|
|
17
|
+
.rp-label--required,
|
|
18
18
|
[data-required="true"]:not([role="group"]):not([role="radiogroup"]):not([role="checkboxgroup"])
|
|
19
|
-
> .label,
|
|
20
|
-
[data-required="true"]:not([data-slot="radio"]):not([data-slot="checkbox"]) > .label {
|
|
19
|
+
> .rp-label,
|
|
20
|
+
[data-required="true"]:not([data-slot="radio"]):not([data-slot="checkbox"]) > .rp-label {
|
|
21
21
|
@apply after:ms-0.5 after:text-danger after:content-['*'];
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.label--disabled,
|
|
25
|
-
[data-disabled="true"] .label {
|
|
24
|
+
.rp-label--disabled,
|
|
25
|
+
[data-disabled="true"] .rp-label {
|
|
26
26
|
@apply status-disabled;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.label--invalid,
|
|
30
|
-
[data-invalid="true"] .label,
|
|
31
|
-
[aria-invalid="true"] .label {
|
|
29
|
+
.rp-label--invalid,
|
|
30
|
+
[data-invalid="true"] .rp-label,
|
|
31
|
+
[aria-invalid="true"] .rp-label {
|
|
32
32
|
color: var(--label-fg-invalid);
|
|
33
33
|
}
|
|
@@ -1,35 +1,14 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const linkVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
base?: import("tailwind-variants").ClassValue;
|
|
13
|
-
icon?: import("tailwind-variants").ClassValue;
|
|
14
|
-
} | import("tailwind-variants").ClassValue;
|
|
15
|
-
};
|
|
16
|
-
} | {}, {
|
|
17
|
-
base: string;
|
|
18
|
-
icon: string;
|
|
19
|
-
}, undefined, {
|
|
20
|
-
[key: string]: {
|
|
21
|
-
[key: string]: {
|
|
22
|
-
base?: import("tailwind-variants").ClassValue;
|
|
23
|
-
icon?: import("tailwind-variants").ClassValue;
|
|
24
|
-
} | import("tailwind-variants").ClassValue;
|
|
25
|
-
};
|
|
26
|
-
} | {}, {
|
|
27
|
-
base: string;
|
|
28
|
-
icon: string;
|
|
29
|
-
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
30
|
-
base: string;
|
|
31
|
-
icon: string;
|
|
32
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const linkVariants: (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
|
+
} & object) | undefined) => {
|
|
5
|
+
base: (props?: ({
|
|
6
|
+
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;
|
|
7
|
+
} & object) | undefined) => string;
|
|
8
|
+
icon: (props?: ({
|
|
9
|
+
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;
|
|
10
|
+
} & object) | undefined) => string;
|
|
11
|
+
};
|
|
33
12
|
type LinkRenderPropsKeys = "isCurrent" | "isHovered" | "isPressed" | "isFocused" | "isFocusVisible" | "isDisabled";
|
|
34
13
|
export type LinkVariants = Omit<VariantProps<typeof linkVariants>, LinkRenderPropsKeys>;
|
|
35
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.styles.d.ts","sourceRoot":"","sources":["../../../src/components/link/link.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"link.styles.d.ts","sourceRoot":"","sources":["../../../src/components/link/link.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,YAAY;;;;;;;;;CAKvB,CAAC;AAGH,KAAK,mBAAmB,GACpB,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,gBAAgB,GAChB,YAAY,CAAC;AAEjB,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,YAAY,CAAC,EAAE,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/link/link.styles.ts
|
|
3
3
|
const linkVariants = tv({ slots: {
|
|
4
|
-
base: "link",
|
|
5
|
-
icon: "link__icon"
|
|
4
|
+
base: "rp-link",
|
|
5
|
+
icon: "rp-link__icon"
|
|
6
6
|
} });
|
|
7
7
|
//#endregion
|
|
8
8
|
export { linkVariants };
|
package/dist/components/link.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Base link styles */
|
|
2
|
-
.link {
|
|
2
|
+
.rp-link {
|
|
3
3
|
@apply relative inline-flex h-fit w-fit items-center rounded-xl font-medium text-link no-underline decoration-[1.5px] underline-offset-4 no-highlight;
|
|
4
4
|
|
|
5
5
|
--link-decoration: var(--separator-tertiary);
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
text-decoration-color: var(--link-decoration-hover);
|
|
28
28
|
|
|
29
|
-
.link__icon {
|
|
29
|
+
.rp-link__icon {
|
|
30
30
|
@apply opacity-100;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
text-decoration-color: var(--link-decoration-pressed);
|
|
41
41
|
|
|
42
|
-
.link__icon {
|
|
42
|
+
.rp-link__icon {
|
|
43
43
|
@apply opacity-100;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
&[data-focus-visible="true"] {
|
|
50
50
|
@apply status-focused;
|
|
51
51
|
|
|
52
|
-
.link__icon {
|
|
52
|
+
.rp-link__icon {
|
|
53
53
|
@apply opacity-100;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
@apply status-disabled;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.link__icon {
|
|
62
|
+
.rp-link__icon {
|
|
63
63
|
@apply pointer-events-none inline-flex size-[0.75em] shrink-0 items-center justify-center text-current opacity-60;
|
|
64
64
|
|
|
65
65
|
transition: opacity 150ms var(--ease-out);
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.link__icon[data-default-icon="true"] {
|
|
73
|
+
.rp-link__icon[data-default-icon="true"] {
|
|
74
74
|
@apply ms-1 pb-1.5;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/* Handle Link with Button Variants */
|
|
78
|
-
&.button {
|
|
78
|
+
&.rp-button {
|
|
79
79
|
@apply gap-0 no-underline;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -1,34 +1,9 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const listboxVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
variant: {
|
|
9
|
-
danger: "list-box--danger";
|
|
10
|
-
default: "list-box--default";
|
|
11
|
-
};
|
|
12
|
-
}, undefined, "list-box", {
|
|
13
|
-
size: {
|
|
14
|
-
lg: "list-box--lg";
|
|
15
|
-
md: "";
|
|
16
|
-
sm: "list-box--sm";
|
|
17
|
-
};
|
|
18
|
-
variant: {
|
|
19
|
-
danger: "list-box--danger";
|
|
20
|
-
default: "list-box--default";
|
|
21
|
-
};
|
|
22
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
23
|
-
size: {
|
|
24
|
-
lg: "list-box--lg";
|
|
25
|
-
md: "";
|
|
26
|
-
sm: "list-box--sm";
|
|
27
|
-
};
|
|
28
|
-
variant: {
|
|
29
|
-
danger: "list-box--danger";
|
|
30
|
-
default: "list-box--default";
|
|
31
|
-
};
|
|
32
|
-
}, undefined>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const listboxVariants: (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
|
+
variant?: "danger" | "default" | undefined;
|
|
7
|
+
}) | undefined) => string;
|
|
33
8
|
export type ListBoxVariants = VariantProps<typeof listboxVariants>;
|
|
34
9
|
//# sourceMappingURL=list-box.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-box.styles.d.ts","sourceRoot":"","sources":["../../../src/components/list-box/list-box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"list-box.styles.d.ts","sourceRoot":"","sources":["../../../src/components/list-box/list-box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,eAAe;;;;;yBAiB1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/list-box/list-box.styles.ts
|
|
3
3
|
const listboxVariants = tv({
|
|
4
|
-
base: "list-box",
|
|
4
|
+
base: "rp-list-box",
|
|
5
5
|
defaultVariants: {
|
|
6
6
|
size: "md",
|
|
7
7
|
variant: "default"
|
|
8
8
|
},
|
|
9
9
|
variants: {
|
|
10
10
|
size: {
|
|
11
|
-
lg: "list-box--lg",
|
|
11
|
+
lg: "rp-list-box--lg",
|
|
12
12
|
md: "",
|
|
13
|
-
sm: "list-box--sm"
|
|
13
|
+
sm: "rp-list-box--sm"
|
|
14
14
|
},
|
|
15
15
|
variant: {
|
|
16
|
-
danger: "list-box--danger",
|
|
17
|
-
default: "list-box--default"
|
|
16
|
+
danger: "rp-list-box--danger",
|
|
17
|
+
default: "rp-list-box--default"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
});
|
|
@@ -1,40 +1,19 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const listboxItemVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
default: {
|
|
20
|
-
item: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}, {
|
|
24
|
-
indicator: string;
|
|
25
|
-
item: string;
|
|
26
|
-
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
27
|
-
variant: {
|
|
28
|
-
danger: {
|
|
29
|
-
item: string;
|
|
30
|
-
};
|
|
31
|
-
default: {
|
|
32
|
-
item: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
}, {
|
|
36
|
-
indicator: string;
|
|
37
|
-
item: string;
|
|
38
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const listboxItemVariants: (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?: "danger" | "default" | undefined;
|
|
6
|
+
}) | undefined) => {
|
|
7
|
+
indicator: (props?: ({
|
|
8
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
variant?: "danger" | "default" | undefined;
|
|
11
|
+
}) | undefined) => string;
|
|
12
|
+
item: (props?: ({
|
|
13
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
variant?: "danger" | "default" | undefined;
|
|
16
|
+
}) | undefined) => string;
|
|
17
|
+
};
|
|
39
18
|
export type ListBoxItemVariants = VariantProps<typeof listboxItemVariants>;
|
|
40
19
|
//# sourceMappingURL=list-box-item.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-box-item.styles.d.ts","sourceRoot":"","sources":["../../../src/components/list-box-item/list-box-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"list-box-item.styles.d.ts","sourceRoot":"","sources":["../../../src/components/list-box-item/list-box-item.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/list-box-item/list-box-item.styles.ts
|
|
3
3
|
const listboxItemVariants = tv({
|
|
4
4
|
defaultVariants: { variant: "default" },
|
|
5
5
|
slots: {
|
|
6
|
-
indicator: "list-box-item__indicator",
|
|
7
|
-
item: "list-box-item"
|
|
6
|
+
indicator: "rp-list-box-item__indicator",
|
|
7
|
+
item: "rp-list-box-item"
|
|
8
8
|
},
|
|
9
9
|
variants: { variant: {
|
|
10
|
-
danger: { item: "list-box-item--danger" },
|
|
11
|
-
default: { item: "list-box-item--default" }
|
|
10
|
+
danger: { item: "rp-list-box-item--danger" },
|
|
11
|
+
default: { item: "rp-list-box-item--default" }
|
|
12
12
|
} }
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Base list-box item styles
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
|
-
.list-box-item {
|
|
5
|
+
.rp-list-box-item {
|
|
6
6
|
@apply relative flex min-h-9 w-full items-center justify-start gap-3 px-2 py-1.5 outline-none no-highlight;
|
|
7
7
|
|
|
8
8
|
border-radius: min(32px, var(--component-radius));
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
|
|
27
27
|
/* Room for the checkmark, only while it is drawn. The repeated attribute is what outranks the
|
|
28
28
|
* `px` the picker popovers reset on this same item. */
|
|
29
|
-
&[data-slot="list-box-item"][aria-selected="true"]:has(.list-box-item__indicator),
|
|
30
|
-
&[data-slot="list-box-item"][data-selected="true"]:has(.list-box-item__indicator) {
|
|
29
|
+
&[data-slot="list-box-item"][aria-selected="true"]:has(.rp-list-box-item__indicator),
|
|
30
|
+
&[data-slot="list-box-item"][data-selected="true"]:has(.rp-list-box-item__indicator) {
|
|
31
31
|
@apply pe-7;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
List-box item indicator
|
|
72
72
|
========================================================================== */
|
|
73
73
|
|
|
74
|
-
.list-box-item__indicator {
|
|
74
|
+
.rp-list-box-item__indicator {
|
|
75
75
|
@apply absolute end-2 top-1/2 flex size-4 shrink-0 -translate-y-1/2 items-center justify-center text-default-foreground;
|
|
76
76
|
|
|
77
77
|
/**
|
|
@@ -89,20 +89,20 @@
|
|
|
89
89
|
@apply transition-all duration-300 motion-reduce:transition-none;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
.list-box-item[aria-selected="true"] [data-slot="list-box-item-indicator--checkmark"],
|
|
93
|
-
.list-box-item[data-selected="true"] [data-slot="list-box-item-indicator--checkmark"] {
|
|
92
|
+
.rp-list-box-item[aria-selected="true"] [data-slot="list-box-item-indicator--checkmark"],
|
|
93
|
+
.rp-list-box-item[data-selected="true"] [data-slot="list-box-item-indicator--checkmark"] {
|
|
94
94
|
transition: stroke-dashoffset 250ms linear;
|
|
95
95
|
@apply motion-reduce:transition-none;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/* Default variant */
|
|
100
|
-
.list-box-item--default {
|
|
100
|
+
.rp-list-box-item--default {
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
/* Danger variant */
|
|
104
|
-
.list-box-item--danger {
|
|
105
|
-
.list-box-item__indicator {
|
|
104
|
+
.rp-list-box-item--danger {
|
|
105
|
+
.rp-list-box-item__indicator {
|
|
106
106
|
@apply text-danger;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const listboxSectionVariants:
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const listboxSectionVariants: (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
|
+
} & object) | undefined) => string;
|
|
3
5
|
export type ListBoxSectionVariants = VariantProps<typeof listboxSectionVariants>;
|
|
4
6
|
//# sourceMappingURL=list-box-section.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-box-section.styles.d.ts","sourceRoot":"","sources":["../../../src/components/list-box-section/list-box-section.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"list-box-section.styles.d.ts","sourceRoot":"","sources":["../../../src/components/list-box-section/list-box-section.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,sBAAsB;;kCAEjC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/list-box-section/list-box-section.styles.ts
|
|
3
|
-
const listboxSectionVariants = tv({ base: "list-box-section" });
|
|
3
|
+
const listboxSectionVariants = tv({ base: "rp-list-box-section" });
|
|
4
4
|
//#endregion
|
|
5
5
|
export { listboxSectionVariants };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Base list-box styles
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
|
-
.list-box {
|
|
5
|
+
.rp-list-box {
|
|
6
6
|
@apply relative w-full overflow-clip p-1;
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -24,18 +24,68 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/* ==========================================================================
|
|
28
|
+
Drop indicator — the gap between two options a drop would land in.
|
|
29
|
+
Styled here rather than left to the caller because a windowed list box
|
|
30
|
+
renders its own, one per option it has laid out, which markup in the item
|
|
31
|
+
slot cannot reach.
|
|
32
|
+
========================================================================== */
|
|
33
|
+
|
|
34
|
+
.rp-list-box__drop-indicator {
|
|
35
|
+
--list-box-drop-indicator-size: 2px;
|
|
36
|
+
--list-box-drop-indicator-bg: var(--accent);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Windowed: the parent is the layout's own wrapper, which has already placed a band straddling
|
|
40
|
+
the boundary and outside the flow, so the indicator only has to fill it. */
|
|
41
|
+
:not(.rp-list-box) > .rp-list-box__drop-indicator {
|
|
42
|
+
height: var(--list-box-drop-indicator-size);
|
|
43
|
+
|
|
44
|
+
&[data-drop-target="true"] {
|
|
45
|
+
background-color: var(--list-box-drop-indicator-bg);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* In flow, as a direct child of the list, the gap has to cost nothing: an option that steps down
|
|
50
|
+
when the line arrives and back up when it moves on makes the whole list walk under the drag.
|
|
51
|
+
So it takes no height, and it stands *in* the spacing the list already leaves rather than
|
|
52
|
+
adding more — the option after it gives up the margin this one just took. */
|
|
53
|
+
.rp-list-box > .rp-list-box__drop-indicator {
|
|
54
|
+
position: relative;
|
|
55
|
+
height: 0;
|
|
56
|
+
|
|
57
|
+
/* On the edge of the option it stands before, which is where the windowed layout puts it. */
|
|
58
|
+
&[data-drop-target="true"]::after {
|
|
59
|
+
content: "";
|
|
60
|
+
position: absolute;
|
|
61
|
+
inset-inline: 0;
|
|
62
|
+
top: calc(var(--list-box-drop-indicator-size) / -2);
|
|
63
|
+
height: var(--list-box-drop-indicator-size);
|
|
64
|
+
background-color: var(--list-box-drop-indicator-bg);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Nothing follows the last one, so there is no spacing for it to stand in. */
|
|
68
|
+
&:last-child {
|
|
69
|
+
margin-top: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.rp-list-box > .rp-list-box__drop-indicator + * {
|
|
74
|
+
margin-top: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
27
77
|
/* ==========================================================================
|
|
28
78
|
Size variants
|
|
29
79
|
========================================================================== */
|
|
30
80
|
|
|
31
81
|
/* A row is as tall as a field of the same size, so a collection standing beside one lines up. */
|
|
32
|
-
.list-box--sm {
|
|
82
|
+
.rp-list-box--sm {
|
|
33
83
|
[data-slot="list-box-item"] {
|
|
34
84
|
@apply min-h-8 py-1;
|
|
35
85
|
}
|
|
36
86
|
}
|
|
37
87
|
|
|
38
|
-
.list-box--lg {
|
|
88
|
+
.rp-list-box--lg {
|
|
39
89
|
@apply text-base;
|
|
40
90
|
|
|
41
91
|
[data-slot="list-box-item"] {
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const menuVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
}, undefined, "menu", {
|
|
9
|
-
size: {
|
|
10
|
-
lg: "menu--lg";
|
|
11
|
-
md: "";
|
|
12
|
-
sm: "menu--sm";
|
|
13
|
-
};
|
|
14
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
15
|
-
size: {
|
|
16
|
-
lg: "menu--lg";
|
|
17
|
-
md: "";
|
|
18
|
-
sm: "menu--sm";
|
|
19
|
-
};
|
|
20
|
-
}, undefined>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const menuVariants: (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) => string;
|
|
21
7
|
export type MenuVariants = VariantProps<typeof menuVariants>;
|
|
22
8
|
//# sourceMappingURL=menu.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.styles.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"menu.styles.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,YAAY;;;;yBAYvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/menu/menu.styles.ts
|
|
3
3
|
const menuVariants = tv({
|
|
4
|
-
base: "menu",
|
|
4
|
+
base: "rp-menu",
|
|
5
5
|
defaultVariants: { size: "md" },
|
|
6
6
|
variants: { size: {
|
|
7
|
-
lg: "menu--lg",
|
|
7
|
+
lg: "rp-menu--lg",
|
|
8
8
|
md: "",
|
|
9
|
-
sm: "menu--sm"
|
|
9
|
+
sm: "rp-menu--sm"
|
|
10
10
|
} }
|
|
11
11
|
});
|
|
12
12
|
//#endregion
|