@ornikar/kitt-universal 11.0.0 → 11.2.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/dist/definitions/ActionCard/ActionCard.d.ts +3 -2
- package/dist/definitions/ActionCard/ActionCard.d.ts.map +1 -1
- package/dist/definitions/ActionCard/ActionCardContentWrapper.d.ts +3 -2
- package/dist/definitions/ActionCard/ActionCardContentWrapper.d.ts.map +1 -1
- package/dist/definitions/ActionCard/types.d.ts +1 -0
- package/dist/definitions/ActionCard/types.d.ts.map +1 -1
- package/dist/definitions/ActionCard/utils/getThemeName.d.ts +4 -0
- package/dist/definitions/ActionCard/utils/getThemeName.d.ts.map +1 -0
- package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts +1 -1
- package/dist/definitions/NavigationModal/NavigationModal.d.ts.map +1 -1
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/forms/InputFeedback/InputFeedback.d.ts.map +1 -1
- package/dist/definitions/forms/styledTextInputMixin.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +3 -1
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +170 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryBlock.d.ts +2 -2
- package/dist/definitions/story-components/StoryBlock.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/actionCard.d.ts +2 -0
- package/dist/definitions/themes/late-ocean/actionCard.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +6 -8
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyEmoji.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyIcon.d.ts.map +1 -1
- package/dist/definitions/typography/typographyColors.d.ts +2 -0
- package/dist/definitions/typography/typographyColors.d.ts.map +1 -0
- package/dist/definitions/typography/utils/getNBThemeColorFromColorProps.d.ts +3 -0
- package/dist/definitions/typography/utils/getNBThemeColorFromColorProps.d.ts.map +1 -0
- package/dist/definitions/typography/utils/getTypographyColorValue.d.ts +5 -0
- package/dist/definitions/typography/utils/getTypographyColorValue.d.ts.map +1 -0
- package/dist/definitions/typography/utils/isTypeHeader.d.ts +3 -0
- package/dist/definitions/typography/utils/isTypeHeader.d.ts.map +1 -0
- package/dist/definitions/typography/utils/isTypographyHeader.d.ts +3 -0
- package/dist/definitions/typography/utils/isTypographyHeader.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +379 -33
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +379 -33
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +379 -33
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +373 -26
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +372 -26
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +365 -18
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +134 -0
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +134 -0
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +134 -0
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +134 -0
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +134 -0
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +134 -0
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext, createContext, forwardRef, cloneElement, useState, useRef, useEffect, useMemo, Children, useReducer, Fragment as Fragment$1 } from 'react';
|
|
2
|
-
import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, Image as Image$1, FlatList as FlatList$1, SectionList as SectionList$1, Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Center as Center$1, useBreakpointValue, Text, Input,
|
|
2
|
+
import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, Image as Image$1, FlatList as FlatList$1, SectionList as SectionList$1, Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Center as Center$1, useBreakpointValue, useSx, Text, Input, NativeBaseProvider, extendTheme } from 'native-base';
|
|
3
3
|
export { useBreakpointValue, useClipboard, useMediaQuery, useSx, useToken } from 'native-base';
|
|
4
4
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -166,6 +166,140 @@ var actionCard = {
|
|
|
166
166
|
translateY: 3
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
+
'primary-border-soft': {
|
|
170
|
+
"default": {
|
|
171
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
172
|
+
borderColor: lateOceanColorPalette.moonPurple,
|
|
173
|
+
borderWidth: 1,
|
|
174
|
+
shadow: {
|
|
175
|
+
color: lateOceanColorPalette.moonPurple,
|
|
176
|
+
offsetX: 0,
|
|
177
|
+
offsetY: 4,
|
|
178
|
+
opacity: 1,
|
|
179
|
+
radius: 0
|
|
180
|
+
},
|
|
181
|
+
translateY: 0
|
|
182
|
+
},
|
|
183
|
+
hovered: {
|
|
184
|
+
backgroundColor: lateOceanColorPalette.black50,
|
|
185
|
+
borderColor: lateOceanColorPalette.moonPurple,
|
|
186
|
+
borderWidth: 1,
|
|
187
|
+
shadow: {
|
|
188
|
+
color: lateOceanColorPalette.moonPurple,
|
|
189
|
+
offsetX: 0,
|
|
190
|
+
offsetY: 4,
|
|
191
|
+
opacity: 1,
|
|
192
|
+
radius: 0
|
|
193
|
+
},
|
|
194
|
+
translateY: 0
|
|
195
|
+
},
|
|
196
|
+
disabled: {
|
|
197
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
198
|
+
borderColor: lateOceanColorPalette.moonPurple,
|
|
199
|
+
borderWidth: 1,
|
|
200
|
+
shadow: {
|
|
201
|
+
color: '',
|
|
202
|
+
offsetX: 0,
|
|
203
|
+
offsetY: 0,
|
|
204
|
+
opacity: 0,
|
|
205
|
+
radius: 0
|
|
206
|
+
},
|
|
207
|
+
translateY: 0
|
|
208
|
+
},
|
|
209
|
+
focused: {
|
|
210
|
+
backgroundColor: lateOceanColorPalette.black50,
|
|
211
|
+
borderColor: lateOceanColorPalette.moonPurple,
|
|
212
|
+
borderWidth: 1,
|
|
213
|
+
shadow: {
|
|
214
|
+
color: lateOceanColorPalette.moonPurple,
|
|
215
|
+
offsetX: 0,
|
|
216
|
+
offsetY: 4,
|
|
217
|
+
opacity: 1,
|
|
218
|
+
radius: 0
|
|
219
|
+
},
|
|
220
|
+
translateY: 0
|
|
221
|
+
},
|
|
222
|
+
pressed: {
|
|
223
|
+
backgroundColor: lateOceanColorPalette.black50,
|
|
224
|
+
borderColor: lateOceanColorPalette.moonPurple,
|
|
225
|
+
borderWidth: 1,
|
|
226
|
+
shadow: {
|
|
227
|
+
color: '',
|
|
228
|
+
offsetX: 0,
|
|
229
|
+
offsetY: 0,
|
|
230
|
+
opacity: 0,
|
|
231
|
+
radius: 0
|
|
232
|
+
},
|
|
233
|
+
translateY: 3
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
'primary-border-hard': {
|
|
237
|
+
"default": {
|
|
238
|
+
backgroundColor: colors.uiBackgroundLight,
|
|
239
|
+
borderColor: lateOceanColorPalette.lateOcean,
|
|
240
|
+
borderWidth: 1,
|
|
241
|
+
shadow: {
|
|
242
|
+
color: lateOceanColorPalette.lateOcean,
|
|
243
|
+
offsetX: 0,
|
|
244
|
+
offsetY: 4,
|
|
245
|
+
opacity: 1,
|
|
246
|
+
radius: 0
|
|
247
|
+
},
|
|
248
|
+
translateY: 0
|
|
249
|
+
},
|
|
250
|
+
hovered: {
|
|
251
|
+
backgroundColor: lateOceanColorPalette.black50,
|
|
252
|
+
borderColor: lateOceanColorPalette.lateOcean,
|
|
253
|
+
borderWidth: 1,
|
|
254
|
+
shadow: {
|
|
255
|
+
color: lateOceanColorPalette.lateOcean,
|
|
256
|
+
offsetX: 0,
|
|
257
|
+
offsetY: 4,
|
|
258
|
+
opacity: 1,
|
|
259
|
+
radius: 0
|
|
260
|
+
},
|
|
261
|
+
translateY: 0
|
|
262
|
+
},
|
|
263
|
+
disabled: {
|
|
264
|
+
backgroundColor: lateOceanColorPalette.white,
|
|
265
|
+
borderColor: lateOceanColorPalette.lateOcean,
|
|
266
|
+
borderWidth: 1,
|
|
267
|
+
shadow: {
|
|
268
|
+
color: '',
|
|
269
|
+
offsetX: 0,
|
|
270
|
+
offsetY: 0,
|
|
271
|
+
opacity: 0,
|
|
272
|
+
radius: 0
|
|
273
|
+
},
|
|
274
|
+
translateY: 0
|
|
275
|
+
},
|
|
276
|
+
focused: {
|
|
277
|
+
backgroundColor: lateOceanColorPalette.black50,
|
|
278
|
+
borderColor: lateOceanColorPalette.lateOcean,
|
|
279
|
+
borderWidth: 1,
|
|
280
|
+
shadow: {
|
|
281
|
+
color: lateOceanColorPalette.lateOcean,
|
|
282
|
+
offsetX: 0,
|
|
283
|
+
offsetY: 4,
|
|
284
|
+
opacity: 1,
|
|
285
|
+
radius: 0
|
|
286
|
+
},
|
|
287
|
+
translateY: 0
|
|
288
|
+
},
|
|
289
|
+
pressed: {
|
|
290
|
+
backgroundColor: lateOceanColorPalette.black50,
|
|
291
|
+
borderColor: lateOceanColorPalette.lateOcean,
|
|
292
|
+
borderWidth: 1,
|
|
293
|
+
shadow: {
|
|
294
|
+
color: '',
|
|
295
|
+
offsetX: 0,
|
|
296
|
+
offsetY: 0,
|
|
297
|
+
opacity: 0,
|
|
298
|
+
radius: 0
|
|
299
|
+
},
|
|
300
|
+
translateY: 3
|
|
301
|
+
}
|
|
302
|
+
},
|
|
169
303
|
secondary: {
|
|
170
304
|
"default": {
|
|
171
305
|
backgroundColor: lateOceanColorPalette.black50,
|
|
@@ -1293,20 +1427,36 @@ var getStateKey = function (isHovered, isPressed, isFocused) {
|
|
|
1293
1427
|
return 'default';
|
|
1294
1428
|
};
|
|
1295
1429
|
|
|
1430
|
+
var getThemeName = function (variant, borderVariant) {
|
|
1431
|
+
if (borderVariant === 'soft') {
|
|
1432
|
+
return 'primary-border-soft';
|
|
1433
|
+
}
|
|
1434
|
+
if (borderVariant === 'hard') {
|
|
1435
|
+
return 'primary-border-hard';
|
|
1436
|
+
}
|
|
1437
|
+
return variant;
|
|
1438
|
+
};
|
|
1439
|
+
|
|
1296
1440
|
function ActionCardContentWrapper(_ref) {
|
|
1297
1441
|
var isHovered = _ref.isHovered,
|
|
1298
1442
|
isPressed = _ref.isPressed,
|
|
1299
1443
|
isFocused = _ref.isFocused,
|
|
1300
1444
|
variant = _ref.variant,
|
|
1445
|
+
_ref$borderVariant = _ref.borderVariant,
|
|
1446
|
+
borderVariant = _ref$borderVariant === void 0 ? 'none' : _ref$borderVariant,
|
|
1301
1447
|
children = _ref.children;
|
|
1302
1448
|
var theme = useTheme();
|
|
1303
1449
|
var state = getStateKey(isHovered, isPressed, isFocused);
|
|
1450
|
+
if ((process.env.NODE_ENV !== "production") && borderVariant !== 'none' && variant !== 'primary') {
|
|
1451
|
+
throw new Error("borderVariant=".concat(borderVariant, " is only allowed with variant=primary"));
|
|
1452
|
+
}
|
|
1304
1453
|
var translateY = theme.kitt.actionCard[variant][state].translateY;
|
|
1305
1454
|
var sharedTransform = translateY ? {
|
|
1306
1455
|
transform: [{
|
|
1307
1456
|
translateY: translateY
|
|
1308
1457
|
}]
|
|
1309
1458
|
} : {};
|
|
1459
|
+
var themeName = getThemeName(variant, borderVariant);
|
|
1310
1460
|
return /*#__PURE__*/jsx(View, {
|
|
1311
1461
|
_ios: {
|
|
1312
1462
|
style: sharedTransform
|
|
@@ -1318,11 +1468,11 @@ function ActionCardContentWrapper(_ref) {
|
|
|
1318
1468
|
style: sharedTransform
|
|
1319
1469
|
},
|
|
1320
1470
|
width: "100%",
|
|
1321
|
-
backgroundColor: "kitt.actionCard.".concat(
|
|
1471
|
+
backgroundColor: "kitt.actionCard.".concat(themeName, ".").concat(state, ".backgroundColor"),
|
|
1322
1472
|
borderRadius: "kitt.actionCard.borderRadius",
|
|
1323
|
-
borderColor: "kitt.actionCard.".concat(
|
|
1324
|
-
borderWidth: "kitt.actionCard.".concat(
|
|
1325
|
-
shadow: "kitt.actionCard.".concat(
|
|
1473
|
+
borderColor: "kitt.actionCard.".concat(themeName, ".").concat(state, ".borderColor"),
|
|
1474
|
+
borderWidth: "kitt.actionCard.".concat(themeName, ".").concat(state, ".borderWidth"),
|
|
1475
|
+
shadow: "kitt.actionCard.".concat(themeName, ".").concat(state, ".shadow"),
|
|
1326
1476
|
children: children
|
|
1327
1477
|
});
|
|
1328
1478
|
}
|
|
@@ -1344,6 +1494,8 @@ function ActionCard(_ref) {
|
|
|
1344
1494
|
var children = _ref.children,
|
|
1345
1495
|
_ref$variant = _ref.variant,
|
|
1346
1496
|
variant = _ref$variant === void 0 ? 'secondary' : _ref$variant,
|
|
1497
|
+
_ref$borderVariant = _ref.borderVariant,
|
|
1498
|
+
borderVariant = _ref$borderVariant === void 0 ? 'none' : _ref$borderVariant,
|
|
1347
1499
|
disabled = _ref.disabled,
|
|
1348
1500
|
testID = _ref.testID,
|
|
1349
1501
|
isHovered = _ref.isHovered,
|
|
@@ -1356,6 +1508,7 @@ function ActionCard(_ref) {
|
|
|
1356
1508
|
children: children
|
|
1357
1509
|
}) : /*#__PURE__*/jsx(ActionCardContentWrapper, {
|
|
1358
1510
|
variant: variant,
|
|
1511
|
+
borderVariant: borderVariant,
|
|
1359
1512
|
isHovered: isHovered,
|
|
1360
1513
|
isFocused: isFocused,
|
|
1361
1514
|
isPressed: isPressed,
|
|
@@ -1367,6 +1520,8 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
1367
1520
|
var _children = _ref2.children,
|
|
1368
1521
|
_ref2$variant = _ref2.variant,
|
|
1369
1522
|
variant = _ref2$variant === void 0 ? 'secondary' : _ref2$variant,
|
|
1523
|
+
_ref2$borderVariant = _ref2.borderVariant,
|
|
1524
|
+
borderVariant = _ref2$borderVariant === void 0 ? 'none' : _ref2$borderVariant,
|
|
1370
1525
|
disabled = _ref2.disabled,
|
|
1371
1526
|
testID = _ref2.testID,
|
|
1372
1527
|
href = _ref2.href,
|
|
@@ -1392,6 +1547,7 @@ var ActionCardPressable = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
1392
1547
|
isFocused = _ref3.isFocused;
|
|
1393
1548
|
return /*#__PURE__*/jsx(ActionCard, {
|
|
1394
1549
|
variant: variant,
|
|
1550
|
+
borderVariant: borderVariant,
|
|
1395
1551
|
disabled: disabled,
|
|
1396
1552
|
isHovered: isHovered || isHoveredInternal,
|
|
1397
1553
|
isFocused: isFocused || isFocusedInternal,
|
|
@@ -1568,6 +1724,34 @@ var KittBreakpointNameEnum;
|
|
|
1568
1724
|
KittBreakpointNameEnum["WIDE"] = "wide";
|
|
1569
1725
|
})(KittBreakpointNameEnum || (KittBreakpointNameEnum = {}));
|
|
1570
1726
|
|
|
1727
|
+
var typographyColors = ['black', 'black-anthracite', 'black-disabled', 'black-light', 'white', 'white-light', 'primary', 'primary-light', 'accent', 'success', 'danger', 'warning'];
|
|
1728
|
+
|
|
1729
|
+
function getNBThemeColorFromColorProps(colorName) {
|
|
1730
|
+
return "kitt.typography.".concat(colorName);
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
function isColorTypographyColor(colorName) {
|
|
1734
|
+
if (!colorName || typeof colorName !== 'string') return false;
|
|
1735
|
+
return typographyColors.includes(colorName);
|
|
1736
|
+
}
|
|
1737
|
+
function getTypographyColorValue(colorName) {
|
|
1738
|
+
if (!colorName) return undefined;
|
|
1739
|
+
if (isColorTypographyColor(colorName)) {
|
|
1740
|
+
return getNBThemeColorFromColorProps(colorName);
|
|
1741
|
+
}
|
|
1742
|
+
return colorName;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
var isTypeHeader = function (type) {
|
|
1746
|
+
return type.startsWith('header');
|
|
1747
|
+
};
|
|
1748
|
+
|
|
1749
|
+
var isTypographyHeader = function (type, isHeaderTypographyInContext) {
|
|
1750
|
+
if (type) return isTypeHeader(type);
|
|
1751
|
+
if (isHeaderTypographyInContext != null) return isHeaderTypographyInContext;
|
|
1752
|
+
throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
|
|
1753
|
+
};
|
|
1754
|
+
|
|
1571
1755
|
var _excluded$D = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
1572
1756
|
var IsHeaderTypographyContext = /*#__PURE__*/createContext(undefined);
|
|
1573
1757
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
@@ -1581,14 +1765,6 @@ function useTypographyDefaultColor() {
|
|
|
1581
1765
|
function getTypographyTypeConfigKeyFromTypeName(breakpointName) {
|
|
1582
1766
|
return breakpointName === 'base' || breakpointName === 'small' ? 'baseAndSmall' : 'mediumAndWide';
|
|
1583
1767
|
}
|
|
1584
|
-
var isTypeHeader = function (type) {
|
|
1585
|
-
return type.startsWith('header');
|
|
1586
|
-
};
|
|
1587
|
-
var isTypographyHeader = function (type, isHeaderTypographyInContext) {
|
|
1588
|
-
if (type) return isTypeHeader(type);
|
|
1589
|
-
if (isHeaderTypographyInContext != null) return isHeaderTypographyInContext;
|
|
1590
|
-
throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
|
|
1591
|
-
};
|
|
1592
1768
|
|
|
1593
1769
|
// TODO[native-base@>=3.4.19] this currently does not work. Retest when updating native-base.
|
|
1594
1770
|
// & {
|
|
@@ -1608,9 +1784,6 @@ function createNativeBaseFontSize(type) {
|
|
|
1608
1784
|
});
|
|
1609
1785
|
return fontSizeForNativeBase;
|
|
1610
1786
|
}
|
|
1611
|
-
function getNBThemeColorFromColorProps(colorName) {
|
|
1612
|
-
return colorName ? "kitt.typography.".concat(colorName) : undefined;
|
|
1613
|
-
}
|
|
1614
1787
|
function Typography(_ref) {
|
|
1615
1788
|
var _type$base;
|
|
1616
1789
|
var accessibilityRole = _ref.accessibilityRole,
|
|
@@ -1630,6 +1803,7 @@ function Typography(_ref) {
|
|
|
1630
1803
|
variant = _ref.variant,
|
|
1631
1804
|
color = _ref.color,
|
|
1632
1805
|
otherProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
1806
|
+
var sx = useSx();
|
|
1633
1807
|
var isHeaderTypographyInContext = useContext(IsHeaderTypographyContext);
|
|
1634
1808
|
var defaultColor = useTypographyDefaultColor();
|
|
1635
1809
|
var hasTypographyAncestor = isHeaderTypographyInContext !== undefined;
|
|
@@ -1639,6 +1813,11 @@ function Typography(_ref) {
|
|
|
1639
1813
|
var fontSizeForNativeBase = createNativeBaseFontSize(_objectSpread(_objectSpread({}, type), {}, {
|
|
1640
1814
|
base: baseOrDefaultToBody
|
|
1641
1815
|
}));
|
|
1816
|
+
var currentColor = !color && !hasTypographyAncestor ? defaultColor : color;
|
|
1817
|
+
var colorStyles = sx({
|
|
1818
|
+
color: getTypographyColorValue(currentColor),
|
|
1819
|
+
textDecorationColor: getTypographyColorValue(currentColor)
|
|
1820
|
+
});
|
|
1642
1821
|
if (process.env.NODE_ENV !== 'production') {
|
|
1643
1822
|
Object.entries(type).forEach(function (_ref2) {
|
|
1644
1823
|
var _ref3 = _slicedToArray(_ref2, 2),
|
|
@@ -1649,16 +1828,13 @@ function Typography(_ref) {
|
|
|
1649
1828
|
}
|
|
1650
1829
|
});
|
|
1651
1830
|
}
|
|
1652
|
-
var
|
|
1653
|
-
var text = /*#__PURE__*/jsx(Text, _objectSpread({
|
|
1831
|
+
var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({
|
|
1654
1832
|
accessibilityRole: accessibilityRole || undefined,
|
|
1655
1833
|
fontSize: fontSizeForNativeBase,
|
|
1656
1834
|
lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
|
|
1657
1835
|
fontWeight: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant),
|
|
1658
|
-
fontFamily: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant)
|
|
1659
|
-
|
|
1660
|
-
textDecorationColor: getNBThemeColorFromColorProps(currentColor)
|
|
1661
|
-
}, otherProps));
|
|
1836
|
+
fontFamily: isHeader ? "headers.".concat(nonNullableVariant) : "bodies.".concat(nonNullableVariant)
|
|
1837
|
+
}, colorStyles), otherProps));
|
|
1662
1838
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(IsHeaderTypographyContext.Provider, {
|
|
1663
1839
|
value: isHeader,
|
|
1664
1840
|
children: text
|
|
@@ -1736,10 +1912,11 @@ var _excluded$C = ["color"],
|
|
|
1736
1912
|
function TypographyIconSpecifiedColor(_ref) {
|
|
1737
1913
|
var color = _ref.color,
|
|
1738
1914
|
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
1739
|
-
var
|
|
1740
|
-
|
|
1741
|
-
color: color
|
|
1742
|
-
})
|
|
1915
|
+
var sx = useSx();
|
|
1916
|
+
var colorStyle = sx({
|
|
1917
|
+
color: getTypographyColorValue(color)
|
|
1918
|
+
});
|
|
1919
|
+
return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), colorStyle));
|
|
1743
1920
|
}
|
|
1744
1921
|
function TypographyIconInheritColor(props) {
|
|
1745
1922
|
var color = useTypographyColor();
|
|
@@ -5675,6 +5852,50 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
5675
5852
|
borderColor: theme.actionCard.primary.pressed.borderColor
|
|
5676
5853
|
}
|
|
5677
5854
|
},
|
|
5855
|
+
'primary-border-soft': {
|
|
5856
|
+
"default": {
|
|
5857
|
+
backgroundColor: theme.actionCard['primary-border-soft']["default"].backgroundColor,
|
|
5858
|
+
borderColor: theme.actionCard['primary-border-soft']["default"].borderColor
|
|
5859
|
+
},
|
|
5860
|
+
disabled: {
|
|
5861
|
+
backgroundColor: theme.actionCard['primary-border-soft'].disabled.backgroundColor,
|
|
5862
|
+
borderColor: theme.actionCard['primary-border-soft'].disabled.borderColor
|
|
5863
|
+
},
|
|
5864
|
+
hovered: {
|
|
5865
|
+
backgroundColor: theme.actionCard['primary-border-soft'].hovered.backgroundColor,
|
|
5866
|
+
borderColor: theme.actionCard['primary-border-soft'].hovered.borderColor
|
|
5867
|
+
},
|
|
5868
|
+
focused: {
|
|
5869
|
+
backgroundColor: theme.actionCard['primary-border-soft'].focused.backgroundColor,
|
|
5870
|
+
borderColor: theme.actionCard['primary-border-soft'].focused.borderColor
|
|
5871
|
+
},
|
|
5872
|
+
pressed: {
|
|
5873
|
+
backgroundColor: theme.actionCard['primary-border-soft'].pressed.backgroundColor,
|
|
5874
|
+
borderColor: theme.actionCard['primary-border-soft'].pressed.borderColor
|
|
5875
|
+
}
|
|
5876
|
+
},
|
|
5877
|
+
'primary-border-hard': {
|
|
5878
|
+
"default": {
|
|
5879
|
+
backgroundColor: theme.actionCard['primary-border-hard']["default"].backgroundColor,
|
|
5880
|
+
borderColor: theme.actionCard['primary-border-hard']["default"].borderColor
|
|
5881
|
+
},
|
|
5882
|
+
disabled: {
|
|
5883
|
+
backgroundColor: theme.actionCard['primary-border-hard'].disabled.backgroundColor,
|
|
5884
|
+
borderColor: theme.actionCard['primary-border-hard'].disabled.borderColor
|
|
5885
|
+
},
|
|
5886
|
+
hovered: {
|
|
5887
|
+
backgroundColor: theme.actionCard['primary-border-hard'].hovered.backgroundColor,
|
|
5888
|
+
borderColor: theme.actionCard['primary-border-hard'].hovered.borderColor
|
|
5889
|
+
},
|
|
5890
|
+
focused: {
|
|
5891
|
+
backgroundColor: theme.actionCard['primary-border-hard'].focused.backgroundColor,
|
|
5892
|
+
borderColor: theme.actionCard['primary-border-hard'].focused.borderColor
|
|
5893
|
+
},
|
|
5894
|
+
pressed: {
|
|
5895
|
+
backgroundColor: theme.actionCard['primary-border-hard'].pressed.backgroundColor,
|
|
5896
|
+
borderColor: theme.actionCard['primary-border-hard'].pressed.borderColor
|
|
5897
|
+
}
|
|
5898
|
+
},
|
|
5678
5899
|
highlight: {
|
|
5679
5900
|
"default": {
|
|
5680
5901
|
backgroundColor: theme.actionCard.highlight["default"].backgroundColor,
|
|
@@ -5954,6 +6175,40 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
5954
6175
|
borderWidth: theme.actionCard.primary.pressed.borderWidth
|
|
5955
6176
|
}
|
|
5956
6177
|
},
|
|
6178
|
+
'primary-border-soft': {
|
|
6179
|
+
"default": {
|
|
6180
|
+
borderWidth: theme.actionCard['primary-border-soft']["default"].borderWidth
|
|
6181
|
+
},
|
|
6182
|
+
disabled: {
|
|
6183
|
+
borderWidth: theme.actionCard['primary-border-soft'].disabled.borderWidth
|
|
6184
|
+
},
|
|
6185
|
+
hovered: {
|
|
6186
|
+
borderWidth: theme.actionCard['primary-border-soft'].hovered.borderWidth
|
|
6187
|
+
},
|
|
6188
|
+
focused: {
|
|
6189
|
+
borderWidth: theme.actionCard['primary-border-soft'].focused.borderWidth
|
|
6190
|
+
},
|
|
6191
|
+
pressed: {
|
|
6192
|
+
borderWidth: theme.actionCard['primary-border-soft'].pressed.borderWidth
|
|
6193
|
+
}
|
|
6194
|
+
},
|
|
6195
|
+
'primary-border-hard': {
|
|
6196
|
+
"default": {
|
|
6197
|
+
borderWidth: theme.actionCard['primary-border-hard']["default"].borderWidth
|
|
6198
|
+
},
|
|
6199
|
+
disabled: {
|
|
6200
|
+
borderWidth: theme.actionCard['primary-border-hard'].disabled.borderWidth
|
|
6201
|
+
},
|
|
6202
|
+
hovered: {
|
|
6203
|
+
borderWidth: theme.actionCard['primary-border-hard'].hovered.borderWidth
|
|
6204
|
+
},
|
|
6205
|
+
focused: {
|
|
6206
|
+
borderWidth: theme.actionCard['primary-border-hard'].focused.borderWidth
|
|
6207
|
+
},
|
|
6208
|
+
pressed: {
|
|
6209
|
+
borderWidth: theme.actionCard['primary-border-hard'].pressed.borderWidth
|
|
6210
|
+
}
|
|
6211
|
+
},
|
|
5957
6212
|
highlight: {
|
|
5958
6213
|
"default": {
|
|
5959
6214
|
borderWidth: theme.actionCard.highlight["default"].borderWidth
|
|
@@ -6410,6 +6665,98 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
6410
6665
|
}
|
|
6411
6666
|
}
|
|
6412
6667
|
},
|
|
6668
|
+
'primary-border-soft': {
|
|
6669
|
+
"default": {
|
|
6670
|
+
shadow: {
|
|
6671
|
+
shadowColor: theme.actionCard['primary-border-soft']["default"].shadow.color,
|
|
6672
|
+
shadowOffset: {
|
|
6673
|
+
width: theme.actionCard['primary-border-soft']["default"].shadow.offsetX,
|
|
6674
|
+
height: theme.actionCard['primary-border-soft']["default"].shadow.offsetY
|
|
6675
|
+
},
|
|
6676
|
+
shadowOpacity: theme.actionCard['primary-border-soft']["default"].shadow.opacity,
|
|
6677
|
+
shadowRadius: theme.actionCard['primary-border-soft']["default"].shadow.radius
|
|
6678
|
+
}
|
|
6679
|
+
},
|
|
6680
|
+
hovered: {
|
|
6681
|
+
shadow: {
|
|
6682
|
+
shadowColor: theme.actionCard['primary-border-soft'].hovered.shadow.color,
|
|
6683
|
+
shadowOffset: {
|
|
6684
|
+
width: theme.actionCard['primary-border-soft'].hovered.shadow.offsetX,
|
|
6685
|
+
height: theme.actionCard['primary-border-soft'].hovered.shadow.offsetY
|
|
6686
|
+
},
|
|
6687
|
+
shadowOpacity: theme.actionCard['primary-border-soft'].hovered.shadow.opacity,
|
|
6688
|
+
shadowRadius: theme.actionCard['primary-border-soft'].hovered.shadow.radius
|
|
6689
|
+
}
|
|
6690
|
+
},
|
|
6691
|
+
focused: {
|
|
6692
|
+
shadow: {
|
|
6693
|
+
shadowColor: theme.actionCard['primary-border-soft'].focused.shadow.color,
|
|
6694
|
+
shadowOffset: {
|
|
6695
|
+
width: theme.actionCard['primary-border-soft'].focused.shadow.offsetX,
|
|
6696
|
+
height: theme.actionCard['primary-border-soft'].focused.shadow.offsetY
|
|
6697
|
+
},
|
|
6698
|
+
shadowOpacity: theme.actionCard['primary-border-soft'].focused.shadow.opacity,
|
|
6699
|
+
shadowRadius: theme.actionCard['primary-border-soft'].focused.shadow.radius
|
|
6700
|
+
}
|
|
6701
|
+
},
|
|
6702
|
+
pressed: {
|
|
6703
|
+
shadow: {
|
|
6704
|
+
shadowColor: theme.actionCard['primary-border-soft'].pressed.shadow.color,
|
|
6705
|
+
shadowOffset: {
|
|
6706
|
+
width: theme.actionCard['primary-border-soft'].pressed.shadow.offsetX,
|
|
6707
|
+
height: theme.actionCard['primary-border-soft'].pressed.shadow.offsetY
|
|
6708
|
+
},
|
|
6709
|
+
shadowOpacity: theme.actionCard['primary-border-soft'].pressed.shadow.opacity,
|
|
6710
|
+
shadowRadius: theme.actionCard['primary-border-soft'].pressed.shadow.radius
|
|
6711
|
+
}
|
|
6712
|
+
}
|
|
6713
|
+
},
|
|
6714
|
+
'primary-border-hard': {
|
|
6715
|
+
"default": {
|
|
6716
|
+
shadow: {
|
|
6717
|
+
shadowColor: theme.actionCard['primary-border-hard']["default"].shadow.color,
|
|
6718
|
+
shadowOffset: {
|
|
6719
|
+
width: theme.actionCard['primary-border-hard']["default"].shadow.offsetX,
|
|
6720
|
+
height: theme.actionCard['primary-border-hard']["default"].shadow.offsetY
|
|
6721
|
+
},
|
|
6722
|
+
shadowOpacity: theme.actionCard['primary-border-hard']["default"].shadow.opacity,
|
|
6723
|
+
shadowRadius: theme.actionCard['primary-border-hard']["default"].shadow.radius
|
|
6724
|
+
}
|
|
6725
|
+
},
|
|
6726
|
+
hovered: {
|
|
6727
|
+
shadow: {
|
|
6728
|
+
shadowColor: theme.actionCard['primary-border-hard'].hovered.shadow.color,
|
|
6729
|
+
shadowOffset: {
|
|
6730
|
+
width: theme.actionCard['primary-border-hard'].hovered.shadow.offsetX,
|
|
6731
|
+
height: theme.actionCard['primary-border-hard'].hovered.shadow.offsetY
|
|
6732
|
+
},
|
|
6733
|
+
shadowOpacity: theme.actionCard['primary-border-hard'].hovered.shadow.opacity,
|
|
6734
|
+
shadowRadius: theme.actionCard['primary-border-hard'].hovered.shadow.radius
|
|
6735
|
+
}
|
|
6736
|
+
},
|
|
6737
|
+
focused: {
|
|
6738
|
+
shadow: {
|
|
6739
|
+
shadowColor: theme.actionCard['primary-border-hard'].focused.shadow.color,
|
|
6740
|
+
shadowOffset: {
|
|
6741
|
+
width: theme.actionCard['primary-border-hard'].focused.shadow.offsetX,
|
|
6742
|
+
height: theme.actionCard['primary-border-hard'].focused.shadow.offsetY
|
|
6743
|
+
},
|
|
6744
|
+
shadowOpacity: theme.actionCard['primary-border-hard'].focused.shadow.opacity,
|
|
6745
|
+
shadowRadius: theme.actionCard['primary-border-hard'].focused.shadow.radius
|
|
6746
|
+
}
|
|
6747
|
+
},
|
|
6748
|
+
pressed: {
|
|
6749
|
+
shadow: {
|
|
6750
|
+
shadowColor: theme.actionCard['primary-border-hard'].pressed.shadow.color,
|
|
6751
|
+
shadowOffset: {
|
|
6752
|
+
width: theme.actionCard['primary-border-hard'].pressed.shadow.offsetX,
|
|
6753
|
+
height: theme.actionCard['primary-border-hard'].pressed.shadow.offsetY
|
|
6754
|
+
},
|
|
6755
|
+
shadowOpacity: theme.actionCard['primary-border-hard'].pressed.shadow.opacity,
|
|
6756
|
+
shadowRadius: theme.actionCard['primary-border-hard'].pressed.shadow.radius
|
|
6757
|
+
}
|
|
6758
|
+
}
|
|
6759
|
+
},
|
|
6413
6760
|
highlight: {
|
|
6414
6761
|
"default": {
|
|
6415
6762
|
shadow: {
|