@ornikar/kitt-universal 9.44.0 → 9.44.1

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.
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
- import type { ScrollViewProps } from 'react-native';
2
+ import type { ScrollViewProps } from '../native-base/primitives';
3
3
  export interface StoryProps {
4
4
  title: ReactNode;
5
5
  children: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Story.d.ts","sourceRoot":"","sources":["../../../src/story-components/Story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,qBAAqB,CAAC,EAAE,eAAe,CAAC,uBAAuB,CAAC,CAAC;CAClE;AAMD,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAG,YAAY,CAO1F"}
1
+ {"version":3,"file":"Story.d.ts","sourceRoot":"","sources":["../../../src/story-components/Story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAKjE,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,qBAAqB,CAAC,EAAE,eAAe,CAAC,uBAAuB,CAAC,CAAC;CAClE;AAED,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAG,YAAY,CAO1F"}
@@ -1 +1 @@
1
- {"version":3,"file":"StoryBlock.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGhE,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC;IAC1D,QAAQ,EAAE,SAAS,CAAC;CACrB;AA6BD,eAAO,MAAM,2BAA2B,mFAA8D,CAAC;AAGvG,eAAO,MAAM,kBAAkB,WAAY,eAAe,GAAG,SAAS,KAAG,eAGxE,CAAC;AAQF,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,eAAe,GAAG,YAAY,CAQlF"}
1
+ {"version":3,"file":"StoryBlock.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGhE,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC;IAC1D,QAAQ,EAAE,SAAS,CAAC;CACrB;AA6BD,eAAO,MAAM,2BAA2B,mFAA8D,CAAC;AAGvG,eAAO,MAAM,kBAAkB,WAAY,eAAe,GAAG,SAAS,KAAG,eAGxE,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,eAAe,GAAG,YAAY,CAclF"}
@@ -1 +1 @@
1
- {"version":3,"file":"StoryGrid.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAuB1C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CACjC;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,UAAoB,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAuBzF;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,KAAK,CAAC;CACrC;AAED,iBAAS,YAAY,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAgB,EAAE,EAAE,iBAAiB,GAAG,YAAY,GAAG,IAAI,CAqB/G;AAED,eAAO,MAAM,SAAS;;;CAGrB,CAAC"}
1
+ {"version":3,"file":"StoryGrid.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAI1C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CACjC;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,UAAoB,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAoBzF;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,KAAK,CAAC;CACrC;AAED,iBAAS,YAAY,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAgB,EAAE,EAAE,iBAAiB,GAAG,YAAY,GAAG,IAAI,CAqB/G;AAED,eAAO,MAAM,SAAS;;;CAGrB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
- import type { ViewProps } from 'react-native';
3
- export interface StorySectionProps extends ViewProps {
2
+ import type { Except } from 'type-fest';
3
+ import type { ViewProps } from '../native-base/primitives';
4
+ export interface StorySectionProps extends Except<ViewProps, 'marginBottom'> {
4
5
  title: ReactNode;
5
6
  children: ReactNode;
6
7
  /** @private */
@@ -1 +1 @@
1
- {"version":3,"file":"StorySection.d.ts","sourceRoot":"","sources":["../../../src/story-components/StorySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAU9C,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe;IACf,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAQlH;yBARe,YAAY;;;;;;AAoC5B,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAsBD,2CAA2C;AAC3C,eAAO,MAAM,iBAAiB,qBAAe,CAAC"}
1
+ {"version":3,"file":"StorySection.d.ts","sourceRoot":"","sources":["../../../src/story-components/StorySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAI3D,MAAM,WAAW,iBAAkB,SAAQ,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC;IAC1E,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe;IACf,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,qBAAqB,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAQlH;yBARe,YAAY;;;;;;AA4B5B,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAkBD,2CAA2C;AAC3C,eAAO,MAAM,iBAAiB,qBAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StoryTitle.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAIhE,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACjD,QAAQ,EAAE,SAAS,CAAC;CACrB;AAUD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAQ5F;yBARe,UAAU;;;;;AAU1B,iBAAS,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAQ3F;kBARQ,gBAAgB;;;AAYzB,iBAAS,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAc3F;kBAdQ,gBAAgB;;;AAkBzB,iBAAS,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAc3F;kBAdQ,gBAAgB"}
1
+ {"version":3,"file":"StoryTitle.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAIhE,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACjD,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAQ5F;yBARe,UAAU;;;;;AAU1B,iBAAS,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAQ3F;kBARQ,gBAAgB;;;AAYzB,iBAAS,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAc3F;kBAdQ,gBAAgB;;;AAkBzB,iBAAS,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAc3F;kBAdQ,gBAAgB"}
@@ -1,2 +1,2 @@
1
- export declare const storyPadding = 16;
1
+ export declare const storyPadding = "kitt.4";
2
2
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/story-components/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAK,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/story-components/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,WAAW,CAAC"}
@@ -27,6 +27,7 @@ import { Picker as Picker$1 } from '@react-native-picker/picker';
27
27
  import { LinearGradient as LinearGradient$1 } from 'expo-linear-gradient';
28
28
  import { useFloating, offset, autoPlacement } from '@floating-ui/react-native';
29
29
  import { makeDecorator } from '@storybook/addons';
30
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
30
31
 
31
32
  var View = View$1;
32
33
  var ScrollView = ScrollView$1;
@@ -8190,7 +8191,7 @@ var Flex = /*#__PURE__*/styled.View.withConfig({
8190
8191
  return padding * theme.kitt.spacing;
8191
8192
  });
8192
8193
 
8193
- var storyPadding = 16;
8194
+ var storyPadding = 'kitt.4';
8194
8195
 
8195
8196
  var getBackgroundColorFromBlockColor = function (theme) {
8196
8197
  var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'transparent';
@@ -8222,18 +8223,15 @@ var useStoryBlockColor = function (color) {
8222
8223
  var storyBlockColor = useContext(StoryBlockColorContext);
8223
8224
  return color || storyBlockColor;
8224
8225
  };
8225
- var StyledStoryBlockView = /*#__PURE__*/styled.View.withConfig({
8226
- displayName: "StoryBlock__StyledStoryBlockView"
8227
- })(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
8228
- var theme = _ref.theme,
8226
+ function StoryBlock(_ref) {
8227
+ var children = _ref.children,
8229
8228
  background = _ref.background;
8230
- return getBackgroundColorFromBlockColor(theme, background);
8231
- });
8232
- function StoryBlock(_ref2) {
8233
- var children = _ref2.children,
8234
- background = _ref2.background;
8235
- return /*#__PURE__*/jsx(StyledStoryBlockView, {
8236
- background: background,
8229
+ var theme = /*#__PURE__*/useTheme();
8230
+ return /*#__PURE__*/jsx(View, {
8231
+ paddingTop: "kitt.4",
8232
+ paddingX: storyPadding,
8233
+ marginX: "-".concat(storyPadding),
8234
+ background: getBackgroundColorFromBlockColor(theme, background),
8237
8235
  children: /*#__PURE__*/jsx(StoryBlockColorContext.Provider, {
8238
8236
  value: getTypographyColorFromBlockColor(background),
8239
8237
  children: /*#__PURE__*/jsx(StoryBlockBackgroundContext.Provider, {
@@ -8244,17 +8242,12 @@ function StoryBlock(_ref2) {
8244
8242
  });
8245
8243
  }
8246
8244
 
8247
- var StoryTitleContainer = /*#__PURE__*/styled.View.withConfig({
8248
- displayName: "StoryTitle__StoryTitleContainer"
8249
- })(["margin-bottom:30px;"]);
8250
- var StorySubTitleContainer = /*#__PURE__*/styled.View.withConfig({
8251
- displayName: "StoryTitle__StorySubTitleContainer"
8252
- })(["margin-bottom:10px;"]);
8253
8245
  function StoryTitle(_ref) {
8254
8246
  var color = _ref.color,
8255
8247
  children = _ref.children,
8256
8248
  numberOfLines = _ref.numberOfLines;
8257
- return /*#__PURE__*/jsx(StoryTitleContainer, {
8249
+ return /*#__PURE__*/jsx(View, {
8250
+ marginBottom: 30,
8258
8251
  children: /*#__PURE__*/jsx(Typography.Header1, {
8259
8252
  variant: "bold",
8260
8253
  base: "header1",
@@ -8268,7 +8261,8 @@ function StoryTitleLevel2(_ref2) {
8268
8261
  var color = _ref2.color,
8269
8262
  children = _ref2.children,
8270
8263
  numberOfLines = _ref2.numberOfLines;
8271
- return /*#__PURE__*/jsx(StoryTitleContainer, {
8264
+ return /*#__PURE__*/jsx(View, {
8265
+ marginBottom: 30,
8272
8266
  children: /*#__PURE__*/jsx(Typography.Header2, {
8273
8267
  variant: "bold",
8274
8268
  base: "header2",
@@ -8283,7 +8277,8 @@ function StoryTitleLevel3(_ref3) {
8283
8277
  var color = _ref3.color,
8284
8278
  children = _ref3.children,
8285
8279
  numberOfLines = _ref3.numberOfLines;
8286
- return /*#__PURE__*/jsx(StorySubTitleContainer, {
8280
+ return /*#__PURE__*/jsx(View, {
8281
+ marginBottom: 10,
8287
8282
  children: /*#__PURE__*/jsx(Typography.Header3, {
8288
8283
  variant: "bold",
8289
8284
  base: "header3",
@@ -8299,7 +8294,8 @@ function StoryTitleLevel4(_ref4) {
8299
8294
  var color = _ref4.color,
8300
8295
  children = _ref4.children,
8301
8296
  numberOfLines = _ref4.numberOfLines;
8302
- return /*#__PURE__*/jsx(StorySubTitleContainer, {
8297
+ return /*#__PURE__*/jsx(View, {
8298
+ marginBottom: 10,
8303
8299
  children: /*#__PURE__*/jsx(Typography.Header4, {
8304
8300
  variant: "bold",
8305
8301
  base: "header4",
@@ -8315,14 +8311,12 @@ StoryTitle.Level2 = StoryTitleLevel2;
8315
8311
  StoryTitle.Level3 = StoryTitleLevel3;
8316
8312
  StoryTitle.Level4 = StoryTitleLevel4;
8317
8313
 
8318
- var StoryContainer$1 = /*#__PURE__*/styled.ScrollView.withConfig({
8319
- displayName: "Story__StoryContainer"
8320
- })(["padding:", "px;"], storyPadding);
8321
8314
  function Story(_ref) {
8322
8315
  var title = _ref.title,
8323
8316
  contentContainerStyle = _ref.contentContainerStyle,
8324
8317
  children = _ref.children;
8325
- return /*#__PURE__*/jsxs(StoryContainer$1, {
8318
+ return /*#__PURE__*/jsxs(ScrollView, {
8319
+ padding: storyPadding,
8326
8320
  contentContainerStyle: contentContainerStyle,
8327
8321
  children: [/*#__PURE__*/jsx(StoryTitle, {
8328
8322
  children: title
@@ -8333,53 +8327,48 @@ function Story(_ref) {
8333
8327
  var _excluded$2 = ["title", "children", "internalIsDemoSection"],
8334
8328
  _excluded2 = ["title", "children"],
8335
8329
  _excluded3 = ["title", "children"];
8336
- var StyledSection = /*#__PURE__*/styled.View.withConfig({
8337
- displayName: "StorySection__StyledSection"
8338
- })(["margin-bottom:32px;"]);
8339
8330
  function StorySection(_ref) {
8340
8331
  var title = _ref.title,
8341
8332
  children = _ref.children,
8342
8333
  internalIsDemoSection = _ref.internalIsDemoSection,
8343
8334
  props = _objectWithoutProperties(_ref, _excluded$2);
8344
8335
  if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
8345
- return /*#__PURE__*/jsxs(StyledSection, _objectSpread(_objectSpread({}, props), {}, {
8336
+ return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
8337
+ marginBottom: "kitt.8"
8338
+ }, props), {}, {
8346
8339
  children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
8347
8340
  children: title
8348
8341
  }), children]
8349
8342
  }));
8350
8343
  }
8351
- var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
8352
- displayName: "StorySection__StyledSubSection"
8353
- })(["margin-bottom:16px;"]);
8354
8344
  function SubSection(_ref2) {
8355
8345
  var title = _ref2.title,
8356
8346
  children = _ref2.children,
8357
8347
  props = _objectWithoutProperties(_ref2, _excluded2);
8358
- return /*#__PURE__*/jsxs(StyledSubSection, _objectSpread(_objectSpread({}, props), {}, {
8348
+ return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
8349
+ marginBottom: "kitt.4"
8350
+ }, props), {}, {
8359
8351
  children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
8360
8352
  children: title
8361
8353
  }), children]
8362
8354
  }));
8363
8355
  }
8364
- var StyledBlockSection = /*#__PURE__*/styled.View.withConfig({
8365
- displayName: "StorySection__StyledBlockSection"
8366
- })(["margin-bottom:16px;"]);
8367
8356
  function BlockSection(_ref3) {
8368
8357
  var title = _ref3.title,
8369
8358
  children = _ref3.children,
8370
8359
  props = _objectWithoutProperties(_ref3, _excluded3);
8371
- return /*#__PURE__*/jsxs(StyledBlockSection, _objectSpread(_objectSpread({}, props), {}, {
8360
+ return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
8361
+ marginBottom: "kitt.4"
8362
+ }, props), {}, {
8372
8363
  children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
8373
8364
  children: title
8374
8365
  }), children]
8375
8366
  }));
8376
8367
  }
8377
- var StyledDemoSection = /*#__PURE__*/styled.View.withConfig({
8378
- displayName: "StorySection__StyledDemoSection"
8379
- })(["margin-bottom:64px;"]);
8380
8368
  function DemoSection(_ref4) {
8381
8369
  var children = _ref4.children;
8382
- return /*#__PURE__*/jsx(StyledDemoSection, {
8370
+ return /*#__PURE__*/jsx(View, {
8371
+ marginBottom: "kitt.16",
8383
8372
  children: /*#__PURE__*/jsx(StorySection, {
8384
8373
  internalIsDemoSection: true,
8385
8374
  title: "Demo",
@@ -8418,50 +8407,38 @@ function StoryDecorator(storyFn, context) {
8418
8407
  });
8419
8408
  }
8420
8409
 
8421
- var SmallScreenRow = /*#__PURE__*/styled.View.withConfig({
8422
- displayName: "StoryGrid__SmallScreenRow"
8423
- })(["flex-direction:column;margin:0;"]);
8424
- var SmallScreenCol = /*#__PURE__*/styled.View.withConfig({
8425
- displayName: "StoryGrid__SmallScreenCol"
8426
- })(["padding:8px 0 16px;"]);
8427
- var FlexRow = /*#__PURE__*/styled.View.withConfig({
8428
- displayName: "StoryGrid__FlexRow"
8429
- })(["flex-direction:row;margin:0 -4px 16px;"]);
8430
- var FlexCol = /*#__PURE__*/styled.View.withConfig({
8431
- displayName: "StoryGrid__FlexCol"
8432
- })(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
8433
8410
  function StoryGridRow(_ref) {
8434
8411
  var children = _ref.children,
8435
8412
  _ref$breakpoint = _ref.breakpoint,
8436
8413
  breakpoint = _ref$breakpoint === void 0 ? 'small' : _ref$breakpoint;
8437
- // eslint-disable-next-line unicorn/expiring-todo-comments
8438
- // TODO use useBreakpoint instead
8439
- var _useWindowDimensions = useWindowDimensions(),
8440
- width = _useWindowDimensions.width;
8441
- var breakpointValue = breakpoint === 'small' ? 480 : 768;
8442
- if (width < breakpointValue) {
8443
- return /*#__PURE__*/jsx(SmallScreenRow, {
8444
- children: Children.map(children, function (child) {
8445
- return /*#__PURE__*/jsx(SmallScreenCol, {
8446
- children: child
8447
- });
8448
- })
8449
- });
8450
- }
8451
- return /*#__PURE__*/jsx(FlexRow, {
8414
+ return /*#__PURE__*/jsx(View, {
8415
+ flexDirection: _defineProperty({
8416
+ base: 'column'
8417
+ }, breakpoint, 'row'),
8418
+ marginX: _defineProperty({}, breakpoint, '-kitt.1'),
8419
+ marginBottom: _defineProperty({}, breakpoint, 'kitt.4'),
8452
8420
  children: Children.map(children, function (child) {
8453
- return /*#__PURE__*/jsx(FlexCol, {
8421
+ return /*#__PURE__*/jsx(View, {
8422
+ flexGrow: _defineProperty({}, breakpoint, 1),
8423
+ flexBasis: _defineProperty({}, breakpoint, 0),
8424
+ paddingTop: _defineProperty({
8425
+ base: 'kitt.2'
8426
+ }, breakpoint, 0),
8427
+ paddingBottom: _defineProperty({
8428
+ base: 'kitt.4'
8429
+ }, breakpoint, 0),
8430
+ marginX: _defineProperty({}, breakpoint, 'kitt.2'),
8454
8431
  children: child
8455
8432
  });
8456
8433
  })
8457
8434
  });
8458
8435
  }
8459
- function StoryGridCol(_ref2) {
8460
- var title = _ref2.title,
8461
- titleColor = _ref2.titleColor,
8462
- children = _ref2.children,
8463
- _ref2$platform = _ref2.platform,
8464
- platform = _ref2$platform === void 0 ? 'all' : _ref2$platform;
8436
+ function StoryGridCol(_ref10) {
8437
+ var title = _ref10.title,
8438
+ titleColor = _ref10.titleColor,
8439
+ children = _ref10.children,
8440
+ _ref10$platform = _ref10.platform,
8441
+ platform = _ref10$platform === void 0 ? 'all' : _ref10$platform;
8465
8442
  var isNative = Platform.OS === 'ios' || Platform.OS === 'android';
8466
8443
  if (Platform.OS === 'web' && platform === 'native') {
8467
8444
  return null;