@ropav/styles 0.3.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/LICENSE +199 -0
- package/README.md +159 -0
- package/dist/base/base.css +31 -0
- package/dist/base/scrollbar.css +30 -0
- package/dist/components/accordion/accordion.styles.d.ts +54 -0
- package/dist/components/accordion/accordion.styles.d.ts.map +1 -0
- package/dist/components/accordion/accordion.styles.js +20 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +2 -0
- package/dist/components/accordion.css +152 -0
- package/dist/components/alert/alert.styles.d.ts +76 -0
- package/dist/components/alert/alert.styles.d.ts.map +1 -0
- package/dist/components/alert/alert.styles.js +21 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +2 -0
- package/dist/components/alert-dialog/alert-dialog.styles.d.ts +175 -0
- package/dist/components/alert-dialog/alert-dialog.styles.d.ts.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.styles.js +44 -0
- package/dist/components/alert-dialog/index.d.ts +2 -0
- package/dist/components/alert-dialog/index.d.ts.map +1 -0
- package/dist/components/alert-dialog/index.js +2 -0
- package/dist/components/alert-dialog.css +314 -0
- package/dist/components/alert.css +69 -0
- package/dist/components/autocomplete/autocomplete.styles.d.ts +76 -0
- package/dist/components/autocomplete/autocomplete.styles.d.ts.map +1 -0
- package/dist/components/autocomplete/autocomplete.styles.js +32 -0
- package/dist/components/autocomplete/index.d.ts +2 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +2 -0
- package/dist/components/autocomplete.css +283 -0
- package/dist/components/avatar/avatar.styles.d.ts +121 -0
- package/dist/components/avatar/avatar.styles.d.ts.map +1 -0
- package/dist/components/avatar/avatar.styles.js +33 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +2 -0
- package/dist/components/avatar.css +82 -0
- package/dist/components/badge/badge.styles.d.ts +178 -0
- package/dist/components/badge/badge.styles.d.ts.map +1 -0
- package/dist/components/badge/badge.styles.js +42 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +2 -0
- package/dist/components/badge.css +167 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +46 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.styles.js +10 -0
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/breadcrumbs/index.js +2 -0
- package/dist/components/breadcrumbs.css +28 -0
- package/dist/components/button/button.styles.d.ts +70 -0
- package/dist/components/button/button.styles.d.ts.map +1 -0
- package/dist/components/button/button.styles.js +34 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +2 -0
- package/dist/components/button-group/button-group.styles.d.ts +58 -0
- package/dist/components/button-group/button-group.styles.d.ts.map +1 -0
- package/dist/components/button-group/button-group.styles.js +24 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +2 -0
- package/dist/components/button-group.css +144 -0
- package/dist/components/button.css +158 -0
- package/dist/components/calendar/calendar.styles.d.ts +79 -0
- package/dist/components/calendar/calendar.styles.d.ts.map +1 -0
- package/dist/components/calendar/calendar.styles.js +34 -0
- package/dist/components/calendar/index.d.ts +2 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +2 -0
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.d.ts +52 -0
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.d.ts.map +1 -0
- package/dist/components/calendar-year-picker/calendar-year-picker.styles.js +11 -0
- package/dist/components/calendar-year-picker/index.d.ts +2 -0
- package/dist/components/calendar-year-picker/index.d.ts.map +1 -0
- package/dist/components/calendar-year-picker/index.js +2 -0
- package/dist/components/calendar-year-picker.css +159 -0
- package/dist/components/calendar.css +273 -0
- package/dist/components/card/card.styles.d.ts +71 -0
- package/dist/components/card/card.styles.d.ts.map +1 -0
- package/dist/components/card/card.styles.js +21 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +2 -0
- package/dist/components/card.css +51 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +46 -0
- package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.styles.js +17 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +2 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts +19 -0
- package/dist/components/checkbox-group/checkbox-group.styles.d.ts.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.styles.js +12 -0
- package/dist/components/checkbox-group/index.d.ts +2 -0
- package/dist/components/checkbox-group/index.d.ts.map +1 -0
- package/dist/components/checkbox-group/index.js +2 -0
- package/dist/components/checkbox-group.css +7 -0
- package/dist/components/checkbox.css +264 -0
- package/dist/components/chip/chip.styles.d.ts +142 -0
- package/dist/components/chip/chip.styles.d.ts.map +1 -0
- package/dist/components/chip/chip.styles.js +34 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/chip/index.d.ts.map +1 -0
- package/dist/components/chip/index.js +2 -0
- package/dist/components/chip.css +112 -0
- package/dist/components/close-button/close-button.styles.d.ts +16 -0
- package/dist/components/close-button/close-button.styles.d.ts.map +1 -0
- package/dist/components/close-button/close-button.styles.js +9 -0
- package/dist/components/close-button/index.d.ts +2 -0
- package/dist/components/close-button/index.d.ts.map +1 -0
- package/dist/components/close-button/index.js +2 -0
- package/dist/components/close-button.css +65 -0
- package/dist/components/color-area/color-area.styles.d.ts +34 -0
- package/dist/components/color-area/color-area.styles.d.ts.map +1 -0
- package/dist/components/color-area/color-area.styles.js +15 -0
- package/dist/components/color-area/index.d.ts +2 -0
- package/dist/components/color-area/index.d.ts.map +1 -0
- package/dist/components/color-area/index.js +2 -0
- package/dist/components/color-area.css +80 -0
- package/dist/components/color-field/color-field.styles.d.ts +19 -0
- package/dist/components/color-field/color-field.styles.d.ts.map +1 -0
- package/dist/components/color-field/color-field.styles.js +12 -0
- package/dist/components/color-field/index.d.ts +2 -0
- package/dist/components/color-field/index.d.ts.map +1 -0
- package/dist/components/color-field/index.js +2 -0
- package/dist/components/color-field.css +24 -0
- package/dist/components/color-input-group/color-input-group.styles.d.ts +64 -0
- package/dist/components/color-input-group/color-input-group.styles.d.ts.map +1 -0
- package/dist/components/color-input-group/color-input-group.styles.js +26 -0
- package/dist/components/color-input-group/index.d.ts +2 -0
- package/dist/components/color-input-group/index.d.ts.map +1 -0
- package/dist/components/color-input-group/index.js +2 -0
- package/dist/components/color-input-group.css +135 -0
- package/dist/components/color-picker/color-picker.styles.d.ts +40 -0
- package/dist/components/color-picker/color-picker.styles.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker.styles.js +9 -0
- package/dist/components/color-picker/index.d.ts +2 -0
- package/dist/components/color-picker/index.d.ts.map +1 -0
- package/dist/components/color-picker/index.js +2 -0
- package/dist/components/color-picker.css +95 -0
- package/dist/components/color-slider/color-slider.styles.d.ts +46 -0
- package/dist/components/color-slider/color-slider.styles.d.ts.map +1 -0
- package/dist/components/color-slider/color-slider.styles.js +10 -0
- package/dist/components/color-slider/index.d.ts +2 -0
- package/dist/components/color-slider/index.d.ts.map +1 -0
- package/dist/components/color-slider/index.js +2 -0
- package/dist/components/color-slider.css +256 -0
- package/dist/components/color-swatch/color-swatch.styles.d.ts +40 -0
- package/dist/components/color-swatch/color-swatch.styles.d.ts.map +1 -0
- package/dist/components/color-swatch/color-swatch.styles.js +24 -0
- package/dist/components/color-swatch/index.d.ts +2 -0
- package/dist/components/color-swatch/index.d.ts.map +1 -0
- package/dist/components/color-swatch/index.js +2 -0
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.d.ts +121 -0
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.d.ts.map +1 -0
- package/dist/components/color-swatch-picker/color-swatch-picker.styles.js +34 -0
- package/dist/components/color-swatch-picker/index.d.ts +2 -0
- package/dist/components/color-swatch-picker/index.d.ts.map +1 -0
- package/dist/components/color-swatch-picker/index.js +2 -0
- package/dist/components/color-swatch-picker.css +239 -0
- package/dist/components/color-swatch.css +58 -0
- package/dist/components/combo-box/combo-box.styles.d.ts +46 -0
- package/dist/components/combo-box/combo-box.styles.d.ts.map +1 -0
- package/dist/components/combo-box/combo-box.styles.js +21 -0
- package/dist/components/combo-box/index.d.ts +2 -0
- package/dist/components/combo-box/index.d.ts.map +1 -0
- package/dist/components/combo-box/index.js +2 -0
- package/dist/components/combo-box.css +184 -0
- package/dist/components/date-field/date-field.styles.d.ts +19 -0
- package/dist/components/date-field/date-field.styles.d.ts.map +1 -0
- package/dist/components/date-field/date-field.styles.js +12 -0
- package/dist/components/date-field/index.d.ts +2 -0
- package/dist/components/date-field/index.d.ts.map +1 -0
- package/dist/components/date-field/index.js +2 -0
- package/dist/components/date-field.css +20 -0
- package/dist/components/date-input-group/date-input-group.styles.d.ts +70 -0
- package/dist/components/date-input-group/date-input-group.styles.d.ts.map +1 -0
- package/dist/components/date-input-group/date-input-group.styles.js +28 -0
- package/dist/components/date-input-group/index.d.ts +2 -0
- package/dist/components/date-input-group/index.d.ts.map +1 -0
- package/dist/components/date-input-group/index.js +2 -0
- package/dist/components/date-input-group.css +182 -0
- package/dist/components/date-picker/date-picker.styles.d.ts +46 -0
- package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.styles.js +10 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.d.ts.map +1 -0
- package/dist/components/date-picker/index.js +2 -0
- package/dist/components/date-picker.css +87 -0
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts +52 -0
- package/dist/components/date-range-picker/date-range-picker.styles.d.ts.map +1 -0
- package/dist/components/date-range-picker/date-range-picker.styles.js +11 -0
- package/dist/components/date-range-picker/index.d.ts +2 -0
- package/dist/components/date-range-picker/index.d.ts.map +1 -0
- package/dist/components/date-range-picker/index.js +2 -0
- package/dist/components/date-range-picker.css +91 -0
- package/dist/components/description/description.styles.d.ts +4 -0
- package/dist/components/description/description.styles.d.ts.map +1 -0
- package/dist/components/description/description.styles.js +5 -0
- package/dist/components/description/index.d.ts +2 -0
- package/dist/components/description/index.d.ts.map +1 -0
- package/dist/components/description/index.js +2 -0
- package/dist/components/description.css +4 -0
- package/dist/components/disclosure/disclosure.styles.d.ts +30 -0
- package/dist/components/disclosure/disclosure.styles.d.ts.map +1 -0
- package/dist/components/disclosure/disclosure.styles.js +17 -0
- package/dist/components/disclosure/index.d.ts +2 -0
- package/dist/components/disclosure/index.d.ts.map +1 -0
- package/dist/components/disclosure/index.js +2 -0
- package/dist/components/disclosure-group/disclosure-group.styles.d.ts +10 -0
- package/dist/components/disclosure-group/disclosure-group.styles.d.ts.map +1 -0
- package/dist/components/disclosure-group/disclosure-group.styles.js +9 -0
- package/dist/components/disclosure-group/index.d.ts +2 -0
- package/dist/components/disclosure-group/index.d.ts.map +1 -0
- package/dist/components/disclosure-group/index.js +2 -0
- package/dist/components/disclosure-group.css +7 -0
- package/dist/components/disclosure.css +63 -0
- package/dist/components/drawer/drawer.styles.d.ts +127 -0
- package/dist/components/drawer/drawer.styles.d.ts.map +1 -0
- package/dist/components/drawer/drawer.styles.js +47 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +2 -0
- package/dist/components/drawer.css +298 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +46 -0
- package/dist/components/dropdown/dropdown.styles.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.styles.js +10 -0
- package/dist/components/dropdown/index.d.ts +2 -0
- package/dist/components/dropdown/index.d.ts.map +1 -0
- package/dist/components/dropdown/index.js +2 -0
- package/dist/components/dropdown.css +129 -0
- package/dist/components/empty-state/empty-state.styles.d.ts +4 -0
- package/dist/components/empty-state/empty-state.styles.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state.styles.js +5 -0
- package/dist/components/empty-state/index.d.ts +2 -0
- package/dist/components/empty-state/index.d.ts.map +1 -0
- package/dist/components/empty-state/index.js +2 -0
- package/dist/components/empty-state.css +4 -0
- package/dist/components/error-message/error-message.styles.d.ts +4 -0
- package/dist/components/error-message/error-message.styles.d.ts.map +1 -0
- package/dist/components/error-message/error-message.styles.js +5 -0
- package/dist/components/error-message/index.d.ts +2 -0
- package/dist/components/error-message/index.d.ts.map +1 -0
- package/dist/components/error-message/index.js +2 -0
- package/dist/components/error-message.css +13 -0
- package/dist/components/field-error/field-error.styles.d.ts +4 -0
- package/dist/components/field-error/field-error.styles.d.ts.map +1 -0
- package/dist/components/field-error/field-error.styles.js +5 -0
- package/dist/components/field-error/index.d.ts +2 -0
- package/dist/components/field-error/index.d.ts.map +1 -0
- package/dist/components/field-error/index.js +2 -0
- package/dist/components/field-error.css +27 -0
- package/dist/components/fieldset/fieldset.styles.d.ts +52 -0
- package/dist/components/fieldset/fieldset.styles.d.ts.map +1 -0
- package/dist/components/fieldset/fieldset.styles.js +11 -0
- package/dist/components/fieldset/index.d.ts +2 -0
- package/dist/components/fieldset/index.d.ts.map +1 -0
- package/dist/components/fieldset/index.js +2 -0
- package/dist/components/fieldset.css +18 -0
- package/dist/components/header/header.styles.d.ts +2 -0
- package/dist/components/header/header.styles.d.ts.map +1 -0
- package/dist/components/header/header.styles.js +5 -0
- package/dist/components/header/index.d.ts +2 -0
- package/dist/components/header/index.d.ts.map +1 -0
- package/dist/components/header/index.js +2 -0
- package/dist/components/header.css +7 -0
- package/dist/components/index.css +160 -0
- package/dist/components/index.d.ts +84 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +2 -0
- package/dist/components/input/input.styles.d.ts +31 -0
- package/dist/components/input/input.styles.d.ts.map +1 -0
- package/dist/components/input/input.styles.js +21 -0
- package/dist/components/input-group/index.d.ts +2 -0
- package/dist/components/input-group/index.d.ts.map +1 -0
- package/dist/components/input-group/index.js +2 -0
- package/dist/components/input-group/input-group.styles.d.ts +64 -0
- package/dist/components/input-group/input-group.styles.d.ts.map +1 -0
- package/dist/components/input-group/input-group.styles.js +26 -0
- package/dist/components/input-group.css +207 -0
- package/dist/components/input-otp/index.d.ts +2 -0
- package/dist/components/input-otp/index.d.ts.map +1 -0
- package/dist/components/input-otp/index.js +2 -0
- package/dist/components/input-otp/input-otp.styles.d.ts +55 -0
- package/dist/components/input-otp/input-otp.styles.d.ts.map +1 -0
- package/dist/components/input-otp/input-otp.styles.js +20 -0
- package/dist/components/input-otp.css +124 -0
- package/dist/components/input.css +92 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.d.ts.map +1 -0
- package/dist/components/kbd/index.js +2 -0
- package/dist/components/kbd/kbd.styles.d.ts +31 -0
- package/dist/components/kbd/kbd.styles.d.ts.map +1 -0
- package/dist/components/kbd/kbd.styles.js +16 -0
- package/dist/components/kbd.css +27 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/label/index.js +2 -0
- package/dist/components/label/label.styles.d.ts +34 -0
- package/dist/components/label/label.styles.d.ts.map +1 -0
- package/dist/components/label/label.styles.js +17 -0
- package/dist/components/label.css +28 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/index.d.ts.map +1 -0
- package/dist/components/link/index.js +2 -0
- package/dist/components/link/link.styles.d.ts +36 -0
- package/dist/components/link/link.styles.d.ts.map +1 -0
- package/dist/components/link/link.styles.js +8 -0
- package/dist/components/link.css +79 -0
- package/dist/components/list-box/index.d.ts +2 -0
- package/dist/components/list-box/index.d.ts.map +1 -0
- package/dist/components/list-box/index.js +2 -0
- package/dist/components/list-box/list-box.styles.d.ts +19 -0
- package/dist/components/list-box/list-box.styles.d.ts.map +1 -0
- package/dist/components/list-box/list-box.styles.js +12 -0
- package/dist/components/list-box-item/index.d.ts +2 -0
- package/dist/components/list-box-item/index.d.ts.map +1 -0
- package/dist/components/list-box-item/index.js +2 -0
- package/dist/components/list-box-item/list-box-item.styles.d.ts +40 -0
- package/dist/components/list-box-item/list-box-item.styles.d.ts.map +1 -0
- package/dist/components/list-box-item/list-box-item.styles.js +15 -0
- package/dist/components/list-box-item.css +116 -0
- package/dist/components/list-box-section/index.d.ts +2 -0
- package/dist/components/list-box-section/index.d.ts.map +1 -0
- package/dist/components/list-box-section/index.js +2 -0
- package/dist/components/list-box-section/list-box-section.styles.d.ts +4 -0
- package/dist/components/list-box-section/list-box-section.styles.d.ts.map +1 -0
- package/dist/components/list-box-section/list-box-section.styles.js +5 -0
- package/dist/components/list-box-section.css +7 -0
- package/dist/components/list-box.css +25 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +2 -0
- package/dist/components/menu/menu.styles.d.ts +4 -0
- package/dist/components/menu/menu.styles.d.ts.map +1 -0
- package/dist/components/menu/menu.styles.js +5 -0
- package/dist/components/menu-item/index.d.ts +2 -0
- package/dist/components/menu-item/index.d.ts.map +1 -0
- package/dist/components/menu-item/index.js +2 -0
- package/dist/components/menu-item/menu-item.styles.d.ts +43 -0
- package/dist/components/menu-item/menu-item.styles.d.ts.map +1 -0
- package/dist/components/menu-item/menu-item.styles.js +16 -0
- package/dist/components/menu-item.css +163 -0
- package/dist/components/menu-section/index.d.ts +2 -0
- package/dist/components/menu-section/index.d.ts.map +1 -0
- package/dist/components/menu-section/index.js +2 -0
- package/dist/components/menu-section/menu-section.styles.d.ts +4 -0
- package/dist/components/menu-section/menu-section.styles.d.ts.map +1 -0
- package/dist/components/menu-section/menu-section.styles.js +5 -0
- package/dist/components/menu-section.css +7 -0
- package/dist/components/menu.css +12 -0
- package/dist/components/meter/index.d.ts +2 -0
- package/dist/components/meter/index.d.ts.map +1 -0
- package/dist/components/meter/index.js +2 -0
- package/dist/components/meter/meter.styles.d.ts +106 -0
- package/dist/components/meter/meter.styles.d.ts.map +1 -0
- package/dist/components/meter/meter.styles.js +30 -0
- package/dist/components/meter.css +112 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +2 -0
- package/dist/components/modal/modal.styles.d.ts +169 -0
- package/dist/components/modal/modal.styles.d.ts.map +1 -0
- package/dist/components/modal/modal.styles.js +52 -0
- package/dist/components/modal.css +342 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/index.d.ts.map +1 -0
- package/dist/components/number-field/index.js +2 -0
- package/dist/components/number-field/number-field.styles.d.ts +70 -0
- package/dist/components/number-field/number-field.styles.d.ts.map +1 -0
- package/dist/components/number-field/number-field.styles.js +30 -0
- package/dist/components/number-field.css +232 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/components/pagination/index.js +2 -0
- package/dist/components/pagination/pagination.styles.d.ts +61 -0
- package/dist/components/pagination/pagination.styles.d.ts.map +1 -0
- package/dist/components/pagination/pagination.styles.js +20 -0
- package/dist/components/pagination.css +152 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +2 -0
- package/dist/components/popover/popover.styles.d.ts +46 -0
- package/dist/components/popover/popover.styles.d.ts.map +1 -0
- package/dist/components/popover/popover.styles.js +10 -0
- package/dist/components/popover.css +97 -0
- package/dist/components/progress-bar/index.d.ts +2 -0
- package/dist/components/progress-bar/index.d.ts.map +1 -0
- package/dist/components/progress-bar/index.js +2 -0
- package/dist/components/progress-bar/progress-bar.styles.d.ts +106 -0
- package/dist/components/progress-bar/progress-bar.styles.d.ts.map +1 -0
- package/dist/components/progress-bar/progress-bar.styles.js +30 -0
- package/dist/components/progress-bar.css +136 -0
- package/dist/components/progress-circle/index.d.ts +2 -0
- package/dist/components/progress-circle/index.d.ts.map +1 -0
- package/dist/components/progress-circle/index.js +2 -0
- package/dist/components/progress-circle/progress-circle.styles.d.ts +106 -0
- package/dist/components/progress-circle/progress-circle.styles.d.ts.map +1 -0
- package/dist/components/progress-circle/progress-circle.styles.js +30 -0
- package/dist/components/progress-circle.css +105 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.js +2 -0
- package/dist/components/radio/radio.styles.d.ts +46 -0
- package/dist/components/radio/radio.styles.d.ts.map +1 -0
- package/dist/components/radio/radio.styles.js +10 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/index.js +2 -0
- package/dist/components/radio-group/radio-group.styles.d.ts +19 -0
- package/dist/components/radio-group/radio-group.styles.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group.styles.js +12 -0
- package/dist/components/radio-group.css +49 -0
- package/dist/components/radio.css +183 -0
- package/dist/components/range-calendar/index.d.ts +2 -0
- package/dist/components/range-calendar/index.d.ts.map +1 -0
- package/dist/components/range-calendar/index.js +2 -0
- package/dist/components/range-calendar/range-calendar.styles.d.ts +79 -0
- package/dist/components/range-calendar/range-calendar.styles.d.ts.map +1 -0
- package/dist/components/range-calendar/range-calendar.styles.js +34 -0
- package/dist/components/range-calendar.css +361 -0
- package/dist/components/scroll-shadow/index.d.ts +2 -0
- package/dist/components/scroll-shadow/index.d.ts.map +1 -0
- package/dist/components/scroll-shadow/index.js +2 -0
- package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts +70 -0
- package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts.map +1 -0
- package/dist/components/scroll-shadow/scroll-shadow.styles.js +23 -0
- package/dist/components/scroll-shadow.css +103 -0
- package/dist/components/search-field/index.d.ts +2 -0
- package/dist/components/search-field/index.d.ts.map +1 -0
- package/dist/components/search-field/index.js +2 -0
- package/dist/components/search-field/search-field.styles.d.ts +70 -0
- package/dist/components/search-field/search-field.styles.d.ts.map +1 -0
- package/dist/components/search-field/search-field.styles.js +30 -0
- package/dist/components/search-field.css +186 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +2 -0
- package/dist/components/select/select.styles.d.ts +70 -0
- package/dist/components/select/select.styles.d.ts.map +1 -0
- package/dist/components/select/select.styles.js +30 -0
- package/dist/components/select.css +225 -0
- package/dist/components/separator/index.d.ts +2 -0
- package/dist/components/separator/index.d.ts.map +1 -0
- package/dist/components/separator/index.js +2 -0
- package/dist/components/separator/separator.styles.d.ts +35 -0
- package/dist/components/separator/separator.styles.d.ts.map +1 -0
- package/dist/components/separator/separator.styles.js +22 -0
- package/dist/components/separator.css +59 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +2 -0
- package/dist/components/skeleton/skeleton.styles.d.ts +28 -0
- package/dist/components/skeleton/skeleton.styles.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.styles.js +13 -0
- package/dist/components/skeleton.css +48 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +2 -0
- package/dist/components/slider/slider.styles.d.ts +58 -0
- package/dist/components/slider/slider.styles.d.ts.map +1 -0
- package/dist/components/slider/slider.styles.js +12 -0
- package/dist/components/slider.css +180 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +2 -0
- package/dist/components/spinner/spinner.styles.d.ts +46 -0
- package/dist/components/spinner/spinner.styles.d.ts.map +1 -0
- package/dist/components/spinner/spinner.styles.js +26 -0
- package/dist/components/spinner.css +42 -0
- package/dist/components/surface/index.d.ts +2 -0
- package/dist/components/surface/index.d.ts.map +1 -0
- package/dist/components/surface/index.js +2 -0
- package/dist/components/surface/surface.styles.d.ts +25 -0
- package/dist/components/surface/surface.styles.d.ts.map +1 -0
- package/dist/components/surface/surface.styles.js +14 -0
- package/dist/components/surface.css +23 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +2 -0
- package/dist/components/switch/switch.styles.d.ts +58 -0
- package/dist/components/switch/switch.styles.d.ts.map +1 -0
- package/dist/components/switch/switch.styles.js +19 -0
- package/dist/components/switch-group/index.d.ts +2 -0
- package/dist/components/switch-group/index.d.ts.map +1 -0
- package/dist/components/switch-group/index.js +2 -0
- package/dist/components/switch-group/switch-group.styles.d.ts +40 -0
- package/dist/components/switch-group/switch-group.styles.d.ts.map +1 -0
- package/dist/components/switch-group/switch-group.styles.js +15 -0
- package/dist/components/switch-group.css +17 -0
- package/dist/components/switch.css +242 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +2 -0
- package/dist/components/table/table.styles.d.ts +81 -0
- package/dist/components/table/table.styles.d.ts.map +1 -0
- package/dist/components/table/table.styles.js +28 -0
- package/dist/components/table.css +396 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +2 -0
- package/dist/components/tabs/tabs.styles.d.ts +60 -0
- package/dist/components/tabs/tabs.styles.d.ts.map +1 -0
- package/dist/components/tabs/tabs.styles.js +23 -0
- package/dist/components/tabs.css +283 -0
- package/dist/components/tag/index.d.ts +2 -0
- package/dist/components/tag/index.d.ts.map +1 -0
- package/dist/components/tag/index.js +2 -0
- package/dist/components/tag/tag.styles.d.ts +73 -0
- package/dist/components/tag/tag.styles.d.ts.map +1 -0
- package/dist/components/tag/tag.styles.js +25 -0
- package/dist/components/tag-group/index.d.ts +2 -0
- package/dist/components/tag-group/index.d.ts.map +1 -0
- package/dist/components/tag-group/index.js +2 -0
- package/dist/components/tag-group/tag-group.styles.d.ts +34 -0
- package/dist/components/tag-group/tag-group.styles.d.ts.map +1 -0
- package/dist/components/tag-group/tag-group.styles.js +8 -0
- package/dist/components/tag-group.css +15 -0
- package/dist/components/tag.css +98 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +2 -0
- package/dist/components/textarea/textarea.styles.d.ts +31 -0
- package/dist/components/textarea/textarea.styles.d.ts.map +1 -0
- package/dist/components/textarea/textarea.styles.js +21 -0
- package/dist/components/textarea.css +94 -0
- package/dist/components/textfield/index.d.ts +2 -0
- package/dist/components/textfield/index.d.ts.map +1 -0
- package/dist/components/textfield/index.js +2 -0
- package/dist/components/textfield/textfield.styles.d.ts +19 -0
- package/dist/components/textfield/textfield.styles.d.ts.map +1 -0
- package/dist/components/textfield/textfield.styles.js +12 -0
- package/dist/components/textfield.css +23 -0
- package/dist/components/time-field/index.d.ts +2 -0
- package/dist/components/time-field/index.d.ts.map +1 -0
- package/dist/components/time-field/index.js +2 -0
- package/dist/components/time-field/time-field.styles.d.ts +19 -0
- package/dist/components/time-field/time-field.styles.d.ts.map +1 -0
- package/dist/components/time-field/time-field.styles.js +12 -0
- package/dist/components/time-field.css +20 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +2 -0
- package/dist/components/toast/toast.styles.d.ts +163 -0
- package/dist/components/toast/toast.styles.d.ts.map +1 -0
- package/dist/components/toast/toast.styles.js +55 -0
- package/dist/components/toast.css +249 -0
- package/dist/components/toggle-button/index.d.ts +2 -0
- package/dist/components/toggle-button/index.d.ts.map +1 -0
- package/dist/components/toggle-button/index.js +2 -0
- package/dist/components/toggle-button/toggle-button.styles.d.ts +43 -0
- package/dist/components/toggle-button/toggle-button.styles.d.ts.map +1 -0
- package/dist/components/toggle-button/toggle-button.styles.js +24 -0
- package/dist/components/toggle-button-group/index.d.ts +2 -0
- package/dist/components/toggle-button-group/index.d.ts.map +1 -0
- package/dist/components/toggle-button-group/index.js +2 -0
- package/dist/components/toggle-button-group/toggle-button-group.styles.d.ts +76 -0
- package/dist/components/toggle-button-group/toggle-button-group.styles.d.ts.map +1 -0
- package/dist/components/toggle-button-group/toggle-button-group.styles.js +29 -0
- package/dist/components/toggle-button-group.css +136 -0
- package/dist/components/toggle-button.css +149 -0
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbar/index.d.ts.map +1 -0
- package/dist/components/toolbar/index.js +2 -0
- package/dist/components/toolbar/toolbar.styles.d.ts +29 -0
- package/dist/components/toolbar/toolbar.styles.d.ts.map +1 -0
- package/dist/components/toolbar/toolbar.styles.js +18 -0
- package/dist/components/toolbar.css +32 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +2 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +34 -0
- package/dist/components/tooltip/tooltip.styles.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.styles.js +8 -0
- package/dist/components/tooltip.css +79 -0
- package/dist/components/typography/index.d.ts +2 -0
- package/dist/components/typography/index.d.ts.map +1 -0
- package/dist/components/typography/index.js +2 -0
- package/dist/components/typography/typography.styles.d.ts +109 -0
- package/dist/components/typography/typography.styles.d.ts.map +1 -0
- package/dist/components/typography/typography.styles.js +46 -0
- package/dist/components/typography.css +163 -0
- package/dist/index.css +23 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -0
- package/dist/ropav.min.css +2 -0
- package/dist/themes/default/components/index.css +6 -0
- package/dist/themes/default/index.css +8 -0
- package/dist/themes/default/variables.css +310 -0
- package/dist/themes/shared/theme.css +166 -0
- package/dist/utilities/index.css +83 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +10 -0
- package/dist/variants/index.css +106 -0
- package/package.json +71 -0
- package/src/components/accordion/accordion.styles.ts +32 -0
- package/src/components/accordion/index.ts +1 -0
- package/src/components/alert/alert.styles.ts +37 -0
- package/src/components/alert/index.ts +1 -0
- package/src/components/alert-dialog/alert-dialog.styles.ts +72 -0
- package/src/components/alert-dialog/index.ts +1 -0
- package/src/components/autocomplete/autocomplete.styles.ts +38 -0
- package/src/components/autocomplete/index.ts +1 -0
- package/src/components/avatar/avatar.styles.ts +53 -0
- package/src/components/avatar/index.ts +1 -0
- package/src/components/badge/badge.styles.ts +74 -0
- package/src/components/badge/index.ts +1 -0
- package/src/components/breadcrumbs/breadcrumbs.styles.ts +14 -0
- package/src/components/breadcrumbs/index.ts +1 -0
- package/src/components/button/button.styles.ts +38 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/button-group/button-group.styles.ts +32 -0
- package/src/components/button-group/index.ts +1 -0
- package/src/components/calendar/calendar.styles.ts +36 -0
- package/src/components/calendar/index.ts +1 -0
- package/src/components/calendar-year-picker/calendar-year-picker.styles.ts +15 -0
- package/src/components/calendar-year-picker/index.ts +1 -0
- package/src/components/card/card.styles.ts +36 -0
- package/src/components/card/index.ts +1 -0
- package/src/components/checkbox/checkbox.styles.ts +27 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox-group/checkbox-group.styles.ts +18 -0
- package/src/components/checkbox-group/index.ts +1 -0
- package/src/components/chip/chip.styles.ts +60 -0
- package/src/components/chip/index.ts +1 -0
- package/src/components/close-button/close-button.styles.ts +17 -0
- package/src/components/close-button/index.ts +1 -0
- package/src/components/color-area/color-area.styles.ts +23 -0
- package/src/components/color-area/index.ts +1 -0
- package/src/components/color-field/color-field.styles.ts +18 -0
- package/src/components/color-field/index.ts +1 -0
- package/src/components/color-input-group/color-input-group.styles.ts +34 -0
- package/src/components/color-input-group/index.ts +1 -0
- package/src/components/color-picker/color-picker.styles.ts +13 -0
- package/src/components/color-picker/index.ts +1 -0
- package/src/components/color-slider/color-slider.styles.ts +14 -0
- package/src/components/color-slider/index.ts +1 -0
- package/src/components/color-swatch/color-swatch.styles.ts +26 -0
- package/src/components/color-swatch/index.ts +1 -0
- package/src/components/color-swatch-picker/color-swatch-picker.styles.ts +54 -0
- package/src/components/color-swatch-picker/index.ts +1 -0
- package/src/components/combo-box/combo-box.styles.ts +27 -0
- package/src/components/combo-box/index.ts +1 -0
- package/src/components/date-field/date-field.styles.ts +18 -0
- package/src/components/date-field/index.ts +1 -0
- package/src/components/date-input-group/date-input-group.styles.ts +36 -0
- package/src/components/date-input-group/index.ts +1 -0
- package/src/components/date-picker/date-picker.styles.ts +14 -0
- package/src/components/date-picker/index.ts +1 -0
- package/src/components/date-range-picker/date-range-picker.styles.ts +15 -0
- package/src/components/date-range-picker/index.ts +1 -0
- package/src/components/description/description.styles.ts +9 -0
- package/src/components/description/index.ts +1 -0
- package/src/components/disclosure/disclosure.styles.ts +25 -0
- package/src/components/disclosure/index.ts +1 -0
- package/src/components/disclosure-group/disclosure-group.styles.ts +13 -0
- package/src/components/disclosure-group/index.ts +1 -0
- package/src/components/drawer/drawer.styles.ts +55 -0
- package/src/components/drawer/index.ts +1 -0
- package/src/components/dropdown/dropdown.styles.ts +14 -0
- package/src/components/dropdown/index.ts +1 -0
- package/src/components/empty-state/empty-state.styles.ts +9 -0
- package/src/components/empty-state/index.ts +1 -0
- package/src/components/error-message/error-message.styles.ts +9 -0
- package/src/components/error-message/index.ts +1 -0
- package/src/components/field-error/field-error.styles.ts +9 -0
- package/src/components/field-error/index.ts +1 -0
- package/src/components/fieldset/fieldset.styles.ts +15 -0
- package/src/components/fieldset/index.ts +1 -0
- package/src/components/header/header.styles.ts +5 -0
- package/src/components/header/index.ts +1 -0
- package/src/components/index.ts +84 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/input/input.styles.ts +23 -0
- package/src/components/input-group/index.ts +1 -0
- package/src/components/input-group/input-group.styles.ts +34 -0
- package/src/components/input-otp/index.ts +1 -0
- package/src/components/input-otp/input-otp.styles.ts +30 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.styles.ts +20 -0
- package/src/components/label/index.ts +1 -0
- package/src/components/label/label.styles.ts +25 -0
- package/src/components/link/index.ts +1 -0
- package/src/components/link/link.styles.ts +21 -0
- package/src/components/list-box/index.ts +1 -0
- package/src/components/list-box/list-box.styles.ts +18 -0
- package/src/components/list-box-item/index.ts +1 -0
- package/src/components/list-box-item/list-box-item.styles.ts +25 -0
- package/src/components/list-box-section/index.ts +1 -0
- package/src/components/list-box-section/list-box-section.styles.ts +9 -0
- package/src/components/menu/index.ts +1 -0
- package/src/components/menu/menu.styles.ts +9 -0
- package/src/components/menu-item/index.ts +1 -0
- package/src/components/menu-item/menu-item.styles.ts +26 -0
- package/src/components/menu-section/index.ts +1 -0
- package/src/components/menu-section/menu-section.styles.ts +9 -0
- package/src/components/meter/index.ts +1 -0
- package/src/components/meter/meter.styles.ts +48 -0
- package/src/components/modal/index.ts +1 -0
- package/src/components/modal/modal.styles.ts +70 -0
- package/src/components/number-field/index.ts +1 -0
- package/src/components/number-field/number-field.styles.ts +36 -0
- package/src/components/pagination/index.ts +1 -0
- package/src/components/pagination/pagination.styles.ts +32 -0
- package/src/components/popover/index.ts +1 -0
- package/src/components/popover/popover.styles.ts +14 -0
- package/src/components/progress-bar/index.ts +1 -0
- package/src/components/progress-bar/progress-bar.styles.ts +48 -0
- package/src/components/progress-circle/index.ts +1 -0
- package/src/components/progress-circle/progress-circle.styles.ts +48 -0
- package/src/components/radio/index.ts +1 -0
- package/src/components/radio/radio.styles.ts +14 -0
- package/src/components/radio-group/index.ts +1 -0
- package/src/components/radio-group/radio-group.styles.ts +18 -0
- package/src/components/range-calendar/index.ts +1 -0
- package/src/components/range-calendar/range-calendar.styles.ts +36 -0
- package/src/components/scroll-shadow/index.ts +1 -0
- package/src/components/scroll-shadow/scroll-shadow.styles.ts +37 -0
- package/src/components/search-field/index.ts +1 -0
- package/src/components/search-field/search-field.styles.ts +36 -0
- package/src/components/select/index.ts +1 -0
- package/src/components/select/select.styles.ts +36 -0
- package/src/components/separator/index.ts +1 -0
- package/src/components/separator/separator.styles.ts +25 -0
- package/src/components/skeleton/index.ts +1 -0
- package/src/components/skeleton/skeleton.styles.ts +21 -0
- package/src/components/slider/index.ts +1 -0
- package/src/components/slider/slider.styles.ts +16 -0
- package/src/components/spinner/index.ts +1 -0
- package/src/components/spinner/spinner.styles.ts +28 -0
- package/src/components/surface/index.ts +1 -0
- package/src/components/surface/surface.styles.ts +20 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/switch/switch.styles.ts +31 -0
- package/src/components/switch-group/index.ts +1 -0
- package/src/components/switch-group/switch-group.styles.ts +25 -0
- package/src/components/table/index.ts +1 -0
- package/src/components/table/table.styles.ts +49 -0
- package/src/components/tabs/index.ts +1 -0
- package/src/components/tabs/tabs.styles.ts +34 -0
- package/src/components/tag/index.ts +1 -0
- package/src/components/tag/tag.styles.ts +37 -0
- package/src/components/tag-group/index.ts +1 -0
- package/src/components/tag-group/tag-group.styles.ts +12 -0
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/textarea.styles.ts +23 -0
- package/src/components/textfield/index.ts +1 -0
- package/src/components/textfield/textfield.styles.ts +18 -0
- package/src/components/time-field/index.ts +1 -0
- package/src/components/time-field/time-field.styles.ts +18 -0
- package/src/components/toast/index.ts +1 -0
- package/src/components/toast/toast.styles.ts +67 -0
- package/src/components/toggle-button/index.ts +1 -0
- package/src/components/toggle-button/toggle-button.styles.ts +28 -0
- package/src/components/toggle-button-group/index.ts +1 -0
- package/src/components/toggle-button-group/toggle-button-group.styles.ts +39 -0
- package/src/components/toolbar/index.ts +1 -0
- package/src/components/toolbar/toolbar.styles.ts +23 -0
- package/src/components/tooltip/index.ts +1 -0
- package/src/components/tooltip/tooltip.styles.ts +12 -0
- package/src/components/typography/index.ts +1 -0
- package/src/components/typography/typography.styles.ts +50 -0
- package/src/index.ts +8 -0
- package/src/utils/index.ts +13 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. Please also get an approval
|
|
185
|
+
from the project maintainers before using the Apache License.
|
|
186
|
+
|
|
187
|
+
Copyright 2025 NextUI Inc.
|
|
188
|
+
|
|
189
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
190
|
+
you may not use this file except in compliance with the License.
|
|
191
|
+
You may obtain a copy of the License at
|
|
192
|
+
|
|
193
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
194
|
+
|
|
195
|
+
Unless required by applicable law or agreed to in writing, software
|
|
196
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
197
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
198
|
+
See the License for the specific language governing permissions and
|
|
199
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# @ropav/styles
|
|
2
|
+
|
|
3
|
+
The style layer behind [`ropav`](https://www.npmjs.com/package/ropav): plain CSS for every component,
|
|
4
|
+
themes, utilities, and custom variants, plus `tv()` variants that do nothing but map props to class names.
|
|
5
|
+
Framework-agnostic — not a line of Vue or React in it. `dependencies` are `tailwind-variants` and
|
|
6
|
+
`tw-animate-css`; the only peer is `tailwindcss`.
|
|
7
|
+
|
|
8
|
+
## Provenance
|
|
9
|
+
|
|
10
|
+
A derivative work of [`@heroui/styles@3.2.4`](https://github.com/heroui-inc/heroui/tree/v3.2.4/packages/styles),
|
|
11
|
+
vendored into this workspace so the style layer can be fixed in place. See the root [README](../../README.md).
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Inside this repo it is a workspace dependency:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{"dependencies": {"@ropav/styles": "workspace:*"}}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Outside the repo you do not install it yourself — `ropav` depends on it and npm pulls it in.
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
### Basic setup
|
|
26
|
+
|
|
27
|
+
Import the stylesheet once, from your app's main CSS file:
|
|
28
|
+
|
|
29
|
+
```css
|
|
30
|
+
@import "@ropav/styles";
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
That single line pulls in, in layer order (`theme, base, components, utilities`):
|
|
34
|
+
|
|
35
|
+
- Tailwind CSS v4 and `tw-animate-css`
|
|
36
|
+
- base styles and the scrollbar system
|
|
37
|
+
- the component layer — 85 files, one per component
|
|
38
|
+
- the default theme: variables for light and dark, plus per-component theme overrides
|
|
39
|
+
- utilities and custom variants
|
|
40
|
+
|
|
41
|
+
### Importing only what you need
|
|
42
|
+
|
|
43
|
+
```css
|
|
44
|
+
@import "tailwindcss";
|
|
45
|
+
|
|
46
|
+
@import "@ropav/styles/components/button.css" layer(components);
|
|
47
|
+
@import "@ropav/styles/components/chip.css" layer(components);
|
|
48
|
+
@import "@ropav/styles/themes/default" layer(theme);
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
> The granular subpaths — `./components/*.css`, `./base`, `./base/*.css`, `./themes/*`, `./utilities`,
|
|
52
|
+
> `./variants` — exist **only in the published tarball**; `clean-package.config.json` writes them into
|
|
53
|
+
> `exports` at `prepack` time. Inside the workspace, import the files from `packages/styles/` by relative path
|
|
54
|
+
> instead.
|
|
55
|
+
|
|
56
|
+
### Variants
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
import {buttonVariants, type ButtonVariants} from "@ropav/styles";
|
|
60
|
+
|
|
61
|
+
buttonVariants({variant: "primary", size: "sm"}); // "button button--primary button--sm"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Every component also has its own subpath so bundlers can drop the rest:
|
|
65
|
+
`@ropav/styles/components/button`.
|
|
66
|
+
|
|
67
|
+
## Package structure
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
packages/styles/
|
|
71
|
+
├── index.css # Entry point — declares layer order, then imports everything below
|
|
72
|
+
├── base/
|
|
73
|
+
│ ├── base.css # Layout tokens, typography, resets
|
|
74
|
+
│ └── scrollbar.css # Scrollbar system
|
|
75
|
+
├── components/ # 85 CSS files, one per component
|
|
76
|
+
├── themes/
|
|
77
|
+
│ ├── default/
|
|
78
|
+
│ │ ├── variables.css # Light and dark token sets
|
|
79
|
+
│ │ ├── index.css # Theme entry point
|
|
80
|
+
│ │ └── components/ # Per-component theme overrides
|
|
81
|
+
│ └── shared/
|
|
82
|
+
│ └── theme.css # @theme block — derived values, radius scale, easing curves
|
|
83
|
+
├── utilities/index.css # Tailwind v4 @utility definitions
|
|
84
|
+
├── variants/index.css # Tailwind v4 @custom-variant definitions
|
|
85
|
+
└── src/ # TypeScript: tv() variants + shared utility class strings
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Class naming
|
|
89
|
+
|
|
90
|
+
BEM, so a class can be read without looking it up:
|
|
91
|
+
|
|
92
|
+
- **Block** — the component itself: `.button`, `.card`, `.alert`
|
|
93
|
+
- **Modifier** — a variation, double dash: `.button--primary`, `.button--lg`, `.button--icon-only`
|
|
94
|
+
- **Element** — a part of the component, double underscore: `.card__header`, `.alert__icon`
|
|
95
|
+
|
|
96
|
+
```html
|
|
97
|
+
<button class="button">Click me</button>
|
|
98
|
+
<button class="button button--primary">Save</button>
|
|
99
|
+
<button class="button button--primary button--sm">Small primary</button>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Two conventions the whole layer relies on:
|
|
103
|
+
|
|
104
|
+
**Default size lives in the base class.** `.button` already renders at the `--md` size, so `.button--md` is an
|
|
105
|
+
empty rule with a comment saying why. A component with no size modifier never looks broken.
|
|
106
|
+
|
|
107
|
+
**State keys on `data-*`, with a pseudo-class fallback.** Interactive rules are written as
|
|
108
|
+
`&:hover, &[data-hovered="true"]`, `&:active, &[data-pressed="true"]`, `&:focus-visible,
|
|
109
|
+
&[data-focus-visible="true"]` — so the same CSS works whether state comes from the browser or from a
|
|
110
|
+
component that publishes it as an attribute.
|
|
111
|
+
|
|
112
|
+
`components/button.css` is the densest example of both — read it before writing a new component file.
|
|
113
|
+
|
|
114
|
+
## Theming
|
|
115
|
+
|
|
116
|
+
Light is the default on `:root`; dark turns on with a `.dark` class or `[data-theme="dark"]`:
|
|
117
|
+
|
|
118
|
+
```html
|
|
119
|
+
<html data-theme="dark"></html>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Every token is a CSS custom property, so overriding them in your own stylesheet is enough to retheme — no
|
|
123
|
+
rebuild of this package:
|
|
124
|
+
|
|
125
|
+
```css
|
|
126
|
+
:root {
|
|
127
|
+
--accent: oklch(0.62 0.19 253.83);
|
|
128
|
+
--radius: 0.5rem;
|
|
129
|
+
--field-radius: calc(var(--radius) * 1.5);
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Tokens cover base colors (`--background`, `--surface`, `--overlay`, `--muted`), interactive and status colors
|
|
134
|
+
(`--accent`, `--success`, `--warning`, `--danger`, each with a `-foreground` and a derived `-hover`), form
|
|
135
|
+
fields (`--field-background`, `--field-border`, `--field-radius`, …), layout knobs (`--spacing`,
|
|
136
|
+
`--border-width`, `--radius`, `--ring-offset-width`, `--cursor-interactive`), the scrollbar set, and shadows.
|
|
137
|
+
|
|
138
|
+
**`themes/default/variables.css` is the source of truth — read it rather than a list in a README**, which goes
|
|
139
|
+
stale the moment a token moves. `themes/shared/theme.css` holds what is derived from those tokens: the
|
|
140
|
+
`--radius-xs` … `--radius-4xl` scale, `color-mix()` hover and soft variants, and the easing curves.
|
|
141
|
+
|
|
142
|
+
## Build
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
pnpm --filter @ropav/styles build
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Rolldown emits `dist/` as ES modules with `preserveModules` and one entry per component, `tsc` emits the `.d.ts`
|
|
149
|
+
files, the CSS is copied across untouched, and `@tailwindcss/cli` produces the minified `dist/ropav.min.css`.
|
|
150
|
+
|
|
151
|
+
`pnpm --filter @ropav/styles measure-size` prints a size report and writes `bundle-size.json`.
|
|
152
|
+
|
|
153
|
+
Only the published tarball needs the build. In the workspace, `exports` point straight at the sources
|
|
154
|
+
(`src/index.ts` and `index.css`), so editing a `.css` file shows up in Storybook and in the browser test suite
|
|
155
|
+
with no build step.
|
|
156
|
+
|
|
157
|
+
## License
|
|
158
|
+
|
|
159
|
+
Apache-2.0 — see `LICENSE` at the repo root, which keeps the original copyright.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Scrollbar styles
|
|
3
|
+
*
|
|
4
|
+
* TODO: This is a temporary workaround by removing the scrollbar styles.
|
|
5
|
+
* Global scrollbar styling causes modal/overlay interaction/closure issues
|
|
6
|
+
* (e.g. backdrop clicks not closing the overlay) and should be removed.
|
|
7
|
+
*/
|
|
8
|
+
/*
|
|
9
|
+
*:not(.alert-dialog__backdrop):not(.modal__backdrop) {
|
|
10
|
+
scrollbar-color: var(--scrollbar) transparent;
|
|
11
|
+
scrollbar-width: thin;
|
|
12
|
+
}
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/* Border color inheritance */
|
|
16
|
+
*,
|
|
17
|
+
::after,
|
|
18
|
+
::before,
|
|
19
|
+
::backdrop,
|
|
20
|
+
::file-selector-button {
|
|
21
|
+
border-color: var(--border, currentColor);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Keeps main page content interactive during view transitions */
|
|
25
|
+
:root {
|
|
26
|
+
view-transition-name: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
::view-transition {
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* =============================================================================
|
|
2
|
+
* Ropav scrollbar system
|
|
3
|
+
*
|
|
4
|
+
* Modes via data-scrollbar on any ancestor:
|
|
5
|
+
* (unset) — Ropav scrollbar from theme --scrollbar-width/color/gutter (light/dark)
|
|
6
|
+
* thin — Ropav themed thin scrollbar, useful for overriding inherited default mode
|
|
7
|
+
* default — OS / browser scrollbar (auto)
|
|
8
|
+
* none — hidden (inherited to descendants using @apply scrollbar)
|
|
9
|
+
*
|
|
10
|
+
* Each scroll container applies @apply scrollbar | scrollbar-thin | scrollbar-none | scrollbar-default
|
|
11
|
+
* in its own component CSS file.
|
|
12
|
+
* ============================================================================= */
|
|
13
|
+
|
|
14
|
+
[data-scrollbar="thin"] {
|
|
15
|
+
--scrollbar-width: thin;
|
|
16
|
+
--scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
|
17
|
+
--scrollbar-gutter: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-scrollbar="default"] {
|
|
21
|
+
--scrollbar-width: auto;
|
|
22
|
+
--scrollbar-color: auto;
|
|
23
|
+
--scrollbar-gutter: auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-scrollbar="none"] {
|
|
27
|
+
--scrollbar-width: none;
|
|
28
|
+
--scrollbar-color: auto;
|
|
29
|
+
--scrollbar-gutter: auto;
|
|
30
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
export declare const accordionVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
variant: {
|
|
4
|
+
default: {};
|
|
5
|
+
surface: {
|
|
6
|
+
base: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
}, {
|
|
10
|
+
base: string;
|
|
11
|
+
body: string;
|
|
12
|
+
bodyInner: string;
|
|
13
|
+
heading: string;
|
|
14
|
+
indicator: string;
|
|
15
|
+
item: string;
|
|
16
|
+
panel: string;
|
|
17
|
+
trigger: string;
|
|
18
|
+
}, undefined, {
|
|
19
|
+
variant: {
|
|
20
|
+
default: {};
|
|
21
|
+
surface: {
|
|
22
|
+
base: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
base: string;
|
|
27
|
+
body: string;
|
|
28
|
+
bodyInner: string;
|
|
29
|
+
heading: string;
|
|
30
|
+
indicator: string;
|
|
31
|
+
item: string;
|
|
32
|
+
panel: string;
|
|
33
|
+
trigger: string;
|
|
34
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
35
|
+
variant: {
|
|
36
|
+
default: {};
|
|
37
|
+
surface: {
|
|
38
|
+
base: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
base: string;
|
|
43
|
+
body: string;
|
|
44
|
+
bodyInner: string;
|
|
45
|
+
heading: string;
|
|
46
|
+
indicator: string;
|
|
47
|
+
item: string;
|
|
48
|
+
panel: string;
|
|
49
|
+
trigger: string;
|
|
50
|
+
}>>;
|
|
51
|
+
type DisclosureRenderPropsKeys = "isExpanded" | "isDisabled" | "state";
|
|
52
|
+
export type AccordionVariants = Omit<VariantProps<typeof accordionVariants>, DisclosureRenderPropsKeys>;
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=accordion.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.styles.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,iBAAiB;;QAaxB,OAAO;QACP,OAAO;YACL,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIV,CAAC;AAGH,KAAK,yBAAyB,GAAG,YAAY,GAAG,YAAY,GAAG,OAAO,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,YAAY,CAAC,OAAO,iBAAiB,CAAC,EACtC,yBAAyB,CAC1B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
//#region src/components/accordion/accordion.styles.ts
|
|
3
|
+
const accordionVariants = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
base: "accordion",
|
|
6
|
+
body: "accordion__body",
|
|
7
|
+
bodyInner: "accordion__body-inner",
|
|
8
|
+
heading: "accordion__heading",
|
|
9
|
+
indicator: "accordion__indicator",
|
|
10
|
+
item: "accordion__item",
|
|
11
|
+
panel: "accordion__panel",
|
|
12
|
+
trigger: "accordion__trigger"
|
|
13
|
+
},
|
|
14
|
+
variants: { variant: {
|
|
15
|
+
default: {},
|
|
16
|
+
surface: { base: "accordion--surface" }
|
|
17
|
+
} }
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { accordionVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/* Base accordion styles */
|
|
2
|
+
.accordion {
|
|
3
|
+
@apply w-full;
|
|
4
|
+
|
|
5
|
+
/* Performance optimization - contain layout changes */
|
|
6
|
+
contain: layout style;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Accordion elements */
|
|
10
|
+
.accordion__body {
|
|
11
|
+
@apply text-sm;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.accordion__body-inner {
|
|
15
|
+
@apply px-4 pt-0 pb-4 text-muted;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.accordion__heading {
|
|
19
|
+
@apply flex;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.accordion__indicator {
|
|
23
|
+
@apply ms-auto size-4 shrink-0 text-muted;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Transitions
|
|
27
|
+
*/
|
|
28
|
+
@apply transition duration-250 motion-reduce:transition-none;
|
|
29
|
+
|
|
30
|
+
/* Expanded state for indicator rotation */
|
|
31
|
+
&[data-expanded="true"] {
|
|
32
|
+
@apply -rotate-180;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Accordion Item - Separator styles */
|
|
37
|
+
.accordion__item {
|
|
38
|
+
@apply relative border-none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.accordion__item::after {
|
|
42
|
+
content: "";
|
|
43
|
+
@apply absolute start-0 bottom-0 h-px w-full rounded-xs bg-separator;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.accordion__item:last-child::after {
|
|
47
|
+
content: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Hide separator when hideSeparator prop is set */
|
|
51
|
+
.accordion__item[data-hide-separator="true"]::after {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
/* ------------------------------------ */
|
|
55
|
+
|
|
56
|
+
.accordion__trigger {
|
|
57
|
+
cursor: var(--cursor-interactive);
|
|
58
|
+
|
|
59
|
+
/* Base Styles */
|
|
60
|
+
@apply flex flex-1 items-center justify-between px-4 py-4 text-start text-sm font-medium no-highlight;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Transitions
|
|
64
|
+
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
65
|
+
*/
|
|
66
|
+
transition:
|
|
67
|
+
opacity 150ms var(--ease-out),
|
|
68
|
+
box-shadow 150ms var(--ease-out);
|
|
69
|
+
@apply motion-reduce:transition-none;
|
|
70
|
+
|
|
71
|
+
/* Hover state */
|
|
72
|
+
@media (hover: hover) {
|
|
73
|
+
&:hover:not([aria-expanded="true"]),
|
|
74
|
+
&[data-hovered="true"]:not([aria-expanded="true"]) {
|
|
75
|
+
background-color: color-mix(in oklab, var(--foreground) 3%, transparent 90%);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Pressed state */
|
|
80
|
+
&[data-pressed="true"]:not([aria-expanded="true"]) {
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Focus state */
|
|
84
|
+
&:focus-visible:not(:focus),
|
|
85
|
+
&[data-focus-visible="true"] {
|
|
86
|
+
@apply status-focused;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Disabled State */
|
|
90
|
+
&:disabled,
|
|
91
|
+
&[aria-disabled="true"] {
|
|
92
|
+
@apply status-disabled;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.accordion__panel {
|
|
97
|
+
opacity: 0;
|
|
98
|
+
height: var(--disclosure-panel-height);
|
|
99
|
+
overflow: clip;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Transitions
|
|
103
|
+
* CRITICAL: motion-reduce must be AFTER transition for correct override specificity
|
|
104
|
+
*/
|
|
105
|
+
transition:
|
|
106
|
+
height 200ms var(--ease-out-quad),
|
|
107
|
+
opacity 200ms var(--ease-out);
|
|
108
|
+
@apply motion-reduce:transition-none;
|
|
109
|
+
|
|
110
|
+
&[data-expanded="true"] {
|
|
111
|
+
will-change: height, opacity;
|
|
112
|
+
opacity: 1;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Surface variant */
|
|
117
|
+
.accordion--surface {
|
|
118
|
+
@apply bg-surface;
|
|
119
|
+
border-radius: min(32px, var(--radius-3xl));
|
|
120
|
+
|
|
121
|
+
.accordion__trigger {
|
|
122
|
+
@media (hover: hover) {
|
|
123
|
+
&:hover:not([aria-expanded="true"]),
|
|
124
|
+
&[data-hovered="true"]:not([aria-expanded="true"]) {
|
|
125
|
+
@apply bg-default;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.accordion__item::after {
|
|
131
|
+
@apply bg-surface-foreground/6;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.accordion--surface .accordion__item {
|
|
136
|
+
/* Surface variant separator styling */
|
|
137
|
+
&::after {
|
|
138
|
+
@apply start-[3%] w-[94%];
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Special rounding for first and last items in surface variant */
|
|
142
|
+
&:first-child [data-slot="accordion-trigger"] {
|
|
143
|
+
border-start-start-radius: min(32px, var(--radius-3xl));
|
|
144
|
+
border-start-end-radius: min(32px, var(--radius-3xl));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&:last-child:not(:has([data-slot="accordion-trigger"][aria-expanded="true"]))
|
|
148
|
+
[data-slot="accordion-trigger"] {
|
|
149
|
+
border-end-start-radius: min(32px, var(--radius-3xl));
|
|
150
|
+
border-end-end-radius: min(32px, var(--radius-3xl));
|
|
151
|
+
}
|
|
152
|
+
}
|