@revotech-group/revotech-ui-kit 0.2.3 → 0.2.4
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/dist/library.css +11342 -0
- package/dist/rtg-ui-kit.js +18504 -0
- package/dist/rtg-ui-kit.umd.cjs +5177 -0
- package/dist/src/assets/icons/anchor.icon.d.ts +3 -0
- package/dist/src/assets/icons/app-window.icon.d.ts +3 -0
- package/dist/src/assets/icons/arrow-right.icon.d.ts +3 -0
- package/dist/src/assets/icons/arrow-up-circle.icon.d.ts +1 -0
- package/dist/src/assets/icons/arrow-up-right.icon.d.ts +3 -0
- package/dist/src/assets/icons/arrow-up.icon.d.ts +3 -0
- package/dist/src/assets/icons/arrows.icon.d.ts +1 -0
- package/dist/src/assets/icons/asterisk.icon.d.ts +3 -0
- package/dist/src/assets/icons/badge-alert.icon.d.ts +3 -0
- package/dist/src/assets/icons/badge-check.icon.d.ts +3 -0
- package/dist/src/assets/icons/badge-info.icon.d.ts +3 -0
- package/dist/src/assets/icons/badge-x.icon.d.ts +3 -0
- package/dist/src/assets/icons/captions.icon.d.ts +3 -0
- package/dist/src/assets/icons/carousel-arrow-left.d.ts +1 -0
- package/dist/src/assets/icons/carousel-arrow-right.d.ts +1 -0
- package/dist/src/assets/icons/chart.icon.d.ts +1 -0
- package/dist/src/assets/icons/check.icon.d.ts +3 -0
- package/dist/src/assets/icons/chorven-down.icon.d.ts +1 -0
- package/dist/src/assets/icons/circle-alert.icon.d.ts +3 -0
- package/dist/src/assets/icons/circle-check.icon.d.ts +3 -0
- package/dist/src/assets/icons/circle-fading-arrow-up.icon.d.ts +3 -0
- package/dist/src/assets/icons/circle-x.icon.d.ts +1 -0
- package/dist/src/assets/icons/circle.icon.d.ts +1 -0
- package/dist/src/assets/icons/close.icon.d.ts +1 -0
- package/dist/src/assets/icons/code.icon.d.ts +3 -0
- package/dist/src/assets/icons/decrease.icon.d.ts +1 -0
- package/dist/src/assets/icons/dot.icon.d.ts +1 -0
- package/dist/src/assets/icons/external-link.icon.d.ts +3 -0
- package/dist/src/assets/icons/eye-off.d.ts +1 -0
- package/dist/src/assets/icons/eye-on.d.ts +1 -0
- package/dist/src/assets/icons/git-branch-minus.icon.d.ts +3 -0
- package/dist/src/assets/icons/git-branch-plus.icon.d.ts +3 -0
- package/dist/src/assets/icons/help-circle.icon.d.ts +1 -0
- package/dist/src/assets/icons/house.icon.d.ts +3 -0
- package/dist/src/assets/icons/index.d.ts +48 -0
- package/dist/src/assets/icons/info.icon.d.ts +3 -0
- package/dist/src/assets/icons/loader-circle.icon.d.ts +3 -0
- package/dist/src/assets/icons/mail-warning.icon.d.ts +3 -0
- package/dist/src/assets/icons/minus.icon.d.ts +3 -0
- package/dist/src/assets/icons/plus.icon.d.ts +1 -0
- package/dist/src/assets/icons/rabbit.icon.d.ts +3 -0
- package/dist/src/assets/icons/radio-group.icon.d.ts +1 -0
- package/dist/src/assets/icons/radio.icon.d.ts +1 -0
- package/dist/src/assets/icons/refresh-cw.icon.d.ts +3 -0
- package/dist/src/assets/icons/search.icon.d.ts +3 -0
- package/dist/src/assets/icons/settings.icon.d.ts +3 -0
- package/dist/src/assets/icons/shopping-bag.icon.d.ts +3 -0
- package/dist/src/assets/icons/tick.icon.d.ts +1 -0
- package/dist/src/assets/icons/wand.icon.d.ts +3 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/ui/accordion/accordion-content.d.ts +21 -0
- package/dist/src/components/ui/accordion/accordion-item.d.ts +22 -0
- package/dist/src/components/ui/accordion/accordion-trigger.d.ts +18 -0
- package/dist/src/components/ui/accordion/accordion.d.ts +26 -0
- package/dist/src/components/ui/accordion/accordion.defs.d.ts +10 -0
- package/dist/src/components/ui/accordion/accordion.stories.d.ts +11 -0
- package/dist/src/components/ui/accordion/accordion.styles.d.ts +4 -0
- package/dist/src/components/ui/alert/_alert-action.d.ts +22 -0
- package/dist/src/components/ui/alert/_alert-description.d.ts +22 -0
- package/dist/src/components/ui/alert/_alert-title.d.ts +21 -0
- package/dist/src/components/ui/alert/_alert.d.ts +26 -0
- package/dist/src/components/ui/alert/alert.d.ts +17 -0
- package/dist/src/components/ui/alert/alert.defs.d.ts +4 -0
- package/dist/src/components/ui/alert/alert.stories.d.ts +13 -0
- package/dist/src/components/ui/aspect-ratio/aspect-ratio.d.ts +17 -0
- package/dist/src/components/ui/aspect-ratio/aspect-ratio.stories.d.ts +5 -0
- package/dist/src/components/ui/aspect-ratio/aspect-ratio.styles.d.ts +4 -0
- package/dist/src/components/ui/avatar/_avatar-badge.d.ts +22 -0
- package/dist/src/components/ui/avatar/_avatar-fallback.d.ts +22 -0
- package/dist/src/components/ui/avatar/_avatar-group-count.d.ts +22 -0
- package/dist/src/components/ui/avatar/_avatar-group.d.ts +22 -0
- package/dist/src/components/ui/avatar/_avatar-image.d.ts +29 -0
- package/dist/src/components/ui/avatar/_avatar.d.ts +66 -0
- package/dist/src/components/ui/avatar/avatar.d.ts +21 -0
- package/dist/src/components/ui/avatar/avatar.defs.d.ts +8 -0
- package/dist/src/components/ui/avatar/avatar.stories.d.ts +14 -0
- package/dist/src/components/ui/badge/badge.d.ts +20 -0
- package/dist/src/components/ui/badge/badge.stories.d.ts +7 -0
- package/dist/src/components/ui/badge/badge.style.d.ts +3 -0
- package/dist/src/components/ui/badge/badge.type.d.ts +1 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-ellipsis.d.ts +12 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-item.d.ts +15 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-link.d.ts +16 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-list.d.ts +15 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-separator.d.ts +12 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-text.d.ts +15 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +22 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb.stories.d.ts +5 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb.styles.d.ts +4 -0
- package/dist/src/components/ui/button/_button.d.ts +63 -0
- package/dist/src/components/ui/button/button.d.ts +11 -0
- package/dist/src/components/ui/button/button.defs.d.ts +14 -0
- package/dist/src/components/ui/button/button.stories.d.ts +14 -0
- package/dist/src/components/ui/button/button.style.d.ts +4 -0
- package/dist/src/components/ui/calendar/calendar.d.ts +25 -0
- package/dist/src/components/ui/calendar/calendar.helpers.d.ts +3 -0
- package/dist/src/components/ui/calendar/calendar.stories.d.ts +5 -0
- package/dist/src/components/ui/calendar/calendar.style.d.ts +40 -0
- package/dist/src/components/ui/card/_card-action.d.ts +22 -0
- package/dist/src/components/ui/card/_card-content.d.ts +21 -0
- package/dist/src/components/ui/card/_card-description.d.ts +22 -0
- package/dist/src/components/ui/card/_card-footer.d.ts +27 -0
- package/dist/src/components/ui/card/_card-header.d.ts +27 -0
- package/dist/src/components/ui/card/_card-title.d.ts +21 -0
- package/dist/src/components/ui/card/_card.d.ts +26 -0
- package/dist/src/components/ui/card/card.d.ts +23 -0
- package/dist/src/components/ui/card/card.defs.d.ts +10 -0
- package/dist/src/components/ui/card/card.stories.d.ts +12 -0
- package/dist/src/components/ui/carousel/carousel.d.ts +25 -0
- package/dist/src/components/ui/carousel/carousel.stories.d.ts +7 -0
- package/dist/src/components/ui/carousel/carousel.styles.d.ts +32 -0
- package/dist/src/components/ui/checkbox/_checkbox.d.ts +66 -0
- package/dist/src/components/ui/checkbox/checkbox.d.ts +11 -0
- package/dist/src/components/ui/checkbox/checkbox.defs.d.ts +11 -0
- package/dist/src/components/ui/checkbox/checkbox.stories.d.ts +11 -0
- package/dist/src/components/ui/collapsible/collapsible-content.d.ts +18 -0
- package/dist/src/components/ui/collapsible/collapsible-trigger.d.ts +18 -0
- package/dist/src/components/ui/collapsible/collapsible.d.ts +24 -0
- package/dist/src/components/ui/collapsible/collapsible.stories.d.ts +6 -0
- package/dist/src/components/ui/combobox/combo-box-empty.d.ts +15 -0
- package/dist/src/components/ui/combobox/combo-box-group.d.ts +38 -0
- package/dist/src/components/ui/combobox/combo-box-input.d.ts +18 -0
- package/dist/src/components/ui/combobox/combo-box-item.d.ts +26 -0
- package/dist/src/components/ui/combobox/combo-box-trigger.d.ts +19 -0
- package/dist/src/components/ui/combobox/combo-box-value.d.ts +19 -0
- package/dist/src/components/ui/combobox/combo-box.d.ts +36 -0
- package/dist/src/components/ui/combobox/combo-box.stories.d.ts +11 -0
- package/dist/src/components/ui/combobox/combo-box.styles.d.ts +14 -0
- package/dist/src/components/ui/command/command-empty.atom.d.ts +19 -0
- package/dist/src/components/ui/command/command-group.atom.d.ts +20 -0
- package/dist/src/components/ui/command/command-input.atom.d.ts +16 -0
- package/dist/src/components/ui/command/command-item.atom.d.ts +25 -0
- package/dist/src/components/ui/command/command-list.atom.d.ts +16 -0
- package/dist/src/components/ui/command/command-separator.atom.d.ts +15 -0
- package/dist/src/components/ui/command/command.d.ts +23 -0
- package/dist/src/components/ui/command/command.helpers.d.ts +6 -0
- package/dist/src/components/ui/command/command.stories.d.ts +7 -0
- package/dist/src/components/ui/command/command.styles.d.ts +15 -0
- package/dist/src/components/ui/context-menu/context-menu-checkbox-Item.d.ts +17 -0
- package/dist/src/components/ui/context-menu/context-menu-content.d.ts +15 -0
- package/dist/src/components/ui/context-menu/context-menu-group.d.ts +11 -0
- package/dist/src/components/ui/context-menu/context-menu-item.d.ts +14 -0
- package/dist/src/components/ui/context-menu/context-menu-radio-item.d.ts +17 -0
- package/dist/src/components/ui/context-menu/context-menu-seperator.d.ts +7 -0
- package/dist/src/components/ui/context-menu/context-menu-shortcut.d.ts +10 -0
- package/dist/src/components/ui/context-menu/context-menu-trigger.d.ts +6 -0
- package/dist/src/components/ui/context-menu/context-menu.d.ts +41 -0
- package/dist/src/components/ui/context-menu/context-menu.helpers.d.ts +1 -0
- package/dist/src/components/ui/context-menu/context-menu.styles.d.ts +20 -0
- package/dist/src/components/ui/context-menu/contextMenu.stories.d.ts +5 -0
- package/dist/src/components/ui/data-table/data-table.d.ts +40 -0
- package/dist/src/components/ui/data-table/data-table.stories.d.ts +6 -0
- package/dist/src/components/ui/date-picker/date-picker.d.ts +13 -0
- package/dist/src/components/ui/date-picker/date-picker.stories.d.ts +5 -0
- package/dist/src/components/ui/date-picker/date-picker.styles.d.ts +6 -0
- package/dist/src/components/ui/dialog/dialog-close.d.ts +16 -0
- package/dist/src/components/ui/dialog/dialog-content.d.ts +16 -0
- package/dist/src/components/ui/dialog/dialog-footer.d.ts +10 -0
- package/dist/src/components/ui/dialog/dialog-header.d.ts +8 -0
- package/dist/src/components/ui/dialog/dialog-overly.d.ts +6 -0
- package/dist/src/components/ui/dialog/dialog-trigger.d.ts +12 -0
- package/dist/src/components/ui/dialog/dialog.d.ts +31 -0
- package/dist/src/components/ui/dialog/dialog.stories.d.ts +7 -0
- package/dist/src/components/ui/dialog/dialog.styles.d.ts +17 -0
- package/dist/src/components/ui/drawer/drawer-close.d.ts +16 -0
- package/dist/src/components/ui/drawer/drawer-content.d.ts +15 -0
- package/dist/src/components/ui/drawer/drawer-description.d.ts +10 -0
- package/dist/src/components/ui/drawer/drawer-footer.d.ts +10 -0
- package/dist/src/components/ui/drawer/drawer-header.d.ts +9 -0
- package/dist/src/components/ui/drawer/drawer-overlay.d.ts +6 -0
- package/dist/src/components/ui/drawer/drawer-title.d.ts +10 -0
- package/dist/src/components/ui/drawer/drawer-trigger.d.ts +12 -0
- package/dist/src/components/ui/drawer/drawer.d.ts +41 -0
- package/dist/src/components/ui/drawer/drawer.helpers.d.ts +2 -0
- package/dist/src/components/ui/drawer/drawer.stories.d.ts +5 -0
- package/dist/src/components/ui/drawer/drawer.styles.d.ts +14 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-checkbox-Item.d.ts +18 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-content.d.ts +14 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-group.d.ts +12 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-item.d.ts +18 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-radio-item.d.ts +17 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-seperator.d.ts +9 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-shortcut.d.ts +9 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-trigger.d.ts +6 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +41 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.helpers.d.ts +3 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.styles.d.ts +20 -0
- package/dist/src/components/ui/dropdown-menu/dropdownMenu.stories.d.ts +7 -0
- package/dist/src/components/ui/field/_field-content.d.ts +24 -0
- package/dist/src/components/ui/field/_field-description.d.ts +24 -0
- package/dist/src/components/ui/field/_field-error.d.ts +24 -0
- package/dist/src/components/ui/field/_field-group.d.ts +29 -0
- package/dist/src/components/ui/field/_field-label.d.ts +28 -0
- package/dist/src/components/ui/field/_field-legend.d.ts +31 -0
- package/dist/src/components/ui/field/_field-separator.d.ts +39 -0
- package/dist/src/components/ui/field/_field-set.d.ts +23 -0
- package/dist/src/components/ui/field/_field-title.d.ts +23 -0
- package/dist/src/components/ui/field/_field.d.ts +37 -0
- package/dist/src/components/ui/field/field.d.ts +30 -0
- package/dist/src/components/ui/field/field.defs.d.ts +24 -0
- package/dist/src/components/ui/field/field.stories.d.ts +17 -0
- package/dist/src/components/ui/form/form-context.d.ts +5 -0
- package/dist/src/components/ui/form/form-controller.d.ts +28 -0
- package/dist/src/components/ui/form/form-field-context.d.ts +3 -0
- package/dist/src/components/ui/form/form-item-context.d.ts +7 -0
- package/dist/src/components/ui/form/form.stories.d.ts +6 -0
- package/dist/src/components/ui/form/form.styles.d.ts +7 -0
- package/dist/src/components/ui/form/rtg-form-controller.d.ts +17 -0
- package/dist/src/components/ui/form/rtg-form-description.d.ts +14 -0
- package/dist/src/components/ui/form/rtg-form-field.d.ts +20 -0
- package/dist/src/components/ui/form/rtg-form-item.d.ts +17 -0
- package/dist/src/components/ui/form/rtg-form-label.d.ts +20 -0
- package/dist/src/components/ui/form/rtg-form-message.d.ts +18 -0
- package/dist/src/components/ui/form/rtg-form.d.ts +24 -0
- package/dist/src/components/ui/hoverCard/hover-card-content.d.ts +16 -0
- package/dist/src/components/ui/hoverCard/hover-card-trigger.d.ts +10 -0
- package/dist/src/components/ui/hoverCard/hover-card.d.ts +29 -0
- package/dist/src/components/ui/hoverCard/hover-card.stories.d.ts +5 -0
- package/dist/src/components/ui/hoverCard/hover-card.styles.d.ts +5 -0
- package/dist/src/components/ui/index.d.ts +42 -0
- package/dist/src/components/ui/input/_input.d.ts +164 -0
- package/dist/src/components/ui/input/input.d.ts +12 -0
- package/dist/src/components/ui/input/input.defs.d.ts +28 -0
- package/dist/src/components/ui/input/input.stories.d.ts +17 -0
- package/dist/src/components/ui/input-otp/_input-otp-group.d.ts +26 -0
- package/dist/src/components/ui/input-otp/_input-otp-separator.d.ts +16 -0
- package/dist/src/components/ui/input-otp/_input-otp-slot.d.ts +35 -0
- package/dist/src/components/ui/input-otp/_input-otp.d.ts +213 -0
- package/dist/src/components/ui/input-otp/input-otp.d.ts +17 -0
- package/dist/src/components/ui/input-otp/input-otp.defs.d.ts +28 -0
- package/dist/src/components/ui/input-otp/input-otp.stories.d.ts +13 -0
- package/dist/src/components/ui/label/_label.d.ts +27 -0
- package/dist/src/components/ui/label/label.d.ts +11 -0
- package/dist/src/components/ui/label/label.defs.d.ts +3 -0
- package/dist/src/components/ui/label/label.stories.d.ts +11 -0
- package/dist/src/components/ui/menubar/menubar-checkbox.item.d.ts +20 -0
- package/dist/src/components/ui/menubar/menubar-content.d.ts +20 -0
- package/dist/src/components/ui/menubar/menubar-group.d.ts +15 -0
- package/dist/src/components/ui/menubar/menubar-item.d.ts +18 -0
- package/dist/src/components/ui/menubar/menubar-menu.d.ts +31 -0
- package/dist/src/components/ui/menubar/menubar-radio-item.d.ts +20 -0
- package/dist/src/components/ui/menubar/menubar-separator.d.ts +14 -0
- package/dist/src/components/ui/menubar/menubar-shortcut.d.ts +10 -0
- package/dist/src/components/ui/menubar/menubar-trigger.d.ts +10 -0
- package/dist/src/components/ui/menubar/menubar.d.ts +34 -0
- package/dist/src/components/ui/menubar/menubar.helpers.d.ts +3 -0
- package/dist/src/components/ui/menubar/menubar.stories.d.ts +5 -0
- package/dist/src/components/ui/menubar/menubar.styles.d.ts +21 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu-content.d.ts +20 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu-item.d.ts +24 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu-link.d.ts +10 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu-list.d.ts +9 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu-trigger.d.ts +10 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu.d.ts +25 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu.stories.d.ts +5 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu.styles.d.ts +9 -0
- package/dist/src/components/ui/pagination/pagination-content.d.ts +9 -0
- package/dist/src/components/ui/pagination/pagination-ellipsis.d.ts +9 -0
- package/dist/src/components/ui/pagination/pagination-item.d.ts +15 -0
- package/dist/src/components/ui/pagination/pagination-link.d.ts +15 -0
- package/dist/src/components/ui/pagination/pagination-next.d.ts +10 -0
- package/dist/src/components/ui/pagination/pagination-previous.d.ts +10 -0
- package/dist/src/components/ui/pagination/pagination.d.ts +27 -0
- package/dist/src/components/ui/pagination/pagination.stories.d.ts +5 -0
- package/dist/src/components/ui/pagination/pagination.styles.d.ts +22 -0
- package/dist/src/components/ui/pagination/pagination.type.d.ts +2 -0
- package/dist/src/components/ui/popover/popover-content.d.ts +19 -0
- package/dist/src/components/ui/popover/popover-trigger.d.ts +13 -0
- package/dist/src/components/ui/popover/popover.d.ts +22 -0
- package/dist/src/components/ui/popover/popover.stories.d.ts +5 -0
- package/dist/src/components/ui/popover/popover.style.d.ts +5 -0
- package/dist/src/components/ui/popover/popover.types.d.ts +2 -0
- package/dist/src/components/ui/progress/progress.d.ts +12 -0
- package/dist/src/components/ui/progress/progress.stories.d.ts +5 -0
- package/dist/src/components/ui/progress/progress.styles.d.ts +4 -0
- package/dist/src/components/ui/radio-group/radio-group-item.d.ts +22 -0
- package/dist/src/components/ui/radio-group/radio-group.d.ts +20 -0
- package/dist/src/components/ui/radio-group/radio-group.stories.d.ts +5 -0
- package/dist/src/components/ui/radio-group/radio-group.styles.d.ts +9 -0
- package/dist/src/components/ui/radio-group/radio-group.types.d.ts +2 -0
- package/dist/src/components/ui/sample-demo/sample-demo.d.ts +24 -0
- package/dist/src/components/ui/sample-demo/sample.style.d.ts +4 -0
- package/dist/src/components/ui/sample-demo/sample.type.d.ts +3 -0
- package/dist/src/components/ui/scroll-area/scroll-area.d.ts +13 -0
- package/dist/src/components/ui/scroll-area/scroll-area.stories.d.ts +5 -0
- package/dist/src/components/ui/scroll-area/scroll-area.style.d.ts +1 -0
- package/dist/src/components/ui/select/select-controller.d.ts +16 -0
- package/dist/src/components/ui/select/select-group.d.ts +26 -0
- package/dist/src/components/ui/select/select-item.d.ts +27 -0
- package/dist/src/components/ui/select/select-label.d.ts +14 -0
- package/dist/src/components/ui/select/select-list.d.ts +11 -0
- package/dist/src/components/ui/select/select-seperator.d.ts +9 -0
- package/dist/src/components/ui/select/select-trigger.d.ts +25 -0
- package/dist/src/components/ui/select/select-value.d.ts +21 -0
- package/dist/src/components/ui/select/select.d.ts +26 -0
- package/dist/src/components/ui/select/select.stories.d.ts +5 -0
- package/dist/src/components/ui/select/select.styles.d.ts +20 -0
- package/dist/src/components/ui/separator/_separator.d.ts +22 -0
- package/dist/src/components/ui/separator/separator.d.ts +11 -0
- package/dist/src/components/ui/separator/separator.defs.d.ts +5 -0
- package/dist/src/components/ui/separator/separator.stories.d.ts +10 -0
- package/dist/src/components/ui/skeleton/skeleton.d.ts +11 -0
- package/dist/src/components/ui/skeleton/skeleton.stories.d.ts +5 -0
- package/dist/src/components/ui/skeleton/skeleton.style.d.ts +1 -0
- package/dist/src/components/ui/switch/switch.d.ts +14 -0
- package/dist/src/components/ui/switch/switch.stories.d.ts +5 -0
- package/dist/src/components/ui/switch/switch.style.d.ts +4 -0
- package/dist/src/components/ui/switch/switch.type.d.ts +4 -0
- package/dist/src/components/ui/table/table.d.ts +18 -0
- package/dist/src/components/ui/table/table.stories.d.ts +5 -0
- package/dist/src/components/ui/table/table.styles.d.ts +39 -0
- package/dist/src/components/ui/tabs/_tabs-content.d.ts +30 -0
- package/dist/src/components/ui/tabs/_tabs-list.d.ts +30 -0
- package/dist/src/components/ui/tabs/_tabs-trigger.d.ts +47 -0
- package/dist/src/components/ui/tabs/_tabs.d.ts +99 -0
- package/dist/src/components/ui/tabs/tabs.d.ts +18 -0
- package/dist/src/components/ui/tabs/tabs.defs.d.ts +22 -0
- package/dist/src/components/ui/tabs/tabs.helpers.d.ts +24 -0
- package/dist/src/components/ui/tabs/tabs.stories.d.ts +13 -0
- package/dist/src/components/ui/textarea/textarea.d.ts +22 -0
- package/dist/src/components/ui/textarea/textarea.stories.d.ts +5 -0
- package/dist/src/components/ui/textarea/textarea.styles.d.ts +1 -0
- package/dist/src/components/ui/textarea/textarea.type.d.ts +11 -0
- package/dist/src/components/ui/toast/toast-action.d.ts +27 -0
- package/dist/src/components/ui/toast/toast-description.d.ts +14 -0
- package/dist/src/components/ui/toast/toast-title.d.ts +14 -0
- package/dist/src/components/ui/toast/toast-trigger.d.ts +18 -0
- package/dist/src/components/ui/toast/toast-view-port.d.ts +24 -0
- package/dist/src/components/ui/toast/toast.d.ts +25 -0
- package/dist/src/components/ui/toast/toast.stories.d.ts +10 -0
- package/dist/src/components/ui/toast/toast.style.d.ts +19 -0
- package/dist/src/components/ui/toast/toast.type.d.ts +1 -0
- package/dist/src/components/ui/toggle/toggle.d.ts +29 -0
- package/dist/src/components/ui/toggle/toggle.defs.d.ts +27 -0
- package/dist/src/components/ui/toggle/toggle.stories.d.ts +6 -0
- package/dist/src/components/ui/toggle/toggle.style.d.ts +4 -0
- package/dist/src/components/ui/toggle-group/toggle-group-item.d.ts +43 -0
- package/dist/src/components/ui/toggle-group/toggle-group.d.ts +25 -0
- package/dist/src/components/ui/toggle-group/toggle-group.defs.d.ts +37 -0
- package/dist/src/components/ui/toggle-group/toggle-group.stories.d.ts +5 -0
- package/dist/src/components/ui/toggle-group/toggle-group.style.d.ts +5 -0
- package/dist/src/components/widgets/index.d.ts +1 -0
- package/dist/src/components/widgets/light-sample-demo/light-sample.demo.d.ts +14 -0
- package/dist/src/helpers/base-element.d.ts +21 -0
- package/dist/src/helpers/country-codes.d.ts +5 -0
- package/dist/src/helpers/genrate-uuid.helper.d.ts +1 -0
- package/dist/src/helpers/index.d.ts +7 -0
- package/dist/src/helpers/mouse-conroller.helper.d.ts +15 -0
- package/dist/src/helpers/shadow-wrapper.d.ts +8 -0
- package/dist/src/helpers/style.helpers.d.ts +3 -0
- package/dist/src/helpers/widget-controller.d.ts +13 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/interfaces/actionable.interface.d.ts +6 -0
- package/dist/src/interfaces/atomic.interface.d.ts +6 -0
- package/dist/src/interfaces/changeable.interface.d.ts +8 -0
- package/dist/src/interfaces/child-support-atomic.interface.d.ts +5 -0
- package/dist/src/interfaces/index.d.ts +6 -0
- package/dist/src/interfaces/intractable.interface.d.ts +6 -0
- package/dist/src/interfaces/variant.interface.d.ts +3 -0
- package/dist/src/lib/index.d.ts +0 -0
- package/dist/src/lib/react/react.lib.d.ts +5 -0
- package/dist/src/styles/index.d.ts +1 -0
- package/dist/src/styles/tw.styles.d.ts +1 -0
- package/dist/src/tokens/tailwind/animation.d.ts +7 -0
- package/dist/src/tokens/tailwind/basis.d.ts +5 -0
- package/dist/src/tokens/tailwind/border-radius.d.ts +52 -0
- package/dist/src/tokens/tailwind/border-width.d.ts +28 -0
- package/dist/src/tokens/tailwind/box-shadow.d.ts +17 -0
- package/dist/src/tokens/tailwind/color.d.ts +261 -0
- package/dist/src/tokens/tailwind/font-size.d.ts +98 -0
- package/dist/src/tokens/tailwind/font-weight.d.ts +28 -0
- package/dist/src/tokens/tailwind/index.d.ts +912 -0
- package/dist/src/tokens/tailwind/keyframes.d.ts +41 -0
- package/dist/src/tokens/tailwind/opacity.d.ts +34 -0
- package/dist/src/tokens/tailwind/ring-offset-width.d.ts +7 -0
- package/dist/src/tokens/tailwind/ring-width.d.ts +19 -0
- package/dist/src/tokens/tailwind/spacing.d.ts +299 -0
- package/dist/src/tokens/tailwind/transition-duration.d.ts +5 -0
- package/dist/src/tokens/tailwind/transition-timing-function.d.ts +4 -0
- package/dist/src/tokens/tailwind/translate.d.ts +5 -0
- package/dist/src/wc-ui-app.d.ts +7 -0
- package/package.json +26 -39
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { SeparatorOrientation, SeparatorProps } from './separator.defs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The `<rtg-separator>` component visually or semantically separates content.
|
|
6
|
+
*
|
|
7
|
+
* @element rtg-separator
|
|
8
|
+
* @slot separator
|
|
9
|
+
*/
|
|
10
|
+
export declare class Separator extends LitElement implements SeparatorProps {
|
|
11
|
+
/**
|
|
12
|
+
* The orientation of the separator.
|
|
13
|
+
*/
|
|
14
|
+
orientation: SeparatorOrientation;
|
|
15
|
+
/**
|
|
16
|
+
* When `true`, signifies that it is purely visual, carries no semantic
|
|
17
|
+
* meaning, and ensures it is not present in the accessibility tree.
|
|
18
|
+
*/
|
|
19
|
+
decorative?: boolean;
|
|
20
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
21
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj;
|
|
6
|
+
export declare const Demo: Story;
|
|
7
|
+
export declare const Horizontal: Story;
|
|
8
|
+
export declare const Vertical: Story;
|
|
9
|
+
export declare const Menu: Story;
|
|
10
|
+
export declare const List: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
|
2
|
+
|
|
3
|
+
export declare class RtgSkeleton extends BaseElement {
|
|
4
|
+
protected createRenderRoot(): this;
|
|
5
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'rtg-skeleton': RtgSkeleton;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const skeletonStyles = "rtg-bg-skeleton-color-bg rtg-animate-skeleton-animate rtg-rounded-skeleton-radius";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export declare class Switch extends LitElement {
|
|
4
|
+
disabled: 'true' | 'false';
|
|
5
|
+
state: 'checked' | 'unchecked';
|
|
6
|
+
private _toggleChecked;
|
|
7
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
8
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
'rtg-switch': Switch;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { BaseElement } from '../../../helpers';
|
|
3
|
+
|
|
4
|
+
export declare class Table extends BaseElement {
|
|
5
|
+
dataTable: Array<any>;
|
|
6
|
+
footerData: Array<{
|
|
7
|
+
key: string;
|
|
8
|
+
value: string | number;
|
|
9
|
+
}>;
|
|
10
|
+
captionText: string;
|
|
11
|
+
get _containerElement(): HTMLTableElement | null;
|
|
12
|
+
protected getAttributesToExclude(): string[];
|
|
13
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
14
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
15
|
+
private get columnKeys();
|
|
16
|
+
private capitalizeLabel;
|
|
17
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const tableStyles: {
|
|
2
|
+
preview: string[];
|
|
3
|
+
container: string[];
|
|
4
|
+
table: string[];
|
|
5
|
+
caption: string[];
|
|
6
|
+
head: {
|
|
7
|
+
root: string[];
|
|
8
|
+
row: string[];
|
|
9
|
+
cell: {
|
|
10
|
+
base: string[];
|
|
11
|
+
align: {
|
|
12
|
+
left: string;
|
|
13
|
+
right: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
body: {
|
|
18
|
+
root: string[];
|
|
19
|
+
row: string[];
|
|
20
|
+
cell: {
|
|
21
|
+
base: string[];
|
|
22
|
+
align: {
|
|
23
|
+
right: string;
|
|
24
|
+
left: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
footer: {
|
|
29
|
+
root: string[];
|
|
30
|
+
row: string[];
|
|
31
|
+
cell: {
|
|
32
|
+
base: string[];
|
|
33
|
+
align: {
|
|
34
|
+
right: string;
|
|
35
|
+
left: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { TabsContentProps } from './tabs.defs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The `<rtg-tabs-content>` component contains the content associated with each
|
|
6
|
+
* trigger.
|
|
7
|
+
*
|
|
8
|
+
* @element rtg-tabs-content
|
|
9
|
+
* @slot tabs-content
|
|
10
|
+
*/
|
|
11
|
+
export declare class TabsContent extends LitElement implements TabsContentProps {
|
|
12
|
+
/**
|
|
13
|
+
* A unique value that associates the content with a trigger.
|
|
14
|
+
*/
|
|
15
|
+
value: string;
|
|
16
|
+
/**
|
|
17
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
18
|
+
*/
|
|
19
|
+
protected createRenderRoot(): this;
|
|
20
|
+
/**
|
|
21
|
+
* The slot of the tabs content.
|
|
22
|
+
*/
|
|
23
|
+
get _contentSlot(): HTMLElement | null;
|
|
24
|
+
/**
|
|
25
|
+
* Handles the first updated callback, appending the children to the content
|
|
26
|
+
* slot.
|
|
27
|
+
*/
|
|
28
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
29
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { TabsListProps, TabsListVariant } from './tabs.defs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The `<rtg-tabs-list>` component contains the triggers that are aligned along
|
|
6
|
+
* the edge of the active content.
|
|
7
|
+
*
|
|
8
|
+
* @element rtg-tabs-list
|
|
9
|
+
* @slot tabs-list
|
|
10
|
+
*/
|
|
11
|
+
export declare class TabsList extends LitElement implements TabsListProps {
|
|
12
|
+
/**
|
|
13
|
+
* The visual style of the tabs list.
|
|
14
|
+
*/
|
|
15
|
+
variant: TabsListVariant;
|
|
16
|
+
/**
|
|
17
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
18
|
+
*/
|
|
19
|
+
protected createRenderRoot(): this;
|
|
20
|
+
/**
|
|
21
|
+
* The slot of the tabs list.
|
|
22
|
+
*/
|
|
23
|
+
get _listSlot(): HTMLElement | null;
|
|
24
|
+
/**
|
|
25
|
+
* Handles the first updated callback, appending the children to the list
|
|
26
|
+
* slot.
|
|
27
|
+
*/
|
|
28
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
29
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { TabsTriggerProps } from './tabs.defs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The `<rtg-tabs-trigger>` component is the button that activates its
|
|
6
|
+
* associated content.
|
|
7
|
+
*
|
|
8
|
+
* @element rtg-tabs-trigger
|
|
9
|
+
* @slot tabs-trigger
|
|
10
|
+
*/
|
|
11
|
+
export declare class TabsTrigger extends LitElement implements TabsTriggerProps {
|
|
12
|
+
/**
|
|
13
|
+
* A unique value that associates the trigger with a content.
|
|
14
|
+
*/
|
|
15
|
+
value: string;
|
|
16
|
+
/**
|
|
17
|
+
* When `true`, prevents the user from interacting with the tab.
|
|
18
|
+
*/
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
22
|
+
*/
|
|
23
|
+
protected createRenderRoot(): this;
|
|
24
|
+
/**
|
|
25
|
+
* The slot of the tabs trigger.
|
|
26
|
+
*/
|
|
27
|
+
get _triggerSlot(): HTMLButtonElement | null;
|
|
28
|
+
/**
|
|
29
|
+
* Handles the first updated callback, appending the children to the trigger
|
|
30
|
+
* slot.
|
|
31
|
+
*/
|
|
32
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
33
|
+
/**
|
|
34
|
+
* Sends the trigger select event object, invoking the parent tabs' event
|
|
35
|
+
* listener.
|
|
36
|
+
*/
|
|
37
|
+
private _emitSelect;
|
|
38
|
+
/**
|
|
39
|
+
* Handles the click event of the trigger button, invoking `_emitSelect`.
|
|
40
|
+
*/
|
|
41
|
+
private _onClick;
|
|
42
|
+
/**
|
|
43
|
+
* Handles the keydown event of the trigger button, invoking `_emitSelect`.
|
|
44
|
+
*/
|
|
45
|
+
private _onKeyDown;
|
|
46
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { TabsProps, TabsOrientation, TabsDir, TabsActivationMode } from './tabs.defs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The `<rtg-tabs>` component is the 'root' and contains all the tabs component
|
|
6
|
+
* parts.
|
|
7
|
+
*
|
|
8
|
+
* @element rtg-tabs
|
|
9
|
+
* @slot tabs
|
|
10
|
+
*/
|
|
11
|
+
export declare class Tabs extends LitElement implements TabsProps {
|
|
12
|
+
/**
|
|
13
|
+
* The value of the tab that should be active when initially rendered. Use
|
|
14
|
+
* when you do not need to control the state of the tabs.
|
|
15
|
+
*/
|
|
16
|
+
defaultValue?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The controlled value of the tab to activate. Should be used in conjunction
|
|
19
|
+
* with `onValueChange`.
|
|
20
|
+
*/
|
|
21
|
+
value?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Event handler called when the value changes.
|
|
24
|
+
*/
|
|
25
|
+
onValueChange?: (value: string) => void;
|
|
26
|
+
/**
|
|
27
|
+
* The orientation of the tabs.
|
|
28
|
+
*/
|
|
29
|
+
orientation: TabsOrientation;
|
|
30
|
+
/**
|
|
31
|
+
* The reading direction of the tabs.
|
|
32
|
+
*/
|
|
33
|
+
dir: TabsDir;
|
|
34
|
+
/**
|
|
35
|
+
* When `automatic`, tabs are activated when receiving focus. When `manual`,
|
|
36
|
+
* tabs are activated when clicked.
|
|
37
|
+
*/
|
|
38
|
+
activationMode: TabsActivationMode;
|
|
39
|
+
/**
|
|
40
|
+
* The active tab's value - the value props of the trigger/content pair.
|
|
41
|
+
*/
|
|
42
|
+
private _activeValue?;
|
|
43
|
+
/**
|
|
44
|
+
* The tabs root's base ID, generated by `generatedId`, and used to construct
|
|
45
|
+
* the trigger and contents children's ids.
|
|
46
|
+
*/
|
|
47
|
+
private _baseId;
|
|
48
|
+
/**
|
|
49
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
50
|
+
*/
|
|
51
|
+
protected createRenderRoot(): this;
|
|
52
|
+
/**
|
|
53
|
+
* The slot of the tabs root.
|
|
54
|
+
*/
|
|
55
|
+
private get _rootSlot();
|
|
56
|
+
/**
|
|
57
|
+
* The tabs list child.
|
|
58
|
+
*/
|
|
59
|
+
private get _list();
|
|
60
|
+
/**
|
|
61
|
+
* The tabs trigger children.
|
|
62
|
+
*/
|
|
63
|
+
private get _triggers();
|
|
64
|
+
/**
|
|
65
|
+
* The tabs content children.
|
|
66
|
+
*/
|
|
67
|
+
private get _contents();
|
|
68
|
+
/**
|
|
69
|
+
* Whether or not the tabs element is 'controlled' - determined by whether or
|
|
70
|
+
* not the value prop was provided by the user.
|
|
71
|
+
*/
|
|
72
|
+
private get _isControlled();
|
|
73
|
+
/**
|
|
74
|
+
* The value of the active tab: user-provided value if controlled, otherwise,
|
|
75
|
+
* the internal state value.
|
|
76
|
+
*/
|
|
77
|
+
private get _currentValue();
|
|
78
|
+
/**
|
|
79
|
+
* The event listener callback used for the trigger select event.
|
|
80
|
+
*/
|
|
81
|
+
private _onTriggerSelect;
|
|
82
|
+
/**
|
|
83
|
+
* Sync all the tabs children (list, triggers, and contents), setting their
|
|
84
|
+
* 'parent-controlled' attributes.
|
|
85
|
+
*/
|
|
86
|
+
private _sync;
|
|
87
|
+
/**
|
|
88
|
+
* Handles the first updated callback, appending the children to the root
|
|
89
|
+
* slot, determining the active tab, adding the trigger select event listener
|
|
90
|
+
* and syncing the tabs children.
|
|
91
|
+
*/
|
|
92
|
+
protected firstUpdated(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Handles the updated callback, updating the active tab if changed (and
|
|
95
|
+
* controlled), and syncing the tabs children.
|
|
96
|
+
*/
|
|
97
|
+
protected updated(changed: PropertyValues): void;
|
|
98
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
99
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Tabs } from './_tabs';
|
|
2
|
+
import { TabsList } from './_tabs-list';
|
|
3
|
+
import { TabsTrigger } from './_tabs-trigger';
|
|
4
|
+
import { TabsContent } from './_tabs-content';
|
|
5
|
+
|
|
6
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
7
|
+
/**
|
|
8
|
+
* A set of layered sections of content—known as tab panels—that are displayed
|
|
9
|
+
* one at a time.
|
|
10
|
+
*/
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'rtg-tabs': Tabs;
|
|
14
|
+
'rtg-tabs-list': TabsList;
|
|
15
|
+
'rtg-tabs-trigger': TabsTrigger;
|
|
16
|
+
'rtg-tabs-content': TabsContent;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type TabsOrientation = 'horizontal' | 'vertical';
|
|
2
|
+
export type TabsDir = 'ltr' | 'rtl';
|
|
3
|
+
export type TabsActivationMode = 'automatic' | 'manual';
|
|
4
|
+
export interface TabsProps {
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
onValueChange?: (value: string) => void;
|
|
8
|
+
orientation: TabsOrientation;
|
|
9
|
+
dir: TabsDir;
|
|
10
|
+
activationMode: TabsActivationMode;
|
|
11
|
+
}
|
|
12
|
+
export type TabsListVariant = 'default' | 'line';
|
|
13
|
+
export interface TabsListProps {
|
|
14
|
+
variant: TabsListVariant;
|
|
15
|
+
}
|
|
16
|
+
export interface TabsTriggerProps {
|
|
17
|
+
value: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface TabsContentProps {
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates a unique ID for Tabs to use as its baseId value.
|
|
3
|
+
* The ID is prefixed with 'rtg-', and consists of a time component as well as a
|
|
4
|
+
* random component.
|
|
5
|
+
*
|
|
6
|
+
* @returns A unique, ~13 char ID for a Tabs baseId value.
|
|
7
|
+
*/
|
|
8
|
+
export declare function generateId(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Constructs a unique ID for a TabsTrigger slot element.
|
|
11
|
+
*
|
|
12
|
+
* @param baseId The ID of the TabsTrigger's Tabs parent.
|
|
13
|
+
* @param value The value of the TabsTrigger.
|
|
14
|
+
* @returns The ID of the TabsTrigger's slot.
|
|
15
|
+
*/
|
|
16
|
+
export declare function makeTriggerId(baseId: string, value: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Constructs a unique ID for a TabsContent slot element.
|
|
19
|
+
*
|
|
20
|
+
* @param baseId The ID of the TabsContent's Tabs parent.
|
|
21
|
+
* @param value The value of the TabsContent.
|
|
22
|
+
* @returns The ID of the TabsContent's slot.
|
|
23
|
+
*/
|
|
24
|
+
export declare function makeContentId(baseId: string, value: string): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj;
|
|
6
|
+
export declare const Demo: Story;
|
|
7
|
+
export declare const Basic: Story;
|
|
8
|
+
export declare const Line: Story;
|
|
9
|
+
export declare const Vertical: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
11
|
+
export declare const Icons: Story;
|
|
12
|
+
export declare const IconOnly: Story;
|
|
13
|
+
export declare const WithContent: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { BaseElement } from '../../../helpers';
|
|
3
|
+
|
|
4
|
+
export declare class TextArea extends BaseElement {
|
|
5
|
+
constructor();
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
rows: number;
|
|
10
|
+
cols: number;
|
|
11
|
+
value: string;
|
|
12
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
13
|
+
handleInputChange(event: Event): void;
|
|
14
|
+
protected getAttributesToExclude(): string[];
|
|
15
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
16
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'rtg-textarea': TextArea;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const textAreaStyles: string[];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { BaseElement } from '../../../helpers';
|
|
3
|
+
|
|
4
|
+
import * as toastType from './toast.type';
|
|
5
|
+
export declare class ToastAction extends BaseElement {
|
|
6
|
+
static toastVariants: {
|
|
7
|
+
base: string[];
|
|
8
|
+
variants: {
|
|
9
|
+
default: string[];
|
|
10
|
+
destructive: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
get _containerElement(): HTMLButtonElement | null;
|
|
14
|
+
variant: toastType.ToastVariant;
|
|
15
|
+
getAttributesToExclude(): string[];
|
|
16
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
17
|
+
protected getFilteredAttributes(): {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
21
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
22
|
+
}
|
|
23
|
+
declare global {
|
|
24
|
+
interface HTMLElementTagNameMap {
|
|
25
|
+
'rtg-toast-action': ToastAction;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { BaseElement } from '../../../helpers';
|
|
3
|
+
|
|
4
|
+
export declare class ToastDescription extends BaseElement {
|
|
5
|
+
get _containerElement(): HTMLDivElement | null;
|
|
6
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
7
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
8
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
'rtg-toast-description': ToastDescription;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { BaseElement } from '../../../helpers';
|
|
3
|
+
|
|
4
|
+
export declare class ToastTitle extends BaseElement {
|
|
5
|
+
get _containerElement(): HTMLDivElement | null;
|
|
6
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
7
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
8
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
'rtg-toast-title': ToastTitle;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { BaseElement } from '../../../helpers';
|
|
3
|
+
import { Toast } from './toast';
|
|
4
|
+
|
|
5
|
+
export declare class ToastTrigger extends BaseElement {
|
|
6
|
+
constructor();
|
|
7
|
+
get _containerElement(): HTMLDivElement | null;
|
|
8
|
+
get _toast(): Toast;
|
|
9
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
10
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
11
|
+
handleClick(e: Event): void;
|
|
12
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'rtg-toast-trigger': ToastTrigger;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { BaseElement } from '../../../helpers';
|
|
3
|
+
|
|
4
|
+
import * as toastType from './toast.type';
|
|
5
|
+
export declare class ToastViewPort extends BaseElement {
|
|
6
|
+
static toastVariants: {
|
|
7
|
+
base: string[];
|
|
8
|
+
variants: {
|
|
9
|
+
default: string[];
|
|
10
|
+
destructive: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
get _containerElement(): HTMLLIElement | null;
|
|
14
|
+
variant: toastType.ToastVariant;
|
|
15
|
+
state: string;
|
|
16
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
17
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
18
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
19
|
+
}
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
'rtg-toast-view-port': ToastViewPort;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { ToastViewPort } from './toast-view-port';
|
|
3
|
+
import { BaseElement } from '../../../helpers';
|
|
4
|
+
import { ToastAction } from './toast-action';
|
|
5
|
+
import { ToastDescription } from './toast-description';
|
|
6
|
+
import { ToastTitle } from './toast-title';
|
|
7
|
+
import { ToastTrigger } from './toast-trigger';
|
|
8
|
+
|
|
9
|
+
declare class Toast extends BaseElement {
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
get _containerElement(): HTMLDivElement | null;
|
|
12
|
+
onClick(): void;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
private get _content();
|
|
15
|
+
protected updated(_changedProperties: PropertyValues): void;
|
|
16
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
17
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
18
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
19
|
+
}
|
|
20
|
+
export { Toast, ToastAction, ToastDescription, ToastTitle, ToastTrigger, ToastViewPort, };
|
|
21
|
+
declare global {
|
|
22
|
+
interface HTMLElementTagNameMap {
|
|
23
|
+
'rtg-toast': Toast;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/web-components-vite';
|
|
2
|
+
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
/** ===== Toast With Action Variants ===== **/
|
|
6
|
+
export declare const ToastWithActionDefault: StoryFn;
|
|
7
|
+
export declare const ToastWithActionDestructive: StoryFn;
|
|
8
|
+
/** ===== Toast Without Action Variants ===== **/
|
|
9
|
+
export declare const ToastWithoutActionDefault: StoryFn;
|
|
10
|
+
export declare const ToastWithoutActionDestructive: StoryFn;
|