@revotech-group/revotech-ui-kit 0.2.4 → 0.2.6
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 +4055 -2802
- package/dist/rtg-ui-kit.js +11687 -14997
- package/dist/rtg-ui-kit.umd.cjs +1585 -1323
- package/dist/src/assets/icons/anchor.icon.d.ts +0 -1
- package/dist/src/assets/icons/app-window.icon.d.ts +0 -1
- package/dist/src/assets/icons/arrow-right.icon.d.ts +0 -1
- package/dist/src/assets/icons/arrow-up-right.icon.d.ts +0 -1
- package/dist/src/assets/icons/arrow-up.icon.d.ts +0 -1
- package/dist/src/assets/icons/asterisk.icon.d.ts +0 -1
- package/dist/src/assets/icons/badge-alert.icon.d.ts +0 -1
- package/dist/src/assets/icons/badge-check.icon.d.ts +0 -1
- package/dist/src/assets/icons/badge-info.icon.d.ts +0 -1
- package/dist/src/assets/icons/badge-x.icon.d.ts +0 -1
- 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 +0 -1
- package/dist/src/assets/icons/check.icon.d.ts +0 -1
- package/dist/src/assets/icons/chevron-right.icon.d.ts +2 -0
- package/dist/src/assets/icons/circle-alert.icon.d.ts +0 -1
- package/dist/src/assets/icons/circle-check.icon.d.ts +0 -1
- package/dist/src/assets/icons/circle-fading-arrow-up.icon.d.ts +0 -1
- package/dist/src/assets/icons/cloud.icon.d.ts +2 -0
- package/dist/src/assets/icons/code.icon.d.ts +0 -1
- 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/external-link.icon.d.ts +0 -1
- package/dist/src/assets/icons/eye-off.icon.d.ts +2 -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 +0 -1
- package/dist/src/assets/icons/git-branch-plus.icon.d.ts +0 -1
- package/dist/src/assets/icons/house.icon.d.ts +0 -1
- package/dist/src/assets/icons/inbox.icon.d.ts +2 -0
- package/dist/src/assets/icons/index.d.ts +16 -0
- package/dist/src/assets/icons/info.icon.d.ts +0 -1
- package/dist/src/assets/icons/loader-circle.icon.d.ts +0 -1
- package/dist/src/assets/icons/mail-warning.icon.d.ts +0 -1
- package/dist/src/assets/icons/mail.icon.d.ts +2 -0
- package/dist/src/assets/icons/minus.icon.d.ts +0 -1
- package/dist/src/assets/icons/rabbit.icon.d.ts +0 -1
- package/dist/src/assets/icons/refresh-ccw.icon.d.ts +2 -0
- package/dist/src/assets/icons/refresh-cw.icon.d.ts +0 -1
- package/dist/src/assets/icons/search.icon.d.ts +0 -1
- package/dist/src/assets/icons/settings.icon.d.ts +0 -1
- package/dist/src/assets/icons/shield-alert.icon.d.ts +2 -0
- package/dist/src/assets/icons/shopping-bag.icon.d.ts +0 -1
- package/dist/src/assets/icons/star.icon.d.ts +2 -0
- package/dist/src/assets/icons/wand.icon.d.ts +0 -1
- package/dist/src/components/ui/accordion/accordion-content.d.ts +0 -1
- package/dist/src/components/ui/accordion/accordion-item.d.ts +0 -1
- package/dist/src/components/ui/accordion/accordion-trigger.d.ts +0 -1
- package/dist/src/components/ui/accordion/accordion.d.ts +0 -1
- package/dist/src/components/ui/accordion/accordion.stories.d.ts +0 -1
- package/dist/src/components/ui/alert/_alert-action.d.ts +0 -1
- package/dist/src/components/ui/alert/_alert-description.d.ts +0 -1
- package/dist/src/components/ui/alert/_alert-title.d.ts +0 -1
- package/dist/src/components/ui/alert/_alert.d.ts +0 -1
- package/dist/src/components/ui/alert/alert.d.ts +0 -1
- package/dist/src/components/ui/alert/alert.stories.d.ts +0 -1
- package/dist/src/components/ui/aspect-ratio/aspect-ratio.d.ts +0 -1
- package/dist/src/components/ui/aspect-ratio/aspect-ratio.stories.d.ts +0 -1
- package/dist/src/components/ui/avatar/_avatar-badge.d.ts +0 -1
- package/dist/src/components/ui/avatar/_avatar-fallback.d.ts +0 -1
- package/dist/src/components/ui/avatar/_avatar-group-count.d.ts +0 -1
- package/dist/src/components/ui/avatar/_avatar-group.d.ts +0 -1
- package/dist/src/components/ui/avatar/_avatar-image.d.ts +0 -1
- package/dist/src/components/ui/avatar/_avatar.d.ts +0 -1
- package/dist/src/components/ui/avatar/avatar.d.ts +0 -1
- package/dist/src/components/ui/avatar/avatar.stories.d.ts +0 -1
- package/dist/src/components/ui/badge/_badge.d.ts +43 -0
- package/dist/src/components/ui/badge/badge.d.ts +5 -15
- package/dist/src/components/ui/badge/badge.defs.d.ts +8 -0
- package/dist/src/components/ui/badge/badge.stories.d.ts +6 -3
- package/dist/src/components/ui/breadcrumb/breadcrumb-ellipsis.d.ts +0 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb-item.d.ts +0 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb-link.d.ts +0 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb-list.d.ts +0 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb-separator.d.ts +0 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb-text.d.ts +0 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +0 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb.stories.d.ts +0 -1
- package/dist/src/components/ui/button/_button.d.ts +0 -1
- package/dist/src/components/ui/button/button.d.ts +0 -1
- package/dist/src/components/ui/button/button.stories.d.ts +1 -2
- package/dist/src/components/ui/button/button.style.d.ts +1 -1
- package/dist/src/components/ui/calendar/calendar.d.ts +0 -1
- package/dist/src/components/ui/calendar/calendar.stories.d.ts +0 -1
- package/dist/src/components/ui/card/_card-action.d.ts +0 -1
- package/dist/src/components/ui/card/_card-content.d.ts +0 -1
- package/dist/src/components/ui/card/_card-description.d.ts +0 -1
- package/dist/src/components/ui/card/_card-footer.d.ts +1 -2
- package/dist/src/components/ui/card/_card-header.d.ts +1 -2
- package/dist/src/components/ui/card/_card-title.d.ts +0 -1
- package/dist/src/components/ui/card/_card.d.ts +0 -1
- package/dist/src/components/ui/card/card.d.ts +0 -1
- package/dist/src/components/ui/card/card.defs.d.ts +2 -2
- package/dist/src/components/ui/card/card.stories.d.ts +2 -3
- package/dist/src/components/ui/carousel/carousel.d.ts +0 -1
- package/dist/src/components/ui/carousel/carousel.stories.d.ts +0 -1
- package/dist/src/components/ui/checkbox/_checkbox.d.ts +31 -5
- package/dist/src/components/ui/checkbox/checkbox.d.ts +0 -1
- package/dist/src/components/ui/checkbox/checkbox.stories.d.ts +3 -1
- package/dist/src/components/ui/collapsible/collapsible-content.d.ts +0 -1
- package/dist/src/components/ui/collapsible/collapsible-trigger.d.ts +0 -1
- package/dist/src/components/ui/collapsible/collapsible.d.ts +0 -1
- package/dist/src/components/ui/collapsible/collapsible.stories.d.ts +0 -1
- package/dist/src/components/ui/combobox/combo-box-empty.d.ts +0 -1
- package/dist/src/components/ui/combobox/combo-box-group.d.ts +0 -1
- package/dist/src/components/ui/combobox/combo-box-input.d.ts +0 -1
- package/dist/src/components/ui/combobox/combo-box-item.d.ts +0 -1
- package/dist/src/components/ui/combobox/combo-box-trigger.d.ts +0 -1
- package/dist/src/components/ui/combobox/combo-box-value.d.ts +0 -1
- package/dist/src/components/ui/combobox/combo-box.d.ts +0 -1
- package/dist/src/components/ui/combobox/combo-box.stories.d.ts +0 -1
- package/dist/src/components/ui/command/command-empty.atom.d.ts +0 -1
- package/dist/src/components/ui/command/command-group.atom.d.ts +0 -1
- package/dist/src/components/ui/command/command-input.atom.d.ts +0 -1
- package/dist/src/components/ui/command/command-item.atom.d.ts +0 -1
- package/dist/src/components/ui/command/command-list.atom.d.ts +0 -1
- package/dist/src/components/ui/command/command-separator.atom.d.ts +0 -1
- package/dist/src/components/ui/command/command.d.ts +0 -1
- package/dist/src/components/ui/command/command.stories.d.ts +0 -1
- package/dist/src/components/ui/context-menu/context-menu-checkbox-Item.d.ts +0 -1
- package/dist/src/components/ui/context-menu/context-menu-content.d.ts +0 -1
- package/dist/src/components/ui/context-menu/context-menu-group.d.ts +0 -1
- package/dist/src/components/ui/context-menu/context-menu-item.d.ts +0 -1
- package/dist/src/components/ui/context-menu/context-menu-radio-item.d.ts +0 -1
- package/dist/src/components/ui/context-menu/context-menu-seperator.d.ts +0 -1
- package/dist/src/components/ui/context-menu/context-menu-shortcut.d.ts +0 -1
- package/dist/src/components/ui/context-menu/context-menu-trigger.d.ts +0 -1
- package/dist/src/components/ui/context-menu/context-menu.d.ts +0 -1
- package/dist/src/components/ui/context-menu/contextMenu.stories.d.ts +0 -1
- package/dist/src/components/ui/data-table/data-table.d.ts +0 -1
- package/dist/src/components/ui/data-table/data-table.stories.d.ts +0 -1
- package/dist/src/components/ui/date-picker/date-picker.d.ts +0 -1
- package/dist/src/components/ui/date-picker/date-picker.stories.d.ts +0 -1
- package/dist/src/components/ui/dialog/dialog-close.d.ts +0 -1
- package/dist/src/components/ui/dialog/dialog-content.d.ts +0 -1
- package/dist/src/components/ui/dialog/dialog-footer.d.ts +0 -1
- package/dist/src/components/ui/dialog/dialog-header.d.ts +0 -1
- package/dist/src/components/ui/dialog/dialog-overly.d.ts +0 -1
- package/dist/src/components/ui/dialog/dialog-trigger.d.ts +0 -1
- package/dist/src/components/ui/dialog/dialog.d.ts +0 -1
- package/dist/src/components/ui/dialog/dialog.stories.d.ts +0 -1
- package/dist/src/components/ui/drawer/drawer-close.d.ts +0 -1
- package/dist/src/components/ui/drawer/drawer-content.d.ts +0 -1
- package/dist/src/components/ui/drawer/drawer-description.d.ts +0 -1
- package/dist/src/components/ui/drawer/drawer-footer.d.ts +0 -1
- package/dist/src/components/ui/drawer/drawer-header.d.ts +0 -1
- package/dist/src/components/ui/drawer/drawer-overlay.d.ts +0 -1
- package/dist/src/components/ui/drawer/drawer-title.d.ts +0 -1
- package/dist/src/components/ui/drawer/drawer-trigger.d.ts +0 -1
- package/dist/src/components/ui/drawer/drawer.d.ts +0 -1
- package/dist/src/components/ui/drawer/drawer.stories.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-checkbox-Item.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-content.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-group.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-item.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-radio-item.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-seperator.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-shortcut.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-trigger.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -1
- package/dist/src/components/ui/dropdown-menu/dropdownMenu.stories.d.ts +0 -1
- 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 +0 -1
- package/dist/src/components/ui/field/_field-description.d.ts +0 -1
- package/dist/src/components/ui/field/_field-error.d.ts +3 -2
- package/dist/src/components/ui/field/_field-group.d.ts +0 -1
- package/dist/src/components/ui/field/_field-label.d.ts +0 -1
- package/dist/src/components/ui/field/_field-legend.d.ts +0 -1
- package/dist/src/components/ui/field/_field-separator.d.ts +15 -12
- package/dist/src/components/ui/field/_field-set.d.ts +0 -1
- package/dist/src/components/ui/field/_field-title.d.ts +0 -1
- package/dist/src/components/ui/field/_field.d.ts +0 -1
- package/dist/src/components/ui/field/field.d.ts +0 -1
- package/dist/src/components/ui/field/field.defs.d.ts +0 -1
- package/dist/src/components/ui/field/field.stories.d.ts +0 -1
- package/dist/src/components/ui/form/form-context.d.ts +0 -1
- package/dist/src/components/ui/form/form.stories.d.ts +0 -1
- package/dist/src/components/ui/form/rtg-form-controller.d.ts +0 -1
- package/dist/src/components/ui/form/rtg-form-description.d.ts +0 -1
- package/dist/src/components/ui/form/rtg-form-field.d.ts +0 -1
- package/dist/src/components/ui/form/rtg-form-item.d.ts +0 -1
- package/dist/src/components/ui/form/rtg-form-label.d.ts +0 -1
- package/dist/src/components/ui/form/rtg-form-message.d.ts +0 -1
- package/dist/src/components/ui/form/rtg-form.d.ts +0 -1
- package/dist/src/components/ui/hoverCard/hover-card-content.d.ts +0 -1
- package/dist/src/components/ui/hoverCard/hover-card-trigger.d.ts +0 -1
- package/dist/src/components/ui/hoverCard/hover-card.d.ts +0 -1
- package/dist/src/components/ui/hoverCard/hover-card.stories.d.ts +0 -1
- package/dist/src/components/ui/index.d.ts +35 -28
- package/dist/src/components/ui/input/_input.d.ts +0 -1
- package/dist/src/components/ui/input/input.d.ts +0 -1
- package/dist/src/components/ui/input/input.stories.d.ts +0 -1
- 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 +0 -1
- package/dist/src/components/ui/input-otp/_input-otp-separator.d.ts +0 -1
- package/dist/src/components/ui/input-otp/_input-otp-slot.d.ts +0 -1
- package/dist/src/components/ui/input-otp/_input-otp.d.ts +0 -1
- package/dist/src/components/ui/input-otp/input-otp.d.ts +0 -1
- package/dist/src/components/ui/input-otp/input-otp.stories.d.ts +0 -1
- 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 +0 -1
- package/dist/src/components/ui/label/label.d.ts +0 -1
- package/dist/src/components/ui/label/label.stories.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar-checkbox.item.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar-content.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar-group.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar-item.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar-menu.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar-radio-item.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar-separator.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar-shortcut.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar-trigger.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar.d.ts +0 -1
- package/dist/src/components/ui/menubar/menubar.stories.d.ts +0 -1
- package/dist/src/components/ui/navigation-menu/navigation-menu-content.d.ts +0 -1
- package/dist/src/components/ui/navigation-menu/navigation-menu-item.d.ts +0 -1
- package/dist/src/components/ui/navigation-menu/navigation-menu-link.d.ts +0 -1
- package/dist/src/components/ui/navigation-menu/navigation-menu-list.d.ts +0 -1
- package/dist/src/components/ui/navigation-menu/navigation-menu-trigger.d.ts +0 -1
- package/dist/src/components/ui/navigation-menu/navigation-menu.d.ts +0 -1
- package/dist/src/components/ui/navigation-menu/navigation-menu.stories.d.ts +0 -1
- package/dist/src/components/ui/pagination/pagination-content.d.ts +0 -1
- package/dist/src/components/ui/pagination/pagination-ellipsis.d.ts +0 -1
- package/dist/src/components/ui/pagination/pagination-item.d.ts +0 -1
- package/dist/src/components/ui/pagination/pagination-link.d.ts +0 -1
- package/dist/src/components/ui/pagination/pagination-next.d.ts +0 -1
- package/dist/src/components/ui/pagination/pagination-previous.d.ts +0 -1
- package/dist/src/components/ui/pagination/pagination.d.ts +0 -1
- package/dist/src/components/ui/pagination/pagination.stories.d.ts +0 -1
- package/dist/src/components/ui/pagination/pagination.styles.d.ts +1 -1
- 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 +0 -1
- package/dist/src/components/ui/popover/popover-trigger.d.ts +0 -1
- package/dist/src/components/ui/popover/popover.d.ts +0 -1
- package/dist/src/components/ui/popover/popover.stories.d.ts +0 -1
- package/dist/src/components/ui/progress/progress.d.ts +0 -1
- package/dist/src/components/ui/progress/progress.stories.d.ts +0 -1
- package/dist/src/components/ui/radio-group/radio-group-item.d.ts +0 -1
- package/dist/src/components/ui/radio-group/radio-group.d.ts +0 -1
- package/dist/src/components/ui/radio-group/radio-group.stories.d.ts +0 -1
- package/dist/src/components/ui/sample-demo/sample-demo.d.ts +1 -2
- package/dist/src/components/ui/sample-demo/sample.style.d.ts +1 -1
- package/dist/src/components/ui/scroll-area/scroll-area.d.ts +0 -1
- package/dist/src/components/ui/scroll-area/scroll-area.stories.d.ts +0 -1
- package/dist/src/components/ui/select/select-group.d.ts +0 -1
- package/dist/src/components/ui/select/select-item.d.ts +0 -1
- package/dist/src/components/ui/select/select-label.d.ts +0 -1
- package/dist/src/components/ui/select/select-list.d.ts +0 -1
- package/dist/src/components/ui/select/select-seperator.d.ts +0 -1
- package/dist/src/components/ui/select/select-trigger.d.ts +0 -1
- package/dist/src/components/ui/select/select-value.d.ts +0 -1
- package/dist/src/components/ui/select/select.d.ts +0 -1
- package/dist/src/components/ui/select/select.stories.d.ts +0 -1
- package/dist/src/components/ui/separator/_separator.d.ts +0 -1
- package/dist/src/components/ui/separator/separator.d.ts +0 -1
- package/dist/src/components/ui/separator/separator.stories.d.ts +0 -1
- package/dist/src/components/ui/skeleton/skeleton.d.ts +0 -1
- package/dist/src/components/ui/skeleton/skeleton.stories.d.ts +0 -1
- 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 +0 -1
- package/dist/src/components/ui/switch/switch.stories.d.ts +0 -1
- package/dist/src/components/ui/table/table.d.ts +0 -1
- package/dist/src/components/ui/table/table.stories.d.ts +0 -1
- package/dist/src/components/ui/tabs/_tabs-content.d.ts +0 -1
- package/dist/src/components/ui/tabs/_tabs-list.d.ts +0 -1
- package/dist/src/components/ui/tabs/_tabs-trigger.d.ts +0 -1
- package/dist/src/components/ui/tabs/_tabs.d.ts +0 -1
- package/dist/src/components/ui/tabs/tabs.d.ts +0 -1
- package/dist/src/components/ui/tabs/tabs.stories.d.ts +0 -1
- package/dist/src/components/ui/textarea/_textarea.d.ts +131 -0
- package/dist/src/components/ui/textarea/textarea.d.ts +6 -18
- package/dist/src/components/ui/textarea/textarea.defs.d.ts +23 -0
- package/dist/src/components/ui/textarea/textarea.stories.d.ts +9 -5
- package/dist/src/components/ui/toast/toast-action.d.ts +0 -1
- package/dist/src/components/ui/toast/toast-description.d.ts +0 -1
- package/dist/src/components/ui/toast/toast-title.d.ts +0 -1
- package/dist/src/components/ui/toast/toast-trigger.d.ts +0 -1
- package/dist/src/components/ui/toast/toast-view-port.d.ts +0 -1
- package/dist/src/components/ui/toast/toast.d.ts +0 -1
- package/dist/src/components/ui/toast/toast.stories.d.ts +0 -1
- package/dist/src/components/ui/toggle/toggle.d.ts +0 -1
- package/dist/src/components/ui/toggle/toggle.stories.d.ts +0 -1
- package/dist/src/components/ui/toggle-group/toggle-group-item.d.ts +0 -1
- package/dist/src/components/ui/toggle-group/toggle-group.d.ts +0 -1
- package/dist/src/components/ui/toggle-group/toggle-group.stories.d.ts +0 -1
- 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/light-sample-demo/light-sample.demo.d.ts +0 -1
- package/dist/src/helpers/base-element.d.ts +0 -1
- package/dist/src/helpers/mouse-conroller.helper.d.ts +0 -1
- package/dist/src/helpers/shadow-wrapper.d.ts +0 -1
- package/dist/src/helpers/style.helpers.d.ts +0 -1
- package/dist/src/helpers/widget-controller.d.ts +0 -1
- package/dist/src/interfaces/actionable.interface.d.ts +0 -1
- package/dist/src/interfaces/changeable.interface.d.ts +0 -1
- package/dist/src/interfaces/child-support-atomic.interface.d.ts +0 -1
- package/dist/src/lib/react/react.lib.d.ts +0 -1
- package/dist/src/tokens/tailwind/border-radius.d.ts +0 -3
- package/dist/src/tokens/tailwind/border-width.d.ts +0 -1
- package/dist/src/tokens/tailwind/box-shadow.d.ts +0 -5
- package/dist/src/tokens/tailwind/color.d.ts +0 -29
- package/dist/src/tokens/tailwind/font-size.d.ts +0 -8
- package/dist/src/tokens/tailwind/font-weight.d.ts +0 -1
- package/dist/src/tokens/tailwind/index.d.ts +5 -76
- package/dist/src/tokens/tailwind/opacity.d.ts +0 -3
- package/dist/src/tokens/tailwind/ring-offset-width.d.ts +0 -1
- package/dist/src/tokens/tailwind/ring-width.d.ts +0 -3
- package/dist/src/tokens/tailwind/spacing.d.ts +0 -12
- package/dist/src/tokens/tailwind/transition-duration.d.ts +3 -3
- package/dist/src/tokens/tailwind/transition-timing-function.d.ts +2 -2
- package/dist/src/wc-ui-app.d.ts +0 -1
- package/package.json +1 -1
- package/dist/src/components/ui/badge/badge.style.d.ts +0 -3
- package/dist/src/components/ui/badge/badge.type.d.ts +0 -1
- package/dist/src/components/ui/textarea/textarea.styles.d.ts +0 -1
- package/dist/src/components/ui/textarea/textarea.type.d.ts +0 -11
- package/dist/src/tokens/tailwind/basis.d.ts +0 -5
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import { InputProps, InputAutocomplete, InputType } from './input.defs';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* The `<rtg-input>` component is a text input component for forms and user data
|
|
6
5
|
* entry with built-in styling and accessibility features.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { InputGroupAddonAlign, InputGroupAddonProps } from './input-group.defs';
|
|
3
|
+
/**
|
|
4
|
+
* Displays icons, text, buttons, or other content alongside inputs.
|
|
5
|
+
*
|
|
6
|
+
* @element rtg-input-group-addon
|
|
7
|
+
* @slot input-group-addon
|
|
8
|
+
*/
|
|
9
|
+
export declare class InputGroupAddon extends LitElement implements InputGroupAddonProps {
|
|
10
|
+
/**
|
|
11
|
+
* The position of the addon relative to the input.
|
|
12
|
+
*/
|
|
13
|
+
align: InputGroupAddonAlign;
|
|
14
|
+
/**
|
|
15
|
+
* When `true`, a border is added to the top/bottom if the addon has the
|
|
16
|
+
* block-end/block-start alignment.
|
|
17
|
+
*/
|
|
18
|
+
border?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
21
|
+
*/
|
|
22
|
+
protected createRenderRoot(): this;
|
|
23
|
+
/**
|
|
24
|
+
* The slot of the input group addon.
|
|
25
|
+
*/
|
|
26
|
+
private get _addonSlot();
|
|
27
|
+
/**
|
|
28
|
+
* Appends children to the input group addon slot.
|
|
29
|
+
*/
|
|
30
|
+
protected firstUpdated(): void;
|
|
31
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { InputGroupButtonProps, InputGroupButtonSize } from './input-group.defs';
|
|
3
|
+
import { ButtonType, ButtonVariant, ButtonTarget } from '../button/button.defs';
|
|
4
|
+
/**
|
|
5
|
+
* Displays buttons within input groups.
|
|
6
|
+
*
|
|
7
|
+
* @element rtg-input-group-button
|
|
8
|
+
* @slot input-group-button
|
|
9
|
+
*/
|
|
10
|
+
export declare class InputGroupButton extends LitElement implements InputGroupButtonProps {
|
|
11
|
+
/**
|
|
12
|
+
* The visual style of the button.
|
|
13
|
+
*/
|
|
14
|
+
variant: ButtonVariant;
|
|
15
|
+
/**
|
|
16
|
+
* The size of the button.
|
|
17
|
+
*/
|
|
18
|
+
size: InputGroupButtonSize;
|
|
19
|
+
/**
|
|
20
|
+
* The type of the button.
|
|
21
|
+
*/
|
|
22
|
+
type: ButtonType;
|
|
23
|
+
/**
|
|
24
|
+
* When `true`, prevents the user from interacting with the button.
|
|
25
|
+
*/
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* When `true`, sets the `aria-invalid` attribute and styles the button
|
|
29
|
+
* accordingly.
|
|
30
|
+
*/
|
|
31
|
+
invalid?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The URL that the button link points to. When provided, an anchor tag
|
|
34
|
+
* (`<a>`) is rendered instead of a button.
|
|
35
|
+
*/
|
|
36
|
+
href?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Where to display the linked URL, as the name for a browsing context.
|
|
39
|
+
* Optionally provided in conjunction with `href`.
|
|
40
|
+
*/
|
|
41
|
+
target?: ButtonTarget;
|
|
42
|
+
/**
|
|
43
|
+
* The user-defined "on click" handler for the button.
|
|
44
|
+
*/
|
|
45
|
+
onClick?: (event: MouseEvent) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
48
|
+
*/
|
|
49
|
+
protected createRenderRoot(): this;
|
|
50
|
+
/**
|
|
51
|
+
* The slot of the input group button.
|
|
52
|
+
*/
|
|
53
|
+
private get _buttonSlot();
|
|
54
|
+
/**
|
|
55
|
+
* Appends children to the input group button slot.
|
|
56
|
+
*/
|
|
57
|
+
protected firstUpdated(): void;
|
|
58
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { InputAutocomplete, InputType } from '../input/input.defs';
|
|
3
|
+
import { InputGroupInputProps } from './input-group.defs';
|
|
4
|
+
/**
|
|
5
|
+
* Replacement for `<rtg-input>` when building input groups. This component has
|
|
6
|
+
* the input group styles pre-applied and uses the unified data slot for focus
|
|
7
|
+
* state handling.
|
|
8
|
+
*
|
|
9
|
+
* @element rtg-input-group-input
|
|
10
|
+
* @slot input-group-input
|
|
11
|
+
*/
|
|
12
|
+
export declare class InputGroupInput extends LitElement implements InputGroupInputProps {
|
|
13
|
+
/**
|
|
14
|
+
* Hint for expected file type in file upload controls. Permitted for file.
|
|
15
|
+
*/
|
|
16
|
+
accept?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Hint for form autofill feature.
|
|
19
|
+
*/
|
|
20
|
+
autocomplete?: InputAutocomplete;
|
|
21
|
+
/**
|
|
22
|
+
* When `true`, prevents the user from interacting with the input.
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The form name that the input is associated with.
|
|
27
|
+
*/
|
|
28
|
+
form?: string;
|
|
29
|
+
/**
|
|
30
|
+
* A unique id for the input element.
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
/**
|
|
34
|
+
* When `true`, sets the `aria-invalid` attribute and styles the input
|
|
35
|
+
* accordingly.
|
|
36
|
+
*/
|
|
37
|
+
invalid?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The greatest value in the range of permitted values. Permitted for date,
|
|
40
|
+
* time, and number.
|
|
41
|
+
*/
|
|
42
|
+
max?: number;
|
|
43
|
+
/**
|
|
44
|
+
* The maximum string length that the user can enter into the field. Permitted
|
|
45
|
+
* for text, search, url, tel, email, and password.
|
|
46
|
+
*/
|
|
47
|
+
maxlength?: number;
|
|
48
|
+
/**
|
|
49
|
+
* The most negative value in the range of permitted values. Permitted for
|
|
50
|
+
* date, time, and number.
|
|
51
|
+
*/
|
|
52
|
+
min?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The minimum string length that the user can enter into the field. Permitted
|
|
55
|
+
* for text, search, url, tel, email, and password.
|
|
56
|
+
*/
|
|
57
|
+
minlength?: number;
|
|
58
|
+
/**
|
|
59
|
+
* When `true`, the user can enter comma separated email addresses in the
|
|
60
|
+
* `email` input or can choose more than one file with the `file` input.
|
|
61
|
+
*/
|
|
62
|
+
multiple?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The name of the input. Submitted with its owning form as part of a
|
|
65
|
+
* name/value pair.
|
|
66
|
+
*/
|
|
67
|
+
name?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Used to compile a regular expression that the input's value must match.
|
|
70
|
+
* Permitted for text, search, url, tel, email, and password.
|
|
71
|
+
*/
|
|
72
|
+
pattern?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The value of the placeholder text, providing a brief hint to the user.
|
|
75
|
+
* Permitted for text, search, url, tel, email, password, and number.
|
|
76
|
+
*/
|
|
77
|
+
placeholder?: string;
|
|
78
|
+
/**
|
|
79
|
+
* When `true`, indicates that the user should not be able to edit the value
|
|
80
|
+
* of the input.
|
|
81
|
+
*/
|
|
82
|
+
readonly?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* When `true`, indicates that the user must fill the input before the owning
|
|
85
|
+
* form can be submitted.
|
|
86
|
+
*/
|
|
87
|
+
required?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* A number that specifies the granularity that the value must adhere to.
|
|
90
|
+
* Permitted for date, time, and number.
|
|
91
|
+
*/
|
|
92
|
+
step?: number;
|
|
93
|
+
/**
|
|
94
|
+
* The type of the input.
|
|
95
|
+
*/
|
|
96
|
+
type: InputType;
|
|
97
|
+
/**
|
|
98
|
+
* The value of the input. When specified as a prop, it is the initial value.
|
|
99
|
+
*/
|
|
100
|
+
value?: string;
|
|
101
|
+
/**
|
|
102
|
+
* The user-defined "on click" handler for the input.
|
|
103
|
+
*/
|
|
104
|
+
onClick?: (event: MouseEvent) => void;
|
|
105
|
+
/**
|
|
106
|
+
* The user-defined "on input" handler for the input.
|
|
107
|
+
*/
|
|
108
|
+
onInput?: (event: Event) => void;
|
|
109
|
+
/**
|
|
110
|
+
* The user-defined "on change" handler for the input.
|
|
111
|
+
*/
|
|
112
|
+
onChange?: (event: Event) => void;
|
|
113
|
+
/**
|
|
114
|
+
* The user-defined "on focus" handler for the input.
|
|
115
|
+
*/
|
|
116
|
+
onFocus?: (event: FocusEvent) => void;
|
|
117
|
+
/**
|
|
118
|
+
* The user-defined "on blur" handler for the input.
|
|
119
|
+
*/
|
|
120
|
+
onBlur?: (event: FocusEvent) => void;
|
|
121
|
+
/**
|
|
122
|
+
* The id of the input element, determined by the provided `id` prop.
|
|
123
|
+
*/
|
|
124
|
+
private _inputId?;
|
|
125
|
+
/**
|
|
126
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
127
|
+
*/
|
|
128
|
+
protected createRenderRoot(): this;
|
|
129
|
+
/**
|
|
130
|
+
* Handles the updated callback, transferring the `id` prop's value to
|
|
131
|
+
* `_inputId` and removing it from the parent (if changed).
|
|
132
|
+
*/
|
|
133
|
+
protected updated(changed: PropertyValues): void;
|
|
134
|
+
/**
|
|
135
|
+
* Handles the first updated callback, transferring the `id` prop's value to
|
|
136
|
+
* `_inputId` and removing it from the parent.
|
|
137
|
+
*/
|
|
138
|
+
protected firstUpdated(): void;
|
|
139
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
140
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Displays text within input groups.
|
|
4
|
+
*
|
|
5
|
+
* @element rtg-input-group-text
|
|
6
|
+
* @slot input-group-text
|
|
7
|
+
*/
|
|
8
|
+
export declare class InputGroupText 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 input group text.
|
|
15
|
+
*/
|
|
16
|
+
private get _textSlot();
|
|
17
|
+
/**
|
|
18
|
+
* Appends children to the input group root slot.
|
|
19
|
+
*/
|
|
20
|
+
protected firstUpdated(): void;
|
|
21
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { TextareaAutocomplete, TextareaWrap } from '../textarea/textarea.defs';
|
|
3
|
+
import { InputGroupTextareaProps } from './input-group.defs';
|
|
4
|
+
/**
|
|
5
|
+
* Replacement for `<rtg-textarea>` when building input groups. This component
|
|
6
|
+
* has the textarea group styles pre-applied and uses the unified data slot for
|
|
7
|
+
* focus state handling.
|
|
8
|
+
*
|
|
9
|
+
* @element rtg-input-group-textarea
|
|
10
|
+
* @slot input-group-textarea
|
|
11
|
+
*/
|
|
12
|
+
export declare class InputGroupTextarea extends LitElement implements InputGroupTextareaProps {
|
|
13
|
+
/**
|
|
14
|
+
* Controls whether entered text can be automatically completed by the
|
|
15
|
+
* browser.
|
|
16
|
+
*/
|
|
17
|
+
autocomplete?: TextareaAutocomplete;
|
|
18
|
+
/**
|
|
19
|
+
* The visible width of the text control, in average character widths.
|
|
20
|
+
*/
|
|
21
|
+
cols?: number;
|
|
22
|
+
/**
|
|
23
|
+
* When `true`, prevents the user from interacting with the textarea.
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The form name that the textarea is associated with.
|
|
28
|
+
*/
|
|
29
|
+
form?: string;
|
|
30
|
+
/**
|
|
31
|
+
* A unique id for the textarea element.
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* When `true`, sets the `aria-invalid` attribute and styles the textarea
|
|
36
|
+
* accordingly.
|
|
37
|
+
*/
|
|
38
|
+
invalid?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The maximum string length that the user can enter into the field.
|
|
41
|
+
*/
|
|
42
|
+
maxlength?: number;
|
|
43
|
+
/**
|
|
44
|
+
* The minimum string length that the user can enter into the field.
|
|
45
|
+
*/
|
|
46
|
+
minlength?: number;
|
|
47
|
+
/**
|
|
48
|
+
* The name of the textarea. Submitted with its owning form as part of a
|
|
49
|
+
* name/value pair.
|
|
50
|
+
*/
|
|
51
|
+
name?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The value of the placeholder text, providing a brief hint to the user.
|
|
54
|
+
*/
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
/**
|
|
57
|
+
* When `true`, indicates that the user should not be able to edit the value
|
|
58
|
+
* of the textarea.
|
|
59
|
+
*/
|
|
60
|
+
readonly?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* When `true`, indicates that the user must fill the textarea before the
|
|
63
|
+
* owning form can be submitted.
|
|
64
|
+
*/
|
|
65
|
+
required?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The number of visible text lines for the control.
|
|
68
|
+
*/
|
|
69
|
+
rows?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates how the control should wrap the value for form submission.
|
|
72
|
+
*/
|
|
73
|
+
wrap?: TextareaWrap;
|
|
74
|
+
/**
|
|
75
|
+
* The value of the textarea. When specified as a prop, it is the initial
|
|
76
|
+
* value.
|
|
77
|
+
*/
|
|
78
|
+
value?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The user-defined "on input" handler for the textarea.
|
|
81
|
+
*/
|
|
82
|
+
onInput?: (event: Event) => void;
|
|
83
|
+
/**
|
|
84
|
+
* The user-defined "on change" handler for the textarea.
|
|
85
|
+
*/
|
|
86
|
+
onChange?: (event: Event) => void;
|
|
87
|
+
/**
|
|
88
|
+
* The user-defined "on focus" handler for the textarea.
|
|
89
|
+
*/
|
|
90
|
+
onFocus?: (event: FocusEvent) => void;
|
|
91
|
+
/**
|
|
92
|
+
* The user-defined "on blur" handler for the textarea.
|
|
93
|
+
*/
|
|
94
|
+
onBlur?: (event: FocusEvent) => void;
|
|
95
|
+
/**
|
|
96
|
+
* The id of the textarea element, determined by the provided `id` prop.
|
|
97
|
+
*/
|
|
98
|
+
private _textareaId?;
|
|
99
|
+
/**
|
|
100
|
+
* Overrides the default behaviour to render into the light DOM.
|
|
101
|
+
*/
|
|
102
|
+
protected createRenderRoot(): this;
|
|
103
|
+
/**
|
|
104
|
+
* Handles the updated callback, transferring the `id` prop's value to
|
|
105
|
+
* `_textareaId` and removing it from the parent (if changed).
|
|
106
|
+
*/
|
|
107
|
+
protected updated(changed: PropertyValues): void;
|
|
108
|
+
/**
|
|
109
|
+
* Handles the first updated callback, transferring the `id` prop's value to
|
|
110
|
+
* `_textareaId` and removing it from the parent.
|
|
111
|
+
*/
|
|
112
|
+
protected firstUpdated(): void;
|
|
113
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
114
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* The main component that wraps inputs and addons.
|
|
4
|
+
*
|
|
5
|
+
* @element rtg-input-group
|
|
6
|
+
* @slot input-group
|
|
7
|
+
*/
|
|
8
|
+
export declare class InputGroup 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 input group root.
|
|
15
|
+
*/
|
|
16
|
+
private get _rootSlot();
|
|
17
|
+
/**
|
|
18
|
+
* Appends children to the input group root slot.
|
|
19
|
+
*/
|
|
20
|
+
protected firstUpdated(): void;
|
|
21
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InputGroup } from './_input-group';
|
|
2
|
+
import { InputGroupAddon } from './_input-group-addon';
|
|
3
|
+
import { InputGroupButton } from './_input-group-button';
|
|
4
|
+
import { InputGroupInput } from './_input-group-input';
|
|
5
|
+
import { InputGroupText } from './_input-group-text';
|
|
6
|
+
import { InputGroupTextarea } from './_input-group-textarea';
|
|
7
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, };
|
|
8
|
+
/**
|
|
9
|
+
* Add addons, buttons, and helper content to inputs.
|
|
10
|
+
*/
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'rtg-input-group': InputGroup;
|
|
14
|
+
'rtg-input-group-addon': InputGroupAddon;
|
|
15
|
+
'rtg-input-group-button': InputGroupButton;
|
|
16
|
+
'rtg-input-group-text': InputGroupText;
|
|
17
|
+
'rtg-input-group-input': InputGroupInput;
|
|
18
|
+
'rtg-input-group-textarea': InputGroupTextarea;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ButtonProps, ButtonSize } from '../button/button.defs';
|
|
2
|
+
import { InputProps } from '../input/input.defs';
|
|
3
|
+
import { TextareaProps } from '../textarea/textarea.defs';
|
|
4
|
+
export type InputGroupAddonAlign = 'inline-start' | 'inline-end' | 'block-start' | 'block-end';
|
|
5
|
+
export interface InputGroupAddonProps {
|
|
6
|
+
align: InputGroupAddonAlign;
|
|
7
|
+
border?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type InputGroupButtonSize = Extract<ButtonSize, 'xs' | 'icon-xs' | 'sm' | 'icon-sm'>;
|
|
10
|
+
export interface InputGroupButtonProps extends Omit<ButtonProps, 'size'> {
|
|
11
|
+
size: InputGroupButtonSize;
|
|
12
|
+
}
|
|
13
|
+
export interface InputGroupInputProps extends InputProps {
|
|
14
|
+
}
|
|
15
|
+
export interface InputGroupTextareaProps extends TextareaProps {
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 InlineStart: Story;
|
|
7
|
+
export declare const InlineEnd: Story;
|
|
8
|
+
export declare const BlockStart: Story;
|
|
9
|
+
export declare const BlockEnd: Story;
|
|
10
|
+
export declare const Icon: Story;
|
|
11
|
+
export declare const Text: Story;
|
|
12
|
+
export declare const Button: Story;
|
|
13
|
+
export declare const Kbd: Story;
|
|
14
|
+
export declare const Spinner: Story;
|
|
15
|
+
export declare const Textarea: Story;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import { InputOTPProps, InputOTPAutocomplete, InputOTPInputmode } from './input-otp.defs';
|
|
3
|
-
|
|
4
3
|
/**
|
|
5
4
|
* The `<rtg-input-otp>` component is the root input OTP container, holding the
|
|
6
5
|
* input OTP groups and separators, as well as the input element.
|
|
@@ -2,7 +2,6 @@ import { InputOTP } from './_input-otp';
|
|
|
2
2
|
import { InputOTPGroup } from './_input-otp-group';
|
|
3
3
|
import { InputOTPSlot } from './_input-otp-slot';
|
|
4
4
|
import { InputOTPSeparator } from './_input-otp-separator';
|
|
5
|
-
|
|
6
5
|
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
|
|
7
6
|
/**
|
|
8
7
|
* Accessible one-time password component with copy paste functionality.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Container for action buttons or other interactive elements.
|
|
4
|
+
*
|
|
5
|
+
* @element rtg-item-actions
|
|
6
|
+
* @slot item-actions
|
|
7
|
+
*/
|
|
8
|
+
export declare class ItemActions 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 item actions.
|
|
15
|
+
*/
|
|
16
|
+
private get _actionsSlot();
|
|
17
|
+
/**
|
|
18
|
+
* Appends children to the item actions 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
|
+
* Wraps the title and description of the item.
|
|
4
|
+
*
|
|
5
|
+
* @element rtg-item-content
|
|
6
|
+
* @slot item-content
|
|
7
|
+
*/
|
|
8
|
+
export declare class ItemContent 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 item content.
|
|
15
|
+
*/
|
|
16
|
+
private get _contentSlot();
|
|
17
|
+
/**
|
|
18
|
+
* Appends children to the item content 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
|
+
* Displays the description of the item.
|
|
4
|
+
*
|
|
5
|
+
* @element rtg-item-description
|
|
6
|
+
* @slot item-description
|
|
7
|
+
*/
|
|
8
|
+
export declare class ItemDescription 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 item description.
|
|
15
|
+
*/
|
|
16
|
+
private get _descriptionSlot();
|
|
17
|
+
/**
|
|
18
|
+
* Appends children to the item description 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
|
+
* Displays a footer below the item content.
|
|
4
|
+
*
|
|
5
|
+
* @element rtg-item-footer
|
|
6
|
+
* @slot item-footer
|
|
7
|
+
*/
|
|
8
|
+
export declare class ItemFooter 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 item footer.
|
|
15
|
+
*/
|
|
16
|
+
private get _footerSlot();
|
|
17
|
+
/**
|
|
18
|
+
* Appends children to the item footer 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
|
+
* A container that groups related items together with consistent styling.
|
|
4
|
+
*
|
|
5
|
+
* @element rtg-item-group
|
|
6
|
+
* @slot item-group
|
|
7
|
+
*/
|
|
8
|
+
export declare class ItemGroup 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 item group.
|
|
15
|
+
*/
|
|
16
|
+
private get _groupSlot();
|
|
17
|
+
/**
|
|
18
|
+
* Appends children to the item group 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
|
+
* Displays a header above the item content.
|
|
4
|
+
*
|
|
5
|
+
* @element rtg-item-header
|
|
6
|
+
* @slot item-header
|
|
7
|
+
*/
|
|
8
|
+
export declare class ItemHeader 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 item header.
|
|
15
|
+
*/
|
|
16
|
+
private get _headerSlot();
|
|
17
|
+
/**
|
|
18
|
+
* Appends children to the item header slot.
|
|
19
|
+
*/
|
|
20
|
+
protected firstUpdated(): void;
|
|
21
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
22
|
+
}
|