@ornikar/kitt-universal 9.43.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.
- package/dist/definitions/forms/DatePicker/components/KeyboardDatePicker.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/reducers/keyboardDatePickerReducer.d.ts +3 -6
- package/dist/definitions/forms/DatePicker/reducers/keyboardDatePickerReducer.d.ts.map +1 -1
- package/dist/definitions/story-components/Story.d.ts +1 -1
- package/dist/definitions/story-components/Story.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryBlock.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryGrid.d.ts.map +1 -1
- package/dist/definitions/story-components/StorySection.d.ts +3 -2
- package/dist/definitions/story-components/StorySection.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
- package/dist/definitions/story-components/theme.d.ts +1 -1
- package/dist/definitions/story-components/theme.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +147 -195
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +147 -195
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +148 -195
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +154 -208
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +163 -213
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +169 -214
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardDatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/forms/DatePicker/components/KeyboardDatePicker.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAI7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"KeyboardDatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/forms/DatePicker/components/KeyboardDatePicker.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AAI7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AASrD,UAAU,uBAAwB,SAAQ,eAAe;IACvD,eAAe,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;CACrD;AAED,eAAO,MAAM,kBAAkB,iHA8I9B,CAAC"}
|
|
@@ -10,21 +10,18 @@ export interface State {
|
|
|
10
10
|
displayedYear?: string;
|
|
11
11
|
minDate: DatePickerProps['minDate'];
|
|
12
12
|
maxDate: DatePickerProps['maxDate'];
|
|
13
|
-
onChange: DatePickerProps['onChange'];
|
|
14
|
-
onBlur: DatePickerProps['onBlur'];
|
|
15
|
-
onFocus: DatePickerProps['onFocus'];
|
|
16
13
|
}
|
|
17
14
|
interface DayChangeAction {
|
|
18
15
|
type: 'day-change';
|
|
19
|
-
nextDay?:
|
|
16
|
+
nextDay?: number;
|
|
20
17
|
}
|
|
21
18
|
interface MonthChangeAction {
|
|
22
19
|
type: 'month-change';
|
|
23
|
-
nextMonth?:
|
|
20
|
+
nextMonth?: number;
|
|
24
21
|
}
|
|
25
22
|
interface YearChangeAction {
|
|
26
23
|
type: 'year-change';
|
|
27
|
-
nextYear?:
|
|
24
|
+
nextYear?: number;
|
|
28
25
|
}
|
|
29
26
|
interface DayBlurAction {
|
|
30
27
|
type: 'day-blur';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardDatePickerReducer.d.ts","sourceRoot":"","sources":["../../../../../src/forms/DatePicker/reducers/keyboardDatePickerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"keyboardDatePickerReducer.d.ts","sourceRoot":"","sources":["../../../../../src/forms/DatePicker/reducers/keyboardDatePickerReducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIrD,MAAM,WAAW,KAAK;IACpB,YAAY,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;CACrC;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,UAAU,cAAc;IACtB,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,KAAK,OAAO,GACR,eAAe,GACf,iBAAiB,GACjB,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,cAAc,CAAC;AAEnB,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAoE7D,CAAC"}
|
|
@@ -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,
|
|
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;
|
|
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;
|
|
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 {
|
|
3
|
-
|
|
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,
|
|
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;
|
|
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 =
|
|
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,
|
|
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;
|
|
@@ -3871,6 +3872,64 @@ function getYearInInterval(value, minDate, maxDate) {
|
|
|
3871
3872
|
return value !== undefined ? Math.max(minValue, Math.min(maxValue, value)) : value;
|
|
3872
3873
|
}
|
|
3873
3874
|
|
|
3875
|
+
var keyboardDatePickerReducer = function (state, action) {
|
|
3876
|
+
switch (action.type) {
|
|
3877
|
+
case 'day-change':
|
|
3878
|
+
{
|
|
3879
|
+
var nextDay = action.nextDay;
|
|
3880
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
3881
|
+
currentDay: nextDay,
|
|
3882
|
+
displayedDay: nextDay ? nextDay.toString() : ''
|
|
3883
|
+
});
|
|
3884
|
+
}
|
|
3885
|
+
case 'month-change':
|
|
3886
|
+
{
|
|
3887
|
+
var nextMonth = action.nextMonth;
|
|
3888
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
3889
|
+
currentMonth: nextMonth,
|
|
3890
|
+
displayedMonth: nextMonth ? nextMonth.toString() : ''
|
|
3891
|
+
});
|
|
3892
|
+
}
|
|
3893
|
+
case 'year-change':
|
|
3894
|
+
{
|
|
3895
|
+
var nextYear = action.nextYear;
|
|
3896
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
3897
|
+
currentYear: nextYear,
|
|
3898
|
+
displayedYear: nextYear ? nextYear.toString() : ''
|
|
3899
|
+
});
|
|
3900
|
+
}
|
|
3901
|
+
case 'day-blur':
|
|
3902
|
+
{
|
|
3903
|
+
var nextCurrentDay = getDayInInterval(state.currentDay);
|
|
3904
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
3905
|
+
displayedDay: nextCurrentDay ? dayFormatter(nextCurrentDay) : state.displayedDay
|
|
3906
|
+
});
|
|
3907
|
+
}
|
|
3908
|
+
case 'month-blur':
|
|
3909
|
+
{
|
|
3910
|
+
var minDate = state.minDate,
|
|
3911
|
+
maxDate = state.maxDate;
|
|
3912
|
+
var nextCurrentMonth = getMonthInInterval(state.currentMonth, minDate, maxDate);
|
|
3913
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
3914
|
+
currentMonth: nextCurrentMonth,
|
|
3915
|
+
displayedMonth: nextCurrentMonth !== undefined ? monthFormatter(nextCurrentMonth) : state.displayedMonth
|
|
3916
|
+
});
|
|
3917
|
+
}
|
|
3918
|
+
case 'year-blur':
|
|
3919
|
+
{
|
|
3920
|
+
var _minDate = state.minDate,
|
|
3921
|
+
_maxDate = state.maxDate;
|
|
3922
|
+
var nextCurrentYear = getYearInInterval(state.currentYear, _minDate, _maxDate);
|
|
3923
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
3924
|
+
currentYear: nextCurrentYear,
|
|
3925
|
+
displayedYear: nextCurrentYear !== undefined ? yearFormatter(nextCurrentYear) : state.displayedYear
|
|
3926
|
+
});
|
|
3927
|
+
}
|
|
3928
|
+
default:
|
|
3929
|
+
return state;
|
|
3930
|
+
}
|
|
3931
|
+
};
|
|
3932
|
+
|
|
3874
3933
|
function isNumber(input) {
|
|
3875
3934
|
// Number.isNaN and isNaN are not consistent
|
|
3876
3935
|
// eslint-disable-next-line no-restricted-globals
|
|
@@ -3954,111 +4013,6 @@ function stringToNumber(text) {
|
|
|
3954
4013
|
return parseInt(text, 10);
|
|
3955
4014
|
}
|
|
3956
4015
|
|
|
3957
|
-
var keyboardDatePickerReducer = function (state, action) {
|
|
3958
|
-
var handleChange = function (dateParts) {
|
|
3959
|
-
var onFocus = state.onFocus,
|
|
3960
|
-
onBlur = state.onBlur,
|
|
3961
|
-
onChange = state.onChange,
|
|
3962
|
-
minDate = state.minDate,
|
|
3963
|
-
maxDate = state.maxDate;
|
|
3964
|
-
onDatePartChange(_objectSpread(_objectSpread({}, dateParts), {}, {
|
|
3965
|
-
onFocus: onFocus,
|
|
3966
|
-
onBlur: onBlur,
|
|
3967
|
-
onChange: onChange,
|
|
3968
|
-
minDate: minDate,
|
|
3969
|
-
maxDate: maxDate
|
|
3970
|
-
}));
|
|
3971
|
-
};
|
|
3972
|
-
switch (action.type) {
|
|
3973
|
-
case 'day-change':
|
|
3974
|
-
{
|
|
3975
|
-
var nextDay = stringToNumber(action.nextDay || '');
|
|
3976
|
-
if (nextDay === undefined || !isNumber(action.nextDay)) {
|
|
3977
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
3978
|
-
currentDay: undefined,
|
|
3979
|
-
displayedDay: ''
|
|
3980
|
-
});
|
|
3981
|
-
}
|
|
3982
|
-
handleChange({
|
|
3983
|
-
day: nextDay,
|
|
3984
|
-
month: state.currentMonth,
|
|
3985
|
-
year: state.currentYear
|
|
3986
|
-
});
|
|
3987
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
3988
|
-
currentDay: nextDay,
|
|
3989
|
-
displayedDay: nextDay.toString()
|
|
3990
|
-
});
|
|
3991
|
-
}
|
|
3992
|
-
case 'month-change':
|
|
3993
|
-
{
|
|
3994
|
-
var nextMonth = stringToNumber(action.nextMonth || '');
|
|
3995
|
-
if (nextMonth === undefined || !isNumber(action.nextMonth)) {
|
|
3996
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
3997
|
-
currentMonth: undefined,
|
|
3998
|
-
displayedMonth: ''
|
|
3999
|
-
});
|
|
4000
|
-
}
|
|
4001
|
-
handleChange({
|
|
4002
|
-
day: state.currentDay,
|
|
4003
|
-
month: nextMonth,
|
|
4004
|
-
year: state.currentYear
|
|
4005
|
-
});
|
|
4006
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
4007
|
-
currentMonth: nextMonth,
|
|
4008
|
-
displayedMonth: nextMonth.toString()
|
|
4009
|
-
});
|
|
4010
|
-
}
|
|
4011
|
-
case 'year-change':
|
|
4012
|
-
{
|
|
4013
|
-
var nextYear = stringToNumber(action.nextYear || '');
|
|
4014
|
-
if (nextYear === undefined || !isNumber(action.nextYear)) {
|
|
4015
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
4016
|
-
currentYear: undefined,
|
|
4017
|
-
displayedYear: ''
|
|
4018
|
-
});
|
|
4019
|
-
}
|
|
4020
|
-
handleChange({
|
|
4021
|
-
day: state.currentDay,
|
|
4022
|
-
month: state.currentMonth,
|
|
4023
|
-
year: nextYear
|
|
4024
|
-
});
|
|
4025
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
4026
|
-
currentYear: nextYear,
|
|
4027
|
-
displayedYear: nextYear.toString()
|
|
4028
|
-
});
|
|
4029
|
-
}
|
|
4030
|
-
case 'day-blur':
|
|
4031
|
-
{
|
|
4032
|
-
var nextCurrentDay = getDayInInterval(state.currentDay);
|
|
4033
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
4034
|
-
displayedDay: nextCurrentDay ? dayFormatter(nextCurrentDay) : state.displayedDay
|
|
4035
|
-
});
|
|
4036
|
-
}
|
|
4037
|
-
case 'month-blur':
|
|
4038
|
-
{
|
|
4039
|
-
var minDate = state.minDate,
|
|
4040
|
-
maxDate = state.maxDate;
|
|
4041
|
-
var nextCurrentMonth = getMonthInInterval(state.currentMonth, minDate, maxDate);
|
|
4042
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
4043
|
-
currentMonth: nextCurrentMonth,
|
|
4044
|
-
displayedMonth: nextCurrentMonth !== undefined ? monthFormatter(nextCurrentMonth) : state.displayedMonth
|
|
4045
|
-
});
|
|
4046
|
-
}
|
|
4047
|
-
case 'year-blur':
|
|
4048
|
-
{
|
|
4049
|
-
var _minDate = state.minDate,
|
|
4050
|
-
_maxDate = state.maxDate;
|
|
4051
|
-
var nextCurrentYear = getYearInInterval(state.currentYear, _minDate, _maxDate);
|
|
4052
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
4053
|
-
currentYear: nextCurrentYear,
|
|
4054
|
-
displayedYear: nextCurrentYear !== undefined ? yearFormatter(nextCurrentYear) : state.displayedYear
|
|
4055
|
-
});
|
|
4056
|
-
}
|
|
4057
|
-
default:
|
|
4058
|
-
return state;
|
|
4059
|
-
}
|
|
4060
|
-
};
|
|
4061
|
-
|
|
4062
4016
|
var InputTextContainer = /*#__PURE__*/styled.View.withConfig({
|
|
4063
4017
|
displayName: "InputTextContainer"
|
|
4064
4018
|
})(["position:relative;"]);
|
|
@@ -4215,10 +4169,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4215
4169
|
displayedMonth: defaultMonth ? monthFormatter(defaultMonth) : '',
|
|
4216
4170
|
displayedYear: defaultYear ? yearFormatter(defaultYear) : '',
|
|
4217
4171
|
minDate: minDate,
|
|
4218
|
-
maxDate: maxDate
|
|
4219
|
-
onChange: onChange,
|
|
4220
|
-
onBlur: onBlur,
|
|
4221
|
-
onFocus: onFocus
|
|
4172
|
+
maxDate: maxDate
|
|
4222
4173
|
}),
|
|
4223
4174
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
4224
4175
|
state = _useReducer2[0],
|
|
@@ -4229,6 +4180,23 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4229
4180
|
isPressedInternal: isPressedInternal,
|
|
4230
4181
|
disabled: disabled
|
|
4231
4182
|
};
|
|
4183
|
+
var handleDatePartChange = function (day, month, year) {
|
|
4184
|
+
onDatePartChange({
|
|
4185
|
+
day: day,
|
|
4186
|
+
month: month,
|
|
4187
|
+
year: year,
|
|
4188
|
+
minDate: state.minDate,
|
|
4189
|
+
maxDate: state.maxDate,
|
|
4190
|
+
onFocus: onFocus,
|
|
4191
|
+
onBlur: onBlur,
|
|
4192
|
+
onChange: onChange
|
|
4193
|
+
});
|
|
4194
|
+
};
|
|
4195
|
+
var handleAutoFocusNextField = function (currentFieldValue, nextFieldRef) {
|
|
4196
|
+
if (currentFieldValue.length === 2 && nextFieldRef.current) {
|
|
4197
|
+
nextFieldRef.current.focus();
|
|
4198
|
+
}
|
|
4199
|
+
};
|
|
4232
4200
|
return /*#__PURE__*/jsx(View, {
|
|
4233
4201
|
testID: testID,
|
|
4234
4202
|
nativeID: id,
|
|
@@ -4244,14 +4212,15 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4244
4212
|
value: state.displayedDay,
|
|
4245
4213
|
returnKeyType: getReturnKeyTypeForNumericInput('next'),
|
|
4246
4214
|
onChange: function (e) {
|
|
4247
|
-
var nextDay = e.nativeEvent.text;
|
|
4215
|
+
var nextDay = stringToNumber(e.nativeEvent.text);
|
|
4248
4216
|
dispatch({
|
|
4249
4217
|
type: 'day-change',
|
|
4250
4218
|
nextDay: nextDay
|
|
4251
4219
|
});
|
|
4252
|
-
if (nextDay
|
|
4253
|
-
|
|
4220
|
+
if (nextDay && isNumber(nextDay)) {
|
|
4221
|
+
handleDatePartChange(nextDay, state.currentMonth, state.currentYear);
|
|
4254
4222
|
}
|
|
4223
|
+
handleAutoFocusNextField(e.nativeEvent.text, monthRef);
|
|
4255
4224
|
},
|
|
4256
4225
|
onBlur: function () {
|
|
4257
4226
|
return dispatch({
|
|
@@ -4259,7 +4228,8 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4259
4228
|
});
|
|
4260
4229
|
},
|
|
4261
4230
|
onSubmitEditing: function () {
|
|
4262
|
-
|
|
4231
|
+
var _monthRef$current;
|
|
4232
|
+
(_monthRef$current = monthRef.current) === null || _monthRef$current === void 0 ? void 0 : _monthRef$current.focus();
|
|
4263
4233
|
}
|
|
4264
4234
|
}))
|
|
4265
4235
|
}), /*#__PURE__*/jsx(PartContainer, {
|
|
@@ -4272,14 +4242,15 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4272
4242
|
value: state.displayedMonth,
|
|
4273
4243
|
returnKeyType: getReturnKeyTypeForNumericInput('next'),
|
|
4274
4244
|
onChange: function (e) {
|
|
4275
|
-
var nextMonth = e.nativeEvent.text;
|
|
4245
|
+
var nextMonth = stringToNumber(e.nativeEvent.text);
|
|
4276
4246
|
dispatch({
|
|
4277
4247
|
type: 'month-change',
|
|
4278
|
-
nextMonth:
|
|
4248
|
+
nextMonth: nextMonth
|
|
4279
4249
|
});
|
|
4280
|
-
if (nextMonth
|
|
4281
|
-
|
|
4250
|
+
if (nextMonth && isNumber(nextMonth)) {
|
|
4251
|
+
handleDatePartChange(state.currentDay, nextMonth, state.currentYear);
|
|
4282
4252
|
}
|
|
4253
|
+
handleAutoFocusNextField(e.nativeEvent.text, yearRef);
|
|
4283
4254
|
},
|
|
4284
4255
|
onBlur: function () {
|
|
4285
4256
|
return dispatch({
|
|
@@ -4287,7 +4258,8 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4287
4258
|
});
|
|
4288
4259
|
},
|
|
4289
4260
|
onSubmitEditing: function () {
|
|
4290
|
-
|
|
4261
|
+
var _yearRef$current;
|
|
4262
|
+
(_yearRef$current = yearRef.current) === null || _yearRef$current === void 0 ? void 0 : _yearRef$current.focus();
|
|
4291
4263
|
}
|
|
4292
4264
|
}))
|
|
4293
4265
|
}), /*#__PURE__*/jsx(PartContainer, {
|
|
@@ -4300,10 +4272,14 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4300
4272
|
value: state.displayedYear,
|
|
4301
4273
|
returnKeyType: returnKeyType ? getReturnKeyTypeForNumericInput(returnKeyType) : undefined,
|
|
4302
4274
|
onChange: function (e) {
|
|
4275
|
+
var nextYear = stringToNumber(e.nativeEvent.text);
|
|
4303
4276
|
dispatch({
|
|
4304
4277
|
type: 'year-change',
|
|
4305
|
-
nextYear:
|
|
4278
|
+
nextYear: nextYear
|
|
4306
4279
|
});
|
|
4280
|
+
if (nextYear && isNumber(nextYear)) {
|
|
4281
|
+
handleDatePartChange(state.currentDay, state.currentMonth, nextYear);
|
|
4282
|
+
}
|
|
4307
4283
|
},
|
|
4308
4284
|
onBlur: function () {
|
|
4309
4285
|
return dispatch({
|
|
@@ -8215,7 +8191,7 @@ var Flex = /*#__PURE__*/styled.View.withConfig({
|
|
|
8215
8191
|
return padding * theme.kitt.spacing;
|
|
8216
8192
|
});
|
|
8217
8193
|
|
|
8218
|
-
var storyPadding =
|
|
8194
|
+
var storyPadding = 'kitt.4';
|
|
8219
8195
|
|
|
8220
8196
|
var getBackgroundColorFromBlockColor = function (theme) {
|
|
8221
8197
|
var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'transparent';
|
|
@@ -8247,18 +8223,15 @@ var useStoryBlockColor = function (color) {
|
|
|
8247
8223
|
var storyBlockColor = useContext(StoryBlockColorContext);
|
|
8248
8224
|
return color || storyBlockColor;
|
|
8249
8225
|
};
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
})(["padding:16px ", "px 0;margin:0 -", "px;background:", ";"], storyPadding, storyPadding, function (_ref) {
|
|
8253
|
-
var theme = _ref.theme,
|
|
8226
|
+
function StoryBlock(_ref) {
|
|
8227
|
+
var children = _ref.children,
|
|
8254
8228
|
background = _ref.background;
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
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),
|
|
8262
8235
|
children: /*#__PURE__*/jsx(StoryBlockColorContext.Provider, {
|
|
8263
8236
|
value: getTypographyColorFromBlockColor(background),
|
|
8264
8237
|
children: /*#__PURE__*/jsx(StoryBlockBackgroundContext.Provider, {
|
|
@@ -8269,17 +8242,12 @@ function StoryBlock(_ref2) {
|
|
|
8269
8242
|
});
|
|
8270
8243
|
}
|
|
8271
8244
|
|
|
8272
|
-
var StoryTitleContainer = /*#__PURE__*/styled.View.withConfig({
|
|
8273
|
-
displayName: "StoryTitle__StoryTitleContainer"
|
|
8274
|
-
})(["margin-bottom:30px;"]);
|
|
8275
|
-
var StorySubTitleContainer = /*#__PURE__*/styled.View.withConfig({
|
|
8276
|
-
displayName: "StoryTitle__StorySubTitleContainer"
|
|
8277
|
-
})(["margin-bottom:10px;"]);
|
|
8278
8245
|
function StoryTitle(_ref) {
|
|
8279
8246
|
var color = _ref.color,
|
|
8280
8247
|
children = _ref.children,
|
|
8281
8248
|
numberOfLines = _ref.numberOfLines;
|
|
8282
|
-
return /*#__PURE__*/jsx(
|
|
8249
|
+
return /*#__PURE__*/jsx(View, {
|
|
8250
|
+
marginBottom: 30,
|
|
8283
8251
|
children: /*#__PURE__*/jsx(Typography.Header1, {
|
|
8284
8252
|
variant: "bold",
|
|
8285
8253
|
base: "header1",
|
|
@@ -8293,7 +8261,8 @@ function StoryTitleLevel2(_ref2) {
|
|
|
8293
8261
|
var color = _ref2.color,
|
|
8294
8262
|
children = _ref2.children,
|
|
8295
8263
|
numberOfLines = _ref2.numberOfLines;
|
|
8296
|
-
return /*#__PURE__*/jsx(
|
|
8264
|
+
return /*#__PURE__*/jsx(View, {
|
|
8265
|
+
marginBottom: 30,
|
|
8297
8266
|
children: /*#__PURE__*/jsx(Typography.Header2, {
|
|
8298
8267
|
variant: "bold",
|
|
8299
8268
|
base: "header2",
|
|
@@ -8308,7 +8277,8 @@ function StoryTitleLevel3(_ref3) {
|
|
|
8308
8277
|
var color = _ref3.color,
|
|
8309
8278
|
children = _ref3.children,
|
|
8310
8279
|
numberOfLines = _ref3.numberOfLines;
|
|
8311
|
-
return /*#__PURE__*/jsx(
|
|
8280
|
+
return /*#__PURE__*/jsx(View, {
|
|
8281
|
+
marginBottom: 10,
|
|
8312
8282
|
children: /*#__PURE__*/jsx(Typography.Header3, {
|
|
8313
8283
|
variant: "bold",
|
|
8314
8284
|
base: "header3",
|
|
@@ -8324,7 +8294,8 @@ function StoryTitleLevel4(_ref4) {
|
|
|
8324
8294
|
var color = _ref4.color,
|
|
8325
8295
|
children = _ref4.children,
|
|
8326
8296
|
numberOfLines = _ref4.numberOfLines;
|
|
8327
|
-
return /*#__PURE__*/jsx(
|
|
8297
|
+
return /*#__PURE__*/jsx(View, {
|
|
8298
|
+
marginBottom: 10,
|
|
8328
8299
|
children: /*#__PURE__*/jsx(Typography.Header4, {
|
|
8329
8300
|
variant: "bold",
|
|
8330
8301
|
base: "header4",
|
|
@@ -8340,14 +8311,12 @@ StoryTitle.Level2 = StoryTitleLevel2;
|
|
|
8340
8311
|
StoryTitle.Level3 = StoryTitleLevel3;
|
|
8341
8312
|
StoryTitle.Level4 = StoryTitleLevel4;
|
|
8342
8313
|
|
|
8343
|
-
var StoryContainer$1 = /*#__PURE__*/styled.ScrollView.withConfig({
|
|
8344
|
-
displayName: "Story__StoryContainer"
|
|
8345
|
-
})(["padding:", "px;"], storyPadding);
|
|
8346
8314
|
function Story(_ref) {
|
|
8347
8315
|
var title = _ref.title,
|
|
8348
8316
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
8349
8317
|
children = _ref.children;
|
|
8350
|
-
return /*#__PURE__*/jsxs(
|
|
8318
|
+
return /*#__PURE__*/jsxs(ScrollView, {
|
|
8319
|
+
padding: storyPadding,
|
|
8351
8320
|
contentContainerStyle: contentContainerStyle,
|
|
8352
8321
|
children: [/*#__PURE__*/jsx(StoryTitle, {
|
|
8353
8322
|
children: title
|
|
@@ -8358,53 +8327,48 @@ function Story(_ref) {
|
|
|
8358
8327
|
var _excluded$2 = ["title", "children", "internalIsDemoSection"],
|
|
8359
8328
|
_excluded2 = ["title", "children"],
|
|
8360
8329
|
_excluded3 = ["title", "children"];
|
|
8361
|
-
var StyledSection = /*#__PURE__*/styled.View.withConfig({
|
|
8362
|
-
displayName: "StorySection__StyledSection"
|
|
8363
|
-
})(["margin-bottom:32px;"]);
|
|
8364
8330
|
function StorySection(_ref) {
|
|
8365
8331
|
var title = _ref.title,
|
|
8366
8332
|
children = _ref.children,
|
|
8367
8333
|
internalIsDemoSection = _ref.internalIsDemoSection,
|
|
8368
8334
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
8369
8335
|
if (title === 'Demo' && !internalIsDemoSection) throw new Error('Use StorySection.Demo instead');
|
|
8370
|
-
return /*#__PURE__*/jsxs(
|
|
8336
|
+
return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
|
|
8337
|
+
marginBottom: "kitt.8"
|
|
8338
|
+
}, props), {}, {
|
|
8371
8339
|
children: [/*#__PURE__*/jsx(StoryTitle.Level2, {
|
|
8372
8340
|
children: title
|
|
8373
8341
|
}), children]
|
|
8374
8342
|
}));
|
|
8375
8343
|
}
|
|
8376
|
-
var StyledSubSection = /*#__PURE__*/styled.View.withConfig({
|
|
8377
|
-
displayName: "StorySection__StyledSubSection"
|
|
8378
|
-
})(["margin-bottom:16px;"]);
|
|
8379
8344
|
function SubSection(_ref2) {
|
|
8380
8345
|
var title = _ref2.title,
|
|
8381
8346
|
children = _ref2.children,
|
|
8382
8347
|
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
8383
|
-
return /*#__PURE__*/jsxs(
|
|
8348
|
+
return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
|
|
8349
|
+
marginBottom: "kitt.4"
|
|
8350
|
+
}, props), {}, {
|
|
8384
8351
|
children: [/*#__PURE__*/jsx(StoryTitle.Level3, {
|
|
8385
8352
|
children: title
|
|
8386
8353
|
}), children]
|
|
8387
8354
|
}));
|
|
8388
8355
|
}
|
|
8389
|
-
var StyledBlockSection = /*#__PURE__*/styled.View.withConfig({
|
|
8390
|
-
displayName: "StorySection__StyledBlockSection"
|
|
8391
|
-
})(["margin-bottom:16px;"]);
|
|
8392
8356
|
function BlockSection(_ref3) {
|
|
8393
8357
|
var title = _ref3.title,
|
|
8394
8358
|
children = _ref3.children,
|
|
8395
8359
|
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
8396
|
-
return /*#__PURE__*/jsxs(
|
|
8360
|
+
return /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
|
|
8361
|
+
marginBottom: "kitt.4"
|
|
8362
|
+
}, props), {}, {
|
|
8397
8363
|
children: [/*#__PURE__*/jsx(StoryTitle.Level4, {
|
|
8398
8364
|
children: title
|
|
8399
8365
|
}), children]
|
|
8400
8366
|
}));
|
|
8401
8367
|
}
|
|
8402
|
-
var StyledDemoSection = /*#__PURE__*/styled.View.withConfig({
|
|
8403
|
-
displayName: "StorySection__StyledDemoSection"
|
|
8404
|
-
})(["margin-bottom:64px;"]);
|
|
8405
8368
|
function DemoSection(_ref4) {
|
|
8406
8369
|
var children = _ref4.children;
|
|
8407
|
-
return /*#__PURE__*/jsx(
|
|
8370
|
+
return /*#__PURE__*/jsx(View, {
|
|
8371
|
+
marginBottom: "kitt.16",
|
|
8408
8372
|
children: /*#__PURE__*/jsx(StorySection, {
|
|
8409
8373
|
internalIsDemoSection: true,
|
|
8410
8374
|
title: "Demo",
|
|
@@ -8443,50 +8407,38 @@ function StoryDecorator(storyFn, context) {
|
|
|
8443
8407
|
});
|
|
8444
8408
|
}
|
|
8445
8409
|
|
|
8446
|
-
var SmallScreenRow = /*#__PURE__*/styled.View.withConfig({
|
|
8447
|
-
displayName: "StoryGrid__SmallScreenRow"
|
|
8448
|
-
})(["flex-direction:column;margin:0;"]);
|
|
8449
|
-
var SmallScreenCol = /*#__PURE__*/styled.View.withConfig({
|
|
8450
|
-
displayName: "StoryGrid__SmallScreenCol"
|
|
8451
|
-
})(["padding:8px 0 16px;"]);
|
|
8452
|
-
var FlexRow = /*#__PURE__*/styled.View.withConfig({
|
|
8453
|
-
displayName: "StoryGrid__FlexRow"
|
|
8454
|
-
})(["flex-direction:row;margin:0 -4px 16px;"]);
|
|
8455
|
-
var FlexCol = /*#__PURE__*/styled.View.withConfig({
|
|
8456
|
-
displayName: "StoryGrid__FlexCol"
|
|
8457
|
-
})(["flex-grow:1;flex-basis:0;margin:0 8px;"]);
|
|
8458
8410
|
function StoryGridRow(_ref) {
|
|
8459
8411
|
var children = _ref.children,
|
|
8460
8412
|
_ref$breakpoint = _ref.breakpoint,
|
|
8461
8413
|
breakpoint = _ref$breakpoint === void 0 ? 'small' : _ref$breakpoint;
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
return /*#__PURE__*/jsx(SmallScreenRow, {
|
|
8469
|
-
children: Children.map(children, function (child) {
|
|
8470
|
-
return /*#__PURE__*/jsx(SmallScreenCol, {
|
|
8471
|
-
children: child
|
|
8472
|
-
});
|
|
8473
|
-
})
|
|
8474
|
-
});
|
|
8475
|
-
}
|
|
8476
|
-
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'),
|
|
8477
8420
|
children: Children.map(children, function (child) {
|
|
8478
|
-
return /*#__PURE__*/jsx(
|
|
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'),
|
|
8479
8431
|
children: child
|
|
8480
8432
|
});
|
|
8481
8433
|
})
|
|
8482
8434
|
});
|
|
8483
8435
|
}
|
|
8484
|
-
function StoryGridCol(
|
|
8485
|
-
var title =
|
|
8486
|
-
titleColor =
|
|
8487
|
-
children =
|
|
8488
|
-
|
|
8489
|
-
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;
|
|
8490
8442
|
var isNative = Platform.OS === 'ios' || Platform.OS === 'android';
|
|
8491
8443
|
if (Platform.OS === 'web' && platform === 'native') {
|
|
8492
8444
|
return null;
|