@ornikar/kitt-universal 23.2.7 → 23.4.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 +18 -0
- package/dist/definitions/BottomSheet/useStaticBottomSheet.d.ts +3 -3
- package/dist/definitions/BottomSheet/useStaticBottomSheet.d.ts.map +1 -1
- package/dist/definitions/Tag/Tag.d.ts +10 -6
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts +15 -0
- package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts.map +1 -0
- package/dist/definitions/forms/FilePicker/BottomSheetActions/BottomSheetActions.d.ts +13 -0
- package/dist/definitions/forms/FilePicker/BottomSheetActions/BottomSheetActions.d.ts.map +1 -0
- package/dist/definitions/forms/FilePicker/BottomSheetActions/BottomSheetActionsItem.d.ts +7 -0
- package/dist/definitions/forms/FilePicker/BottomSheetActions/BottomSheetActionsItem.d.ts.map +1 -0
- package/dist/definitions/forms/FilePicker/FilePicker.d.ts +17 -0
- package/dist/definitions/forms/FilePicker/FilePicker.d.ts.map +1 -0
- package/dist/definitions/forms/FilePicker/FilePicker.web.d.ts +4 -0
- package/dist/definitions/forms/FilePicker/FilePicker.web.d.ts.map +1 -0
- package/dist/definitions/forms/ImagePicker/ImagePicker.d.ts +15 -0
- package/dist/definitions/forms/ImagePicker/ImagePicker.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +7 -2
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +43 -78
- package/dist/definitions/native-base/KittNativeBaseProvider.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/index-metro.es.android.js +463 -319
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +463 -319
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +383 -238
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +214 -155
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +383 -241
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +212 -156
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +496 -314
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +257 -157
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +38 -44
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +38 -44
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.js +38 -44
- package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.web.js +38 -44
- package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-20.10.es.mjs +38 -44
- package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
- package/dist/linaria-themes-node-20.10.es.web.mjs +38 -44
- package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +38 -44
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +38 -44
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +5 -2
- package/translations/fr-FR.json +2 -0
|
@@ -11,6 +11,8 @@ export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
|
11
11
|
import { parse } from 'twemoji-parser';
|
|
12
12
|
import { CaretUpFillIcon, CaretDownFillIcon, EyeClosedRegularIcon, EyeRegularIcon, CaretDownRegularIcon, XRegularIcon } from '@ornikar/kitt-icons/phosphor';
|
|
13
13
|
import Downshift, { useSelect } from 'downshift';
|
|
14
|
+
import { getDocumentAsync } from 'expo-document-picker';
|
|
15
|
+
import { launchImageLibraryAsync } from 'expo-image-picker';
|
|
14
16
|
import { useDebouncedCallback } from 'use-debounce';
|
|
15
17
|
import { Loader } from '@googlemaps/js-api-loader';
|
|
16
18
|
import { parseNumber, getCountryCallingCode, isValidNumber } from 'libphonenumber-js';
|
|
@@ -1631,57 +1633,51 @@ const skeleton$1 = {
|
|
|
1631
1633
|
};
|
|
1632
1634
|
|
|
1633
1635
|
const tag = {
|
|
1634
|
-
borderRadius:
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
fill: {
|
|
1640
|
-
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
1641
|
-
borderWidth: 0,
|
|
1642
|
-
borderColor: colors.transparent
|
|
1643
|
-
},
|
|
1644
|
-
outline: {
|
|
1645
|
-
backgroundColor: colors.transparent,
|
|
1646
|
-
borderWidth: 1,
|
|
1647
|
-
borderColor: colors.primary
|
|
1648
|
-
}
|
|
1636
|
+
borderRadius: 16,
|
|
1637
|
+
icon: {
|
|
1638
|
+
small: 16,
|
|
1639
|
+
medium: 16,
|
|
1640
|
+
large: 20
|
|
1649
1641
|
},
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1642
|
+
withIcon: {
|
|
1643
|
+
small: {
|
|
1644
|
+
paddingLeft: 2,
|
|
1645
|
+
paddingRight: 8,
|
|
1646
|
+
height: 20
|
|
1655
1647
|
},
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
}
|
|
1661
|
-
},
|
|
1662
|
-
danger: {
|
|
1663
|
-
fill: {
|
|
1664
|
-
backgroundColor: colors.danger,
|
|
1665
|
-
borderWidth: 0,
|
|
1666
|
-
borderColor: colors.transparent
|
|
1648
|
+
medium: {
|
|
1649
|
+
paddingLeft: 4,
|
|
1650
|
+
paddingRight: 8,
|
|
1651
|
+
height: 24
|
|
1667
1652
|
},
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1653
|
+
large: {
|
|
1654
|
+
paddingLeft: 6,
|
|
1655
|
+
paddingRight: 8,
|
|
1656
|
+
height: 32
|
|
1672
1657
|
}
|
|
1673
1658
|
},
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1659
|
+
withoutIcon: {
|
|
1660
|
+
small: {
|
|
1661
|
+
paddingLeft: 8,
|
|
1662
|
+
paddingRight: 8,
|
|
1663
|
+
height: 20
|
|
1679
1664
|
},
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1665
|
+
medium: {
|
|
1666
|
+
paddingLeft: 8,
|
|
1667
|
+
paddingRight: 8,
|
|
1668
|
+
height: 22
|
|
1669
|
+
},
|
|
1670
|
+
large: {
|
|
1671
|
+
paddingLeft: 8,
|
|
1672
|
+
paddingRight: 8,
|
|
1673
|
+
height: 28
|
|
1684
1674
|
}
|
|
1675
|
+
},
|
|
1676
|
+
fill: {
|
|
1677
|
+
borderWidth: 0
|
|
1678
|
+
},
|
|
1679
|
+
outline: {
|
|
1680
|
+
borderWidth: 1
|
|
1685
1681
|
}
|
|
1686
1682
|
};
|
|
1687
1683
|
|
|
@@ -4749,6 +4745,63 @@ const DatePicker = /*#__PURE__*/forwardRef(({
|
|
|
4749
4745
|
});
|
|
4750
4746
|
});
|
|
4751
4747
|
|
|
4748
|
+
function DocumentPicker({
|
|
4749
|
+
onDocumentUpload,
|
|
4750
|
+
children,
|
|
4751
|
+
disabled,
|
|
4752
|
+
documentPickerOptions
|
|
4753
|
+
}) {
|
|
4754
|
+
const childElement = Children.only(children);
|
|
4755
|
+
return /*#__PURE__*/cloneElement(childElement, {
|
|
4756
|
+
// ensure that the press event is not prevented by Button component
|
|
4757
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
4758
|
+
onPress: async () => {
|
|
4759
|
+
if (disabled) return;
|
|
4760
|
+
childElement.props.onPress?.();
|
|
4761
|
+
const result = await getDocumentAsync({
|
|
4762
|
+
...documentPickerOptions,
|
|
4763
|
+
multiple: false
|
|
4764
|
+
});
|
|
4765
|
+
if (!result.canceled && result.assets[0].file) {
|
|
4766
|
+
onDocumentUpload(result.assets[0].file);
|
|
4767
|
+
}
|
|
4768
|
+
},
|
|
4769
|
+
disabled
|
|
4770
|
+
});
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4773
|
+
function FilePicker() {
|
|
4774
|
+
throw new Error('FilePicker only works on native');
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4777
|
+
function ImagePicker({
|
|
4778
|
+
onImageSelected,
|
|
4779
|
+
children,
|
|
4780
|
+
disabled,
|
|
4781
|
+
imagePickerOptions
|
|
4782
|
+
}) {
|
|
4783
|
+
const childElement = Children.only(children);
|
|
4784
|
+
return /*#__PURE__*/jsx(View, {
|
|
4785
|
+
children: /*#__PURE__*/cloneElement(childElement, {
|
|
4786
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
4787
|
+
onPress: async () => {
|
|
4788
|
+
if (disabled) return;
|
|
4789
|
+
childElement.props.onPress?.();
|
|
4790
|
+
|
|
4791
|
+
// No permissions request is necessary for launching the image library
|
|
4792
|
+
const result = await launchImageLibraryAsync({
|
|
4793
|
+
...imagePickerOptions,
|
|
4794
|
+
allowsMultipleSelection: false
|
|
4795
|
+
});
|
|
4796
|
+
if (!result.canceled) {
|
|
4797
|
+
onImageSelected(result.assets[0]);
|
|
4798
|
+
}
|
|
4799
|
+
},
|
|
4800
|
+
disabled
|
|
4801
|
+
})
|
|
4802
|
+
});
|
|
4803
|
+
}
|
|
4804
|
+
|
|
4752
4805
|
const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
4753
4806
|
function GoogleMapsApiKeyProvider({
|
|
4754
4807
|
children,
|
|
@@ -7060,48 +7113,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7060
7113
|
}
|
|
7061
7114
|
}
|
|
7062
7115
|
},
|
|
7063
|
-
tag: {
|
|
7064
|
-
primary: {
|
|
7065
|
-
fill: {
|
|
7066
|
-
backgroundColor: theme.tag.primary.fill.backgroundColor,
|
|
7067
|
-
borderColor: theme.tag.primary.fill.borderColor
|
|
7068
|
-
},
|
|
7069
|
-
outline: {
|
|
7070
|
-
backgroundColor: theme.tag.primary.outline.backgroundColor,
|
|
7071
|
-
borderColor: theme.tag.primary.outline.borderColor
|
|
7072
|
-
}
|
|
7073
|
-
},
|
|
7074
|
-
default: {
|
|
7075
|
-
fill: {
|
|
7076
|
-
backgroundColor: theme.tag.default.fill.backgroundColor,
|
|
7077
|
-
borderColor: theme.tag.default.fill.borderColor
|
|
7078
|
-
},
|
|
7079
|
-
outline: {
|
|
7080
|
-
backgroundColor: theme.tag.default.outline.backgroundColor,
|
|
7081
|
-
borderColor: theme.tag.default.outline.borderColor
|
|
7082
|
-
}
|
|
7083
|
-
},
|
|
7084
|
-
danger: {
|
|
7085
|
-
fill: {
|
|
7086
|
-
backgroundColor: theme.tag.danger.fill.backgroundColor,
|
|
7087
|
-
borderColor: theme.tag.danger.fill.borderColor
|
|
7088
|
-
},
|
|
7089
|
-
outline: {
|
|
7090
|
-
backgroundColor: theme.tag.danger.outline.backgroundColor,
|
|
7091
|
-
borderColor: theme.tag.danger.outline.borderColor
|
|
7092
|
-
}
|
|
7093
|
-
},
|
|
7094
|
-
warn: {
|
|
7095
|
-
fill: {
|
|
7096
|
-
backgroundColor: theme.tag.warn.fill.backgroundColor,
|
|
7097
|
-
borderColor: theme.tag.warn.fill.borderColor
|
|
7098
|
-
},
|
|
7099
|
-
outline: {
|
|
7100
|
-
backgroundColor: theme.tag.warn.outline.backgroundColor,
|
|
7101
|
-
borderColor: theme.tag.warn.outline.borderColor
|
|
7102
|
-
}
|
|
7103
|
-
}
|
|
7104
|
-
},
|
|
7105
7116
|
tooltip: {
|
|
7106
7117
|
backgroundColor: theme.tooltip.backgroundColor
|
|
7107
7118
|
},
|
|
@@ -7590,37 +7601,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7590
7601
|
borderWidth: theme.listItem.borderWidth
|
|
7591
7602
|
},
|
|
7592
7603
|
tag: {
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
borderWidth: theme.tag.primary.fill.borderWidth
|
|
7596
|
-
},
|
|
7597
|
-
outline: {
|
|
7598
|
-
borderWidth: theme.tag.primary.outline.borderWidth
|
|
7599
|
-
}
|
|
7600
|
-
},
|
|
7601
|
-
default: {
|
|
7602
|
-
fill: {
|
|
7603
|
-
borderWidth: theme.tag.default.fill.borderWidth
|
|
7604
|
-
},
|
|
7605
|
-
outline: {
|
|
7606
|
-
borderWidth: theme.tag.default.outline.borderWidth
|
|
7607
|
-
}
|
|
7608
|
-
},
|
|
7609
|
-
danger: {
|
|
7610
|
-
fill: {
|
|
7611
|
-
borderWidth: theme.tag.danger.fill.borderWidth
|
|
7612
|
-
},
|
|
7613
|
-
outline: {
|
|
7614
|
-
borderWidth: theme.tag.danger.outline.borderWidth
|
|
7615
|
-
}
|
|
7604
|
+
fill: {
|
|
7605
|
+
borderWidth: theme.tag.fill.borderWidth
|
|
7616
7606
|
},
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
borderWidth: theme.tag.warn.fill.borderWidth
|
|
7620
|
-
},
|
|
7621
|
-
outline: {
|
|
7622
|
-
borderWidth: theme.tag.warn.outline.borderWidth
|
|
7623
|
-
}
|
|
7607
|
+
outline: {
|
|
7608
|
+
borderWidth: theme.tag.outline.borderWidth
|
|
7624
7609
|
}
|
|
7625
7610
|
}
|
|
7626
7611
|
},
|
|
@@ -7718,6 +7703,39 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7718
7703
|
pageLoader: {
|
|
7719
7704
|
size: theme.pageLoader.size
|
|
7720
7705
|
},
|
|
7706
|
+
tag: {
|
|
7707
|
+
small: {
|
|
7708
|
+
iconSize: theme.tag.icon.small
|
|
7709
|
+
},
|
|
7710
|
+
medium: {
|
|
7711
|
+
iconSize: theme.tag.icon.medium
|
|
7712
|
+
},
|
|
7713
|
+
large: {
|
|
7714
|
+
iconSize: theme.tag.icon.large
|
|
7715
|
+
},
|
|
7716
|
+
withIcon: {
|
|
7717
|
+
small: {
|
|
7718
|
+
height: theme.tag.withIcon.small.height
|
|
7719
|
+
},
|
|
7720
|
+
medium: {
|
|
7721
|
+
height: theme.tag.withIcon.medium.height
|
|
7722
|
+
},
|
|
7723
|
+
large: {
|
|
7724
|
+
height: theme.tag.withIcon.large.height
|
|
7725
|
+
}
|
|
7726
|
+
},
|
|
7727
|
+
withoutIcon: {
|
|
7728
|
+
small: {
|
|
7729
|
+
height: theme.tag.withoutIcon.small.height
|
|
7730
|
+
},
|
|
7731
|
+
medium: {
|
|
7732
|
+
height: theme.tag.withoutIcon.medium.height
|
|
7733
|
+
},
|
|
7734
|
+
large: {
|
|
7735
|
+
height: theme.tag.withoutIcon.large.height
|
|
7736
|
+
}
|
|
7737
|
+
}
|
|
7738
|
+
},
|
|
7721
7739
|
tooltip: {
|
|
7722
7740
|
maxWidth: theme.tooltip.maxWidth,
|
|
7723
7741
|
arrow: {
|
|
@@ -7810,8 +7828,34 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7810
7828
|
horizontalPadding: theme.listItem.horizontalPadding
|
|
7811
7829
|
},
|
|
7812
7830
|
tag: {
|
|
7813
|
-
|
|
7814
|
-
|
|
7831
|
+
withoutIcon: {
|
|
7832
|
+
small: {
|
|
7833
|
+
paddingLeft: theme.tag.withoutIcon.small.paddingLeft,
|
|
7834
|
+
paddingRight: theme.tag.withoutIcon.small.paddingRight
|
|
7835
|
+
},
|
|
7836
|
+
medium: {
|
|
7837
|
+
paddingLeft: theme.tag.withoutIcon.medium.paddingLeft,
|
|
7838
|
+
paddingRight: theme.tag.withoutIcon.medium.paddingRight
|
|
7839
|
+
},
|
|
7840
|
+
large: {
|
|
7841
|
+
paddingLeft: theme.tag.withoutIcon.large.paddingLeft,
|
|
7842
|
+
paddingRight: theme.tag.withoutIcon.large.paddingRight
|
|
7843
|
+
}
|
|
7844
|
+
},
|
|
7845
|
+
withIcon: {
|
|
7846
|
+
small: {
|
|
7847
|
+
paddingLeft: theme.tag.withIcon.small.paddingLeft,
|
|
7848
|
+
paddingRight: theme.tag.withIcon.small.paddingRight
|
|
7849
|
+
},
|
|
7850
|
+
medium: {
|
|
7851
|
+
paddingLeft: theme.tag.withIcon.medium.paddingLeft,
|
|
7852
|
+
paddingRight: theme.tag.withIcon.medium.paddingRight
|
|
7853
|
+
},
|
|
7854
|
+
large: {
|
|
7855
|
+
paddingLeft: theme.tag.withIcon.large.paddingLeft,
|
|
7856
|
+
paddingRight: theme.tag.withIcon.large.paddingRight
|
|
7857
|
+
}
|
|
7858
|
+
}
|
|
7815
7859
|
},
|
|
7816
7860
|
tooltip: {
|
|
7817
7861
|
horizontalPadding: theme.tooltip.horizontalPadding,
|
|
@@ -9741,48 +9785,68 @@ const StoryGrid = {
|
|
|
9741
9785
|
Col: StoryGridCol
|
|
9742
9786
|
};
|
|
9743
9787
|
|
|
9744
|
-
|
|
9788
|
+
function useKittTheme() {
|
|
9789
|
+
return useMemo(() => {
|
|
9790
|
+
return {
|
|
9791
|
+
kitt: theme
|
|
9792
|
+
};
|
|
9793
|
+
}, []);
|
|
9794
|
+
}
|
|
9795
|
+
|
|
9796
|
+
const getTypography = size => {
|
|
9797
|
+
switch (size) {
|
|
9798
|
+
case 'small':
|
|
9799
|
+
return 'body-xs';
|
|
9800
|
+
case 'medium':
|
|
9801
|
+
return 'body-s';
|
|
9802
|
+
case 'large':
|
|
9803
|
+
default:
|
|
9804
|
+
return 'body-m';
|
|
9805
|
+
}
|
|
9806
|
+
};
|
|
9807
|
+
const typeToColor = (color, type) => {
|
|
9808
|
+
if (color) return color;
|
|
9745
9809
|
switch (type) {
|
|
9746
|
-
case 'danger':
|
|
9747
|
-
{
|
|
9748
|
-
return variant === 'outline' ? 'danger' : 'black';
|
|
9749
|
-
}
|
|
9750
|
-
case 'warn':
|
|
9751
|
-
{
|
|
9752
|
-
return variant === 'outline' ? 'warning' : 'black';
|
|
9753
|
-
}
|
|
9754
9810
|
case 'primary':
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9811
|
+
return 'violine';
|
|
9812
|
+
case 'warn':
|
|
9813
|
+
return 'sun';
|
|
9814
|
+
case 'danger':
|
|
9815
|
+
return 'coral';
|
|
9758
9816
|
case 'default':
|
|
9759
|
-
{
|
|
9760
|
-
return 'black';
|
|
9761
|
-
}
|
|
9762
9817
|
default:
|
|
9763
|
-
|
|
9764
|
-
return 'black';
|
|
9765
|
-
}
|
|
9818
|
+
return 'eggshell';
|
|
9766
9819
|
}
|
|
9767
9820
|
};
|
|
9768
9821
|
function Tag({
|
|
9769
9822
|
label,
|
|
9770
|
-
|
|
9823
|
+
icon,
|
|
9824
|
+
color,
|
|
9825
|
+
type,
|
|
9826
|
+
size = 'medium',
|
|
9771
9827
|
variant = 'fill'
|
|
9772
9828
|
}) {
|
|
9773
|
-
|
|
9829
|
+
const kittTheme = useKittTheme();
|
|
9830
|
+
const tagColor = typeToColor(color, type);
|
|
9831
|
+
return /*#__PURE__*/jsxs(HStack, {
|
|
9774
9832
|
alignSelf: "flex-start",
|
|
9775
9833
|
borderRadius: "kitt.tag.borderRadius",
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9834
|
+
height: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.height`,
|
|
9835
|
+
paddingLeft: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.paddingLeft`,
|
|
9836
|
+
paddingRight: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.paddingRight`,
|
|
9837
|
+
backgroundColor: variant === 'fill' ? kittTheme.kitt.palettes.lateOcean[`${tagColor}.4`] : 'kitt.transparent',
|
|
9838
|
+
borderColor: kittTheme.kitt.palettes.lateOcean[`${tagColor}.6`],
|
|
9839
|
+
borderWidth: `kitt.tag.${variant}.borderWidth`,
|
|
9840
|
+
space: "kitt.1",
|
|
9841
|
+
alignItems: "center",
|
|
9842
|
+
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
9843
|
+
icon: icon,
|
|
9844
|
+
size: `kitt.tag.${size}.iconSize`
|
|
9845
|
+
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
9846
|
+
base: getTypography(size),
|
|
9847
|
+
color: "black",
|
|
9784
9848
|
children: label
|
|
9785
|
-
})
|
|
9849
|
+
})]
|
|
9786
9850
|
});
|
|
9787
9851
|
}
|
|
9788
9852
|
|
|
@@ -10320,14 +10384,6 @@ function TypographyLink({
|
|
|
10320
10384
|
});
|
|
10321
10385
|
}
|
|
10322
10386
|
|
|
10323
|
-
function useKittTheme() {
|
|
10324
|
-
return useMemo(() => {
|
|
10325
|
-
return {
|
|
10326
|
-
kitt: theme
|
|
10327
|
-
};
|
|
10328
|
-
}, []);
|
|
10329
|
-
}
|
|
10330
|
-
|
|
10331
10387
|
function KittThemeProvider({
|
|
10332
10388
|
isSSR,
|
|
10333
10389
|
children,
|
|
@@ -10554,5 +10610,5 @@ function VerticalSteps({
|
|
|
10554
10610
|
}
|
|
10555
10611
|
VerticalSteps.Step = ExternalStep;
|
|
10556
10612
|
|
|
10557
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, Emoji, ExternalAppLink, ExternalLink, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, HStack, Highlight, Icon, IconButton, Image, InputAddress, InputEmail, InputFeedback, InputField, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarkerLarge, MapMarkerPosition, MapMarkerSimple, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
10613
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InputAddress, InputEmail, InputFeedback, InputField, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarkerLarge, MapMarkerPosition, MapMarkerSimple, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
10558
10614
|
//# sourceMappingURL=index-node-20.10.es.web.mjs.map
|