@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,84 @@
1
+ import { openBlock as t, createElementBlock as s, createElementVNode as r, createTextVNode as f, toDisplayString as o, createVNode as x, unref as a, withCtx as d, createBlock as c, createCommentVNode as l, normalizeClass as V, renderSlot as y, mergeProps as S } from "vue";
2
+ import "dayjs";
3
+ import { T as h } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as k } from "./OcIcon-CJgBICxh.js";
5
+ /* empty css */
6
+ import "libphonenumber-js";
7
+ import { T as v } from "./OcToggle-C0wTjM_Y.js";
8
+ import "v-calendar";
9
+ /* empty css */
10
+ import "./Cropper.js";
11
+ import "vue-draggable-next";
12
+ import "@popperjs/core";
13
+ const T = { class: "flex" }, B = { class: "flex flex-col gap-y-1 flex-1" }, C = { class: "font-medium gap-x-3 flex items-center" }, M = { class: "px-2 py-1 text-sm text-oc-text-400" }, N = {
14
+ key: 1,
15
+ class: "text-sm text-oc-error flex items-center"
16
+ }, A = {
17
+ __name: "OcSectionItem",
18
+ props: {
19
+ title: String,
20
+ description: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ descriptionClass: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ icon: String,
29
+ modelValue: {
30
+ type: Boolean,
31
+ default: !1
32
+ },
33
+ isToggle: Boolean,
34
+ toggleProps: Object,
35
+ popperMessage: String,
36
+ errorMessage: String,
37
+ defaultValue: Boolean
38
+ },
39
+ emits: ["update:modelValue"],
40
+ setup(e, { emit: u }) {
41
+ const i = e, p = u;
42
+ return i.defaultValue === !0 && (i.modelValue === null || i.modelValue === void 0) && p("update:modelValue", !0), (n, m) => (t(), s("div", T, [
43
+ r("div", B, [
44
+ r("div", C, [
45
+ f(o(e.title) + " ", 1),
46
+ x(a(h), {
47
+ position: "top",
48
+ distance: 4
49
+ }, {
50
+ popper: d(() => [
51
+ r("div", M, o(e.popperMessage), 1)
52
+ ]),
53
+ default: d(() => [
54
+ e.icon ? (t(), c(a(k), {
55
+ key: 0,
56
+ width: "16",
57
+ height: "16",
58
+ class: "text-oc-text-400 cursor-pointer",
59
+ name: e.icon
60
+ }, null, 8, ["name"])) : l("", !0)
61
+ ]),
62
+ _: 1
63
+ })
64
+ ]),
65
+ e.description ? (t(), s("span", {
66
+ key: 0,
67
+ class: V(["text-oc-text-400 text-sm", e.descriptionClass])
68
+ }, o(e.description), 3)) : l("", !0),
69
+ e.errorMessage ? (t(), s("div", N, o(e.errorMessage), 1)) : l("", !0)
70
+ ]),
71
+ y(n.$slots, "actions", {}, () => [
72
+ e.isToggle ? (t(), c(a(v), S({
73
+ key: 0,
74
+ "model-value": e.modelValue
75
+ }, e.toggleProps, {
76
+ "onUpdate:modelValue": m[0] || (m[0] = (g) => n.$emit("update:modelValue", g))
77
+ }), null, 16, ["model-value"])) : l("", !0)
78
+ ])
79
+ ]));
80
+ }
81
+ };
82
+ export {
83
+ A as _
84
+ };
@@ -0,0 +1,148 @@
1
+ import { computed as h, openBlock as r, createBlock as m, unref as n, withCtx as k, createElementVNode as c, normalizeClass as l, createElementBlock as i, Fragment as g, renderList as v, createVNode as p, renderSlot as V, createCommentVNode as u, toDisplayString as x } from "vue";
2
+ import "dayjs";
3
+ import { _ as w } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as b } 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 C = {
14
+ key: 0,
15
+ class: "flex gap-3 border border-oc-gray-200 p-3 rounded cursor-pointer"
16
+ }, B = ["onClick"], T = ["src"], O = {
17
+ key: 0,
18
+ class: "flex text-sm text-oc-text-400 mt-2"
19
+ }, L = {
20
+ __name: "OcSelectOptions",
21
+ props: {
22
+ variant: {
23
+ type: String,
24
+ default: "grid"
25
+ },
26
+ optionType: {
27
+ type: String,
28
+ default: "text"
29
+ // text, icon, image
30
+ },
31
+ label: String,
32
+ hint: String,
33
+ errorMessage: String,
34
+ placeholder: String,
35
+ isDisabled: Boolean,
36
+ borderless: Boolean,
37
+ options: Array,
38
+ modelValue: [Array, String, Number],
39
+ isRequired: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ labelIcon: {
44
+ type: String,
45
+ default: ""
46
+ },
47
+ tooltipText: {
48
+ type: String,
49
+ default: ""
50
+ },
51
+ tooltipOptions: {
52
+ type: Object,
53
+ default: () => ({})
54
+ },
55
+ class: String
56
+ },
57
+ emits: {
58
+ "update:modelValue": []
59
+ },
60
+ setup(e, { emit: y }) {
61
+ const d = e, S = y, s = (a) => {
62
+ S("update:modelValue", a);
63
+ }, o = h(() => d.variant === "grid");
64
+ return (a, $) => (r(), m(n(w), {
65
+ label: e.label,
66
+ hint: e.hint,
67
+ "error-message": e.errorMessage,
68
+ "is-required": e.isRequired,
69
+ "label-icon": e.labelIcon,
70
+ "tooltip-text": e.tooltipText,
71
+ "tooltip-options": e.tooltipOptions
72
+ }, {
73
+ default: k(() => [
74
+ c("div", {
75
+ class: l(["gap-3", [
76
+ d.class,
77
+ o.value ? "grid-cols-3" : e.variant === "list2" ? "grid-cols-2" : "",
78
+ {
79
+ "w-full grid": e.optionType !== "icon",
80
+ "flex flex-row ": e.optionType === "icon"
81
+ }
82
+ ]])
83
+ }, [
84
+ e.optionType === "icon" ? (r(), i("div", C, [
85
+ (r(!0), i(g, null, v(e.options, (t) => (r(), i("div", {
86
+ key: t.value,
87
+ class: l(["p-1", {
88
+ "bg-oc-gray-200 rounded-sm": t.value.toString() === e.modelValue.toString()
89
+ }])
90
+ }, [
91
+ p(n(b), {
92
+ name: t.icon_name,
93
+ onClick: (f) => s(t.value)
94
+ }, null, 8, ["name", "onClick"])
95
+ ], 2))), 128))
96
+ ])) : (r(!0), i(g, { key: 1 }, v(e.options, (t) => (r(), i("div", {
97
+ key: t.value,
98
+ class: l(["cursor-pointer group items-start", {
99
+ "flex border border-oc-gray-200 p-3 rounded hover:shadow": !o.value,
100
+ "border-2 border-oc-primary": !o.value && t.value.toString() === e.modelValue.toString(),
101
+ "!border-0 hover:bg-oc-accent-1-50 flex": e.borderless
102
+ }]),
103
+ onClick: (f) => s(t.value)
104
+ }, [
105
+ V(a.$slots, "option", {
106
+ option: t,
107
+ selected: t.value.toString() === e.modelValue.toString()
108
+ }, () => [
109
+ t.preview ? (r(), i("img", {
110
+ key: 0,
111
+ class: l(["group-hover:shadow rounded", {
112
+ "border-2 border-oc-primary": o.value && t.value.toString() === e.modelValue.toString(),
113
+ "border border-oc-gray-200": o.value && t.value.toString() !== e.modelValue.toString() || !o.value,
114
+ "w-full": o.value,
115
+ "w-[50px]": !o.value
116
+ }]),
117
+ src: t.preview
118
+ }, null, 10, T)) : u("", !0),
119
+ c("div", {
120
+ class: l(["mt-2", [o.value ? "text-center" : "px-3", e.borderless ? "flex-1" : ""]])
121
+ }, [
122
+ c("span", {
123
+ class: l(["font-medium text-oc-text-400 group-hover:text-oc-text-500", {
124
+ "text-sm ": o.value,
125
+ "text-oc-text-400 group-hover:text-oc-text-500": o.value && t.value.toString() !== e.modelValue.toString(),
126
+ "text-oc-text-500": o.value && t.value.toString() === e.modelValue.toString()
127
+ }])
128
+ }, x(t.label), 3),
129
+ t.description ? (r(), i("div", O, x(t.description), 1)) : u("", !0)
130
+ ], 2),
131
+ e.borderless ? (r(), m(n(b), {
132
+ key: 1,
133
+ width: "16",
134
+ height: "16",
135
+ name: "check-2",
136
+ class: l(["text-oc-primary", t.value.toString() === e.modelValue.toString() ? "opacity-100" : "opacity-0"])
137
+ }, null, 8, ["class"])) : u("", !0)
138
+ ])
139
+ ], 10, B))), 128))
140
+ ], 2)
141
+ ]),
142
+ _: 3
143
+ }, 8, ["label", "hint", "error-message", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
144
+ }
145
+ };
146
+ export {
147
+ L as _
148
+ };
@@ -0,0 +1,53 @@
1
+ import { openBlock as i, createBlock as m, unref as e, normalizeProps as a, mergeProps as p, withCtx as r, createElementVNode as o, toDisplayString as n, createVNode as c, createElementBlock as l } from "vue";
2
+ import "dayjs";
3
+ import { T as d } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as s } 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 x = { class: "rounded-full share-icon w-fit cursor-pointer text-oc-text-400 p-3 border border-gray-200" }, h = { class: "px-3 py-2 text-oc-text-400 text-sm font-medium" }, f = {
14
+ key: 1,
15
+ class: "px-3 share-icon border border-oc-gray-200 rounded-full w-fit py-[6px] flex items-center gap-x-2"
16
+ }, u = { class: "text-sm" }, T = {
17
+ __name: "OcShareIcon",
18
+ props: {
19
+ text: String,
20
+ icon: String,
21
+ isOnlyIcon: Boolean,
22
+ tooltipOptions: {
23
+ type: Object
24
+ }
25
+ },
26
+ setup(t) {
27
+ return (y, g) => t.isOnlyIcon ? (i(), m(e(d), a(p({ key: 0 }, t.tooltipOptions)), {
28
+ popper: r(() => [
29
+ o("div", h, n(t.text), 1)
30
+ ]),
31
+ default: r(() => [
32
+ o("div", x, [
33
+ c(e(s), {
34
+ name: t.icon,
35
+ width: "20",
36
+ height: "20"
37
+ }, null, 8, ["name"])
38
+ ])
39
+ ]),
40
+ _: 1
41
+ }, 16)) : (i(), l("div", f, [
42
+ c(e(s), {
43
+ name: t.icon,
44
+ width: "20",
45
+ height: "20"
46
+ }, null, 8, ["name"]),
47
+ o("span", u, n(t.text), 1)
48
+ ]));
49
+ }
50
+ };
51
+ export {
52
+ T as _
53
+ };