globalfy-design-system 1.17.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/@types/react-unicons.d.ts +2 -2
  2. package/dist/components/atoms/Alert/Alert.d.ts +27 -3
  3. package/dist/components/atoms/Alert/index.d.ts +0 -1
  4. package/dist/components/atoms/Alert/useAlert.d.ts +1 -1
  5. package/dist/components/atoms/Avatar/Avatar.d.ts +2 -2
  6. package/dist/components/atoms/Button/Button.d.ts +4 -4
  7. package/dist/components/atoms/Button/SpinnerIcon.d.ts +7 -0
  8. package/dist/components/atoms/Chip/Chip.d.ts +12 -2
  9. package/dist/components/atoms/Chip/Chip.stories.d.ts +1 -1
  10. package/dist/components/atoms/Chip/index.d.ts +0 -1
  11. package/dist/components/atoms/DatePicker/DatePicker.d.ts +1 -1
  12. package/dist/components/atoms/DropdownList/DropdownList.d.ts +3 -3
  13. package/dist/components/atoms/Flag/Flag.d.ts +5 -1
  14. package/dist/components/atoms/Flag/Flag.stories.d.ts +1 -1
  15. package/dist/components/atoms/Flag/index.d.ts +0 -1
  16. package/dist/components/atoms/Icon/Icon.d.ts +1 -1
  17. package/dist/components/atoms/Icon/feather/featherIconsList.d.ts +1 -1
  18. package/dist/components/atoms/Icon/glob-icons/glob-icons.d.ts +2 -0
  19. package/dist/components/atoms/Icon/glob-icons/icons/glob-amex.d.ts +1 -0
  20. package/dist/components/atoms/Icon/glob-icons/icons/glob-discover.d.ts +1 -0
  21. package/dist/components/atoms/Icon/glob-icons/icons/glob-mastercard-icon.d.ts +1 -0
  22. package/dist/components/atoms/Icon/glob-icons/icons/glob-paypal-icon.d.ts +1 -0
  23. package/dist/components/atoms/Icon/glob-icons/icons/glob-visa-icon.d.ts +1 -0
  24. package/dist/components/atoms/Icon/unicons/uniconsIconsList.d.ts +1 -1
  25. package/dist/components/atoms/Input/Input.d.ts +3 -3
  26. package/dist/components/atoms/InputMask/InputMask.d.ts +1 -1
  27. package/dist/components/atoms/Logo/Logo.d.ts +15 -2
  28. package/dist/components/atoms/Logo/index.d.ts +0 -1
  29. package/dist/components/atoms/PhoneNumberInput/PhoneNumberInput.d.ts +14 -1
  30. package/dist/components/atoms/PhoneNumberInput/PhoneNumberInput.stories.d.ts +1 -1
  31. package/dist/components/atoms/PhoneNumberInput/index.d.ts +0 -1
  32. package/dist/components/atoms/Popover/Popover.d.ts +16 -2
  33. package/dist/components/atoms/Popover/Popover.stories.d.ts +1 -1
  34. package/dist/components/atoms/Popover/index.d.ts +0 -1
  35. package/dist/components/atoms/RadioGroup/RadioGroup.d.ts +18 -2
  36. package/dist/components/atoms/RadioGroup/RadioGroup.stories.d.ts +1 -1
  37. package/dist/components/atoms/SegmentedControl/SegmentedControl.d.ts +16 -1
  38. package/dist/components/atoms/SegmentedControl/SegmentedControl.stories.d.ts +1 -1
  39. package/dist/components/atoms/SegmentedControl/index.d.ts +0 -1
  40. package/dist/components/atoms/Snackbar/Snackbar.d.ts +9 -2
  41. package/dist/components/atoms/Snackbar/useSnackbar.d.ts +1 -1
  42. package/dist/components/atoms/Switch/Switch.d.ts +10 -2
  43. package/dist/components/atoms/Switch/Switch.stories.d.ts +1 -1
  44. package/dist/components/atoms/Switch/index.d.ts +0 -1
  45. package/dist/components/atoms/Tabs/Tabs.d.ts +13 -1
  46. package/dist/components/atoms/Tabs/Tabs.stories.d.ts +1 -1
  47. package/dist/components/atoms/Tabs/index.d.ts +0 -1
  48. package/dist/components/atoms/Tag/Tag.d.ts +10 -1
  49. package/dist/components/atoms/Tag/Tag.stories.d.ts +1 -1
  50. package/dist/components/atoms/Tag/index.d.ts +0 -1
  51. package/dist/components/atoms/TextArea/TextArea.d.ts +1 -1
  52. package/dist/components/atoms/TextInput/TextInput.d.ts +1 -1
  53. package/dist/components/atoms/Tooltip/Tooltip.d.ts +2 -2
  54. package/dist/components/atoms/Tooltip/Tooltip.stories.d.ts +1 -1
  55. package/dist/components/atoms/Typography/Typography.d.ts +6 -1
  56. package/dist/components/atoms/Typography/Typography.stories.d.ts +1 -1
  57. package/dist/components/atoms/Typography/index.d.ts +0 -1
  58. package/dist/globalfy-design-system.js +8498 -8879
  59. package/dist/globalfy-design-system.umd.cjs +29 -29
  60. package/package.json +6 -3
  61. package/dist/components/atoms/Alert/Alert.types.d.ts +0 -24
  62. package/dist/components/atoms/Chip/Chip.types.d.ts +0 -12
  63. package/dist/components/atoms/Flag/Flag.types.d.ts +0 -6
  64. package/dist/components/atoms/Logo/Logo.types.d.ts +0 -15
  65. package/dist/components/atoms/PhoneNumberInput/PhoneNumberInput.types.d.ts +0 -15
  66. package/dist/components/atoms/Popover/Popover.types.d.ts +0 -16
  67. package/dist/components/atoms/RadioGroup/RadioGroup.types.d.ts +0 -18
  68. package/dist/components/atoms/SegmentedControl/SegmentedControl.types.d.ts +0 -17
  69. package/dist/components/atoms/Snackbar/Snackbar.types.d.ts +0 -9
  70. package/dist/components/atoms/Switch/Switch.types.d.ts +0 -10
  71. package/dist/components/atoms/Tabs/Tabs.types.d.ts +0 -14
  72. package/dist/components/atoms/Tag/Tag.types.d.ts +0 -11
  73. package/dist/components/atoms/Typography/Typography.types.d.ts +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "globalfy-design-system",
3
- "version": "1.17.0",
3
+ "version": "1.19.0",
4
4
  "description": "Globalfy Design System",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -25,6 +25,8 @@
25
25
  "build:dev:watch": "vite build --config vite.config.dev.ts --watch",
26
26
  "build": "tsc && vite build",
27
27
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
28
+ "prettier:check": "prettier --check './**/*.{ts,tsx,css,json,md}'",
29
+ "prettier:fix": "prettier --write './**/*.{ts,tsx,css,json,md}'",
28
30
  "typecheck": "tsc --project tsconfig.json",
29
31
  "storybook": "storybook dev -p 6006",
30
32
  "build-storybook": "storybook build",
@@ -92,6 +94,7 @@
92
94
  "@storybook/testing-library": "^0.2.2",
93
95
  "@testing-library/jest-dom": "6.4.8",
94
96
  "@testing-library/react": "^14.1.0",
97
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0",
95
98
  "@types/google-libphonenumber": "^7.4.30",
96
99
  "@types/jest": "^29.5.8",
97
100
  "@types/node": "^20.8.7",
@@ -120,8 +123,8 @@
120
123
  "jsdom": "^22.1.0",
121
124
  "lint-staged": "15.2.7",
122
125
  "postcss": "8.4.40",
123
- "prettier": "^3.0.3",
124
- "prettier-plugin-tailwindcss": "^0.5.9",
126
+ "prettier": "3.3.3",
127
+ "prettier-plugin-tailwindcss": "0.6.6",
125
128
  "react-test-renderer": "^18.2.0",
126
129
  "rollup-plugin-css-only": "^4.5.2",
127
130
  "semantic-release": "22",
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- export declare enum ActionType {
3
- Button = "button",
4
- Link = "link"
5
- }
6
- export declare enum ToastType {
7
- Alert = "alert",
8
- Banner = "banner"
9
- }
10
- export type AlertAction = {
11
- label: string;
12
- onClick: () => void;
13
- };
14
- export type AlertProps = {
15
- message: string;
16
- inlineActions?: boolean;
17
- toastType?: ToastType;
18
- icon?: React.ReactNode;
19
- hasCloseButton?: boolean;
20
- onClickCloseButton?: () => void;
21
- iconVariant?: "neutral" | "success" | "error" | "warning" | "banner";
22
- actions?: AlertAction[];
23
- actionType?: ActionType;
24
- };
@@ -1,12 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- export type ChipProps = {
4
- children: ReactNode;
5
- size?: "sm" | "lg";
6
- className?: string;
7
- "data-testid"?: string;
8
- avatar?: string;
9
- disabled?: boolean;
10
- iconLeft?: ReactNode;
11
- iconRight?: ReactNode;
12
- };
@@ -1,6 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
-
3
- export type FlagProps = {
4
- shadow?: boolean;
5
- country: "bra" | "esp" | "usa";
6
- } & HTMLAttributes<HTMLImageElement>;
@@ -1,15 +0,0 @@
1
- interface CommonProps {
2
- variant?: "default" | "dark" | "light";
3
- className?: string;
4
- short?: boolean;
5
- }
6
- interface LogoWidthProps extends CommonProps {
7
- width?: number;
8
- height?: never;
9
- }
10
- interface LogoHeightProps extends CommonProps {
11
- width?: never;
12
- height?: number;
13
- }
14
- export type LogoProps = LogoWidthProps | LogoHeightProps;
15
- export {};
@@ -1,15 +0,0 @@
1
- import { ParsedCountry } from 'react-international-phone';
2
-
3
- export type PhoneNumberInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & {
4
- value?: string;
5
- onChange?: (data: {
6
- phone: string;
7
- inputValue: string;
8
- country: ParsedCountry;
9
- }) => void;
10
- error?: boolean;
11
- errorMessage?: string;
12
- isValid?: boolean;
13
- searchMessage: string;
14
- noResultsFoundMessage: string;
15
- };
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- export type PopoverProps = {
3
- children: React.ReactNode;
4
- content: React.ReactNode;
5
- isOpen?: boolean;
6
- onOpenChange?: (isOpen: boolean) => void;
7
- onInteractOutside?: () => void;
8
- onOpenAutoFocus?: (event: Event) => void;
9
- defaultOpen?: boolean;
10
- side?: "top" | "right" | "bottom" | "left";
11
- align?: "start" | "center" | "end";
12
- hasCloseButton?: boolean;
13
- hasShadow?: boolean;
14
- className?: string;
15
- sideOffset?: number;
16
- };
@@ -1,18 +0,0 @@
1
- import { ChangeEventHandler, ReactNode } from 'react';
2
-
3
- export type RadioGroupOption = {
4
- label: ReactNode;
5
- value: string;
6
- id: string;
7
- };
8
- export type RadioGroupProps = {
9
- options: RadioGroupOption[];
10
- labelPosition?: "left" | "right";
11
- orientation?: "vertical" | "horizontal";
12
- onValueChange?: (value: string) => void;
13
- value?: string;
14
- className?: string;
15
- optionWrapperClassName?: string;
16
- labelClassName?: string;
17
- onChange?: ChangeEventHandler<HTMLInputElement>;
18
- };
@@ -1,17 +0,0 @@
1
- import { Key, ReactNode } from 'react';
2
-
3
- export type SegmentedControlProps = {
4
- className?: string;
5
- "data-testid"?: string;
6
- size?: "sm" | "md" | "lg";
7
- tabs: {
8
- icon?: ReactNode;
9
- key: string;
10
- title: ReactNode;
11
- component?: ReactNode;
12
- }[];
13
- tabClass?: string;
14
- onSelectionChange?: (key: Key) => void;
15
- selectedKey?: string | number | null;
16
- fullWidth?: boolean;
17
- };
@@ -1,9 +0,0 @@
1
- export type SnackbarAction = {
2
- label: string;
3
- onClick: () => void;
4
- };
5
- export type SnackbarProps = {
6
- message: string;
7
- inlineActions?: boolean;
8
- actions?: SnackbarAction[];
9
- };
@@ -1,10 +0,0 @@
1
- export type SwitchProps = {
2
- "data-testid"?: string;
3
- icons?: {
4
- selectedIcon: string;
5
- unselectedIcon: string;
6
- };
7
- className?: string;
8
- isSelected: boolean;
9
- onValueChange?: ((isSelected: boolean) => void) | undefined;
10
- };
@@ -1,14 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- export type TabsProps = {
4
- className?: string;
5
- "data-testid"?: string;
6
- tabs: {
7
- icon?: ReactNode;
8
- key: string;
9
- title: string;
10
- content?: ReactNode;
11
- }[];
12
- defaultValue?: string;
13
- variant?: "underline" | "button";
14
- };
@@ -1,11 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- export type TagColor = "red" | "orange" | "lightGreen" | "violet" | "blue" | "darkGreen" | "gray" | "yellow";
4
- export type TagVariant = "light" | "dark" | "ghost";
5
- export type TagProps = {
6
- children: ReactNode;
7
- className?: string;
8
- variant?: TagVariant;
9
- color?: TagColor;
10
- "data-testid"?: string;
11
- };
@@ -1,7 +0,0 @@
1
- import { HTMLAttributes } from 'react';
2
-
3
- export type TypographyProps = {
4
- children: React.ReactNode;
5
- font?: "satoshi" | "livvic";
6
- weight?: "light" | "regular" | "medium" | "semibold" | "bold" | "black";
7
- } & HTMLAttributes<HTMLParagraphElement>;