@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,26 @@
1
+ import { defineComponent as n, openBlock as a, createElementBlock as r, normalizeClass as c, toDisplayString as i } from "vue";
2
+ const p = /* @__PURE__ */ n({
3
+ __name: "OcTag",
4
+ props: {
5
+ variant: {
6
+ type: String,
7
+ default: "warning"
8
+ },
9
+ label: {
10
+ type: String,
11
+ default: ""
12
+ }
13
+ },
14
+ setup(t) {
15
+ const e = {
16
+ warning: "bg-oc-warning-600 text-white",
17
+ "accent-2": "bg-oc-accent-2-500 text-white"
18
+ };
19
+ return (o, s) => (a(), r("div", {
20
+ class: c(["rounded-sm py-1 px-3 text-xs", e[t.variant]])
21
+ }, i(t.label), 3));
22
+ }
23
+ });
24
+ export {
25
+ p as _
26
+ };
@@ -0,0 +1,78 @@
1
+ import { ref as s, openBlock as d, createBlock as u, unref as m, withCtx as c, createElementVNode as p, normalizeClass as b } from "vue";
2
+ import "dayjs";
3
+ import { _ as g } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ /* empty css */
5
+ import "libphonenumber-js";
6
+ /* empty css */
7
+ import "v-calendar";
8
+ /* empty css */
9
+ import "./Cropper.js";
10
+ import "vue-draggable-next";
11
+ import "@popperjs/core";
12
+ const h = ["disabled", "value", "rows", "placeholder"], f = "18px", T = {
13
+ __name: "OcTextArea",
14
+ props: {
15
+ placeholder: String,
16
+ label: String,
17
+ errorMessage: String,
18
+ hint: String,
19
+ modelValue: String,
20
+ rows: Number,
21
+ autoResize: Boolean,
22
+ isDisabled: Boolean,
23
+ isRequired: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ labelIcon: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ tooltipText: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ tooltipOptions: {
36
+ type: Object,
37
+ default: () => ({})
38
+ }
39
+ },
40
+ emits: {
41
+ "update:modelValue": []
42
+ },
43
+ setup(e, { emit: r }) {
44
+ const i = r, o = s(!1), a = (l) => {
45
+ const t = l.target;
46
+ t && (t.style.height = f, t.style.height = t.scrollHeight + "px", i("update:modelValue", t.value));
47
+ };
48
+ return (l, t) => (d(), u(m(g), {
49
+ label: e.label,
50
+ "error-message": e.errorMessage,
51
+ hint: e.hint,
52
+ "is-required": e.isRequired,
53
+ "label-icon": e.labelIcon,
54
+ "tooltip-text": e.tooltipText,
55
+ "tooltip-options": e.tooltipOptions
56
+ }, {
57
+ default: c(() => [
58
+ p("textarea", {
59
+ class: b(["outline-none p-3 min-h-[120px] rounded border resize-none disabled:bg-oc-bg-dark", [
60
+ o.value ? "shadow-[0_0_0_2px]" : "",
61
+ e.errorMessage ? "border-oc-error shadow-oc-error" : "border-oc-gray-200 shadow-oc-gray-200"
62
+ ]]),
63
+ disabled: e.isDisabled,
64
+ value: e.modelValue,
65
+ rows: e.rows,
66
+ placeholder: e.placeholder,
67
+ onInput: a,
68
+ onFocus: t[0] || (t[0] = (n) => o.value = !0),
69
+ onBlur: t[1] || (t[1] = (n) => o.value = !1)
70
+ }, null, 42, h)
71
+ ]),
72
+ _: 1
73
+ }, 8, ["label", "error-message", "hint", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
74
+ }
75
+ };
76
+ export {
77
+ T as _
78
+ };
@@ -0,0 +1,25 @@
1
+ import { watch as r, openBlock as c, createElementBlock as s, renderSlot as l } from "vue";
2
+ const a = { class: "orchid-ui bg-oc-bg-light text-oc-text-500" }, n = {
3
+ __name: "OcTheme",
4
+ props: {
5
+ colorMode: {
6
+ type: String,
7
+ default: "light"
8
+ }
9
+ },
10
+ setup(t) {
11
+ const e = t;
12
+ return r(
13
+ () => e.colorMode,
14
+ () => {
15
+ e.colorMode === "dark" ? document.querySelector("body").setAttribute("class", "dark") : document.querySelector("body").setAttribute("class", "light");
16
+ },
17
+ { immediate: !0 }
18
+ ), (o, d) => (c(), s("main", a, [
19
+ l(o.$slots, "default")
20
+ ]));
21
+ }
22
+ };
23
+ export {
24
+ n as _
25
+ };
@@ -0,0 +1,110 @@
1
+ import { defineAsyncComponent as v, ref as n, watch as y, openBlock as u, createBlock as s, unref as a, withCtx as p, createCommentVNode as S, createVNode as D } from "vue";
2
+ import c from "dayjs";
3
+ import { D as h } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ /* empty css */
5
+ import { _ as T } from "./OcInput-tcRxG3Y2.js";
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 N = {
14
+ __name: "OcTimePicker",
15
+ props: {
16
+ modelValue: [String, Date],
17
+ label: String,
18
+ hint: String,
19
+ icon: {
20
+ type: String,
21
+ default: "time"
22
+ },
23
+ preFill: String,
24
+ placeholder: String,
25
+ errorMessage: String,
26
+ isRequired: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ isDisabled: {
31
+ type: Boolean,
32
+ default: !1
33
+ },
34
+ labelIcon: {
35
+ type: String,
36
+ default: ""
37
+ },
38
+ tooltipText: {
39
+ type: String,
40
+ default: ""
41
+ },
42
+ tooltipOptions: {
43
+ type: Object,
44
+ default: () => ({})
45
+ }
46
+ },
47
+ emits: {
48
+ "update:modelValue": []
49
+ },
50
+ setup(e, { emit: f }) {
51
+ const b = f, V = v(
52
+ () => import("./OcTimePopup-zQFKCZLk.js")
53
+ ), m = n(), r = n(!1), d = e, i = n(d.modelValue), g = () => {
54
+ b("update:modelValue", i.value), setTimeout(() => {
55
+ var t;
56
+ return (t = m.value) == null ? void 0 : t.updateActiveTime();
57
+ }, 300);
58
+ };
59
+ return y(
60
+ () => d.modelValue,
61
+ (t) => {
62
+ i.value = t != "" ? t : c().toDate();
63
+ },
64
+ { immediate: !0 }
65
+ ), (t, l) => (u(), s(a(h), {
66
+ modelValue: r.value,
67
+ "onUpdate:modelValue": [
68
+ l[2] || (l[2] = (o) => r.value = o),
69
+ g
70
+ ],
71
+ "menu-classes": "min-w-fit",
72
+ distance: 10,
73
+ "is-disabled": e.isDisabled
74
+ }, {
75
+ menu: p(() => [
76
+ r.value ? (u(), s(a(V), {
77
+ key: 0,
78
+ ref_key: "popup",
79
+ ref: m,
80
+ modelValue: i.value,
81
+ "onUpdate:modelValue": [
82
+ l[0] || (l[0] = (o) => i.value = o),
83
+ l[1] || (l[1] = (o) => t.$emit("update:modelValue", o))
84
+ ]
85
+ }, null, 8, ["modelValue"])) : S("", !0)
86
+ ]),
87
+ default: p(() => [
88
+ D(a(T), {
89
+ icon: e.icon,
90
+ "error-message": e.errorMessage,
91
+ label: e.label,
92
+ hint: e.hint,
93
+ "pre-fill": e.preFill,
94
+ placeholder: e.placeholder,
95
+ "model-value": a(c)(i.value).format("hh:mm A"),
96
+ "is-required": e.isRequired,
97
+ "label-icon": e.labelIcon,
98
+ "tooltip-text": e.tooltipText,
99
+ "tooltip-options": e.tooltipOptions,
100
+ "is-readonly": !0,
101
+ disabled: e.isDisabled
102
+ }, null, 8, ["icon", "error-message", "label", "hint", "pre-fill", "placeholder", "model-value", "is-required", "label-icon", "tooltip-text", "tooltip-options", "disabled"])
103
+ ]),
104
+ _: 1
105
+ }, 8, ["modelValue", "is-disabled"]));
106
+ }
107
+ };
108
+ export {
109
+ N as _
110
+ };
@@ -0,0 +1,131 @@
1
+ import { ref as r, onMounted as q, openBlock as f, createElementBlock as p, createElementVNode as o, Fragment as b, renderList as x, normalizeClass as k, toDisplayString as y } from "vue";
2
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
3
+ import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const $ = { class: "overflow-hidden flex items-center relative rounded shadow-normal w-fit px-3" }, N = { class: "before:block after:block before:w-full before:h-[67px] after:w-full after:h-[67px]" }, F = ["onClick"], O = { class: "before:block after:block before:w-full before:h-[67px] after:w-full after:h-[67px]" }, z = ["onClick"], Y = { class: "before:block after:block before:w-full before:h-[67px] after:w-full after:h-[67px]" }, j = ["onClick"], G = {
5
+ __name: "OcTimePopup",
6
+ props: {
7
+ modelValue: {
8
+ type: [String, Date],
9
+ default: () => /* @__PURE__ */ new Date()
10
+ }
11
+ },
12
+ emits: ["update:modelValue"],
13
+ setup(A, { expose: H, emit: B }) {
14
+ const u = A, D = B, n = r(
15
+ u.modelValue.getHours() <= 12 ? u.modelValue.getHours() : u.modelValue.getHours() - 12
16
+ ), c = r(u.modelValue.getMinutes()), i = r(u.modelValue.getHours() >= 12 ? "PM" : "AM"), v = r(null), h = r(null), g = r(null), a = () => {
17
+ const t = (m, _) => {
18
+ m && _ && m.scrollTo({
19
+ top: _.offsetTop - m.clientHeight / 2 + _.clientHeight / 2,
20
+ behavior: "smooth"
21
+ });
22
+ }, s = v.value.querySelector(`.w-7:nth-child(${n.value})`), e = h.value.querySelector(
23
+ `.w-7:nth-child(${c.value + 1})`
24
+ ), l = g.value.querySelector(
25
+ `.w-7:nth-child(${i.value === "AM" ? 1 : 2})`
26
+ );
27
+ t(v.value, s), t(h.value, e), t(g.value, l), D(
28
+ "update:modelValue",
29
+ new Date(
30
+ (/* @__PURE__ */ new Date()).getFullYear(),
31
+ (/* @__PURE__ */ new Date()).getMonth(),
32
+ (/* @__PURE__ */ new Date()).getDate(),
33
+ i.value === "AM" ? n.value === 12 ? 0 : n.value : n.value === 12 ? 12 : n.value + 12,
34
+ c.value,
35
+ 0,
36
+ 0
37
+ )
38
+ );
39
+ };
40
+ q(a);
41
+ const V = (t) => {
42
+ n.value = t, a();
43
+ }, E = (t) => {
44
+ c.value = t, a();
45
+ }, L = (t) => {
46
+ i.value = t, a();
47
+ }, d = r(null), w = r(null), M = r(null), C = r(null), P = () => {
48
+ const t = d.value;
49
+ w.value.forEach((e, l) => {
50
+ Math.abs(e.getBoundingClientRect().top - t.getBoundingClientRect().top) < 12 && (n.value = l + 1, a());
51
+ });
52
+ }, S = () => {
53
+ const t = d.value;
54
+ M.value.forEach((e, l) => {
55
+ Math.abs(e.getBoundingClientRect().top - t.getBoundingClientRect().top) < 12 && (c.value = l, a());
56
+ });
57
+ }, T = () => {
58
+ const t = d.value;
59
+ C.value.forEach((e, l) => {
60
+ Math.abs(e.getBoundingClientRect().top - t.getBoundingClientRect().top) < 12 && (i.value = l === 0 ? "AM" : "PM", a());
61
+ });
62
+ };
63
+ return H({
64
+ updateActiveTime: a
65
+ }), (t, s) => (f(), p("div", $, [
66
+ o("div", {
67
+ ref_key: "triggerBox",
68
+ ref: d,
69
+ class: "bg-oc-accent-1-50-tr border-y absolute h-7 left-0 right-0"
70
+ }, null, 512),
71
+ o("div", {
72
+ ref_key: "hourList",
73
+ ref: v,
74
+ class: "w-7 inline-block max-h-[157px] overflow-y-auto hidden-scrollbar",
75
+ onScrollend: P,
76
+ onTouchend: P
77
+ }, [
78
+ o("ul", N, [
79
+ (f(), p(b, null, x(12, (e) => o("li", {
80
+ key: e,
81
+ ref_for: !0,
82
+ ref_key: "targetHour",
83
+ ref: w,
84
+ class: k(["w-7 cursor-pointer aspect-square leading-[24px] text-center", n.value === e ? "opacity-100" : "opacity-50"]),
85
+ onClick: (l) => V(e)
86
+ }, y(e.toString().padStart(2, "0")), 11, F)), 64))
87
+ ])
88
+ ], 544),
89
+ s[0] || (s[0] = o("span", null, ":", -1)),
90
+ o("div", {
91
+ ref_key: "minutesList",
92
+ ref: h,
93
+ class: "w-7 inline-block max-h-[157px] overflow-y-auto hidden-scrollbar",
94
+ onScrollend: S,
95
+ onTouchend: S
96
+ }, [
97
+ o("ul", O, [
98
+ (f(), p(b, null, x(60, (e) => o("li", {
99
+ key: e,
100
+ ref_for: !0,
101
+ ref_key: "targetMinute",
102
+ ref: M,
103
+ class: k(["w-7 cursor-pointer aspect-square leading-[24px] text-center", c.value === e - 1 ? "opacity-100" : "opacity-50"]),
104
+ onClick: (l) => E(e - 1)
105
+ }, y((e - 1).toString().padStart(2, "0")), 11, z)), 64))
106
+ ])
107
+ ], 544),
108
+ o("div", {
109
+ ref_key: "periodList",
110
+ ref: g,
111
+ class: "w-7 inline-block max-h-[157px] overflow-y-auto hidden-scrollbar",
112
+ onScrollend: T,
113
+ onTouchend: T
114
+ }, [
115
+ o("ul", Y, [
116
+ (f(), p(b, null, x(2, (e) => o("li", {
117
+ key: e,
118
+ ref_for: !0,
119
+ ref_key: "targetPeriod",
120
+ ref: C,
121
+ class: k(["w-7 aspect-square cursor-pointer leading-[24px] text-center", i.value === (e === 1 ? "AM" : "PM") ? "opacity-100" : "opacity-50"]),
122
+ onClick: (l) => L(e === 1 ? "AM" : "PM")
123
+ }, y(e === 1 ? "AM" : "PM"), 11, j)), 64))
124
+ ])
125
+ ], 544)
126
+ ]));
127
+ }
128
+ }, Q = /* @__PURE__ */ R(G, [["__scopeId", "data-v-434f8eef"]]);
129
+ export {
130
+ Q as default
131
+ };
@@ -0,0 +1,54 @@
1
+ import { computed as s, openBlock as n, createElementBlock as i, createElementVNode as l, normalizeClass as t, toDisplayString as b, createCommentVNode as f } from "vue";
2
+ /* empty css */
3
+ import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const g = { class: "inline-flex items-center gap-3 h-fit" }, p = ["value", "checked"], h = `absolute top-0 left-0 bg-oc-primary-100 rounded-full cursor-pointer transition-all duration-300
5
+ before:transition-all before:duration-300 before:absolute before:rounded-full before:bg-oc-bg-light`, x = {
6
+ __name: "OcToggle",
7
+ props: {
8
+ modelValue: Boolean,
9
+ disabled: Boolean,
10
+ size: {
11
+ type: String,
12
+ default: "default"
13
+ },
14
+ label: String
15
+ },
16
+ emits: {
17
+ "update:modelValue": []
18
+ },
19
+ setup(e, { emit: c }) {
20
+ const r = e, d = c, o = () => d("update:modelValue", !r.modelValue), a = s(() => ({
21
+ default: "w-[42px] h-7",
22
+ small: "w-[26px] h-[15px]"
23
+ })), u = s(() => ({
24
+ default: "before:w-6 before:h-6 before:top-1 before:left-1",
25
+ small: " before:w-4 before:h-4 before:top-[1.5px] before:left-[1.5px]"
26
+ }));
27
+ return (v, k) => (n(), i("div", g, [
28
+ l("label", {
29
+ class: t(["toggle-switch relative inline-block", [a.value[e.size], e.size, e.disabled ? "pointer-events-none opacity-60" : ""]])
30
+ }, [
31
+ l("input", {
32
+ class: t(["toggle-input hidden", {
33
+ "is-checked": e.modelValue
34
+ }]),
35
+ value: e.modelValue,
36
+ checked: e.modelValue,
37
+ type: "checkbox",
38
+ onChange: o
39
+ }, null, 42, p),
40
+ l("span", {
41
+ class: t(["toggle-label", [h, a.value[e.size], u.value[e.size]]])
42
+ }, null, 2)
43
+ ], 2),
44
+ e.label ? (n(), i("div", {
45
+ key: 0,
46
+ class: "text-sm cursor-pointer",
47
+ onClick: o
48
+ }, b(e.label), 1)) : f("", !0)
49
+ ]));
50
+ }
51
+ }, y = /* @__PURE__ */ m(x, [["__scopeId", "data-v-0c0b0d12"]]);
52
+ export {
53
+ y as T
54
+ };
@@ -0,0 +1,67 @@
1
+ import { computed as a, openBlock as c, createElementBlock as m, createVNode as o, unref as n, createCommentVNode as u, createElementVNode as d } from "vue";
2
+ import "dayjs";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as s } from "./OcListDetail-6XeME6ko.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 y = { class: "bg-oc-bg-dark flex flex-col gap-3 p-4 rounded" }, b = { key: 0 }, N = {
14
+ __name: "OcTransferSummary",
15
+ props: {
16
+ transfer: {
17
+ type: Object,
18
+ required: !0
19
+ },
20
+ hasFxData: Boolean
21
+ },
22
+ setup(t) {
23
+ const r = t, l = a(() => {
24
+ var e;
25
+ return (e = r.transfer.source_currency) == null ? void 0 : e.toUpperCase();
26
+ }), p = a(() => {
27
+ var e;
28
+ return (e = r.transfer.payment_currency) == null ? void 0 : e.toUpperCase();
29
+ }), i = a(() => {
30
+ var e;
31
+ return (e = r.transfer.fee_currency) == null ? void 0 : e.toUpperCase();
32
+ }), f = a(() => {
33
+ var e;
34
+ return (e = r.transfer.transfer_method) == null ? void 0 : e.toUpperCase();
35
+ });
36
+ return (e, _) => (c(), m("div", y, [
37
+ t.hasFxData ? (c(), m("div", b, [
38
+ o(n(s), {
39
+ class: "justify-between font-medium [&>span]:text-base",
40
+ label: "FX Rate",
41
+ content: `${l.value} 1 = ${p.value} ${t.transfer.exchange_rate}`,
42
+ variant: "big",
43
+ "show-copy-tooltip": !1
44
+ }, null, 8, ["content"])
45
+ ])) : u("", !0),
46
+ o(n(s), {
47
+ class: "justify-between font-medium [&>span]:text-base",
48
+ label: "Fee",
49
+ content: `${i.value} ${t.transfer.fee}`,
50
+ variant: "big",
51
+ "show-copy-tooltip": !1
52
+ }, null, 8, ["content"]),
53
+ d("div", null, [
54
+ o(n(s), {
55
+ class: "justify-between font-medium [&>span]:text-base",
56
+ label: "Transfer type",
57
+ content: `${f.value}`,
58
+ variant: "big",
59
+ "show-copy-tooltip": !1
60
+ }, null, 8, ["content"])
61
+ ])
62
+ ]));
63
+ }
64
+ };
65
+ export {
66
+ N as _
67
+ };
@@ -0,0 +1,99 @@
1
+ import { defineComponent as m, openBlock as t, createElementBlock as r, Fragment as y, renderList as s, createBlock as u, unref as d, mergeProps as a, createSlots as x, withCtx as v, renderSlot as f, normalizeClass as n, createElementVNode as h, createCommentVNode as c, toDisplayString as V } from "vue";
2
+ import "dayjs";
3
+ import "./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
+ const k = { class: "flex gap-3 items-start md:flex-row flex-col" }, q = /* @__PURE__ */ m({
14
+ __name: "OcVariants",
15
+ props: {
16
+ variants: {
17
+ type: Array,
18
+ default: () => []
19
+ },
20
+ modelValue: {
21
+ type: [String, Number],
22
+ default: ""
23
+ }
24
+ },
25
+ emits: ["update:modelValue"],
26
+ setup(e) {
27
+ return (l, g) => (t(), r("div", k, [
28
+ (t(!0), r(y, null, s(e.variants, (i) => (t(), u(d(C), a({
29
+ key: i.value,
30
+ "is-active": i.value === e.modelValue,
31
+ ref_for: !0
32
+ }, i, {
33
+ onClick: (b) => l.$emit("update:modelValue", i.isDisabled ? e.modelValue : i.value)
34
+ }), x({ _: 2 }, [
35
+ s(l.$slots, (b, o) => ({
36
+ name: o,
37
+ fn: v((p) => [
38
+ f(l.$slots, o, a({ ref_for: !0 }, p))
39
+ ])
40
+ }))
41
+ ]), 1040, ["is-active", "onClick"]))), 128))
42
+ ]));
43
+ }
44
+ }), S = { class: "flex items-center gap-x-3" }, C = /* @__PURE__ */ m({
45
+ __name: "OcVariant",
46
+ props: {
47
+ icon: {
48
+ type: String,
49
+ default: ""
50
+ },
51
+ label: {
52
+ type: String,
53
+ default: ""
54
+ },
55
+ isActive: {
56
+ type: Boolean,
57
+ default: !1
58
+ },
59
+ isDisabled: {
60
+ type: Boolean,
61
+ default: !1
62
+ },
63
+ iconOptions: {
64
+ type: Object,
65
+ default: null
66
+ },
67
+ value: {
68
+ type: [String, Number],
69
+ default: ""
70
+ }
71
+ },
72
+ setup(e) {
73
+ return (l, g) => (t(), r("div", {
74
+ class: n([
75
+ "md:w-fit w-full py-3 px-4 border flex flex-col gap-y-2 rounded",
76
+ e.isDisabled ? "bg-oc-gray-50 border-oc-gray-200" : e.isActive ? "border-oc-primary bg-oc-bg-light cursor-pointer" : "border-oc-gray-200 bg-oc-bg-light cursor-pointer"
77
+ ])
78
+ }, [
79
+ h("div", S, [
80
+ e.icon ? (t(), u(d($), a({
81
+ key: 0,
82
+ width: "18",
83
+ height: "18",
84
+ name: e.icon,
85
+ class: e.isDisabled ? "text-oc-text-200" : e.isActive ? "" : "text-oc-text-400"
86
+ }, e.iconOptions), null, 16, ["name", "class"])) : c("", !0),
87
+ e.label ? (t(), r("span", {
88
+ key: 1,
89
+ class: n(e.isDisabled ? "text-oc-text-300" : e.isActive ? "font-medium" : "")
90
+ }, V(e.label), 3)) : c("", !0)
91
+ ]),
92
+ f(l.$slots, `${e.value}-description`)
93
+ ], 2));
94
+ }
95
+ });
96
+ export {
97
+ q as _,
98
+ C as a
99
+ };
@@ -0,0 +1,59 @@
1
+ import { defineComponent as s, openBlock as t, createElementBlock as a, normalizeClass as m, createElementVNode as o, renderSlot as r, toDisplayString as p, createBlock as n, unref as c, normalizeProps as d, mergeProps as f, createCommentVNode as l } from "vue";
2
+ import "dayjs";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as u } from "./OcIcon-CJgBICxh.js";
5
+ import { _ as h } from "./OcChip-B1hm2Qni.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
+ const y = { class: "flex items-center" }, g = { class: "flex flex-1 items-center gap-x-3" }, x = { class: "font-medium text-lg" }, P = /* @__PURE__ */ s({
15
+ __name: "OcVerificationOption",
16
+ props: {
17
+ title: {
18
+ type: String,
19
+ default: "Enter form manually"
20
+ },
21
+ chipOptions: {
22
+ type: Object,
23
+ default: null
24
+ },
25
+ icon: {
26
+ type: String,
27
+ default: "check-2"
28
+ },
29
+ isActive: {
30
+ type: Boolean,
31
+ default: !1
32
+ }
33
+ },
34
+ setup(e) {
35
+ return (i, k) => (t(), a("div", {
36
+ class: m(["rounded hover:bg-oc-gray-50 p-5 flex flex-col gap-y-3", e.isActive ? "border-2 border-oc-primary" : "border border-oc-gray-200"])
37
+ }, [
38
+ o("div", y, [
39
+ o("div", g, [
40
+ r(i.$slots, "title", {}, () => [
41
+ o("span", x, p(e.title), 1)
42
+ ]),
43
+ e.chipOptions ? (t(), n(c(h), d(f({ key: 0 }, e.chipOptions)), null, 16)) : l("", !0)
44
+ ]),
45
+ e.isActive ? (t(), n(c(u), {
46
+ key: 0,
47
+ class: "shrink-0 text-oc-primary",
48
+ name: e.icon,
49
+ width: "18",
50
+ height: "18"
51
+ }, null, 8, ["name"])) : l("", !0)
52
+ ]),
53
+ r(i.$slots, "content")
54
+ ], 2));
55
+ }
56
+ });
57
+ export {
58
+ P as _
59
+ };