@m4l/components 9.65.2-beta-feature-794-m4l-react-native-ui-nav-link-text-area.0 → 9.65.2-beta-update-switch-component-variable.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.
@@ -58,7 +58,7 @@ export declare const PanelStyled: import('@emotion/styled').StyledComponent<impo
58
58
  export declare const PanelHeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
59
59
  ownerState?: (Partial<import('..').DevicesPickerOwnerState> & Record<string, unknown>) | undefined;
60
60
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
61
- export declare const PanelSwitchStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/Switch/types').SwitchProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "color" | "content" | "translate" | "error" | "action" | "classes" | "className" | "sx" | "form" | "label" | "slot" | "style" | "title" | "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" | "component" | "name" | "size" | "type" | "value" | "icon" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | keyof import('react').RefAttributes<HTMLButtonElement> | "readOnly" | "required" | "inputProps" | "inputRef" | "checkedIcon" | "labelPlacement"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
61
+ export declare const PanelSwitchStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/Switch/types').SwitchProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "color" | "content" | "translate" | "error" | "action" | "classes" | "className" | "sx" | "form" | "label" | "slot" | "style" | "title" | "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" | "component" | "name" | "size" | "type" | "variant" | "value" | "icon" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | keyof import('react').RefAttributes<HTMLButtonElement> | "readOnly" | "showIcon" | "required" | "inputProps" | "inputRef" | "checkedIcon" | "labelPlacement" | "showStartText" | "startText" | "showDescription" | "descriptionText" | "showEndText" | "endText"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
62
62
  ownerState?: (Partial<import('..').DevicesPickerOwnerState> & Record<string, unknown>) | undefined;
63
63
  }, {}, {}>;
64
64
  export declare const PanelListStyled: import('@emotion/styled').StyledComponent<Pick<import('../..').CheckableListProps, keyof import('../..').CheckableListProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
@@ -2,7 +2,7 @@ import { SwitchProps } from './types';
2
2
  /**
3
3
  * Extended Switch component built on top of MUI Switch.
4
4
  * Supports an optional inline label with configurable placement, error state, skeleton mode,
5
- * and ownerState-driven styling.
5
+ * Presentation variants, optional icon/content slots, and ownerState-driven styling.
6
6
  * @example
7
7
  * ```tsx
8
8
  * <Switch size="medium" label="Enable notifications" checked={true} />
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Switch/Switch.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAC;AAOxD;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,wHAsFlB,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Switch/Switch.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAC;AAiBxD;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,wHAiOlB,CAAC"}
@@ -1,82 +1,165 @@
1
- import { jsx as e, jsxs as c, Fragment as m } from "@emotion/react/jsx-runtime";
2
- import { forwardRef as g, useId as z } from "react";
3
- import { useModuleSkeleton as R } from "@m4l/core";
4
- import { useComponentSize as x } from "../../../../hooks/useComponentSize/index.js";
5
- import { getComponentSlotRoot as E } from "../../../../utils/getComponentSlotRoot.js";
6
- import { SWITCH_CLASSES as L, SWITCH_KEY_COMPONENT as M } from "./constants.js";
7
- import O from "clsx";
8
- import { getOptionLabelColor as P } from "../../../../utils/getOptionLabelColor.js";
9
- import { SwitchRootStyled as T, MUISwitchStyled as _, SkeletonStyled as S, LabelStyled as j } from "./slots/SwitchSlots.js";
10
- const B = g(
11
- (p, u) => {
1
+ import { jsx as e, jsxs as c, Fragment as S } from "@emotion/react/jsx-runtime";
2
+ import { forwardRef as X, useId as Z } from "react";
3
+ import { useModuleSkeleton as ee } from "@m4l/core";
4
+ import { DesignPatronumOutlined as te } from "@m4l/icons";
5
+ import { useComponentSize as oe } from "../../../../hooks/useComponentSize/index.js";
6
+ import { getComponentSlotRoot as ne } from "../../../../utils/getComponentSlotRoot.js";
7
+ import { SWITCH_CLASSES as B, SWITCH_KEY_COMPONENT as ae } from "./constants.js";
8
+ import le from "clsx";
9
+ import { getOptionLabelColor as x } from "../../../../utils/getOptionLabelColor.js";
10
+ import { MUISwitchStyled as se, SwitchRootStyled as ie, IconSurfaceStyled as re, IconStyled as ce, ContentStyled as L, EndLabelStyled as de, SkeletonStyled as l, LabelStyled as P, DescriptionStyled as he } from "./slots/SwitchSlots.js";
11
+ const ye = X(
12
+ (D, $) => {
12
13
  const {
13
- className: b,
14
- size: h = "medium",
14
+ className: R,
15
+ size: F = "medium",
15
16
  disabled: t,
16
- color: f = "default",
17
- error: n,
18
- checked: r = !1,
19
- label: o,
20
- labelPlacement: i = "end",
21
- onChange: w,
22
- value: k,
23
- id: C,
24
- ...v
25
- } = p, { currentSize: s } = x(h), y = R(), I = E(M), N = z(), l = C || N, a = {
17
+ color: O = "default",
18
+ error: w,
19
+ checked: s = !1,
20
+ label: d,
21
+ labelPlacement: y = "end",
22
+ onChange: M,
23
+ value: _,
24
+ id: j,
25
+ inputProps: H,
26
+ variant: u = "text",
27
+ showIcon: I,
28
+ icon: b,
29
+ showStartText: T,
30
+ startText: E,
31
+ showDescription: N,
32
+ descriptionText: m,
33
+ showEndText: C,
34
+ endText: p,
35
+ ...W
36
+ } = D, { currentSize: h } = oe(F), A = ee(), K = ne(ae), U = Z(), n = j || U, a = u !== "text" || I !== void 0 || b !== void 0 || T !== void 0 || E !== void 0 || N !== void 0 || m !== void 0 || C !== void 0 || p !== void 0, v = E ?? d, f = I ?? !!b, Y = T ?? !!v, q = N ?? !!m, G = C ?? !!p, J = b ?? /* @__PURE__ */ e(te, {}), i = a && Y && !!v, r = a && q && !!m, k = a && G && !!p, o = {
26
37
  disabled: t,
27
- color: f,
28
- error: n,
29
- size: s,
30
- checked: r
31
- }, d = o ? /* @__PURE__ */ e(
32
- j,
38
+ color: O,
39
+ error: w,
40
+ size: h,
41
+ checked: s,
42
+ variant: u,
43
+ hasIcon: a && f,
44
+ hasStartText: i,
45
+ hasDescription: r,
46
+ hasEndText: k,
47
+ hasEnhancedLayout: a
48
+ }, g = d ? /* @__PURE__ */ e(
49
+ P,
33
50
  {
34
- id: `${l}-label`,
51
+ id: `${n}-label`,
35
52
  component: "label",
36
- htmlFor: l,
53
+ htmlFor: n,
37
54
  variant: "body",
38
- color: P(r, t),
39
- ownerState: { ...a },
40
- size: s,
55
+ color: x(s, t),
56
+ ownerState: { ...o },
57
+ size: h,
41
58
  disabled: t,
42
59
  ellipsis: !0,
43
- children: o
60
+ children: d
44
61
  }
45
- ) : null;
62
+ ) : null, Q = a ? /* @__PURE__ */ c(S, { children: [
63
+ i && /* @__PURE__ */ e(
64
+ P,
65
+ {
66
+ id: `${n}-label`,
67
+ component: "label",
68
+ htmlFor: n,
69
+ variant: "body",
70
+ color: x(s, t),
71
+ ownerState: { ...o },
72
+ size: h,
73
+ disabled: t,
74
+ ellipsis: !0,
75
+ children: v
76
+ }
77
+ ),
78
+ r && /* @__PURE__ */ e(
79
+ he,
80
+ {
81
+ id: `${n}-description`,
82
+ component: "span",
83
+ variant: "microSlim",
84
+ fontFamily: "Inter",
85
+ color: u === "contained" && s ? "text.disabled" : "text.secondary",
86
+ ownerState: { ...o },
87
+ size: h,
88
+ disabled: t,
89
+ children: m
90
+ }
91
+ )
92
+ ] }) : null, V = {
93
+ ...w ? { "aria-invalid": "true" } : {},
94
+ ...i ? { "aria-labelledby": `${n}-label` } : !a && d ? { "aria-labelledby": `${n}-label` } : {},
95
+ ...r ? { "aria-describedby": `${n}-description` } : {},
96
+ ...H
97
+ }, z = /* @__PURE__ */ e(
98
+ se,
99
+ {
100
+ ref: $,
101
+ id: n,
102
+ ownerState: { ...o },
103
+ disableRipple: !0,
104
+ checked: s,
105
+ disabled: t,
106
+ inputProps: V,
107
+ value: _,
108
+ onChange: M,
109
+ ...W
110
+ }
111
+ );
46
112
  return /* @__PURE__ */ e(
47
- T,
113
+ ie,
48
114
  {
49
- ownerState: { ...a },
50
- className: O(b, I),
51
- children: y ? /* @__PURE__ */ c(m, { children: [
52
- /* @__PURE__ */ e(S, { "data-testid": "switch-skeleton", variant: "rounded", className: L.skeleton }),
53
- o && /* @__PURE__ */ e(S, { "data-testid": "switch-skeleton-label", variant: "rectangular", className: "switchSkeletonLabel" })
54
- ] }) : /* @__PURE__ */ c(m, { children: [
55
- i === "start" && d,
56
- /* @__PURE__ */ e(
57
- _,
115
+ ownerState: { ...o },
116
+ className: le(R, K),
117
+ children: A ? a ? /* @__PURE__ */ c(S, { children: [
118
+ f && /* @__PURE__ */ e(l, { "data-testid": "switch-skeleton-icon", variant: "rounded", className: "switchSkeletonIcon" }),
119
+ (i || r) && /* @__PURE__ */ c(L, { ownerState: { ...o }, children: [
120
+ i && /* @__PURE__ */ e(l, { "data-testid": "switch-skeleton-label", variant: "rectangular", className: "switchSkeletonLabel" }),
121
+ r && /* @__PURE__ */ e(l, { "data-testid": "switch-skeleton-description", variant: "rectangular", className: "switchSkeletonDescription" })
122
+ ] }),
123
+ /* @__PURE__ */ e(l, { "data-testid": "switch-skeleton", variant: "rounded", className: B.skeleton }),
124
+ k && /* @__PURE__ */ e(l, { "data-testid": "switch-skeleton-end-label", variant: "rectangular", className: "switchSkeletonEndLabel" })
125
+ ] }) : /* @__PURE__ */ c(S, { children: [
126
+ /* @__PURE__ */ e(l, { "data-testid": "switch-skeleton", variant: "rounded", className: B.skeleton }),
127
+ d && /* @__PURE__ */ e(l, { "data-testid": "switch-skeleton-label", variant: "rectangular", className: "switchSkeletonLabel" })
128
+ ] }) : a ? /* @__PURE__ */ c(S, { children: [
129
+ f && /* @__PURE__ */ e(re, { ownerState: { ...o }, "data-testid": "switch-icon-surface", children: /* @__PURE__ */ e(
130
+ ce,
131
+ {
132
+ ownerState: { ...o },
133
+ src: J,
134
+ size: "small",
135
+ color: w ? "chips.error.contained.color" : "chips.default.contained.color",
136
+ disabled: t
137
+ }
138
+ ) }),
139
+ (i || r) && /* @__PURE__ */ e(L, { ownerState: { ...o }, children: Q }),
140
+ z,
141
+ k && /* @__PURE__ */ e(
142
+ de,
58
143
  {
59
- ref: u,
60
- id: l,
61
- ownerState: { ...a },
62
- disableRipple: !0,
63
- checked: r,
144
+ component: "span",
145
+ variant: "body",
146
+ color: x(s, t),
147
+ ownerState: { ...o },
148
+ size: h,
64
149
  disabled: t,
65
- inputProps: {
66
- "aria-invalid": n ? "true" : void 0,
67
- ...o && { "aria-labelledby": `${l}-label` }
68
- },
69
- value: k,
70
- onChange: w,
71
- ...v
150
+ ellipsis: !0,
151
+ children: p
72
152
  }
73
- ),
74
- i === "end" && d
153
+ )
154
+ ] }) : /* @__PURE__ */ c(S, { children: [
155
+ y === "start" && g,
156
+ z,
157
+ y === "end" && g
75
158
  ] })
76
159
  }
77
160
  );
78
161
  }
79
162
  );
80
163
  export {
81
- B as Switch
164
+ ye as Switch
82
165
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Switch/Switch.styles.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAIvC,eAAO,MAAM,YAAY,EAAE,YA6J1B,CAAC"}
1
+ {"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Switch/Switch.styles.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAIvC,eAAO,MAAM,YAAY,EAAE,YA8O1B,CAAC"}
@@ -1,26 +1,40 @@
1
- import { SWITCH_CLASSES as o } from "./constants.js";
2
- import { getSizeStyles as p } from "../../../../utils/getSizeStyles/getSizeStyles.js";
3
- const s = {
1
+ import { SWITCH_CLASSES as s } from "./constants.js";
2
+ import { getSizeStyles as o } from "../../../../utils/getSizeStyles/getSizeStyles.js";
3
+ const d = {
4
4
  /** Root container styles: flex row, centered, with gap between thumb and label. */
5
- root: ({ theme: a }) => ({
6
- display: "flex",
7
- alignItems: "center",
8
- outline: "none",
9
- overflow: "visible",
10
- boxSizing: "border-box",
11
- gap: a.vars.size.baseSpacings["sp2-5"],
12
- width: "fit-content",
13
- cursor: "pointer"
14
- }),
5
+ root: ({ theme: a, ownerState: i }) => {
6
+ const r = i?.variant || "text";
7
+ return {
8
+ display: "flex",
9
+ alignItems: "center",
10
+ justifyContent: i?.hasEnhancedLayout ? "center" : void 0,
11
+ outline: "none",
12
+ overflow: "visible",
13
+ boxSizing: "border-box",
14
+ gap: a.vars.size.baseSpacings["sp2-5"],
15
+ width: "fit-content",
16
+ maxWidth: "100%",
17
+ minWidth: 0,
18
+ cursor: i?.disabled ? "default" : "pointer",
19
+ ...r !== "text" && {
20
+ padding: a.vars.size.baseSpacings.sp2,
21
+ border: `1px solid ${i?.disabled ? a.vars.palette.border.disabled : a.vars.palette.border.default}`,
22
+ borderRadius: a.vars.size.borderRadius.r2,
23
+ ...r === "contained" && {
24
+ backgroundColor: a.vars.palette.default.enabledOpacity
25
+ }
26
+ }
27
+ };
28
+ },
15
29
  /** MUI Switch element styles: track, thumb, hover/active/focus rings, and checked/disabled states. */
16
- muiSwitch: ({ theme: a, ownerState: e }) => {
17
- const r = e?.error, t = e?.size || "medium", { height: i } = p(a, t, "action");
30
+ muiSwitch: ({ theme: a, ownerState: i }) => {
31
+ const r = i?.error, e = i?.size || "medium", { height: t } = o(a, e, "action");
18
32
  return {
19
33
  overflow: "visible",
20
34
  padding: 0,
21
35
  // Root = track: w = action × 1.133 (27.2/24), h = action × 0.667 (16/24)
22
- width: `calc(${i} * 1.133)`,
23
- height: `calc(${i} * 0.667)`,
36
+ width: `calc(${t} * 1.133)`,
37
+ height: `calc(${t} * 0.667)`,
24
38
  // Track — pill completa, llena el root
25
39
  "& .MuiSwitch-track": {
26
40
  width: "100%",
@@ -34,10 +48,10 @@ const s = {
34
48
  // SwitchBase — action×action, centrado sobre track (overflow -0.167 × action = -4px)
35
49
  "& .MuiSwitch-switchBase": {
36
50
  padding: 0,
37
- width: i,
38
- height: i,
39
- top: `calc(${i} * -0.167)`,
40
- left: `calc(${i} * -0.167)`,
51
+ width: t,
52
+ height: t,
53
+ top: `calc(${t} * -0.167)`,
54
+ left: `calc(${t} * -0.167)`,
41
55
  backgroundColor: "transparent",
42
56
  // Hover — ring via box-shadow en el thumb (unchecked)
43
57
  "&:hover .MuiSwitch-thumb": {
@@ -53,7 +67,7 @@ const s = {
53
67
  },
54
68
  // Checked: translateX 0.471 × action (11.3/24)
55
69
  "&.Mui-checked": {
56
- transform: `translateX(calc(${i} * 0.471))`,
70
+ transform: `translateX(calc(${t} * 0.471))`,
57
71
  // Track — (primary/error)ownerstate/palettecolor/selectedopacity
58
72
  "& + .MuiSwitch-track": {
59
73
  backgroundColor: r ? a.vars.palette.error.selectedOpacity : a.vars.palette.primary.selectedOpacity,
@@ -73,67 +87,125 @@ const s = {
73
87
  // Active checked
74
88
  "&:active .MuiSwitch-thumb": {
75
89
  boxShadow: `0px 0px 0px 6px ${r ? a.vars.palette.error.activeOpacity : a.vars.palette.primary.activeOpacity}, 0px 1px 4px 0px rgba(0, 0, 0, 0.15)`
76
- },
77
- // Disabled unchecked — track: default.enabledOpacity, thumb faded
78
- "&.Mui-disabled + .MuiSwitch-track": {
79
- backgroundColor: r ? a.vars.palette.error.enabledOpacity : a.vars.palette.default.enabledOpacity,
80
- opacity: 1
81
- },
82
- "&.Mui-disabled .MuiSwitch-thumb": {
83
- opacity: 0.38
84
- },
85
- // Disabled checked — track: primary.enabledOpacity (rgba(0,100,255,0.08))
86
- "&.Mui-disabled.Mui-checked + .MuiSwitch-track": {
87
- backgroundColor: r ? a.vars.palette.error.enabledOpacity : a.vars.palette.primary.enabledOpacity,
88
- opacity: 1
89
- },
90
- "&.Mui-disabled.Mui-checked .MuiSwitch-thumb": {
91
- backgroundColor: r ? a.vars.palette.error.enabled : a.vars.palette.primary.enabled,
92
- opacity: 0.38
93
90
  }
91
+ },
92
+ // Disabled unchecked — track: default.enabledOpacity, thumb faded.
93
+ "&.Mui-disabled + .MuiSwitch-track": {
94
+ backgroundColor: r ? a.vars.palette.error.enabledOpacity : a.vars.palette.default.enabledOpacity,
95
+ opacity: 1
96
+ },
97
+ "&.Mui-disabled .MuiSwitch-thumb": {
98
+ opacity: 0.38
99
+ },
100
+ // Disabled checked — track: primary.enabledOpacity (rgba(0,100,255,0.08)).
101
+ "&.Mui-disabled.Mui-checked + .MuiSwitch-track": {
102
+ backgroundColor: r ? a.vars.palette.error.enabledOpacity : a.vars.palette.primary.enabledOpacity,
103
+ opacity: 1
104
+ },
105
+ "&.Mui-disabled.Mui-checked .MuiSwitch-thumb": {
106
+ backgroundColor: r ? a.vars.palette.error.enabled : a.vars.palette.primary.enabled,
107
+ opacity: 0.38
94
108
  }
95
109
  },
96
110
  // Thumb — Ellipse 3: 12.8px (action × 0.533), margin 5.6px (action × 0.233)
97
111
  // unchecked: text.secondary token | checked: palette.primary.enabled (#0064FF)
98
112
  // Posición unchecked: 1.6px desde borde track | checked: ~13px desde borde izq
99
113
  "& .MuiSwitch-thumb": {
100
- width: `calc(${i} * 0.533)`,
101
- height: `calc(${i} * 0.533)`,
102
- margin: `calc(${i} * 0.233)`,
114
+ width: `calc(${t} * 0.533)`,
115
+ height: `calc(${t} * 0.533)`,
116
+ margin: `calc(${t} * 0.233)`,
103
117
  backgroundColor: a.vars.palette.text.secondary,
104
118
  borderRadius: "50%",
105
119
  boxShadow: "inset 0px 2.4px 3.2px 0px rgba(255, 255, 255, 0.16)",
106
120
  filter: "drop-shadow(0px 1.6px 3.2px rgba(0, 0, 0, 0.16))"
107
121
  },
108
- ...e?.disabled && {
122
+ ...i?.disabled && {
109
123
  pointerEvents: "none"
110
124
  }
111
125
  };
112
126
  },
127
+ /** Content column used by the optional title and description. */
128
+ content: ({ theme: a }) => ({
129
+ display: "flex",
130
+ flex: "1 1 auto",
131
+ flexDirection: "column",
132
+ alignItems: "flex-start",
133
+ justifyContent: "center",
134
+ gap: a.vars.size.baseSpacings["sp0-5"],
135
+ minWidth: 0
136
+ }),
137
+ /** Icon surface matching the leading-icon treatment. */
138
+ iconSurface: ({ theme: a, ownerState: i }) => ({
139
+ display: "flex",
140
+ alignItems: "center",
141
+ justifyContent: "center",
142
+ flexShrink: 0,
143
+ width: a.vars.size.baseSpacings.sp6,
144
+ height: a.vars.size.baseSpacings.sp6,
145
+ padding: a.vars.size.baseSpacings.sp1,
146
+ borderRadius: a.vars.size.borderRadius.r2,
147
+ backgroundColor: i?.error ? a.vars.palette.chips.error.contained.backgroundColor : a.vars.palette.chips.default.contained.backgroundColor
148
+ }),
149
+ /** Leading icon sizing and disabled treatment. */
150
+ icon: ({ ownerState: a }) => ({
151
+ flexShrink: 0,
152
+ ...a?.disabled && { opacity: 0.6 }
153
+ }),
154
+ /** Inline label styles for the legacy text presentation. */
113
155
  label: () => ({
114
- cursor: "inherit"
156
+ cursor: "inherit",
157
+ minWidth: 0
158
+ }),
159
+ /** Secondary copy shown below the Switch title. */
160
+ description: () => ({
161
+ cursor: "inherit",
162
+ minWidth: 0,
163
+ maxWidth: "100%",
164
+ whiteSpace: "normal",
165
+ wordBreak: "break-word"
166
+ }),
167
+ /** Optional value text shown after the switch control. */
168
+ endLabel: () => ({
169
+ cursor: "inherit",
170
+ flexShrink: 0,
171
+ whiteSpace: "nowrap"
115
172
  }),
116
173
  /** Skeleton loading state styles for the switch track and optional label. */
117
- skeleton: ({ theme: a, ownerState: e }) => {
118
- const r = e?.size || "medium", { height: t } = p(a, r, "action");
174
+ skeleton: ({ theme: a, ownerState: i }) => {
175
+ const r = i?.size || "medium", { height: e } = o(a, r, "action");
119
176
  return {
120
177
  borderRadius: a.vars.size.borderRadius.r1,
121
178
  backgroundColor: a.vars.palette?.skeleton.default,
122
179
  // Label skeleton: ancho fijo aproximado al texto, alto = body typography
123
180
  "&.switchSkeletonLabel": {
124
- width: `calc(${t} * 2.5)`,
125
- height: `calc(${t} * 0.467)`,
181
+ width: `calc(${e} * 2.5)`,
182
+ height: `calc(${e} * 0.467)`,
183
+ borderRadius: a.vars.size.borderRadius.r1
184
+ },
185
+ "&.switchSkeletonDescription": {
186
+ width: `calc(${e} * 3.75)`,
187
+ height: `calc(${e} * 0.4)`,
126
188
  borderRadius: a.vars.size.borderRadius.r1
127
189
  },
190
+ "&.switchSkeletonEndLabel": {
191
+ width: `calc(${e} * 1.5)`,
192
+ height: `calc(${e} * 0.467)`,
193
+ borderRadius: a.vars.size.borderRadius.r1
194
+ },
195
+ "&.switchSkeletonIcon": {
196
+ width: `calc(${e})`,
197
+ height: `calc(${e})`,
198
+ borderRadius: a.vars.size.borderRadius.r2
199
+ },
128
200
  // Switch skeleton: mismas proporciones que el track real (action × 1.133 × 0.667)
129
- [`&.${o.skeleton}`]: {
130
- width: `calc(${t} * 1.133)`,
131
- height: `calc(${t} * 0.667)`,
201
+ [`&.${s.skeleton}`]: {
202
+ width: `calc(${e} * 1.133)`,
203
+ height: `calc(${e} * 0.667)`,
132
204
  borderRadius: "80px"
133
205
  }
134
206
  };
135
207
  }
136
208
  };
137
209
  export {
138
- s as switchStyles
210
+ d as switchStyles
139
211
  };
@@ -1,3 +1,3 @@
1
1
  export declare const SWITCH_KEY_COMPONENT = "M4LSwitch";
2
- export declare const SWITCH_CLASSES: Record<"root" | "skeleton" | "label" | "muiSwitch", string>;
2
+ export declare const SWITCH_CLASSES: Record<"root" | "content" | "skeleton" | "label" | "description" | "icon" | "muiSwitch" | "iconSurface" | "endLabel", string>;
3
3
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Switch/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAEhD,eAAO,MAAM,cAAc,6DAAyD,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Switch/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAEhD,eAAO,MAAM,cAAc,+HAAyD,CAAC"}
@@ -2,6 +2,11 @@ export declare enum SwitchSlots {
2
2
  root = "root",
3
3
  muiSwitch = "muiSwitch",
4
4
  label = "label",
5
+ content = "content",
6
+ iconSurface = "iconSurface",
7
+ icon = "icon",
8
+ description = "description",
9
+ endLabel = "endLabel",
5
10
  skeleton = "skeleton"
6
11
  }
7
12
  //# sourceMappingURL=SwitchEnum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/extended/mui/Switch/slots/SwitchEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB"}
1
+ {"version":3,"file":"SwitchEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/extended/mui/Switch/slots/SwitchEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB"}
@@ -1,4 +1,4 @@
1
- var r = /* @__PURE__ */ ((e) => (e.root = "root", e.muiSwitch = "muiSwitch", e.label = "label", e.skeleton = "skeleton", e))(r || {});
1
+ var n = /* @__PURE__ */ ((e) => (e.root = "root", e.muiSwitch = "muiSwitch", e.label = "label", e.content = "content", e.iconSurface = "iconSurface", e.icon = "icon", e.description = "description", e.endLabel = "endLabel", e.skeleton = "skeleton", e))(n || {});
2
2
  export {
3
- r as SwitchSlots
3
+ n as SwitchSlots
4
4
  };
@@ -7,6 +7,21 @@ export declare const MUISwitchStyled: import('@emotion/styled').StyledComponent<
7
7
  export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('@m4l/base').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "classes" | "children" | "className" | "sx" | "p" | "slot" | "style" | "title" | "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" | "component" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "size" | "variant" | "dataTestid" | "paragraph" | "disabled" | "skeletonWidth" | "ellipsis" | "align" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonRows" | "htmlFor" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
8
8
  ownerState?: (Partial<import('../types').SwitchOwnerState> & Record<string, unknown>) | undefined;
9
9
  }, {}, {}>;
10
+ export declare const ContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
11
+ ownerState?: (Partial<import('../types').SwitchOwnerState> & Record<string, unknown>) | undefined;
12
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
13
+ export declare const IconSurfaceStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
14
+ ownerState?: (Partial<import('../types').SwitchOwnerState> & Record<string, unknown>) | undefined;
15
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import('react').ClassAttributes<HTMLSpanElement> | keyof import('react').HTMLAttributes<HTMLSpanElement>>, {}>;
16
+ export declare const IconStyled: 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> & {
17
+ ownerState?: (Partial<import('../types').SwitchOwnerState> & Record<string, unknown>) | undefined;
18
+ }, {}, {}>;
19
+ export declare const DescriptionStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('@m4l/base').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "classes" | "children" | "className" | "sx" | "p" | "slot" | "style" | "title" | "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" | "component" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "size" | "variant" | "dataTestid" | "paragraph" | "disabled" | "skeletonWidth" | "ellipsis" | "align" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonRows" | "htmlFor" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
20
+ ownerState?: (Partial<import('../types').SwitchOwnerState> & Record<string, unknown>) | undefined;
21
+ }, {}, {}>;
22
+ export declare const EndLabelStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('@m4l/base').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "classes" | "children" | "className" | "sx" | "p" | "slot" | "style" | "title" | "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" | "component" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "size" | "variant" | "dataTestid" | "paragraph" | "disabled" | "skeletonWidth" | "ellipsis" | "align" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonRows" | "htmlFor" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
23
+ ownerState?: (Partial<import('../types').SwitchOwnerState> & Record<string, unknown>) | undefined;
24
+ }, {}, {}>;
10
25
  export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SkeletonOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "height" | "width" | "animation" | "classes" | "children" | "className" | "sx" | "style" | "variant">, "color" | "content" | "height" | "translate" | "width" | "animation" | "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" | "variant"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
11
26
  ownerState?: (Partial<import('../types').SwitchOwnerState> & Record<string, unknown>) | undefined;
12
27
  }, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchSlots.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/extended/mui/Switch/slots/SwitchSlots.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB;;6NAGR,CAAC;AAEtB,eAAO,MAAM,eAAe;;UAGF,CAAC;AAE3B,eAAO,MAAM,WAAW;;UAGF,CAAC;AAEvB,eAAO,MAAM,cAAc;;UAGF,CAAC"}
1
+ {"version":3,"file":"SwitchSlots.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/components/src/components/extended/mui/Switch/slots/SwitchSlots.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;;6NAGR,CAAC;AAEtB,eAAO,MAAM,eAAe;;UAGF,CAAC;AAE3B,eAAO,MAAM,WAAW;;UAGF,CAAC;AAEvB,eAAO,MAAM,aAAa;;6NAGF,CAAC;AAEzB,eAAO,MAAM,iBAAiB;;iOAGF,CAAC;AAE7B,eAAO,MAAM,UAAU;;UAGF,CAAC;AAEtB,eAAO,MAAM,iBAAiB;;UAGF,CAAC;AAE7B,eAAO,MAAM,cAAc;;UAGF,CAAC;AAE1B,eAAO,MAAM,cAAc;;UAGF,CAAC"}
@@ -1,25 +1,46 @@
1
1
  import { styled as t } from "@mui/material/styles";
2
- import { Switch as m, Skeleton as i } from "@mui/material";
2
+ import { Icon as c } from "@m4l/base";
3
+ import { Switch as i, Skeleton as s } from "@mui/material";
3
4
  import { SwitchSlots as o } from "./SwitchEnum.js";
4
5
  import { SWITCH_KEY_COMPONENT as e } from "../constants.js";
5
- import { switchStyles as l } from "../Switch.styles.js";
6
- import { Typography as r } from "../../Typography/Typography.js";
7
- const h = t("div", {
6
+ import { switchStyles as n } from "../Switch.styles.js";
7
+ import { Typography as l } from "../../Typography/Typography.js";
8
+ const f = t("div", {
8
9
  name: e,
9
10
  slot: o.root
10
- })(l.root), y = t(m, {
11
+ })(n.root), h = t(i, {
11
12
  name: e,
12
13
  slot: o.muiSwitch
13
- })(l.muiSwitch), w = t(r, {
14
+ })(n.muiSwitch), w = t(l, {
14
15
  name: e,
15
16
  slot: o.label
16
- })(l.label), d = t(i, {
17
+ })(n.label), b = t("div", {
18
+ name: e,
19
+ slot: o.content
20
+ })(n.content), u = t("span", {
21
+ name: e,
22
+ slot: o.iconSurface
23
+ })(n.iconSurface), I = t(c, {
24
+ name: e,
25
+ slot: o.icon
26
+ })(n.icon), k = t(l, {
27
+ name: e,
28
+ slot: o.description
29
+ })(n.description), L = t(l, {
30
+ name: e,
31
+ slot: o.endLabel
32
+ })(n.endLabel), C = t(s, {
17
33
  name: e,
18
34
  slot: o.skeleton
19
- })(l.skeleton);
35
+ })(n.skeleton);
20
36
  export {
37
+ b as ContentStyled,
38
+ k as DescriptionStyled,
39
+ L as EndLabelStyled,
40
+ I as IconStyled,
41
+ u as IconSurfaceStyled,
21
42
  w as LabelStyled,
22
- y as MUISwitchStyled,
23
- d as SkeletonStyled,
24
- h as SwitchRootStyled
43
+ h as MUISwitchStyled,
44
+ C as SkeletonStyled,
45
+ f as SwitchRootStyled
25
46
  };
@@ -1,8 +1,11 @@
1
1
  import { SwitchProps as MUISwitchProps, Theme } from '@mui/material';
2
+ import { IconProps } from '@m4l/base';
2
3
  import { ComponentPalletColor, Sizes } from '@m4l/styles';
3
4
  import { M4LOverridesStyleRules } from '../../../../@types/augmentations';
4
5
  import { SwitchSlots } from './slots/SwitchEnum';
5
6
  import { SWITCH_KEY_COMPONENT } from './constants';
7
+ /** Supported container presentations for the Switch component. */
8
+ export type SwitchVariant = 'text' | 'outlined' | 'contained';
6
9
  /** Props for the Switch component. */
7
10
  export interface SwitchProps extends MUISwitchProps {
8
11
  /** Optional label displayed inline next to the switch. */
@@ -15,6 +18,24 @@ export interface SwitchProps extends MUISwitchProps {
15
18
  color?: Extract<ComponentPalletColor, 'default'>;
16
19
  /** Indicates an error state. */
17
20
  error?: boolean;
21
+ /** Container presentation. Defaults to the legacy text presentation. */
22
+ variant?: SwitchVariant;
23
+ /** Whether to render the leading icon surface. */
24
+ showIcon?: boolean;
25
+ /** Optional icon source. The default Patronum icon is used when omitted. */
26
+ icon?: IconProps['src'];
27
+ /** Whether to render the main title. Defaults to whether a title is provided. */
28
+ showStartText?: boolean;
29
+ /** Main title rendered before the switch in the enhanced layout. */
30
+ startText?: string;
31
+ /** Whether to render the secondary description. */
32
+ showDescription?: boolean;
33
+ /** Secondary description rendered below the title. */
34
+ descriptionText?: string;
35
+ /** Whether to render the trailing value text. */
36
+ showEndText?: boolean;
37
+ /** Trailing value text rendered after the switch. */
38
+ endText?: string;
18
39
  }
19
40
  /** Internal owner state used by styled slots. */
20
41
  export interface SwitchOwnerState {
@@ -28,6 +49,18 @@ export interface SwitchOwnerState {
28
49
  color: Extract<ComponentPalletColor, 'default'>;
29
50
  /** Whether the switch is in an error state. */
30
51
  error?: boolean;
52
+ /** Container presentation. */
53
+ variant: SwitchVariant;
54
+ /** Whether the enhanced layout renders an icon. */
55
+ hasIcon?: boolean;
56
+ /** Whether the enhanced layout renders a title. */
57
+ hasStartText?: boolean;
58
+ /** Whether the enhanced layout renders a description. */
59
+ hasDescription?: boolean;
60
+ /** Whether the enhanced layout renders trailing text. */
61
+ hasEndText?: boolean;
62
+ /** Whether the enhanced content layout is active. */
63
+ hasEnhancedLayout?: boolean;
31
64
  }
32
65
  /** Union of slot keys for the Switch component. */
33
66
  export type SwitchSlotsType = keyof typeof SwitchSlots;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Switch/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD,sCAAsC;AACtC,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,cAAc,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACjC,0BAA0B;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C,qBAAqB;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IACjD,gCAAgC;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC/B,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0BAA0B;IAC1B,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IACzC,qBAAqB;IACrB,KAAK,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IAChD,+CAA+C;IAC/C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,mDAAmD;AACnD,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvD,iDAAiD;AACjD,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAC/C,eAAe,EACf,OAAO,oBAAoB,EAC3B,KAAK,CACN,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/Switch/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD,kEAAkE;AAClE,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,CAAC;AAE9D,sCAAsC;AACtC,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,cAAc,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACjC,0BAA0B;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C,qBAAqB;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IACjD,gCAAgC;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wEAAwE;IACxE,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IACxB,iFAAiF;IACjF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sDAAsD;IACtD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC/B,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0BAA0B;IAC1B,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IACzC,qBAAqB;IACrB,KAAK,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAC;IAChD,+CAA+C;IAC/C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,8BAA8B;IAC9B,OAAO,EAAE,aAAa,CAAC;IACvB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,yDAAyD;IACzD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,mDAAmD;AACnD,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvD,iDAAiD;AACjD,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAC/C,eAAe,EACf,OAAO,oBAAoB,EAC3B,KAAK,CACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.65.2-beta-feature-794-m4l-react-native-ui-nav-link-text-area.0",
3
+ "version": "9.65.2-beta-update-switch-component-variable.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -56,16 +56,16 @@
56
56
  "@tanstack/react-virtual": "3.13.23",
57
57
  "react-color": "2.19.3",
58
58
  "@mui/x-date-pickers": "6.20.2",
59
- "react-spinners": "0.13.8",
60
59
  "react-rnd": "10.5.2",
61
- "react-dropzone": "14.4.1",
62
60
  "react-draggable": "4.5.0",
61
+ "react-dropzone": "14.4.1",
62
+ "react-spinners": "0.13.8",
63
63
  "chart.js": "4.5.1",
64
64
  "chartjs-chart-error-bars": "4.4.5",
65
65
  "qrcode.react": "3.2.0",
66
66
  "simplebar-react": "3.2.6",
67
- "react-resizable-panels": "2.1.9",
68
67
  "react-simple-code-editor": "0.14.1",
68
+ "react-resizable-panels": "2.1.9",
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",