revotech-ui-kit 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. package/dist/revotech-ui-kit.js +2766 -1145
  2. package/dist/revotech-ui-kit.umd.cjs +745 -144
  3. package/dist/src/assets/icons/arrow-up-circle.icon.d.ts +1 -0
  4. package/dist/src/assets/icons/chorven-down.icon.d.ts +1 -0
  5. package/dist/src/assets/icons/circle-check.icon.d.ts +1 -0
  6. package/dist/src/assets/icons/circle-x.icon.d.ts +1 -0
  7. package/dist/src/assets/icons/circle.icon.d.ts +1 -0
  8. package/dist/src/assets/icons/help-circle.icon.d.ts +1 -0
  9. package/dist/src/assets/icons/index.d.ts +8 -0
  10. package/dist/src/assets/icons/radio-group.icon.d.ts +1 -0
  11. package/dist/src/assets/icons/radio.icon.d.ts +1 -0
  12. package/dist/src/components/atoms/accordion/accordion-content.d.ts +12 -0
  13. package/dist/src/components/atoms/accordion/accordion-item.d.ts +22 -0
  14. package/dist/src/components/atoms/accordion/accordion-trigger.d.ts +17 -0
  15. package/dist/src/components/atoms/accordion/accordion.atoms.d.ts +23 -0
  16. package/dist/src/components/atoms/accordion/accordion.defs.d.ts +10 -0
  17. package/dist/{components/atoms/button/button.stories.d.ts → src/components/atoms/accordion/accordion.stories.d.ts} +1 -1
  18. package/dist/src/components/atoms/button/button.atom.d.ts +2 -0
  19. package/dist/src/components/atoms/checkbox/checkbox.stories.d.ts +1 -1
  20. package/dist/{components/atoms/combo-box → src/components/atoms/combobox}/combo-box-input.d.ts +5 -0
  21. package/dist/src/components/atoms/{combo-box → combobox}/combo-box-item.d.ts +5 -0
  22. package/dist/{components/atoms/combo-box → src/components/atoms/combobox}/combo-box-list.d.ts +5 -0
  23. package/dist/src/components/atoms/{combo-box → combobox}/combo-box.atom.d.ts +3 -0
  24. package/dist/src/components/atoms/command/command-item.atom.d.ts +4 -3
  25. package/dist/src/components/atoms/command/command.stories.d.ts +3 -2
  26. package/dist/src/components/atoms/{dropdownMenu/dropdown-menu-checkbox-Item.d.ts → context-menu/context-menu-checkbox-Item.d.ts} +1 -1
  27. package/dist/src/components/atoms/{dropdownMenu/dropdown-menu-content.d.ts → context-menu/context-menu-content.d.ts} +3 -3
  28. package/dist/{components/atoms/command/command-group.atom.d.ts → src/components/atoms/context-menu/context-menu-group.d.ts} +1 -1
  29. package/dist/{components/atoms/command/command-item.atom.d.ts → src/components/atoms/context-menu/context-menu-item.d.ts} +1 -1
  30. package/dist/src/components/atoms/{dropdownMenu/dropdown-menu-radio-item.d.ts → context-menu/context-menu-radio-item.d.ts} +1 -1
  31. package/dist/{components/atoms/command/command-separator.atom.d.ts → src/components/atoms/context-menu/context-menu-seperator.d.ts} +1 -1
  32. package/dist/{components/atoms/card/card-header.d.ts → src/components/atoms/context-menu/context-menu-shortcut.d.ts} +1 -1
  33. package/dist/src/components/atoms/context-menu/context-menu.atom.d.ts +34 -0
  34. package/dist/src/components/atoms/context-menu/contextMenu.stories.d.ts +5 -0
  35. package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu.atom.d.ts +1 -0
  36. package/dist/src/components/atoms/dropdown-menu/dropdownMenu.style.d.ts +2 -0
  37. package/dist/src/components/atoms/index.d.ts +9 -2
  38. package/dist/src/components/atoms/input/input.styles.d.ts +1 -1
  39. package/dist/src/components/atoms/popover/popover-content.d.ts +2 -1
  40. package/dist/src/components/atoms/popover/popover-trigger.d.ts +2 -2
  41. package/dist/src/components/atoms/popover/popover.style.d.ts +4 -0
  42. package/dist/{components/atoms/checkbox/checkbox.atom.d.ts → src/components/atoms/radio-group/radio-group-item.d.ts} +5 -7
  43. package/dist/src/components/atoms/radio-group/radio-group.atom.d.ts +16 -0
  44. package/dist/src/components/atoms/radio-group/radio-group.stories.d.ts +5 -0
  45. package/dist/src/components/atoms/radio-group/radio-group.types.d.ts +2 -0
  46. package/dist/src/components/atoms/sample-demo/sample-demo.d.ts +21 -0
  47. package/dist/src/components/atoms/sample-demo/sample.style.d.ts +4 -0
  48. package/dist/src/components/atoms/sample-demo/sample.type.d.ts +3 -0
  49. package/dist/{components/atoms/combo-box/combo-box-item.d.ts → src/components/atoms/select/select-item.d.ts} +1 -1
  50. package/dist/{components/atoms/card/card-footer.d.ts → src/components/atoms/select/select-label.d.ts} +1 -1
  51. package/dist/{components/atoms/card/card-content.d.ts → src/components/atoms/select/select-list.d.ts} +3 -1
  52. package/dist/{components/atoms/command/command-empty.atom.d.ts → src/components/atoms/select/select-seperator.d.ts} +1 -1
  53. package/dist/{components/atoms/combo-box/combo-box.atom.d.ts → src/components/atoms/select/select.atom.d.ts} +12 -6
  54. package/dist/src/components/atoms/select/select.stories.d.ts +6 -0
  55. package/dist/src/components/atoms/seperator/separator.atom.d.ts +14 -0
  56. package/dist/src/components/atoms/seperator/separator.defs.d.ts +10 -0
  57. package/dist/{components/atoms/dialog/dialog.stories.d.ts → src/components/atoms/seperator/separator.stories.d.ts} +3 -2
  58. package/dist/src/components/atoms/switch/switch.atom.d.ts +14 -0
  59. package/dist/src/components/atoms/switch/switch.stories.d.ts +5 -0
  60. package/dist/src/components/atoms/switch/switch.type.d.ts +4 -0
  61. package/dist/src/components/atoms/toggle/toggle.atom.d.ts +1 -1
  62. package/dist/{components/atoms/toggle/defs.d.ts → src/components/atoms/toggle/toggle.defs.d.ts} +5 -5
  63. package/dist/src/components/molecules/breadcrumb/breadcrumb.stories.d.ts +6 -0
  64. package/dist/src/components/molecules/index.d.ts +7 -7
  65. package/dist/src/components/molecules/tabs/tab-contents.d.ts +13 -0
  66. package/dist/src/components/molecules/tabs/tab-list.d.ts +15 -0
  67. package/dist/src/components/molecules/tabs/tab-trigger.d.ts +18 -0
  68. package/dist/src/components/molecules/tabs/tab.molecules.d.ts +15 -0
  69. package/dist/src/components/molecules/tabs/tab.stories.d.ts +15 -0
  70. package/dist/src/components/molecules/toggle-group/toggle-group-item.d.ts +1 -1
  71. package/dist/src/components/molecules/toggle-group/{defs.d.ts → toggle-group.defs.d.ts} +7 -7
  72. package/dist/src/components/molecules/toggle-group/toggle-group.molecules.d.ts +1 -1
  73. package/dist/src/index.d.ts +2 -2
  74. package/package.json +7 -11
  75. package/dist/assets/icons/arrows.icon.d.ts +0 -1
  76. package/dist/assets/icons/index.d.ts +0 -3
  77. package/dist/assets/icons/search.icon.d.ts +0 -1
  78. package/dist/assets/icons/tick.icon.d.ts +0 -1
  79. package/dist/components/atoms/alert/alert-description.d.ts +0 -6
  80. package/dist/components/atoms/alert/alert-title.d.ts +0 -6
  81. package/dist/components/atoms/alert/alert.atom.d.ts +0 -23
  82. package/dist/components/atoms/alert/alert.stories.d.ts +0 -6
  83. package/dist/components/atoms/alert/alert.styles.d.ts +0 -4
  84. package/dist/components/atoms/alert/alert.types.d.ts +0 -1
  85. package/dist/components/atoms/badge/badge.atom.d.ts +0 -17
  86. package/dist/components/atoms/badge/badge.stories.d.ts +0 -6
  87. package/dist/components/atoms/badge/badge.style.d.ts +0 -3
  88. package/dist/components/atoms/badge/badge.type.d.ts +0 -1
  89. package/dist/components/atoms/button/button.atom.d.ts +0 -23
  90. package/dist/components/atoms/button/button.style.d.ts +0 -4
  91. package/dist/components/atoms/button/button.type.d.ts +0 -3
  92. package/dist/components/atoms/card/card-description.d.ts +0 -6
  93. package/dist/components/atoms/card/card-title.d.ts +0 -6
  94. package/dist/components/atoms/card/card.atom.d.ts +0 -22
  95. package/dist/components/atoms/card/card.stories.d.ts +0 -6
  96. package/dist/components/atoms/checkbox/checkbox.stories.d.ts +0 -7
  97. package/dist/components/atoms/checkbox/checkbox.style.d.ts +0 -2
  98. package/dist/components/atoms/checkbox/checkbox.type.d.ts +0 -21
  99. package/dist/components/atoms/combo-box/combo-box.stories.d.ts +0 -6
  100. package/dist/components/atoms/command/command-input.atom.d.ts +0 -11
  101. package/dist/components/atoms/command/command-list.atom.d.ts +0 -7
  102. package/dist/components/atoms/command/command.atom.d.ts +0 -7
  103. package/dist/components/atoms/command/command.stories.d.ts +0 -5
  104. package/dist/components/atoms/dialog/dialog-close.d.ts +0 -13
  105. package/dist/components/atoms/dialog/dialog-content.d.ts +0 -9
  106. package/dist/components/atoms/dialog/dialog-footer.d.ts +0 -6
  107. package/dist/components/atoms/dialog/dialog-header.d.ts +0 -8
  108. package/dist/components/atoms/dialog/dialog-overly.d.ts +0 -6
  109. package/dist/components/atoms/dialog/dialog-trigger.d.ts +0 -9
  110. package/dist/components/atoms/dialog/dialog.atom.d.ts +0 -25
  111. package/dist/components/atoms/dropdownMenu/dropdownMenu.stories.d.ts +0 -7
  112. package/dist/components/atoms/dropdownMenu/dropdownMenu.style.d.ts +0 -2
  113. package/dist/components/atoms/index.d.ts +0 -19
  114. package/dist/components/atoms/input/input.atom.d.ts +0 -22
  115. package/dist/components/atoms/input/input.stories.d.ts +0 -6
  116. package/dist/components/atoms/input/input.styles.d.ts +0 -1
  117. package/dist/components/atoms/input/input.type.d.ts +0 -21
  118. package/dist/components/atoms/label/label.atom.d.ts +0 -17
  119. package/dist/components/atoms/label/label.stories.d.ts +0 -6
  120. package/dist/components/atoms/label/label.style.d.ts +0 -1
  121. package/dist/components/atoms/popover/popover-content.d.ts +0 -12
  122. package/dist/components/atoms/popover/popover-trigger.d.ts +0 -10
  123. package/dist/components/atoms/popover/popover.atom.d.ts +0 -19
  124. package/dist/components/atoms/popover/popover.stories.d.ts +0 -5
  125. package/dist/components/atoms/popover/popover.style.d.ts +0 -5
  126. package/dist/components/atoms/popover/popover.types.d.ts +0 -2
  127. package/dist/components/atoms/textarea/textarea.atom.d.ts +0 -17
  128. package/dist/components/atoms/textarea/textarea.stories.d.ts +0 -5
  129. package/dist/components/atoms/textarea/textarea.styles.d.ts +0 -1
  130. package/dist/components/atoms/textarea/textarea.type.d.ts +0 -11
  131. package/dist/components/atoms/toggle/toggle.atom.d.ts +0 -20
  132. package/dist/components/atoms/toggle/toggle.stories.d.ts +0 -6
  133. package/dist/components/atoms/toggle/toggle.style.d.ts +0 -4
  134. package/dist/components/index.d.ts +0 -2
  135. package/dist/components/molecules/breadCrumb/breadCrumb.stories.d.ts +0 -5
  136. package/dist/components/molecules/index.d.ts +0 -7
  137. package/dist/components/molecules/toggle-group/defs.d.ts +0 -37
  138. package/dist/components/molecules/toggle-group/toggle-group-item.d.ts +0 -18
  139. package/dist/components/molecules/toggle-group/toggle-group.molecules.d.ts +0 -19
  140. package/dist/components/molecules/toggle-group/toggle-group.stories.d.ts +0 -5
  141. package/dist/components/molecules/toggle-group/toggle-group.style.d.ts +0 -4
  142. package/dist/helpers/base-element.d.ts +0 -11
  143. package/dist/helpers/index.d.ts +0 -3
  144. package/dist/helpers/mouse-conroller.helper.d.ts +0 -15
  145. package/dist/helpers/style.helpers.d.ts +0 -3
  146. package/dist/index.d.ts +0 -3
  147. package/dist/interfaces/actionable.interface.d.ts +0 -6
  148. package/dist/interfaces/atomic.interface.d.ts +0 -6
  149. package/dist/interfaces/changeable.interface.d.ts +0 -8
  150. package/dist/interfaces/child-support-atomic.interface.d.ts +0 -5
  151. package/dist/interfaces/index.d.ts +0 -6
  152. package/dist/interfaces/intractable.interface.d.ts +0 -6
  153. package/dist/interfaces/variant.interface.d.ts +0 -3
  154. package/dist/lib/index.d.ts +0 -0
  155. package/dist/lib/next/next.lib.d.ts +0 -0
  156. package/dist/lib/react/react.lib.d.ts +0 -3
  157. package/dist/lib/tw-styles.d.ts +0 -1
  158. package/dist/src/components/atoms/combo-box/combo-box-input.d.ts +0 -9
  159. package/dist/src/components/atoms/combo-box/combo-box-list.d.ts +0 -10
  160. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.d.ts +0 -11
  161. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.d.ts +0 -13
  162. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.d.ts +0 -10
  163. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.d.ts +0 -6
  164. package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.d.ts +0 -31
  165. package/dist/src/components/atoms/toggle/defs.d.ts +0 -27
  166. package/dist/src/components/molecules/breadCrumb/Breadcrumb-link.d.ts +0 -8
  167. package/dist/src/components/molecules/breadCrumb/breadCrumb.stories.d.ts +0 -5
  168. package/dist/src/components/molecules/breadCrumb/breadcrumb-ellipsis.d.ts +0 -7
  169. package/dist/src/components/molecules/breadCrumb/breadcrumb-item.d.ts +0 -7
  170. package/dist/src/components/molecules/breadCrumb/breadcrumb-list.d.ts +0 -7
  171. package/dist/src/components/molecules/breadCrumb/breadcrumb-separator.d.ts +0 -7
  172. package/dist/src/components/molecules/breadCrumb/breadcrumb-text.d.ts +0 -7
  173. package/dist/src/components/molecules/breadCrumb/breadcrumb.molecules.d.ts +0 -7
  174. package/dist/src/components/molecules/breadCrumb/breadcrumb.styles.d.ts +0 -6
  175. package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.d.ts +0 -0
  176. package/dist/styles/index.d.ts +0 -1
  177. package/dist/styles/tw.styles.d.ts +0 -1
  178. package/dist/wc-ui-app.d.ts +0 -7
  179. /package/dist/{components/molecules/dropdownMenu/dropdownMenu.molecules.d.ts → src/components/atoms/accordion/accordion.styles.d.ts} +0 -0
  180. /package/dist/src/components/atoms/{combo-box → combobox}/combo-box.stories.d.ts +0 -0
  181. /package/dist/src/components/atoms/{dropdownMenu/dropdownMenu.style.d.ts → context-menu/contextMenu.style.d.ts} +0 -0
  182. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-checkbox-Item.d.ts +0 -0
  183. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-content.d.ts +0 -0
  184. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-group.d.ts +0 -0
  185. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-item.d.ts +0 -0
  186. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-radio-item.d.ts +0 -0
  187. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-seperator.d.ts +0 -0
  188. /package/dist/{components/atoms/dropdownMenu → src/components/atoms/dropdown-menu}/dropdown-menu-shortcut.d.ts +0 -0
  189. /package/dist/src/components/atoms/{dropdownMenu → dropdown-menu}/dropdownMenu.stories.d.ts +0 -0
  190. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-ellipsis.d.ts +0 -0
  191. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-item.d.ts +0 -0
  192. /package/dist/{components/molecules/breadCrumb/Breadcrumb-link.d.ts → src/components/molecules/breadcrumb/breadcrumb-link.d.ts} +0 -0
  193. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-list.d.ts +0 -0
  194. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-separator.d.ts +0 -0
  195. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb-text.d.ts +0 -0
  196. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb.molecules.d.ts +0 -0
  197. /package/dist/{components/molecules/breadCrumb → src/components/molecules/breadcrumb}/breadcrumb.styles.d.ts +0 -0
@@ -0,0 +1,14 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ export declare class Switch extends LitElement {
4
+ checked: boolean;
5
+ disabled: boolean;
6
+ static styles: import('lit').CSSResult[];
7
+ private _toggleChecked;
8
+ render(): import('lit-html').TemplateResult<1>;
9
+ }
10
+ declare global {
11
+ interface HTMLElementTagNameMap {
12
+ 'rtg-switch': Switch;
13
+ }
14
+ }
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components';
2
+
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const Switch: StoryFn;
@@ -0,0 +1,4 @@
1
+ export type SwitchArgs = {
2
+ disabled: boolean;
3
+ checked: boolean;
4
+ };
@@ -1,4 +1,4 @@
1
- import { TOGGLE_SIZE, TOGGLE_VARIANT } from './defs';
1
+ import { TOGGLE_SIZE, TOGGLE_VARIANT } from './toggle.defs';
2
2
  import { BaseElement } from '../../../helpers';
3
3
 
4
4
  export { TOGGLE_SIZE, TOGGLE_VARIANT };
@@ -3,25 +3,25 @@
3
3
  */
4
4
  export declare enum TOGGLE_SIZE {
5
5
  /**
6
- * Small size
6
+ * @Small size
7
7
  */
8
8
  SMALL = "sm",
9
9
  /**
10
- * medium size
10
+ * @medium size
11
11
  */
12
12
  MEDIUM = "md",
13
13
  /**
14
- * Large size
14
+ * @Large size
15
15
  */
16
16
  LARGE = "lg"
17
17
  }
18
18
  export declare enum TOGGLE_VARIANT {
19
19
  /**
20
- * Default variant
20
+ * @Default variant
21
21
  */
22
22
  DEFAULT = "default",
23
23
  /**
24
- * Outline variant
24
+ * @Outline variant
25
25
  */
26
26
  OUTLINE = "outline"
27
27
  }
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components';
2
+
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const BreadCrumb: StoryFn;
6
+ export declare const BreadCrumbWithDropdown: StoryFn;
@@ -1,7 +1,7 @@
1
- export * from './breadCrumb/Breadcrumb-link';
2
- export * from './breadCrumb/breadcrumb-ellipsis';
3
- export * from './breadCrumb/breadcrumb-item';
4
- export * from './breadCrumb/breadcrumb-list';
5
- export * from './breadCrumb/breadcrumb-separator';
6
- export * from './breadCrumb/breadcrumb.molecules';
7
- export * from './breadCrumb/breadcrumb-text';
1
+ export * from './breadcrumb/breadcrumb-ellipsis';
2
+ export * from './breadcrumb/breadcrumb-item';
3
+ export * from './breadcrumb/breadcrumb-list';
4
+ export * from './breadcrumb/breadcrumb-separator';
5
+ export * from './breadcrumb/breadcrumb.molecules';
6
+ export * from './breadcrumb/breadcrumb-text';
7
+ export * from './breadcrumb/breadcrumb-link';
@@ -0,0 +1,13 @@
1
+ import { LitElement, PropertyValues } from 'lit-element';
2
+ import { Tab } from './tab.molecules';
3
+
4
+ declare class TabContent extends LitElement {
5
+ value: string;
6
+ selectedValue: string;
7
+ get _tab(): Tab | null;
8
+ protected updated(_changedProperties: PropertyValues): void;
9
+ connectedCallback(): void;
10
+ disconnectedCallback(): void;
11
+ render(): import('lit-html').TemplateResult<1>;
12
+ }
13
+ export { TabContent };
@@ -0,0 +1,15 @@
1
+ import { BaseElement } from '../../../helpers';
2
+ import { Tab } from './tab.molecules';
3
+
4
+ declare class TabList extends BaseElement {
5
+ tabindex: number;
6
+ static styles: import('lit-element').CSSResult[];
7
+ get _tab(): Tab | null;
8
+ protected getAttributesToExclude(): string[];
9
+ connectedCallback(): void;
10
+ disconnectedCallback(): void;
11
+ changeTabs(currentValue: string): void;
12
+ getChildren(): Node[];
13
+ render(): import('lit-html').TemplateResult<1>;
14
+ }
15
+ export { TabList };
@@ -0,0 +1,18 @@
1
+ import { PropertyValues } from 'lit-element';
2
+ import { Tab } from './tab.molecules';
3
+ import { TabList } from './tab-list';
4
+ import { BaseElement } from '../../../helpers';
5
+
6
+ declare class TabsTrigger extends BaseElement {
7
+ defaultValue: string;
8
+ value: string;
9
+ onClickCallback?: (tabValue: string) => void;
10
+ static styles: import('lit-element').CSSResult[];
11
+ get _tab(): Tab | null;
12
+ get _tabList(): TabList | null;
13
+ protected firstUpdated(_changedProperties: PropertyValues): void;
14
+ handleClick: (event: Event) => void;
15
+ protected getAttributesToExclude(): string[];
16
+ render(): import('lit-html').TemplateResult<1>;
17
+ }
18
+ export { TabsTrigger };
@@ -0,0 +1,15 @@
1
+ import { PropertyValues } from 'lit-element';
2
+ import { BaseElement } from '../../../helpers';
3
+
4
+ declare class Tab extends BaseElement {
5
+ defaultValue: string;
6
+ tabindex: number;
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,15 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components';
2
+
3
+ export declare enum TAB_LIST {
4
+ /**
5
+ * @Default variant
6
+ */
7
+ ACCOUNT = "account",
8
+ /**
9
+ * @Outline variant
10
+ */
11
+ PASSWORD = "password"
12
+ }
13
+ declare const _default: Meta;
14
+ export default _default;
15
+ export declare const Tab: StoryFn;
@@ -1,5 +1,5 @@
1
1
  import { LitElement } from 'lit-element';
2
- import { TOGGLE_GROUP_VARIANT, TOGGLE_GROUP_SIZE } from './defs';
2
+ import { TOGGLE_GROUP_VARIANT, TOGGLE_GROUP_SIZE } from './toggle-group.defs';
3
3
 
4
4
  declare class ToggleGroupItem extends LitElement {
5
5
  checked: boolean;
@@ -3,35 +3,35 @@
3
3
  */
4
4
  export declare enum TOGGLE_GROUP_TYPE {
5
5
  /**
6
- * multiple Type
6
+ * @multiple Type
7
7
  */
8
8
  MULTIPLE = "multiple",
9
9
  /**
10
- * medium size
10
+ * @medium size
11
11
  */
12
12
  SINGLE = "single"
13
13
  }
14
14
  export declare enum TOGGLE_GROUP_VARIANT {
15
15
  /**
16
- * Default variant
16
+ * @Default variant
17
17
  */
18
18
  DEFAULT = "default",
19
19
  /**
20
- * Outline variant
20
+ * @Outline variant
21
21
  */
22
22
  OUTLINE = "outline"
23
23
  }
24
24
  export declare enum TOGGLE_GROUP_SIZE {
25
25
  /**
26
- * Small size
26
+ * @Small size
27
27
  */
28
28
  SMALL = "sm",
29
29
  /**
30
- * medium size
30
+ * @medium size
31
31
  */
32
32
  MEDIUM = "md",
33
33
  /**
34
- * Large size
34
+ * @Large size
35
35
  */
36
36
  LARGE = "lg"
37
37
  }
@@ -1,5 +1,5 @@
1
1
  import { BaseElement } from '../../../helpers';
2
- import { TOGGLE_GROUP_TYPE, TOGGLE_GROUP_VARIANT, TOGGLE_GROUP_SIZE } from './defs';
2
+ import { TOGGLE_GROUP_TYPE, TOGGLE_GROUP_VARIANT, TOGGLE_GROUP_SIZE } from './toggle-group.defs';
3
3
 
4
4
  declare class ToggleGroup extends BaseElement {
5
5
  disabled: boolean;
@@ -1,3 +1,3 @@
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 } from './components';
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 } from './components';
2
2
 
3
- 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, };
3
+ 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, };
package/package.json CHANGED
@@ -3,25 +3,20 @@
3
3
  "description": "Webcomponent wc-ui following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "wc-ui",
6
- "version": "0.0.15",
6
+ "version": "0.0.16",
7
7
  "type": "module",
8
8
  "main": "dist/revotech-ui-kit.umd.cjs",
9
9
  "module": "./dist/revotech-ui-kit.js",
10
10
  "files": [
11
11
  "dist"
12
12
  ],
13
-
14
13
  "types": "./dist/src/index.d.ts",
15
14
  "scripts": {
16
15
  "release": "npm version $(semver $npm_package_version -i major) && npm publish --tag latest",
17
16
  "release:minor": "npm version $(semver $npm_package_version -i minor) && npm publish --tag latest",
18
17
  "release:patch": "npm version $(semver $npm_package_version -i patch) && npm publish --tag latest",
19
18
  "release:beta": "npm version $(semver $npm_package_version -i prerelease --preid $(npm whoami) ) && npm publish --tag beta",
20
- "link:dev": "npm run build:prod && npm link",
21
- "build:dev": "vite build",
22
19
  "clean": "rimraf dist",
23
- "preview": "vite preview",
24
- "dev": "vite",
25
20
  "copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.js dist/public/",
26
21
  "lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
27
22
  "format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
@@ -30,12 +25,13 @@
30
25
  "storybook": "storybook dev -p 6006",
31
26
  "test-storybook": "test-storybook",
32
27
  "storybook:build": "storybook build",
33
- "build": "npm run clean && tsc && rollup -c rollup.config.js && npm run copy-files && npm run analyze -- --exclude dist",
34
- "start:build": "web-dev-server --root-dir dist --app-index index.html --open",
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",
35
33
  "analyze": "cem analyze --litelement",
36
- "start": "npm run clean && tsc && npm run copy-files && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
37
- "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 \"",
38
- "build-storybook": "storybook build"
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 \""
39
35
  },
40
36
  "dependencies": {
41
37
  "@lit-labs/react": "^1.2.0",
@@ -1 +0,0 @@
1
- export declare function arrowsIcon(): import('lit-html').TemplateResult<2>;
@@ -1,3 +0,0 @@
1
- export * from './arrows.icon';
2
- export * from './tick.icon';
3
- export * from './search.icon';
@@ -1 +0,0 @@
1
- export declare function searchIcon(): import('lit-html').TemplateResult<2>;
@@ -1 +0,0 @@
1
- export declare function tickIcon(): import('lit-html').TemplateResult<2>;
@@ -1,6 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class AlertDescription extends LitElement {
4
- static styles: import('lit').CSSResult;
5
- render(): import('lit-html').TemplateResult<1>;
6
- }
@@ -1,6 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class AlertTitle extends LitElement {
4
- static styles: import('lit').CSSResult;
5
- render(): import('lit-html').TemplateResult<1>;
6
- }
@@ -1,23 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import { AlertTitle } from './alert-title';
3
- import { AlertDescription } from './alert-description';
4
-
5
- declare class Alert extends LitElement {
6
- static styles: import('lit').CSSResult[];
7
- static alertVairants: (props?: {
8
- variant?: "error" | "success" | "warning" | "info";
9
- size?: "small" | "default" | "large";
10
- } & import('class-variance-authority/dist/types').ClassProp) => string;
11
- variant: 'success' | 'error' | 'warning' | 'info';
12
- size: 'default' | 'large' | 'small';
13
- private get alertClasses();
14
- render(): import('lit-html').TemplateResult<1>;
15
- }
16
- export { Alert, AlertDescription, AlertTitle };
17
- declare global {
18
- interface HTMLElementTagNameMap {
19
- 'rtg-alert': Alert;
20
- 'rtg-alert-description': AlertDescription;
21
- 'rtg-alert-title': AlertTitle;
22
- }
23
- }
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components';
2
-
3
- declare const _default: Meta;
4
- export default _default;
5
- type Story = StoryObj;
6
- export declare const AlertStory: Story;
@@ -1,4 +0,0 @@
1
- export declare const alertStyle: (props?: {
2
- variant?: "error" | "success" | "warning" | "info";
3
- size?: "small" | "default" | "large";
4
- } & import('class-variance-authority/dist/types').ClassProp) => string;
@@ -1 +0,0 @@
1
- export {};
@@ -1,17 +0,0 @@
1
- import { BaseElement } from '../../../helpers';
2
-
3
- import * as badgeType from './badge.type';
4
- export declare class Badge extends BaseElement {
5
- static badgeVariants: (props?: {
6
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
7
- } & import('class-variance-authority/dist/types').ClassProp) => string;
8
- variant: badgeType.BadgeVariant;
9
- static styles: import('lit').CSSResult[];
10
- protected getAttributesToExclude(): string[];
11
- render(): import('lit-html').TemplateResult<1>;
12
- }
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- 'rtg-badge': Badge;
16
- }
17
- }
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components';
2
-
3
- declare const meta: Meta;
4
- export default meta;
5
- type Story = StoryObj;
6
- export declare const Badge: Story;
@@ -1,3 +0,0 @@
1
- export declare const badgeStyle: (props?: {
2
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
3
- } & import('class-variance-authority/dist/types').ClassProp) => string;
@@ -1 +0,0 @@
1
- export type BadgeVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
@@ -1,23 +0,0 @@
1
- import { BaseElement } from '../../../helpers';
2
-
3
- import * as buttonType from './button.type';
4
- export declare class Button extends BaseElement {
5
- static buttonVariants: (props?: {
6
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
7
- size?: "default" | "sm" | "lg" | "icon";
8
- } & import('class-variance-authority/dist/types').ClassProp) => string;
9
- click: () => void;
10
- disabled: boolean;
11
- type: buttonType.ButtonType;
12
- variant: buttonType.ButtonVariant;
13
- size: buttonType.ButtonSize;
14
- static styles: import('lit').CSSResult[];
15
- private handleClick;
16
- protected getAttributesToExclude(): string[];
17
- render(): import('lit-html').TemplateResult<1>;
18
- }
19
- declare global {
20
- interface HTMLElementTagNameMap {
21
- 'rtg-button': Button;
22
- }
23
- }
@@ -1,4 +0,0 @@
1
- export declare const buttonStyle: (props?: {
2
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
3
- size?: "default" | "sm" | "lg" | "icon";
4
- } & import('class-variance-authority/dist/types').ClassProp) => string;
@@ -1,3 +0,0 @@
1
- export type ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
2
- export type ButtonSize = 'default' | 'sm' | 'lg' | 'icon';
3
- export type ButtonType = 'button' | 'submit' | 'reset' | 'menu';
@@ -1,6 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class CardDescription extends LitElement {
4
- static styles: import('lit').CSSResult[];
5
- render(): import('lit-html').TemplateResult<1>;
6
- }
@@ -1,6 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class CardTitle extends LitElement {
4
- static styles: import('lit').CSSResult[];
5
- render(): import('lit-html').TemplateResult<1>;
6
- }
@@ -1,22 +0,0 @@
1
- import { LitElement } from 'lit';
2
- import { CardTitle } from './card-title';
3
- import { CardHeader } from './card-header';
4
- import { CardFooter } from './card-footer';
5
- import { CardDescription } from './card-description';
6
- import { CardContent } from './card-content';
7
-
8
- declare class Card extends LitElement {
9
- static styles: import('lit').CSSResult[];
10
- render(): import('lit-html').TemplateResult<1>;
11
- }
12
- export { Card, CardTitle, CardHeader, CardFooter, CardDescription, CardContent, };
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- 'rtg-card': Card;
16
- 'rtg-card-title': CardTitle;
17
- 'rtg-card-header': CardHeader;
18
- 'rtg-card-footer': CardFooter;
19
- 'rtg-card-description': CardDescription;
20
- 'rtg-card-content': CardContent;
21
- }
22
- }
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/web-components';
2
-
3
- declare const _default: Meta;
4
- export default _default;
5
- type Story = StoryObj;
6
- export declare const Cards: Story;
@@ -1,7 +0,0 @@
1
- import { Meta } from '@storybook/web-components';
2
-
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const CheckboxWithReuired: any;
6
- export declare const Checkbox: any;
7
- export declare const CheckboxWithValue: any;
@@ -1,2 +0,0 @@
1
- export declare const checkboxStyles = "peer h-4 w-4 align-middle shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground";
2
- export declare const iconStyles = "flex items-center justify-center text-current pointer-events-none";
@@ -1,21 +0,0 @@
1
- export type CheckboxProperties = {
2
- disabled: boolean;
3
- checked: boolean;
4
- };
5
- export type CheckboxArgs = {
6
- disabled: boolean;
7
- checked: boolean;
8
- label: string;
9
- };
10
- export type CheckboxWithRequiredArgs = {
11
- disabled: boolean;
12
- checked: boolean;
13
- required: boolean;
14
- label: string;
15
- value?: string;
16
- };
17
- export type CheckboxWithValueArgs = {
18
- disabled: boolean;
19
- value: string;
20
- label: string;
21
- };
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/web-components';
2
-
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const basicComboBox: any;
6
- export declare const emptyComboBox: any;
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class CommandInput extends LitElement {
4
- placeholder: string;
5
- _value: string;
6
- static styles: import('lit').CSSResult[];
7
- private get identifier();
8
- private filterItems;
9
- private handleChange;
10
- render(): import('lit-html').TemplateResult<1>;
11
- }
@@ -1,7 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class CommandList extends LitElement {
4
- static styles: import('lit').CSSResult[];
5
- private get identifier();
6
- render(): import('lit-html').TemplateResult<1>;
7
- }
@@ -1,7 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class Command extends LitElement {
4
- static styles: import('lit').CSSResult[];
5
- _input: Array<HTMLElement>;
6
- render(): import('lit-html').TemplateResult<1>;
7
- }
@@ -1,5 +0,0 @@
1
- import { Meta } from '@storybook/web-components';
2
-
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Command: () => import('lit-html').TemplateResult<1>;
@@ -1,13 +0,0 @@
1
- import { LitElement, PropertyValueMap } from 'lit';
2
-
3
- export declare class DialogClose extends LitElement {
4
- static styles: import('lit').CSSResult[];
5
- private get _dialog();
6
- protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
7
- render(): import('lit-html').TemplateResult<1>;
8
- }
9
- declare global {
10
- interface HTMLElementTagNameMap {
11
- 'rtg-dialog-close': DialogClose;
12
- }
13
- }
@@ -1,9 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class DialogContent extends LitElement {
4
- static styles: import('lit').CSSResult[];
5
- state: string;
6
- private get _dialog();
7
- private handleCloseButtonClick;
8
- render(): import('lit-html').TemplateResult<1>;
9
- }
@@ -1,6 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class DialogFooter extends LitElement {
4
- static styles: import('lit').CSSResult[];
5
- render(): import('lit-html').TemplateResult<1>;
6
- }
@@ -1,8 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class DialogHeader extends LitElement {
4
- static styles: import('lit').CSSResult[];
5
- _title: string;
6
- description: string;
7
- render(): import('lit-html').TemplateResult<1>;
8
- }
@@ -1,6 +0,0 @@
1
- import { LitElement } from 'lit';
2
-
3
- export declare class DialogOverlay extends LitElement {
4
- static styles: import('lit').CSSResult[];
5
- render(): import('lit-html').TemplateResult<1>;
6
- }
@@ -1,9 +0,0 @@
1
- import { LitElement, PropertyValueMap } from 'lit';
2
-
3
- export declare class DialogTrigger extends LitElement {
4
- static styles: import('lit').CSSResult[];
5
- private get _dialog();
6
- handleClick: () => void;
7
- protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
8
- render(): import('lit-html').TemplateResult<1>;
9
- }