@revotech-group/revotech-ui-kit 0.0.50

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.
Files changed (241) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/revotech-ui-kit.js +12825 -0
  4. package/dist/revotech-ui-kit.umd.cjs +5400 -0
  5. package/dist/src/assets/icons/arrow-up-circle.icon.d.ts +1 -0
  6. package/dist/src/assets/icons/arrows.icon.d.ts +1 -0
  7. package/dist/src/assets/icons/chorven-down.icon.d.ts +1 -0
  8. package/dist/src/assets/icons/circle-check.icon.d.ts +1 -0
  9. package/dist/src/assets/icons/circle-x.icon.d.ts +1 -0
  10. package/dist/src/assets/icons/circle.icon.d.ts +1 -0
  11. package/dist/src/assets/icons/close.icon.d.ts +1 -0
  12. package/dist/src/assets/icons/dot.icon.d.ts +1 -0
  13. package/dist/src/assets/icons/help-circle.icon.d.ts +1 -0
  14. package/dist/src/assets/icons/index.d.ts +13 -0
  15. package/dist/src/assets/icons/radio-group.icon.d.ts +1 -0
  16. package/dist/src/assets/icons/radio.icon.d.ts +1 -0
  17. package/dist/src/assets/icons/search.icon.d.ts +1 -0
  18. package/dist/src/assets/icons/tick.icon.d.ts +1 -0
  19. package/dist/src/components/atoms/accordion/accordion-content.d.ts +14 -0
  20. package/dist/src/components/atoms/accordion/accordion-item.d.ts +21 -0
  21. package/dist/src/components/atoms/accordion/accordion-trigger.d.ts +20 -0
  22. package/dist/src/components/atoms/accordion/accordion.atoms.d.ts +23 -0
  23. package/dist/src/components/atoms/accordion/accordion.defs.d.ts +10 -0
  24. package/dist/src/components/atoms/accordion/accordion.stories.d.ts +5 -0
  25. package/dist/src/components/atoms/accordion/accordion.styles.d.ts +0 -0
  26. package/dist/src/components/atoms/alert/alert-description.d.ts +5 -0
  27. package/dist/src/components/atoms/alert/alert-title.d.ts +5 -0
  28. package/dist/src/components/atoms/alert/alert.atom.d.ts +23 -0
  29. package/dist/src/components/atoms/alert/alert.stories.d.ts +5 -0
  30. package/dist/src/components/atoms/alert/alert.styles.d.ts +4 -0
  31. package/dist/src/components/atoms/alert/alert.types.d.ts +1 -0
  32. package/dist/src/components/atoms/aspect-ratio/aspect-ratio-atom.d.ts +12 -0
  33. package/dist/src/components/atoms/aspect-ratio/aspect-ratio.stories.d.ts +4 -0
  34. package/dist/src/components/atoms/avatar/avatar-fallback.d.ts +10 -0
  35. package/dist/src/components/atoms/avatar/avatar-image.d.ts +12 -0
  36. package/dist/src/components/atoms/avatar/avatar.atom.d.ts +11 -0
  37. package/dist/src/components/atoms/avatar/avatar.stories.d.ts +4 -0
  38. package/dist/src/components/atoms/avatar/avatar.style.d.ts +3 -0
  39. package/dist/src/components/atoms/badge/badge.atom.d.ts +18 -0
  40. package/dist/src/components/atoms/badge/badge.stories.d.ts +5 -0
  41. package/dist/src/components/atoms/badge/badge.style.d.ts +3 -0
  42. package/dist/src/components/atoms/badge/badge.type.d.ts +1 -0
  43. package/dist/src/components/atoms/button/button.atom.d.ts +24 -0
  44. package/dist/src/components/atoms/button/button.stories.d.ts +5 -0
  45. package/dist/src/components/atoms/button/button.style.d.ts +4 -0
  46. package/dist/src/components/atoms/button/button.type.d.ts +3 -0
  47. package/dist/src/components/atoms/calendar/calendar.atom.d.ts +25 -0
  48. package/dist/src/components/atoms/calendar/calendar.stories.d.ts +4 -0
  49. package/dist/src/components/atoms/calendar/calendar.style.d.ts +4 -0
  50. package/dist/src/components/atoms/calendar/calendar.type.d.ts +2 -0
  51. package/dist/src/components/atoms/card/card-content.d.ts +5 -0
  52. package/dist/src/components/atoms/card/card-description.d.ts +5 -0
  53. package/dist/src/components/atoms/card/card-footer.d.ts +5 -0
  54. package/dist/src/components/atoms/card/card-header.d.ts +5 -0
  55. package/dist/src/components/atoms/card/card-title.d.ts +5 -0
  56. package/dist/src/components/atoms/card/card.atom.d.ts +21 -0
  57. package/dist/src/components/atoms/card/card.stories.d.ts +5 -0
  58. package/dist/src/components/atoms/carousel/carousel.atom.d.ts +21 -0
  59. package/dist/src/components/atoms/carousel/carousel.stories.d.ts +6 -0
  60. package/dist/src/components/atoms/checkbox/checkbox.atom.d.ts +19 -0
  61. package/dist/src/components/atoms/checkbox/checkbox.stories.d.ts +6 -0
  62. package/dist/src/components/atoms/checkbox/checkbox.style.d.ts +2 -0
  63. package/dist/src/components/atoms/checkbox/checkbox.type.d.ts +21 -0
  64. package/dist/src/components/atoms/collapsible/collapsible-content.d.ts +11 -0
  65. package/dist/src/components/atoms/collapsible/collapsible-trigger.d.ts +14 -0
  66. package/dist/src/components/atoms/collapsible/collapsible.atom.d.ts +17 -0
  67. package/dist/src/components/atoms/collapsible/collapsible.stories.d.ts +5 -0
  68. package/dist/src/components/atoms/combobox/combo-box-empty.d.ts +11 -0
  69. package/dist/src/components/atoms/combobox/combo-box-group.d.ts +25 -0
  70. package/dist/src/components/atoms/combobox/combo-box-input.d.ts +18 -0
  71. package/dist/src/components/atoms/combobox/combo-box-item.d.ts +22 -0
  72. package/dist/src/components/atoms/combobox/combo-box-trigger.d.ts +15 -0
  73. package/dist/src/components/atoms/combobox/combo-box-value.d.ts +18 -0
  74. package/dist/src/components/atoms/combobox/combo-box.atom.d.ts +25 -0
  75. package/dist/src/components/atoms/combobox/combo-box.stories.d.ts +4 -0
  76. package/dist/src/components/atoms/command/command-empty.atom.d.ts +9 -0
  77. package/dist/src/components/atoms/command/command-group.atom.d.ts +10 -0
  78. package/dist/src/components/atoms/command/command-input.atom.d.ts +10 -0
  79. package/dist/src/components/atoms/command/command-item.atom.d.ts +13 -0
  80. package/dist/src/components/atoms/command/command-list.atom.d.ts +6 -0
  81. package/dist/src/components/atoms/command/command-separator.atom.d.ts +9 -0
  82. package/dist/src/components/atoms/command/command.atom.d.ts +7 -0
  83. package/dist/src/components/atoms/command/command.stories.d.ts +5 -0
  84. package/dist/src/components/atoms/context-menu/context-menu-checkbox-Item.d.ts +15 -0
  85. package/dist/src/components/atoms/context-menu/context-menu-content.d.ts +13 -0
  86. package/dist/src/components/atoms/context-menu/context-menu-group.d.ts +10 -0
  87. package/dist/src/components/atoms/context-menu/context-menu-item.d.ts +12 -0
  88. package/dist/src/components/atoms/context-menu/context-menu-radio-item.d.ts +15 -0
  89. package/dist/src/components/atoms/context-menu/context-menu-seperator.d.ts +9 -0
  90. package/dist/src/components/atoms/context-menu/context-menu-shortcut.d.ts +5 -0
  91. package/dist/src/components/atoms/context-menu/context-menu.atom.d.ts +33 -0
  92. package/dist/src/components/atoms/context-menu/contextMenu.stories.d.ts +4 -0
  93. package/dist/src/components/atoms/context-menu/contextMenu.style.d.ts +2 -0
  94. package/dist/src/components/atoms/date-picker/date-picker.atom.d.ts +13 -0
  95. package/dist/src/components/atoms/date-picker/date-picker.stories.d.ts +4 -0
  96. package/dist/src/components/atoms/dialog/dialog-close.d.ts +12 -0
  97. package/dist/src/components/atoms/dialog/dialog-content.d.ts +8 -0
  98. package/dist/src/components/atoms/dialog/dialog-footer.d.ts +5 -0
  99. package/dist/src/components/atoms/dialog/dialog-header.d.ts +7 -0
  100. package/dist/src/components/atoms/dialog/dialog-overly.d.ts +5 -0
  101. package/dist/src/components/atoms/dialog/dialog-trigger.d.ts +8 -0
  102. package/dist/src/components/atoms/dialog/dialog.atom.d.ts +26 -0
  103. package/dist/src/components/atoms/dialog/dialog.stories.d.ts +6 -0
  104. package/dist/src/components/atoms/dropdown-menu/dropdown-menu-checkbox-Item.d.ts +15 -0
  105. package/dist/src/components/atoms/dropdown-menu/dropdown-menu-content.d.ts +13 -0
  106. package/dist/src/components/atoms/dropdown-menu/dropdown-menu-group.d.ts +10 -0
  107. package/dist/src/components/atoms/dropdown-menu/dropdown-menu-item.d.ts +12 -0
  108. package/dist/src/components/atoms/dropdown-menu/dropdown-menu-radio-item.d.ts +15 -0
  109. package/dist/src/components/atoms/dropdown-menu/dropdown-menu-seperator.d.ts +9 -0
  110. package/dist/src/components/atoms/dropdown-menu/dropdown-menu-shortcut.d.ts +5 -0
  111. package/dist/src/components/atoms/dropdown-menu/dropdown-menu.atom.d.ts +31 -0
  112. package/dist/src/components/atoms/dropdown-menu/dropdownMenu.stories.d.ts +6 -0
  113. package/dist/src/components/atoms/dropdown-menu/dropdownMenu.style.d.ts +2 -0
  114. package/dist/src/components/atoms/hoverCard/hover-card-content.d.ts +17 -0
  115. package/dist/src/components/atoms/hoverCard/hover-card.atom.d.ts +18 -0
  116. package/dist/src/components/atoms/hoverCard/hover-card.stories.d.ts +4 -0
  117. package/dist/src/components/atoms/index.d.ts +48 -0
  118. package/dist/src/components/atoms/input/input.atom.d.ts +22 -0
  119. package/dist/src/components/atoms/input/input.stories.d.ts +5 -0
  120. package/dist/src/components/atoms/input/input.styles.d.ts +1 -0
  121. package/dist/src/components/atoms/input/input.type.d.ts +21 -0
  122. package/dist/src/components/atoms/label/label.atom.d.ts +16 -0
  123. package/dist/src/components/atoms/label/label.stories.d.ts +5 -0
  124. package/dist/src/components/atoms/label/label.style.d.ts +1 -0
  125. package/dist/src/components/atoms/menubar/menubar-checkbox.item.d.ts +15 -0
  126. package/dist/src/components/atoms/menubar/menubar-content.d.ts +15 -0
  127. package/dist/src/components/atoms/menubar/menubar-group.d.ts +10 -0
  128. package/dist/src/components/atoms/menubar/menubar-item.d.ts +12 -0
  129. package/dist/src/components/atoms/menubar/menubar-menu.d.ts +23 -0
  130. package/dist/src/components/atoms/menubar/menubar-radio-item.d.ts +15 -0
  131. package/dist/src/components/atoms/menubar/menubar-seperator.d.ts +9 -0
  132. package/dist/src/components/atoms/menubar/menubar-shortcut.d.ts +5 -0
  133. package/dist/src/components/atoms/menubar/menubar.atom.d.ts +28 -0
  134. package/dist/src/components/atoms/menubar/menubar.stories.d.ts +4 -0
  135. package/dist/src/components/atoms/navigation-menu/navigation-menu-content.d.ts +16 -0
  136. package/dist/src/components/atoms/navigation-menu/navigation-menu-item.d.ts +23 -0
  137. package/dist/src/components/atoms/navigation-menu/navigation-menu-link.d.ts +7 -0
  138. package/dist/src/components/atoms/navigation-menu/navigation-menu-list.d.ts +6 -0
  139. package/dist/src/components/atoms/navigation-menu/navigation-menu.d.ts +20 -0
  140. package/dist/src/components/atoms/navigation-menu/navigation-menu.stories.d.ts +4 -0
  141. package/dist/src/components/atoms/pagination/pagination-content.d.ts +6 -0
  142. package/dist/src/components/atoms/pagination/pagination-ellipsis.d.ts +6 -0
  143. package/dist/src/components/atoms/pagination/pagination-item.d.ts +14 -0
  144. package/dist/src/components/atoms/pagination/pagination-link.d.ts +17 -0
  145. package/dist/src/components/atoms/pagination/pagination-next.d.ts +6 -0
  146. package/dist/src/components/atoms/pagination/pagination-previous.d.ts +6 -0
  147. package/dist/src/components/atoms/pagination/pagination.atom.d.ts +24 -0
  148. package/dist/src/components/atoms/pagination/pagination.stories.d.ts +4 -0
  149. package/dist/src/components/atoms/pagination/pagination.styles.d.ts +4 -0
  150. package/dist/src/components/atoms/pagination/pagination.type.d.ts +2 -0
  151. package/dist/src/components/atoms/popover/popover-content.d.ts +14 -0
  152. package/dist/src/components/atoms/popover/popover-trigger.d.ts +9 -0
  153. package/dist/src/components/atoms/popover/popover.atom.d.ts +18 -0
  154. package/dist/src/components/atoms/popover/popover.stories.d.ts +4 -0
  155. package/dist/src/components/atoms/popover/popover.style.d.ts +10 -0
  156. package/dist/src/components/atoms/popover/popover.types.d.ts +2 -0
  157. package/dist/src/components/atoms/radio-group/radio-group-item.d.ts +16 -0
  158. package/dist/src/components/atoms/radio-group/radio-group.atom.d.ts +16 -0
  159. package/dist/src/components/atoms/radio-group/radio-group.stories.d.ts +4 -0
  160. package/dist/src/components/atoms/radio-group/radio-group.types.d.ts +2 -0
  161. package/dist/src/components/atoms/sample-demo/sample-demo.d.ts +20 -0
  162. package/dist/src/components/atoms/sample-demo/sample.style.d.ts +4 -0
  163. package/dist/src/components/atoms/sample-demo/sample.type.d.ts +3 -0
  164. package/dist/src/components/atoms/select/select-group.d.ts +23 -0
  165. package/dist/src/components/atoms/select/select-item.d.ts +22 -0
  166. package/dist/src/components/atoms/select/select-label.d.ts +10 -0
  167. package/dist/src/components/atoms/select/select-list.d.ts +7 -0
  168. package/dist/src/components/atoms/select/select-seperator.d.ts +10 -0
  169. package/dist/src/components/atoms/select/select-trigger.d.ts +15 -0
  170. package/dist/src/components/atoms/select/select-value.d.ts +18 -0
  171. package/dist/src/components/atoms/select/select.atom.d.ts +24 -0
  172. package/dist/src/components/atoms/select/select.stories.d.ts +4 -0
  173. package/dist/src/components/atoms/seperator/separator.atom.d.ts +14 -0
  174. package/dist/src/components/atoms/seperator/separator.defs.d.ts +10 -0
  175. package/dist/src/components/atoms/seperator/separator.stories.d.ts +7 -0
  176. package/dist/src/components/atoms/switch/switch.atom.d.ts +14 -0
  177. package/dist/src/components/atoms/switch/switch.stories.d.ts +4 -0
  178. package/dist/src/components/atoms/switch/switch.type.d.ts +4 -0
  179. package/dist/src/components/atoms/textarea/textarea.atom.d.ts +22 -0
  180. package/dist/src/components/atoms/textarea/textarea.stories.d.ts +4 -0
  181. package/dist/src/components/atoms/textarea/textarea.styles.d.ts +1 -0
  182. package/dist/src/components/atoms/textarea/textarea.type.d.ts +11 -0
  183. package/dist/src/components/atoms/toast/toast-action.d.ts +19 -0
  184. package/dist/src/components/atoms/toast/toast-description.d.ts +10 -0
  185. package/dist/src/components/atoms/toast/toast-title.d.ts +10 -0
  186. package/dist/src/components/atoms/toast/toast-view-port.d.ts +17 -0
  187. package/dist/src/components/atoms/toast/toast.atom.d.ts +16 -0
  188. package/dist/src/components/atoms/toast/toast.stories.d.ts +5 -0
  189. package/dist/src/components/atoms/toast/toast.style.d.ts +9 -0
  190. package/dist/src/components/atoms/toast/toast.type.d.ts +1 -0
  191. package/dist/src/components/atoms/toggle/toggle.atom.d.ts +20 -0
  192. package/dist/src/components/atoms/toggle/toggle.defs.d.ts +27 -0
  193. package/dist/src/components/atoms/toggle/toggle.stories.d.ts +5 -0
  194. package/dist/src/components/atoms/toggle/toggle.style.d.ts +4 -0
  195. package/dist/src/components/index.d.ts +2 -0
  196. package/dist/src/components/molecules/breadcrumb/breadcrumb-ellipsis.d.ts +6 -0
  197. package/dist/src/components/molecules/breadcrumb/breadcrumb-item.d.ts +6 -0
  198. package/dist/src/components/molecules/breadcrumb/breadcrumb-link.d.ts +7 -0
  199. package/dist/src/components/molecules/breadcrumb/breadcrumb-list.d.ts +6 -0
  200. package/dist/src/components/molecules/breadcrumb/breadcrumb-separator.d.ts +6 -0
  201. package/dist/src/components/molecules/breadcrumb/breadcrumb-text.d.ts +6 -0
  202. package/dist/src/components/molecules/breadcrumb/breadcrumb.molecules.d.ts +6 -0
  203. package/dist/src/components/molecules/breadcrumb/breadcrumb.stories.d.ts +5 -0
  204. package/dist/src/components/molecules/breadcrumb/breadcrumb.styles.d.ts +6 -0
  205. package/dist/src/components/molecules/index.d.ts +11 -0
  206. package/dist/src/components/molecules/input-otp/input-otp-group.d.ts +14 -0
  207. package/dist/src/components/molecules/input-otp/input-otp-separator.d.ts +11 -0
  208. package/dist/src/components/molecules/input-otp/input-otp-slot.d.ts +25 -0
  209. package/dist/src/components/molecules/input-otp/input-otp.molecule.d.ts +23 -0
  210. package/dist/src/components/molecules/input-otp/input-otp.stories.d.ts +4 -0
  211. package/dist/src/components/molecules/tabs/tab-contents.d.ts +12 -0
  212. package/dist/src/components/molecules/tabs/tab-list.d.ts +14 -0
  213. package/dist/src/components/molecules/tabs/tab-trigger.d.ts +17 -0
  214. package/dist/src/components/molecules/tabs/tab.molecules.d.ts +15 -0
  215. package/dist/src/components/molecules/tabs/tab.stories.d.ts +14 -0
  216. package/dist/src/components/molecules/toggle-group/toggle-group-item.d.ts +17 -0
  217. package/dist/src/components/molecules/toggle-group/toggle-group.defs.d.ts +37 -0
  218. package/dist/src/components/molecules/toggle-group/toggle-group.molecules.d.ts +19 -0
  219. package/dist/src/components/molecules/toggle-group/toggle-group.stories.d.ts +4 -0
  220. package/dist/src/components/molecules/toggle-group/toggle-group.style.d.ts +4 -0
  221. package/dist/src/helpers/base-element.d.ts +10 -0
  222. package/dist/src/helpers/genrate-uuid.helper.d.ts +1 -0
  223. package/dist/src/helpers/index.d.ts +4 -0
  224. package/dist/src/helpers/mouse-conroller.helper.d.ts +14 -0
  225. package/dist/src/helpers/style.helpers.d.ts +2 -0
  226. package/dist/src/index.d.ts +2 -0
  227. package/dist/src/interfaces/actionable.interface.d.ts +5 -0
  228. package/dist/src/interfaces/atomic.interface.d.ts +6 -0
  229. package/dist/src/interfaces/changeable.interface.d.ts +7 -0
  230. package/dist/src/interfaces/child-support-atomic.interface.d.ts +4 -0
  231. package/dist/src/interfaces/index.d.ts +6 -0
  232. package/dist/src/interfaces/intractable.interface.d.ts +6 -0
  233. package/dist/src/interfaces/variant.interface.d.ts +3 -0
  234. package/dist/src/lib/index.d.ts +0 -0
  235. package/dist/src/lib/next/next.lib.d.ts +0 -0
  236. package/dist/src/lib/react/react.lib.d.ts +4 -0
  237. package/dist/src/lib/tw-styles.d.ts +1 -0
  238. package/dist/src/styles/index.d.ts +1 -0
  239. package/dist/src/styles/tw.styles.d.ts +1 -0
  240. package/dist/src/wc-ui-app.d.ts +6 -0
  241. package/package.json +135 -0
@@ -0,0 +1,17 @@
1
+ import { PropertyValues } from 'lit-element';
2
+ import { Tab } from './tab.molecules';
3
+ import { TabList } from './tab-list';
4
+ import { BaseElement } from '../../../helpers';
5
+ declare class TabsTrigger extends BaseElement {
6
+ defaultValue: string;
7
+ value: string;
8
+ onClickCallback?: (tabValue: string) => void;
9
+ static styles: import("lit-element").CSSResult[];
10
+ get _tab(): Tab | null;
11
+ get _tabList(): TabList | null;
12
+ protected firstUpdated(_changedProperties: PropertyValues): void;
13
+ handleClick: (event: Event) => void;
14
+ protected getAttributesToExclude(): string[];
15
+ render(): import("lit-html").TemplateResult<1>;
16
+ }
17
+ export { TabsTrigger };
@@ -0,0 +1,15 @@
1
+ import { PropertyValues } from 'lit-element';
2
+ import { BaseElement } from '../../../helpers';
3
+ declare class Tab extends BaseElement {
4
+ defaultValue: string;
5
+ tabindex: number;
6
+ twCLass: string;
7
+ static styles: import("lit-element").CSSResult[];
8
+ connectedCallback(): void;
9
+ disconnectedCallback(): void;
10
+ protected updated(_changedProperties: PropertyValues): void;
11
+ protected getAttributesToExclude(): string[];
12
+ raiseEvent(): void;
13
+ render(): import("lit-html").TemplateResult<1>;
14
+ }
15
+ export { Tab };
@@ -0,0 +1,14 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components';
2
+ export declare enum TAB_LIST {
3
+ /**
4
+ * @Default variant
5
+ */
6
+ ACCOUNT = "account",
7
+ /**
8
+ * @Outline variant
9
+ */
10
+ PASSWORD = "password"
11
+ }
12
+ declare const _default: Meta;
13
+ export default _default;
14
+ export declare const Tab: StoryFn;
@@ -0,0 +1,17 @@
1
+ import { LitElement } from 'lit-element';
2
+ import { TOGGLE_GROUP_VARIANT, TOGGLE_GROUP_SIZE } from './toggle-group.defs';
3
+ declare class ToggleGroupItem extends LitElement {
4
+ checked: boolean;
5
+ id: string;
6
+ variant: TOGGLE_GROUP_VARIANT;
7
+ size: TOGGLE_GROUP_SIZE;
8
+ disabled: boolean;
9
+ static styles: import("lit-element").CSSResult[];
10
+ static toggleGroupVariants: (props?: ({
11
+ variant?: "default" | "outline" | null | undefined;
12
+ size?: "sm" | "lg" | "md" | null | undefined;
13
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
+ protected getAttributesToExclude(): string[];
15
+ render(): import("lit-html").TemplateResult<1>;
16
+ }
17
+ export { ToggleGroupItem };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Toggle Group Type.
3
+ */
4
+ export declare enum TOGGLE_GROUP_TYPE {
5
+ /**
6
+ * @multiple Type
7
+ */
8
+ MULTIPLE = "multiple",
9
+ /**
10
+ * @medium size
11
+ */
12
+ SINGLE = "single"
13
+ }
14
+ export declare enum TOGGLE_GROUP_VARIANT {
15
+ /**
16
+ * @Default variant
17
+ */
18
+ DEFAULT = "default",
19
+ /**
20
+ * @Outline variant
21
+ */
22
+ OUTLINE = "outline"
23
+ }
24
+ export declare enum TOGGLE_GROUP_SIZE {
25
+ /**
26
+ * @Small size
27
+ */
28
+ SMALL = "sm",
29
+ /**
30
+ * @medium size
31
+ */
32
+ MEDIUM = "md",
33
+ /**
34
+ * @Large size
35
+ */
36
+ LARGE = "lg"
37
+ }
@@ -0,0 +1,19 @@
1
+ import { BaseElement } from '../../../helpers';
2
+ import { TOGGLE_GROUP_TYPE, TOGGLE_GROUP_VARIANT, TOGGLE_GROUP_SIZE } from './toggle-group.defs';
3
+ declare class ToggleGroup extends BaseElement {
4
+ twClass: string;
5
+ disabled: boolean;
6
+ type: TOGGLE_GROUP_TYPE;
7
+ required: boolean;
8
+ variant: TOGGLE_GROUP_VARIANT;
9
+ size: TOGGLE_GROUP_SIZE;
10
+ static styles: import("lit-element").CSSResult[];
11
+ protected getAttributesToExclude(): string[];
12
+ private selectedItems;
13
+ private childrenArray;
14
+ toggleSelection(itemId: string): void;
15
+ connectedCallback(): void;
16
+ firstUpdated(changedProperties: Map<string, unknown>): void;
17
+ render(): import("lit-html").TemplateResult<1>;
18
+ }
19
+ export { ToggleGroup, TOGGLE_GROUP_TYPE, TOGGLE_GROUP_VARIANT, TOGGLE_GROUP_SIZE, };
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryFn } from '@storybook/web-components';
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const toggle: StoryFn;
@@ -0,0 +1,4 @@
1
+ export declare const toggleGroupStyle: (props?: ({
2
+ variant?: "default" | "outline" | null | undefined;
3
+ size?: "sm" | "lg" | "md" | null | undefined;
4
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -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 @@
1
+ export declare function generateUUID(): string;
@@ -0,0 +1,4 @@
1
+ export * from './mouse-conroller.helper';
2
+ export * from './style.helpers';
3
+ export * from './base-element';
4
+ export * from './genrate-uuid.helper';
@@ -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,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,2 @@
1
+ import { Alert, AlertDescription, AlertTitle, Button, Badge, Input, Card, CardTitle, CardHeader, CardFooter, CardDescription, CardContent, Checkbox, ComboBox, Dialog, DialogContent, DialogClose, DialogFooter, DialogHeader, DialogOverlay, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuGroup, Popover, PopoverContent, PopoverTrigger, Toggle, ContextMenu, ContextMenuCheckboxItem, ContextMenuGroup, ContextMenuContent, ContextMenuItem, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, Select, SelectItem, SelectList, SelectLabel, SelectSeperator, Switch, RadioGroup, RadioGroupItem, Separator, AspectRatio, Menubar, MenubarContent, MenubarGroup, MenubarMenu, MenubarItem, MenubarRadioItem, MenubarCheckboxItem, MenubarSeparator, MenubarShortcut, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuLink, Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationEllipsis, PaginationNext, PaginationPrevious, Carousel, Calendar, DatePicker } from './components';
2
+ export { Alert, AlertDescription, AlertTitle, Button, Badge, Input, Card, CardTitle, CardHeader, CardFooter, CardDescription, CardContent, Checkbox, ComboBox, Dialog, DialogContent, DialogClose, DialogFooter, DialogHeader, DialogOverlay, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuGroup, Popover, PopoverContent, PopoverTrigger, Toggle, ContextMenu, ContextMenuCheckboxItem, ContextMenuGroup, ContextMenuContent, ContextMenuItem, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, Select, SelectItem, SelectList, SelectLabel, SelectSeperator, Switch, RadioGroup, RadioGroupItem, Separator, AspectRatio, Menubar, MenubarContent, MenubarGroup, MenubarMenu, MenubarItem, MenubarRadioItem, MenubarCheckboxItem, MenubarSeparator, MenubarShortcut, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuLink, Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationEllipsis, PaginationNext, PaginationPrevious, Carousel, Calendar, DatePicker, };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export type ActionableProps = Partial<{
3
+ onClick: (event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
4
+ onSubmit: (event?: React.FormEvent<HTMLFormElement>) => void;
5
+ }>;
@@ -0,0 +1,6 @@
1
+ export type AtomicProps = Partial<{
2
+ id: string;
3
+ className: string;
4
+ name: string;
5
+ title: string;
6
+ }>;
@@ -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,4 @@
1
+ import { AtomicProps } from './atomic.interface';
2
+ export type AtomicComponentWithChildren = {
3
+ children: React.ReactNode;
4
+ } & AtomicProps;
@@ -0,0 +1,6 @@
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';
@@ -0,0 +1,6 @@
1
+ export type IntractableProps<T = string> = Partial<{
2
+ isDisabled: boolean;
3
+ isChecked: boolean;
4
+ isReadOnly: boolean;
5
+ type: T;
6
+ }>;
@@ -0,0 +1,3 @@
1
+ export type VariantProps<T> = Partial<{
2
+ variant: T;
3
+ }>;
File without changes
File without changes
@@ -0,0 +1,4 @@
1
+ import { Button, Checkbox } from '../../components';
2
+ declare const ButtonReact: import("@lit-labs/react").ReactWebComponent<Button, {}>;
3
+ declare const CheckboxReact: import("@lit-labs/react").ReactWebComponent<Checkbox, {}>;
4
+ export { ButtonReact, CheckboxReact };
@@ -0,0 +1 @@
1
+ export declare const TWStyles: import("lit").CSSResult;
@@ -0,0 +1 @@
1
+ export * from './tw.styles';
@@ -0,0 +1 @@
1
+ export declare const TWStyles: import("lit").CSSResult;
@@ -0,0 +1,6 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class WcUiApp extends LitElement {
3
+ header: string;
4
+ static styles: import("lit").CSSResult;
5
+ render(): import("lit-html").TemplateResult<1>;
6
+ }
package/package.json ADDED
@@ -0,0 +1,135 @@
1
+ {
2
+ "name": "@revotech-group/revotech-ui-kit",
3
+ "description": "Webcomponent wc-ui following open-wc recommendations",
4
+ "license": "MIT",
5
+ "author": "wc-ui",
6
+ "version": "0.0.50",
7
+ "type": "module",
8
+ "main": "dist/revotech-ui-kit.umd.cjs",
9
+ "module": "./dist/revotech-ui-kit.js",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "types": "./dist/src/index.d.ts",
14
+ "scripts": {
15
+ "release": "npm version $(semver $npm_package_version -i major) && npm publish --tag latest",
16
+ "release:minor": "npm version $(semver $npm_package_version -i minor) && npm publish --tag latest",
17
+ "release:patch": "npm version $(semver $npm_package_version -i patch) && npm publish --tag latest",
18
+ "release:beta": "npm version $(semver $npm_package_version -i prerelease --preid $(npm whoami) ) && npm publish --tag beta",
19
+ "clean": "rimraf dist",
20
+ "copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.js dist/public/",
21
+ "lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
22
+ "format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
23
+ "test": "tsc && wtr --coverage",
24
+ "test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
25
+ "storybook": "storybook dev -p 6006",
26
+ "test-storybook": "test-storybook",
27
+ "storybook:build": "storybook build",
28
+ "build-storybook": "storybook build",
29
+ "link:dev": "npm run build:prod && npm link",
30
+ "dev": "vite",
31
+ "build": "npm run clean & vite build",
32
+ "preview": "vite preview",
33
+ "analyze": "cem analyze --litelement",
34
+ "tw:watch": "concurrently \"tailwindcss -i ./src/tailwind-lib.css -o ./src/globals.css --watch\" \"twlit --input ./src/globals.css --output ./src/styles/tw.styles.ts \""
35
+ },
36
+ "dependencies": {
37
+ "@lit-labs/react": "^1.2.0",
38
+ "@open-wc/lit-helpers": "^0.7.0",
39
+ "@storybook/addon-essentials": "^8.0.0",
40
+ "@storybook/addon-links": "^8.0.0",
41
+ "@storybook/web-components": "^8.0.0",
42
+ "@storybook/web-components-vite": "^8.0.0",
43
+ "class-variance-authority": "^0.7.0",
44
+ "clsx": "^2.1.0",
45
+ "husky": "^9.1.4",
46
+ "lit": "^3.1.2",
47
+ "playwright": "^1.47.1",
48
+ "react": "^18.3.1",
49
+ "storybook": "^8.3.4",
50
+ "tailwind-merge": "^2.2.1",
51
+ "tailwindcss-animate": "^1.0.7",
52
+ "vite": "^4.3.2",
53
+ "vite-plugin-dts": "^3.6.0",
54
+ "vite-plugin-html-config": "^1.0.11"
55
+ },
56
+ "devDependencies": {
57
+ "@babel/preset-env": "^7.16.4",
58
+ "@chromatic-com/storybook": "^1.9.0",
59
+ "@custom-elements-manifest/analyzer": "^0.4.17",
60
+ "@open-wc/eslint-config": "^9.2.1",
61
+ "@open-wc/testing": "^3.1.6",
62
+ "@storybook/addon-interactions": "^8.2.9",
63
+ "@storybook/blocks": "^8.2.9",
64
+ "@storybook/builder-vite": "^8.0.0",
65
+ "@storybook/jest": "^0.2.3",
66
+ "@storybook/test": "^8.2.9",
67
+ "@storybook/test-runner": "^0.19.1",
68
+ "@storybook/testing-library": "^0.2.2",
69
+ "@testing-library/dom": "^10.4.0",
70
+ "@testing-library/jest-dom": "^6.4.8",
71
+ "@typescript-eslint/eslint-plugin": "^5.48.0",
72
+ "@typescript-eslint/parser": "^5.48.0",
73
+ "@web/dev-server": "^0.1.34",
74
+ "@web/dev-server-storybook": "^0.5.4",
75
+ "@web/test-runner": "^0.14.0",
76
+ "babel-plugin-template-html-minifier": "^4.1.0",
77
+ "concurrently": "^5.3.0",
78
+ "copyfiles": "^2.4.1",
79
+ "deepmerge": "^4.2.2",
80
+ "eslint": "^8.31.0",
81
+ "eslint-config-prettier": "^8.3.0",
82
+ "eslint-plugin-storybook": "^0.8.0",
83
+ "lint-staged": "^10.5.4",
84
+ "prettier": "^2.4.1",
85
+ "rimraf": "^3.0.2",
86
+ "tailwindcss": "^3.4.1",
87
+ "tslib": "^2.3.1",
88
+ "twlit": "^0.0.1-alpha.37",
89
+ "typescript": "^5.3.3"
90
+ },
91
+ "eslintConfig": {
92
+ "parser": "@typescript-eslint/parser",
93
+ "extends": [
94
+ "@open-wc",
95
+ "prettier",
96
+ "plugin:storybook/recommended"
97
+ ],
98
+ "plugins": [
99
+ "@typescript-eslint"
100
+ ],
101
+ "rules": {
102
+ "no-unused-vars": "off",
103
+ "@typescript-eslint/no-unused-vars": [
104
+ "error"
105
+ ],
106
+ "import/no-unresolved": "off",
107
+ "import/extensions": [
108
+ "error",
109
+ "always",
110
+ {
111
+ "ignorePackages": true
112
+ }
113
+ ],
114
+ "max-classes-per-file": [
115
+ "error",
116
+ {
117
+ "ignoreExpressions": true,
118
+ "max": 10
119
+ }
120
+ ],
121
+ "no-plusplus": "off"
122
+ }
123
+ },
124
+ "prettier": {
125
+ "singleQuote": true,
126
+ "arrowParens": "avoid"
127
+ },
128
+ "lint-staged": {
129
+ "*.ts": [
130
+ "eslint --fix",
131
+ "prettier --write"
132
+ ]
133
+ },
134
+ "customElements": "custom-elements.json"
135
+ }