@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
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/* Input group styles */
|
|
2
|
-
.input-group {
|
|
3
|
-
@apply inline-flex min-h-9 items-center rounded-field border
|
|
2
|
+
.rp-input-group {
|
|
3
|
+
@apply inline-flex min-h-9 items-center rounded-field border text-sm text-field-foreground shadow-field outline-none;
|
|
4
|
+
|
|
5
|
+
/* The fill, per state. The `--secondary` variant re-points these and declares nothing else. */
|
|
6
|
+
--input-group-bg: var(--field-background, var(--default));
|
|
7
|
+
--input-group-bg-hover: var(--field-hover);
|
|
8
|
+
--input-group-bg-focus: var(--field-focus);
|
|
9
|
+
|
|
10
|
+
background-color: var(--input-group-bg);
|
|
4
11
|
border-width: var(--border-width-field);
|
|
5
12
|
border-color: var(--field-border);
|
|
6
13
|
|
|
@@ -19,10 +26,6 @@
|
|
|
19
26
|
height: auto;
|
|
20
27
|
}
|
|
21
28
|
|
|
22
|
-
/**
|
|
23
|
-
* Transitions
|
|
24
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
25
|
-
*/
|
|
26
29
|
transition:
|
|
27
30
|
background-color 150ms var(--ease-smooth),
|
|
28
31
|
border-color 150ms var(--ease-smooth),
|
|
@@ -33,7 +36,7 @@
|
|
|
33
36
|
@media (hover: hover) {
|
|
34
37
|
&:hover:not(:focus-within),
|
|
35
38
|
&[data-hovered="true"]:not([data-focus-within="true"]) {
|
|
36
|
-
|
|
39
|
+
background-color: var(--input-group-bg-hover);
|
|
37
40
|
border-color: var(--field-border-hover);
|
|
38
41
|
}
|
|
39
42
|
}
|
|
@@ -43,13 +46,13 @@
|
|
|
43
46
|
&:has([data-slot="input-group-textarea"]:focus) {
|
|
44
47
|
@apply status-focused-field;
|
|
45
48
|
border-color: var(--field-border-focus);
|
|
46
|
-
background-color: var(--
|
|
49
|
+
background-color: var(--input-group-bg-focus);
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
/* Invalid state */
|
|
50
53
|
&[data-invalid="true"] {
|
|
51
54
|
@apply status-invalid-field;
|
|
52
|
-
background-color: var(--
|
|
55
|
+
background-color: var(--input-group-bg-focus);
|
|
53
56
|
border-color: var(--color-field-border-invalid);
|
|
54
57
|
}
|
|
55
58
|
|
|
@@ -70,21 +73,21 @@
|
|
|
70
73
|
*/
|
|
71
74
|
&:has([data-slot="input-group-input"]:-webkit-autofill),
|
|
72
75
|
&:has([data-slot="input-group-input"]:autofill) {
|
|
73
|
-
background-color: var(--
|
|
76
|
+
background-color: var(--input-group-bg-focus);
|
|
74
77
|
border-color: var(--field-border-focus);
|
|
75
78
|
}
|
|
76
79
|
}
|
|
77
80
|
|
|
78
|
-
.input-group__input {
|
|
81
|
+
.rp-input-group__input {
|
|
79
82
|
@apply flex-1 rounded-none border-0 bg-transparent px-3 field-line-md shadow-none outline-none placeholder:text-field-placeholder;
|
|
80
83
|
|
|
81
84
|
/* Remove border radius on left side when prefix is present */
|
|
82
|
-
.input-group:has([data-slot="input-group-prefix"]) & {
|
|
85
|
+
.rp-input-group:has([data-slot="input-group-prefix"]) & {
|
|
83
86
|
@apply rounded-s-none ps-0;
|
|
84
87
|
}
|
|
85
88
|
|
|
86
89
|
/* Remove border radius on right side when suffix is present */
|
|
87
|
-
.input-group:has([data-slot="input-group-suffix"]) & {
|
|
90
|
+
.rp-input-group:has([data-slot="input-group-suffix"]) & {
|
|
88
91
|
@apply rounded-e-none pe-0;
|
|
89
92
|
}
|
|
90
93
|
|
|
@@ -97,7 +100,7 @@
|
|
|
97
100
|
/**
|
|
98
101
|
* Neutralize the browser's per-input autofill paint so the inner <input>
|
|
99
102
|
* doesn't draw a sharp-cornered yellow rectangle. The unified highlight
|
|
100
|
-
* is applied to `.input-group` above. Preserve the autofilled text and
|
|
103
|
+
* is applied to `.rp-input-group` above. Preserve the autofilled text and
|
|
101
104
|
* caret colors, and pin the background-color transition so the inset
|
|
102
105
|
* box-shadow trick doesn't flicker on state changes.
|
|
103
106
|
*/
|
|
@@ -115,12 +118,12 @@
|
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
/* TextArea within InputGroup - uses same base class as input but with textarea-specific styles */
|
|
118
|
-
.input-group__input[data-slot="input-group-textarea"] {
|
|
121
|
+
.rp-input-group__input[data-slot="input-group-textarea"] {
|
|
119
122
|
min-height: 38px;
|
|
120
123
|
resize: vertical;
|
|
121
124
|
}
|
|
122
125
|
|
|
123
|
-
.input-group__prefix {
|
|
126
|
+
.rp-input-group__prefix {
|
|
124
127
|
@apply flex h-full items-center justify-center rounded-s-field rounded-e-none bg-transparent px-3 text-field-placeholder;
|
|
125
128
|
border-width: var(--border-width-field);
|
|
126
129
|
border-color: var(--field-border);
|
|
@@ -131,22 +134,18 @@
|
|
|
131
134
|
border-bottom: none;
|
|
132
135
|
|
|
133
136
|
/* Align to top when textarea is present */
|
|
134
|
-
.input-group:has([data-slot="input-group-textarea"]) & {
|
|
137
|
+
.rp-input-group:has([data-slot="input-group-textarea"]) & {
|
|
135
138
|
@apply items-start;
|
|
136
139
|
padding-top: 0.5rem;
|
|
137
140
|
}
|
|
138
141
|
|
|
139
|
-
/**
|
|
140
|
-
* Transitions
|
|
141
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
142
|
-
*/
|
|
143
142
|
transition:
|
|
144
143
|
background-color 150ms var(--ease-smooth),
|
|
145
144
|
border-color 150ms var(--ease-smooth);
|
|
146
145
|
@apply motion-reduce:transition-none;
|
|
147
146
|
}
|
|
148
147
|
|
|
149
|
-
.input-group__suffix {
|
|
148
|
+
.rp-input-group__suffix {
|
|
150
149
|
@apply flex h-full items-center justify-center rounded-s-none rounded-e-field bg-transparent px-3 text-field-placeholder;
|
|
151
150
|
border-width: var(--border-width-field);
|
|
152
151
|
border-color: var(--field-border);
|
|
@@ -157,15 +156,11 @@
|
|
|
157
156
|
border-bottom: none;
|
|
158
157
|
|
|
159
158
|
/* Align to top when textarea is present */
|
|
160
|
-
.input-group:has([data-slot="input-group-textarea"]) & {
|
|
159
|
+
.rp-input-group:has([data-slot="input-group-textarea"]) & {
|
|
161
160
|
@apply items-start;
|
|
162
161
|
padding-top: 0.5rem;
|
|
163
162
|
}
|
|
164
163
|
|
|
165
|
-
/**
|
|
166
|
-
* Transitions
|
|
167
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
168
|
-
*/
|
|
169
164
|
transition:
|
|
170
165
|
background-color 150ms var(--ease-smooth),
|
|
171
166
|
border-color 150ms var(--ease-smooth);
|
|
@@ -173,37 +168,17 @@
|
|
|
173
168
|
}
|
|
174
169
|
|
|
175
170
|
/* Variant property definitions */
|
|
176
|
-
.input-group--primary {
|
|
171
|
+
.rp-input-group--primary {
|
|
177
172
|
/* Default styles */
|
|
178
173
|
}
|
|
179
174
|
|
|
180
|
-
.input-group--secondary {
|
|
175
|
+
.rp-input-group--secondary {
|
|
181
176
|
@apply shadow-none;
|
|
182
|
-
background-color: var(--input-group-bg);
|
|
183
177
|
|
|
184
178
|
--input-group-bg: var(--default);
|
|
185
179
|
--input-group-bg-hover: var(--default-hover);
|
|
186
180
|
--input-group-bg-focus: var(--default);
|
|
187
181
|
|
|
188
|
-
@media (hover: hover) {
|
|
189
|
-
&:hover:not(:focus-within),
|
|
190
|
-
&[data-hovered="true"]:not([data-focus-within="true"]) {
|
|
191
|
-
background-color: var(--input-group-bg-hover);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&:has([data-slot="input-group-input"]:focus),
|
|
196
|
-
&:has([data-slot="input-group-textarea"]:focus) {
|
|
197
|
-
background-color: var(--input-group-bg-focus);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/* Invalid state */
|
|
201
|
-
&[data-invalid="true"] {
|
|
202
|
-
@apply status-invalid-field;
|
|
203
|
-
border-color: var(--color-field-border-invalid);
|
|
204
|
-
background-color: var(--input-group-bg-focus);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
182
|
[data-slot="input-group-input"],
|
|
208
183
|
[data-slot="input-group-textarea"] {
|
|
209
184
|
@apply bg-transparent;
|
|
@@ -211,7 +186,7 @@
|
|
|
211
186
|
}
|
|
212
187
|
|
|
213
188
|
/* Full width modifier */
|
|
214
|
-
.input-group--full-width {
|
|
189
|
+
.rp-input-group--full-width {
|
|
215
190
|
@apply w-full;
|
|
216
191
|
}
|
|
217
192
|
|
|
@@ -221,18 +196,18 @@
|
|
|
221
196
|
|
|
222
197
|
/* The shell states the floor and the control inside carries the metrics, which is the same split
|
|
223
198
|
* the base makes - the group may grow around a textarea, so it cannot state a height. */
|
|
224
|
-
.input-group--sm {
|
|
199
|
+
.rp-input-group--sm {
|
|
225
200
|
@apply min-h-8;
|
|
226
201
|
|
|
227
|
-
.input-group__input {
|
|
202
|
+
.rp-input-group__input {
|
|
228
203
|
@apply field-line-sm;
|
|
229
204
|
}
|
|
230
205
|
}
|
|
231
206
|
|
|
232
|
-
.input-group--lg {
|
|
207
|
+
.rp-input-group--lg {
|
|
233
208
|
@apply min-h-10;
|
|
234
209
|
|
|
235
|
-
.input-group__input {
|
|
210
|
+
.rp-input-group__input {
|
|
236
211
|
@apply field-line-lg;
|
|
237
212
|
}
|
|
238
213
|
}
|
|
@@ -1,55 +1,44 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const inputOTPVariants:
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
}, {
|
|
46
|
-
base: string;
|
|
47
|
-
caret: string;
|
|
48
|
-
group: string;
|
|
49
|
-
input: string;
|
|
50
|
-
separator: string;
|
|
51
|
-
slot: string;
|
|
52
|
-
slotValue: string;
|
|
53
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const inputOTPVariants: (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
|
+
caret: (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
|
+
group: (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
|
+
input: (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
|
+
separator: (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?: "primary" | "secondary" | undefined;
|
|
31
|
+
}) | undefined) => string;
|
|
32
|
+
slot: (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?: "primary" | "secondary" | undefined;
|
|
36
|
+
}) | undefined) => string;
|
|
37
|
+
slotValue: (props?: ({
|
|
38
|
+
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;
|
|
39
|
+
} & {
|
|
40
|
+
variant?: "primary" | "secondary" | undefined;
|
|
41
|
+
}) | undefined) => string;
|
|
42
|
+
};
|
|
54
43
|
export type InputOTPVariants = VariantProps<typeof inputOTPVariants>;
|
|
55
44
|
//# sourceMappingURL=input-otp.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.styles.d.ts","sourceRoot":"","sources":["../../../src/components/input-otp/input-otp.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"input-otp.styles.d.ts","sourceRoot":"","sources":["../../../src/components/input-otp/input-otp.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { tv } from "
|
|
1
|
+
import { tv } from "../../tv.js";
|
|
2
2
|
//#region src/components/input-otp/input-otp.styles.ts
|
|
3
3
|
const inputOTPVariants = tv({
|
|
4
4
|
defaultVariants: { variant: "primary" },
|
|
5
5
|
slots: {
|
|
6
|
-
base: "input-otp",
|
|
7
|
-
caret: "input-otp__caret",
|
|
8
|
-
group: "input-otp__group",
|
|
9
|
-
input: "input-otp__input",
|
|
10
|
-
separator: "input-otp__separator",
|
|
11
|
-
slot: "input-otp__slot",
|
|
12
|
-
slotValue: "input-otp__slot-value"
|
|
6
|
+
base: "rp-input-otp",
|
|
7
|
+
caret: "rp-input-otp__caret",
|
|
8
|
+
group: "rp-input-otp__group",
|
|
9
|
+
input: "rp-input-otp__input",
|
|
10
|
+
separator: "rp-input-otp__separator",
|
|
11
|
+
slot: "rp-input-otp__slot",
|
|
12
|
+
slotValue: "rp-input-otp__slot-value"
|
|
13
13
|
},
|
|
14
14
|
variants: { variant: {
|
|
15
|
-
primary: { base: "input-otp--primary" },
|
|
16
|
-
secondary: { base: "input-otp--secondary" }
|
|
15
|
+
primary: { base: "rp-input-otp--primary" },
|
|
16
|
+
secondary: { base: "rp-input-otp--secondary" }
|
|
17
17
|
} }
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* Base container */
|
|
2
|
-
.input-otp {
|
|
2
|
+
.rp-input-otp {
|
|
3
3
|
@apply relative flex w-full items-center gap-2;
|
|
4
4
|
|
|
5
5
|
&[data-disabled="true"] {
|
|
@@ -8,23 +8,26 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
/* Group - slots separated with gap */
|
|
11
|
-
.input-otp__group {
|
|
11
|
+
.rp-input-otp__group {
|
|
12
12
|
@apply flex min-w-0 items-center gap-2;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* Individual slot box - fully rounded, standalone */
|
|
16
|
-
.input-otp__slot {
|
|
16
|
+
.rp-input-otp__slot {
|
|
17
17
|
@apply relative flex h-10 w-9.5 min-w-0 flex-1 items-center justify-center;
|
|
18
|
-
@apply border
|
|
18
|
+
@apply border text-field-foreground shadow-field;
|
|
19
|
+
|
|
20
|
+
/* The fill, per state. The `--secondary` variant re-points these and declares nothing else. */
|
|
21
|
+
--input-otp-slot-bg: var(--field-background, var(--default));
|
|
22
|
+
--input-otp-slot-bg-hover: var(--field-hover);
|
|
23
|
+
--input-otp-slot-bg-focus: var(--field-focus);
|
|
24
|
+
|
|
25
|
+
background-color: var(--input-otp-slot-bg);
|
|
19
26
|
@apply rounded-field text-sm font-semibold outline-none;
|
|
20
27
|
|
|
21
28
|
border-width: var(--border-width-field);
|
|
22
29
|
border-color: var(--field-border);
|
|
23
30
|
|
|
24
|
-
/**
|
|
25
|
-
* Transitions
|
|
26
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
27
|
-
*/
|
|
28
31
|
transition:
|
|
29
32
|
background-color 150ms var(--ease-smooth),
|
|
30
33
|
border-color 150ms var(--ease-smooth),
|
|
@@ -35,19 +38,21 @@
|
|
|
35
38
|
@media (hover: hover) {
|
|
36
39
|
&:hover,
|
|
37
40
|
&[data-hovered="true"] {
|
|
38
|
-
|
|
41
|
+
background-color: var(--input-otp-slot-bg-hover);
|
|
39
42
|
border-color: var(--field-border-hover);
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
/* Active/Focus */
|
|
44
47
|
&[data-active="true"] {
|
|
45
|
-
@apply z-10
|
|
48
|
+
@apply z-10 status-focused-field;
|
|
49
|
+
|
|
50
|
+
background-color: var(--input-otp-slot-bg-focus);
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
/* Filled */
|
|
49
54
|
&[data-filled="true"] {
|
|
50
|
-
|
|
55
|
+
background-color: var(--input-otp-slot-bg-focus);
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
/* Disabled */
|
|
@@ -58,61 +63,44 @@
|
|
|
58
63
|
/* Invalid */
|
|
59
64
|
&[data-invalid="true"] {
|
|
60
65
|
@apply status-invalid-field;
|
|
61
|
-
background-color: var(--
|
|
66
|
+
background-color: var(--input-otp-slot-bg-focus);
|
|
62
67
|
}
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
/* Slot value */
|
|
66
|
-
.input-otp__slot-value {
|
|
71
|
+
.rp-input-otp__slot-value {
|
|
67
72
|
@apply text-lg leading-6 tracking-[-0.27px];
|
|
68
73
|
|
|
69
|
-
|
|
70
|
-
* Animations
|
|
71
|
-
* CRITICAL: motion-reduce must be AFTER animation for correct override specificity
|
|
72
|
-
*/
|
|
73
|
-
animation: slot-value-in 250ms var(--ease-smooth) both;
|
|
74
|
+
animation: rp-slot-value-in 250ms var(--ease-smooth) both;
|
|
74
75
|
transform-origin: bottom center;
|
|
75
76
|
@apply motion-reduce:animate-none;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
/* Caret */
|
|
79
|
-
.input-otp__caret {
|
|
80
|
+
.rp-input-otp__caret {
|
|
80
81
|
@apply absolute h-4 w-[2px] animate-caret-blink rounded-sm bg-field-placeholder;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
/* Separator */
|
|
84
|
-
.input-otp__separator {
|
|
85
|
+
.rp-input-otp__separator {
|
|
85
86
|
@apply h-[2px] w-[6px] shrink-0 rounded-sm bg-separator;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
/* Variant property definitions */
|
|
89
|
-
.input-otp--primary {
|
|
90
|
+
.rp-input-otp--primary {
|
|
90
91
|
/* Default styles */
|
|
91
92
|
}
|
|
92
93
|
|
|
93
|
-
.input-otp--secondary .input-otp__slot {
|
|
94
|
+
.rp-input-otp--secondary .rp-input-otp__slot {
|
|
94
95
|
@apply shadow-none;
|
|
95
|
-
background-color: var(--input-otp-slot-bg);
|
|
96
96
|
|
|
97
97
|
--input-otp-slot-bg: var(--default);
|
|
98
98
|
--input-otp-slot-bg-hover: var(--default-hover);
|
|
99
99
|
--input-otp-slot-bg-focus: var(--default);
|
|
100
|
-
|
|
101
|
-
@media (hover: hover) {
|
|
102
|
-
&:hover,
|
|
103
|
-
&[data-hovered="true"] {
|
|
104
|
-
background-color: var(--input-otp-slot-bg-hover);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&[data-active="true"],
|
|
109
|
-
&[data-filled="true"] {
|
|
110
|
-
background-color: var(--input-otp-slot-bg-focus);
|
|
111
|
-
}
|
|
112
100
|
}
|
|
113
101
|
|
|
114
102
|
/* Animations */
|
|
115
|
-
@keyframes slot-value-in {
|
|
103
|
+
@keyframes rp-slot-value-in {
|
|
116
104
|
0% {
|
|
117
105
|
opacity: 0;
|
|
118
106
|
transform: translateY(8px) scale(0.8);
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
.input {
|
|
2
|
-
@apply rounded-field border
|
|
1
|
+
.rp-input {
|
|
2
|
+
@apply rounded-field border px-3 field-line-md text-field-foreground shadow-field outline-none placeholder:text-field-placeholder;
|
|
3
|
+
|
|
4
|
+
/* The fill, per state. The `--secondary` variant re-points these and declares nothing else. */
|
|
5
|
+
--input-bg: var(--field-background, var(--default));
|
|
6
|
+
--input-bg-hover: var(--field-hover);
|
|
7
|
+
--input-bg-focus: var(--field-focus);
|
|
8
|
+
|
|
9
|
+
background-color: var(--input-bg);
|
|
3
10
|
|
|
4
11
|
border-width: var(--border-width-field);
|
|
5
12
|
border-color: var(--field-border);
|
|
@@ -14,10 +21,6 @@
|
|
|
14
21
|
outline-offset: -1px;
|
|
15
22
|
}
|
|
16
23
|
|
|
17
|
-
/**
|
|
18
|
-
* Transitions
|
|
19
|
-
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
20
|
-
*/
|
|
21
24
|
transition:
|
|
22
25
|
background-color 150ms var(--ease-smooth),
|
|
23
26
|
border-color 150ms var(--ease-smooth),
|
|
@@ -27,7 +30,7 @@
|
|
|
27
30
|
@media (hover: hover) {
|
|
28
31
|
&:hover:not(:focus):not(:focus-visible),
|
|
29
32
|
&[data-hovered="true"]:not([data-focused="true"]):not([data-focus-visible="true"]) {
|
|
30
|
-
|
|
33
|
+
background-color: var(--input-bg-hover);
|
|
31
34
|
border-color: var(--field-border-hover);
|
|
32
35
|
}
|
|
33
36
|
}
|
|
@@ -37,7 +40,7 @@
|
|
|
37
40
|
&[data-focused="true"] {
|
|
38
41
|
@apply status-focused-field;
|
|
39
42
|
border-color: var(--field-border-focus);
|
|
40
|
-
background-color: var(--
|
|
43
|
+
background-color: var(--input-bg-focus);
|
|
41
44
|
}
|
|
42
45
|
|
|
43
46
|
/* Focus visible state */
|
|
@@ -48,7 +51,7 @@
|
|
|
48
51
|
/* Invalid state */
|
|
49
52
|
&[data-invalid="true"] {
|
|
50
53
|
@apply status-invalid-field;
|
|
51
|
-
background-color: var(--
|
|
54
|
+
background-color: var(--input-bg-focus);
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
/* Disabled state */
|
|
@@ -60,44 +63,20 @@
|
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
/* Variant property definitions */
|
|
63
|
-
.input--primary {
|
|
66
|
+
.rp-input--primary {
|
|
64
67
|
/* Default styles */
|
|
65
68
|
}
|
|
66
69
|
|
|
67
|
-
.input--secondary {
|
|
70
|
+
.rp-input--secondary {
|
|
68
71
|
@apply shadow-none;
|
|
69
|
-
background-color: var(--input-bg);
|
|
70
72
|
|
|
71
73
|
--input-bg: var(--default);
|
|
72
74
|
--input-bg-hover: var(--default-hover);
|
|
73
75
|
--input-bg-focus: var(--default);
|
|
74
|
-
|
|
75
|
-
@media (hover: hover) {
|
|
76
|
-
&:hover:not(:focus):not(:focus-visible),
|
|
77
|
-
&[data-hovered="true"]:not([data-focus-visible="true"]):not([data-focused="true"]) {
|
|
78
|
-
background-color: var(--input-bg-hover);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&:focus,
|
|
83
|
-
&[data-focused="true"] {
|
|
84
|
-
background-color: var(--input-bg-focus);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* Focus visible state */
|
|
88
|
-
&:focus-visible:not(:focus),
|
|
89
|
-
&[data-focus-visible="true"] {
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/* Invalid state */
|
|
93
|
-
&[data-invalid="true"] {
|
|
94
|
-
@apply status-invalid-field;
|
|
95
|
-
background-color: var(--input-bg-focus);
|
|
96
|
-
}
|
|
97
76
|
}
|
|
98
77
|
|
|
99
78
|
/* Full width modifier */
|
|
100
|
-
.input--full-width {
|
|
79
|
+
.rp-input--full-width {
|
|
101
80
|
@apply w-full;
|
|
102
81
|
}
|
|
103
82
|
|
|
@@ -105,10 +84,10 @@
|
|
|
105
84
|
Size variants
|
|
106
85
|
========================================================================== */
|
|
107
86
|
|
|
108
|
-
.input--sm {
|
|
87
|
+
.rp-input--sm {
|
|
109
88
|
@apply field-line-sm;
|
|
110
89
|
}
|
|
111
90
|
|
|
112
|
-
.input--lg {
|
|
91
|
+
.rp-input--lg {
|
|
113
92
|
@apply field-line-lg;
|
|
114
93
|
}
|
|
@@ -1,31 +1,24 @@
|
|
|
1
|
-
import type { VariantProps } from "
|
|
2
|
-
export declare const kbdVariants:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
light: "kbd--light";
|
|
24
|
-
};
|
|
25
|
-
}, {
|
|
26
|
-
abbr: string;
|
|
27
|
-
base: string;
|
|
28
|
-
content: string;
|
|
29
|
-
}>>;
|
|
1
|
+
import type { VariantProps } from "../../tv";
|
|
2
|
+
export declare const kbdVariants: (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" | "light" | undefined;
|
|
6
|
+
}) | undefined) => {
|
|
7
|
+
abbr: (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" | "light" | undefined;
|
|
11
|
+
}) | undefined) => string;
|
|
12
|
+
base: (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" | "light" | undefined;
|
|
16
|
+
}) | undefined) => string;
|
|
17
|
+
content: (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" | "light" | undefined;
|
|
21
|
+
}) | undefined) => string;
|
|
22
|
+
};
|
|
30
23
|
export type KbdVariants = VariantProps<typeof kbdVariants>;
|
|
31
24
|
//# sourceMappingURL=kbd.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd.styles.d.ts","sourceRoot":"","sources":["../../../src/components/kbd/kbd.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"kbd.styles.d.ts","sourceRoot":"","sources":["../../../src/components/kbd/kbd.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;CAatB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC"}
|