@tmorrow/cre8-wc 1.2.4 → 1.2.5
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/lib/cdn-entry.d.ts +126 -0
- package/lib/cdn-entry.d.ts.map +1 -0
- package/lib/cdn-entry.js +131 -0
- package/lib/cdn-entry.js.map +1 -0
- package/lib/components/accordion/accordion.d.ts +39 -0
- package/lib/components/accordion/accordion.d.ts.map +1 -0
- package/lib/components/accordion/accordion.js +58 -666
- package/lib/components/accordion/accordion.js.map +1 -0
- package/lib/components/accordion/accordion.styles.d.ts +3 -0
- package/lib/components/accordion/accordion.styles.d.ts.map +1 -0
- package/lib/components/accordion/accordion.styles.js +630 -0
- package/lib/components/accordion/accordion.styles.js.map +1 -0
- package/lib/components/accordion-item/accordion-item.d.ts +141 -0
- package/lib/components/accordion-item/accordion-item.d.ts.map +1 -0
- package/lib/components/accordion-item/accordion-item.js +183 -904
- package/lib/components/accordion-item/accordion-item.js.map +1 -0
- package/lib/components/accordion-item/accordion-item.styles.d.ts +3 -0
- package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -0
- package/lib/components/accordion-item/accordion-item.styles.js +811 -0
- package/lib/components/accordion-item/accordion-item.styles.js.map +1 -0
- package/lib/components/alert/alert.d.ts +60 -0
- package/lib/components/alert/alert.d.ts.map +1 -0
- package/lib/components/alert/alert.js +146 -866
- package/lib/components/alert/alert.js.map +1 -0
- package/lib/components/alert/alert.styles.d.ts +3 -0
- package/lib/components/alert/alert.styles.d.ts.map +1 -0
- package/lib/components/alert/alert.styles.js +749 -0
- package/lib/components/alert/alert.styles.js.map +1 -0
- package/lib/components/badge/badge.d.ts +62 -0
- package/lib/components/badge/badge.d.ts.map +1 -0
- package/lib/components/badge/badge.js +72 -764
- package/lib/components/badge/badge.js.map +1 -0
- package/lib/components/badge/badge.styles.d.ts +3 -0
- package/lib/components/badge/badge.styles.d.ts.map +1 -0
- package/lib/components/badge/badge.styles.js +719 -0
- package/lib/components/badge/badge.styles.js.map +1 -0
- package/lib/components/band/band.d.ts +29 -0
- package/lib/components/band/band.d.ts.map +1 -0
- package/lib/components/band/band.js +34 -641
- package/lib/components/band/band.js.map +1 -0
- package/lib/components/band/band.styles.d.ts +3 -0
- package/lib/components/band/band.styles.d.ts.map +1 -0
- package/lib/components/band/band.styles.js +614 -0
- package/lib/components/band/band.styles.js.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.d.ts +32 -0
- package/lib/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.js +52 -625
- package/lib/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts +3 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.js +601 -0
- package/lib/components/breadcrumbs/breadcrumbs.styles.js.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.d.ts +17 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.d.ts.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js +28 -641
- package/lib/components/breadcrumbs-item/breadcrumbs-item.js.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts +3 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js +616 -0
- package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js.map +1 -0
- package/lib/components/button/button.d.ts +229 -0
- package/lib/components/button/button.d.ts.map +1 -0
- package/lib/components/button/button.js +290 -1040
- package/lib/components/button/button.js.map +1 -0
- package/lib/components/button/button.styles.d.ts +3 -0
- package/lib/components/button/button.styles.d.ts.map +1 -0
- package/lib/components/button/button.styles.js +885 -0
- package/lib/components/button/button.styles.js.map +1 -0
- package/lib/components/button-group/button-group.d.ts +19 -0
- package/lib/components/button-group/button-group.d.ts.map +1 -0
- package/lib/components/button-group/button-group.js +30 -638
- package/lib/components/button-group/button-group.js.map +1 -0
- package/lib/components/button-group/button-group.styles.d.ts +3 -0
- package/lib/components/button-group/button-group.styles.d.ts.map +1 -0
- package/lib/components/button-group/button-group.styles.js +615 -0
- package/lib/components/button-group/button-group.styles.js.map +1 -0
- package/lib/components/card/card.d.ts +45 -0
- package/lib/components/card/card.d.ts.map +1 -0
- package/lib/components/card/card.js +57 -734
- package/lib/components/card/card.js.map +1 -0
- package/lib/components/card/card.styles.d.ts +3 -0
- package/lib/components/card/card.styles.d.ts.map +1 -0
- package/lib/components/card/card.styles.js +703 -0
- package/lib/components/card/card.styles.js.map +1 -0
- package/lib/components/chart/chart.d.ts +224 -0
- package/lib/components/chart/chart.d.ts.map +1 -0
- package/lib/components/chart/chart.js +528 -714
- package/lib/components/chart/chart.js.map +1 -0
- package/lib/components/chart/chart.styles.d.ts +3 -0
- package/lib/components/chart/chart.styles.d.ts.map +1 -0
- package/lib/components/chart/chart.styles.js +364 -0
- package/lib/components/chart/chart.styles.js.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.d.ts +54 -0
- package/lib/components/checkbox-field/checkbox-field.d.ts.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.js +64 -669
- package/lib/components/checkbox-field/checkbox-field.js.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.styles.d.ts +3 -0
- package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -0
- package/lib/components/checkbox-field/checkbox-field.styles.js +622 -0
- package/lib/components/checkbox-field/checkbox-field.styles.js.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.d.ts +172 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.d.ts.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.js +241 -1038
- package/lib/components/checkbox-field-item/checkbox-field-item.js.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts +3 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.js +867 -0
- package/lib/components/checkbox-field-item/checkbox-field-item.styles.js.map +1 -0
- package/lib/components/contexts/form-internals-context.d.ts +35 -0
- package/lib/components/contexts/form-internals-context.d.ts.map +1 -0
- package/lib/components/contexts/form-internals-context.js +9 -0
- package/lib/components/contexts/form-internals-context.js.map +1 -0
- package/lib/components/cre8-element.d.ts +54 -0
- package/lib/components/cre8-element.d.ts.map +1 -0
- package/lib/components/cre8-element.js +57 -56
- package/lib/components/cre8-element.js.map +1 -0
- package/lib/components/cre8-form-element.d.ts +137 -0
- package/lib/components/cre8-form-element.d.ts.map +1 -0
- package/lib/components/cre8-form-element.js +213 -6
- package/lib/components/cre8-form-element.js.map +1 -0
- package/lib/components/danger-button/danger-button.d.ts +208 -0
- package/lib/components/danger-button/danger-button.d.ts.map +1 -0
- package/lib/components/danger-button/danger-button.js +271 -1257
- package/lib/components/danger-button/danger-button.js.map +1 -0
- package/lib/components/danger-button/danger-button.styles.d.ts +3 -0
- package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -0
- package/lib/components/danger-button/danger-button.styles.js +1117 -0
- package/lib/components/danger-button/danger-button.styles.js.map +1 -0
- package/lib/components/date-picker/calendar/calendar.d.ts +115 -0
- package/lib/components/date-picker/calendar/calendar.d.ts.map +1 -0
- package/lib/components/date-picker/calendar/calendar.js +465 -0
- package/lib/components/date-picker/calendar/calendar.js.map +1 -0
- package/lib/components/date-picker/calendar/calendar.styles.d.ts +3 -0
- package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -0
- package/lib/components/date-picker/calendar/calendar.styles.js +689 -0
- package/lib/components/date-picker/calendar/calendar.styles.js.map +1 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.d.ts +22 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.js +76 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.js.map +1 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts +3 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js +610 -0
- package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js.map +1 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.d.ts +19 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.js +110 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.js.map +1 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts +3 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js +598 -0
- package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js.map +1 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.d.ts +28 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.js +116 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.js.map +1 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts +3 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js +617 -0
- package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js.map +1 -0
- package/lib/components/date-picker/date-picker.d.ts +43 -0
- package/lib/components/date-picker/date-picker.d.ts.map +1 -0
- package/lib/components/date-picker/date-picker.js +97 -3320
- package/lib/components/date-picker/date-picker.js.map +1 -0
- package/lib/components/date-picker/date-picker.styles.d.ts +3 -0
- package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -0
- package/lib/components/date-picker/date-picker.styles.js +4 -0
- package/lib/components/date-picker/date-picker.styles.js.map +1 -0
- package/lib/components/divider/divider.d.ts +29 -0
- package/lib/components/divider/divider.d.ts.map +1 -0
- package/lib/components/divider/divider.js +44 -653
- package/lib/components/divider/divider.js.map +1 -0
- package/lib/components/divider/divider.styles.d.ts +3 -0
- package/lib/components/divider/divider.styles.d.ts.map +1 -0
- package/lib/components/divider/divider.styles.js +623 -0
- package/lib/components/divider/divider.styles.js.map +1 -0
- package/lib/components/dropdown/dropdown.d.ts +35 -0
- package/lib/components/dropdown/dropdown.d.ts.map +1 -0
- package/lib/components/dropdown/dropdown.js +90 -713
- package/lib/components/dropdown/dropdown.js.map +1 -0
- package/lib/components/dropdown/dropdown.styles.d.ts +3 -0
- package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -0
- package/lib/components/dropdown/dropdown.styles.js +659 -0
- package/lib/components/dropdown/dropdown.styles.js.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.d.ts +19 -0
- package/lib/components/dropdown-item/dropdown-item.d.ts.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.js +37 -640
- package/lib/components/dropdown-item/dropdown-item.js.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.styles.d.ts +3 -0
- package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -0
- package/lib/components/dropdown-item/dropdown-item.styles.js +614 -0
- package/lib/components/dropdown-item/dropdown-item.styles.js.map +1 -0
- package/lib/components/feature/feature.d.ts +28 -0
- package/lib/components/feature/feature.d.ts.map +1 -0
- package/lib/components/feature/feature.js +40 -679
- package/lib/components/feature/feature.js.map +1 -0
- package/lib/components/feature/feature.styles.d.ts +3 -0
- package/lib/components/feature/feature.styles.d.ts.map +1 -0
- package/lib/components/feature/feature.styles.js +648 -0
- package/lib/components/feature/feature.styles.js.map +1 -0
- package/lib/components/field/field.d.ts +209 -0
- package/lib/components/field/field.d.ts.map +1 -0
- package/lib/components/field/field.js +213 -854
- package/lib/components/field/field.js.map +1 -0
- package/lib/components/field/field.styles.d.ts +3 -0
- package/lib/components/field/field.styles.d.ts.map +1 -0
- package/lib/components/field/field.styles.js +710 -0
- package/lib/components/field/field.styles.js.map +1 -0
- package/lib/components/field-note/field-note.d.ts +37 -0
- package/lib/components/field-note/field-note.d.ts.map +1 -0
- package/lib/components/field-note/field-note.js +58 -674
- package/lib/components/field-note/field-note.js.map +1 -0
- package/lib/components/field-note/field-note.styles.d.ts +3 -0
- package/lib/components/field-note/field-note.styles.d.ts.map +1 -0
- package/lib/components/field-note/field-note.styles.js +628 -0
- package/lib/components/field-note/field-note.styles.js.map +1 -0
- package/lib/components/footer/footer.d.ts +17 -0
- package/lib/components/footer/footer.d.ts.map +1 -0
- package/lib/components/footer/footer.js +25 -620
- package/lib/components/footer/footer.js.map +1 -0
- package/lib/components/footer/footer.styles.d.ts +3 -0
- package/lib/components/footer/footer.styles.d.ts.map +1 -0
- package/lib/components/footer/footer.styles.js +606 -0
- package/lib/components/footer/footer.styles.js.map +1 -0
- package/lib/components/global-nav/global-nav.d.ts +33 -0
- package/lib/components/global-nav/global-nav.d.ts.map +1 -0
- package/lib/components/global-nav/global-nav.js +44 -638
- package/lib/components/global-nav/global-nav.js.map +1 -0
- package/lib/components/global-nav/global-nav.styles.d.ts +3 -0
- package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -0
- package/lib/components/global-nav/global-nav.styles.js +605 -0
- package/lib/components/global-nav/global-nav.styles.js.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.d.ts +71 -0
- package/lib/components/global-nav-item/global-nav-item.d.ts.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.js +144 -768
- package/lib/components/global-nav-item/global-nav-item.js.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.styles.d.ts +3 -0
- package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -0
- package/lib/components/global-nav-item/global-nav-item.styles.js +665 -0
- package/lib/components/global-nav-item/global-nav-item.styles.js.map +1 -0
- package/lib/components/grid/grid.d.ts +49 -0
- package/lib/components/grid/grid.d.ts.map +1 -0
- package/lib/components/grid/grid.js +48 -976
- package/lib/components/grid/grid.js.map +1 -0
- package/lib/components/grid/grid.styles.d.ts +3 -0
- package/lib/components/grid/grid.styles.d.ts.map +1 -0
- package/lib/components/grid/grid.styles.js +935 -0
- package/lib/components/grid/grid.styles.js.map +1 -0
- package/lib/components/grid-item/grid-item.d.ts +15 -0
- package/lib/components/grid-item/grid-item.d.ts.map +1 -0
- package/lib/components/grid-item/grid-item.js +17 -602
- package/lib/components/grid-item/grid-item.js.map +1 -0
- package/lib/components/grid-item/grid-item.styles.d.ts +3 -0
- package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -0
- package/lib/components/grid-item/grid-item.styles.js +592 -0
- package/lib/components/grid-item/grid-item.styles.js.map +1 -0
- package/lib/components/header/header.d.ts +20 -0
- package/lib/components/header/header.d.ts.map +1 -0
- package/lib/components/header/header.js +34 -670
- package/lib/components/header/header.js.map +1 -0
- package/lib/components/header/header.styles.d.ts +3 -0
- package/lib/components/header/header.styles.d.ts.map +1 -0
- package/lib/components/header/header.styles.js +645 -0
- package/lib/components/header/header.styles.js.map +1 -0
- package/lib/components/heading/heading.d.ts +81 -0
- package/lib/components/heading/heading.d.ts.map +1 -0
- package/lib/components/heading/heading.js +111 -977
- package/lib/components/heading/heading.js.map +1 -0
- package/lib/components/heading/heading.styles.d.ts +3 -0
- package/lib/components/heading/heading.styles.d.ts.map +1 -0
- package/lib/components/heading/heading.styles.js +907 -0
- package/lib/components/heading/heading.styles.js.map +1 -0
- package/lib/components/hero/hero.d.ts +39 -0
- package/lib/components/hero/hero.d.ts.map +1 -0
- package/lib/components/hero/hero.js +43 -760
- package/lib/components/hero/hero.js.map +1 -0
- package/lib/components/hero/hero.styles.d.ts +3 -0
- package/lib/components/hero/hero.styles.d.ts.map +1 -0
- package/lib/components/hero/hero.styles.js +724 -0
- package/lib/components/hero/hero.styles.js.map +1 -0
- package/lib/components/icon/icon.d.ts +78 -0
- package/lib/components/icon/icon.d.ts.map +1 -0
- package/lib/components/icon/icon.js +228 -1246
- package/lib/components/icon/icon.js.map +1 -0
- package/lib/components/icon/icon.styles.d.ts +3 -0
- package/lib/components/icon/icon.styles.d.ts.map +1 -0
- package/lib/components/icon/icon.styles.js +660 -0
- package/lib/components/icon/icon.styles.js.map +1 -0
- package/lib/components/inline-alert/inline-alert.d.ts +52 -0
- package/lib/components/inline-alert/inline-alert.d.ts.map +1 -0
- package/lib/components/inline-alert/inline-alert.js +114 -849
- package/lib/components/inline-alert/inline-alert.js.map +1 -0
- package/lib/components/inline-alert/inline-alert.styles.d.ts +3 -0
- package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -0
- package/lib/components/inline-alert/inline-alert.styles.js +755 -0
- package/lib/components/inline-alert/inline-alert.styles.js.map +1 -0
- package/lib/components/layout/layout.d.ts +25 -0
- package/lib/components/layout/layout.d.ts.map +1 -0
- package/lib/components/layout/layout.js +30 -641
- package/lib/components/layout/layout.js.map +1 -0
- package/lib/components/layout/layout.styles.d.ts +3 -0
- package/lib/components/layout/layout.styles.d.ts.map +1 -0
- package/lib/components/layout/layout.styles.js +618 -0
- package/lib/components/layout/layout.styles.js.map +1 -0
- package/lib/components/layout-container/layout-container.d.ts +20 -0
- package/lib/components/layout-container/layout-container.d.ts.map +1 -0
- package/lib/components/layout-container/layout-container.js +30 -628
- package/lib/components/layout-container/layout-container.js.map +1 -0
- package/lib/components/layout-container/layout-container.styles.d.ts +3 -0
- package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -0
- package/lib/components/layout-container/layout-container.styles.js +605 -0
- package/lib/components/layout-container/layout-container.styles.js.map +1 -0
- package/lib/components/layout-section/layout-section.d.ts +26 -0
- package/lib/components/layout-section/layout-section.d.ts.map +1 -0
- package/lib/components/layout-section/layout-section.js +41 -622
- package/lib/components/layout-section/layout-section.js.map +1 -0
- package/lib/components/layout-section/layout-section.styles.d.ts +3 -0
- package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -0
- package/lib/components/layout-section/layout-section.styles.js +593 -0
- package/lib/components/layout-section/layout-section.styles.js.map +1 -0
- package/lib/components/linelength-container/linelength-container.d.ts +15 -0
- package/lib/components/linelength-container/linelength-container.d.ts.map +1 -0
- package/lib/components/linelength-container/linelength-container.js +17 -602
- package/lib/components/linelength-container/linelength-container.js.map +1 -0
- package/lib/components/linelength-container/linelength-container.styles.d.ts +3 -0
- package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -0
- package/lib/components/linelength-container/linelength-container.styles.js +592 -0
- package/lib/components/linelength-container/linelength-container.styles.js.map +1 -0
- package/lib/components/link/link.d.ts +93 -0
- package/lib/components/link/link.d.ts.map +1 -0
- package/lib/components/link/link.js +123 -846
- package/lib/components/link/link.js.map +1 -0
- package/lib/components/link/link.styles.d.ts +3 -0
- package/lib/components/link/link.styles.d.ts.map +1 -0
- package/lib/components/link/link.styles.js +765 -0
- package/lib/components/link/link.styles.js.map +1 -0
- package/lib/components/link-list/link-list.d.ts +42 -0
- package/lib/components/link-list/link-list.d.ts.map +1 -0
- package/lib/components/link-list/link-list.js +48 -739
- package/lib/components/link-list/link-list.js.map +1 -0
- package/lib/components/link-list/link-list.styles.d.ts +3 -0
- package/lib/components/link-list/link-list.styles.d.ts.map +1 -0
- package/lib/components/link-list/link-list.styles.js +698 -0
- package/lib/components/link-list/link-list.styles.js.map +1 -0
- package/lib/components/link-list-item/link-list-item.d.ts +27 -0
- package/lib/components/link-list-item/link-list-item.d.ts.map +1 -0
- package/lib/components/link-list-item/link-list-item.js +40 -677
- package/lib/components/link-list-item/link-list-item.js.map +1 -0
- package/lib/components/link-list-item/link-list-item.styles.d.ts +3 -0
- package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -0
- package/lib/components/link-list-item/link-list-item.styles.js +644 -0
- package/lib/components/link-list-item/link-list-item.styles.js.map +1 -0
- package/lib/components/list/list.d.ts +34 -0
- package/lib/components/list/list.d.ts.map +1 -0
- package/lib/components/list/list.js +35 -662
- package/lib/components/list/list.js.map +1 -0
- package/lib/components/list/list.styles.d.ts +3 -0
- package/lib/components/list/list.styles.d.ts.map +1 -0
- package/lib/components/list/list.styles.js +634 -0
- package/lib/components/list/list.styles.js.map +1 -0
- package/lib/components/list-item/list-item.d.ts +16 -0
- package/lib/components/list-item/list-item.d.ts.map +1 -0
- package/lib/components/list-item/list-item.js +25 -606
- package/lib/components/list-item/list-item.js.map +1 -0
- package/lib/components/list-item/list-item.styles.d.ts +3 -0
- package/lib/components/list-item/list-item.styles.d.ts.map +1 -0
- package/lib/components/list-item/list-item.styles.js +589 -0
- package/lib/components/list-item/list-item.styles.js.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.d.ts +90 -0
- package/lib/components/loading-spinner/loading-spinner.d.ts.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.js +124 -787
- package/lib/components/loading-spinner/loading-spinner.js.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.styles.d.ts +3 -0
- package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -0
- package/lib/components/loading-spinner/loading-spinner.styles.js +722 -0
- package/lib/components/loading-spinner/loading-spinner.styles.js.map +1 -0
- package/lib/components/logo/logo.d.ts +19 -0
- package/lib/components/logo/logo.d.ts.map +1 -0
- package/lib/components/logo/logo.js +28 -613
- package/lib/components/logo/logo.js.map +1 -0
- package/lib/components/logo/logo.styles.d.ts +3 -0
- package/lib/components/logo/logo.styles.d.ts.map +1 -0
- package/lib/components/logo/logo.styles.js +592 -0
- package/lib/components/logo/logo.styles.js.map +1 -0
- package/lib/components/main/main.d.ts +20 -0
- package/lib/components/main/main.d.ts.map +1 -0
- package/lib/components/main/main.js +29 -628
- package/lib/components/main/main.js.map +1 -0
- package/lib/components/main/main.styles.d.ts +3 -0
- package/lib/components/main/main.styles.d.ts.map +1 -0
- package/lib/components/main/main.styles.js +606 -0
- package/lib/components/main/main.styles.js.map +1 -0
- package/lib/components/modal/modal.d.ts +99 -0
- package/lib/components/modal/modal.d.ts.map +1 -0
- package/lib/components/modal/modal.js +170 -878
- package/lib/components/modal/modal.js.map +1 -0
- package/lib/components/modal/modal.styles.d.ts +3 -0
- package/lib/components/modal/modal.styles.d.ts.map +1 -0
- package/lib/components/modal/modal.styles.js +743 -0
- package/lib/components/modal/modal.styles.js.map +1 -0
- package/lib/components/multi-select/multi-select.d.ts +131 -0
- package/lib/components/multi-select/multi-select.d.ts.map +1 -0
- package/lib/components/multi-select/multi-select.js +294 -1030
- package/lib/components/multi-select/multi-select.js.map +1 -0
- package/lib/components/multi-select/multi-select.styles.d.ts +3 -0
- package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -0
- package/lib/components/multi-select/multi-select.styles.js +829 -0
- package/lib/components/multi-select/multi-select.styles.js.map +1 -0
- package/lib/components/nav-container/nav-container.d.ts +15 -0
- package/lib/components/nav-container/nav-container.d.ts.map +1 -0
- package/lib/components/nav-container/nav-container.js +17 -631
- package/lib/components/nav-container/nav-container.js.map +1 -0
- package/lib/components/nav-container/nav-container.styles.d.ts +3 -0
- package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -0
- package/lib/components/nav-container/nav-container.styles.js +621 -0
- package/lib/components/nav-container/nav-container.styles.js.map +1 -0
- package/lib/components/page-header/page-header.d.ts +19 -0
- package/lib/components/page-header/page-header.d.ts.map +1 -0
- package/lib/components/page-header/page-header.js +36 -664
- package/lib/components/page-header/page-header.js.map +1 -0
- package/lib/components/page-header/page-header.styles.d.ts +3 -0
- package/lib/components/page-header/page-header.styles.d.ts.map +1 -0
- package/lib/components/page-header/page-header.styles.js +639 -0
- package/lib/components/page-header/page-header.styles.js.map +1 -0
- package/lib/components/pagination/page-counter/page-counter.d.ts +20 -0
- package/lib/components/pagination/page-counter/page-counter.d.ts.map +1 -0
- package/lib/components/pagination/page-counter/page-counter.js +67 -0
- package/lib/components/pagination/page-counter/page-counter.js.map +1 -0
- package/lib/components/pagination/page-counter/page-counter.styles.d.ts +3 -0
- package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -0
- package/lib/components/pagination/page-counter/page-counter.styles.js +602 -0
- package/lib/components/pagination/page-counter/page-counter.styles.js.map +1 -0
- package/lib/components/pagination/pagination.d.ts +126 -0
- package/lib/components/pagination/pagination.d.ts.map +1 -0
- package/lib/components/pagination/pagination.js +272 -1475
- package/lib/components/pagination/pagination.js.map +1 -0
- package/lib/components/pagination/pagination.styles.d.ts +3 -0
- package/lib/components/pagination/pagination.styles.d.ts.map +1 -0
- package/lib/components/pagination/pagination.styles.js +648 -0
- package/lib/components/pagination/pagination.styles.js.map +1 -0
- package/lib/components/percent-bar/percent-bar.d.ts +26 -0
- package/lib/components/percent-bar/percent-bar.d.ts.map +1 -0
- package/lib/components/percent-bar/percent-bar.js +53 -657
- package/lib/components/percent-bar/percent-bar.js.map +1 -0
- package/lib/components/percent-bar/percent-bar.styles.d.ts +3 -0
- package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -0
- package/lib/components/percent-bar/percent-bar.styles.js +614 -0
- package/lib/components/percent-bar/percent-bar.styles.js.map +1 -0
- package/lib/components/popover/popover.d.ts +155 -0
- package/lib/components/popover/popover.d.ts.map +1 -0
- package/lib/components/popover/popover.js +293 -933
- package/lib/components/popover/popover.js.map +1 -0
- package/lib/components/popover/popover.styles.d.ts +3 -0
- package/lib/components/popover/popover.styles.d.ts.map +1 -0
- package/lib/components/popover/popover.styles.js +769 -0
- package/lib/components/popover/popover.styles.js.map +1 -0
- package/lib/components/primary-nav/primary-nav.d.ts +33 -0
- package/lib/components/primary-nav/primary-nav.d.ts.map +1 -0
- package/lib/components/primary-nav/primary-nav.js +44 -649
- package/lib/components/primary-nav/primary-nav.js.map +1 -0
- package/lib/components/primary-nav/primary-nav.styles.d.ts +3 -0
- package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -0
- package/lib/components/primary-nav/primary-nav.styles.js +616 -0
- package/lib/components/primary-nav/primary-nav.styles.js.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.d.ts +71 -0
- package/lib/components/primary-nav-item/primary-nav-item.d.ts.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.js +146 -874
- package/lib/components/primary-nav-item/primary-nav-item.js.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts +3 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.js +770 -0
- package/lib/components/primary-nav-item/primary-nav-item.styles.js.map +1 -0
- package/lib/components/progress-meter/progress-meter.d.ts +51 -0
- package/lib/components/progress-meter/progress-meter.d.ts.map +1 -0
- package/lib/components/progress-meter/progress-meter.js +72 -753
- package/lib/components/progress-meter/progress-meter.js.map +1 -0
- package/lib/components/progress-meter/progress-meter.styles.d.ts +3 -0
- package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -0
- package/lib/components/progress-meter/progress-meter.styles.js +702 -0
- package/lib/components/progress-meter/progress-meter.styles.js.map +1 -0
- package/lib/components/progress-steps/progress-steps.d.ts +34 -0
- package/lib/components/progress-steps/progress-steps.d.ts.map +1 -0
- package/lib/components/progress-steps/progress-steps.js +38 -617
- package/lib/components/progress-steps/progress-steps.js.map +1 -0
- package/lib/components/progress-steps/progress-steps.styles.d.ts +3 -0
- package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -0
- package/lib/components/progress-steps/progress-steps.styles.js +604 -0
- package/lib/components/progress-steps/progress-steps.styles.js.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.d.ts +44 -0
- package/lib/components/progress-steps-item/progress-steps-item.d.ts.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.js +51 -749
- package/lib/components/progress-steps-item/progress-steps-item.js.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts +3 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.js +714 -0
- package/lib/components/progress-steps-item/progress-steps-item.styles.js.map +1 -0
- package/lib/components/radio-field/radio-field.d.ts +56 -0
- package/lib/components/radio-field/radio-field.d.ts.map +1 -0
- package/lib/components/radio-field/radio-field.js +59 -672
- package/lib/components/radio-field/radio-field.js.map +1 -0
- package/lib/components/radio-field/radio-field.styles.d.ts +3 -0
- package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -0
- package/lib/components/radio-field/radio-field.styles.js +627 -0
- package/lib/components/radio-field/radio-field.styles.js.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.d.ts +158 -0
- package/lib/components/radio-field-item/radio-field-item.d.ts.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.js +213 -890
- package/lib/components/radio-field-item/radio-field-item.js.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.styles.d.ts +3 -0
- package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -0
- package/lib/components/radio-field-item/radio-field-item.styles.js +724 -0
- package/lib/components/radio-field-item/radio-field-item.styles.js.map +1 -0
- package/lib/components/remove-tag/remove-tag.d.ts +53 -0
- package/lib/components/remove-tag/remove-tag.d.ts.map +1 -0
- package/lib/components/remove-tag/remove-tag.js +86 -742
- package/lib/components/remove-tag/remove-tag.js.map +1 -0
- package/lib/components/remove-tag/remove-tag.styles.d.ts +3 -0
- package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -0
- package/lib/components/remove-tag/remove-tag.styles.js +684 -0
- package/lib/components/remove-tag/remove-tag.styles.js.map +1 -0
- package/lib/components/section/section.d.ts +33 -0
- package/lib/components/section/section.d.ts.map +1 -0
- package/lib/components/section/section.js +46 -634
- package/lib/components/section/section.js.map +1 -0
- package/lib/components/section/section.styles.d.ts +3 -0
- package/lib/components/section/section.styles.d.ts.map +1 -0
- package/lib/components/section/section.styles.js +611 -0
- package/lib/components/section/section.styles.js.map +1 -0
- package/lib/components/select/select.d.ts +169 -0
- package/lib/components/select/select.d.ts.map +1 -0
- package/lib/components/select/select.js +235 -890
- package/lib/components/select/select.js.map +1 -0
- package/lib/components/select/select.styles.d.ts +3 -0
- package/lib/components/select/select.styles.d.ts.map +1 -0
- package/lib/components/select/select.styles.js +742 -0
- package/lib/components/select/select.styles.js.map +1 -0
- package/lib/components/select-tile/select-tile-checkbox-controller.d.ts +40 -0
- package/lib/components/select-tile/select-tile-checkbox-controller.d.ts.map +1 -0
- package/lib/components/select-tile/select-tile-checkbox-controller.js +60 -0
- package/lib/components/select-tile/select-tile-checkbox-controller.js.map +1 -0
- package/lib/components/select-tile/select-tile-radio-controller.d.ts +87 -0
- package/lib/components/select-tile/select-tile-radio-controller.d.ts.map +1 -0
- package/lib/components/select-tile/select-tile-radio-controller.js +167 -0
- package/lib/components/select-tile/select-tile-radio-controller.js.map +1 -0
- package/lib/components/select-tile/select-tile.d.ts +159 -0
- package/lib/components/select-tile/select-tile.d.ts.map +1 -0
- package/lib/components/select-tile/select-tile.js +228 -226
- package/lib/components/select-tile/select-tile.js.map +1 -0
- package/lib/components/select-tile/select-tile.styles.d.ts +3 -0
- package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -0
- package/lib/components/select-tile/select-tile.styles.js +4 -0
- package/lib/components/select-tile/select-tile.styles.js.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.d.ts +52 -0
- package/lib/components/select-tile-list/select-tile-list.d.ts.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.js +73 -678
- package/lib/components/select-tile-list/select-tile-list.js.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.styles.d.ts +3 -0
- package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -0
- package/lib/components/select-tile-list/select-tile-list.styles.js +623 -0
- package/lib/components/select-tile-list/select-tile-list.styles.js.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.d.ts +53 -0
- package/lib/components/skeleton-loader/skeleton-loader.d.ts.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.js +68 -672
- package/lib/components/skeleton-loader/skeleton-loader.js.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts +3 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.js +637 -0
- package/lib/components/skeleton-loader/skeleton-loader.styles.js.map +1 -0
- package/lib/components/split-button/split-button.d.ts +34 -0
- package/lib/components/split-button/split-button.d.ts.map +1 -0
- package/lib/components/split-button/split-button.js +49 -638
- package/lib/components/split-button/split-button.js.map +1 -0
- package/lib/components/split-button/split-button.styles.d.ts +3 -0
- package/lib/components/split-button/split-button.styles.d.ts.map +1 -0
- package/lib/components/split-button/split-button.styles.js +598 -0
- package/lib/components/split-button/split-button.styles.js.map +1 -0
- package/lib/components/submenu/submenu.d.ts +15 -0
- package/lib/components/submenu/submenu.d.ts.map +1 -0
- package/lib/components/submenu/submenu.js +17 -604
- package/lib/components/submenu/submenu.js.map +1 -0
- package/lib/components/submenu/submenu.styles.d.ts +3 -0
- package/lib/components/submenu/submenu.styles.d.ts.map +1 -0
- package/lib/components/submenu/submenu.styles.js +594 -0
- package/lib/components/submenu/submenu.styles.js.map +1 -0
- package/lib/components/submenu-item/submenu-item.d.ts +19 -0
- package/lib/components/submenu-item/submenu-item.d.ts.map +1 -0
- package/lib/components/submenu-item/submenu-item.js +32 -624
- package/lib/components/submenu-item/submenu-item.js.map +1 -0
- package/lib/components/submenu-item/submenu-item.styles.d.ts +3 -0
- package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -0
- package/lib/components/submenu-item/submenu-item.styles.js +602 -0
- package/lib/components/submenu-item/submenu-item.styles.js.map +1 -0
- package/lib/components/tab/tab.d.ts +58 -0
- package/lib/components/tab/tab.d.ts.map +1 -0
- package/lib/components/tab/tab.js +73 -741
- package/lib/components/tab/tab.js.map +1 -0
- package/lib/components/tab/tab.styles.d.ts +3 -0
- package/lib/components/tab/tab.styles.d.ts.map +1 -0
- package/lib/components/tab/tab.styles.js +683 -0
- package/lib/components/tab/tab.styles.js.map +1 -0
- package/lib/components/tab-panel/tab-panel.d.ts +38 -0
- package/lib/components/tab-panel/tab-panel.d.ts.map +1 -0
- package/lib/components/tab-panel/tab-panel.js +49 -657
- package/lib/components/tab-panel/tab-panel.js.map +1 -0
- package/lib/components/tab-panel/tab-panel.styles.d.ts +3 -0
- package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -0
- package/lib/components/tab-panel/tab-panel.styles.js +618 -0
- package/lib/components/tab-panel/tab-panel.styles.js.map +1 -0
- package/lib/components/table/table.d.ts +43 -0
- package/lib/components/table/table.d.ts.map +1 -0
- package/lib/components/table/table.js +46 -673
- package/lib/components/table/table.js.map +1 -0
- package/lib/components/table/table.styles.d.ts +3 -0
- package/lib/components/table/table.styles.d.ts.map +1 -0
- package/lib/components/table/table.styles.js +636 -0
- package/lib/components/table/table.styles.js.map +1 -0
- package/lib/components/table-body/table-body.d.ts +15 -0
- package/lib/components/table-body/table-body.d.ts.map +1 -0
- package/lib/components/table-body/table-body.js +19 -607
- package/lib/components/table-body/table-body.js.map +1 -0
- package/lib/components/table-body/table-body.styles.d.ts +3 -0
- package/lib/components/table-body/table-body.styles.d.ts.map +1 -0
- package/lib/components/table-body/table-body.styles.js +595 -0
- package/lib/components/table-body/table-body.styles.js.map +1 -0
- package/lib/components/table-cell/table-cell.d.ts +32 -0
- package/lib/components/table-cell/table-cell.d.ts.map +1 -0
- package/lib/components/table-cell/table-cell.js +39 -660
- package/lib/components/table-cell/table-cell.js.map +1 -0
- package/lib/components/table-cell/table-cell.styles.d.ts +3 -0
- package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -0
- package/lib/components/table-cell/table-cell.styles.js +628 -0
- package/lib/components/table-cell/table-cell.styles.js.map +1 -0
- package/lib/components/table-header/table-header.d.ts +15 -0
- package/lib/components/table-header/table-header.d.ts.map +1 -0
- package/lib/components/table-header/table-header.js +19 -627
- package/lib/components/table-header/table-header.js.map +1 -0
- package/lib/components/table-header/table-header.styles.d.ts +3 -0
- package/lib/components/table-header/table-header.styles.d.ts.map +1 -0
- package/lib/components/table-header/table-header.styles.js +615 -0
- package/lib/components/table-header/table-header.styles.js.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.d.ts +24 -0
- package/lib/components/table-header-cell/table-header-cell.d.ts.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.js +35 -635
- package/lib/components/table-header-cell/table-header-cell.js.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.styles.d.ts +3 -0
- package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -0
- package/lib/components/table-header-cell/table-header-cell.styles.js +607 -0
- package/lib/components/table-header-cell/table-header-cell.styles.js.map +1 -0
- package/lib/components/table-object/table-object.d.ts +15 -0
- package/lib/components/table-object/table-object.d.ts.map +1 -0
- package/lib/components/table-object/table-object.js +21 -616
- package/lib/components/table-object/table-object.js.map +1 -0
- package/lib/components/table-object/table-object.styles.d.ts +3 -0
- package/lib/components/table-object/table-object.styles.d.ts.map +1 -0
- package/lib/components/table-object/table-object.styles.js +602 -0
- package/lib/components/table-object/table-object.styles.js.map +1 -0
- package/lib/components/table-row/table-row.d.ts +43 -0
- package/lib/components/table-row/table-row.d.ts.map +1 -0
- package/lib/components/table-row/table-row.js +74 -745
- package/lib/components/table-row/table-row.js.map +1 -0
- package/lib/components/table-row/table-row.styles.d.ts +3 -0
- package/lib/components/table-row/table-row.styles.d.ts.map +1 -0
- package/lib/components/table-row/table-row.styles.js +694 -0
- package/lib/components/table-row/table-row.styles.js.map +1 -0
- package/lib/components/tabs/tabs.d.ts +238 -0
- package/lib/components/tabs/tabs.d.ts.map +1 -0
- package/lib/components/tabs/tabs.js +441 -969
- package/lib/components/tabs/tabs.js.map +1 -0
- package/lib/components/tabs/tabs.styles.d.ts +3 -0
- package/lib/components/tabs/tabs.styles.d.ts.map +1 -0
- package/lib/components/tabs/tabs.styles.js +681 -0
- package/lib/components/tabs/tabs.styles.js.map +1 -0
- package/lib/components/tag/tag.d.ts +92 -0
- package/lib/components/tag/tag.d.ts.map +1 -0
- package/lib/components/tag/tag.js +222 -850
- package/lib/components/tag/tag.js.map +1 -0
- package/lib/components/tag/tag.styles.d.ts +3 -0
- package/lib/components/tag/tag.styles.d.ts.map +1 -0
- package/lib/components/tag/tag.styles.js +698 -0
- package/lib/components/tag/tag.styles.js.map +1 -0
- package/lib/components/tag-list/tag-list.d.ts +28 -0
- package/lib/components/tag-list/tag-list.d.ts.map +1 -0
- package/lib/components/tag-list/tag-list.js +40 -646
- package/lib/components/tag-list/tag-list.js.map +1 -0
- package/lib/components/tag-list/tag-list.styles.d.ts +3 -0
- package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -0
- package/lib/components/tag-list/tag-list.styles.js +615 -0
- package/lib/components/tag-list/tag-list.styles.js.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.d.ts +23 -0
- package/lib/components/tertiary-nav/tertiary-nav.d.ts.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.js +40 -645
- package/lib/components/tertiary-nav/tertiary-nav.js.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts +3 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.js +616 -0
- package/lib/components/tertiary-nav/tertiary-nav.styles.js.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.d.ts +29 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.d.ts.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js +52 -677
- package/lib/components/tertiary-nav-item/tertiary-nav-item.js.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts +3 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js +638 -0
- package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js.map +1 -0
- package/lib/components/text-link/text-link.d.ts +43 -0
- package/lib/components/text-link/text-link.d.ts.map +1 -0
- package/lib/components/text-link/text-link.js +45 -692
- package/lib/components/text-link/text-link.js.map +1 -0
- package/lib/components/text-link/text-link.styles.d.ts +3 -0
- package/lib/components/text-link/text-link.styles.d.ts.map +1 -0
- package/lib/components/text-link/text-link.styles.js +655 -0
- package/lib/components/text-link/text-link.styles.js.map +1 -0
- package/lib/components/text-passage/text-passage-light-dom.d.ts +3 -0
- package/lib/components/text-passage/text-passage-light-dom.d.ts.map +1 -0
- package/lib/components/text-passage/text-passage-light-dom.js +145 -0
- package/lib/components/text-passage/text-passage-light-dom.js.map +1 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.d.ts +3 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.js +843 -0
- package/lib/components/text-passage/text-passage-light-dom.styles.js.map +1 -0
- package/lib/components/text-passage/text-passage.d.ts +44 -0
- package/lib/components/text-passage/text-passage.d.ts.map +1 -0
- package/lib/components/text-passage/text-passage.js +73 -1505
- package/lib/components/text-passage/text-passage.js.map +1 -0
- package/lib/components/text-passage/text-passage.styles.d.ts +3 -0
- package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -0
- package/lib/components/text-passage/text-passage.styles.js +625 -0
- package/lib/components/text-passage/text-passage.styles.js.map +1 -0
- package/lib/components/tooltip/tooltip.d.ts +171 -0
- package/lib/components/tooltip/tooltip.d.ts.map +1 -0
- package/lib/components/tooltip/tooltip.js +270 -945
- package/lib/components/tooltip/tooltip.js.map +1 -0
- package/lib/components/tooltip/tooltip.styles.d.ts +3 -0
- package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -0
- package/lib/components/tooltip/tooltip.styles.js +784 -0
- package/lib/components/tooltip/tooltip.styles.js.map +1 -0
- package/lib/components/utility-nav/utility-nav.d.ts +24 -0
- package/lib/components/utility-nav/utility-nav.d.ts.map +1 -0
- package/lib/components/utility-nav/utility-nav.js +40 -645
- package/lib/components/utility-nav/utility-nav.js.map +1 -0
- package/lib/components/utility-nav/utility-nav.styles.d.ts +3 -0
- package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -0
- package/lib/components/utility-nav/utility-nav.styles.js +616 -0
- package/lib/components/utility-nav/utility-nav.styles.js.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.d.ts +39 -0
- package/lib/components/utility-nav-item/utility-nav-item.d.ts.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.js +70 -691
- package/lib/components/utility-nav-item/utility-nav-item.js.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts +3 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.js +646 -0
- package/lib/components/utility-nav-item/utility-nav-item.styles.js.map +1 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts +3 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.js +737 -0
- package/lib/design-tokens/brands/blue/css/tokens_blue.module.js.map +1 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts +3 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.d.ts.map +1 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js +756 -0
- package/lib/design-tokens/brands/bolt/tokens_bolt.theme.js.map +1 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.js +771 -0
- package/lib/design-tokens/brands/cre8/css/tokens_cre8.module.js.map +1 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/fonts.css +4 -8
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js +776 -0
- package/lib/design-tokens/brands/cre8-a2ui/css/tokens_cre8-a2ui.module.js.map +1 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts +3 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js +737 -0
- package/lib/design-tokens/brands/cre8-legacy/css/tokens_cre8-legacy.module.js.map +1 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts +3 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js +983 -0
- package/lib/design-tokens/brands/femmecubator/css/tokens_femmecubator2.module.js.map +1 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts +3 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js +737 -0
- package/lib/design-tokens/brands/legacy/css/tokens_legacy.module.js.map +1 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts +3 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js +736 -0
- package/lib/design-tokens/brands/marketing/css/tokens_marketing.module.js.map +1 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts +3 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js +737 -0
- package/lib/design-tokens/brands/minimalist/css/tokens_minimalist.module.js.map +1 -0
- package/lib/design-tokens/brands/notion/tokens_notion.module.d.ts +3 -0
- package/lib/design-tokens/brands/notion/tokens_notion.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/notion/tokens_notion.module.js +91 -0
- package/lib/design-tokens/brands/notion/tokens_notion.module.js.map +1 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.d.ts +3 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.js +771 -0
- package/lib/design-tokens/brands/prisma/tokens_prisma.module.js.map +1 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.d.ts +3 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.js +552 -0
- package/lib/design-tokens/brands/starbucks/tokens.module.js.map +1 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts +3 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.d.ts.map +1 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js +776 -0
- package/lib/design-tokens/brands/starbucks/tokens_starbucks.module.js.map +1 -0
- package/lib/design-tokens/core/scss/theming/head.module.d.ts +3 -0
- package/lib/design-tokens/core/scss/theming/head.module.d.ts.map +1 -0
- package/lib/design-tokens/core/scss/theming/head.module.js +6 -0
- package/lib/design-tokens/core/scss/theming/head.module.js.map +1 -0
- package/lib/directives/if-truthy.d.ts +10 -0
- package/lib/directives/if-truthy.d.ts.map +1 -0
- package/lib/directives/if-truthy.js +24 -0
- package/lib/directives/if-truthy.js.map +1 -0
- package/lib/directives/spread.d.ts +10 -0
- package/lib/directives/spread.d.ts.map +1 -0
- package/lib/directives/spread.js +29 -0
- package/lib/directives/spread.js.map +1 -0
- package/lib/index.d.ts +88 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +86 -172
- package/lib/index.js.map +1 -0
- package/lib/scripts/convert-scss-to-ts.d.ts +2 -0
- package/lib/scripts/convert-scss-to-ts.d.ts.map +1 -0
- package/lib/scripts/convert-scss-to-ts.js +100 -0
- package/lib/scripts/convert-scss-to-ts.js.map +1 -0
- package/lib/scripts/generate-mcp-manifest.d.ts +8 -0
- package/lib/scripts/generate-mcp-manifest.d.ts.map +1 -0
- package/lib/scripts/generate-mcp-manifest.js +350 -0
- package/lib/scripts/generate-mcp-manifest.js.map +1 -0
- package/lib/scripts/generate-react-wrappers.d.ts +2 -0
- package/lib/scripts/generate-react-wrappers.d.ts.map +1 -0
- package/lib/scripts/generate-react-wrappers.js +292 -0
- package/lib/scripts/generate-react-wrappers.js.map +1 -0
- package/lib/toBeAccessible.d.ts +9 -0
- package/lib/toBeAccessible.d.ts.map +1 -0
- package/lib/toBeAccessible.js +18 -0
- package/lib/toBeAccessible.js.map +1 -0
- package/lib/utilities/is-mobile.d.ts +5 -0
- package/lib/utilities/is-mobile.d.ts.map +1 -0
- package/lib/utilities/is-mobile.js +10 -0
- package/lib/utilities/is-mobile.js.map +1 -0
- package/lib/utilities/story-helpers.d.ts +9 -0
- package/lib/utilities/story-helpers.d.ts.map +1 -0
- package/lib/utilities/story-helpers.js +14 -0
- package/lib/utilities/story-helpers.js.map +1 -0
- package/lib/vite.config.cdn.d.ts +18 -0
- package/lib/vite.config.cdn.d.ts.map +1 -0
- package/lib/vite.config.cdn.js +87 -0
- package/lib/vite.config.cdn.js.map +1 -0
- package/lib/vite.config.d.ts +3 -0
- package/lib/vite.config.d.ts.map +1 -0
- package/lib/vite.config.js +195 -0
- package/lib/vite.config.js.map +1 -0
- package/mcp-manifest.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import * as fs from 'fs';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
/**
|
|
4
|
+
* Convert CEM v1 (modules/declarations) to the Tag[] format used by the generator.
|
|
5
|
+
*/
|
|
6
|
+
function cemToTags(manifest) {
|
|
7
|
+
if (manifest.tags)
|
|
8
|
+
return manifest.tags;
|
|
9
|
+
if (!manifest.modules)
|
|
10
|
+
return [];
|
|
11
|
+
const tags = [];
|
|
12
|
+
for (const mod of manifest.modules) {
|
|
13
|
+
if (!mod.declarations)
|
|
14
|
+
continue;
|
|
15
|
+
for (const decl of mod.declarations) {
|
|
16
|
+
if (decl.kind === 'class' && decl.tagName && decl.customElement) {
|
|
17
|
+
tags.push({
|
|
18
|
+
name: decl.tagName,
|
|
19
|
+
path: './' + mod.path,
|
|
20
|
+
description: decl.description,
|
|
21
|
+
attributes: decl.attributes?.map(a => ({
|
|
22
|
+
...a,
|
|
23
|
+
type: typeof a.type === 'object' && a.type !== null ? a.type.text : a.type,
|
|
24
|
+
})),
|
|
25
|
+
events: decl.events,
|
|
26
|
+
slots: decl.slots,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return tags;
|
|
32
|
+
}
|
|
33
|
+
function toPascalCase(str) {
|
|
34
|
+
return str
|
|
35
|
+
.split('-')
|
|
36
|
+
.map((part) => part.charAt(0).toUpperCase() + part.slice(1))
|
|
37
|
+
.join('');
|
|
38
|
+
}
|
|
39
|
+
function getReactPropType(type) {
|
|
40
|
+
if (!type)
|
|
41
|
+
return 'any';
|
|
42
|
+
// Handle truncated types (e.g., "... 5 more ...")
|
|
43
|
+
if (type.includes('...') && type.includes('more')) {
|
|
44
|
+
return 'string';
|
|
45
|
+
}
|
|
46
|
+
// Handle unknown/custom types that aren't standard
|
|
47
|
+
const unknownTypes = [
|
|
48
|
+
'ChartTypeRegistry', 'CalendarModal', 'status', 'Color', 'Shape',
|
|
49
|
+
'Cre8SelectOption', 'Cre8SelectOptionGroup', 'Chart'
|
|
50
|
+
];
|
|
51
|
+
for (const unknownType of unknownTypes) {
|
|
52
|
+
if (type.includes(unknownType)) {
|
|
53
|
+
return 'any';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
// Handle union types with only quoted strings
|
|
57
|
+
if (type.includes('|')) {
|
|
58
|
+
// Check if it's a valid union type (only strings, numbers, booleans, undefined, or quoted values)
|
|
59
|
+
const parts = type.split('|').map(p => p.trim());
|
|
60
|
+
const isValidUnion = parts.every(p => p === 'undefined' ||
|
|
61
|
+
p === 'string' ||
|
|
62
|
+
p === 'number' ||
|
|
63
|
+
p === 'boolean' ||
|
|
64
|
+
p.startsWith('"') ||
|
|
65
|
+
p === 'string | undefined' ||
|
|
66
|
+
p === 'number | undefined' ||
|
|
67
|
+
p === 'boolean | undefined');
|
|
68
|
+
if (isValidUnion) {
|
|
69
|
+
return type;
|
|
70
|
+
}
|
|
71
|
+
return 'any';
|
|
72
|
+
}
|
|
73
|
+
// Handle common types
|
|
74
|
+
switch (type.toLowerCase()) {
|
|
75
|
+
case 'string':
|
|
76
|
+
return 'string';
|
|
77
|
+
case 'number':
|
|
78
|
+
return 'number';
|
|
79
|
+
case 'boolean':
|
|
80
|
+
case 'boolean | undefined':
|
|
81
|
+
return 'boolean';
|
|
82
|
+
default:
|
|
83
|
+
// If it looks like a custom type (starts with capital letter), use any
|
|
84
|
+
if (/^[A-Z]/.test(type)) {
|
|
85
|
+
return 'any';
|
|
86
|
+
}
|
|
87
|
+
return type;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function toValidEventName(eventName) {
|
|
91
|
+
// Convert dots and dashes to camelCase
|
|
92
|
+
return eventName
|
|
93
|
+
.split(/[.-]/)
|
|
94
|
+
.map((part, index) => index === 0 ? part : part.charAt(0).toUpperCase() + part.slice(1))
|
|
95
|
+
.join('');
|
|
96
|
+
}
|
|
97
|
+
function generateReactWrapper(tag) {
|
|
98
|
+
const componentName = toPascalCase(tag.name);
|
|
99
|
+
const elementClassName = componentName;
|
|
100
|
+
const tagName = tag.name;
|
|
101
|
+
// Get the import path from the tag path
|
|
102
|
+
const importPath = tag.path
|
|
103
|
+
.replace('./components/', '')
|
|
104
|
+
.replace('.ts', '');
|
|
105
|
+
// Generate props interface
|
|
106
|
+
const propsLines = [];
|
|
107
|
+
if (tag.attributes) {
|
|
108
|
+
for (const attr of tag.attributes) {
|
|
109
|
+
const propName = attr.name.includes('-')
|
|
110
|
+
? attr.name.replace(/-([a-z])/g, (_, c) => c.toUpperCase())
|
|
111
|
+
: attr.name;
|
|
112
|
+
const propType = getReactPropType(attr.type);
|
|
113
|
+
const description = attr.description ? ` /** ${attr.description.trim().replace(/\n/g, ' ')} */\n` : '';
|
|
114
|
+
propsLines.push(`${description} ${propName}?: ${propType};`);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
// Add children prop for slots
|
|
118
|
+
if (tag.slots && tag.slots.length > 0) {
|
|
119
|
+
propsLines.push(' children?: React.ReactNode;');
|
|
120
|
+
}
|
|
121
|
+
// Generate event props
|
|
122
|
+
const eventProps = [];
|
|
123
|
+
if (tag.events) {
|
|
124
|
+
for (const event of tag.events) {
|
|
125
|
+
const validEventName = toValidEventName(event.name);
|
|
126
|
+
const eventPropName = 'on' + validEventName.charAt(0).toUpperCase() + validEventName.slice(1);
|
|
127
|
+
eventProps.push(` ${eventPropName}?: (event: CustomEvent) => void;`);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const allProps = [...propsLines, ...eventProps].join('\n');
|
|
131
|
+
// Generate the component
|
|
132
|
+
return `import { createComponent } from '@lit/react';
|
|
133
|
+
import { ${elementClassName} as ${elementClassName}Element } from '@tmorrow/cre8-wc/lib/components/${importPath}';
|
|
134
|
+
import React from 'react';
|
|
135
|
+
|
|
136
|
+
export interface ${componentName}Props {
|
|
137
|
+
${allProps}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* ${tag.description?.trim().split('\n')[0] || componentName + ' component'}
|
|
142
|
+
*/
|
|
143
|
+
export const ${componentName} = createComponent({
|
|
144
|
+
react: React,
|
|
145
|
+
tagName: '${tagName}',
|
|
146
|
+
elementClass: ${elementClassName}Element,
|
|
147
|
+
${tag.events && tag.events.length > 0 ? ` events: {
|
|
148
|
+
${tag.events.map(e => {
|
|
149
|
+
const validEventName = toValidEventName(e.name);
|
|
150
|
+
const eventPropName = 'on' + validEventName.charAt(0).toUpperCase() + validEventName.slice(1);
|
|
151
|
+
return ` ${eventPropName}: '${e.name}'`;
|
|
152
|
+
}).join(',\n')}
|
|
153
|
+
}` : ''}
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
export default ${componentName};
|
|
157
|
+
`;
|
|
158
|
+
}
|
|
159
|
+
function generateIndexFile(tags) {
|
|
160
|
+
// Track which components are exported from which folder
|
|
161
|
+
const folderExports = new Map();
|
|
162
|
+
for (const tag of tags) {
|
|
163
|
+
if (!tag.name.startsWith('cre8-'))
|
|
164
|
+
continue;
|
|
165
|
+
const componentName = toPascalCase(tag.name);
|
|
166
|
+
const importPath = tag.path
|
|
167
|
+
.replace('./components/', '')
|
|
168
|
+
.replace('.ts', '');
|
|
169
|
+
const folderName = toPascalCase(importPath.split('/')[0]);
|
|
170
|
+
if (!folderExports.has(folderName)) {
|
|
171
|
+
folderExports.set(folderName, []);
|
|
172
|
+
}
|
|
173
|
+
folderExports.get(folderName).push(componentName);
|
|
174
|
+
}
|
|
175
|
+
const exports = [];
|
|
176
|
+
for (const [folderName, components] of folderExports) {
|
|
177
|
+
// Only export the main component (one matching folder name with Cre8 prefix)
|
|
178
|
+
const expectedName = 'Cre8' + folderName;
|
|
179
|
+
const mainComponent = components.find(c => c === expectedName) || components[0];
|
|
180
|
+
exports.push(`export { ${mainComponent} } from './components/${folderName}';`);
|
|
181
|
+
}
|
|
182
|
+
return `// Auto-generated React wrappers
|
|
183
|
+
${exports.join('\n')}
|
|
184
|
+
`;
|
|
185
|
+
}
|
|
186
|
+
async function main() {
|
|
187
|
+
const manifestPath = path.join(process.cwd(), 'custom-elements.json');
|
|
188
|
+
const outputDir = path.join(process.cwd(), 'react-wrappers');
|
|
189
|
+
// Read manifest
|
|
190
|
+
const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf-8'));
|
|
191
|
+
// Create output directory
|
|
192
|
+
if (!fs.existsSync(outputDir)) {
|
|
193
|
+
fs.mkdirSync(outputDir, { recursive: true });
|
|
194
|
+
}
|
|
195
|
+
const componentsDir = path.join(outputDir, 'components');
|
|
196
|
+
if (!fs.existsSync(componentsDir)) {
|
|
197
|
+
fs.mkdirSync(componentsDir, { recursive: true });
|
|
198
|
+
}
|
|
199
|
+
// Convert manifest to tags format
|
|
200
|
+
const tags = cemToTags(manifest);
|
|
201
|
+
// Generate wrapper for each tag
|
|
202
|
+
const generatedComponents = [];
|
|
203
|
+
for (const tag of tags) {
|
|
204
|
+
if (!tag.name.startsWith('cre8-'))
|
|
205
|
+
continue;
|
|
206
|
+
const componentName = toPascalCase(tag.name);
|
|
207
|
+
const folderName = tag.path
|
|
208
|
+
.replace('./components/', '')
|
|
209
|
+
.replace('.ts', '')
|
|
210
|
+
.split('/')[0];
|
|
211
|
+
const componentDir = path.join(componentsDir, toPascalCase(folderName));
|
|
212
|
+
if (!fs.existsSync(componentDir)) {
|
|
213
|
+
fs.mkdirSync(componentDir, { recursive: true });
|
|
214
|
+
}
|
|
215
|
+
const wrapperCode = generateReactWrapper(tag);
|
|
216
|
+
const outputPath = path.join(componentDir, `${componentName}.tsx`);
|
|
217
|
+
fs.writeFileSync(outputPath, wrapperCode);
|
|
218
|
+
// Also create index.tsx
|
|
219
|
+
fs.writeFileSync(path.join(componentDir, 'index.tsx'), `export * from './${componentName}';\n`);
|
|
220
|
+
generatedComponents.push(componentName);
|
|
221
|
+
console.log(`Generated: ${componentName}`);
|
|
222
|
+
}
|
|
223
|
+
// Generate main index file
|
|
224
|
+
const indexContent = generateIndexFile(tags);
|
|
225
|
+
fs.writeFileSync(path.join(outputDir, 'index.ts'), indexContent);
|
|
226
|
+
// Read parent package version for syncing
|
|
227
|
+
const parentPkg = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'package.json'), 'utf-8'));
|
|
228
|
+
const version = parentPkg.version;
|
|
229
|
+
// Generate package.json
|
|
230
|
+
const packageJson = {
|
|
231
|
+
name: '@tmorrow/cre8-react',
|
|
232
|
+
version,
|
|
233
|
+
description: 'React wrappers for cre8 Web Components (@tmorrow/cre8-wc)',
|
|
234
|
+
license: parentPkg.license || 'MIT',
|
|
235
|
+
type: 'module',
|
|
236
|
+
main: 'dist/index.js',
|
|
237
|
+
types: 'dist/index.d.ts',
|
|
238
|
+
module: 'dist/index.js',
|
|
239
|
+
exports: {
|
|
240
|
+
'.': {
|
|
241
|
+
import: './dist/index.js',
|
|
242
|
+
types: './dist/index.d.ts',
|
|
243
|
+
},
|
|
244
|
+
'./components/*': {
|
|
245
|
+
import: './dist/components/*',
|
|
246
|
+
types: './dist/components/*',
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
files: ['dist'],
|
|
250
|
+
repository: {
|
|
251
|
+
type: 'git',
|
|
252
|
+
url: 'https://github.com/tmorrowdev/Cre8-Components.git',
|
|
253
|
+
directory: 'packages/cre8-wc/react-wrappers',
|
|
254
|
+
},
|
|
255
|
+
keywords: ['react', 'web-components', 'lit', 'cre8', 'design-system'],
|
|
256
|
+
peerDependencies: {
|
|
257
|
+
react: '>=18',
|
|
258
|
+
'react-dom': '>=18',
|
|
259
|
+
},
|
|
260
|
+
dependencies: {
|
|
261
|
+
'@lit/react': parentPkg.dependencies?.['@lit/react'] || '^1.0.8',
|
|
262
|
+
'@tmorrow/cre8-wc': `^${version}`,
|
|
263
|
+
},
|
|
264
|
+
};
|
|
265
|
+
fs.writeFileSync(path.join(outputDir, 'package.json'), JSON.stringify(packageJson, null, 2) + '\n');
|
|
266
|
+
// Generate tsconfig.json
|
|
267
|
+
const tsconfig = {
|
|
268
|
+
compilerOptions: {
|
|
269
|
+
target: 'ES2021',
|
|
270
|
+
module: 'ESNext',
|
|
271
|
+
moduleResolution: 'bundler',
|
|
272
|
+
declaration: true,
|
|
273
|
+
declarationMap: true,
|
|
274
|
+
outDir: 'dist',
|
|
275
|
+
rootDir: '.',
|
|
276
|
+
strict: true,
|
|
277
|
+
esModuleInterop: true,
|
|
278
|
+
skipLibCheck: true,
|
|
279
|
+
jsx: 'react-jsx',
|
|
280
|
+
paths: {
|
|
281
|
+
'@tmorrow/cre8-wc': ['../lib'],
|
|
282
|
+
'@tmorrow/cre8-wc/*': ['../*'],
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
include: ['index.ts', 'components/**/*.tsx'],
|
|
286
|
+
exclude: ['dist', 'node_modules'],
|
|
287
|
+
};
|
|
288
|
+
fs.writeFileSync(path.join(outputDir, 'tsconfig.json'), JSON.stringify(tsconfig, null, 2) + '\n');
|
|
289
|
+
console.log(`\nGenerated ${generatedComponents.length} React wrappers in ${outputDir}`);
|
|
290
|
+
}
|
|
291
|
+
main().catch(console.error);
|
|
292
|
+
//# sourceMappingURL=generate-react-wrappers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-react-wrappers.js","sourceRoot":"","sources":["../../scripts/generate-react-wrappers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAoD7B;;GAEG;AACH,SAAS,SAAS,CAAC,QAAgC;IACjD,IAAI,QAAQ,CAAC,IAAI;QAAE,OAAO,QAAQ,CAAC,IAAI,CAAC;IACxC,IAAI,CAAC,QAAQ,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,IAAI,GAAU,EAAE,CAAC;IACvB,KAAK,MAAM,GAAG,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;QACnC,IAAI,CAAC,GAAG,CAAC,YAAY;YAAE,SAAS;QAChC,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,YAAY,EAAE,CAAC;YACpC,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBAChE,IAAI,CAAC,IAAI,CAAC;oBACR,IAAI,EAAE,IAAI,CAAC,OAAO;oBAClB,IAAI,EAAE,IAA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AAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,EACpC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAC5C,CAAC;IAEF,yBAAyB;IACzB,MAAM,QAAQ,GAAG;QACf,eAAe,EAAE;YACf,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE,QAAQ;YAChB,gBAAgB,EAAE,SAAS;YAC3B,WAAW,EAAE,IAAI;YACjB,cAAc,EAAE,IAAI;YACpB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,GAAG;YACZ,MAAM,EAAE,IAAI;YACZ,eAAe,EAAE,IAAI;YACrB,YAAY,EAAE,IAAI;YAClB,GAAG,EAAE,WAAW;YAChB,KAAK,EAAE;gBACL,kBAAkB,EAAE,CAAC,QAAQ,CAAC;gBAC9B,oBAAoB,EAAE,CAAC,MAAM,CAAC;aAC/B;SACF;QACD,OAAO,EAAE,CAAC,UAAU,EAAE,qBAAqB,CAAC;QAC5C,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;KAClC,CAAC;IACF,EAAE,CAAC,aAAa,CACd,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,EACrC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CACzC,CAAC;IAEF,OAAO,CAAC,GAAG,CAAC,eAAe,mBAAmB,CAAC,MAAM,sBAAsB,SAAS,EAAE,CAAC,CAAC;AAC1F,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC","sourcesContent":["import * as fs from 'fs';\nimport * as path from 'path';\n\ninterface Attribute {\n name: string;\n description?: string;\n type?: string;\n default?: string;\n}\n\ninterface Event {\n name: string;\n description?: string;\n}\n\ninterface Slot {\n name: string;\n description?: string;\n}\n\ninterface Tag {\n name: string;\n path: string;\n description?: string;\n attributes?: Attribute[];\n events?: Event[];\n slots?: Slot[];\n}\n\ninterface CustomElementsManifest {\n version?: string;\n schemaVersion?: string;\n tags?: Tag[];\n modules?: CemModule[];\n}\n\ninterface CemModule {\n kind: string;\n path: string;\n declarations?: CemDeclaration[];\n}\n\ninterface CemDeclaration {\n kind: string;\n name: string;\n tagName?: string;\n customElement?: boolean;\n description?: string;\n attributes?: Attribute[];\n events?: Event[];\n slots?: Slot[];\n}\n\n/**\n * Convert CEM v1 (modules/declarations) to the Tag[] format used by the generator.\n */\nfunction cemToTags(manifest: CustomElementsManifest): Tag[] {\n if (manifest.tags) return manifest.tags;\n if (!manifest.modules) return [];\n\n const tags: Tag[] = [];\n for (const mod of manifest.modules) {\n if (!mod.declarations) continue;\n for (const decl of mod.declarations) {\n if (decl.kind === 'class' && decl.tagName && decl.customElement) {\n tags.push({\n name: decl.tagName,\n path: './' + mod.path,\n description: decl.description,\n attributes: decl.attributes?.map(a => ({\n ...a,\n type: typeof a.type === 'object' && a.type !== null ? (a.type as any).text : a.type,\n })),\n events: decl.events,\n slots: decl.slots,\n });\n }\n }\n }\n return tags;\n}\n\nfunction toPascalCase(str: string): string {\n return str\n .split('-')\n .map((part) => part.charAt(0).toUpperCase() + part.slice(1))\n .join('');\n}\n\nfunction getReactPropType(type: string | undefined): string {\n if (!type) return 'any';\n\n // Handle truncated types (e.g., \"... 5 more ...\")\n if (type.includes('...') && type.includes('more')) {\n return 'string';\n }\n\n // Handle unknown/custom types that aren't standard\n const unknownTypes = [\n 'ChartTypeRegistry', 'CalendarModal', 'status', 'Color', 'Shape',\n 'Cre8SelectOption', 'Cre8SelectOptionGroup', 'Chart'\n ];\n for (const unknownType of unknownTypes) {\n if (type.includes(unknownType)) {\n return 'any';\n }\n }\n\n // Handle union types with only quoted strings\n if (type.includes('|')) {\n // Check if it's a valid union type (only strings, numbers, booleans, undefined, or quoted values)\n const parts = type.split('|').map(p => p.trim());\n const isValidUnion = parts.every(p =>\n p === 'undefined' ||\n p === 'string' ||\n p === 'number' ||\n p === 'boolean' ||\n p.startsWith('\"') ||\n p === 'string | undefined' ||\n p === 'number | undefined' ||\n p === 'boolean | undefined'\n );\n if (isValidUnion) {\n return type;\n }\n return 'any';\n }\n\n // Handle common types\n switch (type.toLowerCase()) {\n case 'string':\n return 'string';\n case 'number':\n return 'number';\n case 'boolean':\n case 'boolean | undefined':\n return 'boolean';\n default:\n // If it looks like a custom type (starts with capital letter), use any\n if (/^[A-Z]/.test(type)) {\n return 'any';\n }\n return type;\n }\n}\n\nfunction toValidEventName(eventName: string): string {\n // Convert dots and dashes to camelCase\n return eventName\n .split(/[.-]/)\n .map((part, index) =>\n index === 0 ? part : part.charAt(0).toUpperCase() + part.slice(1)\n )\n .join('');\n}\n\nfunction generateReactWrapper(tag: Tag): string {\n const componentName = toPascalCase(tag.name);\n const elementClassName = componentName;\n const tagName = tag.name;\n\n // Get the import path from the tag path\n const importPath = tag.path\n .replace('./components/', '')\n .replace('.ts', '');\n\n // Generate props interface\n const propsLines: string[] = [];\n\n if (tag.attributes) {\n for (const attr of tag.attributes) {\n const propName = attr.name.includes('-')\n ? attr.name.replace(/-([a-z])/g, (_, c) => c.toUpperCase())\n : attr.name;\n const propType = getReactPropType(attr.type);\n const description = attr.description ? ` /** ${attr.description.trim().replace(/\\n/g, ' ')} */\\n` : '';\n propsLines.push(`${description} ${propName}?: ${propType};`);\n }\n }\n\n // Add children prop for slots\n if (tag.slots && tag.slots.length > 0) {\n propsLines.push(' children?: React.ReactNode;');\n }\n\n // Generate event props\n const eventProps: string[] = [];\n if (tag.events) {\n for (const event of tag.events) {\n const validEventName = toValidEventName(event.name);\n const eventPropName = 'on' + validEventName.charAt(0).toUpperCase() + validEventName.slice(1);\n eventProps.push(` ${eventPropName}?: (event: CustomEvent) => void;`);\n }\n }\n\n const allProps = [...propsLines, ...eventProps].join('\\n');\n\n // Generate the component\n return `import { createComponent } from '@lit/react';\nimport { ${elementClassName} as ${elementClassName}Element } from '@tmorrow/cre8-wc/lib/components/${importPath}';\nimport React from 'react';\n\nexport interface ${componentName}Props {\n${allProps}\n}\n\n/**\n * ${tag.description?.trim().split('\\n')[0] || componentName + ' component'}\n */\nexport const ${componentName} = createComponent({\n react: React,\n tagName: '${tagName}',\n elementClass: ${elementClassName}Element,\n${tag.events && tag.events.length > 0 ? ` events: {\n${tag.events.map(e => {\n const validEventName = toValidEventName(e.name);\n const eventPropName = 'on' + validEventName.charAt(0).toUpperCase() + validEventName.slice(1);\n return ` ${eventPropName}: '${e.name}'`;\n }).join(',\\n')}\n }` : ''}\n});\n\nexport default ${componentName};\n`;\n}\n\nfunction generateIndexFile(tags: Tag[]): string {\n // Track which components are exported from which folder\n const folderExports = new Map<string, string[]>();\n\n for (const tag of tags) {\n if (!tag.name.startsWith('cre8-')) continue;\n\n const componentName = toPascalCase(tag.name);\n const importPath = tag.path\n .replace('./components/', '')\n .replace('.ts', '');\n const folderName = toPascalCase(importPath.split('/')[0]);\n\n if (!folderExports.has(folderName)) {\n folderExports.set(folderName, []);\n }\n folderExports.get(folderName)!.push(componentName);\n }\n\n const exports: string[] = [];\n for (const [folderName, components] of folderExports) {\n // Only export the main component (one matching folder name with Cre8 prefix)\n const expectedName = 'Cre8' + folderName;\n const mainComponent = components.find(c => c === expectedName) || components[0];\n exports.push(`export { ${mainComponent} } from './components/${folderName}';`);\n }\n\n return `// Auto-generated React wrappers\n${exports.join('\\n')}\n`;\n}\n\nasync function main() {\n const manifestPath = path.join(process.cwd(), 'custom-elements.json');\n const outputDir = path.join(process.cwd(), 'react-wrappers');\n\n // Read manifest\n const manifest: CustomElementsManifest = JSON.parse(\n fs.readFileSync(manifestPath, 'utf-8')\n );\n\n // Create output directory\n if (!fs.existsSync(outputDir)) {\n fs.mkdirSync(outputDir, { recursive: true });\n }\n\n const componentsDir = path.join(outputDir, 'components');\n if (!fs.existsSync(componentsDir)) {\n fs.mkdirSync(componentsDir, { recursive: true });\n }\n\n // Convert manifest to tags format\n const tags = cemToTags(manifest);\n\n // Generate wrapper for each tag\n const generatedComponents: string[] = [];\n\n for (const tag of tags) {\n if (!tag.name.startsWith('cre8-')) continue;\n\n const componentName = toPascalCase(tag.name);\n const folderName = tag.path\n .replace('./components/', '')\n .replace('.ts', '')\n .split('/')[0];\n\n const componentDir = path.join(componentsDir, toPascalCase(folderName));\n if (!fs.existsSync(componentDir)) {\n fs.mkdirSync(componentDir, { recursive: true });\n }\n\n const wrapperCode = generateReactWrapper(tag);\n const outputPath = path.join(componentDir, `${componentName}.tsx`);\n\n fs.writeFileSync(outputPath, wrapperCode);\n\n // Also create index.tsx\n fs.writeFileSync(\n path.join(componentDir, 'index.tsx'),\n `export * from './${componentName}';\\n`\n );\n\n generatedComponents.push(componentName);\n console.log(`Generated: ${componentName}`);\n }\n\n // Generate main index file\n const indexContent = generateIndexFile(tags);\n fs.writeFileSync(path.join(outputDir, 'index.ts'), indexContent);\n\n // Read parent package version for syncing\n const parentPkg = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'package.json'), 'utf-8'));\n const version = parentPkg.version;\n\n // Generate package.json\n const packageJson = {\n name: '@tmorrow/cre8-react',\n version,\n description: 'React wrappers for cre8 Web Components (@tmorrow/cre8-wc)',\n license: parentPkg.license || 'MIT',\n type: 'module',\n main: 'dist/index.js',\n types: 'dist/index.d.ts',\n module: 'dist/index.js',\n exports: {\n '.': {\n import: './dist/index.js',\n types: './dist/index.d.ts',\n },\n './components/*': {\n import: './dist/components/*',\n types: './dist/components/*',\n },\n },\n files: ['dist'],\n repository: {\n type: 'git',\n url: 'https://github.com/tmorrowdev/Cre8-Components.git',\n directory: 'packages/cre8-wc/react-wrappers',\n },\n keywords: ['react', 'web-components', 'lit', 'cre8', 'design-system'],\n peerDependencies: {\n react: '>=18',\n 'react-dom': '>=18',\n },\n dependencies: {\n '@lit/react': parentPkg.dependencies?.['@lit/react'] || '^1.0.8',\n '@tmorrow/cre8-wc': `^${version}`,\n },\n };\n fs.writeFileSync(\n path.join(outputDir, 'package.json'),\n JSON.stringify(packageJson, null, 2) + '\\n'\n );\n\n // Generate tsconfig.json\n const tsconfig = {\n compilerOptions: {\n target: 'ES2021',\n module: 'ESNext',\n moduleResolution: 'bundler',\n declaration: true,\n declarationMap: true,\n outDir: 'dist',\n rootDir: '.',\n strict: true,\n esModuleInterop: true,\n skipLibCheck: true,\n jsx: 'react-jsx',\n paths: {\n '@tmorrow/cre8-wc': ['../lib'],\n '@tmorrow/cre8-wc/*': ['../*'],\n },\n },\n include: ['index.ts', 'components/**/*.tsx'],\n exclude: ['dist', 'node_modules'],\n };\n fs.writeFileSync(\n path.join(outputDir, 'tsconfig.json'),\n JSON.stringify(tsconfig, null, 2) + '\\n'\n );\n\n console.log(`\\nGenerated ${generatedComponents.length} React wrappers in ${outputDir}`);\n}\n\nmain().catch(console.error);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toBeAccessible.d.ts","sourceRoot":"","sources":["../toBeAccessible.ts"],"names":[],"mappings":"AAuBA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,IAAI,CAAC;QACb,UAAU,QAAQ,CAAC,CAAC;YAClB,cAAc,IAAI,CAAC,CAAC;SACrB;KACF;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
import { expect } from '@jest/globals';
|
|
3
|
+
import { axe, toHaveNoViolations } from 'jest-axe';
|
|
4
|
+
const defaultAxeOptions = {
|
|
5
|
+
runOnly: {
|
|
6
|
+
type: 'tag',
|
|
7
|
+
// Note that although WCAG 2.1 is inclusive of WCAG 2.0 in their guidelines, axe-core currently
|
|
8
|
+
// still separates these tags so we must include them for coverage.
|
|
9
|
+
values: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'],
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
// axeOptions: https://github.com/dequelabs/axe-core/blob/master/doc/API.md#options-parameter
|
|
13
|
+
const toBeAccessible = async (html) => {
|
|
14
|
+
const results = await axe(html, { ...defaultAxeOptions, frameWaitTime: 10000 });
|
|
15
|
+
return toHaveNoViolations.toHaveNoViolations(results);
|
|
16
|
+
};
|
|
17
|
+
expect.extend({ toBeAccessible });
|
|
18
|
+
//# sourceMappingURL=toBeAccessible.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toBeAccessible.js","sourceRoot":"","sources":["../toBeAccessible.ts"],"names":[],"mappings":"AAAA,oDAAoD;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,MAAM,iBAAiB,GAAG;IACtB,OAAO,EAAE;QACL,IAAI,EAAE,KAAc;QACxB,+FAA+F;QAC/F,mEAAmE;QAC/D,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC;KACvD;CACJ,CAAC;AAEF,6FAA6F;AAC7F,MAAM,cAAc,GAAG,KAAK,EAAE,IAAiB,EAAE,EAAE;IAC/C,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,iBAAiB,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,CAAC;IAChF,OAAO,kBAAkB,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\n\nimport { expect } from '@jest/globals';\nimport { axe, toHaveNoViolations } from 'jest-axe';\n\nconst defaultAxeOptions = {\n runOnly: {\n type: 'tag' as const,\n // Note that although WCAG 2.1 is inclusive of WCAG 2.0 in their guidelines, axe-core currently\n // still separates these tags so we must include them for coverage.\n values: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'],\n },\n};\n\n// axeOptions: https://github.com/dequelabs/axe-core/blob/master/doc/API.md#options-parameter\nconst toBeAccessible = async (html: HTMLElement) => {\n const results = await axe(html, { ...defaultAxeOptions, frameWaitTime: 10000 });\n return toHaveNoViolations.toHaveNoViolations(results);\n};\n\nexpect.extend({ toBeAccessible });\n\n\ndeclare global {\n namespace jest {\n interface Matchers<R> {\n toBeAccessible(): R;\n }\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-mobile.d.ts","sourceRoot":"","sources":["../../utilities/is-mobile.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,EAAE;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CAQvB,CAAC;AAGF,eAAO,MAAM,QAAQ,GAAI,eAAc,KAAG,OAAiE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-mobile.js","sourceRoot":"","sources":["../../utilities/is-mobile.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAEpB;IACA,GAAG,EAAE,GAAG;IACR,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,IAAI;CACZ,CAAC;AAGF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,MAAM,GAAG,KAAK,EAAW,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,eAAe,MAAM,KAAK,CAAC,CAAC,OAAO,CAAC","sourcesContent":["export const screenSizes: {\n [key: string]: number;\n} = {\n xsm: 375,\n sm: 560,\n md: 768,\n lg: 960,\n xl: 1200,\n xxl: 1600,\n};\n\n\nexport const isMobile = (screen = '768'): boolean => !window.matchMedia(`(min-width: ${screen}px)`).matches;\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const sanitizeInput: (value: string, ...extraAllowedTags: string[]) => string;
|
|
2
|
+
/**
|
|
3
|
+
* Adding this default export to satisfy the `import/prefer-default-export` eslint rule.
|
|
4
|
+
*
|
|
5
|
+
* Remove this once more functions are added to this file, OR
|
|
6
|
+
* rename this from `story-helpers.ts` if the only planned function is for sanitizeInput
|
|
7
|
+
*/
|
|
8
|
+
export default sanitizeInput;
|
|
9
|
+
//# sourceMappingURL=story-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"story-helpers.d.ts","sourceRoot":"","sources":["../../utilities/story-helpers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,EAAE,GAAG,kBAAkB,MAAM,EAAE,WAGxE,CAAC;AAEH;;;;;GAKG;AACH,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import sanitizeHtml from 'sanitize-html';
|
|
2
|
+
// Need to sanitize some fields we show in Storybook via `unsafeHTML` with user provided data
|
|
3
|
+
export const sanitizeInput = (value, ...extraAllowedTags) => sanitizeHtml(value, {
|
|
4
|
+
allowedTags: [...sanitizeHtml.defaults.allowedTags, ...extraAllowedTags],
|
|
5
|
+
allowedAttributes: false,
|
|
6
|
+
});
|
|
7
|
+
/**
|
|
8
|
+
* Adding this default export to satisfy the `import/prefer-default-export` eslint rule.
|
|
9
|
+
*
|
|
10
|
+
* Remove this once more functions are added to this file, OR
|
|
11
|
+
* rename this from `story-helpers.ts` if the only planned function is for sanitizeInput
|
|
12
|
+
*/
|
|
13
|
+
export default sanitizeInput;
|
|
14
|
+
//# sourceMappingURL=story-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"story-helpers.js","sourceRoot":"","sources":["../../utilities/story-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;AAEzC,6FAA6F;AAC7F,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,GAAG,gBAA0B,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE;IAC/F,WAAW,EAAE,CAAC,GAAG,YAAY,CAAC,QAAQ,CAAC,WAAW,EAAE,GAAG,gBAAgB,CAAC;IACxE,iBAAiB,EAAE,KAAK;CAC3B,CAAC,CAAC;AAEH;;;;;GAKG;AACH,eAAe,aAAa,CAAC","sourcesContent":["import sanitizeHtml from 'sanitize-html';\n\n// Need to sanitize some fields we show in Storybook via `unsafeHTML` with user provided data\nexport const sanitizeInput = (value: string, ...extraAllowedTags: string[]) => sanitizeHtml(value, {\n allowedTags: [...sanitizeHtml.defaults.allowedTags, ...extraAllowedTags],\n allowedAttributes: false,\n});\n\n/**\n * Adding this default export to satisfy the `import/prefer-default-export` eslint rule.\n *\n * Remove this once more functions are added to this file, OR\n * rename this from `story-helpers.ts` if the only planned function is for sanitizeInput\n */\nexport default sanitizeInput;\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CDN Build Configuration
|
|
3
|
+
*
|
|
4
|
+
* This configuration creates a bundled build suitable for CDN deployment.
|
|
5
|
+
* It bundles all dependencies (lit, lit-html, classnames, design tokens)
|
|
6
|
+
* into a single file that can be loaded via <script> tag.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* <script src="https://cdn.example.com/cre8-wc.min.js"></script>
|
|
10
|
+
* <!-- All cre8-* components are now available -->
|
|
11
|
+
* <cre8-button>Click me</cre8-button>
|
|
12
|
+
*
|
|
13
|
+
* Or as ES module:
|
|
14
|
+
* <script type="module" src="https://cdn.example.com/cre8-wc.esm.js"></script>
|
|
15
|
+
*/
|
|
16
|
+
declare const _default: import("vite").UserConfig;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=vite.config.cdn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.config.cdn.d.ts","sourceRoot":"","sources":["../vite.config.cdn.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;;AACH,wBAkEG"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import { resolve } from 'path';
|
|
3
|
+
/**
|
|
4
|
+
* CDN Build Configuration
|
|
5
|
+
*
|
|
6
|
+
* This configuration creates a bundled build suitable for CDN deployment.
|
|
7
|
+
* It bundles all dependencies (lit, lit-html, classnames, design tokens)
|
|
8
|
+
* into a single file that can be loaded via <script> tag.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* <script src="https://cdn.example.com/cre8-wc.min.js"></script>
|
|
12
|
+
* <!-- All cre8-* components are now available -->
|
|
13
|
+
* <cre8-button>Click me</cre8-button>
|
|
14
|
+
*
|
|
15
|
+
* Or as ES module:
|
|
16
|
+
* <script type="module" src="https://cdn.example.com/cre8-wc.esm.js"></script>
|
|
17
|
+
*/
|
|
18
|
+
export default defineConfig({
|
|
19
|
+
build: {
|
|
20
|
+
lib: {
|
|
21
|
+
entry: resolve(__dirname, 'cdn-entry.ts'),
|
|
22
|
+
name: 'Cre8WC',
|
|
23
|
+
formats: ['es', 'iife'],
|
|
24
|
+
fileName: (format) => {
|
|
25
|
+
if (format === 'es')
|
|
26
|
+
return 'cre8-wc.esm.js';
|
|
27
|
+
if (format === 'iife')
|
|
28
|
+
return 'cre8-wc.min.js';
|
|
29
|
+
return `cre8-wc.${format}.js`;
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
outDir: 'cdn',
|
|
33
|
+
emptyOutDir: true,
|
|
34
|
+
minify: 'esbuild',
|
|
35
|
+
sourcemap: true,
|
|
36
|
+
rollupOptions: {
|
|
37
|
+
output: {
|
|
38
|
+
// Ensure all code is in one file
|
|
39
|
+
inlineDynamicImports: true,
|
|
40
|
+
// Global variable name for IIFE build
|
|
41
|
+
name: 'Cre8WC',
|
|
42
|
+
// Preserve exports for ES module build
|
|
43
|
+
exports: 'named',
|
|
44
|
+
assetFileNames: (assetInfo) => {
|
|
45
|
+
if (/\.(css|scss)$/.test(assetInfo.name)) {
|
|
46
|
+
return 'cre8-wc.css';
|
|
47
|
+
}
|
|
48
|
+
if (/\.(woff|woff2|eot|ttf|otf)$/.test(assetInfo.name)) {
|
|
49
|
+
return `fonts/[name].[ext]`;
|
|
50
|
+
}
|
|
51
|
+
return `assets/[name].[ext]`;
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
// Don't mark anything as external - bundle everything
|
|
55
|
+
external: [],
|
|
56
|
+
},
|
|
57
|
+
// Increase chunk size warning limit since we're bundling everything
|
|
58
|
+
chunkSizeWarningLimit: 2000,
|
|
59
|
+
copyPublicDir: false,
|
|
60
|
+
},
|
|
61
|
+
css: {
|
|
62
|
+
preprocessorOptions: {
|
|
63
|
+
scss: {
|
|
64
|
+
additionalData: `@import "./design-tokens/core/scss/theming/head.module.css";`,
|
|
65
|
+
includePaths: [
|
|
66
|
+
resolve(__dirname, 'node_modules')
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
resolve: {
|
|
72
|
+
alias: {
|
|
73
|
+
'@tmorrow/cre8-wc/icons': resolve(__dirname, 'icons'),
|
|
74
|
+
},
|
|
75
|
+
extensions: ['.js', '.cjs', '.ts', '.jsx', '.tsx', '.scss', '.css', '.otf', '.ttf', '.yml']
|
|
76
|
+
},
|
|
77
|
+
esbuild: {
|
|
78
|
+
loader: 'ts',
|
|
79
|
+
include: /\.(ts|js)$/,
|
|
80
|
+
exclude: [],
|
|
81
|
+
},
|
|
82
|
+
define: {
|
|
83
|
+
// Ensure lit doesn't try to use dev mode in production
|
|
84
|
+
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=vite.config.cdn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.config.cdn.js","sourceRoot":"","sources":["../vite.config.cdn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MA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AE;oBACZ,OAAO,CAAC,SAAS,EAAE,cAAc,CAAC;iBACnC;aACF;SACF;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE;YACL,wBAAwB,EAAE,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC;SACtD;QACD,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;KAC5F;IACD,OAAO,EAAE;QACP,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,YAAY;QACrB,OAAO,EAAE,EAAE;KACZ;IACD,MAAM,EAAE;QACN,uDAAuD;QACvD,sBAAsB,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;KACrD;CACF,CAAC,CAAC","sourcesContent":["import { defineConfig } from 'vite';\nimport { resolve } from 'path';\n\n/**\n * CDN Build Configuration\n *\n * This configuration creates a bundled build suitable for CDN deployment.\n * It bundles all dependencies (lit, lit-html, classnames, design tokens)\n * into a single file that can be loaded via <script> tag.\n *\n * Usage:\n * <script src=\"https://cdn.example.com/cre8-wc.min.js\"></script>\n * <!-- All cre8-* components are now available -->\n * <cre8-button>Click me</cre8-button>\n *\n * Or as ES module:\n * <script type=\"module\" src=\"https://cdn.example.com/cre8-wc.esm.js\"></script>\n */\nexport default defineConfig({\n build: {\n lib: {\n entry: resolve(__dirname, 'cdn-entry.ts'),\n name: 'Cre8WC',\n formats: ['es', 'iife'],\n fileName: (format) => {\n if (format === 'es') return 'cre8-wc.esm.js';\n if (format === 'iife') return 'cre8-wc.min.js';\n return `cre8-wc.${format}.js`;\n },\n },\n outDir: 'cdn',\n emptyOutDir: true,\n minify: 'esbuild',\n sourcemap: true,\n rollupOptions: {\n output: {\n // Ensure all code is in one file\n inlineDynamicImports: true,\n // Global variable name for IIFE build\n name: 'Cre8WC',\n // Preserve exports for ES module build\n exports: 'named',\n assetFileNames: (assetInfo) => {\n if (/\\.(css|scss)$/.test(assetInfo.name!)) {\n return 'cre8-wc.css';\n }\n if (/\\.(woff|woff2|eot|ttf|otf)$/.test(assetInfo.name!)) {\n return `fonts/[name].[ext]`;\n }\n return `assets/[name].[ext]`;\n },\n },\n // Don't mark anything as external - bundle everything\n external: [],\n },\n // Increase chunk size warning limit since we're bundling everything\n chunkSizeWarningLimit: 2000,\n copyPublicDir: false,\n },\n css: {\n preprocessorOptions: {\n scss: {\n additionalData: `@import \"./design-tokens/core/scss/theming/head.module.css\";`,\n includePaths: [\n resolve(__dirname, 'node_modules')\n ]\n }\n }\n },\n resolve: {\n alias: {\n '@tmorrow/cre8-wc/icons': resolve(__dirname, 'icons'),\n },\n extensions: ['.js', '.cjs', '.ts', '.jsx', '.tsx', '.scss', '.css', '.otf', '.ttf', '.yml']\n },\n esbuild: {\n loader: 'ts',\n include: /\\.(ts|js)$/,\n exclude: [],\n },\n define: {\n // Ensure lit doesn't try to use dev mode in production\n 'process.env.NODE_ENV': JSON.stringify('production'),\n },\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAkEA,wBA2IG"}
|