@prokodo/ui 0.1.15 → 1.0.0
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/LICENSE +187 -26
- package/NOTICE +24 -0
- package/README.md +32 -302
- package/dist/components/RTE/RTE.css +180 -68
- package/dist/components/RTE/RTE.module.css +180 -68
- package/dist/components/RTE/RTE.module.scss.js +10 -0
- package/dist/components/RTE/RTE.view.js +5 -1
- package/dist/components/accordion/Accordion.css +120 -67
- package/dist/components/accordion/Accordion.module.css +120 -67
- package/dist/components/accordion/Accordion.module.scss.js +12 -5
- package/dist/components/accordion/Accordion.view.js +3 -3
- package/dist/components/autocomplete/Autocomplete.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.scss.js +11 -4
- package/dist/components/autocomplete/Autocomplete.view.js +3 -1
- package/dist/components/avatar/Avatar.css +11 -8
- package/dist/components/avatar/Avatar.module.css +11 -8
- package/dist/components/avatar/Avatar.module.scss.js +1 -0
- package/dist/components/avatar/Avatar.view.js +5 -5
- package/dist/components/button/Button.client.js +12 -16
- package/dist/components/button/Button.css +85 -137
- package/dist/components/button/Button.module.css +85 -137
- package/dist/components/button/Button.module.scss.js +15 -19
- package/dist/components/button/Button.view.js +6 -2
- package/dist/components/calendly/Calendly.css +132 -0
- package/dist/components/calendly/Calendly.module.css +132 -0
- package/dist/components/calendly/Calendly.module.scss.js +6 -0
- package/dist/components/calendly/Calendly.view.js +12 -6
- package/dist/components/card/Card.client.js +6 -1
- package/dist/components/card/Card.css +67 -32
- package/dist/components/card/Card.module.css +67 -32
- package/dist/components/card/Card.module.scss.js +8 -2
- package/dist/components/card/Card.view.js +3 -3
- package/dist/components/carousel/Carousel.client.js +2 -4
- package/dist/components/carousel/Carousel.css +8 -4
- package/dist/components/carousel/Carousel.module.css +8 -4
- package/dist/components/checkbox/Checkbox.css +100 -79
- package/dist/components/checkbox/Checkbox.module.css +100 -79
- package/dist/components/checkbox/Checkbox.module.scss.js +11 -4
- package/dist/components/checkbox/Checkbox.view.js +3 -1
- package/dist/components/checkbox-group/CheckboxGroup.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +8 -0
- package/dist/components/checkbox-group/CheckboxGroup.view.js +3 -1
- package/dist/components/chip/Chip.css +185 -61
- package/dist/components/chip/Chip.module.css +185 -61
- package/dist/components/chip/Chip.module.scss.js +13 -17
- package/dist/components/chip/Chip.view.js +3 -4
- package/dist/components/datePicker/DatePicker.client.js +211 -66
- package/dist/components/datePicker/DatePicker.css +940 -0
- package/dist/components/datePicker/DatePicker.module.css +940 -0
- package/dist/components/datePicker/DatePicker.module.scss.js +62 -0
- package/dist/components/datePicker/DatePicker.server.js +31 -1
- package/dist/components/datePicker/DatePicker.utils.js +103 -0
- package/dist/components/datePicker/DatePicker.view.js +113 -41
- package/dist/components/datePicker/DatePickerDialog.view.js +291 -0
- package/dist/components/dialog/Dialog.css +107 -132
- package/dist/components/dialog/Dialog.module.css +107 -132
- package/dist/components/dialog/Dialog.module.scss.js +13 -8
- package/dist/components/drawer/Drawer.css +8 -8
- package/dist/components/drawer/Drawer.module.css +8 -8
- package/dist/components/dynamic-list/DynamicList.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.scss.js +1 -0
- package/dist/components/dynamic-list/DynamicList.view.js +78 -46
- package/dist/components/form/Form.view.js +3 -3
- package/dist/components/form/FormField.client.js +51 -2
- package/dist/components/form/FormField.server.js +10 -4
- package/dist/components/form/FormResponse.js +2 -2
- package/dist/components/grid/Grid.css +1 -1
- package/dist/components/grid/Grid.module.css +1 -1
- package/dist/components/headline/Headline.css +16 -16
- package/dist/components/headline/Headline.js +5 -6
- package/dist/components/headline/Headline.module.css +16 -16
- package/dist/components/headline/Headline.module.scss.js +1 -1
- package/dist/components/headline/Headline.variants.js +4 -1
- package/dist/components/icon/Icon.css +14 -14
- package/dist/components/icon/Icon.module.css +14 -14
- package/dist/components/image/Image.css +4 -3
- package/dist/components/image/Image.module.css +4 -3
- package/dist/components/image-text/ImageText.css +43 -14
- package/dist/components/image-text/ImageText.js +61 -53
- package/dist/components/image-text/ImageText.module.css +43 -14
- package/dist/components/image-text/ImageText.module.scss.js +11 -2
- package/dist/components/input/Input.css +197 -115
- package/dist/components/input/Input.module.css +197 -115
- package/dist/components/input/Input.module.scss.js +19 -3
- package/dist/components/input/Input.view.js +87 -57
- package/dist/components/inputOTP/InputOTP.client.js +165 -0
- package/dist/components/inputOTP/InputOTP.css +155 -7
- package/dist/components/inputOTP/InputOTP.js +10 -195
- package/dist/components/inputOTP/InputOTP.lazy.js +12 -0
- package/dist/components/inputOTP/InputOTP.module.css +155 -7
- package/dist/components/inputOTP/InputOTP.module.scss.js +14 -0
- package/dist/components/inputOTP/InputOTP.server.js +32 -0
- package/dist/components/inputOTP/InputOTP.view.js +117 -0
- package/dist/components/label/Label.css +33 -14
- package/dist/components/label/Label.js +37 -35
- package/dist/components/label/Label.module.css +33 -14
- package/dist/components/label/Label.module.scss.js +9 -2
- package/dist/components/link/Link.css +13 -13
- package/dist/components/link/Link.module.css +13 -13
- package/dist/components/link/Link.view.js +14 -12
- package/dist/components/list/List.css +71 -32
- package/dist/components/list/List.js +25 -8
- package/dist/components/list/List.module.css +71 -32
- package/dist/components/list/List.module.scss.js +1 -1
- package/dist/components/loading/Loading.view.js +22 -2
- package/dist/components/lottie/Lottie.css +16 -0
- package/dist/components/lottie/Lottie.module.css +16 -0
- package/dist/components/lottie/Lottie.module.scss.js +6 -2
- package/dist/components/map/Map.css +130 -0
- package/dist/components/map/Map.js +5 -2
- package/dist/components/map/Map.module.css +130 -0
- package/dist/components/map/Map.module.scss.js +6 -0
- package/dist/components/pagination/Pagination.css +127 -11
- package/dist/components/pagination/Pagination.module.css +127 -11
- package/dist/components/pagination/Pagination.module.scss.js +12 -4
- package/dist/components/pagination/Pagination.view.js +13 -1
- package/dist/components/post-item/PostItem.css +16 -16
- package/dist/components/post-item/PostItem.module.css +16 -16
- package/dist/components/post-item/PostItem.view.js +14 -5
- package/dist/components/post-teaser/PostTeaser.css +13 -13
- package/dist/components/post-teaser/PostTeaser.module.css +13 -13
- package/dist/components/post-teaser/PostTeaser.view.js +10 -3
- package/dist/components/post-widget/PostWidget.css +6 -8
- package/dist/components/post-widget/PostWidget.module.css +6 -8
- package/dist/components/post-widget/PostWidget.view.js +12 -5
- package/dist/components/post-widget-carousel/PostWidgetCarousel.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.module.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +30 -13
- package/dist/components/progressBar/ProgressBar.css +4 -4
- package/dist/components/progressBar/ProgressBar.module.css +4 -4
- package/dist/components/progressBar/ProgressBar.view.js +2 -2
- package/dist/components/quote/Quote.css +21 -6
- package/dist/components/quote/Quote.js +5 -5
- package/dist/components/quote/Quote.module.css +21 -6
- package/dist/components/quote/Quote.module.scss.js +5 -0
- package/dist/components/rating/Rating.css +34 -21
- package/dist/components/rating/Rating.module.css +34 -21
- package/dist/components/rating/Rating.module.scss.js +8 -0
- package/dist/components/rating/Rating.view.js +4 -2
- package/dist/components/rich-text/RichText.client.js +3 -3
- package/dist/components/rich-text/RichText.css +47 -31
- package/dist/components/rich-text/RichText.module.css +47 -31
- package/dist/components/rich-text/RichText.server.js +1 -1
- package/dist/components/select/Select.client.js +154 -1
- package/dist/components/select/Select.css +542 -221
- package/dist/components/select/Select.module.css +542 -221
- package/dist/components/select/Select.module.scss.js +57 -14
- package/dist/components/select/Select.view.js +40 -14
- package/dist/components/sidenav/SideNav.client.js +24 -1
- package/dist/components/sidenav/SideNav.css +89 -21
- package/dist/components/sidenav/SideNav.module.css +89 -21
- package/dist/components/sidenav/SideNav.module.scss.js +6 -1
- package/dist/components/sidenav/SideNav.view.js +69 -14
- package/dist/components/skeleton/Skeleton.css +7 -7
- package/dist/components/skeleton/Skeleton.module.css +7 -7
- package/dist/components/slider/Slider.css +177 -112
- package/dist/components/slider/Slider.module.css +177 -112
- package/dist/components/slider/Slider.module.scss.js +11 -2
- package/dist/components/slider/Slider.view.js +113 -101
- package/dist/components/snackbar/Snackbar.css +125 -64
- package/dist/components/snackbar/Snackbar.module.css +125 -64
- package/dist/components/snackbar/Snackbar.module.scss.js +11 -13
- package/dist/components/snackbar/Snackbar.view.js +2 -2
- package/dist/components/stepper/Stepper.client.js +21 -6
- package/dist/components/stepper/Stepper.css +46 -11
- package/dist/components/stepper/Stepper.module.css +46 -11
- package/dist/components/stepper/Stepper.module.scss.js +7 -0
- package/dist/components/stepper/Stepper.server.js +2 -0
- package/dist/components/stepper/Stepper.view.js +6 -1
- package/dist/components/switch/Switch.css +108 -84
- package/dist/components/switch/Switch.module.css +108 -84
- package/dist/components/switch/Switch.module.scss.js +14 -12
- package/dist/components/switch/Switch.view.js +9 -8
- package/dist/components/table/Table.css +19 -14
- package/dist/components/table/Table.module.css +19 -14
- package/dist/components/tabs/Tabs.css +53 -27
- package/dist/components/tabs/Tabs.module.css +53 -27
- package/dist/components/tabs/Tabs.module.scss.js +7 -2
- package/dist/components/tabs/Tabs.view.js +4 -2
- package/dist/components/teaser/Teaser.css +5 -5
- package/dist/components/teaser/Teaser.js +4 -4
- package/dist/components/teaser/Teaser.module.css +5 -5
- package/dist/components/tooltip/Tooltip.client.js +14 -4
- package/dist/components/tooltip/Tooltip.css +46 -9
- package/dist/components/tooltip/Tooltip.module.css +46 -9
- package/dist/components/tooltip/Tooltip.module.scss.js +5 -1
- package/dist/components/tooltip/Tooltip.view.js +6 -1
- package/dist/constants/project.js +1 -1
- package/dist/theme.css +3269 -1588
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/RTE/RTE.d.ts +5 -0
- package/dist/types/components/RTE/RTE.lazy.d.ts +5 -0
- package/dist/types/components/RTE/RTE.view.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.lazy.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.model.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.view.d.ts +1 -1
- package/dist/types/components/autocomplete/Autocomplete.model.d.ts +2 -0
- package/dist/types/components/autocomplete/Autocomplete.view.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.lazy.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.model.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.view.d.ts +1 -1
- package/dist/types/components/calendly/Calendly.view.d.ts +1 -1
- package/dist/types/components/card/Card.model.d.ts +1 -1
- package/dist/types/components/card/Card.view.d.ts +1 -1
- package/dist/types/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.lazy.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.model.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.view.d.ts +1 -1
- package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +2 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +1 -1
- package/dist/types/components/datePicker/DatePicker.model.d.ts +70 -1
- package/dist/types/components/datePicker/DatePicker.utils.d.ts +10 -0
- package/dist/types/components/datePicker/DatePicker.view.d.ts +7 -4
- package/dist/types/components/datePicker/DatePickerDialog.view.d.ts +4 -0
- package/dist/types/components/dynamic-list/DynamicList.model.d.ts +2 -0
- package/dist/types/components/dynamic-list/DynamicList.view.d.ts +1 -1
- package/dist/types/components/form/Form.d.ts +1 -1
- package/dist/types/components/form/Form.lazy.d.ts +1 -1
- package/dist/types/components/form/Form.model.d.ts +19 -4
- package/dist/types/components/form/FormField.client.d.ts +2 -2
- package/dist/types/components/form/FormField.d.ts +1 -1
- package/dist/types/components/form/FormField.lazy.d.ts +1 -1
- package/dist/types/components/form/FormField.server.d.ts +2 -2
- package/dist/types/components/headline/Headline.model.d.ts +1 -1
- package/dist/types/components/input/Input.model.d.ts +8 -1
- package/dist/types/components/input/Input.view.d.ts +1 -1
- package/dist/types/components/inputOTP/InputOTP.client.d.ts +4 -0
- package/dist/types/components/inputOTP/InputOTP.d.ts +10 -3
- package/dist/types/components/inputOTP/InputOTP.lazy.d.ts +11 -0
- package/dist/types/components/inputOTP/InputOTP.model.d.ts +10 -0
- package/dist/types/components/inputOTP/InputOTP.server.d.ts +3 -0
- package/dist/types/components/inputOTP/InputOTP.view.d.ts +3 -0
- package/dist/types/components/inputOTP/index.d.ts +1 -1
- package/dist/types/components/label/Label.model.d.ts +2 -0
- package/dist/types/components/link/Link.model.d.ts +1 -1
- package/dist/types/components/link/Link.view.d.ts +1 -1
- package/dist/types/components/list/List.d.ts +1 -1
- package/dist/types/components/list/List.model.d.ts +14 -5
- package/dist/types/components/list/index.d.ts +1 -1
- package/dist/types/components/loading/Loading.model.d.ts +2 -0
- package/dist/types/components/loading/index.d.ts +1 -1
- package/dist/types/components/pagination/Pagination.model.d.ts +2 -0
- package/dist/types/components/pagination/Pagination.view.d.ts +1 -1
- package/dist/types/components/post-item/PostItem.model.d.ts +2 -1
- package/dist/types/components/post-teaser/PostTeaser.model.d.ts +2 -1
- package/dist/types/components/post-widget/PostWidget.view.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.lazy.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.model.d.ts +3 -2
- package/dist/types/components/progressBar/ProgressBar.view.d.ts +1 -1
- package/dist/types/components/progressBar/index.d.ts +1 -1
- package/dist/types/components/quote/Quote.model.d.ts +1 -1
- package/dist/types/components/rating/Rating.model.d.ts +2 -0
- package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.lazy.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.model.d.ts +1 -1
- package/dist/types/components/select/Select.model.d.ts +2 -0
- package/dist/types/components/select/Select.view.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.client.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.model.d.ts +16 -2
- package/dist/types/components/sidenav/SideNav.view.d.ts +1 -1
- package/dist/types/components/slider/Slider.model.d.ts +2 -0
- package/dist/types/components/snackbar/Snackbar.model.d.ts +3 -2
- package/dist/types/components/snackbar/Snackbar.view.d.ts +3 -2
- package/dist/types/components/snackbar/index.d.ts +1 -1
- package/dist/types/components/stepper/Stepper.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.lazy.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.model.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.server.d.ts +1 -1
- package/dist/types/components/switch/Switch.d.ts +2 -2
- package/dist/types/components/switch/Switch.lazy.d.ts +2 -2
- package/dist/types/components/switch/Switch.model.d.ts +3 -4
- package/dist/types/components/tabs/Tabs.model.d.ts +2 -0
- package/dist/types/components/tabs/Tabs.view.d.ts +1 -1
- package/dist/types/components/teaser/Teaser.model.d.ts +1 -1
- package/dist/types/components/tooltip/Tooltip.model.d.ts +2 -0
- package/package.json +37 -22
|
@@ -13,7 +13,7 @@ import { Icon } from "../icon/Icon.js";
|
|
|
13
13
|
const bem = create(styles, "Teaser");
|
|
14
14
|
const Teaser = /* @__PURE__ */ __name(({
|
|
15
15
|
className,
|
|
16
|
-
|
|
16
|
+
color = "primary",
|
|
17
17
|
animation,
|
|
18
18
|
lineClamp,
|
|
19
19
|
align,
|
|
@@ -27,7 +27,7 @@ const Teaser = /* @__PURE__ */ __name(({
|
|
|
27
27
|
return /* @__PURE__ */ jsxs(
|
|
28
28
|
Card,
|
|
29
29
|
{
|
|
30
|
-
|
|
30
|
+
color,
|
|
31
31
|
...props,
|
|
32
32
|
className: bem(void 0, void 0, className),
|
|
33
33
|
contentClassName: bem("card"),
|
|
@@ -51,7 +51,7 @@ const Teaser = /* @__PURE__ */ __name(({
|
|
|
51
51
|
size: "md",
|
|
52
52
|
type: "h3",
|
|
53
53
|
...title,
|
|
54
|
-
|
|
54
|
+
color: (title == null ? void 0 : title.color) ?? color,
|
|
55
55
|
className: bem(
|
|
56
56
|
"headline",
|
|
57
57
|
{
|
|
@@ -76,7 +76,7 @@ const Teaser = /* @__PURE__ */ __name(({
|
|
|
76
76
|
/* @__PURE__ */ jsx(
|
|
77
77
|
Icon,
|
|
78
78
|
{
|
|
79
|
-
color
|
|
79
|
+
color,
|
|
80
80
|
name: "ArrowRight01Icon",
|
|
81
81
|
size: "xs",
|
|
82
82
|
...redirect == null ? void 0 : redirect.icon,
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
padding: 0;
|
|
132
132
|
}
|
|
133
133
|
.prokodo-Teaser__card__content {
|
|
134
|
-
padding:
|
|
134
|
+
padding: var(--pk-space-lg);
|
|
135
135
|
}
|
|
136
136
|
.prokodo-Teaser__image {
|
|
137
137
|
-o-object-fit: cover;
|
|
@@ -143,10 +143,10 @@
|
|
|
143
143
|
height: 230px;
|
|
144
144
|
}
|
|
145
145
|
.prokodo-Teaser__image__caption {
|
|
146
|
-
bottom:
|
|
146
|
+
bottom: var(--pk-space-sm);
|
|
147
147
|
text-align: right;
|
|
148
|
-
padding-right:
|
|
149
|
-
width: calc(100% -
|
|
148
|
+
padding-right: var(--pk-space-sm);
|
|
149
|
+
width: calc(100% - var(--pk-space-sm));
|
|
150
150
|
}
|
|
151
151
|
.prokodo-Teaser__animation {
|
|
152
152
|
width: 100%;
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
align-items: center;
|
|
198
198
|
}
|
|
199
199
|
.prokodo-Teaser__link__icon {
|
|
200
|
-
margin-right:
|
|
200
|
+
margin-right: var(--pk-space-xs);
|
|
201
201
|
}
|
|
@@ -154,6 +154,7 @@ function TooltipClient(props) {
|
|
|
154
154
|
triggerProps,
|
|
155
155
|
placement = "top",
|
|
156
156
|
tooltipClassName,
|
|
157
|
+
color = "default",
|
|
157
158
|
...rest
|
|
158
159
|
} = props;
|
|
159
160
|
const isControlled = controlledOpen !== void 0;
|
|
@@ -271,16 +272,24 @@ function TooltipClient(props) {
|
|
|
271
272
|
]
|
|
272
273
|
);
|
|
273
274
|
const portalBubbleClassBase = useMemo(
|
|
274
|
-
() => bem(
|
|
275
|
-
|
|
275
|
+
() => bem(
|
|
276
|
+
"bubble",
|
|
277
|
+
{ ...color !== "default" ? { [color]: true } : {} },
|
|
278
|
+
tooltipClassName
|
|
279
|
+
),
|
|
280
|
+
[color, tooltipClassName]
|
|
276
281
|
);
|
|
277
282
|
const portalBubbleClassFinal = useMemo(
|
|
278
283
|
() => bem(
|
|
279
284
|
"bubble",
|
|
280
|
-
{
|
|
285
|
+
{
|
|
286
|
+
open: Boolean(open && bubbleStyle),
|
|
287
|
+
[effectivePlacement]: true,
|
|
288
|
+
...color !== "default" ? { [color]: true } : {}
|
|
289
|
+
},
|
|
281
290
|
tooltipClassName
|
|
282
291
|
),
|
|
283
|
-
[open, bubbleStyle, effectivePlacement, tooltipClassName]
|
|
292
|
+
[open, bubbleStyle, effectivePlacement, color, tooltipClassName]
|
|
284
293
|
);
|
|
285
294
|
const compute = useCallback(
|
|
286
295
|
/* istanbul ignore next */
|
|
@@ -374,6 +383,7 @@ function TooltipClient(props) {
|
|
|
374
383
|
__placement: portal ? effectivePlacement : placement,
|
|
375
384
|
__renderVisualBubble: !portal,
|
|
376
385
|
__triggerRef: triggerRef,
|
|
386
|
+
color,
|
|
377
387
|
content,
|
|
378
388
|
disabled,
|
|
379
389
|
placement,
|
|
@@ -164,11 +164,12 @@
|
|
|
164
164
|
max-width: min(360px, 100vw - 16px);
|
|
165
165
|
white-space: normal;
|
|
166
166
|
overflow-wrap: anywhere;
|
|
167
|
-
padding:
|
|
168
|
-
border-radius:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
padding: var(--pk-space-xs) var(--pk-space-sm);
|
|
168
|
+
border-radius: var(--pk-tooltip-radius);
|
|
169
|
+
border: var(--pk-border-width) solid var(--pk-tooltip-border);
|
|
170
|
+
box-shadow: var(--pk-tooltip-shadow);
|
|
171
|
+
background: var(--pk-tooltip-bg);
|
|
172
|
+
color: var(--pk-tooltip-fg);
|
|
172
173
|
opacity: 0;
|
|
173
174
|
visibility: hidden;
|
|
174
175
|
pointer-events: none;
|
|
@@ -213,28 +214,64 @@
|
|
|
213
214
|
top: 100%;
|
|
214
215
|
transform: translateX(-50%);
|
|
215
216
|
border-width: 8px 8px 0 8px;
|
|
216
|
-
border-color: var(--
|
|
217
|
+
border-color: var(--pk-tooltip-bg) transparent transparent transparent;
|
|
217
218
|
}
|
|
218
219
|
.prokodo-Tooltip__bubble--bottom::after {
|
|
219
220
|
left: var(--pk-tt-arrow-x, 50%);
|
|
220
221
|
bottom: 100%;
|
|
221
222
|
transform: translateX(-50%);
|
|
222
223
|
border-width: 0 8px 8px 8px;
|
|
223
|
-
border-color: transparent transparent var(--
|
|
224
|
+
border-color: transparent transparent var(--pk-tooltip-bg) transparent;
|
|
224
225
|
}
|
|
225
226
|
.prokodo-Tooltip__bubble--left::after {
|
|
226
227
|
top: var(--pk-tt-arrow-y, 50%);
|
|
227
228
|
left: 100%;
|
|
228
229
|
transform: translateY(-50%);
|
|
229
230
|
border-width: 8px 0 8px 8px;
|
|
230
|
-
border-color: transparent transparent transparent var(--
|
|
231
|
+
border-color: transparent transparent transparent var(--pk-tooltip-bg);
|
|
231
232
|
}
|
|
232
233
|
.prokodo-Tooltip__bubble--right::after {
|
|
233
234
|
top: var(--pk-tt-arrow-y, 50%);
|
|
234
235
|
right: 100%;
|
|
235
236
|
transform: translateY(-50%);
|
|
236
237
|
border-width: 8px 8px 8px 0;
|
|
237
|
-
border-color: transparent var(--
|
|
238
|
+
border-color: transparent var(--pk-tooltip-bg) transparent transparent;
|
|
239
|
+
}
|
|
240
|
+
.prokodo-Tooltip__bubble--success {
|
|
241
|
+
--pk-tooltip-bg: var(--pk-tooltip-success-bg);
|
|
242
|
+
--pk-tooltip-fg: var(--pk-tooltip-success-fg);
|
|
243
|
+
--pk-tooltip-border: var(--pk-tooltip-success-border);
|
|
244
|
+
box-shadow: var(--pk-tooltip-success-shadow);
|
|
245
|
+
background: var(--pk-tooltip-bg);
|
|
246
|
+
color: var(--pk-tooltip-fg);
|
|
247
|
+
border-color: var(--pk-tooltip-border);
|
|
248
|
+
}
|
|
249
|
+
.prokodo-Tooltip__bubble--error {
|
|
250
|
+
--pk-tooltip-bg: var(--pk-tooltip-error-bg);
|
|
251
|
+
--pk-tooltip-fg: var(--pk-tooltip-error-fg);
|
|
252
|
+
--pk-tooltip-border: var(--pk-tooltip-error-border);
|
|
253
|
+
box-shadow: var(--pk-tooltip-error-shadow);
|
|
254
|
+
background: var(--pk-tooltip-bg);
|
|
255
|
+
color: var(--pk-tooltip-fg);
|
|
256
|
+
border-color: var(--pk-tooltip-border);
|
|
257
|
+
}
|
|
258
|
+
.prokodo-Tooltip__bubble--warning {
|
|
259
|
+
--pk-tooltip-bg: var(--pk-tooltip-warning-bg);
|
|
260
|
+
--pk-tooltip-fg: var(--pk-tooltip-warning-fg);
|
|
261
|
+
--pk-tooltip-border: var(--pk-tooltip-warning-border);
|
|
262
|
+
box-shadow: var(--pk-tooltip-warning-shadow);
|
|
263
|
+
background: var(--pk-tooltip-bg);
|
|
264
|
+
color: var(--pk-tooltip-fg);
|
|
265
|
+
border-color: var(--pk-tooltip-border);
|
|
266
|
+
}
|
|
267
|
+
.prokodo-Tooltip__bubble--info {
|
|
268
|
+
--pk-tooltip-bg: var(--pk-tooltip-info-bg);
|
|
269
|
+
--pk-tooltip-fg: var(--pk-tooltip-info-fg);
|
|
270
|
+
--pk-tooltip-border: var(--pk-tooltip-info-border);
|
|
271
|
+
box-shadow: var(--pk-tooltip-info-shadow);
|
|
272
|
+
background: var(--pk-tooltip-bg);
|
|
273
|
+
color: var(--pk-tooltip-fg);
|
|
274
|
+
border-color: var(--pk-tooltip-border);
|
|
238
275
|
}
|
|
239
276
|
.prokodo-Tooltip:hover .prokodo-Tooltip__bubble, .prokodo-Tooltip:focus-within .prokodo-Tooltip__bubble {
|
|
240
277
|
opacity: 1;
|
|
@@ -164,11 +164,12 @@
|
|
|
164
164
|
max-width: min(360px, 100vw - 16px);
|
|
165
165
|
white-space: normal;
|
|
166
166
|
overflow-wrap: anywhere;
|
|
167
|
-
padding:
|
|
168
|
-
border-radius:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
padding: var(--pk-space-xs) var(--pk-space-sm);
|
|
168
|
+
border-radius: var(--pk-tooltip-radius);
|
|
169
|
+
border: var(--pk-border-width) solid var(--pk-tooltip-border);
|
|
170
|
+
box-shadow: var(--pk-tooltip-shadow);
|
|
171
|
+
background: var(--pk-tooltip-bg);
|
|
172
|
+
color: var(--pk-tooltip-fg);
|
|
172
173
|
opacity: 0;
|
|
173
174
|
visibility: hidden;
|
|
174
175
|
pointer-events: none;
|
|
@@ -213,28 +214,64 @@
|
|
|
213
214
|
top: 100%;
|
|
214
215
|
transform: translateX(-50%);
|
|
215
216
|
border-width: 8px 8px 0 8px;
|
|
216
|
-
border-color: var(--
|
|
217
|
+
border-color: var(--pk-tooltip-bg) transparent transparent transparent;
|
|
217
218
|
}
|
|
218
219
|
.prokodo-Tooltip__bubble--bottom::after {
|
|
219
220
|
left: var(--pk-tt-arrow-x, 50%);
|
|
220
221
|
bottom: 100%;
|
|
221
222
|
transform: translateX(-50%);
|
|
222
223
|
border-width: 0 8px 8px 8px;
|
|
223
|
-
border-color: transparent transparent var(--
|
|
224
|
+
border-color: transparent transparent var(--pk-tooltip-bg) transparent;
|
|
224
225
|
}
|
|
225
226
|
.prokodo-Tooltip__bubble--left::after {
|
|
226
227
|
top: var(--pk-tt-arrow-y, 50%);
|
|
227
228
|
left: 100%;
|
|
228
229
|
transform: translateY(-50%);
|
|
229
230
|
border-width: 8px 0 8px 8px;
|
|
230
|
-
border-color: transparent transparent transparent var(--
|
|
231
|
+
border-color: transparent transparent transparent var(--pk-tooltip-bg);
|
|
231
232
|
}
|
|
232
233
|
.prokodo-Tooltip__bubble--right::after {
|
|
233
234
|
top: var(--pk-tt-arrow-y, 50%);
|
|
234
235
|
right: 100%;
|
|
235
236
|
transform: translateY(-50%);
|
|
236
237
|
border-width: 8px 8px 8px 0;
|
|
237
|
-
border-color: transparent var(--
|
|
238
|
+
border-color: transparent var(--pk-tooltip-bg) transparent transparent;
|
|
239
|
+
}
|
|
240
|
+
.prokodo-Tooltip__bubble--success {
|
|
241
|
+
--pk-tooltip-bg: var(--pk-tooltip-success-bg);
|
|
242
|
+
--pk-tooltip-fg: var(--pk-tooltip-success-fg);
|
|
243
|
+
--pk-tooltip-border: var(--pk-tooltip-success-border);
|
|
244
|
+
box-shadow: var(--pk-tooltip-success-shadow);
|
|
245
|
+
background: var(--pk-tooltip-bg);
|
|
246
|
+
color: var(--pk-tooltip-fg);
|
|
247
|
+
border-color: var(--pk-tooltip-border);
|
|
248
|
+
}
|
|
249
|
+
.prokodo-Tooltip__bubble--error {
|
|
250
|
+
--pk-tooltip-bg: var(--pk-tooltip-error-bg);
|
|
251
|
+
--pk-tooltip-fg: var(--pk-tooltip-error-fg);
|
|
252
|
+
--pk-tooltip-border: var(--pk-tooltip-error-border);
|
|
253
|
+
box-shadow: var(--pk-tooltip-error-shadow);
|
|
254
|
+
background: var(--pk-tooltip-bg);
|
|
255
|
+
color: var(--pk-tooltip-fg);
|
|
256
|
+
border-color: var(--pk-tooltip-border);
|
|
257
|
+
}
|
|
258
|
+
.prokodo-Tooltip__bubble--warning {
|
|
259
|
+
--pk-tooltip-bg: var(--pk-tooltip-warning-bg);
|
|
260
|
+
--pk-tooltip-fg: var(--pk-tooltip-warning-fg);
|
|
261
|
+
--pk-tooltip-border: var(--pk-tooltip-warning-border);
|
|
262
|
+
box-shadow: var(--pk-tooltip-warning-shadow);
|
|
263
|
+
background: var(--pk-tooltip-bg);
|
|
264
|
+
color: var(--pk-tooltip-fg);
|
|
265
|
+
border-color: var(--pk-tooltip-border);
|
|
266
|
+
}
|
|
267
|
+
.prokodo-Tooltip__bubble--info {
|
|
268
|
+
--pk-tooltip-bg: var(--pk-tooltip-info-bg);
|
|
269
|
+
--pk-tooltip-fg: var(--pk-tooltip-info-fg);
|
|
270
|
+
--pk-tooltip-border: var(--pk-tooltip-info-border);
|
|
271
|
+
box-shadow: var(--pk-tooltip-info-shadow);
|
|
272
|
+
background: var(--pk-tooltip-bg);
|
|
273
|
+
color: var(--pk-tooltip-fg);
|
|
274
|
+
border-color: var(--pk-tooltip-border);
|
|
238
275
|
}
|
|
239
276
|
.prokodo-Tooltip:hover .prokodo-Tooltip__bubble, .prokodo-Tooltip:focus-within .prokodo-Tooltip__bubble {
|
|
240
277
|
opacity: 1;
|
|
@@ -8,7 +8,11 @@ const styles = {
|
|
|
8
8
|
"prokodo-Tooltip__bubble--top": "prokodo-Tooltip__bubble--top",
|
|
9
9
|
"prokodo-Tooltip__bubble--bottom": "prokodo-Tooltip__bubble--bottom",
|
|
10
10
|
"prokodo-Tooltip__bubble--left": "prokodo-Tooltip__bubble--left",
|
|
11
|
-
"prokodo-Tooltip__bubble--right": "prokodo-Tooltip__bubble--right"
|
|
11
|
+
"prokodo-Tooltip__bubble--right": "prokodo-Tooltip__bubble--right",
|
|
12
|
+
"prokodo-Tooltip__bubble--success": "prokodo-Tooltip__bubble--success",
|
|
13
|
+
"prokodo-Tooltip__bubble--error": "prokodo-Tooltip__bubble--error",
|
|
14
|
+
"prokodo-Tooltip__bubble--warning": "prokodo-Tooltip__bubble--warning",
|
|
15
|
+
"prokodo-Tooltip__bubble--info": "prokodo-Tooltip__bubble--info"
|
|
12
16
|
};
|
|
13
17
|
export {
|
|
14
18
|
styles as default
|
|
@@ -38,6 +38,7 @@ function TooltipView(props) {
|
|
|
38
38
|
content,
|
|
39
39
|
children,
|
|
40
40
|
placement = "top",
|
|
41
|
+
color = "default",
|
|
41
42
|
disabled,
|
|
42
43
|
open,
|
|
43
44
|
className,
|
|
@@ -94,7 +95,11 @@ function TooltipView(props) {
|
|
|
94
95
|
};
|
|
95
96
|
const inlineBubbleClass = bem(
|
|
96
97
|
"bubble",
|
|
97
|
-
{
|
|
98
|
+
{
|
|
99
|
+
open: Boolean(effectiveOpen),
|
|
100
|
+
[effectivePlacement]: true,
|
|
101
|
+
...color !== "default" ? { [color]: true } : {}
|
|
102
|
+
},
|
|
98
103
|
tooltipClassName
|
|
99
104
|
);
|
|
100
105
|
return /* @__PURE__ */ jsxs(
|