@decisiv/ui-components 2.0.1-alpha.154 → 2.0.1-alpha.156
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/lib/components/Select/index.d.ts.map +1 -1
- package/lib/components/Select/index.js +3 -1
- package/lib/components/Select/index.test.js +43 -19
- package/lib/components/Select/schema.d.ts.map +1 -1
- package/lib/components/Select/schema.js +1 -0
- package/lib/components/Select/types.d.ts +1 -0
- package/lib/components/Select/types.d.ts.map +1 -1
- package/lib/components/Tag/Action.d.ts +4 -0
- package/lib/components/Tag/Action.d.ts.map +1 -0
- package/lib/components/Tag/Action.js +39 -0
- package/lib/components/Tag/constants.d.ts +1 -1
- package/lib/components/Tag/constants.d.ts.map +1 -1
- package/lib/components/Tag/constants.js +3 -3
- package/lib/components/Tag/index.d.ts +1 -1
- package/lib/components/Tag/index.d.ts.map +1 -1
- package/lib/components/Tag/index.js +114 -37
- package/lib/components/Tag/index.test.js +183 -2
- package/lib/components/Tag/propTypes.d.ts +2 -0
- package/lib/components/Tag/propTypes.d.ts.map +1 -1
- package/lib/components/Tag/propTypes.js +4 -2
- package/lib/components/Tag/schema.d.ts.map +1 -1
- package/lib/components/Tag/schema.js +1 -0
- package/lib/components/Tag/types.d.ts +8 -10
- package/lib/components/Tag/types.d.ts.map +1 -1
- package/lib/utils/commonUIColors.d.ts +349 -1
- package/lib/utils/commonUIColors.d.ts.map +1 -1
- package/lib/utils/commonUIColors.js +6 -2
- package/package.json +2 -2
- package/lib/components/Tag/ActionButton.d.ts +0 -5
- package/lib/components/Tag/ActionButton.d.ts.map +0 -1
- package/lib/components/Tag/ActionButton.js +0 -56
|
@@ -83,12 +83,193 @@ describe('Tag', function () {
|
|
|
83
83
|
describe('Outline variant', function () {
|
|
84
84
|
TestVariant('outline');
|
|
85
85
|
});
|
|
86
|
+
describe('Palette variants', function () {
|
|
87
|
+
describe('bright', function () {
|
|
88
|
+
it('renders correctly', function () {
|
|
89
|
+
var _render = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
90
|
+
text: "text",
|
|
91
|
+
palette: "bright"
|
|
92
|
+
})),
|
|
93
|
+
container = _render.container;
|
|
94
|
+
|
|
95
|
+
expect(container).toMatchSnapshot();
|
|
96
|
+
});
|
|
97
|
+
it('renders correctly with an Icon', function () {
|
|
98
|
+
var _render2 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
99
|
+
text: "text",
|
|
100
|
+
palette: "bright",
|
|
101
|
+
icon: _Home.default
|
|
102
|
+
})),
|
|
103
|
+
container = _render2.container;
|
|
104
|
+
|
|
105
|
+
expect(container).toMatchSnapshot();
|
|
106
|
+
});
|
|
107
|
+
it('renders correctly with different colors', function () {
|
|
108
|
+
var _render3 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
109
|
+
text: "text",
|
|
110
|
+
palette: "bright",
|
|
111
|
+
color: "information"
|
|
112
|
+
})),
|
|
113
|
+
container = _render3.container;
|
|
114
|
+
|
|
115
|
+
expect(container).toMatchSnapshot();
|
|
116
|
+
});
|
|
117
|
+
it('renders correctly with an action', function () {
|
|
118
|
+
var _render4 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
119
|
+
text: "text",
|
|
120
|
+
palette: "bright",
|
|
121
|
+
action: jest.fn(),
|
|
122
|
+
actionAttributes: {
|
|
123
|
+
'aria-label': 'test'
|
|
124
|
+
},
|
|
125
|
+
actionIcon: _Home.default
|
|
126
|
+
})),
|
|
127
|
+
container = _render4.container;
|
|
128
|
+
|
|
129
|
+
expect(container).toMatchSnapshot();
|
|
130
|
+
});
|
|
131
|
+
it('renders the action correctly with the danger intent', function () {
|
|
132
|
+
var _render5 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
133
|
+
text: "text",
|
|
134
|
+
palette: "bright",
|
|
135
|
+
action: jest.fn(),
|
|
136
|
+
actionAttributes: {
|
|
137
|
+
'aria-label': 'test'
|
|
138
|
+
},
|
|
139
|
+
actionIcon: _Home.default,
|
|
140
|
+
actionIntent: "danger"
|
|
141
|
+
})),
|
|
142
|
+
container = _render5.container;
|
|
143
|
+
|
|
144
|
+
expect(container).toMatchSnapshot();
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
describe('pastel', function () {
|
|
148
|
+
it('renders correctly', function () {
|
|
149
|
+
var _render6 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
150
|
+
text: "text",
|
|
151
|
+
palette: "pastel"
|
|
152
|
+
})),
|
|
153
|
+
container = _render6.container;
|
|
154
|
+
|
|
155
|
+
expect(container).toMatchSnapshot();
|
|
156
|
+
});
|
|
157
|
+
it('renders correctly with an Icon', function () {
|
|
158
|
+
var _render7 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
159
|
+
text: "text",
|
|
160
|
+
palette: "pastel",
|
|
161
|
+
icon: _Home.default
|
|
162
|
+
})),
|
|
163
|
+
container = _render7.container;
|
|
164
|
+
|
|
165
|
+
expect(container).toMatchSnapshot();
|
|
166
|
+
});
|
|
167
|
+
it('renders correctly with different colors', function () {
|
|
168
|
+
var _render8 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
169
|
+
text: "text",
|
|
170
|
+
palette: "pastel",
|
|
171
|
+
color: "information"
|
|
172
|
+
})),
|
|
173
|
+
container = _render8.container;
|
|
174
|
+
|
|
175
|
+
expect(container).toMatchSnapshot();
|
|
176
|
+
});
|
|
177
|
+
it('renders correctly with an action', function () {
|
|
178
|
+
var _render9 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
179
|
+
text: "text",
|
|
180
|
+
palette: "pastel",
|
|
181
|
+
action: jest.fn(),
|
|
182
|
+
actionAttributes: {
|
|
183
|
+
'aria-label': 'test'
|
|
184
|
+
},
|
|
185
|
+
actionIcon: _Home.default
|
|
186
|
+
})),
|
|
187
|
+
container = _render9.container;
|
|
188
|
+
|
|
189
|
+
expect(container).toMatchSnapshot();
|
|
190
|
+
});
|
|
191
|
+
it('renders the action correctly with the danger intent', function () {
|
|
192
|
+
var _render10 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
193
|
+
text: "text",
|
|
194
|
+
palette: "pastel",
|
|
195
|
+
action: jest.fn(),
|
|
196
|
+
actionAttributes: {
|
|
197
|
+
'aria-label': 'test'
|
|
198
|
+
},
|
|
199
|
+
actionIcon: _Home.default,
|
|
200
|
+
actionIntent: "danger"
|
|
201
|
+
})),
|
|
202
|
+
container = _render10.container;
|
|
203
|
+
|
|
204
|
+
expect(container).toMatchSnapshot();
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
describe('dark', function () {
|
|
208
|
+
it('renders correctly', function () {
|
|
209
|
+
var _render11 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
210
|
+
text: "text",
|
|
211
|
+
palette: "dark"
|
|
212
|
+
})),
|
|
213
|
+
container = _render11.container;
|
|
214
|
+
|
|
215
|
+
expect(container).toMatchSnapshot();
|
|
216
|
+
});
|
|
217
|
+
it('renders correctly with an Icon', function () {
|
|
218
|
+
var _render12 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
219
|
+
text: "text",
|
|
220
|
+
palette: "dark",
|
|
221
|
+
icon: _Home.default
|
|
222
|
+
})),
|
|
223
|
+
container = _render12.container;
|
|
224
|
+
|
|
225
|
+
expect(container).toMatchSnapshot();
|
|
226
|
+
});
|
|
227
|
+
it('renders correctly with different colors', function () {
|
|
228
|
+
var _render13 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
229
|
+
text: "text",
|
|
230
|
+
palette: "dark",
|
|
231
|
+
color: "information"
|
|
232
|
+
})),
|
|
233
|
+
container = _render13.container;
|
|
234
|
+
|
|
235
|
+
expect(container).toMatchSnapshot();
|
|
236
|
+
});
|
|
237
|
+
it('renders correctly with an action', function () {
|
|
238
|
+
var _render14 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
239
|
+
text: "text",
|
|
240
|
+
palette: "dark",
|
|
241
|
+
action: jest.fn(),
|
|
242
|
+
actionAttributes: {
|
|
243
|
+
'aria-label': 'test'
|
|
244
|
+
},
|
|
245
|
+
actionIcon: _Home.default
|
|
246
|
+
})),
|
|
247
|
+
container = _render14.container;
|
|
248
|
+
|
|
249
|
+
expect(container).toMatchSnapshot();
|
|
250
|
+
});
|
|
251
|
+
it('renders the action correctly with the danger intent', function () {
|
|
252
|
+
var _render15 = (0, _react2.render)(_react.default.createElement(_.default, {
|
|
253
|
+
text: "text",
|
|
254
|
+
palette: "dark",
|
|
255
|
+
action: jest.fn(),
|
|
256
|
+
actionAttributes: {
|
|
257
|
+
'aria-label': 'test'
|
|
258
|
+
},
|
|
259
|
+
actionIcon: _Home.default,
|
|
260
|
+
actionIntent: "danger"
|
|
261
|
+
})),
|
|
262
|
+
container = _render15.container;
|
|
263
|
+
|
|
264
|
+
expect(container).toMatchSnapshot();
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
});
|
|
86
268
|
describe('Common', function () {
|
|
87
269
|
it('does not render a provided action if there is not text', function () {
|
|
88
270
|
jest.spyOn(console, 'error').mockImplementation(function () {});
|
|
89
271
|
|
|
90
272
|
var _renderTag6 = renderTag({
|
|
91
|
-
icon: _Home.default,
|
|
92
273
|
text: undefined,
|
|
93
274
|
action: function action() {
|
|
94
275
|
return null;
|
|
@@ -100,7 +281,7 @@ describe('Tag', function () {
|
|
|
100
281
|
}, 'normal'),
|
|
101
282
|
container = _renderTag6.container;
|
|
102
283
|
|
|
103
|
-
expect(container.querySelectorAll('
|
|
284
|
+
expect(container.querySelectorAll('svg').length).toBe(0);
|
|
104
285
|
expect(console.error).toHaveBeenCalled(); // @ts-ignore
|
|
105
286
|
|
|
106
287
|
console.error.mockRestore();
|
|
@@ -9,6 +9,7 @@ export declare const propTypes: {
|
|
|
9
9
|
actionRef: PropTypes.Requireable<any>;
|
|
10
10
|
color: PropTypes.Requireable<import("../../utils/commonUIColors").CommonUIColorKeys>;
|
|
11
11
|
variant: PropTypes.Requireable<string>;
|
|
12
|
+
palette: PropTypes.Requireable<string>;
|
|
12
13
|
};
|
|
13
14
|
export declare const defaultProps: {
|
|
14
15
|
action: undefined;
|
|
@@ -20,5 +21,6 @@ export declare const defaultProps: {
|
|
|
20
21
|
icon: undefined;
|
|
21
22
|
text: undefined;
|
|
22
23
|
variant: string;
|
|
24
|
+
palette: string;
|
|
23
25
|
};
|
|
24
26
|
//# sourceMappingURL=propTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propTypes.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/propTypes.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAYnC,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"propTypes.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/propTypes.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAYnC,eAAO,MAAM,SAAS;;;;;;;;;;;CA2BrB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;CAWxB,CAAC"}
|
|
@@ -40,7 +40,8 @@ var propTypes = {
|
|
|
40
40
|
actionIntent: _propTypes.default.oneOf(['normal', 'danger']),
|
|
41
41
|
actionRef: _propTypes.default.any,
|
|
42
42
|
color: _propTypes.default.oneOf(_commonUIColors.commonUIColorKeys),
|
|
43
|
-
variant: _propTypes.default.oneOf(['normal', 'outline'])
|
|
43
|
+
variant: _propTypes.default.oneOf(['normal', 'outline']),
|
|
44
|
+
palette: _propTypes.default.oneOf(['pastel', 'bright', 'dark'])
|
|
44
45
|
};
|
|
45
46
|
exports.propTypes = propTypes;
|
|
46
47
|
var defaultProps = {
|
|
@@ -52,6 +53,7 @@ var defaultProps = {
|
|
|
52
53
|
color: undefined,
|
|
53
54
|
icon: undefined,
|
|
54
55
|
text: undefined,
|
|
55
|
-
variant: 'normal'
|
|
56
|
+
variant: 'normal',
|
|
57
|
+
palette: 'bright'
|
|
56
58
|
};
|
|
57
59
|
exports.defaultProps = defaultProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/schema.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM,KAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/schema.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM,KAAmC,CAAC;AA8ChD,eAAe,MAAM,CAAC"}
|
|
@@ -17,6 +17,7 @@ schema.propTypes = {
|
|
|
17
17
|
text: _reactDesc.PropTypes.string.description("The tag's text"),
|
|
18
18
|
icon: _reactDesc.PropTypes.element.description('Which `iconix` icon to render as the main icon'),
|
|
19
19
|
color: _reactDesc.PropTypes.oneOf(_commonUIColors.commonUIColorKeys).description('The color to use as the tag background or SVG color when outlined').format('string (see notes below)').defaultValue('licoriceMousse'),
|
|
20
|
+
palette: _reactDesc.PropTypes.oneOf(['bright', 'pastel', 'dark']).description('What color variant to render').defaultValue('bright'),
|
|
20
21
|
variant: _reactDesc.PropTypes.oneOf(['normal', 'outline']).description('What tag variant to render').defaultValue('normal'),
|
|
21
22
|
action: _reactDesc.PropTypes.func.description('A function to callback when the action button is clicked'),
|
|
22
23
|
actionRef: _reactDesc.PropTypes.any.description('Provide a "React Ref" to get a reference to the action\'s DOM node'),
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import React, { Ref, RefAttributes,
|
|
1
|
+
import React, { Ref, RefAttributes, AriaAttributes, DOMAttributes } from 'react';
|
|
2
2
|
import { CSSObject } from 'styled-components';
|
|
3
3
|
import { IconProps } from '@decisiv/iconix';
|
|
4
4
|
import { CommonUIColorKeys } from '../../utils/commonUIColors';
|
|
5
|
-
export declare type TagRef =
|
|
6
|
-
export declare type
|
|
5
|
+
export declare type TagRef = HTMLButtonElement;
|
|
6
|
+
export declare type TagActionRef = HTMLDivElement;
|
|
7
7
|
export declare type IconComponent = (props: IconProps) => JSX.Element;
|
|
8
8
|
export declare type ActionHandler = (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => unknown;
|
|
9
9
|
export declare type BaseProps = {
|
|
10
10
|
color?: CommonUIColorKeys;
|
|
11
|
+
palette?: 'pastel' | 'bright' | 'dark';
|
|
11
12
|
variant?: 'normal' | 'outline';
|
|
12
13
|
style?: CSSObject;
|
|
13
14
|
};
|
|
@@ -34,14 +35,11 @@ declare type ConditionalProps = Text & {
|
|
|
34
35
|
} | Icon & {
|
|
35
36
|
action?: never;
|
|
36
37
|
} | Text & Icon | Text & Action & ActionIcon | Text & Icon & Action & ActionIcon;
|
|
37
|
-
export declare type
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
export declare type ActionButtonExtraProps = {
|
|
41
|
-
actionRef?: Ref<TagActionButtonRef>;
|
|
38
|
+
export declare type ActionExtraProps = {
|
|
39
|
+
actionRef?: Ref<TagActionRef>;
|
|
42
40
|
actionIntent?: 'normal' | 'danger';
|
|
43
|
-
actionAttributes?:
|
|
41
|
+
actionAttributes?: AriaAttributes & DOMAttributes<HTMLButtonElement>;
|
|
44
42
|
};
|
|
45
|
-
export declare type TagProps = RefAttributes<TagRef> & BaseProps & ContentProps & ConditionalProps &
|
|
43
|
+
export declare type TagProps = RefAttributes<TagRef> & BaseProps & ContentProps & ConditionalProps & ActionExtraProps;
|
|
46
44
|
export {};
|
|
47
45
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EACZ,GAAG,EACH,aAAa,EACb,cAAc,EACd,aAAa,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,iBA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AAI,GAAG,MAAM,GAAG,UAAU,CAAC;AAEtC,oBAAY,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC;IAC9B,YAAY,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACnC,gBAAgB,CAAC,EAAE,cAAc,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAAC;CACtE,CAAC;AAEF,oBAAY,QAAQ,GAAG,aAAa,CAAC,MAAM,CAAC,GAC1C,SAAS,GACT,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,CAAC"}
|
|
@@ -11,11 +11,359 @@ export declare type CommonUIColorKeys = StatusColorsKeys | VIColorsKeys;
|
|
|
11
11
|
export declare type CommonUIColors = {
|
|
12
12
|
[K in CommonUIColorKeys]: Color;
|
|
13
13
|
};
|
|
14
|
-
export declare const viColorKeys:
|
|
14
|
+
export declare const viColorKeys: ("berryCrisp" | "koolaidCake" | "cookieMonster" | "cottonCandy" | "fizzyLime" | "mamboMango" | "carrotCake" | "roseGummy" | "licoriceMousse")[];
|
|
15
15
|
export declare const statusColorKeys: ("information" | "success" | "warning" | "danger")[];
|
|
16
16
|
export declare const viColors: VIColors;
|
|
17
17
|
export declare const statusColors: StatusColors;
|
|
18
18
|
export declare const commonUIColorKeys: CommonUIColorKeys[];
|
|
19
19
|
export declare const commonUIColors: CommonUIColors;
|
|
20
|
+
export declare const commonUIThreeShadeColors: {
|
|
21
|
+
readonly berryCrisp: {
|
|
22
|
+
light: {
|
|
23
|
+
readonly fg: Color;
|
|
24
|
+
readonly red: number;
|
|
25
|
+
readonly green: number;
|
|
26
|
+
readonly blue: number;
|
|
27
|
+
readonly alpha: number;
|
|
28
|
+
} | {
|
|
29
|
+
readonly fg: Color;
|
|
30
|
+
readonly red: number;
|
|
31
|
+
readonly green: number;
|
|
32
|
+
readonly blue: number;
|
|
33
|
+
};
|
|
34
|
+
medium: {
|
|
35
|
+
readonly fg: Color;
|
|
36
|
+
readonly red: number;
|
|
37
|
+
readonly green: number;
|
|
38
|
+
readonly blue: number;
|
|
39
|
+
readonly alpha: number;
|
|
40
|
+
} | {
|
|
41
|
+
readonly fg: Color;
|
|
42
|
+
readonly red: number;
|
|
43
|
+
readonly green: number;
|
|
44
|
+
readonly blue: number;
|
|
45
|
+
};
|
|
46
|
+
dark: {
|
|
47
|
+
readonly fg: Color;
|
|
48
|
+
readonly red: number;
|
|
49
|
+
readonly green: number;
|
|
50
|
+
readonly blue: number;
|
|
51
|
+
readonly alpha: number;
|
|
52
|
+
} | {
|
|
53
|
+
readonly fg: Color;
|
|
54
|
+
readonly red: number;
|
|
55
|
+
readonly green: number;
|
|
56
|
+
readonly blue: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly koolaidCake: {
|
|
60
|
+
light: {
|
|
61
|
+
readonly fg: Color;
|
|
62
|
+
readonly red: number;
|
|
63
|
+
readonly green: number;
|
|
64
|
+
readonly blue: number;
|
|
65
|
+
readonly alpha: number;
|
|
66
|
+
} | {
|
|
67
|
+
readonly fg: Color;
|
|
68
|
+
readonly red: number;
|
|
69
|
+
readonly green: number;
|
|
70
|
+
readonly blue: number;
|
|
71
|
+
};
|
|
72
|
+
medium: {
|
|
73
|
+
readonly fg: Color;
|
|
74
|
+
readonly red: number;
|
|
75
|
+
readonly green: number;
|
|
76
|
+
readonly blue: number;
|
|
77
|
+
readonly alpha: number;
|
|
78
|
+
} | {
|
|
79
|
+
readonly fg: Color;
|
|
80
|
+
readonly red: number;
|
|
81
|
+
readonly green: number;
|
|
82
|
+
readonly blue: number;
|
|
83
|
+
};
|
|
84
|
+
dark: {
|
|
85
|
+
readonly fg: Color;
|
|
86
|
+
readonly red: number;
|
|
87
|
+
readonly green: number;
|
|
88
|
+
readonly blue: number;
|
|
89
|
+
readonly alpha: number;
|
|
90
|
+
} | {
|
|
91
|
+
readonly fg: Color;
|
|
92
|
+
readonly red: number;
|
|
93
|
+
readonly green: number;
|
|
94
|
+
readonly blue: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
readonly cookieMonster: {
|
|
98
|
+
light: {
|
|
99
|
+
readonly fg: Color;
|
|
100
|
+
readonly red: number;
|
|
101
|
+
readonly green: number;
|
|
102
|
+
readonly blue: number;
|
|
103
|
+
readonly alpha: number;
|
|
104
|
+
} | {
|
|
105
|
+
readonly fg: Color;
|
|
106
|
+
readonly red: number;
|
|
107
|
+
readonly green: number;
|
|
108
|
+
readonly blue: number;
|
|
109
|
+
};
|
|
110
|
+
medium: {
|
|
111
|
+
readonly fg: Color;
|
|
112
|
+
readonly red: number;
|
|
113
|
+
readonly green: number;
|
|
114
|
+
readonly blue: number;
|
|
115
|
+
readonly alpha: number;
|
|
116
|
+
} | {
|
|
117
|
+
readonly fg: Color;
|
|
118
|
+
readonly red: number;
|
|
119
|
+
readonly green: number;
|
|
120
|
+
readonly blue: number;
|
|
121
|
+
};
|
|
122
|
+
dark: {
|
|
123
|
+
readonly fg: Color;
|
|
124
|
+
readonly red: number;
|
|
125
|
+
readonly green: number;
|
|
126
|
+
readonly blue: number;
|
|
127
|
+
readonly alpha: number;
|
|
128
|
+
} | {
|
|
129
|
+
readonly fg: Color;
|
|
130
|
+
readonly red: number;
|
|
131
|
+
readonly green: number;
|
|
132
|
+
readonly blue: number;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly cottonCandy: {
|
|
136
|
+
light: {
|
|
137
|
+
readonly fg: Color;
|
|
138
|
+
readonly red: number;
|
|
139
|
+
readonly green: number;
|
|
140
|
+
readonly blue: number;
|
|
141
|
+
readonly alpha: number;
|
|
142
|
+
} | {
|
|
143
|
+
readonly fg: Color;
|
|
144
|
+
readonly red: number;
|
|
145
|
+
readonly green: number;
|
|
146
|
+
readonly blue: number;
|
|
147
|
+
};
|
|
148
|
+
medium: {
|
|
149
|
+
readonly fg: Color;
|
|
150
|
+
readonly red: number;
|
|
151
|
+
readonly green: number;
|
|
152
|
+
readonly blue: number;
|
|
153
|
+
readonly alpha: number;
|
|
154
|
+
} | {
|
|
155
|
+
readonly fg: Color;
|
|
156
|
+
readonly red: number;
|
|
157
|
+
readonly green: number;
|
|
158
|
+
readonly blue: number;
|
|
159
|
+
};
|
|
160
|
+
dark: {
|
|
161
|
+
readonly fg: Color;
|
|
162
|
+
readonly red: number;
|
|
163
|
+
readonly green: number;
|
|
164
|
+
readonly blue: number;
|
|
165
|
+
readonly alpha: number;
|
|
166
|
+
} | {
|
|
167
|
+
readonly fg: Color;
|
|
168
|
+
readonly red: number;
|
|
169
|
+
readonly green: number;
|
|
170
|
+
readonly blue: number;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
readonly fizzyLime: {
|
|
174
|
+
light: {
|
|
175
|
+
readonly fg: Color;
|
|
176
|
+
readonly red: number;
|
|
177
|
+
readonly green: number;
|
|
178
|
+
readonly blue: number;
|
|
179
|
+
readonly alpha: number;
|
|
180
|
+
} | {
|
|
181
|
+
readonly fg: Color;
|
|
182
|
+
readonly red: number;
|
|
183
|
+
readonly green: number;
|
|
184
|
+
readonly blue: number;
|
|
185
|
+
};
|
|
186
|
+
medium: {
|
|
187
|
+
readonly fg: Color;
|
|
188
|
+
readonly red: number;
|
|
189
|
+
readonly green: number;
|
|
190
|
+
readonly blue: number;
|
|
191
|
+
readonly alpha: number;
|
|
192
|
+
} | {
|
|
193
|
+
readonly fg: Color;
|
|
194
|
+
readonly red: number;
|
|
195
|
+
readonly green: number;
|
|
196
|
+
readonly blue: number;
|
|
197
|
+
};
|
|
198
|
+
dark: {
|
|
199
|
+
readonly fg: Color;
|
|
200
|
+
readonly red: number;
|
|
201
|
+
readonly green: number;
|
|
202
|
+
readonly blue: number;
|
|
203
|
+
readonly alpha: number;
|
|
204
|
+
} | {
|
|
205
|
+
readonly fg: Color;
|
|
206
|
+
readonly red: number;
|
|
207
|
+
readonly green: number;
|
|
208
|
+
readonly blue: number;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly mamboMango: {
|
|
212
|
+
light: {
|
|
213
|
+
readonly fg: Color;
|
|
214
|
+
readonly red: number;
|
|
215
|
+
readonly green: number;
|
|
216
|
+
readonly blue: number;
|
|
217
|
+
readonly alpha: number;
|
|
218
|
+
} | {
|
|
219
|
+
readonly fg: Color;
|
|
220
|
+
readonly red: number;
|
|
221
|
+
readonly green: number;
|
|
222
|
+
readonly blue: number;
|
|
223
|
+
};
|
|
224
|
+
medium: {
|
|
225
|
+
readonly fg: Color;
|
|
226
|
+
readonly red: number;
|
|
227
|
+
readonly green: number;
|
|
228
|
+
readonly blue: number;
|
|
229
|
+
readonly alpha: number;
|
|
230
|
+
} | {
|
|
231
|
+
readonly fg: Color;
|
|
232
|
+
readonly red: number;
|
|
233
|
+
readonly green: number;
|
|
234
|
+
readonly blue: number;
|
|
235
|
+
};
|
|
236
|
+
dark: {
|
|
237
|
+
readonly fg: Color;
|
|
238
|
+
readonly red: number;
|
|
239
|
+
readonly green: number;
|
|
240
|
+
readonly blue: number;
|
|
241
|
+
readonly alpha: number;
|
|
242
|
+
} | {
|
|
243
|
+
readonly fg: Color;
|
|
244
|
+
readonly red: number;
|
|
245
|
+
readonly green: number;
|
|
246
|
+
readonly blue: number;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
readonly carrotCake: {
|
|
250
|
+
light: {
|
|
251
|
+
readonly fg: Color;
|
|
252
|
+
readonly red: number;
|
|
253
|
+
readonly green: number;
|
|
254
|
+
readonly blue: number;
|
|
255
|
+
readonly alpha: number;
|
|
256
|
+
} | {
|
|
257
|
+
readonly fg: Color;
|
|
258
|
+
readonly red: number;
|
|
259
|
+
readonly green: number;
|
|
260
|
+
readonly blue: number;
|
|
261
|
+
};
|
|
262
|
+
medium: {
|
|
263
|
+
readonly fg: Color;
|
|
264
|
+
readonly red: number;
|
|
265
|
+
readonly green: number;
|
|
266
|
+
readonly blue: number;
|
|
267
|
+
readonly alpha: number;
|
|
268
|
+
} | {
|
|
269
|
+
readonly fg: Color;
|
|
270
|
+
readonly red: number;
|
|
271
|
+
readonly green: number;
|
|
272
|
+
readonly blue: number;
|
|
273
|
+
};
|
|
274
|
+
dark: {
|
|
275
|
+
readonly fg: Color;
|
|
276
|
+
readonly red: number;
|
|
277
|
+
readonly green: number;
|
|
278
|
+
readonly blue: number;
|
|
279
|
+
readonly alpha: number;
|
|
280
|
+
} | {
|
|
281
|
+
readonly fg: Color;
|
|
282
|
+
readonly red: number;
|
|
283
|
+
readonly green: number;
|
|
284
|
+
readonly blue: number;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
readonly roseGummy: {
|
|
288
|
+
light: {
|
|
289
|
+
readonly fg: Color;
|
|
290
|
+
readonly red: number;
|
|
291
|
+
readonly green: number;
|
|
292
|
+
readonly blue: number;
|
|
293
|
+
readonly alpha: number;
|
|
294
|
+
} | {
|
|
295
|
+
readonly fg: Color;
|
|
296
|
+
readonly red: number;
|
|
297
|
+
readonly green: number;
|
|
298
|
+
readonly blue: number;
|
|
299
|
+
};
|
|
300
|
+
medium: {
|
|
301
|
+
readonly fg: Color;
|
|
302
|
+
readonly red: number;
|
|
303
|
+
readonly green: number;
|
|
304
|
+
readonly blue: number;
|
|
305
|
+
readonly alpha: number;
|
|
306
|
+
} | {
|
|
307
|
+
readonly fg: Color;
|
|
308
|
+
readonly red: number;
|
|
309
|
+
readonly green: number;
|
|
310
|
+
readonly blue: number;
|
|
311
|
+
};
|
|
312
|
+
dark: {
|
|
313
|
+
readonly fg: Color;
|
|
314
|
+
readonly red: number;
|
|
315
|
+
readonly green: number;
|
|
316
|
+
readonly blue: number;
|
|
317
|
+
readonly alpha: number;
|
|
318
|
+
} | {
|
|
319
|
+
readonly fg: Color;
|
|
320
|
+
readonly red: number;
|
|
321
|
+
readonly green: number;
|
|
322
|
+
readonly blue: number;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
readonly licoriceMousse: {
|
|
326
|
+
dark: {
|
|
327
|
+
readonly fg: Color;
|
|
328
|
+
readonly red: number;
|
|
329
|
+
readonly green: number;
|
|
330
|
+
readonly blue: number;
|
|
331
|
+
readonly alpha: number;
|
|
332
|
+
} | {
|
|
333
|
+
readonly fg: Color;
|
|
334
|
+
readonly red: number;
|
|
335
|
+
readonly green: number;
|
|
336
|
+
readonly blue: number;
|
|
337
|
+
};
|
|
338
|
+
medium: {
|
|
339
|
+
readonly fg: Color;
|
|
340
|
+
readonly red: number;
|
|
341
|
+
readonly green: number;
|
|
342
|
+
readonly blue: number;
|
|
343
|
+
readonly alpha: number;
|
|
344
|
+
} | {
|
|
345
|
+
readonly fg: Color;
|
|
346
|
+
readonly red: number;
|
|
347
|
+
readonly green: number;
|
|
348
|
+
readonly blue: number;
|
|
349
|
+
};
|
|
350
|
+
light: {
|
|
351
|
+
readonly fg: Color;
|
|
352
|
+
readonly red: number;
|
|
353
|
+
readonly green: number;
|
|
354
|
+
readonly blue: number;
|
|
355
|
+
readonly alpha: number;
|
|
356
|
+
} | {
|
|
357
|
+
readonly fg: Color;
|
|
358
|
+
readonly red: number;
|
|
359
|
+
readonly green: number;
|
|
360
|
+
readonly blue: number;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
readonly information: import("@decisiv/design-tokens/lib/color").ThreeShadeColor;
|
|
364
|
+
readonly success: import("@decisiv/design-tokens/lib/color").ThreeShadeColor;
|
|
365
|
+
readonly warning: import("@decisiv/design-tokens/lib/color").ThreeShadeColor;
|
|
366
|
+
readonly danger: import("@decisiv/design-tokens/lib/color").ThreeShadeColor;
|
|
367
|
+
};
|
|
20
368
|
export {};
|
|
21
369
|
//# sourceMappingURL=commonUIColors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonUIColors.d.ts","sourceRoot":"","sources":["../../src/utils/commonUIColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAIhE,oBAAY,YAAY,GAAG,MAAM,OAAO,KAAK,CAAC,cAAc,CA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