@luscii-healthtech/web-ui 56.2.0 → 57.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/index.development.js +3 -43
- 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/Box/Box.d.ts +1 -32
- package/dist/src/components/Stack/Stack.d.ts +1 -16
- package/dist/src/generated/components/Box/Box.d.ts +1 -32
- package/dist/src/generated/components/Stack/Stack.d.ts +1 -16
- package/dist/stories/ActionController.stories.d.ts +1 -16
- package/dist/stories/AsideLayout.stories.d.ts +1 -16
- package/dist/stories/Box.stories.d.ts +1 -16
- package/dist/stories/DetailsDisclosure.stories.d.ts +1 -464
- package/dist/stories/Divider.stories.d.ts +0 -32
- package/dist/stories/HoverIndicatorControl.stories.d.ts +1 -16
- package/dist/stories/PageWithCenteredContentLayout.stories.d.ts +3 -48
- package/dist/stories/Section.stories.d.ts +1 -16
- package/dist/stories/SplitViewLayout.stories.d.ts +1 -16
- package/dist/stories/Stack.stories.d.ts +0 -1
- package/dist/stories/Tabs.stories.d.ts +1 -16
- package/dist/stories/TimelineCardLayout.stories.d.ts +0 -16
- package/dist/stories/VerticalMenu.stories.d.ts +1 -16
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1239,22 +1239,6 @@ const createRadiusRightClassName = (borderRadius) => {
|
|
|
1239
1239
|
});
|
|
1240
1240
|
};
|
|
1241
1241
|
|
|
1242
|
-
const spacingKeys = [
|
|
1243
|
-
"p",
|
|
1244
|
-
"pt",
|
|
1245
|
-
"pr",
|
|
1246
|
-
"pb",
|
|
1247
|
-
"pl",
|
|
1248
|
-
"px",
|
|
1249
|
-
"py",
|
|
1250
|
-
"m",
|
|
1251
|
-
"mt",
|
|
1252
|
-
"mr",
|
|
1253
|
-
"mb",
|
|
1254
|
-
"ml",
|
|
1255
|
-
"mx",
|
|
1256
|
-
"my"
|
|
1257
|
-
];
|
|
1258
1242
|
const underscoredSpacingPropNames = [
|
|
1259
1243
|
"_p",
|
|
1260
1244
|
"_pt",
|
|
@@ -1271,25 +1255,15 @@ const underscoredSpacingPropNames = [
|
|
|
1271
1255
|
"_mx",
|
|
1272
1256
|
"_my"
|
|
1273
1257
|
];
|
|
1274
|
-
const
|
|
1275
|
-
...spacingKeys,
|
|
1276
|
-
...underscoredSpacingPropNames
|
|
1277
|
-
];
|
|
1278
|
-
const createSpacingClassNames = (keys, spacingPropsArg) => {
|
|
1279
|
-
const underscoredPropKeys = [...underscoredSpacingPropNames];
|
|
1280
|
-
const current = keys.filter((key) => spacingPropsArg[key] && !underscoredPropKeys.includes(key)).map((key) => `ui:${key}-${spacingPropsArg[key]}`).join(" ");
|
|
1281
|
-
const underscored = keys.filter((key) => spacingPropsArg[key] && underscoredPropKeys.includes(key)).map((key) => `ui:${key.replace("_", "")}-f_${spacingPropsArg[key]}`).join(" ");
|
|
1282
|
-
return `${current} ${underscored}`;
|
|
1283
|
-
};
|
|
1258
|
+
const createSpacingClassNames = (spacingPropsArg) => underscoredSpacingPropNames.filter((key) => spacingPropsArg[key]).map((key) => `ui:${key.replace("_", "")}-f_${spacingPropsArg[key]}`).join(" ");
|
|
1284
1259
|
const BoxInner = (props, ref) => {
|
|
1285
1260
|
const { as: Element = "div", borderRadius, borderRadiusLeft, borderRadiusRight, className, elevation, width, backgroundColor, hoverBackgroundColor, cursor } = props, attributes = __rest(props, ["as", "borderRadius", "borderRadiusLeft", "borderRadiusRight", "className", "elevation", "width", "backgroundColor", "hoverBackgroundColor", "cursor"]);
|
|
1286
|
-
const spacingClasses = createSpacingClassNames(
|
|
1261
|
+
const spacingClasses = createSpacingClassNames(props);
|
|
1287
1262
|
const shadowClassName = createShadowClassName(elevation);
|
|
1288
1263
|
const borderRadiusClassName = createRadiusClassName(borderRadius);
|
|
1289
1264
|
const borderRadiusLeftClassName = createRadiusLeftClassName(borderRadiusLeft);
|
|
1290
1265
|
const borderRadiusRightClassName = createRadiusRightClassName(borderRadiusRight);
|
|
1291
1266
|
const attributesWithoutSpacingKeys = lodashEs.omit(attributes, [
|
|
1292
|
-
...spacingKeys,
|
|
1293
1267
|
...underscoredSpacingPropNames
|
|
1294
1268
|
]);
|
|
1295
1269
|
const boxClasses = classNames__default.default(spacingClasses, {
|
|
@@ -1339,27 +1313,13 @@ const BoxInner = (props, ref) => {
|
|
|
1339
1313
|
const Box = React__namespace.default.forwardRef(BoxInner);
|
|
1340
1314
|
|
|
1341
1315
|
const StackInner = (props, ref) => {
|
|
1342
|
-
const { children,
|
|
1316
|
+
const { children, _gap, align = "start", justify = "normal", axis = "y", className, reverse, wrap = false, divider, as } = props, attributes = __rest(props, ["children", "_gap", "align", "justify", "axis", "className", "reverse", "wrap", "divider", "as"]);
|
|
1343
1317
|
const stackClasses = classNames__default.default(`ui:flex`, {
|
|
1344
1318
|
"ui:flex-row": axis === "x",
|
|
1345
1319
|
"ui:flex-col": axis === "y",
|
|
1346
1320
|
"ui:flex-row-reverse": axis === "x" && reverse,
|
|
1347
1321
|
"ui:flex-col-reverse": axis === "y" && reverse,
|
|
1348
1322
|
"ui:flex-wrap": wrap,
|
|
1349
|
-
/**
|
|
1350
|
-
* @deprecated
|
|
1351
|
-
* Old spacing system, to be removed in a future major release. Use the `_gap` prop instead.
|
|
1352
|
-
*/
|
|
1353
|
-
"ui:gap-m": gap === "m",
|
|
1354
|
-
"ui:gap-none": gap === "none",
|
|
1355
|
-
"ui:gap-xxxxs": gap === "xxxxs",
|
|
1356
|
-
"ui:gap-xxxs": gap === "xxxs",
|
|
1357
|
-
"ui:gap-xxs": gap === "xxs",
|
|
1358
|
-
"ui:gap-xs": gap === "xs",
|
|
1359
|
-
"ui:gap-s": gap === "s",
|
|
1360
|
-
"ui:gap-l": gap === "l",
|
|
1361
|
-
"ui:gap-xl": gap === "xl",
|
|
1362
|
-
"ui:gap-xxl": gap === "xxl",
|
|
1363
1323
|
"ui:gap-f_none": _gap === "none",
|
|
1364
1324
|
"ui:gap-f_xs": _gap === "xs",
|
|
1365
1325
|
"ui:gap-f_s": _gap === "s",
|