tdesign-react 0.31.2-alpha.1 → 0.31.2-alpha.2
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/CHANGELOG.md +1 -1
- package/dist/tdesign.css +498 -0
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +26543 -20076
- package/dist/tdesign.js.map +1 -1
- package/dist/tdesign.min.css +1 -1
- package/dist/tdesign.min.css.map +1 -1
- package/dist/tdesign.min.js +9 -3
- package/dist/tdesign.min.js.map +1 -1
- package/es/_chunks/{dep-5d29cc59.js → dep-7e7b26b4.js} +1 -1
- package/es/_chunks/{dep-5d29cc59.js.map → dep-7e7b26b4.js.map} +1 -1
- package/es/_common/js/color-picker/cmyk.d.ts +27 -0
- package/es/_common/js/color-picker/color.d.ts +154 -0
- package/es/_common/js/color-picker/gradient.d.ts +22 -0
- package/es/_util/useClickOutside.d.ts +1 -1
- package/es/_util/useClickOutside.js +51 -3
- package/es/_util/useClickOutside.js.map +1 -1
- package/es/_util/useDrag.d.ts +16 -0
- package/es/_util/useDrag.js +74 -0
- package/es/_util/useDrag.js.map +1 -0
- package/es/avatar/AvararGroup.js +1 -1
- package/es/avatar/Avatar.js +1 -1
- package/es/avatar/index.js +1 -1
- package/es/color-picker/ColorPicker.d.ts +4 -0
- package/es/color-picker/ColorPicker.js +241 -0
- package/es/color-picker/ColorPicker.js.map +1 -0
- package/es/color-picker/ColorPickerPanel.d.ts +7 -0
- package/es/color-picker/ColorPickerPanel.js +179 -0
- package/es/color-picker/ColorPickerPanel.js.map +1 -0
- package/es/color-picker/components/panel/alpha.d.ts +4 -0
- package/es/color-picker/components/panel/alpha.js +48 -0
- package/es/color-picker/components/panel/alpha.js.map +1 -0
- package/es/color-picker/components/panel/format/config.d.ts +19 -0
- package/es/color-picker/components/panel/format/config.js +90 -0
- package/es/color-picker/components/panel/format/config.js.map +1 -0
- package/es/color-picker/components/panel/format/index.d.ts +11 -0
- package/es/color-picker/components/panel/format/index.js +197 -0
- package/es/color-picker/components/panel/format/index.js.map +1 -0
- package/es/color-picker/components/panel/format/inputs.d.ts +3 -0
- package/es/color-picker/components/panel/format/inputs.js +223 -0
- package/es/color-picker/components/panel/format/inputs.js.map +1 -0
- package/es/color-picker/components/panel/header.d.ts +14 -0
- package/es/color-picker/components/panel/header.js +100 -0
- package/es/color-picker/components/panel/header.js.map +1 -0
- package/es/color-picker/components/panel/hue.d.ts +4 -0
- package/es/color-picker/components/panel/hue.js +32 -0
- package/es/color-picker/components/panel/hue.js.map +1 -0
- package/es/color-picker/components/panel/index.d.ts +4 -0
- package/es/color-picker/components/panel/index.js +456 -0
- package/es/color-picker/components/panel/index.js.map +1 -0
- package/es/color-picker/components/panel/linear-gradient.d.ts +3 -0
- package/es/color-picker/components/panel/linear-gradient.js +360 -0
- package/es/color-picker/components/panel/linear-gradient.js.map +1 -0
- package/es/color-picker/components/panel/saturation.d.ts +4 -0
- package/es/color-picker/components/panel/saturation.js +124 -0
- package/es/color-picker/components/panel/saturation.js.map +1 -0
- package/es/color-picker/components/panel/slider.d.ts +10 -0
- package/es/color-picker/components/panel/slider.js +106 -0
- package/es/color-picker/components/panel/slider.js.map +1 -0
- package/es/color-picker/components/panel/style/css.d.ts +1 -0
- package/es/color-picker/components/panel/style/css.js +1 -0
- package/es/color-picker/components/panel/style/index.d.ts +1 -0
- package/es/color-picker/components/panel/style/index.js +7 -0
- package/es/color-picker/components/panel/style/index.js.map +1 -0
- package/es/color-picker/components/panel/swatches.d.ts +11 -0
- package/es/color-picker/components/panel/swatches.js +134 -0
- package/es/color-picker/components/panel/swatches.js.map +1 -0
- package/es/color-picker/components/style/css.d.ts +1 -0
- package/es/color-picker/components/style/css.js +1 -0
- package/es/color-picker/components/style/index.d.ts +1 -0
- package/es/color-picker/components/style/index.js +7 -0
- package/es/color-picker/components/style/index.js.map +1 -0
- package/es/color-picker/components/trigger.d.ts +9 -0
- package/es/color-picker/components/trigger.js +125 -0
- package/es/color-picker/components/trigger.js.map +1 -0
- package/es/color-picker/const.d.ts +15 -0
- package/es/color-picker/const.js +22 -0
- package/es/color-picker/const.js.map +1 -0
- package/es/color-picker/hooks/useClassname.d.ts +2 -0
- package/es/color-picker/hooks/useClassname.js +46 -0
- package/es/color-picker/hooks/useClassname.js.map +1 -0
- package/es/color-picker/index.d.ts +10 -0
- package/es/color-picker/index.js +172 -0
- package/es/color-picker/index.js.map +1 -0
- package/es/color-picker/interface.d.ts +23 -0
- package/es/color-picker/interface.js +7 -0
- package/es/color-picker/interface.js.map +1 -0
- package/es/color-picker/style/css.d.ts +1 -0
- package/es/color-picker/style/css.js +1 -0
- package/es/color-picker/style/index.css +497 -0
- package/es/color-picker/style/index.d.ts +1 -0
- package/es/color-picker/style/index.js +7 -0
- package/es/color-picker/style/index.js.map +1 -0
- package/es/color-picker/type.d.ts +109 -0
- package/es/color-picker/type.js +7 -0
- package/es/color-picker/type.js.map +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +24 -1
- package/es/index.js.map +1 -1
- package/es/input/Input.js +1 -1
- package/es/input/Input.js.map +1 -1
- package/es/popup/hooks/useTriggerProps.js +28 -0
- package/es/popup/hooks/useTriggerProps.js.map +1 -1
- package/esm/_chunks/{dep-5d29cc59.js → dep-7e7b26b4.js} +1 -1
- package/esm/_chunks/{dep-5d29cc59.js.map → dep-7e7b26b4.js.map} +1 -1
- package/esm/_common/js/color-picker/cmyk.d.ts +27 -0
- package/esm/_common/js/color-picker/color.d.ts +154 -0
- package/esm/_common/js/color-picker/gradient.d.ts +22 -0
- package/esm/_util/useClickOutside.d.ts +1 -1
- package/esm/_util/useClickOutside.js +51 -3
- package/esm/_util/useClickOutside.js.map +1 -1
- package/esm/_util/useDrag.d.ts +16 -0
- package/esm/_util/useDrag.js +74 -0
- package/esm/_util/useDrag.js.map +1 -0
- package/esm/avatar/AvararGroup.js +1 -1
- package/esm/avatar/Avatar.js +1 -1
- package/esm/avatar/index.js +1 -1
- package/esm/color-picker/ColorPicker.d.ts +4 -0
- package/esm/color-picker/ColorPicker.js +250 -0
- package/esm/color-picker/ColorPicker.js.map +1 -0
- package/esm/color-picker/ColorPickerPanel.d.ts +7 -0
- package/esm/color-picker/ColorPickerPanel.js +188 -0
- package/esm/color-picker/ColorPickerPanel.js.map +1 -0
- package/esm/color-picker/components/panel/alpha.d.ts +4 -0
- package/esm/color-picker/components/panel/alpha.js +48 -0
- package/esm/color-picker/components/panel/alpha.js.map +1 -0
- package/esm/color-picker/components/panel/format/config.d.ts +19 -0
- package/esm/color-picker/components/panel/format/config.js +90 -0
- package/esm/color-picker/components/panel/format/config.js.map +1 -0
- package/esm/color-picker/components/panel/format/index.d.ts +11 -0
- package/esm/color-picker/components/panel/format/index.js +205 -0
- package/esm/color-picker/components/panel/format/index.js.map +1 -0
- package/esm/color-picker/components/panel/format/inputs.d.ts +3 -0
- package/esm/color-picker/components/panel/format/inputs.js +226 -0
- package/esm/color-picker/components/panel/format/inputs.js.map +1 -0
- package/esm/color-picker/components/panel/header.d.ts +14 -0
- package/esm/color-picker/components/panel/header.js +100 -0
- package/esm/color-picker/components/panel/header.js.map +1 -0
- package/esm/color-picker/components/panel/hue.d.ts +4 -0
- package/esm/color-picker/components/panel/hue.js +32 -0
- package/esm/color-picker/components/panel/hue.js.map +1 -0
- package/esm/color-picker/components/panel/index.d.ts +4 -0
- package/esm/color-picker/components/panel/index.js +465 -0
- package/esm/color-picker/components/panel/index.js.map +1 -0
- package/esm/color-picker/components/panel/linear-gradient.d.ts +3 -0
- package/esm/color-picker/components/panel/linear-gradient.js +363 -0
- package/esm/color-picker/components/panel/linear-gradient.js.map +1 -0
- package/esm/color-picker/components/panel/saturation.d.ts +4 -0
- package/esm/color-picker/components/panel/saturation.js +124 -0
- package/esm/color-picker/components/panel/saturation.js.map +1 -0
- package/esm/color-picker/components/panel/slider.d.ts +10 -0
- package/esm/color-picker/components/panel/slider.js +106 -0
- package/esm/color-picker/components/panel/slider.js.map +1 -0
- package/esm/color-picker/components/panel/style/css.d.ts +1 -0
- package/esm/color-picker/components/panel/style/index.d.ts +1 -0
- package/esm/color-picker/components/panel/style/index.js +1 -0
- package/esm/color-picker/components/panel/swatches.d.ts +11 -0
- package/esm/color-picker/components/panel/swatches.js +134 -0
- package/esm/color-picker/components/panel/swatches.js.map +1 -0
- package/esm/color-picker/components/style/css.d.ts +1 -0
- package/esm/color-picker/components/style/index.d.ts +1 -0
- package/esm/color-picker/components/style/index.js +1 -0
- package/esm/color-picker/components/trigger.d.ts +9 -0
- package/esm/color-picker/components/trigger.js +125 -0
- package/esm/color-picker/components/trigger.js.map +1 -0
- package/esm/color-picker/const.d.ts +15 -0
- package/esm/color-picker/const.js +22 -0
- package/esm/color-picker/const.js.map +1 -0
- package/esm/color-picker/hooks/useClassname.d.ts +2 -0
- package/esm/color-picker/hooks/useClassname.js +46 -0
- package/esm/color-picker/hooks/useClassname.js.map +1 -0
- package/esm/color-picker/index.d.ts +10 -0
- package/esm/color-picker/index.js +182 -0
- package/esm/color-picker/index.js.map +1 -0
- package/esm/color-picker/interface.d.ts +23 -0
- package/esm/color-picker/interface.js +7 -0
- package/esm/color-picker/interface.js.map +1 -0
- package/esm/color-picker/style/css.d.ts +1 -0
- package/esm/color-picker/style/index.d.ts +1 -0
- package/esm/color-picker/style/index.js +1 -0
- package/esm/color-picker/type.d.ts +109 -0
- package/esm/color-picker/type.js +7 -0
- package/esm/color-picker/type.js.map +1 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +25 -1
- package/esm/index.js.map +1 -1
- package/esm/input/Input.js +1 -1
- package/esm/input/Input.js.map +1 -1
- package/esm/popup/hooks/useTriggerProps.js +28 -0
- package/esm/popup/hooks/useTriggerProps.js.map +1 -1
- package/lib/_chunks/{dep-1c7ceac8.js → dep-9d6a55ed.js} +1 -1
- package/lib/_chunks/{dep-1c7ceac8.js.map → dep-9d6a55ed.js.map} +1 -1
- package/lib/_common/js/color-picker/cmyk.d.ts +27 -0
- package/lib/_common/js/color-picker/color.d.ts +154 -0
- package/lib/_common/js/color-picker/gradient.d.ts +22 -0
- package/lib/_util/useClickOutside.d.ts +1 -1
- package/lib/_util/useClickOutside.js +47 -3
- package/lib/_util/useClickOutside.js.map +1 -1
- package/lib/_util/useDrag.d.ts +16 -0
- package/lib/_util/useDrag.js +78 -0
- package/lib/_util/useDrag.js.map +1 -0
- package/lib/avatar/AvararGroup.js +1 -1
- package/lib/avatar/Avatar.js +1 -1
- package/lib/avatar/index.js +1 -1
- package/lib/color-picker/ColorPicker.d.ts +4 -0
- package/lib/color-picker/ColorPicker.js +232 -0
- package/lib/color-picker/ColorPicker.js.map +1 -0
- package/lib/color-picker/ColorPickerPanel.d.ts +7 -0
- package/lib/color-picker/ColorPickerPanel.js +170 -0
- package/lib/color-picker/ColorPickerPanel.js.map +1 -0
- package/lib/color-picker/components/panel/alpha.d.ts +4 -0
- package/lib/color-picker/components/panel/alpha.js +57 -0
- package/lib/color-picker/components/panel/alpha.js.map +1 -0
- package/lib/color-picker/components/panel/format/config.d.ts +19 -0
- package/lib/color-picker/components/panel/format/config.js +95 -0
- package/lib/color-picker/components/panel/format/config.js.map +1 -0
- package/lib/color-picker/components/panel/format/index.d.ts +11 -0
- package/lib/color-picker/components/panel/format/index.js +189 -0
- package/lib/color-picker/components/panel/format/index.js.map +1 -0
- package/lib/color-picker/components/panel/format/inputs.d.ts +3 -0
- package/lib/color-picker/components/panel/format/inputs.js +220 -0
- package/lib/color-picker/components/panel/format/inputs.js.map +1 -0
- package/lib/color-picker/components/panel/header.d.ts +14 -0
- package/lib/color-picker/components/panel/header.js +103 -0
- package/lib/color-picker/components/panel/header.js.map +1 -0
- package/lib/color-picker/components/panel/hue.d.ts +4 -0
- package/lib/color-picker/components/panel/hue.js +40 -0
- package/lib/color-picker/components/panel/hue.js.map +1 -0
- package/lib/color-picker/components/panel/index.d.ts +4 -0
- package/lib/color-picker/components/panel/index.js +448 -0
- package/lib/color-picker/components/panel/index.js.map +1 -0
- package/lib/color-picker/components/panel/linear-gradient.d.ts +3 -0
- package/lib/color-picker/components/panel/linear-gradient.js +358 -0
- package/lib/color-picker/components/panel/linear-gradient.js.map +1 -0
- package/lib/color-picker/components/panel/saturation.d.ts +4 -0
- package/lib/color-picker/components/panel/saturation.js +132 -0
- package/lib/color-picker/components/panel/saturation.js.map +1 -0
- package/lib/color-picker/components/panel/slider.d.ts +10 -0
- package/lib/color-picker/components/panel/slider.js +115 -0
- package/lib/color-picker/components/panel/slider.js.map +1 -0
- package/lib/color-picker/components/panel/style/css.d.ts +1 -0
- package/lib/color-picker/components/panel/style/index.d.ts +1 -0
- package/lib/color-picker/components/panel/swatches.d.ts +11 -0
- package/lib/color-picker/components/panel/swatches.js +139 -0
- package/lib/color-picker/components/panel/swatches.js.map +1 -0
- package/lib/color-picker/components/style/css.d.ts +1 -0
- package/lib/color-picker/components/style/index.d.ts +1 -0
- package/lib/color-picker/components/trigger.d.ts +9 -0
- package/lib/color-picker/components/trigger.js +126 -0
- package/lib/color-picker/components/trigger.js.map +1 -0
- package/lib/color-picker/const.d.ts +15 -0
- package/lib/color-picker/const.js +35 -0
- package/lib/color-picker/const.js.map +1 -0
- package/lib/color-picker/hooks/useClassname.d.ts +2 -0
- package/lib/color-picker/hooks/useClassname.js +46 -0
- package/lib/color-picker/hooks/useClassname.js.map +1 -0
- package/lib/color-picker/index.d.ts +10 -0
- package/lib/color-picker/index.js +160 -0
- package/lib/color-picker/index.js.map +1 -0
- package/lib/color-picker/interface.d.ts +23 -0
- package/lib/color-picker/interface.js +9 -0
- package/lib/color-picker/interface.js.map +1 -0
- package/lib/color-picker/style/css.d.ts +1 -0
- package/lib/color-picker/style/index.d.ts +1 -0
- package/lib/color-picker/type.d.ts +109 -0
- package/lib/color-picker/type.js +9 -0
- package/lib/color-picker/type.js.map +1 -0
- package/lib/index-lib.js +25 -1
- package/lib/index-lib.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +25 -1
- package/lib/index.js.map +1 -1
- package/lib/input/Input.js +1 -1
- package/lib/input/Input.js.map +1 -1
- package/lib/popup/hooks/useTriggerProps.js +24 -0
- package/lib/popup/hooks/useTriggerProps.js.map +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tdesign v0.31.1
|
|
3
|
+
* (c) 2022 tdesign
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { _ as _defineProperty } from '../_chunks/dep-1628aaec.js';
|
|
8
|
+
import { _ as _slicedToArray } from '../_chunks/dep-aca05d9d.js';
|
|
9
|
+
import { _ as _objectWithoutProperties } from '../_chunks/dep-ea842483.js';
|
|
10
|
+
import React, { useState, useRef } from 'react';
|
|
11
|
+
import { Popup } from '../popup/index.js';
|
|
12
|
+
import useClassname from './hooks/useClassname.js';
|
|
13
|
+
import useDefault from '../_util/useDefault.js';
|
|
14
|
+
import ColorTrigger from './components/trigger.js';
|
|
15
|
+
import ColorPanel from './components/panel/index.js';
|
|
16
|
+
import useClickOutside from '../_util/useClickOutside.js';
|
|
17
|
+
import '../_chunks/dep-85a9595a.js';
|
|
18
|
+
import '../popup/Popup.js';
|
|
19
|
+
import 'react-transition-group';
|
|
20
|
+
import 'classnames';
|
|
21
|
+
import 'react-popper';
|
|
22
|
+
import '../_util/useAnimation.js';
|
|
23
|
+
import '../_util/useConfig.js';
|
|
24
|
+
import '../_chunks/dep-bbad8591.js';
|
|
25
|
+
import '../_chunks/dep-8702aba9.js';
|
|
26
|
+
import '../_chunks/dep-e9e7c24f.js';
|
|
27
|
+
import '../_chunks/dep-c47502ef.js';
|
|
28
|
+
import '../_chunks/dep-3a2f4bdf.js';
|
|
29
|
+
import '../_chunks/dep-d51fd958.js';
|
|
30
|
+
import '../_chunks/dep-db8880c0.js';
|
|
31
|
+
import '../_chunks/dep-8efaaac0.js';
|
|
32
|
+
import '../_chunks/dep-d539b435.js';
|
|
33
|
+
import '../_chunks/dep-2b0021c1.js';
|
|
34
|
+
import '../_chunks/dep-09299e3f.js';
|
|
35
|
+
import '../_chunks/dep-23b2574f.js';
|
|
36
|
+
import '../_chunks/dep-a1403158.js';
|
|
37
|
+
import '../_chunks/dep-c03c5f48.js';
|
|
38
|
+
import '../_chunks/dep-9b67144e.js';
|
|
39
|
+
import '../_chunks/dep-d038aaf3.js';
|
|
40
|
+
import '../_chunks/dep-00728537.js';
|
|
41
|
+
import '../_chunks/dep-32abd81f.js';
|
|
42
|
+
import '../_chunks/dep-f3e5eb4b.js';
|
|
43
|
+
import '../_chunks/dep-ae52f85e.js';
|
|
44
|
+
import '../_chunks/dep-63ed508e.js';
|
|
45
|
+
import '../_chunks/dep-155571ca.js';
|
|
46
|
+
import '../_chunks/dep-81670ae9.js';
|
|
47
|
+
import '../locale/zh_CN.js';
|
|
48
|
+
import '../_common/js/global-config/locale/zh_CN.js';
|
|
49
|
+
import '../config-provider/zh_CN_config.js';
|
|
50
|
+
import '../_util/composeRefs.js';
|
|
51
|
+
import '../common/Portal.js';
|
|
52
|
+
import 'react-dom';
|
|
53
|
+
import '../_util/dom.js';
|
|
54
|
+
import 'raf';
|
|
55
|
+
import '../_chunks/dep-c9e242b1.js';
|
|
56
|
+
import '../_util/easing.js';
|
|
57
|
+
import '../popup/hooks/useTriggerProps.js';
|
|
58
|
+
import '../popup/utils/getTransitionParams.js';
|
|
59
|
+
import '../_util/useMutationObserver.js';
|
|
60
|
+
import '../_chunks/dep-be94af1f.js';
|
|
61
|
+
import '../_chunks/dep-5e457cfd.js';
|
|
62
|
+
import '../_chunks/dep-fd1b4e24.js';
|
|
63
|
+
import '../_util/useWindowSize.js';
|
|
64
|
+
import '../_util/noop.js';
|
|
65
|
+
import './style/css.js';
|
|
66
|
+
import '../popup/type.js';
|
|
67
|
+
import '../input/index.js';
|
|
68
|
+
import '../input/Input.js';
|
|
69
|
+
import 'tdesign-icons-react';
|
|
70
|
+
import '../_util/forwardRefWithStatics.js';
|
|
71
|
+
import 'hoist-non-react-statics';
|
|
72
|
+
import '../_util/helper.js';
|
|
73
|
+
import '../_chunks/dep-e0790d2e.js';
|
|
74
|
+
import '../_chunks/dep-020d9062.js';
|
|
75
|
+
import '../_chunks/dep-0d23bb2c.js';
|
|
76
|
+
import '../_chunks/dep-db65b23a.js';
|
|
77
|
+
import '../input/InputGroup.js';
|
|
78
|
+
import '../_util/useDefaultValue.js';
|
|
79
|
+
import '../locale/LocalReceiver.js';
|
|
80
|
+
import '../config-provider/index.js';
|
|
81
|
+
import '../config-provider/ConfigProvider.js';
|
|
82
|
+
import '../input/type.js';
|
|
83
|
+
import '../_common/js/color-picker/color.js';
|
|
84
|
+
import '../_chunks/dep-926c2765.js';
|
|
85
|
+
import 'tinycolor2';
|
|
86
|
+
import '../_common/js/color-picker/cmyk.js';
|
|
87
|
+
import '../_common/js/color-picker/gradient.js';
|
|
88
|
+
import '../_chunks/dep-3cf23cb4.js';
|
|
89
|
+
import '../_util/useCommonClassName.js';
|
|
90
|
+
import './components/panel/header.js';
|
|
91
|
+
import './const.js';
|
|
92
|
+
import '../radio/index.js';
|
|
93
|
+
import '../_chunks/dep-07385e51.js';
|
|
94
|
+
import '../common/Check.js';
|
|
95
|
+
import '../radio/type.js';
|
|
96
|
+
import './components/panel/linear-gradient.js';
|
|
97
|
+
import '../_chunks/dep-9926d76f.js';
|
|
98
|
+
import '../_chunks/dep-cdbc448f.js';
|
|
99
|
+
import '../_chunks/dep-d17dffc0.js';
|
|
100
|
+
import '../_chunks/dep-6bf856c2.js';
|
|
101
|
+
import '../_chunks/dep-d820193b.js';
|
|
102
|
+
import '../input-number/index.js';
|
|
103
|
+
import '../input-number/InputNumber.js';
|
|
104
|
+
import '../_util/useUpdateEffect.js';
|
|
105
|
+
import '../_util/useLayoutEffect.js';
|
|
106
|
+
import '../input-number/StepHandler.js';
|
|
107
|
+
import '../button/index.js';
|
|
108
|
+
import '../button/Button.js';
|
|
109
|
+
import '../_util/useRipple.js';
|
|
110
|
+
import '../_util/setStyle.js';
|
|
111
|
+
import '../loading/index.js';
|
|
112
|
+
import '../loading/Loading.js';
|
|
113
|
+
import '../loading/gradient.js';
|
|
114
|
+
import '../_common/js/loading/circle-adapter.js';
|
|
115
|
+
import '../_common/js/utils/set-style.js';
|
|
116
|
+
import '../_common/js/utils/helper.js';
|
|
117
|
+
import '../loading/plugin.js';
|
|
118
|
+
import '../loading/type.js';
|
|
119
|
+
import '../button/type.js';
|
|
120
|
+
import '../input-number/utils/numberUtils.js';
|
|
121
|
+
import '../input-number/type.js';
|
|
122
|
+
import './components/panel/saturation.js';
|
|
123
|
+
import '../_util/useDrag.js';
|
|
124
|
+
import './components/panel/hue.js';
|
|
125
|
+
import './components/panel/slider.js';
|
|
126
|
+
import './components/panel/alpha.js';
|
|
127
|
+
import './components/panel/format/index.js';
|
|
128
|
+
import 'lodash';
|
|
129
|
+
import '../select/index.js';
|
|
130
|
+
import '../select/base/Select.js';
|
|
131
|
+
import '../_chunks/dep-83cb7911.js';
|
|
132
|
+
import '../_chunks/dep-83177e8d.js';
|
|
133
|
+
import '../select/util/helper.js';
|
|
134
|
+
import '../select/base/OptionGroup.js';
|
|
135
|
+
import '../select/base/Option.js';
|
|
136
|
+
import '../_chunks/dep-cf0a5e4d.js';
|
|
137
|
+
import '../common/FakeArrow.js';
|
|
138
|
+
import '../select-input/index.js';
|
|
139
|
+
import '../select-input/SelectInput.js';
|
|
140
|
+
import '../select-input/useSingle.js';
|
|
141
|
+
import '../_chunks/dep-41ddaf4d.js';
|
|
142
|
+
import '../_chunks/dep-3ce0d185.js';
|
|
143
|
+
import '../_chunks/dep-b1d1fc8a.js';
|
|
144
|
+
import '../_chunks/dep-65dde75f.js';
|
|
145
|
+
import '../select-input/useMultiple.js';
|
|
146
|
+
import '../tag-input/index.js';
|
|
147
|
+
import '../tag-input/TagInput.js';
|
|
148
|
+
import '../_util/useDragSorter.js';
|
|
149
|
+
import '../tag-input/useTagScroll.js';
|
|
150
|
+
import '../tag-input/useTagList.js';
|
|
151
|
+
import '../tag/index.js';
|
|
152
|
+
import '../tag/Tag.js';
|
|
153
|
+
import '../tag/CheckTag.js';
|
|
154
|
+
import '../tag/type.js';
|
|
155
|
+
import '../tag-input/useHover.js';
|
|
156
|
+
import '../tag-input/type.js';
|
|
157
|
+
import '../select-input/useOverlayStyle.js';
|
|
158
|
+
import '../select-input/type.js';
|
|
159
|
+
import '../select/base/PopupContent.js';
|
|
160
|
+
import '../select/type.js';
|
|
161
|
+
import './components/panel/format/inputs.js';
|
|
162
|
+
import './components/panel/format/config.js';
|
|
163
|
+
import './components/panel/swatches.js';
|
|
164
|
+
|
|
165
|
+
var _excluded = ["popupProps", "defaultValue", "disabled", "inputProps", "value", "onChange", "colorModes"];
|
|
166
|
+
|
|
167
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
168
|
+
|
|
169
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
170
|
+
|
|
171
|
+
var ColorPicker = function ColorPicker(props) {
|
|
172
|
+
var baseClassName = useClassname();
|
|
173
|
+
|
|
174
|
+
var popupProps = props.popupProps,
|
|
175
|
+
defaultValue = props.defaultValue,
|
|
176
|
+
_props$disabled = props.disabled,
|
|
177
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
178
|
+
inputProps = props.inputProps,
|
|
179
|
+
value = props.value,
|
|
180
|
+
onChange = props.onChange,
|
|
181
|
+
colorModes = props.colorModes,
|
|
182
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
183
|
+
|
|
184
|
+
var _useState = useState(false),
|
|
185
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
186
|
+
visible = _useState2[0],
|
|
187
|
+
setVisible = _useState2[1];
|
|
188
|
+
|
|
189
|
+
var _useDefault = useDefault(value, defaultValue, onChange),
|
|
190
|
+
_useDefault2 = _slicedToArray(_useDefault, 2),
|
|
191
|
+
innerValue = _useDefault2[0],
|
|
192
|
+
setInnerValue = _useDefault2[1];
|
|
193
|
+
|
|
194
|
+
var triggerRef = useRef();
|
|
195
|
+
var colorPanelRef = useRef();
|
|
196
|
+
|
|
197
|
+
var popProps = _objectSpread(_objectSpread({
|
|
198
|
+
placement: "bottom-left"
|
|
199
|
+
}, popupProps || {}), {}, {
|
|
200
|
+
trigger: "click",
|
|
201
|
+
attach: "body",
|
|
202
|
+
overlayClassName: [baseClassName],
|
|
203
|
+
visible: visible,
|
|
204
|
+
overlayStyle: {
|
|
205
|
+
padding: 0
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
useClickOutside([triggerRef, colorPanelRef], function () {
|
|
210
|
+
setVisible(false);
|
|
211
|
+
}, true);
|
|
212
|
+
return /* @__PURE__ */React.createElement(Popup, _objectSpread(_objectSpread({}, popProps), {}, {
|
|
213
|
+
content: !disabled && /* @__PURE__ */React.createElement(ColorPanel, _objectSpread(_objectSpread({}, rest), {}, {
|
|
214
|
+
disabled: disabled,
|
|
215
|
+
value: innerValue,
|
|
216
|
+
colorModes: colorModes,
|
|
217
|
+
togglePopup: setVisible,
|
|
218
|
+
onChange: function onChange(value2, context) {
|
|
219
|
+
return setInnerValue(value2, context);
|
|
220
|
+
},
|
|
221
|
+
ref: colorPanelRef
|
|
222
|
+
}))
|
|
223
|
+
}), /* @__PURE__ */React.createElement("div", {
|
|
224
|
+
className: "".concat(baseClassName, "__trigger"),
|
|
225
|
+
onClick: function onClick() {
|
|
226
|
+
return setVisible(!visible);
|
|
227
|
+
},
|
|
228
|
+
ref: triggerRef
|
|
229
|
+
}, /* @__PURE__ */React.createElement(ColorTrigger, {
|
|
230
|
+
color: innerValue,
|
|
231
|
+
disabled: disabled,
|
|
232
|
+
inputProps: inputProps,
|
|
233
|
+
onTriggerChange: setInnerValue
|
|
234
|
+
})));
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
ColorPicker.displayName = "ColorPicker";
|
|
238
|
+
var _ColorPicker = /*#__PURE__*/React.memo(ColorPicker);
|
|
239
|
+
|
|
240
|
+
export { _ColorPicker as default };
|
|
241
|
+
//# sourceMappingURL=ColorPicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPicker.js","sources":["../../src/color-picker/ColorPicker.tsx"],"sourcesContent":["import React, { useState, useRef } from 'react';\nimport { Popup, PopupProps } from '../popup';\nimport { ColorPickerProps, TdColorContext } from './interface';\nimport useClassname from './hooks/useClassname';\nimport useDefault from '../_util/useDefault';\nimport ColorTrigger from './components/trigger';\nimport ColorPanel from './components/panel/index';\nimport useClickOutside from '../_util/useClickOutside';\n\nconst ColorPicker: React.FC<ColorPickerProps> = (props) => {\n const baseClassName = useClassname();\n const { popupProps, defaultValue, disabled = false, inputProps, value, onChange, colorModes, ...rest } = props;\n\n const [visible, setVisible] = useState(false);\n const [innerValue, setInnerValue] = useDefault(value, defaultValue, onChange);\n const triggerRef = useRef<HTMLDivElement>();\n const colorPanelRef = useRef();\n\n const popProps: PopupProps = {\n placement: 'bottom-left',\n ...((popupProps as PopupProps) || {}),\n trigger: 'click',\n attach: 'body',\n overlayClassName: [baseClassName],\n visible,\n overlayStyle: {\n padding: 0,\n },\n };\n\n useClickOutside(\n [triggerRef, colorPanelRef],\n () => {\n setVisible(false);\n },\n true,\n );\n\n return (\n <Popup\n {...popProps}\n content={\n !disabled && (\n <ColorPanel\n {...rest}\n disabled={disabled}\n value={innerValue}\n colorModes={colorModes}\n togglePopup={setVisible}\n onChange={(value: string, context: TdColorContext) => setInnerValue(value, context)}\n ref={colorPanelRef}\n />\n )\n }\n >\n <div className={`${baseClassName}__trigger`} onClick={() => setVisible(!visible)} ref={triggerRef}>\n <ColorTrigger color={innerValue} disabled={disabled} inputProps={inputProps} onTriggerChange={setInnerValue} />\n </div>\n </Popup>\n );\n};\n\nColorPicker.displayName = 'ColorPicker';\n\nexport default React.memo(ColorPicker);\n"],"names":["ColorPicker","props","baseClassName","useClassname","popupProps","defaultValue","disabled","inputProps","value","onChange","colorModes","rest","useState","visible","setVisible","useDefault","innerValue","setInnerValue","triggerRef","useRef","colorPanelRef","popProps","placement","trigger","attach","overlayClassName","overlayStyle","padding","useClickOutside","React","createElement","Popup","content","ColorPanel","togglePopup","value2","context","ref","className","onClick","ColorTrigger","color","onTriggerChange","displayName","memo"],"mappings":"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"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tdesign v0.31.1
|
|
3
|
+
* (c) 2022 tdesign
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { _ as _defineProperty } from '../_chunks/dep-1628aaec.js';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import ColorPanel from './components/panel/index.js';
|
|
10
|
+
import '../_chunks/dep-3cf23cb4.js';
|
|
11
|
+
import '../_chunks/dep-85a9595a.js';
|
|
12
|
+
import '../_chunks/dep-aca05d9d.js';
|
|
13
|
+
import 'classnames';
|
|
14
|
+
import '../_util/useCommonClassName.js';
|
|
15
|
+
import '../_util/useConfig.js';
|
|
16
|
+
import '../_chunks/dep-bbad8591.js';
|
|
17
|
+
import '../_chunks/dep-8702aba9.js';
|
|
18
|
+
import '../_chunks/dep-e9e7c24f.js';
|
|
19
|
+
import '../_chunks/dep-c47502ef.js';
|
|
20
|
+
import '../_chunks/dep-3a2f4bdf.js';
|
|
21
|
+
import '../_chunks/dep-d51fd958.js';
|
|
22
|
+
import '../_chunks/dep-db8880c0.js';
|
|
23
|
+
import '../_chunks/dep-8efaaac0.js';
|
|
24
|
+
import '../_chunks/dep-d539b435.js';
|
|
25
|
+
import '../_chunks/dep-2b0021c1.js';
|
|
26
|
+
import '../_chunks/dep-09299e3f.js';
|
|
27
|
+
import '../_chunks/dep-23b2574f.js';
|
|
28
|
+
import '../_chunks/dep-a1403158.js';
|
|
29
|
+
import '../_chunks/dep-c03c5f48.js';
|
|
30
|
+
import '../_chunks/dep-9b67144e.js';
|
|
31
|
+
import '../_chunks/dep-d038aaf3.js';
|
|
32
|
+
import '../_chunks/dep-00728537.js';
|
|
33
|
+
import '../_chunks/dep-32abd81f.js';
|
|
34
|
+
import '../_chunks/dep-f3e5eb4b.js';
|
|
35
|
+
import '../_chunks/dep-ae52f85e.js';
|
|
36
|
+
import '../_chunks/dep-63ed508e.js';
|
|
37
|
+
import '../_chunks/dep-155571ca.js';
|
|
38
|
+
import '../_chunks/dep-81670ae9.js';
|
|
39
|
+
import '../locale/zh_CN.js';
|
|
40
|
+
import '../_common/js/global-config/locale/zh_CN.js';
|
|
41
|
+
import '../config-provider/zh_CN_config.js';
|
|
42
|
+
import '../_util/useDefault.js';
|
|
43
|
+
import '../_util/noop.js';
|
|
44
|
+
import '../locale/LocalReceiver.js';
|
|
45
|
+
import '../config-provider/index.js';
|
|
46
|
+
import '../config-provider/ConfigProvider.js';
|
|
47
|
+
import './hooks/useClassname.js';
|
|
48
|
+
import './components/panel/header.js';
|
|
49
|
+
import 'tdesign-icons-react';
|
|
50
|
+
import './const.js';
|
|
51
|
+
import '../radio/index.js';
|
|
52
|
+
import '../_chunks/dep-07385e51.js';
|
|
53
|
+
import '../_util/forwardRefWithStatics.js';
|
|
54
|
+
import 'hoist-non-react-statics';
|
|
55
|
+
import '../common/Check.js';
|
|
56
|
+
import '../_chunks/dep-ea842483.js';
|
|
57
|
+
import '../_util/helper.js';
|
|
58
|
+
import '../_chunks/dep-e0790d2e.js';
|
|
59
|
+
import '../_chunks/dep-020d9062.js';
|
|
60
|
+
import '../_chunks/dep-fd1b4e24.js';
|
|
61
|
+
import '../_chunks/dep-0d23bb2c.js';
|
|
62
|
+
import '../_chunks/dep-db65b23a.js';
|
|
63
|
+
import '../_util/useMutationObserver.js';
|
|
64
|
+
import '../_chunks/dep-be94af1f.js';
|
|
65
|
+
import '../_chunks/dep-5e457cfd.js';
|
|
66
|
+
import './style/css.js';
|
|
67
|
+
import '../radio/type.js';
|
|
68
|
+
import '../_common/js/color-picker/color.js';
|
|
69
|
+
import '../_chunks/dep-926c2765.js';
|
|
70
|
+
import 'tinycolor2';
|
|
71
|
+
import '../_common/js/color-picker/cmyk.js';
|
|
72
|
+
import '../_common/js/color-picker/gradient.js';
|
|
73
|
+
import './components/panel/linear-gradient.js';
|
|
74
|
+
import '../_chunks/dep-9926d76f.js';
|
|
75
|
+
import '../_chunks/dep-cdbc448f.js';
|
|
76
|
+
import '../_chunks/dep-d17dffc0.js';
|
|
77
|
+
import '../_chunks/dep-6bf856c2.js';
|
|
78
|
+
import '../_chunks/dep-d820193b.js';
|
|
79
|
+
import '../input-number/index.js';
|
|
80
|
+
import '../input-number/InputNumber.js';
|
|
81
|
+
import '../_util/useUpdateEffect.js';
|
|
82
|
+
import '../_util/useLayoutEffect.js';
|
|
83
|
+
import '../_util/dom.js';
|
|
84
|
+
import 'raf';
|
|
85
|
+
import '../_chunks/dep-c9e242b1.js';
|
|
86
|
+
import '../_util/easing.js';
|
|
87
|
+
import '../input-number/StepHandler.js';
|
|
88
|
+
import '../button/index.js';
|
|
89
|
+
import '../button/Button.js';
|
|
90
|
+
import '../_util/useRipple.js';
|
|
91
|
+
import '../_util/useAnimation.js';
|
|
92
|
+
import '../_util/setStyle.js';
|
|
93
|
+
import '../loading/index.js';
|
|
94
|
+
import '../loading/Loading.js';
|
|
95
|
+
import '../common/Portal.js';
|
|
96
|
+
import 'react-dom';
|
|
97
|
+
import '../loading/gradient.js';
|
|
98
|
+
import '../_common/js/loading/circle-adapter.js';
|
|
99
|
+
import '../_common/js/utils/set-style.js';
|
|
100
|
+
import '../_common/js/utils/helper.js';
|
|
101
|
+
import '../loading/plugin.js';
|
|
102
|
+
import '../loading/type.js';
|
|
103
|
+
import '../button/type.js';
|
|
104
|
+
import '../input-number/utils/numberUtils.js';
|
|
105
|
+
import '../input/index.js';
|
|
106
|
+
import '../input/Input.js';
|
|
107
|
+
import '../input/InputGroup.js';
|
|
108
|
+
import '../_util/useDefaultValue.js';
|
|
109
|
+
import '../input/type.js';
|
|
110
|
+
import '../input-number/type.js';
|
|
111
|
+
import './components/panel/saturation.js';
|
|
112
|
+
import '../_util/useDrag.js';
|
|
113
|
+
import './components/panel/hue.js';
|
|
114
|
+
import './components/panel/slider.js';
|
|
115
|
+
import './components/panel/alpha.js';
|
|
116
|
+
import './components/panel/format/index.js';
|
|
117
|
+
import 'lodash';
|
|
118
|
+
import '../select/index.js';
|
|
119
|
+
import '../select/base/Select.js';
|
|
120
|
+
import '../_chunks/dep-83cb7911.js';
|
|
121
|
+
import '../_chunks/dep-83177e8d.js';
|
|
122
|
+
import '../select/util/helper.js';
|
|
123
|
+
import '../select/base/OptionGroup.js';
|
|
124
|
+
import '../select/base/Option.js';
|
|
125
|
+
import '../_chunks/dep-cf0a5e4d.js';
|
|
126
|
+
import '../common/FakeArrow.js';
|
|
127
|
+
import '../select-input/index.js';
|
|
128
|
+
import '../select-input/SelectInput.js';
|
|
129
|
+
import '../popup/index.js';
|
|
130
|
+
import '../popup/Popup.js';
|
|
131
|
+
import 'react-transition-group';
|
|
132
|
+
import 'react-popper';
|
|
133
|
+
import '../_util/composeRefs.js';
|
|
134
|
+
import '../popup/hooks/useTriggerProps.js';
|
|
135
|
+
import '../_util/useClickOutside.js';
|
|
136
|
+
import '../popup/utils/getTransitionParams.js';
|
|
137
|
+
import '../_util/useWindowSize.js';
|
|
138
|
+
import '../popup/type.js';
|
|
139
|
+
import '../select-input/useSingle.js';
|
|
140
|
+
import '../_chunks/dep-41ddaf4d.js';
|
|
141
|
+
import '../_chunks/dep-3ce0d185.js';
|
|
142
|
+
import '../_chunks/dep-b1d1fc8a.js';
|
|
143
|
+
import '../_chunks/dep-65dde75f.js';
|
|
144
|
+
import '../select-input/useMultiple.js';
|
|
145
|
+
import '../tag-input/index.js';
|
|
146
|
+
import '../tag-input/TagInput.js';
|
|
147
|
+
import '../_util/useDragSorter.js';
|
|
148
|
+
import '../tag-input/useTagScroll.js';
|
|
149
|
+
import '../tag-input/useTagList.js';
|
|
150
|
+
import '../tag/index.js';
|
|
151
|
+
import '../tag/Tag.js';
|
|
152
|
+
import '../tag/CheckTag.js';
|
|
153
|
+
import '../tag/type.js';
|
|
154
|
+
import '../tag-input/useHover.js';
|
|
155
|
+
import '../tag-input/type.js';
|
|
156
|
+
import '../select-input/useOverlayStyle.js';
|
|
157
|
+
import '../select-input/type.js';
|
|
158
|
+
import '../select/base/PopupContent.js';
|
|
159
|
+
import '../select/type.js';
|
|
160
|
+
import './components/panel/format/inputs.js';
|
|
161
|
+
import './components/panel/format/config.js';
|
|
162
|
+
import './components/panel/swatches.js';
|
|
163
|
+
|
|
164
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
165
|
+
|
|
166
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
167
|
+
|
|
168
|
+
var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
169
|
+
return /* @__PURE__ */React.createElement(ColorPanel, _objectSpread(_objectSpread({}, props), {}, {
|
|
170
|
+
popupProps: null,
|
|
171
|
+
closeBtn: false
|
|
172
|
+
}));
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
ColorPickerPanel.displayName = "ColorPickerPanel";
|
|
176
|
+
var _ColorPickerPanel = /*#__PURE__*/React.memo(ColorPickerPanel);
|
|
177
|
+
|
|
178
|
+
export { _ColorPickerPanel as default };
|
|
179
|
+
//# sourceMappingURL=ColorPickerPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPickerPanel.js","sources":["../../src/color-picker/ColorPickerPanel.tsx"],"sourcesContent":["import React from 'react';\nimport ColorPanel from './components/panel';\nimport { ColorPickerProps } from './interface';\n\nconst ColorPickerPanel = (props: ColorPickerProps) => <ColorPanel {...props} popupProps={null} closeBtn={false} />;\n\nColorPickerPanel.displayName = 'ColorPickerPanel';\n\nexport default React.memo(ColorPickerPanel);\n"],"names":["ColorPickerPanel","props","React","createElement","ColorPanel","popupProps","closeBtn","displayName","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACC,KAAD,EAAA;AAAA,EAAA,sBAA2BC,KAAK,CAACC,aAAN,CAAoBC,UAApB,kCAC/CH,KAD+C,CAAA,EAAA,EAAA,EAAA;AAElDI,IAAAA,UAAU,EAAE,IAFsC;AAGlDC,IAAAA,QAAQ,EAAE,KAAA;AAHwC,GAA3B,CAAA,CAAA,CAAA;AAAA,CAAzB,CAAA;;AAKAN,gBAAgB,CAACO,WAAjB,GAA+B,kBAA/B,CAAA;AACA,wBAAA,aAAeL,KAAK,CAACM,IAAN,CAAWR,gBAAX,CAAf;;;;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tdesign v0.31.1
|
|
3
|
+
* (c) 2022 tdesign
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { _ as _defineProperty } from '../../../_chunks/dep-1628aaec.js';
|
|
8
|
+
import { _ as _objectWithoutProperties } from '../../../_chunks/dep-ea842483.js';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import classNames from 'classnames';
|
|
11
|
+
import ColorSlider from './slider.js';
|
|
12
|
+
import '../../const.js';
|
|
13
|
+
import '../../../_util/useDrag.js';
|
|
14
|
+
|
|
15
|
+
var _excluded = ["color", "baseClassName", "onChange"];
|
|
16
|
+
|
|
17
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
18
|
+
|
|
19
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
20
|
+
|
|
21
|
+
var Alpha = function Alpha(props) {
|
|
22
|
+
var color = props.color,
|
|
23
|
+
baseClassName = props.baseClassName,
|
|
24
|
+
onChange = props.onChange,
|
|
25
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
26
|
+
|
|
27
|
+
var handleChange = function handleChange(v, isDragEnd) {
|
|
28
|
+
onChange(v / 100, isDragEnd);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var railStyle = {
|
|
32
|
+
background: "linear-gradient(to right, rgba(0, 0, 0, 0), ".concat(props.color.rgb, ")")
|
|
33
|
+
};
|
|
34
|
+
return /* @__PURE__ */React.createElement(ColorSlider, _objectSpread({
|
|
35
|
+
baseClassName: baseClassName,
|
|
36
|
+
className: classNames(["".concat(baseClassName, "__alpha"), "".concat(baseClassName, "--bg-alpha")]),
|
|
37
|
+
color: color,
|
|
38
|
+
value: color.alpha * 100,
|
|
39
|
+
onChange: handleChange,
|
|
40
|
+
railStyle: railStyle,
|
|
41
|
+
maxValue: 100
|
|
42
|
+
}, rest));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var AlphaSlider = /*#__PURE__*/React.memo(Alpha);
|
|
46
|
+
|
|
47
|
+
export { AlphaSlider as default };
|
|
48
|
+
//# sourceMappingURL=alpha.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.js","sources":["../../../../src/color-picker/components/panel/alpha.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\nimport ColorSlider from './slider';\nimport { TdColorBaseProps } from '../../interface';\n\nconst Alpha = (props: TdColorBaseProps) => {\n const { color, baseClassName, onChange, ...rest } = props;\n const handleChange = (v: number, isDragEnd?: boolean) => {\n onChange(v / 100, isDragEnd);\n };\n const railStyle = {\n background: `linear-gradient(to right, rgba(0, 0, 0, 0), ${props.color.rgb})`,\n };\n\n return (\n <ColorSlider\n baseClassName={baseClassName}\n className={classNames([`${baseClassName}__alpha`, `${baseClassName}--bg-alpha`])}\n color={color}\n value={color.alpha * 100}\n onChange={handleChange}\n railStyle={railStyle}\n maxValue={100}\n {...rest}\n />\n );\n};\n\nexport default React.memo(Alpha);\n"],"names":["Alpha","props","color","baseClassName","onChange","rest","handleChange","v","isDragEnd","railStyle","background","rgb","React","createElement","ColorSlider","className","classNames","value","alpha","maxValue","memo"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,IAAMA,KAAK,GAAG,SAARA,KAAQ,CAACC,KAAD,EAAW;AACvB,EAAA,IAAQC,KAAR,GAAoDD,KAApD,CAAQC,KAAR;AAAA,MAAeC,aAAf,GAAoDF,KAApD,CAAeE,aAAf;AAAA,MAA8BC,QAA9B,GAAoDH,KAApD,CAA8BG,QAA9B;AAAA,MAA2CC,IAA3C,4BAAoDJ,KAApD,EAAA,SAAA,CAAA,CAAA;;AACA,EAAMK,IAAAA,YAAY,GAAG,SAAfA,YAAe,CAACC,CAAD,EAAIC,SAAJ,EAAkB;AACrCJ,IAAAA,QAAQ,CAACG,CAAC,GAAG,GAAL,EAAUC,SAAV,CAAR,CAAA;AACD,GAFD,CAAA;;AAGA,EAAA,IAAMC,SAAS,GAAG;AAChBC,IAAAA,UAAU,EAAiDT,8CAAAA,CAAAA,MAAAA,CAAAA,KAAK,CAACC,KAAN,CAAYS,GAA7D,EAAA,GAAA,CAAA;AADM,GAAlB,CAAA;AAGA,EAAA,sBAAuBC,KAAK,CAACC,aAAN,CAAoBC,WAApB,EAAA,aAAA,CAAA;AACrBX,IAAAA,aAAa,EAAbA,aADqB;AAErBY,IAAAA,SAAS,EAAEC,UAAU,CAAC,WAAIb,aAAJ,EAAA,SAAA,CAAA,EAAA,EAAA,CAAA,MAAA,CAA+BA,aAA/B,EAAA,YAAA,CAAA,CAAD,CAFA;AAGrBD,IAAAA,KAAK,EAALA,KAHqB;AAIrBe,IAAAA,KAAK,EAAEf,KAAK,CAACgB,KAAN,GAAc,GAJA;AAKrBd,IAAAA,QAAQ,EAAEE,YALW;AAMrBG,IAAAA,SAAS,EAATA,SANqB;AAOrBU,IAAAA,QAAQ,EAAE,GAAA;AAPW,GAAA,EAQlBd,IARkB,CAAvB,CAAA,CAAA;AAUD,CAlBD,CAAA;;AAmBA,kBAAA,aAAeO,KAAK,CAACQ,IAAN,CAAWpB,KAAX,CAAf;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TdColorPickerProps } from '../../../type';
|
|
2
|
+
export interface FormatInput {
|
|
3
|
+
key: string;
|
|
4
|
+
type: 'input';
|
|
5
|
+
flex?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface FormatInputNumber {
|
|
8
|
+
key: string;
|
|
9
|
+
min: number;
|
|
10
|
+
max: number;
|
|
11
|
+
type: 'inputNumber';
|
|
12
|
+
flex?: number;
|
|
13
|
+
format?: Function;
|
|
14
|
+
}
|
|
15
|
+
export declare type FormatInputsConfig = {
|
|
16
|
+
[propName in TdColorPickerProps['format']]?: Array<FormatInput | FormatInputNumber>;
|
|
17
|
+
};
|
|
18
|
+
export declare const FORMAT_INPUT_CONFIG: FormatInputsConfig;
|
|
19
|
+
export default FORMAT_INPUT_CONFIG;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tdesign v0.31.1
|
|
3
|
+
* (c) 2022 tdesign
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
var FORMAT_INPUT_CONFIG = {
|
|
8
|
+
RGB: [{
|
|
9
|
+
key: "r",
|
|
10
|
+
min: 0,
|
|
11
|
+
max: 255,
|
|
12
|
+
type: "inputNumber"
|
|
13
|
+
}, {
|
|
14
|
+
key: "g",
|
|
15
|
+
min: 0,
|
|
16
|
+
max: 255,
|
|
17
|
+
type: "inputNumber"
|
|
18
|
+
}, {
|
|
19
|
+
key: "b",
|
|
20
|
+
min: 0,
|
|
21
|
+
max: 255,
|
|
22
|
+
type: "inputNumber"
|
|
23
|
+
}],
|
|
24
|
+
HSV: [{
|
|
25
|
+
key: "h",
|
|
26
|
+
min: 0,
|
|
27
|
+
max: 360,
|
|
28
|
+
type: "inputNumber"
|
|
29
|
+
}, {
|
|
30
|
+
key: "s",
|
|
31
|
+
min: 0,
|
|
32
|
+
max: 100,
|
|
33
|
+
type: "inputNumber"
|
|
34
|
+
}, {
|
|
35
|
+
key: "v",
|
|
36
|
+
min: 0,
|
|
37
|
+
max: 100,
|
|
38
|
+
type: "inputNumber"
|
|
39
|
+
}],
|
|
40
|
+
HSL: [{
|
|
41
|
+
key: "h",
|
|
42
|
+
min: 0,
|
|
43
|
+
max: 360,
|
|
44
|
+
type: "inputNumber"
|
|
45
|
+
}, {
|
|
46
|
+
key: "s",
|
|
47
|
+
min: 0,
|
|
48
|
+
max: 100,
|
|
49
|
+
type: "inputNumber"
|
|
50
|
+
}, {
|
|
51
|
+
key: "l",
|
|
52
|
+
min: 0,
|
|
53
|
+
max: 100,
|
|
54
|
+
type: "inputNumber"
|
|
55
|
+
}],
|
|
56
|
+
CMYK: [{
|
|
57
|
+
key: "c",
|
|
58
|
+
min: 0,
|
|
59
|
+
max: 255,
|
|
60
|
+
type: "inputNumber"
|
|
61
|
+
}, {
|
|
62
|
+
key: "m",
|
|
63
|
+
min: 0,
|
|
64
|
+
max: 255,
|
|
65
|
+
type: "inputNumber"
|
|
66
|
+
}, {
|
|
67
|
+
key: "y",
|
|
68
|
+
min: 0,
|
|
69
|
+
max: 255,
|
|
70
|
+
type: "inputNumber"
|
|
71
|
+
}, {
|
|
72
|
+
key: "k",
|
|
73
|
+
min: 0,
|
|
74
|
+
max: 255,
|
|
75
|
+
type: "inputNumber"
|
|
76
|
+
}],
|
|
77
|
+
CSS: [{
|
|
78
|
+
key: "css",
|
|
79
|
+
type: "input",
|
|
80
|
+
flex: 3
|
|
81
|
+
}],
|
|
82
|
+
HEX: [{
|
|
83
|
+
key: "hex",
|
|
84
|
+
type: "input",
|
|
85
|
+
flex: 3
|
|
86
|
+
}]
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export { FORMAT_INPUT_CONFIG, FORMAT_INPUT_CONFIG as default };
|
|
90
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sources":["../../../../../src/color-picker/components/panel/format/config.ts"],"sourcesContent":["import { TdColorPickerProps } from '../../../type';\n\nexport interface FormatInput {\n key: string;\n type: 'input';\n flex?: number;\n}\n\nexport interface FormatInputNumber {\n key: string;\n min: number;\n max: number;\n type: 'inputNumber';\n flex?: number;\n format?: Function;\n}\n\nexport type FormatInputsConfig = {\n [propName in TdColorPickerProps['format']]?: Array<FormatInput | FormatInputNumber>;\n};\n\nexport const FORMAT_INPUT_CONFIG: FormatInputsConfig = {\n RGB: [\n {\n key: 'r',\n min: 0,\n max: 255,\n type: 'inputNumber',\n },\n {\n key: 'g',\n min: 0,\n max: 255,\n type: 'inputNumber',\n },\n {\n key: 'b',\n min: 0,\n max: 255,\n type: 'inputNumber',\n },\n ],\n HSV: [\n {\n key: 'h',\n min: 0,\n max: 360,\n type: 'inputNumber',\n },\n {\n key: 's',\n min: 0,\n max: 100,\n type: 'inputNumber',\n },\n {\n key: 'v',\n min: 0,\n max: 100,\n type: 'inputNumber',\n },\n ],\n HSL: [\n {\n key: 'h',\n min: 0,\n max: 360,\n type: 'inputNumber',\n },\n {\n key: 's',\n min: 0,\n max: 100,\n type: 'inputNumber',\n },\n {\n key: 'l',\n min: 0,\n max: 100,\n type: 'inputNumber',\n },\n ],\n CMYK: [\n {\n key: 'c',\n min: 0,\n max: 255,\n type: 'inputNumber',\n },\n {\n key: 'm',\n min: 0,\n max: 255,\n type: 'inputNumber',\n },\n {\n key: 'y',\n min: 0,\n max: 255,\n type: 'inputNumber',\n },\n {\n key: 'k',\n min: 0,\n max: 255,\n type: 'inputNumber',\n },\n ],\n CSS: [\n {\n key: 'css',\n type: 'input',\n flex: 3,\n },\n ],\n HEX: [\n {\n key: 'hex',\n type: 'input',\n flex: 3,\n },\n ],\n};\n\nexport default FORMAT_INPUT_CONFIG;\n"],"names":["FORMAT_INPUT_CONFIG","RGB","key","min","max","type","HSV","HSL","CMYK","CSS","flex","HEX"],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Color from '../../../../_common/js/color-picker/color';
|
|
3
|
+
import { TdColorPickerProps } from '../../../type';
|
|
4
|
+
export interface TdColorFormatProps extends TdColorPickerProps {
|
|
5
|
+
onModeChange: Function;
|
|
6
|
+
onInputChange: Function;
|
|
7
|
+
baseClassName: string;
|
|
8
|
+
color: Color;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.MemoExoticComponent<(props: TdColorFormatProps) => JSX.Element>;
|
|
11
|
+
export default _default;
|