@orchidui/core 0.5.0 → 0.6.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 (154) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
  2. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  3. package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
  4. package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
  5. package/dist/DataDisplay/ListItem/OcListItem.js +3 -3
  6. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  7. package/dist/DataDisplay/Overview/OcOverview.js +4 -5
  8. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  9. package/dist/DataDisplay/Table/OcTable.js +4 -4
  10. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  11. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  12. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  13. package/dist/Disclosure/Steps/OcSteps.js +3 -3
  14. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  15. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  16. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +2 -2
  17. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +2 -2
  18. package/dist/Elements/Box/OcBox.js +2 -2
  19. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  20. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  21. package/dist/Elements/Header/OcHeader.js +3 -3
  22. package/dist/Elements/PageTitle/OcPageTitle.js +3 -4
  23. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  24. package/dist/Elements/Sidebar/OcSidebar.js +1 -1
  25. package/dist/Elements/Skeleton/OcSkeleton.js +1 -1
  26. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  27. package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
  28. package/dist/Feedback/Banner/OcBanner.js +1 -1
  29. package/dist/Feedback/Chip/OcChip.js +2 -2
  30. package/dist/Feedback/ShareIcon/OcShareIcon.js +2 -2
  31. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  32. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  33. package/dist/Form/Button/OcButton.js +1 -1
  34. package/dist/Form/Calendar/OcCalendar.js +2 -2
  35. package/dist/Form/CardInput/OcCardInput.js +1 -1
  36. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  37. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  38. package/dist/Form/Criteria/OcCriteria.js +1 -1
  39. package/dist/Form/Cropper/OcCropper.js +1 -1
  40. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  41. package/dist/Form/EmojiPicker/OcEmojiPicker.js +2 -2
  42. package/dist/Form/Input/OcInput.js +3 -4
  43. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  44. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  45. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  46. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  47. package/dist/Form/Radio/OcRadio.js +1 -1
  48. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  49. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  50. package/dist/Form/SectionItem/OcSectionItem.js +2 -2
  51. package/dist/Form/Select/OcSelect.js +4 -5
  52. package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
  53. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  54. package/dist/Form/Slider/OcSlider.js +1 -1
  55. package/dist/Form/TextArea/OcTextArea.js +2 -2
  56. package/dist/Form/Toggle/OcToggle.js +1 -1
  57. package/dist/Form/index.js +24 -47
  58. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  59. package/dist/{OcComplexCalendar-DXl0ecZ-.js → OcComplexCalendar-Boa7mNFU.js} +18 -25
  60. package/dist/OcComplexDatePicker-BydI4VSR.js +93 -0
  61. package/dist/{OcCropper-31Y_S1Ne.js → OcCropper-7E2i6ayU.js} +38 -49
  62. package/dist/OcDataTable-CsCGrRx7.js +561 -0
  63. package/dist/{OcDraggable-BjhGJmpM.js → OcDraggable-CA_BCbpl.js} +7 -8
  64. package/dist/{Draggable.js → OcDraggableList-BUu5SgoA.js} +39 -50
  65. package/dist/{OcEmojiPicker-BXm-_OGK.js → OcEmojiPicker-DYYK7OB3.js} +28 -38
  66. package/dist/OcFilterForm-7ehuJUMp.js +83 -0
  67. package/dist/OcFilterSearch-B4AZsLBn.js +69 -0
  68. package/dist/OcFilterSearchFor-DfwJG-5N.js +67 -0
  69. package/dist/OcModalCropper-Z4jlnFc5.js +46 -0
  70. package/dist/{OcSkeleton-BdPTmGh0.js → OcSkeleton-CvdpGSQR.js} +2 -3
  71. package/dist/{OcSlider-Bsi-ckbP.js → OcSlider-DW9x8eas.js} +10 -11
  72. package/dist/{OcTimePicker-B61MCi0D.js → OcTimePicker-D9fPU8_m.js} +22 -33
  73. package/dist/{OcTimePopup-zQFKCZLk.js → OcTimePopup-CXGhaOev.js} +2 -3
  74. package/dist/{OcToggle-C0wTjM_Y.js → OcToggle-bIJaLDMZ.js} +5 -6
  75. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  76. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  77. package/dist/Overlay/Dropdown/OcDropdown.js +3 -4
  78. package/dist/Overlay/Modal/OcModal.js +3 -4
  79. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  80. package/dist/Overlay/Tooltip/OcTooltip.js +2 -2
  81. package/dist/Overlay/Whitelist/OcWhiteList.js +2 -2
  82. package/dist/SubPlanCard-DHj4RHJZ.js +81 -0
  83. package/dist/ThumbnailSection-CJBS0QXp.js +41 -0
  84. package/dist/ThumbnailTheme-hey6se0g.js +119 -0
  85. package/dist/index-DyVteXE3.js +10028 -0
  86. package/dist/index.js +129 -948
  87. package/dist/style.css +1 -1
  88. package/package.json +1 -16
  89. package/dist/Calendar.js +0 -103
  90. package/dist/Cropper.js +0 -6
  91. package/dist/DatePicker-BLK16hYl.js +0 -263
  92. package/dist/EmojiPicker.js +0 -4
  93. package/dist/Form/TimePicker/OcTimePicker.js +0 -6
  94. package/dist/OcAccordion-DdkNsXvN.js +0 -101
  95. package/dist/OcAccountSetup-BXDjf48o.js +0 -324
  96. package/dist/OcAdditionalContent-BMSysCXu.js +0 -612
  97. package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +0 -43
  98. package/dist/OcBanner-Cg2WJV6e.js +0 -108
  99. package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +0 -43
  100. package/dist/OcCardInput-BFE4Xu-S.js +0 -75
  101. package/dist/OcCheckboxesGroup-CLbquUO2.js +0 -94
  102. package/dist/OcChip-B1hm2Qni.js +0 -144
  103. package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +0 -1006
  104. package/dist/OcConfirmationModal-BfCrRV9r.js +0 -179
  105. package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +0 -65
  106. package/dist/OcCriteria-CpIohheZ.js +0 -42
  107. package/dist/OcCustomerCard-DbDOBO03.js +0 -160
  108. package/dist/OcDropdownItem-DAElmzEu.js +0 -57
  109. package/dist/OcEmptyPage-CTwgMzRp.js +0 -155
  110. package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +0 -815
  111. package/dist/OcFeatureOverviewCard-RVyrWLVW.js +0 -71
  112. package/dist/OcFloatContent-BIKQOxSw.js +0 -142
  113. package/dist/OcFormBuilder-BUpEpDsU.js +0 -177
  114. package/dist/OcGroupOptions-ChGJvTXl.js +0 -16
  115. package/dist/OcInfoCard-DpYUZOMZ.js +0 -81
  116. package/dist/OcInput-tcRxG3Y2.js +0 -227
  117. package/dist/OcInputOption-CncASfNt.js +0 -160
  118. package/dist/OcLinkInput-C2ixk-gk.js +0 -143
  119. package/dist/OcListDetail-6XeME6ko.js +0 -76
  120. package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-7zZdFM8K.js +0 -750
  121. package/dist/OcModal-DdD5VFEN.js +0 -187
  122. package/dist/OcModalCropper-D2OI2iun.js +0 -56
  123. package/dist/OcModalPage-BLVa-kcB.js +0 -86
  124. package/dist/OcMultipleUploadFile-BAmQHshA.js +0 -447
  125. package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +0 -90
  126. package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +0 -81
  127. package/dist/OcOption-DK2FBGq7.js +0 -485
  128. package/dist/OcOverviewIcon-D702Ujka.js +0 -55
  129. package/dist/OcOverviewItem-DNr5tWnt.js +0 -186
  130. package/dist/OcPageTitleRight-DMtJ1qmZ.js +0 -243
  131. package/dist/OcPaginationNumber-IKPorX26.js +0 -172
  132. package/dist/OcPaymentTab-Cna1IAhO.js +0 -170
  133. package/dist/OcPhoneInput-AC6BgQhN.js +0 -432
  134. package/dist/OcPrimaryActions-D5IprKsQ.js +0 -222
  135. package/dist/OcRadio-CRYfNwV9.js +0 -107
  136. package/dist/OcRadioGroup-DgfdWJos.js +0 -76
  137. package/dist/OcRangeInput-C-hoHFhr.js +0 -103
  138. package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +0 -37
  139. package/dist/OcSectionItem-BFgxO3se.js +0 -84
  140. package/dist/OcSelectOptions-BQlG_EUA.js +0 -148
  141. package/dist/OcShareIcon-BB-NPq0r.js +0 -53
  142. package/dist/OcSingleFileUpload-B8-e1H5t.js +0 -464
  143. package/dist/OcSnackbar-CKxY1-ej.js +0 -196
  144. package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +0 -87
  145. package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +0 -60
  146. package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +0 -114
  147. package/dist/OcTabToSelect-BHAz1Niv.js +0 -183
  148. package/dist/OcTextArea-BpV1Bnj_.js +0 -78
  149. package/dist/OcTransferSummary-Bk2GXhrT.js +0 -67
  150. package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +0 -99
  151. package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +0 -59
  152. package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +0 -64
  153. package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +0 -113
  154. package/dist/StoreDesign.js +0 -240
@@ -1,196 +0,0 @@
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
- };
@@ -1,87 +0,0 @@
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
- };
@@ -1,60 +0,0 @@
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
- };
@@ -1,114 +0,0 @@
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
- };
@@ -1,183 +0,0 @@
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
- };