@m4l/components 9.65.2-beta-update-switch-component-variable.0 → 9.65.2-beta-feature-795-m4l-react-native-ui-indicator-flag.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" | "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> & {
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> & {
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
- * Presentation variants, optional icon/content slots, and ownerState-driven styling.
5
+ * 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":"AAIA,OAAO,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAC;AAiBxD;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,wHAiOlB,CAAC"}
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,165 +1,82 @@
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, $) => {
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) => {
13
12
  const {
14
- className: R,
15
- size: F = "medium",
13
+ className: b,
14
+ size: h = "medium",
16
15
  disabled: t,
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 = {
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 = {
37
26
  disabled: t,
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,
27
+ color: f,
28
+ error: n,
29
+ size: s,
30
+ checked: r
31
+ }, d = o ? /* @__PURE__ */ e(
32
+ j,
50
33
  {
51
- id: `${n}-label`,
34
+ id: `${l}-label`,
52
35
  component: "label",
53
- htmlFor: n,
36
+ htmlFor: l,
54
37
  variant: "body",
55
- color: x(s, t),
56
- ownerState: { ...o },
57
- size: h,
38
+ color: P(r, t),
39
+ ownerState: { ...a },
40
+ size: s,
58
41
  disabled: t,
59
42
  ellipsis: !0,
60
- children: d
43
+ children: o
61
44
  }
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
- );
45
+ ) : null;
112
46
  return /* @__PURE__ */ e(
113
- ie,
47
+ T,
114
48
  {
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,
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
+ _,
143
58
  {
144
- component: "span",
145
- variant: "body",
146
- color: x(s, t),
147
- ownerState: { ...o },
148
- size: h,
59
+ ref: u,
60
+ id: l,
61
+ ownerState: { ...a },
62
+ disableRipple: !0,
63
+ checked: r,
149
64
  disabled: t,
150
- ellipsis: !0,
151
- children: p
65
+ inputProps: {
66
+ "aria-invalid": n ? "true" : void 0,
67
+ ...o && { "aria-labelledby": `${l}-label` }
68
+ },
69
+ value: k,
70
+ onChange: w,
71
+ ...v
152
72
  }
153
- )
154
- ] }) : /* @__PURE__ */ c(S, { children: [
155
- y === "start" && g,
156
- z,
157
- y === "end" && g
73
+ ),
74
+ i === "end" && d
158
75
  ] })
159
76
  }
160
77
  );
161
78
  }
162
79
  );
163
80
  export {
164
- ye as Switch
81
+ B as Switch
165
82
  };
@@ -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,YA8O1B,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,YA6J1B,CAAC"}
@@ -1,40 +1,26 @@
1
- import { SWITCH_CLASSES as s } from "./constants.js";
2
- import { getSizeStyles as o } from "../../../../utils/getSizeStyles/getSizeStyles.js";
3
- const d = {
1
+ import { SWITCH_CLASSES as o } from "./constants.js";
2
+ import { getSizeStyles as p } from "../../../../utils/getSizeStyles/getSizeStyles.js";
3
+ const s = {
4
4
  /** Root container styles: flex row, centered, with gap between thumb and label. */
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
- },
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
+ }),
29
15
  /** MUI Switch element styles: track, thumb, hover/active/focus rings, and checked/disabled states. */
30
- muiSwitch: ({ theme: a, ownerState: i }) => {
31
- const r = i?.error, e = i?.size || "medium", { height: t } = o(a, e, "action");
16
+ muiSwitch: ({ theme: a, ownerState: e }) => {
17
+ const r = e?.error, t = e?.size || "medium", { height: i } = p(a, t, "action");
32
18
  return {
33
19
  overflow: "visible",
34
20
  padding: 0,
35
21
  // Root = track: w = action × 1.133 (27.2/24), h = action × 0.667 (16/24)
36
- width: `calc(${t} * 1.133)`,
37
- height: `calc(${t} * 0.667)`,
22
+ width: `calc(${i} * 1.133)`,
23
+ height: `calc(${i} * 0.667)`,
38
24
  // Track — pill completa, llena el root
39
25
  "& .MuiSwitch-track": {
40
26
  width: "100%",
@@ -48,10 +34,10 @@ const d = {
48
34
  // SwitchBase — action×action, centrado sobre track (overflow -0.167 × action = -4px)
49
35
  "& .MuiSwitch-switchBase": {
50
36
  padding: 0,
51
- width: t,
52
- height: t,
53
- top: `calc(${t} * -0.167)`,
54
- left: `calc(${t} * -0.167)`,
37
+ width: i,
38
+ height: i,
39
+ top: `calc(${i} * -0.167)`,
40
+ left: `calc(${i} * -0.167)`,
55
41
  backgroundColor: "transparent",
56
42
  // Hover — ring via box-shadow en el thumb (unchecked)
57
43
  "&:hover .MuiSwitch-thumb": {
@@ -67,7 +53,7 @@ const d = {
67
53
  },
68
54
  // Checked: translateX 0.471 × action (11.3/24)
69
55
  "&.Mui-checked": {
70
- transform: `translateX(calc(${t} * 0.471))`,
56
+ transform: `translateX(calc(${i} * 0.471))`,
71
57
  // Track — (primary/error)ownerstate/palettecolor/selectedopacity
72
58
  "& + .MuiSwitch-track": {
73
59
  backgroundColor: r ? a.vars.palette.error.selectedOpacity : a.vars.palette.primary.selectedOpacity,
@@ -87,125 +73,67 @@ const d = {
87
73
  // Active checked
88
74
  "&:active .MuiSwitch-thumb": {
89
75
  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
90
93
  }
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
108
94
  }
109
95
  },
110
96
  // Thumb — Ellipse 3: 12.8px (action × 0.533), margin 5.6px (action × 0.233)
111
97
  // unchecked: text.secondary token | checked: palette.primary.enabled (#0064FF)
112
98
  // Posición unchecked: 1.6px desde borde track | checked: ~13px desde borde izq
113
99
  "& .MuiSwitch-thumb": {
114
- width: `calc(${t} * 0.533)`,
115
- height: `calc(${t} * 0.533)`,
116
- margin: `calc(${t} * 0.233)`,
100
+ width: `calc(${i} * 0.533)`,
101
+ height: `calc(${i} * 0.533)`,
102
+ margin: `calc(${i} * 0.233)`,
117
103
  backgroundColor: a.vars.palette.text.secondary,
118
104
  borderRadius: "50%",
119
105
  boxShadow: "inset 0px 2.4px 3.2px 0px rgba(255, 255, 255, 0.16)",
120
106
  filter: "drop-shadow(0px 1.6px 3.2px rgba(0, 0, 0, 0.16))"
121
107
  },
122
- ...i?.disabled && {
108
+ ...e?.disabled && {
123
109
  pointerEvents: "none"
124
110
  }
125
111
  };
126
112
  },
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. */
155
113
  label: () => ({
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"
114
+ cursor: "inherit"
172
115
  }),
173
116
  /** Skeleton loading state styles for the switch track and optional label. */
174
- skeleton: ({ theme: a, ownerState: i }) => {
175
- const r = i?.size || "medium", { height: e } = o(a, r, "action");
117
+ skeleton: ({ theme: a, ownerState: e }) => {
118
+ const r = e?.size || "medium", { height: t } = p(a, r, "action");
176
119
  return {
177
120
  borderRadius: a.vars.size.borderRadius.r1,
178
121
  backgroundColor: a.vars.palette?.skeleton.default,
179
122
  // Label skeleton: ancho fijo aproximado al texto, alto = body typography
180
123
  "&.switchSkeletonLabel": {
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)`,
124
+ width: `calc(${t} * 2.5)`,
125
+ height: `calc(${t} * 0.467)`,
188
126
  borderRadius: a.vars.size.borderRadius.r1
189
127
  },
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
- },
200
128
  // Switch skeleton: mismas proporciones que el track real (action × 1.133 × 0.667)
201
- [`&.${s.skeleton}`]: {
202
- width: `calc(${e} * 1.133)`,
203
- height: `calc(${e} * 0.667)`,
129
+ [`&.${o.skeleton}`]: {
130
+ width: `calc(${t} * 1.133)`,
131
+ height: `calc(${t} * 0.667)`,
204
132
  borderRadius: "80px"
205
133
  }
206
134
  };
207
135
  }
208
136
  };
209
137
  export {
210
- d as switchStyles
138
+ s as switchStyles
211
139
  };
@@ -1,3 +1,3 @@
1
1
  export declare const SWITCH_KEY_COMPONENT = "M4LSwitch";
2
- export declare const SWITCH_CLASSES: Record<"root" | "content" | "skeleton" | "label" | "description" | "icon" | "muiSwitch" | "iconSurface" | "endLabel", string>;
2
+ export declare const SWITCH_CLASSES: Record<"root" | "skeleton" | "label" | "muiSwitch", 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,+HAAyD,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,6DAAyD,CAAC"}
@@ -2,11 +2,6 @@ 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",
10
5
  skeleton = "skeleton"
11
6
  }
12
7
  //# 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,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,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,QAAQ,aAAa;CACtB"}
@@ -1,4 +1,4 @@
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 || {});
1
+ var r = /* @__PURE__ */ ((e) => (e.root = "root", e.muiSwitch = "muiSwitch", e.label = "label", e.skeleton = "skeleton", e))(r || {});
2
2
  export {
3
- n as SwitchSlots
3
+ r as SwitchSlots
4
4
  };
@@ -7,21 +7,6 @@ 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
- }, {}, {}>;
25
10
  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> & {
26
11
  ownerState?: (Partial<import('../types').SwitchOwnerState> & Record<string, unknown>) | undefined;
27
12
  }, {}, {}>;
@@ -1 +1 @@
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
+ {"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,46 +1,25 @@
1
1
  import { styled as t } from "@mui/material/styles";
2
- import { Icon as c } from "@m4l/base";
3
- import { Switch as i, Skeleton as s } from "@mui/material";
2
+ import { Switch as m, Skeleton as i } from "@mui/material";
4
3
  import { SwitchSlots as o } from "./SwitchEnum.js";
5
4
  import { SWITCH_KEY_COMPONENT as e } from "../constants.js";
6
- import { switchStyles as n } from "../Switch.styles.js";
7
- import { Typography as l } from "../../Typography/Typography.js";
8
- const f = t("div", {
5
+ import { switchStyles as l } from "../Switch.styles.js";
6
+ import { Typography as r } from "../../Typography/Typography.js";
7
+ const h = t("div", {
9
8
  name: e,
10
9
  slot: o.root
11
- })(n.root), h = t(i, {
10
+ })(l.root), y = t(m, {
12
11
  name: e,
13
12
  slot: o.muiSwitch
14
- })(n.muiSwitch), w = t(l, {
13
+ })(l.muiSwitch), w = t(r, {
15
14
  name: e,
16
15
  slot: o.label
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, {
16
+ })(l.label), d = t(i, {
33
17
  name: e,
34
18
  slot: o.skeleton
35
- })(n.skeleton);
19
+ })(l.skeleton);
36
20
  export {
37
- b as ContentStyled,
38
- k as DescriptionStyled,
39
- L as EndLabelStyled,
40
- I as IconStyled,
41
- u as IconSurfaceStyled,
42
21
  w as LabelStyled,
43
- h as MUISwitchStyled,
44
- C as SkeletonStyled,
45
- f as SwitchRootStyled
22
+ y as MUISwitchStyled,
23
+ d as SkeletonStyled,
24
+ h as SwitchRootStyled
46
25
  };
@@ -1,11 +1,8 @@
1
1
  import { SwitchProps as MUISwitchProps, Theme } from '@mui/material';
2
- import { IconProps } from '@m4l/base';
3
2
  import { ComponentPalletColor, Sizes } from '@m4l/styles';
4
3
  import { M4LOverridesStyleRules } from '../../../../@types/augmentations';
5
4
  import { SwitchSlots } from './slots/SwitchEnum';
6
5
  import { SWITCH_KEY_COMPONENT } from './constants';
7
- /** Supported container presentations for the Switch component. */
8
- export type SwitchVariant = 'text' | 'outlined' | 'contained';
9
6
  /** Props for the Switch component. */
10
7
  export interface SwitchProps extends MUISwitchProps {
11
8
  /** Optional label displayed inline next to the switch. */
@@ -18,24 +15,6 @@ export interface SwitchProps extends MUISwitchProps {
18
15
  color?: Extract<ComponentPalletColor, 'default'>;
19
16
  /** Indicates an error state. */
20
17
  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;
39
18
  }
40
19
  /** Internal owner state used by styled slots. */
41
20
  export interface SwitchOwnerState {
@@ -49,18 +28,6 @@ export interface SwitchOwnerState {
49
28
  color: Extract<ComponentPalletColor, 'default'>;
50
29
  /** Whether the switch is in an error state. */
51
30
  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;
64
31
  }
65
32
  /** Union of slot keys for the Switch component. */
66
33
  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,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"}
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 +1 @@
1
- {"version":3,"file":"TextField.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/TextField/TextField.styles.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA6B1C,eAAO,MAAM,eAAe,EAAE,eAuT7B,CAAC"}
1
+ {"version":3,"file":"TextField.styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/TextField/TextField.styles.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA6B1C,eAAO,MAAM,eAAe,EAAE,eAsT7B,CAAC"}
@@ -74,8 +74,7 @@ const s = (o, t) => o && o > 79 && o < 100 ? t.vars.palette.warning.semanticText
74
74
  },
75
75
  // Variant Contained TextField
76
76
  ...o?.variant === "contained" && {
77
- border: t.vars.size.borderStroke.actionInput,
78
- borderColor: r.borderColor,
77
+ border: 0,
79
78
  backgroundColor: t.vars.palette[o?.color || "default"][o?.error ? "toneOpacity" : "enabledOpacity"]
80
79
  },
81
80
  // Read-only state
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.65.2-beta-update-switch-component-variable.0",
3
+ "version": "9.65.2-beta-feature-795-m4l-react-native-ui-indicator-flag.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -53,24 +53,24 @@
53
53
  "@hookform/resolvers": "2.9.11",
54
54
  "nprogress": "0.2.0",
55
55
  "react-transition-group": "4.4.5",
56
- "@tanstack/react-virtual": "3.13.23",
57
56
  "react-color": "2.19.3",
58
- "@mui/x-date-pickers": "6.20.2",
59
57
  "react-rnd": "10.5.2",
58
+ "react-spinners": "0.13.8",
60
59
  "react-draggable": "4.5.0",
61
60
  "react-dropzone": "14.4.1",
62
- "react-spinners": "0.13.8",
61
+ "@mui/x-date-pickers": "6.20.2",
62
+ "@tanstack/react-virtual": "3.13.23",
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-simple-code-editor": "0.14.1",
68
67
  "react-resizable-panels": "2.1.9",
69
68
  "react-data-grid": "7.0.0-beta.47",
70
69
  "react-dnd": "16.0.1",
71
70
  "react-dnd-html5-backend": "16.0.1",
71
+ "react-simple-code-editor": "0.14.1",
72
72
  "date-fns": "2.30.0",
73
- "react-resizable": "3.1.3",
74
- "react-window": "1.8.11"
73
+ "react-window": "1.8.11",
74
+ "react-resizable": "3.1.3"
75
75
  }
76
76
  }