origam 2.12.1 → 2.13.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 (128) hide show
  1. package/dist/src/assets/locales/en.json +114 -76
  2. package/dist/src/assets/locales/fr.json +117 -74
  3. package/dist/src/components/BottomNav/OrigamBottomNav.vue +6 -4
  4. package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +1 -1
  5. package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +1 -1
  6. package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +2 -2
  7. package/dist/src/components/Btn/OrigamBtn.vue +1 -1
  8. package/dist/src/components/Calendar/OrigamCalendar.vue +3 -3
  9. package/dist/src/components/Carousel/OrigamCarousel.vue +1 -1
  10. package/dist/src/components/Clipboard/OrigamClipboard.vue +1 -1
  11. package/dist/src/components/Code/OrigamCode.vue +1 -1
  12. package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +2 -2
  13. package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +1 -0
  14. package/dist/src/components/DataTable/OrigamDataTableFooter.vue +8 -8
  15. package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +1 -1
  16. package/dist/src/components/DataTable/OrigamDataTableRow.vue +1 -1
  17. package/dist/src/components/DataTable/OrigamDataTableRows.vue +2 -2
  18. package/dist/src/components/DatePicker/OrigamDatePicker.vue +3 -3
  19. package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +1 -1
  20. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +8 -3
  21. package/dist/src/components/FileField/OrigamFileField.vue +8 -8
  22. package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +2 -2
  23. package/dist/src/components/List/OrigamList.vue +7 -0
  24. package/dist/src/components/List/OrigamListItem.vue +71 -3
  25. package/dist/src/components/Media/OrigamMediaController.vue +9 -9
  26. package/dist/src/components/Menu/OrigamMenu.vue +6 -1
  27. package/dist/src/components/Pagination/OrigamPagination.vue +8 -8
  28. package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +1 -1
  29. package/dist/src/components/Select/OrigamSelect.vue +7 -2
  30. package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +6 -3
  31. package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +15 -0
  32. package/dist/src/components/Stepper/OrigamStepper.vue +1 -1
  33. package/dist/src/components/Stepper/OrigamStepperItem.vue +1 -1
  34. package/dist/src/components/Switch/OrigamSwitch.vue +453 -449
  35. package/dist/src/components/TextField/OrigamTextField.vue +4 -1
  36. package/dist/src/components/TextareaField/OrigamRichToolbar.vue +8 -8
  37. package/dist/src/components/TextareaField/OrigamTextareaField.vue +1 -1
  38. package/dist/src/components/Title/OrigamTitle.vue +6 -4
  39. package/dist/src/components/Video/OrigamVideo.vue +3 -3
  40. package/dist/src/composables/Commons/group.composable.cjs +2 -2
  41. package/dist/src/composables/Commons/group.composable.js +2 -2
  42. package/dist/src/composables/Commons/style.composable.cjs +14 -12
  43. package/dist/src/composables/Commons/style.composable.d.ts +16 -2
  44. package/dist/src/composables/Commons/style.composable.js +16 -14
  45. package/dist/src/consts/Btn/btn-toggle.const.cjs +1 -1
  46. package/dist/src/consts/Btn/btn-toggle.const.js +1 -1
  47. package/dist/src/consts/Chip/chip-group.const.cjs +1 -1
  48. package/dist/src/consts/Chip/chip-group.const.js +1 -1
  49. package/dist/src/consts/Commons/date.const.cjs +2 -2
  50. package/dist/src/consts/Commons/date.const.js +2 -2
  51. package/dist/src/consts/Commons/defaults.const.cjs +1 -1
  52. package/dist/src/consts/Commons/defaults.const.js +1 -1
  53. package/dist/src/consts/Commons/display.const.cjs +1 -1
  54. package/dist/src/consts/Commons/display.const.js +1 -1
  55. package/dist/src/consts/Commons/forwardRefs.const.cjs +1 -1
  56. package/dist/src/consts/Commons/forwardRefs.const.js +1 -1
  57. package/dist/src/consts/Commons/goTo.const.cjs +1 -1
  58. package/dist/src/consts/Commons/goTo.const.js +1 -1
  59. package/dist/src/consts/Commons/hover.const.cjs +1 -1
  60. package/dist/src/consts/Commons/hover.const.js +1 -1
  61. package/dist/src/consts/Commons/layout.const.cjs +2 -2
  62. package/dist/src/consts/Commons/layout.const.js +2 -2
  63. package/dist/src/consts/Commons/locale.const.cjs +1 -1
  64. package/dist/src/consts/Commons/locale.const.js +1 -1
  65. package/dist/src/consts/Commons/nested.const.cjs +1 -1
  66. package/dist/src/consts/Commons/nested.const.js +1 -1
  67. package/dist/src/consts/Commons/ripple.const.cjs +1 -1
  68. package/dist/src/consts/Commons/ripple.const.js +1 -1
  69. package/dist/src/consts/Commons/stack.const.cjs +1 -1
  70. package/dist/src/consts/Commons/stack.const.js +1 -1
  71. package/dist/src/consts/DataTable/expand.const.cjs +1 -1
  72. package/dist/src/consts/DataTable/expand.const.js +1 -1
  73. package/dist/src/consts/DataTable/group.const.cjs +1 -1
  74. package/dist/src/consts/DataTable/group.const.js +1 -1
  75. package/dist/src/consts/DataTable/headers.const.cjs +1 -1
  76. package/dist/src/consts/DataTable/headers.const.js +1 -1
  77. package/dist/src/consts/DataTable/pagination.const.cjs +1 -1
  78. package/dist/src/consts/DataTable/pagination.const.js +1 -1
  79. package/dist/src/consts/DataTable/select.const.cjs +2 -2
  80. package/dist/src/consts/DataTable/select.const.js +2 -2
  81. package/dist/src/consts/DataTable/sort.const.cjs +1 -1
  82. package/dist/src/consts/DataTable/sort.const.js +1 -1
  83. package/dist/src/consts/ExpansionPanel/expansion-panel.const.cjs +1 -1
  84. package/dist/src/consts/ExpansionPanel/expansion-panel.const.js +1 -1
  85. package/dist/src/consts/Form/form.const.cjs +1 -1
  86. package/dist/src/consts/Form/form.const.js +1 -1
  87. package/dist/src/consts/Icon/icon.const.cjs +1 -1
  88. package/dist/src/consts/Icon/icon.const.js +1 -1
  89. package/dist/src/consts/ItemGroup/item-group.const.cjs +1 -1
  90. package/dist/src/consts/ItemGroup/item-group.const.js +1 -1
  91. package/dist/src/consts/List/list.const.cjs +1 -1
  92. package/dist/src/consts/List/list.const.js +1 -1
  93. package/dist/src/consts/Menu/menu.const.cjs +1 -1
  94. package/dist/src/consts/Menu/menu.const.js +1 -1
  95. package/dist/src/consts/Parallax/parallax-container.const.cjs +1 -1
  96. package/dist/src/consts/Parallax/parallax-container.const.js +1 -1
  97. package/dist/src/consts/Parallax/parallax-layer.const.cjs +1 -1
  98. package/dist/src/consts/Parallax/parallax-layer.const.js +1 -1
  99. package/dist/src/consts/SelectionControl/selection-control.const.cjs +1 -1
  100. package/dist/src/consts/SelectionControl/selection-control.const.js +1 -1
  101. package/dist/src/consts/Slide/slide-group.const.cjs +1 -1
  102. package/dist/src/consts/Slide/slide-group.const.js +1 -1
  103. package/dist/src/consts/Stepper/stepper.const.cjs +1 -1
  104. package/dist/src/consts/Stepper/stepper.const.js +1 -1
  105. package/dist/src/consts/Tabs/tabs.const.cjs +3 -3
  106. package/dist/src/consts/Tabs/tabs.const.js +3 -3
  107. package/dist/src/consts/Theme/theme.const.cjs +2 -2
  108. package/dist/src/consts/Theme/theme.const.js +2 -2
  109. package/dist/src/consts/Timeline/timeline.const.cjs +1 -1
  110. package/dist/src/consts/Timeline/timeline.const.js +1 -1
  111. package/dist/src/consts/Treeview/treeview.const.cjs +1 -1
  112. package/dist/src/consts/Treeview/treeview.const.js +1 -1
  113. package/dist/src/consts/Window/window.const.cjs +2 -2
  114. package/dist/src/consts/Window/window.const.js +2 -2
  115. package/dist/src/interfaces/Commons/commons.interface.d.ts +18 -0
  116. package/dist/src/interfaces/List/list-item.interface.d.ts +15 -2
  117. package/dist/src/interfaces/List/list.interface.d.ts +10 -2
  118. package/dist/src/interfaces/Pagination/pagination.interface.d.ts +2 -2
  119. package/dist/src/nuxt/module.cjs +3 -2
  120. package/dist/src/nuxt/module.js +2 -1
  121. package/dist/src/origam.cjs +3 -2
  122. package/dist/src/origam.js +3 -2
  123. package/dist/src/services/Commons/circular-buffer.service.cjs +1 -0
  124. package/dist/src/services/Commons/circular-buffer.service.js +1 -0
  125. package/dist/src/utils/Commons/dom.util.cjs +32 -0
  126. package/dist/src/utils/Commons/dom.util.d.ts +1 -0
  127. package/dist/src/utils/Commons/dom.util.js +31 -0
  128. package/package.json +10 -5
@@ -420,6 +420,7 @@ watch(maskIsValid, (v) => {
420
420
  watch(maskComplete, (c) => {
421
421
  if (hasMask.value) emits("complete", { complete: c, unmasked: unmaskedValue.value });
422
422
  }, { immediate: false });
423
+ let maskInputSeq = 0;
423
424
  const handleInput = (e) => {
424
425
  const el = e.target;
425
426
  if (hasMask.value) {
@@ -427,7 +428,9 @@ const handleInput = (e) => {
427
428
  const tokens = cfg?.pattern ?? "";
428
429
  const r = applyMask(el.value, tokens);
429
430
  model.value = r.unmasked;
431
+ const seq = ++maskInputSeq;
430
432
  nextTick(() => {
433
+ if (seq !== maskInputSeq) return;
431
434
  if (el.value !== r.masked) el.value = r.masked;
432
435
  const pos = r.masked.length;
433
436
  try {
@@ -468,7 +471,7 @@ const enrichedRules = computed(() => {
468
471
  const base = Array.isArray(props.rules) ? [...props.rules] : [];
469
472
  if (props.counter && typeof props.counter === "number") {
470
473
  const limit = props.counter;
471
- base.push((v) => !v || v.length <= limit || t("origam.validation.max_length", [limit]));
474
+ base.push((v) => !v || v.length <= limit || t("origam.validation.max_length", limit));
472
475
  }
473
476
  if (hasMask.value) {
474
477
  base.push(() => {
@@ -96,7 +96,7 @@ const { t } = useLocale();
96
96
  const linkPopoverOpen = ref(false);
97
97
  const linkInput = ref("");
98
98
  const linkInputRef = ref();
99
- const toolbarLabel = computed(() => t("origam.textarea.rich.toolbar.aria-label", "Text formatting"));
99
+ const toolbarLabel = computed(() => t("origam.textarea.rich.toolbar.aria_label", "Text formatting"));
100
100
  const linkPlaceholder = computed(() => t("origam.textarea.rich.link.placeholder", "https://example.com"));
101
101
  const linkApplyLabel = computed(() => t("origam.textarea.rich.link.apply", "Apply"));
102
102
  const ICON_MAP = {
@@ -118,14 +118,14 @@ const LABEL_KEY = {
118
118
  [TEXTAREA_TOOLBAR_COMMAND.ITALIC]: ["origam.textarea.rich.command.italic", "Italic"],
119
119
  [TEXTAREA_TOOLBAR_COMMAND.UNDERLINE]: ["origam.textarea.rich.command.underline", "Underline"],
120
120
  [TEXTAREA_TOOLBAR_COMMAND.LINK]: ["origam.textarea.rich.command.link", "Insert link"],
121
- [TEXTAREA_TOOLBAR_COMMAND.LIST_BULLET]: ["origam.textarea.rich.command.list-bullet", "Bullet list"],
122
- [TEXTAREA_TOOLBAR_COMMAND.LIST_ORDERED]: ["origam.textarea.rich.command.list-ordered", "Numbered list"],
121
+ [TEXTAREA_TOOLBAR_COMMAND.LIST_BULLET]: ["origam.textarea.rich.command.list_bullet", "Bullet list"],
122
+ [TEXTAREA_TOOLBAR_COMMAND.LIST_ORDERED]: ["origam.textarea.rich.command.list_ordered", "Numbered list"],
123
123
  [TEXTAREA_TOOLBAR_COMMAND.HEADING]: ["origam.textarea.rich.command.heading", "Heading"],
124
- [TEXTAREA_TOOLBAR_COMMAND.HEADING_1]: ["origam.textarea.rich.command.heading-1", "Heading 1"],
125
- [TEXTAREA_TOOLBAR_COMMAND.HEADING_2]: ["origam.textarea.rich.command.heading-2", "Heading 2"],
126
- [TEXTAREA_TOOLBAR_COMMAND.HEADING_3]: ["origam.textarea.rich.command.heading-3", "Heading 3"],
127
- [TEXTAREA_TOOLBAR_COMMAND.CODE_INLINE]: ["origam.textarea.rich.command.code-inline", "Inline code"],
128
- [TEXTAREA_TOOLBAR_COMMAND.CLEAR_FORMAT]: ["origam.textarea.rich.command.clear-format", "Clear formatting"]
124
+ [TEXTAREA_TOOLBAR_COMMAND.HEADING_1]: ["origam.textarea.rich.command.heading_1", "Heading 1"],
125
+ [TEXTAREA_TOOLBAR_COMMAND.HEADING_2]: ["origam.textarea.rich.command.heading_2", "Heading 2"],
126
+ [TEXTAREA_TOOLBAR_COMMAND.HEADING_3]: ["origam.textarea.rich.command.heading_3", "Heading 3"],
127
+ [TEXTAREA_TOOLBAR_COMMAND.CODE_INLINE]: ["origam.textarea.rich.command.code_inline", "Inline code"],
128
+ [TEXTAREA_TOOLBAR_COMMAND.CLEAR_FORMAT]: ["origam.textarea.rich.command.clear_format", "Clear formatting"]
129
129
  };
130
130
  const toolbarClasses = computed(() => [
131
131
  "origam-rich-toolbar",
@@ -635,7 +635,7 @@ const enrichedRules = computed(() => {
635
635
  const base = Array.isArray(props.rules) ? [...props.rules] : [];
636
636
  if (props.counter && typeof props.counter === "number") {
637
637
  const limit = props.counter;
638
- base.push((v) => !v || v.length <= limit || t("origam.validation.max_length", [limit]));
638
+ base.push((v) => !v || v.length <= limit || t("origam.validation.max_length", limit));
639
639
  }
640
640
  return base;
641
641
  });
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <component
3
- :is="tag"
3
+ :is="props.tag"
4
4
  :id="id"
5
5
  v-contrast
6
6
  :class="titleClasses"
@@ -20,6 +20,7 @@ import { computed, StyleValue, toRef, useSlots } from "vue";
20
20
  import {
21
21
  useBorder,
22
22
  useBothColor,
23
+ useDefaults,
23
24
  useDensity,
24
25
  useMargin,
25
26
  usePadding,
@@ -28,9 +29,9 @@ import {
28
29
  useTypography
29
30
  } from "../../composables";
30
31
  import { vContrast } from "../../directives";
31
- const props = defineProps({
32
+ const _props = defineProps({
32
33
  text: { type: String, required: false },
33
- tag: { type: String, required: false, default: "h1" },
34
+ tag: { type: String, required: false, default: "h2" },
34
35
  id: { type: String, required: false },
35
36
  class: { type: [String, Array, Object], required: false },
36
37
  style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
@@ -70,6 +71,7 @@ const props = defineProps({
70
71
  lineHeight: { type: String, required: false },
71
72
  letterSpacing: { type: String, required: false }
72
73
  });
74
+ const props = useDefaults(_props);
73
75
  const { filterProps } = useProps(props);
74
76
  const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
75
77
  const { densityClasses } = useDensity(props);
@@ -102,7 +104,7 @@ const titleClasses = computed(() => {
102
104
  props.class
103
105
  ];
104
106
  });
105
- const { id: styleId, css, load, isLoaded, unload } = useStyle(titleStyles);
107
+ const { id: styleId, css, load, isLoaded, unload } = useStyle(titleStyles, () => props.id);
106
108
  defineExpose({
107
109
  filterProps,
108
110
  css,
@@ -575,13 +575,13 @@ const errorMessage = computed(() => {
575
575
  return "Playback error";
576
576
  });
577
577
  const captionsLabelKey = computed(() => {
578
- return captionsEnabled.value ? "origam.video.disableCaptions" : "origam.video.enableCaptions";
578
+ return captionsEnabled.value ? "origam.video.disable_captions" : "origam.video.enable_captions";
579
579
  });
580
580
  const pipLabelKey = computed(() => {
581
- return state.pip.value ? "origam.video.exitPip" : "origam.video.enterPip";
581
+ return state.pip.value ? "origam.video.exit_pip" : "origam.video.enter_pip";
582
582
  });
583
583
  const fullscreenLabelKey = computed(() => {
584
- return state.fullscreen.value ? "origam.video.exitFullscreen" : "origam.video.enterFullscreen";
584
+ return state.fullscreen.value ? "origam.video.exit_fullscreen" : "origam.video.enter_fullscreen";
585
585
  });
586
586
  const fullscreenIcon = computed(() => {
587
587
  return state.fullscreen.value ? ICONS.FULLSCREEN_EXIT : ICONS.FULLSCREEN;
@@ -14,7 +14,7 @@ function useGroupItem(props, injectKey, required = true) {
14
14
  throw new Error("[Origam] useGroupItem composable must be used inside a component setup function");
15
15
  }
16
16
  const id = (0, _utils.getUid)();
17
- (0, _vue.provide)(Symbol.for(`${injectKey.description}:id`), id);
17
+ (0, _vue.provide)(/* @__PURE__ */Symbol.for(`${injectKey.description}:id`), id);
18
18
  const group = (0, _vue.inject)(injectKey, null);
19
19
  if (!group) {
20
20
  if (!required) return group;
@@ -68,7 +68,7 @@ function useGroup(props, injectKey) {
68
68
  const groupVm = (0, _utils.getCurrentInstance)("useGroup");
69
69
  const register = (item, vm) => {
70
70
  const unwrapped = item;
71
- const key = Symbol.for(`${injectKey.description}:id`);
71
+ const key = /* @__PURE__ */Symbol.for(`${injectKey.description}:id`);
72
72
  const children = (0, _utils.findChildrenWithProvide)(key, groupVm?.vnode);
73
73
  const index = children.indexOf(vm);
74
74
  if ((0, _vue.unref)(unwrapped.value) == null) {
@@ -28,7 +28,7 @@ export function useGroupItem(props, injectKey, required = true) {
28
28
  );
29
29
  }
30
30
  const id = getUid();
31
- provide(Symbol.for(`${injectKey.description}:id`), id);
31
+ provide(/* @__PURE__ */ Symbol.for(`${injectKey.description}:id`), id);
32
32
  const group = inject(injectKey, null);
33
33
  if (!group) {
34
34
  if (!required) return group;
@@ -86,7 +86,7 @@ export function useGroup(props, injectKey) {
86
86
  const groupVm = getCurrentInstance("useGroup");
87
87
  const register = (item, vm) => {
88
88
  const unwrapped = item;
89
- const key = Symbol.for(`${injectKey.description}:id`);
89
+ const key = /* @__PURE__ */ Symbol.for(`${injectKey.description}:id`);
90
90
  const children = findChildrenWithProvide(key, groupVm?.vnode);
91
91
  const index = children.indexOf(vm);
92
92
  if (unref(unwrapped.value) == null) {
@@ -51,20 +51,22 @@ function useStyleTag(css, options = {}) {
51
51
  isLoaded: (0, _vue.readonly)(isLoaded)
52
52
  };
53
53
  }
54
+ function toDeclarations(value) {
55
+ if (value == null || typeof value === "boolean" || typeof value === "number") return [];
56
+ if (typeof value === "string") return value.length > 0 ? [value] : [];
57
+ if (Array.isArray(value)) return value.flatMap(toDeclarations);
58
+ if (typeof value === "object") {
59
+ const bag = value;
60
+ return Object.keys(bag).filter(key => typeof bag[key] !== "undefined").map(key => `${key}: ${bag[key]}`);
61
+ }
62
+ return [];
63
+ }
54
64
  function useStyle(styles, uniq = void 0, name = (0, _utils.getCurrentInstanceName)()) {
55
- const id = (0, _vue.computed)(() => {
56
- return uniq ?? `${name}-${(0, _utils.getUid)()}`;
57
- });
65
+ const fallbackId = `${name}-${(0, _utils.getUid)()}`;
66
+ const id = (0, _vue.computed)(() => (0, _vue.toValue)(uniq) || fallbackId);
58
67
  const customCss = (0, _vue.computed)(() => {
59
- const raw = styles.value;
60
- const normalized = Array.isArray(raw) ? raw : [raw];
61
- const stylesArray = normalized.map(value => {
62
- if (typeof value === "object" && value !== null && !Array.isArray(value)) {
63
- return Object.keys(value).filter(key => typeof value[key] !== "undefined").map(key => `${key}: ${value[key]}`);
64
- }
65
- return value;
66
- }).flat().filter(value => value != null && String(value).length > 0);
67
- return `#${id.value} {${stylesArray.join(";")}}`;
68
+ const stylesArray = toDeclarations(styles.value);
69
+ return `#${(0, _utils.escapeCssIdent)(id.value)} {${stylesArray.join(";")}}`;
68
70
  });
69
71
  const {
70
72
  id: styleTagId,
@@ -1,5 +1,5 @@
1
1
  import type { IStyleTagOptions } from "../../interfaces";
2
- import { ComputedRef, MaybeRef } from 'vue';
2
+ import { ComputedRef, MaybeRef, MaybeRefOrGetter } from 'vue';
3
3
  /**
4
4
  * Inject <style> element in head.
5
5
  *
@@ -18,10 +18,24 @@ export declare function useStyleTag(css: MaybeRef<string>, options?: IStyleTagOp
18
18
  load: () => void;
19
19
  isLoaded: Readonly<import("vue").Ref<boolean, boolean>>;
20
20
  };
21
+ /**
22
+ * Build a per-instance stylesheet out of a computed style bag and inject it
23
+ * in `<head>`, scoped to the root element's id.
24
+ *
25
+ * `uniq` is the id the CALLER wants that root element to carry. Passing
26
+ * `() => props.id` is what makes a consumer-supplied `id` win over the
27
+ * generated one: the returned `id` is what the component binds to its root,
28
+ * and the generated rule targets that same id — so honouring the consumer's
29
+ * `id` never orphans the rule. Reactive (ref / getter) so that an `id` that
30
+ * appears on a later render is picked up.
31
+ *
32
+ * When the caller passes nothing (or an empty value) the generated
33
+ * `<name>-<uid>` id is used, exactly as before.
34
+ */
21
35
  /*********************************************************
22
36
  * useStyle
23
37
  ********************************************************/
24
- export declare function useStyle(styles: ComputedRef, uniq?: undefined, name?: string): {
38
+ export declare function useStyle(styles: ComputedRef, uniq?: MaybeRefOrGetter<string | undefined>, name?: string): {
25
39
  id: ComputedRef<string>;
26
40
  styleTagId: string;
27
41
  css: import("vue").Ref<string, string> | import("vue").ShallowRef<string, string> | import("vue").WritableComputedRef<string, string>;
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_DOCUMENT } from "../../consts/index.js";
2
- import { getCurrentInstanceName, getUid, tryOnMounted, tryOnScopeDispose } from "../../utils/index.js";
3
- import { computed, onMounted, readonly, shallowRef, watch } from "vue";
2
+ import { escapeCssIdent, getCurrentInstanceName, getUid, tryOnMounted, tryOnScopeDispose } from "../../utils/index.js";
3
+ import { computed, onMounted, readonly, shallowRef, toValue, watch } from "vue";
4
4
  let _id = 0;
5
5
  export function useStyleTag(css, options = {}) {
6
6
  const isLoaded = shallowRef(false);
@@ -53,20 +53,22 @@ export function useStyleTag(css, options = {}) {
53
53
  isLoaded: readonly(isLoaded)
54
54
  };
55
55
  }
56
+ function toDeclarations(value) {
57
+ if (value == null || typeof value === "boolean" || typeof value === "number") return [];
58
+ if (typeof value === "string") return value.length > 0 ? [value] : [];
59
+ if (Array.isArray(value)) return value.flatMap(toDeclarations);
60
+ if (typeof value === "object") {
61
+ const bag = value;
62
+ return Object.keys(bag).filter((key) => typeof bag[key] !== "undefined").map((key) => `${key}: ${bag[key]}`);
63
+ }
64
+ return [];
65
+ }
56
66
  export function useStyle(styles, uniq = void 0, name = getCurrentInstanceName()) {
57
- const id = computed(() => {
58
- return uniq ?? `${name}-${getUid()}`;
59
- });
67
+ const fallbackId = `${name}-${getUid()}`;
68
+ const id = computed(() => toValue(uniq) || fallbackId);
60
69
  const customCss = computed(() => {
61
- const raw = styles.value;
62
- const normalized = Array.isArray(raw) ? raw : [raw];
63
- const stylesArray = normalized.map((value) => {
64
- if (typeof value === "object" && value !== null && !Array.isArray(value)) {
65
- return Object.keys(value).filter((key) => typeof value[key] !== "undefined").map((key) => `${key}: ${value[key]}`);
66
- }
67
- return value;
68
- }).flat().filter((value) => value != null && String(value).length > 0);
69
- return `#${id.value} {${stylesArray.join(";")}}`;
70
+ const stylesArray = toDeclarations(styles.value);
71
+ return `#${escapeCssIdent(id.value)} {${stylesArray.join(";")}}`;
70
72
  });
71
73
  const { id: styleTagId, css, load, unload, isLoaded } = useStyleTag(customCss);
72
74
  onMounted(() => {
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_BTN_TOGGLE_KEY = void 0;
7
- const ORIGAM_BTN_TOGGLE_KEY = exports.ORIGAM_BTN_TOGGLE_KEY = Symbol.for("origam:btn-toggle");
7
+ const ORIGAM_BTN_TOGGLE_KEY = exports.ORIGAM_BTN_TOGGLE_KEY = /* @__PURE__ */Symbol.for("origam:btn-toggle");
@@ -1 +1 @@
1
- export const ORIGAM_BTN_TOGGLE_KEY = Symbol.for("origam:btn-toggle");
1
+ export const ORIGAM_BTN_TOGGLE_KEY = /* @__PURE__ */ Symbol.for("origam:btn-toggle");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_CHIP_GROUP_KEY = void 0;
7
- const ORIGAM_CHIP_GROUP_KEY = exports.ORIGAM_CHIP_GROUP_KEY = Symbol.for("origam:chip-group");
7
+ const ORIGAM_CHIP_GROUP_KEY = exports.ORIGAM_CHIP_GROUP_KEY = /* @__PURE__ */Symbol.for("origam:chip-group");
@@ -1 +1 @@
1
- export const ORIGAM_CHIP_GROUP_KEY = Symbol.for("origam:chip-group");
1
+ export const ORIGAM_CHIP_GROUP_KEY = /* @__PURE__ */ Symbol.for("origam:chip-group");
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.REGEX_DATE_YYYY_MM_DD = exports.ORIGAM_DATE_OPTIONS_KEY = exports.ORIGAM_DATE_ADAPTER_KEY = exports.FIRST_DAY = exports.DATE_2000_JUNARY_SUNDAY = void 0;
7
- const ORIGAM_DATE_OPTIONS_KEY = exports.ORIGAM_DATE_OPTIONS_KEY = Symbol.for("origam:date-options");
8
- const ORIGAM_DATE_ADAPTER_KEY = exports.ORIGAM_DATE_ADAPTER_KEY = Symbol.for("origam:date-adapter");
7
+ const ORIGAM_DATE_OPTIONS_KEY = exports.ORIGAM_DATE_OPTIONS_KEY = /* @__PURE__ */Symbol.for("origam:date-options");
8
+ const ORIGAM_DATE_ADAPTER_KEY = exports.ORIGAM_DATE_ADAPTER_KEY = /* @__PURE__ */Symbol.for("origam:date-adapter");
9
9
  const REGEX_DATE_YYYY_MM_DD = exports.REGEX_DATE_YYYY_MM_DD = /^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;
10
10
  const FIRST_DAY = exports.FIRST_DAY = {
11
11
  "001": 1,
@@ -1,5 +1,5 @@
1
- export const ORIGAM_DATE_OPTIONS_KEY = Symbol.for("origam:date-options");
2
- export const ORIGAM_DATE_ADAPTER_KEY = Symbol.for("origam:date-adapter");
1
+ export const ORIGAM_DATE_OPTIONS_KEY = /* @__PURE__ */ Symbol.for("origam:date-options");
2
+ export const ORIGAM_DATE_ADAPTER_KEY = /* @__PURE__ */ Symbol.for("origam:date-adapter");
3
3
  export const REGEX_DATE_YYYY_MM_DD = /^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;
4
4
  export const FIRST_DAY = {
5
5
  "001": 1,
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_DEFAULTS_KEY = void 0;
7
- const ORIGAM_DEFAULTS_KEY = exports.ORIGAM_DEFAULTS_KEY = Symbol.for("origam:defaults");
7
+ const ORIGAM_DEFAULTS_KEY = exports.ORIGAM_DEFAULTS_KEY = /* @__PURE__ */Symbol.for("origam:defaults");
@@ -1 +1 @@
1
- export const ORIGAM_DEFAULTS_KEY = Symbol.for("origam:defaults");
1
+ export const ORIGAM_DEFAULTS_KEY = /* @__PURE__ */ Symbol.for("origam:defaults");
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ORIGAM_DISPLAY_KEY = exports.DEFAULT_DISPLAY_OPTIONS = exports.BREAKPOINTS_ARRAY = void 0;
7
7
  var _enums = require("../../enums/index.cjs");
8
- const ORIGAM_DISPLAY_KEY = exports.ORIGAM_DISPLAY_KEY = Symbol.for("origam:display");
8
+ const ORIGAM_DISPLAY_KEY = exports.ORIGAM_DISPLAY_KEY = /* @__PURE__ */Symbol.for("origam:display");
9
9
  const DEFAULT_DISPLAY_OPTIONS = exports.DEFAULT_DISPLAY_OPTIONS = {
10
10
  mobileBreakpoint: "lg",
11
11
  thresholds: {
@@ -1,5 +1,5 @@
1
1
  import { BREAKPOINTS } from "../../enums/index.js";
2
- export const ORIGAM_DISPLAY_KEY = Symbol.for("origam:display");
2
+ export const ORIGAM_DISPLAY_KEY = /* @__PURE__ */ Symbol.for("origam:display");
3
3
  export const DEFAULT_DISPLAY_OPTIONS = {
4
4
  mobileBreakpoint: "lg",
5
5
  thresholds: {
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.FORWARD_REFS = void 0;
7
- const FORWARD_REFS = exports.FORWARD_REFS = Symbol("Forwarded refs");
7
+ const FORWARD_REFS = exports.FORWARD_REFS = /* @__PURE__ */Symbol("Forwarded refs");
@@ -1 +1 @@
1
- export const FORWARD_REFS = Symbol("Forwarded refs");
1
+ export const FORWARD_REFS = /* @__PURE__ */ Symbol("Forwarded refs");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_GO_TO_KEY = void 0;
7
- const ORIGAM_GO_TO_KEY = exports.ORIGAM_GO_TO_KEY = Symbol.for("origam:goto");
7
+ const ORIGAM_GO_TO_KEY = exports.ORIGAM_GO_TO_KEY = /* @__PURE__ */Symbol.for("origam:goto");
@@ -1 +1 @@
1
- export const ORIGAM_GO_TO_KEY = Symbol.for("origam:goto");
1
+ export const ORIGAM_GO_TO_KEY = /* @__PURE__ */ Symbol.for("origam:goto");
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_HOVER_STOP_KEY = exports.HOVER = void 0;
7
- const ORIGAM_HOVER_STOP_KEY = exports.ORIGAM_HOVER_STOP_KEY = Symbol("origam:hoverStop");
7
+ const ORIGAM_HOVER_STOP_KEY = exports.ORIGAM_HOVER_STOP_KEY = /* @__PURE__ */Symbol("origam:hoverStop");
8
8
  const HOVER = exports.HOVER = {
9
9
  show(_e, el, value) {
10
10
  if (!el?._hover?.enabled) {
@@ -1,4 +1,4 @@
1
- export const ORIGAM_HOVER_STOP_KEY = Symbol("origam:hoverStop");
1
+ export const ORIGAM_HOVER_STOP_KEY = /* @__PURE__ */ Symbol("origam:hoverStop");
2
2
  export const HOVER = {
3
3
  show(_e, el, value) {
4
4
  if (!el?._hover?.enabled) {
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ROOT_ZINDEX = exports.ORIGAM_LAYOUT_KEY = exports.ORIGAM_LAYOUT_ITEM_KEY = void 0;
7
- const ORIGAM_LAYOUT_KEY = exports.ORIGAM_LAYOUT_KEY = Symbol.for("origam:layout");
8
- const ORIGAM_LAYOUT_ITEM_KEY = exports.ORIGAM_LAYOUT_ITEM_KEY = Symbol.for("origam:layout-item");
7
+ const ORIGAM_LAYOUT_KEY = exports.ORIGAM_LAYOUT_KEY = /* @__PURE__ */Symbol.for("origam:layout");
8
+ const ORIGAM_LAYOUT_ITEM_KEY = exports.ORIGAM_LAYOUT_ITEM_KEY = /* @__PURE__ */Symbol.for("origam:layout-item");
9
9
  const ROOT_ZINDEX = exports.ROOT_ZINDEX = 1e3;
@@ -1,3 +1,3 @@
1
- export const ORIGAM_LAYOUT_KEY = Symbol.for("origam:layout");
2
- export const ORIGAM_LAYOUT_ITEM_KEY = Symbol.for("origam:layout-item");
1
+ export const ORIGAM_LAYOUT_KEY = /* @__PURE__ */ Symbol.for("origam:layout");
2
+ export const ORIGAM_LAYOUT_ITEM_KEY = /* @__PURE__ */ Symbol.for("origam:layout-item");
3
3
  export const ROOT_ZINDEX = 1e3;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_LOCALE_KEY = exports.LOCALE_RTL_DEFAULT = void 0;
7
- const ORIGAM_LOCALE_KEY = exports.ORIGAM_LOCALE_KEY = Symbol.for("origam:locale");
7
+ const ORIGAM_LOCALE_KEY = exports.ORIGAM_LOCALE_KEY = /* @__PURE__ */Symbol.for("origam:locale");
8
8
  const LOCALE_RTL_DEFAULT = exports.LOCALE_RTL_DEFAULT = Object.freeze({
9
9
  af: false,
10
10
  ar: true,
@@ -1,4 +1,4 @@
1
- export const ORIGAM_LOCALE_KEY = Symbol.for("origam:locale");
1
+ export const ORIGAM_LOCALE_KEY = /* @__PURE__ */ Symbol.for("origam:locale");
2
2
  export const LOCALE_RTL_DEFAULT = Object.freeze({
3
3
  af: false,
4
4
  ar: true,
@@ -68,7 +68,7 @@ const LIST_OPEN_STRATEGY = exports.LIST_OPEN_STRATEGY = {
68
68
  return new Set(path);
69
69
  }
70
70
  };
71
- const ORIGAM_NESTED_KEY = exports.ORIGAM_NESTED_KEY = Symbol.for("origam:nested");
71
+ const ORIGAM_NESTED_KEY = exports.ORIGAM_NESTED_KEY = /* @__PURE__ */Symbol.for("origam:nested");
72
72
  const EMPTY_NESTED = exports.EMPTY_NESTED = {
73
73
  id: (0, _vue.shallowRef)(),
74
74
  root: {
@@ -47,7 +47,7 @@ export const LIST_OPEN_STRATEGY = {
47
47
  return new Set(path);
48
48
  }
49
49
  };
50
- export const ORIGAM_NESTED_KEY = Symbol.for("origam:nested");
50
+ export const ORIGAM_NESTED_KEY = /* @__PURE__ */ Symbol.for("origam:nested");
51
51
  export const EMPTY_NESTED = {
52
52
  id: shallowRef(),
53
53
  root: {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.RIPPLE_OPTIONS = exports.RIPPLES = exports.ORIGAM_RIPPLE_STOP_KEY = exports.KEYCODES = exports.DELAY_RIPPLE = void 0;
7
7
  var _utils = require("../../utils/index.cjs");
8
- const ORIGAM_RIPPLE_STOP_KEY = exports.ORIGAM_RIPPLE_STOP_KEY = Symbol("origam:rippleStop");
8
+ const ORIGAM_RIPPLE_STOP_KEY = exports.ORIGAM_RIPPLE_STOP_KEY = /* @__PURE__ */Symbol("origam:rippleStop");
9
9
  const DELAY_RIPPLE = exports.DELAY_RIPPLE = 80;
10
10
  const KEYCODES = exports.KEYCODES = Object.freeze({
11
11
  enter: 13,
@@ -1,5 +1,5 @@
1
1
  import { calculate, rippleTransform } from "../../utils/index.js";
2
- export const ORIGAM_RIPPLE_STOP_KEY = Symbol("origam:rippleStop");
2
+ export const ORIGAM_RIPPLE_STOP_KEY = /* @__PURE__ */ Symbol("origam:rippleStop");
3
3
  export const DELAY_RIPPLE = 80;
4
4
  export const KEYCODES = Object.freeze({
5
5
  enter: 13,
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ORIGAM_STACK_KEY = exports.GLOBAL_STACK = void 0;
7
7
  var _vue = require("vue");
8
- const ORIGAM_STACK_KEY = exports.ORIGAM_STACK_KEY = Symbol.for("origam:stack");
8
+ const ORIGAM_STACK_KEY = exports.ORIGAM_STACK_KEY = /* @__PURE__ */Symbol.for("origam:stack");
9
9
  const GLOBAL_STACK = exports.GLOBAL_STACK = (0, _vue.reactive)([]);
@@ -1,3 +1,3 @@
1
1
  import { reactive } from "vue";
2
- export const ORIGAM_STACK_KEY = Symbol.for("origam:stack");
2
+ export const ORIGAM_STACK_KEY = /* @__PURE__ */ Symbol.for("origam:stack");
3
3
  export const GLOBAL_STACK = reactive([]);
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_DATA_TABLE_EXPAND_KEY = void 0;
7
- const ORIGAM_DATA_TABLE_EXPAND_KEY = exports.ORIGAM_DATA_TABLE_EXPAND_KEY = Symbol.for("origam:data-table-expand");
7
+ const ORIGAM_DATA_TABLE_EXPAND_KEY = exports.ORIGAM_DATA_TABLE_EXPAND_KEY = /* @__PURE__ */Symbol.for("origam:data-table-expand");
@@ -1 +1 @@
1
- export const ORIGAM_DATA_TABLE_EXPAND_KEY = Symbol.for("origam:data-table-expand");
1
+ export const ORIGAM_DATA_TABLE_EXPAND_KEY = /* @__PURE__ */ Symbol.for("origam:data-table-expand");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_DATA_TABLE_GROUP_KEY = void 0;
7
- const ORIGAM_DATA_TABLE_GROUP_KEY = exports.ORIGAM_DATA_TABLE_GROUP_KEY = Symbol.for("origam:data-table-group");
7
+ const ORIGAM_DATA_TABLE_GROUP_KEY = exports.ORIGAM_DATA_TABLE_GROUP_KEY = /* @__PURE__ */Symbol.for("origam:data-table-group");
@@ -1 +1 @@
1
- export const ORIGAM_DATA_TABLE_GROUP_KEY = Symbol.for("origam:data-table-group");
1
+ export const ORIGAM_DATA_TABLE_GROUP_KEY = /* @__PURE__ */ Symbol.for("origam:data-table-group");
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_DATA_TABLE_HEADERS_KEY = exports.DEFAULT_HEADER = exports.DEFAULT_ACTION_HEADER = void 0;
7
- const ORIGAM_DATA_TABLE_HEADERS_KEY = exports.ORIGAM_DATA_TABLE_HEADERS_KEY = Symbol.for("origam:data-table-headers");
7
+ const ORIGAM_DATA_TABLE_HEADERS_KEY = exports.ORIGAM_DATA_TABLE_HEADERS_KEY = /* @__PURE__ */Symbol.for("origam:data-table-headers");
8
8
  const DEFAULT_HEADER = exports.DEFAULT_HEADER = {
9
9
  title: "",
10
10
  sortable: false
@@ -1,3 +1,3 @@
1
- export const ORIGAM_DATA_TABLE_HEADERS_KEY = Symbol.for("origam:data-table-headers");
1
+ export const ORIGAM_DATA_TABLE_HEADERS_KEY = /* @__PURE__ */ Symbol.for("origam:data-table-headers");
2
2
  export const DEFAULT_HEADER = { title: "", sortable: false };
3
3
  export const DEFAULT_ACTION_HEADER = { ...DEFAULT_HEADER, width: 48 };
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_DATA_TABLE_PAGINATION_KEY = void 0;
7
- const ORIGAM_DATA_TABLE_PAGINATION_KEY = exports.ORIGAM_DATA_TABLE_PAGINATION_KEY = Symbol.for("origam:data-table-pagination");
7
+ const ORIGAM_DATA_TABLE_PAGINATION_KEY = exports.ORIGAM_DATA_TABLE_PAGINATION_KEY = /* @__PURE__ */Symbol.for("origam:data-table-pagination");
@@ -1 +1 @@
1
- export const ORIGAM_DATA_TABLE_PAGINATION_KEY = Symbol.for("origam:data-table-pagination");
1
+ export const ORIGAM_DATA_TABLE_PAGINATION_KEY = /* @__PURE__ */ Symbol.for("origam:data-table-pagination");
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.singleSelectStrategy = exports.pageSelectStrategy = exports.allSelectStrategy = exports.ORIGAM_DATA_TABLE_SHOW_SELECT_KEY = exports.ORIGAM_DATA_TABLE_SELECT_KEY = void 0;
7
- const ORIGAM_DATA_TABLE_SELECT_KEY = exports.ORIGAM_DATA_TABLE_SELECT_KEY = Symbol.for("origam:data-table-selection");
8
- const ORIGAM_DATA_TABLE_SHOW_SELECT_KEY = exports.ORIGAM_DATA_TABLE_SHOW_SELECT_KEY = Symbol.for("origam:data-table-show-select");
7
+ const ORIGAM_DATA_TABLE_SELECT_KEY = exports.ORIGAM_DATA_TABLE_SELECT_KEY = /* @__PURE__ */Symbol.for("origam:data-table-selection");
8
+ const ORIGAM_DATA_TABLE_SHOW_SELECT_KEY = exports.ORIGAM_DATA_TABLE_SHOW_SELECT_KEY = /* @__PURE__ */Symbol.for("origam:data-table-show-select");
9
9
  const singleSelectStrategy = exports.singleSelectStrategy = {
10
10
  showSelectAll: false,
11
11
  allSelected: () => [],
@@ -1,5 +1,5 @@
1
- export const ORIGAM_DATA_TABLE_SELECT_KEY = Symbol.for("origam:data-table-selection");
2
- export const ORIGAM_DATA_TABLE_SHOW_SELECT_KEY = Symbol.for("origam:data-table-show-select");
1
+ export const ORIGAM_DATA_TABLE_SELECT_KEY = /* @__PURE__ */ Symbol.for("origam:data-table-selection");
2
+ export const ORIGAM_DATA_TABLE_SHOW_SELECT_KEY = /* @__PURE__ */ Symbol.for("origam:data-table-show-select");
3
3
  export const singleSelectStrategy = {
4
4
  showSelectAll: false,
5
5
  allSelected: () => [],
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_DATA_TABLE_SORT_KEY = void 0;
7
- const ORIGAM_DATA_TABLE_SORT_KEY = exports.ORIGAM_DATA_TABLE_SORT_KEY = Symbol.for("origam:data-table-sort");
7
+ const ORIGAM_DATA_TABLE_SORT_KEY = exports.ORIGAM_DATA_TABLE_SORT_KEY = /* @__PURE__ */Symbol.for("origam:data-table-sort");
@@ -1 +1 @@
1
- export const ORIGAM_DATA_TABLE_SORT_KEY = Symbol.for("origam:data-table-sort");
1
+ export const ORIGAM_DATA_TABLE_SORT_KEY = /* @__PURE__ */ Symbol.for("origam:data-table-sort");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_EXPANSION_PANEL_KEY = void 0;
7
- const ORIGAM_EXPANSION_PANEL_KEY = exports.ORIGAM_EXPANSION_PANEL_KEY = Symbol.for("origam:expansion-panel");
7
+ const ORIGAM_EXPANSION_PANEL_KEY = exports.ORIGAM_EXPANSION_PANEL_KEY = /* @__PURE__ */Symbol.for("origam:expansion-panel");
@@ -1 +1 @@
1
- export const ORIGAM_EXPANSION_PANEL_KEY = Symbol.for("origam:expansion-panel");
1
+ export const ORIGAM_EXPANSION_PANEL_KEY = /* @__PURE__ */ Symbol.for("origam:expansion-panel");
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ORIGAM_FORM_KEY = void 0;
7
- const ORIGAM_FORM_KEY = exports.ORIGAM_FORM_KEY = Symbol.for("origam:form");
7
+ const ORIGAM_FORM_KEY = exports.ORIGAM_FORM_KEY = /* @__PURE__ */Symbol.for("origam:form");
@@ -1 +1 @@
1
- export const ORIGAM_FORM_KEY = Symbol.for("origam:form");
1
+ export const ORIGAM_FORM_KEY = /* @__PURE__ */ Symbol.for("origam:form");
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ORIGAM_ICONS_KEY = exports.DEFAULT_SETS = void 0;
7
7
  var _Icon = require("../../components/Icon/index.cjs");
8
- const ORIGAM_ICONS_KEY = exports.ORIGAM_ICONS_KEY = Symbol.for("origam:icons");
8
+ const ORIGAM_ICONS_KEY = exports.ORIGAM_ICONS_KEY = /* @__PURE__ */Symbol.for("origam:icons");
9
9
  const DEFAULT_SETS = exports.DEFAULT_SETS = {
10
10
  svg: {
11
11
  component: _Icon.OrigamSvgIcon