@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Base checkbox styles
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
|
-
.checkbox {
|
|
5
|
+
.rp-checkbox {
|
|
6
6
|
@apply flex flex-col items-start gap-1 outline-none no-highlight;
|
|
7
7
|
|
|
8
8
|
cursor: var(--cursor-interactive);
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@apply select-none;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.checkbox__content [data-slot="label"] {
|
|
20
|
+
.rp-checkbox__content [data-slot="label"] {
|
|
21
21
|
cursor: var(--cursor-interactive);
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -34,14 +34,16 @@
|
|
|
34
34
|
/* Indicator styles */
|
|
35
35
|
&[data-selected="true"],
|
|
36
36
|
&[data-indeterminate="true"] {
|
|
37
|
-
.checkbox__indicator {
|
|
37
|
+
.rp-checkbox__indicator {
|
|
38
38
|
border-color: var(--accent-foreground);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/* Checkmark SVG indicator */
|
|
43
43
|
[data-slot="checkbox-default-indicator--checkmark"] {
|
|
44
|
-
@apply size-2.5 stroke-[2.5px]
|
|
44
|
+
@apply size-2.5 stroke-[2.5px];
|
|
45
|
+
|
|
46
|
+
color: var(--checkbox-control-fg-checked);
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
49
|
* Transitions
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
&[data-invalid="true"][aria-checked="true"] [data-slot="checkbox-default-indicator--checkmark"],
|
|
59
61
|
&[aria-invalid="true"][data-selected="true"] [data-slot="checkbox-default-indicator--checkmark"],
|
|
60
62
|
&[aria-invalid="true"][aria-checked="true"] [data-slot="checkbox-default-indicator--checkmark"] {
|
|
61
|
-
|
|
63
|
+
color: var(--checkbox-control-fg-invalid);
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
/* Indeterminate line indicator */
|
|
@@ -73,7 +75,7 @@
|
|
|
73
75
|
[data-slot="checkbox-default-indicator--indeterminate"],
|
|
74
76
|
&[data-indeterminate="true"][aria-invalid="true"]
|
|
75
77
|
[data-slot="checkbox-default-indicator--indeterminate"] {
|
|
76
|
-
|
|
78
|
+
color: var(--checkbox-control-fg-invalid);
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
|
|
@@ -81,13 +83,33 @@
|
|
|
81
83
|
Checkbox control (the square button)
|
|
82
84
|
========================================================================== */
|
|
83
85
|
|
|
84
|
-
.checkbox__control {
|
|
85
|
-
@apply relative inline-flex size-4 shrink-0 items-center justify-center overflow-hidden
|
|
86
|
+
.rp-checkbox__control {
|
|
87
|
+
@apply relative inline-flex size-4 shrink-0 items-center justify-center overflow-hidden border [border-width:var(--border-width-field)] shadow-field outline-none no-highlight;
|
|
88
|
+
|
|
89
|
+
/* The cap is what keeps the box reading square at 16px: the field radius is set for a 36px
|
|
90
|
+
* control, and worn whole here it looks twice as round as the field beside it. */
|
|
91
|
+
border-radius: min(var(--field-radius, calc(var(--radius) * 0.75)), 25%);
|
|
92
|
+
|
|
93
|
+
/* Four things carry state here: the box's fill and edge, the glyph inside it, and the `::before`
|
|
94
|
+
* that scales in behind the glyph. Checked and indeterminate share a colour, as do the two
|
|
95
|
+
* invalid pairings, so each is named for what it means rather than for every combination.
|
|
96
|
+
* `--secondary` re-points the fill and nothing else. */
|
|
97
|
+
--checkbox-control-bg: var(--field-background, var(--default));
|
|
98
|
+
--checkbox-control-bg-checked: var(--accent);
|
|
99
|
+
--checkbox-control-bg-checked-pressed: var(--accent-hover);
|
|
100
|
+
--checkbox-control-bg-invalid: var(--danger);
|
|
101
|
+
--checkbox-control-border: var(--field-border, var(--border));
|
|
102
|
+
--checkbox-control-border-hover: var(--field-border-hover);
|
|
103
|
+
--checkbox-control-border-checked: transparent;
|
|
104
|
+
--checkbox-control-fg-checked: var(--accent-foreground);
|
|
105
|
+
--checkbox-control-fg-invalid: var(--danger-foreground);
|
|
106
|
+
--checkbox-control-fill: var(--accent);
|
|
107
|
+
--checkbox-control-fill-hover: var(--accent-hover);
|
|
108
|
+
--checkbox-control-fill-invalid: var(--danger);
|
|
109
|
+
|
|
110
|
+
background-color: var(--checkbox-control-bg);
|
|
111
|
+
border-color: var(--checkbox-control-border);
|
|
86
112
|
|
|
87
|
-
/**
|
|
88
|
-
* Transitions
|
|
89
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
90
|
-
*/
|
|
91
113
|
transition:
|
|
92
114
|
background-color 200ms var(--ease-out),
|
|
93
115
|
border-color 200ms var(--ease-out),
|
|
@@ -98,49 +120,49 @@
|
|
|
98
120
|
|
|
99
121
|
/* Background indicator pseudo-element */
|
|
100
122
|
&::before {
|
|
101
|
-
@apply pointer-events-none absolute inset-0 z-0 origin-center scale-70
|
|
123
|
+
@apply pointer-events-none absolute inset-0 z-0 origin-center scale-70 opacity-0 content-[''];
|
|
124
|
+
|
|
125
|
+
border-radius: inherit;
|
|
126
|
+
|
|
127
|
+
background-color: var(--checkbox-control-fill);
|
|
102
128
|
|
|
103
|
-
/**
|
|
104
|
-
* Transitions
|
|
105
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
106
|
-
*/
|
|
107
129
|
transition:
|
|
108
130
|
scale 100ms var(--ease-linear),
|
|
109
131
|
opacity 200ms var(--ease-linear),
|
|
110
132
|
background-color 200ms var(--ease-out);
|
|
111
|
-
@apply motion-reduce:transition-none;
|
|
112
133
|
}
|
|
113
134
|
|
|
114
135
|
/* Interactive states */
|
|
115
136
|
/* Focus */
|
|
116
|
-
.checkbox:focus-visible &,
|
|
117
|
-
.checkbox:has([data-slot="checkbox-content"][data-focus-visible="true"]) &,
|
|
118
|
-
.checkbox [data-slot="checkbox-content"][data-focus-visible="true"] & {
|
|
137
|
+
.rp-checkbox:focus-visible &,
|
|
138
|
+
.rp-checkbox:has([data-slot="checkbox-content"][data-focus-visible="true"]) &,
|
|
139
|
+
.rp-checkbox [data-slot="checkbox-content"][data-focus-visible="true"] & {
|
|
119
140
|
@apply status-focused;
|
|
120
141
|
}
|
|
121
142
|
|
|
122
143
|
/* Hover */
|
|
123
|
-
.checkbox:hover &,
|
|
124
|
-
.checkbox:has([data-slot="checkbox-content"][data-hovered="true"]) &,
|
|
125
|
-
.checkbox [data-slot="checkbox-content"][data-hovered="true"] & {
|
|
126
|
-
|
|
144
|
+
.rp-checkbox:hover &,
|
|
145
|
+
.rp-checkbox:has([data-slot="checkbox-content"][data-hovered="true"]) &,
|
|
146
|
+
.rp-checkbox [data-slot="checkbox-content"][data-hovered="true"] & {
|
|
147
|
+
border-color: var(--checkbox-control-border-hover);
|
|
127
148
|
|
|
128
149
|
&::before {
|
|
129
|
-
|
|
150
|
+
background-color: var(--checkbox-control-fill-hover);
|
|
130
151
|
}
|
|
131
152
|
}
|
|
132
153
|
|
|
133
154
|
/* Pressed */
|
|
134
|
-
.checkbox:active &,
|
|
135
|
-
.checkbox:has([data-slot="checkbox-content"][data-pressed="true"]) &,
|
|
136
|
-
.checkbox [data-slot="checkbox-content"][data-pressed="true"] & {
|
|
155
|
+
.rp-checkbox:active &,
|
|
156
|
+
.rp-checkbox:has([data-slot="checkbox-content"][data-pressed="true"]) &,
|
|
157
|
+
.rp-checkbox [data-slot="checkbox-content"][data-pressed="true"] & {
|
|
137
158
|
}
|
|
138
159
|
|
|
139
160
|
/* Selection states */
|
|
140
161
|
/* Selected */
|
|
141
|
-
.checkbox[aria-checked="true"] &,
|
|
142
|
-
.checkbox[data-selected="true"] & {
|
|
143
|
-
|
|
162
|
+
.rp-checkbox[aria-checked="true"] &,
|
|
163
|
+
.rp-checkbox[data-selected="true"] & {
|
|
164
|
+
border-color: var(--checkbox-control-border-checked);
|
|
165
|
+
color: var(--checkbox-control-fg-checked);
|
|
144
166
|
|
|
145
167
|
&::before {
|
|
146
168
|
@apply scale-100 opacity-100;
|
|
@@ -148,24 +170,26 @@
|
|
|
148
170
|
}
|
|
149
171
|
|
|
150
172
|
/* Indeterminate */
|
|
151
|
-
.checkbox[data-indeterminate="true"] & {
|
|
152
|
-
|
|
173
|
+
.rp-checkbox[data-indeterminate="true"] & {
|
|
174
|
+
background-color: var(--checkbox-control-bg-checked);
|
|
175
|
+
color: var(--checkbox-control-fg-checked);
|
|
153
176
|
}
|
|
154
177
|
|
|
155
178
|
/* Indeterminate + Pressed */
|
|
156
|
-
.checkbox:active[data-indeterminate="true"] &,
|
|
157
|
-
.checkbox[data-pressed="true"][data-indeterminate="true"] &,
|
|
158
|
-
.checkbox:has([data-slot="checkbox-content"][data-pressed="true"])[data-indeterminate="true"]
|
|
159
|
-
|
|
179
|
+
.rp-checkbox:active[data-indeterminate="true"] &,
|
|
180
|
+
.rp-checkbox[data-pressed="true"][data-indeterminate="true"] &,
|
|
181
|
+
.rp-checkbox:has([data-slot="checkbox-content"][data-pressed="true"])[data-indeterminate="true"]
|
|
182
|
+
& {
|
|
183
|
+
background-color: var(--checkbox-control-bg-checked-pressed);
|
|
160
184
|
}
|
|
161
185
|
|
|
162
186
|
/* Validation states */
|
|
163
187
|
/* Invalid (only when not selected/indeterminate) */
|
|
164
|
-
.checkbox[data-invalid="true"]:not([aria-checked="true"]):not([data-selected="true"]):not(
|
|
188
|
+
.rp-checkbox[data-invalid="true"]:not([aria-checked="true"]):not([data-selected="true"]):not(
|
|
165
189
|
[data-indeterminate="true"]
|
|
166
190
|
)
|
|
167
191
|
&,
|
|
168
|
-
.checkbox[aria-invalid="true"]:not([aria-checked="true"]):not([data-selected="true"]):not(
|
|
192
|
+
.rp-checkbox[aria-invalid="true"]:not([aria-checked="true"]):not([data-selected="true"]):not(
|
|
169
193
|
[data-indeterminate="true"]
|
|
170
194
|
)
|
|
171
195
|
& {
|
|
@@ -173,21 +197,26 @@
|
|
|
173
197
|
}
|
|
174
198
|
|
|
175
199
|
/* Invalid + Selected */
|
|
176
|
-
.checkbox[data-invalid="true"][aria-checked="true"] &,
|
|
177
|
-
.checkbox[data-invalid="true"][data-selected="true"] &,
|
|
178
|
-
.checkbox[aria-invalid="true"][aria-checked="true"] &,
|
|
179
|
-
.checkbox[aria-invalid="true"][data-selected="true"] & {
|
|
180
|
-
|
|
200
|
+
.rp-checkbox[data-invalid="true"][aria-checked="true"] &,
|
|
201
|
+
.rp-checkbox[data-invalid="true"][data-selected="true"] &,
|
|
202
|
+
.rp-checkbox[aria-invalid="true"][aria-checked="true"] &,
|
|
203
|
+
.rp-checkbox[aria-invalid="true"][data-selected="true"] & {
|
|
204
|
+
background-color: var(--checkbox-control-bg-invalid);
|
|
205
|
+
border-color: var(--checkbox-control-border-checked);
|
|
206
|
+
color: var(--checkbox-control-fg-invalid);
|
|
181
207
|
|
|
182
208
|
&::before {
|
|
183
|
-
@apply scale-100
|
|
209
|
+
@apply scale-100 opacity-100;
|
|
210
|
+
|
|
211
|
+
background-color: var(--checkbox-control-fill-invalid);
|
|
184
212
|
}
|
|
185
213
|
}
|
|
186
214
|
|
|
187
215
|
/* Invalid + Indeterminate */
|
|
188
|
-
.checkbox[data-indeterminate="true"][aria-invalid="true"] &,
|
|
189
|
-
.checkbox[data-indeterminate="true"][data-invalid="true"] & {
|
|
190
|
-
|
|
216
|
+
.rp-checkbox[data-indeterminate="true"][aria-invalid="true"] &,
|
|
217
|
+
.rp-checkbox[data-indeterminate="true"][data-invalid="true"] & {
|
|
218
|
+
background-color: var(--checkbox-control-bg-invalid);
|
|
219
|
+
color: var(--checkbox-control-fg-invalid);
|
|
191
220
|
}
|
|
192
221
|
}
|
|
193
222
|
|
|
@@ -195,7 +224,7 @@
|
|
|
195
224
|
Checkbox indicator
|
|
196
225
|
========================================================================== */
|
|
197
226
|
|
|
198
|
-
.checkbox__indicator {
|
|
227
|
+
.rp-checkbox__indicator {
|
|
199
228
|
@apply relative z-10 flex size-3 items-center justify-center;
|
|
200
229
|
|
|
201
230
|
& svg {
|
|
@@ -207,7 +236,7 @@
|
|
|
207
236
|
Disabled modifier
|
|
208
237
|
========================================================================== */
|
|
209
238
|
|
|
210
|
-
.checkbox--disabled {
|
|
239
|
+
.rp-checkbox--disabled {
|
|
211
240
|
@apply status-disabled;
|
|
212
241
|
}
|
|
213
242
|
|
|
@@ -215,50 +244,20 @@
|
|
|
215
244
|
Variant property definitions
|
|
216
245
|
========================================================================== */
|
|
217
246
|
|
|
218
|
-
.checkbox--primary {
|
|
247
|
+
.rp-checkbox--primary {
|
|
219
248
|
/* Default styles */
|
|
220
249
|
}
|
|
221
250
|
|
|
222
|
-
.checkbox--secondary .checkbox__control {
|
|
251
|
+
.rp-checkbox--secondary .rp-checkbox__control {
|
|
223
252
|
@apply shadow-none;
|
|
224
|
-
background-color: var(--checkbox-control-bg);
|
|
225
|
-
|
|
226
|
-
--checkbox-control-bg: var(--default);
|
|
227
253
|
|
|
228
|
-
/*
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
@apply border-field-border-hover;
|
|
233
|
-
}
|
|
254
|
+
/* No border and no shadow leave the fill as the only thing drawing this box, so a flat neutral
|
|
255
|
+
* erases it against any surface of the same lightness — a hovered table row is exactly that.
|
|
256
|
+
* The state layer is an alpha, so it keeps its step over whatever it lands on. */
|
|
257
|
+
--checkbox-control-bg: var(--state-layer);
|
|
234
258
|
}
|
|
235
259
|
|
|
236
260
|
/* Checkbox content — the clickable label (control + label text) */
|
|
237
|
-
.checkbox__content {
|
|
261
|
+
.rp-checkbox__content {
|
|
238
262
|
@apply relative inline-flex cursor-[inherit] items-center gap-3 text-sm font-medium text-foreground outline-none select-none no-highlight;
|
|
239
263
|
}
|
|
240
|
-
|
|
241
|
-
/* Unselected state background for secondary variant */
|
|
242
|
-
.checkbox--secondary:not([aria-checked="true"]):not([data-selected="true"]):not(
|
|
243
|
-
[data-indeterminate="true"]
|
|
244
|
-
)
|
|
245
|
-
.checkbox__control {
|
|
246
|
-
background-color: var(--checkbox-control-bg);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/* Selected state on secondary variant */
|
|
250
|
-
.checkbox--secondary[aria-checked="true"] .checkbox__control,
|
|
251
|
-
.checkbox--secondary[data-selected="true"] .checkbox__control {
|
|
252
|
-
&::before {
|
|
253
|
-
@apply bg-accent;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/* Indeterminate state on secondary variant */
|
|
258
|
-
.checkbox--secondary[data-indeterminate="true"] .checkbox__control {
|
|
259
|
-
@apply bg-accent;
|
|
260
|
-
|
|
261
|
-
&::before {
|
|
262
|
-
@apply bg-accent;
|
|
263
|
-
}
|
|
264
|
-
}
|
|
@@ -1,142 +1,25 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const chipVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
md: {
|
|
25
|
-
base: string;
|
|
26
|
-
};
|
|
27
|
-
sm: {
|
|
28
|
-
base: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
variant: {
|
|
32
|
-
primary: {
|
|
33
|
-
base: string;
|
|
34
|
-
};
|
|
35
|
-
secondary: {
|
|
36
|
-
base: string;
|
|
37
|
-
};
|
|
38
|
-
soft: {
|
|
39
|
-
base: string;
|
|
40
|
-
};
|
|
41
|
-
tertiary: {
|
|
42
|
-
base: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
}, {
|
|
46
|
-
base: string;
|
|
47
|
-
label: string;
|
|
48
|
-
}, undefined, {
|
|
49
|
-
color: {
|
|
50
|
-
accent: {
|
|
51
|
-
base: string;
|
|
52
|
-
};
|
|
53
|
-
danger: {
|
|
54
|
-
base: string;
|
|
55
|
-
};
|
|
56
|
-
default: {
|
|
57
|
-
base: string;
|
|
58
|
-
};
|
|
59
|
-
success: {
|
|
60
|
-
base: string;
|
|
61
|
-
};
|
|
62
|
-
warning: {
|
|
63
|
-
base: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
size: {
|
|
67
|
-
lg: {
|
|
68
|
-
base: string;
|
|
69
|
-
};
|
|
70
|
-
md: {
|
|
71
|
-
base: string;
|
|
72
|
-
};
|
|
73
|
-
sm: {
|
|
74
|
-
base: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
variant: {
|
|
78
|
-
primary: {
|
|
79
|
-
base: string;
|
|
80
|
-
};
|
|
81
|
-
secondary: {
|
|
82
|
-
base: string;
|
|
83
|
-
};
|
|
84
|
-
soft: {
|
|
85
|
-
base: string;
|
|
86
|
-
};
|
|
87
|
-
tertiary: {
|
|
88
|
-
base: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
}, {
|
|
92
|
-
base: string;
|
|
93
|
-
label: string;
|
|
94
|
-
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
95
|
-
color: {
|
|
96
|
-
accent: {
|
|
97
|
-
base: string;
|
|
98
|
-
};
|
|
99
|
-
danger: {
|
|
100
|
-
base: string;
|
|
101
|
-
};
|
|
102
|
-
default: {
|
|
103
|
-
base: string;
|
|
104
|
-
};
|
|
105
|
-
success: {
|
|
106
|
-
base: string;
|
|
107
|
-
};
|
|
108
|
-
warning: {
|
|
109
|
-
base: string;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
size: {
|
|
113
|
-
lg: {
|
|
114
|
-
base: string;
|
|
115
|
-
};
|
|
116
|
-
md: {
|
|
117
|
-
base: string;
|
|
118
|
-
};
|
|
119
|
-
sm: {
|
|
120
|
-
base: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
variant: {
|
|
124
|
-
primary: {
|
|
125
|
-
base: string;
|
|
126
|
-
};
|
|
127
|
-
secondary: {
|
|
128
|
-
base: string;
|
|
129
|
-
};
|
|
130
|
-
soft: {
|
|
131
|
-
base: string;
|
|
132
|
-
};
|
|
133
|
-
tertiary: {
|
|
134
|
-
base: string;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
}, {
|
|
138
|
-
base: string;
|
|
139
|
-
label: string;
|
|
140
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const chipVariants: (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
|
+
color?: "accent" | "danger" | "default" | "success" | "warning" | undefined;
|
|
6
|
+
size?: "lg" | "md" | "sm" | undefined;
|
|
7
|
+
variant?: "primary" | "secondary" | "soft" | "tertiary" | undefined;
|
|
8
|
+
}) | undefined) => {
|
|
9
|
+
base: (props?: ({
|
|
10
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
color?: "accent" | "danger" | "default" | "success" | "warning" | undefined;
|
|
13
|
+
size?: "lg" | "md" | "sm" | undefined;
|
|
14
|
+
variant?: "primary" | "secondary" | "soft" | "tertiary" | undefined;
|
|
15
|
+
}) | undefined) => string;
|
|
16
|
+
label: (props?: ({
|
|
17
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
color?: "accent" | "danger" | "default" | "success" | "warning" | undefined;
|
|
20
|
+
size?: "lg" | "md" | "sm" | undefined;
|
|
21
|
+
variant?: "primary" | "secondary" | "soft" | "tertiary" | undefined;
|
|
22
|
+
}) | undefined) => string;
|
|
23
|
+
};
|
|
141
24
|
export type ChipVariants = VariantProps<typeof chipVariants>;
|
|
142
25
|
//# sourceMappingURL=chip.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.styles.d.ts","sourceRoot":"","sources":["../../../src/components/chip/chip.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"chip.styles.d.ts","sourceRoot":"","sources":["../../../src/components/chip/chip.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAqDvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/chip/chip.styles.ts
|
|
3
3
|
const chipVariants = tv({
|
|
4
4
|
defaultVariants: {
|
|
@@ -6,27 +6,27 @@ const chipVariants = tv({
|
|
|
6
6
|
variant: "secondary"
|
|
7
7
|
},
|
|
8
8
|
slots: {
|
|
9
|
-
base: "chip",
|
|
10
|
-
label: "chip__label"
|
|
9
|
+
base: "rp-chip",
|
|
10
|
+
label: "rp-chip__label"
|
|
11
11
|
},
|
|
12
12
|
variants: {
|
|
13
13
|
color: {
|
|
14
|
-
accent: { base: "chip--accent" },
|
|
15
|
-
danger: { base: "chip--danger" },
|
|
16
|
-
default: { base: "chip--default" },
|
|
17
|
-
success: { base: "chip--success" },
|
|
18
|
-
warning: { base: "chip--warning" }
|
|
14
|
+
accent: { base: "rp-chip--accent" },
|
|
15
|
+
danger: { base: "rp-chip--danger" },
|
|
16
|
+
default: { base: "rp-chip--default" },
|
|
17
|
+
success: { base: "rp-chip--success" },
|
|
18
|
+
warning: { base: "rp-chip--warning" }
|
|
19
19
|
},
|
|
20
20
|
size: {
|
|
21
|
-
lg: { base: "chip--lg" },
|
|
22
|
-
md: { base: "chip--md" },
|
|
23
|
-
sm: { base: "chip--sm" }
|
|
21
|
+
lg: { base: "rp-chip--lg" },
|
|
22
|
+
md: { base: "rp-chip--md" },
|
|
23
|
+
sm: { base: "rp-chip--sm" }
|
|
24
24
|
},
|
|
25
25
|
variant: {
|
|
26
|
-
primary: { base: "chip--primary" },
|
|
27
|
-
secondary: { base: "chip--secondary" },
|
|
28
|
-
soft: { base: "chip--soft" },
|
|
29
|
-
tertiary: { base: "chip--tertiary" }
|
|
26
|
+
primary: { base: "rp-chip--primary" },
|
|
27
|
+
secondary: { base: "rp-chip--secondary" },
|
|
28
|
+
soft: { base: "rp-chip--soft" },
|
|
29
|
+
tertiary: { base: "rp-chip--tertiary" }
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
});
|
package/dist/components/chip.css
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* Base styles */
|
|
2
|
-
.chip {
|
|
3
|
-
@apply inline-flex w-fit shrink-0 items-center gap-0.5
|
|
2
|
+
.rp-chip {
|
|
3
|
+
@apply inline-flex w-fit shrink-0 items-center gap-0.5 px-2 py-0.5 text-xs leading-5 font-medium;
|
|
4
|
+
|
|
5
|
+
border-radius: min(32px, var(--component-radius));
|
|
4
6
|
|
|
5
7
|
/* Default tokens */
|
|
6
8
|
--chip-bg: var(--default);
|
|
@@ -16,40 +18,40 @@
|
|
|
16
18
|
* What cannot come back is the status. The mode has no keyword for success or warning, so
|
|
17
19
|
* every colour collapses onto one appearance and the label is what has to carry the
|
|
18
20
|
* meaning - which is the same reason a chip should not lean on colour alone in the first
|
|
19
|
-
* place. Only the emphasis split survives, on `.chip--primary` below. */
|
|
21
|
+
* place. Only the emphasis split survives, on `.rp-chip--primary` below. */
|
|
20
22
|
@media (forced-colors: active) {
|
|
21
23
|
outline: 1px solid CanvasText;
|
|
22
24
|
outline-offset: -1px;
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
|
|
26
|
-
.chip__label {
|
|
28
|
+
.rp-chip__label {
|
|
27
29
|
@apply px-0.5;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
/* Color variants - set foreground color */
|
|
31
|
-
.chip--accent {
|
|
33
|
+
.rp-chip--accent {
|
|
32
34
|
--chip-fg: var(--accent-soft-foreground);
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
.chip--danger {
|
|
37
|
+
.rp-chip--danger {
|
|
36
38
|
--chip-fg: var(--danger-soft-foreground);
|
|
37
39
|
}
|
|
38
40
|
|
|
39
|
-
.chip--default {
|
|
41
|
+
.rp-chip--default {
|
|
40
42
|
--chip-fg: var(--default-foreground);
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
.chip--success {
|
|
45
|
+
.rp-chip--success {
|
|
44
46
|
--chip-fg: var(--success-soft-foreground);
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
.chip--warning {
|
|
49
|
+
.rp-chip--warning {
|
|
48
50
|
--chip-fg: var(--warning-soft-foreground);
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
/* Variant styles */
|
|
52
|
-
.chip--primary {
|
|
54
|
+
.rp-chip--primary {
|
|
53
55
|
/* The one distinction worth keeping: solid against outlined. `forced-color-adjust` is what
|
|
54
56
|
* makes it readable - without it Chromium paints a `Canvas` backplate over this fill and the
|
|
55
57
|
* label goes with it. */
|
|
@@ -60,24 +62,24 @@
|
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
|
|
63
|
-
.chip--secondary {
|
|
65
|
+
.rp-chip--secondary {
|
|
64
66
|
/* No additional styles for secondary variant */
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
.chip--tertiary {
|
|
69
|
+
.rp-chip--tertiary {
|
|
68
70
|
--chip-bg: transparent;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
/* Size variants */
|
|
72
|
-
.chip--sm {
|
|
74
|
+
.rp-chip--sm {
|
|
73
75
|
@apply px-1 py-0 text-xs;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
|
-
.chip--md {
|
|
78
|
+
.rp-chip--md {
|
|
77
79
|
@apply text-xs;
|
|
78
80
|
}
|
|
79
81
|
|
|
80
|
-
.chip--lg {
|
|
82
|
+
.rp-chip--lg {
|
|
81
83
|
@apply px-3 py-1 text-sm font-medium;
|
|
82
84
|
}
|
|
83
85
|
|
|
@@ -86,48 +88,48 @@
|
|
|
86
88
|
/* ====================== */
|
|
87
89
|
|
|
88
90
|
/* Primary variants - solid backgrounds */
|
|
89
|
-
.chip--primary.chip--accent {
|
|
91
|
+
.rp-chip--primary.rp-chip--accent {
|
|
90
92
|
--chip-bg: var(--accent);
|
|
91
93
|
--chip-fg: var(--accent-foreground);
|
|
92
94
|
}
|
|
93
95
|
|
|
94
|
-
.chip--primary.chip--success {
|
|
96
|
+
.rp-chip--primary.rp-chip--success {
|
|
95
97
|
--chip-bg: var(--success);
|
|
96
98
|
--chip-fg: var(--success-foreground);
|
|
97
99
|
}
|
|
98
100
|
|
|
99
|
-
.chip--primary.chip--warning {
|
|
101
|
+
.rp-chip--primary.rp-chip--warning {
|
|
100
102
|
--chip-bg: var(--warning);
|
|
101
103
|
--chip-fg: var(--warning-foreground);
|
|
102
104
|
}
|
|
103
105
|
|
|
104
|
-
.chip--primary.chip--danger {
|
|
106
|
+
.rp-chip--primary.rp-chip--danger {
|
|
105
107
|
--chip-bg: var(--danger);
|
|
106
108
|
--chip-fg: var(--danger-foreground);
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
/* Soft variants - muted backgrounds */
|
|
110
|
-
.chip--accent.chip--soft {
|
|
112
|
+
.rp-chip--accent.rp-chip--soft {
|
|
111
113
|
--chip-bg: var(--accent-soft);
|
|
112
114
|
--chip-fg: var(--accent-soft-foreground);
|
|
113
115
|
}
|
|
114
116
|
|
|
115
|
-
.chip--success.chip--soft {
|
|
117
|
+
.rp-chip--success.rp-chip--soft {
|
|
116
118
|
--chip-bg: var(--success-soft);
|
|
117
119
|
--chip-fg: var(--success-soft-foreground);
|
|
118
120
|
}
|
|
119
121
|
|
|
120
|
-
.chip--warning.chip--soft {
|
|
122
|
+
.rp-chip--warning.rp-chip--soft {
|
|
121
123
|
--chip-bg: var(--warning-soft);
|
|
122
124
|
--chip-fg: var(--warning-soft-foreground);
|
|
123
125
|
}
|
|
124
126
|
|
|
125
|
-
.chip--danger.chip--soft {
|
|
127
|
+
.rp-chip--danger.rp-chip--soft {
|
|
126
128
|
--chip-bg: var(--danger-soft);
|
|
127
129
|
--chip-fg: var(--danger-soft-foreground);
|
|
128
130
|
}
|
|
129
131
|
|
|
130
|
-
.chip--default.chip--soft {
|
|
132
|
+
.rp-chip--default.rp-chip--soft {
|
|
131
133
|
--chip-bg: var(--default-soft);
|
|
132
134
|
--chip-fg: var(--default-soft-foreground);
|
|
133
135
|
}
|