@ropav/styles 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +111 -15
- package/dist/components/accordion/accordion.styles.d.ts +47 -50
- package/dist/components/accordion/accordion.styles.d.ts.map +1 -1
- package/dist/components/accordion/accordion.styles.js +10 -10
- package/dist/components/accordion.css +16 -24
- package/dist/components/alert/alert.styles.d.ts +32 -74
- package/dist/components/alert/alert.styles.d.ts.map +1 -1
- package/dist/components/alert/alert.styles.js +11 -11
- package/dist/components/alert-dialog/alert-dialog.styles.d.ts +79 -173
- package/dist/components/alert-dialog/alert-dialog.styles.d.ts.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.styles.js +24 -24
- package/dist/components/alert-dialog.css +27 -39
- package/dist/components/alert.css +15 -15
- package/dist/components/autocomplete/autocomplete.styles.d.ts +58 -107
- package/dist/components/autocomplete/autocomplete.styles.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete.styles.js +16 -16
- package/dist/components/autocomplete.css +43 -53
- package/dist/components/avatar/avatar.styles.d.ts +30 -119
- package/dist/components/avatar/avatar.styles.d.ts.map +1 -1
- package/dist/components/avatar/avatar.styles.js +13 -13
- package/dist/components/avatar.css +18 -18
- package/dist/components/badge/badge.styles.d.ts +34 -176
- package/dist/components/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/badge/badge.styles.js +19 -19
- package/dist/components/badge.css +28 -28
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +17 -44
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +5 -5
- package/dist/components/breadcrumbs.css +13 -6
- package/dist/components/button/button.styles.d.ts +9 -68
- package/dist/components/button/button.styles.d.ts.map +1 -1
- package/dist/components/button/button.styles.js +14 -14
- package/dist/components/button-group/button-group.styles.d.ts +20 -56
- package/dist/components/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/button-group/button-group.styles.js +6 -6
- package/dist/components/button-group.css +24 -28
- package/dist/components/button.css +19 -23
- package/dist/components/calendar/calendar.styles.d.ts +41 -77
- package/dist/components/calendar/calendar.styles.d.ts.map +1 -1
- package/dist/components/calendar/calendar.styles.js +13 -13
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.d.ts +20 -50
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.d.ts.map +1 -1
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.js +6 -6
- package/dist/components/calendar-year-picker.css +36 -23
- package/dist/components/calendar.css +68 -43
- package/dist/components/card/card.styles.d.ts +37 -68
- package/dist/components/card/card.styles.d.ts.map +1 -1
- package/dist/components/card/card.styles.js +11 -11
- package/dist/components/card.css +10 -10
- package/dist/components/checkbox/checkbox.styles.d.ts +27 -44
- package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.styles.js +7 -7
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +6 -17
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts.map +1 -1
- package/dist/components/checkbox-group/checkbox-group.styles.js +4 -4
- package/dist/components/checkbox-group.css +1 -1
- package/dist/components/checkbox.css +87 -88
- package/dist/components/chip/chip.styles.d.ts +23 -140
- package/dist/components/chip/chip.styles.d.ts.map +1 -1
- package/dist/components/chip/chip.styles.js +15 -15
- package/dist/components/chip.css +26 -24
- package/dist/components/close-button/close-button.styles.d.ts +6 -14
- package/dist/components/close-button/close-button.styles.d.ts.map +1 -1
- package/dist/components/close-button/close-button.styles.js +3 -3
- package/dist/components/close-button.css +9 -8
- package/dist/components/color-area/color-area.styles.d.ts +17 -32
- package/dist/components/color-area/color-area.styles.d.ts.map +1 -1
- package/dist/components/color-area/color-area.styles.js +4 -4
- package/dist/components/color-area.css +9 -9
- package/dist/components/color-field/color-field.styles.d.ts +6 -17
- package/dist/components/color-field/color-field.styles.d.ts.map +1 -1
- package/dist/components/color-field/color-field.styles.js +3 -3
- package/dist/components/color-field.css +2 -2
- package/dist/components/color-input-group/color-input-group.styles.d.ts +37 -89
- package/dist/components/color-input-group/color-input-group.styles.d.ts.map +1 -1
- package/dist/components/color-input-group/color-input-group.styles.js +10 -10
- package/dist/components/color-input-group.css +23 -40
- package/dist/components/color-picker/color-picker.styles.d.ts +14 -38
- package/dist/components/color-picker/color-picker.styles.d.ts.map +1 -1
- package/dist/components/color-picker/color-picker.styles.js +4 -4
- package/dist/components/color-picker.css +4 -8
- package/dist/components/color-slider/color-slider.styles.d.ts +17 -44
- package/dist/components/color-slider/color-slider.styles.d.ts.map +1 -1
- package/dist/components/color-slider/color-slider.styles.js +5 -5
- package/dist/components/color-slider.css +30 -28
- package/dist/components/color-swatch/color-swatch.styles.d.ts +7 -38
- package/dist/components/color-swatch/color-swatch.styles.d.ts.map +1 -1
- package/dist/components/color-swatch/color-swatch.styles.js +9 -9
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.d.ts +37 -119
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.d.ts.map +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.js +14 -14
- package/dist/components/color-swatch-picker.css +21 -104
- package/dist/components/color-swatch.css +13 -13
- package/dist/components/combo-box/combo-box.styles.d.ts +38 -71
- package/dist/components/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/combo-box/combo-box.styles.js +10 -10
- package/dist/components/combo-box.css +23 -13
- package/dist/components/date-field/date-field.styles.d.ts +6 -17
- package/dist/components/date-field/date-field.styles.d.ts.map +1 -1
- package/dist/components/date-field/date-field.styles.js +3 -3
- package/dist/components/date-field.css +2 -2
- package/dist/components/date-input-group/date-input-group.styles.d.ts +51 -95
- package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -1
- package/dist/components/date-input-group/date-input-group.styles.js +12 -12
- package/dist/components/date-input-group.css +50 -48
- package/dist/components/date-picker/date-picker.styles.d.ts +17 -44
- package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.styles.js +5 -5
- package/dist/components/date-picker.css +9 -13
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts +20 -50
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.styles.js +6 -6
- package/dist/components/date-range-picker.css +10 -14
- package/dist/components/description/description.styles.d.ts +4 -2
- package/dist/components/description/description.styles.d.ts.map +1 -1
- package/dist/components/description/description.styles.js +2 -2
- package/dist/components/description.css +1 -1
- package/dist/components/disclosure/disclosure.styles.d.ts +26 -26
- package/dist/components/disclosure/disclosure.styles.d.ts.map +1 -1
- package/dist/components/disclosure/disclosure.styles.js +8 -8
- package/dist/components/disclosure-group/disclosure-group.styles.d.ts +8 -8
- package/dist/components/disclosure-group/disclosure-group.styles.d.ts.map +1 -1
- package/dist/components/disclosure-group/disclosure-group.styles.js +2 -2
- package/dist/components/disclosure-group.css +1 -1
- package/dist/components/disclosure.css +6 -10
- package/dist/components/drawer/drawer.styles.d.ts +68 -125
- package/dist/components/drawer/drawer.styles.d.ts.map +1 -1
- package/dist/components/drawer/drawer.styles.js +22 -22
- package/dist/components/drawer.css +41 -45
- package/dist/components/drop-zone/drop-zone.styles.d.ts +13 -0
- package/dist/components/drop-zone/drop-zone.styles.d.ts.map +1 -0
- package/dist/components/drop-zone/drop-zone.styles.js +8 -0
- package/dist/components/drop-zone/index.d.ts +2 -0
- package/dist/components/drop-zone/index.d.ts.map +1 -0
- package/dist/components/drop-zone/index.js +2 -0
- package/dist/components/drop-zone.css +78 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +17 -44
- package/dist/components/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.styles.js +5 -5
- package/dist/components/dropdown.css +13 -15
- package/dist/components/empty-state/empty-state.styles.d.ts +4 -2
- package/dist/components/empty-state/empty-state.styles.d.ts.map +1 -1
- package/dist/components/empty-state/empty-state.styles.js +2 -2
- package/dist/components/empty-state.css +1 -1
- package/dist/components/error-message/error-message.styles.d.ts +4 -2
- package/dist/components/error-message/error-message.styles.d.ts.map +1 -1
- package/dist/components/error-message/error-message.styles.js +2 -2
- package/dist/components/error-message.css +1 -5
- package/dist/components/field-error/field-error.styles.d.ts +4 -2
- package/dist/components/field-error/field-error.styles.d.ts.map +1 -1
- package/dist/components/field-error/field-error.styles.js +2 -2
- package/dist/components/field-error.css +7 -11
- package/dist/components/fieldset/fieldset.styles.d.ts +20 -50
- package/dist/components/fieldset/fieldset.styles.d.ts.map +1 -1
- package/dist/components/fieldset/fieldset.styles.js +6 -6
- package/dist/components/fieldset.css +4 -4
- package/dist/components/header/header.styles.d.ts +3 -1
- package/dist/components/header/header.styles.d.ts.map +1 -1
- package/dist/components/header/header.styles.js +2 -2
- package/dist/components/header.css +1 -1
- package/dist/components/index.css +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/input/input.styles.d.ts +8 -44
- package/dist/components/input/input.styles.d.ts.map +1 -1
- package/dist/components/input/input.styles.js +7 -7
- package/dist/components/input-group/input-group.styles.d.ts +37 -89
- package/dist/components/input-group/input-group.styles.d.ts.map +1 -1
- package/dist/components/input-group/input-group.styles.js +10 -10
- package/dist/components/input-group.css +29 -54
- package/dist/components/input-otp/input-otp.styles.d.ts +42 -53
- package/dist/components/input-otp/input-otp.styles.d.ts.map +1 -1
- package/dist/components/input-otp/input-otp.styles.js +10 -10
- package/dist/components/input-otp.css +24 -36
- package/dist/components/input.css +17 -38
- package/dist/components/kbd/kbd.styles.d.ts +22 -29
- package/dist/components/kbd/kbd.styles.d.ts.map +1 -1
- package/dist/components/kbd/kbd.styles.js +6 -6
- package/dist/components/kbd.css +7 -5
- package/dist/components/label/label.styles.d.ts +8 -32
- package/dist/components/label/label.styles.d.ts.map +1 -1
- package/dist/components/label/label.styles.js +5 -5
- package/dist/components/label.css +16 -11
- package/dist/components/link/link.styles.d.ts +11 -32
- package/dist/components/link/link.styles.d.ts.map +1 -1
- package/dist/components/link/link.styles.js +3 -3
- package/dist/components/link.css +20 -18
- package/dist/components/list-box/list-box.styles.d.ts +7 -32
- package/dist/components/list-box/list-box.styles.d.ts.map +1 -1
- package/dist/components/list-box/list-box.styles.js +6 -6
- package/dist/components/list-box-item/list-box-item.styles.d.ts +17 -38
- package/dist/components/list-box-item/list-box-item.styles.d.ts.map +1 -1
- package/dist/components/list-box-item/list-box-item.styles.js +5 -5
- package/dist/components/list-box-item.css +13 -19
- package/dist/components/list-box-section/list-box-section.styles.d.ts +4 -2
- package/dist/components/list-box-section/list-box-section.styles.d.ts.map +1 -1
- package/dist/components/list-box-section/list-box-section.styles.js +2 -2
- package/dist/components/list-box-section.css +1 -1
- package/dist/components/list-box.css +53 -3
- package/dist/components/menu/menu.styles.d.ts +6 -20
- package/dist/components/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/menu/menu.styles.js +4 -4
- package/dist/components/menu-item/menu-item.styles.d.ts +22 -41
- package/dist/components/menu-item/menu-item.styles.d.ts.map +1 -1
- package/dist/components/menu-item/menu-item.styles.js +6 -6
- package/dist/components/menu-item.css +15 -21
- package/dist/components/menu-section/menu-section.styles.d.ts +4 -2
- package/dist/components/menu-section/menu-section.styles.d.ts.map +1 -1
- package/dist/components/menu-section/menu-section.styles.js +2 -2
- package/dist/components/menu-section.css +1 -1
- package/dist/components/menu.css +4 -4
- package/dist/components/meter/meter.styles.d.ts +32 -104
- package/dist/components/meter/meter.styles.d.ts.map +1 -1
- package/dist/components/meter/meter.styles.js +13 -13
- package/dist/components/meter.css +22 -30
- package/dist/components/modal/modal.styles.d.ts +79 -167
- package/dist/components/modal/modal.styles.d.ts.map +1 -1
- package/dist/components/modal/modal.styles.js +26 -26
- package/dist/components/modal.css +30 -42
- package/dist/components/number-field/number-field.styles.d.ts +44 -95
- package/dist/components/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/number-field/number-field.styles.js +12 -12
- package/dist/components/number-field.css +47 -59
- package/dist/components/pagination/pagination.styles.d.ts +44 -59
- package/dist/components/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/pagination/pagination.styles.js +19 -12
- package/dist/components/pagination.css +18 -22
- package/dist/components/popover/popover.styles.d.ts +17 -44
- package/dist/components/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/popover/popover.styles.js +5 -5
- package/dist/components/popover.css +4 -8
- package/dist/components/progress-bar/progress-bar.styles.d.ts +42 -104
- package/dist/components/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/progress-bar/progress-bar.styles.js +23 -13
- package/dist/components/progress-bar.css +97 -31
- package/dist/components/progress-circle/progress-circle.styles.d.ts +32 -104
- package/dist/components/progress-circle/progress-circle.styles.d.ts.map +1 -1
- package/dist/components/progress-circle/progress-circle.styles.js +13 -13
- package/dist/components/progress-circle.css +17 -21
- package/dist/components/radio/radio.styles.d.ts +17 -44
- package/dist/components/radio/radio.styles.d.ts.map +1 -1
- package/dist/components/radio/radio.styles.js +5 -5
- package/dist/components/radio-group/radio-group.styles.d.ts +6 -17
- package/dist/components/radio-group/radio-group.styles.d.ts.map +1 -1
- package/dist/components/radio-group/radio-group.styles.js +4 -4
- package/dist/components/radio-group.css +8 -8
- package/dist/components/radio.css +46 -48
- package/dist/components/range-calendar/range-calendar.styles.d.ts +44 -77
- package/dist/components/range-calendar/range-calendar.styles.d.ts.map +1 -1
- package/dist/components/range-calendar/range-calendar.styles.js +15 -13
- package/dist/components/range-calendar.css +111 -69
- package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts +16 -68
- package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts.map +1 -1
- package/dist/components/scroll-shadow/scroll-shadow.styles.js +6 -6
- package/dist/components/scroll-shadow.css +6 -6
- package/dist/components/search-field/search-field.styles.d.ts +44 -95
- package/dist/components/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/search-field/search-field.styles.js +12 -12
- package/dist/components/search-field.css +29 -46
- package/dist/components/segmented-control/segmented-control.styles.d.ts +32 -71
- package/dist/components/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.styles.js +9 -9
- package/dist/components/segmented-control.css +26 -31
- package/dist/components/select/select.styles.d.ts +44 -101
- package/dist/components/select/select.styles.d.ts.map +1 -1
- package/dist/components/select/select.styles.js +14 -14
- package/dist/components/select.css +33 -47
- package/dist/components/separator/separator.styles.d.ts +7 -32
- package/dist/components/separator/separator.styles.d.ts.map +1 -1
- package/dist/components/separator/separator.styles.js +7 -7
- package/dist/components/separator.css +13 -13
- package/dist/components/sidebar/sidebar.styles.d.ts +222 -188
- package/dist/components/sidebar/sidebar.styles.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.styles.js +45 -32
- package/dist/components/sidebar.css +180 -80
- package/dist/components/skeleton/skeleton.styles.d.ts +12 -26
- package/dist/components/skeleton/skeleton.styles.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.styles.js +5 -5
- package/dist/components/skeleton.css +6 -6
- package/dist/components/slider/slider.styles.d.ts +23 -56
- package/dist/components/slider/slider.styles.d.ts.map +1 -1
- package/dist/components/slider/slider.styles.js +7 -7
- package/dist/components/slider.css +24 -25
- package/dist/components/spinner/spinner.styles.d.ts +7 -44
- package/dist/components/spinner/spinner.styles.d.ts.map +1 -1
- package/dist/components/spinner/spinner.styles.js +11 -11
- package/dist/components/spinner.css +10 -10
- package/dist/components/splitter/splitter.styles.d.ts +32 -59
- package/dist/components/splitter/splitter.styles.d.ts.map +1 -1
- package/dist/components/splitter/splitter.styles.js +12 -12
- package/dist/components/splitter.css +64 -56
- package/dist/components/surface/surface.styles.d.ts +6 -23
- package/dist/components/surface/surface.styles.d.ts.map +1 -1
- package/dist/components/surface/surface.styles.js +6 -6
- package/dist/components/surface.css +5 -5
- package/dist/components/switch/switch.styles.d.ts +32 -56
- package/dist/components/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/switch/switch.styles.js +9 -9
- package/dist/components/switch-group/switch-group.styles.d.ts +17 -38
- package/dist/components/switch-group/switch-group.styles.d.ts.map +1 -1
- package/dist/components/switch-group/switch-group.styles.js +5 -5
- package/dist/components/switch-group.css +4 -4
- package/dist/components/switch.css +68 -67
- package/dist/components/table/table.styles.d.ts +87 -77
- package/dist/components/table/table.styles.d.ts.map +1 -1
- package/dist/components/table/table.styles.js +20 -18
- package/dist/components/table.css +177 -86
- package/dist/components/tabs/tabs.styles.d.ts +57 -56
- package/dist/components/tabs/tabs.styles.d.ts.map +1 -1
- package/dist/components/tabs/tabs.styles.js +12 -12
- package/dist/components/tabs.css +41 -52
- package/dist/components/tag/tag.styles.d.ts +20 -71
- package/dist/components/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/tag/tag.styles.js +8 -8
- package/dist/components/tag-group/tag-group.styles.d.ts +11 -32
- package/dist/components/tag-group/tag-group.styles.d.ts.map +1 -1
- package/dist/components/tag-group/tag-group.styles.js +3 -3
- package/dist/components/tag-group.css +6 -6
- package/dist/components/tag.css +43 -35
- package/dist/components/textarea/textarea.styles.d.ts +8 -44
- package/dist/components/textarea/textarea.styles.d.ts.map +1 -1
- package/dist/components/textarea/textarea.styles.js +7 -7
- package/dist/components/textarea.css +17 -38
- package/dist/components/textfield/textfield.styles.d.ts +6 -17
- package/dist/components/textfield/textfield.styles.d.ts.map +1 -1
- package/dist/components/textfield/textfield.styles.js +3 -3
- package/dist/components/textfield.css +2 -2
- package/dist/components/time-field/time-field.styles.d.ts +6 -17
- package/dist/components/time-field/time-field.styles.d.ts.map +1 -1
- package/dist/components/time-field/time-field.styles.js +3 -3
- package/dist/components/time-field.css +2 -2
- package/dist/components/toast/toast.styles.d.ts +56 -161
- package/dist/components/toast/toast.styles.d.ts.map +1 -1
- package/dist/components/toast/toast.styles.js +26 -26
- package/dist/components/toast.css +58 -56
- package/dist/components/toggle-button/toggle-button.styles.d.ts +8 -41
- package/dist/components/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/toggle-button/toggle-button.styles.js +8 -8
- package/dist/components/toggle-button-group/toggle-button-group.styles.d.ts +23 -74
- package/dist/components/toggle-button-group/toggle-button-group.styles.d.ts.map +1 -1
- package/dist/components/toggle-button-group/toggle-button-group.styles.js +7 -7
- package/dist/components/toggle-button-group.css +22 -26
- package/dist/components/toggle-button.css +11 -15
- package/dist/components/toolbar/toolbar.styles.d.ts +7 -26
- package/dist/components/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.styles.js +5 -5
- package/dist/components/toolbar.css +7 -7
- package/dist/components/tooltip/tooltip.styles.d.ts +11 -32
- package/dist/components/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.styles.js +3 -3
- package/dist/components/tooltip.css +2 -6
- package/dist/components/typography/typography.styles.d.ts +29 -107
- package/dist/components/typography/typography.styles.d.ts.map +1 -1
- package/dist/components/typography/typography.styles.js +24 -24
- package/dist/components/typography.css +53 -45
- package/dist/components/virtualizer/virtualizer.styles.d.ts +13 -37
- package/dist/components/virtualizer/virtualizer.styles.d.ts.map +1 -1
- package/dist/components/virtualizer/virtualizer.styles.js +4 -4
- package/dist/components/virtualizer.css +14 -6
- package/dist/core.css +26 -0
- package/dist/index.css +8 -24
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/no-preflight.css +8 -0
- package/dist/ropav.min.css +1 -1
- package/dist/themes/airbnb.css +6 -4
- package/dist/themes/coinbase.css +6 -4
- package/dist/themes/default.css +24 -4
- package/dist/themes/discord.css +6 -4
- package/dist/themes/hero.css +24 -4
- package/dist/themes/lavender.css +6 -4
- package/dist/themes/mint.css +6 -4
- package/dist/themes/netflix.css +6 -4
- package/dist/themes/rabbit.css +6 -4
- package/dist/themes/shared/theme.css +1 -0
- package/dist/themes/sky.css +6 -4
- package/dist/themes/spotify.css +6 -4
- package/dist/themes/uber.css +6 -4
- package/dist/themes.d.ts +12 -0
- package/dist/themes.d.ts.map +1 -0
- package/dist/themes.js +39 -0
- package/dist/tv.d.ts +34 -0
- package/dist/tv.d.ts.map +1 -0
- package/dist/tv.js +21 -0
- package/package.json +5 -3
- package/src/components/accordion/accordion.styles.ts +11 -11
- package/src/components/alert/alert.styles.ts +12 -12
- package/src/components/alert-dialog/alert-dialog.styles.ts +25 -25
- package/src/components/autocomplete/autocomplete.styles.ts +17 -17
- package/src/components/avatar/avatar.styles.ts +14 -14
- package/src/components/badge/badge.styles.ts +20 -20
- package/src/components/breadcrumbs/breadcrumbs.styles.ts +6 -6
- package/src/components/button/button.styles.ts +15 -15
- package/src/components/button-group/button-group.styles.ts +7 -7
- package/src/components/calendar/calendar.styles.ts +14 -14
- package/src/components/calendar-year-picker/calendar-year-picker.styles.ts +7 -7
- package/src/components/card/card.styles.ts +12 -12
- package/src/components/checkbox/checkbox.styles.ts +8 -8
- package/src/components/checkbox-group/checkbox-group.styles.ts +5 -5
- package/src/components/chip/chip.styles.ts +16 -16
- package/src/components/close-button/close-button.styles.ts +4 -4
- package/src/components/color-area/color-area.styles.ts +5 -5
- package/src/components/color-field/color-field.styles.ts +4 -4
- package/src/components/color-input-group/color-input-group.styles.ts +11 -11
- package/src/components/color-picker/color-picker.styles.ts +5 -5
- package/src/components/color-slider/color-slider.styles.ts +6 -6
- package/src/components/color-swatch/color-swatch.styles.ts +10 -10
- package/src/components/color-swatch-picker/color-swatch-picker.styles.ts +15 -15
- package/src/components/combo-box/combo-box.styles.ts +11 -11
- package/src/components/date-field/date-field.styles.ts +4 -4
- package/src/components/date-input-group/date-input-group.styles.ts +13 -13
- package/src/components/date-picker/date-picker.styles.ts +6 -6
- package/src/components/date-range-picker/date-range-picker.styles.ts +7 -7
- package/src/components/description/description.styles.ts +3 -3
- package/src/components/disclosure/disclosure.styles.ts +9 -9
- package/src/components/disclosure-group/disclosure-group.styles.ts +3 -3
- package/src/components/drawer/drawer.styles.ts +23 -23
- package/src/components/drop-zone/drop-zone.styles.ts +12 -0
- package/src/components/drop-zone/index.ts +1 -0
- package/src/components/dropdown/dropdown.styles.ts +6 -6
- package/src/components/empty-state/empty-state.styles.ts +3 -3
- package/src/components/error-message/error-message.styles.ts +3 -3
- package/src/components/field-error/field-error.styles.ts +3 -3
- package/src/components/fieldset/fieldset.styles.ts +7 -7
- package/src/components/header/header.styles.ts +2 -2
- package/src/components/index.ts +1 -0
- package/src/components/input/input.styles.ts +8 -8
- package/src/components/input-group/input-group.styles.ts +11 -11
- package/src/components/input-otp/input-otp.styles.ts +11 -11
- package/src/components/kbd/kbd.styles.ts +7 -7
- package/src/components/label/label.styles.ts +6 -6
- package/src/components/link/link.styles.ts +4 -4
- package/src/components/list-box/list-box.styles.ts +7 -7
- package/src/components/list-box-item/list-box-item.styles.ts +6 -6
- package/src/components/list-box-section/list-box-section.styles.ts +3 -3
- package/src/components/menu/menu.styles.ts +5 -5
- package/src/components/menu-item/menu-item.styles.ts +7 -7
- package/src/components/menu-section/menu-section.styles.ts +3 -3
- package/src/components/meter/meter.styles.ts +14 -14
- package/src/components/modal/modal.styles.ts +27 -27
- package/src/components/number-field/number-field.styles.ts +13 -13
- package/src/components/pagination/pagination.styles.ts +18 -11
- package/src/components/popover/popover.styles.ts +6 -6
- package/src/components/progress-bar/progress-bar.styles.ts +28 -14
- package/src/components/progress-circle/progress-circle.styles.ts +14 -14
- package/src/components/radio/radio.styles.ts +6 -6
- package/src/components/radio-group/radio-group.styles.ts +5 -5
- package/src/components/range-calendar/range-calendar.styles.ts +16 -14
- package/src/components/scroll-shadow/scroll-shadow.styles.ts +7 -7
- package/src/components/search-field/search-field.styles.ts +13 -13
- package/src/components/segmented-control/segmented-control.styles.ts +10 -10
- package/src/components/select/select.styles.ts +15 -15
- package/src/components/separator/separator.styles.ts +8 -8
- package/src/components/sidebar/sidebar.styles.ts +55 -32
- package/src/components/skeleton/skeleton.styles.ts +6 -6
- package/src/components/slider/slider.styles.ts +8 -8
- package/src/components/spinner/spinner.styles.ts +12 -12
- package/src/components/splitter/splitter.styles.ts +13 -13
- package/src/components/surface/surface.styles.ts +7 -7
- package/src/components/switch/switch.styles.ts +10 -10
- package/src/components/switch-group/switch-group.styles.ts +6 -6
- package/src/components/table/table.styles.ts +21 -19
- package/src/components/tabs/tabs.styles.ts +13 -13
- package/src/components/tag/tag.styles.ts +9 -9
- package/src/components/tag-group/tag-group.styles.ts +4 -4
- package/src/components/textarea/textarea.styles.ts +8 -8
- package/src/components/textfield/textfield.styles.ts +4 -4
- package/src/components/time-field/time-field.styles.ts +4 -4
- package/src/components/toast/toast.styles.ts +27 -27
- package/src/components/toggle-button/toggle-button.styles.ts +9 -9
- package/src/components/toggle-button-group/toggle-button-group.styles.ts +8 -8
- package/src/components/toolbar/toolbar.styles.ts +6 -6
- package/src/components/tooltip/tooltip.styles.ts +4 -4
- package/src/components/typography/typography.styles.ts +25 -25
- package/src/components/virtualizer/virtualizer.styles.ts +4 -4
- package/src/index.ts +5 -2
- package/src/themes.ts +40 -0
- package/src/tv.ts +82 -0
|
@@ -6,13 +6,9 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Element: trigger - the element that opens the drawer
|
|
8
8
|
*/
|
|
9
|
-
.drawer__trigger {
|
|
9
|
+
.rp-drawer__trigger {
|
|
10
10
|
@apply inline-block cursor-(--cursor-interactive);
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* Transitions
|
|
14
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
15
|
-
*/
|
|
16
12
|
transition:
|
|
17
13
|
transform 250ms var(--ease-out-quart),
|
|
18
14
|
background-color 150ms var(--ease-smooth),
|
|
@@ -41,7 +37,7 @@
|
|
|
41
37
|
/**
|
|
42
38
|
* Element: backdrop - the overlay behind the drawer
|
|
43
39
|
*/
|
|
44
|
-
.drawer__backdrop {
|
|
40
|
+
.rp-drawer__backdrop {
|
|
45
41
|
@apply fixed inset-0 z-50;
|
|
46
42
|
@apply h-(--visual-viewport-height) w-full;
|
|
47
43
|
opacity: 1;
|
|
@@ -70,28 +66,28 @@
|
|
|
70
66
|
/**
|
|
71
67
|
* Modifier: backdrop--transparent
|
|
72
68
|
*/
|
|
73
|
-
.drawer__backdrop--transparent {
|
|
69
|
+
.rp-drawer__backdrop--transparent {
|
|
74
70
|
@apply bg-transparent;
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
/**
|
|
78
74
|
* Modifier: backdrop--opaque
|
|
79
75
|
*/
|
|
80
|
-
.drawer__backdrop--opaque {
|
|
76
|
+
.rp-drawer__backdrop--opaque {
|
|
81
77
|
@apply bg-backdrop;
|
|
82
78
|
}
|
|
83
79
|
|
|
84
80
|
/**
|
|
85
81
|
* Modifier: backdrop--blur
|
|
86
82
|
*/
|
|
87
|
-
.drawer__backdrop--blur {
|
|
83
|
+
.rp-drawer__backdrop--blur {
|
|
88
84
|
@apply bg-backdrop backdrop-blur-md;
|
|
89
85
|
}
|
|
90
86
|
|
|
91
87
|
/**
|
|
92
88
|
* Element: content - the positioning wrapper for the drawer panel
|
|
93
89
|
*/
|
|
94
|
-
.drawer__content {
|
|
90
|
+
.rp-drawer__content {
|
|
95
91
|
@apply pointer-events-none;
|
|
96
92
|
@apply fixed inset-0 z-50 flex;
|
|
97
93
|
@apply h-(--visual-viewport-height) w-full min-w-0;
|
|
@@ -101,7 +97,7 @@
|
|
|
101
97
|
* Modifier: content--bottom (default)
|
|
102
98
|
* Slides up from the bottom edge
|
|
103
99
|
*/
|
|
104
|
-
.drawer__content--bottom {
|
|
100
|
+
.rp-drawer__content--bottom {
|
|
105
101
|
@apply items-end;
|
|
106
102
|
}
|
|
107
103
|
|
|
@@ -109,7 +105,7 @@
|
|
|
109
105
|
* Modifier: content--top
|
|
110
106
|
* Slides down from the top edge
|
|
111
107
|
*/
|
|
112
|
-
.drawer__content--top {
|
|
108
|
+
.rp-drawer__content--top {
|
|
113
109
|
@apply items-start;
|
|
114
110
|
}
|
|
115
111
|
|
|
@@ -117,7 +113,7 @@
|
|
|
117
113
|
* Modifier: content--left
|
|
118
114
|
* Slides in from the left edge
|
|
119
115
|
*/
|
|
120
|
-
.drawer__content--left {
|
|
116
|
+
.rp-drawer__content--left {
|
|
121
117
|
@apply justify-start;
|
|
122
118
|
}
|
|
123
119
|
|
|
@@ -125,14 +121,14 @@
|
|
|
125
121
|
* Modifier: content--right
|
|
126
122
|
* Slides in from the right edge
|
|
127
123
|
*/
|
|
128
|
-
.drawer__content--right {
|
|
124
|
+
.rp-drawer__content--right {
|
|
129
125
|
@apply justify-end;
|
|
130
126
|
}
|
|
131
127
|
|
|
132
128
|
/**
|
|
133
129
|
* Element: dialog - the drawer panel itself
|
|
134
130
|
*/
|
|
135
|
-
.drawer__dialog {
|
|
131
|
+
.rp-drawer__dialog {
|
|
136
132
|
@apply relative;
|
|
137
133
|
@apply flex flex-col;
|
|
138
134
|
@apply bg-overlay shadow-overlay outline-none;
|
|
@@ -155,15 +151,15 @@
|
|
|
155
151
|
&[data-placement="bottom"] {
|
|
156
152
|
@apply w-full;
|
|
157
153
|
@apply max-h-[85vh];
|
|
158
|
-
border-start-start-radius: min(32px, var(--radius
|
|
159
|
-
border-start-end-radius: min(32px, var(--radius
|
|
154
|
+
border-start-start-radius: min(32px, var(--component-radius));
|
|
155
|
+
border-start-end-radius: min(32px, var(--component-radius));
|
|
160
156
|
}
|
|
161
157
|
|
|
162
158
|
&[data-placement="top"] {
|
|
163
159
|
@apply w-full;
|
|
164
160
|
@apply max-h-[85vh];
|
|
165
|
-
border-end-start-radius: min(32px, var(--radius
|
|
166
|
-
border-end-end-radius: min(32px, var(--radius
|
|
161
|
+
border-end-start-radius: min(32px, var(--component-radius));
|
|
162
|
+
border-end-end-radius: min(32px, var(--component-radius));
|
|
167
163
|
}
|
|
168
164
|
|
|
169
165
|
/* Left/right placement: auto width, full height */
|
|
@@ -178,41 +174,41 @@
|
|
|
178
174
|
}
|
|
179
175
|
}
|
|
180
176
|
|
|
181
|
-
[data-exiting="true"] .drawer__dialog {
|
|
177
|
+
[data-exiting="true"] .rp-drawer__dialog {
|
|
182
178
|
transition-duration: var(--drawer-exit-duration);
|
|
183
179
|
transition-timing-function: var(--drawer-exit-ease);
|
|
184
180
|
}
|
|
185
181
|
|
|
186
|
-
.drawer__content--left .drawer__dialog,
|
|
187
|
-
.drawer__content--right .drawer__dialog,
|
|
188
|
-
.drawer__content--top .drawer__dialog,
|
|
189
|
-
.drawer__content--bottom .drawer__dialog {
|
|
182
|
+
.rp-drawer__content--left .rp-drawer__dialog,
|
|
183
|
+
.rp-drawer__content--right .rp-drawer__dialog,
|
|
184
|
+
.rp-drawer__content--top .rp-drawer__dialog,
|
|
185
|
+
.rp-drawer__content--bottom .rp-drawer__dialog {
|
|
190
186
|
translate: 0 0;
|
|
191
187
|
}
|
|
192
188
|
|
|
193
|
-
.drawer__content--left[data-entering="true"] .drawer__dialog,
|
|
194
|
-
.drawer__content--left[data-exiting="true"] .drawer__dialog {
|
|
189
|
+
.rp-drawer__content--left[data-entering="true"] .rp-drawer__dialog,
|
|
190
|
+
.rp-drawer__content--left[data-exiting="true"] .rp-drawer__dialog {
|
|
195
191
|
translate: -100% 0;
|
|
196
192
|
}
|
|
197
193
|
|
|
198
|
-
.drawer__content--right[data-entering="true"] .drawer__dialog,
|
|
199
|
-
.drawer__content--right[data-exiting="true"] .drawer__dialog {
|
|
194
|
+
.rp-drawer__content--right[data-entering="true"] .rp-drawer__dialog,
|
|
195
|
+
.rp-drawer__content--right[data-exiting="true"] .rp-drawer__dialog {
|
|
200
196
|
translate: 100% 0;
|
|
201
197
|
}
|
|
202
198
|
|
|
203
|
-
.drawer__content--top[data-entering="true"] .drawer__dialog,
|
|
204
|
-
.drawer__content--top[data-exiting="true"] .drawer__dialog {
|
|
199
|
+
.rp-drawer__content--top[data-entering="true"] .rp-drawer__dialog,
|
|
200
|
+
.rp-drawer__content--top[data-exiting="true"] .rp-drawer__dialog {
|
|
205
201
|
translate: 0 -100%;
|
|
206
202
|
}
|
|
207
203
|
|
|
208
|
-
.drawer__content--bottom[data-entering="true"] .drawer__dialog,
|
|
209
|
-
.drawer__content--bottom[data-exiting="true"] .drawer__dialog {
|
|
204
|
+
.rp-drawer__content--bottom[data-entering="true"] .rp-drawer__dialog,
|
|
205
|
+
.rp-drawer__content--bottom[data-exiting="true"] .rp-drawer__dialog {
|
|
210
206
|
translate: 0 100%;
|
|
211
207
|
}
|
|
212
208
|
|
|
213
|
-
.drawer__dialog--top {
|
|
209
|
+
.rp-drawer__dialog--top {
|
|
214
210
|
@apply pb-2;
|
|
215
|
-
.drawer__handle {
|
|
211
|
+
.rp-drawer__handle {
|
|
216
212
|
@apply pb-0;
|
|
217
213
|
}
|
|
218
214
|
}
|
|
@@ -220,7 +216,7 @@
|
|
|
220
216
|
/**
|
|
221
217
|
* Element: header - the top section with the title
|
|
222
218
|
*/
|
|
223
|
-
.drawer__header {
|
|
219
|
+
.rp-drawer__header {
|
|
224
220
|
@apply flex flex-col gap-3;
|
|
225
221
|
@apply mb-0;
|
|
226
222
|
}
|
|
@@ -228,7 +224,7 @@
|
|
|
228
224
|
/**
|
|
229
225
|
* Element: heading - the main title text
|
|
230
226
|
*/
|
|
231
|
-
.drawer__heading {
|
|
227
|
+
.rp-drawer__heading {
|
|
232
228
|
@apply align-middle;
|
|
233
229
|
@apply text-base font-medium text-foreground;
|
|
234
230
|
}
|
|
@@ -237,7 +233,7 @@
|
|
|
237
233
|
* Element: body - the main content area
|
|
238
234
|
* touch-action: pan-y allows vertical scrolling while the dialog captures drag gestures
|
|
239
235
|
*/
|
|
240
|
-
.drawer__body {
|
|
236
|
+
.rp-drawer__body {
|
|
241
237
|
@apply min-h-0 flex-1 scrollbar;
|
|
242
238
|
@apply text-sm leading-[1.43] text-muted;
|
|
243
239
|
@apply -m-[3px] my-0 p-[3px];
|
|
@@ -248,7 +244,7 @@
|
|
|
248
244
|
/**
|
|
249
245
|
* Element: footer - the bottom action section
|
|
250
246
|
*/
|
|
251
|
-
.drawer__footer {
|
|
247
|
+
.rp-drawer__footer {
|
|
252
248
|
@apply flex flex-row items-center justify-end gap-2;
|
|
253
249
|
@apply mt-0;
|
|
254
250
|
}
|
|
@@ -256,7 +252,7 @@
|
|
|
256
252
|
/**
|
|
257
253
|
* Element: handle - visual drag handle indicator
|
|
258
254
|
*/
|
|
259
|
-
.drawer__handle {
|
|
255
|
+
.rp-drawer__handle {
|
|
260
256
|
@apply flex items-center justify-center;
|
|
261
257
|
@apply pb-2;
|
|
262
258
|
|
|
@@ -270,29 +266,29 @@
|
|
|
270
266
|
/**
|
|
271
267
|
* Element: close-trigger - the close button
|
|
272
268
|
*/
|
|
273
|
-
.drawer__close-trigger {
|
|
269
|
+
.rp-drawer__close-trigger {
|
|
274
270
|
@apply absolute end-4 top-4;
|
|
275
271
|
}
|
|
276
272
|
|
|
277
273
|
/**
|
|
278
274
|
* Elements Spacing
|
|
279
275
|
*/
|
|
280
|
-
.drawer__header + .drawer__body {
|
|
276
|
+
.rp-drawer__header + .rp-drawer__body {
|
|
281
277
|
@apply mt-2;
|
|
282
278
|
}
|
|
283
279
|
|
|
284
|
-
.drawer__header + .drawer__footer {
|
|
280
|
+
.rp-drawer__header + .rp-drawer__footer {
|
|
285
281
|
@apply mt-5;
|
|
286
282
|
}
|
|
287
283
|
|
|
288
|
-
.drawer__body + .drawer__footer {
|
|
284
|
+
.rp-drawer__body + .rp-drawer__footer {
|
|
289
285
|
@apply mt-5;
|
|
290
286
|
}
|
|
291
287
|
|
|
292
|
-
.drawer__handle + .drawer__header {
|
|
288
|
+
.rp-drawer__handle + .rp-drawer__header {
|
|
293
289
|
@apply mt-0;
|
|
294
290
|
}
|
|
295
291
|
|
|
296
|
-
.drawer__handle + .drawer__body {
|
|
292
|
+
.rp-drawer__handle + .rp-drawer__body {
|
|
297
293
|
@apply mt-0;
|
|
298
294
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const dropZoneVariants: (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
|
+
trigger: (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
|
+
};
|
|
12
|
+
export type DropZoneVariants = VariantProps<typeof dropZoneVariants>;
|
|
13
|
+
//# sourceMappingURL=drop-zone.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop-zone.styles.d.ts","sourceRoot":"","sources":["../../../src/components/drop-zone/drop-zone.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;;;;;;CAK3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/drop-zone/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* Drop zone component styles */
|
|
2
|
+
|
|
3
|
+
.rp-drop-zone {
|
|
4
|
+
@apply relative flex w-full flex-col items-center justify-center gap-2 rounded-component p-6 text-center text-sm outline-none;
|
|
5
|
+
|
|
6
|
+
/* The dashed edge is this component's whole affordance, so it is painted from `--border`
|
|
7
|
+
* rather than `--field-border`: the default theme sets that to `transparent` with a width of
|
|
8
|
+
* `0`, which is right for an input sitting on a filled background and wrong for a region
|
|
9
|
+
* whose only boundary is the line itself. */
|
|
10
|
+
--drop-zone-border: var(--border);
|
|
11
|
+
--drop-zone-bg: transparent;
|
|
12
|
+
--drop-zone-fg: var(--muted);
|
|
13
|
+
|
|
14
|
+
border: var(--border-width) dashed var(--drop-zone-border);
|
|
15
|
+
background-color: var(--drop-zone-bg);
|
|
16
|
+
color: var(--drop-zone-fg);
|
|
17
|
+
|
|
18
|
+
transition:
|
|
19
|
+
background-color 150ms var(--ease-smooth),
|
|
20
|
+
border-color 150ms var(--ease-smooth);
|
|
21
|
+
@apply motion-reduce:transition-none;
|
|
22
|
+
|
|
23
|
+
@media (hover: hover) {
|
|
24
|
+
&:hover,
|
|
25
|
+
&[data-hovered="true"] {
|
|
26
|
+
--drop-zone-border: var(--field-border-hover);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* The ring is painted for the hidden file input inside, which is what a keyboard focuses. */
|
|
31
|
+
&[data-focus-visible="true"] {
|
|
32
|
+
@apply status-focused;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* A drag the zone would take. Both the line and the fill move, because the fill alone is a
|
|
36
|
+
* ~15% tint that a light theme barely separates from the page. */
|
|
37
|
+
&[data-drop-target="true"] {
|
|
38
|
+
--drop-zone-border: var(--accent);
|
|
39
|
+
--drop-zone-bg: var(--accent-soft);
|
|
40
|
+
--drop-zone-fg: var(--foreground);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* A drag carrying a type `accept` rules out.
|
|
44
|
+
*
|
|
45
|
+
* Accept takes `--accent` to match the one drop state the library already had
|
|
46
|
+
* (`--table-cell-bg-drop-target`), which leaves the two verdicts a hue apart in most themes
|
|
47
|
+
* but nearly together in one whose accent is itself red — measured at hue 28 for both under
|
|
48
|
+
* `netflix`, separated only by lightness. That is a collision only the theme can settle, and
|
|
49
|
+
* the properties above are how: repoint `--drop-zone-border` and `--drop-zone-bg`. */
|
|
50
|
+
&[data-status="reject"] {
|
|
51
|
+
--drop-zone-border: var(--danger);
|
|
52
|
+
--drop-zone-bg: var(--danger-soft);
|
|
53
|
+
--drop-zone-fg: var(--foreground);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Forced Colors Mode forces every colour to a system keyword, so the accent and danger fills
|
|
57
|
+
* above flatten onto the page and the three states become one dashed box. The border is the
|
|
58
|
+
* only channel left that the platform still lets a rule choose, hence the keywords. */
|
|
59
|
+
@media (forced-colors: active) {
|
|
60
|
+
&[data-drop-target="true"] {
|
|
61
|
+
border-color: Highlight;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&[data-status="reject"] {
|
|
65
|
+
border-color: LinkText;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&[data-disabled="true"] {
|
|
70
|
+
@apply status-disabled;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.rp-drop-zone__trigger {
|
|
75
|
+
@apply rounded-field underline underline-offset-2 outline-none;
|
|
76
|
+
|
|
77
|
+
cursor: var(--cursor-interactive);
|
|
78
|
+
}
|
|
@@ -1,46 +1,19 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const dropdownVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} | import("tailwind-variants").ClassValue;
|
|
19
|
-
};
|
|
20
|
-
} | {}, {
|
|
21
|
-
menu: string;
|
|
22
|
-
popover: string;
|
|
23
|
-
root: string;
|
|
24
|
-
trigger: string;
|
|
25
|
-
}, undefined, {
|
|
26
|
-
[key: string]: {
|
|
27
|
-
[key: string]: {
|
|
28
|
-
menu?: import("tailwind-variants").ClassValue;
|
|
29
|
-
popover?: import("tailwind-variants").ClassValue;
|
|
30
|
-
root?: import("tailwind-variants").ClassValue;
|
|
31
|
-
trigger?: import("tailwind-variants").ClassValue;
|
|
32
|
-
} | import("tailwind-variants").ClassValue;
|
|
33
|
-
};
|
|
34
|
-
} | {}, {
|
|
35
|
-
menu: string;
|
|
36
|
-
popover: string;
|
|
37
|
-
root: string;
|
|
38
|
-
trigger: string;
|
|
39
|
-
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
40
|
-
menu: string;
|
|
41
|
-
popover: string;
|
|
42
|
-
root: string;
|
|
43
|
-
trigger: string;
|
|
44
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const dropdownVariants: (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
|
+
menu: (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
|
+
popover: (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
|
+
root: (props?: ({
|
|
12
|
+
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;
|
|
13
|
+
} & object) | undefined) => string;
|
|
14
|
+
trigger: (props?: ({
|
|
15
|
+
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;
|
|
16
|
+
} & object) | undefined) => string;
|
|
17
|
+
};
|
|
45
18
|
export type DropdownVariants = VariantProps<typeof dropdownVariants>;
|
|
46
19
|
//# sourceMappingURL=dropdown.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.styles.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dropdown.styles.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;CAS3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/dropdown/dropdown.styles.ts
|
|
3
3
|
const dropdownVariants = tv({ slots: {
|
|
4
|
-
menu: "menu dropdown__menu",
|
|
5
|
-
popover: "dropdown__popover",
|
|
6
|
-
root: "dropdown",
|
|
7
|
-
trigger: "dropdown__trigger"
|
|
4
|
+
menu: "rp-menu rp-dropdown__menu",
|
|
5
|
+
popover: "rp-dropdown__popover",
|
|
6
|
+
root: "rp-dropdown",
|
|
7
|
+
trigger: "rp-dropdown__trigger"
|
|
8
8
|
} });
|
|
9
9
|
//#endregion
|
|
10
10
|
export { dropdownVariants };
|
|
@@ -2,30 +2,28 @@
|
|
|
2
2
|
Base dropdown styles
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
|
-
.dropdown {
|
|
5
|
+
.rp-dropdown {
|
|
6
6
|
@apply flex flex-col gap-1;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.dropdown__trigger {
|
|
9
|
+
.rp-dropdown__trigger {
|
|
10
10
|
@apply inline-block;
|
|
11
11
|
/* Only visible when using a custom trigger - not passing "Button" as a child - hence we use some button styles (custom trigger) */
|
|
12
12
|
@apply outline-none;
|
|
13
13
|
|
|
14
|
-
/* A custom trigger borrows the button's look by wearing its classes, and the
|
|
15
|
-
* above
|
|
16
|
-
* off. Handed back here rather than on the bare trigger: when a
|
|
17
|
-
* instead, this element is only a wrapper around it
|
|
18
|
-
* around the real one. */
|
|
19
|
-
&.button {
|
|
14
|
+
/* A custom trigger borrows the button's look by wearing its classes, and the declarations
|
|
15
|
+
* above land later in the cascade than the button's own, stripping its centring and its
|
|
16
|
+
* forced-colors edge back off. Handed back here rather than on the bare trigger: when a
|
|
17
|
+
* `Button` is passed as a child instead, this element is only a wrapper around it - an inline
|
|
18
|
+
* box is what that wants, and an outline would draw a second ring around the real one. */
|
|
19
|
+
&.rp-button {
|
|
20
|
+
@apply inline-flex;
|
|
21
|
+
|
|
20
22
|
@media (forced-colors: active) {
|
|
21
23
|
outline: 1px solid ButtonBorder;
|
|
22
24
|
outline-offset: -1px;
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
|
-
/**
|
|
26
|
-
* Transitions
|
|
27
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
28
|
-
*/
|
|
29
27
|
transition:
|
|
30
28
|
transform 250ms var(--ease-out-quart),
|
|
31
29
|
background-color 150ms var(--ease-smooth),
|
|
@@ -60,7 +58,7 @@
|
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
/* Similar to select popover styles */
|
|
63
|
-
.dropdown__popover {
|
|
61
|
+
.rp-dropdown__popover {
|
|
64
62
|
@apply max-w-[48svw] origin-(--trigger-anchor-point) scroll-py-1 scrollbar overflow-y-auto overscroll-contain bg-overlay p-0 text-sm will-change-transform md:min-w-55;
|
|
65
63
|
border-radius: min(32px, var(--component-radius));
|
|
66
64
|
box-shadow: var(--shadow-overlay);
|
|
@@ -121,8 +119,8 @@
|
|
|
121
119
|
rotate: 90deg;
|
|
122
120
|
}
|
|
123
121
|
|
|
124
|
-
/* Menu styles. The block itself is `.menu`; these are the dropdown's departures from it, and
|
|
125
|
-
* they sit here rather than on `.dropdown__menu` because `menu.css` is imported after this file
|
|
122
|
+
/* Menu styles. The block itself is `.rp-menu`; these are the dropdown's departures from it, and
|
|
123
|
+
* they sit here rather than on `.rp-dropdown__menu` because `menu.css` is imported after this file
|
|
126
124
|
* and would otherwise win at equal specificity. */
|
|
127
125
|
[data-slot="dropdown-menu"] {
|
|
128
126
|
@apply gap-0.5 p-1.5 outline-none;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const emptyStateVariants:
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const emptyStateVariants: (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 EmptyStateVariants = VariantProps<typeof emptyStateVariants>;
|
|
4
6
|
//# sourceMappingURL=empty-state.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-state.styles.d.ts","sourceRoot":"","sources":["../../../src/components/empty-state/empty-state.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"empty-state.styles.d.ts","sourceRoot":"","sources":["../../../src/components/empty-state/empty-state.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,kBAAkB;;kCAE7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/empty-state/empty-state.styles.ts
|
|
3
|
-
const emptyStateVariants = tv({ base: "empty-state" });
|
|
3
|
+
const emptyStateVariants = tv({ base: "rp-empty-state" });
|
|
4
4
|
//#endregion
|
|
5
5
|
export { emptyStateVariants };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const errorMessageVariants:
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const errorMessageVariants: (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 ErrorMessageVariants = VariantProps<typeof errorMessageVariants>;
|
|
4
6
|
//# sourceMappingURL=error-message.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-message.styles.d.ts","sourceRoot":"","sources":["../../../src/components/error-message/error-message.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"error-message.styles.d.ts","sourceRoot":"","sources":["../../../src/components/error-message/error-message.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,oBAAoB;;kCAE/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/error-message/error-message.styles.ts
|
|
3
|
-
const errorMessageVariants = tv({ base: "error-message" });
|
|
3
|
+
const errorMessageVariants = tv({ base: "rp-error-message" });
|
|
4
4
|
//#endregion
|
|
5
5
|
export { errorMessageVariants };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
/* Base error message styles */
|
|
2
|
-
.error-message {
|
|
2
|
+
.rp-error-message {
|
|
3
3
|
@apply h-auto text-xs wrap-break-word text-danger;
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Transitions
|
|
7
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
8
|
-
*/
|
|
9
5
|
transition:
|
|
10
6
|
opacity 150ms var(--ease-out),
|
|
11
7
|
height 350ms var(--ease-smooth);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const fieldErrorVariants:
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const fieldErrorVariants: (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 FieldErrorVariants = VariantProps<typeof fieldErrorVariants>;
|
|
4
6
|
//# sourceMappingURL=field-error.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-error.styles.d.ts","sourceRoot":"","sources":["../../../src/components/field-error/field-error.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"field-error.styles.d.ts","sourceRoot":"","sources":["../../../src/components/field-error/field-error.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,kBAAkB;;kCAE7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/field-error/field-error.styles.ts
|
|
3
|
-
const fieldErrorVariants = tv({ base: "field-error" });
|
|
3
|
+
const fieldErrorVariants = tv({ base: "rp-field-error" });
|
|
4
4
|
//#endregion
|
|
5
5
|
export { fieldErrorVariants };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
/* Field error styles */
|
|
2
|
-
.field-error {
|
|
2
|
+
.rp-field-error {
|
|
3
3
|
@apply h-0 px-1 text-xs wrap-break-word text-danger opacity-0 data-visible:h-auto data-visible:opacity-100;
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Transitions
|
|
7
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
8
|
-
*/
|
|
9
5
|
transition:
|
|
10
6
|
opacity 150ms var(--ease-out),
|
|
11
7
|
height 350ms var(--ease-smooth);
|
|
@@ -16,12 +12,12 @@
|
|
|
16
12
|
* Toggle fields (checkbox/switch): stack below the label like description.
|
|
17
13
|
* Disable collapsible height/opacity — those styles break flex-col content layout.
|
|
18
14
|
*/
|
|
19
|
-
.checkbox > .field-error,
|
|
20
|
-
.checkbox > [data-slot="field-error"],
|
|
21
|
-
.switch > .field-error,
|
|
22
|
-
.switch > [data-slot="field-error"],
|
|
23
|
-
.radio > .field-error,
|
|
24
|
-
.radio > [data-slot="field-error"] {
|
|
15
|
+
.rp-checkbox > .rp-field-error,
|
|
16
|
+
.rp-checkbox > [data-slot="field-error"],
|
|
17
|
+
.rp-switch > .rp-field-error,
|
|
18
|
+
.rp-switch > [data-slot="field-error"],
|
|
19
|
+
.rp-radio > .rp-field-error,
|
|
20
|
+
.rp-radio > [data-slot="field-error"] {
|
|
25
21
|
@apply m-0 h-auto min-h-0 p-0 text-muted opacity-100;
|
|
26
22
|
transition: none;
|
|
27
23
|
}
|