@canonical/react-tokens 0.34.0 → 0.35.0
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.
|
@@ -26,7 +26,7 @@ const componentCssClassName = "ds token-table";
|
|
|
26
26
|
* Supports search, grouping by multiple lenses (tier, type, prefix,
|
|
27
27
|
* derivation, CSS output file), and column configuration.
|
|
28
28
|
*
|
|
29
|
-
* @implements
|
|
29
|
+
* @implements ds:global.component.token-table
|
|
30
30
|
*/
|
|
31
31
|
export const TokenTable = ({ tokens, title, caption, columns: explicitColumns, searchable = false, showCount = true, dense = true, groupBy, searchPlaceholder = "Search tokens, ids, or files…", emptyMessage = "No tokens match the current filters.", className, ...props }) => {
|
|
32
32
|
const [search, setSearch] = useState("");
|
|
@@ -8,7 +8,7 @@ const componentCssClassName = "ds token-swatch";
|
|
|
8
8
|
* border, shadow, typography, transition, and strokeStyle. Derived tokens
|
|
9
9
|
* without resolved values render as reference arrows to their base token.
|
|
10
10
|
*
|
|
11
|
-
* @implements
|
|
11
|
+
* @implements ds:global.subcomponent.token-swatch
|
|
12
12
|
*/
|
|
13
13
|
export const TokenSwatch = ({ token, contextClass: _contextClass, className, ...props }) => {
|
|
14
14
|
if (shouldRenderReference(token)) {
|
|
@@ -7,7 +7,7 @@ import "./styles.css";
|
|
|
7
7
|
* Supports search, grouping by multiple lenses (tier, type, prefix,
|
|
8
8
|
* derivation, CSS output file), and column configuration.
|
|
9
9
|
*
|
|
10
|
-
* @implements
|
|
10
|
+
* @implements ds:global.component.token-table
|
|
11
11
|
*/
|
|
12
12
|
export declare const TokenTable: ({ tokens, title, caption, columns: explicitColumns, searchable, showCount, dense, groupBy, searchPlaceholder, emptyMessage, className, ...props }: TokenTableProps) => React.ReactElement;
|
|
13
13
|
//# sourceMappingURL=TokenTable.d.ts.map
|
|
@@ -8,7 +8,7 @@ import "./styles.css";
|
|
|
8
8
|
* border, shadow, typography, transition, and strokeStyle. Derived tokens
|
|
9
9
|
* without resolved values render as reference arrows to their base token.
|
|
10
10
|
*
|
|
11
|
-
* @implements
|
|
11
|
+
* @implements ds:global.subcomponent.token-swatch
|
|
12
12
|
*/
|
|
13
13
|
export declare const TokenSwatch: ({ token, contextClass: _contextClass, className, ...props }: TokenSwatchProps) => React.ReactElement;
|
|
14
14
|
//# sourceMappingURL=TokenSwatch.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/react-tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -42,25 +42,25 @@
|
|
|
42
42
|
"test:vitest:watch": "vitest"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@canonical/storybook-config": "^0.
|
|
46
|
-
"@canonical/styles": "^0.
|
|
45
|
+
"@canonical/storybook-config": "^0.35.0",
|
|
46
|
+
"@canonical/styles": "^0.35.0",
|
|
47
47
|
"react": "^19.2.4",
|
|
48
48
|
"react-dom": "^19.2.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@biomejs/biome": "2.4.9",
|
|
52
|
-
"@canonical/biome-config": "^0.
|
|
52
|
+
"@canonical/biome-config": "^0.35.0",
|
|
53
53
|
"@canonical/design-tokens": "0.8.1",
|
|
54
|
-
"@canonical/ds-types": "^0.
|
|
55
|
-
"@canonical/typescript-config-react": "^0.
|
|
56
|
-
"@canonical/vitest-config-react": "^0.
|
|
57
|
-
"@canonical/webarchitect": "^0.
|
|
54
|
+
"@canonical/ds-types": "^0.35.0",
|
|
55
|
+
"@canonical/typescript-config-react": "^0.35.0",
|
|
56
|
+
"@canonical/vitest-config-react": "^0.35.0",
|
|
57
|
+
"@canonical/webarchitect": "^0.35.0",
|
|
58
58
|
"@chromatic-com/storybook": "^5.0.1",
|
|
59
59
|
"@storybook/addon-docs": "^10.3.1",
|
|
60
60
|
"@storybook/react-vite": "^10.3.1",
|
|
61
|
-
"@testing-library/jest-dom": "^
|
|
61
|
+
"@testing-library/jest-dom": "^7.0.0",
|
|
62
62
|
"@testing-library/react": "^16.3.2",
|
|
63
|
-
"@types/node": "^
|
|
63
|
+
"@types/node": "^26.0.0",
|
|
64
64
|
"@types/react": "^19.2.14",
|
|
65
65
|
"@types/react-dom": "^19.2.3",
|
|
66
66
|
"@vitejs/plugin-react": "^6.0.0",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"vite": "^8.0.1",
|
|
73
73
|
"vitest": "^4.0.18"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "5198c5399ef657959272c0e35924391573d81146"
|
|
76
76
|
}
|