dawn-ui-react 1.0.0-alpha.34 → 1.0.0-alpha.35
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/dist/components/alert-dialog/alert-dialog.types.d.ts +2 -1
- package/dist/components/color-picker/color-picker-lightness-slider.d.ts +1 -2
- package/dist/components/color-picker/color-picker-transparency-slider.d.ts +1 -2
- package/dist/components/form/form-context.d.ts +7 -7
- package/dist/components/form/form-set-heading.d.ts +1 -1
- package/dist/components/form/form.types.d.ts +5 -1
- package/dist/components/input-group/index.d.ts +2 -1
- package/dist/components/input-group/input-group-input.d.ts +1 -1
- package/dist/components/input-group/input-group-separator.d.ts +2 -0
- package/dist/components/input-group/input-group.types.d.ts +3 -1
- package/dist/components/layer-tree/index.d.ts +12 -7
- package/dist/components/layer-tree/layer-tree-body.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-context.d.ts +373 -0
- package/dist/components/layer-tree/layer-tree-icon-cell.d.ts +2 -0
- package/dist/components/layer-tree/layer-tree-locked-all.d.ts +2 -0
- package/dist/components/layer-tree/layer-tree-locked-cell.d.ts +2 -0
- package/dist/components/layer-tree/layer-tree-row.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-sort.d.ts +1 -1
- package/dist/components/layer-tree/layer-tree-text-cell.d.ts +2 -0
- package/dist/components/layer-tree/layer-tree-trigger-cell.d.ts +3 -0
- package/dist/components/layer-tree/layer-tree-utils.d.ts +3 -0
- package/dist/components/layer-tree/layer-tree-visibility-all.d.ts +2 -0
- package/dist/components/layer-tree/layer-tree-visibility-cell.d.ts +2 -0
- package/dist/components/layer-tree/layer-tree.d.ts +3 -3
- package/dist/components/layer-tree/layer-tree.types.d.ts +87 -17
- package/dist/components/number-field/number-field.d.ts +1 -1
- package/dist/components/number-field/number-field.types.d.ts +1 -0
- package/dist/components/table/index.d.ts +25 -17
- package/dist/components/table/table-badge-cell.d.ts +2 -0
- package/dist/components/table/table-body.d.ts +2 -0
- package/dist/components/table/table-checkbox-cell.d.ts +2 -0
- package/dist/components/table/table-context.d.ts +405 -0
- package/dist/components/table/table-date-cell.d.ts +2 -0
- package/dist/components/table/table-date-filter-chip.d.ts +3 -0
- package/dist/components/table/table-date-filter-form.d.ts +3 -0
- package/dist/components/table/table-filter-list.d.ts +2 -0
- package/dist/components/table/table-filter-menu.d.ts +2 -0
- package/dist/components/table/table-header.d.ts +1 -1
- package/dist/components/table/table-image-cell.d.ts +2 -0
- package/dist/components/table/table-number-cell.d.ts +2 -0
- package/dist/components/table/table-number-filter-chip.d.ts +3 -0
- package/dist/components/table/table-number-filter-form.d.ts +3 -0
- package/dist/components/table/table-select-filter-chip.d.ts +3 -0
- package/dist/components/table/table-select-filter-form.d.ts +3 -0
- package/dist/components/table/table-select-header.d.ts +2 -0
- package/dist/components/table/table-sort-chip.d.ts +3 -0
- package/dist/components/table/table-sort-list.d.ts +2 -0
- package/dist/components/table/table-sort-menu.d.ts +2 -0
- package/dist/components/table/table-string-filter-chip.d.ts +3 -0
- package/dist/components/table/table-string-filter-form.d.ts +3 -0
- package/dist/components/table/table-text-cell.d.ts +2 -0
- package/dist/components/table/table-viewport.d.ts +2 -0
- package/dist/components/table/table.types.d.ts +116 -70
- package/dist/components/table/table.utils.d.ts +17 -4
- package/dist/dawn-ui-react.js +28250 -16465
- package/dist/dawn-ui-react.umd.cjs +80 -69
- package/dist/hooks/theme/constants.d.ts +1 -1
- package/dist/styles.css +7 -7
- package/package.json +28 -28
- package/dist/components/layer-tree/layer-tree-node-toggle.d.ts +0 -2
- package/dist/components/layer-tree/layer-tree-node.d.ts +0 -3
- package/dist/components/table/table-body-grid.d.ts +0 -2
- package/dist/components/table/table-body-list.d.ts +0 -2
- package/dist/components/table/table-change-view.d.ts +0 -2
- package/dist/components/table/table-content.d.ts +0 -2
- package/dist/components/table/table-data-set-select.d.ts +0 -2
- package/dist/components/table/table-data-set-tabs.d.ts +0 -2
- package/dist/components/table/table-filter-form.d.ts +0 -3
- package/dist/components/table/table-filter.d.ts +0 -2
- package/dist/components/table/table-filters.d.ts +0 -2
- package/dist/components/table/table-refresh.d.ts +0 -3
- package/dist/components/table/table-row-grid.d.ts +0 -2
- package/dist/components/table/table-row-list.d.ts +0 -2
- package/dist/components/table/table-sort.d.ts +0 -2
- package/dist/components/table/table.constants.d.ts +0 -64
- package/dist/components/table/table.d.ts +0 -19
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Theme, ThemeValue } from './types';
|
|
2
|
-
export declare const THEME_STORAGE_KEY = "
|
|
2
|
+
export declare const THEME_STORAGE_KEY = "dawn-ui-theme";
|
|
3
3
|
export declare const DEFAULT_THEME: ThemeValue;
|
|
4
4
|
export declare const getThemeByValue: (value: ThemeValue, themes: Theme[]) => Theme | undefined;
|
package/dist/styles.css
CHANGED
|
@@ -543,13 +543,13 @@
|
|
|
543
543
|
--dawn-spacing-2xl-3xl: clamp(3rem, 1.7727rem + 5.4545vw, 6rem);
|
|
544
544
|
--dawn-spacing-sm-lg: clamp(0.75rem, 0.2386rem + 2.2727vw, 2rem);
|
|
545
545
|
|
|
546
|
-
--dawn-blur-2xs:
|
|
547
|
-
--dawn-blur-xs:
|
|
548
|
-
--dawn-blur-sm:
|
|
549
|
-
--dawn-blur-md:
|
|
550
|
-
--dawn-blur-lg:
|
|
551
|
-
--dawn-blur-xl:
|
|
552
|
-
--dawn-blur-2xl:
|
|
546
|
+
--dawn-blur-2xs: 4px;
|
|
547
|
+
--dawn-blur-xs: 8px;
|
|
548
|
+
--dawn-blur-sm: 12px;
|
|
549
|
+
--dawn-blur-md: 16px;
|
|
550
|
+
--dawn-blur-lg: 20px;
|
|
551
|
+
--dawn-blur-xl: 24px;
|
|
552
|
+
--dawn-blur-2xl: 32px;
|
|
553
553
|
|
|
554
554
|
--dawn-shadow-2xs: 0px 1px 2px;
|
|
555
555
|
--dawn-shadow-xs: 0px 2px 4px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dawn-ui-react",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.35",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"@tailwindcss/cli": "^4.3.3",
|
|
56
56
|
"@tailwindcss/vite": "^4.3.3",
|
|
57
57
|
"@tanstack/react-form": "^1.33.5",
|
|
58
|
-
"@tanstack/react-table": "^
|
|
58
|
+
"@tanstack/react-table": "^9.2.3",
|
|
59
59
|
"chroma-js": "^3.2.0",
|
|
60
|
-
"chromatic": "^18.
|
|
60
|
+
"chromatic": "^18.6.1",
|
|
61
61
|
"class-variance-authority": "^0.7.1",
|
|
62
62
|
"clsx": "^2.1.1",
|
|
63
|
-
"react-resizable-panels": "^4.12.
|
|
63
|
+
"react-resizable-panels": "^4.12.3",
|
|
64
64
|
"recharts": "^3.10.1",
|
|
65
65
|
"tailwind-merge": "^3.6.0",
|
|
66
66
|
"tailwindcss": "^4.3.3",
|
|
@@ -68,50 +68,50 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@chromatic-com/storybook": "^5.3.0",
|
|
71
|
-
"@commitlint/cli": "^21.2.
|
|
72
|
-
"@commitlint/config-conventional": "^21.2.
|
|
73
|
-
"@faker-js/faker": "^10.
|
|
71
|
+
"@commitlint/cli": "^21.2.2",
|
|
72
|
+
"@commitlint/config-conventional": "^21.2.2",
|
|
73
|
+
"@faker-js/faker": "^10.6.0",
|
|
74
74
|
"@semantic-release/changelog": "^7.0.0",
|
|
75
75
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
76
76
|
"@semantic-release/git": "^11.0.1",
|
|
77
77
|
"@semantic-release/github": "^12.0.9",
|
|
78
78
|
"@semantic-release/npm": "^13.1.5",
|
|
79
79
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
80
|
-
"@storybook/addon-a11y": "^10.5.
|
|
81
|
-
"@storybook/addon-docs": "^10.5.
|
|
82
|
-
"@storybook/addon-themes": "^10.5.
|
|
83
|
-
"@storybook/addon-vitest": "^10.5.
|
|
84
|
-
"@storybook/react-vite": "^10.5.
|
|
80
|
+
"@storybook/addon-a11y": "^10.5.10",
|
|
81
|
+
"@storybook/addon-docs": "^10.5.10",
|
|
82
|
+
"@storybook/addon-themes": "^10.5.10",
|
|
83
|
+
"@storybook/addon-vitest": "^10.5.10",
|
|
84
|
+
"@storybook/react-vite": "^10.5.10",
|
|
85
85
|
"@tailwindcss/node": "^4.3.3",
|
|
86
|
-
"@tanstack/react-virtual": "^3.14.
|
|
86
|
+
"@tanstack/react-virtual": "^3.14.10",
|
|
87
87
|
"@types/chroma-js": "^3.1.2",
|
|
88
|
-
"@types/node": "^26.
|
|
88
|
+
"@types/node": "^26.4.0",
|
|
89
89
|
"@types/react": "^19.2.18",
|
|
90
|
-
"@types/react-dom": "^19.2.
|
|
90
|
+
"@types/react-dom": "^19.2.5",
|
|
91
91
|
"@typescript/typescript6": "^6.0.2",
|
|
92
|
-
"@vitejs/plugin-react": "^6.0
|
|
93
|
-
"@vitest/browser-playwright": "^4.1.
|
|
94
|
-
"@vitest/coverage-v8": "^4.1.
|
|
92
|
+
"@vitejs/plugin-react": "^6.1.0",
|
|
93
|
+
"@vitest/browser-playwright": "^4.1.11",
|
|
94
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
95
95
|
"commitizen": "^4.3.2",
|
|
96
|
-
"concurrently": "^10.0.
|
|
96
|
+
"concurrently": "^10.0.5",
|
|
97
97
|
"cz-conventional-changelog": "^3.3.0",
|
|
98
|
-
"globals": "^17.
|
|
98
|
+
"globals": "^17.11.0",
|
|
99
99
|
"jsdom": "^30.0.1",
|
|
100
100
|
"lefthook": "^2.1.10",
|
|
101
|
-
"lint-staged": "^17.
|
|
102
|
-
"oxfmt": "^0.
|
|
103
|
-
"oxlint": "^1.
|
|
104
|
-
"oxlint-tailwindcss": "^1.
|
|
101
|
+
"lint-staged": "^17.4.1",
|
|
102
|
+
"oxfmt": "^0.65.0",
|
|
103
|
+
"oxlint": "^1.80.0",
|
|
104
|
+
"oxlint-tailwindcss": "^1.10.0",
|
|
105
105
|
"oxlint-tsgolint": "^7.0.2001",
|
|
106
106
|
"playwright": "^1.62.1",
|
|
107
107
|
"semantic-release": "^25.0.9",
|
|
108
108
|
"shiki": "^4.4.3",
|
|
109
|
-
"storybook": "^10.5.
|
|
109
|
+
"storybook": "^10.5.10",
|
|
110
110
|
"typescript": "~7.0.2",
|
|
111
|
-
"uuid": "^14.0.
|
|
112
|
-
"vite": "^8.2.
|
|
111
|
+
"uuid": "^14.0.2",
|
|
112
|
+
"vite": "^8.2.2",
|
|
113
113
|
"vite-plugin-dts": "^5.0.3",
|
|
114
|
-
"vitest": "^4.1.
|
|
114
|
+
"vitest": "^4.1.11",
|
|
115
115
|
"zod": "^4.4.3"
|
|
116
116
|
},
|
|
117
117
|
"peerDependencies": {
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { filterDefinitions } from './table.constants';
|
|
2
|
-
import { TableFilterFormProps } from './table.types';
|
|
3
|
-
export declare const TableFilterForm: <TData, TValue, TFilterType extends keyof typeof filterDefinitions>({ column, filterType, operatorLabels, clearLabel, submitLabel, renderClearButton, renderSubmitButton, className, children, ref, ...props }: TableFilterFormProps<TData, TValue, TFilterType>) => import("react").JSX.Element;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { FilterOperator, NumberOperator, SelectOperator, TextOperator } from './table.types';
|
|
3
|
-
export declare const textFilterOperators: Record<TextOperator, {
|
|
4
|
-
fn: (rowValue: string, filterValue: string) => boolean;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const selectFilterOperators: Record<SelectOperator, {
|
|
7
|
-
fn: (rowValue: string, filterValue: string | string[]) => boolean;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const numberFilterOperators: Record<NumberOperator, {
|
|
10
|
-
fn: (rowValue: number, filterValue: number | [number, number]) => boolean;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const textOperatorKeys: [TextOperator, ...TextOperator[]];
|
|
13
|
-
export declare const selectOperatorKeys: [SelectOperator, ...SelectOperator[]];
|
|
14
|
-
export declare const numberOperatorKeys: [NumberOperator, ...NumberOperator[]];
|
|
15
|
-
export declare const filterDefinitions: {
|
|
16
|
-
text: {
|
|
17
|
-
operators: [TextOperator, ...TextOperator[]];
|
|
18
|
-
schema: z.ZodObject<{
|
|
19
|
-
filterOperator: z.ZodEnum<{
|
|
20
|
-
endsWith: "endsWith";
|
|
21
|
-
startsWith: "startsWith";
|
|
22
|
-
equals: "equals";
|
|
23
|
-
notEquals: "notEquals";
|
|
24
|
-
contains: "contains";
|
|
25
|
-
notContains: "notContains";
|
|
26
|
-
}>;
|
|
27
|
-
filterValue: z.ZodString;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
defaultOperator: "contains";
|
|
30
|
-
defaultValue: string;
|
|
31
|
-
};
|
|
32
|
-
select: {
|
|
33
|
-
operators: [SelectOperator, ...SelectOperator[]];
|
|
34
|
-
schema: z.ZodObject<{
|
|
35
|
-
filterOperator: z.ZodEnum<{
|
|
36
|
-
equals: "equals";
|
|
37
|
-
notEquals: "notEquals";
|
|
38
|
-
anyOf: "anyOf";
|
|
39
|
-
noneOf: "noneOf";
|
|
40
|
-
}>;
|
|
41
|
-
filterValue: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
defaultOperator: "equals";
|
|
44
|
-
defaultValue: string;
|
|
45
|
-
};
|
|
46
|
-
number: {
|
|
47
|
-
operators: [NumberOperator, ...NumberOperator[]];
|
|
48
|
-
schema: z.ZodObject<{
|
|
49
|
-
filterOperator: z.ZodEnum<{
|
|
50
|
-
equals: "equals";
|
|
51
|
-
notEquals: "notEquals";
|
|
52
|
-
greaterThan: "greaterThan";
|
|
53
|
-
greaterThanOrEqual: "greaterThanOrEqual";
|
|
54
|
-
lessThan: "lessThan";
|
|
55
|
-
lessThanOrEqual: "lessThanOrEqual";
|
|
56
|
-
between: "between";
|
|
57
|
-
}>;
|
|
58
|
-
filterValue: z.ZodUnion<readonly [z.ZodNumber, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
|
|
59
|
-
}, z.core.$strip>;
|
|
60
|
-
defaultOperator: "equals";
|
|
61
|
-
defaultValue: number;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
export declare const defaultOperatorLabels: Record<FilterOperator, string>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FilterType, TableDataSet, TableProps, TableView } from './table.types';
|
|
2
|
-
import { RowData } from '@tanstack/react-table';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
type TableContextType<TData, TValue> = {
|
|
5
|
-
table: TableProps<TData, TValue>['table'];
|
|
6
|
-
dataSets?: TableDataSet<TData, TValue>[];
|
|
7
|
-
currentDataSet?: TableDataSet<TData, TValue>;
|
|
8
|
-
setCurrentDataSet?: React.Dispatch<React.SetStateAction<TableDataSet<TData, TValue>>>;
|
|
9
|
-
view: TableView;
|
|
10
|
-
setView: React.Dispatch<React.SetStateAction<TableView>>;
|
|
11
|
-
};
|
|
12
|
-
declare module '@tanstack/react-table' {
|
|
13
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
14
|
-
filterType?: FilterType;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export declare const Table: <TData, TValue>({ currentDataSet, setCurrentDataSet, dataSets, defaultView, table, className, children, ref, ...props }: TableProps<TData, TValue>) => React.JSX.Element;
|
|
18
|
-
export declare const useTable: () => TableContextType<any, any>;
|
|
19
|
-
export {};
|