@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,196 @@
1
+ import { ref as h, computed as x, watch as z, nextTick as V, openBlock as t, createBlock as r, Transition as C, withCtx as j, withDirectives as F, createElementVNode as l, normalizeClass as d, unref as a, normalizeStyle as N, createElementBlock as o, Fragment as H, createVNode as b, createCommentVNode as s, renderSlot as O, toDisplayString as u, mergeProps as v, vShow as T } from "vue";
2
+ import "dayjs";
3
+ import { B as w } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as m } 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 W = {
14
+ key: 0,
15
+ class: "flex flex-col gap-y-4 w-full"
16
+ }, $ = { class: "flex flex-col gap-y-3" }, D = { class: "font-medium text-oc-text" }, E = { class: "text-oc-text-400" }, I = { class: "flex gap-x-3" }, L = {
17
+ key: 0,
18
+ class: "text-oc-text"
19
+ }, M = ["innerHTML"], ee = {
20
+ __name: "OcSnackbar",
21
+ props: {
22
+ modelValue: {
23
+ type: Boolean,
24
+ default: !0
25
+ },
26
+ color: {
27
+ type: String,
28
+ default: "default"
29
+ },
30
+ content: {
31
+ type: String,
32
+ default: ""
33
+ },
34
+ icon: {
35
+ type: String,
36
+ default: "filled-check"
37
+ },
38
+ showIcon: {
39
+ type: Boolean,
40
+ default: !0
41
+ },
42
+ dismissible: {
43
+ type: Boolean,
44
+ default: !1
45
+ },
46
+ isFloating: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ isRawHtml: {
51
+ type: Boolean,
52
+ default: !1
53
+ },
54
+ position: {
55
+ type: String,
56
+ default: "top-center"
57
+ },
58
+ transitionName: {
59
+ type: String,
60
+ default: "slide-from-top"
61
+ },
62
+ title: {
63
+ type: String,
64
+ default: ""
65
+ },
66
+ description: {
67
+ type: String,
68
+ default: ""
69
+ },
70
+ secondaryButton: {
71
+ type: Object,
72
+ default: () => null
73
+ },
74
+ primaryButton: {
75
+ type: Object,
76
+ default: () => null
77
+ },
78
+ size: {
79
+ type: String,
80
+ default: "default",
81
+ validator: (e) => ["default", "big", "small"].includes(e)
82
+ }
83
+ },
84
+ emits: ["update:modelValue"],
85
+ setup(e) {
86
+ const c = e, k = Object.freeze({
87
+ default: "border-oc-success-200 bg-oc-success-50 text-oc-success-500",
88
+ primary: "border-oc-primary-200 bg-oc-primary-50 text-oc-primary-500",
89
+ error: "border-oc-error-200 bg-oc-error-50 text-oc-error-500",
90
+ warning: "border-oc-warning-200 bg-oc-warning-50 text-oc-warning-500",
91
+ gray: "border-oc-gray-300 bg-oc-gray-100 text-oc-gray-700"
92
+ }), B = {
93
+ "top-center": "top-4",
94
+ "top-left": "top-4 left-4",
95
+ "top-right": "top-4 right-4",
96
+ "bottom-center": "bottom-4",
97
+ "bottom-left": "bottom-4 left-4",
98
+ "bottom-right": "bottom-4 right-4"
99
+ }, S = {
100
+ default: "bg-oc-success-100",
101
+ primary: "bg-oc-primary-100",
102
+ error: "bg-oc-error-100",
103
+ warning: "bg-oc-warning-100",
104
+ gray: "bg-oc-gray-200"
105
+ }, f = h(), y = h(), i = x(() => c.size === "small"), n = x(() => c.size === "big");
106
+ return z(
107
+ () => c.modelValue,
108
+ async () => {
109
+ await V(), y.value = (document.body.clientWidth - f.value.clientWidth) / 2;
110
+ }
111
+ ), (g, p) => (t(), r(C, { name: e.transitionName }, {
112
+ default: j(() => [
113
+ F(l("div", {
114
+ ref_key: "snackBar",
115
+ ref: f,
116
+ class: d([[
117
+ a(k)[e.color],
118
+ e.isFloating && B[e.position],
119
+ {
120
+ "!fixed z-[1004]": e.isFloating,
121
+ "gap-x-2 py-3 px-4 items-center": i.value,
122
+ "gap-x-5 pt-5 pb-6 px-5 items-start": n.value,
123
+ "gap-x-4 py-4 px-5 items-center": !n.value && !i.value,
124
+ "!pr-10": e.dismissible
125
+ }
126
+ ], "border rounded-lg flex shadow-sm snackbar relative"]),
127
+ style: N(e.isFloating && e.position.includes("center") ? { left: y.value + "px" } : "")
128
+ }, [
129
+ e.showIcon ? (t(), o(H, { key: 0 }, [
130
+ n.value ? (t(), o("div", {
131
+ key: 0,
132
+ class: d([S[e.color], "w-[48px] flex shrink-0 items-center justify-center h-[48px] rounded-full"])
133
+ }, [
134
+ b(a(m), {
135
+ name: e.icon,
136
+ class: "shrink-0",
137
+ width: "24"
138
+ }, null, 8, ["name"])
139
+ ], 2)) : (t(), r(a(m), {
140
+ key: 1,
141
+ name: e.icon,
142
+ class: "shrink-0",
143
+ width: i.value ? "16" : "24",
144
+ height: i.value ? "16" : "24"
145
+ }, null, 8, ["name", "width", "height"]))
146
+ ], 64)) : s("", !0),
147
+ O(g.$slots, "default", {}, () => [
148
+ n.value ? (t(), o("div", W, [
149
+ l("div", $, [
150
+ l("span", D, u(e.title), 1),
151
+ l("span", E, u(e.description), 1)
152
+ ]),
153
+ l("div", I, [
154
+ e.secondaryButton ? (t(), r(a(w), v({
155
+ key: 0,
156
+ variant: "secondary",
157
+ size: "small"
158
+ }, e.secondaryButton), null, 16)) : s("", !0),
159
+ e.primaryButton ? (t(), r(a(w), v({
160
+ key: 1,
161
+ size: "small"
162
+ }, e.primaryButton), null, 16)) : s("", !0)
163
+ ])
164
+ ])) : (t(), o("div", {
165
+ key: 1,
166
+ class: d(["w-full flex items-center justify-between", i.value ? "text-sm" : ""])
167
+ }, [
168
+ e.isRawHtml ? (t(), o("span", {
169
+ key: 1,
170
+ class: "text-oc-text",
171
+ innerHTML: e.content
172
+ }, null, 8, M)) : (t(), o("span", L, u(e.content), 1))
173
+ ], 2))
174
+ ]),
175
+ e.dismissible ? (t(), o("div", {
176
+ key: 1,
177
+ class: "cursor-pointer absolute top-4 right-4 text-oc-gray-800 opacity-25 hover:opacity-50",
178
+ onClick: p[0] || (p[0] = (R) => g.$emit("update:modelValue", !1))
179
+ }, [
180
+ b(a(m), {
181
+ name: "x-circle-filled",
182
+ width: "20",
183
+ height: "20"
184
+ })
185
+ ])) : s("", !0)
186
+ ], 6), [
187
+ [T, e.modelValue]
188
+ ])
189
+ ]),
190
+ _: 3
191
+ }, 8, ["name"]));
192
+ }
193
+ };
194
+ export {
195
+ ee as _
196
+ };
@@ -0,0 +1,87 @@
1
+ import { defineComponent as s, openBlock as t, createElementBlock as r, normalizeClass as a, createElementVNode as i, createBlock as m, unref as d, toDisplayString as n, renderSlot as p, Fragment as f, renderList as y } from "vue";
2
+ import "dayjs";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as x } 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 C = { key: 1 }, g = /* @__PURE__ */ s({
14
+ __name: "OcStep",
15
+ props: {
16
+ title: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ value: {
21
+ type: [String, Number],
22
+ default: ""
23
+ },
24
+ isCurrent: {
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ isCompleted: {
29
+ type: Boolean,
30
+ default: !1
31
+ }
32
+ },
33
+ setup(e) {
34
+ return (o, c) => (t(), r("div", {
35
+ class: a(["flex flex-col gap-y-3 text-sm cursor-pointer", e.isCurrent || e.isCompleted ? "text-oc-text-500" : "text-oc-text-300"])
36
+ }, [
37
+ i("div", {
38
+ class: a(["rounded-full flex items-center justify-center w-7 h-7 font-medium", [
39
+ e.isCompleted ? "text-white bg-oc-primary" : "border border-oc-gray-300",
40
+ e.isCurrent ? "border-oc-gray-800" : ""
41
+ ]])
42
+ }, [
43
+ e.isCompleted ? (t(), m(d(x), {
44
+ key: 0,
45
+ name: "check-2",
46
+ width: "12",
47
+ height: "12"
48
+ })) : (t(), r("span", C, n(e.value), 1))
49
+ ], 2),
50
+ i("span", {
51
+ class: a(e.isCurrent ? "font-medium" : "")
52
+ }, n(e.title), 3)
53
+ ], 2));
54
+ }
55
+ }), h = { class: "flex gap-x-7" }, A = /* @__PURE__ */ s({
56
+ __name: "OcSteps",
57
+ props: {
58
+ steps: {
59
+ type: Array,
60
+ default: () => []
61
+ },
62
+ modelValue: {
63
+ type: Number,
64
+ default: 0
65
+ }
66
+ },
67
+ emits: ["update:model-value"],
68
+ setup(e) {
69
+ return (o, c) => (t(), r("div", h, [
70
+ p(o.$slots, "default", {}, () => [
71
+ (t(!0), r(f, null, y(e.steps, (u, l) => (t(), m(g, {
72
+ key: l,
73
+ title: u.title,
74
+ value: l + 1,
75
+ "is-current": l === e.modelValue,
76
+ "is-completed": l < e.modelValue,
77
+ class: "flex flex-col gap-y-3 items-center text-sm",
78
+ onClick: (v) => o.$emit("update:model-value", l)
79
+ }, null, 8, ["title", "value", "is-current", "is-completed", "onClick"]))), 128))
80
+ ])
81
+ ]));
82
+ }
83
+ });
84
+ export {
85
+ A as _,
86
+ g as a
87
+ };
@@ -0,0 +1,60 @@
1
+ import { defineComponent as c, openBlock as o, createElementBlock as r, createVNode as m, unref as p, createTextVNode as s, toDisplayString as l, createCommentVNode as d, createElementVNode as u, Fragment as f, renderList as x, normalizeClass as y } from "vue";
2
+ import "dayjs";
3
+ import "./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 "@popperjs/core";
13
+ const h = { class: "py-7 flex flex-col gap-y-3 px-4" }, k = { class: "flex flex-col gap-y-2" }, v = ["onClick"], F = /* @__PURE__ */ c({
14
+ __name: "OcSubSidebar",
15
+ props: {
16
+ title: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ menu: {
21
+ type: Array,
22
+ default: () => []
23
+ },
24
+ modelValue: {
25
+ type: String,
26
+ default: ""
27
+ }
28
+ },
29
+ emits: ["titleClick", "update:modelValue"],
30
+ setup(e) {
31
+ return (i, n) => (o(), r("div", h, [
32
+ e.title ? (o(), r("div", {
33
+ key: 0,
34
+ class: "py-4 gap-x-3 whitespace-nowrap cursor-pointer flex font-medium items-center",
35
+ onClick: n[0] || (n[0] = (t) => i.$emit("titleClick"))
36
+ }, [
37
+ m(p(g), {
38
+ name: "chevron-down",
39
+ class: "rotate-90 shrink-0",
40
+ width: "20",
41
+ height: "20"
42
+ }),
43
+ s(" " + l(e.title), 1)
44
+ ])) : d("", !0),
45
+ u("div", k, [
46
+ (o(!0), r(f, null, x(e.menu, (t, a) => (o(), r("div", {
47
+ key: a,
48
+ class: y([
49
+ "py-3 whitespace-nowrap rounded cursor-pointer font-medium hover:bg-oc-accent-2-50-tr px-5",
50
+ e.modelValue === t.value ? "bg-oc-accent-2-50-tr text-oc-accent-1" : "text-oc-text-400"
51
+ ]),
52
+ onClick: (C) => i.$emit("update:modelValue", t.value)
53
+ }, l(t.label), 11, v))), 128))
54
+ ])
55
+ ]));
56
+ }
57
+ });
58
+ export {
59
+ F as _
60
+ };
@@ -0,0 +1,114 @@
1
+ import { defineComponent as v, openBlock as e, createElementBlock as s, createVNode as m, unref as i, withCtx as l, createElementVNode as t, Fragment as a, renderList as p, toDisplayString as h, createBlock as c, mergeProps as f, renderSlot as y, createCommentVNode as w } from "vue";
2
+ import "dayjs";
3
+ import { D as V } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as k } 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 g } from "./OcDropdownItem-DAElmzEu.js";
13
+ import "@popperjs/core";
14
+ const B = { class: "fixed bottom-[30px] right-[32px]" }, q = { class: "relative" }, M = {
15
+ key: 0,
16
+ class: "flex items-center justify-end"
17
+ }, P = { class: "w-[40px] flex text-white items-center bg-oc-text active:bg-oc-gray-800 justify-center aspect-square rounded-full cursor-pointer" }, S = { class: "min-w-[180px]" }, $ = { class: "p-3" }, j = { class: "uppercase text-oc-text-400 text-xs font-medium" }, I = /* @__PURE__ */ v({
18
+ __name: "OcSupportMenu",
19
+ props: {
20
+ modelValue: {
21
+ type: Boolean,
22
+ default: !1
23
+ },
24
+ title: {
25
+ type: String,
26
+ default: "Have a question?"
27
+ },
28
+ info: {
29
+ type: String,
30
+ default: "We're ready to guide you through anything you need!"
31
+ },
32
+ confirmButtonProps: {
33
+ type: Object,
34
+ default: () => ({})
35
+ },
36
+ topMenu: {
37
+ type: Array,
38
+ default: () => []
39
+ },
40
+ bottomMenu: {
41
+ type: Array,
42
+ default: () => []
43
+ },
44
+ questionBtnProps: {
45
+ type: Object,
46
+ default: () => ({})
47
+ },
48
+ isPointed: Boolean
49
+ },
50
+ emits: ["update:modelValue"],
51
+ setup(n) {
52
+ const _ = {
53
+ arrowHidden: !0
54
+ };
55
+ return (d, o) => (e(), s("div", B, [
56
+ m(i(V), {
57
+ "model-value": n.modelValue,
58
+ "popper-options": _,
59
+ placement: "top-end",
60
+ distance: 8,
61
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => d.$emit("update:modelValue", r))
62
+ }, {
63
+ menu: l(() => [
64
+ t("div", S, [
65
+ (e(!0), s(a, null, p(n.topMenu, (r, u) => (e(), s(a, { key: u }, [
66
+ t("div", $, [
67
+ t("span", j, h(r.title), 1)
68
+ ]),
69
+ (e(!0), s(a, null, p(r.items, (x, b) => (e(), c(i(g), f({
70
+ key: b,
71
+ class: "text-sm",
72
+ ref_for: !0
73
+ }, x), {
74
+ badge: l(() => [
75
+ y(d.$slots, "badge")
76
+ ]),
77
+ _: 2
78
+ }, 1040))), 128))
79
+ ], 64))), 128)),
80
+ o[2] || (o[2] = t("div", { class: "w-full border-t border-gray-200" }, null, -1)),
81
+ (e(!0), s(a, null, p(n.bottomMenu, (r, u) => (e(), c(i(g), f({
82
+ key: u,
83
+ class: "text-sm",
84
+ ref_for: !0
85
+ }, r), {
86
+ badge: l(() => [
87
+ y(d.$slots, "badge")
88
+ ]),
89
+ _: 2
90
+ }, 1040))), 128))
91
+ ])
92
+ ]),
93
+ default: l(() => [
94
+ t("div", q, [
95
+ n.isPointed ? (e(), s("div", M, o[1] || (o[1] = [
96
+ t("div", { class: "w-[6px] aspect-square rounded-full bg-oc-error" }, null, -1)
97
+ ]))) : w("", !0),
98
+ t("div", P, [
99
+ m(i(k), {
100
+ name: "question",
101
+ width: "33",
102
+ height: "33"
103
+ })
104
+ ])
105
+ ])
106
+ ]),
107
+ _: 3
108
+ }, 8, ["model-value"])
109
+ ]));
110
+ }
111
+ });
112
+ export {
113
+ I as _
114
+ };
@@ -0,0 +1,31 @@
1
+ import { openBlock as r, createElementBlock as n, Fragment as i, renderList as o, normalizeClass as a, createElementVNode as l, toDisplayString as c } from "vue";
2
+ const u = { class: "flex items-center gap-2 p-2 rounded-full shadow-inner border border-oc-gray-200" }, d = ["onClick"], y = {
3
+ __name: "OcSwitchTabs",
4
+ props: {
5
+ options: {
6
+ type: Array,
7
+ required: !0
8
+ },
9
+ activeOption: {
10
+ type: String,
11
+ default: ""
12
+ }
13
+ },
14
+ emits: ["select"],
15
+ setup(t) {
16
+ return (s, m) => (r(), n("div", u, [
17
+ (r(!0), n(i, null, o(t.options, (e) => (r(), n("div", {
18
+ key: e.value,
19
+ class: a(["rounded-full cursor-pointer py-3 px-4 transition duration-300 border-2 border-transparent", { "bg-oc-gray-800": e.value === t.activeOption }]),
20
+ onClick: (p) => s.$emit("select", e.value)
21
+ }, [
22
+ l("span", {
23
+ class: a(["text-oc-text-300 font-medium text-sm", { "text-white": e.value === t.activeOption }])
24
+ }, c(e.label), 3)
25
+ ], 10, d))), 128))
26
+ ]));
27
+ }
28
+ };
29
+ export {
30
+ y as _
31
+ };
@@ -0,0 +1,183 @@
1
+ import { openBlock as a, createElementBlock as n, renderSlot as c, createVNode as f, unref as d, createTextVNode as w, createElementVNode as m, createBlock as C, mergeProps as _, createCommentVNode as B, ref as x, computed as P, watch as H, onMounted as R, Fragment as v, renderList as y, normalizeClass as $, toDisplayString as g, withCtx as k, normalizeStyle as D } from "vue";
2
+ import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import "dayjs";
4
+ import { B as V, D as N } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
5
+ import { _ as O } from "./OcIcon-CJgBICxh.js";
6
+ /* empty css */
7
+ import "libphonenumber-js";
8
+ /* empty css */
9
+ import "v-calendar";
10
+ /* empty css */
11
+ import "./Cropper.js";
12
+ import "vue-draggable-next";
13
+ import "@popperjs/core";
14
+ import { _ as j } from "./OcDropdownItem-DAElmzEu.js";
15
+ const z = {}, L = { class: "bg-oc-bg px-3 md:px-[40px] border-b border-oc-gray-200 h-[68px] w-full flex items-center" };
16
+ function M(e, o) {
17
+ return a(), n("div", L, [
18
+ c(e.$slots, "default")
19
+ ]);
20
+ }
21
+ const fe = /* @__PURE__ */ b(z, [["render", M]]), T = {}, U = { class: "px-3 md:px-[40px] border-b border-oc-gray-200 h-[68px] w-full flex items-center relative bg-oc-accent-1-600" };
22
+ function A(e, o) {
23
+ return a(), n("div", U, [
24
+ c(e.$slots, "default")
25
+ ]);
26
+ }
27
+ const pe = /* @__PURE__ */ b(T, [["render", A]]), F = {}, W = { class: "flex items-center gap-x-3 mr-auto" };
28
+ function q(e, o) {
29
+ return a(), n("div", W, [
30
+ c(e.$slots, "default")
31
+ ]);
32
+ }
33
+ const xe = /* @__PURE__ */ b(F, [["render", q]]), G = { class: "flex items-center" }, I = {
34
+ key: 1,
35
+ class: "text-oc-text-300 text-sm md:text-base"
36
+ }, ve = {
37
+ __name: "OcHeaderCenter",
38
+ props: {
39
+ isSaved: Boolean
40
+ },
41
+ emits: ["back"],
42
+ setup(e) {
43
+ return (o, t) => (a(), n("div", G, [
44
+ c(o.$slots, "default", {}, () => [
45
+ c(o.$slots, "before"),
46
+ e.isSaved ? (a(), n("span", {
47
+ key: 0,
48
+ class: "text-oc-text-100 flex items-center cursor-pointer",
49
+ onClick: t[0] || (t[0] = (r) => o.$emit("back"))
50
+ }, [
51
+ f(d(O), {
52
+ name: "chevron-down",
53
+ class: "rotate-90"
54
+ }),
55
+ t[1] || (t[1] = w(" Back "))
56
+ ])) : (a(), n("span", I, " Unsaved changes ")),
57
+ c(o.$slots, "after")
58
+ ])
59
+ ]));
60
+ }
61
+ }, J = { class: "flex items-center gap-x-7 ml-auto" }, K = { class: "flex gap-x-3" }, $e = {
62
+ __name: "OcHeaderRight",
63
+ props: {
64
+ primaryProps: {
65
+ type: Object
66
+ },
67
+ secondaryProps: {
68
+ type: Object
69
+ },
70
+ isSecondaryButtonVisible: {
71
+ type: Boolean,
72
+ default: !0
73
+ }
74
+ },
75
+ emits: ["save", "cancel", "addition-click", "dropdown-action"],
76
+ setup(e, { emit: o }) {
77
+ return (t, r) => (a(), n("div", J, [
78
+ c(t.$slots, "default", {}, () => [
79
+ c(t.$slots, "before"),
80
+ m("div", K, [
81
+ e.isSecondaryButtonVisible ? (a(), C(d(V), _({
82
+ key: 0,
83
+ class: "min-w-[100px]",
84
+ variant: "secondary",
85
+ label: "Cancel"
86
+ }, e.secondaryProps, {
87
+ onClick: r[0] || (r[0] = (i) => t.$emit("cancel"))
88
+ }), null, 16)) : B("", !0),
89
+ c(t.$slots, "primary-button", {}, () => [
90
+ f(d(V), _({
91
+ class: "min-w-[100px]",
92
+ label: "Save"
93
+ }, e.primaryProps, {
94
+ onClick: r[1] || (r[1] = (i) => t.$emit("save"))
95
+ }), null, 16)
96
+ ])
97
+ ]),
98
+ c(t.$slots, "after")
99
+ ])
100
+ ]));
101
+ }
102
+ }, Q = { class: "gap-x-7 hidden md:flex relative" }, X = ["onClick"], Y = { class: "p-3 font-medium text-oc-accent-1-500 flex items-center gap-2" }, Z = { class: "p-4 min-w-[220px] flex flex-col gap-y-3 border-b border-gray-200" }, be = {
103
+ __name: "OcTabToSelect",
104
+ props: {
105
+ menus: Array,
106
+ modelValue: String
107
+ },
108
+ emits: {
109
+ changePath: [],
110
+ "update:modelValue": []
111
+ },
112
+ setup(e) {
113
+ const o = e, t = x(!1), r = P(() => o.menus.find((l) => l.value === o.modelValue)), i = x(), h = x([]), p = (l) => {
114
+ if (!i.value) return;
115
+ const u = (l == null ? void 0 : l.target) || h.value[o.menus.indexOf(r.value)];
116
+ i.value.style.width = `${u.offsetWidth}px`, i.value.style.left = `${u.offsetLeft}px`;
117
+ };
118
+ return H(
119
+ () => o.modelValue,
120
+ () => p()
121
+ ), R(() => p()), (l, u) => (a(), n(v, null, [
122
+ m("div", Q, [
123
+ (a(!0), n(v, null, y(e.menus, (s) => (a(), n("div", {
124
+ key: s.value,
125
+ ref_for: !0,
126
+ ref_key: "menuRefs",
127
+ ref: h,
128
+ class: $(["h-[36px] z-10 px-7 transition-all flex items-center justify-center rounded-full text-oc-text-500 hover:text-oc-accent-1 cursor-pointer", [s.value === e.modelValue ? "font-medium !text-white" : ""]]),
129
+ onClick: (S) => {
130
+ p(S), l.$emit("changePath", s.path), l.$emit("update:modelValue", s.value);
131
+ }
132
+ }, g(s.label), 11, X))), 128)),
133
+ m("div", {
134
+ ref_key: "currentRef",
135
+ ref: i,
136
+ class: $([r.value.sidebarClass, "absolute transition-all duration-300 h-[36px] rounded-full min-w-[100px] bg-[var(--oc-sidebar-menu-active-icon-active)]"])
137
+ }, null, 2)
138
+ ]),
139
+ f(d(N), {
140
+ modelValue: t.value,
141
+ "onUpdate:modelValue": u[0] || (u[0] = (s) => t.value = s),
142
+ class: "flex md:hidden"
143
+ }, {
144
+ menu: k(() => [
145
+ m("div", Z, [
146
+ (a(!0), n(v, null, y(e.menus, (s) => (a(), C(d(j), {
147
+ key: s.value,
148
+ class: $(["px-5 py-3", [
149
+ s.value === e.modelValue ? "!text-oc-accent-1 font-medium bg-oc-accent-1-50-tr" : "!text-oc-text-400"
150
+ ]]),
151
+ text: s.label,
152
+ style: D({
153
+ borderColor: r.value.color
154
+ }),
155
+ onClick: () => {
156
+ l.$emit("changePath", s.path), l.$emit("update:modelValue", s.value);
157
+ }
158
+ }, null, 8, ["text", "style", "class", "onClick"]))), 128))
159
+ ])
160
+ ]),
161
+ default: k(() => [
162
+ m("div", Y, [
163
+ w(g(r.value.label) + " ", 1),
164
+ f(d(O), {
165
+ name: "chevron-down",
166
+ width: "20",
167
+ height: "20"
168
+ })
169
+ ])
170
+ ]),
171
+ _: 1
172
+ }, 8, ["modelValue"])
173
+ ], 64));
174
+ }
175
+ };
176
+ export {
177
+ fe as O,
178
+ ve as _,
179
+ pe as a,
180
+ xe as b,
181
+ $e as c,
182
+ be as d
183
+ };