@tb-dev/vue 0.3.41 → 0.3.42

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.
@@ -13,6 +13,7 @@ export interface TableProps {
13
13
  headerStyle?: HTMLAttributes['style'];
14
14
  height?: number | string;
15
15
  style?: HTMLAttributes['style'];
16
+ width?: number | string;
16
17
  }
17
18
  export interface TableLinkProps<T extends string> {
18
19
  label?: string;
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.1.5 | MIT License | https://tailwindcss.com */
2
2
  :root {
3
3
  --background: oklch(1 0 0);
4
4
  --foreground: oklch(.141 .005 285.823);
package/dist/index.js CHANGED
@@ -5957,18 +5957,29 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
5957
5957
  headerClass: {},
5958
5958
  headerStyle: {},
5959
5959
  height: {},
5960
- style: {}
5960
+ style: {},
5961
+ width: {}
5961
5962
  },
5962
5963
  setup(__props) {
5963
5964
  const props = __props;
5964
5965
  const containerHeight = computed(() => {
5965
5966
  return props.height ? { maxHeight: toPixel(props.height) } : null;
5966
5967
  });
5968
+ const containerWidth = computed(() => {
5969
+ return props.width ? { maxWidth: toPixel(props.width) } : null;
5970
+ });
5967
5971
  return (_ctx, _cache) => {
5968
5972
  return openBlock(), createElementBlock("div", {
5969
5973
  "data-slot": "table-container",
5970
- style: normalizeStyle([containerHeight.value, _ctx.containerStyle]),
5971
- class: normalizeClass(unref(cn)("relative w-full overflow-x-hidden overflow-y-auto", _ctx.containerClass))
5974
+ style: normalizeStyle([containerHeight.value, containerWidth.value, _ctx.containerStyle]),
5975
+ class: normalizeClass(
5976
+ unref(cn)(
5977
+ "relative w-full",
5978
+ containerWidth.value ? "overflow-x-auto" : "overflow-x-hidden",
5979
+ containerHeight.value ? "overflow-y-auto" : "overflow-y-hidden",
5980
+ _ctx.containerClass
5981
+ )
5982
+ )
5972
5983
  }, [
5973
5984
  createElementVNode("table", mergeProps(_ctx.$attrs, {
5974
5985
  "data-slot": "table",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue",
3
- "version": "0.3.41",
3
+ "version": "0.3.42",
4
4
  "description": "Vue utilities",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -30,27 +30,27 @@
30
30
  "@vueuse/core": "^13.1.0",
31
31
  "class-variance-authority": "^0.7.1",
32
32
  "clsx": "^2.1.1",
33
- "lucide-vue-next": "^0.503.0",
34
- "reka-ui": "^2.2.0",
33
+ "lucide-vue-next": "^0.507.0",
34
+ "reka-ui": "^2.2.1",
35
35
  "tailwind-merge": "^3.2.0",
36
- "tw-animate-css": "^1.2.8",
36
+ "tw-animate-css": "^1.2.9",
37
37
  "vue": "^3.5.13",
38
38
  "vue-router": "^4.5.1",
39
39
  "vue-sonner": "^1.3.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@tailwindcss/vite": "^4.1.4",
43
- "@tb-dev/eslint-config": "^7.1.0",
42
+ "@tailwindcss/vite": "^4.1.5",
43
+ "@tb-dev/eslint-config": "^7.1.1",
44
44
  "@types/node": "^22.15.3",
45
45
  "@vitejs/plugin-vue": "^5.2.3",
46
- "eslint": "^9.25.1",
46
+ "eslint": "^9.26.0",
47
47
  "prettier": "^3.5.3",
48
48
  "prettier-plugin-css-order": "^2.1.2",
49
49
  "prettier-plugin-tailwindcss": "^0.6.11",
50
- "tailwindcss": "^4.1.4",
50
+ "tailwindcss": "^4.1.5",
51
51
  "tslib": "^2.8.1",
52
52
  "typescript": "~5.8.3",
53
- "vite": "^6.3.3",
53
+ "vite": "^6.3.5",
54
54
  "vite-plugin-dts": "^4.5.3",
55
55
  "vue-tsc": "~2.2.10"
56
56
  },