@ornikar/kitt-universal 23.2.5 → 23.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/CHANGELOG.md +26 -0
- package/dist/definitions/Tag/Tag.d.ts +10 -6
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +46 -81
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/input.d.ts +1 -1
- package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/tag.d.ts +22 -14
- package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +11 -11
- package/dist/index-metro.es.android.js +157 -160
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +157 -160
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +157 -160
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +157 -160
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +157 -160
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +157 -160
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +158 -161
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +158 -161
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +40 -46
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +40 -46
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.js +40 -46
- package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.web.js +40 -46
- package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-20.10.es.mjs +40 -46
- package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
- package/dist/linaria-themes-node-20.10.es.web.mjs +40 -46
- package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +40 -46
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +40 -46
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/index.es.web.js
CHANGED
|
@@ -1019,7 +1019,7 @@ var webAnimationDuration = '200ms';
|
|
|
1019
1019
|
var webAnimationTimingFunction = 'ease-in-out';
|
|
1020
1020
|
var webAnimationProperties = ['border-color', 'background-color'];
|
|
1021
1021
|
var input = {
|
|
1022
|
-
|
|
1022
|
+
height: 40,
|
|
1023
1023
|
color: {
|
|
1024
1024
|
selection: lateOceanColorPalette['violine.9'],
|
|
1025
1025
|
placeholder: lateOceanColorPalette['eggshell.9']
|
|
@@ -1034,7 +1034,7 @@ var input = {
|
|
|
1034
1034
|
},
|
|
1035
1035
|
padding: {
|
|
1036
1036
|
horizontal: 16,
|
|
1037
|
-
vertical:
|
|
1037
|
+
vertical: 6
|
|
1038
1038
|
},
|
|
1039
1039
|
transition: {
|
|
1040
1040
|
properties: webAnimationProperties,
|
|
@@ -1655,57 +1655,51 @@ var skeleton$1 = {
|
|
|
1655
1655
|
};
|
|
1656
1656
|
|
|
1657
1657
|
var tag = {
|
|
1658
|
-
borderRadius:
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
fill: {
|
|
1664
|
-
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
1665
|
-
borderWidth: 0,
|
|
1666
|
-
borderColor: colors.transparent
|
|
1667
|
-
},
|
|
1668
|
-
outline: {
|
|
1669
|
-
backgroundColor: colors.transparent,
|
|
1670
|
-
borderWidth: 1,
|
|
1671
|
-
borderColor: colors.primary
|
|
1672
|
-
}
|
|
1658
|
+
borderRadius: 16,
|
|
1659
|
+
icon: {
|
|
1660
|
+
small: 16,
|
|
1661
|
+
medium: 16,
|
|
1662
|
+
large: 20
|
|
1673
1663
|
},
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1664
|
+
withIcon: {
|
|
1665
|
+
small: {
|
|
1666
|
+
paddingLeft: 2,
|
|
1667
|
+
paddingRight: 8,
|
|
1668
|
+
height: 20
|
|
1679
1669
|
},
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
}
|
|
1685
|
-
},
|
|
1686
|
-
danger: {
|
|
1687
|
-
fill: {
|
|
1688
|
-
backgroundColor: colors.danger,
|
|
1689
|
-
borderWidth: 0,
|
|
1690
|
-
borderColor: colors.transparent
|
|
1670
|
+
medium: {
|
|
1671
|
+
paddingLeft: 4,
|
|
1672
|
+
paddingRight: 8,
|
|
1673
|
+
height: 24
|
|
1691
1674
|
},
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1675
|
+
large: {
|
|
1676
|
+
paddingLeft: 6,
|
|
1677
|
+
paddingRight: 8,
|
|
1678
|
+
height: 32
|
|
1696
1679
|
}
|
|
1697
1680
|
},
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1681
|
+
withoutIcon: {
|
|
1682
|
+
small: {
|
|
1683
|
+
paddingLeft: 8,
|
|
1684
|
+
paddingRight: 8,
|
|
1685
|
+
height: 20
|
|
1703
1686
|
},
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1687
|
+
medium: {
|
|
1688
|
+
paddingLeft: 8,
|
|
1689
|
+
paddingRight: 8,
|
|
1690
|
+
height: 22
|
|
1691
|
+
},
|
|
1692
|
+
large: {
|
|
1693
|
+
paddingLeft: 8,
|
|
1694
|
+
paddingRight: 8,
|
|
1695
|
+
height: 28
|
|
1708
1696
|
}
|
|
1697
|
+
},
|
|
1698
|
+
fill: {
|
|
1699
|
+
borderWidth: 0
|
|
1700
|
+
},
|
|
1701
|
+
outline: {
|
|
1702
|
+
borderWidth: 1
|
|
1709
1703
|
}
|
|
1710
1704
|
};
|
|
1711
1705
|
|
|
@@ -7202,48 +7196,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7202
7196
|
}
|
|
7203
7197
|
}
|
|
7204
7198
|
},
|
|
7205
|
-
tag: {
|
|
7206
|
-
primary: {
|
|
7207
|
-
fill: {
|
|
7208
|
-
backgroundColor: theme.tag.primary.fill.backgroundColor,
|
|
7209
|
-
borderColor: theme.tag.primary.fill.borderColor
|
|
7210
|
-
},
|
|
7211
|
-
outline: {
|
|
7212
|
-
backgroundColor: theme.tag.primary.outline.backgroundColor,
|
|
7213
|
-
borderColor: theme.tag.primary.outline.borderColor
|
|
7214
|
-
}
|
|
7215
|
-
},
|
|
7216
|
-
"default": {
|
|
7217
|
-
fill: {
|
|
7218
|
-
backgroundColor: theme.tag["default"].fill.backgroundColor,
|
|
7219
|
-
borderColor: theme.tag["default"].fill.borderColor
|
|
7220
|
-
},
|
|
7221
|
-
outline: {
|
|
7222
|
-
backgroundColor: theme.tag["default"].outline.backgroundColor,
|
|
7223
|
-
borderColor: theme.tag["default"].outline.borderColor
|
|
7224
|
-
}
|
|
7225
|
-
},
|
|
7226
|
-
danger: {
|
|
7227
|
-
fill: {
|
|
7228
|
-
backgroundColor: theme.tag.danger.fill.backgroundColor,
|
|
7229
|
-
borderColor: theme.tag.danger.fill.borderColor
|
|
7230
|
-
},
|
|
7231
|
-
outline: {
|
|
7232
|
-
backgroundColor: theme.tag.danger.outline.backgroundColor,
|
|
7233
|
-
borderColor: theme.tag.danger.outline.borderColor
|
|
7234
|
-
}
|
|
7235
|
-
},
|
|
7236
|
-
warn: {
|
|
7237
|
-
fill: {
|
|
7238
|
-
backgroundColor: theme.tag.warn.fill.backgroundColor,
|
|
7239
|
-
borderColor: theme.tag.warn.fill.borderColor
|
|
7240
|
-
},
|
|
7241
|
-
outline: {
|
|
7242
|
-
backgroundColor: theme.tag.warn.outline.backgroundColor,
|
|
7243
|
-
borderColor: theme.tag.warn.outline.borderColor
|
|
7244
|
-
}
|
|
7245
|
-
}
|
|
7246
|
-
},
|
|
7247
7199
|
tooltip: {
|
|
7248
7200
|
backgroundColor: theme.tooltip.backgroundColor
|
|
7249
7201
|
},
|
|
@@ -7731,37 +7683,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7731
7683
|
borderWidth: theme.listItem.borderWidth
|
|
7732
7684
|
},
|
|
7733
7685
|
tag: {
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
borderWidth: theme.tag.primary.fill.borderWidth
|
|
7737
|
-
},
|
|
7738
|
-
outline: {
|
|
7739
|
-
borderWidth: theme.tag.primary.outline.borderWidth
|
|
7740
|
-
}
|
|
7686
|
+
fill: {
|
|
7687
|
+
borderWidth: theme.tag.fill.borderWidth
|
|
7741
7688
|
},
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
borderWidth: theme.tag["default"].fill.borderWidth
|
|
7745
|
-
},
|
|
7746
|
-
outline: {
|
|
7747
|
-
borderWidth: theme.tag["default"].outline.borderWidth
|
|
7748
|
-
}
|
|
7749
|
-
},
|
|
7750
|
-
danger: {
|
|
7751
|
-
fill: {
|
|
7752
|
-
borderWidth: theme.tag.danger.fill.borderWidth
|
|
7753
|
-
},
|
|
7754
|
-
outline: {
|
|
7755
|
-
borderWidth: theme.tag.danger.outline.borderWidth
|
|
7756
|
-
}
|
|
7757
|
-
},
|
|
7758
|
-
warn: {
|
|
7759
|
-
fill: {
|
|
7760
|
-
borderWidth: theme.tag.warn.fill.borderWidth
|
|
7761
|
-
},
|
|
7762
|
-
outline: {
|
|
7763
|
-
borderWidth: theme.tag.warn.outline.borderWidth
|
|
7764
|
-
}
|
|
7689
|
+
outline: {
|
|
7690
|
+
borderWidth: theme.tag.outline.borderWidth
|
|
7765
7691
|
}
|
|
7766
7692
|
}
|
|
7767
7693
|
},
|
|
@@ -7805,7 +7731,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7805
7731
|
}
|
|
7806
7732
|
},
|
|
7807
7733
|
datePicker: {
|
|
7808
|
-
|
|
7734
|
+
height: theme.forms.input.height,
|
|
7809
7735
|
day: {
|
|
7810
7736
|
minWidth: theme.forms.datePicker.day.minWidth
|
|
7811
7737
|
},
|
|
@@ -7817,7 +7743,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7817
7743
|
}
|
|
7818
7744
|
},
|
|
7819
7745
|
input: {
|
|
7820
|
-
|
|
7746
|
+
height: theme.forms.input.height
|
|
7821
7747
|
},
|
|
7822
7748
|
radioButtonGroup: {
|
|
7823
7749
|
item: {
|
|
@@ -7856,6 +7782,39 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7856
7782
|
pageLoader: {
|
|
7857
7783
|
size: theme.pageLoader.size
|
|
7858
7784
|
},
|
|
7785
|
+
tag: {
|
|
7786
|
+
small: {
|
|
7787
|
+
iconSize: theme.tag.icon.small
|
|
7788
|
+
},
|
|
7789
|
+
medium: {
|
|
7790
|
+
iconSize: theme.tag.icon.medium
|
|
7791
|
+
},
|
|
7792
|
+
large: {
|
|
7793
|
+
iconSize: theme.tag.icon.large
|
|
7794
|
+
},
|
|
7795
|
+
withIcon: {
|
|
7796
|
+
small: {
|
|
7797
|
+
height: theme.tag.withIcon.small.height
|
|
7798
|
+
},
|
|
7799
|
+
medium: {
|
|
7800
|
+
height: theme.tag.withIcon.medium.height
|
|
7801
|
+
},
|
|
7802
|
+
large: {
|
|
7803
|
+
height: theme.tag.withIcon.large.height
|
|
7804
|
+
}
|
|
7805
|
+
},
|
|
7806
|
+
withoutIcon: {
|
|
7807
|
+
small: {
|
|
7808
|
+
height: theme.tag.withoutIcon.small.height
|
|
7809
|
+
},
|
|
7810
|
+
medium: {
|
|
7811
|
+
height: theme.tag.withoutIcon.medium.height
|
|
7812
|
+
},
|
|
7813
|
+
large: {
|
|
7814
|
+
height: theme.tag.withoutIcon.large.height
|
|
7815
|
+
}
|
|
7816
|
+
}
|
|
7817
|
+
},
|
|
7859
7818
|
tooltip: {
|
|
7860
7819
|
maxWidth: theme.tooltip.maxWidth,
|
|
7861
7820
|
arrow: {
|
|
@@ -7945,8 +7904,34 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7945
7904
|
horizontalPadding: theme.listItem.horizontalPadding
|
|
7946
7905
|
},
|
|
7947
7906
|
tag: {
|
|
7948
|
-
|
|
7949
|
-
|
|
7907
|
+
withoutIcon: {
|
|
7908
|
+
small: {
|
|
7909
|
+
paddingLeft: theme.tag.withoutIcon.small.paddingLeft,
|
|
7910
|
+
paddingRight: theme.tag.withoutIcon.small.paddingRight
|
|
7911
|
+
},
|
|
7912
|
+
medium: {
|
|
7913
|
+
paddingLeft: theme.tag.withoutIcon.medium.paddingLeft,
|
|
7914
|
+
paddingRight: theme.tag.withoutIcon.medium.paddingRight
|
|
7915
|
+
},
|
|
7916
|
+
large: {
|
|
7917
|
+
paddingLeft: theme.tag.withoutIcon.large.paddingLeft,
|
|
7918
|
+
paddingRight: theme.tag.withoutIcon.large.paddingRight
|
|
7919
|
+
}
|
|
7920
|
+
},
|
|
7921
|
+
withIcon: {
|
|
7922
|
+
small: {
|
|
7923
|
+
paddingLeft: theme.tag.withIcon.small.paddingLeft,
|
|
7924
|
+
paddingRight: theme.tag.withIcon.small.paddingRight
|
|
7925
|
+
},
|
|
7926
|
+
medium: {
|
|
7927
|
+
paddingLeft: theme.tag.withIcon.medium.paddingLeft,
|
|
7928
|
+
paddingRight: theme.tag.withIcon.medium.paddingRight
|
|
7929
|
+
},
|
|
7930
|
+
large: {
|
|
7931
|
+
paddingLeft: theme.tag.withIcon.large.paddingLeft,
|
|
7932
|
+
paddingRight: theme.tag.withIcon.large.paddingRight
|
|
7933
|
+
}
|
|
7934
|
+
}
|
|
7950
7935
|
},
|
|
7951
7936
|
tooltip: {
|
|
7952
7937
|
horizontalPadding: theme.tooltip.horizontalPadding,
|
|
@@ -8610,7 +8595,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8610
8595
|
Input: {
|
|
8611
8596
|
baseStyle: {
|
|
8612
8597
|
width: '100%',
|
|
8613
|
-
|
|
8598
|
+
height: theme.forms.input.height,
|
|
8614
8599
|
py: theme.forms.input.padding.vertical,
|
|
8615
8600
|
px: theme.forms.input.padding.horizontal,
|
|
8616
8601
|
borderRadius: theme.forms.input.borderRadius,
|
|
@@ -9867,49 +9852,69 @@ var StoryGrid = {
|
|
|
9867
9852
|
Col: StoryGridCol
|
|
9868
9853
|
};
|
|
9869
9854
|
|
|
9870
|
-
|
|
9855
|
+
function useKittTheme() {
|
|
9856
|
+
return useMemo(function () {
|
|
9857
|
+
return {
|
|
9858
|
+
kitt: theme
|
|
9859
|
+
};
|
|
9860
|
+
}, []);
|
|
9861
|
+
}
|
|
9862
|
+
|
|
9863
|
+
var getTypography = function (size) {
|
|
9864
|
+
switch (size) {
|
|
9865
|
+
case 'small':
|
|
9866
|
+
return 'body-xs';
|
|
9867
|
+
case 'medium':
|
|
9868
|
+
return 'body-s';
|
|
9869
|
+
case 'large':
|
|
9870
|
+
default:
|
|
9871
|
+
return 'body-m';
|
|
9872
|
+
}
|
|
9873
|
+
};
|
|
9874
|
+
var typeToColor = function (color, type) {
|
|
9875
|
+
if (color) return color;
|
|
9871
9876
|
switch (type) {
|
|
9872
|
-
case 'danger':
|
|
9873
|
-
{
|
|
9874
|
-
return variant === 'outline' ? 'danger' : 'black';
|
|
9875
|
-
}
|
|
9876
|
-
case 'warn':
|
|
9877
|
-
{
|
|
9878
|
-
return variant === 'outline' ? 'warning' : 'black';
|
|
9879
|
-
}
|
|
9880
9877
|
case 'primary':
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9878
|
+
return 'violine';
|
|
9879
|
+
case 'warn':
|
|
9880
|
+
return 'sun';
|
|
9881
|
+
case 'danger':
|
|
9882
|
+
return 'coral';
|
|
9884
9883
|
case 'default':
|
|
9885
|
-
{
|
|
9886
|
-
return 'black';
|
|
9887
|
-
}
|
|
9888
9884
|
default:
|
|
9889
|
-
|
|
9890
|
-
return 'black';
|
|
9891
|
-
}
|
|
9885
|
+
return 'eggshell';
|
|
9892
9886
|
}
|
|
9893
9887
|
};
|
|
9894
9888
|
function Tag(_ref) {
|
|
9895
9889
|
var label = _ref.label,
|
|
9896
|
-
|
|
9897
|
-
|
|
9890
|
+
icon = _ref.icon,
|
|
9891
|
+
color = _ref.color,
|
|
9892
|
+
type = _ref.type,
|
|
9893
|
+
_ref$size = _ref.size,
|
|
9894
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
9898
9895
|
_ref$variant = _ref.variant,
|
|
9899
9896
|
variant = _ref$variant === void 0 ? 'fill' : _ref$variant;
|
|
9900
|
-
|
|
9897
|
+
var kittTheme = useKittTheme();
|
|
9898
|
+
var tagColor = typeToColor(color, type);
|
|
9899
|
+
return /*#__PURE__*/jsxs(HStack, {
|
|
9901
9900
|
alignSelf: "flex-start",
|
|
9902
9901
|
borderRadius: "kitt.tag.borderRadius",
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9902
|
+
height: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".height"),
|
|
9903
|
+
paddingLeft: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".paddingLeft"),
|
|
9904
|
+
paddingRight: "kitt.tag.".concat(icon ? 'withIcon' : 'withoutIcon', ".").concat(size, ".paddingRight"),
|
|
9905
|
+
backgroundColor: variant === 'fill' ? kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".4")] : 'kitt.transparent',
|
|
9906
|
+
borderColor: kittTheme.kitt.palettes.lateOcean["".concat(tagColor, ".6")],
|
|
9907
|
+
borderWidth: "kitt.tag.".concat(variant, ".borderWidth"),
|
|
9908
|
+
space: "kitt.1",
|
|
9909
|
+
alignItems: "center",
|
|
9910
|
+
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
9911
|
+
icon: icon,
|
|
9912
|
+
size: "kitt.tag.".concat(size, ".iconSize")
|
|
9913
|
+
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
9914
|
+
base: getTypography(size),
|
|
9915
|
+
color: "black",
|
|
9911
9916
|
children: label
|
|
9912
|
-
})
|
|
9917
|
+
})]
|
|
9913
9918
|
});
|
|
9914
9919
|
}
|
|
9915
9920
|
|
|
@@ -10458,14 +10463,6 @@ function TypographyLink(_ref) {
|
|
|
10458
10463
|
});
|
|
10459
10464
|
}
|
|
10460
10465
|
|
|
10461
|
-
function useKittTheme() {
|
|
10462
|
-
return useMemo(function () {
|
|
10463
|
-
return {
|
|
10464
|
-
kitt: theme
|
|
10465
|
-
};
|
|
10466
|
-
}, []);
|
|
10467
|
-
}
|
|
10468
|
-
|
|
10469
10466
|
function KittThemeProvider(_ref) {
|
|
10470
10467
|
var isSSR = _ref.isSSR,
|
|
10471
10468
|
children = _ref.children,
|