@orchidui/core 1.20.1-10 → 1.20.1-11

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 (85) 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/NewTable/OcNewTable.js +1 -1
  7. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  8. package/dist/DataDisplay/Overview/OcOverview.js +1 -1
  9. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  10. package/dist/DataDisplay/Table/OcTable.js +1 -1
  11. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  12. package/dist/DataTable/useDataTable.js +51 -55
  13. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  14. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  15. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  16. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  17. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  18. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  19. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  20. package/dist/Elements/Box/OcBox.js +1 -1
  21. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  22. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  23. package/dist/Elements/Header/OcHeader.js +1 -1
  24. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  25. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  26. package/dist/Elements/Sidebar/OcSidebar.js +2 -2
  27. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  28. package/dist/Elements/TopBanner/OcTopBanner.js +1 -1
  29. package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
  30. package/dist/Feedback/Banner/OcBanner.js +1 -1
  31. package/dist/Feedback/Chip/OcChip.js +1 -1
  32. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  33. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  34. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  35. package/dist/Form/Button/OcButton.js +1 -1
  36. package/dist/Form/Calendar/OcCalendar.js +1 -1
  37. package/dist/Form/CardInput/OcCardInput.js +1 -1
  38. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  39. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  40. package/dist/Form/Criteria/OcCriteria.js +1 -1
  41. package/dist/Form/Cropper/OcCropper.js +1 -1
  42. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  43. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  44. package/dist/Form/Input/OcInput.js +1 -1
  45. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  46. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  47. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  48. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  49. package/dist/Form/Radio/OcRadio.js +1 -1
  50. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  51. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  52. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  53. package/dist/Form/Select/OcSelect.js +1 -1
  54. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  55. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  56. package/dist/Form/Slider/OcSlider.js +1 -1
  57. package/dist/Form/TextArea/OcTextArea.js +1 -1
  58. package/dist/Form/index.js +1 -1
  59. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  60. package/dist/{OcAccountSetupProgress-volIZxPE.js → OcAccountSetupProgress-DfoiLHu2.js} +1 -1
  61. package/dist/{OcComplexCalendar-rnP2VSsp.js → OcComplexCalendar--_bFtEot.js} +1 -1
  62. package/dist/{OcComplexDatePicker-zEY4nVMT.js → OcComplexDatePicker-DbdU2gXT.js} +1 -1
  63. package/dist/{OcCropper-Cyss09X7.js → OcCropper-D-C_zcUt.js} +1 -1
  64. package/dist/{OcDataTable-Br5xxpmF.js → OcDataTable-CqJoLJKU.js} +46 -46
  65. package/dist/{OcDraggableList-DiY8GBjy.js → OcDraggableList-CB6Ivfpa.js} +1 -1
  66. package/dist/{OcEmojiPicker-ChNCiWFy.js → OcEmojiPicker-BjaoJ6Vy.js} +1 -1
  67. package/dist/{OcFilterForm-3babUDzc.js → OcFilterForm-DkI_y74X.js} +1 -1
  68. package/dist/OcFilterSearch-BtCrwJ3a.js +123 -0
  69. package/dist/{OcFilterSearchFor-BMaewwyQ.js → OcFilterSearchFor-CN5J0xvQ.js} +1 -1
  70. package/dist/{OcModalCropper-BdONfm42.js → OcModalCropper-B6bXEcPo.js} +2 -2
  71. package/dist/{OcTimePicker-C818d_Uq.js → OcTimePicker-Da2iwC5z.js} +1 -1
  72. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  73. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  74. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  75. package/dist/Overlay/Modal/OcModal.js +1 -1
  76. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  77. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  78. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  79. package/dist/{SubPlanCard-Wf4QI_B5.js → SubPlanCard-BjsaEdF3.js} +1 -1
  80. package/dist/{ThumbnailSection-CXuuRnOY.js → ThumbnailSection-CxgjCB7A.js} +1 -1
  81. package/dist/{ThumbnailTheme-LyFY95ps.js → ThumbnailTheme-C_UuWBsc.js} +1 -1
  82. package/dist/{index-B6YvZe00.js → index-C_er_H5F.js} +104 -100
  83. package/dist/index.js +1 -1
  84. package/package.json +1 -1
  85. package/dist/OcFilterSearch-s6SZ45pz.js +0 -117
@@ -2454,7 +2454,7 @@ const Jt = {
2454
2454
  class: "border-b border-oc-gray-200"
2455
2455
  }, qn = {
2456
2456
  key: 0,
2457
- class: "p-0 bg-oc-gray-50 border-r border-oc-gray-200"
2457
+ class: "p-0 bg-oc-gray-50 border-r border-oc-gray-200 sticky left-0 z-30"
2458
2458
  }, Hn = { class: "flex p-3 items-center min-h-[35px] border-b border-oc-text-200" }, Yn = ["onClick"], Wn = { class: "px-5 py-3 truncate min-h-[34px] font-medium text-xs border-b border-oc-text-200 uppercase flex items-center gap-2 justify-between w-full" }, Kn = { class: "flex p-3 items-center min-h-[35px]" }, Gn = { class: "truncate" }, uf = {
2459
2459
  __name: "OcNewTable",
2460
2460
  props: {
@@ -2586,7 +2586,7 @@ const Jt = {
2586
2586
  const we = (U, G, q = !1) => {
2587
2587
  if (!c.value) return "";
2588
2588
  const X = [];
2589
- return (d.value.findIndex((re) => re.key === G) === 0 || U.stickyLeft) && X.push(`sticky left-0 ${q ? "z-30" : "z-20"}`), X.join(" ");
2589
+ return (d.value.findIndex((re) => re.key === G) === 0 || U.stickyLeft) && X.push(`!sticky ${m.value ? "left-8" : "left-0"} ${q ? "z-30" : "z-20"}`), X.join(" ");
2590
2590
  }, ke = (U) => {
2591
2591
  p.value.find((q) => f.value(q) === f.value(U)) ? p.value = p.value.filter(
2592
2592
  (q) => f.value(q) !== f.value(U)
@@ -2595,98 +2595,102 @@ const Jt = {
2595
2595
  const U = p.value.length === o.value.length;
2596
2596
  p.value = U ? [] : [...o.value];
2597
2597
  };
2598
- return (U, G) => (t(), i("div", Fn, [
2599
- U.$slots.before ? (t(), i("div", Un, [
2600
- $(U.$slots, "before")
2601
- ])) : u("", !0),
2602
- n("div", {
2603
- class: "w-full overflow-auto",
2604
- ref_key: "scrollContainerRef",
2605
- ref: O
2606
- }, [
2607
- n("table", {
2608
- ref_key: "tableRef",
2609
- ref: C,
2610
- class: "w-full text-left text-[13px] border-oc-gray-200",
2611
- style: { "table-layout": "fixed" }
2598
+ return (U, G) => (t(), i("div", null, [
2599
+ n("div", Fn, [
2600
+ U.$slots.before ? (t(), i("div", Un, [
2601
+ $(U.$slots, "before")
2602
+ ])) : u("", !0),
2603
+ n("div", {
2604
+ class: "w-full overflow-auto",
2605
+ ref_key: "scrollContainerRef",
2606
+ ref: O
2612
2607
  }, [
2613
- n("thead", null, [
2614
- n("tr", null, [
2615
- m.value ? (t(), i("th", qn, [
2616
- n("div", Hn, [
2617
- x(s(Oe), {
2618
- class: "items-center",
2619
- "model-value": p.value.length === o.value.length,
2620
- "onUpdate:modelValue": ge
2621
- }, null, 8, ["model-value"])
2622
- ])
2623
- ])) : u("", !0),
2624
- (t(!0), i(z, null, R(d.value, (q, X) => (t(), i("th", {
2625
- key: q.key,
2626
- class: v(["p-0 bg-oc-gray-50", [E.value && !X ? "shadow-left" : "", q.headerClass, we(q, q.key, !0), q.key === "actions" ? "cursor-default" : "cursor-pointer"]]),
2627
- onClick: (W) => h(q.key)
2628
- }, [
2629
- n("div", Wn, [
2630
- Z(k(q.label) + " ", 1),
2631
- q.key !== "actions" ? (t(), y(s(T), {
2632
- key: 0,
2633
- name: "arrow-down",
2634
- width: "14",
2635
- height: "14",
2636
- class: v([
2637
- "transition-transform duration-200",
2638
- g.value === q.key ? "text-blue-500" : "text-gray-400",
2639
- g.value === q.key && w.value === "asc" ? "scale-y-[-1]" : ""
2640
- ])
2641
- }, null, 8, ["class"])) : u("", !0)
2642
- ])
2643
- ], 10, Yn))), 128))
2644
- ])
2645
- ]),
2646
- n("tbody", null, [
2647
- (t(!0), i(z, null, R(A.value, (q, X) => (t(), i("tr", {
2648
- key: X,
2649
- class: "group/row"
2650
- }, [
2651
- m.value ? (t(), i("td", {
2652
- key: 0,
2653
- class: v(["p-0 bg-oc-bg-light border-r border-oc-gray-200", X !== A.value.length - 1 ? "border-b" : ""])
2654
- }, [
2655
- n("div", Kn, [
2656
- x(s(Oe), {
2657
- class: "items-center",
2658
- "model-value": p.value.some((W) => f.value(W) === f.value(U.field)),
2659
- "onUpdate:modelValue": (W) => ke(q)
2660
- }, null, 8, ["model-value", "onUpdate:modelValue"])
2661
- ])
2662
- ], 2)) : u("", !0),
2663
- (t(!0), i(z, null, R(d.value, (W, re) => (t(), i("td", {
2664
- key: W.key + X,
2665
- class: v(["p-0 bg-oc-bg-light", [
2666
- { "border-b border-oc-gray-200": X !== A.value.length - 1 },
2667
- we(W, W.key, !1)
2668
- ]])
2608
+ n("table", {
2609
+ ref_key: "tableRef",
2610
+ ref: C,
2611
+ class: "w-full text-left text-[13px] border-oc-gray-200",
2612
+ style: { "table-layout": "fixed" }
2613
+ }, [
2614
+ n("thead", null, [
2615
+ n("tr", null, [
2616
+ m.value ? (t(), i("th", qn, [
2617
+ n("div", Hn, [
2618
+ x(s(Oe), {
2619
+ class: "items-center",
2620
+ "model-value": p.value.length === o.value.length,
2621
+ "onUpdate:modelValue": ge
2622
+ }, null, 8, ["model-value"])
2623
+ ])
2624
+ ])) : u("", !0),
2625
+ (t(!0), i(z, null, R(d.value, (q, X) => (t(), i("th", {
2626
+ key: q.key,
2627
+ class: v(["p-0 bg-oc-gray-50", [E.value && !X ? "shadow-left" : "", q.headerClass, we(q, q.key, !0), q.key === "actions" ? "cursor-default" : "cursor-pointer"]]),
2628
+ onClick: (W) => h(q.key)
2629
+ }, [
2630
+ n("div", Wn, [
2631
+ Z(k(q.label) + " ", 1),
2632
+ q.key !== "actions" ? (t(), y(s(T), {
2633
+ key: 0,
2634
+ name: "arrow-down",
2635
+ width: "14",
2636
+ height: "14",
2637
+ class: v([
2638
+ "transition-transform duration-200",
2639
+ g.value === q.key ? "text-blue-500" : "text-gray-400",
2640
+ g.value === q.key && w.value === "asc" ? "scale-y-[-1]" : ""
2641
+ ])
2642
+ }, null, 8, ["class"])) : u("", !0)
2643
+ ])
2644
+ ], 10, Yn))), 128))
2645
+ ])
2646
+ ]),
2647
+ n("tbody", null, [
2648
+ (t(!0), i(z, null, R(A.value, (q, X) => (t(), i("tr", {
2649
+ key: X,
2650
+ class: "group/row"
2669
2651
  }, [
2670
- n("div", {
2671
- class: v(["px-5 py-3 text-[13px] flex gap-2 items-center justify-between w-full", W.class])
2652
+ m.value ? (t(), i("td", {
2653
+ key: 0,
2654
+ class: v(["p-0 bg-oc-bg-light border-r border-oc-gray-200 sticky left-0 z-20", X !== A.value.length - 1 ? "border-b" : ""])
2672
2655
  }, [
2673
- $(U.$slots, W.key, {
2674
- item: q,
2675
- data: q[W.key]
2676
- }, () => [
2677
- n("div", Gn, k(q[W.key] || "N/A"), 1)
2678
- ]),
2679
- W.isCopy && q[W.key] ? (t(), y(s(De), {
2680
- key: 0,
2681
- value: q[W.key],
2682
- class: "opacity-0 group-hover/row:opacity-100"
2683
- }, null, 8, ["value"])) : u("", !0)
2684
- ], 2)
2685
- ], 2))), 128))
2686
- ]))), 128))
2687
- ])
2656
+ n("div", Kn, [
2657
+ x(s(Oe), {
2658
+ class: "items-center",
2659
+ "model-value": p.value.some((W) => f.value(W) === f.value(U.field)),
2660
+ "onUpdate:modelValue": (W) => ke(q)
2661
+ }, null, 8, ["model-value", "onUpdate:modelValue"])
2662
+ ])
2663
+ ], 2)) : u("", !0),
2664
+ (t(!0), i(z, null, R(d.value, (W, re) => (t(), i("td", {
2665
+ key: W.key + X,
2666
+ class: v(["p-0 bg-oc-bg-light", [
2667
+ { "border-b border-oc-gray-200": X !== A.value.length - 1 },
2668
+ we(W, W.key, !1)
2669
+ ]])
2670
+ }, [
2671
+ n("div", {
2672
+ class: v(["px-5 py-3 text-[13px] flex gap-2 items-center justify-between w-full", W.class])
2673
+ }, [
2674
+ $(U.$slots, W.key, {
2675
+ item: q,
2676
+ data: q[W.key]
2677
+ }, () => [
2678
+ n("div", Gn, k(q[W.key] || "N/A"), 1)
2679
+ ]),
2680
+ W.isCopy && q[W.key] ? (t(), y(s(De), {
2681
+ key: 0,
2682
+ value: q[W.key],
2683
+ class: "opacity-0 group-hover/row:opacity-100"
2684
+ }, null, 8, ["value"])) : u("", !0)
2685
+ ], 2)
2686
+ ], 2))), 128))
2687
+ ]))), 128))
2688
+ ])
2689
+ ], 512),
2690
+ o.value.length ? u("", !0) : $(U.$slots, "empty", { key: 0 })
2688
2691
  ], 512)
2689
- ], 512)
2692
+ ]),
2693
+ $(U.$slots, "after")
2690
2694
  ]));
2691
2695
  }
2692
2696
  }, mf = {
@@ -6350,7 +6354,7 @@ const nt = /* @__PURE__ */ $e(po, [["render", xo]]), ho = { class: "flex" }, bo
6350
6354
  }, [
6351
6355
  g.$slots.trailing ? (t(), i("div", {
6352
6356
  key: 0,
6353
- class: v(["border-r py-2 border-gray-200 pr-3 flex items-center h-[inherit]", e.trailingClass])
6357
+ class: v(["border-r py-2 border-gray-200 pr-3 flex items-center h-full", e.trailingClass])
6354
6358
  }, [
6355
6359
  $(g.$slots, "trailing")
6356
6360
  ], 2)) : u("", !0),
@@ -6374,7 +6378,7 @@ const nt = /* @__PURE__ */ $e(po, [["render", xo]]), ho = { class: "flex" }, bo
6374
6378
  disabled: e.disabled,
6375
6379
  autocomplete: e.autocomplete,
6376
6380
  inputmode: e.inputMode,
6377
- class: "h-7 outline-none md:text-base text-lg w-full text-oc-text disabled:bg-transparent disabled:text-oc-text-300 text-ellipsis placeholder:font-normal placeholder:text-oc-text-300 bg-oc-bg-light"
6381
+ class: "h-7 outline-none md:text-base text-lg w-full text-oc-text bg-transparent disabled:text-oc-text-300 text-ellipsis placeholder:font-normal placeholder:text-oc-text-300"
6378
6382
  }, f.value, {
6379
6383
  type: p.value && d.value ? "text" : e.inputType,
6380
6384
  onFocus: w[0] || (w[0] = (A) => {
@@ -10804,16 +10808,16 @@ const $c = { class: "flex flex-col gap-y-2 w-full" }, Sc = {
10804
10808
  }), 128))
10805
10809
  ], 6)) : u("", !0);
10806
10810
  }
10807
- }, Jf = he(() => import("./OcDataTable-Br5xxpmF.js")), Zf = he(() => import("./OcFilterSearch-s6SZ45pz.js")), Qf = he(() => import("./OcFilterSearchFor-BMaewwyQ.js")), _f = he(() => import("./OcFilterForm-3babUDzc.js")), Am = he(
10808
- () => import("./OcComplexCalendar-rnP2VSsp.js")
10811
+ }, Jf = he(() => import("./OcDataTable-CqJoLJKU.js")), Zf = he(() => import("./OcFilterSearch-BtCrwJ3a.js")), Qf = he(() => import("./OcFilterSearchFor-CN5J0xvQ.js")), _f = he(() => import("./OcFilterForm-DkI_y74X.js")), Am = he(
10812
+ () => import("./OcComplexCalendar--_bFtEot.js")
10809
10813
  ), ev = he(
10810
- () => import("./OcComplexDatePicker-zEY4nVMT.js")
10811
- ), dt = he(() => import("./OcModalCropper-BdONfm42.js")), tv = he(() => import("./OcCropper-Cyss09X7.js")), Lm = he(() => import("./OcDraggable-DRsp4j4e.js")), lv = he(() => import("./OcDraggableList-DiY8GBjy.js")), av = he(() => import("./OcEmojiPicker-ChNCiWFy.js")), nv = he(
10812
- () => import("./ThumbnailTheme-LyFY95ps.js")
10814
+ () => import("./OcComplexDatePicker-DbdU2gXT.js")
10815
+ ), dt = he(() => import("./OcModalCropper-B6bXEcPo.js")), tv = he(() => import("./OcCropper-D-C_zcUt.js")), Lm = he(() => import("./OcDraggable-DRsp4j4e.js")), lv = he(() => import("./OcDraggableList-CB6Ivfpa.js")), av = he(() => import("./OcEmojiPicker-BjaoJ6Vy.js")), nv = he(
10816
+ () => import("./ThumbnailTheme-C_UuWBsc.js")
10813
10817
  ), iv = he(
10814
- () => import("./ThumbnailSection-CXuuRnOY.js")
10815
- ), sv = he(() => import("./SubPlanCard-Wf4QI_B5.js")), ov = he(() => import("./OcTimePopup-CrwbZ_Nx.js")), jm = he(() => import("./OcTimePicker-C818d_Uq.js")), rv = he(
10816
- () => import("./OcAccountSetupProgress-volIZxPE.js")
10818
+ () => import("./ThumbnailSection-CxgjCB7A.js")
10819
+ ), sv = he(() => import("./SubPlanCard-BjsaEdF3.js")), ov = he(() => import("./OcTimePopup-CrwbZ_Nx.js")), jm = he(() => import("./OcTimePicker-Da2iwC5z.js")), rv = he(
10820
+ () => import("./OcAccountSetupProgress-DfoiLHu2.js")
10817
10821
  );
10818
10822
  export {
10819
10823
  vf as $,
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { W as r, al as o, aY as t, a3 as n, a5 as i, au as p, _ as l, a6 as d, B as m, o as u, a as b, C as S, b as c, av as T, aI as g, aP as C, ay as x, az as P, c as I, aR as f, v as h, aO as O, p as F, aJ as B, aS as k, aA as v, aB as w, aT as A, a7 as L, U as D, M as H, T as M, a8 as _, aM as R, aL as y, aN as E, w as N, u as G, l as U, a9 as V, ac as j, ab as z, ad as W, x as q, a4 as J, d as K, e as Q, m as X, y as Y, z as Z, A as $, aC as aa, aQ as ea, t as sa, D as ra, N as oa, aD as ta, E as na, X as ia, k as pa, F as la, G as da, H as ma, af as ua, ag as ba, I as Sa, K as ca, a0 as Ta, f as ga, J as Ca, ah as xa, g as Pa, h as Ia, i as fa, ai as ha, q as Oa, j as Fa, r as Ba, aw as ka, an as va, aj as wa, aq as Aa, ap as La, am as Da, ao as Ha, ak as Ma, s as _a, S as Ra, ax as ya, Z as Ea, Y as Na, aa as Ga, aW as Ua, ar as Va, aE as ja, ae as za, L as Wa, P as qa, Q as Ja, O as Ka, R as Qa, $ as Xa, n as Ya, aV as Za, aU as $a, aX as ae, aK as ee, aF as se, as as re, V as oe, a2 as te, a1 as ne, at as ie, aG as pe } from "./index-B6YvZe00.js";
2
+ import { W as r, al as o, aY as t, a3 as n, a5 as i, au as p, _ as l, a6 as d, B as m, o as u, a as b, C as S, b as c, av as T, aI as g, aP as C, ay as x, az as P, c as I, aR as f, v as h, aO as O, p as F, aJ as B, aS as k, aA as v, aB as w, aT as A, a7 as L, U as D, M as H, T as M, a8 as _, aM as R, aL as y, aN as E, w as N, u as G, l as U, a9 as V, ac as j, ab as z, ad as W, x as q, a4 as J, d as K, e as Q, m as X, y as Y, z as Z, A as $, aC as aa, aQ as ea, t as sa, D as ra, N as oa, aD as ta, E as na, X as ia, k as pa, F as la, G as da, H as ma, af as ua, ag as ba, I as Sa, K as ca, a0 as Ta, f as ga, J as Ca, ah as xa, g as Pa, h as Ia, i as fa, ai as ha, q as Oa, j as Fa, r as Ba, aw as ka, an as va, aj as wa, aq as Aa, ap as La, am as Da, ao as Ha, ak as Ma, s as _a, S as Ra, ax as ya, Z as Ea, Y as Na, aa as Ga, aW as Ua, ar as Va, aE as ja, ae as za, L as Wa, P as qa, Q as Ja, O as Ka, R as Qa, $ as Xa, n as Ya, aV as Za, aU as $a, aX as ae, aK as ee, aF as se, as as re, V as oe, a2 as te, a1 as ne, at as ie, aG as pe } from "./index-C_er_H5F.js";
3
3
  import { _ as de } from "./OcProgressBar-lyqE5LZd.js";
4
4
  import { _ as ue } from "./OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-C-8H1oP2.js";
5
5
  import { _ as Se } from "./OcSwitchTabs-B7LfmG3z.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orchidui/core",
3
3
  "description": "Orchid UI, Library Vue 3 tailwind css",
4
- "version": "1.20.1-10",
4
+ "version": "1.20.1-11",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "vite build"
@@ -1,117 +0,0 @@
1
- import { ref as c, computed as b, createElementBlock as u, openBlock as s, Fragment as g, createElementVNode as r, createCommentVNode as O, normalizeClass as w, createVNode as m, createBlock as v, unref as i, withKeys as z, createSlots as K, withCtx as h, toDisplayString as N, renderList as Q, nextTick as A } from "vue";
2
- import { d as D, aA as E, aB as F, B as S } from "./index-B6YvZe00.js";
3
- import { _ as I } from "./OcIcon-CBf___w1.js";
4
- const U = { class: "flex gap-x-4" }, j = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, q = { 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 f = C, y = t, l = c(!1), o = c(""), d = c(!1), p = c(), V = b(() => y.searchOptions.find((n) => n.value === y.selectedOption)), $ = async () => {
18
- l.value = !0, f("toggle", l.value), await A(), p.value.focus();
19
- }, B = (n) => {
20
- f("change-search-key", n), d.value = !1;
21
- };
22
- return (n, a) => {
23
- var k, x;
24
- return s(), u(g, null, [
25
- r("div", {
26
- class: w(["w-full", l.value || t.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
27
- }, [
28
- r("div", U, [
29
- m(i(D), {
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
- "input-class": "!h-[28px]",
37
- icon: (k = t.searchOptions) != null && k.length ? "" : "search",
38
- onKeyup: a[2] || (a[2] = z((e) => n.$emit("addQuery", o.value), ["enter"]))
39
- }, K({ _: 2 }, [
40
- (x = t.searchOptions) != null && x.length ? {
41
- name: "trailing",
42
- fn: h(() => [
43
- m(i(E), {
44
- modelValue: d.value,
45
- "onUpdate:modelValue": a[0] || (a[0] = (e) => d.value = e),
46
- distance: 12,
47
- skidding: -8
48
- }, {
49
- menu: h(() => [
50
- r("div", q, [
51
- (s(!0), u(g, null, Q(t.searchOptions, (e) => (s(), v(i(F), {
52
- key: e.value,
53
- class: "text-sm",
54
- text: e.label,
55
- active: e.value === t.selectedOption,
56
- onClick: (L) => B(e.value)
57
- }, null, 8, ["text", "active", "onClick"]))), 128))
58
- ])
59
- ]),
60
- default: h(() => {
61
- var e;
62
- return [
63
- r("div", j, [
64
- r("span", null, N((e = V.value) == null ? void 0 : e.label), 1),
65
- m(i(I), {
66
- name: "chevron-down",
67
- width: "14",
68
- height: "14"
69
- })
70
- ])
71
- ];
72
- }),
73
- _: 1
74
- }, 8, ["modelValue"])
75
- ]),
76
- key: "0"
77
- } : void 0
78
- ]), 1032, ["modelValue", "icon"]),
79
- t.isSearchOnly ? (s(), v(i(S), {
80
- key: 0,
81
- label: "Search",
82
- variant: "secondary",
83
- class: "shrink-0",
84
- size: "small",
85
- onClick: a[3] || (a[3] = () => {
86
- n.$emit("addQuery", o.value), o.value = "";
87
- })
88
- })) : (s(), u("span", {
89
- key: 1,
90
- class: "text-base cursor-pointer flex normal-case items-center font-medium text-oc-text-400",
91
- onClick: a[4] || (a[4] = () => {
92
- l.value = !1, n.$emit("toggle", l.value), o.value = "";
93
- })
94
- }, " Clear "))
95
- ])
96
- ], 2),
97
- t.isSearchOnly ? O("", !0) : (s(), u("div", {
98
- key: 0,
99
- class: w(l.value ? "max-w-0 overflow-hidden" : "")
100
- }, [
101
- l.value ? O("", !0) : (s(), v(i(S), {
102
- key: 0,
103
- variant: "secondary",
104
- size: "small",
105
- class: "w-8",
106
- iconClass: "shrink-0",
107
- "left-icon": "search",
108
- onClick: $
109
- }))
110
- ], 2))
111
- ], 64);
112
- };
113
- }
114
- };
115
- export {
116
- J as default
117
- };