@orchidui/core 0.0.1 → 0.3.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,35 @@
1
+ import { computed as s, openBlock as c, createBlock as m, unref as d, withCtx as i, renderSlot as p } from "vue";
2
+ import { VueDraggableNext as g } from "vue-draggable-next";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ const V = {
5
+ __name: "OcDraggable",
6
+ props: {
7
+ modelValue: Array
8
+ },
9
+ emits: {
10
+ "update:modelValue": [],
11
+ detectMove: null
12
+ },
13
+ setup(a, { emit: l }) {
14
+ const r = a, o = l, t = s(() => r.modelValue), n = (e) => {
15
+ o("update:modelValue", t.value, e);
16
+ }, u = (e) => {
17
+ o("detectMove", e);
18
+ };
19
+ return (e, v) => (c(), m(d(g), {
20
+ handle: ".drag-el",
21
+ list: t.value,
22
+ animation: 500,
23
+ move: u,
24
+ onChange: n
25
+ }, {
26
+ default: i(() => [
27
+ p(e.$slots, "default", { list: t.value })
28
+ ]),
29
+ _: 3
30
+ }, 8, ["list"]));
31
+ }
32
+ };
33
+ export {
34
+ V as _
35
+ };
@@ -0,0 +1,57 @@
1
+ import { computed as l, openBlock as o, createElementBlock as n, normalizeClass as m, createElementVNode as e, createBlock as d, unref as u, mergeProps as x, createCommentVNode as s, toDisplayString as i, renderSlot as p } from "vue";
2
+ import "dayjs";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as f } 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 g = { class: "flex items-center gap-x-3 p-3" }, v = { class: "md:text-base text-sm" }, b = {
14
+ key: 0,
15
+ class: "p-3 text-sm text-oc-text-300"
16
+ }, O = {
17
+ __name: "OcDropdownItem",
18
+ props: {
19
+ variant: {
20
+ type: String,
21
+ default: "default"
22
+ },
23
+ icon: String,
24
+ iconClasses: String,
25
+ text: String,
26
+ subText: String,
27
+ pointed: Boolean,
28
+ iconProps: Object
29
+ },
30
+ setup(t) {
31
+ const a = l(() => ({
32
+ default: "text-oc-text",
33
+ destructive: "text-oc-error"
34
+ }));
35
+ return (c, r) => (o(), n("div", {
36
+ class: m(["flex flex-col cursor-pointer rounded-sm hover:bg-oc-accent-1-50", a.value[t.variant]])
37
+ }, [
38
+ e("div", g, [
39
+ t.icon ? (o(), d(u(f), x({
40
+ key: 0,
41
+ class: "w-5 h-5",
42
+ name: t.icon
43
+ }, t.iconProps, { class: t.iconClasses }), null, 16, ["name", "class"])) : s("", !0),
44
+ e("span", v, i(t.text), 1),
45
+ t.pointed ? p(c.$slots, "badge", { key: 1 }, () => [
46
+ r[0] || (r[0] = e("div", { class: "w-[6px] aspect-square rounded-full bg-oc-error" }, null, -1))
47
+ ]) : s("", !0)
48
+ ]),
49
+ t.subText ? (o(), n("div", b, [
50
+ e("span", null, i(t.subText), 1)
51
+ ])) : s("", !0)
52
+ ], 2));
53
+ }
54
+ };
55
+ export {
56
+ O as _
57
+ };
@@ -0,0 +1,157 @@
1
+ import { ref as m, computed as p, openBlock as s, createElementBlock as l, createVNode as f, unref as c, withCtx as v, createElementVNode as n, Fragment as T, renderList as V, normalizeClass as k, createTextVNode as C, createBlock as N, createCommentVNode as z } from "vue";
2
+ import "dayjs";
3
+ import { D as U, B as b } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ /* empty css */
6
+ import { _ as P } from "./OcInput-tcRxG3Y2.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
+ import { EMOJI_LIST as r, EMOJI_CATEGORIES as A } from "./Form/EmojiPicker/conts/emoji.js";
15
+ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, G = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {
16
+ key: 1,
17
+ class: "text-oc-text-400 text-center p-3"
18
+ }, Y = { class: "border-t border-b py-3 grid grid-cols-9 gap-3" }, Z = ["innerHTML", "onClick"], ee = { class: "grid grid-cols-2 gap-5 mt-6" }, te = {
19
+ __name: "OcEmojiPicker",
20
+ props: {
21
+ modelValue: {
22
+ type: String,
23
+ default: ""
24
+ },
25
+ isDisabled: Boolean,
26
+ popperOptions: Object
27
+ },
28
+ emits: {
29
+ "update:modelValue": []
30
+ },
31
+ setup(a, { emit: E }) {
32
+ const g = a, L = E, d = m(!1), u = m(""), i = m(g.modelValue), h = m("grinning"), w = p(() => g.modelValue || r.sunglasses), O = p(
33
+ () => i.value ? r[i.value] : r.sunglasses
34
+ ), _ = p(
35
+ () => Object.entries(r).filter(([t]) => t.includes(u.value))
36
+ ), y = p(() => Object.entries(A)), M = (t) => {
37
+ i.value = t;
38
+ }, j = () => {
39
+ d.value = !1, L("update:modelValue", r[i.value]);
40
+ }, B = () => {
41
+ d.value = !1, i.value = g.modelValue;
42
+ }, I = () => {
43
+ const t = Object.keys(r), e = Math.round(Math.random() * t.length);
44
+ i.value = t[e], j();
45
+ }, H = (t) => {
46
+ t && (u.value = "");
47
+ }, D = (t) => {
48
+ const e = document.getElementById(`emoji-${t}`).offsetTop;
49
+ document.getElementById("emojiList").scroll({ top: e, behavior: "smooth" }), h.value = t;
50
+ }, S = (t) => {
51
+ y.value.forEach(([e]) => {
52
+ const o = document.getElementById(`emoji-${e}`).offsetTop;
53
+ t.target.scrollTop >= o - 20 && (h.value = e);
54
+ });
55
+ };
56
+ return (t, e) => (s(), l("div", F, [
57
+ f(c(U), {
58
+ modelValue: d.value,
59
+ "onUpdate:modelValue": [
60
+ e[1] || (e[1] = (o) => d.value = o),
61
+ H
62
+ ],
63
+ "max-menu-height": 600,
64
+ class: "!w-auto z-50",
65
+ "popper-options": {
66
+ ...a.popperOptions
67
+ },
68
+ distance: 26,
69
+ "is-disabled": a.isDisabled,
70
+ placement: "bottom"
71
+ }, {
72
+ menu: v(() => [
73
+ e[4] || (e[4] = n("div", {
74
+ class: "oc-arrow",
75
+ "data-popper-arrow": ""
76
+ }, null, -1)),
77
+ n("div", R, [
78
+ n("div", q, [
79
+ n("div", {
80
+ innerHTML: O.value,
81
+ class: "flex items-center justify-center w-10 h-10 text-[40px]"
82
+ }, null, 8, K)
83
+ ]),
84
+ n("div", Q, [
85
+ f(c(P), {
86
+ modelValue: u.value,
87
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => u.value = o),
88
+ placeholder: "Search",
89
+ icon: "search"
90
+ }, null, 8, ["modelValue"])
91
+ ]),
92
+ _.value.length ? (s(), l("div", {
93
+ key: 0,
94
+ id: "emojiList",
95
+ class: "grid grid-cols-9 gap-3 max-h-[204px] overflow-y-auto overflow-x-hidden mt-3 mb-5 relative",
96
+ onScroll: S
97
+ }, [
98
+ (s(!0), l(T, null, V(_.value, ([o, x]) => (s(), l("div", {
99
+ id: `emoji-${o}`,
100
+ key: o,
101
+ innerHTML: x,
102
+ class: "w-8 h-8 text-[24px] flex items-center justify-center cursor-pointer transition hover:bg-oc-gray-100 rounded",
103
+ onClick: ($) => M(o)
104
+ }, null, 8, W))), 128))
105
+ ], 32)) : (s(), l("div", X, "No emoji found")),
106
+ n("div", Y, [
107
+ (s(!0), l(T, null, V(y.value, ([o, x]) => (s(), l("div", {
108
+ key: o,
109
+ innerHTML: x,
110
+ class: k(["w-8 h-8 text-[24px] flex items-center justify-center cursor-pointer transition opacity-30 hover:opacity-100", {
111
+ "!opacity-100": o === h.value
112
+ }]),
113
+ onClick: ($) => D(o)
114
+ }, null, 10, Z))), 128))
115
+ ]),
116
+ n("div", ee, [
117
+ f(c(b), {
118
+ variant: "secondary",
119
+ onClick: B
120
+ }, {
121
+ default: v(() => e[2] || (e[2] = [
122
+ C("Cancel")
123
+ ])),
124
+ _: 1
125
+ }),
126
+ f(c(b), { onClick: j }, {
127
+ default: v(() => e[3] || (e[3] = [
128
+ C("Use this emoji")
129
+ ])),
130
+ _: 1
131
+ })
132
+ ])
133
+ ])
134
+ ]),
135
+ default: v(() => [
136
+ n("div", {
137
+ innerHTML: w.value,
138
+ class: k(["flex items-center justify-center w-12 h-12 text-[40px] transition rounded", {
139
+ "cursor-pointer hover:bg-oc-gray-200": !a.isDisabled
140
+ }])
141
+ }, null, 10, G)
142
+ ]),
143
+ _: 1
144
+ }, 8, ["modelValue", "popper-options", "is-disabled"]),
145
+ a.isDisabled ? z("", !0) : (s(), N(c(b), {
146
+ key: 0,
147
+ "left-icon": "shuffle",
148
+ variant: "secondary",
149
+ class: "absolute top-5 right-5",
150
+ onClick: I
151
+ }))
152
+ ]));
153
+ }
154
+ }, ge = /* @__PURE__ */ J(te, [["__scopeId", "data-v-6a3c86cb"]]);
155
+ export {
156
+ ge as O
157
+ };
@@ -0,0 +1,155 @@
1
+ import { computed as g, openBlock as n, createElementBlock as m, normalizeClass as i, createElementVNode as a, createVNode as f, unref as l, createBlock as s, createCommentVNode as r, toDisplayString as d, renderSlot as x } from "vue";
2
+ import "dayjs";
3
+ import { B as y } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as u } 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 z = { class: "relative" }, E = {
14
+ __name: "OcEmptyPage",
15
+ props: {
16
+ isButton: {
17
+ type: Boolean,
18
+ default: !0
19
+ },
20
+ title: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ description: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ isUpgrade: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ containerClass: {
33
+ type: [Array, String],
34
+ required: !1
35
+ },
36
+ upgradeLabel: {
37
+ type: String,
38
+ default: "Upgrade now"
39
+ },
40
+ addButtonLabel: {
41
+ type: String,
42
+ default: "Add new"
43
+ },
44
+ addButtonIcon: {
45
+ type: String,
46
+ default: "plus"
47
+ },
48
+ icon: {
49
+ type: String,
50
+ default: "document"
51
+ },
52
+ size: {
53
+ type: String,
54
+ validator: (e) => ["large", "default", "small"].includes(e),
55
+ default: "default"
56
+ },
57
+ hideBadge: {
58
+ type: Boolean,
59
+ default: !1
60
+ }
61
+ },
62
+ emits: "click:Button",
63
+ setup(e) {
64
+ const t = g(() => ({
65
+ default: {
66
+ icon: {
67
+ container: "w-[64px]",
68
+ size: "32"
69
+ },
70
+ badge: {
71
+ class: "right-0 top-[2px]",
72
+ size: "20"
73
+ },
74
+ containerInfo: "gap-y-3",
75
+ box: "gap-y-7",
76
+ title: "text-lg",
77
+ description: ""
78
+ },
79
+ large: {
80
+ icon: {
81
+ container: "w-[128px]",
82
+ size: "64"
83
+ },
84
+ badge: {
85
+ class: "right-0 top-[2px]",
86
+ size: "32"
87
+ },
88
+ containerInfo: "gap-y-3",
89
+ box: "gap-y-7",
90
+ title: "text-lg",
91
+ description: ""
92
+ },
93
+ small: {
94
+ icon: {
95
+ container: "w-[48px]",
96
+ size: "24"
97
+ },
98
+ badge: {
99
+ class: "right-[-2px] top-[-2px]",
100
+ size: "20"
101
+ },
102
+ containerInfo: "gap-y-1",
103
+ box: "gap-y-5",
104
+ title: "text-[14px] font-medium",
105
+ description: "text-[12px]"
106
+ }
107
+ }));
108
+ return (o, c) => (n(), m("div", {
109
+ class: i(["flex flex-col items-center", t.value[e.size].box])
110
+ }, [
111
+ a("div", z, [
112
+ a("div", {
113
+ class: i(["flex justify-center border rounded-full items-center aspect-square", [
114
+ e.containerClass ? e.containerClass : e.isUpgrade ? "text-oc-warning-600 border-oc-warning-300 bg-oc-warning-50" : "text-oc-text-400 border-oc-gray-200 bg-oc-gray-50",
115
+ t.value[e.size].icon.container
116
+ ]])
117
+ }, [
118
+ f(l(u), {
119
+ name: e.icon,
120
+ width: t.value[e.size].icon.size,
121
+ height: t.value[e.size].icon.size
122
+ }, null, 8, ["name", "width", "height"])
123
+ ], 2),
124
+ !e.isUpgrade && !e.hideBadge ? (n(), s(l(u), {
125
+ key: 0,
126
+ name: "exclamation",
127
+ width: t.value[e.size].badge.size,
128
+ height: t.value[e.size].badge.size,
129
+ class: i(["absolute", t.value[e.size].badge.class])
130
+ }, null, 8, ["width", "height", "class"])) : r("", !0)
131
+ ]),
132
+ a("div", {
133
+ class: i(["flex flex-col items-center", t.value[e.size].containerInfo])
134
+ }, [
135
+ a("span", {
136
+ class: i([t.value[e.size].title, "font-medium"])
137
+ }, d(e.title), 3),
138
+ x(o.$slots, "description", {}, () => [
139
+ a("span", {
140
+ class: i([t.value[e.size].description, "text-oc-text-400 text-center"])
141
+ }, d(e.description), 3)
142
+ ])
143
+ ], 2),
144
+ e.isButton ? (n(), s(l(y), {
145
+ key: 0,
146
+ label: e.isUpgrade ? e.upgradeLabel : e.addButtonLabel,
147
+ "left-icon": e.isUpgrade ? "" : e.addButtonIcon,
148
+ onClick: c[0] || (c[0] = (b) => o.$emit("click:Button"))
149
+ }, null, 8, ["label", "left-icon"])) : r("", !0)
150
+ ], 2));
151
+ }
152
+ };
153
+ export {
154
+ E as _
155
+ };