sprintify-ui 0.8.67 → 0.8.68

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.
@@ -5537,8 +5537,13 @@ const ZA = ["innerHTML"], Go = /* @__PURE__ */ oe({
5537
5537
  visible: { type: Boolean, default: !0 },
5538
5538
  text: { default: null },
5539
5539
  class: { default: null },
5540
- floatingOptions: { default: void 0 },
5541
- interactive: { type: Boolean, default: !1 }
5540
+ floatingOptions: { default() {
5541
+ return {
5542
+ placement: "top-start"
5543
+ };
5544
+ } },
5545
+ interactive: { type: Boolean, default: !1 },
5546
+ dark: { type: Boolean, default: !1 }
5542
5547
  },
5543
5548
  setup(n) {
5544
5549
  const e = n, t = j(null), r = T(() => Is(t)), i = j(null), { floatingStyles: s, showTooltip: o } = L0(r, i, e.interactive, e.floatingOptions);
@@ -5571,9 +5576,11 @@ const ZA = ["innerHTML"], Go = /* @__PURE__ */ oe({
5571
5576
  default: te(() => [
5572
5577
  b(o) ? ve(l.$slots, "tooltip", { key: 0 }, () => [
5573
5578
  M("div", {
5574
- class: "bg-white shadow-md text-xs max-w-xs leading-snug ring-1 ring-black ring-opacity-10 text-slate-900 rounded-md pt-1.5 pb-2 px-3",
5579
+ class: U(["text-xs max-w-xs leading-snug rounded-md pt-1.5 pb-2 px-3", [
5580
+ l.dark ? "bg-slate-900 text-white" : "bg-white text-slate-900 ring-1 ring-black ring-opacity-10 shadow-md"
5581
+ ]]),
5575
5582
  innerHTML: l.text
5576
- }, null, 8, ZA)
5583
+ }, null, 10, ZA)
5577
5584
  ]) : se("", !0)
5578
5585
  ]),
5579
5586
  _: 3
@@ -8914,7 +8921,7 @@ const T_ = {
8914
8921
  }
8915
8922
  const E = Rn(() => {
8916
8923
  c();
8917
- }, 300);
8924
+ }, 400);
8918
8925
  function _(S) {
8919
8926
  return r.showEmptyOption ? !(S.value == null && !S.label.toLowerCase().includes(a.value.toLowerCase())) : !0;
8920
8927
  }
@@ -17,13 +17,16 @@ declare const __VLS_component: import("vue").DefineComponent<{
17
17
  class?: string[] | string | null | undefined;
18
18
  floatingOptions?: UseFloatingOptions;
19
19
  interactive?: boolean;
20
+ dark?: boolean;
20
21
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
21
22
  visible?: boolean;
22
23
  text?: string | null | undefined;
23
24
  class?: string[] | string | null | undefined;
24
25
  floatingOptions?: UseFloatingOptions;
25
26
  interactive?: boolean;
27
+ dark?: boolean;
26
28
  }> & Readonly<{}>, {
29
+ dark: boolean;
27
30
  class: string | string[] | null;
28
31
  text: string | null;
29
32
  visible: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.8.67",
3
+ "version": "0.8.68",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && vue-tsc && vite build",
@@ -276,7 +276,7 @@ function search() {
276
276
 
277
277
  const debouncedSearch = debounce(() => {
278
278
  search();
279
- }, 300);
279
+ }, 400);
280
280
 
281
281
  function filterOptions(option: RawOption): boolean {
282
282
  // Do nothing if showEmptyOption is false
@@ -33,6 +33,9 @@ const Template = (args) => ({
33
33
  export const Demo = Template.bind({});
34
34
  Demo.args = {};
35
35
 
36
+ export const Dark = Template.bind({});
37
+ Dark.args = { dark: true };
38
+
36
39
  const CustomSlotTemplate = (args) => ({
37
40
  components: {
38
41
  BaseCard,
@@ -28,7 +28,10 @@
28
28
  name="tooltip"
29
29
  >
30
30
  <div
31
- class="bg-white shadow-md text-xs max-w-xs leading-snug ring-1 ring-black ring-opacity-10 text-slate-900 rounded-md pt-1.5 pb-2 px-3"
31
+ class="text-xs max-w-xs leading-snug rounded-md pt-1.5 pb-2 px-3"
32
+ :class="[
33
+ dark ? 'bg-slate-900 text-white' : 'bg-white text-slate-900 ring-1 ring-black ring-opacity-10 shadow-md',
34
+ ]"
32
35
  v-html="text"
33
36
  />
34
37
  </slot>
@@ -52,12 +55,18 @@ const props = withDefaults(defineProps<{
52
55
  class?: string[] | string | null | undefined;
53
56
  floatingOptions?: UseFloatingOptions,
54
57
  interactive?: boolean,
58
+ dark?: boolean,
55
59
  }>(), {
56
60
  visible: true,
57
61
  text: null,
58
62
  class: null,
59
- floatingOptions: undefined,
63
+ floatingOptions() {
64
+ return {
65
+ placement: 'top-start',
66
+ };
67
+ },
60
68
  interactive: false,
69
+ dark: false,
61
70
  });
62
71
 
63
72
  const targetRef = ref<HTMLElement | null>(null);