@luscii-healthtech/web-ui 32.0.0 → 33.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/dist/components/CenteredHero/CenteredHero.d.ts +4 -3
- package/dist/components/Icons/types/IconProps.type.d.ts +9 -0
- package/dist/index.development.js +209 -204
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/web-ui-tailwind.css +0 -4
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ButtonProps } from "../Button/Button.types";
|
|
3
2
|
export type BackgroundColor = "white" | "slate-50";
|
|
4
3
|
export type ImageSize = "small" | "large";
|
|
5
4
|
export interface CenteredHeroProps {
|
|
@@ -7,9 +6,11 @@ export interface CenteredHeroProps {
|
|
|
7
6
|
text?: string;
|
|
8
7
|
image?: string;
|
|
9
8
|
imageSize?: ImageSize;
|
|
10
|
-
|
|
9
|
+
slots?: {
|
|
10
|
+
bottom?: React.ReactNode;
|
|
11
|
+
};
|
|
11
12
|
background?: BackgroundColor;
|
|
12
13
|
dataTestId?: string;
|
|
13
14
|
}
|
|
14
|
-
declare const CenteredHero: ({ title, text, image,
|
|
15
|
+
declare const CenteredHero: ({ title, text, image, slots, background, imageSize, dataTestId, }: CenteredHeroProps) => React.ReactElement;
|
|
15
16
|
export default CenteredHero;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as Icons from "../index";
|
|
3
3
|
export interface IconProps {
|
|
4
|
+
/**
|
|
5
|
+
* `"m"` size is 24 x 24px. This is the default size.
|
|
6
|
+
* `"s"` size is 20 x 20px. This size is useful for
|
|
7
|
+
* icons showing before/after text, because most of
|
|
8
|
+
* our text has a 20px line height.
|
|
9
|
+
*
|
|
10
|
+
* @default "m"
|
|
11
|
+
*/
|
|
12
|
+
size?: "s" | "m";
|
|
4
13
|
className?: string;
|
|
5
14
|
onClick?: (event: React.MouseEvent<SVGSVGElement> | undefined) => void;
|
|
6
15
|
"data-test-id"?: string;
|
|
@@ -11,10 +11,10 @@ var omit = require('lodash.omit');
|
|
|
11
11
|
var reactLazyLoadImageComponent = require('react-lazy-load-image-component');
|
|
12
12
|
var utilities = require('@dnd-kit/utilities');
|
|
13
13
|
var ReactTooltip = require('react-tooltip');
|
|
14
|
-
var router = require('@reach/router');
|
|
15
14
|
var ReactModal = require('react-modal');
|
|
16
15
|
var Glider = require('react-glider');
|
|
17
16
|
require('glider-js/glider.min.css');
|
|
17
|
+
var router = require('@reach/router');
|
|
18
18
|
var ReactDatePicker = require('react-datepicker');
|
|
19
19
|
require('react-datepicker/dist/react-datepicker.min.css');
|
|
20
20
|
var enGB = require('date-fns/locale/en-GB');
|
|
@@ -160,7 +160,12 @@ const FlexRow = (props) => {
|
|
|
160
160
|
return React__namespace.default.createElement(FlexContainer, Object.assign({}, rest, { type: "row", horizontalSpacing: spacing }), children);
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
const IconWrapper = (SVGComponent) => (props) =>
|
|
163
|
+
const IconWrapper = (SVGComponent) => (props) => {
|
|
164
|
+
const classes = classNames__default.default({
|
|
165
|
+
"ui-h-[20px] ui-w-[20px]": props.size === "s"
|
|
166
|
+
}, props.className);
|
|
167
|
+
return React__namespace.default.createElement(SVGComponent, Object.assign({}, props, { role: props.onClick ? "button" : void 0, className: classes }));
|
|
168
|
+
};
|
|
164
169
|
|
|
165
170
|
const SvgChartLineColoredIcon = (props) => React__namespace.default.createElement(
|
|
166
171
|
"svg",
|
|
@@ -2041,207 +2046,7 @@ function LoadingIndicator(_a) {
|
|
|
2041
2046
|
);
|
|
2042
2047
|
}
|
|
2043
2048
|
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
var img$a = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3 6C3 5.44772 3.44772 5 4 5H20C20.5523 5 21 5.44772 21 6C21 6.55228 20.5523 7 20 7H4C3.44772 7 3 6.55228 3 6Z' fill='%23EDF2F7'/%3e%3cpath d='M3 12C3 11.4477 3.44772 11 4 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H4C3.44772 13 3 12.5523 3 12Z' fill='%23EDF2F7'/%3e%3cpath d='M4 17C3.44772 17 3 17.4477 3 18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18C21 17.4477 20.5523 17 20 17H4Z' fill='%23EDF2F7'/%3e%3c/svg%3e";
|
|
2047
|
-
|
|
2048
|
-
var img$9 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.31008 6.70978C8.92008 7.09978 8.92008 7.72978 9.31008 8.11978L13.1901 11.9998L9.31008 15.8798C8.92008 16.2698 8.92008 16.8998 9.31008 17.2898C9.70008 17.6798 10.3301 17.6798 10.7201 17.2898L15.3101 12.6998C15.7001 12.3098 15.7001 11.6798 15.3101 11.2898L10.7201 6.69978C10.3401 6.31978 9.70008 6.31978 9.31008 6.70978Z' fill='%230074DD'/%3e%3c/svg%3e";
|
|
2049
|
-
|
|
2050
|
-
var img$8 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.31008 6.70978C8.92008 7.09978 8.92008 7.72978 9.31008 8.11978L13.1901 11.9998L9.31008 15.8798C8.92008 16.2698 8.92008 16.8998 9.31008 17.2898C9.70008 17.6798 10.3301 17.6798 10.7201 17.2898L15.3101 12.6998C15.7001 12.3098 15.7001 11.6798 15.3101 11.2898L10.7201 6.69978C10.3401 6.31978 9.70008 6.31978 9.31008 6.70978Z' fill='%23EDF2F7'/%3e%3c/svg%3e";
|
|
2051
|
-
|
|
2052
|
-
var img$7 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.6899 17.2902C14.0799 16.9002 14.0799 16.2702 13.6899 15.8802L9.80992 12.0002L13.6899 8.12022C14.0799 7.73022 14.0799 7.10022 13.6899 6.71022C13.2999 6.32022 12.6699 6.32022 12.2799 6.71022L7.68992 11.3002C7.29992 11.6902 7.29992 12.3202 7.68992 12.7102L12.2799 17.3002C12.6599 17.6802 13.2999 17.6802 13.6899 17.2902Z' fill='%230074DD'/%3e%3c/svg%3e";
|
|
2053
|
-
|
|
2054
|
-
var img$6 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.6899 17.2902C14.0799 16.9002 14.0799 16.2702 13.6899 15.8802L9.80992 12.0002L13.6899 8.12022C14.0799 7.73022 14.0799 7.10022 13.6899 6.71022C13.2999 6.32022 12.6699 6.32022 12.2799 6.71022L7.68992 11.3002C7.29992 11.6902 7.29992 12.3202 7.68992 12.7102L12.2799 17.3002C12.6599 17.6802 13.2999 17.6802 13.6899 17.2902Z' fill='%23EDF2F7'/%3e%3c/svg%3e";
|
|
2055
|
-
|
|
2056
|
-
var img$5 = "data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.5006 11.0006H11.7106L11.4306 10.7306C12.6306 9.33063 13.2506 7.42063 12.9106 5.39063C12.4406 2.61063 10.1206 0.390626 7.32063 0.0506256C3.09063 -0.469374 -0.469374 3.09063 0.0506256 7.32063C0.390626 10.1206 2.61063 12.4406 5.39063 12.9106C7.42063 13.2506 9.33063 12.6306 10.7306 11.4306L11.0006 11.7106V12.5006L15.2506 16.7506C15.6606 17.1606 16.3306 17.1606 16.7406 16.7506C17.1506 16.3406 17.1506 15.6706 16.7406 15.2606L12.5006 11.0006ZM6.50063 11.0006C4.01063 11.0006 2.00063 8.99063 2.00063 6.50063C2.00063 4.01063 4.01063 2.00063 6.50063 2.00063C8.99063 2.00063 11.0006 4.01063 11.0006 6.50063C11.0006 8.99063 8.99063 11.0006 6.50063 11.0006Z' fill='%230074DD'/%3e%3c/svg%3e";
|
|
2057
|
-
|
|
2058
|
-
var img$4 = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.05086 0.636643C1.66033 0.246119 1.02717 0.246119 0.636643 0.636643C0.246119 1.02717 0.246119 1.66033 0.636643 2.05086L5.5867 7.00092L0.636672 11.9509C0.246148 12.3415 0.246148 12.9746 0.636672 13.3652C1.0272 13.7557 1.66036 13.7557 2.05089 13.3652L7.00091 8.41513L11.9503 13.3646C12.3409 13.7551 12.974 13.7551 13.3646 13.3646C13.7551 12.974 13.7551 12.3409 13.3646 11.9504L8.41513 7.00092L13.3646 2.05145C13.7551 1.66093 13.7551 1.02776 13.3646 0.637237C12.9741 0.246712 12.3409 0.246713 11.9504 0.637237L7.00092 5.5867L2.05086 0.636643Z' fill='%230074DD'/%3e%3c/svg%3e";
|
|
2059
|
-
|
|
2060
|
-
var img$3 = "data:image/svg+xml,%3csvg width='19' height='18' viewBox='0 0 19 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8.58663 1.04906C8.93899 0.258571 10.061 0.258571 10.4134 1.04906L12.1659 4.9807C12.3112 5.30673 12.6193 5.53057 12.9743 5.56804L17.2551 6.01985C18.1158 6.11069 18.4625 7.17779 17.8196 7.75718L14.6219 10.6389C14.3568 10.8778 14.2391 11.24 14.3131 11.5892L15.2063 15.8001C15.3858 16.6467 14.4781 17.3062 13.7284 16.8738L9.99962 14.7232C9.69041 14.5448 9.30959 14.5448 9.00038 14.7232L5.27159 16.8738C4.52189 17.3062 3.61416 16.6467 3.79373 15.8001L4.68686 11.5892C4.76093 11.24 4.64325 10.8778 4.37808 10.6389L1.18043 7.75718C0.537518 7.17779 0.88424 6.11069 1.74492 6.01985L6.0257 5.56804C6.38068 5.53057 6.68877 5.30673 6.8341 4.9807L8.58663 1.04906Z' fill='%23009FE3'/%3e%3c/svg%3e";
|
|
2061
|
-
|
|
2062
|
-
var img$2 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e %3cg transform='translate(1.5%2c 0.5)'%3e %3cpath fill='none' fill-rule='evenodd' stroke='%230074DD' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12.643 3.357L6.03 9.97l-2.674 2.674L0 9.286'/%3e %3c/g%3e%3c/svg%3e";
|
|
2063
|
-
|
|
2064
|
-
const iconSrc = {
|
|
2065
|
-
// These need to be converted to svg files instead of components and added in
|
|
2066
|
-
// "add": AddIcon,
|
|
2067
|
-
// "delete": DeleteIcon,
|
|
2068
|
-
// "edit": EditIcon,
|
|
2069
|
-
close: img$b,
|
|
2070
|
-
hamburger: img$a,
|
|
2071
|
-
"chevron-right-blue": img$9,
|
|
2072
|
-
"chevron-left-blue": img$7,
|
|
2073
|
-
"chevron-right-grey": img$8,
|
|
2074
|
-
"chevron-left-grey": img$6,
|
|
2075
|
-
search: img$5,
|
|
2076
|
-
star: img$3,
|
|
2077
|
-
check: img$2,
|
|
2078
|
-
"search-cancel": img$4
|
|
2079
|
-
};
|
|
2080
|
-
const ButtonIcon = (props) => {
|
|
2081
|
-
return React__namespace.createElement("img", { src: iconSrc[props.name], className: props.className });
|
|
2082
|
-
};
|
|
2083
|
-
|
|
2084
|
-
const BUTTON_ROLES = {
|
|
2085
|
-
PRIMARY: "primary",
|
|
2086
|
-
SECONDARY: "secondary",
|
|
2087
|
-
SECONDARY_DARK: "secondaryDark",
|
|
2088
|
-
TERTIARY: "tertiary",
|
|
2089
|
-
QUATERNARY: "quaternary",
|
|
2090
|
-
NEGATIVE: "negative",
|
|
2091
|
-
TEXT: "text",
|
|
2092
|
-
LINK: "link",
|
|
2093
|
-
ICON: "icon"
|
|
2094
|
-
};
|
|
2095
|
-
|
|
2096
|
-
function Button(props) {
|
|
2097
|
-
const { text = "", role: propsRole = BUTTON_ROLES.PRIMARY, type = "button", title = "", link = "", isPending = false, isDisabled = false, onClick, className = "", iconName = "", hasIcon: hasIconProps = false, dynamicIcon } = props, otherAttributes = __rest(props, ["text", "role", "type", "title", "link", "isPending", "isDisabled", "onClick", "className", "iconName", "hasIcon", "dynamicIcon"]);
|
|
2098
|
-
const generatedId = React__namespace.default.useId();
|
|
2099
|
-
const buttonTooltipId = otherAttributes.id ? `button-tooltip-id-${otherAttributes.id}` : `button-tooltip-id-${generatedId}`;
|
|
2100
|
-
const hasAddIcon = className.includes("add-button");
|
|
2101
|
-
const hasEditIcon = className.includes("edit-button");
|
|
2102
|
-
const hasDeleteIcon = className.includes("delete-button");
|
|
2103
|
-
const hasPrevIcon = className.includes("prev-button");
|
|
2104
|
-
const hasNextIcon = className.includes("next-button");
|
|
2105
|
-
const hasChartIcon = className.includes("chart-button");
|
|
2106
|
-
const hasPrintIcon = className.includes("print-button");
|
|
2107
|
-
const hasIcon = hasIconProps || iconName || hasAddIcon || hasEditIcon || hasDeleteIcon || hasPrevIcon || hasNextIcon || hasChartIcon || hasPrintIcon || dynamicIcon;
|
|
2108
|
-
const isIconOnly = hasIcon && !text;
|
|
2109
|
-
const [role, setRole] = React.useState(propsRole);
|
|
2110
|
-
React.useEffect(() => {
|
|
2111
|
-
if ((hasAddIcon || hasEditIcon) && !text) {
|
|
2112
|
-
setRole(BUTTON_ROLES.SECONDARY);
|
|
2113
|
-
} else if (propsRole === BUTTON_ROLES.TEXT || propsRole === BUTTON_ROLES.LINK) {
|
|
2114
|
-
setRole(BUTTON_ROLES.TERTIARY);
|
|
2115
|
-
} else if (hasDeleteIcon) {
|
|
2116
|
-
setRole(BUTTON_ROLES.NEGATIVE);
|
|
2117
|
-
}
|
|
2118
|
-
}, []);
|
|
2119
|
-
const isButtonDisabled = role !== BUTTON_ROLES.LINK && isDisabled || isPending;
|
|
2120
|
-
const isNonPrimaryNonNegative = role === BUTTON_ROLES.SECONDARY || role === BUTTON_ROLES.TERTIARY || role === BUTTON_ROLES.QUATERNARY;
|
|
2121
|
-
function handleClick(event) {
|
|
2122
|
-
if (link) {
|
|
2123
|
-
router.navigate(link);
|
|
2124
|
-
return;
|
|
2125
|
-
}
|
|
2126
|
-
if (isButtonDisabled || !onClick) {
|
|
2127
|
-
event.preventDefault();
|
|
2128
|
-
return;
|
|
2129
|
-
}
|
|
2130
|
-
onClick(event);
|
|
2131
|
-
}
|
|
2132
|
-
const buttonRolesStyling = {
|
|
2133
|
-
primary: [
|
|
2134
|
-
"ui-bg-primary",
|
|
2135
|
-
"hover:ui-bg-primary-dark",
|
|
2136
|
-
"ui-text-white",
|
|
2137
|
-
"focus:ui-outline-primary",
|
|
2138
|
-
"ui-border",
|
|
2139
|
-
"ui-border-solid",
|
|
2140
|
-
"ui-border-primary-transparent"
|
|
2141
|
-
],
|
|
2142
|
-
secondary: ["ui-bg-slate-200"],
|
|
2143
|
-
secondaryDark: ["ui-bg-slate-700", "hover:ui-bg-slate-600"],
|
|
2144
|
-
tertiary: ["ui-bg-transparent", "ui-shadow-none", "hover:ui-bg-slate-100"],
|
|
2145
|
-
quaternary: [
|
|
2146
|
-
"ui-bg-white",
|
|
2147
|
-
"ui-shadow-none",
|
|
2148
|
-
"ui-border",
|
|
2149
|
-
"ui-border-solid",
|
|
2150
|
-
"ui-border-quaternary",
|
|
2151
|
-
"hover:ui-border-slate-200"
|
|
2152
|
-
],
|
|
2153
|
-
negative: [
|
|
2154
|
-
"ui-bg-negative",
|
|
2155
|
-
"ui-text-negative-dark",
|
|
2156
|
-
"hover:ui-text-negative-darker",
|
|
2157
|
-
"hover:ui-border-negative-border",
|
|
2158
|
-
"focus:ui-outline-negative",
|
|
2159
|
-
"ui-border",
|
|
2160
|
-
"ui-border-transparent"
|
|
2161
|
-
],
|
|
2162
|
-
link: [],
|
|
2163
|
-
text: [],
|
|
2164
|
-
icon: []
|
|
2165
|
-
};
|
|
2166
|
-
const containerClassName = classNames__default.default(
|
|
2167
|
-
// default button classes
|
|
2168
|
-
[
|
|
2169
|
-
"ui-h-11",
|
|
2170
|
-
"focus:ui-outline-none",
|
|
2171
|
-
"ui-shadow-sm",
|
|
2172
|
-
"ui-transition-outline ui-transition-colors ui-duration-300 ui-ease-in-out",
|
|
2173
|
-
"ui-cursor-pointer",
|
|
2174
|
-
"ui-rounded-full",
|
|
2175
|
-
"ui-leading-none"
|
|
2176
|
-
],
|
|
2177
|
-
className,
|
|
2178
|
-
{
|
|
2179
|
-
"ui-w-11": isIconOnly,
|
|
2180
|
-
"ui-opacity-50 ui-pointer-events-none": isButtonDisabled,
|
|
2181
|
-
"hover:ui-text-primary-dark ui-text-primary": isNonPrimaryNonNegative,
|
|
2182
|
-
"ui-border ui-border-transparent": isNonPrimaryNonNegative,
|
|
2183
|
-
"hover:ui-border-slate-200 focus:ui-outline-primary": isNonPrimaryNonNegative,
|
|
2184
|
-
"ui-text-secondary-dark ui-opacity-75": isButtonDisabled && isNonPrimaryNonNegative
|
|
2185
|
-
},
|
|
2186
|
-
buttonRolesStyling[role]
|
|
2187
|
-
);
|
|
2188
|
-
const spinnerClassNames = classNames__default.default({
|
|
2189
|
-
"ui-hidden": !isPending,
|
|
2190
|
-
"ui-text-white": role === BUTTON_ROLES.PRIMARY,
|
|
2191
|
-
"ui-text-dark-gray": isNonPrimaryNonNegative,
|
|
2192
|
-
"ui-text-negative-dark": role === BUTTON_ROLES.TERTIARY
|
|
2193
|
-
});
|
|
2194
|
-
const buttonTextClasses = classNames__default.default(["ui-text-sm", "ui-font-medium"], {
|
|
2195
|
-
"ui-invisible": isPending,
|
|
2196
|
-
"ui-hidden": !text,
|
|
2197
|
-
"ui-ml-3": hasIcon
|
|
2198
|
-
});
|
|
2199
|
-
const tooltipAttrs = title ? {
|
|
2200
|
-
"data-tip": true,
|
|
2201
|
-
"data-for": buttonTooltipId
|
|
2202
|
-
} : {};
|
|
2203
|
-
const buttonComponent = React__namespace.default.createElement(
|
|
2204
|
-
"button",
|
|
2205
|
-
Object.assign({}, otherAttributes, { "aria-disabled": isButtonDisabled, disabled: isButtonDisabled, className: containerClassName, onClick: handleClick, type, title, "data-role": role }),
|
|
2206
|
-
React__namespace.default.createElement(
|
|
2207
|
-
"span",
|
|
2208
|
-
Object.assign({}, tooltipAttrs, { className: classNames__default.default(
|
|
2209
|
-
"ui-relative ui-flex ui-h-full ui-w-full ui-flex-row ui-items-center ui-justify-center",
|
|
2210
|
-
// ensuring the buttons are 44px high including content
|
|
2211
|
-
{
|
|
2212
|
-
"ui-px-2 ui-py-2": isIconOnly,
|
|
2213
|
-
"ui-px-4 ui-py-3": !isIconOnly
|
|
2214
|
-
}
|
|
2215
|
-
) }),
|
|
2216
|
-
hasAddIcon && React__namespace.default.createElement(AddIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2217
|
-
hasEditIcon && React__namespace.default.createElement(EditIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2218
|
-
hasDeleteIcon && React__namespace.default.createElement(DeleteIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2219
|
-
hasPrevIcon && React__namespace.default.createElement(LeftArrowIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2220
|
-
hasNextIcon && React__namespace.default.createElement(RightArrowIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2221
|
-
hasChartIcon && React__namespace.default.createElement(ChartIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2222
|
-
hasPrintIcon && React__namespace.default.createElement(PrintIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2223
|
-
iconName && React__namespace.default.createElement(ButtonIcon, { name: iconName }),
|
|
2224
|
-
dynamicIcon && React__namespace.default.createElement(dynamicIcon, { className: "ui-w-5 ui-h-5" }),
|
|
2225
|
-
React__namespace.default.createElement(
|
|
2226
|
-
"span",
|
|
2227
|
-
{ className: "ui-absolute ui-left-1/2 ui-top-1/2 ui--translate-x-1/2 ui--translate-y-1/2 ui-transform ui-opacity-100" },
|
|
2228
|
-
React__namespace.default.createElement(Spinner, { className: spinnerClassNames })
|
|
2229
|
-
),
|
|
2230
|
-
React__namespace.default.createElement("span", { className: buttonTextClasses }, text)
|
|
2231
|
-
)
|
|
2232
|
-
);
|
|
2233
|
-
if (title) {
|
|
2234
|
-
return React__namespace.default.createElement(
|
|
2235
|
-
React__namespace.default.Fragment,
|
|
2236
|
-
null,
|
|
2237
|
-
React__namespace.default.createElement(ReactTooltip__default.default, { effect: "solid", id: buttonTooltipId }, title),
|
|
2238
|
-
buttonComponent
|
|
2239
|
-
);
|
|
2240
|
-
}
|
|
2241
|
-
return buttonComponent;
|
|
2242
|
-
}
|
|
2243
|
-
|
|
2244
|
-
const CenteredHero = ({ title, text, image, buttons = [], background = "slate-50", imageSize = "small", dataTestId = "centered-hero" }) => {
|
|
2049
|
+
const CenteredHero = ({ title, text, image, slots, background = "slate-50", imageSize = "small", dataTestId = "centered-hero" }) => {
|
|
2245
2050
|
return React__namespace.default.createElement(
|
|
2246
2051
|
"div",
|
|
2247
2052
|
{ className: classNames__default.default("ui-align-center ui-flex ui-w-full ui-flex-col ui-items-center ui-p-6", {
|
|
@@ -2254,7 +2059,7 @@ const CenteredHero = ({ title, text, image, buttons = [], background = "slate-50
|
|
|
2254
2059
|
}) }),
|
|
2255
2060
|
title && React__namespace.default.createElement(Title, { type: "base" }, title),
|
|
2256
2061
|
text && React__namespace.default.createElement(Text, { className: "ui-text-center" }, text),
|
|
2257
|
-
(
|
|
2062
|
+
(slots === null || slots === void 0 ? void 0 : slots.bottom) && React__namespace.default.createElement(Box, { mt: "m" }, slots === null || slots === void 0 ? void 0 : slots.bottom)
|
|
2258
2063
|
);
|
|
2259
2064
|
};
|
|
2260
2065
|
|
|
@@ -2688,6 +2493,206 @@ const Badge = (props) => {
|
|
|
2688
2493
|
);
|
|
2689
2494
|
};
|
|
2690
2495
|
|
|
2496
|
+
var img$b = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.05037 5.63664C6.65984 5.24612 6.02668 5.24612 5.63615 5.63664C5.24563 6.02717 5.24563 6.66033 5.63616 7.05086L10.5862 12.0009L5.63618 16.9509C5.24566 17.3415 5.24566 17.9746 5.63618 18.3652C6.02671 18.7557 6.65987 18.7557 7.0504 18.3652L12.0004 13.4151L16.9499 18.3646C17.3404 18.7551 17.9736 18.7551 18.3641 18.3646C18.7546 17.974 18.7546 17.3409 18.3641 16.9504L13.4146 12.0009L18.3641 7.05145C18.7546 6.66093 18.7546 6.02776 18.3641 5.63724C17.9736 5.24671 17.3404 5.24671 16.9499 5.63724L12.0004 10.5867L7.05037 5.63664Z' fill='%23EDF2F7'/%3e%3c/svg%3e";
|
|
2497
|
+
|
|
2498
|
+
var img$a = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3 6C3 5.44772 3.44772 5 4 5H20C20.5523 5 21 5.44772 21 6C21 6.55228 20.5523 7 20 7H4C3.44772 7 3 6.55228 3 6Z' fill='%23EDF2F7'/%3e%3cpath d='M3 12C3 11.4477 3.44772 11 4 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H4C3.44772 13 3 12.5523 3 12Z' fill='%23EDF2F7'/%3e%3cpath d='M4 17C3.44772 17 3 17.4477 3 18C3 18.5523 3.44772 19 4 19H20C20.5523 19 21 18.5523 21 18C21 17.4477 20.5523 17 20 17H4Z' fill='%23EDF2F7'/%3e%3c/svg%3e";
|
|
2499
|
+
|
|
2500
|
+
var img$9 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.31008 6.70978C8.92008 7.09978 8.92008 7.72978 9.31008 8.11978L13.1901 11.9998L9.31008 15.8798C8.92008 16.2698 8.92008 16.8998 9.31008 17.2898C9.70008 17.6798 10.3301 17.6798 10.7201 17.2898L15.3101 12.6998C15.7001 12.3098 15.7001 11.6798 15.3101 11.2898L10.7201 6.69978C10.3401 6.31978 9.70008 6.31978 9.31008 6.70978Z' fill='%230074DD'/%3e%3c/svg%3e";
|
|
2501
|
+
|
|
2502
|
+
var img$8 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.31008 6.70978C8.92008 7.09978 8.92008 7.72978 9.31008 8.11978L13.1901 11.9998L9.31008 15.8798C8.92008 16.2698 8.92008 16.8998 9.31008 17.2898C9.70008 17.6798 10.3301 17.6798 10.7201 17.2898L15.3101 12.6998C15.7001 12.3098 15.7001 11.6798 15.3101 11.2898L10.7201 6.69978C10.3401 6.31978 9.70008 6.31978 9.31008 6.70978Z' fill='%23EDF2F7'/%3e%3c/svg%3e";
|
|
2503
|
+
|
|
2504
|
+
var img$7 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.6899 17.2902C14.0799 16.9002 14.0799 16.2702 13.6899 15.8802L9.80992 12.0002L13.6899 8.12022C14.0799 7.73022 14.0799 7.10022 13.6899 6.71022C13.2999 6.32022 12.6699 6.32022 12.2799 6.71022L7.68992 11.3002C7.29992 11.6902 7.29992 12.3202 7.68992 12.7102L12.2799 17.3002C12.6599 17.6802 13.2999 17.6802 13.6899 17.2902Z' fill='%230074DD'/%3e%3c/svg%3e";
|
|
2505
|
+
|
|
2506
|
+
var img$6 = "data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.6899 17.2902C14.0799 16.9002 14.0799 16.2702 13.6899 15.8802L9.80992 12.0002L13.6899 8.12022C14.0799 7.73022 14.0799 7.10022 13.6899 6.71022C13.2999 6.32022 12.6699 6.32022 12.2799 6.71022L7.68992 11.3002C7.29992 11.6902 7.29992 12.3202 7.68992 12.7102L12.2799 17.3002C12.6599 17.6802 13.2999 17.6802 13.6899 17.2902Z' fill='%23EDF2F7'/%3e%3c/svg%3e";
|
|
2507
|
+
|
|
2508
|
+
var img$5 = "data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.5006 11.0006H11.7106L11.4306 10.7306C12.6306 9.33063 13.2506 7.42063 12.9106 5.39063C12.4406 2.61063 10.1206 0.390626 7.32063 0.0506256C3.09063 -0.469374 -0.469374 3.09063 0.0506256 7.32063C0.390626 10.1206 2.61063 12.4406 5.39063 12.9106C7.42063 13.2506 9.33063 12.6306 10.7306 11.4306L11.0006 11.7106V12.5006L15.2506 16.7506C15.6606 17.1606 16.3306 17.1606 16.7406 16.7506C17.1506 16.3406 17.1506 15.6706 16.7406 15.2606L12.5006 11.0006ZM6.50063 11.0006C4.01063 11.0006 2.00063 8.99063 2.00063 6.50063C2.00063 4.01063 4.01063 2.00063 6.50063 2.00063C8.99063 2.00063 11.0006 4.01063 11.0006 6.50063C11.0006 8.99063 8.99063 11.0006 6.50063 11.0006Z' fill='%230074DD'/%3e%3c/svg%3e";
|
|
2509
|
+
|
|
2510
|
+
var img$4 = "data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.05086 0.636643C1.66033 0.246119 1.02717 0.246119 0.636643 0.636643C0.246119 1.02717 0.246119 1.66033 0.636643 2.05086L5.5867 7.00092L0.636672 11.9509C0.246148 12.3415 0.246148 12.9746 0.636672 13.3652C1.0272 13.7557 1.66036 13.7557 2.05089 13.3652L7.00091 8.41513L11.9503 13.3646C12.3409 13.7551 12.974 13.7551 13.3646 13.3646C13.7551 12.974 13.7551 12.3409 13.3646 11.9504L8.41513 7.00092L13.3646 2.05145C13.7551 1.66093 13.7551 1.02776 13.3646 0.637237C12.9741 0.246712 12.3409 0.246713 11.9504 0.637237L7.00092 5.5867L2.05086 0.636643Z' fill='%230074DD'/%3e%3c/svg%3e";
|
|
2511
|
+
|
|
2512
|
+
var img$3 = "data:image/svg+xml,%3csvg width='19' height='18' viewBox='0 0 19 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8.58663 1.04906C8.93899 0.258571 10.061 0.258571 10.4134 1.04906L12.1659 4.9807C12.3112 5.30673 12.6193 5.53057 12.9743 5.56804L17.2551 6.01985C18.1158 6.11069 18.4625 7.17779 17.8196 7.75718L14.6219 10.6389C14.3568 10.8778 14.2391 11.24 14.3131 11.5892L15.2063 15.8001C15.3858 16.6467 14.4781 17.3062 13.7284 16.8738L9.99962 14.7232C9.69041 14.5448 9.30959 14.5448 9.00038 14.7232L5.27159 16.8738C4.52189 17.3062 3.61416 16.6467 3.79373 15.8001L4.68686 11.5892C4.76093 11.24 4.64325 10.8778 4.37808 10.6389L1.18043 7.75718C0.537518 7.17779 0.88424 6.11069 1.74492 6.01985L6.0257 5.56804C6.38068 5.53057 6.68877 5.30673 6.8341 4.9807L8.58663 1.04906Z' fill='%23009FE3'/%3e%3c/svg%3e";
|
|
2513
|
+
|
|
2514
|
+
var img$2 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e %3cg transform='translate(1.5%2c 0.5)'%3e %3cpath fill='none' fill-rule='evenodd' stroke='%230074DD' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12.643 3.357L6.03 9.97l-2.674 2.674L0 9.286'/%3e %3c/g%3e%3c/svg%3e";
|
|
2515
|
+
|
|
2516
|
+
const iconSrc = {
|
|
2517
|
+
// These need to be converted to svg files instead of components and added in
|
|
2518
|
+
// "add": AddIcon,
|
|
2519
|
+
// "delete": DeleteIcon,
|
|
2520
|
+
// "edit": EditIcon,
|
|
2521
|
+
close: img$b,
|
|
2522
|
+
hamburger: img$a,
|
|
2523
|
+
"chevron-right-blue": img$9,
|
|
2524
|
+
"chevron-left-blue": img$7,
|
|
2525
|
+
"chevron-right-grey": img$8,
|
|
2526
|
+
"chevron-left-grey": img$6,
|
|
2527
|
+
search: img$5,
|
|
2528
|
+
star: img$3,
|
|
2529
|
+
check: img$2,
|
|
2530
|
+
"search-cancel": img$4
|
|
2531
|
+
};
|
|
2532
|
+
const ButtonIcon = (props) => {
|
|
2533
|
+
return React__namespace.createElement("img", { src: iconSrc[props.name], className: props.className });
|
|
2534
|
+
};
|
|
2535
|
+
|
|
2536
|
+
const BUTTON_ROLES = {
|
|
2537
|
+
PRIMARY: "primary",
|
|
2538
|
+
SECONDARY: "secondary",
|
|
2539
|
+
SECONDARY_DARK: "secondaryDark",
|
|
2540
|
+
TERTIARY: "tertiary",
|
|
2541
|
+
QUATERNARY: "quaternary",
|
|
2542
|
+
NEGATIVE: "negative",
|
|
2543
|
+
TEXT: "text",
|
|
2544
|
+
LINK: "link",
|
|
2545
|
+
ICON: "icon"
|
|
2546
|
+
};
|
|
2547
|
+
|
|
2548
|
+
function Button(props) {
|
|
2549
|
+
const { text = "", role: propsRole = BUTTON_ROLES.PRIMARY, type = "button", title = "", link = "", isPending = false, isDisabled = false, onClick, className = "", iconName = "", hasIcon: hasIconProps = false, dynamicIcon } = props, otherAttributes = __rest(props, ["text", "role", "type", "title", "link", "isPending", "isDisabled", "onClick", "className", "iconName", "hasIcon", "dynamicIcon"]);
|
|
2550
|
+
const generatedId = React__namespace.default.useId();
|
|
2551
|
+
const buttonTooltipId = otherAttributes.id ? `button-tooltip-id-${otherAttributes.id}` : `button-tooltip-id-${generatedId}`;
|
|
2552
|
+
const hasAddIcon = className.includes("add-button");
|
|
2553
|
+
const hasEditIcon = className.includes("edit-button");
|
|
2554
|
+
const hasDeleteIcon = className.includes("delete-button");
|
|
2555
|
+
const hasPrevIcon = className.includes("prev-button");
|
|
2556
|
+
const hasNextIcon = className.includes("next-button");
|
|
2557
|
+
const hasChartIcon = className.includes("chart-button");
|
|
2558
|
+
const hasPrintIcon = className.includes("print-button");
|
|
2559
|
+
const hasIcon = hasIconProps || iconName || hasAddIcon || hasEditIcon || hasDeleteIcon || hasPrevIcon || hasNextIcon || hasChartIcon || hasPrintIcon || dynamicIcon;
|
|
2560
|
+
const isIconOnly = hasIcon && !text;
|
|
2561
|
+
const [role, setRole] = React.useState(propsRole);
|
|
2562
|
+
React.useEffect(() => {
|
|
2563
|
+
if ((hasAddIcon || hasEditIcon) && !text) {
|
|
2564
|
+
setRole(BUTTON_ROLES.SECONDARY);
|
|
2565
|
+
} else if (propsRole === BUTTON_ROLES.TEXT || propsRole === BUTTON_ROLES.LINK) {
|
|
2566
|
+
setRole(BUTTON_ROLES.TERTIARY);
|
|
2567
|
+
} else if (hasDeleteIcon) {
|
|
2568
|
+
setRole(BUTTON_ROLES.NEGATIVE);
|
|
2569
|
+
}
|
|
2570
|
+
}, []);
|
|
2571
|
+
const isButtonDisabled = role !== BUTTON_ROLES.LINK && isDisabled || isPending;
|
|
2572
|
+
const isNonPrimaryNonNegative = role === BUTTON_ROLES.SECONDARY || role === BUTTON_ROLES.TERTIARY || role === BUTTON_ROLES.QUATERNARY;
|
|
2573
|
+
function handleClick(event) {
|
|
2574
|
+
if (link) {
|
|
2575
|
+
router.navigate(link);
|
|
2576
|
+
return;
|
|
2577
|
+
}
|
|
2578
|
+
if (isButtonDisabled || !onClick) {
|
|
2579
|
+
event.preventDefault();
|
|
2580
|
+
return;
|
|
2581
|
+
}
|
|
2582
|
+
onClick(event);
|
|
2583
|
+
}
|
|
2584
|
+
const buttonRolesStyling = {
|
|
2585
|
+
primary: [
|
|
2586
|
+
"ui-bg-primary",
|
|
2587
|
+
"hover:ui-bg-primary-dark",
|
|
2588
|
+
"ui-text-white",
|
|
2589
|
+
"focus:ui-outline-primary",
|
|
2590
|
+
"ui-border",
|
|
2591
|
+
"ui-border-solid",
|
|
2592
|
+
"ui-border-primary-transparent"
|
|
2593
|
+
],
|
|
2594
|
+
secondary: ["ui-bg-slate-200"],
|
|
2595
|
+
secondaryDark: ["ui-bg-slate-700", "hover:ui-bg-slate-600"],
|
|
2596
|
+
tertiary: ["ui-bg-transparent", "ui-shadow-none", "hover:ui-bg-slate-100"],
|
|
2597
|
+
quaternary: [
|
|
2598
|
+
"ui-bg-white",
|
|
2599
|
+
"ui-shadow-none",
|
|
2600
|
+
"ui-border",
|
|
2601
|
+
"ui-border-solid",
|
|
2602
|
+
"ui-border-quaternary",
|
|
2603
|
+
"hover:ui-border-slate-200"
|
|
2604
|
+
],
|
|
2605
|
+
negative: [
|
|
2606
|
+
"ui-bg-negative",
|
|
2607
|
+
"ui-text-negative-dark",
|
|
2608
|
+
"hover:ui-text-negative-darker",
|
|
2609
|
+
"hover:ui-border-negative-border",
|
|
2610
|
+
"focus:ui-outline-negative",
|
|
2611
|
+
"ui-border",
|
|
2612
|
+
"ui-border-transparent"
|
|
2613
|
+
],
|
|
2614
|
+
link: [],
|
|
2615
|
+
text: [],
|
|
2616
|
+
icon: []
|
|
2617
|
+
};
|
|
2618
|
+
const containerClassName = classNames__default.default(
|
|
2619
|
+
// default button classes
|
|
2620
|
+
[
|
|
2621
|
+
"ui-h-11",
|
|
2622
|
+
"focus:ui-outline-none",
|
|
2623
|
+
"ui-shadow-sm",
|
|
2624
|
+
"ui-transition-outline ui-transition-colors ui-duration-300 ui-ease-in-out",
|
|
2625
|
+
"ui-cursor-pointer",
|
|
2626
|
+
"ui-rounded-full",
|
|
2627
|
+
"ui-leading-none"
|
|
2628
|
+
],
|
|
2629
|
+
className,
|
|
2630
|
+
{
|
|
2631
|
+
"ui-w-11": isIconOnly,
|
|
2632
|
+
"ui-opacity-50 ui-pointer-events-none": isButtonDisabled,
|
|
2633
|
+
"hover:ui-text-primary-dark ui-text-primary": isNonPrimaryNonNegative,
|
|
2634
|
+
"ui-border ui-border-transparent": isNonPrimaryNonNegative,
|
|
2635
|
+
"hover:ui-border-slate-200 focus:ui-outline-primary": isNonPrimaryNonNegative,
|
|
2636
|
+
"ui-text-secondary-dark ui-opacity-75": isButtonDisabled && isNonPrimaryNonNegative
|
|
2637
|
+
},
|
|
2638
|
+
buttonRolesStyling[role]
|
|
2639
|
+
);
|
|
2640
|
+
const spinnerClassNames = classNames__default.default({
|
|
2641
|
+
"ui-hidden": !isPending,
|
|
2642
|
+
"ui-text-white": role === BUTTON_ROLES.PRIMARY,
|
|
2643
|
+
"ui-text-dark-gray": isNonPrimaryNonNegative,
|
|
2644
|
+
"ui-text-negative-dark": role === BUTTON_ROLES.TERTIARY
|
|
2645
|
+
});
|
|
2646
|
+
const buttonTextClasses = classNames__default.default(["ui-text-sm", "ui-font-medium"], {
|
|
2647
|
+
"ui-invisible": isPending,
|
|
2648
|
+
"ui-hidden": !text,
|
|
2649
|
+
"ui-ml-3": hasIcon
|
|
2650
|
+
});
|
|
2651
|
+
const tooltipAttrs = title ? {
|
|
2652
|
+
"data-tip": true,
|
|
2653
|
+
"data-for": buttonTooltipId
|
|
2654
|
+
} : {};
|
|
2655
|
+
const buttonComponent = React__namespace.default.createElement(
|
|
2656
|
+
"button",
|
|
2657
|
+
Object.assign({}, otherAttributes, { "aria-disabled": isButtonDisabled, disabled: isButtonDisabled, className: containerClassName, onClick: handleClick, type, title, "data-role": role }),
|
|
2658
|
+
React__namespace.default.createElement(
|
|
2659
|
+
"span",
|
|
2660
|
+
Object.assign({}, tooltipAttrs, { className: classNames__default.default(
|
|
2661
|
+
"ui-relative ui-flex ui-h-full ui-w-full ui-flex-row ui-items-center ui-justify-center",
|
|
2662
|
+
// ensuring the buttons are 44px high including content
|
|
2663
|
+
{
|
|
2664
|
+
"ui-px-2 ui-py-2": isIconOnly,
|
|
2665
|
+
"ui-px-4 ui-py-3": !isIconOnly
|
|
2666
|
+
}
|
|
2667
|
+
) }),
|
|
2668
|
+
hasAddIcon && React__namespace.default.createElement(AddIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2669
|
+
hasEditIcon && React__namespace.default.createElement(EditIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2670
|
+
hasDeleteIcon && React__namespace.default.createElement(DeleteIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2671
|
+
hasPrevIcon && React__namespace.default.createElement(LeftArrowIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2672
|
+
hasNextIcon && React__namespace.default.createElement(RightArrowIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2673
|
+
hasChartIcon && React__namespace.default.createElement(ChartIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2674
|
+
hasPrintIcon && React__namespace.default.createElement(PrintIcon, { className: "ui-h-5 ui-w-5" }),
|
|
2675
|
+
iconName && React__namespace.default.createElement(ButtonIcon, { name: iconName }),
|
|
2676
|
+
dynamicIcon && React__namespace.default.createElement(dynamicIcon, { className: "ui-w-5 ui-h-5" }),
|
|
2677
|
+
React__namespace.default.createElement(
|
|
2678
|
+
"span",
|
|
2679
|
+
{ className: "ui-absolute ui-left-1/2 ui-top-1/2 ui--translate-x-1/2 ui--translate-y-1/2 ui-transform ui-opacity-100" },
|
|
2680
|
+
React__namespace.default.createElement(Spinner, { className: spinnerClassNames })
|
|
2681
|
+
),
|
|
2682
|
+
React__namespace.default.createElement("span", { className: buttonTextClasses }, text)
|
|
2683
|
+
)
|
|
2684
|
+
);
|
|
2685
|
+
if (title) {
|
|
2686
|
+
return React__namespace.default.createElement(
|
|
2687
|
+
React__namespace.default.Fragment,
|
|
2688
|
+
null,
|
|
2689
|
+
React__namespace.default.createElement(ReactTooltip__default.default, { effect: "solid", id: buttonTooltipId }, title),
|
|
2690
|
+
buttonComponent
|
|
2691
|
+
);
|
|
2692
|
+
}
|
|
2693
|
+
return buttonComponent;
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2691
2696
|
var css_248z$c = ".entity-preview-dots.glider-dots {\n padding-top: 1rem;\n}\n.entity-preview-dots.glider-dots .glider-dot {\n margin: 0.25rem;\n height: 0.5rem;\n width: 0.5rem;\n --tw-bg-opacity: 1;\n background-color: rgb(239 246 255 / var(--tw-bg-opacity));\n}\n.entity-preview-dots.glider-dots .glider-dot:focus {\n outline-color: #1e40af;\n}\n.entity-preview-dots.glider-dots .glider-dot.active, .entity-preview-dots.glider-dots .glider-dot:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(30 64 175 / var(--tw-bg-opacity));\n}\n\n.glider-slide {\n visibility: hidden;\n}\n\n.glider-slide.visible,\n.glider-slide.active {\n visibility: visible;\n}";
|
|
2692
2697
|
styleInject(css_248z$c);
|
|
2693
2698
|
|