revotech-ui-kit 0.0.7-beta → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/revotech-ui-kit.cjs +2293 -0
- package/dist/revotech-ui-kit.js +5608 -0
- package/dist/src/assets/icons/arrows.icon.d.ts +1 -0
- package/dist/src/assets/icons/arrows.icon.js +20 -0
- package/dist/src/assets/icons/arrows.icon.js.map +1 -0
- package/dist/src/assets/icons/index.d.ts +3 -0
- package/dist/src/assets/icons/index.js +4 -0
- package/dist/src/assets/icons/index.js.map +1 -0
- package/dist/src/assets/icons/search.icon.d.ts +1 -0
- package/dist/src/assets/icons/search.icon.js +19 -0
- package/dist/src/assets/icons/search.icon.js.map +1 -0
- package/dist/src/assets/icons/tick.icon.d.ts +1 -0
- package/dist/src/assets/icons/tick.icon.js +20 -0
- package/dist/src/assets/icons/tick.icon.js.map +1 -0
- package/dist/src/components/atoms/alert/alert-description.d.ts +5 -0
- package/dist/src/components/atoms/alert/alert-description.js +18 -0
- package/dist/src/components/atoms/alert/alert-description.js.map +1 -0
- package/dist/src/components/atoms/alert/alert-title.d.ts +5 -0
- package/dist/src/components/atoms/alert/alert-title.js +20 -0
- package/dist/src/components/atoms/alert/alert-title.js.map +1 -0
- package/dist/src/components/atoms/alert/alert.atom.d.ts +15 -0
- package/dist/src/components/atoms/alert/alert.atom.js +55 -0
- package/dist/src/components/atoms/alert/alert.atom.js.map +1 -0
- package/dist/src/components/atoms/alert/alert.stories.d.ts +6 -0
- package/dist/src/components/atoms/alert/alert.stories.js +62 -0
- package/dist/src/components/atoms/alert/alert.stories.js.map +1 -0
- package/dist/src/components/atoms/alert/alert.styles.d.ts +4 -0
- package/dist/src/components/atoms/alert/alert.styles.js +21 -0
- package/dist/src/components/atoms/alert/alert.styles.js.map +1 -0
- package/dist/src/components/atoms/alert/alert.types.d.ts +1 -0
- package/dist/src/components/atoms/alert/alert.types.js +2 -0
- package/dist/src/components/atoms/alert/alert.types.js.map +1 -0
- package/dist/src/components/atoms/badge/badge.atom.d.ts +16 -0
- package/dist/src/components/atoms/badge/badge.atom.js +43 -0
- package/dist/src/components/atoms/badge/badge.atom.js.map +1 -0
- package/dist/src/components/atoms/badge/badge.stories.d.ts +6 -0
- package/dist/src/components/atoms/badge/badge.stories.js +110 -0
- package/dist/src/components/atoms/badge/badge.stories.js.map +1 -0
- package/dist/src/components/atoms/badge/badge.style.d.ts +3 -0
- package/dist/src/components/atoms/badge/badge.style.js +17 -0
- package/dist/src/components/atoms/badge/badge.style.js.map +1 -0
- package/dist/src/components/atoms/badge/badge.type.d.ts +1 -0
- package/dist/src/components/atoms/badge/badge.type.js +2 -0
- package/dist/src/components/atoms/badge/badge.type.js.map +1 -0
- package/dist/src/components/atoms/button/button.atom.d.ts +22 -0
- package/dist/src/components/atoms/button/button.atom.js +67 -0
- package/dist/src/components/atoms/button/button.atom.js.map +1 -0
- package/dist/src/components/atoms/button/button.stories.d.ts +6 -0
- package/dist/src/components/atoms/button/button.stories.js +204 -0
- package/dist/src/components/atoms/button/button.stories.js.map +1 -0
- package/dist/src/components/atoms/button/button.style.d.ts +4 -0
- package/dist/src/components/atoms/button/button.style.js +24 -0
- package/dist/src/components/atoms/button/button.style.js.map +1 -0
- package/dist/src/components/atoms/button/button.type.d.ts +3 -0
- package/dist/src/components/atoms/button/button.type.js +2 -0
- package/dist/src/components/atoms/button/button.type.js.map +1 -0
- package/dist/src/components/atoms/card/card-content.d.ts +5 -0
- package/dist/src/components/atoms/card/card-content.js +17 -0
- package/dist/src/components/atoms/card/card-content.js.map +1 -0
- package/dist/src/components/atoms/card/card-description.d.ts +5 -0
- package/dist/src/components/atoms/card/card-description.js +17 -0
- package/dist/src/components/atoms/card/card-description.js.map +1 -0
- package/dist/src/components/atoms/card/card-footer.d.ts +5 -0
- package/dist/src/components/atoms/card/card-footer.js +17 -0
- package/dist/src/components/atoms/card/card-footer.js.map +1 -0
- package/dist/src/components/atoms/card/card-header.d.ts +5 -0
- package/dist/src/components/atoms/card/card-header.js +17 -0
- package/dist/src/components/atoms/card/card-header.js.map +1 -0
- package/dist/src/components/atoms/card/card-title.d.ts +5 -0
- package/dist/src/components/atoms/card/card-title.js +17 -0
- package/dist/src/components/atoms/card/card-title.js.map +1 -0
- package/dist/src/components/atoms/card/card.atom.d.ts +11 -0
- package/dist/src/components/atoms/card/card.atom.js +25 -0
- package/dist/src/components/atoms/card/card.atom.js.map +1 -0
- package/dist/src/components/atoms/card/card.stories.d.ts +6 -0
- package/dist/src/components/atoms/card/card.stories.js +136 -0
- package/dist/src/components/atoms/card/card.stories.js.map +1 -0
- package/dist/src/components/atoms/checkbox/checkbox.atom.d.ts +13 -0
- package/dist/src/components/atoms/checkbox/checkbox.atom.js +87 -0
- package/dist/src/components/atoms/checkbox/checkbox.atom.js.map +1 -0
- package/dist/src/components/atoms/checkbox/checkbox.stories.d.ts +8 -0
- package/dist/src/components/atoms/checkbox/checkbox.stories.js +244 -0
- package/dist/src/components/atoms/checkbox/checkbox.stories.js.map +1 -0
- package/dist/src/components/atoms/checkbox/checkbox.style.d.ts +2 -0
- package/dist/src/components/atoms/checkbox/checkbox.style.js +3 -0
- package/dist/src/components/atoms/checkbox/checkbox.style.js.map +1 -0
- package/dist/src/components/atoms/checkbox/checkbox.type.d.ts +21 -0
- package/dist/src/components/atoms/checkbox/checkbox.type.js +2 -0
- package/dist/src/components/atoms/checkbox/checkbox.type.js.map +1 -0
- package/dist/src/components/atoms/combo-box/combo-box-input.d.ts +8 -0
- package/dist/src/components/atoms/combo-box/combo-box-input.js +47 -0
- package/dist/src/components/atoms/combo-box/combo-box-input.js.map +1 -0
- package/dist/src/components/atoms/combo-box/combo-box-item.d.ts +12 -0
- package/dist/src/components/atoms/combo-box/combo-box-item.js +85 -0
- package/dist/src/components/atoms/combo-box/combo-box-item.js.map +1 -0
- package/dist/src/components/atoms/combo-box/combo-box-list.d.ts +9 -0
- package/dist/src/components/atoms/combo-box/combo-box-list.js +67 -0
- package/dist/src/components/atoms/combo-box/combo-box-list.js.map +1 -0
- package/dist/src/components/atoms/combo-box/combo-box.atom.d.ts +23 -0
- package/dist/src/components/atoms/combo-box/combo-box.atom.js +199 -0
- package/dist/src/components/atoms/combo-box/combo-box.atom.js.map +1 -0
- package/dist/src/components/atoms/combo-box/combo-box.stories.d.ts +9 -0
- package/dist/src/components/atoms/combo-box/combo-box.stories.js +86 -0
- package/dist/src/components/atoms/combo-box/combo-box.stories.js.map +1 -0
- package/dist/src/components/atoms/command-empty/command-empty.atom.d.ts +9 -0
- package/dist/src/components/atoms/command-empty/command-empty.atom.js +53 -0
- package/dist/src/components/atoms/command-empty/command-empty.atom.js.map +1 -0
- package/dist/src/components/atoms/command-group/command-group.atom.d.ts +10 -0
- package/dist/src/components/atoms/command-group/command-group.atom.js +70 -0
- package/dist/src/components/atoms/command-group/command-group.atom.js.map +1 -0
- package/dist/src/components/atoms/command-item/command-item.atom.d.ts +12 -0
- package/dist/src/components/atoms/command-item/command-item.atom.js +78 -0
- package/dist/src/components/atoms/command-item/command-item.atom.js.map +1 -0
- package/dist/src/components/atoms/command-list/command-list.atom.d.ts +6 -0
- package/dist/src/components/atoms/command-list/command-list.atom.js +35 -0
- package/dist/src/components/atoms/command-list/command-list.atom.js.map +1 -0
- package/dist/src/components/atoms/command-separator/command-separator.atom.d.ts +9 -0
- package/dist/src/components/atoms/command-separator/command-separator.atom.js +51 -0
- package/dist/src/components/atoms/command-separator/command-separator.atom.js.map +1 -0
- package/dist/src/components/atoms/dialog/dialog-close.d.ts +7 -0
- package/dist/src/components/atoms/dialog/dialog-close.js +46 -0
- package/dist/src/components/atoms/dialog/dialog-close.js.map +1 -0
- package/dist/src/components/atoms/dialog/dialog-content.d.ts +8 -0
- package/dist/src/components/atoms/dialog/dialog-content.js +72 -0
- package/dist/src/components/atoms/dialog/dialog-content.js.map +1 -0
- package/dist/src/components/atoms/dialog/dialog-footer.d.ts +5 -0
- package/dist/src/components/atoms/dialog/dialog-footer.js +22 -0
- package/dist/src/components/atoms/dialog/dialog-footer.js.map +1 -0
- package/dist/src/components/atoms/dialog/dialog-header.d.ts +7 -0
- package/dist/src/components/atoms/dialog/dialog-header.js +40 -0
- package/dist/src/components/atoms/dialog/dialog-header.js.map +1 -0
- package/dist/src/components/atoms/dialog/dialog-overly.d.ts +5 -0
- package/dist/src/components/atoms/dialog/dialog-overly.js +20 -0
- package/dist/src/components/atoms/dialog/dialog-overly.js.map +1 -0
- package/dist/src/components/atoms/dialog/dialog-trigger.d.ts +8 -0
- package/dist/src/components/atoms/dialog/dialog-trigger.js +53 -0
- package/dist/src/components/atoms/dialog/dialog-trigger.js.map +1 -0
- package/dist/src/components/atoms/dialog/dialog.atom.d.ts +8 -0
- package/dist/src/components/atoms/dialog/dialog.atom.js +78 -0
- package/dist/src/components/atoms/dialog/dialog.atom.js.map +1 -0
- package/dist/src/components/atoms/dialog/dialog.stories.d.ts +16 -0
- package/dist/src/components/atoms/dialog/dialog.stories.js +88 -0
- package/dist/src/components/atoms/dialog/dialog.stories.js.map +1 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.d.ts +15 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.js +115 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.js.map +1 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.d.ts +13 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.js +80 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.js.map +1 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.d.ts +10 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.js +70 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.js.map +1 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.d.ts +12 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.js +78 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.js.map +1 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.d.ts +15 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.js +116 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.js.map +1 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.d.ts +9 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.js +51 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.js.map +1 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.d.ts +5 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.js +20 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.js.map +1 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.d.ts +14 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.js +77 -0
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.js.map +1 -0
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.d.ts +15 -0
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.js +211 -0
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.js.map +1 -0
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.d.ts +2 -0
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.js +4 -0
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.js.map +1 -0
- package/dist/src/components/atoms/index.d.ts +13 -0
- package/dist/src/components/atoms/index.js +14 -0
- package/dist/src/components/atoms/index.js.map +1 -0
- package/dist/src/components/atoms/input/input.atom.d.ts +21 -0
- package/dist/src/components/atoms/input/input.atom.js +93 -0
- package/dist/src/components/atoms/input/input.atom.js.map +1 -0
- package/dist/src/components/atoms/input/input.stories.d.ts +8 -0
- package/dist/src/components/atoms/input/input.stories.js +382 -0
- package/dist/src/components/atoms/input/input.stories.js.map +1 -0
- package/dist/src/components/atoms/input/input.styles.d.ts +1 -0
- package/dist/src/components/atoms/input/input.styles.js +2 -0
- package/dist/src/components/atoms/input/input.styles.js.map +1 -0
- package/dist/src/components/atoms/input/input.type.d.ts +21 -0
- package/dist/src/components/atoms/input/input.type.js +2 -0
- package/dist/src/components/atoms/input/input.type.js.map +1 -0
- package/dist/src/components/atoms/label/label.atom.d.ts +11 -0
- package/dist/src/components/atoms/label/label.atom.js +67 -0
- package/dist/src/components/atoms/label/label.atom.js.map +1 -0
- package/dist/src/components/atoms/label/label.stories.d.ts +6 -0
- package/dist/src/components/atoms/label/label.stories.js +85 -0
- package/dist/src/components/atoms/label/label.stories.js.map +1 -0
- package/dist/src/components/atoms/label/label.style.d.ts +1 -0
- package/dist/src/components/atoms/label/label.style.js +3 -0
- package/dist/src/components/atoms/label/label.style.js.map +1 -0
- package/dist/src/components/atoms/popover/popover-content.d.ts +11 -0
- package/dist/src/components/atoms/popover/popover-content.js +62 -0
- package/dist/src/components/atoms/popover/popover-content.js.map +1 -0
- package/dist/src/components/atoms/popover/popover-trigger.d.ts +9 -0
- package/dist/src/components/atoms/popover/popover-trigger.js +50 -0
- package/dist/src/components/atoms/popover/popover-trigger.js.map +1 -0
- package/dist/src/components/atoms/popover/popover.atom.d.ts +8 -0
- package/dist/src/components/atoms/popover/popover.atom.js +40 -0
- package/dist/src/components/atoms/popover/popover.atom.js.map +1 -0
- package/dist/src/components/atoms/popover/popover.stories.d.ts +10 -0
- package/dist/src/components/atoms/popover/popover.stories.js +69 -0
- package/dist/src/components/atoms/popover/popover.stories.js.map +1 -0
- package/dist/src/components/atoms/popover/popover.style.d.ts +5 -0
- package/dist/src/components/atoms/popover/popover.style.js +21 -0
- package/dist/src/components/atoms/popover/popover.style.js.map +1 -0
- package/dist/src/components/atoms/popover/popover.types.d.ts +2 -0
- package/dist/src/components/atoms/popover/popover.types.js +4 -0
- package/dist/src/components/atoms/popover/popover.types.js.map +1 -0
- package/dist/src/components/atoms/toggle/defs.d.ts +27 -0
- package/dist/src/components/atoms/toggle/defs.js +30 -0
- package/dist/src/components/atoms/toggle/defs.js.map +1 -0
- package/dist/src/components/atoms/toggle/toggle.atom.d.ts +19 -0
- package/dist/src/components/atoms/toggle/toggle.atom.js +72 -0
- package/dist/src/components/atoms/toggle/toggle.atom.js.map +1 -0
- package/dist/src/components/atoms/toggle/toggle.stories.d.ts +6 -0
- package/dist/src/components/atoms/toggle/toggle.stories.js +189 -0
- package/dist/src/components/atoms/toggle/toggle.stories.js.map +1 -0
- package/dist/src/components/atoms/toggle/toggle.style.d.ts +4 -0
- package/dist/src/components/atoms/toggle/toggle.style.js +19 -0
- package/dist/src/components/atoms/toggle/toggle.style.js.map +1 -0
- package/dist/src/components/command/command.d.ts +56 -0
- package/dist/src/components/command/command.js +402 -0
- package/dist/src/components/command/command.js.map +1 -0
- package/dist/src/components/command/command.stories.d.ts +5 -0
- package/dist/src/components/command/command.stories.js +153 -0
- package/dist/src/components/command/command.stories.js.map +1 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/index.js +3 -0
- package/dist/src/components/index.js.map +1 -0
- package/dist/src/components/molecules/command/command.molecules.d.ts +6 -0
- package/dist/src/components/molecules/command/command.molecules.js +27 -0
- package/dist/src/components/molecules/command/command.molecules.js.map +1 -0
- package/dist/src/components/molecules/command-input/command-input.atom.d.ts +10 -0
- package/dist/src/components/molecules/command-input/command-input.atom.js +125 -0
- package/dist/src/components/molecules/command-input/command-input.atom.js.map +1 -0
- package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.d.ts +0 -0
- package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.js +2 -0
- package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.js.map +1 -0
- package/dist/src/components/molecules/index.d.ts +1 -0
- package/dist/src/components/molecules/index.js +2 -0
- package/dist/src/components/molecules/index.js.map +1 -0
- package/dist/src/helpers/base-element.d.ts +10 -0
- package/dist/src/helpers/base-element.js +62 -0
- package/dist/src/helpers/base-element.js.map +1 -0
- package/dist/src/helpers/index.d.ts +3 -0
- package/dist/src/helpers/index.js +4 -0
- package/dist/src/helpers/index.js.map +1 -0
- package/dist/src/helpers/mouse-conroller.helper.d.ts +14 -0
- package/dist/src/helpers/mouse-conroller.helper.js +33 -0
- package/dist/src/helpers/mouse-conroller.helper.js.map +1 -0
- package/dist/src/helpers/style.helpers.d.ts +2 -0
- package/dist/src/helpers/style.helpers.js +6 -0
- package/dist/src/helpers/style.helpers.js.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +5 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/interfaces/actionable.interface.d.ts +5 -0
- package/dist/src/interfaces/actionable.interface.js +2 -0
- package/dist/src/interfaces/actionable.interface.js.map +1 -0
- package/dist/src/interfaces/atomic.interface.d.ts +6 -0
- package/dist/src/interfaces/atomic.interface.js +2 -0
- package/dist/src/interfaces/atomic.interface.js.map +1 -0
- package/dist/src/interfaces/changeable.interface.d.ts +7 -0
- package/dist/src/interfaces/changeable.interface.js +2 -0
- package/dist/src/interfaces/changeable.interface.js.map +1 -0
- package/dist/src/interfaces/child-support-atomic.interface.d.ts +4 -0
- package/dist/src/interfaces/child-support-atomic.interface.js +2 -0
- package/dist/src/interfaces/child-support-atomic.interface.js.map +1 -0
- package/dist/src/interfaces/index.d.ts +6 -0
- package/dist/src/interfaces/index.js +7 -0
- package/dist/src/interfaces/index.js.map +1 -0
- package/dist/src/interfaces/intractable.interface.d.ts +6 -0
- package/dist/src/interfaces/intractable.interface.js +2 -0
- package/dist/src/interfaces/intractable.interface.js.map +1 -0
- package/dist/src/interfaces/variant.interface.d.ts +3 -0
- package/dist/src/interfaces/variant.interface.js +2 -0
- package/dist/src/interfaces/variant.interface.js.map +1 -0
- package/dist/src/lib/index.d.ts +0 -0
- package/dist/src/lib/index.js +2 -0
- package/dist/src/lib/index.js.map +1 -0
- package/dist/src/lib/next/next.lib.d.ts +0 -0
- package/dist/src/lib/next/next.lib.js +2 -0
- package/dist/src/lib/next/next.lib.js.map +1 -0
- package/dist/src/lib/react/react.lib.d.ts +5 -0
- package/dist/src/lib/react/react.lib.js +16 -0
- package/dist/src/lib/react/react.lib.js.map +1 -0
- package/dist/src/lib/tw-styles.d.ts +1 -0
- package/dist/src/lib/tw-styles.js +1956 -0
- package/dist/src/lib/tw-styles.js.map +1 -0
- package/dist/src/styles/index.d.ts +1 -0
- package/dist/src/styles/index.js +2 -0
- package/dist/src/styles/index.js.map +1 -0
- package/dist/src/styles/tw.styles.d.ts +1 -0
- package/dist/src/styles/tw.styles.js +2218 -0
- package/dist/src/styles/tw.styles.js.map +1 -0
- package/dist/src/wc-ui-app.d.ts +6 -0
- package/dist/src/wc-ui-app.js +88 -0
- package/dist/src/wc-ui-app.js.map +1 -0
- package/dist/test/wc-ui-app.test.d.ts +0 -0
- package/dist/test/wc-ui-app.test.js +18 -0
- package/dist/test/wc-ui-app.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/dist/vite.config.js +29 -0
- package/dist/vite.config.js.map +1 -0
- package/package.json +19 -22
- package/dist/f28fd4b1.js +0 -1
- package/dist/index.ts +0 -1
- package/dist/rollup-plugin-html-noop.js +0 -1
- package/dist/sw.js +0 -2
- package/dist/sw.js.map +0 -1
- package/dist/workbox-a523fd56.js +0 -2
- package/dist/workbox-a523fd56.js.map +0 -1
@@ -0,0 +1,27 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { LitElement, html, css } from 'lit';
|
3
|
+
import { customElement, queryAssignedElements, } from 'lit/decorators.js';
|
4
|
+
import { cn } from '../../../helpers';
|
5
|
+
import { TWStyles } from '../../../styles';
|
6
|
+
let Command = class Command extends LitElement {
|
7
|
+
render() {
|
8
|
+
return html `
|
9
|
+
<div
|
10
|
+
class="${cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground border shadow-md', this.className)}"
|
11
|
+
id="rtgcmdr1"
|
12
|
+
rtgcmd-root
|
13
|
+
>
|
14
|
+
<slot></slot>
|
15
|
+
</div>
|
16
|
+
`;
|
17
|
+
}
|
18
|
+
};
|
19
|
+
Command.styles = [css ``, TWStyles];
|
20
|
+
__decorate([
|
21
|
+
queryAssignedElements({ selector: 'input[rtgcmd-input]' })
|
22
|
+
], Command.prototype, "_input", void 0);
|
23
|
+
Command = __decorate([
|
24
|
+
customElement('rtg-command')
|
25
|
+
], Command);
|
26
|
+
export { Command };
|
27
|
+
//# sourceMappingURL=command.molecules.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"command.molecules.js","sourceRoot":"","sources":["../../../../../src/components/molecules/command/command.molecules.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAW,MAAM,KAAK,CAAC;AACrD,OAAO,EAEL,aAAa,EACb,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGpC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,UAAU;IAMrC,MAAM;QACJ,OAAO,IAAI,CAAA;;iBAEE,EAAE,CACT,4GAA4G,EAC5G,IAAI,CAAC,SAAS,CACf;;;;;;KAMJ,CAAC;IACJ,CAAC;;AAlBM,cAAM,GAAG,CAAC,GAAG,CAAA,EAAE,EAAE,QAAQ,CAAC,AAApB,CAAqB;AAGlC;IADC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,qBAAqB,EAAE,CAAC;uCAC/B;AAJjB,OAAO;IADnB,aAAa,CAAC,aAAa,CAAC;GAChB,OAAO,CAoBnB","sourcesContent":["import { LitElement, html, css, nothing } from 'lit';\nimport {\n property,\n customElement,\n queryAssignedElements,\n} from 'lit/decorators.js';\nimport { cn } from '../../../helpers';\nimport { TWStyles } from '../../../styles';\n\n@customElement('rtg-command')\nexport class Command extends LitElement {\n static styles = [css``, TWStyles];\n\n @queryAssignedElements({ selector: 'input[rtgcmd-input]' })\n _input!: Array<HTMLElement>;\n\n render() {\n return html`\n <div\n class=\"${cn(\n 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground border shadow-md',\n this.className\n )}\"\n id=\"rtgcmdr1\"\n rtgcmd-root\n >\n <slot></slot>\n </div>\n `;\n }\n}\n"]}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
export declare class CommandInput extends LitElement {
|
3
|
+
placeholder: string;
|
4
|
+
_value: string;
|
5
|
+
static styles: import("lit").CSSResult[];
|
6
|
+
private get identifier();
|
7
|
+
private filterItems;
|
8
|
+
private handleChange;
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
10
|
+
}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { LitElement, html, css } from 'lit';
|
3
|
+
import { property, customElement } from 'lit/decorators.js';
|
4
|
+
import { cn } from '../../../helpers';
|
5
|
+
import { TWStyles } from '../../../styles';
|
6
|
+
let CommandInput = class CommandInput extends LitElement {
|
7
|
+
constructor() {
|
8
|
+
super(...arguments);
|
9
|
+
this.placeholder = 'Type a command or search...';
|
10
|
+
this._value = '';
|
11
|
+
}
|
12
|
+
get identifier() {
|
13
|
+
const parent = this.parentElement?.shadowRoot?.querySelector('div[rtgcmd-root]');
|
14
|
+
if (parent) {
|
15
|
+
return `${parent.getAttribute('id')}i`;
|
16
|
+
}
|
17
|
+
return `rtgcmdrxi`;
|
18
|
+
}
|
19
|
+
filterItems() {
|
20
|
+
const parent = this.parentElement;
|
21
|
+
if (parent) {
|
22
|
+
let isEmpty = true;
|
23
|
+
const groups = parent.querySelectorAll('rtg-command-list > rtg-command-group');
|
24
|
+
if (groups) {
|
25
|
+
groups.forEach(group => {
|
26
|
+
let hidden = true;
|
27
|
+
const items = group.querySelectorAll('rtg-command-item');
|
28
|
+
if (items) {
|
29
|
+
items.forEach(item => {
|
30
|
+
const value = item?.value || '';
|
31
|
+
if (value.toLowerCase().includes(this._value.toLowerCase())) {
|
32
|
+
hidden = false;
|
33
|
+
isEmpty = false;
|
34
|
+
item.setAttribute('aria-hidden', 'false');
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
item.setAttribute('aria-hidden', 'true');
|
38
|
+
}
|
39
|
+
});
|
40
|
+
}
|
41
|
+
group.setAttribute('aria-hidden', hidden ? 'true' : 'false');
|
42
|
+
let separator = group.previousElementSibling;
|
43
|
+
if (separator) {
|
44
|
+
separator.setAttribute('aria-hidden', hidden ||
|
45
|
+
separator.previousElementSibling?.getAttribute('aria-hidden') === 'true'
|
46
|
+
? 'true'
|
47
|
+
: 'false');
|
48
|
+
}
|
49
|
+
separator = group.nextElementSibling;
|
50
|
+
if (separator) {
|
51
|
+
separator.setAttribute('aria-hidden', hidden ||
|
52
|
+
separator.nextElementSibling?.getAttribute('aria-hidden') ===
|
53
|
+
'true'
|
54
|
+
? 'true'
|
55
|
+
: 'false');
|
56
|
+
}
|
57
|
+
});
|
58
|
+
}
|
59
|
+
const empty = parent.querySelector('rtg-command-empty');
|
60
|
+
if (empty) {
|
61
|
+
empty.setAttribute('aria-hidden', isEmpty ? 'false' : 'true');
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
handleChange(e) {
|
66
|
+
const input = e.target;
|
67
|
+
if (input) {
|
68
|
+
this._value = input.value;
|
69
|
+
this.filterItems();
|
70
|
+
}
|
71
|
+
}
|
72
|
+
render() {
|
73
|
+
return html `
|
74
|
+
<div
|
75
|
+
class="${cn('flex items-center border-b px-3', this.className)}"
|
76
|
+
name="rtgcmd-input-container"
|
77
|
+
>
|
78
|
+
<svg
|
79
|
+
xmlns="http://www.w3.org/2000/svg"
|
80
|
+
width="24"
|
81
|
+
height="24"
|
82
|
+
viewBox="0 0 24 24"
|
83
|
+
fill="none"
|
84
|
+
stroke="currentColor"
|
85
|
+
stroke-width="2"
|
86
|
+
stroke-linecap="round"
|
87
|
+
stroke-linejoin="round"
|
88
|
+
class="mr-2 h-4 w-4 shrink-0 opacity-50"
|
89
|
+
>
|
90
|
+
<circle cx="11" cy="11" r="8"></circle>
|
91
|
+
<path d="m21 21-4.3-4.3"></path>
|
92
|
+
</svg>
|
93
|
+
<input
|
94
|
+
class="flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"
|
95
|
+
placeholder="${this.placeholder}"
|
96
|
+
rtgcmd-input
|
97
|
+
@input="${this.handleChange}"
|
98
|
+
autocomplete="off"
|
99
|
+
autocorrect="off"
|
100
|
+
spellcheck="false"
|
101
|
+
aria-autocomplete="list"
|
102
|
+
role="combobox"
|
103
|
+
aria-expanded="true"
|
104
|
+
aria-controls=":r1oe:"
|
105
|
+
aria-labelledby=":r1of:"
|
106
|
+
id="${this.identifier}"
|
107
|
+
type="text"
|
108
|
+
data-value="${this._value}"
|
109
|
+
/>
|
110
|
+
</div>
|
111
|
+
`;
|
112
|
+
}
|
113
|
+
};
|
114
|
+
CommandInput.styles = [css ``, TWStyles];
|
115
|
+
__decorate([
|
116
|
+
property({ type: String })
|
117
|
+
], CommandInput.prototype, "placeholder", void 0);
|
118
|
+
__decorate([
|
119
|
+
property({ attribute: 'value', type: String })
|
120
|
+
], CommandInput.prototype, "_value", void 0);
|
121
|
+
CommandInput = __decorate([
|
122
|
+
customElement('rtg-command-input')
|
123
|
+
], CommandInput);
|
124
|
+
export { CommandInput };
|
125
|
+
//# sourceMappingURL=command-input.atom.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"command-input.atom.js","sourceRoot":"","sources":["../../../../../src/components/molecules/command-input/command-input.atom.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAW,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,EA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AI,CAAC,WAAW,EAAE,CAAC;QACrB,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;;iBAEE,EAAE,CAAC,iCAAiC,EAAE,IAAI,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;yBAoB7C,IAAI,CAAC,WAAW;;oBAErB,IAAI,CAAC,YAAY;;;;;;;;;gBASrB,IAAI,CAAC,UAAU;;wBAEP,IAAI,CAAC,MAAM;;;KAG9B,CAAC;IACJ,CAAC;;AApHM,mBAAM,GAAG,CAAC,GAAG,CAAA,EAAE,EAAE,QAAQ,CAAC,AAApB,CAAqB;AAJN;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAA6C;AAExB;IAA/C,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAa;AAHjD,YAAY;IADxB,aAAa,CAAC,mBAAmB,CAAC;GACtB,YAAY,CA0HxB","sourcesContent":["import { LitElement, html, css, nothing } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { cn } from '../../../helpers';\nimport { TWStyles } from '../../../styles';\nimport { CommandItem, CommandSeparator } from '../../../components';\n\n@customElement('rtg-command-input')\nexport class CommandInput extends LitElement {\n @property({ type: String }) placeholder = 'Type a command or search...';\n\n @property({ attribute: 'value', type: String }) _value = '';\n\n static styles = [css``, TWStyles];\n\n private get identifier() {\n const parent =\n this.parentElement?.shadowRoot?.querySelector('div[rtgcmd-root]');\n if (parent) {\n return `${parent.getAttribute('id')}i`;\n }\n return `rtgcmdrxi`;\n }\n\n private filterItems() {\n const parent = this.parentElement;\n if (parent) {\n let isEmpty = true;\n const groups = parent.querySelectorAll(\n 'rtg-command-list > rtg-command-group'\n );\n if (groups) {\n groups.forEach(group => {\n let hidden = true;\n const items = group.querySelectorAll('rtg-command-item');\n if (items) {\n items.forEach(item => {\n const value = (item as CommandItem)?.value || '';\n if (value.toLowerCase().includes(this._value.toLowerCase())) {\n hidden = false;\n isEmpty = false;\n item.setAttribute('aria-hidden', 'false');\n } else {\n item.setAttribute('aria-hidden', 'true');\n }\n });\n }\n group.setAttribute('aria-hidden', hidden ? 'true' : 'false');\n let separator = group.previousElementSibling as CommandSeparator;\n if (separator) {\n separator.setAttribute(\n 'aria-hidden',\n hidden ||\n separator.previousElementSibling?.getAttribute(\n 'aria-hidden'\n ) === 'true'\n ? 'true'\n : 'false'\n );\n }\n separator = group.nextElementSibling as CommandSeparator;\n if (separator) {\n separator.setAttribute(\n 'aria-hidden',\n hidden ||\n separator.nextElementSibling?.getAttribute('aria-hidden') ===\n 'true'\n ? 'true'\n : 'false'\n );\n }\n });\n }\n\n const empty = parent.querySelector('rtg-command-empty');\n if (empty) {\n empty.setAttribute('aria-hidden', isEmpty ? 'false' : 'true');\n }\n }\n }\n\n private handleChange(e: Event) {\n const input = e.target as HTMLInputElement;\n if (input) {\n this._value = input.value;\n this.filterItems();\n }\n }\n\n render() {\n return html`\n <div\n class=\"${cn('flex items-center border-b px-3', this.className)}\"\n name=\"rtgcmd-input-container\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"mr-2 h-4 w-4 shrink-0 opacity-50\"\n >\n <circle cx=\"11\" cy=\"11\" r=\"8\"></circle>\n <path d=\"m21 21-4.3-4.3\"></path>\n </svg>\n <input\n class=\"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\"\n placeholder=\"${this.placeholder}\"\n rtgcmd-input\n @input=\"${this.handleChange}\"\n autocomplete=\"off\"\n autocorrect=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n role=\"combobox\"\n aria-expanded=\"true\"\n aria-controls=\":r1oe:\"\n aria-labelledby=\":r1of:\"\n id=\"${this.identifier}\"\n type=\"text\"\n data-value=\"${this._value}\"\n />\n </div>\n `;\n }\n}\n"]}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dropdownMenu.molecules.js","sourceRoot":"","sources":["../../../../../src/components/molecules/dropdownMenu/dropdownMenu.molecules.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './command/command.molecules';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './command/command.molecules';\n"]}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
export declare abstract class BaseElement extends LitElement {
|
3
|
+
constructor();
|
4
|
+
protected abstract getAttributesToExclude(): string[];
|
5
|
+
protected getFilteredAttributes(): {
|
6
|
+
[key: string]: string;
|
7
|
+
};
|
8
|
+
protected isCustomPropertySet(property: string): boolean;
|
9
|
+
protected applyCustomClass(variables: string[], selector: string, className?: string): void;
|
10
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
export class BaseElement extends LitElement {
|
3
|
+
constructor() {
|
4
|
+
super();
|
5
|
+
}
|
6
|
+
// Helper method to filter attributes based on exclusion rules
|
7
|
+
getFilteredAttributes() {
|
8
|
+
const attributes = {};
|
9
|
+
Array.from(this.attributes).forEach(attr => {
|
10
|
+
if (!this.getAttributesToExclude().includes(attr.name)) {
|
11
|
+
attributes[attr.name] = attr.value ?? '';
|
12
|
+
}
|
13
|
+
});
|
14
|
+
return attributes;
|
15
|
+
}
|
16
|
+
isCustomPropertySet(property) {
|
17
|
+
const value = getComputedStyle(this).getPropertyValue(property).trim();
|
18
|
+
return value !== 'inherit' && value.length > 0;
|
19
|
+
}
|
20
|
+
applyCustomClass(variables, selector, className = '') {
|
21
|
+
let customClass = '';
|
22
|
+
if (variables.some(variable => this.isCustomPropertySet(variable))) {
|
23
|
+
customClass = className;
|
24
|
+
}
|
25
|
+
if (customClass)
|
26
|
+
this.shadowRoot?.querySelector(selector)?.classList.add(customClass);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
// usage
|
30
|
+
// import {
|
31
|
+
// html,
|
32
|
+
// PropertyValues,
|
33
|
+
// } from "lit";
|
34
|
+
// import { customElement, property } from "lit/decorators.js";
|
35
|
+
// import { TWStyles} from "../styles/shared-style";
|
36
|
+
// import { BaseElement } from "./base-element";
|
37
|
+
// @customElement("biopass-label")
|
38
|
+
// export class Label extends BaseElement {
|
39
|
+
// constructor() {
|
40
|
+
// super();
|
41
|
+
// this.attachShadow({mode: 'open'});
|
42
|
+
// }
|
43
|
+
// @property({ type: String }) customClass: string ="";
|
44
|
+
// static styles = [ TWStyles];
|
45
|
+
// protected firstUpdated(_changedProperties: PropertyValues): void {
|
46
|
+
// const variables = [
|
47
|
+
// "--button-bg-color",
|
48
|
+
// "--button-text-color",
|
49
|
+
// "--button-border-radius",
|
50
|
+
// "--button-padding"
|
51
|
+
// ];
|
52
|
+
// this.applyCustomClass(variables, "label","label-base");
|
53
|
+
// }
|
54
|
+
// render() {
|
55
|
+
// return html`
|
56
|
+
// <label class="text-3xl font-bold underline bg-secondary text-primary label-base">
|
57
|
+
// <slot></slot>
|
58
|
+
// </label>
|
59
|
+
// `;
|
60
|
+
// }
|
61
|
+
// }
|
62
|
+
//# sourceMappingURL=base-element.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base-element.js","sourceRoot":"","sources":["../../../src/helpers/base-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,MAAM,OAAgB,WAAY,SAAQ,UAAU;IAClD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAID,8DAA8D;IACpD,qBAAqB;QAC7B,MAAM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BAA0B;AAC1B,6BAA6B;AAC7B,+BAA+B;AAC/B,kCAAkC;AAClC,2BAA2B;AAC3B,SAAS;AAET,8DAA8D;AAC9D,MAAM;AACN,gBAAgB;AAEhB,mBAAmB;AACnB,0FAA0F;AAC1F,wBAAwB;AACxB,iBAAiB;AAEjB,SAAS;AACT,MAAM;AACN,IAAI","sourcesContent":["import { LitElement } from 'lit';\n\nexport abstract class BaseElement extends LitElement {\n constructor() {\n super();\n }\n\n protected abstract getAttributesToExclude(): string[];\n\n // Helper method to filter attributes based on exclusion rules\n protected getFilteredAttributes(): { [key: string]: string } {\n const attributes: { [key: string]: string } = {};\n Array.from(this.attributes).forEach(attr => {\n if (!this.getAttributesToExclude().includes(attr.name)) {\n attributes[attr.name] = attr.value ?? '';\n }\n });\n return attributes;\n }\n protected isCustomPropertySet(property: string): boolean {\n const value = getComputedStyle(this).getPropertyValue(property).trim();\n return value !== 'inherit' && value.length > 0;\n }\n\n protected applyCustomClass(\n variables: string[],\n selector: string,\n className = ''\n ): void {\n let customClass = '';\n\n if (variables.some(variable => this.isCustomPropertySet(variable))) {\n customClass = className;\n }\n if (customClass)\n this.shadowRoot?.querySelector(selector)?.classList.add(customClass);\n }\n}\n\n// usage\n\n// import {\n// html,\n// PropertyValues,\n\n// } from \"lit\";\n// import { customElement, property } from \"lit/decorators.js\";\n// import { TWStyles} from \"../styles/shared-style\";\n// import { BaseElement } from \"./base-element\";\n\n// @customElement(\"biopass-label\")\n// export class Label extends BaseElement {\n// constructor() {\n// super();\n// this.attachShadow({mode: 'open'});\n// }\n// @property({ type: String }) customClass: string =\"\";\n// static styles = [ TWStyles];\n\n// protected firstUpdated(_changedProperties: PropertyValues): void {\n// const variables = [\n// \"--button-bg-color\",\n// \"--button-text-color\",\n// \"--button-border-radius\",\n// \"--button-padding\"\n// ];\n\n// this.applyCustomClass(variables, \"label\",\"label-base\");\n// }\n// render() {\n\n// return html`\n// <label class=\"text-3xl font-bold underline bg-secondary text-primary label-base\">\n// <slot></slot>\n// </label>\n\n// `;\n// }\n// }\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC","sourcesContent":["export * from './mouse-conroller.helper';\nexport * from './style.helpers';\nexport * from './base-element';\n"]}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ReactiveControllerHost } from 'lit';
|
2
|
+
export declare class MouseController {
|
3
|
+
private host;
|
4
|
+
pos: {
|
5
|
+
x: number;
|
6
|
+
y: number;
|
7
|
+
};
|
8
|
+
_onMouseMove: ({ clientX, clientY }: MouseEvent) => void;
|
9
|
+
_onClick: (e: MouseEvent) => void;
|
10
|
+
_onScroll: (e: Event) => void;
|
11
|
+
constructor(host: ReactiveControllerHost);
|
12
|
+
hostConnected(): void;
|
13
|
+
hostDisconnected(): void;
|
14
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
export class MouseController {
|
2
|
+
constructor(host) {
|
3
|
+
this.pos = { x: 0, y: 0 };
|
4
|
+
this._onMouseMove = ({ clientX, clientY }) => {
|
5
|
+
this.pos = { x: clientX, y: clientY };
|
6
|
+
this.host.requestUpdate();
|
7
|
+
};
|
8
|
+
this._onClick = (e) => {
|
9
|
+
console.log(`click: ${e.target}`);
|
10
|
+
console.log(`pos: ${this.pos.x}`);
|
11
|
+
this.host.requestUpdate();
|
12
|
+
};
|
13
|
+
this._onScroll = (e) => {
|
14
|
+
console.log(`scroll: ${e.target}`);
|
15
|
+
console.log(`pos: ${this.pos.y}`);
|
16
|
+
console.log(`pos: ${window.scrollY} ${window.innerHeight}`);
|
17
|
+
this.host.requestUpdate();
|
18
|
+
};
|
19
|
+
this.host = host;
|
20
|
+
host.addController(this);
|
21
|
+
}
|
22
|
+
hostConnected() {
|
23
|
+
window.addEventListener('mousemove', this._onMouseMove);
|
24
|
+
window.addEventListener('click', this._onClick);
|
25
|
+
window.addEventListener('scroll', this._onScroll);
|
26
|
+
}
|
27
|
+
hostDisconnected() {
|
28
|
+
window.removeEventListener('mousemove', this._onMouseMove);
|
29
|
+
window.removeEventListener('click', this._onClick);
|
30
|
+
window.removeEventListener('scroll', this._onScroll);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
//# sourceMappingURL=mouse-conroller.helper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mouse-conroller.helper.js","sourceRoot":"","sources":["../../../src/helpers/mouse-conroller.helper.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,eAAe;IAuB1B,YAAY,IAA4B;QApBxC,QAAG,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QAErB,iBAAY,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,EAAc,EAAE,EAAE;YAClD,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC;YACtC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QAC5B,CAAC,CAAC;QAEF,aAAQ,GAAG,CAAC,CAAa,EAAE,EAAE;YAC3B,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;YAClC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QAC5B,CAAC,CAAC;QAEF,cAAS,GAAG,CAAC,CAAQ,EAAE,EAAE;YACvB,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;YACnC,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC,QAAQ,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;YAC5D,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QAC5B,CAAC,CAAC;QAGA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,aAAa;QACX,MAAM,CAAC,gBAAgB,CAAC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QACxD,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChD,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC;IAED,gBAAgB;QACd,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAC3D,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnD,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;CACF","sourcesContent":["import { ReactiveControllerHost } from 'lit';\n\nexport class MouseController {\n private host: ReactiveControllerHost;\n\n pos = { x: 0, y: 0 };\n\n _onMouseMove = ({ clientX, clientY }: MouseEvent) => {\n this.pos = { x: clientX, y: clientY };\n this.host.requestUpdate();\n };\n\n _onClick = (e: MouseEvent) => {\n console.log(`click: ${e.target}`);\n console.log(`pos: ${this.pos.x}`);\n this.host.requestUpdate();\n };\n\n _onScroll = (e: Event) => {\n console.log(`scroll: ${e.target}`);\n console.log(`pos: ${this.pos.y}`);\n console.log(`pos: ${window.scrollY} ${window.innerHeight}`);\n this.host.requestUpdate();\n };\n\n constructor(host: ReactiveControllerHost) {\n this.host = host;\n host.addController(this);\n }\n\n hostConnected() {\n window.addEventListener('mousemove', this._onMouseMove);\n window.addEventListener('click', this._onClick);\n window.addEventListener('scroll', this._onScroll);\n }\n\n hostDisconnected() {\n window.removeEventListener('mousemove', this._onMouseMove);\n window.removeEventListener('click', this._onClick);\n window.removeEventListener('scroll', this._onScroll);\n }\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"style.helpers.js","sourceRoot":"","sources":["../../../src/helpers/style.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC","sourcesContent":["import { Button } from './components/atoms/button/button.atom';\nimport { Badge } from './components/atoms/badge/badge.atom';\nimport { Input } from './components/atoms/input/input.atom';\n\nexport { Button, Badge, Input };\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"actionable.interface.js","sourceRoot":"","sources":["../../../src/interfaces/actionable.interface.ts"],"names":[],"mappings":"","sourcesContent":["import React from 'react';\r\n\r\nexport type ActionableProps = Partial<{\r\n onClick: (event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\r\n onSubmit: (event?: React.FormEvent<HTMLFormElement>) => void;\r\n}>;\r\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"atomic.interface.js","sourceRoot":"","sources":["../../../src/interfaces/atomic.interface.ts"],"names":[],"mappings":"","sourcesContent":["export type AtomicProps = Partial<{\r\n id: string;\r\n className: string;\r\n name: string;\r\n title: string;\r\n}>;\r\n"]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { IntractableProps } from './intractable.interface';
|
3
|
+
export type ChangeableProps<T = React.ChangeEvent<HTMLInputElement> | string | number, K = unknown> = Partial<IntractableProps & {
|
4
|
+
onChange: (event?: T, value?: K) => void;
|
5
|
+
onBlur: (event?: T) => void;
|
6
|
+
onPaste: (event?: T) => void;
|
7
|
+
}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"changeable.interface.js","sourceRoot":"","sources":["../../../src/interfaces/changeable.interface.ts"],"names":[],"mappings":"","sourcesContent":["import React from 'react';\r\n\r\nimport { IntractableProps } from './intractable.interface';\r\n\r\nexport type ChangeableProps<\r\n T = React.ChangeEvent<HTMLInputElement> | string | number,\r\n K = unknown\r\n> = Partial<\r\n IntractableProps & {\r\n onChange: (event?: T, value?: K) => void;\r\n onBlur: (event?: T) => void;\r\n onPaste: (event?: T) => void;\r\n }\r\n>;\r\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"child-support-atomic.interface.js","sourceRoot":"","sources":["../../../src/interfaces/child-support-atomic.interface.ts"],"names":[],"mappings":"","sourcesContent":["import { AtomicProps } from './atomic.interface';\r\n\r\nexport type AtomicComponentWithChildren = {\r\n children: React.ReactNode;\r\n} & AtomicProps;\r\n"]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export * from './actionable.interface';
|
2
|
+
export * from './atomic.interface';
|
3
|
+
export * from './child-support-atomic.interface';
|
4
|
+
export * from './changeable.interface';
|
5
|
+
export * from './intractable.interface';
|
6
|
+
export * from './variant.interface';
|
7
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC","sourcesContent":["export * from './actionable.interface';\nexport * from './atomic.interface';\nexport * from './child-support-atomic.interface';\nexport * from './changeable.interface';\nexport * from './intractable.interface';\nexport * from './variant.interface';\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"intractable.interface.js","sourceRoot":"","sources":["../../../src/interfaces/intractable.interface.ts"],"names":[],"mappings":"","sourcesContent":["export type IntractableProps<T = string> = Partial<{\r\n isDisabled: boolean;\r\n isChecked: boolean;\r\n isReadOnly: boolean;\r\n type: T;\r\n}>;\r\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"variant.interface.js","sourceRoot":"","sources":["../../../src/interfaces/variant.interface.ts"],"names":[],"mappings":"","sourcesContent":["export type VariantProps<T> = Partial<{\n variant: T;\n}>;\n"]}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"next.lib.js","sourceRoot":"","sources":["../../../../src/lib/next/next.lib.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { Button } from '@/components/atoms/button/button.atom';
|
2
|
+
import { Checkbox } from '@/components/atoms/checkbox/checkbox.atom';
|
3
|
+
declare const ButtonReact: import("@lit-labs/react").ReactWebComponent<Button, {}>;
|
4
|
+
declare const CheckboxReact: import("@lit-labs/react").ReactWebComponent<Checkbox, {}>;
|
5
|
+
export { ButtonReact, CheckboxReact };
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { createComponent } from '@lit-labs/react';
|
2
|
+
import { Button } from '@/components/atoms/button/button.atom';
|
3
|
+
import { Checkbox } from '@/components/atoms/checkbox/checkbox.atom';
|
4
|
+
import React from 'react';
|
5
|
+
const ButtonReact = createComponent({
|
6
|
+
tagName: 'rtg-button',
|
7
|
+
elementClass: Button,
|
8
|
+
react: React,
|
9
|
+
});
|
10
|
+
const CheckboxReact = createComponent({
|
11
|
+
tagName: 'rtg-checkbox',
|
12
|
+
elementClass: Checkbox,
|
13
|
+
react: React,
|
14
|
+
});
|
15
|
+
export { ButtonReact, CheckboxReact };
|
16
|
+
//# sourceMappingURL=react.lib.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"react.lib.js","sourceRoot":"","sources":["../../../../src/lib/react/react.lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACrE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,GAAG,eAAe,CAAC;IAClC,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE,MAAM;IACpB,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,eAAe,CAAC;IACpC,OAAO,EAAE,cAAc;IACvB,YAAY,EAAE,QAAQ;IACtB,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC","sourcesContent":["import { createComponent } from '@lit-labs/react';\nimport { Button } from '@/components/atoms/button/button.atom';\nimport { Checkbox } from '@/components/atoms/checkbox/checkbox.atom';\nimport React from 'react';\n\nconst ButtonReact = createComponent({\n tagName: 'rtg-button',\n elementClass: Button,\n react: React,\n});\n\nconst CheckboxReact = createComponent({\n tagName: 'rtg-checkbox',\n elementClass: Checkbox,\n react: React,\n});\n\nexport { ButtonReact, CheckboxReact };\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const TWStyles: import("lit").CSSResult;
|