vueless 1.3.6-beta.10 → 1.3.6-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "1.3.6-beta.10",
3
+ "version": "1.3.6-beta.12",
4
4
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
5
5
  "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
6
6
  "homepage": "https://vueless.com",
@@ -57,7 +57,7 @@
57
57
  "@vue/eslint-config-typescript": "^14.6.0",
58
58
  "@vue/test-utils": "^2.4.6",
59
59
  "@vue/tsconfig": "^0.7.0",
60
- "@vueless/storybook": "^1.3.14",
60
+ "@vueless/storybook": "^1.3.15",
61
61
  "eslint": "^9.32.0",
62
62
  "eslint-plugin-storybook": "^10.0.2",
63
63
  "eslint-plugin-vue": "^10.3.0",
@@ -294,7 +294,7 @@ const {
294
294
  titleFallbackAttrs,
295
295
  closeButtonAttrs,
296
296
  closeIconAttrs,
297
- } = useUI<Config>(defaultConfig);
297
+ } = useUI<Config>(defaultConfig, undefined, "drawer");
298
298
  </script>
299
299
 
300
300
  <template>
@@ -6,7 +6,7 @@ import UTableRow from "../UTableRow.vue";
6
6
  import UIcon from "../../ui.image-icon/UIcon.vue";
7
7
  import UCheckbox from "../../ui.form-checkbox/UCheckbox.vue";
8
8
 
9
- import type { FlatRow, ColumnObject, UTableRowAttrs, Config } from "../types";
9
+ import type { FlatRow, ColumnObject, UTableRowAttrs, Config, Row } from "../types";
10
10
 
11
11
  describe("UTableRow.vue", () => {
12
12
  const defaultColumns: ColumnObject[] = [
@@ -135,7 +135,7 @@ describe("UTableRow.vue", () => {
135
135
  ...defaultRow,
136
136
  name: {
137
137
  value: "John Doe",
138
- class: (value, row) => `dynamic-${row.role}`,
138
+ class: (value: unknown, row: Row) => `dynamic-${row.role}`,
139
139
  contentClass: (value: unknown) => `content-${value}`,
140
140
  },
141
141
  };
@@ -6,12 +6,10 @@ import type { Config as UDividerConfig } from "../ui.container-divider/types";
6
6
 
7
7
  export type Config = typeof defaultConfig;
8
8
 
9
- type RowKeys = number | string | boolean | undefined | Date | Row | Row[] | ((row: Row) => string);
10
-
11
9
  export interface CellObject {
12
10
  contentClass?: string | ((value: unknown | string, row: Row) => string);
13
11
  class?: string | ((value: unknown | string, row: Row) => string);
14
- [key: string]: unknown | string;
12
+ [key: string]: unknown;
15
13
  }
16
14
 
17
15
  export type RowId = string | number;
@@ -32,7 +30,7 @@ export interface Row {
32
30
  rowDate?: string | Date;
33
31
  row?: Row | Row[];
34
32
  class?: string | ((row: Row) => string);
35
- [key: string]: Cell | RowKeys;
33
+ [key: string]: unknown;
36
34
  }
37
35
 
38
36
  export interface FlatRow extends Row {