@basic-ui/material 1.0.0-alpha.49 → 1.0.0-alpha.50
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/build/cjs/index.js +70 -0
- package/build/cjs/index.js.map +1 -1
- package/build/esm/Chip/ButtonChip.d.ts +1 -1
- package/build/esm/SearchBar/SearchBar.d.ts +15 -0
- package/build/esm/SearchBar/SearchBar.js +90 -0
- package/build/esm/SearchBar/SearchBar.js.map +1 -0
- package/build/esm/SearchBar/index.d.ts +1 -0
- package/build/esm/SearchBar/index.js +2 -0
- package/build/esm/SearchBar/index.js.map +1 -0
- package/build/esm/Select/CustomContainerExample.d.ts +1 -1
- package/build/esm/Table/TableHead.d.ts +1 -1
- package/build/esm/TextField/IconContainer.js.map +1 -1
- package/build/esm/index.d.ts +1 -0
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/tsconfig-build.tsbuildinfo +1 -1
- package/package.json +2 -3
- package/src/Combobox/Combobox.story.tsx +157 -157
- package/src/SearchBar/SearchBar.story.tsx +98 -0
- package/src/SearchBar/SearchBar.tsx +105 -0
- package/src/SearchBar/index.ts +1 -0
- package/src/TextField/IconContainer.tsx +33 -33
- package/src/TextField/TextField.story.tsx +240 -241
- package/src/index.ts +42 -41
|
@@ -6,4 +6,4 @@ export declare type ButtonChipProps = ChipBaseProps & {
|
|
|
6
6
|
leadingIcon?: ReactNode;
|
|
7
7
|
trailingIcon?: ReactNode;
|
|
8
8
|
};
|
|
9
|
-
export declare const ButtonChip: import("react").ForwardRefExoticComponent<Pick<ButtonChipProps, "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>>> | "
|
|
9
|
+
export declare const ButtonChip: import("react").ForwardRefExoticComponent<Pick<ButtonChipProps, "children" | "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>>> | "checked" | "disabled" | "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" | "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" | "leadingIcon" | "trailingIcon" | "borderOpacity"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { BoxProps } from '../Box';
|
|
3
|
+
interface InputProps extends BoxProps<HTMLInputElement, InputHTMLAttributes<HTMLInputElement>> {
|
|
4
|
+
as?: 'input';
|
|
5
|
+
}
|
|
6
|
+
export declare type SearchBarProps = InputProps & {
|
|
7
|
+
containerProps?: Omit<BoxProps, 'color'>;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
error?: boolean | string;
|
|
11
|
+
leadingIcon?: ReactNode;
|
|
12
|
+
trailingIcon?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
export declare const SearchBar: import("react").ForwardRefExoticComponent<Pick<SearchBarProps, "position" | "children" | "form" | "p" | "slot" | "style" | "title" | "pattern" | "__css" | "left" | "right" | "bottom" | "top" | "hidden" | "as" | "sx" | "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" | "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" | "zIndex" | "boxShadow" | "textShadow" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "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" | "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" | "containerProps" | "error" | "leadingIcon" | "trailingIcon"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["type", "id", "color", "value", "defaultValue", "error", "onChange", "leadingIcon", "trailingIcon", "containerProps", "variant", "__css"],
|
|
5
|
+
_excluded2 = ["__css"];
|
|
6
|
+
import { forwardRef, useId } from 'react';
|
|
7
|
+
import { useControlledState } from '@basic-ui/core';
|
|
8
|
+
import { rem } from 'polished';
|
|
9
|
+
import { Box } from '../Box';
|
|
10
|
+
import { Input } from '../TextField/Input';
|
|
11
|
+
import { IconContainer } from '../TextField/IconContainer';
|
|
12
|
+
import { EASING_STANDARD } from '../motion';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
export var SearchBar = /*#__PURE__*/forwardRef(function SearchBar(props, forwardedRef) {
|
|
16
|
+
var _props$type = props.type,
|
|
17
|
+
type = _props$type === void 0 ? 'text' : _props$type,
|
|
18
|
+
idProp = props.id,
|
|
19
|
+
_props$color = props.color,
|
|
20
|
+
color = _props$color === void 0 ? 'primary' : _props$color,
|
|
21
|
+
valueProp = props.value,
|
|
22
|
+
_props$defaultValue = props.defaultValue,
|
|
23
|
+
defaultValue = _props$defaultValue === void 0 ? '' : _props$defaultValue,
|
|
24
|
+
error = props.error,
|
|
25
|
+
onChangeProp = props.onChange,
|
|
26
|
+
_props$leadingIcon = props.leadingIcon,
|
|
27
|
+
leadingIcon = _props$leadingIcon === void 0 ? null : _props$leadingIcon,
|
|
28
|
+
_props$trailingIcon = props.trailingIcon,
|
|
29
|
+
trailingIcon = _props$trailingIcon === void 0 ? null : _props$trailingIcon,
|
|
30
|
+
containerProps = props.containerProps,
|
|
31
|
+
variant = props.variant,
|
|
32
|
+
__css = props.__css,
|
|
33
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
34
|
+
|
|
35
|
+
var _ref = containerProps || {},
|
|
36
|
+
__containerCss = _ref.__css,
|
|
37
|
+
otherContainerProps = _objectWithoutProperties(_ref, _excluded2);
|
|
38
|
+
|
|
39
|
+
var _useControlledState = useControlledState(valueProp, onChangeProp, defaultValue, function (setState) {
|
|
40
|
+
return function (e) {
|
|
41
|
+
setState(e.target.value);
|
|
42
|
+
};
|
|
43
|
+
}),
|
|
44
|
+
_useControlledState2 = _slicedToArray(_useControlledState, 2),
|
|
45
|
+
value = _useControlledState2[0],
|
|
46
|
+
onChange = _useControlledState2[1];
|
|
47
|
+
|
|
48
|
+
var fallbackId = useId();
|
|
49
|
+
var hasError = Boolean(error);
|
|
50
|
+
var id = idProp || fallbackId;
|
|
51
|
+
var inputId = "".concat(id, "-search-bar");
|
|
52
|
+
return /*#__PURE__*/_jsxs(Box, _extends(_extends({
|
|
53
|
+
__css: _extends({
|
|
54
|
+
display: 'inline-flex',
|
|
55
|
+
position: 'relative'
|
|
56
|
+
}, __containerCss)
|
|
57
|
+
}, otherContainerProps), {}, {
|
|
58
|
+
children: [/*#__PURE__*/_jsx(Input, _extends({
|
|
59
|
+
__css: _extends({
|
|
60
|
+
borderRadius: 'full',
|
|
61
|
+
backgroundColor: 'surface-container-high',
|
|
62
|
+
height: "3.5rem",
|
|
63
|
+
pl: leadingIcon ? "3rem" : "1.5rem",
|
|
64
|
+
pr: trailingIcon ? "3rem" : "1.5rem",
|
|
65
|
+
py: 0,
|
|
66
|
+
transition: "outline-color .2s ".concat(EASING_STANDARD),
|
|
67
|
+
outlineStyle: 'solid',
|
|
68
|
+
outlineWidth: "0.125rem",
|
|
69
|
+
outlineColor: 'transparent',
|
|
70
|
+
outlineOffset: rem(-1),
|
|
71
|
+
'&:focus': {
|
|
72
|
+
outlineColor: hasError ? 'error' : color
|
|
73
|
+
}
|
|
74
|
+
}, __css),
|
|
75
|
+
type: type,
|
|
76
|
+
ref: forwardedRef,
|
|
77
|
+
hasLabel: false,
|
|
78
|
+
id: inputId,
|
|
79
|
+
value: value,
|
|
80
|
+
onChange: onChange
|
|
81
|
+
}, otherProps)), leadingIcon && /*#__PURE__*/_jsx(IconContainer, {
|
|
82
|
+
position: "start",
|
|
83
|
+
children: leadingIcon
|
|
84
|
+
}), trailingIcon && /*#__PURE__*/_jsx(IconContainer, {
|
|
85
|
+
position: "end",
|
|
86
|
+
children: trailingIcon
|
|
87
|
+
})]
|
|
88
|
+
}));
|
|
89
|
+
});
|
|
90
|
+
//# sourceMappingURL=SearchBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchBar.js","names":["forwardRef","useId","useControlledState","rem","Box","Input","IconContainer","EASING_STANDARD","SearchBar","props","forwardedRef","type","idProp","id","color","valueProp","value","defaultValue","error","onChangeProp","onChange","leadingIcon","trailingIcon","containerProps","variant","__css","otherProps","__containerCss","otherContainerProps","setState","e","target","fallbackId","hasError","Boolean","inputId","display","position","borderRadius","backgroundColor","height","pl","pr","py","transition","outlineStyle","outlineWidth","outlineColor","outlineOffset"],"sources":["../../../src/SearchBar/SearchBar.tsx"],"sourcesContent":["import type { InputHTMLAttributes, ReactNode } from 'react';\nimport { forwardRef, useId } from 'react';\nimport { useControlledState } from '@basic-ui/core';\nimport { rem } from 'polished';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport { Input } from '../TextField/Input';\nimport { IconContainer } from '../TextField/IconContainer';\nimport { EASING_STANDARD } from '../motion';\n\ninterface InputProps\n extends BoxProps<HTMLInputElement, InputHTMLAttributes<HTMLInputElement>> {\n as?: 'input';\n}\n\nexport type SearchBarProps = InputProps & {\n containerProps?: Omit<BoxProps, 'color'>;\n defaultValue?: string;\n value?: string;\n error?: boolean | string;\n leadingIcon?: ReactNode;\n trailingIcon?: ReactNode;\n};\n\nexport const SearchBar = forwardRef<HTMLInputElement, SearchBarProps>(\n function SearchBar(props, forwardedRef) {\n const {\n type = 'text',\n id: idProp,\n color = 'primary',\n value: valueProp,\n defaultValue = '',\n error,\n onChange: onChangeProp,\n leadingIcon = null,\n trailingIcon = null,\n containerProps,\n variant,\n __css,\n ...otherProps\n } = props;\n const { __css: __containerCss, ...otherContainerProps } =\n containerProps || {};\n const [value, onChange] = useControlledState(\n valueProp,\n onChangeProp,\n defaultValue,\n (setState) => (e) => {\n setState(e.target.value);\n }\n );\n\n const fallbackId = useId();\n\n const hasError = Boolean(error);\n\n const id = idProp || fallbackId;\n const inputId = `${id}-search-bar`;\n\n return (\n <Box\n __css={{\n display: 'inline-flex',\n position: 'relative',\n ...__containerCss,\n }}\n {...otherContainerProps}\n >\n <Input\n __css={{\n borderRadius: 'full',\n backgroundColor: 'surface-container-high',\n height: rem(56),\n pl: leadingIcon ? rem(48) : rem(24),\n pr: trailingIcon ? rem(48) : rem(24),\n py: 0,\n transition: `outline-color .2s ${EASING_STANDARD}`,\n outlineStyle: 'solid',\n outlineWidth: rem(2),\n outlineColor: 'transparent',\n outlineOffset: rem(-1),\n '&:focus': {\n outlineColor: hasError ? ('error' as const) : (color as any),\n },\n ...__css,\n }}\n type={type}\n ref={forwardedRef}\n hasLabel={false}\n id={inputId}\n value={value}\n onChange={onChange}\n {...otherProps}\n />\n {leadingIcon && (\n <IconContainer position=\"start\">{leadingIcon}</IconContainer>\n )}\n {trailingIcon && (\n <IconContainer position=\"end\">{trailingIcon}</IconContainer>\n )}\n </Box>\n );\n }\n);\n"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchBar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/SearchBar/index.ts"],"sourcesContent":["export * from './SearchBar';\n"],"mappings":"AAAA,cAAc,aAAd"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FilledContainerProps } from '../';
|
|
3
|
-
export declare const CustomContainer: import("react").ForwardRefExoticComponent<Pick<FilledContainerProps, "
|
|
3
|
+
export declare const CustomContainer: import("react").ForwardRefExoticComponent<Pick<FilledContainerProps, "position" | "children" | "label" | "p" | "slot" | "style" | "title" | "__css" | "left" | "right" | "bottom" | "top" | "hidden" | "as" | "sx" | "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" | "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" | "zIndex" | "boxShadow" | "textShadow" | "disabled" | "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" | "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" | "error" | "leadingIcon" | "hasFocus" | "labelIsFloating" | "inputId" | "forceActive"> & 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, "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" | "
|
|
4
|
+
export declare const TableHead: import("react").ForwardRefExoticComponent<Pick<TableBodyProps, "children" | "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" | "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>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconContainer.js","names":["rem","Box","alpha","ICON_WIDTH","PADDING_LEFT_WITH_ICON","IconContainer","position","children","top"],"sources":["../../../src/TextField/IconContainer.tsx"],"sourcesContent":["import { rem } from 'polished';\
|
|
1
|
+
{"version":3,"file":"IconContainer.js","names":["rem","Box","alpha","ICON_WIDTH","PADDING_LEFT_WITH_ICON","IconContainer","position","children","top"],"sources":["../../../src/TextField/IconContainer.tsx"],"sourcesContent":["import { rem } from 'polished';\nimport type { FC, ReactNode } from 'react';\n\nimport { Box } from '../Box';\nimport { alpha } from '../color';\nimport { ICON_WIDTH, PADDING_LEFT_WITH_ICON } from './consts';\n\nexport const IconContainer: FC<{\n children?: ReactNode;\n position: 'start' | 'end';\n}> = ({ position, children }) => (\n <Box\n position=\"absolute\"\n __css={{\n top: 0,\n [position === 'start' ? 'left' : 'right']: rem(PADDING_LEFT_WITH_ICON),\n minWidth: rem(ICON_WIDTH),\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: '100%',\n pointerEvents: 'none',\n color: alpha('on.surface', 0.54),\n zIndex: 1,\n fontFamily: 'body',\n lineHeight: 'body',\n fontWeight: 'regular',\n fontSize: 3,\n }}\n >\n {children}\n </Box>\n);\n"],"mappings":";AAAA,SAASA,GAAT,QAAoB,UAApB;AAGA,SAASC,GAAT,QAAoB,QAApB;AACA,SAASC,KAAT,QAAsB,UAAtB;AACA,SAASC,UAAT,EAAqBC,sBAArB,QAAmD,UAAnD;;AAEA,OAAO,IAAMC,aAGX,GAAG,SAHQA,aAGR;EAAA;;EAAA,IAAGC,QAAH,QAAGA,QAAH;EAAA,IAAaC,QAAb,QAAaA,QAAb;EAAA,oBACH,KAAC,GAAD;IACE,QAAQ,EAAC,UADX;IAEE,KAAK;MACHC,GAAG,EAAE;IADF,0BAEFF,QAAQ,KAAK,OAAb,GAAuB,MAAvB,GAAgC,OAF9B,EAEwCN,GAAG,CAACI,sBAAD,CAF3C,sCAGOJ,GAAG,CAACG,UAAD,CAHV,qCAIM,aAJN,wCAKS,QALT,4CAMa,QANb,oCAOK,MAPL,2CAQY,MARZ,mCASID,KAAK,CAAC,YAAD,EAAe,IAAf,CATT,oCAUK,CAVL,wCAWS,MAXT,wCAYS,MAZT,wCAaS,SAbT,sCAcO,CAdP,SAFP;IAAA,UAmBGK;EAnBH,EADG;AAAA,CAHE"}
|
package/build/esm/index.d.ts
CHANGED
package/build/esm/index.js
CHANGED
package/build/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from './AppBar';\
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from './AppBar';\nexport * from './Alert';\nexport * from './Badge';\nexport * from './BaseLine';\nexport * from './BottomSheet';\nexport * from './Box';\nexport * from './Button';\nexport * from './Combobox';\nexport * from './CheckBox';\nexport * from './Chip';\nexport * from './Divider';\nexport * from './Dialog';\nexport * from './FloatingLabel';\nexport * from './LineRipple';\nexport * from './Link';\nexport * from './List';\nexport * from './ListItem';\nexport * from './Menu';\nexport * from './NavRail';\nexport * from './NotchedOutline';\nexport * from './Paper';\nexport * from './Popover';\nexport * from './ProgressSpinner';\nexport * from './RadioButton';\nexport * from './Ripple';\nexport * from './SearchBar';\nexport * from './Select';\nexport * from './SelectItem';\nexport * from './Skeleton';\nexport * from './Slider';\nexport * from './Snackbar';\nexport * from './Switch';\nexport * from './Tab';\nexport * from './TabIndicator';\nexport * from './Table';\nexport * from './Text';\nexport * from './TextField';\nexport * from './Tooltip';\nexport * from './motion';\nexport * from './theme';\nexport * from './color';\nexport * from './hooks/useAnimation';\n"],"mappings":"AAAA,cAAc,UAAd;AACA,cAAc,SAAd;AACA,cAAc,SAAd;AACA,cAAc,YAAd;AACA,cAAc,eAAd;AACA,cAAc,OAAd;AACA,cAAc,UAAd;AACA,cAAc,YAAd;AACA,cAAc,YAAd;AACA,cAAc,QAAd;AACA,cAAc,WAAd;AACA,cAAc,UAAd;AACA,cAAc,iBAAd;AACA,cAAc,cAAd;AACA,cAAc,QAAd;AACA,cAAc,QAAd;AACA,cAAc,YAAd;AACA,cAAc,QAAd;AACA,cAAc,WAAd;AACA,cAAc,kBAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd;AACA,cAAc,mBAAd;AACA,cAAc,eAAd;AACA,cAAc,UAAd;AACA,cAAc,aAAd;AACA,cAAc,UAAd;AACA,cAAc,cAAd;AACA,cAAc,YAAd;AACA,cAAc,UAAd;AACA,cAAc,YAAd;AACA,cAAc,UAAd;AACA,cAAc,OAAd;AACA,cAAc,gBAAd;AACA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,aAAd;AACA,cAAc,WAAd;AACA,cAAc,UAAd;AACA,cAAc,SAAd;AACA,cAAc,SAAd;AACA,cAAc,sBAAd"}
|