@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,186 @@
1
+ import { openBlock as i, createElementBlock as s, toDisplayString as l, createCommentVNode as r, createElementVNode as t, normalizeClass as c, Fragment as h, renderList as k, createBlock as g, unref as o, createSlots as u, withCtx as m, renderSlot as f, createVNode as d, createTextVNode as S } from "vue";
2
+ import "dayjs";
3
+ import { T as x } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as $ } from "./OcOverviewIcon-D702Ujka.js";
5
+ import { _ as p } from "./OcIcon-CJgBICxh.js";
6
+ import { S as w } from "./OcSkeleton-BdPTmGh0.js";
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
+ /* empty css */
15
+ const B = { class: "flex gap-y-3 flex-col text-lg font-medium" }, b = { key: 0 }, Z = {
16
+ __name: "OcOverview",
17
+ props: {
18
+ title: String,
19
+ containerClass: String,
20
+ items: Array,
21
+ isLoading: Boolean
22
+ },
23
+ setup(e) {
24
+ return (a, y) => (i(), s("div", B, [
25
+ e.title ? (i(), s("span", b, l(e.title), 1)) : r("", !0),
26
+ t("div", {
27
+ class: c(["flex gap-x-5 items-start md:flex-row flex-col gap-y-3 md:gap-y-0", e.containerClass])
28
+ }, [
29
+ (i(!0), s(h, null, k(e.items, (n, v) => (i(), g(o(D), {
30
+ key: v,
31
+ title: n.title,
32
+ class: c(["flex-1", n.class]),
33
+ variant: n.variant,
34
+ tooltip: n.tooltip,
35
+ icon: n.icon,
36
+ "is-loading": e.isLoading,
37
+ content: n.content,
38
+ info: n.info,
39
+ "icon-height": n.iconHeight,
40
+ "icon-width": n.iconWidth
41
+ }, u({ _: 2 }, [
42
+ n.isWarning ? {
43
+ name: "warning",
44
+ fn: m(() => [
45
+ f(a.$slots, "warning")
46
+ ]),
47
+ key: "0"
48
+ } : void 0
49
+ ]), 1032, ["title", "class", "variant", "tooltip", "icon", "is-loading", "content", "info", "icon-height", "icon-width"]))), 128))
50
+ ], 2)
51
+ ]));
52
+ }
53
+ }, V = {
54
+ key: 0,
55
+ class: "flex flex-col gap-y-3 min-w-[132px]"
56
+ }, T = { class: "flex flex-col gap-y-px font-medium overflow-hidden" }, C = { class: "flex whitespace-nowrap items-start gap-x-3 text-xs text-oc-text-300" }, N = { class: "uppercase" }, L = { class: "px-3 bg-white text-center w-[175px] rounded py-2 text-oc-text-400 whitespace-break-spaces font-medium" }, O = { class: "flex items-center gap-x-2 overflow-hidden" }, W = {
57
+ key: 0,
58
+ class: "flex items-center gap-x-3 overflow-hidden"
59
+ }, H = { class: "truncate" }, E = { class: "flex items-center gap-x-1" }, z = { class: "text-oc-text-400 text-sm font-medium cursor-default" }, A = { class: "px-3 bg-white text-center w-[175px] rounded py-2 text-oc-text-400 whitespace-break-spaces font-medium text-sm" }, D = {
60
+ __name: "OcOverviewItem",
61
+ props: {
62
+ icon: String,
63
+ variant: String,
64
+ title: String,
65
+ tooltip: String,
66
+ percentTooltip: String,
67
+ content: String,
68
+ info: Boolean,
69
+ isBig: Boolean,
70
+ isTransparent: Boolean,
71
+ isCard: Boolean,
72
+ isLoading: Boolean,
73
+ percentValue: Number,
74
+ iconWidth: {
75
+ type: String,
76
+ default: "22"
77
+ },
78
+ iconHeight: {
79
+ type: String,
80
+ default: "22"
81
+ }
82
+ },
83
+ setup(e) {
84
+ return (a, y) => (i(), s("div", {
85
+ class: c([e.isTransparent ? "p-3" : "border p-4 bg-oc-bg-light border-oc-gray-200 ", "flex flex-col gap-y-4 md:overflow-hidden w-full md:w-auto rounded"])
86
+ }, [
87
+ e.isLoading ? (i(), s("div", V, [
88
+ d(o(w), { class: "w-[80%] h-[14px] rounded-sm" }),
89
+ d(o(w), { class: "w-full h-[20px] rounded-sm" })
90
+ ])) : (i(), s(h, { key: 1 }, [
91
+ t("div", {
92
+ class: c(["flex items-center", e.isBig ? "gap-x-[.75rem]" : "gap-x-3"])
93
+ }, [
94
+ e.icon ? (i(), g(o($), {
95
+ key: 0,
96
+ icon: e.icon,
97
+ variant: e.variant,
98
+ height: e.iconHeight,
99
+ width: e.iconWidth
100
+ }, null, 8, ["icon", "variant", "height", "width"])) : r("", !0),
101
+ t("div", T, [
102
+ t("div", C, [
103
+ f(a.$slots, "title", {}, () => [
104
+ t("span", N, l(e.title), 1)
105
+ ]),
106
+ d(o(x), {
107
+ position: "top",
108
+ "popper-options": { strategy: "fixed" },
109
+ "popper-class": "rounded-sm"
110
+ }, u({
111
+ default: m(() => [
112
+ e.info ? (i(), g(o(p), {
113
+ key: 0,
114
+ width: "16",
115
+ height: "16",
116
+ class: "text-oc-text-400",
117
+ name: "information"
118
+ })) : r("", !0)
119
+ ]),
120
+ _: 2
121
+ }, [
122
+ e.tooltip ? {
123
+ name: "popper",
124
+ fn: m(() => [
125
+ t("div", L, l(e.tooltip), 1)
126
+ ]),
127
+ key: "0"
128
+ } : void 0
129
+ ]), 1024)
130
+ ]),
131
+ t("div", O, [
132
+ e.isCard ? (i(), g(o(p), {
133
+ key: 0,
134
+ width: "35",
135
+ name: "payment-methods/visa"
136
+ })) : r("", !0),
137
+ t("span", {
138
+ class: c([e.isBig ? "text-xl" : "", "truncate"])
139
+ }, [
140
+ f(a.$slots, "content", {}, () => [
141
+ isNaN(e.percentValue) ? (i(), s(h, { key: 1 }, [
142
+ S(l(e.content), 1)
143
+ ], 64)) : (i(), s("div", W, [
144
+ t("div", H, l(e.content), 1),
145
+ d(o(x), {
146
+ position: "top",
147
+ "popper-class": "rounded-sm",
148
+ "popper-options": { strategy: "fixed" }
149
+ }, u({
150
+ default: m(() => [
151
+ t("div", E, [
152
+ d(o(p), {
153
+ name: e.percentValue >= 0 ? "triangle-up" : "triangle-down",
154
+ class: c(e.percentValue >= 0 ? "text-oc-success-500" : "text-oc-error-500"),
155
+ width: "10",
156
+ height: "9"
157
+ }, null, 8, ["name", "class"]),
158
+ t("span", z, l(e.percentValue === 0 ? "-" : `${Math.abs(e.percentValue)}%`), 1)
159
+ ])
160
+ ]),
161
+ _: 2
162
+ }, [
163
+ e.percentTooltip ? {
164
+ name: "popper",
165
+ fn: m(() => [
166
+ t("div", A, l(e.percentTooltip), 1)
167
+ ]),
168
+ key: "0"
169
+ } : void 0
170
+ ]), 1024)
171
+ ]))
172
+ ])
173
+ ], 2)
174
+ ]),
175
+ a.$slots.transfer ? f(a.$slots, "transfer", { key: 0 }) : r("", !0)
176
+ ])
177
+ ], 2),
178
+ a.$slots.warning ? f(a.$slots, "warning", { key: 0 }) : r("", !0)
179
+ ], 64))
180
+ ], 2));
181
+ }
182
+ };
183
+ export {
184
+ Z as _,
185
+ D as a
186
+ };
@@ -0,0 +1,243 @@
1
+ import { defineComponent as V, ref as k, openBlock as o, createElementBlock as u, createElementVNode as m, toDisplayString as b, createBlock as r, unref as e, mergeProps as d, withCtx as i, createVNode as l, withModifiers as j, createCommentVNode as n, Fragment as v, renderList as w, renderSlot as f, normalizeClass as z, createSlots as S } from "vue";
2
+ import { a as T } from "./OcPrimaryActions-D5IprKsQ.js";
3
+ import "dayjs";
4
+ import { B, D as O, T as M } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
5
+ import { _ as g } from "./OcIcon-CJgBICxh.js";
6
+ import { _ as D } from "./OcChip-B1hm2Qni.js";
7
+ /* empty css */
8
+ import "libphonenumber-js";
9
+ /* empty css */
10
+ import "v-calendar";
11
+ /* empty css */
12
+ import "./Cropper.js";
13
+ import "vue-draggable-next";
14
+ import { _ as x } from "./OcDropdownItem-DAElmzEu.js";
15
+ import "@popperjs/core";
16
+ import { _ as N } from "./OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js";
17
+ import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ import { useWindowWidth as I } from "./composables/useWindowWidth.js";
19
+ const R = { class: "flex flex-col gap-y-3" }, U = { class: "flex items-center justify-between gap-x-3" }, W = { class: "text-xl leading-[24px] font-medium" }, q = {
20
+ key: 0,
21
+ class: "flex gap-x-6 text-sm text-oc-text-400 py-4 whitespace-nowrap items-center"
22
+ }, F = { class: "overflow-hidden text-ellipsis" }, L = /* @__PURE__ */ V({
23
+ __name: "OcMobilePageTitle",
24
+ props: {
25
+ title: { type: String },
26
+ description: { type: String },
27
+ primaryButtonProps: Object,
28
+ chipProps: Object,
29
+ secondaryButtonProps: Object
30
+ },
31
+ setup(t) {
32
+ const s = k(!1);
33
+ return (c, a) => (o(), u("div", R, [
34
+ m("div", U, [
35
+ m("span", W, b(t.title), 1),
36
+ t.primaryButtonProps || t.secondaryButtonProps ? (o(), r(e(B), d({
37
+ key: 0,
38
+ size: "small"
39
+ }, t.primaryButtonProps, { "is-additional-area": "" }), {
40
+ "additional-content": i(() => [
41
+ l(e(O), {
42
+ modelValue: s.value,
43
+ "onUpdate:modelValue": a[0] || (a[0] = (p) => s.value = p),
44
+ onClick: a[1] || (a[1] = j(() => {
45
+ }, ["stop"]))
46
+ }, {
47
+ menu: i(() => {
48
+ var p, h;
49
+ return [
50
+ t.secondaryButtonProps ? (o(), r(e(x), {
51
+ key: 0,
52
+ text: (p = t.secondaryButtonProps) == null ? void 0 : p.label,
53
+ icon: (h = t.secondaryButtonProps) == null ? void 0 : h.leftIcon
54
+ }, null, 8, ["text", "icon"])) : n("", !0),
55
+ t.secondaryButtonProps && t.secondaryButtonProps.dropdownOptions ? (o(!0), u(v, { key: 1 }, w(t.secondaryButtonProps.dropdownOptions, (y) => (o(), r(e(x), d({
56
+ key: y.text,
57
+ ref_for: !0
58
+ }, y), null, 16))), 128)) : n("", !0)
59
+ ];
60
+ }),
61
+ default: i(() => [
62
+ l(e(g), {
63
+ width: "16",
64
+ height: "16",
65
+ class: "mx-auto",
66
+ name: "chevron-down"
67
+ })
68
+ ]),
69
+ _: 1
70
+ }, 8, ["modelValue"])
71
+ ]),
72
+ _: 1
73
+ }, 16)) : n("", !0)
74
+ ]),
75
+ t.description ? (o(), u("div", q, [
76
+ m("span", F, b(t.description), 1),
77
+ l(e(N), {
78
+ class: "shrink-0",
79
+ value: t.description
80
+ }, {
81
+ default: i(() => [
82
+ l(e(g), {
83
+ width: "16",
84
+ height: "16",
85
+ class: "cursor-pointer",
86
+ name: "copy"
87
+ })
88
+ ]),
89
+ _: 1
90
+ }, 8, ["value"])
91
+ ])) : n("", !0),
92
+ f(c.$slots, "mobile-amount"),
93
+ t.chipProps ? (o(), r(e(D), d({ key: 1 }, t.chipProps, { class: "self-start" }), null, 16)) : n("", !0)
94
+ ]));
95
+ }
96
+ }), A = { class: "md:pb-5 pb-4 flex flex-col" }, G = { class: "flex flex-col gap-y-3 pt-4 md:pt-5 px-5 md:px-10" }, ft = {
97
+ __name: "OcPageTitle",
98
+ props: {
99
+ title: { type: String, required: !0 },
100
+ description: { type: String, default: "" },
101
+ titleClass: { type: String, default: "" },
102
+ copyValue: { type: String, default: "" },
103
+ primaryButtonProps: Object,
104
+ secondaryButtonProps: Object,
105
+ tooltipOptions: Object,
106
+ chipProps: Object,
107
+ isCopy: Boolean,
108
+ isBack: { type: Boolean, default: !1 },
109
+ isMobileCombineButtons: { type: Boolean, default: !1 }
110
+ },
111
+ emits: {
112
+ changeTab: [],
113
+ back: []
114
+ },
115
+ setup(t) {
116
+ return (s, c) => (o(), u("div", A, [
117
+ m("div", G, [
118
+ t.isBack ? (o(), r(e(B), {
119
+ key: 0,
120
+ size: "small",
121
+ "icon-class": "rotate-90",
122
+ variant: "secondary",
123
+ "is-transparent": "",
124
+ label: "Back",
125
+ "left-icon": "chevron-down",
126
+ class: "self-start",
127
+ onClick: c[0] || (c[0] = (a) => s.$emit("back"))
128
+ })) : n("", !0),
129
+ m("div", {
130
+ class: z(["w-full gap-5", [t.isMobileCombineButtons ? "hidden md:flex" : "flex", t.titleClass]])
131
+ }, [
132
+ l(T, {
133
+ title: t.title,
134
+ description: t.description,
135
+ "chip-props": t.chipProps,
136
+ "copy-value": t.copyValue,
137
+ "tooltip-options": t.tooltipOptions,
138
+ "is-copy": t.isCopy,
139
+ class: "flex-1"
140
+ }, S({ _: 2 }, [
141
+ s.$slots.title ? {
142
+ name: "title",
143
+ fn: i(() => [
144
+ f(s.$slots, "title")
145
+ ]),
146
+ key: "0"
147
+ } : void 0,
148
+ s.$slots.description ? {
149
+ name: "description",
150
+ fn: i(() => [
151
+ f(s.$slots, "description")
152
+ ]),
153
+ key: "1"
154
+ } : void 0
155
+ ]), 1032, ["title", "description", "chip-props", "copy-value", "tooltip-options", "is-copy"]),
156
+ f(s.$slots, "right", {}, () => [
157
+ l(e(X), {
158
+ class: "shrink-0",
159
+ "primary-button-props": t.primaryButtonProps,
160
+ "secondary-button-props": t.secondaryButtonProps
161
+ }, null, 8, ["primary-button-props", "secondary-button-props"])
162
+ ])
163
+ ], 2),
164
+ t.isMobileCombineButtons ? (o(), r(L, {
165
+ key: 1,
166
+ "secondary-button-props": t.secondaryButtonProps,
167
+ "primary-button-props": t.primaryButtonProps,
168
+ description: t.description,
169
+ "chip-props": t.chipProps,
170
+ title: t.title,
171
+ class: "md:hidden"
172
+ }, {
173
+ "mobile-amount": i(() => [
174
+ f(s.$slots, "mobile-amount")
175
+ ]),
176
+ _: 3
177
+ }, 8, ["secondary-button-props", "primary-button-props", "description", "chip-props", "title"])) : n("", !0)
178
+ ])
179
+ ]));
180
+ }
181
+ }, H = { class: "flex gap-x-3 items-center" }, J = {
182
+ key: 0,
183
+ class: "p-2"
184
+ }, K = { class: "px-3 py-[5px] whitespace-nowrap font-medium text-sm text-oc-text-400 flex gap-x-3 items-center" }, Q = {
185
+ __name: "OcPageTitleRight",
186
+ props: {
187
+ primaryButtonProps: Object,
188
+ secondaryButtonProps: Object
189
+ },
190
+ setup(t) {
191
+ var p;
192
+ const c = k(((p = t.secondaryButtonProps) == null ? void 0 : p.isDropdownOpened) ?? !1), { isMobile: a } = I();
193
+ return (h, y) => (o(), u("div", H, [
194
+ t.secondaryButtonProps ? (o(), r(e(O), {
195
+ key: 0,
196
+ modelValue: c.value,
197
+ "onUpdate:modelValue": y[0] || (y[0] = (P) => c.value = P),
198
+ distance: 10
199
+ }, {
200
+ menu: i(() => {
201
+ var P;
202
+ return [
203
+ (P = t.secondaryButtonProps) != null && P.dropdownOptions ? (o(), u("div", J, [
204
+ (o(!0), u(v, null, w(t.secondaryButtonProps.dropdownOptions, ($, C) => (o(), r(e(x), d({
205
+ key: C,
206
+ ref_for: !0
207
+ }, $), null, 16))), 128))
208
+ ])) : n("", !0)
209
+ ];
210
+ }),
211
+ default: i(() => [
212
+ l(e(B), d({
213
+ size: e(a) ? "small" : "default"
214
+ }, t.secondaryButtonProps), null, 16, ["size"])
215
+ ]),
216
+ _: 1
217
+ }, 8, ["modelValue"])) : n("", !0),
218
+ t.primaryButtonProps && t.primaryButtonProps.tooltip ? (o(), r(e(M), {
219
+ key: 1,
220
+ position: "top",
221
+ distance: 4,
222
+ "arrow-hidden": ""
223
+ }, {
224
+ popper: i(() => [
225
+ m("div", K, b(t.primaryButtonProps.tooltip), 1)
226
+ ]),
227
+ default: i(() => [
228
+ l(e(B), d({
229
+ size: e(a) ? "small" : "default"
230
+ }, t.primaryButtonProps), null, 16, ["size"])
231
+ ]),
232
+ _: 1
233
+ })) : t.primaryButtonProps ? (o(), r(e(B), d({
234
+ key: 2,
235
+ size: e(a) ? "small" : "default"
236
+ }, t.primaryButtonProps), null, 16, ["size"])) : n("", !0)
237
+ ]));
238
+ }
239
+ }, X = /* @__PURE__ */ E(Q, [["__scopeId", "data-v-a7abfe33"]]);
240
+ export {
241
+ X as P,
242
+ ft as _
243
+ };
@@ -0,0 +1,172 @@
1
+ import { computed as g, openBlock as d, createElementBlock as s, createElementVNode as u, createVNode as r, unref as n, Fragment as h, renderList as z, createBlock as y, withCtx as v, createTextVNode as c, toDisplayString as x, normalizeClass as f, renderSlot as N } from "vue";
2
+ import "dayjs";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as P } from "./OcIcon-CJgBICxh.js";
5
+ /* empty css */
6
+ import "libphonenumber-js";
7
+ /* empty css */
8
+ import "v-calendar";
9
+ /* empty css */
10
+ import "./Cropper.js";
11
+ import "vue-draggable-next";
12
+ import "@popperjs/core";
13
+ const $ = { class: "w-full items-center flex relative" }, w = { class: "flex items-center gap-x-6" }, k = { class: "hidden md:flex items-center gap-x-3" }, B = { class: "md:hidden mx-[30px]" }, T = {
14
+ __name: "OcPagination",
15
+ props: {
16
+ maxPage: {
17
+ type: [String, Number],
18
+ default: 1
19
+ },
20
+ totalVisible: {
21
+ type: [String, Number],
22
+ default: 1,
23
+ validator: (e) => Number(e)
24
+ },
25
+ modelValue: {
26
+ type: [String, Number],
27
+ default: 1
28
+ },
29
+ isRounded: Boolean,
30
+ size: String
31
+ },
32
+ emits: {
33
+ "update:modelValue": []
34
+ },
35
+ setup(e) {
36
+ const a = e, m = g(() => {
37
+ let t = Number(a.totalVisible);
38
+ if (t <= 3 && a.maxPage > t && (t = 3), a.maxPage <= t)
39
+ return Array.from({ length: a.maxPage }, (l, i) => 1 + i);
40
+ if (a.modelValue <= t - 1)
41
+ return [
42
+ ...Array.from({ length: Math.min(t - 1, a.maxPage) }, (l, i) => i + 1),
43
+ "...",
44
+ a.maxPage
45
+ ];
46
+ if (a.modelValue >= a.maxPage - (t - 2))
47
+ return [
48
+ 1,
49
+ "...",
50
+ ...Array.from(
51
+ { length: t - 1 },
52
+ (l, i) => a.maxPage - (t - 2) + i
53
+ )
54
+ ];
55
+ const o = a.modelValue - Math.floor((t - 2) / 2);
56
+ return [
57
+ 1,
58
+ "...",
59
+ ...Array.from({ length: t - 2 }, (l, i) => o + i),
60
+ "...",
61
+ a.maxPage
62
+ ];
63
+ });
64
+ return (t, o) => (d(), s("div", $, [
65
+ u("div", w, [
66
+ r(n(V), {
67
+ disabled: e.modelValue <= 1,
68
+ size: e.size,
69
+ onClick: o[0] || (o[0] = (l) => e.modelValue > 1 ? t.$emit("update:modelValue", e.modelValue > 1 ? e.modelValue - 1 : e.modelValue) : "")
70
+ }, null, 8, ["disabled", "size"]),
71
+ u("div", k, [
72
+ (d(!0), s(h, null, z(m.value, (l) => (d(), y(n(b), {
73
+ key: l,
74
+ size: e.size,
75
+ "is-rounded": e.isRounded,
76
+ active: l === e.modelValue,
77
+ onClick: (i) => t.$emit("update:modelValue", l === "..." ? e.modelValue : l)
78
+ }, {
79
+ default: v(() => [
80
+ c(x(l), 1)
81
+ ]),
82
+ _: 2
83
+ }, 1032, ["size", "is-rounded", "active", "onClick"]))), 128))
84
+ ]),
85
+ u("div", B, [
86
+ r(n(b), {
87
+ size: e.size,
88
+ "is-rounded": e.isRounded,
89
+ active: !0
90
+ }, {
91
+ default: v(() => [
92
+ c(x(e.modelValue), 1)
93
+ ]),
94
+ _: 1
95
+ }, 8, ["size", "is-rounded"])
96
+ ]),
97
+ r(n(V), {
98
+ "is-next": "",
99
+ size: e.size,
100
+ disabled: e.modelValue >= e.maxPage,
101
+ onClick: o[1] || (o[1] = (l) => e.modelValue < e.maxPage ? t.$emit(
102
+ "update:modelValue",
103
+ e.modelValue < Number(e.maxPage) ? e.modelValue + 1 : Number(e.maxPage)
104
+ ) : "")
105
+ }, null, 8, ["size", "disabled"])
106
+ ])
107
+ ]));
108
+ }
109
+ }, V = {
110
+ __name: "OcPrevNext",
111
+ props: {
112
+ disabled: Boolean,
113
+ isNext: Boolean,
114
+ size: {
115
+ type: String,
116
+ default: "default"
117
+ }
118
+ },
119
+ setup(e) {
120
+ const a = g(() => ({
121
+ default: "px-1 py-3",
122
+ small: "py-2 text-sm",
123
+ big: "px-2 py-4 text-lg"
124
+ }));
125
+ return (m, t) => (d(), s("div", {
126
+ class: f(["flex text-oc-text-400 items-center gap-x-1", [
127
+ a.value[e.size],
128
+ e.disabled ? "cursor-not-allowed opacity-60" : "hover:text-oc-text cursor-pointer",
129
+ e.isNext ? "flex-row-reverse" : ""
130
+ ]])
131
+ }, [
132
+ r(n(P), {
133
+ width: "14",
134
+ height: "14",
135
+ class: f(e.isNext ? "-rotate-90" : "rotate-90"),
136
+ name: "chevron-down"
137
+ }, null, 8, ["class"]),
138
+ c(" " + x(e.isNext ? "Next" : "Prev"), 1)
139
+ ], 2));
140
+ }
141
+ }, b = {
142
+ __name: "OcPaginationNumber",
143
+ props: {
144
+ active: Boolean,
145
+ isRounded: Boolean,
146
+ size: {
147
+ type: String,
148
+ default: "default"
149
+ }
150
+ },
151
+ setup(e) {
152
+ const a = g(() => ({
153
+ default: "w-[36px] h-[36px]",
154
+ small: "w-[32px] text-sm h-[32px]",
155
+ big: "w-[40px] text-lg h-[40px]"
156
+ }));
157
+ return (m, t) => (d(), s("div", {
158
+ class: f(["flex items-center justify-center cursor-pointer py-3 px-1", [
159
+ a.value[e.size],
160
+ e.active ? "bg-oc-gray-100 text-oc-text" : "text-oc-text-400 hover:text-oc-text hover:bg-oc-gray-50",
161
+ e.isRounded ? "rounded-full" : "rounded-sm"
162
+ ]])
163
+ }, [
164
+ N(m.$slots, "default")
165
+ ], 2));
166
+ }
167
+ };
168
+ export {
169
+ T as _,
170
+ V as a,
171
+ b
172
+ };