@ornikar/kitt-universal 9.12.2 → 9.13.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/BottomSheet/BottomSheet.d.ts +16 -0
- package/dist/definitions/BottomSheet/BottomSheet.d.ts.map +1 -0
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts +7 -0
- package/dist/definitions/BottomSheet/BottomSheet.web.d.ts.map +1 -0
- package/dist/definitions/BottomSheet/useBottomSheet.d.ts +4 -0
- package/dist/definitions/BottomSheet/useBottomSheet.d.ts.map +1 -0
- package/dist/definitions/BottomSheet/useStaticBottomSheet.d.ts +15 -0
- package/dist/definitions/BottomSheet/useStaticBottomSheet.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +4 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +1 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/bottomSheet.d.ts +10 -0
- package/dist/definitions/themes/late-ocean/bottomSheet.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +106 -6
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +106 -6
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +106 -6
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +46 -4
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +94 -3
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +45 -2
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +12 -2
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +12 -2
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +12 -2
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +12 -2
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +12 -2
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +12 -2
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +8 -2
|
@@ -993,6 +993,36 @@ function Avatar({
|
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
995
|
|
|
996
|
+
function BottomSheetComponent() {
|
|
997
|
+
// noop
|
|
998
|
+
return null;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
const BottomSheet = /*#__PURE__*/react.forwardRef(BottomSheetComponent);
|
|
1002
|
+
|
|
1003
|
+
BottomSheet.View = function () {
|
|
1004
|
+
return null;
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
function useBottomSheet() {
|
|
1008
|
+
const ref = react.useRef(null);
|
|
1009
|
+
return ref;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
function useStaticBottomSheet(Content) {
|
|
1013
|
+
const bottomSheetRef = react.useRef(null);
|
|
1014
|
+
const BottomSheetMemoized = react.useMemo(() => function (props) {
|
|
1015
|
+
return /*#__PURE__*/jsxRuntime.jsx(BottomSheet, { ...props,
|
|
1016
|
+
ref: bottomSheetRef,
|
|
1017
|
+
children: Content
|
|
1018
|
+
});
|
|
1019
|
+
}, [Content]);
|
|
1020
|
+
return {
|
|
1021
|
+
bottomSheetRef,
|
|
1022
|
+
BottomSheet: BottomSheetMemoized
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
|
|
996
1026
|
const Container$3 = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
997
1027
|
displayName: "Card__Container",
|
|
998
1028
|
componentId: "kitt-universal__sc-1n9psug-0"
|
|
@@ -1756,6 +1786,17 @@ const avatar = {
|
|
|
1756
1786
|
}
|
|
1757
1787
|
};
|
|
1758
1788
|
|
|
1789
|
+
const spacing = 4;
|
|
1790
|
+
|
|
1791
|
+
const bottomSheet = {
|
|
1792
|
+
container: {
|
|
1793
|
+
padding: spacing * 4
|
|
1794
|
+
},
|
|
1795
|
+
handle: {
|
|
1796
|
+
backgroundColor: lateOceanColorPalette.black200
|
|
1797
|
+
}
|
|
1798
|
+
};
|
|
1799
|
+
|
|
1759
1800
|
const button = {
|
|
1760
1801
|
borderRadius: 30,
|
|
1761
1802
|
borderWidth: {
|
|
@@ -2151,8 +2192,6 @@ const fullScreenModal = {
|
|
|
2151
2192
|
}
|
|
2152
2193
|
};
|
|
2153
2194
|
|
|
2154
|
-
const spacing = 4;
|
|
2155
|
-
|
|
2156
2195
|
const highlight = {
|
|
2157
2196
|
borderRadius: {
|
|
2158
2197
|
base: spacing * 5
|
|
@@ -2362,6 +2401,7 @@ const theme = {
|
|
|
2362
2401
|
avatar,
|
|
2363
2402
|
breakpoints,
|
|
2364
2403
|
button,
|
|
2404
|
+
bottomSheet,
|
|
2365
2405
|
card,
|
|
2366
2406
|
choices,
|
|
2367
2407
|
dialogModal,
|
|
@@ -5269,6 +5309,7 @@ function MatchWindowSize({
|
|
|
5269
5309
|
exports.useWindowSize = BabelPluginStyledComponentsReactNative.useWindowDimensions;
|
|
5270
5310
|
exports.Actions = Actions;
|
|
5271
5311
|
exports.Avatar = Avatar;
|
|
5312
|
+
exports.BottomSheet = BottomSheet;
|
|
5272
5313
|
exports.Button = Button;
|
|
5273
5314
|
exports.Card = Card;
|
|
5274
5315
|
exports.Checkbox = Checkbox;
|
|
@@ -5341,8 +5382,10 @@ exports.hex2rgba = hex2rgba;
|
|
|
5341
5382
|
exports.matchWindowSize = matchWindowSize;
|
|
5342
5383
|
exports.styledTextInputMixin = styledTextInputMixin;
|
|
5343
5384
|
exports.theme = theme;
|
|
5385
|
+
exports.useBottomSheet = useBottomSheet;
|
|
5344
5386
|
exports.useKittTheme = useKittTheme;
|
|
5345
5387
|
exports.useMatchWindowSize = useMatchWindowSize;
|
|
5388
|
+
exports.useStaticBottomSheet = useStaticBottomSheet;
|
|
5346
5389
|
exports.useStoryBlockColor = useStoryBlockColor;
|
|
5347
5390
|
exports.withTheme = withTheme;
|
|
5348
5391
|
Object.keys(kittIcons).forEach(function (k) {
|