@prokodo/ui 0.1.10 → 0.1.12

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 (107) hide show
  1. package/README.md +3 -0
  2. package/dist/_virtual/_commonjsHelpers.js +2 -0
  3. package/dist/_virtual/quill.js +34 -0
  4. package/dist/_virtual/quill2.js +4 -0
  5. package/dist/components/RTE/RTE.client.js +367 -0
  6. package/dist/components/RTE/RTE.css +473 -0
  7. package/dist/components/RTE/RTE.js +12 -0
  8. package/dist/components/RTE/RTE.lazy.js +12 -0
  9. package/dist/components/RTE/RTE.module.css +473 -0
  10. package/dist/components/RTE/RTE.module.scss.js +22 -0
  11. package/dist/components/RTE/RTE.server.js +19 -0
  12. package/dist/components/RTE/RTE.styles.js +21 -0
  13. package/dist/components/RTE/RTE.theme.js +4 -0
  14. package/dist/components/RTE/RTE.utils.js +73 -0
  15. package/dist/components/RTE/RTE.view.js +107 -0
  16. package/dist/components/RTE/index.js +4 -0
  17. package/dist/components/avatar/Avatar.css +1 -3
  18. package/dist/components/avatar/Avatar.module.css +1 -3
  19. package/dist/components/avatar/Avatar.view.js +30 -17
  20. package/dist/components/base-link/BaseLink.client.js +11 -1
  21. package/dist/components/button/Button.css +1 -0
  22. package/dist/components/button/Button.module.css +1 -0
  23. package/dist/components/button/Button.view.js +1 -0
  24. package/dist/components/card/Card.css +10 -1
  25. package/dist/components/card/Card.module.css +10 -1
  26. package/dist/components/card/Card.module.scss.js +1 -0
  27. package/dist/components/chip/Chip.css +2 -2
  28. package/dist/components/chip/Chip.module.css +2 -2
  29. package/dist/components/chip/Chip.view.js +1 -1
  30. package/dist/components/input/Input.css +21 -2
  31. package/dist/components/input/Input.module.css +21 -2
  32. package/dist/components/input/Input.view.js +21 -13
  33. package/dist/components/pagination/Pagination.client.js +14 -0
  34. package/dist/components/pagination/Pagination.css +191 -0
  35. package/dist/components/pagination/Pagination.js +12 -0
  36. package/dist/components/pagination/Pagination.lazy.js +12 -0
  37. package/dist/components/pagination/Pagination.module.css +191 -0
  38. package/dist/components/pagination/Pagination.module.scss.js +12 -0
  39. package/dist/components/pagination/Pagination.server.js +11 -0
  40. package/dist/components/pagination/Pagination.utils.js +55 -0
  41. package/dist/components/pagination/Pagination.view.js +98 -0
  42. package/dist/components/pagination/index.js +4 -0
  43. package/dist/components/rich-text/RichText.client.js +31 -0
  44. package/dist/components/rich-text/RichText.css +13 -1
  45. package/dist/components/rich-text/RichText.module.css +13 -1
  46. package/dist/components/rich-text/RichText.module.scss.js +2 -0
  47. package/dist/components/rich-text/RichText.server.js +1 -0
  48. package/dist/components/select/Select.client.js +230 -8
  49. package/dist/components/select/Select.css +47 -16
  50. package/dist/components/select/Select.module.css +47 -16
  51. package/dist/components/select/Select.module.scss.js +2 -0
  52. package/dist/components/select/Select.view.js +20 -57
  53. package/dist/components/switch/Switch.css +1 -1
  54. package/dist/components/switch/Switch.module.css +1 -1
  55. package/dist/components/switch/Switch.view.js +3 -1
  56. package/dist/components/tooltip/Tooltip.client.js +373 -0
  57. package/dist/components/tooltip/Tooltip.css +241 -0
  58. package/dist/components/tooltip/Tooltip.js +16 -0
  59. package/dist/components/tooltip/Tooltip.module.css +241 -0
  60. package/dist/components/tooltip/Tooltip.module.scss.js +15 -0
  61. package/dist/components/tooltip/Tooltip.server.js +12 -0
  62. package/dist/components/tooltip/Tooltip.view.js +127 -0
  63. package/dist/components/tooltip/index.js +4 -0
  64. package/dist/constants/project.js +1 -1
  65. package/dist/index.js +6 -0
  66. package/dist/node_modules/.pnpm/quill@2.0.3/node_modules/quill/dist/quill.js +6133 -0
  67. package/dist/node_modules/.pnpm/quill@2.0.3/node_modules/quill/dist/quill.snow.css.js +12 -0
  68. package/dist/theme.css +214 -26
  69. package/dist/tsconfig.build.tsbuildinfo +1 -1
  70. package/dist/types/components/RTE/RTE.client.d.ts +6 -0
  71. package/dist/types/components/RTE/RTE.d.ts +339 -0
  72. package/dist/types/components/RTE/RTE.lazy.d.ts +340 -0
  73. package/dist/types/components/RTE/RTE.model.d.ts +17 -0
  74. package/dist/types/components/RTE/RTE.server.d.ts +3 -0
  75. package/dist/types/components/RTE/RTE.styles.d.ts +1 -0
  76. package/dist/types/components/RTE/RTE.theme.d.ts +2 -0
  77. package/dist/types/components/RTE/RTE.utils.d.ts +5 -0
  78. package/dist/types/components/RTE/RTE.view.d.ts +11 -0
  79. package/dist/types/components/RTE/index.d.ts +2 -0
  80. package/dist/types/components/avatar/Avatar.model.d.ts +1 -1
  81. package/dist/types/components/card/Card.model.d.ts +1 -1
  82. package/dist/types/components/grid/Grid.model.d.ts +37 -7
  83. package/dist/types/components/input/Input.model.d.ts +13 -1
  84. package/dist/types/components/input/Input.view.d.ts +1 -1
  85. package/dist/types/components/pagination/Pagination.client.d.ts +5 -0
  86. package/dist/types/components/pagination/Pagination.d.ts +4 -0
  87. package/dist/types/components/pagination/Pagination.lazy.d.ts +5 -0
  88. package/dist/types/components/pagination/Pagination.model.d.ts +22 -0
  89. package/dist/types/components/pagination/Pagination.server.d.ts +3 -0
  90. package/dist/types/components/pagination/Pagination.utils.d.ts +13 -0
  91. package/dist/types/components/pagination/Pagination.view.d.ts +3 -0
  92. package/dist/types/components/pagination/index.d.ts +2 -0
  93. package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
  94. package/dist/types/components/rich-text/RichText.d.ts +1 -0
  95. package/dist/types/components/rich-text/RichText.lazy.d.ts +1 -0
  96. package/dist/types/components/rich-text/RichText.model.d.ts +1 -0
  97. package/dist/types/components/select/Select.model.d.ts +16 -1
  98. package/dist/types/components/tooltip/Tooltip.client.d.ts +5 -0
  99. package/dist/types/components/tooltip/Tooltip.d.ts +4 -0
  100. package/dist/types/components/tooltip/Tooltip.lazy.d.ts +5 -0
  101. package/dist/types/components/tooltip/Tooltip.model.d.ts +47 -0
  102. package/dist/types/components/tooltip/Tooltip.server.d.ts +3 -0
  103. package/dist/types/components/tooltip/Tooltip.view.d.ts +3 -0
  104. package/dist/types/components/tooltip/index.d.ts +2 -0
  105. package/dist/types/helpers/validations.d.ts +2 -2
  106. package/dist/types/index.d.ts +3 -0
  107. package/package.json +19 -2
@@ -0,0 +1,107 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { create } from "../../helpers/bem.js";
5
+ import styles from "./RTE.module.scss.js";
6
+ import { Input } from "../input/Input.js";
7
+ import { Icon } from "../icon/Icon.js";
8
+ const bem = create(styles, "RTE");
9
+ function RTEView({
10
+ name,
11
+ value,
12
+ disabled,
13
+ readOnly,
14
+ required,
15
+ placeholder,
16
+ maxLength,
17
+ errorText,
18
+ htmlValue,
19
+ surfaceRef,
20
+ mountRef,
21
+ showResize = false,
22
+ onStartResize,
23
+ onChange,
24
+ onValidate,
25
+ errorTranslations,
26
+ rteToolbar,
27
+ rteOptions,
28
+ ...rest
29
+ }) {
30
+ const mirrorValue = String(htmlValue ?? value ?? "");
31
+ return /* @__PURE__ */ jsx(
32
+ Input,
33
+ {
34
+ ...rest,
35
+ multiline: true,
36
+ disabled,
37
+ errorText,
38
+ maxLength,
39
+ name,
40
+ placeholder,
41
+ readOnly,
42
+ required,
43
+ value: mirrorValue,
44
+ renderNode: /* @__PURE__ */ __name(({ id, describedBy, isError, nodeClassName }) => /* @__PURE__ */ jsxs(
45
+ "div",
46
+ {
47
+ className: bem(void 0, {
48
+ disabled: Boolean(disabled),
49
+ readonly: Boolean(readOnly)
50
+ }),
51
+ children: [
52
+ /* @__PURE__ */ jsxs(
53
+ "div",
54
+ {
55
+ ref: surfaceRef,
56
+ className: bem(
57
+ "surface",
58
+ { error: Boolean(isError) },
59
+ nodeClassName
60
+ ),
61
+ children: [
62
+ /* @__PURE__ */ jsx(
63
+ "div",
64
+ {
65
+ ref: mountRef,
66
+ "aria-describedby": describedBy,
67
+ "aria-invalid": isError,
68
+ "aria-required": Boolean(required),
69
+ className: bem("mount", { disabled: Boolean(disabled) }),
70
+ id
71
+ }
72
+ ),
73
+ showResize && !Boolean(disabled) && !Boolean(readOnly) && /* @__PURE__ */ jsx(
74
+ "button",
75
+ {
76
+ "aria-label": "Resize editor height",
77
+ className: bem("resize"),
78
+ type: "button",
79
+ onMouseDown: onStartResize,
80
+ children: /* @__PURE__ */ jsx(Icon, { name: "ResizeFieldIcon", size: "sm" })
81
+ }
82
+ )
83
+ ]
84
+ }
85
+ ),
86
+ /* @__PURE__ */ jsx(
87
+ "textarea",
88
+ {
89
+ readOnly: true,
90
+ "aria-hidden": "true",
91
+ className: bem("hidden"),
92
+ name,
93
+ tabIndex: -1,
94
+ value: mirrorValue
95
+ }
96
+ )
97
+ ]
98
+ }
99
+ ), "renderNode"),
100
+ onChange: void 0
101
+ }
102
+ );
103
+ }
104
+ __name(RTEView, "RTEView");
105
+ export {
106
+ RTEView
107
+ };
@@ -0,0 +1,4 @@
1
+ import { RTE } from "./RTE.js";
2
+ export {
3
+ RTE
4
+ };
@@ -131,7 +131,7 @@
131
131
  align-items: center;
132
132
  border-radius: 200px;
133
133
  overflow: hidden;
134
- background-color: var(--color-grey-100);
134
+ background-color: transparent;
135
135
  }
136
136
  .prokodo-Avatar--primary {
137
137
  background-color: var(--color-primary-500);
@@ -175,8 +175,6 @@
175
175
  height: 100px;
176
176
  }
177
177
  .prokodo-Avatar__image {
178
- width: 100%;
179
- height: 100%;
180
178
  display: block;
181
179
  -o-object-fit: cover;
182
180
  object-fit: cover;
@@ -131,7 +131,7 @@
131
131
  align-items: center;
132
132
  border-radius: 200px;
133
133
  overflow: hidden;
134
- background-color: var(--color-grey-100);
134
+ background-color: transparent;
135
135
  }
136
136
  .prokodo-Avatar--primary {
137
137
  background-color: var(--color-primary-500);
@@ -175,8 +175,6 @@
175
175
  height: 100px;
176
176
  }
177
177
  .prokodo-Avatar__image {
178
- width: 100%;
179
- height: 100%;
180
178
  display: block;
181
179
  -o-object-fit: cover;
182
180
  object-fit: cover;
@@ -2,6 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { create } from "../../helpers/bem.js";
5
+ import { isNumber } from "../../helpers/validations.js";
5
6
  import styles from "./Avatar.module.scss.js";
6
7
  import { Icon, getIconSize } from "../icon/Icon.js";
7
8
  import { Link } from "../link/Link.js";
@@ -9,7 +10,7 @@ import { Image } from "../image/Image.js";
9
10
  const bem = create(styles, "Avatar");
10
11
  function AvatarView({
11
12
  className,
12
- variant = "primary",
13
+ variant = "inherit",
13
14
  size = "sm",
14
15
  image,
15
16
  redirect,
@@ -20,24 +21,36 @@ function AvatarView({
20
21
  { [variant]: true, [`has-size-${size}`]: true },
21
22
  className
22
23
  );
23
- const defaultSide = getIconSize(size);
24
- const inner = /* @__PURE__ */ jsx("div", { ...rest, className: rootClass, tabIndex: -1, children: image ? /* @__PURE__ */ jsx(
25
- Image,
24
+ const iconSize = getIconSize(size);
25
+ const inner = /* @__PURE__ */ jsx(
26
+ "div",
26
27
  {
27
- fill: true,
28
- ...image,
29
- className: bem("image", void 0, image.className),
30
- tabIndex: 0
28
+ ...rest,
29
+ className: rootClass,
30
+ tabIndex: -1,
31
+ style: isNumber(size) ? {
32
+ width: size,
33
+ height: size
34
+ } : void 0,
35
+ children: image ? /* @__PURE__ */ jsx(
36
+ Image,
37
+ {
38
+ fill: true,
39
+ ...image,
40
+ className: bem("image", void 0, image.className),
41
+ tabIndex: 0
42
+ }
43
+ ) : /* @__PURE__ */ jsx(
44
+ Icon,
45
+ {
46
+ className: bem("icon", { [variant]: true }),
47
+ color: !["inherit", "white"].includes(variant) ? "white" : void 0,
48
+ name: "UserIcon",
49
+ size: iconSize
50
+ }
51
+ )
31
52
  }
32
- ) : /* @__PURE__ */ jsx(
33
- Icon,
34
- {
35
- className: bem("icon", { [variant]: true }),
36
- color: !["inherit", "white"].includes(variant) ? "white" : void 0,
37
- name: "UserIcon",
38
- size: defaultSide
39
- }
40
- ) });
53
+ );
41
54
  return redirect ? /* @__PURE__ */ jsx(
42
55
  Link,
43
56
  {
@@ -35,7 +35,17 @@ function BaseLinkClient({
35
35
  }
36
36
  );
37
37
  }
38
- return /* @__PURE__ */ jsx(LinkComponent, { ...rest, href, style: linkStyle, tabIndex, children });
38
+ return /* @__PURE__ */ jsx(
39
+ LinkComponent,
40
+ {
41
+ ...rest,
42
+ href,
43
+ rel: computedRel,
44
+ style: linkStyle,
45
+ tabIndex,
46
+ children
47
+ }
48
+ );
39
49
  }
40
50
  __name(BaseLinkClient, "BaseLinkClient");
41
51
  export {
@@ -255,6 +255,7 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
255
255
  background: none;
256
256
  }
257
257
  .prokodo-Button--has-image, .prokodo-Button--has-icon {
258
+ display: flex;
258
259
  align-items: center;
259
260
  }
260
261
  .prokodo-Button--icon-only {
@@ -255,6 +255,7 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
255
255
  background: none;
256
256
  }
257
257
  .prokodo-Button--has-image, .prokodo-Button--has-icon {
258
+ display: flex;
258
259
  align-items: center;
259
260
  }
260
261
  .prokodo-Button--icon-only {
@@ -20,6 +20,7 @@ const ButtonView = /* @__PURE__ */ __name(({
20
20
  iconProps = {},
21
21
  isIconOnly,
22
22
  LinkComponent,
23
+ loading,
23
24
  ...rest
24
25
  }) => {
25
26
  const isOutlined = variant === "outlined";
@@ -157,6 +157,15 @@
157
157
  html[data-theme=dark] .prokodo-Card--white {
158
158
  background-color: transparent;
159
159
  }
160
+ .prokodo-Card--panel {
161
+ background: rgba(255, 255, 255, 0.03);
162
+ border: 1px solid rgba(255, 255, 255, 0.1);
163
+ /* in light mode trotzdem lesbar */
164
+ }
165
+ html:not([data-theme=dark]) .prokodo-Card--panel {
166
+ background: var(--color-white);
167
+ border: 1px solid rgba(0, 0, 0, 0.08);
168
+ }
160
169
  .prokodo-Card__skeleton {
161
170
  position: absolute;
162
171
  z-index: 3;
@@ -183,7 +192,7 @@ html[data-theme=dark] .prokodo-Card__background {
183
192
  align-items: center;
184
193
  }
185
194
  .prokodo-Card__link:hover {
186
- text-decoration: none;
195
+ text-decoration: none !important;
187
196
  }
188
197
  .prokodo-Card__content {
189
198
  position: relative;
@@ -157,6 +157,15 @@
157
157
  html[data-theme=dark] .prokodo-Card--white {
158
158
  background-color: transparent;
159
159
  }
160
+ .prokodo-Card--panel {
161
+ background: rgba(255, 255, 255, 0.03);
162
+ border: 1px solid rgba(255, 255, 255, 0.1);
163
+ /* in light mode trotzdem lesbar */
164
+ }
165
+ html:not([data-theme=dark]) .prokodo-Card--panel {
166
+ background: var(--color-white);
167
+ border: 1px solid rgba(0, 0, 0, 0.08);
168
+ }
160
169
  .prokodo-Card__skeleton {
161
170
  position: absolute;
162
171
  z-index: 3;
@@ -183,7 +192,7 @@ html[data-theme=dark] .prokodo-Card__background {
183
192
  align-items: center;
184
193
  }
185
194
  .prokodo-Card__link:hover {
186
- text-decoration: none;
195
+ text-decoration: none !important;
187
196
  }
188
197
  .prokodo-Card__content {
189
198
  position: relative;
@@ -4,6 +4,7 @@ const styles = {
4
4
  "prokodo-Card": "prokodo-Card",
5
5
  "prokodo-Card--inherit": "prokodo-Card--inherit",
6
6
  "prokodo-Card--white": "prokodo-Card--white",
7
+ "prokodo-Card--panel": "prokodo-Card--panel",
7
8
  "prokodo-Card__skeleton": "prokodo-Card__skeleton",
8
9
  "prokodo-Card__background": "prokodo-Card__background",
9
10
  "prokodo-Card__link": "prokodo-Card__link",
@@ -132,6 +132,7 @@
132
132
  -webkit-user-select: none;
133
133
  -moz-user-select: none;
134
134
  user-select: none;
135
+ gap: 0.5rem;
135
136
  transition: background-color 0.3s ease, color 0.3s ease;
136
137
  border-color: var(--color-grey-500);
137
138
  color: var(--color-black);
@@ -177,7 +178,7 @@
177
178
  }
178
179
  .prokodo-Chip--filled--info {
179
180
  background-color: var(--color-grey-300);
180
- color: var(--color-white);
181
+ color: var(--color-grey-700);
181
182
  }
182
183
  .prokodo-Chip--filled--success {
183
184
  background-color: var(--color-success);
@@ -240,7 +241,6 @@
240
241
  cursor: pointer;
241
242
  padding: 0;
242
243
  line-height: 1;
243
- margin-left: 8px;
244
244
  transition: color 0.3s ease;
245
245
  background-color: var(--color-grey-50);
246
246
  }
@@ -132,6 +132,7 @@
132
132
  -webkit-user-select: none;
133
133
  -moz-user-select: none;
134
134
  user-select: none;
135
+ gap: 0.5rem;
135
136
  transition: background-color 0.3s ease, color 0.3s ease;
136
137
  border-color: var(--color-grey-500);
137
138
  color: var(--color-black);
@@ -177,7 +178,7 @@
177
178
  }
178
179
  .prokodo-Chip--filled--info {
179
180
  background-color: var(--color-grey-300);
180
- color: var(--color-white);
181
+ color: var(--color-grey-700);
181
182
  }
182
183
  .prokodo-Chip--filled--success {
183
184
  background-color: var(--color-success);
@@ -240,7 +241,6 @@
240
241
  cursor: pointer;
241
242
  padding: 0;
242
243
  line-height: 1;
243
- margin-left: 8px;
244
244
  transition: color 0.3s ease;
245
245
  background-color: var(--color-grey-50);
246
246
  }
@@ -48,7 +48,7 @@ function ChipView({
48
48
  [color]: true
49
49
  }),
50
50
  ...buttonProps,
51
- children: /* @__PURE__ */ jsx(Icon, { name: "Delete01Icon" })
51
+ children: /* @__PURE__ */ jsx(Icon, { color: "error", name: "Delete01Icon" })
52
52
  }
53
53
  )
54
54
  ]
@@ -129,7 +129,6 @@
129
129
  position: relative;
130
130
  display: flex;
131
131
  flex-direction: column;
132
- justify-content: space-around;
133
132
  height: 100%;
134
133
  width: 100%;
135
134
  }
@@ -161,6 +160,9 @@
161
160
  background-color: var(--color-white);
162
161
  padding: 0 0.25rem;
163
162
  }
163
+ html[data-theme=dark] .prokodo-Input__label--is-focused {
164
+ background-color: rgb(16, 19, 27);
165
+ }
164
166
  }
165
167
  .prokodo-Input__inner {
166
168
  position: relative;
@@ -197,6 +199,13 @@
197
199
  background-color: var(--color-white);
198
200
  color: var(--color-grey-900);
199
201
  }
202
+ html[data-theme=dark] .prokodo-Input__input input:-webkit-autofill, html[data-theme=dark] .prokodo-Input__input textarea:-webkit-autofill {
203
+ background-color: rgb(16, 19, 27);
204
+ }
205
+ html[data-theme=dark] .prokodo-Input__input input:autofill,
206
+ html[data-theme=dark] .prokodo-Input__input textarea:autofill {
207
+ background-color: rgb(16, 19, 27);
208
+ }
200
209
  .prokodo-Input__input input:-webkit-autofill,
201
210
  .prokodo-Input__input input:-webkit-autofill:hover,
202
211
  .prokodo-Input__input input:-webkit-autofill:focus,
@@ -217,6 +226,10 @@
217
226
  background-color: var(--color-white);
218
227
  color: var(--color-grey-900);
219
228
  }
229
+ html[data-theme=dark] .prokodo-Input__input input:-moz-autofill,
230
+ html[data-theme=dark] .prokodo-Input__input textarea:-moz-autofill {
231
+ background-color: rgb(16, 19, 27);
232
+ }
220
233
  .prokodo-Input__input input:is(:-webkit-autofill, :-webkit-autofill), .prokodo-Input__input textarea:is(:-webkit-autofill, :-webkit-autofill) {
221
234
  border-color: none; /* adjust as needed */
222
235
  }
@@ -279,6 +292,9 @@
279
292
  font-size: 1rem;
280
293
  }
281
294
  }
295
+ html[data-theme=dark] .prokodo-Input__input__node {
296
+ background-color: rgb(16, 19, 27);
297
+ }
282
298
  .prokodo-Input__input__node {
283
299
  font-size: 1rem;
284
300
  }
@@ -307,9 +323,12 @@
307
323
  pointer-events: none;
308
324
  }
309
325
  .prokodo-Input__input__node:disabled {
310
- color: var(--color-grey-300);
326
+ color: var(--color-grey-700);
311
327
  background: var(--color-white);
312
328
  }
329
+ html[data-theme=dark] .prokodo-Input__input__node:disabled {
330
+ background-color: rgb(16, 19, 27);
331
+ }
313
332
  .prokodo-Input__input:focus {
314
333
  border-color: var(--color-primary-500);
315
334
  box-shadow: 0 0 5px var(--color-primary-500);
@@ -129,7 +129,6 @@
129
129
  position: relative;
130
130
  display: flex;
131
131
  flex-direction: column;
132
- justify-content: space-around;
133
132
  height: 100%;
134
133
  width: 100%;
135
134
  }
@@ -161,6 +160,9 @@
161
160
  background-color: var(--color-white);
162
161
  padding: 0 0.25rem;
163
162
  }
163
+ html[data-theme=dark] .prokodo-Input__label--is-focused {
164
+ background-color: rgb(16, 19, 27);
165
+ }
164
166
  }
165
167
  .prokodo-Input__inner {
166
168
  position: relative;
@@ -197,6 +199,13 @@
197
199
  background-color: var(--color-white);
198
200
  color: var(--color-grey-900);
199
201
  }
202
+ html[data-theme=dark] .prokodo-Input__input input:-webkit-autofill, html[data-theme=dark] .prokodo-Input__input textarea:-webkit-autofill {
203
+ background-color: rgb(16, 19, 27);
204
+ }
205
+ html[data-theme=dark] .prokodo-Input__input input:autofill,
206
+ html[data-theme=dark] .prokodo-Input__input textarea:autofill {
207
+ background-color: rgb(16, 19, 27);
208
+ }
200
209
  .prokodo-Input__input input:-webkit-autofill,
201
210
  .prokodo-Input__input input:-webkit-autofill:hover,
202
211
  .prokodo-Input__input input:-webkit-autofill:focus,
@@ -217,6 +226,10 @@
217
226
  background-color: var(--color-white);
218
227
  color: var(--color-grey-900);
219
228
  }
229
+ html[data-theme=dark] .prokodo-Input__input input:-moz-autofill,
230
+ html[data-theme=dark] .prokodo-Input__input textarea:-moz-autofill {
231
+ background-color: rgb(16, 19, 27);
232
+ }
220
233
  .prokodo-Input__input input:is(:-webkit-autofill, :-webkit-autofill), .prokodo-Input__input textarea:is(:-webkit-autofill, :-webkit-autofill) {
221
234
  border-color: none; /* adjust as needed */
222
235
  }
@@ -279,6 +292,9 @@
279
292
  font-size: 1rem;
280
293
  }
281
294
  }
295
+ html[data-theme=dark] .prokodo-Input__input__node {
296
+ background-color: rgb(16, 19, 27);
297
+ }
282
298
  .prokodo-Input__input__node {
283
299
  font-size: 1rem;
284
300
  }
@@ -307,9 +323,12 @@
307
323
  pointer-events: none;
308
324
  }
309
325
  .prokodo-Input__input__node:disabled {
310
- color: var(--color-grey-300);
326
+ color: var(--color-grey-700);
311
327
  background: var(--color-white);
312
328
  }
329
+ html[data-theme=dark] .prokodo-Input__input__node:disabled {
330
+ background-color: rgb(16, 19, 27);
331
+ }
313
332
  .prokodo-Input__input:focus {
314
333
  border-color: var(--color-primary-500);
315
334
  box-shadow: 0 0 5px var(--color-primary-500);
@@ -32,6 +32,7 @@ function InputView({
32
32
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
33
  maxRows,
34
34
  type = "text",
35
+ renderNode,
35
36
  ...rest
36
37
  }) {
37
38
  rest == null ? true : delete rest.onValidate;
@@ -43,6 +44,11 @@ function InputView({
43
44
  const errorId = isError ? `${name}-error` : void 0;
44
45
  const helperId = !isError && hasHelperText ? `${name}-helper` : void 0;
45
46
  const describedBy = [errorId, helperId].filter(Boolean).join(" ") || void 0;
47
+ const nodeClassName = bem(
48
+ "input__node",
49
+ { multiline: Boolean(multiline) },
50
+ inputClassName
51
+ );
46
52
  return /* @__PURE__ */ jsxs("div", { className: bem(void 0, void 0, className), children: [
47
53
  /* @__PURE__ */ jsxs("div", { className: bem("inner"), children: [
48
54
  typeof label === "string" && /* @__PURE__ */ jsx(
@@ -75,7 +81,17 @@ function InputView({
75
81
  },
76
82
  inputContainerClassName
77
83
  ),
78
- children: Boolean(multiline) ? /* @__PURE__ */ jsx(
84
+ children: typeof renderNode === "function" ? renderNode({
85
+ id: name,
86
+ name,
87
+ disabled,
88
+ required,
89
+ readOnly: rest == null ? void 0 : rest.readOnly,
90
+ placeholder,
91
+ isError,
92
+ describedBy,
93
+ nodeClassName
94
+ }) : Boolean(multiline) ? /* @__PURE__ */ jsx(
79
95
  "textarea",
80
96
  {
81
97
  ...rest,
@@ -83,18 +99,14 @@ function InputView({
83
99
  "aria-describedby": describedBy,
84
100
  "aria-invalid": isError,
85
101
  "aria-required": required,
102
+ className: nodeClassName,
86
103
  disabled,
87
104
  id: name,
88
105
  name,
89
106
  placeholder,
90
107
  required: Boolean(required),
91
108
  rows,
92
- value: value ?? "",
93
- className: bem(
94
- "input__node",
95
- { multiline: true },
96
- inputClassName
97
- )
109
+ value: value ?? ""
98
110
  }
99
111
  ) : /* @__PURE__ */ jsx(
100
112
  "input",
@@ -104,18 +116,14 @@ function InputView({
104
116
  "aria-describedby": describedBy,
105
117
  "aria-invalid": isError,
106
118
  "aria-required": required,
119
+ className: nodeClassName,
107
120
  disabled,
108
121
  id: name,
109
122
  name,
110
123
  placeholder,
111
124
  required: Boolean(required),
112
125
  type,
113
- value: value ?? "",
114
- className: bem(
115
- "input__node",
116
- { multiline: false },
117
- inputClassName
118
- )
126
+ value: value ?? ""
119
127
  }
120
128
  )
121
129
  }
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { memo } from "react";
6
+ import { PaginationView } from "./Pagination.view.js";
7
+ function PaginationClient(p) {
8
+ return /* @__PURE__ */ jsx(PaginationView, { ...p });
9
+ }
10
+ __name(PaginationClient, "PaginationClient");
11
+ const PaginationClient$1 = memo(PaginationClient);
12
+ export {
13
+ PaginationClient$1 as default
14
+ };