@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.
Files changed (283) hide show
  1. package/dist/TagPillRow.js +88 -0
  2. package/dist/blocks/Affix/gallery.yaml +399 -0
  3. package/dist/blocks/Affix/tests/Affix.e2e.yaml +72 -0
  4. package/dist/blocks/Affix/tests.yaml +29 -0
  5. package/dist/blocks/Alert/gallery.yaml +701 -0
  6. package/dist/blocks/Alert/tests/Alert.e2e.yaml +161 -0
  7. package/dist/blocks/Alert/tests.yaml +261 -0
  8. package/dist/blocks/AutoComplete/gallery.yaml +713 -0
  9. package/dist/blocks/AutoComplete/tests/AutoComplete.e2e.yaml +330 -0
  10. package/dist/blocks/AutoComplete/tests.yaml +178 -0
  11. package/dist/blocks/Avatar/gallery.yaml +1037 -0
  12. package/dist/blocks/Avatar/tests/Avatar.e2e.yaml +125 -0
  13. package/dist/blocks/Avatar/tests.yaml +76 -0
  14. package/dist/blocks/Badge/gallery.yaml +1090 -0
  15. package/dist/blocks/Badge/tests/Badge.e2e.yaml +195 -0
  16. package/dist/blocks/Badge/tests.yaml +91 -0
  17. package/dist/blocks/Breadcrumb/gallery.yaml +484 -0
  18. package/dist/blocks/Breadcrumb/tests/Breadcrumb.e2e.yaml +165 -0
  19. package/dist/blocks/Breadcrumb/tests.yaml +106 -0
  20. package/dist/blocks/Button/gallery.yaml +718 -0
  21. package/dist/blocks/Button/tests/Button.e2e.yaml +246 -0
  22. package/dist/blocks/Button/tests.yaml +104 -0
  23. package/dist/blocks/ButtonSelector/gallery.yaml +891 -0
  24. package/dist/blocks/ButtonSelector/tests/ButtonSelector.e2e.yaml +188 -0
  25. package/dist/blocks/ButtonSelector/tests.yaml +167 -0
  26. package/dist/blocks/Calendar/gallery.yaml +128 -0
  27. package/dist/blocks/Calendar/tests/Calendar.e2e.yaml +136 -0
  28. package/dist/blocks/Calendar/tests.yaml +50 -0
  29. package/dist/blocks/Card/gallery.yaml +1035 -0
  30. package/dist/blocks/Card/tests/Card.e2e.yaml +209 -0
  31. package/dist/blocks/Card/tests.yaml +75 -0
  32. package/dist/blocks/Carousel/gallery.yaml +1971 -0
  33. package/dist/blocks/Carousel/tests/Carousel.e2e.yaml +211 -0
  34. package/dist/blocks/Carousel/tests.yaml +117 -0
  35. package/dist/blocks/CheckboxSelector/gallery.yaml +781 -0
  36. package/dist/blocks/CheckboxSelector/tests/CheckboxSelector.e2e.yaml +272 -0
  37. package/dist/blocks/CheckboxSelector/tests.yaml +325 -0
  38. package/dist/blocks/CheckboxSwitch/gallery.yaml +457 -0
  39. package/dist/blocks/CheckboxSwitch/tests/CheckboxSwitch.e2e.yaml +126 -0
  40. package/dist/blocks/CheckboxSwitch/tests.yaml +96 -0
  41. package/dist/blocks/Collapse/gallery.yaml +1079 -0
  42. package/dist/blocks/Collapse/tests/Collapse.e2e.yaml +206 -0
  43. package/dist/blocks/Collapse/tests.yaml +265 -0
  44. package/dist/blocks/ColorSelector/gallery.yaml +807 -0
  45. package/dist/blocks/ColorSelector/tests/ColorSelector.e2e.yaml +77 -0
  46. package/dist/blocks/ColorSelector/tests.yaml +84 -0
  47. package/dist/blocks/ConfigProvider/gallery.yaml +1003 -0
  48. package/dist/blocks/ConfigProvider/tests.yaml +62 -0
  49. package/dist/blocks/ConfirmModal/gallery.yaml +1043 -0
  50. package/dist/blocks/ConfirmModal/tests/ConfirmModal.e2e.yaml +410 -0
  51. package/dist/blocks/ConfirmModal/tests.yaml +95 -0
  52. package/dist/blocks/Content/gallery.yaml +528 -0
  53. package/dist/blocks/Content/tests/Content.e2e.yaml +71 -0
  54. package/dist/blocks/Content/tests.yaml +42 -0
  55. package/dist/blocks/ControlledList/ControlledList.js +1 -1
  56. package/dist/blocks/ControlledList/gallery.yaml +481 -0
  57. package/dist/blocks/ControlledList/{style.module.css → style.css} +3 -3
  58. package/dist/blocks/ControlledList/tests/ControlledList.e2e.yaml +161 -0
  59. package/dist/blocks/ControlledList/tests.yaml +57 -0
  60. package/dist/blocks/DateRangeSelector/DateRangeSelector.js +7 -0
  61. package/dist/blocks/DateRangeSelector/e2e.js +28 -2
  62. package/dist/blocks/DateRangeSelector/gallery.yaml +858 -0
  63. package/dist/blocks/DateRangeSelector/meta.js +2 -0
  64. package/dist/blocks/DateRangeSelector/tests/DateRangeSelector.e2e.yaml +204 -0
  65. package/dist/blocks/DateRangeSelector/tests.yaml +129 -0
  66. package/dist/blocks/DateSelector/DateSelector.js +6 -0
  67. package/dist/blocks/DateSelector/e2e.js +28 -2
  68. package/dist/blocks/DateSelector/gallery.yaml +691 -0
  69. package/dist/blocks/DateSelector/meta.js +6 -0
  70. package/dist/blocks/DateSelector/tests/DateSelector.e2e.yaml +229 -0
  71. package/dist/blocks/DateSelector/tests.yaml +117 -0
  72. package/dist/blocks/DateTimeSelector/DateTimeSelector.js +7 -0
  73. package/dist/blocks/DateTimeSelector/e2e.js +26 -2
  74. package/dist/blocks/DateTimeSelector/gallery.yaml +770 -0
  75. package/dist/blocks/DateTimeSelector/meta.js +2 -0
  76. package/dist/blocks/DateTimeSelector/tests/DateTimeSelector.e2e.yaml +163 -0
  77. package/dist/blocks/DateTimeSelector/tests.yaml +140 -0
  78. package/dist/blocks/Descriptions/gallery.yaml +839 -0
  79. package/dist/blocks/Descriptions/tests/Descriptions.e2e.yaml +143 -0
  80. package/dist/blocks/Descriptions/tests.yaml +256 -0
  81. package/dist/blocks/Divider/gallery.yaml +375 -0
  82. package/dist/blocks/Divider/tests/Divider.e2e.yaml +107 -0
  83. package/dist/blocks/Divider/tests.yaml +58 -0
  84. package/dist/blocks/Drawer/gallery.yaml +1257 -0
  85. package/dist/blocks/Drawer/tests/Drawer.e2e.yaml +562 -0
  86. package/dist/blocks/Drawer/tests.yaml +80 -0
  87. package/dist/blocks/DropdownButton/gallery.yaml +606 -0
  88. package/dist/blocks/DropdownButton/tests/DropdownButton.e2e.yaml +243 -0
  89. package/dist/blocks/DropdownMenu/gallery.yaml +578 -0
  90. package/dist/blocks/DropdownMenu/tests/DropdownMenu.e2e.yaml +267 -0
  91. package/dist/blocks/Flex/gallery.yaml +1416 -0
  92. package/dist/blocks/Flex/tests/Flex.e2e.yaml +95 -0
  93. package/dist/blocks/Flex/tests.yaml +92 -0
  94. package/dist/blocks/FloatButton/gallery.yaml +518 -0
  95. package/dist/blocks/FloatButton/tests/FloatButton.e2e.yaml +73 -0
  96. package/dist/blocks/FloatButton/tests.yaml +59 -0
  97. package/dist/blocks/Footer/gallery.yaml +355 -0
  98. package/dist/blocks/Footer/tests/Footer.e2e.yaml +70 -0
  99. package/dist/blocks/Footer/tests.yaml +28 -0
  100. package/dist/blocks/Header/gallery.yaml +249 -0
  101. package/dist/blocks/Header/tests/Header.e2e.yaml +77 -0
  102. package/dist/blocks/Header/tests.yaml +36 -0
  103. package/dist/blocks/Label/Label.js +1 -1
  104. package/dist/blocks/Label/gallery.yaml +762 -0
  105. package/dist/blocks/Label/{style.module.css → style.css} +28 -28
  106. package/dist/blocks/Label/tests/Label.e2e.yaml +247 -0
  107. package/dist/blocks/Label/tests.yaml +212 -0
  108. package/dist/blocks/Layout/gallery.yaml +548 -0
  109. package/dist/blocks/Layout/tests/Layout.e2e.yaml +86 -0
  110. package/dist/blocks/Layout/tests.yaml +28 -0
  111. package/dist/blocks/ListSelector/gallery.yaml +223 -0
  112. package/dist/blocks/Masonry/gallery.yaml +989 -0
  113. package/dist/blocks/Masonry/tests/Masonry.e2e.yaml +128 -0
  114. package/dist/blocks/Masonry/tests.yaml +42 -0
  115. package/dist/blocks/MasonryList/gallery.yaml +224 -0
  116. package/dist/blocks/MasonryList/tests/MasonryList.e2e.yaml +55 -0
  117. package/dist/blocks/MasonryList/tests.yaml +42 -0
  118. package/dist/blocks/Menu/gallery.yaml +974 -0
  119. package/dist/blocks/Menu/tests/Menu.e2e.yaml +484 -0
  120. package/dist/blocks/Menu/tests.yaml +1053 -0
  121. package/dist/blocks/Message/gallery.yaml +860 -0
  122. package/dist/blocks/Message/tests/Message.e2e.yaml +246 -0
  123. package/dist/blocks/Message/tests.yaml +54 -0
  124. package/dist/blocks/MobileMenu/gallery.yaml +1172 -0
  125. package/dist/blocks/MobileMenu/tests/MobileMenu.e2e.yaml +314 -0
  126. package/dist/blocks/MobileMenu/tests.yaml +359 -0
  127. package/dist/blocks/Modal/gallery.yaml +1039 -0
  128. package/dist/blocks/Modal/tests/Modal.e2e.yaml +493 -0
  129. package/dist/blocks/Modal/tests.yaml +75 -0
  130. package/dist/blocks/MonthSelector/MonthSelector.js +6 -0
  131. package/dist/blocks/MonthSelector/e2e.js +26 -2
  132. package/dist/blocks/MonthSelector/gallery.yaml +687 -0
  133. package/dist/blocks/MonthSelector/meta.js +6 -0
  134. package/dist/blocks/MonthSelector/tests/MonthSelector.e2e.yaml +167 -0
  135. package/dist/blocks/MonthSelector/tests.yaml +124 -0
  136. package/dist/blocks/MultipleSelector/gallery.yaml +1245 -0
  137. package/dist/blocks/MultipleSelector/tests/MultipleSelector.e2e.yaml +445 -0
  138. package/dist/blocks/MultipleSelector/tests.yaml +201 -0
  139. package/dist/blocks/Notification/gallery.yaml +1376 -0
  140. package/dist/blocks/Notification/tests/Notification.e2e.yaml +362 -0
  141. package/dist/blocks/Notification/tests.yaml +97 -0
  142. package/dist/blocks/NumberInput/gallery.yaml +753 -0
  143. package/dist/blocks/NumberInput/tests/NumberInput.e2e.yaml +228 -0
  144. package/dist/blocks/NumberInput/tests.yaml +116 -0
  145. package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +1 -1
  146. package/dist/blocks/PageHeaderMenu/gallery.yaml +480 -0
  147. package/dist/blocks/PageHeaderMenu/tests/PageHeaderMenu.e2e.yaml +110 -0
  148. package/dist/blocks/PageHeaderMenu/tests.yaml +173 -0
  149. package/dist/blocks/PageSidebarLayout/PageSidebarLayout.js +10 -1
  150. package/dist/blocks/PageSidebarLayout/gallery.yaml +302 -0
  151. package/dist/blocks/PageSidebarLayout/meta.js +1 -0
  152. package/dist/blocks/PageSidebarLayout/tests/PageSidebarLayout.e2e.yaml +216 -0
  153. package/dist/blocks/PageSidebarLayout/tests.yaml +174 -0
  154. package/dist/blocks/PageSiderMenu/PageSiderMenu.js +1 -1
  155. package/dist/blocks/PageSiderMenu/gallery.yaml +516 -0
  156. package/dist/blocks/PageSiderMenu/tests/PageSiderMenu.e2e.yaml +175 -0
  157. package/dist/blocks/PageSiderMenu/tests.yaml +211 -0
  158. package/dist/blocks/Pagination/gallery.yaml +503 -0
  159. package/dist/blocks/Pagination/tests/Pagination.e2e.yaml +159 -0
  160. package/dist/blocks/Pagination/tests.yaml +80 -0
  161. package/dist/blocks/Paragraph/gallery.yaml +458 -0
  162. package/dist/blocks/Paragraph/tests/Paragraph.e2e.yaml +153 -0
  163. package/dist/blocks/Paragraph/tests.yaml +176 -0
  164. package/dist/blocks/ParagraphInput/gallery.yaml +1483 -0
  165. package/dist/blocks/ParagraphInput/tests/ParagraphInput.e2e.yaml +189 -0
  166. package/dist/blocks/ParagraphInput/tests.yaml +163 -0
  167. package/dist/blocks/PasswordInput/gallery.yaml +420 -0
  168. package/dist/blocks/PasswordInput/tests/PasswordInput.e2e.yaml +188 -0
  169. package/dist/blocks/PasswordInput/tests.yaml +78 -0
  170. package/dist/blocks/PhoneNumberInput/gallery.yaml +677 -0
  171. package/dist/blocks/PhoneNumberInput/tests/PhoneNumberInput.e2e.yaml +279 -0
  172. package/dist/blocks/PhoneNumberInput/tests.yaml +25 -0
  173. package/dist/blocks/Popover/gallery.yaml +1301 -0
  174. package/dist/blocks/Popover/tests/Popover.e2e.yaml +249 -0
  175. package/dist/blocks/Popover/tests.yaml +105 -0
  176. package/dist/blocks/Progress/gallery.yaml +772 -0
  177. package/dist/blocks/Progress/tests/Progress.e2e.yaml +167 -0
  178. package/dist/blocks/Progress/tests.yaml +114 -0
  179. package/dist/blocks/QRCode/gallery.yaml +492 -0
  180. package/dist/blocks/QRCode/tests/QRCode.e2e.yaml +66 -0
  181. package/dist/blocks/QRCode/tests.yaml +113 -0
  182. package/dist/blocks/RadioSelector/gallery.yaml +816 -0
  183. package/dist/blocks/RadioSelector/tests/RadioSelector.e2e.yaml +269 -0
  184. package/dist/blocks/RadioSelector/tests.yaml +339 -0
  185. package/dist/blocks/RatingSlider/gallery.yaml +627 -0
  186. package/dist/blocks/RatingSlider/tests/RatingSlider.e2e.yaml +188 -0
  187. package/dist/blocks/RatingSlider/tests.yaml +116 -0
  188. package/dist/blocks/Result/gallery.yaml +925 -0
  189. package/dist/blocks/Result/tests/Result.e2e.yaml +126 -0
  190. package/dist/blocks/Result/tests.yaml +75 -0
  191. package/dist/blocks/Search/Search.js +1 -1
  192. package/dist/blocks/Search/SearchModal.js +18 -9
  193. package/dist/blocks/Search/gallery.yaml +170 -0
  194. package/dist/blocks/Search/meta.js +2 -1
  195. package/dist/blocks/Search/{style.module.css → style.css} +19 -12
  196. package/dist/blocks/Search/tests/Search.e2e.yaml +125 -0
  197. package/dist/blocks/Search/useSearchIndex.js +24 -2
  198. package/dist/blocks/SegmentedSelector/gallery.yaml +725 -0
  199. package/dist/blocks/SegmentedSelector/tests/SegmentedSelector.e2e.yaml +115 -0
  200. package/dist/blocks/SegmentedSelector/tests.yaml +141 -0
  201. package/dist/blocks/Selector/gallery.yaml +1055 -0
  202. package/dist/blocks/Selector/tests/Selector.e2e.yaml +427 -0
  203. package/dist/blocks/Selector/tests.yaml +196 -0
  204. package/dist/blocks/Sider/gallery.yaml +994 -0
  205. package/dist/blocks/Sider/tests/Sider.e2e.yaml +162 -0
  206. package/dist/blocks/Sider/tests.yaml +20 -0
  207. package/dist/blocks/Slider/gallery.yaml +600 -0
  208. package/dist/blocks/Slider/tests/Slider.e2e.yaml +190 -0
  209. package/dist/blocks/Slider/tests.yaml +68 -0
  210. package/dist/blocks/Splitter/gallery.yaml +1511 -0
  211. package/dist/blocks/Splitter/tests/Splitter.e2e.yaml +114 -0
  212. package/dist/blocks/Splitter/tests.yaml +79 -0
  213. package/dist/blocks/Statistic/gallery.yaml +460 -0
  214. package/dist/blocks/Statistic/tests/Statistic.e2e.yaml +137 -0
  215. package/dist/blocks/Statistic/tests.yaml +77 -0
  216. package/dist/blocks/Steps/gallery.yaml +550 -0
  217. package/dist/blocks/Switch/gallery.yaml +502 -0
  218. package/dist/blocks/Switch/tests/Switch.e2e.yaml +132 -0
  219. package/dist/blocks/Switch/tests.yaml +87 -0
  220. package/dist/blocks/Tabs/gallery.yaml +1353 -0
  221. package/dist/blocks/Tabs/tests/Tabs.e2e.yaml +370 -0
  222. package/dist/blocks/Tabs/tests.yaml +349 -0
  223. package/dist/blocks/Tag/gallery.yaml +598 -0
  224. package/dist/blocks/Tag/tests/Tag.e2e.yaml +173 -0
  225. package/dist/blocks/Tag/tests.yaml +51 -0
  226. package/dist/blocks/TagMultipleSelector/TagMultipleSelector.js +53 -0
  227. package/dist/blocks/TagMultipleSelector/e2e.js +36 -0
  228. package/dist/blocks/TagMultipleSelector/gallery.yaml +70 -0
  229. package/dist/blocks/TagMultipleSelector/meta.js +91 -0
  230. package/dist/blocks/TagMultipleSelector/tests/TagMultipleSelector.e2e.yaml +93 -0
  231. package/dist/blocks/TagSelector/TagSelector.js +49 -0
  232. package/dist/blocks/TagSelector/e2e.js +36 -0
  233. package/dist/blocks/TagSelector/gallery.yaml +70 -0
  234. package/dist/blocks/TagSelector/meta.js +91 -0
  235. package/dist/blocks/TagSelector/tests/TagSelector.e2e.yaml +93 -0
  236. package/dist/blocks/TextArea/gallery.yaml +618 -0
  237. package/dist/blocks/TextArea/tests/TextArea.e2e.yaml +218 -0
  238. package/dist/blocks/TextArea/tests.yaml +100 -0
  239. package/dist/blocks/TextInput/gallery.yaml +560 -0
  240. package/dist/blocks/TextInput/tests/TextInput.e2e.yaml +287 -0
  241. package/dist/blocks/TextInput/tests.yaml +114 -0
  242. package/dist/blocks/TimelineList/gallery.yaml +431 -0
  243. package/dist/blocks/TimelineList/tests/TimelineList.e2e.yaml +244 -0
  244. package/dist/blocks/TimelineList/tests.yaml +251 -0
  245. package/dist/blocks/Title/gallery.yaml +483 -0
  246. package/dist/blocks/Title/tests/Title.e2e.yaml +180 -0
  247. package/dist/blocks/Title/tests.yaml +175 -0
  248. package/dist/blocks/TitleInput/gallery.yaml +1006 -0
  249. package/dist/blocks/TitleInput/tests/TitleInput.e2e.yaml +195 -0
  250. package/dist/blocks/TitleInput/tests.yaml +181 -0
  251. package/dist/blocks/Tooltip/gallery.yaml +1214 -0
  252. package/dist/blocks/Tooltip/tests/Tooltip.e2e.yaml +195 -0
  253. package/dist/blocks/Tooltip/tests.yaml +92 -0
  254. package/dist/blocks/Tour/gallery.yaml +2305 -0
  255. package/dist/blocks/Tour/tests/Tour.e2e.yaml +90 -0
  256. package/dist/blocks/Tour/tests.yaml +151 -0
  257. package/dist/blocks/TreeInput/gallery.yaml +78 -0
  258. package/dist/blocks/TreeInput/tests/TreeInput.e2e.yaml +139 -0
  259. package/dist/blocks/TreeInput/tests.yaml +140 -0
  260. package/dist/blocks/TreeMultipleSelector/gallery.yaml +67 -0
  261. package/dist/blocks/TreeSelector/gallery.yaml +81 -0
  262. package/dist/blocks/Watermark/gallery.yaml +479 -0
  263. package/dist/blocks/Watermark/tests/Watermark.e2e.yaml +62 -0
  264. package/dist/blocks/Watermark/tests.yaml +86 -0
  265. package/dist/blocks/WeekSelector/WeekSelector.js +6 -0
  266. package/dist/blocks/WeekSelector/e2e.js +26 -2
  267. package/dist/blocks/WeekSelector/gallery.yaml +589 -0
  268. package/dist/blocks/WeekSelector/meta.js +6 -0
  269. package/dist/blocks/WeekSelector/tests/WeekSelector.e2e.yaml +154 -0
  270. package/dist/blocks/WeekSelector/tests.yaml +122 -0
  271. package/dist/blocks.js +2 -0
  272. package/dist/disabledDate.js +91 -19
  273. package/dist/e2e.js +2 -0
  274. package/dist/getPresets.js +151 -0
  275. package/dist/getTagColor.js +44 -0
  276. package/dist/getTagSelectorOptions.js +30 -0
  277. package/dist/metas.js +2 -0
  278. package/dist/pickerPresetsStyle.css +26 -0
  279. package/dist/schemas/disabledDates.js +6 -2
  280. package/dist/schemas/index.js +1 -0
  281. package/dist/schemas/presets.js +111 -0
  282. package/dist/tagSelectorStyle.css +68 -0
  283. package/package.json +13 -13
@@ -27,7 +27,7 @@
27
27
 
28
28
  @layer antd {
29
29
  /* Label column */
30
- :global(.ant-form-item .ant-form-item-label) {
30
+ .ant-form-item .ant-form-item-label {
31
31
  flex-grow: 0;
32
32
  overflow: hidden;
33
33
  white-space: nowrap;
@@ -35,11 +35,11 @@
35
35
  vertical-align: middle;
36
36
  }
37
37
 
38
- :global(.ant-form-item .ant-form-item-label-left) {
38
+ .ant-form-item .ant-form-item-label-left {
39
39
  text-align: start;
40
40
  }
41
41
 
42
- :global(.ant-form-item .ant-form-item-label > label) {
42
+ .ant-form-item .ant-form-item-label > label {
43
43
  position: relative;
44
44
  display: inline-flex;
45
45
  align-items: center;
@@ -50,7 +50,7 @@
50
50
  }
51
51
 
52
52
  /* Required asterisk */
53
- :global(.ant-form-item .ant-form-item-label > label.ant-form-item-required)::before {
53
+ .ant-form-item .ant-form-item-label > label.ant-form-item-required::before {
54
54
  display: inline-block;
55
55
  margin-inline-end: var(--ant-margin-xxs, 4px);
56
56
  color: var(--ant-form-label-required-mark-color, var(--ant-color-error));
@@ -61,7 +61,7 @@
61
61
  }
62
62
 
63
63
  /* Colon after label */
64
- :global(.ant-form-item .ant-form-item-label > label)::after {
64
+ .ant-form-item .ant-form-item-label > label::after {
65
65
  content: ':';
66
66
  position: relative;
67
67
  margin-block: 0;
@@ -69,32 +69,32 @@
69
69
  margin-inline-end: var(--ant-form-label-colon-margin-inline-end, 8px);
70
70
  }
71
71
 
72
- :global(.ant-form-item .ant-form-item-label > label.ant-form-item-no-colon)::after {
72
+ .ant-form-item .ant-form-item-label > label.ant-form-item-no-colon::after {
73
73
  content: '\a0';
74
74
  }
75
75
 
76
76
  /* Control column */
77
- :global(.ant-form-item .ant-form-item-control) {
77
+ .ant-form-item .ant-form-item-control {
78
78
  display: flex;
79
79
  flex-direction: column;
80
80
  flex-grow: 1;
81
81
  }
82
82
 
83
- :global(.ant-form-item .ant-form-item-control-input) {
83
+ .ant-form-item .ant-form-item-control-input {
84
84
  position: relative;
85
85
  display: flex;
86
86
  align-items: center;
87
87
  min-height: var(--ant-control-height);
88
88
  }
89
89
 
90
- :global(.ant-form-item .ant-form-item-control-input-content) {
90
+ .ant-form-item .ant-form-item-control-input-content {
91
91
  flex: auto;
92
92
  max-width: 100%;
93
93
  }
94
94
 
95
95
  /* Help text / extra */
96
- :global(.ant-form-item .ant-form-item-explain),
97
- :global(.ant-form-item .ant-form-item-extra) {
96
+ .ant-form-item .ant-form-item-explain,
97
+ .ant-form-item .ant-form-item-extra {
98
98
  clear: both;
99
99
  color: var(--ant-color-text-description);
100
100
  font-size: var(--ant-font-size);
@@ -102,44 +102,44 @@
102
102
  }
103
103
 
104
104
  /* Validation feedback colors */
105
- :global(.ant-form-item .ant-form-item-explain-error) {
105
+ .ant-form-item .ant-form-item-explain-error {
106
106
  color: var(--ant-color-error);
107
107
  }
108
108
 
109
- :global(.ant-form-item .ant-form-item-explain-warning) {
109
+ .ant-form-item .ant-form-item-explain-warning {
110
110
  color: var(--ant-color-warning);
111
111
  }
112
112
 
113
- :global(.ant-form-item .ant-form-item-explain-success) {
113
+ .ant-form-item .ant-form-item-explain-success {
114
114
  color: var(--ant-color-success);
115
115
  }
116
116
 
117
117
  /* Feedback icons */
118
- :global(.ant-form-item .ant-form-item-feedback-icon) {
118
+ .ant-form-item .ant-form-item-feedback-icon {
119
119
  font-size: var(--ant-font-size);
120
120
  text-align: center;
121
121
  visibility: visible;
122
122
  pointer-events: none;
123
123
  }
124
124
 
125
- :global(.ant-form-item .ant-form-item-feedback-icon-success) {
125
+ .ant-form-item .ant-form-item-feedback-icon-success {
126
126
  color: var(--ant-color-success);
127
127
  }
128
128
 
129
- :global(.ant-form-item .ant-form-item-feedback-icon-error) {
129
+ .ant-form-item .ant-form-item-feedback-icon-error {
130
130
  color: var(--ant-color-error);
131
131
  }
132
132
 
133
- :global(.ant-form-item .ant-form-item-feedback-icon-warning) {
133
+ .ant-form-item .ant-form-item-feedback-icon-warning {
134
134
  color: var(--ant-color-warning);
135
135
  }
136
136
 
137
- :global(.ant-form-item .ant-form-item-feedback-icon-validating) {
137
+ .ant-form-item .ant-form-item-feedback-icon-validating {
138
138
  color: var(--ant-color-primary);
139
139
  }
140
140
 
141
141
  /* Custom: feedback icon spacing */
142
- :global(.ldf-feedback-icon) {
142
+ .ldf-feedback-icon {
143
143
  margin-inline-start: var(--ant-margin-xxs, 4px);
144
144
  }
145
145
  }
@@ -151,35 +151,35 @@
151
151
  These rules must live OUTSIDE @layer antd so they beat antd's unlayered
152
152
  CSS-in-JS output in the cascade.
153
153
  */
154
- :global(.ant-form-item-has-error .ant-radio-inner) {
154
+ .ant-form-item-has-error .ant-radio-inner {
155
155
  border-color: var(--ant-color-error) !important;
156
156
  }
157
157
 
158
- :global(.ant-form-item-has-error .ant-checkbox-inner) {
158
+ .ant-form-item-has-error .ant-checkbox-inner {
159
159
  border-color: var(--ant-color-error) !important;
160
160
  }
161
161
 
162
- :global(.ant-form-item-has-error .ant-radio-button-wrapper) {
162
+ .ant-form-item-has-error .ant-radio-button-wrapper {
163
163
  border-color: var(--ant-color-error) !important;
164
164
  }
165
165
 
166
- :global(.ant-form-item-has-error .ant-segmented) {
166
+ .ant-form-item-has-error .ant-segmented {
167
167
  border-color: var(--ant-color-error);
168
168
  }
169
169
 
170
170
  /* Warning state */
171
- :global(.ant-form-item-has-warning .ant-radio-inner) {
171
+ .ant-form-item-has-warning .ant-radio-inner {
172
172
  border-color: var(--ant-color-warning) !important;
173
173
  }
174
174
 
175
- :global(.ant-form-item-has-warning .ant-checkbox-inner) {
175
+ .ant-form-item-has-warning .ant-checkbox-inner {
176
176
  border-color: var(--ant-color-warning) !important;
177
177
  }
178
178
 
179
- :global(.ant-form-item-has-warning .ant-radio-button-wrapper) {
179
+ .ant-form-item-has-warning .ant-radio-button-wrapper {
180
180
  border-color: var(--ant-color-warning) !important;
181
181
  }
182
182
 
183
- :global(.ant-form-item-has-warning .ant-segmented) {
183
+ .ant-form-item-has-warning .ant-segmented {
184
184
  border-color: var(--ant-color-warning);
185
185
  }
@@ -0,0 +1,247 @@
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: label
16
+ type: Box
17
+
18
+ blocks:
19
+ # ============================================
20
+ # BASIC RENDERING
21
+ # Note: Using Span as content to avoid nested Label from TextInput
22
+ # ============================================
23
+
24
+ - id: label_basic
25
+ type: Label
26
+ properties:
27
+ title: Basic Label
28
+ blocks:
29
+ - id: label_basic_content
30
+ type: Span
31
+ properties:
32
+ content: Content here
33
+
34
+ - id: label_no_title
35
+ type: Label
36
+ blocks:
37
+ - id: label_no_title_content
38
+ type: Span
39
+ properties:
40
+ content: No title content
41
+
42
+ # ============================================
43
+ # COLON TESTS
44
+ # ============================================
45
+
46
+ - id: label_with_colon
47
+ type: Label
48
+ properties:
49
+ title: With Colon
50
+ colon: true
51
+ blocks:
52
+ - id: label_colon_content
53
+ type: Span
54
+ properties:
55
+ content: Colon content
56
+
57
+ - id: label_no_colon
58
+ type: Label
59
+ properties:
60
+ title: No Colon
61
+ colon: false
62
+ blocks:
63
+ - id: label_no_colon_content
64
+ type: Span
65
+ properties:
66
+ content: No colon content
67
+
68
+ # ============================================
69
+ # DISABLED TEST
70
+ # ============================================
71
+
72
+ - id: label_disabled
73
+ type: Label
74
+ properties:
75
+ title: This Should Not Appear
76
+ disabled: true
77
+ blocks:
78
+ - id: label_disabled_content
79
+ type: Span
80
+ properties:
81
+ content: Disabled content
82
+
83
+ # ============================================
84
+ # EXTRA TEXT TESTS
85
+ # ============================================
86
+
87
+ - id: label_with_extra
88
+ type: Label
89
+ properties:
90
+ title: With Extra
91
+ extra: This is helpful extra text
92
+ blocks:
93
+ - id: label_extra_content
94
+ type: Span
95
+ properties:
96
+ content: Extra content
97
+
98
+ - id: label_extra_html
99
+ type: Label
100
+ properties:
101
+ title: Extra with HTML
102
+ extra: <strong>Bold</strong> extra text
103
+ blocks:
104
+ - id: label_extra_html_content
105
+ type: Span
106
+ properties:
107
+ content: HTML extra content
108
+
109
+ # ============================================
110
+ # INLINE LAYOUT TESTS
111
+ # ============================================
112
+
113
+ - id: label_inline
114
+ type: Label
115
+ properties:
116
+ title: Inline Label
117
+ inline: true
118
+ blocks:
119
+ - id: label_inline_content
120
+ type: Span
121
+ properties:
122
+ content: Inline content
123
+
124
+ - id: label_inline_with_span
125
+ type: Label
126
+ properties:
127
+ title: Span Label
128
+ inline: true
129
+ span: 8
130
+ blocks:
131
+ - id: label_span_content
132
+ type: Span
133
+ properties:
134
+ content: Span content
135
+
136
+ # ============================================
137
+ # ALIGN TESTS
138
+ # ============================================
139
+
140
+ - id: label_align_left
141
+ type: Label
142
+ properties:
143
+ title: Left Aligned
144
+ inline: true
145
+ align: left
146
+ blocks:
147
+ - id: label_align_left_content
148
+ type: Span
149
+ properties:
150
+ content: Left aligned content
151
+
152
+ - id: label_align_right
153
+ type: Label
154
+ properties:
155
+ title: Right Aligned
156
+ inline: true
157
+ align: right
158
+ blocks:
159
+ - id: label_align_right_content
160
+ type: Span
161
+ properties:
162
+ content: Right aligned content
163
+
164
+ # ============================================
165
+ # SIZE TESTS - Use actual inputs with label disabled
166
+ # ============================================
167
+
168
+ - id: label_size_small
169
+ type: Label
170
+ properties:
171
+ title: Small Label
172
+ size: small
173
+ blocks:
174
+ - id: label_small_input
175
+ type: TextInput
176
+ properties:
177
+ size: small
178
+ label:
179
+ disabled: true
180
+
181
+ - id: label_size_default
182
+ type: Label
183
+ properties:
184
+ title: Default Label
185
+ size: default
186
+ blocks:
187
+ - id: label_default_input
188
+ type: TextInput
189
+ properties:
190
+ label:
191
+ disabled: true
192
+
193
+ - id: label_size_large
194
+ type: Label
195
+ properties:
196
+ title: Large Label
197
+ size: large
198
+ blocks:
199
+ - id: label_large_input
200
+ type: TextInput
201
+ properties:
202
+ size: large
203
+ label:
204
+ disabled: true
205
+
206
+ # ============================================
207
+ # TITLE WITH HTML
208
+ # ============================================
209
+
210
+ - id: label_html_title
211
+ type: Label
212
+ properties:
213
+ title: <em>Italic</em> Title
214
+ blocks:
215
+ - id: label_html_title_content
216
+ type: Span
217
+ properties:
218
+ content: HTML title content
219
+
220
+ # ============================================
221
+ # REQUIRED INDICATOR
222
+ # ============================================
223
+
224
+ - id: label_required
225
+ type: Label
226
+ required: true
227
+ properties:
228
+ title: Required Field
229
+ blocks:
230
+ - id: label_required_content
231
+ type: Span
232
+ properties:
233
+ content: Required content
234
+
235
+ # ============================================
236
+ # CONTENT AREA TEST
237
+ # ============================================
238
+
239
+ - id: label_with_content
240
+ type: Label
241
+ properties:
242
+ title: Content Area
243
+ blocks:
244
+ - id: nested_content
245
+ type: Span
246
+ properties:
247
+ content: Nested content block
@@ -0,0 +1,212 @@
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: Label
17
+ - id: properties.title
18
+ type: Label
19
+ properties:
20
+ title: Label title
21
+ - id: properties.title long
22
+ type: Label
23
+ properties:
24
+ title: |
25
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
26
+ - id: 'properties.align: right'
27
+ type: Label
28
+ properties:
29
+ title: Label title
30
+ align: right
31
+ - id: 'properties.align: left'
32
+ type: Label
33
+ properties:
34
+ title: Label title
35
+ align: left
36
+ - id: 'properties.colon: false'
37
+ type: Label
38
+ properties:
39
+ title: Label title
40
+ colon: false
41
+ - id: 'properties.colon: true'
42
+ type: Label
43
+ properties:
44
+ title: Label title
45
+ colon: true
46
+ - id: 'properties.disabled: true'
47
+ type: Label
48
+ properties:
49
+ title: Label title
50
+ disabled: true
51
+ - id: 'properties.inline: true'
52
+ type: Label
53
+ properties:
54
+ inline: true
55
+ title: Label title
56
+ - id: 'properties.extra: Extra long with inline true'
57
+ type: Label
58
+ properties:
59
+ inline: true
60
+ title: |
61
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
62
+ - id: 'properties.extra: Extra text'
63
+ type: Label
64
+ properties:
65
+ extra: Extra text
66
+ title: Label title
67
+ - id: 'properties.extra: Extra long'
68
+ type: Label
69
+ properties:
70
+ extra: |
71
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
72
+ title: Label title
73
+ - id: 'properties.extra: Extra long with inline = true'
74
+ type: Label
75
+ properties:
76
+ inline: true
77
+ extra: |
78
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
79
+ title: Label title
80
+ - id: 'properties.extra: Extra long with inline = true, size = small'
81
+ type: Label
82
+ properties:
83
+ inline: true
84
+ size: small
85
+ extra: |
86
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
87
+ title: Label title
88
+ - id: 'properties.extra: Extra long with inline = true, size = large'
89
+ type: Label
90
+ properties:
91
+ inline: true
92
+ size: large
93
+ extra: |
94
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
95
+ title: Label title
96
+ - id: 'properties.extraStyle: border 1px purple'
97
+ type: Label
98
+ properties:
99
+ title: Label title
100
+ extra: Extra text
101
+ extraStyle:
102
+ border: 1px solid purple
103
+ - id: 'properties.feedbackStyle: border 1px blue'
104
+ type: Label
105
+ properties:
106
+ title: Label title
107
+ extra: The extra content
108
+ feedbackStyle:
109
+ border: 1px solid blue
110
+ - id: 'properties.span: 2'
111
+ type: Label
112
+ properties:
113
+ span: 2
114
+ title: This is the long label title wrapped by short span
115
+ - id: 'properties.span: 2 with long work title'
116
+ type: Label
117
+ properties:
118
+ span: 2
119
+ title: Thisisthelonglabeltitlea
120
+ - id: inline and long extra default size
121
+ type: Label
122
+ properties:
123
+ inline: true
124
+ title: |
125
+ Lorem ipsum dolor sit amet
126
+ extra: |
127
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
128
+ - id: inline and long extra small size
129
+ type: Label
130
+ properties:
131
+ size: small
132
+ inline: true
133
+ title: |
134
+ Lorem ipsum dolor sit amet
135
+ extra: |
136
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
137
+ - id: inline and long extra large size
138
+ type: Label
139
+ properties:
140
+ size: large
141
+ inline: true
142
+ title: |
143
+ Lorem ipsum dolor sit amet
144
+ extra: |
145
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
146
+ - id: span, align right and long extra for default size
147
+ type: Label
148
+ properties:
149
+ span: 8
150
+ align: right
151
+ title: |
152
+ Lorem
153
+ extra: |
154
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
155
+ - id: span, align right and long extra for small size
156
+ type: Label
157
+ properties:
158
+ span: 8
159
+ align: right
160
+ size: small
161
+ title: |
162
+ Lorem
163
+ extra: |
164
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
165
+ - id: span, align right and long extra for large size
166
+ type: Label
167
+ properties:
168
+ span: 8
169
+ align: right
170
+ size: large
171
+ title: |
172
+ Lorem
173
+ extra: |
174
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
175
+ - id: span, align right, long title and long extra for default size
176
+ type: Label
177
+ properties:
178
+ span: 8
179
+ align: right
180
+ title: |
181
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
182
+ extra: |
183
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
184
+ - id: span, align right, long title and long extra for small size
185
+ type: Label
186
+ properties:
187
+ span: 8
188
+ align: right
189
+ size: small
190
+ title: |
191
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
192
+ extra: |
193
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
194
+ - id: span, align right, long title and long extra for large size
195
+ type: Label
196
+ properties:
197
+ span: 8
198
+ align: right
199
+ size: large
200
+ title: |
201
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
202
+ extra: |
203
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commod
204
+ - id: 'properties.title: html in title'
205
+ type: Label
206
+ properties:
207
+ title: <span style="background:yellow;">html in title</span>
208
+ - id: 'properties.extra: html in extra'
209
+ type: Label
210
+ properties:
211
+ title: label title
212
+ extra: <span style="background:yellow;">html in extra</span>