@antscorp/antsomi-ui 1.3.3-beta.2 → 1.3.3-beta.21
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/README.md +78 -78
- package/dist/index.js +1 -1
- package/dist/main.css +100 -1
- package/dist/public/icons/stars_slider.png +0 -0
- package/es/assets/css/main.scss +4 -4
- package/es/assets/images/feedback.svg +3 -3
- package/es/assets/images/stars_slider.png +0 -0
- package/es/components/atoms/Alert/Alert.d.ts +4 -4
- package/es/components/atoms/Alert/Alert.js +19 -19
- package/es/components/atoms/Alert/index.d.ts +1 -1
- package/es/components/atoms/Alert/index.js +1 -1
- package/es/components/atoms/Button/Button.d.ts +1 -1
- package/es/components/atoms/Button/Button.js +1 -1
- package/es/components/atoms/Button/index.d.ts +4 -4
- package/es/components/atoms/Button/index.js +2 -2
- package/es/components/atoms/Button/test.d.ts +3 -3
- package/es/components/atoms/Button/test.js +99 -99
- package/es/components/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/es/components/atoms/Checkbox/Checkbox.js +1 -1
- package/es/components/atoms/Checkbox/index.d.ts +1 -1
- package/es/components/atoms/Checkbox/index.js +1 -1
- package/es/components/atoms/Divider/Divider.d.ts +1 -1
- package/es/components/atoms/Divider/Divider.js +1 -1
- package/es/components/atoms/Divider/index.d.ts +1 -1
- package/es/components/atoms/Divider/index.js +1 -1
- package/es/components/atoms/DividerPure/DividerPure.d.ts +10 -10
- package/es/components/atoms/DividerPure/DividerPure.js +27 -27
- package/es/components/atoms/DividerPure/index.d.ts +1 -1
- package/es/components/atoms/DividerPure/index.js +1 -1
- package/es/components/atoms/DividerPure/styled.d.ts +1 -1
- package/es/components/atoms/DividerPure/styled.js +41 -41
- package/es/components/atoms/Empty/Empty.d.ts +5 -5
- package/es/components/atoms/Empty/Empty.js +2 -2
- package/es/components/atoms/Empty/index.d.ts +1 -1
- package/es/components/atoms/Empty/index.js +1 -1
- package/es/components/atoms/Flex/Flex.d.ts +2 -0
- package/es/components/atoms/Flex/Flex.js +1 -0
- package/es/components/atoms/Flex/index.d.ts +1 -0
- package/es/components/atoms/Flex/index.js +1 -0
- package/es/components/atoms/FloatButton/FloatButton.d.ts +1 -1
- package/es/components/atoms/FloatButton/FloatButton.js +1 -1
- package/es/components/atoms/FloatButton/index.d.ts +1 -1
- package/es/components/atoms/FloatButton/index.js +2 -2
- package/es/components/atoms/Grid/Grid.d.ts +3 -3
- package/es/components/atoms/Grid/Grid.js +3 -3
- package/es/components/atoms/Grid/index.d.ts +1 -1
- package/es/components/atoms/Grid/index.js +1 -1
- package/es/components/atoms/Icon/index.d.ts +10 -10
- package/es/components/atoms/Icon/index.js +36 -36
- package/es/components/atoms/Input/Input.d.ts +28 -20
- package/es/components/atoms/Input/Input.js +95 -92
- package/es/components/atoms/Input/index.d.ts +2 -2
- package/es/components/atoms/Input/index.js +1 -1
- package/es/components/atoms/Input/styled.d.ts +11 -11
- package/es/components/atoms/Input/styled.js +109 -109
- package/es/components/atoms/InputNumber/InputNumber.d.ts +6 -6
- package/es/components/atoms/InputNumber/InputNumber.js +27 -27
- package/es/components/atoms/InputNumber/index.d.ts +1 -1
- package/es/components/atoms/InputNumber/index.js +1 -1
- package/es/components/atoms/Message/Message.d.ts +1 -1
- package/es/components/atoms/Message/Message.js +1 -1
- package/es/components/atoms/Message/index.d.ts +1 -1
- package/es/components/atoms/Message/index.js +1 -1
- package/es/components/atoms/Notification/Notification.d.ts +1 -1
- package/es/components/atoms/Notification/Notification.js +1 -1
- package/es/components/atoms/Notification/index.d.ts +1 -1
- package/es/components/atoms/Notification/index.js +1 -1
- package/es/components/atoms/Pagination/Pagination.d.ts +2 -2
- package/es/components/atoms/Pagination/Pagination.js +2 -2
- package/es/components/atoms/Pagination/index.d.ts +1 -1
- package/es/components/atoms/Pagination/index.js +1 -1
- package/es/components/atoms/Popover/Popover.d.ts +4 -4
- package/es/components/atoms/Popover/Popover.js +2 -2
- package/es/components/atoms/Popover/index.d.ts +1 -1
- package/es/components/atoms/Popover/index.js +1 -1
- package/es/components/atoms/Popover/styled.d.ts +4 -4
- package/es/components/atoms/Popover/styled.js +5 -5
- package/es/components/atoms/Progress/Progress.d.ts +2 -2
- package/es/components/atoms/Progress/Progress.js +2 -2
- package/es/components/atoms/Progress/index.d.ts +1 -1
- package/es/components/atoms/Progress/index.js +1 -1
- package/es/components/atoms/Radio/Radio.d.ts +1 -1
- package/es/components/atoms/Radio/Radio.js +1 -1
- package/es/components/atoms/Radio/index.d.ts +7 -7
- package/es/components/atoms/Radio/index.js +25 -25
- package/es/components/atoms/Rate/Rate.d.ts +2 -2
- package/es/components/atoms/Rate/Rate.js +2 -2
- package/es/components/atoms/Rate/index.d.ts +1 -1
- package/es/components/atoms/Rate/index.js +1 -1
- package/es/components/atoms/RateV2/RateV2.d.ts +18 -0
- package/es/components/atoms/RateV2/RateV2.js +73 -0
- package/es/components/atoms/RateV2/index.d.ts +1 -0
- package/es/components/atoms/RateV2/index.js +1 -0
- package/es/components/atoms/RequiredLabel/index.d.ts +7 -7
- package/es/components/atoms/RequiredLabel/index.js +24 -24
- package/es/components/atoms/RequiredLabel/styled.d.ts +2 -2
- package/es/components/atoms/RequiredLabel/styled.js +10 -10
- package/es/components/atoms/ScrollBox/index.d.ts +9 -9
- package/es/components/atoms/ScrollBox/index.js +51 -51
- package/es/components/atoms/Segmented/Segmented.d.ts +2 -2
- package/es/components/atoms/Segmented/Segmented.js +2 -2
- package/es/components/atoms/Segmented/index.d.ts +1 -1
- package/es/components/atoms/Segmented/index.js +1 -1
- package/es/components/atoms/Skeleton/Skeleton.d.ts +8 -8
- package/es/components/atoms/Skeleton/Skeleton.js +2 -2
- package/es/components/atoms/Skeleton/index.d.ts +1 -1
- package/es/components/atoms/Skeleton/index.js +1 -1
- package/es/components/atoms/Slider/index.d.ts +6 -5
- package/es/components/atoms/Slider/index.js +25 -32
- package/es/components/atoms/Slider/styled.d.ts +7 -7
- package/es/components/atoms/Slider/styled.js +44 -44
- package/es/components/atoms/SliderV2/index.d.ts +6 -0
- package/es/components/atoms/SliderV2/index.js +21 -0
- package/es/components/atoms/Space/Space.d.ts +6 -6
- package/es/components/atoms/Space/Space.js +9 -9
- package/es/components/atoms/Space/index.d.ts +1 -1
- package/es/components/atoms/Space/index.js +1 -1
- package/es/components/atoms/Spin/Spin.d.ts +10 -9
- package/es/components/atoms/Spin/Spin.js +28 -28
- package/es/components/atoms/Spin/index.d.ts +1 -1
- package/es/components/atoms/Spin/index.js +1 -1
- package/es/components/atoms/Spin/styled.d.ts +1 -1
- package/es/components/atoms/Spin/styled.js +7 -7
- package/es/components/atoms/Statistic/Statistic.d.ts +1 -1
- package/es/components/atoms/Statistic/Statistic.js +2 -2
- package/es/components/atoms/Statistic/index.d.ts +1 -1
- package/es/components/atoms/Statistic/index.js +1 -1
- package/es/components/atoms/Steps/Steps.d.ts +4 -4
- package/es/components/atoms/Steps/Steps.js +2 -2
- package/es/components/atoms/Steps/index.d.ts +1 -1
- package/es/components/atoms/Steps/index.js +1 -1
- package/es/components/atoms/Switch/Switch.d.ts +2 -2
- package/es/components/atoms/Switch/Switch.js +2 -2
- package/es/components/atoms/Switch/index.d.ts +1 -1
- package/es/components/atoms/Switch/index.js +1 -1
- package/es/components/atoms/Tag/Tag.d.ts +1 -1
- package/es/components/atoms/Tag/Tag.js +1 -1
- package/es/components/atoms/Tag/index.d.ts +1 -1
- package/es/components/atoms/Tag/index.js +1 -1
- package/es/components/atoms/Text/index.d.ts +10 -10
- package/es/components/atoms/Text/index.js +27 -27
- package/es/components/atoms/Text/styled.d.ts +7 -7
- package/es/components/atoms/Text/styled.js +52 -52
- package/es/components/atoms/Timeline/Timeline.d.ts +4 -4
- package/es/components/atoms/Timeline/Timeline.js +2 -2
- package/es/components/atoms/Timeline/index.d.ts +1 -1
- package/es/components/atoms/Timeline/index.js +1 -1
- package/es/components/atoms/Tooltip/Tooltip.d.ts +1 -1
- package/es/components/atoms/Tooltip/Tooltip.js +1 -1
- package/es/components/atoms/Tooltip/index.d.ts +1 -1
- package/es/components/atoms/Tooltip/index.js +1 -1
- package/es/components/atoms/Typography/Text.d.ts +1 -1
- package/es/components/atoms/Typography/Text.js +1 -1
- package/es/components/atoms/Typography/index.d.ts +1 -1
- package/es/components/atoms/Typography/index.js +1 -1
- package/es/components/atoms/Watermark/Watermark.d.ts +2 -2
- package/es/components/atoms/Watermark/Watermark.js +2 -2
- package/es/components/atoms/Watermark/index.d.ts +1 -1
- package/es/components/atoms/Watermark/index.js +1 -1
- package/es/components/atoms/index.d.ts +36 -33
- package/es/components/atoms/index.js +35 -32
- package/es/components/common/ConfigProvider/ConfigProvider.d.ts +10 -10
- package/es/components/common/ConfigProvider/ConfigProvider.js +42 -42
- package/es/components/common/ConfigProvider/GlobalStyle.d.ts +5 -5
- package/es/components/common/ConfigProvider/GlobalStyle.js +527 -490
- package/es/components/common/ConfigProvider/index.d.ts +1 -1
- package/es/components/common/ConfigProvider/index.js +1 -1
- package/es/components/common/index.d.ts +1 -1
- package/es/components/common/index.js +1 -1
- package/es/components/icons/AccountCircle.d.ts +3 -3
- package/es/components/icons/AccountCircle.js +3 -3
- package/es/components/icons/AddShoppingCart.d.ts +3 -3
- package/es/components/icons/AddShoppingCart.js +3 -3
- package/es/components/icons/ArrowGrowIcon.d.ts +2 -1
- package/es/components/icons/ArrowGrowIcon.js +4 -4
- package/es/components/icons/AssignmentInd.d.ts +3 -3
- package/es/components/icons/AssignmentInd.js +3 -3
- package/es/components/icons/AudioRecordIcon.d.ts +2 -1
- package/es/components/icons/AudioRecordIcon.js +4 -4
- package/es/components/icons/BugIcon.d.ts +2 -1
- package/es/components/icons/BugIcon.js +4 -4
- package/es/components/icons/Call.d.ts +3 -3
- package/es/components/icons/Call.js +3 -3
- package/es/components/icons/CameraIcon.d.ts +2 -1
- package/es/components/icons/CameraIcon.js +4 -4
- package/es/components/icons/CaptureIcon.d.ts +2 -1
- package/es/components/icons/CaptureIcon.js +4 -4
- package/es/components/icons/Category.d.ts +3 -3
- package/es/components/icons/Category.js +5 -5
- package/es/components/icons/ChatBubbleOutline.d.ts +3 -3
- package/es/components/icons/ChatBubbleOutline.js +3 -3
- package/es/components/icons/CheckSlimIcon.d.ts +2 -1
- package/es/components/icons/CheckSlimIcon.js +4 -4
- package/es/components/icons/CircleNotifications.d.ts +3 -3
- package/es/components/icons/CircleNotifications.js +3 -3
- package/es/components/icons/CloseIcon.d.ts +4 -3
- package/es/components/icons/CloseIcon.js +22 -22
- package/es/components/icons/CommentIcon.d.ts +2 -1
- package/es/components/icons/CommentIcon.js +4 -4
- package/es/components/icons/ConfirmationNumber.d.ts +3 -3
- package/es/components/icons/ConfirmationNumber.js +3 -3
- package/es/components/icons/DesktopWindows.d.ts +3 -3
- package/es/components/icons/DesktopWindows.js +3 -3
- package/es/components/icons/EventIcon.d.ts +4 -3
- package/es/components/icons/EventIcon.js +18 -18
- package/es/components/icons/FactCheck.d.ts +3 -3
- package/es/components/icons/FactCheck.js +3 -3
- package/es/components/icons/FreeDrawIcon.d.ts +2 -1
- package/es/components/icons/FreeDrawIcon.js +4 -4
- package/es/components/icons/GPTIcon.d.ts +2 -1
- package/es/components/icons/GPTIcon.js +18 -18
- package/es/components/icons/GPTIconV2.d.ts +2 -1
- package/es/components/icons/GPTIconV2.js +18 -18
- package/es/components/icons/GPTIconV3.d.ts +2 -1
- package/es/components/icons/GPTIconV3.js +5 -5
- package/es/components/icons/HighlightIcon.d.ts +2 -1
- package/es/components/icons/HighlightIcon.js +4 -4
- package/es/components/icons/HightlightAlt.d.ts +3 -3
- package/es/components/icons/HightlightAlt.js +3 -3
- package/es/components/icons/HowToReg.d.ts +3 -3
- package/es/components/icons/HowToReg.js +3 -3
- package/es/components/icons/IdeaIcon.d.ts +2 -1
- package/es/components/icons/IdeaIcon.js +4 -4
- package/es/components/icons/Interactive.d.ts +3 -3
- package/es/components/icons/Interactive.js +3 -3
- package/es/components/icons/InvisibleIcon.d.ts +2 -1
- package/es/components/icons/InvisibleIcon.js +5 -5
- package/es/components/icons/List.d.ts +3 -3
- package/es/components/icons/List.js +3 -3
- package/es/components/icons/LocalMallIcon.d.ts +3 -3
- package/es/components/icons/LocalMallIcon.js +3 -3
- package/es/components/icons/MobileFriendly.d.ts +3 -3
- package/es/components/icons/MobileFriendly.js +3 -3
- package/es/components/icons/MuteIcon.d.ts +2 -1
- package/es/components/icons/MuteIcon.js +4 -4
- package/es/components/icons/NotificationsActive.d.ts +3 -3
- package/es/components/icons/NotificationsActive.js +3 -3
- package/es/components/icons/OpenUrlIcon.d.ts +2 -1
- package/es/components/icons/OpenUrlIcon.js +4 -4
- package/es/components/icons/PauseIcon.d.ts +2 -1
- package/es/components/icons/PauseIcon.js +4 -4
- package/es/components/icons/Payment.d.ts +3 -3
- package/es/components/icons/Payment.js +3 -3
- package/es/components/icons/PersonAddDisabled.d.ts +3 -3
- package/es/components/icons/PersonAddDisabled.js +4 -4
- package/es/components/icons/PhoneCallback.d.ts +3 -3
- package/es/components/icons/PhoneCallback.js +3 -3
- package/es/components/icons/PlaneIcon.d.ts +2 -1
- package/es/components/icons/PlaneIcon.js +8 -8
- package/es/components/icons/Preview.d.ts +3 -3
- package/es/components/icons/Preview.js +3 -3
- package/es/components/icons/Redeem.d.ts +3 -3
- package/es/components/icons/Redeem.js +3 -3
- package/es/components/icons/RemoveRedEye.d.ts +3 -3
- package/es/components/icons/RemoveRedEye.js +3 -3
- package/es/components/icons/RemoveShoppingCart.d.ts +3 -3
- package/es/components/icons/RemoveShoppingCart.js +3 -3
- package/es/components/icons/RequestIcon.d.ts +2 -1
- package/es/components/icons/RequestIcon.js +4 -4
- package/es/components/icons/Search.d.ts +3 -3
- package/es/components/icons/Search.js +3 -3
- package/es/components/icons/ShoppingBag.d.ts +3 -3
- package/es/components/icons/ShoppingBag.js +3 -3
- package/es/components/icons/ShoppingCart.d.ts +3 -3
- package/es/components/icons/ShoppingCart.js +3 -3
- package/es/components/icons/StopRecordIcon.d.ts +2 -1
- package/es/components/icons/StopRecordIcon.js +4 -4
- package/es/components/icons/Store.d.ts +3 -3
- package/es/components/icons/Store.js +3 -3
- package/es/components/icons/UserIcon.d.ts +2 -1
- package/es/components/icons/UserIcon.js +8 -8
- package/es/components/icons/VerticalDotsIcon.d.ts +2 -1
- package/es/components/icons/VerticalDotsIcon.js +4 -4
- package/es/components/icons/WarningIcon.d.ts +2 -1
- package/es/components/icons/WarningIcon.js +4 -4
- package/es/components/icons/Web.d.ts +3 -3
- package/es/components/icons/Web.js +3 -3
- package/es/components/icons/WebAsset.d.ts +3 -3
- package/es/components/icons/WebAsset.js +3 -3
- package/es/components/icons/index.d.ts +54 -54
- package/es/components/icons/index.js +54 -54
- package/es/components/icons/type.d.ts +3 -3
- package/es/components/icons/type.js +1 -1
- package/es/components/index.d.ts +4 -4
- package/es/components/index.js +4 -4
- package/es/components/molecules/AlignSetting/index.d.ts +19 -19
- package/es/components/molecules/AlignSetting/index.js +52 -52
- package/es/components/molecules/AlignSetting/styled.d.ts +1 -1
- package/es/components/molecules/AlignSetting/styled.js +7 -7
- package/es/components/molecules/AlignSetting/utils.d.ts +3 -3
- package/es/components/molecules/AlignSetting/utils.js +19 -19
- package/es/components/molecules/CaptureScreen/CaptureScreen.d.ts +16 -15
- package/es/components/molecules/CaptureScreen/CaptureScreen.js +834 -834
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +17 -16
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.js +80 -80
- package/es/components/molecules/CaptureScreen/components/CommentBox/index.d.ts +1 -1
- package/es/components/molecules/CaptureScreen/components/CommentBox/index.js +1 -1
- package/es/components/molecules/CaptureScreen/components/CommentBox/styled.d.ts +12 -12
- package/es/components/molecules/CaptureScreen/components/CommentBox/styled.js +136 -136
- package/es/components/molecules/CaptureScreen/components/CommentBox/types.d.ts +15 -15
- package/es/components/molecules/CaptureScreen/components/CommentBox/types.js +1 -1
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +4 -3
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.js +17 -17
- package/es/components/molecules/CaptureScreen/components/Cursor/index.d.ts +1 -1
- package/es/components/molecules/CaptureScreen/components/Cursor/index.js +1 -1
- package/es/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +7 -7
- package/es/components/molecules/CaptureScreen/components/Cursor/styled.js +79 -79
- package/es/components/molecules/CaptureScreen/components/Cursor/types.d.ts +10 -10
- package/es/components/molecules/CaptureScreen/components/Cursor/types.js +1 -1
- package/es/components/molecules/CaptureScreen/constants.d.ts +41 -41
- package/es/components/molecules/CaptureScreen/constants.js +118 -118
- package/es/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +5 -5
- package/es/components/molecules/CaptureScreen/hooks/useImageEditor.js +103 -103
- package/es/components/molecules/CaptureScreen/index.d.ts +1 -1
- package/es/components/molecules/CaptureScreen/index.js +1 -1
- package/es/components/molecules/CaptureScreen/styled.d.ts +26 -26
- package/es/components/molecules/CaptureScreen/styled.js +255 -255
- package/es/components/molecules/CaptureScreen/themes/black.d.ts +54 -54
- package/es/components/molecules/CaptureScreen/themes/black.js +64 -64
- package/es/components/molecules/CaptureScreen/themes/white.d.ts +54 -54
- package/es/components/molecules/CaptureScreen/themes/white.js +64 -64
- package/es/components/molecules/CaptureScreen/types.d.ts +108 -108
- package/es/components/molecules/CaptureScreen/types.js +1 -1
- package/es/components/molecules/CaptureScreen/utils.d.ts +13 -13
- package/es/components/molecules/CaptureScreen/utils.js +62 -62
- package/es/components/molecules/Card/Card.d.ts +1 -1
- package/es/components/molecules/Card/Card.js +2 -2
- package/es/components/molecules/Card/index.d.ts +1 -1
- package/es/components/molecules/Card/index.js +1 -1
- package/es/components/molecules/Cascader/Cascader.d.ts +1 -1
- package/es/components/molecules/Cascader/Cascader.js +1 -1
- package/es/components/molecules/Cascader/index.d.ts +1 -1
- package/es/components/molecules/Cascader/index.js +1 -1
- package/es/components/molecules/ChatBox/ChatBox.d.ts +3 -3
- package/es/components/molecules/ChatBox/ChatBox.js +188 -188
- package/es/components/molecules/ChatBox/MessageItem.d.ts +5 -5
- package/es/components/molecules/ChatBox/MessageItem.js +66 -66
- package/es/components/molecules/ChatBox/constants.d.ts +6 -6
- package/es/components/molecules/ChatBox/constants.js +51 -51
- package/es/components/molecules/ChatBox/index.d.ts +1 -1
- package/es/components/molecules/ChatBox/index.js +1 -1
- package/es/components/molecules/ChatBox/styled.d.ts +10 -10
- package/es/components/molecules/ChatBox/styled.js +280 -280
- package/es/components/molecules/ChatBox/types.d.ts +32 -32
- package/es/components/molecules/ChatBox/types.js +1 -1
- package/es/components/molecules/Collapse/Collapse.d.ts +4 -4
- package/es/components/molecules/Collapse/Collapse.js +11 -2
- package/es/components/molecules/Collapse/index.d.ts +1 -1
- package/es/components/molecules/Collapse/index.js +1 -1
- package/es/components/molecules/ColorPicker/ChromePicker/index.d.ts +1 -1
- package/es/components/molecules/ColorPicker/ChromePicker/index.js +3 -3
- package/es/components/molecules/ColorPicker/ChromePicker/styled.d.ts +1 -1
- package/es/components/molecules/ColorPicker/ChromePicker/styled.js +15 -15
- package/es/components/molecules/ColorPicker/CustomPicker/index.d.ts +2 -2
- package/es/components/molecules/ColorPicker/CustomPicker/index.js +117 -117
- package/es/components/molecules/ColorPicker/CustomPicker/styled.d.ts +9 -9
- package/es/components/molecules/ColorPicker/CustomPicker/styled.js +104 -104
- package/es/components/molecules/ColorPicker/SketchPicker/index.d.ts +10 -10
- package/es/components/molecules/ColorPicker/SketchPicker/index.js +5 -5
- package/es/components/molecules/ColorPicker/SketchPicker/styled.d.ts +1 -1
- package/es/components/molecules/ColorPicker/SketchPicker/styled.js +10 -10
- package/es/components/molecules/ColorPicker/index.d.ts +13 -13
- package/es/components/molecules/ColorPicker/index.js +95 -95
- package/es/components/molecules/ColorPicker/styled.d.ts +1 -1
- package/es/components/molecules/ColorPicker/styled.js +10 -10
- package/es/components/molecules/ColorSetting/index.d.ts +14 -14
- package/es/components/molecules/ColorSetting/index.js +97 -97
- package/es/components/molecules/ColorSetting/styled.d.ts +7 -7
- package/es/components/molecules/ColorSetting/styled.js +42 -42
- package/es/components/molecules/DatePicker/DatePicker.d.ts +8 -8
- package/es/components/molecules/DatePicker/DatePicker.js +8 -8
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +28 -28
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +428 -428
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +53 -53
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.js +74 -74
- package/es/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +3 -3
- package/es/components/molecules/DatePicker/components/AdvancedPicker/index.js +1 -1
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +7 -7
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.js +49 -49
- package/es/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +14 -14
- package/es/components/molecules/DatePicker/components/AdvancedPicker/types.js +1 -1
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +15 -15
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.js +84 -84
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +15 -15
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.js +70 -70
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +4 -4
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/constants.js +4 -4
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +2 -2
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/index.js +1 -1
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +17 -17
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/types.js +1 -1
- package/es/components/molecules/DatePicker/index.d.ts +3 -3
- package/es/components/molecules/DatePicker/index.js +1 -1
- package/es/components/molecules/Drawer/Drawer.d.ts +1 -1
- package/es/components/molecules/Drawer/Drawer.js +2 -2
- package/es/components/molecules/Drawer/index.d.ts +1 -1
- package/es/components/molecules/Drawer/index.js +1 -1
- package/es/components/molecules/Dropdown/Dropdown.d.ts +1 -1
- package/es/components/molecules/Dropdown/Dropdown.js +1 -1
- package/es/components/molecules/Dropdown/index.d.ts +1 -1
- package/es/components/molecules/Dropdown/index.js +1 -1
- package/es/components/molecules/EdgeSetting/index.d.ts +39 -39
- package/es/components/molecules/EdgeSetting/index.js +192 -192
- package/es/components/molecules/EdgeSetting/styled.d.ts +3 -3
- package/es/components/molecules/EdgeSetting/styled.js +18 -18
- package/es/components/molecules/FontFamilySelect/constants.d.ts +307 -0
- package/es/components/molecules/FontFamilySelect/constants.js +257 -0
- package/es/components/molecules/FontFamilySelect/index.d.ts +17 -0
- package/es/components/molecules/FontFamilySelect/index.js +53 -0
- package/es/components/molecules/FontSetting/constants.d.ts +3 -0
- package/es/components/molecules/FontSetting/constants.js +22 -0
- package/es/components/molecules/FontSetting/index.d.ts +24 -0
- package/es/components/molecules/FontSetting/index.js +54 -0
- package/es/components/molecules/FontSetting/types.d.ts +22 -0
- package/es/components/molecules/FontSetting/types.js +1 -0
- package/es/components/molecules/FontWeightSelect/constants.d.ts +28 -0
- package/es/components/molecules/FontWeightSelect/constants.js +11 -0
- package/es/components/molecules/FontWeightSelect/index.d.ts +9 -0
- package/es/components/molecules/FontWeightSelect/index.js +39 -0
- package/es/components/molecules/Form/Form.d.ts +1 -0
- package/es/components/molecules/Form/Form.js +1 -0
- package/es/components/molecules/Form/index.d.ts +1 -0
- package/es/components/molecules/Form/index.js +1 -0
- package/es/components/molecules/GradientSetting/index.d.ts +36 -36
- package/es/components/molecules/GradientSetting/index.js +99 -99
- package/es/components/molecules/GradientSetting/styled.d.ts +1 -1
- package/es/components/molecules/GradientSetting/styled.js +59 -59
- package/es/components/molecules/IconSelection/components/Icon/index.d.ts +10 -10
- package/es/components/molecules/IconSelection/components/Icon/index.js +28 -28
- package/es/components/molecules/IconSelection/constants.d.ts +56 -56
- package/es/components/molecules/IconSelection/constants.js +89 -89
- package/es/components/molecules/IconSelection/index.d.ts +3 -3
- package/es/components/molecules/IconSelection/index.js +143 -143
- package/es/components/molecules/IconSelection/styled.d.ts +8 -8
- package/es/components/molecules/IconSelection/styled.js +80 -80
- package/es/components/molecules/IconSelection/types.d.ts +26 -26
- package/es/components/molecules/IconSelection/types.js +2 -2
- package/es/components/molecules/IconSelection/utils.d.ts +4 -4
- package/es/components/molecules/IconSelection/utils.js +13 -13
- package/es/components/molecules/InputNumber/index.d.ts +9 -9
- package/es/components/molecules/InputNumber/index.js +81 -81
- package/es/components/molecules/InputNumberWithUnit/index.d.ts +31 -31
- package/es/components/molecules/InputNumberWithUnit/index.js +37 -37
- package/es/components/molecules/InputNumberWithUnit/styled.d.ts +1 -1
- package/es/components/molecules/InputNumberWithUnit/styled.js +20 -20
- package/es/components/molecules/InputSearch/index.d.ts +7 -7
- package/es/components/molecules/InputSearch/index.js +23 -23
- package/es/components/molecules/InputSearch/styled.d.ts +1 -1
- package/es/components/molecules/InputSearch/styled.js +48 -48
- package/es/components/molecules/Modal/Modal.d.ts +23 -23
- package/es/components/molecules/Modal/Modal.js +26 -26
- package/es/components/molecules/Modal/index.d.ts +1 -1
- package/es/components/molecules/Modal/index.js +1 -1
- package/es/components/molecules/Modal/styled.d.ts +15 -15
- package/es/components/molecules/Modal/styled.js +78 -78
- package/es/components/molecules/Popconfirm/Popconfirm.d.ts +4 -4
- package/es/components/molecules/Popconfirm/Popconfirm.js +2 -2
- package/es/components/molecules/Popconfirm/index.d.ts +1 -1
- package/es/components/molecules/Popconfirm/index.js +1 -1
- package/es/components/molecules/PopupDraggable/PopupDraggable.d.ts +6 -6
- package/es/components/molecules/PopupDraggable/PopupDraggable.js +52 -52
- package/es/components/molecules/PopupDraggable/index.d.ts +1 -1
- package/es/components/molecules/PopupDraggable/index.js +1 -1
- package/es/components/molecules/PopupDraggable/styled.d.ts +5 -5
- package/es/components/molecules/PopupDraggable/styled.js +52 -52
- package/es/components/molecules/PopupDraggable/types.d.ts +15 -15
- package/es/components/molecules/PopupDraggable/types.js +1 -1
- package/es/components/molecules/RadioGroup/index.d.ts +7 -7
- package/es/components/molecules/RadioGroup/index.js +23 -23
- package/es/components/molecules/RadioGroup/styled.d.ts +3 -3
- package/es/components/molecules/RadioGroup/styled.js +14 -14
- package/es/components/molecules/ResizeGrid/ResizeGrid.d.ts +3 -0
- package/es/components/molecules/ResizeGrid/ResizeGrid.js +353 -0
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.d.ts +3 -0
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.js +67 -0
- package/es/components/molecules/ResizeGrid/components/Cell/index.d.ts +1 -0
- package/es/components/molecules/ResizeGrid/components/Cell/index.js +1 -0
- package/es/components/molecules/ResizeGrid/components/Cell/styled.d.ts +3 -0
- package/es/components/molecules/ResizeGrid/components/Cell/styled.js +62 -0
- package/es/components/molecules/ResizeGrid/constant.d.ts +34 -0
- package/es/components/molecules/ResizeGrid/constant.js +108 -0
- package/es/components/molecules/ResizeGrid/index.d.ts +2 -0
- package/es/components/molecules/ResizeGrid/index.js +1 -0
- package/es/components/molecules/ResizeGrid/styled.d.ts +3 -0
- package/es/components/molecules/ResizeGrid/styled.js +20 -0
- package/es/components/molecules/ResizeGrid/types.d.ts +128 -0
- package/es/components/molecules/ResizeGrid/types.js +1 -0
- package/es/components/molecules/Result/Result.d.ts +1 -1
- package/es/components/molecules/Result/Result.js +2 -2
- package/es/components/molecules/Result/index.d.ts +1 -1
- package/es/components/molecules/Result/index.js +1 -1
- package/es/components/molecules/Select/Select.d.ts +17 -14
- package/es/components/molecules/Select/Select.js +50 -29
- package/es/components/molecules/Select/Test.d.ts +3 -2
- package/es/components/molecules/Select/Test.js +22 -22
- package/es/components/molecules/Select/index.d.ts +2 -2
- package/es/components/molecules/Select/index.js +1 -1
- package/es/components/molecules/Select/styled.d.ts +4 -4
- package/es/components/molecules/Select/styled.js +41 -41
- package/es/components/molecules/SettingWrapper/index.d.ts +12 -13
- package/es/components/molecules/SettingWrapper/index.js +20 -20
- package/es/components/molecules/SettingWrapper/styled.d.ts +5 -5
- package/es/components/molecules/SettingWrapper/styled.js +17 -17
- package/es/components/molecules/SettingWrapperPopover/index.d.ts +16 -0
- package/es/components/molecules/SettingWrapperPopover/index.js +17 -0
- package/es/components/molecules/SliderWithInputNumber/index.d.ts +11 -11
- package/es/components/molecules/SliderWithInputNumber/index.js +62 -62
- package/es/components/molecules/SliderWithInputNumber/styled.d.ts +1 -1
- package/es/components/molecules/SliderWithInputNumber/styled.js +8 -8
- package/es/components/molecules/Tabs/Tabs.d.ts +1 -1
- package/es/components/molecules/Tabs/Tabs.js +1 -1
- package/es/components/molecules/Tabs/index.d.ts +1 -1
- package/es/components/molecules/Tabs/index.js +1 -1
- package/es/components/molecules/TextDecorationSelect/constants.d.ts +19 -0
- package/es/components/molecules/TextDecorationSelect/constants.js +26 -0
- package/es/components/molecules/TextDecorationSelect/index.d.ts +15 -0
- package/es/components/molecules/TextDecorationSelect/index.js +45 -0
- package/es/components/molecules/TextTransformSelect/constants.d.ts +13 -0
- package/es/components/molecules/TextTransformSelect/constants.js +19 -0
- package/es/components/molecules/TextTransformSelect/index.d.ts +9 -0
- package/es/components/molecules/TextTransformSelect/index.js +39 -0
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +11 -11
- package/es/components/molecules/TreeSelect/TreeSelect.js +2 -2
- package/es/components/molecules/TreeSelect/index.d.ts +1 -1
- package/es/components/molecules/TreeSelect/index.js +1 -1
- package/es/components/molecules/UploadImage/MediaIcon.d.ts +3 -2
- package/es/components/molecules/UploadImage/MediaIcon.js +8 -8
- package/es/components/molecules/UploadImage/index.d.ts +33 -33
- package/es/components/molecules/UploadImage/index.js +366 -366
- package/es/components/molecules/UploadImage/styled.d.ts +13 -13
- package/es/components/molecules/UploadImage/styled.js +134 -134
- package/es/components/molecules/index.d.ts +40 -30
- package/es/components/molecules/index.js +35 -27
- package/es/components/organism/Help/Help.d.ts +5 -5
- package/es/components/organism/Help/Help.js +1005 -1005
- package/es/components/organism/Help/constants.d.ts +140 -140
- package/es/components/organism/Help/constants.js +1653 -1653
- package/es/components/organism/Help/index.d.ts +1 -1
- package/es/components/organism/Help/index.js +1 -1
- package/es/components/organism/Help/styled.d.ts +71 -71
- package/es/components/organism/Help/styled.js +264 -264
- package/es/components/organism/Help/types.d.ts +67 -67
- package/es/components/organism/Help/types.js +1 -1
- package/es/components/organism/Help/utils.d.ts +15 -15
- package/es/components/organism/Help/utils.js +82 -82
- package/es/components/organism/PositionSetting/config.d.ts +10 -10
- package/es/components/organism/PositionSetting/config.js +10 -10
- package/es/components/organism/PositionSetting/index.d.ts +15 -15
- package/es/components/organism/PositionSetting/index.js +62 -62
- package/es/components/organism/PositionSetting/styled.d.ts +1 -1
- package/es/components/organism/PositionSetting/styled.js +3 -3
- package/es/components/organism/PositionSetting/types.d.ts +10 -10
- package/es/components/organism/PositionSetting/types.js +1 -1
- package/es/components/organism/Table/CrossTabTable/CrossTabTable.d.ts +18 -18
- package/es/components/organism/Table/CrossTabTable/CrossTabTable.js +305 -305
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.d.ts +11 -11
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.js +22 -22
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/index.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/index.js +1 -1
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/styled.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/styled.js +13 -13
- package/es/components/organism/Table/CrossTabTable/constants.d.ts +75 -75
- package/es/components/organism/Table/CrossTabTable/constants.js +1525 -1525
- package/es/components/organism/Table/CrossTabTable/index.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/index.js +1 -1
- package/es/components/organism/Table/CrossTabTable/styled.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/styled.js +13 -13
- package/es/components/organism/Table/CrossTabTable/types.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/types.js +1 -1
- package/es/components/organism/Table/CrossTabTable/utils.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/utils.js +1 -1
- package/es/components/organism/Table/ExplorePivotTable/ExplorePivotTable.d.ts +11 -11
- package/es/components/organism/Table/ExplorePivotTable/ExplorePivotTable.js +51 -51
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.d.ts +12 -12
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.js +41 -41
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/index.d.ts +1 -1
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/index.js +1 -1
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.d.ts +3 -3
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.js +21 -21
- package/es/components/organism/Table/ExplorePivotTable/constants.d.ts +4 -4
- package/es/components/organism/Table/ExplorePivotTable/constants.js +84 -84
- package/es/components/organism/Table/ExplorePivotTable/index.d.ts +2 -2
- package/es/components/organism/Table/ExplorePivotTable/index.js +2 -2
- package/es/components/organism/Table/ExplorePivotTable/styled.d.ts +12 -12
- package/es/components/organism/Table/ExplorePivotTable/styled.js +15 -15
- package/es/components/organism/Table/ExplorePivotTable/types.d.ts +17 -17
- package/es/components/organism/Table/ExplorePivotTable/types.js +1 -1
- package/es/components/organism/Table/ExplorePivotTable/utils.d.ts +4 -4
- package/es/components/organism/Table/ExplorePivotTable/utils.js +154 -154
- package/es/components/organism/Table/Table.d.ts +1 -1
- package/es/components/organism/Table/Table.js +1 -1
- package/es/components/organism/Table/index.d.ts +2 -2
- package/es/components/organism/Table/index.js +2 -2
- package/es/components/organism/index.d.ts +3 -3
- package/es/components/organism/index.js +3 -3
- package/es/constants/gradientSetting.d.ts +83 -83
- package/es/constants/gradientSetting.js +86 -86
- package/es/constants/index.d.ts +3 -3
- package/es/constants/index.js +3 -3
- package/es/constants/keyCode.d.ts +387 -387
- package/es/constants/keyCode.js +394 -394
- package/es/constants/storybook.d.ts +12 -11
- package/es/constants/storybook.js +24 -24
- package/es/constants/theme.d.ts +12 -12
- package/es/constants/theme.js +168 -146
- package/es/hooks/index.d.ts +2 -2
- package/es/hooks/index.js +21 -21
- package/es/hooks/useDebounce.d.ts +3 -3
- package/es/hooks/useDebounce.js +15 -15
- package/es/hooks/useDeepCompareEffect.d.ts +1 -0
- package/es/hooks/useDeepCompareEffect.js +21 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locales/en/translation.json +66 -66
- package/es/locales/i18n.d.ts +140 -140
- package/es/locales/i18n.js +38 -38
- package/es/locales/translations.d.ts +70 -70
- package/es/locales/translations.js +35 -35
- package/es/locales/types.d.ts +15 -15
- package/es/locales/types.js +1 -1
- package/es/locales/vi/translation.json +66 -66
- package/es/models/SavedImage.d.ts +32 -32
- package/es/models/SavedImage.js +26 -26
- package/es/models/Upload.d.ts +32 -32
- package/es/models/Upload.js +21 -21
- package/es/models/model.d.ts +8 -8
- package/es/models/model.js +5 -5
- package/es/services/MediaTemplateDesign/UploadFile/index.d.ts +6 -6
- package/es/services/MediaTemplateDesign/UploadFile/index.js +75 -75
- package/es/services/Ticket.d.ts +67 -67
- package/es/services/Ticket.js +73 -73
- package/es/services/constants.d.ts +20 -20
- package/es/services/constants.js +21 -21
- package/es/services/index.d.ts +9 -9
- package/es/services/index.js +64 -64
- package/es/test.d.ts +14 -13
- package/es/test.js +162 -155
- package/es/types/index.d.ts +6 -6
- package/es/types/index.js +1 -1
- package/es/utils/color.d.ts +10 -10
- package/es/utils/color.js +61 -61
- package/es/utils/common.d.ts +53 -53
- package/es/utils/common.js +355 -355
- package/es/utils/handleError.d.ts +2 -2
- package/es/utils/handleError.js +6 -6
- package/es/utils/index.d.ts +3 -3
- package/es/utils/index.js +3 -3
- package/es/utils/loadable.d.ts +7 -7
- package/es/utils/loadable.js +10 -10
- package/es/utils/web.d.ts +10 -10
- package/es/utils/web.js +26 -26
- package/package.json +183 -182
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
// Libraries
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
// Components
|
|
4
|
-
import { ChromePicker } from 'react-color';
|
|
5
|
-
export const StyledChromePicker = styled(ChromePicker) `
|
|
6
|
-
padding: 0px !important;
|
|
7
|
-
--tw-shadow: 0 0 #0000 !important;
|
|
8
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
9
|
-
var(--tw-shadow) !important;
|
|
10
|
-
|
|
11
|
-
div + div {
|
|
12
|
-
padding-left: 0px !important;
|
|
13
|
-
padding-right: 0px !important;
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
1
|
+
// Libraries
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
// Components
|
|
4
|
+
import { ChromePicker } from 'react-color';
|
|
5
|
+
export const StyledChromePicker = styled(ChromePicker) `
|
|
6
|
+
padding: 0px !important;
|
|
7
|
+
--tw-shadow: 0 0 #0000 !important;
|
|
8
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
9
|
+
var(--tw-shadow) !important;
|
|
10
|
+
|
|
11
|
+
div + div {
|
|
12
|
+
padding-left: 0px !important;
|
|
13
|
+
padding-right: 0px !important;
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: any;
|
|
2
|
+
export default _default;
|
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
/* eslint-disable react/destructuring-assignment */
|
|
13
|
-
// Libraries
|
|
14
|
-
import React, { useState } from 'react';
|
|
15
|
-
import { CustomPicker as CustomPickerHOC } from 'react-color';
|
|
16
|
-
import { Saturation, Hue, Alpha, EditableInput } from 'react-color/lib/components/common';
|
|
17
|
-
// Atoms
|
|
18
|
-
import { Button, Divider, Icon, Text } from '@antscorp/antsomi-ui/es/components/atoms';
|
|
19
|
-
// Styled
|
|
20
|
-
import { CustomPickerWrapper, HuePointer, PreviewColorPoint, SaturationPointer, EditableInputWrapper, InputNumberWrapper, } from './styled';
|
|
21
|
-
// Utils
|
|
22
|
-
import { handleError } from '@antscorp/antsomi-ui/es/utils';
|
|
23
|
-
const PATH = '@antscorp/antsomi-ui/es/components/molecules/ColorPicker/CustomPicker/index.tsx';
|
|
24
|
-
const rgbaStyling = {
|
|
25
|
-
display: 'flex',
|
|
26
|
-
position: 'relative',
|
|
27
|
-
flexDirection: 'column',
|
|
28
|
-
alignItems: 'center',
|
|
29
|
-
};
|
|
30
|
-
const rgbaInputStyling = {
|
|
31
|
-
display: 'flex',
|
|
32
|
-
justifyContent: 'space-between',
|
|
33
|
-
alignItems: 'center',
|
|
34
|
-
width: '100%',
|
|
35
|
-
marginLeft: 5,
|
|
36
|
-
marginRight: 5,
|
|
37
|
-
gap: '8px',
|
|
38
|
-
};
|
|
39
|
-
const wrapperStyling = {
|
|
40
|
-
display: 'flex',
|
|
41
|
-
alignItems: 'center',
|
|
42
|
-
// margin: '15px 8px 0',
|
|
43
|
-
marginTop: '15px',
|
|
44
|
-
width: '100%',
|
|
45
|
-
};
|
|
46
|
-
const styleContainAlpha = {
|
|
47
|
-
display: 'flex',
|
|
48
|
-
flexDirection: 'column',
|
|
49
|
-
marginLeft: 10,
|
|
50
|
-
// marginRight: 10,
|
|
51
|
-
width: '100%',
|
|
52
|
-
};
|
|
53
|
-
const CustomPicker = props => {
|
|
54
|
-
var _a, _b, _c, _d;
|
|
55
|
-
// Props
|
|
56
|
-
const { className, style, children, onChange, onChangeComplete, presetColors } = props, restOf = __rest(props, ["className", "style", "children", "onChange", "onChangeComplete", "presetColors"]);
|
|
57
|
-
// State
|
|
58
|
-
const [isShowRgbaInput, setShowRgbaInput] = useState(true);
|
|
59
|
-
const onChangeRgbaColor = (key, value) => {
|
|
60
|
-
try {
|
|
61
|
-
const draftRgb = Object.assign(Object.assign({}, props.rgb), { [key]: value });
|
|
62
|
-
onChange(`rgba(${draftRgb.r}, ${draftRgb.g}, ${draftRgb.b}, ${draftRgb.a})`);
|
|
63
|
-
}
|
|
64
|
-
catch (error) {
|
|
65
|
-
handleError(error, {
|
|
66
|
-
path: PATH,
|
|
67
|
-
name: 'onChangeRgbaColor',
|
|
68
|
-
args: {},
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
return (React.createElement(CustomPickerWrapper, { className: className, style: style },
|
|
73
|
-
React.createElement("div", { style: {
|
|
74
|
-
position: 'relative',
|
|
75
|
-
overflow: 'hidden',
|
|
76
|
-
width: '100%',
|
|
77
|
-
height: 143,
|
|
78
|
-
} },
|
|
79
|
-
React.createElement(Saturation, Object.assign({}, restOf, { pointer: SaturationPointer, onChange: onChange }))),
|
|
80
|
-
React.createElement("div", { style: wrapperStyling },
|
|
81
|
-
React.createElement(PreviewColorPoint, { "$color": props.color }),
|
|
82
|
-
React.createElement("div", { style: styleContainAlpha },
|
|
83
|
-
React.createElement("div", { style: { position: 'relative', width: '100%', height: 12 } },
|
|
84
|
-
React.createElement(Hue, Object.assign({}, restOf, { pointer: HuePointer, onChange: onChange }))),
|
|
85
|
-
React.createElement("div", { style: {
|
|
86
|
-
position: 'relative',
|
|
87
|
-
width: '100%',
|
|
88
|
-
height: 12,
|
|
89
|
-
marginTop: 10,
|
|
90
|
-
} },
|
|
91
|
-
React.createElement(Alpha, Object.assign({}, restOf, { pointer: HuePointer, onChange: onChange }))))),
|
|
92
|
-
React.createElement("div", { style: Object.assign(Object.assign({}, wrapperStyling), { paddingBottom: 15 }) },
|
|
93
|
-
React.createElement(Icon, { type: "icon-ants-unfold-more", style: { cursor: 'pointer', fontSize: '20px' }, onClick: () => setShowRgbaInput(!isShowRgbaInput) }),
|
|
94
|
-
isShowRgbaInput ? (React.createElement("div", { style: rgbaInputStyling },
|
|
95
|
-
React.createElement("div", { style: rgbaStyling },
|
|
96
|
-
React.createElement(InputNumberWrapper, { value: (_a = props.rgb) === null || _a === void 0 ? void 0 : _a.r, controls: false, onChange: value => onChangeRgbaColor('r', value) }),
|
|
97
|
-
React.createElement(Text, { style: { position: 'absolute', bottom: '-20px' } }, "R")),
|
|
98
|
-
React.createElement("div", { style: rgbaStyling },
|
|
99
|
-
React.createElement(InputNumberWrapper, { value: (_b = props.rgb) === null || _b === void 0 ? void 0 : _b.g, controls: false, onChange: value => onChangeRgbaColor('g', value) }),
|
|
100
|
-
React.createElement(Text, { style: { position: 'absolute', bottom: '-20px' } }, "G")),
|
|
101
|
-
React.createElement("div", { style: rgbaStyling },
|
|
102
|
-
React.createElement(InputNumberWrapper, { value: (_c = props.rgb) === null || _c === void 0 ? void 0 : _c.b, controls: false, onChange: value => onChangeRgbaColor('b', value) }),
|
|
103
|
-
React.createElement(Text, { style: { position: 'absolute', bottom: '-20px' } }, "B")),
|
|
104
|
-
React.createElement("div", { style: rgbaStyling },
|
|
105
|
-
React.createElement(InputNumberWrapper, { value: (_d = props.rgb) === null || _d === void 0 ? void 0 : _d.a, controls: false, onChange: value => onChangeRgbaColor('a', value) }),
|
|
106
|
-
React.createElement(Text, { style: { position: 'absolute', bottom: '-20px' } }, "A")))) : (React.createElement(EditableInputWrapper, null,
|
|
107
|
-
React.createElement(EditableInput, { value: props.color, onChange: onChange }),
|
|
108
|
-
React.createElement(Text, { style: { position: 'absolute', bottom: '-20px' } }, "HEX"))),
|
|
109
|
-
React.createElement(Button, { onClick: () => {
|
|
110
|
-
setShowRgbaInput(true);
|
|
111
|
-
onChange('rgba(0, 0, 0, 0)');
|
|
112
|
-
} }, "Clear")),
|
|
113
|
-
presetColors ? (React.createElement("div", null,
|
|
114
|
-
React.createElement(Divider, null),
|
|
115
|
-
presetColors)) : null));
|
|
116
|
-
};
|
|
117
|
-
export default CustomPickerHOC(CustomPicker);
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
/* eslint-disable react/destructuring-assignment */
|
|
13
|
+
// Libraries
|
|
14
|
+
import React, { useState } from 'react';
|
|
15
|
+
import { CustomPicker as CustomPickerHOC } from 'react-color';
|
|
16
|
+
import { Saturation, Hue, Alpha, EditableInput } from 'react-color/lib/components/common';
|
|
17
|
+
// Atoms
|
|
18
|
+
import { Button, Divider, Icon, Text } from '@antscorp/antsomi-ui/es/components/atoms';
|
|
19
|
+
// Styled
|
|
20
|
+
import { CustomPickerWrapper, HuePointer, PreviewColorPoint, SaturationPointer, EditableInputWrapper, InputNumberWrapper, } from './styled';
|
|
21
|
+
// Utils
|
|
22
|
+
import { handleError } from '@antscorp/antsomi-ui/es/utils';
|
|
23
|
+
const PATH = '@antscorp/antsomi-ui/es/components/molecules/ColorPicker/CustomPicker/index.tsx';
|
|
24
|
+
const rgbaStyling = {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
position: 'relative',
|
|
27
|
+
flexDirection: 'column',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
};
|
|
30
|
+
const rgbaInputStyling = {
|
|
31
|
+
display: 'flex',
|
|
32
|
+
justifyContent: 'space-between',
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
width: '100%',
|
|
35
|
+
marginLeft: 5,
|
|
36
|
+
marginRight: 5,
|
|
37
|
+
gap: '8px',
|
|
38
|
+
};
|
|
39
|
+
const wrapperStyling = {
|
|
40
|
+
display: 'flex',
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
// margin: '15px 8px 0',
|
|
43
|
+
marginTop: '15px',
|
|
44
|
+
width: '100%',
|
|
45
|
+
};
|
|
46
|
+
const styleContainAlpha = {
|
|
47
|
+
display: 'flex',
|
|
48
|
+
flexDirection: 'column',
|
|
49
|
+
marginLeft: 10,
|
|
50
|
+
// marginRight: 10,
|
|
51
|
+
width: '100%',
|
|
52
|
+
};
|
|
53
|
+
const CustomPicker = props => {
|
|
54
|
+
var _a, _b, _c, _d;
|
|
55
|
+
// Props
|
|
56
|
+
const { className, style, children, onChange, onChangeComplete, presetColors } = props, restOf = __rest(props, ["className", "style", "children", "onChange", "onChangeComplete", "presetColors"]);
|
|
57
|
+
// State
|
|
58
|
+
const [isShowRgbaInput, setShowRgbaInput] = useState(true);
|
|
59
|
+
const onChangeRgbaColor = (key, value) => {
|
|
60
|
+
try {
|
|
61
|
+
const draftRgb = Object.assign(Object.assign({}, props.rgb), { [key]: value });
|
|
62
|
+
onChange(`rgba(${draftRgb.r}, ${draftRgb.g}, ${draftRgb.b}, ${draftRgb.a})`);
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
handleError(error, {
|
|
66
|
+
path: PATH,
|
|
67
|
+
name: 'onChangeRgbaColor',
|
|
68
|
+
args: {},
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
return (React.createElement(CustomPickerWrapper, { className: className, style: style },
|
|
73
|
+
React.createElement("div", { style: {
|
|
74
|
+
position: 'relative',
|
|
75
|
+
overflow: 'hidden',
|
|
76
|
+
width: '100%',
|
|
77
|
+
height: 143,
|
|
78
|
+
} },
|
|
79
|
+
React.createElement(Saturation, Object.assign({}, restOf, { pointer: SaturationPointer, onChange: onChange }))),
|
|
80
|
+
React.createElement("div", { style: wrapperStyling },
|
|
81
|
+
React.createElement(PreviewColorPoint, { "$color": props.color }),
|
|
82
|
+
React.createElement("div", { style: styleContainAlpha },
|
|
83
|
+
React.createElement("div", { style: { position: 'relative', width: '100%', height: 12 } },
|
|
84
|
+
React.createElement(Hue, Object.assign({}, restOf, { pointer: HuePointer, onChange: onChange }))),
|
|
85
|
+
React.createElement("div", { style: {
|
|
86
|
+
position: 'relative',
|
|
87
|
+
width: '100%',
|
|
88
|
+
height: 12,
|
|
89
|
+
marginTop: 10,
|
|
90
|
+
} },
|
|
91
|
+
React.createElement(Alpha, Object.assign({}, restOf, { pointer: HuePointer, onChange: onChange }))))),
|
|
92
|
+
React.createElement("div", { style: Object.assign(Object.assign({}, wrapperStyling), { paddingBottom: 15 }) },
|
|
93
|
+
React.createElement(Icon, { type: "icon-ants-unfold-more", style: { cursor: 'pointer', fontSize: '20px' }, onClick: () => setShowRgbaInput(!isShowRgbaInput) }),
|
|
94
|
+
isShowRgbaInput ? (React.createElement("div", { style: rgbaInputStyling },
|
|
95
|
+
React.createElement("div", { style: rgbaStyling },
|
|
96
|
+
React.createElement(InputNumberWrapper, { value: (_a = props.rgb) === null || _a === void 0 ? void 0 : _a.r, controls: false, onChange: value => onChangeRgbaColor('r', value) }),
|
|
97
|
+
React.createElement(Text, { style: { position: 'absolute', bottom: '-20px' } }, "R")),
|
|
98
|
+
React.createElement("div", { style: rgbaStyling },
|
|
99
|
+
React.createElement(InputNumberWrapper, { value: (_b = props.rgb) === null || _b === void 0 ? void 0 : _b.g, controls: false, onChange: value => onChangeRgbaColor('g', value) }),
|
|
100
|
+
React.createElement(Text, { style: { position: 'absolute', bottom: '-20px' } }, "G")),
|
|
101
|
+
React.createElement("div", { style: rgbaStyling },
|
|
102
|
+
React.createElement(InputNumberWrapper, { value: (_c = props.rgb) === null || _c === void 0 ? void 0 : _c.b, controls: false, onChange: value => onChangeRgbaColor('b', value) }),
|
|
103
|
+
React.createElement(Text, { style: { position: 'absolute', bottom: '-20px' } }, "B")),
|
|
104
|
+
React.createElement("div", { style: rgbaStyling },
|
|
105
|
+
React.createElement(InputNumberWrapper, { value: (_d = props.rgb) === null || _d === void 0 ? void 0 : _d.a, controls: false, onChange: value => onChangeRgbaColor('a', value) }),
|
|
106
|
+
React.createElement(Text, { style: { position: 'absolute', bottom: '-20px' } }, "A")))) : (React.createElement(EditableInputWrapper, null,
|
|
107
|
+
React.createElement(EditableInput, { value: props.color, onChange: onChange }),
|
|
108
|
+
React.createElement(Text, { style: { position: 'absolute', bottom: '-20px' } }, "HEX"))),
|
|
109
|
+
React.createElement(Button, { onClick: () => {
|
|
110
|
+
setShowRgbaInput(true);
|
|
111
|
+
onChange('rgba(0, 0, 0, 0)');
|
|
112
|
+
} }, "Clear")),
|
|
113
|
+
presetColors ? (React.createElement("div", null,
|
|
114
|
+
React.createElement(Divider, null),
|
|
115
|
+
presetColors)) : null));
|
|
116
|
+
};
|
|
117
|
+
export default CustomPickerHOC(CustomPicker);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const CustomPickerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const SaturationPointer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const HuePointer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const PreviewColorPoint: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
-
$color?: string | undefined;
|
|
7
|
-
}, never>;
|
|
8
|
-
export declare const EditableInputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
-
export declare const InputNumberWrapper: import("styled-components").StyledComponent<import("react").FC<import("../../InputNumber").InputNumberProps>, any, {}, never>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CustomPickerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const SaturationPointer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const HuePointer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const PreviewColorPoint: import("styled-components").StyledComponent<"div", any, {
|
|
6
|
+
$color?: string | undefined;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const EditableInputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const InputNumberWrapper: import("styled-components").StyledComponent<import("react").FC<import("../../InputNumber").InputNumberProps>, any, {}, never>;
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
var _a, _b, _c, _d, _e, _f;
|
|
2
|
-
// Libraries
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
// Components
|
|
5
|
-
import { InputNumber } from '../../InputNumber';
|
|
6
|
-
// Svg
|
|
7
|
-
import TransparentSvg from '@antscorp/antsomi-ui/es/assets/svg/transparent.svg';
|
|
8
|
-
// Constants
|
|
9
|
-
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
10
|
-
export const CustomPickerWrapper = styled.div `
|
|
11
|
-
position: relative;
|
|
12
|
-
width: 260px;
|
|
13
|
-
`;
|
|
14
|
-
export const SaturationPointer = styled.div `
|
|
15
|
-
width: 20px;
|
|
16
|
-
height: 20px;
|
|
17
|
-
border-radius: 20px;
|
|
18
|
-
background: rgba(255, 255, 255, 0.2);
|
|
19
|
-
border-width: 1px;
|
|
20
|
-
--tw-border-opacity: 1;
|
|
21
|
-
border-color: rgb(255 255 255 / var(--tw-border-opacity));
|
|
22
|
-
box-shadow: rgb(0 0 0 / 25%) 0px 2px 4px;
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
transform: translate(-10px, -10px);
|
|
25
|
-
`;
|
|
26
|
-
export const HuePointer = styled.div `
|
|
27
|
-
width: 14px;
|
|
28
|
-
height: 14px;
|
|
29
|
-
border-radius: 6px;
|
|
30
|
-
background-color: rgb(248, 248, 248);
|
|
31
|
-
transform: translate(-6px, -1px);
|
|
32
|
-
box-shadow: rgb(0 0 0 / 37%) 0px 1px 4px 0px;
|
|
33
|
-
`;
|
|
34
|
-
export const PreviewColorPoint = styled.div `
|
|
35
|
-
width: 36px;
|
|
36
|
-
height: 36px;
|
|
37
|
-
background: ${({ $color }) => `linear-gradient(${$color ? `${$color}, ${$color}` : '#fff, #fff'}), url(${TransparentSvg}) repeat`};
|
|
38
|
-
border-radius: 9999px;
|
|
39
|
-
flex-shrink: 0;
|
|
40
|
-
`;
|
|
41
|
-
export const EditableInputWrapper = styled.div `
|
|
42
|
-
position: relative;
|
|
43
|
-
width: 100%;
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-direction: column;
|
|
46
|
-
align-items: center;
|
|
47
|
-
|
|
48
|
-
input {
|
|
49
|
-
height: 30px;
|
|
50
|
-
width: 100%;
|
|
51
|
-
border-style: none;
|
|
52
|
-
border-radius: 0px;
|
|
53
|
-
padding-left: 5px;
|
|
54
|
-
padding-right: 5px;
|
|
55
|
-
font-family: Roboto;
|
|
56
|
-
font-size: ${(_a = THEME.token) === null || _a === void 0 ? void 0 : _a.fontSize}px;
|
|
57
|
-
--tw-shadow: 0 1px 0 0 #e0e0e0;
|
|
58
|
-
--tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color);
|
|
59
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
60
|
-
var(--tw-shadow);
|
|
61
|
-
|
|
62
|
-
&::placeholder {
|
|
63
|
-
color: ${(_b = THEME.token) === null || _b === void 0 ? void 0 : _b.accent5};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:hover {
|
|
67
|
-
background-color: ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.blue0};
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
transition-property: all;
|
|
71
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
72
|
-
transition-duration: 150ms;
|
|
73
|
-
outline-style: none !important;
|
|
74
|
-
|
|
75
|
-
&:active,
|
|
76
|
-
&:focus {
|
|
77
|
-
background-color: ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.blue0};
|
|
78
|
-
--tw-shadow: 0 1px 0 0 #194e8d;
|
|
79
|
-
--tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color);
|
|
80
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
81
|
-
var(--tw-shadow);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&:disabled {
|
|
85
|
-
background-color: ${(_e = THEME === null || THEME === void 0 ? void 0 : THEME.token) === null || _e === void 0 ? void 0 : _e.accent1};
|
|
86
|
-
color: ${(_f = THEME.token) === null || _f === void 0 ? void 0 : _f.accent5};
|
|
87
|
-
--tw-shadow: 0 1px 0 0 #e0e0e0;
|
|
88
|
-
--tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color);
|
|
89
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
90
|
-
var(--tw-shadow);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
`;
|
|
94
|
-
export const InputNumberWrapper = styled(InputNumber) `
|
|
95
|
-
& > div {
|
|
96
|
-
width: unset !important;
|
|
97
|
-
padding: 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
input {
|
|
101
|
-
padding: 0 6px !important;
|
|
102
|
-
text-align: center !important;
|
|
103
|
-
}
|
|
104
|
-
`;
|
|
1
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2
|
+
// Libraries
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
// Components
|
|
5
|
+
import { InputNumber } from '../../InputNumber';
|
|
6
|
+
// Svg
|
|
7
|
+
import TransparentSvg from '@antscorp/antsomi-ui/es/assets/svg/transparent.svg';
|
|
8
|
+
// Constants
|
|
9
|
+
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
10
|
+
export const CustomPickerWrapper = styled.div `
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 260px;
|
|
13
|
+
`;
|
|
14
|
+
export const SaturationPointer = styled.div `
|
|
15
|
+
width: 20px;
|
|
16
|
+
height: 20px;
|
|
17
|
+
border-radius: 20px;
|
|
18
|
+
background: rgba(255, 255, 255, 0.2);
|
|
19
|
+
border-width: 1px;
|
|
20
|
+
--tw-border-opacity: 1;
|
|
21
|
+
border-color: rgb(255 255 255 / var(--tw-border-opacity));
|
|
22
|
+
box-shadow: rgb(0 0 0 / 25%) 0px 2px 4px;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
transform: translate(-10px, -10px);
|
|
25
|
+
`;
|
|
26
|
+
export const HuePointer = styled.div `
|
|
27
|
+
width: 14px;
|
|
28
|
+
height: 14px;
|
|
29
|
+
border-radius: 6px;
|
|
30
|
+
background-color: rgb(248, 248, 248);
|
|
31
|
+
transform: translate(-6px, -1px);
|
|
32
|
+
box-shadow: rgb(0 0 0 / 37%) 0px 1px 4px 0px;
|
|
33
|
+
`;
|
|
34
|
+
export const PreviewColorPoint = styled.div `
|
|
35
|
+
width: 36px;
|
|
36
|
+
height: 36px;
|
|
37
|
+
background: ${({ $color }) => `linear-gradient(${$color ? `${$color}, ${$color}` : '#fff, #fff'}), url(${TransparentSvg}) repeat`};
|
|
38
|
+
border-radius: 9999px;
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
`;
|
|
41
|
+
export const EditableInputWrapper = styled.div `
|
|
42
|
+
position: relative;
|
|
43
|
+
width: 100%;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
align-items: center;
|
|
47
|
+
|
|
48
|
+
input {
|
|
49
|
+
height: 30px;
|
|
50
|
+
width: 100%;
|
|
51
|
+
border-style: none;
|
|
52
|
+
border-radius: 0px;
|
|
53
|
+
padding-left: 5px;
|
|
54
|
+
padding-right: 5px;
|
|
55
|
+
font-family: Roboto;
|
|
56
|
+
font-size: ${(_a = THEME.token) === null || _a === void 0 ? void 0 : _a.fontSize}px;
|
|
57
|
+
--tw-shadow: 0 1px 0 0 #e0e0e0;
|
|
58
|
+
--tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color);
|
|
59
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
60
|
+
var(--tw-shadow);
|
|
61
|
+
|
|
62
|
+
&::placeholder {
|
|
63
|
+
color: ${(_b = THEME.token) === null || _b === void 0 ? void 0 : _b.accent5};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
background-color: ${(_c = THEME.token) === null || _c === void 0 ? void 0 : _c.blue0};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
transition-property: all;
|
|
71
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
72
|
+
transition-duration: 150ms;
|
|
73
|
+
outline-style: none !important;
|
|
74
|
+
|
|
75
|
+
&:active,
|
|
76
|
+
&:focus {
|
|
77
|
+
background-color: ${(_d = THEME.token) === null || _d === void 0 ? void 0 : _d.blue0};
|
|
78
|
+
--tw-shadow: 0 1px 0 0 #194e8d;
|
|
79
|
+
--tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color);
|
|
80
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
81
|
+
var(--tw-shadow);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:disabled {
|
|
85
|
+
background-color: ${(_e = THEME === null || THEME === void 0 ? void 0 : THEME.token) === null || _e === void 0 ? void 0 : _e.accent1};
|
|
86
|
+
color: ${(_f = THEME.token) === null || _f === void 0 ? void 0 : _f.accent5};
|
|
87
|
+
--tw-shadow: 0 1px 0 0 #e0e0e0;
|
|
88
|
+
--tw-shadow-colored: 0 1px 0 0 var(--tw-shadow-color);
|
|
89
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
90
|
+
var(--tw-shadow);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
export const InputNumberWrapper = styled(InputNumber) `
|
|
95
|
+
& > div {
|
|
96
|
+
width: unset !important;
|
|
97
|
+
padding: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
input {
|
|
101
|
+
padding: 0 6px !important;
|
|
102
|
+
text-align: center !important;
|
|
103
|
+
}
|
|
104
|
+
`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ColorResult } from 'react-color';
|
|
3
|
-
interface SketchPickerProps {
|
|
4
|
-
presetColors?: any[];
|
|
5
|
-
color: string;
|
|
6
|
-
onChange?: (color: ColorResult) => void;
|
|
7
|
-
onChangeComplete?: (color: ColorResult) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const SketchPicker: React.FC<SketchPickerProps>;
|
|
10
|
-
export {};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColorResult } from 'react-color';
|
|
3
|
+
interface SketchPickerProps {
|
|
4
|
+
presetColors?: any[];
|
|
5
|
+
color: string;
|
|
6
|
+
onChange?: (color: ColorResult) => void;
|
|
7
|
+
onChangeComplete?: (color: ColorResult) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const SketchPicker: React.FC<SketchPickerProps>;
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Libraries
|
|
2
|
-
import React from 'react';
|
|
3
|
-
// Styled
|
|
4
|
-
import { SketchPickerWrapper } from './styled';
|
|
5
|
-
export const SketchPicker = props => (React.createElement(SketchPickerWrapper, Object.assign({}, props)));
|
|
1
|
+
// Libraries
|
|
2
|
+
import React from 'react';
|
|
3
|
+
// Styled
|
|
4
|
+
import { SketchPickerWrapper } from './styled';
|
|
5
|
+
export const SketchPicker = props => (React.createElement(SketchPickerWrapper, Object.assign({}, props)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SketchPickerWrapper: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
1
|
+
export declare const SketchPickerWrapper: import("styled-components").StyledComponent<any, any, object, string | number | symbol>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Libraries
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
// Components
|
|
4
|
-
import { SketchPicker } from 'react-color';
|
|
5
|
-
export const SketchPickerWrapper = styled(SketchPicker) `
|
|
6
|
-
--tw-shadow: 0 0 #0000 !important;
|
|
7
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
8
|
-
var(--tw-shadow) !important;
|
|
9
|
-
padding: 0px !important;
|
|
10
|
-
`;
|
|
1
|
+
// Libraries
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
// Components
|
|
4
|
+
import { SketchPicker } from 'react-color';
|
|
5
|
+
export const SketchPickerWrapper = styled(SketchPicker) `
|
|
6
|
+
--tw-shadow: 0 0 #0000 !important;
|
|
7
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
8
|
+
var(--tw-shadow) !important;
|
|
9
|
+
padding: 0px !important;
|
|
10
|
+
`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export interface ColorPickerProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
color?: string;
|
|
5
|
-
presetColors?: any[] | ReactNode;
|
|
6
|
-
defaultColor?: string;
|
|
7
|
-
icon?: React.ReactNode | string;
|
|
8
|
-
onChange?: (color: string) => void;
|
|
9
|
-
showInput?: boolean;
|
|
10
|
-
positionInput?: 'right' | 'left';
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
}
|
|
13
|
-
export declare const ColorPicker: React.FC<ColorPickerProps>;
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface ColorPickerProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
presetColors?: any[] | ReactNode;
|
|
6
|
+
defaultColor?: string;
|
|
7
|
+
icon?: React.ReactNode | string;
|
|
8
|
+
onChange?: (color: string) => void;
|
|
9
|
+
showInput?: boolean;
|
|
10
|
+
positionInput?: 'right' | 'left';
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
export declare const ColorPicker: React.FC<ColorPickerProps>;
|