softable-pixels-web 1.1.7 → 1.1.9

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 (103) hide show
  1. package/dist/{Button-BiSdxI2A.js → Button-DCVmSier.js} +13 -13
  2. package/dist/Button-DCVmSier.js.map +1 -0
  3. package/dist/{CheckItem-DsIiS-2X.js → CheckItem-itm2oIeW.js} +6 -6
  4. package/dist/CheckItem-itm2oIeW.js.map +1 -0
  5. package/dist/{Checkbox-6ivVbzcX.js → Checkbox-ly07FlTH.js} +10 -10
  6. package/dist/Checkbox-ly07FlTH.js.map +1 -0
  7. package/dist/ContextMenu-fSz83oSd.js +304 -0
  8. package/dist/ContextMenu-fSz83oSd.js.map +1 -0
  9. package/dist/{Icon-Cv0qztmq.js → Icon-61UaAUrM.js} +5 -5
  10. package/dist/Icon-61UaAUrM.js.map +1 -0
  11. package/dist/{IconButton-BBdkzg3b.js → IconButton-CsHFWO8K.js} +2 -2
  12. package/dist/IconButton-CsHFWO8K.js.map +1 -0
  13. package/dist/{InfoSummary-uorFDD40.js → InfoSummary-DcupqKIy.js} +13 -13
  14. package/dist/InfoSummary-DcupqKIy.js.map +1 -0
  15. package/dist/Input-DLJz5Mrn.js +177 -0
  16. package/dist/Input-DLJz5Mrn.js.map +1 -0
  17. package/dist/Label-BhqH21lT.js +25 -0
  18. package/dist/Label-BhqH21lT.js.map +1 -0
  19. package/dist/Popover-BsDGCJ-f.js +81 -0
  20. package/dist/Popover-BsDGCJ-f.js.map +1 -0
  21. package/dist/Switch-B4e9qBOu.js +49 -0
  22. package/dist/Switch-B4e9qBOu.js.map +1 -0
  23. package/dist/{TabSwitch-De30bFX2.js → TabSwitch-CvnlK0NZ.js} +8 -8
  24. package/dist/TabSwitch-CvnlK0NZ.js.map +1 -0
  25. package/dist/{TextArea-CpIx36BV.js → TextArea-CUrG_9je.js} +5 -5
  26. package/dist/TextArea-CUrG_9je.js.map +1 -0
  27. package/dist/{ThemeContext-Dro_peJg.js → ThemeContext-CesN6Ejm.js} +28 -8
  28. package/dist/ThemeContext-CesN6Ejm.js.map +1 -0
  29. package/dist/{Typography-BE-vQSfx.js → Typography-j84zoCoZ.js} +5 -5
  30. package/dist/Typography-j84zoCoZ.js.map +1 -0
  31. package/dist/button.d.ts +2 -2
  32. package/dist/button.js +3 -3
  33. package/dist/check-item.d.ts +1 -1
  34. package/dist/check-item.js +4 -4
  35. package/dist/checkbox.d.ts +2 -2
  36. package/dist/checkbox.js +4 -4
  37. package/dist/context-menu.d.ts +2 -0
  38. package/dist/context-menu.js +9 -0
  39. package/dist/icon-button.d.ts +1 -1
  40. package/dist/icon-button.js +2 -2
  41. package/dist/{index-DUrGjyKy.d.ts → index-2WYvBk8I.d.ts} +23 -9
  42. package/dist/{index-akSk71wZ.d.ts → index-8GUY3yRY.d.ts} +3 -3
  43. package/dist/index-BANOx3xI.d.ts +44 -0
  44. package/dist/{index-CyvtOmP2.d.ts → index-BHhl7wD8.d.ts} +4 -3
  45. package/dist/index-BglHC9EI.d.ts +61 -0
  46. package/dist/{index-CIxyqe-m.d.ts → index-CCiP7SPG.d.ts} +8 -4
  47. package/dist/{index-C9iMLJTU.d.ts → index-Cmj1xJBu.d.ts} +4 -4
  48. package/dist/{index-BspBF3Mv.d.ts → index-CyntoY7A.d.ts} +33 -4
  49. package/dist/index-DH0vhxG-.d.ts +103 -0
  50. package/dist/index-DewFmT68.d.ts +15 -0
  51. package/dist/{index-DVz2cTUe.d.ts → index-YYjoEwNX.d.ts} +39 -5
  52. package/dist/index.d.ts +16 -10
  53. package/dist/index.js +20 -14
  54. package/dist/info-summary.d.ts +2 -2
  55. package/dist/info-summary.js +3 -3
  56. package/dist/input.d.ts +1 -2
  57. package/dist/input.js +5 -5
  58. package/dist/popover.d.ts +2 -0
  59. package/dist/popover.js +6 -0
  60. package/dist/{styleProps-D405c8KF.d.ts → styleProps-5iqKZpC1.d.ts} +1 -1
  61. package/dist/switch.d.ts +2 -0
  62. package/dist/switch.js +4 -0
  63. package/dist/tab-switch.d.ts +1 -1
  64. package/dist/tab-switch.js +3 -3
  65. package/dist/text-area.d.ts +2 -2
  66. package/dist/text-area.js +5 -5
  67. package/dist/theme-context.d.ts +1 -1
  68. package/dist/theme-context.js +1 -1
  69. package/dist/types-Dsf33Reg.d.ts +15 -0
  70. package/dist/{types-CDUx-y9q.d.ts → types-ubME1KhJ.d.ts} +5 -5
  71. package/dist/typography.d.ts +2 -2
  72. package/dist/typography.js +2 -2
  73. package/dist/use-dismiss.d.ts +20 -0
  74. package/dist/use-dismiss.js +3 -0
  75. package/dist/use-floating.d.ts +15 -0
  76. package/dist/use-floating.js +3 -0
  77. package/dist/use-virtual-anchor.d.ts +12 -0
  78. package/dist/use-virtual-anchor.js +40 -0
  79. package/dist/use-virtual-anchor.js.map +1 -0
  80. package/dist/useDismiss-DJ1mh-X3.js +35 -0
  81. package/dist/useDismiss-DJ1mh-X3.js.map +1 -0
  82. package/dist/useFloating--PcINgSt.js +295 -0
  83. package/dist/useFloating--PcINgSt.js.map +1 -0
  84. package/dist/{useThemedStyles-B7irjShy.d.ts → useThemedStyles-C6dNoaRC.d.ts} +25 -6
  85. package/dist/{useThemedStyles-3rUXJYgS.js → useThemedStyles-MLtE91hE.js} +1 -1
  86. package/dist/useThemedStyles-MLtE91hE.js.map +1 -0
  87. package/package.json +46 -1
  88. package/dist/Button-BiSdxI2A.js.map +0 -1
  89. package/dist/CheckItem-DsIiS-2X.js.map +0 -1
  90. package/dist/Checkbox-6ivVbzcX.js.map +0 -1
  91. package/dist/Icon-Cv0qztmq.js.map +0 -1
  92. package/dist/IconButton-BBdkzg3b.js.map +0 -1
  93. package/dist/InfoSummary-uorFDD40.js.map +0 -1
  94. package/dist/Input-BvbMEjwE.js +0 -327
  95. package/dist/Input-BvbMEjwE.js.map +0 -1
  96. package/dist/Label-QQpNWSeV.js +0 -79
  97. package/dist/Label-QQpNWSeV.js.map +0 -1
  98. package/dist/TabSwitch-De30bFX2.js.map +0 -1
  99. package/dist/TextArea-CpIx36BV.js.map +0 -1
  100. package/dist/ThemeContext-Dro_peJg.js.map +0 -1
  101. package/dist/Typography-BE-vQSfx.js.map +0 -1
  102. package/dist/index-pnnP9M22.d.ts +0 -49
  103. package/dist/useThemedStyles-3rUXJYgS.js.map +0 -1
@@ -1,5 +1,4 @@
1
- import { n as StyleMap } from "./useThemedStyles-B7irjShy.js";
2
- import { n as TypographyVariant } from "./types-CDUx-y9q.js";
1
+ import { n as TypographyVariant } from "./types-ubME1KhJ.js";
3
2
  import * as react_jsx_runtime2 from "react/jsx-runtime";
4
3
 
5
4
  //#region src/assets/icons/index.d.ts
@@ -15,7 +14,37 @@ declare const icons: {
15
14
  type IconName = keyof typeof icons;
16
15
  //#endregion
17
16
  //#region src/components/commons/inputs/TextArea/styles.d.ts
18
- declare function createTextAreaStyles(props: TextAreaProps): StyleMap;
17
+ declare function createTextAreaStyles(props: TextAreaProps): {
18
+ iconContainer: {
19
+ position: "absolute";
20
+ left: string;
21
+ top: string;
22
+ transform: "translateY(-50%)";
23
+ };
24
+ textArea: {
25
+ height: string;
26
+ width: string;
27
+ paddingBlock: string;
28
+ paddingInline: string;
29
+ borderRadius: string;
30
+ resize: "none";
31
+ fontWeight: "400";
32
+ fontSize: string;
33
+ color: "var(--px-text-primary)";
34
+ border: string;
35
+ outlineOffset: string;
36
+ cursor: "default" | undefined;
37
+ paddingLeft: string | undefined;
38
+ __rules: {
39
+ '&::placeholder': {
40
+ color: string;
41
+ };
42
+ '&:focus': {
43
+ outline: string;
44
+ };
45
+ };
46
+ };
47
+ };
19
48
  //#endregion
20
49
  //#region src/components/commons/inputs/TextArea/types.d.ts
21
50
  interface TextAreaProps {
@@ -45,4 +74,4 @@ interface TextAreaProps {
45
74
  declare const TextArea: (props: TextAreaProps) => react_jsx_runtime2.JSX.Element;
46
75
  //#endregion
47
76
  export { TextArea as t };
48
- //# sourceMappingURL=index-BspBF3Mv.d.ts.map
77
+ //# sourceMappingURL=index-CyntoY7A.d.ts.map
@@ -0,0 +1,103 @@
1
+ import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-5iqKZpC1.js";
2
+ import { n as StylesOf } from "./useThemedStyles-C6dNoaRC.js";
3
+ import * as react0 from "react";
4
+ import { HTMLInputTypeAttribute, ReactNode } from "react";
5
+
6
+ //#region src/components/commons/inputs/Input/styles.d.ts
7
+ declare function createInputStyles(props: InputProps): {
8
+ container: {
9
+ width: string;
10
+ display: "flex";
11
+ flexDirection: "column";
12
+ rowGap: string;
13
+ };
14
+ wrapper: {
15
+ width: string;
16
+ display: "flex";
17
+ alignItems: "center";
18
+ borderWidth: number;
19
+ columnGap: string;
20
+ borderRadius: string;
21
+ padding: string;
22
+ opacity: number;
23
+ boxShadow: "0px 1px 2px 0px #0A0D120D";
24
+ borderColor: "var(--px-color-error)" | "var(--px-border-primary)";
25
+ __rules: {
26
+ '&:focus-within': {
27
+ outlineOffset: string;
28
+ outline: string;
29
+ };
30
+ };
31
+ };
32
+ input: {
33
+ flex: number;
34
+ fontWeight: number;
35
+ fontSize: string;
36
+ lineHeight: string;
37
+ fontFamily: "inherit";
38
+ color: "var(--px-text-primary)";
39
+ __rules: {
40
+ '&:disabled': {
41
+ cursor: "not-allowed";
42
+ };
43
+ '&:focus': {
44
+ outline: string;
45
+ };
46
+ '&::placeholder': {
47
+ fontWeight: number;
48
+ color: "var(--px-text-secondary)";
49
+ };
50
+ };
51
+ };
52
+ error: {
53
+ display: "block";
54
+ fontWeight: number;
55
+ lineHeight: string;
56
+ fontSize: string;
57
+ fontFamily: "inherit";
58
+ color: "var(--px-text-error)";
59
+ };
60
+ button: {
61
+ display: "flex";
62
+ alignItems: "center";
63
+ justifyContent: "center";
64
+ cursor: "pointer";
65
+ padding: string;
66
+ borderRadius: string;
67
+ __rules: {
68
+ '&:focus': {
69
+ outline: string;
70
+ };
71
+ };
72
+ };
73
+ };
74
+ //#endregion
75
+ //#region src/components/commons/inputs/Input/types.d.ts
76
+ interface InputProps extends LayoutProps, MarginProps {
77
+ id?: string;
78
+ label: string;
79
+ value?: string;
80
+ placeholder?: string;
81
+ type?: HTMLInputTypeAttribute;
82
+ required?: boolean;
83
+ disabled?: boolean;
84
+ minLength?: number;
85
+ maxLength?: number;
86
+ errorMessage?: string;
87
+ endIcon?: ReactNode;
88
+ startIcon?: ReactNode;
89
+ styles?: StylesOf<typeof createInputStyles>;
90
+ requiredColor?: string;
91
+ labelConfig?: TextProps;
92
+ onChange: (value: string) => void;
93
+ }
94
+ interface InputMethods {
95
+ focus: () => void;
96
+ blur: () => void;
97
+ }
98
+ //#endregion
99
+ //#region src/components/commons/inputs/Input/index.d.ts
100
+ declare const Input: react0.ForwardRefExoticComponent<InputProps & react0.RefAttributes<InputMethods>>;
101
+ //#endregion
102
+ export { Input as t };
103
+ //# sourceMappingURL=index-DH0vhxG-.d.ts.map
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+
3
+ //#region src/components/commons/toolkit/Switch/types.d.ts
4
+ interface SwitchThumbProps {
5
+ checked: boolean;
6
+ colorIndicator?: string;
7
+ colorActive?: string;
8
+ colorInactive?: string;
9
+ }
10
+ //#endregion
11
+ //#region src/components/commons/toolkit/Switch/index.d.ts
12
+ declare const Switch: React.FC<SwitchThumbProps>;
13
+ //#endregion
14
+ export { Switch as t };
15
+ //# sourceMappingURL=index-DewFmT68.d.ts.map
@@ -1,6 +1,6 @@
1
- import { i as PaddingProps } from "./styleProps-D405c8KF.js";
2
- import { i as styled, r as TypeStyles } from "./useThemedStyles-B7irjShy.js";
3
- import { n as TypographyVariant } from "./types-CDUx-y9q.js";
1
+ import { i as PaddingProps } from "./styleProps-5iqKZpC1.js";
2
+ import { r as TypeStyles } from "./useThemedStyles-C6dNoaRC.js";
3
+ import { n as TypographyVariant } from "./types-ubME1KhJ.js";
4
4
  import React, { MouseEvent, ReactNode } from "react";
5
5
 
6
6
  //#region src/components/commons/buttons/Button/styles.d.ts
@@ -12,7 +12,41 @@ declare function createButtonStyles({
12
12
  fullWidth,
13
13
  textAlign,
14
14
  outlineColor
15
- }: ButtonProps): ReturnType<typeof styled>;
15
+ }: ButtonProps): {
16
+ container: {
17
+ minHeight: string;
18
+ width: string;
19
+ position: "relative";
20
+ display: "flex";
21
+ justifyContent: Align;
22
+ padding: string;
23
+ gap: string;
24
+ borderRadius: string;
25
+ cursor: "pointer";
26
+ transition: "background-color 0.5s";
27
+ border: string;
28
+ backgroundColor: string;
29
+ boxShadow: "none" | "0px -1px 0px #0A0D120D inset, 0px 1px 2px #0A0D120D";
30
+ __rules: {
31
+ '&:hover': {
32
+ opacity: "0.85 !important";
33
+ };
34
+ '&:disabled': {
35
+ opacity: "0.5 !important";
36
+ cursor: "not-allowed !important";
37
+ };
38
+ };
39
+ };
40
+ content: {
41
+ display: "flex";
42
+ flexDirection: "row";
43
+ alignItems: "center";
44
+ padding: string;
45
+ borderRadius: string;
46
+ whiteSpace: "nowrap";
47
+ columnGap: string;
48
+ };
49
+ };
16
50
  //#endregion
17
51
  //#region src/components/commons/buttons/Button/types.d.ts
18
52
  type Align = 'center' | 'left' | 'right';
@@ -80,4 +114,4 @@ interface ButtonProps extends PaddingProps {
80
114
  declare const Button: React.FC<ButtonProps>;
81
115
  //#endregion
82
116
  export { Button as t };
83
- //# sourceMappingURL=index-DVz2cTUe.d.ts.map
117
+ //# sourceMappingURL=index-YYjoEwNX.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,12 +1,18 @@
1
- import "./types-CDUx-y9q.js";
2
- import { t as Button } from "./index-DVz2cTUe.js";
3
- import { t as IconButton } from "./index-CyvtOmP2.js";
4
- import { t as Input } from "./index-pnnP9M22.js";
5
- import { t as TextArea } from "./index-BspBF3Mv.js";
6
- import { t as CheckItem } from "./index-akSk71wZ.js";
7
- import { t as Checkbox } from "./index-C9iMLJTU.js";
1
+ import "./types-ubME1KhJ.js";
2
+ import { t as Button } from "./index-YYjoEwNX.js";
3
+ import { t as IconButton } from "./index-BHhl7wD8.js";
4
+ import { t as Input } from "./index-DH0vhxG-.js";
5
+ import { t as TextArea } from "./index-CyntoY7A.js";
6
+ import { t as CheckItem } from "./index-8GUY3yRY.js";
7
+ import { t as Checkbox } from "./index-Cmj1xJBu.js";
8
+ import { t as ContextMenu } from "./index-BglHC9EI.js";
8
9
  import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
9
- import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-DUrGjyKy.js";
10
+ import { t as Popover } from "./index-BANOx3xI.js";
11
+ import { t as Switch } from "./index-DewFmT68.js";
12
+ import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-2WYvBk8I.js";
10
13
  import { Typography } from "./typography.js";
11
- 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-CIxyqe-m.js";
12
- export { Button, CheckItem, Checkbox, IconButton, InfoSummary, InfoSummaryItem, InfoSummaryProps, Input, SwitchOption, TabSwitch, TabSwitchProps, TextArea, ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, Typography, useTheme };
14
+ 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-CCiP7SPG.js";
15
+ import { useDismiss } from "./use-dismiss.js";
16
+ import { AnchorLike, useFloating } from "./use-floating.js";
17
+ import { useVirtualAnchor } from "./use-virtual-anchor.js";
18
+ export { AnchorLike, Button, CheckItem, Checkbox, ContextMenu, IconButton, InfoSummary, InfoSummaryItem, InfoSummaryProps, Input, Popover, Switch, SwitchOption, TabSwitch, TabSwitchProps, TextArea, ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
package/dist/index.js CHANGED
@@ -1,15 +1,21 @@
1
- import "./Icon-Cv0qztmq.js";
2
- import "./useThemedStyles-3rUXJYgS.js";
3
- import { t as Typography } from "./Typography-BE-vQSfx.js";
4
- import { t as Checkbox } from "./Checkbox-6ivVbzcX.js";
5
- import { n as useTheme, t as ThemeProvider } from "./ThemeContext-Dro_peJg.js";
6
- import { t as TabSwitch } from "./TabSwitch-De30bFX2.js";
7
- import { t as InfoSummary } from "./InfoSummary-uorFDD40.js";
8
- import { t as CheckItem } from "./CheckItem-DsIiS-2X.js";
9
- import { t as Button } from "./Button-BiSdxI2A.js";
10
- import { t as IconButton } from "./IconButton-BBdkzg3b.js";
11
- import "./Label-QQpNWSeV.js";
12
- import { t as Input } from "./Input-BvbMEjwE.js";
13
- import { t as TextArea } from "./TextArea-CpIx36BV.js";
1
+ import "./useThemedStyles-MLtE91hE.js";
2
+ import { t as Switch } from "./Switch-B4e9qBOu.js";
3
+ import { t as useDismiss } from "./useDismiss-DJ1mh-X3.js";
4
+ import { t as useFloating } from "./useFloating--PcINgSt.js";
5
+ import { t as Popover } from "./Popover-BsDGCJ-f.js";
6
+ import "./Icon-61UaAUrM.js";
7
+ import { t as Typography } from "./Typography-j84zoCoZ.js";
8
+ import { t as Checkbox } from "./Checkbox-ly07FlTH.js";
9
+ import { n as useTheme, t as ThemeProvider } from "./ThemeContext-CesN6Ejm.js";
10
+ import { t as TabSwitch } from "./TabSwitch-CvnlK0NZ.js";
11
+ import { t as CheckItem } from "./CheckItem-itm2oIeW.js";
12
+ import { t as InfoSummary } from "./InfoSummary-DcupqKIy.js";
13
+ import { t as ContextMenu } from "./ContextMenu-fSz83oSd.js";
14
+ import { t as Button } from "./Button-DCVmSier.js";
15
+ import { t as IconButton } from "./IconButton-CsHFWO8K.js";
16
+ import "./Label-BhqH21lT.js";
17
+ import { t as Input } from "./Input-DLJz5Mrn.js";
18
+ import { t as TextArea } from "./TextArea-CUrG_9je.js";
19
+ import { useVirtualAnchor } from "./use-virtual-anchor.js";
14
20
 
15
- export { Button, CheckItem, Checkbox, IconButton, InfoSummary, Input, TabSwitch, TextArea, ThemeProvider, Typography, useTheme };
21
+ export { Button, CheckItem, Checkbox, ContextMenu, IconButton, InfoSummary, Input, Popover, Switch, TabSwitch, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode } from "react";
2
2
 
3
- //#region src/components/toolkit/InfoSummary/types.d.ts
3
+ //#region src/components/commons/toolkit/InfoSummary/types.d.ts
4
4
  interface InfoSummaryProps {
5
5
  /**
6
6
  * Indicates whether the component is in a loading state.
@@ -55,7 +55,7 @@ interface InfoSummaryItem {
55
55
  caption?: string;
56
56
  }
57
57
  //#endregion
58
- //#region src/components/toolkit/InfoSummary/index.d.ts
58
+ //#region src/components/commons/toolkit/InfoSummary/index.d.ts
59
59
  declare const InfoSummary: React.FC<InfoSummaryProps>;
60
60
  //#endregion
61
61
  export { InfoSummary, InfoSummaryItem, InfoSummaryProps };
@@ -1,5 +1,5 @@
1
- import "./useThemedStyles-3rUXJYgS.js";
2
- import "./Typography-BE-vQSfx.js";
3
- import { t as InfoSummary } from "./InfoSummary-uorFDD40.js";
1
+ import "./useThemedStyles-MLtE91hE.js";
2
+ import "./Typography-j84zoCoZ.js";
3
+ import { t as InfoSummary } from "./InfoSummary-DcupqKIy.js";
4
4
 
5
5
  export { InfoSummary };
package/dist/input.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import "./types-CDUx-y9q.js";
2
- import { t as Input } from "./index-pnnP9M22.js";
1
+ import { t as Input } from "./index-DH0vhxG-.js";
3
2
  export { Input };
package/dist/input.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./Icon-Cv0qztmq.js";
2
- import "./useThemedStyles-3rUXJYgS.js";
3
- import "./Typography-BE-vQSfx.js";
4
- import "./Label-QQpNWSeV.js";
5
- import { t as Input } from "./Input-BvbMEjwE.js";
1
+ import "./useThemedStyles-MLtE91hE.js";
2
+ import "./Icon-61UaAUrM.js";
3
+ import "./Typography-j84zoCoZ.js";
4
+ import "./Label-BhqH21lT.js";
5
+ import { t as Input } from "./Input-DLJz5Mrn.js";
6
6
 
7
7
  export { Input };
@@ -0,0 +1,2 @@
1
+ import { t as Popover } from "./index-BANOx3xI.js";
2
+ export { Popover };
@@ -0,0 +1,6 @@
1
+ import "./useThemedStyles-MLtE91hE.js";
2
+ import "./useDismiss-DJ1mh-X3.js";
3
+ import "./useFloating--PcINgSt.js";
4
+ import { t as Popover } from "./Popover-BsDGCJ-f.js";
5
+
6
+ export { Popover };
@@ -43,4 +43,4 @@ interface LayoutProps {
43
43
  type CommonStyleProps = MarginProps & PaddingProps & TextProps & LayoutProps;
44
44
  //#endregion
45
45
  export { TextProps as a, PaddingProps as i, LayoutProps as n, MarginProps as r, CommonStyleProps as t };
46
- //# sourceMappingURL=styleProps-D405c8KF.d.ts.map
46
+ //# sourceMappingURL=styleProps-5iqKZpC1.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { t as Switch } from "./index-DewFmT68.js";
2
+ export { Switch };
package/dist/switch.js ADDED
@@ -0,0 +1,4 @@
1
+ import "./useThemedStyles-MLtE91hE.js";
2
+ import { t as Switch } from "./Switch-B4e9qBOu.js";
3
+
4
+ export { Switch };
@@ -1,2 +1,2 @@
1
- import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-DUrGjyKy.js";
1
+ import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-2WYvBk8I.js";
2
2
  export { SwitchOption, TabSwitch, TabSwitchProps };
@@ -1,5 +1,5 @@
1
- import "./useThemedStyles-3rUXJYgS.js";
2
- import "./Typography-BE-vQSfx.js";
3
- import { t as TabSwitch } from "./TabSwitch-De30bFX2.js";
1
+ import "./useThemedStyles-MLtE91hE.js";
2
+ import "./Typography-j84zoCoZ.js";
3
+ import { t as TabSwitch } from "./TabSwitch-CvnlK0NZ.js";
4
4
 
5
5
  export { TabSwitch };
@@ -1,3 +1,3 @@
1
- import "./types-CDUx-y9q.js";
2
- import { t as TextArea } from "./index-BspBF3Mv.js";
1
+ import "./types-ubME1KhJ.js";
2
+ import { t as TextArea } from "./index-CyntoY7A.js";
3
3
  export { TextArea };
package/dist/text-area.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./Icon-Cv0qztmq.js";
2
- import "./useThemedStyles-3rUXJYgS.js";
3
- import "./Typography-BE-vQSfx.js";
4
- import "./Label-QQpNWSeV.js";
5
- import { t as TextArea } from "./TextArea-CpIx36BV.js";
1
+ import "./useThemedStyles-MLtE91hE.js";
2
+ import "./Icon-61UaAUrM.js";
3
+ import "./Typography-j84zoCoZ.js";
4
+ import "./Label-BhqH21lT.js";
5
+ import { t as TextArea } from "./TextArea-CUrG_9je.js";
6
6
 
7
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-CIxyqe-m.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-CCiP7SPG.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-Dro_peJg.js";
3
+ import { n as useTheme, t as ThemeProvider } from "./ThemeContext-CesN6Ejm.js";
4
4
 
5
5
  export { ThemeProvider, useTheme };
@@ -0,0 +1,15 @@
1
+ //#region src/hooks/useFloating/types.d.ts
2
+ type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end' | 'center';
3
+ type Strategy = 'fixed' | 'absolute';
4
+ type FloatingOptions = {
5
+ placement?: Placement;
6
+ offsetX?: number;
7
+ offsetY?: number;
8
+ keepInViewport?: boolean;
9
+ viewportMargin?: number;
10
+ scrollContainerId?: string;
11
+ strategy?: Strategy;
12
+ };
13
+ //#endregion
14
+ export { Placement as n, FloatingOptions as t };
15
+ //# sourceMappingURL=types-Dsf33Reg.d.ts.map
@@ -1,8 +1,8 @@
1
- import { a as TextProps, r as MarginProps } from "./styleProps-D405c8KF.js";
2
- import { r as TypeStyles, t as SlotStyle } from "./useThemedStyles-B7irjShy.js";
1
+ import { a as TextProps, r as MarginProps } from "./styleProps-5iqKZpC1.js";
2
+ import { r as TypeStyles, t as SlotStyle } from "./useThemedStyles-C6dNoaRC.js";
3
3
  import { ElementType, ReactNode } from "react";
4
4
 
5
- //#region src/components/toolkit/Typography/style.d.ts
5
+ //#region src/components/commons/toolkit/Typography/style.d.ts
6
6
  declare function createTypographyStyles(props: TypographyProps): {
7
7
  base: {
8
8
  display: "flex";
@@ -22,7 +22,7 @@ declare function createTypographyStyles(props: TypographyProps): {
22
22
  text: SlotStyle;
23
23
  };
24
24
  //#endregion
25
- //#region src/components/toolkit/Typography/types.d.ts
25
+ //#region src/components/commons/toolkit/Typography/types.d.ts
26
26
  interface TypographyProps extends TextProps, MarginProps {
27
27
  variant: TypographyVariant;
28
28
  id?: string;
@@ -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-CDUx-y9q.d.ts.map
43
+ //# sourceMappingURL=types-ubME1KhJ.d.ts.map
@@ -1,7 +1,7 @@
1
- import { t as TypographyProps } from "./types-CDUx-y9q.js";
1
+ import { t as TypographyProps } from "./types-ubME1KhJ.js";
2
2
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
- //#region src/components/toolkit/Typography/index.d.ts
4
+ //#region src/components/commons/toolkit/Typography/index.d.ts
5
5
  declare function Typography(props: TypographyProps): react_jsx_runtime0.JSX.Element;
6
6
  //#endregion
7
7
  export { Typography };
@@ -1,4 +1,4 @@
1
- import "./useThemedStyles-3rUXJYgS.js";
2
- import { t as Typography } from "./Typography-BE-vQSfx.js";
1
+ import "./useThemedStyles-MLtE91hE.js";
2
+ import { t as Typography } from "./Typography-j84zoCoZ.js";
3
3
 
4
4
  export { Typography };
@@ -0,0 +1,20 @@
1
+ import { RefObject } from "react";
2
+
3
+ //#region src/hooks/useDismiss/index.d.ts
4
+ type UseDismissParams = {
5
+ open: boolean;
6
+ closeOnEscape?: boolean;
7
+ closeOnOutsideClick?: boolean;
8
+ refs: Array<RefObject<HTMLElement | null>>;
9
+ onClose: () => void;
10
+ };
11
+ declare function useDismiss({
12
+ open,
13
+ refs,
14
+ closeOnEscape,
15
+ closeOnOutsideClick,
16
+ onClose
17
+ }: UseDismissParams): void;
18
+ //#endregion
19
+ export { useDismiss };
20
+ //# sourceMappingURL=use-dismiss.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { t as useDismiss } from "./useDismiss-DJ1mh-X3.js";
2
+
3
+ export { useDismiss };
@@ -0,0 +1,15 @@
1
+ import { t as FloatingOptions } from "./types-Dsf33Reg.js";
2
+
3
+ //#region src/hooks/useFloating/index.d.ts
4
+ type AnchorLike = {
5
+ getBoundingClientRect: () => DOMRect;
6
+ };
7
+ type Anchor = HTMLElement | AnchorLike;
8
+ declare function useFloating(targetRef: React.RefObject<Anchor>, options?: FloatingOptions): {
9
+ floatingEl: HTMLElement | null;
10
+ floatingRef: (el: HTMLElement | null) => void;
11
+ update: () => void;
12
+ };
13
+ //#endregion
14
+ export { AnchorLike, useFloating };
15
+ //# sourceMappingURL=use-floating.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { t as useFloating } from "./useFloating--PcINgSt.js";
2
+
3
+ export { useFloating };
@@ -0,0 +1,12 @@
1
+ import { AnchorLike } from "./use-floating.js";
2
+
3
+ //#region src/hooks/useVirtualAnchor/index.d.ts
4
+ declare function useVirtualAnchor(): {
5
+ anchorRef: {
6
+ current: AnchorLike;
7
+ };
8
+ setPoint: (x: number, y: number) => void;
9
+ };
10
+ //#endregion
11
+ export { useVirtualAnchor };
12
+ //# sourceMappingURL=use-virtual-anchor.d.ts.map
@@ -0,0 +1,40 @@
1
+ import { useCallback, useMemo, useRef } from "react";
2
+
3
+ //#region src/hooks/useVirtualAnchor/index.ts
4
+ function rectFromPoint({ x, y }) {
5
+ return {
6
+ x,
7
+ y,
8
+ top: y,
9
+ left: x,
10
+ right: x,
11
+ bottom: y,
12
+ width: 0,
13
+ height: 0,
14
+ toJSON: () => ({
15
+ x,
16
+ y
17
+ })
18
+ };
19
+ }
20
+ function useVirtualAnchor() {
21
+ const pointRef = useRef({
22
+ x: 0,
23
+ y: 0
24
+ });
25
+ return {
26
+ anchorRef: useMemo(() => {
27
+ return { current: { getBoundingClientRect: () => rectFromPoint(pointRef.current) } };
28
+ }, []),
29
+ setPoint: useCallback((x, y) => {
30
+ pointRef.current = {
31
+ x,
32
+ y
33
+ };
34
+ }, [])
35
+ };
36
+ }
37
+
38
+ //#endregion
39
+ export { useVirtualAnchor };
40
+ //# sourceMappingURL=use-virtual-anchor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-virtual-anchor.js","names":[],"sources":["../src/hooks/useVirtualAnchor/index.ts"],"sourcesContent":["// External Libraries\nimport { useCallback, useMemo, useRef } from 'react'\n\n// Types\nimport type { AnchorLike } from '../useFloating'\n\ntype Point = { x: number; y: number }\n\nfunction rectFromPoint({ x, y }: Point): DOMRect {\n return {\n x,\n y,\n top: y,\n left: x,\n right: x,\n bottom: y,\n width: 0,\n height: 0,\n toJSON: () => ({ x, y })\n } as unknown as DOMRect\n}\n\nexport function useVirtualAnchor() {\n const pointRef = useRef<Point>({ x: 0, y: 0 })\n\n const anchorRef = useMemo(() => {\n const virtualEl: AnchorLike = {\n getBoundingClientRect: () => rectFromPoint(pointRef.current)\n }\n return { current: virtualEl }\n }, [])\n\n const setPoint = useCallback((x: number, y: number) => {\n pointRef.current = { x, y }\n }, [])\n\n return { anchorRef, setPoint }\n}\n"],"mappings":";;;AAQA,SAAS,cAAc,EAAE,GAAG,KAAqB;AAC/C,QAAO;EACL;EACA;EACA,KAAK;EACL,MAAM;EACN,OAAO;EACP,QAAQ;EACR,OAAO;EACP,QAAQ;EACR,eAAe;GAAE;GAAG;GAAG;EACxB;;AAGH,SAAgB,mBAAmB;CACjC,MAAM,WAAW,OAAc;EAAE,GAAG;EAAG,GAAG;EAAG,CAAC;AAa9C,QAAO;EAAE,WAXS,cAAc;AAI9B,UAAO,EAAE,SAHqB,EAC5B,6BAA6B,cAAc,SAAS,QAAQ,EAC7D,EAC4B;KAC5B,EAAE,CAAC;EAMc,UAJH,aAAa,GAAW,MAAc;AACrD,YAAS,UAAU;IAAE;IAAG;IAAG;KAC1B,EAAE,CAAC;EAEwB"}
@@ -0,0 +1,35 @@
1
+ import { useEffect } from "react";
2
+
3
+ //#region src/hooks/useDismiss/index.ts
4
+ function useDismiss({ open, refs, closeOnEscape = true, closeOnOutsideClick = true, onClose }) {
5
+ useEffect(() => {
6
+ if (!open) return;
7
+ const isInsideSomeRef = (node) => refs.some((r) => r.current?.contains(node));
8
+ const onMouseDown = (e) => {
9
+ if (!closeOnOutsideClick) return;
10
+ const t = e.target;
11
+ if (isInsideSomeRef(t)) return;
12
+ onClose();
13
+ };
14
+ const onKeyDown = (e) => {
15
+ if (!closeOnEscape) return;
16
+ if (e.key === "Escape") onClose();
17
+ };
18
+ document.addEventListener("mousedown", onMouseDown);
19
+ document.addEventListener("keydown", onKeyDown);
20
+ return () => {
21
+ document.removeEventListener("mousedown", onMouseDown);
22
+ document.removeEventListener("keydown", onKeyDown);
23
+ };
24
+ }, [
25
+ open,
26
+ onClose,
27
+ refs,
28
+ closeOnOutsideClick,
29
+ closeOnEscape
30
+ ]);
31
+ }
32
+
33
+ //#endregion
34
+ export { useDismiss as t };
35
+ //# sourceMappingURL=useDismiss-DJ1mh-X3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDismiss-DJ1mh-X3.js","names":[],"sources":["../src/hooks/useDismiss/index.ts"],"sourcesContent":["// External Libraries\nimport { type RefObject, useEffect } from 'react'\n\ntype UseDismissParams = {\n open: boolean\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 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 onMouseDown = (e: MouseEvent) => {\n if (!closeOnOutsideClick) return\n const t = e.target as Node\n if (isInsideSomeRef(t)) return\n onClose()\n }\n\n const onKeyDown = (e: KeyboardEvent) => {\n if (!closeOnEscape) return\n if (e.key === 'Escape') onClose()\n }\n\n document.addEventListener('mousedown', onMouseDown)\n document.addEventListener('keydown', onKeyDown)\n\n return () => {\n document.removeEventListener('mousedown', onMouseDown)\n document.removeEventListener('keydown', onKeyDown)\n }\n }, [open, onClose, refs, closeOnOutsideClick, closeOnEscape])\n}\n"],"mappings":";;;AAWA,SAAgB,WAAW,EACzB,MACA,MACA,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,eAAe,MAAkB;AACrC,OAAI,CAAC,oBAAqB;GAC1B,MAAM,IAAI,EAAE;AACZ,OAAI,gBAAgB,EAAE,CAAE;AACxB,YAAS;;EAGX,MAAM,aAAa,MAAqB;AACtC,OAAI,CAAC,cAAe;AACpB,OAAI,EAAE,QAAQ,SAAU,UAAS;;AAGnC,WAAS,iBAAiB,aAAa,YAAY;AACnD,WAAS,iBAAiB,WAAW,UAAU;AAE/C,eAAa;AACX,YAAS,oBAAoB,aAAa,YAAY;AACtD,YAAS,oBAAoB,WAAW,UAAU;;IAEnD;EAAC;EAAM;EAAS;EAAM;EAAqB;EAAc,CAAC"}