softable-pixels-web 1.1.32 → 1.2.0

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.
Files changed (126) hide show
  1. package/dist/{BasePopover-BYa7SBXE.js → BasePopover-m1OfX3fO.js} +3 -3
  2. package/dist/{BasePopover-BYa7SBXE.js.map → BasePopover-m1OfX3fO.js.map} +1 -1
  3. package/dist/{Breadcrumb-BLu27RXT.js → Breadcrumb-Bm9YuwCq.js} +4 -4
  4. package/dist/{Breadcrumb-BLu27RXT.js.map → Breadcrumb-Bm9YuwCq.js.map} +1 -1
  5. package/dist/{Button-BVxsixz_.js → Button-Vm1Odbi_.js} +4 -4
  6. package/dist/{Button-BVxsixz_.js.map → Button-Vm1Odbi_.js.map} +1 -1
  7. package/dist/{CheckItem-B5O_5_Qd.js → CheckItem-3d-2-qZe.js} +4 -4
  8. package/dist/{CheckItem-B5O_5_Qd.js.map → CheckItem-3d-2-qZe.js.map} +1 -1
  9. package/dist/{Checkbox-CsSo3vk0.js → Checkbox-aFsrig0i.js} +4 -4
  10. package/dist/{Checkbox-CsSo3vk0.js.map → Checkbox-aFsrig0i.js.map} +1 -1
  11. package/dist/{Chip-CxSFYy0c.js → Chip-DWoGbX_A.js} +3 -3
  12. package/dist/{Chip-CxSFYy0c.js.map → Chip-DWoGbX_A.js.map} +1 -1
  13. package/dist/{ChipList-oMddO6fO.js → ChipList-ClC-BPyL.js} +4 -4
  14. package/dist/{ChipList-oMddO6fO.js.map → ChipList-ClC-BPyL.js.map} +1 -1
  15. package/dist/ColorPicker-x9fu3N4Y.js +183 -0
  16. package/dist/ColorPicker-x9fu3N4Y.js.map +1 -0
  17. package/dist/{ContextMenu-DUHmXf8f.js → ContextMenu-B8mGn0Fq.js} +5 -5
  18. package/dist/{ContextMenu-DUHmXf8f.js.map → ContextMenu-B8mGn0Fq.js.map} +1 -1
  19. package/dist/{ErrorMessage-C2FJLFsj.js → ErrorMessage-BRnYfudz.js} +3 -3
  20. package/dist/{ErrorMessage-C2FJLFsj.js.map → ErrorMessage-BRnYfudz.js.map} +1 -1
  21. package/dist/{Icon-RM-EqP7I.js → Icon-CV5fAqK7.js} +2 -2
  22. package/dist/{Icon-RM-EqP7I.js.map → Icon-CV5fAqK7.js.map} +1 -1
  23. package/dist/{IconButton-BUBVowPJ.js → IconButton-BkwXYUL1.js} +2 -2
  24. package/dist/{IconButton-BUBVowPJ.js.map → IconButton-BkwXYUL1.js.map} +1 -1
  25. package/dist/{InfoSummary-m9_WXlqI.js → InfoSummary-p7hgSIZn.js} +3 -3
  26. package/dist/{InfoSummary-m9_WXlqI.js.map → InfoSummary-p7hgSIZn.js.map} +1 -1
  27. package/dist/{Input-Cxr_P2wz.js → Input-Dam9Lbxf.js} +5 -5
  28. package/dist/{Input-Cxr_P2wz.js.map → Input-Dam9Lbxf.js.map} +1 -1
  29. package/dist/{Loader-CmESHuyP.js → Loader-DUqRFMzl.js} +2 -2
  30. package/dist/{Loader-CmESHuyP.js.map → Loader-DUqRFMzl.js.map} +1 -1
  31. package/dist/{MaskModule-eB4lPBKt.js → MaskModule-ChyYaHh2.js} +1 -1
  32. package/dist/{MaskModule-eB4lPBKt.js.map → MaskModule-ChyYaHh2.js.map} +1 -1
  33. package/dist/{Popover-zLDtSQAp.js → Popover-tzAZp6V7.js} +4 -4
  34. package/dist/{Popover-zLDtSQAp.js.map → Popover-tzAZp6V7.js.map} +1 -1
  35. package/dist/{Select-Dx1nMByo.js → Select-BR9OSXHF.js} +9 -8
  36. package/dist/{Select-Dx1nMByo.js.map → Select-BR9OSXHF.js.map} +1 -1
  37. package/dist/{Skeleton-BPFVMk3-.js → Skeleton-iCdZ2Gai.js} +2 -2
  38. package/dist/{Skeleton-BPFVMk3-.js.map → Skeleton-iCdZ2Gai.js.map} +1 -1
  39. package/dist/{Switch-DFIDbtUk.js → Switch-CiKBZRST.js} +2 -2
  40. package/dist/{Switch-DFIDbtUk.js.map → Switch-CiKBZRST.js.map} +1 -1
  41. package/dist/{TabSwitch-D0Y22fSa.js → TabSwitch-D6KaP0z5.js} +3 -3
  42. package/dist/{TabSwitch-D0Y22fSa.js.map → TabSwitch-D6KaP0z5.js.map} +1 -1
  43. package/dist/{TextArea-B0QQy0U5.js → TextArea-D9kGofdD.js} +4 -4
  44. package/dist/{TextArea-B0QQy0U5.js.map → TextArea-D9kGofdD.js.map} +1 -1
  45. package/dist/{ThemeContext-MrH1mMsc.js → ThemeContext-C9llUBqb.js} +1 -1
  46. package/dist/{ThemeContext-MrH1mMsc.js.map → ThemeContext-C9llUBqb.js.map} +1 -1
  47. package/dist/{Typography-3tAIdGuj.js → Typography-BTJk47bm.js} +2 -2
  48. package/dist/{Typography-3tAIdGuj.js.map → Typography-BTJk47bm.js.map} +1 -1
  49. package/dist/base-popover.d.ts +3 -3
  50. package/dist/base-popover.js +5 -5
  51. package/dist/breadcrumb.d.ts +1 -1
  52. package/dist/breadcrumb.js +4 -4
  53. package/dist/button.d.ts +2 -2
  54. package/dist/button.js +4 -4
  55. package/dist/check-item.d.ts +1 -1
  56. package/dist/check-item.js +4 -4
  57. package/dist/checkbox.d.ts +2 -2
  58. package/dist/checkbox.js +4 -4
  59. package/dist/chip-list.d.ts +1 -1
  60. package/dist/chip-list.js +5 -5
  61. package/dist/chip.d.ts +1 -1
  62. package/dist/chip.js +3 -3
  63. package/dist/color-picker.d.ts +2 -0
  64. package/dist/color-picker.js +7 -0
  65. package/dist/context-menu.d.ts +1 -1
  66. package/dist/context-menu.js +8 -8
  67. package/dist/icon-button.d.ts +1 -1
  68. package/dist/icon-button.js +2 -2
  69. package/dist/{index-DTWpYpA9.d.ts → index-B9Ooz6lk.d.ts} +4 -4
  70. package/dist/{index-DaxLlCt_.d.ts → index-B9PAov_V.d.ts} +2 -2
  71. package/dist/{index-Cb_tkhK8.d.ts → index-BEd1qAu7.d.ts} +1 -1
  72. package/dist/{index-CdTCwpWl.d.ts → index-BZ2ZYR1Y.d.ts} +2 -2
  73. package/dist/{index-C4wl7LMU.d.ts → index-B_xvhcYY.d.ts} +2 -2
  74. package/dist/{index-DR6lOsN7.d.ts → index-BbvC10jX.d.ts} +2 -2
  75. package/dist/{index-B97qvv5d.d.ts → index-BdXsHz33.d.ts} +4 -4
  76. package/dist/{index-C86jTuzO.d.ts → index-By2y-Zjz.d.ts} +2 -2
  77. package/dist/{index-CBppDr5R.d.ts → index-C2rKLkDO.d.ts} +1 -1
  78. package/dist/{index-DuwmDJgm.d.ts → index-CI9oUkku.d.ts} +4 -4
  79. package/dist/{index-pb46GNxT.d.ts → index-CJDqp_om.d.ts} +1 -1
  80. package/dist/{index-BS68Mp68.d.ts → index-CNPbAm9i.d.ts} +5 -5
  81. package/dist/index-DOnH4ePY.d.ts +75 -0
  82. package/dist/{index-DsuLq-mw.d.ts → index-DsQyEI6l.d.ts} +1 -1
  83. package/dist/{index-BQpj6_SN.d.ts → index-Du2b4ABa.d.ts} +3 -3
  84. package/dist/{index-B2PIaNMu.d.ts → index-DvbYyCcE.d.ts} +2 -2
  85. package/dist/{index-BsTs8mui.d.ts → index-IIjo6avX.d.ts} +1 -1
  86. package/dist/{index-BfVdqarn.d.ts → index-XBmzyFW4.d.ts} +2 -2
  87. package/dist/index.d.ts +22 -21
  88. package/dist/index.js +28 -27
  89. package/dist/info-summary.js +3 -3
  90. package/dist/input.d.ts +1 -1
  91. package/dist/input.js +6 -6
  92. package/dist/mask-modules.d.ts +1 -1
  93. package/dist/mask-modules.js +1 -1
  94. package/dist/popover.d.ts +2 -2
  95. package/dist/popover.js +4 -4
  96. package/dist/select.d.ts +2 -2
  97. package/dist/select.js +10 -10
  98. package/dist/skeleton.d.ts +1 -1
  99. package/dist/skeleton.js +2 -2
  100. package/dist/{styleProps-CntgA2bz.d.ts → styleProps-CrD6h1FM.d.ts} +1 -1
  101. package/dist/switch.d.ts +1 -1
  102. package/dist/switch.js +2 -2
  103. package/dist/tab-switch.d.ts +1 -1
  104. package/dist/tab-switch.js +3 -3
  105. package/dist/text-area.d.ts +1 -1
  106. package/dist/text-area.js +4 -4
  107. package/dist/theme-context.d.ts +1 -1
  108. package/dist/theme-context.js +1 -1
  109. package/dist/{types-DZ6gPTYT.d.ts → types-B-zFTnqe.d.ts} +3 -3
  110. package/dist/{types-DxP32BlE.d.ts → types-B4Yk1AUa.d.ts} +1 -1
  111. package/dist/{types-FwxL7aW5.d.ts → types-Cr3L1i9Q.d.ts} +1 -1
  112. package/dist/{types-NSbCuvRr.d.ts → types-n-gj1UXJ.d.ts} +3 -3
  113. package/dist/typography.d.ts +3 -3
  114. package/dist/typography.js +2 -2
  115. package/dist/use-dismiss.js +1 -1
  116. package/dist/use-floating.d.ts +1 -1
  117. package/dist/use-floating.js +1 -1
  118. package/dist/{useDismiss-b7_pOsxk.js → useDismiss-w2spkFNN.js} +1 -1
  119. package/dist/{useDismiss-b7_pOsxk.js.map → useDismiss-w2spkFNN.js.map} +1 -1
  120. package/dist/{useFloating-CS0qswZj.js → useFloating-BkMrolmn.js} +1 -1
  121. package/dist/{useFloating-CS0qswZj.js.map → useFloating-BkMrolmn.js.map} +1 -1
  122. package/dist/{useThemedStyles-ClPrd4wW.d.ts → useThemedStyles-0XwrILh9.d.ts} +1 -1
  123. package/dist/{useThemedStyles-BBJ_TF_l.js → useThemedStyles-CV4ryZLN.js} +1 -1
  124. package/dist/{useThemedStyles-BBJ_TF_l.js.map → useThemedStyles-CV4ryZLN.js.map} +1 -1
  125. package/package.json +5 -1
  126. /package/dist/{chunk-B5kfNaIQ.js → chunk-DBn-LkE6.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { i as PaddingProps, n as LayoutProps } from "./styleProps-CntgA2bz.js";
2
- import { i as TypeStyles } from "./useThemedStyles-ClPrd4wW.js";
3
- import { n as TypographyVariant } from "./types-NSbCuvRr.js";
1
+ import { i as PaddingProps, n as LayoutProps } from "./styleProps-CrD6h1FM.js";
2
+ import { i as TypeStyles } from "./useThemedStyles-0XwrILh9.js";
3
+ import { n as TypographyVariant } from "./types-n-gj1UXJ.js";
4
4
  import React, { MouseEvent, ReactNode } from "react";
5
5
 
6
6
  //#region src/components/commons/buttons/Button/styles.d.ts
@@ -121,4 +121,4 @@ interface ButtonProps extends PaddingProps, LayoutProps {
121
121
  declare const Button: React.FC<ButtonProps>;
122
122
  //#endregion
123
123
  export { Button as t };
124
- //# sourceMappingURL=index-DuwmDJgm.d.ts.map
124
+ //# sourceMappingURL=index-CI9oUkku.d.ts.map
@@ -294,4 +294,4 @@ declare const ThemeProvider: React.FC<ThemeProviderProps>;
294
294
  declare function useTheme(): ThemeContextData;
295
295
  //#endregion
296
296
  export { ThemeName as a, ThemeRegistry as c, ThemeMode as i, ThemeTokens as l, useTheme as n, ThemePersistence as o, ThemeContextData as r, ThemeProviderProps as s, ThemeProvider as t };
297
- //# sourceMappingURL=index-pb46GNxT.d.ts.map
297
+ //# sourceMappingURL=index-CJDqp_om.d.ts.map
@@ -1,7 +1,7 @@
1
- import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-CntgA2bz.js";
2
- import { r as StylesOf } from "./useThemedStyles-ClPrd4wW.js";
3
- import { t as FloatingOptions } from "./types-FwxL7aW5.js";
4
- import { t as PopoverProps } from "./types-DZ6gPTYT.js";
1
+ import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-CrD6h1FM.js";
2
+ import { r as StylesOf } from "./useThemedStyles-0XwrILh9.js";
3
+ import { t as FloatingOptions } from "./types-Cr3L1i9Q.js";
4
+ import { t as PopoverProps } from "./types-B-zFTnqe.js";
5
5
  import React$1 from "react";
6
6
 
7
7
  //#region src/components/commons/inputs/Select/styles.d.ts
@@ -84,4 +84,4 @@ interface SelectOption {
84
84
  declare const Select: React$1.FC<SelectProps>;
85
85
  //#endregion
86
86
  export { types_d_exports as n, Select as t };
87
- //# sourceMappingURL=index-BS68Mp68.d.ts.map
87
+ //# sourceMappingURL=index-CNPbAm9i.d.ts.map
@@ -0,0 +1,75 @@
1
+ import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-CrD6h1FM.js";
2
+ import { r as StylesOf } from "./useThemedStyles-0XwrILh9.js";
3
+
4
+ //#region src/components/commons/inputs/ColorPicker/styles.d.ts
5
+ declare function createColorPickerStyles(props: ColorPickerProps): {
6
+ container: {
7
+ width: string;
8
+ display: "flex";
9
+ flexDirection: "column";
10
+ rowGap: string;
11
+ };
12
+ content: {
13
+ width: string;
14
+ display: "flex";
15
+ alignItems: "center";
16
+ flexWrap: "wrap";
17
+ gap: string;
18
+ };
19
+ inputWrapper: {
20
+ width: string;
21
+ height: string;
22
+ cursor: "pointer";
23
+ overflow: "hidden";
24
+ position: "relative";
25
+ borderWidth: number;
26
+ borderColor: "var(--px-border-primary)";
27
+ borderRadius: string;
28
+ outlineOffset: string;
29
+ outline: string;
30
+ background: string;
31
+ __rules: {
32
+ '&:focus-within': {
33
+ outlineOffset: string;
34
+ outline: string;
35
+ };
36
+ };
37
+ };
38
+ nativeInput: {
39
+ width: string;
40
+ height: string;
41
+ position: "absolute";
42
+ inset: number;
43
+ opacity: number;
44
+ border: string;
45
+ cursor: "pointer";
46
+ };
47
+ };
48
+ declare namespace types_d_exports {
49
+ export { ColorOption, ColorPickerProps };
50
+ }
51
+ interface ColorPickerProps extends LayoutProps, MarginProps {
52
+ id?: string;
53
+ label: string;
54
+ value: ColorOption;
55
+ options: ColorOption[];
56
+ size?: string;
57
+ required?: boolean;
58
+ disabled?: boolean;
59
+ hideLabel?: boolean;
60
+ errorMessage?: string;
61
+ canPickCustom?: boolean;
62
+ isLoading?: boolean;
63
+ borderRadius?: string;
64
+ requiredColor?: string;
65
+ labelConfig?: TextProps;
66
+ styles?: StylesOf<typeof createColorPickerStyles>;
67
+ onChange: (value: string) => void;
68
+ }
69
+ type ColorOption = `#${string}`;
70
+ //#endregion
71
+ //#region src/components/commons/inputs/ColorPicker/index.d.ts
72
+ declare const ColorPicker: React.FC<ColorPickerProps>;
73
+ //#endregion
74
+ export { types_d_exports as n, ColorPicker as t };
75
+ //# sourceMappingURL=index-DOnH4ePY.d.ts.map
@@ -49,4 +49,4 @@ type IconButtonVariant = 'filled' | 'outlined' | 'ghost';
49
49
  declare const IconButton: React.FC<IconButtonProps>;
50
50
  //#endregion
51
51
  export { IconButton as t };
52
- //# sourceMappingURL=index-DsuLq-mw.d.ts.map
52
+ //# sourceMappingURL=index-DsQyEI6l.d.ts.map
@@ -1,5 +1,5 @@
1
- import { a as TextProps } from "./styleProps-CntgA2bz.js";
2
- import { t as ChipOption } from "./types-DxP32BlE.js";
1
+ import { a as TextProps } from "./styleProps-CrD6h1FM.js";
2
+ import { t as ChipOption } from "./types-B4Yk1AUa.js";
3
3
  import React from "react";
4
4
 
5
5
  //#region src/components/commons/toolkit/ChipList/types.d.ts
@@ -24,4 +24,4 @@ interface ChipListProps {
24
24
  declare const ChipList: React.FC<ChipListProps>;
25
25
  //#endregion
26
26
  export { ChipList as t };
27
- //# sourceMappingURL=index-BQpj6_SN.d.ts.map
27
+ //# sourceMappingURL=index-Du2b4ABa.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as PopoverProps } from "./types-DZ6gPTYT.js";
1
+ import { t as PopoverProps } from "./types-B-zFTnqe.js";
2
2
  import React, { PropsWithChildren } from "react";
3
3
 
4
4
  //#region src/components/commons/structure/BasePopover/types.d.ts
@@ -19,4 +19,4 @@ interface BasePopoverProps extends Omit<PopoverProps, 'content' | 'hideShadow'>,
19
19
  declare const BasePopover: React.FC<BasePopoverProps>;
20
20
  //#endregion
21
21
  export { BasePopover as t };
22
- //# sourceMappingURL=index-B2PIaNMu.d.ts.map
22
+ //# sourceMappingURL=index-DvbYyCcE.d.ts.map
@@ -10,4 +10,4 @@ interface CheckItemProps {
10
10
  declare const CheckItem: React.FC<CheckItemProps>;
11
11
  //#endregion
12
12
  export { CheckItem as t };
13
- //# sourceMappingURL=index-BsTs8mui.d.ts.map
13
+ //# sourceMappingURL=index-IIjo6avX.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as StyleMap } from "./useThemedStyles-ClPrd4wW.js";
1
+ import { n as StyleMap } from "./useThemedStyles-0XwrILh9.js";
2
2
  import React$1 from "react";
3
3
 
4
4
  //#region src/components/commons/structure/Breadcrumb/styles.d.ts
@@ -26,4 +26,4 @@ interface PageOption {
26
26
  declare const Breadcrumb: React$1.FC<BreadcrumbProps>;
27
27
  //#endregion
28
28
  export { Breadcrumb as t };
29
- //# sourceMappingURL=index-BfVdqarn.d.ts.map
29
+ //# sourceMappingURL=index-XBmzyFW4.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,27 +1,28 @@
1
- import "./types-NSbCuvRr.js";
2
- import { t as Button } from "./index-DuwmDJgm.js";
3
- import { t as IconButton } from "./index-DsuLq-mw.js";
4
- import { n as Locale, r as MaskType, t as MaskModule } from "./index-CBppDr5R.js";
5
- import { t as Input } from "./index-DTWpYpA9.js";
6
- import { n as types_d_exports$3, t as Select } from "./index-BS68Mp68.js";
7
- import { n as types_d_exports$2 } from "./types-DZ6gPTYT.js";
8
- import { t as TextArea } from "./index-B97qvv5d.js";
9
- import { t as Popover } from "./index-DR6lOsN7.js";
10
- import { t as BasePopover } from "./index-B2PIaNMu.js";
11
- import { t as Breadcrumb } from "./index-BfVdqarn.js";
12
- import { t as Skeleton } from "./index-DaxLlCt_.js";
13
- import { t as CheckItem } from "./index-BsTs8mui.js";
14
- import { t as Checkbox } from "./index-C86jTuzO.js";
15
- import { r as types_d_exports } from "./types-DxP32BlE.js";
1
+ import "./types-n-gj1UXJ.js";
2
+ import { t as Button } from "./index-CI9oUkku.js";
3
+ import { t as IconButton } from "./index-DsQyEI6l.js";
4
+ import { n as types_d_exports$1, t as ColorPicker } from "./index-DOnH4ePY.js";
5
+ import { n as Locale, r as MaskType, t as MaskModule } from "./index-C2rKLkDO.js";
6
+ import { t as Input } from "./index-B9Ooz6lk.js";
7
+ import { n as types_d_exports$4, t as Select } from "./index-CNPbAm9i.js";
8
+ import { n as types_d_exports$3 } from "./types-B-zFTnqe.js";
9
+ import { t as TextArea } from "./index-BdXsHz33.js";
10
+ import { t as Popover } from "./index-BbvC10jX.js";
11
+ import { t as BasePopover } from "./index-DvbYyCcE.js";
12
+ import { t as Breadcrumb } from "./index-XBmzyFW4.js";
13
+ import { t as Skeleton } from "./index-B9PAov_V.js";
14
+ import { t as CheckItem } from "./index-IIjo6avX.js";
15
+ import { t as Checkbox } from "./index-By2y-Zjz.js";
16
+ import { r as types_d_exports } from "./types-B4Yk1AUa.js";
16
17
  import { Chip } from "./chip.js";
17
- import { t as ChipList } from "./index-BQpj6_SN.js";
18
- import { n as types_d_exports$1, t as ContextMenu } from "./index-C4wl7LMU.js";
18
+ import { t as ChipList } from "./index-Du2b4ABa.js";
19
+ import { n as types_d_exports$2, t as ContextMenu } from "./index-B_xvhcYY.js";
19
20
  import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
20
- import { t as Switch } from "./index-Cb_tkhK8.js";
21
- import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-CdTCwpWl.js";
21
+ import { t as Switch } from "./index-BEd1qAu7.js";
22
+ import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-BZ2ZYR1Y.js";
22
23
  import { Typography } from "./typography.js";
23
- 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-pb46GNxT.js";
24
+ 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-CJDqp_om.js";
24
25
  import { useDismiss } from "./use-dismiss.js";
25
26
  import { AnchorLike, useFloating } from "./use-floating.js";
26
27
  import { useVirtualAnchor } from "./use-virtual-anchor.js";
27
- export { AnchorLike, BasePopover, Breadcrumb, Button, CheckItem, Checkbox, Chip, ChipList, types_d_exports as ChipTypes, ContextMenu, types_d_exports$1 as ContextMenuTypes, IconButton, InfoSummary, InfoSummaryItem, InfoSummaryProps, Input, Locale, MaskModule, MaskType, Popover, types_d_exports$2 as PopoverTypes, Select, types_d_exports$3 as SelectTypes, Skeleton, Switch, SwitchOption, TabSwitch, TabSwitchProps, TextArea, ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
28
+ export { AnchorLike, BasePopover, Breadcrumb, Button, CheckItem, Checkbox, Chip, ChipList, types_d_exports as ChipTypes, ColorPicker, types_d_exports$1 as ColorPickerTypes, ContextMenu, types_d_exports$2 as ContextMenuTypes, IconButton, InfoSummary, InfoSummaryItem, InfoSummaryProps, Input, Locale, MaskModule, MaskType, Popover, types_d_exports$3 as PopoverTypes, Select, types_d_exports$4 as SelectTypes, Skeleton, Switch, SwitchOption, TabSwitch, TabSwitchProps, TextArea, ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
package/dist/index.js CHANGED
@@ -1,29 +1,30 @@
1
- import "./useThemedStyles-BBJ_TF_l.js";
2
- import { t as Switch } from "./Switch-DFIDbtUk.js";
3
- import { t as useDismiss } from "./useDismiss-b7_pOsxk.js";
4
- import { t as useFloating } from "./useFloating-CS0qswZj.js";
5
- import { n as types_exports$2, t as Popover } from "./Popover-zLDtSQAp.js";
6
- import "./Icon-RM-EqP7I.js";
7
- import { t as Typography } from "./Typography-3tAIdGuj.js";
8
- import { t as Checkbox } from "./Checkbox-CsSo3vk0.js";
9
- import { n as useTheme, t as ThemeProvider } from "./ThemeContext-MrH1mMsc.js";
10
- import { t as TabSwitch } from "./TabSwitch-D0Y22fSa.js";
11
- import { t as CheckItem } from "./CheckItem-B5O_5_Qd.js";
12
- import { t as InfoSummary } from "./InfoSummary-m9_WXlqI.js";
13
- import { t as BasePopover } from "./BasePopover-BYa7SBXE.js";
14
- import { n as types_exports$1, t as ContextMenu } from "./ContextMenu-DUHmXf8f.js";
15
- import { n as types_exports, t as Chip } from "./Chip-CxSFYy0c.js";
16
- import "./ErrorMessage-C2FJLFsj.js";
17
- import { t as ChipList } from "./ChipList-oMddO6fO.js";
18
- import "./Loader-CmESHuyP.js";
19
- import { t as Button } from "./Button-BVxsixz_.js";
20
- import { t as IconButton } from "./IconButton-BUBVowPJ.js";
21
- import { n as MaskType, r as MaskModule, t as Locale } from "./MaskModule-eB4lPBKt.js";
22
- import { t as Input } from "./Input-Cxr_P2wz.js";
23
- import { n as types_exports$3, t as Select } from "./Select-Dx1nMByo.js";
24
- import { t as TextArea } from "./TextArea-B0QQy0U5.js";
25
- import { t as Skeleton } from "./Skeleton-BPFVMk3-.js";
1
+ import "./useThemedStyles-CV4ryZLN.js";
2
+ import { t as Switch } from "./Switch-CiKBZRST.js";
3
+ import { t as useDismiss } from "./useDismiss-w2spkFNN.js";
4
+ import { t as useFloating } from "./useFloating-BkMrolmn.js";
5
+ import { n as types_exports$3, t as Popover } from "./Popover-tzAZp6V7.js";
6
+ import "./Icon-CV5fAqK7.js";
7
+ import { t as Typography } from "./Typography-BTJk47bm.js";
8
+ import { t as Checkbox } from "./Checkbox-aFsrig0i.js";
9
+ import { n as useTheme, t as ThemeProvider } from "./ThemeContext-C9llUBqb.js";
10
+ import { t as TabSwitch } from "./TabSwitch-D6KaP0z5.js";
11
+ import { t as CheckItem } from "./CheckItem-3d-2-qZe.js";
12
+ import { t as InfoSummary } from "./InfoSummary-p7hgSIZn.js";
13
+ import { t as BasePopover } from "./BasePopover-m1OfX3fO.js";
14
+ import { n as types_exports$2, t as ContextMenu } from "./ContextMenu-B8mGn0Fq.js";
15
+ import { n as types_exports, t as Chip } from "./Chip-DWoGbX_A.js";
16
+ import "./ErrorMessage-BRnYfudz.js";
17
+ import { t as ChipList } from "./ChipList-ClC-BPyL.js";
18
+ import "./Loader-DUqRFMzl.js";
19
+ import { t as Button } from "./Button-Vm1Odbi_.js";
20
+ import { t as IconButton } from "./IconButton-BkwXYUL1.js";
21
+ import { n as MaskType, r as MaskModule, t as Locale } from "./MaskModule-ChyYaHh2.js";
22
+ import { t as Input } from "./Input-Dam9Lbxf.js";
23
+ import { n as types_exports$4, t as Select } from "./Select-BR9OSXHF.js";
24
+ import { t as TextArea } from "./TextArea-D9kGofdD.js";
25
+ import { n as types_exports$1, t as ColorPicker } from "./ColorPicker-x9fu3N4Y.js";
26
+ import { t as Skeleton } from "./Skeleton-iCdZ2Gai.js";
26
27
  import { useVirtualAnchor } from "./use-virtual-anchor.js";
27
- import { t as Breadcrumb } from "./Breadcrumb-BLu27RXT.js";
28
+ import { t as Breadcrumb } from "./Breadcrumb-Bm9YuwCq.js";
28
29
 
29
- export { BasePopover, Breadcrumb, Button, CheckItem, Checkbox, Chip, ChipList, types_exports as ChipTypes, ContextMenu, types_exports$1 as ContextMenuTypes, IconButton, InfoSummary, Input, Locale, MaskModule, MaskType, Popover, types_exports$2 as PopoverTypes, Select, types_exports$3 as SelectTypes, Skeleton, Switch, TabSwitch, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
30
+ export { BasePopover, Breadcrumb, Button, CheckItem, Checkbox, Chip, ChipList, types_exports as ChipTypes, ColorPicker, types_exports$1 as ColorPickerTypes, ContextMenu, types_exports$2 as ContextMenuTypes, IconButton, InfoSummary, Input, Locale, MaskModule, MaskType, Popover, types_exports$3 as PopoverTypes, Select, types_exports$4 as SelectTypes, Skeleton, Switch, TabSwitch, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
@@ -1,5 +1,5 @@
1
- import "./useThemedStyles-BBJ_TF_l.js";
2
- import "./Typography-3tAIdGuj.js";
3
- import { t as InfoSummary } from "./InfoSummary-m9_WXlqI.js";
1
+ import "./useThemedStyles-CV4ryZLN.js";
2
+ import "./Typography-BTJk47bm.js";
3
+ import { t as InfoSummary } from "./InfoSummary-p7hgSIZn.js";
4
4
 
5
5
  export { InfoSummary };
package/dist/input.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Input } from "./index-DTWpYpA9.js";
1
+ import { t as Input } from "./index-B9Ooz6lk.js";
2
2
  export { Input };
package/dist/input.js CHANGED
@@ -1,8 +1,8 @@
1
- import "./useThemedStyles-BBJ_TF_l.js";
2
- import "./Icon-RM-EqP7I.js";
3
- import "./Typography-3tAIdGuj.js";
4
- import "./ErrorMessage-C2FJLFsj.js";
5
- import "./MaskModule-eB4lPBKt.js";
6
- import { t as Input } from "./Input-Cxr_P2wz.js";
1
+ import "./useThemedStyles-CV4ryZLN.js";
2
+ import "./Icon-CV5fAqK7.js";
3
+ import "./Typography-BTJk47bm.js";
4
+ import "./ErrorMessage-BRnYfudz.js";
5
+ import "./MaskModule-ChyYaHh2.js";
6
+ import { t as Input } from "./Input-Dam9Lbxf.js";
7
7
 
8
8
  export { Input };
@@ -1,2 +1,2 @@
1
- import { n as Locale, r as MaskType, t as MaskModule } from "./index-CBppDr5R.js";
1
+ import { n as Locale, r as MaskType, t as MaskModule } from "./index-C2rKLkDO.js";
2
2
  export { Locale, MaskModule, MaskType };
@@ -1,3 +1,3 @@
1
- import { n as MaskType, r as MaskModule, t as Locale } from "./MaskModule-eB4lPBKt.js";
1
+ import { n as MaskType, r as MaskModule, t as Locale } from "./MaskModule-ChyYaHh2.js";
2
2
 
3
3
  export { Locale, MaskModule, MaskType };
package/dist/popover.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { n as types_d_exports } from "./types-DZ6gPTYT.js";
2
- import { t as Popover } from "./index-DR6lOsN7.js";
1
+ import { n as types_d_exports } from "./types-B-zFTnqe.js";
2
+ import { t as Popover } from "./index-BbvC10jX.js";
3
3
  export { Popover, types_d_exports as PopoverTypes };
package/dist/popover.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./useThemedStyles-BBJ_TF_l.js";
2
- import "./useDismiss-b7_pOsxk.js";
3
- import "./useFloating-CS0qswZj.js";
4
- import { n as types_exports, t as Popover } from "./Popover-zLDtSQAp.js";
1
+ import "./useThemedStyles-CV4ryZLN.js";
2
+ import "./useDismiss-w2spkFNN.js";
3
+ import "./useFloating-BkMrolmn.js";
4
+ import { n as types_exports, t as Popover } from "./Popover-tzAZp6V7.js";
5
5
 
6
6
  export { Popover, types_exports as PopoverTypes };
package/dist/select.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { n as types_d_exports, t as Select } from "./index-BS68Mp68.js";
2
- import "./types-DZ6gPTYT.js";
1
+ import { n as types_d_exports, t as Select } from "./index-CNPbAm9i.js";
2
+ import "./types-B-zFTnqe.js";
3
3
  export { Select, types_d_exports as SelectTypes };
package/dist/select.js CHANGED
@@ -1,12 +1,12 @@
1
- import "./useThemedStyles-BBJ_TF_l.js";
2
- import "./useDismiss-b7_pOsxk.js";
3
- import "./useFloating-CS0qswZj.js";
4
- import "./Popover-zLDtSQAp.js";
5
- import "./Icon-RM-EqP7I.js";
6
- import "./Typography-3tAIdGuj.js";
7
- import "./BasePopover-BYa7SBXE.js";
8
- import "./ErrorMessage-C2FJLFsj.js";
9
- import "./Loader-CmESHuyP.js";
10
- import { n as types_exports, t as Select } from "./Select-Dx1nMByo.js";
1
+ import "./useThemedStyles-CV4ryZLN.js";
2
+ import "./useDismiss-w2spkFNN.js";
3
+ import "./useFloating-BkMrolmn.js";
4
+ import "./Popover-tzAZp6V7.js";
5
+ import "./Icon-CV5fAqK7.js";
6
+ import "./Typography-BTJk47bm.js";
7
+ import "./BasePopover-m1OfX3fO.js";
8
+ import "./ErrorMessage-BRnYfudz.js";
9
+ import "./Loader-DUqRFMzl.js";
10
+ import { n as types_exports, t as Select } from "./Select-BR9OSXHF.js";
11
11
 
12
12
  export { Select, types_exports as SelectTypes };
@@ -1,2 +1,2 @@
1
- import { t as Skeleton } from "./index-DaxLlCt_.js";
1
+ import { t as Skeleton } from "./index-B9PAov_V.js";
2
2
  export { Skeleton };
package/dist/skeleton.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./useThemedStyles-BBJ_TF_l.js";
2
- import { t as Skeleton } from "./Skeleton-BPFVMk3-.js";
1
+ import "./useThemedStyles-CV4ryZLN.js";
2
+ import { t as Skeleton } from "./Skeleton-iCdZ2Gai.js";
3
3
 
4
4
  export { Skeleton };
@@ -44,4 +44,4 @@ interface LayoutProps {
44
44
  type CommonStyleProps = MarginProps & PaddingProps & TextProps & LayoutProps;
45
45
  //#endregion
46
46
  export { TextProps as a, PaddingProps as i, LayoutProps as n, MarginProps as r, CommonStyleProps as t };
47
- //# sourceMappingURL=styleProps-CntgA2bz.d.ts.map
47
+ //# sourceMappingURL=styleProps-CrD6h1FM.d.ts.map
package/dist/switch.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Switch } from "./index-Cb_tkhK8.js";
1
+ import { t as Switch } from "./index-BEd1qAu7.js";
2
2
  export { Switch };
package/dist/switch.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./useThemedStyles-BBJ_TF_l.js";
2
- import { t as Switch } from "./Switch-DFIDbtUk.js";
1
+ import "./useThemedStyles-CV4ryZLN.js";
2
+ import { t as Switch } from "./Switch-CiKBZRST.js";
3
3
 
4
4
  export { Switch };
@@ -1,2 +1,2 @@
1
- import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-CdTCwpWl.js";
1
+ import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-BZ2ZYR1Y.js";
2
2
  export { SwitchOption, TabSwitch, TabSwitchProps };
@@ -1,5 +1,5 @@
1
- import "./useThemedStyles-BBJ_TF_l.js";
2
- import "./Typography-3tAIdGuj.js";
3
- import { t as TabSwitch } from "./TabSwitch-D0Y22fSa.js";
1
+ import "./useThemedStyles-CV4ryZLN.js";
2
+ import "./Typography-BTJk47bm.js";
3
+ import { t as TabSwitch } from "./TabSwitch-D6KaP0z5.js";
4
4
 
5
5
  export { TabSwitch };
@@ -1,2 +1,2 @@
1
- import { t as TextArea } from "./index-B97qvv5d.js";
1
+ import { t as TextArea } from "./index-BdXsHz33.js";
2
2
  export { TextArea };
package/dist/text-area.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./useThemedStyles-BBJ_TF_l.js";
2
- import "./Typography-3tAIdGuj.js";
3
- import "./ErrorMessage-C2FJLFsj.js";
4
- import { t as TextArea } from "./TextArea-B0QQy0U5.js";
1
+ import "./useThemedStyles-CV4ryZLN.js";
2
+ import "./Typography-BTJk47bm.js";
3
+ import "./ErrorMessage-BRnYfudz.js";
4
+ import { t as TextArea } from "./TextArea-D9kGofdD.js";
5
5
 
6
6
  export { TextArea };
@@ -1,2 +1,2 @@
1
- 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-pb46GNxT.js";
1
+ 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-CJDqp_om.js";
2
2
  export { ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, useTheme };
@@ -1,5 +1,5 @@
1
1
  'use client';
2
2
 
3
- import { n as useTheme, t as ThemeProvider } from "./ThemeContext-MrH1mMsc.js";
3
+ import { n as useTheme, t as ThemeProvider } from "./ThemeContext-C9llUBqb.js";
4
4
 
5
5
  export { ThemeProvider, useTheme };
@@ -1,5 +1,5 @@
1
- import { i as PaddingProps } from "./styleProps-CntgA2bz.js";
2
- import { t as FloatingOptions } from "./types-FwxL7aW5.js";
1
+ import { i as PaddingProps } from "./styleProps-CrD6h1FM.js";
2
+ import { t as FloatingOptions } from "./types-Cr3L1i9Q.js";
3
3
  import { MouseEvent, MouseEventHandler, ReactNode, RefObject } from "react";
4
4
 
5
5
  //#region src/components/commons/toolkit/Popover/styles.d.ts
@@ -54,4 +54,4 @@ interface PopoverProps extends PaddingProps {
54
54
  }
55
55
  //#endregion
56
56
  export { types_d_exports as n, PopoverProps as t };
57
- //# sourceMappingURL=types-DZ6gPTYT.d.ts.map
57
+ //# sourceMappingURL=types-B-zFTnqe.d.ts.map
@@ -16,4 +16,4 @@ interface ChipOption {
16
16
  }
17
17
  //#endregion
18
18
  export { ChipProps as n, types_d_exports as r, ChipOption as t };
19
- //# sourceMappingURL=types-DxP32BlE.d.ts.map
19
+ //# sourceMappingURL=types-B4Yk1AUa.d.ts.map
@@ -15,4 +15,4 @@ type FloatingOptions = {
15
15
  };
16
16
  //#endregion
17
17
  export { Placement as n, FloatingOptions as t };
18
- //# sourceMappingURL=types-FwxL7aW5.d.ts.map
18
+ //# sourceMappingURL=types-Cr3L1i9Q.d.ts.map
@@ -1,5 +1,5 @@
1
- import { a as TextProps, r as MarginProps } from "./styleProps-CntgA2bz.js";
2
- import { i as TypeStyles, t as SlotStyle } from "./useThemedStyles-ClPrd4wW.js";
1
+ import { a as TextProps, r as MarginProps } from "./styleProps-CrD6h1FM.js";
2
+ import { i as TypeStyles, t as SlotStyle } from "./useThemedStyles-0XwrILh9.js";
3
3
  import { ElementType, ReactNode } from "react";
4
4
 
5
5
  //#region src/components/commons/toolkit/Typography/style.d.ts
@@ -40,4 +40,4 @@ type TextAlign = 'left' | 'center' | 'right' | 'justify';
40
40
  type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'b1' | 'b2' | 'b3' | 'caption' | 'legal';
41
41
  //#endregion
42
42
  export { TypographyVariant as n, TypographyProps as t };
43
- //# sourceMappingURL=types-NSbCuvRr.d.ts.map
43
+ //# sourceMappingURL=types-n-gj1UXJ.d.ts.map
@@ -1,8 +1,8 @@
1
- import { t as TypographyProps } from "./types-NSbCuvRr.js";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import { t as TypographyProps } from "./types-n-gj1UXJ.js";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/commons/toolkit/Typography/index.d.ts
5
- declare function Typography(props: TypographyProps): react_jsx_runtime0.JSX.Element;
5
+ declare function Typography(props: TypographyProps): react_jsx_runtime1.JSX.Element;
6
6
  //#endregion
7
7
  export { Typography };
8
8
  //# sourceMappingURL=typography.d.ts.map
@@ -1,4 +1,4 @@
1
- import "./useThemedStyles-BBJ_TF_l.js";
2
- import { t as Typography } from "./Typography-3tAIdGuj.js";
1
+ import "./useThemedStyles-CV4ryZLN.js";
2
+ import { t as Typography } from "./Typography-BTJk47bm.js";
3
3
 
4
4
  export { Typography };
@@ -1,3 +1,3 @@
1
- import { t as useDismiss } from "./useDismiss-b7_pOsxk.js";
1
+ import { t as useDismiss } from "./useDismiss-w2spkFNN.js";
2
2
 
3
3
  export { useDismiss };
@@ -1,4 +1,4 @@
1
- import { t as FloatingOptions } from "./types-FwxL7aW5.js";
1
+ import { t as FloatingOptions } from "./types-Cr3L1i9Q.js";
2
2
 
3
3
  //#region src/hooks/useFloating/index.d.ts
4
4
  type AnchorLike = {
@@ -1,3 +1,3 @@
1
- import { t as useFloating } from "./useFloating-CS0qswZj.js";
1
+ import { t as useFloating } from "./useFloating-BkMrolmn.js";
2
2
 
3
3
  export { useFloating };
@@ -39,4 +39,4 @@ function useDismiss({ open, refs, dismissScope, closeOnEscape = true, closeOnOut
39
39
 
40
40
  //#endregion
41
41
  export { useDismiss as t };
42
- //# sourceMappingURL=useDismiss-b7_pOsxk.js.map
42
+ //# sourceMappingURL=useDismiss-w2spkFNN.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDismiss-b7_pOsxk.js","names":[],"sources":["../src/hooks/useDismiss/index.ts"],"sourcesContent":["import { type RefObject, useEffect } from 'react'\n\ntype UseDismissParams = {\n open: boolean\n dismissScope?: string\n closeOnEscape?: boolean\n closeOnOutsideClick?: boolean\n refs: Array<RefObject<HTMLElement | null>>\n onClose: () => void\n}\n\nexport function useDismiss({\n open,\n refs,\n dismissScope,\n closeOnEscape = true,\n closeOnOutsideClick = true,\n onClose\n}: UseDismissParams) {\n useEffect(() => {\n if (!open) return\n\n const isInsideSomeRef = (node: Node) =>\n refs.some(r => r.current?.contains(node))\n\n const isInsideScope = (target: EventTarget | null) => {\n if (!dismissScope) return false\n if (!(target instanceof Element)) return false\n return !!target.closest?.(`[data-dismiss-scope=\"${dismissScope}\"]`)\n }\n\n const onPointerDownCapture = (e: PointerEvent) => {\n if (!closeOnOutsideClick) return\n const t = e.target as Node\n\n if (isInsideScope(e.target)) return\n\n if (isInsideSomeRef(t)) return\n\n onClose()\n }\n\n const onKeyDown = (e: KeyboardEvent) => {\n if (!closeOnEscape) return\n if (e.key === 'Escape') onClose()\n }\n\n document.addEventListener('pointerdown', onPointerDownCapture, true)\n document.addEventListener('keydown', onKeyDown)\n\n return () => {\n document.removeEventListener('pointerdown', onPointerDownCapture, true)\n document.removeEventListener('keydown', onKeyDown)\n }\n }, [open, onClose, refs, closeOnOutsideClick, closeOnEscape, dismissScope])\n}\n"],"mappings":";;;AAWA,SAAgB,WAAW,EACzB,MACA,MACA,cACA,gBAAgB,MAChB,sBAAsB,MACtB,WACmB;AACnB,iBAAgB;AACd,MAAI,CAAC,KAAM;EAEX,MAAM,mBAAmB,SACvB,KAAK,MAAK,MAAK,EAAE,SAAS,SAAS,KAAK,CAAC;EAE3C,MAAM,iBAAiB,WAA+B;AACpD,OAAI,CAAC,aAAc,QAAO;AAC1B,OAAI,EAAE,kBAAkB,SAAU,QAAO;AACzC,UAAO,CAAC,CAAC,OAAO,UAAU,wBAAwB,aAAa,IAAI;;EAGrE,MAAM,wBAAwB,MAAoB;AAChD,OAAI,CAAC,oBAAqB;GAC1B,MAAM,IAAI,EAAE;AAEZ,OAAI,cAAc,EAAE,OAAO,CAAE;AAE7B,OAAI,gBAAgB,EAAE,CAAE;AAExB,YAAS;;EAGX,MAAM,aAAa,MAAqB;AACtC,OAAI,CAAC,cAAe;AACpB,OAAI,EAAE,QAAQ,SAAU,UAAS;;AAGnC,WAAS,iBAAiB,eAAe,sBAAsB,KAAK;AACpE,WAAS,iBAAiB,WAAW,UAAU;AAE/C,eAAa;AACX,YAAS,oBAAoB,eAAe,sBAAsB,KAAK;AACvE,YAAS,oBAAoB,WAAW,UAAU;;IAEnD;EAAC;EAAM;EAAS;EAAM;EAAqB;EAAe;EAAa,CAAC"}
1
+ {"version":3,"file":"useDismiss-w2spkFNN.js","names":[],"sources":["../src/hooks/useDismiss/index.ts"],"sourcesContent":["import { type RefObject, useEffect } from 'react'\n\ntype UseDismissParams = {\n open: boolean\n dismissScope?: string\n closeOnEscape?: boolean\n closeOnOutsideClick?: boolean\n refs: Array<RefObject<HTMLElement | null>>\n onClose: () => void\n}\n\nexport function useDismiss({\n open,\n refs,\n dismissScope,\n closeOnEscape = true,\n closeOnOutsideClick = true,\n onClose\n}: UseDismissParams) {\n useEffect(() => {\n if (!open) return\n\n const isInsideSomeRef = (node: Node) =>\n refs.some(r => r.current?.contains(node))\n\n const isInsideScope = (target: EventTarget | null) => {\n if (!dismissScope) return false\n if (!(target instanceof Element)) return false\n return !!target.closest?.(`[data-dismiss-scope=\"${dismissScope}\"]`)\n }\n\n const onPointerDownCapture = (e: PointerEvent) => {\n if (!closeOnOutsideClick) return\n const t = e.target as Node\n\n if (isInsideScope(e.target)) return\n\n if (isInsideSomeRef(t)) return\n\n onClose()\n }\n\n const onKeyDown = (e: KeyboardEvent) => {\n if (!closeOnEscape) return\n if (e.key === 'Escape') onClose()\n }\n\n document.addEventListener('pointerdown', onPointerDownCapture, true)\n document.addEventListener('keydown', onKeyDown)\n\n return () => {\n document.removeEventListener('pointerdown', onPointerDownCapture, true)\n document.removeEventListener('keydown', onKeyDown)\n }\n }, [open, onClose, refs, closeOnOutsideClick, closeOnEscape, dismissScope])\n}\n"],"mappings":";;;AAWA,SAAgB,WAAW,EACzB,MACA,MACA,cACA,gBAAgB,MAChB,sBAAsB,MACtB,WACmB;AACnB,iBAAgB;AACd,MAAI,CAAC,KAAM;EAEX,MAAM,mBAAmB,SACvB,KAAK,MAAK,MAAK,EAAE,SAAS,SAAS,KAAK,CAAC;EAE3C,MAAM,iBAAiB,WAA+B;AACpD,OAAI,CAAC,aAAc,QAAO;AAC1B,OAAI,EAAE,kBAAkB,SAAU,QAAO;AACzC,UAAO,CAAC,CAAC,OAAO,UAAU,wBAAwB,aAAa,IAAI;;EAGrE,MAAM,wBAAwB,MAAoB;AAChD,OAAI,CAAC,oBAAqB;GAC1B,MAAM,IAAI,EAAE;AAEZ,OAAI,cAAc,EAAE,OAAO,CAAE;AAE7B,OAAI,gBAAgB,EAAE,CAAE;AAExB,YAAS;;EAGX,MAAM,aAAa,MAAqB;AACtC,OAAI,CAAC,cAAe;AACpB,OAAI,EAAE,QAAQ,SAAU,UAAS;;AAGnC,WAAS,iBAAiB,eAAe,sBAAsB,KAAK;AACpE,WAAS,iBAAiB,WAAW,UAAU;AAE/C,eAAa;AACX,YAAS,oBAAoB,eAAe,sBAAsB,KAAK;AACvE,YAAS,oBAAoB,WAAW,UAAU;;IAEnD;EAAC;EAAM;EAAS;EAAM;EAAqB;EAAe;EAAa,CAAC"}
@@ -314,4 +314,4 @@ function useFloating(targetRef, options) {
314
314
 
315
315
  //#endregion
316
316
  export { useFloating as t };
317
- //# sourceMappingURL=useFloating-CS0qswZj.js.map
317
+ //# sourceMappingURL=useFloating-BkMrolmn.js.map