@nxgt/material-vue 0.23.4 → 0.25.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 (182) hide show
  1. package/README.md +30 -28
  2. package/dist/{Button-CVIR6uLK.js → Button-C1aaI0Gw.js} +95 -72
  3. package/dist/{HoverCardTrigger-iAL5ALrL.js → HoverCardTrigger-JtHn0IFQ.js} +2 -2
  4. package/dist/{camera-Gvg5N956.js → camera-BacVyXl0.js} +6 -6
  5. package/dist/{components-AScwCcds.js → components-DRBKkOqk.js} +15764 -13833
  6. package/dist/components.js +8 -8
  7. package/dist/composables.js +2 -2
  8. package/dist/dnd.js +1 -1
  9. package/dist/form-scope-VxlJuvFe.js +43 -0
  10. package/dist/{i18n-provider-BqWxpaKu.js → i18n-provider-D0oYv0XS.js} +1 -1
  11. package/dist/i18n.js +4 -4
  12. package/dist/{icon-button-DbEME76t.js → icon-button-B2FQtIHS.js} +34 -37
  13. package/dist/lib/components/ui/actions/button/has-text-content.d.ts +10 -0
  14. package/dist/lib/components/ui/actions/copy-button/copy-value.vue.d.ts +21 -0
  15. package/dist/lib/components/ui/actions/copy-button/index.d.ts +2 -0
  16. package/dist/lib/components/ui/collections/data-table/data-table-context.d.ts +6 -0
  17. package/dist/lib/components/ui/collections/data-table/data-table-pagination.vue.d.ts +2 -0
  18. package/dist/lib/components/ui/collections/data-table/data-table.vue.d.ts +17 -27
  19. package/dist/lib/components/ui/collections/data-table/index.d.ts +1 -1
  20. package/dist/lib/components/ui/collections/data-table/partials/data-table-body.vue.d.ts +10 -1
  21. package/dist/lib/components/ui/collections/data-table/partials/data-table-empty.vue.d.ts +13 -1
  22. package/dist/lib/components/ui/collections/data-table/partials/data-table-head.vue.d.ts +22 -0
  23. package/dist/lib/components/ui/collections/data-table/partials/data-table-skeleton-rows.vue.d.ts +10 -0
  24. package/dist/lib/components/ui/collections/data-table/use-data-table.d.ts +17 -0
  25. package/dist/lib/components/ui/collections/filter/partials/filter-field-slider-range.vue.d.ts +1 -4
  26. package/dist/lib/components/ui/collections/pagination/index.d.ts +5 -0
  27. package/dist/lib/components/ui/collections/pagination/pagination-bar.vue.d.ts +21 -0
  28. package/dist/lib/components/ui/collections/pagination/pagination-items.d.ts +2 -0
  29. package/dist/lib/components/ui/collections/pagination/pagination-link.vue.d.ts +18 -0
  30. package/dist/lib/components/ui/collections/tree/use-tree.d.ts +2 -0
  31. package/dist/lib/components/ui/dates/date-field/date-field.vue.d.ts +10 -1
  32. package/dist/lib/components/ui/dates/date-field/date-form-field.vue.d.ts +3 -1
  33. package/dist/lib/components/ui/dates/date-field/day-matcher.d.ts +26 -0
  34. package/dist/lib/components/ui/dates/date-field/index.d.ts +1 -0
  35. package/dist/lib/components/ui/dates/date-field/partials/date-field-content.vue.d.ts +2 -0
  36. package/dist/lib/components/ui/dates/date-range-field/date-range-field.utils.d.ts +11 -0
  37. package/dist/lib/components/ui/dates/date-range-field/date-range-field.vue.d.ts +26 -1
  38. package/dist/lib/components/ui/dates/date-range-field/date-range-form-field.vue.d.ts +3 -1
  39. package/dist/lib/components/ui/dates/date-range-field/index.d.ts +1 -0
  40. package/dist/lib/components/ui/dates/date-range-field/partials/date-range-calendar.vue.d.ts +5 -0
  41. package/dist/lib/components/ui/dates/date-range-field/partials/date-range-field-trigger.vue.d.ts +2 -0
  42. package/dist/lib/components/ui/dates/date-range-field/partials/date-range-presets.vue.d.ts +12 -0
  43. package/dist/lib/components/ui/dates/date-range-field/partials/date-range-times.vue.d.ts +13 -0
  44. package/dist/lib/components/ui/dates/date-range-field/use-date-range-presets.d.ts +23 -0
  45. package/dist/lib/components/ui/dates/time-picker/time-picker-utils.d.ts +7 -0
  46. package/dist/lib/components/ui/display/accordion-card/accordion-card.vue.d.ts +29 -1
  47. package/dist/lib/components/ui/display/avatar/Avatar.vue.d.ts +14 -3
  48. package/dist/lib/components/ui/display/avatar/index.d.ts +1 -0
  49. package/dist/lib/components/ui/display/cards/cards.gallery.d.ts +5 -9
  50. package/dist/lib/components/ui/display/markdown/index.d.ts +18 -0
  51. package/dist/lib/components/ui/display/qrcode/qrcode.vue.d.ts +5 -3
  52. package/dist/lib/components/ui/display/status-indicator/status-tone.d.ts +3 -0
  53. package/dist/lib/components/ui/feedback/confirmation-dialog/async-form-scope.d.ts +15 -0
  54. package/dist/lib/components/ui/feedback/confirmation-dialog/confirmation-dialog.vue.d.ts +37 -24
  55. package/dist/lib/components/ui/feedback/confirmation-dialog/index.d.ts +1 -1
  56. package/dist/lib/components/ui/feedback/confirmation-dialog/partials/confirmation-dialog-form-error.vue.d.ts +3 -0
  57. package/dist/lib/components/ui/feedback/skeleton/skeleton-text.vue.d.ts +1 -1
  58. package/dist/lib/components/ui/feedback/spinner/spinner.compound-variants.d.ts +4 -0
  59. package/dist/lib/components/ui/fields/attributes/form-schema.d.ts +24 -22
  60. package/dist/lib/components/ui/fields/contacts/consts.d.ts +1 -1
  61. package/dist/lib/components/ui/fields/inline-edit/index.d.ts +1 -0
  62. package/dist/lib/components/ui/fields/inline-edit/inline-edit-form-field.vue.d.ts +7 -0
  63. package/dist/lib/components/ui/fields/number-field/number-field.vue.d.ts +2 -0
  64. package/dist/lib/components/ui/fields/slider/partials/slider-field-row.vue.d.ts +32 -0
  65. package/dist/lib/components/ui/fields/slider/slider-field.vue.d.ts +22 -1
  66. package/dist/lib/components/ui/fields/slider/slider-form-field.vue.d.ts +13 -1
  67. package/dist/lib/components/ui/forms/form-scope-schema.d.ts +43 -0
  68. package/dist/lib/components/ui/forms/form-scope.vue.d.ts +33 -0
  69. package/dist/lib/components/ui/layout/doc/doc.vue.d.ts +5 -5
  70. package/dist/lib/components/ui/layout/doc/index.d.ts +8 -1
  71. package/dist/lib/components/ui/layout/doc/partials/default-doc-link.vue.d.ts +14 -0
  72. package/dist/lib/components/ui/layout/doc/partials/doc-copy-page.vue.d.ts +6 -0
  73. package/dist/lib/components/ui/layout/doc/partials/doc-link.vue.d.ts +3 -7
  74. package/dist/lib/components/ui/layout/doc/types.d.ts +6 -1
  75. package/dist/lib/components/ui/media/file-preview/file-preview-pdf.lazy.d.ts +8 -0
  76. package/dist/lib/components/ui/media/file-preview/file-preview.vue.d.ts +9 -0
  77. package/dist/lib/components/ui/media/file-preview/index.d.ts +3 -0
  78. package/dist/lib/components/ui/media/file-preview/partials/file-preview-body.vue.d.ts +21 -0
  79. package/dist/lib/components/ui/media/file-preview/partials/file-preview-card.vue.d.ts +15 -0
  80. package/dist/lib/components/ui/media/file-preview/partials/file-preview-download.vue.d.ts +11 -0
  81. package/dist/lib/components/ui/media/file-preview/partials/file-preview-media.vue.d.ts +17 -0
  82. package/dist/lib/components/ui/media/file-preview/partials/file-preview-pdf.vue.d.ts +21 -0
  83. package/dist/lib/components/ui/media/file-preview/partials/file-preview-status.vue.d.ts +22 -0
  84. package/dist/lib/components/ui/media/file-preview/partials/file-preview-text.vue.d.ts +16 -0
  85. package/dist/lib/components/ui/media/file-preview/types.d.ts +19 -0
  86. package/dist/lib/components/ui/media/file-preview/use-file-preview.d.ts +21 -0
  87. package/dist/lib/components/ui/media/file-preview/use-text-preview.d.ts +17 -0
  88. package/dist/lib/components/ui/media/files-form-field/files-form-field.vue.d.ts +29 -0
  89. package/dist/lib/components/ui/media/files-form-field/index.d.ts +2 -0
  90. package/dist/lib/components/ui/media/image-cropper/partials/image-cropper-canvas.vue.d.ts +1 -1
  91. package/dist/lib/components/ui/media/index.d.ts +2 -0
  92. package/dist/lib/components/ui/media/pdf-viewer/index.d.ts +6 -6
  93. package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-page.vue.d.ts +1 -1
  94. package/dist/lib/components/ui/media/pdf-viewer/partials/pdf-reader-body.vue.d.ts +2 -2
  95. package/dist/lib/components/ui/media/pdf-viewer/pdf-reader.vue.d.ts +2 -2
  96. package/dist/lib/components/ui/media/upload/network-upload-field/use-image-preview.d.ts +9 -1
  97. package/dist/lib/components/ui/primitives/icon/icon-context.d.ts +1 -1
  98. package/dist/lib/components/ui/primitives/tabs/Tabs.vue.d.ts +3 -0
  99. package/dist/lib/components/ui/primitives/tabs/index.d.ts +1 -0
  100. package/dist/lib/components/ui/primitives/tabs/tabs-variant.d.ts +9 -0
  101. package/dist/lib/components/ui/selection/autocomplete/autocomplete-form-field.vue.d.ts +31 -5
  102. package/dist/lib/components/ui/selection/autocomplete/autocomplete-items.d.ts +23 -0
  103. package/dist/lib/components/ui/selection/autocomplete/autocomplete.vue.d.ts +48 -13
  104. package/dist/lib/components/ui/selection/autocomplete/filter-options.d.ts +2 -1
  105. package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-box.vue.d.ts +13 -1
  106. package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-list.vue.d.ts +17 -3
  107. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-items.d.ts +15 -0
  108. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-open.d.ts +15 -0
  109. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-texts.d.ts +14 -0
  110. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete.d.ts +34 -0
  111. package/dist/lib/components/ui/selection/checkbox/Checkbox.vue.d.ts +21 -5
  112. package/dist/lib/components/ui/selection/checkbox/checkbox-form-field.vue.d.ts +17 -0
  113. package/dist/lib/components/ui/selection/checkbox/index.d.ts +2 -0
  114. package/dist/lib/components/ui/selection/index.d.ts +1 -0
  115. package/dist/lib/components/ui/selection/select-field/select-field.vue.d.ts +16 -1
  116. package/dist/lib/components/ui/selection/select-field/select-form-field.vue.d.ts +16 -2
  117. package/dist/lib/components/ui/selection/tree-select-field/index.d.ts +3 -0
  118. package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-panel.vue.d.ts +27 -0
  119. package/dist/lib/components/ui/selection/tree-select-field/partials/tree-select-trigger.vue.d.ts +28 -0
  120. package/dist/lib/components/ui/selection/tree-select-field/tree-select-field.vue.d.ts +8 -0
  121. package/dist/lib/components/ui/selection/tree-select-field/tree-select-form-field.vue.d.ts +8 -0
  122. package/dist/lib/components/ui/selection/tree-select-field/tree-select.utils.d.ts +29 -0
  123. package/dist/lib/components/ui/selection/tree-select-field/types.d.ts +28 -0
  124. package/dist/lib/components/ui/selection/tree-select-field/use-tree-select-field.d.ts +19 -0
  125. package/dist/lib/components/ui/widgets/charts/chart-container.vue.d.ts +1 -1
  126. package/dist/lib/components/ui/widgets/code-editor/code-editor-form-field.vue.d.ts +13 -0
  127. package/dist/lib/components/ui/widgets/code-editor/code-editor-options.d.ts +4 -1
  128. package/dist/lib/components/ui/widgets/code-editor/code-editor.vue.d.ts +7 -0
  129. package/dist/lib/components/ui/widgets/code-editor/index.d.ts +2 -0
  130. package/dist/lib/components/ui/widgets/code-editor/monaco-editor.vue.d.ts +3 -0
  131. package/dist/lib/i18n/resources/en/en.d.ts +40 -0
  132. package/dist/lib/i18n/resources/en/material.json.d.ts +43 -3
  133. package/dist/lib/i18n/resources/fr/fr.d.ts +40 -0
  134. package/dist/lib/i18n/resources/fr/material.json.d.ts +43 -3
  135. package/dist/lib/i18n/resources/resources.d.ts +80 -0
  136. package/dist/lib/i18n/translator.d.ts +1 -1
  137. package/dist/lib/nuxt/component-names.d.ts +1 -1
  138. package/dist/lib.js +2 -2
  139. package/dist/main.js +17 -17
  140. package/dist/map.js +4 -4
  141. package/dist/material-vue.css +1 -1
  142. package/dist/{pdf-outline-sidebar-oz9wdBhB.js → pdf-outline-sidebar-jJfhNjnN.js} +2 -2
  143. package/dist/{pdf-page-0rlq1Lo6.js → pdf-page-BW1hXzPu.js} +1 -1
  144. package/dist/{pdf-page-list-DfhjNHoI.js → pdf-page-list-D277RtWS.js} +2 -2
  145. package/dist/{pdf-reader-Dr8RVcs4.js → pdf-reader-BReUTsn_.js} +73 -71
  146. package/dist/{pdf-sidebar-VXPQbC_R.js → pdf-sidebar-Bk6PowY1.js} +3 -3
  147. package/dist/{pdf-thumbnail-sidebar-BpgXrVBj.js → pdf-thumbnail-sidebar-BcNDFsks.js} +3 -3
  148. package/dist/{pdf-toolbar-B6gRRcsv.js → pdf-toolbar-CHjaMhH9.js} +4 -4
  149. package/dist/pdf.js +2 -2
  150. package/dist/{sortable-provider-oEVjQiCl.js → sortable-provider-C83VBfGl.js} +2 -2
  151. package/dist/{stored-language-rjOMJkyX.js → stored-language-CC_vdcCN.js} +90 -6
  152. package/dist/{stx-player-DNADkQ31.js → stx-player-BMQ1D2Li.js} +20 -20
  153. package/dist/{translator-BCSJSO1-.js → translator-B-X_1taI.js} +1 -1
  154. package/dist/{use-heading-spy-d50_nxgR.js → use-heading-spy-C_ySuvTl.js} +1 -1
  155. package/dist/{use-material-translation-C5zPFhbk.js → use-material-translation-B6sIk0mF.js} +3 -3
  156. package/docs/components/README.md +2 -1
  157. package/docs/components/buttons-and-actions.md +19 -3
  158. package/docs/components/data-display.md +65 -11
  159. package/docs/components/data-table-filter-and-lists.md +94 -8
  160. package/docs/components/date-and-time.md +116 -9
  161. package/docs/components/feedback-and-status.md +57 -5
  162. package/docs/components/form-fields.md +21 -9
  163. package/docs/components/media-and-files.md +120 -6
  164. package/docs/components/navigation-and-layout.md +68 -7
  165. package/docs/components/primitives.md +25 -6
  166. package/docs/components/rich-widgets.md +21 -3
  167. package/docs/components/selection-and-choice.md +151 -22
  168. package/docs/guides/forms.md +16 -8
  169. package/docs/guides/i18n.md +50 -6
  170. package/docs/guides/ssr.md +2 -0
  171. package/docs/previews/buttons-actions-copybutton.webp +0 -0
  172. package/docs/previews/data-table-filter-lists-pagination.webp +0 -0
  173. package/docs/previews/date-time-daterangefield.webp +0 -0
  174. package/docs/previews/form-fields-slider.webp +0 -0
  175. package/docs/previews/media-files-filepreview.webp +0 -0
  176. package/docs/previews/navigation-layout-stepper.webp +0 -0
  177. package/docs/previews/selection-choice-checkbox.webp +0 -0
  178. package/docs/previews/selection-choice-treeselectfield.webp +0 -0
  179. package/docs/roadmap.md +47 -1
  180. package/docs/troubleshooting.md +213 -0
  181. package/lib/nuxt/component-names.ts +16 -0
  182. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./utils-CykWQ0iJ.js";
2
- import { t } from "./use-material-translation-C5zPFhbk.js";
3
- import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderSlot as h, shallowRef as g, toDisplayString as _, unref as v, useAttrs as y, withCtx as b } from "vue";
4
- import { Primitive as x, TooltipArrow as S, TooltipContent as C, TooltipPortal as w, TooltipProvider as T, TooltipRoot as E, TooltipTrigger as D, useForwardPropsEmits as O } from "reka-ui";
5
- import { cva as k } from "class-variance-authority";
6
- import { createSharedComposable as A, defaultDocument as j, reactiveOmit as M, useEventListener as N } from "@vueuse/core";
2
+ import { t } from "./use-material-translation-B6sIk0mF.js";
3
+ import { Comment as n, Text as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, guardReactiveProps as f, inject as p, isVNode as m, mergeProps as h, normalizeClass as g, normalizeProps as _, openBlock as v, provide as y, renderSlot as b, shallowRef as x, toDisplayString as S, unref as C, useAttrs as w, useSlots as T, withCtx as E } from "vue";
4
+ import { Primitive as D, TooltipArrow as O, TooltipContent as k, TooltipPortal as A, TooltipProvider as j, TooltipRoot as M, TooltipTrigger as N, useForwardPropsEmits as P } from "reka-ui";
5
+ import { cva as F } from "class-variance-authority";
6
+ import { createSharedComposable as I, defaultDocument as L, reactiveOmit as R, useEventListener as z } from "@vueuse/core";
7
7
  //#endregion
8
8
  //#region lib/components/ui/feedback/spinner/spinner.variants.ts
9
- var P = k("transition-all duration-500", {
9
+ var B = F("transition-all duration-500", {
10
10
  variants: {
11
11
  variant: {
12
12
  1: "",
@@ -67,7 +67,7 @@ var P = k("transition-all duration-500", {
67
67
  },
68
68
  {
69
69
  variant: "1",
70
- color: "default",
70
+ color: "light",
71
71
  class: "border-white/10 border-t-white"
72
72
  },
73
73
  {
@@ -191,11 +191,11 @@ var P = k("transition-all duration-500", {
191
191
  class: "stroke-white"
192
192
  }
193
193
  ]
194
- }), F = [
194
+ }), V = [
195
195
  "data-variant",
196
196
  "data-color",
197
197
  "aria-label"
198
- ], I = ["data-variant", "data-color"], L = /* @__PURE__ */ l({
198
+ ], H = ["data-variant", "data-color"], U = /* @__PURE__ */ d({
199
199
  __name: "spinner",
200
200
  props: {
201
201
  variant: { default: "1" },
@@ -210,7 +210,7 @@ var P = k("transition-all duration-500", {
210
210
  },
211
211
  setup(n) {
212
212
  let r = n, { t: i } = t();
213
- return (t, s) => n.variant === "4" ? (m(), a("svg", {
213
+ return (t, a) => n.variant === "4" ? (v(), s("svg", {
214
214
  key: 0,
215
215
  viewBox: "0 0 800 800",
216
216
  "data-slot": "spinner",
@@ -218,10 +218,10 @@ var P = k("transition-all duration-500", {
218
218
  "data-color": n.color,
219
219
  xmlns: "http://www.w3.org/2000/svg",
220
220
  role: "img",
221
- "aria-label": v(i)("material.spinner.loading", "Loading..."),
222
- class: f(v(e)("size-14", r.class))
223
- }, [o("circle", {
224
- class: f(["spin2", v(P)({
221
+ "aria-label": C(i)("material.spinner.loading", "Loading..."),
222
+ class: g(C(e)("size-14", r.class))
223
+ }, [c("circle", {
224
+ class: g(["spin2", C(B)({
225
225
  variant: n.variant,
226
226
  color: n.color
227
227
  })]),
@@ -232,18 +232,18 @@ var P = k("transition-all duration-500", {
232
232
  "stroke-width": "50",
233
233
  "stroke-dasharray": "700 1400",
234
234
  "stroke-linecap": "round"
235
- }, null, 2)], 10, F)) : (m(), a("div", {
235
+ }, null, 2)], 10, V)) : (v(), s("div", {
236
236
  key: 1,
237
237
  "data-slot": "spinner",
238
238
  "data-variant": n.variant,
239
239
  "data-color": n.color,
240
- class: f(v(e)("size-12 border-[2px] rounded-full animate-spin", v(P)({
240
+ class: g(C(e)("size-12 border-[2px] rounded-full animate-spin", C(B)({
241
241
  variant: n.variant,
242
242
  color: n.color
243
243
  }), r.class))
244
- }, null, 10, I));
244
+ }, null, 10, H));
245
245
  }
246
- }), R = /* @__PURE__ */ l({
246
+ }), W = /* @__PURE__ */ d({
247
247
  __name: "Tooltip",
248
248
  props: {
249
249
  defaultOpen: { type: Boolean },
@@ -256,29 +256,29 @@ var P = k("transition-all duration-500", {
256
256
  },
257
257
  emits: ["update:open"],
258
258
  setup(e, { emit: t }) {
259
- let n = O(e, t);
260
- return (e, t) => (m(), r(v(E), d({ "data-slot": "tooltip" }, v(n)), {
261
- default: b((t) => [h(e.$slots, "default", p(u(t)))]),
259
+ let n = P(e, t);
260
+ return (e, t) => (v(), a(C(M), h({ "data-slot": "tooltip" }, C(n)), {
261
+ default: E((t) => [b(e.$slots, "default", _(f(t)))]),
262
262
  _: 3
263
263
  }, 16));
264
264
  }
265
- }), z = /* @__PURE__ */ new Set([
265
+ }), G = /* @__PURE__ */ new Set([
266
266
  "VIDEO",
267
267
  "IFRAME",
268
268
  "CANVAS",
269
269
  "IMG",
270
270
  "EMBED"
271
271
  ]);
272
- function B(e) {
272
+ function K(e) {
273
273
  let t = e?.fullscreenElement;
274
- return !t || typeof HTMLElement > "u" || !(t instanceof HTMLElement) || z.has(t.tagName) ? null : t;
274
+ return !t || typeof HTMLElement > "u" || !(t instanceof HTMLElement) || G.has(t.tagName) ? null : t;
275
275
  }
276
- var V = A(() => {
277
- let e = g(B(j));
278
- return N(j, "fullscreenchange", () => {
279
- e.value = B(j);
276
+ var q = I(() => {
277
+ let e = x(K(L));
278
+ return z(L, "fullscreenchange", () => {
279
+ e.value = K(L);
280
280
  }), e;
281
- }), H = /* @__PURE__ */ l({
281
+ }), J = /* @__PURE__ */ d({
282
282
  inheritAttrs: !1,
283
283
  __name: "TooltipContent",
284
284
  props: {
@@ -309,19 +309,19 @@ var V = A(() => {
309
309
  },
310
310
  emits: ["escapeKeyDown", "pointerDownOutside"],
311
311
  setup(t, { emit: n }) {
312
- let i = t, a = n, o = V(), s = O(M(i, "class", "to"), a);
313
- return (n, a) => (m(), r(v(w), { to: t.to ?? v(o) ?? void 0 }, {
314
- default: b(() => [c(v(C), d({ "data-slot": "tooltip-content" }, {
315
- ...v(s),
312
+ let r = t, i = n, o = q(), s = P(R(r, "class", "to"), i);
313
+ return (n, i) => (v(), a(C(A), { to: t.to ?? C(o) ?? void 0 }, {
314
+ default: E(() => [u(C(k), h({ "data-slot": "tooltip-content" }, {
315
+ ...C(s),
316
316
  ...n.$attrs
317
- }, { class: v(e)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance", i.class) }), {
318
- default: b(() => [h(n.$slots, "default"), c(v(S), { class: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-xs" })]),
317
+ }, { class: C(e)("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance", r.class) }), {
318
+ default: E(() => [b(n.$slots, "default"), u(C(O), { class: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-xs" })]),
319
319
  _: 3
320
320
  }, 16, ["class"])]),
321
321
  _: 3
322
322
  }, 8, ["to"]));
323
323
  }
324
- }), U = /* @__PURE__ */ l({
324
+ }), Y = /* @__PURE__ */ d({
325
325
  __name: "TooltipProvider",
326
326
  props: {
327
327
  delayDuration: { default: 0 },
@@ -334,12 +334,12 @@ var V = A(() => {
334
334
  },
335
335
  setup(e) {
336
336
  let t = e;
337
- return (e, n) => (m(), r(v(T), p(u(t)), {
338
- default: b(() => [h(e.$slots, "default")]),
337
+ return (e, n) => (v(), a(C(j), _(f(t)), {
338
+ default: E(() => [b(e.$slots, "default")]),
339
339
  _: 3
340
340
  }, 16));
341
341
  }
342
- }), W = /* @__PURE__ */ l({
342
+ }), X = /* @__PURE__ */ d({
343
343
  __name: "TooltipTrigger",
344
344
  props: {
345
345
  reference: {},
@@ -348,12 +348,12 @@ var V = A(() => {
348
348
  },
349
349
  setup(e) {
350
350
  let t = e;
351
- return (e, n) => (m(), r(v(D), d({ "data-slot": "tooltip-trigger" }, t), {
352
- default: b(() => [h(e.$slots, "default")]),
351
+ return (e, n) => (v(), a(C(N), h({ "data-slot": "tooltip-trigger" }, t), {
352
+ default: E(() => [b(e.$slots, "default")]),
353
353
  _: 3
354
354
  }, 16));
355
355
  }
356
- }), G = k("inline-flex center truncate **:truncate gap-2 h-min cursor-pointer whitespace-nowrap rounded-full text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error px-4 py-2 has-[>svg]:px-3", {
356
+ }), Z = Symbol("named-control"), Q = F("inline-flex center truncate **:truncate gap-2 h-min cursor-pointer whitespace-nowrap rounded-full text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error px-4 py-2 has-[>svg]:px-3", {
357
357
  variants: {
358
358
  variant: {
359
359
  filled: "shadow-xs",
@@ -376,10 +376,10 @@ var V = A(() => {
376
376
  xs: "h-6 gap-1 rounded-full px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
377
377
  sm: "h-8 rounded-full gap-1.5 px-3 has-[>svg]:px-2.5",
378
378
  lg: "h-10 rounded-full px-6 has-[>svg]:px-4",
379
- icon: "size-9 px-0 py-0",
380
- "icon-xs": "size-6 rounded-full px-0 py-0 [&_svg:not([class*='size-'])]:size-3",
381
- "icon-sm": "size-8 px-0 py-0",
382
- "icon-lg": "size-10 px-0 py-0"
379
+ icon: "size-9 px-0 py-0 has-[>svg]:px-0",
380
+ "icon-xs": "size-6 rounded-full px-0 py-0 has-[>svg]:px-0 [&_svg:not([class*='size-'])]:size-3",
381
+ "icon-sm": "size-8 px-0 py-0 has-[>svg]:px-0",
382
+ "icon-lg": "size-10 px-0 py-0 has-[>svg]:px-0"
383
383
  }
384
384
  },
385
385
  defaultVariants: {
@@ -528,7 +528,28 @@ var V = A(() => {
528
528
  class: "text-foreground [&_svg]:data-[slot=icon]:text-foreground hover:bg-foreground/10 active:bg-muted focus:bg-foreground/15"
529
529
  }
530
530
  ]
531
- }), K = /* @__PURE__ */ l({
531
+ });
532
+ //#endregion
533
+ //#region lib/components/ui/actions/button/has-text-content.ts
534
+ function $(e) {
535
+ if (e == null || typeof e == "boolean") return !1;
536
+ if (typeof e == "string" || typeof e == "number") return String(e).trim() !== "";
537
+ if (Array.isArray(e)) return e.some($);
538
+ if (!m(e) || e.type === n) return !1;
539
+ if (e.type === r) return String(e.children ?? "").trim() !== "";
540
+ if (ee(e.props?.["aria-hidden"] ?? e.props?.ariaHidden)) return !1;
541
+ let { children: t } = e;
542
+ if (typeof t == "string") return t.trim() !== "";
543
+ if (Array.isArray(t)) return $(t);
544
+ let i = t?.default;
545
+ return typeof i == "function" && $(i());
546
+ }
547
+ function ee(e) {
548
+ return e === "" || !!e && e !== "false";
549
+ }
550
+ //#endregion
551
+ //#region lib/components/ui/actions/button/Button.vue
552
+ var te = /* @__PURE__ */ d({
532
553
  inheritAttrs: !1,
533
554
  __name: "Button",
534
555
  props: {
@@ -550,36 +571,38 @@ var V = A(() => {
550
571
  tooltip: {}
551
572
  },
552
573
  setup(t) {
553
- let a = t, o = y(), l = n(() => !!(a.disabled || a.loading)), u = n(() => a.as !== "button" || a.asChild ? o.type : o.type ?? "button"), p = n(() => !!a.size?.startsWith("icon")), g = n(() => e("justify-center duration-500", !p.value && "w-max truncate line-clamp-1 text-ellipsis", G({
554
- variant: a.variant,
555
- color: a.color,
556
- size: a.size
557
- }), a.class));
558
- return (n, a) => t.tooltip ? (m(), r(v(U), { key: 0 }, {
559
- default: b(() => [c(v(R), null, {
560
- default: b(() => [c(v(W), { "as-child": "" }, {
561
- default: b(() => [c(v(x), d(n.$attrs, {
574
+ let n = t, r = w(), s = T(), c = p(Z, void 0);
575
+ y(Z, i(() => !!c?.value || !!(r["aria-label"] || r["aria-labelledby"]) || $(s.default?.())));
576
+ let d = i(() => !!(n.disabled || n.loading)), f = i(() => n.as !== "button" || n.asChild ? r.type : r.type ?? "button"), m = i(() => !!n.size?.startsWith("icon")), _ = i(() => e("justify-center duration-500", !m.value && "w-max truncate line-clamp-1 text-ellipsis", Q({
577
+ variant: n.variant,
578
+ color: n.color,
579
+ size: n.size
580
+ }), n.class));
581
+ return (n, r) => t.tooltip ? (v(), a(C(Y), { key: 0 }, {
582
+ default: E(() => [u(C(W), null, {
583
+ default: E(() => [u(C(X), { "as-child": "" }, {
584
+ default: E(() => [u(C(D), h(n.$attrs, {
562
585
  "data-slot": n.$attrs["data-slot"] ?? "button",
563
586
  "data-variant": t.variant,
564
587
  "data-color": t.color,
565
588
  "data-size": t.size,
566
589
  as: t.as,
567
590
  "as-child": t.asChild,
568
- type: u.value,
569
- disabled: l.value,
591
+ type: f.value,
592
+ disabled: d.value,
570
593
  "aria-busy": t.loading || void 0,
571
- class: g.value
594
+ class: _.value
572
595
  }), {
573
- default: b(() => [t.loading ? (m(), r(L, {
596
+ default: E(() => [t.loading ? (v(), a(U, {
574
597
  key: 0,
575
598
  variant: t.spinnerVariant,
576
599
  color: t.variant === "filled" ? "light" : t.color,
577
- class: f(v(e)("starting:scale-0 duration-500", t.spinnerVariant === "4" ? "size-7.5" : "size-4.5"))
600
+ class: g(C(e)("starting:scale-0 duration-500", t.spinnerVariant === "4" ? "size-7.5" : "size-4.5"))
578
601
  }, null, 8, [
579
602
  "variant",
580
603
  "color",
581
604
  "class"
582
- ])) : i("", !0), h(n.$slots, "default")]),
605
+ ])) : o("", !0), b(n.$slots, "default")]),
583
606
  _: 3
584
607
  }, 16, [
585
608
  "data-slot",
@@ -594,35 +617,35 @@ var V = A(() => {
594
617
  "class"
595
618
  ])]),
596
619
  _: 3
597
- }), c(v(H), null, {
598
- default: b(() => [s(_(t.tooltip), 1)]),
620
+ }), u(C(J), null, {
621
+ default: E(() => [l(S(t.tooltip), 1)]),
599
622
  _: 1
600
623
  })]),
601
624
  _: 3
602
625
  })]),
603
626
  _: 3
604
- })) : (m(), r(v(x), d({ key: 1 }, n.$attrs, {
627
+ })) : (v(), a(C(D), h({ key: 1 }, n.$attrs, {
605
628
  "data-slot": n.$attrs["data-slot"] ?? "button",
606
629
  "data-variant": t.variant,
607
630
  "data-color": t.color,
608
631
  "data-size": t.size,
609
632
  as: t.as,
610
633
  "as-child": t.asChild,
611
- type: u.value,
612
- disabled: l.value,
634
+ type: f.value,
635
+ disabled: d.value,
613
636
  "aria-busy": t.loading || void 0,
614
- class: g.value
637
+ class: _.value
615
638
  }), {
616
- default: b(() => [t.loading ? (m(), r(L, {
639
+ default: E(() => [t.loading ? (v(), a(U, {
617
640
  key: 0,
618
641
  variant: t.spinnerVariant,
619
642
  color: t.variant === "filled" ? "light" : t.color,
620
- class: f(v(e)("starting:scale-0 duration-500", t.spinnerVariant === "4" ? "size-7.5" : "size-4.5"))
643
+ class: g(C(e)("starting:scale-0 duration-500", t.spinnerVariant === "4" ? "size-7.5" : "size-4.5"))
621
644
  }, null, 8, [
622
645
  "variant",
623
646
  "color",
624
647
  "class"
625
- ])) : i("", !0), h(n.$slots, "default")]),
648
+ ])) : o("", !0), b(n.$slots, "default")]),
626
649
  _: 3
627
650
  }, 16, [
628
651
  "data-slot",
@@ -639,4 +662,4 @@ var V = A(() => {
639
662
  }
640
663
  });
641
664
  //#endregion
642
- export { H as a, L as c, U as i, P as l, G as n, V as o, W as r, R as s, K as t };
665
+ export { Y as a, W as c, X as i, U as l, Q as n, J as o, Z as r, q as s, te as t, B as u };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./utils-CykWQ0iJ.js";
2
- import { t } from "./use-material-translation-C5zPFhbk.js";
3
- import { t as n } from "./Button-CVIR6uLK.js";
2
+ import { t } from "./use-material-translation-B6sIk0mF.js";
3
+ import { t as n } from "./Button-C1aaI0Gw.js";
4
4
  import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, isRef as d, mergeProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, renderSlot as g, toDisplayString as _, unref as v, useId as y, useTemplateRef as b, vModelText as x, withCtx as S, withDirectives as C } from "vue";
5
5
  import { X as w } from "@lucide/vue";
6
6
  import { DialogClose as T, DialogContent as E, DialogDescription as D, DialogOverlay as O, DialogPortal as k, DialogRoot as ee, DialogTitle as te, DialogTrigger as A, HoverCardContent as j, HoverCardPortal as M, HoverCardRoot as N, HoverCardTrigger as P, Label as F, useForwardProps as I, useForwardPropsEmits as L } from "reka-ui";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./utils-CykWQ0iJ.js";
2
- import { ir as t, or as n, rr as r } from "./components-AScwCcds.js";
3
- import { t as i } from "./use-material-translation-C5zPFhbk.js";
4
- import { t as a } from "./Button-CVIR6uLK.js";
5
- import { t as o } from "./icon-button-DbEME76t.js";
2
+ import { gr as t, mr as n, pr as r } from "./components-DRBKkOqk.js";
3
+ import { t as i } from "./use-material-translation-B6sIk0mF.js";
4
+ import { t as a } from "./Button-C1aaI0Gw.js";
5
+ import { t as o } from "./icon-button-B2FQtIHS.js";
6
6
  import { createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, openBlock as h, ref as g, renderSlot as _, shallowRef as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
7
7
  import { Pause as S, Play as C } from "@lucide/vue";
8
8
  //#region lib/components/ui/media/camera/camera-content.vue?vue&type=script&setup=true&lang.ts
@@ -58,8 +58,8 @@ var w = { class: "grid gap-2" }, T = { class: "flex justify-end" }, E = ["src",
58
58
  }), O = /* @__PURE__ */ p({
59
59
  __name: "camera-provider",
60
60
  setup(e) {
61
- let r = g(null), i = g(null), a = v(null), o = n();
62
- return t({
61
+ let r = g(null), i = g(null), a = v(null), o = t();
62
+ return n({
63
63
  videoRef: r,
64
64
  canvasRef: i,
65
65
  streamRef: a,