@luscii-healthtech/web-ui 59.1.0 → 59.2.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/esm/components/RangeTriggerIcon/RangeTriggerIcon.js +45 -0
- package/dist/esm/components/RangeTriggerIcon/RangeTriggerIcon.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.development.js +41 -0
- 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/RangeTriggerIcon/RangeTriggerIcon.d.ts +39 -0
- package/dist/src/components/RangeTriggerIcon/index.d.ts +1 -0
- package/dist/src/generated/components/RangeTriggerIcon/RangeTriggerIcon.d.ts +39 -0
- package/dist/src/generated/components/RangeTriggerIcon/index.d.ts +1 -0
- package/dist/src/generated/index.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/stories/RangeTriggerIcon.stories.d.ts +56 -0
- package/dist/web-ui-tailwind.css +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { __rest } from '../../vendor/tslib/tslib.es6.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
const RANGE_COLORS = {
|
|
5
|
+
"alerts-high-salmon": "var(--ui-color-icon-alerts-high-salmon)",
|
|
6
|
+
"alerts-high-crimson": "var(--ui-color-icon-alerts-high-crimson)",
|
|
7
|
+
"alerts-high-red": "var(--ui-color-icon-alerts-high-red)",
|
|
8
|
+
"alerts-medium-sun": "var(--ui-color-icon-alerts-medium-sun)",
|
|
9
|
+
"alerts-medium-oak": "var(--ui-color-icon-alerts-medium-oak)",
|
|
10
|
+
"alerts-medium-amber": "var(--ui-color-icon-alerts-medium-amber)",
|
|
11
|
+
"alerts-low-mint": "var(--ui-color-icon-alerts-low-mint)",
|
|
12
|
+
"alerts-low-leaf": "var(--ui-color-icon-alerts-low-leaf)",
|
|
13
|
+
"alerts-low-green": "var(--ui-color-icon-alerts-low-green)",
|
|
14
|
+
"alerts-neutral-fog": "var(--ui-color-icon-alerts-neutral-fog)",
|
|
15
|
+
"alerts-neutral-neutral": "var(--ui-color-icon-alerts-neutral-neutral)",
|
|
16
|
+
"alerts-neutral-graphite": "var(--ui-color-icon-alerts-neutral-graphite)"
|
|
17
|
+
};
|
|
18
|
+
const DEFAULT_COLOR = "var(--ui-color-icon-brand-primary-default)";
|
|
19
|
+
const TRACK_COLOR = "var(--ui-color-icon-neutral-secondary-disabled)";
|
|
20
|
+
const DISABLED_COLOR = "var(--ui-color-icon-neutral-primary-default)";
|
|
21
|
+
const TRACK_PATH = "M3 9H37A3 3 0 0 1 37 15H3A3 3 0 0 1 3 9Z";
|
|
22
|
+
const RANGE_PATHS = {
|
|
23
|
+
// Square on the left, rounded on the right where it meets the track's end.
|
|
24
|
+
upper: "M20 9H37A3 3 0 0 1 37 15H20Z",
|
|
25
|
+
// Rounded on the left where it meets the track's end, square on the right.
|
|
26
|
+
lower: "M20 9H3A3 3 0 0 0 3 15H20Z",
|
|
27
|
+
// From 30% to 70% of the track, square on both ends.
|
|
28
|
+
middle: "M12 9H28V15H12Z",
|
|
29
|
+
// The whole track, when neither bound restricts the range.
|
|
30
|
+
full: TRACK_PATH
|
|
31
|
+
};
|
|
32
|
+
const RangeTriggerIcon = (_a) => {
|
|
33
|
+
var { shape, color, disabled = false } = _a, svgProps = __rest(_a, ["shape", "color", "disabled"]);
|
|
34
|
+
let rangeColor = DEFAULT_COLOR;
|
|
35
|
+
if (disabled) {
|
|
36
|
+
rangeColor = DISABLED_COLOR;
|
|
37
|
+
} else if (color) {
|
|
38
|
+
rangeColor = RANGE_COLORS[color];
|
|
39
|
+
}
|
|
40
|
+
const hasAccessibleName = Boolean(svgProps["aria-label"] || svgProps["aria-labelledby"]);
|
|
41
|
+
return jsxs("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 40, height: 24, viewBox: "0 0 40 24", fill: "none" }, svgProps, { role: hasAccessibleName ? "img" : void 0, "aria-hidden": hasAccessibleName ? void 0 : true, children: [jsx("path", { d: TRACK_PATH, fill: TRACK_COLOR }), shape === "exact" ? jsx("circle", { cx: 20, cy: 12, r: 4, fill: rangeColor }) : jsx("path", { d: RANGE_PATHS[shape], fill: rangeColor })] }));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { RangeTriggerIcon };
|
|
45
|
+
//# sourceMappingURL=RangeTriggerIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RangeTriggerIcon.js","sources":["../../../../../../src/components/RangeTriggerIcon/RangeTriggerIcon.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;AAqCA,MAAM,YAAA,GAAsD;AAAA,EAC1D,oBAAA,EAAsB,yCAAA;AAAA,EACtB,qBAAA,EAAuB,0CAAA;AAAA,EACvB,iBAAA,EAAmB,sCAAA;AAAA,EACnB,mBAAA,EAAqB,wCAAA;AAAA,EACrB,mBAAA,EAAqB,wCAAA;AAAA,EACrB,qBAAA,EAAuB,0CAAA;AAAA,EACvB,iBAAA,EAAmB,sCAAA;AAAA,EACnB,iBAAA,EAAmB,sCAAA;AAAA,EACnB,kBAAA,EAAoB,uCAAA;AAAA,EACpB,oBAAA,EAAsB,yCAAA;AAAA,EACtB,wBAAA,EAA0B,6CAAA;AAAA,EAC1B,yBAAA,EAA2B;;AAI7B,MAAM,aAAA,GAAgB,4CAAA;AAItB,MAAM,WAAA,GAAc,iDAAA;AAEpB,MAAM,cAAA,GAAiB,8CAAA;AAEvB,MAAM,UAAA,GAAa,0CAAA;AAEnB,MAAM,WAAA,GAAuE;AAAA;AAAA,EAE3E,KAAA,EAAO,8BAAA;AAAA;AAAA,EAEP,KAAA,EAAO,4BAAA;AAAA;AAAA,EAEP,MAAA,EAAQ,iBAAA;AAAA;AAAA,EAER,IAAA,EAAM;;AAoCD,MAAM,gBAAA,GAA8C,CAAC,EAAA,KAKvD;AALuD,EAAA,IAAA,EAC1D,KAAA,EACA,KAAA,EACA,QAAA,GAAW,OAAK,GAAA,EAAA,EACb,QAAA,GAAQ,MAAA,CAAA,EAAA,EAJ+C,CAAA,OAAA,EAAA,OAAA,EAAA,UAAA,CAK3D,CAAA;AACC,EAAA,IAAI,UAAA,GAAa,aAAA;AACjB,EAAA,IAAI,QAAA,EAAU;AACZ,IAAA,UAAA,GAAa,cAAA;AAAA,EACf,WAAW,KAAA,EAAO;AAChB,IAAA,UAAA,GAAa,aAAa,KAAK,CAAA;AAAA,EACjC;AACA,EAAA,MAAM,oBAAoB,OAAA,CACxB,QAAA,CAAS,YAAY,CAAA,IAAK,QAAA,CAAS,iBAAiB,CAAC,CAAA;AAGvD,EAAA,OACEA,IAAA,wBACE,KAAA,EAAM,4BAAA,EACN,KAAA,EAAO,EAAA,EACP,MAAA,EAAQ,EAAA,EACR,OAAA,EAAQ,aACR,IAAA,EAAK,MAAA,EAAM,EACP,QAAA,EAAQ,EACZ,IAAA,EAAM,iBAAA,GAAoB,KAAA,GAAQ,MAAA,EAAS,aAAA,EAC9B,iBAAA,GAAoB,MAAA,GAAY,IAAA,EAAI,QAAA,EAAA,CAEjDC,GAAA,CAAA,QAAA,EAAM,CAAA,EAAG,UAAA,EAAY,IAAA,EAAM,WAAA,EAAW,CAAA,EACrC,KAAA,KAAU,OAAA,GACTA,GAAA,aAAQ,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,GAAG,CAAA,EAAG,IAAA,EAAM,UAAA,MAEpCA,GAAA,CAAA,MAAA,EAAA,EAAM,GAAG,WAAA,CAAY,KAAK,CAAA,EAAG,IAAA,EAAM,UAAA,EAAU,CAC9C,CAAA,EAAA,CAAA,CAAA;AAGP;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -290,6 +290,7 @@ export { HoverIndicatorControl } from './components/HoverIndicatorControl/HoverI
|
|
|
290
290
|
export { ActionController } from './components/ActionController/ActionController.js';
|
|
291
291
|
export { Collapse } from './components/Collapse/Collapse.js';
|
|
292
292
|
export { RangeCoverage } from './components/RangeCoverage/RangeCoverage.js';
|
|
293
|
+
export { RangeTriggerIcon } from './components/RangeTriggerIcon/RangeTriggerIcon.js';
|
|
293
294
|
export { Skeleton } from './components/Skeleton/Skeleton.js';
|
|
294
295
|
export { DetailsDisclosure } from './components/DetailsDisclosure/DetailsDisclosure.js';
|
|
295
296
|
export { ModalDialog } from './components/ModalDialog/ModalDialog.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6937,6 +6937,46 @@ const RangeCoverage = Object.assign(RangeCoverageComponent, {
|
|
|
6937
6937
|
useAdaptiveTicks
|
|
6938
6938
|
});
|
|
6939
6939
|
|
|
6940
|
+
const RANGE_COLORS = {
|
|
6941
|
+
"alerts-high-salmon": "var(--ui-color-icon-alerts-high-salmon)",
|
|
6942
|
+
"alerts-high-crimson": "var(--ui-color-icon-alerts-high-crimson)",
|
|
6943
|
+
"alerts-high-red": "var(--ui-color-icon-alerts-high-red)",
|
|
6944
|
+
"alerts-medium-sun": "var(--ui-color-icon-alerts-medium-sun)",
|
|
6945
|
+
"alerts-medium-oak": "var(--ui-color-icon-alerts-medium-oak)",
|
|
6946
|
+
"alerts-medium-amber": "var(--ui-color-icon-alerts-medium-amber)",
|
|
6947
|
+
"alerts-low-mint": "var(--ui-color-icon-alerts-low-mint)",
|
|
6948
|
+
"alerts-low-leaf": "var(--ui-color-icon-alerts-low-leaf)",
|
|
6949
|
+
"alerts-low-green": "var(--ui-color-icon-alerts-low-green)",
|
|
6950
|
+
"alerts-neutral-fog": "var(--ui-color-icon-alerts-neutral-fog)",
|
|
6951
|
+
"alerts-neutral-neutral": "var(--ui-color-icon-alerts-neutral-neutral)",
|
|
6952
|
+
"alerts-neutral-graphite": "var(--ui-color-icon-alerts-neutral-graphite)"
|
|
6953
|
+
};
|
|
6954
|
+
const DEFAULT_COLOR = "var(--ui-color-icon-brand-primary-default)";
|
|
6955
|
+
const TRACK_COLOR = "var(--ui-color-icon-neutral-secondary-disabled)";
|
|
6956
|
+
const DISABLED_COLOR = "var(--ui-color-icon-neutral-primary-default)";
|
|
6957
|
+
const TRACK_PATH = "M3 9H37A3 3 0 0 1 37 15H3A3 3 0 0 1 3 9Z";
|
|
6958
|
+
const RANGE_PATHS = {
|
|
6959
|
+
// Square on the left, rounded on the right where it meets the track's end.
|
|
6960
|
+
upper: "M20 9H37A3 3 0 0 1 37 15H20Z",
|
|
6961
|
+
// Rounded on the left where it meets the track's end, square on the right.
|
|
6962
|
+
lower: "M20 9H3A3 3 0 0 0 3 15H20Z",
|
|
6963
|
+
// From 30% to 70% of the track, square on both ends.
|
|
6964
|
+
middle: "M12 9H28V15H12Z",
|
|
6965
|
+
// The whole track, when neither bound restricts the range.
|
|
6966
|
+
full: TRACK_PATH
|
|
6967
|
+
};
|
|
6968
|
+
const RangeTriggerIcon = (_a) => {
|
|
6969
|
+
var { shape, color, disabled = false } = _a, svgProps = __rest(_a, ["shape", "color", "disabled"]);
|
|
6970
|
+
let rangeColor = DEFAULT_COLOR;
|
|
6971
|
+
if (disabled) {
|
|
6972
|
+
rangeColor = DISABLED_COLOR;
|
|
6973
|
+
} else if (color) {
|
|
6974
|
+
rangeColor = RANGE_COLORS[color];
|
|
6975
|
+
}
|
|
6976
|
+
const hasAccessibleName = Boolean(svgProps["aria-label"] || svgProps["aria-labelledby"]);
|
|
6977
|
+
return jsxRuntime.jsxs("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 40, height: 24, viewBox: "0 0 40 24", fill: "none" }, svgProps, { role: hasAccessibleName ? "img" : void 0, "aria-hidden": hasAccessibleName ? void 0 : true, children: [jsxRuntime.jsx("path", { d: TRACK_PATH, fill: TRACK_COLOR }), shape === "exact" ? jsxRuntime.jsx("circle", { cx: 20, cy: 12, r: 4, fill: rangeColor }) : jsxRuntime.jsx("path", { d: RANGE_PATHS[shape], fill: rangeColor })] }));
|
|
6978
|
+
};
|
|
6979
|
+
|
|
6940
6980
|
const AsideLayout = (_a) => {
|
|
6941
6981
|
var { aside, children } = _a, rest = __rest(_a, ["aside", "children"]);
|
|
6942
6982
|
const containerClasses = classNames__default.default("ui:flex-col ui:md:flex-row");
|
|
@@ -7473,6 +7513,7 @@ exports.PrimaryTabBar = PrimaryTabBar;
|
|
|
7473
7513
|
exports.PrinterIcon = PrinterIcon;
|
|
7474
7514
|
exports.QuestionFilledIcon = QuestionFilledIcon;
|
|
7475
7515
|
exports.RangeCoverage = RangeCoverage;
|
|
7516
|
+
exports.RangeTriggerIcon = RangeTriggerIcon;
|
|
7476
7517
|
exports.RedAlertColoredIcon = RedAlertColoredIcon;
|
|
7477
7518
|
exports.RedAlertIcon = RedAlertIcon;
|
|
7478
7519
|
exports.RefreshIcon = RefreshIcon;
|