@scalar/components 0.12.11 → 0.12.12

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdownItem.vue"],"names":[],"mappings":"AAgFA,iBAAS,cAAc;qBAsCM,GAAG;EAkB/B;AACD,QAAA,MAAM,eAAe;eAtFR,OAAO;;;;eAAP,OAAO;;;UA6FlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ScalarDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarDropdown/ScalarDropdownItem.vue"],"names":[],"mappings":"AA8EA,iBAAS,cAAc;qBAsCM,GAAG;EAkB/B;AACD,QAAA,MAAM,eAAe;eArFR,OAAO;;;;eAAP,OAAO;;;UA4FlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,18 +1,17 @@
1
- import { defineComponent as s, openBlock as i, createBlock as l, unref as t, withCtx as d, createElementVNode as p, normalizeClass as m, renderSlot as c } from "vue";
2
- import { MenuItem as b } from "@headlessui/vue";
3
- import { cva as u, cx as f } from "../../cva.js";
4
- const w = /* @__PURE__ */ s({
1
+ import { defineComponent as s, openBlock as i, createBlock as d, unref as t, withCtx as l, createElementVNode as c, normalizeClass as p, renderSlot as m } from "vue";
2
+ import { MenuItem as u } from "@headlessui/vue";
3
+ import { cva as b, cx as f } from "../../cva.js";
4
+ const C = /* @__PURE__ */ s({
5
5
  __name: "ScalarDropdownItem",
6
6
  props: {
7
7
  disabled: { type: Boolean }
8
8
  },
9
9
  emits: ["click"],
10
10
  setup(x) {
11
- const r = u({
11
+ const r = b({
12
12
  base: [
13
13
  // Layout
14
14
  "min-w-0 items-center gap-3 rounded px-2.5 py-1.5 text-left",
15
- "first-of-type:mt-0.75 last-of-type:mb-0.75",
16
15
  // Text / background style
17
16
  "truncate text-xs text-c-1",
18
17
  // Interaction
@@ -23,14 +22,14 @@ const w = /* @__PURE__ */ s({
23
22
  active: { true: "bg-b-2 text-c-1" }
24
23
  }
25
24
  });
26
- return (e, o) => (i(), l(t(b), { disabled: e.disabled }, {
27
- default: d(({ active: a }) => [
28
- p("button", {
29
- class: m(["item", t(f)("scalar-dropdown-item", t(r)({ active: a, disabled: e.disabled }))]),
25
+ return (e, o) => (i(), d(t(u), { disabled: e.disabled }, {
26
+ default: l(({ active: n }) => [
27
+ c("button", {
28
+ class: p(["item", t(f)("scalar-dropdown-item", t(r)({ active: n, disabled: e.disabled }))]),
30
29
  type: "button",
31
- onClick: o[0] || (o[0] = (n) => e.$emit("click", n))
30
+ onClick: o[0] || (o[0] = (a) => e.$emit("click", a))
32
31
  }, [
33
- c(e.$slots, "default")
32
+ m(e.$slots, "default")
34
33
  ], 2)
35
34
  ]),
36
35
  _: 3
@@ -38,5 +37,5 @@ const w = /* @__PURE__ */ s({
38
37
  }
39
38
  });
40
39
  export {
41
- w as default
40
+ C as default
42
41
  };
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/scalar/scalar.git",
11
11
  "directory": "packages/components"
12
12
  },
13
- "version": "0.12.11",
13
+ "version": "0.12.12",
14
14
  "engines": {
15
15
  "node": ">=18"
16
16
  },
@@ -71,8 +71,8 @@
71
71
  "vite-svg-loader": "^5.1.0",
72
72
  "vitest": "^1.6.0",
73
73
  "vue-tsc": "^2.0.13",
74
- "@scalar/build-tooling": "0.1.9",
75
74
  "@scalar/themes": "0.9.13",
75
+ "@scalar/build-tooling": "0.1.9",
76
76
  "@scalar/use-toasts": "0.7.4"
77
77
  },
78
78
  "scripts": {