@prokodo/ui 0.1.12 → 0.1.14

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 (96) hide show
  1. package/README.md +6 -1
  2. package/dist/components/accordion/Accordion.css +46 -0
  3. package/dist/components/accordion/Accordion.module.css +46 -0
  4. package/dist/components/accordion/Accordion.module.scss.js +4 -0
  5. package/dist/components/accordion/Accordion.view.js +25 -5
  6. package/dist/components/autocomplete/Autocomplete.client.js +132 -0
  7. package/dist/components/autocomplete/Autocomplete.css +317 -0
  8. package/dist/components/autocomplete/Autocomplete.js +12 -0
  9. package/dist/components/autocomplete/Autocomplete.lazy.js +12 -0
  10. package/dist/components/autocomplete/Autocomplete.module.css +317 -0
  11. package/dist/components/autocomplete/Autocomplete.module.scss.js +21 -0
  12. package/dist/components/autocomplete/Autocomplete.server.js +11 -0
  13. package/dist/components/autocomplete/Autocomplete.view.js +142 -0
  14. package/dist/components/autocomplete/index.js +4 -0
  15. package/dist/components/button/Button.css +114 -6
  16. package/dist/components/button/Button.module.css +114 -6
  17. package/dist/components/button/Button.module.scss.js +10 -2
  18. package/dist/components/button/Button.view.js +1 -0
  19. package/dist/components/checkbox/Checkbox.client.js +42 -0
  20. package/dist/components/checkbox/Checkbox.css +312 -0
  21. package/dist/components/checkbox/Checkbox.js +12 -0
  22. package/dist/components/checkbox/Checkbox.lazy.js +12 -0
  23. package/dist/components/checkbox/Checkbox.module.css +312 -0
  24. package/dist/components/checkbox/Checkbox.module.scss.js +20 -0
  25. package/dist/components/checkbox/Checkbox.server.js +20 -0
  26. package/dist/components/checkbox/Checkbox.view.js +86 -0
  27. package/dist/components/checkbox/index.js +4 -0
  28. package/dist/components/checkbox-group/CheckboxGroup.client.js +57 -0
  29. package/dist/components/checkbox-group/CheckboxGroup.css +238 -0
  30. package/dist/components/checkbox-group/CheckboxGroup.js +13 -0
  31. package/dist/components/checkbox-group/CheckboxGroup.lazy.js +12 -0
  32. package/dist/components/checkbox-group/CheckboxGroup.module.css +238 -0
  33. package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +15 -0
  34. package/dist/components/checkbox-group/CheckboxGroup.server.js +25 -0
  35. package/dist/components/checkbox-group/CheckboxGroup.view.js +97 -0
  36. package/dist/components/checkbox-group/index.js +4 -0
  37. package/dist/components/dialog/Dialog.view.js +2 -1
  38. package/dist/components/dynamic-list/DynamicList.view.js +1 -1
  39. package/dist/components/input/Input.css +2 -2
  40. package/dist/components/input/Input.module.css +2 -2
  41. package/dist/components/rich-text/RichText.css +0 -1
  42. package/dist/components/rich-text/RichText.module.css +0 -1
  43. package/dist/components/snackbar/Snackbar.css +5 -1
  44. package/dist/components/snackbar/Snackbar.module.css +5 -1
  45. package/dist/components/tabs/Tabs.client.js +182 -0
  46. package/dist/components/tabs/Tabs.css +330 -0
  47. package/dist/components/tabs/Tabs.js +13 -0
  48. package/dist/components/tabs/Tabs.lazy.js +15 -0
  49. package/dist/components/tabs/Tabs.module.css +330 -0
  50. package/dist/components/tabs/Tabs.module.scss.js +19 -0
  51. package/dist/components/tabs/Tabs.server.js +11 -0
  52. package/dist/components/tabs/Tabs.view.js +157 -0
  53. package/dist/components/tabs/index.js +4 -0
  54. package/dist/components/tooltip/Tooltip.client.js +10 -1
  55. package/dist/components/tooltip/Tooltip.css +1 -0
  56. package/dist/components/tooltip/Tooltip.module.css +1 -0
  57. package/dist/constants/project.js +1 -1
  58. package/dist/index.js +8 -0
  59. package/dist/theme.css +937 -74
  60. package/dist/tsconfig.build.tsbuildinfo +1 -1
  61. package/dist/types/components/accordion/Accordion.d.ts +3 -0
  62. package/dist/types/components/accordion/Accordion.lazy.d.ts +3 -0
  63. package/dist/types/components/accordion/Accordion.model.d.ts +3 -0
  64. package/dist/types/components/accordion/Accordion.view.d.ts +1 -1
  65. package/dist/types/components/autocomplete/Autocomplete.client.d.ts +5 -0
  66. package/dist/types/components/autocomplete/Autocomplete.d.ts +4 -0
  67. package/dist/types/components/autocomplete/Autocomplete.lazy.d.ts +5 -0
  68. package/dist/types/components/autocomplete/Autocomplete.model.d.ts +58 -0
  69. package/dist/types/components/autocomplete/Autocomplete.server.d.ts +3 -0
  70. package/dist/types/components/autocomplete/Autocomplete.view.d.ts +3 -0
  71. package/dist/types/components/autocomplete/index.d.ts +2 -0
  72. package/dist/types/components/checkbox/Checkbox.client.d.ts +4 -0
  73. package/dist/types/components/checkbox/Checkbox.d.ts +18 -0
  74. package/dist/types/components/checkbox/Checkbox.lazy.d.ts +19 -0
  75. package/dist/types/components/checkbox/Checkbox.model.d.ts +23 -0
  76. package/dist/types/components/checkbox/Checkbox.server.d.ts +3 -0
  77. package/dist/types/components/checkbox/Checkbox.view.d.ts +3 -0
  78. package/dist/types/components/checkbox/index.d.ts +2 -0
  79. package/dist/types/components/checkbox-group/CheckboxGroup.client.d.ts +4 -0
  80. package/dist/types/components/checkbox-group/CheckboxGroup.d.ts +4 -0
  81. package/dist/types/components/checkbox-group/CheckboxGroup.lazy.d.ts +5 -0
  82. package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +38 -0
  83. package/dist/types/components/checkbox-group/CheckboxGroup.server.d.ts +3 -0
  84. package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +3 -0
  85. package/dist/types/components/checkbox-group/index.d.ts +2 -0
  86. package/dist/types/components/dialog/Dialog.model.d.ts +1 -0
  87. package/dist/types/components/dialog/Dialog.view.d.ts +1 -1
  88. package/dist/types/components/tabs/Tabs.client.d.ts +5 -0
  89. package/dist/types/components/tabs/Tabs.d.ts +4 -0
  90. package/dist/types/components/tabs/Tabs.lazy.d.ts +5 -0
  91. package/dist/types/components/tabs/Tabs.model.d.ts +43 -0
  92. package/dist/types/components/tabs/Tabs.server.d.ts +3 -0
  93. package/dist/types/components/tabs/Tabs.view.d.ts +3 -0
  94. package/dist/types/components/tabs/index.d.ts +2 -0
  95. package/dist/types/index.d.ts +4 -0
  96. package/package.json +21 -1
@@ -155,29 +155,58 @@ html[data-theme=dark] .prokodo-Button {
155
155
  border-radius: 1.5rem;
156
156
  border-radius: 1.5rem;
157
157
  }
158
- .prokodo-Button--has-bg-primary, .prokodo-Button--has-bg-secondary, .prokodo-Button--has-bg-info, .prokodo-Button--has-bg-error {
159
- color: #FFFFFF !important;
158
+ .prokodo-Button--has-bg-primary, .prokodo-Button--has-bg-secondary, .prokodo-Button--has-bg-success, .prokodo-Button--has-bg-warning {
159
+ color: #000000;
160
160
  }
161
- .prokodo-Button--has-bg-success, .prokodo-Button--has-bg-warning {
162
- color: var(--color-black);
161
+ .prokodo-Button--has-bg-info, .prokodo-Button--has-bg-error {
162
+ color: #FFFFFF;
163
163
  }
164
164
  .prokodo-Button--has-bg-primary {
165
165
  background: var(--gradient-background-primary);
166
+ color: #000000;
167
+ }
168
+ html[data-theme=dark] .prokodo-Button--has-bg-primary {
169
+ color: #FFFFFF;
170
+ }
171
+ html[data-theme=dark] .prokodo-Button--has-bg-inherit {
172
+ color: var(--color-grey-900);
173
+ background: linear-gradient(112deg, var(--color-grey-200) 0%, var(--color-grey-300) 100%);
174
+ background-color: var(--color-grey-300);
166
175
  }
167
176
  .prokodo-Button--has-bg-secondary {
168
177
  background: var(--gradient-background-secondary);
178
+ color: #000000;
179
+ }
180
+ html[data-theme=dark] .prokodo-Button--has-bg-secondary {
181
+ color: #FFFFFF;
169
182
  }
170
183
  .prokodo-Button--is-disabled, .prokodo-Button--has-bg-info {
171
184
  background: var(--gradient-background-info);
185
+ color: #FFFFFF;
186
+ }
187
+ html[data-theme=dark] .prokodo-Button--is-disabled, html[data-theme=dark] .prokodo-Button--has-bg-info {
188
+ color: var(--color-grey-700);
172
189
  }
173
190
  .prokodo-Button--has-bg-success {
174
191
  background: var(--gradient-background-success);
192
+ color: #000000;
193
+ }
194
+ html[data-theme=dark] .prokodo-Button--has-bg-success {
195
+ color: #000000;
175
196
  }
176
197
  .prokodo-Button--has-bg-warning {
177
198
  background: var(--gradient-background-warning);
199
+ color: #000000;
200
+ }
201
+ html[data-theme=dark] .prokodo-Button--has-bg-warning {
202
+ color: #000000;
178
203
  }
179
204
  .prokodo-Button--has-bg-error {
180
205
  background: var(--gradient-background-error);
206
+ color: #FFFFFF;
207
+ }
208
+ html[data-theme=dark] .prokodo-Button--has-bg-error {
209
+ color: #FFFFFF;
181
210
  }
182
211
  .prokodo-Button--has-text-inherit, .prokodo-Button--has-text-primary, .prokodo-Button--has-text-secondary, .prokodo-Button--has-text-info, .prokodo-Button--has-text-success, .prokodo-Button--has-text-warning, .prokodo-Button--has-text-error {
183
212
  background: none;
@@ -233,7 +262,7 @@ html[data-theme=dark] .prokodo-Button {
233
262
  .prokodo-Button--has-variant-outlined {
234
263
  position: relative;
235
264
  background: none;
236
- color: var(--color-black) !important;
265
+ color: var(--color-black);
237
266
  }
238
267
  .prokodo-Button--has-variant-outlined::before {
239
268
  content: "";
@@ -254,6 +283,66 @@ html[data-theme=dark] .prokodo-Button {
254
283
  html[data-theme=dark] .prokodo-Button--has-variant-outlined {
255
284
  background: none;
256
285
  }
286
+ .prokodo-Button--has-variant-outlined--has-outline-inherit {
287
+ color: var(--color-black);
288
+ }
289
+ .prokodo-Button--has-variant-outlined--has-outline-inherit::before {
290
+ background: var(--gradient-border-8);
291
+ }
292
+ .prokodo-Button--has-variant-outlined--has-outline-primary {
293
+ color: var(--color-black);
294
+ }
295
+ .prokodo-Button--has-variant-outlined--has-outline-primary::before {
296
+ background: var(--gradient-border-4);
297
+ }
298
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-primary {
299
+ color: var(--color-primary-500);
300
+ }
301
+ .prokodo-Button--has-variant-outlined--has-outline-secondary {
302
+ color: var(--color-black);
303
+ }
304
+ .prokodo-Button--has-variant-outlined--has-outline-secondary::before {
305
+ background: var(--gradient-border-2);
306
+ }
307
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-secondary {
308
+ color: var(--color-secondary-500);
309
+ }
310
+ .prokodo-Button--has-variant-outlined--has-outline-info {
311
+ color: var(--color-black);
312
+ }
313
+ .prokodo-Button--has-variant-outlined--has-outline-info::before {
314
+ background: var(--gradient-border-info);
315
+ }
316
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-info {
317
+ color: #FFFFFF;
318
+ }
319
+ .prokodo-Button--has-variant-outlined--has-outline-success {
320
+ color: var(--color-black);
321
+ }
322
+ .prokodo-Button--has-variant-outlined--has-outline-success::before {
323
+ background: var(--gradient-border-success);
324
+ }
325
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-success {
326
+ color: var(--color-success);
327
+ }
328
+ .prokodo-Button--has-variant-outlined--has-outline-warning {
329
+ color: var(--color-black);
330
+ }
331
+ .prokodo-Button--has-variant-outlined--has-outline-warning::before {
332
+ background: var(--gradient-border-warning);
333
+ }
334
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-warning {
335
+ color: var(--color-warning);
336
+ }
337
+ .prokodo-Button--has-variant-outlined--has-outline-error {
338
+ color: var(--color-black);
339
+ }
340
+ .prokodo-Button--has-variant-outlined--has-outline-error::before {
341
+ background: var(--gradient-border-error);
342
+ }
343
+ html[data-theme=dark] .prokodo-Button--has-variant-outlined--has-outline-error {
344
+ color: var(--color-error);
345
+ }
257
346
  .prokodo-Button--has-image, .prokodo-Button--has-icon {
258
347
  display: flex;
259
348
  align-items: center;
@@ -272,6 +361,26 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
272
361
  }
273
362
  .prokodo-Button--is-disabled {
274
363
  cursor: default;
364
+ box-shadow: none;
365
+ color: var(--color-grey-500);
366
+ background: var(--color-grey-100);
367
+ background-color: var(--color-grey-100);
368
+ }
369
+ .prokodo-Button--is-disabled::before {
370
+ background: var(--gradient-border-8);
371
+ }
372
+ .prokodo-Button--is-disabled:hover {
373
+ color: var(--color-grey-500);
374
+ background: var(--color-grey-100);
375
+ background-color: var(--color-grey-100);
376
+ }
377
+ html[data-theme=dark] .prokodo-Button--is-disabled {
378
+ color: var(--color-grey-600);
379
+ background: linear-gradient(112deg, var(--color-grey-200) 0%, var(--color-grey-300) 100%);
380
+ background-color: var(--color-grey-300);
381
+ }
382
+ html[data-theme=dark] .prokodo-Button--is-disabled::before {
383
+ background: linear-gradient(112deg, var(--color-grey-300) 0%, var(--color-grey-500) 100%);
275
384
  }
276
385
  .prokodo-Button__title {
277
386
  display: flex;
@@ -315,6 +424,5 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
315
424
  width: 100%;
316
425
  }
317
426
  .prokodo-Button__content--icon-only {
318
- padding: 0.5rem;
319
427
  border-radius: 2000rem;
320
428
  }
@@ -2,10 +2,11 @@ const styles = {
2
2
  "prokodo-Button": "prokodo-Button",
3
3
  "prokodo-Button--has-bg-primary": "prokodo-Button--has-bg-primary",
4
4
  "prokodo-Button--has-bg-secondary": "prokodo-Button--has-bg-secondary",
5
- "prokodo-Button--has-bg-info": "prokodo-Button--has-bg-info",
6
- "prokodo-Button--has-bg-error": "prokodo-Button--has-bg-error",
7
5
  "prokodo-Button--has-bg-success": "prokodo-Button--has-bg-success",
8
6
  "prokodo-Button--has-bg-warning": "prokodo-Button--has-bg-warning",
7
+ "prokodo-Button--has-bg-info": "prokodo-Button--has-bg-info",
8
+ "prokodo-Button--has-bg-error": "prokodo-Button--has-bg-error",
9
+ "prokodo-Button--has-bg-inherit": "prokodo-Button--has-bg-inherit",
9
10
  "prokodo-Button--is-disabled": "prokodo-Button--is-disabled",
10
11
  "prokodo-Button--has-text-inherit": "prokodo-Button--has-text-inherit",
11
12
  "prokodo-Button--has-text-primary": "prokodo-Button--has-text-primary",
@@ -15,6 +16,13 @@ const styles = {
15
16
  "prokodo-Button--has-text-warning": "prokodo-Button--has-text-warning",
16
17
  "prokodo-Button--has-text-error": "prokodo-Button--has-text-error",
17
18
  "prokodo-Button--has-variant-outlined": "prokodo-Button--has-variant-outlined",
19
+ "prokodo-Button--has-variant-outlined--has-outline-inherit": "prokodo-Button--has-variant-outlined--has-outline-inherit",
20
+ "prokodo-Button--has-variant-outlined--has-outline-primary": "prokodo-Button--has-variant-outlined--has-outline-primary",
21
+ "prokodo-Button--has-variant-outlined--has-outline-secondary": "prokodo-Button--has-variant-outlined--has-outline-secondary",
22
+ "prokodo-Button--has-variant-outlined--has-outline-info": "prokodo-Button--has-variant-outlined--has-outline-info",
23
+ "prokodo-Button--has-variant-outlined--has-outline-success": "prokodo-Button--has-variant-outlined--has-outline-success",
24
+ "prokodo-Button--has-variant-outlined--has-outline-warning": "prokodo-Button--has-variant-outlined--has-outline-warning",
25
+ "prokodo-Button--has-variant-outlined--has-outline-error": "prokodo-Button--has-variant-outlined--has-outline-error",
18
26
  "prokodo-Button--has-image": "prokodo-Button--has-image",
19
27
  "prokodo-Button--has-icon": "prokodo-Button--has-icon",
20
28
  "prokodo-Button--icon-only": "prokodo-Button--icon-only",
@@ -52,6 +52,7 @@ const ButtonView = /* @__PURE__ */ __name(({
52
52
  "has-icon": !Boolean(isIconOnly) && isString(iconProps == null ? void 0 : iconProps.name),
53
53
  [`has-variant-${variant}`]: true,
54
54
  [`has-bg-${color}`]: variant === "contained",
55
+ [`has-variant-${variant}--has-outline-${color}`]: variant === "outlined",
55
56
  [`has-text-${color}`]: variant === "text",
56
57
  "is-disabled": Boolean(disabled),
57
58
  ...iconMod
@@ -0,0 +1,42 @@
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, useState, useEffect, useCallback } from "react";
6
+ import { CheckboxView } from "./Checkbox.view.js";
7
+ function CheckboxClient(props) {
8
+ const { checked: controlledChecked, defaultChecked, onChange } = props;
9
+ const [isChecked, setIsChecked] = useState(
10
+ controlledChecked ?? defaultChecked ?? false
11
+ );
12
+ useEffect(() => {
13
+ if (typeof controlledChecked === "boolean") {
14
+ setIsChecked(controlledChecked);
15
+ }
16
+ }, [controlledChecked]);
17
+ const handleChange = useCallback(
18
+ (event) => {
19
+ const nextChecked = event.target.checked;
20
+ if (typeof controlledChecked !== "boolean") {
21
+ setIsChecked(nextChecked);
22
+ }
23
+ onChange == null ? void 0 : onChange(event, nextChecked);
24
+ },
25
+ [controlledChecked, onChange]
26
+ );
27
+ return /* @__PURE__ */ jsx(
28
+ CheckboxView,
29
+ {
30
+ ...props,
31
+ checked: void 0,
32
+ defaultChecked: void 0,
33
+ isChecked,
34
+ onChangeInternal: handleChange
35
+ }
36
+ );
37
+ }
38
+ __name(CheckboxClient, "CheckboxClient");
39
+ const CheckboxClient$1 = memo(CheckboxClient);
40
+ export {
41
+ CheckboxClient$1 as default
42
+ };
@@ -0,0 +1,312 @@
1
+ /* stylelint-disable */
2
+ /**
3
+ * Calculates a rem-based value by a given pixel size.
4
+ */
5
+ /* stylelint-disable */
6
+ /**
7
+ * Applies flex-column and gap.
8
+ */
9
+ /*
10
+ As example (light, primary)
11
+ See defined modes in designsystem/config/gradients
12
+ */
13
+ /**
14
+ * Mixin that renders a media query that target screens that are larger than the
15
+ * given size.
16
+ */
17
+ /**
18
+ * Mixin that renders a media query that target screens that are smaller than the
19
+ * given size.
20
+ */
21
+ /**
22
+ * Mixin that renders a media query that target screens in between the given range.
23
+ */
24
+ /**
25
+ * Mixin that renders a media query that target screens that have height larger than the
26
+ * given size.
27
+ */
28
+ /**
29
+ * Mixin that renders a media query that target screens that have height smaller than the
30
+ * given size.
31
+ */
32
+ /* stylelint-disable */
33
+ /* M3/Elevation Light/1 */
34
+ /* M3/Elevation Light/2 */
35
+ /* M3/Elevation/5 */
36
+ /* M3/Elevation/1 Text */
37
+ /* Inner elevations */
38
+ /* stylelint-disable */
39
+ /**
40
+ * Visually hides an element but not removes them for screen readers.
41
+ */
42
+ /**
43
+ * The inverse of the `hidden` helper to reset a previously hidden element to be
44
+ * visible for users.
45
+ */
46
+ /**
47
+ * Creates a selector for :hover effects depending on the current user input
48
+ * device. If the input device is a mouse, this hover effect will appear.
49
+ * Keyboard and touch inputs are ignored.
50
+ *
51
+ * Example usage:
52
+ * .link {
53
+ * color: blue;
54
+ *
55
+ * @include when-hovered() {
56
+ * color: green;
57
+ * }
58
+ * }
59
+ */
60
+ /**
61
+ * Creates a selector for :active effects depending on the current user input
62
+ * device. The state applies when the input device is a mouse or keyboard. Touch
63
+ * devices will not show a pressed state.
64
+ *
65
+ * Example usage:
66
+ * .link {
67
+ * box-shadow: none;
68
+ *
69
+ * @include when-pressed() {
70
+ * box-shadow: inset 0 2px 4px grey;
71
+ * }
72
+ * }
73
+ */
74
+ /**
75
+ * Creates a selector for :focus effects depending on the current user input
76
+ * device. When the user navigates using a keyboard, the focus effect defined in
77
+ * here is applied. For other input devices they don't show up.
78
+ *
79
+ * Example usage:
80
+ * .link {
81
+ * text-decoration: none;
82
+ *
83
+ * @include when-focused() {
84
+ * text-decoration: underline;
85
+ * }
86
+ * }
87
+ */
88
+ /**
89
+ * Creates a selector for :focus-within effects depending on the current user
90
+ * input device. When the user navigates using a keyboard, the focus effect
91
+ * defined in here is applied. For other input devices they don't show up.
92
+ *
93
+ * Example usage:
94
+ * .link {
95
+ * img {
96
+ * opacity: 0.75;
97
+ *
98
+ * @include when-focused-within() {
99
+ * opacity: 1;
100
+ * }
101
+ * }
102
+ * }
103
+ */
104
+ /**
105
+ * Wrapper for media query "prefers-reduced-motion".
106
+ */
107
+ /**
108
+ * This helper hides the outline but still makes it visible for
109
+ * Windows high-contrast users. Use this instead of `outline: 0;`.
110
+ */
111
+ /**
112
+ * This helper hides the outline but still makes it visible for
113
+ * Windows high-contrast users. Use this instead of `outline: 0;`.
114
+ */
115
+ /**
116
+ * Renders an alternative, but application consistent focus-ring.
117
+ */
118
+ /**
119
+ * Specifies the outer layout for all contents across breakpoints. Apply this
120
+ * mixin to the container element, to center the contents on the screen within
121
+ * the layout offsets.
122
+ */
123
+ /**
124
+ * This mixin specifies basic text-styles for components that render a richtext
125
+ * content.
126
+ */
127
+ .prokodo-Checkbox {
128
+ display: grid;
129
+ grid-template-columns: auto 1fr auto;
130
+ align-items: center;
131
+ grid-gap: 0.75rem;
132
+ gap: 0.75rem;
133
+ padding: 0.5rem 0;
134
+ border-radius: 12px;
135
+ background: transparent;
136
+ border: 1px solid transparent;
137
+ box-shadow: none;
138
+ cursor: pointer;
139
+ -webkit-user-select: none;
140
+ -moz-user-select: none;
141
+ user-select: none;
142
+ }
143
+ .prokodo-Checkbox--disabled {
144
+ opacity: 0.55;
145
+ cursor: not-allowed;
146
+ }
147
+ .prokodo-Checkbox:focus-within {
148
+ outline: 3px solid #1E90FF;
149
+ outline-offset: 4px;
150
+ border-radius: 1.5rem;
151
+ }
152
+ .prokodo-Checkbox--card {
153
+ padding: 0.5rem 0;
154
+ border-radius: 12px;
155
+ background: transparent;
156
+ border: 1px solid transparent;
157
+ box-shadow: none;
158
+ }
159
+ .prokodo-Checkbox__left {
160
+ display: inline-flex;
161
+ align-items: center;
162
+ }
163
+ .prokodo-Checkbox__input {
164
+ position: absolute;
165
+ opacity: 0;
166
+ width: 1px;
167
+ height: 1px;
168
+ margin: 0;
169
+ padding: 0;
170
+ pointer-events: none;
171
+ }
172
+ .prokodo-Checkbox__control {
173
+ width: 18px;
174
+ height: 18px;
175
+ border-radius: 6px;
176
+ position: relative;
177
+ border: 2px solid rgba(255, 255, 255, 0.18);
178
+ background: rgba(255, 255, 255, 0.02);
179
+ box-shadow: var(--inner-elevation-1);
180
+ display: inline-flex;
181
+ align-items: center;
182
+ justify-content: center;
183
+ transition: border-color 140ms ease, background 140ms ease;
184
+ }
185
+ .prokodo-Checkbox__control::after {
186
+ content: "";
187
+ width: 9px;
188
+ height: 5px;
189
+ border-left: 2px solid var(--color-primary-500, #2f6bff);
190
+ border-bottom: 2px solid var(--color-primary-500, #2f6bff);
191
+ position: absolute;
192
+ top: 50%;
193
+ left: 50%;
194
+ transform: translate(-50%, -50%) rotate(-45deg) scale(0.6);
195
+ opacity: 0;
196
+ transition: transform 140ms ease, opacity 140ms ease;
197
+ }
198
+ .prokodo-Checkbox__control--checked {
199
+ border-color: rgba(255, 255, 255, 0.32);
200
+ }
201
+ .prokodo-Checkbox__control--checked::after {
202
+ opacity: 1;
203
+ transform: translate(-50%, -50%) rotate(-45deg) scale(1);
204
+ }
205
+ .prokodo-Checkbox__control--card {
206
+ box-shadow: var(--inner-elevation-1);
207
+ }
208
+ .prokodo-Checkbox__control--card.prokodo-Checkbox__control--checked {
209
+ background: rgba(255, 255, 255, 0.1);
210
+ }
211
+ .prokodo-Checkbox__body {
212
+ min-width: 0;
213
+ display: flex;
214
+ flex-direction: column;
215
+ gap: 0.25rem;
216
+ }
217
+ .prokodo-Checkbox__row {
218
+ display: inline-flex;
219
+ align-items: center;
220
+ gap: 0.5rem;
221
+ min-width: 0;
222
+ }
223
+ .prokodo-Checkbox__title {
224
+ white-space: nowrap;
225
+ overflow: hidden;
226
+ text-overflow: ellipsis;
227
+ color: var(--color-grey-900);
228
+ margin: 0;
229
+ font-weight: 400;
230
+ font-size: 1.125rem;
231
+ font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
232
+ font-style: normal;
233
+ line-height: 1.55;
234
+ letter-spacing: 0.03em;
235
+ text-transform: none;
236
+ text-align: left;
237
+ text-decoration: none;
238
+ }
239
+ @media screen and (min-width: 480px) {
240
+ .prokodo-Checkbox__title {
241
+ font-size: 1rem;
242
+ }
243
+ }
244
+ @media screen and (min-width: 960px) {
245
+ .prokodo-Checkbox__title {
246
+ font-size: 1rem;
247
+ }
248
+ }
249
+ .prokodo-Checkbox__requiredMark {
250
+ color: var(--color-error);
251
+ line-height: 1;
252
+ font-weight: 400;
253
+ font-size: 1.125rem;
254
+ font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
255
+ font-style: normal;
256
+ line-height: 1.55;
257
+ letter-spacing: 0.03em;
258
+ text-transform: none;
259
+ text-align: left;
260
+ text-decoration: none;
261
+ }
262
+ @media screen and (min-width: 480px) {
263
+ .prokodo-Checkbox__requiredMark {
264
+ font-size: 1rem;
265
+ }
266
+ }
267
+ @media screen and (min-width: 960px) {
268
+ .prokodo-Checkbox__requiredMark {
269
+ font-size: 1rem;
270
+ }
271
+ }
272
+ .prokodo-Checkbox__desc {
273
+ color: var(--color-grey-700);
274
+ opacity: 0.82;
275
+ overflow: hidden;
276
+ text-overflow: ellipsis;
277
+ display: -webkit-box;
278
+ line-clamp: 2;
279
+ -webkit-box-orient: vertical;
280
+ font-weight: 400;
281
+ font-size: 1rem;
282
+ font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
283
+ font-style: normal;
284
+ line-height: 1.45;
285
+ letter-spacing: 0.03em;
286
+ text-transform: none;
287
+ text-align: left;
288
+ text-decoration: none;
289
+ }
290
+ @media screen and (min-width: 480px) {
291
+ .prokodo-Checkbox__desc {
292
+ font-size: 0.875rem;
293
+ line-height: 1.4;
294
+ }
295
+ }
296
+ @media screen and (min-width: 960px) {
297
+ .prokodo-Checkbox__desc {
298
+ font-size: 0.875rem;
299
+ line-height: 1.4;
300
+ }
301
+ }
302
+ .prokodo-Checkbox__right {
303
+ justify-self: end;
304
+ display: inline-flex;
305
+ align-items: center;
306
+ align-self: start;
307
+ margin-top: 2px;
308
+ }
309
+ .prokodo-Checkbox__rightIcon {
310
+ color: var(--color-grey-700);
311
+ opacity: 0.9;
312
+ }
@@ -0,0 +1,12 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { createIsland } from "../../helpers/createIsland.js";
4
+ import CheckboxServer from "./Checkbox.server.js";
5
+ const Checkbox = createIsland({
6
+ name: "Checkbox",
7
+ Server: CheckboxServer,
8
+ loadLazy: /* @__PURE__ */ __name(() => import("./Checkbox.lazy.js"), "loadLazy")
9
+ });
10
+ export {
11
+ Checkbox
12
+ };
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { createLazyWrapper } from "../../helpers/createLazyWrapper.js";
3
+ import CheckboxClient from "./Checkbox.client.js";
4
+ import CheckboxServer from "./Checkbox.server.js";
5
+ const Checkbox_lazy = createLazyWrapper({
6
+ name: "Checkbox",
7
+ Client: CheckboxClient,
8
+ Server: CheckboxServer
9
+ });
10
+ export {
11
+ Checkbox_lazy as default
12
+ };