@orchidui/core 0.0.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 (169) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/Calendar.js +103 -0
  4. package/dist/Cropper.js +6 -0
  5. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +4 -0
  6. package/dist/DataDisplay/FloatContent/OcFloatContent.js +4 -0
  7. package/dist/DataDisplay/HorizontalProgressbar/OcHorizontalProgressbar.js +4 -0
  8. package/dist/DataDisplay/InfoCard/OcInfoCard.js +4 -0
  9. package/dist/DataDisplay/ListDetail/OcListDetail.js +4 -0
  10. package/dist/DataDisplay/ListItem/OcListItem.js +5 -0
  11. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +4 -0
  12. package/dist/DataDisplay/Overview/OcOverview.js +7 -0
  13. package/dist/DataDisplay/Pagination/OcPagination.js +6 -0
  14. package/dist/DataDisplay/ProgressBar/OcProgressBar.js +4 -0
  15. package/dist/DataDisplay/Table/OcTable.js +11 -0
  16. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +4 -0
  17. package/dist/DatePicker-D3w435Ml.js +263 -0
  18. package/dist/Disclosure/Accordion/OcAccordion.js +4 -0
  19. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +4 -0
  20. package/dist/Disclosure/Steps/OcSteps.js +5 -0
  21. package/dist/Disclosure/SwitchTabs/OcSwitchTabs.js +4 -0
  22. package/dist/Disclosure/Tabs/Tabs.js +5 -0
  23. package/dist/Disclosure/Variants/OcVariants.js +5 -0
  24. package/dist/Draggable.js +168 -0
  25. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +5 -0
  26. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +4 -0
  27. package/dist/Elements/Box/OcBox.js +4 -0
  28. package/dist/Elements/EmptyPage/OcEmptyPage.js +4 -0
  29. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +4 -0
  30. package/dist/Elements/Header/OcHeader.js +9 -0
  31. package/dist/Elements/PageTitle/OcPageTitle.js +7 -0
  32. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +4 -0
  33. package/dist/Elements/Sidebar/OcSidebar.js +6 -0
  34. package/dist/Elements/Skeleton/OcSkeleton.js +4 -0
  35. package/dist/Elements/SubSidebar/OcSubSidebar.js +4 -0
  36. package/dist/Elements/VerificationOption/OcVerificationOption.js +4 -0
  37. package/dist/EmojiPicker.js +4 -0
  38. package/dist/Feedback/Banner/OcBanner.js +4 -0
  39. package/dist/Feedback/Chip/OcChip.js +4 -0
  40. package/dist/Feedback/ShareIcon/OcShareIcon.js +4 -0
  41. package/dist/Feedback/Snackbar/OcSnackbar.js +4 -0
  42. package/dist/Feedback/Tag/OcTag.js +4 -0
  43. package/dist/Form/BaseInput/OcBaseInput.js +4 -0
  44. package/dist/Form/Button/OcButton.js +4 -0
  45. package/dist/Form/Calendar/OcCalendar.js +5 -0
  46. package/dist/Form/CardInput/OcCardInput.js +4 -0
  47. package/dist/Form/Checkbox/OcCheckbox.js +4 -0
  48. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +4 -0
  49. package/dist/Form/Criteria/OcCriteria.js +4 -0
  50. package/dist/Form/Cropper/OcCropper.js +4 -0
  51. package/dist/Form/DatePicker/OcDatePicker.js +4 -0
  52. package/dist/Form/EmojiPicker/OcEmojiPicker.js +4 -0
  53. package/dist/Form/EmojiPicker/conts/emoji.js +1030 -0
  54. package/dist/Form/Input/OcInput.js +6 -0
  55. package/dist/Form/LinkInput/OcLinkInput.js +4 -0
  56. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +4 -0
  57. package/dist/Form/NumberInput/OcNumberInput.js +4 -0
  58. package/dist/Form/PhoneInput/OcPhoneInput.js +4 -0
  59. package/dist/Form/Radio/OcRadio.js +4 -0
  60. package/dist/Form/RadioGroup/OcRadioGroup.js +4 -0
  61. package/dist/Form/RangeInput/OcRangeInput.js +4 -0
  62. package/dist/Form/SectionItem/OcSectionItem.js +4 -0
  63. package/dist/Form/Select/OcSelect.js +7 -0
  64. package/dist/Form/SelectOptions/OcSelectOptions.js +4 -0
  65. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +4 -0
  66. package/dist/Form/Slider/OcSlider.js +4 -0
  67. package/dist/Form/TextArea/OcTextArea.js +4 -0
  68. package/dist/Form/TimePicker/OcTimePicker.js +6 -0
  69. package/dist/Form/Toggle/OcToggle.js +4 -0
  70. package/dist/Form/index.js +54 -0
  71. package/dist/FormBuilder/OcFormBuilder.js +4 -0
  72. package/dist/MediaAndIcons/Avatar/OcAvatar.js +4 -0
  73. package/dist/MediaAndIcons/Icon/OcIcon.js +4 -0
  74. package/dist/OcAccordion-DdkNsXvN.js +101 -0
  75. package/dist/OcAccountSetup-BXDjf48o.js +324 -0
  76. package/dist/OcAdditionalContent-BMSysCXu.js +612 -0
  77. package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +43 -0
  78. package/dist/OcAvatar-NDXQiZvz.js +41 -0
  79. package/dist/OcBanner-Cg2WJV6e.js +108 -0
  80. package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +43 -0
  81. package/dist/OcCardInput-BFE4Xu-S.js +75 -0
  82. package/dist/OcCheckboxesGroup-CLbquUO2.js +94 -0
  83. package/dist/OcChip-B1hm2Qni.js +144 -0
  84. package/dist/OcComplexCalendar-x-_kg9Yk.js +108 -0
  85. package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +1006 -0
  86. package/dist/OcConfirmationModal-BfCrRV9r.js +179 -0
  87. package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +65 -0
  88. package/dist/OcCriteria-CpIohheZ.js +42 -0
  89. package/dist/OcCropper-31Y_S1Ne.js +240 -0
  90. package/dist/OcCustomerCard-DbDOBO03.js +160 -0
  91. package/dist/OcDraggable-BjhGJmpM.js +35 -0
  92. package/dist/OcDropdownItem-DAElmzEu.js +57 -0
  93. package/dist/OcEmojiPicker-BXm-_OGK.js +157 -0
  94. package/dist/OcEmptyPage-CTwgMzRp.js +155 -0
  95. package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +815 -0
  96. package/dist/OcFeatureOverviewCard-RVyrWLVW.js +71 -0
  97. package/dist/OcFloatContent-BIKQOxSw.js +142 -0
  98. package/dist/OcFormBuilder-CRXWtt8I.js +177 -0
  99. package/dist/OcGroupOptions-ChGJvTXl.js +16 -0
  100. package/dist/OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-4eVgPDi5.js +32 -0
  101. package/dist/OcIcon-CJgBICxh.js +63 -0
  102. package/dist/OcInfoCard-DpYUZOMZ.js +81 -0
  103. package/dist/OcInput-tcRxG3Y2.js +227 -0
  104. package/dist/OcInputOption-CncASfNt.js +160 -0
  105. package/dist/OcLinkInput-C2ixk-gk.js +143 -0
  106. package/dist/OcListDetail-6XeME6ko.js +76 -0
  107. package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-BEJafLuT.js +749 -0
  108. package/dist/OcModal-DdD5VFEN.js +187 -0
  109. package/dist/OcModalCropper-D2OI2iun.js +56 -0
  110. package/dist/OcModalPage-BLVa-kcB.js +86 -0
  111. package/dist/OcMultipleUploadFile-B8Wl9Fuq.js +446 -0
  112. package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +90 -0
  113. package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +81 -0
  114. package/dist/OcOption-DK2FBGq7.js +485 -0
  115. package/dist/OcOverviewIcon-D702Ujka.js +55 -0
  116. package/dist/OcOverviewItem-DNr5tWnt.js +186 -0
  117. package/dist/OcPageTitleRight-DMtJ1qmZ.js +243 -0
  118. package/dist/OcPaginationNumber-IKPorX26.js +172 -0
  119. package/dist/OcPaymentTab-Cna1IAhO.js +170 -0
  120. package/dist/OcPhoneInput-AC6BgQhN.js +432 -0
  121. package/dist/OcPopper-C11OgQAj.js +97 -0
  122. package/dist/OcPrimaryActions-D5IprKsQ.js +222 -0
  123. package/dist/OcProgressBar-hiyC5XSc.js +33 -0
  124. package/dist/OcRadio-CRYfNwV9.js +107 -0
  125. package/dist/OcRadioGroup-DgfdWJos.js +76 -0
  126. package/dist/OcRangeInput-C-hoHFhr.js +103 -0
  127. package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +37 -0
  128. package/dist/OcSectionItem-BFgxO3se.js +84 -0
  129. package/dist/OcSelectOptions-BQlG_EUA.js +148 -0
  130. package/dist/OcShareIcon-BB-NPq0r.js +53 -0
  131. package/dist/OcSingleFileUpload-B8-e1H5t.js +464 -0
  132. package/dist/OcSkeleton-BdPTmGh0.js +13 -0
  133. package/dist/OcSlider-Bsi-ckbP.js +124 -0
  134. package/dist/OcSnackbar-CKxY1-ej.js +196 -0
  135. package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +87 -0
  136. package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +60 -0
  137. package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +114 -0
  138. package/dist/OcSwitchTabs-CYp676bj.js +31 -0
  139. package/dist/OcTabToSelect-BHAz1Niv.js +183 -0
  140. package/dist/OcTag.vue_vue_type_script_setup_true_lang-D19lw-8Y.js +26 -0
  141. package/dist/OcTextArea-BpV1Bnj_.js +78 -0
  142. package/dist/OcTheme-CWgrJh5Q.js +25 -0
  143. package/dist/OcTimePicker-B61MCi0D.js +110 -0
  144. package/dist/OcTimePopup-zQFKCZLk.js +131 -0
  145. package/dist/OcToggle-C0wTjM_Y.js +54 -0
  146. package/dist/OcTransferSummary-Bk2GXhrT.js +67 -0
  147. package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +99 -0
  148. package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +59 -0
  149. package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +64 -0
  150. package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +113 -0
  151. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +4 -0
  152. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +4 -0
  153. package/dist/Overlay/Dropdown/OcDropdown.js +6 -0
  154. package/dist/Overlay/Modal/OcModal.js +6 -0
  155. package/dist/Overlay/Popper/OcPopper.js +4 -0
  156. package/dist/Overlay/SupportMenu/OcSupportMenu.js +4 -0
  157. package/dist/Overlay/Tooltip/OcTooltip.js +4 -0
  158. package/dist/Overlay/Whitelist/OcWhiteList.js +4 -0
  159. package/dist/StoreDesign.js +240 -0
  160. package/dist/Theme/OcTheme.js +4 -0
  161. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  162. package/dist/composables/helpers.js +48 -0
  163. package/dist/composables/uploadFileProgress.js +62 -0
  164. package/dist/composables/useWindowWidth.js +10 -0
  165. package/dist/data/Validator.js +5 -0
  166. package/dist/directives/clickOutside.js +13 -0
  167. package/dist/index.js +177 -1
  168. package/dist/style.css +1 -0
  169. package/package.json +23 -5
@@ -0,0 +1,71 @@
1
+ import { openBlock as t, createElementBlock as i, createElementVNode as n, toDisplayString as s, createCommentVNode as a, Fragment as m, renderList as d, createBlock as p, unref as l, createVNode as u } from "vue";
2
+ import "dayjs";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import { _ as f } from "./OcIcon-CJgBICxh.js";
6
+ import { _ as v } from "./OcChip-B1hm2Qni.js";
7
+ /* empty css */
8
+ import "libphonenumber-js";
9
+ /* empty css */
10
+ import "v-calendar";
11
+ /* empty css */
12
+ import "./Cropper.js";
13
+ import "vue-draggable-next";
14
+ import "@popperjs/core";
15
+ const x = { class: "send-money-initial-state relative border rounded" }, h = { class: "z-10 p-7 flex flex-col relative" }, y = { class: "text-xl font-medium mb-4" }, g = {
16
+ key: 0,
17
+ class: "text-oc-text-400 mb-10"
18
+ }, k = {
19
+ key: 1,
20
+ class: "flex gap-4 flex-wrap"
21
+ }, b = { class: "text-sm font-medium" }, w = {
22
+ __name: "OcFeatureOverviewCard",
23
+ props: {
24
+ title: {
25
+ type: String,
26
+ required: !0
27
+ },
28
+ description: {
29
+ type: String,
30
+ default: ""
31
+ },
32
+ features: {
33
+ type: Array,
34
+ default: () => [],
35
+ validator: (e) => e.every((o) => "title" in o && "icon" in o)
36
+ }
37
+ },
38
+ setup(e) {
39
+ return (o, O) => {
40
+ var c;
41
+ return t(), i("div", x, [
42
+ n("div", h, [
43
+ n("h2", y, s(e.title), 1),
44
+ e.description ? (t(), i("p", g, s(e.description), 1)) : a("", !0),
45
+ (c = e.features) != null && c.length ? (t(), i("div", k, [
46
+ (t(!0), i(m, null, d(e.features, (r) => (t(), i("div", {
47
+ key: r.title,
48
+ class: "rounded bg-white flex flex-col gap-2 p-6 items-center justify-center relative"
49
+ }, [
50
+ r.comingSoon ? (t(), p(l(v), {
51
+ key: 0,
52
+ variant: "accent-2",
53
+ label: "Coming soon",
54
+ class: "absolute top-3 left-3"
55
+ })) : a("", !0),
56
+ u(l(f), {
57
+ name: r.icon,
58
+ height: "56",
59
+ width: "56"
60
+ }, null, 8, ["name"]),
61
+ n("span", b, s(r.title), 1)
62
+ ]))), 128))
63
+ ])) : a("", !0)
64
+ ])
65
+ ]);
66
+ };
67
+ }
68
+ }, L = /* @__PURE__ */ _(w, [["__scopeId", "data-v-d658d1d3"]]);
69
+ export {
70
+ L as O
71
+ };
@@ -0,0 +1,142 @@
1
+ import { ref as w, openBlock as e, createElementBlock as i, normalizeClass as V, createElementVNode as r, renderSlot as d, createTextVNode as k, toDisplayString as x, createCommentVNode as n, createVNode as m, unref as l, withCtx as u, createBlock as p, mergeProps as f, Fragment as y, renderList as v } from "vue";
2
+ import "dayjs";
3
+ import { D as O } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as g } from "./OcIcon-CJgBICxh.js";
5
+ /* empty css */
6
+ import "libphonenumber-js";
7
+ /* empty css */
8
+ import "v-calendar";
9
+ /* empty css */
10
+ import "./Cropper.js";
11
+ import "vue-draggable-next";
12
+ import { _ as b } from "./OcDropdownItem-DAElmzEu.js";
13
+ import "@popperjs/core";
14
+ import { _ as $ } from "./OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js";
15
+ const C = { key: 0 }, S = { class: "flex border-oc-gray-200 gap-x-9 justify-between p-5 items-start border-b sticky bg-oc-bg-light top-0" }, B = { class: "flex flex-col gap-y-1 max-w-[300px]" }, N = { class: "text-lg font-medium truncate" }, j = { class: "flex gap-3 items-center" }, D = {
16
+ key: 0,
17
+ class: "text-sm text-oc-text-300 truncate"
18
+ }, P = { class: "flex items-center gap-3" }, z = { class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text" }, E = { class: "p-2 border-b border-gray-200" }, F = {
19
+ key: 0,
20
+ class: "p-2"
21
+ }, Y = {
22
+ __name: "OcFloatContent",
23
+ props: {
24
+ modelValue: {
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ isClose: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
32
+ title: String,
33
+ description: String,
34
+ dropdownOptions: {
35
+ type: Object
36
+ },
37
+ dropdownProps: {
38
+ type: Object,
39
+ default: () => ({})
40
+ },
41
+ position: {
42
+ type: String,
43
+ validator: (t) => ["left", "right"].includes(t),
44
+ default: "right"
45
+ }
46
+ },
47
+ emits: ["update:model-value"],
48
+ setup(t, { emit: L }) {
49
+ const h = w(!1);
50
+ return (s, a) => (e(), i("div", {
51
+ class: V(["fixed top-0 bottom-0 shadow-xl bg-oc-bg-light transition-all h-full z-50 overflow-y-auto", {
52
+ "right-0": t.modelValue && t.position === "right",
53
+ "right-[-999px] w-0": !t.modelValue && t.position === "right",
54
+ "left-0": t.modelValue && t.position === "left",
55
+ "left-[-999px] w-0": !t.modelValue && t.position === "left"
56
+ }])
57
+ }, [
58
+ t.modelValue ? (e(), i("div", C, [
59
+ r("div", S, [
60
+ d(s.$slots, "header", {}, () => [
61
+ r("div", B, [
62
+ r("span", N, [
63
+ d(s.$slots, "title", {}, () => [
64
+ k(x(t.title), 1)
65
+ ])
66
+ ]),
67
+ d(s.$slots, "description", {}, () => [
68
+ r("div", j, [
69
+ t.description ? (e(), i("span", D, x(t.description), 1)) : n("", !0),
70
+ m(l($), {
71
+ value: t.description,
72
+ "tooltip-options": { strategy: "fixed" }
73
+ }, {
74
+ default: u(({ isShow: o }) => [
75
+ m(l(g), {
76
+ width: "14",
77
+ height: "14",
78
+ class: "cursor-pointer text-oc-text-400",
79
+ name: "copy"
80
+ })
81
+ ]),
82
+ _: 1
83
+ }, 8, ["value"])
84
+ ])
85
+ ])
86
+ ]),
87
+ r("div", P, [
88
+ t.dropdownOptions ? (e(), p(l(O), f({
89
+ key: 0,
90
+ modelValue: h.value,
91
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => h.value = o),
92
+ "popper-options": { strategy: "fixed" },
93
+ placement: "bottom",
94
+ class: "text-sm"
95
+ }, t.dropdownProps), {
96
+ menu: u(() => [
97
+ r("div", E, [
98
+ (e(!0), i(y, null, v(t.dropdownOptions.top, (o, c) => (e(), p(l(b), f({
99
+ key: c,
100
+ ref_for: !0
101
+ }, o), null, 16))), 128))
102
+ ]),
103
+ t.dropdownOptions.bottom ? (e(), i("div", F, [
104
+ (e(!0), i(y, null, v(t.dropdownOptions.bottom, (o, c) => (e(), p(l(b), f({
105
+ key: c,
106
+ ref_for: !0
107
+ }, o), null, 16))), 128))
108
+ ])) : n("", !0)
109
+ ]),
110
+ default: u(() => [
111
+ r("div", z, [
112
+ m(l(g), {
113
+ name: "dots-vertical",
114
+ width: "20",
115
+ height: "20"
116
+ })
117
+ ])
118
+ ]),
119
+ _: 1
120
+ }, 16, ["modelValue"])) : n("", !0),
121
+ t.isClose ? (e(), i("div", {
122
+ key: 1,
123
+ class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text",
124
+ onClick: a[1] || (a[1] = (o) => s.$emit("update:model-value", !1))
125
+ }, [
126
+ m(l(g), {
127
+ name: "x",
128
+ width: "20",
129
+ height: "20"
130
+ })
131
+ ])) : n("", !0)
132
+ ])
133
+ ])
134
+ ]),
135
+ d(s.$slots, "bottom")
136
+ ])) : n("", !0)
137
+ ], 2));
138
+ }
139
+ };
140
+ export {
141
+ Y as _
142
+ };
@@ -0,0 +1,177 @@
1
+ import { computed as S, ref as m, watch as v, onMounted as U, openBlock as _, createElementBlock as y, normalizeClass as F, normalizeStyle as K, Fragment as V, renderList as x, createBlock as A, resolveDynamicComponent as D, mergeProps as N, renderSlot as P, createCommentVNode as G } from "vue";
2
+ import "dayjs";
3
+ import { a as q } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ /* empty css */
5
+ import { _ as z } from "./OcCardInput-BFE4Xu-S.js";
6
+ import { _ as L } from "./OcCheckboxesGroup-CLbquUO2.js";
7
+ import { _ as R } from "./OcInput-tcRxG3Y2.js";
8
+ import { _ as H } from "./OcPhoneInput-AC6BgQhN.js";
9
+ import { _ as J } from "./OcRadioGroup-DgfdWJos.js";
10
+ import { _ as Q } from "./OcRangeInput-C-hoHFhr.js";
11
+ import { _ as W } from "./OcOption-DK2FBGq7.js";
12
+ import { T as X } from "./OcToggle-C0wTjM_Y.js";
13
+ import { _ as Y } from "./OcLinkInput-C2ixk-gk.js";
14
+ import { _ as Z } from "./OcTextArea-BpV1Bnj_.js";
15
+ import { _ as ee } from "./DatePicker-D3w435Ml.js";
16
+ import { _ as ae } from "./OcTimePicker-B61MCi0D.js";
17
+ import { S as te } from "./OcSlider-Bsi-ckbP.js";
18
+ import { _ as se } from "./OcSectionItem-BFgxO3se.js";
19
+ import { _ as ne } from "./OcSelectOptions-BQlG_EUA.js";
20
+ import "./Cropper.js";
21
+ import "vue-draggable-next";
22
+ import { _ as ie } from "./OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js";
23
+ import "@popperjs/core";
24
+ const Ke = {
25
+ __name: "OcFormBuilder",
26
+ props: {
27
+ id: {
28
+ type: String,
29
+ required: !0
30
+ },
31
+ jsonForm: {
32
+ type: Array
33
+ },
34
+ /**
35
+ * Grid needs to be defined in the following format:
36
+ * `{`
37
+ * `[Responsive size (xs, sm, md, lg, xl, xxl)]: {`
38
+ * `area: [Grid area definition (names of areas in order)],`
39
+ * `rows: [Count and size of rows i.e: 'auto' | '100%' | ...],`
40
+ * `columns: [Count and size of columns i.e: '33% 33% 33%'],`
41
+ * `}`
42
+ * `}`
43
+ */
44
+ grid: {
45
+ type: Object,
46
+ default: null
47
+ },
48
+ class: String,
49
+ errors: {
50
+ type: Object
51
+ },
52
+ values: {
53
+ type: Object,
54
+ required: !0
55
+ },
56
+ previewMode: String
57
+ // only for store design
58
+ },
59
+ emits: ["onUpdate"],
60
+ setup(l, { emit: E }) {
61
+ const s = l, M = E, h = (e, t) => {
62
+ M("onUpdate", e, t);
63
+ }, f = {
64
+ CardInput: z,
65
+ CheckboxesGroup: L,
66
+ Input: R,
67
+ NumberInput: ie,
68
+ LinkInput: Y,
69
+ Select: W,
70
+ TextArea: Z,
71
+ Toggle: X,
72
+ RadioGroup: J,
73
+ TimePicker: ae,
74
+ DatePicker: ee,
75
+ Checkbox: q,
76
+ Slider: te,
77
+ RangeInput: Q,
78
+ PhoneInput: H,
79
+ SectionItem: se,
80
+ SelectOptions: ne
81
+ }, g = (e) => f[e] ? f[e] : null, O = S(() => {
82
+ const e = (a) => a.split(`
83
+ `).map((i) => i.trim()).filter(Boolean).map((i) => `"${i}"`).join(" "), t = {};
84
+ return Object.entries(s.grid).forEach(([a, i]) => {
85
+ Object.entries(i).forEach(([r, p]) => {
86
+ t[`--grid-${a}-${r}`] = r === "area" ? e(p) : p;
87
+ });
88
+ }), t;
89
+ }), w = (e) => typeof e == "object" ? e[0].key : e, T = (e) => `grid-area: ${w(e)}`, b = S(() => s.class), n = m({}), c = m({}), u = m({}), o = (e) => typeof e == "object" ? e[0].key : e, d = (e) => {
90
+ s.jsonForm.forEach((t) => {
91
+ var a;
92
+ if (typeof t.name == "object") {
93
+ let i = null;
94
+ t.name.forEach((r) => {
95
+ e[r.key] && (i ? i.push(e[r.key]) : i = [e[r.key]]);
96
+ }), n.value[o(t.name)] = i, $(t);
97
+ } else
98
+ (a = t.props) != null && a.parentKey ? (n.value[t.props.parentKey] = e[t.props.parentKey] ?? {}, n.value[t.props.parentKey][t.name] = e[t.props.parentKey][t.name] ?? "") : n.value[t.name] = e[t.name] ?? "", $(t);
99
+ });
100
+ }, j = () => {
101
+ s.jsonForm.forEach((e) => {
102
+ if (typeof e.name == "object") {
103
+ let t = [];
104
+ e.name.forEach((a) => {
105
+ s.errors[a.key] && t.push(s.errors[a.key]);
106
+ }), c.value[o(e.name)] = t.join(",");
107
+ } else
108
+ c.value[e.name] = s.errors[e.name] ?? "";
109
+ });
110
+ }, $ = (e) => {
111
+ if (e.show_if || e.show_if_preview) {
112
+ let t = e.class ? e.class : "";
113
+ e.show_if ? e.show_if_value !== void 0 ? e.show_if_value !== n.value[e.show_if] && (t = t + " hidden") : e.show_if_not !== void 0 ? e.show_if_not === n.value[e.show_if] && (t = t + " hidden") : e.show_if_min !== void 0 && (isNaN(parseInt(n.value[e.show_if])) ? 1 : parseInt(n.value[e.show_if])) < parseInt(e.show_if_min) && (t = t + " hidden") : e.show_if_preview && (e.show_if_preview_only !== void 0 ? e.show_if_preview_only !== s.previewMode && (t = t + " hidden") : e.show_if_preview_not !== void 0 && e.show_if_preview_not === s.previewMode && (t = t + " hidden")), typeof e.name == "object" ? u.value[o(e.name)] = t : u.value[e.name] = t;
114
+ } else
115
+ u.value[e.name] = e.class ? e.class : "";
116
+ };
117
+ return v(
118
+ () => s.values,
119
+ (e) => {
120
+ d(e);
121
+ },
122
+ {
123
+ deep: !0
124
+ }
125
+ ), v(
126
+ () => s.errors,
127
+ (e) => {
128
+ j();
129
+ },
130
+ {
131
+ deep: !0
132
+ }
133
+ ), v(
134
+ () => s.previewMode,
135
+ () => {
136
+ d(s.values);
137
+ }
138
+ ), U(() => {
139
+ d(s.values), j(s.errors);
140
+ }), (e, t) => Object.values(n.value).length > 0 ? (_(), y("div", {
141
+ key: 0,
142
+ class: F(l.grid ? `responsive-smart-form-grid ${b.value}` : b.value),
143
+ style: K(l.grid ? O.value : "")
144
+ }, [
145
+ (_(!0), y(V, null, x(l.jsonForm, (a) => {
146
+ var i, r, p, k, C, I;
147
+ return _(), y("div", {
148
+ key: w(a.name),
149
+ style: K(l.grid ? T(a.name) : ""),
150
+ class: F([
151
+ a.type !== "Children" ? u.value[typeof a.name == "object" ? o(a.name) : a.name] : "",
152
+ a.class
153
+ ])
154
+ }, [
155
+ g(a.type) ? (_(), A(D(g(a.type)), N({
156
+ key: 0,
157
+ ref_for: !0
158
+ }, a.props, {
159
+ "model-value": (i = a.props) != null && i.parentKey ? (p = (r = n.value) == null ? void 0 : r[a.props.parentKey]) == null ? void 0 : p[a.name] : n.value[typeof a.name == "object" ? o(a.name) : a.name],
160
+ "error-message": c.value[typeof a.name == "object" ? o(a.name) : a.name],
161
+ "onUpdate:modelValue": (B) => h(a, B)
162
+ }), null, 16, ["model-value", "error-message", "onUpdate:modelValue"])) : P(e.$slots, a.type, {
163
+ key: 1,
164
+ formId: l.id,
165
+ form: a,
166
+ value: (k = a.props) != null && k.parentKey ? (I = (C = n.value) == null ? void 0 : C[a.props.parentKey]) == null ? void 0 : I[a.name] : n.value[typeof a.name == "object" ? o(a.name) : a.name],
167
+ error: c.value[typeof a.name == "object" ? o(a.name) : a.name],
168
+ onUpdate: h
169
+ })
170
+ ], 6);
171
+ }), 128))
172
+ ], 6)) : G("", !0);
173
+ }
174
+ };
175
+ export {
176
+ Ke as _
177
+ };
@@ -0,0 +1,16 @@
1
+ import { openBlock as o, createElementBlock as r, createElementVNode as s, toDisplayString as l, renderSlot as c } from "vue";
2
+ const n = { class: "flex flex-col" }, p = { class: "px-3 pt-3 pb-2 border-y border-white text-oc-text uppercase text-xs font-medium" }, d = {
3
+ __name: "OcGroupOptions",
4
+ props: {
5
+ label: String
6
+ },
7
+ setup(e) {
8
+ return (t, a) => (o(), r("div", n, [
9
+ s("div", p, l(e.label), 1),
10
+ c(t.$slots, "default")
11
+ ]));
12
+ }
13
+ };
14
+ export {
15
+ d as _
16
+ };
@@ -0,0 +1,32 @@
1
+ import { defineComponent as l, openBlock as r, createElementBlock as n, createElementVNode as t, toDisplayString as o, normalizeStyle as a } from "vue";
2
+ const s = { class: "flex items-center gap-x-3" }, c = { class: "text-oc-text-400 text-sm shrink-0" }, i = { class: "w-full rounded-full bg-oc-gray-100 h-[8px] overflow-hidden" }, p = /* @__PURE__ */ l({
3
+ __name: "OcHorizontalProgressbar",
4
+ props: {
5
+ label: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ max: {
10
+ type: Number,
11
+ default: 0
12
+ },
13
+ current: {
14
+ type: Number,
15
+ default: 0
16
+ }
17
+ },
18
+ setup(e) {
19
+ return (d, u) => (r(), n("div", s, [
20
+ t("span", c, o(e.label), 1),
21
+ t("div", i, [
22
+ t("div", {
23
+ class: "h-[8px] rounded-l-full bg-oc-primary transition-all",
24
+ style: a({ width: e.current / e.max * 100 + "%" })
25
+ }, null, 4)
26
+ ])
27
+ ]));
28
+ }
29
+ });
30
+ export {
31
+ p as _
32
+ };
@@ -0,0 +1,63 @@
1
+ import { ref as w, onMounted as h, watch as a, openBlock as d, createElementBlock as l } from "vue";
2
+ const u = ["width", "height", "viewBox"], g = {
3
+ __name: "OcIcon",
4
+ props: {
5
+ path: {
6
+ type: String,
7
+ default: "/icons/orchidui"
8
+ },
9
+ name: {
10
+ type: String,
11
+ required: !0
12
+ },
13
+ width: {
14
+ type: String,
15
+ default: "24"
16
+ },
17
+ height: {
18
+ type: String,
19
+ default: "24"
20
+ }
21
+ },
22
+ setup(s) {
23
+ const t = s, o = w(null), c = (n) => {
24
+ const e = document.createElement("div");
25
+ e.innerHTML = n, e.querySelector("svg") && (e.querySelector("svg").removeAttribute("width"), e.querySelector("svg").removeAttribute("height"), o.value.innerHTML = e.innerHTML), e.remove();
26
+ }, r = () => {
27
+ let n = "";
28
+ window.oc_icons && (n = JSON.parse(window.oc_icons).find((i) => i.name === t.name)), n ? o.value && c(n.svg) : fetch(`${t.path}/${t.name}.svg`).then((e) => e.status === 200 ? e.text() : "").then((e) => {
29
+ if (e && o.value) {
30
+ if (window.oc_icons) {
31
+ let i = JSON.parse(window.oc_icons);
32
+ window.oc_icons = JSON.stringify([
33
+ ...i,
34
+ {
35
+ name: t.name,
36
+ svg: e
37
+ }
38
+ ]);
39
+ }
40
+ c(e);
41
+ }
42
+ });
43
+ };
44
+ return h(() => {
45
+ r();
46
+ }), a(
47
+ () => t.name,
48
+ () => {
49
+ r();
50
+ }
51
+ ), (n, e) => (d(), l("svg", {
52
+ ref_key: "iconRef",
53
+ ref: o,
54
+ width: `${t.width}px`,
55
+ height: `${t.height}px`,
56
+ viewBox: `0 0 ${t.width} ${t.height}`,
57
+ xmlns: "http://www.w3.org/2000/svg"
58
+ }, null, 8, u));
59
+ }
60
+ };
61
+ export {
62
+ g as _
63
+ };
@@ -0,0 +1,81 @@
1
+ import { useSlots as x, openBlock as o, createElementBlock as i, normalizeClass as r, createElementVNode as a, toDisplayString as c, createBlock as u, unref as s, withCtx as m, createVNode as d, createCommentVNode as l, renderSlot as n } from "vue";
2
+ import "dayjs";
3
+ import { T as g } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as p } from "./OcIcon-CJgBICxh.js";
5
+ /* empty css */
6
+ import "libphonenumber-js";
7
+ /* empty css */
8
+ import "v-calendar";
9
+ /* empty css */
10
+ import "./Cropper.js";
11
+ import "vue-draggable-next";
12
+ import "@popperjs/core";
13
+ const b = { class: "uppercase" }, v = { class: "flex flex-col px-3 py-2 text-[12px] text-oc-text-400 font-medium text-sm" }, w = { class: "mb-auto" }, B = {
14
+ key: 1,
15
+ class: "absolute top-2 right-2 left-2 bottom-2 bg-white flex items-center justify-center"
16
+ }, O = {
17
+ __name: "OcInfoCard",
18
+ props: {
19
+ isLoading: Boolean,
20
+ title: String,
21
+ titleIcon: String,
22
+ titleIconTooltip: String,
23
+ titleClass: Object,
24
+ transparent: Boolean,
25
+ hover: Boolean,
26
+ shadow: Boolean,
27
+ noData: Boolean,
28
+ noDataDescription: String
29
+ },
30
+ setup(t) {
31
+ const h = x(), f = (e) => !!h[e];
32
+ return (e, S) => (o(), i("div", {
33
+ class: r(["border border-gray-200 rounded p-5 flex flex-col grow transition relative", {
34
+ "border-transparent": t.transparent,
35
+ "hover:shadow": t.hover,
36
+ shadow: t.shadow
37
+ }])
38
+ }, [
39
+ t.title && !f("header") ? (o(), i("div", {
40
+ key: 0,
41
+ class: r(["flex items-start text-oc-text-400 font-medium text-[10px]", t.titleClass])
42
+ }, [
43
+ a("div", b, c(t.title), 1),
44
+ t.titleIconTooltip ? (o(), u(s(g), {
45
+ key: 0,
46
+ "popper-class": "w-max bg-oc-bg",
47
+ position: "top-start"
48
+ }, {
49
+ popper: m(() => [
50
+ a("div", v, c(t.titleIconTooltip), 1)
51
+ ]),
52
+ default: m(() => [
53
+ d(s(p), {
54
+ class: "ml-[3px]",
55
+ name: t.titleIcon,
56
+ width: "16",
57
+ height: "16"
58
+ }, null, 8, ["name"])
59
+ ]),
60
+ _: 1
61
+ })) : l("", !0)
62
+ ], 2)) : l("", !0),
63
+ n(e.$slots, "header"),
64
+ a("div", w, [
65
+ n(e.$slots, "default")
66
+ ]),
67
+ n(e.$slots, "footer"),
68
+ t.isLoading ? (o(), i("div", B, [
69
+ d(s(p), {
70
+ name: "loading-2",
71
+ width: "32",
72
+ height: "32",
73
+ class: "text-oc-text-400 motion-safe:animate-spin"
74
+ })
75
+ ])) : l("", !0)
76
+ ], 2));
77
+ }
78
+ };
79
+ export {
80
+ O as _
81
+ };