@uxf/ui 11.34.1 → 11.36.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.
- package/_tokens/generated/figma-colors.js +118 -0
- package/bin/generate-css-tokens.js +116 -0
- package/button/README.md +1 -1
- package/button/button.d.ts +2 -1
- package/button/button.stories.js +1 -1
- package/button-list/button-list.js +3 -2
- package/chip/chip.d.ts +2 -0
- package/chip/chip.js +3 -2
- package/components.d.ts +5 -0
- package/components.js +5 -0
- package/css/badge.css +1 -1
- package/css/button.css +50 -48
- package/css/colors-dark.css +118 -0
- package/css/colors-light.css +118 -0
- package/css/colors-primitives.css +312 -0
- package/css/figma-colors.css +540 -0
- package/css/icon-button.css +9 -0
- package/css/modal-header.css +4 -4
- package/css/pagination.css +2 -2
- package/css/radio-group.css +1 -1
- package/css/text-link.css +1 -1
- package/css/toggle.css +1 -1
- package/dropdown/dropdown.d.ts +2 -0
- package/dropdown/dropdown.js +3 -2
- package/dropzone/README.md +99 -1
- package/dropzone/dropzone-input.d.ts +4 -2
- package/dropzone/dropzone-input.js +5 -16
- package/dropzone/dropzone-list.d.ts +5 -2
- package/dropzone/dropzone-list.js +8 -7
- package/dropzone/dropzone.stories.d.ts +1 -2
- package/dropzone/dropzone.stories.js +29 -37
- package/dropzone/handle-rejected-files.d.ts +2 -0
- package/dropzone/handle-rejected-files.js +17 -0
- package/dropzone/index.d.ts +2 -1
- package/figma-colors.js +118 -0
- package/icon-button/README.md +9 -0
- package/icon-button/icon-button.d.ts +9 -0
- package/icon-button/icon-button.js +15 -0
- package/icon-button/icon-button.spec.d.ts +1 -0
- package/icon-button/icon-button.spec.js +9 -0
- package/icon-button/icon-button.stories.d.ts +2 -0
- package/icon-button/icon-button.stories.js +58 -0
- package/icon-button/index.d.ts +2 -0
- package/icon-button/index.js +5 -0
- package/list-item/list-item.d.ts +2 -0
- package/list-item/list-item.js +3 -2
- package/modal-header/README.md +1 -0
- package/package.json +44 -38
- package/readmes.d.ts +1 -0
- package/readmes.js +58 -56
- package/scripts/generate-tw-tokens.js +1 -0
- package/text-link/text-link.d.ts +2 -0
- package/text-link/text-link.js +3 -2
- package/toggle/toggle.stories.js +7 -7
- package/tokens/figma-colors.js +118 -0
- package/tw-tokens/tw-colors.d.ts +115 -0
- package/tw-tokens/tw-colors.js +115 -0
- package/tw-tokens/tw-containers.js +1 -7
- package/tw-tokens/tw-screens.js +1 -7
- package/utils/storybook-config.d.ts +5 -0
- package/utils/storybook-config.js +5 -0
- package/utils/tailwind-config.js +7 -0
- package/css/colors.css +0 -99
- /package/{button → utils}/next-link.d.ts +0 -0
- /package/{button → utils}/next-link.js +0 -0
package/list-item/list-item.js
CHANGED
|
@@ -30,12 +30,13 @@ const react_1 = __importStar(require("react"));
|
|
|
30
30
|
const icon_1 = require("../icon");
|
|
31
31
|
exports.ListItem = (0, react_1.forwardRef)((props, ref) => {
|
|
32
32
|
// eslint-disable-next-line react/destructuring-assignment
|
|
33
|
-
const { className, children, endElement, endIcon, ...restProps } = props;
|
|
33
|
+
const { as = "a", className, children, endElement, endIcon, ...restProps } = props;
|
|
34
|
+
const Component = as;
|
|
34
35
|
const anchorProps = (0, use_anchor_props_1.useAnchorProps)({
|
|
35
36
|
...restProps,
|
|
36
37
|
className: (0, cx_1.cx)("uxf-list-item", className),
|
|
37
38
|
});
|
|
38
|
-
return (react_1.default.createElement(
|
|
39
|
+
return (react_1.default.createElement(Component, { ref: ref, ...anchorProps },
|
|
39
40
|
react_1.default.createElement("span", { className: "uxf-list-item__inner" }, children),
|
|
40
41
|
endElement && react_1.default.createElement("span", { className: "uxf-list-item__end-element-wrapper" }, endElement),
|
|
41
42
|
endIcon && (react_1.default.createElement("span", { className: "uxf-list-item__end-icon-wrapper" },
|
package/modal-header/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,39 +1,45 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
2
|
+
"name": "@uxf/ui",
|
|
3
|
+
"version": "11.36.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"gen": "npm run css-tokens:gen",
|
|
10
|
+
"build": "npm run css:prepare && npm run tokens:prepare && tsc -P tsconfig.json",
|
|
11
|
+
"css-tokens:gen": "bin/generate-css-tokens.js --source=./_tokens --output=./_tokens/generated/",
|
|
12
|
+
"css:prepare": "rm -rf ./css && mkdir css && cp ./**/*.css ./css/ && cp ./_tokens/generated/figma-colors.css ./css/",
|
|
13
|
+
"tokens:prepare": "rm -rf ./tokens && mkdir tokens && cp ./_tokens/generated/figma-colors.js ./tokens/",
|
|
14
|
+
"tw-tokens:check": "ts-node ./scripts/generate-tw-tokens.js --mode=\"check\" --twConfig=\"./utils/tailwind-config.js\" --outputPath=\"./tw-tokens/\"",
|
|
15
|
+
"tw-tokens:gen": "ts-node ./scripts/generate-tw-tokens.js --twConfig=\"./utils/tailwind-config.js\" --outputPath=\"./tw-tokens/\"",
|
|
16
|
+
"typecheck": "../../node_modules/.bin/tsc --noEmit --skipLibCheck"
|
|
17
|
+
},
|
|
18
|
+
"author": "UX Fans s.r.o",
|
|
19
|
+
"bin": {
|
|
20
|
+
"uxf-css-color-tokens-generator": "bin/generate-css-tokens.js"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@floating-ui/react": "0.26.23",
|
|
25
|
+
"@headlessui/react": "1.7.14",
|
|
26
|
+
"@uxf/core": "11.35.0",
|
|
27
|
+
"@uxf/core-react": "11.36.0",
|
|
28
|
+
"@uxf/datepicker": "11.32.0",
|
|
29
|
+
"@uxf/styles": "11.35.0",
|
|
30
|
+
"color2k": "2.0.3",
|
|
31
|
+
"dayjs": "1.11.13",
|
|
32
|
+
"jump.js": "1.0.2",
|
|
33
|
+
"react-dropzone": "14.2.3",
|
|
34
|
+
"react-swipeable": "7.0.1"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": ">= 18.2.0",
|
|
38
|
+
"react-dom": ">= 18.2.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/jump.js": "1.0.6",
|
|
42
|
+
"@types/react": "18.3.5",
|
|
43
|
+
"@types/react-dom": "18.3.0"
|
|
44
|
+
}
|
|
45
|
+
}
|
package/readmes.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare const readmes: {
|
|
|
29
29
|
readonly "flash-messages": typeof alertBubbleReadme;
|
|
30
30
|
readonly "form-component": typeof alertBubbleReadme;
|
|
31
31
|
readonly icon: typeof alertBubbleReadme;
|
|
32
|
+
readonly "icon-button": typeof alertBubbleReadme;
|
|
32
33
|
readonly "image-gallery": typeof alertBubbleReadme;
|
|
33
34
|
readonly input: typeof alertBubbleReadme;
|
|
34
35
|
readonly label: typeof alertBubbleReadme;
|
package/readmes.js
CHANGED
|
@@ -34,34 +34,35 @@ const README_md_26 = __importDefault(require("./file-input/README.md"));
|
|
|
34
34
|
const README_md_27 = __importDefault(require("./flash-messages/README.md"));
|
|
35
35
|
const README_md_28 = __importDefault(require("./form-component/README.md"));
|
|
36
36
|
const README_md_29 = __importDefault(require("./icon/README.md"));
|
|
37
|
-
const README_md_30 = __importDefault(require("./
|
|
38
|
-
const README_md_31 = __importDefault(require("./
|
|
39
|
-
const README_md_32 = __importDefault(require("./
|
|
40
|
-
const README_md_33 = __importDefault(require("./
|
|
41
|
-
const README_md_34 = __importDefault(require("./
|
|
42
|
-
const README_md_35 = __importDefault(require("./
|
|
43
|
-
const README_md_36 = __importDefault(require("./
|
|
44
|
-
const README_md_37 = __importDefault(require("./
|
|
45
|
-
const README_md_38 = __importDefault(require("./
|
|
46
|
-
const README_md_39 = __importDefault(require("./modal
|
|
47
|
-
const README_md_40 = __importDefault(require("./modal-
|
|
48
|
-
const README_md_41 = __importDefault(require("./
|
|
49
|
-
const README_md_42 = __importDefault(require("./multi-
|
|
50
|
-
const README_md_43 = __importDefault(require("./
|
|
51
|
-
const README_md_44 = __importDefault(require("./
|
|
52
|
-
const README_md_45 = __importDefault(require("./
|
|
53
|
-
const README_md_46 = __importDefault(require("./radio
|
|
54
|
-
const README_md_47 = __importDefault(require("./
|
|
55
|
-
const README_md_48 = __importDefault(require("./
|
|
56
|
-
const README_md_49 = __importDefault(require("./
|
|
57
|
-
const README_md_50 = __importDefault(require("./
|
|
58
|
-
const README_md_51 = __importDefault(require("./text-
|
|
59
|
-
const README_md_52 = __importDefault(require("./
|
|
60
|
-
const README_md_53 = __importDefault(require("./
|
|
61
|
-
const README_md_54 = __importDefault(require("./time-picker
|
|
62
|
-
const README_md_55 = __importDefault(require("./
|
|
63
|
-
const README_md_56 = __importDefault(require("./
|
|
64
|
-
const README_md_57 = __importDefault(require("./
|
|
37
|
+
const README_md_30 = __importDefault(require("./icon-button/README.md"));
|
|
38
|
+
const README_md_31 = __importDefault(require("./image-gallery/README.md"));
|
|
39
|
+
const README_md_32 = __importDefault(require("./input/README.md"));
|
|
40
|
+
const README_md_33 = __importDefault(require("./label/README.md"));
|
|
41
|
+
const README_md_34 = __importDefault(require("./layout/README.md"));
|
|
42
|
+
const README_md_35 = __importDefault(require("./list-item/README.md"));
|
|
43
|
+
const README_md_36 = __importDefault(require("./loader/README.md"));
|
|
44
|
+
const README_md_37 = __importDefault(require("./lozenge/README.md"));
|
|
45
|
+
const README_md_38 = __importDefault(require("./message/README.md"));
|
|
46
|
+
const README_md_39 = __importDefault(require("./modal/README.md"));
|
|
47
|
+
const README_md_40 = __importDefault(require("./modal-dialog/README.md"));
|
|
48
|
+
const README_md_41 = __importDefault(require("./modal-header/README.md"));
|
|
49
|
+
const README_md_42 = __importDefault(require("./multi-combobox/README.md"));
|
|
50
|
+
const README_md_43 = __importDefault(require("./multi-select/README.md"));
|
|
51
|
+
const README_md_44 = __importDefault(require("./pagination/README.md"));
|
|
52
|
+
const README_md_45 = __importDefault(require("./paper/README.md"));
|
|
53
|
+
const README_md_46 = __importDefault(require("./radio/README.md"));
|
|
54
|
+
const README_md_47 = __importDefault(require("./radio-group/README.md"));
|
|
55
|
+
const README_md_48 = __importDefault(require("./raster-image/README.md"));
|
|
56
|
+
const README_md_49 = __importDefault(require("./select/README.md"));
|
|
57
|
+
const README_md_50 = __importDefault(require("./tabs/README.md"));
|
|
58
|
+
const README_md_51 = __importDefault(require("./text-input/README.md"));
|
|
59
|
+
const README_md_52 = __importDefault(require("./text-link/README.md"));
|
|
60
|
+
const README_md_53 = __importDefault(require("./textarea/README.md"));
|
|
61
|
+
const README_md_54 = __importDefault(require("./time-picker/README.md"));
|
|
62
|
+
const README_md_55 = __importDefault(require("./time-picker-input/README.md"));
|
|
63
|
+
const README_md_56 = __importDefault(require("./toggle/README.md"));
|
|
64
|
+
const README_md_57 = __importDefault(require("./tooltip/README.md"));
|
|
65
|
+
const README_md_58 = __importDefault(require("./typography/README.md"));
|
|
65
66
|
exports.readmes = {
|
|
66
67
|
"alert-bubble": README_md_1.default,
|
|
67
68
|
"avatar": README_md_2.default,
|
|
@@ -92,32 +93,33 @@ exports.readmes = {
|
|
|
92
93
|
"flash-messages": README_md_27.default,
|
|
93
94
|
"form-component": README_md_28.default,
|
|
94
95
|
"icon": README_md_29.default,
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"modal
|
|
105
|
-
"modal-
|
|
106
|
-
"
|
|
107
|
-
"multi-
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"radio
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"text-
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"time-picker
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
96
|
+
"icon-button": README_md_30.default,
|
|
97
|
+
"image-gallery": README_md_31.default,
|
|
98
|
+
"input": README_md_32.default,
|
|
99
|
+
"label": README_md_33.default,
|
|
100
|
+
"layout": README_md_34.default,
|
|
101
|
+
"list-item": README_md_35.default,
|
|
102
|
+
"loader": README_md_36.default,
|
|
103
|
+
"lozenge": README_md_37.default,
|
|
104
|
+
"message": README_md_38.default,
|
|
105
|
+
"modal": README_md_39.default,
|
|
106
|
+
"modal-dialog": README_md_40.default,
|
|
107
|
+
"modal-header": README_md_41.default,
|
|
108
|
+
"multi-combobox": README_md_42.default,
|
|
109
|
+
"multi-select": README_md_43.default,
|
|
110
|
+
"pagination": README_md_44.default,
|
|
111
|
+
"paper": README_md_45.default,
|
|
112
|
+
"radio": README_md_46.default,
|
|
113
|
+
"radio-group": README_md_47.default,
|
|
114
|
+
"raster-image": README_md_48.default,
|
|
115
|
+
"select": README_md_49.default,
|
|
116
|
+
"tabs": README_md_50.default,
|
|
117
|
+
"text-input": README_md_51.default,
|
|
118
|
+
"text-link": README_md_52.default,
|
|
119
|
+
"textarea": README_md_53.default,
|
|
120
|
+
"time-picker": README_md_54.default,
|
|
121
|
+
"time-picker-input": README_md_55.default,
|
|
122
|
+
"toggle": README_md_56.default,
|
|
123
|
+
"tooltip": README_md_57.default,
|
|
124
|
+
"typography": README_md_58.default,
|
|
123
125
|
};
|
package/text-link/text-link.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { UseAnchorProps } from "@uxf/core-react/hooks/use-anchor-props";
|
|
2
2
|
import { TextLinkVariants } from "@uxf/ui/text-link/theme";
|
|
3
3
|
import React, { AnchorHTMLAttributes } from "react";
|
|
4
|
+
import { NextLink } from "../utils/next-link";
|
|
4
5
|
export type TextLinkVariant = keyof TextLinkVariants;
|
|
5
6
|
export interface TextLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "type">, UseAnchorProps {
|
|
7
|
+
as?: NextLink | "a";
|
|
6
8
|
variant?: TextLinkVariant;
|
|
7
9
|
}
|
|
8
10
|
export declare const TextLink: React.ForwardRefExoticComponent<TextLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
package/text-link/text-link.js
CHANGED
|
@@ -29,11 +29,12 @@ const cx_1 = require("@uxf/core/utils/cx");
|
|
|
29
29
|
const react_1 = __importStar(require("react"));
|
|
30
30
|
exports.TextLink = (0, react_1.forwardRef)((props, ref) => {
|
|
31
31
|
// eslint-disable-next-line react/destructuring-assignment
|
|
32
|
-
const { className, children, variant, ...restProps } = props;
|
|
32
|
+
const { as = "a", className, children, variant, ...restProps } = props;
|
|
33
|
+
const Component = as;
|
|
33
34
|
const anchorProps = (0, use_anchor_props_1.useAnchorProps)({
|
|
34
35
|
...restProps,
|
|
35
36
|
className: (0, cx_1.cx)("uxf-text-link", `uxf-text-link--variant-${variant !== null && variant !== void 0 ? variant : "default"}`, className),
|
|
36
37
|
});
|
|
37
|
-
return (react_1.default.createElement(
|
|
38
|
+
return (react_1.default.createElement(Component, { ref: ref, ...anchorProps }, children));
|
|
38
39
|
});
|
|
39
40
|
exports.TextLink.displayName = "UxfUiTextLink";
|
package/toggle/toggle.stories.js
CHANGED
|
@@ -32,14 +32,14 @@ exports.default = {
|
|
|
32
32
|
component: index_1.Toggle,
|
|
33
33
|
};
|
|
34
34
|
function Default() {
|
|
35
|
-
const [
|
|
36
|
-
const onChange = (0, action_1.action)("onChange", () =>
|
|
35
|
+
const [isChecked, setIsChecked] = (0, react_1.useState)(true);
|
|
36
|
+
const onChange = (0, action_1.action)("onChange", () => setIsChecked((prev) => !prev));
|
|
37
37
|
const storyToggles = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
38
|
-
react_1.default.createElement(index_1.Toggle, { label: "
|
|
39
|
-
react_1.default.createElement(index_1.Toggle, { label: "
|
|
40
|
-
react_1.default.createElement(index_1.Toggle, { isDisabled: true, label: "
|
|
41
|
-
react_1.default.createElement(index_1.Toggle, { hiddenLabel: true, label: "
|
|
42
|
-
react_1.default.createElement(index_1.Toggle, { label: "
|
|
38
|
+
react_1.default.createElement(index_1.Toggle, { label: "Default", name: "toggle", onChange: onChange, value: isChecked }),
|
|
39
|
+
react_1.default.createElement(index_1.Toggle, { label: "Size sm", name: "toggle", onChange: onChange, size: "sm", value: isChecked }),
|
|
40
|
+
react_1.default.createElement(index_1.Toggle, { isDisabled: true, label: "Disabled", name: "toggle-disabled", onChange: onChange, value: isChecked }),
|
|
41
|
+
react_1.default.createElement(index_1.Toggle, { hiddenLabel: true, label: "Default", name: "toggle-hidden-label", onChange: onChange, value: isChecked }),
|
|
42
|
+
react_1.default.createElement(index_1.Toggle, { label: "Default (reversed)", name: "toggle-reversed", onChange: onChange, value: isChecked, variant: "reversed" })));
|
|
43
43
|
return (react_1.default.createElement("div", { className: "flex" },
|
|
44
44
|
react_1.default.createElement("div", { className: "w-1/2 gap-4 p-20" }, storyToggles)));
|
|
45
45
|
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
const figmaColors = {
|
|
2
|
+
base_border_border: "var(--uxf-color-base-border-border)",
|
|
3
|
+
base_border_input: "var(--uxf-color-base-border-input)",
|
|
4
|
+
base_border_inverted_border: "var(--uxf-color-base-border-inverted-border)",
|
|
5
|
+
base_border_inverted_input: "var(--uxf-color-base-border-inverted-input)",
|
|
6
|
+
base_icon_disabled: "var(--uxf-color-base-icon-disabled)",
|
|
7
|
+
base_icon_high_emphasis: "var(--uxf-color-base-icon-high-emphasis)",
|
|
8
|
+
base_icon_low_emphasis: "var(--uxf-color-base-icon-low-emphasis)",
|
|
9
|
+
base_icon_medium_emphasis: "var(--uxf-color-base-icon-medium-emphasis)",
|
|
10
|
+
base_icon_inverted_low_emphasis: "var(--uxf-color-base-icon-inverted-low-emphasis)",
|
|
11
|
+
base_icon_inverted_disabled: "var(--uxf-color-base-icon-inverted-disabled)",
|
|
12
|
+
base_icon_inverted_high_emphasis: "var(--uxf-color-base-icon-inverted-high-emphasis)",
|
|
13
|
+
base_shadow_shadow_md: "var(--uxf-color-base-shadow-shadow-md)",
|
|
14
|
+
base_shadow_shadow_sm: "var(--uxf-color-base-shadow-shadow-sm)",
|
|
15
|
+
base_surface_background: "var(--uxf-color-base-surface-background)",
|
|
16
|
+
base_surface_disabled: "var(--uxf-color-base-surface-disabled)",
|
|
17
|
+
base_surface_input: "var(--uxf-color-base-surface-input)",
|
|
18
|
+
base_surface_input_disabled: "var(--uxf-color-base-surface-input-disabled)",
|
|
19
|
+
base_surface_input_hover: "var(--uxf-color-base-surface-input-hover)",
|
|
20
|
+
base_surface_main: "var(--uxf-color-base-surface-main)",
|
|
21
|
+
base_surface_main_hover: "var(--uxf-color-base-surface-main-hover)",
|
|
22
|
+
base_surface_popup: "var(--uxf-color-base-surface-popup)",
|
|
23
|
+
base_surface_tooltip: "var(--uxf-color-base-surface-tooltip)",
|
|
24
|
+
base_surface_inverted_default: "var(--uxf-color-base-surface-inverted-default)",
|
|
25
|
+
base_surface_inverted_default_hover: "var(--uxf-color-base-surface-inverted-default-hover)",
|
|
26
|
+
base_surface_inverted_disabled: "var(--uxf-color-base-surface-inverted-disabled)",
|
|
27
|
+
base_surface_inverted_main: "var(--uxf-color-base-surface-inverted-main)",
|
|
28
|
+
base_surface_inverted_main_hover: "var(--uxf-color-base-surface-inverted-main-hover)",
|
|
29
|
+
base_text_disabled: "var(--uxf-color-base-text-disabled)",
|
|
30
|
+
base_text_high_emphasis: "var(--uxf-color-base-text-high-emphasis)",
|
|
31
|
+
base_text_link: "var(--uxf-color-base-text-link)",
|
|
32
|
+
base_text_link_pressed: "var(--uxf-color-base-text-link-pressed)",
|
|
33
|
+
base_text_low_emphasis: "var(--uxf-color-base-text-low-emphasis)",
|
|
34
|
+
base_text_inverted_disabled: "var(--uxf-color-base-text-inverted-disabled)",
|
|
35
|
+
base_text_inverted_high_emphasis: "var(--uxf-color-base-text-inverted-high-emphasis)",
|
|
36
|
+
base_text_inverted_link: "var(--uxf-color-base-text-inverted-link)",
|
|
37
|
+
base_text_inverted_low_emphasis: "var(--uxf-color-base-text-inverted-low-emphasis)",
|
|
38
|
+
brand_border: "var(--uxf-color-brand-border)",
|
|
39
|
+
brand_icon: "var(--uxf-color-brand-icon)",
|
|
40
|
+
brand_icon_on_muted: "var(--uxf-color-brand-icon-on-muted)",
|
|
41
|
+
brand_text: "var(--uxf-color-brand-text)",
|
|
42
|
+
brand_text_on_muted: "var(--uxf-color-brand-text-on-muted)",
|
|
43
|
+
brand_surface_bolder: "var(--uxf-color-brand-surface-bolder)",
|
|
44
|
+
brand_surface_bolder_hover: "var(--uxf-color-brand-surface-bolder-hover)",
|
|
45
|
+
brand_surface_default: "var(--uxf-color-brand-surface-default)",
|
|
46
|
+
brand_surface_default_hover: "var(--uxf-color-brand-surface-default-hover)",
|
|
47
|
+
brand_surface_muted: "var(--uxf-color-brand-surface-muted)",
|
|
48
|
+
brand_surface_muted_hover: "var(--uxf-color-brand-surface-muted-hover)",
|
|
49
|
+
brand_surface_subtle: "var(--uxf-color-brand-surface-subtle)",
|
|
50
|
+
brand_surface_subtle_hover: "var(--uxf-color-brand-surface-subtle-hover)",
|
|
51
|
+
info_border: "var(--uxf-color-info-border)",
|
|
52
|
+
info_icon: "var(--uxf-color-info-icon)",
|
|
53
|
+
info_icon_on_muted: "var(--uxf-color-info-icon-on-muted)",
|
|
54
|
+
info_text: "var(--uxf-color-info-text)",
|
|
55
|
+
info_text_on_muted: "var(--uxf-color-info-text-on-muted)",
|
|
56
|
+
info_surface_default: "var(--uxf-color-info-surface-default)",
|
|
57
|
+
info_surface_default_hover: "var(--uxf-color-info-surface-default-hover)",
|
|
58
|
+
info_surface_muted: "var(--uxf-color-info-surface-muted)",
|
|
59
|
+
info_surface_muted_hover: "var(--uxf-color-info-surface-muted-hover)",
|
|
60
|
+
info_surface_subtle: "var(--uxf-color-info-surface-subtle)",
|
|
61
|
+
info_surface_subtle_hover: "var(--uxf-color-info-surface-subtle-hover)",
|
|
62
|
+
inverted_border: "var(--uxf-color-inverted-border)",
|
|
63
|
+
inverted_icon: "var(--uxf-color-inverted-icon)",
|
|
64
|
+
inverted_icon_on_muted: "var(--uxf-color-inverted-icon-on-muted)",
|
|
65
|
+
inverted_text_default: "var(--uxf-color-inverted-text-default)",
|
|
66
|
+
inverted_text_disabled: "var(--uxf-color-inverted-text-disabled)",
|
|
67
|
+
inverted_text_muted: "var(--uxf-color-inverted-text-muted)",
|
|
68
|
+
inverted_text_on_muted: "var(--uxf-color-inverted-text-on-muted)",
|
|
69
|
+
negative_border: "var(--uxf-color-negative-border)",
|
|
70
|
+
negative_icon: "var(--uxf-color-negative-icon)",
|
|
71
|
+
negative_icon_on_muted: "var(--uxf-color-negative-icon-on-muted)",
|
|
72
|
+
negative_text: "var(--uxf-color-negative-text)",
|
|
73
|
+
negative_text_on_muted: "var(--uxf-color-negative-text-on-muted)",
|
|
74
|
+
negative_surface_default: "var(--uxf-color-negative-surface-default)",
|
|
75
|
+
negative_surface_default_hover: "var(--uxf-color-negative-surface-default-hover)",
|
|
76
|
+
negative_surface_muted: "var(--uxf-color-negative-surface-muted)",
|
|
77
|
+
negative_surface_muted_hover: "var(--uxf-color-negative-surface-muted-hover)",
|
|
78
|
+
negative_surface_subtle: "var(--uxf-color-negative-surface-subtle)",
|
|
79
|
+
negative_surface_subtle_hover: "var(--uxf-color-negative-surface-subtle-hover)",
|
|
80
|
+
neutral_border: "var(--uxf-color-neutral-border)",
|
|
81
|
+
neutral_icon: "var(--uxf-color-neutral-icon)",
|
|
82
|
+
neutral_icon_on_muted: "var(--uxf-color-neutral-icon-on-muted)",
|
|
83
|
+
neutral_text: "var(--uxf-color-neutral-text)",
|
|
84
|
+
neutral_text_on_muted: "var(--uxf-color-neutral-text-on-muted)",
|
|
85
|
+
neutral_surface_bolder: "var(--uxf-color-neutral-surface-bolder)",
|
|
86
|
+
neutral_surface_bolder_hover: "var(--uxf-color-neutral-surface-bolder-hover)",
|
|
87
|
+
neutral_surface_default: "var(--uxf-color-neutral-surface-default)",
|
|
88
|
+
neutral_surface_default_hover: "var(--uxf-color-neutral-surface-default-hover)",
|
|
89
|
+
neutral_surface_muted: "var(--uxf-color-neutral-surface-muted)",
|
|
90
|
+
neutral_surface_muted_hover: "var(--uxf-color-neutral-surface-muted-hover)",
|
|
91
|
+
neutral_surface_subtle: "var(--uxf-color-neutral-surface-subtle)",
|
|
92
|
+
neutral_surface_subtle_hover: "var(--uxf-color-neutral-surface-subtle-hover)",
|
|
93
|
+
positive_border: "var(--uxf-color-positive-border)",
|
|
94
|
+
positive_icon: "var(--uxf-color-positive-icon)",
|
|
95
|
+
positive_icon_on_muted: "var(--uxf-color-positive-icon-on-muted)",
|
|
96
|
+
positive_text: "var(--uxf-color-positive-text)",
|
|
97
|
+
positive_text_on_muted: "var(--uxf-color-positive-text-on-muted)",
|
|
98
|
+
positive_surface_default: "var(--uxf-color-positive-surface-default)",
|
|
99
|
+
positive_surface_default_hover: "var(--uxf-color-positive-surface-default-hover)",
|
|
100
|
+
positive_surface_muted: "var(--uxf-color-positive-surface-muted)",
|
|
101
|
+
positive_surface_muted_hover: "var(--uxf-color-positive-surface-muted-hover)",
|
|
102
|
+
positive_surface_subtle: "var(--uxf-color-positive-surface-subtle)",
|
|
103
|
+
positive_surface_subtle_hover: "var(--uxf-color-positive-surface-subtle-hover)",
|
|
104
|
+
warning_border: "var(--uxf-color-warning-border)",
|
|
105
|
+
warning_icon: "var(--uxf-color-warning-icon)",
|
|
106
|
+
warning_icon_on_muted: "var(--uxf-color-warning-icon-on-muted)",
|
|
107
|
+
warning_text: "var(--uxf-color-warning-text)",
|
|
108
|
+
warning_text_on_muted: "var(--uxf-color-warning-text-on-muted)",
|
|
109
|
+
warning_surface_default: "var(--uxf-color-warning-surface-default)",
|
|
110
|
+
warning_surface_default_hover: "var(--uxf-color-warning-surface-default-hover)",
|
|
111
|
+
warning_surface_muted: "var(--uxf-color-warning-surface-muted)",
|
|
112
|
+
warning_surface_muted_hover: "var(--uxf-color-warning-surface-muted-hover)",
|
|
113
|
+
warning_surface_subtle: "var(--uxf-color-warning-surface-subtle)",
|
|
114
|
+
warning_surface_subtle_hover: "var(--uxf-color-warning-surface-subtle-hover)",
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
module.exports = { figmaColors }
|
package/tw-tokens/tw-colors.d.ts
CHANGED
|
@@ -351,5 +351,120 @@ export declare const twColors: {
|
|
|
351
351
|
DEFAULT: string;
|
|
352
352
|
};
|
|
353
353
|
test: string;
|
|
354
|
+
primary_surface_default: string;
|
|
355
|
+
primary_surface_default_hover: string;
|
|
356
|
+
base_border_border: string;
|
|
357
|
+
base_border_input: string;
|
|
358
|
+
base_border_inverted_border: string;
|
|
359
|
+
base_border_inverted_input: string;
|
|
360
|
+
base_icon_disabled: string;
|
|
361
|
+
base_icon_high_emphasis: string;
|
|
362
|
+
base_icon_low_emphasis: string;
|
|
363
|
+
base_icon_medium_emphasis: string;
|
|
364
|
+
base_icon_inverted_low_emphasis: string;
|
|
365
|
+
base_icon_inverted_disabled: string;
|
|
366
|
+
base_icon_inverted_high_emphasis: string;
|
|
367
|
+
base_shadow_shadow_md: string;
|
|
368
|
+
base_shadow_shadow_sm: string;
|
|
369
|
+
base_surface_background: string;
|
|
370
|
+
base_surface_disabled: string;
|
|
371
|
+
base_surface_input: string;
|
|
372
|
+
base_surface_input_disabled: string;
|
|
373
|
+
base_surface_input_hover: string;
|
|
374
|
+
base_surface_main: string;
|
|
375
|
+
base_surface_main_hover: string;
|
|
376
|
+
base_surface_popup: string;
|
|
377
|
+
base_surface_tooltip: string;
|
|
378
|
+
base_surface_inverted_default: string;
|
|
379
|
+
base_surface_inverted_default_hover: string;
|
|
380
|
+
base_surface_inverted_disabled: string;
|
|
381
|
+
base_surface_inverted_main: string;
|
|
382
|
+
base_surface_inverted_main_hover: string;
|
|
383
|
+
base_text_disabled: string;
|
|
384
|
+
base_text_high_emphasis: string;
|
|
385
|
+
base_text_link: string;
|
|
386
|
+
base_text_link_pressed: string;
|
|
387
|
+
base_text_low_emphasis: string;
|
|
388
|
+
base_text_inverted_disabled: string;
|
|
389
|
+
base_text_inverted_high_emphasis: string;
|
|
390
|
+
base_text_inverted_link: string;
|
|
391
|
+
base_text_inverted_low_emphasis: string;
|
|
392
|
+
brand_border: string;
|
|
393
|
+
brand_icon: string;
|
|
394
|
+
brand_icon_on_muted: string;
|
|
395
|
+
brand_text: string;
|
|
396
|
+
brand_text_on_muted: string;
|
|
397
|
+
brand_surface_bolder: string;
|
|
398
|
+
brand_surface_bolder_hover: string;
|
|
399
|
+
brand_surface_default: string;
|
|
400
|
+
brand_surface_default_hover: string;
|
|
401
|
+
brand_surface_muted: string;
|
|
402
|
+
brand_surface_muted_hover: string;
|
|
403
|
+
brand_surface_subtle: string;
|
|
404
|
+
brand_surface_subtle_hover: string;
|
|
405
|
+
info_border: string;
|
|
406
|
+
info_icon: string;
|
|
407
|
+
info_icon_on_muted: string;
|
|
408
|
+
info_text: string;
|
|
409
|
+
info_text_on_muted: string;
|
|
410
|
+
info_surface_default: string;
|
|
411
|
+
info_surface_default_hover: string;
|
|
412
|
+
info_surface_muted: string;
|
|
413
|
+
info_surface_muted_hover: string;
|
|
414
|
+
info_surface_subtle: string;
|
|
415
|
+
info_surface_subtle_hover: string;
|
|
416
|
+
inverted_border: string;
|
|
417
|
+
inverted_icon: string;
|
|
418
|
+
inverted_icon_on_muted: string;
|
|
419
|
+
inverted_text_default: string;
|
|
420
|
+
inverted_text_disabled: string;
|
|
421
|
+
inverted_text_muted: string;
|
|
422
|
+
inverted_text_on_muted: string;
|
|
423
|
+
negative_border: string;
|
|
424
|
+
negative_icon: string;
|
|
425
|
+
negative_icon_on_muted: string;
|
|
426
|
+
negative_text: string;
|
|
427
|
+
negative_text_on_muted: string;
|
|
428
|
+
negative_surface_default: string;
|
|
429
|
+
negative_surface_default_hover: string;
|
|
430
|
+
negative_surface_muted: string;
|
|
431
|
+
negative_surface_muted_hover: string;
|
|
432
|
+
negative_surface_subtle: string;
|
|
433
|
+
negative_surface_subtle_hover: string;
|
|
434
|
+
neutral_border: string;
|
|
435
|
+
neutral_icon: string;
|
|
436
|
+
neutral_icon_on_muted: string;
|
|
437
|
+
neutral_text: string;
|
|
438
|
+
neutral_text_on_muted: string;
|
|
439
|
+
neutral_surface_bolder: string;
|
|
440
|
+
neutral_surface_bolder_hover: string;
|
|
441
|
+
neutral_surface_default: string;
|
|
442
|
+
neutral_surface_default_hover: string;
|
|
443
|
+
neutral_surface_muted: string;
|
|
444
|
+
neutral_surface_muted_hover: string;
|
|
445
|
+
neutral_surface_subtle: string;
|
|
446
|
+
neutral_surface_subtle_hover: string;
|
|
447
|
+
positive_border: string;
|
|
448
|
+
positive_icon: string;
|
|
449
|
+
positive_icon_on_muted: string;
|
|
450
|
+
positive_text: string;
|
|
451
|
+
positive_text_on_muted: string;
|
|
452
|
+
positive_surface_default: string;
|
|
453
|
+
positive_surface_default_hover: string;
|
|
454
|
+
positive_surface_muted: string;
|
|
455
|
+
positive_surface_muted_hover: string;
|
|
456
|
+
positive_surface_subtle: string;
|
|
457
|
+
positive_surface_subtle_hover: string;
|
|
458
|
+
warning_border: string;
|
|
459
|
+
warning_icon: string;
|
|
460
|
+
warning_icon_on_muted: string;
|
|
461
|
+
warning_text: string;
|
|
462
|
+
warning_text_on_muted: string;
|
|
463
|
+
warning_surface_default: string;
|
|
464
|
+
warning_surface_default_hover: string;
|
|
465
|
+
warning_surface_muted: string;
|
|
466
|
+
warning_surface_muted_hover: string;
|
|
467
|
+
warning_surface_subtle: string;
|
|
468
|
+
warning_surface_subtle_hover: string;
|
|
354
469
|
};
|
|
355
470
|
export type TwColors = typeof twColors;
|