@lowdefy/blocks-antd 5.5.1 → 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/CheckboxSelector.js +54 -29
- package/dist/blocks/CheckboxSelector/gallery.yaml +781 -0
- package/dist/blocks/CheckboxSelector/meta.js +24 -4
- 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 +4 -4
- package/dist/blocks/Label/gallery.yaml +762 -0
- package/dist/blocks/Label/labelLogic.js +4 -1
- 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/RadioSelector.js +50 -25
- package/dist/blocks/RadioSelector/gallery.yaml +816 -0
- package/dist/blocks/RadioSelector/meta.js +23 -3
- 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,161 @@
|
|
|
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
|
+
id: alert
|
|
16
|
+
type: Box
|
|
17
|
+
|
|
18
|
+
blocks:
|
|
19
|
+
# ============================================
|
|
20
|
+
# BASIC RENDERING
|
|
21
|
+
# ============================================
|
|
22
|
+
|
|
23
|
+
- id: alert_basic
|
|
24
|
+
type: Alert
|
|
25
|
+
properties:
|
|
26
|
+
message: Basic Alert Message
|
|
27
|
+
|
|
28
|
+
- id: alert_with_description
|
|
29
|
+
type: Alert
|
|
30
|
+
properties:
|
|
31
|
+
message: Alert Title
|
|
32
|
+
description: This is a detailed description of the alert.
|
|
33
|
+
|
|
34
|
+
# ============================================
|
|
35
|
+
# TYPE TESTS
|
|
36
|
+
# ============================================
|
|
37
|
+
|
|
38
|
+
- id: alert_success
|
|
39
|
+
type: Alert
|
|
40
|
+
properties:
|
|
41
|
+
message: Success Alert
|
|
42
|
+
type: success
|
|
43
|
+
|
|
44
|
+
- id: alert_info
|
|
45
|
+
type: Alert
|
|
46
|
+
properties:
|
|
47
|
+
message: Info Alert
|
|
48
|
+
type: info
|
|
49
|
+
|
|
50
|
+
- id: alert_warning
|
|
51
|
+
type: Alert
|
|
52
|
+
properties:
|
|
53
|
+
message: Warning Alert
|
|
54
|
+
type: warning
|
|
55
|
+
|
|
56
|
+
- id: alert_error
|
|
57
|
+
type: Alert
|
|
58
|
+
properties:
|
|
59
|
+
message: Error Alert
|
|
60
|
+
type: error
|
|
61
|
+
|
|
62
|
+
# ============================================
|
|
63
|
+
# ICON TESTS
|
|
64
|
+
# ============================================
|
|
65
|
+
|
|
66
|
+
- id: alert_with_icon
|
|
67
|
+
type: Alert
|
|
68
|
+
properties:
|
|
69
|
+
message: Alert with Icon
|
|
70
|
+
showIcon: true
|
|
71
|
+
|
|
72
|
+
- id: alert_no_icon
|
|
73
|
+
type: Alert
|
|
74
|
+
properties:
|
|
75
|
+
message: Alert without Icon
|
|
76
|
+
showIcon: false
|
|
77
|
+
|
|
78
|
+
- id: alert_custom_icon
|
|
79
|
+
type: Alert
|
|
80
|
+
properties:
|
|
81
|
+
message: Alert with Custom Icon
|
|
82
|
+
icon: AiOutlineBell
|
|
83
|
+
|
|
84
|
+
# ============================================
|
|
85
|
+
# CLOSABLE TESTS
|
|
86
|
+
# ============================================
|
|
87
|
+
|
|
88
|
+
- id: alert_closable
|
|
89
|
+
type: Alert
|
|
90
|
+
properties:
|
|
91
|
+
message: Closable Alert
|
|
92
|
+
closable: true
|
|
93
|
+
|
|
94
|
+
- id: alert_close_text
|
|
95
|
+
type: Alert
|
|
96
|
+
properties:
|
|
97
|
+
message: Alert with Close Text
|
|
98
|
+
closable: true
|
|
99
|
+
closeText: Dismiss
|
|
100
|
+
|
|
101
|
+
# ============================================
|
|
102
|
+
# BANNER TESTS
|
|
103
|
+
# ============================================
|
|
104
|
+
|
|
105
|
+
- id: alert_banner
|
|
106
|
+
type: Alert
|
|
107
|
+
properties:
|
|
108
|
+
message: Banner Alert
|
|
109
|
+
banner: true
|
|
110
|
+
|
|
111
|
+
# ============================================
|
|
112
|
+
# EVENT TESTS
|
|
113
|
+
# ============================================
|
|
114
|
+
|
|
115
|
+
- id: alert_onclose
|
|
116
|
+
type: Alert
|
|
117
|
+
properties:
|
|
118
|
+
message: Alert with onClose
|
|
119
|
+
closable: true
|
|
120
|
+
events:
|
|
121
|
+
onClose:
|
|
122
|
+
- id: set_onclose
|
|
123
|
+
type: SetState
|
|
124
|
+
params:
|
|
125
|
+
alert_onclose_fired: true
|
|
126
|
+
|
|
127
|
+
- id: onclose_display
|
|
128
|
+
type: Span
|
|
129
|
+
properties:
|
|
130
|
+
content:
|
|
131
|
+
_if:
|
|
132
|
+
test:
|
|
133
|
+
_eq:
|
|
134
|
+
- _state: alert_onclose_fired
|
|
135
|
+
- true
|
|
136
|
+
then: Close fired
|
|
137
|
+
else: ''
|
|
138
|
+
|
|
139
|
+
- id: alert_afterclose
|
|
140
|
+
type: Alert
|
|
141
|
+
properties:
|
|
142
|
+
message: Alert with afterClose
|
|
143
|
+
closable: true
|
|
144
|
+
events:
|
|
145
|
+
afterClose:
|
|
146
|
+
- id: set_afterclose
|
|
147
|
+
type: SetState
|
|
148
|
+
params:
|
|
149
|
+
alert_afterclose_fired: true
|
|
150
|
+
|
|
151
|
+
- id: afterclose_display
|
|
152
|
+
type: Span
|
|
153
|
+
properties:
|
|
154
|
+
content:
|
|
155
|
+
_if:
|
|
156
|
+
test:
|
|
157
|
+
_eq:
|
|
158
|
+
- _state: alert_afterclose_fired
|
|
159
|
+
- true
|
|
160
|
+
then: After close fired
|
|
161
|
+
else: ''
|
|
@@ -0,0 +1,261 @@
|
|
|
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
|
+
- id: default
|
|
16
|
+
type: Alert
|
|
17
|
+
- id: properties.message
|
|
18
|
+
type: Alert
|
|
19
|
+
properties:
|
|
20
|
+
message: Alert message - Completed!
|
|
21
|
+
- id: areas.action and properties.message
|
|
22
|
+
type: Alert
|
|
23
|
+
properties:
|
|
24
|
+
message: Alert message - Completed!
|
|
25
|
+
areas:
|
|
26
|
+
action:
|
|
27
|
+
blocks:
|
|
28
|
+
- id: ex_1_block_1
|
|
29
|
+
type: Test
|
|
30
|
+
- id: 'properties.icon string'
|
|
31
|
+
type: Info
|
|
32
|
+
properties:
|
|
33
|
+
icon: AiOutlineCheckCircle
|
|
34
|
+
message: Message with Icon!
|
|
35
|
+
- id: 'properties.icon object'
|
|
36
|
+
type: Info
|
|
37
|
+
properties:
|
|
38
|
+
icon: # FIX: color and style is not working, className is not passed to alert icon
|
|
39
|
+
name: AiOutlineSetting
|
|
40
|
+
spin: true
|
|
41
|
+
color: red
|
|
42
|
+
message: Message with Icon!
|
|
43
|
+
- id: 'properties.type: success'
|
|
44
|
+
type: Alert
|
|
45
|
+
properties:
|
|
46
|
+
message: Alert message - success!
|
|
47
|
+
type: success
|
|
48
|
+
- id: 'properties.type: info'
|
|
49
|
+
type: Alert
|
|
50
|
+
properties:
|
|
51
|
+
message: Alert message - info!
|
|
52
|
+
type: info
|
|
53
|
+
- id: 'properties.type: warning'
|
|
54
|
+
type: Alert
|
|
55
|
+
properties:
|
|
56
|
+
message: Alert message - warning!
|
|
57
|
+
type: warning
|
|
58
|
+
- id: 'properties.type: error'
|
|
59
|
+
type: Alert
|
|
60
|
+
properties:
|
|
61
|
+
message: Alert message - error!
|
|
62
|
+
type: error
|
|
63
|
+
- id: 'properties.type: success showIcon: false'
|
|
64
|
+
type: Alert
|
|
65
|
+
properties:
|
|
66
|
+
message: Alert message - success!
|
|
67
|
+
type: success
|
|
68
|
+
showIcon: false
|
|
69
|
+
- id: 'properties.type: info showIcon: false'
|
|
70
|
+
type: Alert
|
|
71
|
+
properties:
|
|
72
|
+
message: Alert message - info!
|
|
73
|
+
type: info
|
|
74
|
+
showIcon: false
|
|
75
|
+
- id: 'properties.type: warning showIcon: false'
|
|
76
|
+
type: Alert
|
|
77
|
+
properties:
|
|
78
|
+
message: Alert message - warning!
|
|
79
|
+
type: warning
|
|
80
|
+
showIcon: false
|
|
81
|
+
- id: 'properties.type: error showIcon: false'
|
|
82
|
+
type: Alert
|
|
83
|
+
properties:
|
|
84
|
+
message: Alert message - error!
|
|
85
|
+
type: error
|
|
86
|
+
showIcon: false
|
|
87
|
+
- id: 'properties.type: success banner: true'
|
|
88
|
+
type: Alert
|
|
89
|
+
properties:
|
|
90
|
+
banner: true
|
|
91
|
+
message: Alert message - success!
|
|
92
|
+
type: success
|
|
93
|
+
- id: 'properties.type: info banner: true'
|
|
94
|
+
type: Alert
|
|
95
|
+
properties:
|
|
96
|
+
banner: true
|
|
97
|
+
message: Alert message - info!
|
|
98
|
+
type: info
|
|
99
|
+
- id: 'properties.type: warning banner: true'
|
|
100
|
+
type: Alert
|
|
101
|
+
properties:
|
|
102
|
+
banner: true
|
|
103
|
+
message: Alert message - warning!
|
|
104
|
+
type: warning
|
|
105
|
+
- id: 'properties.type: error banner: true'
|
|
106
|
+
type: Alert
|
|
107
|
+
properties:
|
|
108
|
+
banner: true
|
|
109
|
+
message: Alert message - error!
|
|
110
|
+
type: error
|
|
111
|
+
- id: 'properties.closable: true'
|
|
112
|
+
type: info
|
|
113
|
+
properties:
|
|
114
|
+
closable: true
|
|
115
|
+
message: Message closable true
|
|
116
|
+
- id: 'properties.closeText: Close Text'
|
|
117
|
+
type: info
|
|
118
|
+
properties:
|
|
119
|
+
closable: true
|
|
120
|
+
closeText: Close Text
|
|
121
|
+
message: Message closable true
|
|
122
|
+
- id: with description only
|
|
123
|
+
type: Alert
|
|
124
|
+
properties:
|
|
125
|
+
description: This is a description for the block.
|
|
126
|
+
- id: with description only and icon false
|
|
127
|
+
type: Alert
|
|
128
|
+
properties:
|
|
129
|
+
showIcon: false
|
|
130
|
+
description: This is a description for the block.
|
|
131
|
+
- id: with description properties.message
|
|
132
|
+
type: Alert
|
|
133
|
+
properties:
|
|
134
|
+
message: Alert message - Completed!
|
|
135
|
+
description: This is a description for the block.
|
|
136
|
+
- id: 'with description properties.icon string'
|
|
137
|
+
type: Info
|
|
138
|
+
properties:
|
|
139
|
+
description: This is a description for the block.
|
|
140
|
+
icon: AiOutlineCheckCircle
|
|
141
|
+
message: Message with Icon!
|
|
142
|
+
- id: 'with description properties.icon object'
|
|
143
|
+
type: Info
|
|
144
|
+
properties:
|
|
145
|
+
description: This is a description for the block.
|
|
146
|
+
icon: # FIX: color and style is not working, className is not passed to alert icon
|
|
147
|
+
name: AiOutlineSetting
|
|
148
|
+
spin: true
|
|
149
|
+
color: red
|
|
150
|
+
message: Message with Icon!
|
|
151
|
+
- id: 'with description properties.type: success'
|
|
152
|
+
type: Alert
|
|
153
|
+
properties:
|
|
154
|
+
description: This is a description for the block.
|
|
155
|
+
message: Alert message - success!
|
|
156
|
+
type: success
|
|
157
|
+
- id: 'with description properties.type: info'
|
|
158
|
+
type: Alert
|
|
159
|
+
properties:
|
|
160
|
+
description: This is a description for the block.
|
|
161
|
+
message: Alert message - info!
|
|
162
|
+
type: info
|
|
163
|
+
- id: 'with description properties.type: warning'
|
|
164
|
+
type: Alert
|
|
165
|
+
properties:
|
|
166
|
+
description: This is a description for the block.
|
|
167
|
+
message: Alert message - warning!
|
|
168
|
+
type: warning
|
|
169
|
+
- id: 'with description properties.type: error'
|
|
170
|
+
type: Alert
|
|
171
|
+
properties:
|
|
172
|
+
description: This is a description for the block.
|
|
173
|
+
message: Alert message - error!
|
|
174
|
+
type: error
|
|
175
|
+
- id: areas.action and properties.description
|
|
176
|
+
type: Alert
|
|
177
|
+
properties:
|
|
178
|
+
message: Alert message - Completed!
|
|
179
|
+
description: This is a description for the block.
|
|
180
|
+
areas:
|
|
181
|
+
action:
|
|
182
|
+
blocks:
|
|
183
|
+
- id: ex_1_block_1
|
|
184
|
+
type: Test
|
|
185
|
+
- id: 'with description properties.type: success showIcon: false'
|
|
186
|
+
type: Alert
|
|
187
|
+
properties:
|
|
188
|
+
description: This is a description for the block.
|
|
189
|
+
message: Alert message - success!
|
|
190
|
+
type: success
|
|
191
|
+
showIcon: false
|
|
192
|
+
- id: 'with description properties.type: info showIcon: false'
|
|
193
|
+
type: Alert
|
|
194
|
+
properties:
|
|
195
|
+
description: This is a description for the block.
|
|
196
|
+
message: Alert message - info!
|
|
197
|
+
type: info
|
|
198
|
+
showIcon: false
|
|
199
|
+
- id: 'with description properties.type: warning showIcon: false'
|
|
200
|
+
type: Alert
|
|
201
|
+
properties:
|
|
202
|
+
description: This is a description for the block.
|
|
203
|
+
message: Alert message - warning!
|
|
204
|
+
type: warning
|
|
205
|
+
showIcon: false
|
|
206
|
+
- id: 'with description properties.type: error showIcon: false'
|
|
207
|
+
type: Alert
|
|
208
|
+
properties:
|
|
209
|
+
description: This is a description for the block.
|
|
210
|
+
message: Alert message - error!
|
|
211
|
+
type: error
|
|
212
|
+
showIcon: false
|
|
213
|
+
- id: 'with description properties.type: success banner: true'
|
|
214
|
+
type: Alert
|
|
215
|
+
properties:
|
|
216
|
+
description: This is a description for the block.
|
|
217
|
+
banner: true
|
|
218
|
+
message: Alert message - success!
|
|
219
|
+
type: success
|
|
220
|
+
- id: 'with description properties.type: info banner: true'
|
|
221
|
+
type: Alert
|
|
222
|
+
properties:
|
|
223
|
+
description: This is a description for the block.
|
|
224
|
+
banner: true
|
|
225
|
+
message: Alert message - info!
|
|
226
|
+
type: info
|
|
227
|
+
- id: 'with description properties.type: warning banner: true'
|
|
228
|
+
type: Alert
|
|
229
|
+
properties:
|
|
230
|
+
description: This is a description for the block.
|
|
231
|
+
banner: true
|
|
232
|
+
message: Alert message - warning!
|
|
233
|
+
type: warning
|
|
234
|
+
- id: 'with description properties.type: error banner: true'
|
|
235
|
+
type: Alert
|
|
236
|
+
properties:
|
|
237
|
+
description: This is a description for the block.
|
|
238
|
+
banner: true
|
|
239
|
+
message: Alert message - error!
|
|
240
|
+
type: error
|
|
241
|
+
- id: 'with description properties.closable: true'
|
|
242
|
+
type: info
|
|
243
|
+
properties:
|
|
244
|
+
description: This is a description for the block.
|
|
245
|
+
closable: true
|
|
246
|
+
message: Message closable true
|
|
247
|
+
- id: 'with description properties.closeText: Close Text'
|
|
248
|
+
type: info
|
|
249
|
+
properties:
|
|
250
|
+
description: This is a description for the block.
|
|
251
|
+
closable: true
|
|
252
|
+
closeText: Close Text
|
|
253
|
+
message: Message closable true
|
|
254
|
+
- id: 'with message uses html'
|
|
255
|
+
type: Alert
|
|
256
|
+
properties:
|
|
257
|
+
message: <div style="background:green;">Alert Message</div>
|
|
258
|
+
- id: 'with description uses html'
|
|
259
|
+
type: Alert
|
|
260
|
+
properties:
|
|
261
|
+
description: <div style="background:red;">Alert Description</div>
|