@prokodo/ui 0.1.6 → 0.1.8
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.
- package/dist/components/accordion/Accordion.css +7 -1
- package/dist/components/accordion/Accordion.module.css +7 -1
- package/dist/components/avatar/Avatar.view.js +1 -1
- package/dist/components/button/Button.css +5 -5
- package/dist/components/button/Button.module.css +5 -5
- package/dist/components/button/Button.module.scss.js +2 -0
- package/dist/components/button/Button.view.js +12 -0
- package/dist/components/drawer/Drawer.view.js +2 -1
- package/dist/components/form/Form.view.js +2 -2
- package/dist/components/label/Label.css +7 -1
- package/dist/components/label/Label.module.css +7 -1
- package/dist/components/snackbar/Snackbar.css +1 -1
- package/dist/components/snackbar/Snackbar.module.css +1 -1
- package/dist/constants/project.js +1 -1
- package/dist/theme.css +20 -8
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/button/Button.client.d.ts +2 -2
- package/dist/types/components/button/Button.model.d.ts +5 -2
- package/dist/types/components/drawer/Drawer.model.d.ts +1 -0
- package/dist/types/components/image/Image.d.ts +3 -3
- package/dist/types/components/image/Image.lazy.d.ts +3 -3
- package/package.json +1 -1
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
margin-bottom: 8px;
|
|
145
145
|
overflow: hidden;
|
|
146
146
|
transition: border 0.3s ease;
|
|
147
|
-
box-shadow: var(--elevation-
|
|
147
|
+
box-shadow: var(--elevation-1);
|
|
148
148
|
}
|
|
149
149
|
.prokodo-Accordion__item--is-expanded {
|
|
150
150
|
border-color: var(--color-primary-500);
|
|
@@ -237,6 +237,9 @@
|
|
|
237
237
|
.prokodo-Accordion__title {
|
|
238
238
|
font-weight: 500;
|
|
239
239
|
}
|
|
240
|
+
html[data-theme=dark] .prokodo-Accordion__title {
|
|
241
|
+
color: var(--color-grey-900);
|
|
242
|
+
}
|
|
240
243
|
.prokodo-Accordion__icon {
|
|
241
244
|
padding-left: 1rem;
|
|
242
245
|
transition: transform 0.3s ease;
|
|
@@ -244,6 +247,9 @@
|
|
|
244
247
|
.prokodo-Accordion__icon--is-hidden {
|
|
245
248
|
display: none !important;
|
|
246
249
|
}
|
|
250
|
+
html[data-theme=dark] .prokodo-Accordion__icon {
|
|
251
|
+
color: var(--color-grey-900);
|
|
252
|
+
}
|
|
247
253
|
.prokodo-Accordion__content {
|
|
248
254
|
padding: 16px;
|
|
249
255
|
background-color: var(--color-white);
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
margin-bottom: 8px;
|
|
145
145
|
overflow: hidden;
|
|
146
146
|
transition: border 0.3s ease;
|
|
147
|
-
box-shadow: var(--elevation-
|
|
147
|
+
box-shadow: var(--elevation-1);
|
|
148
148
|
}
|
|
149
149
|
.prokodo-Accordion__item--is-expanded {
|
|
150
150
|
border-color: var(--color-primary-500);
|
|
@@ -237,6 +237,9 @@
|
|
|
237
237
|
.prokodo-Accordion__title {
|
|
238
238
|
font-weight: 500;
|
|
239
239
|
}
|
|
240
|
+
html[data-theme=dark] .prokodo-Accordion__title {
|
|
241
|
+
color: var(--color-grey-900);
|
|
242
|
+
}
|
|
240
243
|
.prokodo-Accordion__icon {
|
|
241
244
|
padding-left: 1rem;
|
|
242
245
|
transition: transform 0.3s ease;
|
|
@@ -244,6 +247,9 @@
|
|
|
244
247
|
.prokodo-Accordion__icon--is-hidden {
|
|
245
248
|
display: none !important;
|
|
246
249
|
}
|
|
250
|
+
html[data-theme=dark] .prokodo-Accordion__icon {
|
|
251
|
+
color: var(--color-grey-900);
|
|
252
|
+
}
|
|
247
253
|
.prokodo-Accordion__content {
|
|
248
254
|
padding: 16px;
|
|
249
255
|
background-color: var(--color-white);
|
|
@@ -3,9 +3,9 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { create } from "../../helpers/bem.js";
|
|
5
5
|
import styles from "./Avatar.module.scss.js";
|
|
6
|
-
import { Image } from "../image/Image.js";
|
|
7
6
|
import { Icon, getIconSize } from "../icon/Icon.js";
|
|
8
7
|
import { Link } from "../link/Link.js";
|
|
8
|
+
import { Image } from "../image/Image.js";
|
|
9
9
|
const bem = create(styles, "Avatar");
|
|
10
10
|
function AvatarView({
|
|
11
11
|
className,
|
|
@@ -254,7 +254,7 @@ html[data-theme=dark] .prokodo-Button {
|
|
|
254
254
|
html[data-theme=dark] .prokodo-Button--has-variant-outlined {
|
|
255
255
|
background: none;
|
|
256
256
|
}
|
|
257
|
-
.prokodo-Button--has-icon {
|
|
257
|
+
.prokodo-Button--has-image, .prokodo-Button--has-icon {
|
|
258
258
|
align-items: center;
|
|
259
259
|
}
|
|
260
260
|
.prokodo-Button--icon-only {
|
|
@@ -264,9 +264,6 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
|
|
|
264
264
|
border-radius: 10000px;
|
|
265
265
|
padding: 0.75rem;
|
|
266
266
|
}
|
|
267
|
-
html[data-theme=dark] .prokodo-Button--icon-only {
|
|
268
|
-
background: none;
|
|
269
|
-
}
|
|
270
267
|
.prokodo-Button--has-fullWidth {
|
|
271
268
|
display: flex;
|
|
272
269
|
justify-content: center;
|
|
@@ -280,8 +277,11 @@ html[data-theme=dark] .prokodo-Button--icon-only {
|
|
|
280
277
|
flex-direction: row;
|
|
281
278
|
align-items: center;
|
|
282
279
|
}
|
|
280
|
+
.prokodo-Button__image {
|
|
281
|
+
margin-right: 0.5rem;
|
|
282
|
+
}
|
|
283
283
|
.prokodo-Button__icon {
|
|
284
|
-
margin-right:
|
|
284
|
+
margin-right: 0.5rem;
|
|
285
285
|
}
|
|
286
286
|
.prokodo-Button__icon--icon-only {
|
|
287
287
|
margin-right: 0;
|
|
@@ -254,7 +254,7 @@ html[data-theme=dark] .prokodo-Button {
|
|
|
254
254
|
html[data-theme=dark] .prokodo-Button--has-variant-outlined {
|
|
255
255
|
background: none;
|
|
256
256
|
}
|
|
257
|
-
.prokodo-Button--has-icon {
|
|
257
|
+
.prokodo-Button--has-image, .prokodo-Button--has-icon {
|
|
258
258
|
align-items: center;
|
|
259
259
|
}
|
|
260
260
|
.prokodo-Button--icon-only {
|
|
@@ -264,9 +264,6 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
|
|
|
264
264
|
border-radius: 10000px;
|
|
265
265
|
padding: 0.75rem;
|
|
266
266
|
}
|
|
267
|
-
html[data-theme=dark] .prokodo-Button--icon-only {
|
|
268
|
-
background: none;
|
|
269
|
-
}
|
|
270
267
|
.prokodo-Button--has-fullWidth {
|
|
271
268
|
display: flex;
|
|
272
269
|
justify-content: center;
|
|
@@ -280,8 +277,11 @@ html[data-theme=dark] .prokodo-Button--icon-only {
|
|
|
280
277
|
flex-direction: row;
|
|
281
278
|
align-items: center;
|
|
282
279
|
}
|
|
280
|
+
.prokodo-Button__image {
|
|
281
|
+
margin-right: 0.5rem;
|
|
282
|
+
}
|
|
283
283
|
.prokodo-Button__icon {
|
|
284
|
-
margin-right:
|
|
284
|
+
margin-right: 0.5rem;
|
|
285
285
|
}
|
|
286
286
|
.prokodo-Button__icon--icon-only {
|
|
287
287
|
margin-right: 0;
|
|
@@ -15,10 +15,12 @@ const styles = {
|
|
|
15
15
|
"prokodo-Button--has-text-warning": "prokodo-Button--has-text-warning",
|
|
16
16
|
"prokodo-Button--has-text-error": "prokodo-Button--has-text-error",
|
|
17
17
|
"prokodo-Button--has-variant-outlined": "prokodo-Button--has-variant-outlined",
|
|
18
|
+
"prokodo-Button--has-image": "prokodo-Button--has-image",
|
|
18
19
|
"prokodo-Button--has-icon": "prokodo-Button--has-icon",
|
|
19
20
|
"prokodo-Button--icon-only": "prokodo-Button--icon-only",
|
|
20
21
|
"prokodo-Button--has-fullWidth": "prokodo-Button--has-fullWidth",
|
|
21
22
|
"prokodo-Button__title": "prokodo-Button__title",
|
|
23
|
+
"prokodo-Button__image": "prokodo-Button__image",
|
|
22
24
|
"prokodo-Button__icon": "prokodo-Button__icon",
|
|
23
25
|
"prokodo-Button__icon--icon-only": "prokodo-Button__icon--icon-only",
|
|
24
26
|
"prokodo-Button__link": "prokodo-Button__link",
|
|
@@ -4,6 +4,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { create } from "../../helpers/bem.js";
|
|
5
5
|
import { isString } from "../../helpers/validations.js";
|
|
6
6
|
import styles from "./Button.module.scss.js";
|
|
7
|
+
import { Image } from "../image/Image.js";
|
|
7
8
|
import { Icon } from "../icon/Icon.js";
|
|
8
9
|
const bem = create(styles, "Button");
|
|
9
10
|
const ButtonView = /* @__PURE__ */ __name(({
|
|
@@ -15,6 +16,7 @@ const ButtonView = /* @__PURE__ */ __name(({
|
|
|
15
16
|
contentClassName,
|
|
16
17
|
disabled,
|
|
17
18
|
redirect,
|
|
19
|
+
image,
|
|
18
20
|
iconProps = {},
|
|
19
21
|
isIconOnly,
|
|
20
22
|
LinkComponent,
|
|
@@ -25,6 +27,15 @@ const ButtonView = /* @__PURE__ */ __name(({
|
|
|
25
27
|
const iconMod = { "icon-only": isIconOnly };
|
|
26
28
|
const { title } = rest;
|
|
27
29
|
const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
30
|
+
(image == null ? void 0 : image.src) !== void 0 && /* @__PURE__ */ jsx(
|
|
31
|
+
Image,
|
|
32
|
+
{
|
|
33
|
+
height: 20,
|
|
34
|
+
width: 20,
|
|
35
|
+
...image,
|
|
36
|
+
className: bem("image", void 0, image == null ? void 0 : image.className)
|
|
37
|
+
}
|
|
38
|
+
),
|
|
28
39
|
iconName && /* @__PURE__ */ jsx(Icon, { className: bem("icon", iconMod), ...iconProps }),
|
|
29
40
|
title
|
|
30
41
|
] });
|
|
@@ -36,6 +47,7 @@ const ButtonView = /* @__PURE__ */ __name(({
|
|
|
36
47
|
void 0,
|
|
37
48
|
{
|
|
38
49
|
"has-fullWidth": Boolean(fullWidth),
|
|
50
|
+
"has-image": (image == null ? void 0 : image.src) !== void 0,
|
|
39
51
|
"has-icon": !Boolean(isIconOnly) && isString(iconProps == null ? void 0 : iconProps.name),
|
|
40
52
|
[`has-variant-${variant}`]: true,
|
|
41
53
|
[`has-bg-${color}`]: variant === "contained",
|
|
@@ -14,6 +14,7 @@ const DrawerView = /* @__PURE__ */ __name(({
|
|
|
14
14
|
titleProps,
|
|
15
15
|
anchor = "left",
|
|
16
16
|
fullscreen = false,
|
|
17
|
+
hideHeader = false,
|
|
17
18
|
renderHeader,
|
|
18
19
|
closeButtonRef,
|
|
19
20
|
closeButtonProps,
|
|
@@ -63,7 +64,7 @@ const DrawerView = /* @__PURE__ */ __name(({
|
|
|
63
64
|
),
|
|
64
65
|
...rest,
|
|
65
66
|
children: [
|
|
66
|
-
renderHeader ? renderHeader() : /* @__PURE__ */ jsxs("div", { className: bem("header"), children: [
|
|
67
|
+
renderHeader !== void 0 ? renderHeader() : !Boolean(hideHeader) && /* @__PURE__ */ jsxs("div", { className: bem("header"), children: [
|
|
67
68
|
isString(title) && /* @__PURE__ */ jsx(Headline, { size: "md", ...titleProps, id: "drawer-title", children: title }),
|
|
68
69
|
/* @__PURE__ */ jsx(
|
|
69
70
|
Button,
|
|
@@ -99,7 +99,7 @@ const FormView = /* @__PURE__ */ __name(({
|
|
|
99
99
|
)
|
|
100
100
|
] }),
|
|
101
101
|
/* @__PURE__ */ jsxs("div", { className: bem("footer"), children: [
|
|
102
|
-
|
|
102
|
+
hideResponse !== false && hideResponse !== void 0 && /* @__PURE__ */ jsx(FormResponse, { messages: formMessages }),
|
|
103
103
|
!isNull(button) && Boolean(isHoneypotEmpty) && /* @__PURE__ */ jsx(
|
|
104
104
|
Button,
|
|
105
105
|
{
|
|
@@ -109,7 +109,7 @@ const FormView = /* @__PURE__ */ __name(({
|
|
|
109
109
|
...button,
|
|
110
110
|
className: bem("footer__submit", void 0, button == null ? void 0 : button.className),
|
|
111
111
|
color: (button == null ? void 0 : button.color) ?? variant,
|
|
112
|
-
disabled:
|
|
112
|
+
disabled: !isFormValid
|
|
113
113
|
}
|
|
114
114
|
)
|
|
115
115
|
] })
|
|
@@ -162,6 +162,12 @@
|
|
|
162
162
|
background-clip: text;
|
|
163
163
|
-webkit-text-fill-color: transparent;
|
|
164
164
|
}
|
|
165
|
+
html[data-theme=dark] .prokodo-Label__highlighted {
|
|
166
|
+
background-image: var(--gradient-text-primary);
|
|
167
|
+
-webkit-background-clip: text;
|
|
168
|
+
background-clip: text;
|
|
169
|
+
-webkit-text-fill-color: var(--color-grey-800);
|
|
170
|
+
}
|
|
165
171
|
.prokodo-Label__highlighted--error {
|
|
166
172
|
background-image: var(--gradient-text-error);
|
|
167
173
|
}
|
|
@@ -170,5 +176,5 @@
|
|
|
170
176
|
font-style: normal;
|
|
171
177
|
}
|
|
172
178
|
html[data-theme=dark] .prokodo-Label__text {
|
|
173
|
-
color: var(--color-grey-
|
|
179
|
+
color: var(--color-grey-800);
|
|
174
180
|
}
|
|
@@ -162,6 +162,12 @@
|
|
|
162
162
|
background-clip: text;
|
|
163
163
|
-webkit-text-fill-color: transparent;
|
|
164
164
|
}
|
|
165
|
+
html[data-theme=dark] .prokodo-Label__highlighted {
|
|
166
|
+
background-image: var(--gradient-text-primary);
|
|
167
|
+
-webkit-background-clip: text;
|
|
168
|
+
background-clip: text;
|
|
169
|
+
-webkit-text-fill-color: var(--color-grey-800);
|
|
170
|
+
}
|
|
165
171
|
.prokodo-Label__highlighted--error {
|
|
166
172
|
background-image: var(--gradient-text-error);
|
|
167
173
|
}
|
|
@@ -170,5 +176,5 @@
|
|
|
170
176
|
font-style: normal;
|
|
171
177
|
}
|
|
172
178
|
html[data-theme=dark] .prokodo-Label__text {
|
|
173
|
-
color: var(--color-grey-
|
|
179
|
+
color: var(--color-grey-800);
|
|
174
180
|
}
|
package/dist/theme.css
CHANGED
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
margin-bottom: 8px;
|
|
290
290
|
overflow: hidden;
|
|
291
291
|
transition: border 0.3s ease;
|
|
292
|
-
box-shadow: var(--elevation-
|
|
292
|
+
box-shadow: var(--elevation-1);
|
|
293
293
|
}
|
|
294
294
|
.prokodo-Accordion__item--is-expanded {
|
|
295
295
|
border-color: var(--color-primary-500);
|
|
@@ -382,6 +382,9 @@
|
|
|
382
382
|
.prokodo-Accordion__title {
|
|
383
383
|
font-weight: 500;
|
|
384
384
|
}
|
|
385
|
+
html[data-theme=dark] .prokodo-Accordion__title {
|
|
386
|
+
color: var(--color-grey-900);
|
|
387
|
+
}
|
|
385
388
|
.prokodo-Accordion__icon {
|
|
386
389
|
padding-left: 1rem;
|
|
387
390
|
transition: transform 0.3s ease;
|
|
@@ -389,6 +392,9 @@
|
|
|
389
392
|
.prokodo-Accordion__icon--is-hidden {
|
|
390
393
|
display: none !important;
|
|
391
394
|
}
|
|
395
|
+
html[data-theme=dark] .prokodo-Accordion__icon {
|
|
396
|
+
color: var(--color-grey-900);
|
|
397
|
+
}
|
|
392
398
|
.prokodo-Accordion__content {
|
|
393
399
|
padding: 16px;
|
|
394
400
|
background-color: var(--color-white);
|
|
@@ -658,7 +664,7 @@ html[data-theme=dark] .prokodo-Button {
|
|
|
658
664
|
html[data-theme=dark] .prokodo-Button--has-variant-outlined {
|
|
659
665
|
background: none;
|
|
660
666
|
}
|
|
661
|
-
.prokodo-Button--has-icon {
|
|
667
|
+
.prokodo-Button--has-image, .prokodo-Button--has-icon {
|
|
662
668
|
align-items: center;
|
|
663
669
|
}
|
|
664
670
|
.prokodo-Button--icon-only {
|
|
@@ -668,9 +674,6 @@ html[data-theme=dark] .prokodo-Button--has-variant-outlined {
|
|
|
668
674
|
border-radius: 10000px;
|
|
669
675
|
padding: 0.75rem;
|
|
670
676
|
}
|
|
671
|
-
html[data-theme=dark] .prokodo-Button--icon-only {
|
|
672
|
-
background: none;
|
|
673
|
-
}
|
|
674
677
|
.prokodo-Button--has-fullWidth {
|
|
675
678
|
display: flex;
|
|
676
679
|
justify-content: center;
|
|
@@ -684,8 +687,11 @@ html[data-theme=dark] .prokodo-Button--icon-only {
|
|
|
684
687
|
flex-direction: row;
|
|
685
688
|
align-items: center;
|
|
686
689
|
}
|
|
690
|
+
.prokodo-Button__image {
|
|
691
|
+
margin-right: 0.5rem;
|
|
692
|
+
}
|
|
687
693
|
.prokodo-Button__icon {
|
|
688
|
-
margin-right:
|
|
694
|
+
margin-right: 0.5rem;
|
|
689
695
|
}
|
|
690
696
|
.prokodo-Button__icon--icon-only {
|
|
691
697
|
margin-right: 0;
|
|
@@ -2468,6 +2474,12 @@ html[data-theme=dark] .prokodo-Input__helperText {
|
|
|
2468
2474
|
background-clip: text;
|
|
2469
2475
|
-webkit-text-fill-color: transparent;
|
|
2470
2476
|
}
|
|
2477
|
+
html[data-theme=dark] .prokodo-Label__highlighted {
|
|
2478
|
+
background-image: var(--gradient-text-primary);
|
|
2479
|
+
-webkit-background-clip: text;
|
|
2480
|
+
background-clip: text;
|
|
2481
|
+
-webkit-text-fill-color: var(--color-grey-800);
|
|
2482
|
+
}
|
|
2471
2483
|
.prokodo-Label__highlighted--error {
|
|
2472
2484
|
background-image: var(--gradient-text-error);
|
|
2473
2485
|
}
|
|
@@ -2476,7 +2488,7 @@ html[data-theme=dark] .prokodo-Input__helperText {
|
|
|
2476
2488
|
font-style: normal;
|
|
2477
2489
|
}
|
|
2478
2490
|
html[data-theme=dark] .prokodo-Label__text {
|
|
2479
|
-
color: var(--color-grey-
|
|
2491
|
+
color: var(--color-grey-800);
|
|
2480
2492
|
}
|
|
2481
2493
|
|
|
2482
2494
|
.prokodo-Link {
|
|
@@ -4477,7 +4489,7 @@ html[data-theme=dark] .prokodo-Select__helperText {
|
|
|
4477
4489
|
}
|
|
4478
4490
|
|
|
4479
4491
|
.prokodo-SnackbarProvider {
|
|
4480
|
-
position:
|
|
4492
|
+
position: fixed;
|
|
4481
4493
|
display: flex;
|
|
4482
4494
|
flex-direction: column;
|
|
4483
4495
|
gap: 8;
|