@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
|
@@ -8,23 +8,23 @@
|
|
|
8
8
|
/* -----------------------------------------------------------------------------
|
|
9
9
|
* Base Calendar Styles
|
|
10
10
|
* -------------------------------------------------------------------------- */
|
|
11
|
-
.calendar {
|
|
11
|
+
.rp-calendar {
|
|
12
12
|
@apply w-63 max-w-63;
|
|
13
13
|
|
|
14
14
|
container-type: inline-size;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/* Week view – visibleDuration={{ weeks: n }} */
|
|
18
|
-
.calendar--week-view {
|
|
19
|
-
.calendar__cell {
|
|
18
|
+
.rp-calendar--week-view {
|
|
19
|
+
.rp-calendar__cell {
|
|
20
20
|
/* Keep cells circular on the 7-column grid; only filled cells take space. */
|
|
21
21
|
@apply aspect-square size-auto w-full place-self-center;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/* Day view – visibleDuration={{ days: n }} */
|
|
26
|
-
.calendar--day-view {
|
|
27
|
-
.calendar__cell {
|
|
26
|
+
.rp-calendar--day-view {
|
|
27
|
+
.rp-calendar__cell {
|
|
28
28
|
@apply aspect-square size-auto w-full place-self-center;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
* Isolate header and body into separate 7-column grids. With display:contents
|
|
33
33
|
* on the root grid, fewer than 7 weekday headers flow into the same row as dates.
|
|
34
34
|
*/
|
|
35
|
-
.calendar__grid {
|
|
35
|
+
.rp-calendar__grid {
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.calendar__grid-header {
|
|
40
|
+
.rp-calendar__grid-header {
|
|
41
41
|
display: grid;
|
|
42
42
|
grid-template-columns: repeat(7, 1fr);
|
|
43
43
|
@apply w-full;
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.calendar__grid-body {
|
|
50
|
+
.rp-calendar__grid-body {
|
|
51
51
|
display: grid;
|
|
52
52
|
grid-template-columns: repeat(7, 1fr);
|
|
53
53
|
@apply mt-1 w-full;
|
|
@@ -65,29 +65,27 @@
|
|
|
65
65
|
/* -----------------------------------------------------------------------------
|
|
66
66
|
* Calendar Header
|
|
67
67
|
* -------------------------------------------------------------------------- */
|
|
68
|
-
.calendar__header {
|
|
68
|
+
.rp-calendar__header {
|
|
69
69
|
@apply flex items-center justify-between px-0.5 pb-4;
|
|
70
70
|
|
|
71
|
-
&:has(.calendar-year-picker__trigger[data-open="true"]) {
|
|
72
|
-
.calendar__nav-button {
|
|
71
|
+
&:has(.rp-calendar-year-picker__trigger[data-open="true"]) {
|
|
72
|
+
.rp-calendar__nav-button {
|
|
73
73
|
@apply pointer-events-none opacity-0;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
.calendar__heading {
|
|
78
|
+
.rp-calendar__heading {
|
|
79
79
|
@apply flex-1 text-sm font-medium;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.calendar__nav-button {
|
|
83
|
-
@apply flex size-6 items-center justify-center
|
|
82
|
+
.rp-calendar__nav-button {
|
|
83
|
+
@apply flex size-6 items-center justify-center text-accent-soft-foreground;
|
|
84
|
+
|
|
85
|
+
border-radius: min(32px, var(--component-radius));
|
|
84
86
|
|
|
85
87
|
will-change: scale;
|
|
86
88
|
|
|
87
|
-
/**
|
|
88
|
-
* Transitions
|
|
89
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
90
|
-
*/
|
|
91
89
|
transition:
|
|
92
90
|
transform 250ms var(--ease-out),
|
|
93
91
|
background-color 100ms var(--ease-out),
|
|
@@ -101,7 +99,7 @@
|
|
|
101
99
|
@media (hover: hover) {
|
|
102
100
|
&:hover,
|
|
103
101
|
&[data-hovered="true"] {
|
|
104
|
-
@apply bg-
|
|
102
|
+
@apply bg-state-layer;
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
|
|
@@ -124,27 +122,27 @@
|
|
|
124
122
|
}
|
|
125
123
|
}
|
|
126
124
|
|
|
127
|
-
.calendar__nav-button-icon {
|
|
125
|
+
.rp-calendar__nav-button-icon {
|
|
128
126
|
@apply size-4 rtl:rotate-180;
|
|
129
127
|
}
|
|
130
128
|
|
|
131
129
|
/* -----------------------------------------------------------------------------
|
|
132
130
|
* Calendar Grid
|
|
133
131
|
* -------------------------------------------------------------------------- */
|
|
134
|
-
.calendar__grid {
|
|
132
|
+
.rp-calendar__grid {
|
|
135
133
|
/* Override table display with CSS Grid for easier customization */
|
|
136
134
|
display: grid;
|
|
137
135
|
grid-template-columns: repeat(7, 1fr);
|
|
138
136
|
@apply w-full;
|
|
139
137
|
|
|
140
138
|
&[aria-readonly="true"] {
|
|
141
|
-
.calendar__cell {
|
|
139
|
+
.rp-calendar__cell {
|
|
142
140
|
@apply pointer-events-none;
|
|
143
141
|
}
|
|
144
142
|
}
|
|
145
143
|
}
|
|
146
144
|
|
|
147
|
-
.calendar__grid-header {
|
|
145
|
+
.rp-calendar__grid-header {
|
|
148
146
|
/* Grid header (thead) styles */
|
|
149
147
|
display: contents;
|
|
150
148
|
|
|
@@ -153,7 +151,7 @@
|
|
|
153
151
|
}
|
|
154
152
|
}
|
|
155
153
|
|
|
156
|
-
.calendar__grid-body {
|
|
154
|
+
.rp-calendar__grid-body {
|
|
157
155
|
/* Grid body (tbody) styles */
|
|
158
156
|
display: contents;
|
|
159
157
|
|
|
@@ -167,13 +165,13 @@
|
|
|
167
165
|
}
|
|
168
166
|
}
|
|
169
167
|
|
|
170
|
-
.calendar__grid-row {
|
|
168
|
+
.rp-calendar__grid-row {
|
|
171
169
|
/* Use 'contents' so cells participate directly in grid */
|
|
172
170
|
/* Note: This class can be used for custom row styling if needed */
|
|
173
171
|
display: contents;
|
|
174
172
|
}
|
|
175
173
|
|
|
176
|
-
.calendar__header-cell {
|
|
174
|
+
.rp-calendar__header-cell {
|
|
177
175
|
/* Header cell (th - weekday names) styles */
|
|
178
176
|
@apply flex items-center justify-center pb-2 text-xs font-medium text-muted;
|
|
179
177
|
}
|
|
@@ -181,15 +179,32 @@
|
|
|
181
179
|
/* -----------------------------------------------------------------------------
|
|
182
180
|
* Calendar Cells
|
|
183
181
|
* -------------------------------------------------------------------------- */
|
|
184
|
-
.calendar__cell {
|
|
182
|
+
.rp-calendar__cell {
|
|
185
183
|
/* Cell (td) wrapper styles - margins now work with grid layout */
|
|
186
|
-
@apply relative flex aspect-square size-full items-center justify-center
|
|
184
|
+
@apply relative flex aspect-square size-full items-center justify-center text-center text-sm font-medium outline-none no-highlight;
|
|
185
|
+
|
|
186
|
+
border-radius: min(32px, var(--component-radius));
|
|
187
|
+
|
|
188
|
+
/* Eight states repaint a day, several of them in pairs — today and hovered, selected and
|
|
189
|
+
* pressed, selected and outside the month. One declaration cannot tell them apart, so each
|
|
190
|
+
* reads its own. */
|
|
191
|
+
--calendar-cell-bg: transparent;
|
|
192
|
+
--calendar-cell-bg-hover: var(--state-layer);
|
|
193
|
+
--calendar-cell-bg-pressed: var(--calendar-cell-bg-hover);
|
|
194
|
+
--calendar-cell-bg-today: var(--accent-soft);
|
|
195
|
+
--calendar-cell-bg-today-hover: var(--accent-soft-hover);
|
|
196
|
+
--calendar-cell-bg-selected: var(--accent);
|
|
197
|
+
--calendar-cell-bg-selected-pressed: var(--accent-hover);
|
|
198
|
+
--calendar-cell-bg-selected-outside-month: var(--state-layer);
|
|
199
|
+
--calendar-cell-fg: currentcolor;
|
|
200
|
+
--calendar-cell-fg-today: var(--accent-soft-foreground);
|
|
201
|
+
--calendar-cell-fg-selected: var(--accent-foreground);
|
|
202
|
+
--calendar-cell-fg-outside-month: var(--muted);
|
|
203
|
+
|
|
204
|
+
background-color: var(--calendar-cell-bg);
|
|
205
|
+
color: var(--calendar-cell-fg);
|
|
187
206
|
|
|
188
207
|
will-change: scale;
|
|
189
|
-
/**
|
|
190
|
-
* Transitions
|
|
191
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
192
|
-
*/
|
|
193
208
|
transition:
|
|
194
209
|
transform 250ms var(--ease-out),
|
|
195
210
|
box-shadow 100ms var(--ease-out);
|
|
@@ -205,7 +220,8 @@
|
|
|
205
220
|
|
|
206
221
|
/* Today indicator */
|
|
207
222
|
&[data-today="true"] {
|
|
208
|
-
|
|
223
|
+
background-color: var(--calendar-cell-bg-today);
|
|
224
|
+
color: var(--calendar-cell-fg-today);
|
|
209
225
|
|
|
210
226
|
/* A tinted background is all that marks today, and forced colors flattens it onto the page.
|
|
211
227
|
* An edge rather than a fill, so today still reads as itself once it is also selected. */
|
|
@@ -217,25 +233,27 @@
|
|
|
217
233
|
@media (hover: hover) {
|
|
218
234
|
&:hover:not([data-selected="true"]),
|
|
219
235
|
&[data-hovered="true"]:not([data-selected="true"]) {
|
|
220
|
-
|
|
236
|
+
background-color: var(--calendar-cell-bg-today-hover);
|
|
221
237
|
}
|
|
222
238
|
}
|
|
223
239
|
}
|
|
224
240
|
|
|
225
241
|
/* Selected state */
|
|
226
242
|
&[data-selected="true"] {
|
|
227
|
-
|
|
243
|
+
background-color: var(--calendar-cell-bg-selected);
|
|
244
|
+
color: var(--calendar-cell-fg-selected);
|
|
245
|
+
|
|
228
246
|
@apply forced-selected;
|
|
229
247
|
}
|
|
230
248
|
|
|
231
249
|
/* Pressed state */
|
|
232
250
|
&:active,
|
|
233
251
|
&[data-pressed="true"] {
|
|
234
|
-
|
|
252
|
+
background-color: var(--calendar-cell-bg-pressed);
|
|
235
253
|
transform: scale(0.95);
|
|
236
254
|
|
|
237
255
|
&[data-selected="true"] {
|
|
238
|
-
|
|
256
|
+
background-color: var(--calendar-cell-bg-selected-pressed);
|
|
239
257
|
}
|
|
240
258
|
}
|
|
241
259
|
|
|
@@ -243,17 +261,19 @@
|
|
|
243
261
|
@media (hover: hover) {
|
|
244
262
|
&:hover:not([data-selected="true"]),
|
|
245
263
|
&[data-hovered="true"]:not([data-selected="true"]) {
|
|
246
|
-
|
|
264
|
+
background-color: var(--calendar-cell-bg-hover);
|
|
247
265
|
}
|
|
248
266
|
}
|
|
249
267
|
|
|
250
268
|
/* Outside month (previous/next month days) */
|
|
251
269
|
&[data-outside-month="true"] {
|
|
252
|
-
@apply
|
|
270
|
+
@apply opacity-50;
|
|
271
|
+
|
|
272
|
+
color: var(--calendar-cell-fg-outside-month);
|
|
253
273
|
}
|
|
254
274
|
|
|
255
275
|
&[data-selected="true"][data-outside-month="true"] {
|
|
256
|
-
|
|
276
|
+
background-color: var(--calendar-cell-bg-selected-outside-month);
|
|
257
277
|
}
|
|
258
278
|
|
|
259
279
|
/* Unavailable dates */
|
|
@@ -271,11 +291,16 @@
|
|
|
271
291
|
}
|
|
272
292
|
|
|
273
293
|
/* Cell indicator - small dot at bottom center of cell */
|
|
274
|
-
.calendar__cell-indicator {
|
|
275
|
-
@apply absolute bottom-1 left-1/2 size-[3px] -translate-x-1/2 rounded-xs
|
|
294
|
+
.rp-calendar__cell-indicator {
|
|
295
|
+
@apply absolute bottom-1 left-1/2 size-[3px] -translate-x-1/2 rounded-xs;
|
|
296
|
+
|
|
297
|
+
--calendar-cell-indicator-bg: var(--muted);
|
|
298
|
+
--calendar-cell-indicator-bg-selected: var(--accent-foreground);
|
|
299
|
+
|
|
300
|
+
background-color: var(--calendar-cell-indicator-bg);
|
|
276
301
|
|
|
277
302
|
/* Indicator color changes when cell is selected */
|
|
278
303
|
[data-selected="true"] > & {
|
|
279
|
-
|
|
304
|
+
background-color: var(--calendar-cell-indicator-bg-selected);
|
|
280
305
|
}
|
|
281
306
|
}
|
|
@@ -1,71 +1,40 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
declare const cardVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
tertiary
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
transparent
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
-
}, {
|
|
40
|
-
base: string;
|
|
41
|
-
content: string;
|
|
42
|
-
description: string;
|
|
43
|
-
footer: string;
|
|
44
|
-
header: string;
|
|
45
|
-
title: string;
|
|
46
|
-
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
47
|
-
variant: {
|
|
48
|
-
default: {
|
|
49
|
-
base: string;
|
|
50
|
-
};
|
|
51
|
-
secondary: {
|
|
52
|
-
base: string;
|
|
53
|
-
};
|
|
54
|
-
tertiary: {
|
|
55
|
-
base: string;
|
|
56
|
-
};
|
|
57
|
-
transparent: {
|
|
58
|
-
base: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
}, {
|
|
62
|
-
base: string;
|
|
63
|
-
content: string;
|
|
64
|
-
description: string;
|
|
65
|
-
footer: string;
|
|
66
|
-
header: string;
|
|
67
|
-
title: string;
|
|
68
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
declare const cardVariants: (props?: ({
|
|
3
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
4
|
+
} & {
|
|
5
|
+
variant?: "default" | "secondary" | "tertiary" | "transparent" | undefined;
|
|
6
|
+
}) | undefined) => {
|
|
7
|
+
base: (props?: ({
|
|
8
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
variant?: "default" | "secondary" | "tertiary" | "transparent" | undefined;
|
|
11
|
+
}) | undefined) => string;
|
|
12
|
+
content: (props?: ({
|
|
13
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
variant?: "default" | "secondary" | "tertiary" | "transparent" | undefined;
|
|
16
|
+
}) | undefined) => string;
|
|
17
|
+
description: (props?: ({
|
|
18
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
variant?: "default" | "secondary" | "tertiary" | "transparent" | undefined;
|
|
21
|
+
}) | undefined) => string;
|
|
22
|
+
footer: (props?: ({
|
|
23
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
variant?: "default" | "secondary" | "tertiary" | "transparent" | undefined;
|
|
26
|
+
}) | undefined) => string;
|
|
27
|
+
header: (props?: ({
|
|
28
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
variant?: "default" | "secondary" | "tertiary" | "transparent" | undefined;
|
|
31
|
+
}) | undefined) => string;
|
|
32
|
+
title: (props?: ({
|
|
33
|
+
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;
|
|
34
|
+
} & {
|
|
35
|
+
variant?: "default" | "secondary" | "tertiary" | "transparent" | undefined;
|
|
36
|
+
}) | undefined) => string;
|
|
37
|
+
};
|
|
69
38
|
export { cardVariants };
|
|
70
39
|
export type CardVariants = VariantProps<typeof cardVariants>;
|
|
71
40
|
//# sourceMappingURL=card.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BhB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/card/card.styles.ts
|
|
3
3
|
const cardVariants = tv({
|
|
4
4
|
defaultVariants: { variant: "default" },
|
|
5
5
|
slots: {
|
|
6
|
-
base: "card",
|
|
7
|
-
content: "card__content",
|
|
8
|
-
description: "card__description",
|
|
9
|
-
footer: "card__footer",
|
|
10
|
-
header: "card__header",
|
|
11
|
-
title: "card__title"
|
|
6
|
+
base: "rp-card",
|
|
7
|
+
content: "rp-card__content",
|
|
8
|
+
description: "rp-card__description",
|
|
9
|
+
footer: "rp-card__footer",
|
|
10
|
+
header: "rp-card__header",
|
|
11
|
+
title: "rp-card__title"
|
|
12
12
|
},
|
|
13
13
|
variants: { variant: {
|
|
14
|
-
default: { base: "card--default" },
|
|
15
|
-
secondary: { base: "card--secondary" },
|
|
16
|
-
tertiary: { base: "card--tertiary" },
|
|
17
|
-
transparent: { base: "card--transparent" }
|
|
14
|
+
default: { base: "rp-card--default" },
|
|
15
|
+
secondary: { base: "rp-card--secondary" },
|
|
16
|
+
tertiary: { base: "rp-card--tertiary" },
|
|
17
|
+
transparent: { base: "rp-card--transparent" }
|
|
18
18
|
} }
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
package/dist/components/card.css
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
/* Card component styles */
|
|
2
2
|
|
|
3
3
|
/* Block */
|
|
4
|
-
.card {
|
|
4
|
+
.rp-card {
|
|
5
5
|
@apply relative flex flex-col gap-3 overflow-visible p-4;
|
|
6
6
|
@apply shadow-surface;
|
|
7
7
|
border-radius: min(32px, var(--component-radius));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/* Element - header */
|
|
11
|
-
.card__header {
|
|
11
|
+
.rp-card__header {
|
|
12
12
|
@apply flex flex-col;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* Element - title */
|
|
16
|
-
.card__title {
|
|
16
|
+
.rp-card__title {
|
|
17
17
|
@apply text-sm leading-6 font-medium text-foreground;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* Element - description */
|
|
21
|
-
.card__description {
|
|
21
|
+
.rp-card__description {
|
|
22
22
|
@apply text-sm leading-5 text-muted;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/* Element - content */
|
|
26
|
-
.card__content {
|
|
26
|
+
.rp-card__content {
|
|
27
27
|
@apply flex flex-1 flex-col gap-1;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/* Element - footer */
|
|
31
|
-
.card__footer {
|
|
31
|
+
.rp-card__footer {
|
|
32
32
|
@apply flex flex-row items-center;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* Modifier - variant */
|
|
36
36
|
|
|
37
|
-
.card--transparent {
|
|
37
|
+
.rp-card--transparent {
|
|
38
38
|
@apply border-none bg-transparent shadow-none;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.card--default {
|
|
41
|
+
.rp-card--default {
|
|
42
42
|
@apply bg-surface;
|
|
43
43
|
|
|
44
44
|
/* Forced Colors Mode flattens the fill onto the page and strips the shadow, so the container
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.card--secondary {
|
|
52
|
+
.rp-card--secondary {
|
|
53
53
|
@apply bg-surface-secondary;
|
|
54
54
|
|
|
55
55
|
/* Forced Colors Mode flattens the fill onto the page and strips the shadow, so the container
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.card--tertiary {
|
|
63
|
+
.rp-card--tertiary {
|
|
64
64
|
@apply bg-surface-tertiary;
|
|
65
65
|
|
|
66
66
|
/* Forced Colors Mode flattens the fill onto the page and strips the shadow, so the container
|
|
@@ -1,46 +1,29 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const checkboxVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
control: string;
|
|
29
|
-
indicator: string;
|
|
30
|
-
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
31
|
-
variant: {
|
|
32
|
-
primary: {
|
|
33
|
-
base: string;
|
|
34
|
-
};
|
|
35
|
-
secondary: {
|
|
36
|
-
base: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
}, {
|
|
40
|
-
base: string;
|
|
41
|
-
content: string;
|
|
42
|
-
control: string;
|
|
43
|
-
indicator: string;
|
|
44
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const checkboxVariants: (props?: ({
|
|
3
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
4
|
+
} & {
|
|
5
|
+
variant?: "primary" | "secondary" | undefined;
|
|
6
|
+
}) | undefined) => {
|
|
7
|
+
base: (props?: ({
|
|
8
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
variant?: "primary" | "secondary" | undefined;
|
|
11
|
+
}) | undefined) => string;
|
|
12
|
+
content: (props?: ({
|
|
13
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
variant?: "primary" | "secondary" | undefined;
|
|
16
|
+
}) | undefined) => string;
|
|
17
|
+
control: (props?: ({
|
|
18
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
variant?: "primary" | "secondary" | undefined;
|
|
21
|
+
}) | undefined) => string;
|
|
22
|
+
indicator: (props?: ({
|
|
23
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
variant?: "primary" | "secondary" | undefined;
|
|
26
|
+
}) | undefined) => string;
|
|
27
|
+
};
|
|
45
28
|
export type CheckboxVariants = VariantProps<typeof checkboxVariants>;
|
|
46
29
|
//# sourceMappingURL=checkbox.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkbox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;CAoB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/checkbox/checkbox.styles.ts
|
|
3
3
|
const checkboxVariants = tv({
|
|
4
4
|
defaultVariants: { variant: "primary" },
|
|
5
5
|
slots: {
|
|
6
|
-
base: "checkbox",
|
|
7
|
-
content: "checkbox__content",
|
|
8
|
-
control: "checkbox__control",
|
|
9
|
-
indicator: "checkbox__indicator"
|
|
6
|
+
base: "rp-checkbox",
|
|
7
|
+
content: "rp-checkbox__content",
|
|
8
|
+
control: "rp-checkbox__control",
|
|
9
|
+
indicator: "rp-checkbox__indicator"
|
|
10
10
|
},
|
|
11
11
|
variants: { variant: {
|
|
12
|
-
primary: { base: "checkbox--primary" },
|
|
13
|
-
secondary: { base: "checkbox--secondary" }
|
|
12
|
+
primary: { base: "rp-checkbox--primary" },
|
|
13
|
+
secondary: { base: "rp-checkbox--secondary" }
|
|
14
14
|
} }
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const checkboxGroupVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}, undefined, "checkbox-group", {
|
|
8
|
-
variant: {
|
|
9
|
-
primary: "checkbox-group--primary";
|
|
10
|
-
secondary: "checkbox-group--secondary";
|
|
11
|
-
};
|
|
12
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
13
|
-
variant: {
|
|
14
|
-
primary: "checkbox-group--primary";
|
|
15
|
-
secondary: "checkbox-group--secondary";
|
|
16
|
-
};
|
|
17
|
-
}, undefined>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const checkboxGroupVariants: (props?: ({
|
|
3
|
+
class?: string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | (string | false | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
4
|
+
} & {
|
|
5
|
+
variant?: "primary" | "secondary" | undefined;
|
|
6
|
+
}) | undefined) => string;
|
|
18
7
|
export type CheckboxGroupVariants = VariantProps<typeof checkboxGroupVariants>;
|
|
19
8
|
//# sourceMappingURL=checkbox-group.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-group.styles.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox-group/checkbox-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkbox-group.styles.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox-group/checkbox-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,qBAAqB;;;;yBAWhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/checkbox-group/checkbox-group.styles.ts
|
|
3
3
|
const checkboxGroupVariants = tv({
|
|
4
|
-
base: "checkbox-group",
|
|
4
|
+
base: "rp-checkbox-group",
|
|
5
5
|
defaultVariants: { variant: "primary" },
|
|
6
6
|
variants: { variant: {
|
|
7
|
-
primary: "checkbox-group--primary",
|
|
8
|
-
secondary: "checkbox-group--secondary"
|
|
7
|
+
primary: "rp-checkbox-group--primary",
|
|
8
|
+
secondary: "rp-checkbox-group--secondary"
|
|
9
9
|
} }
|
|
10
10
|
});
|
|
11
11
|
//#endregion
|