@revotech-group/revotech-ui-kit 0.2.3 → 0.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/dist/library.css +12398 -0
- package/dist/rtg-ui-kit.js +15194 -0
- package/dist/rtg-ui-kit.umd.cjs +5439 -0
- package/dist/src/assets/icons/anchor.icon.d.ts +2 -0
- package/dist/src/assets/icons/app-window.icon.d.ts +2 -0
- package/dist/src/assets/icons/arrow-right.icon.d.ts +2 -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 +2 -0
- package/dist/src/assets/icons/arrow-up.icon.d.ts +2 -0
- package/dist/src/assets/icons/arrows.icon.d.ts +1 -0
- package/dist/src/assets/icons/asterisk.icon.d.ts +2 -0
- package/dist/src/assets/icons/badge-alert.icon.d.ts +2 -0
- package/dist/src/assets/icons/badge-check.icon.d.ts +2 -0
- package/dist/src/assets/icons/badge-info.icon.d.ts +2 -0
- package/dist/src/assets/icons/badge-x.icon.d.ts +2 -0
- package/dist/src/assets/icons/bell.icon.d.ts +2 -0
- package/dist/src/assets/icons/bookmark.icon.d.ts +2 -0
- package/dist/src/assets/icons/brand-javascript.icon.d.ts +2 -0
- package/dist/src/assets/icons/captions.icon.d.ts +2 -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 +2 -0
- package/dist/src/assets/icons/chevron-right.icon.d.ts +2 -0
- package/dist/src/assets/icons/chorven-down.icon.d.ts +1 -0
- package/dist/src/assets/icons/circle-alert.icon.d.ts +2 -0
- package/dist/src/assets/icons/circle-check.icon.d.ts +2 -0
- package/dist/src/assets/icons/circle-fading-arrow-up.icon.d.ts +2 -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/cloud.icon.d.ts +2 -0
- package/dist/src/assets/icons/code.icon.d.ts +2 -0
- package/dist/src/assets/icons/copy.icon.d.ts +2 -0
- package/dist/src/assets/icons/corner-down-left.icon.d.ts +2 -0
- package/dist/src/assets/icons/credit-card.icon.d.ts +2 -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 +2 -0
- package/dist/src/assets/icons/eye-off.d.ts +1 -0
- package/dist/src/assets/icons/eye-off.icon.d.ts +2 -0
- package/dist/src/assets/icons/eye-on.d.ts +1 -0
- package/dist/src/assets/icons/file-code.icon.d.ts +2 -0
- package/dist/src/assets/icons/folder-code.icon.d.ts +2 -0
- package/dist/src/assets/icons/git-branch-minus.icon.d.ts +2 -0
- package/dist/src/assets/icons/git-branch-plus.icon.d.ts +2 -0
- package/dist/src/assets/icons/help-circle.icon.d.ts +1 -0
- package/dist/src/assets/icons/house.icon.d.ts +2 -0
- package/dist/src/assets/icons/inbox.icon.d.ts +2 -0
- package/dist/src/assets/icons/index.d.ts +64 -0
- package/dist/src/assets/icons/info.icon.d.ts +2 -0
- package/dist/src/assets/icons/loader-circle.icon.d.ts +2 -0
- package/dist/src/assets/icons/mail-warning.icon.d.ts +2 -0
- package/dist/src/assets/icons/mail.icon.d.ts +2 -0
- package/dist/src/assets/icons/minus.icon.d.ts +2 -0
- package/dist/src/assets/icons/plus.icon.d.ts +1 -0
- package/dist/src/assets/icons/rabbit.icon.d.ts +2 -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-ccw.icon.d.ts +2 -0
- package/dist/src/assets/icons/refresh-cw.icon.d.ts +2 -0
- package/dist/src/assets/icons/search.icon.d.ts +2 -0
- package/dist/src/assets/icons/settings.icon.d.ts +2 -0
- package/dist/src/assets/icons/shield-alert.icon.d.ts +2 -0
- package/dist/src/assets/icons/shopping-bag.icon.d.ts +2 -0
- package/dist/src/assets/icons/star.icon.d.ts +2 -0
- package/dist/src/assets/icons/tick.icon.d.ts +1 -0
- package/dist/src/assets/icons/wand.icon.d.ts +2 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/ui/accordion/accordion-content.d.ts +20 -0
- package/dist/src/components/ui/accordion/accordion-item.d.ts +21 -0
- package/dist/src/components/ui/accordion/accordion-trigger.d.ts +17 -0
- package/dist/src/components/ui/accordion/accordion.d.ts +25 -0
- package/dist/src/components/ui/accordion/accordion.defs.d.ts +10 -0
- package/dist/src/components/ui/accordion/accordion.stories.d.ts +10 -0
- package/dist/src/components/ui/accordion/accordion.styles.d.ts +4 -0
- package/dist/src/components/ui/alert/_alert-action.d.ts +21 -0
- package/dist/src/components/ui/alert/_alert-description.d.ts +21 -0
- package/dist/src/components/ui/alert/_alert-title.d.ts +20 -0
- package/dist/src/components/ui/alert/_alert.d.ts +25 -0
- package/dist/src/components/ui/alert/alert.d.ts +16 -0
- package/dist/src/components/ui/alert/alert.defs.d.ts +4 -0
- package/dist/src/components/ui/alert/alert.stories.d.ts +12 -0
- package/dist/src/components/ui/aspect-ratio/aspect-ratio.d.ts +16 -0
- package/dist/src/components/ui/aspect-ratio/aspect-ratio.stories.d.ts +4 -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 +21 -0
- package/dist/src/components/ui/avatar/_avatar-fallback.d.ts +21 -0
- package/dist/src/components/ui/avatar/_avatar-group-count.d.ts +21 -0
- package/dist/src/components/ui/avatar/_avatar-group.d.ts +21 -0
- package/dist/src/components/ui/avatar/_avatar-image.d.ts +28 -0
- package/dist/src/components/ui/avatar/_avatar.d.ts +65 -0
- package/dist/src/components/ui/avatar/avatar.d.ts +20 -0
- package/dist/src/components/ui/avatar/avatar.defs.d.ts +8 -0
- package/dist/src/components/ui/avatar/avatar.stories.d.ts +13 -0
- package/dist/src/components/ui/badge/_badge.d.ts +43 -0
- package/dist/src/components/ui/badge/badge.d.ts +10 -0
- package/dist/src/components/ui/badge/badge.defs.d.ts +8 -0
- package/dist/src/components/ui/badge/badge.stories.d.ts +10 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-ellipsis.d.ts +11 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-item.d.ts +14 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-link.d.ts +15 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-list.d.ts +14 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-separator.d.ts +11 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb-text.d.ts +14 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +21 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb.stories.d.ts +4 -0
- package/dist/src/components/ui/breadcrumb/breadcrumb.styles.d.ts +4 -0
- package/dist/src/components/ui/button/_button.d.ts +62 -0
- package/dist/src/components/ui/button/button.d.ts +10 -0
- package/dist/src/components/ui/button/button.defs.d.ts +14 -0
- package/dist/src/components/ui/button/button.stories.d.ts +13 -0
- package/dist/src/components/ui/button/button.style.d.ts +4 -0
- package/dist/src/components/ui/calendar/calendar.d.ts +24 -0
- package/dist/src/components/ui/calendar/calendar.helpers.d.ts +3 -0
- package/dist/src/components/ui/calendar/calendar.stories.d.ts +4 -0
- package/dist/src/components/ui/calendar/calendar.style.d.ts +40 -0
- package/dist/src/components/ui/card/_card-action.d.ts +21 -0
- package/dist/src/components/ui/card/_card-content.d.ts +20 -0
- package/dist/src/components/ui/card/_card-description.d.ts +21 -0
- package/dist/src/components/ui/card/_card-footer.d.ts +26 -0
- package/dist/src/components/ui/card/_card-header.d.ts +26 -0
- package/dist/src/components/ui/card/_card-title.d.ts +20 -0
- package/dist/src/components/ui/card/_card.d.ts +25 -0
- package/dist/src/components/ui/card/card.d.ts +22 -0
- package/dist/src/components/ui/card/card.defs.d.ts +10 -0
- package/dist/src/components/ui/card/card.stories.d.ts +11 -0
- package/dist/src/components/ui/carousel/carousel.d.ts +24 -0
- package/dist/src/components/ui/carousel/carousel.stories.d.ts +6 -0
- package/dist/src/components/ui/carousel/carousel.styles.d.ts +32 -0
- package/dist/src/components/ui/checkbox/_checkbox.d.ts +92 -0
- package/dist/src/components/ui/checkbox/checkbox.d.ts +10 -0
- package/dist/src/components/ui/checkbox/checkbox.defs.d.ts +11 -0
- package/dist/src/components/ui/checkbox/checkbox.stories.d.ts +13 -0
- package/dist/src/components/ui/collapsible/collapsible-content.d.ts +17 -0
- package/dist/src/components/ui/collapsible/collapsible-trigger.d.ts +17 -0
- package/dist/src/components/ui/collapsible/collapsible.d.ts +23 -0
- package/dist/src/components/ui/collapsible/collapsible.stories.d.ts +5 -0
- package/dist/src/components/ui/combobox/combo-box-empty.d.ts +14 -0
- package/dist/src/components/ui/combobox/combo-box-group.d.ts +37 -0
- package/dist/src/components/ui/combobox/combo-box-input.d.ts +17 -0
- package/dist/src/components/ui/combobox/combo-box-item.d.ts +25 -0
- package/dist/src/components/ui/combobox/combo-box-trigger.d.ts +18 -0
- package/dist/src/components/ui/combobox/combo-box-value.d.ts +18 -0
- package/dist/src/components/ui/combobox/combo-box.d.ts +35 -0
- package/dist/src/components/ui/combobox/combo-box.stories.d.ts +10 -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 +18 -0
- package/dist/src/components/ui/command/command-group.atom.d.ts +19 -0
- package/dist/src/components/ui/command/command-input.atom.d.ts +15 -0
- package/dist/src/components/ui/command/command-item.atom.d.ts +24 -0
- package/dist/src/components/ui/command/command-list.atom.d.ts +15 -0
- package/dist/src/components/ui/command/command-separator.atom.d.ts +14 -0
- package/dist/src/components/ui/command/command.d.ts +22 -0
- package/dist/src/components/ui/command/command.helpers.d.ts +6 -0
- package/dist/src/components/ui/command/command.stories.d.ts +6 -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 +16 -0
- package/dist/src/components/ui/context-menu/context-menu-content.d.ts +14 -0
- package/dist/src/components/ui/context-menu/context-menu-group.d.ts +10 -0
- package/dist/src/components/ui/context-menu/context-menu-item.d.ts +13 -0
- package/dist/src/components/ui/context-menu/context-menu-radio-item.d.ts +16 -0
- package/dist/src/components/ui/context-menu/context-menu-seperator.d.ts +6 -0
- package/dist/src/components/ui/context-menu/context-menu-shortcut.d.ts +9 -0
- package/dist/src/components/ui/context-menu/context-menu-trigger.d.ts +5 -0
- package/dist/src/components/ui/context-menu/context-menu.d.ts +40 -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 +4 -0
- package/dist/src/components/ui/data-table/data-table.d.ts +39 -0
- package/dist/src/components/ui/data-table/data-table.stories.d.ts +5 -0
- package/dist/src/components/ui/date-picker/date-picker.d.ts +12 -0
- package/dist/src/components/ui/date-picker/date-picker.stories.d.ts +4 -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 +15 -0
- package/dist/src/components/ui/dialog/dialog-content.d.ts +15 -0
- package/dist/src/components/ui/dialog/dialog-footer.d.ts +9 -0
- package/dist/src/components/ui/dialog/dialog-header.d.ts +7 -0
- package/dist/src/components/ui/dialog/dialog-overly.d.ts +5 -0
- package/dist/src/components/ui/dialog/dialog-trigger.d.ts +11 -0
- package/dist/src/components/ui/dialog/dialog.d.ts +30 -0
- package/dist/src/components/ui/dialog/dialog.stories.d.ts +6 -0
- package/dist/src/components/ui/dialog/dialog.styles.d.ts +17 -0
- package/dist/src/components/ui/drawer/drawer-close.d.ts +15 -0
- package/dist/src/components/ui/drawer/drawer-content.d.ts +14 -0
- package/dist/src/components/ui/drawer/drawer-description.d.ts +9 -0
- package/dist/src/components/ui/drawer/drawer-footer.d.ts +9 -0
- package/dist/src/components/ui/drawer/drawer-header.d.ts +8 -0
- package/dist/src/components/ui/drawer/drawer-overlay.d.ts +5 -0
- package/dist/src/components/ui/drawer/drawer-title.d.ts +9 -0
- package/dist/src/components/ui/drawer/drawer-trigger.d.ts +11 -0
- package/dist/src/components/ui/drawer/drawer.d.ts +40 -0
- package/dist/src/components/ui/drawer/drawer.helpers.d.ts +2 -0
- package/dist/src/components/ui/drawer/drawer.stories.d.ts +4 -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 +17 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-content.d.ts +13 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-group.d.ts +11 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-item.d.ts +17 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-radio-item.d.ts +16 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-seperator.d.ts +8 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-shortcut.d.ts +8 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-trigger.d.ts +5 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +40 -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 +6 -0
- package/dist/src/components/ui/empty/_empty-content.d.ts +23 -0
- package/dist/src/components/ui/empty/_empty-description.d.ts +23 -0
- package/dist/src/components/ui/empty/_empty-header.d.ts +23 -0
- package/dist/src/components/ui/empty/_empty-media.d.ts +29 -0
- package/dist/src/components/ui/empty/_empty-title.d.ts +22 -0
- package/dist/src/components/ui/empty/_empty.d.ts +28 -0
- package/dist/src/components/ui/empty/empty.d.ts +20 -0
- package/dist/src/components/ui/empty/empty.defs.d.ts +7 -0
- package/dist/src/components/ui/empty/empty.stories.d.ts +10 -0
- package/dist/src/components/ui/field/_field-content.d.ts +23 -0
- package/dist/src/components/ui/field/_field-description.d.ts +23 -0
- package/dist/src/components/ui/field/_field-error.d.ts +25 -0
- package/dist/src/components/ui/field/_field-group.d.ts +28 -0
- package/dist/src/components/ui/field/_field-label.d.ts +27 -0
- package/dist/src/components/ui/field/_field-legend.d.ts +30 -0
- package/dist/src/components/ui/field/_field-separator.d.ts +42 -0
- package/dist/src/components/ui/field/_field-set.d.ts +22 -0
- package/dist/src/components/ui/field/_field-title.d.ts +22 -0
- package/dist/src/components/ui/field/_field.d.ts +36 -0
- package/dist/src/components/ui/field/field.d.ts +29 -0
- package/dist/src/components/ui/field/field.defs.d.ts +23 -0
- package/dist/src/components/ui/field/field.stories.d.ts +16 -0
- package/dist/src/components/ui/form/form-context.d.ts +4 -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 +5 -0
- package/dist/src/components/ui/form/form.styles.d.ts +7 -0
- package/dist/src/components/ui/form/rtg-form-controller.d.ts +16 -0
- package/dist/src/components/ui/form/rtg-form-description.d.ts +13 -0
- package/dist/src/components/ui/form/rtg-form-field.d.ts +19 -0
- package/dist/src/components/ui/form/rtg-form-item.d.ts +16 -0
- package/dist/src/components/ui/form/rtg-form-label.d.ts +19 -0
- package/dist/src/components/ui/form/rtg-form-message.d.ts +17 -0
- package/dist/src/components/ui/form/rtg-form.d.ts +23 -0
- package/dist/src/components/ui/hoverCard/hover-card-content.d.ts +15 -0
- package/dist/src/components/ui/hoverCard/hover-card-trigger.d.ts +9 -0
- package/dist/src/components/ui/hoverCard/hover-card.d.ts +28 -0
- package/dist/src/components/ui/hoverCard/hover-card.stories.d.ts +4 -0
- package/dist/src/components/ui/hoverCard/hover-card.styles.d.ts +5 -0
- package/dist/src/components/ui/index.d.ts +49 -0
- package/dist/src/components/ui/input/_input.d.ts +163 -0
- package/dist/src/components/ui/input/input.d.ts +11 -0
- package/dist/src/components/ui/input/input.defs.d.ts +28 -0
- package/dist/src/components/ui/input/input.stories.d.ts +16 -0
- package/dist/src/components/ui/input-group/_input-group-addon.d.ts +32 -0
- package/dist/src/components/ui/input-group/_input-group-button.d.ts +59 -0
- package/dist/src/components/ui/input-group/_input-group-input.d.ts +140 -0
- package/dist/src/components/ui/input-group/_input-group-text.d.ts +22 -0
- package/dist/src/components/ui/input-group/_input-group-textarea.d.ts +114 -0
- package/dist/src/components/ui/input-group/_input-group.d.ts +22 -0
- package/dist/src/components/ui/input-group/input-group.d.ts +20 -0
- package/dist/src/components/ui/input-group/input-group.defs.d.ts +16 -0
- package/dist/src/components/ui/input-group/input-group.stories.d.ts +15 -0
- package/dist/src/components/ui/input-otp/_input-otp-group.d.ts +25 -0
- package/dist/src/components/ui/input-otp/_input-otp-separator.d.ts +15 -0
- package/dist/src/components/ui/input-otp/_input-otp-slot.d.ts +34 -0
- package/dist/src/components/ui/input-otp/_input-otp.d.ts +212 -0
- package/dist/src/components/ui/input-otp/input-otp.d.ts +16 -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 +12 -0
- package/dist/src/components/ui/item/_item-actions.d.ts +22 -0
- package/dist/src/components/ui/item/_item-content.d.ts +22 -0
- package/dist/src/components/ui/item/_item-description.d.ts +22 -0
- package/dist/src/components/ui/item/_item-footer.d.ts +22 -0
- package/dist/src/components/ui/item/_item-group.d.ts +22 -0
- package/dist/src/components/ui/item/_item-header.d.ts +22 -0
- package/dist/src/components/ui/item/_item-media.d.ts +28 -0
- package/dist/src/components/ui/item/_item-separator.d.ts +22 -0
- package/dist/src/components/ui/item/_item-title.d.ts +22 -0
- package/dist/src/components/ui/item/_item.d.ts +42 -0
- package/dist/src/components/ui/item/item.d.ts +29 -0
- package/dist/src/components/ui/item/item.defs.d.ts +13 -0
- package/dist/src/components/ui/item/item.stories.d.ts +13 -0
- package/dist/src/components/ui/kbd/_kbd-group.d.ts +22 -0
- package/dist/src/components/ui/kbd/_kbd.d.ts +22 -0
- package/dist/src/components/ui/kbd/kbd.d.ts +12 -0
- package/dist/src/components/ui/kbd/kbd.stories.d.ts +8 -0
- package/dist/src/components/ui/label/_label.d.ts +26 -0
- package/dist/src/components/ui/label/label.d.ts +10 -0
- package/dist/src/components/ui/label/label.defs.d.ts +3 -0
- package/dist/src/components/ui/label/label.stories.d.ts +10 -0
- package/dist/src/components/ui/menubar/menubar-checkbox.item.d.ts +19 -0
- package/dist/src/components/ui/menubar/menubar-content.d.ts +19 -0
- package/dist/src/components/ui/menubar/menubar-group.d.ts +14 -0
- package/dist/src/components/ui/menubar/menubar-item.d.ts +17 -0
- package/dist/src/components/ui/menubar/menubar-menu.d.ts +30 -0
- package/dist/src/components/ui/menubar/menubar-radio-item.d.ts +19 -0
- package/dist/src/components/ui/menubar/menubar-separator.d.ts +13 -0
- package/dist/src/components/ui/menubar/menubar-shortcut.d.ts +9 -0
- package/dist/src/components/ui/menubar/menubar-trigger.d.ts +9 -0
- package/dist/src/components/ui/menubar/menubar.d.ts +33 -0
- package/dist/src/components/ui/menubar/menubar.helpers.d.ts +3 -0
- package/dist/src/components/ui/menubar/menubar.stories.d.ts +4 -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 +19 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu-item.d.ts +23 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu-link.d.ts +9 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu-list.d.ts +8 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu-trigger.d.ts +9 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu.d.ts +24 -0
- package/dist/src/components/ui/navigation-menu/navigation-menu.stories.d.ts +4 -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 +8 -0
- package/dist/src/components/ui/pagination/pagination-ellipsis.d.ts +8 -0
- package/dist/src/components/ui/pagination/pagination-item.d.ts +14 -0
- package/dist/src/components/ui/pagination/pagination-link.d.ts +14 -0
- package/dist/src/components/ui/pagination/pagination-next.d.ts +9 -0
- package/dist/src/components/ui/pagination/pagination-previous.d.ts +9 -0
- package/dist/src/components/ui/pagination/pagination.d.ts +26 -0
- package/dist/src/components/ui/pagination/pagination.stories.d.ts +4 -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/password-input/_password-input.d.ts +122 -0
- package/dist/src/components/ui/password-input/password-input.d.ts +10 -0
- package/dist/src/components/ui/password-input/password-input.defs.d.ts +3 -0
- package/dist/src/components/ui/password-input/password-input.stories.d.ts +8 -0
- package/dist/src/components/ui/popover/popover-content.d.ts +18 -0
- package/dist/src/components/ui/popover/popover-trigger.d.ts +12 -0
- package/dist/src/components/ui/popover/popover.d.ts +21 -0
- package/dist/src/components/ui/popover/popover.stories.d.ts +4 -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 +11 -0
- package/dist/src/components/ui/progress/progress.stories.d.ts +4 -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 +21 -0
- package/dist/src/components/ui/radio-group/radio-group.d.ts +19 -0
- package/dist/src/components/ui/radio-group/radio-group.stories.d.ts +4 -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 +23 -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 +12 -0
- package/dist/src/components/ui/scroll-area/scroll-area.stories.d.ts +4 -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 +25 -0
- package/dist/src/components/ui/select/select-item.d.ts +26 -0
- package/dist/src/components/ui/select/select-label.d.ts +13 -0
- package/dist/src/components/ui/select/select-list.d.ts +10 -0
- package/dist/src/components/ui/select/select-seperator.d.ts +8 -0
- package/dist/src/components/ui/select/select-trigger.d.ts +24 -0
- package/dist/src/components/ui/select/select-value.d.ts +20 -0
- package/dist/src/components/ui/select/select.d.ts +25 -0
- package/dist/src/components/ui/select/select.stories.d.ts +4 -0
- package/dist/src/components/ui/select/select.styles.d.ts +20 -0
- package/dist/src/components/ui/separator/_separator.d.ts +21 -0
- package/dist/src/components/ui/separator/separator.d.ts +10 -0
- package/dist/src/components/ui/separator/separator.defs.d.ts +5 -0
- package/dist/src/components/ui/separator/separator.stories.d.ts +9 -0
- package/dist/src/components/ui/skeleton/skeleton.d.ts +10 -0
- package/dist/src/components/ui/skeleton/skeleton.stories.d.ts +4 -0
- package/dist/src/components/ui/skeleton/skeleton.style.d.ts +1 -0
- package/dist/src/components/ui/spinner/_spinner.d.ts +19 -0
- package/dist/src/components/ui/spinner/spinner.d.ts +10 -0
- package/dist/src/components/ui/spinner/spinner.defs.d.ts +4 -0
- package/dist/src/components/ui/spinner/spinner.stories.d.ts +11 -0
- package/dist/src/components/ui/switch/switch.d.ts +13 -0
- package/dist/src/components/ui/switch/switch.stories.d.ts +4 -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 +17 -0
- package/dist/src/components/ui/table/table.stories.d.ts +4 -0
- package/dist/src/components/ui/table/table.styles.d.ts +39 -0
- package/dist/src/components/ui/tabs/_tabs-content.d.ts +29 -0
- package/dist/src/components/ui/tabs/_tabs-list.d.ts +29 -0
- package/dist/src/components/ui/tabs/_tabs-trigger.d.ts +46 -0
- package/dist/src/components/ui/tabs/_tabs.d.ts +98 -0
- package/dist/src/components/ui/tabs/tabs.d.ts +17 -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 +12 -0
- package/dist/src/components/ui/textarea/_textarea.d.ts +131 -0
- package/dist/src/components/ui/textarea/textarea.d.ts +10 -0
- package/dist/src/components/ui/textarea/textarea.defs.d.ts +23 -0
- package/dist/src/components/ui/textarea/textarea.stories.d.ts +9 -0
- package/dist/src/components/ui/toast/toast-action.d.ts +26 -0
- package/dist/src/components/ui/toast/toast-description.d.ts +13 -0
- package/dist/src/components/ui/toast/toast-title.d.ts +13 -0
- package/dist/src/components/ui/toast/toast-trigger.d.ts +17 -0
- package/dist/src/components/ui/toast/toast-view-port.d.ts +23 -0
- package/dist/src/components/ui/toast/toast.d.ts +24 -0
- package/dist/src/components/ui/toast/toast.stories.d.ts +9 -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 +28 -0
- package/dist/src/components/ui/toggle/toggle.defs.d.ts +27 -0
- package/dist/src/components/ui/toggle/toggle.stories.d.ts +5 -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 +42 -0
- package/dist/src/components/ui/toggle-group/toggle-group.d.ts +24 -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 +4 -0
- package/dist/src/components/ui/toggle-group/toggle-group.style.d.ts +5 -0
- package/dist/src/components/ui/typography/_typography-blockquote.d.ts +22 -0
- package/dist/src/components/ui/typography/_typography-code.d.ts +22 -0
- package/dist/src/components/ui/typography/_typography-h.d.ts +27 -0
- package/dist/src/components/ui/typography/_typography-large.d.ts +22 -0
- package/dist/src/components/ui/typography/_typography-lead.d.ts +22 -0
- package/dist/src/components/ui/typography/_typography-list.d.ts +22 -0
- package/dist/src/components/ui/typography/_typography-muted.d.ts +22 -0
- package/dist/src/components/ui/typography/_typography-p.d.ts +22 -0
- package/dist/src/components/ui/typography/_typography-small.d.ts +22 -0
- package/dist/src/components/ui/typography/_typography-table.d.ts +13 -0
- package/dist/src/components/ui/typography/typography.d.ts +28 -0
- package/dist/src/components/ui/typography/typography.defs.d.ts +4 -0
- package/dist/src/components/ui/typography/typography.stories.d.ts +18 -0
- package/dist/src/components/widgets/index.d.ts +1 -0
- package/dist/src/components/widgets/light-sample-demo/light-sample.demo.d.ts +13 -0
- package/dist/src/helpers/base-element.d.ts +20 -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 +14 -0
- package/dist/src/helpers/shadow-wrapper.d.ts +7 -0
- package/dist/src/helpers/style.helpers.d.ts +2 -0
- package/dist/src/helpers/widget-controller.d.ts +12 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/interfaces/actionable.interface.d.ts +5 -0
- package/dist/src/interfaces/atomic.interface.d.ts +6 -0
- package/dist/src/interfaces/changeable.interface.d.ts +7 -0
- package/dist/src/interfaces/child-support-atomic.interface.d.ts +4 -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 +4 -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/border-radius.d.ts +49 -0
- package/dist/src/tokens/tailwind/border-width.d.ts +27 -0
- package/dist/src/tokens/tailwind/box-shadow.d.ts +12 -0
- package/dist/src/tokens/tailwind/color.d.ts +232 -0
- package/dist/src/tokens/tailwind/font-size.d.ts +90 -0
- package/dist/src/tokens/tailwind/font-weight.d.ts +27 -0
- package/dist/src/tokens/tailwind/index.d.ts +841 -0
- package/dist/src/tokens/tailwind/keyframes.d.ts +41 -0
- package/dist/src/tokens/tailwind/opacity.d.ts +31 -0
- package/dist/src/tokens/tailwind/ring-offset-width.d.ts +6 -0
- package/dist/src/tokens/tailwind/ring-width.d.ts +16 -0
- package/dist/src/tokens/tailwind/spacing.d.ts +287 -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 +6 -0
- package/package.json +26 -39
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Container that renders a semantic `fieldset` with spacing presets.
|
|
4
|
+
*
|
|
5
|
+
* @element rtg-field-set
|
|
6
|
+
* @slot field-set
|
|
7
|
+
*/
|
|
8
|
+
export declare class FieldSet extends LitElement {
|
|
9
|
+
/**
|
|
10
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
11
|
+
*/
|
|
12
|
+
protected createRenderRoot(): this;
|
|
13
|
+
/**
|
|
14
|
+
* The slot of the field set.
|
|
15
|
+
*/
|
|
16
|
+
private get _setSlot();
|
|
17
|
+
/**
|
|
18
|
+
* Appends children to the field set slot.
|
|
19
|
+
*/
|
|
20
|
+
protected firstUpdated(): void;
|
|
21
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Renders a title with label styling inside `rtg-field-content`.
|
|
4
|
+
*
|
|
5
|
+
* @element rtg-field-title
|
|
6
|
+
* @slot field-label
|
|
7
|
+
*/
|
|
8
|
+
export declare class FieldTitle extends LitElement {
|
|
9
|
+
/**
|
|
10
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
11
|
+
*/
|
|
12
|
+
protected createRenderRoot(): this;
|
|
13
|
+
/**
|
|
14
|
+
* The slot of the field title.
|
|
15
|
+
*/
|
|
16
|
+
private get _titleSlot();
|
|
17
|
+
/**
|
|
18
|
+
* Appends children to the field title slot.
|
|
19
|
+
*/
|
|
20
|
+
protected firstUpdated(): void;
|
|
21
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { FieldProps, FieldOrientation } from './field.defs';
|
|
3
|
+
/**
|
|
4
|
+
* The core wrapper for a single field. Provides orientation control, invalid
|
|
5
|
+
* state styling, and spacing.
|
|
6
|
+
*
|
|
7
|
+
* @element rtg-field
|
|
8
|
+
* @slot field
|
|
9
|
+
*/
|
|
10
|
+
export declare class Field extends LitElement implements FieldProps {
|
|
11
|
+
/**
|
|
12
|
+
* The orientation of the field contents.
|
|
13
|
+
*/
|
|
14
|
+
orientation: FieldOrientation;
|
|
15
|
+
/**
|
|
16
|
+
* Indicates that a child of the field is disabled.
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Indicates that a child of the field is invalid.
|
|
21
|
+
*/
|
|
22
|
+
invalid?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
25
|
+
*/
|
|
26
|
+
protected createRenderRoot(): this;
|
|
27
|
+
/**
|
|
28
|
+
* The slot of the field root.
|
|
29
|
+
*/
|
|
30
|
+
private get _rootSlot();
|
|
31
|
+
/**
|
|
32
|
+
* Appends children to the field group slot.
|
|
33
|
+
*/
|
|
34
|
+
protected firstUpdated(): void;
|
|
35
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FieldSet } from './_field-set';
|
|
2
|
+
import { FieldLegend } from './_field-legend';
|
|
3
|
+
import { FieldGroup } from './_field-group';
|
|
4
|
+
import { Field } from './_field';
|
|
5
|
+
import { FieldContent } from './_field-content';
|
|
6
|
+
import { FieldLabel } from './_field-label';
|
|
7
|
+
import { FieldTitle } from './_field-title';
|
|
8
|
+
import { FieldDescription } from './_field-description';
|
|
9
|
+
import { FieldSeparator } from './_field-separator';
|
|
10
|
+
import { FieldError } from './_field-error';
|
|
11
|
+
export { FieldSet, FieldLegend, FieldGroup, Field, FieldContent, FieldLabel, FieldTitle, FieldDescription, FieldSeparator, FieldError, };
|
|
12
|
+
/**
|
|
13
|
+
* Combine labels, controls, and help text to compose accessible form fields and
|
|
14
|
+
* grouped inputs.
|
|
15
|
+
*/
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'rtg-field-set': FieldSet;
|
|
19
|
+
'rtg-field-legend': FieldLegend;
|
|
20
|
+
'rtg-field-group': FieldGroup;
|
|
21
|
+
'rtg-field': Field;
|
|
22
|
+
'rtg-field-content': FieldContent;
|
|
23
|
+
'rtg-field-label': FieldLabel;
|
|
24
|
+
'rtg-field-title': FieldTitle;
|
|
25
|
+
'rtg-field-description': FieldDescription;
|
|
26
|
+
'rtg-field-separator': FieldSeparator;
|
|
27
|
+
'rtg-field-error': FieldError;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LabelProps } from '../label/label.defs';
|
|
2
|
+
export type FieldLegendVariant = 'legend' | 'label';
|
|
3
|
+
export interface FieldLegendProps {
|
|
4
|
+
variant: FieldLegendVariant;
|
|
5
|
+
}
|
|
6
|
+
export type FieldGroupType = 'field' | 'checkbox' | 'radio';
|
|
7
|
+
export interface FieldGroupProps {
|
|
8
|
+
type: FieldGroupType;
|
|
9
|
+
}
|
|
10
|
+
export type FieldOrientation = 'vertical' | 'horizontal' | 'responsive';
|
|
11
|
+
export interface FieldProps {
|
|
12
|
+
orientation: FieldOrientation;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
invalid?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface FieldLabelProps extends LabelProps {
|
|
17
|
+
}
|
|
18
|
+
export type FieldErrorError = {
|
|
19
|
+
message?: string;
|
|
20
|
+
} | undefined;
|
|
21
|
+
export interface FieldErrorProps {
|
|
22
|
+
errors?: FieldErrorError[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Demo: Story;
|
|
6
|
+
export declare const Input: Story;
|
|
7
|
+
export declare const Textarea: Story;
|
|
8
|
+
export declare const Select: Story;
|
|
9
|
+
export declare const Fieldset: Story;
|
|
10
|
+
export declare const Checkbox: Story;
|
|
11
|
+
export declare const Radio: Story;
|
|
12
|
+
export declare const Switch: Story;
|
|
13
|
+
export declare const ChoiceCard: Story;
|
|
14
|
+
export declare const FieldGroup: Story;
|
|
15
|
+
export declare const ResponsiveLayout: Story;
|
|
16
|
+
export declare const ValidationAndErrors: Story;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type FieldValidator = (value: any) => string | null;
|
|
2
|
+
interface FieldConfig {
|
|
3
|
+
name: string;
|
|
4
|
+
defaultValue?: any;
|
|
5
|
+
validator?: FieldValidator;
|
|
6
|
+
}
|
|
7
|
+
export declare class FormController {
|
|
8
|
+
private values;
|
|
9
|
+
private errors;
|
|
10
|
+
private validators;
|
|
11
|
+
private subscribers;
|
|
12
|
+
registerField({ name, defaultValue, validator }: FieldConfig): void;
|
|
13
|
+
unregisterField(name: string): void;
|
|
14
|
+
setValue(name: string, value: any): void;
|
|
15
|
+
getValue(name: string): any;
|
|
16
|
+
getError(name: string): string | null;
|
|
17
|
+
validateField(name: string): boolean;
|
|
18
|
+
validateAll(): boolean;
|
|
19
|
+
subscribe(callback: () => void): () => boolean;
|
|
20
|
+
private notify;
|
|
21
|
+
getValues(): {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
};
|
|
24
|
+
getErrors(): {
|
|
25
|
+
[x: string]: string | null;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const formStyles = "rtg-space-form-space-y";
|
|
2
|
+
export declare const formDescriptionStyles = "rtg-text-form-description-font rtg-text-form-description-color-text rtg-mt-form-description-space-mt";
|
|
3
|
+
export declare const formFieldStyles = "rtg-space-y-form-field-space-y";
|
|
4
|
+
export declare const formItemStyles = "rtg-space-y-form-item-space-y";
|
|
5
|
+
export declare const formLabelStyles = "rtg-text-form-label-font rtg-mb-form-label-space-mb rtg-font-form-label-font-weight rtg-peer-disabled:rtg-cursor-not-allowed peer-disabled:rtg-opacity-form-label-opacity-peer-disabled";
|
|
6
|
+
export declare const formErrorLabelStyles = "rtg-text-form-label-color-text-error";
|
|
7
|
+
export declare const formMessageStyles = "rtg-text-form-message-font-size rtg-text-form-message-color-text";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { FormController } from './form-controller';
|
|
3
|
+
import { BaseElement } from '../../../helpers';
|
|
4
|
+
export declare class RtgFormController extends BaseElement {
|
|
5
|
+
form: FormController;
|
|
6
|
+
private formElement;
|
|
7
|
+
protected createRenderRoot(): this;
|
|
8
|
+
private handleSubmit;
|
|
9
|
+
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
10
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
'rtg-form-controller': RtgFormController;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
|
2
|
+
export declare class RtgFormDescription extends BaseElement {
|
|
3
|
+
private itemContext;
|
|
4
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
5
|
+
get _desc(): HTMLParagraphElement | null;
|
|
6
|
+
protected firstUpdated(): void;
|
|
7
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'rtg-form-description': RtgFormDescription;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
|
2
|
+
export declare class RtgFormField extends BaseElement {
|
|
3
|
+
private form;
|
|
4
|
+
name: string;
|
|
5
|
+
validators: ((value: any) => string | null)[];
|
|
6
|
+
defaultValue: any;
|
|
7
|
+
fieldName: string;
|
|
8
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
9
|
+
get _container(): HTMLDivElement | null;
|
|
10
|
+
private registered;
|
|
11
|
+
protected updated(): void;
|
|
12
|
+
disconnectedCallback(): void;
|
|
13
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'rtg-form-field': RtgFormField;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
|
2
|
+
export declare class RtgFormItem extends BaseElement {
|
|
3
|
+
private _generatedId;
|
|
4
|
+
itemContext: {
|
|
5
|
+
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
6
|
+
};
|
|
7
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
8
|
+
get _container(): HTMLDivElement | null;
|
|
9
|
+
protected firstUpdated(): void;
|
|
10
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
'rtg-form-item': RtgFormItem;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
|
2
|
+
import { RtgFormField } from './rtg-form-field';
|
|
3
|
+
export declare class RtgFormLabel extends BaseElement {
|
|
4
|
+
private form;
|
|
5
|
+
private hasError;
|
|
6
|
+
private unsubscribe;
|
|
7
|
+
get _field(): RtgFormField;
|
|
8
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
9
|
+
get _label(): HTMLLabelElement | null;
|
|
10
|
+
protected firstUpdated(): void;
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
disconnectedCallback(): void;
|
|
13
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'rtg-form-label': RtgFormLabel;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { RtgFormField } from './rtg-form-field';
|
|
3
|
+
export declare class RtgFormMessage extends LitElement {
|
|
4
|
+
private form;
|
|
5
|
+
private error;
|
|
6
|
+
get _field(): RtgFormField;
|
|
7
|
+
private unsubscribe;
|
|
8
|
+
protected createRenderRoot(): this;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
render(): import('lit-html').TemplateResult<1> | null;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
'rtg-form-message': RtgFormMessage;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FormController } from './form-controller';
|
|
2
|
+
import { BaseElement } from '../../../helpers';
|
|
3
|
+
import { RtgFormController } from './rtg-form-controller';
|
|
4
|
+
import { RtgFormDescription } from './rtg-form-description';
|
|
5
|
+
import { RtgFormField } from './rtg-form-field';
|
|
6
|
+
import { RtgFormItem } from './rtg-form-item';
|
|
7
|
+
import { RtgFormLabel } from './rtg-form-label';
|
|
8
|
+
import { RtgFormMessage } from './rtg-form-message';
|
|
9
|
+
declare class RtgForm extends BaseElement {
|
|
10
|
+
form: FormController;
|
|
11
|
+
onSubmit: (values: any) => void;
|
|
12
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
13
|
+
get _formElement(): HTMLFormElement | null;
|
|
14
|
+
protected firstUpdated(): void;
|
|
15
|
+
private handleSubmit;
|
|
16
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
export { RtgForm, RtgFormController, RtgFormDescription, RtgFormField, RtgFormItem, RtgFormLabel, RtgFormMessage, };
|
|
19
|
+
declare global {
|
|
20
|
+
interface HTMLElementTagNameMap {
|
|
21
|
+
'rtg-form': RtgForm;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
|
+
export declare class HoverContent extends BaseElement {
|
|
4
|
+
state: 'open' | 'closed';
|
|
5
|
+
private isOpen;
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
disconnectedCallback(): void;
|
|
8
|
+
private onStateChange;
|
|
9
|
+
private handlePointerLeaveCheck;
|
|
10
|
+
updated(changedProps: PropertyValues): void;
|
|
11
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
12
|
+
protected getAttributesToExclude(): string[];
|
|
13
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
14
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
|
+
declare class HoverCardTrigger extends BaseElement {
|
|
4
|
+
protected getAttributesToExclude(): string[];
|
|
5
|
+
createRenderRoot(): this;
|
|
6
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
7
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
8
|
+
}
|
|
9
|
+
export { HoverCardTrigger };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
|
+
import { HoverContent } from './hover-card-content';
|
|
4
|
+
import { HoverCardTrigger } from './hover-card-trigger';
|
|
5
|
+
declare class HoverCard extends BaseElement {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
private hoverTimeout;
|
|
8
|
+
private get _containerElement();
|
|
9
|
+
private get _content();
|
|
10
|
+
private get _trigger();
|
|
11
|
+
protected getAttributesToExclude(): string[];
|
|
12
|
+
protected updated(_changedProperties: PropertyValues): void;
|
|
13
|
+
private openCard;
|
|
14
|
+
private closeCard;
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
18
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
19
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
export { HoverCard, HoverCardTrigger, HoverContent };
|
|
22
|
+
declare global {
|
|
23
|
+
interface HTMLElementTagNameMap {
|
|
24
|
+
'rtg-hover-card': HoverCard;
|
|
25
|
+
'rtg-hover-card-trigger': HoverCardTrigger;
|
|
26
|
+
'rtg-hover-card-content': HoverContent;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export * from './accordion/accordion';
|
|
2
|
+
export * from './alert/alert';
|
|
3
|
+
export * from './aspect-ratio/aspect-ratio';
|
|
4
|
+
export * from './avatar/avatar';
|
|
5
|
+
export * from './badge/badge';
|
|
6
|
+
export * from './breadcrumb/breadcrumb';
|
|
7
|
+
export * from './button/button';
|
|
8
|
+
export * from './calendar/calendar';
|
|
9
|
+
export * from './card/card';
|
|
10
|
+
export * from './carousel/carousel';
|
|
11
|
+
export * from './checkbox/checkbox';
|
|
12
|
+
export * from './collapsible/collapsible';
|
|
13
|
+
export * from './combobox/combo-box';
|
|
14
|
+
export * from './command/command';
|
|
15
|
+
export * from './context-menu/context-menu';
|
|
16
|
+
export * from './date-picker/date-picker';
|
|
17
|
+
export * from './dialog/dialog';
|
|
18
|
+
export * from './drawer/drawer';
|
|
19
|
+
export * from './dropdown-menu/dropdown-menu';
|
|
20
|
+
export * from './empty/empty';
|
|
21
|
+
export * from './field/field';
|
|
22
|
+
export * from './form/rtg-form';
|
|
23
|
+
export * from './hoverCard/hover-card';
|
|
24
|
+
export * from './input-group/input-group';
|
|
25
|
+
export * from './input-otp/input-otp';
|
|
26
|
+
export * from './input/input';
|
|
27
|
+
export * from './item/item';
|
|
28
|
+
export * from './kbd/kbd';
|
|
29
|
+
export * from './label/label';
|
|
30
|
+
export * from './menubar/menubar';
|
|
31
|
+
export * from './navigation-menu/navigation-menu';
|
|
32
|
+
export * from './pagination/pagination';
|
|
33
|
+
export * from './password-input/password-input';
|
|
34
|
+
export * from './popover/popover';
|
|
35
|
+
export * from './progress/progress';
|
|
36
|
+
export * from './radio-group/radio-group';
|
|
37
|
+
export * from './scroll-area/scroll-area';
|
|
38
|
+
export * from './select/select';
|
|
39
|
+
export * from './separator/separator';
|
|
40
|
+
export * from './skeleton/skeleton';
|
|
41
|
+
export * from './spinner/spinner';
|
|
42
|
+
export * from './switch/switch';
|
|
43
|
+
export * from './table/table';
|
|
44
|
+
export * from './tabs/tabs';
|
|
45
|
+
export * from './textarea/textarea';
|
|
46
|
+
export * from './toast/toast';
|
|
47
|
+
export * from './toggle-group/toggle-group';
|
|
48
|
+
export * from './toggle/toggle';
|
|
49
|
+
export * from './typography/typography';
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { InputProps, InputAutocomplete, InputType } from './input.defs';
|
|
3
|
+
/**
|
|
4
|
+
* The `<rtg-input>` component is a text input component for forms and user data
|
|
5
|
+
* entry with built-in styling and accessibility features.
|
|
6
|
+
*
|
|
7
|
+
* @element rtg-input
|
|
8
|
+
* @slot input
|
|
9
|
+
*/
|
|
10
|
+
export declare class Input extends LitElement implements InputProps {
|
|
11
|
+
/**
|
|
12
|
+
* Hint for expected file type in file upload controls. Permitted for file.
|
|
13
|
+
*/
|
|
14
|
+
accept?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Hint for form autofill feature.
|
|
17
|
+
*/
|
|
18
|
+
autocomplete?: InputAutocomplete;
|
|
19
|
+
/**
|
|
20
|
+
* When `true`, prevents the user from interacting with the input.
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The form name that the input is associated with.
|
|
25
|
+
*/
|
|
26
|
+
form?: string;
|
|
27
|
+
/**
|
|
28
|
+
* A unique id for the input element.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* When `true`, sets the `aria-invalid` attribute and styles the input
|
|
33
|
+
* accordingly.
|
|
34
|
+
*/
|
|
35
|
+
invalid?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The greatest value in the range of permitted values. Permitted for date,
|
|
38
|
+
* time, and number.
|
|
39
|
+
*/
|
|
40
|
+
max?: number;
|
|
41
|
+
/**
|
|
42
|
+
* The maximum string length that the user can enter into the field. Permitted
|
|
43
|
+
* for text, search, url, tel, email, and password.
|
|
44
|
+
*/
|
|
45
|
+
maxlength?: number;
|
|
46
|
+
/**
|
|
47
|
+
* The most negative value in the range of permitted values. Permitted for
|
|
48
|
+
* date, time, and number.
|
|
49
|
+
*/
|
|
50
|
+
min?: number;
|
|
51
|
+
/**
|
|
52
|
+
* The minimum string length that the user can enter into the field. Permitted
|
|
53
|
+
* for text, search, url, tel, email, and password.
|
|
54
|
+
*/
|
|
55
|
+
minlength?: number;
|
|
56
|
+
/**
|
|
57
|
+
* When `true`, the user can enter comma separated email addresses in the
|
|
58
|
+
* `email` input or can choose more than one file with the `file` input.
|
|
59
|
+
*/
|
|
60
|
+
multiple?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The name of the input. Submitted with its owning form as part of a
|
|
63
|
+
* name/value pair.
|
|
64
|
+
*/
|
|
65
|
+
name?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Used to compile a regular expression that the input's value must match.
|
|
68
|
+
* Permitted for text, search, url, tel, email, and password.
|
|
69
|
+
*/
|
|
70
|
+
pattern?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The value of the placeholder text, providing a brief hint to the user.
|
|
73
|
+
* Permitted for text, search, url, tel, email, password, and number.
|
|
74
|
+
*/
|
|
75
|
+
placeholder?: string;
|
|
76
|
+
/**
|
|
77
|
+
* When `true`, indicates that the user should not be able to edit the value
|
|
78
|
+
* of the input.
|
|
79
|
+
*/
|
|
80
|
+
readonly?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* When `true`, indicates that the user must fill the input before the owning
|
|
83
|
+
* form can be submitted.
|
|
84
|
+
*/
|
|
85
|
+
required?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* A number that specifies the granularity that the value must adhere to.
|
|
88
|
+
* Permitted for date, time, and number.
|
|
89
|
+
*/
|
|
90
|
+
step?: number;
|
|
91
|
+
/**
|
|
92
|
+
* The type of the input.
|
|
93
|
+
*/
|
|
94
|
+
type: InputType;
|
|
95
|
+
/**
|
|
96
|
+
* The value of the input. When specified as a prop, it is the initial value.
|
|
97
|
+
*/
|
|
98
|
+
value?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The user-defined "on click" handler for the input.
|
|
101
|
+
*/
|
|
102
|
+
onClick?: (event: MouseEvent) => void;
|
|
103
|
+
/**
|
|
104
|
+
* The user-defined "on input" handler for the input.
|
|
105
|
+
*/
|
|
106
|
+
onInput?: (event: Event) => void;
|
|
107
|
+
/**
|
|
108
|
+
* The user-defined "on change" handler for the input.
|
|
109
|
+
*/
|
|
110
|
+
onChange?: (event: Event) => void;
|
|
111
|
+
/**
|
|
112
|
+
* The user-defined "on focus" handler for the input.
|
|
113
|
+
*/
|
|
114
|
+
onFocus?: (event: FocusEvent) => void;
|
|
115
|
+
/**
|
|
116
|
+
* The user-defined "on blur" handler for the input.
|
|
117
|
+
*/
|
|
118
|
+
onBlur?: (event: FocusEvent) => void;
|
|
119
|
+
/**
|
|
120
|
+
* The id of the input element, determined by the provided `id` prop.
|
|
121
|
+
*/
|
|
122
|
+
private _inputId?;
|
|
123
|
+
/**
|
|
124
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
125
|
+
*/
|
|
126
|
+
protected createRenderRoot(): this;
|
|
127
|
+
/**
|
|
128
|
+
* Handles the updated callback, transferring the `id` prop's value to
|
|
129
|
+
* `_inputId` and removing it from the parent (if changed).
|
|
130
|
+
*/
|
|
131
|
+
protected updated(changed: PropertyValues): void;
|
|
132
|
+
/**
|
|
133
|
+
* Handles the first updated callback, transferring the `id` prop's value to
|
|
134
|
+
* `_inputId` and removing it from the parent.
|
|
135
|
+
*/
|
|
136
|
+
protected firstUpdated(): void;
|
|
137
|
+
/**
|
|
138
|
+
* Handles the click event of the input, invoking the user-provided event
|
|
139
|
+
* handler (if provided).
|
|
140
|
+
*/
|
|
141
|
+
private _onClick;
|
|
142
|
+
/**
|
|
143
|
+
* Handles the input event of the input, updating the stored `value` and
|
|
144
|
+
* invoking the user-provided event handler (if provided).
|
|
145
|
+
*/
|
|
146
|
+
private _onInput;
|
|
147
|
+
/**
|
|
148
|
+
* Handles the change event of the input, updating the stored `value` and
|
|
149
|
+
* invoking the user-provided event handler (if provided).
|
|
150
|
+
*/
|
|
151
|
+
private _onChange;
|
|
152
|
+
/**
|
|
153
|
+
* Handles the focus event of the input, dispatching the focus event (so it
|
|
154
|
+
* bubbles) and invoking the user-provided event handler (if provided).
|
|
155
|
+
*/
|
|
156
|
+
private _onFocus;
|
|
157
|
+
/**
|
|
158
|
+
* Handles the blur event of the input, dispatching the focus event (so it
|
|
159
|
+
* bubbles) and invoking the user-provided event handler (if provided).
|
|
160
|
+
*/
|
|
161
|
+
private _onBlur;
|
|
162
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
163
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Input } from './_input';
|
|
2
|
+
export { Input };
|
|
3
|
+
/**
|
|
4
|
+
* A text input component for forms and user data entry with built-in styling
|
|
5
|
+
* and accessibility features.
|
|
6
|
+
*/
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'rtg-input': Input;
|
|
10
|
+
}
|
|
11
|
+
}
|