@prokodo/ui 1.0.3 → 1.0.5

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 (95) hide show
  1. package/dist/components/RTE/RTE.css +9 -9
  2. package/dist/components/RTE/RTE.module.css +9 -9
  3. package/dist/components/RTE/RTE.module.scss.js +12 -1
  4. package/dist/components/animatedText/AnimatedText.server.js +2 -2
  5. package/dist/components/autocomplete/Autocomplete.css +1 -1
  6. package/dist/components/autocomplete/Autocomplete.module.css +1 -1
  7. package/dist/components/autocomplete/Autocomplete.module.scss.js +3 -0
  8. package/dist/components/avatar/Avatar.view.js +1 -1
  9. package/dist/components/button/Button.client.js +2 -2
  10. package/dist/components/button/Button.css +1 -3
  11. package/dist/components/button/Button.module.css +1 -3
  12. package/dist/components/button/Button.module.scss.js +3 -3
  13. package/dist/components/button/Button.server.js +9 -2
  14. package/dist/components/card/Card.client.js +0 -2
  15. package/dist/components/card/Card.view.js +1 -0
  16. package/dist/components/carousel/Carousel.client.js +14 -9
  17. package/dist/components/checkbox/Checkbox.css +2 -2
  18. package/dist/components/checkbox/Checkbox.module.css +2 -2
  19. package/dist/components/checkbox/Checkbox.module.scss.js +1 -0
  20. package/dist/components/checkbox-group/CheckboxGroup.css +5 -5
  21. package/dist/components/checkbox-group/CheckboxGroup.module.css +5 -5
  22. package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +1 -0
  23. package/dist/components/chip/Chip.css +4 -4
  24. package/dist/components/chip/Chip.module.css +4 -4
  25. package/dist/components/datePicker/DatePicker.client.js +36 -3
  26. package/dist/components/datePicker/DatePicker.css +4 -4
  27. package/dist/components/datePicker/DatePicker.module.css +4 -4
  28. package/dist/components/datePicker/DatePicker.module.scss.js +1 -0
  29. package/dist/components/datePicker/DatePicker.view.js +3 -1
  30. package/dist/components/datePicker/DatePickerDialog.view.js +3 -1
  31. package/dist/components/dialog/Dialog.client.js +8 -0
  32. package/dist/components/dialog/Dialog.css +3 -5
  33. package/dist/components/dialog/Dialog.module.css +3 -5
  34. package/dist/components/dialog/Dialog.module.scss.js +1 -1
  35. package/dist/components/dialog/Dialog.view.js +1 -1
  36. package/dist/components/drawer/Drawer.js +1 -2
  37. package/dist/components/dynamic-list/DynamicList.css +1 -1
  38. package/dist/components/dynamic-list/DynamicList.module.css +1 -1
  39. package/dist/components/dynamic-list/DynamicList.module.scss.js +1 -0
  40. package/dist/components/form/FormField.client.js +7 -5
  41. package/dist/components/image/Image.client.js +8 -4
  42. package/dist/components/image/Image.server.js +6 -3
  43. package/dist/components/input/Input.css +3 -3
  44. package/dist/components/input/Input.module.css +3 -3
  45. package/dist/components/input/Input.module.scss.js +1 -0
  46. package/dist/components/input/Input.view.js +3 -3
  47. package/dist/components/label/Label.css +1 -1
  48. package/dist/components/label/Label.module.css +1 -1
  49. package/dist/components/label/Label.module.scss.js +1 -0
  50. package/dist/components/list/List.css +0 -3
  51. package/dist/components/list/List.module.css +0 -3
  52. package/dist/components/loading/Loading.js +1 -2
  53. package/dist/components/post-teaser/PostTeaser.view.js +1 -0
  54. package/dist/components/post-widget/PostWidget.view.js +1 -1
  55. package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +1 -0
  56. package/dist/components/rating/Rating.css +1 -1
  57. package/dist/components/rating/Rating.module.css +1 -1
  58. package/dist/components/rating/Rating.module.scss.js +1 -0
  59. package/dist/components/rich-text/RichText.client.js +1 -1
  60. package/dist/components/select/Select.client.js +13 -3
  61. package/dist/components/select/Select.css +14 -31
  62. package/dist/components/select/Select.module.css +14 -31
  63. package/dist/components/select/Select.module.scss.js +1 -0
  64. package/dist/components/snackbar/Snackbar.css +36 -0
  65. package/dist/components/snackbar/Snackbar.module.css +36 -0
  66. package/dist/components/snackbar/Snackbar.module.scss.js +6 -0
  67. package/dist/components/stepper/Stepper.css +11 -31
  68. package/dist/components/stepper/Stepper.module.css +11 -31
  69. package/dist/components/switch/Switch.css +6 -6
  70. package/dist/components/switch/Switch.module.css +6 -6
  71. package/dist/components/switch/Switch.module.scss.js +1 -0
  72. package/dist/components/table/Table.css +9 -0
  73. package/dist/components/table/Table.js +2 -1
  74. package/dist/components/table/Table.module.css +9 -0
  75. package/dist/components/table/Table.module.scss.js +2 -0
  76. package/dist/components/tabs/Tabs.module.scss.js +1 -0
  77. package/dist/components/tooltip/Tooltip.client.js +6 -2
  78. package/dist/constants/project.js +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/index.js +4 -4
  81. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +1 -1
  82. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +1 -1
  83. package/dist/node_modules/.pnpm/quill@2.0.3/node_modules/quill/dist/quill.js +4 -4
  84. package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/index.js +6 -6
  85. package/dist/theme.css +3708 -2237
  86. package/dist/tsconfig.build.tsbuildinfo +1 -1
  87. package/dist/types/components/RTE/RTE.d.ts +1 -1
  88. package/dist/types/components/RTE/RTE.lazy.d.ts +1 -1
  89. package/dist/types/components/datePicker/DatePicker.model.d.ts +2 -1
  90. package/dist/types/components/datePicker/DatePicker.view.d.ts +3 -2
  91. package/dist/types/components/datePicker/DatePickerDialog.view.d.ts +1 -1
  92. package/dist/types/components/form/Form.model.d.ts +5 -0
  93. package/dist/types/components/input/Input.view.d.ts +1 -1
  94. package/dist/types/components/select/Select.model.d.ts +2 -0
  95. package/package.json +22 -5
@@ -46,6 +46,7 @@ const DatePickerClient = /* @__PURE__ */ __name(({
46
46
  const [isOpen, setIsOpen] = useState(false);
47
47
  const [isMobile, setIsMobile] = useState(false);
48
48
  const [viewMode, setViewMode] = useState("days");
49
+ const [triggerRect, setTriggerRect] = useState(null);
49
50
  const viewModeRef = useRef("days");
50
51
  viewModeRef.current = viewMode;
51
52
  const swipeTouchStart = useRef(null);
@@ -100,7 +101,12 @@ const DatePickerClient = /* @__PURE__ */ __name(({
100
101
  useEffect(() => {
101
102
  if (!isOpen || isMobile) return;
102
103
  function handlePointerDown(e) {
103
- if (rootRef.current && !rootRef.current.contains(e.target)) {
104
+ var _a;
105
+ const target = e.target;
106
+ const inRoot = (_a = rootRef.current) == null ? void 0 : _a.contains(target);
107
+ const dialogEl = document.getElementById(`${name}-dialog`);
108
+ const inDialog = dialogEl == null ? void 0 : dialogEl.contains(target);
109
+ if (!inRoot && !inDialog) {
104
110
  setIsOpen(false);
105
111
  setDraft(date);
106
112
  }
@@ -108,7 +114,23 @@ const DatePickerClient = /* @__PURE__ */ __name(({
108
114
  __name(handlePointerDown, "handlePointerDown");
109
115
  document.addEventListener("pointerdown", handlePointerDown);
110
116
  return () => document.removeEventListener("pointerdown", handlePointerDown);
111
- }, [isOpen, isMobile, date]);
117
+ }, [isOpen, isMobile, date, name]);
118
+ useEffect(() => {
119
+ if (!isOpen || isMobile || !rootRef.current) return;
120
+ function sync() {
121
+ const el = rootRef.current;
122
+ if (!el) return;
123
+ const r = el.getBoundingClientRect();
124
+ setTriggerRect({ top: r.bottom, left: r.left, width: r.width });
125
+ }
126
+ __name(sync, "sync");
127
+ document.addEventListener("scroll", sync, true);
128
+ window.addEventListener("resize", sync);
129
+ return () => {
130
+ document.removeEventListener("scroll", sync, true);
131
+ window.removeEventListener("resize", sync);
132
+ };
133
+ }, [isOpen, isMobile]);
112
134
  const validateDate = useCallback(
113
135
  (d) => {
114
136
  if (isNull(d)) {
@@ -143,6 +165,10 @@ const DatePickerClient = /* @__PURE__ */ __name(({
143
165
  setViewingMonth(date ?? dayjs());
144
166
  setDraft(date);
145
167
  setViewMode("days");
168
+ if (rootRef.current) {
169
+ const r = rootRef.current.getBoundingClientRect();
170
+ setTriggerRect({ top: r.bottom, left: r.left, width: r.width });
171
+ }
146
172
  }
147
173
  return !prev;
148
174
  });
@@ -218,6 +244,12 @@ const DatePickerClient = /* @__PURE__ */ __name(({
218
244
  },
219
245
  []
220
246
  );
247
+ const dialogStyle = !isMobile && triggerRect ? {
248
+ position: "fixed",
249
+ top: triggerRect.top + 8,
250
+ left: triggerRect.left,
251
+ zIndex: 1400
252
+ } : void 0;
221
253
  return /* @__PURE__ */ jsx(
222
254
  "div",
223
255
  {
@@ -228,7 +260,8 @@ const DatePickerClient = /* @__PURE__ */ __name(({
228
260
  {
229
261
  ...rest,
230
262
  color,
231
- dialogPortalTarget: isMobile ? document.body : null,
263
+ dialogPortalTarget: document.body,
264
+ dialogStyle,
232
265
  errorText: error,
233
266
  format: fmt,
234
267
  helperText,
@@ -199,7 +199,7 @@
199
199
  --pk-dp-trigger-label-float-fg: var(--pk-color-muted);
200
200
  --pk-dp-day-today-ring: var(--pk-color-muted);
201
201
  }
202
- html[data-theme="dark"] .prokodo-DatePicker--info, [data-theme="dark"] .prokodo-DatePicker--info, html[data-theme="dark"] .prokodo-DatePicker--inherit, [data-theme="dark"] .prokodo-DatePicker--inherit, html[data-theme="dark"] .prokodo-DatePicker--white, [data-theme="dark"] .prokodo-DatePicker--white {
202
+ html[data-theme=dark] .prokodo-DatePicker--info, [data-theme=dark] .prokodo-DatePicker--info, html[data-theme=dark] .prokodo-DatePicker--inherit, [data-theme=dark] .prokodo-DatePicker--inherit, html[data-theme=dark] .prokodo-DatePicker--white, [data-theme=dark] .prokodo-DatePicker--white {
203
203
  --pk-dp-gradient-from: var(--pk-palette-grey-100);
204
204
  --pk-dp-gradient-to: var(--pk-palette-grey-200);
205
205
  }
@@ -280,7 +280,7 @@ html[data-theme="dark"] .prokodo-DatePicker--info, [data-theme="dark"] .prokodo-
280
280
  position: absolute;
281
281
  top: calc(100% + var(--pk-space-xs));
282
282
  left: 0;
283
- z-index: 200;
283
+ z-index: var(--pk-z-popover, 1400);
284
284
  min-width: var(--pk-dp-dialog-min-width);
285
285
  width: -moz-max-content;
286
286
  width: max-content;
@@ -291,7 +291,7 @@ html[data-theme="dark"] .prokodo-DatePicker--info, [data-theme="dark"] .prokodo-
291
291
  padding: var(--pk-dp-dialog-padding);
292
292
  animation: dpDialogIn 180ms ease both;
293
293
  }
294
- html[data-theme="dark"] .prokodo-DatePicker__dialog, [data-theme="dark"] .prokodo-DatePicker__dialog, .pk-theme-dark .prokodo-DatePicker__dialog {
294
+ html[data-theme=dark] .prokodo-DatePicker__dialog, [data-theme=dark] .prokodo-DatePicker__dialog, .pk-theme-dark .prokodo-DatePicker__dialog {
295
295
  --pk-dp-header-fg: var(--pk-palette-grey-50);
296
296
  --pk-dp-nav-fg: var(--pk-palette-grey-300);
297
297
  --pk-dp-nav-hover-bg: rgba(255, 255, 255, 0.10);
@@ -340,7 +340,7 @@ html[data-theme="dark"] .prokodo-DatePicker__dialog, [data-theme="dark"] .prokod
340
340
  display: block;
341
341
  position: fixed;
342
342
  inset: 0;
343
- z-index: 199;
343
+ z-index: var(--pk-z-popover, 1400);
344
344
  background: rgba(0, 0, 0, 0.5);
345
345
  backdrop-filter: blur(4px);
346
346
  -webkit-backdrop-filter: blur(4px);
@@ -199,7 +199,7 @@
199
199
  --pk-dp-trigger-label-float-fg: var(--pk-color-muted);
200
200
  --pk-dp-day-today-ring: var(--pk-color-muted);
201
201
  }
202
- html[data-theme="dark"] .prokodo-DatePicker--info, [data-theme="dark"] .prokodo-DatePicker--info, html[data-theme="dark"] .prokodo-DatePicker--inherit, [data-theme="dark"] .prokodo-DatePicker--inherit, html[data-theme="dark"] .prokodo-DatePicker--white, [data-theme="dark"] .prokodo-DatePicker--white {
202
+ html[data-theme=dark] .prokodo-DatePicker--info, [data-theme=dark] .prokodo-DatePicker--info, html[data-theme=dark] .prokodo-DatePicker--inherit, [data-theme=dark] .prokodo-DatePicker--inherit, html[data-theme=dark] .prokodo-DatePicker--white, [data-theme=dark] .prokodo-DatePicker--white {
203
203
  --pk-dp-gradient-from: var(--pk-palette-grey-100);
204
204
  --pk-dp-gradient-to: var(--pk-palette-grey-200);
205
205
  }
@@ -280,7 +280,7 @@ html[data-theme="dark"] .prokodo-DatePicker--info, [data-theme="dark"] .prokodo-
280
280
  position: absolute;
281
281
  top: calc(100% + var(--pk-space-xs));
282
282
  left: 0;
283
- z-index: 200;
283
+ z-index: var(--pk-z-popover, 1400);
284
284
  min-width: var(--pk-dp-dialog-min-width);
285
285
  width: -moz-max-content;
286
286
  width: max-content;
@@ -291,7 +291,7 @@ html[data-theme="dark"] .prokodo-DatePicker--info, [data-theme="dark"] .prokodo-
291
291
  padding: var(--pk-dp-dialog-padding);
292
292
  animation: dpDialogIn 180ms ease both;
293
293
  }
294
- html[data-theme="dark"] .prokodo-DatePicker__dialog, [data-theme="dark"] .prokodo-DatePicker__dialog, .pk-theme-dark .prokodo-DatePicker__dialog {
294
+ html[data-theme=dark] .prokodo-DatePicker__dialog, [data-theme=dark] .prokodo-DatePicker__dialog, .pk-theme-dark .prokodo-DatePicker__dialog {
295
295
  --pk-dp-header-fg: var(--pk-palette-grey-50);
296
296
  --pk-dp-nav-fg: var(--pk-palette-grey-300);
297
297
  --pk-dp-nav-hover-bg: rgba(255, 255, 255, 0.10);
@@ -340,7 +340,7 @@ html[data-theme="dark"] .prokodo-DatePicker__dialog, [data-theme="dark"] .prokod
340
340
  display: block;
341
341
  position: fixed;
342
342
  inset: 0;
343
- z-index: 199;
343
+ z-index: var(--pk-z-popover, 1400);
344
344
  background: rgba(0, 0, 0, 0.5);
345
345
  backdrop-filter: blur(4px);
346
346
  -webkit-backdrop-filter: blur(4px);
@@ -21,6 +21,7 @@ const styles = {
21
21
  "prokodo-DatePicker__trigger__icon": "prokodo-DatePicker__trigger__icon",
22
22
  "prokodo-DatePicker__dialog": "prokodo-DatePicker__dialog",
23
23
  dpDialogIn,
24
+ "pk-theme-dark": "pk-theme-dark",
24
25
  dpSlideUp,
25
26
  "prokodo-DatePicker__dialog__backdrop": "prokodo-DatePicker__dialog__backdrop",
26
27
  "prokodo-DatePicker__dialog__close": "prokodo-DatePicker__dialog__close",
@@ -52,7 +52,8 @@ function DatePickerView({
52
52
  viewMode,
53
53
  onViewModeChange,
54
54
  onMonthSelect,
55
- onYearSelect
55
+ onYearSelect,
56
+ dialogStyle
56
57
  }) {
57
58
  const effectiveFormat = format ?? (withTime ? "YYYY-MM-DDTHH:mm" : "YYYY-MM-DD");
58
59
  const displayValue = (selectedDate == null ? void 0 : selectedDate.format(effectiveFormat)) ?? "";
@@ -103,6 +104,7 @@ function DatePickerView({
103
104
  prevAriaLabel,
104
105
  prevIcon,
105
106
  selectedDate,
107
+ style: dialogStyle,
106
108
  timeLabel,
107
109
  todayLabel,
108
110
  viewingMonth,
@@ -42,7 +42,8 @@ function DatePickerDialog({
42
42
  viewMode = "days",
43
43
  onViewModeChange,
44
44
  onMonthSelect,
45
- onYearSelect
45
+ onYearSelect,
46
+ style
46
47
  }) {
47
48
  const calendarDays = buildCalendarGrid(viewingMonth, minDate, maxDate);
48
49
  const hours = buildHours();
@@ -63,6 +64,7 @@ function DatePickerDialog({
63
64
  "aria-modal": "true",
64
65
  id: `${name}-dialog`,
65
66
  role: "dialog",
67
+ style,
66
68
  className: [
67
69
  bem("dialog"),
68
70
  dialogColor ? bem(void 0, { [dialogColor]: true }) : ""
@@ -45,6 +45,14 @@ function DialogClient({
45
45
  useEffect(() => {
46
46
  if (open) openDialog();
47
47
  }, [open, openDialog]);
48
+ useEffect(() => {
49
+ if (!isOpen) return;
50
+ const prev = document.body.style.overflow;
51
+ document.body.style.overflow = "hidden";
52
+ return () => {
53
+ document.body.style.overflow = prev;
54
+ };
55
+ }, [isOpen]);
48
56
  useEffect(() => {
49
57
  if (!isOpen) return;
50
58
  const handleKey = /* @__PURE__ */ __name((e) => {
@@ -150,6 +150,9 @@
150
150
  align-items: center;
151
151
  z-index: var(--pk-z-modal);
152
152
  }
153
+ .prokodo-Dialog--is-visible {
154
+ display: flex;
155
+ }
153
156
  .prokodo-Dialog__backdrop {
154
157
  display: none;
155
158
  position: fixed;
@@ -158,16 +161,11 @@
158
161
  align-items: center;
159
162
  z-index: var(--pk-z-modal);
160
163
  background-color: rgb(var(--pk-color-overlay-rgb)/var(--pk-color-overlay-alpha));
161
- }
162
- .prokodo-Dialog__backdrop {
163
164
  animation: Dialog_backdropFadeIn var(--pk-timing-normal) ease;
164
165
  }
165
166
  .prokodo-Dialog__backdrop--is-visible {
166
167
  display: flex;
167
168
  }
168
- .prokodo-Dialog--is-visible {
169
- display: flex;
170
- }
171
169
  .prokodo-Dialog__backdrop .prokodo-Dialog, .prokodo-Dialog__backdrop .prokodo-Dialog--is-visible {
172
170
  position: static;
173
171
  inset: auto;
@@ -150,6 +150,9 @@
150
150
  align-items: center;
151
151
  z-index: var(--pk-z-modal);
152
152
  }
153
+ .prokodo-Dialog--is-visible {
154
+ display: flex;
155
+ }
153
156
  .prokodo-Dialog__backdrop {
154
157
  display: none;
155
158
  position: fixed;
@@ -158,16 +161,11 @@
158
161
  align-items: center;
159
162
  z-index: var(--pk-z-modal);
160
163
  background-color: rgb(var(--pk-color-overlay-rgb)/var(--pk-color-overlay-alpha));
161
- }
162
- .prokodo-Dialog__backdrop {
163
164
  animation: Dialog_backdropFadeIn var(--pk-timing-normal) ease;
164
165
  }
165
166
  .prokodo-Dialog__backdrop--is-visible {
166
167
  display: flex;
167
168
  }
168
- .prokodo-Dialog--is-visible {
169
- display: flex;
170
- }
171
169
  .prokodo-Dialog__backdrop .prokodo-Dialog, .prokodo-Dialog__backdrop .prokodo-Dialog--is-visible {
172
170
  position: static;
173
171
  inset: auto;
@@ -2,10 +2,10 @@ const Dialog_backdropFadeIn = "Dialog_backdropFadeIn";
2
2
  const Dialog_fadeIn = "Dialog_fadeIn";
3
3
  const styles = {
4
4
  "prokodo-Dialog": "prokodo-Dialog",
5
+ "prokodo-Dialog--is-visible": "prokodo-Dialog--is-visible",
5
6
  "prokodo-Dialog__backdrop": "prokodo-Dialog__backdrop",
6
7
  Dialog_backdropFadeIn,
7
8
  "prokodo-Dialog__backdrop--is-visible": "prokodo-Dialog__backdrop--is-visible",
8
- "prokodo-Dialog--is-visible": "prokodo-Dialog--is-visible",
9
9
  "prokodo-Dialog__container": "prokodo-Dialog__container",
10
10
  Dialog_fadeIn,
11
11
  "prokodo-Dialog__container--fullScreen": "prokodo-Dialog__container--fullScreen",
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { jsxs, jsx } from "react/jsx-runtime";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { create } from "../../helpers/bem.js";
5
5
  import { isNumber } from "../../helpers/validations.js";
6
6
  import styles from "./Dialog.module.scss.js";
@@ -11,6 +11,5 @@ const Drawer = createIsland({
11
11
  )
12
12
  });
13
13
  export {
14
- Drawer,
15
- Drawer as default
14
+ Drawer
16
15
  };
@@ -196,7 +196,7 @@
196
196
  line-height: 1.4;
197
197
  }
198
198
  }
199
- [data-theme="dark"] .prokodo-DynamicList__helperText, .pk-theme-dark .prokodo-DynamicList__helperText {
199
+ [data-theme=dark] .prokodo-DynamicList__helperText, .pk-theme-dark .prokodo-DynamicList__helperText {
200
200
  color: var(--pk-palette-grey-400);
201
201
  }
202
202
  .prokodo-DynamicList__helperText__content {
@@ -196,7 +196,7 @@
196
196
  line-height: 1.4;
197
197
  }
198
198
  }
199
- [data-theme="dark"] .prokodo-DynamicList__helperText, .pk-theme-dark .prokodo-DynamicList__helperText {
199
+ [data-theme=dark] .prokodo-DynamicList__helperText, .pk-theme-dark .prokodo-DynamicList__helperText {
200
200
  color: var(--pk-palette-grey-400);
201
201
  }
202
202
  .prokodo-DynamicList__helperText__content {
@@ -8,6 +8,7 @@ const styles = {
8
8
  "prokodo-DynamicList__field--is-multi": "prokodo-DynamicList__field--is-multi",
9
9
  "prokodo-DynamicList__delete__button--is-multi": "prokodo-DynamicList__delete__button--is-multi",
10
10
  "prokodo-DynamicList__helperText": "prokodo-DynamicList__helperText",
11
+ "pk-theme-dark": "pk-theme-dark",
11
12
  "prokodo-DynamicList__helperText__content": "prokodo-DynamicList__helperText__content",
12
13
  "prokodo-DynamicList__helperText__content--is-error": "prokodo-DynamicList__helperText__content--is-error"
13
14
  };
@@ -26,7 +26,7 @@ function FormFieldClient({
26
26
  onValidate,
27
27
  ...props
28
28
  }) {
29
- var _a, _b, _c, _d;
29
+ var _a, _b, _c, _d, _e, _f;
30
30
  const renderFieldContainer = useCallback(
31
31
  (children) => /* @__PURE__ */ jsx(GridRow, { className: bem(), xs: 12, children }),
32
32
  []
@@ -66,6 +66,8 @@ function FormFieldClient({
66
66
  priority: true,
67
67
  color,
68
68
  ...props,
69
+ closeAriaLabel: props.closeAriaLabel ?? ((_a = messagesFields == null ? void 0 : messagesFields.select) == null ? void 0 : _a.closeAriaLabel),
70
+ doneLabel: props.doneLabel ?? ((_b = messagesFields == null ? void 0 : messagesFields.select) == null ? void 0 : _b.doneLabel),
69
71
  onChange: (
70
72
  /* istanbul ignore next */
71
73
  /* @__PURE__ */ __name((_, value) => onChange == null ? void 0 : onChange(props, value ?? void 0), "onChange")
@@ -80,7 +82,7 @@ function FormFieldClient({
80
82
  {
81
83
  priority: true,
82
84
  color,
83
- errorTranslations: (_a = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _a.input,
85
+ errorTranslations: (_c = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _c.input,
84
86
  onValidate: /* @__PURE__ */ __name((_, err) => onValidate == null ? void 0 : onValidate(props, err), "onValidate"),
85
87
  onChange: /* @__PURE__ */ __name((e) => onChange == null ? void 0 : onChange(props, e.target.value), "onChange"),
86
88
  ...props
@@ -95,7 +97,7 @@ function FormFieldClient({
95
97
  priority: true,
96
98
  color,
97
99
  ...props,
98
- translations: (_b = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _b.date,
100
+ translations: (_d = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _d.date,
99
101
  onValidate: /* @__PURE__ */ __name((_, err) => onValidate == null ? void 0 : onValidate(props, err), "onValidate"),
100
102
  onChange: /* @__PURE__ */ __name((value) => onChange == null ? void 0 : onChange(
101
103
  props,
@@ -117,7 +119,7 @@ function FormFieldClient({
117
119
  color,
118
120
  ...p,
119
121
  value: p == null ? void 0 : p.value,
120
- fields: (_c = p == null ? void 0 : p.fields) == null ? void 0 : _c.map((field) => ({
122
+ fields: (_e = p == null ? void 0 : p.fields) == null ? void 0 : _e.map((field) => ({
121
123
  ...field,
122
124
  onValidate: /* @__PURE__ */ __name((_, err) => onValidate == null ? void 0 : onValidate(p, err), "onValidate")
123
125
  })),
@@ -133,7 +135,7 @@ function FormFieldClient({
133
135
  priority: true,
134
136
  color,
135
137
  ...props,
136
- errorTranslations: (_d = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _d.input,
138
+ errorTranslations: (_f = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _f.input,
137
139
  onValidate: /* @__PURE__ */ __name((_, err) => onValidate == null ? void 0 : onValidate(props, err), "onValidate"),
138
140
  onChange: /* @__PURE__ */ __name((e) => {
139
141
  var _a2;
@@ -44,10 +44,13 @@ function toPlainImgProps(p) {
44
44
  width,
45
45
  height
46
46
  };
47
- if (Boolean(priority)) {
48
- imgProps.loading = "eager";
49
- imgProps.fetchPriority = "high";
47
+ if (!Boolean(priority)) {
48
+ imgProps.loading = "lazy";
50
49
  }
50
+ imgProps.decoding = "async";
51
+ imgProps["data-nimg"] = "1";
52
+ imgProps.style = { color: "transparent", ...imgProps.style };
53
+ imgProps["suppressHydrationWarning"] = true;
51
54
  return imgProps;
52
55
  }
53
56
  __name(toPlainImgProps, "toPlainImgProps");
@@ -63,13 +66,14 @@ const ImageClient = /* @__PURE__ */ __name(({
63
66
  const renderImage = /* @__PURE__ */ __name(() => {
64
67
  if (ctxImage !== void 0) {
65
68
  const CustomImage = ctxImage;
69
+ const ctxProps = { ...rawProps, suppressHydrationWarning: true };
66
70
  return /* @__PURE__ */ jsx(
67
71
  CustomImage,
68
72
  {
69
73
  alt: alt ?? /* istanbul ignore next */
70
74
  "",
71
75
  className: bem("image", void 0, className),
72
- ...rawProps
76
+ ...ctxProps
73
77
  }
74
78
  );
75
79
  }
@@ -39,10 +39,13 @@ function toImgOnlyProps(p) {
39
39
  width,
40
40
  height
41
41
  };
42
- if (Boolean(priority)) {
43
- imgProps.loading = "eager";
44
- imgProps.fetchPriority = "high";
42
+ if (!Boolean(priority)) {
43
+ imgProps.loading = "lazy";
45
44
  }
45
+ imgProps.decoding = "async";
46
+ imgProps["data-nimg"] = "1";
47
+ imgProps.style = { color: "transparent", ...imgProps.style };
48
+ imgProps["suppressHydrationWarning"] = true;
46
49
  return imgProps;
47
50
  }
48
51
  __name(toImgOnlyProps, "toImgOnlyProps");
@@ -181,7 +181,7 @@
181
181
  --pk-input-label-focused-fg: var(--pk-color-muted);
182
182
  --pk-input-border-focus: var(--pk-color-border);
183
183
  }
184
- html[data-theme="dark"] .prokodo-Input--info, [data-theme="dark"] .prokodo-Input--info, .pk-theme-dark .prokodo-Input--info, html[data-theme="dark"] .prokodo-Input--inherit, [data-theme="dark"] .prokodo-Input--inherit, .pk-theme-dark .prokodo-Input--inherit, html[data-theme="dark"] .prokodo-Input--white, [data-theme="dark"] .prokodo-Input--white, .pk-theme-dark .prokodo-Input--white {
184
+ html[data-theme=dark] .prokodo-Input--info, [data-theme=dark] .prokodo-Input--info, .pk-theme-dark .prokodo-Input--info, html[data-theme=dark] .prokodo-Input--inherit, [data-theme=dark] .prokodo-Input--inherit, .pk-theme-dark .prokodo-Input--inherit, html[data-theme=dark] .prokodo-Input--white, [data-theme=dark] .prokodo-Input--white, .pk-theme-dark .prokodo-Input--white {
185
185
  --pk-input-gradient-from: var(--pk-palette-grey-100);
186
186
  --pk-input-gradient-to: var(--pk-palette-grey-200);
187
187
  }
@@ -400,7 +400,7 @@ html[data-theme="dark"] .prokodo-Input--info, [data-theme="dark"] .prokodo-Input
400
400
  pointer-events: none;
401
401
  z-index: 2;
402
402
  }
403
- [data-theme="dark"] .prokodo-Input__trailing, .pk-theme-dark .prokodo-Input__trailing {
403
+ [data-theme=dark] .prokodo-Input__trailing, .pk-theme-dark .prokodo-Input__trailing {
404
404
  color: var(--pk-palette-grey-300);
405
405
  }
406
406
  .prokodo-Input__trailing--clickable {
@@ -472,7 +472,7 @@ html[data-theme="dark"] .prokodo-Input--info, [data-theme="dark"] .prokodo-Input
472
472
  }
473
473
  .prokodo-Input__counter {
474
474
  padding-top: var(--pk-space-md);
475
- color: var(--pk-palette-grey-600);
475
+ color: var(--pk-input-helper-fg);
476
476
  font-weight: 400;
477
477
  font-size: 1rem;
478
478
  font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
@@ -181,7 +181,7 @@
181
181
  --pk-input-label-focused-fg: var(--pk-color-muted);
182
182
  --pk-input-border-focus: var(--pk-color-border);
183
183
  }
184
- html[data-theme="dark"] .prokodo-Input--info, [data-theme="dark"] .prokodo-Input--info, .pk-theme-dark .prokodo-Input--info, html[data-theme="dark"] .prokodo-Input--inherit, [data-theme="dark"] .prokodo-Input--inherit, .pk-theme-dark .prokodo-Input--inherit, html[data-theme="dark"] .prokodo-Input--white, [data-theme="dark"] .prokodo-Input--white, .pk-theme-dark .prokodo-Input--white {
184
+ html[data-theme=dark] .prokodo-Input--info, [data-theme=dark] .prokodo-Input--info, .pk-theme-dark .prokodo-Input--info, html[data-theme=dark] .prokodo-Input--inherit, [data-theme=dark] .prokodo-Input--inherit, .pk-theme-dark .prokodo-Input--inherit, html[data-theme=dark] .prokodo-Input--white, [data-theme=dark] .prokodo-Input--white, .pk-theme-dark .prokodo-Input--white {
185
185
  --pk-input-gradient-from: var(--pk-palette-grey-100);
186
186
  --pk-input-gradient-to: var(--pk-palette-grey-200);
187
187
  }
@@ -400,7 +400,7 @@ html[data-theme="dark"] .prokodo-Input--info, [data-theme="dark"] .prokodo-Input
400
400
  pointer-events: none;
401
401
  z-index: 2;
402
402
  }
403
- [data-theme="dark"] .prokodo-Input__trailing, .pk-theme-dark .prokodo-Input__trailing {
403
+ [data-theme=dark] .prokodo-Input__trailing, .pk-theme-dark .prokodo-Input__trailing {
404
404
  color: var(--pk-palette-grey-300);
405
405
  }
406
406
  .prokodo-Input__trailing--clickable {
@@ -472,7 +472,7 @@ html[data-theme="dark"] .prokodo-Input--info, [data-theme="dark"] .prokodo-Input
472
472
  }
473
473
  .prokodo-Input__counter {
474
474
  padding-top: var(--pk-space-md);
475
- color: var(--pk-palette-grey-600);
475
+ color: var(--pk-input-helper-fg);
476
476
  font-weight: 400;
477
477
  font-size: 1rem;
478
478
  font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
@@ -9,6 +9,7 @@ const styles = {
9
9
  "prokodo-Input--info": "prokodo-Input--info",
10
10
  "prokodo-Input--inherit": "prokodo-Input--inherit",
11
11
  "prokodo-Input--white": "prokodo-Input--white",
12
+ "pk-theme-dark": "pk-theme-dark",
12
13
  "prokodo-Input__label": "prokodo-Input__label",
13
14
  "prokodo-Input__label--is-focused": "prokodo-Input__label--is-focused",
14
15
  "prokodo-Input__inner": "prokodo-Input__inner",
@@ -28,7 +28,7 @@ function InputView({
28
28
  inputClassName,
29
29
  hideCounter,
30
30
  rows,
31
- hideLegend: _hideLegend,
31
+ hideLegend,
32
32
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
33
  minRows,
34
34
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -76,14 +76,14 @@ function InputView({
76
76
  }
77
77
  ),
78
78
  /* @__PURE__ */ jsxs("div", { className: bem("field", void 0, fieldClassName), children: [
79
- typeof label === "string" && /* @__PURE__ */ jsx(
79
+ !hideLegend && /* @__PURE__ */ jsx(
80
80
  "fieldset",
81
81
  {
82
82
  "aria-hidden": "true",
83
83
  className: bem("notch", {
84
84
  "is-focused": Boolean(isFocused) || hasValue
85
85
  }),
86
- children: /* @__PURE__ */ jsx("legend", { className: bem("notchLegend"), children: /* @__PURE__ */ jsx("span", { children: label }) })
86
+ children: typeof label === "string" && /* @__PURE__ */ jsx("legend", { className: bem("notchLegend"), children: /* @__PURE__ */ jsx("span", { children: label }) })
87
87
  }
88
88
  ),
89
89
  /* @__PURE__ */ jsx(
@@ -187,7 +187,7 @@
187
187
  -webkit-text-fill-color: transparent;
188
188
  color: var(--pk-label-gradient-from);
189
189
  }
190
- html[data-theme="dark"] .prokodo-Label__highlighted, [data-theme="dark"] .prokodo-Label__highlighted, .pk-theme-dark .prokodo-Label__highlighted {
190
+ html[data-theme=dark] .prokodo-Label__highlighted, [data-theme=dark] .prokodo-Label__highlighted, .pk-theme-dark .prokodo-Label__highlighted {
191
191
  background: linear-gradient(to right, var(--pk-label-gradient-from), var(--pk-label-gradient-to));
192
192
  background-clip: text;
193
193
  -webkit-background-clip: text;
@@ -187,7 +187,7 @@
187
187
  -webkit-text-fill-color: transparent;
188
188
  color: var(--pk-label-gradient-from);
189
189
  }
190
- html[data-theme="dark"] .prokodo-Label__highlighted, [data-theme="dark"] .prokodo-Label__highlighted, .pk-theme-dark .prokodo-Label__highlighted {
190
+ html[data-theme=dark] .prokodo-Label__highlighted, [data-theme=dark] .prokodo-Label__highlighted, .pk-theme-dark .prokodo-Label__highlighted {
191
191
  background: linear-gradient(to right, var(--pk-label-gradient-from), var(--pk-label-gradient-to));
192
192
  background-clip: text;
193
193
  -webkit-background-clip: text;
@@ -9,6 +9,7 @@ const styles = {
9
9
  "prokodo-Label--inherit": "prokodo-Label--inherit",
10
10
  "prokodo-Label--white": "prokodo-Label--white",
11
11
  "prokodo-Label__highlighted": "prokodo-Label__highlighted",
12
+ "pk-theme-dark": "pk-theme-dark",
12
13
  "prokodo-Label__highlighted--error": "prokodo-Label__highlighted--error"
13
14
  };
14
15
  export {
@@ -211,9 +211,6 @@
211
211
  border-radius: 1000rem;
212
212
  background-color: var(--pk-color-surface-raised);
213
213
  }
214
- html[data-theme=dark] .prokodo-List__item__icon {
215
- background-color: var(--pk-palette-grey-400);
216
- }
217
214
  .prokodo-List__item__icon__wrapper {
218
215
  display: flex;
219
216
  align-items: center;
@@ -211,9 +211,6 @@
211
211
  border-radius: 1000rem;
212
212
  background-color: var(--pk-color-surface-raised);
213
213
  }
214
- html[data-theme=dark] .prokodo-List__item__icon {
215
- background-color: var(--pk-palette-grey-400);
216
- }
217
214
  .prokodo-List__item__icon__wrapper {
218
215
  display: flex;
219
216
  align-items: center;
@@ -11,6 +11,5 @@ const Loading = createIsland({
11
11
  )
12
12
  });
13
13
  export {
14
- Loading,
15
- Loading as default
14
+ Loading
16
15
  };
@@ -145,6 +145,7 @@ function PostTeaserView(props) {
145
145
  /* @__PURE__ */ jsx(
146
146
  Image,
147
147
  {
148
+ fill: true,
148
149
  ...imageMerged,
149
150
  alt: (imageMerged == null ? void 0 : imageMerged.alt) ?? /* istanbul ignore next */
150
151
  "",
@@ -170,7 +170,7 @@ function PostWidgetView({
170
170
  ((_s = item.classes) == null ? void 0 : _s.article) ?? (classes == null ? void 0 : classes.listItemContent)
171
171
  ),
172
172
  children: [
173
- imgMerged && /* @__PURE__ */ jsx("header", { className: (_t = item.classes) == null ? void 0 : _t.header, children: /* @__PURE__ */ jsx(Link, { ...linkMerged, children: /* @__PURE__ */ jsx(Image, { ...imgMerged, itemProp: "image" }) }) }),
173
+ imgMerged && /* @__PURE__ */ jsx("header", { className: (_t = item.classes) == null ? void 0 : _t.header, children: /* @__PURE__ */ jsx(Link, { ...linkMerged, children: /* @__PURE__ */ jsx(Image, { fill: true, ...imgMerged, itemProp: "image" }) }) }),
174
174
  /* @__PURE__ */ jsxs(
175
175
  "div",
176
176
  {
@@ -167,6 +167,7 @@ function PostWidgetCarouselView(props) {
167
167
  imgMerged && /* @__PURE__ */ jsx(Link, { ...linkMerged, children: /* @__PURE__ */ jsx(
168
168
  Image,
169
169
  {
170
+ fill: true,
170
171
  ...imgMerged,
171
172
  className: bem(
172
173
  "carousel__item__image",
@@ -249,7 +249,7 @@
249
249
  line-height: 1.4;
250
250
  }
251
251
  }
252
- [data-theme="dark"] .prokodo-Rating__helperText, .pk-theme-dark .prokodo-Rating__helperText {
252
+ [data-theme=dark] .prokodo-Rating__helperText, .pk-theme-dark .prokodo-Rating__helperText {
253
253
  color: var(--pk-palette-grey-400);
254
254
  }
255
255
  .prokodo-Rating__helperText__content {
@@ -249,7 +249,7 @@
249
249
  line-height: 1.4;
250
250
  }
251
251
  }
252
- [data-theme="dark"] .prokodo-Rating__helperText, .pk-theme-dark .prokodo-Rating__helperText {
252
+ [data-theme=dark] .prokodo-Rating__helperText, .pk-theme-dark .prokodo-Rating__helperText {
253
253
  color: var(--pk-palette-grey-400);
254
254
  }
255
255
  .prokodo-Rating__helperText__content {
@@ -22,6 +22,7 @@ const styles = {
22
22
  "prokodo-Rating__icon--readonly": "prokodo-Rating__icon--readonly",
23
23
  "prokodo-Rating__footer": "prokodo-Rating__footer",
24
24
  "prokodo-Rating__helperText": "prokodo-Rating__helperText",
25
+ "pk-theme-dark": "pk-theme-dark",
25
26
  "prokodo-Rating__helperText__content": "prokodo-Rating__helperText__content",
26
27
  "prokodo-Rating__helperText__content--is-error": "prokodo-Rating__helperText__content--is-error"
27
28
  };