@m4l/components 9.69.1 → 9.69.2-beta-updated-accordion-component-endaddorment.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAgCzC;;GAEG;AACH,eAAO,MAAM,SAAS,2GA2GpB,CAAC"}
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAiCzC;;GAEG;AACH,eAAO,MAAM,SAAS,2GAkHpB,CAAC"}
@@ -1,110 +1,112 @@
1
- import { jsxs as c, jsx as o } from "@emotion/react/jsx-runtime";
2
- import { TEST_PROP_ID as b } from "../../../../test/constants_no_mock.js";
3
- import { getNameDataTestId as A } from "../../../../test/getNameDataTestId.js";
4
- import { ACCORDION_KEY as S } from "./constants.js";
5
- import { getComponentSlotRoot as T } from "../../../../utils/getComponentSlotRoot.js";
6
- import { AccordionRootStyled as v, AccordionSummaryStyled as N, IconLabelStyled as R, LabelGroupStyled as O, LabelStyled as w, DescriptionStyled as L, IconExpandedStyled as P, AccordionDetailsStyled as _ } from "./slots/AccordionSlots.js";
7
- import { forwardRef as k, useState as j, useEffect as W } from "react";
8
- import { useComponentSize as B } from "../../../../hooks/useComponentSize/index.js";
9
- import G from "clsx";
10
- import { ArrowChevronMdDownOutlined as K } from "@m4l/icons";
11
- function M(a) {
12
- return a.replace(/\\r\\n/g, `
1
+ import { jsxs as c, jsx as n } from "@emotion/react/jsx-runtime";
2
+ import { TEST_PROP_ID as v } from "../../../../test/constants_no_mock.js";
3
+ import { getNameDataTestId as T } from "../../../../test/getNameDataTestId.js";
4
+ import { ACCORDION_KEY as h } from "./constants.js";
5
+ import { getComponentSlotRoot as N } from "../../../../utils/getComponentSlotRoot.js";
6
+ import { AccordionRootStyled as R, AccordionSummaryStyled as O, IconLabelStyled as w, LabelGroupStyled as L, LabelStyled as P, DescriptionStyled as _, EndAdornmentStyled as k, IconExpandedStyled as j, AccordionDetailsStyled as W } from "./slots/AccordionSlots.js";
7
+ import { forwardRef as B, useState as G, useEffect as K } from "react";
8
+ import { useComponentSize as M } from "../../../../hooks/useComponentSize/index.js";
9
+ import { ArrowChevronMdDownOutlined as V } from "@m4l/icons";
10
+ import Y from "clsx";
11
+ function q(l) {
12
+ return l.replace(/\\r\\n/g, `
13
13
  `).replace(/\\n/g, `
14
14
  `).replace(/\\t/g, " ").replace(/\r\n/g, `
15
15
  `).replace(/\r/g, `
16
16
  `);
17
17
  }
18
- const $ = k((a, x) => {
18
+ const oe = B((l, x) => {
19
19
  const {
20
- label: h,
21
- description: i,
22
- children: l,
23
- accordionProps: d,
24
- summaryProps: g,
25
- icon: s,
26
- className: y,
27
- dataTestId: z = "",
28
- skeletonLabelWidth: C = "100px",
29
- size: p,
30
- expanded: n,
31
- variant: D = "outlined"
32
- } = a, { currentSize: t } = B(p), E = T(S), [m, u] = j(n ?? d?.defaultExpanded ?? !0), f = typeof l == "string" ? M(l) : null, I = () => {
33
- u((r) => !r);
20
+ label: g,
21
+ description: a,
22
+ endAdornment: o,
23
+ children: i,
24
+ accordionProps: s,
25
+ summaryProps: y,
26
+ icon: p,
27
+ className: A,
28
+ dataTestId: E = "",
29
+ skeletonLabelWidth: z = "100px",
30
+ size: m,
31
+ expanded: t,
32
+ variant: C = "outlined"
33
+ } = l, { currentSize: r } = M(m), D = N(h), [u, f] = G(t ?? s?.defaultExpanded ?? !0), S = typeof i == "string" ? q(i) : null, I = o != null && o !== !1, b = () => {
34
+ f((d) => !d);
34
35
  };
35
- W(() => {
36
- let r = !0;
37
- return r && n !== void 0 && u(n), () => {
38
- r = !1;
36
+ K(() => {
37
+ let d = !0;
38
+ return d && t !== void 0 && f(t), () => {
39
+ d = !1;
39
40
  };
40
- }, [n]);
41
+ }, [t]);
41
42
  const e = {
42
- size: t,
43
- variant: D,
44
- expanded: m,
45
- hasTextContent: f !== null,
46
- hasDescription: !!i
43
+ size: r,
44
+ variant: C,
45
+ expanded: u,
46
+ hasTextContent: S !== null,
47
+ hasDescription: !!a
47
48
  };
48
49
  return /* @__PURE__ */ c(
49
- v,
50
+ R,
50
51
  {
51
52
  ownerState: e,
52
53
  ref: x,
53
54
  role: "contentinfo",
54
- className: G(E, y),
55
- expanded: m,
56
- ...d,
57
- ...process.env.NODE_ENV !== "production" ? { [b]: A(S, "root", z) } : {},
55
+ className: Y(D, A),
56
+ expanded: u,
57
+ ...s,
58
+ ...process.env.NODE_ENV !== "production" ? { [v]: T(h, "root", E) } : {},
58
59
  children: [
59
60
  /* @__PURE__ */ c(
60
- N,
61
+ O,
61
62
  {
62
63
  ownerState: e,
63
64
  role: "heading",
64
65
  "aria-controls": "expanded-content",
65
- onClick: I,
66
- expandIcon: /* @__PURE__ */ o(
67
- P,
66
+ onClick: b,
67
+ expandIcon: /* @__PURE__ */ n(
68
+ j,
68
69
  {
69
70
  ownerState: e,
70
- size: t,
71
+ size: r,
71
72
  "aria-label": "settings",
72
- src: /* @__PURE__ */ o(K, {})
73
+ src: /* @__PURE__ */ n(V, {})
73
74
  }
74
75
  ),
75
- ...g,
76
+ ...y,
76
77
  children: [
77
- s && /* @__PURE__ */ o(R, { ownerState: e, src: s, size: p }),
78
- /* @__PURE__ */ c(O, { ownerState: e, children: [
79
- /* @__PURE__ */ o(
80
- w,
78
+ p && /* @__PURE__ */ n(w, { ownerState: e, src: p, size: m }),
79
+ /* @__PURE__ */ c(L, { ownerState: e, children: [
80
+ /* @__PURE__ */ n(
81
+ P,
81
82
  {
82
83
  ownerState: e,
83
- size: t,
84
- variant: "captionDens",
85
- skeletonWidth: C,
86
- children: h
84
+ size: r,
85
+ variant: "captionStandard",
86
+ skeletonWidth: z,
87
+ children: g
87
88
  }
88
89
  ),
89
- i ? /* @__PURE__ */ o(
90
- L,
90
+ a ? /* @__PURE__ */ n(
91
+ _,
91
92
  {
92
93
  ownerState: e,
93
- size: t,
94
+ size: r,
94
95
  color: "text.secondary",
95
96
  variant: "caption",
96
- children: i
97
+ children: a
97
98
  }
98
99
  ) : null
99
- ] })
100
+ ] }),
101
+ I ? /* @__PURE__ */ n(k, { ownerState: e, children: o }) : null
100
102
  ]
101
103
  }
102
104
  ),
103
- /* @__PURE__ */ o(_, { ownerState: e, children: f ?? l })
105
+ /* @__PURE__ */ n(W, { ownerState: e, children: S ?? i })
104
106
  ]
105
107
  }
106
108
  );
107
109
  });
108
110
  export {
109
- $ as Accordion
111
+ oe as Accordion
110
112
  };
@@ -1,6 +1,7 @@
1
1
  export declare enum AccordionSlots {
2
2
  accordionRoot = "accordionRoot",
3
3
  accordionSummary = "accordionSummary",
4
+ accordionEndAdornment = "endAdornment",
4
5
  accordionIconLabel = "iconLabel",
5
6
  accordionLabelGroup = "labelGroup",
6
7
  accordionLabel = "label",
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/extended/mui/Accordion/slots/AccordionEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,kBAAkB,cAAc;IAChC,mBAAmB,eAAe;IAClC,cAAc,UAAU;IACxB,oBAAoB,gBAAgB;IACpC,qBAAqB,iBAAiB;IACtC,gBAAgB,qBAAqB;CACtC"}
1
+ {"version":3,"file":"AccordionEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/extended/mui/Accordion/slots/AccordionEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,qBAAqB,iBAAiB;IACtC,kBAAkB,cAAc;IAChC,mBAAmB,eAAe;IAClC,cAAc,UAAU;IACxB,oBAAoB,gBAAgB;IACpC,qBAAqB,iBAAiB;IACtC,gBAAgB,qBAAqB;CACtC"}
@@ -1,4 +1,4 @@
1
- var c = /* @__PURE__ */ ((a) => (a.accordionRoot = "accordionRoot", a.accordionSummary = "accordionSummary", a.accordionIconLabel = "iconLabel", a.accordionLabelGroup = "labelGroup", a.accordionLabel = "label", a.accordionDescription = "description", a.accordionIconExpanded = "iconExpanded", a.accordionDetails = "accordionDetails", a))(c || {});
1
+ var n = /* @__PURE__ */ ((a) => (a.accordionRoot = "accordionRoot", a.accordionSummary = "accordionSummary", a.accordionEndAdornment = "endAdornment", a.accordionIconLabel = "iconLabel", a.accordionLabelGroup = "labelGroup", a.accordionLabel = "label", a.accordionDescription = "description", a.accordionIconExpanded = "iconExpanded", a.accordionDetails = "accordionDetails", a))(n || {});
2
2
  export {
3
- c as AccordionSlots
3
+ n as AccordionSlots
4
4
  };
@@ -17,6 +17,9 @@ export declare const AccordionRootStyled: import('@emotion/styled').StyledCompon
17
17
  export declare const AccordionSummaryStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "action" | "classes" | "children" | "className" | "sx" | "style" | "tabIndex" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon">, "color" | "content" | "translate" | "action" | "classes" | "children" | "className" | "sx" | "slot" | "style" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
18
18
  ownerState?: (Partial<import('../types').AccordionOwnerState> & Record<string, unknown>) | undefined;
19
19
  }, {}, {}>;
20
+ export declare const EndAdornmentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
21
+ ownerState?: (Partial<import('../types').AccordionOwnerState> & Record<string, unknown>) | undefined;
22
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
20
23
  export declare const IconLabelStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/base').IconProps, "src" | "icon" | keyof import('@m4l/base').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
21
24
  ownerState?: (Partial<import('../types').AccordionOwnerState> & Record<string, unknown>) | undefined;
22
25
  }, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionSlots.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/extended/mui/Accordion/slots/AccordionSlots.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB;;;;;;;;;;gBAgCi7C,CAAC;;;;;UA7Bh7C,CAAC;AACnC,eAAO,MAAM,sBAAsB;;UAGE,CAAC;AACtC,eAAO,MAAM,eAAe;;UAGW,CAAC;AACxC,eAAO,MAAM,gBAAgB;;6NAGW,CAAC;AACzC,eAAO,MAAM,WAAW;;UAGW,CAAC;AACpC,eAAO,MAAM,iBAAiB;;UAGW,CAAC;AAC1C,eAAO,MAAM,kBAAkB;;UAGW,CAAC;AAC3C,eAAO,MAAM,sBAAsB;;UAGE,CAAC"}
1
+ {"version":3,"file":"AccordionSlots.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/extended/mui/Accordion/slots/AccordionSlots.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB;;;;;;;;;;gBAoC8wC,CAAC;;;;;UAjC7wC,CAAC;AACnC,eAAO,MAAM,sBAAsB;;UAGE,CAAC;AACtC,eAAO,MAAM,kBAAkB;;6NAGW,CAAC;AAC3C,eAAO,MAAM,eAAe;;UAGW,CAAC;AACxC,eAAO,MAAM,gBAAgB;;6NAGW,CAAC;AACzC,eAAO,MAAM,WAAW;;UAGW,CAAC;AACpC,eAAO,MAAM,iBAAiB;;UAGW,CAAC;AAC1C,eAAO,MAAM,kBAAkB;;UAGW,CAAC;AAC3C,eAAO,MAAM,sBAAsB;;UAGE,CAAC"}
@@ -1,28 +1,31 @@
1
- import { Accordion as i, AccordionSummary as d, AccordionDetails as e } from "@mui/material";
1
+ import { Accordion as a, AccordionSummary as i, AccordionDetails as e } from "@mui/material";
2
2
  import { styled as o } from "@mui/material/styles";
3
3
  import { ACCORDION_KEY as c } from "../constants.js";
4
4
  import { AccordionSlots as n } from "./AccordionEnum.js";
5
5
  import { accordionStyles as r } from "../styles.js";
6
- import { Icon as a, Typography as t } from "@m4l/base";
7
- const b = o(i, {
6
+ import { Icon as d, Typography as t } from "@m4l/base";
7
+ const A = o(a, {
8
8
  name: c,
9
9
  slot: n.accordionRoot
10
- })(r?.accordionRoot), L = o(d, {
10
+ })(r?.accordionRoot), b = o(i, {
11
11
  name: c,
12
12
  slot: n.accordionSummary
13
- })(r?.accordionSummary), A = o(a, {
13
+ })(r?.accordionSummary), L = o("div", {
14
+ name: c,
15
+ slot: n.accordionEndAdornment
16
+ })(r?.accordionEndAdornment), D = o(d, {
14
17
  name: c,
15
18
  slot: n.accordionIconLabel
16
- })(r?.accordionIconLabel), D = o("div", {
19
+ })(r?.accordionIconLabel), I = o("div", {
17
20
  name: c,
18
21
  slot: n.accordionLabelGroup
19
- })(r?.accordionLabelGroup), I = o(t, {
22
+ })(r?.accordionLabelGroup), u = o(t, {
20
23
  name: c,
21
24
  slot: n.accordionLabel
22
- })(r?.accordionLabel), u = o(t, {
25
+ })(r?.accordionLabel), E = o(t, {
23
26
  name: c,
24
27
  slot: n.accordionDescription
25
- })(r?.accordionDescription), f = o(a, {
28
+ })(r?.accordionDescription), f = o(d, {
26
29
  name: c,
27
30
  slot: n.accordionIconExpanded
28
31
  })(r?.accordionIconExpanded), x = o(e, {
@@ -31,11 +34,12 @@ const b = o(i, {
31
34
  })(r?.accordionDetails);
32
35
  export {
33
36
  x as AccordionDetailsStyled,
34
- b as AccordionRootStyled,
35
- L as AccordionSummaryStyled,
36
- u as DescriptionStyled,
37
+ A as AccordionRootStyled,
38
+ b as AccordionSummaryStyled,
39
+ E as DescriptionStyled,
40
+ L as EndAdornmentStyled,
37
41
  f as IconExpandedStyled,
38
- A as IconLabelStyled,
39
- D as LabelGroupStyled,
40
- I as LabelStyled
42
+ D as IconLabelStyled,
43
+ I as LabelGroupStyled,
44
+ u as LabelStyled
41
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Accordion/styles.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,eAAO,MAAM,eAAe,EAAE,eA6J7B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Accordion/styles.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,eAAO,MAAM,eAAe,EAAE,eAuK7B,CAAC"}
@@ -48,7 +48,7 @@ const s = {
48
48
  })),
49
49
  background: r.vars.palette.background.default,
50
50
  overflow: "hidden",
51
- borderBottom: a?.expanded && a?.variant === "outlined" ? `${r.size.borderStroke.container} ${r.vars.palette.border.secondary}` : "unset",
51
+ borderBottom: `${r.size.borderStroke.container} ${r.vars.palette.border.disabled}`,
52
52
  borderRadius: "unset",
53
53
  ...a?.variant === "outlined" && {
54
54
  borderTopLeftRadius: r.size.borderRadius.r2,
@@ -84,6 +84,15 @@ const s = {
84
84
  }
85
85
  }
86
86
  }),
87
+ /**
88
+ * Styles for optional informational content displayed at the end of the header.
89
+ */
90
+ accordionEndAdornment: () => ({
91
+ display: "inline-flex",
92
+ alignItems: "center",
93
+ marginLeft: "auto",
94
+ flexShrink: 0
95
+ }),
87
96
  /**
88
97
  * *************************************************
89
98
  * Styles for the icon displayed next to the Accordion label.
@@ -102,7 +111,8 @@ const s = {
102
111
  flexDirection: "column",
103
112
  alignItems: "flex-start",
104
113
  gap: r.vars.size.baseSpacings["sp0-5"],
105
- overflow: "hidden"
114
+ overflow: "hidden",
115
+ flex: "0 1 auto"
106
116
  }),
107
117
  /**
108
118
  *******************************************************************
@@ -14,6 +14,10 @@ export interface AccordionProps {
14
14
  * Optional description displayed below the accordion label.
15
15
  */
16
16
  description?: string;
17
+ /**
18
+ * Optional informational content displayed at the end of the accordion header.
19
+ */
20
+ endAdornment?: ReactNode;
17
21
  /**
18
22
  * Optional class name for the Accordion component
19
23
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Accordion/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,UAAU,CAAC,CAAC;IAE5D;;OAEG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IAErC;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAExB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAE1C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AACD,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,cAAc,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,aAAa,EAAE,KAAK,CAAC,CAAC;AACtG,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnF,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;CACzB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Accordion/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,UAAU,CAAC,CAAC;IAE5D;;OAEG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAAC;IAErC;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAExB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAE1C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AACD,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,cAAc,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,kBAAkB,EAAE,OAAO,aAAa,EAAE,KAAK,CAAC,CAAC;AACtG,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnF,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;CACzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.69.1",
3
+ "version": "9.69.2-beta-updated-accordion-component-endaddorment.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -54,23 +54,23 @@
54
54
  "nprogress": "0.2.0",
55
55
  "react-transition-group": "4.4.5",
56
56
  "@tanstack/react-virtual": "3.13.23",
57
- "@mui/x-date-pickers": "6.20.2",
58
57
  "react-color": "2.19.3",
58
+ "@mui/x-date-pickers": "6.20.2",
59
+ "react-rnd": "10.5.2",
59
60
  "react-dropzone": "14.4.1",
60
- "react-spinners": "0.13.8",
61
61
  "react-draggable": "4.5.0",
62
- "react-rnd": "10.5.2",
63
- "simplebar-react": "3.2.6",
64
- "react-resizable-panels": "2.1.9",
65
- "react-simple-code-editor": "0.14.1",
62
+ "react-spinners": "0.13.8",
66
63
  "chart.js": "4.5.1",
67
64
  "chartjs-chart-error-bars": "4.4.5",
68
65
  "qrcode.react": "3.2.0",
66
+ "react-simple-code-editor": "0.14.1",
67
+ "react-resizable-panels": "2.1.9",
68
+ "simplebar-react": "3.2.6",
69
69
  "react-data-grid": "7.0.0-beta.47",
70
70
  "react-dnd": "16.0.1",
71
71
  "react-dnd-html5-backend": "16.0.1",
72
+ "date-fns": "2.30.0",
72
73
  "react-resizable": "3.1.3",
73
- "react-window": "1.8.11",
74
- "date-fns": "2.30.0"
74
+ "react-window": "1.8.11"
75
75
  }
76
76
  }