@ornikar/kitt-universal 7.1.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definitions/Button/BaseStyledButtonPressable.d.ts +1 -0
- package/dist/definitions/Button/BaseStyledButtonPressable.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts +1 -0
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
- package/dist/definitions/Overlay/Overlay.d.ts +1 -2
- package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
- package/dist/definitions/PageLoader/AnimatedBackgroundCircle.d.ts +3 -0
- package/dist/definitions/PageLoader/AnimatedBackgroundCircle.d.ts.map +1 -0
- package/dist/definitions/PageLoader/AnimatedFillCircle.d.ts +3 -0
- package/dist/definitions/PageLoader/AnimatedFillCircle.d.ts.map +1 -0
- package/dist/definitions/PageLoader/AnimatedFillCircleContainer.d.ts +8 -0
- package/dist/definitions/PageLoader/AnimatedFillCircleContainer.d.ts.map +1 -0
- package/dist/definitions/PageLoader/AnimatedLoaderCircle.d.ts +10 -0
- package/dist/definitions/PageLoader/AnimatedLoaderCircle.d.ts.map +1 -0
- package/dist/definitions/PageLoader/PageLoader.d.ts.map +1 -1
- package/dist/definitions/PageLoader/PageLoader.web.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/DatePickerInputPart.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +2 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/button.d.ts +2 -1
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/colors.d.ts +2 -0
- package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/input.d.ts +2 -2
- package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/pageLoader.d.ts +13 -0
- package/dist/definitions/themes/late-ocean/pageLoader.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +232 -40
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +232 -40
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +232 -40
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +127 -46
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +228 -37
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.css +1 -1
- package/dist/index-node-14.17.cjs.web.js +117 -42
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +37 -12
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +37 -12
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +37 -12
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +37 -12
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +37 -12
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +37 -12
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +9 -4
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
.kitt-u_InputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_InputTextContainer_i1encr9g > [data-focusvisible-polyfill]{outline:none;}.kitt-u_InputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_InputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_InputTextContainer_i1encr9g,.kitt-u_InputTextContainer_i1encr9g > *{cursor:var(--i1encr9g-0);}.kitt-u_InputTextContainer_i1encr9g > *{-webkit-transition:var(--i1encr9g-1);transition:var(--i1encr9g-1);}.kitt-u_InputTextContainer_i1encr9g:hover > *,.kitt-hover .kitt-u_InputTextContainer_i1encr9g > *{border-color:var(--i1encr9g-2);}.kitt-u_InputTextContainer_i1encr9g:focus > *,.kitt-u_InputTextContainer_i1encr9g > *:focus,.kitt-focus .kitt-u_InputTextContainer_i1encr9g > *{border-color:var(--i1encr9g-3);}
|
|
3
3
|
.kitt-u_StyledSpinningIconContainer_ssn8o83{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}.kitt-u_StyledSpinningIconContainer_ssn8o83 > svg{-webkit-animation:spin-kitt-u_StyledSpinningIconContainer_ssn8o83 1.1s infinite linear;animation:spin-kitt-u_StyledSpinningIconContainer_ssn8o83 1.1s infinite linear;}@-webkit-keyframes spin-kitt-u_StyledSpinningIconContainer_ssn8o83{0%{-webkit-transform:rotate(-1deg);-ms-transform:rotate(-1deg);transform:rotate(-1deg);}100%{-webkit-transform:rotate(359deg);-ms-transform:rotate(359deg);transform:rotate(359deg);}}@keyframes spin-kitt-u_StyledSpinningIconContainer_ssn8o83{0%{-webkit-transform:rotate(-1deg);-ms-transform:rotate(-1deg);transform:rotate(-1deg);}100%{-webkit-transform:rotate(359deg);-ms-transform:rotate(359deg);transform:rotate(359deg);}}
|
|
4
4
|
@media (hover:none) and (pointer:coarse){.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-0));-ms-transform:scale(var(--p1nlccvg-0));transform:scale(var(--p1nlccvg-0));}}@media (min-width:768px){.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-2));-ms-transform:scale(var(--p1nlccvg-2));transform:scale(var(--p1nlccvg-2));}}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:active,.kitt-active .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-3));-ms-transform:scale(var(--p1nlccvg-3));transform:scale(var(--p1nlccvg-3));}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > [data-focusvisible-polyfill]{outline:none;}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:focus,.kitt-focus .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > [data-focusvisible-polyfill],.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:active,.kitt-active .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{background-color:var(--p1nlccvg-4);}
|
|
5
|
-
.kitt-u_PageLoaderContainer_ptkwz2j{width:
|
|
5
|
+
.kitt-u_PageLoaderContainer_ptkwz2j{width:var(--ptkwz2j-3);height:var(--ptkwz2j-3);-webkit-transform:scale(-1) rotate(90deg);-ms-transform:scale(-1) rotate(90deg);transform:scale(-1) rotate(90deg);}@-webkit-keyframes PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:var(--ptkwz2j-0);}100%{stroke-dashoffset:0;}}@keyframes PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:var(--ptkwz2j-0);}100%{stroke-dashoffset:0;}}@-webkit-keyframes PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:var(--ptkwz2j-0);}100%{stroke-dashoffset:var(--ptkwz2j-2);}}@keyframes PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:var(--ptkwz2j-0);}100%{stroke-dashoffset:var(--ptkwz2j-2);}}@-webkit-keyframes PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}.kitt-u_PageLoaderContainer_ptkwz2j circle,.kitt-u_PageLoaderContainer_ptkwz2j g{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;}.kitt-u_PageLoaderContainer_ptkwz2j circle{stroke-width:var(--ptkwz2j-5);stroke-dasharray:var(--ptkwz2j-0);stroke-dashoffset:var(--ptkwz2j-0);stroke-linecap:round;}.kitt-u_PageLoaderContainer_ptkwz2j g[data-large-loader='base'] circle{stroke:var(--ptkwz2j-8);-webkit-animation:var(--ptkwz2j-9);animation:var(--ptkwz2j-9);-webkit-animation-name:PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j;animation-name:PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j;}.kitt-u_PageLoaderContainer_ptkwz2j g[data-large-loader='fill']{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;-webkit-animation:var(--ptkwz2j-10);animation:var(--ptkwz2j-10);-webkit-animation-name:PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j;animation-name:PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j;}.kitt-u_PageLoaderContainer_ptkwz2j g[data-large-loader='fill'] circle{stroke:var(--ptkwz2j-11);-webkit-animation:var(--ptkwz2j-12);animation:var(--ptkwz2j-12);-webkit-animation-name:PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j,PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j;animation-name:PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j,PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j;}
|
|
6
6
|
.kitt-u_StyledSkeleton_sc3upcl{background-color:var(--sc3upcl-0);position:relative;overflow:hidden;height:100%;width:100%;}@-webkit-keyframes flareTranslate-kitt-u_StyledSkeleton_sc3upcl{from{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);}to{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}}@keyframes flareTranslate-kitt-u_StyledSkeleton_sc3upcl{from{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);}to{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}}.kitt-u_StyledSkeleton_sc3upcl::after{content:'';position:absolute;width:100%;height:100%;top:0;left:0;background-image:var(--sc3upcl-1);-webkit-animation:var(--sc3upcl-2);animation:var(--sc3upcl-2);-webkit-animation-name:flareTranslate-kitt-u_StyledSkeleton_sc3upcl;animation-name:flareTranslate-kitt-u_StyledSkeleton_sc3upcl;}
|
|
7
7
|
.kitt-u_TypographyLinkWebWrapper_tcwz3nt > *:hover,.kitt-u_TypographyLinkWebWrapper_tcwz3nt > *:active,.kitt-hover .kitt-u_TypographyLinkWebWrapper_tcwz3nt > *{-webkit-text-decoration:none;text-decoration:none;}.kitt-u_TypographyLinkWebWrapper_tcwz3nt > *:hover,.kitt-u_TypographyLinkWebWrapper_tcwz3nt > *:active,.kitt-hover .kitt-u_TypographyLinkWebWrapper_tcwz3nt > *{-webkit-text-decoration:var(--tcwz3nt-0);text-decoration:var(--tcwz3nt-0);}
|
|
@@ -150,10 +150,10 @@ const StyledTypography = /*#__PURE__*/styled__default(BabelPluginStyledComponent
|
|
|
150
150
|
}, ({
|
|
151
151
|
theme,
|
|
152
152
|
$color
|
|
153
|
-
}) =>
|
|
154
|
-
color
|
|
155
|
-
text-decoration-color: $
|
|
156
|
-
|
|
153
|
+
}) => {
|
|
154
|
+
if (!$color) return '';
|
|
155
|
+
return styled.css(["color:", ";text-decoration-color:", ";"], theme.kitt.typography.colors[$color], theme.kitt.typography.colors[$color]);
|
|
156
|
+
});
|
|
157
157
|
function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
|
|
158
158
|
const {
|
|
159
159
|
width
|
|
@@ -544,13 +544,16 @@ const BaseStyledButtonPressable = /*#__PURE__*/styled__default(BabelPluginStyled
|
|
|
544
544
|
}, ({
|
|
545
545
|
theme,
|
|
546
546
|
$isLarge,
|
|
547
|
+
$isXLarge,
|
|
547
548
|
$isDisabled
|
|
548
549
|
}) => {
|
|
549
550
|
const {
|
|
550
551
|
large,
|
|
551
552
|
default: defaultPadding,
|
|
552
|
-
disabled: disabledPadding
|
|
553
|
+
disabled: disabledPadding,
|
|
554
|
+
xLarge
|
|
553
555
|
} = theme.kitt.button.contentPadding;
|
|
556
|
+
if ($isXLarge) return xLarge;
|
|
554
557
|
if ($isLarge) return large;
|
|
555
558
|
if ($isDisabled) return disabledPadding;
|
|
556
559
|
return defaultPadding;
|
|
@@ -603,6 +606,9 @@ const getTextColorByType = (type, variant) => {
|
|
|
603
606
|
case 'subtle-dark':
|
|
604
607
|
return 'black';
|
|
605
608
|
|
|
609
|
+
case 'default':
|
|
610
|
+
return variant === 'ghost' ? 'white' : 'black';
|
|
611
|
+
|
|
606
612
|
default:
|
|
607
613
|
return 'black';
|
|
608
614
|
}
|
|
@@ -750,6 +756,7 @@ function ButtonContent({
|
|
|
750
756
|
});
|
|
751
757
|
}
|
|
752
758
|
|
|
759
|
+
const allowedGhostTypes = ['primary', 'default'];
|
|
753
760
|
const Button = /*#__PURE__*/react.forwardRef(({
|
|
754
761
|
children,
|
|
755
762
|
type = 'default',
|
|
@@ -757,6 +764,7 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
757
764
|
disabled,
|
|
758
765
|
stretch,
|
|
759
766
|
large,
|
|
767
|
+
xLarge,
|
|
760
768
|
icon,
|
|
761
769
|
iconPosition = 'left',
|
|
762
770
|
testID,
|
|
@@ -765,8 +773,8 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
765
773
|
accessibilityRole = 'button',
|
|
766
774
|
onPress
|
|
767
775
|
}, ref) => {
|
|
768
|
-
if ((process.env.NODE_ENV !== "production") && variant === 'ghost' && type
|
|
769
|
-
throw new Error('variant=ghost is only allowed with type=primary');
|
|
776
|
+
if ((process.env.NODE_ENV !== "production") && variant === 'ghost' && !allowedGhostTypes.includes(type)) {
|
|
777
|
+
throw new Error('variant=ghost is only allowed with type=primary or default');
|
|
770
778
|
}
|
|
771
779
|
|
|
772
780
|
return /*#__PURE__*/jsxRuntime.jsx(AnimatedButtonPressable, {
|
|
@@ -785,6 +793,7 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
785
793
|
$variant: variant,
|
|
786
794
|
$isStretch: stretch,
|
|
787
795
|
$isLarge: large,
|
|
796
|
+
$isXLarge: xLarge,
|
|
788
797
|
$isDisabled: disabled,
|
|
789
798
|
children: [/*#__PURE__*/jsxRuntime.jsx(ButtonContent, {
|
|
790
799
|
type: type,
|
|
@@ -911,7 +920,9 @@ const colors = {
|
|
|
911
920
|
warning: lateOceanColorPalette.goldCrayola,
|
|
912
921
|
separator: lateOceanColorPalette.black100,
|
|
913
922
|
hover: lateOceanColorPalette.black100,
|
|
923
|
+
white: lateOceanColorPalette.white,
|
|
914
924
|
black: lateOceanColorPalette.black1000,
|
|
925
|
+
blackAnthracite: lateOceanColorPalette.black800,
|
|
915
926
|
uiBackground: lateOceanColorPalette.black25,
|
|
916
927
|
uiBackgroundLight: lateOceanColorPalette.white,
|
|
917
928
|
transparent: lateOceanColorPalette.transparent,
|
|
@@ -958,6 +969,7 @@ const button = {
|
|
|
958
969
|
contentPadding: {
|
|
959
970
|
default: '7px 16px 7px',
|
|
960
971
|
large: '11px 24px 11px',
|
|
972
|
+
xLarge: '15px 24px 15px',
|
|
961
973
|
disabled: '5px 14px 5px'
|
|
962
974
|
},
|
|
963
975
|
transition: {
|
|
@@ -970,6 +982,15 @@ const button = {
|
|
|
970
982
|
pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
971
983
|
hoverBackgroundColor: 'rgba(0, 0, 0, 0.1)',
|
|
972
984
|
focusBorderColor: 'rgba(0, 0, 0, 0.1)'
|
|
985
|
+
},
|
|
986
|
+
ghost: {
|
|
987
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
988
|
+
pressedBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
989
|
+
hoverBackgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
990
|
+
focusBorderColor: 'rgba(255, 255, 255, 0.4)',
|
|
991
|
+
color: lateOceanColorPalette.white,
|
|
992
|
+
hoverColor: lateOceanColorPalette.white,
|
|
993
|
+
activeColor: lateOceanColorPalette.white
|
|
973
994
|
}
|
|
974
995
|
},
|
|
975
996
|
primary: {
|
|
@@ -1100,16 +1121,16 @@ const createTypographyTypeConfig = (lineHeightMultiplier, baseAndSmallFontSize,
|
|
|
1100
1121
|
});
|
|
1101
1122
|
const typography = {
|
|
1102
1123
|
colors: {
|
|
1103
|
-
black:
|
|
1104
|
-
'black-anthracite':
|
|
1124
|
+
black: colors.black,
|
|
1125
|
+
'black-anthracite': colors.blackAnthracite,
|
|
1105
1126
|
'black-light': lateOceanColorPalette.black555,
|
|
1106
|
-
white:
|
|
1107
|
-
'white-light':
|
|
1108
|
-
primary:
|
|
1109
|
-
'primary-light':
|
|
1110
|
-
accent:
|
|
1111
|
-
success:
|
|
1112
|
-
danger:
|
|
1127
|
+
white: colors.white,
|
|
1128
|
+
'white-light': colors.white,
|
|
1129
|
+
primary: colors.primary,
|
|
1130
|
+
'primary-light': colors.primaryLight,
|
|
1131
|
+
accent: colors.accent,
|
|
1132
|
+
success: colors.success,
|
|
1133
|
+
danger: colors.danger
|
|
1113
1134
|
},
|
|
1114
1135
|
types: {
|
|
1115
1136
|
headers: {
|
|
@@ -1205,8 +1226,8 @@ const input = {
|
|
|
1205
1226
|
size: 20
|
|
1206
1227
|
},
|
|
1207
1228
|
padding: {
|
|
1208
|
-
|
|
1209
|
-
|
|
1229
|
+
horizontal: 16,
|
|
1230
|
+
vertical: 5
|
|
1210
1231
|
},
|
|
1211
1232
|
transition: {
|
|
1212
1233
|
property: 'border-color',
|
|
@@ -1321,7 +1342,20 @@ const listItem = {
|
|
|
1321
1342
|
};
|
|
1322
1343
|
|
|
1323
1344
|
const pageLoader = {
|
|
1324
|
-
size: 60
|
|
1345
|
+
size: 60,
|
|
1346
|
+
strokeWidth: 3,
|
|
1347
|
+
colors: {
|
|
1348
|
+
base: colors.separator,
|
|
1349
|
+
fill: colors.primary
|
|
1350
|
+
},
|
|
1351
|
+
animation: {
|
|
1352
|
+
delay: 500,
|
|
1353
|
+
circleBackgroundFillDuration: 1000,
|
|
1354
|
+
filledCircleFillDuration: 1800,
|
|
1355
|
+
groupFilledCircleRotationDuration: 1800,
|
|
1356
|
+
filledCircleRotationDuration: 2160,
|
|
1357
|
+
fillEasingFunction: [0.39, 0.575, 0.565, 1]
|
|
1358
|
+
}
|
|
1325
1359
|
};
|
|
1326
1360
|
|
|
1327
1361
|
const shadows = {
|
|
@@ -1603,7 +1637,7 @@ const ViewInput = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactN
|
|
|
1603
1637
|
componentId: "kitt-universal__sc-11fmlmi-1"
|
|
1604
1638
|
})(["", " padding:", ";min-height:", "px;min-width:", ";"], styledTextInputMixin, ({
|
|
1605
1639
|
theme
|
|
1606
|
-
}) => theme.kitt.forms.input.padding.
|
|
1640
|
+
}) => `${theme.kitt.forms.input.padding.vertical}px ${theme.kitt.forms.input.padding.horizontal}px`, ({
|
|
1607
1641
|
theme
|
|
1608
1642
|
}) => theme.kitt.forms.input.minHeight, ({
|
|
1609
1643
|
theme,
|
|
@@ -1765,20 +1799,18 @@ const StyledTextInput = /*#__PURE__*/styled__default(BabelPluginStyledComponents
|
|
|
1765
1799
|
theme,
|
|
1766
1800
|
multiline
|
|
1767
1801
|
}) => {
|
|
1768
|
-
if (!multiline && "web"
|
|
1769
|
-
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
return theme.kitt.forms.input.padding.default;
|
|
1802
|
+
if (!multiline && "web" !== 'web') return `0 ${theme.kitt.forms.input.padding.horizontal}px`;
|
|
1803
|
+
return `${theme.kitt.forms.input.padding.vertical}px ${theme.kitt.forms.input.padding.horizontal}px`;
|
|
1773
1804
|
}, ({
|
|
1774
1805
|
theme,
|
|
1775
1806
|
multiline
|
|
1776
1807
|
}) => {
|
|
1777
|
-
if (!multiline && "web"
|
|
1808
|
+
if (!multiline && "web" !== 'web') return 0;
|
|
1778
1809
|
const typeConfigKey = getTypographyTypeConfigKey(theme);
|
|
1779
1810
|
return `${theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight}px`;
|
|
1780
1811
|
}, ({
|
|
1781
|
-
|
|
1812
|
+
theme,
|
|
1813
|
+
$minHeight = theme.kitt.forms.input.minHeight
|
|
1782
1814
|
}) => $minHeight);
|
|
1783
1815
|
const RightInputContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
1784
1816
|
displayName: "InputText__RightInputContainer",
|
|
@@ -1787,7 +1819,7 @@ const RightInputContainer = /*#__PURE__*/styled__default(BabelPluginStyledCompon
|
|
|
1787
1819
|
const InputText = /*#__PURE__*/react.forwardRef(({
|
|
1788
1820
|
id,
|
|
1789
1821
|
right,
|
|
1790
|
-
minHeight
|
|
1822
|
+
minHeight,
|
|
1791
1823
|
state: formState,
|
|
1792
1824
|
internalForceState,
|
|
1793
1825
|
disabled = false,
|
|
@@ -2926,37 +2958,80 @@ const PageLoaderContainer = withTheme( /*#__PURE__*/react$1.styled("div")({
|
|
|
2926
2958
|
class: "kitt-u_PageLoaderContainer_ptkwz2j",
|
|
2927
2959
|
vars: {
|
|
2928
2960
|
"ptkwz2j-0": [({
|
|
2961
|
+
$circlePerimeter
|
|
2962
|
+
}) => $circlePerimeter, "px"],
|
|
2963
|
+
"ptkwz2j-2": [({
|
|
2964
|
+
$circlePerimeter
|
|
2965
|
+
}) => $circlePerimeter * 0.2, "px"],
|
|
2966
|
+
"ptkwz2j-3": [({
|
|
2967
|
+
theme
|
|
2968
|
+
}) => theme.kitt.pageLoader.size, "px"],
|
|
2969
|
+
"ptkwz2j-5": [({
|
|
2929
2970
|
theme
|
|
2930
|
-
}) => theme.kitt.
|
|
2931
|
-
"ptkwz2j-
|
|
2971
|
+
}) => theme.kitt.pageLoader.strokeWidth, "px"],
|
|
2972
|
+
"ptkwz2j-8": [({
|
|
2932
2973
|
theme
|
|
2933
|
-
}) => theme.kitt.colors.
|
|
2974
|
+
}) => theme.kitt.pageLoader.colors.base],
|
|
2975
|
+
"ptkwz2j-9": [({
|
|
2976
|
+
theme
|
|
2977
|
+
}) => {
|
|
2978
|
+
const {
|
|
2979
|
+
animation
|
|
2980
|
+
} = theme.kitt.pageLoader;
|
|
2981
|
+
const [x1, y1, x2, y2] = animation.fillEasingFunction;
|
|
2982
|
+
return `${animation.circleBackgroundFillDuration}ms cubic-bezier(${x1}, ${y1}, ${x2}, ${y2}) ${animation.delay}ms forwards`;
|
|
2983
|
+
}],
|
|
2984
|
+
"ptkwz2j-10": [({
|
|
2985
|
+
theme
|
|
2986
|
+
}) => {
|
|
2987
|
+
const {
|
|
2988
|
+
animation
|
|
2989
|
+
} = theme.kitt.pageLoader;
|
|
2990
|
+
return `${animation.filledCircleFillDuration}ms linear ${animation.delay}ms infinite`;
|
|
2991
|
+
}],
|
|
2992
|
+
"ptkwz2j-11": [({
|
|
2993
|
+
theme
|
|
2994
|
+
}) => theme.kitt.pageLoader.colors.fill],
|
|
2995
|
+
"ptkwz2j-12": [({
|
|
2996
|
+
theme
|
|
2997
|
+
}) => {
|
|
2998
|
+
const {
|
|
2999
|
+
animation
|
|
3000
|
+
} = theme.kitt.pageLoader;
|
|
3001
|
+
const [x1, y1, x2, y2] = animation.fillEasingFunction;
|
|
3002
|
+
const fillAnimation = `${animation.filledCircleFillDuration}ms cubic-bezier(${x1}, ${y1}, ${x2}, ${y2}) ${animation.delay}ms infinite alternate`;
|
|
3003
|
+
const rotationAnimation = `${animation.filledCircleRotationDuration}ms linear ${animation.delay}ms infinite`;
|
|
3004
|
+
return [fillAnimation, rotationAnimation].join(',');
|
|
3005
|
+
}]
|
|
2934
3006
|
}
|
|
2935
3007
|
}));
|
|
2936
3008
|
function PageLoader() {
|
|
2937
3009
|
const theme = /*#__PURE__*/styled.useTheme();
|
|
2938
3010
|
const {
|
|
2939
|
-
size
|
|
3011
|
+
size,
|
|
3012
|
+
strokeWidth
|
|
2940
3013
|
} = theme.kitt.pageLoader;
|
|
3014
|
+
const center = size * 0.5;
|
|
3015
|
+
const radius = center - strokeWidth;
|
|
3016
|
+
const circlePerimeter = 2 * Math.PI * radius;
|
|
3017
|
+
const sharedProps = {
|
|
3018
|
+
cx: center,
|
|
3019
|
+
cy: center,
|
|
3020
|
+
r: radius,
|
|
3021
|
+
fill: 'none'
|
|
3022
|
+
};
|
|
2941
3023
|
return /*#__PURE__*/jsxRuntime.jsx(PageLoaderContainer, {
|
|
3024
|
+
$circlePerimeter: circlePerimeter,
|
|
2942
3025
|
children: /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
2943
3026
|
width: size,
|
|
2944
3027
|
height: size,
|
|
2945
3028
|
children: [/*#__PURE__*/jsxRuntime.jsx("g", {
|
|
2946
3029
|
"data-large-loader": "base",
|
|
2947
|
-
children: /*#__PURE__*/jsxRuntime.jsx("circle", {
|
|
2948
|
-
cx: "30",
|
|
2949
|
-
cy: "30",
|
|
2950
|
-
r: "27",
|
|
2951
|
-
fill: "none"
|
|
3030
|
+
children: /*#__PURE__*/jsxRuntime.jsx("circle", { ...sharedProps
|
|
2952
3031
|
})
|
|
2953
3032
|
}), /*#__PURE__*/jsxRuntime.jsx("g", {
|
|
2954
3033
|
"data-large-loader": "fill",
|
|
2955
|
-
children: /*#__PURE__*/jsxRuntime.jsx("circle", {
|
|
2956
|
-
cx: "30",
|
|
2957
|
-
cy: "30",
|
|
2958
|
-
r: "27",
|
|
2959
|
-
fill: "none"
|
|
3034
|
+
children: /*#__PURE__*/jsxRuntime.jsx("circle", { ...sharedProps
|
|
2960
3035
|
})
|
|
2961
3036
|
})]
|
|
2962
3037
|
})
|