softable-pixels-web 1.1.20 → 1.1.21

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 (66) hide show
  1. package/dist/{BasePopover-UzOryrTn.js → BasePopover-BVeMpuWR.js} +2 -2
  2. package/dist/{BasePopover-UzOryrTn.js.map → BasePopover-BVeMpuWR.js.map} +1 -1
  3. package/dist/{ContextMenu-vFIUXgP8.js → ContextMenu-B94eRUm7.js} +3 -3
  4. package/dist/{ContextMenu-vFIUXgP8.js.map → ContextMenu-B94eRUm7.js.map} +1 -1
  5. package/dist/{Input-B6a6mXsZ.js → Input-7z9sFjK3.js} +8 -3
  6. package/dist/Input-7z9sFjK3.js.map +1 -0
  7. package/dist/MaskModule-DBNrJACG.js +704 -0
  8. package/dist/MaskModule-DBNrJACG.js.map +1 -0
  9. package/dist/{Popover-C-NRJlWf.js → Popover-BDNQO09F.js} +3 -5
  10. package/dist/Popover-BDNQO09F.js.map +1 -0
  11. package/dist/{Select-CVcQGxjv.js → Select-Bad465DY.js} +4 -3
  12. package/dist/Select-Bad465DY.js.map +1 -0
  13. package/dist/{TextArea-Oqw0zh_x.js → TextArea-DHUTFFOU.js} +1 -1
  14. package/dist/{TextArea-Oqw0zh_x.js.map → TextArea-DHUTFFOU.js.map} +1 -1
  15. package/dist/base-popover.d.ts +3 -3
  16. package/dist/base-popover.js +3 -3
  17. package/dist/button.d.ts +2 -2
  18. package/dist/check-item.d.ts +1 -1
  19. package/dist/checkbox.d.ts +2 -2
  20. package/dist/context-menu.d.ts +1 -1
  21. package/dist/context-menu.js +4 -4
  22. package/dist/icon-button.d.ts +1 -1
  23. package/dist/{index-BD5ThARj.d.ts → index-BNPyjNve.d.ts} +1 -1
  24. package/dist/{index-B6V8Bhgk.d.ts → index-BY84CAyh.d.ts} +2 -2
  25. package/dist/{index-CzB15994.d.ts → index-BeZYjWoj.d.ts} +1 -1
  26. package/dist/{index-BymgvkBq.d.ts → index-BhxcqGNw.d.ts} +2 -2
  27. package/dist/index-BjwQCXWj.d.ts +145 -0
  28. package/dist/{index-aQIW73fh.d.ts → index-CEk3W9fj.d.ts} +1 -1
  29. package/dist/{index-ROp2paYJ.d.ts → index-Chi8TU12.d.ts} +1 -1
  30. package/dist/{index-BD5Vr9sw.d.ts → index-Cl2z9ftU.d.ts} +2 -2
  31. package/dist/{index-9BlZnPff.d.ts → index-ClqTlRGD.d.ts} +6 -5
  32. package/dist/{index-DH6rpwqM.d.ts → index-CyvNJW2l.d.ts} +2 -2
  33. package/dist/{index-DK9_OGgn.d.ts → index-DEKll7zF.d.ts} +2 -2
  34. package/dist/{index-BLsNfmom.d.ts → index-DVE8mV5m.d.ts} +4 -4
  35. package/dist/{index-B1QUSkjv.d.ts → index-Dp4TTO2D.d.ts} +5 -3
  36. package/dist/{index-v04O7Gs-.d.ts → index-modFVzpZ.d.ts} +2 -2
  37. package/dist/index.d.ts +15 -15
  38. package/dist/index.js +8 -7
  39. package/dist/input.d.ts +1 -1
  40. package/dist/input.js +2 -1
  41. package/dist/mask-modules.d.ts +2 -144
  42. package/dist/mask-modules.js +2 -704
  43. package/dist/popover.d.ts +2 -2
  44. package/dist/popover.js +2 -2
  45. package/dist/select.d.ts +2 -2
  46. package/dist/select.js +4 -4
  47. package/dist/{styleProps-B2pBEf9N.d.ts → styleProps-CWZn-ouw.d.ts} +1 -1
  48. package/dist/switch.d.ts +1 -1
  49. package/dist/tab-switch.d.ts +1 -1
  50. package/dist/text-area.d.ts +1 -1
  51. package/dist/text-area.js +1 -1
  52. package/dist/theme-context.d.ts +1 -1
  53. package/dist/{types-rPQapqo2.d.ts → types-BIJRqScJ.d.ts} +1 -1
  54. package/dist/{types-Ck6jQYTO.d.ts → types-BM6zJmu5.d.ts} +3 -3
  55. package/dist/{types-699enaOL.d.ts → types-CRA-1_6O.d.ts} +4 -3
  56. package/dist/typography.d.ts +1 -1
  57. package/dist/use-floating.d.ts +1 -1
  58. package/dist/use-floating.js +1 -1
  59. package/dist/{useFloating-DCxblHIR.js → useFloating-DRwB71jG.js} +2 -1
  60. package/dist/{useFloating-DCxblHIR.js.map → useFloating-DRwB71jG.js.map} +1 -1
  61. package/dist/{useThemedStyles-C23Tevdv.d.ts → useThemedStyles-BUR6rDGs.d.ts} +1 -1
  62. package/package.json +1 -1
  63. package/dist/Input-B6a6mXsZ.js.map +0 -1
  64. package/dist/Popover-C-NRJlWf.js.map +0 -1
  65. package/dist/Select-CVcQGxjv.js.map +0 -1
  66. package/dist/mask-modules.js.map +0 -1
@@ -1,5 +1,6 @@
1
- import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-B2pBEf9N.js";
2
- import { n as StylesOf } from "./useThemedStyles-C23Tevdv.js";
1
+ import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-CWZn-ouw.js";
2
+ import { n as StylesOf } from "./useThemedStyles-BUR6rDGs.js";
3
+ import { r as MaskType } from "./index-BjwQCXWj.js";
3
4
  import * as react0 from "react";
4
5
  import { HTMLInputTypeAttribute, ReactNode } from "react";
5
6
 
@@ -79,6 +80,7 @@ interface InputProps extends LayoutProps, MarginProps {
79
80
  value?: string;
80
81
  placeholder?: string;
81
82
  type?: HTMLInputTypeAttribute;
83
+ mask?: MaskType;
82
84
  required?: boolean;
83
85
  disabled?: boolean;
84
86
  minLength?: number;
@@ -101,4 +103,4 @@ interface InputMethods {
101
103
  declare const Input: react0.ForwardRefExoticComponent<InputProps & react0.RefAttributes<InputMethods>>;
102
104
  //#endregion
103
105
  export { Input as t };
104
- //# sourceMappingURL=index-B1QUSkjv.d.ts.map
106
+ //# sourceMappingURL=index-Dp4TTO2D.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as CommonStyleProps } from "./styleProps-B2pBEf9N.js";
1
+ import { t as CommonStyleProps } from "./styleProps-CWZn-ouw.js";
2
2
  import { ReactNode } from "react";
3
3
  import * as react_jsx_runtime2 from "react/jsx-runtime";
4
4
 
@@ -44,4 +44,4 @@ interface TabSwitchProps<T> extends CommonStyleProps {
44
44
  declare const TabSwitch: <T>(props: TabSwitchProps<T>) => react_jsx_runtime2.JSX.Element;
45
45
  //#endregion
46
46
  export { SwitchOption as n, TabSwitchProps as r, TabSwitch as t };
47
- //# sourceMappingURL=index-v04O7Gs-.d.ts.map
47
+ //# sourceMappingURL=index-modFVzpZ.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,20 +1,20 @@
1
- import "./types-Ck6jQYTO.js";
2
- import { t as Button } from "./index-BLsNfmom.js";
3
- import { t as IconButton } from "./index-ROp2paYJ.js";
4
- import { t as Input } from "./index-B1QUSkjv.js";
5
- import { n as types_d_exports$2, t as Select } from "./index-9BlZnPff.js";
6
- import { n as types_d_exports$1 } from "./types-699enaOL.js";
7
- import { t as TextArea } from "./index-BD5Vr9sw.js";
8
- import { t as Popover } from "./index-DK9_OGgn.js";
9
- import { t as BasePopover } from "./index-DH6rpwqM.js";
10
- import { t as CheckItem } from "./index-CzB15994.js";
11
- import { t as Checkbox } from "./index-BymgvkBq.js";
12
- import { n as types_d_exports, t as ContextMenu } from "./index-B6V8Bhgk.js";
1
+ import "./types-BM6zJmu5.js";
2
+ import { t as Button } from "./index-DVE8mV5m.js";
3
+ import { t as IconButton } from "./index-Chi8TU12.js";
4
+ import { t as Input } from "./index-Dp4TTO2D.js";
5
+ import { n as types_d_exports$2, t as Select } from "./index-ClqTlRGD.js";
6
+ import { n as types_d_exports$1 } from "./types-CRA-1_6O.js";
7
+ import { t as TextArea } from "./index-Cl2z9ftU.js";
8
+ import { t as Popover } from "./index-DEKll7zF.js";
9
+ import { t as BasePopover } from "./index-CyvNJW2l.js";
10
+ import { t as CheckItem } from "./index-BeZYjWoj.js";
11
+ import { t as Checkbox } from "./index-BhxcqGNw.js";
12
+ import { n as types_d_exports, t as ContextMenu } from "./index-BY84CAyh.js";
13
13
  import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
14
- import { t as Switch } from "./index-aQIW73fh.js";
15
- import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-v04O7Gs-.js";
14
+ import { t as Switch } from "./index-CEk3W9fj.js";
15
+ import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-modFVzpZ.js";
16
16
  import { Typography } from "./typography.js";
17
- 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-BD5ThARj.js";
17
+ 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-BNPyjNve.js";
18
18
  import { useDismiss } from "./use-dismiss.js";
19
19
  import { AnchorLike, useFloating } from "./use-floating.js";
20
20
  import { useVirtualAnchor } from "./use-virtual-anchor.js";
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import "./useThemedStyles-CrarDyWc.js";
2
2
  import { t as Switch } from "./Switch-DJNZbvzy.js";
3
3
  import { t as useDismiss } from "./useDismiss-CAEk_GV-.js";
4
- import { t as useFloating } from "./useFloating-DCxblHIR.js";
5
- import { n as types_exports$1, t as Popover } from "./Popover-C-NRJlWf.js";
4
+ import { t as useFloating } from "./useFloating-DRwB71jG.js";
5
+ import { n as types_exports$1, t as Popover } from "./Popover-BDNQO09F.js";
6
6
  import "./Icon-KzwFJI_k.js";
7
7
  import { t as Typography } from "./Typography-BkFV7BhK.js";
8
8
  import { t as Checkbox } from "./Checkbox-j9ZnSxT7.js";
@@ -10,14 +10,15 @@ import { n as useTheme, t as ThemeProvider } from "./ThemeContext-DhXvmWKO.js";
10
10
  import { t as TabSwitch } from "./TabSwitch-DlXdgLPc.js";
11
11
  import { t as CheckItem } from "./CheckItem-CJqWCE1W.js";
12
12
  import { t as InfoSummary } from "./InfoSummary-Cf2ein9V.js";
13
- import { n as types_exports, t as ContextMenu } from "./ContextMenu-vFIUXgP8.js";
14
- import { t as BasePopover } from "./BasePopover-UzOryrTn.js";
13
+ import { n as types_exports, t as ContextMenu } from "./ContextMenu-B94eRUm7.js";
14
+ import { t as BasePopover } from "./BasePopover-BVeMpuWR.js";
15
15
  import { t as Button } from "./Button-Cbt1knrt.js";
16
16
  import { t as IconButton } from "./IconButton-B_yAoSQR.js";
17
17
  import "./Label-BHq2knad.js";
18
- import { t as Input } from "./Input-B6a6mXsZ.js";
19
- import { n as types_exports$2, t as Select } from "./Select-CVcQGxjv.js";
20
- import { t as TextArea } from "./TextArea-Oqw0zh_x.js";
18
+ import "./MaskModule-DBNrJACG.js";
19
+ import { t as Input } from "./Input-7z9sFjK3.js";
20
+ import { n as types_exports$2, t as Select } from "./Select-Bad465DY.js";
21
+ import { t as TextArea } from "./TextArea-DHUTFFOU.js";
21
22
  import { useVirtualAnchor } from "./use-virtual-anchor.js";
22
23
 
23
24
  export { BasePopover, Button, CheckItem, Checkbox, ContextMenu, types_exports as ContextMenuTypes, IconButton, InfoSummary, Input, Popover, types_exports$1 as PopoverTypes, Select, types_exports$2 as SelectTypes, Switch, TabSwitch, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
package/dist/input.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Input } from "./index-B1QUSkjv.js";
1
+ import { t as Input } from "./index-Dp4TTO2D.js";
2
2
  export { Input };
package/dist/input.js CHANGED
@@ -2,6 +2,7 @@ import "./useThemedStyles-CrarDyWc.js";
2
2
  import "./Icon-KzwFJI_k.js";
3
3
  import "./Typography-BkFV7BhK.js";
4
4
  import "./Label-BHq2knad.js";
5
- import { t as Input } from "./Input-B6a6mXsZ.js";
5
+ import "./MaskModule-DBNrJACG.js";
6
+ import { t as Input } from "./Input-7z9sFjK3.js";
6
7
 
7
8
  export { Input };
@@ -1,144 +1,2 @@
1
- //#region src/services/MaskModule/enums.d.ts
2
- /**
3
- * Supported locales (country + language region).
4
- *
5
- * Extend this enum as needed for new countries.
6
- */
7
- declare enum Locale {
8
- BR = "pt-BR",
9
- // Brazil
10
- US = "en-US",
11
- // United States
12
- AR = "es-AR",
13
- }
14
- /**
15
- * Types of masks supported in the system.
16
- *
17
- * Add new types as needed for different data formats.
18
- */
19
- declare enum MaskType {
20
- CPF = "CPF",
21
- CNPJ = "CNPJ",
22
- DOCUMENT = "DOCUMENT",
23
- PHONE = "PHONE",
24
- DATE = "DATE",
25
- FLOAT = "FLOAT",
26
- INTEGER = "INTEGER",
27
- MONEY = "MONEY",
28
- ZIP_CODE = "ZIP_CODE",
29
- NUMERIC_SYMBOL = "NUMERIC_SYMBOL",
30
- }
31
- //#endregion
32
- //#region src/services/MaskModule/types.d.ts
33
- /**
34
- * Represents a generic mask.
35
- *
36
- * A mask is responsible for formatting and unformatting (removing formatting) from a value.
37
- */
38
- interface Mask {
39
- /**
40
- * Optional minimum length of the masked string.
41
- */
42
- minLength?: number;
43
- /**
44
- * Optional maximum length of the masked string.
45
- */
46
- maxLength?: number;
47
- /**
48
- * Formats a plain string into a masked format.
49
- * @param value - Raw string (e.g., "12345678901").
50
- * @returns Masked string (e.g., "123.456.789-01").
51
- */
52
- format(value: string): string;
53
- /**
54
- * Removes all mask characters from a formatted string.
55
- * @param value - Masked string (e.g., "123.456.789-01").
56
- * @returns Unmasked string (e.g., "12345678901").
57
- */
58
- unmask(value: string): string;
59
- }
60
- /**
61
- * Represents a validator for a masked value.
62
- *
63
- * A validator checks whether a masked value is valid based on rules.
64
- */
65
- interface Validator {
66
- /**
67
- * Validates whether the input value is valid.
68
- * @param value - Masked string.
69
- * @returns `true` if valid, `false` otherwise.
70
- */
71
- validate(value: string): boolean;
72
- }
73
- //#endregion
74
- //#region src/services/MaskModule/base/BaseMask.d.ts
75
- /**
76
- * Abstract class that provides default behavior for most masks.
77
- * - Implements unmask() by removing all non-numeric characters.
78
- * - Supports optional maxLength and minLength constraints.
79
- */
80
- declare abstract class BaseMask implements Mask {
81
- /**
82
- * Maximum length of the masked string (optional).
83
- */
84
- maxLength?: number;
85
- /**
86
- * Minimum length of the masked string (optional).
87
- */
88
- minLength?: number;
89
- constructor(minLength?: number, maxLength?: number);
90
- /**
91
- * Removes all non-numeric characters from a string.
92
- * @param value - Masked or unmasked string.
93
- * @returns Plain string with digits only.
94
- */
95
- unmask(value: string): string;
96
- /**
97
- * Must be implemented by each concrete mask class.
98
- * Applies the mask format to the input string.
99
- * @param value - Raw string.
100
- * @returns Masked string.
101
- */
102
- abstract format(value: string): string;
103
- }
104
- //#endregion
105
- //#region src/services/MaskModule/base/BaseValidator.d.ts
106
- /**
107
- * Abstract class providing common validation utilities.
108
- * - Supports regex validation.
109
- * - Supports min and max length validation.
110
- */
111
- declare abstract class BaseValidator implements Validator {
112
- protected pattern?: RegExp;
113
- protected minLength?: number;
114
- protected maxLength?: number;
115
- constructor(options?: {
116
- pattern?: RegExp;
117
- minLength?: number;
118
- maxLength?: number;
119
- });
120
- /**
121
- * Validates the input value based on:
122
- * - Pattern matching (if defined)
123
- * - Min length (if defined)
124
- * - Max length (if defined)
125
- *
126
- * Override this method if you need custom validation logic.
127
- *
128
- * @param value - Value to validate (usually masked string)
129
- * @returns true if valid, false otherwise
130
- */
131
- validate(value: string): boolean;
132
- }
133
- //#endregion
134
- //#region src/services/MaskModule/MaskModule.d.ts
135
- declare const MaskModule: {
136
- registerMask(locale: Locale, type: MaskType, mask: BaseMask): void;
137
- registerValidator(locale: Locale, type: MaskType, validator: BaseValidator): void;
138
- getMask(locale: Locale, type: MaskType): BaseMask | undefined;
139
- getValidator(locale: Locale, type: MaskType): BaseValidator | undefined;
140
- reset(): void;
141
- };
142
- //#endregion
143
- export { Locale, MaskModule, MaskType };
144
- //# sourceMappingURL=mask-modules.d.ts.map
1
+ import { n as Locale, r as MaskType, t as MaskModule } from "./index-BjwQCXWj.js";
2
+ export { Locale, MaskModule, MaskType };