@prokodo/ui 0.1.13 → 0.1.15
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/README.md +2 -0
- package/dist/components/RTE/RTE.client.js +0 -1
- package/dist/components/RTE/RTE.js +4 -1
- package/dist/components/accordion/Accordion.js +8 -2
- package/dist/components/accordion/Accordion.view.js +1 -1
- package/dist/components/animated/Animated.client.js +13 -5
- package/dist/components/animated/Animated.js +8 -2
- package/dist/components/animatedText/AnimatedText.client.js +10 -2
- package/dist/components/animatedText/AnimatedText.js +8 -2
- package/dist/components/autocomplete/Autocomplete.client.js +5 -1
- package/dist/components/autocomplete/Autocomplete.js +4 -1
- package/dist/components/autocomplete/Autocomplete.view.js +13 -4
- package/dist/components/avatar/Avatar.js +4 -1
- package/dist/components/avatar/Avatar.view.js +19 -12
- package/dist/components/base-link/BaseLink.js +4 -1
- package/dist/components/base-link/BaseLink.view.js +3 -0
- package/dist/components/button/Button.css +114 -6
- package/dist/components/button/Button.js +4 -1
- package/dist/components/button/Button.module.css +114 -6
- package/dist/components/button/Button.module.scss.js +10 -2
- package/dist/components/button/Button.view.js +4 -1
- package/dist/components/calendly/Calendly.js +8 -2
- package/dist/components/card/Card.js +11 -5
- package/dist/components/card/Card.view.js +22 -5
- package/dist/components/carousel/Carousel.client.js +140 -129
- package/dist/components/carousel/Carousel.js +8 -2
- package/dist/components/carousel/Carousel.view.js +10 -0
- package/dist/components/checkbox/Checkbox.client.js +42 -0
- package/dist/components/checkbox/Checkbox.css +312 -0
- package/dist/components/checkbox/Checkbox.js +15 -0
- package/dist/components/checkbox/Checkbox.lazy.js +12 -0
- package/dist/components/checkbox/Checkbox.module.css +312 -0
- package/dist/components/checkbox/Checkbox.module.scss.js +20 -0
- package/dist/components/checkbox/Checkbox.server.js +20 -0
- package/dist/components/checkbox/Checkbox.view.js +89 -0
- package/dist/components/checkbox/index.js +4 -0
- package/dist/components/checkbox-group/CheckboxGroup.client.js +57 -0
- package/dist/components/checkbox-group/CheckboxGroup.css +238 -0
- package/dist/components/checkbox-group/CheckboxGroup.js +16 -0
- package/dist/components/checkbox-group/CheckboxGroup.lazy.js +12 -0
- package/dist/components/checkbox-group/CheckboxGroup.module.css +238 -0
- package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +15 -0
- package/dist/components/checkbox-group/CheckboxGroup.server.js +25 -0
- package/dist/components/checkbox-group/CheckboxGroup.view.js +100 -0
- package/dist/components/checkbox-group/index.js +4 -0
- package/dist/components/chip/Chip.js +4 -1
- package/dist/components/chip/Chip.view.js +4 -0
- package/dist/components/datePicker/DatePicker.js +4 -1
- package/dist/components/dialog/Dialog.js +8 -2
- package/dist/components/dialog/Dialog.view.js +25 -6
- package/dist/components/drawer/Drawer.client.js +0 -1
- package/dist/components/drawer/Drawer.js +4 -1
- package/dist/components/drawer/Drawer.view.js +14 -3
- package/dist/components/dynamic-list/DynamicList.client.js +1 -0
- package/dist/components/dynamic-list/DynamicList.js +4 -1
- package/dist/components/dynamic-list/DynamicList.view.js +18 -5
- package/dist/components/form/Form.client.js +4 -1
- package/dist/components/form/Form.js +4 -1
- package/dist/components/form/Form.view.js +3 -1
- package/dist/components/form/FormField.client.js +8 -2
- package/dist/components/form/FormField.js +4 -1
- package/dist/components/form/FormResponse.js +4 -1
- package/dist/components/headline/Headline.js +8 -2
- package/dist/components/icon/Icon.js +8 -2
- package/dist/components/image/Image.client.js +9 -5
- package/dist/components/image/Image.js +8 -2
- package/dist/components/image/Image.server.js +2 -1
- package/dist/components/image-text/ImageText.js +18 -8
- package/dist/components/input/Input.client.js +15 -2
- package/dist/components/input/Input.js +4 -1
- package/dist/components/input/Input.view.js +15 -6
- package/dist/components/input/InputValidation.js +6 -2
- package/dist/components/inputOTP/InputOTP.js +2 -1
- package/dist/components/link/Link.js +5 -3
- package/dist/components/link/Link.view.js +2 -1
- package/dist/components/list/List.js +52 -23
- package/dist/components/loading/Loading.js +4 -1
- package/dist/components/loading/Loading.view.js +25 -5
- package/dist/components/lottie/Lottie.js +9 -5
- package/dist/components/map/Map.js +62 -44
- package/dist/components/pagination/Pagination.js +4 -1
- package/dist/components/pagination/Pagination.view.js +3 -1
- package/dist/components/post-item/PostItem.js +4 -1
- package/dist/components/post-item/PostItemAuthor.js +4 -1
- package/dist/components/post-teaser/PostTeaser.js +4 -1
- package/dist/components/post-teaser/PostTeaser.view.js +4 -2
- package/dist/components/post-widget/PostWidget.js +5 -3
- package/dist/components/post-widget/PostWidget.view.js +9 -3
- package/dist/components/post-widget-carousel/PostWidgetCarousel.js +8 -2
- package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +2 -1
- package/dist/components/progressBar/ProgressBar.js +8 -2
- package/dist/components/progressBar/ProgressBar.view.js +4 -1
- package/dist/components/rating/Rating.client.js +6 -1
- package/dist/components/rating/Rating.js +4 -1
- package/dist/components/rich-text/RichText.client.js +52 -17
- package/dist/components/rich-text/RichText.js +8 -2
- package/dist/components/rich-text/RichText.server.js +3 -0
- package/dist/components/select/Select.client.js +149 -101
- package/dist/components/select/Select.js +8 -2
- package/dist/components/select/Select.view.js +35 -11
- package/dist/components/sidenav/SideNav.js +8 -2
- package/dist/components/slider/Slider.client.js +11 -2
- package/dist/components/slider/Slider.js +4 -1
- package/dist/components/slider/Slider.view.js +43 -5
- package/dist/components/snackbar/Snackbar.client.js +5 -1
- package/dist/components/snackbar/Snackbar.css +5 -1
- package/dist/components/snackbar/Snackbar.js +4 -1
- package/dist/components/snackbar/Snackbar.module.css +5 -1
- package/dist/components/snackbar/SnackbarProvider.js +8 -2
- package/dist/components/stepper/Stepper.client.js +6 -3
- package/dist/components/stepper/Stepper.js +4 -1
- package/dist/components/switch/Switch.js +4 -1
- package/dist/components/switch/Switch.view.js +1 -0
- package/dist/components/table/Table.js +1 -0
- package/dist/components/tabs/Tabs.client.js +1 -0
- package/dist/components/tabs/Tabs.js +8 -2
- package/dist/components/tabs/Tabs.view.js +8 -2
- package/dist/components/tooltip/Tooltip.client.js +126 -91
- package/dist/components/tooltip/Tooltip.js +10 -4
- package/dist/components/tooltip/Tooltip.view.js +1 -0
- package/dist/constants/project.js +1 -1
- package/dist/helpers/createIsland.js +1 -0
- package/dist/helpers/createLazyWrapper.js +1 -0
- package/dist/hooks/useGoogleMaps.js +0 -1
- package/dist/index.js +4 -0
- package/dist/theme.css +430 -9
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/RTE/RTE.d.ts +1 -1
- package/dist/types/components/RTE/RTE.lazy.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.view.d.ts +1 -1
- package/dist/types/components/carousel/Carousel.view.d.ts +1 -1
- package/dist/types/components/checkbox/Checkbox.client.d.ts +4 -0
- package/dist/types/components/checkbox/Checkbox.d.ts +18 -0
- package/dist/types/components/checkbox/Checkbox.lazy.d.ts +19 -0
- package/dist/types/components/checkbox/Checkbox.model.d.ts +23 -0
- package/dist/types/components/checkbox/Checkbox.server.d.ts +3 -0
- package/dist/types/components/checkbox/Checkbox.view.d.ts +3 -0
- package/dist/types/components/checkbox/index.d.ts +2 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.client.d.ts +4 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.d.ts +4 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.lazy.d.ts +5 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +38 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.server.d.ts +3 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +3 -0
- package/dist/types/components/checkbox-group/index.d.ts +2 -0
- package/dist/types/components/dialog/Dialog.model.d.ts +1 -0
- package/dist/types/components/dialog/Dialog.view.d.ts +1 -1
- package/dist/types/components/dynamic-list/DynamicList.model.d.ts +1 -1
- package/dist/types/components/headline/Headline.model.d.ts +1 -1
- package/dist/types/components/input/Input.view.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +29 -5
package/README.md
CHANGED
|
@@ -263,7 +263,6 @@ function RTEClient(props) {
|
|
|
263
263
|
const root = q.root;
|
|
264
264
|
const onRootClick = /* @__PURE__ */ __name((ev) => {
|
|
265
265
|
var _a2, _b2;
|
|
266
|
-
if (Boolean(disabled) || Boolean(readOnly)) return;
|
|
267
266
|
const el = ev.target;
|
|
268
267
|
if (!el || el.tagName !== "IMG") return;
|
|
269
268
|
const img = el;
|
|
@@ -5,7 +5,10 @@ import RTEServer from "./RTE.server.js";
|
|
|
5
5
|
const RTE = createIsland({
|
|
6
6
|
name: "RTE",
|
|
7
7
|
Server: RTEServer,
|
|
8
|
-
loadLazy:
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./RTE.lazy.js"), "loadLazy")
|
|
11
|
+
)
|
|
9
12
|
});
|
|
10
13
|
export {
|
|
11
14
|
RTE
|
|
@@ -5,8 +5,14 @@ import AccordionServer from "./Accordion.server.js";
|
|
|
5
5
|
const Accordion = createIsland({
|
|
6
6
|
name: "Accordion",
|
|
7
7
|
Server: AccordionServer,
|
|
8
|
-
loadLazy:
|
|
9
|
-
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./Accordion.lazy.js"), "loadLazy")
|
|
11
|
+
),
|
|
12
|
+
isInteractive: (
|
|
13
|
+
/* istanbul ignore next */
|
|
14
|
+
/* @__PURE__ */ __name(() => true, "isInteractive")
|
|
15
|
+
)
|
|
10
16
|
});
|
|
11
17
|
export {
|
|
12
18
|
Accordion
|
|
@@ -7,7 +7,11 @@ import { isNumber } from "../../helpers/validations.js";
|
|
|
7
7
|
import { AnimatedView } from "./Animated.view.js";
|
|
8
8
|
function AnimatedClient(props) {
|
|
9
9
|
const {
|
|
10
|
-
|
|
10
|
+
/* istanbul ignore next */
|
|
11
|
+
delay = (
|
|
12
|
+
/* istanbul ignore next */
|
|
13
|
+
0
|
|
14
|
+
),
|
|
11
15
|
onAnimate,
|
|
12
16
|
disabled,
|
|
13
17
|
speed,
|
|
@@ -20,10 +24,14 @@ function AnimatedClient(props) {
|
|
|
20
24
|
const timeoutRef = useRef(null);
|
|
21
25
|
useEffect(() => {
|
|
22
26
|
if (Boolean(disabled)) return;
|
|
23
|
-
timeoutRef.current = window.setTimeout(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
timeoutRef.current = window.setTimeout(
|
|
28
|
+
/* istanbul ignore next */
|
|
29
|
+
() => {
|
|
30
|
+
setVisible(true);
|
|
31
|
+
onAnimate == null ? void 0 : onAnimate(true);
|
|
32
|
+
},
|
|
33
|
+
delay
|
|
34
|
+
);
|
|
27
35
|
return () => {
|
|
28
36
|
if (timeoutRef.current !== null && isNumber(timeoutRef.current)) {
|
|
29
37
|
clearTimeout(timeoutRef.current);
|
|
@@ -5,8 +5,14 @@ import AnimatedServer from "./Animated.server.js";
|
|
|
5
5
|
const Animated = createIsland({
|
|
6
6
|
name: "Animated",
|
|
7
7
|
Server: AnimatedServer,
|
|
8
|
-
loadLazy:
|
|
9
|
-
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./Animated.lazy.js"), "loadLazy")
|
|
11
|
+
),
|
|
12
|
+
isInteractive: (
|
|
13
|
+
/* istanbul ignore next */
|
|
14
|
+
/* @__PURE__ */ __name(() => true, "isInteractive")
|
|
15
|
+
)
|
|
10
16
|
});
|
|
11
17
|
export {
|
|
12
18
|
Animated
|
|
@@ -5,8 +5,16 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { useState, useEffect } from "react";
|
|
6
6
|
import { AnimatedTextView } from "./AnimatedText.view.js";
|
|
7
7
|
function AnimatedTextClient({
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/* istanbul ignore next */
|
|
9
|
+
speed = (
|
|
10
|
+
/* istanbul ignore next */
|
|
11
|
+
30
|
|
12
|
+
),
|
|
13
|
+
/* istanbul ignore next */
|
|
14
|
+
delay = (
|
|
15
|
+
/* istanbul ignore next */
|
|
16
|
+
0
|
|
17
|
+
),
|
|
10
18
|
disabled,
|
|
11
19
|
children,
|
|
12
20
|
...rest
|
|
@@ -5,8 +5,14 @@ import AnimatedTextServer from "./AnimatedText.server.js";
|
|
|
5
5
|
const AnimatedText = createIsland({
|
|
6
6
|
name: "AnimatedText",
|
|
7
7
|
Server: AnimatedTextServer,
|
|
8
|
-
loadLazy:
|
|
9
|
-
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./AnimatedText.lazy.js"), "loadLazy")
|
|
11
|
+
),
|
|
12
|
+
isInteractive: (
|
|
13
|
+
/* istanbul ignore next */
|
|
14
|
+
/* @__PURE__ */ __name((p) => !Boolean(p.disabled), "isInteractive")
|
|
15
|
+
)
|
|
10
16
|
});
|
|
11
17
|
export {
|
|
12
18
|
AnimatedText
|
|
@@ -32,7 +32,11 @@ function AutocompleteClient({
|
|
|
32
32
|
window.addEventListener("mousedown", onClickOutside);
|
|
33
33
|
return () => window.removeEventListener("mousedown", onClickOutside);
|
|
34
34
|
}, [open]);
|
|
35
|
-
const list = useMemo(
|
|
35
|
+
const list = useMemo(
|
|
36
|
+
/* istanbul ignore next */
|
|
37
|
+
() => items ?? [],
|
|
38
|
+
[items]
|
|
39
|
+
);
|
|
36
40
|
const updateListAnchor = useCallback(() => {
|
|
37
41
|
const root = rootRef.current;
|
|
38
42
|
if (!root) return;
|
|
@@ -5,7 +5,10 @@ import AutocompleteServer from "./Autocomplete.server.js";
|
|
|
5
5
|
const Autocomplete = createIsland({
|
|
6
6
|
name: "Autocomplete",
|
|
7
7
|
Server: AutocompleteServer,
|
|
8
|
-
loadLazy:
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./Autocomplete.lazy.js"), "loadLazy")
|
|
11
|
+
)
|
|
9
12
|
});
|
|
10
13
|
export {
|
|
11
14
|
Autocomplete
|
|
@@ -94,13 +94,22 @@ function AutocompleteView({
|
|
|
94
94
|
className: bem("list", void 0, listClassName),
|
|
95
95
|
role: "listbox",
|
|
96
96
|
tabIndex: -1,
|
|
97
|
-
style:
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
style: (
|
|
98
|
+
/* istanbul ignore next */
|
|
99
|
+
{
|
|
100
|
+
top: isNumber(_clientState == null ? void 0 : _clientState.listTop) ? `${_clientState.listTop}px` : (
|
|
101
|
+
/* istanbul ignore next */
|
|
102
|
+
void 0
|
|
103
|
+
)
|
|
104
|
+
}
|
|
105
|
+
),
|
|
100
106
|
children: Boolean(loading) ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("p", { className: bem("state"), children: [
|
|
101
107
|
/* @__PURE__ */ jsx(Loading, { size: "sm" }),
|
|
102
108
|
loadingText
|
|
103
|
-
] }) }) : !canSearch ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("p", { className: bem("state"), children: isNumber(minQueryLength) ? (minQueryLengthText ?? "{count} characters required").replaceAll("{count}", String(minQueryLength)) :
|
|
109
|
+
] }) }) : !canSearch ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("p", { className: bem("state"), children: isNumber(minQueryLength) ? (minQueryLengthText ?? "{count} characters required").replaceAll("{count}", String(minQueryLength)) : (
|
|
110
|
+
/* istanbul ignore next */
|
|
111
|
+
"Type to search"
|
|
112
|
+
) }) }) : !hasItems ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("p", { className: bem("state"), children: emptyText }) }) : items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx(
|
|
104
113
|
"li",
|
|
105
114
|
{
|
|
106
115
|
"aria-selected": (_clientState == null ? void 0 : _clientState.activeIndex) === index,
|
|
@@ -5,7 +5,10 @@ import AvatarServer from "./Avatar.server.js";
|
|
|
5
5
|
const Avatar = createIsland({
|
|
6
6
|
name: "Avatar",
|
|
7
7
|
Server: AvatarServer,
|
|
8
|
-
loadLazy:
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./Avatar.lazy.js"), "loadLazy")
|
|
11
|
+
)
|
|
9
12
|
});
|
|
10
13
|
export {
|
|
11
14
|
Avatar
|
|
@@ -14,6 +14,7 @@ function AvatarView({
|
|
|
14
14
|
size = "sm",
|
|
15
15
|
image,
|
|
16
16
|
redirect,
|
|
17
|
+
iconOverride,
|
|
17
18
|
...rest
|
|
18
19
|
}) {
|
|
19
20
|
const rootClass = bem(
|
|
@@ -28,10 +29,13 @@ function AvatarView({
|
|
|
28
29
|
...rest,
|
|
29
30
|
className: rootClass,
|
|
30
31
|
tabIndex: -1,
|
|
31
|
-
style: isNumber(size) ?
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
style: isNumber(size) ? (
|
|
33
|
+
/* istanbul ignore next */
|
|
34
|
+
{
|
|
35
|
+
width: size,
|
|
36
|
+
height: size
|
|
37
|
+
}
|
|
38
|
+
) : void 0,
|
|
35
39
|
children: image ? /* @__PURE__ */ jsx(
|
|
36
40
|
Image,
|
|
37
41
|
{
|
|
@@ -40,14 +44,17 @@ function AvatarView({
|
|
|
40
44
|
className: bem("image", void 0, image.className),
|
|
41
45
|
tabIndex: 0
|
|
42
46
|
}
|
|
43
|
-
) :
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
) : (
|
|
48
|
+
/* istanbul ignore next */
|
|
49
|
+
iconOverride ? iconOverride : /* @__PURE__ */ jsx(
|
|
50
|
+
Icon,
|
|
51
|
+
{
|
|
52
|
+
className: bem("icon", { [variant]: true }),
|
|
53
|
+
color: !["inherit", "white"].includes(variant) ? "white" : void 0,
|
|
54
|
+
name: "UserIcon",
|
|
55
|
+
size: iconSize
|
|
56
|
+
}
|
|
57
|
+
)
|
|
51
58
|
)
|
|
52
59
|
}
|
|
53
60
|
);
|
|
@@ -6,7 +6,10 @@ const isInteractive = /* @__PURE__ */ __name((p) => typeof p.linkComponent === "
|
|
|
6
6
|
const BaseLink = createIsland({
|
|
7
7
|
name: "BaseLink",
|
|
8
8
|
Server: BaseLinkServer,
|
|
9
|
-
loadLazy:
|
|
9
|
+
loadLazy: (
|
|
10
|
+
/* istanbul ignore next */
|
|
11
|
+
/* @__PURE__ */ __name(() => import("./BaseLink.lazy.js"), "loadLazy")
|
|
12
|
+
),
|
|
10
13
|
isInteractive
|
|
11
14
|
});
|
|
12
15
|
export {
|
|
@@ -43,12 +43,14 @@ function BaseLinkView({
|
|
|
43
43
|
const pointerOff = { pointerEvents: "none" };
|
|
44
44
|
const tabIndex = !isNull(disabled) ? -1 : void 0;
|
|
45
45
|
const linkStyle = !isNull(disabled) ? { ...pointerOff, ...style } : style;
|
|
46
|
+
const ariaDisabled = !isNull(disabled) ? true : void 0;
|
|
46
47
|
const { linkComponent, ...aProps } = restProps;
|
|
47
48
|
if (linkComponent) {
|
|
48
49
|
const LinkTag = linkComponent;
|
|
49
50
|
return /* @__PURE__ */ jsx(
|
|
50
51
|
LinkTag,
|
|
51
52
|
{
|
|
53
|
+
"aria-disabled": ariaDisabled,
|
|
52
54
|
href: finalHref,
|
|
53
55
|
rel: computedRel,
|
|
54
56
|
style: linkStyle,
|
|
@@ -63,6 +65,7 @@ function BaseLinkView({
|
|
|
63
65
|
"a",
|
|
64
66
|
{
|
|
65
67
|
...aProps,
|
|
68
|
+
"aria-disabled": ariaDisabled,
|
|
66
69
|
href: finalHref,
|
|
67
70
|
rel: computedRel,
|
|
68
71
|
style: linkStyle,
|
|
@@ -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-
|
|
159
|
-
color: #
|
|
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-
|
|
162
|
-
color:
|
|
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)
|
|
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
|
}
|
|
@@ -5,7 +5,10 @@ import ButtonServer from "./Button.server.js";
|
|
|
5
5
|
const Button = createIsland({
|
|
6
6
|
name: "Button",
|
|
7
7
|
Server: ButtonServer,
|
|
8
|
-
loadLazy:
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./Button.lazy.js"), "loadLazy")
|
|
11
|
+
)
|
|
9
12
|
});
|
|
10
13
|
export {
|
|
11
14
|
Button
|
|
@@ -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-
|
|
159
|
-
color: #
|
|
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-
|
|
162
|
-
color:
|
|
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)
|
|
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
|
}
|