@trionesdev/antd-mobile-base-react 0.0.2-beta.1 → 0.0.2-beta.11
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/LICENSE +21 -21
- package/README.md +23 -23
- package/dist/Alert/alert.d.ts +0 -1
- package/dist/Alert/index.d.ts +0 -1
- package/dist/Alert/style.scss +69 -69
- package/dist/Avatar/avatar.d.ts +4 -2
- package/dist/Avatar/avatar.js +19 -6
- package/dist/Avatar/index.d.ts +0 -1
- package/dist/Avatar/style.scss +17 -16
- package/dist/Badge/badge.d.ts +0 -1
- package/dist/Badge/index.d.ts +0 -1
- package/dist/Badge/style.scss +100 -100
- package/dist/Card/card.d.ts +0 -1
- package/dist/Card/index.d.ts +0 -1
- package/dist/Card/native-props.d.ts +0 -1
- package/dist/Card/style.scss +35 -35
- package/dist/CascaderView/cascader-column-item.d.ts +0 -1
- package/dist/CascaderView/cascader-column.d.ts +0 -1
- package/dist/CascaderView/cascader-view.d.ts +0 -1
- package/dist/CascaderView/index.d.ts +0 -1
- package/dist/CascaderView/style.scss +22 -22
- package/dist/CascaderView/types.d.ts +0 -1
- package/dist/Cell/CellGroup.d.ts +0 -1
- package/dist/Cell/CellGroup.js +39 -17
- package/dist/Cell/cell.d.ts +0 -1
- package/dist/Cell/cell.js +70 -16
- package/dist/Cell/context.d.ts +17 -0
- package/dist/Cell/context.js +2 -0
- package/dist/Cell/index.d.ts +0 -1
- package/dist/Cell/styles.scss +51 -52
- package/dist/Cell/types.d.ts +28 -8
- package/dist/Checkbox/checkbox-button.d.ts +6 -3
- package/dist/Checkbox/checkbox-button.js +5 -17
- package/dist/Checkbox/checkbox-group.d.ts +0 -1
- package/dist/Checkbox/checkbox-group.js +19 -3
- package/dist/Checkbox/checkbox-round.d.ts +8 -0
- package/dist/Checkbox/checkbox-round.js +35 -0
- package/dist/Checkbox/checkbox.d.ts +0 -1
- package/dist/Checkbox/checkbox.js +49 -34
- package/dist/Checkbox/group-context.d.ts +0 -1
- package/dist/Checkbox/index.d.ts +0 -3
- package/dist/Checkbox/index.js +0 -2
- package/dist/Checkbox/index.scss +165 -151
- package/dist/Checkbox/types.d.ts +11 -2
- package/dist/ConfigProvider/config-provider.d.ts +0 -1
- package/dist/ConfigProvider/index.d.ts +0 -1
- package/dist/DemoBlock/index.d.ts +0 -1
- package/dist/DemoBlock/index.scss +20 -20
- package/dist/DemoDescription/index.d.ts +0 -1
- package/dist/DemoDescription/index.scss +3 -3
- package/dist/Descriptions/DescriptionItem.d.ts +0 -1
- package/dist/Descriptions/Descriptions.d.ts +0 -1
- package/dist/Descriptions/index.d.ts +0 -1
- package/dist/Descriptions/style.scss +65 -65
- package/dist/Descriptions/types.d.ts +0 -1
- package/dist/Divider/divider.d.ts +0 -1
- package/dist/Divider/index.d.ts +0 -1
- package/dist/Divider/style.scss +62 -62
- package/dist/Ellipsis/ellipsis.d.ts +0 -1
- package/dist/Ellipsis/index.d.ts +0 -1
- package/dist/Ellipsis/style.scss +13 -13
- package/dist/Ellipsis/useMeasure.d.ts +0 -1
- package/dist/Empty/empty-icon.d.ts +0 -1
- package/dist/Empty/empty.d.ts +0 -1
- package/dist/Empty/index.d.ts +0 -1
- package/dist/Empty/style.scss +29 -29
- package/dist/ErrorBlock/create-error-block.d.ts +0 -1
- package/dist/ErrorBlock/demo/base.d.ts +0 -1
- package/dist/ErrorBlock/demo/base.js +2 -2
- package/dist/ErrorBlock/error-block.d.ts +0 -1
- package/dist/ErrorBlock/images/busy.d.ts +0 -1
- package/dist/ErrorBlock/images/default.d.ts +0 -1
- package/dist/ErrorBlock/images/disconnected.d.ts +0 -1
- package/dist/ErrorBlock/images/empty.d.ts +0 -1
- package/dist/ErrorBlock/images/index.d.ts +0 -1
- package/dist/ErrorBlock/index.d.ts +0 -1
- package/dist/ErrorBlock/style.scss +62 -62
- package/dist/Footer/footer.d.ts +0 -1
- package/dist/Footer/index.d.ts +0 -1
- package/dist/Footer/style.scss +55 -55
- package/dist/Form/context.d.ts +2 -2
- package/dist/Form/form.d.ts +2 -8
- package/dist/Form/form.js +4 -3
- package/dist/Form/hooks/useForm.d.ts +0 -1
- package/dist/Form/hooks/useFormContext.d.ts +0 -1
- package/dist/Form/index.d.ts +5 -4
- package/dist/Form/index.js +4 -2
- package/dist/Form/interface.d.ts +0 -1
- package/dist/Form/types.d.ts +7 -0
- package/dist/Grid/grid.d.ts +0 -1
- package/dist/Grid/index.d.ts +0 -1
- package/dist/Grid/style.scss +17 -17
- package/dist/Icon/check-icon.d.ts +0 -1
- package/dist/Icon/demo/base.d.ts +0 -1
- package/dist/Icon/demo/base.js +2 -2
- package/dist/IndexedStack/IndexedStack.d.ts +9 -0
- package/dist/IndexedStack/IndexedStack.js +27 -0
- package/dist/IndexedStack/index.d.ts +3 -0
- package/dist/IndexedStack/index.js +2 -0
- package/dist/InputNumber/index.d.ts +0 -1
- package/dist/InputNumber/input-number.d.ts +3 -1
- package/dist/InputNumber/input-number.js +7 -3
- package/dist/InputNumber/style.scss +63 -43
- package/dist/NavBar/index.d.ts +0 -1
- package/dist/NavBar/nav-bar.d.ts +1 -1
- package/dist/NavBar/nav-bar.js +2 -1
- package/dist/NavBar/style.scss +64 -61
- package/dist/NoticeBar/index.d.ts +0 -1
- package/dist/NoticeBar/notice-bar.d.ts +0 -1
- package/dist/NoticeBar/style.scss +130 -130
- package/dist/PageIndicator/index.d.ts +0 -1
- package/dist/PageIndicator/page-indicator.d.ts +0 -1
- package/dist/PageIndicator/style.scss +59 -59
- package/dist/Progress/Progress.d.ts +39 -0
- package/dist/Progress/Progress.js +56 -0
- package/dist/Progress/ProgressCircle.d.ts +15 -0
- package/dist/Progress/ProgressCircle.js +114 -0
- package/dist/Progress/ProgressLine.d.ts +15 -0
- package/dist/Progress/ProgressLine.js +87 -0
- package/dist/Progress/index.d.ts +3 -0
- package/dist/Progress/index.js +2 -0
- package/dist/Progress/style.scss +33 -0
- package/dist/Progress/types.d.ts +6 -0
- package/dist/Progress/types.js +2 -0
- package/dist/Radio/GroupContext.d.ts +0 -1
- package/dist/Radio/RadioButton.d.ts +0 -1
- package/dist/Radio/RadioGroup.d.ts +0 -1
- package/dist/Radio/RadioGroup.js +3 -3
- package/dist/Radio/index.d.ts +0 -1
- package/dist/Radio/radio.d.ts +0 -1
- package/dist/Radio/style.scss +141 -138
- package/dist/Radio/types.d.ts +6 -5
- package/dist/Rate/index.d.ts +0 -1
- package/dist/Rate/rate.d.ts +0 -1
- package/dist/Rate/style.scss +37 -37
- package/dist/Result/demo/base.d.ts +0 -1
- package/dist/Result/demo/base.js +2 -2
- package/dist/Result/index.d.ts +0 -1
- package/dist/Result/result.d.ts +0 -1
- package/dist/Result/style.scss +73 -73
- package/dist/Result/use-result-icon.d.ts +0 -1
- package/dist/SafeArea/index.d.ts +0 -1
- package/dist/SafeArea/safe-area.d.ts +0 -1
- package/dist/SafeArea/style.scss +20 -18
- package/dist/Scaffold/index.d.ts +0 -1
- package/dist/Scaffold/scaffold.d.ts +0 -1
- package/dist/Scaffold/style.scss +17 -16
- package/dist/Skeleton/Skeleton.d.ts +27 -0
- package/dist/Skeleton/Skeleton.js +72 -0
- package/dist/Skeleton/index.d.ts +1 -0
- package/dist/Skeleton/index.js +1 -0
- package/dist/Skeleton/style.scss +48 -0
- package/dist/Space/index.d.ts +0 -1
- package/dist/Space/space.d.ts +1 -1
- package/dist/Space/space.js +17 -6
- package/dist/Space/style.scss +80 -77
- package/dist/SpinLoading/demo/base.d.ts +0 -1
- package/dist/SpinLoading/index.d.ts +0 -1
- package/dist/SpinLoading/spin-loading.d.ts +0 -1
- package/dist/SpinLoading/spin-loading.scss +40 -40
- package/dist/Steps/HorizontalSteps.d.ts +0 -1
- package/dist/Steps/HorizontalSteps.js +5 -1
- package/dist/Steps/Point.d.ts +0 -1
- package/dist/Steps/Steps.d.ts +0 -1
- package/dist/Steps/VerticalSteps.d.ts +0 -1
- package/dist/Steps/context.d.ts +0 -1
- package/dist/Steps/index.d.ts +0 -1
- package/dist/Steps/style.scss +153 -146
- package/dist/Steps/types.d.ts +0 -1
- package/dist/Switch/index.d.ts +0 -1
- package/dist/Switch/style.scss +128 -128
- package/dist/Switch/switch.d.ts +0 -1
- package/dist/TabBar/TabBarContext.d.ts +0 -1
- package/dist/TabBar/demo/base.d.ts +0 -1
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/TabBar/index.d.ts +0 -1
- package/dist/TabBar/index.js +2 -1
- package/dist/TabBar/index.scss +37 -36
- package/dist/TabBar/tab-bar.d.ts +0 -1
- package/dist/Tabs/context.d.ts +0 -1
- package/dist/Tabs/demo/base.d.ts +0 -1
- package/dist/Tabs/index.d.ts +0 -1
- package/dist/Tabs/style.scss +108 -108
- package/dist/Tabs/tab-nav.d.ts +0 -1
- package/dist/Tabs/tab-pane.d.ts +0 -1
- package/dist/Tabs/tab.d.ts +0 -1
- package/dist/Tabs/tabs.d.ts +0 -1
- package/dist/Tag/index.d.ts +0 -1
- package/dist/Tag/style.scss +108 -86
- package/dist/Tag/tag.d.ts +3 -1
- package/dist/Tag/tag.js +7 -1
- package/dist/WaterMark/index.d.ts +0 -1
- package/dist/WaterMark/style.scss +17 -17
- package/dist/WaterMark/water-mark.d.ts +0 -1
- package/dist/index.d.ts +6 -25
- package/dist/index.js +3 -12
- package/dist/locales/base.d.ts +0 -1
- package/dist/locales/en-US.d.ts +0 -1
- package/dist/locales/zh-CN.d.ts +0 -1
- package/dist/style/css-variable.scss +6 -0
- package/dist/style/index.d.ts +0 -1
- package/dist/style/style.scss +52 -52
- package/dist/style/theme-dark.scss +24 -24
- package/dist/style/theme-default.scss +54 -54
- package/dist/style/variable.scss +173 -168
- package/dist/types.d.ts +5 -2
- package/dist/utils/datetime-utils.d.ts +0 -1
- package/dist/utils/dev-log.d.ts +0 -1
- package/dist/utils/is-dev.d.ts +0 -1
- package/dist/utils/merge-locale.d.ts +0 -1
- package/dist/utils/native-props.d.ts +0 -1
- package/dist/utils/random-utils.d.ts +0 -1
- package/dist/utils/to-css-length.d.ts +0 -1
- package/dist/utils/type.d.ts +0 -1
- package/dist/utils/type.js +36 -36
- package/dist/utils/with-default-props.d.ts +0 -1
- package/dist/utils/with-default-props.js +4 -4
- package/dist/utils/with-stop-propagation.d.ts +0 -1
- package/package.json +5 -5
- package/dist/ActionSheet/ActionSheet.d.ts +0 -26
- package/dist/ActionSheet/ActionSheet.d.ts.map +0 -1
- package/dist/ActionSheet/ActionSheet.js +0 -77
- package/dist/ActionSheet/index.d.ts +0 -4
- package/dist/ActionSheet/index.d.ts.map +0 -1
- package/dist/ActionSheet/index.js +0 -2
- package/dist/ActionSheet/style.scss +0 -51
- package/dist/Alert/alert.d.ts.map +0 -1
- package/dist/Alert/index.d.ts.map +0 -1
- package/dist/Avatar/avatar.d.ts.map +0 -1
- package/dist/Avatar/index.d.ts.map +0 -1
- package/dist/Badge/badge.d.ts.map +0 -1
- package/dist/Badge/index.d.ts.map +0 -1
- package/dist/Card/card.d.ts.map +0 -1
- package/dist/Card/index.d.ts.map +0 -1
- package/dist/Card/native-props.d.ts.map +0 -1
- package/dist/CascaderPicker/cascader-picker.d.ts +0 -28
- package/dist/CascaderPicker/cascader-picker.d.ts.map +0 -1
- package/dist/CascaderPicker/cascader-picker.js +0 -88
- package/dist/CascaderPicker/index.d.ts +0 -4
- package/dist/CascaderPicker/index.d.ts.map +0 -1
- package/dist/CascaderPicker/index.js +0 -2
- package/dist/CascaderPicker/style.scss +0 -42
- package/dist/CascaderView/cascader-column-item.d.ts.map +0 -1
- package/dist/CascaderView/cascader-column.d.ts.map +0 -1
- package/dist/CascaderView/cascader-view.d.ts.map +0 -1
- package/dist/CascaderView/index.d.ts.map +0 -1
- package/dist/CascaderView/types.d.ts.map +0 -1
- package/dist/Cell/CellGroup.d.ts.map +0 -1
- package/dist/Cell/cell.d.ts.map +0 -1
- package/dist/Cell/index.d.ts.map +0 -1
- package/dist/Cell/types.d.ts.map +0 -1
- package/dist/Checkbox/checkbox-button.d.ts.map +0 -1
- package/dist/Checkbox/checkbox-group.d.ts.map +0 -1
- package/dist/Checkbox/checkbox.d.ts.map +0 -1
- package/dist/Checkbox/group-context.d.ts.map +0 -1
- package/dist/Checkbox/index.d.ts.map +0 -1
- package/dist/Checkbox/types.d.ts.map +0 -1
- package/dist/ConfigProvider/config-provider.d.ts.map +0 -1
- package/dist/ConfigProvider/index.d.ts.map +0 -1
- package/dist/DemoBlock/index.d.ts.map +0 -1
- package/dist/DemoDescription/index.d.ts.map +0 -1
- package/dist/Descriptions/DescriptionItem.d.ts.map +0 -1
- package/dist/Descriptions/Descriptions.d.ts.map +0 -1
- package/dist/Descriptions/index.d.ts.map +0 -1
- package/dist/Descriptions/types.d.ts.map +0 -1
- package/dist/Divider/divider.d.ts.map +0 -1
- package/dist/Divider/index.d.ts.map +0 -1
- package/dist/Ellipsis/ellipsis.d.ts.map +0 -1
- package/dist/Ellipsis/index.d.ts.map +0 -1
- package/dist/Ellipsis/useMeasure.d.ts.map +0 -1
- package/dist/Empty/empty-icon.d.ts.map +0 -1
- package/dist/Empty/empty.d.ts.map +0 -1
- package/dist/Empty/index.d.ts.map +0 -1
- package/dist/ErrorBlock/create-error-block.d.ts.map +0 -1
- package/dist/ErrorBlock/demo/base.d.ts.map +0 -1
- package/dist/ErrorBlock/error-block.d.ts.map +0 -1
- package/dist/ErrorBlock/images/busy.d.ts.map +0 -1
- package/dist/ErrorBlock/images/default.d.ts.map +0 -1
- package/dist/ErrorBlock/images/disconnected.d.ts.map +0 -1
- package/dist/ErrorBlock/images/empty.d.ts.map +0 -1
- package/dist/ErrorBlock/images/index.d.ts.map +0 -1
- package/dist/ErrorBlock/index.d.ts.map +0 -1
- package/dist/Footer/footer.d.ts.map +0 -1
- package/dist/Footer/index.d.ts.map +0 -1
- package/dist/Form/FormItem/form-item-input.d.ts +0 -16
- package/dist/Form/FormItem/form-item-input.d.ts.map +0 -1
- package/dist/Form/FormItem/form-item-input.js +0 -39
- package/dist/Form/FormItem/form-item-label.d.ts +0 -14
- package/dist/Form/FormItem/form-item-label.d.ts.map +0 -1
- package/dist/Form/FormItem/form-item-label.js +0 -25
- package/dist/Form/FormItem/form-item.d.ts +0 -22
- package/dist/Form/FormItem/form-item.d.ts.map +0 -1
- package/dist/Form/FormItem/form-item.js +0 -70
- package/dist/Form/FormItem/index.d.ts +0 -6
- package/dist/Form/FormItem/index.d.ts.map +0 -1
- package/dist/Form/FormItem/index.js +0 -3
- package/dist/Form/context.d.ts.map +0 -1
- package/dist/Form/form.d.ts.map +0 -1
- package/dist/Form/hooks/useForm.d.ts.map +0 -1
- package/dist/Form/hooks/useFormContext.d.ts.map +0 -1
- package/dist/Form/index.d.ts.map +0 -1
- package/dist/Form/interface.d.ts.map +0 -1
- package/dist/Form/style.scss +0 -45
- package/dist/Grid/grid.d.ts.map +0 -1
- package/dist/Grid/index.d.ts.map +0 -1
- package/dist/Icon/check-icon.d.ts.map +0 -1
- package/dist/Icon/demo/base.d.ts.map +0 -1
- package/dist/Input/base-input.d.ts +0 -15
- package/dist/Input/base-input.d.ts.map +0 -1
- package/dist/Input/base-input.js +0 -63
- package/dist/Input/index.d.ts +0 -13
- package/dist/Input/index.d.ts.map +0 -1
- package/dist/Input/index.js +0 -9
- package/dist/Input/index.scss +0 -173
- package/dist/Input/input-affix-wrapper.d.ts +0 -9
- package/dist/Input/input-affix-wrapper.d.ts.map +0 -1
- package/dist/Input/input-affix-wrapper.js +0 -50
- package/dist/Input/input-opt.d.ts +0 -17
- package/dist/Input/input-opt.d.ts.map +0 -1
- package/dist/Input/input-opt.js +0 -93
- package/dist/Input/input-password.d.ts +0 -8
- package/dist/Input/input-password.d.ts.map +0 -1
- package/dist/Input/input-password.js +0 -47
- package/dist/Input/input.d.ts +0 -16
- package/dist/Input/input.d.ts.map +0 -1
- package/dist/Input/input.js +0 -47
- package/dist/Input/textarea.d.ts +0 -14
- package/dist/Input/textarea.d.ts.map +0 -1
- package/dist/Input/textarea.js +0 -45
- package/dist/Input/types.d.ts +0 -2
- package/dist/Input/types.d.ts.map +0 -1
- package/dist/Input/types.js +0 -1
- package/dist/InputNumber/index.d.ts.map +0 -1
- package/dist/InputNumber/input-number.d.ts.map +0 -1
- package/dist/Mask/index.d.ts +0 -4
- package/dist/Mask/index.d.ts.map +0 -1
- package/dist/Mask/index.js +0 -2
- package/dist/Mask/mask-modal.d.ts +0 -46
- package/dist/Mask/mask-modal.d.ts.map +0 -1
- package/dist/Mask/mask-modal.js +0 -32
- package/dist/Mask/mask.d.ts +0 -6
- package/dist/Mask/mask.d.ts.map +0 -1
- package/dist/Mask/mask.js +0 -19
- package/dist/Mask/style.scss +0 -20
- package/dist/NavBar/index.d.ts.map +0 -1
- package/dist/NavBar/nav-bar.d.ts.map +0 -1
- package/dist/NoticeBar/index.d.ts.map +0 -1
- package/dist/NoticeBar/notice-bar.d.ts.map +0 -1
- package/dist/PageIndicator/index.d.ts.map +0 -1
- package/dist/PageIndicator/page-indicator.d.ts.map +0 -1
- package/dist/Picker/index.d.ts +0 -4
- package/dist/Picker/index.d.ts.map +0 -1
- package/dist/Picker/index.js +0 -2
- package/dist/Picker/picker.d.ts +0 -20
- package/dist/Picker/picker.d.ts.map +0 -1
- package/dist/Picker/picker.js +0 -97
- package/dist/Picker/style.scss +0 -41
- package/dist/PickerView/index.d.ts +0 -5
- package/dist/PickerView/index.d.ts.map +0 -1
- package/dist/PickerView/index.js +0 -2
- package/dist/PickerView/picker-view-column-item.d.ts +0 -8
- package/dist/PickerView/picker-view-column-item.d.ts.map +0 -1
- package/dist/PickerView/picker-view-column-item.js +0 -11
- package/dist/PickerView/picker-view-column.d.ts +0 -11
- package/dist/PickerView/picker-view-column.d.ts.map +0 -1
- package/dist/PickerView/picker-view-column.js +0 -117
- package/dist/PickerView/picker-view.d.ts +0 -13
- package/dist/PickerView/picker-view.d.ts.map +0 -1
- package/dist/PickerView/picker-view.js +0 -60
- package/dist/PickerView/style.scss +0 -72
- package/dist/PickerView/types.d.ts +0 -5
- package/dist/PickerView/types.d.ts.map +0 -1
- package/dist/Popup/index.d.ts +0 -4
- package/dist/Popup/index.d.ts.map +0 -1
- package/dist/Popup/index.js +0 -2
- package/dist/Popup/popup-modal.d.ts +0 -53
- package/dist/Popup/popup-modal.d.ts.map +0 -1
- package/dist/Popup/popup-modal.js +0 -74
- package/dist/Popup/popup.d.ts +0 -5
- package/dist/Popup/popup.d.ts.map +0 -1
- package/dist/Popup/popup.js +0 -56
- package/dist/Popup/style.scss +0 -53
- package/dist/Radio/GroupContext.d.ts.map +0 -1
- package/dist/Radio/RadioButton.d.ts.map +0 -1
- package/dist/Radio/RadioGroup.d.ts.map +0 -1
- package/dist/Radio/index.d.ts.map +0 -1
- package/dist/Radio/radio.d.ts.map +0 -1
- package/dist/Radio/types.d.ts.map +0 -1
- package/dist/Rate/index.d.ts.map +0 -1
- package/dist/Rate/rate.d.ts.map +0 -1
- package/dist/Result/demo/base.d.ts.map +0 -1
- package/dist/Result/index.d.ts.map +0 -1
- package/dist/Result/result.d.ts.map +0 -1
- package/dist/Result/use-result-icon.d.ts.map +0 -1
- package/dist/SafeArea/index.d.ts.map +0 -1
- package/dist/SafeArea/safe-area.d.ts.map +0 -1
- package/dist/Scaffold/index.d.ts.map +0 -1
- package/dist/Scaffold/scaffold.d.ts.map +0 -1
- package/dist/ScrollView/index.d.ts +0 -5
- package/dist/ScrollView/index.d.ts.map +0 -1
- package/dist/ScrollView/index.js +0 -2
- package/dist/ScrollView/scroll-view.d.ts +0 -5
- package/dist/ScrollView/scroll-view.d.ts.map +0 -1
- package/dist/ScrollView/scroll-view.js +0 -55
- package/dist/ScrollView/style.scss +0 -19
- package/dist/ScrollView/types.d.ts +0 -27
- package/dist/ScrollView/types.d.ts.map +0 -1
- package/dist/ScrollView/types.js +0 -1
- package/dist/SideBar/SideBarContext.d.ts +0 -19
- package/dist/SideBar/SideBarContext.d.ts.map +0 -1
- package/dist/SideBar/SideBarContext.js +0 -2
- package/dist/SideBar/index.d.ts +0 -4
- package/dist/SideBar/index.d.ts.map +0 -1
- package/dist/SideBar/index.js +0 -2
- package/dist/SideBar/side-bar.d.ts +0 -26
- package/dist/SideBar/side-bar.d.ts.map +0 -1
- package/dist/SideBar/side-bar.js +0 -351
- package/dist/SideBar/style.scss +0 -85
- package/dist/SideBar/types.d.ts +0 -8
- package/dist/SideBar/types.d.ts.map +0 -1
- package/dist/SideBar/types.js +0 -1
- package/dist/Space/index.d.ts.map +0 -1
- package/dist/Space/space.d.ts.map +0 -1
- package/dist/SpinLoading/demo/base.d.ts.map +0 -1
- package/dist/SpinLoading/index.d.ts.map +0 -1
- package/dist/SpinLoading/spin-loading.d.ts.map +0 -1
- package/dist/Steps/HorizontalSteps.d.ts.map +0 -1
- package/dist/Steps/Point.d.ts.map +0 -1
- package/dist/Steps/Steps.d.ts.map +0 -1
- package/dist/Steps/VerticalSteps.d.ts.map +0 -1
- package/dist/Steps/context.d.ts.map +0 -1
- package/dist/Steps/index.d.ts.map +0 -1
- package/dist/Steps/types.d.ts.map +0 -1
- package/dist/Switch/index.d.ts.map +0 -1
- package/dist/Switch/switch.d.ts.map +0 -1
- package/dist/TabBar/TabBarContext.d.ts.map +0 -1
- package/dist/TabBar/demo/base.d.ts.map +0 -1
- package/dist/TabBar/index.d.ts.map +0 -1
- package/dist/TabBar/tab-bar.d.ts.map +0 -1
- package/dist/Tabs/context.d.ts.map +0 -1
- package/dist/Tabs/demo/base.d.ts.map +0 -1
- package/dist/Tabs/index.d.ts.map +0 -1
- package/dist/Tabs/tab-nav.d.ts.map +0 -1
- package/dist/Tabs/tab-pane.d.ts.map +0 -1
- package/dist/Tabs/tab.d.ts.map +0 -1
- package/dist/Tabs/tabs.d.ts.map +0 -1
- package/dist/Tag/demo/base.d.ts +0 -8
- package/dist/Tag/demo/base.d.ts.map +0 -1
- package/dist/Tag/demo/base.js +0 -67
- package/dist/Tag/demo/style.scss +0 -8
- package/dist/Tag/index.d.ts.map +0 -1
- package/dist/Tag/tag.d.ts.map +0 -1
- package/dist/Toast/index.d.ts +0 -6
- package/dist/Toast/index.d.ts.map +0 -1
- package/dist/Toast/index.js +0 -3
- package/dist/Toast/style.scss +0 -63
- package/dist/Toast/toast-modal.d.ts +0 -19
- package/dist/Toast/toast-modal.d.ts.map +0 -1
- package/dist/Toast/toast-modal.js +0 -112
- package/dist/Toast/toast.d.ts +0 -8
- package/dist/Toast/toast.d.ts.map +0 -1
- package/dist/Toast/toast.js +0 -78
- package/dist/VerificationCodeInput/demo/base.d.ts +0 -4
- package/dist/VerificationCodeInput/demo/base.d.ts.map +0 -1
- package/dist/VerificationCodeInput/demo/base.js +0 -11
- package/dist/VerificationCodeInput/index.d.ts +0 -4
- package/dist/VerificationCodeInput/index.d.ts.map +0 -1
- package/dist/VerificationCodeInput/index.js +0 -2
- package/dist/VerificationCodeInput/style.scss +0 -20
- package/dist/VerificationCodeInput/verification-code-input.d.ts +0 -25
- package/dist/VerificationCodeInput/verification-code-input.d.ts.map +0 -1
- package/dist/VerificationCodeInput/verification-code-input.js +0 -99
- package/dist/WaterMark/index.d.ts.map +0 -1
- package/dist/WaterMark/water-mark.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/locales/base.d.ts.map +0 -1
- package/dist/locales/en-US.d.ts.map +0 -1
- package/dist/locales/zh-CN.d.ts.map +0 -1
- package/dist/style/index.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/utils/datetime-utils.d.ts.map +0 -1
- package/dist/utils/dev-log.d.ts.map +0 -1
- package/dist/utils/is-dev.d.ts.map +0 -1
- package/dist/utils/merge-locale.d.ts.map +0 -1
- package/dist/utils/native-props.d.ts.map +0 -1
- package/dist/utils/random-utils.d.ts.map +0 -1
- package/dist/utils/to-css-length.d.ts.map +0 -1
- package/dist/utils/type.d.ts.map +0 -1
- package/dist/utils/with-default-props.d.ts.map +0 -1
- package/dist/utils/with-stop-propagation.d.ts.map +0 -1
- /package/dist/{PickerView → Form}/types.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-item-input.d.ts","sourceRoot":"","sources":["form-item-input.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAO,IAAI,EAAC,MAAM,6BAA6B,CAAC;AACvD,OAAO,KAAK,EAAE,EAAC,EAAE,EAAW,MAAM,OAAO,CAAC;AAE1C,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAoChD,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import classNames from 'classnames';
|
|
8
|
-
import { isEmpty } from 'lodash-es';
|
|
9
|
-
import { Field } from 'rc-field-form';
|
|
10
|
-
import React, { useState } from 'react';
|
|
11
|
-
export var FormItemInput = function FormItemInput(_ref) {
|
|
12
|
-
var children = _ref.children,
|
|
13
|
-
className = _ref.className,
|
|
14
|
-
name = _ref.name,
|
|
15
|
-
rules = _ref.rules,
|
|
16
|
-
initialValue = _ref.initialValue,
|
|
17
|
-
valuePropName = _ref.valuePropName,
|
|
18
|
-
errorRender = _ref.errorRender,
|
|
19
|
-
hiddenError = _ref.hiddenError;
|
|
20
|
-
var _useState = useState(),
|
|
21
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
22
|
-
meta = _useState2[0],
|
|
23
|
-
setMeta = _useState2[1];
|
|
24
|
-
var clsPrefix = 'triones-antm-form-item';
|
|
25
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
-
className: classNames(className)
|
|
27
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Field, {
|
|
28
|
-
name: name,
|
|
29
|
-
rules: rules,
|
|
30
|
-
valuePropName: valuePropName,
|
|
31
|
-
trigger: 'onChange',
|
|
32
|
-
onMetaChange: function onMetaChange(meta) {
|
|
33
|
-
setMeta(meta);
|
|
34
|
-
},
|
|
35
|
-
initialValue: initialValue
|
|
36
|
-
}, children)), !hiddenError && !isEmpty(meta === null || meta === void 0 ? void 0 : meta.errors) && /*#__PURE__*/React.createElement("div", {
|
|
37
|
-
className: classNames("".concat(clsPrefix, "-error"))
|
|
38
|
-
}, (errorRender === null || errorRender === void 0 ? void 0 : errorRender(meta === null || meta === void 0 ? void 0 : meta.errors)) || (meta === null || meta === void 0 ? void 0 : meta.errors.join(','))));
|
|
39
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, FC } from "react";
|
|
2
|
-
import { NamePath } from "rc-field-form/lib/interface";
|
|
3
|
-
import { FormItemLayout } from "../form";
|
|
4
|
-
type FormItemLabelProps = {
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
label?: React.ReactNode;
|
|
8
|
-
layout?: FormItemLayout;
|
|
9
|
-
name?: NamePath;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const FormItemLabel: FC<FormItemLabelProps>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=form-item-label.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-item-label.d.ts","sourceRoot":"","sources":["form-item-label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,aAAa,EAAE,EAAE,EAAC,MAAM,OAAO,CAAA;AAE9C,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AAGrD,OAAO,EAAC,cAAc,EAAC,MAAM,SAAS,CAAC;AAEvC,KAAK,kBAAkB,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AACD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAYhD,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import classNames from "classnames";
|
|
3
|
-
import { useFormContext } from "../hooks/useFormContext";
|
|
4
|
-
import { isFunction } from "lodash-es";
|
|
5
|
-
export var FormItemLabel = function FormItemLabel(_ref) {
|
|
6
|
-
var className = _ref.className,
|
|
7
|
-
style = _ref.style,
|
|
8
|
-
label = _ref.label,
|
|
9
|
-
layout = _ref.layout,
|
|
10
|
-
required = _ref.required;
|
|
11
|
-
var _useFormContext = useFormContext(),
|
|
12
|
-
requiredMark = _useFormContext.requiredMark,
|
|
13
|
-
colon = _useFormContext.colon;
|
|
14
|
-
var clsPrefix = "triones-antm-form-item-label";
|
|
15
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
-
className: classNames(className, {
|
|
17
|
-
required: "".concat(clsPrefix, "-required")
|
|
18
|
-
}),
|
|
19
|
-
style: style
|
|
20
|
-
}, /*#__PURE__*/React.createElement("label", null, required && /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
className: "".concat(clsPrefix, "-required-mark")
|
|
22
|
-
}, isFunction(requiredMark) ? requiredMark(label, {
|
|
23
|
-
required: required
|
|
24
|
-
}) : '*'), label, layout == 'horizontal' && colon && ':'));
|
|
25
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { CSSProperties, FC, ReactElement, ReactNode } from "react";
|
|
2
|
-
import { NamePath, Rule } from "rc-field-form/lib/interface";
|
|
3
|
-
import { FormItemLayout, FormLayoutAlign } from "../form";
|
|
4
|
-
export type FormItemProps = {
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
children?: ReactElement;
|
|
8
|
-
layout?: FormItemLayout;
|
|
9
|
-
label?: ReactNode;
|
|
10
|
-
labelAlign?: FormLayoutAlign;
|
|
11
|
-
labelWidth?: number;
|
|
12
|
-
name?: NamePath;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
hidden?: boolean;
|
|
15
|
-
noStyle?: boolean;
|
|
16
|
-
rules?: Rule[];
|
|
17
|
-
initialValue?: any;
|
|
18
|
-
valuePropName?: string;
|
|
19
|
-
errorRender?: (errors?: any[]) => React.ReactNode;
|
|
20
|
-
};
|
|
21
|
-
export declare const FormItem: FC<FormItemProps>;
|
|
22
|
-
//# sourceMappingURL=form-item.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-item.d.ts","sourceRoot":"","sources":["form-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,aAAa,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAGvE,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,MAAM,6BAA6B,CAAC;AAG3D,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAGxD,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,YAAY,CAAC,EAAE,GAAG,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC;CACnD,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA2CtC,CAAA"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["className", "style", "children", "layout", "label", "labelAlign", "labelWidth", "name", "required", "hidden", "noStyle", "rules", "initialValue", "valuePropName", "errorRender"];
|
|
3
|
-
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); }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
|
-
import React from "react";
|
|
10
|
-
import { FormItemLabel } from "./form-item-label";
|
|
11
|
-
import { FormItemInput } from "./form-item-input";
|
|
12
|
-
import classNames from "classnames";
|
|
13
|
-
import { useFormContext } from "../hooks/useFormContext";
|
|
14
|
-
import { Field } from "rc-field-form";
|
|
15
|
-
export var FormItem = function FormItem(_ref) {
|
|
16
|
-
var className = _ref.className,
|
|
17
|
-
style = _ref.style,
|
|
18
|
-
children = _ref.children,
|
|
19
|
-
layout = _ref.layout,
|
|
20
|
-
label = _ref.label,
|
|
21
|
-
labelAlign = _ref.labelAlign,
|
|
22
|
-
labelWidth = _ref.labelWidth,
|
|
23
|
-
name = _ref.name,
|
|
24
|
-
required = _ref.required,
|
|
25
|
-
_ref$hidden = _ref.hidden,
|
|
26
|
-
hidden = _ref$hidden === void 0 ? false : _ref$hidden,
|
|
27
|
-
_ref$noStyle = _ref.noStyle,
|
|
28
|
-
noStyle = _ref$noStyle === void 0 ? false : _ref$noStyle,
|
|
29
|
-
rules = _ref.rules,
|
|
30
|
-
initialValue = _ref.initialValue,
|
|
31
|
-
valuePropName = _ref.valuePropName,
|
|
32
|
-
errorRender = _ref.errorRender,
|
|
33
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
-
var _useFormContext = useFormContext(),
|
|
35
|
-
formLayout = _useFormContext.layout,
|
|
36
|
-
formLayoutAlign = _useFormContext.labelAlign,
|
|
37
|
-
formLabelWidth = _useFormContext.labelWidth,
|
|
38
|
-
hiddenError = _useFormContext.hiddenError;
|
|
39
|
-
var formItemLayout = layout ? layout : formLayout === 'inline' ? 'horizontal' : formLayout;
|
|
40
|
-
var formItemAlign = labelAlign ? labelAlign : formLayoutAlign || 'left';
|
|
41
|
-
var formItemLabelWidth = labelWidth ? labelWidth : formLabelWidth;
|
|
42
|
-
var clsPrefix = "triones-antm-form-item";
|
|
43
|
-
if (noStyle) {
|
|
44
|
-
return /*#__PURE__*/React.createElement(Field, {
|
|
45
|
-
name: name,
|
|
46
|
-
rules: rules,
|
|
47
|
-
trigger: 'onChange',
|
|
48
|
-
initialValue: initialValue
|
|
49
|
-
}, children);
|
|
50
|
-
}
|
|
51
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
className: classNames(clsPrefix, "".concat(clsPrefix, "-").concat(formItemLayout), className, _defineProperty({}, "".concat(clsPrefix, "-hidden"), hidden)),
|
|
53
|
-
style: style
|
|
54
|
-
}, label && /*#__PURE__*/React.createElement(FormItemLabel, {
|
|
55
|
-
className: classNames("".concat(clsPrefix, "-label"), "".concat(clsPrefix, "-label-").concat(formItemAlign)),
|
|
56
|
-
style: {
|
|
57
|
-
width: formItemLabelWidth
|
|
58
|
-
},
|
|
59
|
-
label: label,
|
|
60
|
-
required: required
|
|
61
|
-
}), /*#__PURE__*/React.createElement(FormItemInput, _extends({
|
|
62
|
-
className: "".concat(clsPrefix, "-input")
|
|
63
|
-
}, props, {
|
|
64
|
-
name: name,
|
|
65
|
-
rules: rules,
|
|
66
|
-
errorRender: errorRender,
|
|
67
|
-
initialValue: initialValue,
|
|
68
|
-
hiddenError: hiddenError
|
|
69
|
-
}), children));
|
|
70
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAA+B,MAAM,aAAa,CAAC;AAIxE,QAAA,MAAM,QAAQ,mCAA0C,CAAA;AAExD,YAAY,EACV,aAAa,EACd,CAAA;AACD,eAAe,QAAQ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,eAAe,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAC;AAEjE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,eAAO,MAAM,WAAW,iCAKtB,CAAA"}
|
package/dist/Form/form.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["form.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,cAAc,CAAC;AAEtB,MAAM,MAAM,YAAY,GACpB,OAAO,GACP,UAAU,GACV,CAAC,CACC,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,IAAI,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,KACxB,KAAK,CAAC,SAAS,CAAC,CAAC;AAC1B,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,UAAU,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/C,MAAM,WAAW,SAAS,CAAC,MAAM,GAAG,GAAG,CACrC,SAAQ,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IACvD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,wBAAwB,CACvD,OAAO,EACP,SAAS,CA4BV,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,eAAe,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["useForm.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CASjG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFormContext.d.ts","sourceRoot":"","sources":["useFormContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAGzD,wBAAgB,cAAc,IAAG,gBAAgB,CAGhD"}
|
package/dist/Form/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,QAAQ,CAAC;AACzD,OAAO,QAAQ,EAAE,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AACnD,OAAO,OAAO,MAAM,iBAAiB,CAAC;AAEtC,KAAK,gBAAgB,GAAG,OAAO,YAAY,CAAC;AAE5C,KAAK,mBAAmB,GAAG,gBAAgB,GAAG;IAC5C,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,IAAI,EAAE,OAAO,QAAQ,CAAC;IACtB,QAAQ,EAAE,OAAO,QAAQ,CAAC;CAC3B,CAAA;AAED,QAAA,MAAM,IAAI,qBAAsC,CAAC;AAKjD,YAAY,EACV,SAAS,EACT,aAAa,EACd,CAAA;AACD,eAAe,IAAI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpE,MAAM,WAAW,YAAY,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,cAAc,CAAC,MAAM,CAAC;CAEzE"}
|
package/dist/Form/style.scss
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
$cls-prefix-form: 'triones-antm-form';
|
|
2
|
-
$cls-prefix-form-item: 'triones-antm-form-item';
|
|
3
|
-
|
|
4
|
-
.#{$cls-prefix-form}{
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.#{$cls-prefix-form-item}{
|
|
9
|
-
&-label{
|
|
10
|
-
font-size: 14Px;
|
|
11
|
-
//line-height: 1.5;
|
|
12
|
-
color: #6F6F6F;
|
|
13
|
-
&-left{}
|
|
14
|
-
&-right{
|
|
15
|
-
text-align: right;
|
|
16
|
-
}
|
|
17
|
-
&-required-mark{
|
|
18
|
-
display: inline-block;
|
|
19
|
-
color: red;
|
|
20
|
-
margin-right: 4Px;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
&-input{
|
|
24
|
-
.#{$cls-prefix-form-item}{
|
|
25
|
-
&-error{
|
|
26
|
-
font-size: 12Px;
|
|
27
|
-
color: red;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
&-horizontal{
|
|
32
|
-
display: flex;
|
|
33
|
-
.#{$cls-prefix-form-item}{
|
|
34
|
-
&-label{
|
|
35
|
-
padding: 4Px;
|
|
36
|
-
}
|
|
37
|
-
&-input{
|
|
38
|
-
flex: auto 1;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
&-hidden{
|
|
43
|
-
display: none;
|
|
44
|
-
}
|
|
45
|
-
}
|
package/dist/Grid/grid.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAgC,MAAM,uBAAuB,CAAA;AAEjF,OAAO,cAAc,CAAA;AAKrB,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;IAC1D,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,GAAG,WAAW,CAAC,OAAO,GAAG,gBAAgB,GAAG,kBAAkB,CAAC,CAAA;AAEhE,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAoB9B,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,KAAK,IAAI,CAAA;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,GAAG,WAAW,CAAA;AAGf,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CActC,CAAA"}
|
package/dist/Grid/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,IAAI,YAAY,EAAE,QAAQ,EAAC,MAAM,QAAQ,CAAA;AAErD,YAAY,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,QAAQ,CAAA;AAEpD,KAAK,mBAAmB,GAAG,OAAO,YAAY,GAAG;IAC/C,IAAI,EAAE,OAAO,QAAQ,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,IAAI,qBAAsC,CAAC;AAGjD,eAAe,IAAI,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-icon.d.ts","sourceRoot":"","sources":["check-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,WAAW,EAAmB,MAAM,uBAAuB,CAAC;AAErE,eAAO,MAAM,SAAS,yCAUpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["base.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;;AAK1B,wBAoBC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type BaseInputProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
style?: React.CSSProperties;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
type?: 'text' | 'password' | 'textarea';
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
value?: any;
|
|
9
|
-
onChange?: (e: any) => void;
|
|
10
|
-
};
|
|
11
|
-
export interface BaseInputHandle {
|
|
12
|
-
clear?: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const BaseInput: React.ForwardRefExoticComponent<BaseInputProps & React.RefAttributes<BaseInputHandle>>;
|
|
15
|
-
//# sourceMappingURL=base-input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-input.d.ts","sourceRoot":"","sources":["base-input.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6D,MAAM,OAAO,CAAC;AAElF,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,wFA4CrB,CAAC"}
|
package/dist/Input/base-input.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var _excluded = ["className", "style", "placeholder", "type", "value", "onChange"];
|
|
2
|
-
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); }
|
|
3
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
-
import classNames from 'classnames';
|
|
12
|
-
import React, { forwardRef, useEffect, useImperativeHandle, useState } from 'react';
|
|
13
|
-
export var BaseInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
14
|
-
var className = _ref.className,
|
|
15
|
-
style = _ref.style,
|
|
16
|
-
placeholder = _ref.placeholder,
|
|
17
|
-
type = _ref.type,
|
|
18
|
-
value = _ref.value,
|
|
19
|
-
_onChange = _ref.onChange,
|
|
20
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
-
var _useState = useState(0),
|
|
22
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
23
|
-
keySequence = _useState2[0],
|
|
24
|
-
setKeySequence = _useState2[1];
|
|
25
|
-
var _useState3 = useState(value || ''),
|
|
26
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
27
|
-
innerValue = _useState4[0],
|
|
28
|
-
setInnerValue = _useState4[1];
|
|
29
|
-
useImperativeHandle(ref, function () {
|
|
30
|
-
return {
|
|
31
|
-
clear: function clear() {
|
|
32
|
-
setInnerValue('');
|
|
33
|
-
_onChange === null || _onChange === void 0 || _onChange('');
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
var cls = 'triones-antm-input';
|
|
38
|
-
useEffect(function () {
|
|
39
|
-
setKeySequence(keySequence + 1);
|
|
40
|
-
}, [type]);
|
|
41
|
-
useEffect(function () {
|
|
42
|
-
if (value === undefined) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
if (value === innerValue) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
setInnerValue(value);
|
|
49
|
-
}, [value]);
|
|
50
|
-
return /*#__PURE__*/React.createElement("input", _extends({
|
|
51
|
-
key: keySequence
|
|
52
|
-
}, props, {
|
|
53
|
-
className: classNames(["".concat(cls), className]),
|
|
54
|
-
style: style,
|
|
55
|
-
placeholder: placeholder,
|
|
56
|
-
type: type,
|
|
57
|
-
value: innerValue,
|
|
58
|
-
onChange: function onChange(e) {
|
|
59
|
-
setInnerValue(e.target.value);
|
|
60
|
-
_onChange === null || _onChange === void 0 || _onChange(e);
|
|
61
|
-
}
|
|
62
|
-
}));
|
|
63
|
-
});
|
package/dist/Input/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { InputProps, Input as InternalInput } from './input';
|
|
2
|
-
import { InputOPT, InputOPTProps } from './input-opt';
|
|
3
|
-
import { InputPassword, InputPasswordProps } from './input-password';
|
|
4
|
-
import { InputTextareaProps, Textarea } from './textarea';
|
|
5
|
-
type CompoundedComponent = typeof InternalInput & {
|
|
6
|
-
Password: typeof InputPassword;
|
|
7
|
-
TextArea: typeof Textarea;
|
|
8
|
-
OPT: typeof InputOPT;
|
|
9
|
-
};
|
|
10
|
-
declare const Input: CompoundedComponent;
|
|
11
|
-
export type { InputOPTProps, InputPasswordProps, InputProps, InputTextareaProps, };
|
|
12
|
-
export default Input;
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE1D,KAAK,mBAAmB,GAAG,OAAO,aAAa,GAAG;IAChD,QAAQ,EAAE,OAAO,aAAa,CAAC;IAC/B,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,GAAG,EAAE,OAAO,QAAQ,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,KAAK,qBAAuC,CAAC;AAKnD,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,kBAAkB,GACnB,CAAC;AACF,eAAe,KAAK,CAAC"}
|
package/dist/Input/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Input as InternalInput } from "./input";
|
|
2
|
-
import { InputOPT } from "./input-opt";
|
|
3
|
-
import { InputPassword } from "./input-password";
|
|
4
|
-
import { Textarea } from "./textarea";
|
|
5
|
-
var Input = InternalInput;
|
|
6
|
-
Input.Password = InputPassword;
|
|
7
|
-
Input.OPT = InputOPT;
|
|
8
|
-
Input.TextArea = Textarea;
|
|
9
|
-
export default Input;
|
package/dist/Input/index.scss
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
@use "../style/variable" as *;
|
|
2
|
-
|
|
3
|
-
$inputCls: 'triones-antm-input';
|
|
4
|
-
$inputAffixWrapperCls: 'triones-antm-input-affix-wrapper';
|
|
5
|
-
$inputGroupWrapperCls: 'triones-antm-input-group-wrapper';
|
|
6
|
-
$inputPotCls: 'triones-antm-pot';
|
|
7
|
-
|
|
8
|
-
input {
|
|
9
|
-
height: auto;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.#{$inputCls} {
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
display: inline-block;
|
|
15
|
-
position: relative;
|
|
16
|
-
width: 100%;
|
|
17
|
-
min-width: 0;
|
|
18
|
-
transition: all .2s;
|
|
19
|
-
padding: $trionesInputPaddingBlock $trionesInputPaddingInline;
|
|
20
|
-
outline: none;
|
|
21
|
-
box-shadow: none;
|
|
22
|
-
border: none;
|
|
23
|
-
line-height: $trionesLineHeight;
|
|
24
|
-
border-radius: $trionesBorderRadius;
|
|
25
|
-
font-size: $trionesInputInputFontSize;
|
|
26
|
-
height: auto;
|
|
27
|
-
|
|
28
|
-
&::placeholder {
|
|
29
|
-
font-size: $trionesInputInputFontSize;
|
|
30
|
-
color: #cccccc;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
.#{$inputAffixWrapperCls} {
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
position: relative;
|
|
38
|
-
display: inline-flex;
|
|
39
|
-
width: 100%;
|
|
40
|
-
min-width: 0;
|
|
41
|
-
line-height: $trionesLineHeight;
|
|
42
|
-
padding: $trionesInputPaddingBlock $trionesInputPaddingInline;
|
|
43
|
-
gap: 4Px;
|
|
44
|
-
|
|
45
|
-
&::before {
|
|
46
|
-
|
|
47
|
-
display: inline-block;
|
|
48
|
-
width: 0;
|
|
49
|
-
visibility: hidden;
|
|
50
|
-
content: "\a0";
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&::after {
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.#{$inputCls} {
|
|
58
|
-
padding: 0;
|
|
59
|
-
background-color: transparent;
|
|
60
|
-
|
|
61
|
-
&-prifix {
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-suffix {
|
|
65
|
-
display: inline-flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
flex-shrink: 0;
|
|
68
|
-
gap: 4Px;
|
|
69
|
-
|
|
70
|
-
.clear-icon {
|
|
71
|
-
color: rgba(0, 0, 0, 0.25);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
&:hover {
|
|
75
|
-
color: rgba(0, 0, 0, 0.45);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.triones-antm-icon {
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.#{$inputGroupWrapperCls} {
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
.#{$inputPotCls} {
|
|
91
|
-
position: relative;
|
|
92
|
-
display: inline-flex;
|
|
93
|
-
&-wrapper{
|
|
94
|
-
position: relative;
|
|
95
|
-
display: inline-flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
flex-wrap: nowrap;
|
|
98
|
-
column-gap: 8Px;
|
|
99
|
-
}
|
|
100
|
-
&-input {
|
|
101
|
-
position: absolute;
|
|
102
|
-
background-color: transparent;
|
|
103
|
-
z-index: -1;
|
|
104
|
-
left: 0;
|
|
105
|
-
top: 0;
|
|
106
|
-
right: 0;
|
|
107
|
-
bottom: 0;
|
|
108
|
-
opacity: 0;
|
|
109
|
-
-moz-appearance: textfield;
|
|
110
|
-
&::-webkit-outer-spin-button,
|
|
111
|
-
&::-webkit-inner-spin-button {
|
|
112
|
-
-webkit-appearance: none;
|
|
113
|
-
margin: 0;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&-item {
|
|
118
|
-
text-align: center;
|
|
119
|
-
font-size: $trionesInputInputFontSize;
|
|
120
|
-
height: 32Px;
|
|
121
|
-
width: 32Px;
|
|
122
|
-
display: inline-flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
justify-content: center;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
&::placeholder {
|
|
128
|
-
font-size: $trionesInputInputFontSize;
|
|
129
|
-
}
|
|
130
|
-
&-focus{
|
|
131
|
-
&::after{
|
|
132
|
-
content: ' ';
|
|
133
|
-
height: 100%;
|
|
134
|
-
width: 0.5Px;
|
|
135
|
-
background-color: #0a0a0a;
|
|
136
|
-
transition: transform 0.1s ease;
|
|
137
|
-
animation: blink 1s step-end infinite;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.#{$inputCls}-outlined {
|
|
144
|
-
font-size: $trionesInputInputFontSize;
|
|
145
|
-
color: rgba(0, 0, 0, 0.88);
|
|
146
|
-
background: #ffffff;
|
|
147
|
-
border-width: 1Px;
|
|
148
|
-
border-style: solid;
|
|
149
|
-
border-color: #d9d9d9;
|
|
150
|
-
-webkit-appearance: none;
|
|
151
|
-
-moz-appearance: none;
|
|
152
|
-
appearance: none;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
.#{$inputCls}-textarea {
|
|
158
|
-
box-sizing: border-box;
|
|
159
|
-
width: 100%;
|
|
160
|
-
border: 0;
|
|
161
|
-
outline: 0;
|
|
162
|
-
padding: $trionesInputPaddingBlock $trionesInputPaddingInline;
|
|
163
|
-
&::placeholder {
|
|
164
|
-
font-size: $trionesInputInputFontSize;
|
|
165
|
-
color: #cccccc;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
@keyframes blink {
|
|
170
|
-
50% {
|
|
171
|
-
background-color: transparent;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { BaseInputProps } from './base-input';
|
|
3
|
-
export type InputAffixWrapperProps = BaseInputProps & {
|
|
4
|
-
prefix?: React.ReactNode;
|
|
5
|
-
suffix?: React.ReactNode;
|
|
6
|
-
allowClear?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const InputAffixWrapper: FC<InputAffixWrapperProps>;
|
|
9
|
-
//# sourceMappingURL=input-affix-wrapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-affix-wrapper.d.ts","sourceRoot":"","sources":["input-affix-wrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAU,MAAM,OAAO,CAAC;AAC1C,OAAO,EAA8B,cAAc,EAAE,MAAM,cAAc,CAAC;AAE1E,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG;IACpD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAyCxD,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
var _excluded = ["prefix", "suffix", "allowClear", "value", "onChange"];
|
|
2
|
-
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); }
|
|
3
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
-
import { CloseCircleFill } from "../../../antd-mobile-icons-react";
|
|
12
|
-
import classNames from 'classnames';
|
|
13
|
-
import React, { useRef } from 'react';
|
|
14
|
-
import { BaseInput } from "./base-input";
|
|
15
|
-
export var InputAffixWrapper = function InputAffixWrapper(_ref) {
|
|
16
|
-
var prefix = _ref.prefix,
|
|
17
|
-
suffix = _ref.suffix,
|
|
18
|
-
allowClear = _ref.allowClear,
|
|
19
|
-
value = _ref.value,
|
|
20
|
-
_onChange = _ref.onChange,
|
|
21
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
-
var _React$useState = React.useState(value),
|
|
23
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
24
|
-
innerValue = _React$useState2[0],
|
|
25
|
-
setInnerValue = _React$useState2[1];
|
|
26
|
-
var baseInputRef = useRef({});
|
|
27
|
-
var cls = 'triones-antm-input-affix-wrapper';
|
|
28
|
-
var inputCls = 'triones-antm-input';
|
|
29
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: classNames([cls])
|
|
31
|
-
}, prefix && /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: classNames(["".concat(inputCls, "-prefix")])
|
|
33
|
-
}, prefix), /*#__PURE__*/React.createElement(BaseInput, _extends({
|
|
34
|
-
ref: baseInputRef
|
|
35
|
-
}, rest, {
|
|
36
|
-
value: value,
|
|
37
|
-
onChange: function onChange(value) {
|
|
38
|
-
setInnerValue(value);
|
|
39
|
-
_onChange === null || _onChange === void 0 || _onChange(value);
|
|
40
|
-
}
|
|
41
|
-
})), (suffix || allowClear) && /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
className: classNames(["".concat(inputCls, "-suffix")])
|
|
43
|
-
}, allowClear && innerValue && /*#__PURE__*/React.createElement(CloseCircleFill, {
|
|
44
|
-
className: "clear-icon",
|
|
45
|
-
onClick: function onClick() {
|
|
46
|
-
var _baseInputRef$current, _baseInputRef$current2;
|
|
47
|
-
(_baseInputRef$current = (_baseInputRef$current2 = baseInputRef.current).clear) === null || _baseInputRef$current === void 0 || _baseInputRef$current.call(_baseInputRef$current2);
|
|
48
|
-
}
|
|
49
|
-
}), suffix));
|
|
50
|
-
};
|