@tendaui/react 1.2.4 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_chunks/dep--nQ-cjme.js +45 -0
- package/es/_chunks/dep--nQ-cjme.js.map +1 -0
- package/es/_chunks/{dep-DTlQ2dCA.js → dep--qagmRQa.js} +2 -2
- package/es/_chunks/{dep-DTlQ2dCA.js.map → dep--qagmRQa.js.map} +1 -1
- package/es/_chunks/{dep-Dr5wkz0z.js → dep--svkhMCP.js} +12 -12
- package/es/_chunks/{dep-Dr5wkz0z.js.map → dep--svkhMCP.js.map} +1 -1
- package/es/_chunks/{dep-Bjfn7Zv_.js → dep-2HsCYcmp.js} +5 -5
- package/es/_chunks/{dep-Bjfn7Zv_.js.map → dep-2HsCYcmp.js.map} +1 -1
- package/es/_chunks/{dep-CkmtEv0Y.js → dep-B2D1svZy.js} +4 -2
- package/es/_chunks/dep-B2D1svZy.js.map +1 -0
- package/es/_chunks/{dep-BuIAffJt.js → dep-BI5F2D3y.js} +23 -13
- package/es/_chunks/dep-BI5F2D3y.js.map +1 -0
- package/es/_chunks/dep-BK4_iOSv.js +68 -0
- package/es/_chunks/dep-BK4_iOSv.js.map +1 -0
- package/es/_chunks/{dep-BYlJzn45.js → dep-BOj-ayw6.js} +26 -26
- package/es/_chunks/{dep-BYlJzn45.js.map → dep-BOj-ayw6.js.map} +1 -1
- package/es/_chunks/{dep-D68MD94M.js → dep-BZdpKjaa.js} +18 -18
- package/es/_chunks/{dep-D68MD94M.js.map → dep-BZdpKjaa.js.map} +1 -1
- package/es/_chunks/{dep-aX8qrQpB.js → dep-BbOvNxhg.js} +4 -4
- package/es/_chunks/{dep-aX8qrQpB.js.map → dep-BbOvNxhg.js.map} +1 -1
- package/es/_chunks/{dep-oUgTcXgm.js → dep-Blkje0_M.js} +2 -2
- package/es/_chunks/{dep-oUgTcXgm.js.map → dep-Blkje0_M.js.map} +1 -1
- package/es/_chunks/{dep-DJmE940f.js → dep-CHpQ3xhh.js} +2 -2
- package/es/_chunks/dep-CHpQ3xhh.js.map +1 -0
- package/es/_chunks/{dep-DX65P8M9.js → dep-CPjkUfQu.js} +2 -2
- package/es/_chunks/{dep-DX65P8M9.js.map → dep-CPjkUfQu.js.map} +1 -1
- package/es/_chunks/dep-CSzOEACo.js +165 -0
- package/es/_chunks/dep-CSzOEACo.js.map +1 -0
- package/es/_chunks/{dep-CJCt0IS0.js → dep-Cd1UOXnJ.js} +14 -14
- package/es/_chunks/{dep-CJCt0IS0.js.map → dep-Cd1UOXnJ.js.map} +1 -1
- package/es/_chunks/{dep-DQ6kXoi8.js → dep-DHWwZ2Nj.js} +2 -2
- package/es/_chunks/{dep-DQ6kXoi8.js.map → dep-DHWwZ2Nj.js.map} +1 -1
- package/es/_chunks/{dep-Tshfumgl.js → dep-DYFbjXzW.js} +2 -2
- package/es/_chunks/{dep-Tshfumgl.js.map → dep-DYFbjXzW.js.map} +1 -1
- package/es/_chunks/{dep-C_wPqvpm.js → dep-D_qcGLah.js} +2 -2
- package/es/_chunks/{dep-C_wPqvpm.js.map → dep-D_qcGLah.js.map} +1 -1
- package/es/_chunks/{dep-CsSvR9wN.js → dep-DfsP8eqT.js} +21 -21
- package/es/_chunks/{dep-CsSvR9wN.js.map → dep-DfsP8eqT.js.map} +1 -1
- package/es/_chunks/dep-Dl5DFuGU.js +2001 -0
- package/es/_chunks/dep-Dl5DFuGU.js.map +1 -0
- package/es/_chunks/{dep-DURB9x8g.js → dep-Dnwq3YvL.js} +36 -21
- package/es/_chunks/dep-Dnwq3YvL.js.map +1 -0
- package/es/_chunks/{dep-B4_O1Vgv.js → dep-Dr3i7zFt.js} +12 -12
- package/es/_chunks/{dep-B4_O1Vgv.js.map → dep-Dr3i7zFt.js.map} +1 -1
- package/es/_chunks/{dep-CD_4-1Xb.js → dep-UHQn9biR.js} +5 -5
- package/es/_chunks/dep-UHQn9biR.js.map +1 -0
- package/es/_chunks/{dep-ByzdZjUR.js → dep-bWaVq_y3.js} +2 -2
- package/es/_chunks/{dep-ByzdZjUR.js.map → dep-bWaVq_y3.js.map} +1 -1
- package/es/_chunks/{dep-DwWrhxkd.js → dep-grkSd2UB.js} +3 -3
- package/es/_chunks/{dep-DwWrhxkd.js.map → dep-grkSd2UB.js.map} +1 -1
- package/es/_chunks/{dep-CMPsNAXF.js → dep-hCWFQAqL.js} +15 -9
- package/es/_chunks/dep-hCWFQAqL.js.map +1 -0
- package/es/_chunks/{dep-D6YxJv-F.js → dep-spxR0DG0.js} +3 -3
- package/es/_chunks/{dep-D6YxJv-F.js.map → dep-spxR0DG0.js.map} +1 -1
- package/es/_chunks/{dep-gy8uvBaS.js → dep-u1x3x6MJ.js} +2 -2
- package/es/_chunks/{dep-gy8uvBaS.js.map → dep-u1x3x6MJ.js.map} +1 -1
- package/es/alert/Alert.js +25 -24
- package/es/alert/Alert.js.map +1 -1
- package/es/alert/_example/base.js +27 -0
- package/es/alert/_example/base.js.map +1 -0
- package/es/alert/_example/collapse.js +14 -0
- package/es/alert/_example/collapse.js.map +1 -0
- package/es/alert/index.js +6 -5
- package/es/alert/index.js.map +1 -1
- package/es/badge/Badge.js +6 -5
- package/es/badge/Badge.js.map +1 -1
- package/es/badge/_example/base.js +11 -0
- package/es/badge/_example/base.js.map +1 -0
- package/es/badge/_example/count.js +38 -0
- package/es/badge/_example/count.js.map +1 -0
- package/es/badge/_example/custom-color.js +48 -0
- package/es/badge/_example/custom-color.js.map +1 -0
- package/es/badge/_example/dot.js +36 -0
- package/es/badge/_example/dot.js.map +1 -0
- package/es/badge/_example/max-count.js +37 -0
- package/es/badge/_example/max-count.js.map +1 -0
- package/es/badge/_example/offset.js +41 -0
- package/es/badge/_example/offset.js.map +1 -0
- package/es/badge/_example/shape.js +47 -0
- package/es/badge/_example/shape.js.map +1 -0
- package/es/badge/_example/show-zero.js +31 -0
- package/es/badge/_example/show-zero.js.map +1 -0
- package/es/badge/_example/size.js +54 -0
- package/es/badge/_example/size.js.map +1 -0
- package/es/badge/_example/standalone.js +27 -0
- package/es/badge/_example/standalone.js.map +1 -0
- package/es/badge/_example/text-count.js +32 -0
- package/es/badge/_example/text-count.js.map +1 -0
- package/es/badge/_example/with-button.js +33 -0
- package/es/badge/_example/with-button.js.map +1 -0
- package/es/badge/index.js +3 -2
- package/es/badge/index.js.map +1 -1
- package/es/button/Button.js +10 -9
- package/es/button/Button.js.map +1 -1
- package/es/button/__tests__/Button.test.js +54700 -0
- package/es/button/__tests__/Button.test.js.map +1 -0
- package/es/button/_example/base.js +3 -3
- package/es/button/_example/base.js.map +1 -1
- package/es/button/_example/block.js +26 -0
- package/es/button/_example/block.js.map +1 -0
- package/es/button/_example/disabled.js +32 -0
- package/es/button/_example/disabled.js.map +1 -0
- package/es/button/_example/ghost.js +28 -0
- package/es/button/_example/ghost.js.map +1 -0
- package/es/button/_example/icon.js +10 -10
- package/es/button/_example/icon.js.map +1 -1
- package/es/button/_example/link.js +24 -0
- package/es/button/_example/link.js.map +1 -0
- package/es/button/_example/loading.js +28 -0
- package/es/button/_example/loading.js.map +1 -0
- package/es/button/_example/shape.js +31 -0
- package/es/button/_example/shape.js.map +1 -0
- package/es/button/_example/size.js +25 -0
- package/es/button/_example/size.js.map +1 -0
- package/es/button/_example/suffix.js +23 -0
- package/es/button/_example/suffix.js.map +1 -0
- package/es/button/_example/theme.js +25 -0
- package/es/button/_example/theme.js.map +1 -0
- package/es/button/_example/variant-base.js +30 -0
- package/es/button/_example/variant-base.js.map +1 -0
- package/es/button/_example/variant-dashed.js +30 -0
- package/es/button/_example/variant-dashed.js.map +1 -0
- package/es/button/_example/variant-outline.js +30 -0
- package/es/button/_example/variant-outline.js.map +1 -0
- package/es/button/_example/variant-text.js +30 -0
- package/es/button/_example/variant-text.js.map +1 -0
- package/es/button/index.js +5 -4
- package/es/button/index.js.map +1 -1
- package/es/button/style/index.css +3 -3
- package/es/checkbox/Checkbox.js +6 -5
- package/es/checkbox/Checkbox.js.map +1 -1
- package/es/checkbox/CheckboxGroup.js +6 -5
- package/es/checkbox/CheckboxGroup.js.map +1 -1
- package/es/checkbox/_example/base.js +9 -0
- package/es/checkbox/_example/base.js.map +1 -0
- package/es/checkbox/_example/controlled.js +19 -0
- package/es/checkbox/_example/controlled.js.map +1 -0
- package/es/checkbox/_example/group-disabled.js +20 -0
- package/es/checkbox/_example/group-disabled.js.map +1 -0
- package/es/checkbox/_example/group-with-check-all.js +41 -0
- package/es/checkbox/_example/group-with-check-all.js.map +1 -0
- package/es/checkbox/_example/group-with-max.js +34 -0
- package/es/checkbox/_example/group-with-max.js.map +1 -0
- package/es/checkbox/_example/group-with-options.js +40 -0
- package/es/checkbox/_example/group-with-options.js.map +1 -0
- package/es/checkbox/_example/group.js +33 -0
- package/es/checkbox/_example/group.js.map +1 -0
- package/es/checkbox/_example/states.js +27 -0
- package/es/checkbox/_example/states.js.map +1 -0
- package/es/checkbox/index.js +6 -5
- package/es/checkbox/index.js.map +1 -1
- package/es/color-picker/ColorPickPanel.js +76 -12
- package/es/color-picker/ColorPickPanel.js.map +1 -1
- package/es/color-picker/ColorPicker.js +67 -18
- package/es/color-picker/ColorPicker.js.map +1 -1
- package/es/color-picker/_example/base.js +26 -0
- package/es/color-picker/_example/base.js.map +1 -0
- package/es/color-picker/_example/borderless.js +29 -0
- package/es/color-picker/_example/borderless.js.map +1 -0
- package/es/color-picker/_example/clearable.js +29 -0
- package/es/color-picker/_example/clearable.js.map +1 -0
- package/es/color-picker/_example/disabled.js +29 -0
- package/es/color-picker/_example/disabled.js.map +1 -0
- package/es/color-picker/_example/formats.js +79 -0
- package/es/color-picker/_example/formats.js.map +1 -0
- package/es/color-picker/_example/manual-input.js +91 -0
- package/es/color-picker/_example/manual-input.js.map +1 -0
- package/es/color-picker/_example/recent-colors.js +31 -0
- package/es/color-picker/_example/recent-colors.js.map +1 -0
- package/es/color-picker/_example/swatch-colors.js +27 -0
- package/es/color-picker/_example/swatch-colors.js.map +1 -0
- package/es/color-picker/_example/with-alpha.js +35 -0
- package/es/color-picker/_example/with-alpha.js.map +1 -0
- package/es/color-picker/components/panel/alpha.js +5 -4
- package/es/color-picker/components/panel/alpha.js.map +1 -1
- package/es/color-picker/components/panel/format/index.js +25 -23
- package/es/color-picker/components/panel/format/index.js.map +1 -1
- package/es/color-picker/components/panel/format/inputs.js +20 -18
- package/es/color-picker/components/panel/format/inputs.js.map +1 -1
- package/es/color-picker/components/panel/header.js +16 -14
- package/es/color-picker/components/panel/header.js.map +1 -1
- package/es/color-picker/components/panel/hue.js +5 -4
- package/es/color-picker/components/panel/hue.js.map +1 -1
- package/es/color-picker/components/panel/index.js +73 -9
- package/es/color-picker/components/panel/index.js.map +1 -1
- package/es/color-picker/components/panel/saturation.js +6 -5
- package/es/color-picker/components/panel/saturation.js.map +1 -1
- package/es/color-picker/components/panel/slider.js +9 -8
- package/es/color-picker/components/panel/slider.js.map +1 -1
- package/es/color-picker/components/panel/swatches.js +17 -16
- package/es/color-picker/components/panel/swatches.js.map +1 -1
- package/es/color-picker/components/trigger.js +58 -25
- package/es/color-picker/components/trigger.js.map +1 -1
- package/es/color-picker/index.js +63 -20
- package/es/color-picker/index.js.map +1 -1
- package/es/color-picker/utils/color-picker/index.js +4 -67
- package/es/color-picker/utils/color-picker/index.js.map +1 -1
- package/es/common/Check.js +11 -10
- package/es/common/Check.js.map +1 -1
- package/es/common/FakeArrow.js +6 -5
- package/es/common/FakeArrow.js.map +1 -1
- package/es/common/PluginContainer.js +4 -3
- package/es/common/PluginContainer.js.map +1 -1
- package/es/common/Portal.js +3 -2
- package/es/common/Portal.js.map +1 -1
- package/es/config-provider/ConfigContext.js +303 -4
- package/es/config-provider/ConfigContext.js.map +1 -1
- package/es/config-provider/ConfigProvider.js +17 -4
- package/es/config-provider/ConfigProvider.js.map +1 -1
- package/es/config-provider/index.js +2 -1
- package/es/config-provider/index.js.map +1 -1
- package/es/dialog/Dialog.js +19 -18
- package/es/dialog/Dialog.js.map +1 -1
- package/es/dialog/DialogCard.js +8 -7
- package/es/dialog/DialogCard.js.map +1 -1
- package/es/dialog/_example/base.js +32 -0
- package/es/dialog/_example/base.js.map +1 -0
- package/es/dialog/_example/confirm-loading.js +38 -0
- package/es/dialog/_example/confirm-loading.js.map +1 -0
- package/es/dialog/_example/custom-buttons.js +36 -0
- package/es/dialog/_example/custom-buttons.js.map +1 -0
- package/es/dialog/_example/full-screen.js +33 -0
- package/es/dialog/_example/full-screen.js.map +1 -0
- package/es/dialog/_example/hide-buttons.js +50 -0
- package/es/dialog/_example/hide-buttons.js.map +1 -0
- package/es/dialog/_example/modeless.js +30 -0
- package/es/dialog/_example/modeless.js.map +1 -0
- package/es/dialog/_example/placement.js +53 -0
- package/es/dialog/_example/placement.js.map +1 -0
- package/es/dialog/_example/plugin-example.js +81 -0
- package/es/dialog/_example/plugin-example.js.map +1 -0
- package/es/dialog/_example/themes.js +62 -0
- package/es/dialog/_example/themes.js.map +1 -0
- package/es/dialog/index.js +10 -9
- package/es/dialog/index.js.map +1 -1
- package/es/dialog/plugin.js +15 -14
- package/es/dialog/plugin.js.map +1 -1
- package/es/dialog/style/index.css +3 -3
- package/es/drawer/Drawer.js +46 -37
- package/es/drawer/Drawer.js.map +1 -1
- package/es/drawer/_example/custom-header-footer.js +78 -0
- package/es/drawer/_example/custom-header-footer.js.map +1 -0
- package/es/drawer/_example/default.js +61 -0
- package/es/drawer/_example/default.js.map +1 -0
- package/es/drawer/_example/events.js +81 -0
- package/es/drawer/_example/events.js.map +1 -0
- package/es/drawer/_example/no-footer.js +62 -0
- package/es/drawer/_example/no-footer.js.map +1 -0
- package/es/drawer/_example/no-overlay.js +62 -0
- package/es/drawer/_example/no-overlay.js.map +1 -0
- package/es/drawer/_example/placement.js +91 -0
- package/es/drawer/_example/placement.js.map +1 -0
- package/es/drawer/_example/size-draggable.js +65 -0
- package/es/drawer/_example/size-draggable.js.map +1 -0
- package/es/drawer/_example/size.js +96 -0
- package/es/drawer/_example/size.js.map +1 -0
- package/es/drawer/index.js +9 -8
- package/es/drawer/index.js.map +1 -1
- package/es/drawer/style/index.css +4 -4
- package/es/fireworks/Fireworks.js +7 -6
- package/es/fireworks/Fireworks.js.map +1 -1
- package/es/fireworks/index.js +3 -2
- package/es/fireworks/index.js.map +1 -1
- package/es/form/Form.js +26 -173
- package/es/form/Form.js.map +1 -1
- package/es/form/FormContext.js +5 -5
- package/es/form/FormContext.js.map +1 -1
- package/es/form/FormItem.js +12 -11
- package/es/form/FormItem.js.map +1 -1
- package/es/form/FormList.js +2 -2
- package/es/form/FormList.js.map +1 -1
- package/es/form/_example/complex.js +105 -0
- package/es/form/_example/complex.js.map +1 -0
- package/es/form/_example/default.js +87 -0
- package/es/form/_example/default.js.map +1 -0
- package/es/form/_example/disabled.js +40 -0
- package/es/form/_example/disabled.js.map +1 -0
- package/es/form/_example/form-list.js +122 -0
- package/es/form/_example/form-list.js.map +1 -0
- package/es/form/_example/inline-layout.js +32 -0
- package/es/form/_example/inline-layout.js.map +1 -0
- package/es/form/_example/label-align.js +73 -0
- package/es/form/_example/label-align.js.map +1 -0
- package/es/form/_example/methods.js +118 -0
- package/es/form/_example/methods.js.map +1 -0
- package/es/form/_example/validation.js +97 -0
- package/es/form/_example/validation.js.map +1 -0
- package/es/form/hooks/useFormItemStyle.js +5 -4
- package/es/form/hooks/useFormItemStyle.js.map +1 -1
- package/es/form/hooks/useInstance.js +5 -4
- package/es/form/hooks/useInstance.js.map +1 -1
- package/es/form/index.js +22 -17
- package/es/form/index.js.map +1 -1
- package/es/form/style/index.css +6 -6
- package/es/hooks/useDragSorter.js +4 -4
- package/es/hooks/useDragSorter.js.map +1 -1
- package/es/index.js +37 -30
- package/es/index.js.map +1 -1
- package/es/input/Input.js +165 -26
- package/es/input/Input.js.map +1 -1
- package/es/input/InputGroup.js +2 -2
- package/es/input/InputGroup.js.map +1 -1
- package/es/input/_example/auto-width.js +53 -0
- package/es/input/_example/auto-width.js.map +1 -0
- package/es/input/_example/borderless.js +52 -0
- package/es/input/_example/borderless.js.map +1 -0
- package/es/input/_example/clearable.js +54 -0
- package/es/input/_example/clearable.js.map +1 -0
- package/es/input/_example/default.js +37 -0
- package/es/input/_example/default.js.map +1 -0
- package/es/input/_example/disabled-readonly.js +48 -0
- package/es/input/_example/disabled-readonly.js.map +1 -0
- package/es/input/_example/events.js +87 -0
- package/es/input/_example/events.js.map +1 -0
- package/es/input/_example/group.js +47 -0
- package/es/input/_example/group.js.map +1 -0
- package/es/input/_example/label-suffix.js +48 -0
- package/es/input/_example/label-suffix.js.map +1 -0
- package/es/input/_example/max-length.js +44 -0
- package/es/input/_example/max-length.js.map +1 -0
- package/es/input/_example/password.js +43 -0
- package/es/input/_example/password.js.map +1 -0
- package/es/input/_example/sizes.js +47 -0
- package/es/input/_example/sizes.js.map +1 -0
- package/es/input/_example/status.js +55 -0
- package/es/input/_example/status.js.map +1 -0
- package/es/input/_example/text-align.js +50 -0
- package/es/input/_example/text-align.js.map +1 -0
- package/es/input/_example/with-icon.js +48 -0
- package/es/input/_example/with-icon.js.map +1 -0
- package/es/input/index.js +6 -5
- package/es/input/index.js.map +1 -1
- package/es/input/style/index.css +18 -9
- package/es/input-number/InputNumber.js +19 -18
- package/es/input-number/InputNumber.js.map +1 -1
- package/es/input-number/_example/align.js +88 -0
- package/es/input-number/_example/align.js.map +1 -0
- package/es/input-number/_example/auto-width.js +54 -0
- package/es/input-number/_example/auto-width.js.map +1 -0
- package/es/input-number/_example/default.js +55 -0
- package/es/input-number/_example/default.js.map +1 -0
- package/es/input-number/_example/events.js +103 -0
- package/es/input-number/_example/events.js.map +1 -0
- package/es/input-number/_example/format.js +94 -0
- package/es/input-number/_example/format.js.map +1 -0
- package/es/input-number/_example/large-number.js +81 -0
- package/es/input-number/_example/large-number.js.map +1 -0
- package/es/input-number/_example/min-max.js +70 -0
- package/es/input-number/_example/min-max.js.map +1 -0
- package/es/input-number/_example/sizes.js +128 -0
- package/es/input-number/_example/sizes.js.map +1 -0
- package/es/input-number/_example/status.js +175 -0
- package/es/input-number/_example/status.js.map +1 -0
- package/es/input-number/_example/step-and-decimal.js +70 -0
- package/es/input-number/_example/step-and-decimal.js.map +1 -0
- package/es/input-number/_example/themes.js +80 -0
- package/es/input-number/_example/themes.js.map +1 -0
- package/es/input-number/_example/with-suffix.js +74 -0
- package/es/input-number/_example/with-suffix.js.map +1 -0
- package/es/input-number/index.js +9 -8
- package/es/input-number/index.js.map +1 -1
- package/es/input-number/style/index.css +12 -12
- package/es/input-number/useInputNumber.js +5 -4
- package/es/input-number/useInputNumber.js.map +1 -1
- package/es/ip-input/IPInput.js +5 -4
- package/es/ip-input/IPInput.js.map +1 -1
- package/es/ip-input/_example/controlled.js +65 -0
- package/es/ip-input/_example/controlled.js.map +1 -0
- package/es/ip-input/_example/default.js +27 -0
- package/es/ip-input/_example/default.js.map +1 -0
- package/es/ip-input/_example/full-featured.js +48 -0
- package/es/ip-input/_example/full-featured.js.map +1 -0
- package/es/ip-input/_example/ipv6.js +47 -0
- package/es/ip-input/_example/ipv6.js.map +1 -0
- package/es/ip-input/_example/keyboard-navigation.js +46 -0
- package/es/ip-input/_example/keyboard-navigation.js.map +1 -0
- package/es/ip-input/_example/paste-demo.js +54 -0
- package/es/ip-input/_example/paste-demo.js.map +1 -0
- package/es/ip-input/_example/states.js +52 -0
- package/es/ip-input/_example/states.js.map +1 -0
- package/es/ip-input/_example/with-cidr.js +47 -0
- package/es/ip-input/_example/with-cidr.js.map +1 -0
- package/es/ip-input/index.js +5 -4
- package/es/ip-input/index.js.map +1 -1
- package/es/layout/Aside.js +5 -4
- package/es/layout/Aside.js.map +1 -1
- package/es/layout/Layout.js +10 -9
- package/es/layout/Layout.js.map +1 -1
- package/es/layout/_example/combine-left.js +68 -0
- package/es/layout/_example/combine-left.js.map +1 -0
- package/es/layout/_example/combine-right.js +68 -0
- package/es/layout/_example/combine-right.js.map +1 -0
- package/es/layout/_example/custom-aside-width.js +69 -0
- package/es/layout/_example/custom-aside-width.js.map +1 -0
- package/es/layout/_example/custom-height.js +59 -0
- package/es/layout/_example/custom-height.js.map +1 -0
- package/es/layout/_example/double-sidebar.js +72 -0
- package/es/layout/_example/double-sidebar.js.map +1 -0
- package/es/layout/_example/side-navigation-right.js +66 -0
- package/es/layout/_example/side-navigation-right.js.map +1 -0
- package/es/layout/_example/side-navigation.js +66 -0
- package/es/layout/_example/side-navigation.js.map +1 -0
- package/es/layout/_example/top-navigation.js +57 -0
- package/es/layout/_example/top-navigation.js.map +1 -0
- package/es/layout/index.js +4 -3
- package/es/layout/index.js.map +1 -1
- package/es/list/List.js +18 -17
- package/es/list/List.js.map +1 -1
- package/es/list/ListItem.js +7 -6
- package/es/list/ListItem.js.map +1 -1
- package/es/list/ListItemMeta.js +12 -11
- package/es/list/ListItemMeta.js.map +1 -1
- package/es/list/_example/async-loading.js +114 -0
- package/es/list/_example/async-loading.js.map +1 -0
- package/es/list/_example/default.js +62 -0
- package/es/list/_example/default.js.map +1 -0
- package/es/list/_example/header-footer.js +98 -0
- package/es/list/_example/header-footer.js.map +1 -0
- package/es/list/_example/multiline.js +66 -0
- package/es/list/_example/multiline.js.map +1 -0
- package/es/list/_example/scroll-loading.js +133 -0
- package/es/list/_example/scroll-loading.js.map +1 -0
- package/es/list/_example/sizes.js +94 -0
- package/es/list/_example/sizes.js.map +1 -0
- package/es/list/_example/split.js +93 -0
- package/es/list/_example/split.js.map +1 -0
- package/es/list/_example/stripe.js +68 -0
- package/es/list/_example/stripe.js.map +1 -0
- package/es/list/_example/virtual-scroll.js +97 -0
- package/es/list/_example/virtual-scroll.js.map +1 -0
- package/es/list/_example/with-image.js +72 -0
- package/es/list/_example/with-image.js.map +1 -0
- package/es/list/index.js +6 -5
- package/es/list/index.js.map +1 -1
- package/es/list/style/index.css +5 -5
- package/es/loading/Gradient.js +8 -7
- package/es/loading/Gradient.js.map +1 -1
- package/es/loading/Loading.js +14 -13
- package/es/loading/Loading.js.map +1 -1
- package/es/loading/_example/default.js +30 -0
- package/es/loading/_example/default.js.map +1 -0
- package/es/loading/_example/delay.js +70 -0
- package/es/loading/_example/delay.js.map +1 -0
- package/es/loading/_example/fullscreen.js +38 -0
- package/es/loading/_example/fullscreen.js.map +1 -0
- package/es/loading/_example/inherit-color.js +58 -0
- package/es/loading/_example/inherit-color.js.map +1 -0
- package/es/loading/_example/no-overlay.js +28 -0
- package/es/loading/_example/no-overlay.js.map +1 -0
- package/es/loading/_example/sizes.js +84 -0
- package/es/loading/_example/sizes.js.map +1 -0
- package/es/loading/_example/with-text.js +41 -0
- package/es/loading/_example/with-text.js.map +1 -0
- package/es/loading/_example/wrapper.js +41 -0
- package/es/loading/_example/wrapper.js.map +1 -0
- package/es/loading/index.js +4 -3
- package/es/loading/index.js.map +1 -1
- package/es/notification/NotifyContainer.js +7 -6
- package/es/notification/NotifyContainer.js.map +1 -1
- package/es/notification/NotifyContext.js +7 -6
- package/es/notification/NotifyContext.js.map +1 -1
- package/es/notification/NotifyItem.js +20 -19
- package/es/notification/NotifyItem.js.map +1 -1
- package/es/notification/_example/default.js +55 -0
- package/es/notification/_example/default.js.map +1 -0
- package/es/notification/_example/long-content.js +36 -0
- package/es/notification/_example/long-content.js.map +1 -0
- package/es/notification/_example/stacking.js +56 -0
- package/es/notification/_example/stacking.js.map +1 -0
- package/es/notification/_example/types.js +75 -0
- package/es/notification/_example/types.js.map +1 -0
- package/es/notification/_example/usage-example.js +68 -0
- package/es/notification/_example/usage-example.js.map +1 -0
- package/es/notification/index.js +3 -2
- package/es/notification/index.js.map +1 -1
- package/es/notification/style/index.css +4 -4
- package/es/popup/Popup.js +30 -17
- package/es/popup/Popup.js.map +1 -1
- package/es/popup/_example/controlled.js +55 -0
- package/es/popup/_example/controlled.js.map +1 -0
- package/es/popup/_example/custom-content.js +81 -0
- package/es/popup/_example/custom-content.js.map +1 -0
- package/es/popup/_example/default.js +24 -0
- package/es/popup/_example/default.js.map +1 -0
- package/es/popup/_example/delay.js +43 -0
- package/es/popup/_example/delay.js.map +1 -0
- package/es/popup/_example/disabled.js +35 -0
- package/es/popup/_example/disabled.js.map +1 -0
- package/es/popup/_example/no-arrow.js +32 -0
- package/es/popup/_example/no-arrow.js.map +1 -0
- package/es/popup/_example/placements.js +138 -0
- package/es/popup/_example/placements.js.map +1 -0
- package/es/popup/_example/triggers.js +49 -0
- package/es/popup/_example/triggers.js.map +1 -0
- package/es/popup/index.js +5 -4
- package/es/popup/index.js.map +1 -1
- package/es/radio/Radio.js +8 -7
- package/es/radio/Radio.js.map +1 -1
- package/es/radio/RadioGroup.js +8 -7
- package/es/radio/RadioGroup.js.map +1 -1
- package/es/radio/_example/allow-uncheck.js +37 -0
- package/es/radio/_example/allow-uncheck.js.map +1 -0
- package/es/radio/_example/button-style.js +79 -0
- package/es/radio/_example/button-style.js.map +1 -0
- package/es/radio/_example/controlled.js +19 -0
- package/es/radio/_example/controlled.js.map +1 -0
- package/es/radio/_example/default.js +16 -0
- package/es/radio/_example/default.js.map +1 -0
- package/es/radio/_example/group-disabled.js +34 -0
- package/es/radio/_example/group-disabled.js.map +1 -0
- package/es/radio/_example/group-with-options.js +40 -0
- package/es/radio/_example/group-with-options.js.map +1 -0
- package/es/radio/_example/group.js +33 -0
- package/es/radio/_example/group.js.map +1 -0
- package/es/radio/_example/sizes.js +57 -0
- package/es/radio/_example/sizes.js.map +1 -0
- package/es/radio/_example/states.js +25 -0
- package/es/radio/_example/states.js.map +1 -0
- package/es/radio/index.js +8 -7
- package/es/radio/index.js.map +1 -1
- package/es/select/Option.js +10 -9
- package/es/select/Option.js.map +1 -1
- package/es/select/OptionGroup.js +4 -3
- package/es/select/OptionGroup.js.map +1 -1
- package/es/select/PopupContent.js +5 -4
- package/es/select/PopupContent.js.map +1 -1
- package/es/select/Select.js +21 -20
- package/es/select/Select.js.map +1 -1
- package/es/select/_example/collapsed.js +55 -0
- package/es/select/_example/collapsed.js.map +1 -0
- package/es/select/_example/creatable.js +61 -0
- package/es/select/_example/creatable.js.map +1 -0
- package/es/select/_example/custom-content.js +41 -0
- package/es/select/_example/custom-content.js.map +1 -0
- package/es/select/_example/default.js +54 -0
- package/es/select/_example/default.js.map +1 -0
- package/es/select/_example/disabled.js +54 -0
- package/es/select/_example/disabled.js.map +1 -0
- package/es/select/_example/filterable.js +44 -0
- package/es/select/_example/filterable.js.map +1 -0
- package/es/select/_example/group-options.js +57 -0
- package/es/select/_example/group-options.js.map +1 -0
- package/es/select/_example/label-suffix.js +51 -0
- package/es/select/_example/label-suffix.js.map +1 -0
- package/es/select/_example/loading.js +45 -0
- package/es/select/_example/loading.js.map +1 -0
- package/es/select/_example/multiple.js +58 -0
- package/es/select/_example/multiple.js.map +1 -0
- package/es/select/_example/sizes.js +54 -0
- package/es/select/_example/sizes.js.map +1 -0
- package/es/select/_example/status.js +66 -0
- package/es/select/_example/status.js.map +1 -0
- package/es/select/index.js +12 -11
- package/es/select/index.js.map +1 -1
- package/es/select-input/SelectInput.js +14 -13
- package/es/select-input/SelectInput.js.map +1 -1
- package/es/select-input/hook/useMultiple.js +9 -8
- package/es/select-input/hook/useMultiple.js.map +1 -1
- package/es/select-input/hook/useSingle.js +9 -8
- package/es/select-input/hook/useSingle.js.map +1 -1
- package/es/select-input/index.js +8 -7
- package/es/select-input/index.js.map +1 -1
- package/es/slider/Slider.js +37 -27
- package/es/slider/Slider.js.map +1 -1
- package/es/slider/SliderHandleButton.js +3 -3
- package/es/slider/SliderHandleButton.js.map +1 -1
- package/es/slider/_example/custom-label.js +33 -0
- package/es/slider/_example/custom-label.js.map +1 -0
- package/es/slider/_example/default.js +33 -0
- package/es/slider/_example/default.js.map +1 -0
- package/es/slider/_example/disabled.js +38 -0
- package/es/slider/_example/disabled.js.map +1 -0
- package/es/slider/_example/marks.js +61 -0
- package/es/slider/_example/marks.js.map +1 -0
- package/es/slider/_example/range.js +30 -0
- package/es/slider/_example/range.js.map +1 -0
- package/es/slider/_example/step.js +31 -0
- package/es/slider/_example/step.js.map +1 -0
- package/es/slider/_example/vertical.js +67 -0
- package/es/slider/_example/vertical.js.map +1 -0
- package/es/slider/_example/with-input-number.js +55 -0
- package/es/slider/_example/with-input-number.js.map +1 -0
- package/es/slider/index.js +9 -8
- package/es/slider/index.js.map +1 -1
- package/es/slider/style/index.css +8 -8
- package/es/switch/Switch.js +13 -12
- package/es/switch/Switch.js.map +1 -1
- package/es/switch/_example/async-change.js +36 -0
- package/es/switch/_example/async-change.js.map +1 -0
- package/es/switch/_example/before-change.js +31 -0
- package/es/switch/_example/before-change.js.map +1 -0
- package/es/switch/_example/controlled.js +23 -0
- package/es/switch/_example/controlled.js.map +1 -0
- package/es/switch/_example/custom-value.js +50 -0
- package/es/switch/_example/custom-value.js.map +1 -0
- package/es/switch/_example/default.js +11 -0
- package/es/switch/_example/default.js.map +1 -0
- package/es/switch/_example/disabled.js +72 -0
- package/es/switch/_example/disabled.js.map +1 -0
- package/es/switch/_example/loading.js +44 -0
- package/es/switch/_example/loading.js.map +1 -0
- package/es/switch/_example/sizes.js +60 -0
- package/es/switch/_example/sizes.js.map +1 -0
- package/es/switch/_example/with-label.js +54 -0
- package/es/switch/_example/with-label.js.map +1 -0
- package/es/switch/index.js +6 -5
- package/es/switch/index.js.map +1 -1
- package/es/switch/style/index.css +56 -0
- package/es/tab/TabBar.js +8 -7
- package/es/tab/TabBar.js.map +1 -1
- package/es/tab/TabNav.js +12 -11
- package/es/tab/TabNav.js.map +1 -1
- package/es/tab/TabNavItem.js +11 -10
- package/es/tab/TabNavItem.js.map +1 -1
- package/es/tab/TabPanel.js +6 -4
- package/es/tab/TabPanel.js.map +1 -1
- package/es/tab/Tabs.js +20 -19
- package/es/tab/Tabs.js.map +1 -1
- package/es/tab/_example/addable.js +92 -0
- package/es/tab/_example/addable.js.map +1 -0
- package/es/tab/_example/card-theme.js +66 -0
- package/es/tab/_example/card-theme.js.map +1 -0
- package/es/tab/_example/default.js +65 -0
- package/es/tab/_example/default.js.map +1 -0
- package/es/tab/_example/disabled.js +99 -0
- package/es/tab/_example/disabled.js.map +1 -0
- package/es/tab/_example/lazy.js +73 -0
- package/es/tab/_example/lazy.js.map +1 -0
- package/es/tab/_example/placement.js +96 -0
- package/es/tab/_example/placement.js.map +1 -0
- package/es/tab/_example/removable.js +78 -0
- package/es/tab/_example/removable.js.map +1 -0
- package/es/tab/_example/sizes.js +85 -0
- package/es/tab/_example/sizes.js.map +1 -0
- package/es/tab/_example/with-action.js +71 -0
- package/es/tab/_example/with-action.js.map +1 -0
- package/es/tab/index.js +8 -7
- package/es/tab/index.js.map +1 -1
- package/es/tab/style/index.css +8 -8
- package/es/table/Cell.js +10 -11
- package/es/table/Cell.js.map +1 -1
- package/es/table/Ellipsis.js +77 -0
- package/es/table/Ellipsis.js.map +1 -0
- package/es/table/TBody.js +16 -13
- package/es/table/TBody.js.map +1 -1
- package/es/table/THead.js +7 -6
- package/es/table/THead.js.map +1 -1
- package/es/table/TR.js +9 -5
- package/es/table/TR.js.map +1 -1
- package/es/table/Table.js +14 -11
- package/es/table/Table.js.map +1 -1
- package/es/table/_example/alignment.js +96 -0
- package/es/table/_example/alignment.js.map +1 -0
- package/es/table/_example/auto-width.js +90 -0
- package/es/table/_example/auto-width.js.map +1 -0
- package/es/table/_example/bordered-stripe-hover.js +96 -0
- package/es/table/_example/bordered-stripe-hover.js.map +1 -0
- package/es/table/_example/bordered.js +94 -0
- package/es/table/_example/bordered.js.map +1 -0
- package/es/table/_example/cell-click.js +107 -0
- package/es/table/_example/cell-click.js.map +1 -0
- package/es/table/_example/complex.js +131 -0
- package/es/table/_example/complex.js.map +1 -0
- package/es/table/_example/custom-cell.js +115 -0
- package/es/table/_example/custom-cell.js.map +1 -0
- package/es/table/_example/custom-empty.js +64 -0
- package/es/table/_example/custom-empty.js.map +1 -0
- package/es/table/_example/custom-row-class-name.js +105 -0
- package/es/table/_example/custom-row-class-name.js.map +1 -0
- package/es/table/_example/default.js +93 -0
- package/es/table/_example/default.js.map +1 -0
- package/es/table/_example/ellipsis.js +96 -0
- package/es/table/_example/ellipsis.js.map +1 -0
- package/es/table/_example/empty.js +58 -0
- package/es/table/_example/empty.js.map +1 -0
- package/es/table/_example/fixed-width.js +98 -0
- package/es/table/_example/fixed-width.js.map +1 -0
- package/es/table/_example/hover.js +94 -0
- package/es/table/_example/hover.js.map +1 -0
- package/es/table/_example/row-click.js +100 -0
- package/es/table/_example/row-click.js.map +1 -0
- package/es/table/_example/sizes.js +111 -0
- package/es/table/_example/sizes.js.map +1 -0
- package/es/table/_example/stripe.js +94 -0
- package/es/table/_example/stripe.js.map +1 -0
- package/es/table/_example/vertical-align.js +110 -0
- package/es/table/_example/vertical-align.js.map +1 -0
- package/es/table/hooks/index.js +6 -5
- package/es/table/hooks/index.js.map +1 -1
- package/es/table/index.js +6 -3
- package/es/table/index.js.map +1 -1
- package/es/table/style/index.css +11 -10
- package/es/tag/Tag.js +8 -7
- package/es/tag/Tag.js.map +1 -1
- package/es/tag/_example/closable.js +43 -0
- package/es/tag/_example/closable.js.map +1 -0
- package/es/tag/_example/default.js +24 -0
- package/es/tag/_example/default.js.map +1 -0
- package/es/tag/_example/disabled.js +26 -0
- package/es/tag/_example/disabled.js.map +1 -0
- package/es/tag/_example/sizes.js +24 -0
- package/es/tag/_example/sizes.js.map +1 -0
- package/es/tag/_example/variants.js +49 -0
- package/es/tag/_example/variants.js.map +1 -0
- package/es/tag/index.js +4 -3
- package/es/tag/index.js.map +1 -1
- package/es/tag-input/TagInput.js +10 -9
- package/es/tag-input/TagInput.js.map +1 -1
- package/es/tag-input/_example/collapsed.js +39 -0
- package/es/tag-input/_example/collapsed.js.map +1 -0
- package/es/tag-input/_example/controlled-uncontrolled.js +47 -0
- package/es/tag-input/_example/controlled-uncontrolled.js.map +1 -0
- package/es/tag-input/_example/default.js +31 -0
- package/es/tag-input/_example/default.js.map +1 -0
- package/es/tag-input/_example/disabled-readonly.js +50 -0
- package/es/tag-input/_example/disabled-readonly.js.map +1 -0
- package/es/tag-input/_example/events.js +84 -0
- package/es/tag-input/_example/events.js.map +1 -0
- package/es/tag-input/_example/excess-display.js +40 -0
- package/es/tag-input/_example/excess-display.js.map +1 -0
- package/es/tag-input/_example/max-tags.js +36 -0
- package/es/tag-input/_example/max-tags.js.map +1 -0
- package/es/tag-input/_example/sizes.js +51 -0
- package/es/tag-input/_example/sizes.js.map +1 -0
- package/es/tag-input/_example/status.js +49 -0
- package/es/tag-input/_example/status.js.map +1 -0
- package/es/tag-input/_example/with-label.js +31 -0
- package/es/tag-input/_example/with-label.js.map +1 -0
- package/es/tag-input/hooks/useTagList.js +11 -10
- package/es/tag-input/hooks/useTagList.js.map +1 -1
- package/es/tag-input/index.js +7 -6
- package/es/tag-input/index.js.map +1 -1
- package/es/tag-input/useTagList.js +11 -10
- package/es/tag-input/useTagList.js.map +1 -1
- package/es/tooltip/Tooltip.js +100 -0
- package/es/tooltip/Tooltip.js.map +1 -0
- package/es/tooltip/_example/base.js +32 -0
- package/es/tooltip/_example/base.js.map +1 -0
- package/es/tooltip/_example/custom-content.js +62 -0
- package/es/tooltip/_example/custom-content.js.map +1 -0
- package/es/tooltip/_example/placement.js +31 -0
- package/es/tooltip/_example/placement.js.map +1 -0
- package/es/tooltip/_example/theme.js +47 -0
- package/es/tooltip/_example/theme.js.map +1 -0
- package/es/tooltip/index.js +36 -0
- package/es/tooltip/index.js.map +1 -0
- package/es/tooltip/style/index.css +59 -0
- package/es/tooltip/style/index.js +2 -0
- package/es/tooltip/style/index.js.map +1 -0
- package/es/utils/log/index.js.map +1 -1
- package/package.json +3 -3
- package/es/_chunks/dep-5U9UjDaf.js +0 -345
- package/es/_chunks/dep-5U9UjDaf.js.map +0 -1
- package/es/_chunks/dep-BuIAffJt.js.map +0 -1
- package/es/_chunks/dep-CD_4-1Xb.js.map +0 -1
- package/es/_chunks/dep-CMPsNAXF.js.map +0 -1
- package/es/_chunks/dep-CkmtEv0Y.js.map +0 -1
- package/es/_chunks/dep-DJmE940f.js.map +0 -1
- package/es/_chunks/dep-DURB9x8g.js.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../../../../_chunks/dep-Cwish4GD.js';
|
|
2
2
|
import { _ as _slicedToArray } from '../../../../_chunks/dep-CzLhKWCf.js';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import React__default, { useState } from 'react';
|
|
4
|
+
import '../../../utils/color-picker/index.js';
|
|
5
5
|
import { Select } from '../../../../select/index.js';
|
|
6
6
|
import FormatInputs from './inputs.js';
|
|
7
|
+
import { a as getColorFormatOptions } from '../../../../_chunks/dep-BK4_iOSv.js';
|
|
7
8
|
import '../../../../_chunks/dep-D-UKOauR.js';
|
|
8
|
-
import '../../../../_chunks/dep-
|
|
9
|
+
import '../../../../_chunks/dep-CHpQ3xhh.js';
|
|
9
10
|
import '../../../../_chunks/dep-Chz4ZJCb.js';
|
|
10
11
|
import '../../../../_chunks/dep-zOZQ0R9g.js';
|
|
11
12
|
import 'lodash-es';
|
|
@@ -13,15 +14,16 @@ import '../../../../_chunks/dep-CgyDw_YI.js';
|
|
|
13
14
|
import '../../../../select/Select.js';
|
|
14
15
|
import '../../../../_chunks/dep-DN7d1SzH.js';
|
|
15
16
|
import 'classnames';
|
|
16
|
-
import '../../../../_chunks/dep-
|
|
17
|
-
import '../../../../_chunks/dep-
|
|
18
|
-
import '../../../../_chunks/dep-
|
|
19
|
-
import '../../../../
|
|
17
|
+
import '../../../../_chunks/dep-DHWwZ2Nj.js';
|
|
18
|
+
import '../../../../_chunks/dep-grkSd2UB.js';
|
|
19
|
+
import '../../../../_chunks/dep-u1x3x6MJ.js';
|
|
20
|
+
import '../../../../config-provider/ConfigContext.js';
|
|
21
|
+
import '../../../../_chunks/dep--nQ-cjme.js';
|
|
20
22
|
import 'dayjs';
|
|
21
23
|
import '../../../../_chunks/dep-BP0-apUT.js';
|
|
22
24
|
import 'hoist-non-react-statics';
|
|
23
|
-
import '../../../../_chunks/dep-
|
|
24
|
-
import '../../../../_chunks/dep-
|
|
25
|
+
import '../../../../_chunks/dep-Cd1UOXnJ.js';
|
|
26
|
+
import '../../../../_chunks/dep-2HsCYcmp.js';
|
|
25
27
|
import '../../../../_chunks/dep-DGvfel3I.js';
|
|
26
28
|
import '../../../../select/Option.js';
|
|
27
29
|
import '../../../../_chunks/dep-PPA-yoAy.js';
|
|
@@ -43,8 +45,8 @@ import '../../../../select-input/hook/useSingle.js';
|
|
|
43
45
|
import '../../../../input/index.js';
|
|
44
46
|
import '../../../../input/Input.js';
|
|
45
47
|
import '@tendaui/icons';
|
|
46
|
-
import '../../../../_chunks/dep-
|
|
47
|
-
import '../../../../_chunks/dep-
|
|
48
|
+
import '../../../../_chunks/dep-spxR0DG0.js';
|
|
49
|
+
import '../../../../_chunks/dep-UHQn9biR.js';
|
|
48
50
|
import '../../../../config-provider/index.js';
|
|
49
51
|
import '../../../../config-provider/ConfigProvider.js';
|
|
50
52
|
import '../../../../input/InputGroup.js';
|
|
@@ -55,14 +57,14 @@ import '../../../../tag-input/TagInput.js';
|
|
|
55
57
|
import '../../../../tag-input/hooks/useTagList.js';
|
|
56
58
|
import '../../../../tag/index.js';
|
|
57
59
|
import '../../../../tag/Tag.js';
|
|
58
|
-
import '../../../../_chunks/dep-
|
|
60
|
+
import '../../../../_chunks/dep-bWaVq_y3.js';
|
|
59
61
|
import '../../../../tag/style/css.js';
|
|
60
62
|
import '../../../../hooks/useDragSorter.js';
|
|
61
63
|
import '../../../../tag-input/style/css.js';
|
|
62
64
|
import '../../../../popup/index.js';
|
|
63
65
|
import '../../../../popup/Popup.js';
|
|
64
66
|
import '../../../../portal/Portal.js';
|
|
65
|
-
import '../../../../_chunks/dep-
|
|
67
|
+
import '../../../../_chunks/dep-B2D1svZy.js';
|
|
66
68
|
import 'react-is';
|
|
67
69
|
import '../../../../_chunks/dep-C1XcmShP.js';
|
|
68
70
|
import '../../../../_chunks/dep-Ccktr_jk.js';
|
|
@@ -71,7 +73,7 @@ import 'react-fast-compare';
|
|
|
71
73
|
import 'react-transition-group';
|
|
72
74
|
import '../../../../popup/style/css.js';
|
|
73
75
|
import '../../../../select-input/style/css.js';
|
|
74
|
-
import '../../../../_chunks/dep-
|
|
76
|
+
import '../../../../_chunks/dep-BbOvNxhg.js';
|
|
75
77
|
import '../../../../select/style/css.js';
|
|
76
78
|
import '../../../../input-number/index.js';
|
|
77
79
|
import '../../../../input-number/InputNumber.js';
|
|
@@ -80,7 +82,7 @@ import '../../../../button/Button.js';
|
|
|
80
82
|
import '../../../../button/style/css.js';
|
|
81
83
|
import '../../../../input-number/useInputNumber.js';
|
|
82
84
|
import '../../../../utils/log/index.js';
|
|
83
|
-
import '../../../../_chunks/dep
|
|
85
|
+
import '../../../../_chunks/dep--qagmRQa.js';
|
|
84
86
|
import '../../../../input-number/style/css.js';
|
|
85
87
|
|
|
86
88
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -97,11 +99,11 @@ var FormatPanel = function FormatPanel(props) {
|
|
|
97
99
|
var handleModeChange = function handleModeChange(v) {
|
|
98
100
|
setFormatMode(v);
|
|
99
101
|
};
|
|
100
|
-
return /* @__PURE__ */
|
|
102
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
101
103
|
className: "".concat(baseClassName, "__format")
|
|
102
|
-
}, /* @__PURE__ */
|
|
104
|
+
}, /* @__PURE__ */React__default.createElement("div", {
|
|
103
105
|
className: "".concat(baseClassName, "__format--item")
|
|
104
|
-
}, /* @__PURE__ */
|
|
106
|
+
}, /* @__PURE__ */React__default.createElement(Select, {
|
|
105
107
|
size: "small",
|
|
106
108
|
className: "".concat(baseClassName, "__format-mode-select"),
|
|
107
109
|
popupProps: _objectSpread({
|
|
@@ -111,7 +113,7 @@ var FormatPanel = function FormatPanel(props) {
|
|
|
111
113
|
value: formatMode,
|
|
112
114
|
onChange: handleModeChange
|
|
113
115
|
}, getColorFormatOptions(enableAlpha).map(function (item) {
|
|
114
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */React__default.createElement(Select.Option, {
|
|
115
117
|
key: item,
|
|
116
118
|
value: item,
|
|
117
119
|
label: item,
|
|
@@ -119,13 +121,13 @@ var FormatPanel = function FormatPanel(props) {
|
|
|
119
121
|
fontSize: "12px"
|
|
120
122
|
}
|
|
121
123
|
});
|
|
122
|
-
}))), /* @__PURE__ */
|
|
124
|
+
}))), /* @__PURE__ */React__default.createElement("div", {
|
|
123
125
|
className: "".concat(baseClassName, "__format--item")
|
|
124
|
-
}, /* @__PURE__ */
|
|
126
|
+
}, /* @__PURE__ */React__default.createElement(FormatInputs, _objectSpread(_objectSpread({}, props), {}, {
|
|
125
127
|
format: formatMode
|
|
126
128
|
}))));
|
|
127
129
|
};
|
|
128
|
-
var
|
|
130
|
+
var FormatPanel$1 = /*#__PURE__*/React__default.memo(FormatPanel);
|
|
129
131
|
|
|
130
|
-
export {
|
|
132
|
+
export { FormatPanel$1 as default };
|
|
131
133
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../components/color-picker/components/panel/format/index.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport { Color, getColorFormatOptions } from \"../../../utils/color-picker\";\nimport Select from \"../../../../select\";\nimport type { TdColorPickerProps } from \"../../../type\";\nimport FormatInputs from \"./inputs\";\n\nexport interface TdColorFormatProps extends TdColorPickerProps {\n onInputChange: () => void;\n baseClassName: string;\n color: Color;\n}\n\nconst FormatPanel = (props: TdColorFormatProps) => {\n const { enableAlpha, baseClassName, format, selectInputProps } = props;\n const [formatMode, setFormatMode] = useState(format);\n\n const handleModeChange = (v: TdColorPickerProps[\"format\"]) => {\n setFormatMode(v);\n };\n\n return (\n <div className={`${baseClassName}__format`}>\n <div className={`${baseClassName}__format--item`}>\n <Select\n size=\"small\"\n className={`${baseClassName}__format-mode-select`}\n popupProps={{\n overlayClassName: `${baseClassName}__select-options`,\n ...selectInputProps?.popupProps\n }}\n autoWidth\n value={formatMode}\n onChange={handleModeChange}\n >\n {getColorFormatOptions(enableAlpha).map((item) => (\n <Select.Option key={item} value={item} label={item} style={{ fontSize: \"12px\" }} />\n ))}\n </Select>\n </div>\n <div className={`${baseClassName}__format--item`}>\n <FormatInputs {...props} format={formatMode} />\n </div>\n </div>\n );\n};\n\nexport default React.memo(FormatPanel);\n"],"names":["FormatPanel","props","enableAlpha","baseClassName","format","selectInputProps","_useState","useState","_useState2","_slicedToArray","formatMode","setFormatMode","handleModeChange","v","React","createElement","className","concat","Select","size","popupProps","_objectSpread","overlayClassName","autoWidth","value","onChange","getColorFormatOptions","map","item","Option","key","label","style","fontSize","FormatInputs","memo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../components/color-picker/components/panel/format/index.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport { Color, getColorFormatOptions } from \"../../../utils/color-picker\";\nimport Select from \"../../../../select\";\nimport type { TdColorPickerProps } from \"../../../type\";\nimport FormatInputs from \"./inputs\";\n\nexport interface TdColorFormatProps extends TdColorPickerProps {\n onInputChange: () => void;\n baseClassName: string;\n color: Color;\n}\n\nconst FormatPanel = (props: TdColorFormatProps) => {\n const { enableAlpha, baseClassName, format, selectInputProps } = props;\n const [formatMode, setFormatMode] = useState(format);\n\n const handleModeChange = (v: TdColorPickerProps[\"format\"]) => {\n setFormatMode(v);\n };\n\n return (\n <div className={`${baseClassName}__format`}>\n <div className={`${baseClassName}__format--item`}>\n <Select\n size=\"small\"\n className={`${baseClassName}__format-mode-select`}\n popupProps={{\n overlayClassName: `${baseClassName}__select-options`,\n ...selectInputProps?.popupProps\n }}\n autoWidth\n value={formatMode}\n onChange={handleModeChange}\n >\n {getColorFormatOptions(enableAlpha).map((item) => (\n <Select.Option key={item} value={item} label={item} style={{ fontSize: \"12px\" }} />\n ))}\n </Select>\n </div>\n <div className={`${baseClassName}__format--item`}>\n <FormatInputs {...props} format={formatMode} />\n </div>\n </div>\n );\n};\n\nexport default React.memo(FormatPanel);\n"],"names":["FormatPanel","props","enableAlpha","baseClassName","format","selectInputProps","_useState","useState","_useState2","_slicedToArray","formatMode","setFormatMode","handleModeChange","v","React","createElement","className","concat","Select","size","popupProps","_objectSpread","overlayClassName","autoWidth","value","onChange","getColorFormatOptions","map","item","Option","key","label","style","fontSize","FormatInputs","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,IAAMA,WAAA,GAAc,SAAdA,WAAAA,CAAeC,KAAA,EAA8B;AACjD,EAAA,IAAQC,WAAA,GAAyDD,KAAA,CAAzDC,WAAA;IAAaC,aAAA,GAA4CF,KAAA,CAA5CE,aAAA;IAAeC,MAAA,GAA6BH,KAAA,CAA7BG,MAAA;IAAQC,mBAAqBJ,KAAA,CAArBI;AAC5C,EAAA,IAAAC,SAAA,GAAoCC,SAASH,MAAM,CAAA;IAAAI,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA5CI,IAAAA,UAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAYG,IAAAA,aAAa,GAAAH,UAAA,CAAA,CAAA,CAAA;AAEhC,EAAA,IAAMI,gBAAA,GAAmB,SAAnBA,gBAAAA,CAAoBC,CAAA,EAAoC;IAC5DF,aAAA,CAAcE,CAAC,CAAA;EACjB,CAAA;AAEA,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;IAAIC,SAAA,EAAA,EAAA,CAAAC,MAAA,CAAcd,aAAa,EAAA,UAAA;AAAA,GAAA,iBAC9BW,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;IAAIC,SAAA,EAAA,EAAA,CAAAC,MAAA,CAAcd,aAAa,EAAA,gBAAA;AAAA,GAAA,iBAC9BW,cAAA,CAAAC,aAAA,CAACG,MAAA,EAAA;AACCC,IAAAA,IAAA,EAAK,OAAA;AACLH,IAAAA,SAAA,EAAA,EAAA,CAAAC,MAAA,CAAcd,aAAa,EAAA,sBAAA,CAAA;AAC3BiB,IAAAA,UAAA,EAAAC,aAAA,CAAA;MACEC,gBAAA,EAAA,EAAA,CAAAL,MAAA,CAAqBd,aAAa,EAAA,kBAAA;AAAA,KAAA,EAC/BE,gBAAA,KAAA,IAAA,IAAAA,gBAAA,uBAAAA,gBAAA,CAAkBe,UAAA,CACvB;AACAG,IAAAA,SAAA,EAAS,IAAA;AACTC,IAAAA,KAAA,EAAOd,UAAA;AACPe,IAAAA,QAAA,EAAUb;GAAA,EAETc,qBAAA,CAAsBxB,WAAW,CAAA,CAAEyB,GAAA,CAAI,UAACC,IAAA,EAAA;IAAA,sBACvCd,cAAA,CAAAC,aAAA,CAACG,OAAOW,MAAA,EAAP;AAAcC,MAAAA,KAAKF,IAAA;AAAMJ,MAAAA,KAAA,EAAOI;AAAMG,MAAAA,KAAA,EAAOH,IAAA;AAAMI,MAAAA,OAAO;AAAEC,QAAAA,QAAA,EAAU;AAAO;AAAA,KAAG,CAClF;EAAA,CAAA,CACH,CACF,CAAA,iBACAnB,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;IAAIC,qBAAcb,aAAa,EAAA,gBAAA;AAAA,GAAA,iBAC9BW,cAAA,CAAAC,aAAA,CAACmB,8CAAiBjC,KAAA,CAAA,EAAA,EAAA,EAAA;AAAOG,IAAAA,MAAA,EAAQM;GAAA,CAAY,CAC/C,CACF,CAAA;AAEJ,CAAA;AAEA,oBAAA,aAAeI,cAAA,CAAMqB,KAAKnC,WAAW,CAAA;;;;"}
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../../../../_chunks/dep-Cwish4GD.js';
|
|
2
|
-
import
|
|
2
|
+
import React__default, { useRef, useEffect } from 'react';
|
|
3
3
|
import { throttle } from 'lodash-es';
|
|
4
|
-
import
|
|
4
|
+
import '../../../utils/color-picker/index.js';
|
|
5
5
|
import { Input } from '../../../../input/index.js';
|
|
6
6
|
import { InputNumber } from '../../../../input-number/index.js';
|
|
7
|
-
import {
|
|
7
|
+
import { g as getColorFormatMap, b as getColorFormatInputs } from '../../../../_chunks/dep-BK4_iOSv.js';
|
|
8
|
+
import { C as Color } from '../../../../_chunks/dep-CHpQ3xhh.js';
|
|
8
9
|
import '../../../../_chunks/dep-D-UKOauR.js';
|
|
9
10
|
import '../../../../_chunks/dep-Chz4ZJCb.js';
|
|
10
|
-
import '../../../../_chunks/dep-CgyDw_YI.js';
|
|
11
11
|
import '../../../../_chunks/dep-CzLhKWCf.js';
|
|
12
12
|
import '../../../../_chunks/dep-zOZQ0R9g.js';
|
|
13
|
+
import '../../../../_chunks/dep-CgyDw_YI.js';
|
|
13
14
|
import '../../../../input/Input.js';
|
|
14
15
|
import '../../../../_chunks/dep-DN7d1SzH.js';
|
|
15
16
|
import 'classnames';
|
|
16
17
|
import '@tendaui/icons';
|
|
17
18
|
import '../../../../_chunks/dep-BRbJGDI9.js';
|
|
18
19
|
import '../../../../_chunks/dep-DRwijJcv.js';
|
|
19
|
-
import '../../../../_chunks/dep-
|
|
20
|
-
import '../../../../_chunks/dep-
|
|
20
|
+
import '../../../../_chunks/dep-grkSd2UB.js';
|
|
21
|
+
import '../../../../_chunks/dep-spxR0DG0.js';
|
|
21
22
|
import '../../../../_chunks/dep-DGvfel3I.js';
|
|
22
|
-
import '../../../../_chunks/dep-
|
|
23
|
-
import '../../../../
|
|
23
|
+
import '../../../../_chunks/dep-u1x3x6MJ.js';
|
|
24
|
+
import '../../../../config-provider/ConfigContext.js';
|
|
25
|
+
import '../../../../_chunks/dep--nQ-cjme.js';
|
|
24
26
|
import 'dayjs';
|
|
25
|
-
import '../../../../_chunks/dep-
|
|
27
|
+
import '../../../../_chunks/dep-UHQn9biR.js';
|
|
26
28
|
import '../../../../config-provider/index.js';
|
|
27
29
|
import '../../../../config-provider/ConfigProvider.js';
|
|
28
30
|
import '../../../../input/InputGroup.js';
|
|
@@ -35,15 +37,15 @@ import '../../../../loading/Loading.js';
|
|
|
35
37
|
import '../../../../common/Portal.js';
|
|
36
38
|
import 'react-dom';
|
|
37
39
|
import '../../../../loading/Gradient.js';
|
|
38
|
-
import '../../../../_chunks/dep-
|
|
40
|
+
import '../../../../_chunks/dep-DHWwZ2Nj.js';
|
|
39
41
|
import '../../../../_chunks/dep-PPA-yoAy.js';
|
|
40
42
|
import '../../../../_chunks/dep-DbVHGoUC.js';
|
|
41
43
|
import '../../../../loading/style/css.js';
|
|
42
44
|
import '../../../../button/style/css.js';
|
|
43
45
|
import '../../../../input-number/useInputNumber.js';
|
|
44
46
|
import '../../../../utils/log/index.js';
|
|
45
|
-
import '../../../../_chunks/dep
|
|
46
|
-
import '../../../../_chunks/dep-
|
|
47
|
+
import '../../../../_chunks/dep--qagmRQa.js';
|
|
48
|
+
import '../../../../_chunks/dep-bWaVq_y3.js';
|
|
47
49
|
import '../../../../input-number/style/css.js';
|
|
48
50
|
|
|
49
51
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -105,7 +107,7 @@ var FormatInputs = function FormatInputs(props) {
|
|
|
105
107
|
return throttleUpdate.cancel();
|
|
106
108
|
};
|
|
107
109
|
}, [color.saturation, color.hue, color.value, color.alpha, format]);
|
|
108
|
-
return /* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
109
111
|
className: "input-group"
|
|
110
112
|
}, getColorFormatInputs(format, enableAlpha).map(function (config) {
|
|
111
113
|
var currentValue = modelValueRef.current[config.key];
|
|
@@ -121,17 +123,17 @@ var FormatInputs = function FormatInputs(props) {
|
|
|
121
123
|
return handleInputChange(config.key, v, config.max);
|
|
122
124
|
}
|
|
123
125
|
});
|
|
124
|
-
return /* @__PURE__ */
|
|
126
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
125
127
|
className: "input-group__item",
|
|
126
128
|
key: config.key,
|
|
127
129
|
style: {
|
|
128
130
|
flex: config.flex || 1
|
|
129
131
|
}
|
|
130
|
-
}, config.type === "input" ? /* @__PURE__ */
|
|
132
|
+
}, config.type === "input" ? /* @__PURE__ */React__default.createElement(Input, _objectSpread(_objectSpread({}, commonProps), {}, {
|
|
131
133
|
defaultValue: currentValue,
|
|
132
134
|
key: "".concat(inputKey.current, "-").concat(currentValue),
|
|
133
|
-
|
|
134
|
-
})) : /* @__PURE__ */
|
|
135
|
+
maxLength: format === "HEX" ? 9 : void 0
|
|
136
|
+
})) : /* @__PURE__ */React__default.createElement(InputNumber, _objectSpread(_objectSpread({}, commonProps), {}, {
|
|
135
137
|
min: config.min,
|
|
136
138
|
max: config.max,
|
|
137
139
|
format: config.format,
|
|
@@ -144,7 +146,7 @@ var FormatInputs = function FormatInputs(props) {
|
|
|
144
146
|
})));
|
|
145
147
|
}));
|
|
146
148
|
};
|
|
147
|
-
var FormatInputs$1 = /*#__PURE__*/
|
|
149
|
+
var FormatInputs$1 = /*#__PURE__*/React__default.memo(FormatInputs);
|
|
148
150
|
|
|
149
151
|
export { FormatInputs$1 as default };
|
|
150
152
|
//# sourceMappingURL=inputs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.js","sources":["../../../../../../components/color-picker/components/panel/format/inputs.tsx"],"sourcesContent":["import React, { useRef, useEffect } from \"react\";\nimport { throttle } from \"lodash-es\";\nimport { Color, getColorFormatInputs, getColorFormatMap } from \"../../../utils/color-picker\";\nimport type { TdColorFormatProps } from \".\";\nimport Input from \"../../../../input\";\nimport InputNumber from \"../../../../input-number\";\n\nconst FormatInputs = (props: TdColorFormatProps) => {\n const { format, enableAlpha, inputProps, disabled, onInputChange, color } = props;\n const modelValueRef = useRef<Record<string, number | string>>({});\n const lastModelValue = useRef<Record<string, number | string>>({});\n const inputKey = useRef<number>(0);\n\n const updateModelValue = () => {\n const value = getColorFormatMap(color, \"encode\")[format];\n if (!value || typeof value === \"string\") return;\n\n const valueObj = value as Record<string, number | string>;\n if (enableAlpha && \"a\" in valueObj) {\n valueObj.a = Math.round(color.alpha * 100);\n }\n\n const changedFormatValue: Record<string, number | string> = {};\n Object.keys(valueObj).forEach((key) => {\n if (valueObj[key] !== modelValueRef.current[key]) {\n changedFormatValue[key] = valueObj[key];\n }\n lastModelValue.current[key] = valueObj[key];\n });\n\n if (Object.keys(changedFormatValue).length > 0) {\n modelValueRef.current = valueObj;\n }\n };\n\n const handleInputChange = (key: string, v: number | string, max: number) => {\n inputKey.current = performance.now();\n\n if (v.toString().trim() === \"\") {\n const lastValue = lastModelValue.current[key];\n color.update(lastValue as string);\n onInputChange();\n return;\n }\n\n if (!v || v === lastModelValue.current[key] || Number(v) < 0 || Number(v) > max) return;\n lastModelValue.current[key] = v;\n\n const newFormatValue = {\n ...modelValueRef.current,\n [key]: v\n };\n modelValueRef.current = newFormatValue;\n if (key === \"a\") {\n color.alpha = (v as number) / 100;\n } else if (key === \"hex\" || key === \"css\") {\n color.update(v as string);\n } else {\n color.update(Color.object2color(newFormatValue, format));\n }\n onInputChange();\n };\n\n updateModelValue();\n useEffect(() => {\n const throttleUpdate = throttle(updateModelValue, 100);\n throttleUpdate();\n return () => throttleUpdate.cancel();\n }, [color.saturation, color.hue, color.value, color.alpha, format]);\n\n return (\n <div className=\"input-group\">\n {getColorFormatInputs(format, enableAlpha).map((config) => {\n const currentValue = modelValueRef.current[config.key];\n const commonProps = {\n ...inputProps,\n disabled,\n title: currentValue,\n align: \"center\" as const,\n size: \"small\" as const,\n onBlur: (v: string) => handleInputChange(config.key, v, config.max),\n onEnter: (v: string) => handleInputChange(config.key, v, config.max)\n };\n\n return (\n <div\n className=\"input-group__item\"\n key={config.key}\n style={{\n flex: config.flex || 1\n }}\n >\n {config.type === \"input\" ? (\n <Input\n {...commonProps}\n defaultValue={currentValue as string}\n key={`${inputKey.current}-${currentValue}`}\n
|
|
1
|
+
{"version":3,"file":"inputs.js","sources":["../../../../../../components/color-picker/components/panel/format/inputs.tsx"],"sourcesContent":["import React, { useRef, useEffect } from \"react\";\nimport { throttle } from \"lodash-es\";\nimport { Color, getColorFormatInputs, getColorFormatMap } from \"../../../utils/color-picker\";\nimport type { TdColorFormatProps } from \".\";\nimport Input from \"../../../../input\";\nimport InputNumber from \"../../../../input-number\";\n\nconst FormatInputs = (props: TdColorFormatProps) => {\n const { format, enableAlpha, inputProps, disabled, onInputChange, color } = props;\n const modelValueRef = useRef<Record<string, number | string>>({});\n const lastModelValue = useRef<Record<string, number | string>>({});\n const inputKey = useRef<number>(0);\n\n const updateModelValue = () => {\n const value = getColorFormatMap(color, \"encode\")[format];\n if (!value || typeof value === \"string\") return;\n\n const valueObj = value as Record<string, number | string>;\n if (enableAlpha && \"a\" in valueObj) {\n valueObj.a = Math.round(color.alpha * 100);\n }\n\n const changedFormatValue: Record<string, number | string> = {};\n Object.keys(valueObj).forEach((key) => {\n if (valueObj[key] !== modelValueRef.current[key]) {\n changedFormatValue[key] = valueObj[key];\n }\n lastModelValue.current[key] = valueObj[key];\n });\n\n if (Object.keys(changedFormatValue).length > 0) {\n modelValueRef.current = valueObj;\n }\n };\n\n const handleInputChange = (key: string, v: number | string, max: number) => {\n inputKey.current = performance.now();\n\n if (v.toString().trim() === \"\") {\n const lastValue = lastModelValue.current[key];\n color.update(lastValue as string);\n onInputChange();\n return;\n }\n\n if (!v || v === lastModelValue.current[key] || Number(v) < 0 || Number(v) > max) return;\n lastModelValue.current[key] = v;\n\n const newFormatValue = {\n ...modelValueRef.current,\n [key]: v\n };\n modelValueRef.current = newFormatValue;\n if (key === \"a\") {\n color.alpha = (v as number) / 100;\n } else if (key === \"hex\" || key === \"css\") {\n color.update(v as string);\n } else {\n color.update(Color.object2color(newFormatValue, format));\n }\n onInputChange();\n };\n\n updateModelValue();\n useEffect(() => {\n const throttleUpdate = throttle(updateModelValue, 100);\n throttleUpdate();\n return () => throttleUpdate.cancel();\n }, [color.saturation, color.hue, color.value, color.alpha, format]);\n\n return (\n <div className=\"input-group\">\n {getColorFormatInputs(format, enableAlpha).map((config) => {\n const currentValue = modelValueRef.current[config.key];\n const commonProps = {\n ...inputProps,\n disabled,\n title: currentValue,\n align: \"center\" as const,\n size: \"small\" as const,\n onBlur: (v: string) => handleInputChange(config.key, v, config.max),\n onEnter: (v: string) => handleInputChange(config.key, v, config.max)\n };\n\n return (\n <div\n className=\"input-group__item\"\n key={config.key}\n style={{\n flex: config.flex || 1\n }}\n >\n {config.type === \"input\" ? (\n <Input\n {...commonProps}\n defaultValue={currentValue as string}\n key={`${inputKey.current}-${currentValue}`}\n maxLength={format === \"HEX\" ? 9 : undefined}\n />\n ) : (\n <InputNumber\n {...commonProps}\n min={config.min}\n max={config.max}\n format={config.format as (value: number) => string}\n step={1}\n value={currentValue as number}\n onChange={(v) => handleInputChange(config.key, v ?? (config.min as number), config.max)}\n theme=\"normal\"\n />\n )}\n </div>\n );\n })}\n </div>\n );\n};\n\nexport default React.memo(FormatInputs);\n"],"names":["FormatInputs","props","format","enableAlpha","inputProps","disabled","onInputChange","color","modelValueRef","useRef","lastModelValue","inputKey","updateModelValue","value","getColorFormatMap","valueObj","a","Math","round","alpha","changedFormatValue","Object","keys","forEach","key","current","length","handleInputChange","v","max","performance","now","toString","trim","lastValue","update","Number","newFormatValue","_objectSpread","_defineProperty","Color","object2color","useEffect","throttleUpdate","throttle","cancel","saturation","hue","React","createElement","className","getColorFormatInputs","map","config","currentValue","commonProps","title","align","size","onBlur","onEnter","style","flex","type","Input","defaultValue","concat","maxLength","InputNumber","min","step","onChange","theme","memo"],"mappings":"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"}
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import '../../utils/color-picker/index.js';
|
|
3
3
|
import { Radio } from '../../../radio/index.js';
|
|
4
|
-
import {
|
|
4
|
+
import { i as COLOR_MODES } from '../../../_chunks/dep-CHpQ3xhh.js';
|
|
5
5
|
import '../../../_chunks/dep-Chz4ZJCb.js';
|
|
6
6
|
import '../../../_chunks/dep-Cwish4GD.js';
|
|
7
7
|
import '../../../_chunks/dep-D-UKOauR.js';
|
|
8
|
+
import '../../../_chunks/dep-BK4_iOSv.js';
|
|
8
9
|
import '../../../_chunks/dep-CgyDw_YI.js';
|
|
9
10
|
import '../../../_chunks/dep-CzLhKWCf.js';
|
|
10
11
|
import '../../../_chunks/dep-zOZQ0R9g.js';
|
|
11
12
|
import 'lodash-es';
|
|
12
|
-
import '../../../_chunks/dep
|
|
13
|
+
import '../../../_chunks/dep--svkhMCP.js';
|
|
13
14
|
import '../../../_chunks/dep-BP0-apUT.js';
|
|
14
15
|
import 'hoist-non-react-statics';
|
|
15
16
|
import '../../../common/Check.js';
|
|
16
17
|
import '../../../_chunks/dep-DN7d1SzH.js';
|
|
17
18
|
import 'classnames';
|
|
18
|
-
import '../../../_chunks/dep-
|
|
19
|
-
import '../../../_chunks/dep-
|
|
20
|
-
import '../../../
|
|
19
|
+
import '../../../_chunks/dep-DHWwZ2Nj.js';
|
|
20
|
+
import '../../../_chunks/dep-u1x3x6MJ.js';
|
|
21
|
+
import '../../../config-provider/ConfigContext.js';
|
|
22
|
+
import '../../../_chunks/dep--nQ-cjme.js';
|
|
21
23
|
import 'dayjs';
|
|
22
|
-
import '../../../_chunks/dep-
|
|
23
|
-
import '../../../_chunks/dep
|
|
24
|
+
import '../../../_chunks/dep-grkSd2UB.js';
|
|
25
|
+
import '../../../_chunks/dep--qagmRQa.js';
|
|
24
26
|
import '../../../_chunks/dep-DGvfel3I.js';
|
|
25
|
-
import '../../../_chunks/dep-
|
|
27
|
+
import '../../../_chunks/dep-B2D1svZy.js';
|
|
26
28
|
import '../../../_chunks/dep-Ccktr_jk.js';
|
|
27
29
|
import '../../../_chunks/dep-DRwijJcv.js';
|
|
28
30
|
import '../../../radio/style/css.js';
|
|
@@ -38,23 +40,23 @@ var Header = function Header(props) {
|
|
|
38
40
|
if (isSingleMode) {
|
|
39
41
|
return null;
|
|
40
42
|
}
|
|
41
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
42
44
|
className: "".concat(baseClassName, "__head")
|
|
43
|
-
}, /* @__PURE__ */
|
|
45
|
+
}, /* @__PURE__ */React__default.createElement("div", {
|
|
44
46
|
className: "".concat(baseClassName, "__mode")
|
|
45
|
-
}, /* @__PURE__ */
|
|
47
|
+
}, /* @__PURE__ */React__default.createElement(Radio.Group, {
|
|
46
48
|
variant: "default-filled",
|
|
47
49
|
size: "small",
|
|
48
50
|
value: mode,
|
|
49
51
|
onChange: onModeChange
|
|
50
52
|
}, Object.keys(COLOR_MODES).map(function (key) {
|
|
51
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */React__default.createElement(Radio.Button, {
|
|
52
54
|
key: key,
|
|
53
55
|
value: key
|
|
54
56
|
}, COLOR_MODES[key]);
|
|
55
57
|
}))));
|
|
56
58
|
};
|
|
57
|
-
var header = /*#__PURE__*/
|
|
59
|
+
var header = /*#__PURE__*/React__default.memo(Header);
|
|
58
60
|
|
|
59
61
|
export { header as default };
|
|
60
62
|
//# sourceMappingURL=header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sources":["../../../../../components/color-picker/components/panel/header.tsx"],"sourcesContent":["import React from \"react\";\nimport { COLOR_MODES } from \"../../utils/color-picker\";\nimport Radio, { RadioValue } from \"../../../radio\";\nimport { TdColorModes, TdColorPickerProps } from \"../../type\";\n\nexport interface ColorPanelHeaderProps extends TdColorPickerProps {\n mode?: TdColorModes;\n colorModes?: Array<TdColorModes>;\n onModeChange?: (value: RadioValue, context: { e: React.ChangeEvent<HTMLInputElement> }) => void;\n baseClassName?: string;\n}\n\nconst Header = (props: ColorPanelHeaderProps) => {\n const { baseClassName = \"\", mode = \"monochrome\", colorModes, onModeChange } = props;\n\n const isSingleMode = colorModes?.length === 1;\n\n if (isSingleMode) {\n return null;\n }\n\n return (\n <div className={`${baseClassName}__head`}>\n <div className={`${baseClassName}__mode`}>\n <Radio.Group variant=\"default-filled\" size=\"small\" value={mode} onChange={onModeChange}>\n {Object.keys(COLOR_MODES).map((key) => (\n <Radio.Button key={key} value={key}>\n {COLOR_MODES[key as keyof typeof COLOR_MODES]}\n </Radio.Button>\n ))}\n </Radio.Group>\n </div>\n </div>\n );\n};\n\nexport default React.memo(Header);\n"],"names":["Header","props","_props$baseClassName","baseClassName","_props$mode","mode","colorModes","onModeChange","isSingleMode","length","React","createElement","className","concat","Radio","Group","variant","size","value","onChange","Object","keys","COLOR_MODES","map","key","Button","memo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"header.js","sources":["../../../../../components/color-picker/components/panel/header.tsx"],"sourcesContent":["import React from \"react\";\nimport { COLOR_MODES } from \"../../utils/color-picker\";\nimport Radio, { RadioValue } from \"../../../radio\";\nimport { TdColorModes, TdColorPickerProps } from \"../../type\";\n\nexport interface ColorPanelHeaderProps extends TdColorPickerProps {\n mode?: TdColorModes;\n colorModes?: Array<TdColorModes>;\n onModeChange?: (value: RadioValue, context: { e: React.ChangeEvent<HTMLInputElement> }) => void;\n baseClassName?: string;\n}\n\nconst Header = (props: ColorPanelHeaderProps) => {\n const { baseClassName = \"\", mode = \"monochrome\", colorModes, onModeChange } = props;\n\n const isSingleMode = colorModes?.length === 1;\n\n if (isSingleMode) {\n return null;\n }\n\n return (\n <div className={`${baseClassName}__head`}>\n <div className={`${baseClassName}__mode`}>\n <Radio.Group variant=\"default-filled\" size=\"small\" value={mode} onChange={onModeChange}>\n {Object.keys(COLOR_MODES).map((key) => (\n <Radio.Button key={key} value={key}>\n {COLOR_MODES[key as keyof typeof COLOR_MODES]}\n </Radio.Button>\n ))}\n </Radio.Group>\n </div>\n </div>\n );\n};\n\nexport default React.memo(Header);\n"],"names":["Header","props","_props$baseClassName","baseClassName","_props$mode","mode","colorModes","onModeChange","isSingleMode","length","React","createElement","className","concat","Radio","Group","variant","size","value","onChange","Object","keys","COLOR_MODES","map","key","Button","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,IAAMA,MAAA,GAAS,SAATA,MAAAA,CAAUC,KAAA,EAAiC;AAC/C,EAAA,IAAAC,oBAAA,GAA8ED,KAAA,CAAtEE,aAAA;AAAAA,IAAAA,aAAA,GAAAD,oBAAA,KAAA,KAAA,CAAA,GAAgB,EAAA,GAAAA,oBAAA;IAAAE,WAAA,GAAsDH,KAAA,CAAlDI;AAAAA,IAAAA,gCAAO,YAAA,GAAAD,WAAA;IAAcE,UAAA,GAA6BL,KAAA,CAA7BK,UAAA;IAAYC,eAAiBN,KAAA,CAAjBM;EAE7D,IAAMC,YAAA,GAAe,CAAAF,uBAAAA,iCAAAA,WAAYG,MAAA,MAAW,CAAA;AAE5C,EAAA,IAAID,YAAA,EAAc;AAChB,IAAA,OAAO,IAAA;AACT,EAAA;AAEA,EAAA,sBACEE,cAAA,CAAAC,aAAA,CAAC;IAAIC,SAAA,EAAA,EAAA,CAAAC,MAAA,CAAcV,aAAa,EAAA,QAAA;AAAA,GAAA,iBAC9BO,cAAA,CAAAC,aAAA,CAAC;IAAIC,SAAA,EAAA,EAAA,CAAAC,MAAA,CAAcV,aAAa,EAAA,QAAA;GAAA,iBAC9BO,cAAA,CAAAC,aAAA,CAACG,MAAMC,KAAA,EAAN;AAAYC,IAAAA,SAAQ,gBAAA;AAAiBC,IAAAA,IAAA,EAAK;AAAQC,IAAAA,KAAA,EAAOb,IAAA;AAAMc,IAAAA,UAAUZ;GAAA,EACvEa,MAAA,CAAOC,KAAKC,WAAW,CAAA,CAAEC,IAAI,UAACC,GAAA,EAAA;IAAA,mDAC5BV,KAAA,CAAMW,MAAA,EAAN;AAAaD,MAAAA,GAAA,EAAAA,GAAA;AAAUN,MAAAA,KAAA,EAAOM;OAC5BF,WAAA,CAAYE,GAA+B,CAC9C,CACD;EAAA,CAAA,CACH,CACF,CACF,CAAA;AAEJ,CAAA;AAEA,aAAA,aAAed,cAAA,CAAMgB,KAAK1B,MAAM,CAAA;;;;"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import ColorSlider from './slider.js';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import '../../utils/color-picker/index.js';
|
|
5
|
-
import '../../../_chunks/dep-
|
|
5
|
+
import '../../../_chunks/dep-CHpQ3xhh.js';
|
|
6
6
|
import '../../../_chunks/dep-CzLhKWCf.js';
|
|
7
7
|
import '../../../_chunks/dep-Chz4ZJCb.js';
|
|
8
8
|
import '../../../_chunks/dep-Cwish4GD.js';
|
|
9
9
|
import '../../../_chunks/dep-D-UKOauR.js';
|
|
10
10
|
import '../../../_chunks/dep-zOZQ0R9g.js';
|
|
11
11
|
import 'lodash-es';
|
|
12
|
+
import '../../../_chunks/dep-BK4_iOSv.js';
|
|
12
13
|
import '../../../_chunks/dep-CgyDw_YI.js';
|
|
13
14
|
import '../../../_chunks/dep-BbeHB7S3.js';
|
|
14
15
|
|
|
@@ -17,7 +18,7 @@ var HueSlider = function HueSlider(props) {
|
|
|
17
18
|
baseClassName = props.baseClassName,
|
|
18
19
|
disabled = props.disabled,
|
|
19
20
|
onChange = props.onChange;
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */React__default.createElement(ColorSlider, {
|
|
21
22
|
disabled: disabled,
|
|
22
23
|
baseClassName: baseClassName,
|
|
23
24
|
className: "".concat(baseClassName, "__hue"),
|
|
@@ -27,7 +28,7 @@ var HueSlider = function HueSlider(props) {
|
|
|
27
28
|
onChange: onChange
|
|
28
29
|
});
|
|
29
30
|
};
|
|
30
|
-
var HueSlider$1 = /*#__PURE__*/
|
|
31
|
+
var HueSlider$1 = /*#__PURE__*/React__default.memo(HueSlider);
|
|
31
32
|
|
|
32
33
|
export { HueSlider$1 as default };
|
|
33
34
|
//# sourceMappingURL=hue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hue.js","sources":["../../../../../components/color-picker/components/panel/hue.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TdColorBaseProps } from \"../../type\";\nimport ColorSlider from \"./slider\";\n\nconst HueSlider = (props: TdColorBaseProps) => {\n const { color, baseClassName, disabled, onChange } = props;\n return (\n <ColorSlider\n disabled={disabled}\n baseClassName={baseClassName}\n className={`${baseClassName}__hue`}\n color={color}\n value={color.hue}\n type=\"hue\"\n onChange={onChange}\n />\n );\n};\n\nexport default React.memo(HueSlider);\n"],"names":["HueSlider","props","color","baseClassName","disabled","onChange","React","createElement","ColorSlider","className","concat","value","hue","type","memo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"hue.js","sources":["../../../../../components/color-picker/components/panel/hue.tsx"],"sourcesContent":["import React from \"react\";\nimport type { TdColorBaseProps } from \"../../type\";\nimport ColorSlider from \"./slider\";\n\nconst HueSlider = (props: TdColorBaseProps) => {\n const { color, baseClassName, disabled, onChange } = props;\n return (\n <ColorSlider\n disabled={disabled}\n baseClassName={baseClassName}\n className={`${baseClassName}__hue`}\n color={color}\n value={color.hue}\n type=\"hue\"\n onChange={onChange}\n />\n );\n};\n\nexport default React.memo(HueSlider);\n"],"names":["HueSlider","props","color","baseClassName","disabled","onChange","React","createElement","ColorSlider","className","concat","value","hue","type","memo"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAMA,SAAA,GAAY,SAAZA,SAAAA,CAAaC,KAAA,EAA4B;AAC7C,EAAA,IAAQC,KAAA,GAA6CD,KAAA,CAA7CC,KAAA;IAAOC,aAAA,GAAsCF,KAAA,CAAtCE,aAAA;IAAeC,QAAA,GAAuBH,KAAA,CAAvBG,QAAA;IAAUC,WAAaJ,KAAA,CAAbI;AACxC,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAACC,WAAA,EAAA;AACCJ,IAAAA,QAAA,EAAAA,QAAA;AACAD,IAAAA,aAAA,EAAAA,aAAA;AACAM,IAAAA,SAAA,EAAA,EAAA,CAAAC,MAAA,CAAcP,aAAa,EAAA,OAAA,CAAA;AAC3BD,IAAAA,KAAA,EAAAA,KAAA;IACAS,OAAOT,KAAA,CAAMU,GAAA;AACbC,IAAAA,IAAA,EAAK,KAAA;AACLR,IAAAA,QAAA,EAAAA;AAAA,GACF,CAAA;AAEJ,CAAA;AAEA,kBAAA,aAAeC,cAAA,CAAMQ,KAAKd,SAAS,CAAA;;;;"}
|
|
@@ -4,23 +4,26 @@ import '../../../_chunks/dep-CzLhKWCf.js';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../../utils/color-picker/index.js';
|
|
7
|
-
import '../../../_chunks/dep
|
|
8
|
-
import '../../../_chunks/dep-
|
|
7
|
+
import '../../../_chunks/dep--qagmRQa.js';
|
|
8
|
+
import '../../../_chunks/dep-grkSd2UB.js';
|
|
9
9
|
import '../../../_chunks/dep-DGvfel3I.js';
|
|
10
|
-
import '../../../_chunks/dep-
|
|
11
|
-
export { C as default } from '../../../_chunks/dep-
|
|
12
|
-
import '../../../_chunks/dep-
|
|
10
|
+
import '../../../_chunks/dep-UHQn9biR.js';
|
|
11
|
+
export { C as default } from '../../../_chunks/dep-Dnwq3YvL.js';
|
|
12
|
+
import '../../../_chunks/dep-Blkje0_M.js';
|
|
13
13
|
import './alpha.js';
|
|
14
14
|
import './hue.js';
|
|
15
15
|
import './saturation.js';
|
|
16
16
|
import './swatches.js';
|
|
17
|
-
import '
|
|
17
|
+
import './format/index.js';
|
|
18
|
+
import '../../../_chunks/dep-CHpQ3xhh.js';
|
|
19
|
+
import '../../../_chunks/dep-BK4_iOSv.js';
|
|
18
20
|
import '../../../_chunks/dep-D-UKOauR.js';
|
|
19
21
|
import '../../../_chunks/dep-Chz4ZJCb.js';
|
|
20
22
|
import '../../../_chunks/dep-zOZQ0R9g.js';
|
|
21
23
|
import 'lodash-es';
|
|
22
|
-
import '../../../_chunks/dep-
|
|
23
|
-
import '../../../
|
|
24
|
+
import '../../../_chunks/dep-u1x3x6MJ.js';
|
|
25
|
+
import '../../../config-provider/ConfigContext.js';
|
|
26
|
+
import '../../../_chunks/dep--nQ-cjme.js';
|
|
24
27
|
import 'dayjs';
|
|
25
28
|
import '../../../config-provider/index.js';
|
|
26
29
|
import '../../../config-provider/ConfigProvider.js';
|
|
@@ -28,5 +31,66 @@ import '../../../_chunks/dep-DN7d1SzH.js';
|
|
|
28
31
|
import './slider.js';
|
|
29
32
|
import '../../../_chunks/dep-BbeHB7S3.js';
|
|
30
33
|
import '@tendaui/icons';
|
|
31
|
-
import '../../../_chunks/dep-
|
|
34
|
+
import '../../../_chunks/dep-bWaVq_y3.js';
|
|
35
|
+
import '../../../select/index.js';
|
|
36
|
+
import '../../../select/Select.js';
|
|
37
|
+
import '../../../_chunks/dep-DHWwZ2Nj.js';
|
|
38
|
+
import '../../../_chunks/dep-BP0-apUT.js';
|
|
39
|
+
import 'hoist-non-react-statics';
|
|
40
|
+
import '../../../_chunks/dep-Cd1UOXnJ.js';
|
|
41
|
+
import '../../../_chunks/dep-2HsCYcmp.js';
|
|
42
|
+
import '../../../select/Option.js';
|
|
43
|
+
import '../../../_chunks/dep-PPA-yoAy.js';
|
|
44
|
+
import '../../../_chunks/dep-Dlppf0JU.js';
|
|
45
|
+
import '../../../_chunks/dep-U1T8CQY9.js';
|
|
46
|
+
import '../../../common/FakeArrow.js';
|
|
47
|
+
import '../../../loading/index.js';
|
|
48
|
+
import '../../../loading/Loading.js';
|
|
49
|
+
import '../../../_chunks/dep-DRwijJcv.js';
|
|
50
|
+
import '../../../common/Portal.js';
|
|
51
|
+
import 'react-dom';
|
|
52
|
+
import '../../../_chunks/dep-BRbJGDI9.js';
|
|
53
|
+
import '../../../loading/Gradient.js';
|
|
54
|
+
import '../../../_chunks/dep-DbVHGoUC.js';
|
|
55
|
+
import '../../../loading/style/css.js';
|
|
56
|
+
import '../../../select-input/index.js';
|
|
57
|
+
import '../../../select-input/SelectInput.js';
|
|
58
|
+
import '../../../select-input/hook/useSingle.js';
|
|
59
|
+
import '../../../input/index.js';
|
|
60
|
+
import '../../../input/Input.js';
|
|
61
|
+
import '../../../_chunks/dep-spxR0DG0.js';
|
|
62
|
+
import '../../../input/InputGroup.js';
|
|
63
|
+
import '../../../input/style/css.js';
|
|
64
|
+
import '../../../select-input/hook/useMultiple.js';
|
|
65
|
+
import '../../../tag-input/index.js';
|
|
66
|
+
import '../../../tag-input/TagInput.js';
|
|
67
|
+
import '../../../tag-input/hooks/useTagList.js';
|
|
68
|
+
import '../../../tag/index.js';
|
|
69
|
+
import '../../../tag/Tag.js';
|
|
70
|
+
import '../../../tag/style/css.js';
|
|
71
|
+
import '../../../hooks/useDragSorter.js';
|
|
72
|
+
import '../../../tag-input/style/css.js';
|
|
73
|
+
import '../../../popup/index.js';
|
|
74
|
+
import '../../../popup/Popup.js';
|
|
75
|
+
import '../../../portal/Portal.js';
|
|
76
|
+
import '../../../_chunks/dep-B2D1svZy.js';
|
|
77
|
+
import 'react-is';
|
|
78
|
+
import '../../../_chunks/dep-C1XcmShP.js';
|
|
79
|
+
import '../../../_chunks/dep-Ccktr_jk.js';
|
|
80
|
+
import '@popperjs/core';
|
|
81
|
+
import 'react-fast-compare';
|
|
82
|
+
import 'react-transition-group';
|
|
83
|
+
import '../../../popup/style/css.js';
|
|
84
|
+
import '../../../select-input/style/css.js';
|
|
85
|
+
import '../../../_chunks/dep-BbOvNxhg.js';
|
|
86
|
+
import '../../../select/style/css.js';
|
|
87
|
+
import './format/inputs.js';
|
|
88
|
+
import '../../../input-number/index.js';
|
|
89
|
+
import '../../../input-number/InputNumber.js';
|
|
90
|
+
import '../../../button/index.js';
|
|
91
|
+
import '../../../button/Button.js';
|
|
92
|
+
import '../../../button/style/css.js';
|
|
93
|
+
import '../../../input-number/useInputNumber.js';
|
|
94
|
+
import '../../../utils/log/index.js';
|
|
95
|
+
import '../../../input-number/style/css.js';
|
|
32
96
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { useRef, useCallback, useEffect } from 'react';
|
|
2
2
|
import '../../utils/color-picker/index.js';
|
|
3
3
|
import { u as useMouseEvent } from '../../../_chunks/dep-BbeHB7S3.js';
|
|
4
|
-
import { l as SATURATION_PANEL_DEFAULT_HEIGHT, S as SATURATION_PANEL_DEFAULT_WIDTH } from '../../../_chunks/dep-
|
|
4
|
+
import { l as SATURATION_PANEL_DEFAULT_HEIGHT, S as SATURATION_PANEL_DEFAULT_WIDTH } from '../../../_chunks/dep-CHpQ3xhh.js';
|
|
5
5
|
import '../../../_chunks/dep-Chz4ZJCb.js';
|
|
6
6
|
import '../../../_chunks/dep-Cwish4GD.js';
|
|
7
7
|
import '../../../_chunks/dep-D-UKOauR.js';
|
|
8
|
+
import '../../../_chunks/dep-BK4_iOSv.js';
|
|
8
9
|
import '../../../_chunks/dep-CgyDw_YI.js';
|
|
9
10
|
import '../../../_chunks/dep-CzLhKWCf.js';
|
|
10
11
|
import '../../../_chunks/dep-zOZQ0R9g.js';
|
|
@@ -82,20 +83,20 @@ var Saturation = function Saturation(props) {
|
|
|
82
83
|
panelRectRef.current.width = ((_panelRef$current3 = panelRef.current) === null || _panelRef$current3 === void 0 ? void 0 : _panelRef$current3.offsetWidth) || SATURATION_PANEL_DEFAULT_WIDTH;
|
|
83
84
|
panelRectRef.current.height = ((_panelRef$current4 = panelRef.current) === null || _panelRef$current4 === void 0 ? void 0 : _panelRef$current4.offsetHeight) || SATURATION_PANEL_DEFAULT_HEIGHT;
|
|
84
85
|
}, [handleDrag]);
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
86
87
|
ref: panelRef,
|
|
87
88
|
className: "".concat(baseClassName, "__saturation"),
|
|
88
89
|
style: {
|
|
89
90
|
background: "hsl(".concat(color.hue, ", 100%, 50%)")
|
|
90
91
|
}
|
|
91
|
-
}, /* @__PURE__ */
|
|
92
|
+
}, /* @__PURE__ */React__default.createElement("span", {
|
|
92
93
|
className: "".concat(baseClassName, "__thumb"),
|
|
93
94
|
role: "slider",
|
|
94
95
|
tabIndex: 0,
|
|
95
96
|
style: styles()
|
|
96
97
|
}));
|
|
97
98
|
};
|
|
98
|
-
var SaturationPanel = /*#__PURE__*/
|
|
99
|
+
var SaturationPanel = /*#__PURE__*/React__default.memo(Saturation);
|
|
99
100
|
|
|
100
101
|
export { SaturationPanel as default };
|
|
101
102
|
//# sourceMappingURL=saturation.js.map
|