@prokodo/ui 0.1.15 → 1.0.1

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/LICENSE +187 -26
  2. package/NOTICE +24 -0
  3. package/README.md +32 -302
  4. package/dist/components/RTE/RTE.css +180 -68
  5. package/dist/components/RTE/RTE.module.css +180 -68
  6. package/dist/components/RTE/RTE.module.scss.js +10 -0
  7. package/dist/components/RTE/RTE.view.js +5 -1
  8. package/dist/components/accordion/Accordion.css +120 -67
  9. package/dist/components/accordion/Accordion.module.css +120 -67
  10. package/dist/components/accordion/Accordion.module.scss.js +12 -5
  11. package/dist/components/accordion/Accordion.view.js +3 -3
  12. package/dist/components/autocomplete/Autocomplete.css +111 -95
  13. package/dist/components/autocomplete/Autocomplete.module.css +111 -95
  14. package/dist/components/autocomplete/Autocomplete.module.scss.js +11 -4
  15. package/dist/components/autocomplete/Autocomplete.view.js +3 -1
  16. package/dist/components/avatar/Avatar.css +11 -8
  17. package/dist/components/avatar/Avatar.module.css +11 -8
  18. package/dist/components/avatar/Avatar.module.scss.js +1 -0
  19. package/dist/components/avatar/Avatar.view.js +5 -5
  20. package/dist/components/button/Button.client.js +12 -16
  21. package/dist/components/button/Button.css +85 -137
  22. package/dist/components/button/Button.module.css +85 -137
  23. package/dist/components/button/Button.module.scss.js +15 -19
  24. package/dist/components/button/Button.view.js +6 -2
  25. package/dist/components/calendly/Calendly.css +132 -0
  26. package/dist/components/calendly/Calendly.module.css +132 -0
  27. package/dist/components/calendly/Calendly.module.scss.js +6 -0
  28. package/dist/components/calendly/Calendly.view.js +12 -6
  29. package/dist/components/card/Card.client.js +6 -1
  30. package/dist/components/card/Card.css +67 -32
  31. package/dist/components/card/Card.module.css +67 -32
  32. package/dist/components/card/Card.module.scss.js +8 -2
  33. package/dist/components/card/Card.view.js +3 -3
  34. package/dist/components/carousel/Carousel.client.js +2 -4
  35. package/dist/components/carousel/Carousel.css +8 -4
  36. package/dist/components/carousel/Carousel.module.css +8 -4
  37. package/dist/components/checkbox/Checkbox.css +100 -79
  38. package/dist/components/checkbox/Checkbox.module.css +100 -79
  39. package/dist/components/checkbox/Checkbox.module.scss.js +11 -4
  40. package/dist/components/checkbox/Checkbox.view.js +3 -1
  41. package/dist/components/checkbox-group/CheckboxGroup.css +39 -6
  42. package/dist/components/checkbox-group/CheckboxGroup.module.css +39 -6
  43. package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +8 -0
  44. package/dist/components/checkbox-group/CheckboxGroup.view.js +3 -1
  45. package/dist/components/chip/Chip.css +185 -61
  46. package/dist/components/chip/Chip.module.css +185 -61
  47. package/dist/components/chip/Chip.module.scss.js +13 -17
  48. package/dist/components/chip/Chip.view.js +3 -4
  49. package/dist/components/datePicker/DatePicker.client.js +211 -66
  50. package/dist/components/datePicker/DatePicker.css +940 -0
  51. package/dist/components/datePicker/DatePicker.module.css +940 -0
  52. package/dist/components/datePicker/DatePicker.module.scss.js +62 -0
  53. package/dist/components/datePicker/DatePicker.server.js +31 -1
  54. package/dist/components/datePicker/DatePicker.utils.js +103 -0
  55. package/dist/components/datePicker/DatePicker.view.js +113 -41
  56. package/dist/components/datePicker/DatePickerDialog.view.js +291 -0
  57. package/dist/components/dialog/Dialog.css +107 -132
  58. package/dist/components/dialog/Dialog.module.css +107 -132
  59. package/dist/components/dialog/Dialog.module.scss.js +13 -8
  60. package/dist/components/drawer/Drawer.css +8 -8
  61. package/dist/components/drawer/Drawer.module.css +8 -8
  62. package/dist/components/dynamic-list/DynamicList.css +20 -12
  63. package/dist/components/dynamic-list/DynamicList.module.css +20 -12
  64. package/dist/components/dynamic-list/DynamicList.module.scss.js +1 -0
  65. package/dist/components/dynamic-list/DynamicList.view.js +78 -46
  66. package/dist/components/form/Form.view.js +3 -3
  67. package/dist/components/form/FormField.client.js +51 -2
  68. package/dist/components/form/FormField.server.js +10 -4
  69. package/dist/components/form/FormResponse.js +2 -2
  70. package/dist/components/grid/Grid.css +1 -1
  71. package/dist/components/grid/Grid.module.css +1 -1
  72. package/dist/components/headline/Headline.css +16 -16
  73. package/dist/components/headline/Headline.js +5 -6
  74. package/dist/components/headline/Headline.module.css +16 -16
  75. package/dist/components/headline/Headline.module.scss.js +1 -1
  76. package/dist/components/headline/Headline.variants.js +4 -1
  77. package/dist/components/icon/Icon.css +14 -14
  78. package/dist/components/icon/Icon.module.css +14 -14
  79. package/dist/components/image/Image.css +4 -3
  80. package/dist/components/image/Image.module.css +4 -3
  81. package/dist/components/image-text/ImageText.css +43 -14
  82. package/dist/components/image-text/ImageText.js +61 -53
  83. package/dist/components/image-text/ImageText.module.css +43 -14
  84. package/dist/components/image-text/ImageText.module.scss.js +11 -2
  85. package/dist/components/input/Input.css +197 -115
  86. package/dist/components/input/Input.module.css +197 -115
  87. package/dist/components/input/Input.module.scss.js +19 -3
  88. package/dist/components/input/Input.view.js +87 -57
  89. package/dist/components/inputOTP/InputOTP.client.js +165 -0
  90. package/dist/components/inputOTP/InputOTP.css +155 -7
  91. package/dist/components/inputOTP/InputOTP.js +10 -195
  92. package/dist/components/inputOTP/InputOTP.lazy.js +12 -0
  93. package/dist/components/inputOTP/InputOTP.module.css +155 -7
  94. package/dist/components/inputOTP/InputOTP.module.scss.js +14 -0
  95. package/dist/components/inputOTP/InputOTP.server.js +32 -0
  96. package/dist/components/inputOTP/InputOTP.view.js +117 -0
  97. package/dist/components/label/Label.css +33 -14
  98. package/dist/components/label/Label.js +37 -35
  99. package/dist/components/label/Label.module.css +33 -14
  100. package/dist/components/label/Label.module.scss.js +9 -2
  101. package/dist/components/link/Link.css +13 -13
  102. package/dist/components/link/Link.module.css +13 -13
  103. package/dist/components/link/Link.view.js +14 -12
  104. package/dist/components/list/List.css +71 -32
  105. package/dist/components/list/List.js +25 -8
  106. package/dist/components/list/List.module.css +71 -32
  107. package/dist/components/list/List.module.scss.js +1 -1
  108. package/dist/components/loading/Loading.view.js +22 -2
  109. package/dist/components/lottie/Lottie.css +16 -0
  110. package/dist/components/lottie/Lottie.module.css +16 -0
  111. package/dist/components/lottie/Lottie.module.scss.js +6 -2
  112. package/dist/components/map/Map.css +130 -0
  113. package/dist/components/map/Map.js +5 -2
  114. package/dist/components/map/Map.module.css +130 -0
  115. package/dist/components/map/Map.module.scss.js +6 -0
  116. package/dist/components/pagination/Pagination.css +127 -11
  117. package/dist/components/pagination/Pagination.module.css +127 -11
  118. package/dist/components/pagination/Pagination.module.scss.js +12 -4
  119. package/dist/components/pagination/Pagination.view.js +13 -1
  120. package/dist/components/post-item/PostItem.css +16 -16
  121. package/dist/components/post-item/PostItem.module.css +16 -16
  122. package/dist/components/post-item/PostItem.view.js +14 -5
  123. package/dist/components/post-teaser/PostTeaser.css +13 -13
  124. package/dist/components/post-teaser/PostTeaser.module.css +13 -13
  125. package/dist/components/post-teaser/PostTeaser.view.js +10 -3
  126. package/dist/components/post-widget/PostWidget.css +6 -8
  127. package/dist/components/post-widget/PostWidget.module.css +6 -8
  128. package/dist/components/post-widget/PostWidget.view.js +12 -5
  129. package/dist/components/post-widget-carousel/PostWidgetCarousel.css +7 -7
  130. package/dist/components/post-widget-carousel/PostWidgetCarousel.module.css +7 -7
  131. package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +30 -13
  132. package/dist/components/progressBar/ProgressBar.css +4 -4
  133. package/dist/components/progressBar/ProgressBar.module.css +4 -4
  134. package/dist/components/progressBar/ProgressBar.view.js +2 -2
  135. package/dist/components/quote/Quote.css +21 -6
  136. package/dist/components/quote/Quote.js +5 -5
  137. package/dist/components/quote/Quote.module.css +21 -6
  138. package/dist/components/quote/Quote.module.scss.js +5 -0
  139. package/dist/components/rating/Rating.css +34 -21
  140. package/dist/components/rating/Rating.module.css +34 -21
  141. package/dist/components/rating/Rating.module.scss.js +8 -0
  142. package/dist/components/rating/Rating.view.js +4 -2
  143. package/dist/components/rich-text/RichText.client.js +3 -3
  144. package/dist/components/rich-text/RichText.css +47 -31
  145. package/dist/components/rich-text/RichText.module.css +47 -31
  146. package/dist/components/rich-text/RichText.server.js +1 -1
  147. package/dist/components/select/Select.client.js +154 -1
  148. package/dist/components/select/Select.css +542 -221
  149. package/dist/components/select/Select.module.css +542 -221
  150. package/dist/components/select/Select.module.scss.js +57 -14
  151. package/dist/components/select/Select.view.js +40 -14
  152. package/dist/components/sidenav/SideNav.client.js +24 -1
  153. package/dist/components/sidenav/SideNav.css +89 -21
  154. package/dist/components/sidenav/SideNav.module.css +89 -21
  155. package/dist/components/sidenav/SideNav.module.scss.js +6 -1
  156. package/dist/components/sidenav/SideNav.view.js +69 -14
  157. package/dist/components/skeleton/Skeleton.css +7 -7
  158. package/dist/components/skeleton/Skeleton.module.css +7 -7
  159. package/dist/components/slider/Slider.css +177 -112
  160. package/dist/components/slider/Slider.module.css +177 -112
  161. package/dist/components/slider/Slider.module.scss.js +11 -2
  162. package/dist/components/slider/Slider.view.js +113 -101
  163. package/dist/components/snackbar/Snackbar.css +125 -64
  164. package/dist/components/snackbar/Snackbar.module.css +125 -64
  165. package/dist/components/snackbar/Snackbar.module.scss.js +11 -13
  166. package/dist/components/snackbar/Snackbar.view.js +2 -2
  167. package/dist/components/stepper/Stepper.client.js +21 -6
  168. package/dist/components/stepper/Stepper.css +46 -11
  169. package/dist/components/stepper/Stepper.module.css +46 -11
  170. package/dist/components/stepper/Stepper.module.scss.js +7 -0
  171. package/dist/components/stepper/Stepper.server.js +2 -0
  172. package/dist/components/stepper/Stepper.view.js +6 -1
  173. package/dist/components/switch/Switch.css +108 -84
  174. package/dist/components/switch/Switch.module.css +108 -84
  175. package/dist/components/switch/Switch.module.scss.js +14 -12
  176. package/dist/components/switch/Switch.view.js +9 -8
  177. package/dist/components/table/Table.css +19 -14
  178. package/dist/components/table/Table.module.css +19 -14
  179. package/dist/components/tabs/Tabs.css +53 -27
  180. package/dist/components/tabs/Tabs.module.css +53 -27
  181. package/dist/components/tabs/Tabs.module.scss.js +7 -2
  182. package/dist/components/tabs/Tabs.view.js +4 -2
  183. package/dist/components/teaser/Teaser.css +5 -5
  184. package/dist/components/teaser/Teaser.js +4 -4
  185. package/dist/components/teaser/Teaser.module.css +5 -5
  186. package/dist/components/tooltip/Tooltip.client.js +14 -4
  187. package/dist/components/tooltip/Tooltip.css +46 -9
  188. package/dist/components/tooltip/Tooltip.module.css +46 -9
  189. package/dist/components/tooltip/Tooltip.module.scss.js +5 -1
  190. package/dist/components/tooltip/Tooltip.view.js +6 -1
  191. package/dist/constants/project.js +1 -1
  192. package/dist/theme.css +3269 -1588
  193. package/dist/tsconfig.build.tsbuildinfo +1 -1
  194. package/dist/types/components/RTE/RTE.d.ts +5 -0
  195. package/dist/types/components/RTE/RTE.lazy.d.ts +5 -0
  196. package/dist/types/components/RTE/RTE.view.d.ts +1 -1
  197. package/dist/types/components/accordion/Accordion.d.ts +1 -1
  198. package/dist/types/components/accordion/Accordion.lazy.d.ts +1 -1
  199. package/dist/types/components/accordion/Accordion.model.d.ts +1 -1
  200. package/dist/types/components/accordion/Accordion.view.d.ts +1 -1
  201. package/dist/types/components/autocomplete/Autocomplete.model.d.ts +2 -0
  202. package/dist/types/components/autocomplete/Autocomplete.view.d.ts +1 -1
  203. package/dist/types/components/avatar/Avatar.d.ts +1 -1
  204. package/dist/types/components/avatar/Avatar.lazy.d.ts +1 -1
  205. package/dist/types/components/avatar/Avatar.model.d.ts +1 -1
  206. package/dist/types/components/avatar/Avatar.view.d.ts +1 -1
  207. package/dist/types/components/calendly/Calendly.view.d.ts +1 -1
  208. package/dist/types/components/card/Card.model.d.ts +1 -1
  209. package/dist/types/components/card/Card.view.d.ts +1 -1
  210. package/dist/types/components/checkbox/Checkbox.d.ts +1 -0
  211. package/dist/types/components/checkbox/Checkbox.lazy.d.ts +1 -0
  212. package/dist/types/components/checkbox/Checkbox.model.d.ts +2 -0
  213. package/dist/types/components/checkbox/Checkbox.view.d.ts +1 -1
  214. package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +2 -0
  215. package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +1 -1
  216. package/dist/types/components/datePicker/DatePicker.model.d.ts +70 -1
  217. package/dist/types/components/datePicker/DatePicker.utils.d.ts +10 -0
  218. package/dist/types/components/datePicker/DatePicker.view.d.ts +7 -4
  219. package/dist/types/components/datePicker/DatePickerDialog.view.d.ts +4 -0
  220. package/dist/types/components/dynamic-list/DynamicList.model.d.ts +2 -0
  221. package/dist/types/components/dynamic-list/DynamicList.view.d.ts +1 -1
  222. package/dist/types/components/form/Form.d.ts +1 -1
  223. package/dist/types/components/form/Form.lazy.d.ts +1 -1
  224. package/dist/types/components/form/Form.model.d.ts +19 -4
  225. package/dist/types/components/form/FormField.client.d.ts +2 -2
  226. package/dist/types/components/form/FormField.d.ts +1 -1
  227. package/dist/types/components/form/FormField.lazy.d.ts +1 -1
  228. package/dist/types/components/form/FormField.server.d.ts +2 -2
  229. package/dist/types/components/headline/Headline.model.d.ts +1 -1
  230. package/dist/types/components/input/Input.model.d.ts +8 -1
  231. package/dist/types/components/input/Input.view.d.ts +1 -1
  232. package/dist/types/components/inputOTP/InputOTP.client.d.ts +4 -0
  233. package/dist/types/components/inputOTP/InputOTP.d.ts +10 -3
  234. package/dist/types/components/inputOTP/InputOTP.lazy.d.ts +11 -0
  235. package/dist/types/components/inputOTP/InputOTP.model.d.ts +10 -0
  236. package/dist/types/components/inputOTP/InputOTP.server.d.ts +3 -0
  237. package/dist/types/components/inputOTP/InputOTP.view.d.ts +3 -0
  238. package/dist/types/components/inputOTP/index.d.ts +1 -1
  239. package/dist/types/components/label/Label.model.d.ts +2 -0
  240. package/dist/types/components/link/Link.model.d.ts +1 -1
  241. package/dist/types/components/link/Link.view.d.ts +1 -1
  242. package/dist/types/components/list/List.d.ts +1 -1
  243. package/dist/types/components/list/List.model.d.ts +14 -5
  244. package/dist/types/components/list/index.d.ts +1 -1
  245. package/dist/types/components/loading/Loading.model.d.ts +2 -0
  246. package/dist/types/components/loading/index.d.ts +1 -1
  247. package/dist/types/components/pagination/Pagination.model.d.ts +2 -0
  248. package/dist/types/components/pagination/Pagination.view.d.ts +1 -1
  249. package/dist/types/components/post-item/PostItem.model.d.ts +2 -1
  250. package/dist/types/components/post-teaser/PostTeaser.model.d.ts +2 -1
  251. package/dist/types/components/post-widget/PostWidget.view.d.ts +1 -1
  252. package/dist/types/components/progressBar/ProgressBar.d.ts +1 -1
  253. package/dist/types/components/progressBar/ProgressBar.lazy.d.ts +1 -1
  254. package/dist/types/components/progressBar/ProgressBar.model.d.ts +3 -2
  255. package/dist/types/components/progressBar/ProgressBar.view.d.ts +1 -1
  256. package/dist/types/components/progressBar/index.d.ts +1 -1
  257. package/dist/types/components/quote/Quote.model.d.ts +1 -1
  258. package/dist/types/components/rating/Rating.model.d.ts +2 -0
  259. package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
  260. package/dist/types/components/rich-text/RichText.d.ts +1 -1
  261. package/dist/types/components/rich-text/RichText.lazy.d.ts +1 -1
  262. package/dist/types/components/rich-text/RichText.model.d.ts +1 -1
  263. package/dist/types/components/select/Select.model.d.ts +2 -0
  264. package/dist/types/components/select/Select.view.d.ts +1 -1
  265. package/dist/types/components/sidenav/SideNav.client.d.ts +1 -1
  266. package/dist/types/components/sidenav/SideNav.model.d.ts +16 -2
  267. package/dist/types/components/sidenav/SideNav.view.d.ts +1 -1
  268. package/dist/types/components/slider/Slider.model.d.ts +2 -0
  269. package/dist/types/components/snackbar/Snackbar.model.d.ts +3 -2
  270. package/dist/types/components/snackbar/Snackbar.view.d.ts +3 -2
  271. package/dist/types/components/snackbar/index.d.ts +1 -1
  272. package/dist/types/components/stepper/Stepper.d.ts +1 -0
  273. package/dist/types/components/stepper/Stepper.lazy.d.ts +1 -0
  274. package/dist/types/components/stepper/Stepper.model.d.ts +3 -0
  275. package/dist/types/components/stepper/Stepper.server.d.ts +1 -1
  276. package/dist/types/components/switch/Switch.d.ts +2 -2
  277. package/dist/types/components/switch/Switch.lazy.d.ts +2 -2
  278. package/dist/types/components/switch/Switch.model.d.ts +3 -4
  279. package/dist/types/components/tabs/Tabs.model.d.ts +2 -0
  280. package/dist/types/components/tabs/Tabs.view.d.ts +1 -1
  281. package/dist/types/components/teaser/Teaser.model.d.ts +1 -1
  282. package/dist/types/components/tooltip/Tooltip.model.d.ts +2 -0
  283. package/package.json +37 -22
@@ -131,41 +131,49 @@
131
131
  /* ───────────────── helper / error text */
132
132
  }
133
133
  .prokodo-DynamicList__label {
134
- margin-bottom: 0.75rem;
134
+ margin-bottom: var(--pk-dynamic-list-label-mb);
135
135
  }
136
136
  .prokodo-DynamicList__list {
137
137
  display: flex;
138
138
  align-items: baseline;
139
139
  justify-content: space-between;
140
- gap: 1rem;
140
+ gap: var(--pk-dynamic-list-gap);
141
141
  list-style-type: none;
142
142
  padding: 0;
143
143
  margin-top: 0;
144
144
  }
145
145
  .prokodo-DynamicList__list__item {
146
146
  display: flex;
147
+ flex-direction: row;
147
148
  align-items: center;
148
- flex-direction: column;
149
+ gap: var(--pk-space-sm);
149
150
  width: 100%;
150
151
  }
151
152
  .prokodo-DynamicList__list__item--is-multi {
153
+ flex-direction: column;
152
154
  align-items: flex-start;
155
+ width: auto;
156
+ }
157
+ .prokodo-DynamicList__field {
158
+ flex: 1 1;
159
+ min-width: 0;
153
160
  }
154
161
  .prokodo-DynamicList__field--is-multi {
155
- margin-bottom: 1rem;
162
+ margin-bottom: var(--pk-dynamic-list-field-mb);
156
163
  }
157
164
  .prokodo-DynamicList__field--is-multi:last-of-type {
158
165
  margin-bottom: 0;
159
166
  }
160
167
  .prokodo-DynamicList__delete__button--is-multi {
161
- margin-top: 0.5rem;
168
+ margin-top: var(--pk-dynamic-list-delete-mt);
169
+ align-self: flex-start;
162
170
  }
163
171
  .prokodo-DynamicList__helperText {
164
- padding-left: 1.5rem;
165
- padding-top: 0.75rem;
172
+ padding-left: var(--pk-dynamic-list-helper-pl);
173
+ padding-top: var(--pk-dynamic-list-helper-pt);
166
174
  display: flex;
167
- color: var(--color-grey-300);
168
- width: 80%;
175
+ color: var(--pk-dynamic-list-helper-fg);
176
+ width: var(--pk-dynamic-list-helper-w);
169
177
  font-weight: 400;
170
178
  font-size: 1rem;
171
179
  font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
@@ -188,12 +196,12 @@
188
196
  line-height: 1.4;
189
197
  }
190
198
  }
191
- html[data-theme=dark] .prokodo-DynamicList__helperText {
192
- color: var(--color-grey-700);
199
+ [data-theme="dark"] .prokodo-DynamicList__helperText, .pk-theme-dark .prokodo-DynamicList__helperText {
200
+ color: var(--pk-palette-grey-400);
193
201
  }
194
202
  .prokodo-DynamicList__helperText__content {
195
203
  width: 100%;
196
204
  }
197
205
  .prokodo-DynamicList__helperText__content--is-error {
198
- color: var(--color-error);
206
+ color: var(--pk-dynamic-list-error-fg);
199
207
  }
@@ -131,41 +131,49 @@
131
131
  /* ───────────────── helper / error text */
132
132
  }
133
133
  .prokodo-DynamicList__label {
134
- margin-bottom: 0.75rem;
134
+ margin-bottom: var(--pk-dynamic-list-label-mb);
135
135
  }
136
136
  .prokodo-DynamicList__list {
137
137
  display: flex;
138
138
  align-items: baseline;
139
139
  justify-content: space-between;
140
- gap: 1rem;
140
+ gap: var(--pk-dynamic-list-gap);
141
141
  list-style-type: none;
142
142
  padding: 0;
143
143
  margin-top: 0;
144
144
  }
145
145
  .prokodo-DynamicList__list__item {
146
146
  display: flex;
147
+ flex-direction: row;
147
148
  align-items: center;
148
- flex-direction: column;
149
+ gap: var(--pk-space-sm);
149
150
  width: 100%;
150
151
  }
151
152
  .prokodo-DynamicList__list__item--is-multi {
153
+ flex-direction: column;
152
154
  align-items: flex-start;
155
+ width: auto;
156
+ }
157
+ .prokodo-DynamicList__field {
158
+ flex: 1 1;
159
+ min-width: 0;
153
160
  }
154
161
  .prokodo-DynamicList__field--is-multi {
155
- margin-bottom: 1rem;
162
+ margin-bottom: var(--pk-dynamic-list-field-mb);
156
163
  }
157
164
  .prokodo-DynamicList__field--is-multi:last-of-type {
158
165
  margin-bottom: 0;
159
166
  }
160
167
  .prokodo-DynamicList__delete__button--is-multi {
161
- margin-top: 0.5rem;
168
+ margin-top: var(--pk-dynamic-list-delete-mt);
169
+ align-self: flex-start;
162
170
  }
163
171
  .prokodo-DynamicList__helperText {
164
- padding-left: 1.5rem;
165
- padding-top: 0.75rem;
172
+ padding-left: var(--pk-dynamic-list-helper-pl);
173
+ padding-top: var(--pk-dynamic-list-helper-pt);
166
174
  display: flex;
167
- color: var(--color-grey-300);
168
- width: 80%;
175
+ color: var(--pk-dynamic-list-helper-fg);
176
+ width: var(--pk-dynamic-list-helper-w);
169
177
  font-weight: 400;
170
178
  font-size: 1rem;
171
179
  font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
@@ -188,12 +196,12 @@
188
196
  line-height: 1.4;
189
197
  }
190
198
  }
191
- html[data-theme=dark] .prokodo-DynamicList__helperText {
192
- color: var(--color-grey-700);
199
+ [data-theme="dark"] .prokodo-DynamicList__helperText, .pk-theme-dark .prokodo-DynamicList__helperText {
200
+ color: var(--pk-palette-grey-400);
193
201
  }
194
202
  .prokodo-DynamicList__helperText__content {
195
203
  width: 100%;
196
204
  }
197
205
  .prokodo-DynamicList__helperText__content--is-error {
198
- color: var(--color-error);
206
+ color: var(--pk-dynamic-list-error-fg);
199
207
  }
@@ -4,6 +4,7 @@ const styles = {
4
4
  "prokodo-DynamicList__list": "prokodo-DynamicList__list",
5
5
  "prokodo-DynamicList__list__item": "prokodo-DynamicList__list__item",
6
6
  "prokodo-DynamicList__list__item--is-multi": "prokodo-DynamicList__list__item--is-multi",
7
+ "prokodo-DynamicList__field": "prokodo-DynamicList__field",
7
8
  "prokodo-DynamicList__field--is-multi": "prokodo-DynamicList__field--is-multi",
8
9
  "prokodo-DynamicList__delete__button--is-multi": "prokodo-DynamicList__delete__button--is-multi",
9
10
  "prokodo-DynamicList__helperText": "prokodo-DynamicList__helperText",
@@ -31,7 +31,8 @@ function DynamicListView({
31
31
  "items"
32
32
  ),
33
33
  errorText,
34
- helperText
34
+ helperText,
35
+ color
35
36
  }) {
36
37
  const isError = Boolean(errorText);
37
38
  const hasHelper = Boolean(helperText);
@@ -44,7 +45,11 @@ function DynamicListView({
44
45
  {
45
46
  "aria-describedby": isError ? errorId : helperId,
46
47
  "aria-labelledby": `${name}-legend`,
47
- className: bem(void 0, void 0, className),
48
+ className: bem(
49
+ void 0,
50
+ color ? { [color]: true } : void 0,
51
+ className
52
+ ),
48
53
  children: [
49
54
  isString(label) && /* @__PURE__ */ jsx(
50
55
  Label,
@@ -52,6 +57,7 @@ function DynamicListView({
52
57
  ...labelProps,
53
58
  "aria-disabled": disabled,
54
59
  className: bem("label", void 0, labelProps == null ? void 0 : labelProps.className),
60
+ color,
55
61
  error: isError,
56
62
  id: (labelProps == null ? void 0 : labelProps.id) ?? `${name}-legend`,
57
63
  label,
@@ -65,50 +71,71 @@ function DynamicListView({
65
71
  "aria-describedby": errorId ?? helperId,
66
72
  className: bem("list", mod, classNameList),
67
73
  children: [
68
- /* @__PURE__ */ jsx("li", { className: bem("list__item"), children: fields.map(({ fieldType, ...field }) => {
69
- switch (fieldType) {
70
- case "select":
71
- return /* @__PURE__ */ jsx(
72
- Select,
73
- {
74
- fullWidth: true,
75
- ...field,
76
- className: bem("field", mod, field == null ? void 0 : field.className),
77
- "data-field": field == null ? void 0 : field.name,
78
- "data-index": idx,
79
- disabled: disabled ?? (field == null ? void 0 : field.disabled),
80
- id: `${name}-${idx}-${field.name}`,
81
- required: required ?? (field == null ? void 0 : field.required),
82
- name: single ? `${name}[${idx}]` : `${name}[${idx}].${field.name}`,
83
- value: single ? item : (
84
- /* istanbul ignore next */
85
- item[(field == null ? void 0 : field.name) ?? /* istanbul ignore next */
74
+ /* @__PURE__ */ jsxs("li", { className: bem("list__item", mod), children: [
75
+ fields.map(({ fieldType, ...field }) => {
76
+ switch (fieldType) {
77
+ case "select":
78
+ return /* @__PURE__ */ jsx(
79
+ Select,
80
+ {
81
+ fullWidth: true,
82
+ color,
83
+ ...field,
84
+ className: bem("field", mod, field == null ? void 0 : field.className),
85
+ "data-field": field == null ? void 0 : field.name,
86
+ "data-index": idx,
87
+ disabled: disabled ?? (field == null ? void 0 : field.disabled),
88
+ id: `${name}-${idx}-${field.name}`,
89
+ required: required ?? (field == null ? void 0 : field.required),
90
+ name: single ? `${name}[${idx}]` : `${name}[${idx}].${field.name}`,
91
+ value: single ? item : (
92
+ /* istanbul ignore next */
93
+ item[(field == null ? void 0 : field.name) ?? /* istanbul ignore next */
94
+ ""]
95
+ )
96
+ },
97
+ field.name
98
+ );
99
+ default:
100
+ return /* @__PURE__ */ jsx(
101
+ Input,
102
+ {
103
+ fullWidth: true,
104
+ color,
105
+ ...field,
106
+ className: bem("field", mod, field == null ? void 0 : field.className),
107
+ "data-field": field == null ? void 0 : field.name,
108
+ "data-index": idx,
109
+ disabled: disabled ?? (field == null ? void 0 : field.disabled),
110
+ id: `${name}-${idx}-${field.name}`,
111
+ required: required ?? (field == null ? void 0 : field.required),
112
+ name: single ? `${name}[${idx}]` : `${name}[${idx}].${field.name}`,
113
+ value: single ? item : item[(field == null ? void 0 : field.name) ?? /* istanbul ignore next */
86
114
  ""]
87
- )
88
- },
89
- field.name
90
- );
91
- default:
92
- return /* @__PURE__ */ jsx(
93
- Input,
94
- {
95
- fullWidth: true,
96
- ...field,
97
- className: bem("field", mod, field == null ? void 0 : field.className),
98
- "data-field": field == null ? void 0 : field.name,
99
- "data-index": idx,
100
- disabled: disabled ?? (field == null ? void 0 : field.disabled),
101
- id: `${name}-${idx}-${field.name}`,
102
- required: required ?? (field == null ? void 0 : field.required),
103
- name: single ? `${name}[${idx}]` : `${name}[${idx}].${field.name}`,
104
- value: single ? item : item[(field == null ? void 0 : field.name) ?? /* istanbul ignore next */
105
- ""]
106
- },
107
- field.name
108
- );
109
- }
110
- }) }),
111
- /* @__PURE__ */ jsx(
115
+ },
116
+ field.name
117
+ );
118
+ }
119
+ }),
120
+ single && /* @__PURE__ */ jsx(
121
+ Button,
122
+ {
123
+ "aria-label": `Remove ${label} entry ${idx + 1}`,
124
+ color: "error",
125
+ "data-index": idx,
126
+ iconProps: {
127
+ name: "Delete02Icon"
128
+ },
129
+ ...buttonDeleteProps,
130
+ className: bem(
131
+ "delete__button",
132
+ mod,
133
+ buttonDeleteProps == null ? void 0 : buttonDeleteProps.className
134
+ )
135
+ }
136
+ )
137
+ ] }),
138
+ !single && /* @__PURE__ */ jsx(
112
139
  Button,
113
140
  {
114
141
  "aria-label": `Remove ${label} entry ${idx + 1}`,
@@ -118,7 +145,11 @@ function DynamicListView({
118
145
  name: "Delete02Icon"
119
146
  },
120
147
  ...buttonDeleteProps,
121
- className: bem("delete__button", mod, buttonDeleteProps == null ? void 0 : buttonDeleteProps.className)
148
+ className: bem(
149
+ "delete__button",
150
+ mod,
151
+ buttonDeleteProps == null ? void 0 : buttonDeleteProps.className
152
+ )
122
153
  }
123
154
  )
124
155
  ]
@@ -128,6 +159,7 @@ function DynamicListView({
128
159
  /* @__PURE__ */ jsx(
129
160
  Button,
130
161
  {
162
+ color: color !== "white" ? color : void 0,
131
163
  title: "Add item",
132
164
  variant: "outlined",
133
165
  ...buttonAddProps,
@@ -13,7 +13,7 @@ import { Headline } from "../headline/Headline.js";
13
13
  const bem = create(styles, "Form");
14
14
  const FormView = /* @__PURE__ */ __name(({
15
15
  id,
16
- variant = "primary",
16
+ color = "primary",
17
17
  disabled,
18
18
  action,
19
19
  label,
@@ -77,9 +77,9 @@ const FormView = /* @__PURE__ */ __name(({
77
77
  {
78
78
  ...field,
79
79
  key: field.name,
80
+ color,
80
81
  disabled: disabled !== void 0 ? disabled : field == null ? void 0 : field.disabled,
81
82
  messagesFields,
82
- variant,
83
83
  ...fieldProps
84
84
  }
85
85
  )),
@@ -110,7 +110,7 @@ const FormView = /* @__PURE__ */ __name(({
110
110
  type: "submit",
111
111
  ...button,
112
112
  className: bem("footer__submit", void 0, button == null ? void 0 : button.className),
113
- color: (button == null ? void 0 : button.color) ?? variant,
113
+ color: (button == null ? void 0 : button.color) ?? color,
114
114
  disabled: !isFormValid
115
115
  }
116
116
  )
@@ -5,9 +5,12 @@ import { jsx } from "react/jsx-runtime";
5
5
  import { useCallback } from "react";
6
6
  import { create } from "../../helpers/bem.js";
7
7
  import styles from "./Form.module.scss.js";
8
+ import { Autocomplete } from "../autocomplete/Autocomplete.js";
9
+ import { CheckboxGroup } from "../checkbox-group/CheckboxGroup.js";
8
10
  import { Rating } from "../rating/Rating.js";
9
11
  import { DynamicList } from "../dynamic-list/DynamicList.js";
10
12
  import { GridRow } from "../grid/GridRow.js";
13
+ import { Checkbox } from "../checkbox/Checkbox.js";
11
14
  import { DatePicker } from "../datePicker/DatePicker.js";
12
15
  import { Input } from "../input/Input.js";
13
16
  import { Select } from "../select/Select.js";
@@ -17,7 +20,7 @@ const bem = create(styles, "FormField");
17
20
  function FormFieldClient({
18
21
  fieldType,
19
22
  visible,
20
- variant,
23
+ color,
21
24
  messagesFields,
22
25
  onChange,
23
26
  onValidate,
@@ -36,7 +39,7 @@ function FormFieldClient({
36
39
  Switch,
37
40
  {
38
41
  priority: true,
39
- color: variant,
42
+ color,
40
43
  ...props,
41
44
  checked: typeof (props == null ? void 0 : props.value) === "boolean" ? Boolean(props == null ? void 0 : props.value) : props.checked,
42
45
  onChange: /* @__PURE__ */ __name((_, checked) => onChange == null ? void 0 : onChange(props, checked), "onChange")
@@ -49,6 +52,7 @@ function FormFieldClient({
49
52
  Slider,
50
53
  {
51
54
  priority: true,
55
+ color,
52
56
  ...props,
53
57
  onChange: /* @__PURE__ */ __name((_, value) => onChange == null ? void 0 : onChange(props, value == null ? void 0 : value.toString()), "onChange")
54
58
  }
@@ -60,6 +64,7 @@ function FormFieldClient({
60
64
  Select,
61
65
  {
62
66
  priority: true,
67
+ color,
63
68
  ...props,
64
69
  onChange: (
65
70
  /* istanbul ignore next */
@@ -74,6 +79,7 @@ function FormFieldClient({
74
79
  Input,
75
80
  {
76
81
  priority: true,
82
+ color,
77
83
  errorTranslations: (_a = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _a.input,
78
84
  onValidate: /* @__PURE__ */ __name((_, err) => onValidate == null ? void 0 : onValidate(props, err), "onValidate"),
79
85
  onChange: /* @__PURE__ */ __name((e) => onChange == null ? void 0 : onChange(props, e.target.value), "onChange"),
@@ -87,6 +93,7 @@ function FormFieldClient({
87
93
  DatePicker,
88
94
  {
89
95
  priority: true,
96
+ color,
90
97
  ...props,
91
98
  translations: (_b = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _b.date,
92
99
  onValidate: /* @__PURE__ */ __name((_, err) => onValidate == null ? void 0 : onValidate(props, err), "onValidate"),
@@ -107,6 +114,7 @@ function FormFieldClient({
107
114
  DynamicList,
108
115
  {
109
116
  priority: true,
117
+ color,
110
118
  ...p,
111
119
  value: p == null ? void 0 : p.value,
112
120
  fields: (_c = p == null ? void 0 : p.fields) == null ? void 0 : _c.map((field) => ({
@@ -123,6 +131,7 @@ function FormFieldClient({
123
131
  Rating,
124
132
  {
125
133
  priority: true,
134
+ color,
126
135
  ...props,
127
136
  errorTranslations: (_d = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _d.input,
128
137
  onValidate: /* @__PURE__ */ __name((_, err) => onValidate == null ? void 0 : onValidate(props, err), "onValidate"),
@@ -133,6 +142,46 @@ function FormFieldClient({
133
142
  }
134
143
  )
135
144
  );
145
+ case "checkbox":
146
+ return renderFieldContainer(
147
+ /* @__PURE__ */ jsx(
148
+ Checkbox,
149
+ {
150
+ priority: true,
151
+ color,
152
+ ...props,
153
+ checked: typeof (props == null ? void 0 : props.value) === "boolean" ? Boolean(props == null ? void 0 : props.value) : props.checked,
154
+ onChange: /* @__PURE__ */ __name((_, checked) => onChange == null ? void 0 : onChange(props, checked), "onChange")
155
+ }
156
+ )
157
+ );
158
+ case "checkbox-group":
159
+ return renderFieldContainer(
160
+ /* @__PURE__ */ jsx(
161
+ CheckboxGroup,
162
+ {
163
+ priority: true,
164
+ color,
165
+ ...props,
166
+ values: Array.isArray(props == null ? void 0 : props.value) ? props.value : props.values,
167
+ onChange: /* @__PURE__ */ __name((next) => onChange == null ? void 0 : onChange(props, next), "onChange")
168
+ }
169
+ )
170
+ );
171
+ case "autocomplete":
172
+ return renderFieldContainer(
173
+ /* @__PURE__ */ jsx(
174
+ Autocomplete,
175
+ {
176
+ priority: true,
177
+ color,
178
+ ...props,
179
+ value: typeof (props == null ? void 0 : props.value) === "string" ? props.value : props.value,
180
+ onChange: /* @__PURE__ */ __name(({ query }) => onChange == null ? void 0 : onChange(props, query), "onChange"),
181
+ onSelect: /* @__PURE__ */ __name((item) => onChange == null ? void 0 : onChange(props, item.value), "onSelect")
182
+ }
183
+ )
184
+ );
136
185
  default:
137
186
  return null;
138
187
  }
@@ -13,7 +13,7 @@ const bem = create(styles, "FormField");
13
13
  function FormFieldServer({
14
14
  fieldType,
15
15
  visible,
16
- variant,
16
+ color,
17
17
  messagesFields,
18
18
  ...props
19
19
  }) {
@@ -25,18 +25,23 @@ function FormFieldServer({
25
25
  switch (fieldType) {
26
26
  case "switch":
27
27
  return renderFieldContainer(
28
- /* @__PURE__ */ jsx(Switch, { color: variant, ...props })
28
+ /* @__PURE__ */ jsx(Switch, { color, ...props })
29
29
  );
30
30
  case "slider":
31
- return renderFieldContainer(/* @__PURE__ */ jsx(Slider, { ...props }));
31
+ return renderFieldContainer(
32
+ /* @__PURE__ */ jsx(Slider, { color, ...props })
33
+ );
32
34
  case "select":
33
- return renderFieldContainer(/* @__PURE__ */ jsx(Select, { ...props }));
35
+ return renderFieldContainer(
36
+ /* @__PURE__ */ jsx(Select, { color, ...props })
37
+ );
34
38
  case "input":
35
39
  return renderFieldContainer(
36
40
  /* @__PURE__ */ jsx(
37
41
  Input,
38
42
  {
39
43
  readOnly: true,
44
+ color,
40
45
  errorTranslations: (_a = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _a.input,
41
46
  ...props
42
47
  }
@@ -48,6 +53,7 @@ function FormFieldServer({
48
53
  DatePicker,
49
54
  {
50
55
  readOnly: true,
56
+ color,
51
57
  ...props,
52
58
  translations: (_b = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _b.date
53
59
  }
@@ -34,9 +34,9 @@ const FormResponse = /* @__PURE__ */ __name(({
34
34
  "aria-relevant": "all",
35
35
  className: bem("errors"),
36
36
  classNameDesc: bem("errors__desc"),
37
+ color: "error",
37
38
  items: listItems,
38
- role: "alert",
39
- variant: "error"
39
+ role: "alert"
40
40
  }
41
41
  )
42
42
  ] });
@@ -127,7 +127,7 @@
127
127
  .prokodo-Grid {
128
128
  display: grid;
129
129
  grid-template-columns: repeat(12, 1fr);
130
- padding: 1rem;
130
+ padding: var(--pk-grid-padding);
131
131
  }
132
132
 
133
133
  .prokodo-GridRow {
@@ -127,7 +127,7 @@
127
127
  .prokodo-Grid {
128
128
  display: grid;
129
129
  grid-template-columns: repeat(12, 1fr);
130
- padding: 1rem;
130
+ padding: var(--pk-grid-padding);
131
131
  }
132
132
 
133
133
  .prokodo-GridRow {
@@ -127,43 +127,37 @@
127
127
  */
128
128
  .prokodo-Headline {
129
129
  margin: 0;
130
- /* Basale Farb-Varianten (ohne Gradients) */
131
- /* Highlight-Grundlage */
130
+ /* Color variants (mapped to semantic design tokens) */
132
131
  /* Varianten mit Highlight (mit Gradients/Shadow) */
133
132
  /* Größen */
134
133
  /* Alignment */
135
134
  }
136
135
  .prokodo-Headline--inherit {
137
- color: var(--color-grey-900);
136
+ color: var(--pk-color-fg);
138
137
  }
139
138
  .prokodo-Headline--primary {
140
- color: var(--color-primary-500);
139
+ color: var(--pk-color-brand);
141
140
  }
142
141
  .prokodo-Headline--secondary {
143
- color: var(--color-secondary-500);
142
+ color: var(--pk-color-accent);
144
143
  }
145
144
  .prokodo-Headline--success {
146
- color: var(--color-success);
145
+ color: var(--pk-color-success);
147
146
  }
148
147
  .prokodo-Headline--info {
149
- color: var(--color-grey-300);
148
+ color: var(--pk-color-muted);
150
149
  }
151
150
  .prokodo-Headline--warning {
152
- color: var(--color-warning);
151
+ color: var(--pk-color-warning);
153
152
  }
154
153
  .prokodo-Headline--error {
155
- color: var(--color-error);
154
+ color: var(--pk-color-error);
156
155
  }
157
156
  .prokodo-Headline--white {
158
- color: #fff;
157
+ color: var(--pk-palette-white);
159
158
  }
160
159
  .prokodo-Headline--black {
161
- color: var(--color-black);
162
- }
163
- .prokodo-Headline--is-highlighted {
164
- background-clip: text;
165
- -webkit-background-clip: text;
166
- -webkit-text-fill-color: transparent;
160
+ color: var(--pk-palette-black);
167
161
  }
168
162
  .prokodo-Headline--inherit--highlighted {
169
163
  background-image: var(--gradient-text-grey);
@@ -206,6 +200,12 @@
206
200
  -webkit-text-fill-color: transparent;
207
201
  filter: drop-shadow(var(--elevation-1--text));
208
202
  }
203
+ .prokodo-Headline--info--highlighted {
204
+ background-image: var(--gradient-text-grey);
205
+ -webkit-background-clip: text;
206
+ background-clip: text;
207
+ -webkit-text-fill-color: transparent;
208
+ }
209
209
  .prokodo-Headline--xs {
210
210
  font-weight: 400;
211
211
  font-size: 1rem;
@@ -18,16 +18,15 @@ const Headline = /* @__PURE__ */ __name(({
18
18
  className,
19
19
  align,
20
20
  isRichtext = false,
21
- variant = "inherit",
21
+ color = "inherit",
22
22
  children,
23
23
  ...remainingProps
24
24
  }) => {
25
- const isHighlighted = Boolean(highlight) && POSSIBLE_HIGHLIGHTS.includes(variant);
25
+ const isHighlighted = Boolean(highlight) && POSSIBLE_HIGHLIGHTS.includes(color);
26
26
  const modifier = {
27
- [variant]: !!variant,
27
+ [color]: !!color,
28
28
  "is-highlighted": isHighlighted,
29
- highlighted: isHighlighted,
30
- [`${variant}--highlighted`]: isHighlighted,
29
+ [`${color}--highlighted`]: isHighlighted,
31
30
  [size]: typeof size === "string" && !!size,
32
31
  [`${align}`]: !!align
33
32
  };
@@ -64,11 +63,11 @@ const Headline = /* @__PURE__ */ __name(({
64
63
  animated,
65
64
  animationProps,
66
65
  className: bem("headline", void 0, className),
66
+ color,
67
67
  id,
68
68
  itemProp: void 0,
69
69
  linkComponent: void 0,
70
70
  schema,
71
- variant,
72
71
  ...remainingProps,
73
72
  overrideParagraph: (
74
73
  /* istanbul ignore next */