softable-pixels-web 1.2.3 → 1.2.5

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 (138) hide show
  1. package/dist/{BasePopover-m1OfX3fO.js → BasePopover-Bcy5d1t5.js} +4 -4
  2. package/dist/BasePopover-Bcy5d1t5.js.map +1 -0
  3. package/dist/{Breadcrumb-Bm9YuwCq.js → Breadcrumb-Doo-Ajul.js} +4 -4
  4. package/dist/{Breadcrumb-Bm9YuwCq.js.map → Breadcrumb-Doo-Ajul.js.map} +1 -1
  5. package/dist/{Button-BgsYjAC1.js → Button-DSMdOqri.js} +4 -4
  6. package/dist/{Button-BgsYjAC1.js.map → Button-DSMdOqri.js.map} +1 -1
  7. package/dist/{CheckItem-3d-2-qZe.js → CheckItem-CHkw5t6c.js} +4 -4
  8. package/dist/{CheckItem-3d-2-qZe.js.map → CheckItem-CHkw5t6c.js.map} +1 -1
  9. package/dist/{Checkbox-aFsrig0i.js → Checkbox-DU8VoDgU.js} +4 -4
  10. package/dist/{Checkbox-aFsrig0i.js.map → Checkbox-DU8VoDgU.js.map} +1 -1
  11. package/dist/{Chip-DWoGbX_A.js → Chip-CINbb2Hf.js} +3 -3
  12. package/dist/{Chip-DWoGbX_A.js.map → Chip-CINbb2Hf.js.map} +1 -1
  13. package/dist/{ChipList-ClC-BPyL.js → ChipList-Dspe8Tf9.js} +5 -4
  14. package/dist/{ChipList-ClC-BPyL.js.map → ChipList-Dspe8Tf9.js.map} +1 -1
  15. package/dist/{ColorPicker-BVmUDE-h.js → ColorPicker-CdECHCbh.js} +5 -4
  16. package/dist/{ColorPicker-BVmUDE-h.js.map → ColorPicker-CdECHCbh.js.map} +1 -1
  17. package/dist/{ContextMenu-B8mGn0Fq.js → ContextMenu-CtRqfo8w.js} +5 -5
  18. package/dist/{ContextMenu-B8mGn0Fq.js.map → ContextMenu-CtRqfo8w.js.map} +1 -1
  19. package/dist/ErrorMessage-DOkrG22I.js +28 -0
  20. package/dist/ErrorMessage-DOkrG22I.js.map +1 -0
  21. package/dist/{Icon-CV5fAqK7.js → Icon-C_yI8e6Z.js} +21 -3
  22. package/dist/Icon-C_yI8e6Z.js.map +1 -0
  23. package/dist/{IconButton-BkwXYUL1.js → IconButton-DQaptukh.js} +2 -2
  24. package/dist/{IconButton-BkwXYUL1.js.map → IconButton-DQaptukh.js.map} +1 -1
  25. package/dist/{InfoSummary-p7hgSIZn.js → InfoSummary-CQnTQYJJ.js} +3 -3
  26. package/dist/{InfoSummary-p7hgSIZn.js.map → InfoSummary-CQnTQYJJ.js.map} +1 -1
  27. package/dist/{Input-Dam9Lbxf.js → Input-BKZ3l3ps.js} +6 -5
  28. package/dist/{Input-Dam9Lbxf.js.map → Input-BKZ3l3ps.js.map} +1 -1
  29. package/dist/Label-CPua_PPu.js +25 -0
  30. package/dist/Label-CPua_PPu.js.map +1 -0
  31. package/dist/{Loader-DUqRFMzl.js → Loader-DqDWamjq.js} +2 -2
  32. package/dist/{Loader-DUqRFMzl.js.map → Loader-DqDWamjq.js.map} +1 -1
  33. package/dist/{MaskModule-ChyYaHh2.js → MaskModule-CUFXLKZU.js} +1 -1
  34. package/dist/{MaskModule-ChyYaHh2.js.map → MaskModule-CUFXLKZU.js.map} +1 -1
  35. package/dist/{Popover-tzAZp6V7.js → Popover-DGYahpRI.js} +4 -4
  36. package/dist/{Popover-tzAZp6V7.js.map → Popover-DGYahpRI.js.map} +1 -1
  37. package/dist/SearchInput-Ol5FJDHS.js +107 -0
  38. package/dist/SearchInput-Ol5FJDHS.js.map +1 -0
  39. package/dist/{Select-BR9OSXHF.js → Select-BO2A8Wdu.js} +8 -7
  40. package/dist/{Select-BR9OSXHF.js.map → Select-BO2A8Wdu.js.map} +1 -1
  41. package/dist/{Skeleton-iCdZ2Gai.js → Skeleton-CixPhMzv.js} +2 -2
  42. package/dist/{Skeleton-iCdZ2Gai.js.map → Skeleton-CixPhMzv.js.map} +1 -1
  43. package/dist/{Switch-CiKBZRST.js → Switch-ySpoqwBk.js} +2 -2
  44. package/dist/{Switch-CiKBZRST.js.map → Switch-ySpoqwBk.js.map} +1 -1
  45. package/dist/{TabSwitch-D6KaP0z5.js → TabSwitch-B5deD9nz.js} +3 -3
  46. package/dist/{TabSwitch-D6KaP0z5.js.map → TabSwitch-B5deD9nz.js.map} +1 -1
  47. package/dist/{TextArea-D9kGofdD.js → TextArea-Cne9IZEW.js} +5 -4
  48. package/dist/{TextArea-D9kGofdD.js.map → TextArea-Cne9IZEW.js.map} +1 -1
  49. package/dist/{ThemeContext-C9llUBqb.js → ThemeContext-DDE631iU.js} +1 -1
  50. package/dist/{ThemeContext-C9llUBqb.js.map → ThemeContext-DDE631iU.js.map} +1 -1
  51. package/dist/{Typography-BTJk47bm.js → Typography-CKSjnDPX.js} +28 -20
  52. package/dist/Typography-CKSjnDPX.js.map +1 -0
  53. package/dist/base-popover.d.ts +3 -3
  54. package/dist/base-popover.js +5 -5
  55. package/dist/breadcrumb.d.ts +1 -1
  56. package/dist/breadcrumb.js +4 -4
  57. package/dist/button.d.ts +2 -2
  58. package/dist/button.js +4 -4
  59. package/dist/check-item.d.ts +1 -1
  60. package/dist/check-item.js +4 -4
  61. package/dist/checkbox.d.ts +2 -2
  62. package/dist/checkbox.js +4 -4
  63. package/dist/chip-list.d.ts +1 -1
  64. package/dist/chip-list.js +6 -5
  65. package/dist/chip.d.ts +1 -1
  66. package/dist/chip.js +3 -3
  67. package/dist/color-picker.d.ts +1 -1
  68. package/dist/color-picker.js +6 -5
  69. package/dist/context-menu.d.ts +1 -1
  70. package/dist/context-menu.js +8 -8
  71. package/dist/icon-button.d.ts +1 -1
  72. package/dist/icon-button.js +2 -2
  73. package/dist/{index-BEd1qAu7.d.ts → index-5eyvKw2O.d.ts} +1 -1
  74. package/dist/{index-IIjo6avX.d.ts → index-B9mLvqQT.d.ts} +1 -1
  75. package/dist/{index-CNPbAm9i.d.ts → index-BWN2i3t9.d.ts} +5 -5
  76. package/dist/{index-By2y-Zjz.d.ts → index-BXZ-OM5P.d.ts} +2 -2
  77. package/dist/{index-CJDqp_om.d.ts → index-BY5IQiDl.d.ts} +2 -2
  78. package/dist/{index-C2rKLkDO.d.ts → index-CAMj03qs.d.ts} +1 -1
  79. package/dist/index-CBfW89pi.d.ts +20 -0
  80. package/dist/{index-DsQyEI6l.d.ts → index-CEGANhbI.d.ts} +1 -1
  81. package/dist/{index-B_xvhcYY.d.ts → index-CGPCzJ5m.d.ts} +4 -4
  82. package/dist/{index-XBmzyFW4.d.ts → index-CqmzOJc_.d.ts} +2 -2
  83. package/dist/{index-BbvC10jX.d.ts → index-D5OTHkPO.d.ts} +2 -2
  84. package/dist/{index-wFIuQoWm.d.ts → index-D5Zfkj5F.d.ts} +4 -4
  85. package/dist/{index-DvbYyCcE.d.ts → index-DEAzVsKY.d.ts} +2 -2
  86. package/dist/{index-B9Ooz6lk.d.ts → index-DLbeWu4b.d.ts} +4 -4
  87. package/dist/{index-B9PAov_V.d.ts → index-DVB1TrWc.d.ts} +2 -2
  88. package/dist/{index-B-f7Shgf.d.ts → index-YN8kSeey.d.ts} +4 -4
  89. package/dist/{index-BdXsHz33.d.ts → index-butzJA6r.d.ts} +4 -4
  90. package/dist/{index-Du2b4ABa.d.ts → index-hJBCuHQu.d.ts} +3 -3
  91. package/dist/{index-v28FA4ph.d.ts → index-y7Z04PKd.d.ts} +3 -3
  92. package/dist/index.d.ts +23 -22
  93. package/dist/index.js +30 -28
  94. package/dist/info-summary.js +3 -3
  95. package/dist/input.d.ts +1 -1
  96. package/dist/input.js +7 -6
  97. package/dist/mask-modules.d.ts +1 -1
  98. package/dist/mask-modules.js +1 -1
  99. package/dist/popover.d.ts +2 -2
  100. package/dist/popover.js +4 -4
  101. package/dist/searchInput.d.ts +2 -0
  102. package/dist/searchInput.js +7 -0
  103. package/dist/select.d.ts +2 -2
  104. package/dist/select.js +11 -10
  105. package/dist/skeleton.d.ts +1 -1
  106. package/dist/skeleton.js +2 -2
  107. package/dist/{styleProps-CrD6h1FM.d.ts → styleProps-BTRkIoXb.d.ts} +1 -1
  108. package/dist/switch.d.ts +1 -1
  109. package/dist/switch.js +2 -2
  110. package/dist/tab-switch.d.ts +1 -1
  111. package/dist/tab-switch.js +3 -3
  112. package/dist/text-area.d.ts +1 -1
  113. package/dist/text-area.js +5 -4
  114. package/dist/theme-context.d.ts +1 -1
  115. package/dist/theme-context.js +1 -1
  116. package/dist/{types-B-zFTnqe.d.ts → types-C0u1I3AZ.d.ts} +3 -3
  117. package/dist/{types-Cr3L1i9Q.d.ts → types-CLnohr-1.d.ts} +1 -1
  118. package/dist/{types-B4Yk1AUa.d.ts → types-CTYkmfAB.d.ts} +1 -1
  119. package/dist/{types-n-gj1UXJ.d.ts → types-aSZkOYQF.d.ts} +23 -17
  120. package/dist/typography.d.ts +3 -3
  121. package/dist/typography.js +2 -2
  122. package/dist/use-dismiss.js +1 -1
  123. package/dist/use-floating.d.ts +1 -1
  124. package/dist/use-floating.js +1 -1
  125. package/dist/{useDismiss-w2spkFNN.js → useDismiss-D-z-tDnD.js} +1 -1
  126. package/dist/{useDismiss-w2spkFNN.js.map → useDismiss-D-z-tDnD.js.map} +1 -1
  127. package/dist/{useFloating-BkMrolmn.js → useFloating-CNaOVlhE.js} +1 -1
  128. package/dist/{useFloating-BkMrolmn.js.map → useFloating-CNaOVlhE.js.map} +1 -1
  129. package/dist/{useThemedStyles-0XwrILh9.d.ts → useThemedStyles-B4g2CRsn.d.ts} +1 -1
  130. package/dist/{useThemedStyles-CV4ryZLN.js → useThemedStyles-BJWB5BTH.js} +1 -1
  131. package/dist/{useThemedStyles-CV4ryZLN.js.map → useThemedStyles-BJWB5BTH.js.map} +1 -1
  132. package/package.json +8 -1
  133. package/dist/BasePopover-m1OfX3fO.js.map +0 -1
  134. package/dist/ErrorMessage-BRnYfudz.js +0 -49
  135. package/dist/ErrorMessage-BRnYfudz.js.map +0 -1
  136. package/dist/Icon-CV5fAqK7.js.map +0 -1
  137. package/dist/Typography-BTJk47bm.js.map +0 -1
  138. /package/dist/{chunk-DBn-LkE6.js → chunk-BgJRG4ys.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as PopoverProps } from "./types-B-zFTnqe.js";
1
+ import { t as PopoverProps } from "./types-C0u1I3AZ.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-DvbYyCcE.d.ts.map
22
+ //# sourceMappingURL=index-DEAzVsKY.d.ts.map
@@ -1,6 +1,6 @@
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 { r as MaskType } from "./index-C2rKLkDO.js";
1
+ import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-BTRkIoXb.js";
2
+ import { r as StylesOf } from "./useThemedStyles-B4g2CRsn.js";
3
+ import { r as MaskType } from "./index-CAMj03qs.js";
4
4
  import * as react0 from "react";
5
5
  import { HTMLInputTypeAttribute, InputHTMLAttributes, ReactNode } from "react";
6
6
 
@@ -100,4 +100,4 @@ interface InputMethods {
100
100
  declare const Input: react0.ForwardRefExoticComponent<InputProps & react0.RefAttributes<InputMethods>>;
101
101
  //#endregion
102
102
  export { Input as t };
103
- //# sourceMappingURL=index-B9Ooz6lk.d.ts.map
103
+ //# sourceMappingURL=index-DLbeWu4b.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as StyleMap } from "./useThemedStyles-0XwrILh9.js";
1
+ import { n as StyleMap } from "./useThemedStyles-B4g2CRsn.js";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/commons/structure/Skeleton/styles.d.ts
@@ -16,4 +16,4 @@ interface SkeletonProps {
16
16
  declare const Skeleton: React.FC<SkeletonProps>;
17
17
  //#endregion
18
18
  export { Skeleton as t };
19
- //# sourceMappingURL=index-B9PAov_V.d.ts.map
19
+ //# sourceMappingURL=index-DVB1TrWc.d.ts.map
@@ -1,6 +1,6 @@
1
- import { t as CommonStyleProps } from "./styleProps-CrD6h1FM.js";
1
+ import { t as CommonStyleProps } from "./styleProps-BTRkIoXb.js";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime1 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/commons/toolkit/TabSwitch/styles.d.ts
6
6
  declare function createTabSwitchStyles<T>(props: TabSwitchProps<T>): {
@@ -41,7 +41,7 @@ interface TabSwitchProps<T> extends CommonStyleProps {
41
41
  }
42
42
  //#endregion
43
43
  //#region src/components/commons/toolkit/TabSwitch/index.d.ts
44
- declare const TabSwitch: <T>(props: TabSwitchProps<T>) => react_jsx_runtime1.JSX.Element;
44
+ declare const TabSwitch: <T>(props: TabSwitchProps<T>) => react_jsx_runtime0.JSX.Element;
45
45
  //#endregion
46
46
  export { SwitchOption as n, TabSwitchProps as r, TabSwitch as t };
47
- //# sourceMappingURL=index-B-f7Shgf.d.ts.map
47
+ //# sourceMappingURL=index-YN8kSeey.d.ts.map
@@ -1,5 +1,5 @@
1
- import { a as TextProps } from "./styleProps-CrD6h1FM.js";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import { a as TextProps } from "./styleProps-BTRkIoXb.js";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/commons/inputs/TextArea/styles.d.ts
5
5
  declare function createTextAreaStyles(props: TextAreaProps): {
@@ -65,7 +65,7 @@ interface TextAreaProps {
65
65
  }
66
66
  //#endregion
67
67
  //#region src/components/commons/inputs/TextArea/index.d.ts
68
- declare const TextArea: (props: TextAreaProps) => react_jsx_runtime0.JSX.Element;
68
+ declare const TextArea: (props: TextAreaProps) => react_jsx_runtime1.JSX.Element;
69
69
  //#endregion
70
70
  export { TextArea as t };
71
- //# sourceMappingURL=index-BdXsHz33.d.ts.map
71
+ //# sourceMappingURL=index-butzJA6r.d.ts.map
@@ -1,5 +1,5 @@
1
- import { a as TextProps } from "./styleProps-CrD6h1FM.js";
2
- import { t as ChipOption } from "./types-B4Yk1AUa.js";
1
+ import { a as TextProps } from "./styleProps-BTRkIoXb.js";
2
+ import { t as ChipOption } from "./types-CTYkmfAB.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-Du2b4ABa.d.ts.map
27
+ //# sourceMappingURL=index-hJBCuHQu.d.ts.map
@@ -1,5 +1,5 @@
1
- import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-CrD6h1FM.js";
2
- import { r as StylesOf } from "./useThemedStyles-0XwrILh9.js";
1
+ import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-BTRkIoXb.js";
2
+ import { r as StylesOf } from "./useThemedStyles-B4g2CRsn.js";
3
3
 
4
4
  //#region src/components/commons/inputs/ColorPicker/styles.d.ts
5
5
  declare function createColorPickerStyles(props: ColorPickerProps): {
@@ -71,4 +71,4 @@ interface ColorPickerProps extends LayoutProps, MarginProps {
71
71
  declare const ColorPicker: React.FC<ColorPickerProps>;
72
72
  //#endregion
73
73
  export { types_d_exports as n, ColorPicker as t };
74
- //# sourceMappingURL=index-v28FA4ph.d.ts.map
74
+ //# sourceMappingURL=index-y7Z04PKd.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,28 +1,29 @@
1
- import "./types-n-gj1UXJ.js";
2
- import { t as Button } from "./index-wFIuQoWm.js";
3
- import { t as IconButton } from "./index-DsQyEI6l.js";
4
- import { n as types_d_exports$1, t as ColorPicker } from "./index-v28FA4ph.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";
1
+ import "./types-aSZkOYQF.js";
2
+ import { t as Button } from "./index-D5Zfkj5F.js";
3
+ import { t as IconButton } from "./index-CEGANhbI.js";
4
+ import { n as types_d_exports$1, t as ColorPicker } from "./index-y7Z04PKd.js";
5
+ import { n as Locale, r as MaskType, t as MaskModule } from "./index-CAMj03qs.js";
6
+ import { t as Input } from "./index-DLbeWu4b.js";
7
+ import { t as SearchInput } from "./index-CBfW89pi.js";
8
+ import { n as types_d_exports$4, t as Select } from "./index-BWN2i3t9.js";
9
+ import { n as types_d_exports$3 } from "./types-C0u1I3AZ.js";
10
+ import { t as TextArea } from "./index-butzJA6r.js";
11
+ import { t as Popover } from "./index-D5OTHkPO.js";
12
+ import { t as BasePopover } from "./index-DEAzVsKY.js";
13
+ import { t as Breadcrumb } from "./index-CqmzOJc_.js";
14
+ import { t as Skeleton } from "./index-DVB1TrWc.js";
15
+ import { t as CheckItem } from "./index-B9mLvqQT.js";
16
+ import { t as Checkbox } from "./index-BXZ-OM5P.js";
17
+ import { r as types_d_exports } from "./types-CTYkmfAB.js";
17
18
  import { Chip } from "./chip.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
+ import { t as ChipList } from "./index-hJBCuHQu.js";
20
+ import { n as types_d_exports$2, t as ContextMenu } from "./index-CGPCzJ5m.js";
20
21
  import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
21
- import { t as Switch } from "./index-BEd1qAu7.js";
22
- import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-B-f7Shgf.js";
22
+ import { t as Switch } from "./index-5eyvKw2O.js";
23
+ import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-YN8kSeey.js";
23
24
  import { Typography } from "./typography.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";
25
+ 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-BY5IQiDl.js";
25
26
  import { useDismiss } from "./use-dismiss.js";
26
27
  import { AnchorLike, useFloating } from "./use-floating.js";
27
28
  import { useVirtualAnchor } from "./use-virtual-anchor.js";
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 };
29
+ 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, SearchInput, 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,30 +1,32 @@
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-BgsYjAC1.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-BVmUDE-h.js";
26
- import { t as Skeleton } from "./Skeleton-iCdZ2Gai.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import { t as Switch } from "./Switch-ySpoqwBk.js";
3
+ import { t as useDismiss } from "./useDismiss-D-z-tDnD.js";
4
+ import { t as useFloating } from "./useFloating-CNaOVlhE.js";
5
+ import { n as types_exports$3, t as Popover } from "./Popover-DGYahpRI.js";
6
+ import "./Icon-C_yI8e6Z.js";
7
+ import { t as Typography } from "./Typography-CKSjnDPX.js";
8
+ import { t as Checkbox } from "./Checkbox-DU8VoDgU.js";
9
+ import { n as useTheme, t as ThemeProvider } from "./ThemeContext-DDE631iU.js";
10
+ import { t as TabSwitch } from "./TabSwitch-B5deD9nz.js";
11
+ import { t as CheckItem } from "./CheckItem-CHkw5t6c.js";
12
+ import { t as InfoSummary } from "./InfoSummary-CQnTQYJJ.js";
13
+ import { t as BasePopover } from "./BasePopover-Bcy5d1t5.js";
14
+ import { n as types_exports$2, t as ContextMenu } from "./ContextMenu-CtRqfo8w.js";
15
+ import { n as types_exports, t as Chip } from "./Chip-CINbb2Hf.js";
16
+ import "./Label-CPua_PPu.js";
17
+ import "./ErrorMessage-DOkrG22I.js";
18
+ import { t as ChipList } from "./ChipList-Dspe8Tf9.js";
19
+ import "./Loader-DqDWamjq.js";
20
+ import { t as Button } from "./Button-DSMdOqri.js";
21
+ import { t as IconButton } from "./IconButton-DQaptukh.js";
22
+ import { n as MaskType, r as MaskModule, t as Locale } from "./MaskModule-CUFXLKZU.js";
23
+ import { t as Input } from "./Input-BKZ3l3ps.js";
24
+ import { n as types_exports$4, t as Select } from "./Select-BO2A8Wdu.js";
25
+ import { t as TextArea } from "./TextArea-Cne9IZEW.js";
26
+ import { t as SearchInput } from "./SearchInput-Ol5FJDHS.js";
27
+ import { n as types_exports$1, t as ColorPicker } from "./ColorPicker-CdECHCbh.js";
28
+ import { t as Skeleton } from "./Skeleton-CixPhMzv.js";
27
29
  import { useVirtualAnchor } from "./use-virtual-anchor.js";
28
- import { t as Breadcrumb } from "./Breadcrumb-Bm9YuwCq.js";
30
+ import { t as Breadcrumb } from "./Breadcrumb-Doo-Ajul.js";
29
31
 
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 };
32
+ 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, SearchInput, Select, types_exports$4 as SelectTypes, Skeleton, Switch, TabSwitch, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
@@ -1,5 +1,5 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Typography-BTJk47bm.js";
3
- import { t as InfoSummary } from "./InfoSummary-p7hgSIZn.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Typography-CKSjnDPX.js";
3
+ import { t as InfoSummary } from "./InfoSummary-CQnTQYJJ.js";
4
4
 
5
5
  export { InfoSummary };
package/dist/input.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Input } from "./index-B9Ooz6lk.js";
1
+ import { t as Input } from "./index-DLbeWu4b.js";
2
2
  export { Input };
package/dist/input.js CHANGED
@@ -1,8 +1,9 @@
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";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Icon-C_yI8e6Z.js";
3
+ import "./Typography-CKSjnDPX.js";
4
+ import "./Label-CPua_PPu.js";
5
+ import "./ErrorMessage-DOkrG22I.js";
6
+ import "./MaskModule-CUFXLKZU.js";
7
+ import { t as Input } from "./Input-BKZ3l3ps.js";
7
8
 
8
9
  export { Input };
@@ -1,2 +1,2 @@
1
- import { n as Locale, r as MaskType, t as MaskModule } from "./index-C2rKLkDO.js";
1
+ import { n as Locale, r as MaskType, t as MaskModule } from "./index-CAMj03qs.js";
2
2
  export { Locale, MaskModule, MaskType };
@@ -1,3 +1,3 @@
1
- import { n as MaskType, r as MaskModule, t as Locale } from "./MaskModule-ChyYaHh2.js";
1
+ import { n as MaskType, r as MaskModule, t as Locale } from "./MaskModule-CUFXLKZU.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-B-zFTnqe.js";
2
- import { t as Popover } from "./index-BbvC10jX.js";
1
+ import { n as types_d_exports } from "./types-C0u1I3AZ.js";
2
+ import { t as Popover } from "./index-D5OTHkPO.js";
3
3
  export { Popover, types_d_exports as PopoverTypes };
package/dist/popover.js CHANGED
@@ -1,6 +1,6 @@
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";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./useDismiss-D-z-tDnD.js";
3
+ import "./useFloating-CNaOVlhE.js";
4
+ import { n as types_exports, t as Popover } from "./Popover-DGYahpRI.js";
5
5
 
6
6
  export { Popover, types_exports as PopoverTypes };
@@ -0,0 +1,2 @@
1
+ import { t as SearchInput } from "./index-CBfW89pi.js";
2
+ export { SearchInput };
@@ -0,0 +1,7 @@
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Icon-C_yI8e6Z.js";
3
+ import "./Typography-CKSjnDPX.js";
4
+ import "./Label-CPua_PPu.js";
5
+ import { t as SearchInput } from "./SearchInput-Ol5FJDHS.js";
6
+
7
+ export { SearchInput };
package/dist/select.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { n as types_d_exports, t as Select } from "./index-CNPbAm9i.js";
2
- import "./types-B-zFTnqe.js";
1
+ import { n as types_d_exports, t as Select } from "./index-BWN2i3t9.js";
2
+ import "./types-C0u1I3AZ.js";
3
3
  export { Select, types_d_exports as SelectTypes };
package/dist/select.js CHANGED
@@ -1,12 +1,13 @@
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";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./useDismiss-D-z-tDnD.js";
3
+ import "./useFloating-CNaOVlhE.js";
4
+ import "./Popover-DGYahpRI.js";
5
+ import "./Icon-C_yI8e6Z.js";
6
+ import "./Typography-CKSjnDPX.js";
7
+ import "./BasePopover-Bcy5d1t5.js";
8
+ import "./Label-CPua_PPu.js";
9
+ import "./ErrorMessage-DOkrG22I.js";
10
+ import "./Loader-DqDWamjq.js";
11
+ import { n as types_exports, t as Select } from "./Select-BO2A8Wdu.js";
11
12
 
12
13
  export { Select, types_exports as SelectTypes };
@@ -1,2 +1,2 @@
1
- import { t as Skeleton } from "./index-B9PAov_V.js";
1
+ import { t as Skeleton } from "./index-DVB1TrWc.js";
2
2
  export { Skeleton };
package/dist/skeleton.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import { t as Skeleton } from "./Skeleton-iCdZ2Gai.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import { t as Skeleton } from "./Skeleton-CixPhMzv.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-CrD6h1FM.d.ts.map
47
+ //# sourceMappingURL=styleProps-BTRkIoXb.d.ts.map
package/dist/switch.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Switch } from "./index-BEd1qAu7.js";
1
+ import { t as Switch } from "./index-5eyvKw2O.js";
2
2
  export { Switch };
package/dist/switch.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import { t as Switch } from "./Switch-CiKBZRST.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import { t as Switch } from "./Switch-ySpoqwBk.js";
3
3
 
4
4
  export { Switch };
@@ -1,2 +1,2 @@
1
- import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-B-f7Shgf.js";
1
+ import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-YN8kSeey.js";
2
2
  export { SwitchOption, TabSwitch, TabSwitchProps };
@@ -1,5 +1,5 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Typography-BTJk47bm.js";
3
- import { t as TabSwitch } from "./TabSwitch-D6KaP0z5.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Typography-CKSjnDPX.js";
3
+ import { t as TabSwitch } from "./TabSwitch-B5deD9nz.js";
4
4
 
5
5
  export { TabSwitch };
@@ -1,2 +1,2 @@
1
- import { t as TextArea } from "./index-BdXsHz33.js";
1
+ import { t as TextArea } from "./index-butzJA6r.js";
2
2
  export { TextArea };
package/dist/text-area.js CHANGED
@@ -1,6 +1,7 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Typography-BTJk47bm.js";
3
- import "./ErrorMessage-BRnYfudz.js";
4
- import { t as TextArea } from "./TextArea-D9kGofdD.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Typography-CKSjnDPX.js";
3
+ import "./Label-CPua_PPu.js";
4
+ import "./ErrorMessage-DOkrG22I.js";
5
+ import { t as TextArea } from "./TextArea-Cne9IZEW.js";
5
6
 
6
7
  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-CJDqp_om.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-BY5IQiDl.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-C9llUBqb.js";
3
+ import { n as useTheme, t as ThemeProvider } from "./ThemeContext-DDE631iU.js";
4
4
 
5
5
  export { ThemeProvider, useTheme };
@@ -1,5 +1,5 @@
1
- import { i as PaddingProps } from "./styleProps-CrD6h1FM.js";
2
- import { t as FloatingOptions } from "./types-Cr3L1i9Q.js";
1
+ import { i as PaddingProps } from "./styleProps-BTRkIoXb.js";
2
+ import { t as FloatingOptions } from "./types-CLnohr-1.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-B-zFTnqe.d.ts.map
57
+ //# sourceMappingURL=types-C0u1I3AZ.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-Cr3L1i9Q.d.ts.map
18
+ //# sourceMappingURL=types-CLnohr-1.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-B4Yk1AUa.d.ts.map
19
+ //# sourceMappingURL=types-CTYkmfAB.d.ts.map
@@ -1,38 +1,44 @@
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
- import { ElementType, ReactNode } from "react";
1
+ import { a as TextProps, r as MarginProps } from "./styleProps-BTRkIoXb.js";
2
+ import { i as TypeStyles, t as SlotStyle } from "./useThemedStyles-B4g2CRsn.js";
3
+ import { ElementType, PropsWithChildren } from "react";
4
4
 
5
5
  //#region src/components/commons/toolkit/Typography/style.d.ts
6
6
  declare function createTypographyStyles(props: TypographyProps): {
7
- base: {
8
- display: "flex";
9
- flexDirection: "row";
10
- alignItems: "center";
11
- borderBottom: string;
12
- gap: number;
13
- animation: "animate-pulse 1.5s infinite" | undefined;
14
- };
15
7
  loading: {
16
8
  width: string;
17
- height: string;
18
9
  display: "inline-block";
19
- backgroundColor: "var(--pixel-gray-300, #d1d5db)";
20
10
  borderRadius: string;
11
+ background: string;
12
+ backgroundSize: string;
13
+ animation: "gradient 3s ease infinite";
14
+ color: "transparent";
15
+ __keyframes: {
16
+ gradient: {
17
+ '0%': {
18
+ backgroundPosition: string;
19
+ };
20
+ '50%': {
21
+ backgroundPosition: string;
22
+ };
23
+ '100%': {
24
+ backgroundPosition: string;
25
+ };
26
+ };
27
+ };
21
28
  };
22
29
  text: SlotStyle;
23
30
  };
24
31
  //#endregion
25
32
  //#region src/components/commons/toolkit/Typography/types.d.ts
26
- interface TypographyProps extends TextProps, MarginProps {
33
+ interface TypographyProps extends TextProps, MarginProps, PropsWithChildren {
27
34
  variant: TypographyVariant;
28
35
  id?: string;
29
36
  href?: string;
30
37
  as?: ElementType;
31
- children: ReactNode;
32
38
  align?: TextAlign;
33
39
  color?: string;
34
40
  isLoading?: boolean;
35
- placeholder?: string;
41
+ placeholderSize?: number;
36
42
  className?: string;
37
43
  styles?: TypeStyles<typeof createTypographyStyles>;
38
44
  }
@@ -40,4 +46,4 @@ type TextAlign = 'left' | 'center' | 'right' | 'justify';
40
46
  type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'b1' | 'b2' | 'b3' | 'caption' | 'legal';
41
47
  //#endregion
42
48
  export { TypographyVariant as n, TypographyProps as t };
43
- //# sourceMappingURL=types-n-gj1UXJ.d.ts.map
49
+ //# sourceMappingURL=types-aSZkOYQF.d.ts.map
@@ -1,8 +1,8 @@
1
- import { t as TypographyProps } from "./types-n-gj1UXJ.js";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import { t as TypographyProps } from "./types-aSZkOYQF.js";
2
+ import React from "react";
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 const Typography: React.FC<TypographyProps>;
6
6
  //#endregion
7
7
  export { Typography };
8
8
  //# sourceMappingURL=typography.d.ts.map
@@ -1,4 +1,4 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import { t as Typography } from "./Typography-BTJk47bm.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import { t as Typography } from "./Typography-CKSjnDPX.js";
3
3
 
4
4
  export { Typography };
@@ -1,3 +1,3 @@
1
- import { t as useDismiss } from "./useDismiss-w2spkFNN.js";
1
+ import { t as useDismiss } from "./useDismiss-D-z-tDnD.js";
2
2
 
3
3
  export { useDismiss };
@@ -1,4 +1,4 @@
1
- import { t as FloatingOptions } from "./types-Cr3L1i9Q.js";
1
+ import { t as FloatingOptions } from "./types-CLnohr-1.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-BkMrolmn.js";
1
+ import { t as useFloating } from "./useFloating-CNaOVlhE.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-w2spkFNN.js.map
42
+ //# sourceMappingURL=useDismiss-D-z-tDnD.js.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"useDismiss-D-z-tDnD.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-BkMrolmn.js.map
317
+ //# sourceMappingURL=useFloating-CNaOVlhE.js.map