@decisiv/ui-components 2.0.1-alpha.209 → 2.0.1-alpha.210
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/atoms/OptionsList/Option/styles.d.ts +1 -1
- package/lib/components/Badge/types.d.ts +1 -1
- package/lib/components/Link/DisabledLink.d.ts +1 -1
- package/lib/components/Link/styles.d.ts +3 -3
- package/lib/components/List/BaseCell/index.d.ts +6 -0
- package/lib/components/List/BaseCell/index.d.ts.map +1 -0
- package/lib/components/List/BaseCell/index.js +17 -0
- package/lib/components/List/BaseCell/index.test.js +33 -0
- package/lib/components/List/BaseCell/styles.d.ts +198 -0
- package/lib/components/List/BaseCell/styles.d.ts.map +1 -0
- package/lib/components/List/BaseCell/styles.js +26 -0
- package/lib/components/List/ContentContainer/index.d.ts +19 -0
- package/lib/components/List/ContentContainer/index.d.ts.map +1 -0
- package/lib/components/List/ContentContainer/index.js +78 -0
- package/lib/components/List/ContentContainer/index.test.js +102 -0
- package/lib/components/List/DefaultCell/index.d.ts +7 -0
- package/lib/components/List/DefaultCell/index.d.ts.map +1 -0
- package/lib/components/List/DefaultCell/index.js +26 -0
- package/lib/components/List/LabelContainer/index.d.ts +9 -0
- package/lib/components/List/LabelContainer/index.d.ts.map +1 -0
- package/lib/components/List/LabelContainer/index.js +38 -0
- package/lib/components/List/LabelContainer/index.test.js +105 -0
- package/lib/components/List/LabelContainer/styles.d.ts +4 -0
- package/lib/components/List/LabelContainer/styles.d.ts.map +1 -0
- package/lib/components/List/LabelContainer/styles.js +28 -0
- package/lib/components/List/ListItem/index.d.ts +8 -0
- package/lib/components/List/ListItem/index.d.ts.map +1 -0
- package/lib/components/List/ListItem/index.js +41 -0
- package/lib/components/List/ListItem/index.test.js +76 -0
- package/lib/components/List/ListItem/schema.d.ts +4 -0
- package/lib/components/List/ListItem/schema.d.ts.map +1 -0
- package/lib/components/List/ListItem/schema.js +30 -0
- package/lib/components/List/ListItem/styles.d.ts +2 -0
- package/lib/components/List/ListItem/styles.d.ts.map +1 -0
- package/lib/components/List/ListItem/styles.js +23 -0
- package/lib/components/List/constants.d.ts +14 -0
- package/lib/components/List/constants.d.ts.map +1 -0
- package/lib/components/List/constants.js +22 -0
- package/lib/components/List/index.d.ts +14 -0
- package/lib/components/List/index.d.ts.map +1 -0
- package/lib/components/List/index.js +64 -0
- package/lib/components/List/index.test.js +64 -0
- package/lib/components/List/schema.d.ts +4 -0
- package/lib/components/List/schema.d.ts.map +1 -0
- package/lib/components/List/schema.js +26 -0
- package/lib/components/List/styles.d.ts +198 -0
- package/lib/components/List/styles.d.ts.map +1 -0
- package/lib/components/List/styles.js +34 -0
- package/lib/components/List/types.d.ts +14 -0
- package/lib/components/List/types.d.ts.map +1 -0
- package/lib/components/List/types.js +5 -0
- package/lib/components/Popover/Arrow.d.ts +2 -2
- package/lib/components/Tag/propTypes.d.ts +1 -1
- package/lib/components/TopNav/Menu/index.d.ts +1 -1
- package/lib/components/TopNav/index.d.ts +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +24 -1
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +5 -0
- package/lib/utils/commonUIColors.d.ts +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, Partial<{
|
|
3
|
+
readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
4
|
+
readonly XS: "XS";
|
|
5
|
+
readonly SM: "SM";
|
|
6
|
+
readonly MD: "MD";
|
|
7
|
+
readonly LG: "LG";
|
|
8
|
+
readonly XL: "XL";
|
|
9
|
+
}> | undefined;
|
|
10
|
+
readonly alignItems?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
11
|
+
readonly XS: "XS";
|
|
12
|
+
readonly SM: "SM";
|
|
13
|
+
readonly MD: "MD";
|
|
14
|
+
readonly LG: "LG";
|
|
15
|
+
readonly XL: "XL";
|
|
16
|
+
}> | undefined;
|
|
17
|
+
readonly alignSelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
18
|
+
readonly XS: "XS";
|
|
19
|
+
readonly SM: "SM";
|
|
20
|
+
readonly MD: "MD";
|
|
21
|
+
readonly LG: "LG";
|
|
22
|
+
readonly XL: "XL";
|
|
23
|
+
}> | undefined;
|
|
24
|
+
readonly flex?: string | number | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("react").ReactText, {
|
|
25
|
+
readonly XS: "XS";
|
|
26
|
+
readonly SM: "SM";
|
|
27
|
+
readonly MD: "MD";
|
|
28
|
+
readonly LG: "LG";
|
|
29
|
+
readonly XL: "XL";
|
|
30
|
+
}> | undefined;
|
|
31
|
+
readonly flexBasis?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
32
|
+
readonly XS: "XS";
|
|
33
|
+
readonly SM: "SM";
|
|
34
|
+
readonly MD: "MD";
|
|
35
|
+
readonly LG: "LG";
|
|
36
|
+
readonly XL: "XL";
|
|
37
|
+
}> | undefined;
|
|
38
|
+
readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
|
|
39
|
+
readonly XS: "XS";
|
|
40
|
+
readonly SM: "SM";
|
|
41
|
+
readonly MD: "MD";
|
|
42
|
+
readonly LG: "LG";
|
|
43
|
+
readonly XL: "XL";
|
|
44
|
+
}> | undefined;
|
|
45
|
+
readonly flexGrow?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
|
|
46
|
+
readonly XS: "XS";
|
|
47
|
+
readonly SM: "SM";
|
|
48
|
+
readonly MD: "MD";
|
|
49
|
+
readonly LG: "LG";
|
|
50
|
+
readonly XL: "XL";
|
|
51
|
+
}> | undefined;
|
|
52
|
+
readonly flexShrink?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
|
|
53
|
+
readonly XS: "XS";
|
|
54
|
+
readonly SM: "SM";
|
|
55
|
+
readonly MD: "MD";
|
|
56
|
+
readonly LG: "LG";
|
|
57
|
+
readonly XL: "XL";
|
|
58
|
+
}> | undefined;
|
|
59
|
+
readonly flexWrap?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "nowrap" | "wrap" | "wrap-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexWrapProperty, {
|
|
60
|
+
readonly XS: "XS";
|
|
61
|
+
readonly SM: "SM";
|
|
62
|
+
readonly MD: "MD";
|
|
63
|
+
readonly LG: "LG";
|
|
64
|
+
readonly XL: "XL";
|
|
65
|
+
}> | undefined;
|
|
66
|
+
readonly justifyContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
67
|
+
readonly XS: "XS";
|
|
68
|
+
readonly SM: "SM";
|
|
69
|
+
readonly MD: "MD";
|
|
70
|
+
readonly LG: "LG";
|
|
71
|
+
readonly XL: "XL";
|
|
72
|
+
}> | undefined;
|
|
73
|
+
readonly justifyItems?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
74
|
+
readonly XS: "XS";
|
|
75
|
+
readonly SM: "SM";
|
|
76
|
+
readonly MD: "MD";
|
|
77
|
+
readonly LG: "LG";
|
|
78
|
+
readonly XL: "XL";
|
|
79
|
+
}> | undefined;
|
|
80
|
+
readonly justifySelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
|
|
81
|
+
readonly XS: "XS";
|
|
82
|
+
readonly SM: "SM";
|
|
83
|
+
readonly MD: "MD";
|
|
84
|
+
readonly LG: "LG";
|
|
85
|
+
readonly XL: "XL";
|
|
86
|
+
}> | undefined;
|
|
87
|
+
readonly order?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
|
|
88
|
+
readonly XS: "XS";
|
|
89
|
+
readonly SM: "SM";
|
|
90
|
+
readonly MD: "MD";
|
|
91
|
+
readonly LG: "LG";
|
|
92
|
+
readonly XL: "XL";
|
|
93
|
+
}> | undefined;
|
|
94
|
+
readonly size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
|
|
95
|
+
}> & Partial<{
|
|
96
|
+
readonly margin: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
97
|
+
readonly XS: "XS";
|
|
98
|
+
readonly SM: "SM";
|
|
99
|
+
readonly MD: "MD";
|
|
100
|
+
readonly LG: "LG";
|
|
101
|
+
readonly XL: "XL";
|
|
102
|
+
}>;
|
|
103
|
+
readonly marginBottom: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
104
|
+
readonly XS: "XS";
|
|
105
|
+
readonly SM: "SM";
|
|
106
|
+
readonly MD: "MD";
|
|
107
|
+
readonly LG: "LG";
|
|
108
|
+
readonly XL: "XL";
|
|
109
|
+
}>;
|
|
110
|
+
readonly marginLeft: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
111
|
+
readonly XS: "XS";
|
|
112
|
+
readonly SM: "SM";
|
|
113
|
+
readonly MD: "MD";
|
|
114
|
+
readonly LG: "LG";
|
|
115
|
+
readonly XL: "XL";
|
|
116
|
+
}>;
|
|
117
|
+
readonly marginRight: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
118
|
+
readonly XS: "XS";
|
|
119
|
+
readonly SM: "SM";
|
|
120
|
+
readonly MD: "MD";
|
|
121
|
+
readonly LG: "LG";
|
|
122
|
+
readonly XL: "XL";
|
|
123
|
+
}>;
|
|
124
|
+
readonly marginTop: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
125
|
+
readonly XS: "XS";
|
|
126
|
+
readonly SM: "SM";
|
|
127
|
+
readonly MD: "MD";
|
|
128
|
+
readonly LG: "LG";
|
|
129
|
+
readonly XL: "XL";
|
|
130
|
+
}>;
|
|
131
|
+
readonly marginX: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
132
|
+
readonly XS: "XS";
|
|
133
|
+
readonly SM: "SM";
|
|
134
|
+
readonly MD: "MD";
|
|
135
|
+
readonly LG: "LG";
|
|
136
|
+
readonly XL: "XL";
|
|
137
|
+
}>;
|
|
138
|
+
readonly marginY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
139
|
+
readonly XS: "XS";
|
|
140
|
+
readonly SM: "SM";
|
|
141
|
+
readonly MD: "MD";
|
|
142
|
+
readonly LG: "LG";
|
|
143
|
+
readonly XL: "XL";
|
|
144
|
+
}>;
|
|
145
|
+
readonly padding: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
146
|
+
readonly XS: "XS";
|
|
147
|
+
readonly SM: "SM";
|
|
148
|
+
readonly MD: "MD";
|
|
149
|
+
readonly LG: "LG";
|
|
150
|
+
readonly XL: "XL";
|
|
151
|
+
}>;
|
|
152
|
+
readonly paddingBottom: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
153
|
+
readonly XS: "XS";
|
|
154
|
+
readonly SM: "SM";
|
|
155
|
+
readonly MD: "MD";
|
|
156
|
+
readonly LG: "LG";
|
|
157
|
+
readonly XL: "XL";
|
|
158
|
+
}>;
|
|
159
|
+
readonly paddingLeft: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
160
|
+
readonly XS: "XS";
|
|
161
|
+
readonly SM: "SM";
|
|
162
|
+
readonly MD: "MD";
|
|
163
|
+
readonly LG: "LG";
|
|
164
|
+
readonly XL: "XL";
|
|
165
|
+
}>;
|
|
166
|
+
readonly paddingRight: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
167
|
+
readonly XS: "XS";
|
|
168
|
+
readonly SM: "SM";
|
|
169
|
+
readonly MD: "MD";
|
|
170
|
+
readonly LG: "LG";
|
|
171
|
+
readonly XL: "XL";
|
|
172
|
+
}>;
|
|
173
|
+
readonly paddingTop: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
174
|
+
readonly XS: "XS";
|
|
175
|
+
readonly SM: "SM";
|
|
176
|
+
readonly MD: "MD";
|
|
177
|
+
readonly LG: "LG";
|
|
178
|
+
readonly XL: "XL";
|
|
179
|
+
}>;
|
|
180
|
+
readonly paddingX: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
181
|
+
readonly XS: "XS";
|
|
182
|
+
readonly SM: "SM";
|
|
183
|
+
readonly MD: "MD";
|
|
184
|
+
readonly LG: "LG";
|
|
185
|
+
readonly XL: "XL";
|
|
186
|
+
}>;
|
|
187
|
+
readonly paddingY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
|
|
188
|
+
readonly XS: "XS";
|
|
189
|
+
readonly SM: "SM";
|
|
190
|
+
readonly MD: "MD";
|
|
191
|
+
readonly LG: "LG";
|
|
192
|
+
readonly XL: "XL";
|
|
193
|
+
}>;
|
|
194
|
+
}> & {
|
|
195
|
+
variant: "grey" | "white" | "zebra";
|
|
196
|
+
fontSize: "small" | "medium";
|
|
197
|
+
}, never>;
|
|
198
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/List/styles.ts"],"names":[],"mappings":";AA6BA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAQrB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Container = void 0;
|
|
7
|
+
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
+
|
|
10
|
+
var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
|
|
11
|
+
|
|
12
|
+
var _color = _interopRequireDefault(require("@decisiv/design-tokens/lib/color"));
|
|
13
|
+
|
|
14
|
+
var _Flex = _interopRequireDefault(require("../Flex"));
|
|
15
|
+
|
|
16
|
+
var _constants = require("./constants");
|
|
17
|
+
|
|
18
|
+
var _variantStyles;
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
|
23
|
+
|
|
24
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
|
|
26
|
+
var variantStyles = (_variantStyles = {}, _defineProperty(_variantStyles, _constants.VARIANTS.ZEBRA, (0, _styledComponents.css)(["& > *:nth-child(odd){background-color:", ";}& > *:nth-child(even){background-color:", ";}"], (0, _toColorString.default)(_color.default.opacity.fullMoon50), (0, _toColorString.default)(_color.default.base.snowWhite))), _defineProperty(_variantStyles, _constants.VARIANTS.WHITE, (0, _styledComponents.css)(["background-color:", ";"], (0, _toColorString.default)(_color.default.base.snowWhite))), _defineProperty(_variantStyles, _constants.VARIANTS.GREY, (0, _styledComponents.css)(["background-color:", ";"], (0, _toColorString.default)(_color.default.opacity.fullMoon50))), _variantStyles);
|
|
27
|
+
var Container = (0, _styledComponents.default)(_Flex.default).withConfig({
|
|
28
|
+
displayName: "styles__Container",
|
|
29
|
+
componentId: "cru13p-0"
|
|
30
|
+
})(["display:grid;grid-template-columns:30% 1fr;", ""], function (_ref) {
|
|
31
|
+
var variant = _ref.variant;
|
|
32
|
+
return variantStyles[variant] || _constants.VARIANTS.ZEBRA;
|
|
33
|
+
});
|
|
34
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlexProps } from '../../modifiers';
|
|
3
|
+
import { ValueOf } from '../../types';
|
|
4
|
+
import { VARIANTS, SIZES, VIEW_STATES } from './constants';
|
|
5
|
+
export declare type ListVariant = ValueOf<typeof VARIANTS>;
|
|
6
|
+
export declare type ListSize = ValueOf<typeof SIZES>;
|
|
7
|
+
export declare type ListViewState = ValueOf<typeof VIEW_STATES>;
|
|
8
|
+
export interface ListProps extends Omit<FlexProps, 'size'> {
|
|
9
|
+
variant?: ListVariant;
|
|
10
|
+
size?: ListSize;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare type ListContextProps = Required<Pick<ListProps, 'size'>>;
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/List/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE3D,oBAAY,WAAW,GAAG,OAAO,CAAC,OAAO,QAAQ,CAAC,CAAC;AACnD,oBAAY,QAAQ,GAAG,OAAO,CAAC,OAAO,KAAK,CAAC,CAAC;AAC7C,oBAAY,aAAa,GAAG,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC;AAExD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;IACxD,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,oBAAY,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ArrowProps } from './types';
|
|
2
2
|
export declare const arrowColors: {
|
|
3
|
-
danger: import("@decisiv/design-tokens/lib/color").Color;
|
|
4
|
-
success: import("@decisiv/design-tokens/lib/color").Color;
|
|
5
3
|
information: import("@decisiv/design-tokens/lib/color").Color;
|
|
4
|
+
success: import("@decisiv/design-tokens/lib/color").Color;
|
|
6
5
|
warning: import("@decisiv/design-tokens/lib/color").Color;
|
|
6
|
+
danger: import("@decisiv/design-tokens/lib/color").Color;
|
|
7
7
|
berryCrisp: import("@decisiv/design-tokens/lib/color").Color;
|
|
8
8
|
koolaidCake: import("@decisiv/design-tokens/lib/color").Color;
|
|
9
9
|
cookieMonster: import("@decisiv/design-tokens/lib/color").Color;
|
|
@@ -7,7 +7,7 @@ export declare const propTypes: {
|
|
|
7
7
|
actionAttributes: any;
|
|
8
8
|
actionIntent: PropTypes.Requireable<string>;
|
|
9
9
|
actionRef: PropTypes.Requireable<any>;
|
|
10
|
-
color: PropTypes.Requireable<"
|
|
10
|
+
color: PropTypes.Requireable<"information" | "success" | "warning" | "danger" | "berryCrisp" | "koolaidCake" | "cookieMonster" | "cottonCandy" | "fizzyLime" | "mamboMango" | "carrotCake" | "roseGummy" | "licoriceMousse">;
|
|
11
11
|
variant: PropTypes.Requireable<string>;
|
|
12
12
|
palette: PropTypes.Requireable<string>;
|
|
13
13
|
size: PropTypes.Requireable<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TButtonProps } from '../Button';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<TButtonProps, "disabled" | "
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<TButtonProps, "disabled" | "tooltipText" | "emblem" | "primaryText" | "secondaryText" | "counter"> & {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
childMinWidth?: string | undefined;
|
|
6
6
|
popoverRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
@@ -7,7 +7,7 @@ declare namespace TopNav {
|
|
|
7
7
|
var BrandInfo: typeof import("./BrandInfo").default;
|
|
8
8
|
var Button: React.ForwardRefExoticComponent<(import("./Button").ButtonProps & React.RefAttributes<HTMLButtonElement>) | (import("./Button").ButtonWithMenuProps & React.RefAttributes<HTMLButtonElement>)>;
|
|
9
9
|
var Link: typeof import("./Link").default;
|
|
10
|
-
var Menu: React.ForwardRefExoticComponent<Pick<import("./Button").TButtonProps, "disabled" | "
|
|
10
|
+
var Menu: React.ForwardRefExoticComponent<Pick<import("./Button").TButtonProps, "disabled" | "tooltipText" | "emblem" | "primaryText" | "secondaryText" | "counter"> & {
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
childMinWidth?: string | undefined;
|
|
13
13
|
popoverRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
@@ -43,4 +43,5 @@ export { default as TopNav } from './TopNav';
|
|
|
43
43
|
export { default as Tooltip } from './Tooltip';
|
|
44
44
|
export { default as Wizard, WizardProps, Step } from './Wizard';
|
|
45
45
|
export * from './Typography';
|
|
46
|
+
export { default as List, useList, useListItemContent } from './List';
|
|
46
47
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,IAAI,IAAI,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,SAAS,EAAE,MAAM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AC;AACnD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChE,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -83,7 +83,10 @@ var _exportNames = {
|
|
|
83
83
|
Tooltip: true,
|
|
84
84
|
Wizard: true,
|
|
85
85
|
WizardProps: true,
|
|
86
|
-
Step: true
|
|
86
|
+
Step: true,
|
|
87
|
+
List: true,
|
|
88
|
+
useList: true,
|
|
89
|
+
useListItemContent: true
|
|
87
90
|
};
|
|
88
91
|
Object.defineProperty(exports, "Accordion", {
|
|
89
92
|
enumerable: true,
|
|
@@ -565,6 +568,24 @@ Object.defineProperty(exports, "Step", {
|
|
|
565
568
|
return _Wizard.Step;
|
|
566
569
|
}
|
|
567
570
|
});
|
|
571
|
+
Object.defineProperty(exports, "List", {
|
|
572
|
+
enumerable: true,
|
|
573
|
+
get: function get() {
|
|
574
|
+
return _List.default;
|
|
575
|
+
}
|
|
576
|
+
});
|
|
577
|
+
Object.defineProperty(exports, "useList", {
|
|
578
|
+
enumerable: true,
|
|
579
|
+
get: function get() {
|
|
580
|
+
return _List.useList;
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
Object.defineProperty(exports, "useListItemContent", {
|
|
584
|
+
enumerable: true,
|
|
585
|
+
get: function get() {
|
|
586
|
+
return _List.useListItemContent;
|
|
587
|
+
}
|
|
588
|
+
});
|
|
568
589
|
|
|
569
590
|
var _Accordion = _interopRequireDefault(require("./Accordion"));
|
|
570
591
|
|
|
@@ -667,6 +688,8 @@ Object.keys(_Typography).forEach(function (key) {
|
|
|
667
688
|
});
|
|
668
689
|
});
|
|
669
690
|
|
|
691
|
+
var _List = _interopRequireWildcard(require("./List"));
|
|
692
|
+
|
|
670
693
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
|
671
694
|
|
|
672
695
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,oBAAY,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -12,10 +12,10 @@ export declare type CommonUIColors = {
|
|
|
12
12
|
[K in CommonUIColorKeys]: Color;
|
|
13
13
|
};
|
|
14
14
|
export declare const viColorKeys: ("berryCrisp" | "koolaidCake" | "cookieMonster" | "cottonCandy" | "fizzyLime" | "mamboMango" | "carrotCake" | "roseGummy" | "licoriceMousse")[];
|
|
15
|
-
export declare const statusColorKeys: ("
|
|
15
|
+
export declare const statusColorKeys: ("information" | "success" | "warning" | "danger")[];
|
|
16
16
|
export declare const viColors: VIColors;
|
|
17
17
|
export declare const statusColors: StatusColors;
|
|
18
|
-
export declare const commonUIColorKeys: ("
|
|
18
|
+
export declare const commonUIColorKeys: ("information" | "success" | "warning" | "danger" | "berryCrisp" | "koolaidCake" | "cookieMonster" | "cottonCandy" | "fizzyLime" | "mamboMango" | "carrotCake" | "roseGummy" | "licoriceMousse")[];
|
|
19
19
|
export declare const commonUIColors: CommonUIColors;
|
|
20
20
|
export declare const commonUIThreeShadeColors: {
|
|
21
21
|
readonly berryCrisp: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decisiv/ui-components",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.210+e51d940",
|
|
4
4
|
"description": "Decisiv's design system React components",
|
|
5
5
|
"author": "Decisiv UI Development Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
73
|
"private": false,
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "e51d9408aec827964739289ebf71550fdb3cb620"
|
|
75
75
|
}
|