@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,5 +1,4 @@
1
1
  import { ref as f, onMounted as G, openBlock as m, createElementBlock as o, createElementVNode as s, toDisplayString as d, createCommentVNode as x, normalizeClass as z, normalizeStyle as V, renderSlot as S, createTextVNode as $ } from "vue";
2
- /* empty css */
3
2
  import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
3
  const C = { class: "w-full flex flex-wrap" }, B = {
5
4
  key: 0,
@@ -40,15 +39,15 @@ const C = { class: "w-full flex flex-wrap" }, B = {
40
39
  "update:modelValue": []
41
40
  },
42
41
  setup(e, { expose: I, emit: N }) {
43
- const t = e, T = N, l = f(), n = f(), p = f(), u = f(0), y = f(0), b = () => {
42
+ const t = e, T = N, l = f(), n = f(), p = f(), r = f(0), y = f(0), b = () => {
44
43
  var a, i;
45
44
  t.type === "range" && parseInt((a = n.value) == null ? void 0 : a.value) - parseInt((i = l.value) == null ? void 0 : i.value) <= t.minGap && (l.value.value = parseInt(n.value.value) - t.minGap), g();
46
45
  }, h = () => {
47
- var a, i, r;
48
- parseInt((a = n.value) == null ? void 0 : a.value) - parseInt((i = l.value) == null ? void 0 : i.value) <= t.minGap && (n.value.value = parseInt((r = l.value) == null ? void 0 : r.value) + t.minGap), g();
46
+ var a, i, u;
47
+ parseInt((a = n.value) == null ? void 0 : a.value) - parseInt((i = l.value) == null ? void 0 : i.value) <= t.minGap && (n.value.value = parseInt((u = l.value) == null ? void 0 : u.value) + t.minGap), g();
49
48
  }, g = (a = !1) => {
50
- var i, r, c, v;
51
- u.value = (((i = l.value) == null ? void 0 : i.value) - t.minLimit) / (t.maxLimit - t.minLimit) * 100, y.value = t.type === "range" ? (((r = n.value) == null ? void 0 : r.value) - t.minLimit) / (t.maxLimit - t.minLimit) * 100 : 0, p.value.style.background = t.type === "range" ? `linear-gradient(to right, var(--oc-gray-100) ${u.value}% , var(--oc-primary-500) ${u.value}% , var(--oc-primary-500) ${y.value}%, var(--oc-gray-100) ${y.value}%)` : `linear-gradient(to right, var(--oc-primary-500) ${u.value}%, var(--oc-gray-100) ${u.value}%)`, a || T(
49
+ var i, u, c, v;
50
+ r.value = (((i = l.value) == null ? void 0 : i.value) - t.minLimit) / (t.maxLimit - t.minLimit) * 100, y.value = t.type === "range" ? (((u = n.value) == null ? void 0 : u.value) - t.minLimit) / (t.maxLimit - t.minLimit) * 100 : 0, p.value.style.background = t.type === "range" ? `linear-gradient(to right, var(--oc-gray-100) ${r.value}% , var(--oc-primary-500) ${r.value}% , var(--oc-primary-500) ${y.value}%, var(--oc-gray-100) ${y.value}%)` : `linear-gradient(to right, var(--oc-primary-500) ${r.value}%, var(--oc-gray-100) ${r.value}%)`, a || T(
52
51
  "update:modelValue",
53
52
  t.type === "range" ? [(c = l.value) == null ? void 0 : c.value, (v = n.value) == null ? void 0 : v.value] : l.value.value
54
53
  );
@@ -58,7 +57,7 @@ const C = { class: "w-full flex flex-wrap" }, B = {
58
57
  return I({
59
58
  updateSlider: k
60
59
  }), G(() => k()), (a, i) => {
61
- var r, c, v, w, L;
60
+ var u, c, v, w, L;
62
61
  return m(), o("div", C, [
63
62
  e.label ? (m(), o("label", B, [
64
63
  s("span", E, d(e.label), 1)
@@ -80,7 +79,7 @@ const C = { class: "w-full flex flex-wrap" }, B = {
80
79
  type: "range",
81
80
  min: e.minLimit,
82
81
  max: e.maxLimit,
83
- value: e.type === "range" ? (r = e.modelValue) == null ? void 0 : r[0] : e.modelValue,
82
+ value: e.type === "range" ? (u = e.modelValue) == null ? void 0 : u[0] : e.modelValue,
84
83
  onInput: b
85
84
  }, null, 40, j),
86
85
  e.type === "range" ? (m(), o("input", {
@@ -96,7 +95,7 @@ const C = { class: "w-full flex flex-wrap" }, B = {
96
95
  e.variant === "default" ? (m(), o("div", {
97
96
  key: 1,
98
97
  class: "group-hover:block absolute top-[1rem] z-[1] -translate-x-1/2 rounded-sm py-[3px] px-[6px] min-w-[28px] bg-oc-text-500 text-center text-white text-sm font-medium leading-[20px]",
99
- style: V(`left: ${u.value}%`)
98
+ style: V(`left: ${r.value}%`)
100
99
  }, d(e.type === "range" ? (v = e.modelValue) == null ? void 0 : v[0] : e.modelValue), 5)) : x("", !0),
101
100
  e.type === "range" ? (m(), o("div", {
102
101
  key: 2,
@@ -118,7 +117,7 @@ const C = { class: "w-full flex flex-wrap" }, B = {
118
117
  ]);
119
118
  };
120
119
  }
121
- }, P = /* @__PURE__ */ O(F, [["__scopeId", "data-v-43a77a49"]]);
120
+ }, K = /* @__PURE__ */ O(F, [["__scopeId", "data-v-43a77a49"]]);
122
121
  export {
123
- P as S
122
+ K as S
124
123
  };
@@ -1,16 +1,7 @@
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";
1
+ import { ref as n, watch as g, openBlock as m, createBlock as s, unref as o, withCtx as p, createCommentVNode as v, createVNode as y } from "vue";
2
+ import { as as S, aC as h, e as D } from "./index-DyVteXE3.js";
2
3
  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 = {
4
+ const w = {
14
5
  __name: "OcTimePicker",
15
6
  props: {
16
7
  modelValue: [String, Date],
@@ -48,51 +39,49 @@ const N = {
48
39
  "update:modelValue": []
49
40
  },
50
41
  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 = () => {
42
+ const b = f, u = n(), d = n(!1), r = e, i = n(r.modelValue), V = () => {
54
43
  b("update:modelValue", i.value), setTimeout(() => {
55
- var t;
56
- return (t = m.value) == null ? void 0 : t.updateActiveTime();
44
+ var l;
45
+ return (l = u.value) == null ? void 0 : l.updateActiveTime();
57
46
  }, 300);
58
47
  };
59
- return y(
60
- () => d.modelValue,
61
- (t) => {
62
- i.value = t != "" ? t : c().toDate();
48
+ return g(
49
+ () => r.modelValue,
50
+ (l) => {
51
+ i.value = l != "" ? l : c().toDate();
63
52
  },
64
53
  { immediate: !0 }
65
- ), (t, l) => (u(), s(a(h), {
66
- modelValue: r.value,
54
+ ), (l, t) => (m(), s(o(S), {
55
+ modelValue: d.value,
67
56
  "onUpdate:modelValue": [
68
- l[2] || (l[2] = (o) => r.value = o),
69
- g
57
+ t[2] || (t[2] = (a) => d.value = a),
58
+ V
70
59
  ],
71
60
  "menu-classes": "min-w-fit",
72
61
  distance: 10,
73
62
  "is-disabled": e.isDisabled
74
63
  }, {
75
64
  menu: p(() => [
76
- r.value ? (u(), s(a(V), {
65
+ d.value ? (m(), s(o(h), {
77
66
  key: 0,
78
67
  ref_key: "popup",
79
- ref: m,
68
+ ref: u,
80
69
  modelValue: i.value,
81
70
  "onUpdate:modelValue": [
82
- l[0] || (l[0] = (o) => i.value = o),
83
- l[1] || (l[1] = (o) => t.$emit("update:modelValue", o))
71
+ t[0] || (t[0] = (a) => i.value = a),
72
+ t[1] || (t[1] = (a) => l.$emit("update:modelValue", a))
84
73
  ]
85
- }, null, 8, ["modelValue"])) : S("", !0)
74
+ }, null, 8, ["modelValue"])) : v("", !0)
86
75
  ]),
87
76
  default: p(() => [
88
- D(a(T), {
77
+ y(o(D), {
89
78
  icon: e.icon,
90
79
  "error-message": e.errorMessage,
91
80
  label: e.label,
92
81
  hint: e.hint,
93
82
  "pre-fill": e.preFill,
94
83
  placeholder: e.placeholder,
95
- "model-value": a(c)(i.value).format("hh:mm A"),
84
+ "model-value": o(c)(i.value).format("hh:mm A"),
96
85
  "is-required": e.isRequired,
97
86
  "label-icon": e.labelIcon,
98
87
  "tooltip-text": e.tooltipText,
@@ -106,5 +95,5 @@ const N = {
106
95
  }
107
96
  };
108
97
  export {
109
- N as _
98
+ w as default
110
99
  };
@@ -1,5 +1,4 @@
1
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
2
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
3
  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
4
  __name: "OcTimePopup",
@@ -125,7 +124,7 @@ const $ = { class: "overflow-hidden flex items-center relative rounded shadow-no
125
124
  ], 544)
126
125
  ]));
127
126
  }
128
- }, Q = /* @__PURE__ */ R(G, [["__scopeId", "data-v-434f8eef"]]);
127
+ }, K = /* @__PURE__ */ R(G, [["__scopeId", "data-v-434f8eef"]]);
129
128
  export {
130
- Q as default
129
+ K as default
131
130
  };
@@ -1,7 +1,6 @@
1
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
2
  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
3
+ const g = { class: "inline-flex items-center gap-3 h-fit" }, h = ["value", "checked"], p = `absolute top-0 left-0 bg-oc-primary-100 rounded-full cursor-pointer transition-all duration-300
5
4
  before:transition-all before:duration-300 before:absolute before:rounded-full before:bg-oc-bg-light`, x = {
6
5
  __name: "OcToggle",
7
6
  props: {
@@ -36,9 +35,9 @@ const g = { class: "inline-flex items-center gap-3 h-fit" }, p = ["value", "chec
36
35
  checked: e.modelValue,
37
36
  type: "checkbox",
38
37
  onChange: o
39
- }, null, 42, p),
38
+ }, null, 42, h),
40
39
  l("span", {
41
- class: t(["toggle-label", [h, a.value[e.size], u.value[e.size]]])
40
+ class: t(["toggle-label", [p, a.value[e.size], u.value[e.size]]])
42
41
  }, null, 2)
43
42
  ], 2),
44
43
  e.label ? (n(), i("div", {
@@ -48,7 +47,7 @@ const g = { class: "inline-flex items-center gap-3 h-fit" }, p = ["value", "chec
48
47
  }, b(e.label), 1)) : f("", !0)
49
48
  ]));
50
49
  }
51
- }, y = /* @__PURE__ */ m(x, [["__scopeId", "data-v-0c0b0d12"]]);
50
+ }, C = /* @__PURE__ */ m(x, [["__scopeId", "data-v-0c0b0d12"]]);
52
51
  export {
53
- y as T
52
+ C as T
54
53
  };
@@ -1,4 +1,4 @@
1
- import { _ as r } from "../../OcConfirmationModal-BfCrRV9r.js";
1
+ import { aq as r } from "../../index-DyVteXE3.js";
2
2
  export {
3
3
  r as ConfirmationModal
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as r } from "../../OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js";
1
+ import { ar as r } from "../../index-DyVteXE3.js";
2
2
  export {
3
3
  r as CopyTooltip
4
4
  };
@@ -1,6 +1,5 @@
1
- import { D as p } from "../../OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
2
- import { _ as m } from "../../OcDropdownItem-DAElmzEu.js";
1
+ import { as as r, at as p } from "../../index-DyVteXE3.js";
3
2
  export {
4
- p as Dropdown,
5
- m as DropdownItem
3
+ r as Dropdown,
4
+ p as DropdownItem
6
5
  };
@@ -1,6 +1,5 @@
1
- import { _ as r } from "../../OcModal-DdD5VFEN.js";
2
- import { _ as d } from "../../OcModalPage-BLVa-kcB.js";
1
+ import { au as d, av as e } from "../../index-DyVteXE3.js";
3
2
  export {
4
- r as Modal,
5
- d as OcModalPage
3
+ d as Modal,
4
+ e as OcModalPage
6
5
  };
@@ -1,4 +1,4 @@
1
- import { _ as r } from "../../OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js";
1
+ import { aw as r } from "../../index-DyVteXE3.js";
2
2
  export {
3
3
  r as SupportMenu
4
4
  };
@@ -1,4 +1,4 @@
1
- import { T as r } from "../../OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
1
+ import { ax as p } from "../../index-DyVteXE3.js";
2
2
  export {
3
- r as Tooltip
3
+ p as Tooltip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as i } from "../../OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js";
1
+ import { ay as e } from "../../index-DyVteXE3.js";
2
2
  export {
3
- i as WhiteList
3
+ e as WhiteList
4
4
  };
@@ -0,0 +1,81 @@
1
+ import { computed as l, openBlock as a, createElementBlock as o, normalizeClass as d, createElementVNode as e, toDisplayString as r, createBlock as x, unref as u, createCommentVNode as m, createTextVNode as v, Fragment as T, renderList as k, createVNode as P } from "vue";
2
+ import { an as _, B as w } from "./index-DyVteXE3.js";
3
+ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { _ as F } from "./OcIcon-CJgBICxh.js";
5
+ const B = { class: "z-10 flex flex-col gap-4 p-9 relative" }, E = { class: "flex items-center gap-4" }, A = { class: "font-medium text-xl" }, N = { class: "flex gap-3 items-center mb-5" }, S = { class: "flex items-start gap-2" }, V = { class: "text-[24px] font-medium tracking-tighter" }, q = { class: "text-[40px] leading-none font-medium" }, z = { key: 0 }, $ = {
6
+ __name: "SubPlanCard",
7
+ props: {
8
+ planTier: {
9
+ type: Object,
10
+ required: !0
11
+ },
12
+ isPlanActive: Boolean
13
+ },
14
+ emits: ["select"],
15
+ setup(t, { emit: f }) {
16
+ const s = t, b = f, i = l(() => s.planTier.name === "Free"), g = l(() => s.planTier.name === "Pro"), c = l(() => s.planTier.name === "Plus"), y = l(() => s.planTier.billing_frequency === "monthly") ? "/month" : "/year", h = l(() => s.planTier.name === "free" ? "For individual who just starting their business" : s.planTier.name === "pro" ? "For business who needs more features to increase their sales" : "For business who want in-depth analytics to win business and work");
17
+ return (j, n) => (a(), o("div", {
18
+ class: d(["tier-card rounded relative shadow-sm max-w-[300px]", {
19
+ "!bg-oc-bg-dark border border-oc-gray-200": i.value,
20
+ "tier-card--pro border border-oc-gray-200": g.value,
21
+ "tier-card--plus bg-oc-gray-900 text-white": c.value,
22
+ "border-2 border-oc-primary-500": t.isPlanActive
23
+ }])
24
+ }, [
25
+ e("div", B, [
26
+ e("div", E, [
27
+ e("span", A, r(t.planTier.name), 1),
28
+ t.isPlanActive ? (a(), x(u(_), {
29
+ key: 0,
30
+ label: "Current Plan"
31
+ })) : m("", !0)
32
+ ]),
33
+ e("div", {
34
+ class: d(["text-oc-text-400 text-sm mb-5", { "!text-oc-text-200": c.value }])
35
+ }, r(h.value), 3),
36
+ e("div", N, [
37
+ e("div", S, [
38
+ e("span", V, r(t.planTier.currency.toUpperCase()), 1),
39
+ e("span", q, r(t.planTier.price), 1)
40
+ ]),
41
+ i.value ? m("", !0) : (a(), o("span", {
42
+ key: 0,
43
+ class: d(["text-oc-text-400 text-base", { "!text-oc-text-200": c.value }])
44
+ }, r(u(y)), 3))
45
+ ]),
46
+ t.isPlanActive ? m("", !0) : (a(), x(u(w), {
47
+ key: 0,
48
+ label: i.value ? "Change to Free" : "Start 14 day trial",
49
+ variant: i.value ? "secondary" : "primary",
50
+ size: "big",
51
+ class: "mb-5",
52
+ onClick: n[0] || (n[0] = (p) => b("select"))
53
+ }, null, 8, ["label", "variant"])),
54
+ e("div", {
55
+ class: d(["flex flex-col gap-3", { "text-oc-text-200": c.value }])
56
+ }, [
57
+ i.value ? m("", !0) : (a(), o("span", z, [
58
+ n[1] || (n[1] = v(" Everything on ")),
59
+ e("strong", null, r(t.planTier.code === "tier_s" ? "FREE" : "PRO"), 1),
60
+ n[2] || (n[2] = v(" includes: "))
61
+ ])),
62
+ (a(!0), o(T, null, k(t.planTier.features, (p) => (a(), o("span", {
63
+ key: p.id,
64
+ class: "flex gap-3 items-center"
65
+ }, [
66
+ P(u(F), {
67
+ name: "check-fill",
68
+ class: "text-oc-primary-500",
69
+ height: "16",
70
+ width: "16"
71
+ }),
72
+ e("span", null, r(p.name), 1)
73
+ ]))), 128))
74
+ ], 2)
75
+ ])
76
+ ], 2));
77
+ }
78
+ }, L = /* @__PURE__ */ C($, [["__scopeId", "data-v-1c173638"]]);
79
+ export {
80
+ L as default
81
+ };
@@ -0,0 +1,41 @@
1
+ import { openBlock as a, createElementBlock as d, createElementVNode as t, createVNode as o, unref as i, toDisplayString as r } from "vue";
2
+ import { B as n } from "./index-DyVteXE3.js";
3
+ const m = { class: "flex flex-col" }, u = { class: "w-full relative group" }, f = { class: "w-full h-full bg-black/25 absolute top-0 left-0 hidden group-hover:flex rounded-lg" }, v = { class: "w-full px-6 gap-3 m-auto flex" }, b = ["src", "alt"], g = { class: "mt-4 text-md text-center" }, x = {
4
+ __name: "ThumbnailSection",
5
+ props: {
6
+ section: Object
7
+ },
8
+ emits: ["add", "customize"],
9
+ setup(e) {
10
+ return (s, l) => (a(), d("div", m, [
11
+ t("div", u, [
12
+ t("div", f, [
13
+ t("div", v, [
14
+ o(i(n), {
15
+ class: "w-1/2",
16
+ variant: "secondary",
17
+ label: "Customize",
18
+ size: "small",
19
+ onClick: l[0] || (l[0] = (c) => s.$emit("customize", e.section))
20
+ }),
21
+ o(i(n), {
22
+ class: "w-1/2",
23
+ label: "Add",
24
+ size: "small",
25
+ onClick: l[1] || (l[1] = (c) => s.$emit("add", e.section))
26
+ })
27
+ ])
28
+ ]),
29
+ t("img", {
30
+ class: "w-full",
31
+ src: e.section.preview,
32
+ alt: e.section.title
33
+ }, null, 8, b)
34
+ ]),
35
+ t("div", g, r(e.section.title), 1)
36
+ ]));
37
+ }
38
+ };
39
+ export {
40
+ x as default
41
+ };
@@ -0,0 +1,119 @@
1
+ import { openBlock as i, createElementBlock as s, normalizeClass as f, createElementVNode as l, Fragment as g, createVNode as n, unref as a, createTextVNode as r, toDisplayString as h, createBlock as u, withCtx as c, createCommentVNode as b } from "vue";
2
+ import { B as d, an as v } from "./index-DyVteXE3.js";
3
+ import { _ as k } from "./OcIcon-CJgBICxh.js";
4
+ const x = { class: "w-full relative group" }, y = {
5
+ key: 0,
6
+ class: "m-auto"
7
+ }, $ = {
8
+ key: 1,
9
+ class: "m-auto flex gap-3"
10
+ }, C = {
11
+ key: 2,
12
+ class: "m-auto flex gap-3"
13
+ }, w = {
14
+ key: 1,
15
+ class: "m-auto bg-white/75 rounded p-5 flex text-center flex-col justify-center"
16
+ }, B = { class: "mx-auto mb-3" }, z = ["src", "alt"], A = { class: "p-4 flex items-center" }, T = { class: "w-full" }, N = { class: "text-md font-medium" }, V = { class: "text-oc-text-400 text-sm mt-1" }, F = { class: "h-full flex items-start" }, P = {
17
+ __name: "ThumbnailTheme",
18
+ props: {
19
+ theme: Object,
20
+ activating: Boolean,
21
+ isFreeAccount: Boolean
22
+ },
23
+ emits: ["activate", "customize", "preview", "upgrade", "publish"],
24
+ setup(t) {
25
+ return (o, e) => (i(), s("div", {
26
+ class: f(["bg-oc-bg-dark border-[3px] rounded-lg flex flex-col", t.theme.active ? "border-oc-primary" : "border-oc-bg-dark"])
27
+ }, [
28
+ l("div", x, [
29
+ l("div", {
30
+ class: f(["w-full h-full bg-black/25 absolute top-0 left-0 group-hover:flex rounded-t-lg", t.activating ? "flex" : "hidden"])
31
+ }, [
32
+ t.activating ? (i(), s("div", w, [
33
+ l("div", B, [
34
+ n(a(k), {
35
+ name: "loading-2",
36
+ width: "32",
37
+ height: "32",
38
+ class: "text-oc-text-400 motion-safe:animate-spin"
39
+ })
40
+ ]),
41
+ e[6] || (e[6] = r(" Adding theme "))
42
+ ])) : (i(), s(g, { key: 0 }, [
43
+ t.theme.active ? (i(), s("div", y, [
44
+ n(a(d), {
45
+ variant: "secondary",
46
+ label: "Customize",
47
+ onClick: e[0] || (e[0] = (m) => o.$emit("customize", t.theme))
48
+ })
49
+ ])) : t.theme.draft ? (i(), s("div", $, [
50
+ n(a(d), {
51
+ variant: "secondary",
52
+ label: "Customize",
53
+ onClick: e[1] || (e[1] = (m) => o.$emit("customize", t.theme))
54
+ }),
55
+ n(a(d), {
56
+ label: "Publish",
57
+ onClick: e[2] || (e[2] = (m) => o.$emit("publish", t.theme))
58
+ })
59
+ ])) : (i(), s("div", C, [
60
+ n(a(d), {
61
+ variant: "secondary",
62
+ label: "Preview",
63
+ onClick: e[3] || (e[3] = (m) => o.$emit("preview", t.theme))
64
+ }),
65
+ n(a(d), {
66
+ label: t.isFreeAccount ? "Activate" : "Try Theme",
67
+ onClick: e[4] || (e[4] = (m) => o.$emit("activate", t.theme))
68
+ }, null, 8, ["label"])
69
+ ]))
70
+ ], 64))
71
+ ], 2),
72
+ l("img", {
73
+ class: "w-full rounded-t-md",
74
+ src: t.theme.thumbnail,
75
+ alt: t.theme.title
76
+ }, null, 8, z)
77
+ ]),
78
+ l("div", A, [
79
+ l("div", T, [
80
+ l("div", N, h(t.theme.title), 1),
81
+ l("div", V, h(t.theme.description), 1)
82
+ ]),
83
+ l("div", F, [
84
+ t.theme.active ? (i(), u(a(v), {
85
+ key: 0,
86
+ class: "ml-auto"
87
+ }, {
88
+ default: c(() => e[7] || (e[7] = [
89
+ r("Active")
90
+ ])),
91
+ _: 1
92
+ })) : t.theme.draft ? (i(), u(a(v), {
93
+ key: 1,
94
+ variant: "gray",
95
+ class: "ml-auto"
96
+ }, {
97
+ default: c(() => e[8] || (e[8] = [
98
+ r("Draft")
99
+ ])),
100
+ _: 1
101
+ })) : t.theme.pro ? (i(), u(a(v), {
102
+ key: 2,
103
+ class: "ml-auto",
104
+ variant: "accent-2",
105
+ onClick: e[5] || (e[5] = (m) => o.$emit("upgrade", t.theme))
106
+ }, {
107
+ default: c(() => e[9] || (e[9] = [
108
+ r("Upgrade")
109
+ ])),
110
+ _: 1
111
+ })) : b("", !0)
112
+ ])
113
+ ])
114
+ ], 2));
115
+ }
116
+ };
117
+ export {
118
+ P as default
119
+ };