@ornikar/kitt-universal 32.5.1-canary.fa4369620bc01acac1d789322911d6bc321a3a45.0 → 32.5.2
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/CHANGELOG.md +8 -11
- package/dist/definitions/Button/AnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/Button/AnimatedContainer.web.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.d.ts.map +1 -1
- package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts +3 -2
- package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +3 -9
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +0 -5
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/button.d.ts +0 -3
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +0 -5
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +1 -1
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +33 -39
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +33 -39
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +33 -39
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +22 -4
- package/dist/index-node-22.17.cjs.web.js +57 -63
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +33 -39
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +22 -4
- package/dist/index-node-22.17.es.web.mjs +57 -63
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +39 -42
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +63 -66
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +10 -19
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +10 -19
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +10 -19
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +10 -19
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +10 -19
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +10 -19
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +10 -19
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +10 -19
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +22 -4
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -45,10 +45,28 @@
|
|
|
45
45
|
transition: transform var(--content-duration) var(--content-easing);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
.Picker-module_picker-enter__Dzs-s {
|
|
49
|
+
transform: translateY(8px);
|
|
50
|
+
opacity: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.Picker-module_picker-enter-active__0hxR5 {
|
|
54
|
+
transform: translateY(0);
|
|
55
|
+
opacity: 1;
|
|
56
|
+
transition: all 300ms ease-in-out;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.Picker-module_picker-exit__Z1BjM {
|
|
60
|
+
transform: translateY(0);
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.Picker-module_picker-exit-active__x2C8Q {
|
|
65
|
+
transform: translateY(8px);
|
|
66
|
+
opacity: 0;
|
|
67
|
+
transition: all 300ms ease-in-out;
|
|
68
|
+
}
|
|
69
|
+
|
|
52
70
|
/* overrides :global(a) in Link styles.module.css */
|
|
53
71
|
.TypographyLinkWebWrapper-module_displayUnderline__KxwMp > * {
|
|
54
72
|
text-decoration: underline;
|
|
@@ -680,10 +680,6 @@ const button = {
|
|
|
680
680
|
default: 40,
|
|
681
681
|
medium: 48
|
|
682
682
|
},
|
|
683
|
-
minHeight: {
|
|
684
|
-
default: 40,
|
|
685
|
-
medium: 48
|
|
686
|
-
},
|
|
687
683
|
maxHeight: 48,
|
|
688
684
|
icon: {
|
|
689
685
|
medium: {
|
|
@@ -2138,8 +2134,8 @@ const typography = {
|
|
|
2138
2134
|
allowedFontWeights: ['semibold']
|
|
2139
2135
|
},
|
|
2140
2136
|
'heading-l': {
|
|
2141
|
-
fontSize:
|
|
2142
|
-
lineHeight:
|
|
2137
|
+
fontSize: 40,
|
|
2138
|
+
lineHeight: 48,
|
|
2143
2139
|
allowedFontWeights: ['semibold']
|
|
2144
2140
|
},
|
|
2145
2141
|
'heading-m': {
|
|
@@ -2148,19 +2144,14 @@ const typography = {
|
|
|
2148
2144
|
allowedFontWeights: ['semibold']
|
|
2149
2145
|
},
|
|
2150
2146
|
'heading-s': {
|
|
2151
|
-
fontSize:
|
|
2152
|
-
lineHeight:
|
|
2153
|
-
allowedFontWeights: ['
|
|
2147
|
+
fontSize: 18,
|
|
2148
|
+
lineHeight: 20,
|
|
2149
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2154
2150
|
},
|
|
2155
2151
|
'heading-xs': {
|
|
2156
|
-
fontSize: 20,
|
|
2157
|
-
lineHeight: 24,
|
|
2158
|
-
allowedFontWeights: ['semibold']
|
|
2159
|
-
},
|
|
2160
|
-
'heading-xxs': {
|
|
2161
2152
|
fontSize: 16,
|
|
2162
|
-
lineHeight:
|
|
2163
|
-
allowedFontWeights: ['
|
|
2153
|
+
lineHeight: 18,
|
|
2154
|
+
allowedFontWeights: ['regular', 'bold']
|
|
2164
2155
|
}
|
|
2165
2156
|
}
|
|
2166
2157
|
},
|
|
@@ -2227,17 +2218,17 @@ const typography = {
|
|
|
2227
2218
|
configs: {
|
|
2228
2219
|
'label-large': {
|
|
2229
2220
|
fontSize: 16,
|
|
2230
|
-
lineHeight:
|
|
2221
|
+
lineHeight: 24,
|
|
2231
2222
|
allowedFontWeights: ['semibold']
|
|
2232
2223
|
},
|
|
2233
2224
|
'label-medium': {
|
|
2234
2225
|
fontSize: 14,
|
|
2235
|
-
lineHeight:
|
|
2226
|
+
lineHeight: 20,
|
|
2236
2227
|
allowedFontWeights: ['semibold']
|
|
2237
2228
|
},
|
|
2238
2229
|
'label-small': {
|
|
2239
2230
|
fontSize: 12,
|
|
2240
|
-
lineHeight:
|
|
2231
|
+
lineHeight: 16,
|
|
2241
2232
|
allowedFontWeights: ['semibold']
|
|
2242
2233
|
}
|
|
2243
2234
|
}
|
|
@@ -3155,9 +3146,7 @@ function AnimatedContainer$2({
|
|
|
3155
3146
|
},
|
|
3156
3147
|
width: width,
|
|
3157
3148
|
height: height,
|
|
3158
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3159
3149
|
alignSelf: "baseline",
|
|
3160
|
-
justifyContent: "center",
|
|
3161
3150
|
borderRadius: "kitt.button.borderRadius",
|
|
3162
3151
|
backgroundColor: currentBackgroundColor,
|
|
3163
3152
|
children: children
|
|
@@ -3853,7 +3842,6 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
3853
3842
|
alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
|
|
3854
3843
|
minWidth: "kitt.button.minWidth",
|
|
3855
3844
|
maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
|
|
3856
|
-
minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
|
|
3857
3845
|
maxHeight: "kitt.button.maxHeight",
|
|
3858
3846
|
width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
|
|
3859
3847
|
onPress: onPress,
|
|
@@ -6326,10 +6314,11 @@ const DatePicker = /*#__PURE__*/react.forwardRef(({
|
|
|
6326
6314
|
});
|
|
6327
6315
|
|
|
6328
6316
|
function DocumentPicker({
|
|
6329
|
-
onDocumentUpload,
|
|
6330
6317
|
children,
|
|
6331
6318
|
disabled,
|
|
6332
|
-
documentPickerOptions
|
|
6319
|
+
documentPickerOptions,
|
|
6320
|
+
onDocumentUpload,
|
|
6321
|
+
onGetDocumentAsyncError
|
|
6333
6322
|
}) {
|
|
6334
6323
|
const childElement = react.Children.only(children);
|
|
6335
6324
|
return /*#__PURE__*/react.cloneElement(childElement, {
|
|
@@ -6338,12 +6327,22 @@ function DocumentPicker({
|
|
|
6338
6327
|
onPress: async () => {
|
|
6339
6328
|
if (disabled) return;
|
|
6340
6329
|
childElement.props.onPress?.();
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6330
|
+
let result;
|
|
6331
|
+
try {
|
|
6332
|
+
result = await expoDocumentPicker.getDocumentAsync({
|
|
6333
|
+
...documentPickerOptions,
|
|
6334
|
+
multiple: false
|
|
6335
|
+
});
|
|
6336
|
+
} catch (error) {
|
|
6337
|
+
onGetDocumentAsyncError?.();
|
|
6338
|
+
result = {
|
|
6339
|
+
canceled: true,
|
|
6340
|
+
assets: null
|
|
6341
|
+
};
|
|
6342
|
+
}
|
|
6343
|
+
const file = result.assets?.at(0)?.file;
|
|
6344
|
+
if (!result.canceled && file) {
|
|
6345
|
+
onDocumentUpload(file);
|
|
6347
6346
|
}
|
|
6348
6347
|
},
|
|
6349
6348
|
disabled
|
|
@@ -7783,23 +7782,23 @@ function FullscreenModalFooter({
|
|
|
7783
7782
|
});
|
|
7784
7783
|
}
|
|
7785
7784
|
|
|
7786
|
-
const styles$
|
|
7785
|
+
const styles$2 = {"overlay-enter":"FullscreenModalAnimation-module_overlay-enter__L1J1X","overlay-enter-active":"FullscreenModalAnimation-module_overlay-enter-active__gDEVb","overlay-exit":"FullscreenModalAnimation-module_overlay-exit__Qx1WE","overlay-exit-active":"FullscreenModalAnimation-module_overlay-exit-active__lFR3x","content-enter":"FullscreenModalAnimation-module_content-enter__JmCWa","content-enter-active":"FullscreenModalAnimation-module_content-enter-active__iaNRs","content-exit":"FullscreenModalAnimation-module_content-exit__hB0wY","content-exit-active":"FullscreenModalAnimation-module_content-exit-active__BPVPo"};
|
|
7787
7786
|
|
|
7788
7787
|
const overlayClassNames = {
|
|
7789
|
-
appear: styles$
|
|
7790
|
-
appearActive: styles$
|
|
7791
|
-
enter: styles$
|
|
7792
|
-
enterActive: styles$
|
|
7793
|
-
exit: styles$
|
|
7794
|
-
exitActive: styles$
|
|
7788
|
+
appear: styles$2['overlay-enter'],
|
|
7789
|
+
appearActive: styles$2['overlay-enter-active'],
|
|
7790
|
+
enter: styles$2['overlay-enter'],
|
|
7791
|
+
enterActive: styles$2['overlay-enter-active'],
|
|
7792
|
+
exit: styles$2['overlay-exit'],
|
|
7793
|
+
exitActive: styles$2['overlay-exit-active']
|
|
7795
7794
|
};
|
|
7796
7795
|
const slideInClassNames = {
|
|
7797
|
-
appear: styles$
|
|
7798
|
-
appearActive: styles$
|
|
7799
|
-
enter: styles$
|
|
7800
|
-
enterActive: styles$
|
|
7801
|
-
exit: styles$
|
|
7802
|
-
exitActive: styles$
|
|
7796
|
+
appear: styles$2['content-enter'],
|
|
7797
|
+
appearActive: styles$2['content-enter-active'],
|
|
7798
|
+
enter: styles$2['content-enter'],
|
|
7799
|
+
enterActive: styles$2['content-enter-active'],
|
|
7800
|
+
exit: styles$2['content-exit'],
|
|
7801
|
+
exitActive: styles$2['content-exit-active']
|
|
7803
7802
|
};
|
|
7804
7803
|
function FullscreenModalAnimation({
|
|
7805
7804
|
children,
|
|
@@ -9970,10 +9969,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9970
9969
|
button: {
|
|
9971
9970
|
minWidth: theme.button.minWidth,
|
|
9972
9971
|
maxWidth: theme.button.maxWidth,
|
|
9973
|
-
minHeight: {
|
|
9974
|
-
default: theme.button.minHeight.default,
|
|
9975
|
-
medium: theme.button.minHeight.medium
|
|
9976
|
-
},
|
|
9977
9972
|
maxHeight: theme.button.maxHeight,
|
|
9978
9973
|
height: {
|
|
9979
9974
|
default: theme.button.height.default,
|
|
@@ -10595,7 +10590,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10595
10590
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
|
|
10596
10591
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
|
|
10597
10592
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
|
|
10598
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
|
|
10599
10593
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
|
|
10600
10594
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
|
|
10601
10595
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
|
|
@@ -10619,7 +10613,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10619
10613
|
'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
|
|
10620
10614
|
'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
|
|
10621
10615
|
'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
|
|
10622
|
-
'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
|
|
10623
10616
|
'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
|
|
10624
10617
|
'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
|
|
10625
10618
|
'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
|
|
@@ -11574,6 +11567,8 @@ function PageLoader() {
|
|
|
11574
11567
|
});
|
|
11575
11568
|
}
|
|
11576
11569
|
|
|
11570
|
+
const styles$1 = {"picker-enter":"Picker-module_picker-enter__Dzs-s","picker-enter-active":"Picker-module_picker-enter-active__0hxR5","picker-exit":"Picker-module_picker-exit__Z1BjM","picker-exit-active":"Picker-module_picker-exit-active__x2C8Q"};
|
|
11571
|
+
|
|
11577
11572
|
function getBackgroundColor({
|
|
11578
11573
|
isSelected,
|
|
11579
11574
|
isHighlighted,
|
|
@@ -11658,10 +11653,12 @@ function webUseSelectReducer(state, actionAndChanges, options) {
|
|
|
11658
11653
|
}
|
|
11659
11654
|
}
|
|
11660
11655
|
|
|
11661
|
-
const
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11656
|
+
const pickerClassNames = {
|
|
11657
|
+
enter: styles$1['picker-enter'],
|
|
11658
|
+
enterActive: styles$1['picker-enter-active'],
|
|
11659
|
+
exit: styles$1['picker-exit'],
|
|
11660
|
+
exitActive: styles$1['picker-exit-active']
|
|
11661
|
+
};
|
|
11665
11662
|
function Picker({
|
|
11666
11663
|
children,
|
|
11667
11664
|
renderTrigger,
|
|
@@ -11796,18 +11793,15 @@ function Picker({
|
|
|
11796
11793
|
nodeRef: nodeRef,
|
|
11797
11794
|
timeout: 300,
|
|
11798
11795
|
in: isOpen,
|
|
11799
|
-
classNames:
|
|
11800
|
-
enter,
|
|
11801
|
-
enterActive,
|
|
11802
|
-
exit,
|
|
11803
|
-
exitActive
|
|
11804
|
-
},
|
|
11796
|
+
classNames: pickerClassNames,
|
|
11805
11797
|
children: /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
11806
11798
|
ref: nodeRef,
|
|
11807
11799
|
paddingY: "kitt.2",
|
|
11808
11800
|
children: childrenArray.map((child, index) => {
|
|
11809
11801
|
const currentValue = items[index];
|
|
11810
|
-
if (currentValue === undefined)
|
|
11802
|
+
if (currentValue === undefined) {
|
|
11803
|
+
throw new Error(`Picker: No value found for item at index ${index}`);
|
|
11804
|
+
}
|
|
11811
11805
|
const {
|
|
11812
11806
|
onClick,
|
|
11813
11807
|
'aria-selected': ariaSelected,
|
|
@@ -12447,7 +12441,7 @@ function StoryTitleLevel4({
|
|
|
12447
12441
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
12448
12442
|
marginBottom: 10,
|
|
12449
12443
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
|
|
12450
|
-
base: "
|
|
12444
|
+
base: "heading-s",
|
|
12451
12445
|
color: useStoryBlockColor(color),
|
|
12452
12446
|
numberOfLines: numberOfLines,
|
|
12453
12447
|
children: children
|
|
@@ -12996,7 +12990,7 @@ function ToastContent({
|
|
|
12996
12990
|
flexGrow: 1,
|
|
12997
12991
|
flexShrink: 1,
|
|
12998
12992
|
children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
12999
|
-
base: "
|
|
12993
|
+
base: "heading-xs",
|
|
13000
12994
|
color: "white",
|
|
13001
12995
|
children: title
|
|
13002
12996
|
}) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
@@ -13012,7 +13006,7 @@ function ToastContent({
|
|
|
13012
13006
|
borderColor: "white",
|
|
13013
13007
|
onPress: onPress,
|
|
13014
13008
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13015
|
-
base: "
|
|
13009
|
+
base: "heading-xs",
|
|
13016
13010
|
color: "white",
|
|
13017
13011
|
children: actionLabel
|
|
13018
13012
|
})
|