@draftbit/core 46.4.4-d55501.2 → 46.4.4-d5b88a.2
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/lib/commonjs/Provider.js +9 -0
- package/lib/commonjs/components/Accordion/AccordionGroup.js +14 -0
- package/lib/commonjs/components/Accordion/AccordionItem.js +13 -0
- package/lib/commonjs/components/Accordion/index.js +3 -0
- package/lib/commonjs/components/ActionSheet/ActionSheet.js +9 -0
- package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js +5 -0
- package/lib/commonjs/components/ActionSheet/ActionSheetItem.js +7 -0
- package/lib/commonjs/components/ActionSheet/index.js +4 -0
- package/lib/commonjs/components/AnimatedCircularProgress.js +15 -0
- package/lib/commonjs/components/AspectRatio.js +10 -0
- package/lib/commonjs/components/AvatarEdit.js +12 -0
- package/lib/commonjs/components/Banner.js +23 -9
- package/lib/commonjs/components/Button.js +19 -2
- package/lib/commonjs/components/Card.js +14 -0
- package/lib/commonjs/components/CardBlock.js +15 -0
- package/lib/commonjs/components/CardContainer.js +18 -0
- package/lib/commonjs/components/CardContainerRating.js +20 -2
- package/lib/commonjs/components/CardContainerShortImage.js +12 -0
- package/lib/commonjs/components/CardInline.js +14 -1
- package/lib/commonjs/components/Carousel.js +21 -3
- package/lib/commonjs/components/Checkbox/Checkbox.js +18 -3
- package/lib/commonjs/components/Checkbox/CheckboxGroup.js +11 -0
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +20 -0
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +24 -3
- package/lib/commonjs/components/Checkbox/context.js +5 -0
- package/lib/commonjs/components/Checkbox/index.js +4 -0
- package/lib/commonjs/components/CircleImage.js +9 -0
- package/lib/commonjs/components/CircularProgress.js +13 -3
- package/lib/commonjs/components/Config.js +13 -5
- package/lib/commonjs/components/Container.js +15 -15
- package/lib/commonjs/components/DatePicker/DatePicker.js +48 -16
- package/lib/commonjs/components/DatePicker/DatePickerComponent.js +7 -0
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js +10 -0
- package/lib/commonjs/components/DeprecatedButton.js +23 -0
- package/lib/commonjs/components/DeprecatedCardWrapper.js +11 -0
- package/lib/commonjs/components/DeprecatedFAB.js +26 -0
- package/lib/commonjs/components/Divider.js +9 -0
- package/lib/commonjs/components/Elevation.js +11 -0
- package/lib/commonjs/components/FAB.js +10 -0
- package/lib/commonjs/components/FieldSearchBarFull.js +18 -0
- package/lib/commonjs/components/FormRow.js +10 -0
- package/lib/commonjs/components/Header.js +13 -0
- package/lib/commonjs/components/HeaderLarge.js +9 -0
- package/lib/commonjs/components/HeaderMedium.js +9 -0
- package/lib/commonjs/components/HeaderOverline.js +9 -0
- package/lib/commonjs/components/IconButton.js +10 -0
- package/lib/commonjs/components/Image.js +17 -0
- package/lib/commonjs/components/Layout.js +12 -2
- package/lib/commonjs/components/NumberInput.js +21 -8
- package/lib/commonjs/components/Picker/Picker.js +42 -9
- package/lib/commonjs/components/Picker/PickerComponent.android.js +23 -6
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +27 -8
- package/lib/commonjs/components/Picker/PickerComponent.web.js +23 -6
- package/lib/commonjs/components/Portal/Portal.js +14 -4
- package/lib/commonjs/components/Portal/PortalConsumer.js +15 -5
- package/lib/commonjs/components/Portal/PortalHost.js +31 -4
- package/lib/commonjs/components/Portal/PortalManager.js +19 -7
- package/lib/commonjs/components/ProgressBar.js +25 -5
- package/lib/commonjs/components/ProgressCircle.js +10 -0
- package/lib/commonjs/components/ProgressIndicator.js +9 -0
- package/lib/commonjs/components/RadioButton/RadioButton.js +14 -1
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +10 -0
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +14 -0
- package/lib/commonjs/components/RadioButton/RadioButtonRow.js +21 -1
- package/lib/commonjs/components/RadioButton/context.js +5 -0
- package/lib/commonjs/components/RadioButton/index.js +5 -0
- package/lib/commonjs/components/Row.js +11 -0
- package/lib/commonjs/components/RowBodyIcon.js +10 -0
- package/lib/commonjs/components/RowHeadlineImageCaption.js +11 -2
- package/lib/commonjs/components/RowHeadlineImageIcon.js +10 -0
- package/lib/commonjs/components/SVG.js +9 -0
- package/lib/commonjs/components/ScreenContainer.js +14 -0
- package/lib/commonjs/components/Slider.js +21 -0
- package/lib/commonjs/components/StarRating.js +10 -0
- package/lib/commonjs/components/StepIndicator.js +39 -5
- package/lib/commonjs/components/Stepper.js +26 -7
- package/lib/commonjs/components/Surface.js +14 -0
- package/lib/commonjs/components/Swiper/Swiper.js +8 -0
- package/lib/commonjs/components/Swiper/SwiperItem.js +6 -0
- package/lib/commonjs/components/Swiper/index.js +3 -0
- package/lib/commonjs/components/Switch.js +18 -5
- package/lib/commonjs/components/Text.js +18 -3
- package/lib/commonjs/components/TextField.js +62 -12
- package/lib/commonjs/components/ToggleButton.js +14 -0
- package/lib/commonjs/components/Touchable.js +5 -0
- package/lib/commonjs/components/Touchable.web.js +2 -0
- package/lib/commonjs/components/Typography.js +5 -0
- package/lib/commonjs/components/useAuthState.js +9 -0
- package/lib/commonjs/constants.js +4 -0
- package/lib/commonjs/hooks.js +7 -4
- package/lib/commonjs/index.js +52 -13
- package/lib/commonjs/interfaces/Icon.js +5 -3
- package/lib/commonjs/mappings/Accordion.js +2 -0
- package/lib/commonjs/mappings/AccordionItem.js +2 -0
- package/lib/commonjs/mappings/ActionSheet.js +2 -0
- package/lib/commonjs/mappings/ActionSheetCancel.js +2 -0
- package/lib/commonjs/mappings/ActionSheetItem.js +2 -0
- package/lib/commonjs/mappings/ActivityIndicator.js +2 -0
- package/lib/commonjs/mappings/AudioPlayer.js +2 -0
- package/lib/commonjs/mappings/AvatarEdit.js +2 -0
- package/lib/commonjs/mappings/Banner.js +2 -0
- package/lib/commonjs/mappings/BlurView.js +2 -0
- package/lib/commonjs/mappings/Button.js +5 -6
- package/lib/commonjs/mappings/Card.js +4 -3
- package/lib/commonjs/mappings/CardBlock.js +5 -6
- package/lib/commonjs/mappings/CardContainer.js +7 -5
- package/lib/commonjs/mappings/CardContainerRating.js +4 -4
- package/lib/commonjs/mappings/CardContainerShortImage.js +2 -0
- package/lib/commonjs/mappings/CardInline.js +2 -0
- package/lib/commonjs/mappings/Carousel.js +2 -0
- package/lib/commonjs/mappings/Checkbox.js +2 -0
- package/lib/commonjs/mappings/CheckboxGroup.js +2 -0
- package/lib/commonjs/mappings/CheckboxRow.js +2 -0
- package/lib/commonjs/mappings/CircleImage.js +2 -0
- package/lib/commonjs/mappings/Container.js +2 -0
- package/lib/commonjs/mappings/CustomCode.js +2 -0
- package/lib/commonjs/mappings/DatePicker.js +4 -4
- package/lib/commonjs/mappings/Divider.js +2 -0
- package/lib/commonjs/mappings/FAB.js +2 -0
- package/lib/commonjs/mappings/Fetch.js +2 -0
- package/lib/commonjs/mappings/FieldSearchBarFull.js +3 -2
- package/lib/commonjs/mappings/FlashList.js +2 -0
- package/lib/commonjs/mappings/FlatList.js +2 -0
- package/lib/commonjs/mappings/HeaderLarge.js +2 -0
- package/lib/commonjs/mappings/HeaderMedium.js +2 -0
- package/lib/commonjs/mappings/HeaderOverline.js +2 -0
- package/lib/commonjs/mappings/HtmlElements.js +125 -0
- package/lib/commonjs/mappings/Icon.js +3 -2
- package/lib/commonjs/mappings/IconButton.js +2 -0
- package/lib/commonjs/mappings/Image.js +2 -0
- package/lib/commonjs/mappings/ImageBackground.js +2 -0
- package/lib/commonjs/mappings/KeyboardAvoidingView.js +2 -0
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +2 -0
- package/lib/commonjs/mappings/Layout.js +2 -0
- package/lib/commonjs/mappings/LinearGradient.js +2 -0
- package/lib/commonjs/mappings/MapCallout.js +2 -0
- package/lib/commonjs/mappings/MapMarker.js +2 -0
- package/lib/commonjs/mappings/MapView.js +2 -0
- package/lib/commonjs/mappings/Modal.js +2 -0
- package/lib/commonjs/mappings/NumberInput.js +4 -4
- package/lib/commonjs/mappings/Picker.js +4 -4
- package/lib/commonjs/mappings/ProgressBar.js +2 -0
- package/lib/commonjs/mappings/ProgressCircle.js +2 -0
- package/lib/commonjs/mappings/ProgressIndicator.js +2 -0
- package/lib/commonjs/mappings/RadioButton.js +2 -0
- package/lib/commonjs/mappings/RadioButtonGroup.js +2 -0
- package/lib/commonjs/mappings/RadioButtonRow.js +2 -0
- package/lib/commonjs/mappings/RowBodyIcon.js +2 -0
- package/lib/commonjs/mappings/RowHeadlineImageCaption.js +2 -0
- package/lib/commonjs/mappings/RowHeadlineImageIcon.js +8 -12
- package/lib/commonjs/mappings/SVG.js +2 -0
- package/lib/commonjs/mappings/SafeAreaView.js +2 -0
- package/lib/commonjs/mappings/ScrollView.js +2 -0
- package/lib/commonjs/mappings/Slider.js +2 -0
- package/lib/commonjs/mappings/StarRating.js +3 -1
- package/lib/commonjs/mappings/Stepper.js +3 -1
- package/lib/commonjs/mappings/Surface.js +2 -0
- package/lib/commonjs/mappings/Swiper.js +2 -0
- package/lib/commonjs/mappings/SwiperItem.js +2 -0
- package/lib/commonjs/mappings/Switch.js +2 -0
- package/lib/commonjs/mappings/Text.js +5 -5
- package/lib/commonjs/mappings/TextArea.js +3 -2
- package/lib/commonjs/mappings/TextField.js +8 -7
- package/lib/commonjs/mappings/TextInput.js +3 -2
- package/lib/commonjs/mappings/ToggleButton.js +2 -0
- package/lib/commonjs/mappings/Touchable.js +2 -0
- package/lib/commonjs/mappings/Video.js +2 -0
- package/lib/commonjs/mappings/View.js +2 -0
- package/lib/commonjs/mappings/WebView.js +2 -0
- package/lib/commonjs/styles/DarkTheme.js +6 -5
- package/lib/commonjs/styles/DefaultTheme.js +17 -26
- package/lib/commonjs/styles/fonts.js +5 -3
- package/lib/commonjs/styles/overlay.js +14 -5
- package/lib/commonjs/styles/shadow.js +9 -0
- package/lib/commonjs/theming.js +4 -0
- package/lib/commonjs/utilities.js +14 -2
- package/lib/module/Provider.js +1 -0
- package/lib/module/components/Accordion/AccordionGroup.js +4 -0
- package/lib/module/components/Accordion/AccordionItem.js +3 -0
- package/lib/module/components/ActionSheet/ActionSheet.js +2 -0
- package/lib/module/components/ActionSheet/ActionSheetCancel.js +2 -0
- package/lib/module/components/ActionSheet/ActionSheetItem.js +2 -0
- package/lib/module/components/AnimatedCircularProgress.js +6 -0
- package/lib/module/components/AspectRatio.js +6 -0
- package/lib/module/components/AvatarEdit.js +3 -0
- package/lib/module/components/Banner.js +10 -9
- package/lib/module/components/Button.js +10 -2
- package/lib/module/components/Card.js +2 -0
- package/lib/module/components/CardBlock.js +6 -0
- package/lib/module/components/CardContainer.js +7 -0
- package/lib/module/components/CardContainerRating.js +8 -2
- package/lib/module/components/CardContainerShortImage.js +3 -0
- package/lib/module/components/CardInline.js +2 -0
- package/lib/module/components/Carousel.js +9 -3
- package/lib/module/components/Checkbox/Checkbox.js +9 -3
- package/lib/module/components/Checkbox/CheckboxGroup.js +5 -0
- package/lib/module/components/Checkbox/CheckboxGroupRow.js +8 -0
- package/lib/module/components/Checkbox/CheckboxRow.js +11 -3
- package/lib/module/components/Checkbox/context.js +2 -0
- package/lib/module/components/CircleImage.js +3 -0
- package/lib/module/components/CircularProgress.js +9 -3
- package/lib/module/components/Config.js +11 -5
- package/lib/module/components/Container.js +3 -0
- package/lib/module/components/DatePicker/DatePicker.js +33 -16
- package/lib/module/components/DatePicker/DatePickerComponent.js +2 -0
- package/lib/module/components/DatePicker/DatePickerComponent.web.js +2 -0
- package/lib/module/components/DeprecatedButton.js +9 -0
- package/lib/module/components/DeprecatedCardWrapper.js +6 -0
- package/lib/module/components/DeprecatedFAB.js +13 -0
- package/lib/module/components/Divider.js +3 -0
- package/lib/module/components/Elevation.js +3 -0
- package/lib/module/components/FAB.js +3 -0
- package/lib/module/components/FieldSearchBarFull.js +9 -0
- package/lib/module/components/FormRow.js +1 -0
- package/lib/module/components/Header.js +2 -0
- package/lib/module/components/HeaderLarge.js +2 -0
- package/lib/module/components/HeaderMedium.js +2 -0
- package/lib/module/components/HeaderOverline.js +2 -0
- package/lib/module/components/IconButton.js +3 -0
- package/lib/module/components/Image.js +10 -0
- package/lib/module/components/Layout.js +3 -4
- package/lib/module/components/NumberInput.js +16 -8
- package/lib/module/components/Picker/Picker.js +25 -8
- package/lib/module/components/Picker/PickerComponent.android.js +10 -6
- package/lib/module/components/Picker/PickerComponent.ios.js +11 -8
- package/lib/module/components/Picker/PickerComponent.web.js +10 -6
- package/lib/module/components/Portal/Portal.js +6 -4
- package/lib/module/components/Portal/PortalConsumer.js +10 -5
- package/lib/module/components/Portal/PortalHost.js +22 -4
- package/lib/module/components/Portal/PortalManager.js +14 -7
- package/lib/module/components/ProgressBar.js +17 -5
- package/lib/module/components/ProgressCircle.js +2 -0
- package/lib/module/components/ProgressIndicator.js +2 -0
- package/lib/module/components/RadioButton/RadioButton.js +6 -1
- package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +3 -0
- package/lib/module/components/RadioButton/RadioButtonGroup.js +7 -0
- package/lib/module/components/RadioButton/RadioButtonRow.js +9 -1
- package/lib/module/components/RadioButton/context.js +2 -0
- package/lib/module/components/Row.js +2 -0
- package/lib/module/components/RowBodyIcon.js +2 -0
- package/lib/module/components/RowHeadlineImageCaption.js +3 -2
- package/lib/module/components/RowHeadlineImageIcon.js +2 -0
- package/lib/module/components/SVG.js +2 -0
- package/lib/module/components/ScreenContainer.js +6 -0
- package/lib/module/components/Slider.js +10 -0
- package/lib/module/components/StarRating.js +3 -0
- package/lib/module/components/StepIndicator.js +29 -5
- package/lib/module/components/Stepper.js +16 -9
- package/lib/module/components/Surface.js +5 -0
- package/lib/module/components/Swiper/Swiper.js +4 -0
- package/lib/module/components/Swiper/SwiperItem.js +2 -0
- package/lib/module/components/Switch.js +7 -5
- package/lib/module/components/Text.js +10 -3
- package/lib/module/components/TextField.js +50 -12
- package/lib/module/components/ToggleButton.js +5 -0
- package/lib/module/components/Touchable.js +1 -0
- package/lib/module/components/useAuthState.js +4 -0
- package/lib/module/constants.js +1 -2
- package/lib/module/hooks.js +2 -4
- package/lib/module/index.js +2 -5
- package/lib/module/interfaces/Icon.js +1 -2
- package/lib/module/mappings/Button.js +3 -6
- package/lib/module/mappings/Card.js +2 -3
- package/lib/module/mappings/CardBlock.js +3 -6
- package/lib/module/mappings/CardContainer.js +5 -5
- package/lib/module/mappings/CardContainerRating.js +2 -4
- package/lib/module/mappings/DatePicker.js +2 -4
- package/lib/module/mappings/Fetch.js +1 -0
- package/lib/module/mappings/FieldSearchBarFull.js +1 -2
- package/lib/module/mappings/HtmlElements.js +116 -0
- package/lib/module/mappings/Icon.js +1 -2
- package/lib/module/mappings/NumberInput.js +2 -4
- package/lib/module/mappings/Picker.js +2 -4
- package/lib/module/mappings/RowHeadlineImageIcon.js +6 -12
- package/lib/module/mappings/StarRating.js +1 -1
- package/lib/module/mappings/Stepper.js +2 -2
- package/lib/module/mappings/Text.js +3 -5
- package/lib/module/mappings/TextArea.js +1 -2
- package/lib/module/mappings/TextField.js +6 -7
- package/lib/module/mappings/TextInput.js +1 -2
- package/lib/module/styles/DarkTheme.js +2 -4
- package/lib/module/styles/DefaultTheme.js +13 -26
- package/lib/module/styles/fonts.js +1 -2
- package/lib/module/styles/overlay.js +10 -4
- package/lib/module/styles/shadow.js +6 -0
- package/lib/module/utilities.js +5 -2
- package/lib/typescript/src/components/Stepper.d.ts +1 -2
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/mappings/HtmlElements.d.ts +49 -0
- package/package.json +5 -6
- package/src/components/Picker/Picker.js +1 -1
- package/src/components/Picker/Picker.tsx +2 -2
- package/src/components/Stepper.js +5 -3
- package/src/components/Stepper.tsx +5 -5
- package/src/index.js +0 -1
- package/src/index.tsx +0 -1
- package/src/mappings/HtmlElements.js +141 -0
- package/src/mappings/HtmlElements.ts +151 -0
- package/src/mappings/Stepper.js +5 -2
- package/src/mappings/Stepper.ts +5 -1
- package/lib/commonjs/components/TabView/TabView.js +0 -87
- package/lib/commonjs/components/TabView/TabViewItem.js +0 -24
- package/lib/commonjs/components/TabView/index.js +0 -20
- package/lib/commonjs/mappings/TabView.js +0 -77
- package/lib/module/components/TabView/TabView.js +0 -79
- package/lib/module/components/TabView/TabViewItem.js +0 -17
- package/lib/module/components/TabView/index.js +0 -2
- package/lib/module/mappings/TabView.js +0 -70
- package/lib/typescript/src/components/TabView/TabView.d.ts +0 -19
- package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -10
- package/lib/typescript/src/components/TabView/index.d.ts +0 -2
- package/lib/typescript/src/mappings/TabView.d.ts +0 -111
- package/src/components/TabView/TabView.js +0 -34
- package/src/components/TabView/TabView.tsx +0 -97
- package/src/components/TabView/TabViewItem.js +0 -5
- package/src/components/TabView/TabViewItem.tsx +0 -21
- package/src/components/TabView/index.js +0 -2
- package/src/components/TabView/index.tsx +0 -2
- package/src/mappings/TabView.js +0 -73
- package/src/mappings/TabView.ts +0 -80
|
@@ -5,19 +5,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.checkboxGroupContext = exports.Direction = void 0;
|
|
7
7
|
exports.useCheckboxGroupContext = useCheckboxGroupContext;
|
|
8
|
+
|
|
8
9
|
var _react = require("react");
|
|
10
|
+
|
|
9
11
|
let Direction;
|
|
10
12
|
exports.Direction = Direction;
|
|
13
|
+
|
|
11
14
|
(function (Direction) {
|
|
12
15
|
Direction["Horizontal"] = "horizontal";
|
|
13
16
|
Direction["Vertical"] = "vertical";
|
|
14
17
|
})(Direction || (exports.Direction = Direction = {}));
|
|
18
|
+
|
|
15
19
|
const checkboxGroupContext = /*#__PURE__*/(0, _react.createContext)({
|
|
16
20
|
onValueChange: () => {},
|
|
17
21
|
values: [],
|
|
18
22
|
direction: undefined
|
|
19
23
|
});
|
|
20
24
|
exports.checkboxGroupContext = checkboxGroupContext;
|
|
25
|
+
|
|
21
26
|
function useCheckboxGroupContext() {
|
|
22
27
|
return (0, _react.useContext)(checkboxGroupContext);
|
|
23
28
|
}
|
|
@@ -21,7 +21,11 @@ Object.defineProperty(exports, "CheckboxRow", {
|
|
|
21
21
|
return _CheckboxRow.default;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
|
|
24
25
|
var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
26
|
+
|
|
25
27
|
var _CheckboxGroup = _interopRequireDefault(require("./CheckboxGroup"));
|
|
28
|
+
|
|
26
29
|
var _CheckboxRow = _interopRequireDefault(require("./CheckboxRow"));
|
|
30
|
+
|
|
27
31
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -4,13 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
8
10
|
var _reactNative = require("react-native");
|
|
11
|
+
|
|
9
12
|
var _Config = _interopRequireDefault(require("./Config"));
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
11
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
+
|
|
12
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
|
|
13
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
+
|
|
14
22
|
const CircleImage = _ref => {
|
|
15
23
|
let {
|
|
16
24
|
source = _Config.default.placeholderImageURL,
|
|
@@ -31,5 +39,6 @@ const CircleImage = _ref => {
|
|
|
31
39
|
resizeMode: "cover"
|
|
32
40
|
}, props));
|
|
33
41
|
};
|
|
42
|
+
|
|
34
43
|
var _default = CircleImage;
|
|
35
44
|
exports.default = _default;
|
|
@@ -4,16 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _reactNative = require("react-native");
|
|
11
|
+
|
|
9
12
|
var _reactNativeSvg = require("react-native-svg");
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
15
|
+
|
|
16
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
+
|
|
14
18
|
class CircularProgress extends _react.default.Component {
|
|
15
19
|
constructor() {
|
|
16
20
|
super(...arguments);
|
|
21
|
+
|
|
17
22
|
_defineProperty(this, "polarToCartesian", (centerX, centerY, radius, angleInDegrees) => {
|
|
18
23
|
var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
|
|
19
24
|
return {
|
|
@@ -21,6 +26,7 @@ class CircularProgress extends _react.default.Component {
|
|
|
21
26
|
y: centerY + radius * Math.sin(angleInRadians)
|
|
22
27
|
};
|
|
23
28
|
});
|
|
29
|
+
|
|
24
30
|
_defineProperty(this, "circlePath", (x, y, radius, startAngle, endAngle) => {
|
|
25
31
|
var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999);
|
|
26
32
|
var end = this.polarToCartesian(x, y, radius, startAngle);
|
|
@@ -28,8 +34,10 @@ class CircularProgress extends _react.default.Component {
|
|
|
28
34
|
var d = ["M", start.x, start.y, "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y];
|
|
29
35
|
return d.join(" ");
|
|
30
36
|
});
|
|
37
|
+
|
|
31
38
|
_defineProperty(this, "clampFill", fill => Math.min(100, Math.max(0, fill)));
|
|
32
39
|
}
|
|
40
|
+
|
|
33
41
|
render() {
|
|
34
42
|
const {
|
|
35
43
|
size,
|
|
@@ -107,6 +115,8 @@ class CircularProgress extends _react.default.Component {
|
|
|
107
115
|
style: localChildrenContainerStyle
|
|
108
116
|
}, children(fill)));
|
|
109
117
|
}
|
|
118
|
+
|
|
110
119
|
}
|
|
120
|
+
|
|
111
121
|
var _default = CircularProgress;
|
|
112
122
|
exports.default = _default;
|
|
@@ -4,38 +4,46 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _reactNative = require("react-native");
|
|
9
|
+
|
|
8
10
|
const getWindowDimensions = () => {
|
|
9
11
|
const {
|
|
10
12
|
width,
|
|
11
13
|
height
|
|
12
14
|
} = _reactNative.Dimensions.get("window");
|
|
15
|
+
|
|
13
16
|
return {
|
|
14
17
|
windowWidth: width,
|
|
15
18
|
windowHeight: height
|
|
16
19
|
};
|
|
17
20
|
};
|
|
21
|
+
|
|
18
22
|
const {
|
|
19
23
|
windowWidth,
|
|
20
24
|
windowHeight
|
|
21
25
|
} = getWindowDimensions();
|
|
26
|
+
|
|
22
27
|
const getFilters = options => {
|
|
23
28
|
const {
|
|
24
29
|
width,
|
|
25
30
|
height
|
|
26
31
|
} = options;
|
|
27
32
|
const filters = ["c_scale", "q_auto", "dpr_auto"];
|
|
28
|
-
if (width) filters.push(
|
|
29
|
-
if (height) filters.push(
|
|
33
|
+
if (width) filters.push("w_".concat(width));
|
|
34
|
+
if (height) filters.push("h_".concat(height));
|
|
30
35
|
return filters.join(",");
|
|
31
36
|
};
|
|
37
|
+
|
|
32
38
|
const buildImageUrl = (options, name) => {
|
|
33
39
|
const filters = getFilters(options);
|
|
34
|
-
return ["https://res.cloudinary.com/altos/image/upload", filters,
|
|
40
|
+
return ["https://res.cloudinary.com/altos/image/upload", filters, "".concat(name, ".png")].join("/");
|
|
35
41
|
};
|
|
42
|
+
|
|
36
43
|
const getExtension = () => {
|
|
37
44
|
return _reactNative.Platform.OS === "web" ? ".svg" : ".png";
|
|
38
45
|
};
|
|
46
|
+
|
|
39
47
|
var _default = {
|
|
40
48
|
windowWidth,
|
|
41
49
|
windowHeight,
|
|
@@ -74,7 +82,7 @@ var _default = {
|
|
|
74
82
|
fieldSearchBarFullIconSize: 24,
|
|
75
83
|
stepperButtonSize: 40,
|
|
76
84
|
radioButtonSize: 24,
|
|
77
|
-
topSafeAreaViewHeight: 0
|
|
78
|
-
|
|
85
|
+
topSafeAreaViewHeight: 0 // topSafeAreaViewHeight: Platform.OS === "android" ? Constants.statusBarHeight : 0
|
|
86
|
+
|
|
79
87
|
};
|
|
80
88
|
exports.default = _default;
|
|
@@ -4,13 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
8
10
|
var _reactNative = require("react-native");
|
|
11
|
+
|
|
9
12
|
var _theming = require("../theming");
|
|
13
|
+
|
|
10
14
|
var _Elevation = _interopRequireDefault(require("./Elevation"));
|
|
15
|
+
|
|
11
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
12
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
13
20
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
22
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
+
|
|
14
24
|
const Container = _ref => {
|
|
15
25
|
let {
|
|
16
26
|
useThemeGutterPadding,
|
|
@@ -72,10 +82,9 @@ const Container = _ref => {
|
|
|
72
82
|
};
|
|
73
83
|
const Wrap = elevation ? _Elevation.default : _reactNative.View;
|
|
74
84
|
if (elevation) containerStyle.elevation = elevation;
|
|
75
|
-
return /*#__PURE__*/React.createElement(Wrap, {
|
|
76
|
-
style: [containerStyle, style]
|
|
77
|
-
|
|
78
|
-
}, backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
|
|
85
|
+
return /*#__PURE__*/React.createElement(Wrap, _extends({
|
|
86
|
+
style: [containerStyle, style]
|
|
87
|
+
}, rest), backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
|
|
79
88
|
source: typeof backgroundImage === "string" ? {
|
|
80
89
|
uri: backgroundImage
|
|
81
90
|
} : backgroundImage,
|
|
@@ -89,16 +98,7 @@ const Container = _ref => {
|
|
|
89
98
|
style: innerStyle
|
|
90
99
|
}, children));
|
|
91
100
|
};
|
|
101
|
+
|
|
92
102
|
var _default = (0, _theming.withTheme)(Container);
|
|
93
|
-
|
|
94
|
-
style: {
|
|
95
|
-
flex: 1
|
|
96
|
-
}
|
|
97
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
98
|
-
style: innerStyle
|
|
99
|
-
}, children)) : /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
100
|
-
style: innerStyle
|
|
101
|
-
}, children));
|
|
102
|
-
};
|
|
103
|
-
var _default = (0, _theming.withTheme)(Container);
|
|
103
|
+
|
|
104
104
|
exports.default = _default;
|
|
@@ -4,23 +4,38 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
8
10
|
var _reactNative = require("react-native");
|
|
11
|
+
|
|
9
12
|
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
13
|
+
|
|
10
14
|
var _dateformat = _interopRequireDefault(require("dateformat"));
|
|
15
|
+
|
|
11
16
|
var _theming = require("../../theming");
|
|
17
|
+
|
|
12
18
|
var _Portal = _interopRequireDefault(require("../Portal/Portal"));
|
|
19
|
+
|
|
13
20
|
var _Touchable = _interopRequireDefault(require("../Touchable"));
|
|
21
|
+
|
|
14
22
|
var _DatePickerComponent = _interopRequireDefault(require("./DatePickerComponent"));
|
|
23
|
+
|
|
15
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
16
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
17
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
18
30
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
|
|
19
32
|
const AnimatedText = _reactNative.Animated.createAnimatedComponent(_reactNative.Text);
|
|
33
|
+
|
|
20
34
|
const FOCUS_ANIMATION_DURATION = 150;
|
|
21
35
|
const BLUR_ANIMATION_DURATION = 180;
|
|
22
36
|
const ICON_SIZE = 24;
|
|
23
37
|
const MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
38
|
+
|
|
24
39
|
const DatePicker = _ref => {
|
|
25
40
|
let {
|
|
26
41
|
Icon,
|
|
@@ -59,50 +74,55 @@ const DatePicker = _ref => {
|
|
|
59
74
|
measured: false,
|
|
60
75
|
width: 0
|
|
61
76
|
});
|
|
77
|
+
|
|
62
78
|
const getValidDate = () => {
|
|
63
79
|
if (!value) {
|
|
64
80
|
return new Date();
|
|
65
81
|
}
|
|
82
|
+
|
|
66
83
|
return typeof (value === null || value === void 0 ? void 0 : value.getMonth) === "function" ? value : new Date();
|
|
67
84
|
};
|
|
85
|
+
|
|
68
86
|
const formatDate = () => {
|
|
69
87
|
if (!value) return "";
|
|
70
88
|
let newDate = getValidDate();
|
|
71
89
|
if (format) return (0, _dateformat.default)(newDate, format);
|
|
90
|
+
|
|
72
91
|
if (mode === "time") {
|
|
73
|
-
return
|
|
92
|
+
return "".concat(newDate.toLocaleTimeString());
|
|
74
93
|
}
|
|
94
|
+
|
|
75
95
|
if (mode === "datetime") {
|
|
76
|
-
return
|
|
96
|
+
return "".concat(newDate.toLocaleString());
|
|
77
97
|
}
|
|
78
|
-
|
|
98
|
+
|
|
99
|
+
return "".concat(MONTHS[newDate.getMonth()], " ").concat(newDate.getDate(), ", ").concat(newDate.getFullYear());
|
|
79
100
|
};
|
|
101
|
+
|
|
80
102
|
const toggleVisibility = async () => {
|
|
81
103
|
setPickerVisible(!pickerVisible);
|
|
82
104
|
focused ? _handleBlur() : _handleFocus();
|
|
83
105
|
};
|
|
84
|
-
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
85
106
|
|
|
86
|
-
// const _restoreLabel = () =>
|
|
107
|
+
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)(); // const _restoreLabel = () =>
|
|
87
108
|
// Animated.timing(labeled, {
|
|
88
109
|
// toValue: 1,
|
|
89
110
|
// duration: FOCUS_ANIMATION_DURATION,
|
|
90
111
|
// useNativeDriver: true,
|
|
91
112
|
// }).start();
|
|
92
|
-
|
|
93
113
|
// const _minmizeLabel = () =>
|
|
94
114
|
// Animated.timing(labeled, {
|
|
95
115
|
// toValue: 0,
|
|
96
116
|
// duration: BLUR_ANIMATION_DURATION,
|
|
97
117
|
// useNativeDriver: true,
|
|
98
118
|
// }).start();
|
|
99
|
-
|
|
100
119
|
// const _showPlaceholder = () =>
|
|
101
120
|
// setTimeout(() => setPlaceholder1(placeholder || ""), 50);
|
|
102
121
|
|
|
103
122
|
const _hidePlaceholder = () => {
|
|
104
123
|
setPlaceholder1("");
|
|
105
124
|
};
|
|
125
|
+
|
|
106
126
|
React.useEffect(() => {
|
|
107
127
|
setValue(date);
|
|
108
128
|
}, [date]);
|
|
@@ -125,27 +145,34 @@ const DatePicker = _ref => {
|
|
|
125
145
|
}, [value, focused, placeholder1, labeled]);
|
|
126
146
|
React.useEffect(() => {
|
|
127
147
|
const _showPlaceholder = () => setTimeout(() => setPlaceholder1(placeholder || ""), 50);
|
|
148
|
+
|
|
128
149
|
if (focused || !label) {
|
|
129
150
|
_showPlaceholder();
|
|
130
151
|
} else {
|
|
131
152
|
_hidePlaceholder();
|
|
132
153
|
}
|
|
154
|
+
|
|
133
155
|
return () => {
|
|
134
156
|
clearTimeout(_showPlaceholder());
|
|
135
157
|
};
|
|
136
158
|
}, [focused, label, placeholder]);
|
|
159
|
+
|
|
137
160
|
const _handleFocus = () => {
|
|
138
161
|
if (disabled) {
|
|
139
162
|
return;
|
|
140
163
|
}
|
|
164
|
+
|
|
141
165
|
setFocused(true);
|
|
142
166
|
};
|
|
167
|
+
|
|
143
168
|
const _handleBlur = () => {
|
|
144
169
|
if (disabled) {
|
|
145
170
|
return;
|
|
146
171
|
}
|
|
172
|
+
|
|
147
173
|
setFocused(false);
|
|
148
174
|
};
|
|
175
|
+
|
|
149
176
|
const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
|
|
150
177
|
const OUTLINE_MINIMIZED_LABEL_Y_OFFSET = -(16 * 0.5 + 4);
|
|
151
178
|
const MAXIMIZED_LABEL_FONT_SIZE = typography.subtitle1.fontSize;
|
|
@@ -153,6 +180,7 @@ const DatePicker = _ref => {
|
|
|
153
180
|
const hasActiveOutline = focused;
|
|
154
181
|
let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
|
|
155
182
|
inputTextColor = colors.strong;
|
|
183
|
+
|
|
156
184
|
if (disabled) {
|
|
157
185
|
activeColor = colors.light;
|
|
158
186
|
placeholderColor = colors.light;
|
|
@@ -165,6 +193,7 @@ const DatePicker = _ref => {
|
|
|
165
193
|
underlineColor = colors.light;
|
|
166
194
|
backgroundColor = colors.background;
|
|
167
195
|
}
|
|
196
|
+
|
|
168
197
|
const {
|
|
169
198
|
lineHeight,
|
|
170
199
|
...subtitle1
|
|
@@ -177,6 +206,7 @@ const DatePicker = _ref => {
|
|
|
177
206
|
...subtitle1,
|
|
178
207
|
height: lineHeight
|
|
179
208
|
};
|
|
209
|
+
|
|
180
210
|
if (type === "underline") {
|
|
181
211
|
containerStyle = {
|
|
182
212
|
borderTopLeftRadius: roundness,
|
|
@@ -196,15 +226,19 @@ const DatePicker = _ref => {
|
|
|
196
226
|
};
|
|
197
227
|
inputStyle.paddingHorizontal = 12;
|
|
198
228
|
}
|
|
229
|
+
|
|
199
230
|
if (leftIconName && leftIconMode === "outset") {
|
|
200
231
|
containerStyle.marginLeft = ICON_SIZE + 8;
|
|
201
232
|
}
|
|
233
|
+
|
|
202
234
|
let leftIconColor;
|
|
235
|
+
|
|
203
236
|
if (focused) {
|
|
204
237
|
leftIconColor = colors.primary;
|
|
205
238
|
} else {
|
|
206
239
|
leftIconColor = colors.light;
|
|
207
240
|
}
|
|
241
|
+
|
|
208
242
|
const leftIconProps = {
|
|
209
243
|
size: 24,
|
|
210
244
|
color: leftIconColor,
|
|
@@ -214,8 +248,7 @@ const DatePicker = _ref => {
|
|
|
214
248
|
position: "absolute",
|
|
215
249
|
marginTop: type === "solid" ? leftIconMode === "inset" ? MINIMIZED_LABEL_FONT_SIZE + 4 : 16 : leftIconMode === "outset" ? 16 : 0
|
|
216
250
|
};
|
|
217
|
-
const labelStyle = {
|
|
218
|
-
...typography.subtitle1,
|
|
251
|
+
const labelStyle = { ...typography.subtitle1,
|
|
219
252
|
top: type === "solid" ? 16 : 0,
|
|
220
253
|
left: leftIconName && leftIconMode === "inset" ? ICON_SIZE + (type === "solid" ? 16 : 12) : 0,
|
|
221
254
|
transform: [{
|
|
@@ -240,9 +273,7 @@ const DatePicker = _ref => {
|
|
|
240
273
|
};
|
|
241
274
|
const inputStyles = [styles.input, inputStyle, type === "solid" ? {
|
|
242
275
|
marginHorizontal: 12
|
|
243
|
-
} : {}];
|
|
244
|
-
|
|
245
|
-
// const render = (props) => <NativeTextInput {...props} />;
|
|
276
|
+
} : {}]; // const render = (props) => <NativeTextInput {...props} />;
|
|
246
277
|
|
|
247
278
|
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
248
279
|
style: [styles.container, style]
|
|
@@ -277,8 +308,7 @@ const DatePicker = _ref => {
|
|
|
277
308
|
React.createElement(_reactNative.View, {
|
|
278
309
|
pointerEvents: "none",
|
|
279
310
|
style: [_reactNative.StyleSheet.absoluteFill, {
|
|
280
|
-
opacity:
|
|
281
|
-
// Hide the label in minimized state until we measure its width
|
|
311
|
+
opacity: // Hide the label in minimized state until we measure its width
|
|
282
312
|
date || focused ? labelLayout.measured ? 1 : 0 : 1
|
|
283
313
|
}]
|
|
284
314
|
}, /*#__PURE__*/React.createElement(AnimatedText, {
|
|
@@ -305,8 +335,7 @@ const DatePicker = _ref => {
|
|
|
305
335
|
}],
|
|
306
336
|
numberOfLines: 1
|
|
307
337
|
}, label)) : null, leftIconName && leftIconMode === "inset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
|
|
308
|
-
style: {
|
|
309
|
-
...leftIconStyle,
|
|
338
|
+
style: { ...leftIconStyle,
|
|
310
339
|
marginLeft: type === "solid" ? 16 : 0
|
|
311
340
|
}
|
|
312
341
|
})) : null, /*#__PURE__*/React.createElement(_reactNative.TextInput, _extends({
|
|
@@ -351,6 +380,7 @@ const DatePicker = _ref => {
|
|
|
351
380
|
}
|
|
352
381
|
})))));
|
|
353
382
|
};
|
|
383
|
+
|
|
354
384
|
const styles = _reactNative.StyleSheet.create({
|
|
355
385
|
container: {
|
|
356
386
|
alignSelf: "stretch"
|
|
@@ -390,5 +420,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
390
420
|
alignSelf: "flex-end"
|
|
391
421
|
}
|
|
392
422
|
});
|
|
423
|
+
|
|
393
424
|
var _default = (0, _theming.withTheme)(DatePicker);
|
|
425
|
+
|
|
394
426
|
exports.default = _default;
|
|
@@ -4,11 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _reactNative = require("react-native");
|
|
11
|
+
|
|
9
12
|
var _datetimepicker = _interopRequireDefault(require("@react-native-community/datetimepicker"));
|
|
13
|
+
|
|
10
14
|
var _reactNativeModalDatetimePicker = _interopRequireDefault(require("react-native-modal-datetime-picker"));
|
|
15
|
+
|
|
11
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
12
18
|
const DatePickerComponent = _ref => {
|
|
13
19
|
let {
|
|
14
20
|
value,
|
|
@@ -35,5 +41,6 @@ const DatePickerComponent = _ref => {
|
|
|
35
41
|
display: "default"
|
|
36
42
|
});
|
|
37
43
|
};
|
|
44
|
+
|
|
38
45
|
var _default = DatePickerComponent;
|
|
39
46
|
exports.default = _default;
|
|
@@ -4,13 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _dateFns = _interopRequireDefault(require("@date-io/date-fns"));
|
|
11
|
+
|
|
9
12
|
var _pickers = require("@material-ui/pickers");
|
|
13
|
+
|
|
10
14
|
var _styles = require("@material-ui/core/styles");
|
|
15
|
+
|
|
11
16
|
var _theming = require("../../theming");
|
|
17
|
+
|
|
12
18
|
var _DefaultTheme = _interopRequireDefault(require("../../styles/DefaultTheme"));
|
|
19
|
+
|
|
13
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
14
22
|
const DatePickerComponent = _ref => {
|
|
15
23
|
let {
|
|
16
24
|
value,
|
|
@@ -47,5 +55,7 @@ const DatePickerComponent = _ref => {
|
|
|
47
55
|
TextFieldComponent: () => null
|
|
48
56
|
})));
|
|
49
57
|
};
|
|
58
|
+
|
|
50
59
|
var _default = (0, _theming.withTheme)(DatePickerComponent);
|
|
60
|
+
|
|
51
61
|
exports.default = _default;
|
|
@@ -4,17 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
8
10
|
var _reactNative = require("react-native");
|
|
11
|
+
|
|
9
12
|
var _color = _interopRequireDefault(require("color"));
|
|
13
|
+
|
|
10
14
|
var _Config = _interopRequireDefault(require("./Config"));
|
|
15
|
+
|
|
11
16
|
var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
17
|
+
|
|
12
18
|
var _Elevation = _interopRequireDefault(require("./Elevation"));
|
|
19
|
+
|
|
13
20
|
var _theming = require("../theming");
|
|
21
|
+
|
|
14
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
+
|
|
15
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
+
|
|
16
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
+
|
|
17
28
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
|
+
|
|
18
30
|
const Button = _ref => {
|
|
19
31
|
let {
|
|
20
32
|
Icon,
|
|
@@ -38,8 +50,10 @@ const Button = _ref => {
|
|
|
38
50
|
} = _ref;
|
|
39
51
|
let backgroundColor, borderColor, textColor, borderWidth;
|
|
40
52
|
const buttonColor = colorOverride || colors.primary;
|
|
53
|
+
|
|
41
54
|
if (type === "solid") {
|
|
42
55
|
backgroundColor = buttonColor;
|
|
56
|
+
|
|
43
57
|
if (disabled) {
|
|
44
58
|
textColor = (0, _color.default)(colors.surface).alpha(disabledOpacity).rgb().string();
|
|
45
59
|
} else {
|
|
@@ -47,23 +61,27 @@ const Button = _ref => {
|
|
|
47
61
|
}
|
|
48
62
|
} else {
|
|
49
63
|
backgroundColor = "transparent";
|
|
64
|
+
|
|
50
65
|
if (disabled) {
|
|
51
66
|
textColor = (0, _color.default)(buttonColor).alpha(disabledOpacity).rgb().string();
|
|
52
67
|
} else {
|
|
53
68
|
textColor = labelColor || buttonColor;
|
|
54
69
|
}
|
|
55
70
|
}
|
|
71
|
+
|
|
56
72
|
if (type === "outline") {
|
|
57
73
|
if (disabled) {
|
|
58
74
|
borderColor = (0, _color.default)(buttonColor).alpha(disabledOpacity).rgb().string();
|
|
59
75
|
} else {
|
|
60
76
|
borderColor = buttonColor;
|
|
61
77
|
}
|
|
78
|
+
|
|
62
79
|
borderWidth = _reactNative.StyleSheet.hairlineWidth;
|
|
63
80
|
} else {
|
|
64
81
|
borderColor = "transparent";
|
|
65
82
|
borderWidth = 0;
|
|
66
83
|
}
|
|
84
|
+
|
|
67
85
|
const buttonStyle = {
|
|
68
86
|
backgroundColor,
|
|
69
87
|
borderColor,
|
|
@@ -81,6 +99,7 @@ const Button = _ref => {
|
|
|
81
99
|
marginRight: -8,
|
|
82
100
|
width: _Config.default.buttonIconSize
|
|
83
101
|
}];
|
|
102
|
+
|
|
84
103
|
const {
|
|
85
104
|
margin,
|
|
86
105
|
marginEnd,
|
|
@@ -92,6 +111,7 @@ const Button = _ref => {
|
|
|
92
111
|
marginVertical,
|
|
93
112
|
...innerStyles
|
|
94
113
|
} = _reactNative.StyleSheet.flatten(style || {});
|
|
114
|
+
|
|
95
115
|
const margins = {
|
|
96
116
|
margin,
|
|
97
117
|
marginEnd,
|
|
@@ -133,6 +153,7 @@ const Button = _ref => {
|
|
|
133
153
|
style: [textStyle, typography.button]
|
|
134
154
|
}, children))));
|
|
135
155
|
};
|
|
156
|
+
|
|
136
157
|
const styles = _reactNative.StyleSheet.create({
|
|
137
158
|
button: {
|
|
138
159
|
minWidth: 64,
|
|
@@ -147,5 +168,7 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
147
168
|
width: _Config.default.buttonIconSize
|
|
148
169
|
}
|
|
149
170
|
});
|
|
171
|
+
|
|
150
172
|
var _default = (0, _theming.withTheme)(Button);
|
|
173
|
+
|
|
151
174
|
exports.default = _default;
|
|
@@ -4,21 +4,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
|
|
7
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
8
10
|
var _theming = require("../theming");
|
|
11
|
+
|
|
9
12
|
var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
13
|
+
|
|
10
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
11
16
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
+
|
|
12
18
|
const getWidth = numColumns => {
|
|
13
19
|
switch (numColumns) {
|
|
14
20
|
case 1:
|
|
15
21
|
return "33%";
|
|
22
|
+
|
|
16
23
|
case 2:
|
|
17
24
|
return "50%";
|
|
25
|
+
|
|
18
26
|
default:
|
|
19
27
|
return "100%";
|
|
20
28
|
}
|
|
21
29
|
};
|
|
30
|
+
|
|
22
31
|
const Card = _ref => {
|
|
23
32
|
let {
|
|
24
33
|
numColumns = 3,
|
|
@@ -36,5 +45,7 @@ const Card = _ref => {
|
|
|
36
45
|
}]
|
|
37
46
|
}, rest), children);
|
|
38
47
|
};
|
|
48
|
+
|
|
39
49
|
var _default = (0, _theming.withTheme)(Card);
|
|
50
|
+
|
|
40
51
|
exports.default = _default;
|