@equinor/roma-framework 6.0.1-beta.0 → 6.0.1-beta.1
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/dev-portal/index.html +2 -1
- package/dev-portal/lib/style-provider.d.ts +2 -1
- package/dev-portal/package.json +7 -6
- package/dev-portal/roma-framework.css +478 -0
- package/dev-portal/roma-framework.umd.js +266 -315
- package/lib/style-provider.d.ts +2 -1
- package/package.json +7 -6
- package/roma-framework.mjs +4 -3
|
@@ -85940,11 +85940,11 @@ attempted value: ${formattedValue}
|
|
|
85940
85940
|
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
85941
85941
|
var mt = "__sc-".concat(a$1, "__");
|
|
85942
85942
|
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[mt] || (window[mt] = 0), 1 === window[mt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[mt] += 1);
|
|
85943
|
-
|
|
85943
|
+
const clickbounds = {
|
|
85944
85944
|
default__base: "48px",
|
|
85945
85945
|
compact__standard: "32px"
|
|
85946
85946
|
};
|
|
85947
|
-
|
|
85947
|
+
const colors$2 = {
|
|
85948
85948
|
text: {
|
|
85949
85949
|
static_icons__default: {
|
|
85950
85950
|
rgba: "var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"
|
|
@@ -86039,7 +86039,7 @@ attempted value: ${formattedValue}
|
|
|
86039
86039
|
}
|
|
86040
86040
|
}
|
|
86041
86041
|
};
|
|
86042
|
-
|
|
86042
|
+
const elevation$1 = {
|
|
86043
86043
|
raised: "0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",
|
|
86044
86044
|
none: "0 0 1px rgba(0, 0, 0, 0.14)",
|
|
86045
86045
|
overlay: "0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",
|
|
@@ -86047,13 +86047,13 @@ attempted value: ${formattedValue}
|
|
|
86047
86047
|
temporary_nav: "0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",
|
|
86048
86048
|
above_scrim: "0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"
|
|
86049
86049
|
};
|
|
86050
|
-
|
|
86050
|
+
const interactions = {
|
|
86051
86051
|
focused: {
|
|
86052
86052
|
color: "rgba(0, 112, 121, 1)",
|
|
86053
86053
|
width: "2px"
|
|
86054
86054
|
}
|
|
86055
86055
|
};
|
|
86056
|
-
|
|
86056
|
+
const shape$2 = {
|
|
86057
86057
|
_modes: {
|
|
86058
86058
|
compact: {
|
|
86059
86059
|
button: {
|
|
@@ -86080,7 +86080,7 @@ attempted value: ${formattedValue}
|
|
|
86080
86080
|
minWidth: "40px"
|
|
86081
86081
|
}
|
|
86082
86082
|
};
|
|
86083
|
-
|
|
86083
|
+
const typography$6 = {
|
|
86084
86084
|
heading: {
|
|
86085
86085
|
h1_bold: {
|
|
86086
86086
|
color: "var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",
|
|
@@ -86516,7 +86516,7 @@ attempted value: ${formattedValue}
|
|
|
86516
86516
|
}
|
|
86517
86517
|
}
|
|
86518
86518
|
};
|
|
86519
|
-
|
|
86519
|
+
const spacings$6 = {
|
|
86520
86520
|
comfortable: {
|
|
86521
86521
|
large: "24px",
|
|
86522
86522
|
medium: "16px",
|
|
@@ -86525,7 +86525,7 @@ attempted value: ${formattedValue}
|
|
|
86525
86525
|
xx_small: "2px"
|
|
86526
86526
|
}
|
|
86527
86527
|
};
|
|
86528
|
-
|
|
86528
|
+
const tokens$1 = {
|
|
86529
86529
|
clickbounds,
|
|
86530
86530
|
colors: colors$2,
|
|
86531
86531
|
elevation: elevation$1,
|
|
@@ -87225,6 +87225,135 @@ attempted value: ${formattedValue}
|
|
|
87225
87225
|
contained_icon: danger$2
|
|
87226
87226
|
}
|
|
87227
87227
|
};
|
|
87228
|
+
const shorthand = (token2) => {
|
|
87229
|
+
if (!token2) {
|
|
87230
|
+
return void 0;
|
|
87231
|
+
}
|
|
87232
|
+
const {
|
|
87233
|
+
width = "",
|
|
87234
|
+
style: style2 = "",
|
|
87235
|
+
color = ""
|
|
87236
|
+
} = token2;
|
|
87237
|
+
if (!width) {
|
|
87238
|
+
return null;
|
|
87239
|
+
}
|
|
87240
|
+
return `${width} ${style2} ${color}`;
|
|
87241
|
+
};
|
|
87242
|
+
const bordersTemplate = (border2) => {
|
|
87243
|
+
if (!border2) {
|
|
87244
|
+
return st({});
|
|
87245
|
+
}
|
|
87246
|
+
switch (border2.type) {
|
|
87247
|
+
case "border":
|
|
87248
|
+
return st({
|
|
87249
|
+
border: shorthand(border2),
|
|
87250
|
+
borderRadius: border2.radius
|
|
87251
|
+
});
|
|
87252
|
+
case "bordergroup":
|
|
87253
|
+
return st({
|
|
87254
|
+
borderBottom: shorthand(border2.bottom),
|
|
87255
|
+
borderTop: shorthand(border2.top),
|
|
87256
|
+
borderLeft: shorthand(border2.left),
|
|
87257
|
+
borderRight: shorthand(border2.right),
|
|
87258
|
+
borderBottomLeftRadius: border2?.left?.radius,
|
|
87259
|
+
borderTopLeftRadius: border2?.left?.radius,
|
|
87260
|
+
borderBottomRightRadius: border2?.right?.radius,
|
|
87261
|
+
borderTopRightRadius: border2?.right?.radius
|
|
87262
|
+
});
|
|
87263
|
+
default:
|
|
87264
|
+
return st({});
|
|
87265
|
+
}
|
|
87266
|
+
};
|
|
87267
|
+
const typographyTemplate = (typography2, link2) => {
|
|
87268
|
+
if (!typography2) {
|
|
87269
|
+
return "";
|
|
87270
|
+
}
|
|
87271
|
+
let base = `
|
|
87272
|
+
margin: 0;
|
|
87273
|
+
color: ${typography2.color};
|
|
87274
|
+
font-family: ${typography2.fontFamily};
|
|
87275
|
+
font-size: ${typography2.fontSize};
|
|
87276
|
+
font-weight: ${typography2.fontWeight};
|
|
87277
|
+
line-height: ${typography2.lineHeight};
|
|
87278
|
+
`;
|
|
87279
|
+
if (typography2.fontStyle) {
|
|
87280
|
+
base += `
|
|
87281
|
+
font-style: ${typography2.fontStyle};`;
|
|
87282
|
+
}
|
|
87283
|
+
if (typography2.letterSpacing) {
|
|
87284
|
+
base += `
|
|
87285
|
+
letter-spacing: ${typography2.letterSpacing};`;
|
|
87286
|
+
}
|
|
87287
|
+
if (typography2.textTransform) {
|
|
87288
|
+
base += `
|
|
87289
|
+
text-transform: ${typography2.textTransform};`;
|
|
87290
|
+
}
|
|
87291
|
+
if (typography2.textDecoration) {
|
|
87292
|
+
base += `
|
|
87293
|
+
text-decoration: ${typography2.textDecoration};`;
|
|
87294
|
+
}
|
|
87295
|
+
if (typography2.textAlign) {
|
|
87296
|
+
base += `
|
|
87297
|
+
text-align: ${typography2.textAlign};`;
|
|
87298
|
+
}
|
|
87299
|
+
if (typography2.fontFeature) {
|
|
87300
|
+
base += `
|
|
87301
|
+
font-feature-settings: ${typography2.fontFeature};`;
|
|
87302
|
+
}
|
|
87303
|
+
if (link2) {
|
|
87304
|
+
base += `
|
|
87305
|
+
cursor: pointer;`;
|
|
87306
|
+
}
|
|
87307
|
+
return base;
|
|
87308
|
+
};
|
|
87309
|
+
const spacingsTemplate = ({
|
|
87310
|
+
left,
|
|
87311
|
+
right,
|
|
87312
|
+
top,
|
|
87313
|
+
bottom
|
|
87314
|
+
}) => st({
|
|
87315
|
+
paddingLeft: left,
|
|
87316
|
+
paddingTop: top,
|
|
87317
|
+
paddingRight: right,
|
|
87318
|
+
paddingBottom: bottom
|
|
87319
|
+
});
|
|
87320
|
+
const mergeRefs$2 = (...refs) => {
|
|
87321
|
+
return (element) => refs.forEach((ref) => {
|
|
87322
|
+
if (typeof ref === "function") {
|
|
87323
|
+
ref(element);
|
|
87324
|
+
} else if (ref && typeof ref === "object") {
|
|
87325
|
+
ref.current = element;
|
|
87326
|
+
}
|
|
87327
|
+
});
|
|
87328
|
+
};
|
|
87329
|
+
const {
|
|
87330
|
+
colors: {
|
|
87331
|
+
interactive: {
|
|
87332
|
+
focus: {
|
|
87333
|
+
rgba: focusColor$2
|
|
87334
|
+
}
|
|
87335
|
+
}
|
|
87336
|
+
}
|
|
87337
|
+
} = tokens$1;
|
|
87338
|
+
const outlineTemplate = (outline2) => {
|
|
87339
|
+
const {
|
|
87340
|
+
color = focusColor$2,
|
|
87341
|
+
style: style2 = "dashed",
|
|
87342
|
+
width = "2px",
|
|
87343
|
+
offset: offset3 = "0px",
|
|
87344
|
+
type
|
|
87345
|
+
} = outline2;
|
|
87346
|
+
const outline_ = {
|
|
87347
|
+
color,
|
|
87348
|
+
style: style2,
|
|
87349
|
+
width,
|
|
87350
|
+
offset: offset3
|
|
87351
|
+
};
|
|
87352
|
+
return st({
|
|
87353
|
+
outline: shorthand(outline_),
|
|
87354
|
+
outlineOffset: outline_.offset
|
|
87355
|
+
});
|
|
87356
|
+
};
|
|
87228
87357
|
const useGlobalKeyPress = (targetKey, callback) => {
|
|
87229
87358
|
reactExports.useEffect(() => {
|
|
87230
87359
|
const handleGlobalKeyPress = (e2) => {
|
|
@@ -87243,17 +87372,6 @@ attempted value: ${formattedValue}
|
|
|
87243
87372
|
};
|
|
87244
87373
|
}, [targetKey, callback]);
|
|
87245
87374
|
};
|
|
87246
|
-
let counter$1 = 0;
|
|
87247
|
-
const useId$1 = (idOverride, type) => {
|
|
87248
|
-
const [defaultId, setDefaultId] = reactExports.useState(idOverride);
|
|
87249
|
-
const id2 = idOverride || defaultId;
|
|
87250
|
-
reactExports.useEffect(() => {
|
|
87251
|
-
if (defaultId == null) {
|
|
87252
|
-
setDefaultId(`eds-${type ? type + `-` : ""}${counter$1++}`);
|
|
87253
|
-
}
|
|
87254
|
-
}, [defaultId, type]);
|
|
87255
|
-
return id2;
|
|
87256
|
-
};
|
|
87257
87375
|
const useIsomorphicLayoutEffect$1 = typeof window !== "undefined" ? reactExports.useLayoutEffect : reactExports.useEffect;
|
|
87258
87376
|
function _isPlaceholder(a2) {
|
|
87259
87377
|
return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
|
|
@@ -87365,135 +87483,6 @@ attempted value: ${formattedValue}
|
|
|
87365
87483
|
}
|
|
87366
87484
|
return token2;
|
|
87367
87485
|
}, [options, token2]);
|
|
87368
|
-
const mergeRefs$2 = (...refs) => {
|
|
87369
|
-
return (element) => refs.forEach((ref) => {
|
|
87370
|
-
if (typeof ref === "function") {
|
|
87371
|
-
ref(element);
|
|
87372
|
-
} else if (ref && typeof ref === "object") {
|
|
87373
|
-
ref.current = element;
|
|
87374
|
-
}
|
|
87375
|
-
});
|
|
87376
|
-
};
|
|
87377
|
-
const shorthand = (token2) => {
|
|
87378
|
-
if (!token2) {
|
|
87379
|
-
return void 0;
|
|
87380
|
-
}
|
|
87381
|
-
const {
|
|
87382
|
-
width = "",
|
|
87383
|
-
style: style2 = "",
|
|
87384
|
-
color = ""
|
|
87385
|
-
} = token2;
|
|
87386
|
-
if (!width) {
|
|
87387
|
-
return null;
|
|
87388
|
-
}
|
|
87389
|
-
return `${width} ${style2} ${color}`;
|
|
87390
|
-
};
|
|
87391
|
-
const bordersTemplate = (border2) => {
|
|
87392
|
-
if (!border2) {
|
|
87393
|
-
return st({});
|
|
87394
|
-
}
|
|
87395
|
-
switch (border2.type) {
|
|
87396
|
-
case "border":
|
|
87397
|
-
return st({
|
|
87398
|
-
border: shorthand(border2),
|
|
87399
|
-
borderRadius: border2.radius
|
|
87400
|
-
});
|
|
87401
|
-
case "bordergroup":
|
|
87402
|
-
return st({
|
|
87403
|
-
borderBottom: shorthand(border2.bottom),
|
|
87404
|
-
borderTop: shorthand(border2.top),
|
|
87405
|
-
borderLeft: shorthand(border2.left),
|
|
87406
|
-
borderRight: shorthand(border2.right),
|
|
87407
|
-
borderBottomLeftRadius: border2?.left?.radius,
|
|
87408
|
-
borderTopLeftRadius: border2?.left?.radius,
|
|
87409
|
-
borderBottomRightRadius: border2?.right?.radius,
|
|
87410
|
-
borderTopRightRadius: border2?.right?.radius
|
|
87411
|
-
});
|
|
87412
|
-
default:
|
|
87413
|
-
return st({});
|
|
87414
|
-
}
|
|
87415
|
-
};
|
|
87416
|
-
const {
|
|
87417
|
-
colors: {
|
|
87418
|
-
interactive: {
|
|
87419
|
-
focus: {
|
|
87420
|
-
rgba: focusColor$2
|
|
87421
|
-
}
|
|
87422
|
-
}
|
|
87423
|
-
}
|
|
87424
|
-
} = tokens$1;
|
|
87425
|
-
const outlineTemplate = (outline2) => {
|
|
87426
|
-
const {
|
|
87427
|
-
color = focusColor$2,
|
|
87428
|
-
style: style2 = "dashed",
|
|
87429
|
-
width = "2px",
|
|
87430
|
-
offset: offset3 = "0px",
|
|
87431
|
-
type
|
|
87432
|
-
} = outline2;
|
|
87433
|
-
const outline_ = {
|
|
87434
|
-
color,
|
|
87435
|
-
style: style2,
|
|
87436
|
-
width,
|
|
87437
|
-
offset: offset3
|
|
87438
|
-
};
|
|
87439
|
-
return st({
|
|
87440
|
-
outline: shorthand(outline_),
|
|
87441
|
-
outlineOffset: outline_.offset
|
|
87442
|
-
});
|
|
87443
|
-
};
|
|
87444
|
-
const typographyTemplate = (typography2, link2) => {
|
|
87445
|
-
if (!typography2) {
|
|
87446
|
-
return "";
|
|
87447
|
-
}
|
|
87448
|
-
let base = `
|
|
87449
|
-
margin: 0;
|
|
87450
|
-
color: ${typography2.color};
|
|
87451
|
-
font-family: ${typography2.fontFamily};
|
|
87452
|
-
font-size: ${typography2.fontSize};
|
|
87453
|
-
font-weight: ${typography2.fontWeight};
|
|
87454
|
-
line-height: ${typography2.lineHeight};
|
|
87455
|
-
`;
|
|
87456
|
-
if (typography2.fontStyle) {
|
|
87457
|
-
base += `
|
|
87458
|
-
font-style: ${typography2.fontStyle};`;
|
|
87459
|
-
}
|
|
87460
|
-
if (typography2.letterSpacing) {
|
|
87461
|
-
base += `
|
|
87462
|
-
letter-spacing: ${typography2.letterSpacing};`;
|
|
87463
|
-
}
|
|
87464
|
-
if (typography2.textTransform) {
|
|
87465
|
-
base += `
|
|
87466
|
-
text-transform: ${typography2.textTransform};`;
|
|
87467
|
-
}
|
|
87468
|
-
if (typography2.textDecoration) {
|
|
87469
|
-
base += `
|
|
87470
|
-
text-decoration: ${typography2.textDecoration};`;
|
|
87471
|
-
}
|
|
87472
|
-
if (typography2.textAlign) {
|
|
87473
|
-
base += `
|
|
87474
|
-
text-align: ${typography2.textAlign};`;
|
|
87475
|
-
}
|
|
87476
|
-
if (typography2.fontFeature) {
|
|
87477
|
-
base += `
|
|
87478
|
-
font-feature-settings: ${typography2.fontFeature};`;
|
|
87479
|
-
}
|
|
87480
|
-
if (link2) {
|
|
87481
|
-
base += `
|
|
87482
|
-
cursor: pointer;`;
|
|
87483
|
-
}
|
|
87484
|
-
return base;
|
|
87485
|
-
};
|
|
87486
|
-
const spacingsTemplate = ({
|
|
87487
|
-
left,
|
|
87488
|
-
right,
|
|
87489
|
-
top,
|
|
87490
|
-
bottom
|
|
87491
|
-
}) => st({
|
|
87492
|
-
paddingLeft: left,
|
|
87493
|
-
paddingTop: top,
|
|
87494
|
-
paddingRight: right,
|
|
87495
|
-
paddingBottom: bottom
|
|
87496
|
-
});
|
|
87497
87486
|
const FullWidthCenterContent = ct.span.withConfig({
|
|
87498
87487
|
displayName: "InnerFullWidth__FullWidthCenterContent",
|
|
87499
87488
|
componentId: "sc-qeawkb-0"
|
|
@@ -90735,6 +90724,7 @@ cursor: pointer;`;
|
|
|
90735
90724
|
children: children2,
|
|
90736
90725
|
style: style2,
|
|
90737
90726
|
enterDelay = 100,
|
|
90727
|
+
disabled: disabled2 = false,
|
|
90738
90728
|
portalContainer,
|
|
90739
90729
|
...rest
|
|
90740
90730
|
}, ref) {
|
|
@@ -90769,7 +90759,7 @@ cursor: pointer;`;
|
|
|
90769
90759
|
})],
|
|
90770
90760
|
whileElementsMounted: autoUpdate$1
|
|
90771
90761
|
});
|
|
90772
|
-
const
|
|
90762
|
+
const mergedAnchorRef = reactExports.useMemo(() => mergeRefs$2(refs.setReference), [refs.setReference]);
|
|
90773
90763
|
const tooltipRef = reactExports.useMemo(() => mergeRefs$2(refs.setFloating, ref), [refs.setFloating, ref]);
|
|
90774
90764
|
const {
|
|
90775
90765
|
getReferenceProps,
|
|
@@ -90814,12 +90804,18 @@ cursor: pointer;`;
|
|
|
90814
90804
|
});
|
|
90815
90805
|
}
|
|
90816
90806
|
});
|
|
90817
|
-
const updatedChildren = /* @__PURE__ */ reactExports.cloneElement(
|
|
90818
|
-
|
|
90819
|
-
|
|
90820
|
-
|
|
90821
|
-
|
|
90822
|
-
|
|
90807
|
+
const updatedChildren = /* @__PURE__ */ reactExports.cloneElement(
|
|
90808
|
+
children2,
|
|
90809
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
90810
|
+
{
|
|
90811
|
+
...getReferenceProps(children2.props),
|
|
90812
|
+
ref: mergeRefs$2(
|
|
90813
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
90814
|
+
children2.props.ref,
|
|
90815
|
+
mergedAnchorRef
|
|
90816
|
+
)
|
|
90817
|
+
}
|
|
90818
|
+
);
|
|
90823
90819
|
reactExports.useEffect(() => {
|
|
90824
90820
|
if (!elements.floating) return;
|
|
90825
90821
|
if (elements.floating.isConnected && shouldOpen && open) {
|
|
@@ -90850,7 +90846,7 @@ cursor: pointer;`;
|
|
|
90850
90846
|
})]
|
|
90851
90847
|
});
|
|
90852
90848
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
90853
|
-
children: [shouldOpen && open && /* @__PURE__ */ reactDomExports.createPortal(TooltipEl, portalContainer ?? rootElement ?? document.body)
|
|
90849
|
+
children: [updatedChildren, shouldOpen && open && !disabled2 && /* @__PURE__ */ reactDomExports.createPortal(TooltipEl, portalContainer ?? rootElement ?? document.body)]
|
|
90854
90850
|
});
|
|
90855
90851
|
});
|
|
90856
90852
|
const ToggleButton = /* @__PURE__ */ reactExports.forwardRef(function ToggleButton2({
|
|
@@ -90983,7 +90979,7 @@ cursor: pointer;`;
|
|
|
90983
90979
|
$height: icon2.height ? parseInt(icon2.height) : size3,
|
|
90984
90980
|
$size: size3 || parseInt(icon2.height)
|
|
90985
90981
|
};
|
|
90986
|
-
const titleId = useId
|
|
90982
|
+
const titleId = reactExports.useId();
|
|
90987
90983
|
if (title) {
|
|
90988
90984
|
svgProps = {
|
|
90989
90985
|
...svgProps,
|
|
@@ -91069,16 +91065,7 @@ cursor: pointer;`;
|
|
|
91069
91065
|
prefix: "eds",
|
|
91070
91066
|
height: "24",
|
|
91071
91067
|
width: "24",
|
|
91072
|
-
svgPathData: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
91073
|
-
sizes: {
|
|
91074
|
-
small: {
|
|
91075
|
-
name: "close_small",
|
|
91076
|
-
prefix: "eds",
|
|
91077
|
-
height: "18",
|
|
91078
|
-
width: "18",
|
|
91079
|
-
svgPathData: "M14 5.007 12.993 4 9 7.993 5.007 4 4 5.007 7.993 9 4 12.993 5.007 14 9 10.007 12.993 14 14 12.993 10.007 9z"
|
|
91080
|
-
}
|
|
91081
|
-
}
|
|
91068
|
+
svgPathData: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
91082
91069
|
};
|
|
91083
91070
|
const account_circle = {
|
|
91084
91071
|
name: "account_circle",
|
|
@@ -91120,48 +91107,21 @@ cursor: pointer;`;
|
|
|
91120
91107
|
prefix: "eds",
|
|
91121
91108
|
height: "24",
|
|
91122
91109
|
width: "24",
|
|
91123
|
-
svgPathData: "m7.41 8.295 4.59 4.58 4.59-4.58L18 9.705l-6 6-6-6z"
|
|
91124
|
-
sizes: {
|
|
91125
|
-
small: {
|
|
91126
|
-
name: "chevron_down_small",
|
|
91127
|
-
prefix: "eds",
|
|
91128
|
-
height: "18",
|
|
91129
|
-
width: "18",
|
|
91130
|
-
svgPathData: "M5.175 6 9 9.709 12.825 6 14 7.142 9 12 4 7.142z"
|
|
91131
|
-
}
|
|
91132
|
-
}
|
|
91110
|
+
svgPathData: "m7.41 8.295 4.59 4.58 4.59-4.58L18 9.705l-6 6-6-6z"
|
|
91133
91111
|
};
|
|
91134
91112
|
const chevron_up = {
|
|
91135
91113
|
name: "chevron_up",
|
|
91136
91114
|
prefix: "eds",
|
|
91137
91115
|
height: "24",
|
|
91138
91116
|
width: "24",
|
|
91139
|
-
svgPathData: "m7.41 15.705 4.59-4.58 4.59 4.58 1.41-1.41-6-6-6 6z"
|
|
91140
|
-
sizes: {
|
|
91141
|
-
small: {
|
|
91142
|
-
name: "chevron_up_small",
|
|
91143
|
-
prefix: "eds",
|
|
91144
|
-
height: "18",
|
|
91145
|
-
width: "18",
|
|
91146
|
-
svgPathData: "m5.174 12.002 3.825-3.709 3.825 3.709 1.175-1.142-5-4.859-5 4.859z"
|
|
91147
|
-
}
|
|
91148
|
-
}
|
|
91117
|
+
svgPathData: "m7.41 15.705 4.59-4.58 4.59 4.58 1.41-1.41-6-6-6 6z"
|
|
91149
91118
|
};
|
|
91150
91119
|
const arrow_drop_down = {
|
|
91151
91120
|
name: "arrow_drop_down",
|
|
91152
91121
|
prefix: "eds",
|
|
91153
91122
|
height: "24",
|
|
91154
91123
|
width: "24",
|
|
91155
|
-
svgPathData: "m7 9.5 5 5 5-5z"
|
|
91156
|
-
sizes: {
|
|
91157
|
-
small: {
|
|
91158
|
-
name: "arrow_drop_down_small",
|
|
91159
|
-
prefix: "eds",
|
|
91160
|
-
height: "18",
|
|
91161
|
-
width: "18",
|
|
91162
|
-
svgPathData: "m4 6.5 5 5 5-5z"
|
|
91163
|
-
}
|
|
91164
|
-
}
|
|
91124
|
+
svgPathData: "m7 9.5 5 5 5-5z"
|
|
91165
91125
|
};
|
|
91166
91126
|
const collapse = {
|
|
91167
91127
|
name: "collapse",
|
|
@@ -91175,16 +91135,7 @@ cursor: pointer;`;
|
|
|
91175
91135
|
prefix: "eds",
|
|
91176
91136
|
height: "24",
|
|
91177
91137
|
width: "24",
|
|
91178
|
-
svgPathData: "M14 4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2 3c2.83 0 5.89-.3 8.5-1l.5 2c-1.86.5-4 .83-6 1v13h-2v-6h-2v6H9V9c-2-.17-4.14-.5-6-1l.5-2c2.61.7 5.67 1 8.5 1"
|
|
91179
|
-
sizes: {
|
|
91180
|
-
small: {
|
|
91181
|
-
name: "accessible_small",
|
|
91182
|
-
prefix: "eds",
|
|
91183
|
-
height: "18",
|
|
91184
|
-
width: "18",
|
|
91185
|
-
svgPathData: "M10.5 3c0 .825-.675 1.5-1.5 1.5S7.5 3.825 7.5 3 8.175 1.5 9 1.5s1.5.675 1.5 1.5M9 5.25c2.123 0 4.418-.225 6.375-.75L15.75 6c-1.395.375-3 .622-4.5.75v9.75h-1.5V12h-1.5v4.5h-1.5V6.75c-1.5-.128-3.105-.375-4.5-.75l.375-1.5c1.957.525 4.253.75 6.375.75"
|
|
91186
|
-
}
|
|
91187
|
-
}
|
|
91138
|
+
svgPathData: "M14 4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2 3c2.83 0 5.89-.3 8.5-1l.5 2c-1.86.5-4 .83-6 1v13h-2v-6h-2v6H9V9c-2-.17-4.14-.5-6-1l.5-2c2.61.7 5.67 1 8.5 1"
|
|
91188
91139
|
};
|
|
91189
91140
|
const {
|
|
91190
91141
|
colors: {
|
|
@@ -93049,7 +93000,8 @@ cursor: pointer;`;
|
|
|
93049
93000
|
disabled: disabled2,
|
|
93050
93001
|
...rest
|
|
93051
93002
|
}, ref) {
|
|
93052
|
-
const
|
|
93003
|
+
const generatedAccordionId = reactExports.useId();
|
|
93004
|
+
const accordionId = id2 ?? generatedAccordionId;
|
|
93053
93005
|
const [menuIsOpen, setMenuIsOpen] = reactExports.useState(false);
|
|
93054
93006
|
const [accordionIsOpen, setAccordionIsOpen] = reactExports.useState(isExpanded);
|
|
93055
93007
|
const [anchorEl, setAnchorEl] = reactExports.useState(null);
|
|
@@ -93164,10 +93116,9 @@ cursor: pointer;`;
|
|
|
93164
93116
|
onClose: closeMenu,
|
|
93165
93117
|
anchorEl,
|
|
93166
93118
|
children: reactExports.Children.map(children2, (child) => {
|
|
93167
|
-
const item = child;
|
|
93168
93119
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Menu$1.Item, {
|
|
93169
93120
|
...child.props,
|
|
93170
|
-
children:
|
|
93121
|
+
children: child.props.label
|
|
93171
93122
|
});
|
|
93172
93123
|
})
|
|
93173
93124
|
})]
|
|
@@ -93263,104 +93214,6 @@ cursor: pointer;`;
|
|
|
93263
93214
|
SideBar.Button.displayName = "SideBar.Button";
|
|
93264
93215
|
SideBar.Accordion.displayName = "SideBar.Accordion";
|
|
93265
93216
|
SideBar.AccordionItem.displayName = "SideBar.AccordionItem";
|
|
93266
|
-
const {
|
|
93267
|
-
colors: {
|
|
93268
|
-
ui: {
|
|
93269
|
-
background__default: {
|
|
93270
|
-
rgba: background$2
|
|
93271
|
-
},
|
|
93272
|
-
background__light: {
|
|
93273
|
-
rgba: borderColor
|
|
93274
|
-
}
|
|
93275
|
-
}
|
|
93276
|
-
},
|
|
93277
|
-
spacings: {
|
|
93278
|
-
comfortable: {
|
|
93279
|
-
xx_small: spacingXXS,
|
|
93280
|
-
medium: spacingMedium
|
|
93281
|
-
}
|
|
93282
|
-
},
|
|
93283
|
-
typography: {
|
|
93284
|
-
paragraph: {
|
|
93285
|
-
body_short
|
|
93286
|
-
}
|
|
93287
|
-
}
|
|
93288
|
-
} = tokens$1;
|
|
93289
|
-
const comfortable = {
|
|
93290
|
-
background: background$2,
|
|
93291
|
-
spacings: {
|
|
93292
|
-
left: "14px",
|
|
93293
|
-
// padding left is 14px, because of border-left 'steals' 2px of the padding
|
|
93294
|
-
right: spacingMedium,
|
|
93295
|
-
top: spacingMedium
|
|
93296
|
-
},
|
|
93297
|
-
border: {
|
|
93298
|
-
type: "bordergroup",
|
|
93299
|
-
left: {
|
|
93300
|
-
color: borderColor,
|
|
93301
|
-
width: spacingXXS,
|
|
93302
|
-
style: "solid"
|
|
93303
|
-
}
|
|
93304
|
-
},
|
|
93305
|
-
typography: {
|
|
93306
|
-
...body_short
|
|
93307
|
-
}
|
|
93308
|
-
};
|
|
93309
|
-
const variants = {
|
|
93310
|
-
small: "240px",
|
|
93311
|
-
medium: "320px",
|
|
93312
|
-
large: "480px",
|
|
93313
|
-
xlarge: "640px"
|
|
93314
|
-
};
|
|
93315
|
-
const {
|
|
93316
|
-
background: background$1,
|
|
93317
|
-
spacings: spacings$1,
|
|
93318
|
-
border: border$1,
|
|
93319
|
-
typography: typography$1
|
|
93320
|
-
} = comfortable;
|
|
93321
|
-
const StyledSideSheet$1 = ct.div.withConfig({
|
|
93322
|
-
displayName: "SideSheet__StyledSideSheet",
|
|
93323
|
-
componentId: "sc-wkzlnn-0"
|
|
93324
|
-
})(["height:100%;position:absolute;z-index:1200;top:0;right:0;box-sizing:border-box;background:", ";width:", ";", " ", ";", ""], background$1, ({
|
|
93325
|
-
width
|
|
93326
|
-
}) => width, bordersTemplate(border$1), spacingsTemplate(spacings$1), typographyTemplate(typography$1));
|
|
93327
|
-
const Header$1 = ct.div.withConfig({
|
|
93328
|
-
displayName: "SideSheet__Header",
|
|
93329
|
-
componentId: "sc-wkzlnn-1"
|
|
93330
|
-
})(["display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;padding-bottom:24px;padding-right:10px;& > button{margin-left:auto;flex-shrink:0;}"]);
|
|
93331
|
-
const SideSheet = /* @__PURE__ */ reactExports.forwardRef(function SideSheet2({
|
|
93332
|
-
variant = "medium",
|
|
93333
|
-
width,
|
|
93334
|
-
title,
|
|
93335
|
-
children: children2,
|
|
93336
|
-
open,
|
|
93337
|
-
onClose,
|
|
93338
|
-
...rest
|
|
93339
|
-
}, ref) {
|
|
93340
|
-
const props = {
|
|
93341
|
-
...rest,
|
|
93342
|
-
ref,
|
|
93343
|
-
width: width || variants[variant]
|
|
93344
|
-
};
|
|
93345
|
-
return open && /* @__PURE__ */ jsxRuntimeExports.jsxs(StyledSideSheet$1, {
|
|
93346
|
-
...props,
|
|
93347
|
-
children: [(title || onClose) && /* @__PURE__ */ jsxRuntimeExports.jsxs(Header$1, {
|
|
93348
|
-
children: [title && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, {
|
|
93349
|
-
variant: "h2",
|
|
93350
|
-
children: title
|
|
93351
|
-
}), onClose && /* @__PURE__ */ jsxRuntimeExports.jsx(Button$2, {
|
|
93352
|
-
variant: "ghost_icon",
|
|
93353
|
-
onClick: onClose,
|
|
93354
|
-
title: "Close",
|
|
93355
|
-
"aria-label": "Close sidesheet",
|
|
93356
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
93357
|
-
name: "clear",
|
|
93358
|
-
data: clear
|
|
93359
|
-
})
|
|
93360
|
-
})]
|
|
93361
|
-
}), children2]
|
|
93362
|
-
});
|
|
93363
|
-
});
|
|
93364
93217
|
const {
|
|
93365
93218
|
spacings: {
|
|
93366
93219
|
comfortable: {
|
|
@@ -93540,11 +93393,11 @@ cursor: pointer;`;
|
|
|
93540
93393
|
error
|
|
93541
93394
|
} = Chip_tokens;
|
|
93542
93395
|
const {
|
|
93543
|
-
background,
|
|
93396
|
+
background: background$2,
|
|
93544
93397
|
height,
|
|
93545
|
-
typography,
|
|
93546
|
-
spacings,
|
|
93547
|
-
border,
|
|
93398
|
+
typography: typography$1,
|
|
93399
|
+
spacings: spacings$1,
|
|
93400
|
+
border: border$1,
|
|
93548
93401
|
states
|
|
93549
93402
|
} = enabled;
|
|
93550
93403
|
const StyledChips = ct.div.attrs(({
|
|
@@ -93556,7 +93409,7 @@ cursor: pointer;`;
|
|
|
93556
93409
|
})).withConfig({
|
|
93557
93410
|
displayName: "Chip__StyledChips",
|
|
93558
93411
|
componentId: "sc-wzsllq-0"
|
|
93559
|
-
})(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;svg{fill:", ";}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background, height, typography.color, outlineTemplate(states.focus.outline), outlineTemplate(states.focus.outline), bordersTemplate(border), spacingsTemplate(spacings), typographyTemplate(typography), ({
|
|
93412
|
+
})(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;svg{fill:", ";}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$2, height, typography$1.color, outlineTemplate(states.focus.outline), outlineTemplate(states.focus.outline), bordersTemplate(border$1), spacingsTemplate(spacings$1), typographyTemplate(typography$1), ({
|
|
93560
93413
|
$clickable
|
|
93561
93414
|
}) => $clickable && st(["@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;color:", ";svg{fill:", ";}}}"], states.hover.typography.color, states.hover.typography.color), ({
|
|
93562
93415
|
$variant,
|
|
@@ -93572,7 +93425,7 @@ cursor: pointer;`;
|
|
|
93572
93425
|
}
|
|
93573
93426
|
}, ({
|
|
93574
93427
|
$disabled
|
|
93575
|
-
}) => $disabled && st(["cursor:not-allowed;background:", ";color:", ";svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";cursor:not-allowed;svg{fill:", ";}}}"], background, states.disabled.typography.color, states.disabled.typography.color, states.disabled.typography.color, states.disabled.typography.color), ({
|
|
93428
|
+
}) => $disabled && st(["cursor:not-allowed;background:", ";color:", ";svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";cursor:not-allowed;svg{fill:", ";}}}"], background$2, states.disabled.typography.color, states.disabled.typography.color, states.disabled.typography.color, states.disabled.typography.color), ({
|
|
93576
93429
|
$deletable
|
|
93577
93430
|
}) => $deletable && st(["padding-right:4px;"]), ({
|
|
93578
93431
|
$onlyChild
|
|
@@ -93613,7 +93466,7 @@ cursor: pointer;`;
|
|
|
93613
93466
|
}
|
|
93614
93467
|
};
|
|
93615
93468
|
const resizedChildren = reactExports.Children.map(children2, (child) => {
|
|
93616
|
-
if (child
|
|
93469
|
+
if (child?.props) {
|
|
93617
93470
|
return /* @__PURE__ */ reactExports.cloneElement(child, {
|
|
93618
93471
|
size: 16,
|
|
93619
93472
|
disabled: disabled2
|
|
@@ -93641,6 +93494,104 @@ cursor: pointer;`;
|
|
|
93641
93494
|
})]
|
|
93642
93495
|
});
|
|
93643
93496
|
});
|
|
93497
|
+
const {
|
|
93498
|
+
colors: {
|
|
93499
|
+
ui: {
|
|
93500
|
+
background__default: {
|
|
93501
|
+
rgba: background$1
|
|
93502
|
+
},
|
|
93503
|
+
background__light: {
|
|
93504
|
+
rgba: borderColor
|
|
93505
|
+
}
|
|
93506
|
+
}
|
|
93507
|
+
},
|
|
93508
|
+
spacings: {
|
|
93509
|
+
comfortable: {
|
|
93510
|
+
xx_small: spacingXXS,
|
|
93511
|
+
medium: spacingMedium
|
|
93512
|
+
}
|
|
93513
|
+
},
|
|
93514
|
+
typography: {
|
|
93515
|
+
paragraph: {
|
|
93516
|
+
body_short
|
|
93517
|
+
}
|
|
93518
|
+
}
|
|
93519
|
+
} = tokens$1;
|
|
93520
|
+
const comfortable = {
|
|
93521
|
+
background: background$1,
|
|
93522
|
+
spacings: {
|
|
93523
|
+
left: "14px",
|
|
93524
|
+
// padding left is 14px, because of border-left 'steals' 2px of the padding
|
|
93525
|
+
right: spacingMedium,
|
|
93526
|
+
top: spacingMedium
|
|
93527
|
+
},
|
|
93528
|
+
border: {
|
|
93529
|
+
type: "bordergroup",
|
|
93530
|
+
left: {
|
|
93531
|
+
color: borderColor,
|
|
93532
|
+
width: spacingXXS,
|
|
93533
|
+
style: "solid"
|
|
93534
|
+
}
|
|
93535
|
+
},
|
|
93536
|
+
typography: {
|
|
93537
|
+
...body_short
|
|
93538
|
+
}
|
|
93539
|
+
};
|
|
93540
|
+
const variants = {
|
|
93541
|
+
small: "240px",
|
|
93542
|
+
medium: "320px",
|
|
93543
|
+
large: "480px",
|
|
93544
|
+
xlarge: "640px"
|
|
93545
|
+
};
|
|
93546
|
+
const {
|
|
93547
|
+
background,
|
|
93548
|
+
spacings,
|
|
93549
|
+
border,
|
|
93550
|
+
typography
|
|
93551
|
+
} = comfortable;
|
|
93552
|
+
const StyledSideSheet$1 = ct.div.withConfig({
|
|
93553
|
+
displayName: "SideSheet__StyledSideSheet",
|
|
93554
|
+
componentId: "sc-wkzlnn-0"
|
|
93555
|
+
})(["height:100%;position:absolute;z-index:1200;top:0;right:0;box-sizing:border-box;background:", ";width:", ";", " ", ";", ""], background, ({
|
|
93556
|
+
width
|
|
93557
|
+
}) => width, bordersTemplate(border), spacingsTemplate(spacings), typographyTemplate(typography));
|
|
93558
|
+
const Header$1 = ct.div.withConfig({
|
|
93559
|
+
displayName: "SideSheet__Header",
|
|
93560
|
+
componentId: "sc-wkzlnn-1"
|
|
93561
|
+
})(["display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;padding-bottom:24px;padding-right:10px;& > button{margin-left:auto;flex-shrink:0;}"]);
|
|
93562
|
+
const SideSheet = /* @__PURE__ */ reactExports.forwardRef(function SideSheet2({
|
|
93563
|
+
variant = "medium",
|
|
93564
|
+
width,
|
|
93565
|
+
title,
|
|
93566
|
+
children: children2,
|
|
93567
|
+
open,
|
|
93568
|
+
onClose,
|
|
93569
|
+
...rest
|
|
93570
|
+
}, ref) {
|
|
93571
|
+
const props = {
|
|
93572
|
+
...rest,
|
|
93573
|
+
ref,
|
|
93574
|
+
width: width || variants[variant]
|
|
93575
|
+
};
|
|
93576
|
+
return open && /* @__PURE__ */ jsxRuntimeExports.jsxs(StyledSideSheet$1, {
|
|
93577
|
+
...props,
|
|
93578
|
+
children: [(title || onClose) && /* @__PURE__ */ jsxRuntimeExports.jsxs(Header$1, {
|
|
93579
|
+
children: [title && /* @__PURE__ */ jsxRuntimeExports.jsx(Typography, {
|
|
93580
|
+
variant: "h2",
|
|
93581
|
+
children: title
|
|
93582
|
+
}), onClose && /* @__PURE__ */ jsxRuntimeExports.jsx(Button$2, {
|
|
93583
|
+
variant: "ghost_icon",
|
|
93584
|
+
onClick: onClose,
|
|
93585
|
+
title: "Close",
|
|
93586
|
+
"aria-label": "Close sidesheet",
|
|
93587
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon$1, {
|
|
93588
|
+
name: "clear",
|
|
93589
|
+
data: clear
|
|
93590
|
+
})
|
|
93591
|
+
})]
|
|
93592
|
+
}), children2]
|
|
93593
|
+
});
|
|
93594
|
+
});
|
|
93644
93595
|
class CustomAppClient {
|
|
93645
93596
|
constructor(client2, graphClient) {
|
|
93646
93597
|
this.client = client2;
|