@modul/mbui 0.0.20-beta-test-30add321 → 0.0.20-beta-pv-52992-d5155aa6
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/Drawer/Drawer.d.ts +10 -4
- package/dist/Drawer/Drawer.js +29 -5
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +2 -2
- package/dist/Drawer/index.js.map +1 -1
- package/dist/Input-OTP/Input.js +3 -2
- package/dist/Input-OTP/Input.js.map +1 -1
- package/dist/Select/SelectAccount.d.ts +8 -0
- package/dist/Select/SelectAccount.js +50 -0
- package/dist/Select/SelectAccount.js.map +1 -0
- package/dist/Select/SelectAccountCard.js +5 -33
- package/dist/Select/SelectAccountCard.js.map +1 -1
- package/dist/Select/SelectAsync.js +12 -73
- package/dist/Select/SelectAsync.js.map +1 -1
- package/dist/Select/SelectBase.js +13 -73
- package/dist/Select/SelectBase.js.map +1 -1
- package/dist/Select/components/components.d.ts +15 -0
- package/dist/Select/components/components.js +80 -0
- package/dist/Select/components/components.js.map +1 -0
- package/dist/Select/components/index.d.ts +1 -0
- package/dist/Select/components/index.js +17 -0
- package/dist/Select/components/index.js.map +1 -0
- package/dist/Select/index.d.ts +1 -0
- package/dist/Select/index.js +3 -1
- package/dist/Select/index.js.map +1 -1
- package/dist/index.d.ts +5 -8
- package/dist/index.js +5 -10
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
- package/src/@/config/index.ts +0 -5
- package/src/Drawer/Drawer.tsx +82 -3
- package/src/Drawer/index.ts +1 -1
- package/src/Input-OTP/Input.tsx +2 -2
- package/src/Select/SelectAccount.tsx +101 -0
- package/src/Select/SelectAccountCard.tsx +1 -51
- package/src/Select/SelectAsync.tsx +1 -162
- package/src/Select/SelectBase.tsx +19 -168
- package/src/Select/components/components.tsx +186 -0
- package/src/Select/components/index.tsx +15 -0
- package/src/Select/index.ts +1 -0
- package/src/assets/css/global.css +1 -4
- package/src/index.ts +10 -15
- package/dist/Badge/Badge.d.ts +0 -10
- package/dist/Badge/Badge.js +0 -52
- package/dist/Badge/Badge.js.map +0 -1
- package/dist/Badge/index.d.ts +0 -1
- package/dist/Badge/index.js +0 -7
- package/dist/Badge/index.js.map +0 -1
- package/dist/Checkbox/Checkbox.d.ts +0 -4
- package/dist/Checkbox/Checkbox.js +0 -35
- package/dist/Checkbox/Checkbox.js.map +0 -1
- package/dist/Checkbox/index.d.ts +0 -1
- package/dist/Checkbox/index.js +0 -6
- package/dist/Checkbox/index.js.map +0 -1
- package/src/Badge/Badge.tsx +0 -58
- package/src/Badge/index.ts +0 -1
- package/src/Checkbox/Checkbox.tsx +0 -44
- package/src/Checkbox/index.ts +0 -1
- package/src/pages/payments/SmsSign/sms-sign.tsx +0 -75
package/dist/Drawer/Drawer.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
3
|
+
declare const Drawer: {
|
|
4
|
+
({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
3
7
|
declare const DrawerTrigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
-
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const DrawerPortal: typeof import("vaul").Portal;
|
|
6
8
|
declare const DrawerClose: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
|
|
9
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
11
|
+
onAnimationEnd?: (open: boolean) => void;
|
|
12
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Drawer, DrawerTrigger, DrawerContent, DrawerTitle, DrawerClose };
|
package/dist/Drawer/Drawer.js
CHANGED
|
@@ -1,15 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DrawerClose = exports.
|
|
3
|
+
exports.DrawerClose = exports.DrawerTitle = exports.DrawerContent = exports.DrawerTrigger = exports.Drawer = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = (0, tslib_1.__importStar)(require("react"));
|
|
4
6
|
const vaul_1 = require("vaul");
|
|
5
|
-
const
|
|
7
|
+
const utils_1 = require("../@/lib/utils");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const DrawerContext = React.createContext({ direction: 'bottom', modal: false });
|
|
10
|
+
const Drawer = ({ ...props }) => {
|
|
11
|
+
return (React.createElement(DrawerContext.Provider, { value: { direction: props.direction, modal: props.modal } },
|
|
12
|
+
React.createElement(vaul_1.Drawer.Root, { ...props })));
|
|
13
|
+
};
|
|
6
14
|
exports.Drawer = Drawer;
|
|
15
|
+
Drawer.displayName = 'Drawer';
|
|
7
16
|
const DrawerTrigger = vaul_1.Drawer.Trigger;
|
|
8
17
|
exports.DrawerTrigger = DrawerTrigger;
|
|
9
|
-
const DrawerContent = vaul_1.Drawer.Content;
|
|
10
|
-
exports.DrawerContent = DrawerContent;
|
|
11
18
|
const DrawerPortal = vaul_1.Drawer.Portal;
|
|
12
|
-
exports.DrawerPortal = DrawerPortal;
|
|
13
19
|
const DrawerClose = vaul_1.Drawer.Close;
|
|
14
20
|
exports.DrawerClose = DrawerClose;
|
|
21
|
+
const DrawerOverlay = vaul_1.Drawer.Overlay;
|
|
22
|
+
const DrawerTitle = React.forwardRef(({ className, ...props }, ref) => (React.createElement(vaul_1.Drawer.Title, { ref: ref, className: (0, utils_1.cn)(className), ...props })));
|
|
23
|
+
exports.DrawerTitle = DrawerTitle;
|
|
24
|
+
DrawerTitle.displayName = vaul_1.Drawer.Title.displayName;
|
|
25
|
+
const DrawerContent = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
26
|
+
const { direction = 'bottom', modal = false } = (0, react_1.useContext)(DrawerContext);
|
|
27
|
+
return (React.createElement(DrawerPortal, null,
|
|
28
|
+
modal && React.createElement(DrawerOverlay, { className: 'z-50 fixed inset-0 bg-[--drawer-overlay-bg]' }),
|
|
29
|
+
React.createElement(vaul_1.Drawer.Content, { ref: ref, className: (0, utils_1.cn)(`z-50 fixed inset-x-0 flex flex-col bg-page shadow-sm max-h-[94%] sm:container`, direction === 'top' ? 'top-0 rounded-b-sm ' : 'bottom-0 rounded-t-sm', className), ...props },
|
|
30
|
+
direction !== 'top' && (React.createElement("div", { className: "pt-[4px] pb-[16px]" },
|
|
31
|
+
React.createElement("span", { className: "block bg-[--cl-graphite-5] mx-auto rounded-full w-[36px] h-[5px]" }))),
|
|
32
|
+
children,
|
|
33
|
+
direction === 'top' && (React.createElement("div", { className: "pt-[24px] pb-[16px]" },
|
|
34
|
+
React.createElement("svg", { className: "mx-auto", width: "38", height: "10", viewBox: "0 0 38 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
35
|
+
React.createElement("path", { d: "M0 7.39774C0 8.68678 1.25226 9.60455 2.48147 9.21638L17.7955 4.38038C18.5794 4.13282 19.4206 4.13282 20.2045 4.38038L35.5185 9.21638C36.7477 9.60455 38 8.68678 38 7.39774C38 6.56568 37.4606 5.82966 36.6671 5.5791L20.2045 0.380377C19.4206 0.132817 18.5794 0.132817 17.7955 0.380377L1.33286 5.5791C0.539422 5.82966 0 6.56568 0 7.39774Z", fill: "var(--cl-graphite-5)" })))))));
|
|
36
|
+
});
|
|
37
|
+
exports.DrawerContent = DrawerContent;
|
|
38
|
+
DrawerContent.displayName = 'DrawerContent';
|
|
15
39
|
//# sourceMappingURL=Drawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,+BAAgD;AAChD,0CAAmC;AACnC,iCAAkC;AAElC,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAC,CAAC,CAAA;AAE9E,MAAM,MAAM,GAAG,CAAC,EAAE,GAAG,KAAK,EAAqD,EAAE,EAAE;IAClF,OAAO,CACN,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAC,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAC;QAC9E,oBAAC,aAAe,CAAC,IAAI,OAAK,KAAK,GAAI,CACX,CACzB,CAAA;AACF,CAAC,CAAA;AA2EQ,wBAAM;AAzEf,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAA;AAE7B,MAAM,aAAa,GAAG,aAAe,CAAC,OAAO,CAAA;AAuE5B,sCAAa;AArE9B,MAAM,YAAY,GAAG,aAAe,CAAC,MAAM,CAAA;AAE3C,MAAM,WAAW,GAAG,aAAe,CAAC,KAAK,CAAA;AAmEmB,kCAAW;AAjEvE,MAAM,aAAa,GAAG,aAAe,CAAC,OAAO,CAAA;AAE7C,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAGlC,CAAC,EAAE,SAAS,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ACN,CACwB,CACZ,CACf,CAAA;AACF,CAAC,CAAC,CAAA;AAI8B,sCAAa;AAF7C,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA"}
|
package/dist/Drawer/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Drawer, DrawerTrigger, DrawerClose, DrawerContent,
|
|
1
|
+
export { Drawer, DrawerTrigger, DrawerClose, DrawerContent, DrawerTitle, } from './Drawer';
|
package/dist/Drawer/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DrawerTitle = exports.DrawerContent = exports.DrawerClose = exports.DrawerTrigger = exports.Drawer = void 0;
|
|
4
4
|
var Drawer_1 = require("./Drawer");
|
|
5
5
|
Object.defineProperty(exports, "Drawer", { enumerable: true, get: function () { return Drawer_1.Drawer; } });
|
|
6
6
|
Object.defineProperty(exports, "DrawerTrigger", { enumerable: true, get: function () { return Drawer_1.DrawerTrigger; } });
|
|
7
7
|
Object.defineProperty(exports, "DrawerClose", { enumerable: true, get: function () { return Drawer_1.DrawerClose; } });
|
|
8
8
|
Object.defineProperty(exports, "DrawerContent", { enumerable: true, get: function () { return Drawer_1.DrawerContent; } });
|
|
9
|
-
Object.defineProperty(exports, "
|
|
9
|
+
Object.defineProperty(exports, "DrawerTitle", { enumerable: true, get: function () { return Drawer_1.DrawerTitle; } });
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/Drawer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Drawer/index.ts"],"names":[],"mappings":";;;AAAA,mCAMmB;AALlB,gGAAA,MAAM,OAAA;AACN,uGAAA,aAAa,OAAA;AACb,qGAAA,WAAW,OAAA;AACX,uGAAA,aAAa,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Drawer/index.ts"],"names":[],"mappings":";;;AAAA,mCAMmB;AALlB,gGAAA,MAAM,OAAA;AACN,uGAAA,aAAa,OAAA;AACb,qGAAA,WAAW,OAAA;AACX,uGAAA,aAAa,OAAA;AACb,qGAAA,WAAW,OAAA"}
|
package/dist/Input-OTP/Input.js
CHANGED
|
@@ -14,9 +14,10 @@ InputOTPGroup.displayName = 'InputOTPGroup';
|
|
|
14
14
|
const InputOTPSlot = React.forwardRef(({ index, className, ...props }, ref) => {
|
|
15
15
|
const inputOTPContext = React.useContext(input_otp_1.OTPInputContext);
|
|
16
16
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
17
|
-
return (React.createElement("div", { ref: ref, className: (0, utils_1.cn)('relative flex h-[48px] w-[20px] items-center justify-center border-b-[2px] border-input transition-all', isActive && '
|
|
17
|
+
return (React.createElement("div", { ref: ref, className: (0, utils_1.cn)('relative flex h-[48px] w-[20px] items-center justify-center border-b-[2px] border-input transition-all', isActive && 'z-10 ring-2 ring-ring ring-offset-background', className), ...props },
|
|
18
18
|
char,
|
|
19
|
-
hasFakeCaret && (React.createElement("div", { className: "absolute inset-0 flex justify-center items-center pointer-events-none" }
|
|
19
|
+
hasFakeCaret && (React.createElement("div", { className: "absolute inset-0 flex justify-center items-center pointer-events-none" },
|
|
20
|
+
React.createElement("div", { className: "bg-foreground w-px h-4 animate-caret-blink duration-1000" })))));
|
|
20
21
|
});
|
|
21
22
|
exports.InputOTPSlot = InputOTPSlot;
|
|
22
23
|
InputOTPSlot.displayName = 'InputOTPSlot';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../src/Input-OTP/Input.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,yCAAqD;AACrD,0CAAmC;AAEnC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAChC,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,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9C,YAAY,CAAC,WAAW,GAAG,cAAc,CAAA;AAEzC,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CACzC,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACtB,6BACC,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,WAAW,KACZ,KAAK,qCAGJ,CACN,CACD,CAAA;AAG+C,8CAAiB;AAFjE,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { GroupBase, Props } from 'react-select';
|
|
3
|
+
declare type SelectAccountProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = Props<Option, IsMulti, Group>;
|
|
4
|
+
declare function SelectAccount<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectAccountProps<Option, IsMulti, Group>): React.JSX.Element;
|
|
5
|
+
declare namespace SelectAccount {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export { SelectAccount };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectAccount = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
+
const Icon_1 = require("../../src/Icon");
|
|
7
|
+
const react_select_1 = (0, tslib_1.__importStar)(require("react-select"));
|
|
8
|
+
const utils_1 = require("../@/lib/utils");
|
|
9
|
+
const components_1 = require("./components");
|
|
10
|
+
const Option = ({ children, ...props }) => {
|
|
11
|
+
const { isSelected, isFocused, isDisabled,
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
data: { label, account, balance, cur }, } = props;
|
|
14
|
+
return (React.createElement(react_select_1.components.Option, { className: (0, utils_1.cn)(components_1.optionClasses, 'items-start', { 'bg-light': isFocused }, { 'opacity-50 pointer-events-none': isDisabled }), ...props },
|
|
15
|
+
React.createElement("span", { className: "flex basis-0 grow" },
|
|
16
|
+
React.createElement("span", null,
|
|
17
|
+
React.createElement("span", { className: "text-[16px`] leading-[1.375]" }, label),
|
|
18
|
+
React.createElement("br", null),
|
|
19
|
+
React.createElement("span", { className: "text-[12px] text-light" }, account)),
|
|
20
|
+
React.createElement("span", { className: "ml-auto shrink-0" }, cur)),
|
|
21
|
+
React.createElement("span", { className: "ml-[16px] shrink-0 size-[24px]" }, isSelected && (React.createElement(Icon_1.CheckSmall, { width: "24", height: "24", className: "text-primary" })))));
|
|
22
|
+
};
|
|
23
|
+
const SingleValue = ({ children, ...props }) => {
|
|
24
|
+
const {
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
data: { account, cur }, } = props;
|
|
27
|
+
return (React.createElement(react_select_1.components.SingleValue, { className: "col-start-1 col-end-3 row-start-1 row-end-2", ...props },
|
|
28
|
+
account,
|
|
29
|
+
" (",
|
|
30
|
+
cur,
|
|
31
|
+
")"));
|
|
32
|
+
};
|
|
33
|
+
function SelectAccount(props) {
|
|
34
|
+
return (React.createElement(react_select_1.default, { components: {
|
|
35
|
+
Control: components_1.Control,
|
|
36
|
+
Option,
|
|
37
|
+
SingleValue,
|
|
38
|
+
DropdownIndicator: components_1.DropdownIndicator,
|
|
39
|
+
IndicatorSeparator: () => null,
|
|
40
|
+
Menu: components_1.Menu,
|
|
41
|
+
ValueContainer: components_1.ValueContainer,
|
|
42
|
+
Placeholder: components_1.Placeholder,
|
|
43
|
+
Input: components_1.Input,
|
|
44
|
+
LoadingIndicator: components_1.LoadingIndicator,
|
|
45
|
+
IndicatorsContainer: components_1.IndicatorsContainer,
|
|
46
|
+
}, styles: components_1.colourStyles, unstyled: true, ...props }));
|
|
47
|
+
}
|
|
48
|
+
exports.SelectAccount = SelectAccount;
|
|
49
|
+
SelectAccount.displayName = 'SelectAccount';
|
|
50
|
+
//# sourceMappingURL=SelectAccount.js.map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,WAAW,IACtB,SAAS,EAAC,6CAA6C,KACnD,KAAK;QAER,OAAO;;QAAI,GAAG;YACS,CACzB,CAAA;AACF,CAAC,CAAA;AAQD,SAAS,aAAa,CACrB,KAAiD;IAEjD,OAAO,CACN,oBAAC,sBAAM,IACN,UAAU,EAAE;YACX,OAAO,EAAP,oBAAO;YACP,MAAM;YACN,WAAW;YACX,iBAAiB,EAAjB,8BAAiB;YACjB,kBAAkB,EAAE,GAAG,EAAE,CAAC,IAAI;YAC9B,IAAI,EAAJ,iBAAI;YACJ,cAAc,EAAd,2BAAc;YACd,WAAW,EAAX,wBAAW;YACX,KAAK,EAAL,kBAAK;YACL,gBAAgB,EAAhB,6BAAgB;YAChB,mBAAmB,EAAnB,gCAAmB;SACnB,EACD,MAAM,EAAE,yBAAY,EACpB,QAAQ,EAAE,IAAI,KACV,KAAK,GACR,CACF,CAAA;AACF,CAAC;AAIQ,sCAAa;AAFtB,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA"}
|
|
@@ -6,6 +6,7 @@ const React = (0, tslib_1.__importStar)(require("react"));
|
|
|
6
6
|
const Icon_1 = require("../../src/Icon");
|
|
7
7
|
const react_select_1 = (0, tslib_1.__importStar)(require("react-select"));
|
|
8
8
|
const utils_1 = require("../@/lib/utils");
|
|
9
|
+
const components_1 = require("./components");
|
|
9
10
|
const selectTriggerClasses = `
|
|
10
11
|
flex
|
|
11
12
|
items-center
|
|
@@ -22,38 +23,15 @@ const selectTriggerClasses = `
|
|
|
22
23
|
shadow-[0px_8px_18px_0px_rgba(73,113,208,0.38)]
|
|
23
24
|
cursor-pointer
|
|
24
25
|
`;
|
|
25
|
-
const colourStyles = {
|
|
26
|
-
control: () => ({}),
|
|
27
|
-
option: () => ({}),
|
|
28
|
-
input: () => ({}),
|
|
29
|
-
dropdownIndicator: () => ({}),
|
|
30
|
-
indicatorsContainer: () => ({}),
|
|
31
|
-
menu: () => ({}),
|
|
32
|
-
menuList: () => ({}),
|
|
33
|
-
singleValue: () => ({}),
|
|
34
|
-
valueContainer: () => ({}),
|
|
35
|
-
};
|
|
36
26
|
const Control = ({ children, ...props }) => {
|
|
37
27
|
const { isFocused } = props;
|
|
38
28
|
return (React.createElement(react_select_1.components.Control, { className: (0, utils_1.cn)(selectTriggerClasses, { 'outline outline-primary outline-offset-2 outline-2': isFocused }), ...props }, children));
|
|
39
29
|
};
|
|
40
|
-
const optionClasses = `
|
|
41
|
-
flex
|
|
42
|
-
items-center
|
|
43
|
-
py-[16px]
|
|
44
|
-
px-[12px]
|
|
45
|
-
w-full
|
|
46
|
-
first:rounded-t-md
|
|
47
|
-
last:rounded-b-md
|
|
48
|
-
cursor-default
|
|
49
|
-
select-none
|
|
50
|
-
outline-none
|
|
51
|
-
`;
|
|
52
30
|
const Option = ({ children, ...props }) => {
|
|
53
31
|
const { isSelected, isFocused, isDisabled,
|
|
54
32
|
// @ts-ignore
|
|
55
33
|
data: { label, account, balance, cur }, } = props;
|
|
56
|
-
return (React.createElement(react_select_1.components.Option, { className: (0, utils_1.cn)(optionClasses, { 'bg-light': isFocused }, { 'opacity-50 pointer-events-none': isDisabled }), ...props },
|
|
34
|
+
return (React.createElement(react_select_1.components.Option, { className: (0, utils_1.cn)(components_1.optionClasses, { 'bg-light': isFocused }, { 'opacity-50 pointer-events-none': isDisabled }), ...props },
|
|
57
35
|
React.createElement("span", { className: "flex basis-0 grow" },
|
|
58
36
|
React.createElement("span", null,
|
|
59
37
|
React.createElement("span", null, label),
|
|
@@ -69,9 +47,6 @@ const DropdownIndicator = ({ children, ...props }) => {
|
|
|
69
47
|
return (React.createElement(react_select_1.components.DropdownIndicator, { className: "shrink-0", ...props },
|
|
70
48
|
React.createElement(Icon_1.DropdownSmallOld, { className: "text-white", width: "16", height: "16" })));
|
|
71
49
|
};
|
|
72
|
-
const ValueContainer = ({ children, ...props }) => {
|
|
73
|
-
return (React.createElement(react_select_1.components.ValueContainer, { className: "flex-1 grid", ...props }, children));
|
|
74
|
-
};
|
|
75
50
|
const SingleValue = ({ children, ...props }) => {
|
|
76
51
|
// @ts-ignore
|
|
77
52
|
const { label, account, balance, cur } = props.data;
|
|
@@ -85,9 +60,6 @@ const SingleValue = ({ children, ...props }) => {
|
|
|
85
60
|
" ",
|
|
86
61
|
cur)));
|
|
87
62
|
};
|
|
88
|
-
const Menu = ({ children, ...props }) => {
|
|
89
|
-
return (React.createElement(react_select_1.components.Menu, { className: "z-[1] absolute inset-x-0 bg-page shadow-md mt-[8px] rounded-md", ...props }, children));
|
|
90
|
-
};
|
|
91
63
|
const SelectAccountCard = (props) => {
|
|
92
64
|
return (React.createElement(react_select_1.default, { isSearchable: false, components: {
|
|
93
65
|
Control,
|
|
@@ -95,9 +67,9 @@ const SelectAccountCard = (props) => {
|
|
|
95
67
|
SingleValue,
|
|
96
68
|
DropdownIndicator,
|
|
97
69
|
IndicatorSeparator: () => null,
|
|
98
|
-
Menu,
|
|
99
|
-
ValueContainer,
|
|
100
|
-
}, styles: colourStyles, unstyled: true, ...props }));
|
|
70
|
+
Menu: components_1.Menu,
|
|
71
|
+
ValueContainer: components_1.ValueContainer,
|
|
72
|
+
}, styles: components_1.colourStyles, unstyled: true, ...props }));
|
|
101
73
|
};
|
|
102
74
|
exports.SelectAccountCard = SelectAccountCard;
|
|
103
75
|
//# sourceMappingURL=SelectAccountCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectAccountCard.js","sourceRoot":"","sources":["../../src/Select/SelectAccountCard.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,yCAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"SelectAccountCard.js","sourceRoot":"","sources":["../../src/Select/SelectAccountCard.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,yCAA6D;AAC7D,0EAQqB;AACrB,0CAAmC;AACnC,6CAAgF;AAEhF,MAAM,oBAAoB,GAAW;;;;;;;;;;;;;;;CAepC,CAAA;AACD,MAAM,OAAO,GAAG,CAAC,EAA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,EAAC,UAAU,KAChB,KAAK;QAET,oBAAC,uBAAgB,IAChB,SAAS,EAAC,YAAY,EACtB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACV,CAC4B,CAC/B,CAAA;AACF,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAoB,EAAE,EAAE;IAChE,aAAa;IACb,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,IAAI,CAAA;IACnD,OAAO,CACN,oBAAC,yBAAU,CAAC,WAAW,IACtB,SAAS,EAAC,6CAA6C,KACnD,KAAK;QAET,8BAAM,SAAS,EAAC,qDAAqD;YACnE,KAAK;;YAAE,8BAAM,SAAS,EAAC,uCAAuC,IAAE,OAAO,CAAQ,CAC1E;QACP,8BAAM,SAAS,EAAC,wDAAwD;YACtE,OAAO;;YAAG,GAAG,CACR,CACiB,CACzB,CAAA;AACF,CAAC,CAAA;AAQD,MAAM,iBAAiB,GAAG,CAIxB,KAAqD,EAAE,EAAE;IAC1D,OAAO,CACN,oBAAC,sBAAM,IACN,YAAY,EAAE,KAAK,EACnB,UAAU,EAAE;YACX,OAAO;YACP,MAAM;YACN,WAAW;YACX,iBAAiB;YACjB,kBAAkB,EAAE,GAAG,EAAE,CAAC,IAAI;YAC9B,IAAI,EAAJ,iBAAI;YACJ,cAAc,EAAd,2BAAc;SACd,EACD,MAAM,EAAE,yBAAY,EACpB,QAAQ,EAAE,IAAI,KACV,KAAK,GACR,CACF,CAAA;AACF,CAAC,CAAA;AAEQ,8CAAiB"}
|
|
@@ -3,82 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SelectAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
-
const Icon_1 = require("../../src/Icon");
|
|
7
|
-
const react_select_1 = require("react-select");
|
|
8
6
|
const async_1 = (0, tslib_1.__importDefault)(require("react-select/async"));
|
|
9
|
-
const
|
|
10
|
-
const selectTriggerClasses = `
|
|
11
|
-
flex
|
|
12
|
-
items-center
|
|
13
|
-
py-[12px]
|
|
14
|
-
px-[16px]
|
|
15
|
-
h-[44px]
|
|
16
|
-
border-[1px]
|
|
17
|
-
border-input
|
|
18
|
-
rounded-sm
|
|
19
|
-
text-left
|
|
20
|
-
cursor-pointer
|
|
21
|
-
`;
|
|
22
|
-
const colourStyles = {
|
|
23
|
-
control: () => ({}),
|
|
24
|
-
option: () => ({}),
|
|
25
|
-
input: () => ({}),
|
|
26
|
-
dropdownIndicator: () => ({}),
|
|
27
|
-
indicatorsContainer: () => ({}),
|
|
28
|
-
menu: () => ({}),
|
|
29
|
-
menuList: () => ({}),
|
|
30
|
-
singleValue: () => ({}),
|
|
31
|
-
valueContainer: () => ({}),
|
|
32
|
-
};
|
|
33
|
-
const Input = ({ ...props }) => {
|
|
34
|
-
return React.createElement(react_select_1.components.Input, { className: 'col-start-1 col-end-3 row-start-1 row-end-2', ...props });
|
|
35
|
-
};
|
|
36
|
-
const Control = ({ children, ...props }) => {
|
|
37
|
-
const { isFocused } = props;
|
|
38
|
-
return (React.createElement(react_select_1.components.Control, { className: (0, utils_1.cn)(selectTriggerClasses, { 'outline outline-primary outline-offset-2 outline-2': isFocused }), ...props }, children));
|
|
39
|
-
};
|
|
40
|
-
const optionClasses = 'flex items-center first:rounded-t-sm last:rounded-b-sm px-[16px] py-[12px] w-full cursor-default select-none outline-none';
|
|
41
|
-
const Option = ({ children, ...props }) => {
|
|
42
|
-
const { isSelected, isFocused, isDisabled, } = props;
|
|
43
|
-
return (React.createElement(react_select_1.components.Option, { className: (0, utils_1.cn)(optionClasses, { 'bg-light': isFocused }, { 'opacity-50 pointer-events-none': isDisabled }), ...props },
|
|
44
|
-
React.createElement("span", { className: "flex basis-0 grow" }, children),
|
|
45
|
-
React.createElement("span", { className: "ml-[16px] shrink-0 size-[24px]" }, isSelected && (React.createElement(Icon_1.CheckSmall, { width: "24", height: "24", className: "text-primary" })))));
|
|
46
|
-
};
|
|
47
|
-
const IndicatorsContainer = ({ children, ...props }) => {
|
|
48
|
-
return (React.createElement(react_select_1.components.IndicatorsContainer, { className: 'flex items-center gap-x-[8px] shrink-0', ...props }, children));
|
|
49
|
-
};
|
|
50
|
-
const LoadingIndicator = ({ ...props }) => {
|
|
51
|
-
return (React.createElement(react_select_1.components.LoadingIndicator, { className: 'text-light shrink-0', ...props }));
|
|
52
|
-
};
|
|
53
|
-
const DropdownIndicator = ({ children, ...props }) => {
|
|
54
|
-
return (React.createElement(react_select_1.components.DropdownIndicator, { className: "shrink-0", ...props },
|
|
55
|
-
React.createElement(Icon_1.DropdownSmallOld, { className: "text-light", width: "12", height: "12" })));
|
|
56
|
-
};
|
|
57
|
-
const ValueContainer = ({ children, ...props }) => {
|
|
58
|
-
return (React.createElement(react_select_1.components.ValueContainer, { className: "flex-1 grid", ...props }, children));
|
|
59
|
-
};
|
|
60
|
-
const SingleValue = ({ children, ...props }) => {
|
|
61
|
-
return (React.createElement(react_select_1.components.SingleValue, { className: "col-start-1 col-end-3 row-start-1 row-end-2", ...props }, children));
|
|
62
|
-
};
|
|
63
|
-
const Menu = ({ children, ...props }) => {
|
|
64
|
-
return (React.createElement(react_select_1.components.Menu, { className: "z-[1] absolute inset-x-0 bg-page shadow-sm mt-[8px] rounded-sm", ...props }, children));
|
|
65
|
-
};
|
|
66
|
-
const Placeholder = ({ children, ...props }) => {
|
|
67
|
-
return (React.createElement(react_select_1.components.Placeholder, { className: "col-start-1 col-end-3 row-start-1 row-end-2 text-[16px] text-light truncate", ...props }, children));
|
|
68
|
-
};
|
|
7
|
+
const components_1 = require("./components");
|
|
69
8
|
const SelectAsync = ({ ...props }) => (React.createElement(async_1.default, { components: {
|
|
70
|
-
Control,
|
|
71
|
-
Option,
|
|
72
|
-
SingleValue,
|
|
73
|
-
DropdownIndicator,
|
|
9
|
+
Control: components_1.Control,
|
|
10
|
+
Option: components_1.Option,
|
|
11
|
+
SingleValue: components_1.SingleValue,
|
|
12
|
+
DropdownIndicator: components_1.DropdownIndicator,
|
|
74
13
|
IndicatorSeparator: () => null,
|
|
75
|
-
Menu,
|
|
76
|
-
ValueContainer,
|
|
77
|
-
Placeholder,
|
|
78
|
-
Input,
|
|
79
|
-
LoadingIndicator,
|
|
80
|
-
IndicatorsContainer
|
|
81
|
-
}, styles: colourStyles, unstyled: true, ...props }));
|
|
14
|
+
Menu: components_1.Menu,
|
|
15
|
+
ValueContainer: components_1.ValueContainer,
|
|
16
|
+
Placeholder: components_1.Placeholder,
|
|
17
|
+
Input: components_1.Input,
|
|
18
|
+
LoadingIndicator: components_1.LoadingIndicator,
|
|
19
|
+
IndicatorsContainer: components_1.IndicatorsContainer
|
|
20
|
+
}, styles: components_1.colourStyles, unstyled: true, ...props }));
|
|
82
21
|
exports.SelectAsync = SelectAsync;
|
|
83
22
|
SelectAsync.displayName = 'SelectAsync';
|
|
84
23
|
//# sourceMappingURL=SelectAsync.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectAsync.js","sourceRoot":"","sources":["../../src/Select/SelectAsync.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"SelectAsync.js","sourceRoot":"","sources":["../../src/Select/SelectAsync.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,4EAA4C;AAC5C,6CAA6K;AAE7K,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CACrC,oBAAC,eAAW,IACX,UAAU,EAAE;QACX,OAAO,EAAP,oBAAO;QACP,MAAM,EAAN,mBAAM;QACN,WAAW,EAAX,wBAAW;QACX,iBAAiB,EAAjB,8BAAiB;QACjB,kBAAkB,EAAE,GAAG,EAAE,CAAC,IAAI;QAC9B,IAAI,EAAJ,iBAAI;QACJ,cAAc,EAAd,2BAAc;QACd,WAAW,EAAX,wBAAW;QACX,KAAK,EAAL,kBAAK;QACL,gBAAgB,EAAhB,6BAAgB;QAChB,mBAAmB,EAAnB,gCAAmB;KACnB,EACD,MAAM,EAAE,yBAAY,EACpB,QAAQ,EAAE,IAAI,KACV,KAAK,GACR,CACF,CAAA;AAIQ,kCAAW;AAFpB,WAAW,CAAC,WAAW,GAAG,aAAa,CAAA"}
|
|
@@ -3,82 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SelectBase = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = (0, tslib_1.__importStar)(require("react"));
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const utils_1 = require("../@/lib/utils");
|
|
9
|
-
const selectTriggerClasses = `
|
|
10
|
-
flex
|
|
11
|
-
items-center
|
|
12
|
-
py-[12px]
|
|
13
|
-
px-[16px]
|
|
14
|
-
h-[44px]
|
|
15
|
-
text-left
|
|
16
|
-
border-[1px]
|
|
17
|
-
border-input
|
|
18
|
-
rounded-sm
|
|
19
|
-
cursor-pointer
|
|
20
|
-
`;
|
|
21
|
-
const colourStyles = {
|
|
22
|
-
control: () => ({}),
|
|
23
|
-
option: () => ({}),
|
|
24
|
-
input: () => ({}),
|
|
25
|
-
dropdownIndicator: () => ({}),
|
|
26
|
-
indicatorsContainer: () => ({}),
|
|
27
|
-
menu: () => ({}),
|
|
28
|
-
menuList: () => ({}),
|
|
29
|
-
singleValue: () => ({}),
|
|
30
|
-
valueContainer: () => ({}),
|
|
31
|
-
};
|
|
32
|
-
const Input = ({ ...props }) => {
|
|
33
|
-
return React.createElement(react_select_1.components.Input, { className: 'col-start-1 col-end-3 row-start-1 row-end-2', ...props });
|
|
34
|
-
};
|
|
35
|
-
const Control = ({ children, ...props }) => {
|
|
36
|
-
const { isFocused } = props;
|
|
37
|
-
return (React.createElement(react_select_1.components.Control, { className: (0, utils_1.cn)(selectTriggerClasses, { 'outline outline-primary outline-offset-2 outline-2': isFocused }), ...props }, children));
|
|
38
|
-
};
|
|
39
|
-
const optionClasses = 'flex items-center first:rounded-t-sm last:rounded-b-sm px-[16px] py-[12px] w-full cursor-default select-none outline-none';
|
|
40
|
-
const Option = ({ children, ...props }) => {
|
|
41
|
-
const { isSelected, isFocused, isDisabled, } = props;
|
|
42
|
-
return (React.createElement(react_select_1.components.Option, { className: (0, utils_1.cn)(optionClasses, { 'bg-light': isFocused }, { 'opacity-50 pointer-events-none': isDisabled }), ...props },
|
|
43
|
-
React.createElement("span", { className: "flex basis-0 grow" }, children),
|
|
44
|
-
React.createElement("span", { className: "ml-[16px] shrink-0 size-[24px]" }, isSelected && (React.createElement(Icon_1.CheckSmall, { width: "24", height: "24", className: "text-primary" })))));
|
|
45
|
-
};
|
|
46
|
-
const IndicatorsContainer = ({ children, ...props }) => {
|
|
47
|
-
return (React.createElement(react_select_1.components.IndicatorsContainer, { className: 'flex items-center gap-x-[8px] shrink-0', ...props }, children));
|
|
48
|
-
};
|
|
49
|
-
const LoadingIndicator = ({ ...props }) => {
|
|
50
|
-
return (React.createElement(react_select_1.components.LoadingIndicator, { className: 'text-light shrink-0', ...props }));
|
|
51
|
-
};
|
|
52
|
-
const DropdownIndicator = ({ children, ...props }) => {
|
|
53
|
-
return (React.createElement(react_select_1.components.DropdownIndicator, { className: "shrink-0", ...props },
|
|
54
|
-
React.createElement(Icon_1.DropdownSmallOld, { className: "text-light", width: "12", height: "12" })));
|
|
55
|
-
};
|
|
56
|
-
const ValueContainer = ({ children, ...props }) => {
|
|
57
|
-
return (React.createElement(react_select_1.components.ValueContainer, { className: "flex-1 grid", ...props }, children));
|
|
58
|
-
};
|
|
59
|
-
const SingleValue = ({ children, ...props }) => {
|
|
60
|
-
return (React.createElement(react_select_1.components.SingleValue, { className: "col-start-1 col-end-3 row-start-1 row-end-2", ...props }, children));
|
|
61
|
-
};
|
|
62
|
-
const Menu = ({ children, ...props }) => {
|
|
63
|
-
return (React.createElement(react_select_1.components.Menu, { className: "z-[1] absolute inset-x-0 bg-page shadow-sm mt-[8px] rounded-sm", ...props }, children));
|
|
64
|
-
};
|
|
65
|
-
const Placeholder = ({ children, ...props }) => {
|
|
66
|
-
return (React.createElement(react_select_1.components.Placeholder, { className: "col-start-1 col-end-3 row-start-1 row-end-2 text-[16px] text-light truncate", ...props }, children));
|
|
67
|
-
};
|
|
6
|
+
const react_select_1 = (0, tslib_1.__importDefault)(require("react-select"));
|
|
7
|
+
const components_1 = require("./components");
|
|
68
8
|
function SelectBase(props) {
|
|
69
9
|
return (React.createElement(react_select_1.default, { components: {
|
|
70
|
-
Control,
|
|
71
|
-
Option,
|
|
72
|
-
SingleValue,
|
|
73
|
-
DropdownIndicator,
|
|
10
|
+
Control: components_1.Control,
|
|
11
|
+
Option: components_1.Option,
|
|
12
|
+
SingleValue: components_1.SingleValue,
|
|
13
|
+
DropdownIndicator: components_1.DropdownIndicator,
|
|
74
14
|
IndicatorSeparator: () => null,
|
|
75
|
-
Menu,
|
|
76
|
-
ValueContainer,
|
|
77
|
-
Placeholder,
|
|
78
|
-
Input,
|
|
79
|
-
LoadingIndicator,
|
|
80
|
-
IndicatorsContainer
|
|
81
|
-
}, styles: colourStyles, unstyled: true, ...props }));
|
|
15
|
+
Menu: components_1.Menu,
|
|
16
|
+
ValueContainer: components_1.ValueContainer,
|
|
17
|
+
Placeholder: components_1.Placeholder,
|
|
18
|
+
Input: components_1.Input,
|
|
19
|
+
LoadingIndicator: components_1.LoadingIndicator,
|
|
20
|
+
IndicatorsContainer: components_1.IndicatorsContainer,
|
|
21
|
+
}, styles: components_1.colourStyles, unstyled: true, ...props }));
|
|
82
22
|
}
|
|
83
23
|
exports.SelectBase = SelectBase;
|
|
84
24
|
SelectBase.displayName = 'SelectBase';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectBase.js","sourceRoot":"","sources":["../../src/Select/SelectBase.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAE9B,
|
|
1
|
+
{"version":3,"file":"SelectBase.js","sourceRoot":"","sources":["../../src/Select/SelectBase.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAE9B,6EAGqB;AACrB,6CAYqB;AAQrB,SAAS,UAAU,CAClB,KAA8C;IAE9C,OAAO,CACN,oBAAC,sBAAM,IACN,UAAU,EAAE;YACX,OAAO,EAAP,oBAAO;YACP,MAAM,EAAN,mBAAM;YACN,WAAW,EAAX,wBAAW;YACX,iBAAiB,EAAjB,8BAAiB;YACjB,kBAAkB,EAAE,GAAG,EAAE,CAAC,IAAI;YAC9B,IAAI,EAAJ,iBAAI;YACJ,cAAc,EAAd,2BAAc;YACd,WAAW,EAAX,wBAAW;YACX,KAAK,EAAL,kBAAK;YACL,gBAAgB,EAAhB,6BAAgB;YAChB,mBAAmB,EAAnB,gCAAmB;SACnB,EACD,MAAM,EAAE,yBAAY,EACpB,QAAQ,EAAE,IAAI,KACV,KAAK,GACR,CACF,CAAA;AACF,CAAC;AAIQ,gCAAU;AAFnB,UAAU,CAAC,WAAW,GAAG,YAAY,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ControlProps, OptionProps, DropdownIndicatorProps, StylesConfig, SingleValueProps, MenuProps, PlaceholderProps, ValueContainerProps, InputProps, LoadingIndicatorProps, IndicatorsContainerProps } from 'react-select';
|
|
3
|
+
declare const Input: ({ ...props }: InputProps) => React.JSX.Element;
|
|
4
|
+
declare const Control: ({ children, ...props }: ControlProps) => React.JSX.Element;
|
|
5
|
+
declare const colourStyles: StylesConfig;
|
|
6
|
+
declare const optionClasses = "flex items-center first:rounded-t-sm last:rounded-b-sm px-[16px] py-[12px] w-full cursor-default select-none outline-none";
|
|
7
|
+
declare const Option: ({ children, ...props }: OptionProps) => React.JSX.Element;
|
|
8
|
+
declare const IndicatorsContainer: ({ children, ...props }: IndicatorsContainerProps) => React.JSX.Element;
|
|
9
|
+
declare const LoadingIndicator: ({ ...props }: LoadingIndicatorProps) => React.JSX.Element;
|
|
10
|
+
declare const DropdownIndicator: ({ children, ...props }: DropdownIndicatorProps) => React.JSX.Element;
|
|
11
|
+
declare const ValueContainer: ({ children, ...props }: ValueContainerProps) => React.JSX.Element;
|
|
12
|
+
declare const SingleValue: ({ children, ...props }: SingleValueProps) => React.JSX.Element;
|
|
13
|
+
declare const Menu: ({ children, ...props }: MenuProps) => React.JSX.Element;
|
|
14
|
+
declare const Placeholder: ({ children, ...props }: PlaceholderProps) => React.JSX.Element;
|
|
15
|
+
export { Input, Control, colourStyles, optionClasses, Option, IndicatorsContainer, LoadingIndicator, DropdownIndicator, ValueContainer, SingleValue, Menu, Placeholder, };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Placeholder = exports.Menu = exports.SingleValue = exports.ValueContainer = exports.DropdownIndicator = exports.LoadingIndicator = exports.IndicatorsContainer = exports.Option = exports.optionClasses = exports.colourStyles = exports.Control = exports.Input = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
|
+
const react_select_1 = require("react-select");
|
|
7
|
+
const utils_1 = require("../../@/lib/utils");
|
|
8
|
+
const Icon_1 = require("../../Icon");
|
|
9
|
+
const Input = ({ ...props }) => {
|
|
10
|
+
return (react_1.default.createElement(react_select_1.components.Input, { className: "col-start-1 col-end-3 row-start-1 row-end-2", ...props }));
|
|
11
|
+
};
|
|
12
|
+
exports.Input = Input;
|
|
13
|
+
const selectTriggerClasses = `
|
|
14
|
+
flex
|
|
15
|
+
items-center
|
|
16
|
+
py-[12px]
|
|
17
|
+
px-[16px]
|
|
18
|
+
h-[44px]
|
|
19
|
+
text-left
|
|
20
|
+
border-[1px]
|
|
21
|
+
border-input
|
|
22
|
+
rounded-sm
|
|
23
|
+
cursor-pointer
|
|
24
|
+
`;
|
|
25
|
+
const Control = ({ children, ...props }) => {
|
|
26
|
+
const { isFocused } = props;
|
|
27
|
+
return (react_1.default.createElement(react_select_1.components.Control, { className: (0, utils_1.cn)(selectTriggerClasses, { 'outline outline-primary outline-offset-2 outline-2': isFocused }), ...props }, children));
|
|
28
|
+
};
|
|
29
|
+
exports.Control = Control;
|
|
30
|
+
const colourStyles = {
|
|
31
|
+
control: () => ({}),
|
|
32
|
+
option: () => ({}),
|
|
33
|
+
input: () => ({}),
|
|
34
|
+
dropdownIndicator: () => ({}),
|
|
35
|
+
indicatorsContainer: () => ({}),
|
|
36
|
+
menu: () => ({}),
|
|
37
|
+
menuList: () => ({}),
|
|
38
|
+
singleValue: () => ({}),
|
|
39
|
+
valueContainer: () => ({}),
|
|
40
|
+
};
|
|
41
|
+
exports.colourStyles = colourStyles;
|
|
42
|
+
const optionClasses = 'flex items-center first:rounded-t-sm last:rounded-b-sm px-[16px] py-[12px] w-full cursor-default select-none outline-none';
|
|
43
|
+
exports.optionClasses = optionClasses;
|
|
44
|
+
const Option = ({ children, ...props }) => {
|
|
45
|
+
const { isSelected, isFocused, isDisabled } = props;
|
|
46
|
+
return (react_1.default.createElement(react_select_1.components.Option, { className: (0, utils_1.cn)(optionClasses, 'items-start', { 'bg-light': isFocused }, { 'opacity-50 pointer-events-none': isDisabled }), ...props },
|
|
47
|
+
react_1.default.createElement("span", { className: "flex basis-0 grow" }, children),
|
|
48
|
+
react_1.default.createElement("span", { className: "ml-[16px] shrink-0 size-[24px]" }, isSelected && (react_1.default.createElement(Icon_1.CheckSmall, { width: "24", height: "24", className: "text-primary" })))));
|
|
49
|
+
};
|
|
50
|
+
exports.Option = Option;
|
|
51
|
+
const IndicatorsContainer = ({ children, ...props }) => {
|
|
52
|
+
return (react_1.default.createElement(react_select_1.components.IndicatorsContainer, { className: "flex items-center gap-x-[8px] shrink-0", ...props }, children));
|
|
53
|
+
};
|
|
54
|
+
exports.IndicatorsContainer = IndicatorsContainer;
|
|
55
|
+
const LoadingIndicator = ({ ...props }) => {
|
|
56
|
+
return (react_1.default.createElement(react_select_1.components.LoadingIndicator, { className: "text-light shrink-0", ...props }));
|
|
57
|
+
};
|
|
58
|
+
exports.LoadingIndicator = LoadingIndicator;
|
|
59
|
+
const DropdownIndicator = ({ children, ...props }) => {
|
|
60
|
+
return (react_1.default.createElement(react_select_1.components.DropdownIndicator, { className: "shrink-0", ...props },
|
|
61
|
+
react_1.default.createElement(Icon_1.DropdownSmallOld, { className: "text-light", width: "12", height: "12" })));
|
|
62
|
+
};
|
|
63
|
+
exports.DropdownIndicator = DropdownIndicator;
|
|
64
|
+
const ValueContainer = ({ children, ...props }) => {
|
|
65
|
+
return (react_1.default.createElement(react_select_1.components.ValueContainer, { className: "flex-1 grid", ...props }, children));
|
|
66
|
+
};
|
|
67
|
+
exports.ValueContainer = ValueContainer;
|
|
68
|
+
const SingleValue = ({ children, ...props }) => {
|
|
69
|
+
return (react_1.default.createElement(react_select_1.components.SingleValue, { className: "col-start-1 col-end-3 row-start-1 row-end-2", ...props }, children));
|
|
70
|
+
};
|
|
71
|
+
exports.SingleValue = SingleValue;
|
|
72
|
+
const Menu = ({ children, ...props }) => {
|
|
73
|
+
return (react_1.default.createElement(react_select_1.components.Menu, { className: "z-[1] absolute inset-x-0 bg-page shadow-sm mt-[8px] rounded-sm", ...props }, children));
|
|
74
|
+
};
|
|
75
|
+
exports.Menu = Menu;
|
|
76
|
+
const Placeholder = ({ children, ...props }) => {
|
|
77
|
+
return (react_1.default.createElement(react_select_1.components.Placeholder, { className: "col-start-1 col-end-3 row-start-1 row-end-2 text-[16px] text-light truncate", ...props }, children));
|
|
78
|
+
};
|
|
79
|
+
exports.Placeholder = Placeholder;
|
|
80
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/Select/components/components.tsx"],"names":[],"mappings":";;;;AAAA,+DAAyB;AACzB,+CAaqB;AACrB,6CAAsC;AACtC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AC,IAAI,EACV,MAAM,EAAC,IAAI,GACV,CAC4B,CAC/B,CAAA;AACF,CAAC,CAAA;AAsDA,8CAAiB;AApDlB,MAAM,cAAc,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAuB,EAAE,EAAE;IACtE,OAAO,CACN,8BAAC,yBAAU,CAAC,cAAc,IACzB,SAAS,EAAC,aAAa,KACnB,KAAK,IAER,QAAQ,CACkB,CAC5B,CAAA;AACF,CAAC,CAAA;AA4CA,wCAAc;AA1Cf,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAoB,EAAE,EAAE;IAChE,OAAO,CACN,8BAAC,yBAAU,CAAC,WAAW,IACtB,SAAS,EAAC,6CAA6C,KACnD,KAAK,IAER,QAAQ,CACe,CACzB,CAAA;AACF,CAAC,CAAA;AAkCA,kCAAW;AAhCZ,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAa,EAAE,EAAE;IAClD,OAAO,CACN,8BAAC,yBAAU,CAAC,IAAI,IACf,SAAS,EAAC,gEAAgE,KACtE,KAAK,IAER,QAAQ,CACQ,CAClB,CAAA;AACF,CAAC,CAAA;AAwBA,oBAAI;AAtBL,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAoB,EAAE,EAAE;IAChE,OAAO,CACN,8BAAC,yBAAU,CAAC,WAAW,IACtB,SAAS,EAAC,6EAA6E,KACnF,KAAK,IAER,QAAQ,CACe,CACzB,CAAA;AACF,CAAC,CAAA;AAcA,kCAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Input, Control, colourStyles, optionClasses, Option, IndicatorsContainer, LoadingIndicator, DropdownIndicator, ValueContainer, SingleValue, Menu, Placeholder, } from './components';
|