@astral/ui 0.34.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/Button/Button.d.ts +1 -1
  2. package/Button/Button.js +10 -3
  3. package/Button/types.d.ts +1 -0
  4. package/ButtonBase/ButtonBase.d.ts +1 -1
  5. package/ButtonBase/styled.d.ts +3 -2
  6. package/ButtonBase/styled.js +22 -2
  7. package/ButtonBase/types.d.ts +1 -0
  8. package/DashboardLayout/Sidebar/styled.d.ts +1 -1
  9. package/DatePicker/DatePickerDay/styled.d.ts +1 -1
  10. package/DropdownButton/DropdownButton.d.ts +1 -1
  11. package/DropdownButton/styles.d.ts +1 -8
  12. package/DropdownButton/styles.js +1 -9
  13. package/IconButton/IconButton.d.ts +1 -1
  14. package/IconButton/styled.d.ts +2 -1
  15. package/IconDropdownButton/IconDropdownButton.d.ts +1 -1
  16. package/IconDropdownButton/IconDropdownButton.js +2 -2
  17. package/ListItem/styled.d.ts +3 -3
  18. package/ListItemButton/styled.d.ts +1 -1
  19. package/MenuGroup/stories/styled.d.ts +1 -1
  20. package/MenuItem/styled.d.ts +1 -1
  21. package/Notification/NotificationTemplate/styled.d.ts +1 -1
  22. package/Product/Product.d.ts +1 -1
  23. package/Profile/styled.d.ts +1 -1
  24. package/Select/styled.d.ts +1 -1
  25. package/ThemeProvider/ThemeProvider.d.ts +4 -4
  26. package/ThemeProvider/ThemeProvider.js +2 -2
  27. package/esm/Button/Button.d.ts +1 -1
  28. package/esm/Button/Button.js +10 -3
  29. package/esm/Button/types.d.ts +1 -0
  30. package/esm/ButtonBase/ButtonBase.d.ts +1 -1
  31. package/esm/ButtonBase/styled.d.ts +3 -2
  32. package/esm/ButtonBase/styled.js +22 -2
  33. package/esm/ButtonBase/types.d.ts +1 -0
  34. package/esm/DashboardLayout/Sidebar/styled.d.ts +1 -1
  35. package/esm/DatePicker/DatePickerDay/styled.d.ts +1 -1
  36. package/esm/DropdownButton/DropdownButton.d.ts +1 -1
  37. package/esm/DropdownButton/styles.d.ts +1 -8
  38. package/esm/DropdownButton/styles.js +1 -9
  39. package/esm/IconButton/IconButton.d.ts +1 -1
  40. package/esm/IconButton/styled.d.ts +2 -1
  41. package/esm/IconDropdownButton/IconDropdownButton.d.ts +1 -1
  42. package/esm/IconDropdownButton/IconDropdownButton.js +2 -2
  43. package/esm/ListItem/styled.d.ts +3 -3
  44. package/esm/ListItemButton/styled.d.ts +1 -1
  45. package/esm/MenuGroup/stories/styled.d.ts +1 -1
  46. package/esm/MenuItem/styled.d.ts +1 -1
  47. package/esm/Notification/NotificationTemplate/styled.d.ts +1 -1
  48. package/esm/Product/Product.d.ts +1 -1
  49. package/esm/Profile/styled.d.ts +1 -1
  50. package/esm/Select/styled.d.ts +1 -1
  51. package/esm/ThemeProvider/ThemeProvider.d.ts +4 -4
  52. package/esm/ThemeProvider/ThemeProvider.js +2 -2
  53. package/esm/theme/components/MuiButton.js +10 -1
  54. package/esm/theme/components/MuiLoadingButton.js +1 -19
  55. package/package.json +2 -2
  56. package/theme/components/MuiButton.js +18 -9
  57. package/theme/components/MuiLoadingButton.js +2 -20
  58. package/IconDropdownButton/styles.d.ts +0 -11
  59. package/IconDropdownButton/styles.js +0 -19
  60. package/esm/IconDropdownButton/styles.d.ts +0 -11
  61. package/esm/IconDropdownButton/styles.js +0 -16
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const ProfileRoot: import("@emotion/styled").StyledComponent<Pick<import("../Button").ButtonProps, "disabled" | "component" | "href" | "onFocusVisible" | "tabIndex" | "type" | "action" | "children" | "form" | "slot" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "size" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition"> & import("react").RefAttributes<HTMLButtonElement> & {
2
+ export declare const ProfileRoot: import("@emotion/styled").StyledComponent<Pick<import("../Button").ButtonProps, "disabled" | "component" | "href" | "onFocusVisible" | "tabIndex" | "type" | "action" | "children" | "form" | "slot" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "size" | "variant" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition"> & import("react").RefAttributes<HTMLButtonElement> & {
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  }, {}, {}>;
5
5
  export declare const ProfileUser: import("@emotion/styled").StyledComponent<{
@@ -34,6 +34,6 @@ export declare const Placeholder: import("@emotion/styled").StyledComponent<{
34
34
  touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
35
35
  }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "tabIndex" | "children" | "className" | "slot" | "style" | "title" | "key" | "css" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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"> & {
36
36
  ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
37
- }, "disabled" | "onFocusVisible" | "tabIndex" | "action" | "children" | "autoFocus" | "dense" | "divider" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters"> & {
37
+ }, "disabled" | "onFocusVisible" | "tabIndex" | "action" | "children" | "autoFocus" | "dense" | "selected" | "divider" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableGutters"> & {
38
38
  theme?: import("@emotion/react").Theme | undefined;
39
39
  }, {}, {}>;
@@ -1,7 +1,7 @@
1
- import { FC } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  import { Theme } from '../theme';
3
- declare type Props = {
3
+ export declare type ThemeProviderProps = {
4
4
  theme: Theme;
5
+ children: ReactNode;
5
6
  };
6
- export declare const ThemeProvider: FC<Props>;
7
- export {};
7
+ export declare const ThemeProvider: FC<ThemeProviderProps>;
@@ -13,7 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  import { ThemeProvider as MuiThemeProvider } from '@mui/material';
14
14
  import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
15
15
  import { GlobalStyles } from '../GlobalStyles';
16
- export var ThemeProvider = function (_a) {
17
- var theme = _a.theme, children = _a.children;
16
+ export var ThemeProvider = function (props) {
17
+ var theme = props.theme, children = props.children;
18
18
  return (_jsx(MuiThemeProvider, __assign({ theme: theme }, { children: _jsxs(EmotionThemeProvider, __assign({ theme: theme }, { children: [_jsx(GlobalStyles, {}, void 0), children] }), void 0) }), void 0));
19
19
  };
@@ -1,4 +1,4 @@
1
- import { ButtonStates } from '../../ButtonBase/constants';
1
+ import { ButtonStates } from '../../ButtonBase';
2
2
  import { getBgColor, getButtonHeight, getButtonPadding, getColor, getDisabledBgColor, } from '../../ButtonBase/styled';
3
3
  export var MuiButton = {
4
4
  defaultProps: {
@@ -9,15 +9,18 @@ export var MuiButton = {
9
9
  var ownerState = _a.ownerState, theme = _a.theme;
10
10
  var customVariant = ownerState.variant;
11
11
  var customColor = ownerState.color;
12
+ var selected = ownerState.selected;
12
13
  return {
13
14
  display: 'inline-flex',
14
15
  color: getColor({
16
+ selected: selected,
15
17
  theme: theme,
16
18
  customVariant: customVariant,
17
19
  customColor: customColor,
18
20
  buttonState: ButtonStates.DEFAULT,
19
21
  }),
20
22
  backgroundColor: getBgColor({
23
+ selected: selected,
21
24
  customColor: customColor,
22
25
  customVariant: customVariant,
23
26
  buttonState: ButtonStates.DEFAULT,
@@ -39,12 +42,14 @@ export var MuiButton = {
39
42
  boxShadow: 'none',
40
43
  '&:hover': {
41
44
  color: getColor({
45
+ selected: selected,
42
46
  theme: theme,
43
47
  customVariant: customVariant,
44
48
  customColor: customColor,
45
49
  buttonState: ButtonStates.HOVER,
46
50
  }),
47
51
  backgroundColor: getBgColor({
52
+ selected: selected,
48
53
  customColor: customColor,
49
54
  customVariant: customVariant,
50
55
  theme: theme,
@@ -54,12 +59,14 @@ export var MuiButton = {
54
59
  },
55
60
  '&:active': {
56
61
  color: getColor({
62
+ selected: selected,
57
63
  customColor: customColor,
58
64
  customVariant: customVariant,
59
65
  theme: theme,
60
66
  buttonState: ButtonStates.ACTIVE,
61
67
  }),
62
68
  backgroundColor: getBgColor({
69
+ selected: selected,
63
70
  customColor: customColor,
64
71
  customVariant: customVariant,
65
72
  theme: theme,
@@ -76,12 +83,14 @@ export var MuiButton = {
76
83
  },
77
84
  '&.Mui-focusVisible': {
78
85
  color: getColor({
86
+ selected: selected,
79
87
  theme: theme,
80
88
  customVariant: customVariant,
81
89
  customColor: customColor,
82
90
  buttonState: ButtonStates.FOCUS,
83
91
  }),
84
92
  backgroundColor: getBgColor({
93
+ selected: selected,
85
94
  customColor: customColor,
86
95
  customVariant: customVariant,
87
96
  theme: theme,
@@ -1,16 +1,5 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
1
  import { loadingButtonClasses } from '@mui/lab';
13
- import { ButtonStates } from '../../ButtonBase/constants';
2
+ import { ButtonStates } from '../../ButtonBase';
14
3
  import { getBgColor } from '../../ButtonBase/styled';
15
4
  export var MuiLoadingButton = {
16
5
  defaultProps: {
@@ -33,13 +22,6 @@ export var MuiLoadingButton = {
33
22
  },
34
23
  _b;
35
24
  },
36
- loadingIndicator: function (_a) {
37
- var ownerState = _a.ownerState, theme = _a.theme;
38
- var customVariant = ownerState.variant;
39
- return __assign({}, (customVariant === 'contained' && {
40
- color: theme.palette.primary.contrastText,
41
- }));
42
- },
43
25
  },
44
26
  };
45
27
  export default MuiLoadingButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.34.0",
3
+ "version": "0.37.0",
4
4
  "browser": "./src/index.ts",
5
5
  "jest": {
6
6
  "moduleNameMapper": {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "dependencies": {
11
- "@astral/icons": "^0.34.0",
11
+ "@astral/icons": "^0.37.0",
12
12
  "@emotion/cache": "11.7.1",
13
13
  "@emotion/react": "11.9.0",
14
14
  "@emotion/server": "11.4.0",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MuiButton = void 0;
4
- var constants_1 = require("../../ButtonBase/constants");
4
+ var ButtonBase_1 = require("../../ButtonBase");
5
5
  var styled_1 = require("../../ButtonBase/styled");
6
6
  exports.MuiButton = {
7
7
  defaultProps: {
@@ -12,18 +12,21 @@ exports.MuiButton = {
12
12
  var ownerState = _a.ownerState, theme = _a.theme;
13
13
  var customVariant = ownerState.variant;
14
14
  var customColor = ownerState.color;
15
+ var selected = ownerState.selected;
15
16
  return {
16
17
  display: 'inline-flex',
17
18
  color: (0, styled_1.getColor)({
19
+ selected: selected,
18
20
  theme: theme,
19
21
  customVariant: customVariant,
20
22
  customColor: customColor,
21
- buttonState: constants_1.ButtonStates.DEFAULT,
23
+ buttonState: ButtonBase_1.ButtonStates.DEFAULT,
22
24
  }),
23
25
  backgroundColor: (0, styled_1.getBgColor)({
26
+ selected: selected,
24
27
  customColor: customColor,
25
28
  customVariant: customVariant,
26
- buttonState: constants_1.ButtonStates.DEFAULT,
29
+ buttonState: ButtonBase_1.ButtonStates.DEFAULT,
27
30
  theme: theme,
28
31
  }),
29
32
  height: (0, styled_1.getButtonHeight)({
@@ -42,31 +45,35 @@ exports.MuiButton = {
42
45
  boxShadow: 'none',
43
46
  '&:hover': {
44
47
  color: (0, styled_1.getColor)({
48
+ selected: selected,
45
49
  theme: theme,
46
50
  customVariant: customVariant,
47
51
  customColor: customColor,
48
- buttonState: constants_1.ButtonStates.HOVER,
52
+ buttonState: ButtonBase_1.ButtonStates.HOVER,
49
53
  }),
50
54
  backgroundColor: (0, styled_1.getBgColor)({
55
+ selected: selected,
51
56
  customColor: customColor,
52
57
  customVariant: customVariant,
53
58
  theme: theme,
54
- buttonState: constants_1.ButtonStates.HOVER,
59
+ buttonState: ButtonBase_1.ButtonStates.HOVER,
55
60
  }),
56
61
  boxShadow: 'none',
57
62
  },
58
63
  '&:active': {
59
64
  color: (0, styled_1.getColor)({
65
+ selected: selected,
60
66
  customColor: customColor,
61
67
  customVariant: customVariant,
62
68
  theme: theme,
63
- buttonState: constants_1.ButtonStates.ACTIVE,
69
+ buttonState: ButtonBase_1.ButtonStates.ACTIVE,
64
70
  }),
65
71
  backgroundColor: (0, styled_1.getBgColor)({
72
+ selected: selected,
66
73
  customColor: customColor,
67
74
  customVariant: customVariant,
68
75
  theme: theme,
69
- buttonState: constants_1.ButtonStates.ACTIVE,
76
+ buttonState: ButtonBase_1.ButtonStates.ACTIVE,
70
77
  }),
71
78
  outline: 'none',
72
79
  },
@@ -79,16 +86,18 @@ exports.MuiButton = {
79
86
  },
80
87
  '&.Mui-focusVisible': {
81
88
  color: (0, styled_1.getColor)({
89
+ selected: selected,
82
90
  theme: theme,
83
91
  customVariant: customVariant,
84
92
  customColor: customColor,
85
- buttonState: constants_1.ButtonStates.FOCUS,
93
+ buttonState: ButtonBase_1.ButtonStates.FOCUS,
86
94
  }),
87
95
  backgroundColor: (0, styled_1.getBgColor)({
96
+ selected: selected,
88
97
  customColor: customColor,
89
98
  customVariant: customVariant,
90
99
  theme: theme,
91
- buttonState: constants_1.ButtonStates.FOCUS,
100
+ buttonState: ButtonBase_1.ButtonStates.FOCUS,
92
101
  }),
93
102
  outline: "2px solid ".concat(theme.palette.primary['400']),
94
103
  boxShadow: 'none',
@@ -1,19 +1,8 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.MuiLoadingButton = void 0;
15
4
  var lab_1 = require("@mui/lab");
16
- var constants_1 = require("../../ButtonBase/constants");
5
+ var ButtonBase_1 = require("../../ButtonBase");
17
6
  var styled_1 = require("../../ButtonBase/styled");
18
7
  exports.MuiLoadingButton = {
19
8
  defaultProps: {
@@ -31,18 +20,11 @@ exports.MuiLoadingButton = {
31
20
  customColor: customColor,
32
21
  customVariant: customVariant,
33
22
  theme: theme,
34
- buttonState: constants_1.ButtonStates.DEFAULT,
23
+ buttonState: ButtonBase_1.ButtonStates.DEFAULT,
35
24
  }),
36
25
  },
37
26
  _b;
38
27
  },
39
- loadingIndicator: function (_a) {
40
- var ownerState = _a.ownerState, theme = _a.theme;
41
- var customVariant = ownerState.variant;
42
- return __assign({}, (customVariant === 'contained' && {
43
- color: theme.palette.primary.contrastText,
44
- }));
45
- },
46
28
  },
47
29
  };
48
30
  exports.default = exports.MuiLoadingButton;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { BaseButtonProps } from '../ButtonBase';
3
- export declare const IconDropdownButtonWrapper: import("@emotion/styled").StyledComponent<Pick<BaseButtonProps, keyof import("@mui/base").ButtonUnstyledOwnProps | "form" | "slot" | "style" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "size" | "variant"> & import("react").RefAttributes<HTMLButtonElement> & {
4
- theme?: import("@emotion/react").Theme | undefined;
5
- } & Omit<import("@mui/base/ButtonUnstyled/ButtonUnstyledProps").default<"button", {}>, "color" | "size" | "variant"> & {
6
- color?: "primary" | "error" | "success" | "warning" | undefined;
7
- variant?: "link" | "light" | "contained" | "text" | undefined;
8
- size?: "large" | "medium" | undefined;
9
- } & {
10
- selected: boolean;
11
- }, {}, {}>;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.IconDropdownButtonWrapper = void 0;
8
- var styles_1 = require("../styles");
9
- var IconButton_1 = require("../IconButton");
10
- exports.IconDropdownButtonWrapper = (0, styles_1.styled)(IconButton_1.IconButton, {
11
- shouldForwardProp: function (prop) { return prop !== 'selected'; },
12
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n background-color: ", ";\n"], ["\n color: ", ";\n\n background-color: ", ";\n"])), function (_a) {
13
- var selected = _a.selected, theme = _a.theme;
14
- return selected ? theme.palette.primary.contrastText : 'default';
15
- }, function (_a) {
16
- var selected = _a.selected, theme = _a.theme;
17
- return selected ? theme.palette.grey['900'] : 'default';
18
- });
19
- var templateObject_1;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { BaseButtonProps } from '../ButtonBase';
3
- export declare const IconDropdownButtonWrapper: import("@emotion/styled").StyledComponent<Pick<BaseButtonProps, keyof import("@mui/base").ButtonUnstyledOwnProps | "form" | "slot" | "style" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "size" | "variant"> & import("react").RefAttributes<HTMLButtonElement> & {
4
- theme?: import("@emotion/react").Theme | undefined;
5
- } & Omit<import("@mui/base/ButtonUnstyled/ButtonUnstyledProps").default<"button", {}>, "color" | "size" | "variant"> & {
6
- color?: "primary" | "error" | "success" | "warning" | undefined;
7
- variant?: "link" | "light" | "contained" | "text" | undefined;
8
- size?: "large" | "medium" | undefined;
9
- } & {
10
- selected: boolean;
11
- }, {}, {}>;
@@ -1,16 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { styled } from '../styles';
6
- import { IconButton } from '../IconButton';
7
- export var IconDropdownButtonWrapper = styled(IconButton, {
8
- shouldForwardProp: function (prop) { return prop !== 'selected'; },
9
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n background-color: ", ";\n"], ["\n color: ", ";\n\n background-color: ", ";\n"])), function (_a) {
10
- var selected = _a.selected, theme = _a.theme;
11
- return selected ? theme.palette.primary.contrastText : 'default';
12
- }, function (_a) {
13
- var selected = _a.selected, theme = _a.theme;
14
- return selected ? theme.palette.grey['900'] : 'default';
15
- });
16
- var templateObject_1;