@lowdefy/blocks-color-selectors 4.0.0-alpha.1 → 4.0.0-alpha.12

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 (37) hide show
  1. package/README.md +1 -1
  2. package/dist/blocks/ColorSelector/ColorPicker.js +69 -0
  3. package/dist/blocks/ColorSelector/ColorSelector.js +29 -17
  4. package/dist/blocks/ColorSelector/schema.json +8 -33
  5. package/dist/blocks/ColorSelector/style.less +58 -2
  6. package/dist/blocks/ColorSelector/useClickOutside.js +46 -0
  7. package/dist/{blocks/CompactColorSelector/style.less → blocks.js} +2 -4
  8. package/dist/{blocks/ColorSelector/index.js → types.js} +15 -18
  9. package/package.json +27 -18
  10. package/dist/blocks/ChromeColorSelector/ChromeColorSelector.js +0 -58
  11. package/dist/blocks/ChromeColorSelector/index.js +0 -33
  12. package/dist/blocks/ChromeColorSelector/schema.json +0 -99
  13. package/dist/blocks/ChromeColorSelector/style.less +0 -17
  14. package/dist/blocks/CircleColorSelector/CircleColorSelector.js +0 -77
  15. package/dist/blocks/CircleColorSelector/index.js +0 -32
  16. package/dist/blocks/CircleColorSelector/schema.json +0 -156
  17. package/dist/blocks/CircleColorSelector/style.less +0 -17
  18. package/dist/blocks/CompactColorSelector/CompactColorSelector.js +0 -54
  19. package/dist/blocks/CompactColorSelector/index.js +0 -33
  20. package/dist/blocks/CompactColorSelector/schema.json +0 -144
  21. package/dist/blocks/GithubColorSelector/GithubColorSelector.js +0 -56
  22. package/dist/blocks/GithubColorSelector/index.js +0 -33
  23. package/dist/blocks/GithubColorSelector/schema.json +0 -138
  24. package/dist/blocks/GithubColorSelector/style.less +0 -17
  25. package/dist/blocks/SliderColorSelector/SliderColorSelector.js +0 -53
  26. package/dist/blocks/SliderColorSelector/index.js +0 -32
  27. package/dist/blocks/SliderColorSelector/schema.json +0 -96
  28. package/dist/blocks/SliderColorSelector/style.less +0 -17
  29. package/dist/blocks/SwatchesColorSelector/SwatchesColorSelector.js +0 -56
  30. package/dist/blocks/SwatchesColorSelector/index.js +0 -32
  31. package/dist/blocks/SwatchesColorSelector/schema.json +0 -146
  32. package/dist/blocks/SwatchesColorSelector/style.less +0 -17
  33. package/dist/blocks/TwitterColorSelector/TwitterColorSelector.js +0 -50
  34. package/dist/blocks/TwitterColorSelector/index.js +0 -32
  35. package/dist/blocks/TwitterColorSelector/schema.json +0 -125
  36. package/dist/blocks/TwitterColorSelector/style.less +0 -17
  37. package/dist/index.js +0 -37
@@ -1,32 +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
- */ export default {
16
- import: {
17
- block: 'blocks/TwitterColorSelector/TwitterColorSelector.js',
18
- styles: [
19
- 'blocks/TwitterColorSelector/style.less'
20
- ]
21
- },
22
- meta: {
23
- valueType: 'string',
24
- category: 'input',
25
- loading: {
26
- type: 'Skeleton',
27
- properties: {
28
- height: 96
29
- }
30
- }
31
- }
32
- };
@@ -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'
package/dist/index.js DELETED
@@ -1,37 +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
- */ import ColorSelector from './blocks/ColorSelector';
16
- import ChromeColorSelector from './blocks/ChromeColorSelector';
17
- import CircleColorSelector from './blocks/CircleColorSelector';
18
- import CompactColorSelector from './blocks/CompactColorSelector';
19
- import GithubColorSelector from './blocks/GithubColorSelector';
20
- import SliderColorSelector from './blocks/SliderColorSelector';
21
- import SwatchesColorSelector from './blocks/SwatchesColorSelector';
22
- import TwitterColorSelector from './blocks/TwitterColorSelector';
23
- export default {
24
- blocks: {
25
- ColorSelector,
26
- ChromeColorSelector,
27
- CircleColorSelector,
28
- CompactColorSelector,
29
- GithubColorSelector,
30
- SliderColorSelector,
31
- SwatchesColorSelector,
32
- TwitterColorSelector
33
- },
34
- import: {
35
- styles: []
36
- }
37
- };