@romainbx/wpic-components 0.0.74 → 0.0.75

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.
@@ -2174,18 +2174,18 @@ const Og = ["is", "type", "disabled"], Mg = {
2174
2174
  }, u = {
2175
2175
  pmi: "bg-violet-800 border border-violet-800 focus:bg-violet-800 text-white disabled:bg-zinc-100 disabled:text-zinc-400 disabled:border-zinc-100 enabled:hover:bg-violet-900 enabled:hover:border-violet-900 active:scale-95 enabled:transform",
2176
2176
  // 'wpic-tools': 'border-none! bg-linear-to-b from-lime-500 to-lime-500 text-white disabled:text-white/50 border-none shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:active:shadow-inner enabled:hover:from-lime-400 enabled:hover:to-lime-400 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] dark:from-lime-700 dark:to-lime-700 dark:enabled:active:shadow-inner dark:enabled:hover:from-lime-600 dark:enabled:hover:to-lime-600'
2177
- "wpic-tools": "border-none! bg-linear-to-b bg-lime-500 text-white disabled:text-white/50 border-none shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:active:shadow-inner enabled:hover:bg-lime-400 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] dark:bg-lime-700 dark:enabled:active:shadow-inner dark:enabled:hover:bg-lime-600"
2177
+ "wpic-tools": "border-none! bg-linear-to-b bg-wpic-600 text-white disabled:text-white/50 border-none shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:active:shadow-inner enabled:hover:bg-wpic-500 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] dark:bg-wpic-700 dark:enabled:active:shadow-inner dark:enabled:hover:bg-wpic-600"
2178
2178
  }, d = {
2179
2179
  pmi: "bg-white text-violet-800 border-zinc-400 dark:border-zinc-700 dark:text-zinc-200 dark:bg-zinc-700 dark:hover:bg-zinc-600 dark:hover:border-zinc-600 disabled:text-zinc-400 active:scale-95 enabled:transform",
2180
2180
  // 'wpic-tools': 'border-none! bg-linear-to-b from-gray-500 to-gray-600 text-white disabled:text-white/50 shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:active:shadow-inner enabled:hover:from-gray-400 enabled:hover:to-gray-500 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] dark:from-gray-700 dark:to-gray-700 dark:enabled:active:shadow-inner dark:enabled:hover:from-gray-600 dark:enabled:hover:to-gray-600'
2181
- "wpic-tools": "border-none! bg-linear-to-b bg-gray-500 text-white disabled:text-white/50 shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:active:shadow-inner enabled:hover:bg-gray-400 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] dark:bg-gray-700 dark:enabled:active:shadow-inner dark:enabled:hover:bg-gray-600"
2181
+ "wpic-tools": "border-none! bg-linear-to-b bg-gray-400 text-white disabled:text-white/50 shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:active:shadow-inner enabled:hover:bg-gray-300 enabled:active:text-white/80 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] dark:bg-gray-800 dark:enabled:active:shadow-inner dark:enabled:hover:bg-gray-700"
2182
2182
  }, f = {
2183
2183
  pmi: "",
2184
2184
  "wpic-tools": "border-none! text-white bg-linear-to-b bg-red-500 disabled:text-red-600/50 border-red-500 enabled:hover:bg-red-400 shadow-[0_1px_0_0_--theme(--color-white/30%)_inset,0_-1px_1px_0_--theme(--color-black/5%)_inset] enabled:hover:border-red-600 enabled:active:shadow-inner enabled:active:text-white/80 enabled:active:bg-red-700 enabled:active:border-red-700 dark:bg-red-400/70 dark:border-red-400/70"
2185
2185
  }, h = {
2186
2186
  pmi: "border-zinc-300 dark:border-zinc-700 dark:text-zinc-300",
2187
2187
  // 'wpic-tools': 'border-gray-200 bg-white shadow-sm text-gray-700 enabled:hover:bg-gray-300 enabled:hover:border-gray-300 enabled:active:bg-gray-200 enabled:active:border-gray-200 enabled:active:shadow-inner disabled:bg-gray-100 disabled:text-zinc-400 disabled:border-0 dark:bg-gray-930 dark:border-gray-930 dark:text-gray-300 dark:enabled:hover:bg-gray-920 dark:enabled:hover:border-gray-920 dark:enabled:active:bg-gray-930 dark:enabled:active:border-gray-930 dark:disabled:text-gray-700 dark:disabled:bg-gray-940'
2188
- "wpic-tools": " text-gray-950 disabled:text-gray-950/50 border-none ring-1 ring-black/5 shadow-xs enabled:hover:bg-gray-50 enabled:active:text-gray-950/60 dark:bg-gray-900 dark:text-white dark:disabled:text-white/50 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] enabled:active:shadow-inner dark:hover:bg-gray-800 dark:enabled:active:text-white/80"
2188
+ "wpic-tools": " text-gray-950 disabled:text-gray-950/50 border-none ring-1 ring-black/5 shadow-xs enabled:hover:bg-gray-50 enabled:active:text-gray-950/60 bg-white dark:bg-transparent dark:ring-1 dark:ring-gray-800 dark:text-white dark:disabled:text-white/50 dark:shadow-[0_1px_0_0_--theme(--color-white/5%)_inset,0_0_0_1px_--theme(--color-white/2%)_inset] enabled:active:shadow-inner dark:hover:bg-white/10 dark:enabled:active:text-white/80"
2189
2189
  }, p = {
2190
2190
  pmi: "text-violet-800 hover:underline",
2191
2191
  "wpic-tools": "text-lime-800 hover:underline"
@@ -23796,14 +23796,16 @@ const Fp = /* @__PURE__ */ ye(X4, [["render", nD]]), rD = { class: "flex gap-3"
23796
23796
  ])
23797
23797
  ], 2));
23798
23798
  }
23799
- }), $D = { class: "wpic-tabs flex border-b-2 dark:border-gray-930 overflow-x-auto overflow-y-hidden" }, AD = ["onClick"], ED = {
23799
+ }), $D = ["onClick"], AD = {
23800
23800
  name: "WpicTabs"
23801
- }, DD = /* @__PURE__ */ Object.assign(ED, {
23801
+ }, ED = /* @__PURE__ */ Object.assign(AD, {
23802
23802
  props: {
23803
23803
  modelValue: {
23804
23804
  type: String,
23805
23805
  required: !0
23806
23806
  },
23807
+ pills: Boolean,
23808
+ contrastPills: Boolean,
23807
23809
  nowrap: Boolean
23808
23810
  },
23809
23811
  emits: ["update:modelValue"],
@@ -23814,12 +23816,19 @@ const Fp = /* @__PURE__ */ ye(X4, [["render", nD]]), rD = { class: "flex gap-3"
23814
23816
  i.value.push(l);
23815
23817
  }, a = de(() => n.modelValue);
23816
23818
  return Si("addTab", s), Si("modelValue", a), (l, c) => (x(), C($e, null, [
23817
- T("div", $D, [
23819
+ T("div", {
23820
+ class: G(["wpic-tabs flex dark:border-gray-930 overflow-x-auto overflow-y-hidden", { "border-b-[1px]": !t.pills }])
23821
+ }, [
23818
23822
  (x(!0), C($e, null, We(i.value, (u) => (x(), C("div", {
23819
23823
  key: u.name,
23820
- class: G(["border-b items-center flex leading-snug cursor-pointer py-3 px-6 -mb-[2px] font-medium", {
23821
- "dark:border-gray-930": u.name != t.modelValue,
23822
- "border-b-2 text-lime-500 border-b-lime-500 dark:text-lime-600 dark:border-b-lime-600": u.name === t.modelValue,
23824
+ class: G(["items-center flex leading-snug cursor-pointer px-6 -mb-[px]", {
23825
+ "py-2": t.pills,
23826
+ "border-b-[2px] border-transparent py-3": !t.pills,
23827
+ "dark:border-gray-930 hover:text-gray-800 dark:hover:text-gray-400 hover:border-gray-200": u.name != t.modelValue,
23828
+ "text-wpic-500 border-b-wpic-500 dark:text-wpic-600 dark:border-b-wpic-600": !t.pills && u.name === t.modelValue,
23829
+ "rounded-lg": t.pills,
23830
+ "bg-black/5 dark:bg-white/10 text-gray-800 dark:!text-gray-300": t.pills && u.name === t.modelValue,
23831
+ "bg-gray-900 dark:bg-gray-300! text-white! dark:text-gray-800!": t.pills && t.contrastPills && u.name === t.modelValue,
23823
23832
  "text-gray-500 dark:text-gray-500": !u.disabled,
23824
23833
  "text-gray-300 dark:text-gray-700": u.disabled
23825
23834
  }]),
@@ -23830,16 +23839,16 @@ const Fp = /* @__PURE__ */ ye(X4, [["render", nD]]), rD = { class: "flex gap-3"
23830
23839
  class: G({ "whitespace-nowrap text-ellipsis overflow-hidden": t.nowrap })
23831
23840
  }, be(u.label), 3)
23832
23841
  ])
23833
- ], 10, AD))), 128))
23834
- ]),
23842
+ ], 10, $D))), 128))
23843
+ ], 2),
23835
23844
  T("div", null, [
23836
23845
  Me(l.$slots, "default")
23837
23846
  ])
23838
23847
  ], 64));
23839
23848
  }
23840
- }), ND = {
23849
+ }), DD = {
23841
23850
  name: "WpicTabPane"
23842
- }, LD = /* @__PURE__ */ Object.assign(ND, {
23851
+ }, ND = /* @__PURE__ */ Object.assign(DD, {
23843
23852
  props: {
23844
23853
  label: {
23845
23854
  type: String,
@@ -23873,76 +23882,76 @@ const Fp = /* @__PURE__ */ ye(X4, [["render", nD]]), rD = { class: "flex gap-3"
23873
23882
  Me(o.$slots, "default")
23874
23883
  ], 2)) : re("", !0);
23875
23884
  }
23876
- }), ID = {}, BD = {
23885
+ }), LD = {}, ID = {
23877
23886
  xmlns: "http://www.w3.org/2000/svg",
23878
23887
  fill: "none",
23879
23888
  viewBox: "0 0 24 24",
23880
23889
  "stroke-width": "1.5",
23881
23890
  stroke: "currentColor"
23882
- }, PD = /* @__PURE__ */ T("path", {
23891
+ }, BD = /* @__PURE__ */ T("path", {
23883
23892
  "stroke-linecap": "round",
23884
23893
  "stroke-linejoin": "round",
23885
23894
  d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"
23886
- }, null, -1), VD = [
23887
- PD
23895
+ }, null, -1), PD = [
23896
+ BD
23888
23897
  ];
23889
- function RD(t, e) {
23890
- return x(), C("svg", BD, VD);
23898
+ function VD(t, e) {
23899
+ return x(), C("svg", ID, PD);
23891
23900
  }
23892
- const _D = /* @__PURE__ */ ye(ID, [["render", RD]]), jD = {}, zD = {
23901
+ const RD = /* @__PURE__ */ ye(LD, [["render", VD]]), _D = {}, jD = {
23893
23902
  xmlns: "http://www.w3.org/2000/svg",
23894
23903
  fill: "none",
23895
23904
  viewBox: "0 0 24 24",
23896
23905
  "stroke-width": "1.5",
23897
23906
  stroke: "currentColor"
23898
- }, FD = /* @__PURE__ */ T("path", {
23907
+ }, zD = /* @__PURE__ */ T("path", {
23899
23908
  "stroke-linecap": "round",
23900
23909
  "stroke-linejoin": "round",
23901
23910
  d: "m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"
23902
- }, null, -1), HD = [
23903
- FD
23911
+ }, null, -1), FD = [
23912
+ zD
23904
23913
  ];
23905
- function WD(t, e) {
23906
- return x(), C("svg", zD, HD);
23914
+ function HD(t, e) {
23915
+ return x(), C("svg", jD, FD);
23907
23916
  }
23908
- const qD = /* @__PURE__ */ ye(jD, [["render", WD]]), UD = {}, KD = {
23917
+ const WD = /* @__PURE__ */ ye(_D, [["render", HD]]), qD = {}, UD = {
23909
23918
  xmlns: "http://www.w3.org/2000/svg",
23910
23919
  fill: "none",
23911
23920
  viewBox: "0 0 24 24",
23912
23921
  "stroke-width": "1.5",
23913
23922
  stroke: "currentColor"
23914
- }, YD = /* @__PURE__ */ T("path", {
23923
+ }, KD = /* @__PURE__ */ T("path", {
23915
23924
  "stroke-linecap": "round",
23916
23925
  "stroke-linejoin": "round",
23917
23926
  d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
23918
- }, null, -1), JD = [
23919
- YD
23927
+ }, null, -1), YD = [
23928
+ KD
23920
23929
  ];
23921
- function GD(t, e) {
23922
- return x(), C("svg", KD, JD);
23930
+ function JD(t, e) {
23931
+ return x(), C("svg", UD, YD);
23923
23932
  }
23924
- const ZD = /* @__PURE__ */ ye(UD, [["render", GD]]), XD = {}, QD = {
23933
+ const GD = /* @__PURE__ */ ye(qD, [["render", JD]]), ZD = {}, XD = {
23925
23934
  xmlns: "http://www.w3.org/2000/svg",
23926
23935
  fill: "none",
23927
23936
  viewBox: "0 0 24 24",
23928
23937
  "stroke-width": "1.5",
23929
23938
  stroke: "currentColor"
23930
- }, e6 = /* @__PURE__ */ T("path", {
23939
+ }, QD = /* @__PURE__ */ T("path", {
23931
23940
  "stroke-linecap": "round",
23932
23941
  "stroke-linejoin": "round",
23933
23942
  d: "m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
23934
- }, null, -1), t6 = [
23935
- e6
23943
+ }, null, -1), e6 = [
23944
+ QD
23936
23945
  ];
23937
- function n6(t, e) {
23938
- return x(), C("svg", QD, t6);
23946
+ function t6(t, e) {
23947
+ return x(), C("svg", XD, e6);
23939
23948
  }
23940
- const r6 = /* @__PURE__ */ ye(XD, [["render", n6]]), i6 = { class: "w-6" }, o6 = { class: "flex-1" }, s6 = {
23949
+ const n6 = /* @__PURE__ */ ye(ZD, [["render", t6]]), r6 = { class: "w-6" }, i6 = { class: "flex-1" }, o6 = {
23941
23950
  key: 0,
23942
23951
  class: "mb-2"
23943
- }, a6 = {
23952
+ }, s6 = {
23944
23953
  name: "WpicAlert"
23945
- }, l6 = /* @__PURE__ */ Object.assign(a6, {
23954
+ }, a6 = /* @__PURE__ */ Object.assign(s6, {
23946
23955
  props: {
23947
23956
  title: String,
23948
23957
  text: String,
@@ -23961,23 +23970,23 @@ const r6 = /* @__PURE__ */ ye(XD, [["render", n6]]), i6 = { class: "w-6" }, o6 =
23961
23970
  "bg-green-50 text-green-950 dark:text-green-200 dark:bg-green-950 text-opacity-75": t.success
23962
23971
  }])
23963
23972
  }, [
23964
- T("div", i6, [
23965
- t.warning ? (x(), ve(_D, {
23973
+ T("div", r6, [
23974
+ t.warning ? (x(), ve(RD, {
23966
23975
  key: 0,
23967
23976
  class: "w-full aspect-square"
23968
- })) : t.info ? (x(), ve(qD, {
23977
+ })) : t.info ? (x(), ve(WD, {
23969
23978
  key: 1,
23970
23979
  class: "w-full aspect-square"
23971
- })) : t.success ? (x(), ve(ZD, {
23980
+ })) : t.success ? (x(), ve(GD, {
23972
23981
  key: 2,
23973
23982
  class: "w-full aspect-square"
23974
- })) : t.error ? (x(), ve(r6, {
23983
+ })) : t.error ? (x(), ve(n6, {
23975
23984
  key: 3,
23976
23985
  class: "w-full aspect-square"
23977
23986
  })) : re("", !0)
23978
23987
  ]),
23979
- T("div", o6, [
23980
- t.title ? (x(), C("div", s6, be(t.title), 1)) : re("", !0),
23988
+ T("div", i6, [
23989
+ t.title ? (x(), C("div", o6, be(t.title), 1)) : re("", !0),
23981
23990
  T("span", {
23982
23991
  class: G(["", {
23983
23992
  "text-gray-950 dark:text-gray-200 text-opacity-75": !t.warning && !t.info && !t.error && !t.success,
@@ -24021,19 +24030,19 @@ function Hp() {
24021
24030
  }
24022
24031
  };
24023
24032
  }
24024
- const c6 = {
24033
+ const l6 = {
24025
24034
  key: 0,
24026
24035
  class: "confirm-modal-overlay z-40"
24027
- }, u6 = { class: "bg-white dark:border dark:border-gray-900 dark:bg-gray-940 p-6 rounded-lg w-128 flex flex-col" }, d6 = { class: "text-lg font-semibold mb-6" }, f6 = { class: "mb-12" }, h6 = { class: "flex justify-end" }, p6 = {
24036
+ }, c6 = { class: "bg-white dark:border dark:border-gray-900 dark:bg-gray-940 p-6 rounded-lg w-128 flex flex-col" }, u6 = { class: "text-lg font-semibold mb-6" }, d6 = { class: "mb-12" }, f6 = { class: "flex justify-end" }, h6 = {
24028
24037
  name: "WpicConfirm"
24029
- }, m6 = /* @__PURE__ */ Object.assign(p6, {
24038
+ }, p6 = /* @__PURE__ */ Object.assign(h6, {
24030
24039
  setup(t) {
24031
24040
  const { visible: e, title: n, text: r, positive: i, negative: o, onConfirm: s, onCancel: a } = Hp();
24032
- return (l, c) => B(e) ? (x(), C("div", c6, [
24033
- T("div", u6, [
24034
- T("div", d6, be(B(n)), 1),
24035
- T("div", f6, be(B(r)), 1),
24036
- T("div", h6, [
24041
+ return (l, c) => B(e) ? (x(), C("div", l6, [
24042
+ T("div", c6, [
24043
+ T("div", u6, be(B(n)), 1),
24044
+ T("div", d6, be(B(r)), 1),
24045
+ T("div", f6, [
24037
24046
  le(To, { onClick: B(a) }, {
24038
24047
  default: Se(() => [
24039
24048
  Ie("Cancel")
@@ -24054,15 +24063,15 @@ const c6 = {
24054
24063
  ])
24055
24064
  ])) : re("", !0);
24056
24065
  }
24057
- }), g6 = /* @__PURE__ */ ye(m6, [["__scopeId", "data-v-613542ab"]]), ia = { WpicColorPicker: wf, WpicAlert: l6, WpicToggleSwitch: bf, WpicAdvDateField: xD, WpicCalendar: Wl, WpicTextarea: xf, WpicDialog: TD, WpicSlidePanel: kD, WpicDateField: aD, WpicFormInput: Ki, WpicButton: To, WpicBadge: A4, WpicTextEditor: a4, WpicInputGroup: Bg, WpicButtonGroup: Dg, WpicForm: Vg, WpicFormField: kf, WpicSpinner: Gr, WpicTooltip: Sf, WpicPopover: mr, WpicChoiceList: vf, WpicCard: t5, WpicCardSection: o5, WpicProgressBar: c5, WpicTag: f5, WpicTagGroup: p5, WpicPagination: J5, WpicLoadingPanel: w5, WpicTable: wS, WpicTableColumn: kS, WpicTabs: DD, WpicTabPane: LD, WpicConfirm: g6 };
24066
+ }), m6 = /* @__PURE__ */ ye(p6, [["__scopeId", "data-v-613542ab"]]), ia = { WpicColorPicker: wf, WpicAlert: a6, WpicToggleSwitch: bf, WpicAdvDateField: xD, WpicCalendar: Wl, WpicTextarea: xf, WpicDialog: TD, WpicSlidePanel: kD, WpicDateField: aD, WpicFormInput: Ki, WpicButton: To, WpicBadge: A4, WpicTextEditor: a4, WpicInputGroup: Bg, WpicButtonGroup: Dg, WpicForm: Vg, WpicFormField: kf, WpicSpinner: Gr, WpicTooltip: Sf, WpicPopover: mr, WpicChoiceList: vf, WpicCard: t5, WpicCardSection: o5, WpicProgressBar: c5, WpicTag: f5, WpicTagGroup: p5, WpicPagination: J5, WpicLoadingPanel: w5, WpicTable: wS, WpicTableColumn: kS, WpicTabs: ED, WpicTabPane: ND, WpicConfirm: m6 };
24058
24067
  function Wp(t, e) {
24059
24068
  for (const n in e)
24060
24069
  Object.prototype.hasOwnProperty.call(e, n) && (typeof e[n] == "object" && t[n] ? Wp(t[n], e[n]) : t[n] = e[n]);
24061
24070
  }
24062
- const y6 = {
24071
+ const g6 = {
24063
24072
  useConfirm: Hp
24064
24073
  };
24065
- function v6(t, e) {
24074
+ function y6(t, e) {
24066
24075
  Wp(pe, e);
24067
24076
  for (const n in ia)
24068
24077
  if (ia.hasOwnProperty(n)) {
@@ -24070,12 +24079,12 @@ function v6(t, e) {
24070
24079
  t.component(r.name, r);
24071
24080
  }
24072
24081
  }
24073
- const w6 = {
24074
- install: v6,
24075
- composables: y6,
24082
+ const x6 = {
24083
+ install: y6,
24084
+ composables: g6,
24076
24085
  options: pe
24077
24086
  };
24078
24087
  export {
24079
- w6 as default,
24088
+ x6 as default,
24080
24089
  Hp as useConfirm
24081
24090
  };