@cleartrip/ct-design-card 4.0.0 → 5.0.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/README.md +121 -0
- package/dist/Card.d.ts +3 -4
- package/dist/Card.d.ts.map +1 -1
- package/dist/Card.native.d.ts +4 -0
- package/dist/Card.native.d.ts.map +1 -0
- package/dist/constants.d.ts +43 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/ct-design-card.browser.cjs.js +1 -1
- package/dist/ct-design-card.browser.cjs.js.map +1 -1
- package/dist/ct-design-card.browser.esm.js +1 -1
- package/dist/ct-design-card.browser.esm.js.map +1 -1
- package/dist/ct-design-card.cjs.js +79 -133
- package/dist/ct-design-card.cjs.js.map +1 -1
- package/dist/ct-design-card.esm.js +78 -127
- package/dist/ct-design-card.esm.js.map +1 -1
- package/dist/ct-design-card.umd.js +81 -173
- package/dist/ct-design-card.umd.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.native.d.ts +4 -0
- package/dist/index.native.d.ts.map +1 -0
- package/dist/style.d.ts +46 -125
- package/dist/style.d.ts.map +1 -1
- package/dist/type.d.ts +30 -39
- package/dist/type.d.ts.map +1 -1
- package/package.json +26 -8
- package/src/Card.native.tsx +68 -0
- package/src/Card.tsx +18 -0
- package/src/constants.ts +50 -0
- package/src/index.native.ts +3 -0
- package/src/index.ts +4 -0
- package/src/style.ts +174 -0
- package/src/type.ts +118 -0
- package/dist/StyledCard/style.d.ts +0 -4
- package/dist/StyledCard/style.d.ts.map +0 -1
|
@@ -1,57 +1,23 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('@cleartrip/ct-design-
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', '@cleartrip/ct-design-
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemCard = {}, global.jsxRuntime, global.React, global.
|
|
5
|
-
})(this, (function (exports, jsxRuntime, react,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('@cleartrip/ct-design-container'), require('@cleartrip/ct-design-tokens')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', '@cleartrip/ct-design-container', '@cleartrip/ct-design-tokens'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemCard = {}, global.jsxRuntime, global.React, global.ctDesignContainer, global.ctDesignTokens));
|
|
5
|
+
})(this, (function (exports, jsxRuntime, react, ctDesignContainer, ctDesignTokens) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Copyright (c) Microsoft Corporation.
|
|
13
|
-
|
|
14
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
15
|
-
purpose with or without fee is hereby granted.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
18
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
19
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
20
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
21
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
22
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
24
|
-
***************************************************************************** */
|
|
25
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
26
|
-
|
|
27
|
-
var __assign = function () {
|
|
28
|
-
__assign = Object.assign || function __assign(t) {
|
|
29
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30
|
-
s = arguments[i];
|
|
31
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
32
|
-
}
|
|
33
|
-
return t;
|
|
34
|
-
};
|
|
35
|
-
return __assign.apply(this, arguments);
|
|
36
|
-
};
|
|
37
|
-
function __rest(s, e) {
|
|
38
|
-
var t = {};
|
|
39
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
40
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
41
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
42
|
-
}
|
|
43
|
-
return t;
|
|
44
|
-
}
|
|
45
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
46
|
-
var e = new Error(message);
|
|
47
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
var getStyledCardStyled = function (_a) {
|
|
51
|
-
var borderRadius = _a.borderRadius, border = _a.border, borderTop = _a.borderTop, borderBottom = _a.borderBottom, borderLeft = _a.borderLeft, borderRight = _a.borderRight, boxShadow = _a.boxShadow, borderColor = _a.borderColor, theme = _a.theme, rest = __rest(_a, ["borderRadius", "border", "borderTop", "borderBottom", "borderLeft", "borderRight", "boxShadow", "borderColor", "theme"]);
|
|
52
|
-
return __assign({ borderRadius: borderRadius, border: border, borderTop: borderTop, borderBottom: borderBottom, borderLeft: borderLeft, borderRight: borderRight, boxShadow: boxShadow, borderColor: borderColor, backgroundColor: theme.color.background.neutral }, rest);
|
|
53
|
-
};
|
|
7
|
+
const Card = react.forwardRef(({ children, styleConfig, onClick }, forwardedRef) => {
|
|
8
|
+
const { root = [] } = styleConfig || {};
|
|
9
|
+
return (jsxRuntime.jsx(ctDesignContainer.Container, { ref: forwardedRef, onClick: onClick, styleConfig: { root: [...root] }, children: children }));
|
|
10
|
+
});
|
|
11
|
+
Card.displayName = 'Card';
|
|
54
12
|
|
|
13
|
+
exports.CardSize = void 0;
|
|
14
|
+
(function (CardSize) {
|
|
15
|
+
CardSize["NONE"] = "none";
|
|
16
|
+
CardSize["SMALL"] = "sm";
|
|
17
|
+
CardSize["MEDIUM"] = "md";
|
|
18
|
+
CardSize["LARGE"] = "lg";
|
|
19
|
+
CardSize["EXTRA_LARGE"] = "xl";
|
|
20
|
+
})(exports.CardSize || (exports.CardSize = {}));
|
|
55
21
|
exports.CardRadius = void 0;
|
|
56
22
|
(function (CardRadius) {
|
|
57
23
|
CardRadius["NONE"] = "none";
|
|
@@ -87,22 +53,27 @@
|
|
|
87
53
|
CardBorderDirection["RIGHT"] = "right";
|
|
88
54
|
CardBorderDirection["DEFAULT"] = "default";
|
|
89
55
|
})(exports.CardBorderDirection || (exports.CardBorderDirection = {}));
|
|
56
|
+
const CardBorderColors = {
|
|
57
|
+
PRIMARY: ctDesignTokens.colors.black,
|
|
58
|
+
SECONDARY: ctDesignTokens.colors.success,
|
|
59
|
+
TERTIARY: ctDesignTokens.colors.warning,
|
|
60
|
+
};
|
|
90
61
|
|
|
91
|
-
|
|
62
|
+
const getCardBorderRadius = (cornerRadius, theme) => {
|
|
92
63
|
switch (cornerRadius) {
|
|
93
|
-
case exports.
|
|
64
|
+
case exports.CardSize.NONE: {
|
|
94
65
|
return theme.border.radius[0];
|
|
95
66
|
}
|
|
96
|
-
case exports.
|
|
67
|
+
case exports.CardSize.SMALL: {
|
|
97
68
|
return theme.border.radius[6];
|
|
98
69
|
}
|
|
99
|
-
case exports.
|
|
70
|
+
case exports.CardSize.MEDIUM: {
|
|
100
71
|
return theme.border.radius[8];
|
|
101
72
|
}
|
|
102
|
-
case exports.
|
|
73
|
+
case exports.CardSize.LARGE: {
|
|
103
74
|
return theme.border.radius[12];
|
|
104
75
|
}
|
|
105
|
-
case exports.
|
|
76
|
+
case exports.CardSize.EXTRA_LARGE: {
|
|
106
77
|
return theme.border.radius[16];
|
|
107
78
|
}
|
|
108
79
|
default: {
|
|
@@ -110,18 +81,18 @@
|
|
|
110
81
|
}
|
|
111
82
|
}
|
|
112
83
|
};
|
|
113
|
-
|
|
84
|
+
const getCardBorderWidth = (borderWidth, theme) => {
|
|
114
85
|
switch (borderWidth) {
|
|
115
|
-
case exports.
|
|
86
|
+
case exports.CardSize.NONE: {
|
|
116
87
|
return theme.border.width.none;
|
|
117
88
|
}
|
|
118
|
-
case exports.
|
|
89
|
+
case exports.CardSize.SMALL: {
|
|
119
90
|
return theme.border.width.sm;
|
|
120
91
|
}
|
|
121
|
-
case exports.
|
|
92
|
+
case exports.CardSize.MEDIUM: {
|
|
122
93
|
return theme.border.width.md;
|
|
123
94
|
}
|
|
124
|
-
case exports.
|
|
95
|
+
case exports.CardSize.LARGE: {
|
|
125
96
|
return theme.border.width.lg;
|
|
126
97
|
}
|
|
127
98
|
default: {
|
|
@@ -129,135 +100,72 @@
|
|
|
129
100
|
}
|
|
130
101
|
}
|
|
131
102
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
103
|
+
const getBorderDirectionStyles = (_borderDirection, borderWidth, borderStyle, borderColor) => {
|
|
104
|
+
return {
|
|
105
|
+
borderWidth,
|
|
106
|
+
borderStyle,
|
|
107
|
+
borderColor,
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
const getCardBorderStyles = (cardBorderWidth, cornerRadius, borderDirection, borderColor, theme, noBorder) => {
|
|
111
|
+
const borderRadius = getCardBorderRadius(cornerRadius, theme);
|
|
112
|
+
const borderStyle = theme.border.style.solid;
|
|
113
|
+
const borderWidth = getCardBorderWidth(cardBorderWidth, theme);
|
|
114
|
+
const border = getBorderDirectionStyles(borderDirection, borderWidth, borderStyle, borderColor);
|
|
115
|
+
return noBorder
|
|
116
|
+
? { borderRadius }
|
|
117
|
+
: Object.assign({ borderRadius }, border);
|
|
118
|
+
};
|
|
119
|
+
const getDefaultCardStyles = (theme, size) => {
|
|
120
|
+
switch (size) {
|
|
121
|
+
case exports.CardSize.LARGE:
|
|
140
122
|
return {
|
|
141
|
-
|
|
123
|
+
height: theme.size[12],
|
|
124
|
+
borderRadius: theme.border.radius[24],
|
|
125
|
+
borderStyle: theme.border.style.solid,
|
|
142
126
|
};
|
|
143
|
-
|
|
144
|
-
case exports.CardBorderDirection.BOTTOM: {
|
|
127
|
+
case exports.CardSize.MEDIUM:
|
|
145
128
|
return {
|
|
146
|
-
|
|
129
|
+
height: theme.size[10],
|
|
130
|
+
borderRadius: theme.border.radius[20],
|
|
131
|
+
borderStyle: theme.border.style.solid,
|
|
147
132
|
};
|
|
148
|
-
|
|
149
|
-
case exports.CardBorderDirection.LEFT: {
|
|
133
|
+
case exports.CardSize.SMALL:
|
|
150
134
|
return {
|
|
151
|
-
|
|
135
|
+
height: theme.size[8],
|
|
136
|
+
borderRadius: theme.border.radius[16],
|
|
137
|
+
borderStyle: theme.border.style.solid,
|
|
152
138
|
};
|
|
153
|
-
|
|
154
|
-
case exports.CardBorderDirection.RIGHT: {
|
|
139
|
+
default:
|
|
155
140
|
return {
|
|
156
|
-
|
|
141
|
+
height: theme.size[10],
|
|
142
|
+
borderRadius: theme.border.radius[20],
|
|
143
|
+
borderStyle: theme.border.style.solid,
|
|
157
144
|
};
|
|
158
|
-
}
|
|
159
|
-
default: {
|
|
160
|
-
return {
|
|
161
|
-
border: "".concat(borderWidth, " ").concat(borderStyle, " ").concat(borderColor),
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
145
|
}
|
|
165
146
|
};
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
147
|
+
const getCardStyles = ({ borderColor, cornerRadius, borderWidth, showShadow, shadowColor, shadowOffset, shadowOpacity, elevation, borderDirection, theme, }) => {
|
|
148
|
+
const shadowStyles = showShadow
|
|
149
|
+
? {
|
|
150
|
+
shadowColor,
|
|
151
|
+
shadowOffset,
|
|
152
|
+
shadowOpacity,
|
|
153
|
+
shadowRadius: 2,
|
|
154
|
+
elevation,
|
|
155
|
+
}
|
|
156
|
+
: {};
|
|
157
|
+
const borderStyles = getCardBorderStyles(borderWidth, cornerRadius, borderDirection, borderColor, theme);
|
|
158
|
+
return Object.assign(Object.assign({}, shadowStyles), borderStyles);
|
|
175
159
|
};
|
|
176
|
-
var getTopShadow = function (shadowVariant, theme) {
|
|
177
|
-
switch (shadowVariant) {
|
|
178
|
-
case exports.CardShadowVariant.E1: {
|
|
179
|
-
return theme.elevation.topE1;
|
|
180
|
-
}
|
|
181
|
-
case exports.CardShadowVariant.E2: {
|
|
182
|
-
return theme.elevation.topE2;
|
|
183
|
-
}
|
|
184
|
-
case exports.CardShadowVariant.E3: {
|
|
185
|
-
return theme.elevation.topE3;
|
|
186
|
-
}
|
|
187
|
-
case exports.CardShadowVariant.E4: {
|
|
188
|
-
return theme.elevation.topE4;
|
|
189
|
-
}
|
|
190
|
-
default: {
|
|
191
|
-
return theme.elevation.topE2;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
var getBottomShadow = function (shadowVariant, theme) {
|
|
196
|
-
switch (shadowVariant) {
|
|
197
|
-
case exports.CardShadowVariant.E1: {
|
|
198
|
-
return theme.elevation.bottomE1;
|
|
199
|
-
}
|
|
200
|
-
case exports.CardShadowVariant.E2: {
|
|
201
|
-
return theme.elevation.bottomE2;
|
|
202
|
-
}
|
|
203
|
-
case exports.CardShadowVariant.E3: {
|
|
204
|
-
return theme.elevation.bottomE3;
|
|
205
|
-
}
|
|
206
|
-
case exports.CardShadowVariant.E4: {
|
|
207
|
-
return theme.elevation.bottomE4;
|
|
208
|
-
}
|
|
209
|
-
default: {
|
|
210
|
-
return theme.elevation.bottomE2;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
var getCardShadowStyles = function (shadowDirection, shadowVariant, theme) {
|
|
215
|
-
switch (shadowDirection) {
|
|
216
|
-
case exports.CardShadowDirection.TOP: {
|
|
217
|
-
return getTopShadow(shadowVariant, theme);
|
|
218
|
-
}
|
|
219
|
-
case exports.CardShadowDirection.BOTTOM: {
|
|
220
|
-
return getBottomShadow(shadowVariant, theme);
|
|
221
|
-
}
|
|
222
|
-
default: {
|
|
223
|
-
return getBottomShadow(shadowVariant, theme);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
var getCardStyles = function (_a) {
|
|
228
|
-
var cornerRadius = _a.cornerRadius, borderWidth = _a.borderWidth, showShadow = _a.showShadow, shadowDirection = _a.shadowDirection, shadowVariant = _a.shadowVariant, borderDirection = _a.borderDirection, theme = _a.theme, noBorder = _a.noBorder;
|
|
229
|
-
return __assign({ boxShadow: showShadow ? getCardShadowStyles(shadowDirection, shadowVariant, theme) : 'none' }, getCardBorderStyles(borderWidth, cornerRadius, borderDirection, theme, noBorder));
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
var StyledCard = styled__default.default.div(function (_a) {
|
|
233
|
-
var css = _a.css, theme = _a.theme, rest = __rest(_a, ["css", "theme"]);
|
|
234
|
-
return getStyledCardStyled(__assign(__assign(__assign({}, css), { theme: theme }), rest));
|
|
235
|
-
});
|
|
236
|
-
var Card = react.forwardRef(function (_a, forwardedRef) {
|
|
237
|
-
var children = _a.children, _b = _a.cornerRadius, cornerRadius = _b === void 0 ? exports.CardRadius.MEDIUM : _b, _c = _a.borderWidth, borderWidth = _c === void 0 ? exports.CardBorderWidth.MEDIUM : _c, _d = _a.showShadow, showShadow = _d === void 0 ? true : _d, _e = _a.shadowDirection, shadowDirection = _e === void 0 ? exports.CardShadowDirection.TOP : _e, _f = _a.shadowVariant, shadowVariant = _f === void 0 ? exports.CardShadowVariant.E2 : _f, _g = _a.borderDirection, borderDirection = _g === void 0 ? exports.CardBorderDirection.DEFAULT : _g, css = _a.css; _a.onChange; var _h = _a.noBorder, noBorder = _h === void 0 ? false : _h, rest = __rest(_a, ["children", "cornerRadius", "borderWidth", "showShadow", "shadowDirection", "shadowVariant", "borderDirection", "css", "onChange", "noBorder"]);
|
|
238
|
-
var theme = ctDesignTheme.useTheme();
|
|
239
|
-
var cardStyles = getCardStyles({
|
|
240
|
-
cornerRadius: cornerRadius,
|
|
241
|
-
borderWidth: borderWidth,
|
|
242
|
-
showShadow: showShadow,
|
|
243
|
-
shadowDirection: shadowDirection,
|
|
244
|
-
shadowVariant: shadowVariant,
|
|
245
|
-
borderDirection: borderDirection,
|
|
246
|
-
theme: theme,
|
|
247
|
-
noBorder: noBorder,
|
|
248
|
-
});
|
|
249
|
-
return (jsxRuntime.jsx(StyledCard, __assign({ ref: forwardedRef, css: __assign(__assign({}, cardStyles), css) }, rest, { theme: theme }, { children: children })));
|
|
250
|
-
});
|
|
251
160
|
|
|
252
161
|
exports.Card = Card;
|
|
162
|
+
exports.CardBorderColors = CardBorderColors;
|
|
253
163
|
exports.getBorderDirectionStyles = getBorderDirectionStyles;
|
|
254
|
-
exports.getBottomShadow = getBottomShadow;
|
|
255
164
|
exports.getCardBorderRadius = getCardBorderRadius;
|
|
256
165
|
exports.getCardBorderStyles = getCardBorderStyles;
|
|
257
166
|
exports.getCardBorderWidth = getCardBorderWidth;
|
|
258
|
-
exports.getCardShadowStyles = getCardShadowStyles;
|
|
259
167
|
exports.getCardStyles = getCardStyles;
|
|
260
|
-
exports.
|
|
168
|
+
exports.getDefaultCardStyles = getDefaultCardStyles;
|
|
261
169
|
|
|
262
170
|
}));
|
|
263
171
|
//# sourceMappingURL=ct-design-card.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-card.umd.js","sources":["../../../../node_modules/.pnpm/@rollup+plugin-typescript@9.0.2_rollup@3.29.4_tslib@2.6.3_typescript@4.9.5/node_modules/tslib/tslib.es6.js","../packages/components/Card/src/StyledCard/style.ts","../packages/components/Card/src/type.ts","../packages/components/Card/src/style.ts","../packages/components/Card/src/Card.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n",null,null,null,null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","SuppressedError","error","suppressed","message","Error","name","CardRadius","CardBorderWidth","CardShadowDirection","CardShadowVariant","CardBorderDirection","styled","forwardRef","useTheme","_jsx"],"mappings":";;;;;;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;IAiBO,IAAIA,QAAQ,GAAG,YAAW;MAC7BA,QAAQ,GAAGC,MAAM,CAACC,MAAM,IAAI,SAASF,QAAQA,CAACG,CAAC,EAAE;IAC7C,IAAA,KAAK,IAAIC,CAAC,EAAEC,CAAC,GAAG,CAAC,EAAEC,CAAC,GAAGC,SAAS,CAACC,MAAM,EAAEH,CAAC,GAAGC,CAAC,EAAED,CAAC,EAAE,EAAE;IACjDD,MAAAA,CAAC,GAAGG,SAAS,CAACF,CAAC,CAAC,CAAA;UAChB,KAAK,IAAII,CAAC,IAAIL,CAAC,EAAE,IAAIH,MAAM,CAACS,SAAS,CAACC,cAAc,CA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KAAK,GAAGG,sBAAQ,EAAE,CAAC;QACzB,IAAM,UAAU,GAAG,aAAa,CAAC;IAC/B,QAAA,YAAY,EAAA,YAAA;IACZ,QAAA,WAAW,EAAA,WAAA;IACX,QAAA,UAAU,EAAA,UAAA;IACV,QAAA,eAAe,EAAA,eAAA;IACf,QAAA,aAAa,EAAA,aAAA;IACb,QAAA,eAAe,EAAA,eAAA;IACf,QAAA,KAAK,EAAA,KAAA;IACL,QAAA,QAAQ,EAAA,QAAA;IACT,KAAA,CAAC,CAAC;QAEH,QACEC,eAAC,UAAU,EAAA,QAAA,CAAA,EAAC,GAAG,EAAE,YAAY,EAAE,GAAG,EAAO,QAAA,CAAA,QAAA,CAAA,EAAA,EAAA,UAAU,GAAK,GAAG,CAAA,EAAA,EAAQ,IAAI,EAAA,EAAE,KAAK,EAAE,KAAK,EAClF,EAAA,EAAA,QAAA,EAAA,QAAQ,EACE,CAAA,CAAA,EACb;IACJ,CAAC;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"ct-design-card.umd.js","sources":["../packages/components/Card/src/Card.tsx","../packages/components/Card/src/constants.ts","../packages/components/Card/src/style.ts"],"sourcesContent":[null,null,null],"names":["forwardRef","_jsx","Container","CardSize","CardRadius","CardBorderWidth","CardShadowDirection","CardShadowVariant","CardBorderDirection","colors"],"mappings":";;;;;;AAMA,UAAM,IAAI,GAAGA,gBAAU,CAA2B,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,YAAY,KAAI;QACrG,MAAM,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,WAAW,IAAI,EAAE,CAAC;QAExC,QACEC,cAAC,CAAAC,2BAAS,EAAC,EAAA,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,EAC7E,QAAA,EAAA,QAAQ,EACC,CAAA,EACZ;IACJ,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M,CAAC,KAAK,CAAC,KAAK;iBACtC,CAAC;YACJ,KAAKA,gBAAQ,CAAC,KAAK;gBACjB,OAAO;IACL,gBAAA,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;oBACrB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;IACrC,gBAAA,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;iBACtC,CAAC;IACJ,QAAA;gBACE,OAAO;IACL,gBAAA,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;oBACtB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;IACrC,gBAAA,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK;iBACtC,CAAC;SACL;IACH,EAAE;AAcW,UAAA,aAAa,GAAG,CAAC,EAC5B,WAAW,EACX,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,aAAa,EACb,SAAS,EACT,eAAe,EACf,KAAK,GAYN,KAAyB;QACxB,MAAM,YAAY,GAAG,UAAU;IAC7B,UAAE;gBACE,WAAW;gBACX,YAAY;gBACZ,aAAa;IACb,YAAA,YAAY,EAAE,CAAC;gBACf,SAAS;IACV,SAAA;cACD,EAAE,CAAC;IAEP,IAAA,MAAM,YAAY,GAAG,mBAAmB,CAAC,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;QAEzG,OACK,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,YAAY,CACZ,EAAA,YAAY,CACf,CAAA;IACJ;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/Card/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/Card/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,mBAAmB,QAAQ,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../packages/components/Card/src/index.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,mBAAmB,QAAQ,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
package/dist/style.d.ts
CHANGED
|
@@ -1,131 +1,52 @@
|
|
|
1
|
-
import { CSSObject } from 'styled-components';
|
|
2
1
|
import { Theme } from '@cleartrip/ct-design-theme';
|
|
3
|
-
import { CardBorderDirectionType, CardBorderWidthType,
|
|
4
|
-
export declare const getCardBorderRadius: (cornerRadius:
|
|
5
|
-
export declare const getCardBorderWidth: (borderWidth: CardBorderWidthType, theme: Theme) =>
|
|
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
|
-
export declare const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
border: string;
|
|
41
|
-
borderTop?: undefined;
|
|
42
|
-
borderBottom?: undefined;
|
|
43
|
-
borderLeft?: undefined;
|
|
44
|
-
borderRight?: undefined;
|
|
45
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
46
|
-
} | {
|
|
47
|
-
borderTop: string;
|
|
48
|
-
border?: undefined;
|
|
49
|
-
borderBottom?: undefined;
|
|
50
|
-
borderLeft?: undefined;
|
|
51
|
-
borderRight?: undefined;
|
|
52
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
53
|
-
} | {
|
|
54
|
-
borderBottom: string;
|
|
55
|
-
border?: undefined;
|
|
56
|
-
borderTop?: undefined;
|
|
57
|
-
borderLeft?: undefined;
|
|
58
|
-
borderRight?: undefined;
|
|
59
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
60
|
-
} | {
|
|
61
|
-
borderLeft: string;
|
|
62
|
-
border?: undefined;
|
|
63
|
-
borderTop?: undefined;
|
|
64
|
-
borderBottom?: undefined;
|
|
65
|
-
borderRight?: undefined;
|
|
66
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
67
|
-
} | {
|
|
68
|
-
borderRight: string;
|
|
69
|
-
border?: undefined;
|
|
70
|
-
borderTop?: undefined;
|
|
71
|
-
borderBottom?: undefined;
|
|
72
|
-
borderLeft?: undefined;
|
|
73
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
74
|
-
};
|
|
75
|
-
export declare const getTopShadow: (shadowVariant: CardShadowVariantType, theme: Theme) => "0px -1px 0px #E7E7E7" | "0px -4px 16px rgba(26, 26, 26, 0.08)" | "0px -8px 24px rgba(26, 26, 26, 0.1)" | "0px -10px 32px rgba(26, 26, 26, 0.2)";
|
|
76
|
-
export declare const getBottomShadow: (shadowVariant: CardShadowVariantType, theme: Theme) => "0px 1px 0px #E7E7E7" | "0px 4px 16px rgba(26, 26, 26, 0.08)" | "0px 8px 24px rgba(26, 26, 26, 0.1)" | "0px 10px 32px rgba(26, 26, 26, 0.2)";
|
|
77
|
-
export declare const getCardShadowStyles: (shadowDirection: CardShadowDirectionType, shadowVariant: CardShadowVariantType, theme: Theme) => "0px -1px 0px #E7E7E7" | "0px -4px 16px rgba(26, 26, 26, 0.08)" | "0px -8px 24px rgba(26, 26, 26, 0.1)" | "0px -10px 32px rgba(26, 26, 26, 0.2)" | "0px 1px 0px #E7E7E7" | "0px 4px 16px rgba(26, 26, 26, 0.08)" | "0px 8px 24px rgba(26, 26, 26, 0.1)" | "0px 10px 32px rgba(26, 26, 26, 0.2)";
|
|
78
|
-
export declare const getCardStyles: ({ cornerRadius, borderWidth, showShadow, shadowDirection, shadowVariant, borderDirection, theme, noBorder, }: {
|
|
79
|
-
cornerRadius: CardRadiusType;
|
|
2
|
+
import { CardBorderColorType, CardBorderDirectionType, CardBorderWidthType, CardSizeType } from './type';
|
|
3
|
+
export declare const getCardBorderRadius: (cornerRadius: CardSizeType, theme: Theme) => number;
|
|
4
|
+
export declare const getCardBorderWidth: (borderWidth: CardBorderWidthType, theme: Theme) => number;
|
|
5
|
+
interface BorderStyleProps {
|
|
6
|
+
borderWidth: number;
|
|
7
|
+
borderStyle: 'solid';
|
|
8
|
+
borderColor: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const getBorderDirectionStyles: (_borderDirection: CardBorderDirectionType, borderWidth: number, borderStyle: "solid", borderColor: string) => BorderStyleProps;
|
|
11
|
+
export declare const getCardBorderStyles: (cardBorderWidth: CardBorderWidthType, cornerRadius: CardSizeType, borderDirection: CardBorderDirectionType, borderColor: CardBorderColorType, theme: Theme, noBorder?: boolean) => {
|
|
12
|
+
borderRadius: number;
|
|
13
|
+
} | ({
|
|
14
|
+
borderRadius: number;
|
|
15
|
+
} & BorderStyleProps);
|
|
16
|
+
interface CardStyleProps {
|
|
17
|
+
height: number;
|
|
18
|
+
borderRadius: number;
|
|
19
|
+
borderStyle: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const getDefaultCardStyles: (theme: Theme, size: CardSizeType) => CardStyleProps;
|
|
22
|
+
interface CardStyleReturnType {
|
|
23
|
+
borderRadius: number;
|
|
24
|
+
borderWidth?: number;
|
|
25
|
+
borderStyle?: 'solid';
|
|
26
|
+
borderColor?: string;
|
|
27
|
+
shadowColor?: string;
|
|
28
|
+
shadowOffset?: {
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
};
|
|
32
|
+
shadowOpacity?: number;
|
|
33
|
+
shadowRadius?: number;
|
|
34
|
+
elevation?: number;
|
|
35
|
+
}
|
|
36
|
+
export declare const getCardStyles: ({ borderColor, cornerRadius, borderWidth, showShadow, shadowColor, shadowOffset, shadowOpacity, elevation, borderDirection, theme, }: {
|
|
37
|
+
borderColor: CardBorderColorType;
|
|
38
|
+
cornerRadius: CardSizeType;
|
|
80
39
|
borderWidth: CardBorderWidthType;
|
|
81
40
|
borderDirection: CardBorderDirectionType;
|
|
82
41
|
showShadow: boolean;
|
|
83
|
-
|
|
84
|
-
|
|
42
|
+
shadowColor: string;
|
|
43
|
+
shadowOffset: {
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
};
|
|
47
|
+
shadowOpacity: number;
|
|
48
|
+
elevation: number;
|
|
85
49
|
theme: Theme;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
89
|
-
boxShadow: string;
|
|
90
|
-
} | {
|
|
91
|
-
border: string;
|
|
92
|
-
borderTop?: undefined;
|
|
93
|
-
borderBottom?: undefined;
|
|
94
|
-
borderLeft?: undefined;
|
|
95
|
-
borderRight?: undefined;
|
|
96
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
97
|
-
boxShadow: string;
|
|
98
|
-
} | {
|
|
99
|
-
borderTop: string;
|
|
100
|
-
border?: undefined;
|
|
101
|
-
borderBottom?: undefined;
|
|
102
|
-
borderLeft?: undefined;
|
|
103
|
-
borderRight?: undefined;
|
|
104
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
105
|
-
boxShadow: string;
|
|
106
|
-
} | {
|
|
107
|
-
borderBottom: string;
|
|
108
|
-
border?: undefined;
|
|
109
|
-
borderTop?: undefined;
|
|
110
|
-
borderLeft?: undefined;
|
|
111
|
-
borderRight?: undefined;
|
|
112
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
113
|
-
boxShadow: string;
|
|
114
|
-
} | {
|
|
115
|
-
borderLeft: string;
|
|
116
|
-
border?: undefined;
|
|
117
|
-
borderTop?: undefined;
|
|
118
|
-
borderBottom?: undefined;
|
|
119
|
-
borderRight?: undefined;
|
|
120
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
121
|
-
boxShadow: string;
|
|
122
|
-
} | {
|
|
123
|
-
borderRight: string;
|
|
124
|
-
border?: undefined;
|
|
125
|
-
borderTop?: undefined;
|
|
126
|
-
borderBottom?: undefined;
|
|
127
|
-
borderLeft?: undefined;
|
|
128
|
-
borderRadius: "0px" | "6px" | "8px" | "12px" | "16px";
|
|
129
|
-
boxShadow: string;
|
|
130
|
-
};
|
|
50
|
+
}) => CardStyleReturnType;
|
|
51
|
+
export {};
|
|
131
52
|
//# sourceMappingURL=style.d.ts.map
|
package/dist/style.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../packages/components/Card/src/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../packages/components/Card/src/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAEnD,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGzG,eAAO,MAAM,mBAAmB,GAAI,cAAc,YAAY,EAAE,O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