@basic-ui/material 1.0.0-alpha.32 → 1.0.0-alpha.34

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 (71) hide show
  1. package/build/cjs/index.js +92 -21
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/esm/BottomSheet/BottomSheet.d.ts +1 -1
  4. package/build/esm/BottomSheet/BottomSheetSurface.d.ts +1 -1
  5. package/build/esm/Button/Button.d.ts +1 -1
  6. package/build/esm/CheckBox/CheckBox.d.ts +1 -1
  7. package/build/esm/Chip/ButtonChip.d.ts +1 -1
  8. package/build/esm/Chip/ChoiceChip.d.ts +1 -1
  9. package/build/esm/Combobox/Combobox.d.ts +7 -7
  10. package/build/esm/Dialog/Dialog.d.ts +1 -1
  11. package/build/esm/Dialog/DialogBackdrop.d.ts +1 -1
  12. package/build/esm/Dialog/DialogSurface.d.ts +1 -1
  13. package/build/esm/Menu/Menu.d.ts +5 -5
  14. package/build/esm/NavRail/NavRailItem.d.ts +3 -3
  15. package/build/esm/RadioButton/RadioGroup.d.ts +1 -1
  16. package/build/esm/Select/CustomContainerExample.d.ts +3 -0
  17. package/build/esm/Select/CustomContainerExample.js +59 -0
  18. package/build/esm/Select/CustomContainerExample.js.map +1 -0
  19. package/build/esm/Select/Select.d.ts +21 -7
  20. package/build/esm/Select/Select.js +52 -10
  21. package/build/esm/Select/Select.js.map +1 -1
  22. package/build/esm/Select/context.d.ts +5 -4
  23. package/build/esm/Select/context.js +2 -1
  24. package/build/esm/Select/context.js.map +1 -1
  25. package/build/esm/Select/defaultRender.d.ts +2 -1
  26. package/build/esm/Select/defaultRender.js +33 -4
  27. package/build/esm/Select/defaultRender.js.map +1 -1
  28. package/build/esm/SelectItem/SelectItem.d.ts +7 -3
  29. package/build/esm/SelectItem/SelectItem.js +14 -3
  30. package/build/esm/SelectItem/SelectItem.js.map +1 -1
  31. package/build/esm/Slider/Slider.d.ts +6 -6
  32. package/build/esm/Snackbar/Snackbar.d.ts +1 -1
  33. package/build/esm/Switch/Switch.d.ts +1 -1
  34. package/build/esm/Tab/Tab.d.ts +1 -1
  35. package/build/esm/Tab/TabList.d.ts +1 -1
  36. package/build/esm/Tab/TabPanel.d.ts +1 -1
  37. package/build/esm/TabIndicator/TabIndicator.d.ts +1 -1
  38. package/build/esm/Table/TableHead.d.ts +1 -1
  39. package/build/esm/TextField/FilledContainer.d.ts +4 -1
  40. package/build/esm/TextField/FilledContainer.js +5 -5
  41. package/build/esm/TextField/FilledContainer.js.map +1 -1
  42. package/build/esm/TextField/TextField.d.ts +1 -1
  43. package/build/esm/ThemeExplorer/ThemeBuilder.js +13 -2
  44. package/build/esm/ThemeExplorer/ThemeBuilder.js.map +1 -1
  45. package/build/esm/ThemeExplorer/ThemeColors.js +33 -15
  46. package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
  47. package/build/esm/ThemeExplorer/components.d.ts +1 -1
  48. package/build/esm/ThemeExplorer/components.js +11 -13
  49. package/build/esm/ThemeExplorer/components.js.map +1 -1
  50. package/build/esm/ThemeExplorer/makeColorScheme.d.ts +32 -4
  51. package/build/esm/ThemeExplorer/makeColorScheme.js +41 -8
  52. package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
  53. package/build/esm/Tooltip/Tooltip.d.ts +1 -1
  54. package/build/esm/theme/theme.js +2 -2
  55. package/build/esm/theme/theme.js.map +1 -1
  56. package/build/tsconfig-build.tsbuildinfo +1 -1
  57. package/package.json +3 -3
  58. package/src/Select/CustomContainerExample.tsx +59 -0
  59. package/src/Select/Select.story.tsx +68 -69
  60. package/src/Select/Select.tsx +99 -27
  61. package/src/Select/SelectMultiple.story.tsx +215 -0
  62. package/src/Select/context.ts +5 -3
  63. package/src/Select/defaultRender.tsx +49 -0
  64. package/src/SelectItem/SelectItem.tsx +68 -46
  65. package/src/TextField/FilledContainer.tsx +6 -5
  66. package/src/ThemeExplorer/ThemeBuilder.tsx +16 -5
  67. package/src/ThemeExplorer/ThemeColors.tsx +39 -15
  68. package/src/ThemeExplorer/components.tsx +12 -20
  69. package/src/ThemeExplorer/makeColorScheme.tsx +39 -6
  70. package/src/theme/theme.ts +2 -2
  71. package/src/Select/defaultRender.ts +0 -19
@@ -6,4 +6,4 @@ export interface TabIndicatorProps extends BoxProps {
6
6
  variant: 'primary' | 'secondary';
7
7
  labelRef: RefObject<HTMLParagraphElement | null>;
8
8
  }
9
- export declare const TabIndicator: import("react").ForwardRefExoticComponent<Pick<TabIndicatorProps, "p" | "slot" | "style" | "title" | "as" | "fontFamily" | "fontSize" | "children" | "background" | "bottom" | "top" | "hidden" | "left" | "right" | "sx" | "__css" | "variant" | "tx" | "theme" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "size" | "overflow" | "overflowX" | "overflowY" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "color" | "bg" | "backgroundColor" | "opacity" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flex" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "order" | "border" | "borderX" | "borderY" | "borderWidth" | "borderTopWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStyle" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderColor" | "borderTopColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "gridGap" | "gridColumnGap" | "gridRowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat" | "position" | "zIndex" | "boxShadow" | "textShadow" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "selected" | "labelRef"> & import("react").RefAttributes<HTMLDivElement>>;
9
+ export declare const TabIndicator: import("react").ForwardRefExoticComponent<Pick<TabIndicatorProps, "children" | "bottom" | "top" | "hidden" | "left" | "right" | "as" | "sx" | "__css" | "variant" | "tx" | "theme" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "p" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "size" | "overflow" | "overflowX" | "overflowY" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "color" | "bg" | "backgroundColor" | "opacity" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flex" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "order" | "border" | "borderX" | "borderY" | "borderWidth" | "borderTopWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStyle" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderColor" | "borderTopColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "gridGap" | "gridColumnGap" | "gridRowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "background" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat" | "position" | "zIndex" | "boxShadow" | "textShadow" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "selected" | "labelRef"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { TableBodyProps } from './TableBody';
3
3
  export declare type TableHeadProps = TableBodyProps;
4
- export declare const TableHead: import("react").ForwardRefExoticComponent<Pick<TableBodyProps, "slot" | "style" | "title" | "hidden" | keyof import("..").BaseProps | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | "placeholder" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const TableHead: import("react").ForwardRefExoticComponent<Pick<TableBodyProps, "hidden" | keyof import("..").BaseProps | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,8 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { BoxProps } from '../Box';
3
+ export declare const FilledContainerOverlay: (props: {
4
+ forceActive?: boolean;
5
+ }) => JSX.Element;
3
6
  export interface FilledContainerProps extends Omit<BoxProps, 'color'> {
4
7
  children?: ReactNode;
5
8
  color?: string;
@@ -12,4 +15,4 @@ export interface FilledContainerProps extends Omit<BoxProps, 'color'> {
12
15
  forceActive?: boolean;
13
16
  leadingIcon?: boolean;
14
17
  }
15
- export declare const FilledContainer: import("react").ForwardRefExoticComponent<Pick<FilledContainerProps, "label" | "p" | "slot" | "style" | "title" | "as" | "fontFamily" | "fontSize" | "children" | "error" | "background" | "bottom" | "top" | "hidden" | "left" | "right" | "sx" | "__css" | "variant" | "tx" | "theme" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "size" | "overflow" | "overflowX" | "overflowY" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "color" | "bg" | "backgroundColor" | "opacity" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flex" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "order" | "border" | "borderX" | "borderY" | "borderWidth" | "borderTopWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStyle" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderColor" | "borderTopColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "gridGap" | "gridColumnGap" | "gridRowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat" | "position" | "zIndex" | "boxShadow" | "textShadow" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "disabled" | "leadingIcon" | "hasFocus" | "labelIsFloating" | "inputId" | "forceActive"> & import("react").RefAttributes<HTMLDivElement>>;
18
+ export declare const FilledContainer: import("react").ForwardRefExoticComponent<Pick<FilledContainerProps, "disabled" | "bottom" | "top" | "hidden" | "left" | "right" | "as" | "sx" | "__css" | "variant" | "tx" | "theme" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "p" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "size" | "overflow" | "overflowX" | "overflowY" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "color" | "bg" | "backgroundColor" | "opacity" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flex" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "order" | "border" | "borderX" | "borderY" | "borderWidth" | "borderTopWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStyle" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderColor" | "borderTopColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "gridGap" | "gridColumnGap" | "gridRowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "background" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat" | "position" | "zIndex" | "boxShadow" | "textShadow" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "hasFocus" | "label" | "labelIsFloating" | "inputId" | "error" | "forceActive" | "leadingIcon"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -14,10 +14,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
15
 
16
16
  var makeSelector = function makeSelector(state) {
17
- return "input:".concat(state, " ~ &,") + "select:".concat(state, " ~ &,") + "button:".concat(state, " ~ &,") + "textarea:".concat(state, " ~ &");
17
+ return "input:".concat(state, " ~ &,") + "select:".concat(state, " ~ &,") + "button:".concat(state, " ~ &,") + "textarea:".concat(state, " ~ &,") + "[role=\"button\"]:".concat(state, " ~ &");
18
18
  };
19
19
 
20
- var Overlay = function Overlay(props) {
20
+ export var FilledContainerOverlay = function FilledContainerOverlay(props) {
21
21
  var _extends2;
22
22
 
23
23
  var forceActive = props.forceActive;
@@ -46,7 +46,7 @@ var Overlay = function Overlay(props) {
46
46
  });
47
47
  };
48
48
 
49
- var BorderBottom = function BorderBottom() {
49
+ var FilledContainerBorderBottom = function FilledContainerBorderBottom() {
50
50
  return /*#__PURE__*/_jsx(Box, {
51
51
  __css: _defineProperty({
52
52
  position: 'absolute',
@@ -117,9 +117,9 @@ export var FilledContainer = /*#__PURE__*/forwardRef(function FilledContainer(pr
117
117
  htmlFor: inputId,
118
118
  color: active || error ? color : undefined,
119
119
  children: label
120
- }), children, /*#__PURE__*/_jsx(Overlay, {
120
+ }), children, /*#__PURE__*/_jsx(FilledContainerOverlay, {
121
121
  forceActive: active
122
- }), /*#__PURE__*/_jsx(BorderBottom, {}), /*#__PURE__*/_jsx(LineRipple, {
122
+ }), /*#__PURE__*/_jsx(FilledContainerBorderBottom, {}), /*#__PURE__*/_jsx(LineRipple, {
123
123
  active: active || error,
124
124
  color: color
125
125
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"FilledContainer.js","names":["forwardRef","get","useTheme","FloatingLabel","LineRipple","alpha","Box","ICON_WIDTH","PADDING_LEFT_WITHOUT_ICON","PADDING_LEFT_WITH_ICON","makeSelector","state","Overlay","props","forceActive","theme","position","top","bottom","left","right","backgroundColor","pointerEvents","opacity","cursor","color","BorderBottom","width","height","FilledContainer","forwardedRef","label","labelIsFloating","inputId","hasFocus","colorProp","children","error","disabled","leadingIcon","otherProps","finalLabelHeight","labelHeight","inputHeight","active","lineHeight","overflow","boxSizing","borderTopRightRadius","borderTopLeftRadius","undefined"],"sources":["../../../src/TextField/FilledContainer.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { forwardRef } from 'react';\nimport { get } from '@styled-system/css';\nimport { rem } from 'polished';\n\nimport { useTheme } from '../theme';\nimport { FloatingLabel } from '../FloatingLabel';\nimport { LineRipple } from '../LineRipple';\nimport { alpha } from '../color';\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport {\n ICON_WIDTH,\n PADDING_LEFT_WITHOUT_ICON,\n PADDING_LEFT_WITH_ICON,\n} from './consts';\n\nconst makeSelector = (\n state:\n | 'hover:not([disabled]):not(:focus)'\n | 'focus:not([disabled])'\n | 'disabled'\n) =>\n `input:${state} ~ &,` +\n `select:${state} ~ &,` +\n `button:${state} ~ &,` +\n `textarea:${state} ~ &`;\n\nconst Overlay = (props: { forceActive?: boolean }) => {\n const { forceActive } = props;\n const theme = useTheme();\n\n return (\n <Box\n __css={{\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n backgroundColor: 'on.surface',\n pointerEvents: 'none',\n opacity: 0,\n [makeSelector('hover:not([disabled]):not(:focus)')]: !forceActive && {\n opacity: get(theme, `buttons.overlays.filled.hover.opacity`),\n },\n [makeSelector('focus:not([disabled])')]: {\n opacity: get(theme, `buttons.overlays.transparent.focus.opacity`),\n },\n [makeSelector('disabled')]: {\n cursor: 'default',\n color: alpha('on.surface', 0.6),\n opacity: 0.02,\n },\n ...(forceActive && {\n opacity: get(theme, `buttons.overlays.transparent.focus.opacity`),\n }),\n }}\n />\n );\n};\n\nconst BorderBottom = () => (\n <Box\n __css={{\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: rem(1),\n backgroundColor: alpha('on.surface', 0.6),\n pointerEvents: 'none',\n [makeSelector('disabled')]: {\n backgroundColor: 'transparent',\n },\n }}\n />\n);\n\nexport interface FilledContainerProps extends Omit<BoxProps, 'color'> {\n children?: ReactNode;\n color?: string;\n hasFocus?: boolean;\n label?: ReactNode;\n labelIsFloating: boolean;\n inputId: string;\n error?: boolean;\n disabled?: boolean;\n forceActive?: boolean;\n leadingIcon?: boolean;\n}\n\nexport const FilledContainer = forwardRef<HTMLDivElement, FilledContainerProps>(\n function FilledContainer(props, forwardedRef) {\n const {\n label,\n labelIsFloating,\n inputId,\n hasFocus,\n color: colorProp,\n children,\n error = false,\n disabled = false,\n forceActive = false,\n leadingIcon,\n ...otherProps\n } = props;\n\n const finalLabelHeight = 16;\n const labelHeight = finalLabelHeight / 0.75;\n const inputHeight = 56;\n\n const color = error ? 'error' : colorProp;\n const active = hasFocus || forceActive;\n\n return (\n <Box\n ref={forwardedRef}\n disabled={disabled}\n active={active || error}\n __css={{\n position: 'relative',\n lineHeight: 0,\n width: '100%',\n backgroundColor: 'surface-variant',\n overflow: 'hidden',\n boxSizing: 'border-box',\n borderTopRightRadius: rem(4),\n borderTopLeftRadius: rem(4),\n color: alpha('on.surface-variant', 0.87),\n ...(disabled && {\n backgroundColor: alpha('on.surface-variant', 0.08),\n color: alpha('on.surface-variant', 0.38),\n }),\n ...(active && { color: 'primary' }),\n }}\n {...otherProps}\n >\n {label && (\n <FloatingLabel\n height={inputHeight}\n offsetX={\n leadingIcon\n ? PADDING_LEFT_WITH_ICON +\n ICON_WIDTH +\n PADDING_LEFT_WITHOUT_ICON\n : PADDING_LEFT_WITHOUT_ICON\n }\n translateX={0}\n translateY={\n // To debug, delete these lines one by one to see it doing its work\n -(inputHeight * 0.5) + // Put it at the top, crossing middle label\n labelHeight * 0.75 * 0.5 + // Put it at position 0\n 8 // Add a 8px padding to the top\n }\n active={labelIsFloating}\n htmlFor={inputId}\n color={active || error ? color : undefined}\n >\n {label}\n </FloatingLabel>\n )}\n\n {children}\n\n <Overlay forceActive={active} />\n <BorderBottom />\n <LineRipple active={active || error} color={color} />\n </Box>\n );\n }\n);\n"],"mappings":";;;;AACA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,GAAT,QAAoB,oBAApB;AAGA,SAASC,QAAT,QAAyB,UAAzB;AACA,SAASC,aAAT,QAA8B,kBAA9B;AACA,SAASC,UAAT,QAA2B,eAA3B;AACA,SAASC,KAAT,QAAsB,UAAtB;AAEA,SAASC,GAAT,QAAoB,QAApB;AACA,SACEC,UADF,EAEEC,yBAFF,EAGEC,sBAHF,QAIO,UAJP;;;;AAMA,IAAMC,YAAY,GAAG,SAAfA,YAAe,CACnBC,KADmB;EAAA,OAMnB,gBAASA,KAAT,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ANR;MAOHC,oBAAoB,WAPjB;MAQHC,mBAAmB,WARhB;MASHxB,KAAK,EAAEpB,KAAK,CAAC,oBAAD,EAAuB,IAAvB;IATT,GAUCiC,QAAQ,IAAI;MACdjB,eAAe,EAAEhB,KAAK,CAAC,oBAAD,EAAuB,IAAvB,CADR;MAEdoB,KAAK,EAAEpB,KAAK,CAAC,oBAAD,EAAuB,IAAvB;IAFE,CAVb,GAcCuC,MAAM,IAAI;MAAEnB,KAAK,EAAE;IAAT,CAdX;EAJP,GAoBMe,UApBN;IAAA,WAsBGT,KAAK,iBACJ,KAAC,aAAD;MACE,MAAM,EAAEY,WADV;MAEE,OAAO,EACLJ,WAAW,GACP9B,sBAAsB,GACtBF,UADA,GAEAC,yBAHO,GAIPA,yBAPR;MASE,UAAU,EAAE,CATd;MAUE,UAAU,EACR;MACA,EAAEmC,WAAW,GAAG,GAAhB,IAAuB;MACvBD,WAAW,GAAG,IAAd,GAAqB,GADrB,GAC2B;MAC3B,CAJQ,CAIN;MAdN;MAgBE,MAAM,EAAEV,eAhBV;MAiBE,OAAO,EAAEC,OAjBX;MAkBE,KAAK,EAAEW,MAAM,IAAIP,KAAV,GAAkBZ,KAAlB,GAA0ByB,SAlBnC;MAAA,UAoBGnB;IApBH,EAvBJ,EA+CGK,QA/CH,eAiDE,KAAC,OAAD;MAAS,WAAW,EAAEQ;IAAtB,EAjDF,eAkDE,KAAC,YAAD,KAlDF,eAmDE,KAAC,UAAD;MAAY,MAAM,EAAEA,MAAM,IAAIP,KAA9B;MAAqC,KAAK,EAAEZ;IAA5C,EAnDF;EAAA,GADF;AAuDD,CA9EsC,CAAlC"}
1
+ {"version":3,"file":"FilledContainer.js","names":["forwardRef","get","useTheme","FloatingLabel","LineRipple","alpha","Box","ICON_WIDTH","PADDING_LEFT_WITHOUT_ICON","PADDING_LEFT_WITH_ICON","makeSelector","state","FilledContainerOverlay","props","forceActive","theme","position","top","bottom","left","right","backgroundColor","pointerEvents","opacity","cursor","color","FilledContainerBorderBottom","width","height","FilledContainer","forwardedRef","label","labelIsFloating","inputId","hasFocus","colorProp","children","error","disabled","leadingIcon","otherProps","finalLabelHeight","labelHeight","inputHeight","active","lineHeight","overflow","boxSizing","borderTopRightRadius","borderTopLeftRadius","undefined"],"sources":["../../../src/TextField/FilledContainer.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { forwardRef } from 'react';\nimport { get } from '@styled-system/css';\nimport { rem } from 'polished';\n\nimport { useTheme } from '../theme';\nimport { FloatingLabel } from '../FloatingLabel';\nimport { LineRipple } from '../LineRipple';\nimport { alpha } from '../color';\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport {\n ICON_WIDTH,\n PADDING_LEFT_WITHOUT_ICON,\n PADDING_LEFT_WITH_ICON,\n} from './consts';\n\nconst makeSelector = (\n state:\n | 'hover:not([disabled]):not(:focus)'\n | 'focus:not([disabled])'\n | 'disabled'\n) =>\n `input:${state} ~ &,` +\n `select:${state} ~ &,` +\n `button:${state} ~ &,` +\n `textarea:${state} ~ &,` +\n `[role=\"button\"]:${state} ~ &`;\n\nexport const FilledContainerOverlay = (props: { forceActive?: boolean }) => {\n const { forceActive } = props;\n const theme = useTheme();\n\n return (\n <Box\n __css={{\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n backgroundColor: 'on.surface',\n pointerEvents: 'none',\n opacity: 0,\n [makeSelector('hover:not([disabled]):not(:focus)')]: !forceActive && {\n opacity: get(theme, `buttons.overlays.filled.hover.opacity`),\n },\n [makeSelector('focus:not([disabled])')]: {\n opacity: get(theme, `buttons.overlays.transparent.focus.opacity`),\n },\n [makeSelector('disabled')]: {\n cursor: 'default',\n color: alpha('on.surface', 0.6),\n opacity: 0.02,\n },\n ...(forceActive && {\n opacity: get(theme, `buttons.overlays.transparent.focus.opacity`),\n }),\n }}\n />\n );\n};\n\nconst FilledContainerBorderBottom = () => (\n <Box\n __css={{\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%',\n height: rem(1),\n backgroundColor: alpha('on.surface', 0.6),\n pointerEvents: 'none',\n [makeSelector('disabled')]: {\n backgroundColor: 'transparent',\n },\n }}\n />\n);\n\nexport interface FilledContainerProps extends Omit<BoxProps, 'color'> {\n children?: ReactNode;\n color?: string;\n hasFocus?: boolean;\n label?: ReactNode;\n labelIsFloating: boolean;\n inputId: string;\n error?: boolean;\n disabled?: boolean;\n forceActive?: boolean;\n leadingIcon?: boolean;\n}\n\nexport const FilledContainer = forwardRef<HTMLDivElement, FilledContainerProps>(\n function FilledContainer(props, forwardedRef) {\n const {\n label,\n labelIsFloating,\n inputId,\n hasFocus,\n color: colorProp,\n children,\n error = false,\n disabled = false,\n forceActive = false,\n leadingIcon,\n ...otherProps\n } = props;\n\n const finalLabelHeight = 16;\n const labelHeight = finalLabelHeight / 0.75;\n const inputHeight = 56;\n\n const color = error ? 'error' : colorProp;\n const active = hasFocus || forceActive;\n\n return (\n <Box\n ref={forwardedRef}\n disabled={disabled}\n active={active || error}\n __css={{\n position: 'relative',\n lineHeight: 0,\n width: '100%',\n backgroundColor: 'surface-variant',\n overflow: 'hidden',\n boxSizing: 'border-box',\n borderTopRightRadius: rem(4),\n borderTopLeftRadius: rem(4),\n color: alpha('on.surface-variant', 0.87),\n ...(disabled && {\n backgroundColor: alpha('on.surface-variant', 0.08),\n color: alpha('on.surface-variant', 0.38),\n }),\n ...(active && { color: 'primary' }),\n }}\n {...otherProps}\n >\n {label && (\n <FloatingLabel\n height={inputHeight}\n offsetX={\n leadingIcon\n ? PADDING_LEFT_WITH_ICON +\n ICON_WIDTH +\n PADDING_LEFT_WITHOUT_ICON\n : PADDING_LEFT_WITHOUT_ICON\n }\n translateX={0}\n translateY={\n // To debug, delete these lines one by one to see it doing its work\n -(inputHeight * 0.5) + // Put it at the top, crossing middle label\n labelHeight * 0.75 * 0.5 + // Put it at position 0\n 8 // Add a 8px padding to the top\n }\n active={labelIsFloating}\n htmlFor={inputId}\n color={active || error ? color : undefined}\n >\n {label}\n </FloatingLabel>\n )}\n\n {children}\n\n <FilledContainerOverlay forceActive={active} />\n <FilledContainerBorderBottom />\n <LineRipple active={active || error} color={color} />\n </Box>\n );\n }\n);\n"],"mappings":";;;;AACA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,GAAT,QAAoB,oBAApB;AAGA,SAASC,QAAT,QAAyB,UAAzB;AACA,SAASC,aAAT,QAA8B,kBAA9B;AACA,SAASC,UAAT,QAA2B,eAA3B;AACA,SAASC,KAAT,QAAsB,UAAtB;AAEA,SAASC,GAAT,QAAoB,QAApB;AACA,SACEC,UADF,EAEEC,yBAFF,EAGEC,sBAHF,QAIO,UAJP;;;;AAMA,IAAMC,YAAY,GAAG,SAAfA,YAAe,CACnBC,KADmB;EAAA,OAMnB,gBAASA,KAAT,8BACUA,KADV,8BAEUA,KAFV,gCAGYA,KAHZ,yCAImBA,KAJnB,SANmB;AAAA,CAArB;;AAYA,OAAO,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,KAAD,EAAsC;EAAA;;EAC1E,IAAQC,WAAR,GAAwBD,KAAxB,CAAQC,WAAR;EACA,IAAMC,KAAK,GAAGb,QAAQ,EAAtB;EAEA,oBACE,KAAC,GAAD;IACE,KAAK;MACHc,QAAQ,EAAE,UADP;MAEHC,GAAG,EAAE,CAFF;MAGHC,MAAM,EAAE,CAHL;MAIHC,IAAI,EAAE,CAJH;MAKHC,KAAK,EAAE,CALJ;MAMHC,eAAe,EAAE,YANd;MAOHC,aAAa,EAAE,MAPZ;MAQHC,OAAO,EAAE;IARN,8BASFb,YAAY,CAAC,mCAAD,CATV,EASkD,CAACI,WAAD,IAAgB;MACnES,OAAO,EAAEtB,GAAG,CAACc,KAAD;IADuD,CATlE,8BAYFL,YAAY,CAAC,uBAAD,CAZV,EAYsC;MACvCa,OAAO,EAAEtB,GAAG,CAACc,KAAD;IAD2B,CAZtC,8BAeFL,YAAY,CAAC,UAAD,CAfV,EAeyB;MAC1Bc,MAAM,EAAE,S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,IAAIP,KAAV,GAAkBZ,KAAlB,GAA0ByB,SAlBnC;MAAA,UAoBGnB;IApBH,EAvBJ,EA+CGK,QA/CH,eAiDE,KAAC,sBAAD;MAAwB,WAAW,EAAEQ;IAArC,EAjDF,eAkDE,KAAC,2BAAD,KAlDF,eAmDE,KAAC,UAAD;MAAY,MAAM,EAAEA,MAAM,IAAIP,KAA9B;MAAqC,KAAK,EAAEZ;IAA5C,EAnDF;EAAA,GADF;AAuDD,CA9EsC,CAAlC"}
@@ -16,4 +16,4 @@ export declare type TextFieldProps = Omit<InputProps, 'value' | 'defaultValue'>
16
16
  leadingIcon?: ReactNode;
17
17
  trailingIcon?: ReactNode;
18
18
  };
19
- export declare const TextField: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "form" | "label" | "p" | "slot" | "style" | "title" | "pattern" | "as" | "fontFamily" | "fontSize" | "children" | "error" | "background" | "bottom" | "top" | "hidden" | "left" | "right" | "sx" | "__css" | "variant" | "tx" | "theme" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "size" | "overflow" | "overflowX" | "overflowY" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "color" | "bg" | "backgroundColor" | "opacity" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flex" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "order" | "border" | "borderX" | "borderY" | "borderWidth" | "borderTopWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStyle" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderColor" | "borderTopColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "gridGap" | "gridColumnGap" | "gridRowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat" | "position" | "zIndex" | "boxShadow" | "textShadow" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "list" | "step" | "max" | "min" | "name" | "type" | "crossOrigin" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "multiple" | "alt" | "autoComplete" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "src" | "enterKeyHint" | "readOnly" | "required" | "multiline" | "hasLabel" | "leadingIcon" | "trailingIcon" | "containerProps" | "helperText" | "hideCharacterCounter"> & import("react").RefAttributes<HTMLInputElement>>;
19
+ export declare const TextField: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "value" | "children" | "bottom" | "top" | "hidden" | "left" | "right" | "as" | "sx" | "__css" | "variant" | "tx" | "theme" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "p" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "width" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "size" | "overflow" | "overflowX" | "overflowY" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontStyle" | "textAlign" | "color" | "bg" | "backgroundColor" | "opacity" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexDirection" | "flex" | "flexGrow" | "flexShrink" | "flexBasis" | "justifySelf" | "alignSelf" | "order" | "border" | "borderX" | "borderY" | "borderWidth" | "borderTopWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStyle" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderColor" | "borderTopColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "gridGap" | "gridColumnGap" | "gridRowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "background" | "backgroundImage" | "backgroundSize" | "backgroundPosition" | "backgroundRepeat" | "position" | "zIndex" | "boxShadow" | "textShadow" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "label" | "pattern" | "list" | "step" | "disabled" | "key" | "multiple" | "alt" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "autoComplete" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "src" | "error" | "leadingIcon" | "name" | "required" | "helperText" | "hasLabel" | "type" | "max" | "min" | "crossOrigin" | "enterKeyHint" | "readOnly" | "multiline" | "trailingIcon" | "containerProps" | "hideCharacterCounter"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import { useState, useMemo, useEffect } from 'react';
4
- import { CorePalette, argbFromHex, hexFromArgb } from '@material/material-color-utilities';
4
+ import { argbFromHex, hexFromArgb, TonalPalette, HCT } from '@material/material-color-utilities';
5
5
  import { toColor } from '@basic-ui/color-picker';
6
6
  import { THEME_OVERRIDE_STORAGE_KEY, injectThemeOverride, transformTheme, loadGoogleFont } from '@basic-ui/dynamic-theme';
7
7
  import { rem } from 'polished';
@@ -88,7 +88,18 @@ var ThemeBuilderImpl = function ThemeBuilderImpl(props) {
88
88
  setPrimaryColor = _useLocalStorageCache16[1];
89
89
 
90
90
  var _useMemo = useMemo(function () {
91
- return CorePalette.of(argbFromHex(primaryColor.hex));
91
+ /* This is from CorePalette.of(...) */
92
+ var argb = argbFromHex(primaryColor.hex);
93
+ var hct = HCT.fromInt(argb);
94
+ var hue = hct.hue;
95
+ return {
96
+ a1: TonalPalette.fromHueAndChroma(hue, Math.max(48, hct.chroma)),
97
+ a2: TonalPalette.fromHueAndChroma(hue, 16),
98
+ a3: TonalPalette.fromHueAndChroma(hue + 60, 24),
99
+ n1: TonalPalette.fromHueAndChroma(hue, 6),
100
+ n2: TonalPalette.fromHueAndChroma(hue, 8),
101
+ error: TonalPalette.fromHueAndChroma(25, 84)
102
+ };
92
103
  }, [primaryColor.hex]),
93
104
  a1 = _useMemo.a1,
94
105
  a2 = _useMemo.a2,
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeBuilder.js","names":["useState","useMemo","useEffect","CorePalette","argbFromHex","hexFromArgb","toColor","THEME_OVERRIDE_STORAGE_KEY","injectThemeOverride","transformTheme","loadGoogleFont","rem","remToPx","Box","TonalColors","ThemeColors","makeColorScheme","Text","useLocalStorageCachedState","useDeferredColor","FontAutoComplete","parseMainFont","BorderSlider","ColorSchemePicker","DefaultHighlighter","props","children","ThemeBuilder","mounted","setMounted","ThemeBuilderImpl","theme","baseTheme","CodeHighlightingComponent","fonts","plain","plainFont","setPlainFont","brand","brandFont","setBrandFont","parseInt","radii","radiusExtraSmall","setRadiusExtraSmall","radiusSmall","setRadiusSmall","radiusMedium","setRadiusMedium","radiusLarge","setRadiusLarge","radiusExtraLarge","setRadiusExtraLarge","colors","primary","primaryColor","setPrimaryColor","of","hex","a1","a2","a3","error","n1","n2","secondaryColor","secondaryColorTonal","setSecondaryColor","tertiaryColor","tertiaryColorTonal","setTertiaryColor","neutralColor","neutralColorTonal","setNeutralColor","scheme","secondary","tertiary","neutral","neutralVariant","newTheme","small","medium","large","large_end","large_top","colorModes","localStorage","setItem","JSON","stringify","gap","flexWrap","v","f","family","weights","c","tone","modes","dark"],"sources":["../../../src/ThemeExplorer/ThemeBuilder.tsx"],"sourcesContent":["import type { ComponentType } from 'react';\nimport { useState, useMemo, useEffect } from 'react';\nimport {\n CorePalette,\n argbFromHex,\n hexFromArgb,\n} from '@material/material-color-utilities';\nimport type { Color } from '@basic-ui/color-picker';\nimport { toColor } from '@basic-ui/color-picker';\nimport {\n THEME_OVERRIDE_STORAGE_KEY,\n injectThemeOverride,\n transformTheme,\n loadGoogleFont,\n} from '@basic-ui/dynamic-theme';\nimport { rem } from 'polished';\nimport remToPx from 'polished/lib/helpers/remToPx';\n\nimport { Box } from '../Box';\nimport { TonalColors } from './components';\nimport { ThemeColors } from './ThemeColors';\nimport { makeColorScheme } from './makeColorScheme';\nimport { Text } from '../Text';\nimport { useLocalStorageCachedState } from './useLocalStorageCachedState';\nimport { useDeferredColor } from './useDeferredColor';\nimport { FontAutoComplete, parseMainFont } from './FontAutoComplete';\nimport type { Theme } from '../theme/theme';\nimport { BorderSlider } from './BorderSlider';\nimport { ColorSchemePicker } from './ColorSchemePicker';\n\nexport interface ThemeBuilderProps {\n CodeHighlightingComponent?: ComponentType<{\n children: string;\n className: string;\n showButtons?: boolean;\n }>;\n baseTheme: Theme;\n}\n\nfunction DefaultHighlighter(props: { children: string }) {\n return (\n <Box as=\"pre\" fontFamily=\"monospace\" fontSize=\"12px\">\n {props.children}\n </Box>\n );\n}\n\nexport const ThemeBuilder = (props: ThemeBuilderProps) => {\n const [mounted, setMounted] = useState(false);\n useEffect(() => {\n setMounted(true);\n }, []);\n if (!mounted) return null;\n return <ThemeBuilderImpl {...props} />;\n};\n\nconst ThemeBuilderImpl = (props: ThemeBuilderProps) => {\n const { baseTheme: theme, CodeHighlightingComponent = DefaultHighlighter } =\n props;\n const [plainFont, setPlainFont] = useLocalStorageCachedState(\n parseMainFont(theme.fonts.plain),\n 'fontFamily.plain'\n );\n const [brandFont, setBrandFont] = useLocalStorageCachedState(\n parseMainFont(theme.fonts.brand),\n 'fontFamily.brand'\n );\n\n const [radiusExtraSmall, setRadiusExtraSmall] =\n useLocalStorageCachedState<number>(\n parseInt(remToPx(theme.radii['extra-small'])),\n 'radii.extra-small'\n );\n\n const [radiusSmall, setRadiusSmall] = useLocalStorageCachedState<number>(\n parseInt(remToPx(theme.radii['small'])),\n 'radii.small'\n );\n\n const [radiusMedium, setRadiusMedium] = useLocalStorageCachedState<number>(\n parseInt(remToPx(theme.radii['medium'])),\n 'radii.medium'\n );\n\n const [radiusLarge, setRadiusLarge] = useLocalStorageCachedState<number>(\n parseInt(remToPx(theme.radii['large'])),\n 'radii.large'\n );\n\n const [radiusExtraLarge, setRadiusExtraLarge] =\n useLocalStorageCachedState<number>(\n parseInt(remToPx(theme.radii['extra-large'])),\n 'radii.extra-large'\n );\n\n const [primaryColor, setPrimaryColor] = useLocalStorageCachedState<Color>(\n toColor('hex', theme.colors.primary),\n 'primary'\n );\n\n const { a1, a2, a3, error, n1, n2 } = useMemo(\n () => CorePalette.of(argbFromHex(primaryColor.hex)),\n [primaryColor.hex]\n );\n\n const [secondaryColor, secondaryColorTonal, setSecondaryColor] =\n useDeferredColor('secondary', a2);\n const [tertiaryColor, tertiaryColorTonal, setTertiaryColor] =\n useDeferredColor('tertiary', a3);\n const [neutralColor, neutralColorTonal, setNeutralColor] = useDeferredColor(\n 'neutral',\n n1\n );\n\n const scheme = useMemo(\n () =>\n makeColorScheme({\n primary: a1,\n secondary: secondaryColorTonal,\n tertiary: tertiaryColorTonal,\n error: error,\n neutral: neutralColorTonal,\n neutralVariant: n2,\n }),\n [a1, secondaryColorTonal, tertiaryColorTonal, error, neutralColorTonal, n2]\n );\n\n const newTheme = useMemo(\n () => ({\n colors: scheme,\n fonts: { plain: `\"${plainFont}\"`, brand: `\"${brandFont}\"` },\n radii: {\n 'extra-small': rem(radiusExtraSmall),\n 'extra-small_top': `${rem(radiusExtraSmall)} ${rem(\n radiusExtraSmall\n )} 0 0`,\n small: rem(radiusSmall),\n medium: rem(radiusMedium),\n large: rem(radiusLarge),\n large_end: `0 ${rem(radiusLarge)} ${rem(radiusLarge)} 0`,\n large_top: `${rem(radiusLarge)} ${rem(radiusLarge)} 0 0`,\n 'extra-large': rem(radiusExtraLarge),\n 'extra-large_top': `${rem(radiusExtraLarge)} ${rem(\n radiusExtraLarge\n )} 0 0`,\n },\n }),\n [\n scheme,\n plainFont,\n brandFont,\n radiusExtraSmall,\n radiusSmall,\n radiusMedium,\n radiusLarge,\n radiusExtraLarge,\n ]\n );\n\n const colorModes = useMemo(\n () => transformTheme(newTheme, ['fonts', 'radii']).colorModes,\n [newTheme]\n );\n\n useEffect(() => {\n localStorage.setItem(\n THEME_OVERRIDE_STORAGE_KEY,\n JSON.stringify({ colorModes })\n );\n injectThemeOverride({ colorModes });\n }, [colorModes]);\n\n return (\n <>\n {/* Shape */}\n <Text variant=\"headline-small\">Shape</Text>\n <Box display=\"flex\" my={3} sx={{ gap: 3, flexWrap: 'wrap' }}>\n <BorderSlider\n label=\"Extra small\"\n defaultValue={radiusExtraSmall}\n onChange={(v) => setRadiusExtraSmall(v)}\n onReset={() => {\n setRadiusExtraSmall(parseInt(remToPx(theme.radii['extra-small'])));\n }}\n resetDisabled={rem(radiusExtraSmall) === theme.radii['extra-small']}\n />\n <BorderSlider\n label=\"Small\"\n defaultValue={radiusSmall}\n onChange={(v) => setRadiusSmall(v)}\n onReset={() => {\n setRadiusSmall(parseInt(remToPx(theme.radii['small'])));\n }}\n resetDisabled={rem(radiusSmall) === theme.radii.small}\n />\n <BorderSlider\n label=\"Medium\"\n defaultValue={radiusMedium}\n onChange={(v) => setRadiusMedium(v)}\n onReset={() => {\n setRadiusMedium(parseInt(remToPx(theme.radii['medium'])));\n }}\n resetDisabled={rem(radiusMedium) === theme.radii['medium']}\n />\n <BorderSlider\n label=\"Large\"\n defaultValue={radiusLarge}\n onChange={(v) => setRadiusLarge(v)}\n onReset={() => {\n setRadiusLarge(parseInt(remToPx(theme.radii['large'])));\n }}\n resetDisabled={rem(radiusLarge) === theme.radii['large']}\n />\n <BorderSlider\n label=\"Extra large\"\n defaultValue={radiusExtraLarge}\n onChange={(v) => setRadiusExtraLarge(v)}\n onReset={() => {\n setRadiusExtraLarge(parseInt(remToPx(theme.radii['extra-large'])));\n }}\n resetDisabled={rem(radiusExtraLarge) === theme.radii['extra-large']}\n />\n </Box>\n {/* Font pickers */}\n <Text variant=\"headline-small\">Typography</Text>\n <Box display=\"flex\" my={3} sx={{ gap: 3, flexWrap: 'wrap' }}>\n <FontAutoComplete\n label=\"Brand\"\n initialValue={brandFont}\n onSelect={(f) => {\n if (f) {\n setBrandFont(f);\n loadGoogleFont([\n { family: f, weights: [300, 400, 500, 600, 700] },\n ]);\n }\n }}\n onReset={() => {\n setBrandFont(parseMainFont(theme.fonts.brand));\n }}\n resetDisabled={brandFont === parseMainFont(theme.fonts.brand)}\n />\n <FontAutoComplete\n label=\"Plain\"\n initialValue={plainFont}\n onSelect={(f) => {\n if (f) {\n setPlainFont(f);\n loadGoogleFont([\n { family: f, weights: [300, 400, 500, 600, 700] },\n ]);\n }\n }}\n onReset={() => {\n setPlainFont(parseMainFont(theme.fonts.plain));\n }}\n resetDisabled={plainFont === parseMainFont(theme.fonts.plain)}\n />\n </Box>\n {/* Color pickers */}\n <Text variant=\"headline-small\">Color schemes</Text>\n <Box display=\"flex\" my={3} sx={{ gap: 3, flexWrap: 'wrap' }}>\n <ColorSchemePicker\n label=\"Primary color\"\n initialValue={primaryColor}\n onChange={(c) => setPrimaryColor(c)}\n onReset={() => setPrimaryColor(toColor('hex', theme.colors.primary))}\n resetDisabled={\n primaryColor.hex === toColor('hex', theme.colors.primary).hex\n }\n />\n <ColorSchemePicker\n label=\"Secondary color\"\n initialValue={\n secondaryColor ||\n toColor('hex', hexFromArgb(secondaryColorTonal.tone(40)))\n }\n onChange={(c) => setSecondaryColor(c)}\n onReset={() => setSecondaryColor(null)}\n resetDisabled={secondaryColor === null}\n />\n <ColorSchemePicker\n label=\"Tertiary color\"\n initialValue={\n tertiaryColor ||\n toColor('hex', hexFromArgb(tertiaryColorTonal.tone(40)))\n }\n onChange={(c) => setTertiaryColor(c)}\n onReset={() => setTertiaryColor(null)}\n resetDisabled={tertiaryColor === null}\n />\n <ColorSchemePicker\n label=\"Neutral color\"\n initialValue={\n neutralColor ||\n toColor('hex', hexFromArgb(neutralColorTonal.tone(40)))\n }\n onChange={(c) => setNeutralColor(c)}\n onReset={() => setNeutralColor(null)}\n resetDisabled={neutralColor === null}\n />\n </Box>\n <Box width=\"100%\">\n <Box display=\"flex\" flexDirection=\"column\" sx={{ gap: 4 }}>\n <Box flex=\"1\">\n <Text variant=\"title-medium\" as=\"h1\" pb={'0.3em'} pt={3}>\n Light theme\n </Text>\n <ThemeColors scheme={scheme} />\n </Box>\n <Box flex=\"1\">\n <Text variant=\"title-medium\" as=\"h1\" pb={'0.3em'} pt={3}>\n Dark theme\n </Text>\n <ThemeColors scheme={scheme.modes.dark} />\n </Box>\n </Box>\n <Box my={4} display=\"flex\" sx={{ gap: 3 }} flexDirection=\"column\">\n <Text variant=\"title-medium\" as=\"h1\" pb={'0.3em'} pt={3}>\n Palettes\n </Text>\n <TonalColors palette={a1} />\n <TonalColors palette={secondaryColorTonal} />\n <TonalColors palette={tertiaryColorTonal} />\n <TonalColors palette={error} />\n <TonalColors palette={neutralColorTonal} />\n <TonalColors palette={n2} />\n </Box>\n </Box>\n {/* Color pickers */}\n <Text variant=\"headline-small\">Theme</Text>\n <CodeHighlightingComponent className={`language-json`}>\n {JSON.stringify(newTheme, null, 2)}\n </CodeHighlightingComponent>\n </>\n );\n};\n"],"mappings":";;AACA,SAASA,QAAT,EAAmBC,OAAnB,EAA4BC,SAA5B,QAA6C,OAA7C;AACA,SACEC,WADF,EAEEC,WAFF,EAGEC,WAHF,QAIO,oCAJP;AAMA,SAASC,OAAT,QAAwB,wBAAxB;AACA,SACEC,0BADF,EAEEC,mBAFF,EAGEC,cAHF,EAIEC,cAJF,QAKO,yBALP;AAMA,SAASC,GAAT,QAAoB,UAApB;AACA,OAAOC,OAAP,MAAoB,8BAApB;AAEA,SAASC,GAAT,QAAoB,QAApB;AACA,SAASC,WAAT,QAA4B,cAA5B;AACA,SAASC,WAAT,QAA4B,eAA5B;AACA,SAASC,eAAT,QAAgC,mBAAhC;AACA,SAASC,IAAT,QAAqB,SAArB;AACA,SAASC,0BAAT,QAA2C,8BAA3C;AACA,SAASC,gBAAT,QAAiC,oBAAjC;AACA,SAASC,gBAAT,EAA2BC,aAA3B,QAAgD,oBAAhD;AAEA,SAASC,YAAT,QAA6B,gBAA7B;AACA,SAASC,iBAAT,QAAkC,qBAAlC;;;;;AAWA,SA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,OAAO,EAAEU;QAAtB,EARF,eASE,KAAC,WAAD;UAAa,OAAO,EAAER;QAAtB,EATF;MAAA,EAfF;IAAA,EAjIF,eA6JE,KAAC,IAAD;MAAM,OAAO,EAAC,gBAAd;MAAA;IAAA,EA7JF,eA8JE,KAAC,yBAAD;MAA2B,SAAS,iBAApC;MAAA,UACGwB,IAAI,CAACC,SAAL,CAAeV,QAAf,EAAyB,IAAzB,EAA+B,CAA/B;IADH,EA9JF;EAAA,EADF;AAoKD,CAxRD"}
1
+ {"version":3,"file":"ThemeBuilder.js","names":["useState","useMemo","useEffect","argbFromHex","hexFromArgb","TonalPalette","HCT","toColor","THEME_OVERRIDE_STORAGE_KEY","injectThemeOverride","transformTheme","loadGoogleFont","rem","remToPx","Box","TonalColors","ThemeColors","makeColorScheme","Text","useLocalStorageCachedState","useDeferredColor","FontAutoComplete","parseMainFont","BorderSlider","ColorSchemePicker","DefaultHighlighter","props","children","ThemeBuilder","mounted","setMounted","ThemeBuilderImpl","theme","baseTheme","CodeHighlightingComponent","fonts","plain","plainFont","setPlainFont","brand","brandFont","setBrandFont","parseInt","radii","radiusExtraSmall","setRadiusExtraSmall","radiusSmall","setRadiusSmall","radiusMedium","setRadiusMedium","radiusLarge","setRadiusLarge","radiusExtraLarge","setRadiusExtraLarge","colors","primary","primaryColor","setPrimaryColor","argb","hex","hct","fromInt","hue","a1","fromHueAndChroma","Math","max","chroma","a2","a3","n1","n2","error","secondaryColor","secondaryColorTonal","setSecondaryColor","tertiaryColor","tertiaryColorTonal","setTertiaryColor","neutralColor","neutralColorTonal","setNeutralColor","scheme","secondary","tertiary","neutral","neutralVariant","newTheme","small","medium","large","large_end","large_top","colorModes","localStorage","setItem","JSON","stringify","gap","flexWrap","v","f","family","weights","c","tone","modes","dark"],"sources":["../../../src/ThemeExplorer/ThemeBuilder.tsx"],"sourcesContent":["import type { ComponentType } from 'react';\nimport { useState, useMemo, useEffect } from 'react';\nimport {\n argbFromHex,\n hexFromArgb,\n TonalPalette,\n HCT,\n} from '@material/material-color-utilities';\nimport type { Color } from '@basic-ui/color-picker';\nimport { toColor } from '@basic-ui/color-picker';\nimport {\n THEME_OVERRIDE_STORAGE_KEY,\n injectThemeOverride,\n transformTheme,\n loadGoogleFont,\n} from '@basic-ui/dynamic-theme';\nimport { rem } from 'polished';\nimport remToPx from 'polished/lib/helpers/remToPx';\n\nimport { Box } from '../Box';\nimport { TonalColors } from './components';\nimport { ThemeColors } from './ThemeColors';\nimport { makeColorScheme } from './makeColorScheme';\nimport { Text } from '../Text';\nimport { useLocalStorageCachedState } from './useLocalStorageCachedState';\nimport { useDeferredColor } from './useDeferredColor';\nimport { FontAutoComplete, parseMainFont } from './FontAutoComplete';\nimport type { Theme } from '../theme/theme';\nimport { BorderSlider } from './BorderSlider';\nimport { ColorSchemePicker } from './ColorSchemePicker';\n\nexport interface ThemeBuilderProps {\n CodeHighlightingComponent?: ComponentType<{\n children: string;\n className: string;\n showButtons?: boolean;\n }>;\n baseTheme: Theme;\n}\n\nfunction DefaultHighlighter(props: { children: string }) {\n return (\n <Box as=\"pre\" fontFamily=\"monospace\" fontSize=\"12px\">\n {props.children}\n </Box>\n );\n}\n\nexport const ThemeBuilder = (props: ThemeBuilderProps) => {\n const [mounted, setMounted] = useState(false);\n useEffect(() => {\n setMounted(true);\n }, []);\n if (!mounted) return null;\n return <ThemeBuilderImpl {...props} />;\n};\n\nconst ThemeBuilderImpl = (props: ThemeBuilderProps) => {\n const { baseTheme: theme, CodeHighlightingComponent = DefaultHighlighter } =\n props;\n const [plainFont, setPlainFont] = useLocalStorageCachedState(\n parseMainFont(theme.fonts.plain),\n 'fontFamily.plain'\n );\n const [brandFont, setBrandFont] = useLocalStorageCachedState(\n parseMainFont(theme.fonts.brand),\n 'fontFamily.brand'\n );\n\n const [radiusExtraSmall, setRadiusExtraSmall] =\n useLocalStorageCachedState<number>(\n parseInt(remToPx(theme.radii['extra-small'])),\n 'radii.extra-small'\n );\n\n const [radiusSmall, setRadiusSmall] = useLocalStorageCachedState<number>(\n parseInt(remToPx(theme.radii['small'])),\n 'radii.small'\n );\n\n const [radiusMedium, setRadiusMedium] = useLocalStorageCachedState<number>(\n parseInt(remToPx(theme.radii['medium'])),\n 'radii.medium'\n );\n\n const [radiusLarge, setRadiusLarge] = useLocalStorageCachedState<number>(\n parseInt(remToPx(theme.radii['large'])),\n 'radii.large'\n );\n\n const [radiusExtraLarge, setRadiusExtraLarge] =\n useLocalStorageCachedState<number>(\n parseInt(remToPx(theme.radii['extra-large'])),\n 'radii.extra-large'\n );\n\n const [primaryColor, setPrimaryColor] = useLocalStorageCachedState<Color>(\n toColor('hex', theme.colors.primary),\n 'primary'\n );\n\n const { a1, a2, a3, error, n1, n2 } = useMemo(() => {\n /* This is from CorePalette.of(...) */\n const argb = argbFromHex(primaryColor.hex);\n const hct = HCT.fromInt(argb);\n const hue = hct.hue;\n return {\n a1: TonalPalette.fromHueAndChroma(hue, Math.max(48, hct.chroma)),\n a2: TonalPalette.fromHueAndChroma(hue, 16),\n a3: TonalPalette.fromHueAndChroma(hue + 60, 24),\n n1: TonalPalette.fromHueAndChroma(hue, 6),\n n2: TonalPalette.fromHueAndChroma(hue, 8),\n error: TonalPalette.fromHueAndChroma(25, 84),\n };\n }, [primaryColor.hex]);\n\n const [secondaryColor, secondaryColorTonal, setSecondaryColor] =\n useDeferredColor('secondary', a2);\n const [tertiaryColor, tertiaryColorTonal, setTertiaryColor] =\n useDeferredColor('tertiary', a3);\n const [neutralColor, neutralColorTonal, setNeutralColor] = useDeferredColor(\n 'neutral',\n n1\n );\n\n const scheme = useMemo(\n () =>\n makeColorScheme({\n primary: a1,\n secondary: secondaryColorTonal,\n tertiary: tertiaryColorTonal,\n error: error,\n neutral: neutralColorTonal,\n neutralVariant: n2,\n }),\n [a1, secondaryColorTonal, tertiaryColorTonal, error, neutralColorTonal, n2]\n );\n\n const newTheme = useMemo(\n () => ({\n colors: scheme,\n fonts: { plain: `\"${plainFont}\"`, brand: `\"${brandFont}\"` },\n radii: {\n 'extra-small': rem(radiusExtraSmall),\n 'extra-small_top': `${rem(radiusExtraSmall)} ${rem(\n radiusExtraSmall\n )} 0 0`,\n small: rem(radiusSmall),\n medium: rem(radiusMedium),\n large: rem(radiusLarge),\n large_end: `0 ${rem(radiusLarge)} ${rem(radiusLarge)} 0`,\n large_top: `${rem(radiusLarge)} ${rem(radiusLarge)} 0 0`,\n 'extra-large': rem(radiusExtraLarge),\n 'extra-large_top': `${rem(radiusExtraLarge)} ${rem(\n radiusExtraLarge\n )} 0 0`,\n },\n }),\n [\n scheme,\n plainFont,\n brandFont,\n radiusExtraSmall,\n radiusSmall,\n radiusMedium,\n radiusLarge,\n radiusExtraLarge,\n ]\n );\n\n const colorModes = useMemo(\n () => transformTheme(newTheme, ['fonts', 'radii']).colorModes,\n [newTheme]\n );\n\n useEffect(() => {\n localStorage.setItem(\n THEME_OVERRIDE_STORAGE_KEY,\n JSON.stringify({ colorModes })\n );\n injectThemeOverride({ colorModes });\n }, [colorModes]);\n\n return (\n <>\n {/* Shape */}\n <Text variant=\"headline-small\">Shape</Text>\n <Box display=\"flex\" my={3} sx={{ gap: 3, flexWrap: 'wrap' }}>\n <BorderSlider\n label=\"Extra small\"\n defaultValue={radiusExtraSmall}\n onChange={(v) => setRadiusExtraSmall(v)}\n onReset={() => {\n setRadiusExtraSmall(parseInt(remToPx(theme.radii['extra-small'])));\n }}\n resetDisabled={rem(radiusExtraSmall) === theme.radii['extra-small']}\n />\n <BorderSlider\n label=\"Small\"\n defaultValue={radiusSmall}\n onChange={(v) => setRadiusSmall(v)}\n onReset={() => {\n setRadiusSmall(parseInt(remToPx(theme.radii['small'])));\n }}\n resetDisabled={rem(radiusSmall) === theme.radii.small}\n />\n <BorderSlider\n label=\"Medium\"\n defaultValue={radiusMedium}\n onChange={(v) => setRadiusMedium(v)}\n onReset={() => {\n setRadiusMedium(parseInt(remToPx(theme.radii['medium'])));\n }}\n resetDisabled={rem(radiusMedium) === theme.radii['medium']}\n />\n <BorderSlider\n label=\"Large\"\n defaultValue={radiusLarge}\n onChange={(v) => setRadiusLarge(v)}\n onReset={() => {\n setRadiusLarge(parseInt(remToPx(theme.radii['large'])));\n }}\n resetDisabled={rem(radiusLarge) === theme.radii['large']}\n />\n <BorderSlider\n label=\"Extra large\"\n defaultValue={radiusExtraLarge}\n onChange={(v) => setRadiusExtraLarge(v)}\n onReset={() => {\n setRadiusExtraLarge(parseInt(remToPx(theme.radii['extra-large'])));\n }}\n resetDisabled={rem(radiusExtraLarge) === theme.radii['extra-large']}\n />\n </Box>\n {/* Font pickers */}\n <Text variant=\"headline-small\">Typography</Text>\n <Box display=\"flex\" my={3} sx={{ gap: 3, flexWrap: 'wrap' }}>\n <FontAutoComplete\n label=\"Brand\"\n initialValue={brandFont}\n onSelect={(f) => {\n if (f) {\n setBrandFont(f);\n loadGoogleFont([\n { family: f, weights: [300, 400, 500, 600, 700] },\n ]);\n }\n }}\n onReset={() => {\n setBrandFont(parseMainFont(theme.fonts.brand));\n }}\n resetDisabled={brandFont === parseMainFont(theme.fonts.brand)}\n />\n <FontAutoComplete\n label=\"Plain\"\n initialValue={plainFont}\n onSelect={(f) => {\n if (f) {\n setPlainFont(f);\n loadGoogleFont([\n { family: f, weights: [300, 400, 500, 600, 700] },\n ]);\n }\n }}\n onReset={() => {\n setPlainFont(parseMainFont(theme.fonts.plain));\n }}\n resetDisabled={plainFont === parseMainFont(theme.fonts.plain)}\n />\n </Box>\n {/* Color pickers */}\n <Text variant=\"headline-small\">Color schemes</Text>\n <Box display=\"flex\" my={3} sx={{ gap: 3, flexWrap: 'wrap' }}>\n <ColorSchemePicker\n label=\"Primary color\"\n initialValue={primaryColor}\n onChange={(c) => setPrimaryColor(c)}\n onReset={() => setPrimaryColor(toColor('hex', theme.colors.primary))}\n resetDisabled={\n primaryColor.hex === toColor('hex', theme.colors.primary).hex\n }\n />\n <ColorSchemePicker\n label=\"Secondary color\"\n initialValue={\n secondaryColor ||\n toColor('hex', hexFromArgb(secondaryColorTonal.tone(40)))\n }\n onChange={(c) => setSecondaryColor(c)}\n onReset={() => setSecondaryColor(null)}\n resetDisabled={secondaryColor === null}\n />\n <ColorSchemePicker\n label=\"Tertiary color\"\n initialValue={\n tertiaryColor ||\n toColor('hex', hexFromArgb(tertiaryColorTonal.tone(40)))\n }\n onChange={(c) => setTertiaryColor(c)}\n onReset={() => setTertiaryColor(null)}\n resetDisabled={tertiaryColor === null}\n />\n <ColorSchemePicker\n label=\"Neutral color\"\n initialValue={\n neutralColor ||\n toColor('hex', hexFromArgb(neutralColorTonal.tone(40)))\n }\n onChange={(c) => setNeutralColor(c)}\n onReset={() => setNeutralColor(null)}\n resetDisabled={neutralColor === null}\n />\n </Box>\n <Box width=\"100%\">\n <Box display=\"flex\" flexDirection=\"column\" sx={{ gap: 4 }}>\n <Box flex=\"1\">\n <Text variant=\"title-medium\" as=\"h1\" pb={'0.3em'} pt={3}>\n Light theme\n </Text>\n <ThemeColors scheme={scheme} />\n </Box>\n <Box flex=\"1\">\n <Text variant=\"title-medium\" as=\"h1\" pb={'0.3em'} pt={3}>\n Dark theme\n </Text>\n <ThemeColors scheme={scheme.modes.dark} />\n </Box>\n </Box>\n <Box my={4} display=\"flex\" sx={{ gap: 3 }} flexDirection=\"column\">\n <Text variant=\"title-medium\" as=\"h1\" pb={'0.3em'} pt={3}>\n Palettes\n </Text>\n <TonalColors palette={a1} />\n <TonalColors palette={secondaryColorTonal} />\n <TonalColors palette={tertiaryColorTonal} />\n <TonalColors palette={error} />\n <TonalColors palette={neutralColorTonal} />\n <TonalColors palette={n2} />\n </Box>\n </Box>\n {/* Color pickers */}\n <Text variant=\"headline-small\">Theme</Text>\n <CodeHighlightingComponent className={`language-json`}>\n {JSON.stringify(newTheme, null, 2)}\n </CodeHighlightingComponent>\n </>\n );\n};\n"],"mappings":";;AACA,SAASA,QAAT,EAAmBC,OAAnB,EAA4BC,SAA5B,QAA6C,OAA7C;AACA,SACEC,WADF,EAEEC,WAFF,EAGEC,Y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,EARF,eASE,KAAC,WAAD;UAAa,OAAO,EAAET;QAAtB,EATF;MAAA,EAfF;IAAA,EAjIF,eA6JE,KAAC,IAAD;MAAM,OAAO,EAAC,gBAAd;MAAA;IAAA,EA7JF,eA8JE,KAAC,yBAAD;MAA2B,SAAS,iBAApC;MAAA,UACGyB,IAAI,CAACC,SAAL,CAAeV,QAAf,EAAyB,IAAzB,EAA+B,CAA/B;IADH,EA9JF;EAAA,EADF;AAoKD,CAlSD"}
@@ -44,27 +44,45 @@ export var ThemeColors = /*#__PURE__*/memo(function (_ref) {
44
44
  colors: makeColorArrayForToken('error')
45
45
  }), /*#__PURE__*/_jsx(ColorRow, {
46
46
  colors: [{
47
- token: "background",
48
- bg: scheme.background,
49
- color: scheme.on.background
50
- }, {
51
- token: "on.background",
52
- bg: scheme.on.background,
53
- color: scheme.background
47
+ token: "surface-dim",
48
+ bg: scheme['surface-dim'],
49
+ color: scheme.on['surface']
54
50
  }, {
55
51
  token: "surface",
56
- bg: scheme.surface,
57
- color: scheme.on.surface
52
+ bg: scheme['surface'],
53
+ color: scheme.on['surface']
58
54
  }, {
59
- token: "on.surface",
60
- bg: scheme.on.surface,
61
- color: scheme.surface
55
+ token: "surface-bright",
56
+ bg: scheme['surface-bright'],
57
+ color: scheme.on['surface']
58
+ }]
59
+ }), /*#__PURE__*/_jsx(ColorRow, {
60
+ colors: [{
61
+ token: "surface-container-lowest",
62
+ bg: scheme['surface-container-lowest'],
63
+ color: scheme.on['surface']
64
+ }, {
65
+ token: "surface-container-low",
66
+ bg: scheme['surface-container-low'],
67
+ color: scheme.on['surface']
68
+ }, {
69
+ token: "surface-container",
70
+ bg: scheme['surface-container'],
71
+ color: scheme.on['surface']
72
+ }, {
73
+ token: "surface-container-high",
74
+ bg: scheme['surface-container-high'],
75
+ color: scheme.on['surface']
76
+ }, {
77
+ token: "surface-container-highest",
78
+ bg: scheme['surface-container-highest'],
79
+ color: scheme.on['surface']
62
80
  }]
63
81
  }), /*#__PURE__*/_jsx(ColorRow, {
64
82
  colors: [{
65
- token: "surface-variant",
66
- bg: scheme['surface-variant'],
67
- color: scheme.on['surface-variant']
83
+ token: "on.surface",
84
+ bg: scheme.on['surface'],
85
+ color: scheme['surface']
68
86
  }, {
69
87
  token: "on.surface-variant",
70
88
  bg: scheme.on['surface-variant'],
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeColors.js","names":["memo","Box","ColorRow","ThemeColors","scheme","makeColorArrayForToken","token","bg","color","on","gap","background","surface","outline"],"sources":["../../../src/ThemeExplorer/ThemeColors.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport { Box } from '..';\nimport { ColorRow } from './components';\nimport type { makeColorScheme } from './makeColorScheme';\n\nexport const ThemeColors = memo(\n ({\n scheme,\n }: {\n scheme: Omit<ReturnType<typeof makeColorScheme>, 'modes'>;\n }) => {\n function makeColorArrayForToken(token: string) {\n return [\n {\n token: `${token}`,\n bg: scheme[token],\n color: scheme.on[token],\n },\n {\n token: `on.${token}`,\n bg: scheme.on[token],\n color: scheme[token],\n },\n {\n token: `${token}-container`,\n bg: scheme[`${token}-container`],\n color: scheme.on[`${token}-container`],\n },\n {\n token: `on.${token}-container`,\n bg: scheme.on[`${token}-container`],\n color: scheme[`${token}-container`],\n },\n ];\n }\n return (\n <Box width=\"600\" display=\"flex\" flexDirection=\"column\" sx={{ gap: 2 }}>\n <ColorRow colors={makeColorArrayForToken('primary')} height={118} />\n <ColorRow colors={makeColorArrayForToken('secondary')} />\n <ColorRow colors={makeColorArrayForToken('tertiary')} />\n <ColorRow colors={makeColorArrayForToken('error')} />\n <ColorRow\n colors={[\n {\n token: `background`,\n bg: scheme.background,\n color: scheme.on.background,\n },\n {\n token: `on.background`,\n bg: scheme.on.background,\n color: scheme.background,\n },\n {\n token: `surface`,\n bg: scheme.surface,\n color: scheme.on.surface,\n },\n {\n token: `on.surface`,\n bg: scheme.on.surface,\n color: scheme.surface,\n },\n ]}\n />\n <ColorRow\n colors={[\n {\n token: `surface-variant`,\n bg: scheme['surface-variant'],\n color: scheme.on['surface-variant'],\n },\n {\n token: `on.surface-variant`,\n bg: scheme.on['surface-variant'],\n color: scheme['surface-variant'],\n },\n {\n token: `outline`,\n bg: scheme.outline,\n color: scheme.on.outline,\n },\n {\n token: `outline-variant`,\n bg: scheme['outline-variant'],\n color: scheme.on['outline-variant'],\n },\n ]}\n />\n </Box>\n );\n }\n);\n"],"mappings":"AAAA,SAASA,IAAT,QAAqB,OAArB;AAEA,SAASC,GAAT,QAAoB,IAApB;AACA,SAASC,QAAT,QAAyB,cAAzB;;;AAGA,OAAO,IAAMC,WAAW,gBAAGH,IAAI,CAC7B,gBAIM;EAAA,IAHJI,MAGI,QAHJA,MAGI;;EACJ,SAASC,sBAAT,CAAgCC,KAAhC,EAA+C;IAC7C,OAAO,CACL;MACEA,KAAK,YAAKA,KAAL,CADP;MAEEC,EAAE,EAAEH,MAAM,CAACE,KAAD,CAFZ;MAGEE,KAAK,EAAEJ,MAAM,CAACK,EAAP,CAAUH,KAAV;IAHT,CADK,EAML;MACEA,KAAK,eAAQA,KAAR,CADP;MAEEC,EAAE,EAAEH,MAAM,CAACK,EAAP,CAAUH,KAAV,CAFN;MAGEE,KAAK,EAAEJ,MAAM,CAACE,KAAD;IAHf,CANK,EAWL;MACEA,KAAK,YAAKA,KAAL,eADP;MAEEC,EAAE,EAAEH,MAAM,WAAIE,KAAJ,gBAFZ;MAGEE,KAAK,EAAEJ,MAAM,CAACK,EAAP,WAAaH,KAAb;IAHT,CAXK,EAgBL;MACEA,KAAK,eAAQA,KAAR,eADP;MAEEC,EAAE,EAAEH,MAAM,CAACK,EAAP,WAAaH,KAAb,gBAFN;MAGEE,KAAK,EAAEJ,MAAM,WAAIE,KAAJ;IAHf,CAhBK,CAAP;EAsBD;;EACD,oBACE,MAAC,GAAD;IAAK,KAAK,EAAC,KAAX;IAAiB,OAAO,EAAC,MAAzB;IAAgC,aAAa,EAAC,QAA9C;IAAuD,EAAE,EAAE;MAAEI,GAAG,EA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;QAGEL,KAAK,EAAEJ,MAAM,CAACK,EAAP,CAAUI;MAHnB,CAXM,EAgBN;QACEP,KAAK,mBADP;QAEEC,EAAE,EAAEH,MAAM,CAAC,iBAAD,CAFZ;QAGEI,KAAK,EAAEJ,MAAM,CAACK,EAAP,CAAU,iBAAV;MAHT,CAhBM;IADV,EA7BF;EAAA,EADF;AAwDD,CAtF4B,CAAxB"}
1
+ {"version":3,"file":"ThemeColors.js","names":["memo","Box","ColorRow","ThemeColors","scheme","makeColorArrayForToken","token","bg","color","on","gap","outline"],"sources":["../../../src/ThemeExplorer/ThemeColors.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport { Box } from '..';\nimport { ColorRow } from './components';\nimport type { makeColorScheme } from './makeColorScheme';\n\nexport const ThemeColors = memo(\n ({\n scheme,\n }: {\n scheme: Omit<ReturnType<typeof makeColorScheme>, 'modes'>;\n }) => {\n function makeColorArrayForToken(token: string) {\n return [\n {\n token: `${token}`,\n bg: scheme[token],\n color: scheme.on[token],\n },\n {\n token: `on.${token}`,\n bg: scheme.on[token],\n color: scheme[token],\n },\n {\n token: `${token}-container`,\n bg: scheme[`${token}-container`],\n color: scheme.on[`${token}-container`],\n },\n {\n token: `on.${token}-container`,\n bg: scheme.on[`${token}-container`],\n color: scheme[`${token}-container`],\n },\n ];\n }\n return (\n <Box width=\"600\" display=\"flex\" flexDirection=\"column\" sx={{ gap: 2 }}>\n <ColorRow colors={makeColorArrayForToken('primary')} height={118} />\n <ColorRow colors={makeColorArrayForToken('secondary')} />\n <ColorRow colors={makeColorArrayForToken('tertiary')} />\n <ColorRow colors={makeColorArrayForToken('error')} />\n <ColorRow\n colors={[\n {\n token: `surface-dim`,\n bg: scheme['surface-dim'],\n color: scheme.on['surface'],\n },\n {\n token: `surface`,\n bg: scheme['surface'],\n color: scheme.on['surface'],\n },\n {\n token: `surface-bright`,\n bg: scheme['surface-bright'],\n color: scheme.on['surface'],\n },\n ]}\n />\n <ColorRow\n colors={[\n {\n token: `surface-container-lowest`,\n bg: scheme['surface-container-lowest'],\n color: scheme.on['surface'],\n },\n {\n token: `surface-container-low`,\n bg: scheme['surface-container-low'],\n color: scheme.on['surface'],\n },\n {\n token: `surface-container`,\n bg: scheme['surface-container'],\n color: scheme.on['surface'],\n },\n {\n token: `surface-container-high`,\n bg: scheme['surface-container-high'],\n color: scheme.on['surface'],\n },\n {\n token: `surface-container-highest`,\n bg: scheme['surface-container-highest'],\n color: scheme.on['surface'],\n },\n ]}\n />\n <ColorRow\n colors={[\n {\n token: `on.surface`,\n bg: scheme.on['surface'],\n color: scheme['surface'],\n },\n {\n token: `on.surface-variant`,\n bg: scheme.on['surface-variant'],\n color: scheme['surface-variant'],\n },\n {\n token: `outline`,\n bg: scheme.outline,\n color: scheme.on.outline,\n },\n {\n token: `outline-variant`,\n bg: scheme['outline-variant'],\n color: scheme.on['outline-variant'],\n },\n ]}\n />\n </Box>\n );\n }\n);\n"],"mappings":"AAAA,SAASA,IAAT,QAAqB,OAArB;AAEA,SAASC,GAAT,QAAoB,IAApB;AACA,SAASC,QAAT,QAAyB,cAAzB;;;AAGA,OAAO,IAAMC,WAAW,gBAAGH,IAAI,CAC7B,gBAIM;EAAA,IAHJI,MAGI,QAHJA,MAGI;;EACJ,SAASC,sBAAT,CAAgCC,KAAhC,EAA+C;IAC7C,OAAO,CACL;MACEA,KAAK,YAAKA,KAAL,CADP;MAEEC,EAAE,EAAEH,MAAM,CAACE,KAAD,CAFZ;MAGEE,KAAK,EAAEJ,MAAM,CAACK,EAAP,CAAUH,KAAV;IAHT,CADK,EAML;MACEA,KAAK,eAAQA,KAAR,CADP;MAEEC,EAAE,EAAEH,MAAM,CAACK,EAAP,CAAUH,KAAV,CAFN;MAGEE,KAAK,EAAEJ,MAAM,CAACE,KAAD;IAHf,CANK,EAWL;MACEA,KAAK,YAAKA,KAAL,eADP;MAEEC,EAAE,EAAEH,MAAM,WAAIE,KAAJ,gBAFZ;MAGEE,KAAK,EAAEJ,MAAM,CAACK,EAA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oExoticComponent<(props: {
4
4
  token: string;
5
5
  style: CSSProperties;
6
6
  height?: number;
7
- width: string;
7
+ flex: number;
8
8
  }) => JSX.Element>;
9
9
  export declare const ColorRow: import("react").MemoExoticComponent<(props: {
10
10
  colors: {