@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
@@ -5,7 +5,7 @@ export class UiAvatar {
5
5
  this.alt = "";
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: '7a6bbef0807d0d3dc25692a6bf87171131579e46' }, h("span", { key: '6b548ed4e5ec0dc7bb52dcb3660ffc188705439f', class: "avatar" }, this.src ? (h("img", { class: "image", src: this.src, alt: this.alt })) : (h("span", { class: "fallback" }, this.fallback)))));
8
+ return (h(Host, { key: '0a3b07acb18d2ddeecf3b072fcd6913dbc187474' }, h("span", { key: '9b6c302f378ef47385f43d24a3fe491cdec0bfe0', class: "wrapper" }, h("span", { key: '5093f8e180da9c3b1583da7f651bc69be89821b9', class: "avatar" }, this.src ? (h("img", { class: "image", src: this.src, alt: this.alt })) : (h("span", { class: "fallback" }, this.fallback))), this.status && (h("span", { key: '920d70149458e747aef1ac35c945a0b403986928', class: `status status-${this.status}`, "aria-label": this.status })))));
9
9
  }
10
10
  static get is() { return "ui-avatar"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -78,6 +78,25 @@ export class UiAvatar {
78
78
  "setter": false,
79
79
  "reflect": false,
80
80
  "attribute": "fallback"
81
+ },
82
+ "status": {
83
+ "type": "string",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "\"online\" | \"offline\" | \"busy\" | \"away\"",
87
+ "resolved": "\"away\" | \"busy\" | \"offline\" | \"online\" | undefined",
88
+ "references": {}
89
+ },
90
+ "required": false,
91
+ "optional": true,
92
+ "docs": {
93
+ "tags": [],
94
+ "text": "Indicador de status."
95
+ },
96
+ "getter": false,
97
+ "setter": false,
98
+ "reflect": false,
99
+ "attribute": "status"
81
100
  }
82
101
  };
83
102
  }
@@ -0,0 +1,22 @@
1
+ :host {
2
+ display: inline-flex;
3
+ }
4
+
5
+ .group {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ }
9
+
10
+ /* Sobreposição: cada avatar (exceto o primeiro) recua e ganha um anel. */
11
+ ::slotted(*) {
12
+ border-radius: var(--ui-radius-full);
13
+ }
14
+
15
+ ::slotted(*:not(:first-child)) {
16
+ margin-left: -0.6rem;
17
+ }
18
+
19
+ ::slotted(ui-avatar) {
20
+ outline: 2px solid var(--ui-background);
21
+ border-radius: var(--ui-radius-full);
22
+ }
@@ -0,0 +1,21 @@
1
+ import { h, Host } from "@stencil/core";
2
+ /**
3
+ * Agrupa avatares sobrepostos. Use com elementos `<ui-avatar>` no slot default.
4
+ */
5
+ export class UiAvatarGroup {
6
+ render() {
7
+ return (h(Host, { key: '2413b9065333e5beb192143529b60daceefc11fe' }, h("div", { key: 'df93cb1e73bc05abfee09226111da32f50bf908d', class: "group" }, h("slot", { key: 'fa7fc7b57b009355e32c904cc78b46848403c0eb' }))));
8
+ }
9
+ static get is() { return "ui-avatar-group"; }
10
+ static get encapsulation() { return "shadow"; }
11
+ static get originalStyleUrls() {
12
+ return {
13
+ "$": ["ui-avatar-group.css"]
14
+ };
15
+ }
16
+ static get styleUrls() {
17
+ return {
18
+ "$": ["ui-avatar-group.css"]
19
+ };
20
+ }
21
+ }
@@ -44,3 +44,29 @@
44
44
  background: color-mix(in srgb, var(--ui-info) 15%, transparent);
45
45
  color: var(--ui-info);
46
46
  }
47
+
48
+ .dot {
49
+ width: 0.4rem;
50
+ height: 0.4rem;
51
+ border-radius: var(--ui-radius-full);
52
+ background: currentColor;
53
+ }
54
+
55
+ .remove {
56
+ display: inline-flex;
57
+ align-items: center;
58
+ justify-content: center;
59
+ margin: 0 -0.25rem 0 0.125rem;
60
+ padding: 0.125rem;
61
+ border: none;
62
+ border-radius: var(--ui-radius-full);
63
+ background: transparent;
64
+ color: inherit;
65
+ cursor: pointer;
66
+ opacity: 0.7;
67
+ transition: opacity var(--ui-duration) var(--ui-ease);
68
+ }
69
+
70
+ .remove:hover {
71
+ opacity: 1;
72
+ }
@@ -3,9 +3,13 @@ export class UiBadge {
3
3
  constructor() {
4
4
  /** Variante visual. */
5
5
  this.variant = "default";
6
+ /** Exibe um ponto colorido à esquerda. */
7
+ this.dot = false;
8
+ /** Exibe um botão para remover o badge. */
9
+ this.removable = false;
6
10
  }
7
11
  render() {
8
- return (h(Host, { key: '260e9e23ffa9a624e17e5a794217402ab2167f31' }, h("span", { key: '1b0d40c5b9a46c5928132d050e3c2f9e3bcd4ea8', class: { badge: true, [`variant-${this.variant}`]: true } }, h("slot", { key: '9680659040a4d48bdb53415e40bbbef9819063d9' }))));
12
+ return (h(Host, { key: '30760a471c805c011e45b1ee2c59507de0774b3c' }, h("span", { key: 'f06905297a3c5641634104a014452737d34918cc', class: { badge: true, [`variant-${this.variant}`]: true } }, this.dot && h("span", { key: '255e4debacda174708abb165159347c6aeeffced', class: "dot" }), h("slot", { key: 'e8fb22f25b0b1c805289e3e6d1108a1cb93b5e28' }), this.removable && (h("button", { key: 'a30d3213f31780e4c3fa80d98b45ae539b711f43', class: "remove", type: "button", "aria-label": "Remover", onClick: () => this.uiRemove.emit() }, h("svg", { key: 'e57df3139096ea131fa1c3fbddf51f6507423346', viewBox: "0 0 24 24", width: "12", height: "12", fill: "none", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round" }, h("path", { key: 'da3810852846ac9cda68957d7dadcb3737be348d', d: "M18 6 6 18M6 6l12 12" })))))));
9
13
  }
10
14
  static get is() { return "ui-badge"; }
11
15
  static get encapsulation() { return "shadow"; }
@@ -46,7 +50,65 @@ export class UiBadge {
46
50
  "reflect": false,
47
51
  "attribute": "variant",
48
52
  "defaultValue": "\"default\""
53
+ },
54
+ "dot": {
55
+ "type": "boolean",
56
+ "mutable": false,
57
+ "complexType": {
58
+ "original": "boolean",
59
+ "resolved": "boolean",
60
+ "references": {}
61
+ },
62
+ "required": false,
63
+ "optional": false,
64
+ "docs": {
65
+ "tags": [],
66
+ "text": "Exibe um ponto colorido \u00E0 esquerda."
67
+ },
68
+ "getter": false,
69
+ "setter": false,
70
+ "reflect": false,
71
+ "attribute": "dot",
72
+ "defaultValue": "false"
73
+ },
74
+ "removable": {
75
+ "type": "boolean",
76
+ "mutable": false,
77
+ "complexType": {
78
+ "original": "boolean",
79
+ "resolved": "boolean",
80
+ "references": {}
81
+ },
82
+ "required": false,
83
+ "optional": false,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": "Exibe um bot\u00E3o para remover o badge."
87
+ },
88
+ "getter": false,
89
+ "setter": false,
90
+ "reflect": false,
91
+ "attribute": "removable",
92
+ "defaultValue": "false"
49
93
  }
50
94
  };
51
95
  }
96
+ static get events() {
97
+ return [{
98
+ "method": "uiRemove",
99
+ "name": "uiRemove",
100
+ "bubbles": true,
101
+ "cancelable": true,
102
+ "composed": true,
103
+ "docs": {
104
+ "tags": [],
105
+ "text": "Emitido ao clicar no bot\u00E3o de remover."
106
+ },
107
+ "complexType": {
108
+ "original": "void",
109
+ "resolved": "void",
110
+ "references": {}
111
+ }
112
+ }];
113
+ }
52
114
  }
@@ -0,0 +1,15 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ ol {
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ align-items: center;
9
+ gap: 0.5rem;
10
+ margin: 0;
11
+ padding: 0;
12
+ list-style: none;
13
+ font-family: var(--ui-font-sans);
14
+ font-size: 0.875rem;
15
+ }
@@ -0,0 +1,18 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class UiBreadcrumb {
3
+ render() {
4
+ return (h(Host, { key: '3c86ea43e5dde2c8486b49f8c2ece55f66c4dec5' }, h("nav", { key: '6da35c2ffc4b7c2aa13d3321ed6227d97be59e80', "aria-label": "breadcrumb" }, h("ol", { key: '567cb7aaf4e8ae8f1e15369b45b482104f1264da' }, h("slot", { key: '5f942426d1195ea0eae8256ebfb01d25b6f350ab' })))));
5
+ }
6
+ static get is() { return "ui-breadcrumb"; }
7
+ static get encapsulation() { return "shadow"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["ui-breadcrumb.css"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["ui-breadcrumb.css"]
16
+ };
17
+ }
18
+ }
@@ -0,0 +1,30 @@
1
+ :host {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ }
5
+
6
+ .link {
7
+ color: var(--ui-text-muted);
8
+ text-decoration: none;
9
+ transition: color var(--ui-duration) var(--ui-ease);
10
+ }
11
+
12
+ .link:hover {
13
+ color: var(--ui-accent);
14
+ }
15
+
16
+ .current {
17
+ color: var(--ui-foreground);
18
+ font-weight: 500;
19
+ }
20
+
21
+ .separator {
22
+ display: inline-flex;
23
+ align-items: center;
24
+ margin: 0 0.5rem;
25
+ color: var(--ui-text-faint);
26
+ }
27
+
28
+ .separator svg {
29
+ display: block;
30
+ }
@@ -0,0 +1,69 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class UiBreadcrumbItem {
3
+ constructor() {
4
+ /** Indica o item atual (página corrente). */
5
+ this.current = false;
6
+ }
7
+ renderSeparator() {
8
+ return (h("span", { class: "separator", "aria-hidden": "true" }, h("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("polyline", { points: "9 18 15 12 9 6" }))));
9
+ }
10
+ render() {
11
+ const isLink = this.href && !this.current;
12
+ return (h(Host, { key: '20d22dde2f7b6b4c03a76b4e6be851a0c4cd39d5' }, isLink ? (h("a", { class: "link", href: this.href }, h("slot", null))) : (h("span", { class: "current", "aria-current": this.current ? "page" : undefined }, h("slot", null))), !this.current && this.renderSeparator()));
13
+ }
14
+ static get is() { return "ui-breadcrumb-item"; }
15
+ static get encapsulation() { return "shadow"; }
16
+ static get originalStyleUrls() {
17
+ return {
18
+ "$": ["ui-breadcrumb-item.css"]
19
+ };
20
+ }
21
+ static get styleUrls() {
22
+ return {
23
+ "$": ["ui-breadcrumb-item.css"]
24
+ };
25
+ }
26
+ static get properties() {
27
+ return {
28
+ "href": {
29
+ "type": "string",
30
+ "mutable": false,
31
+ "complexType": {
32
+ "original": "string",
33
+ "resolved": "string | undefined",
34
+ "references": {}
35
+ },
36
+ "required": false,
37
+ "optional": true,
38
+ "docs": {
39
+ "tags": [],
40
+ "text": "Destino do link."
41
+ },
42
+ "getter": false,
43
+ "setter": false,
44
+ "reflect": false,
45
+ "attribute": "href"
46
+ },
47
+ "current": {
48
+ "type": "boolean",
49
+ "mutable": false,
50
+ "complexType": {
51
+ "original": "boolean",
52
+ "resolved": "boolean",
53
+ "references": {}
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": "Indica o item atual (p\u00E1gina corrente)."
60
+ },
61
+ "getter": false,
62
+ "setter": false,
63
+ "reflect": false,
64
+ "attribute": "current",
65
+ "defaultValue": "false"
66
+ }
67
+ };
68
+ }
69
+ }
@@ -2,6 +2,15 @@
2
2
  display: inline-block;
3
3
  }
4
4
 
5
+ :host([full]) {
6
+ display: block;
7
+ width: 100%;
8
+ }
9
+
10
+ :host([full]) .btn {
11
+ width: 100%;
12
+ }
13
+
5
14
  .btn {
6
15
  display: inline-flex;
7
16
  align-items: center;
@@ -84,10 +93,11 @@
84
93
 
85
94
  .variant-outline {
86
95
  color: var(--ui-foreground);
87
- border-color: var(--ui-border-strong);
96
+ border-color: color-mix(in srgb, var(--ui-foreground) 30%, transparent);
88
97
  }
89
98
  .variant-outline:hover {
90
99
  background: var(--ui-chip);
100
+ border-color: color-mix(in srgb, var(--ui-foreground) 45%, transparent);
91
101
  }
92
102
 
93
103
  .variant-ghost {
@@ -11,13 +11,15 @@ export class UiButton {
11
11
  this.loading = false;
12
12
  /** Tipo do botão nativo. */
13
13
  this.type = "button";
14
+ /** Ocupa 100% da largura disponível. */
15
+ this.full = false;
14
16
  }
15
17
  render() {
16
- return (h(Host, { key: 'bf18a1f72babada2698ce42f54bf2d73b0d41d0b' }, h("button", { key: 'f08a766e14d139d7031dac4fa5846fbc0749328f', class: {
18
+ return (h(Host, { key: 'fa9886a20cac8424b127be543c0fd1ad04cc2fb1' }, h("button", { key: 'c54077dabce85b286733efcae8a08a435b81d72e', class: {
17
19
  btn: true,
18
20
  [`variant-${this.variant}`]: true,
19
21
  [`size-${this.size}`]: true,
20
- }, type: this.type, disabled: this.disabled || this.loading, "aria-busy": this.loading ? "true" : null }, this.loading && h("span", { key: 'a3e87dd124b697050a657b9957884c231aa58c54', class: "spinner", "aria-hidden": "true" }), h("slot", { key: '87a720f06602011042d70a91918a0b2157abb163' }))));
22
+ }, type: this.type, disabled: this.disabled || this.loading, "aria-busy": this.loading ? "true" : null }, this.loading && h("span", { key: '8e557bd098d5655be256ea7fc0748990b7f11026', class: "spinner", "aria-hidden": "true" }), h("slot", { key: '36946d065411700928e3541f351a3f6f75018ae9' }))));
21
23
  }
22
24
  static get is() { return "ui-button"; }
23
25
  static get encapsulation() { return "shadow"; }
@@ -144,6 +146,26 @@ export class UiButton {
144
146
  "reflect": false,
145
147
  "attribute": "type",
146
148
  "defaultValue": "\"button\""
149
+ },
150
+ "full": {
151
+ "type": "boolean",
152
+ "mutable": false,
153
+ "complexType": {
154
+ "original": "boolean",
155
+ "resolved": "boolean",
156
+ "references": {}
157
+ },
158
+ "required": false,
159
+ "optional": false,
160
+ "docs": {
161
+ "tags": [],
162
+ "text": "Ocupa 100% da largura dispon\u00EDvel."
163
+ },
164
+ "getter": false,
165
+ "setter": false,
166
+ "reflect": true,
167
+ "attribute": "full",
168
+ "defaultValue": "false"
147
169
  }
148
170
  };
149
171
  }
@@ -1,7 +1,7 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class UiCard {
3
3
  render() {
4
- return (h(Host, { key: '1608f7f7bd8addc04064a70965fdb28a67a1abef' }, h("div", { key: '976e8fa507f78649789161f5eaaa2308547c7040', class: "card" }, h("slot", { key: '803ef160438006449051c2068246fd6f20562cc5', name: "title" }), h("slot", { key: '84bfdd0d56b015d09598e53e0002b9ac5e69934d', name: "description" }), h("slot", { key: '97d8522f426b54ab6a8b51038bd8f2b8e2413d0e' }), h("slot", { key: '8b36ab658e61cdebb391d6bb8dc427d809a81b30', name: "footer" }))));
4
+ return (h(Host, { key: '39ddf0a9974086fcc9ad3fc89f1e1d6858e2fead' }, h("div", { key: 'e8e510a468dc662f9fc76affce785a9b37edc205', class: "card" }, h("slot", { key: 'ee92d4bc2fa1738d84689d989d4e113d515acc83', name: "title" }), h("slot", { key: '6e87c2406474b6ea2aa370d1602ff02a89c4f4d5', name: "description" }), h("slot", { key: 'a388b4bc2d9c5e328ade55ac38c870afc9ade82c' }), h("slot", { key: '071ce297db672e332cf2d354a395b07e100b16a1', name: "footer" }))));
5
5
  }
6
6
  static get is() { return "ui-card"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -9,14 +9,18 @@
9
9
  width: 1.25rem;
10
10
  height: 1.25rem;
11
11
  padding: 0;
12
- border: 1px solid var(--ui-border-strong);
12
+ border: 1.5px solid color-mix(in srgb, var(--ui-foreground) 32%, transparent);
13
13
  border-radius: var(--ui-radius-sm);
14
- background: var(--ui-panel);
14
+ background: var(--ui-chip);
15
15
  cursor: pointer;
16
16
  outline: none;
17
17
  transition: all var(--ui-duration) var(--ui-ease);
18
18
  }
19
19
 
20
+ .checkbox:hover:not(:disabled):not([aria-checked="true"]) {
21
+ border-color: var(--ui-accent);
22
+ }
23
+
20
24
  .checkbox:focus-visible {
21
25
  box-shadow: 0 0 0 2px var(--ui-background), 0 0 0 4px var(--ui-ring);
22
26
  }
@@ -19,7 +19,7 @@ export class UiCheckbox {
19
19
  };
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: '3702acd47b1980ddf23df427a68c69ee782756e4' }, h("button", { key: '8cc709719dd004d01ca6ed82c0fab53ed38f8962', class: "checkbox", type: "button", role: "checkbox", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, h("svg", { key: 'fa4875d7a2809133496a543fa6efd0de8c8c4c06', class: "check", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: '34a601d25b20fdf1ad697349531888648795f4bf', points: "20 6 9 17 4 12" })))));
22
+ return (h(Host, { key: '73477b35af6a093e87ae8a5b33232690888ca98c' }, h("button", { key: '235b0102bbdd9a0ef23c3230acbba9aebdb06898', class: "checkbox", type: "button", role: "checkbox", "aria-checked": this.checked ? "true" : "false", disabled: this.disabled, onClick: this.toggle, onKeyDown: this.onKeyDown }, h("svg", { key: '3aaa64d1d173991b2c785298586aab66471e9285', class: "check", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round", "aria-hidden": "true" }, h("polyline", { key: 'baaca1ba97901e5a9d4e97640221f35cdeb02351', points: "20 6 9 17 4 12" })))));
23
23
  }
24
24
  static get is() { return "ui-checkbox"; }
25
25
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,38 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+
6
+ .container {
7
+ margin-inline: auto;
8
+ width: 100%;
9
+ font-family: var(--ui-font-sans);
10
+ }
11
+
12
+ /* Tamanhos */
13
+ .size-sm {
14
+ max-width: 40rem;
15
+ }
16
+ .size-md {
17
+ max-width: 48rem;
18
+ }
19
+ .size-lg {
20
+ max-width: 64rem;
21
+ }
22
+ .size-xl {
23
+ max-width: 80rem;
24
+ }
25
+ .size-full {
26
+ max-width: none;
27
+ }
28
+
29
+ /* Padding lateral responsivo */
30
+ .padded {
31
+ padding-inline: 1.25rem;
32
+ }
33
+
34
+ @media (min-width: 640px) {
35
+ .padded {
36
+ padding-inline: 2rem;
37
+ }
38
+ }
@@ -0,0 +1,79 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class UiContainer {
3
+ constructor() {
4
+ /** Largura máxima do container. */
5
+ this.size = "lg";
6
+ /** Aplica padding lateral responsivo. */
7
+ this.padded = true;
8
+ }
9
+ render() {
10
+ const classes = {
11
+ container: true,
12
+ [`size-${this.size}`]: true,
13
+ padded: this.padded,
14
+ };
15
+ return (h(Host, { key: '4f00ee39f0ae347fafac349ee8e42c991c8013dd' }, h("div", { key: 'a0f8f0c6d418f119c6631d0387f9328af8fbb416', class: classes }, h("slot", { key: '86178f8371c958123fcf8b7e6bfe059aeed9f690' }))));
16
+ }
17
+ static get is() { return "ui-container"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["ui-container.css"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["ui-container.css"]
27
+ };
28
+ }
29
+ static get properties() {
30
+ return {
31
+ "size": {
32
+ "type": "string",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "UiContainerSize",
36
+ "resolved": "\"full\" | \"lg\" | \"md\" | \"sm\" | \"xl\"",
37
+ "references": {
38
+ "UiContainerSize": {
39
+ "location": "local",
40
+ "path": "/Users/andersonespindola/.ghq/github.com/andersonflima/ui/packages/core/src/components/ui-container/ui-container.tsx",
41
+ "id": "src/components/ui-container/ui-container.tsx::UiContainerSize"
42
+ }
43
+ }
44
+ },
45
+ "required": false,
46
+ "optional": false,
47
+ "docs": {
48
+ "tags": [],
49
+ "text": "Largura m\u00E1xima do container."
50
+ },
51
+ "getter": false,
52
+ "setter": false,
53
+ "reflect": false,
54
+ "attribute": "size",
55
+ "defaultValue": "\"lg\""
56
+ },
57
+ "padded": {
58
+ "type": "boolean",
59
+ "mutable": false,
60
+ "complexType": {
61
+ "original": "boolean",
62
+ "resolved": "boolean",
63
+ "references": {}
64
+ },
65
+ "required": false,
66
+ "optional": false,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": "Aplica padding lateral responsivo."
70
+ },
71
+ "getter": false,
72
+ "setter": false,
73
+ "reflect": false,
74
+ "attribute": "padded",
75
+ "defaultValue": "true"
76
+ }
77
+ };
78
+ }
79
+ }
@@ -37,7 +37,7 @@ export class UiDialog {
37
37
  this.open = false;
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: 'df811bec2a6a250e90cbb6d9c85202b2d3c2c964' }, h("dialog", { key: '49572b35ec17863fb83e9973c548a8cafa0308b6', class: "dialog", ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: '53c82b2c7a1b8831d64a060b4665a60bbdc7e39a', class: "content" }, h("slot", { key: 'b398a9692fdf2826b86125723bc232791e6b9e4b' })))));
40
+ return (h(Host, { key: 'e6c34700dc04fd3754eedeab279a67cd3997fb3d' }, h("dialog", { key: 'fdb23f89bd4b9aef79abaec586bf39add47ce013', class: "dialog", ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: '8a86f47c263d4fac68debdcef9cc8ed7e0be7ca8', class: "content" }, h("slot", { key: 'fe9d9105c13670104b5a60c939f9256b44694e8e' })))));
41
41
  }
42
42
  static get is() { return "ui-dialog"; }
43
43
  static get encapsulation() { return "shadow"; }
@@ -39,7 +39,7 @@ export class UiDrawer {
39
39
  this.open = false;
40
40
  }
41
41
  render() {
42
- return (h(Host, { key: '9f2f27dcc087f608a3aeed4fe64a65eb8fe4011b' }, h("dialog", { key: '92471e4a732f00e4187efb37cbba553651c2f9dd', class: `drawer side-${this.side}`, ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: 'd6706d4943f8559aee320b6df509138c44857bf0', class: "content" }, h("slot", { key: '5cb218bde44c73fd02c640c1d0da736427f2707c' })))));
42
+ return (h(Host, { key: '5d44e7d604eab21d2d30d5cbaaa225658c8e7e71' }, h("dialog", { key: 'ecdfc2057a8864f6b8dc961ddcd51c3f349b2b54', class: `drawer side-${this.side}`, ref: (el) => (this.dialogEl = el), onClose: this.onClose, onCancel: this.onClose, onClick: this.onBackdropClick }, h("div", { key: 'c14965ebb97a2c77d06c4a50466d00bf4036bafa', class: "content" }, h("slot", { key: '2bdbb4cbd2cd30ade870090c5383d398cfb6772b' })))));
43
43
  }
44
44
  static get is() { return "ui-drawer"; }
45
45
  static get encapsulation() { return "shadow"; }
@@ -11,7 +11,7 @@ export class UiDropdownItem {
11
11
  };
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: '57af1c437b63fb19cfe297741b2b0f8d34564be9' }, h("button", { key: 'e3df81eb4c921d8b447c46da5140d21fb8126417', type: "button", class: "item", role: "menuitem", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: '162d876af4ed9913c79964afcdceda7539feb95b' }))));
14
+ return (h(Host, { key: 'a73d394ff94b232151c37e749d398f4485f46bde' }, h("button", { key: '3827857b88fc5d63681e80dc2cc470b58faf69e1', type: "button", class: "item", role: "menuitem", disabled: this.disabled, onClick: this.onClick }, h("slot", { key: 'a6dbd79c7b171ef6a8a53aa5da39fbca37725e1c' }))));
15
15
  }
16
16
  static get is() { return "ui-dropdown-item"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -76,7 +76,7 @@ export class UiDropdownMenu {
76
76
  this.cleanup = undefined;
77
77
  }
78
78
  render() {
79
- return (h(Host, { key: '65adc044508abd9ebf4b866fba02058bdcd22d5d' }, h("span", { key: 'e70a23e1b41c7936ab1dc3a87cd3593b3db43088', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, h("slot", { key: '40f2226b6ba6f1d3032cd2b2f2477fbcdf9617b5', name: "trigger" })), h("div", { key: '6af4ab3c98a9334d805e75da724d5572e4c986aa', class: { menu: true, "is-open": this.open }, role: "menu", ref: (el) => (this.floatingEl = el) }, h("slot", { key: '7f99ba16ab9544d5cf63b28f77f18fd4d0fbbed2' }))));
79
+ return (h(Host, { key: '6d1ac3cd9096527745a84f24443a3b230bf2aaf0' }, h("span", { key: '5594e37030b1fd69260b4de30393aacfbc636ca3', class: "trigger", ref: (el) => (this.triggerEl = el), onClick: this.onTriggerClick }, h("slot", { key: '763b6bf28fe4c79a13a2cc5a620d19e51ae5f6e2', name: "trigger" })), h("div", { key: '0bec01181593abbcb1a8634eb027ce0cef0d860d', class: { menu: true, "is-open": this.open }, role: "menu", ref: (el) => (this.floatingEl = el) }, h("slot", { key: '1b1fa528fc1186c81dd433d0cb9b775df8357641' }))));
80
80
  }
81
81
  static get is() { return "ui-dropdown-menu"; }
82
82
  static get encapsulation() { return "shadow"; }
@@ -5,7 +5,7 @@ export class UiField {
5
5
  this.required = false;
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: '5656c6d47f71364d26db0e4998e64b8780ee3840' }, h("div", { key: '6adc292e3ae0829c7f5533b2be732644f7e95dab', class: "field" }, this.label && (h("label", { key: 'e7c2e2fa1c3b0bc6edadb1385062fe53e5b2f5f7', class: "label", htmlFor: this.fieldId }, this.label, this.required && (h("span", { key: '06e56259184b4618eb9f2b3602ebb691e6b0ef1b', class: "required", "aria-hidden": "true" }, " *")))), h("slot", { key: 'bd44f4f425f257671eff1ed536051fb318671afc' }), this.error ? (h("p", { class: "error", role: "alert" }, this.error)) : (this.description && h("p", { class: "description" }, this.description)))));
8
+ return (h(Host, { key: '1910a6ce3a389ab7faa9e3b46e0397e6a9bfbaab' }, h("div", { key: 'fb76fb030b9af9129578f7b2f0b85eaffefc8d67', class: "field" }, this.label && (h("label", { key: '659a7c0982360c133891a1a22a98cdae32a529ed', class: "label", htmlFor: this.fieldId }, this.label, this.required && (h("span", { key: 'de93f19b8a2dd063df1175c00c68c0b7c9b092d6', class: "required", "aria-hidden": "true" }, " *")))), h("slot", { key: 'a510f107aab90a202c178f1d22727689db828fdc' }), this.error ? (h("p", { class: "error", role: "alert" }, this.error)) : (this.description && h("p", { class: "description" }, this.description)))));
9
9
  }
10
10
  static get is() { return "ui-field"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,8 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .grid {
6
+ display: grid;
7
+ font-family: var(--ui-font-sans);
8
+ }