@rango-dev/ui 0.1.10-next.86 → 0.1.10-next.89
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/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/TextField/TextField.stories.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +4 -1
- package/dist/ui.cjs.development.js +39 -21
- package/dist/ui.cjs.development.js.map +1 -1
- package/dist/ui.cjs.production.min.js +1 -1
- package/dist/ui.cjs.production.min.js.map +1 -1
- package/dist/ui.esm.js +39 -21
- package/dist/ui.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Button/Button.tsx +1 -0
- package/src/components/Checkbox/Checkbox.tsx +5 -3
- package/src/components/ColorPicker/ColorPicker.tsx +8 -4
- package/src/components/Modal/Modal.tsx +5 -1
- package/src/components/Radio/Radio.tsx +5 -4
- package/src/components/Settings/Settings.tsx +1 -1
- package/src/components/Switch/Switch.tsx +1 -1
- package/src/components/TextField/TextField.tsx +14 -4
- package/src/components/TokenList/TokenList.tsx +0 -1
- package/src/components/Typography/Typography.tsx +6 -1
- package/src/components/Wallet/State.tsx +0 -1
- package/src/components/common/FilledCircle.tsx +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PropTypes } from './TextField';
|
|
3
|
-
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, Pick<React.PropsWithChildren<PropTypes>, "form" | "label" | "slot" | "style" | "title" | "pattern" | "type" | "children" | "list" | "onChange" | "onClick" | "size" | "prefix" | "suffix" | "disabled" | "id" | "defaultChecked" | "checked" | "name" | "color" | "content" | "className" | "height" | "lang" | "max" | "min" | "width" | "role" | "tabIndex" | "crossOrigin" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "translate" | "step" | "
|
|
3
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, Pick<React.PropsWithChildren<PropTypes>, "form" | "label" | "slot" | "style" | "title" | "pattern" | "type" | "children" | "list" | "onChange" | "onClick" | "size" | "prefix" | "suffix" | "disabled" | "id" | "defaultChecked" | "checked" | "name" | "color" | "content" | "className" | "height" | "lang" | "max" | "min" | "width" | "role" | "tabIndex" | "crossOrigin" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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" | "translate" | "step" | "value" | "accept" | "alt" | "autoComplete" | "capture" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "src" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "nonce" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & React.RefAttributes<HTMLInputElement>>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Main: (args: PropTypes) => JSX.Element;
|
|
6
6
|
export declare const WithPrefix: (args: PropTypes) => JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CSSProperties } from '@stitches/react';
|
|
1
2
|
import { PropsWithChildren } from 'react';
|
|
2
3
|
export interface PropTypes {
|
|
3
4
|
variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body1' | 'body2' | 'caption';
|
|
@@ -7,8 +8,10 @@ export interface PropTypes {
|
|
|
7
8
|
mb?: 2 | 4 | 8 | 12;
|
|
8
9
|
ml?: 2 | 4 | 8 | 12;
|
|
9
10
|
mr?: 2 | 4 | 8 | 12;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: CSSProperties;
|
|
10
13
|
}
|
|
11
|
-
export declare function Typography({ children, ...props }: PropsWithChildren<PropTypes>): JSX.Element;
|
|
14
|
+
export declare function Typography({ children, className, ...props }: PropsWithChildren<PropTypes>): JSX.Element;
|
|
12
15
|
export declare namespace Typography {
|
|
13
16
|
var toString: () => string;
|
|
14
17
|
}
|
|
@@ -1314,7 +1314,7 @@ CopyIcon.toString = function () {
|
|
|
1314
1314
|
return '._icon';
|
|
1315
1315
|
};
|
|
1316
1316
|
|
|
1317
|
-
var _excluded$A = ["children"];
|
|
1317
|
+
var _excluded$A = ["children", "className"];
|
|
1318
1318
|
var TypographyContainer = /*#__PURE__*/styled('span', {
|
|
1319
1319
|
margin: 0,
|
|
1320
1320
|
color: '$foreground',
|
|
@@ -1482,9 +1482,10 @@ var TypographyContainer = /*#__PURE__*/styled('span', {
|
|
|
1482
1482
|
});
|
|
1483
1483
|
function Typography(_ref) {
|
|
1484
1484
|
var children = _ref.children,
|
|
1485
|
+
className = _ref.className,
|
|
1485
1486
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
1486
1487
|
return React__default.createElement(TypographyContainer, Object.assign({
|
|
1487
|
-
className: "_typography"
|
|
1488
|
+
className: "_typography _text " + className
|
|
1488
1489
|
}, props), children);
|
|
1489
1490
|
}
|
|
1490
1491
|
Typography.toString = function () {
|
|
@@ -2225,7 +2226,8 @@ function Button(_ref) {
|
|
|
2225
2226
|
align: align,
|
|
2226
2227
|
ml: !!prefix,
|
|
2227
2228
|
mr: !!suffix && !loading,
|
|
2228
|
-
flexContent: flexContent
|
|
2229
|
+
flexContent: flexContent,
|
|
2230
|
+
className: "_text"
|
|
2229
2231
|
}, children), loading && React__default.createElement(Spinner, {
|
|
2230
2232
|
size: 16,
|
|
2231
2233
|
color: props.type
|
|
@@ -2235,7 +2237,7 @@ function Button(_ref) {
|
|
|
2235
2237
|
var FilledCircle = /*#__PURE__*/styled('span', {
|
|
2236
2238
|
width: '10px',
|
|
2237
2239
|
height: '10px',
|
|
2238
|
-
backgroundColor: '$
|
|
2240
|
+
backgroundColor: '$primary',
|
|
2239
2241
|
borderRadius: '99999px'
|
|
2240
2242
|
});
|
|
2241
2243
|
|
|
@@ -2304,7 +2306,7 @@ var InputContainer = /*#__PURE__*/styled('div', {
|
|
|
2304
2306
|
color: '$foreground',
|
|
2305
2307
|
transition: 'border-color ease .3s',
|
|
2306
2308
|
'&:focus-within': {
|
|
2307
|
-
borderColor: '$
|
|
2309
|
+
borderColor: '$primary'
|
|
2308
2310
|
},
|
|
2309
2311
|
variants: {
|
|
2310
2312
|
size: {
|
|
@@ -2347,7 +2349,7 @@ var InputContainer = /*#__PURE__*/styled('div', {
|
|
|
2347
2349
|
}
|
|
2348
2350
|
});
|
|
2349
2351
|
var Input = /*#__PURE__*/styled('input', {
|
|
2350
|
-
color: '$
|
|
2352
|
+
color: '$foreground',
|
|
2351
2353
|
paddingLeft: '$16',
|
|
2352
2354
|
paddingRight: '$16',
|
|
2353
2355
|
flexGrow: 1,
|
|
@@ -2366,6 +2368,7 @@ var Input = /*#__PURE__*/styled('input', {
|
|
|
2366
2368
|
var Label = /*#__PURE__*/styled('label', {
|
|
2367
2369
|
display: 'inline-block',
|
|
2368
2370
|
fontSize: '$14',
|
|
2371
|
+
color: '$foreground',
|
|
2369
2372
|
marginBottom: '$4'
|
|
2370
2373
|
});
|
|
2371
2374
|
var TextField = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
@@ -2375,15 +2378,20 @@ var TextField = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
2375
2378
|
size = props.size,
|
|
2376
2379
|
style = props.style,
|
|
2377
2380
|
inputAttributes = _objectWithoutPropertiesLoose(props, _excluded$C);
|
|
2378
|
-
return React__default.createElement(React__default.Fragment, null, label && React__default.createElement(Label, Object.assign({
|
|
2381
|
+
return React__default.createElement(React__default.Fragment, null, label && React__default.createElement(Label, Object.assign({
|
|
2382
|
+
className: "_text"
|
|
2383
|
+
}, inputAttributes.id && {
|
|
2379
2384
|
htmlFor: inputAttributes.id
|
|
2380
2385
|
}), label), React__default.createElement(InputContainer, {
|
|
2381
2386
|
disabled: inputAttributes.disabled,
|
|
2382
2387
|
prefix: !!prefix,
|
|
2383
2388
|
suffix: !!suffix,
|
|
2384
2389
|
size: size,
|
|
2385
|
-
style: style
|
|
2386
|
-
|
|
2390
|
+
style: style,
|
|
2391
|
+
className: "_text"
|
|
2392
|
+
}, prefix || null, React__default.createElement(Input, Object.assign({
|
|
2393
|
+
className: "_text"
|
|
2394
|
+
}, inputAttributes, {
|
|
2387
2395
|
spellCheck: false,
|
|
2388
2396
|
ref: ref
|
|
2389
2397
|
})), suffix || null));
|
|
@@ -2573,7 +2581,7 @@ var CheckboxRoot = /*#__PURE__*/styled(RadixCheckbox.Root, {
|
|
|
2573
2581
|
width: 20,
|
|
2574
2582
|
padding: 0,
|
|
2575
2583
|
height: 20,
|
|
2576
|
-
border: '1px solid',
|
|
2584
|
+
border: '1px solid $foreground',
|
|
2577
2585
|
display: 'flex',
|
|
2578
2586
|
alignItems: 'center',
|
|
2579
2587
|
justifyContent: 'center',
|
|
@@ -2581,7 +2589,7 @@ var CheckboxRoot = /*#__PURE__*/styled(RadixCheckbox.Root, {
|
|
|
2581
2589
|
backgroundColor: '$neutral-100'
|
|
2582
2590
|
});
|
|
2583
2591
|
var Label$1 = /*#__PURE__*/styled('label', {
|
|
2584
|
-
color: '$
|
|
2592
|
+
color: '$foreground',
|
|
2585
2593
|
fontSize: '$m',
|
|
2586
2594
|
marginLeft: '$8'
|
|
2587
2595
|
});
|
|
@@ -2594,8 +2602,9 @@ function Checkbox(_ref) {
|
|
|
2594
2602
|
}, props), React__default.createElement(RadixCheckbox.Indicator, null, React__default.createElement(CheckIcon, {
|
|
2595
2603
|
size: 20
|
|
2596
2604
|
}))), React__default.createElement(Label$1, {
|
|
2605
|
+
className: "_text",
|
|
2597
2606
|
htmlFor: id
|
|
2598
|
-
}, label
|
|
2607
|
+
}, label));
|
|
2599
2608
|
}
|
|
2600
2609
|
|
|
2601
2610
|
var ChipCointainer = /*#__PURE__*/styled('div', {
|
|
@@ -2680,6 +2689,9 @@ function Modal(props) {
|
|
|
2680
2689
|
var handleBackDropClick = function handleBackDropClick(event) {
|
|
2681
2690
|
if (event.target === event.currentTarget) onClose();
|
|
2682
2691
|
};
|
|
2692
|
+
React.useEffect(function () {
|
|
2693
|
+
if (open) document.body.style.overflow = 'hidden';else document.body.style.overflow = 'unset';
|
|
2694
|
+
}, [open]);
|
|
2683
2695
|
return React__default.createElement(React__default.Fragment, null, open && reactDom.createPortal(React__default.createElement(BackDrop, {
|
|
2684
2696
|
onClick: handleBackDropClick
|
|
2685
2697
|
}, React__default.createElement(ModalContainer, {
|
|
@@ -2702,7 +2714,6 @@ function Modal(props) {
|
|
|
2702
2714
|
})(exports.WalletState || (exports.WalletState = {}));
|
|
2703
2715
|
|
|
2704
2716
|
var StateIconContainer = /*#__PURE__*/styled('span', {
|
|
2705
|
-
width: '$28',
|
|
2706
2717
|
display: 'flex',
|
|
2707
2718
|
justifyContent: 'center',
|
|
2708
2719
|
alignItems: 'center'
|
|
@@ -2901,7 +2912,7 @@ var StyledSwitchThumb = /*#__PURE__*/styled(RadixSwitch.Thumb, {
|
|
|
2901
2912
|
willChange: 'transform',
|
|
2902
2913
|
'&[data-state="checked"]': {
|
|
2903
2914
|
transform: 'translateX(20px)',
|
|
2904
|
-
backgroundColor: '$
|
|
2915
|
+
backgroundColor: '$primary'
|
|
2905
2916
|
}
|
|
2906
2917
|
});
|
|
2907
2918
|
function Switch(props) {
|
|
@@ -3219,17 +3230,18 @@ var StyledIndicator = /*#__PURE__*/styled(RadioGroup.Indicator, {
|
|
|
3219
3230
|
});
|
|
3220
3231
|
var Label$2 = /*#__PURE__*/styled('label', {
|
|
3221
3232
|
paddingLeft: '$8',
|
|
3222
|
-
cursor: 'pointer'
|
|
3233
|
+
cursor: 'pointer',
|
|
3234
|
+
color: '$foreground'
|
|
3223
3235
|
});
|
|
3224
3236
|
function Radio(props) {
|
|
3225
|
-
var
|
|
3237
|
+
var value = props.value,
|
|
3226
3238
|
onChange = props.onChange,
|
|
3227
3239
|
_props$direction = props.direction,
|
|
3228
3240
|
direction = _props$direction === void 0 ? 'vertical' : _props$direction,
|
|
3229
3241
|
style = props.style;
|
|
3230
3242
|
return React__default.createElement(Container$3, null, React__default.createElement(StyledRoot, {
|
|
3231
3243
|
onValueChange: onChange,
|
|
3232
|
-
|
|
3244
|
+
value: value,
|
|
3233
3245
|
direction: direction,
|
|
3234
3246
|
style: style
|
|
3235
3247
|
}, props.options.map(function (option, index) {
|
|
@@ -3239,6 +3251,7 @@ function Radio(props) {
|
|
|
3239
3251
|
value: option.value,
|
|
3240
3252
|
id: option.value
|
|
3241
3253
|
}, React__default.createElement(StyledIndicator, null)), React__default.createElement(Label$2, {
|
|
3254
|
+
className: "_text",
|
|
3242
3255
|
htmlFor: option.value
|
|
3243
3256
|
}, React__default.createElement(Typography, {
|
|
3244
3257
|
variant: "body2"
|
|
@@ -3338,7 +3351,7 @@ function Settings(props) {
|
|
|
3338
3351
|
}))), React__default.createElement(ThemesContainer, null, React__default.createElement(Title, {
|
|
3339
3352
|
variant: "body2"
|
|
3340
3353
|
}, "Theme"), React__default.createElement(Radio, {
|
|
3341
|
-
|
|
3354
|
+
value: selectedTheme,
|
|
3342
3355
|
options: [{
|
|
3343
3356
|
value: 'dark',
|
|
3344
3357
|
label: 'Dark'
|
|
@@ -3840,6 +3853,12 @@ var Popover = /*#__PURE__*/styled('div', {
|
|
|
3840
3853
|
}
|
|
3841
3854
|
}
|
|
3842
3855
|
});
|
|
3856
|
+
var Label$3 = /*#__PURE__*/styled('label', {
|
|
3857
|
+
display: 'inline-block',
|
|
3858
|
+
fontSize: '$14',
|
|
3859
|
+
marginBottom: '$4',
|
|
3860
|
+
color: '$foreground'
|
|
3861
|
+
});
|
|
3843
3862
|
function ColorPicker(_ref) {
|
|
3844
3863
|
var color = _ref.color,
|
|
3845
3864
|
onChangeColor = _ref.onChangeColor,
|
|
@@ -3848,9 +3867,8 @@ function ColorPicker(_ref) {
|
|
|
3848
3867
|
var _useState = React.useState(false),
|
|
3849
3868
|
displayColorPicker = _useState[0],
|
|
3850
3869
|
setDisplayColorPicker = _useState[1];
|
|
3851
|
-
return React__default.createElement(Container$5, null, React__default.createElement(
|
|
3852
|
-
|
|
3853
|
-
variant: "body2"
|
|
3870
|
+
return React__default.createElement(Container$5, null, React__default.createElement(Label$3, {
|
|
3871
|
+
className: "_text"
|
|
3854
3872
|
}, label), React__default.createElement(Button, {
|
|
3855
3873
|
variant: "outlined",
|
|
3856
3874
|
prefix: React__default.createElement(Color, {
|