@luscii-healthtech/web-ui 44.8.0 → 45.1.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/index.development.js +19 -6
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/RangeCoverage/RangeCoverage.d.ts +5 -1
- package/dist/src/tokens/generated/tokens.d.ts +1522 -0
- package/dist/stories/RangeCoverage.stories.d.ts +3 -0
- package/dist/stories/{SemanticColors/SemanticColors.d.ts → SemanticColors.d.ts} +3 -2
- package/dist/web-ui-tailwind.css +144 -43
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +8 -8
- /package/dist/stories/{PrimitiveColors/PrimitiveColors.d.ts → PrimitiveColors.d.ts} +0 -0
|
@@ -2459,7 +2459,7 @@ const StyledCheckbox = React__namespace.default.forwardRef((props, ref) => {
|
|
|
2459
2459
|
// Disabled styles
|
|
2460
2460
|
"ui:disabled:border-border-neutral-primary-disabled",
|
|
2461
2461
|
// Disabled and checked styles
|
|
2462
|
-
"ui:disabled:checked:bg-
|
|
2462
|
+
"ui:disabled:checked:bg-icon-brand-primary-disabled",
|
|
2463
2463
|
// Checked and hovered styles
|
|
2464
2464
|
"ui:checked:hover:bg-icon-brand-primary-hover",
|
|
2465
2465
|
"ui:transition-colors ui:duration-150 ui:ease-in-out",
|
|
@@ -6154,7 +6154,7 @@ const getSegmentStyle = (color) => {
|
|
|
6154
6154
|
const legendSwatchStyle = {
|
|
6155
6155
|
width: "18px",
|
|
6156
6156
|
height: "18px",
|
|
6157
|
-
borderRadius: "
|
|
6157
|
+
borderRadius: "4px",
|
|
6158
6158
|
flexShrink: 0
|
|
6159
6159
|
};
|
|
6160
6160
|
const COLOR_GREY_LIGHT = "var(--ui-color-background-info-secondary-hovered)";
|
|
@@ -6164,6 +6164,15 @@ const COLOR_AMBER = "var(--ui-color-icon-warning-secondary-default)";
|
|
|
6164
6164
|
const COLOR_BLUE = COLOR_GREY_LIGHT;
|
|
6165
6165
|
const BORDER_COLOR = "var(--ui-color-border-neutral-secondary-default)";
|
|
6166
6166
|
const BORDER_RADIUS = "var(--ui-radius-sm, 4px)";
|
|
6167
|
+
const COLOR_GAP = [
|
|
6168
|
+
"var(--ui-color-background-info-secondary-hovered)",
|
|
6169
|
+
"var(--ui-color-background-info-primary-hovered)"
|
|
6170
|
+
];
|
|
6171
|
+
const COLOR_OVERLAP = [
|
|
6172
|
+
"var(--ui-color-background-info-secondary-hovered)",
|
|
6173
|
+
"var(--ui-color-border-neutral-primary-default)"
|
|
6174
|
+
];
|
|
6175
|
+
const COLOR_FILL = "var(--ui-color-background-info-secondary-hovered)";
|
|
6167
6176
|
const barContainerStyle = {
|
|
6168
6177
|
width: "100%",
|
|
6169
6178
|
border: `1px solid ${BORDER_COLOR}`,
|
|
@@ -6184,12 +6193,13 @@ const ticksContainerStyle = {
|
|
|
6184
6193
|
width: "100%",
|
|
6185
6194
|
height: "20px"
|
|
6186
6195
|
};
|
|
6187
|
-
const RangeCoverageComponent = (
|
|
6196
|
+
const RangeCoverageComponent = (_a) => {
|
|
6197
|
+
var { sections, start, end, ticks = [], tickFormatter, title, legendSwatches, translations, className } = _a, rest = __rest(_a, ["sections", "start", "end", "ticks", "tickFormatter", "title", "legendSwatches", "translations", "className"]);
|
|
6188
6198
|
if (hasSectionOverlaps(sections)) {
|
|
6189
6199
|
return jsxRuntime.jsx(Text, { variant: "strong", children: translations.sectionOverlapsMessage });
|
|
6190
6200
|
}
|
|
6191
6201
|
const segments = calculateSegments(sections, start, end);
|
|
6192
|
-
return jsxRuntime.jsx(Box, { className, children: jsxRuntime.jsxs(Stack, { gap: "xs", width: "full", align: "stretch", children: [jsxRuntime.jsxs(Stack, { justify: "between", axis: "x", align: "center", children: [jsxRuntime.jsx(Title, { variant: "xs", level: "3", children: title }), legendSwatches && (legendSwatches === null || legendSwatches === void 0 ? void 0 : legendSwatches.length) > 0 && jsxRuntime.jsx(Stack, { axis: "x", gap: "m", children: jsxRuntime.jsx(Stack, { axis: "x", gap: "xxs", align: "center", children: legendSwatches === null || legendSwatches === void 0 ? void 0 : legendSwatches.map((swatch) => {
|
|
6202
|
+
return jsxRuntime.jsx(Box, Object.assign({ className }, rest, { children: jsxRuntime.jsxs(Stack, { gap: "xs", width: "full", align: "stretch", children: [jsxRuntime.jsxs(Stack, { justify: "between", axis: "x", align: "center", children: [jsxRuntime.jsx(Title, { variant: "xs", level: "3", children: title }), legendSwatches && (legendSwatches === null || legendSwatches === void 0 ? void 0 : legendSwatches.length) > 0 && jsxRuntime.jsx(Stack, { axis: "x", gap: "m", children: jsxRuntime.jsx(Stack, { axis: "x", gap: "xxs", align: "center", children: legendSwatches === null || legendSwatches === void 0 ? void 0 : legendSwatches.map((swatch) => {
|
|
6193
6203
|
const background = isColorTuple(swatch.color) ? createStripedPattern({
|
|
6194
6204
|
colorA: swatch.color[0],
|
|
6195
6205
|
colorB: swatch.color[1],
|
|
@@ -6210,7 +6220,7 @@ const RangeCoverageComponent = ({ sections, start, end, ticks = [], tickFormatte
|
|
|
6210
6220
|
left: `${position}%`,
|
|
6211
6221
|
transform: isFirst ? "translateX(0%)" : isLast ? "translateX(-100%)" : "translateX(-50%)"
|
|
6212
6222
|
}, children: content }, tick);
|
|
6213
|
-
}) })] })] }) });
|
|
6223
|
+
}) })] })] }) }));
|
|
6214
6224
|
};
|
|
6215
6225
|
const RangeCoverage = Object.assign(RangeCoverageComponent, {
|
|
6216
6226
|
Colors: {
|
|
@@ -6218,7 +6228,10 @@ const RangeCoverage = Object.assign(RangeCoverageComponent, {
|
|
|
6218
6228
|
AMBER: COLOR_AMBER,
|
|
6219
6229
|
GREY_DARK: COLOR_GREY_DARK,
|
|
6220
6230
|
GREY_LIGHT: COLOR_GREY_LIGHT,
|
|
6221
|
-
BLUE: COLOR_BLUE
|
|
6231
|
+
BLUE: COLOR_BLUE,
|
|
6232
|
+
FILL: COLOR_FILL,
|
|
6233
|
+
GAP: COLOR_GAP,
|
|
6234
|
+
OVERLAP: COLOR_OVERLAP
|
|
6222
6235
|
},
|
|
6223
6236
|
generateIntermediateTicks
|
|
6224
6237
|
});
|