@react95/core 5.4.1 → 5.7.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.
- package/@types/Avatar/Avatar.d.ts +8 -0
- package/@types/Avatar/index.d.ts +2 -0
- package/@types/Frame/Frame.d.ts +2 -1
- package/@types/List/ListItem.d.ts +1 -1
- package/@types/Modal/Modal.d.ts +1 -1
- package/@types/TextArea/TextArea.d.ts +1 -1
- package/@types/TitleBar/TitleBar.d.ts +19 -0
- package/@types/TitleBar/index.d.ts +2 -0
- package/@types/Tree/Node.d.ts +8 -8
- package/@types/Video/Video.d.ts +2 -1
- package/@types/Video/buttons/Fullscreen.d.ts +3 -0
- package/@types/Video/buttons/index.d.ts +2 -1
- package/@types/index.d.ts +3 -1
- package/@types/shared/test/utils.d.ts +1 -1
- package/README.md +4 -1
- package/cjs/Alert/Alert.js +10 -36
- package/cjs/Avatar/Avatar.js +63 -0
- package/cjs/Avatar/index.js +13 -0
- package/cjs/Button/Button.js +3 -11
- package/cjs/Checkbox/Checkbox.js +12 -58
- package/cjs/Dropdown/Dropdown.js +9 -25
- package/cjs/Fieldset/Fieldset.js +9 -25
- package/cjs/GlobalStyle/GlobalStyle.js +3 -11
- package/cjs/Input/Input.js +3 -11
- package/cjs/List/List.js +3 -11
- package/cjs/List/ListDivider.js +3 -11
- package/cjs/List/ListItem.js +9 -25
- package/cjs/Modal/Modal.js +41 -168
- package/cjs/Modal/ModalProvider.js +4 -4
- package/cjs/ProgressBar/ProgressBar.js +12 -58
- package/cjs/RadioButton/RadioButton.js +12 -58
- package/cjs/Range/Range.js +6 -34
- package/cjs/Tabs/Tab.js +9 -25
- package/cjs/Tabs/Tabs.js +10 -26
- package/cjs/TaskBar/Clock.js +6 -14
- package/cjs/TaskBar/TaskBar.js +6 -14
- package/cjs/TaskBar/WindowButton.js +10 -36
- package/cjs/TextArea/TextArea.js +5 -13
- package/cjs/ThemeProvider/ThemeProvider.js +2 -2
- package/cjs/ThemeProvider/themes/azureOrange.js +3 -3
- package/cjs/ThemeProvider/themes/bee.js +3 -3
- package/cjs/ThemeProvider/themes/blackAndWhite.js +3 -3
- package/cjs/ThemeProvider/themes/brick.js +3 -3
- package/cjs/ThemeProvider/themes/candy.js +3 -3
- package/cjs/ThemeProvider/themes/coldGray.js +3 -3
- package/cjs/ThemeProvider/themes/counterStrike.js +3 -3
- package/cjs/ThemeProvider/themes/eggplant.js +3 -3
- package/cjs/ThemeProvider/themes/highContrast.js +3 -3
- package/cjs/ThemeProvider/themes/lilac.js +3 -3
- package/cjs/ThemeProvider/themes/lilacRoseDark.js +3 -3
- package/cjs/ThemeProvider/themes/maple.js +3 -3
- package/cjs/ThemeProvider/themes/marine.js +3 -3
- package/cjs/ThemeProvider/themes/matrix.js +3 -3
- package/cjs/ThemeProvider/themes/millenium.js +3 -3
- package/cjs/ThemeProvider/themes/modernDark.js +3 -3
- package/cjs/ThemeProvider/themes/molecule.js +3 -3
- package/cjs/ThemeProvider/themes/ninjaTurtles.js +3 -3
- package/cjs/ThemeProvider/themes/olive.js +3 -3
- package/cjs/ThemeProvider/themes/pamelaAnderson.js +3 -3
- package/cjs/ThemeProvider/themes/plum.js +3 -3
- package/cjs/ThemeProvider/themes/rainyDay.js +3 -3
- package/cjs/ThemeProvider/themes/rose.js +3 -3
- package/cjs/ThemeProvider/themes/slate.js +3 -3
- package/cjs/ThemeProvider/themes/spruce.js +3 -3
- package/cjs/ThemeProvider/themes/storm.js +3 -3
- package/cjs/ThemeProvider/themes/theSixtiesUSA.js +3 -3
- package/cjs/ThemeProvider/themes/tokyoDark.js +3 -3
- package/cjs/ThemeProvider/themes/tooSexy.js +3 -3
- package/cjs/ThemeProvider/themes/travel.js +3 -3
- package/cjs/ThemeProvider/themes/vaporTeal.js +3 -3
- package/cjs/ThemeProvider/themes/vermillion.js +3 -3
- package/cjs/ThemeProvider/themes/violetDark.js +3 -3
- package/cjs/ThemeProvider/themes/water.js +3 -3
- package/cjs/ThemeProvider/themes/win95.js +3 -3
- package/cjs/TitleBar/TitleBar.js +71 -0
- package/cjs/TitleBar/index.js +13 -0
- package/cjs/Tooltip/Tooltip.js +10 -26
- package/cjs/Tree/Node.js +14 -70
- package/cjs/Tree/Tree.js +5 -3
- package/cjs/Video/Video.js +41 -114
- package/cjs/Video/buttons/Fullscreen.js +34 -0
- package/cjs/Video/buttons/Pause.js +2 -2
- package/cjs/Video/buttons/Play.js +2 -2
- package/cjs/Video/buttons/Stop.js +2 -2
- package/cjs/Video/buttons/index.js +8 -0
- package/cjs/index.js +16 -0
- package/esm/Alert/Alert.js +8 -34
- package/esm/Avatar/Avatar.js +43 -0
- package/esm/Avatar/index.js +2 -0
- package/esm/Button/Button.js +2 -10
- package/esm/Checkbox/Checkbox.js +10 -56
- package/esm/Dropdown/Dropdown.js +7 -23
- package/esm/Fieldset/Fieldset.js +7 -23
- package/esm/GlobalStyle/GlobalStyle.js +2 -10
- package/esm/Input/Input.js +2 -10
- package/esm/List/List.js +2 -10
- package/esm/List/ListDivider.js +2 -10
- package/esm/List/ListItem.js +7 -23
- package/esm/Modal/Modal.js +37 -160
- package/esm/Modal/ModalProvider.js +2 -2
- package/esm/ProgressBar/ProgressBar.js +10 -56
- package/esm/RadioButton/RadioButton.js +10 -56
- package/esm/Range/Range.js +4 -32
- package/esm/Tabs/Tab.js +7 -23
- package/esm/Tabs/Tabs.js +8 -24
- package/esm/TaskBar/Clock.js +4 -12
- package/esm/TaskBar/TaskBar.js +4 -12
- package/esm/TaskBar/WindowButton.js +8 -34
- package/esm/TextArea/TextArea.js +3 -11
- package/esm/ThemeProvider/themes/azureOrange.js +1 -1
- package/esm/ThemeProvider/themes/bee.js +1 -1
- package/esm/ThemeProvider/themes/blackAndWhite.js +1 -1
- package/esm/ThemeProvider/themes/brick.js +1 -1
- package/esm/ThemeProvider/themes/candy.js +1 -1
- package/esm/ThemeProvider/themes/coldGray.js +1 -1
- package/esm/ThemeProvider/themes/counterStrike.js +1 -1
- package/esm/ThemeProvider/themes/eggplant.js +1 -1
- package/esm/ThemeProvider/themes/highContrast.js +1 -1
- package/esm/ThemeProvider/themes/lilac.js +1 -1
- package/esm/ThemeProvider/themes/lilacRoseDark.js +1 -1
- package/esm/ThemeProvider/themes/maple.js +1 -1
- package/esm/ThemeProvider/themes/marine.js +1 -1
- package/esm/ThemeProvider/themes/matrix.js +1 -1
- package/esm/ThemeProvider/themes/millenium.js +1 -1
- package/esm/ThemeProvider/themes/modernDark.js +1 -1
- package/esm/ThemeProvider/themes/molecule.js +1 -1
- package/esm/ThemeProvider/themes/ninjaTurtles.js +1 -1
- package/esm/ThemeProvider/themes/olive.js +1 -1
- package/esm/ThemeProvider/themes/pamelaAnderson.js +1 -1
- package/esm/ThemeProvider/themes/plum.js +1 -1
- package/esm/ThemeProvider/themes/rainyDay.js +1 -1
- package/esm/ThemeProvider/themes/rose.js +1 -1
- package/esm/ThemeProvider/themes/slate.js +1 -1
- package/esm/ThemeProvider/themes/spruce.js +1 -1
- package/esm/ThemeProvider/themes/storm.js +1 -1
- package/esm/ThemeProvider/themes/theSixtiesUSA.js +1 -1
- package/esm/ThemeProvider/themes/tokyoDark.js +1 -1
- package/esm/ThemeProvider/themes/tooSexy.js +1 -1
- package/esm/ThemeProvider/themes/travel.js +1 -1
- package/esm/ThemeProvider/themes/vaporTeal.js +1 -1
- package/esm/ThemeProvider/themes/vermillion.js +1 -1
- package/esm/ThemeProvider/themes/violetDark.js +1 -1
- package/esm/ThemeProvider/themes/water.js +1 -1
- package/esm/ThemeProvider/themes/win95.js +1 -1
- package/esm/TitleBar/TitleBar.js +54 -0
- package/esm/TitleBar/index.js +2 -0
- package/esm/Tooltip/Tooltip.js +8 -24
- package/esm/Tree/Node.js +12 -68
- package/esm/Tree/Tree.js +3 -1
- package/esm/Video/Video.js +39 -112
- package/esm/Video/buttons/Fullscreen.js +20 -0
- package/esm/Video/buttons/index.js +2 -1
- package/esm/index.js +3 -1
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FrameProps } from '../Frame/Frame';
|
|
3
|
+
export interface AvatarProps extends Omit<React.ImgHTMLAttributes<HTMLDivElement>, 'width' | 'color' | 'height'>, FrameProps {
|
|
4
|
+
circle?: boolean;
|
|
5
|
+
size?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default Avatar;
|
package/@types/Frame/Frame.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BackgroundsProps, ColorProps, FlexboxesProps, LayoutProps, PositioningProps, ShadowsProps, SpaceProps, OverflowProps } from '@xstyled/system';
|
|
2
|
-
export
|
|
2
|
+
export interface FrameProps extends BackgroundsProps, ColorProps, FlexboxesProps, LayoutProps, PositioningProps, ShadowsProps, SpaceProps, OverflowProps {
|
|
3
|
+
}
|
|
3
4
|
declare const Frame: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, FrameProps, never>;
|
|
4
5
|
export default Frame;
|
|
@@ -3,6 +3,6 @@ export declare type ListItemProps = {
|
|
|
3
3
|
icon?: React.ReactElement;
|
|
4
4
|
} & React.HtmlHTMLAttributes<HTMLLIElement>;
|
|
5
5
|
declare const ListItem: React.ForwardRefExoticComponent<{
|
|
6
|
-
icon?: React.ReactElement<any, string | ((props: any) => React.ReactElement<any,
|
|
6
|
+
icon?: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
|
|
7
7
|
} & React.HtmlHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
|
|
8
8
|
export default ListItem;
|
package/@types/Modal/Modal.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare type ModalProps = {
|
|
|
31
31
|
hasWindowButton?: boolean;
|
|
32
32
|
} & Omit<WrapperProps, 'active'> & ButtonWrapperProps & React.HTMLAttributes<HTMLDivElement>;
|
|
33
33
|
declare const Modal: React.ForwardRefExoticComponent<{
|
|
34
|
-
icon?: React.ReactElement<any, string | ((props: any) => React.ReactElement<any,
|
|
34
|
+
icon?: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
|
|
35
35
|
closeModal(event: React.MouseEvent): void;
|
|
36
36
|
title: string;
|
|
37
37
|
buttons?: ModalButtons[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PaddingProps, BorderProps, ShadowProps } from 'styled-system';
|
|
3
3
|
export declare type TextAreaProps = PaddingProps & BorderProps & ShadowProps & React.HTMLProps<HTMLTextAreaElement>;
|
|
4
|
-
declare const TextArea: React.ForwardRefExoticComponent<Pick<TextAreaProps, "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "default" | "type" | "name" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "
|
|
4
|
+
declare const TextArea: React.ForwardRefExoticComponent<Pick<TextAreaProps, "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "default" | "type" | "name" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "list" | "manifest" | "step" | "width" | "height" | "size" | "boxShadow" | "textShadow" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "py" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "href" | "classID" | "useMap" | "wmode" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "as" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "wrap" | "kind" | "srcLang" | "poster" | "paddingY" | "paddingX" | "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"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
5
5
|
export default TextArea;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FrameProps } from '../Frame/Frame';
|
|
3
|
+
declare const OptionsBox: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
declare const Option: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
5
|
+
as: string;
|
|
6
|
+
}, "as">;
|
|
7
|
+
interface TitleBarBackgroundProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, FrameProps {
|
|
8
|
+
active?: boolean;
|
|
9
|
+
icon?: React.ReactElement;
|
|
10
|
+
title?: string;
|
|
11
|
+
}
|
|
12
|
+
interface TitleBarOptions {
|
|
13
|
+
Option: typeof Option;
|
|
14
|
+
OptionsBox: typeof OptionsBox;
|
|
15
|
+
}
|
|
16
|
+
export interface ITitleBarProps extends TitleBarBackgroundProps, TitleBarOptions {
|
|
17
|
+
}
|
|
18
|
+
declare const TitleBar: ITitleBarProps & React.ForwardRefRenderFunction<HTMLDivElement, TitleBarBackgroundProps>;
|
|
19
|
+
export default TitleBar;
|
package/@types/Tree/Node.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export declare const icons: {
|
|
3
|
-
readonly FILE_MEDIA: React.FC<import("@react95/icons").MediaCdProps>;
|
|
4
|
-
readonly FILE_TEXT: React.FC<import("@react95/icons").FileTextProps>;
|
|
5
|
-
readonly FILE_UNKNOWN: React.FC<import("@react95/icons").BatProps>;
|
|
6
|
-
readonly FILE_FONT: React.FC<import("@react95/icons").FileFont2Props>;
|
|
7
|
-
readonly FILE_PEN: React.FC<import("@react95/icons").FilePenProps>;
|
|
8
|
-
readonly FILE_SETTINGS: React.FC<import("@react95/icons").FileSettingsProps>;
|
|
9
|
-
readonly FILE_TEXT_SETTINGS: React.FC<import("@react95/icons").FileTextSettingsProps>;
|
|
10
|
-
readonly FILE_EXECUTABLE: React.FC<import("@react95/icons").BatExecProps>;
|
|
3
|
+
readonly FILE_MEDIA: React.FC<import("@react95/icons/src").MediaCdProps>;
|
|
4
|
+
readonly FILE_TEXT: React.FC<import("@react95/icons/src").FileTextProps>;
|
|
5
|
+
readonly FILE_UNKNOWN: React.FC<import("@react95/icons/src").BatProps>;
|
|
6
|
+
readonly FILE_FONT: React.FC<import("@react95/icons/src").FileFont2Props>;
|
|
7
|
+
readonly FILE_PEN: React.FC<import("@react95/icons/src").FilePenProps>;
|
|
8
|
+
readonly FILE_SETTINGS: React.FC<import("@react95/icons/src").FileSettingsProps>;
|
|
9
|
+
readonly FILE_TEXT_SETTINGS: React.FC<import("@react95/icons/src").FileTextSettingsProps>;
|
|
10
|
+
readonly FILE_EXECUTABLE: React.FC<import("@react95/icons/src").BatExecProps>;
|
|
11
11
|
};
|
|
12
12
|
export declare type NodeProps = {
|
|
13
13
|
label: string;
|
package/@types/Video/Video.d.ts
CHANGED
|
@@ -12,11 +12,12 @@ export declare type VideoRefs = {
|
|
|
12
12
|
wrapper: React.Ref<HTMLDivElement>;
|
|
13
13
|
playpause: React.Ref<HTMLButtonElement>;
|
|
14
14
|
stop: React.Ref<HTMLButtonElement>;
|
|
15
|
+
fullScreen: React.Ref<HTMLButtonElement>;
|
|
15
16
|
};
|
|
16
17
|
declare const Video: React.ForwardRefExoticComponent<{
|
|
17
18
|
name?: string | undefined;
|
|
18
19
|
src: string;
|
|
19
20
|
videoProps?: React.HTMLAttributes<HTMLVideoElement> | undefined;
|
|
20
21
|
style?: React.CSSProperties | undefined;
|
|
21
|
-
} &
|
|
22
|
+
} & FrameProps & React.RefAttributes<VideoRefs>>;
|
|
22
23
|
export default Video;
|
package/@types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Modal, ModalContext } from './Modal';
|
|
2
2
|
import { Tab, Tabs } from './Tabs';
|
|
3
3
|
import Alert from './Alert';
|
|
4
|
+
import Avatar from './Avatar';
|
|
4
5
|
import Button from './Button';
|
|
5
6
|
import Checkbox from './Checkbox';
|
|
6
7
|
import Cursor from './Cursor';
|
|
@@ -17,6 +18,7 @@ import TaskBar from './TaskBar';
|
|
|
17
18
|
import TextArea from './TextArea';
|
|
18
19
|
import Tree from './Tree';
|
|
19
20
|
import Tooltip from './Tooltip';
|
|
21
|
+
import TitleBar from './TitleBar';
|
|
20
22
|
import ThemeProvider from './ThemeProvider';
|
|
21
23
|
import Video from './Video';
|
|
22
|
-
export { Alert, Button, Checkbox, Cursor, Dropdown, Fieldset, Frame, GlobalStyle, Input, List, Modal, ModalContext, ProgressBar, RadioButton, Range, Tab, Tabs, TaskBar, TextArea, Tree, Tooltip, ThemeProvider, Video, };
|
|
24
|
+
export { Alert, Avatar, Button, Checkbox, Cursor, Dropdown, Fieldset, Frame, GlobalStyle, Input, List, Modal, ModalContext, ProgressBar, RadioButton, Range, Tab, Tabs, TaskBar, TextArea, Tree, Tooltip, TitleBar, ThemeProvider, Video, };
|
|
@@ -4,7 +4,7 @@ declare const customRender: (ui: React.ReactElement, options?: Pick<RenderOption
|
|
|
4
4
|
declare const waitRender: (ui: React.ReactElement, options?: Pick<RenderOptions<typeof import("@testing-library/dom/types/queries")>, "container" | "baseElement" | "hydrate" | "wrapper"> | undefined) => Promise<{
|
|
5
5
|
baseElement: HTMLElement;
|
|
6
6
|
debug: (baseElement?: HTMLElement | DocumentFragment | (HTMLElement | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format/build/types").OptionsReceived | undefined) => void;
|
|
7
|
-
rerender: (ui: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any,
|
|
7
|
+
rerender: (ui: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>) => void;
|
|
8
8
|
unmount: () => boolean;
|
|
9
9
|
asFragment: () => DocumentFragment;
|
|
10
10
|
getByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
|
package/README.md
CHANGED
|
@@ -62,7 +62,10 @@ steps:
|
|
|
62
62
|
|
|
63
63
|
```javascript
|
|
64
64
|
const withFonts = require('next-fonts');
|
|
65
|
-
const withTM = require('next-transpile-modules')([
|
|
65
|
+
const withTM = require('next-transpile-modules')([
|
|
66
|
+
'@react95/core',
|
|
67
|
+
'@react95/icons',
|
|
68
|
+
]);
|
|
66
69
|
|
|
67
70
|
module.exports = withTM(withFonts());
|
|
68
71
|
```
|
package/cjs/Alert/Alert.js
CHANGED
|
@@ -15,11 +15,15 @@ var _icons = require("@react95/icons");
|
|
|
15
15
|
|
|
16
16
|
var _Modal = _interopRequireDefault(require("../Modal/Modal"));
|
|
17
17
|
|
|
18
|
+
var _excluded = ["type", "message", "closeAlert", "hasSound"];
|
|
19
|
+
|
|
20
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
21
|
+
|
|
18
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
23
|
|
|
20
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
25
|
|
|
22
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
27
|
|
|
24
28
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
29
|
|
|
@@ -27,36 +31,6 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
27
31
|
|
|
28
32
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
33
|
|
|
30
|
-
function _templateObject3() {
|
|
31
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n"]);
|
|
32
|
-
|
|
33
|
-
_templateObject3 = function _templateObject3() {
|
|
34
|
-
return data;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return data;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function _templateObject2() {
|
|
41
|
-
var data = _taggedTemplateLiteral(["\n padding: 7 15 7 7;\n"]);
|
|
42
|
-
|
|
43
|
-
_templateObject2 = function _templateObject2() {
|
|
44
|
-
return data;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
return data;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function _templateObject() {
|
|
51
|
-
var data = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n"]);
|
|
52
|
-
|
|
53
|
-
_templateObject = function _templateObject() {
|
|
54
|
-
return data;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return data;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
34
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
61
35
|
|
|
62
36
|
/* babel-plugin-inline-import './assets/chord.mp3' */
|
|
@@ -89,11 +63,11 @@ var RenderImage = function RenderImage(_ref) {
|
|
|
89
63
|
}
|
|
90
64
|
};
|
|
91
65
|
|
|
92
|
-
var Message = _styledComponents["default"].div(_templateObject());
|
|
66
|
+
var Message = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
93
67
|
|
|
94
|
-
var IconWrapper = _styledComponents["default"].div(_templateObject2());
|
|
68
|
+
var IconWrapper = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 7 15 7 7;\n"])));
|
|
95
69
|
|
|
96
|
-
var Dialog = _styledComponents["default"].div(_templateObject3());
|
|
70
|
+
var Dialog = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n"])));
|
|
97
71
|
|
|
98
72
|
var Alert = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
99
73
|
var _ref2$type = _ref2.type,
|
|
@@ -101,7 +75,7 @@ var Alert = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
|
101
75
|
message = _ref2.message,
|
|
102
76
|
closeAlert = _ref2.closeAlert,
|
|
103
77
|
hasSound = _ref2.hasSound,
|
|
104
|
-
rest = _objectWithoutProperties(_ref2,
|
|
78
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
105
79
|
|
|
106
80
|
if (hasSound) {
|
|
107
81
|
(0, _react.useEffect)(function () {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireWildcard(require("@xstyled/styled-components"));
|
|
13
|
+
|
|
14
|
+
var _Frame = _interopRequireDefault(require("../Frame/Frame"));
|
|
15
|
+
|
|
16
|
+
var _excluded = ["src", "srcSet", "alt", "circle", "children"];
|
|
17
|
+
|
|
18
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
26
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
|
|
28
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
|
+
|
|
30
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
|
+
|
|
32
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
33
|
+
|
|
34
|
+
var Image = _styledComponents["default"].img(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: 100%;\n"])));
|
|
35
|
+
|
|
36
|
+
var StyledAvatar = (0, _styledComponents["default"])(_Frame["default"])(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n font-weight: bold;\n overflow: hidden;\n margin-right: 1;\n margin-bottom: 1;\n\n box-shadow: unset;\n\n ", "\n\n ", "\n"])), function (_ref) {
|
|
37
|
+
var circle = _ref.circle,
|
|
38
|
+
_ref$size = _ref.size,
|
|
39
|
+
size = _ref$size === void 0 ? 48 : _ref$size;
|
|
40
|
+
return (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-radius: ", ";\n\n width: ", ";\n height: ", ";\n "])), circle ? '50%' : 0, size, size);
|
|
41
|
+
}, function (_ref2) {
|
|
42
|
+
var circle = _ref2.circle;
|
|
43
|
+
return circle ? (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n border-style: solid;\n border-width: 1;\n border-top-color: borderDark;\n border-right-color: borderLightest;\n border-bottom-color: borderLightest;\n border-left-color: borderDark;\n "]))) : (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n box-shadow: in;\n padding-left: 1;\n "])));
|
|
44
|
+
});
|
|
45
|
+
var Avatar = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
46
|
+
var src = _ref3.src,
|
|
47
|
+
srcSet = _ref3.srcSet,
|
|
48
|
+
alt = _ref3.alt,
|
|
49
|
+
circle = _ref3.circle,
|
|
50
|
+
children = _ref3.children,
|
|
51
|
+
otherProps = _objectWithoutProperties(_ref3, _excluded);
|
|
52
|
+
|
|
53
|
+
return /*#__PURE__*/React.createElement(StyledAvatar, _extends({
|
|
54
|
+
circle: circle,
|
|
55
|
+
ref: ref
|
|
56
|
+
}, otherProps), src || srcSet ? /*#__PURE__*/React.createElement(Image, {
|
|
57
|
+
src: src,
|
|
58
|
+
srcSet: srcSet,
|
|
59
|
+
alt: alt
|
|
60
|
+
}) : children);
|
|
61
|
+
});
|
|
62
|
+
var _default = Avatar;
|
|
63
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _Avatar = _interopRequireDefault(require("./Avatar"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = _Avatar["default"];
|
|
13
|
+
exports["default"] = _default;
|
package/cjs/Button/Button.js
CHANGED
|
@@ -9,21 +9,13 @@ var _styledComponents = _interopRequireDefault(require("@xstyled/styled-componen
|
|
|
9
9
|
|
|
10
10
|
var _system = require("@xstyled/system");
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function _templateObject() {
|
|
15
|
-
var data = _taggedTemplateLiteral(["\n background-color: material;\n padding: 7 20 5;\n border: none;\n color: materialText;\n\n font-size: 12px;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 0px ", ";\n\n &:disabled {\n color: materialTextDisabled;\n }\n\n &:focus {\n outline: ", "px dotted ", ";\n outline-offset: -", "px;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset -0.5px -0.5px 0px 1px ", ",\n 1px 1px 0 1px ", ";\n }\n\n &:active {\n padding: 8 20 4;\n\n outline: ", "px dotted ", ";\n outline-offset: -", "px;\n\n box-shadow: inset 0 0 0 1px ", ",\n 0 0 0 1px ", ";\n }\n"]);
|
|
12
|
+
var _templateObject;
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
return data;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
return data;
|
|
22
|
-
}
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
15
|
|
|
24
16
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
25
17
|
|
|
26
|
-
var Button = _styledComponents["default"].button(_templateObject(), (0, _system.th)('colors.borderLightest'), (0, _system.th)('colors.borderDark'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('space.1'), (0, _system.th)('colors.materialText'), (0, _system.th)('space.5'), (0, _system.th)('colors.borderLightest'), (0, _system.th)('colors.borderDark'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('space.1'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('space.5'), (0, _system.th)('colors.borderDark'), (0, _system.th)('colors.borderDarkest'));
|
|
18
|
+
var Button = _styledComponents["default"].button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: material;\n padding: 7 20 5;\n border: none;\n color: materialText;\n\n font-size: 12px;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset 0 0 0 1px ", ",\n 1px 1px 0 0px ", ";\n\n &:disabled {\n color: materialTextDisabled;\n }\n\n &:focus {\n outline: ", "px dotted ", ";\n outline-offset: -", "px;\n\n box-shadow: inset 1px 1px 0px 1px ", ",\n inset -0.5px -0.5px 0px 1px ", ",\n 1px 1px 0 1px ", ";\n }\n\n &:active {\n padding: 8 20 4;\n\n outline: ", "px dotted ", ";\n outline-offset: -", "px;\n\n box-shadow: inset 0 0 0 1px ", ",\n 0 0 0 1px ", ";\n }\n"])), (0, _system.th)('colors.borderLightest'), (0, _system.th)('colors.borderDark'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('space.1'), (0, _system.th)('colors.materialText'), (0, _system.th)('space.5'), (0, _system.th)('colors.borderLightest'), (0, _system.th)('colors.borderDark'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('space.1'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('space.5'), (0, _system.th)('colors.borderDark'), (0, _system.th)('colors.borderDarkest'));
|
|
27
19
|
|
|
28
20
|
Button.defaultProps = {
|
|
29
21
|
children: 'Ok'
|
package/cjs/Checkbox/Checkbox.js
CHANGED
|
@@ -17,11 +17,15 @@ var _check = _interopRequireDefault(require("./imgs/check.svg"));
|
|
|
17
17
|
|
|
18
18
|
var _checkDisabled = _interopRequireDefault(require("./imgs/check-disabled.svg"));
|
|
19
19
|
|
|
20
|
+
var _excluded = ["children", "style", "checked", "label", "disabled"];
|
|
21
|
+
|
|
22
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
23
|
+
|
|
20
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
25
|
|
|
22
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
27
|
|
|
24
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
29
|
|
|
26
30
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
31
|
|
|
@@ -29,71 +33,21 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
29
33
|
|
|
30
34
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
35
|
|
|
32
|
-
function _templateObject5() {
|
|
33
|
-
var data = _taggedTemplateLiteral(["\n color: borderDark;\n text-shadow: 0.5px 0.5px ", ";\n "]);
|
|
34
|
-
|
|
35
|
-
_templateObject5 = function _templateObject5() {
|
|
36
|
-
return data;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
return data;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function _templateObject4() {
|
|
43
|
-
var data = _taggedTemplateLiteral(["\n display: inline-block;\n height: 15px;\n\n line-height: 1.5;\n\n position: relative;\n\n margin: 4 0;\n padding-left: 20;\n\n ", "\n"]);
|
|
44
|
-
|
|
45
|
-
_templateObject4 = function _templateObject4() {
|
|
46
|
-
return data;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
return data;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function _templateObject3() {
|
|
53
|
-
var data = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n\n margin: 0;\n\n position: absolute;\n top: 0;\n left: 0;\n\n opacity: 0;\n\n &:focus ~ ", ", &:active ~ ", " {\n border-width: 1;\n border-style: dotted;\n padding: 0;\n }\n\n &:checked + ", " {\n background-image: url('", "');\n }\n\n &:checked &:disabled + ", " {\n background-image: url('", "');\n background-size: 7px 7px, 1.9px 1.9px;\n }\n\n &:disabled + ", " {\n background-color: inputBackgroundDisabled;\n }\n"]);
|
|
54
|
-
|
|
55
|
-
_templateObject3 = function _templateObject3() {
|
|
56
|
-
return data;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
return data;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function _templateObject2() {
|
|
63
|
-
var data = _taggedTemplateLiteral(["\n padding: 1;\n user-select: none;\n"]);
|
|
64
|
-
|
|
65
|
-
_templateObject2 = function _templateObject2() {
|
|
66
|
-
return data;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
return data;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function _templateObject() {
|
|
73
|
-
var data = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n\n content: '';\n display: inline-block;\n\n position: absolute;\n left: 0;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n background-color: inputBackground;\n\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 7px 7px;\n"]);
|
|
74
|
-
|
|
75
|
-
_templateObject = function _templateObject() {
|
|
76
|
-
return data;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
return data;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
36
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
83
37
|
|
|
84
|
-
var Icon = _styledComponents["default"].span(_templateObject(), (0, _system.th)('colors.material'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('colors.borderLightest'));
|
|
38
|
+
var Icon = _styledComponents["default"].span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n\n content: '';\n display: inline-block;\n\n position: absolute;\n left: 0;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n background-color: inputBackground;\n\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 7px 7px;\n"])), (0, _system.th)('colors.material'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('colors.borderLightest'));
|
|
85
39
|
|
|
86
|
-
var Text = _styledComponents["default"].span(_templateObject2());
|
|
40
|
+
var Text = _styledComponents["default"].span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 1;\n user-select: none;\n"])));
|
|
87
41
|
|
|
88
42
|
var Field = _styledComponents["default"].input.attrs({
|
|
89
43
|
type: 'checkbox'
|
|
90
|
-
})(_templateObject3(), Text, Text, Icon, _check["default"], Icon, _checkDisabled["default"], Icon);
|
|
44
|
+
})(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n\n margin: 0;\n\n position: absolute;\n top: 0;\n left: 0;\n\n opacity: 0;\n\n &:focus ~ ", ", &:active ~ ", " {\n border-width: 1;\n border-style: dotted;\n padding: 0;\n }\n\n &:checked + ", " {\n background-image: url('", "');\n }\n\n &:checked &:disabled + ", " {\n background-image: url('", "');\n background-size: 7px 7px, 1.9px 1.9px;\n }\n\n &:disabled + ", " {\n background-color: inputBackgroundDisabled;\n }\n"])), Text, Text, Icon, _check["default"], Icon, _checkDisabled["default"], Icon);
|
|
91
45
|
|
|
92
46
|
Field.displayName = 'Field';
|
|
93
47
|
|
|
94
|
-
var Label = _styledComponents["default"].label(_templateObject4(), function (_ref) {
|
|
48
|
+
var Label = _styledComponents["default"].label(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n height: 15px;\n\n line-height: 1.5;\n\n position: relative;\n\n margin: 4 0;\n padding-left: 20;\n\n ", "\n"])), function (_ref) {
|
|
95
49
|
var disabled = _ref.disabled;
|
|
96
|
-
return disabled && (0, _styledComponents.css)(_templateObject5(), (0, _system.th)('colors.borderLight'));
|
|
50
|
+
return disabled && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: borderDark;\n text-shadow: 0.5px 0.5px ", ";\n "])), (0, _system.th)('colors.borderLight'));
|
|
97
51
|
});
|
|
98
52
|
|
|
99
53
|
var Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
@@ -103,7 +57,7 @@ var Checkbox = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
|
103
57
|
label = _ref2.label,
|
|
104
58
|
_ref2$disabled = _ref2.disabled,
|
|
105
59
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
106
|
-
rest = _objectWithoutProperties(_ref2,
|
|
60
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
107
61
|
|
|
108
62
|
return /*#__PURE__*/_react["default"].createElement(Label, {
|
|
109
63
|
style: style,
|
package/cjs/Dropdown/Dropdown.js
CHANGED
|
@@ -15,11 +15,15 @@ var _system = require("@xstyled/system");
|
|
|
15
15
|
|
|
16
16
|
var _downcaret = _interopRequireDefault(require("./imgs/downcaret.png"));
|
|
17
17
|
|
|
18
|
+
var _excluded = ["options"];
|
|
19
|
+
|
|
20
|
+
var _templateObject, _templateObject2;
|
|
21
|
+
|
|
18
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
23
|
|
|
20
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var
|
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
25
|
|
|
22
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
27
|
|
|
24
28
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
29
|
|
|
@@ -27,35 +31,15 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
27
31
|
|
|
28
32
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
29
33
|
|
|
30
|
-
function _templateObject2() {
|
|
31
|
-
var data = _taggedTemplateLiteral(["\n position: relative;\n outline: none;\n border: none;\n border-radius: 0;\n width: 100%;\n height: 20px;\n\n padding: 3;\n\n color: materialText;\n background-color: inputBackground;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n"]);
|
|
32
|
-
|
|
33
|
-
_templateObject2 = function _templateObject2() {
|
|
34
|
-
return data;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return data;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function _templateObject() {
|
|
41
|
-
var data = _taggedTemplateLiteral(["\n position: relative;\n width: 200px;\n height: 20px;\n\n &:after {\n display: flex;\n justify-content: center;\n width: 17px;\n height: 16px;\n font-size: 14px;\n line-height: 1.1;\n content: '';\n pointer-events: none;\n position: absolute;\n right: 1px;\n top: 2px;\n\n background-color: material;\n box-shadow: inset 0.5px 0.7px 0px 0.7px ", ",\n inset -1px 0px 0 1px ", ", inset 1.5px 1.5px 0px 1.5px ", ";\n\n border-right: 1;\n border-bottom: 1;\n\n background-image: url('", "');\n background-position: 60% 60%;\n background-repeat: no-repeat;\n }\n"]);
|
|
42
|
-
|
|
43
|
-
_templateObject = function _templateObject() {
|
|
44
|
-
return data;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
return data;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
34
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
51
35
|
|
|
52
|
-
var Wrapper = _styledComponents["default"].div(_templateObject(), (0, _system.th)('colors.material'), (0, _system.th)('colors.borderDark'), (0, _system.th)('colors.borderLightest'), _downcaret["default"]);
|
|
36
|
+
var Wrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n width: 200px;\n height: 20px;\n\n &:after {\n display: flex;\n justify-content: center;\n width: 17px;\n height: 16px;\n font-size: 14px;\n line-height: 1.1;\n content: '';\n pointer-events: none;\n position: absolute;\n right: 1px;\n top: 2px;\n\n background-color: material;\n box-shadow: inset 0.5px 0.7px 0px 0.7px ", ",\n inset -1px 0px 0 1px ", ", inset 1.5px 1.5px 0px 1.5px ", ";\n\n border-right: 1;\n border-bottom: 1;\n\n background-image: url('", "');\n background-position: 60% 60%;\n background-repeat: no-repeat;\n }\n"])), (0, _system.th)('colors.material'), (0, _system.th)('colors.borderDark'), (0, _system.th)('colors.borderLightest'), _downcaret["default"]);
|
|
53
37
|
|
|
54
|
-
var Select = _styledComponents["default"].select(_templateObject2(), (0, _system.th)('colors.material'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('colors.borderLightest'));
|
|
38
|
+
var Select = _styledComponents["default"].select(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n outline: none;\n border: none;\n border-radius: 0;\n width: 100%;\n height: 20px;\n\n padding: 3;\n\n color: materialText;\n background-color: inputBackground;\n\n border-left: 1;\n border-left-color: borderDark;\n border-top: 1;\n border-top-color: borderDark;\n\n box-shadow: inset -1px -1px 0 0 ", ",\n inset 1px 1px 0 0 ", ",\n 0.5px 0.5px 0 0.5px ", ";\n\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n"])), (0, _system.th)('colors.material'), (0, _system.th)('colors.borderDarkest'), (0, _system.th)('colors.borderLightest'));
|
|
55
39
|
|
|
56
40
|
var Dropdown = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
57
41
|
var options = _ref.options,
|
|
58
|
-
rest = _objectWithoutProperties(_ref,
|
|
42
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
59
43
|
|
|
60
44
|
return /*#__PURE__*/_react["default"].createElement(Wrapper, null, /*#__PURE__*/_react["default"].createElement(Select, _extends({}, rest, {
|
|
61
45
|
ref: ref
|