@lowdefy/blocks-color-selectors 4.0.0-alpha.5 → 4.0.0-alpha.8

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.
Files changed (30) hide show
  1. package/README.md +1 -1
  2. package/dist/blocks/ColorSelector/ColorPicker.js +66 -0
  3. package/dist/blocks/ColorSelector/ColorSelector.js +25 -19
  4. package/dist/blocks/ColorSelector/schema.json +8 -33
  5. package/dist/blocks/ColorSelector/style.less +57 -1
  6. package/dist/blocks/ColorSelector/useClickOutside.js +46 -0
  7. package/dist/blocks.js +0 -7
  8. package/dist/types.js +5 -3
  9. package/package.json +22 -17
  10. package/dist/blocks/ChromeColorSelector/ChromeColorSelector.js +0 -72
  11. package/dist/blocks/ChromeColorSelector/schema.json +0 -99
  12. package/dist/blocks/ChromeColorSelector/style.less +0 -17
  13. package/dist/blocks/CircleColorSelector/CircleColorSelector.js +0 -90
  14. package/dist/blocks/CircleColorSelector/schema.json +0 -156
  15. package/dist/blocks/CircleColorSelector/style.less +0 -17
  16. package/dist/blocks/CompactColorSelector/CompactColorSelector.js +0 -68
  17. package/dist/blocks/CompactColorSelector/schema.json +0 -144
  18. package/dist/blocks/CompactColorSelector/style.less +0 -17
  19. package/dist/blocks/GithubColorSelector/GithubColorSelector.js +0 -70
  20. package/dist/blocks/GithubColorSelector/schema.json +0 -138
  21. package/dist/blocks/GithubColorSelector/style.less +0 -17
  22. package/dist/blocks/SliderColorSelector/SliderColorSelector.js +0 -66
  23. package/dist/blocks/SliderColorSelector/schema.json +0 -96
  24. package/dist/blocks/SliderColorSelector/style.less +0 -17
  25. package/dist/blocks/SwatchesColorSelector/SwatchesColorSelector.js +0 -69
  26. package/dist/blocks/SwatchesColorSelector/schema.json +0 -146
  27. package/dist/blocks/SwatchesColorSelector/style.less +0 -17
  28. package/dist/blocks/TwitterColorSelector/TwitterColorSelector.js +0 -63
  29. package/dist/blocks/TwitterColorSelector/schema.json +0 -125
  30. package/dist/blocks/TwitterColorSelector/style.less +0 -17
@@ -1,125 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "type": "object",
5
- "properties": {
6
- "colors": {
7
- "type": "array",
8
- "description": "Colors to display.",
9
- "default": [
10
- "#FF6900",
11
- "#FCB900",
12
- "#7BDCB5",
13
- "#00D084",
14
- "#8ED1FC",
15
- "#0693E3",
16
- "#ABB8C3",
17
- "#EB144C",
18
- "#F78DA7",
19
- "#9900EF"
20
- ],
21
- "items": {
22
- "type": "string",
23
- "docs": {
24
- "displayType": "color"
25
- }
26
- }
27
- },
28
- "defaultColor": {
29
- "type": "string",
30
- "default": "#000000",
31
- "description": "Default color to display if input value is null.",
32
- "docs": {
33
- "displayType": "color"
34
- }
35
- },
36
- "label": {
37
- "type": "object",
38
- "description": "Label properties.",
39
- "additionalProperties": false,
40
- "properties": {
41
- "align": {
42
- "type": "string",
43
- "enum": ["left", "right"],
44
- "default": "left",
45
- "description": "Align label left or right when inline."
46
- },
47
- "colon": {
48
- "type": "boolean",
49
- "default": true,
50
- "description": "Append label with colon."
51
- },
52
- "extra": {
53
- "type": "string",
54
- "description": "Extra text to display beneath the content."
55
- },
56
- "title": {
57
- "type": "string",
58
- "description": "Label title."
59
- },
60
- "span": {
61
- "type": "number",
62
- "description": "Label inline span."
63
- },
64
- "disabled": {
65
- "type": "boolean",
66
- "default": false,
67
- "description": "Hide input label."
68
- },
69
- "hasFeedback": {
70
- "type": "boolean",
71
- "default": true,
72
- "description": "Display feedback extra from validation, this does not disable validation."
73
- },
74
- "inline": {
75
- "type": "boolean",
76
- "default": false,
77
- "description": "Render input and label inline."
78
- },
79
- "extraStyle": {
80
- "type": "object",
81
- "description": "Css style to applied to label extra.",
82
- "docs": {
83
- "displayType": "yaml"
84
- }
85
- },
86
- "feedbackStyle": {
87
- "type": "object",
88
- "description": "Css style to applied to label feedback.",
89
- "docs": {
90
- "displayType": "yaml"
91
- }
92
- }
93
- }
94
- },
95
- "title": {
96
- "type": "string",
97
- "description": "Title to describe the input component, if no title is specified the block id is displayed."
98
- },
99
- "triangle": {
100
- "type": "string",
101
- "enum": ["hide", "top-left", "top-right"],
102
- "default": "hide",
103
- "description": "Show triangle on color selector border."
104
- },
105
- "width": {
106
- "type": ["string", "number"],
107
- "description": "Color selector width.",
108
- "default": "100%",
109
- "docs": {
110
- "displayType": "string"
111
- }
112
- }
113
- }
114
- },
115
- "events": {
116
- "type": "object",
117
- "additionalProperties": false,
118
- "properties": {
119
- "onChange": {
120
- "type": "array",
121
- "description": "Trigger actions when color is picked."
122
- }
123
- }
124
- }
125
- }
@@ -1,17 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */
16
-
17
- @import '@lowdefy/blocks-antd/blocks/Label/style.less'