@lowdefy/blocks-antd 5.6.0 → 6.0.0
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/dist/TagPillRow.js +88 -0
- package/dist/blocks/Affix/gallery.yaml +399 -0
- package/dist/blocks/Affix/tests/Affix.e2e.yaml +72 -0
- package/dist/blocks/Affix/tests.yaml +29 -0
- package/dist/blocks/Alert/gallery.yaml +701 -0
- package/dist/blocks/Alert/tests/Alert.e2e.yaml +161 -0
- package/dist/blocks/Alert/tests.yaml +261 -0
- package/dist/blocks/AutoComplete/gallery.yaml +713 -0
- package/dist/blocks/AutoComplete/tests/AutoComplete.e2e.yaml +330 -0
- package/dist/blocks/AutoComplete/tests.yaml +178 -0
- package/dist/blocks/Avatar/gallery.yaml +1037 -0
- package/dist/blocks/Avatar/tests/Avatar.e2e.yaml +125 -0
- package/dist/blocks/Avatar/tests.yaml +76 -0
- package/dist/blocks/Badge/gallery.yaml +1090 -0
- package/dist/blocks/Badge/tests/Badge.e2e.yaml +195 -0
- package/dist/blocks/Badge/tests.yaml +91 -0
- package/dist/blocks/Breadcrumb/gallery.yaml +484 -0
- package/dist/blocks/Breadcrumb/tests/Breadcrumb.e2e.yaml +165 -0
- package/dist/blocks/Breadcrumb/tests.yaml +106 -0
- package/dist/blocks/Button/gallery.yaml +718 -0
- package/dist/blocks/Button/tests/Button.e2e.yaml +246 -0
- package/dist/blocks/Button/tests.yaml +104 -0
- package/dist/blocks/ButtonSelector/gallery.yaml +891 -0
- package/dist/blocks/ButtonSelector/tests/ButtonSelector.e2e.yaml +188 -0
- package/dist/blocks/ButtonSelector/tests.yaml +167 -0
- package/dist/blocks/Calendar/gallery.yaml +128 -0
- package/dist/blocks/Calendar/tests/Calendar.e2e.yaml +136 -0
- package/dist/blocks/Calendar/tests.yaml +50 -0
- package/dist/blocks/Card/gallery.yaml +1035 -0
- package/dist/blocks/Card/tests/Card.e2e.yaml +209 -0
- package/dist/blocks/Card/tests.yaml +75 -0
- package/dist/blocks/Carousel/gallery.yaml +1971 -0
- package/dist/blocks/Carousel/tests/Carousel.e2e.yaml +211 -0
- package/dist/blocks/Carousel/tests.yaml +117 -0
- package/dist/blocks/CheckboxSelector/gallery.yaml +781 -0
- package/dist/blocks/CheckboxSelector/tests/CheckboxSelector.e2e.yaml +272 -0
- package/dist/blocks/CheckboxSelector/tests.yaml +325 -0
- package/dist/blocks/CheckboxSwitch/gallery.yaml +457 -0
- package/dist/blocks/CheckboxSwitch/tests/CheckboxSwitch.e2e.yaml +126 -0
- package/dist/blocks/CheckboxSwitch/tests.yaml +96 -0
- package/dist/blocks/Collapse/gallery.yaml +1079 -0
- package/dist/blocks/Collapse/tests/Collapse.e2e.yaml +206 -0
- package/dist/blocks/Collapse/tests.yaml +265 -0
- package/dist/blocks/ColorSelector/gallery.yaml +807 -0
- package/dist/blocks/ColorSelector/tests/ColorSelector.e2e.yaml +77 -0
- package/dist/blocks/ColorSelector/tests.yaml +84 -0
- package/dist/blocks/ConfigProvider/gallery.yaml +1003 -0
- package/dist/blocks/ConfigProvider/tests.yaml +62 -0
- package/dist/blocks/ConfirmModal/gallery.yaml +1043 -0
- package/dist/blocks/ConfirmModal/tests/ConfirmModal.e2e.yaml +410 -0
- package/dist/blocks/ConfirmModal/tests.yaml +95 -0
- package/dist/blocks/Content/gallery.yaml +528 -0
- package/dist/blocks/Content/tests/Content.e2e.yaml +71 -0
- package/dist/blocks/Content/tests.yaml +42 -0
- package/dist/blocks/ControlledList/ControlledList.js +1 -1
- package/dist/blocks/ControlledList/gallery.yaml +481 -0
- package/dist/blocks/ControlledList/{style.module.css → style.css} +3 -3
- package/dist/blocks/ControlledList/tests/ControlledList.e2e.yaml +161 -0
- package/dist/blocks/ControlledList/tests.yaml +57 -0
- package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -0
- package/dist/blocks/DateRangeSelector/e2e.js +28 -2
- package/dist/blocks/DateRangeSelector/gallery.yaml +858 -0
- package/dist/blocks/DateRangeSelector/meta.js +2 -0
- package/dist/blocks/DateRangeSelector/tests/DateRangeSelector.e2e.yaml +204 -0
- package/dist/blocks/DateRangeSelector/tests.yaml +129 -0
- package/dist/blocks/DateSelector/DateSelector.js +6 -0
- package/dist/blocks/DateSelector/e2e.js +28 -2
- package/dist/blocks/DateSelector/gallery.yaml +691 -0
- package/dist/blocks/DateSelector/meta.js +6 -0
- package/dist/blocks/DateSelector/tests/DateSelector.e2e.yaml +229 -0
- package/dist/blocks/DateSelector/tests.yaml +117 -0
- package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -0
- package/dist/blocks/DateTimeSelector/e2e.js +26 -2
- package/dist/blocks/DateTimeSelector/gallery.yaml +770 -0
- package/dist/blocks/DateTimeSelector/meta.js +2 -0
- package/dist/blocks/DateTimeSelector/tests/DateTimeSelector.e2e.yaml +163 -0
- package/dist/blocks/DateTimeSelector/tests.yaml +140 -0
- package/dist/blocks/Descriptions/gallery.yaml +839 -0
- package/dist/blocks/Descriptions/tests/Descriptions.e2e.yaml +143 -0
- package/dist/blocks/Descriptions/tests.yaml +256 -0
- package/dist/blocks/Divider/gallery.yaml +375 -0
- package/dist/blocks/Divider/tests/Divider.e2e.yaml +107 -0
- package/dist/blocks/Divider/tests.yaml +58 -0
- package/dist/blocks/Drawer/gallery.yaml +1257 -0
- package/dist/blocks/Drawer/tests/Drawer.e2e.yaml +562 -0
- package/dist/blocks/Drawer/tests.yaml +80 -0
- package/dist/blocks/DropdownButton/gallery.yaml +606 -0
- package/dist/blocks/DropdownButton/tests/DropdownButton.e2e.yaml +243 -0
- package/dist/blocks/DropdownMenu/gallery.yaml +578 -0
- package/dist/blocks/DropdownMenu/tests/DropdownMenu.e2e.yaml +267 -0
- package/dist/blocks/Flex/gallery.yaml +1416 -0
- package/dist/blocks/Flex/tests/Flex.e2e.yaml +95 -0
- package/dist/blocks/Flex/tests.yaml +92 -0
- package/dist/blocks/FloatButton/gallery.yaml +518 -0
- package/dist/blocks/FloatButton/tests/FloatButton.e2e.yaml +73 -0
- package/dist/blocks/FloatButton/tests.yaml +59 -0
- package/dist/blocks/Footer/gallery.yaml +355 -0
- package/dist/blocks/Footer/tests/Footer.e2e.yaml +70 -0
- package/dist/blocks/Footer/tests.yaml +28 -0
- package/dist/blocks/Header/gallery.yaml +249 -0
- package/dist/blocks/Header/tests/Header.e2e.yaml +77 -0
- package/dist/blocks/Header/tests.yaml +36 -0
- package/dist/blocks/Label/Label.js +1 -1
- package/dist/blocks/Label/gallery.yaml +762 -0
- package/dist/blocks/Label/{style.module.css → style.css} +28 -28
- package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
- package/dist/blocks/Label/tests.yaml +212 -0
- package/dist/blocks/Layout/gallery.yaml +548 -0
- package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
- package/dist/blocks/Layout/tests.yaml +28 -0
- package/dist/blocks/ListSelector/gallery.yaml +223 -0
- package/dist/blocks/Masonry/gallery.yaml +989 -0
- package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
- package/dist/blocks/Masonry/tests.yaml +42 -0
- package/dist/blocks/MasonryList/gallery.yaml +224 -0
- package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
- package/dist/blocks/MasonryList/tests.yaml +42 -0
- package/dist/blocks/Menu/gallery.yaml +974 -0
- package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
- package/dist/blocks/Menu/tests.yaml +1053 -0
- package/dist/blocks/Message/gallery.yaml +860 -0
- package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
- package/dist/blocks/Message/tests.yaml +54 -0
- package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
- package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
- package/dist/blocks/MobileMenu/tests.yaml +359 -0
- package/dist/blocks/Modal/gallery.yaml +1039 -0
- package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
- package/dist/blocks/Modal/tests.yaml +75 -0
- package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
- package/dist/blocks/MonthSelector/e2e.js +26 -2
- package/dist/blocks/MonthSelector/gallery.yaml +687 -0
- package/dist/blocks/MonthSelector/meta.js +6 -0
- package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
- package/dist/blocks/MonthSelector/tests.yaml +124 -0
- package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
- package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
- package/dist/blocks/MultipleSelector/tests.yaml +201 -0
- package/dist/blocks/Notification/gallery.yaml +1376 -0
- package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
- package/dist/blocks/Notification/tests.yaml +97 -0
- package/dist/blocks/NumberInput/gallery.yaml +753 -0
- package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
- package/dist/blocks/NumberInput/tests.yaml +116 -0
- package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
- package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
- package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
- package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
- package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
- package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
- package/dist/blocks/PageSidebarLayout/meta.js +1 -0
- package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
- package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
- package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
- package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
- package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
- package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
- package/dist/blocks/Pagination/gallery.yaml +503 -0
- package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
- package/dist/blocks/Pagination/tests.yaml +80 -0
- package/dist/blocks/Paragraph/gallery.yaml +458 -0
- package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
- package/dist/blocks/Paragraph/tests.yaml +176 -0
- package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
- package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
- package/dist/blocks/ParagraphInput/tests.yaml +163 -0
- package/dist/blocks/PasswordInput/gallery.yaml +420 -0
- package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
- package/dist/blocks/PasswordInput/tests.yaml +78 -0
- package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
- package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
- package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
- package/dist/blocks/Popover/gallery.yaml +1301 -0
- package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
- package/dist/blocks/Popover/tests.yaml +105 -0
- package/dist/blocks/Progress/gallery.yaml +772 -0
- package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
- package/dist/blocks/Progress/tests.yaml +114 -0
- package/dist/blocks/QRCode/gallery.yaml +492 -0
- package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
- package/dist/blocks/QRCode/tests.yaml +113 -0
- package/dist/blocks/RadioSelector/gallery.yaml +816 -0
- package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
- package/dist/blocks/RadioSelector/tests.yaml +339 -0
- package/dist/blocks/RatingSlider/gallery.yaml +627 -0
- package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
- package/dist/blocks/RatingSlider/tests.yaml +116 -0
- package/dist/blocks/Result/gallery.yaml +925 -0
- package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
- package/dist/blocks/Result/tests.yaml +75 -0
- package/dist/blocks/Search/Search.js +1 -1
- package/dist/blocks/Search/SearchModal.js +18 -9
- package/dist/blocks/Search/gallery.yaml +170 -0
- package/dist/blocks/Search/meta.js +2 -1
- package/dist/blocks/Search/{style.module.css → style.css} +19 -12
- package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
- package/dist/blocks/Search/useSearchIndex.js +24 -2
- package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
- package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
- package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
- package/dist/blocks/Selector/gallery.yaml +1055 -0
- package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
- package/dist/blocks/Selector/tests.yaml +196 -0
- package/dist/blocks/Sider/gallery.yaml +994 -0
- package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
- package/dist/blocks/Sider/tests.yaml +20 -0
- package/dist/blocks/Slider/gallery.yaml +600 -0
- package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
- package/dist/blocks/Slider/tests.yaml +68 -0
- package/dist/blocks/Splitter/gallery.yaml +1511 -0
- package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
- package/dist/blocks/Splitter/tests.yaml +79 -0
- package/dist/blocks/Statistic/gallery.yaml +460 -0
- package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
- package/dist/blocks/Statistic/tests.yaml +77 -0
- package/dist/blocks/Steps/gallery.yaml +550 -0
- package/dist/blocks/Switch/gallery.yaml +502 -0
- package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
- package/dist/blocks/Switch/tests.yaml +87 -0
- package/dist/blocks/Tabs/gallery.yaml +1353 -0
- package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
- package/dist/blocks/Tabs/tests.yaml +349 -0
- package/dist/blocks/Tag/gallery.yaml +598 -0
- package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
- package/dist/blocks/Tag/tests.yaml +51 -0
- package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
- package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
- package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
- package/dist/blocks/TagMultipleSelector/meta.js +91 -0
- package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
- package/dist/blocks/TagSelector/TagSelector.js +49 -0
- package/dist/blocks/TagSelector/e2e.js +36 -0
- package/dist/blocks/TagSelector/gallery.yaml +70 -0
- package/dist/blocks/TagSelector/meta.js +91 -0
- package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
- package/dist/blocks/TextArea/gallery.yaml +618 -0
- package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
- package/dist/blocks/TextArea/tests.yaml +100 -0
- package/dist/blocks/TextInput/gallery.yaml +560 -0
- package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
- package/dist/blocks/TextInput/tests.yaml +114 -0
- package/dist/blocks/TimelineList/gallery.yaml +431 -0
- package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
- package/dist/blocks/TimelineList/tests.yaml +251 -0
- package/dist/blocks/Title/gallery.yaml +483 -0
- package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
- package/dist/blocks/Title/tests.yaml +175 -0
- package/dist/blocks/TitleInput/gallery.yaml +1006 -0
- package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
- package/dist/blocks/TitleInput/tests.yaml +181 -0
- package/dist/blocks/Tooltip/gallery.yaml +1214 -0
- package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
- package/dist/blocks/Tooltip/tests.yaml +92 -0
- package/dist/blocks/Tour/gallery.yaml +2305 -0
- package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
- package/dist/blocks/Tour/tests.yaml +151 -0
- package/dist/blocks/TreeInput/gallery.yaml +78 -0
- package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
- package/dist/blocks/TreeInput/tests.yaml +140 -0
- package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
- package/dist/blocks/TreeSelector/gallery.yaml +81 -0
- package/dist/blocks/Watermark/gallery.yaml +479 -0
- package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
- package/dist/blocks/Watermark/tests.yaml +86 -0
- package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
- package/dist/blocks/WeekSelector/e2e.js +26 -2
- package/dist/blocks/WeekSelector/gallery.yaml +589 -0
- package/dist/blocks/WeekSelector/meta.js +6 -0
- package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
- package/dist/blocks/WeekSelector/tests.yaml +122 -0
- package/dist/blocks.js +2 -0
- package/dist/disabledDate.js +91 -19
- package/dist/e2e.js +2 -0
- package/dist/getPresets.js +151 -0
- package/dist/getTagColor.js +44 -0
- package/dist/getTagSelectorOptions.js +30 -0
- package/dist/metas.js +2 -0
- package/dist/pickerPresetsStyle.css +26 -0
- package/dist/schemas/disabledDates.js +6 -2
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/presets.js +111 -0
- package/dist/tagSelectorStyle.css +68 -0
- package/package.json +13 -13
|
@@ -0,0 +1,1003 @@
|
|
|
1
|
+
# Copyright 2020-2026 Lowdefy, Inc
|
|
2
|
+
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
- title: Custom Primary Color
|
|
16
|
+
fullWidth: true
|
|
17
|
+
blocks:
|
|
18
|
+
- id: cp_primary_color
|
|
19
|
+
type: ConfigProvider
|
|
20
|
+
properties:
|
|
21
|
+
token:
|
|
22
|
+
colorPrimary: '#722ed1'
|
|
23
|
+
blocks:
|
|
24
|
+
- id: cp_primary_row
|
|
25
|
+
type: Box
|
|
26
|
+
layout:
|
|
27
|
+
gap: 8
|
|
28
|
+
blocks:
|
|
29
|
+
- id: cp_primary_btn_solid
|
|
30
|
+
type: Button
|
|
31
|
+
layout:
|
|
32
|
+
flex: 0 0 auto
|
|
33
|
+
properties:
|
|
34
|
+
title: Solid
|
|
35
|
+
color: primary
|
|
36
|
+
variant: solid
|
|
37
|
+
- id: cp_primary_btn_outlined
|
|
38
|
+
type: Button
|
|
39
|
+
layout:
|
|
40
|
+
flex: 0 0 auto
|
|
41
|
+
properties:
|
|
42
|
+
title: Outlined
|
|
43
|
+
color: primary
|
|
44
|
+
variant: outlined
|
|
45
|
+
- id: cp_primary_btn_dashed
|
|
46
|
+
type: Button
|
|
47
|
+
layout:
|
|
48
|
+
flex: 0 0 auto
|
|
49
|
+
properties:
|
|
50
|
+
title: Dashed
|
|
51
|
+
color: primary
|
|
52
|
+
variant: dashed
|
|
53
|
+
- id: cp_primary_btn_text
|
|
54
|
+
type: Button
|
|
55
|
+
layout:
|
|
56
|
+
flex: 0 0 auto
|
|
57
|
+
properties:
|
|
58
|
+
title: Text
|
|
59
|
+
color: primary
|
|
60
|
+
variant: text
|
|
61
|
+
- id: cp_primary_btn_link
|
|
62
|
+
type: Button
|
|
63
|
+
layout:
|
|
64
|
+
flex: 0 0 auto
|
|
65
|
+
properties:
|
|
66
|
+
title: Link
|
|
67
|
+
color: primary
|
|
68
|
+
variant: link
|
|
69
|
+
- id: cp_primary_switch
|
|
70
|
+
type: Switch
|
|
71
|
+
properties:
|
|
72
|
+
label:
|
|
73
|
+
title: Purple themed switch
|
|
74
|
+
colon: false
|
|
75
|
+
- id: cp_primary_progress
|
|
76
|
+
type: Progress
|
|
77
|
+
properties:
|
|
78
|
+
percent: 65
|
|
79
|
+
|
|
80
|
+
- title: Dark Algorithm
|
|
81
|
+
fullWidth: true
|
|
82
|
+
blocks:
|
|
83
|
+
- id: cp_dark
|
|
84
|
+
type: ConfigProvider
|
|
85
|
+
properties:
|
|
86
|
+
algorithm: dark
|
|
87
|
+
blocks:
|
|
88
|
+
- id: cp_dark_box
|
|
89
|
+
type: Box
|
|
90
|
+
style:
|
|
91
|
+
padding: 24px
|
|
92
|
+
background: '#141414'
|
|
93
|
+
borderRadius: 8px
|
|
94
|
+
layout:
|
|
95
|
+
gap: 12
|
|
96
|
+
blocks:
|
|
97
|
+
- id: cp_dark_title
|
|
98
|
+
type: Title
|
|
99
|
+
properties:
|
|
100
|
+
content: Dark Mode
|
|
101
|
+
level: 4
|
|
102
|
+
- id: cp_dark_text
|
|
103
|
+
type: Paragraph
|
|
104
|
+
properties:
|
|
105
|
+
content: The dark algorithm inverts the color scheme for all child components. Backgrounds become dark and text becomes light automatically.
|
|
106
|
+
- id: cp_dark_btn_row
|
|
107
|
+
type: Box
|
|
108
|
+
layout:
|
|
109
|
+
gap: 8
|
|
110
|
+
blocks:
|
|
111
|
+
- id: cp_dark_btn1
|
|
112
|
+
type: Button
|
|
113
|
+
layout:
|
|
114
|
+
flex: 0 0 auto
|
|
115
|
+
properties:
|
|
116
|
+
title: Primary
|
|
117
|
+
color: primary
|
|
118
|
+
variant: solid
|
|
119
|
+
- id: cp_dark_btn2
|
|
120
|
+
type: Button
|
|
121
|
+
layout:
|
|
122
|
+
flex: 0 0 auto
|
|
123
|
+
properties:
|
|
124
|
+
title: Default
|
|
125
|
+
color: default
|
|
126
|
+
variant: outlined
|
|
127
|
+
- id: cp_dark_btn3
|
|
128
|
+
type: Button
|
|
129
|
+
layout:
|
|
130
|
+
flex: 0 0 auto
|
|
131
|
+
properties:
|
|
132
|
+
title: Danger
|
|
133
|
+
color: danger
|
|
134
|
+
variant: solid
|
|
135
|
+
- id: cp_dark_switch
|
|
136
|
+
type: Switch
|
|
137
|
+
properties:
|
|
138
|
+
label:
|
|
139
|
+
title: Dark switch
|
|
140
|
+
colon: false
|
|
141
|
+
|
|
142
|
+
- title: Compact Algorithm
|
|
143
|
+
fullWidth: true
|
|
144
|
+
blocks:
|
|
145
|
+
- id: cp_compact
|
|
146
|
+
type: ConfigProvider
|
|
147
|
+
properties:
|
|
148
|
+
algorithm: compact
|
|
149
|
+
blocks:
|
|
150
|
+
- id: cp_compact_row
|
|
151
|
+
type: Box
|
|
152
|
+
layout:
|
|
153
|
+
gap: 8
|
|
154
|
+
blocks:
|
|
155
|
+
- id: cp_compact_btn1
|
|
156
|
+
type: Button
|
|
157
|
+
layout:
|
|
158
|
+
flex: 0 0 auto
|
|
159
|
+
properties:
|
|
160
|
+
title: Compact Solid
|
|
161
|
+
color: primary
|
|
162
|
+
variant: solid
|
|
163
|
+
- id: cp_compact_btn2
|
|
164
|
+
type: Button
|
|
165
|
+
layout:
|
|
166
|
+
flex: 0 0 auto
|
|
167
|
+
properties:
|
|
168
|
+
title: Compact Outlined
|
|
169
|
+
color: primary
|
|
170
|
+
variant: outlined
|
|
171
|
+
- id: cp_compact_input
|
|
172
|
+
type: TextInput
|
|
173
|
+
properties:
|
|
174
|
+
label:
|
|
175
|
+
title: Compact input
|
|
176
|
+
colon: false
|
|
177
|
+
placeholder: Compact sized input
|
|
178
|
+
- id: cp_compact_text
|
|
179
|
+
type: Paragraph
|
|
180
|
+
properties:
|
|
181
|
+
content: The compact algorithm reduces padding and margins for denser layouts. Useful for data-heavy dashboards and admin panels.
|
|
182
|
+
|
|
183
|
+
- title: Combined Dark + Compact
|
|
184
|
+
fullWidth: true
|
|
185
|
+
blocks:
|
|
186
|
+
- id: cp_combined
|
|
187
|
+
type: ConfigProvider
|
|
188
|
+
properties:
|
|
189
|
+
algorithm:
|
|
190
|
+
- dark
|
|
191
|
+
- compact
|
|
192
|
+
blocks:
|
|
193
|
+
- id: cp_combined_box
|
|
194
|
+
type: Box
|
|
195
|
+
style:
|
|
196
|
+
padding: 24px
|
|
197
|
+
background: '#141414'
|
|
198
|
+
borderRadius: 8px
|
|
199
|
+
layout:
|
|
200
|
+
gap: 12
|
|
201
|
+
blocks:
|
|
202
|
+
- id: cp_combined_title
|
|
203
|
+
type: Title
|
|
204
|
+
properties:
|
|
205
|
+
content: Dark + Compact
|
|
206
|
+
level: 4
|
|
207
|
+
- id: cp_combined_text
|
|
208
|
+
type: Paragraph
|
|
209
|
+
properties:
|
|
210
|
+
content: Multiple algorithms can be combined by passing an array. Here dark and compact are used together for a dense dark-themed layout.
|
|
211
|
+
- id: cp_combined_btn_row
|
|
212
|
+
type: Box
|
|
213
|
+
layout:
|
|
214
|
+
gap: 8
|
|
215
|
+
blocks:
|
|
216
|
+
- id: cp_combined_btn1
|
|
217
|
+
type: Button
|
|
218
|
+
layout:
|
|
219
|
+
flex: 0 0 auto
|
|
220
|
+
properties:
|
|
221
|
+
title: Action
|
|
222
|
+
color: primary
|
|
223
|
+
variant: solid
|
|
224
|
+
- id: cp_combined_btn2
|
|
225
|
+
type: Button
|
|
226
|
+
layout:
|
|
227
|
+
flex: 0 0 auto
|
|
228
|
+
properties:
|
|
229
|
+
title: Cancel
|
|
230
|
+
color: default
|
|
231
|
+
variant: outlined
|
|
232
|
+
|
|
233
|
+
- title: Component Size
|
|
234
|
+
fullWidth: true
|
|
235
|
+
blocks:
|
|
236
|
+
- id: cp_size_small_label
|
|
237
|
+
type: Markdown
|
|
238
|
+
properties:
|
|
239
|
+
content: '**Small:**'
|
|
240
|
+
- id: cp_size_small
|
|
241
|
+
type: ConfigProvider
|
|
242
|
+
properties:
|
|
243
|
+
componentSize: small
|
|
244
|
+
blocks:
|
|
245
|
+
- id: cp_small_row
|
|
246
|
+
type: Box
|
|
247
|
+
layout:
|
|
248
|
+
gap: 8
|
|
249
|
+
blocks:
|
|
250
|
+
- id: cp_small_btn
|
|
251
|
+
type: Button
|
|
252
|
+
layout:
|
|
253
|
+
flex: 0 0 auto
|
|
254
|
+
properties:
|
|
255
|
+
title: Small Button
|
|
256
|
+
color: primary
|
|
257
|
+
variant: solid
|
|
258
|
+
- id: cp_small_input
|
|
259
|
+
type: TextInput
|
|
260
|
+
layout:
|
|
261
|
+
flex: 0 1 200px
|
|
262
|
+
properties:
|
|
263
|
+
placeholder: Small input
|
|
264
|
+
label:
|
|
265
|
+
disabled: true
|
|
266
|
+
- id: cp_size_middle_label
|
|
267
|
+
type: Markdown
|
|
268
|
+
properties:
|
|
269
|
+
content: '**Middle (default):**'
|
|
270
|
+
- id: cp_size_middle
|
|
271
|
+
type: ConfigProvider
|
|
272
|
+
properties:
|
|
273
|
+
componentSize: middle
|
|
274
|
+
blocks:
|
|
275
|
+
- id: cp_middle_row
|
|
276
|
+
type: Box
|
|
277
|
+
layout:
|
|
278
|
+
gap: 8
|
|
279
|
+
blocks:
|
|
280
|
+
- id: cp_middle_btn
|
|
281
|
+
type: Button
|
|
282
|
+
layout:
|
|
283
|
+
flex: 0 0 auto
|
|
284
|
+
properties:
|
|
285
|
+
title: Middle Button
|
|
286
|
+
color: primary
|
|
287
|
+
variant: solid
|
|
288
|
+
- id: cp_middle_input
|
|
289
|
+
type: TextInput
|
|
290
|
+
layout:
|
|
291
|
+
flex: 0 1 200px
|
|
292
|
+
properties:
|
|
293
|
+
placeholder: Middle input
|
|
294
|
+
label:
|
|
295
|
+
disabled: true
|
|
296
|
+
- id: cp_size_large_label
|
|
297
|
+
type: Markdown
|
|
298
|
+
properties:
|
|
299
|
+
content: '**Large:**'
|
|
300
|
+
- id: cp_size_large
|
|
301
|
+
type: ConfigProvider
|
|
302
|
+
properties:
|
|
303
|
+
componentSize: large
|
|
304
|
+
blocks:
|
|
305
|
+
- id: cp_large_row
|
|
306
|
+
type: Box
|
|
307
|
+
layout:
|
|
308
|
+
gap: 8
|
|
309
|
+
blocks:
|
|
310
|
+
- id: cp_large_btn
|
|
311
|
+
type: Button
|
|
312
|
+
layout:
|
|
313
|
+
flex: 0 0 auto
|
|
314
|
+
properties:
|
|
315
|
+
title: Large Button
|
|
316
|
+
color: primary
|
|
317
|
+
variant: solid
|
|
318
|
+
- id: cp_large_input
|
|
319
|
+
type: TextInput
|
|
320
|
+
layout:
|
|
321
|
+
flex: 0 1 200px
|
|
322
|
+
properties:
|
|
323
|
+
placeholder: Large input
|
|
324
|
+
label:
|
|
325
|
+
disabled: true
|
|
326
|
+
|
|
327
|
+
- title: Disabled All Components
|
|
328
|
+
fullWidth: true
|
|
329
|
+
blocks:
|
|
330
|
+
- id: cp_disabled
|
|
331
|
+
type: ConfigProvider
|
|
332
|
+
properties:
|
|
333
|
+
componentDisabled: true
|
|
334
|
+
blocks:
|
|
335
|
+
- id: cp_disabled_row
|
|
336
|
+
type: Box
|
|
337
|
+
layout:
|
|
338
|
+
gap: 8
|
|
339
|
+
blocks:
|
|
340
|
+
- id: cp_disabled_btn
|
|
341
|
+
type: Button
|
|
342
|
+
layout:
|
|
343
|
+
flex: 0 0 auto
|
|
344
|
+
properties:
|
|
345
|
+
title: Disabled Button
|
|
346
|
+
color: primary
|
|
347
|
+
variant: solid
|
|
348
|
+
- id: cp_disabled_btn2
|
|
349
|
+
type: Button
|
|
350
|
+
layout:
|
|
351
|
+
flex: 0 0 auto
|
|
352
|
+
properties:
|
|
353
|
+
title: Also Disabled
|
|
354
|
+
color: default
|
|
355
|
+
variant: outlined
|
|
356
|
+
- id: cp_disabled_switch
|
|
357
|
+
type: Switch
|
|
358
|
+
properties:
|
|
359
|
+
label:
|
|
360
|
+
title: Disabled switch
|
|
361
|
+
colon: false
|
|
362
|
+
- id: cp_disabled_input
|
|
363
|
+
type: TextInput
|
|
364
|
+
properties:
|
|
365
|
+
placeholder: Disabled input
|
|
366
|
+
label:
|
|
367
|
+
title: Disabled input
|
|
368
|
+
colon: false
|
|
369
|
+
- id: cp_disabled_text
|
|
370
|
+
type: Paragraph
|
|
371
|
+
properties:
|
|
372
|
+
content: Setting componentDisabled to true disables all interactive child components at once, without needing to set disabled on each individual component.
|
|
373
|
+
|
|
374
|
+
- title: RTL Direction
|
|
375
|
+
fullWidth: true
|
|
376
|
+
blocks:
|
|
377
|
+
- id: cp_rtl
|
|
378
|
+
type: ConfigProvider
|
|
379
|
+
properties:
|
|
380
|
+
direction: rtl
|
|
381
|
+
blocks:
|
|
382
|
+
- id: cp_rtl_row
|
|
383
|
+
type: Box
|
|
384
|
+
layout:
|
|
385
|
+
gap: 8
|
|
386
|
+
blocks:
|
|
387
|
+
- id: cp_rtl_btn
|
|
388
|
+
type: Button
|
|
389
|
+
layout:
|
|
390
|
+
flex: 0 0 auto
|
|
391
|
+
properties:
|
|
392
|
+
title: Right-to-Left
|
|
393
|
+
color: primary
|
|
394
|
+
variant: solid
|
|
395
|
+
icon: AiOutlineArrowLeft
|
|
396
|
+
- id: cp_rtl_input
|
|
397
|
+
type: TextInput
|
|
398
|
+
properties:
|
|
399
|
+
placeholder: RTL text input
|
|
400
|
+
label:
|
|
401
|
+
title: RTL Input
|
|
402
|
+
colon: false
|
|
403
|
+
- id: cp_rtl_text
|
|
404
|
+
type: Paragraph
|
|
405
|
+
properties:
|
|
406
|
+
content: Setting direction to rtl enables right-to-left layout for all child components. This is essential for languages like Arabic and Hebrew.
|
|
407
|
+
|
|
408
|
+
- title: Input Variant
|
|
409
|
+
fullWidth: true
|
|
410
|
+
blocks:
|
|
411
|
+
- id: cp_variant_outlined_label
|
|
412
|
+
type: Markdown
|
|
413
|
+
properties:
|
|
414
|
+
content: '**Outlined (default):**'
|
|
415
|
+
- id: cp_variant_outlined
|
|
416
|
+
type: ConfigProvider
|
|
417
|
+
properties:
|
|
418
|
+
variant: outlined
|
|
419
|
+
blocks:
|
|
420
|
+
- id: cp_vo_input
|
|
421
|
+
type: TextInput
|
|
422
|
+
properties:
|
|
423
|
+
placeholder: Outlined input
|
|
424
|
+
label:
|
|
425
|
+
title: Name
|
|
426
|
+
colon: false
|
|
427
|
+
- id: cp_variant_filled_label
|
|
428
|
+
type: Markdown
|
|
429
|
+
properties:
|
|
430
|
+
content: '**Filled:**'
|
|
431
|
+
- id: cp_variant_filled
|
|
432
|
+
type: ConfigProvider
|
|
433
|
+
properties:
|
|
434
|
+
variant: filled
|
|
435
|
+
blocks:
|
|
436
|
+
- id: cp_vf_input
|
|
437
|
+
type: TextInput
|
|
438
|
+
properties:
|
|
439
|
+
placeholder: Filled input
|
|
440
|
+
label:
|
|
441
|
+
title: Name
|
|
442
|
+
colon: false
|
|
443
|
+
- id: cp_variant_borderless_label
|
|
444
|
+
type: Markdown
|
|
445
|
+
properties:
|
|
446
|
+
content: '**Borderless:**'
|
|
447
|
+
- id: cp_variant_borderless
|
|
448
|
+
type: ConfigProvider
|
|
449
|
+
properties:
|
|
450
|
+
variant: borderless
|
|
451
|
+
blocks:
|
|
452
|
+
- id: cp_vb_input
|
|
453
|
+
type: TextInput
|
|
454
|
+
properties:
|
|
455
|
+
placeholder: Borderless input
|
|
456
|
+
label:
|
|
457
|
+
title: Name
|
|
458
|
+
colon: false
|
|
459
|
+
- id: cp_variant_underlined_label
|
|
460
|
+
type: Markdown
|
|
461
|
+
properties:
|
|
462
|
+
content: '**Underlined:**'
|
|
463
|
+
- id: cp_variant_underlined
|
|
464
|
+
type: ConfigProvider
|
|
465
|
+
properties:
|
|
466
|
+
variant: underlined
|
|
467
|
+
blocks:
|
|
468
|
+
- id: cp_vu_input
|
|
469
|
+
type: TextInput
|
|
470
|
+
properties:
|
|
471
|
+
placeholder: Underlined input
|
|
472
|
+
label:
|
|
473
|
+
title: Name
|
|
474
|
+
colon: false
|
|
475
|
+
|
|
476
|
+
- title: Component-Level Token Overrides
|
|
477
|
+
fullWidth: true
|
|
478
|
+
blocks:
|
|
479
|
+
- id: cp_components
|
|
480
|
+
type: ConfigProvider
|
|
481
|
+
properties:
|
|
482
|
+
components:
|
|
483
|
+
Button:
|
|
484
|
+
borderRadius: 20
|
|
485
|
+
controlHeight: 40
|
|
486
|
+
Input:
|
|
487
|
+
borderRadius: 20
|
|
488
|
+
blocks:
|
|
489
|
+
- id: cp_components_row
|
|
490
|
+
type: Box
|
|
491
|
+
layout:
|
|
492
|
+
gap: 8
|
|
493
|
+
blocks:
|
|
494
|
+
- id: cp_comp_btn
|
|
495
|
+
type: Button
|
|
496
|
+
layout:
|
|
497
|
+
flex: 0 0 auto
|
|
498
|
+
properties:
|
|
499
|
+
title: Pill Button
|
|
500
|
+
color: primary
|
|
501
|
+
variant: solid
|
|
502
|
+
- id: cp_comp_btn2
|
|
503
|
+
type: Button
|
|
504
|
+
layout:
|
|
505
|
+
flex: 0 0 auto
|
|
506
|
+
properties:
|
|
507
|
+
title: Also Pill
|
|
508
|
+
color: default
|
|
509
|
+
variant: outlined
|
|
510
|
+
- id: cp_comp_input
|
|
511
|
+
type: TextInput
|
|
512
|
+
properties:
|
|
513
|
+
placeholder: Rounded input
|
|
514
|
+
label:
|
|
515
|
+
title: Rounded input
|
|
516
|
+
colon: false
|
|
517
|
+
- id: cp_comp_text
|
|
518
|
+
type: Paragraph
|
|
519
|
+
properties:
|
|
520
|
+
content: The components property allows overriding design tokens at the component level. Here, Button and Input components have custom borderRadius applied without affecting other components.
|
|
521
|
+
|
|
522
|
+
- title: Custom Design Tokens
|
|
523
|
+
fullWidth: true
|
|
524
|
+
blocks:
|
|
525
|
+
- id: cp_tokens
|
|
526
|
+
type: ConfigProvider
|
|
527
|
+
properties:
|
|
528
|
+
token:
|
|
529
|
+
colorPrimary: '#fa541c'
|
|
530
|
+
fontSize: 16
|
|
531
|
+
borderRadius: 8
|
|
532
|
+
blocks:
|
|
533
|
+
- id: cp_tokens_card
|
|
534
|
+
type: Card
|
|
535
|
+
properties:
|
|
536
|
+
title: Custom Themed Card
|
|
537
|
+
blocks:
|
|
538
|
+
- id: cp_tokens_text
|
|
539
|
+
type: Paragraph
|
|
540
|
+
properties:
|
|
541
|
+
content: Global design tokens customize the look of all child components. This section uses a custom primary color (orange), larger font size, rounded borders, and a warm background color.
|
|
542
|
+
- id: cp_tokens_btn_row
|
|
543
|
+
type: Box
|
|
544
|
+
layout:
|
|
545
|
+
gap: 8
|
|
546
|
+
blocks:
|
|
547
|
+
- id: cp_tokens_btn1
|
|
548
|
+
type: Button
|
|
549
|
+
layout:
|
|
550
|
+
flex: 0 0 auto
|
|
551
|
+
properties:
|
|
552
|
+
title: Primary
|
|
553
|
+
color: primary
|
|
554
|
+
variant: solid
|
|
555
|
+
- id: cp_tokens_btn2
|
|
556
|
+
type: Button
|
|
557
|
+
layout:
|
|
558
|
+
flex: 0 0 auto
|
|
559
|
+
properties:
|
|
560
|
+
title: Outlined
|
|
561
|
+
color: primary
|
|
562
|
+
variant: outlined
|
|
563
|
+
- id: cp_tokens_input
|
|
564
|
+
type: TextInput
|
|
565
|
+
properties:
|
|
566
|
+
placeholder: Themed input
|
|
567
|
+
label:
|
|
568
|
+
title: Themed Input
|
|
569
|
+
colon: false
|
|
570
|
+
|
|
571
|
+
- title: Theme Property (antd Design Tokens)
|
|
572
|
+
fullWidth: true
|
|
573
|
+
blocks:
|
|
574
|
+
- id: cp_theme
|
|
575
|
+
type: ConfigProvider
|
|
576
|
+
properties:
|
|
577
|
+
theme:
|
|
578
|
+
colorPrimary: '#13c2c2'
|
|
579
|
+
colorInfo: '#13c2c2'
|
|
580
|
+
borderRadius: 12
|
|
581
|
+
blocks:
|
|
582
|
+
- id: cp_theme_card
|
|
583
|
+
type: Card
|
|
584
|
+
properties:
|
|
585
|
+
title: Theme Overrides via theme Property
|
|
586
|
+
blocks:
|
|
587
|
+
- id: cp_theme_text
|
|
588
|
+
type: Paragraph
|
|
589
|
+
properties:
|
|
590
|
+
content: The theme property provides antd design token overrides for this block and all its descendants. It works similarly to token but is applied at the block level through the antd theme system.
|
|
591
|
+
- id: cp_theme_btn_row
|
|
592
|
+
type: Box
|
|
593
|
+
layout:
|
|
594
|
+
gap: 8
|
|
595
|
+
blocks:
|
|
596
|
+
- id: cp_theme_btn1
|
|
597
|
+
type: Button
|
|
598
|
+
layout:
|
|
599
|
+
flex: 0 0 auto
|
|
600
|
+
properties:
|
|
601
|
+
title: Teal Primary
|
|
602
|
+
color: primary
|
|
603
|
+
variant: solid
|
|
604
|
+
- id: cp_theme_btn2
|
|
605
|
+
type: Button
|
|
606
|
+
layout:
|
|
607
|
+
flex: 0 0 auto
|
|
608
|
+
properties:
|
|
609
|
+
title: Teal Outlined
|
|
610
|
+
color: primary
|
|
611
|
+
variant: outlined
|
|
612
|
+
- id: cp_theme_switch
|
|
613
|
+
type: Switch
|
|
614
|
+
properties:
|
|
615
|
+
label:
|
|
616
|
+
title: Teal themed switch
|
|
617
|
+
colon: false
|
|
618
|
+
|
|
619
|
+
- title: Styled ConfigProvider (Tailwind CSS)
|
|
620
|
+
fullWidth: true
|
|
621
|
+
blocks:
|
|
622
|
+
- id: cp_styled_gradient
|
|
623
|
+
type: ConfigProvider
|
|
624
|
+
class: bg-gradient-to-r from-primary/10 to-primary/5 p-6 rounded-xl border border-border
|
|
625
|
+
properties:
|
|
626
|
+
token:
|
|
627
|
+
colorPrimary: '#6366f1'
|
|
628
|
+
blocks:
|
|
629
|
+
- id: cp_styled_gradient_title
|
|
630
|
+
type: Title
|
|
631
|
+
properties:
|
|
632
|
+
content: Styled Wrapper
|
|
633
|
+
level: 4
|
|
634
|
+
- id: cp_styled_gradient_text
|
|
635
|
+
type: Paragraph
|
|
636
|
+
properties:
|
|
637
|
+
content: Tailwind CSS classes can be applied to the ConfigProvider wrapper div using the class property. Here a gradient background with rounded corners wraps all themed children.
|
|
638
|
+
- id: cp_styled_gradient_row
|
|
639
|
+
type: Box
|
|
640
|
+
layout:
|
|
641
|
+
gap: 8
|
|
642
|
+
blocks:
|
|
643
|
+
- id: cp_styled_gradient_btn1
|
|
644
|
+
type: Button
|
|
645
|
+
layout:
|
|
646
|
+
flex: 0 0 auto
|
|
647
|
+
properties:
|
|
648
|
+
title: Indigo Action
|
|
649
|
+
color: primary
|
|
650
|
+
variant: solid
|
|
651
|
+
- id: cp_styled_gradient_btn2
|
|
652
|
+
type: Button
|
|
653
|
+
layout:
|
|
654
|
+
flex: 0 0 auto
|
|
655
|
+
properties:
|
|
656
|
+
title: Cancel
|
|
657
|
+
color: default
|
|
658
|
+
variant: outlined
|
|
659
|
+
|
|
660
|
+
- id: cp_styled_shadow
|
|
661
|
+
type: ConfigProvider
|
|
662
|
+
class: shadow-lg p-8 rounded-2xl bg-bg-container
|
|
663
|
+
properties:
|
|
664
|
+
token:
|
|
665
|
+
colorPrimary: '#059669'
|
|
666
|
+
blocks:
|
|
667
|
+
- id: cp_styled_shadow_title
|
|
668
|
+
type: Title
|
|
669
|
+
properties:
|
|
670
|
+
content: Elevated Section
|
|
671
|
+
level: 4
|
|
672
|
+
- id: cp_styled_shadow_text
|
|
673
|
+
type: Paragraph
|
|
674
|
+
properties:
|
|
675
|
+
content: A ConfigProvider with shadow and padding classes creates a visually distinct themed section on the page.
|
|
676
|
+
- id: cp_styled_shadow_btn
|
|
677
|
+
type: Button
|
|
678
|
+
layout:
|
|
679
|
+
flex: 0 0 auto
|
|
680
|
+
properties:
|
|
681
|
+
title: Confirm
|
|
682
|
+
color: primary
|
|
683
|
+
variant: solid
|
|
684
|
+
|
|
685
|
+
- title: ConfigProvider for Brand Theme
|
|
686
|
+
fullWidth: true
|
|
687
|
+
blocks:
|
|
688
|
+
- id: cp_brand_wrapper
|
|
689
|
+
type: ConfigProvider
|
|
690
|
+
properties:
|
|
691
|
+
token:
|
|
692
|
+
colorPrimary: '#e11d48'
|
|
693
|
+
colorInfo: '#0ea5e9'
|
|
694
|
+
borderRadius: 6
|
|
695
|
+
fontSize: 14
|
|
696
|
+
components:
|
|
697
|
+
Button:
|
|
698
|
+
borderRadius: 20
|
|
699
|
+
blocks:
|
|
700
|
+
- id: cp_brand_header
|
|
701
|
+
type: Box
|
|
702
|
+
class: bg-bg-layout p-6 rounded-lg border border-border
|
|
703
|
+
layout:
|
|
704
|
+
gap: 16
|
|
705
|
+
blocks:
|
|
706
|
+
- id: cp_brand_title_row
|
|
707
|
+
type: Box
|
|
708
|
+
layout:
|
|
709
|
+
gap: 12
|
|
710
|
+
align: center
|
|
711
|
+
blocks:
|
|
712
|
+
- id: cp_brand_avatar
|
|
713
|
+
type: Avatar
|
|
714
|
+
layout:
|
|
715
|
+
flex: 0 0 auto
|
|
716
|
+
properties:
|
|
717
|
+
icon: AiOutlineShop
|
|
718
|
+
size: 48
|
|
719
|
+
color: '#fff'
|
|
720
|
+
backgroundColor: '#e11d48'
|
|
721
|
+
- id: cp_brand_title
|
|
722
|
+
type: Title
|
|
723
|
+
layout:
|
|
724
|
+
flex: 1 1 0
|
|
725
|
+
properties:
|
|
726
|
+
content: Acme Commerce
|
|
727
|
+
level: 3
|
|
728
|
+
- id: cp_brand_description
|
|
729
|
+
type: Paragraph
|
|
730
|
+
properties:
|
|
731
|
+
content: This demonstrates using ConfigProvider to apply a brand theme across an entire section. The rose primary color, pill-shaped buttons, and custom font size create a cohesive brand identity for all child components.
|
|
732
|
+
- id: cp_brand_form_row
|
|
733
|
+
type: Box
|
|
734
|
+
layout:
|
|
735
|
+
gap: 12
|
|
736
|
+
blocks:
|
|
737
|
+
- id: cp_brand_search_input
|
|
738
|
+
type: TextInput
|
|
739
|
+
layout:
|
|
740
|
+
flex: 1 1 0
|
|
741
|
+
properties:
|
|
742
|
+
placeholder: Search products...
|
|
743
|
+
label:
|
|
744
|
+
disabled: true
|
|
745
|
+
suffixIcon: AiOutlineSearch
|
|
746
|
+
- id: cp_brand_search_btn
|
|
747
|
+
type: Button
|
|
748
|
+
layout:
|
|
749
|
+
flex: 0 0 auto
|
|
750
|
+
properties:
|
|
751
|
+
title: Search
|
|
752
|
+
color: primary
|
|
753
|
+
variant: solid
|
|
754
|
+
- id: cp_brand_cart_btn
|
|
755
|
+
type: Button
|
|
756
|
+
layout:
|
|
757
|
+
flex: 0 0 auto
|
|
758
|
+
properties:
|
|
759
|
+
title: Cart
|
|
760
|
+
icon: AiOutlineShoppingCart
|
|
761
|
+
color: default
|
|
762
|
+
variant: outlined
|
|
763
|
+
- id: cp_brand_stats_row
|
|
764
|
+
type: Box
|
|
765
|
+
layout:
|
|
766
|
+
gap: 16
|
|
767
|
+
blocks:
|
|
768
|
+
- id: cp_brand_stat1
|
|
769
|
+
type: Statistic
|
|
770
|
+
layout:
|
|
771
|
+
flex: 1 1 0
|
|
772
|
+
properties:
|
|
773
|
+
title: Products
|
|
774
|
+
value: 1240
|
|
775
|
+
- id: cp_brand_stat2
|
|
776
|
+
type: Statistic
|
|
777
|
+
layout:
|
|
778
|
+
flex: 1 1 0
|
|
779
|
+
properties:
|
|
780
|
+
title: Orders Today
|
|
781
|
+
value: 87
|
|
782
|
+
- id: cp_brand_stat3
|
|
783
|
+
type: Statistic
|
|
784
|
+
layout:
|
|
785
|
+
flex: 1 1 0
|
|
786
|
+
properties:
|
|
787
|
+
title: Revenue
|
|
788
|
+
value: 12480
|
|
789
|
+
prefix: $
|
|
790
|
+
|
|
791
|
+
- title: ConfigProvider for Compact Dashboard
|
|
792
|
+
fullWidth: true
|
|
793
|
+
blocks:
|
|
794
|
+
- id: cp_dashboard_wrapper
|
|
795
|
+
type: ConfigProvider
|
|
796
|
+
properties:
|
|
797
|
+
algorithm:
|
|
798
|
+
- compact
|
|
799
|
+
componentSize: small
|
|
800
|
+
token:
|
|
801
|
+
colorPrimary: '#1677ff'
|
|
802
|
+
fontSize: 12
|
|
803
|
+
variant: filled
|
|
804
|
+
blocks:
|
|
805
|
+
- id: cp_dashboard_title
|
|
806
|
+
type: Title
|
|
807
|
+
properties:
|
|
808
|
+
content: System Metrics
|
|
809
|
+
level: 4
|
|
810
|
+
- id: cp_dashboard_cards_row
|
|
811
|
+
type: Box
|
|
812
|
+
layout:
|
|
813
|
+
gap: 12
|
|
814
|
+
blocks:
|
|
815
|
+
- id: cp_dashboard_card1
|
|
816
|
+
type: Card
|
|
817
|
+
layout:
|
|
818
|
+
flex: 1 1 0
|
|
819
|
+
properties:
|
|
820
|
+
title: CPU Usage
|
|
821
|
+
size: small
|
|
822
|
+
blocks:
|
|
823
|
+
- id: cp_dashboard_progress1
|
|
824
|
+
type: Progress
|
|
825
|
+
properties:
|
|
826
|
+
percent: 72
|
|
827
|
+
- id: cp_dashboard_tag1
|
|
828
|
+
type: Tag
|
|
829
|
+
properties:
|
|
830
|
+
title: Normal
|
|
831
|
+
color: success
|
|
832
|
+
- id: cp_dashboard_card2
|
|
833
|
+
type: Card
|
|
834
|
+
layout:
|
|
835
|
+
flex: 1 1 0
|
|
836
|
+
properties:
|
|
837
|
+
title: Memory
|
|
838
|
+
size: small
|
|
839
|
+
blocks:
|
|
840
|
+
- id: cp_dashboard_progress2
|
|
841
|
+
type: Progress
|
|
842
|
+
properties:
|
|
843
|
+
percent: 89
|
|
844
|
+
- id: cp_dashboard_tag2
|
|
845
|
+
type: Tag
|
|
846
|
+
properties:
|
|
847
|
+
title: High
|
|
848
|
+
color: warning
|
|
849
|
+
- id: cp_dashboard_card3
|
|
850
|
+
type: Card
|
|
851
|
+
layout:
|
|
852
|
+
flex: 1 1 0
|
|
853
|
+
properties:
|
|
854
|
+
title: Disk I/O
|
|
855
|
+
size: small
|
|
856
|
+
blocks:
|
|
857
|
+
- id: cp_dashboard_progress3
|
|
858
|
+
type: Progress
|
|
859
|
+
properties:
|
|
860
|
+
percent: 34
|
|
861
|
+
- id: cp_dashboard_tag3
|
|
862
|
+
type: Tag
|
|
863
|
+
properties:
|
|
864
|
+
title: Low
|
|
865
|
+
color: blue
|
|
866
|
+
- id: cp_dashboard_filter_row
|
|
867
|
+
type: Box
|
|
868
|
+
layout:
|
|
869
|
+
gap: 8
|
|
870
|
+
align: center
|
|
871
|
+
blocks:
|
|
872
|
+
- id: cp_dashboard_filter_input
|
|
873
|
+
type: TextInput
|
|
874
|
+
layout:
|
|
875
|
+
flex: 0 1 200px
|
|
876
|
+
properties:
|
|
877
|
+
placeholder: Filter services...
|
|
878
|
+
label:
|
|
879
|
+
disabled: true
|
|
880
|
+
- id: cp_dashboard_selector
|
|
881
|
+
type: Selector
|
|
882
|
+
layout:
|
|
883
|
+
flex: 0 1 150px
|
|
884
|
+
properties:
|
|
885
|
+
placeholder: Region
|
|
886
|
+
label:
|
|
887
|
+
disabled: true
|
|
888
|
+
options:
|
|
889
|
+
- label: US East
|
|
890
|
+
value: us-east
|
|
891
|
+
- label: US West
|
|
892
|
+
value: us-west
|
|
893
|
+
- label: EU West
|
|
894
|
+
value: eu-west
|
|
895
|
+
- id: cp_dashboard_refresh_btn
|
|
896
|
+
type: Button
|
|
897
|
+
layout:
|
|
898
|
+
flex: 0 0 auto
|
|
899
|
+
properties:
|
|
900
|
+
title: Refresh
|
|
901
|
+
icon: AiOutlineReload
|
|
902
|
+
color: primary
|
|
903
|
+
variant: solid
|
|
904
|
+
|
|
905
|
+
- title: ConfigProvider for Dark Admin Panel
|
|
906
|
+
fullWidth: true
|
|
907
|
+
blocks:
|
|
908
|
+
- id: cp_admin_wrapper
|
|
909
|
+
type: ConfigProvider
|
|
910
|
+
properties:
|
|
911
|
+
algorithm: dark
|
|
912
|
+
token:
|
|
913
|
+
colorPrimary: '#7c3aed'
|
|
914
|
+
borderRadius: 8
|
|
915
|
+
blocks:
|
|
916
|
+
- id: cp_admin_box
|
|
917
|
+
type: Box
|
|
918
|
+
style:
|
|
919
|
+
padding: 24px
|
|
920
|
+
background: '#141414'
|
|
921
|
+
borderRadius: 12px
|
|
922
|
+
layout:
|
|
923
|
+
gap: 16
|
|
924
|
+
blocks:
|
|
925
|
+
- id: cp_admin_header_row
|
|
926
|
+
type: Box
|
|
927
|
+
layout:
|
|
928
|
+
gap: 12
|
|
929
|
+
align: center
|
|
930
|
+
blocks:
|
|
931
|
+
- id: cp_admin_title
|
|
932
|
+
type: Title
|
|
933
|
+
layout:
|
|
934
|
+
flex: 1 1 0
|
|
935
|
+
properties:
|
|
936
|
+
content: Admin Panel
|
|
937
|
+
level: 3
|
|
938
|
+
- id: cp_admin_status_tag
|
|
939
|
+
type: Tag
|
|
940
|
+
layout:
|
|
941
|
+
flex: 0 0 auto
|
|
942
|
+
properties:
|
|
943
|
+
title: Online
|
|
944
|
+
color: success
|
|
945
|
+
- id: cp_admin_desc
|
|
946
|
+
type: Paragraph
|
|
947
|
+
properties:
|
|
948
|
+
content: A dark-themed admin panel using ConfigProvider to apply the dark algorithm with a custom purple accent color. All child components inherit the dark color scheme automatically.
|
|
949
|
+
- id: cp_admin_form
|
|
950
|
+
type: Box
|
|
951
|
+
layout:
|
|
952
|
+
gap: 12
|
|
953
|
+
blocks:
|
|
954
|
+
- id: cp_admin_name_input
|
|
955
|
+
type: TextInput
|
|
956
|
+
properties:
|
|
957
|
+
placeholder: Enter username
|
|
958
|
+
label:
|
|
959
|
+
title: Username
|
|
960
|
+
colon: false
|
|
961
|
+
- id: cp_admin_email_input
|
|
962
|
+
type: TextInput
|
|
963
|
+
properties:
|
|
964
|
+
placeholder: Enter email address
|
|
965
|
+
label:
|
|
966
|
+
title: Email
|
|
967
|
+
colon: false
|
|
968
|
+
- id: cp_admin_role_selector
|
|
969
|
+
type: Selector
|
|
970
|
+
properties:
|
|
971
|
+
placeholder: Select role
|
|
972
|
+
label:
|
|
973
|
+
title: Role
|
|
974
|
+
colon: false
|
|
975
|
+
options:
|
|
976
|
+
- label: Administrator
|
|
977
|
+
value: admin
|
|
978
|
+
- label: Editor
|
|
979
|
+
value: editor
|
|
980
|
+
- label: Viewer
|
|
981
|
+
value: viewer
|
|
982
|
+
- id: cp_admin_btn_row
|
|
983
|
+
type: Box
|
|
984
|
+
layout:
|
|
985
|
+
gap: 8
|
|
986
|
+
blocks:
|
|
987
|
+
- id: cp_admin_save_btn
|
|
988
|
+
type: Button
|
|
989
|
+
layout:
|
|
990
|
+
flex: 0 0 auto
|
|
991
|
+
properties:
|
|
992
|
+
title: Save User
|
|
993
|
+
icon: AiOutlineSave
|
|
994
|
+
color: primary
|
|
995
|
+
variant: solid
|
|
996
|
+
- id: cp_admin_cancel_btn
|
|
997
|
+
type: Button
|
|
998
|
+
layout:
|
|
999
|
+
flex: 0 0 auto
|
|
1000
|
+
properties:
|
|
1001
|
+
title: Cancel
|
|
1002
|
+
color: default
|
|
1003
|
+
variant: outlined
|