@vitality-ds/components 4.4.0 → 4.4.2
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/Chip/components/Checkbox/styles/BaseChipCheckbox.styles.js +1 -0
- package/dist/Input/Select/components/Option/index.js +3 -2
- package/dist/Input/Select/components/OptionValueContents/index.js +26 -0
- package/dist/Input/Select/components/OptionValueContents/types.js +1 -0
- package/dist/Input/Select/components/SingleValue/index.js +15 -0
- package/dist/Input/Select/components/SingleValue/types.js +1 -0
- package/dist/Input/Select/logic.js +3 -1
- package/dist/Input/Select/logic.spec.js +3 -1
- package/dist/Switch/index.js +1 -0
- package/dist/Switch/styles/BaseSwitch.styles.js +5 -5
- package/dist/Switch/styles/BaseSwitchLabel.styles.js +16 -0
- package/dist/Switch/styles/BaseSwitchThumb.styles.js +1 -1
- package/dist/components/src/Chip/components/Checkbox/styled.d.ts +1 -0
- package/dist/components/src/Chip/components/Checkbox/styled.d.ts.map +1 -1
- package/dist/components/src/Chip/components/Checkbox/styles/BaseChipCheckbox.styles.d.ts +1 -0
- package/dist/components/src/Chip/components/Checkbox/styles/BaseChipCheckbox.styles.d.ts.map +1 -1
- package/dist/components/src/Chip/components/Checkbox/styles/BaseChipCheckbox.styles.js +1 -0
- package/dist/components/src/Chip/components/Checkbox/styles/BaseChipCheckbox.styles.js.map +1 -1
- package/dist/components/src/Flex/types.d.ts +1 -1
- package/dist/components/src/Flex/types.d.ts.map +1 -1
- package/dist/components/src/Input/Select/Select/primitives/types.d.ts +2 -0
- package/dist/components/src/Input/Select/Select/primitives/types.d.ts.map +1 -1
- package/dist/components/src/Input/Select/components/Option/index.d.ts.map +1 -1
- package/dist/components/src/Input/Select/components/Option/index.js +5 -3
- package/dist/components/src/Input/Select/components/Option/index.js.map +1 -1
- package/dist/components/src/Input/Select/components/OptionValueContents/index.d.ts +5 -0
- package/dist/components/src/Input/Select/components/OptionValueContents/index.d.ts.map +1 -0
- package/dist/components/src/Input/Select/components/OptionValueContents/index.js +30 -0
- package/dist/components/src/Input/Select/components/OptionValueContents/index.js.map +1 -0
- package/dist/components/src/Input/Select/components/OptionValueContents/types.d.ts +3 -0
- package/dist/components/src/Input/Select/components/OptionValueContents/types.d.ts.map +1 -0
- package/dist/components/src/Input/Select/components/OptionValueContents/types.js +3 -0
- package/dist/components/src/Input/Select/components/OptionValueContents/types.js.map +1 -0
- package/dist/components/src/Input/Select/components/SingleValue/index.d.ts +5 -0
- package/dist/components/src/Input/Select/components/SingleValue/index.d.ts.map +1 -0
- package/dist/components/src/Input/Select/components/SingleValue/index.js +26 -0
- package/dist/components/src/Input/Select/components/SingleValue/index.js.map +1 -0
- package/dist/components/src/Input/Select/components/SingleValue/types.d.ts +8 -0
- package/dist/components/src/Input/Select/components/SingleValue/types.d.ts.map +1 -0
- package/dist/components/src/Input/Select/components/SingleValue/types.js +3 -0
- package/dist/components/src/Input/Select/components/SingleValue/types.js.map +1 -0
- package/dist/components/src/Input/Select/hooks/useGetCustomComponents.d.ts +1 -1
- package/dist/components/src/Input/Select/logic.d.ts +2 -1
- package/dist/components/src/Input/Select/logic.d.ts.map +1 -1
- package/dist/components/src/Input/Select/logic.js +2 -1
- package/dist/components/src/Input/Select/logic.js.map +1 -1
- package/dist/components/src/Input/Select/logic.spec.js +2 -0
- package/dist/components/src/Input/Select/logic.spec.js.map +1 -1
- package/dist/components/src/StatusBadge/StatusBadge.d.ts +2 -2
- package/dist/components/src/StatusBadge/StatusBadgeButton.d.ts +2 -2
- package/dist/components/src/StatusBadge/StatusBadgeLink.d.ts +2 -2
- package/dist/components/src/StatusBadge/types.d.ts +2 -2
- package/dist/components/src/StatusBadge/types.d.ts.map +1 -1
- package/dist/components/src/Switch/index.d.ts.map +1 -1
- package/dist/components/src/Switch/index.js +1 -1
- package/dist/components/src/Switch/index.js.map +1 -1
- package/dist/components/src/Switch/styled.d.ts +15 -0
- package/dist/components/src/Switch/styled.d.ts.map +1 -1
- package/dist/components/src/Switch/styles/BaseSwitch.styles.js +5 -5
- package/dist/components/src/Switch/styles/BaseSwitch.styles.js.map +1 -1
- package/dist/components/src/Switch/styles/BaseSwitchLabel.styles.d.ts +15 -0
- package/dist/components/src/Switch/styles/BaseSwitchLabel.styles.d.ts.map +1 -1
- package/dist/components/src/Switch/styles/BaseSwitchLabel.styles.js +15 -0
- package/dist/components/src/Switch/styles/BaseSwitchLabel.styles.js.map +1 -1
- package/dist/components/src/Switch/styles/BaseSwitchThumb.styles.js +1 -1
- package/dist/esm/Chip/components/Checkbox/styles/BaseChipCheckbox.styles.js +1 -0
- package/dist/esm/Input/Select/components/Option/index.js +3 -2
- package/dist/esm/Input/Select/components/OptionValueContents/index.js +19 -0
- package/dist/esm/Input/Select/components/OptionValueContents/types.js +1 -0
- package/dist/esm/Input/Select/components/SingleValue/index.js +8 -0
- package/dist/esm/Input/Select/components/SingleValue/types.js +1 -0
- package/dist/esm/Input/Select/logic.js +3 -1
- package/dist/esm/Input/Select/logic.spec.js +3 -1
- package/dist/esm/Switch/index.js +1 -0
- package/dist/esm/Switch/styles/BaseSwitch.styles.js +5 -5
- package/dist/esm/Switch/styles/BaseSwitchLabel.styles.js +16 -0
- package/dist/esm/Switch/styles/BaseSwitchThumb.styles.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -8,6 +8,7 @@ var Control_1 = __importDefault(require("./components/Control"));
|
|
|
8
8
|
var DropdownIndicator_1 = __importDefault(require("./components/DropdownIndicator"));
|
|
9
9
|
var LoadingIndicator_1 = __importDefault(require("./components/LoadingIndicator"));
|
|
10
10
|
var Option_1 = __importDefault(require("./components/Option"));
|
|
11
|
+
var SingleValue_1 = __importDefault(require("./components/SingleValue"));
|
|
11
12
|
var logic_1 = require("./logic");
|
|
12
13
|
describe("getCustomComponents", function () {
|
|
13
14
|
it("should not return CustomDropdownIndicator when hideDropdownIndicator is true", function () {
|
|
@@ -42,6 +43,7 @@ describe("getCustomComponents", function () {
|
|
|
42
43
|
LoadingIndicator: LoadingIndicator_1.default,
|
|
43
44
|
ClearIndicator: ClearButton_1.default,
|
|
44
45
|
Option: Option_1.default,
|
|
46
|
+
SingleValue: SingleValue_1.default,
|
|
45
47
|
});
|
|
46
48
|
});
|
|
47
49
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logic.spec.js","sourceRoot":"","sources":["../../../../../src/Input/Select/logic.spec.tsx"],"names":[],"mappings":";;;;;AAAA,yEAAyD;AACzD,iEAAiD;AACjD,qFAAqE;AACrE,mFAAmE;AACnE,+DAAuD;AACvD,iCAMiB;AAEjB,QAAQ,CAAC,qBAAqB,EAAE;IAC9B,EAAE,CAAC,8EAA8E,EAAE;QACjF,IAAM,qBAAqB,GAAG,IAAI,CAAC;QAC3B,IAAA,iBAAiB,GAAK,IAAA,2BAAmB,EAAC;YAChD,qBAAqB,uBAAA;SACtB,CAAC,kBAFuB,CAEtB;QACH,MAAM,CAAC,iBAAiB,CAAC,CAAC,SAAS,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2EAA2E,EAAE;QAC9E,IAAM,SAAS,GAAG,SAAS,CAAC;QAEpB,IAAA,iBAAiB,GAAK,IAAA,2BAAmB,EAAC,EAAE,SAAS,WAAA,EAAE,CAAC,kBAAvC,CAAwC;QACjE,MAAM,CAAC,iBAAiB,CAAC,CAAC,UAAU,EAAE,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mDAAmD,EAAE;QACtD,IAAM,qBAAqB,GAAG,KAAK,CAAC;QAE9B,IAAA,KACJ,IAAA,2BAAmB,EAAC;YAClB,qBAAqB,uBAAA;SACtB,CAAC,EAHI,iBAAiB,uBAAA,EAAE,cAAc,oBAAA,EAAE,gBAAgB,sBAGvD,CAAC;QACL,MAAM,CAAC,iBAAiB,CAAC,CAAC,UAAU,EAAE,CAAC;QACvC,MAAM,CAAC,cAAc,CAAC,CAAC,UAAU,EAAE,CAAC;QACpC,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AAiB,EAAC,KAAK,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,IAAI,CAChE,YAAY,CACb,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4DAA4D,EAAE;QAC/D,IAAM,KAAK,GAAG,YAAY,CAAC;QAC3B,IAAM,UAAU,GAAG,YAAY,CAAC;QAChC,IAAM,eAAe,GAAG,SAAS,CAAC;QAClC,MAAM,CAAC,IAAA,yBAAiB,EAAC,KAAK,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,IAAI,CAChE,YAAY,CACb,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -759,8 +759,8 @@ declare const StatusBadge: React.ForwardRefExoticComponent<Pick<{
|
|
|
759
759
|
label?: string;
|
|
760
760
|
icon?: React.ReactNode;
|
|
761
761
|
hideIcon?: boolean;
|
|
762
|
-
severity
|
|
763
|
-
importance
|
|
762
|
+
severity?: "neutral" | "accent" | "success" | "info" | "warning" | "critical";
|
|
763
|
+
importance?: "normal" | "low" | "high";
|
|
764
764
|
interactive?: never;
|
|
765
765
|
}, "placeholder" | "color" | "translate" | "css" | "prefix" | "hidden" | "style" | "icon" | "label" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "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" | "children" | "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" | "asChild" | "as" | "severity" | "interactive" | "importance" | "hideIcon"> & React.RefAttributes<HTMLDivElement>>;
|
|
766
766
|
export default StatusBadge;
|
|
@@ -759,8 +759,8 @@ declare const StatusBadgeButton: React.ForwardRefExoticComponent<Pick<{
|
|
|
759
759
|
label?: string;
|
|
760
760
|
icon?: React.ReactNode;
|
|
761
761
|
hideIcon?: boolean;
|
|
762
|
-
severity
|
|
763
|
-
importance
|
|
762
|
+
severity?: "neutral" | "accent" | "success" | "info" | "warning" | "critical";
|
|
763
|
+
importance?: "normal" | "low" | "high";
|
|
764
764
|
interactive?: never;
|
|
765
765
|
} & {
|
|
766
766
|
onClick: () => void;
|
|
@@ -759,8 +759,8 @@ declare const StatusBadgeLink: React.ForwardRefExoticComponent<Pick<{
|
|
|
759
759
|
label?: string;
|
|
760
760
|
icon?: React.ReactNode;
|
|
761
761
|
hideIcon?: boolean;
|
|
762
|
-
severity
|
|
763
|
-
importance
|
|
762
|
+
severity?: "neutral" | "accent" | "success" | "info" | "warning" | "critical";
|
|
763
|
+
importance?: "normal" | "low" | "high";
|
|
764
764
|
interactive?: never;
|
|
765
765
|
} & {
|
|
766
766
|
href: string;
|
|
@@ -26,11 +26,11 @@ declare type BaseStatusBadgeProps = {
|
|
|
26
26
|
/**
|
|
27
27
|
* Indicate the severity of a status using Vitality's feedback color scale.
|
|
28
28
|
*/
|
|
29
|
-
severity
|
|
29
|
+
severity?: SeverityKeys;
|
|
30
30
|
/**
|
|
31
31
|
* The importance of a StatusBadge determines its level of visual prominence.
|
|
32
32
|
*/
|
|
33
|
-
importance
|
|
33
|
+
importance?: ImportanceKeys;
|
|
34
34
|
/**
|
|
35
35
|
* @ignore
|
|
36
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/StatusBadge/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,aAAa,EACb,YAAY,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EACV,wBAAwB,EACxB,OAAO,EACR,MAAM,+BAA+B,CAAC;AAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kNAoDX,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -38,7 +38,7 @@ var Switch = react_1.default.forwardRef(function (_a, forwardedRef) {
|
|
|
38
38
|
var defaultChecked = _a.defaultChecked, required = _a.required, name = _a.name, value = _a.value, id = _a.id, checked = _a.checked, onCheckedChange = _a.onCheckedChange, disabled = _a.disabled, style = _a.style, className = _a.className, as = _a.as, css = _a.css, _b = _a.labelPosition, labelPosition = _b === void 0 ? "left" : _b, label = _a.label, restProps = __rest(_a, ["defaultChecked", "required", "name", "value", "id", "checked", "onCheckedChange", "disabled", "style", "className", "as", "css", "labelPosition", "label"]);
|
|
39
39
|
var direction = labelDirections_1.default[labelPosition];
|
|
40
40
|
return (react_1.default.createElement(Stack_1.default, { direction: direction, align: "center" },
|
|
41
|
-
label && (react_1.default.createElement(styled_1.BaseSwitchLabel, { disabled: disabled, htmlFor: id }, label)),
|
|
41
|
+
label && (react_1.default.createElement(styled_1.BaseSwitchLabel, { direction: labelPosition, disabled: disabled, htmlFor: id }, label)),
|
|
42
42
|
react_1.default.createElement(styled_1.BaseSwitch, __assign({ defaultChecked: defaultChecked, required: required, name: name, value: value, disabled: disabled, id: id, checked: checked, onCheckedChange: onCheckedChange, ref: forwardedRef }, restProps),
|
|
43
43
|
react_1.default.createElement(styled_1.BaseSwitchThumb, { checked: checked }),
|
|
44
44
|
checked ? react_1.default.createElement(icons_1.Done, __assign({}, iconProps)) : react_1.default.createElement(icons_1.Close, __assign({}, iconProps)))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Switch/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAiD;AAEjD,gDAA0B;AAE1B,mDAA6B;AAC7B,gFAA2D;AAC3D,mCAAwE;AAGxE,IAAM,SAAS,GAAa;IAC1B,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;CAChB,CAAC;AAEF,IAAM,MAAM,GAAG,eAAK,CAAC,UAAU,CAC7B,UACE,EAgBc,EACd,YAAgD;IAhB9C,IAAA,cAAc,oBAAA,EACd,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,EAAE,QAAA,EACF,OAAO,aAAA,EACP,eAAe,qBAAA,EACf,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,SAAS,eAAA,EACT,EAAE,QAAA,EACF,GAAG,SAAA,EACH,qBAAsB,EAAtB,aAAa,mBAAG,MAAM,KAAA,EACtB,KAAK,WAAA,EACF,SAAS,cAfd,4JAgBC,CADa;IAId,IAAM,SAAS,GAAG,yBAAgB,CAAC,aAAa,CAAC,CAAC;IAElD,OAAO,CACL,8BAAC,eAAK,IAAC,SAAS,EAAE,SAAS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b,SAAS;YAEb,8BAAC,wBAAe,IAAC,OAAO,EAAE,OAAO,GAAI;YACpC,OAAO,CAAC,CAAC,CAAC,8BAAC,YAAI,eAAK,SAAS,EAAI,CAAC,CAAC,CAAC,8BAAC,aAAK,eAAK,SAAS,EAAI,CAClD,CACP,CACT,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,kBAAe,MAAM,CAAC"}
|
|
@@ -1485,6 +1485,7 @@ export declare const BaseSwitchLabel: import("@stitches/react/types/styled-compo
|
|
|
1485
1485
|
whiteSpace: string;
|
|
1486
1486
|
textWrap: string;
|
|
1487
1487
|
flex: number;
|
|
1488
|
+
marginBottom: number;
|
|
1488
1489
|
variants: {
|
|
1489
1490
|
disabled: {
|
|
1490
1491
|
true: {
|
|
@@ -1492,6 +1493,20 @@ export declare const BaseSwitchLabel: import("@stitches/react/types/styled-compo
|
|
|
1492
1493
|
color: "$colors$blue2" | "$colors$cyan2" | "$colors$green2" | "$colors$grey2" | "$colors$greyA2" | "$colors$orange2" | "$colors$pink2" | "$colors$red2" | "$colors$yellow2" | "$colors$blue1" | "$colors$cyan1" | "$colors$green1" | "$colors$grey1" | "$colors$greyA1" | "$colors$orange1" | "$colors$pink1" | "$colors$red1" | "$colors$yellow1" | "$colors$blue7" | "$colors$cyan7" | "$colors$green7" | "$colors$grey7" | "$colors$greyA7" | "$colors$orange7" | "$colors$pink7" | "$colors$red7" | "$colors$yellow7" | "$colors$blue12" | "$colors$cyan12" | "$colors$green12" | "$colors$grey12" | "$colors$greyA12" | "$colors$orange12" | "$colors$pink12" | "$colors$red12" | "$colors$yellow12" | "$colors$blue3" | "$colors$cyan3" | "$colors$green3" | "$colors$grey3" | "$colors$greyA3" | "$colors$orange3" | "$colors$pink3" | "$colors$red3" | "$colors$yellow3" | "$colors$blue4" | "$colors$cyan4" | "$colors$green4" | "$colors$grey4" | "$colors$greyA4" | "$colors$orange4" | "$colors$pink4" | "$colors$red4" | "$colors$yellow4" | "$colors$blue5" | "$colors$cyan5" | "$colors$green5" | "$colors$grey5" | "$colors$greyA5" | "$colors$orange5" | "$colors$pink5" | "$colors$red5" | "$colors$yellow5" | "$colors$blue9" | "$colors$cyan9" | "$colors$green9" | "$colors$grey9" | "$colors$greyA9" | "$colors$orange9" | "$colors$pink9" | "$colors$red9" | "$colors$yellow9" | "$colors$blue10" | "$colors$cyan10" | "$colors$green10" | "$colors$grey10" | "$colors$greyA10" | "$colors$orange10" | "$colors$pink10" | "$colors$red10" | "$colors$yellow10" | "$colors$blue11" | "$colors$cyan11" | "$colors$green11" | "$colors$grey11" | "$colors$greyA11" | "$colors$orange11" | "$colors$pink11" | "$colors$red11" | "$colors$yellow11" | "$colors$blue6" | "$colors$cyan6" | "$colors$green6" | "$colors$grey6" | "$colors$greyA6" | "$colors$orange6" | "$colors$pink6" | "$colors$red6" | "$colors$yellow6" | "$colors$blue8" | "$colors$cyan8" | "$colors$green8" | "$colors$grey8" | "$colors$greyA8" | "$colors$orange8" | "$colors$pink8" | "$colors$red8" | "$colors$yellow8" | "$colors$blue13" | "$colors$cyan13" | "$colors$green13" | "$colors$grey13" | "$colors$greyA13" | "$colors$orange13" | "$colors$pink13" | "$colors$red13" | "$colors$yellow13" | "$colors$neutral2" | "$colors$neutralA2" | "$colors$primary2" | "$colors$accent2" | "$colors$success2" | "$colors$info2" | "$colors$warning2" | "$colors$critical2" | "$colors$neutral1" | "$colors$neutralA1" | "$colors$primary1" | "$colors$accent1" | "$colors$success1" | "$colors$info1" | "$colors$warning1" | "$colors$critical1" | "$colors$neutral7" | "$colors$neutralA7" | "$colors$primary7" | "$colors$accent7" | "$colors$success7" | "$colors$info7" | "$colors$warning7" | "$colors$critical7" | "$colors$neutral12" | "$colors$neutralA12" | "$colors$primary12" | "$colors$accent12" | "$colors$success12" | "$colors$info12" | "$colors$warning12" | "$colors$critical12" | "$colors$neutral3" | "$colors$neutralA3" | "$colors$primary3" | "$colors$accent3" | "$colors$success3" | "$colors$info3" | "$colors$warning3" | "$colors$critical3" | "$colors$neutral4" | "$colors$neutralA4" | "$colors$primary4" | "$colors$accent4" | "$colors$success4" | "$colors$info4" | "$colors$warning4" | "$colors$critical4" | "$colors$neutral5" | "$colors$neutralA5" | "$colors$primary5" | "$colors$accent5" | "$colors$success5" | "$colors$info5" | "$colors$warning5" | "$colors$critical5" | "$colors$neutral9" | "$colors$neutralA9" | "$colors$primary9" | "$colors$accent9" | "$colors$success9" | "$colors$info9" | "$colors$warning9" | "$colors$critical9" | "$colors$neutral10" | "$colors$neutralA10" | "$colors$primary10" | "$colors$accent10" | "$colors$success10" | "$colors$info10" | "$colors$warning10" | "$colors$critical10" | "$colors$neutral11" | "$colors$neutralA11" | "$colors$primary11" | "$colors$accent11" | "$colors$success11" | "$colors$info11" | "$colors$warning11" | "$colors$critical11" | "$colors$neutral6" | "$colors$neutralA6" | "$colors$primary6" | "$colors$accent6" | "$colors$success6" | "$colors$info6" | "$colors$warning6" | "$colors$critical6" | "$colors$neutral8" | "$colors$neutralA8" | "$colors$primary8" | "$colors$accent8" | "$colors$success8" | "$colors$info8" | "$colors$warning8" | "$colors$critical8" | "$colors$neutral13" | "$colors$neutralA13" | "$colors$primary13" | "$colors$accent13" | "$colors$success13" | "$colors$info13" | "$colors$warning13" | "$colors$critical13";
|
|
1493
1494
|
};
|
|
1494
1495
|
};
|
|
1496
|
+
direction: {
|
|
1497
|
+
top: {
|
|
1498
|
+
textAlign: string;
|
|
1499
|
+
};
|
|
1500
|
+
bottom: {
|
|
1501
|
+
textAlign: string;
|
|
1502
|
+
};
|
|
1503
|
+
left: {
|
|
1504
|
+
textAlign: string;
|
|
1505
|
+
};
|
|
1506
|
+
right: {
|
|
1507
|
+
textAlign: string;
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1495
1510
|
};
|
|
1496
1511
|
}]>, {
|
|
1497
1512
|
bp1: "(min-width: 48rem)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3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UseCase)("neutral", backgrounds.uiElementSolid_disabled),
|
|
34
|
-
color: (0, system_1.getColorScaleValueByUseCase)("neutral", text.
|
|
34
|
+
color: (0, system_1.getColorScaleValueByUseCase)("neutral", text.disabled),
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
"&:hover": {
|
|
@@ -52,14 +52,14 @@ exports.default = (0, system_1.css)({
|
|
|
52
52
|
checked: {
|
|
53
53
|
true: {
|
|
54
54
|
justifyContent: "flex-start",
|
|
55
|
-
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("primary", backgrounds.
|
|
55
|
+
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("primary", backgrounds.uiElementSolid),
|
|
56
56
|
"&:hover": {
|
|
57
|
-
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("primary", backgrounds.
|
|
57
|
+
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("primary", backgrounds.uiElementSolid_active),
|
|
58
58
|
},
|
|
59
59
|
"&[data-disabled]": {
|
|
60
60
|
"&, &:hover": {
|
|
61
|
-
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("
|
|
62
|
-
color: (0, system_1.getColorScaleValueByUseCase)("
|
|
61
|
+
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("neutral", backgrounds.uiElementSolid_disabled),
|
|
62
|
+
color: (0, system_1.getColorScaleValueByUseCase)("neutral", text.disabled),
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSwitch.styles.js","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitch.styles.ts"],"names":[],"mappings":";;;;;AAAA,8CAI6B;AAE7B,2DAAqC;AACrC,yEAAkD;AAE1C,IAAA,IAAI,GAA2B,sBAAa,KAAxC,EAAE,WAAW,GAAc,sBAAa,YAA3B,EAAE,OAAO,GAAK,sBAAa,QAAlB,CAAmB;AAC7C,IAAA,WAAW,GAAsB,qBAAU,YAAhC,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W;gBAClB,MAAM,EAAE,YAAY;aACrB;SACF;QACD,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,cAAc,EAAE,YAAY;gBAC5B,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,WAAW,CAAC,cAAc,CAC3B;gBACD,SAAS,EAAE;oBACT,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,WAAW,CAAC,qBAAqB,CAClC;iBACF;gBAED,kBAAkB,EAAE;oBAClB,YAAY,EAAE;wBACZ,eAAe,EAAE,IAAA,oCAA2B,EAC1C,SAAS,EACT,WAAW,CAAC,uBAAuB,CACpC;wBACD,KAAK,EAAE,IAAA,oCAA2B,EAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC;qBAC7D;iBACF;aACF;SACF;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,GAAG;KACV;CACF,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ declare const _default: import("@stitches/react/types/styled-component").CssComp
|
|
|
4
4
|
whiteSpace: string;
|
|
5
5
|
textWrap: string;
|
|
6
6
|
flex: number;
|
|
7
|
+
marginBottom: number;
|
|
7
8
|
variants: {
|
|
8
9
|
disabled: {
|
|
9
10
|
true: {
|
|
@@ -11,6 +12,20 @@ declare const _default: import("@stitches/react/types/styled-component").CssComp
|
|
|
11
12
|
color: "$colors$blue2" | "$colors$cyan2" | "$colors$green2" | "$colors$grey2" | "$colors$greyA2" | "$colors$orange2" | "$colors$pink2" | "$colors$red2" | "$colors$yellow2" | "$colors$blue1" | "$colors$cyan1" | "$colors$green1" | "$colors$grey1" | "$colors$greyA1" | "$colors$orange1" | "$colors$pink1" | "$colors$red1" | "$colors$yellow1" | "$colors$blue7" | "$colors$cyan7" | "$colors$green7" | "$colors$grey7" | "$colors$greyA7" | "$colors$orange7" | "$colors$pink7" | "$colors$red7" | "$colors$yellow7" | "$colors$blue12" | "$colors$cyan12" | "$colors$green12" | "$colors$grey12" | "$colors$greyA12" | "$colors$orange12" | "$colors$pink12" | "$colors$red12" | "$colors$yellow12" | "$colors$blue3" | "$colors$cyan3" | "$colors$green3" | "$colors$grey3" | "$colors$greyA3" | "$colors$orange3" | "$colors$pink3" | "$colors$red3" | "$colors$yellow3" | "$colors$blue4" | "$colors$cyan4" | "$colors$green4" | "$colors$grey4" | "$colors$greyA4" | "$colors$orange4" | "$colors$pink4" | "$colors$red4" | "$colors$yellow4" | "$colors$blue5" | "$colors$cyan5" | "$colors$green5" | "$colors$grey5" | "$colors$greyA5" | "$colors$orange5" | "$colors$pink5" | "$colors$red5" | "$colors$yellow5" | "$colors$blue9" | "$colors$cyan9" | "$colors$green9" | "$colors$grey9" | "$colors$greyA9" | "$colors$orange9" | "$colors$pink9" | "$colors$red9" | "$colors$yellow9" | "$colors$blue10" | "$colors$cyan10" | "$colors$green10" | "$colors$grey10" | "$colors$greyA10" | "$colors$orange10" | "$colors$pink10" | "$colors$red10" | "$colors$yellow10" | "$colors$blue11" | "$colors$cyan11" | "$colors$green11" | "$colors$grey11" | "$colors$greyA11" | "$colors$orange11" | "$colors$pink11" | "$colors$red11" | "$colors$yellow11" | "$colors$blue6" | "$colors$cyan6" | "$colors$green6" | "$colors$grey6" | "$colors$greyA6" | "$colors$orange6" | "$colors$pink6" | "$colors$red6" | "$colors$yellow6" | "$colors$blue8" | "$colors$cyan8" | "$colors$green8" | "$colors$grey8" | "$colors$greyA8" | "$colors$orange8" | "$colors$pink8" | "$colors$red8" | "$colors$yellow8" | "$colors$blue13" | "$colors$cyan13" | "$colors$green13" | "$colors$grey13" | "$colors$greyA13" | "$colors$orange13" | "$colors$pink13" | "$colors$red13" | "$colors$yellow13" | "$colors$neutral2" | "$colors$neutralA2" | "$colors$primary2" | "$colors$accent2" | "$colors$success2" | "$colors$info2" | "$colors$warning2" | "$colors$critical2" | "$colors$neutral1" | "$colors$neutralA1" | "$colors$primary1" | "$colors$accent1" | "$colors$success1" | "$colors$info1" | "$colors$warning1" | "$colors$critical1" | "$colors$neutral7" | "$colors$neutralA7" | "$colors$primary7" | "$colors$accent7" | "$colors$success7" | "$colors$info7" | "$colors$warning7" | "$colors$critical7" | "$colors$neutral12" | "$colors$neutralA12" | "$colors$primary12" | "$colors$accent12" | "$colors$success12" | "$colors$info12" | "$colors$warning12" | "$colors$critical12" | "$colors$neutral3" | "$colors$neutralA3" | "$colors$primary3" | "$colors$accent3" | "$colors$success3" | "$colors$info3" | "$colors$warning3" | "$colors$critical3" | "$colors$neutral4" | "$colors$neutralA4" | "$colors$primary4" | "$colors$accent4" | "$colors$success4" | "$colors$info4" | "$colors$warning4" | "$colors$critical4" | "$colors$neutral5" | "$colors$neutralA5" | "$colors$primary5" | "$colors$accent5" | "$colors$success5" | "$colors$info5" | "$colors$warning5" | "$colors$critical5" | "$colors$neutral9" | "$colors$neutralA9" | "$colors$primary9" | "$colors$accent9" | "$colors$success9" | "$colors$info9" | "$colors$warning9" | "$colors$critical9" | "$colors$neutral10" | "$colors$neutralA10" | "$colors$primary10" | "$colors$accent10" | "$colors$success10" | "$colors$info10" | "$colors$warning10" | "$colors$critical10" | "$colors$neutral11" | "$colors$neutralA11" | "$colors$primary11" | "$colors$accent11" | "$colors$success11" | "$colors$info11" | "$colors$warning11" | "$colors$critical11" | "$colors$neutral6" | "$colors$neutralA6" | "$colors$primary6" | "$colors$accent6" | "$colors$success6" | "$colors$info6" | "$colors$warning6" | "$colors$critical6" | "$colors$neutral8" | "$colors$neutralA8" | "$colors$primary8" | "$colors$accent8" | "$colors$success8" | "$colors$info8" | "$colors$warning8" | "$colors$critical8" | "$colors$neutral13" | "$colors$neutralA13" | "$colors$primary13" | "$colors$accent13" | "$colors$success13" | "$colors$info13" | "$colors$warning13" | "$colors$critical13";
|
|
12
13
|
};
|
|
13
14
|
};
|
|
15
|
+
direction: {
|
|
16
|
+
top: {
|
|
17
|
+
textAlign: string;
|
|
18
|
+
};
|
|
19
|
+
bottom: {
|
|
20
|
+
textAlign: string;
|
|
21
|
+
};
|
|
22
|
+
left: {
|
|
23
|
+
textAlign: string;
|
|
24
|
+
};
|
|
25
|
+
right: {
|
|
26
|
+
textAlign: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
14
29
|
};
|
|
15
30
|
}]>, {
|
|
16
31
|
bp1: "(min-width: 48rem)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSwitchLabel.styles.d.ts","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitchLabel.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseSwitchLabel.styles.d.ts","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitchLabel.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBA6BG"}
|
|
@@ -8,6 +8,7 @@ exports.default = (0, system_1.css)({
|
|
|
8
8
|
whiteSpace: "pre",
|
|
9
9
|
textWrap: "auto",
|
|
10
10
|
flex: 1,
|
|
11
|
+
marginBottom: 0,
|
|
11
12
|
variants: {
|
|
12
13
|
disabled: {
|
|
13
14
|
true: {
|
|
@@ -15,6 +16,20 @@ exports.default = (0, system_1.css)({
|
|
|
15
16
|
color: (0, system_1.getColorScaleValueByUseCase)("neutral", text.disabled),
|
|
16
17
|
},
|
|
17
18
|
},
|
|
19
|
+
direction: {
|
|
20
|
+
top: {
|
|
21
|
+
textAlign: "center",
|
|
22
|
+
},
|
|
23
|
+
bottom: {
|
|
24
|
+
textAlign: "center",
|
|
25
|
+
},
|
|
26
|
+
left: {
|
|
27
|
+
textAlign: "right",
|
|
28
|
+
},
|
|
29
|
+
right: {
|
|
30
|
+
textAlign: "left",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
18
33
|
},
|
|
19
34
|
});
|
|
20
35
|
//# sourceMappingURL=BaseSwitchLabel.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseSwitchLabel.styles.js","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitchLabel.styles.ts"],"names":[],"mappings":";;AAAA,8CAI6B;AAErB,IAAA,IAAI,GAAK,sBAAa,KAAlB,CAAmB;AAE/B,kBAAe,IAAA,YAAG,EAAC;IACjB,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,CAAC;IACP,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,IAAI,EAAE;gBACJ,MAAM,EAAE,aAAa;gBACrB,KAAK,EAAE,IAAA,oCAA2B,EAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC;aAC7D;SACF;KACF;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"BaseSwitchLabel.styles.js","sourceRoot":"","sources":["../../../../../src/Switch/styles/BaseSwitchLabel.styles.ts"],"names":[],"mappings":";;AAAA,8CAI6B;AAErB,IAAA,IAAI,GAAK,sBAAa,KAAlB,CAAmB;AAE/B,kBAAe,IAAA,YAAG,EAAC;IACjB,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,SAAS;IACjB,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,CAAC;IACP,YAAY,EAAE,CAAC;IACf,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,IAAI,EAAE;gBACJ,MAAM,EAAE,aAAa;gBACrB,KAAK,EAAE,IAAA,oCAA2B,EAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC;aAC7D;SACF;QACD,SAAS,EAAE;YACT,GAAG,EAAE;gBACH,SAAS,EAAE,QAAQ;aACpB;YACD,MAAM,EAAE;gBACN,SAAS,EAAE,QAAQ;aACpB;YACD,IAAI,EAAE;gBACJ,SAAS,EAAE,OAAO;aACnB;YACD,KAAK,EAAE;gBACL,SAAS,EAAE,MAAM;aAClB;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -27,7 +27,7 @@ exports.default = (0, system_1.css)({
|
|
|
27
27
|
true: {
|
|
28
28
|
transform: "translateX(" + (TRACK_WIDTH - THUMB - INSET_SPACING) + "px)",
|
|
29
29
|
"&[data-disabled]": {
|
|
30
|
-
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("
|
|
30
|
+
backgroundColor: (0, system_1.getColorScaleValueByUseCase)("neutral", text.disabled),
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
},
|
|
@@ -20,6 +20,7 @@ export default css({
|
|
|
20
20
|
marginLeft: "$xs",
|
|
21
21
|
transition: "all 350ms",
|
|
22
22
|
cursor: "pointer",
|
|
23
|
+
whiteSpace: "pre",
|
|
23
24
|
"&:hover:not([disabled])": {
|
|
24
25
|
borderColor: getColorScaleValueByUseCase("neutralA", borders.uiElement_hovered),
|
|
25
26
|
backgroundColor: getColorScaleValueByUseCase("neutralA", backgrounds.uiElement_hovered),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { components } from "react-select";
|
|
3
|
+
import OptionValueContents from "../OptionValueContents";
|
|
3
4
|
import { BaseOption as BaseOptionComponent } from "./styled";
|
|
4
5
|
function CustomRenderedOption(props) {
|
|
5
6
|
var selectProps = props.selectProps,
|
|
@@ -12,7 +13,7 @@ function CustomRenderedOption(props) {
|
|
|
12
13
|
isSelected: isSelected,
|
|
13
14
|
isDisabled: isDisabled
|
|
14
15
|
};
|
|
15
|
-
if (
|
|
16
|
-
return /*#__PURE__*/React.createElement(
|
|
16
|
+
if (selectProps.renderOption) return /*#__PURE__*/React.createElement(components.Option, props, selectProps.renderOption(data, states));
|
|
17
|
+
return /*#__PURE__*/React.createElement(BaseOptionComponent, props, /*#__PURE__*/React.createElement(OptionValueContents, data));
|
|
17
18
|
}
|
|
18
19
|
export default CustomRenderedOption;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Flex from "../../../../Flex";
|
|
3
|
+
import Stack from "../../../../Stack";
|
|
4
|
+
import { StatusBadge } from "../../../../StatusBadge";
|
|
5
|
+
import Typography from "../../../../Typography";
|
|
6
|
+
function OptionValueContents(_ref) {
|
|
7
|
+
var label = _ref.label,
|
|
8
|
+
statusBadgeProps = _ref.statusBadgeProps;
|
|
9
|
+
return /*#__PURE__*/React.createElement(Stack, {
|
|
10
|
+
direction: "horizontal",
|
|
11
|
+
align: "center",
|
|
12
|
+
justify: "between"
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
14
|
+
textOverflow: "ellipsis"
|
|
15
|
+
}, label), statusBadgeProps && /*#__PURE__*/React.createElement(Flex, {
|
|
16
|
+
shouldShrink: false
|
|
17
|
+
}, /*#__PURE__*/React.createElement(StatusBadge, statusBadgeProps)));
|
|
18
|
+
}
|
|
19
|
+
export default OptionValueContents;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { components } from "react-select";
|
|
3
|
+
import OptionValueContents from "../OptionValueContents";
|
|
4
|
+
function CustomSingleValue(props) {
|
|
5
|
+
var data = props.data;
|
|
6
|
+
return /*#__PURE__*/React.createElement(components.SingleValue, props, /*#__PURE__*/React.createElement(OptionValueContents, data));
|
|
7
|
+
}
|
|
8
|
+
export default CustomSingleValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,7 @@ import CustomDropdownIndicator from "./components/DropdownIndicator";
|
|
|
6
6
|
import CustomInput from "./components/Input";
|
|
7
7
|
import CustomLoadingIndicator from "./components/LoadingIndicator";
|
|
8
8
|
import CustomRenderedOption from "./components/Option";
|
|
9
|
+
import CustomSingleValue from "./components/SingleValue";
|
|
9
10
|
import { CUSTOM_COMPONENTS } from "./constants";
|
|
10
11
|
import { multiValueStyleOptions, styles } from "./styled";
|
|
11
12
|
export function getStyles(multiSelectType) {
|
|
@@ -22,7 +23,8 @@ export function getCustomComponents(_ref) {
|
|
|
22
23
|
DropdownIndicator: !hideDropdownIndicator && CustomDropdownIndicator,
|
|
23
24
|
ClearIndicator: CustomClearButton,
|
|
24
25
|
LoadingIndicator: CustomLoadingIndicator,
|
|
25
|
-
Option: CustomRenderedOption
|
|
26
|
+
Option: CustomRenderedOption,
|
|
27
|
+
SingleValue: CustomSingleValue
|
|
26
28
|
}, CUSTOM_COMPONENTS[multiSelectType]);
|
|
27
29
|
if (component === "searchSelectInput") {
|
|
28
30
|
Object.assign(customComponents, {
|
|
@@ -3,6 +3,7 @@ import CustomControl from "./components/Control";
|
|
|
3
3
|
import CustomDropdownIndicator from "./components/DropdownIndicator";
|
|
4
4
|
import CustomLoadingIndicator from "./components/LoadingIndicator";
|
|
5
5
|
import CustomRenderedOption from "./components/Option";
|
|
6
|
+
import CustomSingleValue from "./components/SingleValue";
|
|
6
7
|
import { getCustomComponents, getSafeInputValue, getSafeValue, getValueObject, getValueObjectFromOptionsByValueString } from "./logic";
|
|
7
8
|
describe("getCustomComponents", function () {
|
|
8
9
|
it("should not return CustomDropdownIndicator when hideDropdownIndicator is true", function () {
|
|
@@ -43,7 +44,8 @@ describe("getCustomComponents", function () {
|
|
|
43
44
|
Control: CustomControl,
|
|
44
45
|
LoadingIndicator: CustomLoadingIndicator,
|
|
45
46
|
ClearIndicator: CustomClearButton,
|
|
46
|
-
Option: CustomRenderedOption
|
|
47
|
+
Option: CustomRenderedOption,
|
|
48
|
+
SingleValue: CustomSingleValue
|
|
47
49
|
});
|
|
48
50
|
});
|
|
49
51
|
});
|
package/dist/esm/Switch/index.js
CHANGED
|
@@ -32,6 +32,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
|
32
32
|
direction: direction,
|
|
33
33
|
align: "center"
|
|
34
34
|
}, label && /*#__PURE__*/React.createElement(BaseSwitchLabel, {
|
|
35
|
+
direction: labelPosition,
|
|
35
36
|
disabled: disabled,
|
|
36
37
|
htmlFor: id
|
|
37
38
|
}, label), /*#__PURE__*/React.createElement(BaseSwitch, _extends({
|
|
@@ -30,7 +30,7 @@ export default css({
|
|
|
30
30
|
cursor: "not-allowed",
|
|
31
31
|
"&, &:hover": {
|
|
32
32
|
backgroundColor: getColorScaleValueByUseCase("neutral", backgrounds.uiElementSolid_disabled),
|
|
33
|
-
color: getColorScaleValueByUseCase("neutral", text.
|
|
33
|
+
color: getColorScaleValueByUseCase("neutral", text.disabled)
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"&:hover": {
|
|
@@ -51,14 +51,14 @@ export default css({
|
|
|
51
51
|
checked: {
|
|
52
52
|
"true": {
|
|
53
53
|
justifyContent: "flex-start",
|
|
54
|
-
backgroundColor: getColorScaleValueByUseCase("primary", backgrounds.
|
|
54
|
+
backgroundColor: getColorScaleValueByUseCase("primary", backgrounds.uiElementSolid),
|
|
55
55
|
"&:hover": {
|
|
56
|
-
backgroundColor: getColorScaleValueByUseCase("primary", backgrounds.
|
|
56
|
+
backgroundColor: getColorScaleValueByUseCase("primary", backgrounds.uiElementSolid_active)
|
|
57
57
|
},
|
|
58
58
|
"&[data-disabled]": {
|
|
59
59
|
"&, &:hover": {
|
|
60
|
-
backgroundColor: getColorScaleValueByUseCase("
|
|
61
|
-
color: getColorScaleValueByUseCase("
|
|
60
|
+
backgroundColor: getColorScaleValueByUseCase("neutral", backgrounds.uiElementSolid_disabled),
|
|
61
|
+
color: getColorScaleValueByUseCase("neutral", text.disabled)
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -6,12 +6,28 @@ export default css({
|
|
|
6
6
|
whiteSpace: "pre",
|
|
7
7
|
textWrap: "auto",
|
|
8
8
|
flex: 1,
|
|
9
|
+
marginBottom: 0,
|
|
10
|
+
// Gentu global style override
|
|
9
11
|
variants: {
|
|
10
12
|
disabled: {
|
|
11
13
|
"true": {
|
|
12
14
|
cursor: "not-allowed",
|
|
13
15
|
color: getColorScaleValueByUseCase("neutral", text.disabled)
|
|
14
16
|
}
|
|
17
|
+
},
|
|
18
|
+
direction: {
|
|
19
|
+
top: {
|
|
20
|
+
textAlign: "center"
|
|
21
|
+
},
|
|
22
|
+
bottom: {
|
|
23
|
+
textAlign: "center"
|
|
24
|
+
},
|
|
25
|
+
left: {
|
|
26
|
+
textAlign: "right"
|
|
27
|
+
},
|
|
28
|
+
right: {
|
|
29
|
+
textAlign: "left"
|
|
30
|
+
}
|
|
15
31
|
}
|
|
16
32
|
}
|
|
17
33
|
});
|
|
@@ -26,7 +26,7 @@ export default css({
|
|
|
26
26
|
"true": {
|
|
27
27
|
transform: "translateX(".concat(TRACK_WIDTH - THUMB - INSET_SPACING, "px)"),
|
|
28
28
|
"&[data-disabled]": {
|
|
29
|
-
backgroundColor: getColorScaleValueByUseCase("
|
|
29
|
+
backgroundColor: getColorScaleValueByUseCase("neutral", text.disabled)
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|