@spaced-out/ui-design-system 0.5.34-beta.2 → 0.5.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/.github/workflows/publish-mcp.yml +11 -10
- package/CHANGELOG.md +20 -0
- package/lib/components/Button/Button.d.ts +1 -0
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.js +7 -3
- package/lib/components/Button/Button.module.css +28 -1
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts +6 -1
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.d.ts.map +1 -1
- package/lib/components/ButtonDropdown/SimpleButtonDropdown.js +3 -1
- package/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/components/Icon/Icon.js +2 -1
- package/lib/components/Icon/Icon.module.css +67 -0
- package/lib/components/Link/Link.d.ts.map +1 -1
- package/lib/components/Link/Link.js +3 -2
- package/lib/components/StatusIndicator/StatusIndicator.module.css +10 -10
- package/lib/components/Toast/Toast.d.ts +0 -1
- package/lib/components/Toast/Toast.d.ts.map +1 -1
- package/lib/components/Toast/Toast.js +2 -4
- package/lib/components/Toast/Toast.module.css +12 -1
- package/mcp/README.md +28 -494
- package/mcp/build-mcp-data.js +78 -72
- package/mcp/index.js +1 -1
- package/mcp/package.json +2 -2
- package/mcp/test-server.js +1 -1
- package/package.json +1 -1
|
@@ -3,23 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
name: Publish MCP Server to NPM
|
|
5
5
|
|
|
6
|
-
# WORKFLOW DISABLED - Triggers commented out to prevent automatic runs
|
|
7
|
-
# Uncomment below to re-enable the workflow triggers
|
|
8
6
|
on:
|
|
9
7
|
# Run after the main NPM publish workflow completes successfully
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
workflow_dispatch:
|
|
8
|
+
workflow_run:
|
|
9
|
+
workflows: ['Release Genesis to NPM']
|
|
10
|
+
types:
|
|
11
|
+
- completed
|
|
12
|
+
branches: [master]
|
|
13
|
+
workflow_dispatch:
|
|
16
14
|
|
|
17
15
|
jobs:
|
|
18
16
|
publish-mcp:
|
|
19
17
|
runs-on: ubuntu-latest
|
|
20
|
-
# WORKFLOW DISABLED - Set to false to prevent execution
|
|
21
18
|
# Only run if triggered manually or if the workflow_run succeeded
|
|
22
|
-
if:
|
|
19
|
+
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
|
|
23
20
|
steps:
|
|
24
21
|
- name: Check Permissions
|
|
25
22
|
id: check-permissions
|
|
@@ -54,6 +51,10 @@ jobs:
|
|
|
54
51
|
working-directory: ./mcp
|
|
55
52
|
run: yarn install
|
|
56
53
|
|
|
54
|
+
- name: Build type definitions
|
|
55
|
+
run: yarn build:types
|
|
56
|
+
# Only generates .d.ts files in lib/ - much faster than full build
|
|
57
|
+
|
|
57
58
|
- name: Auto-bump patch version
|
|
58
59
|
if: github.event_name == 'workflow_run'
|
|
59
60
|
working-directory: ./mcp
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.5.35](https://github.com/spaced-out/ui-design-system/compare/v0.5.34...v0.5.35) (2025-12-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* introducing tertiary gradient type button ([#449](https://github.com/spaced-out/ui-design-system/issues/449)) ([9c8d740](https://github.com/spaced-out/ui-design-system/commit/9c8d740c2c932f74935699013ea45d0d2a2fed29))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **mcp:** expose .d.ts type definitions instead of source code ([#450](https://github.com/spaced-out/ui-design-system/issues/450)) ([4583947](https://github.com/spaced-out/ui-design-system/commit/45839475dec006acf9e99ca07b6c32cd7260f069))
|
|
16
|
+
* static label support for simple button dropdown ([#401](https://github.com/spaced-out/ui-design-system/issues/401)) ([f37c03f](https://github.com/spaced-out/ui-design-system/commit/f37c03f80af9f1a4b4cf04b7ff998b9c3a433639))
|
|
17
|
+
|
|
18
|
+
### [0.5.34](https://github.com/spaced-out/ui-design-system/compare/v0.5.34-beta.2...v0.5.34) (2025-12-12)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* updated tokens for icon and status indicator semantics ([#447](https://github.com/spaced-out/ui-design-system/issues/447)) ([8b5a002](https://github.com/spaced-out/ui-design-system/commit/8b5a002b0d75939e923b15c5a8d4361835b17e7a))
|
|
24
|
+
|
|
5
25
|
### [0.5.34-beta.2](https://github.com/spaced-out/ui-design-system/compare/v0.5.34-beta.1...v0.5.34-beta.2) (2025-12-11)
|
|
6
26
|
|
|
7
27
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAMrD,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAOlD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAMrD,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C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WACf,SAAQ,IAAI,CACV,eAAe,EACb,YAAY,GACZ,cAAc,GACd,cAAc,GACd,eAAe,GACf,eAAe,GACf,MAAM,GACN,SAAS,GACT,MAAM,CACT;IACD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAsBD,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,iBAAiB,CACjD,mBAAmB,EACnB,iBAAiB,CAoClB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,iBAAiB,CAsKvE,CAAC"}
|
|
@@ -29,7 +29,8 @@ const BUTTON_TYPES = exports.BUTTON_TYPES = Object.freeze({
|
|
|
29
29
|
tertiary: 'tertiary',
|
|
30
30
|
ghost: 'ghost',
|
|
31
31
|
danger: 'danger',
|
|
32
|
-
gradient: 'gradient'
|
|
32
|
+
gradient: 'gradient',
|
|
33
|
+
'tertiary-gradient': 'tertiaryGradient'
|
|
33
34
|
});
|
|
34
35
|
const BUTTON_ACTION_TYPE = exports.BUTTON_ACTION_TYPE = Object.freeze({
|
|
35
36
|
button: 'button',
|
|
@@ -46,7 +47,8 @@ const ButtonTypeToIconColorMap = {
|
|
|
46
47
|
tertiary: 'primary',
|
|
47
48
|
ghost: 'primary',
|
|
48
49
|
danger: 'inversePrimary',
|
|
49
|
-
gradient: 'inversePrimary'
|
|
50
|
+
gradient: 'inversePrimary',
|
|
51
|
+
tertiaryGradient: 'clickable'
|
|
50
52
|
};
|
|
51
53
|
const ButtonTypeToLoaderColorMap = {
|
|
52
54
|
primary: 'colorTextInversePrimary',
|
|
@@ -54,7 +56,8 @@ const ButtonTypeToLoaderColorMap = {
|
|
|
54
56
|
tertiary: 'colorTextPrimary',
|
|
55
57
|
ghost: 'colorTextPrimary',
|
|
56
58
|
danger: 'colorTextInversePrimary',
|
|
57
|
-
gradient: 'colorTextInversePrimary'
|
|
59
|
+
gradient: 'colorTextInversePrimary',
|
|
60
|
+
tertiaryGradient: 'colorTextClickable'
|
|
58
61
|
};
|
|
59
62
|
const UnstyledButton = exports.UnstyledButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
60
63
|
let {
|
|
@@ -123,6 +126,7 @@ const Button = exports.Button = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
123
126
|
[_ButtonModule.default.ghost]: type === 'ghost',
|
|
124
127
|
[_ButtonModule.default.danger]: type === 'danger',
|
|
125
128
|
[_ButtonModule.default.gradient]: type === 'gradient',
|
|
129
|
+
[_ButtonModule.default.tertiaryGradient]: type === 'tertiaryGradient',
|
|
126
130
|
[_ButtonModule.default.disabled]: disabled,
|
|
127
131
|
[_ButtonModule.default.small]: size === 'small',
|
|
128
132
|
[_ButtonModule.default.medium]: size === 'medium',
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
|
|
22
22
|
colorFocusPrimary,
|
|
23
23
|
colorFocusDanger,
|
|
24
|
+
colorFocusSecondary,
|
|
25
|
+
colorFocusInformation,
|
|
24
26
|
|
|
25
27
|
colorFillDisabled,
|
|
26
28
|
|
|
@@ -32,6 +34,8 @@
|
|
|
32
34
|
colorBorderSecondary,
|
|
33
35
|
|
|
34
36
|
colorFillPrimary,
|
|
37
|
+
colorFillSecondary,
|
|
38
|
+
colorInformationLightest,
|
|
35
39
|
colorInformation
|
|
36
40
|
|
|
37
41
|
) from '../../styles/variables/_color.css';
|
|
@@ -154,7 +158,7 @@ button {
|
|
|
154
158
|
background-color: colorButtonFillPrimaryPressed;
|
|
155
159
|
}
|
|
156
160
|
|
|
157
|
-
/* Currently
|
|
161
|
+
/* Currently Buttons with type `gradient` don't support hover / active states */
|
|
158
162
|
.gradient {
|
|
159
163
|
color: colorTextInversePrimary;
|
|
160
164
|
background-image: linear-gradient(
|
|
@@ -164,6 +168,29 @@ button {
|
|
|
164
168
|
);
|
|
165
169
|
}
|
|
166
170
|
|
|
171
|
+
.tertiaryGradient {
|
|
172
|
+
color: colorTextClickable;
|
|
173
|
+
border: borderWidthPrimary solid transparent;
|
|
174
|
+
background: linear-gradient(
|
|
175
|
+
to right,
|
|
176
|
+
colorFillSecondary,
|
|
177
|
+
colorInformationLightest
|
|
178
|
+
)
|
|
179
|
+
padding-box,
|
|
180
|
+
linear-gradient(to right, colorFocusSecondary, colorInformation) border-box;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.tertiaryGradient:hover,
|
|
184
|
+
.tertiaryGradient:active {
|
|
185
|
+
background: linear-gradient(
|
|
186
|
+
to right,
|
|
187
|
+
colorButtonFillSecondaryHovered,
|
|
188
|
+
colorFocusInformation
|
|
189
|
+
)
|
|
190
|
+
padding-box,
|
|
191
|
+
linear-gradient(to right, colorFocusSecondary, colorInformation) border-box;
|
|
192
|
+
}
|
|
193
|
+
|
|
167
194
|
.secondary {
|
|
168
195
|
color: colorTextClickable;
|
|
169
196
|
background-color: colorButtonFillSecondaryEnabled;
|
|
@@ -14,7 +14,7 @@ type ClassNames = Readonly<{
|
|
|
14
14
|
export interface SimpleButtonDropdownRef {
|
|
15
15
|
selectedKeys?: Array<string>;
|
|
16
16
|
}
|
|
17
|
-
export interface SimpleButtonDropdownProps extends Omit<ButtonProps, 'elevation' | 'classNames' | 'anchorPosition' | 'tooltip' | 'options' | 'optionsVariant' | 'allowSearch' | 'selectedKeys' | 'menuVirtualization' | 'header' | 'footer' | 'menuClassNames' | 'showLabelTooltip' | 'allowWrap' | 'onOptionSelect' | 'onMenuOpen' | 'onMenuClose' | 'resolveLabel' | 'resolveSecondaryLabel' | 'clickAwayRef'> {
|
|
17
|
+
export interface SimpleButtonDropdownProps extends Omit<ButtonProps, 'elevation' | 'classNames' | 'anchorPosition' | 'tooltip' | 'options' | 'optionsVariant' | 'allowSearch' | 'selectedKeys' | 'menuVirtualization' | 'header' | 'footer' | 'menuClassNames' | 'showLabelTooltip' | 'allowWrap' | 'onOptionSelect' | 'onMenuOpen' | 'onMenuClose' | 'staticLabels' | 'resolveLabel' | 'resolveSecondaryLabel' | 'clickAwayRef'> {
|
|
18
18
|
elevation?: ElevationType;
|
|
19
19
|
classNames?: ClassNames;
|
|
20
20
|
anchorPosition?: AnchorType;
|
|
@@ -32,6 +32,11 @@ export interface SimpleButtonDropdownProps extends Omit<ButtonProps, 'elevation'
|
|
|
32
32
|
onOptionSelect?: (option: MenuOption, arg2?: React.SyntheticEvent<HTMLElement> | null | undefined) => unknown;
|
|
33
33
|
onMenuOpen?: () => unknown;
|
|
34
34
|
onMenuClose?: () => unknown;
|
|
35
|
+
staticLabels?: {
|
|
36
|
+
RESULT?: string;
|
|
37
|
+
RESULTS?: string;
|
|
38
|
+
SEARCH_PLACEHOLDER?: string;
|
|
39
|
+
};
|
|
35
40
|
resolveLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
36
41
|
resolveSecondaryLabel?: (option: MenuOption) => string | React.ReactNode;
|
|
37
42
|
clickAwayRef?: React.RefObject<ClickAwayRefType | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleButtonDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonDropdown/SimpleButtonDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,cAAc,EAAE,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CA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,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,CACf,MAAM,EAAE,UAAU,EAClB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,GAAG,SAAS,KACxD,OAAO,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B,CAAC;IACF,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChE,qBAAqB,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACzE,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAkHD,eAAO,MAAM,oBAAoB,EAAE,IAAI,CAAC,iBAAiB,CACvD,yBAAyB,EACzB,uBAAuB,CAGxB,CAAC"}
|
|
@@ -33,6 +33,7 @@ const SimpleButtonDropdownBase = (props, ref) => {
|
|
|
33
33
|
allowWrap = false,
|
|
34
34
|
clickAwayRef,
|
|
35
35
|
elevation = 'modal',
|
|
36
|
+
staticLabels,
|
|
36
37
|
testId,
|
|
37
38
|
...buttonProps
|
|
38
39
|
} = props;
|
|
@@ -87,7 +88,8 @@ const SimpleButtonDropdownBase = (props, ref) => {
|
|
|
87
88
|
footer,
|
|
88
89
|
classNames: menuClassNames,
|
|
89
90
|
showLabelTooltip,
|
|
90
|
-
allowWrap
|
|
91
|
+
allowWrap,
|
|
92
|
+
staticLabels
|
|
91
93
|
},
|
|
92
94
|
children: optionsVariant === 'checkbox' ? btnText : children
|
|
93
95
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AASrD,eAAO,MAAM,SAAS;;;;;EAKpB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;EAIpB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAC9C,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAE9C,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,cAAc,CAuChE,CAAC"}
|
|
@@ -8,6 +8,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _typography = require("../../types/typography");
|
|
9
9
|
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
10
10
|
var _qa = require("../../utils/qa");
|
|
11
|
+
var _IconModule = _interopRequireDefault(require("./Icon.module.css"));
|
|
11
12
|
var _typographyModule = _interopRequireDefault(require("../../styles/typography.module.css"));
|
|
12
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -41,7 +42,7 @@ const Icon = exports.Icon = /*#__PURE__*/React.forwardRef((_ref, forwardRef) =>
|
|
|
41
42
|
base: testId,
|
|
42
43
|
slot: 'icon'
|
|
43
44
|
}),
|
|
44
|
-
className: (0, _classify.default)(_typographyModule.default.centerAlignFlex, _typographyModule.default[`${size}Icon`],
|
|
45
|
+
className: (0, _classify.default)(_typographyModule.default.centerAlignFlex, _typographyModule.default[`${size}Icon`], _IconModule.default[color], className),
|
|
45
46
|
onClick: onClick,
|
|
46
47
|
ref: forwardRef,
|
|
47
48
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@value (
|
|
2
|
+
colorInformation,
|
|
3
|
+
colorSuccess,
|
|
4
|
+
colorWarning,
|
|
5
|
+
colorDanger,
|
|
6
|
+
colorNeutral,
|
|
7
|
+
colorTextPrimary,
|
|
8
|
+
colorTextSecondary,
|
|
9
|
+
colorTextTertiary,
|
|
10
|
+
colorTextDisabled,
|
|
11
|
+
colorTextClickable,
|
|
12
|
+
colorTextInversePrimary,
|
|
13
|
+
colorTextInverseSecondary,
|
|
14
|
+
colorTextFavorite
|
|
15
|
+
) from '../../styles/variables/_color.css';
|
|
16
|
+
|
|
17
|
+
.primary {
|
|
18
|
+
color: colorTextPrimary;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.secondary {
|
|
22
|
+
color: colorTextSecondary;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.tertiary {
|
|
26
|
+
color: colorTextTertiary;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.disabled {
|
|
30
|
+
color: colorTextDisabled;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.clickable {
|
|
34
|
+
color: colorTextClickable;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.information {
|
|
38
|
+
color: colorInformation;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.success {
|
|
42
|
+
color: colorSuccess;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.warning {
|
|
46
|
+
color: colorWarning;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.danger {
|
|
50
|
+
color: colorDanger;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.neutral {
|
|
54
|
+
color: colorNeutral;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.inversePrimary {
|
|
58
|
+
color: colorTextInversePrimary;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.inverseSecondary {
|
|
62
|
+
color: colorTextInverseSecondary;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.favorite {
|
|
66
|
+
color: colorTextFavorite;
|
|
67
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAErD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAMrD,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Link.d.ts","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IACZ,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;;;;;;OAaG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,WAAW,GAAG,eAAe,CAAC;IACpE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC,iBAAiB,CACpC,aAAa,EACb,iBAAiB,GAAG,IAAI,GAAG,SAAS,CACrC,CAAC;CACH;AAED,eAAO,MAAM,IAAI,EAAE,IAAI,CAAC,iBAAiB,CACvC,SAAS,EACT,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAiHrC,CAAC"}
|
|
@@ -10,6 +10,7 @@ var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
|
10
10
|
var _qa = require("../../utils/qa");
|
|
11
11
|
var _ConditionalWrapper = require("../ConditionalWrapper");
|
|
12
12
|
var _Icon = require("../Icon");
|
|
13
|
+
var _IconModule = _interopRequireDefault(require("../Icon/Icon.module.css"));
|
|
13
14
|
var _typographyModule = _interopRequireDefault(require("../../styles/typography.module.css"));
|
|
14
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -117,7 +118,7 @@ const Link = exports.Link = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
117
118
|
name: iconLeftName,
|
|
118
119
|
size: iconLeftSize,
|
|
119
120
|
type: iconLeftType,
|
|
120
|
-
className: (0, _classify.default)(
|
|
121
|
+
className: (0, _classify.default)(_IconModule.default[color], {
|
|
121
122
|
[_typographyModule.default.disabled]: disabled
|
|
122
123
|
}),
|
|
123
124
|
testId: (0, _qa.generateTestId)({
|
|
@@ -141,7 +142,7 @@ const Link = exports.Link = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
141
142
|
name: iconRightName,
|
|
142
143
|
size: iconRightSize,
|
|
143
144
|
type: iconRightType,
|
|
144
|
-
className:
|
|
145
|
+
className: _IconModule.default[color],
|
|
145
146
|
testId: (0, _qa.generateTestId)({
|
|
146
147
|
base: testId,
|
|
147
148
|
slot: 'icon-right'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@value (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
colorInformation,
|
|
3
|
+
colorSuccess,
|
|
4
|
+
colorWarning,
|
|
5
|
+
colorDanger,
|
|
6
|
+
colorNeutral,
|
|
7
7
|
colorBackgroundTertiary,
|
|
8
8
|
colorFillPrimary,
|
|
9
9
|
colorTextPrimary,
|
|
@@ -26,23 +26,23 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.information {
|
|
29
|
-
background-color:
|
|
29
|
+
background-color: colorInformation;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.success {
|
|
33
|
-
background-color:
|
|
33
|
+
background-color: colorSuccess;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.warning {
|
|
37
|
-
background-color:
|
|
37
|
+
background-color: colorWarning;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.danger {
|
|
41
|
-
background-color:
|
|
41
|
+
background-color: colorDanger;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.neutral {
|
|
45
|
-
background-color:
|
|
45
|
+
background-color: colorNeutral;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.disabled {
|
|
@@ -26,7 +26,6 @@ export interface ToastProps {
|
|
|
26
26
|
export interface ToastTitleProps {
|
|
27
27
|
children?: React.ReactNode;
|
|
28
28
|
className?: string;
|
|
29
|
-
semantic?: ToastSemanticType;
|
|
30
29
|
testId?: string;
|
|
31
30
|
}
|
|
32
31
|
export declare const ToastTitle: Flow.AbstractComponent<ToastTitleProps, HTMLDivElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAWrD,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;EAMzB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAoGD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAC7C,eAAe,EACf,cAAc,CAYf,CAAC;AAIF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,cAAc,CAY1E,CAAC;AAIJ,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW;oCAAiC,gBAAgB;;CAoDxE,CAAC;AAIF,eAAO,MAAM,KAAK,GAAI,qGAUnB,UAAU,sBAuEZ,CAAC"}
|
|
@@ -11,7 +11,6 @@ var _qa = require("../../utils/qa");
|
|
|
11
11
|
var _Icon = require("../Icon");
|
|
12
12
|
var _Text = require("../Text");
|
|
13
13
|
var _ToastModule = _interopRequireDefault(require("./Toast.module.css"));
|
|
14
|
-
var _typographyModule = _interopRequireDefault(require("../../styles/typography.module.css"));
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -97,13 +96,12 @@ const ToastIcon = _ref => {
|
|
|
97
96
|
const ToastTitle = exports.ToastTitle = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
98
97
|
let {
|
|
99
98
|
children,
|
|
100
|
-
semantic = TOAST_SEMANTIC.information,
|
|
101
99
|
className,
|
|
102
100
|
testId,
|
|
103
101
|
...props
|
|
104
102
|
} = _ref2;
|
|
105
103
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
106
|
-
className: (0, _classify.default)(_ToastModule.default.toastTitle,
|
|
104
|
+
className: (0, _classify.default)(_ToastModule.default.toastTitle, className),
|
|
107
105
|
...props,
|
|
108
106
|
ref: ref,
|
|
109
107
|
"data-testid": (0, _qa.generateTestId)({
|
|
@@ -261,7 +259,7 @@ const Toast = _ref5 => {
|
|
|
261
259
|
className: _ToastModule.default.titleBodyWrap,
|
|
262
260
|
children: [getComp('ToastTitle'), getComp('ToastBody')]
|
|
263
261
|
}), time && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Text.SubTitleExtraSmall, {
|
|
264
|
-
className: classNames?.time,
|
|
262
|
+
className: (0, _classify.default)(_ToastModule.default.toastTime, classNames?.time),
|
|
265
263
|
testId: (0, _qa.generateTestId)({
|
|
266
264
|
base: testId,
|
|
267
265
|
slot: 'time'
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
@value (size24, size400) from '../../styles/variables/_size.css';
|
|
4
4
|
|
|
5
|
-
@value (
|
|
5
|
+
@value (
|
|
6
|
+
colorBorderPrimary,
|
|
7
|
+
colorBackgroundTertiary,
|
|
8
|
+
colorTextPrimary,
|
|
9
|
+
colorTextSecondary
|
|
10
|
+
) from '../../styles/variables/_color.css';
|
|
6
11
|
|
|
7
12
|
@value (borderWidthPrimary, borderRadiusMedium) from '../../styles/variables/_border.css';
|
|
8
13
|
|
|
@@ -46,6 +51,7 @@
|
|
|
46
51
|
|
|
47
52
|
.toastBody {
|
|
48
53
|
composes: bodyMedium from '../../styles/typography.module.css';
|
|
54
|
+
color: colorTextSecondary;
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
.toastFooterActions {
|
|
@@ -61,4 +67,9 @@
|
|
|
61
67
|
|
|
62
68
|
.toastTitle {
|
|
63
69
|
composes: subTitleSmall from '../../styles/typography.module.css';
|
|
70
|
+
color: colorTextPrimary;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.toastTime {
|
|
74
|
+
color: colorTextSecondary;
|
|
64
75
|
}
|