@orchidui/core 0.4.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 (155) 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/DataTable/utils/editColumnsUtils.js +29 -0
  12. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  13. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  14. package/dist/Disclosure/Steps/OcSteps.js +3 -3
  15. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  16. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  17. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +2 -2
  18. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +2 -2
  19. package/dist/Elements/Box/OcBox.js +2 -2
  20. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  21. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  22. package/dist/Elements/Header/OcHeader.js +3 -3
  23. package/dist/Elements/PageTitle/OcPageTitle.js +3 -4
  24. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  25. package/dist/Elements/Sidebar/OcSidebar.js +1 -1
  26. package/dist/Elements/Skeleton/OcSkeleton.js +1 -1
  27. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  28. package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
  29. package/dist/Feedback/Banner/OcBanner.js +1 -1
  30. package/dist/Feedback/Chip/OcChip.js +2 -2
  31. package/dist/Feedback/ShareIcon/OcShareIcon.js +2 -2
  32. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  33. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  34. package/dist/Form/Button/OcButton.js +1 -1
  35. package/dist/Form/Calendar/OcCalendar.js +2 -2
  36. package/dist/Form/CardInput/OcCardInput.js +1 -1
  37. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  38. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  39. package/dist/Form/Criteria/OcCriteria.js +1 -1
  40. package/dist/Form/Cropper/OcCropper.js +1 -1
  41. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  42. package/dist/Form/EmojiPicker/OcEmojiPicker.js +2 -2
  43. package/dist/Form/Input/OcInput.js +3 -4
  44. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  45. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  46. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  47. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  48. package/dist/Form/Radio/OcRadio.js +1 -1
  49. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  50. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  51. package/dist/Form/SectionItem/OcSectionItem.js +2 -2
  52. package/dist/Form/Select/OcSelect.js +4 -5
  53. package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
  54. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  55. package/dist/Form/Slider/OcSlider.js +1 -1
  56. package/dist/Form/TextArea/OcTextArea.js +2 -2
  57. package/dist/Form/Toggle/OcToggle.js +1 -1
  58. package/dist/Form/index.js +24 -47
  59. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  60. package/dist/{OcComplexCalendar-x-_kg9Yk.js → OcComplexCalendar-Boa7mNFU.js} +18 -25
  61. package/dist/OcComplexDatePicker-BydI4VSR.js +93 -0
  62. package/dist/{OcCropper-31Y_S1Ne.js → OcCropper-7E2i6ayU.js} +38 -49
  63. package/dist/OcDataTable-CsCGrRx7.js +561 -0
  64. package/dist/{OcDraggable-BjhGJmpM.js → OcDraggable-CA_BCbpl.js} +7 -8
  65. package/dist/{Draggable.js → OcDraggableList-BUu5SgoA.js} +40 -50
  66. package/dist/{OcEmojiPicker-BXm-_OGK.js → OcEmojiPicker-DYYK7OB3.js} +28 -38
  67. package/dist/OcFilterForm-7ehuJUMp.js +83 -0
  68. package/dist/OcFilterSearch-B4AZsLBn.js +69 -0
  69. package/dist/OcFilterSearchFor-DfwJG-5N.js +67 -0
  70. package/dist/OcModalCropper-Z4jlnFc5.js +46 -0
  71. package/dist/{OcSkeleton-BdPTmGh0.js → OcSkeleton-CvdpGSQR.js} +2 -3
  72. package/dist/{OcSlider-Bsi-ckbP.js → OcSlider-DW9x8eas.js} +10 -11
  73. package/dist/{OcTimePicker-B61MCi0D.js → OcTimePicker-D9fPU8_m.js} +22 -33
  74. package/dist/{OcTimePopup-zQFKCZLk.js → OcTimePopup-CXGhaOev.js} +2 -3
  75. package/dist/{OcToggle-C0wTjM_Y.js → OcToggle-bIJaLDMZ.js} +5 -6
  76. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  77. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  78. package/dist/Overlay/Dropdown/OcDropdown.js +3 -4
  79. package/dist/Overlay/Modal/OcModal.js +3 -4
  80. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  81. package/dist/Overlay/Tooltip/OcTooltip.js +2 -2
  82. package/dist/Overlay/Whitelist/OcWhiteList.js +2 -2
  83. package/dist/SubPlanCard-DHj4RHJZ.js +81 -0
  84. package/dist/ThumbnailSection-CJBS0QXp.js +41 -0
  85. package/dist/ThumbnailTheme-hey6se0g.js +119 -0
  86. package/dist/index-DyVteXE3.js +10028 -0
  87. package/dist/index.js +129 -175
  88. package/dist/style.css +1 -1
  89. package/package.json +1 -16
  90. package/dist/Calendar.js +0 -103
  91. package/dist/Cropper.js +0 -6
  92. package/dist/DatePicker-D3w435Ml.js +0 -263
  93. package/dist/EmojiPicker.js +0 -4
  94. package/dist/Form/TimePicker/OcTimePicker.js +0 -6
  95. package/dist/OcAccordion-DdkNsXvN.js +0 -101
  96. package/dist/OcAccountSetup-BXDjf48o.js +0 -324
  97. package/dist/OcAdditionalContent-BMSysCXu.js +0 -612
  98. package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +0 -43
  99. package/dist/OcBanner-Cg2WJV6e.js +0 -108
  100. package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +0 -43
  101. package/dist/OcCardInput-BFE4Xu-S.js +0 -75
  102. package/dist/OcCheckboxesGroup-CLbquUO2.js +0 -94
  103. package/dist/OcChip-B1hm2Qni.js +0 -144
  104. package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +0 -1006
  105. package/dist/OcConfirmationModal-BfCrRV9r.js +0 -179
  106. package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +0 -65
  107. package/dist/OcCriteria-CpIohheZ.js +0 -42
  108. package/dist/OcCustomerCard-DbDOBO03.js +0 -160
  109. package/dist/OcDropdownItem-DAElmzEu.js +0 -57
  110. package/dist/OcEmptyPage-CTwgMzRp.js +0 -155
  111. package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +0 -815
  112. package/dist/OcFeatureOverviewCard-RVyrWLVW.js +0 -71
  113. package/dist/OcFloatContent-BIKQOxSw.js +0 -142
  114. package/dist/OcFormBuilder-CRXWtt8I.js +0 -177
  115. package/dist/OcGroupOptions-ChGJvTXl.js +0 -16
  116. package/dist/OcInfoCard-DpYUZOMZ.js +0 -81
  117. package/dist/OcInput-tcRxG3Y2.js +0 -227
  118. package/dist/OcInputOption-CncASfNt.js +0 -160
  119. package/dist/OcLinkInput-C2ixk-gk.js +0 -143
  120. package/dist/OcListDetail-6XeME6ko.js +0 -76
  121. package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-7zZdFM8K.js +0 -750
  122. package/dist/OcModal-DdD5VFEN.js +0 -187
  123. package/dist/OcModalCropper-D2OI2iun.js +0 -56
  124. package/dist/OcModalPage-BLVa-kcB.js +0 -86
  125. package/dist/OcMultipleUploadFile-B8Wl9Fuq.js +0 -446
  126. package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +0 -90
  127. package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +0 -81
  128. package/dist/OcOption-DK2FBGq7.js +0 -485
  129. package/dist/OcOverviewIcon-D702Ujka.js +0 -55
  130. package/dist/OcOverviewItem-DNr5tWnt.js +0 -186
  131. package/dist/OcPageTitleRight-DMtJ1qmZ.js +0 -243
  132. package/dist/OcPaginationNumber-IKPorX26.js +0 -172
  133. package/dist/OcPaymentTab-Cna1IAhO.js +0 -170
  134. package/dist/OcPhoneInput-AC6BgQhN.js +0 -432
  135. package/dist/OcPrimaryActions-D5IprKsQ.js +0 -222
  136. package/dist/OcRadio-CRYfNwV9.js +0 -107
  137. package/dist/OcRadioGroup-DgfdWJos.js +0 -76
  138. package/dist/OcRangeInput-C-hoHFhr.js +0 -103
  139. package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +0 -37
  140. package/dist/OcSectionItem-BFgxO3se.js +0 -84
  141. package/dist/OcSelectOptions-BQlG_EUA.js +0 -148
  142. package/dist/OcShareIcon-BB-NPq0r.js +0 -53
  143. package/dist/OcSingleFileUpload-B8-e1H5t.js +0 -464
  144. package/dist/OcSnackbar-CKxY1-ej.js +0 -196
  145. package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +0 -87
  146. package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +0 -60
  147. package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +0 -114
  148. package/dist/OcTabToSelect-BHAz1Niv.js +0 -183
  149. package/dist/OcTextArea-BpV1Bnj_.js +0 -78
  150. package/dist/OcTransferSummary-Bk2GXhrT.js +0 -67
  151. package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +0 -99
  152. package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +0 -59
  153. package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +0 -64
  154. package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +0 -113
  155. package/dist/StoreDesign.js +0 -240
@@ -1,750 +0,0 @@
1
- import { defineComponent as T, useSlots as L, openBlock as s, createElementBlock as o, createElementVNode as t, normalizeClass as v, toDisplayString as g, renderSlot as p, createTextVNode as B, createBlock as h, unref as c, createCommentVNode as d, ref as C, createVNode as b, withCtx as w, Fragment as S, renderList as k, computed as A, onMounted as j, onBeforeUnmount as _, mergeProps as O, withModifiers as N, normalizeStyle as I, withDirectives as E, vShow as F, resolveDynamicComponent as U, createSlots as W, normalizeProps as Y, guardReactiveProps as H } from "vue";
2
- import q from "dayjs";
3
- import { D as V, T as G, B as R } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
- import { _ as $ } 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
- import { _ as J } from "./OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js";
14
- import { _ as M } from "./OcChip-B1hm2Qni.js";
15
- const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:before:top-0 before:h-full before:left-[10px] before:absolute before:border-l" }, Q = { class: "flex gap-x-7 w-full items-center" }, X = { class: "flex flex-1 flex-col gap-y-2" }, Z = { class: "text-sm text-oc-text-400" }, ee = { class: "flex items-end gap-x-2" }, z = /* @__PURE__ */ T({
16
- __name: "OcTimeLine",
17
- props: {
18
- isActive: Boolean,
19
- title: String,
20
- description: String,
21
- icon: String,
22
- iconClass: String,
23
- iconText: String,
24
- iconTextClass: String
25
- },
26
- setup(e) {
27
- return L(), (a, f) => (s(), o("div", K, [
28
- t("div", null, [
29
- t("div", {
30
- class: v(["w-6 h-6 flex z-[1] relative items-center rounded-full justify-center", e.isActive ? "bg-oc-accent-1-50 shadow" : " bg-transparent"])
31
- }, [
32
- t("div", {
33
- class: v(["w-3 h-3 rounded-full", e.isActive ? "bg-oc-primary-500" : " bg-oc-gray-500"])
34
- }, null, 2)
35
- ], 2)
36
- ]),
37
- t("div", Q, [
38
- t("div", X, [
39
- t("span", null, g(e.title), 1),
40
- t("span", Z, [
41
- p(a.$slots, "description", {}, () => [
42
- B(g(e.description), 1)
43
- ])
44
- ])
45
- ]),
46
- t("div", ee, [
47
- e.icon ? (s(), h(c($), {
48
- key: 0,
49
- name: e.icon,
50
- class: v(e.iconClass)
51
- }, null, 8, ["name", "class"])) : d("", !0),
52
- t("span", {
53
- class: v(["text-lg font-medium", e.iconTextClass])
54
- }, [
55
- p(a.$slots, "iconText", {}, () => [
56
- B(g(e.iconText), 1)
57
- ])
58
- ], 2)
59
- ])
60
- ])
61
- ]));
62
- }
63
- }), te = { class: "px-5 py-4 flex flex-col gap-y-5 rounded border border-gray-200 group hover:shadow-normal" }, se = { class: "flex items-center justify-between" }, ne = { class: "flex text-sm text-oc-text-400 items-center gap-x-2" }, oe = {
64
- key: 0,
65
- class: "text-base text-oc-text font-medium"
66
- }, ie = { key: 1 }, le = {
67
- key: 0,
68
- class: "flex flex-col gap-y-3"
69
- }, ae = /* @__PURE__ */ T({
70
- __name: "OcWebhook",
71
- props: {
72
- urls: {
73
- type: Array,
74
- default: () => []
75
- },
76
- title: String,
77
- date: String
78
- },
79
- emits: ["more"],
80
- setup(e) {
81
- const a = C(!1);
82
- return (f, l) => {
83
- var i;
84
- return s(), o("div", te, [
85
- t("div", se, [
86
- t("div", ne, [
87
- e.title ? (s(), o("span", oe, g(e.title), 1)) : d("", !0),
88
- l[3] || (l[3] = B(" - ")),
89
- e.date ? (s(), o("span", ie, g(e.date), 1)) : d("", !0)
90
- ]),
91
- b(c(V), {
92
- modelValue: a.value,
93
- "onUpdate:modelValue": l[2] || (l[2] = (n) => a.value = n)
94
- }, {
95
- menu: w(() => [
96
- t("div", {
97
- onMouseleave: l[1] || (l[1] = (n) => a.value = !1)
98
- }, [
99
- p(f.$slots, "menu")
100
- ], 32)
101
- ]),
102
- default: w(() => [
103
- b(c($), {
104
- name: "dots-vertical",
105
- class: "opacity-0 p-2 group-hover:opacity-100 cursor-pointer active:bg-oc-gray-100 rounded",
106
- onClick: l[0] || (l[0] = (n) => f.$emit("more"))
107
- })
108
- ]),
109
- _: 3
110
- }, 8, ["modelValue"])
111
- ]),
112
- (i = e.urls) != null && i.length ? (s(), o("div", le, [
113
- (s(!0), o(S, null, k(e.urls, (n, u) => (s(), h(c(vt), {
114
- key: u,
115
- title: n.title,
116
- url: n.url
117
- }, null, 8, ["title", "url"]))), 128))
118
- ])) : d("", !0)
119
- ]);
120
- };
121
- }
122
- }), re = { class: "p-5 rounded border border-gray-200 max-w-[156px]" }, ce = ["src", "alt"], de = { class: "text-oc-text-400 mt-4" }, ue = /* @__PURE__ */ T({
123
- __name: "OcLogo",
124
- props: {
125
- title: String,
126
- image: String,
127
- imageClass: String
128
- },
129
- setup(e) {
130
- return (a, f) => (s(), o("div", re, [
131
- t("img", {
132
- src: e.image,
133
- class: v([e.imageClass, "object-contain"]),
134
- alt: e.title
135
- }, null, 10, ce),
136
- t("div", de, g(e.title), 1),
137
- p(a.$slots, "default")
138
- ]));
139
- }
140
- }), me = { class: "flex items-center gap-x-5" }, ge = { class: "flex-1 flex items-center gap-x-3 font-medium capitalize" }, pe = { class: "flex flex-col gap-2" }, fe = { class: "flex items-center gap-x-3 overflow-hidden" }, xe = { class: "truncate" }, ve = {
141
- key: 0,
142
- class: "flex gap-3"
143
- }, he = {
144
- key: 0,
145
- class: "text-oc-text-400 flex gap-x-2 items-center text-sm font-normal normal-case"
146
- }, ye = { class: "border opacity-0 group-hover:opacity-100 border-oc-accent-1-100 rounded-sm p-1 flex gap-x-1" }, $e = {
147
- key: 0,
148
- class: "flex items-center gap-x-2"
149
- }, be = ["alt", "src"], we = { class: "py-2 px-3 flex gap-x-2 w-full z-10 relative" }, ke = ["alt", "src"], Se = {
150
- __name: "OcPayment",
151
- props: {
152
- title: {
153
- type: String,
154
- default: "Title"
155
- },
156
- paymentMethods: {
157
- type: Array,
158
- default: () => []
159
- },
160
- chips: {
161
- type: Array,
162
- default: () => []
163
- },
164
- description: String
165
- },
166
- emits: ["edit", "delete"],
167
- setup(e) {
168
- var r;
169
- const a = e, f = A(() => {
170
- var m;
171
- return ((m = a.paymentMethods) == null ? void 0 : m.length) > n.value;
172
- }), l = A(
173
- () => {
174
- var m, x;
175
- return (x = a.paymentMethods) == null ? void 0 : x.slice(n.value, (m = a.paymentMethods) == null ? void 0 : m.length);
176
- }
177
- ), i = C(), n = C((r = a.paymentMethods) == null ? void 0 : r.length), u = () => {
178
- var D;
179
- const m = i.value.clientWidth - 105 - 32 - 4 * ((D = a.paymentMethods) == null ? void 0 : D.length) - 35, x = 35;
180
- n.value = Math.floor(m / x);
181
- };
182
- return j(() => {
183
- u(), window.addEventListener("resize", u);
184
- }), _(() => {
185
- window.removeEventListener("resize", u);
186
- }), (m, x) => {
187
- var D;
188
- return s(), o("div", {
189
- ref_key: "cardContainer",
190
- ref: i,
191
- class: "md:px-5 px-3 md:py-4 py-3 flex flex-col gap-y-4 rounded border border-gray-200 group hover:shadow-normal"
192
- }, [
193
- t("div", me, [
194
- t("div", ge, [
195
- p(m.$slots, "logo"),
196
- t("div", pe, [
197
- t("div", fe, [
198
- t("span", xe, g(e.title), 1),
199
- e.chips.length ? (s(), o("div", ve, [
200
- (s(!0), o(S, null, k(e.chips, (y, P) => (s(), h(c(M), O({
201
- key: P,
202
- class: "font-medium",
203
- ref_for: !0
204
- }, y), null, 16))), 128))
205
- ])) : d("", !0)
206
- ]),
207
- e.description ? (s(), o("div", he, g(e.description), 1)) : d("", !0)
208
- ])
209
- ]),
210
- p(m.$slots, "right", {}, () => [
211
- t("div", ye, [
212
- b(c($), {
213
- name: "pencil",
214
- class: "cursor-pointer text-oc-text-400 p-2",
215
- onClick: x[0] || (x[0] = (y) => m.$emit("edit"))
216
- }),
217
- x[2] || (x[2] = t("div", { class: "border-r border-gray-200" }, null, -1)),
218
- b(c($), {
219
- name: "bin",
220
- class: "cursor-pointer text-oc-error p-2",
221
- onClick: x[1] || (x[1] = (y) => m.$emit("delete"))
222
- })
223
- ])
224
- ])
225
- ]),
226
- (D = e.paymentMethods) != null && D.length ? (s(), o("div", $e, [
227
- x[3] || (x[3] = t("span", { class: "text-sm font-medium text-oc-text-300 whitespace-nowrap" }, "Payment methods", -1)),
228
- (s(!0), o(S, null, k(e.paymentMethods.slice(0, n.value), (y) => (s(), o("img", {
229
- key: y.method,
230
- width: "35",
231
- height: "24",
232
- alt: y.method,
233
- src: y.svg
234
- }, null, 8, be))), 128)),
235
- f.value ? (s(), h(c(G), {
236
- key: 0,
237
- position: "top-end",
238
- "popper-options": { strategy: "fixed" }
239
- }, {
240
- default: w(({ isShow: y }) => [
241
- t("div", {
242
- class: v(["text-sm w-[35px] h-[24px] flex items-center justify-center border rounded-sm font-medium whitespace-nowrap", y ? " bg-white" : "bg-oc-bg-dark"])
243
- }, " + " + g(e.paymentMethods.length - n.value), 3)
244
- ]),
245
- popper: w(() => [
246
- t("div", we, [
247
- (s(!0), o(S, null, k(l.value, (y) => (s(), o("img", {
248
- key: y.method,
249
- width: "35",
250
- height: "24",
251
- alt: y.method,
252
- src: y.svg
253
- }, null, 8, ke))), 128))
254
- ])
255
- ]),
256
- _: 1
257
- })) : d("", !0)
258
- ])) : d("", !0)
259
- ], 512);
260
- };
261
- }
262
- }, Te = { class: "flex items-center gap-x-4 w-full" }, Ce = { class: "flex flex-col flex-1 gap-y-3 overflow-hidden" }, De = { class: "flex items-center justify-between" }, Be = { class: "flex text-sm text-oc-text-400 items-center gap-x-3 overflow-hidden" }, Me = {
263
- key: 0,
264
- class: "text-base text-oc-text font-medium truncate"
265
- }, Ae = {
266
- key: 0,
267
- class: "flex gap-3 shrink-0"
268
- }, Oe = {
269
- key: 0,
270
- class: "flex flex-col gap-3"
271
- }, Ve = { class: "text-oc-text-400 flex gap-x-2 items-center text-sm" }, ze = {
272
- key: 0,
273
- class: "flex gap-5"
274
- }, Pe = { class: "font-medium whitespace-nowrap text-oc-text-500 text-sm" }, Le = /* @__PURE__ */ T({
275
- __name: "OcGeneral",
276
- props: {
277
- title: String,
278
- description: String,
279
- descriptionIcon: String,
280
- chips: {
281
- type: Array,
282
- default: () => []
283
- },
284
- details: {
285
- type: Array,
286
- default: () => []
287
- },
288
- isDisabled: Boolean,
289
- isDropdownActionsVisible: {
290
- type: Boolean,
291
- default: !0
292
- },
293
- isTransparent: Boolean
294
- },
295
- emits: ["more"],
296
- setup(e, { emit: a }) {
297
- const f = a, l = C(!1), i = () => {
298
- l.value = !l.value, f("more");
299
- };
300
- return (n, u) => (s(), o("div", {
301
- class: v(["px-5 py-4 rounded border border-gray-200 group", {
302
- "hover:shadow-normal": !e.isDisabled && !e.isTransparent,
303
- "border-none !p-0": e.isTransparent
304
- }]),
305
- onMouseleave: u[1] || (u[1] = (r) => l.value = !1)
306
- }, [
307
- t("div", Te, [
308
- p(n.$slots, "logo"),
309
- t("div", Ce, [
310
- t("div", De, [
311
- t("div", Be, [
312
- p(n.$slots, "title", {}, () => [
313
- e.title ? (s(), o("span", Me, g(e.title), 1)) : d("", !0)
314
- ]),
315
- e.chips.length ? (s(), o("div", Ae, [
316
- (s(!0), o(S, null, k(e.chips, (r, m) => (s(), h(c(M), {
317
- key: m,
318
- label: r.label,
319
- variant: r.variant,
320
- icon: r.icon,
321
- "icon-size": r.iconSize,
322
- "icon-tooltip": r.iconTooltip,
323
- class: v([r.class, "font-medium shrink-0"])
324
- }, null, 8, ["label", "variant", "icon", "icon-size", "icon-tooltip", "class"]))), 128))
325
- ])) : d("", !0)
326
- ]),
327
- p(n.$slots, "actions", {}, () => [
328
- e.isDropdownActionsVisible && !e.isDisabled ? (s(), h(c(V), {
329
- key: 0,
330
- modelValue: l.value,
331
- "onUpdate:modelValue": u[0] || (u[0] = (r) => l.value = r),
332
- placement: "bottom-end"
333
- }, {
334
- menu: w(() => [
335
- p(n.$slots, "menu")
336
- ]),
337
- default: w(() => [
338
- b(c($), {
339
- name: "dots-vertical",
340
- class: "opacity-0 p-2 group-hover:opacity-100 cursor-pointer active:bg-oc-gray-100 rounded",
341
- onClick: N(i, ["stop"])
342
- })
343
- ]),
344
- _: 3
345
- }, 8, ["modelValue"])) : d("", !0)
346
- ])
347
- ]),
348
- p(n.$slots, "default", {}, () => [
349
- e.descriptionIcon || e.description || e.details.length ? (s(), o("div", Oe, [
350
- t("div", Ve, [
351
- e.descriptionIcon ? (s(), h(c($), {
352
- key: 0,
353
- name: e.descriptionIcon,
354
- width: "16",
355
- height: "16",
356
- class: "text-oc-text-400"
357
- }, null, 8, ["name"])) : d("", !0),
358
- B(" " + g(e.description), 1)
359
- ]),
360
- e.details.length ? (s(), o("div", ze, [
361
- (s(!0), o(S, null, k(e.details, (r, m) => (s(), o("div", {
362
- key: m,
363
- class: "flex items-center gap-2"
364
- }, [
365
- r.country ? (s(), o("div", {
366
- key: 0,
367
- class: v(["fi w-[15px] h-[15px] shadow", "fi-" + r.country])
368
- }, null, 2)) : (s(), h(c($), {
369
- key: 1,
370
- name: r.icon,
371
- width: "16",
372
- height: "16",
373
- class: "text-oc-text-400 shrink-0"
374
- }, null, 8, ["name"])),
375
- t("div", Pe, g(r.label), 1)
376
- ]))), 128))
377
- ])) : d("", !0)
378
- ])) : d("", !0)
379
- ])
380
- ]),
381
- p(n.$slots, "append")
382
- ])
383
- ], 34));
384
- }
385
- }), je = ["src"], _e = { class: "flex flex-col gap-y-1 overflow-hidden" }, Ne = { class: "flex items-center justify-between" }, Ie = { class: "flex text-sm text-oc-text-400 items-center gap-x-3" }, Ee = {
386
- key: 0,
387
- class: "text-base text-oc-text font-medium"
388
- }, Fe = {
389
- key: 1,
390
- class: "flex gap-3"
391
- }, Ue = { class: "flex flex-col gap-4" }, We = { class: "text-xs whitespace-nowrap uppercase text-oc-text-300 overflow-hidden text-ellipsis" }, Ye = /* @__PURE__ */ T({
392
- __name: "OcTerminal",
393
- props: {
394
- title: String,
395
- image: String,
396
- imageClass: String,
397
- imageSize: {
398
- type: String,
399
- default: "medium"
400
- },
401
- description: String,
402
- chips: {
403
- type: Array,
404
- default: () => []
405
- },
406
- buttonProps: {
407
- type: Object,
408
- default: () => null
409
- },
410
- isDisabled: Boolean
411
- },
412
- setup(e) {
413
- const a = {
414
- small: "w-10",
415
- medium: "w-[56px]",
416
- large: "w-16"
417
- };
418
- return (f, l) => (s(), o("div", {
419
- class: v(["p-4 flex gap-x-4 rounded items-center border border-gray-200 group", { "hover:shadow-normal": !e.isDisabled }])
420
- }, [
421
- t("div", {
422
- class: v(["shrink-0 aspect-square flex items-center justify-center bg-oc-bg-dark rounded overflow-hidden", a[e.imageSize]])
423
- }, [
424
- t("img", {
425
- src: e.image,
426
- class: v([e.imageClass, "object-contain h-full w-full"]),
427
- alt: "terminal"
428
- }, null, 10, je)
429
- ], 2),
430
- t("div", _e, [
431
- t("div", Ne, [
432
- t("div", Ie, [
433
- e.title ? (s(), o("span", Ee, g(e.title), 1)) : d("", !0),
434
- e.chips.length ? (s(), o("div", Fe, [
435
- (s(!0), o(S, null, k(e.chips, (i, n) => (s(), h(c(M), {
436
- key: n,
437
- label: i.label,
438
- variant: i.variant,
439
- class: "font-medium"
440
- }, null, 8, ["label", "variant"]))), 128))
441
- ])) : d("", !0)
442
- ])
443
- ]),
444
- t("div", Ue, [
445
- t("div", We, g(e.description), 1)
446
- ])
447
- ]),
448
- e.buttonProps ? (s(), h(c(R), O({
449
- key: 0,
450
- class: "shrink-0",
451
- size: "small"
452
- }, e.buttonProps), null, 16)) : d("", !0)
453
- ], 2));
454
- }
455
- }), He = {
456
- key: 0,
457
- class: "min-w-[100px]"
458
- }, qe = { class: "grow pl-3" }, Ge = { class: "flex w-full" }, Re = { class: "text-lg font-medium" }, Je = { class: "ml-auto" }, Ke = { class: "cursor-pointer flex hover:bg-oc-gray-200 items-center rounded p-2" }, Qe = { class: "line-clamp-2 mb-3 max-w-[80%] text-oc-text-400" }, Xe = { class: "w-full text-sm lg:mt-4 flex flex-wrap items-center" }, Ze = { class: "mr-3" }, et = { class: "text-oc-text-400 font-medium" }, tt = {
459
- __name: "OcPage",
460
- props: {
461
- page: Object
462
- },
463
- setup(e) {
464
- const a = C(!1), f = (i) => {
465
- let n = document.createElement("DIV");
466
- return n.innerHTML = i, n.textContent || n.innerText || "";
467
- }, l = (i) => i == null ? void 0 : i.replace("generics/medium/", "generics/thumbnail/");
468
- return (i, n) => (s(), o("div", {
469
- class: "w-full p-5 flex",
470
- onMouseleave: n[1] || (n[1] = (u) => a.value = !1)
471
- }, [
472
- e.page.page_cover_url ? (s(), o("div", He, [
473
- t("div", {
474
- class: "w-[100px] h-[100px] rounded !bg-cover",
475
- style: I(`background:url(${l(e.page.page_cover_url)})`)
476
- }, null, 4)
477
- ])) : d("", !0),
478
- t("div", qe, [
479
- t("div", Ge, [
480
- t("div", Re, g(e.page.title), 1),
481
- t("div", Je, [
482
- b(c(V), {
483
- modelValue: a.value,
484
- "onUpdate:modelValue": n[0] || (n[0] = (u) => a.value = u),
485
- placement: "bottom-end"
486
- }, {
487
- menu: w(() => [
488
- p(i.$slots, "menu")
489
- ]),
490
- default: w(() => [
491
- t("div", Ke, [
492
- b(c($), {
493
- class: "text-oc-text-400",
494
- name: "dots-vertical"
495
- })
496
- ])
497
- ]),
498
- _: 3
499
- }, 8, ["modelValue"])
500
- ])
501
- ]),
502
- t("div", Qe, g(f(e.page.description)), 1),
503
- t("div", Xe, [
504
- t("span", Ze, [
505
- n[2] || (n[2] = t("span", { class: "text-oc-text-300" }, "Last updated : ", -1)),
506
- t("span", et, g(c(q)(e.page.updated_at).format("DD MMM YYYY")), 1)
507
- ]),
508
- b(c(M), {
509
- class: "ml-auto md:ml-0",
510
- variant: e.page.enabled ? "primary" : "gray"
511
- }, {
512
- default: w(() => [
513
- B(g(e.page.enabled ? "Published" : "Draft"), 1)
514
- ]),
515
- _: 1
516
- }, 8, ["variant"])
517
- ])
518
- ])
519
- ], 32));
520
- }
521
- }, st = { class: "flex items-center gap-x-4 w-full p-5 pl-0" }, nt = { class: "flex flex-col flex-1 gap-y-3" }, ot = { class: "flex items-center justify-between" }, it = { class: "flex text-sm text-oc-text-400 items-center gap-x-3 overflow-hidden" }, lt = {
522
- key: 0,
523
- class: "text-base text-oc-text font-medium truncate"
524
- }, at = {
525
- key: 1,
526
- class: "flex gap-3 shrink-0"
527
- }, rt = {
528
- key: 0,
529
- class: "flex flex-col gap-3"
530
- }, ct = { class: "text-oc-text-400 flex gap-x-2 items-center text-sm" }, dt = {
531
- key: 0,
532
- class: "flex items-center gap-4 opacity-0 group-hover:opacity-100"
533
- }, ut = { class: "border border-oc-accent-1-100 rounded-sm p-1 flex gap-x-1" }, mt = { class: "py-5 px-7" }, gt = /* @__PURE__ */ T({
534
- __name: "OcAccordion",
535
- props: {
536
- title: String,
537
- description: String,
538
- chips: {
539
- type: Array,
540
- default: () => []
541
- },
542
- isDisabled: Boolean,
543
- hasActions: {
544
- type: Boolean,
545
- default: !0
546
- },
547
- isTransparent: Boolean,
548
- isDraggable: Boolean,
549
- isNoToggleForced: Boolean
550
- },
551
- emits: ["edit", "delete"],
552
- setup(e, { expose: a, emit: f }) {
553
- const l = e, i = C(!1), n = () => {
554
- l.isNoToggleForced || (i.value = !i.value);
555
- };
556
- return a({
557
- toggleAccordion: n
558
- }), (u, r) => (s(), o("div", {
559
- class: v(["rounded border border-gray-200 group overflow-hidden", {
560
- "hover:shadow-normal": !e.isDisabled && !e.isTransparent,
561
- "border-none !p-0": e.isTransparent
562
- }])
563
- }, [
564
- t("div", {
565
- class: v(["flex gap-4 items-stretch", {
566
- "border-b": i.value,
567
- "pl-5": e.isNoToggleForced
568
- }])
569
- }, [
570
- e.isNoToggleForced ? d("", !0) : (s(), o("div", {
571
- key: 0,
572
- class: "flex items-center p-3 border-r bg-gray-50 cursor-pointer",
573
- onClick: n
574
- }, [
575
- b(c($), {
576
- name: i.value ? "chevron-up" : "chevron-down",
577
- width: "20",
578
- height: "20",
579
- class: "text-oc-text-400"
580
- }, null, 8, ["name"])
581
- ])),
582
- t("div", st, [
583
- p(u.$slots, "logo"),
584
- t("div", nt, [
585
- t("div", ot, [
586
- t("div", it, [
587
- e.title ? (s(), o("span", lt, g(e.title), 1)) : d("", !0),
588
- e.chips.length ? (s(), o("div", at, [
589
- (s(!0), o(S, null, k(e.chips, (m, x) => (s(), h(c(M), {
590
- key: x,
591
- label: m.label,
592
- variant: m.variant,
593
- icon: m.icon,
594
- "icon-tooltip": m.iconTooltip,
595
- class: "font-medium shrink-0"
596
- }, null, 8, ["label", "variant", "icon", "icon-tooltip"]))), 128))
597
- ])) : d("", !0)
598
- ])
599
- ]),
600
- p(u.$slots, "default", {}, () => [
601
- e.description ? (s(), o("div", rt, [
602
- t("div", ct, g(e.description), 1)
603
- ])) : d("", !0)
604
- ])
605
- ]),
606
- p(u.$slots, "right", {
607
- isOpen: i.value,
608
- toggleAccordion: n
609
- }, () => [
610
- e.hasActions ? (s(), o("div", dt, [
611
- t("div", ut, [
612
- b(c($), {
613
- name: "pencil",
614
- class: "cursor-pointer text-oc-text-400 p-2",
615
- onClick: r[0] || (r[0] = (m) => u.$emit("edit"))
616
- }),
617
- r[2] || (r[2] = t("div", { class: "border-r border-gray-200" }, null, -1)),
618
- b(c($), {
619
- name: "bin",
620
- class: "cursor-pointer text-oc-error p-2",
621
- onClick: r[1] || (r[1] = (m) => u.$emit("delete"))
622
- })
623
- ]),
624
- e.isDraggable ? (s(), h(c($), {
625
- key: 0,
626
- name: "draggable",
627
- class: "cursor-grab text-oc-text-400",
628
- width: "24",
629
- height: "24"
630
- })) : d("", !0)
631
- ])) : d("", !0)
632
- ])
633
- ])
634
- ], 2),
635
- E(t("div", mt, [
636
- p(u.$slots, "content")
637
- ], 512), [
638
- [F, i.value]
639
- ])
640
- ], 2));
641
- }
642
- }), Vt = {
643
- __name: "OcListItem",
644
- props: {
645
- isActive: Boolean,
646
- title: String,
647
- description: String,
648
- descriptionIcon: String,
649
- icon: String,
650
- iconClass: String,
651
- iconText: String,
652
- date: String,
653
- type: {
654
- type: String,
655
- default: "timeLine"
656
- },
657
- urls: {
658
- type: Array,
659
- default: () => []
660
- },
661
- paymentMethods: {
662
- type: Array,
663
- default: () => []
664
- },
665
- chips: {
666
- type: Array,
667
- default: () => []
668
- },
669
- details: {
670
- type: Array,
671
- default: () => []
672
- },
673
- isDisabled: Boolean,
674
- isTransparent: Boolean,
675
- isDraggable: Boolean
676
- },
677
- emits: ["more", "edit", "delete", "click:item"],
678
- setup(e) {
679
- const a = e, f = A(() => {
680
- switch (a.type) {
681
- case "timeLine":
682
- return z;
683
- case "webhook":
684
- return ae;
685
- case "payment":
686
- return Se;
687
- case "general":
688
- return Le;
689
- case "terminal":
690
- return Ye;
691
- case "logo":
692
- return ue;
693
- case "page":
694
- return tt;
695
- case "accordion":
696
- return gt;
697
- default:
698
- return z;
699
- }
700
- });
701
- return (l, i) => (s(), h(U(f.value), O(a, {
702
- class: { "opacity-50": e.isDisabled },
703
- onMore: i[0] || (i[0] = (n) => l.$emit("more")),
704
- onEdit: i[1] || (i[1] = (n) => l.$emit("edit")),
705
- onDelete: i[2] || (i[2] = (n) => l.$emit("delete")),
706
- onClick: i[3] || (i[3] = (n) => l.$emit("click:item"))
707
- }), W({ _: 2 }, [
708
- k(l.$slots, (n, u) => ({
709
- name: u,
710
- fn: w((r) => [
711
- p(l.$slots, u, Y(H(r)))
712
- ])
713
- }))
714
- ]), 1040, ["class"]));
715
- }
716
- }, pt = { class: "flex gap-x-3 text-sm items-center group/url" }, ft = { class: "text-oc-text-400 font-medium shrink-0" }, xt = { class: "break-all" }, vt = /* @__PURE__ */ T({
717
- __name: "OcListUrl",
718
- props: {
719
- title: String,
720
- url: String,
721
- isCopy: {
722
- type: Boolean,
723
- default: !0
724
- }
725
- },
726
- setup(e) {
727
- return (a, f) => (s(), o("div", pt, [
728
- t("span", ft, g(e.title) + ":", 1),
729
- t("span", xt, g(e.url), 1),
730
- e.isCopy ? (s(), h(c(J), {
731
- key: 0,
732
- value: e.url
733
- }, {
734
- default: w(({ isShow: l }) => [
735
- b(c($), {
736
- width: "14",
737
- height: "14",
738
- class: v(["cursor-pointer transition-all duration-500 group-hover/url:opacity-100", l ? "opacity-100" : "md:opacity-0"]),
739
- name: "copy"
740
- }, null, 8, ["class"])
741
- ]),
742
- _: 1
743
- }, 8, ["value"])) : d("", !0)
744
- ]));
745
- }
746
- });
747
- export {
748
- Vt as _,
749
- vt as a
750
- };