aidos-ui 5.0.9 → 5.0.11

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.d.ts CHANGED
@@ -269,6 +269,7 @@ interface BaseListItemProps extends Omit<RowProps, "children" | "jss" | "role">
269
269
  icon?: IconType;
270
270
  iconPosition?: Position;
271
271
  iconSize?: Size;
272
+ iconJss?: JSS;
272
273
  addOn?: ReactNode;
273
274
  disabled?: boolean;
274
275
  role?: undefined;
@@ -458,7 +459,7 @@ interface ListProps extends BaseListProps {
458
459
  }
459
460
  declare function List({ ariaLabel, jss, gap, autofocus, navigation, ...otherProps }: ListProps): react_jsx_runtime.JSX.Element;
460
461
 
461
- interface ListButtonItemProps extends Omit<BaseListItemProps, "children" | "onClick"> {
462
+ interface ListButtonItemProps extends Omit<BaseListItemProps, "children" | "onClick" | "headlineColor" | "bodyColor"> {
462
463
  color?: InteractableColor;
463
464
  onClick: () => void;
464
465
  headline: string;
@@ -488,7 +489,7 @@ interface ListItemProps extends Omit<BaseListItemProps, "children"> {
488
489
  }
489
490
  declare const ListItem: React__default.ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & React__default.RefAttributes<HTMLLIElement>>;
490
491
 
491
- interface ListLinkItemProps extends Omit<BaseListItemProps, "children" | "onClick"> {
492
+ interface ListLinkItemProps extends Omit<BaseListItemProps, "children" | "onClick" | "headlineColor" | "bodyColor"> {
492
493
  color?: InteractableColor;
493
494
  children?: void;
494
495
  onClick?: () => void;
@@ -687,7 +688,7 @@ declare function useStream<Frame>({ render, bufferStart, bufferEnd, index, debou
687
688
  frame: Frame;
688
689
  };
689
690
 
690
- declare function Sublist({ children, label, labelBold, initialState, jss, secondaryAddOn, }: {
691
+ declare function Sublist({ children, label, labelBold, initialState, jss, }: {
691
692
  children: React__default.ReactNode;
692
693
  label: string;
693
694
  labelBold?: boolean;
@@ -695,7 +696,6 @@ declare function Sublist({ children, label, labelBold, initialState, jss, second
695
696
  collapsed: boolean;
696
697
  };
697
698
  jss?: JSS;
698
- secondaryAddOn?: ReactNode;
699
699
  }): react_jsx_runtime.JSX.Element;
700
700
 
701
701
  interface SubmitIconInputProps extends BaseInputProps {
package/dist/index.js CHANGED
@@ -1221,6 +1221,7 @@ var getInteractableListItemJSS = ({
1221
1221
  var interactableListItemContentJSS = {
1222
1222
  overflow: "hidden",
1223
1223
  flexGrow: 1,
1224
+ color: "inherit",
1224
1225
  textDecoration: "none",
1225
1226
  ":focus-visible": {
1226
1227
  outline: "none"
@@ -1380,6 +1381,7 @@ var BaseListAddOn = React35.forwardRef(function BaseListAddOn2({ jss, ...otherPr
1380
1381
  minWidth: 34,
1381
1382
  height: 34,
1382
1383
  flexShrink: 0,
1384
+ alignSelf: "center",
1383
1385
  marginInlineEnd: cssVar("--spacing-m"),
1384
1386
  alignItems: "center",
1385
1387
  justifyContent: "center"
@@ -1488,6 +1490,7 @@ var BaseListItem = React35.forwardRef(function BaseListItem2({
1488
1490
  icon,
1489
1491
  iconPosition = "start",
1490
1492
  iconSize = "medium",
1493
+ iconJss,
1491
1494
  addOn,
1492
1495
  disabled = false,
1493
1496
  padding = "medium",
@@ -1503,7 +1506,15 @@ var BaseListItem = React35.forwardRef(function BaseListItem2({
1503
1506
  headlineBold,
1504
1507
  padding,
1505
1508
  gap,
1506
- addOn: icon ? /* @__PURE__ */ jsx(Icon, { icon, size: iconSize, color: contentColor }) : void 0,
1509
+ addOn: icon ? /* @__PURE__ */ jsx(
1510
+ Icon,
1511
+ {
1512
+ icon,
1513
+ size: iconSize,
1514
+ color: contentColor,
1515
+ jss: iconJss
1516
+ }
1517
+ ) : void 0,
1507
1518
  addOnPosition: iconPosition,
1508
1519
  headline,
1509
1520
  headlineSize,
@@ -1511,7 +1522,7 @@ var BaseListItem = React35.forwardRef(function BaseListItem2({
1511
1522
  headlineAddOn,
1512
1523
  body,
1513
1524
  bodySize,
1514
- bodyColor: disabled ? "subtle" : bodyColor,
1525
+ bodyColor: disabled || selected ? contentColor : bodyColor,
1515
1526
  bodyEllipsis,
1516
1527
  grow: true,
1517
1528
  shrink: false
@@ -3316,17 +3327,18 @@ var ListButtonItem = React35.forwardRef(function ListButtonItem2({
3316
3327
  selected,
3317
3328
  ...otherProps
3318
3329
  }, ref) {
3330
+ const glyphColor = getGlyphColor(color, disabled, true);
3319
3331
  return /* @__PURE__ */ jsx(
3320
3332
  BaseListItem,
3321
3333
  {
3322
3334
  disabled,
3323
3335
  padding: "none",
3324
3336
  gap,
3325
- headlineColor: getGlyphColor(color, disabled, true),
3326
- bodyColor: getGlyphColor(color, disabled, true),
3327
3337
  selected,
3328
3338
  "aria-selected": selected,
3329
3339
  ...otherProps,
3340
+ headlineColor: glyphColor,
3341
+ bodyColor: glyphColor,
3330
3342
  jss: [
3331
3343
  getInteractableListItemJSS({
3332
3344
  selected,
@@ -3392,6 +3404,7 @@ var ListLinkItem = React35.forwardRef(function ListLinkItem2({
3392
3404
  target,
3393
3405
  ...otherProps
3394
3406
  }, ref) {
3407
+ const glyphColor = getGlyphColor(color, disabled, true);
3395
3408
  return /* @__PURE__ */ jsx(
3396
3409
  BaseListItem,
3397
3410
  {
@@ -3399,10 +3412,10 @@ var ListLinkItem = React35.forwardRef(function ListLinkItem2({
3399
3412
  "aria-selected": selected,
3400
3413
  padding: "none",
3401
3414
  gap,
3402
- headlineColor: getGlyphColor(color, disabled, true),
3403
- bodyColor: getGlyphColor(color, disabled, true),
3404
3415
  selected,
3405
3416
  ...otherProps,
3417
+ headlineColor: glyphColor,
3418
+ bodyColor: glyphColor,
3406
3419
  jss: [
3407
3420
  getInteractableListItemJSS({
3408
3421
  selected,
@@ -4399,8 +4412,7 @@ function Sublist({
4399
4412
  label,
4400
4413
  labelBold,
4401
4414
  initialState = { collapsed: false },
4402
- jss,
4403
- secondaryAddOn
4415
+ jss
4404
4416
  }) {
4405
4417
  const [collapsed, setCollapsed] = React35.useState(initialState.collapsed);
4406
4418
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -4411,24 +4423,12 @@ function Sublist({
4411
4423
  headlineBold: labelBold,
4412
4424
  onClick: () => setCollapsed((x) => !x),
4413
4425
  jss,
4414
- addOn: /* @__PURE__ */ jsxs(Row, { gap: "medium", align: "center", children: [
4415
- secondaryAddOn,
4416
- /* @__PURE__ */ jsx(
4417
- Box,
4418
- {
4419
- padding: "none",
4420
- jss: [
4421
- {
4422
- transition: "transform 0.15s ease-in"
4423
- },
4424
- !collapsed && {
4425
- transform: "rotateZ(90deg)"
4426
- }
4427
- ],
4428
- children: /* @__PURE__ */ jsx(Icon, { color: "inherit", size: "medium", icon: "chevron-right" })
4429
- }
4430
- )
4431
- ] }),
4426
+ icon: "chevron-right",
4427
+ iconPosition: "end",
4428
+ iconJss: {
4429
+ transition: "transform 0.15s ease-in",
4430
+ ...!collapsed && { transform: "rotateZ(90deg)" }
4431
+ },
4432
4432
  color: "secondary"
4433
4433
  }
4434
4434
  ),