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
package/CHANGELOG.md
CHANGED
|
@@ -18,7 +18,7 @@ spline: explain
|
|
|
18
18
|
|
|
19
19
|
### Features
|
|
20
20
|
|
|
21
|
-
* Icon: 升级
|
|
21
|
+
* Icon: 升级 Icon 包版本,支持React 18 + 的使用 ([5d0de7c](https://github.com/Tencent/tdesign-react/commit/5d0de7ce97f782cbe90fcb6181866421bfa3e8cd)) [@uyarn](https://github.com/uyarn)
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
package/dist/tdesign.css
CHANGED
|
@@ -15311,6 +15311,504 @@ small.t-upload__tips-error {
|
|
|
15311
15311
|
}
|
|
15312
15312
|
}
|
|
15313
15313
|
|
|
15314
|
+
.t-color-picker__panel {
|
|
15315
|
+
padding: 0;
|
|
15316
|
+
width: 280px;
|
|
15317
|
+
background: var(--td-bg-color-container);
|
|
15318
|
+
-webkit-box-shadow: var(--td-shadow-2), var(--td-shadow-inset-top), var(--td-shadow-inset-right), var(--td-shadow-inset-bottom), var(--td-shadow-inset-left);
|
|
15319
|
+
box-shadow: var(--td-shadow-2), var(--td-shadow-inset-top), var(--td-shadow-inset-right), var(--td-shadow-inset-bottom), var(--td-shadow-inset-left);
|
|
15320
|
+
-webkit-user-select: none;
|
|
15321
|
+
-moz-user-select: none;
|
|
15322
|
+
-ms-user-select: none;
|
|
15323
|
+
user-select: none;
|
|
15324
|
+
}
|
|
15325
|
+
.t-popup__content .t-color-picker__panel {
|
|
15326
|
+
background: transparent;
|
|
15327
|
+
-webkit-box-shadow: unset;
|
|
15328
|
+
box-shadow: unset;
|
|
15329
|
+
}
|
|
15330
|
+
.t-color-picker__icon {
|
|
15331
|
+
width: 20px;
|
|
15332
|
+
height: 20px;
|
|
15333
|
+
display: -webkit-box;
|
|
15334
|
+
display: -ms-flexbox;
|
|
15335
|
+
display: flex;
|
|
15336
|
+
-webkit-box-align: center;
|
|
15337
|
+
-ms-flex-align: center;
|
|
15338
|
+
align-items: center;
|
|
15339
|
+
-webkit-box-pack: center;
|
|
15340
|
+
-ms-flex-pack: center;
|
|
15341
|
+
justify-content: center;
|
|
15342
|
+
font-size: 16px;
|
|
15343
|
+
background: var(--td-bg-color-container);
|
|
15344
|
+
-webkit-transition: color 0.2s cubic-bezier(0.38, 0, 0.24, 1);
|
|
15345
|
+
transition: color 0.2s cubic-bezier(0.38, 0, 0.24, 1);
|
|
15346
|
+
color: var(--td-text-color-secondary);
|
|
15347
|
+
border-radius: 3px;
|
|
15348
|
+
cursor: pointer;
|
|
15349
|
+
}
|
|
15350
|
+
.t-color-picker__icon:hover {
|
|
15351
|
+
color: var(--td-brand-color);
|
|
15352
|
+
background: var(--td-bg-color-container-hover);
|
|
15353
|
+
}
|
|
15354
|
+
.t-color-picker__icon.t-is-disabled {
|
|
15355
|
+
color: var(--td-text-color-disabled);
|
|
15356
|
+
pointer-events: none;
|
|
15357
|
+
}
|
|
15358
|
+
.t-color-picker__head {
|
|
15359
|
+
display: -webkit-box;
|
|
15360
|
+
display: -ms-flexbox;
|
|
15361
|
+
display: flex;
|
|
15362
|
+
-webkit-box-align: center;
|
|
15363
|
+
-ms-flex-align: center;
|
|
15364
|
+
align-items: center;
|
|
15365
|
+
-webkit-box-pack: justify;
|
|
15366
|
+
-ms-flex-pack: justify;
|
|
15367
|
+
justify-content: space-between;
|
|
15368
|
+
padding: 16px;
|
|
15369
|
+
border-bottom: 1px solid var(--td-border-level-1-color);
|
|
15370
|
+
position: relative;
|
|
15371
|
+
z-index: 2;
|
|
15372
|
+
}
|
|
15373
|
+
.t-color-picker__head .t-color-picker__close {
|
|
15374
|
+
-ms-flex-negative: 0;
|
|
15375
|
+
flex-shrink: 0;
|
|
15376
|
+
}
|
|
15377
|
+
.t-color-picker__body {
|
|
15378
|
+
padding: 16px;
|
|
15379
|
+
}
|
|
15380
|
+
.t-color-picker--bg-alpha {
|
|
15381
|
+
background-color: #fff;
|
|
15382
|
+
background-image: linear-gradient(45deg, #c5c5c5 25%, transparent 0, transparent 75%, #c5c5c5 0, #c5c5c5), linear-gradient(45deg, #c5c5c5 25%, transparent 0, transparent 75%, #c5c5c5 0, #c5c5c5);
|
|
15383
|
+
background-size: 6px 6px;
|
|
15384
|
+
background-position: 0 0, 3px 3px;
|
|
15385
|
+
}
|
|
15386
|
+
.t-color-picker__thumb {
|
|
15387
|
+
position: absolute;
|
|
15388
|
+
z-index: 1;
|
|
15389
|
+
outline: none;
|
|
15390
|
+
border-color: currentcolor;
|
|
15391
|
+
width: 14px;
|
|
15392
|
+
height: 14px;
|
|
15393
|
+
border-radius: 50%;
|
|
15394
|
+
-webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
|
|
15395
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
|
|
15396
|
+
background: white;
|
|
15397
|
+
color: var(--td-text-color-brand);
|
|
15398
|
+
padding: 4px;
|
|
15399
|
+
}
|
|
15400
|
+
.t-color-picker__thumb::before {
|
|
15401
|
+
content: "";
|
|
15402
|
+
width: 100%;
|
|
15403
|
+
height: 100%;
|
|
15404
|
+
background: currentcolor;
|
|
15405
|
+
border-radius: 50%;
|
|
15406
|
+
display: block;
|
|
15407
|
+
}
|
|
15408
|
+
.t-color-picker__saturation {
|
|
15409
|
+
height: 140px;
|
|
15410
|
+
border-radius: 4px;
|
|
15411
|
+
position: relative;
|
|
15412
|
+
overflow: hidden;
|
|
15413
|
+
background: transparent;
|
|
15414
|
+
}
|
|
15415
|
+
.t-color-picker__saturation::before,
|
|
15416
|
+
.t-color-picker__saturation::after {
|
|
15417
|
+
content: "";
|
|
15418
|
+
position: absolute;
|
|
15419
|
+
top: 0;
|
|
15420
|
+
left: 0;
|
|
15421
|
+
width: 100%;
|
|
15422
|
+
height: 100%;
|
|
15423
|
+
}
|
|
15424
|
+
.t-color-picker__saturation::before {
|
|
15425
|
+
background: -webkit-gradient(linear, left top, right top, from(#fff), to(transparent));
|
|
15426
|
+
background: linear-gradient(90deg, #fff, transparent);
|
|
15427
|
+
}
|
|
15428
|
+
.t-color-picker__saturation::after {
|
|
15429
|
+
background: -webkit-gradient(linear, left bottom, left top, from(#000), to(transparent));
|
|
15430
|
+
background: linear-gradient(0deg, #000, transparent);
|
|
15431
|
+
}
|
|
15432
|
+
.t-color-picker__saturation .t-color-picker__thumb {
|
|
15433
|
+
width: 14px;
|
|
15434
|
+
height: 14px;
|
|
15435
|
+
border-radius: 50%;
|
|
15436
|
+
-webkit-transform: translate(-50%, -50%);
|
|
15437
|
+
transform: translate(-50%, -50%);
|
|
15438
|
+
}
|
|
15439
|
+
.t-color-picker__slider {
|
|
15440
|
+
height: 8px;
|
|
15441
|
+
position: relative;
|
|
15442
|
+
border-radius: 8px;
|
|
15443
|
+
cursor: pointer;
|
|
15444
|
+
color: transparent;
|
|
15445
|
+
outline: none;
|
|
15446
|
+
}
|
|
15447
|
+
.t-color-picker__slider .t-color-picker__thumb {
|
|
15448
|
+
-webkit-transform: translate(-7px, -50%);
|
|
15449
|
+
transform: translate(-7px, -50%);
|
|
15450
|
+
top: 50%;
|
|
15451
|
+
}
|
|
15452
|
+
.t-color-picker__slider .t-color-picker__rail {
|
|
15453
|
+
position: absolute;
|
|
15454
|
+
top: 0;
|
|
15455
|
+
left: 0;
|
|
15456
|
+
width: 100%;
|
|
15457
|
+
height: 100%;
|
|
15458
|
+
overflow: hidden;
|
|
15459
|
+
border-radius: inherit;
|
|
15460
|
+
}
|
|
15461
|
+
.t-color-picker__hue,
|
|
15462
|
+
.t-color-picker__alpha,
|
|
15463
|
+
.t-color-picker__format {
|
|
15464
|
+
margin: 16px 0 0 0;
|
|
15465
|
+
}
|
|
15466
|
+
.t-color-picker__hue {
|
|
15467
|
+
background: -webkit-gradient(linear, left top, right top, from(red), color-stop(17%, #ff0), color-stop(33%, #0f0), color-stop(50%, #0ff), color-stop(67%, #00f), color-stop(83%, #f0f), to(red));
|
|
15468
|
+
background: linear-gradient(90deg, red, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red);
|
|
15469
|
+
}
|
|
15470
|
+
.t-color-picker__alpha .t-color-picker__rail {
|
|
15471
|
+
background: -webkit-gradient(linear, left top, right top, from(transparent), to(currentcolor));
|
|
15472
|
+
background: linear-gradient(to right, transparent, currentcolor);
|
|
15473
|
+
}
|
|
15474
|
+
.t-color-picker__gradient {
|
|
15475
|
+
padding: 0;
|
|
15476
|
+
display: -webkit-box;
|
|
15477
|
+
display: -ms-flexbox;
|
|
15478
|
+
display: flex;
|
|
15479
|
+
-webkit-box-align: center;
|
|
15480
|
+
-ms-flex-align: center;
|
|
15481
|
+
align-items: center;
|
|
15482
|
+
margin-bottom: 16px;
|
|
15483
|
+
}
|
|
15484
|
+
.t-color-picker__gradient-slider {
|
|
15485
|
+
-webkit-box-flex: 1;
|
|
15486
|
+
-ms-flex: 1;
|
|
15487
|
+
flex: 1;
|
|
15488
|
+
}
|
|
15489
|
+
.t-color-picker__gradient-degree {
|
|
15490
|
+
position: relative;
|
|
15491
|
+
-ms-flex-negative: 0;
|
|
15492
|
+
flex-shrink: 0;
|
|
15493
|
+
margin-left: 16px;
|
|
15494
|
+
width: 42px;
|
|
15495
|
+
}
|
|
15496
|
+
.t-color-picker__gradient-degree .t-input {
|
|
15497
|
+
margin: 0;
|
|
15498
|
+
font-size: 12px;
|
|
15499
|
+
}
|
|
15500
|
+
.t-color-picker__gradient-degree .t-input-number {
|
|
15501
|
+
width: 100%;
|
|
15502
|
+
padding: 0;
|
|
15503
|
+
}
|
|
15504
|
+
.t-color-picker__gradient-preview {
|
|
15505
|
+
-ms-flex-negative: 0;
|
|
15506
|
+
flex-shrink: 0;
|
|
15507
|
+
margin-left: 8px;
|
|
15508
|
+
width: 42px;
|
|
15509
|
+
height: 32px;
|
|
15510
|
+
border-radius: 3px;
|
|
15511
|
+
overflow: hidden;
|
|
15512
|
+
}
|
|
15513
|
+
.t-color-picker__gradient-preview .preview-inner {
|
|
15514
|
+
display: block;
|
|
15515
|
+
width: 100%;
|
|
15516
|
+
height: 100%;
|
|
15517
|
+
}
|
|
15518
|
+
.t-color-picker__gradient .gradient-thumbs {
|
|
15519
|
+
position: absolute;
|
|
15520
|
+
width: 100%;
|
|
15521
|
+
height: 100%;
|
|
15522
|
+
top: 0;
|
|
15523
|
+
left: 0;
|
|
15524
|
+
margin: 0;
|
|
15525
|
+
padding: 0;
|
|
15526
|
+
list-style: none;
|
|
15527
|
+
border-radius: inherit;
|
|
15528
|
+
cursor: pointer;
|
|
15529
|
+
}
|
|
15530
|
+
.t-color-picker__gradient .gradient-thumbs__item {
|
|
15531
|
+
top: 50%;
|
|
15532
|
+
left: 0;
|
|
15533
|
+
-webkit-transform: translate(-50%, -50%);
|
|
15534
|
+
transform: translate(-50%, -50%);
|
|
15535
|
+
z-index: 0;
|
|
15536
|
+
cursor: pointer;
|
|
15537
|
+
}
|
|
15538
|
+
.t-color-picker__gradient .gradient-thumbs__item::before {
|
|
15539
|
+
display: none;
|
|
15540
|
+
}
|
|
15541
|
+
.t-color-picker__gradient .gradient-thumbs__item.t-is-active {
|
|
15542
|
+
z-index: 1;
|
|
15543
|
+
outline: 2px solid var(--td-text-color-brand);
|
|
15544
|
+
}
|
|
15545
|
+
.t-color-picker__gradient .gradient-thumbs__item-inner {
|
|
15546
|
+
display: block;
|
|
15547
|
+
width: 100%;
|
|
15548
|
+
height: 100%;
|
|
15549
|
+
border-radius: 50%;
|
|
15550
|
+
overflow: hidden;
|
|
15551
|
+
background-size: 4px 4px;
|
|
15552
|
+
background-position: 0 0, 2px 2px;
|
|
15553
|
+
}
|
|
15554
|
+
.t-color-picker__gradient .gradient-thumbs__item-inner::before {
|
|
15555
|
+
content: "";
|
|
15556
|
+
width: 100%;
|
|
15557
|
+
height: 100%;
|
|
15558
|
+
display: block;
|
|
15559
|
+
background-color: currentcolor;
|
|
15560
|
+
}
|
|
15561
|
+
.t-color-picker__format {
|
|
15562
|
+
display: -webkit-box;
|
|
15563
|
+
display: -ms-flexbox;
|
|
15564
|
+
display: flex;
|
|
15565
|
+
-webkit-box-align: center;
|
|
15566
|
+
-ms-flex-align: center;
|
|
15567
|
+
align-items: center;
|
|
15568
|
+
-webkit-box-pack: justify;
|
|
15569
|
+
-ms-flex-pack: justify;
|
|
15570
|
+
justify-content: space-between;
|
|
15571
|
+
}
|
|
15572
|
+
.t-color-picker__format--item:first-child {
|
|
15573
|
+
width: 64px;
|
|
15574
|
+
-ms-flex-negative: 0;
|
|
15575
|
+
flex-shrink: 0;
|
|
15576
|
+
}
|
|
15577
|
+
.t-color-picker__format--item:last-child {
|
|
15578
|
+
-webkit-box-flex: 1;
|
|
15579
|
+
-ms-flex: 1;
|
|
15580
|
+
flex: 1;
|
|
15581
|
+
overflow: hidden;
|
|
15582
|
+
}
|
|
15583
|
+
.t-color-picker__format--item .t-size-m,
|
|
15584
|
+
.t-color-picker__format--item .t-input.t-size-m {
|
|
15585
|
+
font-size: 12px;
|
|
15586
|
+
}
|
|
15587
|
+
.t-color-picker__format--item .t-input-number .t-input {
|
|
15588
|
+
margin: 0;
|
|
15589
|
+
}
|
|
15590
|
+
.t-color-picker__format--item .t-select {
|
|
15591
|
+
padding-right: 10px;
|
|
15592
|
+
}
|
|
15593
|
+
.t-color-picker__format--item .t-select__single {
|
|
15594
|
+
margin-left: 4px;
|
|
15595
|
+
}
|
|
15596
|
+
.t-color-picker__format--item .t-select__right-icon {
|
|
15597
|
+
margin: 0 4px;
|
|
15598
|
+
}
|
|
15599
|
+
.t-color-picker__format--item .input-group {
|
|
15600
|
+
display: -webkit-box;
|
|
15601
|
+
display: -ms-flexbox;
|
|
15602
|
+
display: flex;
|
|
15603
|
+
-webkit-box-align: center;
|
|
15604
|
+
-ms-flex-align: center;
|
|
15605
|
+
align-items: center;
|
|
15606
|
+
-ms-flex-pack: distribute;
|
|
15607
|
+
justify-content: space-around;
|
|
15608
|
+
margin-left: 9px;
|
|
15609
|
+
}
|
|
15610
|
+
.t-color-picker__format--item .input-group__item {
|
|
15611
|
+
-webkit-box-flex: 1;
|
|
15612
|
+
-ms-flex: 1;
|
|
15613
|
+
flex: 1;
|
|
15614
|
+
overflow: hidden;
|
|
15615
|
+
margin-left: -1px;
|
|
15616
|
+
}
|
|
15617
|
+
.t-color-picker__format--item .input-group__item .t-input {
|
|
15618
|
+
padding: 0 1px;
|
|
15619
|
+
font-size: 12px;
|
|
15620
|
+
}
|
|
15621
|
+
.t-color-picker__format--item .input-group__item .t-input:focus,
|
|
15622
|
+
.t-color-picker__format--item .input-group__item .t-input:focus-within,
|
|
15623
|
+
.t-color-picker__format--item .input-group__item .t-input:hover {
|
|
15624
|
+
z-index: 1;
|
|
15625
|
+
}
|
|
15626
|
+
.t-color-picker__format--item .input-group__item:not(:first-child):not(:last-child) .t-input {
|
|
15627
|
+
border-radius: 0;
|
|
15628
|
+
}
|
|
15629
|
+
.t-color-picker__format--item .input-group__item:first-child:not(:last-child) .t-input {
|
|
15630
|
+
border-top-right-radius: 0;
|
|
15631
|
+
border-bottom-right-radius: 0;
|
|
15632
|
+
}
|
|
15633
|
+
.t-color-picker__format--item .input-group__item:last-child:not(:first-child) .t-input {
|
|
15634
|
+
border-top-left-radius: 0;
|
|
15635
|
+
border-bottom-left-radius: 0;
|
|
15636
|
+
}
|
|
15637
|
+
.t-color-picker__format--item .input-group .t-input-number {
|
|
15638
|
+
width: 100%;
|
|
15639
|
+
padding: 0;
|
|
15640
|
+
}
|
|
15641
|
+
.t-color-picker__format-mode-select .t-select,
|
|
15642
|
+
.t-color-picker__format-mode-select .t-input {
|
|
15643
|
+
padding-right: 0;
|
|
15644
|
+
}
|
|
15645
|
+
.t-color-picker__format-mode-select .t-input--prefix > .t-input__suffix {
|
|
15646
|
+
padding-left: 0;
|
|
15647
|
+
}
|
|
15648
|
+
.t-color-picker__format-mode-select .t-select__right-icon {
|
|
15649
|
+
margin: 0 4px 0 0;
|
|
15650
|
+
}
|
|
15651
|
+
.t-color-picker__swatches-wrap {
|
|
15652
|
+
margin: 16px 0 0 0;
|
|
15653
|
+
position: relative;
|
|
15654
|
+
}
|
|
15655
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches + .t-color-picker__swatches {
|
|
15656
|
+
margin-top: 16px;
|
|
15657
|
+
}
|
|
15658
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--title {
|
|
15659
|
+
font-size: 12px;
|
|
15660
|
+
font-weight: normal;
|
|
15661
|
+
margin: 0 0 12px;
|
|
15662
|
+
padding: 0;
|
|
15663
|
+
color: var(--td-text-color-primary);
|
|
15664
|
+
display: -webkit-box;
|
|
15665
|
+
display: -ms-flexbox;
|
|
15666
|
+
display: flex;
|
|
15667
|
+
-webkit-box-align: center;
|
|
15668
|
+
-ms-flex-align: center;
|
|
15669
|
+
align-items: center;
|
|
15670
|
+
-webkit-box-pack: justify;
|
|
15671
|
+
-ms-flex-pack: justify;
|
|
15672
|
+
justify-content: space-between;
|
|
15673
|
+
}
|
|
15674
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--actions {
|
|
15675
|
+
margin-left: auto;
|
|
15676
|
+
display: -webkit-box;
|
|
15677
|
+
display: -ms-flexbox;
|
|
15678
|
+
display: flex;
|
|
15679
|
+
-webkit-box-align: center;
|
|
15680
|
+
-ms-flex-align: center;
|
|
15681
|
+
align-items: center;
|
|
15682
|
+
font-size: 0;
|
|
15683
|
+
}
|
|
15684
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--actions .t-color-picker__icon {
|
|
15685
|
+
width: 16px;
|
|
15686
|
+
height: 16px;
|
|
15687
|
+
margin-left: 16px;
|
|
15688
|
+
}
|
|
15689
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--remove {
|
|
15690
|
+
position: relative;
|
|
15691
|
+
}
|
|
15692
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--remove .t-popup {
|
|
15693
|
+
position: absolute;
|
|
15694
|
+
inset: auto auto 0 0;
|
|
15695
|
+
margin: 0;
|
|
15696
|
+
bottom: 30px;
|
|
15697
|
+
left: 10px;
|
|
15698
|
+
-webkit-transform: translateX(-50%);
|
|
15699
|
+
transform: translateX(-50%);
|
|
15700
|
+
cursor: default;
|
|
15701
|
+
}
|
|
15702
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--remove .t-popconfirm__content {
|
|
15703
|
+
width: 220px;
|
|
15704
|
+
}
|
|
15705
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--items {
|
|
15706
|
+
list-style: none;
|
|
15707
|
+
display: grid;
|
|
15708
|
+
grid-template-columns: repeat(10, 23px);
|
|
15709
|
+
gap: 2px 2px;
|
|
15710
|
+
max-height: 100px;
|
|
15711
|
+
overflow-x: hidden;
|
|
15712
|
+
overflow-y: auto;
|
|
15713
|
+
margin: 0 -13px 0 -3px;
|
|
15714
|
+
padding: 0;
|
|
15715
|
+
}
|
|
15716
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--item {
|
|
15717
|
+
display: -webkit-box;
|
|
15718
|
+
display: -ms-flexbox;
|
|
15719
|
+
display: flex;
|
|
15720
|
+
width: 23px;
|
|
15721
|
+
height: 23px;
|
|
15722
|
+
border-radius: 50%;
|
|
15723
|
+
padding: 2px;
|
|
15724
|
+
border: 1px solid transparent;
|
|
15725
|
+
overflow: hidden;
|
|
15726
|
+
cursor: pointer;
|
|
15727
|
+
-webkit-box-align: center;
|
|
15728
|
+
-ms-flex-align: center;
|
|
15729
|
+
align-items: center;
|
|
15730
|
+
-webkit-box-pack: center;
|
|
15731
|
+
-ms-flex-pack: center;
|
|
15732
|
+
justify-content: center;
|
|
15733
|
+
position: relative;
|
|
15734
|
+
-webkit-transform-origin: center;
|
|
15735
|
+
transform-origin: center;
|
|
15736
|
+
-webkit-transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
|
|
15737
|
+
transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
|
|
15738
|
+
}
|
|
15739
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--item__color {
|
|
15740
|
+
width: 100%;
|
|
15741
|
+
height: 100%;
|
|
15742
|
+
position: relative;
|
|
15743
|
+
overflow: hidden;
|
|
15744
|
+
border: 1px solid var(--td-component-border);
|
|
15745
|
+
border-radius: 50%;
|
|
15746
|
+
}
|
|
15747
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--item__inner {
|
|
15748
|
+
width: 100%;
|
|
15749
|
+
height: 100%;
|
|
15750
|
+
display: block;
|
|
15751
|
+
}
|
|
15752
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--item:not(.t-is-active):hover {
|
|
15753
|
+
padding: 0;
|
|
15754
|
+
}
|
|
15755
|
+
.t-color-picker__swatches-wrap .t-color-picker__swatches--item.t-is-active .t-color-picker__swatches--item__color {
|
|
15756
|
+
border-color: var(--td-text-color-brand);
|
|
15757
|
+
}
|
|
15758
|
+
.t-color-picker__trigger--default {
|
|
15759
|
+
display: -webkit-inline-box;
|
|
15760
|
+
display: -ms-inline-flexbox;
|
|
15761
|
+
display: inline-flex;
|
|
15762
|
+
-webkit-box-align: center;
|
|
15763
|
+
-ms-flex-align: center;
|
|
15764
|
+
align-items: center;
|
|
15765
|
+
}
|
|
15766
|
+
.t-color-picker__trigger--default > .t-input {
|
|
15767
|
+
width: -webkit-fit-content;
|
|
15768
|
+
width: -moz-fit-content;
|
|
15769
|
+
width: fit-content;
|
|
15770
|
+
}
|
|
15771
|
+
.t-color-picker__trigger--default .t-input {
|
|
15772
|
+
padding: 0 8px 0 6px;
|
|
15773
|
+
}
|
|
15774
|
+
.t-color-picker__trigger--default__color {
|
|
15775
|
+
width: 24px;
|
|
15776
|
+
height: 24px;
|
|
15777
|
+
margin-right: 4px;
|
|
15778
|
+
}
|
|
15779
|
+
.t-color-picker__trigger--default__color .color-inner {
|
|
15780
|
+
border: 1px solid var(--td-scrollbar-color);
|
|
15781
|
+
display: block;
|
|
15782
|
+
width: 100%;
|
|
15783
|
+
height: 100%;
|
|
15784
|
+
color: transparent;
|
|
15785
|
+
position: relative;
|
|
15786
|
+
}
|
|
15787
|
+
.t-color-picker__panel.t-is-disabled .t-color-picker__saturation,
|
|
15788
|
+
.t-color-picker__panel.t-is-disabled .t-color-picker__slider,
|
|
15789
|
+
.t-color-picker__panel.t-is-disabled .t-color-picker__swatches--item {
|
|
15790
|
+
opacity: 0.8;
|
|
15791
|
+
cursor: not-allowed;
|
|
15792
|
+
}
|
|
15793
|
+
.t-color-picker__panel.t-is-disabled .t-color-picker__gradient-slider .gradient-thumbs,
|
|
15794
|
+
.t-color-picker__panel.t-is-disabled .t-color-picker__gradient-slider .gradient-thumbs__item {
|
|
15795
|
+
cursor: not-allowed;
|
|
15796
|
+
}
|
|
15797
|
+
.t-color-picker__panel.t-is-disabled .t-color-picker__swatches--item:hover {
|
|
15798
|
+
padding: 2px;
|
|
15799
|
+
}
|
|
15800
|
+
.t-color-picker__select-options .t-select__dropdown-inner {
|
|
15801
|
+
padding: 4px;
|
|
15802
|
+
}
|
|
15803
|
+
.t-color-picker__select-options .t-select-option {
|
|
15804
|
+
height: 30px;
|
|
15805
|
+
padding: 5px 8px;
|
|
15806
|
+
font-size: 12px;
|
|
15807
|
+
}
|
|
15808
|
+
.t-color-picker__select-options .t-select-option + .t-select-option {
|
|
15809
|
+
margin-top: 2px;
|
|
15810
|
+
}
|
|
15811
|
+
|
|
15314
15812
|
.t-card {
|
|
15315
15813
|
position: relative;
|
|
15316
15814
|
-webkit-box-sizing: border-box;
|