@ornikar/kitt-universal 27.5.1-canary.eac3fc19869888632e3a59913cf9f700a72b0dad.0 → 27.6.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/CHANGELOG.md +6 -4
- package/dist/definitions/TabBar/TabBar.d.ts +6 -4
- package/dist/definitions/TabBar/TabBar.d.ts.map +1 -1
- package/dist/definitions/TabBar/TabBarItem.d.ts +11 -1
- package/dist/definitions/TabBar/TabBarItem.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +180 -12
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +1 -12
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/icon.d.ts +0 -20
- package/dist/definitions/themes/late-ocean/icon.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/tabBar.d.ts +34 -0
- package/dist/definitions/themes/late-ocean/tabBar.d.ts.map +1 -0
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyIcon.d.ts.map +1 -1
- package/dist/definitions/typography/utils/getTypographyFamily.d.ts +2 -1
- package/dist/definitions/typography/utils/getTypographyFamily.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +565 -250
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +565 -250
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +456 -140
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +457 -141
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +456 -140
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +457 -141
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +567 -242
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +566 -241
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +179 -36
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +179 -36
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +179 -36
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +179 -36
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +179 -36
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +179 -36
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +179 -36
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +179 -36
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
- package/scripts/codemods/card-modal.js +155 -0
- package/scripts/codemods/fullscreen-modal.js +155 -0
- package/scripts/codemods/navigation-modal.js +155 -0
- package/scripts/{run-transformers.js → run-codemods.js} +30 -32
- package/scripts/transformers/card-modal.js +0 -101
- package/scripts/transformers/fullscreen-modal.js +0 -101
- package/scripts/transformers/navigation-modal.js +0 -101
- /package/scripts/{transformers → codemods}/__testfixtures__/card-modal/basic.input.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/card-modal/basic.output.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/card-modal/withExpressions.input.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/card-modal/withExpressions.output.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/card-modal/wrongOrder.input.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/card-modal/wrongOrder.output.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/fullscreen-modal/basic.input.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/fullscreen-modal/basic.output.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/fullscreen-modal/withExpressions.input.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/fullscreen-modal/withExpressions.output.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/fullscreen-modal/wrongOrder.input.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/fullscreen-modal/wrongOrder.output.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/navigation-modal/basic.input.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/navigation-modal/basic.output.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/navigation-modal/withExpressions.input.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/navigation-modal/withExpressions.output.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/navigation-modal/wrongOrder.input.js +0 -0
- /package/scripts/{transformers → codemods}/__testfixtures__/navigation-modal/wrongOrder.output.js +0 -0
- /package/scripts/{transformers → codemods}/__tests__/card-modal.test.js +0 -0
- /package/scripts/{transformers → codemods}/__tests__/fullscreen-modal.test.js +0 -0
- /package/scripts/{transformers → codemods}/__tests__/navigation-modal.test.js +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1908,43 +1908,8 @@ var highlight = {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
};
|
|
1910
1910
|
|
|
1911
|
-
var getIconSizeFromFontSize = function (fontSize) {
|
|
1912
|
-
if (fontSize <= 14) return 16;
|
|
1913
|
-
if (fontSize <= 16) return 20;
|
|
1914
|
-
return 24;
|
|
1915
|
-
};
|
|
1916
|
-
var createTypographyIconSizeConfig = function (baseAndSmallFontSize, mediumAndWideFontSize) {
|
|
1917
|
-
var baseAndSmallIconSize = getIconSizeFromFontSize(baseAndSmallFontSize);
|
|
1918
|
-
var mediumAndWideIconSize = getIconSizeFromFontSize(mediumAndWideFontSize);
|
|
1919
|
-
return {
|
|
1920
|
-
baseAndSmall: {
|
|
1921
|
-
iconSize: baseAndSmallIconSize
|
|
1922
|
-
},
|
|
1923
|
-
mediumAndWide: {
|
|
1924
|
-
iconSize: mediumAndWideIconSize
|
|
1925
|
-
}
|
|
1926
|
-
};
|
|
1927
|
-
};
|
|
1928
1911
|
var icon = {
|
|
1929
|
-
defaultSize: 20
|
|
1930
|
-
// Note: this is based on typography updated sizes, not current https://github.com/ornikar/kitt/pull/2130
|
|
1931
|
-
typographySize: {
|
|
1932
|
-
// also known as xxlarge
|
|
1933
|
-
header1: createTypographyIconSizeConfig(40, 56),
|
|
1934
|
-
// also known as xlarge
|
|
1935
|
-
header2: createTypographyIconSizeConfig(32, 48),
|
|
1936
|
-
// also known as medium
|
|
1937
|
-
header3: createTypographyIconSizeConfig(24, 40),
|
|
1938
|
-
// also known as xsmall
|
|
1939
|
-
header4: createTypographyIconSizeConfig(18, 24),
|
|
1940
|
-
// also known as xxsmall
|
|
1941
|
-
header5: createTypographyIconSizeConfig(18, 18),
|
|
1942
|
-
'body-large': createTypographyIconSizeConfig(18, 24),
|
|
1943
|
-
'body-medium': createTypographyIconSizeConfig(18, 18),
|
|
1944
|
-
body: createTypographyIconSizeConfig(16, 16),
|
|
1945
|
-
'body-small': createTypographyIconSizeConfig(14, 14),
|
|
1946
|
-
'body-xsmall': createTypographyIconSizeConfig(12, 12)
|
|
1947
|
-
}
|
|
1912
|
+
defaultSize: 20
|
|
1948
1913
|
};
|
|
1949
1914
|
|
|
1950
1915
|
var iconButton = {
|
|
@@ -2371,6 +2336,183 @@ var skeleton = {
|
|
|
2371
2336
|
}
|
|
2372
2337
|
};
|
|
2373
2338
|
|
|
2339
|
+
var tabBar = {
|
|
2340
|
+
underline: {
|
|
2341
|
+
"default": {
|
|
2342
|
+
active: {
|
|
2343
|
+
color: {
|
|
2344
|
+
"default": deepPurpleColorPalette['deepPurple.8'],
|
|
2345
|
+
focused: deepPurpleColorPalette['deepPurple.8'],
|
|
2346
|
+
hovered: deepPurpleColorPalette['deepPurple.8'],
|
|
2347
|
+
pressed: deepPurpleColorPalette['deepPurple.8']
|
|
2348
|
+
},
|
|
2349
|
+
indicator: {
|
|
2350
|
+
backgroundColor: deepPurpleColorPalette['deepPurple.8']
|
|
2351
|
+
}
|
|
2352
|
+
},
|
|
2353
|
+
inactive: {
|
|
2354
|
+
color: {
|
|
2355
|
+
"default": deepPurpleColorPalette['grey.5'],
|
|
2356
|
+
focused: deepPurpleColorPalette['grey.5'],
|
|
2357
|
+
hovered: deepPurpleColorPalette['deepPurple.8'],
|
|
2358
|
+
pressed: deepPurpleColorPalette['deepPurple.8']
|
|
2359
|
+
},
|
|
2360
|
+
indicator: {
|
|
2361
|
+
backgroundColor: undefined
|
|
2362
|
+
}
|
|
2363
|
+
},
|
|
2364
|
+
disabled: {
|
|
2365
|
+
color: {
|
|
2366
|
+
"default": deepPurpleColorPalette['grey.3'],
|
|
2367
|
+
focused: deepPurpleColorPalette['grey.3'],
|
|
2368
|
+
hovered: deepPurpleColorPalette['grey.3'],
|
|
2369
|
+
pressed: deepPurpleColorPalette['grey.3']
|
|
2370
|
+
},
|
|
2371
|
+
indicator: {
|
|
2372
|
+
backgroundColor: undefined
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
borderBottomColor: deepPurpleColorPalette['beige.3']
|
|
2376
|
+
},
|
|
2377
|
+
revert: {
|
|
2378
|
+
active: {
|
|
2379
|
+
color: {
|
|
2380
|
+
"default": deepPurpleColorPalette['grey.0'],
|
|
2381
|
+
focused: deepPurpleColorPalette['grey.0'],
|
|
2382
|
+
hovered: deepPurpleColorPalette['grey.0'],
|
|
2383
|
+
pressed: deepPurpleColorPalette['grey.0']
|
|
2384
|
+
},
|
|
2385
|
+
indicator: {
|
|
2386
|
+
backgroundColor: deepPurpleColorPalette['grey.0']
|
|
2387
|
+
}
|
|
2388
|
+
},
|
|
2389
|
+
inactive: {
|
|
2390
|
+
color: {
|
|
2391
|
+
"default": deepPurpleColorPalette['white-alpha.80'],
|
|
2392
|
+
focused: deepPurpleColorPalette['white-alpha.80'],
|
|
2393
|
+
hovered: deepPurpleColorPalette['grey.0'],
|
|
2394
|
+
pressed: deepPurpleColorPalette['grey.0']
|
|
2395
|
+
},
|
|
2396
|
+
indicator: {
|
|
2397
|
+
backgroundColor: undefined
|
|
2398
|
+
}
|
|
2399
|
+
},
|
|
2400
|
+
disabled: {
|
|
2401
|
+
color: {
|
|
2402
|
+
"default": deepPurpleColorPalette['white-alpha.20'],
|
|
2403
|
+
focused: deepPurpleColorPalette['white-alpha.20'],
|
|
2404
|
+
hovered: deepPurpleColorPalette['white-alpha.20'],
|
|
2405
|
+
pressed: deepPurpleColorPalette['white-alpha.20']
|
|
2406
|
+
},
|
|
2407
|
+
indicator: {
|
|
2408
|
+
backgroundColor: undefined
|
|
2409
|
+
}
|
|
2410
|
+
},
|
|
2411
|
+
borderBottomColor: deepPurpleColorPalette['white-alpha.20']
|
|
2412
|
+
}
|
|
2413
|
+
},
|
|
2414
|
+
solid: {
|
|
2415
|
+
"default": {
|
|
2416
|
+
active: {
|
|
2417
|
+
color: {
|
|
2418
|
+
"default": deepPurpleColorPalette['grey.0'],
|
|
2419
|
+
focused: deepPurpleColorPalette['grey.0'],
|
|
2420
|
+
hovered: deepPurpleColorPalette['grey.0'],
|
|
2421
|
+
pressed: deepPurpleColorPalette['grey.0']
|
|
2422
|
+
},
|
|
2423
|
+
backgroundColor: {
|
|
2424
|
+
"default": deepPurpleColorPalette['deepPurple.8'],
|
|
2425
|
+
focused: deepPurpleColorPalette['deepPurple.8'],
|
|
2426
|
+
hovered: deepPurpleColorPalette['deepPurple.8'],
|
|
2427
|
+
pressed: deepPurpleColorPalette['deepPurple.8']
|
|
2428
|
+
},
|
|
2429
|
+
borderRadius: 4,
|
|
2430
|
+
indicator: {
|
|
2431
|
+
backgroundColor: undefined
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
inactive: {
|
|
2435
|
+
color: {
|
|
2436
|
+
"default": deepPurpleColorPalette['grey.5'],
|
|
2437
|
+
focused: deepPurpleColorPalette['grey.5'],
|
|
2438
|
+
hovered: deepPurpleColorPalette['grey.5'],
|
|
2439
|
+
pressed: deepPurpleColorPalette['grey.5']
|
|
2440
|
+
},
|
|
2441
|
+
backgroundColor: {
|
|
2442
|
+
"default": undefined,
|
|
2443
|
+
focused: undefined,
|
|
2444
|
+
hovered: deepPurpleColorPalette['beige.1'],
|
|
2445
|
+
pressed: deepPurpleColorPalette['beige.1']
|
|
2446
|
+
},
|
|
2447
|
+
borderRadius: 4,
|
|
2448
|
+
indicator: {
|
|
2449
|
+
backgroundColor: undefined
|
|
2450
|
+
}
|
|
2451
|
+
},
|
|
2452
|
+
disabled: {
|
|
2453
|
+
color: {
|
|
2454
|
+
"default": deepPurpleColorPalette['grey.3'],
|
|
2455
|
+
focused: deepPurpleColorPalette['grey.3'],
|
|
2456
|
+
hovered: deepPurpleColorPalette['grey.3'],
|
|
2457
|
+
pressed: deepPurpleColorPalette['grey.3']
|
|
2458
|
+
},
|
|
2459
|
+
indicator: {
|
|
2460
|
+
backgroundColor: undefined
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
},
|
|
2464
|
+
revert: {
|
|
2465
|
+
active: {
|
|
2466
|
+
color: {
|
|
2467
|
+
"default": deepPurpleColorPalette['deepPurple.8'],
|
|
2468
|
+
focused: deepPurpleColorPalette['deepPurple.8'],
|
|
2469
|
+
hovered: deepPurpleColorPalette['deepPurple.8'],
|
|
2470
|
+
pressed: deepPurpleColorPalette['deepPurple.8']
|
|
2471
|
+
},
|
|
2472
|
+
backgroundColor: {
|
|
2473
|
+
"default": deepPurpleColorPalette['grey.0'],
|
|
2474
|
+
focused: deepPurpleColorPalette['grey.0'],
|
|
2475
|
+
hovered: deepPurpleColorPalette['grey.0'],
|
|
2476
|
+
pressed: deepPurpleColorPalette['grey.0']
|
|
2477
|
+
},
|
|
2478
|
+
borderRadius: 4,
|
|
2479
|
+
indicator: {
|
|
2480
|
+
backgroundColor: undefined
|
|
2481
|
+
}
|
|
2482
|
+
},
|
|
2483
|
+
inactive: {
|
|
2484
|
+
color: {
|
|
2485
|
+
"default": deepPurpleColorPalette['white-alpha.80'],
|
|
2486
|
+
focused: deepPurpleColorPalette['white-alpha.80'],
|
|
2487
|
+
hovered: deepPurpleColorPalette['white-alpha.80'],
|
|
2488
|
+
pressed: deepPurpleColorPalette['white-alpha.80']
|
|
2489
|
+
},
|
|
2490
|
+
backgroundColor: {
|
|
2491
|
+
"default": undefined,
|
|
2492
|
+
focused: undefined,
|
|
2493
|
+
hovered: deepPurpleColorPalette['white-alpha.10'],
|
|
2494
|
+
pressed: deepPurpleColorPalette['white-alpha.10']
|
|
2495
|
+
},
|
|
2496
|
+
borderRadius: 4,
|
|
2497
|
+
indicator: {
|
|
2498
|
+
backgroundColor: undefined
|
|
2499
|
+
}
|
|
2500
|
+
},
|
|
2501
|
+
disabled: {
|
|
2502
|
+
color: {
|
|
2503
|
+
"default": deepPurpleColorPalette['white-alpha.20'],
|
|
2504
|
+
focused: deepPurpleColorPalette['white-alpha.20'],
|
|
2505
|
+
hovered: deepPurpleColorPalette['white-alpha.20'],
|
|
2506
|
+
pressed: deepPurpleColorPalette['white-alpha.20']
|
|
2507
|
+
},
|
|
2508
|
+
indicator: {
|
|
2509
|
+
backgroundColor: undefined
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
};
|
|
2515
|
+
|
|
2374
2516
|
var tag = {
|
|
2375
2517
|
borderRadius: 16,
|
|
2376
2518
|
icon: {
|
|
@@ -2512,6 +2654,7 @@ var theme = {
|
|
|
2512
2654
|
picker: picker,
|
|
2513
2655
|
shadows: shadows,
|
|
2514
2656
|
skeleton: skeleton,
|
|
2657
|
+
tabBar: tabBar,
|
|
2515
2658
|
tag: tag,
|
|
2516
2659
|
tooltip: tooltip,
|
|
2517
2660
|
typography: typography,
|
|
@@ -2612,7 +2755,7 @@ function ActionCardDisabled(_ref) {
|
|
|
2612
2755
|
});
|
|
2613
2756
|
}
|
|
2614
2757
|
|
|
2615
|
-
var _excluded$
|
|
2758
|
+
var _excluded$S = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2616
2759
|
function ActionCard(_ref) {
|
|
2617
2760
|
var children = _ref.children,
|
|
2618
2761
|
_ref$variant = _ref.variant,
|
|
@@ -2625,7 +2768,7 @@ function ActionCard(_ref) {
|
|
|
2625
2768
|
isHovered = _ref.isHovered,
|
|
2626
2769
|
isPressed = _ref.isPressed,
|
|
2627
2770
|
isFocused = _ref.isFocused,
|
|
2628
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2771
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
2629
2772
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2630
2773
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2631
2774
|
borderRadius: borderRadius,
|
|
@@ -2939,17 +3082,23 @@ var getTypographyFamilyWithAncestorValue = function (type, typographyFamilyInCon
|
|
|
2939
3082
|
if (typographyFamilyInContext != null) return typographyFamilyInContext;
|
|
2940
3083
|
throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
|
|
2941
3084
|
};
|
|
3085
|
+
var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext) {
|
|
3086
|
+
// check if all values are not undefined
|
|
3087
|
+
var isAllValuesUndefined = Object.values(type).every(function (value) {
|
|
3088
|
+
return value === undefined;
|
|
3089
|
+
});
|
|
2942
3090
|
|
|
2943
|
-
|
|
3091
|
+
// if every values are undefined and we hgave a typographyTypeInContext, we use the parent typography type (typographyTypeInContext)
|
|
3092
|
+
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3093
|
+
};
|
|
3094
|
+
|
|
3095
|
+
var _excluded$R = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
2944
3096
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
2945
3097
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
2946
3098
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
2947
3099
|
function useTypographyColor() {
|
|
2948
3100
|
return useContext(TypographyColorContext);
|
|
2949
3101
|
}
|
|
2950
|
-
function useTypographyAncestorType() {
|
|
2951
|
-
return useContext(TypographyTypeContext);
|
|
2952
|
-
}
|
|
2953
3102
|
var TypographyDefaultColorContext = /*#__PURE__*/createContext(undefined);
|
|
2954
3103
|
function useTypographyDefaultColor() {
|
|
2955
3104
|
return useContext(TypographyDefaultColorContext);
|
|
@@ -3050,7 +3199,7 @@ function getUniversalFontWeight(type, variant, typographyFamily) {
|
|
|
3050
3199
|
};
|
|
3051
3200
|
}
|
|
3052
3201
|
function Typography(_ref2) {
|
|
3053
|
-
var
|
|
3202
|
+
var _typographyType$base;
|
|
3054
3203
|
var accessibilityRole = _ref2.accessibilityRole,
|
|
3055
3204
|
legacyBase = _ref2.base,
|
|
3056
3205
|
legacySmall = _ref2.small,
|
|
@@ -3067,12 +3216,14 @@ function Typography(_ref2) {
|
|
|
3067
3216
|
} : _ref2$type,
|
|
3068
3217
|
variant = _ref2.variant,
|
|
3069
3218
|
color = _ref2.color,
|
|
3070
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded$
|
|
3219
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$R);
|
|
3071
3220
|
var sx = useSx();
|
|
3072
3221
|
var typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
3222
|
+
var typographyTypeInContext = useContext(TypographyTypeContext);
|
|
3073
3223
|
var defaultColor = useTypographyDefaultColor();
|
|
3074
3224
|
var hasTypographyAncestor = typographyFamilyInContext !== null;
|
|
3075
|
-
var
|
|
3225
|
+
var typographyType = getTypographyTypeWithAncestorValue(type, typographyTypeInContext);
|
|
3226
|
+
var baseOrDefaultToBody = (_typographyType$base = typographyType.base) !== null && _typographyType$base !== void 0 ? _typographyType$base : 'body-m';
|
|
3076
3227
|
var typographyFamily = getTypographyFamilyWithAncestorValue(baseOrDefaultToBody, typographyFamilyInContext);
|
|
3077
3228
|
var fontSizeForNativeBase = createNativeBaseFontSize(_objectSpread(_objectSpread({}, type), {}, {
|
|
3078
3229
|
base: baseOrDefaultToBody
|
|
@@ -3109,7 +3260,7 @@ function Typography(_ref2) {
|
|
|
3109
3260
|
var content = baseOrDefaultToBody ? /*#__PURE__*/jsx(TypographyFamilyContext.Provider, {
|
|
3110
3261
|
value: typographyFamily,
|
|
3111
3262
|
children: /*#__PURE__*/jsx(TypographyTypeContext.Provider, {
|
|
3112
|
-
value:
|
|
3263
|
+
value: typographyType,
|
|
3113
3264
|
children: text
|
|
3114
3265
|
})
|
|
3115
3266
|
}) : text;
|
|
@@ -3207,30 +3358,12 @@ function Icon(_ref) {
|
|
|
3207
3358
|
});
|
|
3208
3359
|
}
|
|
3209
3360
|
|
|
3210
|
-
var _excluded$
|
|
3361
|
+
var _excluded$Q = ["color", "size"],
|
|
3211
3362
|
_excluded2$5 = ["color"];
|
|
3212
|
-
function getIconSizeConfigKeyFromTypeName(breakpointName) {
|
|
3213
|
-
return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
|
|
3214
|
-
}
|
|
3215
|
-
function createNativeBaseIconSize(type) {
|
|
3216
|
-
var typeWithMediumForced = _objectSpread(_objectSpread({}, type), {}, {
|
|
3217
|
-
medium: type.medium || type.small || type.base
|
|
3218
|
-
});
|
|
3219
|
-
var iconSizeForNativeBase = {};
|
|
3220
|
-
[KittBreakpointNameEnum.BASE, KittBreakpointNameEnum.SMALL, KittBreakpointNameEnum.MEDIUM, KittBreakpointNameEnum.LARGE, KittBreakpointNameEnum.WIDE].forEach(function (typeName) {
|
|
3221
|
-
var value = typeWithMediumForced[typeName];
|
|
3222
|
-
if (value) {
|
|
3223
|
-
iconSizeForNativeBase[typeName] = "kitt.icon.typographySize.".concat(value, ".").concat(getIconSizeConfigKeyFromTypeName(typeName), ".iconSize");
|
|
3224
|
-
}
|
|
3225
|
-
});
|
|
3226
|
-
return iconSizeForNativeBase;
|
|
3227
|
-
}
|
|
3228
3363
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3229
3364
|
var color = _ref.color,
|
|
3230
3365
|
size = _ref.size,
|
|
3231
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3232
|
-
var ancestorType = useTypographyAncestorType();
|
|
3233
|
-
var iconSize = size || (ancestorType ? createNativeBaseIconSize(ancestorType) : undefined);
|
|
3366
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
3234
3367
|
var colorValue = getTypographyColorValue(color);
|
|
3235
3368
|
var sx = useSx();
|
|
3236
3369
|
var _sx = sx({
|
|
@@ -3238,7 +3371,7 @@ function TypographyIconSpecifiedColor(_ref) {
|
|
|
3238
3371
|
}),
|
|
3239
3372
|
colorStyleValue = _sx.color;
|
|
3240
3373
|
return /*#__PURE__*/jsx(Icon, _objectSpread(_objectSpread({}, props), {}, {
|
|
3241
|
-
size:
|
|
3374
|
+
size: size,
|
|
3242
3375
|
color: colorStyleValue
|
|
3243
3376
|
}));
|
|
3244
3377
|
}
|
|
@@ -3270,7 +3403,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
|
|
|
3270
3403
|
return "".concat(baseKey, ".default");
|
|
3271
3404
|
};
|
|
3272
3405
|
|
|
3273
|
-
var _excluded$
|
|
3406
|
+
var _excluded$P = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3274
3407
|
function ButtonContentChildren(_ref) {
|
|
3275
3408
|
var type = _ref.type,
|
|
3276
3409
|
icon = _ref.icon,
|
|
@@ -3370,7 +3503,7 @@ function ButtonContent(_ref2) {
|
|
|
3370
3503
|
_ref2.isFocused;
|
|
3371
3504
|
var innerSpacing = _ref2.innerSpacing,
|
|
3372
3505
|
size = _ref2.size,
|
|
3373
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3506
|
+
props = _objectWithoutProperties(_ref2, _excluded$P);
|
|
3374
3507
|
var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3375
3508
|
return /*#__PURE__*/jsx(View, {
|
|
3376
3509
|
_web: {
|
|
@@ -3615,7 +3748,7 @@ function LoaderIcon(_ref) {
|
|
|
3615
3748
|
});
|
|
3616
3749
|
}
|
|
3617
3750
|
|
|
3618
|
-
var _excluded$
|
|
3751
|
+
var _excluded$O = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3619
3752
|
var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3620
3753
|
var as = _ref.as,
|
|
3621
3754
|
onPress = _ref.onPress,
|
|
@@ -3626,7 +3759,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3626
3759
|
base: true,
|
|
3627
3760
|
medium: false
|
|
3628
3761
|
} : _ref$stretch,
|
|
3629
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3762
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
3630
3763
|
var _useState = useState(false),
|
|
3631
3764
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3632
3765
|
isLoading = _useState2[0],
|
|
@@ -3704,7 +3837,7 @@ function ActionsButton(_ref) {
|
|
|
3704
3837
|
}, props));
|
|
3705
3838
|
}
|
|
3706
3839
|
|
|
3707
|
-
var _excluded$
|
|
3840
|
+
var _excluded$N = ["children", "layout", "reversed"];
|
|
3708
3841
|
function getCurrentLayout(layout) {
|
|
3709
3842
|
if (!layout) return {
|
|
3710
3843
|
base: 'stretch',
|
|
@@ -3736,7 +3869,7 @@ function Actions(_ref) {
|
|
|
3736
3869
|
reversed = _ref$reversed === void 0 ? {
|
|
3737
3870
|
base: false
|
|
3738
3871
|
} : _ref$reversed,
|
|
3739
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3872
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
3740
3873
|
var shouldReverse = typeof reversed === 'boolean' ? {
|
|
3741
3874
|
base: !!reversed
|
|
3742
3875
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -3789,7 +3922,7 @@ function getInitials(firstname, lastname) {
|
|
|
3789
3922
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
3790
3923
|
}
|
|
3791
3924
|
|
|
3792
|
-
var _excluded$
|
|
3925
|
+
var _excluded$M = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
3793
3926
|
function AvatarContent(_ref) {
|
|
3794
3927
|
var size = _ref.size,
|
|
3795
3928
|
src = _ref.src,
|
|
@@ -3852,7 +3985,7 @@ function Avatar(_ref2) {
|
|
|
3852
3985
|
height = _ref2.height,
|
|
3853
3986
|
dark = _ref2.dark,
|
|
3854
3987
|
disabled = _ref2.disabled,
|
|
3855
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3988
|
+
props = _objectWithoutProperties(_ref2, _excluded$M);
|
|
3856
3989
|
var currentSize = getCurrentSize({
|
|
3857
3990
|
size: size,
|
|
3858
3991
|
sizeVariant: sizeVariant
|
|
@@ -3890,7 +4023,7 @@ function Avatar(_ref2) {
|
|
|
3890
4023
|
});
|
|
3891
4024
|
}
|
|
3892
4025
|
|
|
3893
|
-
var _excluded$
|
|
4026
|
+
var _excluded$L = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
3894
4027
|
function BottomSheetComp(_ref, ref) {
|
|
3895
4028
|
var Content = _ref.children,
|
|
3896
4029
|
_ref$hasScrollView = _ref.hasScrollView,
|
|
@@ -3903,7 +4036,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3903
4036
|
enableDynamicSizing = _ref$enableDynamicSiz === void 0 ? true : _ref$enableDynamicSiz,
|
|
3904
4037
|
_ref$snapPoints = _ref.snapPoints,
|
|
3905
4038
|
snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
|
|
3906
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4039
|
+
rest = _objectWithoutProperties(_ref, _excluded$L);
|
|
3907
4040
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
3908
4041
|
top = _useSafeAreaInsets.top;
|
|
3909
4042
|
var Wrapper = useMemo(function () {
|
|
@@ -4215,13 +4348,13 @@ function CardModalAnimation(_ref) {
|
|
|
4215
4348
|
});
|
|
4216
4349
|
}
|
|
4217
4350
|
|
|
4218
|
-
var _excluded$
|
|
4351
|
+
var _excluded$K = ["children", "visible", "onClose", "onExited"];
|
|
4219
4352
|
function CardModalBehaviour(_ref) {
|
|
4220
4353
|
var children = _ref.children,
|
|
4221
4354
|
visible = _ref.visible,
|
|
4222
4355
|
onClose = _ref.onClose,
|
|
4223
4356
|
onExited = _ref.onExited,
|
|
4224
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4357
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4225
4358
|
var _useState = useState(visible),
|
|
4226
4359
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4227
4360
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4246,7 +4379,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4246
4379
|
});
|
|
4247
4380
|
}
|
|
4248
4381
|
|
|
4249
|
-
var _excluded$
|
|
4382
|
+
var _excluded$J = ["children", "paddingX", "paddingY"];
|
|
4250
4383
|
function CardModalBody(_ref) {
|
|
4251
4384
|
var children = _ref.children,
|
|
4252
4385
|
_ref$paddingX = _ref.paddingX,
|
|
@@ -4259,7 +4392,7 @@ function CardModalBody(_ref) {
|
|
|
4259
4392
|
base: 'kitt.4',
|
|
4260
4393
|
medium: 'kitt.6'
|
|
4261
4394
|
} : _ref$paddingY,
|
|
4262
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4395
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4263
4396
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4264
4397
|
showsVerticalScrollIndicator: false,
|
|
4265
4398
|
_contentContainerStyle: {
|
|
@@ -4271,7 +4404,7 @@ function CardModalBody(_ref) {
|
|
|
4271
4404
|
}));
|
|
4272
4405
|
}
|
|
4273
4406
|
|
|
4274
|
-
var _excluded$
|
|
4407
|
+
var _excluded$I = ["children", "padding", "hasSeparator"];
|
|
4275
4408
|
function CardModalFooter(_ref) {
|
|
4276
4409
|
var children = _ref.children,
|
|
4277
4410
|
_ref$padding = _ref.padding,
|
|
@@ -4281,7 +4414,7 @@ function CardModalFooter(_ref) {
|
|
|
4281
4414
|
} : _ref$padding,
|
|
4282
4415
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4283
4416
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4284
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4417
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4285
4418
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4286
4419
|
marginTop: "kitt.2",
|
|
4287
4420
|
padding: padding,
|
|
@@ -4295,7 +4428,7 @@ function CardModalFooter(_ref) {
|
|
|
4295
4428
|
}));
|
|
4296
4429
|
}
|
|
4297
4430
|
|
|
4298
|
-
var _excluded$
|
|
4431
|
+
var _excluded$H = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
|
|
4299
4432
|
function CardModalHeader(_ref) {
|
|
4300
4433
|
var children = _ref.children,
|
|
4301
4434
|
title = _ref.title,
|
|
@@ -4308,7 +4441,7 @@ function CardModalHeader(_ref) {
|
|
|
4308
4441
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4309
4442
|
right = _ref.right,
|
|
4310
4443
|
left = _ref.left,
|
|
4311
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4444
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4312
4445
|
var defaultContainerPadding = {
|
|
4313
4446
|
base: 'kitt.4',
|
|
4314
4447
|
medium: 'kitt.6'
|
|
@@ -4346,7 +4479,7 @@ function CardModalHeader(_ref) {
|
|
|
4346
4479
|
}));
|
|
4347
4480
|
}
|
|
4348
4481
|
|
|
4349
|
-
var _excluded$
|
|
4482
|
+
var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4350
4483
|
function CardModal(_ref) {
|
|
4351
4484
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4352
4485
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4357,7 +4490,7 @@ function CardModal(_ref) {
|
|
|
4357
4490
|
header = _ref.header,
|
|
4358
4491
|
body = _ref.body,
|
|
4359
4492
|
footer = _ref.footer,
|
|
4360
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4493
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4361
4494
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4362
4495
|
overflow: "hidden",
|
|
4363
4496
|
backgroundColor: backgroundColor,
|
|
@@ -4603,11 +4736,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
4603
4736
|
}));
|
|
4604
4737
|
}
|
|
4605
4738
|
|
|
4606
|
-
var _excluded$
|
|
4739
|
+
var _excluded$F = ["direction", "contentContainerStyle"];
|
|
4607
4740
|
function ChoicesContainer(_ref) {
|
|
4608
4741
|
var direction = _ref.direction,
|
|
4609
4742
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4610
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4743
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
4611
4744
|
if (direction === 'row') {
|
|
4612
4745
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4613
4746
|
horizontal: true,
|
|
@@ -4833,13 +4966,13 @@ function DialogModalAnimation(_ref) {
|
|
|
4833
4966
|
});
|
|
4834
4967
|
}
|
|
4835
4968
|
|
|
4836
|
-
var _excluded$
|
|
4969
|
+
var _excluded$E = ["children", "visible", "onClose", "onExited"];
|
|
4837
4970
|
function DialogModalBehaviour(_ref) {
|
|
4838
4971
|
var children = _ref.children,
|
|
4839
4972
|
visible = _ref.visible,
|
|
4840
4973
|
onClose = _ref.onClose,
|
|
4841
4974
|
onExited = _ref.onExited,
|
|
4842
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4975
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
4843
4976
|
var _useState = useState(visible),
|
|
4844
4977
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4845
4978
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4870,7 +5003,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
4870
5003
|
});
|
|
4871
5004
|
}
|
|
4872
5005
|
|
|
4873
|
-
var _excluded$
|
|
5006
|
+
var _excluded$D = ["stretch"];
|
|
4874
5007
|
function DialogModal(_ref) {
|
|
4875
5008
|
var illustration = _ref.illustration,
|
|
4876
5009
|
title = _ref.title,
|
|
@@ -4910,7 +5043,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
4910
5043
|
function DialogModalButton(_ref2) {
|
|
4911
5044
|
var _ref2$stretch = _ref2.stretch,
|
|
4912
5045
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
4913
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
5046
|
+
props = _objectWithoutProperties(_ref2, _excluded$D);
|
|
4914
5047
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
4915
5048
|
stretch: stretch
|
|
4916
5049
|
}, props));
|
|
@@ -4947,7 +5080,7 @@ function Emoji(_ref) {
|
|
|
4947
5080
|
});
|
|
4948
5081
|
}
|
|
4949
5082
|
|
|
4950
|
-
var _excluded$
|
|
5083
|
+
var _excluded$C = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
4951
5084
|
_excluded2$4 = ["phoneNumber", "children"],
|
|
4952
5085
|
_excluded3$3 = ["phoneNumber", "children"],
|
|
4953
5086
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -4957,7 +5090,7 @@ function ExternalAppLink(_ref) {
|
|
|
4957
5090
|
appValue = _ref.appValue,
|
|
4958
5091
|
onPress = _ref.onPress,
|
|
4959
5092
|
onOpenAppError = _ref.onOpenAppError,
|
|
4960
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5093
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
4961
5094
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
4962
5095
|
var handleOnPress = /*#__PURE__*/function () {
|
|
4963
5096
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -5109,7 +5242,7 @@ function useOpenExternalLink(errorHandler) {
|
|
|
5109
5242
|
}();
|
|
5110
5243
|
}
|
|
5111
5244
|
|
|
5112
|
-
var _excluded$
|
|
5245
|
+
var _excluded$B = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
|
|
5113
5246
|
function ExternalLink(_ref) {
|
|
5114
5247
|
var Component = _ref.as,
|
|
5115
5248
|
href = _ref.href,
|
|
@@ -5118,7 +5251,7 @@ function ExternalLink(_ref) {
|
|
|
5118
5251
|
onPress = _ref.onPress,
|
|
5119
5252
|
_ref$onOpenLinkError = _ref.onOpenLinkError,
|
|
5120
5253
|
onOpenLinkError = _ref$onOpenLinkError === void 0 ? console.error : _ref$onOpenLinkError,
|
|
5121
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5254
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
5122
5255
|
var openExternalLink = useOpenExternalLink();
|
|
5123
5256
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5124
5257
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -5175,7 +5308,7 @@ function InputTextContainer(_ref) {
|
|
|
5175
5308
|
});
|
|
5176
5309
|
}
|
|
5177
5310
|
|
|
5178
|
-
var _excluded$
|
|
5311
|
+
var _excluded$A = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5179
5312
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5180
5313
|
var id = _ref.id,
|
|
5181
5314
|
right = _ref.right;
|
|
@@ -5196,7 +5329,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5196
5329
|
multiline = _ref.multiline,
|
|
5197
5330
|
height = _ref.height,
|
|
5198
5331
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5199
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5332
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5200
5333
|
var theme = useTheme();
|
|
5201
5334
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5202
5335
|
base: 'body-m'
|
|
@@ -5321,12 +5454,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5321
5454
|
});
|
|
5322
5455
|
}
|
|
5323
5456
|
|
|
5324
|
-
var _excluded$
|
|
5457
|
+
var _excluded$z = ["children", "testID"];
|
|
5325
5458
|
function AutocompleteOption(_ref) {
|
|
5326
5459
|
var children = _ref.children,
|
|
5327
5460
|
_ref$testID = _ref.testID,
|
|
5328
5461
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5329
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5462
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5330
5463
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5331
5464
|
paddingX: {
|
|
5332
5465
|
base: 'kitt.2',
|
|
@@ -5339,7 +5472,7 @@ function AutocompleteOption(_ref) {
|
|
|
5339
5472
|
}));
|
|
5340
5473
|
}
|
|
5341
5474
|
|
|
5342
|
-
var _excluded$
|
|
5475
|
+
var _excluded$y = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
|
|
5343
5476
|
_excluded2$3 = ["onClick", "onPress"],
|
|
5344
5477
|
_excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5345
5478
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5379,7 +5512,7 @@ function Autocomplete(_ref) {
|
|
|
5379
5512
|
_ref$zIndex = _ref.zIndex,
|
|
5380
5513
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5381
5514
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5382
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5515
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5383
5516
|
var childrenArray = Children.toArray(_children);
|
|
5384
5517
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5385
5518
|
return {
|
|
@@ -5594,7 +5727,7 @@ function getBorderColor$1(_ref) {
|
|
|
5594
5727
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5595
5728
|
}
|
|
5596
5729
|
|
|
5597
|
-
var _excluded$
|
|
5730
|
+
var _excluded$x = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5598
5731
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5599
5732
|
var checked = _ref.checked,
|
|
5600
5733
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -5604,7 +5737,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5604
5737
|
onChange = _ref.onChange,
|
|
5605
5738
|
onBlur = _ref.onBlur,
|
|
5606
5739
|
onFocus = _ref.onFocus,
|
|
5607
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5740
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5608
5741
|
var theme = useTheme();
|
|
5609
5742
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5610
5743
|
hitSlop: hitSlop
|
|
@@ -5922,7 +6055,7 @@ function PartContainer(_ref) {
|
|
|
5922
6055
|
});
|
|
5923
6056
|
}
|
|
5924
6057
|
|
|
5925
|
-
var _excluded$
|
|
6058
|
+
var _excluded$w = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
5926
6059
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5927
6060
|
var id = _ref.id,
|
|
5928
6061
|
value = _ref.value,
|
|
@@ -5940,7 +6073,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5940
6073
|
onBlur = _ref.onBlur,
|
|
5941
6074
|
onFocus = _ref.onFocus,
|
|
5942
6075
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
5943
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6076
|
+
_objectWithoutProperties(_ref, _excluded$w);
|
|
5944
6077
|
var monthRef = useRef(null);
|
|
5945
6078
|
var yearRef = useRef(null);
|
|
5946
6079
|
var defaultValue = value;
|
|
@@ -6149,7 +6282,7 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6149
6282
|
});
|
|
6150
6283
|
});
|
|
6151
6284
|
|
|
6152
|
-
var _excluded$
|
|
6285
|
+
var _excluded$v = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
|
|
6153
6286
|
var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6154
6287
|
var onBlur = _ref.onBlur,
|
|
6155
6288
|
onFocus = _ref.onFocus,
|
|
@@ -6158,7 +6291,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6158
6291
|
isDefaultVisible = _ref.isDefaultVisible,
|
|
6159
6292
|
value = _ref.value,
|
|
6160
6293
|
_onChange = _ref.onChange,
|
|
6161
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6294
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
6162
6295
|
var _useState = useState(false),
|
|
6163
6296
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6164
6297
|
isFocused = _useState2[0],
|
|
@@ -6234,7 +6367,7 @@ function PlatformDateTimePicker(_ref) {
|
|
|
6234
6367
|
}));
|
|
6235
6368
|
}
|
|
6236
6369
|
|
|
6237
|
-
var _excluded$
|
|
6370
|
+
var _excluded$u = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
|
|
6238
6371
|
function ModalTitle(_ref) {
|
|
6239
6372
|
var children = _ref.children;
|
|
6240
6373
|
return /*#__PURE__*/jsx(CardModal.Header, {
|
|
@@ -6252,7 +6385,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6252
6385
|
validateButtonLabel = _ref2.validateButtonLabel,
|
|
6253
6386
|
onClose = _ref2.onClose,
|
|
6254
6387
|
onChange = _ref2.onChange,
|
|
6255
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6388
|
+
props = _objectWithoutProperties(_ref2, _excluded$u);
|
|
6256
6389
|
var _useState = useState(value),
|
|
6257
6390
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6258
6391
|
currentValue = _useState2[0],
|
|
@@ -6298,7 +6431,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6298
6431
|
});
|
|
6299
6432
|
}
|
|
6300
6433
|
|
|
6301
|
-
var _excluded$
|
|
6434
|
+
var _excluded$t = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
|
|
6302
6435
|
var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6303
6436
|
var value = _ref.value,
|
|
6304
6437
|
pickerUITestID = _ref.pickerUITestID,
|
|
@@ -6312,7 +6445,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6312
6445
|
onChange = _ref.onChange,
|
|
6313
6446
|
onFocus = _ref.onFocus,
|
|
6314
6447
|
onBlur = _ref.onBlur,
|
|
6315
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6448
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6316
6449
|
var _useState = useState(isDefaultVisible),
|
|
6317
6450
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6318
6451
|
isPickerUIVisible = _useState2[0],
|
|
@@ -6359,7 +6492,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6359
6492
|
});
|
|
6360
6493
|
});
|
|
6361
6494
|
|
|
6362
|
-
var _excluded$
|
|
6495
|
+
var _excluded$s = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
|
|
6363
6496
|
var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6364
6497
|
var value = _ref.value,
|
|
6365
6498
|
pickerUITestID = _ref.pickerUITestID,
|
|
@@ -6367,7 +6500,7 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6367
6500
|
pickerDefaultDate = _ref.pickerDefaultDate,
|
|
6368
6501
|
onChange = _ref.onChange,
|
|
6369
6502
|
onBlur = _ref.onBlur,
|
|
6370
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6503
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6371
6504
|
if (Platform.OS === 'android') {
|
|
6372
6505
|
return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
|
|
6373
6506
|
ref: ref,
|
|
@@ -6389,14 +6522,14 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6389
6522
|
}, props));
|
|
6390
6523
|
});
|
|
6391
6524
|
|
|
6392
|
-
var _excluded$
|
|
6525
|
+
var _excluded$r = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
6393
6526
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6394
6527
|
var _ref$fillMode = _ref.fillMode,
|
|
6395
6528
|
fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
|
|
6396
6529
|
enterKeyHint = _ref.enterKeyHint,
|
|
6397
6530
|
value = _ref.value,
|
|
6398
6531
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
6399
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6532
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
6400
6533
|
// in apps, final-form can give a string value that will break the component
|
|
6401
6534
|
var currentValue = value || undefined;
|
|
6402
6535
|
if (fillMode === 'keyboard') {
|
|
@@ -6512,10 +6645,10 @@ function ImagePicker(_ref) {
|
|
|
6512
6645
|
});
|
|
6513
6646
|
}
|
|
6514
6647
|
|
|
6515
|
-
var _excluded$
|
|
6648
|
+
var _excluded$q = ["children"];
|
|
6516
6649
|
function ListItemContent(_ref) {
|
|
6517
6650
|
var children = _ref.children,
|
|
6518
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6651
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
6519
6652
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6520
6653
|
alignSelf: "center",
|
|
6521
6654
|
flexBasis: "0%",
|
|
@@ -6526,14 +6659,14 @@ function ListItemContent(_ref) {
|
|
|
6526
6659
|
}));
|
|
6527
6660
|
}
|
|
6528
6661
|
|
|
6529
|
-
var _excluded$
|
|
6662
|
+
var _excluded$p = ["children", "side"],
|
|
6530
6663
|
_excluded2$2 = ["children", "align"];
|
|
6531
6664
|
// Handles the vertical alignment of the side elements of the list item
|
|
6532
6665
|
function ListItemSideContainer(_ref) {
|
|
6533
6666
|
var children = _ref.children,
|
|
6534
6667
|
_ref$side = _ref.side,
|
|
6535
6668
|
side = _ref$side === void 0 ? 'left' : _ref$side,
|
|
6536
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6669
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
6537
6670
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6538
6671
|
flexDirection: "row",
|
|
6539
6672
|
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
@@ -6554,7 +6687,7 @@ function ListItemSideContent(_ref2) {
|
|
|
6554
6687
|
}));
|
|
6555
6688
|
}
|
|
6556
6689
|
|
|
6557
|
-
var _excluded$
|
|
6690
|
+
var _excluded$o = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
6558
6691
|
function ListItem(_ref) {
|
|
6559
6692
|
var children = _ref.children,
|
|
6560
6693
|
withPadding = _ref.withPadding,
|
|
@@ -6562,7 +6695,7 @@ function ListItem(_ref) {
|
|
|
6562
6695
|
left = _ref.left,
|
|
6563
6696
|
right = _ref.right,
|
|
6564
6697
|
onPress = _ref.onPress,
|
|
6565
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6698
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
6566
6699
|
var Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
6567
6700
|
var wrapperProps = onPress ? _objectSpread({
|
|
6568
6701
|
accessibilityRole: 'button',
|
|
@@ -6595,10 +6728,10 @@ ListItem.Content = ListItemContent;
|
|
|
6595
6728
|
ListItem.SideContent = ListItemSideContent;
|
|
6596
6729
|
ListItem.SideContainer = ListItemSideContainer;
|
|
6597
6730
|
|
|
6598
|
-
var _excluded$
|
|
6731
|
+
var _excluded$n = ["title"];
|
|
6599
6732
|
function BottomSheetActionsItem(_ref) {
|
|
6600
6733
|
var title = _ref.title,
|
|
6601
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6734
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
6602
6735
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
|
|
6603
6736
|
children: /*#__PURE__*/jsx(ListItem, {
|
|
6604
6737
|
withPadding: true,
|
|
@@ -7202,7 +7335,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7202
7335
|
};
|
|
7203
7336
|
}
|
|
7204
7337
|
|
|
7205
|
-
var _excluded$
|
|
7338
|
+
var _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
7206
7339
|
function InputAddress(_ref) {
|
|
7207
7340
|
var initialValue = _ref.initialValue,
|
|
7208
7341
|
_ref$itemToString = _ref.itemToString,
|
|
@@ -7210,7 +7343,7 @@ function InputAddress(_ref) {
|
|
|
7210
7343
|
errorElement = _ref.errorElement,
|
|
7211
7344
|
emptyResultsElement = _ref.emptyResultsElement,
|
|
7212
7345
|
_onChange = _ref.onChange,
|
|
7213
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7346
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
7214
7347
|
var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
|
|
7215
7348
|
state = _useGoogleMapsAutocom.state,
|
|
7216
7349
|
_onInputChange = _useGoogleMapsAutocom.onInputChange,
|
|
@@ -7307,10 +7440,10 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
7307
7440
|
}, props));
|
|
7308
7441
|
});
|
|
7309
7442
|
|
|
7310
|
-
var _excluded$
|
|
7443
|
+
var _excluded$l = ["onChange"];
|
|
7311
7444
|
var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7312
7445
|
var onChange = _ref.onChange,
|
|
7313
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7446
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7314
7447
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7315
7448
|
ref: ref
|
|
7316
7449
|
}, props), {}, {
|
|
@@ -7327,11 +7460,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7327
7460
|
}));
|
|
7328
7461
|
});
|
|
7329
7462
|
|
|
7330
|
-
var _excluded$
|
|
7463
|
+
var _excluded$k = ["isPasswordDefaultVisible", "right"];
|
|
7331
7464
|
var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7332
7465
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
7333
7466
|
right = _ref.right,
|
|
7334
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7467
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7335
7468
|
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
7336
7469
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7337
7470
|
isVisible = _useState2[0],
|
|
@@ -7359,7 +7492,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7359
7492
|
}));
|
|
7360
7493
|
});
|
|
7361
7494
|
|
|
7362
|
-
var _excluded$
|
|
7495
|
+
var _excluded$j = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
|
|
7363
7496
|
function isPhoneNumberValid(number) {
|
|
7364
7497
|
return isValidNumber(number);
|
|
7365
7498
|
}
|
|
@@ -7373,7 +7506,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7373
7506
|
_ref$phoneNumberLengt = _ref.phoneNumberLength,
|
|
7374
7507
|
phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
|
|
7375
7508
|
onChange = _ref.onChange,
|
|
7376
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7509
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
7377
7510
|
var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
7378
7511
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7379
7512
|
ref: ref
|
|
@@ -7810,7 +7943,7 @@ function RadioButton(_ref) {
|
|
|
7810
7943
|
});
|
|
7811
7944
|
}
|
|
7812
7945
|
|
|
7813
|
-
var _excluded$
|
|
7946
|
+
var _excluded$i = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
|
|
7814
7947
|
function RadioButtonGroupItem(_ref) {
|
|
7815
7948
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
7816
7949
|
return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
|
|
@@ -7823,7 +7956,7 @@ function RadioButtonGroup(_ref2) {
|
|
|
7823
7956
|
onFocus = _ref2.onFocus,
|
|
7824
7957
|
onBlur = _ref2.onBlur,
|
|
7825
7958
|
onChange = _ref2.onChange,
|
|
7826
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7959
|
+
props = _objectWithoutProperties(_ref2, _excluded$i);
|
|
7827
7960
|
var _useState = useState(value),
|
|
7828
7961
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7829
7962
|
currentValue = _useState2[0],
|
|
@@ -7855,12 +7988,12 @@ function RadioButtonGroup(_ref2) {
|
|
|
7855
7988
|
}
|
|
7856
7989
|
RadioButtonGroup.RadioButton = RadioButtonGroupItem;
|
|
7857
7990
|
|
|
7858
|
-
var _excluded$
|
|
7991
|
+
var _excluded$h = ["helper", "limit"];
|
|
7859
7992
|
var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7860
7993
|
var _props$value, _props$value2;
|
|
7861
7994
|
var helper = _ref.helper,
|
|
7862
7995
|
limit = _ref.limit,
|
|
7863
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7996
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
7864
7997
|
var shouldDisplayLimit = limit && limit > 0;
|
|
7865
7998
|
var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
|
|
7866
7999
|
var limitContainerAnimatedStyle = useAnimatedStyle(function () {
|
|
@@ -8019,7 +8152,7 @@ function ToggleAnimated(_ref) {
|
|
|
8019
8152
|
});
|
|
8020
8153
|
}
|
|
8021
8154
|
|
|
8022
|
-
var _excluded$
|
|
8155
|
+
var _excluded$g = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
8023
8156
|
var getLabelTypographyType = function (size) {
|
|
8024
8157
|
return size === 'medium' ? 'body-m' : 'body-l';
|
|
8025
8158
|
};
|
|
@@ -8041,7 +8174,7 @@ function Toggle(_ref) {
|
|
|
8041
8174
|
value = _ref$value === void 0 ? false : _ref$value,
|
|
8042
8175
|
_ref$onChange = _ref.onChange,
|
|
8043
8176
|
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
8044
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8177
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
8045
8178
|
var theme = useKittTheme();
|
|
8046
8179
|
return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
|
|
8047
8180
|
alignItems: "center"
|
|
@@ -8080,13 +8213,13 @@ function Toggle(_ref) {
|
|
|
8080
8213
|
}));
|
|
8081
8214
|
}
|
|
8082
8215
|
|
|
8083
|
-
var _excluded$
|
|
8216
|
+
var _excluded$f = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
8084
8217
|
function FullscreenModalBody(_ref) {
|
|
8085
8218
|
var children = _ref.children,
|
|
8086
8219
|
shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
|
|
8087
8220
|
style = _ref.style,
|
|
8088
8221
|
shouldHandleTopNotch = _ref.shouldHandleTopNotch,
|
|
8089
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8222
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
8090
8223
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
8091
8224
|
bottom = _useSafeAreaInsets.bottom,
|
|
8092
8225
|
top = _useSafeAreaInsets.top;
|
|
@@ -8106,14 +8239,14 @@ function FullscreenModalBody(_ref) {
|
|
|
8106
8239
|
}));
|
|
8107
8240
|
}
|
|
8108
8241
|
|
|
8109
|
-
var _excluded$
|
|
8242
|
+
var _excluded$e = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
8110
8243
|
function FullscreenModalFooter(_ref) {
|
|
8111
8244
|
var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
|
|
8112
8245
|
shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
|
|
8113
8246
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
8114
8247
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
8115
8248
|
children = _ref.children,
|
|
8116
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8249
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
8117
8250
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
8118
8251
|
bottom = _useSafeAreaInsets.bottom;
|
|
8119
8252
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
@@ -8269,13 +8402,13 @@ function FullscreenModalAnimation(_ref) {
|
|
|
8269
8402
|
});
|
|
8270
8403
|
}
|
|
8271
8404
|
|
|
8272
|
-
var _excluded$
|
|
8405
|
+
var _excluded$d = ["children", "visible", "onClose", "onExited"];
|
|
8273
8406
|
function FullscreenModalBehaviour(_ref) {
|
|
8274
8407
|
var children = _ref.children,
|
|
8275
8408
|
visible = _ref.visible,
|
|
8276
8409
|
onClose = _ref.onClose,
|
|
8277
8410
|
onExited = _ref.onExited,
|
|
8278
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8411
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
8279
8412
|
var _useState = useState(visible),
|
|
8280
8413
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8281
8414
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -8322,7 +8455,7 @@ function FullscreenModalContainer(_ref) {
|
|
|
8322
8455
|
});
|
|
8323
8456
|
}
|
|
8324
8457
|
|
|
8325
|
-
var _excluded$
|
|
8458
|
+
var _excluded$c = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
|
|
8326
8459
|
function FullscreenModalHeader(_ref) {
|
|
8327
8460
|
var _ref$hasSeparator = _ref.hasSeparator,
|
|
8328
8461
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
@@ -8333,7 +8466,7 @@ function FullscreenModalHeader(_ref) {
|
|
|
8333
8466
|
left = _ref.left,
|
|
8334
8467
|
_ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
|
|
8335
8468
|
shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
|
|
8336
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8469
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
8337
8470
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
8338
8471
|
top = _useSafeAreaInsets.top;
|
|
8339
8472
|
var hasRight = Boolean(right);
|
|
@@ -8708,7 +8841,7 @@ var getButtonTypeAndVariant = function (iconColor) {
|
|
|
8708
8841
|
}
|
|
8709
8842
|
};
|
|
8710
8843
|
|
|
8711
|
-
var _excluded$
|
|
8844
|
+
var _excluded$b = ["color", "ariaLabel"];
|
|
8712
8845
|
/**
|
|
8713
8846
|
* @deprecated IconButton should only be used as a navigation button
|
|
8714
8847
|
* Other use cases should use a <Button> component with an icon
|
|
@@ -8717,7 +8850,7 @@ function IconButton(_ref) {
|
|
|
8717
8850
|
var _ref$color = _ref.color,
|
|
8718
8851
|
color = _ref$color === void 0 ? 'black' : _ref$color;
|
|
8719
8852
|
_ref.ariaLabel;
|
|
8720
|
-
var props = _objectWithoutProperties(_ref, _excluded$
|
|
8853
|
+
var props = _objectWithoutProperties(_ref, _excluded$b);
|
|
8721
8854
|
var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
|
|
8722
8855
|
legacyColorToType = _getButtonTypeAndVari.type,
|
|
8723
8856
|
legacyColorToVariant = _getButtonTypeAndVari.variant;
|
|
@@ -8953,7 +9086,7 @@ var getBackgroundColor = function (_ref) {
|
|
|
8953
9086
|
return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint["default"];
|
|
8954
9087
|
};
|
|
8955
9088
|
|
|
8956
|
-
var _excluded$
|
|
9089
|
+
var _excluded$a = ["onPress", "testID"];
|
|
8957
9090
|
function StaticMapMarker$1(_ref) {
|
|
8958
9091
|
var variant = _ref.variant,
|
|
8959
9092
|
isHovered = _ref.isHovered,
|
|
@@ -9012,7 +9145,7 @@ function StaticMapMarker$1(_ref) {
|
|
|
9012
9145
|
function MapMarker(_ref2) {
|
|
9013
9146
|
var onPress = _ref2.onPress,
|
|
9014
9147
|
testID = _ref2.testID,
|
|
9015
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
9148
|
+
props = _objectWithoutProperties(_ref2, _excluded$a);
|
|
9016
9149
|
return /*#__PURE__*/jsx(Pressable$1, {
|
|
9017
9150
|
testID: testID,
|
|
9018
9151
|
onPress: onPress,
|
|
@@ -9161,6 +9294,7 @@ var overridenNativeBaseSizeandSpaceScale = Object.fromEntries([1, 2, 3, 4, 5, 6,
|
|
|
9161
9294
|
}));
|
|
9162
9295
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
|
|
9163
9296
|
function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
9297
|
+
var _theme$tabBar$solid$d, _theme$tabBar$solid$d2, _theme$tabBar$solid$d3, _theme$tabBar$solid$d4, _theme$tabBar$solid$d5, _theme$tabBar$solid$d6, _theme$tabBar$solid$d7, _theme$tabBar$solid$d8, _theme$tabBar$solid$r, _theme$tabBar$solid$r2, _theme$tabBar$solid$r3, _theme$tabBar$solid$r4, _theme$tabBar$solid$r5, _theme$tabBar$solid$r6, _theme$tabBar$solid$r7, _theme$tabBar$solid$r8;
|
|
9164
9298
|
var spaces = createKittSpaces(theme);
|
|
9165
9299
|
var appBreakpoints = (appTheme === null || appTheme === void 0 ? void 0 : appTheme.breakpoints) || {};
|
|
9166
9300
|
var extendedTheme = extendTheme({
|
|
@@ -9863,6 +9997,148 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9863
9997
|
backgroundColor: theme.picker.web.optionsContainer.backgroundColor
|
|
9864
9998
|
}
|
|
9865
9999
|
}
|
|
10000
|
+
},
|
|
10001
|
+
tabBar: {
|
|
10002
|
+
underline: {
|
|
10003
|
+
"default": {
|
|
10004
|
+
active: {
|
|
10005
|
+
color: {
|
|
10006
|
+
"default": theme.tabBar.underline["default"].active.color["default"],
|
|
10007
|
+
focused: theme.tabBar.underline["default"].active.color.focused,
|
|
10008
|
+
hovered: theme.tabBar.underline["default"].active.color.hovered,
|
|
10009
|
+
pressed: theme.tabBar.underline["default"].active.color.pressed
|
|
10010
|
+
},
|
|
10011
|
+
indicator: {
|
|
10012
|
+
backgroundColor: theme.tabBar.underline["default"].active.indicator.backgroundColor
|
|
10013
|
+
}
|
|
10014
|
+
},
|
|
10015
|
+
inactive: {
|
|
10016
|
+
color: {
|
|
10017
|
+
"default": theme.tabBar.underline["default"].inactive.color["default"],
|
|
10018
|
+
focused: theme.tabBar.underline["default"].inactive.color.focused,
|
|
10019
|
+
hovered: theme.tabBar.underline["default"].inactive.color.hovered,
|
|
10020
|
+
pressed: theme.tabBar.underline["default"].inactive.color.pressed
|
|
10021
|
+
}
|
|
10022
|
+
},
|
|
10023
|
+
disabled: {
|
|
10024
|
+
color: {
|
|
10025
|
+
"default": theme.tabBar.underline["default"].disabled.color["default"],
|
|
10026
|
+
focused: theme.tabBar.underline["default"].disabled.color.focused,
|
|
10027
|
+
hovered: theme.tabBar.underline["default"].disabled.color.hovered,
|
|
10028
|
+
pressed: theme.tabBar.underline["default"].disabled.color.pressed
|
|
10029
|
+
}
|
|
10030
|
+
},
|
|
10031
|
+
borderBottomColor: theme.tabBar.underline["default"].borderBottomColor
|
|
10032
|
+
},
|
|
10033
|
+
revert: {
|
|
10034
|
+
active: {
|
|
10035
|
+
color: {
|
|
10036
|
+
"default": theme.tabBar.underline.revert.active.color["default"],
|
|
10037
|
+
focused: theme.tabBar.underline.revert.active.color.focused,
|
|
10038
|
+
hovered: theme.tabBar.underline.revert.active.color.hovered,
|
|
10039
|
+
pressed: theme.tabBar.underline.revert.active.color.pressed
|
|
10040
|
+
},
|
|
10041
|
+
indicator: {
|
|
10042
|
+
backgroundColor: theme.tabBar.underline.revert.active.indicator.backgroundColor
|
|
10043
|
+
}
|
|
10044
|
+
},
|
|
10045
|
+
inactive: {
|
|
10046
|
+
color: {
|
|
10047
|
+
"default": theme.tabBar.underline.revert.inactive.color["default"],
|
|
10048
|
+
focused: theme.tabBar.underline.revert.inactive.color.focused,
|
|
10049
|
+
hovered: theme.tabBar.underline.revert.inactive.color.hovered,
|
|
10050
|
+
pressed: theme.tabBar.underline.revert.inactive.color.pressed
|
|
10051
|
+
}
|
|
10052
|
+
},
|
|
10053
|
+
disabled: {
|
|
10054
|
+
color: {
|
|
10055
|
+
"default": theme.tabBar.underline.revert.disabled.color["default"],
|
|
10056
|
+
focused: theme.tabBar.underline.revert.disabled.color.focused,
|
|
10057
|
+
hovered: theme.tabBar.underline.revert.disabled.color.hovered,
|
|
10058
|
+
pressed: theme.tabBar.underline.revert.disabled.color.pressed
|
|
10059
|
+
}
|
|
10060
|
+
},
|
|
10061
|
+
borderBottomColor: theme.tabBar.underline.revert.borderBottomColor
|
|
10062
|
+
}
|
|
10063
|
+
},
|
|
10064
|
+
solid: {
|
|
10065
|
+
"default": {
|
|
10066
|
+
active: {
|
|
10067
|
+
color: {
|
|
10068
|
+
"default": theme.tabBar.solid["default"].active.color["default"],
|
|
10069
|
+
focused: theme.tabBar.solid["default"].active.color.focused,
|
|
10070
|
+
hovered: theme.tabBar.solid["default"].active.color.hovered,
|
|
10071
|
+
pressed: theme.tabBar.solid["default"].active.color.pressed
|
|
10072
|
+
},
|
|
10073
|
+
backgroundColor: {
|
|
10074
|
+
"default": (_theme$tabBar$solid$d = theme.tabBar.solid["default"].active.backgroundColor) === null || _theme$tabBar$solid$d === void 0 ? void 0 : _theme$tabBar$solid$d["default"],
|
|
10075
|
+
focused: (_theme$tabBar$solid$d2 = theme.tabBar.solid["default"].active.backgroundColor) === null || _theme$tabBar$solid$d2 === void 0 ? void 0 : _theme$tabBar$solid$d2.focused,
|
|
10076
|
+
hovered: (_theme$tabBar$solid$d3 = theme.tabBar.solid["default"].active.backgroundColor) === null || _theme$tabBar$solid$d3 === void 0 ? void 0 : _theme$tabBar$solid$d3.hovered,
|
|
10077
|
+
pressed: (_theme$tabBar$solid$d4 = theme.tabBar.solid["default"].active.backgroundColor) === null || _theme$tabBar$solid$d4 === void 0 ? void 0 : _theme$tabBar$solid$d4.pressed
|
|
10078
|
+
}
|
|
10079
|
+
},
|
|
10080
|
+
inactive: {
|
|
10081
|
+
color: {
|
|
10082
|
+
"default": theme.tabBar.solid["default"].inactive.color["default"],
|
|
10083
|
+
focused: theme.tabBar.solid["default"].inactive.color.focused,
|
|
10084
|
+
hovered: theme.tabBar.solid["default"].inactive.color.hovered,
|
|
10085
|
+
pressed: theme.tabBar.solid["default"].inactive.color.pressed
|
|
10086
|
+
},
|
|
10087
|
+
backgroundColor: {
|
|
10088
|
+
"default": (_theme$tabBar$solid$d5 = theme.tabBar.solid["default"].inactive.backgroundColor) === null || _theme$tabBar$solid$d5 === void 0 ? void 0 : _theme$tabBar$solid$d5["default"],
|
|
10089
|
+
focused: (_theme$tabBar$solid$d6 = theme.tabBar.solid["default"].inactive.backgroundColor) === null || _theme$tabBar$solid$d6 === void 0 ? void 0 : _theme$tabBar$solid$d6.focused,
|
|
10090
|
+
hovered: (_theme$tabBar$solid$d7 = theme.tabBar.solid["default"].inactive.backgroundColor) === null || _theme$tabBar$solid$d7 === void 0 ? void 0 : _theme$tabBar$solid$d7.hovered,
|
|
10091
|
+
pressed: (_theme$tabBar$solid$d8 = theme.tabBar.solid["default"].inactive.backgroundColor) === null || _theme$tabBar$solid$d8 === void 0 ? void 0 : _theme$tabBar$solid$d8.pressed
|
|
10092
|
+
}
|
|
10093
|
+
},
|
|
10094
|
+
disabled: {
|
|
10095
|
+
color: {
|
|
10096
|
+
"default": theme.tabBar.solid["default"].disabled.color["default"],
|
|
10097
|
+
focused: theme.tabBar.solid["default"].disabled.color.focused,
|
|
10098
|
+
hovered: theme.tabBar.solid["default"].disabled.color.hovered,
|
|
10099
|
+
pressed: theme.tabBar.solid["default"].disabled.color.pressed
|
|
10100
|
+
}
|
|
10101
|
+
}
|
|
10102
|
+
},
|
|
10103
|
+
revert: {
|
|
10104
|
+
active: {
|
|
10105
|
+
color: {
|
|
10106
|
+
"default": theme.tabBar.solid.revert.active.color["default"],
|
|
10107
|
+
focused: theme.tabBar.solid.revert.active.color.focused,
|
|
10108
|
+
hovered: theme.tabBar.solid.revert.active.color.hovered,
|
|
10109
|
+
pressed: theme.tabBar.solid.revert.active.color.pressed
|
|
10110
|
+
},
|
|
10111
|
+
backgroundColor: {
|
|
10112
|
+
"default": (_theme$tabBar$solid$r = theme.tabBar.solid.revert.active.backgroundColor) === null || _theme$tabBar$solid$r === void 0 ? void 0 : _theme$tabBar$solid$r["default"],
|
|
10113
|
+
focused: (_theme$tabBar$solid$r2 = theme.tabBar.solid.revert.active.backgroundColor) === null || _theme$tabBar$solid$r2 === void 0 ? void 0 : _theme$tabBar$solid$r2.focused,
|
|
10114
|
+
hovered: (_theme$tabBar$solid$r3 = theme.tabBar.solid.revert.active.backgroundColor) === null || _theme$tabBar$solid$r3 === void 0 ? void 0 : _theme$tabBar$solid$r3.hovered,
|
|
10115
|
+
pressed: (_theme$tabBar$solid$r4 = theme.tabBar.solid.revert.active.backgroundColor) === null || _theme$tabBar$solid$r4 === void 0 ? void 0 : _theme$tabBar$solid$r4.pressed
|
|
10116
|
+
}
|
|
10117
|
+
},
|
|
10118
|
+
inactive: {
|
|
10119
|
+
color: {
|
|
10120
|
+
"default": theme.tabBar.solid.revert.inactive.color["default"],
|
|
10121
|
+
focused: theme.tabBar.solid.revert.inactive.color.focused,
|
|
10122
|
+
hovered: theme.tabBar.solid.revert.inactive.color.hovered,
|
|
10123
|
+
pressed: theme.tabBar.solid.revert.inactive.color.pressed
|
|
10124
|
+
},
|
|
10125
|
+
backgroundColor: {
|
|
10126
|
+
"default": (_theme$tabBar$solid$r5 = theme.tabBar.solid.revert.inactive.backgroundColor) === null || _theme$tabBar$solid$r5 === void 0 ? void 0 : _theme$tabBar$solid$r5["default"],
|
|
10127
|
+
focused: (_theme$tabBar$solid$r6 = theme.tabBar.solid.revert.inactive.backgroundColor) === null || _theme$tabBar$solid$r6 === void 0 ? void 0 : _theme$tabBar$solid$r6.focused,
|
|
10128
|
+
hovered: (_theme$tabBar$solid$r7 = theme.tabBar.solid.revert.inactive.backgroundColor) === null || _theme$tabBar$solid$r7 === void 0 ? void 0 : _theme$tabBar$solid$r7.hovered,
|
|
10129
|
+
pressed: (_theme$tabBar$solid$r8 = theme.tabBar.solid.revert.inactive.backgroundColor) === null || _theme$tabBar$solid$r8 === void 0 ? void 0 : _theme$tabBar$solid$r8.pressed
|
|
10130
|
+
}
|
|
10131
|
+
},
|
|
10132
|
+
disabled: {
|
|
10133
|
+
color: {
|
|
10134
|
+
"default": theme.tabBar.solid.revert.disabled.color["default"],
|
|
10135
|
+
focused: theme.tabBar.solid.revert.disabled.color.focused,
|
|
10136
|
+
hovered: theme.tabBar.solid.revert.disabled.color.hovered,
|
|
10137
|
+
pressed: theme.tabBar.solid.revert.disabled.color.pressed
|
|
10138
|
+
}
|
|
10139
|
+
}
|
|
10140
|
+
}
|
|
10141
|
+
}
|
|
9866
10142
|
}
|
|
9867
10143
|
}),
|
|
9868
10144
|
app: appTheme === null || appTheme === void 0 ? void 0 : appTheme.colors
|
|
@@ -9938,6 +10214,44 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9938
10214
|
highlight: {
|
|
9939
10215
|
borderRadius: theme.highlight.borderRadius
|
|
9940
10216
|
},
|
|
10217
|
+
tabBar: {
|
|
10218
|
+
underline: {
|
|
10219
|
+
"default": {
|
|
10220
|
+
active: {
|
|
10221
|
+
borderRadius: theme.tabBar.underline["default"].active.borderRadius
|
|
10222
|
+
},
|
|
10223
|
+
inactive: {
|
|
10224
|
+
borderRadius: theme.tabBar.underline["default"].inactive.borderRadius
|
|
10225
|
+
}
|
|
10226
|
+
},
|
|
10227
|
+
revert: {
|
|
10228
|
+
active: {
|
|
10229
|
+
borderRadius: theme.tabBar.underline.revert.active.borderRadius
|
|
10230
|
+
},
|
|
10231
|
+
inactive: {
|
|
10232
|
+
borderRadius: theme.tabBar.underline.revert.inactive.borderRadius
|
|
10233
|
+
}
|
|
10234
|
+
}
|
|
10235
|
+
},
|
|
10236
|
+
solid: {
|
|
10237
|
+
"default": {
|
|
10238
|
+
active: {
|
|
10239
|
+
borderRadius: theme.tabBar.solid["default"].active.borderRadius
|
|
10240
|
+
},
|
|
10241
|
+
inactive: {
|
|
10242
|
+
borderRadius: theme.tabBar.solid["default"].inactive.borderRadius
|
|
10243
|
+
}
|
|
10244
|
+
},
|
|
10245
|
+
revert: {
|
|
10246
|
+
active: {
|
|
10247
|
+
borderRadius: theme.tabBar.solid.revert.active.borderRadius
|
|
10248
|
+
},
|
|
10249
|
+
inactive: {
|
|
10250
|
+
borderRadius: theme.tabBar.solid.revert.inactive.borderRadius
|
|
10251
|
+
}
|
|
10252
|
+
}
|
|
10253
|
+
}
|
|
10254
|
+
},
|
|
9941
10255
|
tag: {
|
|
9942
10256
|
borderRadius: theme.tag.borderRadius
|
|
9943
10257
|
},
|
|
@@ -11573,7 +11887,7 @@ NavigationBottomSheet.Header = NavigationBottomSheetHeader;
|
|
|
11573
11887
|
NavigationBottomSheet.Body = NavigationBottomSheetBody;
|
|
11574
11888
|
NavigationBottomSheet.Footer = NavigationBottomSheetFooter;
|
|
11575
11889
|
|
|
11576
|
-
var _excluded$
|
|
11890
|
+
var _excluded$9 = ["children", "visible", "appear", "onExited", "onEnter", "onExit", "onClose"];
|
|
11577
11891
|
function NavigationModalBehaviour(_ref) {
|
|
11578
11892
|
var children = _ref.children,
|
|
11579
11893
|
visible = _ref.visible,
|
|
@@ -11583,7 +11897,7 @@ function NavigationModalBehaviour(_ref) {
|
|
|
11583
11897
|
onEnter = _ref.onEnter,
|
|
11584
11898
|
onExit = _ref.onExit,
|
|
11585
11899
|
onClose = _ref.onClose,
|
|
11586
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11900
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
11587
11901
|
var AnimationComponent = useBreakpointValue({
|
|
11588
11902
|
base: FullscreenModalAnimation,
|
|
11589
11903
|
small: CardModalAnimation
|
|
@@ -12176,7 +12490,7 @@ function SkeletonContent(_ref) {
|
|
|
12176
12490
|
});
|
|
12177
12491
|
}
|
|
12178
12492
|
|
|
12179
|
-
var _excluded$
|
|
12493
|
+
var _excluded$8 = ["isLoading", "style"],
|
|
12180
12494
|
_excluded2$1 = ["size"],
|
|
12181
12495
|
_excluded3$1 = ["size"],
|
|
12182
12496
|
_excluded4$1 = ["size"];
|
|
@@ -12184,7 +12498,7 @@ function Skeleton(_ref) {
|
|
|
12184
12498
|
var _ref$isLoading = _ref.isLoading,
|
|
12185
12499
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
12186
12500
|
style = _ref.style,
|
|
12187
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
12501
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
12188
12502
|
var _useState = useState(0),
|
|
12189
12503
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12190
12504
|
width = _useState2[0],
|
|
@@ -12363,7 +12677,7 @@ function getShouldDisplay2x() {
|
|
|
12363
12677
|
return currentDevicePixelRatio > 1;
|
|
12364
12678
|
}
|
|
12365
12679
|
|
|
12366
|
-
var _excluded$
|
|
12680
|
+
var _excluded$7 = ["width", "height", "alt", "apiToken", "mapId", "marker", "center", "onLoaded", "onError"];
|
|
12367
12681
|
var mapBoxMaxPictureWidth = 1280;
|
|
12368
12682
|
|
|
12369
12683
|
// Mapbox requestable width for image is between 1 - 1280px
|
|
@@ -12381,7 +12695,7 @@ function StaticMap(_ref) {
|
|
|
12381
12695
|
center = _ref.center,
|
|
12382
12696
|
onLoaded = _ref.onLoaded,
|
|
12383
12697
|
onError = _ref.onError,
|
|
12384
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
12698
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
12385
12699
|
var _useState = useState(getPictureWidth(width)),
|
|
12386
12700
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12387
12701
|
currentWidth = _useState2[0],
|
|
@@ -12471,12 +12785,12 @@ StaticMap.Loader = StaticMapLoader;
|
|
|
12471
12785
|
StaticMap.Error = StaticMapError;
|
|
12472
12786
|
StaticMap.Marker = StaticMapMarker;
|
|
12473
12787
|
|
|
12474
|
-
var _excluded$
|
|
12788
|
+
var _excluded$6 = ["direction", "wrap"];
|
|
12475
12789
|
function Flex(_ref) {
|
|
12476
12790
|
var direction = _ref.direction,
|
|
12477
12791
|
_ref$wrap = _ref.wrap,
|
|
12478
12792
|
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
12479
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
12793
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
12480
12794
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
12481
12795
|
flexDirection: direction,
|
|
12482
12796
|
flexWrap: wrap
|
|
@@ -12614,7 +12928,7 @@ function Story(_ref) {
|
|
|
12614
12928
|
});
|
|
12615
12929
|
}
|
|
12616
12930
|
|
|
12617
|
-
var _excluded$
|
|
12931
|
+
var _excluded$5 = ["title", "children", "internalIsDemoSection"],
|
|
12618
12932
|
_excluded2 = ["title", "children"],
|
|
12619
12933
|
_excluded3 = ["title", "children"],
|
|
12620
12934
|
_excluded4 = ["children"];
|
|
@@ -12622,7 +12936,7 @@ function StorySection(_ref) {
|
|
|
12622
12936
|
var title = _ref.title,
|
|
12623
12937
|
children = _ref.children,
|
|
12624
12938
|
internalIsDemoSection = _ref.internalIsDemoSection,
|
|
12625
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
12939
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
12626
12940
|
if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
|
|
12627
12941
|
return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
|
|
12628
12942
|
marginBottom: "kitt.8"
|
|
@@ -12762,99 +13076,100 @@ var StoryGrid = {
|
|
|
12762
13076
|
Col: StoryGridCol
|
|
12763
13077
|
};
|
|
12764
13078
|
|
|
12765
|
-
function
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
}
|
|
12781
|
-
}
|
|
12782
|
-
}
|
|
12783
|
-
function useTabBarIndicatorColor(color, isActive) {
|
|
12784
|
-
var _useKittTheme2 = useKittTheme(),
|
|
12785
|
-
kittTheme = _useKittTheme2.kitt;
|
|
12786
|
-
switch (color) {
|
|
12787
|
-
case 'black':
|
|
12788
|
-
{
|
|
12789
|
-
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
12790
|
-
}
|
|
12791
|
-
case 'white':
|
|
12792
|
-
{
|
|
12793
|
-
return isActive ? kittTheme.palettes.deepPurple.white : kittTheme.palettes.deepPurple.transparent;
|
|
12794
|
-
}
|
|
12795
|
-
default:
|
|
12796
|
-
{
|
|
12797
|
-
return isActive ? kittTheme.colors.primary : kittTheme.palettes.deepPurple.transparent;
|
|
12798
|
-
}
|
|
12799
|
-
}
|
|
12800
|
-
}
|
|
13079
|
+
var getVariantFromColor = function (color) {
|
|
13080
|
+
if (color === 'white') return 'revert';
|
|
13081
|
+
return 'default';
|
|
13082
|
+
};
|
|
13083
|
+
var getTabBarItemActiveState = function (isActive, disabled) {
|
|
13084
|
+
if (disabled) return 'disabled';
|
|
13085
|
+
if (isActive) return 'active';
|
|
13086
|
+
return 'inactive';
|
|
13087
|
+
};
|
|
13088
|
+
var getTabBarItemState = function (isHovered, isPressed, isFocused) {
|
|
13089
|
+
if (isHovered) return 'hovered';
|
|
13090
|
+
if (isPressed) return 'pressed';
|
|
13091
|
+
if (isFocused) return 'focused';
|
|
13092
|
+
return 'default';
|
|
13093
|
+
};
|
|
12801
13094
|
function TabBarItem(_ref) {
|
|
12802
13095
|
var name = _ref.name,
|
|
12803
13096
|
icon = _ref.icon,
|
|
12804
|
-
_ref$
|
|
12805
|
-
|
|
13097
|
+
_ref$variant = _ref.variant,
|
|
13098
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
13099
|
+
_ref$type = _ref.type,
|
|
13100
|
+
type = _ref$type === void 0 ? 'underline' : _ref$type,
|
|
13101
|
+
color = _ref.color,
|
|
12806
13102
|
testID = _ref.testID,
|
|
13103
|
+
disabled = _ref.disabled,
|
|
12807
13104
|
_ref$isActive = _ref.isActive,
|
|
12808
13105
|
isActive = _ref$isActive === void 0 ? false : _ref$isActive,
|
|
13106
|
+
_ref$isFocusedInterna = _ref.isFocusedInternal,
|
|
13107
|
+
isFocusedInternal = _ref$isFocusedInterna === void 0 ? false : _ref$isFocusedInterna,
|
|
13108
|
+
_ref$isHoveredInterna = _ref.isHoveredInternal,
|
|
13109
|
+
isHoveredInternal = _ref$isHoveredInterna === void 0 ? false : _ref$isHoveredInterna,
|
|
13110
|
+
_ref$isPressedInterna = _ref.isPressedInternal,
|
|
13111
|
+
isPressedInternal = _ref$isPressedInterna === void 0 ? false : _ref$isPressedInterna,
|
|
12809
13112
|
onPress = _ref.onPress;
|
|
12810
|
-
|
|
12811
|
-
var
|
|
13113
|
+
// Keep backward compatibility with color property
|
|
13114
|
+
var definedVariant = color ? getVariantFromColor(color) : variant;
|
|
13115
|
+
var activeState = getTabBarItemActiveState(isActive, disabled);
|
|
13116
|
+
var baseTheme = "kitt.tabBar.".concat(type, ".").concat(definedVariant, ".").concat(activeState);
|
|
12812
13117
|
return /*#__PURE__*/jsx(Pressable, {
|
|
13118
|
+
disabled: disabled,
|
|
12813
13119
|
testID: testID,
|
|
12814
13120
|
onPress: onPress,
|
|
12815
|
-
children:
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
13121
|
+
children: function children(_ref2) {
|
|
13122
|
+
var isHovered = _ref2.isHovered,
|
|
13123
|
+
isPressed = _ref2.isPressed,
|
|
13124
|
+
isFocused = _ref2.isFocused;
|
|
13125
|
+
var state = getTabBarItemState(isHovered || isHoveredInternal, isPressed || isPressedInternal, isFocused || isFocusedInternal);
|
|
13126
|
+
return /*#__PURE__*/jsxs(HStack, {
|
|
13127
|
+
alignItems: "center",
|
|
13128
|
+
position: "relative",
|
|
13129
|
+
paddingY: "kitt.2",
|
|
13130
|
+
paddingRight: "kitt.2",
|
|
13131
|
+
paddingLeft: icon ? undefined : 'kitt.2',
|
|
13132
|
+
backgroundColor: "".concat(baseTheme, ".backgroundColor.").concat(state),
|
|
13133
|
+
borderRadius: "".concat(baseTheme, ".borderRadius"),
|
|
13134
|
+
children: [icon ? /*#__PURE__*/jsx(View, {
|
|
13135
|
+
marginRight: "kitt.2",
|
|
13136
|
+
children: /*#__PURE__*/jsx(TypographyIcon, {
|
|
13137
|
+
color: "".concat(baseTheme, ".color.").concat(state),
|
|
13138
|
+
icon: icon
|
|
13139
|
+
})
|
|
13140
|
+
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
13141
|
+
base: "label-large",
|
|
13142
|
+
numberOfLines: 1,
|
|
13143
|
+
color: "".concat(baseTheme, ".color.").concat(state),
|
|
13144
|
+
children: name
|
|
13145
|
+
}), type !== 'solid' ? /*#__PURE__*/jsx(View, {
|
|
13146
|
+
backgroundColor: "".concat(baseTheme, ".indicator.backgroundColor"),
|
|
13147
|
+
position: "absolute",
|
|
13148
|
+
bottom: -1 // in order to be over tab bar's border bottom
|
|
13149
|
+
,
|
|
13150
|
+
left: 0,
|
|
13151
|
+
right: 0,
|
|
13152
|
+
height: 2
|
|
13153
|
+
}) : null]
|
|
13154
|
+
});
|
|
13155
|
+
}
|
|
12840
13156
|
});
|
|
12841
13157
|
}
|
|
12842
13158
|
|
|
12843
|
-
var _excluded$5 = ["tabs", "color", "align", "activeTabIndex", "renderTabItem", "onChangeTab"];
|
|
12844
13159
|
function TabBar(_ref) {
|
|
12845
13160
|
var tabs = _ref.tabs,
|
|
12846
|
-
_ref$
|
|
12847
|
-
|
|
13161
|
+
_ref$variant = _ref.variant,
|
|
13162
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
13163
|
+
_ref$type = _ref.type,
|
|
13164
|
+
type = _ref$type === void 0 ? 'underline' : _ref$type,
|
|
12848
13165
|
_ref$align = _ref.align,
|
|
12849
13166
|
align = _ref$align === void 0 ? 'left' : _ref$align,
|
|
13167
|
+
color = _ref.color,
|
|
12850
13168
|
_ref$activeTabIndex = _ref.activeTabIndex,
|
|
12851
13169
|
activeTabIndex = _ref$activeTabIndex === void 0 ? 0 : _ref$activeTabIndex,
|
|
12852
13170
|
renderTabItem = _ref.renderTabItem,
|
|
12853
|
-
onChangeTab = _ref.onChangeTab
|
|
12854
|
-
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
13171
|
+
onChangeTab = _ref.onChangeTab;
|
|
12855
13172
|
var sx = useSx();
|
|
12856
|
-
var _useKittTheme = useKittTheme(),
|
|
12857
|
-
kittTheme = _useKittTheme.kitt;
|
|
12858
13173
|
var tabItems = tabs.map(function (tab, index) {
|
|
12859
13174
|
return renderTabItem({
|
|
12860
13175
|
tab: tab,
|
|
@@ -12862,26 +13177,36 @@ function TabBar(_ref) {
|
|
|
12862
13177
|
isActive: activeTabIndex === index
|
|
12863
13178
|
});
|
|
12864
13179
|
});
|
|
12865
|
-
var
|
|
13180
|
+
var styles = {
|
|
12866
13181
|
justifyContent: align,
|
|
12867
13182
|
paddingRight: align === 'center' ? 'kitt.2' : 'kitt.12',
|
|
12868
|
-
minWidth: '100%'
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
13183
|
+
minWidth: '100%'
|
|
13184
|
+
};
|
|
13185
|
+
|
|
13186
|
+
// Keep backward compatibility with color property
|
|
13187
|
+
var definedVariant = color ? getVariantFromColor(color) : variant;
|
|
13188
|
+
if (type !== 'solid') {
|
|
13189
|
+
styles = _objectSpread(_objectSpread({}, styles), {}, {
|
|
13190
|
+
borderBottomWidth: 1,
|
|
13191
|
+
borderBottomColor: "kitt.tabBar.".concat(type, ".").concat(definedVariant, ".borderBottomColor")
|
|
13192
|
+
});
|
|
13193
|
+
}
|
|
13194
|
+
var scrollViewStyles = sx(styles);
|
|
13195
|
+
var space = type === 'solid' ? 'kitt.2' : 'kitt.4';
|
|
12872
13196
|
return /*#__PURE__*/jsx(ScrollView, {
|
|
12873
13197
|
horizontal: true,
|
|
12874
13198
|
showsHorizontalScrollIndicator: false,
|
|
12875
13199
|
contentContainerStyle: scrollViewStyles,
|
|
12876
|
-
children: /*#__PURE__*/jsx(HStack,
|
|
12877
|
-
space: align === 'center' ? 'kitt.16' :
|
|
12878
|
-
}, props), {}, {
|
|
13200
|
+
children: /*#__PURE__*/jsx(HStack, {
|
|
13201
|
+
space: align === 'center' ? 'kitt.16' : space,
|
|
12879
13202
|
children: Children.map(tabItems, function (child, index) {
|
|
12880
13203
|
var tab = tabs[index];
|
|
12881
13204
|
if (!tab) throw new Error("TabBar: tab is undefined at index ".concat(index));
|
|
12882
13205
|
return /*#__PURE__*/jsx(View, {
|
|
12883
13206
|
children: /*#__PURE__*/cloneElement(child, {
|
|
12884
13207
|
color: color,
|
|
13208
|
+
variant: definedVariant,
|
|
13209
|
+
type: type,
|
|
12885
13210
|
onPress: function onPress(event) {
|
|
12886
13211
|
var _child$props$onPress, _child$props;
|
|
12887
13212
|
onChangeTab({
|
|
@@ -12893,7 +13218,7 @@ function TabBar(_ref) {
|
|
|
12893
13218
|
})
|
|
12894
13219
|
}, tab.key);
|
|
12895
13220
|
})
|
|
12896
|
-
})
|
|
13221
|
+
})
|
|
12897
13222
|
});
|
|
12898
13223
|
}
|
|
12899
13224
|
TabBar.Item = TabBarItem;
|