softable-pixels-web 1.2.30 → 1.2.34
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/{BasePopover-aHgl90XE.js → BasePopover-CY-9StFD.js} +1 -1
- package/dist/{BasePopover-aHgl90XE.js.map → BasePopover-CY-9StFD.js.map} +1 -1
- package/dist/{Breadcrumb-CBCBNcIC.js → Breadcrumb--lRHi6sr.js} +2 -2
- package/dist/{Breadcrumb-CBCBNcIC.js.map → Breadcrumb--lRHi6sr.js.map} +1 -1
- package/dist/{Button-BnPQoBEH.js → Button-o_4n7GFO.js} +3 -3
- package/dist/{Button-BnPQoBEH.js.map → Button-o_4n7GFO.js.map} +1 -1
- package/dist/{CheckItem-D45HN7Ir.js → CheckItem-C2NriXyN.js} +2 -2
- package/dist/{CheckItem-D45HN7Ir.js.map → CheckItem-C2NriXyN.js.map} +1 -1
- package/dist/{Checkbox-ClKDCBdz.js → Checkbox-qoUWy3Nj.js} +2 -2
- package/dist/{Checkbox-ClKDCBdz.js.map → Checkbox-qoUWy3Nj.js.map} +1 -1
- package/dist/{Chip-r5K3xdb9.js → Chip-DJVwuXlv.js} +2 -2
- package/dist/{Chip-r5K3xdb9.js.map → Chip-DJVwuXlv.js.map} +1 -1
- package/dist/{ChipList-DLehs_z2.js → ChipList-D7J-hTLW.js} +4 -4
- package/dist/{ChipList-DLehs_z2.js.map → ChipList-D7J-hTLW.js.map} +1 -1
- package/dist/{ColorPicker-v5ULLhFP.js → ColorPicker-sqs31Md7.js} +3 -3
- package/dist/{ColorPicker-v5ULLhFP.js.map → ColorPicker-sqs31Md7.js.map} +1 -1
- package/dist/{ContextMenu-DOIbV9BE.js → ContextMenu-CrVwvqGG.js} +6 -4
- package/dist/ContextMenu-CrVwvqGG.js.map +1 -0
- package/dist/{DatePicker-BtPT01Vt.js → DatePicker-B9UoHcYW.js} +9 -9
- package/dist/{DatePicker-BtPT01Vt.js.map → DatePicker-B9UoHcYW.js.map} +1 -1
- package/dist/{ErrorMessage-kAHOafpg.js → ErrorMessage-6pG4hFId.js} +1 -1
- package/dist/{ErrorMessage-kAHOafpg.js.map → ErrorMessage-6pG4hFId.js.map} +1 -1
- package/dist/{FileInput-CFaWGwh1.js → FileInput-CfUBqmTu.js} +4 -4
- package/dist/{FileInput-CFaWGwh1.js.map → FileInput-CfUBqmTu.js.map} +1 -1
- package/dist/{IconButton-izpMeHBl.js → IconButton-C7nGG3_D.js} +1 -1
- package/dist/{IconButton-izpMeHBl.js.map → IconButton-C7nGG3_D.js.map} +1 -1
- package/dist/{InfoSummary-BLsz7swQ.js → InfoSummary-B6k4_vpG.js} +2 -2
- package/dist/{InfoSummary-BLsz7swQ.js.map → InfoSummary-B6k4_vpG.js.map} +1 -1
- package/dist/{Input-sl0cRZUS.js → Input-F3bzYKoi.js} +4 -5
- package/dist/Input-F3bzYKoi.js.map +1 -0
- package/dist/{Label-lzG8Cp8P.js → Label-VE3hoSbt.js} +2 -2
- package/dist/{Label-lzG8Cp8P.js.map → Label-VE3hoSbt.js.map} +1 -1
- package/dist/{Loader-D21KyoAr.js → Loader-BTp8PCMz.js} +1 -1
- package/dist/{Loader-D21KyoAr.js.map → Loader-BTp8PCMz.js.map} +1 -1
- package/dist/{MaskModule-DKpEoLUF.js → MaskModule-CkD4Tlae.js} +1 -1
- package/dist/{MaskModule-DKpEoLUF.js.map → MaskModule-CkD4Tlae.js.map} +1 -1
- package/dist/{Pagination-CqVu9N0h.js → Pagination-D-eoDEIJ.js} +4 -4
- package/dist/{Pagination-CqVu9N0h.js.map → Pagination-D-eoDEIJ.js.map} +1 -1
- package/dist/{ScrollPaginationContainer-C_VJlEww.js → ScrollPaginationContainer-isAA4BsG.js} +1 -1
- package/dist/{ScrollPaginationContainer-C_VJlEww.js.map → ScrollPaginationContainer-isAA4BsG.js.map} +1 -1
- package/dist/{SearchInput-BdscRWx2.js → SearchInput-vI-WcTPT.js} +2 -2
- package/dist/{SearchInput-BdscRWx2.js.map → SearchInput-vI-WcTPT.js.map} +1 -1
- package/dist/{Select-DCtpaxaW.js → Select-CaU6hbX4.js} +68 -31
- package/dist/Select-CaU6hbX4.js.map +1 -0
- package/dist/{Switch-CaoMMeS7.js → Switch-DlZXMyGG.js} +11 -4
- package/dist/Switch-DlZXMyGG.js.map +1 -0
- package/dist/{TabSwitch-2PNcQRsB.js → TabSwitch-Co6kaDbi.js} +2 -2
- package/dist/{TabSwitch-2PNcQRsB.js.map → TabSwitch-Co6kaDbi.js.map} +1 -1
- package/dist/{TextArea-NeN7ynND.js → TextArea-s6HdNSc5.js} +4 -4
- package/dist/{TextArea-NeN7ynND.js.map → TextArea-s6HdNSc5.js.map} +1 -1
- package/dist/{Typography-D1dxTP-6.js → Typography-u0BPHgCr.js} +1 -1
- package/dist/{Typography-D1dxTP-6.js.map → Typography-u0BPHgCr.js.map} +1 -1
- package/dist/base-popover.js +1 -1
- package/dist/breadcrumb.js +2 -2
- package/dist/button.js +3 -3
- package/dist/check-item.js +2 -2
- package/dist/checkbox.js +2 -2
- package/dist/chip-list.js +5 -5
- package/dist/chip.js +2 -2
- package/dist/color-picker.js +4 -4
- package/dist/context-menu.js +4 -4
- package/dist/date-picker.d.ts +1 -1
- package/dist/date-picker.js +8 -8
- package/dist/file-input.js +4 -4
- package/dist/icon-button.js +1 -1
- package/dist/{index-UoeT_1nR.d.ts → index-BaTeJXMP.d.ts} +2 -1
- package/dist/{index-DAAEXO7G.d.ts → index-BmFKokpv.d.ts} +6 -2
- package/dist/{index-B0g1F3X4.d.ts → index-DoLWDzDX.d.ts} +2 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +26 -26
- package/dist/info-summary.js +2 -2
- package/dist/input.js +5 -5
- package/dist/mask-modules.js +1 -1
- package/dist/pagination.js +5 -5
- package/dist/scroll-pagination-container.js +1 -1
- package/dist/searchInput.js +3 -3
- package/dist/select.d.ts +1 -1
- package/dist/select.js +9 -7
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +2 -2
- package/dist/tab-switch.js +2 -2
- package/dist/text-area.js +4 -4
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/dist/ContextMenu-DOIbV9BE.js.map +0 -1
- package/dist/Input-sl0cRZUS.js.map +0 -1
- package/dist/Select-DCtpaxaW.js.map +0 -1
- package/dist/Switch-CaoMMeS7.js.map +0 -1
package/dist/breadcrumb.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
3
|
import "./Skeleton-pvWAx_gn.js";
|
|
4
|
-
import { t as Breadcrumb } from "./Breadcrumb
|
|
4
|
+
import { t as Breadcrumb } from "./Breadcrumb--lRHi6sr.js";
|
|
5
5
|
|
|
6
6
|
export { Breadcrumb };
|
package/dist/button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import "./Loader-
|
|
4
|
-
import { t as Button } from "./Button-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
|
+
import "./Loader-BTp8PCMz.js";
|
|
4
|
+
import { t as Button } from "./Button-o_4n7GFO.js";
|
|
5
5
|
|
|
6
6
|
export { Button };
|
package/dist/check-item.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
3
|
import "./Icon-bV19y393.js";
|
|
4
|
-
import { t as CheckItem } from "./CheckItem-
|
|
4
|
+
import { t as CheckItem } from "./CheckItem-C2NriXyN.js";
|
|
5
5
|
|
|
6
6
|
export { CheckItem };
|
package/dist/checkbox.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
3
|
import "./Icon-bV19y393.js";
|
|
4
|
-
import { t as Checkbox } from "./Checkbox-
|
|
4
|
+
import { t as Checkbox } from "./Checkbox-qoUWy3Nj.js";
|
|
5
5
|
|
|
6
6
|
export { Checkbox };
|
package/dist/chip-list.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import "./Chip-
|
|
4
|
-
import "./Label-
|
|
5
|
-
import "./ErrorMessage-
|
|
6
|
-
import { t as ChipList } from "./ChipList-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
|
+
import "./Chip-DJVwuXlv.js";
|
|
4
|
+
import "./Label-VE3hoSbt.js";
|
|
5
|
+
import "./ErrorMessage-6pG4hFId.js";
|
|
6
|
+
import { t as ChipList } from "./ChipList-D7J-hTLW.js";
|
|
7
7
|
|
|
8
8
|
export { ChipList };
|
package/dist/chip.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { n as types_exports, t as Chip } from "./Chip-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
|
+
import { n as types_exports, t as Chip } from "./Chip-DJVwuXlv.js";
|
|
4
4
|
|
|
5
5
|
export { Chip, types_exports as ChipTypes };
|
package/dist/color-picker.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import "./Label-
|
|
4
|
-
import "./ErrorMessage-
|
|
5
|
-
import { n as types_exports, t as ColorPicker } from "./ColorPicker-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
|
+
import "./Label-VE3hoSbt.js";
|
|
4
|
+
import "./ErrorMessage-6pG4hFId.js";
|
|
5
|
+
import { n as types_exports, t as ColorPicker } from "./ColorPicker-sqs31Md7.js";
|
|
6
6
|
import "./Skeleton-pvWAx_gn.js";
|
|
7
7
|
|
|
8
8
|
export { ColorPicker, types_exports as ColorPickerTypes };
|
package/dist/context-menu.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
|
+
import "./Switch-DlZXMyGG.js";
|
|
4
4
|
import "./useDismiss-Dpzg5Xpf.js";
|
|
5
5
|
import "./useFloating-D-2IDIWG.js";
|
|
6
6
|
import "./Popover-BV_1hBez.js";
|
|
7
|
-
import "./BasePopover-
|
|
8
|
-
import { n as types_exports, t as ContextMenu } from "./ContextMenu-
|
|
7
|
+
import "./BasePopover-CY-9StFD.js";
|
|
8
|
+
import { n as types_exports, t as ContextMenu } from "./ContextMenu-CrVwvqGG.js";
|
|
9
9
|
|
|
10
10
|
export { ContextMenu, types_exports as ContextMenuTypes };
|
package/dist/date-picker.d.ts
CHANGED
package/dist/date-picker.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
3
|
import "./useDismiss-Dpzg5Xpf.js";
|
|
4
4
|
import "./useFloating-D-2IDIWG.js";
|
|
5
5
|
import "./Popover-BV_1hBez.js";
|
|
6
6
|
import "./Icon-bV19y393.js";
|
|
7
|
-
import { n as types_exports, t as DatePicker } from "./DatePicker-
|
|
8
|
-
import "./BasePopover-
|
|
9
|
-
import "./Label-
|
|
10
|
-
import "./ErrorMessage-
|
|
11
|
-
import "./Loader-
|
|
12
|
-
import "./Button-
|
|
13
|
-
import "./MaskModule-
|
|
7
|
+
import { n as types_exports, t as DatePicker } from "./DatePicker-B9UoHcYW.js";
|
|
8
|
+
import "./BasePopover-CY-9StFD.js";
|
|
9
|
+
import "./Label-VE3hoSbt.js";
|
|
10
|
+
import "./ErrorMessage-6pG4hFId.js";
|
|
11
|
+
import "./Loader-BTp8PCMz.js";
|
|
12
|
+
import "./Button-o_4n7GFO.js";
|
|
13
|
+
import "./MaskModule-CkD4Tlae.js";
|
|
14
14
|
|
|
15
15
|
export { DatePicker, types_exports as DatePickerTypes };
|
package/dist/file-input.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
3
|
import "./Icon-bV19y393.js";
|
|
4
|
-
import "./Label-
|
|
5
|
-
import "./ErrorMessage-
|
|
6
|
-
import { n as types_exports, t as FileInput } from "./FileInput-
|
|
4
|
+
import "./Label-VE3hoSbt.js";
|
|
5
|
+
import "./ErrorMessage-6pG4hFId.js";
|
|
6
|
+
import { n as types_exports, t as FileInput } from "./FileInput-CfUBqmTu.js";
|
|
7
7
|
|
|
8
8
|
export { FileInput, types_exports as FileInputTypes };
|
package/dist/icon-button.js
CHANGED
|
@@ -36,10 +36,11 @@ interface DatePickerProps extends CalendarProps {
|
|
|
36
36
|
placeholder?: string;
|
|
37
37
|
errorMessage?: string;
|
|
38
38
|
scrollContainerId: string;
|
|
39
|
+
placementContainer?: 'bottom' | 'bottom-end' | 'bottom-start';
|
|
39
40
|
}
|
|
40
41
|
//#endregion
|
|
41
42
|
//#region src/components/commons/inputs/DatePicker/index.d.ts
|
|
42
43
|
declare const DatePicker: React.FC<DatePickerProps>;
|
|
43
44
|
//#endregion
|
|
44
45
|
export { types_d_exports as n, DatePicker as t };
|
|
45
|
-
//# sourceMappingURL=index-
|
|
46
|
+
//# sourceMappingURL=index-BaTeJXMP.d.ts.map
|
|
@@ -74,23 +74,27 @@ interface SelectProps extends LayoutProps, MarginProps {
|
|
|
74
74
|
isLoading?: boolean;
|
|
75
75
|
portalId?: PopoverProps['portalId'];
|
|
76
76
|
strategy?: FloatingOptions['strategy'];
|
|
77
|
+
placement?: FloatingOptions['placement'];
|
|
77
78
|
scrollContainerId?: FloatingOptions['scrollContainerId'];
|
|
78
79
|
absoluteReference?: FloatingOptions['absoluteReference'];
|
|
79
|
-
placement?: FloatingOptions['placement'];
|
|
80
80
|
canClear?: boolean;
|
|
81
81
|
multiple?: boolean;
|
|
82
82
|
required?: boolean;
|
|
83
83
|
disabled?: boolean;
|
|
84
84
|
hideLabel?: boolean;
|
|
85
|
+
withSearch?: boolean;
|
|
86
|
+
autoFocusFirstOption?: boolean;
|
|
85
87
|
errorMessage?: string;
|
|
86
88
|
maxVisibleItems?: number;
|
|
87
89
|
maxHeightPopover?: string;
|
|
90
|
+
searchPlaceholder?: string;
|
|
88
91
|
pagination?: Pagination;
|
|
89
92
|
startIcon?: React.ReactNode;
|
|
90
93
|
styles?: TypeStyles<typeof createSelectStyles>;
|
|
91
94
|
requiredColor?: string;
|
|
92
95
|
labelConfig?: TextProps;
|
|
93
96
|
onChange: (value: string[]) => void;
|
|
97
|
+
onSearchChange?: (value: string) => void;
|
|
94
98
|
}
|
|
95
99
|
interface SelectOption {
|
|
96
100
|
label: string;
|
|
@@ -102,4 +106,4 @@ interface SelectOption {
|
|
|
102
106
|
declare const Select: React$1.FC<SelectProps>;
|
|
103
107
|
//#endregion
|
|
104
108
|
export { types_d_exports as n, Select as t };
|
|
105
|
-
//# sourceMappingURL=index-
|
|
109
|
+
//# sourceMappingURL=index-BmFKokpv.d.ts.map
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
|
|
3
3
|
//#region src/components/commons/toolkit/Switch/types.d.ts
|
|
4
4
|
interface SwitchThumbProps {
|
|
5
|
+
fitContent?: boolean;
|
|
5
6
|
label?: string;
|
|
6
7
|
checked: boolean;
|
|
7
8
|
colorIndicator?: string;
|
|
@@ -14,4 +15,4 @@ interface SwitchThumbProps {
|
|
|
14
15
|
declare const Switch: React.FC<SwitchThumbProps>;
|
|
15
16
|
//#endregion
|
|
16
17
|
export { Switch as t };
|
|
17
|
-
//# sourceMappingURL=index-
|
|
18
|
+
//# sourceMappingURL=index-DoLWDzDX.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import { t as Button } from "./index-CbJb0T-H.js";
|
|
|
3
3
|
import { t as IconButton } from "./index-2zCiMZnT.js";
|
|
4
4
|
import { n as types_d_exports$1, t as ColorPicker } from "./index-CLDq1eQr.js";
|
|
5
5
|
import { n as types_d_exports$5 } from "./types-vfa_y8KH.js";
|
|
6
|
-
import { n as types_d_exports$3, t as DatePicker } from "./index-
|
|
6
|
+
import { n as types_d_exports$3, t as DatePicker } from "./index-BaTeJXMP.js";
|
|
7
7
|
import { n as types_d_exports$4, t as FileInput } from "./index-DDF3jbpO.js";
|
|
8
8
|
import { n as Locale, r as MaskType, t as MaskModule } from "./index-CSRzYxDc.js";
|
|
9
9
|
import { t as Input } from "./index-DFfPk9_X.js";
|
|
10
10
|
import { t as SearchInput } from "./index-MyZ_XVsH.js";
|
|
11
|
-
import { n as types_d_exports$6, t as Select } from "./index-
|
|
11
|
+
import { n as types_d_exports$6, t as Select } from "./index-BmFKokpv.js";
|
|
12
12
|
import { t as index_d_exports } from "./index-CriBmhqv.js";
|
|
13
13
|
import { t as TextArea } from "./index-Ll44Zh-u.js";
|
|
14
14
|
import { t as Popover } from "./index-tivXt3ba.js";
|
|
@@ -24,7 +24,7 @@ import { n as types_d_exports$2, t as ContextMenu } from "./index-R4SFv1ug.js";
|
|
|
24
24
|
import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
|
|
25
25
|
import { t as Pagination } from "./index-D5kC89SC.js";
|
|
26
26
|
import { ScrollPaginationContainer } from "./scroll-pagination-container.js";
|
|
27
|
-
import { t as Switch } from "./index-
|
|
27
|
+
import { t as Switch } from "./index-DoLWDzDX.js";
|
|
28
28
|
import { n as types_d_exports$7, t as TabSwitch } from "./index-BQRzf4rc.js";
|
|
29
29
|
import { Typography } from "./typography.js";
|
|
30
30
|
import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-DPmfBsga.js";
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
2
|
+
import { t as Typography } from "./Typography-u0BPHgCr.js";
|
|
3
|
+
import { t as Switch } from "./Switch-DlZXMyGG.js";
|
|
4
4
|
import { t as useDismiss } from "./useDismiss-Dpzg5Xpf.js";
|
|
5
5
|
import { t as useFloating } from "./useFloating-D-2IDIWG.js";
|
|
6
6
|
import { n as types_exports$5, t as Popover } from "./Popover-BV_1hBez.js";
|
|
7
7
|
import "./Icon-bV19y393.js";
|
|
8
|
-
import { t as Checkbox } from "./Checkbox-
|
|
9
|
-
import { n as types_exports$3, t as DatePicker } from "./DatePicker-
|
|
8
|
+
import { t as Checkbox } from "./Checkbox-qoUWy3Nj.js";
|
|
9
|
+
import { n as types_exports$3, t as DatePicker } from "./DatePicker-B9UoHcYW.js";
|
|
10
10
|
import { n as useTheme, t as ThemeProvider } from "./ThemeContext-CRVo1wLa.js";
|
|
11
|
-
import { n as types_exports$
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import { n as types_exports, t as
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import "./
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { t as TextArea } from "./TextArea-
|
|
29
|
-
import { t as SearchInput } from "./SearchInput-
|
|
30
|
-
import { n as types_exports$1, t as ColorPicker } from "./ColorPicker-
|
|
11
|
+
import { n as types_exports$7, t as Select } from "./Select-CaU6hbX4.js";
|
|
12
|
+
import { n as types_exports$8, t as TabSwitch } from "./TabSwitch-Co6kaDbi.js";
|
|
13
|
+
import { t as CheckItem } from "./CheckItem-C2NriXyN.js";
|
|
14
|
+
import { t as InfoSummary } from "./InfoSummary-B6k4_vpG.js";
|
|
15
|
+
import { t as BasePopover } from "./BasePopover-CY-9StFD.js";
|
|
16
|
+
import { n as types_exports$2, t as ContextMenu } from "./ContextMenu-CrVwvqGG.js";
|
|
17
|
+
import { n as types_exports, t as Chip } from "./Chip-DJVwuXlv.js";
|
|
18
|
+
import "./Label-VE3hoSbt.js";
|
|
19
|
+
import "./ErrorMessage-6pG4hFId.js";
|
|
20
|
+
import { t as ChipList } from "./ChipList-D7J-hTLW.js";
|
|
21
|
+
import { t as IconButton } from "./IconButton-C7nGG3_D.js";
|
|
22
|
+
import { t as Pagination } from "./Pagination-D-eoDEIJ.js";
|
|
23
|
+
import "./Loader-BTp8PCMz.js";
|
|
24
|
+
import { t as Button } from "./Button-o_4n7GFO.js";
|
|
25
|
+
import { n as types_exports$6, t as ScrollPaginationContainer } from "./ScrollPaginationContainer-isAA4BsG.js";
|
|
26
|
+
import { a as Locale, o as MaskType, s as MaskModule } from "./MaskModule-CkD4Tlae.js";
|
|
27
|
+
import { t as Input } from "./Input-F3bzYKoi.js";
|
|
28
|
+
import { t as TextArea } from "./TextArea-s6HdNSc5.js";
|
|
29
|
+
import { t as SearchInput } from "./SearchInput-vI-WcTPT.js";
|
|
30
|
+
import { n as types_exports$1, t as ColorPicker } from "./ColorPicker-sqs31Md7.js";
|
|
31
31
|
import { t as Skeleton } from "./Skeleton-pvWAx_gn.js";
|
|
32
|
-
import { n as types_exports$4, t as FileInput } from "./FileInput-
|
|
32
|
+
import { n as types_exports$4, t as FileInput } from "./FileInput-CfUBqmTu.js";
|
|
33
33
|
import { useVirtualAnchor } from "./use-virtual-anchor.js";
|
|
34
|
-
import { t as Breadcrumb } from "./Breadcrumb
|
|
34
|
+
import { t as Breadcrumb } from "./Breadcrumb--lRHi6sr.js";
|
|
35
35
|
|
|
36
36
|
export { BasePopover, Breadcrumb, Button, CheckItem, Checkbox, Chip, ChipList, types_exports as ChipTypes, ColorPicker, types_exports$1 as ColorPickerTypes, ContextMenu, types_exports$2 as ContextMenuTypes, DatePicker, types_exports$3 as DatePickerTypes, FileInput, types_exports$4 as FileInputTypes, IconButton, InfoSummary, Input, Locale, MaskModule, MaskType, Pagination, Popover, types_exports$5 as PopoverTypes, ScrollPaginationContainer, types_exports$6 as ScrollPaginationContainerTypes, SearchInput, Select, types_exports$7 as SelectTypes, Skeleton, Switch, TabSwitch, types_exports$8 as TabSwitchTypes, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
|
package/dist/info-summary.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { t as InfoSummary } from "./InfoSummary-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
|
+
import { t as InfoSummary } from "./InfoSummary-B6k4_vpG.js";
|
|
4
4
|
|
|
5
5
|
export { InfoSummary };
|
package/dist/input.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
3
|
import "./Icon-bV19y393.js";
|
|
4
|
-
import "./Label-
|
|
5
|
-
import "./ErrorMessage-
|
|
6
|
-
import "./MaskModule-
|
|
7
|
-
import { t as Input } from "./Input-
|
|
4
|
+
import "./Label-VE3hoSbt.js";
|
|
5
|
+
import "./ErrorMessage-6pG4hFId.js";
|
|
6
|
+
import "./MaskModule-CkD4Tlae.js";
|
|
7
|
+
import { t as Input } from "./Input-F3bzYKoi.js";
|
|
8
8
|
|
|
9
9
|
export { Input };
|
package/dist/mask-modules.js
CHANGED
package/dist/pagination.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
3
|
import "./Icon-bV19y393.js";
|
|
4
|
-
import "./IconButton-
|
|
5
|
-
import { t as Pagination } from "./Pagination-
|
|
6
|
-
import "./Loader-
|
|
7
|
-
import "./Button-
|
|
4
|
+
import "./IconButton-C7nGG3_D.js";
|
|
5
|
+
import { t as Pagination } from "./Pagination-D-eoDEIJ.js";
|
|
6
|
+
import "./Loader-BTp8PCMz.js";
|
|
7
|
+
import "./Button-o_4n7GFO.js";
|
|
8
8
|
|
|
9
9
|
export { Pagination };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import { n as types_exports, t as ScrollPaginationContainer } from "./ScrollPaginationContainer-
|
|
2
|
+
import { n as types_exports, t as ScrollPaginationContainer } from "./ScrollPaginationContainer-isAA4BsG.js";
|
|
3
3
|
|
|
4
4
|
export { ScrollPaginationContainer, types_exports as ScrollPaginationContainerTypes };
|
package/dist/searchInput.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
3
|
import "./Icon-bV19y393.js";
|
|
4
|
-
import "./Label-
|
|
5
|
-
import { t as SearchInput } from "./SearchInput-
|
|
4
|
+
import "./Label-VE3hoSbt.js";
|
|
5
|
+
import { t as SearchInput } from "./SearchInput-vI-WcTPT.js";
|
|
6
6
|
|
|
7
7
|
export { SearchInput };
|
package/dist/select.d.ts
CHANGED
package/dist/select.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
3
|
import "./useDismiss-Dpzg5Xpf.js";
|
|
4
4
|
import "./useFloating-D-2IDIWG.js";
|
|
5
5
|
import "./Popover-BV_1hBez.js";
|
|
6
6
|
import "./Icon-bV19y393.js";
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
12
|
-
import
|
|
7
|
+
import { n as types_exports, t as Select } from "./Select-CaU6hbX4.js";
|
|
8
|
+
import "./BasePopover-CY-9StFD.js";
|
|
9
|
+
import "./Label-VE3hoSbt.js";
|
|
10
|
+
import "./ErrorMessage-6pG4hFId.js";
|
|
11
|
+
import "./Loader-BTp8PCMz.js";
|
|
12
|
+
import "./ScrollPaginationContainer-isAA4BsG.js";
|
|
13
|
+
import "./MaskModule-CkD4Tlae.js";
|
|
14
|
+
import "./Input-F3bzYKoi.js";
|
|
13
15
|
|
|
14
16
|
export { Select, types_exports as SelectTypes };
|
package/dist/switch.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Switch } from "./index-
|
|
1
|
+
import { t as Switch } from "./index-DoLWDzDX.js";
|
|
2
2
|
export { Switch };
|
package/dist/switch.js
CHANGED
package/dist/tab-switch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { n as types_exports, t as TabSwitch } from "./TabSwitch-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
|
+
import { n as types_exports, t as TabSwitch } from "./TabSwitch-Co6kaDbi.js";
|
|
4
4
|
|
|
5
5
|
export { TabSwitch, types_exports as TabSwitchTypes };
|
package/dist/text-area.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./useThemedStyles-Dco_54KA.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import "./Label-
|
|
4
|
-
import "./ErrorMessage-
|
|
5
|
-
import { t as TextArea } from "./TextArea-
|
|
2
|
+
import "./Typography-u0BPHgCr.js";
|
|
3
|
+
import "./Label-VE3hoSbt.js";
|
|
4
|
+
import "./ErrorMessage-6pG4hFId.js";
|
|
5
|
+
import { t as TextArea } from "./TextArea-s6HdNSc5.js";
|
|
6
6
|
|
|
7
7
|
export { TextArea };
|
package/dist/typography.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu-DOIbV9BE.js","names":["floatingOptions: FloatingOptions","DividerRow: React.FC"],"sources":["../src/components/commons/toolkit/ContextMenu/components/Menu/components/ItemRow/styles.ts","../src/components/commons/toolkit/ContextMenu/components/Menu/components/ItemRow/index.tsx","../src/components/commons/toolkit/ContextMenu/components/Menu/components/CustomRow/styles.ts","../src/components/commons/toolkit/ContextMenu/components/Menu/components/CustomRow/index.tsx","../src/components/commons/toolkit/ContextMenu/components/Menu/components/DividerRow/styles.ts","../src/components/commons/toolkit/ContextMenu/components/Menu/components/DividerRow/index.tsx","../src/components/commons/toolkit/ContextMenu/components/Menu/styles.ts","../src/components/commons/toolkit/ContextMenu/components/Menu/index.tsx","../src/components/commons/toolkit/ContextMenu/utils/normalizeMenuOptions.ts","../src/components/commons/toolkit/ContextMenu/types.ts","../src/components/commons/toolkit/ContextMenu/styles.ts","../src/components/commons/toolkit/ContextMenu/index.tsx"],"sourcesContent":["// Types\nimport type { ItemRowProps } from './types'\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createItemRowStyles<T>({ item, active }: ItemRowProps<T>) {\n return styled({\n button: {\n width: '100%',\n textAlign: 'left',\n\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: '0.5rem',\n\n borderRadius: '0.5rem',\n\n paddingInline: '0.5rem',\n paddingBlock: '0.25rem',\n\n userSelect: 'none',\n\n backgroundColor:\n item.disabled || active\n ? 'var(--px-background-card-hover)'\n : 'transparent',\n\n __rules: {\n '&:hover': {\n transition: 'all 200ms',\n backgroundColor: 'var(--px-background-card-hover) !important'\n }\n }\n },\n containerIcon: {\n width: '1rem',\n flexShrink: 0,\n display: 'flex',\n alignItems: 'center'\n }\n })\n}\n","// External Libraries\nimport { type MouseEvent, useEffect, useRef, useState } from 'react'\n\n// Components\nimport { Menu } from '../..'\nimport { Switch } from '@components/commons/toolkit/Switch'\nimport { Typography } from '@components/commons/toolkit/Typography'\nimport { BasePopover } from '@components/commons/structure/BasePopover'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { ItemRowProps } from './types'\nimport type { FloatingOptions } from '@hooks/useFloating/types'\n\n// Styles\nimport { createItemRowStyles } from './styles'\n\nexport const ItemRow = <T extends string>(props: ItemRowProps<T>) => {\n const { item, depth, width, onHover, onSelect } = props\n const isGroup = item.type === 'group'\n\n const [subOpen, setSubOpen] = useState(false)\n const closeTimer = useRef<number | null>(null)\n const anchorRef = useRef<HTMLButtonElement | null>(null)\n const floatingOptions: FloatingOptions = {\n offsetX: 10,\n offsetY: -4,\n strategy: 'fixed',\n keepInViewport: true,\n placement: 'right-start'\n }\n\n // Hooks\n const { styles, classes } = useThemedStyles(props, createItemRowStyles, {\n applyCommonProps: true,\n override: props.styles,\n pick: p => [p.active]\n })\n\n // Functions\n function handleMouseEnter() {\n onHover(item.id, isGroup)\n\n if (!isGroup) return\n clearTimer()\n setSubOpen(true)\n }\n\n function handleMouseLeave() {\n if (!isGroup) return\n scheduleClose()\n }\n\n function handleClick(e?: MouseEvent<HTMLButtonElement>) {\n e?.stopPropagation()\n e?.preventDefault()\n if (isGroup) return\n onSelect(item)\n }\n\n function clearTimer() {\n if (closeTimer.current) window.clearTimeout(closeTimer.current)\n closeTimer.current = null\n }\n\n function scheduleClose() {\n clearTimer()\n closeTimer.current = window.setTimeout(() => setSubOpen(false), 150)\n }\n\n function renderMenuType() {\n if (item.type === 'switch')\n return <Switch checked={item.checked} onChange={() => handleClick()} />\n else {\n return (\n <>\n {item.shortcut ? <span>{item.shortcut}</span> : null}\n\n {isGroup ? <span>›</span> : null}\n </>\n )\n }\n }\n\n // UseEffects\n // biome-ignore lint/correctness/useExhaustiveDependencies: <Not needed>\n useEffect(() => {\n return () => clearTimer()\n }, [])\n\n return (\n <>\n <button\n ref={anchorRef}\n type=\"button\"\n role=\"menuitem\"\n style={styles.button}\n className={classes.button}\n disabled={!!item.disabled}\n aria-disabled={item.disabled || undefined}\n onClick={handleClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n {item.icon ? (\n <span style={styles.containerIcon}>{item.icon ?? null}</span>\n ) : null}\n\n <Typography variant=\"b2\">{item.label}</Typography>\n\n {renderMenuType()}\n </button>\n\n {isGroup ? (\n <BasePopover\n // biome-ignore lint/suspicious/noExplicitAny: <Not needed>\n anchorRef={anchorRef as any}\n open={subOpen}\n closeOnEscape={false}\n closeOnOutsideClick={false}\n floatingOptions={floatingOptions}\n dismissScope={props.dismissScope}\n onMouseEnter={() => {\n clearTimer()\n setSubOpen(true)\n }}\n onMouseLeave={() => {\n scheduleClose()\n }}\n onOpenChange={setSubOpen}\n >\n <Menu\n width={width}\n depth={depth + 1}\n activeId={undefined}\n items={item.children}\n onHover={onHover}\n onSelect={onSelect}\n />\n </BasePopover>\n ) : null}\n </>\n )\n}\n","// Types\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createCustomRowStyles() {\n return styled({\n container: {\n padding: '0.25rem'\n }\n })\n}\n","// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { CustomRowProps } from './types'\n\n// Styles\nimport { createCustomRowStyles } from './styles'\n\nexport const CustomRow = <T extends string>(props: CustomRowProps<T>) => {\n const { item, close } = props\n\n // Hooks\n const { styles } = useThemedStyles(props, createCustomRowStyles)\n\n return <div style={styles.container}>{item.render({ close })}</div>\n}\n","// Types\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createDividerRowStyles() {\n return styled({\n container: {\n border: 0,\n display: 'flex',\n marginBlock: '0.1rem',\n borderTop: '1px solid var(--px-border-primary)'\n }\n })\n}\n","// External Libraries\nimport type React from 'react'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Styles\nimport { createDividerRowStyles } from './styles'\n\nexport const DividerRow: React.FC = props => {\n // Hooks\n const { styles } = useThemedStyles(props, createDividerRowStyles)\n\n return <hr style={styles.container} />\n}\n","// Types\nimport type { MenuProps } from './types'\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createMenuStyles<T>({ width }: MenuProps<T>) {\n return styled({\n container: {\n width,\n flexShrink: 0\n }\n })\n}\n","// Components\nimport { ItemRow } from './components/ItemRow'\nimport { CustomRow } from './components/CustomRow'\nimport { DividerRow } from './components/DividerRow'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { MenuProps } from './types'\n\n// Styles\nimport { createMenuStyles } from './styles'\n\nexport const Menu = <T extends string>(props: MenuProps<T>) => {\n const { items, depth, activeId, width = 240, onHover, onSelect } = props\n\n const { styles } = useThemedStyles(props, createMenuStyles, {\n applyCommonProps: true,\n override: props.styles,\n pick: p => [p.items, p.width, p.activeId, p.onSelect, p.onHover]\n })\n\n // Functions\n function renderItems() {\n return items.map(item => {\n if (item.type === 'divider') return <DividerRow key={item.id} />\n if (item.type === 'custom')\n return <CustomRow key={item.id} item={item} close={close} />\n\n return (\n <ItemRow\n key={item.id}\n item={item}\n depth={depth}\n width={width}\n active={activeId === item.id}\n dismissScope={props.dismissScope}\n onHover={onHover}\n onSelect={onSelect}\n />\n )\n })\n }\n\n return (\n <div style={styles.container} role={depth === 0 ? 'menu' : undefined}>\n {renderItems()}\n </div>\n )\n}\n","// Types\nimport type { MenuOption, MenuOptionInput } from '../types'\n\nexport function normalizeMenuOptions<T>(\n options: MenuOptionInput<T>[]\n): MenuOption<T>[] {\n return options.map(opt => {\n if ('children' in opt) {\n return {\n id: opt.id,\n label: opt.label,\n icon: opt.icon,\n shortcut: opt.shortcut,\n disabled: opt.disabled,\n className: opt.className,\n type: 'group' as const,\n children: normalizeMenuOptions(opt.children)\n }\n }\n return opt as MenuOption<T>\n })\n}\n","// External Libraries\nimport type { ReactNode } from 'react'\n\n// Hooks\nimport type { Placement } from '@hooks/useFloating/types'\n\n// Styles\nimport type { createContextMenuStyles } from './styles'\n\n// Types\nimport type { TypeStyles } from '@hooks/useThemedStyles/types'\n\ninterface BaseOption<T> {\n id: T\n icon?: ReactNode\n label?: ReactNode\n disabled?: boolean\n className?: string\n shortcut?: ReactNode\n closeOnSelect?: boolean\n}\n\nexport type MenuActionOption<T> = BaseOption<T> & {\n type: 'action'\n closeOnSelect?: boolean\n}\n\nexport type MenuSwitchOption<T> = BaseOption<T> & {\n type: 'switch'\n checked: boolean\n closeOnSelect?: boolean\n onCheckedChange: (next: boolean) => void\n}\n\nexport interface MenuDividerOption<T> {\n id: T\n type: 'divider'\n}\n\nexport interface MenuCustomOption<T> extends BaseOption<T> {\n type: 'custom'\n render: (ctx: { close: () => void }) => ReactNode\n}\n\nexport interface MenuGroupInput<T> extends BaseOption<T> {\n type?: 'group'\n children: MenuOptionInput<T>[]\n}\n\nexport type MenuOptionInput<T> =\n | MenuGroupInput<T>\n | MenuActionOption<T>\n | MenuSwitchOption<T>\n | MenuCustomOption<T>\n | MenuDividerOption<T>\n\nexport interface MenuGroup<T> extends BaseOption<T> {\n type: 'group'\n children: MenuOption<T>[]\n}\n\nexport type MenuOption<T> =\n | MenuGroup<T>\n | MenuActionOption<T>\n | MenuSwitchOption<T>\n | MenuCustomOption<T>\n | MenuDividerOption<T>\n\nexport interface ContextMenuProps<T> {\n trigger: ReactNode\n options: MenuOptionInput<T>[]\n\n offsetX?: number\n offsetY?: number\n columnWidth?: number\n placement?: Placement\n\n onSelect: (actionId: T) => void\n\n styles?: TypeStyles<typeof createContextMenuStyles>\n}\n","// Types\nimport type { ContextMenuProps } from './types'\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createContextMenuStyles<T>(_props: ContextMenuProps<T>) {\n return styled({\n trigger: {\n width: 'fit-content',\n height: 'fit-content',\n\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: 'pointer'\n }\n })\n}\n","// External Libraries\nimport { useMemo, useRef, useState } from 'react'\n\n// Components\nimport { Menu } from './components/Menu'\nimport { BasePopover } from '@components/commons/structure/BasePopover'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Utils\nimport { normalizeMenuOptions } from './utils'\n\n// Types\nimport type { ContextMenuProps, MenuOption } from './types'\nimport type { PopoverTriggerRenderProps } from '../Popover/types'\n\nexport * as ContextMenuTypes from './types'\n\n// Styles\nimport { createContextMenuStyles } from './styles'\n\nexport const ContextMenu = <T extends string>(props: ContextMenuProps<T>) => {\n const {\n trigger,\n options,\n offsetX = 0,\n offsetY = 8,\n columnWidth = 240,\n placement = 'bottom-start',\n onSelect\n } = props\n\n // Refs\n const scopeRef = useRef<string>(makeScopeId())\n\n // States\n const [open, setOpen] = useState(false)\n\n const items = useMemo(() => normalizeMenuOptions(options), [options])\n const floatingOptions = useMemo(\n () => ({\n offsetX,\n offsetY,\n placement\n }),\n [offsetX, offsetY, placement]\n )\n\n // Hooks\n const { styles } = useThemedStyles(props, createContextMenuStyles, {\n applyCommonProps: true,\n override: props.styles,\n pick: p => [p.options, p.columnWidth, p.placement]\n })\n\n // Functions\n function makeScopeId() {\n if (typeof crypto !== 'undefined' && crypto.randomUUID)\n return crypto.randomUUID()\n return `scope_${Math.random().toString(16).slice(2)}`\n }\n\n function handleSelect(item: MenuOption<T>, close: () => void) {\n if (item.type === 'action') {\n onSelect(item.id)\n if (item.closeOnSelect ?? true) close()\n }\n\n if (item.type === 'switch') {\n item.onCheckedChange(!item.checked)\n if (item.closeOnSelect ?? false) close()\n }\n }\n\n function renderTrigger({\n ref,\n ariaExpanded,\n onClick\n }: PopoverTriggerRenderProps) {\n return (\n // biome-ignore lint/a11y/noStaticElementInteractions: <Not needed>\n // biome-ignore lint/a11y/useKeyWithClickEvents: <Not needed>\n <span\n ref={ref as any}\n style={styles.trigger}\n aria-expanded={ariaExpanded}\n onClick={onClick}\n >\n {trigger}\n </span>\n )\n }\n\n return (\n <BasePopover\n open={open}\n minWidth=\"fit-content\"\n floatingOptions={floatingOptions}\n dismissScope={scopeRef.current}\n trigger={renderTrigger}\n onOpenChange={setOpen}\n >\n <Menu\n depth={0}\n items={items}\n onHover={() => {}}\n width={columnWidth}\n dismissScope={scopeRef.current}\n onSelect={item =>\n handleSelect(item as MenuOption<T>, () => setOpen(false))\n }\n />\n </BasePopover>\n )\n}\n"],"mappings":";;;;;;;;AAIA,SAAgB,oBAAuB,EAAE,MAAM,UAA2B;AACxE,QAAO,OAAO;EACZ,QAAQ;GACN,OAAO;GACP,WAAW;GAEX,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,KAAK;GAEL,cAAc;GAEd,eAAe;GACf,cAAc;GAEd,YAAY;GAEZ,iBACE,KAAK,YAAY,SACb,oCACA;GAEN,SAAS,EACP,WAAW;IACT,YAAY;IACZ,iBAAiB;IAClB,EACF;GACF;EACD,eAAe;GACb,OAAO;GACP,YAAY;GACZ,SAAS;GACT,YAAY;GACb;EACF,CAAC;;;;;ACrBJ,MAAa,WAA6B,UAA2B;CACnE,MAAM,EAAE,MAAM,OAAO,OAAO,SAAS,aAAa;CAClD,MAAM,UAAU,KAAK,SAAS;CAE9B,MAAM,CAAC,SAAS,cAAc,SAAS,MAAM;CAC7C,MAAM,aAAa,OAAsB,KAAK;CAC9C,MAAM,YAAY,OAAiC,KAAK;CACxD,MAAMA,kBAAmC;EACvC,SAAS;EACT,SAAS;EACT,UAAU;EACV,gBAAgB;EAChB,WAAW;EACZ;CAGD,MAAM,EAAE,QAAQ,YAAY,gBAAgB,OAAO,qBAAqB;EACtE,kBAAkB;EAClB,UAAU,MAAM;EAChB,OAAM,MAAK,CAAC,EAAE,OAAO;EACtB,CAAC;CAGF,SAAS,mBAAmB;AAC1B,UAAQ,K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AC1B,YAAS,KAAK,GAAG;AACjB,OAAI,KAAK,iBAAiB,KAAM,UAAO;;AAGzC,MAAI,KAAK,SAAS,UAAU;AAC1B,QAAK,gBAAgB,CAAC,KAAK,QAAQ;AACnC,OAAI,KAAK,iBAAiB,MAAO,UAAO;;;CAI5C,SAAS,cAAc,EACrB,KACA,cACA,WAC4B;AAC5B,SAGE,oBAAC;GACM;GACL,OAAO,OAAO;GACd,iBAAe;GACN;aAER;IACI;;AAIX,QACE,oBAAC;EACO;EACN,UAAS;EACQ;EACjB,cAAc,SAAS;EACvB,SAAS;EACT,cAAc;YAEd,oBAAC;GACC,OAAO;GACA;GACP,eAAe;GACf,OAAO;GACP,cAAc,SAAS;GACvB,WAAU,SACR,aAAa,YAA6B,QAAQ,MAAM,CAAC;IAE3D;GACU"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input-sl0cRZUS.js","names":["value"],"sources":["../src/components/commons/inputs/Input/hooks/useInput/index.ts","../src/components/commons/inputs/Input/styles.ts","../src/components/commons/inputs/Input/index.tsx"],"sourcesContent":["// External Libraries\nimport { useState, useRef, useMemo, useEffect } from 'react'\n\n// Services\nimport { Locale, MaskModule, MaskType } from 'src/services/MaskModule'\n\n// Types\nimport type { InputProps } from '../../types'\nimport { IntegerMask } from '@services/MaskModule/locales/br/masks/IntegerMask'\n\nexport function useInput({\n max,\n mask,\n delay,\n value,\n min,\n onChange,\n ...rest\n}: InputProps) {\n // Refs\n const inputRef = useRef<HTMLInputElement>(null)\n const timeoutRef = useRef<NodeJS.Timeout>(null)\n\n // States\n const [inputValue, setInputValue] = useState(value)\n const [showPassword, setShowPassword] = useState(false)\n\n // Constants\n // biome-ignore lint/correctness/useExhaustiveDependencies: Not Needed\n const { minLength, maxLength } = useMemo(() => {\n const appliedMask = getMask()\n\n const minLength = rest.minLength ?? appliedMask?.minLength\n const maxLength = rest.maxLength ?? appliedMask?.maxLength\n\n return { minLength, maxLength }\n }, [mask, rest.minLength, rest.maxLength])\n\n // UseEffects\n useEffect(() => {\n setInputValue(value)\n }, [value])\n\n // Functions\n function getMask() {\n if (!mask) return undefined\n\n if (mask === MaskType.INTEGER) return new IntegerMask({ max, min })\n else return MaskModule.getMask(Locale.BR, mask)\n }\n\n function togglePasswordVisibility() {\n setShowPassword(prev => !prev)\n }\n\n function handleRefMethods() {\n return { focus: handleFocus, blur: handleBlur }\n }\n\n function handleFocus() {\n inputRef.current?.focus()\n }\n\n function handleBlur() {\n inputRef.current?.blur()\n }\n\n function handleChange(e: React.ChangeEvent<HTMLInputElement>) {\n let value = e.target.value\n\n if (timeoutRef.current) clearTimeout(timeoutRef.current)\n\n if (mask) {\n const module = getMask()\n if (module) value = module.format(value)\n }\n\n setInputValue(value)\n\n if (!delay) onChange?.(value)\n else {\n timeoutRef.current = setTimeout(() => onChange?.(value), delay)\n }\n }\n\n return {\n inputRef,\n minLength,\n maxLength,\n inputValue,\n showPassword,\n handleChange,\n handleRefMethods,\n togglePasswordVisibility\n }\n}\n","// Hooks\nimport { styled } from '@hooks/useThemedStyles/types'\n\n// Types\nimport type { InputProps } from './types'\n\nexport function createInputStyles(props: InputProps) {\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n flexDirection: 'column',\n\n rowGap: '0.375rem'\n },\n wrapper: {\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n\n borderWidth: 1,\n columnGap: '0.25rem',\n borderRadius: '0.5rem',\n padding: '0.625rem 0.875rem',\n\n opacity: props.disabled ? 0.5 : 1,\n boxShadow: 'var(--px-shadow-default)',\n borderColor: props.errorMessage\n ? 'var(--px-color-error)'\n : 'var(--px-border-primary)',\n\n __rules: {\n '&:focus-within': {\n outlineOffset: '-1px',\n outline: `2px solid var(${props.errorMessage ? '--px-color-error' : '--px-color-primary'})`\n }\n }\n },\n\n input: {\n flex: 1,\n\n fontWeight: 500,\n fontSize: '1rem',\n lineHeight: '1.5rem',\n fontFamily: 'inherit',\n color: 'var(--px-text-primary)',\n\n __rules: {\n '&:disabled': {\n cursor: 'not-allowed'\n },\n\n '&:focus': {\n outline: 'none'\n },\n\n '&::placeholder': {\n fontWeight: 400,\n color: 'var(--px-text-secondary)'\n }\n }\n },\n\n button: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n\n cursor: 'pointer',\n padding: '0.25rem',\n borderRadius: '0.5rem',\n\n __rules: {\n '&:focus': {\n outline: '1px solid var(--px-border-primary)'\n }\n }\n }\n })\n}\n","/** biome-ignore-all lint/a11y/noAutofocus: It's a custom input component */\n// External Libraries\nimport { forwardRef, useId, useImperativeHandle, useMemo } from 'react'\n\n// Components\nimport { Label } from '../../toolkit/Label'\nimport { Icon } from '@components/commons/toolkit/Icon'\nimport { ErrorMessage } from '../../toolkit/ErrorMessage'\n\n// Types\nimport type { InputProps, InputMethods } from './types'\n\n// Hooks\nimport { useInput } from './hooks/useInput'\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Styles\nimport { createInputStyles } from './styles'\n\nexport const Input = forwardRef<InputMethods, InputProps>((props, ref) => {\n // Constants\n const reactId = useId()\n const inputId = useMemo(() => {\n return props.id || `input-${reactId}`\n }, [props.id, reactId])\n\n // Hooks\n const {\n inputRef,\n minLength,\n maxLength,\n inputValue,\n showPassword,\n handleChange,\n handleRefMethods,\n togglePasswordVisibility\n } = useInput(props)\n useImperativeHandle(ref, handleRefMethods)\n\n // Hooks\n const { styles, classes } = useThemedStyles(props, createInputStyles, {\n pick: p => [p.disabled, p.errorMessage],\n override: props.styles,\n applyCommonProps: true,\n commonSlot: 'container'\n })\n\n // Functions\n function getType() {\n if (props.type === 'password' && showPassword) return 'text'\n return props.type\n }\n\n function renderEndContent() {\n if (props.type === 'password') {\n return (\n <button\n type=\"button\"\n style={styles.button}\n className={classes.button}\n onClick={togglePasswordVisibility}\n >\n <Icon\n size=\"sm\"\n name={showPassword ? 'general-eye-off' : 'general-eye'}\n />\n </button>\n )\n }\n\n return props.endIcon ?? null\n }\n\n return (\n <div style={styles.container}>\n {props.hideLabel ? null : (\n <Label\n htmlFor={inputId}\n label={props.label}\n required={props.required}\n requiredColor={props.requiredColor}\n {...props.labelConfig}\n />\n )}\n\n <div style={styles.wrapper} className={classes.wrapper}>\n {props.startIcon}\n\n <input\n ref={inputRef}\n id={inputId}\n type={getType()}\n value={inputValue}\n style={styles.input}\n minLength={minLength}\n maxLength={maxLength}\n required={props.required}\n disabled={props.disabled}\n className={classes.input}\n autoFocus={props.autoFocus}\n spellCheck={props.spellCheck}\n autoCorrect={props.autoCorrect}\n placeholder={props.placeholder}\n autoComplete={props.autoComplete}\n autoCapitalize={props.autoCapitalize}\n aria-label={!props.hideLabel ? undefined : props.label}\n onChange={handleChange}\n />\n\n {renderEndContent()}\n </div>\n\n {props.errorMessage ? (\n <ErrorMessage message={props.errorMessage} />\n ) : null}\n </div>\n )\n})\n\nInput.displayName = 'Input'\n"],"mappings":";;;;;;;;;AAUA,SAAgB,SAAS,EACvB,KACA,MACA,OACA,OACA,KACA,UACA,GAAG,QACU;CAEb,MAAM,WAAW,OAAyB,KAAK;CAC/C,MAAM,aAAa,OAAuB,KAAK;CAG/C,MAAM,CAAC,YAAY,iBAAiB,SAAS,MAAM;CACnD,MAAM,CAAC,cAAc,mBAAmB,SAAS,MAAM;CAIvD,MAAM,EAAE,WAAW,cAAc,cAAc;EAC7C,MAAM,cAAc,SAAS;AAK7B,SAAO;GAAE,WAHS,KAAK,aAAa,aAAa;GAG7B,WAFF,KAAK,aAAa,aAAa;GAElB;IAC9B;EAAC;EAAM,KAAK;EAAW,KAAK;EAAU,CAAC;AAG1C,iBAAgB;AACd,gBAAc,MAAM;IACnB,CAAC,MAAM,CAAC;CAGX,SAAS,UAAU;AACjB,MAAI,CAAC,KAAM,QAAO;AAElB,MAAI,SAAS,SAAS,QAAS,QAAO,IAAI,YAAY;GAAE;GAAK;GAAK,CAAC;MAC9D,QAAO,WAAW,QAAQ,OAAO,IAAI,KAAK;;CAGjD,SAAS,2BAA2B;AAClC,mBAAgB,S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AAM,YAAY,SAAY,MAAM;MACjD,UAAU;OACV;KAED,kBAAkB;;KACf;GAEL,MAAM,eACL,oBAAC,gBAAa,SAAS,MAAM,eAAgB,GAC3C;;GACA;EAER;AAEF,MAAM,cAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select-DCtpaxaW.js","names":["value","Select: React.FC<SelectProps>","result: React.ReactNode[] | string"],"sources":["../src/components/commons/inputs/Select/components/OptionItem/styles.ts","../src/components/commons/inputs/Select/components/OptionItem/index.tsx","../src/hooks/useCompositeListNavigation/index.ts","../src/components/commons/inputs/Select/hooks/useSelect/index.ts","../src/components/commons/inputs/Select/styles.ts","../src/components/commons/inputs/Select/types.ts","../src/components/commons/inputs/Select/index.tsx"],"sourcesContent":["import type { OptionItemProps } from './types'\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createOptionsStyles(\n props: OptionItemProps & { ['data-active']?: string }\n) {\n const { isSelected } = props\n const isActive = props['data-active'] === 'true'\n const highlighted = isSelected || isActive\n\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n alignItems: 'center',\n textAlign: 'left',\n\n borderRadius: '0.25rem',\n padding: '0.5rem 0.75rem',\n\n cursor: 'pointer',\n transition: 'background-color 0.2s ease-out',\n\n backgroundColor: highlighted\n ? 'var(--px-background-card-hover)'\n : 'transparent',\n\n __rules: {\n '&:hover': {\n backgroundColor: 'var(--px-background-card-hover) !important'\n },\n\n '&:focus': {\n outlineOffset: '-2px',\n outline: '2px solid var(--px-color-primary)'\n }\n }\n },\n\n text: {\n flex: 1,\n\n fontSize: '1rem',\n fontWeight: 500,\n lineHeight: '1.5rem',\n fontFamily: 'inherit',\n color: 'var(--px-text-primary)',\n\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis'\n },\n\n optionContent: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n columnGap: '0.25rem'\n }\n })\n}\n","/** biome-ignore-all lint/a11y/useSemanticElements: It's a custom select component */\nimport type React from 'react'\nimport { forwardRef } from 'react'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { OptionItemProps } from './types'\n\n// Styles\nimport { createOptionsStyles } from './styles'\n\ntype NativeButtonProps = Omit<\n React.ComponentPropsWithoutRef<'button'>,\n 'onClick'\n>\n\nexport const OptionItem = forwardRef<\n HTMLButtonElement,\n OptionItemProps & NativeButtonProps\n>((props, ref) => {\n const { styles, classes } = useThemedStyles(props, createOptionsStyles)\n\n const { option, isSelected, onClick, ...rest } = props\n\n return (\n <button\n {...rest}\n ref={ref}\n type=\"button\"\n role=\"option\"\n style={styles.container}\n className={classes.container}\n aria-label={option.label}\n aria-selected={isSelected}\n onClick={() => onClick(option.value)}\n >\n <div style={styles.optionContent}>\n {option.startIcon}\n <span style={styles.text}> {option.label}</span>\n </div>\n </button>\n )\n})\n\nOptionItem.displayName = 'OptionItem'\n","// External Libraries\nimport { useCallback, useEffect, useRef, useState } from 'react'\n\nexport type CompositeItemMeta = {\n disabled?: boolean\n hasChildren?: boolean\n onActivate?: () => void\n onOpenChildren?: () => void\n onCloseChildren?: () => void\n}\n\ntype Params = {\n open: boolean\n itemCount: number\n initialIndex?: number\n onCloseByTab?: () => void\n setOpen: (v: boolean) => void\n makeMeta: (index: number) => CompositeItemMeta\n}\n\nfunction findNextEnabled(\n start: number,\n dir: 1 | -1,\n count: number,\n isDisabled: (i: number) => boolean\n) {\n if (count <= 0) return 0\n let i = start\n for (let step = 0; step < count; step++) {\n i = (i + dir + count) % count\n if (!isDisabled(i)) return i\n }\n return start\n}\n\nfunction findFirstEnabled(count: number, isDisabled: (i: number) => boolean) {\n for (let i = 0; i < count; i++) if (!isDisabled(i)) return i\n return 0\n}\n\nexport function useCompositeListNavigation({\n open,\n itemCount,\n initialIndex,\n setOpen,\n makeMeta,\n onCloseByTab\n}: Params) {\n const listRef = useRef<HTMLElement | null>(null)\n const itemRefs = useRef<Array<HTMLButtonElement | null>>([])\n\n const isDisabled = useCallback(\n (i: number) => !!makeMeta(i).disabled,\n [makeMeta]\n )\n\n const [activeIndex, setActiveIndex] = useState(0)\n\n const focusItem = useCallback((i: number) => {\n const el = itemRefs.current[i]\n if (!el) return\n el.focus({ preventScroll: true })\n el.scrollIntoView({ block: 'nearest' })\n }, [])\n\n const openAndFocus = useCallback(\n (index?: number) => {\n setOpen(true)\n\n const next =\n typeof index === 'number'\n ? index\n : typeof initialIndex === 'number'\n ? initialIndex\n : findFirstEnabled(itemCount, isDisabled)\n\n setActiveIndex(next)\n requestAnimationFrame(() => focusItem(next))\n },\n [focusItem, initialIndex, isDisabled, itemCount, setOpen]\n )\n\n useEffect(() => {\n if (!open) return\n requestAnimationFrame(() => focusItem(activeIndex))\n }, [open, activeIndex, focusItem])\n\n const move = useCallback(\n (dir: 1 | -1) => {\n const next = findNextEnabled(activeIndex, dir, itemCount, isDisabled)\n setActiveIndex(next)\n requestAnimationFrame(() => focusItem(next))\n },\n [activeIndex, itemCount, isDisabled, focusItem]\n )\n\n const activate = useCallback(() => {\n const meta = makeMeta(activeIndex)\n if (meta.disabled) return\n meta.onActivate?.()\n }, [activeIndex, makeMeta])\n\n const onListKeyDown = useCallback(\n (e: React.KeyboardEvent) => {\n if (!open) return\n\n switch (e.key) {\n case 'Tab': {\n // ✅ fecha e deixa o browser focar o próximo\n // (e NÃO restaura foco pro trigger)\n onCloseByTab?.()\n setOpen(false)\n return\n }\n\n case 'ArrowDown':\n e.preventDefault()\n move(+1)\n return\n\n case 'ArrowUp':\n e.preventDefault()\n move(-1)\n return\n\n case 'Home': {\n e.preventDefault()\n const first = findFirstEnabled(itemCount, isDisabled)\n setActiveIndex(first)\n requestAnimationFrame(() => focusItem(first))\n return\n }\n\n case 'End': {\n e.preventDefault()\n let last = itemCount - 1\n for (let i = itemCount - 1; i >= 0; i--) {\n if (!isDisabled(i)) {\n last = i\n break\n }\n }\n setActiveIndex(last)\n requestAnimationFrame(() => focusItem(last))\n return\n }\n\n case 'Enter':\n case ' ': {\n e.preventDefault()\n activate()\n return\n }\n\n case 'Escape':\n e.preventDefault()\n setOpen(false)\n return\n\n case 'ArrowRight': {\n e.preventDefault()\n const meta = makeMeta(activeIndex)\n if (meta.hasChildren) meta.onOpenChildren?.()\n return\n }\n\n case 'ArrowLeft': {\n e.preventDefault()\n const meta = makeMeta(activeIndex)\n meta.onCloseChildren?.()\n return\n }\n }\n },\n [\n open,\n itemCount,\n activeIndex,\n move,\n setOpen,\n activate,\n makeMeta,\n focusItem,\n isDisabled,\n onCloseByTab\n ]\n )\n\n const getTriggerProps = useCallback(() => {\n return {\n onKeyDown: (e: React.KeyboardEvent) => {\n if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {\n e.preventDefault()\n if (!open) openAndFocus()\n return\n }\n\n if (e.key === 'ArrowUp') {\n e.preventDefault()\n if (!open) openAndFocus(itemCount > 0 ? itemCount - 1 : 0)\n }\n }\n }\n }, [open, openAndFocus, itemCount])\n\n const getListProps = useCallback(() => {\n return {\n ref: (el: HTMLElement | null) => {\n listRef.current = el\n },\n onKeyDown: onListKeyDown\n }\n }, [onListKeyDown])\n\n const getItemProps = useCallback(\n (index: number) => {\n const isActive = index === activeIndex\n return {\n ref: (el: HTMLButtonElement | null) => {\n itemRefs.current[index] = el\n },\n tabIndex: isActive ? 0 : -1,\n 'data-active': isActive ? 'true' : 'false'\n } as const\n },\n [activeIndex]\n )\n\n return {\n activeIndex,\n getListProps,\n getItemProps,\n openAndFocus,\n setActiveIndex,\n getTriggerProps\n }\n}\n","// External Libraries\nimport { useState } from 'react'\n\n// Types\nimport type { SelectProps } from '../../types'\nimport { useCompositeListNavigation } from '@hooks/useCompositeListNavigation'\n\nexport function useSelect({\n value,\n options,\n multiple,\n disabled,\n canClear,\n onChange\n}: SelectProps) {\n // States\n const [open, setOpen] = useState(false)\n\n // Hooks\n const nav = useCompositeListNavigation({\n open,\n itemCount: options.length,\n setOpen: changeOpen,\n makeMeta: makeMeta\n })\n\n // Functions\n function handleOptionClick(option: string) {\n const isAlreadySelected = value.includes(option)\n\n if (!multiple) {\n if (isAlreadySelected) {\n if (canClear) onChange([])\n } else onChange([option])\n\n setOpen(false)\n return\n }\n\n if (isAlreadySelected) {\n if (value.length === 1) {\n if (canClear) onChange([])\n } else onChange(value.filter(v => v !== option))\n } else onChange([...value, option])\n }\n\n function makeMeta(index: number) {\n const opt = options[index]\n return {\n onActivate: () => {\n if (opt) handleOptionClick(opt.value)\n }\n }\n }\n\n function changeOpen(value: boolean) {\n setOpen(value)\n }\n\n function togglePanel() {\n if (disabled) return\n if (!open) nav.openAndFocus()\n }\n\n function closePanel() {\n setOpen(false)\n }\n\n return {\n nav,\n open,\n makeMeta,\n changeOpen,\n togglePanel,\n closePanel,\n handleOptionClick\n }\n}\n","import { styled } from '@hooks/useThemedStyles/types'\nimport type { SelectProps } from './types'\n\nexport function createSelectStyles(props: SelectProps) {\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n flexDirection: 'column',\n position: 'relative',\n\n rowGap: '0.375rem'\n },\n\n content: {\n width: '100%',\n height: '2.75rem',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n\n borderWidth: 1,\n columnGap: '0.25rem',\n borderRadius: '0.5rem',\n padding: '0.625rem 0.875rem',\n\n opacity: props.disabled || props.isLoading ? 0.5 : 1,\n cursor: props.isLoading\n ? 'progress'\n : props.disabled\n ? 'not-allowed'\n : 'pointer',\n boxShadow: 'var(--px-shadow-default)',\n borderColor: props.errorMessage\n ? 'var(--px-color-error)'\n : 'var(--px-border-primary)',\n\n __rules: {\n '&:focus-within': {\n outlineOffset: '-1px !important',\n outline: `2px solid var(${props.errorMessage ? '--px-color-error' : '--px-color-primary'}) !important`\n }\n }\n },\n\n text: {\n flex: 1,\n\n textAlign: 'left',\n\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n\n fontSize: '1rem',\n lineHeight: '1.5rem',\n fontFamily: 'inherit',\n fontWeight: props.value.length ? 500 : 400,\n color: props.value.length\n ? 'var(--px-text-primary)'\n : 'var(--px-text-secondary)'\n },\n\n panel: { width: '100%' },\n\n contentValueImage: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n columnGap: '0.25rem'\n },\n\n iconContainer: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n maxWidth: '1rem'\n }\n })\n}\n","import type {\n TextProps,\n LayoutProps,\n MarginProps,\n TypeStyles\n} from '@hooks/useThemedStyles/types'\nimport type { createSelectStyles } from './styles'\nimport type { FloatingOptions } from '@hooks/useFloating/types'\nimport type { PopoverProps } from '@components/commons/toolkit/Popover/types'\nimport type { Pagination } from '@components/commons/toolkit/ScrollPaginationContainer/types'\n\nexport interface SelectProps extends LayoutProps, MarginProps {\n label: string\n value: string[]\n placeholder?: string\n options: SelectOption[]\n isLoading?: boolean\n\n portalId?: PopoverProps['portalId']\n strategy?: FloatingOptions['strategy']\n scrollContainerId?: FloatingOptions['scrollContainerId']\n absoluteReference?: FloatingOptions['absoluteReference']\n placement?: FloatingOptions['placement']\n\n canClear?: boolean\n multiple?: boolean\n required?: boolean\n disabled?: boolean\n hideLabel?: boolean\n errorMessage?: string\n maxVisibleItems?: number\n maxHeightPopover?: string\n\n pagination?: Pagination\n\n startIcon?: React.ReactNode\n styles?: TypeStyles<typeof createSelectStyles>\n\n requiredColor?: string\n labelConfig?: TextProps\n\n onChange: (value: string[]) => void\n}\n\nexport interface SelectOption {\n label: string\n value: string\n startIcon?: React.ReactNode\n}\n","/** biome-ignore-all lint/a11y/useSemanticElements: It's a custom select component */\n// External Libraries\nimport type React from 'react'\nimport { useMemo } from 'react'\n\n// Components\nimport { OptionItem } from './components/OptionItem'\nimport { Icon } from '@components/commons/toolkit/Icon'\nimport { Label } from '@components/commons/toolkit/Label'\nimport { ErrorMessage } from '../../toolkit/ErrorMessage'\nimport { Loader } from '@components/commons/toolkit/Loader'\nimport { Typography } from '@components/commons/toolkit/Typography'\nimport { BasePopover } from '@components/commons/structure/BasePopover'\nimport { ScrollPaginationContainer } from '@components/commons/toolkit/ScrollPaginationContainer'\n\n// Hooks\nimport { useSelect } from './hooks/useSelect'\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { SelectProps } from './types'\nimport type { PopoverTriggerRenderProps } from '@components/commons/toolkit/Popover/types'\n\n// Styles\nimport { createSelectStyles } from './styles'\nimport { ScrollDirection } from '@components/commons/toolkit/ScrollPaginationContainer/types'\n\nexport * as SelectTypes from './types'\n\nexport const Select: React.FC<SelectProps> = props => {\n const { nav, open, changeOpen, handleOptionClick } = useSelect(props)\n const { styles, classes } = useThemedStyles(props, createSelectStyles, {\n pick: p => [p.disabled, p.errorMessage, p.value, p.isLoading],\n override: props.styles,\n applyCommonProps: true,\n commonSlot: 'container'\n })\n\n const maxVisible = props.maxVisibleItems ?? Infinity\n const optionsMap = useMemo(\n () =>\n new Map(\n props.options.map(option => [\n option.value,\n { label: option.label, startIcon: option.startIcon }\n ])\n ),\n [props.options]\n )\n\n // Functions\n function renderContent() {\n if (!props.value?.length) return props.placeholder\n\n const resolvedValues = props.value.map(\n val => optionsMap.get(val) ?? { label: val, startIcon: null }\n )\n const visibleItems = resolvedValues.slice(0, maxVisible)\n const hiddenCount = resolvedValues.length - visibleItems.length\n\n let result: React.ReactNode[] | string = []\n\n if (props.multiple) {\n result = visibleItems.map(i => i.label).join(', ')\n } else {\n result = visibleItems.map(i => (\n <span key={i.label} style={styles.contentValueImage}>\n {i.startIcon ? i.startIcon : null}\n <span style={styles.text}>{i.label}</span>\n </span>\n ))\n }\n\n if (typeof result === 'object' && hiddenCount > 0)\n result.push(<span key=\"hidden-count\">{hiddenCount}</span>)\n\n if (typeof result === 'string' && hiddenCount > 0)\n result = `${result} ${hiddenCount}`\n\n return result\n }\n\n function renderTrigger({\n ref,\n ariaExpanded,\n onClick\n }: PopoverTriggerRenderProps) {\n const triggerKeyProps = nav.getTriggerProps()\n\n return (\n <button\n ref={ref as React.RefObject<HTMLButtonElement>}\n dir=\"ltr\"\n type=\"button\"\n role=\"combobox\"\n style={styles.content}\n aria-autocomplete=\"none\"\n aria-label={props.label}\n className={classes.content}\n aria-expanded={ariaExpanded}\n disabled={props.disabled || props.isLoading}\n {...triggerKeyProps}\n onClick={onClick}\n >\n {props.value.length ? props.startIcon : null}\n\n <span id=\"text-content\" style={styles.text}>\n {renderContent()}\n </span>\n\n {props.isLoading ? (\n <Loader size=\"1rem\" color=\"var(--px-color-primary)\" />\n ) : (\n <div style={styles.iconContainer}>\n <Icon size=\"sm\" name=\"chevrons-down\" />\n </div>\n )}\n </button>\n )\n }\n\n function renderOptions() {\n if (props.options.length === 0) {\n return (\n <Typography variant=\"b2\" textAlign=\"center\">\n No options\n </Typography>\n )\n }\n\n return props.options.map((option, idx) => (\n <OptionItem\n key={option.value}\n option={option}\n onClick={handleOptionClick}\n isSelected={props.value.includes(option.value)}\n {...nav.getItemProps(idx)}\n />\n ))\n }\n\n return (\n <div style={styles.container}>\n {props.hideLabel ? null : (\n <Label\n label={props.label}\n required={props.required}\n requiredColor={props.requiredColor}\n {...props.labelConfig}\n />\n )}\n\n <BasePopover\n open={open}\n portalId={props.portalId}\n absoluteReference={props.absoluteReference}\n maxHeight={props.maxHeightPopover}\n floatingOptions={{\n viewportMargin: 0,\n strategy: props.strategy,\n placement: props.placement,\n scrollContainerId: props.scrollContainerId\n }}\n trigger={renderTrigger}\n onOpenChange={changeOpen}\n >\n <ScrollPaginationContainer\n fillFlex\n direction={ScrollDirection.Vertical}\n verticalPagination={props.pagination}\n >\n <div style={styles.panel} role=\"listbox\" {...nav.getListProps()}>\n {renderOptions()}\n </div>\n </ScrollPaginationContainer>\n </BasePopover>\n\n {props.errorMessage ? (\n <ErrorMessage message={props.errorMessage} />\n ) : null}\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;;AAGA,SAAgB,oBACd,OACA;CACA,MAAM,EAAE,eAAe;CACvB,MAAM,WAAW,MAAM,mBAAmB;AAG1C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