@orchidui/core 1.12.0 → 1.14.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 (87) 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 +1 -1
  6. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  7. package/dist/DataDisplay/Overview/OcOverview.js +1 -1
  8. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  9. package/dist/DataDisplay/Table/OcTable.js +1 -1
  10. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  11. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  12. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  13. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  14. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  15. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  16. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  17. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  18. package/dist/Elements/Box/OcBox.js +1 -1
  19. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  20. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  21. package/dist/Elements/Header/OcHeader.js +1 -1
  22. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  23. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  24. package/dist/Elements/Sidebar/OcSidebar.js +2 -2
  25. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  26. package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
  27. package/dist/Feedback/Banner/OcBanner.js +1 -1
  28. package/dist/Feedback/Chip/OcChip.js +1 -1
  29. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  30. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  31. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  32. package/dist/Form/Button/OcButton.js +1 -1
  33. package/dist/Form/Calendar/OcCalendar.js +1 -1
  34. package/dist/Form/CardInput/OcCardInput.js +1 -1
  35. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  36. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  37. package/dist/Form/Criteria/OcCriteria.js +1 -1
  38. package/dist/Form/Cropper/OcCropper.js +1 -1
  39. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  40. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  41. package/dist/Form/Input/OcInput.js +1 -1
  42. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  43. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  44. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  45. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  46. package/dist/Form/Radio/OcRadio.js +1 -1
  47. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  48. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  49. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  50. package/dist/Form/Select/OcSelect.js +1 -1
  51. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  52. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  53. package/dist/Form/Slider/OcSlider.js +1 -1
  54. package/dist/Form/TextArea/OcTextArea.js +1 -1
  55. package/dist/Form/index.js +1 -1
  56. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  57. package/dist/MediaAndIcons/Icon/OcIcon.js +1 -1
  58. package/dist/{OcAccountSetupProgress-MAI2WW05.js → OcAccountSetupProgress-CdEgdgcY.js} +2 -2
  59. package/dist/{OcComplexCalendar-Be5nus0d.js → OcComplexCalendar-DBMEhTXr.js} +1 -1
  60. package/dist/{OcComplexDatePicker-B3GqIpKZ.js → OcComplexDatePicker-YsBpr0Jw.js} +1 -1
  61. package/dist/OcCropper-CvxnbkVg.js +253 -0
  62. package/dist/OcDataTable-DNQHTV5u.js +590 -0
  63. package/dist/{OcDraggableList-BFprNkhf.js → OcDraggableList-ChywEbvI.js} +2 -2
  64. package/dist/{OcEmojiPicker-CqJbnrUb.js → OcEmojiPicker-B4pvBfIx.js} +1 -1
  65. package/dist/{OcFilterForm-B01LDEe0.js → OcFilterForm-CNG0JY1X.js} +1 -1
  66. package/dist/OcFilterSearch-zfIRpntJ.js +117 -0
  67. package/dist/{OcFilterSearchFor-Cp5A8V3q.js → OcFilterSearchFor-Ce2cg7uw.js} +1 -1
  68. package/dist/{OcIcon-CJgBICxh.js → OcIcon-CSpRxnwd.js} +7 -7
  69. package/dist/OcModalCropper-CwFH7lyA.js +52 -0
  70. package/dist/{OcTimePicker-C9jC3YUX.js → OcTimePicker-Dxqp4zue.js} +1 -1
  71. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  72. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  73. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  74. package/dist/Overlay/Modal/OcModal.js +1 -1
  75. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  76. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  77. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  78. package/dist/{SubPlanCard-DWLm64NL.js → SubPlanCard-B296VqWh.js} +2 -2
  79. package/dist/{ThumbnailSection-C3R6IBMF.js → ThumbnailSection-Cl94yarQ.js} +1 -1
  80. package/dist/{ThumbnailTheme-zfUW5cmt.js → ThumbnailTheme-CnXoXfVt.js} +2 -2
  81. package/dist/{index-CyWu4Omf.js → index-D8xMbiHG.js} +894 -868
  82. package/dist/index.js +2 -2
  83. package/package.json +1 -1
  84. package/dist/OcCropper-DdK__CEa.js +0 -229
  85. package/dist/OcDataTable-C-RPPItG.js +0 -578
  86. package/dist/OcFilterSearch-9FuOZOmQ.js +0 -69
  87. package/dist/OcModalCropper-DiCYfTmn.js +0 -46
@@ -0,0 +1,117 @@
1
+ import { ref as c, computed as B, openBlock as s, createElementBlock as u, Fragment as x, createElementVNode as i, normalizeClass as O, createVNode as m, unref as r, withKeys as K, createSlots as N, withCtx as v, renderList as Q, createBlock as f, toDisplayString as z, createCommentVNode as S, nextTick as D } from "vue";
2
+ import { d as E, ay as F, az as I, B as w } from "./index-D8xMbiHG.js";
3
+ import { _ as U } from "./OcIcon-CSpRxnwd.js";
4
+ const j = { class: "flex gap-x-4" }, q = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, A = { class: "p-2 flex flex-col" }, J = {
5
+ __name: "OcFilterSearch",
6
+ props: {
7
+ isSearchOnly: Boolean,
8
+ searchOptions: Array,
9
+ selectedOption: String
10
+ },
11
+ emits: {
12
+ addQuery: [],
13
+ toggle: [],
14
+ "change-search-key": []
15
+ },
16
+ setup(t, { emit: C }) {
17
+ const h = C, y = t, l = c(!1), o = c(""), d = c(!1), p = c(), V = async () => {
18
+ l.value = !0, h("toggle", l), await D(), p.value.focus();
19
+ }, $ = B(() => y.searchOptions.find((n) => n.value === y.selectedOption)), b = (n) => {
20
+ h("change-search-key", n), d.value = !1;
21
+ };
22
+ return (n, a) => {
23
+ var g, k;
24
+ return s(), u(x, null, [
25
+ i("div", {
26
+ class: O(["w-full", l.value || t.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
27
+ }, [
28
+ i("div", j, [
29
+ m(r(E), {
30
+ ref_key: "searchInput",
31
+ ref: p,
32
+ modelValue: o.value,
33
+ "onUpdate:modelValue": a[1] || (a[1] = (e) => o.value = e),
34
+ placeholder: "Search something here",
35
+ class: "md:min-w-[310px]",
36
+ icon: (g = t.searchOptions) != null && g.length ? "" : "search",
37
+ onKeyup: a[2] || (a[2] = K(
38
+ () => {
39
+ n.$emit("addQuery", o.value);
40
+ },
41
+ ["enter"]
42
+ ))
43
+ }, N({ _: 2 }, [
44
+ (k = t.searchOptions) != null && k.length ? {
45
+ name: "trailing",
46
+ fn: v(() => [
47
+ m(r(F), {
48
+ modelValue: d.value,
49
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => d.value = e),
50
+ distance: 12,
51
+ skidding: -8
52
+ }, {
53
+ menu: v(() => [
54
+ i("div", A, [
55
+ (s(!0), u(x, null, Q(t.searchOptions, (e) => (s(), f(r(I), {
56
+ key: e.value,
57
+ class: "text-sm",
58
+ text: e.label,
59
+ active: e.value === t.selectedOption,
60
+ onClick: (L) => b(e.value)
61
+ }, null, 8, ["text", "active", "onClick"]))), 128))
62
+ ])
63
+ ]),
64
+ default: v(() => {
65
+ var e;
66
+ return [
67
+ i("div", q, [
68
+ i("span", null, z((e = $.value) == null ? void 0 : e.label), 1),
69
+ m(r(U), {
70
+ name: "chevron-down",
71
+ width: "14",
72
+ height: "14"
73
+ })
74
+ ])
75
+ ];
76
+ }),
77
+ _: 1
78
+ }, 8, ["modelValue"])
79
+ ]),
80
+ key: "0"
81
+ } : void 0
82
+ ]), 1032, ["modelValue", "icon"]),
83
+ t.isSearchOnly ? (s(), f(r(w), {
84
+ key: 0,
85
+ label: "Search",
86
+ variant: "secondary",
87
+ class: "shrink-0",
88
+ onClick: a[3] || (a[3] = () => {
89
+ n.$emit("addQuery", o.value), o.value = "";
90
+ })
91
+ })) : (s(), u("span", {
92
+ key: 1,
93
+ class: "py-3 text-base cursor-pointer flex normal-case items-center font-medium text-oc-text-400",
94
+ onClick: a[4] || (a[4] = () => {
95
+ l.value = !1, n.$emit("toggle", l.value), o.value = "";
96
+ })
97
+ }, " Clear "))
98
+ ])
99
+ ], 2),
100
+ t.isSearchOnly ? S("", !0) : (s(), u("div", {
101
+ key: 0,
102
+ class: O(l.value ? "max-w-0 overflow-hidden" : "")
103
+ }, [
104
+ l.value ? S("", !0) : (s(), f(r(w), {
105
+ key: 0,
106
+ variant: "secondary",
107
+ "left-icon": "search",
108
+ onClick: V
109
+ }))
110
+ ], 2))
111
+ ], 64);
112
+ };
113
+ }
114
+ };
115
+ export {
116
+ J as default
117
+ };
@@ -1,5 +1,5 @@
1
1
  import { computed as k, openBlock as a, createBlock as m, unref as n, withCtx as x, createElementVNode as f, createElementBlock as v, Fragment as b, renderList as p, createVNode as F, createCommentVNode as $ } from "vue";
2
- import { M as y, at as i } from "./index-CyWu4Omf.js";
2
+ import { M as y, at as i } from "./index-D8xMbiHG.js";
3
3
  const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
4
4
  __name: "OcFilterSearchFor",
5
5
  props: {
@@ -1,5 +1,5 @@
1
- import { ref as w, onMounted as h, watch as a, openBlock as d, createElementBlock as l } from "vue";
2
- const u = ["width", "height", "viewBox"], g = {
1
+ import { ref as w, onMounted as h, watch as a, openBlock as d, createElementBlock as u } from "vue";
2
+ const l = ["width", "height", "viewBox"], f = {
3
3
  __name: "OcIcon",
4
4
  props: {
5
5
  path: {
@@ -11,11 +11,11 @@ const u = ["width", "height", "viewBox"], g = {
11
11
  required: !0
12
12
  },
13
13
  width: {
14
- type: String,
14
+ type: [String, Number],
15
15
  default: "24"
16
16
  },
17
17
  height: {
18
- type: String,
18
+ type: [String, Number],
19
19
  default: "24"
20
20
  }
21
21
  },
@@ -48,16 +48,16 @@ const u = ["width", "height", "viewBox"], g = {
48
48
  () => {
49
49
  r();
50
50
  }
51
- ), (n, e) => (d(), l("svg", {
51
+ ), (n, e) => (d(), u("svg", {
52
52
  ref_key: "iconRef",
53
53
  ref: o,
54
54
  width: `${t.width}px`,
55
55
  height: `${t.height}px`,
56
56
  viewBox: `0 0 ${t.width} ${t.height}`,
57
57
  xmlns: "http://www.w3.org/2000/svg"
58
- }, null, 8, u));
58
+ }, null, 8, l));
59
59
  }
60
60
  };
61
61
  export {
62
- g as _
62
+ f as _
63
63
  };
@@ -0,0 +1,52 @@
1
+ import { ref as o, openBlock as v, createBlock as d, unref as r, withCtx as x, createVNode as O } from "vue";
2
+ import { aA as b } from "./index-D8xMbiHG.js";
3
+ import k from "./OcCropper-CvxnbkVg.js";
4
+ const h = {
5
+ __name: "OcModalCropper",
6
+ props: {
7
+ inputOptions: Array,
8
+ inputOptionValues: Object,
9
+ img: String,
10
+ maxSize: [String, Number]
11
+ },
12
+ emits: ["changeImage", "close", "update:input-options"],
13
+ setup(e, { emit: l }) {
14
+ const c = e, t = l, p = o();
15
+ o();
16
+ const s = {
17
+ onClick: () => t("close")
18
+ }, n = o(), i = o(c.link), m = o({
19
+ label: "Save",
20
+ onClick: () => {
21
+ i.value && t("update:input-options", i.value), n.value ? t("changeImage", {
22
+ url: n.value,
23
+ cropper: p.value
24
+ }) : t("close");
25
+ }
26
+ }), g = (a) => {
27
+ n.value = a.url, p.value = a.cropper;
28
+ };
29
+ return (a, u) => (v(), d(r(b), {
30
+ id: "modal-cropper-overlay-wrapper",
31
+ title: "Edit Image",
32
+ "is-close-icon": "",
33
+ "cancel-button-props": s,
34
+ "confirm-button-props": m.value
35
+ }, {
36
+ default: x(() => [
37
+ O(r(k), {
38
+ "input-options": e.inputOptions,
39
+ "input-option-values": e.inputOptionValues,
40
+ img: e.img,
41
+ "max-size": e.maxSize,
42
+ onChangeImage: g,
43
+ "onUpdate:inputOptions": u[0] || (u[0] = (f) => i.value = f)
44
+ }, null, 8, ["input-options", "input-option-values", "img", "max-size"])
45
+ ]),
46
+ _: 1
47
+ }, 8, ["confirm-button-props"]));
48
+ }
49
+ };
50
+ export {
51
+ h as default
52
+ };
@@ -1,5 +1,5 @@
1
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 { ay as S, aI as h, d as D } from "./index-CyWu4Omf.js";
2
+ import { ay as S, aI as h, d as D } from "./index-D8xMbiHG.js";
3
3
  import c from "dayjs";
4
4
  const w = {
5
5
  __name: "OcTimePicker",
@@ -1,4 +1,4 @@
1
- import { aw as r } from "../../index-CyWu4Omf.js";
1
+ import { aw as r } from "../../index-D8xMbiHG.js";
2
2
  export {
3
3
  r as ConfirmationModal
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ax as a } from "../../index-CyWu4Omf.js";
1
+ import { ax as a } from "../../index-D8xMbiHG.js";
2
2
  export {
3
3
  a as CopyTooltip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ay as r, az as p } from "../../index-CyWu4Omf.js";
1
+ import { ay as r, az as p } from "../../index-D8xMbiHG.js";
2
2
  export {
3
3
  r as Dropdown,
4
4
  p as DropdownItem
@@ -1,4 +1,4 @@
1
- import { aA as d, aB as e } from "../../index-CyWu4Omf.js";
1
+ import { aA as d, aB as e } from "../../index-D8xMbiHG.js";
2
2
  export {
3
3
  d as Modal,
4
4
  e as OcModalPage
@@ -1,4 +1,4 @@
1
- import { aC as r } from "../../index-CyWu4Omf.js";
1
+ import { aC as r } from "../../index-D8xMbiHG.js";
2
2
  export {
3
3
  r as SupportMenu
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aD as p } from "../../index-CyWu4Omf.js";
1
+ import { aD as p } from "../../index-D8xMbiHG.js";
2
2
  export {
3
3
  p as Tooltip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aE as e } from "../../index-CyWu4Omf.js";
1
+ import { aE as e } from "../../index-D8xMbiHG.js";
2
2
  export {
3
3
  e as WhiteList
4
4
  };
@@ -1,7 +1,7 @@
1
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 { at as _, B as w } from "./index-CyWu4Omf.js";
2
+ import { at as _, B as w } from "./index-D8xMbiHG.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { _ as F } from "./OcIcon-CJgBICxh.js";
4
+ import { _ as F } from "./OcIcon-CSpRxnwd.js";
5
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
6
  __name: "SubPlanCard",
7
7
  props: {
@@ -1,5 +1,5 @@
1
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-CyWu4Omf.js";
2
+ import { B as n } from "./index-D8xMbiHG.js";
3
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
4
  __name: "ThumbnailSection",
5
5
  props: {
@@ -1,6 +1,6 @@
1
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, at as v } from "./index-CyWu4Omf.js";
3
- import { _ as k } from "./OcIcon-CJgBICxh.js";
2
+ import { B as d, at as v } from "./index-D8xMbiHG.js";
3
+ import { _ as k } from "./OcIcon-CSpRxnwd.js";
4
4
  const x = { class: "w-full relative group" }, y = {
5
5
  key: 0,
6
6
  class: "m-auto"