@andespindola/ui-core 0.1.1 → 0.2.0

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 (271) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/ui-accordion-item.cjs.entry.js +1 -1
  3. package/dist/cjs/ui-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/ui-alert.cjs.entry.js +40 -0
  5. package/dist/cjs/ui-avatar-group.cjs.entry.js +17 -0
  6. package/dist/cjs/ui-avatar.cjs.entry.js +2 -2
  7. package/dist/cjs/ui-badge.cjs.entry.js +7 -2
  8. package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +23 -0
  9. package/dist/cjs/ui-breadcrumb.cjs.entry.js +17 -0
  10. package/dist/cjs/ui-button.cjs.entry.js +5 -3
  11. package/dist/cjs/ui-card.cjs.entry.js +1 -1
  12. package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
  13. package/dist/cjs/ui-container.cjs.entry.js +26 -0
  14. package/dist/cjs/ui-dialog.cjs.entry.js +1 -1
  15. package/dist/cjs/ui-drawer.cjs.entry.js +1 -1
  16. package/dist/cjs/ui-dropdown-item.cjs.entry.js +1 -1
  17. package/dist/cjs/ui-dropdown-menu.cjs.entry.js +1 -1
  18. package/dist/cjs/ui-field.cjs.entry.js +1 -1
  19. package/dist/cjs/ui-grid.cjs.entry.js +34 -0
  20. package/dist/cjs/ui-input.cjs.entry.js +10 -2
  21. package/dist/cjs/ui-label.cjs.entry.js +1 -1
  22. package/dist/cjs/ui-pagination.cjs.entry.js +63 -0
  23. package/dist/cjs/ui-popover.cjs.entry.js +1 -1
  24. package/dist/cjs/ui-progress.cjs.entry.js +1 -1
  25. package/dist/cjs/ui-radio-group.cjs.entry.js +1 -1
  26. package/dist/cjs/ui-reveal.cjs.entry.js +1 -1
  27. package/dist/cjs/ui-scroll-progress.cjs.entry.js +1 -1
  28. package/dist/cjs/ui-section.cjs.entry.js +1 -1
  29. package/dist/cjs/ui-segmented.cjs.entry.js +31 -0
  30. package/dist/cjs/ui-select.cjs.entry.js +1 -1
  31. package/dist/cjs/ui-separator.cjs.entry.js +1 -1
  32. package/dist/cjs/ui-skeleton.cjs.entry.js +1 -1
  33. package/dist/cjs/ui-slider.cjs.entry.js +1 -1
  34. package/dist/cjs/ui-spinner.cjs.entry.js +1 -1
  35. package/dist/cjs/ui-stack.cjs.entry.js +53 -0
  36. package/dist/cjs/ui-stat.cjs.entry.js +28 -0
  37. package/dist/cjs/ui-switch.cjs.entry.js +1 -1
  38. package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
  39. package/dist/cjs/ui-textarea.cjs.entry.js +1 -1
  40. package/dist/cjs/ui-theme-toggle.cjs.entry.js +1 -1
  41. package/dist/cjs/ui-toast.cjs.entry.js +1 -1
  42. package/dist/cjs/ui-toaster.cjs.entry.js +1 -1
  43. package/dist/cjs/ui-tooltip.cjs.entry.js +1 -1
  44. package/dist/cjs/uikit.cjs.js +1 -1
  45. package/dist/collection/collection-manifest.json +10 -0
  46. package/dist/collection/components/ui-accordion/ui-accordion.js +1 -1
  47. package/dist/collection/components/ui-accordion-item/ui-accordion-item.js +1 -1
  48. package/dist/collection/components/ui-alert/ui-alert.css +95 -0
  49. package/dist/collection/components/ui-alert/ui-alert.js +134 -0
  50. package/dist/collection/components/ui-avatar/ui-avatar.css +31 -0
  51. package/dist/collection/components/ui-avatar/ui-avatar.js +20 -1
  52. package/dist/collection/components/ui-avatar-group/ui-avatar-group.css +22 -0
  53. package/dist/collection/components/ui-avatar-group/ui-avatar-group.js +21 -0
  54. package/dist/collection/components/ui-badge/ui-badge.css +26 -0
  55. package/dist/collection/components/ui-badge/ui-badge.js +63 -1
  56. package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.css +15 -0
  57. package/dist/collection/components/ui-breadcrumb/ui-breadcrumb.js +18 -0
  58. package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.css +30 -0
  59. package/dist/collection/components/ui-breadcrumb-item/ui-breadcrumb-item.js +69 -0
  60. package/dist/collection/components/ui-button/ui-button.css +11 -1
  61. package/dist/collection/components/ui-button/ui-button.js +24 -2
  62. package/dist/collection/components/ui-card/ui-card.js +1 -1
  63. package/dist/collection/components/ui-checkbox/ui-checkbox.css +6 -2
  64. package/dist/collection/components/ui-checkbox/ui-checkbox.js +1 -1
  65. package/dist/collection/components/ui-container/ui-container.css +38 -0
  66. package/dist/collection/components/ui-container/ui-container.js +79 -0
  67. package/dist/collection/components/ui-dialog/ui-dialog.js +1 -1
  68. package/dist/collection/components/ui-drawer/ui-drawer.js +1 -1
  69. package/dist/collection/components/ui-dropdown-item/ui-dropdown-item.js +1 -1
  70. package/dist/collection/components/ui-dropdown-menu/ui-dropdown-menu.js +1 -1
  71. package/dist/collection/components/ui-field/ui-field.js +1 -1
  72. package/dist/collection/components/ui-grid/ui-grid.css +8 -0
  73. package/dist/collection/components/ui-grid/ui-grid.js +106 -0
  74. package/dist/collection/components/ui-input/ui-input.css +65 -14
  75. package/dist/collection/components/ui-input/ui-input.js +29 -1
  76. package/dist/collection/components/ui-label/ui-label.js +1 -1
  77. package/dist/collection/components/ui-pagination/ui-pagination.css +59 -0
  78. package/dist/collection/components/ui-pagination/ui-pagination.js +147 -0
  79. package/dist/collection/components/ui-popover/ui-popover.js +1 -1
  80. package/dist/collection/components/ui-progress/ui-progress.js +1 -1
  81. package/dist/collection/components/ui-radio-group/ui-radio-group.js +1 -1
  82. package/dist/collection/components/ui-reveal/ui-reveal.js +1 -1
  83. package/dist/collection/components/ui-scroll-progress/ui-scroll-progress.js +1 -1
  84. package/dist/collection/components/ui-section/ui-section.js +1 -1
  85. package/dist/collection/components/ui-segmented/ui-segmented.css +46 -0
  86. package/dist/collection/components/ui-segmented/ui-segmented.js +99 -0
  87. package/dist/collection/components/ui-select/ui-select.js +1 -1
  88. package/dist/collection/components/ui-separator/ui-separator.js +1 -1
  89. package/dist/collection/components/ui-skeleton/ui-skeleton.js +1 -1
  90. package/dist/collection/components/ui-slider/ui-slider.js +1 -1
  91. package/dist/collection/components/ui-spinner/ui-spinner.js +1 -1
  92. package/dist/collection/components/ui-stack/ui-stack.css +8 -0
  93. package/dist/collection/components/ui-stack/ui-stack.js +184 -0
  94. package/dist/collection/components/ui-stat/ui-stat.css +69 -0
  95. package/dist/collection/components/ui-stat/ui-stat.js +118 -0
  96. package/dist/collection/components/ui-switch/ui-switch.js +1 -1
  97. package/dist/collection/components/ui-tabs/ui-tabs.js +2 -2
  98. package/dist/collection/components/ui-textarea/ui-textarea.js +1 -1
  99. package/dist/collection/components/ui-theme-toggle/ui-theme-toggle.js +1 -1
  100. package/dist/collection/components/ui-toast/ui-toast.js +1 -1
  101. package/dist/collection/components/ui-toaster/ui-toaster.js +1 -1
  102. package/dist/collection/components/ui-tooltip/ui-tooltip.js +1 -1
  103. package/dist/components/{p-Bz9HyboB.js → p-BwNtNvTb.js} +1 -1
  104. package/dist/components/{p-fApcMAzN.js → p-CgsjJD8o.js} +1 -1
  105. package/dist/components/ui-accordion-item.js +1 -1
  106. package/dist/components/ui-accordion.js +1 -1
  107. package/dist/components/ui-alert.d.ts +11 -0
  108. package/dist/components/ui-alert.js +1 -0
  109. package/dist/components/ui-avatar-group.d.ts +11 -0
  110. package/dist/components/ui-avatar-group.js +1 -0
  111. package/dist/components/ui-avatar.js +1 -1
  112. package/dist/components/ui-badge.js +1 -1
  113. package/dist/components/ui-breadcrumb-item.d.ts +11 -0
  114. package/dist/components/ui-breadcrumb-item.js +1 -0
  115. package/dist/components/ui-breadcrumb.d.ts +11 -0
  116. package/dist/components/ui-breadcrumb.js +1 -0
  117. package/dist/components/ui-button.js +1 -1
  118. package/dist/components/ui-card.js +1 -1
  119. package/dist/components/ui-checkbox.js +1 -1
  120. package/dist/components/ui-container.d.ts +11 -0
  121. package/dist/components/ui-container.js +1 -0
  122. package/dist/components/ui-dialog.js +1 -1
  123. package/dist/components/ui-drawer.js +1 -1
  124. package/dist/components/ui-dropdown-item.js +1 -1
  125. package/dist/components/ui-dropdown-menu.js +1 -1
  126. package/dist/components/ui-field.js +1 -1
  127. package/dist/components/ui-grid.d.ts +11 -0
  128. package/dist/components/ui-grid.js +1 -0
  129. package/dist/components/ui-input.js +1 -1
  130. package/dist/components/ui-label.js +1 -1
  131. package/dist/components/ui-loading-overlay.js +1 -1
  132. package/dist/components/ui-pagination.d.ts +11 -0
  133. package/dist/components/ui-pagination.js +1 -0
  134. package/dist/components/ui-popover.js +1 -1
  135. package/dist/components/ui-progress.js +1 -1
  136. package/dist/components/ui-radio-group.js +1 -1
  137. package/dist/components/ui-reveal.js +1 -1
  138. package/dist/components/ui-scroll-progress.js +1 -1
  139. package/dist/components/ui-section.js +1 -1
  140. package/dist/components/ui-segmented.d.ts +11 -0
  141. package/dist/components/ui-segmented.js +1 -0
  142. package/dist/components/ui-select.js +1 -1
  143. package/dist/components/ui-separator.js +1 -1
  144. package/dist/components/ui-skeleton.js +1 -1
  145. package/dist/components/ui-slider.js +1 -1
  146. package/dist/components/ui-spinner.js +1 -1
  147. package/dist/components/ui-stack.d.ts +11 -0
  148. package/dist/components/ui-stack.js +1 -0
  149. package/dist/components/ui-stat.d.ts +11 -0
  150. package/dist/components/ui-stat.js +1 -0
  151. package/dist/components/ui-switch.js +1 -1
  152. package/dist/components/ui-tabs.js +1 -1
  153. package/dist/components/ui-textarea.js +1 -1
  154. package/dist/components/ui-theme-toggle.js +1 -1
  155. package/dist/components/ui-toast.js +1 -1
  156. package/dist/components/ui-toaster.js +1 -1
  157. package/dist/components/ui-tooltip.js +1 -1
  158. package/dist/esm/loader.js +1 -1
  159. package/dist/esm/ui-accordion-item.entry.js +1 -1
  160. package/dist/esm/ui-accordion.entry.js +1 -1
  161. package/dist/esm/ui-alert.entry.js +38 -0
  162. package/dist/esm/ui-avatar-group.entry.js +15 -0
  163. package/dist/esm/ui-avatar.entry.js +2 -2
  164. package/dist/esm/ui-badge.entry.js +8 -3
  165. package/dist/esm/ui-breadcrumb-item.entry.js +21 -0
  166. package/dist/esm/ui-breadcrumb.entry.js +15 -0
  167. package/dist/esm/ui-button.entry.js +5 -3
  168. package/dist/esm/ui-card.entry.js +1 -1
  169. package/dist/esm/ui-checkbox.entry.js +2 -2
  170. package/dist/esm/ui-container.entry.js +24 -0
  171. package/dist/esm/ui-dialog.entry.js +1 -1
  172. package/dist/esm/ui-drawer.entry.js +1 -1
  173. package/dist/esm/ui-dropdown-item.entry.js +1 -1
  174. package/dist/esm/ui-dropdown-menu.entry.js +1 -1
  175. package/dist/esm/ui-field.entry.js +1 -1
  176. package/dist/esm/ui-grid.entry.js +32 -0
  177. package/dist/esm/ui-input.entry.js +10 -2
  178. package/dist/esm/ui-label.entry.js +1 -1
  179. package/dist/esm/ui-pagination.entry.js +61 -0
  180. package/dist/esm/ui-popover.entry.js +1 -1
  181. package/dist/esm/ui-progress.entry.js +1 -1
  182. package/dist/esm/ui-radio-group.entry.js +1 -1
  183. package/dist/esm/ui-reveal.entry.js +1 -1
  184. package/dist/esm/ui-scroll-progress.entry.js +1 -1
  185. package/dist/esm/ui-section.entry.js +1 -1
  186. package/dist/esm/ui-segmented.entry.js +29 -0
  187. package/dist/esm/ui-select.entry.js +1 -1
  188. package/dist/esm/ui-separator.entry.js +1 -1
  189. package/dist/esm/ui-skeleton.entry.js +1 -1
  190. package/dist/esm/ui-slider.entry.js +1 -1
  191. package/dist/esm/ui-spinner.entry.js +1 -1
  192. package/dist/esm/ui-stack.entry.js +51 -0
  193. package/dist/esm/ui-stat.entry.js +26 -0
  194. package/dist/esm/ui-switch.entry.js +1 -1
  195. package/dist/esm/ui-tabs.entry.js +2 -2
  196. package/dist/esm/ui-textarea.entry.js +1 -1
  197. package/dist/esm/ui-theme-toggle.entry.js +1 -1
  198. package/dist/esm/ui-toast.entry.js +1 -1
  199. package/dist/esm/ui-toaster.entry.js +1 -1
  200. package/dist/esm/ui-tooltip.entry.js +1 -1
  201. package/dist/esm/uikit.js +1 -1
  202. package/dist/types/components/ui-alert/ui-alert.d.ts +17 -0
  203. package/dist/types/components/ui-avatar/ui-avatar.d.ts +2 -0
  204. package/dist/types/components/ui-avatar-group/ui-avatar-group.d.ts +6 -0
  205. package/dist/types/components/ui-badge/ui-badge.d.ts +7 -0
  206. package/dist/types/components/ui-breadcrumb/ui-breadcrumb.d.ts +3 -0
  207. package/dist/types/components/ui-breadcrumb-item/ui-breadcrumb-item.d.ts +8 -0
  208. package/dist/types/components/ui-button/ui-button.d.ts +2 -0
  209. package/dist/types/components/ui-container/ui-container.d.ts +8 -0
  210. package/dist/types/components/ui-grid/ui-grid.d.ts +10 -0
  211. package/dist/types/components/ui-input/ui-input.d.ts +3 -0
  212. package/dist/types/components/ui-pagination/ui-pagination.d.ts +15 -0
  213. package/dist/types/components/ui-segmented/ui-segmented.d.ts +15 -0
  214. package/dist/types/components/ui-stack/ui-stack.d.ts +17 -0
  215. package/dist/types/components/ui-stat/ui-stat.d.ts +13 -0
  216. package/dist/types/components.d.ts +552 -0
  217. package/dist/uikit/{p-29fe5b7f.entry.js → p-09895cd0.entry.js} +1 -1
  218. package/dist/uikit/p-0cba0d11.entry.js +1 -0
  219. package/dist/uikit/p-12db6a6e.entry.js +1 -0
  220. package/dist/uikit/{p-4a1abc1c.entry.js → p-1d016ea4.entry.js} +1 -1
  221. package/dist/uikit/p-25637424.entry.js +1 -0
  222. package/dist/uikit/p-2601d8b6.entry.js +1 -0
  223. package/dist/uikit/p-2de05aac.entry.js +1 -0
  224. package/dist/uikit/{p-e0652ddf.entry.js → p-3996590f.entry.js} +1 -1
  225. package/dist/uikit/{p-ed1111eb.entry.js → p-3fc062a6.entry.js} +1 -1
  226. package/dist/uikit/p-45e80e73.entry.js +1 -0
  227. package/dist/uikit/{p-97de6ea6.entry.js → p-55a23f91.entry.js} +1 -1
  228. package/dist/uikit/p-567f7496.entry.js +1 -0
  229. package/dist/uikit/p-5951a496.entry.js +1 -0
  230. package/dist/uikit/{p-9aa557d1.entry.js → p-595e146f.entry.js} +1 -1
  231. package/dist/uikit/p-635862e6.entry.js +1 -0
  232. package/dist/uikit/{p-777c6902.entry.js → p-67963692.entry.js} +1 -1
  233. package/dist/uikit/{p-7b2a9e68.entry.js → p-6c0e9809.entry.js} +1 -1
  234. package/dist/uikit/{p-b0aba484.entry.js → p-74b60a60.entry.js} +1 -1
  235. package/dist/uikit/p-7a3d85da.entry.js +1 -0
  236. package/dist/uikit/{p-38cbea54.entry.js → p-7f2c2924.entry.js} +1 -1
  237. package/dist/uikit/{p-8a238373.entry.js → p-81b45a43.entry.js} +1 -1
  238. package/dist/uikit/{p-d8e7ae10.entry.js → p-86ed6154.entry.js} +1 -1
  239. package/dist/uikit/p-94ad46a5.entry.js +1 -0
  240. package/dist/uikit/{p-9f0d4ae1.entry.js → p-95cd976e.entry.js} +1 -1
  241. package/dist/uikit/{p-777d8c7a.entry.js → p-979f6178.entry.js} +1 -1
  242. package/dist/uikit/p-97d4dbf4.entry.js +1 -0
  243. package/dist/uikit/p-9a4dc343.entry.js +1 -0
  244. package/dist/uikit/p-9a9590b9.entry.js +1 -0
  245. package/dist/uikit/p-a01305a5.entry.js +1 -0
  246. package/dist/uikit/p-a080f46a.entry.js +1 -0
  247. package/dist/uikit/p-a92a7b19.entry.js +1 -0
  248. package/dist/uikit/{p-d6c9bfbc.entry.js → p-a977a0db.entry.js} +1 -1
  249. package/dist/uikit/p-b2df8437.entry.js +1 -0
  250. package/dist/uikit/{p-58ed99a2.entry.js → p-c73c1009.entry.js} +1 -1
  251. package/dist/uikit/{p-83159bfc.entry.js → p-cd0ec835.entry.js} +1 -1
  252. package/dist/uikit/p-d20452b4.entry.js +1 -0
  253. package/dist/uikit/p-d7021157.entry.js +1 -0
  254. package/dist/uikit/{p-280337b0.entry.js → p-db07f9c5.entry.js} +1 -1
  255. package/dist/uikit/{p-9b43d670.entry.js → p-dca9f6f9.entry.js} +1 -1
  256. package/dist/uikit/p-ddd70374.entry.js +1 -0
  257. package/dist/uikit/{p-a0ccdb22.entry.js → p-faa98928.entry.js} +1 -1
  258. package/dist/uikit/{p-32df7fd0.entry.js → p-fd832f52.entry.js} +1 -1
  259. package/dist/uikit/uikit.esm.js +1 -1
  260. package/package.json +8 -3
  261. package/dist/uikit/p-0096eefe.entry.js +0 -1
  262. package/dist/uikit/p-11350db1.entry.js +0 -1
  263. package/dist/uikit/p-128ae3e4.entry.js +0 -1
  264. package/dist/uikit/p-24edfe3e.entry.js +0 -1
  265. package/dist/uikit/p-3c866608.entry.js +0 -1
  266. package/dist/uikit/p-5555523c.entry.js +0 -1
  267. package/dist/uikit/p-6fa4be86.entry.js +0 -1
  268. package/dist/uikit/p-9c57cf57.entry.js +0 -1
  269. package/dist/uikit/p-cf56c9ba.entry.js +0 -1
  270. package/dist/uikit/p-d13860dc.entry.js +0 -1
  271. package/dist/uikit/p-e54139a1.entry.js +0 -1
@@ -0,0 +1,99 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class UiSegmented {
3
+ constructor() {
4
+ /** Lista de segmentos. */
5
+ this.items = [];
6
+ /** Valor do segmento ativo. */
7
+ this.value = "";
8
+ this.select = (value) => {
9
+ if (value === this.value)
10
+ return;
11
+ this.value = value;
12
+ this.uiChange.emit(value);
13
+ };
14
+ }
15
+ render() {
16
+ return (h(Host, { key: '92649a392383aebb62bab90e3f20a008783f2ed2' }, h("div", { key: '22983cd496ee1f9ed1dbf49d989c409cdca3c8b4', class: "track", role: "radiogroup" }, this.items.map((item) => {
17
+ const active = item.value === this.value;
18
+ return (h("button", { key: item.value, class: { segment: true, active }, type: "button", role: "radio", "aria-checked": active ? "true" : "false", onClick: () => this.select(item.value) }, item.label));
19
+ }))));
20
+ }
21
+ static get is() { return "ui-segmented"; }
22
+ static get encapsulation() { return "shadow"; }
23
+ static get originalStyleUrls() {
24
+ return {
25
+ "$": ["ui-segmented.css"]
26
+ };
27
+ }
28
+ static get styleUrls() {
29
+ return {
30
+ "$": ["ui-segmented.css"]
31
+ };
32
+ }
33
+ static get properties() {
34
+ return {
35
+ "items": {
36
+ "type": "unknown",
37
+ "mutable": false,
38
+ "complexType": {
39
+ "original": "UiSegmentedItem[]",
40
+ "resolved": "UiSegmentedItem[]",
41
+ "references": {
42
+ "UiSegmentedItem": {
43
+ "location": "local",
44
+ "path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-segmented/ui-segmented.tsx",
45
+ "id": "src/components/ui-segmented/ui-segmented.tsx::UiSegmentedItem"
46
+ }
47
+ }
48
+ },
49
+ "required": false,
50
+ "optional": false,
51
+ "docs": {
52
+ "tags": [],
53
+ "text": "Lista de segmentos."
54
+ },
55
+ "getter": false,
56
+ "setter": false,
57
+ "defaultValue": "[]"
58
+ },
59
+ "value": {
60
+ "type": "string",
61
+ "mutable": true,
62
+ "complexType": {
63
+ "original": "string",
64
+ "resolved": "string",
65
+ "references": {}
66
+ },
67
+ "required": false,
68
+ "optional": false,
69
+ "docs": {
70
+ "tags": [],
71
+ "text": "Valor do segmento ativo."
72
+ },
73
+ "getter": false,
74
+ "setter": false,
75
+ "reflect": true,
76
+ "attribute": "value",
77
+ "defaultValue": "\"\""
78
+ }
79
+ };
80
+ }
81
+ static get events() {
82
+ return [{
83
+ "method": "uiChange",
84
+ "name": "uiChange",
85
+ "bubbles": true,
86
+ "cancelable": true,
87
+ "composed": true,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": "Emitido quando o segmento ativo muda."
91
+ },
92
+ "complexType": {
93
+ "original": "string",
94
+ "resolved": "string",
95
+ "references": {}
96
+ }
97
+ }];
98
+ }
99
+ }
@@ -13,7 +13,7 @@ export class UiSelect {
13
13
  }
14
14
  render() {
15
15
  const hasValue = this.value !== undefined && this.value !== "";
16
- return (h(Host, { key: '1ebd6a8472a116ad071e9504ab0756daddb27824' }, h("div", { key: '5d2d00f41b8f74202156d0af7c150b89d79dc1a4', class: "wrapper" }, h("select", { key: '7b370433247f03a126ce13005a3697ba5b04845f', class: "select", name: this.name, disabled: this.disabled, onChange: this.onChange }, this.placeholder && (h("option", { key: '9e482642eebeab0b1b1c5b56a6730fb5ecbd9617', value: "", disabled: true, selected: !hasValue }, this.placeholder)), this.options.map((option) => (h("option", { value: option.value, selected: option.value === this.value }, option.label)))), h("svg", { key: '7d66788b8d8b51169ae28e5e5c5a31c0b637e377', class: "chevron", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: 'aaa00671ba95ebd20f81174fc27bf218b16dfc64', points: "6 9 12 15 18 9" })))));
16
+ return (h(Host, { key: '5f41047362d77643cc663925900c15c6cd10ec60' }, h("div", { key: '53ec77b2100bdd6de568ad549a42ad8fd080ac6a', class: "wrapper" }, h("select", { key: 'b0b4b1def7b7166bf24f996f9736a670a9b7b052', class: "select", name: this.name, disabled: this.disabled, onChange: this.onChange }, this.placeholder && (h("option", { key: 'e83b039418ac74bb3124c151dca9af43ff05dd61', value: "", disabled: true, selected: !hasValue }, this.placeholder)), this.options.map((option) => (h("option", { value: option.value, selected: option.value === this.value }, option.label)))), h("svg", { key: 'bb3165c856d11b352b2c7a64cc12ab4284541fb4', class: "chevron", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: 'ab5e3cb2419dc63fbcd3804740b781c856ae8240', points: "6 9 12 15 18 9" })))));
17
17
  }
18
18
  static get is() { return "ui-select"; }
19
19
  static get encapsulation() { return "shadow"; }
@@ -5,7 +5,7 @@ export class UiSeparator {
5
5
  this.orientation = "horizontal";
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: '212e4b763ad309ef74ba2e21592a0d4091fb0fcf', role: "separator", "aria-orientation": this.orientation, class: `orientation-${this.orientation}` }));
8
+ return (h(Host, { key: '33e452485ff7838e37a378f9acba10f242069cfc', role: "separator", "aria-orientation": this.orientation, class: `orientation-${this.orientation}` }));
9
9
  }
10
10
  static get is() { return "ui-separator"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class UiSkeleton {
3
3
  render() {
4
- return (h(Host, { key: 'a7ce8aa1c475aaa92353b0eb6bad5ded231a5cd1' }, h("span", { key: '0611976380d3fb93d1ac64bfdc5d4686568c5129', class: "skeleton" })));
4
+ return (h(Host, { key: '8f839817a493a8221e9d3b2e95fd7ae5ece2e70e' }, h("span", { key: '295dce8e9e6489def8b20a703f04c65ad3740ce8', class: "skeleton" })));
5
5
  }
6
6
  static get is() { return "ui-skeleton"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -21,7 +21,7 @@ export class UiSlider {
21
21
  };
22
22
  }
23
23
  render() {
24
- return (h(Host, { key: '08226142947909bff3ccecd5fc780d75515c2ee2' }, h("input", { key: '192bd60cd8b0c1e8d6029272fd317c0d786b36ca', class: "slider", type: "range", min: this.min, max: this.max, step: this.step, value: this.value, disabled: this.disabled, onInput: this.onInput, onChange: this.onChange })));
24
+ return (h(Host, { key: '22fe57f0e95edb2e169718c8b1fb5c2f3d78ddfe' }, h("input", { key: 'a9e16ef8f97f412c22911f72c4b7212f6d04a293', class: "slider", type: "range", min: this.min, max: this.max, step: this.step, value: this.value, disabled: this.disabled, onInput: this.onInput, onChange: this.onChange })));
25
25
  }
26
26
  static get is() { return "ui-slider"; }
27
27
  static get encapsulation() { return "shadow"; }
@@ -5,7 +5,7 @@ export class UiSpinner {
5
5
  this.size = "md";
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: 'cedf6e857d1f4e6561c78f3fd3076341c2d8ecdc', role: "status" }, h("span", { key: '7200580dccc32b30829725ad84e913c3b1afee60', class: { spinner: true, [`size-${this.size}`]: true } }), h("span", { key: '63d4cfee2e5cebabc3c7b3b6ed95a656daa65705', class: "sr-only" }, "Carregando")));
8
+ return (h(Host, { key: '0414d6e3be8588ad4c71c5e4cf227075ac7494ab', role: "status" }, h("span", { key: '61e5d0a16b5fd566767ef098477c3144a9c1c987', class: { spinner: true, [`size-${this.size}`]: true } }), h("span", { key: 'ea33b6e6603ba23e7a117ef978329c83818a044b', class: "sr-only" }, "Carregando")));
9
9
  }
10
10
  static get is() { return "ui-spinner"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,8 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .stack {
6
+ display: flex;
7
+ font-family: var(--ui-font-sans);
8
+ }
@@ -0,0 +1,184 @@
1
+ import { h, Host } from "@stencil/core";
2
+ const GAP = {
3
+ xs: "0.25rem",
4
+ sm: "0.5rem",
5
+ md: "1rem",
6
+ lg: "1.5rem",
7
+ xl: "2rem",
8
+ };
9
+ const ALIGN = {
10
+ start: "flex-start",
11
+ center: "center",
12
+ end: "flex-end",
13
+ stretch: "stretch",
14
+ };
15
+ const JUSTIFY = {
16
+ start: "flex-start",
17
+ center: "center",
18
+ end: "flex-end",
19
+ between: "space-between",
20
+ };
21
+ export class UiStack {
22
+ constructor() {
23
+ /** Direção do empilhamento. */
24
+ this.direction = "vertical";
25
+ /** Espaçamento entre itens. */
26
+ this.gap = "md";
27
+ /** Alinhamento no eixo cruzado. */
28
+ this.align = "stretch";
29
+ /** Distribuição no eixo principal. */
30
+ this.justify = "start";
31
+ /** Permite quebra de linha dos itens. */
32
+ this.wrap = false;
33
+ }
34
+ render() {
35
+ const style = {
36
+ flexDirection: this.direction === "horizontal" ? "row" : "column",
37
+ gap: GAP[this.gap],
38
+ alignItems: ALIGN[this.align],
39
+ justifyContent: JUSTIFY[this.justify],
40
+ flexWrap: this.wrap ? "wrap" : "nowrap",
41
+ };
42
+ return (h(Host, { key: 'ba9547e72877aa05a5e93afbe098d7402b315df3' }, h("div", { key: 'e0fd73777e2211925435f2fd8bfcb74ad2eb8085', class: "stack", style: style }, h("slot", { key: '3a5aa50721c641f0cc81328a21262ff5d375e55c' }))));
43
+ }
44
+ static get is() { return "ui-stack"; }
45
+ static get encapsulation() { return "shadow"; }
46
+ static get originalStyleUrls() {
47
+ return {
48
+ "$": ["ui-stack.css"]
49
+ };
50
+ }
51
+ static get styleUrls() {
52
+ return {
53
+ "$": ["ui-stack.css"]
54
+ };
55
+ }
56
+ static get properties() {
57
+ return {
58
+ "direction": {
59
+ "type": "string",
60
+ "mutable": false,
61
+ "complexType": {
62
+ "original": "UiStackDirection",
63
+ "resolved": "\"horizontal\" | \"vertical\"",
64
+ "references": {
65
+ "UiStackDirection": {
66
+ "location": "local",
67
+ "path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
68
+ "id": "src/components/ui-stack/ui-stack.tsx::UiStackDirection"
69
+ }
70
+ }
71
+ },
72
+ "required": false,
73
+ "optional": false,
74
+ "docs": {
75
+ "tags": [],
76
+ "text": "Dire\u00E7\u00E3o do empilhamento."
77
+ },
78
+ "getter": false,
79
+ "setter": false,
80
+ "reflect": false,
81
+ "attribute": "direction",
82
+ "defaultValue": "\"vertical\""
83
+ },
84
+ "gap": {
85
+ "type": "string",
86
+ "mutable": false,
87
+ "complexType": {
88
+ "original": "UiStackGap",
89
+ "resolved": "\"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\"",
90
+ "references": {
91
+ "UiStackGap": {
92
+ "location": "local",
93
+ "path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
94
+ "id": "src/components/ui-stack/ui-stack.tsx::UiStackGap"
95
+ }
96
+ }
97
+ },
98
+ "required": false,
99
+ "optional": false,
100
+ "docs": {
101
+ "tags": [],
102
+ "text": "Espa\u00E7amento entre itens."
103
+ },
104
+ "getter": false,
105
+ "setter": false,
106
+ "reflect": false,
107
+ "attribute": "gap",
108
+ "defaultValue": "\"md\""
109
+ },
110
+ "align": {
111
+ "type": "string",
112
+ "mutable": false,
113
+ "complexType": {
114
+ "original": "UiStackAlign",
115
+ "resolved": "\"center\" | \"end\" | \"start\" | \"stretch\"",
116
+ "references": {
117
+ "UiStackAlign": {
118
+ "location": "local",
119
+ "path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
120
+ "id": "src/components/ui-stack/ui-stack.tsx::UiStackAlign"
121
+ }
122
+ }
123
+ },
124
+ "required": false,
125
+ "optional": false,
126
+ "docs": {
127
+ "tags": [],
128
+ "text": "Alinhamento no eixo cruzado."
129
+ },
130
+ "getter": false,
131
+ "setter": false,
132
+ "reflect": false,
133
+ "attribute": "align",
134
+ "defaultValue": "\"stretch\""
135
+ },
136
+ "justify": {
137
+ "type": "string",
138
+ "mutable": false,
139
+ "complexType": {
140
+ "original": "UiStackJustify",
141
+ "resolved": "\"between\" | \"center\" | \"end\" | \"start\"",
142
+ "references": {
143
+ "UiStackJustify": {
144
+ "location": "local",
145
+ "path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stack/ui-stack.tsx",
146
+ "id": "src/components/ui-stack/ui-stack.tsx::UiStackJustify"
147
+ }
148
+ }
149
+ },
150
+ "required": false,
151
+ "optional": false,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": "Distribui\u00E7\u00E3o no eixo principal."
155
+ },
156
+ "getter": false,
157
+ "setter": false,
158
+ "reflect": false,
159
+ "attribute": "justify",
160
+ "defaultValue": "\"start\""
161
+ },
162
+ "wrap": {
163
+ "type": "boolean",
164
+ "mutable": false,
165
+ "complexType": {
166
+ "original": "boolean",
167
+ "resolved": "boolean",
168
+ "references": {}
169
+ },
170
+ "required": false,
171
+ "optional": false,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": "Permite quebra de linha dos itens."
175
+ },
176
+ "getter": false,
177
+ "setter": false,
178
+ "reflect": false,
179
+ "attribute": "wrap",
180
+ "defaultValue": "false"
181
+ }
182
+ };
183
+ }
184
+ }
@@ -0,0 +1,69 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .card {
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: 0.5rem;
9
+ padding: 1.25rem;
10
+ border: 1px solid var(--ui-border);
11
+ border-radius: var(--ui-radius-lg);
12
+ background: var(--ui-panel);
13
+ backdrop-filter: blur(22px);
14
+ font-family: var(--ui-font-sans);
15
+ }
16
+
17
+ .label {
18
+ margin: 0;
19
+ text-transform: uppercase;
20
+ letter-spacing: 0.08em;
21
+ font-size: 0.7rem;
22
+ font-weight: 500;
23
+ color: var(--ui-text-faint);
24
+ }
25
+
26
+ .value-row {
27
+ display: flex;
28
+ align-items: baseline;
29
+ gap: 0.625rem;
30
+ }
31
+
32
+ .value {
33
+ font-size: 1.875rem;
34
+ font-weight: 600;
35
+ line-height: 1.1;
36
+ color: var(--ui-foreground);
37
+ }
38
+
39
+ .delta {
40
+ display: inline-flex;
41
+ align-items: center;
42
+ gap: 0.25rem;
43
+ padding: 0.125rem 0.5rem;
44
+ border-radius: var(--ui-radius-full);
45
+ font-size: 0.75rem;
46
+ font-weight: 600;
47
+ }
48
+
49
+ .delta svg {
50
+ display: block;
51
+ }
52
+
53
+ .trend-up {
54
+ color: var(--ui-success);
55
+ background: color-mix(in srgb, var(--ui-success) 14%, transparent);
56
+ }
57
+ .trend-down {
58
+ color: var(--ui-danger);
59
+ background: color-mix(in srgb, var(--ui-danger) 14%, transparent);
60
+ }
61
+ .trend-neutral {
62
+ color: var(--ui-text-muted);
63
+ background: var(--ui-chip);
64
+ }
65
+
66
+ .extra {
67
+ font-size: 0.8125rem;
68
+ color: var(--ui-text-muted);
69
+ }
@@ -0,0 +1,118 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class UiStat {
3
+ constructor() {
4
+ /** Direção da tendência. */
5
+ this.trend = "neutral";
6
+ }
7
+ renderArrow() {
8
+ if (this.trend === "down") {
9
+ return (h("svg", { width: "10", height: "10", viewBox: "0 0 12 12", fill: "currentColor", "aria-hidden": "true" }, h("path", { d: "M6 11 1 4h10z" })));
10
+ }
11
+ if (this.trend === "up") {
12
+ return (h("svg", { width: "10", height: "10", viewBox: "0 0 12 12", fill: "currentColor", "aria-hidden": "true" }, h("path", { d: "M6 1 11 8H1z" })));
13
+ }
14
+ return null;
15
+ }
16
+ render() {
17
+ return (h(Host, { key: '7afc03397921ff23d08da136999896a40d8a31be' }, h("div", { key: '35a7d594e9ebb426f10ff256ba4805ee88a0100c', class: "card" }, h("p", { key: '92a82cf415c22f884ed782d410e25559ff391017', class: "label" }, this.label), h("div", { key: '1c8d08800ca0a6f38e574930c5187ec979666a62', class: "value-row" }, h("span", { key: '0bb5e825e9d51a045638f48616c24bdc7a4a0ee0', class: "value" }, this.value), this.delta && (h("span", { key: '01aa434582c8eee2c1fd6b69c16de0262fb89daf', class: { delta: true, [`trend-${this.trend}`]: true } }, this.renderArrow(), this.delta))), h("div", { key: '4446e15c156412cc8b6c72f823a49396f31e8e74', class: "extra" }, h("slot", { key: 'ca4e0cc60f588840d3fd88e3efaecabb84cd633d' })))));
18
+ }
19
+ static get is() { return "ui-stat"; }
20
+ static get encapsulation() { return "shadow"; }
21
+ static get originalStyleUrls() {
22
+ return {
23
+ "$": ["ui-stat.css"]
24
+ };
25
+ }
26
+ static get styleUrls() {
27
+ return {
28
+ "$": ["ui-stat.css"]
29
+ };
30
+ }
31
+ static get properties() {
32
+ return {
33
+ "label": {
34
+ "type": "string",
35
+ "mutable": false,
36
+ "complexType": {
37
+ "original": "string",
38
+ "resolved": "string",
39
+ "references": {}
40
+ },
41
+ "required": true,
42
+ "optional": false,
43
+ "docs": {
44
+ "tags": [],
45
+ "text": "R\u00F3tulo da m\u00E9trica."
46
+ },
47
+ "getter": false,
48
+ "setter": false,
49
+ "reflect": false,
50
+ "attribute": "label"
51
+ },
52
+ "value": {
53
+ "type": "string",
54
+ "mutable": false,
55
+ "complexType": {
56
+ "original": "string",
57
+ "resolved": "string",
58
+ "references": {}
59
+ },
60
+ "required": true,
61
+ "optional": false,
62
+ "docs": {
63
+ "tags": [],
64
+ "text": "Valor principal exibido."
65
+ },
66
+ "getter": false,
67
+ "setter": false,
68
+ "reflect": false,
69
+ "attribute": "value"
70
+ },
71
+ "delta": {
72
+ "type": "string",
73
+ "mutable": false,
74
+ "complexType": {
75
+ "original": "string",
76
+ "resolved": "string | undefined",
77
+ "references": {}
78
+ },
79
+ "required": false,
80
+ "optional": true,
81
+ "docs": {
82
+ "tags": [],
83
+ "text": "Varia\u00E7\u00E3o exibida no chip (ex.: \"+12%\")."
84
+ },
85
+ "getter": false,
86
+ "setter": false,
87
+ "reflect": false,
88
+ "attribute": "delta"
89
+ },
90
+ "trend": {
91
+ "type": "string",
92
+ "mutable": false,
93
+ "complexType": {
94
+ "original": "UiStatTrend",
95
+ "resolved": "\"down\" | \"neutral\" | \"up\"",
96
+ "references": {
97
+ "UiStatTrend": {
98
+ "location": "local",
99
+ "path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-stat/ui-stat.tsx",
100
+ "id": "src/components/ui-stat/ui-stat.tsx::UiStatTrend"
101
+ }
102
+ }
103
+ },
104
+ "required": false,
105
+ "optional": false,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": "Dire\u00E7\u00E3o da tend\u00EAncia."
109
+ },
110
+ "getter": false,
111
+ "setter": false,
112
+ "reflect": false,
113
+ "attribute": "trend",
114
+ "defaultValue": "\"neutral\""
115
+ }
116
+ };
117
+ }
118
+ }
@@ -19,7 +19,7 @@ export class UiSwitch {
19
19
  };
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: '0650dcb564622448421a576b17093cfeeb7a3a6d' }, h("button", { key: '09e705ce9642f4c11b84bc876577b9e55dab1e52', class: "switch", type: "button", role: "switch", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, h("span", { key: 'd237bee4724d5f9a199f4794217d1528c074caac', class: "thumb" }))));
22
+ return (h(Host, { key: '018ccd47d567e5c16ce40a600c15a9e2281301d2' }, h("button", { key: '7975d671d3c6d048b760b285a68e9ae832c93ebc', class: "switch", type: "button", role: "switch", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, h("span", { key: '4ac740348a215ff97e0cae3bbbbd411163760792', class: "thumb" }))));
23
23
  }
24
24
  static get is() { return "ui-switch"; }
25
25
  static get encapsulation() { return "shadow"; }
@@ -13,10 +13,10 @@ export class UiTabs {
13
13
  };
14
14
  }
15
15
  render() {
16
- return (h(Host, { key: '8828dc9385a8c206a751e39fda9869116dda3001' }, h("div", { key: '8e13dc53f1c03da5a52adb8ec86da91c78c502b2', class: "tablist", role: "tablist" }, this.items.map((item) => {
16
+ return (h(Host, { key: 'fc0926743b6a547c13660f574fc56abefc6e6c2e' }, h("div", { key: 'a1582c6234e1faaa5cb6b563a51ecf2192a88d40', class: "tablist", role: "tablist" }, this.items.map((item) => {
17
17
  const active = item.value === this.value;
18
18
  return (h("button", { key: item.value, class: { tab: true, active }, type: "button", role: "tab", "aria-selected": active ? "true" : "false", onClick: () => this.select(item.value) }, item.label));
19
- })), h("div", { key: '1e46e18417426af6053490cde8e7637e4bae7855', class: "panel", role: "tabpanel" }, h("slot", { key: 'efb63794fca013a54a1b2f261c4a72cd18ce3ef0', name: this.value }))));
19
+ })), h("div", { key: '5d9b8d61e8005b7e6baa216ffd571f7b9403acd5', class: "panel", role: "tabpanel" }, h("slot", { key: '8ba0cf22e6e837f038c2ec7fad8d533287325119', name: this.value }))));
20
20
  }
21
21
  static get is() { return "ui-tabs"; }
22
22
  static get encapsulation() { return "shadow"; }
@@ -19,7 +19,7 @@ export class UiTextarea {
19
19
  };
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: 'f0bafb6320cd48642dac3b5f1e07399f88a78b03' }, h("textarea", { key: 'fc99c0b899dd17477928b9f38273fd822d46935b', class: { textarea: true, invalid: this.invalid }, name: this.name, rows: this.rows, placeholder: this.placeholder, disabled: this.disabled, "aria-invalid": this.invalid ? "true" : null, onInput: this.onInput, onChange: this.onChange }, this.value)));
22
+ return (h(Host, { key: 'ba1b88ab3fa990a903e6d61f31fbbade7b58eb27' }, h("textarea", { key: 'f9ac9e1aff98e94b3562b812cef34fcc138cd350', class: { textarea: true, invalid: this.invalid }, name: this.name, rows: this.rows, placeholder: this.placeholder, disabled: this.disabled, "aria-invalid": this.invalid ? "true" : null, onInput: this.onInput, onChange: this.onChange }, this.value)));
23
23
  }
24
24
  static get is() { return "ui-textarea"; }
25
25
  static get encapsulation() { return "shadow"; }
@@ -50,7 +50,7 @@ export class UiThemeToggle {
50
50
  return (h("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("circle", { cx: "12", cy: "12", r: "4" }), h("line", { x1: "12", y1: "2", x2: "12", y2: "4" }), h("line", { x1: "12", y1: "20", x2: "12", y2: "22" }), h("line", { x1: "2", y1: "12", x2: "4", y2: "12" }), h("line", { x1: "20", y1: "12", x2: "22", y2: "12" }), h("line", { x1: "4.93", y1: "4.93", x2: "6.34", y2: "6.34" }), h("line", { x1: "17.66", y1: "17.66", x2: "19.07", y2: "19.07" }), h("line", { x1: "4.93", y1: "19.07", x2: "6.34", y2: "17.66" }), h("line", { x1: "17.66", y1: "6.34", x2: "19.07", y2: "4.93" })));
51
51
  }
52
52
  render() {
53
- return (h(Host, { key: '6b55c31df3938ab37336e4e4c4ed90e9b149a440' }, h("button", { key: '7640122c47871bc67aad6f74b59229219fdb348b', class: "toggle", type: "button", "aria-label": this.isDark ? "Ativar tema claro" : "Ativar tema escuro", "aria-pressed": this.isDark ? "true" : "false", onClick: this.toggle }, this.renderIcon())));
53
+ return (h(Host, { key: 'da51d59a9d5b28dec214d4fe63f5cebf78d80a51' }, h("button", { key: '55436252c82f49628c4b0394905623bc5a78dc00', class: "toggle", type: "button", "aria-label": this.isDark ? "Ativar tema claro" : "Ativar tema escuro", "aria-pressed": this.isDark ? "true" : "false", onClick: this.toggle }, this.renderIcon())));
54
54
  }
55
55
  static get is() { return "ui-theme-toggle"; }
56
56
  static get encapsulation() { return "shadow"; }
@@ -47,7 +47,7 @@ export class UiToast {
47
47
  this.dismiss();
48
48
  }
49
49
  render() {
50
- return (h(Host, { key: 'fe0318f91899e78faeb2ac07a7a06bfe42f9d3fd' }, this.open && (h("div", { key: '66dc197d7a493ad7a7cb9aa982fc92bc0541d21f', class: { toast: true, [`variant-${this.variant}`]: true }, role: "status" }, h("div", { key: 'df1fbb34582de4d10a84402653e7d7d528d8faa0', class: "body" }, this.heading && h("p", { key: '7c14d43a9397320bda3a79b60637da9d48c31945', class: "heading" }, this.heading), this.description && (h("p", { key: '6c83f1b075b3df34c1ce05e8c43627903ddbba4e', class: "description" }, this.description))), h("button", { key: '922acc1bc264b59ce708014decb078182d7909b4', class: "close", type: "button", "aria-label": "Fechar", onClick: () => this.dismiss() }, h("svg", { key: '10541297b8fc83a5da11b640933f6c3695602cb0', width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { key: '964b3dc70120841eb01fffeef9e7ddcbd30880ec', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: 'e45490846076269a527a0f722e32e61206cc2d9d', x1: "6", y1: "6", x2: "18", y2: "18" })))))));
50
+ return (h(Host, { key: '79bd3e7ed207efd5ff62f5296ab11a06993ce347' }, this.open && (h("div", { key: '15a138288380473dff3ff1880e3298e211377339', class: { toast: true, [`variant-${this.variant}`]: true }, role: "status" }, h("div", { key: '33adfee858ddfd37f144b34f8677f312b89c04f3', class: "body" }, this.heading && h("p", { key: 'a56d837636f27897f06a8d693f28763b4bc95db6', class: "heading" }, this.heading), this.description && (h("p", { key: '7c86fb20c84c42e3c5e3262cc91061e9a80804aa', class: "description" }, this.description))), h("button", { key: '4d8160818b76b65c29a27e4404c39a7525441a72', class: "close", type: "button", "aria-label": "Fechar", onClick: () => this.dismiss() }, h("svg", { key: 'ce7ee6982cc1d742b4d4de8573ca11d18166c814', width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("line", { key: 'c8440dbbb12ce67dd30a052aef92bc736a4532f9', x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { key: '9ee2d2ec78efa7566e63feb337e346a5574ccf55', x1: "6", y1: "6", x2: "18", y2: "18" })))))));
51
51
  }
52
52
  static get is() { return "ui-toast"; }
53
53
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class UiToaster {
15
15
  this.items = this.items.filter((item) => item.id !== id);
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '18ad65a18488bd061c2fa8eb2ad33c41a472d850' }, h("div", { key: 'de7ae9b62cd155d13c5a8d018ea2970d509e74e6', class: "container" }, this.items.map((item) => (h("ui-toast", { key: item.id, open: true, heading: item.heading, description: item.description, variant: item.variant ?? "default", duration: item.duration ?? 4000, onUiClose: () => this.remove(item.id) }))))));
18
+ return (h(Host, { key: 'eb3198a053270b41c8b632b91135987f04735ac5' }, h("div", { key: 'd37bf3710646977e7db39690f221e76360c43aee', class: "container" }, this.items.map((item) => (h("ui-toast", { key: item.id, open: true, heading: item.heading, description: item.description, variant: item.variant ?? "default", duration: item.duration ?? 4000, onUiClose: () => this.remove(item.id) }))))));
19
19
  }
20
20
  static get is() { return "ui-toaster"; }
21
21
  static get encapsulation() { return "shadow"; }
@@ -49,7 +49,7 @@ export class UiTooltip {
49
49
  this.cleanup = undefined;
50
50
  }
51
51
  render() {
52
- return (h(Host, { key: '5a3f2a7cf235a6c31c8a4d3ebd4f0d517c7e7b5d', onMouseEnter: this.onEnter, onMouseLeave: this.onLeave, onFocusin: this.onEnter, onFocusout: this.onLeave }, h("span", { key: 'f626c5ec5686959449c5a2dd1c80551fd6b19087', class: "trigger", ref: (el) => (this.triggerEl = el) }, h("slot", { key: '08a19214efd0eba04d715b76a63a2cc53ed3a5c6' })), h("div", { key: 'b598af62ab976599a5274cc85f01b4ab7543dabf', class: { tooltip: true, "is-visible": this.visible }, role: "tooltip", ref: (el) => (this.floatingEl = el) }, this.content)));
52
+ return (h(Host, { key: '5e20fbcdd1ae94f29596938ab465a863b46ed65b', onMouseEnter: this.onEnter, onMouseLeave: this.onLeave, onFocusin: this.onEnter, onFocusout: this.onLeave }, h("span", { key: '5f4e8b75930fee583f37f1977473c60f6e681ee6', class: "trigger", ref: (el) => (this.triggerEl = el) }, h("slot", { key: 'eae9e842023fe1e4589d2af1889c6e6753bc9010' })), h("div", { key: 'dc815b28e5d1dfbd91a970ce50b77fc8ecd3f5ab', class: { tooltip: true, "is-visible": this.visible }, role: "tooltip", ref: (el) => (this.floatingEl = el) }, this.content)));
53
53
  }
54
54
  static get is() { return "ui-tooltip"; }
55
55
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- import{t as e,p as s,H as i,h as r,a as n}from"./index.js";const t=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.size="md"}render(){return r(n,{key:"cedf6e857d1f4e6561c78f3fd3076341c2d8ecdc",role:"status"},r("span",{key:"7200580dccc32b30829725ad84e913c3b1afee60",class:{spinner:!0,[`size-${this.size}`]:!0}}),r("span",{key:"63d4cfee2e5cebabc3c7b3b6ed95a656daa65705",class:"sr-only"},"Carregando"))}static get style(){return":host{display:inline-flex;color:var(--ui-accent)}.spinner{display:inline-block;border-radius:var(--ui-radius-full);border:2px solid currentColor;border-top-color:transparent;animation:ui-spinner-spin 0.7s linear infinite}.size-sm{width:1rem;height:1rem}.size-md{width:1.5rem;height:1.5rem}.size-lg{width:2rem;height:2rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@keyframes ui-spinner-spin{to{transform:rotate(360deg)}}"}},[1,"ui-spinner",{size:[1]}]);function a(){"undefined"!=typeof customElements&&["ui-spinner"].forEach((s=>{"ui-spinner"===s&&(customElements.get(e(s))||customElements.define(e(s),t))}))}a();export{t as U,a as d}
1
+ import{t as e,p as s,H as i,h as r,a as n}from"./index.js";const t=s(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.size="md"}render(){return r(n,{key:"0414d6e3be8588ad4c71c5e4cf227075ac7494ab",role:"status"},r("span",{key:"61e5d0a16b5fd566767ef098477c3144a9c1c987",class:{spinner:!0,[`size-${this.size}`]:!0}}),r("span",{key:"ea33b6e6603ba23e7a117ef978329c83818a044b",class:"sr-only"},"Carregando"))}static get style(){return":host{display:inline-flex;color:var(--ui-accent)}.spinner{display:inline-block;border-radius:var(--ui-radius-full);border:2px solid currentColor;border-top-color:transparent;animation:ui-spinner-spin 0.7s linear infinite}.size-sm{width:1rem;height:1rem}.size-md{width:1.5rem;height:1.5rem}.size-lg{width:2rem;height:2rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@keyframes ui-spinner-spin{to{transform:rotate(360deg)}}"}},[1,"ui-spinner",{size:[1]}]);function a(){"undefined"!=typeof customElements&&["ui-spinner"].forEach((s=>{"ui-spinner"===s&&(customElements.get(e(s))||customElements.define(e(s),t))}))}a();export{t as U,a as d}