@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,13 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { Button } from '@tendaui/react';
|
|
3
3
|
|
|
4
4
|
function Base() {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
6
|
style: {
|
|
7
7
|
display: "flex",
|
|
8
8
|
gap: "8px"
|
|
9
9
|
}
|
|
10
|
-
}, /* @__PURE__ */
|
|
10
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
11
11
|
theme: "primary"
|
|
12
12
|
}, "Primary"));
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sources":["../../../../components/button/_example/base.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function Base() {\n return (\n <div style={{ display: \"flex\", gap: \"8px\" }}>\n <Button theme=\"primary\">Primary</Button>\n </div>\n );\n}\n"],"names":["Base","React","createElement","style","display","gap","Button","theme"],"mappings":";;;AAGA,SAAwBA,IAAAA,GAAO;AAC7B,EAAA,sBACEC,
|
|
1
|
+
{"version":3,"file":"base.js","sources":["../../../../components/button/_example/base.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function Base() {\n return (\n <div style={{ display: \"flex\", gap: \"8px\" }}>\n <Button theme=\"primary\">Primary</Button>\n </div>\n );\n}\n"],"names":["Base","React","createElement","style","display","gap","Button","theme"],"mappings":";;;AAGA,SAAwBA,IAAAA,GAAO;AAC7B,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK;AAAM;AAAA,GAAA,iBACxCJ,cAAA,CAAAC,aAAA,CAACI,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAU,SAAO,CACjC,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function Block() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
gap: "12px",
|
|
10
|
+
width: "300px"
|
|
11
|
+
}
|
|
12
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
13
|
+
block: true,
|
|
14
|
+
theme: "primary"
|
|
15
|
+
}, "\u4E3B\u8981\u6309\u94AE"), /* @__PURE__ */React__default.createElement(Button, {
|
|
16
|
+
block: true,
|
|
17
|
+
variant: "outline",
|
|
18
|
+
theme: "primary"
|
|
19
|
+
}, "\u63CF\u8FB9\u6309\u94AE"), /* @__PURE__ */React__default.createElement(Button, {
|
|
20
|
+
block: true,
|
|
21
|
+
variant: "dashed"
|
|
22
|
+
}, "\u865A\u7EBF\u6309\u94AE"));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { Block as default };
|
|
26
|
+
//# sourceMappingURL=block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.js","sources":["../../../../components/button/_example/block.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function Block() {\n return (\n <div style={{ display: \"flex\", flexDirection: \"column\", gap: \"12px\", width: \"300px\" }}>\n <Button block theme=\"primary\">\n 主要按钮\n </Button>\n <Button block variant=\"outline\" theme=\"primary\">\n 描边按钮\n </Button>\n <Button block variant=\"dashed\">\n 虚线按钮\n </Button>\n </div>\n );\n}"],"names":["Block","style","display","flexDirection","gap","width","Button","block","theme","variant"],"mappings":";;;AAGA,SAAwBA,KAAAA,GAAQ;AAC9B,EAAA,mDACG,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS;AAAQC,MAAAA,aAAA,EAAe,QAAA;AAAUC,MAAAA,GAAA,EAAK,MAAA;AAAQC,MAAAA,OAAO;AAAQ;AAAA,GAAA,8CACjFC,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAK;AAACC,IAAAA,KAAA,EAAM;GAAA,EAAU,0BAE9B,CAAA,8CACCF,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAK,IAAA;AAACE,IAAAA,OAAA,EAAQ;AAAUD,IAAAA,KAAA,EAAM;GAAA,EAAU,0BAEhD,CAAA,8CACCF,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAK;AAACE,IAAAA,OAAA,EAAQ;GAAA,EAAS,0BAE/B,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function Disabled() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "12px",
|
|
9
|
+
flexWrap: "wrap"
|
|
10
|
+
}
|
|
11
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
12
|
+
disabled: true
|
|
13
|
+
}, "\u9ED8\u8BA4\u7981\u7528"), /* @__PURE__ */React__default.createElement(Button, {
|
|
14
|
+
disabled: true,
|
|
15
|
+
theme: "primary"
|
|
16
|
+
}, "\u4E3B\u8981\u7981\u7528"), /* @__PURE__ */React__default.createElement(Button, {
|
|
17
|
+
disabled: true,
|
|
18
|
+
variant: "outline",
|
|
19
|
+
theme: "primary"
|
|
20
|
+
}, "\u63CF\u8FB9\u7981\u7528"), /* @__PURE__ */React__default.createElement(Button, {
|
|
21
|
+
disabled: true,
|
|
22
|
+
variant: "dashed",
|
|
23
|
+
theme: "primary"
|
|
24
|
+
}, "\u865A\u7EBF\u7981\u7528"), /* @__PURE__ */React__default.createElement(Button, {
|
|
25
|
+
disabled: true,
|
|
26
|
+
variant: "text",
|
|
27
|
+
theme: "primary"
|
|
28
|
+
}, "\u6587\u5B57\u7981\u7528"));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Disabled as default };
|
|
32
|
+
//# sourceMappingURL=disabled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disabled.js","sources":["../../../../components/button/_example/disabled.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function Disabled() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", flexWrap: \"wrap\" }}>\n <Button disabled>默认禁用</Button>\n <Button disabled theme=\"primary\">\n 主要禁用\n </Button>\n <Button disabled variant=\"outline\" theme=\"primary\">\n 描边禁用\n </Button>\n <Button disabled variant=\"dashed\" theme=\"primary\">\n 虚线禁用\n </Button>\n <Button disabled variant=\"text\" theme=\"primary\">\n 文字禁用\n </Button>\n </div>\n );\n}"],"names":["Disabled","React","createElement","style","display","gap","flexWrap","Button","disabled","theme","variant"],"mappings":";;;AAGA,SAAwBA,QAAAA,GAAW;AACjC,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS;AAAQC,MAAAA,GAAA,EAAK,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,iBAC3DL,cAAA,CAAAC,aAAA,CAACK;AAAOC,IAAAA,QAAA,EAAQ;GAAA,EAAC,0BAAI,CAAA,iBACrBP,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,QAAA,EAAQ,IAAA;AAACC,IAAAA,KAAA,EAAM;GAAA,EAAU,0BAEjC,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,UAAQ,IAAA;AAACE,IAAAA,OAAA,EAAQ,SAAA;AAAUD,IAAAA,KAAA,EAAM;GAAA,EAAU,0BAEnD,kBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,QAAA,EAAQ,IAAA;AAACE,IAAAA,OAAA,EAAQ,QAAA;AAASD,IAAAA,OAAM;GAAA,EAAU,0BAElD,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,QAAA,EAAQ,IAAA;AAACE,IAAAA,OAAA,EAAQ,MAAA;AAAOD,IAAAA,KAAA,EAAM;GAAA,EAAU,0BAEhD,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function Ghost() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "12px",
|
|
9
|
+
padding: "24px",
|
|
10
|
+
flexWrap: "wrap"
|
|
11
|
+
}
|
|
12
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
13
|
+
ghost: true,
|
|
14
|
+
theme: "primary"
|
|
15
|
+
}, "\u4E3B\u8981"), /* @__PURE__ */React__default.createElement(Button, {
|
|
16
|
+
ghost: true,
|
|
17
|
+
theme: "success"
|
|
18
|
+
}, "\u6210\u529F"), /* @__PURE__ */React__default.createElement(Button, {
|
|
19
|
+
ghost: true,
|
|
20
|
+
theme: "warning"
|
|
21
|
+
}, "\u8B66\u544A"), /* @__PURE__ */React__default.createElement(Button, {
|
|
22
|
+
ghost: true,
|
|
23
|
+
theme: "danger"
|
|
24
|
+
}, "\u5371\u9669"));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { Ghost as default };
|
|
28
|
+
//# sourceMappingURL=ghost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ghost.js","sources":["../../../../components/button/_example/ghost.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function Ghost() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", padding: \"24px\", flexWrap: \"wrap\" }}>\n <Button ghost theme=\"primary\">\n 主要\n </Button>\n <Button ghost theme=\"success\">\n 成功\n </Button>\n <Button ghost theme=\"warning\">\n 警告\n </Button>\n <Button ghost theme=\"danger\">\n 危险\n </Button>\n </div>\n );\n}\n"],"names":["Ghost","React","createElement","style","display","gap","padding","flexWrap","Button","ghost","theme"],"mappings":";;;AAGA,SAAwBA,KAAAA,GAAQ;AAC9B,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK;AAAQC,MAAAA,OAAA,EAAS,MAAA;AAAQC,MAAAA,UAAU;AAAO;AAAA,GAAA,8CAC3EC,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAK;AAACC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAE9B,CAAA,iBACAT,cAAA,CAAAC,aAAA,CAACM;AAAOC,IAAAA,KAAA,EAAK,IAAA;AAACC,IAAAA,OAAM;GAAA,EAAU,cAE9B,kBACAT,cAAA,CAAAC,aAAA,CAACM,MAAA,EAAA;AAAOC,IAAAA,OAAK,IAAA;AAACC,IAAAA,KAAA,EAAM;KAAU,cAE9B,CAAA,8CACCF,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAK;AAACC,IAAAA,KAAA,EAAM;GAAA,EAAS,cAE7B,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
import { Button } from '@tendaui/react';
|
|
3
3
|
import { IconArrowLeft, IconAlertTriangle, IconDelete, IconCheckCircleStroked } from '@tendaui/icons';
|
|
4
4
|
|
|
5
5
|
function Icon() {
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
7
7
|
style: {
|
|
8
8
|
display: "flex",
|
|
9
9
|
gap: "8px",
|
|
10
10
|
alignItems: "center"
|
|
11
11
|
}
|
|
12
|
-
}, /* @__PURE__ */
|
|
13
|
-
icon: /* @__PURE__ */
|
|
14
|
-
}, "\u9ED8\u8BA4\u6309\u94AE"), /* @__PURE__ */
|
|
15
|
-
icon: /* @__PURE__ */
|
|
12
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
13
|
+
icon: /* @__PURE__ */React__default.createElement(IconArrowLeft, null)
|
|
14
|
+
}, "\u9ED8\u8BA4\u6309\u94AE"), /* @__PURE__ */React__default.createElement(Button, {
|
|
15
|
+
icon: /* @__PURE__ */React__default.createElement(IconAlertTriangle, null),
|
|
16
16
|
theme: "warning"
|
|
17
|
-
}, "\u8B66\u544A\u6309\u94AE"), /* @__PURE__ */
|
|
18
|
-
icon: /* @__PURE__ */
|
|
17
|
+
}, "\u8B66\u544A\u6309\u94AE"), /* @__PURE__ */React__default.createElement(Button, {
|
|
18
|
+
icon: /* @__PURE__ */React__default.createElement(IconDelete, null),
|
|
19
19
|
theme: "danger"
|
|
20
|
-
}, "\u5371\u9669\u6309\u94AE"), /* @__PURE__ */
|
|
20
|
+
}, "\u5371\u9669\u6309\u94AE"), /* @__PURE__ */React__default.createElement(Button, {
|
|
21
21
|
theme: "success",
|
|
22
|
-
icon: /* @__PURE__ */
|
|
22
|
+
icon: /* @__PURE__ */React__default.createElement(IconCheckCircleStroked, null)
|
|
23
23
|
}, "\u6210\u529F\u6309\u94AE"));
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.js","sources":["../../../../components/button/_example/icon.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\nimport { IconArrowLeft, IconDelete, IconAlertTriangle, IconCheckCircleStroked } from \"@tendaui/icons\";\n\nexport default function Icon() {\n return (\n <div style={{ display: \"flex\", gap: \"8px\", alignItems: \"center\" }}>\n <Button icon={<IconArrowLeft />}>默认按钮</Button>\n <Button icon={<IconAlertTriangle />} theme=\"warning\">\n 警告按钮\n </Button>\n <Button icon={<IconDelete />} theme=\"danger\">\n 危险按钮\n </Button>\n <Button theme=\"success\" icon={<IconCheckCircleStroked />}>\n 成功按钮\n </Button>\n </div>\n );\n}\n"],"names":["Icon","React","createElement","style","display","gap","alignItems","Button","icon","IconArrowLeft","IconAlertTriangle","theme","IconDelete","IconCheckCircleStroked"],"mappings":";;;;AAIA,SAAwBA,IAAAA,GAAO;AAC7B,EAAA,sBACEC,
|
|
1
|
+
{"version":3,"file":"icon.js","sources":["../../../../components/button/_example/icon.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\nimport { IconArrowLeft, IconDelete, IconAlertTriangle, IconCheckCircleStroked } from \"@tendaui/icons\";\n\nexport default function Icon() {\n return (\n <div style={{ display: \"flex\", gap: \"8px\", alignItems: \"center\" }}>\n <Button icon={<IconArrowLeft />}>默认按钮</Button>\n <Button icon={<IconAlertTriangle />} theme=\"warning\">\n 警告按钮\n </Button>\n <Button icon={<IconDelete />} theme=\"danger\">\n 危险按钮\n </Button>\n <Button theme=\"success\" icon={<IconCheckCircleStroked />}>\n 成功按钮\n </Button>\n </div>\n );\n}\n"],"names":["Icon","React","createElement","style","display","gap","alignItems","Button","icon","IconArrowLeft","IconAlertTriangle","theme","IconDelete","IconCheckCircleStroked"],"mappings":";;;;AAIA,SAAwBA,IAAAA,GAAO;AAC7B,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK,KAAA;AAAOC,MAAAA,UAAA,EAAY;AAAS;AAAA,GAAA,8CAC7DC,MAAA,EAAA;IAAOC,IAAA,8CAAOC,aAAA,EAAA,IAAc;GAAA,EAAI,0BAAI,CAAA,iBACrCR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;IAAOC,IAAA,iBAAMP,cAAA,CAAAC,aAAA,CAACQ,iBAAA,EAAA,IAAkB;AAAIC,IAAAA,KAAA,EAAM;GAAA,EAAU,0BAErD,CAAA,iBACAV,cAAA,CAAAC,aAAA,CAACK;IAAOC,IAAA,iBAAMP,cAAA,CAAAC,aAAA,CAACU,UAAA,EAAA,IAAW,CAAA;AAAID,IAAAA,KAAA,EAAM;GAAA,EAAS,0BAE7C,CAAA,iBACAV,cAAA,CAAAC,aAAA,CAACK;AAAOI,IAAAA,KAAA,EAAM,SAAA;IAAUH,qBAAMP,cAAA,CAAAC,aAAA,CAACW,sBAAA,EAAA,IAAuB;GAAA,EAAI,0BAE1D,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function Link() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "12px",
|
|
9
|
+
flexWrap: "wrap"
|
|
10
|
+
}
|
|
11
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
12
|
+
href: "https://www.example.com",
|
|
13
|
+
target: "_blank",
|
|
14
|
+
theme: "primary"
|
|
15
|
+
}, "\u8DF3\u8F6C\u94FE\u63A5"), /* @__PURE__ */React__default.createElement(Button, {
|
|
16
|
+
href: "https://www.example.com",
|
|
17
|
+
target: "_blank",
|
|
18
|
+
variant: "text",
|
|
19
|
+
theme: "primary"
|
|
20
|
+
}, "\u6587\u5B57\u94FE\u63A5"));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { Link as default };
|
|
24
|
+
//# sourceMappingURL=link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.js","sources":["../../../../components/button/_example/link.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function Link() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", flexWrap: \"wrap\" }}>\n <Button href=\"https://www.example.com\" target=\"_blank\" theme=\"primary\">\n 跳转链接\n </Button>\n <Button href=\"https://www.example.com\" target=\"_blank\" variant=\"text\" theme=\"primary\">\n 文字链接\n </Button>\n </div>\n );\n}"],"names":["Link","React","createElement","style","display","gap","flexWrap","Button","href","target","theme","variant"],"mappings":";;;AAGA,SAAwBA,IAAAA,GAAO;AAC7B,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,iBAC3DL,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,MAAK,yBAAA;AAA0BC,IAAAA,MAAA,EAAO,QAAA;AAASC,IAAAA,KAAA,EAAM;GAAA,EAAU,0BAEvE,CAAA,iBACAT,cAAA,CAAAC,aAAA,CAACK;AAAOC,IAAAA,IAAA,EAAK,yBAAA;AAA0BC,IAAAA,MAAA,EAAO,QAAA;AAASE,IAAAA,OAAA,EAAQ,MAAA;AAAOD,IAAAA,KAAA,EAAM;GAAA,EAAU,0BAEtF,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function Loading() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "12px",
|
|
9
|
+
flexWrap: "wrap"
|
|
10
|
+
}
|
|
11
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
12
|
+
loading: true
|
|
13
|
+
}, "\u52A0\u8F7D\u4E2D"), /* @__PURE__ */React__default.createElement(Button, {
|
|
14
|
+
loading: true,
|
|
15
|
+
theme: "primary"
|
|
16
|
+
}, "\u52A0\u8F7D\u4E2D"), /* @__PURE__ */React__default.createElement(Button, {
|
|
17
|
+
loading: true,
|
|
18
|
+
variant: "outline",
|
|
19
|
+
theme: "primary"
|
|
20
|
+
}, "\u52A0\u8F7D\u4E2D"), /* @__PURE__ */React__default.createElement(Button, {
|
|
21
|
+
loading: true,
|
|
22
|
+
variant: "dashed",
|
|
23
|
+
theme: "success"
|
|
24
|
+
}, "\u52A0\u8F7D\u4E2D"));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { Loading as default };
|
|
28
|
+
//# sourceMappingURL=loading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading.js","sources":["../../../../components/button/_example/loading.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function Loading() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", flexWrap: \"wrap\" }}>\n <Button loading>加载中</Button>\n <Button loading theme=\"primary\">\n 加载中\n </Button>\n <Button loading variant=\"outline\" theme=\"primary\">\n 加载中\n </Button>\n <Button loading variant=\"dashed\" theme=\"success\">\n 加载中\n </Button>\n </div>\n );\n}\n"],"names":["Loading","React","createElement","style","display","gap","flexWrap","Button","loading","theme","variant"],"mappings":";;;AAGA,SAAwBA,OAAAA,GAAU;AAChC,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK;AAAQC,MAAAA,QAAA,EAAU;AAAO;oBAC3DL,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,SAAO;GAAA,EAAC,oBAAG,kBACnBP,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,SAAO,IAAA;AAACC,IAAAA,KAAA,EAAM;KAAU,oBAEhC,CAAA,8CACCF,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAO;AAACE,IAAAA,OAAA,EAAQ,SAAA;AAAUD,IAAAA,OAAM;GAAA,EAAU,oBAElD,kBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,SAAO,IAAA;AAACE,IAAAA,OAAA,EAAQ;AAASD,IAAAA,KAAA,EAAM;GAAA,EAAU,oBAEjD,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
import { IconPlus } from '@tendaui/icons';
|
|
4
|
+
|
|
5
|
+
function Shape() {
|
|
6
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
7
|
+
style: {
|
|
8
|
+
display: "flex",
|
|
9
|
+
gap: "12px",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
flexWrap: "wrap"
|
|
12
|
+
}
|
|
13
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
14
|
+
shape: "rectangle",
|
|
15
|
+
theme: "primary"
|
|
16
|
+
}, "\u957F\u65B9\u5F62"), /* @__PURE__ */React__default.createElement(Button, {
|
|
17
|
+
shape: "round",
|
|
18
|
+
theme: "primary"
|
|
19
|
+
}, "\u5706\u89D2"), /* @__PURE__ */React__default.createElement(Button, {
|
|
20
|
+
shape: "square",
|
|
21
|
+
theme: "primary",
|
|
22
|
+
icon: /* @__PURE__ */React__default.createElement(IconPlus, null)
|
|
23
|
+
}), /* @__PURE__ */React__default.createElement(Button, {
|
|
24
|
+
shape: "circle",
|
|
25
|
+
theme: "primary",
|
|
26
|
+
icon: /* @__PURE__ */React__default.createElement(IconPlus, null)
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { Shape as default };
|
|
31
|
+
//# sourceMappingURL=shape.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shape.js","sources":["../../../../components/button/_example/shape.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\nimport { IconPlus } from \"@tendaui/icons\";\n\nexport default function Shape() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", alignItems: \"center\", flexWrap: \"wrap\" }}>\n <Button shape=\"rectangle\" theme=\"primary\">\n 长方形\n </Button>\n <Button shape=\"round\" theme=\"primary\">\n 圆角\n </Button>\n <Button shape=\"square\" theme=\"primary\" icon={<IconPlus />} />\n <Button shape=\"circle\" theme=\"primary\" icon={<IconPlus />} />\n </div>\n );\n}"],"names":["Shape","React","createElement","style","display","gap","alignItems","flexWrap","Button","shape","theme","icon","IconPlus"],"mappings":";;;;AAIA,SAAwBA,KAAAA,GAAQ;AAC9B,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK,MAAA;AAAQC,MAAAA,UAAA,EAAY,QAAA;AAAUC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,iBACjFN,cAAA,CAAAC,aAAA,CAACM,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAM,WAAA;AAAYC,IAAAA,KAAA,EAAM;KAAU,oBAE1C,CAAA,iBACAT,cAAA,CAAAC,aAAA,CAACM,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAM,OAAA;AAAQC,IAAAA,OAAM;GAAA,EAAU,cAEtC,kBACAT,cAAA,CAAAC,aAAA,CAACM,MAAA,EAAA;AAAOC,IAAAA,OAAM,QAAA;AAASC,IAAAA,KAAA,EAAM,SAAA;IAAUC,IAAA,iBAAMV,cAAA,CAAAC,aAAA,CAACU,QAAA,EAAA,IAAS;GAAI,CAAA,iBAC3DX,cAAA,CAAAC,aAAA,CAACM,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAM,QAAA;AAASC,IAAAA,KAAA,EAAM;IAAUC,IAAA,iBAAMV,cAAA,CAAAC,aAAA,CAACU,QAAA,EAAA,IAAS;AAAA,GAAI,CAC7D,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function Size() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "12px",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
flexWrap: "wrap"
|
|
11
|
+
}
|
|
12
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
13
|
+
size: "small",
|
|
14
|
+
theme: "primary"
|
|
15
|
+
}, "\u5C0F\u6309\u94AE"), /* @__PURE__ */React__default.createElement(Button, {
|
|
16
|
+
size: "medium",
|
|
17
|
+
theme: "primary"
|
|
18
|
+
}, "\u4E2D\u6309\u94AE"), /* @__PURE__ */React__default.createElement(Button, {
|
|
19
|
+
size: "large",
|
|
20
|
+
theme: "primary"
|
|
21
|
+
}, "\u5927\u6309\u94AE"));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { Size as default };
|
|
25
|
+
//# sourceMappingURL=size.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"size.js","sources":["../../../../components/button/_example/size.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function Size() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", alignItems: \"center\", flexWrap: \"wrap\" }}>\n <Button size=\"small\" theme=\"primary\">\n 小按钮\n </Button>\n <Button size=\"medium\" theme=\"primary\">\n 中按钮\n </Button>\n <Button size=\"large\" theme=\"primary\">\n 大按钮\n </Button>\n </div>\n );\n}"],"names":["Size","style","display","gap","alignItems","flexWrap","React","createElement","Button","size","theme"],"mappings":";;;AAGA,SAAwBA,IAAAA,GAAO;AAC7B,EAAA,mDACG,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS;AAAQC,MAAAA,GAAA,EAAK,MAAA;AAAQC,MAAAA,UAAA,EAAY,QAAA;AAAUC,MAAAA,UAAU;AAAO;AAAA,GAAA,iBACjFC,cAAA,CAAAC,aAAA,CAACC,MAAA,EAAA;AAAOC,IAAAA,MAAK,OAAA;AAAQC,IAAAA,KAAA,EAAM;GAAA,EAAU,oBAErC,kBACAJ,cAAA,CAAAC,aAAA,CAACC,MAAA,EAAA;AAAOC,IAAAA,IAAA,EAAK,QAAA;AAASC,IAAAA,OAAM;GAAA,EAAU,oBAEtC,CAAA,iBACAJ,cAAA,CAAAC,aAAA,CAACC;AAAOC,IAAAA,IAAA,EAAK,OAAA;AAAQC,IAAAA,KAAA,EAAM;GAAA,EAAU,oBAErC,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
import { IconDownload, IconSearch } from '@tendaui/icons';
|
|
4
|
+
|
|
5
|
+
function Suffix() {
|
|
6
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
7
|
+
style: {
|
|
8
|
+
display: "flex",
|
|
9
|
+
gap: "12px",
|
|
10
|
+
flexWrap: "wrap"
|
|
11
|
+
}
|
|
12
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
13
|
+
suffix: /* @__PURE__ */React__default.createElement(IconDownload, null),
|
|
14
|
+
theme: "primary"
|
|
15
|
+
}, "\u4E0B\u8F7D"), /* @__PURE__ */React__default.createElement(Button, {
|
|
16
|
+
icon: /* @__PURE__ */React__default.createElement(IconSearch, null),
|
|
17
|
+
suffix: /* @__PURE__ */React__default.createElement(IconDownload, null),
|
|
18
|
+
theme: "primary"
|
|
19
|
+
}, "\u641C\u7D22\u5E76\u4E0B\u8F7D"));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { Suffix as default };
|
|
23
|
+
//# sourceMappingURL=suffix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suffix.js","sources":["../../../../components/button/_example/suffix.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\nimport { IconDownload, IconSearch } from \"@tendaui/icons\";\n\nexport default function Suffix() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", flexWrap: \"wrap\" }}>\n <Button suffix={<IconDownload />} theme=\"primary\">\n 下载\n </Button>\n <Button icon={<IconSearch />} suffix={<IconDownload />} theme=\"primary\">\n 搜索并下载\n </Button>\n </div>\n );\n}"],"names":["Suffix","React","createElement","style","display","gap","flexWrap","Button","suffix","IconDownload","theme","icon","IconSearch"],"mappings":";;;;AAIA,SAAwBA,MAAAA,GAAS;AAC/B,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,iBAC3DL,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;IAAOC,MAAA,8CAASC,YAAA,EAAA,IAAa,CAAA;AAAIC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAElD,CAAA,iBACAT,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;IAAOI,qBAAMV,cAAA,CAAAC,aAAA,CAACU,UAAA,EAAA,IAAW,CAAA;IAAIJ,MAAA,8CAASC,YAAA,EAAA,IAAa,CAAA;AAAIC,IAAAA,KAAA,EAAM;GAAA,EAAU,gCAExE,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function Theme() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "12px",
|
|
9
|
+
flexWrap: "wrap"
|
|
10
|
+
}
|
|
11
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
12
|
+
theme: "default"
|
|
13
|
+
}, "\u9ED8\u8BA4"), /* @__PURE__ */React__default.createElement(Button, {
|
|
14
|
+
theme: "primary"
|
|
15
|
+
}, "\u4E3B\u8981"), /* @__PURE__ */React__default.createElement(Button, {
|
|
16
|
+
theme: "success"
|
|
17
|
+
}, "\u6210\u529F"), /* @__PURE__ */React__default.createElement(Button, {
|
|
18
|
+
theme: "warning"
|
|
19
|
+
}, "\u8B66\u544A"), /* @__PURE__ */React__default.createElement(Button, {
|
|
20
|
+
theme: "danger"
|
|
21
|
+
}, "\u5371\u9669"));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { Theme as default };
|
|
25
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sources":["../../../../components/button/_example/theme.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function Theme() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", flexWrap: \"wrap\" }}>\n <Button theme=\"default\">默认</Button>\n <Button theme=\"primary\">主要</Button>\n <Button theme=\"success\">成功</Button>\n <Button theme=\"warning\">警告</Button>\n <Button theme=\"danger\">危险</Button>\n </div>\n );\n}"],"names":["Theme","style","display","gap","flexWrap","Button","theme","React","createElement"],"mappings":";;;AAGA,SAAwBA,KAAAA,GAAQ;AAC9B,EAAA,mDACG,KAAA,EAAA;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,OAAA,EAAS,MAAA;AAAQC,MAAAA,KAAK,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,8CAC1DC,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAM;KAAU,cAAE,CAAA,8CACzBD,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAAE,kBAC1BC,cAAA,CAAAC,aAAA,CAACH,MAAA,EAAA;AAAOC,IAAAA,OAAM;GAAA,EAAU,cAAE,kBAC1BC,cAAA,CAAAC,aAAA,CAACH,MAAA,EAAA;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAAE,CAAA,iBAC1BC,cAAA,CAAAC,aAAA,CAACH;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAS,cAAE,CAC3B,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function VariantBase() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "12px",
|
|
9
|
+
flexWrap: "wrap"
|
|
10
|
+
}
|
|
11
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
12
|
+
variant: "base",
|
|
13
|
+
theme: "default"
|
|
14
|
+
}, "\u9ED8\u8BA4"), /* @__PURE__ */React__default.createElement(Button, {
|
|
15
|
+
variant: "base",
|
|
16
|
+
theme: "primary"
|
|
17
|
+
}, "\u4E3B\u8981"), /* @__PURE__ */React__default.createElement(Button, {
|
|
18
|
+
variant: "base",
|
|
19
|
+
theme: "success"
|
|
20
|
+
}, "\u6210\u529F"), /* @__PURE__ */React__default.createElement(Button, {
|
|
21
|
+
variant: "base",
|
|
22
|
+
theme: "warning"
|
|
23
|
+
}, "\u8B66\u544A"), /* @__PURE__ */React__default.createElement(Button, {
|
|
24
|
+
variant: "base",
|
|
25
|
+
theme: "danger"
|
|
26
|
+
}, "\u5371\u9669"));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { VariantBase as default };
|
|
30
|
+
//# sourceMappingURL=variant-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-base.js","sources":["../../../../components/button/_example/variant-base.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function VariantBase() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", flexWrap: \"wrap\" }}>\n <Button variant=\"base\" theme=\"default\">\n 默认\n </Button>\n <Button variant=\"base\" theme=\"primary\">\n 主要\n </Button>\n <Button variant=\"base\" theme=\"success\">\n 成功\n </Button>\n <Button variant=\"base\" theme=\"warning\">\n 警告\n </Button>\n <Button variant=\"base\" theme=\"danger\">\n 危险\n </Button>\n </div>\n );\n}"],"names":["VariantBase","React","createElement","style","display","gap","flexWrap","Button","variant","theme"],"mappings":";;;AAGA,SAAwBA,WAAAA,GAAc;AACpC,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,8CAC1DC,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ,MAAA;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAEvC,kBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ,MAAA;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAEvC,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK;AAAOC,IAAAA,OAAA,EAAQ,MAAA;AAAOC,IAAAA,OAAM;GAAA,EAAU,cAEvC,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAEvC,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,SAAQ,MAAA;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAS,cAEtC,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function VariantDashed() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "12px",
|
|
9
|
+
flexWrap: "wrap"
|
|
10
|
+
}
|
|
11
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
12
|
+
variant: "dashed",
|
|
13
|
+
theme: "default"
|
|
14
|
+
}, "\u9ED8\u8BA4"), /* @__PURE__ */React__default.createElement(Button, {
|
|
15
|
+
variant: "dashed",
|
|
16
|
+
theme: "primary"
|
|
17
|
+
}, "\u4E3B\u8981"), /* @__PURE__ */React__default.createElement(Button, {
|
|
18
|
+
variant: "dashed",
|
|
19
|
+
theme: "success"
|
|
20
|
+
}, "\u6210\u529F"), /* @__PURE__ */React__default.createElement(Button, {
|
|
21
|
+
variant: "dashed",
|
|
22
|
+
theme: "warning"
|
|
23
|
+
}, "\u8B66\u544A"), /* @__PURE__ */React__default.createElement(Button, {
|
|
24
|
+
variant: "dashed",
|
|
25
|
+
theme: "danger"
|
|
26
|
+
}, "\u5371\u9669"));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { VariantDashed as default };
|
|
30
|
+
//# sourceMappingURL=variant-dashed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-dashed.js","sources":["../../../../components/button/_example/variant-dashed.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function VariantDashed() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", flexWrap: \"wrap\" }}>\n <Button variant=\"dashed\" theme=\"default\">\n 默认\n </Button>\n <Button variant=\"dashed\" theme=\"primary\">\n 主要\n </Button>\n <Button variant=\"dashed\" theme=\"success\">\n 成功\n </Button>\n <Button variant=\"dashed\" theme=\"warning\">\n 警告\n </Button>\n <Button variant=\"dashed\" theme=\"danger\">\n 危险\n </Button>\n </div>\n );\n}"],"names":["VariantDashed","React","createElement","style","display","gap","flexWrap","Button","variant","theme"],"mappings":";;;AAGA,SAAwBA,aAAAA,GAAgB;AACtC,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,8CAC1DC,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ,QAAA;AAASC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAEzC,kBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ,QAAA;AAASC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAEzC,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK;AAAOC,IAAAA,OAAA,EAAQ,QAAA;AAASC,IAAAA,OAAM;GAAA,EAAU,cAEzC,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ;AAASC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAEzC,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,SAAQ,QAAA;AAASC,IAAAA,KAAA,EAAM;GAAA,EAAS,cAExC,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function VariantOutline() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "12px",
|
|
9
|
+
flexWrap: "wrap"
|
|
10
|
+
}
|
|
11
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
12
|
+
variant: "outline",
|
|
13
|
+
theme: "default"
|
|
14
|
+
}, "\u9ED8\u8BA4"), /* @__PURE__ */React__default.createElement(Button, {
|
|
15
|
+
variant: "outline",
|
|
16
|
+
theme: "primary"
|
|
17
|
+
}, "\u4E3B\u8981"), /* @__PURE__ */React__default.createElement(Button, {
|
|
18
|
+
variant: "outline",
|
|
19
|
+
theme: "success"
|
|
20
|
+
}, "\u6210\u529F"), /* @__PURE__ */React__default.createElement(Button, {
|
|
21
|
+
variant: "outline",
|
|
22
|
+
theme: "warning"
|
|
23
|
+
}, "\u8B66\u544A"), /* @__PURE__ */React__default.createElement(Button, {
|
|
24
|
+
variant: "outline",
|
|
25
|
+
theme: "danger"
|
|
26
|
+
}, "\u5371\u9669"));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { VariantOutline as default };
|
|
30
|
+
//# sourceMappingURL=variant-outline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-outline.js","sources":["../../../../components/button/_example/variant-outline.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function VariantOutline() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", flexWrap: \"wrap\" }}>\n <Button variant=\"outline\" theme=\"default\">\n 默认\n </Button>\n <Button variant=\"outline\" theme=\"primary\">\n 主要\n </Button>\n <Button variant=\"outline\" theme=\"success\">\n 成功\n </Button>\n <Button variant=\"outline\" theme=\"warning\">\n 警告\n </Button>\n <Button variant=\"outline\" theme=\"danger\">\n 危险\n </Button>\n </div>\n );\n}"],"names":["VariantOutline","React","createElement","style","display","gap","flexWrap","Button","variant","theme"],"mappings":";;;AAGA,SAAwBA,cAAAA,GAAiB;AACvC,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,8CAC1DC,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ,SAAA;AAAUC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAE1C,kBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ,SAAA;AAAUC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAE1C,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK;AAAOC,IAAAA,OAAA,EAAQ,SAAA;AAAUC,IAAAA,OAAM;GAAA,EAAU,cAE1C,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ;AAAUC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAE1C,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,SAAQ,SAAA;AAAUC,IAAAA,KAAA,EAAM;GAAA,EAAS,cAEzC,CACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Button } from '@tendaui/react';
|
|
3
|
+
|
|
4
|
+
function VariantText() {
|
|
5
|
+
return /* @__PURE__ */React__default.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
display: "flex",
|
|
8
|
+
gap: "12px",
|
|
9
|
+
flexWrap: "wrap"
|
|
10
|
+
}
|
|
11
|
+
}, /* @__PURE__ */React__default.createElement(Button, {
|
|
12
|
+
variant: "text",
|
|
13
|
+
theme: "default"
|
|
14
|
+
}, "\u9ED8\u8BA4"), /* @__PURE__ */React__default.createElement(Button, {
|
|
15
|
+
variant: "text",
|
|
16
|
+
theme: "primary"
|
|
17
|
+
}, "\u4E3B\u8981"), /* @__PURE__ */React__default.createElement(Button, {
|
|
18
|
+
variant: "text",
|
|
19
|
+
theme: "success"
|
|
20
|
+
}, "\u6210\u529F"), /* @__PURE__ */React__default.createElement(Button, {
|
|
21
|
+
variant: "text",
|
|
22
|
+
theme: "warning"
|
|
23
|
+
}, "\u8B66\u544A"), /* @__PURE__ */React__default.createElement(Button, {
|
|
24
|
+
variant: "text",
|
|
25
|
+
theme: "danger"
|
|
26
|
+
}, "\u5371\u9669"));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { VariantText as default };
|
|
30
|
+
//# sourceMappingURL=variant-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-text.js","sources":["../../../../components/button/_example/variant-text.tsx"],"sourcesContent":["import React from \"react\";\nimport { Button } from \"@tendaui/react\";\n\nexport default function VariantText() {\n return (\n <div style={{ display: \"flex\", gap: \"12px\", flexWrap: \"wrap\" }}>\n <Button variant=\"text\" theme=\"default\">\n 默认\n </Button>\n <Button variant=\"text\" theme=\"primary\">\n 主要\n </Button>\n <Button variant=\"text\" theme=\"success\">\n 成功\n </Button>\n <Button variant=\"text\" theme=\"warning\">\n 警告\n </Button>\n <Button variant=\"text\" theme=\"danger\">\n 危险\n </Button>\n </div>\n );\n}"],"names":["VariantText","React","createElement","style","display","gap","flexWrap","Button","variant","theme"],"mappings":";;;AAGA,SAAwBA,WAAAA,GAAc;AACpC,EAAA,sBACEC,cAAA,CAAAC,aAAA,CAAC;AAAIC,IAAAA,KAAA,EAAO;AAAEC,MAAAA,SAAS,MAAA;AAAQC,MAAAA,GAAA,EAAK,MAAA;AAAQC,MAAAA,QAAA,EAAU;AAAO;AAAA,GAAA,8CAC1DC,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ,MAAA;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAEvC,kBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ,MAAA;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAEvC,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK;AAAOC,IAAAA,OAAA,EAAQ,MAAA;AAAOC,IAAAA,OAAM;GAAA,EAAU,cAEvC,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,OAAA,EAAQ;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAU,cAEvC,CAAA,iBACAR,cAAA,CAAAC,aAAA,CAACK,MAAA,EAAA;AAAOC,IAAAA,SAAQ,MAAA;AAAOC,IAAAA,KAAA,EAAM;GAAA,EAAS,cAEtC,CACF,CAAA;AAEJ;;;;"}
|
package/es/button/index.js
CHANGED
|
@@ -5,8 +5,9 @@ import '../_chunks/dep-D-UKOauR.js';
|
|
|
5
5
|
import '../_chunks/dep-DN7d1SzH.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'classnames';
|
|
8
|
-
import '../_chunks/dep-
|
|
9
|
-
import '../
|
|
8
|
+
import '../_chunks/dep-u1x3x6MJ.js';
|
|
9
|
+
import '../config-provider/ConfigContext.js';
|
|
10
|
+
import '../_chunks/dep--nQ-cjme.js';
|
|
10
11
|
import 'dayjs';
|
|
11
12
|
import '../loading/index.js';
|
|
12
13
|
import '../loading/Loading.js';
|
|
@@ -17,12 +18,12 @@ import '../common/Portal.js';
|
|
|
17
18
|
import 'react-dom';
|
|
18
19
|
import '../_chunks/dep-BRbJGDI9.js';
|
|
19
20
|
import '../loading/Gradient.js';
|
|
20
|
-
import '../_chunks/dep-
|
|
21
|
+
import '../_chunks/dep-DHWwZ2Nj.js';
|
|
21
22
|
import '../_chunks/dep-PPA-yoAy.js';
|
|
22
23
|
import '../_chunks/dep-DGvfel3I.js';
|
|
23
24
|
import '../_chunks/dep-DbVHGoUC.js';
|
|
24
25
|
import '../loading/style/css.js';
|
|
25
|
-
import '../_chunks/dep-
|
|
26
|
+
import '../_chunks/dep-spxR0DG0.js';
|
|
26
27
|
|
|
27
28
|
var Button = Button$1;
|
|
28
29
|
|
package/es/button/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../components/button/index.ts"],"sourcesContent":["import _Button from \"./Button\";\n\nimport \"./style/index\";\nexport type { ButtonProps } from \"./Button\";\nexport const Button = _Button;\nexport * from \"./type\";\nexport default Button;\n"],"names":["Button","_Button"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../components/button/index.ts"],"sourcesContent":["import _Button from \"./Button\";\n\nimport \"./style/index\";\nexport type { ButtonProps } from \"./Button\";\nexport const Button = _Button;\nexport * from \"./type\";\nexport default Button;\n"],"names":["Button","_Button"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,IAAMA,MAAA,GAASC;;;;"}
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
font-size: var(--td-font-size-body-large);
|
|
39
39
|
}
|
|
40
40
|
.t-button .t-icon + .t-button__text:not(:empty) {
|
|
41
|
-
margin-
|
|
41
|
+
margin-inline-start: 8px;
|
|
42
42
|
}
|
|
43
43
|
.t-button .t-loading + .t-button__text:not(:empty) {
|
|
44
|
-
margin-
|
|
44
|
+
margin-inline-start: 8px;
|
|
45
45
|
}
|
|
46
46
|
.t-button .t-button__suffix:not(:empty) {
|
|
47
47
|
display: inline-flex;
|
|
48
|
-
margin-
|
|
48
|
+
margin-inline-start: 8px;
|
|
49
49
|
}
|
|
50
50
|
.t-button--variant-base {
|
|
51
51
|
color: var(--td-text-color-anti);
|
package/es/checkbox/Checkbox.js
CHANGED
|
@@ -2,7 +2,7 @@ import '../_chunks/dep-Cwish4GD.js';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../_chunks/dep-BP0-apUT.js';
|
|
4
4
|
import '../common/Check.js';
|
|
5
|
-
export { C as default } from '../_chunks/dep-
|
|
5
|
+
export { C as default } from '../_chunks/dep-Dr3i7zFt.js';
|
|
6
6
|
import '../_chunks/dep-DGvfel3I.js';
|
|
7
7
|
import '../_chunks/dep-D-UKOauR.js';
|
|
8
8
|
import 'hoist-non-react-statics';
|
|
@@ -10,9 +10,10 @@ import '../_chunks/dep-CzLhKWCf.js';
|
|
|
10
10
|
import '../_chunks/dep-DN7d1SzH.js';
|
|
11
11
|
import 'classnames';
|
|
12
12
|
import 'lodash-es';
|
|
13
|
-
import '../_chunks/dep-
|
|
14
|
-
import '../_chunks/dep-
|
|
15
|
-
import '../
|
|
13
|
+
import '../_chunks/dep-DHWwZ2Nj.js';
|
|
14
|
+
import '../_chunks/dep-u1x3x6MJ.js';
|
|
15
|
+
import '../config-provider/ConfigContext.js';
|
|
16
|
+
import '../_chunks/dep--nQ-cjme.js';
|
|
16
17
|
import 'dayjs';
|
|
17
|
-
import '../_chunks/dep-
|
|
18
|
+
import '../_chunks/dep-grkSd2UB.js';
|
|
18
19
|
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|