@moneyforward/mfui-components 3.0.0 → 3.2.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.
Files changed (42) hide show
  1. package/dist/src/DateTimeSelection/shared/BasePicker/BasePicker.d.ts +1 -1
  2. package/dist/src/DateTimeSelection/shared/BasePicker/BasePicker.js +4 -4
  3. package/dist/src/DateTimeSelection/shared/BasePicker/BasePicker.types.d.ts +1 -1
  4. package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePicker.d.ts +1 -1
  5. package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePicker.js +4 -4
  6. package/dist/src/DateTimeSelection/shared/BaseRangePicker/BaseRangePicker.types.d.ts +8 -0
  7. package/dist/src/FileBox/FileBox.js +2 -3
  8. package/dist/src/FileDropZone/FileDropZone.js +6 -7
  9. package/dist/src/Pagination/ItemsPerPage/ItemsPerPage.js +2 -2
  10. package/dist/src/Pagination/PagePicker/PagePicker.js +2 -2
  11. package/dist/src/Popover/Popover.js +1 -1
  12. package/dist/src/SelectBox/SelectBox.js +46 -8
  13. package/dist/src/SelectBox/SelectBox.types.d.ts +80 -1
  14. package/dist/src/SelectBox/hooks/useInfiniteScroll.d.ts +22 -0
  15. package/dist/src/SelectBox/hooks/useInfiniteScroll.js +65 -0
  16. package/dist/src/TextBox/TextBox.js +2 -2
  17. package/dist/src/ToggleSwitch/ToggleSwitch.d.ts +9 -0
  18. package/dist/src/ToggleSwitch/ToggleSwitch.js +32 -0
  19. package/dist/src/ToggleSwitch/ToggleSwitch.types.d.ts +6 -0
  20. package/dist/src/ToggleSwitch/ToggleSwitch.types.js +1 -0
  21. package/dist/src/ToggleSwitch/index.d.ts +2 -0
  22. package/dist/src/ToggleSwitch/index.js +2 -0
  23. package/dist/src/index.d.ts +1 -0
  24. package/dist/src/index.js +1 -0
  25. package/dist/src/shared/ClearButton/ClearButton.d.ts +4 -3
  26. package/dist/src/shared/ClearButton/ClearButton.js +14 -2
  27. package/dist/src/utilities/dom/getTargetDomNode.js +4 -2
  28. package/dist/src/utilities/dom/useFixedColumns.js +36 -10
  29. package/dist/styled-system/css/conditions.js +1 -1
  30. package/dist/styled-system/jsx/is-valid-prop.js +1 -1
  31. package/dist/styled-system/recipes/clear-button-slot-recipe.d.ts +36 -0
  32. package/dist/styled-system/recipes/clear-button-slot-recipe.js +38 -0
  33. package/dist/styled-system/recipes/index.d.ts +3 -1
  34. package/dist/styled-system/recipes/index.js +2 -0
  35. package/dist/styled-system/recipes/select-box-slot-recipe.d.ts +2 -2
  36. package/dist/styled-system/recipes/select-box-slot-recipe.js +22 -1
  37. package/dist/styled-system/recipes/toggle-switch-slot-recipe.d.ts +33 -0
  38. package/dist/styled-system/recipes/toggle-switch-slot-recipe.js +36 -0
  39. package/dist/styled-system/types/conditions.d.ts +10 -0
  40. package/dist/styles.css +256 -24
  41. package/dist/tsconfig.build.tsbuildinfo +1 -1
  42. package/package.json +1 -1
@@ -21,6 +21,7 @@ export * from './MainNavigation';
21
21
  export * from './SelectBox';
22
22
  export * from './SidePane';
23
23
  export * from './Toast';
24
+ export * from './ToggleSwitch';
24
25
  export * from './Pagination';
25
26
  export * from './Tag';
26
27
  export * from './ProgressIndicator';
package/dist/src/index.js CHANGED
@@ -21,6 +21,7 @@ export * from './MainNavigation';
21
21
  export * from './SelectBox';
22
22
  export * from './SidePane';
23
23
  export * from './Toast';
24
+ export * from './ToggleSwitch';
24
25
  export * from './Pagination';
25
26
  export * from './Tag';
26
27
  export * from './ProgressIndicator';
@@ -1,5 +1,6 @@
1
- import { type IconButtonInternalProps, type IconButtonProps } from '../../IconButton/IconButton.types';
1
+ import { type IconButtonProps } from '../../IconButton/IconButton.types';
2
+ export type ClearButtonSize = 'small' | 'default' | 'large';
2
3
  export type ClearButtonProps = Omit<IconButtonProps, 'children' | 'outlined'> & {
3
- size?: IconButtonInternalProps['size'];
4
+ size?: ClearButtonSize;
4
5
  };
5
- export declare function ClearButton({ size, 'aria-label': ariaLabel, ...iconButtonProps }: ClearButtonProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function ClearButton({ size, 'aria-label': ariaLabel, className, ...iconButtonProps }: ClearButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,18 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Close } from '@moneyforward/mfui-icons-react';
3
+ import { cx } from '../../../styled-system/css';
4
+ import { clearButtonSlotRecipe } from '../../../styled-system/recipes';
3
5
  import { InternalIconButton as IconButton } from '../../IconButton/IconButton';
4
- export function ClearButton({ size = 'default', 'aria-label': ariaLabel = '値をクリアする', ...iconButtonProps }) {
5
- return (_jsx(IconButton, { size: size, "aria-label": ariaLabel, ...iconButtonProps, children: _jsx(Close, {}) }));
6
+ /**
7
+ * Maps ClearButton sizes to the corresponding IconButton sizes.
8
+ * ClearButton supports 'large' for wrapper sizing, but IconButton only has 'small' and 'default'.
9
+ */
10
+ const iconButtonSizeMap = {
11
+ small: 'small',
12
+ default: 'default',
13
+ large: 'default',
14
+ };
15
+ export function ClearButton({ size = 'default', 'aria-label': ariaLabel = '値をクリアする', className, ...iconButtonProps }) {
16
+ const classes = clearButtonSlotRecipe({ size });
17
+ return (_jsx("div", { className: cx(classes.root, 'mfui-ClearButton__root', className), children: _jsx(IconButton, { size: iconButtonSizeMap[size], "aria-label": ariaLabel, ...iconButtonProps, children: _jsx(Close, {}) }) }));
6
18
  }
@@ -14,7 +14,7 @@ export function getTargetDomNode(fallbackTargetDOMNode, hangingElement) {
14
14
  if (fallbackTargetDOMNode) {
15
15
  return fallbackTargetDOMNode;
16
16
  }
17
- const rootNode = getRootNode(hangingElement);
17
+ const rootNode = getRootNode(hangingElement, { allowDetached: true });
18
18
  // When rootNode is not available, it means it running on server side, force assign it as HTMLElement to satisfies TypeScript
19
19
  if (!rootNode) {
20
20
  return undefined;
@@ -32,5 +32,7 @@ export function getTargetDomNode(fallbackTargetDOMNode, hangingElement) {
32
32
  if (rootNode instanceof Document) {
33
33
  return rootNode.body;
34
34
  }
35
- return rootNode;
35
+ // Element is detached from DOM (e.g., during Responsive Design Mode toggle in Chrome DevTools)
36
+ // Fall back to document.body to prevent crash
37
+ return document.body;
36
38
  }
@@ -37,19 +37,45 @@ export const useFixedColumns = ({ enableRowSelection = false, columnIndex, leftF
37
37
  if (!cellRef.current)
38
38
  return;
39
39
  const cell = cellRef.current;
40
+ const row = cell.closest('tr');
40
41
  const table = cell.closest('table');
41
- if (!table)
42
+ if (!row || !table)
42
43
  return;
43
- const tableRect = table.getBoundingClientRect();
44
- const cellRect = cell.getBoundingClientRect();
45
- // Calculate distance from left edge
46
- const leftPosition = cellRect.left - tableRect.left;
47
- // Calculate distance from right edge
48
- const rightPosition = tableRect.right - cellRect.right;
49
- setCellRect({
50
- left: leftPosition,
51
- right: rightPosition,
44
+ const calculatePosition = () => {
45
+ const cells = [...row.querySelectorAll('th, td')];
46
+ const cellIndex = cells.indexOf(cell);
47
+ if (cellIndex === -1)
48
+ return;
49
+ // Calculate left position by summing widths of previous cells
50
+ let leftPosition = 0;
51
+ for (let i = 0; i < cellIndex; i++) {
52
+ const cellElement = cells[i];
53
+ if (cellElement) {
54
+ leftPosition += cellElement.offsetWidth;
55
+ }
56
+ }
57
+ // Calculate right position by summing widths of following cells
58
+ let rightPosition = 0;
59
+ for (let i = cellIndex + 1; i < cells.length; i++) {
60
+ const cellElement = cells[i];
61
+ if (cellElement) {
62
+ rightPosition += cellElement.offsetWidth;
63
+ }
64
+ }
65
+ setCellRect({
66
+ left: leftPosition,
67
+ right: rightPosition,
68
+ });
69
+ };
70
+ calculatePosition();
71
+ // Recalculate on table resize (e.g., when content changes after sorting)
72
+ const resizeObserver = new ResizeObserver(() => {
73
+ calculatePosition();
52
74
  });
75
+ resizeObserver.observe(table);
76
+ return () => {
77
+ resizeObserver.disconnect();
78
+ };
53
79
  }, []);
54
80
  useLayoutEffect(() => {
55
81
  if (isCheckboxColumn && leftFixedColumnIndex !== undefined) {
@@ -1,5 +1,5 @@
1
1
  import { withoutSpace } from '../helpers.js';
2
- const conditionsStr = "_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_notDisabled,_notFocused,_focusable,_focusInputInside,_hasCheckboxInside,_hasDisabledCheckboxInside,_hasFocusedCheckboxInside,_hasFocusedCheckedCheckboxInside,_hasCheckedCheckboxInside,_hasRadioButtonInside,_hasFocusedRadioButtonInside,_hasFocusedCheckedRadioButtonInside,_hasDisabledRadioButtonInside,_hasCheckedRadioButtonInside,sm,smOnly,smDown,lg,lgOnly,lgDown,smToLg,base";
2
+ const conditionsStr = "_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_notDisabled,_notFocused,_focusable,_focusInputInside,_hasCheckboxInside,_hasDisabledCheckboxInside,_hasFocusedCheckboxInside,_hasFocusedCheckedCheckboxInside,_hasCheckedCheckboxInside,_hasRadioButtonInside,_hasFocusedRadioButtonInside,_hasFocusedCheckedRadioButtonInside,_hasDisabledRadioButtonInside,_hasCheckedRadioButtonInside,_hasToggleSwitchInside,_hasFocusedToggleSwitchInside,_hasFocusedCheckedToggleSwitchInside,_hasDisabledToggleSwitchInside,_hasCheckedToggleSwitchInside,sm,smOnly,smDown,lg,lgOnly,lgDown,smToLg,base";
3
3
  const conditions = new Set(conditionsStr.split(','));
4
4
  const conditionRegex = /^@|&|&$/;
5
5
  export function isCondition(value) {
@@ -1,7 +1,7 @@
1
1
  import { splitProps } from '../helpers.js';
2
2
  import { memo } from '../helpers.js';
3
3
  // src/index.ts
4
- var userGeneratedStr = "css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,bgLinear,bgRadial,bgConic,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,boxSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,WebkitTextFillColor,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,backgroundLinear,backgroundRadial,backgroundConic,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderBlockStartWidth,borderBlockEndWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,cursor,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_notDisabled,_notFocused,_focusable,_focusInputInside,_hasCheckboxInside,_hasDisabledCheckboxInside,_hasFocusedCheckboxInside,_hasFocusedCheckedCheckboxInside,_hasCheckedCheckboxInside,_hasRadioButtonInside,_hasFocusedRadioButtonInside,_hasFocusedCheckedRadioButtonInside,_hasDisabledRadioButtonInside,_hasCheckedRadioButtonInside,sm,smOnly,smDown,lg,lgOnly,lgDown,smToLg";
4
+ var userGeneratedStr = "css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,bgLinear,bgRadial,bgConic,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,boxSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,WebkitTextFillColor,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,backgroundLinear,backgroundRadial,backgroundConic,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderBlockStartWidth,borderBlockEndWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,cursor,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_notDisabled,_notFocused,_focusable,_focusInputInside,_hasCheckboxInside,_hasDisabledCheckboxInside,_hasFocusedCheckboxInside,_hasFocusedCheckedCheckboxInside,_hasCheckedCheckboxInside,_hasRadioButtonInside,_hasFocusedRadioButtonInside,_hasFocusedCheckedRadioButtonInside,_hasDisabledRadioButtonInside,_hasCheckedRadioButtonInside,_hasToggleSwitchInside,_hasFocusedToggleSwitchInside,_hasFocusedCheckedToggleSwitchInside,_hasDisabledToggleSwitchInside,_hasCheckedToggleSwitchInside,sm,smOnly,smDown,lg,lgOnly,lgDown,smToLg";
5
5
  var userGenerated = userGeneratedStr.split(",");
6
6
  var cssPropertiesStr = "WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical";
7
7
  var allCssProperties = cssPropertiesStr.split(",").concat(userGenerated);
@@ -0,0 +1,36 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface ClearButtonSlotRecipeVariant {
6
+ /**
7
+ * @default "default"
8
+ */
9
+ size: "small" | "default" | "large"
10
+ }
11
+
12
+ type ClearButtonSlotRecipeVariantMap = {
13
+ [key in keyof ClearButtonSlotRecipeVariant]: Array<ClearButtonSlotRecipeVariant[key]>
14
+ }
15
+
16
+ type ClearButtonSlotRecipeSlot = "root"
17
+
18
+ export type ClearButtonSlotRecipeVariantProps = {
19
+ [key in keyof ClearButtonSlotRecipeVariant]?: ConditionalValue<ClearButtonSlotRecipeVariant[key]> | undefined
20
+ }
21
+
22
+ export interface ClearButtonSlotRecipeRecipe {
23
+ __slot: ClearButtonSlotRecipeSlot
24
+ __type: ClearButtonSlotRecipeVariantProps
25
+ (props?: ClearButtonSlotRecipeVariantProps): Pretty<Record<ClearButtonSlotRecipeSlot, string>>
26
+ raw: (props?: ClearButtonSlotRecipeVariantProps) => ClearButtonSlotRecipeVariantProps
27
+ variantMap: ClearButtonSlotRecipeVariantMap
28
+ variantKeys: Array<keyof ClearButtonSlotRecipeVariant>
29
+ splitVariantProps<Props extends ClearButtonSlotRecipeVariantProps>(props: Props): [ClearButtonSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ClearButtonSlotRecipeVariantProps>>]
30
+ getVariantProps: (props?: ClearButtonSlotRecipeVariantProps) => ClearButtonSlotRecipeVariantProps
31
+ }
32
+
33
+ /**
34
+ * Slot class created for the MFUI ClearButton component. Adds mobile-friendly tap area on smDown.
35
+ */
36
+ export declare const clearButtonSlotRecipe: ClearButtonSlotRecipeRecipe
@@ -0,0 +1,38 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
2
+ import { createRecipe } from './create-recipe.js';
3
+ const clearButtonSlotRecipeDefaultVariants = {
4
+ "size": "default"
5
+ };
6
+ const clearButtonSlotRecipeCompoundVariants = [];
7
+ const clearButtonSlotRecipeSlotNames = [
8
+ [
9
+ "root",
10
+ "ClearButton__root"
11
+ ]
12
+ ];
13
+ const clearButtonSlotRecipeSlotFns = /* @__PURE__ */ clearButtonSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, clearButtonSlotRecipeDefaultVariants, getSlotCompoundVariant(clearButtonSlotRecipeCompoundVariants, slotName))]);
14
+ const clearButtonSlotRecipeFn = memo((props = {}) => {
15
+ return Object.fromEntries(clearButtonSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
16
+ });
17
+ const clearButtonSlotRecipeVariantKeys = [
18
+ "size"
19
+ ];
20
+ const getVariantProps = (variants) => ({ ...clearButtonSlotRecipeDefaultVariants, ...compact(variants) });
21
+ export const clearButtonSlotRecipe = /* @__PURE__ */ Object.assign(clearButtonSlotRecipeFn, {
22
+ __recipe__: false,
23
+ __name__: 'clearButtonSlotRecipe',
24
+ raw: (props) => props,
25
+ classNameMap: {},
26
+ variantKeys: clearButtonSlotRecipeVariantKeys,
27
+ variantMap: {
28
+ "size": [
29
+ "small",
30
+ "default",
31
+ "large"
32
+ ]
33
+ },
34
+ splitVariantProps(props) {
35
+ return splitProps(props, clearButtonSlotRecipeVariantKeys);
36
+ },
37
+ getVariantProps
38
+ });
@@ -12,6 +12,7 @@ export * from './dropdown-menu-divider-slot-recipe';
12
12
  export * from './dropdown-menu-heading-slot-recipe';
13
13
  export * from './dropdown-menu-item-slot-recipe';
14
14
  export * from './checkbox-slot-recipe';
15
+ export * from './clear-button-slot-recipe';
15
16
  export * from './heading-slot-recipe';
16
17
  export * from './dialog-slot-recipe';
17
18
  export * from './radio-button-slot-recipe';
@@ -86,4 +87,5 @@ export * from './month-range-picker-panel-slot-recipe';
86
87
  export * from './month-range-picker-navigation-slot-recipe';
87
88
  export * from './month-range-picker-content-slot-recipe';
88
89
  export * from './accordion-slot-recipe';
89
- export * from './split-view-slot-recipe';
90
+ export * from './split-view-slot-recipe';
91
+ export * from './toggle-switch-slot-recipe';
@@ -11,6 +11,7 @@ export * from './dropdown-menu-divider-slot-recipe.js';
11
11
  export * from './dropdown-menu-heading-slot-recipe.js';
12
12
  export * from './dropdown-menu-item-slot-recipe.js';
13
13
  export * from './checkbox-slot-recipe.js';
14
+ export * from './clear-button-slot-recipe.js';
14
15
  export * from './heading-slot-recipe.js';
15
16
  export * from './dialog-slot-recipe.js';
16
17
  export * from './radio-button-slot-recipe.js';
@@ -86,3 +87,4 @@ export * from './month-range-picker-navigation-slot-recipe.js';
86
87
  export * from './month-range-picker-content-slot-recipe.js';
87
88
  export * from './accordion-slot-recipe.js';
88
89
  export * from './split-view-slot-recipe.js';
90
+ export * from './toggle-switch-slot-recipe.js';
@@ -6,7 +6,7 @@ interface SelectBoxSlotRecipeVariant {
6
6
  /**
7
7
  * @default "medium"
8
8
  */
9
- size: "small" | "medium"
9
+ size: "small" | "medium" | "large"
10
10
  showGroupOptionDivider: boolean
11
11
  }
12
12
 
@@ -14,7 +14,7 @@ type SelectBoxSlotRecipeVariantMap = {
14
14
  [key in keyof SelectBoxSlotRecipeVariant]: Array<SelectBoxSlotRecipeVariant[key]>
15
15
  }
16
16
 
17
- type SelectBoxSlotRecipeSlot = "trigger" | "triggerWrapper" | "clearButtonWrapper" | "popover" | "menuHeader" | "optionPanel" | "scrollWrapper" | "listBox" | "listItem" | "skeletonItem" | "emptyMessage"
17
+ type SelectBoxSlotRecipeSlot = "trigger" | "triggerWrapper" | "clearButtonWrapper" | "popover" | "menuHeader" | "optionPanel" | "scrollWrapper" | "listBox" | "listItem" | "skeletonItem" | "emptyMessage" | "infiniteScrollError" | "infiniteScrollErrorMessage" | "infiniteScrollErrorButton" | "infiniteScrollErrorIcon" | "infiniteScrollLoading"
18
18
 
19
19
  export type SelectBoxSlotRecipeVariantProps = {
20
20
  [key in keyof SelectBoxSlotRecipeVariant]?: ConditionalValue<SelectBoxSlotRecipeVariant[key]> | undefined
@@ -48,6 +48,26 @@ const selectBoxSlotRecipeSlotNames = [
48
48
  [
49
49
  "emptyMessage",
50
50
  "SelectBox__emptyMessage"
51
+ ],
52
+ [
53
+ "infiniteScrollError",
54
+ "SelectBox__infiniteScrollError"
55
+ ],
56
+ [
57
+ "infiniteScrollErrorMessage",
58
+ "SelectBox__infiniteScrollErrorMessage"
59
+ ],
60
+ [
61
+ "infiniteScrollErrorButton",
62
+ "SelectBox__infiniteScrollErrorButton"
63
+ ],
64
+ [
65
+ "infiniteScrollErrorIcon",
66
+ "SelectBox__infiniteScrollErrorIcon"
67
+ ],
68
+ [
69
+ "infiniteScrollLoading",
70
+ "SelectBox__infiniteScrollLoading"
51
71
  ]
52
72
  ];
53
73
  const selectBoxSlotRecipeSlotFns = /* @__PURE__ */ selectBoxSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, selectBoxSlotRecipeDefaultVariants, getSlotCompoundVariant(selectBoxSlotRecipeCompoundVariants, slotName))]);
@@ -68,7 +88,8 @@ export const selectBoxSlotRecipe = /* @__PURE__ */ Object.assign(selectBoxSlotRe
68
88
  variantMap: {
69
89
  "size": [
70
90
  "small",
71
- "medium"
91
+ "medium",
92
+ "large"
72
93
  ],
73
94
  "showGroupOptionDivider": [
74
95
  "true",
@@ -0,0 +1,33 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface ToggleSwitchSlotRecipeVariant {
6
+
7
+ }
8
+
9
+ type ToggleSwitchSlotRecipeVariantMap = {
10
+ [key in keyof ToggleSwitchSlotRecipeVariant]: Array<ToggleSwitchSlotRecipeVariant[key]>
11
+ }
12
+
13
+ type ToggleSwitchSlotRecipeSlot = "root" | "input" | "handle"
14
+
15
+ export type ToggleSwitchSlotRecipeVariantProps = {
16
+ [key in keyof ToggleSwitchSlotRecipeVariant]?: ConditionalValue<ToggleSwitchSlotRecipeVariant[key]> | undefined
17
+ }
18
+
19
+ export interface ToggleSwitchSlotRecipeRecipe {
20
+ __slot: ToggleSwitchSlotRecipeSlot
21
+ __type: ToggleSwitchSlotRecipeVariantProps
22
+ (props?: ToggleSwitchSlotRecipeVariantProps): Pretty<Record<ToggleSwitchSlotRecipeSlot, string>>
23
+ raw: (props?: ToggleSwitchSlotRecipeVariantProps) => ToggleSwitchSlotRecipeVariantProps
24
+ variantMap: ToggleSwitchSlotRecipeVariantMap
25
+ variantKeys: Array<keyof ToggleSwitchSlotRecipeVariant>
26
+ splitVariantProps<Props extends ToggleSwitchSlotRecipeVariantProps>(props: Props): [ToggleSwitchSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ToggleSwitchSlotRecipeVariantProps>>]
27
+ getVariantProps: (props?: ToggleSwitchSlotRecipeVariantProps) => ToggleSwitchSlotRecipeVariantProps
28
+ }
29
+
30
+ /**
31
+ * Slot class created for the MFUI ToggleSwitch component.
32
+ */
33
+ export declare const toggleSwitchSlotRecipe: ToggleSwitchSlotRecipeRecipe
@@ -0,0 +1,36 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
2
+ import { createRecipe } from './create-recipe.js';
3
+ const toggleSwitchSlotRecipeDefaultVariants = {};
4
+ const toggleSwitchSlotRecipeCompoundVariants = [];
5
+ const toggleSwitchSlotRecipeSlotNames = [
6
+ [
7
+ "root",
8
+ "ToggleSwitch__root"
9
+ ],
10
+ [
11
+ "input",
12
+ "ToggleSwitch__input"
13
+ ],
14
+ [
15
+ "handle",
16
+ "ToggleSwitch__handle"
17
+ ]
18
+ ];
19
+ const toggleSwitchSlotRecipeSlotFns = /* @__PURE__ */ toggleSwitchSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, toggleSwitchSlotRecipeDefaultVariants, getSlotCompoundVariant(toggleSwitchSlotRecipeCompoundVariants, slotName))]);
20
+ const toggleSwitchSlotRecipeFn = memo((props = {}) => {
21
+ return Object.fromEntries(toggleSwitchSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]));
22
+ });
23
+ const toggleSwitchSlotRecipeVariantKeys = [];
24
+ const getVariantProps = (variants) => ({ ...toggleSwitchSlotRecipeDefaultVariants, ...compact(variants) });
25
+ export const toggleSwitchSlotRecipe = /* @__PURE__ */ Object.assign(toggleSwitchSlotRecipeFn, {
26
+ __recipe__: false,
27
+ __name__: 'toggleSwitchSlotRecipe',
28
+ raw: (props) => props,
29
+ classNameMap: {},
30
+ variantKeys: toggleSwitchSlotRecipeVariantKeys,
31
+ variantMap: {},
32
+ splitVariantProps(props) {
33
+ return splitProps(props, toggleSwitchSlotRecipeVariantKeys);
34
+ },
35
+ getVariantProps
36
+ });
@@ -244,6 +244,16 @@ export interface Conditions {
244
244
  "_hasDisabledRadioButtonInside": string
245
245
  /** `&:has(input[type="radio"]:not(:disabled):checked)` */
246
246
  "_hasCheckedRadioButtonInside": string
247
+ /** `&:has(input[type="checkbox"][role="switch"]:not(:disabled))` */
248
+ "_hasToggleSwitchInside": string
249
+ /** `&:has(input[type="checkbox"][role="switch"]:not(:disabled):focus-visible)` */
250
+ "_hasFocusedToggleSwitchInside": string
251
+ /** `&:has(input[type="checkbox"][role="switch"]:not(:disabled):focus-visible:checked)` */
252
+ "_hasFocusedCheckedToggleSwitchInside": string
253
+ /** `&:has(input[type="checkbox"][role="switch"]:disabled)` */
254
+ "_hasDisabledToggleSwitchInside": string
255
+ /** `&:has(input[type="checkbox"][role="switch"]:not(:disabled):checked)` */
256
+ "_hasCheckedToggleSwitchInside": string
247
257
  /** `@media screen and (min-width: 37.5rem)` */
248
258
  "sm": string
249
259
  /** `@media screen and (min-width: 37.5rem) and (max-width: 74.9975rem)` */