@astral/ui 0.5.1 → 0.6.1-test.13
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.
- package/Autocomplete/Autocomplete.d.ts +3 -0
- package/Autocomplete/Autocomplete.js +48 -0
- package/Autocomplete/constants.d.ts +4 -0
- package/Autocomplete/constants.js +8 -0
- package/Autocomplete/index.d.ts +2 -0
- package/Autocomplete/index.js +14 -0
- package/Autocomplete/types.d.ts +7 -0
- package/Autocomplete/types.js +2 -0
- package/Badge/styled.d.ts +5 -5
- package/Radio/Radio.d.ts +1 -1
- package/esm/Autocomplete/Autocomplete.d.ts +3 -0
- package/esm/Autocomplete/Autocomplete.js +44 -0
- package/esm/Autocomplete/constants.d.ts +4 -0
- package/esm/Autocomplete/constants.js +5 -0
- package/esm/Autocomplete/index.d.ts +2 -0
- package/esm/Autocomplete/index.js +2 -0
- package/esm/Autocomplete/types.d.ts +7 -0
- package/esm/Autocomplete/types.js +1 -0
- package/esm/Badge/styled.d.ts +5 -5
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/theme/components/MuiAutocomplete.d.ts +3 -0
- package/esm/theme/components/MuiAutocomplete.js +23 -0
- package/esm/theme/components/components.js +2 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +6 -6
- package/theme/components/MuiAutocomplete.d.ts +3 -0
- package/theme/components/MuiAutocomplete.js +26 -0
- package/theme/components/components.js +2 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AutocompleteProps } from './types';
|
|
3
|
+
export declare const Autocomplete: <AutocompleteValueProps, Multiple extends boolean, DisableClearable extends boolean, FreeSolo extends boolean>({ multiple, placeholder, error, success, helperText, label, size, getOptionLabel, ...props }: AutocompleteProps<AutocompleteValueProps, Multiple, DisableClearable, FreeSolo>) => JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.Autocomplete = void 0;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
var material_1 = require("@mui/material");
|
|
28
|
+
var icons_1 = require("@astral/icons");
|
|
29
|
+
var TextField_1 = require("../TextField");
|
|
30
|
+
var Tag_1 = require("../Tag");
|
|
31
|
+
var MenuItem_1 = require("../MenuItem");
|
|
32
|
+
var Checkbox_1 = require("../Checkbox");
|
|
33
|
+
var Autocomplete = function (_a) {
|
|
34
|
+
var multiple = _a.multiple, placeholder = _a.placeholder, error = _a.error, success = _a.success, helperText = _a.helperText, label = _a.label, _b = _a.size, size = _b === void 0 ? 'medium' : _b, getOptionLabel = _a.getOptionLabel, props = __rest(_a, ["multiple", "placeholder", "error", "success", "helperText", "label", "size", "getOptionLabel"]);
|
|
35
|
+
var renderTags = function (tags, getTagProps) {
|
|
36
|
+
return tags.map(function (tag, index) {
|
|
37
|
+
var title = (getOptionLabel && getOptionLabel(tag)) || '';
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(Tag_1.Tag, __assign({ deleteIcon: (0, jsx_runtime_1.jsx)(icons_1.CrossSmOutlineSm, {}, void 0), color: "grey", label: title }, getTagProps({ index: index })), void 0));
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
var renderInput = function (inputParams) { return ((0, jsx_runtime_1.jsx)(TextField_1.TextField, __assign({}, inputParams, { placeholder: placeholder, label: label, success: success, error: error, helperText: helperText, size: size }), void 0)); };
|
|
42
|
+
var renderOption = function (option) {
|
|
43
|
+
var selected = Boolean(option['aria-selected']);
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(MenuItem_1.MenuItem, __assign({}, option, { children: [multiple && ((0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: selected }, void 0) }, void 0)), option.key] }), void 0));
|
|
45
|
+
};
|
|
46
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, __assign({}, props, { size: size, multiple: multiple, getOptionLabel: getOptionLabel, disableCloseOnSelect: multiple, renderTags: renderTags, renderInput: renderInput, renderOption: renderOption, popupIcon: (0, jsx_runtime_1.jsx)(icons_1.ChevronDOutlineMd, {}, void 0), clearIcon: (0, jsx_runtime_1.jsx)(icons_1.CrossSmOutlineSm, {}, void 0) }), void 0));
|
|
47
|
+
};
|
|
48
|
+
exports.Autocomplete = Autocomplete;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutocompleteSizes = void 0;
|
|
4
|
+
var AutocompleteSizes;
|
|
5
|
+
(function (AutocompleteSizes) {
|
|
6
|
+
AutocompleteSizes["medium"] = "medium";
|
|
7
|
+
AutocompleteSizes["small"] = "small";
|
|
8
|
+
})(AutocompleteSizes = exports.AutocompleteSizes || (exports.AutocompleteSizes = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./types"), exports);
|
|
14
|
+
__exportStar(require("./Autocomplete"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AutocompleteProps as MuiAutocompleteProps } from '@mui/material';
|
|
2
|
+
import { TextFieldProps } from '../TextField';
|
|
3
|
+
import { AutocompleteSizes } from './constants';
|
|
4
|
+
export declare type AutocompleteSize = `${AutocompleteSizes}`;
|
|
5
|
+
export declare type AutocompleteProps<AutocompleteValueProps, Multiple extends boolean, DisableClearable extends boolean, FreeSolo extends boolean> = Omit<MuiAutocompleteProps<AutocompleteValueProps, Multiple, DisableClearable, FreeSolo>, 'size' | 'renderInput'> & Pick<TextFieldProps, 'error' | 'success' | 'helperText' | 'label'> & {
|
|
6
|
+
size?: AutocompleteSize;
|
|
7
|
+
};
|
package/Badge/styled.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BadgeColor, BadgeProps } from './types';
|
|
3
3
|
export declare const StyledBadge: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
classes?: (Partial<import("@mui/
|
|
4
|
+
classes?: (Partial<import("@mui/base").BadgeUnstyledClasses> & {
|
|
5
5
|
colorPrimary?: string | undefined;
|
|
6
6
|
colorSecondary?: string | undefined;
|
|
7
7
|
colorError?: string | undefined;
|
|
@@ -24,18 +24,18 @@ export declare const StyledBadge: import("@emotion/styled").StyledComponent<{
|
|
|
24
24
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
25
25
|
variant?: "standard" | "dot" | undefined;
|
|
26
26
|
} & {
|
|
27
|
-
anchorOrigin?: import("@mui/
|
|
27
|
+
anchorOrigin?: import("@mui/base").BadgeOrigin | undefined;
|
|
28
28
|
components?: {
|
|
29
29
|
Root?: import("react").ElementType<any> | undefined;
|
|
30
30
|
Badge?: import("react").ElementType<any> | undefined;
|
|
31
31
|
} | undefined;
|
|
32
32
|
componentsProps?: {
|
|
33
|
-
root?: (import("react").HTMLAttributes<HTMLSpanElement> & import("@mui/
|
|
34
|
-
badge?: (import("react").HTMLAttributes<HTMLSpanElement> & import("@mui/
|
|
33
|
+
root?: (import("react").HTMLAttributes<HTMLSpanElement> & import("@mui/base").BadgeUnstyledComponentsPropsOverrides) | undefined;
|
|
34
|
+
badge?: (import("react").HTMLAttributes<HTMLSpanElement> & import("@mui/base").BadgeUnstyledComponentsPropsOverrides) | undefined;
|
|
35
35
|
} | undefined;
|
|
36
36
|
badgeContent?: import("react").ReactNode;
|
|
37
37
|
children?: import("react").ReactNode;
|
|
38
|
-
classes?: Partial<import("@mui/
|
|
38
|
+
classes?: Partial<import("@mui/base").BadgeUnstyledClasses> | undefined;
|
|
39
39
|
invisible?: boolean | undefined;
|
|
40
40
|
max?: number | undefined;
|
|
41
41
|
showZero?: boolean | undefined;
|
package/Radio/Radio.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RadioProps } from './types';
|
|
3
|
-
export declare const Radio: React.ForwardRefExoticComponent<Pick<RadioProps, "disabled" | "translate" | "action" | "required" | "classes" | "className" | "style" | "form" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "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" | "sx" | "key" | "autoFocus" | "inputProps" | "inputRef" | "name" | "readOnly" | "value" | "checkedIcon" | "icon" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | "disableFocusRipple" | "edge"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export declare const Radio: React.ForwardRefExoticComponent<Pick<RadioProps, "disabled" | "translate" | "action" | "required" | "classes" | "className" | "style" | "form" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "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" | "sx" | "key" | "autoFocus" | "inputProps" | "inputRef" | "name" | "readOnly" | "value" | "checkedIcon" | "icon" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | "disableFocusRipple" | "edge"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export default Radio;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AutocompleteProps } from './types';
|
|
3
|
+
export declare const Autocomplete: <AutocompleteValueProps, Multiple extends boolean, DisableClearable extends boolean, FreeSolo extends boolean>({ multiple, placeholder, error, success, helperText, label, size, getOptionLabel, ...props }: AutocompleteProps<AutocompleteValueProps, Multiple, DisableClearable, FreeSolo>) => JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { ListItemIcon, Autocomplete as MuiAutocomplete, } from '@mui/material';
|
|
25
|
+
import { ChevronDOutlineMd, CrossSmOutlineSm } from '@astral/icons';
|
|
26
|
+
import { TextField } from '../TextField';
|
|
27
|
+
import { Tag } from '../Tag';
|
|
28
|
+
import { MenuItem } from '../MenuItem';
|
|
29
|
+
import { Checkbox } from '../Checkbox';
|
|
30
|
+
export var Autocomplete = function (_a) {
|
|
31
|
+
var multiple = _a.multiple, placeholder = _a.placeholder, error = _a.error, success = _a.success, helperText = _a.helperText, label = _a.label, _b = _a.size, size = _b === void 0 ? 'medium' : _b, getOptionLabel = _a.getOptionLabel, props = __rest(_a, ["multiple", "placeholder", "error", "success", "helperText", "label", "size", "getOptionLabel"]);
|
|
32
|
+
var renderTags = function (tags, getTagProps) {
|
|
33
|
+
return tags.map(function (tag, index) {
|
|
34
|
+
var title = (getOptionLabel && getOptionLabel(tag)) || '';
|
|
35
|
+
return (_jsx(Tag, __assign({ deleteIcon: _jsx(CrossSmOutlineSm, {}, void 0), color: "grey", label: title }, getTagProps({ index: index })), void 0));
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var renderInput = function (inputParams) { return (_jsx(TextField, __assign({}, inputParams, { placeholder: placeholder, label: label, success: success, error: error, helperText: helperText, size: size }), void 0)); };
|
|
39
|
+
var renderOption = function (option) {
|
|
40
|
+
var selected = Boolean(option['aria-selected']);
|
|
41
|
+
return (_jsxs(MenuItem, __assign({}, option, { children: [multiple && (_jsx(ListItemIcon, { children: _jsx(Checkbox, { checked: selected }, void 0) }, void 0)), option.key] }), void 0));
|
|
42
|
+
};
|
|
43
|
+
return (_jsx(MuiAutocomplete, __assign({}, props, { size: size, multiple: multiple, getOptionLabel: getOptionLabel, disableCloseOnSelect: multiple, renderTags: renderTags, renderInput: renderInput, renderOption: renderOption, popupIcon: _jsx(ChevronDOutlineMd, {}, void 0), clearIcon: _jsx(CrossSmOutlineSm, {}, void 0) }), void 0));
|
|
44
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AutocompleteProps as MuiAutocompleteProps } from '@mui/material';
|
|
2
|
+
import { TextFieldProps } from '../TextField';
|
|
3
|
+
import { AutocompleteSizes } from './constants';
|
|
4
|
+
export declare type AutocompleteSize = `${AutocompleteSizes}`;
|
|
5
|
+
export declare type AutocompleteProps<AutocompleteValueProps, Multiple extends boolean, DisableClearable extends boolean, FreeSolo extends boolean> = Omit<MuiAutocompleteProps<AutocompleteValueProps, Multiple, DisableClearable, FreeSolo>, 'size' | 'renderInput'> & Pick<TextFieldProps, 'error' | 'success' | 'helperText' | 'label'> & {
|
|
6
|
+
size?: AutocompleteSize;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/Badge/styled.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BadgeColor, BadgeProps } from './types';
|
|
3
3
|
export declare const StyledBadge: import("@emotion/styled").StyledComponent<{
|
|
4
|
-
classes?: (Partial<import("@mui/
|
|
4
|
+
classes?: (Partial<import("@mui/base").BadgeUnstyledClasses> & {
|
|
5
5
|
colorPrimary?: string | undefined;
|
|
6
6
|
colorSecondary?: string | undefined;
|
|
7
7
|
colorError?: string | undefined;
|
|
@@ -24,18 +24,18 @@ export declare const StyledBadge: import("@emotion/styled").StyledComponent<{
|
|
|
24
24
|
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
25
25
|
variant?: "standard" | "dot" | undefined;
|
|
26
26
|
} & {
|
|
27
|
-
anchorOrigin?: import("@mui/
|
|
27
|
+
anchorOrigin?: import("@mui/base").BadgeOrigin | undefined;
|
|
28
28
|
components?: {
|
|
29
29
|
Root?: import("react").ElementType<any> | undefined;
|
|
30
30
|
Badge?: import("react").ElementType<any> | undefined;
|
|
31
31
|
} | undefined;
|
|
32
32
|
componentsProps?: {
|
|
33
|
-
root?: (import("react").HTMLAttributes<HTMLSpanElement> & import("@mui/
|
|
34
|
-
badge?: (import("react").HTMLAttributes<HTMLSpanElement> & import("@mui/
|
|
33
|
+
root?: (import("react").HTMLAttributes<HTMLSpanElement> & import("@mui/base").BadgeUnstyledComponentsPropsOverrides) | undefined;
|
|
34
|
+
badge?: (import("react").HTMLAttributes<HTMLSpanElement> & import("@mui/base").BadgeUnstyledComponentsPropsOverrides) | undefined;
|
|
35
35
|
} | undefined;
|
|
36
36
|
badgeContent?: import("react").ReactNode;
|
|
37
37
|
children?: import("react").ReactNode;
|
|
38
|
-
classes?: Partial<import("@mui/
|
|
38
|
+
classes?: Partial<import("@mui/base").BadgeUnstyledClasses> | undefined;
|
|
39
39
|
invisible?: boolean | undefined;
|
|
40
40
|
max?: number | undefined;
|
|
41
41
|
showZero?: boolean | undefined;
|
package/esm/Radio/Radio.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RadioProps } from './types';
|
|
3
|
-
export declare const Radio: React.ForwardRefExoticComponent<Pick<RadioProps, "disabled" | "translate" | "action" | "required" | "classes" | "className" | "style" | "form" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "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" | "sx" | "key" | "autoFocus" | "inputProps" | "inputRef" | "name" | "readOnly" | "value" | "checkedIcon" | "icon" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | "disableFocusRipple" | "edge"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export declare const Radio: React.ForwardRefExoticComponent<Pick<RadioProps, "disabled" | "translate" | "action" | "required" | "classes" | "className" | "style" | "form" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "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" | "sx" | "key" | "autoFocus" | "inputProps" | "inputRef" | "name" | "readOnly" | "value" | "checkedIcon" | "icon" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | "disableFocusRipple" | "edge"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export default Radio;
|
package/esm/index.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AutocompleteSizes } from '../../Autocomplete/constants';
|
|
2
|
+
export var MuiAutocomplete = {
|
|
3
|
+
styleOverrides: {
|
|
4
|
+
root: function (_a) {
|
|
5
|
+
var theme = _a.theme;
|
|
6
|
+
return {
|
|
7
|
+
padding: theme.spacing(1),
|
|
8
|
+
};
|
|
9
|
+
},
|
|
10
|
+
inputRoot: function (_a) {
|
|
11
|
+
var theme = _a.theme, size = _a.ownerState.size;
|
|
12
|
+
return {
|
|
13
|
+
paddingTop: '0 !important',
|
|
14
|
+
paddingBottom: '0 !important',
|
|
15
|
+
paddingLeft: "".concat(theme.spacing(1), " !important"),
|
|
16
|
+
minHeight: size === AutocompleteSizes.small ? '32px' : '40px',
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
clearIndicator: {
|
|
20
|
+
padding: 0,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
@@ -4,6 +4,7 @@ import { MuiFormLabel } from './MuiFormLabel';
|
|
|
4
4
|
import { MuiInputLabel } from './MuiInputLabel';
|
|
5
5
|
import { MuiOutlinedInput } from './MuiOutlinedInput';
|
|
6
6
|
import { MuiTypography } from './MuiTypography';
|
|
7
|
+
import { MuiAutocomplete } from './MuiAutocomplete';
|
|
7
8
|
var getMuiCssBaseline = function (fontUrls) { return ({
|
|
8
9
|
styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
|
|
9
10
|
}); };
|
|
@@ -60,6 +61,7 @@ export var getComponents = function (fontUrls) { return ({
|
|
|
60
61
|
MuiOutlinedInput: MuiOutlinedInput,
|
|
61
62
|
MuiFormLabel: MuiFormLabel,
|
|
62
63
|
MuiFormHelperText: MuiFormHelperText,
|
|
64
|
+
MuiAutocomplete: MuiAutocomplete,
|
|
63
65
|
MuiCheckbox: MuiCheckbox,
|
|
64
66
|
MuiMenu: MuiMenu,
|
|
65
67
|
MuiMenuItem: MuiMenuItem,
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1-test.13",
|
|
4
4
|
"browser": "./src/index.ts",
|
|
5
5
|
"jest": {
|
|
6
6
|
"moduleNameMapper": {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@astral/icons": "^0.5.1",
|
|
12
12
|
"@emotion/cache": "11.7.1",
|
|
13
|
-
"@emotion/react": "11.
|
|
13
|
+
"@emotion/react": "11.8.1",
|
|
14
14
|
"@emotion/server": "11.4.0",
|
|
15
|
-
"@emotion/styled": "11.
|
|
16
|
-
"@mui/base": "5.0.0-alpha.
|
|
17
|
-
"@mui/lab": "5.0.0-alpha.
|
|
18
|
-
"@mui/material": "5.3
|
|
15
|
+
"@emotion/styled": "11.8.1",
|
|
16
|
+
"@mui/base": "5.0.0-alpha.69",
|
|
17
|
+
"@mui/lab": "5.0.0-alpha.70",
|
|
18
|
+
"@mui/material": "5.4.3",
|
|
19
19
|
"lodash-es": "4.17.21"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiAutocomplete = void 0;
|
|
4
|
+
var constants_1 = require("../../Autocomplete/constants");
|
|
5
|
+
exports.MuiAutocomplete = {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
root: function (_a) {
|
|
8
|
+
var theme = _a.theme;
|
|
9
|
+
return {
|
|
10
|
+
padding: theme.spacing(1),
|
|
11
|
+
};
|
|
12
|
+
},
|
|
13
|
+
inputRoot: function (_a) {
|
|
14
|
+
var theme = _a.theme, size = _a.ownerState.size;
|
|
15
|
+
return {
|
|
16
|
+
paddingTop: '0 !important',
|
|
17
|
+
paddingBottom: '0 !important',
|
|
18
|
+
paddingLeft: "".concat(theme.spacing(1), " !important"),
|
|
19
|
+
minHeight: size === constants_1.AutocompleteSizes.small ? '32px' : '40px',
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
clearIndicator: {
|
|
23
|
+
padding: 0,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -7,6 +7,7 @@ var MuiFormLabel_1 = require("./MuiFormLabel");
|
|
|
7
7
|
var MuiInputLabel_1 = require("./MuiInputLabel");
|
|
8
8
|
var MuiOutlinedInput_1 = require("./MuiOutlinedInput");
|
|
9
9
|
var MuiTypography_1 = require("./MuiTypography");
|
|
10
|
+
var MuiAutocomplete_1 = require("./MuiAutocomplete");
|
|
10
11
|
var getMuiCssBaseline = function (fontUrls) { return ({
|
|
11
12
|
styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
|
|
12
13
|
}); };
|
|
@@ -63,6 +64,7 @@ var getComponents = function (fontUrls) { return ({
|
|
|
63
64
|
MuiOutlinedInput: MuiOutlinedInput_1.MuiOutlinedInput,
|
|
64
65
|
MuiFormLabel: MuiFormLabel_1.MuiFormLabel,
|
|
65
66
|
MuiFormHelperText: MuiFormHelperText_1.MuiFormHelperText,
|
|
67
|
+
MuiAutocomplete: MuiAutocomplete_1.MuiAutocomplete,
|
|
66
68
|
MuiCheckbox: MuiCheckbox,
|
|
67
69
|
MuiMenu: MuiMenu,
|
|
68
70
|
MuiMenuItem: MuiMenuItem,
|