revotech-ui-kit 0.0.3-beta → 0.0.5-beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. package/dist/index.ts +1 -1
  2. package/dist/sw.js +1 -1
  3. package/dist/sw.js.map +1 -1
  4. package/package.json +2 -1
  5. package/src/components/atoms/alert/alert.atom.ts +5 -1
  6. package/src/components/atoms/button/button.atom.ts +6 -0
  7. package/src/index.d.ts +1 -0
  8. package/src/index.ts +1 -1
  9. package/dist/183c6c38.js +0 -1
  10. package/dist/public/globals.css +0 -2215
  11. package/dist/public/tailwind-lib.css +0 -115
  12. package/dist/src/assets/icons/arrows.icon.js +0 -20
  13. package/dist/src/assets/icons/arrows.icon.js.map +0 -1
  14. package/dist/src/assets/icons/index.js +0 -4
  15. package/dist/src/assets/icons/index.js.map +0 -1
  16. package/dist/src/assets/icons/search.icon.js +0 -19
  17. package/dist/src/assets/icons/search.icon.js.map +0 -1
  18. package/dist/src/assets/icons/tick.icon.js +0 -20
  19. package/dist/src/assets/icons/tick.icon.js.map +0 -1
  20. package/dist/src/components/atoms/alert/alert-description.js +0 -18
  21. package/dist/src/components/atoms/alert/alert-description.js.map +0 -1
  22. package/dist/src/components/atoms/alert/alert-title.js +0 -20
  23. package/dist/src/components/atoms/alert/alert-title.js.map +0 -1
  24. package/dist/src/components/atoms/alert/alert.atom.js +0 -55
  25. package/dist/src/components/atoms/alert/alert.atom.js.map +0 -1
  26. package/dist/src/components/atoms/alert/alert.stories.js +0 -62
  27. package/dist/src/components/atoms/alert/alert.stories.js.map +0 -1
  28. package/dist/src/components/atoms/alert/alert.styles.js +0 -21
  29. package/dist/src/components/atoms/alert/alert.styles.js.map +0 -1
  30. package/dist/src/components/atoms/alert/alert.types.js +0 -2
  31. package/dist/src/components/atoms/alert/alert.types.js.map +0 -1
  32. package/dist/src/components/atoms/badge/badge.atom.js +0 -43
  33. package/dist/src/components/atoms/badge/badge.atom.js.map +0 -1
  34. package/dist/src/components/atoms/badge/badge.stories.js +0 -110
  35. package/dist/src/components/atoms/badge/badge.stories.js.map +0 -1
  36. package/dist/src/components/atoms/badge/badge.style.js +0 -17
  37. package/dist/src/components/atoms/badge/badge.style.js.map +0 -1
  38. package/dist/src/components/atoms/badge/badge.type.js +0 -2
  39. package/dist/src/components/atoms/badge/badge.type.js.map +0 -1
  40. package/dist/src/components/atoms/button/button.atom.js +0 -67
  41. package/dist/src/components/atoms/button/button.atom.js.map +0 -1
  42. package/dist/src/components/atoms/button/button.stories.js +0 -204
  43. package/dist/src/components/atoms/button/button.stories.js.map +0 -1
  44. package/dist/src/components/atoms/button/button.style.js +0 -24
  45. package/dist/src/components/atoms/button/button.style.js.map +0 -1
  46. package/dist/src/components/atoms/button/button.type.js +0 -2
  47. package/dist/src/components/atoms/button/button.type.js.map +0 -1
  48. package/dist/src/components/atoms/card/card-content.js +0 -17
  49. package/dist/src/components/atoms/card/card-content.js.map +0 -1
  50. package/dist/src/components/atoms/card/card-description.js +0 -17
  51. package/dist/src/components/atoms/card/card-description.js.map +0 -1
  52. package/dist/src/components/atoms/card/card-footer.js +0 -17
  53. package/dist/src/components/atoms/card/card-footer.js.map +0 -1
  54. package/dist/src/components/atoms/card/card-header.js +0 -17
  55. package/dist/src/components/atoms/card/card-header.js.map +0 -1
  56. package/dist/src/components/atoms/card/card-title.js +0 -17
  57. package/dist/src/components/atoms/card/card-title.js.map +0 -1
  58. package/dist/src/components/atoms/card/card.atom.js +0 -25
  59. package/dist/src/components/atoms/card/card.atom.js.map +0 -1
  60. package/dist/src/components/atoms/card/card.stories.js +0 -136
  61. package/dist/src/components/atoms/card/card.stories.js.map +0 -1
  62. package/dist/src/components/atoms/checkbox/checkbox.atom.js +0 -87
  63. package/dist/src/components/atoms/checkbox/checkbox.atom.js.map +0 -1
  64. package/dist/src/components/atoms/checkbox/checkbox.stories.js +0 -244
  65. package/dist/src/components/atoms/checkbox/checkbox.stories.js.map +0 -1
  66. package/dist/src/components/atoms/checkbox/checkbox.style.js +0 -3
  67. package/dist/src/components/atoms/checkbox/checkbox.style.js.map +0 -1
  68. package/dist/src/components/atoms/checkbox/checkbox.type.js +0 -2
  69. package/dist/src/components/atoms/checkbox/checkbox.type.js.map +0 -1
  70. package/dist/src/components/atoms/combo-box/combo-box-input.js +0 -47
  71. package/dist/src/components/atoms/combo-box/combo-box-input.js.map +0 -1
  72. package/dist/src/components/atoms/combo-box/combo-box-item.js +0 -85
  73. package/dist/src/components/atoms/combo-box/combo-box-item.js.map +0 -1
  74. package/dist/src/components/atoms/combo-box/combo-box-list.js +0 -67
  75. package/dist/src/components/atoms/combo-box/combo-box-list.js.map +0 -1
  76. package/dist/src/components/atoms/combo-box/combo-box.atom.js +0 -199
  77. package/dist/src/components/atoms/combo-box/combo-box.atom.js.map +0 -1
  78. package/dist/src/components/atoms/combo-box/combo-box.stories.js +0 -86
  79. package/dist/src/components/atoms/combo-box/combo-box.stories.js.map +0 -1
  80. package/dist/src/components/atoms/command-empty/command-empty.atom.js +0 -54
  81. package/dist/src/components/atoms/command-empty/command-empty.atom.js.map +0 -1
  82. package/dist/src/components/atoms/command-group/command-group.atom.js +0 -71
  83. package/dist/src/components/atoms/command-group/command-group.atom.js.map +0 -1
  84. package/dist/src/components/atoms/command-item/command-item.atom.js +0 -80
  85. package/dist/src/components/atoms/command-item/command-item.atom.js.map +0 -1
  86. package/dist/src/components/atoms/command-list/command-list.atom.js +0 -36
  87. package/dist/src/components/atoms/command-list/command-list.atom.js.map +0 -1
  88. package/dist/src/components/atoms/command-separator/command-separator.atom.js +0 -52
  89. package/dist/src/components/atoms/command-separator/command-separator.atom.js.map +0 -1
  90. package/dist/src/components/atoms/dialog/dialog-close.js +0 -47
  91. package/dist/src/components/atoms/dialog/dialog-close.js.map +0 -1
  92. package/dist/src/components/atoms/dialog/dialog-content.js +0 -72
  93. package/dist/src/components/atoms/dialog/dialog-content.js.map +0 -1
  94. package/dist/src/components/atoms/dialog/dialog-footer.js +0 -22
  95. package/dist/src/components/atoms/dialog/dialog-footer.js.map +0 -1
  96. package/dist/src/components/atoms/dialog/dialog-header.js +0 -40
  97. package/dist/src/components/atoms/dialog/dialog-header.js.map +0 -1
  98. package/dist/src/components/atoms/dialog/dialog-overly.js +0 -20
  99. package/dist/src/components/atoms/dialog/dialog-overly.js.map +0 -1
  100. package/dist/src/components/atoms/dialog/dialog-trigger.js +0 -54
  101. package/dist/src/components/atoms/dialog/dialog-trigger.js.map +0 -1
  102. package/dist/src/components/atoms/dialog/dialog.atom.js +0 -79
  103. package/dist/src/components/atoms/dialog/dialog.atom.js.map +0 -1
  104. package/dist/src/components/atoms/dialog/dialog.stories.js +0 -88
  105. package/dist/src/components/atoms/dialog/dialog.stories.js.map +0 -1
  106. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.js +0 -117
  107. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.js.map +0 -1
  108. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.js +0 -81
  109. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.js.map +0 -1
  110. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.js +0 -71
  111. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.js.map +0 -1
  112. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.js +0 -80
  113. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.js.map +0 -1
  114. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.js +0 -118
  115. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.js.map +0 -1
  116. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.js +0 -52
  117. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.js.map +0 -1
  118. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.js +0 -20
  119. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.js.map +0 -1
  120. package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.js +0 -79
  121. package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.js.map +0 -1
  122. package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.js +0 -211
  123. package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.js.map +0 -1
  124. package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.js +0 -4
  125. package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.js.map +0 -1
  126. package/dist/src/components/atoms/index.js +0 -14
  127. package/dist/src/components/atoms/index.js.map +0 -1
  128. package/dist/src/components/atoms/input/input.atom.js +0 -93
  129. package/dist/src/components/atoms/input/input.atom.js.map +0 -1
  130. package/dist/src/components/atoms/input/input.stories.js +0 -382
  131. package/dist/src/components/atoms/input/input.stories.js.map +0 -1
  132. package/dist/src/components/atoms/input/input.styles.js +0 -2
  133. package/dist/src/components/atoms/input/input.styles.js.map +0 -1
  134. package/dist/src/components/atoms/input/input.type.js +0 -2
  135. package/dist/src/components/atoms/input/input.type.js.map +0 -1
  136. package/dist/src/components/atoms/label/label.atom.js +0 -68
  137. package/dist/src/components/atoms/label/label.atom.js.map +0 -1
  138. package/dist/src/components/atoms/label/label.stories.js +0 -85
  139. package/dist/src/components/atoms/label/label.stories.js.map +0 -1
  140. package/dist/src/components/atoms/label/label.style.js +0 -3
  141. package/dist/src/components/atoms/label/label.style.js.map +0 -1
  142. package/dist/src/components/atoms/popover/popover-content.js +0 -64
  143. package/dist/src/components/atoms/popover/popover-content.js.map +0 -1
  144. package/dist/src/components/atoms/popover/popover-trigger.js +0 -51
  145. package/dist/src/components/atoms/popover/popover-trigger.js.map +0 -1
  146. package/dist/src/components/atoms/popover/popover.atom.js +0 -40
  147. package/dist/src/components/atoms/popover/popover.atom.js.map +0 -1
  148. package/dist/src/components/atoms/popover/popover.stories.js +0 -69
  149. package/dist/src/components/atoms/popover/popover.stories.js.map +0 -1
  150. package/dist/src/components/atoms/popover/popover.style.js +0 -21
  151. package/dist/src/components/atoms/popover/popover.style.js.map +0 -1
  152. package/dist/src/components/atoms/popover/popover.types.js +0 -4
  153. package/dist/src/components/atoms/popover/popover.types.js.map +0 -1
  154. package/dist/src/components/atoms/toggle/defs.js +0 -30
  155. package/dist/src/components/atoms/toggle/defs.js.map +0 -1
  156. package/dist/src/components/atoms/toggle/toggle.atom.js +0 -72
  157. package/dist/src/components/atoms/toggle/toggle.atom.js.map +0 -1
  158. package/dist/src/components/atoms/toggle/toggle.stories.js +0 -189
  159. package/dist/src/components/atoms/toggle/toggle.stories.js.map +0 -1
  160. package/dist/src/components/atoms/toggle/toggle.style.js +0 -19
  161. package/dist/src/components/atoms/toggle/toggle.style.js.map +0 -1
  162. package/dist/src/components/command/command.js +0 -410
  163. package/dist/src/components/command/command.js.map +0 -1
  164. package/dist/src/components/command/command.stories.js +0 -153
  165. package/dist/src/components/command/command.stories.js.map +0 -1
  166. package/dist/src/components/index.js +0 -3
  167. package/dist/src/components/index.js.map +0 -1
  168. package/dist/src/components/molecules/command/command.molecules.js +0 -27
  169. package/dist/src/components/molecules/command/command.molecules.js.map +0 -1
  170. package/dist/src/components/molecules/command-input/command-input.atom.js +0 -127
  171. package/dist/src/components/molecules/command-input/command-input.atom.js.map +0 -1
  172. package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.js +0 -2
  173. package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.js.map +0 -1
  174. package/dist/src/components/molecules/index.js +0 -2
  175. package/dist/src/components/molecules/index.js.map +0 -1
  176. package/dist/src/helpers/base-element.js +0 -64
  177. package/dist/src/helpers/base-element.js.map +0 -1
  178. package/dist/src/helpers/index.js +0 -4
  179. package/dist/src/helpers/index.js.map +0 -1
  180. package/dist/src/helpers/mouse-conroller.helper.js +0 -33
  181. package/dist/src/helpers/mouse-conroller.helper.js.map +0 -1
  182. package/dist/src/helpers/style.helpers.js +0 -6
  183. package/dist/src/helpers/style.helpers.js.map +0 -1
  184. package/dist/src/index.js +0 -2
  185. package/dist/src/index.js.map +0 -1
  186. package/dist/src/interfaces/actionable.interface.js +0 -2
  187. package/dist/src/interfaces/actionable.interface.js.map +0 -1
  188. package/dist/src/interfaces/atomic.interface.js +0 -2
  189. package/dist/src/interfaces/atomic.interface.js.map +0 -1
  190. package/dist/src/interfaces/changeable.interface.js +0 -2
  191. package/dist/src/interfaces/changeable.interface.js.map +0 -1
  192. package/dist/src/interfaces/child-support-atomic.interface.js +0 -2
  193. package/dist/src/interfaces/child-support-atomic.interface.js.map +0 -1
  194. package/dist/src/interfaces/index.js +0 -7
  195. package/dist/src/interfaces/index.js.map +0 -1
  196. package/dist/src/interfaces/intractable.interface.js +0 -2
  197. package/dist/src/interfaces/intractable.interface.js.map +0 -1
  198. package/dist/src/interfaces/variant.interface.js +0 -2
  199. package/dist/src/interfaces/variant.interface.js.map +0 -1
  200. package/dist/src/lib/index.js +0 -2
  201. package/dist/src/lib/index.js.map +0 -1
  202. package/dist/src/lib/next/next.lib.js +0 -2
  203. package/dist/src/lib/next/next.lib.js.map +0 -1
  204. package/dist/src/lib/react/react.lib.js +0 -16
  205. package/dist/src/lib/react/react.lib.js.map +0 -1
  206. package/dist/src/lib/tw-styles.js +0 -1956
  207. package/dist/src/lib/tw-styles.js.map +0 -1
  208. package/dist/src/styles/index.js +0 -2
  209. package/dist/src/styles/index.js.map +0 -1
  210. package/dist/src/styles/tw.styles.js +0 -2218
  211. package/dist/src/styles/tw.styles.js.map +0 -1
  212. package/dist/src/wc-ui-app.js +0 -88
  213. package/dist/src/wc-ui-app.js.map +0 -1
  214. package/dist/test/wc-ui-app.test.js +0 -18
  215. package/dist/test/wc-ui-app.test.js.map +0 -1
  216. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,27 +0,0 @@
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
@@ -1 +0,0 @@
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"]}
@@ -1,127 +0,0 @@
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
- var _a, _b;
14
- const parent = (_b = (_a = this.parentElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('div[rtgcmd-root]');
15
- if (parent) {
16
- return `${parent.getAttribute('id')}i`;
17
- }
18
- return `rtgcmdrxi`;
19
- }
20
- filterItems() {
21
- const parent = this.parentElement;
22
- if (parent) {
23
- let isEmpty = true;
24
- const groups = parent.querySelectorAll('rtg-command-list > rtg-command-group');
25
- if (groups) {
26
- groups.forEach(group => {
27
- var _a, _b;
28
- let hidden = true;
29
- const items = group.querySelectorAll('rtg-command-item');
30
- if (items) {
31
- items.forEach(item => {
32
- const value = (item === null || item === void 0 ? void 0 : item.value) || '';
33
- if (value.toLowerCase().includes(this._value.toLowerCase())) {
34
- hidden = false;
35
- isEmpty = false;
36
- item.setAttribute('aria-hidden', 'false');
37
- }
38
- else {
39
- item.setAttribute('aria-hidden', 'true');
40
- }
41
- });
42
- }
43
- group.setAttribute('aria-hidden', hidden ? 'true' : 'false');
44
- let separator = group.previousElementSibling;
45
- if (separator) {
46
- separator.setAttribute('aria-hidden', hidden ||
47
- ((_a = separator.previousElementSibling) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-hidden')) === 'true'
48
- ? 'true'
49
- : 'false');
50
- }
51
- separator = group.nextElementSibling;
52
- if (separator) {
53
- separator.setAttribute('aria-hidden', hidden ||
54
- ((_b = separator.nextElementSibling) === null || _b === void 0 ? void 0 : _b.getAttribute('aria-hidden')) ===
55
- 'true'
56
- ? 'true'
57
- : 'false');
58
- }
59
- });
60
- }
61
- const empty = parent.querySelector('rtg-command-empty');
62
- if (empty) {
63
- empty.setAttribute('aria-hidden', isEmpty ? 'false' : 'true');
64
- }
65
- }
66
- }
67
- handleChange(e) {
68
- const input = e.target;
69
- if (input) {
70
- this._value = input.value;
71
- this.filterItems();
72
- }
73
- }
74
- render() {
75
- return html `
76
- <div
77
- class="${cn('flex items-center border-b px-3', this.className)}"
78
- name="rtgcmd-input-container"
79
- >
80
- <svg
81
- xmlns="http://www.w3.org/2000/svg"
82
- width="24"
83
- height="24"
84
- viewBox="0 0 24 24"
85
- fill="none"
86
- stroke="currentColor"
87
- stroke-width="2"
88
- stroke-linecap="round"
89
- stroke-linejoin="round"
90
- class="mr-2 h-4 w-4 shrink-0 opacity-50"
91
- >
92
- <circle cx="11" cy="11" r="8"></circle>
93
- <path d="m21 21-4.3-4.3"></path>
94
- </svg>
95
- <input
96
- 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"
97
- placeholder="${this.placeholder}"
98
- rtgcmd-input
99
- @input="${this.handleChange}"
100
- autocomplete="off"
101
- autocorrect="off"
102
- spellcheck="false"
103
- aria-autocomplete="list"
104
- role="combobox"
105
- aria-expanded="true"
106
- aria-controls=":r1oe:"
107
- aria-labelledby=":r1of:"
108
- id="${this.identifier}"
109
- type="text"
110
- data-value="${this._value}"
111
- />
112
- </div>
113
- `;
114
- }
115
- };
116
- CommandInput.styles = [css ``, TWStyles];
117
- __decorate([
118
- property({ type: String })
119
- ], CommandInput.prototype, "placeholder", void 0);
120
- __decorate([
121
- property({ attribute: 'value', type: String })
122
- ], CommandInput.prototype, "_value", void 0);
123
- CommandInput = __decorate([
124
- customElement('rtg-command-input')
125
- ], CommandInput);
126
- export { CommandInput };
127
- //# sourceMappingURL=command-input.atom.js.map
@@ -1 +0,0 @@
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,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIpC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QACuB,gBAAW,GAAG,6BAA6B,CAAC;QAExB,WAAM,GAAG,EAAE,CAAC;IAuH9D,CAAC;IAnHC,IAAY,UAAU;;QACpB,MAAM,MAAM,GACV,MAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,UAAU,0CAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;QACpE,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC;QACzC,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;IAEO,WAAW;QACjB,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC;QAClC,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,OAAO,GAAG,IAAI,CAAC;YACnB,MAAM,MAAM,GAAG,MAAM,CAAC,gBAAgB,CACpC,sCAAsC,CACvC,CAAC;YACF,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;;oBACrB,IAAI,MAAM,GAAG,IAAI,CAAC;oBAClB,MAAM,KAAK,GAAG,KAAK,CAAC,gBAAgB,CAAC,kBAAkB,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CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;YAED,MAAM,KAAK,GAAG,MAAM,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;YACxD,IAAI,KAAK,EAAE,CAAC;gBACV,KAAK,CAAC,YAAY,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;YAChE,CAAC;QACH,CAAC;IACH,CAAC;IAEO,YAAY,CAAC,CAAQ;QAC3B,MAAM,KAAK,GAAG,CAAC,CAAC,MAA0B,CAAC;QAC3C,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC;YAC1B,IAAI,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"]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=dropdownMenu.molecules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropdownMenu.molecules.js","sourceRoot":"","sources":["../../../../../src/components/molecules/dropdownMenu/dropdownMenu.molecules.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -1,2 +0,0 @@
1
- export * from './command/command.molecules';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,64 +0,0 @@
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
- var _a;
11
- if (!this.getAttributesToExclude().includes(attr.name)) {
12
- attributes[attr.name] = (_a = attr.value) !== null && _a !== void 0 ? _a : '';
13
- }
14
- });
15
- return attributes;
16
- }
17
- isCustomPropertySet(property) {
18
- const value = getComputedStyle(this).getPropertyValue(property).trim();
19
- return value !== 'inherit' && value.length > 0;
20
- }
21
- applyCustomClass(variables, selector, className = '') {
22
- var _a, _b;
23
- let customClass = '';
24
- if (variables.some(variable => this.isCustomPropertySet(variable))) {
25
- customClass = className;
26
- }
27
- if (customClass)
28
- (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(selector)) === null || _b === void 0 ? void 0 : _b.classList.add(customClass);
29
- }
30
- }
31
- // usage
32
- // import {
33
- // html,
34
- // PropertyValues,
35
- // } from "lit";
36
- // import { customElement, property } from "lit/decorators.js";
37
- // import { TWStyles} from "../styles/shared-style";
38
- // import { BaseElement } from "./base-element";
39
- // @customElement("biopass-label")
40
- // export class Label extends BaseElement {
41
- // constructor() {
42
- // super();
43
- // this.attachShadow({mode: 'open'});
44
- // }
45
- // @property({ type: String }) customClass: string ="";
46
- // static styles = [ TWStyles];
47
- // protected firstUpdated(_changedProperties: PropertyValues): void {
48
- // const variables = [
49
- // "--button-bg-color",
50
- // "--button-text-color",
51
- // "--button-border-radius",
52
- // "--button-padding"
53
- // ];
54
- // this.applyCustomClass(variables, "label","label-base");
55
- // }
56
- // render() {
57
- // return html`
58
- // <label class="text-3xl font-bold underline bg-secondary text-primary label-base">
59
- // <slot></slot>
60
- // </label>
61
- // `;
62
- // }
63
- // }
64
- //# sourceMappingURL=base-element.js.map
@@ -1 +0,0 @@
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,UAAU,GAA8B,EAAE,CAAC;QACjD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UA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CAAkC;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"]}
@@ -1,4 +0,0 @@
1
- export * from './mouse-conroller.helper';
2
- export * from './style.helpers';
3
- export * from './base-element';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,33 +0,0 @@
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
@@ -1 +0,0 @@
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,C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AAC,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"]}
@@ -1,6 +0,0 @@
1
- import { clsx } from 'clsx';
2
- import { twMerge } from 'tailwind-merge';
3
- export function cn(...inputs) {
4
- return twMerge(clsx(inputs));
5
- }
6
- //# sourceMappingURL=style.helpers.js.map
@@ -1 +0,0 @@
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"]}
package/dist/src/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=actionable.interface.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=atomic.interface.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=changeable.interface.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=child-support-atomic.interface.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
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"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=intractable.interface.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=variant.interface.js.map
@@ -1 +0,0 @@
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"]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=next.lib.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.lib.js","sourceRoot":"","sources":["../../../../src/lib/next/next.lib.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -1,16 +0,0 @@
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
@@ -1 +0,0 @@
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"]}