@proprioo/salatim 36.3.0 → 36.3.2

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.
@@ -1,5 +1,5 @@
1
1
  import { E164Number } from 'libphonenumber-js/types';
2
2
  export declare const formatInternationalPhone: (phone: string | E164Number) => string;
3
3
  export declare const isValidPhoneNumber: (phone: string) => boolean;
4
- export declare const parsePhoneNumber: (phone: string) => import("react-phone-number-input").PhoneNumber | undefined;
4
+ export declare const parsePhoneNumber: (phone: string) => import("libphonenumber-js/core").PhoneNumber | undefined;
5
5
  export declare const formatPhoneNumber: (phone: string) => string;
package/lib/ui/index.d.ts CHANGED
@@ -54,6 +54,7 @@ export { default as Option, OptionProps } from './src/option/Option';
54
54
  export { default as Subtitle, SubtitleProps } from './src/subtitle/Subtitle';
55
55
  export { TagAppearance, TagColorsTypes, TagProps } from './src/tag/interfaces';
56
56
  export { default as Tag } from './src/tag/Tag';
57
+ export { default as ClickableTag } from './src/clickableTag/ClickableTag';
57
58
  export { TagBase } from './src/tag/Tag.styles';
58
59
  export { default as Textarea } from './src/textarea/Textarea';
59
60
  export { default as TextToggle } from './src/textToggle/TextToggle';
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ClickableTagProps } from './interfaces';
3
+ declare const ClickableTag: FC<ClickableTagProps>;
4
+ export default ClickableTag;
@@ -0,0 +1,18 @@
1
+ import { ClickableTagProps } from './interfaces';
2
+ type TagBaseProps = {
3
+ close?: boolean;
4
+ click?: boolean;
5
+ icon?: boolean;
6
+ };
7
+ export declare const TagBase: import("styled-components").FlattenSimpleInterpolation;
8
+ export declare const TAG_BUSINESS_BASE: import("styled-components").FlattenSimpleInterpolation;
9
+ export declare const BasicTag: import("styled-components").StyledComponent<"span", any, Pick<ClickableTagProps, "color" | "appearance"> & TagBaseProps, never>;
10
+ export declare const TagCloser: import("styled-components").StyledComponent<"button", any, Pick<ClickableTagProps, "appearance">, never>;
11
+ export declare const ClickableTag: import("styled-components").StyledComponent<"span", any, Pick<ClickableTagProps, "color" | "appearance"> & TagBaseProps & {
12
+ role: "button";
13
+ tabIndex: 0;
14
+ } & {
15
+ onClick?: () => void;
16
+ }, "role" | "tabIndex">;
17
+ export declare const IconWrapper: import("styled-components").StyledComponent<"span", any, {}, never>;
18
+ export {};
@@ -0,0 +1,74 @@
1
+ export declare const TagColors: {
2
+ BLUE: {
3
+ color: string;
4
+ background: string;
5
+ colorOutlined: string;
6
+ backgroundOutlined: string;
7
+ };
8
+ BLUE_LIGHT: {
9
+ color: string;
10
+ background: string;
11
+ colorOutlined: string;
12
+ backgroundOutlined: string;
13
+ };
14
+ GREY: {
15
+ color: string;
16
+ background: string;
17
+ colorOutlined: string;
18
+ backgroundOutlined: string;
19
+ };
20
+ GREY_LIGHT: {
21
+ color: string;
22
+ background: string;
23
+ colorOutlined: string;
24
+ backgroundOutlined: string;
25
+ };
26
+ GREEN: {
27
+ color: string;
28
+ background: string;
29
+ colorOutlined: string;
30
+ backgroundOutlined: string;
31
+ };
32
+ GREEN_LIGHT: {
33
+ color: string;
34
+ background: string;
35
+ colorOutlined: string;
36
+ backgroundOutlined: string;
37
+ };
38
+ ORANGE: {
39
+ color: string;
40
+ background: string;
41
+ colorOutlined: string;
42
+ backgroundOutlined: string;
43
+ };
44
+ ORANGE_LIGHT: {
45
+ color: string;
46
+ background: string;
47
+ colorOutlined: string;
48
+ backgroundOutlined: string;
49
+ };
50
+ ORANGE_LIGHTER: {
51
+ color: string;
52
+ background: string;
53
+ colorOutlined: string;
54
+ backgroundOutlined: string;
55
+ };
56
+ RED: {
57
+ color: string;
58
+ background: string;
59
+ colorOutlined: string;
60
+ backgroundOutlined: string;
61
+ };
62
+ RED_LIGHT: {
63
+ color: string;
64
+ background: string;
65
+ colorOutlined: string;
66
+ backgroundOutlined: string;
67
+ };
68
+ TERRACOTA: {
69
+ color: string;
70
+ background: string;
71
+ colorOutlined: string;
72
+ backgroundOutlined: string;
73
+ };
74
+ };
@@ -0,0 +1,30 @@
1
+ import { ReactElement } from 'react';
2
+ export type ClickableTagProps = {
3
+ labels: string[];
4
+ appearance?: TagAppearance;
5
+ closeAriaLabel?: string;
6
+ color?: TagColorsTypes;
7
+ dataTest?: string;
8
+ icon?: ReactElement<Element>;
9
+ numberOfTags?: number;
10
+ showCloseIcon?: boolean;
11
+ onClick?(): void;
12
+ };
13
+ export declare enum TagAppearance {
14
+ BUSINESS = "business",
15
+ CUSTOMER = "customer"
16
+ }
17
+ export declare enum TagColorsTypes {
18
+ BLUE = "BLUE",
19
+ BLUE_LIGHT = "BLUE_LIGHT",
20
+ GREEN = "GREEN",
21
+ GREEN_LIGHT = "GREEN_LIGHT",
22
+ GREY = "GREY",
23
+ GREY_LIGHT = "GREY_LIGHT",
24
+ ORANGE = "ORANGE",
25
+ ORANGE_LIGHT = "ORANGE_LIGHT",
26
+ ORANGE_LIGHTER = "ORANGE_LIGHTER",
27
+ RED = "RED",
28
+ RED_LIGHT = "RED_LIGHT",
29
+ TERRACOTA = "TERRACOTA"
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proprioo/salatim",
3
- "version": "36.3.0",
3
+ "version": "36.3.2",
4
4
  "description": "Proprioo component library",
5
5
  "keywords": [
6
6
  "components",
@@ -117,7 +117,7 @@
117
117
  "yup": "^1.4.0"
118
118
  },
119
119
  "peerDependencies": {
120
- "@proprioo/hokkaido": "^13.1.0",
120
+ "@proprioo/hokkaido": "^13.5.3",
121
121
  "date-fns": "^3.6.0",
122
122
  "polished": "^4.3.1",
123
123
  "react": "^18.3.1",