@tendaui/react 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +1 -1
- 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-DbVHGoUC.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 +32 -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 +47 -31
- 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 +11 -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/style/index.css +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/style/index.css +21 -63
- 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 +48 -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 +17 -18
- 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 +6 -6
- 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/style/index.css +3 -3
- 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
- package/es/alert/style/css.js +0 -1
- package/es/badge/style/css.js +0 -1
- package/es/button/style/css.js +0 -1
- package/es/checkbox/style/css.js +0 -1
- package/es/color-picker/style/css.js +0 -1
- package/es/dialog/style/css.js +0 -1
- package/es/drawer/style/css.js +0 -1
- package/es/fireworks/style/css.js +0 -0
- package/es/form/style/css.js +0 -1
- package/es/input/style/css.js +0 -1
- package/es/input-number/style/css.js +0 -1
- package/es/ip-input/style/css.js +0 -1
- package/es/layout/style/css.js +0 -1
- package/es/list/style/css.js +0 -1
- package/es/loading/style/css.js +0 -1
- package/es/notification/style/css.js +0 -1
- package/es/popup/style/css.js +0 -1
- package/es/radio/style/css.js +0 -0
- package/es/select/style/css.js +0 -1
- package/es/select-input/style/css.js +0 -1
- package/es/slider/style/css.js +0 -1
- package/es/switch/style/css.js +0 -1
- package/es/table/style/css.js +0 -1
- package/es/tag/style/css.js +0 -1
- package/es/tag-input/style/css.js +0 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { _ as _slicedToArray } from '../../_chunks/dep-CzLhKWCf.js';
|
|
2
|
+
import React__default, { useState } from 'react';
|
|
3
|
+
import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
|
|
4
|
+
import { Button } from '@tendaui/react';
|
|
5
|
+
import '../../_chunks/dep-Cwish4GD.js';
|
|
6
|
+
import '../../_chunks/dep-D-UKOauR.js';
|
|
7
|
+
import '../../_chunks/dep-CgyDw_YI.js';
|
|
8
|
+
import 'classnames';
|
|
9
|
+
import '@tendaui/icons';
|
|
10
|
+
import '../../_chunks/dep-DGvfel3I.js';
|
|
11
|
+
import '../../_chunks/dep-grkSd2UB.js';
|
|
12
|
+
import 'lodash-es';
|
|
13
|
+
import '../../_chunks/dep-u1x3x6MJ.js';
|
|
14
|
+
import '../../config-provider/ConfigContext.js';
|
|
15
|
+
import '../../_chunks/dep--nQ-cjme.js';
|
|
16
|
+
import 'dayjs';
|
|
17
|
+
import '../style/css.js';
|
|
18
|
+
|
|
19
|
+
var ControlledExample = function ControlledExample() {
|
|
20
|
+
var _useState = useState("192.168.1.1"),
|
|
21
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
22
|
+
value = _useState2[0],
|
|
23
|
+
setValue = _useState2[1];
|
|
24
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
25
|
+
style: {
|
|
26
|
+
display: "flex",
|
|
27
|
+
flexDirection: "column",
|
|
28
|
+
gap: "16px"
|
|
29
|
+
}
|
|
30
|
+
}, /* @__PURE__ */React__default.createElement(IPInput, {
|
|
31
|
+
value: value,
|
|
32
|
+
onChange: setValue,
|
|
33
|
+
allowCIDR: true,
|
|
34
|
+
showClear: true
|
|
35
|
+
}), /* @__PURE__ */React__default.createElement("div", {
|
|
36
|
+
style: {
|
|
37
|
+
color: "#666",
|
|
38
|
+
fontSize: "12px"
|
|
39
|
+
}
|
|
40
|
+
}, "\u5F53\u524D\u503C: ", value || "(\u7A7A)"), /* @__PURE__ */React__default.createElement("div", {
|
|
41
|
+
style: {
|
|
42
|
+
display: "flex",
|
|
43
|
+
gap: "8px",
|
|
44
|
+
flexWrap: "wrap"
|
|
45
|
+
}
|
|
46
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
47
|
+
size: "small",
|
|
48
|
+
onClick: function onClick() {
|
|
49
|
+
return setValue("10.0.0.1");
|
|
50
|
+
}
|
|
51
|
+
}, "\u8BBE\u4E3A 10.0.0.1"), /* @__PURE__ */React__default.createElement(Button, {
|
|
52
|
+
size: "small",
|
|
53
|
+
onClick: function onClick() {
|
|
54
|
+
return setValue("172.16.0.1/24");
|
|
55
|
+
}
|
|
56
|
+
}, "\u8BBE\u4E3A 172.16.0.1/24"), /* @__PURE__ */React__default.createElement(Button, {
|
|
57
|
+
size: "small",
|
|
58
|
+
onClick: function onClick() {
|
|
59
|
+
return setValue("");
|
|
60
|
+
}
|
|
61
|
+
}, "\u6E05\u7A7A")));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { ControlledExample as default };
|
|
65
|
+
//# sourceMappingURL=controlled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controlled.js","sources":["../../../../components/ip-input/_example/controlled.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport IPInput from \"../IPInput\";\nimport { Button } from \"@tendaui/react\";\n\nconst ControlledExample = () => {\n const [value, setValue] = useState(\"192.168.1.1\");\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <IPInput value={value} onChange={setValue} allowCIDR={true} showClear={true} />\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>当前值: {value || \"(空)\"}</div>\n <div style={{ display: \"flex\", gap: \"8px\", flexWrap: \"wrap\" }}>\n <Button size=\"small\" onClick={() => setValue(\"10.0.0.1\")}>\n 设为 10.0.0.1\n </Button>\n <Button size=\"small\" onClick={() => setValue(\"172.16.0.1/24\")}>\n 设为 172.16.0.1/24\n </Button>\n <Button size=\"small\" onClick={() => setValue(\"\")}>\n 清空\n </Button>\n </div>\n </div>\n );\n};\n\nexport default ControlledExample;\n"],"names":["ControlledExample","_useState","useState","_useState2","_slicedToArray","value","setValue","style","display","flexDirection","gap","React","createElement","IPInput","onChange","allowCIDR","showClear","color","fontSize","flexWrap","Button","size","onClick"],"mappings":";;;;;;;;;;;;;;;;;;AAIA,IAAMA,oBAAoB,SAApBA,oBAA0B;AAC9B,EAAA,IAAAC,SAAA,GAA0BC,SAAS,aAAa,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAzCI,IAAAA,KAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAOG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA;AACtB,EAAA,mDACG,KAAA,EAAA;AAAII,IAAAA,KAAA,EAAO;AAAEC,MAAAA,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|
3
|
+
import '../../_chunks/dep-Cwish4GD.js';
|
|
4
|
+
import '../../_chunks/dep-D-UKOauR.js';
|
|
5
|
+
import '../../_chunks/dep-CgyDw_YI.js';
|
|
6
|
+
import '../../_chunks/dep-CzLhKWCf.js';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '@tendaui/icons';
|
|
9
|
+
import '../../_chunks/dep-DGvfel3I.js';
|
|
10
|
+
import '../../_chunks/dep-grkSd2UB.js';
|
|
11
|
+
import 'lodash-es';
|
|
12
|
+
import '../../_chunks/dep-u1x3x6MJ.js';
|
|
13
|
+
import '../../config-provider/ConfigContext.js';
|
|
14
|
+
import '../../_chunks/dep--nQ-cjme.js';
|
|
15
|
+
import 'dayjs';
|
|
16
|
+
import '../style/css.js';
|
|
17
|
+
|
|
18
|
+
var DefaultExample = function DefaultExample() {
|
|
19
|
+
return /* @__PURE__ */React__default.createElement(IPInput, {
|
|
20
|
+
placeholder: "192.168.0.1",
|
|
21
|
+
allowIPv6: false,
|
|
22
|
+
allowCIDR: false
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { DefaultExample as default };
|
|
27
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","sources":["../../../../components/ip-input/_example/default.tsx"],"sourcesContent":["import React from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst DefaultExample = () => (\n <IPInput\n placeholder=\"192.168.0.1\"\n allowIPv6={false}\n allowCIDR={false}\n />\n);\n\nexport default DefaultExample;"],"names":["DefaultExample","React","createElement","IPInput","placeholder","allowIPv6","allowCIDR"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,iBAAiB,SAAjBA;wBACJC,cAAA,CAAAC,aAAA,CAACC,OAAA,EAAA;AACCC,IAAAA,WAAA,EAAY,aAAA;AACZC,IAAAA,SAAA,EAAW,KAAA;AACXC,IAAAA,SAAA,EAAW;AAAA,GACb,CAAA;AAAA;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { _ as _slicedToArray } from '../../_chunks/dep-CzLhKWCf.js';
|
|
2
|
+
import React__default, { useState } from 'react';
|
|
3
|
+
import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
|
|
4
|
+
import '../../_chunks/dep-Cwish4GD.js';
|
|
5
|
+
import '../../_chunks/dep-D-UKOauR.js';
|
|
6
|
+
import '../../_chunks/dep-CgyDw_YI.js';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '@tendaui/icons';
|
|
9
|
+
import '../../_chunks/dep-DGvfel3I.js';
|
|
10
|
+
import '../../_chunks/dep-grkSd2UB.js';
|
|
11
|
+
import 'lodash-es';
|
|
12
|
+
import '../../_chunks/dep-u1x3x6MJ.js';
|
|
13
|
+
import '../../config-provider/ConfigContext.js';
|
|
14
|
+
import '../../_chunks/dep--nQ-cjme.js';
|
|
15
|
+
import 'dayjs';
|
|
16
|
+
import '../style/css.js';
|
|
17
|
+
|
|
18
|
+
var FullFeaturedExample = function FullFeaturedExample() {
|
|
19
|
+
var _useState = useState(""),
|
|
20
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
21
|
+
value = _useState2[0],
|
|
22
|
+
setValue = _useState2[1];
|
|
23
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
24
|
+
style: {
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
gap: "16px"
|
|
28
|
+
}
|
|
29
|
+
}, /* @__PURE__ */React__default.createElement(IPInput, {
|
|
30
|
+
value: value,
|
|
31
|
+
onChange: setValue,
|
|
32
|
+
allowIPv6: true,
|
|
33
|
+
allowCIDR: true,
|
|
34
|
+
showClear: true,
|
|
35
|
+
placeholder: "\u8F93\u5165 IPv4 \u6216 IPv6 \u5730\u5740",
|
|
36
|
+
tips: "\u652F\u6301 IPv4\u3001IPv6 \u548C CIDR \u683C\u5F0F"
|
|
37
|
+
}), /* @__PURE__ */React__default.createElement("div", {
|
|
38
|
+
style: {
|
|
39
|
+
padding: "12px",
|
|
40
|
+
background: "#f5f5f5",
|
|
41
|
+
borderRadius: "4px",
|
|
42
|
+
fontSize: "12px"
|
|
43
|
+
}
|
|
44
|
+
}, /* @__PURE__ */React__default.createElement("strong", null, "\u5F53\u524D\u503C\uFF1A"), value || "(\u7A7A)"));
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export { FullFeaturedExample as default };
|
|
48
|
+
//# sourceMappingURL=full-featured.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"full-featured.js","sources":["../../../../components/ip-input/_example/full-featured.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst FullFeaturedExample = () => {\n const [value, setValue] = useState(\"\");\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <IPInput\n value={value}\n onChange={setValue}\n allowIPv6={true}\n allowCIDR={true}\n showClear={true}\n placeholder=\"输入 IPv4 或 IPv6 地址\"\n tips=\"支持 IPv4、IPv6 和 CIDR 格式\"\n />\n <div\n style={{\n padding: \"12px\",\n background: \"#f5f5f5\",\n borderRadius: \"4px\",\n fontSize: \"12px\"\n }}\n >\n <strong>当前值:</strong>\n {value || \"(空)\"}\n </div>\n </div>\n );\n};\n\nexport default FullFeaturedExample;"],"names":["FullFeaturedExample","_useState","useState","_useState2","_slicedToArray","value","setValue","React","createElement","style","display","flexDirection","gap","IPInput","onChange","allowIPv6","allowCIDR","showClear","placeholder","tips","padding","background","borderRadius","fontSize"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,sBAAsB,SAAtBA,sBAA4B;AAChC,EAAA,IAAAC,SAAA,GAA0BC,SAAS,EAAE,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA9BI,IAAAA,KAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAOG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA;AACtB,EAAA,sBACEI,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS;AAAQC,MAAAA,aAAA,EAAe,QAAA;AAAUC,MAAAA,GAAA,EAAK;AAAO;AAAA,GAAA,iBAClEL,cAAA,CAAAC,aAAA,CAACK,OAAA,EAAA;AACCR,IAAAA,KAAA,EAAAA,KAAA;AACAS,IAAAA,QAAA,EAAUR,QAAA;AACVS,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,WAAA,EAAY,4CAAA;AACZC,IAAAA,IAAA,EAAK;GACP,CAAA,iBACAZ,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AACCC,IAAAA,KAAA,EAAO;AACLW,MAAAA,OAAA,EAAS,MAAA;AACTC,MAAAA,UAAA,EAAY,SAAA;AACZC,MAAAA,YAAA,EAAc,KAAA;AACdC,MAAAA,QAAA,EAAU;AACZ;AAAA,GAAA,iBAEAhB,cAAA,CAAAC,aAAA,CAAC,gBAAO,0BAAI,CAAA,EACXH,KAAA,IAAS,UACZ,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { _ as _slicedToArray } from '../../_chunks/dep-CzLhKWCf.js';
|
|
2
|
+
import React__default, { useState } from 'react';
|
|
3
|
+
import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
|
|
4
|
+
import '../../_chunks/dep-Cwish4GD.js';
|
|
5
|
+
import '../../_chunks/dep-D-UKOauR.js';
|
|
6
|
+
import '../../_chunks/dep-CgyDw_YI.js';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '@tendaui/icons';
|
|
9
|
+
import '../../_chunks/dep-DGvfel3I.js';
|
|
10
|
+
import '../../_chunks/dep-grkSd2UB.js';
|
|
11
|
+
import 'lodash-es';
|
|
12
|
+
import '../../_chunks/dep-u1x3x6MJ.js';
|
|
13
|
+
import '../../config-provider/ConfigContext.js';
|
|
14
|
+
import '../../_chunks/dep--nQ-cjme.js';
|
|
15
|
+
import 'dayjs';
|
|
16
|
+
import '../style/css.js';
|
|
17
|
+
|
|
18
|
+
var IPv6Example = function IPv6Example() {
|
|
19
|
+
var _useState = useState(""),
|
|
20
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
21
|
+
value = _useState2[0],
|
|
22
|
+
setValue = _useState2[1];
|
|
23
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
24
|
+
style: {
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
gap: "16px"
|
|
28
|
+
}
|
|
29
|
+
}, /* @__PURE__ */React__default.createElement(IPInput, {
|
|
30
|
+
value: value,
|
|
31
|
+
onChange: function onChange(val) {
|
|
32
|
+
setValue(val);
|
|
33
|
+
console.log("\u503C:", val);
|
|
34
|
+
},
|
|
35
|
+
allowIPv6: true,
|
|
36
|
+
allowCIDR: true,
|
|
37
|
+
placeholder: "2001:db8::1"
|
|
38
|
+
}), /* @__PURE__ */React__default.createElement("div", {
|
|
39
|
+
style: {
|
|
40
|
+
color: "#666",
|
|
41
|
+
fontSize: "12px"
|
|
42
|
+
}
|
|
43
|
+
}, "\u5F53\u524D\u503C: ", value || "(\u7A7A)"));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { IPv6Example as default };
|
|
47
|
+
//# sourceMappingURL=ipv6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ipv6.js","sources":["../../../../components/ip-input/_example/ipv6.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst IPv6Example = () => {\n const [value, setValue] = useState(\"\");\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <IPInput\n value={value}\n onChange={(val) => {\n setValue(val);\n console.log(\"值:\", val);\n }}\n allowIPv6={true}\n allowCIDR={true}\n placeholder=\"2001:db8::1\"\n />\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>当前值: {value || \"(空)\"}</div>\n </div>\n );\n};\n\nexport default IPv6Example;"],"names":["IPv6Example","_useState","useState","_useState2","_slicedToArray","value","setValue","React","createElement","style","display","flexDirection","gap","IPInput","onChange","val","console","log","allowIPv6","allowCIDR","placeholder","color","fontSize"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,cAAc,SAAdA,cAAoB;AACxB,EAAA,IAAAC,SAAA,GAA0BC,SAAS,EAAE,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA9BI,IAAAA,KAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAOG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA;AACtB,EAAA,sBACEI,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS;AAAQC,MAAAA,aAAA,EAAe,QAAA;AAAUC,MAAAA,GAAA,EAAK;AAAO;AAAA,GAAA,iBAClEL,cAAA,CAAAC,aAAA,CAACK,OAAA,EAAA;AACCR,IAAAA,KAAA,EAAAA,KAAA;AACAS,IAAAA,QAAA,EAAU,SAAVA,QAAAA,CAAWC,GAAA,EAAQ;MACjBT,QAAA,CAASS,GAAG,CAAA;AACZC,MAAAA,OAAA,CAAQC,GAAA,CAAI,WAAMF,GAAG,CAAA;IACvB,CAAA;AACAG,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,WAAA,EAAY;GACd,CAAA,iBACAb,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEY,MAAAA,KAAA,EAAO,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,EAAG,sBAAA,EAAMjB,KAAA,IAAS,UAAM,CACxE,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
|
|
3
|
+
import '../../_chunks/dep-Cwish4GD.js';
|
|
4
|
+
import '../../_chunks/dep-D-UKOauR.js';
|
|
5
|
+
import '../../_chunks/dep-CgyDw_YI.js';
|
|
6
|
+
import '../../_chunks/dep-CzLhKWCf.js';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '@tendaui/icons';
|
|
9
|
+
import '../../_chunks/dep-DGvfel3I.js';
|
|
10
|
+
import '../../_chunks/dep-grkSd2UB.js';
|
|
11
|
+
import 'lodash-es';
|
|
12
|
+
import '../../_chunks/dep-u1x3x6MJ.js';
|
|
13
|
+
import '../../config-provider/ConfigContext.js';
|
|
14
|
+
import '../../_chunks/dep--nQ-cjme.js';
|
|
15
|
+
import 'dayjs';
|
|
16
|
+
import '../style/css.js';
|
|
17
|
+
|
|
18
|
+
var KeyboardNavigationExample = function KeyboardNavigationExample() {
|
|
19
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
20
|
+
style: {
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
gap: "16px"
|
|
24
|
+
}
|
|
25
|
+
}, /* @__PURE__ */React__default.createElement("div", {
|
|
26
|
+
style: {
|
|
27
|
+
color: "#666",
|
|
28
|
+
fontSize: "12px"
|
|
29
|
+
}
|
|
30
|
+
}, /* @__PURE__ */React__default.createElement("p", {
|
|
31
|
+
style: {
|
|
32
|
+
fontWeight: "bold"
|
|
33
|
+
}
|
|
34
|
+
}, "\u952E\u76D8\u64CD\u4F5C\u8BF4\u660E\uFF1A"), /* @__PURE__ */React__default.createElement("ul", {
|
|
35
|
+
style: {
|
|
36
|
+
margin: "8px 0",
|
|
37
|
+
paddingLeft: "20px"
|
|
38
|
+
}
|
|
39
|
+
}, /* @__PURE__ */React__default.createElement("li", null, "\u8F93\u5165 3 \u4F4D\u6570\u5B57\u81EA\u52A8\u8DF3\u8F6C\u5230\u4E0B\u4E00\u6BB5"), /* @__PURE__ */React__default.createElement("li", null, "\u8F93\u5165 . \u6216\u7A7A\u683C\u8DF3\u8F6C\u5230\u4E0B\u4E00\u6BB5"), /* @__PURE__ */React__default.createElement("li", null, "\u5DE6/\u53F3\u7BAD\u5934\u952E\u5728\u6BB5\u4E4B\u95F4\u79FB\u52A8"), /* @__PURE__ */React__default.createElement("li", null, "\u5728\u6BB5\u5F00\u5934\u6309 Backspace \u8DF3\u8F6C\u5230\u4E0A\u4E00\u6BB5"))), /* @__PURE__ */React__default.createElement(IPInput, {
|
|
40
|
+
placeholder: "192.168.0.1",
|
|
41
|
+
autoFocus: true
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { KeyboardNavigationExample as default };
|
|
46
|
+
//# sourceMappingURL=keyboard-navigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard-navigation.js","sources":["../../../../components/ip-input/_example/keyboard-navigation.tsx"],"sourcesContent":["import React from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst KeyboardNavigationExample = () => (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>\n <p style={{ fontWeight: \"bold\" }}>键盘操作说明:</p>\n <ul style={{ margin: \"8px 0\", paddingLeft: \"20px\" }}>\n <li>输入 3 位数字自动跳转到下一段</li>\n <li>输入 . 或空格跳转到下一段</li>\n <li>左/右箭头键在段之间移动</li>\n <li>在段开头按 Backspace 跳转到上一段</li>\n </ul>\n </div>\n <IPInput placeholder=\"192.168.0.1\" autoFocus />\n </div>\n);\n\nexport default KeyboardNavigationExample;"],"names":["KeyboardNavigationExample","React","createElement","style","display","flexDirection","gap","color","fontSize","fontWeight","margin","paddingLeft","IPInput","placeholder","autoFocus"],"mappings":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+
import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
|
|
4
|
+
import '../../_chunks/dep-Cwish4GD.js';
|
|
5
|
+
import '../../_chunks/dep-D-UKOauR.js';
|
|
6
|
+
import '../../_chunks/dep-CgyDw_YI.js';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '@tendaui/icons';
|
|
9
|
+
import '../../_chunks/dep-DGvfel3I.js';
|
|
10
|
+
import '../../_chunks/dep-grkSd2UB.js';
|
|
11
|
+
import 'lodash-es';
|
|
12
|
+
import '../../_chunks/dep-u1x3x6MJ.js';
|
|
13
|
+
import '../../config-provider/ConfigContext.js';
|
|
14
|
+
import '../../_chunks/dep--nQ-cjme.js';
|
|
15
|
+
import 'dayjs';
|
|
16
|
+
import '../style/css.js';
|
|
17
|
+
|
|
18
|
+
var PasteDemoExample = function PasteDemoExample() {
|
|
19
|
+
var _useState = useState(""),
|
|
20
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
21
|
+
value = _useState2[0],
|
|
22
|
+
setValue = _useState2[1];
|
|
23
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
24
|
+
style: {
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
gap: "16px"
|
|
28
|
+
}
|
|
29
|
+
}, /* @__PURE__ */React__default.createElement("div", {
|
|
30
|
+
style: {
|
|
31
|
+
color: "#666",
|
|
32
|
+
fontSize: "12px"
|
|
33
|
+
}
|
|
34
|
+
}, "\u5C1D\u8BD5\u7C98\u8D34\u4EE5\u4E0B\u5185\u5BB9\uFF1A", /* @__PURE__ */React__default.createElement("ul", {
|
|
35
|
+
style: {
|
|
36
|
+
margin: "8px 0",
|
|
37
|
+
paddingLeft: "20px"
|
|
38
|
+
}
|
|
39
|
+
}, /* @__PURE__ */React__default.createElement("li", null, "192.168.0.1"), /* @__PURE__ */React__default.createElement("li", null, "192.168.0.1/24"), /* @__PURE__ */React__default.createElement("li", null, "abc 10.0.0.1 xyz\uFF08\u4F1A\u81EA\u52A8\u63D0\u53D6 IP\uFF09"), /* @__PURE__ */React__default.createElement("li", null, "2001:db8::1\uFF08\u9700\u8981\u5F00\u542F IPv6\uFF09"))), /* @__PURE__ */React__default.createElement(IPInput, {
|
|
40
|
+
value: value,
|
|
41
|
+
onChange: setValue,
|
|
42
|
+
allowCIDR: true,
|
|
43
|
+
allowIPv6: true,
|
|
44
|
+
showClear: true
|
|
45
|
+
}), /* @__PURE__ */React__default.createElement("div", {
|
|
46
|
+
style: {
|
|
47
|
+
color: "#666",
|
|
48
|
+
fontSize: "12px"
|
|
49
|
+
}
|
|
50
|
+
}, "\u5F53\u524D\u503C: ", value || "(\u7A7A)"));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export { PasteDemoExample as default };
|
|
54
|
+
//# sourceMappingURL=paste-demo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paste-demo.js","sources":["../../../../components/ip-input/_example/paste-demo.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst PasteDemoExample = () => {\n const [value, setValue] = useState(\"\");\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>\n 尝试粘贴以下内容:\n <ul style={{ margin: \"8px 0\", paddingLeft: \"20px\" }}>\n <li>192.168.0.1</li>\n <li>192.168.0.1/24</li>\n <li>abc 10.0.0.1 xyz(会自动提取 IP)</li>\n <li>2001:db8::1(需要开启 IPv6)</li>\n </ul>\n </div>\n <IPInput value={value} onChange={setValue} allowCIDR={true} allowIPv6={true} showClear={true} />\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>当前值: {value || \"(空)\"}</div>\n </div>\n );\n};\n\nexport default PasteDemoExample;\n"],"names":["PasteDemoExample","_useState","useState","_useState2","_slicedToArray","value","setValue","React","createElement","style","display","flexDirection","gap","color","fontSize","margin","paddingLeft","IPInput","onChange","allowCIDR","allowIP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AM,CAAA,iBAC9Fd,cAAA,CAAAC,aAAA,CAAC;AAAIC,IAAAA,KAAA,EAAO;AAAEI,MAAAA,KAAA,EAAO,MAAA;AAAQC,MAAAA,UAAU;AAAO;AAAA,GAAA,EAAG,sBAAA,EAAMT,KAAA,IAAS,UAAM,CACxE,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
|
|
3
|
+
import '../../_chunks/dep-Cwish4GD.js';
|
|
4
|
+
import '../../_chunks/dep-D-UKOauR.js';
|
|
5
|
+
import '../../_chunks/dep-CgyDw_YI.js';
|
|
6
|
+
import '../../_chunks/dep-CzLhKWCf.js';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '@tendaui/icons';
|
|
9
|
+
import '../../_chunks/dep-DGvfel3I.js';
|
|
10
|
+
import '../../_chunks/dep-grkSd2UB.js';
|
|
11
|
+
import 'lodash-es';
|
|
12
|
+
import '../../_chunks/dep-u1x3x6MJ.js';
|
|
13
|
+
import '../../config-provider/ConfigContext.js';
|
|
14
|
+
import '../../_chunks/dep--nQ-cjme.js';
|
|
15
|
+
import 'dayjs';
|
|
16
|
+
import '../style/css.js';
|
|
17
|
+
|
|
18
|
+
var StatesExample = function StatesExample() {
|
|
19
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
20
|
+
style: {
|
|
21
|
+
display: "flex",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
gap: "16px"
|
|
24
|
+
}
|
|
25
|
+
}, /* @__PURE__ */React__default.createElement("div", null, /* @__PURE__ */React__default.createElement("div", {
|
|
26
|
+
style: {
|
|
27
|
+
marginBottom: "8px",
|
|
28
|
+
color: "#666"
|
|
29
|
+
}
|
|
30
|
+
}, "\u6B63\u5E38\u72B6\u6001"), /* @__PURE__ */React__default.createElement(IPInput, {
|
|
31
|
+
defaultValue: "192.168.0.1"
|
|
32
|
+
})), /* @__PURE__ */React__default.createElement("div", null, /* @__PURE__ */React__default.createElement("div", {
|
|
33
|
+
style: {
|
|
34
|
+
marginBottom: "8px",
|
|
35
|
+
color: "#666"
|
|
36
|
+
}
|
|
37
|
+
}, "\u7981\u7528\u72B6\u6001"), /* @__PURE__ */React__default.createElement(IPInput, {
|
|
38
|
+
defaultValue: "192.168.0.1",
|
|
39
|
+
disabled: true
|
|
40
|
+
})), /* @__PURE__ */React__default.createElement("div", null, /* @__PURE__ */React__default.createElement("div", {
|
|
41
|
+
style: {
|
|
42
|
+
marginBottom: "8px",
|
|
43
|
+
color: "#666"
|
|
44
|
+
}
|
|
45
|
+
}, "\u53EA\u8BFB\u72B6\u6001"), /* @__PURE__ */React__default.createElement(IPInput, {
|
|
46
|
+
defaultValue: "192.168.0.1",
|
|
47
|
+
readOnly: true
|
|
48
|
+
})));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { StatesExample as default };
|
|
52
|
+
//# sourceMappingURL=states.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"states.js","sources":["../../../../components/ip-input/_example/states.tsx"],"sourcesContent":["import React from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst StatesExample = () => (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <div>\n <div style={{ marginBottom: \"8px\", color: \"#666\" }}>正常状态</div>\n <IPInput defaultValue=\"192.168.0.1\" />\n </div>\n <div>\n <div style={{ marginBottom: \"8px\", color: \"#666\" }}>禁用状态</div>\n <IPInput defaultValue=\"192.168.0.1\" disabled />\n </div>\n <div>\n <div style={{ marginBottom: \"8px\", color: \"#666\" }}>只读状态</div>\n <IPInput defaultValue=\"192.168.0.1\" readOnly />\n </div>\n </div>\n);\n\nexport default StatesExample;"],"names":["StatesExample","React","createElement","style","display","flexDirection","gap","marginBottom","color","IPInput","defaultValue","disabled","readOnly"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,aAAA,GAAgB,SAAh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
|
|
3
|
+
import { I as IPInput } from '../../_chunks/dep-BZdpKjaa.js';
|
|
4
|
+
import '../../_chunks/dep-Cwish4GD.js';
|
|
5
|
+
import '../../_chunks/dep-D-UKOauR.js';
|
|
6
|
+
import '../../_chunks/dep-CgyDw_YI.js';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '@tendaui/icons';
|
|
9
|
+
import '../../_chunks/dep-DGvfel3I.js';
|
|
10
|
+
import '../../_chunks/dep-grkSd2UB.js';
|
|
11
|
+
import 'lodash-es';
|
|
12
|
+
import '../../_chunks/dep-u1x3x6MJ.js';
|
|
13
|
+
import '../../config-provider/ConfigContext.js';
|
|
14
|
+
import '../../_chunks/dep--nQ-cjme.js';
|
|
15
|
+
import 'dayjs';
|
|
16
|
+
import '../style/css.js';
|
|
17
|
+
|
|
18
|
+
var WithCIDRExample = function WithCIDRExample() {
|
|
19
|
+
var _useState = useState(""),
|
|
20
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
21
|
+
value = _useState2[0],
|
|
22
|
+
setValue = _useState2[1];
|
|
23
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
24
|
+
style: {
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
gap: "16px"
|
|
28
|
+
}
|
|
29
|
+
}, /* @__PURE__ */React__default.createElement(IPInput, {
|
|
30
|
+
value: value,
|
|
31
|
+
onChange: function onChange(val) {
|
|
32
|
+
setValue(val);
|
|
33
|
+
console.log("\u503C:", val);
|
|
34
|
+
},
|
|
35
|
+
allowCIDR: true,
|
|
36
|
+
showClear: true,
|
|
37
|
+
placeholder: "192.168.0.1/24"
|
|
38
|
+
}), /* @__PURE__ */React__default.createElement("div", {
|
|
39
|
+
style: {
|
|
40
|
+
color: "#666",
|
|
41
|
+
fontSize: "12px"
|
|
42
|
+
}
|
|
43
|
+
}, "\u5F53\u524D\u503C: ", value || "(\u7A7A)"));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { WithCIDRExample as default };
|
|
47
|
+
//# sourceMappingURL=with-cidr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-cidr.js","sources":["../../../../components/ip-input/_example/with-cidr.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport IPInput from \"../IPInput\";\n\nconst WithCIDRExample = () => {\n const [value, setValue] = useState(\"\");\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"16px\" }}>\n <IPInput\n value={value}\n onChange={(val) => {\n setValue(val);\n console.log(\"值:\", val);\n }}\n allowCIDR={true}\n showClear={true}\n placeholder=\"192.168.0.1/24\"\n />\n <div style={{ color: \"#666\", fontSize: \"12px\" }}>当前值: {value || \"(空)\"}</div>\n </div>\n );\n};\n\nexport default WithCIDRExample;"],"names":["WithCIDRExample","_useState","useState","_useState2","_slicedToArray","value","setValue","React","createElement","style","display","flexDirection","gap","IPInput","onChange","val","console","log","allowCIDR","showClear","placeholder","color","fontSize"],"mappings":";;;;;;;;;;;;;;;;;AAGA,IAAMA,kBAAkB,SAAlBA,kBAAwB;AAC5B,EAAA,IAAAC,SAAA,GAA0BC,SAAS,EAAE,CAAA;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAA9BI,IAAAA,KAAA,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAOG,IAAAA,QAAQ,GAAAH,UAAA,CAAA,CAAA,CAAA;AACtB,EAAA,sBACEI,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS;AAAQC,MAAAA,aAAA,EAAe,QAAA;AAAUC,MAAAA,GAAA,EAAK;AAAO;AAAA,GAAA,iBAClEL,cAAA,CAAAC,aAAA,CAACK,OAAA,EAAA;AACCR,IAAAA,KAAA,EAAAA,KAAA;AACAS,IAAAA,QAAA,EAAU,SAAVA,QAAAA,CAAWC,GAAA,EAAQ;MACjBT,QAAA,CAASS,GAAG,CAAA;AACZC,MAAAA,OAAA,CAAQC,GAAA,CAAI,WAAMF,GAAG,CAAA;IACvB,CAAA;AACAG,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,SAAA,EAAW,IAAA;AACXC,IAAAA,WAAA,EAAY;GACd,CAAA,iBACAb,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEY,MAAAA,KAAA,EAAO,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,EAAG,sBAAA,EAAMjB,KAAA,IAAS,UAAM,CACxE,CAAA;AAEJ;;;;"}
|
package/es/ip-input/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as IPInput, e as extractIPFromText, b as isValidCIDRMask, a as isValidIPv4, i as isValidIPv4Segment, c as isValidIPv6, p as parseIPv4ToSegments, s as segmentsToIPv4 } from '../_chunks/dep-
|
|
1
|
+
export { I as IPInput, e as extractIPFromText, b as isValidCIDRMask, a as isValidIPv4, i as isValidIPv4Segment, c as isValidIPv6, p as parseIPv4ToSegments, s as segmentsToIPv4 } from '../_chunks/dep-BZdpKjaa.js';
|
|
2
2
|
import '../_chunks/dep-Cwish4GD.js';
|
|
3
3
|
import '../_chunks/dep-D-UKOauR.js';
|
|
4
4
|
import '../_chunks/dep-CgyDw_YI.js';
|
|
@@ -7,10 +7,11 @@ import 'react';
|
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '@tendaui/icons';
|
|
9
9
|
import '../_chunks/dep-DGvfel3I.js';
|
|
10
|
-
import '../_chunks/dep-
|
|
10
|
+
import '../_chunks/dep-grkSd2UB.js';
|
|
11
11
|
import 'lodash-es';
|
|
12
|
-
import '../_chunks/dep-
|
|
13
|
-
import '../
|
|
12
|
+
import '../_chunks/dep-u1x3x6MJ.js';
|
|
13
|
+
import '../config-provider/ConfigContext.js';
|
|
14
|
+
import '../_chunks/dep--nQ-cjme.js';
|
|
14
15
|
import 'dayjs';
|
|
15
16
|
import './style/css.js';
|
|
16
17
|
//# sourceMappingURL=index.js.map
|
package/es/ip-input/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
package/es/layout/Aside.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_chunks/dep-Cwish4GD.js';
|
|
2
2
|
import { _ as _objectWithoutProperties } from '../_chunks/dep-DN7d1SzH.js';
|
|
3
|
-
import
|
|
3
|
+
import React__default from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import { u as useConfig } from '../_chunks/dep-
|
|
5
|
+
import { u as useConfig } from '../_chunks/dep-u1x3x6MJ.js';
|
|
6
6
|
import { u as useDefaultProps } from '../_chunks/dep-DGvfel3I.js';
|
|
7
7
|
import '../_chunks/dep-D-UKOauR.js';
|
|
8
|
-
import '../
|
|
8
|
+
import '../config-provider/ConfigContext.js';
|
|
9
|
+
import '../_chunks/dep--nQ-cjme.js';
|
|
9
10
|
import 'dayjs';
|
|
10
11
|
|
|
11
12
|
var _excluded = ["width", "className", "style", "children"];
|
|
@@ -30,7 +31,7 @@ var Aside = function Aside(props) {
|
|
|
30
31
|
minWidth: asideWidth,
|
|
31
32
|
flex: "0 0 ".concat(asideWidth)
|
|
32
33
|
}, style);
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */React__default.createElement("aside", _objectSpread({
|
|
34
35
|
className: asideClassNames,
|
|
35
36
|
style: asideStyle
|
|
36
37
|
}, otherAsideProps), children);
|
package/es/layout/Aside.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Aside.js","sources":["../../../components/layout/Aside.tsx"],"sourcesContent":["import React from \"react\";\nimport classNames from \"classnames\";\nimport useConfig from \"../hooks/useConfig\";\nimport { TdAsideProps } from \"./type\";\nimport { StyledProps } from \"../common\";\nimport useDefaultProps from \"../hooks/useDefaultProps\";\nexport interface AsideProps extends TdAsideProps, StyledProps {\n /**\n * 文本内容\n */\n children?: React.ReactNode;\n}\n\nconst Aside: React.FC<AsideProps> = (props) => {\n const { width, className, style, children, ...otherAsideProps } = useDefaultProps(props, { width: \"232px\" });\n\n const { classPrefix } = useConfig();\n const asideClassNames = classNames(`${classPrefix}-layout__sider`, className);\n const asideWidth: string = typeof width === \"number\" ? `${width}px` : width;\n\n const asideStyle: React.CSSProperties = {\n width: asideWidth,\n maxWidth: asideWidth,\n minWidth: asideWidth,\n flex: `0 0 ${asideWidth}`,\n ...style\n };\n\n return (\n <aside className={asideClassNames} style={asideStyle} {...otherAsideProps}>\n {children}\n </aside>\n );\n};\n\nAside.displayName = \"Aside\";\n\nexport default Aside;\n"],"names":["Aside","props","_useDefaultProps","useDefaultProps","width","className","style","children","otherAsideProps","_objectWithoutProperties","_excluded","_useConfig","useConfig","classPrefix","asideClassNames","classNames","concat","asideWidth","asideStyle","_objectSpread","maxWidth","minWidth","flex","React","createElement","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Aside.js","sources":["../../../components/layout/Aside.tsx"],"sourcesContent":["import React from \"react\";\nimport classNames from \"classnames\";\nimport useConfig from \"../hooks/useConfig\";\nimport { TdAsideProps } from \"./type\";\nimport { StyledProps } from \"../common\";\nimport useDefaultProps from \"../hooks/useDefaultProps\";\nexport interface AsideProps extends TdAsideProps, StyledProps {\n /**\n * 文本内容\n */\n children?: React.ReactNode;\n}\n\nconst Aside: React.FC<AsideProps> = (props) => {\n const { width, className, style, children, ...otherAsideProps } = useDefaultProps(props, { width: \"232px\" });\n\n const { classPrefix } = useConfig();\n const asideClassNames = classNames(`${classPrefix}-layout__sider`, className);\n const asideWidth: string = typeof width === \"number\" ? `${width}px` : width;\n\n const asideStyle: React.CSSProperties = {\n width: asideWidth,\n maxWidth: asideWidth,\n minWidth: asideWidth,\n flex: `0 0 ${asideWidth}`,\n ...style\n };\n\n return (\n <aside className={asideClassNames} style={asideStyle} {...otherAsideProps}>\n {children}\n </aside>\n );\n};\n\nAside.displayName = \"Aside\";\n\nexport default Aside;\n"],"names":["Aside","props","_useDefaultProps","useDefaultProps","width","className","style","children","otherAsideProps","_objectWithoutProperties","_excluded","_useConfig","useConfig","classPrefix","asideClassNames","classNames","concat","asideWidth","asideStyle","_objectSpread","maxWidth","minWidth","flex","React","createElement","displayName"],"mappings":";;;;;;;;;;;;;;AAaA,IAAMA,KAAA,GAA8B,SAA9BA,KAAAA,CAA+BC,KAAA,EAAU;AAC7C,EAAA,IAAAC,gBAAA,GAAkEC,eAAA,CAAgBF,KAAA,EAAO;AAAEG,MAAAA,KAAA,EAAO;AAAQ,KAAC,CAAA;IAAnGA,KAAA,GAAAF,gBAAA,CAAAE,KAAA;IAAOC,SAAA,GAAAH,gBAAA,CAAAG,SAAA;IAAWC,KAAA,GAAAJ,gBAAA,CAAAI,KAAA;IAAOC,QAAA,GAAAL,gBAAA,CAAAK,QAAA;AAAaC,IAAAA,eAAA,GAAAC,wBAAA,CAAAP,gBAAA,EAAAQ,SAAA,CAAA;AAE9C,EAAA,IAAAC,UAAA,GAAwBC,SAAA,EAAU;IAA1BC,WAAA,GAAAF,UAAA,CAAAE,WAAA;EACR,IAAMC,eAAA,GAAkBC,UAAA,CAAA,EAAA,CAAAC,MAAA,CAAcH,WAAW,EAAA,gBAAA,CAAA,EAAkBR,SAAS,CAAA;EAC5E,IAAMY,aAAqB,OAAOb,KAAA,KAAU,QAAA,GAAA,EAAA,CAAAY,MAAA,CAAcZ,KAAK,EAAA,IAAA,CAAA,GAAOA,KAAA;EAEtE,IAAMc,UAAA,GAAAC,aAAA,CAAA;AACJf,IAAAA,KAAA,EAAOa,UAAA;AACPG,IAAAA,QAAA,EAAUH,UAAA;AACVI,IAAAA,QAAA,EAAUJ,UAAA;IACVK,IAAA,EAAA,MAAA,CAAAN,MAAA,CAAaC,UAAU;AAAA,GAAA,EACpBX,KAAA,CACL;AAEA,EAAA,sBACEiB,cAAA,CAAAC,aAAA,CAAC;AAAMnB,IAAAA,SAAA,EAAWS,eAAA;AAAiBR,IAAAA,OAAOY;GAAA,EAAgBV,kBACvDD,QACH,CAAA;AAEJ;AAEAP,KAAA,CAAMyB,WAAA,GAAc,OAAA;;;;"}
|
package/es/layout/Layout.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { _ as _typeof } from '../_chunks/dep-D-UKOauR.js';
|
|
2
2
|
import { _ as _defineProperty } from '../_chunks/dep-Cwish4GD.js';
|
|
3
3
|
import { _ as _objectWithoutProperties } from '../_chunks/dep-DN7d1SzH.js';
|
|
4
|
-
import
|
|
4
|
+
import React__default, { useMemo } from 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import { u as useConfig } from '../_chunks/dep-
|
|
6
|
+
import { u as useConfig } from '../_chunks/dep-u1x3x6MJ.js';
|
|
7
7
|
import Aside from './Aside.js';
|
|
8
|
-
import { p as parseTNode } from '../_chunks/dep-
|
|
9
|
-
import '../
|
|
8
|
+
import { p as parseTNode } from '../_chunks/dep-spxR0DG0.js';
|
|
9
|
+
import '../config-provider/ConfigContext.js';
|
|
10
|
+
import '../_chunks/dep--nQ-cjme.js';
|
|
10
11
|
import 'dayjs';
|
|
11
12
|
import '../_chunks/dep-DGvfel3I.js';
|
|
12
13
|
import 'lodash-es';
|
|
@@ -28,7 +29,7 @@ var Header = function Header(props) {
|
|
|
28
29
|
others = _objectWithoutProperties(props, _excluded);
|
|
29
30
|
var renderHeight = isNaN(Number(height)) ? height : "".concat(height, "px");
|
|
30
31
|
var headerClassNames = classNames("".concat(classPrefix, "-layout__header"), className);
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
+
return /* @__PURE__ */React__default.createElement("header", _objectSpread({
|
|
32
33
|
className: headerClassNames,
|
|
33
34
|
style: _objectSpread({
|
|
34
35
|
height: renderHeight
|
|
@@ -46,7 +47,7 @@ var Footer = function Footer(props) {
|
|
|
46
47
|
others = _objectWithoutProperties(props, _excluded2);
|
|
47
48
|
var renderHeight = isNaN(Number(height)) ? height : "".concat(height, "px");
|
|
48
49
|
var footerClassNames = classNames("".concat(classPrefix, "-layout__footer"), className);
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
+
return /* @__PURE__ */React__default.createElement("footer", _objectSpread({
|
|
50
51
|
className: footerClassNames,
|
|
51
52
|
style: _objectSpread({
|
|
52
53
|
height: renderHeight
|
|
@@ -62,7 +63,7 @@ var Content = function Content(props) {
|
|
|
62
63
|
content = props.content,
|
|
63
64
|
others = _objectWithoutProperties(props, _excluded3);
|
|
64
65
|
var contentClassNames = classNames("".concat(classPrefix, "-layout__content"), className);
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */React__default.createElement("main", _objectSpread({
|
|
66
67
|
className: contentClassNames,
|
|
67
68
|
style: style
|
|
68
69
|
}, others), parseTNode(content) || parseTNode(children));
|
|
@@ -75,7 +76,7 @@ var Layout = function Layout(props) {
|
|
|
75
76
|
otherLayoutProps = _objectWithoutProperties(props, _excluded4);
|
|
76
77
|
var shouldAsides = useMemo(function () {
|
|
77
78
|
var asides = [];
|
|
78
|
-
|
|
79
|
+
React__default.Children.forEach(children, function (child) {
|
|
79
80
|
if (!child || _typeof(child) !== "object") {
|
|
80
81
|
return;
|
|
81
82
|
}
|
|
@@ -88,7 +89,7 @@ var Layout = function Layout(props) {
|
|
|
88
89
|
var _useConfig4 = useConfig(),
|
|
89
90
|
classPrefix = _useConfig4.classPrefix;
|
|
90
91
|
var layoutClassNames = classNames("".concat(classPrefix, "-layout"), _defineProperty(_defineProperty({}, "".concat(classPrefix, "-layout--with-sider"), shouldAsides), "".concat(classPrefix, "-layout__direction-").concat(direction), direction), className);
|
|
91
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */React__default.createElement("div", _objectSpread({
|
|
92
93
|
className: layoutClassNames,
|
|
93
94
|
style: style
|
|
94
95
|
}, otherLayoutProps), parseTNode(children));
|
package/es/layout/Layout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","sources":["../../../components/layout/Layout.tsx"],"sourcesContent":["import React from \"react\";\nimport classNames from \"classnames\";\nimport useConfig from \"../hooks/useConfig\";\nimport { StyledProps } from \"../common\";\nimport { TdLayoutProps, TdHeaderProps, TdFooterProps } from \"./type\";\nimport { useMemo } from \"react\";\nimport Aside from \"./Aside\";\nimport parseTNode from \"../utils/parseTNode\";\nexport interface LayoutProps extends TdLayoutProps, StyledProps, React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n}\nexport interface HeaderProps extends TdHeaderProps, StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\nexport interface ContentProps extends StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\nexport interface FooterProps extends TdFooterProps, StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\n\nconst Header: React.FC<HeaderProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style = {}, children, height, ...others } = props;\n const renderHeight = isNaN(Number(height)) ? height : `${height}px`;\n const headerClassNames = classNames(`${classPrefix}-layout__header`, className);\n return (\n <header className={headerClassNames} style={{ height: renderHeight, ...style }} {...others}>\n {parseTNode(children)}\n </header>\n );\n};\n\nconst Footer: React.FC<FooterProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style = {}, children, height, ...others } = props;\n const renderHeight = isNaN(Number(height)) ? height : `${height}px`;\n const footerClassNames = classNames(`${classPrefix}-layout__footer`, className);\n return (\n <footer className={footerClassNames} style={{ height: renderHeight, ...style }} {...others}>\n {parseTNode(children)}\n </footer>\n );\n};\nconst Content: React.FC<ContentProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style, children, content, ...others } = props;\n const contentClassNames = classNames(`${classPrefix}-layout__content`, className);\n return (\n <main className={contentClassNames} style={style} {...others}>\n {parseTNode(content) || parseTNode(children)}\n </main>\n );\n};\n\nconst Layout: React.FC<LayoutProps> & {\n Header: typeof Header;\n Content: typeof Content;\n Footer: typeof Footer;\n Aside: typeof Aside;\n} = (props) => {\n const { direction, className, style, children, ...otherLayoutProps } = props;\n\n const shouldAsides = useMemo(() => {\n const asides: React.ReactElement[] = [];\n React.Children.forEach(children, (child: React.ReactElement) => {\n if (!child || typeof child !== \"object\") {\n return;\n }\n if (child.type === Aside) {\n asides.push(child);\n }\n });\n return !!asides.length;\n }, [children]);\n\n const { classPrefix } = useConfig();\n const layoutClassNames = classNames(\n `${classPrefix}-layout`,\n {\n [`${classPrefix}-layout--with-sider`]: shouldAsides,\n [`${classPrefix}-layout__direction-${direction}`]: direction\n },\n className\n );\n\n return (\n <div className={layoutClassNames} style={style} {...otherLayoutProps}>\n {parseTNode(children)}\n </div>\n );\n};\n\nLayout.Header = Header;\nLayout.Content = Content;\nLayout.Footer = Footer;\nLayout.Aside = Aside;\n\nHeader.displayName = \"Header\";\nContent.displayName = \"Content\";\nFooter.displayName = \"Footer\";\nLayout.displayName = \"Layout\";\n\nexport default Layout;\n"],"names":["Header","props","_useConfig","useConfig","classPrefix","className","style","_props$style","children","height","others","_objectWithoutProperties","_excluded","renderHeight","isNaN","Number","concat","headerClassNames","classNames","React","createElement","_objectSpread","parseTNode","Footer","_useConfig2","_props$style2","_excluded2","footerClassNames","Content","_useConfig3","content","_excluded3","contentClassNames","Layout","direction","otherLayoutProps","_excluded4","shouldAsides","useMemo","asides","Children","forEach","child","_typeof","type","Aside","push","length","_useConfig4","layoutClassNames","_defineProperty","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Layout.js","sources":["../../../components/layout/Layout.tsx"],"sourcesContent":["import React from \"react\";\nimport classNames from \"classnames\";\nimport useConfig from \"../hooks/useConfig\";\nimport { StyledProps } from \"../common\";\nimport { TdLayoutProps, TdHeaderProps, TdFooterProps } from \"./type\";\nimport { useMemo } from \"react\";\nimport Aside from \"./Aside\";\nimport parseTNode from \"../utils/parseTNode\";\nexport interface LayoutProps extends TdLayoutProps, StyledProps, React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n}\nexport interface HeaderProps extends TdHeaderProps, StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\nexport interface ContentProps extends StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\nexport interface FooterProps extends TdFooterProps, StyledProps, React.HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\n\nconst Header: React.FC<HeaderProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style = {}, children, height, ...others } = props;\n const renderHeight = isNaN(Number(height)) ? height : `${height}px`;\n const headerClassNames = classNames(`${classPrefix}-layout__header`, className);\n return (\n <header className={headerClassNames} style={{ height: renderHeight, ...style }} {...others}>\n {parseTNode(children)}\n </header>\n );\n};\n\nconst Footer: React.FC<FooterProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style = {}, children, height, ...others } = props;\n const renderHeight = isNaN(Number(height)) ? height : `${height}px`;\n const footerClassNames = classNames(`${classPrefix}-layout__footer`, className);\n return (\n <footer className={footerClassNames} style={{ height: renderHeight, ...style }} {...others}>\n {parseTNode(children)}\n </footer>\n );\n};\nconst Content: React.FC<ContentProps> = (props) => {\n const { classPrefix } = useConfig();\n const { className, style, children, content, ...others } = props;\n const contentClassNames = classNames(`${classPrefix}-layout__content`, className);\n return (\n <main className={contentClassNames} style={style} {...others}>\n {parseTNode(content) || parseTNode(children)}\n </main>\n );\n};\n\nconst Layout: React.FC<LayoutProps> & {\n Header: typeof Header;\n Content: typeof Content;\n Footer: typeof Footer;\n Aside: typeof Aside;\n} = (props) => {\n const { direction, className, style, children, ...otherLayoutProps } = props;\n\n const shouldAsides = useMemo(() => {\n const asides: React.ReactElement[] = [];\n React.Children.forEach(children, (child: React.ReactElement) => {\n if (!child || typeof child !== \"object\") {\n return;\n }\n if (child.type === Aside) {\n asides.push(child);\n }\n });\n return !!asides.length;\n }, [children]);\n\n const { classPrefix } = useConfig();\n const layoutClassNames = classNames(\n `${classPrefix}-layout`,\n {\n [`${classPrefix}-layout--with-sider`]: shouldAsides,\n [`${classPrefix}-layout__direction-${direction}`]: direction\n },\n className\n );\n\n return (\n <div className={layoutClassNames} style={style} {...otherLayoutProps}>\n {parseTNode(children)}\n </div>\n );\n};\n\nLayout.Header = Header;\nLayout.Content = Content;\nLayout.Footer = Footer;\nLayout.Aside = Aside;\n\nHeader.displayName = \"Header\";\nContent.displayName = \"Content\";\nFooter.displayName = \"Footer\";\nLayout.displayName = \"Layout\";\n\nexport default Layout;\n"],"names":["Header","props","_useConfig","useConfig","classPrefix","className","style","_props$style","children","height","others","_objectWithoutProperties","_excluded","renderHeight","isNaN","Number","concat","headerClassNames","classNames","React","createElement","_objectSpread","parseTNode","Footer","_useConfig2","_props$style2","_excluded2","footerClassNames","Content","_useConfig3","content","_excluded3","contentClassNames","Layout","direction","otherLayoutProps","_excluded4","shouldAsides","useMemo","asides","Children","forEach","child","_typeof","type","Aside","push","length","_useConfig4","layoutClassNames","_defineProperty","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqBA,IAAMA,MAAA,GAAgC,SAAhCA,MAAAA,CAAiCC,KAAA,EAAU;AAC/C,EAAA,IAAAC,UAAA,GAAwBC,SAAA,EAAU;IAA1BC,WAAA,GAAAF,UAAA,CAAAE,WAAA;AACR,EAAA,IAAQC,YAAuDJ,KAAA,CAAvDI;mBAAuDJ,KAAA,CAA5CK,KAAA;AAAAA,IAAAA,KAAA,GAAAC,YAAA,KAAA,KAAA,CAAA,GAAQ;IAAIC,QAAA,GAAgCP,KAAA,CAAhCO,QAAA;IAAUC,MAAA,GAAsBR,KAAA,CAAtBQ,MAAA;AAAWC,IAAAA,MAAA,GAAAC,wBAAA,CAAWV,KAAA,EAAAW,SAAA,CAAA;AAC/D,EAAA,IAAMC,YAAA,GAAe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