@lowdefy/docs-content 0.0.0-experimental-20260710073520
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/LICENSE +201 -0
- package/README.md +20 -0
- package/content/actions/callapi.md +66 -0
- package/content/actions/callmethod.md +41 -0
- package/content/actions/copytoclipboard.md +32 -0
- package/content/actions/displaymessage.md +53 -0
- package/content/actions/downloadcsv.md +89 -0
- package/content/actions/fetch.md +50 -0
- package/content/actions/geolocationcurrentposition.md +56 -0
- package/content/actions/link.md +104 -0
- package/content/actions/login.md +85 -0
- package/content/actions/logout.md +56 -0
- package/content/actions/pdfmake.md +304 -0
- package/content/actions/request.md +67 -0
- package/content/actions/reset.md +27 -0
- package/content/actions/resetvalidation.md +85 -0
- package/content/actions/scrollto.md +85 -0
- package/content/actions/setdarkmode.md +62 -0
- package/content/actions/setfocus.md +33 -0
- package/content/actions/setglobal.md +63 -0
- package/content/actions/setlocale.md +69 -0
- package/content/actions/setstate.md +70 -0
- package/content/actions/throw.md +72 -0
- package/content/actions/validate.md +87 -0
- package/content/actions/wait.md +24 -0
- package/content/agents/agent-endpoint-tools.md +190 -0
- package/content/agents/agent-mcp-tools.md +124 -0
- package/content/agents/agent-multi-agent.md +136 -0
- package/content/agents/agent-properties.md +174 -0
- package/content/agents/agent-server-hooks.md +336 -0
- package/content/agents/agentchat.md +515 -0
- package/content/agents/agentconversations.md +148 -0
- package/content/concepts/ai-agent-docs.md +190 -0
- package/content/concepts/cli.md +213 -0
- package/content/concepts/connections-and-requests.md +7 -0
- package/content/concepts/custom-html.md +3 -0
- package/content/concepts/custom-styling.md +161 -0
- package/content/concepts/events-and-actions.md +271 -0
- package/content/concepts/hosting-files.md +18 -0
- package/content/concepts/i18n.md +320 -0
- package/content/concepts/keyboard-shortcuts.md +218 -0
- package/content/concepts/layout-overview.md +478 -0
- package/content/concepts/lists.md +144 -0
- package/content/concepts/logger.md +43 -0
- package/content/concepts/lowdefy-schema.md +365 -0
- package/content/concepts/menus.md +144 -0
- package/content/concepts/module-authoring.md +564 -0
- package/content/concepts/modules.md +338 -0
- package/content/concepts/operators.md +45 -0
- package/content/concepts/overview.md +19 -0
- package/content/concepts/references-and-templates.md +207 -0
- package/content/concepts/secrets.md +24 -0
- package/content/concepts/selectors.md +143 -0
- package/content/connections/amazonredshift.md +176 -0
- package/content/connections/anthropic.md +232 -0
- package/content/connections/awss3.md +313 -0
- package/content/connections/azureblobstorage.md +133 -0
- package/content/connections/elasticsearch.md +371 -0
- package/content/connections/google.md +228 -0
- package/content/connections/googlecloudstorage.md +139 -0
- package/content/connections/googlesheet.md +313 -0
- package/content/connections/knex.md +206 -0
- package/content/connections/mariadb.md +177 -0
- package/content/connections/mcp.md +134 -0
- package/content/connections/mongodb.md +739 -0
- package/content/connections/mssql.md +191 -0
- package/content/connections/mysql.md +192 -0
- package/content/connections/openai-connection.md +228 -0
- package/content/connections/postgresql.md +200 -0
- package/content/connections/redis.md +116 -0
- package/content/connections/sendgridmail.md +94 -0
- package/content/connections/smtp.md +149 -0
- package/content/connections/sqlite.md +187 -0
- package/content/connections/stripe.md +115 -0
- package/content/container-blocks/affix.md +413 -0
- package/content/container-blocks/alert.md +937 -0
- package/content/container-blocks/badge.md +1222 -0
- package/content/container-blocks/box.md +1453 -0
- package/content/container-blocks/card.md +1200 -0
- package/content/container-blocks/carousel.md +2247 -0
- package/content/container-blocks/collapse.md +1335 -0
- package/content/container-blocks/configprovider.md +1070 -0
- package/content/container-blocks/confirmmodal.md +1159 -0
- package/content/container-blocks/content.md +597 -0
- package/content/container-blocks/descriptions.md +870 -0
- package/content/container-blocks/drawer.md +1379 -0
- package/content/container-blocks/dropdownmenu.md +643 -0
- package/content/container-blocks/flex.md +1510 -0
- package/content/container-blocks/footer.md +380 -0
- package/content/container-blocks/googlemaps.md +546 -0
- package/content/container-blocks/googlemapsheatmap.md +607 -0
- package/content/container-blocks/googlemapsscript.md +61 -0
- package/content/container-blocks/header.md +302 -0
- package/content/container-blocks/label.md +739 -0
- package/content/container-blocks/layout.md +604 -0
- package/content/container-blocks/masonry.md +1090 -0
- package/content/container-blocks/mobilemenu.md +1244 -0
- package/content/container-blocks/modal.md +1180 -0
- package/content/container-blocks/pageheadermenu.md +614 -0
- package/content/container-blocks/pagesidebarlayout.md +438 -0
- package/content/container-blocks/pagesidermenu.md +651 -0
- package/content/container-blocks/popover.md +1421 -0
- package/content/container-blocks/result.md +972 -0
- package/content/container-blocks/sider.md +1064 -0
- package/content/container-blocks/span.md +747 -0
- package/content/container-blocks/spinner.md +267 -0
- package/content/container-blocks/splitter.md +1735 -0
- package/content/container-blocks/tabs.md +1718 -0
- package/content/container-blocks/tooltip.md +1274 -0
- package/content/container-blocks/watermark.md +515 -0
- package/content/controls/for.md +103 -0
- package/content/controls/if.md +107 -0
- package/content/controls/log.md +50 -0
- package/content/controls/parallel.md +71 -0
- package/content/controls/parallel_for.md +36 -0
- package/content/controls/reject.md +56 -0
- package/content/controls/return.md +66 -0
- package/content/controls/set_state.md +98 -0
- package/content/controls/switch.md +90 -0
- package/content/controls/throw.md +79 -0
- package/content/controls/try.md +88 -0
- package/content/deployment/docker.md +149 -0
- package/content/deployment/node-server.md +27 -0
- package/content/deployment/vercel.md +101 -0
- package/content/display-blocks/aggrid.md +1459 -0
- package/content/display-blocks/anchor.md +336 -0
- package/content/display-blocks/avatar.md +1154 -0
- package/content/display-blocks/breadcrumb.md +517 -0
- package/content/display-blocks/button.md +758 -0
- package/content/display-blocks/calendar.md +156 -0
- package/content/display-blocks/dangeroushtml.md +314 -0
- package/content/display-blocks/dangerousmarkdown.md +423 -0
- package/content/display-blocks/diffgit.md +44 -0
- package/content/display-blocks/difflist.md +225 -0
- package/content/display-blocks/diffsidebyside.md +56 -0
- package/content/display-blocks/difftimeline.md +94 -0
- package/content/display-blocks/divider.md +406 -0
- package/content/display-blocks/download.md +60 -0
- package/content/display-blocks/dropdownbutton.md +661 -0
- package/content/display-blocks/echart.md +418 -0
- package/content/display-blocks/floatbutton.md +545 -0
- package/content/display-blocks/html.md +311 -0
- package/content/display-blocks/icon.md +717 -0
- package/content/display-blocks/img.md +479 -0
- package/content/display-blocks/markdown.md +520 -0
- package/content/display-blocks/markdownwithcode.md +730 -0
- package/content/display-blocks/menu.md +1123 -0
- package/content/display-blocks/message.md +941 -0
- package/content/display-blocks/notification.md +1410 -0
- package/content/display-blocks/paragraph.md +643 -0
- package/content/display-blocks/progress.md +818 -0
- package/content/display-blocks/qrcode.md +519 -0
- package/content/display-blocks/s3download.md +240 -0
- package/content/display-blocks/search.md +360 -0
- package/content/display-blocks/skeleton.md +272 -0
- package/content/display-blocks/skeletonavatar.md +222 -0
- package/content/display-blocks/skeletonbutton.md +245 -0
- package/content/display-blocks/skeletoninput.md +223 -0
- package/content/display-blocks/skeletonparagraph.md +201 -0
- package/content/display-blocks/statistic.md +485 -0
- package/content/display-blocks/steps.md +585 -0
- package/content/display-blocks/tag.md +620 -0
- package/content/display-blocks/title.md +654 -0
- package/content/display-blocks/tour.md +2359 -0
- package/content/input-blocks/autocomplete.md +786 -0
- package/content/input-blocks/buttonselector.md +964 -0
- package/content/input-blocks/checkboxselector.md +765 -0
- package/content/input-blocks/checkboxswitch.md +497 -0
- package/content/input-blocks/colorselector.md +884 -0
- package/content/input-blocks/daterangeselector.md +777 -0
- package/content/input-blocks/dateselector.md +693 -0
- package/content/input-blocks/datetimeselector.md +791 -0
- package/content/input-blocks/inputgallery.md +528 -0
- package/content/input-blocks/monthselector.md +717 -0
- package/content/input-blocks/multipleselector.md +1337 -0
- package/content/input-blocks/numberinput.md +855 -0
- package/content/input-blocks/pagination.md +679 -0
- package/content/input-blocks/paragraphinput.md +1664 -0
- package/content/input-blocks/passwordinput.md +480 -0
- package/content/input-blocks/phonenumberinput.md +688 -0
- package/content/input-blocks/radioselector.md +820 -0
- package/content/input-blocks/ratingslider.md +684 -0
- package/content/input-blocks/s3uploadbutton.md +384 -0
- package/content/input-blocks/s3uploaddragger.md +305 -0
- package/content/input-blocks/s3uploadphoto.md +288 -0
- package/content/input-blocks/segmentedselector.md +782 -0
- package/content/input-blocks/selector.md +1162 -0
- package/content/input-blocks/switch.md +552 -0
- package/content/input-blocks/textarea.md +714 -0
- package/content/input-blocks/textinput.md +639 -0
- package/content/input-blocks/tiptapinput.md +226 -0
- package/content/input-blocks/tiptapmentioninput.md +471 -0
- package/content/input-blocks/titleinput.md +1094 -0
- package/content/input-blocks/treeinput.md +144 -0
- package/content/input-blocks/treemultipleselector.md +162 -0
- package/content/input-blocks/treeselector.md +185 -0
- package/content/input-blocks/upload.md +149 -0
- package/content/input-blocks/uploaddragger.md +85 -0
- package/content/input-blocks/uploadphoto.md +84 -0
- package/content/input-blocks/weekselector.md +630 -0
- package/content/list-blocks/controlledlist.md +498 -0
- package/content/list-blocks/list.md +529 -0
- package/content/list-blocks/listselector.md +301 -0
- package/content/list-blocks/masonrylist.md +230 -0
- package/content/migration/upgrade-guide.md +106 -0
- package/content/migration/v4-to-v5.md +589 -0
- package/content/migration/v5-to-v6.md +36 -0
- package/content/operators/_actions.md +58 -0
- package/content/operators/_and.md +76 -0
- package/content/operators/_api.md +254 -0
- package/content/operators/_app.md +114 -0
- package/content/operators/_args.md +65 -0
- package/content/operators/_array.md +331 -0
- package/content/operators/_base64.md +49 -0
- package/content/operators/_boolean.md +33 -0
- package/content/operators/_build.md +166 -0
- package/content/operators/_change_case.md +357 -0
- package/content/operators/_date.md +415 -0
- package/content/operators/_dayjs.md +128 -0
- package/content/operators/_diff.md +61 -0
- package/content/operators/_divide.md +32 -0
- package/content/operators/_eq.md +52 -0
- package/content/operators/_event.md +86 -0
- package/content/operators/_function.md +52 -0
- package/content/operators/_get.md +92 -0
- package/content/operators/_global.md +86 -0
- package/content/operators/_gt.md +50 -0
- package/content/operators/_gte.md +50 -0
- package/content/operators/_hash.md +112 -0
- package/content/operators/_if.md +30 -0
- package/content/operators/_if_none.md +47 -0
- package/content/operators/_index.md +48 -0
- package/content/operators/_input.md +86 -0
- package/content/operators/_intl.md +135 -0
- package/content/operators/_item.md +166 -0
- package/content/operators/_js.md +113 -0
- package/content/operators/_json.md +120 -0
- package/content/operators/_jsonata.md +152 -0
- package/content/operators/_locale.md +65 -0
- package/content/operators/_location.md +40 -0
- package/content/operators/_log.md +22 -0
- package/content/operators/_lt.md +50 -0
- package/content/operators/_lte.md +50 -0
- package/content/operators/_math.md +407 -0
- package/content/operators/_media.md +83 -0
- package/content/operators/_menu.md +62 -0
- package/content/operators/_module.md +340 -0
- package/content/operators/_mql.md +95 -0
- package/content/operators/_ne.md +62 -0
- package/content/operators/_not.md +33 -0
- package/content/operators/_number.md +159 -0
- package/content/operators/_nunjucks.md +117 -0
- package/content/operators/_object.md +253 -0
- package/content/operators/_operator.md +33 -0
- package/content/operators/_or.md +67 -0
- package/content/operators/_product.md +45 -0
- package/content/operators/_random.md +90 -0
- package/content/operators/_ref.md +80 -0
- package/content/operators/_regex.md +69 -0
- package/content/operators/_request.md +35 -0
- package/content/operators/_request_details.md +29 -0
- package/content/operators/_secret.md +56 -0
- package/content/operators/_state.md +134 -0
- package/content/operators/_step.md +98 -0
- package/content/operators/_string.md +327 -0
- package/content/operators/_subtract.md +24 -0
- package/content/operators/_sum.md +45 -0
- package/content/operators/_switch.md +37 -0
- package/content/operators/_t.md +96 -0
- package/content/operators/_theme.md +65 -0
- package/content/operators/_type.md +78 -0
- package/content/operators/_uri.md +49 -0
- package/content/operators/_url_query.md +92 -0
- package/content/operators/_user.md +154 -0
- package/content/operators/_uuid.md +118 -0
- package/content/operators/_var.md +88 -0
- package/content/operators/_yaml.md +96 -0
- package/content/other/introduction.md +39 -0
- package/content/other/next-auth-providers.md +3 -0
- package/content/other/updatesession.md +26 -0
- package/content/plugins/plugins-actions.md +80 -0
- package/content/plugins/plugins-connections.md +98 -0
- package/content/plugins/plugins-dev.md +138 -0
- package/content/plugins/plugins-introduction.md +29 -0
- package/content/plugins/plugins-operators.md +71 -0
- package/content/testing/e2e-auth.md +108 -0
- package/content/testing/e2e-configuration.md +107 -0
- package/content/testing/e2e-getting-started.md +96 -0
- package/content/testing/e2e-introduction.md +53 -0
- package/content/testing/e2e-mocking.md +155 -0
- package/content/testing/e2e-writing-tests.md +214 -0
- package/content/tutorial/tutorial-actions-operators.md +222 -0
- package/content/tutorial/tutorial-add-blocks.md +86 -0
- package/content/tutorial/tutorial-create-page.md +57 -0
- package/content/tutorial/tutorial-display-data-page.md +181 -0
- package/content/tutorial/tutorial-next-steps.md +53 -0
- package/content/tutorial/tutorial-requests-sql.md +22 -0
- package/content/tutorial/tutorial-start.md +71 -0
- package/content/user-authentication/auth-providers.md +15 -0
- package/content/user-authentication/login-and-logout.md +122 -0
- package/content/user-authentication/users-introduction.md +31 -0
- package/index.json +2281 -0
- package/package.json +34 -0
- package/scripts/extractAgentDocs.js +130 -0
|
@@ -0,0 +1,884 @@
|
|
|
1
|
+
# ColorSelector
|
|
2
|
+
|
|
3
|
+
Color picker with presets, format selection, and alpha channel.
|
|
4
|
+
|
|
5
|
+
ColorSelector is externally controlled — use an `onMount` event with `SetState` to set an initial color. Without it, the picker starts empty. The other examples on this page are initialized via the page `onInit` event.
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
- id: init_desc
|
|
9
|
+
type: Markdown
|
|
10
|
+
properties:
|
|
11
|
+
content: ColorSelector is externally controlled — use an `onMount` event with
|
|
12
|
+
`SetState` to set an initial color. Without it, the picker starts empty.
|
|
13
|
+
The other examples on this page are initialized via the page `onInit`
|
|
14
|
+
event.
|
|
15
|
+
- id: init_empty
|
|
16
|
+
type: ColorSelector
|
|
17
|
+
properties:
|
|
18
|
+
title: Empty Picker
|
|
19
|
+
showText: true
|
|
20
|
+
- id: init_with_value
|
|
21
|
+
type: ColorSelector
|
|
22
|
+
properties:
|
|
23
|
+
title: Initialized Picker
|
|
24
|
+
showText: true
|
|
25
|
+
events:
|
|
26
|
+
onMount:
|
|
27
|
+
- id: set_init_with_value
|
|
28
|
+
type: SetState
|
|
29
|
+
params:
|
|
30
|
+
init_with_value: "#1677ff"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
```yaml
|
|
34
|
+
- id: size_small
|
|
35
|
+
type: ColorSelector
|
|
36
|
+
layout:
|
|
37
|
+
flex: 0 0 auto
|
|
38
|
+
properties:
|
|
39
|
+
size: small
|
|
40
|
+
- id: size_middle
|
|
41
|
+
type: ColorSelector
|
|
42
|
+
layout:
|
|
43
|
+
flex: 0 0 auto
|
|
44
|
+
properties:
|
|
45
|
+
size: middle
|
|
46
|
+
- id: size_large
|
|
47
|
+
type: ColorSelector
|
|
48
|
+
layout:
|
|
49
|
+
flex: 0 0 auto
|
|
50
|
+
properties:
|
|
51
|
+
size: large
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```yaml
|
|
55
|
+
- id: size_text_small
|
|
56
|
+
type: ColorSelector
|
|
57
|
+
layout:
|
|
58
|
+
flex: 0 0 auto
|
|
59
|
+
properties:
|
|
60
|
+
size: small
|
|
61
|
+
showText: true
|
|
62
|
+
- id: size_text_middle
|
|
63
|
+
type: ColorSelector
|
|
64
|
+
layout:
|
|
65
|
+
flex: 0 0 auto
|
|
66
|
+
properties:
|
|
67
|
+
size: middle
|
|
68
|
+
showText: true
|
|
69
|
+
- id: size_text_large
|
|
70
|
+
type: ColorSelector
|
|
71
|
+
layout:
|
|
72
|
+
flex: 0 0 auto
|
|
73
|
+
properties:
|
|
74
|
+
size: large
|
|
75
|
+
showText: true
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Hex format:**
|
|
79
|
+
|
|
80
|
+
**RGB format:**
|
|
81
|
+
|
|
82
|
+
**HSB format:**
|
|
83
|
+
|
|
84
|
+
```yaml
|
|
85
|
+
- id: format_hex_label
|
|
86
|
+
type: Markdown
|
|
87
|
+
properties:
|
|
88
|
+
content: "**Hex format:**"
|
|
89
|
+
- id: format_hex
|
|
90
|
+
type: ColorSelector
|
|
91
|
+
layout:
|
|
92
|
+
flex: 0 0 auto
|
|
93
|
+
properties:
|
|
94
|
+
format: hex
|
|
95
|
+
showText: true
|
|
96
|
+
- id: format_rgb_label
|
|
97
|
+
type: Markdown
|
|
98
|
+
properties:
|
|
99
|
+
content: "**RGB format:**"
|
|
100
|
+
- id: format_rgb
|
|
101
|
+
type: ColorSelector
|
|
102
|
+
layout:
|
|
103
|
+
flex: 0 0 auto
|
|
104
|
+
properties:
|
|
105
|
+
format: rgb
|
|
106
|
+
showText: true
|
|
107
|
+
- id: format_hsb_label
|
|
108
|
+
type: Markdown
|
|
109
|
+
properties:
|
|
110
|
+
content: "**HSB format:**"
|
|
111
|
+
- id: format_hsb
|
|
112
|
+
type: ColorSelector
|
|
113
|
+
layout:
|
|
114
|
+
flex: 0 0 auto
|
|
115
|
+
properties:
|
|
116
|
+
format: hsb
|
|
117
|
+
showText: true
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
```yaml
|
|
121
|
+
- id: allow_clear_red
|
|
122
|
+
type: ColorSelector
|
|
123
|
+
layout:
|
|
124
|
+
flex: 0 0 auto
|
|
125
|
+
properties:
|
|
126
|
+
allowClear: true
|
|
127
|
+
showText: true
|
|
128
|
+
- id: allow_clear_blue
|
|
129
|
+
type: ColorSelector
|
|
130
|
+
layout:
|
|
131
|
+
flex: 0 0 auto
|
|
132
|
+
properties:
|
|
133
|
+
allowClear: true
|
|
134
|
+
showText: true
|
|
135
|
+
- id: allow_clear_green
|
|
136
|
+
type: ColorSelector
|
|
137
|
+
layout:
|
|
138
|
+
flex: 0 0 auto
|
|
139
|
+
properties:
|
|
140
|
+
allowClear: true
|
|
141
|
+
showText: true
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
```yaml
|
|
145
|
+
- id: toggle_arrow_hidden
|
|
146
|
+
type: ColorSelector
|
|
147
|
+
layout:
|
|
148
|
+
flex: 0 0 auto
|
|
149
|
+
properties:
|
|
150
|
+
arrow: false
|
|
151
|
+
showText: true
|
|
152
|
+
- id: toggle_alpha_disabled
|
|
153
|
+
type: ColorSelector
|
|
154
|
+
layout:
|
|
155
|
+
flex: 0 0 auto
|
|
156
|
+
properties:
|
|
157
|
+
disabledAlpha: true
|
|
158
|
+
showText: true
|
|
159
|
+
- id: toggle_format_disabled
|
|
160
|
+
type: ColorSelector
|
|
161
|
+
layout:
|
|
162
|
+
flex: 0 0 auto
|
|
163
|
+
properties:
|
|
164
|
+
disabledFormat: true
|
|
165
|
+
showText: true
|
|
166
|
+
- id: toggle_all_disabled
|
|
167
|
+
type: ColorSelector
|
|
168
|
+
layout:
|
|
169
|
+
flex: 0 0 auto
|
|
170
|
+
properties:
|
|
171
|
+
arrow: false
|
|
172
|
+
disabledAlpha: true
|
|
173
|
+
disabledFormat: true
|
|
174
|
+
showText: true
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
```yaml
|
|
178
|
+
- id: mode_default
|
|
179
|
+
type: ColorSelector
|
|
180
|
+
layout:
|
|
181
|
+
flex: 0 0 auto
|
|
182
|
+
properties:
|
|
183
|
+
showText: true
|
|
184
|
+
- id: mode_single
|
|
185
|
+
type: ColorSelector
|
|
186
|
+
layout:
|
|
187
|
+
flex: 0 0 auto
|
|
188
|
+
properties:
|
|
189
|
+
mode: single
|
|
190
|
+
showText: true
|
|
191
|
+
- id: mode_gradient
|
|
192
|
+
type: ColorSelector
|
|
193
|
+
layout:
|
|
194
|
+
flex: 0 0 auto
|
|
195
|
+
properties:
|
|
196
|
+
mode: gradient
|
|
197
|
+
showText: true
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**Top:**
|
|
201
|
+
|
|
202
|
+
**Top Left:**
|
|
203
|
+
|
|
204
|
+
**Top Right:**
|
|
205
|
+
|
|
206
|
+
**Bottom:**
|
|
207
|
+
|
|
208
|
+
**Bottom Left:**
|
|
209
|
+
|
|
210
|
+
```yaml
|
|
211
|
+
- id: placement_top_label
|
|
212
|
+
type: Markdown
|
|
213
|
+
properties:
|
|
214
|
+
content: "**Top:**"
|
|
215
|
+
- id: placement_top
|
|
216
|
+
type: ColorSelector
|
|
217
|
+
layout:
|
|
218
|
+
flex: 0 0 auto
|
|
219
|
+
properties:
|
|
220
|
+
placement: top
|
|
221
|
+
- id: placement_topLeft_label
|
|
222
|
+
type: Markdown
|
|
223
|
+
properties:
|
|
224
|
+
content: "**Top Left:**"
|
|
225
|
+
- id: placement_topLeft
|
|
226
|
+
type: ColorSelector
|
|
227
|
+
layout:
|
|
228
|
+
flex: 0 0 auto
|
|
229
|
+
properties:
|
|
230
|
+
placement: topLeft
|
|
231
|
+
- id: placement_topRight_label
|
|
232
|
+
type: Markdown
|
|
233
|
+
properties:
|
|
234
|
+
content: "**Top Right:**"
|
|
235
|
+
- id: placement_topRight
|
|
236
|
+
type: ColorSelector
|
|
237
|
+
layout:
|
|
238
|
+
flex: 0 0 auto
|
|
239
|
+
properties:
|
|
240
|
+
placement: topRight
|
|
241
|
+
- id: placement_bottom_label
|
|
242
|
+
type: Markdown
|
|
243
|
+
properties:
|
|
244
|
+
content: "**Bottom:**"
|
|
245
|
+
- id: placement_bottom
|
|
246
|
+
type: ColorSelector
|
|
247
|
+
layout:
|
|
248
|
+
flex: 0 0 auto
|
|
249
|
+
properties:
|
|
250
|
+
placement: bottom
|
|
251
|
+
- id: placement_bottomLeft_label
|
|
252
|
+
type: Markdown
|
|
253
|
+
properties:
|
|
254
|
+
content: "**Bottom Left:**"
|
|
255
|
+
- id: placement_bottomLeft
|
|
256
|
+
type: ColorSelector
|
|
257
|
+
layout:
|
|
258
|
+
flex: 0 0 auto
|
|
259
|
+
properties:
|
|
260
|
+
placement: bottomLeft
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
```yaml
|
|
264
|
+
- id: presets_brand
|
|
265
|
+
type: ColorSelector
|
|
266
|
+
layout:
|
|
267
|
+
flex: 0 0 auto
|
|
268
|
+
properties:
|
|
269
|
+
showText: true
|
|
270
|
+
presets:
|
|
271
|
+
- label: Brand
|
|
272
|
+
colors:
|
|
273
|
+
- "#1677ff"
|
|
274
|
+
- "#13c2c2"
|
|
275
|
+
- "#52c41a"
|
|
276
|
+
- "#faad14"
|
|
277
|
+
- "#f5222d"
|
|
278
|
+
- "#722ed1"
|
|
279
|
+
- label: Neutral
|
|
280
|
+
colors:
|
|
281
|
+
- "#000000"
|
|
282
|
+
- "#333333"
|
|
283
|
+
- "#666666"
|
|
284
|
+
- "#999999"
|
|
285
|
+
- "#cccccc"
|
|
286
|
+
- "#ffffff"
|
|
287
|
+
- id: presets_extended
|
|
288
|
+
type: ColorSelector
|
|
289
|
+
layout:
|
|
290
|
+
flex: 0 0 auto
|
|
291
|
+
properties:
|
|
292
|
+
showText: true
|
|
293
|
+
presets:
|
|
294
|
+
- label: Red
|
|
295
|
+
colors:
|
|
296
|
+
- "#fff1f0"
|
|
297
|
+
- "#ffa39e"
|
|
298
|
+
- "#ff4d4f"
|
|
299
|
+
- "#cf1322"
|
|
300
|
+
- "#820014"
|
|
301
|
+
- label: Blue
|
|
302
|
+
colors:
|
|
303
|
+
- "#e6f4ff"
|
|
304
|
+
- "#91caff"
|
|
305
|
+
- "#4096ff"
|
|
306
|
+
- "#0958d9"
|
|
307
|
+
- "#002c8c"
|
|
308
|
+
- label: Green
|
|
309
|
+
colors:
|
|
310
|
+
- "#f6ffed"
|
|
311
|
+
- "#b7eb8f"
|
|
312
|
+
- "#52c41a"
|
|
313
|
+
- "#389e0d"
|
|
314
|
+
- "#135200"
|
|
315
|
+
- label: Gold
|
|
316
|
+
colors:
|
|
317
|
+
- "#fffbe6"
|
|
318
|
+
- "#ffe58f"
|
|
319
|
+
- "#faad14"
|
|
320
|
+
- "#d48806"
|
|
321
|
+
- "#874d00"
|
|
322
|
+
- label: Purple
|
|
323
|
+
colors:
|
|
324
|
+
- "#f9f0ff"
|
|
325
|
+
- "#d3adf7"
|
|
326
|
+
- "#722ed1"
|
|
327
|
+
- "#531dab"
|
|
328
|
+
- "#22075e"
|
|
329
|
+
- id: presets_status
|
|
330
|
+
type: ColorSelector
|
|
331
|
+
layout:
|
|
332
|
+
flex: 0 0 auto
|
|
333
|
+
properties:
|
|
334
|
+
showText: true
|
|
335
|
+
presets:
|
|
336
|
+
- label: Status
|
|
337
|
+
colors:
|
|
338
|
+
- "#52c41a"
|
|
339
|
+
- "#faad14"
|
|
340
|
+
- "#f5222d"
|
|
341
|
+
- "#1677ff"
|
|
342
|
+
- "#722ed1"
|
|
343
|
+
- "#eb2f96"
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
**Click trigger (default):**
|
|
347
|
+
|
|
348
|
+
**Hover trigger:**
|
|
349
|
+
|
|
350
|
+
```yaml
|
|
351
|
+
- id: trigger_click_label
|
|
352
|
+
type: Markdown
|
|
353
|
+
properties:
|
|
354
|
+
content: "**Click trigger (default):**"
|
|
355
|
+
- id: trigger_click
|
|
356
|
+
type: ColorSelector
|
|
357
|
+
layout:
|
|
358
|
+
flex: 0 0 auto
|
|
359
|
+
properties:
|
|
360
|
+
trigger: click
|
|
361
|
+
showText: true
|
|
362
|
+
- id: trigger_hover_label
|
|
363
|
+
type: Markdown
|
|
364
|
+
properties:
|
|
365
|
+
content: "**Hover trigger:**"
|
|
366
|
+
- id: trigger_hover
|
|
367
|
+
type: ColorSelector
|
|
368
|
+
layout:
|
|
369
|
+
flex: 0 0 auto
|
|
370
|
+
properties:
|
|
371
|
+
trigger: hover
|
|
372
|
+
showText: true
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
```yaml
|
|
376
|
+
- id: disabled_basic
|
|
377
|
+
type: ColorSelector
|
|
378
|
+
layout:
|
|
379
|
+
flex: 0 0 auto
|
|
380
|
+
properties:
|
|
381
|
+
disabled: true
|
|
382
|
+
- id: disabled_with_text
|
|
383
|
+
type: ColorSelector
|
|
384
|
+
layout:
|
|
385
|
+
flex: 0 0 auto
|
|
386
|
+
properties:
|
|
387
|
+
disabled: true
|
|
388
|
+
showText: true
|
|
389
|
+
- id: disabled_small
|
|
390
|
+
type: ColorSelector
|
|
391
|
+
layout:
|
|
392
|
+
flex: 0 0 auto
|
|
393
|
+
properties:
|
|
394
|
+
disabled: true
|
|
395
|
+
size: small
|
|
396
|
+
- id: disabled_large
|
|
397
|
+
type: ColorSelector
|
|
398
|
+
layout:
|
|
399
|
+
flex: 0 0 auto
|
|
400
|
+
properties:
|
|
401
|
+
disabled: true
|
|
402
|
+
size: large
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
```yaml
|
|
406
|
+
- id: label_basic
|
|
407
|
+
type: ColorSelector
|
|
408
|
+
properties:
|
|
409
|
+
label:
|
|
410
|
+
title: Pick a color
|
|
411
|
+
- id: label_inline
|
|
412
|
+
type: ColorSelector
|
|
413
|
+
properties:
|
|
414
|
+
label:
|
|
415
|
+
title: Theme color
|
|
416
|
+
inline: true
|
|
417
|
+
showText: true
|
|
418
|
+
- id: label_colon
|
|
419
|
+
type: ColorSelector
|
|
420
|
+
properties:
|
|
421
|
+
label:
|
|
422
|
+
title: Background
|
|
423
|
+
colon: true
|
|
424
|
+
showText: true
|
|
425
|
+
- id: label_extra
|
|
426
|
+
type: ColorSelector
|
|
427
|
+
properties:
|
|
428
|
+
label:
|
|
429
|
+
title: Brand primary
|
|
430
|
+
extra: Select your primary brand color
|
|
431
|
+
showText: true
|
|
432
|
+
- id: label_disabled
|
|
433
|
+
type: ColorSelector
|
|
434
|
+
properties:
|
|
435
|
+
label:
|
|
436
|
+
title: Disabled picker
|
|
437
|
+
disabled: true
|
|
438
|
+
disabled: true
|
|
439
|
+
showText: true
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
```yaml
|
|
443
|
+
- id: style_border
|
|
444
|
+
type: ColorSelector
|
|
445
|
+
layout:
|
|
446
|
+
flex: 0 0 auto
|
|
447
|
+
style:
|
|
448
|
+
.element:
|
|
449
|
+
border: 2px solid
|
|
450
|
+
borderRadius: 8px
|
|
451
|
+
properties:
|
|
452
|
+
showText: true
|
|
453
|
+
- id: style_shadow
|
|
454
|
+
type: ColorSelector
|
|
455
|
+
layout:
|
|
456
|
+
flex: 0 0 auto
|
|
457
|
+
style:
|
|
458
|
+
.element:
|
|
459
|
+
boxShadow: 0 2px 8px rgba(0, 0, 0, 0.15)
|
|
460
|
+
borderRadius: 8px
|
|
461
|
+
properties:
|
|
462
|
+
showText: true
|
|
463
|
+
- id: style_tailwind
|
|
464
|
+
type: ColorSelector
|
|
465
|
+
layout:
|
|
466
|
+
flex: 0 0 auto
|
|
467
|
+
properties:
|
|
468
|
+
showText: true
|
|
469
|
+
class: rounded-lg shadow-sm
|
|
470
|
+
- id: style_large_swatch
|
|
471
|
+
type: ColorSelector
|
|
472
|
+
layout:
|
|
473
|
+
flex: 0 0 auto
|
|
474
|
+
style:
|
|
475
|
+
.element:
|
|
476
|
+
transform: scale(1.5)
|
|
477
|
+
transformOrigin: left center
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
**Full-featured picker:**
|
|
481
|
+
|
|
482
|
+
**Minimal picker:**
|
|
483
|
+
|
|
484
|
+
**Text with no alpha:**
|
|
485
|
+
|
|
486
|
+
**Gradient mode with presets:**
|
|
487
|
+
|
|
488
|
+
```yaml
|
|
489
|
+
- id: combined_full_label
|
|
490
|
+
type: Markdown
|
|
491
|
+
properties:
|
|
492
|
+
content: "**Full-featured picker:**"
|
|
493
|
+
- id: combined_full
|
|
494
|
+
type: ColorSelector
|
|
495
|
+
layout:
|
|
496
|
+
flex: 0 0 auto
|
|
497
|
+
properties:
|
|
498
|
+
showText: true
|
|
499
|
+
format: hex
|
|
500
|
+
allowClear: true
|
|
501
|
+
size: large
|
|
502
|
+
presets:
|
|
503
|
+
- label: Recommended
|
|
504
|
+
colors:
|
|
505
|
+
- "#1677ff"
|
|
506
|
+
- "#52c41a"
|
|
507
|
+
- "#faad14"
|
|
508
|
+
- "#f5222d"
|
|
509
|
+
- "#722ed1"
|
|
510
|
+
- "#13c2c2"
|
|
511
|
+
- id: combined_minimal_label
|
|
512
|
+
type: Markdown
|
|
513
|
+
properties:
|
|
514
|
+
content: "**Minimal picker:**"
|
|
515
|
+
- id: combined_minimal
|
|
516
|
+
type: ColorSelector
|
|
517
|
+
layout:
|
|
518
|
+
flex: 0 0 auto
|
|
519
|
+
properties:
|
|
520
|
+
size: small
|
|
521
|
+
disabledAlpha: true
|
|
522
|
+
disabledFormat: true
|
|
523
|
+
arrow: false
|
|
524
|
+
- id: combined_text_no_alpha_label
|
|
525
|
+
type: Markdown
|
|
526
|
+
properties:
|
|
527
|
+
content: "**Text with no alpha:**"
|
|
528
|
+
- id: combined_text_no_alpha
|
|
529
|
+
type: ColorSelector
|
|
530
|
+
layout:
|
|
531
|
+
flex: 0 0 auto
|
|
532
|
+
properties:
|
|
533
|
+
showText: true
|
|
534
|
+
format: rgb
|
|
535
|
+
disabledAlpha: true
|
|
536
|
+
- id: combined_gradient_presets_label
|
|
537
|
+
type: Markdown
|
|
538
|
+
properties:
|
|
539
|
+
content: "**Gradient mode with presets:**"
|
|
540
|
+
- id: combined_gradient_presets
|
|
541
|
+
type: ColorSelector
|
|
542
|
+
layout:
|
|
543
|
+
flex: 0 0 auto
|
|
544
|
+
properties:
|
|
545
|
+
mode: gradient
|
|
546
|
+
showText: true
|
|
547
|
+
size: large
|
|
548
|
+
presets:
|
|
549
|
+
- label: Gradients
|
|
550
|
+
colors:
|
|
551
|
+
- "#ff4d4f"
|
|
552
|
+
- "#ff7a45"
|
|
553
|
+
- "#ffa940"
|
|
554
|
+
- "#ffc53d"
|
|
555
|
+
- "#ffec3d"
|
|
556
|
+
- "#bae637"
|
|
557
|
+
- "#73d13d"
|
|
558
|
+
- "#36cfc9"
|
|
559
|
+
- "#40a9ff"
|
|
560
|
+
- "#597ef7"
|
|
561
|
+
- "#9254de"
|
|
562
|
+
- "#f759ab"
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
```yaml
|
|
566
|
+
- id: multi_row
|
|
567
|
+
type: Box
|
|
568
|
+
layout:
|
|
569
|
+
gap: 12
|
|
570
|
+
blocks:
|
|
571
|
+
- id: multi_primary
|
|
572
|
+
type: ColorSelector
|
|
573
|
+
layout:
|
|
574
|
+
flex: 0 0 auto
|
|
575
|
+
- id: multi_success
|
|
576
|
+
type: ColorSelector
|
|
577
|
+
layout:
|
|
578
|
+
flex: 0 0 auto
|
|
579
|
+
- id: multi_warning
|
|
580
|
+
type: ColorSelector
|
|
581
|
+
layout:
|
|
582
|
+
flex: 0 0 auto
|
|
583
|
+
- id: multi_error
|
|
584
|
+
type: ColorSelector
|
|
585
|
+
layout:
|
|
586
|
+
flex: 0 0 auto
|
|
587
|
+
- id: multi_info
|
|
588
|
+
type: ColorSelector
|
|
589
|
+
layout:
|
|
590
|
+
flex: 0 0 auto
|
|
591
|
+
- id: multi_purple
|
|
592
|
+
type: ColorSelector
|
|
593
|
+
layout:
|
|
594
|
+
flex: 0 0 auto
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
```yaml
|
|
598
|
+
- id: theme_large_handler
|
|
599
|
+
type: ColorSelector
|
|
600
|
+
layout:
|
|
601
|
+
flex: 0 0 auto
|
|
602
|
+
properties:
|
|
603
|
+
showText: true
|
|
604
|
+
theme:
|
|
605
|
+
colorPickerHandlerSize: 24
|
|
606
|
+
colorPickerSliderHeight: 12
|
|
607
|
+
- id: theme_wide_picker
|
|
608
|
+
type: ColorSelector
|
|
609
|
+
layout:
|
|
610
|
+
flex: 0 0 auto
|
|
611
|
+
properties:
|
|
612
|
+
showText: true
|
|
613
|
+
theme:
|
|
614
|
+
colorPickerWidth: 300
|
|
615
|
+
- id: theme_large_presets
|
|
616
|
+
type: ColorSelector
|
|
617
|
+
layout:
|
|
618
|
+
flex: 0 0 auto
|
|
619
|
+
properties:
|
|
620
|
+
showText: true
|
|
621
|
+
theme:
|
|
622
|
+
colorPickerPresetColorSize: 32
|
|
623
|
+
presets:
|
|
624
|
+
- label: Custom
|
|
625
|
+
colors:
|
|
626
|
+
- "#1677ff"
|
|
627
|
+
- "#52c41a"
|
|
628
|
+
- "#faad14"
|
|
629
|
+
- "#f5222d"
|
|
630
|
+
- "#722ed1"
|
|
631
|
+
- "#13c2c2"
|
|
632
|
+
- id: theme_custom_border_radius
|
|
633
|
+
type: ColorSelector
|
|
634
|
+
layout:
|
|
635
|
+
flex: 0 0 auto
|
|
636
|
+
properties:
|
|
637
|
+
showText: true
|
|
638
|
+
theme:
|
|
639
|
+
borderRadius: 16
|
|
640
|
+
- id: theme_combined
|
|
641
|
+
type: ColorSelector
|
|
642
|
+
layout:
|
|
643
|
+
flex: 0 0 auto
|
|
644
|
+
properties:
|
|
645
|
+
showText: true
|
|
646
|
+
size: large
|
|
647
|
+
theme:
|
|
648
|
+
colorPickerWidth: 280
|
|
649
|
+
colorPickerHandlerSize: 20
|
|
650
|
+
colorPickerSliderHeight: 10
|
|
651
|
+
colorPickerPresetColorSize: 28
|
|
652
|
+
borderRadius: 12
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
```yaml
|
|
656
|
+
- id: applied_theme_editor_card
|
|
657
|
+
type: Card
|
|
658
|
+
properties:
|
|
659
|
+
title: Brand Theme Settings
|
|
660
|
+
blocks:
|
|
661
|
+
- id: applied_theme_brand_name
|
|
662
|
+
type: TextInput
|
|
663
|
+
properties:
|
|
664
|
+
title: Brand Name
|
|
665
|
+
placeholder: Enter your brand name
|
|
666
|
+
- id: applied_theme_primary_color
|
|
667
|
+
type: ColorSelector
|
|
668
|
+
properties:
|
|
669
|
+
title: Primary Color
|
|
670
|
+
showText: true
|
|
671
|
+
format: hex
|
|
672
|
+
disabledAlpha: true
|
|
673
|
+
label:
|
|
674
|
+
extra: Used for buttons, links, and active elements
|
|
675
|
+
presets:
|
|
676
|
+
- label: Popular
|
|
677
|
+
colors:
|
|
678
|
+
- "#1677ff"
|
|
679
|
+
- "#52c41a"
|
|
680
|
+
- "#faad14"
|
|
681
|
+
- "#f5222d"
|
|
682
|
+
- "#722ed1"
|
|
683
|
+
- "#13c2c2"
|
|
684
|
+
events:
|
|
685
|
+
onMount:
|
|
686
|
+
- id: set_primary_color
|
|
687
|
+
type: SetState
|
|
688
|
+
params:
|
|
689
|
+
applied_theme_primary_color: "#1677ff"
|
|
690
|
+
onChange:
|
|
691
|
+
- id: primary_color_change
|
|
692
|
+
type: DisplayMessage
|
|
693
|
+
params:
|
|
694
|
+
content:
|
|
695
|
+
_string.concat:
|
|
696
|
+
- "Primary color updated to "
|
|
697
|
+
- _state: applied_theme_primary_color
|
|
698
|
+
duration: 1
|
|
699
|
+
- id: applied_theme_secondary_color
|
|
700
|
+
type: ColorSelector
|
|
701
|
+
properties:
|
|
702
|
+
title: Secondary Color
|
|
703
|
+
showText: true
|
|
704
|
+
format: hex
|
|
705
|
+
disabledAlpha: true
|
|
706
|
+
label:
|
|
707
|
+
extra: Used for backgrounds and secondary actions
|
|
708
|
+
presets:
|
|
709
|
+
- label: Popular
|
|
710
|
+
colors:
|
|
711
|
+
- "#f0f5ff"
|
|
712
|
+
- "#f6ffed"
|
|
713
|
+
- "#fffbe6"
|
|
714
|
+
- "#fff2f0"
|
|
715
|
+
- "#f9f0ff"
|
|
716
|
+
- "#e6fffb"
|
|
717
|
+
events:
|
|
718
|
+
onMount:
|
|
719
|
+
- id: set_secondary_color
|
|
720
|
+
type: SetState
|
|
721
|
+
params:
|
|
722
|
+
applied_theme_secondary_color: "#f0f5ff"
|
|
723
|
+
- id: applied_theme_save_btn
|
|
724
|
+
type: Button
|
|
725
|
+
properties:
|
|
726
|
+
title: Save Theme
|
|
727
|
+
type: primary
|
|
728
|
+
icon: AiOutlineSave
|
|
729
|
+
events:
|
|
730
|
+
onClick:
|
|
731
|
+
- id: theme_save_action
|
|
732
|
+
type: DisplayMessage
|
|
733
|
+
params:
|
|
734
|
+
content: Brand theme saved successfully
|
|
735
|
+
status: success
|
|
736
|
+
- id: theme_set_global
|
|
737
|
+
type: SetGlobal
|
|
738
|
+
params:
|
|
739
|
+
primaryColor:
|
|
740
|
+
_state: applied_theme_primary_color
|
|
741
|
+
secondaryColor:
|
|
742
|
+
_state: applied_theme_secondary_color
|
|
743
|
+
```
|
|
744
|
+
|
|
745
|
+
```yaml
|
|
746
|
+
- id: applied_product_card
|
|
747
|
+
type: Card
|
|
748
|
+
properties:
|
|
749
|
+
title: Customize Your Product
|
|
750
|
+
blocks:
|
|
751
|
+
- id: applied_product_name
|
|
752
|
+
type: TextInput
|
|
753
|
+
properties:
|
|
754
|
+
title: Product Name
|
|
755
|
+
placeholder: e.g. Custom T-Shirt
|
|
756
|
+
- id: applied_product_body_color
|
|
757
|
+
type: ColorSelector
|
|
758
|
+
properties:
|
|
759
|
+
title: Body Color
|
|
760
|
+
showText: true
|
|
761
|
+
size: large
|
|
762
|
+
disabledAlpha: true
|
|
763
|
+
presets:
|
|
764
|
+
- label: Available Colors
|
|
765
|
+
colors:
|
|
766
|
+
- "#ffffff"
|
|
767
|
+
- "#000000"
|
|
768
|
+
- "#1a3c6e"
|
|
769
|
+
- "#8b0000"
|
|
770
|
+
- "#2e8b57"
|
|
771
|
+
- "#daa520"
|
|
772
|
+
events:
|
|
773
|
+
onMount:
|
|
774
|
+
- id: set_body_color
|
|
775
|
+
type: SetState
|
|
776
|
+
params:
|
|
777
|
+
applied_product_body_color: "#1a3c6e"
|
|
778
|
+
onChange:
|
|
779
|
+
- id: body_color_change
|
|
780
|
+
type: SetState
|
|
781
|
+
params:
|
|
782
|
+
product_body_color:
|
|
783
|
+
_state: applied_product_body_color
|
|
784
|
+
- id: applied_product_accent_color
|
|
785
|
+
type: ColorSelector
|
|
786
|
+
properties:
|
|
787
|
+
title: Accent Color
|
|
788
|
+
showText: true
|
|
789
|
+
size: large
|
|
790
|
+
disabledAlpha: true
|
|
791
|
+
presets:
|
|
792
|
+
- label: Available Colors
|
|
793
|
+
colors:
|
|
794
|
+
- "#ff4d4f"
|
|
795
|
+
- "#ff7a45"
|
|
796
|
+
- "#ffc53d"
|
|
797
|
+
- "#52c41a"
|
|
798
|
+
- "#1677ff"
|
|
799
|
+
- "#722ed1"
|
|
800
|
+
events:
|
|
801
|
+
onMount:
|
|
802
|
+
- id: set_accent_color
|
|
803
|
+
type: SetState
|
|
804
|
+
params:
|
|
805
|
+
applied_product_accent_color: "#ff4d4f"
|
|
806
|
+
- id: applied_product_quantity
|
|
807
|
+
type: NumberInput
|
|
808
|
+
properties:
|
|
809
|
+
title: Quantity
|
|
810
|
+
min: 1
|
|
811
|
+
max: 100
|
|
812
|
+
- id: applied_product_add_to_cart
|
|
813
|
+
type: Button
|
|
814
|
+
properties:
|
|
815
|
+
title: Add to Cart
|
|
816
|
+
type: primary
|
|
817
|
+
icon: AiOutlineShoppingCart
|
|
818
|
+
events:
|
|
819
|
+
onClick:
|
|
820
|
+
- id: add_to_cart_action
|
|
821
|
+
type: DisplayMessage
|
|
822
|
+
params:
|
|
823
|
+
content:
|
|
824
|
+
_string.concat:
|
|
825
|
+
- "Added to cart with body color "
|
|
826
|
+
- _state: applied_product_body_color
|
|
827
|
+
- " and accent color "
|
|
828
|
+
- _state: applied_product_accent_color
|
|
829
|
+
status: success
|
|
830
|
+
```
|
|
831
|
+
|
|
832
|
+
| Property | Type | Default | Description |
|
|
833
|
+
| --- | --- | --- | --- |
|
|
834
|
+
| `format` | string | - | Color format. Enum: `rgb`, `hex`, `hsb`. |
|
|
835
|
+
| `showText` | boolean | - | Show color text. |
|
|
836
|
+
| `size` | string | - | Size of the color picker. Enum: `small`, `middle`, `large`. |
|
|
837
|
+
| `disabled` | boolean | `false` | Disable the color picker. |
|
|
838
|
+
| `allowClear` | boolean | `false` | Allow the user to clear their input. |
|
|
839
|
+
| `arrow` | boolean | `true` | Show arrow on the color picker popup. |
|
|
840
|
+
| `disabledAlpha` | boolean | `false` | Disable the alpha channel slider. |
|
|
841
|
+
| `disabledFormat` | boolean | `false` | Disable the format selector. |
|
|
842
|
+
| `mode` | string | `"single"` | Color picker mode. Enum: `single`, `gradient`. |
|
|
843
|
+
| `open` | boolean | - | Controlled open state of the color picker popup. |
|
|
844
|
+
| `placement` | string | - | Placement of the color picker popup. Enum: `top`, `topLeft`, `topRight`, `bottom`, `bottomLeft`, `bottomRight`, `left`, `leftTop`, `leftBottom`, `right`, `rightTop`, `rightBottom`. |
|
|
845
|
+
| `presets` | array | - | Preset color palettes. |
|
|
846
|
+
| `trigger` | string | `"click"` | Trigger mode for the color picker popup. Enum: `hover`, `click`. |
|
|
847
|
+
| `theme` | object | - | Antd design token overrides for this block. See [antd design tokens](https://ant.design/components/overview#design-token). See [Ant Design color-picker tokens](https://ant.design/components/color-picker#design-token). |
|
|
848
|
+
| `theme.colorPickerWidth` | number | `234` | Width of the color picker panel. |
|
|
849
|
+
| `theme.colorPickerHandlerSize` | number | `16` | Size of the color picker handler (drag handle). |
|
|
850
|
+
| `theme.colorPickerHandlerSizeSM` | number | `12` | Size of the color picker handler for small size. |
|
|
851
|
+
| `theme.colorPickerSliderHeight` | number | `8` | Height of the color slider bar. |
|
|
852
|
+
| `theme.colorPickerPreviewSize` | number | - | Size of the color preview circle. Defaults to a calculated value based on slider height. |
|
|
853
|
+
| `theme.colorPickerAlphaInputWidth` | number | `44` | Width of the alpha input field. |
|
|
854
|
+
| `theme.colorPickerInputNumberHandleWidth` | number | `16` | Width of the input number handle in the color picker. |
|
|
855
|
+
| `theme.colorPickerPresetColorSize` | number | `24` | Size of preset color swatches. |
|
|
856
|
+
| `theme.colorPickerInsetShadow` | string | - | Inset shadow style for the color picker. |
|
|
857
|
+
| `theme.borderRadius` | number | `6` | Border radius of the color picker trigger. |
|
|
858
|
+
| `theme.colorPrimary` | string | - | Primary color used in the color picker panel. |
|
|
859
|
+
| `theme.colorText` | string | - | Text color in the color picker panel. |
|
|
860
|
+
| `theme.colorBgElevated` | string | - | Background color for the elevated popup panel. |
|
|
861
|
+
| `theme.fontSize` | number | `14` | Font size for text in the color picker. |
|
|
862
|
+
| `theme.lineWidth` | number | `1` | Border width. |
|
|
863
|
+
| `theme.controlHeight` | number | `32` | Height of the color picker trigger. |
|
|
864
|
+
| `theme.controlHeightLG` | number | `40` | Height of the color picker trigger for large size. |
|
|
865
|
+
| `theme.controlHeightSM` | number | `24` | Height of the color picker trigger for small size. |
|
|
866
|
+
|
|
867
|
+
| Event | Event Data | Description |
|
|
868
|
+
| --- | --- | --- |
|
|
869
|
+
| `onChange` | `{ value }` | Trigger actions when the color is changed. |
|
|
870
|
+
| `onChangeComplete` | `{ value }` | Trigger actions when the color change is complete. |
|
|
871
|
+
| `onClear` | \- | Trigger actions when the color is cleared. |
|
|
872
|
+
| `onFormatChange` | `{ format }` | Trigger actions when the color format is changed. |
|
|
873
|
+
| `onOpenChange` | `{ open }` | Trigger actions when the color picker popup open state changes. |
|
|
874
|
+
| `onTooltipClick` | \- | Trigger actions when the tooltip icon is clicked. |
|
|
875
|
+
|
|
876
|
+
| Key | Target |
|
|
877
|
+
| --- | --- |
|
|
878
|
+
| `/block` | Outer block wrapper (always available). |
|
|
879
|
+
| `/element` | The ColorSelector element. |
|
|
880
|
+
| `/label` | The ColorSelector label. |
|
|
881
|
+
| `/extra` | The ColorSelector extra content. |
|
|
882
|
+
| `/feedback` | The ColorSelector validation feedback. |
|
|
883
|
+
|
|
884
|
+
No slots defined.
|