@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,108 @@
1
+ import { openBlock as a, createBlock as i, Transition as f, withCtx as p, withDirectives as g, createElementVNode as t, normalizeClass as s, unref as r, createCommentVNode as l, renderSlot as c, toDisplayString as d, createTextVNode as y, vShow as b } from "vue";
2
+ import "dayjs";
3
+ import { B as x } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import { _ as w } from "./OcIcon-CJgBICxh.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 v = { class: "flex items-center gap-3" }, B = { class: "text-oc-text-500" }, S = { class: "p-4 text-sm" }, k = {
15
+ __name: "OcBanner",
16
+ props: {
17
+ modelValue: {
18
+ type: Boolean,
19
+ default: !0
20
+ },
21
+ color: {
22
+ type: String,
23
+ default: "default"
24
+ },
25
+ content: {
26
+ type: String,
27
+ default: ""
28
+ },
29
+ icon: {
30
+ type: String,
31
+ default: "filled-check"
32
+ },
33
+ showIcon: {
34
+ type: Boolean,
35
+ default: !0
36
+ },
37
+ dismissible: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ transitionName: {
42
+ type: String,
43
+ default: "slide-from-top"
44
+ },
45
+ title: {
46
+ type: String,
47
+ default: ""
48
+ }
49
+ },
50
+ emits: ["update:modelValue"],
51
+ setup(e) {
52
+ const m = Object.freeze({
53
+ default: "bg-oc-success-50 text-oc-success-500",
54
+ primary: "bg-oc-primary-50 text-oc-primary-500",
55
+ error: "bg-oc-error-50 text-oc-error-500",
56
+ warning: "bg-oc-warning-50 text-oc-warning-500",
57
+ gray: "bg-oc-gray-100 text-oc-gray-700"
58
+ }), u = Object.freeze({
59
+ default: "border-oc-success-200",
60
+ primary: "border-oc-primary-200",
61
+ error: "border-oc-error-200",
62
+ warning: "border-oc-warning-200",
63
+ gray: "border-oc-gray-300"
64
+ });
65
+ return (o, n) => (a(), i(f, { name: e.transitionName }, {
66
+ default: p(() => [
67
+ g(t("div", {
68
+ class: s([r(u)[e.color], "border rounded-lg banner relative overflow-hidden"])
69
+ }, [
70
+ t("div", {
71
+ class: s(["flex flex-1 items-center justify-between gap-3 min-h-[34px] px-4 text-sm", r(m)[e.color]])
72
+ }, [
73
+ t("div", v, [
74
+ e.showIcon ? (a(), i(r(w), {
75
+ key: 0,
76
+ name: e.icon,
77
+ class: "shrink-0",
78
+ width: "16",
79
+ height: "16"
80
+ }, null, 8, ["name"])) : l("", !0),
81
+ c(o.$slots, "title", {}, () => [
82
+ t("div", B, d(e.title), 1)
83
+ ], !0)
84
+ ]),
85
+ e.dismissible ? (a(), i(r(x), {
86
+ key: 0,
87
+ variant: "secondary",
88
+ "is-transparent": "",
89
+ label: "Close",
90
+ onClick: n[0] || (n[0] = (C) => o.$emit("update:modelValue", !1))
91
+ })) : l("", !0)
92
+ ], 2),
93
+ t("div", S, [
94
+ c(o.$slots, "default", {}, () => [
95
+ y(d(e.content), 1)
96
+ ], !0)
97
+ ])
98
+ ], 2), [
99
+ [b, e.modelValue]
100
+ ])
101
+ ]),
102
+ _: 3
103
+ }, 8, ["name"]));
104
+ }
105
+ }, G = /* @__PURE__ */ h(k, [["__scopeId", "data-v-d8517c87"]]);
106
+ export {
107
+ G as O
108
+ };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as o, openBlock as r, createElementBlock as n, normalizeClass as c, createVNode as a, unref as s, createElementVNode as i, toDisplayString as e } from "vue";
2
+ import "dayjs";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as m } from "./OcOverviewIcon-D702Ujka.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 l = { class: "flex flex-col text-center gap-y-3" }, d = { class: "text-lg font-medium" }, g = { class: "text-sm text-oc-text-400" }, C = /* @__PURE__ */ o({
14
+ __name: "OcBox",
15
+ props: {
16
+ icon: String,
17
+ width: String,
18
+ height: String,
19
+ variant: String,
20
+ title: String,
21
+ description: String,
22
+ isActive: Boolean
23
+ },
24
+ setup(t) {
25
+ return (h, p) => (r(), n("div", {
26
+ class: c(["rounded py-7 px-5 border bg-oc-bg-light flex flex-col gap-y-5 items-center shadow-sm", t.isActive ? "border-oc-primary" : "border-oc-gray-200"])
27
+ }, [
28
+ a(s(m), {
29
+ icon: t.icon,
30
+ width: t.width,
31
+ height: t.height,
32
+ variant: t.variant
33
+ }, null, 8, ["icon", "width", "height", "variant"]),
34
+ i("div", l, [
35
+ i("span", d, e(t.title), 1),
36
+ i("span", g, e(t.description), 1)
37
+ ])
38
+ ], 2));
39
+ }
40
+ });
41
+ export {
42
+ C as _
43
+ };
@@ -0,0 +1,75 @@
1
+ import { openBlock as a, createBlock as n, unref as i, withCtx as r, createElementVNode as d, createVNode as m } from "vue";
2
+ import "dayjs";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as s } from "./OcIcon-CJgBICxh.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
+ const c = { class: "w-[30px] h-[20px] flex items-center justify-center" }, T = {
15
+ __name: "OcCardInput",
16
+ props: {
17
+ placeholder: String,
18
+ hint: String,
19
+ label: String,
20
+ errorMessage: String,
21
+ cardType: String,
22
+ isInlineLabel: Boolean,
23
+ isDisabled: Boolean,
24
+ modelValue: String,
25
+ isRequired: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ labelIcon: {
30
+ type: String,
31
+ default: ""
32
+ },
33
+ tooltipText: {
34
+ type: String,
35
+ default: ""
36
+ },
37
+ tooltipOptions: {
38
+ type: Object,
39
+ default: () => ({})
40
+ }
41
+ },
42
+ emits: {
43
+ "update:modelValue": []
44
+ },
45
+ setup(e) {
46
+ return (l, t) => (a(), n(i(p), {
47
+ placeholder: e.placeholder,
48
+ label: e.label,
49
+ "error-message": e.errorMessage,
50
+ "is-inline-label": e.isInlineLabel,
51
+ disabled: e.isDisabled,
52
+ hint: e.hint,
53
+ "model-value": e.modelValue,
54
+ "is-required": e.isRequired,
55
+ "label-icon": e.labelIcon,
56
+ "tooltip-text": e.tooltipText,
57
+ "tooltip-options": e.tooltipOptions,
58
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => l.$emit("update:modelValue", o))
59
+ }, {
60
+ icon: r(() => [
61
+ d("div", c, [
62
+ m(i(s), {
63
+ name: `payment-methods/${e.cardType}`,
64
+ width: "20",
65
+ height: "12"
66
+ }, null, 8, ["name"])
67
+ ])
68
+ ]),
69
+ _: 1
70
+ }, 8, ["placeholder", "label", "error-message", "is-inline-label", "disabled", "hint", "model-value", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
71
+ }
72
+ };
73
+ export {
74
+ T as _
75
+ };
@@ -0,0 +1,94 @@
1
+ import { computed as r, openBlock as s, createBlock as u, unref as m, withCtx as p, createElementVNode as y, normalizeClass as v, createCommentVNode as C, createElementBlock as A, Fragment as h, renderList as k } from "vue";
2
+ import "dayjs";
3
+ import { _ as x, a 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 j = {
13
+ __name: "OcCheckboxesGroup",
14
+ props: {
15
+ alignment: {
16
+ type: String,
17
+ default: "vertical"
18
+ },
19
+ checkboxes: Array,
20
+ modelValue: {
21
+ type: [Array, String]
22
+ },
23
+ label: String,
24
+ errorMessage: String,
25
+ hint: String,
26
+ isDisabled: Boolean,
27
+ isSelectAll: Boolean,
28
+ isButtonVariant: Boolean,
29
+ isBlock: Boolean
30
+ },
31
+ emits: {
32
+ "update:modelValue": []
33
+ },
34
+ setup(e, { emit: V }) {
35
+ const t = e, n = V, b = r(() => ({
36
+ horizontal: "gap-x-5 flex-wrap",
37
+ vertical: "flex-col gap-y-3"
38
+ })), o = (a) => {
39
+ var l;
40
+ return (l = t.modelValue) == null ? void 0 : l.includes(a);
41
+ }, f = (a) => {
42
+ n(
43
+ "update:modelValue",
44
+ o(a) ? t.modelValue.filter((l) => l !== a) : [...t.modelValue, a]
45
+ );
46
+ }, d = r(
47
+ () => {
48
+ var a;
49
+ return (a = t.checkboxes) == null ? void 0 : a.every((l) => o(l == null ? void 0 : l.value));
50
+ }
51
+ ), c = r(() => {
52
+ var a;
53
+ return (a = t.checkboxes) == null ? void 0 : a.map((l) => l == null ? void 0 : l.value);
54
+ }), B = () => {
55
+ d.value ? n("update:modelValue", []) : n("update:modelValue", c.value);
56
+ };
57
+ return (a, l) => (s(), u(m(x), {
58
+ label: e.label,
59
+ "error-message": e.errorMessage,
60
+ hint: e.hint
61
+ }, {
62
+ default: p(() => [
63
+ y("div", {
64
+ class: v(["flex", b.value[e.alignment]])
65
+ }, [
66
+ e.isSelectAll ? (s(), u(m(g), {
67
+ key: 0,
68
+ label: "Select all",
69
+ "is-disabled": e.isDisabled,
70
+ value: c.value,
71
+ "model-value": d.value,
72
+ "is-button-variant": e.isButtonVariant,
73
+ "onUpdate:modelValue": B
74
+ }, null, 8, ["is-disabled", "value", "model-value", "is-button-variant"])) : C("", !0),
75
+ (s(!0), A(h, null, k(e.checkboxes, (i, S) => (s(), u(m(g), {
76
+ key: S,
77
+ label: i.label,
78
+ value: i.value,
79
+ "is-error": !!e.errorMessage,
80
+ "is-disabled": e.isDisabled,
81
+ class: v({ "!w-fit": !e.isBlock }),
82
+ "model-value": o(i.value),
83
+ "is-button-variant": e.isButtonVariant,
84
+ "onUpdate:modelValue": (w) => f(i.value)
85
+ }, null, 8, ["label", "value", "is-error", "is-disabled", "class", "model-value", "is-button-variant", "onUpdate:modelValue"]))), 128))
86
+ ], 2)
87
+ ]),
88
+ _: 1
89
+ }, 8, ["label", "error-message", "hint"]));
90
+ }
91
+ };
92
+ export {
93
+ j as _
94
+ };
@@ -0,0 +1,144 @@
1
+ import { computed as m, openBlock as c, createElementBlock as p, normalizeClass as o, renderSlot as k, createElementVNode as r, createBlock as n, unref as a, withCtx as g, toDisplayString as u, createVNode as h, mergeProps as f, createCommentVNode as b, withModifiers as y } from "vue";
2
+ import "dayjs";
3
+ import { T as w } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as i } 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 v = { class: "flex gap-3 items-center" }, S = { class: "px-3 py-2 text-oc-text-400 text-sm font-medium" }, q = {
14
+ __name: "OcChip",
15
+ props: {
16
+ variant: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ label: String,
21
+ icon: String,
22
+ iconSize: String,
23
+ iconTooltip: String,
24
+ closable: Boolean,
25
+ shouldTruncateChip: Boolean,
26
+ iconProps: Object
27
+ },
28
+ emits: {
29
+ remove: []
30
+ },
31
+ setup(t) {
32
+ const s = t, x = m(() => {
33
+ let e = "";
34
+ switch (s.variant) {
35
+ case "accent-1":
36
+ e = "bg-oc-accent-1-50 text-oc-accent-1 ";
37
+ break;
38
+ case "accent-2":
39
+ e = "bg-oc-accent-2-50 text-oc-accent-2 ";
40
+ break;
41
+ case "accent-3":
42
+ e = "bg-oc-accent-3-50 text-oc-accent-3 ";
43
+ break;
44
+ case "success":
45
+ e = "bg-oc-success-50 text-oc-success ";
46
+ break;
47
+ case "warning":
48
+ e = "bg-oc-warning-50 text-oc-warning ";
49
+ break;
50
+ case "error":
51
+ e = "bg-oc-error-50 text-oc-error ";
52
+ break;
53
+ case "gray":
54
+ e = "bg-oc-gray-100 text-oc-gray-700 ";
55
+ break;
56
+ case "light-red":
57
+ e = "bg-oc-accent-3-50 text-oc-accent-3";
58
+ break;
59
+ default:
60
+ e = "bg-oc-primary-50 text-oc-primary ";
61
+ break;
62
+ }
63
+ return e;
64
+ }), d = m(() => {
65
+ let e = "";
66
+ switch (s.variant) {
67
+ case "accent-1":
68
+ e = "text-oc-accent-1-300";
69
+ break;
70
+ case "accent-2":
71
+ e = "text-oc-accent-2-300";
72
+ break;
73
+ case "accent-3":
74
+ e = "text-oc-accent-3-300";
75
+ break;
76
+ case "success":
77
+ e = "text-oc-success-300 ";
78
+ break;
79
+ case "warning":
80
+ e = "text-oc-warning-300 ";
81
+ break;
82
+ case "error":
83
+ e = "text-oc-error-300 ";
84
+ break;
85
+ case "gray":
86
+ e = "text-oc-gray-400 ";
87
+ break;
88
+ case "light-red":
89
+ e = "text-oc-error ";
90
+ break;
91
+ default:
92
+ e = "text-oc-primary-300 ";
93
+ break;
94
+ }
95
+ return e;
96
+ });
97
+ return (e, l) => (c(), p("span", {
98
+ class: o(["rounded-full flex items-center gap-x-3 py-1 px-3 text-sm leading-[20px]", x.value])
99
+ }, [
100
+ k(e.$slots, "default", {}, () => [
101
+ r("div", v, [
102
+ t.iconTooltip && t.icon ? (c(), n(a(w), {
103
+ key: 0,
104
+ position: "top",
105
+ distance: 10
106
+ }, {
107
+ popper: g(() => [
108
+ r("div", S, u(t.iconTooltip), 1)
109
+ ]),
110
+ default: g(() => [
111
+ h(a(i), f({
112
+ width: "18",
113
+ height: "18",
114
+ name: t.icon
115
+ }, t.iconProps), null, 16, ["name"])
116
+ ]),
117
+ _: 1
118
+ })) : t.icon ? (c(), n(a(i), {
119
+ key: 1,
120
+ width: t.iconSize ?? 18,
121
+ height: t.iconSize ?? 18,
122
+ name: t.icon
123
+ }, null, 8, ["width", "height", "name"])) : b("", !0),
124
+ r("div", {
125
+ class: o({
126
+ "truncate max-w-[180px]": t.shouldTruncateChip
127
+ })
128
+ }, u(t.label), 3)
129
+ ])
130
+ ]),
131
+ t.closable ? (c(), n(a(i), {
132
+ key: 0,
133
+ width: "18",
134
+ height: "18",
135
+ class: o([d.value, "cursor-pointer"]),
136
+ name: "filled-x-circle",
137
+ onClick: l[0] || (l[0] = y((C) => e.$emit("remove"), ["stop"]))
138
+ }, null, 8, ["class"])) : b("", !0)
139
+ ], 2));
140
+ }
141
+ };
142
+ export {
143
+ q as _
144
+ };
@@ -0,0 +1,108 @@
1
+ import { ref as x, openBlock as o, createElementBlock as n, createElementVNode as p, Fragment as b, renderList as V, normalizeClass as v, unref as a, toDisplayString as k, createCommentVNode as u, createVNode as m, mergeProps as d } from "vue";
2
+ import { DatePicker as B } from "v-calendar";
3
+ import { B as f } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import r from "dayjs";
5
+ /* empty css */
6
+ import "libphonenumber-js";
7
+ /* empty css */
8
+ /* empty css */
9
+ import "./Cropper.js";
10
+ import "vue-draggable-next";
11
+ import "@popperjs/core";
12
+ const C = { class: "flex flex-col p-6 gap-y-7 w-fit shadow-normal rounded" }, h = { class: "flex gap-x-7" }, M = {
13
+ key: 0,
14
+ class: "flex flex-col py-2 gap-y-4"
15
+ }, w = ["onClick"], P = {
16
+ key: 0,
17
+ class: "flex justify-end gap-x-3"
18
+ }, U = {
19
+ __name: "OcComplexCalendar",
20
+ props: {
21
+ shortcuts: Array,
22
+ cancelButtonProps: Object,
23
+ submitButtonProps: Object,
24
+ modelValue: {
25
+ type: Object,
26
+ default: () => ({
27
+ start: /* @__PURE__ */ new Date(),
28
+ end: /* @__PURE__ */ new Date()
29
+ })
30
+ },
31
+ countCalendars: {
32
+ type: Number,
33
+ default: 2
34
+ },
35
+ withFooter: {
36
+ type: Boolean,
37
+ default: !0
38
+ },
39
+ isRange: {
40
+ type: Boolean,
41
+ default: !0
42
+ },
43
+ minDate: {
44
+ type: [String, Date, Number]
45
+ },
46
+ maxDate: {
47
+ type: [String, Date, Number]
48
+ }
49
+ },
50
+ emits: {
51
+ "update:modelValue": []
52
+ },
53
+ setup(e, { emit: y }) {
54
+ const D = y, i = x(), g = (l) => {
55
+ D("update:modelValue", l), i.value.calendarRef.focusDate(r(l.start).toDate());
56
+ };
57
+ return (l, s) => {
58
+ var c;
59
+ return o(), n("div", C, [
60
+ p("div", h, [
61
+ (c = e.shortcuts) != null && c.length ? (o(), n("div", M, [
62
+ (o(!0), n(b, null, V(e.shortcuts, (t) => (o(), n("div", {
63
+ key: t,
64
+ class: v([
65
+ "rounded text-center px-4 font-medium py-2 cursor-pointer",
66
+ a(r)(t.value.start).format("YY-MM-DD") === a(r)(e.modelValue.start).format("YY-MM-DD") && a(r)(t.value.end).format("YY-MM-DD") === a(r)(e.modelValue.end).format("YY-MM-DD") && e.modelValue.end && e.modelValue.start ? "bg-oc-primary-50" : "hover:bg-oc-accent-1-50"
67
+ ]),
68
+ onClick: (Y) => g(t.value)
69
+ }, k(t.label), 11, w))), 128))
70
+ ])) : u("", !0),
71
+ m(a(B), d({
72
+ ref_key: "datePicker",
73
+ ref: i,
74
+ "model-value": e.modelValue,
75
+ "model-modifiers": {
76
+ range: e.isRange
77
+ },
78
+ class: {
79
+ "oc-complex-calendar__calendar--single": !e.isRange || e.countCalendars == 1
80
+ },
81
+ locale: "en",
82
+ color: "primary",
83
+ borderless: "",
84
+ columns: e.countCalendars
85
+ }, l.$attrs, {
86
+ "min-date": e.minDate,
87
+ "max-date": e.maxDate,
88
+ "onUpdate:modelValue": s[0] || (s[0] = (t) => l.$emit("update:modelValue", t))
89
+ }), null, 16, ["model-value", "model-modifiers", "class", "columns", "min-date", "max-date"])
90
+ ]),
91
+ e.withFooter ? (o(), n("div", P, [
92
+ m(a(f), d({
93
+ class: "min-w-[72px]",
94
+ label: "Clear",
95
+ variant: "secondary"
96
+ }, e.cancelButtonProps), null, 16),
97
+ m(a(f), d({
98
+ class: "min-w-[72px]",
99
+ label: "Done"
100
+ }, e.submitButtonProps), null, 16)
101
+ ])) : u("", !0)
102
+ ]);
103
+ };
104
+ }
105
+ };
106
+ export {
107
+ U as _
108
+ };