period-ui 0.1.33 → 0.1.35
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/atoms/button/button.d.ts +9 -0
- package/dist/components/atoms/drop-down-menu/components/menu-item.js +3 -3
- package/dist/components/atoms/drop-down-menu/components/menu-item.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/drop-down-menu-types.d.ts.map +1 -0
- package/dist/components/atoms/drop-down-menu/drop-down-menu-types.js +3 -0
- package/dist/components/atoms/drop-down-menu/drop-down-menu-types.js.map +1 -0
- package/dist/components/atoms/drop-down-menu/drop-down-menu.d.ts.map +1 -1
- package/dist/components/atoms/drop-down-menu/drop-down-menu.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/index.d.ts.map +1 -1
- package/dist/components/atoms/drop-down-menu/index.js +1 -0
- package/dist/components/atoms/drop-down-menu/index.js.map +1 -1
- package/dist/components/atoms/icon-button/icon-button-types.d.ts.map +1 -0
- package/dist/components/atoms/icon-button/icon-button-types.js +11 -0
- package/dist/components/atoms/icon-button/icon-button-types.js.map +1 -0
- package/dist/components/atoms/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/atoms/icon-button/icon-button.js +35 -2
- package/dist/components/atoms/icon-button/icon-button.js.map +1 -1
- package/dist/components/atoms/icon-button/index.d.ts.map +1 -1
- package/dist/components/atoms/icon-button/index.js +1 -0
- package/dist/components/atoms/icon-button/index.js.map +1 -1
- package/dist/components/atoms/pop-over/pop-over.d.ts +4 -2
- package/dist/components/atoms/pop-over/pop-over.d.ts.map +1 -1
- package/dist/components/atoms/pop-over/pop-over.js +7 -5
- package/dist/components/atoms/pop-over/pop-over.js.map +1 -1
- package/dist/components/atoms/tool-tip/tool-tip.d.ts +2 -2
- package/dist/components/atoms/tool-tip/tool-tip.d.ts.map +1 -1
- package/dist/components/atoms/tool-tip/tool-tip.js +3 -3
- package/dist/components/atoms/tool-tip/tool-tip.js.map +1 -1
- package/dist/components/atoms/tool-tip/use-tool-tip.d.ts +2 -2
- package/dist/components/atoms/tool-tip/use-tool-tip.d.ts.map +1 -1
- package/dist/components/molecules/form/form-select/form-select.d.ts.map +1 -1
- package/dist/components/molecules/form/form-select/form-select.js +6 -6
- package/dist/components/molecules/form/form-select/form-select.js.map +1 -1
- package/dist/components/molecules/select/components/select-input.d.ts.map +1 -1
- package/dist/components/molecules/select/components/select-input.js +2 -2
- package/dist/components/molecules/select/components/select-input.js.map +1 -1
- package/dist/components/molecules/select/select.d.ts.map +1 -1
- package/dist/components/molecules/select/select.js +2 -2
- package/dist/components/molecules/select/select.js.map +1 -1
- package/dist/components/molecules/select/use-select.d.ts.map +1 -1
- package/dist/components/molecules/select/use-select.js +15 -10
- package/dist/components/molecules/select/use-select.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const buttonStyles: (props?: ({
|
|
4
|
+
variant?: "primary" | "secondary" | "destructive" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
type Props = ComponentProps<'button'> & VariantProps<typeof buttonStyles>;
|
|
7
|
+
export declare const Button: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -11,12 +11,12 @@ function MenuItem({ isDisabled = false, isSelected = false, id, label, className
|
|
|
11
11
|
const isDestructive = variant === menu_item_types_1.MenuItemVariant.DESTRUCTIVE;
|
|
12
12
|
const isTextButton = variant === menu_item_types_1.MenuItemVariant.TEXT_BUTTON;
|
|
13
13
|
const isCheckBox = variant === menu_item_types_1.MenuItemVariant.CHECK_BOX;
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", disabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('group', 'flex flex-row items-center p-4 w-full', 'cursor-pointer bg-white outline-none', 'disabled:cursor-not-allowed disabled:bg-white hover:bg-gray-05 active:bg-gray-04', 'focus-visible:border-2 focus-visible:border-blue-01 focus-visible:p-[14px]', isTextButton &&
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", disabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('group', 'flex flex-row items-center p-4 w-full md:h-[56px] h-[50px]', 'cursor-pointer bg-white outline-none', 'disabled:cursor-not-allowed disabled:bg-white hover:bg-gray-05 active:bg-gray-04', 'focus-visible:border-2 focus-visible:border-blue-01 focus-visible:p-[14px]', isTextButton &&
|
|
15
15
|
'py-2 hover:bg-blue-03 active:bg-blue-03 focus-visible:py-[6px] focus-visible:bg-blue-03', isSelected && 'bg-gray-04 hover:bg-gray-04', className), "data-testid": id, onClick: onClick, children: [icon && ((0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: icon, size: isMobile ? components_1.IconSize.LG : components_1.IconSize.XL, className: (0, tailwind_utils_1.tailwind)('mr-2', isDestructive
|
|
16
16
|
? 'text-red-01 group-disabled:text-red-03'
|
|
17
17
|
: 'text-gray-01 group-disabled:text-gray-03') })), isCheckBox && ((0, jsx_runtime_1.jsx)(components_1.Checkbox, { isDisabled: isDisabled, value: isSelected, onCheckToggle: onClick, containerClassName: "mr-2", className: (0, tailwind_utils_1.tailwind)(!isSelected && 'group-hover:border-gray-03 group-hover:bg-gray-05', !isSelected &&
|
|
18
|
-
'group-disabled:bg-gray-06 group-disabled:border-gray-04 group-disabled:cursor-not-allowed') })), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-start", children: [isTextButton ? ((0, jsx_runtime_1.jsx)(components_1.TextButton, { isDisabled: isDisabled, onClick:
|
|
18
|
+
'group-disabled:bg-gray-06 group-disabled:border-gray-04 group-disabled:cursor-not-allowed') })), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-start w-full max-w-full", children: [isTextButton ? ((0, jsx_runtime_1.jsx)(components_1.TextButton, { isDisabled: isDisabled, onClick: () => { }, label: label, className: (0, tailwind_utils_1.tailwind)('text-blue-01', 'group-disabled:text-blue-03', 'group-hover:bg-blue-03', 'group-active:bg-blue-03 group-active:text-blue-00', 'group-focus-visible:bg-blue-03') })) : ((0, jsx_runtime_1.jsx)(components_1.Text, { className: (0, tailwind_utils_1.tailwind)('truncate text-left w-full', isDestructive
|
|
19
19
|
? 'text-red-01 group-disabled:text-red-03'
|
|
20
|
-
: 'text-gray-01 group-disabled:text-gray-03'), children: label })), helperLabel && ((0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.HELPER, color: components_1.TextColors.BLACK, className: "group-disabled:text-gray-03
|
|
20
|
+
: 'text-gray-01 group-disabled:text-gray-03'), children: label })), helperLabel && ((0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.HELPER, color: components_1.TextColors.BLACK, className: "group-disabled:text-gray-03 truncate w-full", children: helperLabel }))] })] }, id));
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=menu-item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.js","sourceRoot":"","sources":["../../../../../src/components/atoms/drop-down-menu/components/menu-item.tsx"],"names":[],"mappings":";;AA0BA,4BAqGC;;AA/HD,uDASgC;AAChC,qEAA4D;AAC5D,uFAAgF;AAChF,uDAAoD;AAcpD,SAAgB,QAAQ,CAAC,EACvB,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,EAAE,EACF,KAAK,EACL,SAAS,EACT,WAAW,EACX,OAAO,GAAG,iCAAe,CAAC,OAAO,EACjC,IAAI,EACJ,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,GACZ;IACN,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAmB,GAAE,CAAC;IAC3C,MAAM,aAAa,GAAG,OAAO,KAAK,iCAAe,CAAC,WAAW,CAAC;IAC9D,MAAM,YAAY,GAAG,OAAO,KAAK,iCAAe,CAAC,WAAW,CAAC;IAC7D,MAAM,UAAU,GAAG,OAAO,KAAK,iCAAe,CAAC,SAAS,CAAC;IAEzD,OAAO,CACL,oCACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,IAAA,yBAAQ,EACjB,OAAO,EACP,
|
|
1
|
+
{"version":3,"file":"menu-item.js","sourceRoot":"","sources":["../../../../../src/components/atoms/drop-down-menu/components/menu-item.tsx"],"names":[],"mappings":";;AA0BA,4BAqGC;;AA/HD,uDASgC;AAChC,qEAA4D;AAC5D,uFAAgF;AAChF,uDAAoD;AAcpD,SAAgB,QAAQ,CAAC,EACvB,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,EAAE,EACF,KAAK,EACL,SAAS,EACT,WAAW,EACX,OAAO,GAAG,iCAAe,CAAC,OAAO,EACjC,IAAI,EACJ,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,GACZ;IACN,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAmB,GAAE,CAAC;IAC3C,MAAM,aAAa,GAAG,OAAO,KAAK,iCAAe,CAAC,WAAW,CAAC;IAC9D,MAAM,YAAY,GAAG,OAAO,KAAK,iCAAe,CAAC,WAAW,CAAC;IAC7D,MAAM,UAAU,GAAG,OAAO,KAAK,iCAAe,CAAC,SAAS,CAAC;IAEzD,OAAO,CACL,oCACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,IAAA,yBAAQ,EACjB,OAAO,EACP,4DAA4D,EAC5D,sCAAsC,EACtC,kFAAkF,EAClF,4EAA4E,EAC5E,YAAY;YACV,yFAAyF,EAC3F,UAAU,IAAI,6BAA6B,EAC3C,SAAS,CACV,iBAEY,EAAE,EACf,OAAO,EAAE,OAAO,aAEf,IAAI,IAAI,C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|
+
{"version":3,"file":"drop-down-menu-types.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/drop-down-menu/drop-down-menu-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop-down-menu-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/drop-down-menu/drop-down-menu-types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-down-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/drop-down-menu/drop-down-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"drop-down-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/drop-down-menu/drop-down-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EAAY,eAAe,EAAE,MAAM,cAAc,CAAC;AAEzD,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,EAAE,uBAAuB,EAAE,CAAC;CACpC,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,YAAY,EACZ,WAAgB,EAChB,OAAiC,GAClC,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAuCrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-down-menu.js","sourceRoot":"","sources":["../../../../src/components/atoms/drop-down-menu/drop-down-menu.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"drop-down-menu.js","sourceRoot":"","sources":["../../../../src/components/atoms/drop-down-menu/drop-down-menu.tsx"],"names":[],"mappings":";;AAaA,oCA6CC;;;AAxDD,kEAAyD;AACzD,6CAAyD;AAUzD,SAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,YAAY,EACZ,WAAW,GAAG,EAAE,EAChB,OAAO,GAAG,4BAAe,CAAC,OAAO,GAC3B;IACN,SAAS,gBAAgB,CAAC,QAAgB;QACxC,OAAO,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,aAAa,GAAG,OAAO,EAAE,MAAM,CACnC,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,CAC/F,CAAC;IAEF,OAAO,CACL,gCACE,SAAS,EAAE,IAAA,yBAAQ,EACjB,qDAAqD,EACrD,yCAAyC,EACzC,SAAS,CACV,YAEA,aAAa,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC;YACxC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;gBAChC,MAAM,UAAU,GAAG,GAAG,KAAK,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;gBACpD,MAAM,UAAU,GAAG,GAAG,KAAK,CAAC,CAAC;gBAC7B,OAAO,CACL,2BAAC,qBAAQ,OACH,MAAM,EACV,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,OAAO,EAClC,GAAG,EAAE,MAAM,CAAC,KAAK,EACjB,EAAE,EAAE,MAAM,CAAC,KAAK,EAChB,SAAS,EAAE,IAAA,yBAAQ,EAAC;wBAClB,cAAc,EAAE,UAAU;wBAC1B,cAAc,EAAE,UAAU;wBAC1B,UAAU,EAAE,CAAC,UAAU;qBACxB,CAAC,EACF,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,GAC1C,CACH,CAAC;YACJ,CAAC,CAAC;YACJ,CAAC,CAAC,YAAY,GACZ,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/drop-down-menu/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/drop-down-menu/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./drop-down-menu"), exports);
|
|
18
|
+
__exportStar(require("./drop-down-menu-types"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/drop-down-menu/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/drop-down-menu/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,yDAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button-types.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/icon-button-types.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACjB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;CAC1C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconButtonVariant = void 0;
|
|
4
|
+
var IconButtonVariant;
|
|
5
|
+
(function (IconButtonVariant) {
|
|
6
|
+
IconButtonVariant["REGULAR"] = "regular";
|
|
7
|
+
IconButtonVariant["FILLED"] = "filled";
|
|
8
|
+
IconButtonVariant["DESTRUCTIVE"] = "destructive";
|
|
9
|
+
IconButtonVariant["DESTRUCTIVE_FILLED"] = "destructive-filled";
|
|
10
|
+
})(IconButtonVariant || (exports.IconButtonVariant = IconButtonVariant = {}));
|
|
11
|
+
//# sourceMappingURL=icon-button-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/icon-button-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAKT;AALH,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACjB,sCAAiB,CAAA;IACjB,gDAA2B,CAAA;IAC3B,8DAAyC,CAAA;AAC3C,CAAC,EALS,iBAAiB,iCAAjB,iBAAiB,QAK1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/icon-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/icon-button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,iBAAiB,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIzF,KAAK,KAAK,GAAG,KAAK,CAAC,iBAAiB,CAClC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,iBAAiB,CAClB,GAAG;IACF,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,aAAa,EACb,UAAkB,EAClB,OAAmC,EACnC,OAAO,EACP,GAAG,WAAW,EACf,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA+DrB"}
|
|
@@ -2,10 +2,43 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IconButton = IconButton;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const class_variance_authority_1 = require("class-variance-authority");
|
|
5
6
|
const components_1 = require("../../../components");
|
|
6
7
|
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
7
|
-
|
|
8
|
+
const window_dimensions_utils_1 = require("../../../utils/window-dimensions-utils");
|
|
9
|
+
function IconButton({ size, icon, className, iconClassName, isDisabled = false, variant = components_1.IconButtonVariant.REGULAR, onClick, ...buttonProps }) {
|
|
8
10
|
const isClickable = Boolean(onClick);
|
|
9
|
-
|
|
11
|
+
const { isMobile } = (0, window_dimensions_utils_1.useWindowDimensions)();
|
|
12
|
+
const DefaultIconSize = isMobile ? components_1.IconSize.LG : components_1.IconSize.XL;
|
|
13
|
+
const buttonStyles = (0, class_variance_authority_1.cva)([
|
|
14
|
+
'rounded-full',
|
|
15
|
+
'disabled:cursor-not-allowed',
|
|
16
|
+
'inline-flex items-center justify-center',
|
|
17
|
+
'disabled:cursor-not-allowed',
|
|
18
|
+
isClickable && 'w-10 h-10 cursor-pointer',
|
|
19
|
+
'focus-visible:outline-offset-2 focus:outline-blue-01',
|
|
20
|
+
], {
|
|
21
|
+
variants: {
|
|
22
|
+
variant: {
|
|
23
|
+
regular: 'bg-transparent hover:bg-blue-04 active:bg-blue-03 disabled:bg-transparent focus-visible:bg-blue-04 ',
|
|
24
|
+
filled: 'bg-blue-04 shadow-black-01 hover:bg-gray-05 active:bg-blue-00 focus-visible:bg-gray-05 disabled:bg-blue-04 disabled:shadow-none',
|
|
25
|
+
destructive: 'bg-transparent hover:bg-red-04 active:bg-red-03 disabled:bg-transparent focus-visible:bg-red-04 ',
|
|
26
|
+
'destructive-filled': 'bg-red-04 shadow-black-01 hover:bg-gray-05 active:bg-red-00 focus-visible:bg-gray-05 disabled:bg-red-04 disabled:shadow-none',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: { variant },
|
|
30
|
+
});
|
|
31
|
+
const iconStyles = (0, class_variance_authority_1.cva)([''], {
|
|
32
|
+
variants: {
|
|
33
|
+
variant: {
|
|
34
|
+
regular: 'text-blue-01 group-hover:text-blue-02 group-active:text-blue-00 focus-visible:text-blue-02 group-disabled:text-blue-03',
|
|
35
|
+
filled: 'text-blue-01 group-hover:text-blue-00 group-active:text-gray-05 focus-visible:text-blue-00 group-disabled:text-blue-03',
|
|
36
|
+
destructive: 'text-red-01 group-hover:text-red-02 group-active:text-red-00 group-disabled:text-red-03 focus-visible:bg-red-02',
|
|
37
|
+
'destructive-filled': 'text-red-01 group-hover:text-red-00 group-active:text-gray-05 focus-visible:text-red-00 group-disabled:text-red-03',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: { variant },
|
|
41
|
+
});
|
|
42
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: "button", disabled: isDisabled, onClick: onClick, className: (0, tailwind_utils_1.tailwind)('group', buttonStyles({ variant, className })), ...buttonProps, children: (0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: icon, size: size ?? DefaultIconSize, className: (0, tailwind_utils_1.tailwind)(iconStyles({ variant, className: iconClassName })) }) }));
|
|
10
43
|
}
|
|
11
44
|
//# sourceMappingURL=icon-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/icon-button.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/icon-button.tsx"],"names":[],"mappings":";;AAkBA,gCAwEC;;AA1FD,uEAA+C;AAC/C,oDAAyF;AACzF,kEAAyD;AACzD,oFAA6E;AAe7E,SAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,aAAa,EACb,UAAU,GAAG,KAAK,EAClB,OAAO,GAAG,8BAAiB,CAAC,OAAO,EACnC,OAAO,EACP,GAAG,WAAW,EACR;IACN,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrC,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAmB,GAAE,CAAC;IAE3C,MAAM,eAAe,GAAG,QAAQ,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,CAAC;IAE7D,MAAM,YAAY,GAAG,IAAA,8BAAG,EACtB;QACE,cAAc;QACd,6BAA6B;QAC7B,yCAAyC;QACzC,6BAA6B;QAC7B,WAAW,IAAI,0BAA0B;QACzC,sDAAsD;KACvD,EACD;QACE,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,OAAO,EACL,qGAAqG;gBACvG,MAAM,EACJ,iIAAiI;gBACnI,WAAW,EACT,kGAAkG;gBACpG,oBAAoB,EAClB,8HAA8H;aACjI;SACF;QACD,eAAe,EAAE,EAAE,OAAO,EAAE;KAC7B,CACF,CAAC;IAEF,MAAM,UAAU,GAAG,IAAA,8BAAG,EAAC,CAAC,EAAE,CAAC,EAAE;QAC3B,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,OAAO,EACL,wHAAwH;gBAC1H,MAAM,EACJ,wHAAwH;gBAC1H,WAAW,EACT,iHAAiH;gBACnH,oBAAoB,EAClB,oHAAoH;aACvH;SACF;QACD,eAAe,EAAE,EAAE,OAAO,EAAE;KAC7B,CAAC,CAAC;IAEH,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,IAAA,yBAAQ,EAAC,OAAO,EAAE,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,KAC9D,WAAW,YAEf,uBAAC,sBAAS,IACR,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,IAAI,eAAe,EAC7B,SAAS,EAAE,IAAA,yBAAQ,EAAC,UAAU,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC,CAAC,GACtE,GACK,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./icon-button"), exports);
|
|
18
|
+
__exportStar(require("./icon-button-types"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/icon-button/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,sDAAoC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { PopOverPosition } from './pop-over-positions';
|
|
3
3
|
type Props = {
|
|
4
|
-
text
|
|
4
|
+
text?: string;
|
|
5
5
|
isVisible?: boolean;
|
|
6
6
|
isAbsolute?: boolean;
|
|
7
7
|
children?: ReactElement;
|
|
@@ -9,7 +9,9 @@ type Props = {
|
|
|
9
9
|
textClassName?: string;
|
|
10
10
|
containerClassName?: string;
|
|
11
11
|
arrowClassName?: string;
|
|
12
|
+
onPointerEnter?: () => void;
|
|
13
|
+
onPointerLeave?: () => void;
|
|
12
14
|
};
|
|
13
|
-
export declare function PopOver({ text, children, textClassName, arrowClassName, isVisible, isAbsolute, containerClassName, position, }: Props): JSX.Element;
|
|
15
|
+
export declare function PopOver({ text, children, textClassName, arrowClassName, isVisible, isAbsolute, containerClassName, position, onPointerEnter, onPointerLeave, }: Props): JSX.Element;
|
|
14
16
|
export {};
|
|
15
17
|
//# sourceMappingURL=pop-over.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pop-over.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/pop-over/pop-over.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pop-over.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/pop-over/pop-over.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGrC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAC5B,CAAC;AAEF,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,SAAiB,EACjB,UAAiB,EACjB,kBAAkB,EAClB,QAAoC,EACpC,cAAc,EACd,cAAc,GACf,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAyDrB"}
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PopOver = PopOver;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
6
5
|
const class_variance_authority_1 = require("class-variance-authority");
|
|
7
6
|
const components_1 = require("../../../components");
|
|
7
|
+
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
8
8
|
const pop_over_positions_1 = require("./pop-over-positions");
|
|
9
|
-
function PopOver({ text, children, textClassName, arrowClassName, isVisible = false, isAbsolute = true, containerClassName, position = pop_over_positions_1.PopOverPosition.TOP_RIGHT, }) {
|
|
10
|
-
const popoverMessageStyles = (0, class_variance_authority_1.cva)([
|
|
9
|
+
function PopOver({ text, children, textClassName, arrowClassName, isVisible = false, isAbsolute = true, containerClassName, position = pop_over_positions_1.PopOverPosition.TOP_RIGHT, onPointerEnter, onPointerLeave, }) {
|
|
10
|
+
const popoverMessageStyles = (0, class_variance_authority_1.cva)([
|
|
11
|
+
'z-50 w-[max-content] md:max-w-[424px] max-w-[200px] p-4 bg-gray-01 rounded-lg shadow-black-01',
|
|
12
|
+
], {
|
|
11
13
|
variants: {
|
|
12
14
|
position: {
|
|
13
15
|
left: 'right-full mr-[12px] top-1/2 -translate-y-1/2',
|
|
14
16
|
right: 'left-full ml-[12px] top-1/2 -translate-y-1/2',
|
|
15
17
|
top: 'bottom-full mb-[12px] left-1/2 -translate-x-1/2',
|
|
16
18
|
'top-left': 'bottom-full mb-[12px] -right-[12px]',
|
|
17
|
-
'top-right': 'bottom-full mb-[12px] -left-[12px]',
|
|
19
|
+
'top-right': 'bottom-full mb-[12px] pb-[12px] -left-[12px]',
|
|
18
20
|
bottom: 'top-full mt-[12px] left-1/2 -translate-x-1/2',
|
|
19
21
|
'bottom-left': 'top-full mt-[12px] -right-[12px]',
|
|
20
22
|
'bottom-right': 'top-full mt-[12px] -left-[12px]',
|
|
@@ -37,6 +39,6 @@ function PopOver({ text, children, textClassName, arrowClassName, isVisible = fa
|
|
|
37
39
|
},
|
|
38
40
|
defaultVariants: { position: pop_over_positions_1.PopOverPosition.TOP_RIGHT },
|
|
39
41
|
});
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)({ hidden: !isVisible }, isAbsolute ? 'absolute' : 'relative', popoverMessageStyles({ position, className: containerClassName })), children: [(0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, className: (0, tailwind_utils_1.tailwind)('text-white whitespace-pre-wrap break-words', textClassName), children: children ?? text }), (0, jsx_runtime_1.jsx)("div", { className: (0, tailwind_utils_1.tailwind)(arrowStyles({ position, className: arrowClassName })) })] }));
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)({ hidden: !isVisible }, isAbsolute ? 'absolute' : 'relative', popoverMessageStyles({ position, className: containerClassName })), onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, children: [(0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, className: (0, tailwind_utils_1.tailwind)('text-white whitespace-pre-wrap break-words', textClassName), children: children ?? text }), (0, jsx_runtime_1.jsx)("div", { className: (0, tailwind_utils_1.tailwind)(arrowStyles({ position, className: arrowClassName })) })] }));
|
|
41
43
|
}
|
|
42
44
|
//# sourceMappingURL=pop-over.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pop-over.js","sourceRoot":"","sources":["../../../../src/components/atoms/pop-over/pop-over.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"pop-over.js","sourceRoot":"","sources":["../../../../src/components/atoms/pop-over/pop-over.tsx"],"names":[],"mappings":";;AAmBA,0BAoEC;;AAvFD,uEAA+C;AAE/C,oDAAwD;AACxD,kEAAyD;AACzD,6DAAuD;AAevD,SAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,cAAc,EACd,SAAS,GAAG,KAAK,EACjB,UAAU,GAAG,IAAI,EACjB,kBAAkB,EAClB,QAAQ,GAAG,oCAAe,CAAC,SAAS,EACpC,cAAc,EACd,cAAc,GACR;IACN,MAAM,oBAAoB,GAAG,IAAA,8BAAG,EAC9B;QACE,+FAA+F;KAChG,EACD;QACE,QAAQ,EAAE;YACR,QAAQ,EAAE;gBACR,IAAI,EAAE,+CAA+C;gBACrD,KAAK,EAAE,8CAA8C;gBACrD,GAAG,EAAE,iDAAiD;gBACtD,UAAU,EAAE,qCAAqC;gBACjD,WAAW,EAAE,8CAA8C;gBAC3D,MAAM,EAAE,8CAA8C;gBACtD,aAAa,EAAE,kC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../../components';
|
|
3
3
|
type Props = {
|
|
4
|
-
text
|
|
4
|
+
text?: string;
|
|
5
5
|
children?: ReactElement;
|
|
6
6
|
isMessageShowed?: boolean;
|
|
7
7
|
position?: PopOverPosition;
|
|
8
8
|
iconProps?: {
|
|
9
|
-
icon
|
|
9
|
+
icon?: IconSymbol;
|
|
10
10
|
size?: IconSize;
|
|
11
11
|
color?: IconColor;
|
|
12
12
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-tip.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/tool-tip/tool-tip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool-tip.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/tool-tip/tool-tip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAU,MAAM,OAAO,CAAC;AAC7C,OAAO,EAEL,SAAS,EACT,QAAQ,EACR,UAAU,EAEV,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAK7B,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,SAAS,CAAC,EAAE;QACV,IAAI,CAAC,EAAE,UAAU,CAAC;QAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;QAChB,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,eAAsB,EACtB,QAAoC,EACpC,OAAkB,GACnB,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAyCrB"}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Tooltip = Tooltip;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
6
|
-
const window_dimensions_utils_1 = require("../../../utils/window-dimensions-utils");
|
|
7
5
|
const react_1 = require("react");
|
|
8
6
|
const components_1 = require("../../../components");
|
|
7
|
+
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
8
|
+
const window_dimensions_utils_1 = require("../../../utils/window-dimensions-utils");
|
|
9
9
|
const use_tool_tip_1 = require("./use-tool-tip");
|
|
10
10
|
function Tooltip({ text, children, iconProps, textClassName, arrowClassName, containerClassName, isMessageShowed = true, position = components_1.PopOverPosition.TOP_RIGHT, onClick = () => { }, }) {
|
|
11
11
|
const { isMessageVisible, openTooltip, closeTooltip } = (0, use_tool_tip_1.useTooltip)();
|
|
12
12
|
const { isMobile } = (0, window_dimensions_utils_1.useWindowDimensions)();
|
|
13
13
|
const buttonRef = (0, react_1.useRef)(null);
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "relative inline-block", children: [(0, jsx_runtime_1.jsx)(
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "relative inline-block", children: [(0, jsx_runtime_1.jsx)("button", { ref: buttonRef, onFocus: openTooltip, onBlur: closeTooltip, onClick: onClick, onPointerEnter: !isMobile ? openTooltip : undefined, onPointerLeave: !isMobile ? closeTooltip : undefined, className: (0, tailwind_utils_1.tailwind)('w-[24px] h-[24px] outline-none inline-flex items-center justify-center'), children: (0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: components_1.IconSymbol.WARNING_FILLED, color: components_1.IconColor.BLUE_01, size: isMobile ? components_1.IconSize.LG : components_1.IconSize.XL, ...iconProps }) }), (0, jsx_runtime_1.jsx)(components_1.PopOver, { text: text, position: position, arrowClassName: arrowClassName, textClassName: textClassName, containerClassName: containerClassName, isVisible: isMessageVisible && isMessageShowed, onPointerEnter: !isMobile ? openTooltip : undefined, onPointerLeave: !isMobile ? closeTooltip : undefined, children: children })] }));
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=tool-tip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-tip.js","sourceRoot":"","sources":["../../../../src/components/atoms/tool-tip/tool-tip.tsx"],"names":[],"mappings":";;AA8BA,
|
|
1
|
+
{"version":3,"file":"tool-tip.js","sourceRoot":"","sources":["../../../../src/components/atoms/tool-tip/tool-tip.tsx"],"names":[],"mappings":";;AA8BA,0BAmDC;;AAjFD,iCAA6C;AAC7C,oDAO6B;AAC7B,kEAAyD;AACzD,oFAA6E;AAC7E,iDAA4C;AAmB5C,SAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,eAAe,GAAG,IAAI,EACtB,QAAQ,GAAG,4BAAe,CAAC,SAAS,EACpC,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,GACZ;IACN,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,IAAA,yBAAU,GAAE,CAAC;IAErE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAmB,GAAE,CAAC;IAC3C,MAAM,SAAS,GAAG,IAAA,cAAM,EAAC,IAAI,CAAC,CAAC;IAE/B,OAAO,CACL,iCAAK,SAAS,EAAC,uBAAuB,aACpC,mCACE,GAAG,EAAE,SAAS,EACd,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EACnD,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,EACpD,SAAS,EAAE,IAAA,yBAAQ,EACjB,wEAAwE,CACzE,YAED,uBAAC,sBAAS,IACR,IAAI,EAAE,uBAAU,CAAC,cAAc,EAC/B,KAAK,EAAE,sBAAS,CAAC,OAAO,EACxB,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,KACtC,SAAS,GACb,GACK,EAET,uBAAC,oBAAO,IACN,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,EAAE,gBAAgB,IAAI,eAAe,EAC9C,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EACnD,cAAc,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,YAEnD,QAAQ,GACD,IACN,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-tool-tip.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/tool-tip/use-tool-tip.tsx"],"names":[],"mappings":"AAEA,KAAK,cAAc,GAAG;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"use-tool-tip.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/tool-tip/use-tool-tip.tsx"],"names":[],"mappings":"AAEA,KAAK,cAAc,GAAG;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,wBAAgB,UAAU,IAAI,cAAc,CAgB3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-select.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-select/form-select.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"form-select.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-select/form-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAe,gBAAgB,EAAkB,MAAM,wBAAwB,CAAC;AAEvF,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAC5C,WAAW,GAAG;IACZ,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEJ,wBAAgB,UAAU,CAAC,EAAE,oBAAoB,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAuD7E"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FormSelect = FormSelect;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const containers_1 = require("../../../../containers");
|
|
6
5
|
const components_1 = require("../../../../components");
|
|
6
|
+
const containers_1 = require("../../../../containers");
|
|
7
7
|
function FormSelect({ formControlClassName, ...props }) {
|
|
8
8
|
async function handleValueChange(value) {
|
|
9
9
|
const { formProps, formName, onChangeText } = props;
|
|
@@ -24,13 +24,13 @@ function FormSelect({ formControlClassName, ...props }) {
|
|
|
24
24
|
onOptionChange(selectedValues);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
async function
|
|
28
|
-
const {
|
|
27
|
+
async function handleOnBlur() {
|
|
28
|
+
const { onBlur, formProps } = props;
|
|
29
29
|
formProps.setTouched({ ...formProps.touched, [props.formName]: true });
|
|
30
|
-
if (
|
|
31
|
-
|
|
30
|
+
if (onBlur) {
|
|
31
|
+
onBlur();
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)(containers_1.FormControl, { ...props, errorText: props.errorText || props.formProps.errors[props.formName], inputWidth: props.isMultiSelect ? containers_1.FormInputWidth.FOUR_COLUMN : props.inputWidth, className: formControlClassName, children: ({ isErrorVisible }) => ((0, jsx_runtime_1.jsx)(components_1.Select, { ...props, isErrorVisible: isErrorVisible, onOptionChange: handleChange, onChangeText: handleValueChange,
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)(containers_1.FormControl, { ...props, errorText: props.errorText || props.formProps.errors[props.formName], inputWidth: props.isMultiSelect ? containers_1.FormInputWidth.FOUR_COLUMN : props.inputWidth, className: formControlClassName, children: ({ isErrorVisible }) => ((0, jsx_runtime_1.jsx)(components_1.Select, { ...props, isErrorVisible: isErrorVisible, onOptionChange: handleChange, onChangeText: handleValueChange, onBlur: handleOnBlur })) }));
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=form-select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-select.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-select/form-select.tsx"],"names":[],"mappings":";;AAQA,gCAuDC;;AA/DD,
|
|
1
|
+
{"version":3,"file":"form-select.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-select/form-select.tsx"],"names":[],"mappings":";;AAQA,gCAuDC;;AA/DD,uDAA6D;AAC7D,uDAAuF;AAOvF,SAAgB,UAAU,CAAC,EAAE,oBAAoB,EAAE,GAAG,KAAK,EAAmB;IAC5E,KAAK,UAAU,iBAAiB,CAAC,KAAa;QAC5C,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;QAEpD,MAAM,SAAS,CAAC,aAAa,CAAC,QAAS,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;QAEtD,IAAI,YAAY,EAAE,CAAC;YACjB,YAAY,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;IAED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AAY,EAAE,iBAAiB,EAC/B,MAAM,EAAE,YAAY,GACpB,CACH,GACW,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-input.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/select/components/select-input.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,WAAW,+
|
|
1
|
+
{"version":3,"file":"select-input.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/select/components/select-input.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,WAAW,+GAqBtB,CAAC"}
|
|
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const components_1 = require("../../../../components");
|
|
6
6
|
const tailwind_utils_1 = require("../../../../utils/tailwind-utils");
|
|
7
7
|
const react_1 = require("react");
|
|
8
|
-
exports.SelectInput = (0, react_1.forwardRef)(function SelectInput({ className, inputValue, isDisabled = false, handleInputChange }, ref) {
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)("input", { ref: ref, type: "text", disabled: isDisabled, value: inputValue, onChange: (e) => handleInputChange(e.target.value), className: (0, tailwind_utils_1.tailwind)('w-full bg-transparent outline-none cursor-pointer', 'text-gray-01', 'disabled:text-gray-03 disabled:cursor-not-allowed', `${components_1.TextStyle[components_1.TextVariant.BODY]}`, className) }));
|
|
8
|
+
exports.SelectInput = (0, react_1.forwardRef)(function SelectInput({ className, inputValue, isDisabled = false, onBlur, handleInputChange }, ref) {
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)("input", { ref: ref, type: "text", onBlur: onBlur, disabled: isDisabled, value: inputValue, onChange: (e) => handleInputChange(e.target.value), className: (0, tailwind_utils_1.tailwind)('w-full bg-transparent outline-none cursor-pointer', 'text-gray-01', 'disabled:text-gray-03 disabled:cursor-not-allowed', `${components_1.TextStyle[components_1.TextVariant.BODY]}`, className) }));
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=select-input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-input.js","sourceRoot":"","sources":["../../../../../src/components/molecules/select/components/select-input.tsx"],"names":[],"mappings":";;;;AAAA,uDAAgE;AAChE,qEAA4D;AAC5D,iCAAiD;
|
|
1
|
+
{"version":3,"file":"select-input.js","sourceRoot":"","sources":["../../../../../src/components/molecules/select/components/select-input.tsx"],"names":[],"mappings":";;;;AAAA,uDAAgE;AAChE,qEAA4D;AAC5D,iCAAiD;AAUpC,QAAA,WAAW,GAAG,IAAA,kBAAU,EAAC,SAAS,WAAW,CACxD,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,GAAG,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAoB,EAC1F,GAAmC;IAEnC,OAAO,CACL,kCACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,MAAM,EACX,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAClD,SAAS,EAAE,IAAA,yBAAQ,EACjB,mDAAmD,EACnD,cAAc,EACd,mDAAmD,EACnD,GAAG,sBAAS,CAAC,wBAAW,CAAC,IAAI,CAAC,EAAE,EAChC,SAAS,CACV,GACD,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,uBAAuB,EAMxB,MAAM,qBAAqB,CAAC;AAK7B,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAIL,uBAAuB,EAMxB,MAAM,qBAAqB,CAAC;AAK7B,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAClC,OAAO,EAAE,uBAAuB,EAAE,CAAC;IAEnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,wBAAgB,MAAM,CAAC,EACrB,UAAkB,EAClB,aAAqB,EACrB,cAAsB,EACtB,cAAc,EACd,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,MAAM,EACN,YAAY,EACZ,cAAc,EACd,OAAkB,GACnB,EAAE,WAAW,2CA2Gb"}
|
|
@@ -6,7 +6,7 @@ const components_1 = require("../../../components");
|
|
|
6
6
|
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
7
7
|
const select_input_1 = require("./components/select-input");
|
|
8
8
|
const use_select_1 = require("./use-select");
|
|
9
|
-
function Select({ isDisabled = false, isMultiSelect = false, removeOnSelect = false, isErrorVisible, className, emptyLabel, initialInputValue, initialValues, options, onChangeText, onOptionChange, onClick = () => { }, }) {
|
|
9
|
+
function Select({ isDisabled = false, isMultiSelect = false, removeOnSelect = false, isErrorVisible, className, emptyLabel, initialInputValue, initialValues, options, onBlur, onChangeText, onOptionChange, onClick = () => { }, }) {
|
|
10
10
|
const { openDropdownMenu, inputValue, selectedValues: selectedIDs, chipsData, searchedOptions, inputRef, containerRef, handleInputChange, handleDropdownMenu, } = (0, use_select_1.useSelect)({
|
|
11
11
|
options,
|
|
12
12
|
initialValues,
|
|
@@ -26,6 +26,6 @@ function Select({ isDisabled = false, isMultiSelect = false, removeOnSelect = fa
|
|
|
26
26
|
handleDropdownMenu();
|
|
27
27
|
}, className: (0, tailwind_utils_1.tailwind)('flex flex-none w-full p-4 justify-start items-center rounded-lg', 'border border-gray-04 bg-white', 'overflow-hidden cursor-pointer', 'hover:border-blue-02', isDisabled
|
|
28
28
|
? 'outline-none'
|
|
29
|
-
: 'focus-visible:border-none focus-visible:outline-2 focus-visible:outline-blue-01', { 'cursor-not-allowed bg-gray-05 border-gray-04 hover:border-gray-04': isDisabled }, { 'border-red-01': isErrorVisible }, { 'p-0 pr-4 pl-2 py-2': isMultiSelect }, className), children: [isMultiSelect ? ((0, jsx_runtime_1.jsx)(components_1.ChipList, { data: chipsData, className: "mr-1 w-full max-h-[138px]", lasItemComponent: (0, jsx_runtime_1.jsx)("div", { className: "flex-grow min-w-[20px] basis-[150px]", children: (0, jsx_runtime_1.jsx)(select_input_1.SelectInput, { ref: inputRef, isDisabled: isDisabled, inputValue: inputValue, className: "h-fit md:h-10 w-full", handleInputChange: handleInputChange }) }) })) : ((0, jsx_runtime_1.jsx)(select_input_1.SelectInput, { ref: inputRef, isDisabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('h-fit md:h-6 w-full'), inputValue: inputValue, handleInputChange: handleInputChange })), (0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: openDropdownMenu ? components_1.IconSymbol.CARET_UP : components_1.IconSymbol.CARET_DOWN, size: components_1.IconSize.SM, color: isDisabled ? components_1.IconColor.BLUE_03 : components_1.IconColor.BLUE_01, className: (0, tailwind_utils_1.tailwind)('ml-2') })] }), (0, jsx_runtime_1.jsx)(components_1.DropDownMenu, { selectedIDs: selectedIDs, options: searchedOptions, emptyElement: (0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, className: (0, tailwind_utils_1.tailwind)('flex whitespace-normal bg-white py-2 px-4'), children: emptyLabel }), className: (0, tailwind_utils_1.tailwind)('max-h-[313px] w-full', { hidden: !openDropdownMenu }) })] }));
|
|
29
|
+
: 'focus-visible:border-none focus-visible:outline-2 focus-visible:outline-blue-01', { 'cursor-not-allowed bg-gray-05 border-gray-04 hover:border-gray-04': isDisabled }, { 'border-red-01': isErrorVisible }, { 'p-0 pr-4 pl-2 py-2': isMultiSelect }, className), children: [isMultiSelect ? ((0, jsx_runtime_1.jsx)(components_1.ChipList, { data: chipsData, className: "mr-1 w-full max-h-[138px]", lasItemComponent: (0, jsx_runtime_1.jsx)("div", { className: "flex-grow min-w-[20px] basis-[150px]", children: (0, jsx_runtime_1.jsx)(select_input_1.SelectInput, { ref: inputRef, onBlur: onBlur, isDisabled: isDisabled, inputValue: inputValue, className: "h-fit md:h-10 w-full", handleInputChange: handleInputChange }) }) })) : ((0, jsx_runtime_1.jsx)(select_input_1.SelectInput, { ref: inputRef, onBlur: onBlur, isDisabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('h-fit md:h-6 w-full'), inputValue: inputValue, handleInputChange: handleInputChange })), (0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: openDropdownMenu ? components_1.IconSymbol.CARET_UP : components_1.IconSymbol.CARET_DOWN, size: components_1.IconSize.SM, color: isDisabled ? components_1.IconColor.BLUE_03 : components_1.IconColor.BLUE_01, className: (0, tailwind_utils_1.tailwind)('ml-2') })] }), (0, jsx_runtime_1.jsx)(components_1.DropDownMenu, { selectedIDs: selectedIDs, options: searchedOptions, emptyElement: typeof emptyLabel === 'string' ? ((0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, className: (0, tailwind_utils_1.tailwind)('flex whitespace-normal bg-white py-2 px-4'), children: emptyLabel })) : (emptyLabel), className: (0, tailwind_utils_1.tailwind)('max-h-[313px] w-full', { hidden: !openDropdownMenu }) })] }));
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/select.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/select.tsx"],"names":[],"mappings":";;AAiCA,wBAyHC;;AAzJD,oDAU6B;AAC7B,kEAAyD;AACzD,4DAAwD;AACxD,6CAAyC;AAmBzC,SAAgB,MAAM,CAAC,EACrB,UAAU,GAAG,KAAK,EAClB,aAAa,GAAG,KAAK,EACrB,cAAc,GAAG,KAAK,EACtB,cAAc,EACd,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,a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../../../../src/components/molecules/select/use-select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"use-select.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/select/use-select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAKzE,MAAM,MAAM,aAAa,GAAG;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAC9B,eAAe,EAAE,uBAAuB,EAAE,CAAC;IAC3C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAChD,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,uBAAuB,EAAE,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAClC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,YAAuB,EACvB,cAAyB,GAC1B,EAAE,cAAc,GAAG,aAAa,CA+NhC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useSelect = useSelect;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const string_utils_1 = require("../../../utils/string-utils/string-utils");
|
|
6
|
+
const components_1 = require("@/components/atoms/drop-down-menu/components");
|
|
6
7
|
function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, options, initialValues, onChangeText = () => { }, onOptionChange = () => { }, }) {
|
|
7
8
|
const { normalize } = (0, string_utils_1.useStringUtils)();
|
|
8
9
|
const [chipsData, setChipsData] = (0, react_1.useState)([]);
|
|
@@ -10,6 +11,7 @@ function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, options,
|
|
|
10
11
|
const [searchedOptions, setSearchedOptions] = (0, react_1.useState)([]);
|
|
11
12
|
const [selectedValues, setSelectedValues] = (0, react_1.useState)([]);
|
|
12
13
|
const [inputValue, setInputValue] = (0, react_1.useState)('');
|
|
14
|
+
const [firstRender, setFirstRender] = (0, react_1.useState)(false);
|
|
13
15
|
const inputRef = (0, react_1.useRef)(null);
|
|
14
16
|
const containerRef = (0, react_1.useRef)(null);
|
|
15
17
|
const memoOptions = (0, react_1.useMemo)(() => options || [], [options]);
|
|
@@ -47,6 +49,9 @@ function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, options,
|
|
|
47
49
|
}
|
|
48
50
|
async function handleSelectOption(selectedValues) {
|
|
49
51
|
handleDropdownMenu();
|
|
52
|
+
if (selectedValues.variant !== components_1.MenuItemVariant.DEFAULT) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
50
55
|
const newSelectedValues = await handleGetSelectedValues(selectedValues);
|
|
51
56
|
setSelectedValues(newSelectedValues);
|
|
52
57
|
onOptionChange?.(newSelectedValues);
|
|
@@ -54,6 +59,7 @@ function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, options,
|
|
|
54
59
|
function handleMapOptions() {
|
|
55
60
|
const mapOptions = options.map((option) => ({
|
|
56
61
|
...option,
|
|
62
|
+
variant: option.variant ?? components_1.MenuItemVariant.DEFAULT,
|
|
57
63
|
onClick: () => {
|
|
58
64
|
if (option?.onClick) {
|
|
59
65
|
option.onClick();
|
|
@@ -77,12 +83,11 @@ function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, options,
|
|
|
77
83
|
const hasMatchingValue = normalize(currentOption.label)
|
|
78
84
|
.toLowerCase()
|
|
79
85
|
.includes(normalizedValue);
|
|
80
|
-
return hasMatchingValue || hasMatchingHelper;
|
|
86
|
+
return (hasMatchingValue || hasMatchingHelper || currentOption.variant !== components_1.MenuItemVariant.DEFAULT);
|
|
81
87
|
});
|
|
82
88
|
setSearchedOptions(filteredOptions);
|
|
83
89
|
}
|
|
84
90
|
function initializeValues() {
|
|
85
|
-
const dropDownMenuOption = handleMapOptions();
|
|
86
91
|
const values = Array.isArray(initialValues) ? initialValues : [initialValues];
|
|
87
92
|
const chipInitialValue = options
|
|
88
93
|
.filter((option) => values.includes(option.value))
|
|
@@ -94,27 +99,27 @@ function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, options,
|
|
|
94
99
|
const initialSelectValues = options
|
|
95
100
|
.filter((option) => values.includes(option.value))
|
|
96
101
|
.map((option) => option.value);
|
|
97
|
-
const [
|
|
102
|
+
const [initial] = options
|
|
98
103
|
.filter((option) => values.includes(option.value))
|
|
99
104
|
.map((option) => option.label);
|
|
100
|
-
const removedOptions = removeOnSelect
|
|
101
|
-
? dropDownMenuOption.filter((option) => !selectedValues.includes(option.value))
|
|
102
|
-
: dropDownMenuOption;
|
|
103
105
|
setChipsData(chipInitialValue);
|
|
104
106
|
setSelectedValues(initialSelectValues);
|
|
105
|
-
setInputValue(!isMultiSelect ?
|
|
106
|
-
setSearchedOptions(removedOptions);
|
|
107
|
+
setInputValue(!isMultiSelect ? initial : '');
|
|
107
108
|
}
|
|
108
109
|
(0, react_1.useEffect)(() => {
|
|
110
|
+
if (firstRender) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
109
113
|
initializeValues();
|
|
110
|
-
|
|
114
|
+
setFirstRender(true);
|
|
115
|
+
}, [firstRender, memoOptions, initialValues]);
|
|
111
116
|
(0, react_1.useEffect)(() => {
|
|
112
117
|
const dropDownMenuOption = handleMapOptions();
|
|
113
118
|
const removedOptions = removeOnSelect
|
|
114
119
|
? dropDownMenuOption.filter((option) => !selectedValues.includes(option.value))
|
|
115
120
|
: dropDownMenuOption;
|
|
116
121
|
setSearchedOptions(removedOptions);
|
|
117
|
-
}, [
|
|
122
|
+
}, [selectedValues]);
|
|
118
123
|
(0, react_1.useEffect)(() => {
|
|
119
124
|
if (!inputRef.current) {
|
|
120
125
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-select.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/use-select.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"use-select.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/use-select.ts"],"names":[],"mappings":";;AA2BA,8BAuOC;AAjQD,iCAA6D;AAC7D,2EAA0E;AAC1E,6EAA+E;AAwB/E,SAAgB,SAAS,CAAC,EACxB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,YAAY,GAAG,GAAG,EAAE,GAAE,CAAC,EACvB,cAAc,GAAG,GAAG,EAAE,GAAE,CAAC,GACV;IAEf,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,6BAAc,GAAE,CAAC;IAGvC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAqB,EAAE,CAAC,CAAC;IACnE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IACzE,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAA4B,EAAE,CAAC,CAAC;IACtF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CA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,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,OAAO,GACR,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAClF,YAAY,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,eAAe,EACf,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAGrC,OAAO,EACL,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACR,MAAM,EACN,aAAa,EACb,QAAQ,EACR,eAAe,EACf,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,IAAI,EACJ,WAAW,EACX,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,OAAO,GACR,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAClF,YAAY,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,eAAe,EACf,UAAU,EACV,uBAAuB,GACxB,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextField = exports.FormTextField = exports.Select = exports.FormSelect = exports.Form = exports.Tooltip = exports.PopOverPosition = exports.PopOver = exports.TextButtonVariant = exports.TextButton = exports.TextColors = exports.TextVariant = exports.Text = exports.SearchBar = exports.IconButton = exports.DropDownMenu = exports.ChipList = exports.Chip = exports.CheckboxVariant = exports.Checkbox = exports.ButtonVariant = exports.Button = exports.IconSize = exports.IconSymbol = exports.IconColor = exports.BilloIcon = exports._periodUI_marker = void 0;
|
|
3
|
+
exports.TextField = exports.FormTextField = exports.Select = exports.FormSelect = exports.Form = exports.Tooltip = exports.PopOverPosition = exports.PopOver = exports.TextButtonVariant = exports.TextButton = exports.TextColors = exports.TextVariant = exports.Text = exports.SearchBar = exports.IconButton = exports.IconButtonVariant = exports.DropDownMenu = exports.ChipList = exports.Chip = exports.CheckboxVariant = exports.Checkbox = exports.ButtonVariant = exports.Button = exports.IconSize = exports.IconSymbol = exports.IconColor = exports.BilloIcon = exports._periodUI_marker = void 0;
|
|
4
4
|
exports._periodUI_marker = true;
|
|
5
5
|
var components_1 = require("./components");
|
|
6
6
|
Object.defineProperty(exports, "BilloIcon", { enumerable: true, get: function () { return components_1.BilloIcon; } });
|
|
@@ -14,6 +14,7 @@ Object.defineProperty(exports, "CheckboxVariant", { enumerable: true, get: funct
|
|
|
14
14
|
Object.defineProperty(exports, "Chip", { enumerable: true, get: function () { return components_1.Chip; } });
|
|
15
15
|
Object.defineProperty(exports, "ChipList", { enumerable: true, get: function () { return components_1.ChipList; } });
|
|
16
16
|
Object.defineProperty(exports, "DropDownMenu", { enumerable: true, get: function () { return components_1.DropDownMenu; } });
|
|
17
|
+
Object.defineProperty(exports, "IconButtonVariant", { enumerable: true, get: function () { return components_1.IconButtonVariant; } });
|
|
17
18
|
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return components_1.IconButton; } });
|
|
18
19
|
Object.defineProperty(exports, "SearchBar", { enumerable: true, get: function () { return components_1.SearchBar; } });
|
|
19
20
|
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return components_1.Text; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACa,QAAA,gBAAgB,GAAG,IAAI,CAAC;AAGrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACa,QAAA,gBAAgB,GAAG,IAAI,CAAC;AAGrC,2CAuBsB;AAtBpB,uGAAA,SAAS,OAAA;AACT,uGAAA,SAAS,OAAA;AACT,wGAAA,UAAU,OAAA;AACV,sGAAA,QAAQ,OAAA;AACR,oGAAA,MAAM,OAAA;AACN,2GAAA,aAAa,OAAA;AACb,sGAAA,QAAQ,OAAA;AACR,6GAAA,eAAe,OAAA;AACf,kGAAA,IAAI,OAAA;AACJ,sGAAA,QAAQ,OAAA;AACR,0GAAA,YAAY,OAAA;AACZ,+GAAA,iBAAiB,OAAA;AACjB,wGAAA,UAAU,OAAA;AACV,uGAAA,SAAS,OAAA;AACT,kGAAA,IAAI,OAAA;AACJ,yGAAA,WAAW,OAAA;AACX,wGAAA,UAAU,OAAA;AACV,wGAAA,UAAU,OAAA;AACV,+GAAA,iBAAiB,OAAA;AACjB,qGAAA,OAAO,OAAA;AACP,6GAAA,eAAe,OAAA;AACf,qGAAA,OAAO,OAAA;AAIT,2CAAkF;AAAzE,kGAAA,IAAI,OAAA;AAAE,wGAAA,UAAU,OAAA;AAAE,oGAAA,MAAM,OAAA;AAAE,2GAAA,aAAa,OAAA;AAAE,uGAAA,SAAS,OAAA"}
|