@tb-dev/vue-components 0.2.0 → 0.2.2

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 (3) hide show
  1. package/dist/index.css +65 -65
  2. package/dist/index.js +28 -12
  3. package/package.json +14 -14
package/dist/index.css CHANGED
@@ -1,73 +1,73 @@
1
- /*! tailwindcss v4.1.6 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.1.7 | MIT License | https://tailwindcss.com */
2
2
  :root {
3
- --background: oklch(1 0 0);
4
- --foreground: oklch(.141 .005 285.823);
5
- --card: oklch(1 0 0);
6
- --card-foreground: oklch(.141 .005 285.823);
7
- --popover: oklch(1 0 0);
8
- --popover-foreground: oklch(.141 .005 285.823);
9
- --primary: oklch(.21 .006 285.885);
10
- --primary-foreground: oklch(.985 0 0);
11
- --secondary: oklch(.967 .001 286.375);
12
- --secondary-foreground: oklch(.21 .006 285.885);
13
- --muted: oklch(.967 .001 286.375);
14
- --muted-foreground: oklch(.552 .016 285.938);
15
- --accent: oklch(.967 .001 286.375);
16
- --accent-foreground: oklch(.21 .006 285.885);
17
- --destructive: oklch(.577 .245 27.325);
18
- --destructive-foreground: oklch(.577 .245 27.325);
19
- --border: oklch(.92 .004 286.32);
20
- --input: oklch(.92 .004 286.32);
21
- --ring: oklch(.705 .015 286.067);
22
- --chart-1: oklch(.646 .222 41.116);
23
- --chart-2: oklch(.6 .118 184.704);
24
- --chart-3: oklch(.398 .07 227.392);
25
- --chart-4: oklch(.828 .189 84.429);
26
- --chart-5: oklch(.769 .188 70.08);
27
- --sidebar: oklch(.985 0 0);
28
- --sidebar-foreground: oklch(.141 .005 285.823);
29
- --sidebar-primary: oklch(.21 .006 285.885);
30
- --sidebar-primary-foreground: oklch(.985 0 0);
31
- --sidebar-accent: oklch(.967 .001 286.375);
32
- --sidebar-accent-foreground: oklch(.21 .006 285.885);
33
- --sidebar-border: oklch(.92 .004 286.32);
34
- --sidebar-ring: oklch(.705 .015 286.067);
3
+ --background: oklch(100% 0 0);
4
+ --foreground: oklch(14.1% .005 285.823);
5
+ --card: oklch(100% 0 0);
6
+ --card-foreground: oklch(14.1% .005 285.823);
7
+ --popover: oklch(100% 0 0);
8
+ --popover-foreground: oklch(14.1% .005 285.823);
9
+ --primary: oklch(21% .006 285.885);
10
+ --primary-foreground: oklch(98.5% 0 0);
11
+ --secondary: oklch(96.7% .001 286.375);
12
+ --secondary-foreground: oklch(21% .006 285.885);
13
+ --muted: oklch(96.7% .001 286.375);
14
+ --muted-foreground: oklch(55.2% .016 285.938);
15
+ --accent: oklch(96.7% .001 286.375);
16
+ --accent-foreground: oklch(21% .006 285.885);
17
+ --destructive: oklch(57.7% .245 27.325);
18
+ --destructive-foreground: oklch(57.7% .245 27.325);
19
+ --border: oklch(92% .004 286.32);
20
+ --input: oklch(92% .004 286.32);
21
+ --ring: oklch(70.5% .015 286.067);
22
+ --chart-1: oklch(64.6% .222 41.116);
23
+ --chart-2: oklch(60% .118 184.704);
24
+ --chart-3: oklch(39.8% .07 227.392);
25
+ --chart-4: oklch(82.8% .189 84.429);
26
+ --chart-5: oklch(76.9% .188 70.08);
27
+ --sidebar: oklch(98.5% 0 0);
28
+ --sidebar-foreground: oklch(14.1% .005 285.823);
29
+ --sidebar-primary: oklch(21% .006 285.885);
30
+ --sidebar-primary-foreground: oklch(98.5% 0 0);
31
+ --sidebar-accent: oklch(96.7% .001 286.375);
32
+ --sidebar-accent-foreground: oklch(21% .006 285.885);
33
+ --sidebar-border: oklch(92% .004 286.32);
34
+ --sidebar-ring: oklch(70.5% .015 286.067);
35
35
  --radius: .625rem;
36
36
  }
37
37
 
38
38
  .dark {
39
- --background: oklch(.141 .005 285.823);
40
- --foreground: oklch(.985 0 0);
41
- --card: oklch(.141 .005 285.823);
42
- --card-foreground: oklch(.985 0 0);
43
- --popover: oklch(.141 .005 285.823);
44
- --popover-foreground: oklch(.985 0 0);
45
- --primary: oklch(.985 0 0);
46
- --primary-foreground: oklch(.21 .006 285.885);
47
- --secondary: oklch(.274 .006 286.033);
48
- --secondary-foreground: oklch(.985 0 0);
49
- --muted: oklch(.274 .006 286.033);
50
- --muted-foreground: oklch(.705 .015 286.067);
51
- --accent: oklch(.274 .006 286.033);
52
- --accent-foreground: oklch(.985 0 0);
53
- --destructive: oklch(.396 .141 25.723);
54
- --destructive-foreground: oklch(.637 .237 25.331);
55
- --border: oklch(.274 .006 286.033);
56
- --input: oklch(.274 .006 286.033);
57
- --ring: oklch(.442 .017 285.786);
58
- --chart-1: oklch(.488 .243 264.376);
59
- --chart-2: oklch(.696 .17 162.48);
60
- --chart-3: oklch(.769 .188 70.08);
61
- --chart-4: oklch(.627 .265 303.9);
62
- --chart-5: oklch(.645 .246 16.439);
63
- --sidebar: oklch(.21 .006 285.885);
64
- --sidebar-foreground: oklch(.985 0 0);
65
- --sidebar-primary: oklch(.488 .243 264.376);
66
- --sidebar-primary-foreground: oklch(.985 0 0);
67
- --sidebar-accent: oklch(.274 .006 286.033);
68
- --sidebar-accent-foreground: oklch(.985 0 0);
69
- --sidebar-border: oklch(.274 .006 286.033);
70
- --sidebar-ring: oklch(.442 .017 285.786);
39
+ --background: oklch(14.1% .005 285.823);
40
+ --foreground: oklch(98.5% 0 0);
41
+ --card: oklch(14.1% .005 285.823);
42
+ --card-foreground: oklch(98.5% 0 0);
43
+ --popover: oklch(14.1% .005 285.823);
44
+ --popover-foreground: oklch(98.5% 0 0);
45
+ --primary: oklch(98.5% 0 0);
46
+ --primary-foreground: oklch(21% .006 285.885);
47
+ --secondary: oklch(27.4% .006 286.033);
48
+ --secondary-foreground: oklch(98.5% 0 0);
49
+ --muted: oklch(27.4% .006 286.033);
50
+ --muted-foreground: oklch(70.5% .015 286.067);
51
+ --accent: oklch(27.4% .006 286.033);
52
+ --accent-foreground: oklch(98.5% 0 0);
53
+ --destructive: oklch(39.6% .141 25.723);
54
+ --destructive-foreground: oklch(63.7% .237 25.331);
55
+ --border: oklch(27.4% .006 286.033);
56
+ --input: oklch(27.4% .006 286.033);
57
+ --ring: oklch(44.2% .017 285.786);
58
+ --chart-1: oklch(48.8% .243 264.376);
59
+ --chart-2: oklch(69.6% .17 162.48);
60
+ --chart-3: oklch(76.9% .188 70.08);
61
+ --chart-4: oklch(62.7% .265 303.9);
62
+ --chart-5: oklch(64.5% .246 16.439);
63
+ --sidebar: oklch(21% .006 285.885);
64
+ --sidebar-foreground: oklch(98.5% 0 0);
65
+ --sidebar-primary: oklch(48.8% .243 264.376);
66
+ --sidebar-primary-foreground: oklch(98.5% 0 0);
67
+ --sidebar-accent: oklch(27.4% .006 286.033);
68
+ --sidebar-accent-foreground: oklch(98.5% 0 0);
69
+ --sidebar-border: oklch(27.4% .006 286.033);
70
+ --sidebar-ring: oklch(44.2% .017 285.786);
71
71
  }
72
72
 
73
73
  @layer base {
package/dist/index.js CHANGED
@@ -166,7 +166,12 @@ const _sfc_main$2X = /* @__PURE__ */ defineComponent({
166
166
  variant: _ctx.variant,
167
167
  style: normalizeStyle(_ctx.style),
168
168
  "button-class": _ctx.buttonClass
169
- }, null, 8, ["label", "size", "variant", "style", "button-class"])
169
+ }, {
170
+ default: withCtx(() => [
171
+ renderSlot(_ctx.$slots, "default")
172
+ ]),
173
+ _: 3
174
+ }, 8, ["label", "size", "variant", "style", "button-class"])
170
175
  ])) : (openBlock(), createBlock(unref(RouterLink), {
171
176
  key: 1,
172
177
  to: { name: _ctx.to }
@@ -178,9 +183,14 @@ const _sfc_main$2X = /* @__PURE__ */ defineComponent({
178
183
  variant: _ctx.variant,
179
184
  style: normalizeStyle(_ctx.style),
180
185
  "button-class": _ctx.buttonClass
181
- }, null, 8, ["label", "size", "variant", "style", "button-class"])
186
+ }, {
187
+ default: withCtx(() => [
188
+ renderSlot(_ctx.$slots, "default")
189
+ ]),
190
+ _: 3
191
+ }, 8, ["label", "size", "variant", "style", "button-class"])
182
192
  ]),
183
- _: 1
193
+ _: 3
184
194
  }, 8, ["to"]));
185
195
  };
186
196
  }
@@ -1463,7 +1473,8 @@ const _sfc_main$2j = /* @__PURE__ */ defineComponent({
1463
1473
  createVNode(unref(X)),
1464
1474
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
1465
1475
  ]),
1466
- _: 1
1476
+ _: 1,
1477
+ __: [0]
1467
1478
  })
1468
1479
  ]),
1469
1480
  _: 3
@@ -1583,7 +1594,8 @@ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
1583
1594
  createVNode(unref(X), { class: "h-4 w-4" }),
1584
1595
  _cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
1585
1596
  ]),
1586
- _: 1
1597
+ _: 1,
1598
+ __: [1]
1587
1599
  })
1588
1600
  ]),
1589
1601
  _: 3
@@ -4281,7 +4293,8 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
4281
4293
  createVNode(unref(X), { class: "size-4" }),
4282
4294
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
4283
4295
  ]),
4284
- _: 1
4296
+ _: 1,
4297
+ __: [0]
4285
4298
  })
4286
4299
  ]),
4287
4300
  _: 3
@@ -4458,13 +4471,15 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
4458
4471
  default: withCtx(() => _cache[0] || (_cache[0] = [
4459
4472
  createTextVNode("Sidebar")
4460
4473
  ])),
4461
- _: 1
4474
+ _: 1,
4475
+ __: [0]
4462
4476
  }),
4463
4477
  createVNode(_sfc_main$Y, null, {
4464
4478
  default: withCtx(() => _cache[1] || (_cache[1] = [
4465
4479
  createTextVNode("Displays the mobile sidebar.")
4466
4480
  ])),
4467
- _: 1
4481
+ _: 1,
4482
+ __: [1]
4468
4483
  })
4469
4484
  ]),
4470
4485
  _: 1
@@ -5289,7 +5304,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
5289
5304
  createVNode(unref(PanelLeft)),
5290
5305
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Toggle Sidebar", -1))
5291
5306
  ]),
5292
- _: 1
5307
+ _: 1,
5308
+ __: [0]
5293
5309
  }, 8, ["class", "onClick"]);
5294
5310
  };
5295
5311
  }
@@ -5461,11 +5477,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
5461
5477
  class: {},
5462
5478
  style: {},
5463
5479
  offset: {},
5480
+ mobileOffset: {},
5464
5481
  dir: {},
5482
+ swipeDirections: {},
5465
5483
  icons: {},
5466
- containerAriaLabel: {},
5467
- pauseWhenPageIsHidden: { type: Boolean },
5468
- cn: { type: Function }
5484
+ containerAriaLabel: {}
5469
5485
  },
5470
5486
  setup(__props) {
5471
5487
  const props = __props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue-components",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Vue components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,33 +24,33 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@tanstack/vue-table": "^8.21.3",
27
- "@tb-dev/utils": "^6.0.4",
28
- "@tb-dev/vue": "^2.0.0",
29
- "@vueuse/core": "^13.1.0",
27
+ "@tb-dev/utils": "^7.0.0",
28
+ "@tb-dev/vue": "^2.0.4",
29
+ "@vueuse/core": "^13.2.0",
30
30
  "class-variance-authority": "^0.7.1",
31
31
  "clsx": "^2.1.1",
32
- "lucide-vue-next": "^0.510.0",
32
+ "lucide-vue-next": "^0.511.0",
33
33
  "reka-ui": "^2.2.1",
34
34
  "tailwind-merge": "^3.3.0",
35
- "tw-animate-css": "^1.2.9",
36
- "vue": "^3.5.13",
35
+ "tw-animate-css": "^1.3.0",
36
+ "vue": "^3.5.14",
37
37
  "vue-router": "^4.5.1",
38
- "vue-sonner": "^1.3.2"
38
+ "vue-sonner": "^2.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@tailwindcss/vite": "^4.1.6",
42
- "@tb-dev/eslint-config": "^7.1.3",
43
- "@types/node": "^22.15.17",
41
+ "@tailwindcss/vite": "^4.1.7",
42
+ "@tb-dev/eslint-config": "^7.1.4",
43
+ "@types/node": "^22.15.21",
44
44
  "@vitejs/plugin-vue": "^5.2.4",
45
- "eslint": "^9.26.0",
45
+ "eslint": "^9.27.0",
46
46
  "prettier": "^3.5.3",
47
47
  "prettier-plugin-css-order": "^2.1.2",
48
48
  "prettier-plugin-tailwindcss": "^0.6.11",
49
- "tailwindcss": "^4.1.6",
49
+ "tailwindcss": "^4.1.7",
50
50
  "tslib": "^2.8.1",
51
51
  "typescript": "~5.8.3",
52
52
  "vite": "^6.3.5",
53
- "vite-plugin-dts": "^4.5.3",
53
+ "vite-plugin-dts": "^4.5.4",
54
54
  "vue-tsc": "~2.2.10"
55
55
  },
56
56
  "files": [