@adoptaunabuelo/react-components 0.3.140 → 0.3.142

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.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,9 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import react__default, { ComponentPropsWithoutRef, ReactNode, ComponentPropsWithRef, ReactElement, CSSProperties } from 'react';
4
4
  import moment from 'moment';
5
+ import { ButtonProps as ButtonProps$2 } from '@components/Button/Button';
5
6
  import { PaymentMethod } from '@stripe/stripe-js';
7
+ import { LocationProps as LocationProps$1 } from '@components/Input/Location/InputLocation';
6
8
 
7
9
  declare const BreadCrumb: ({ steps, selectedStep, ...restProps }: Props$g) => react_jsx_runtime.JSX.Element;
8
10
 
@@ -293,7 +295,7 @@ interface ModalPrimaryProps extends ComponentPropsWithoutRef<"div"> {
293
295
  contentStyle?: CSSProperties;
294
296
  Header?: ReactElement;
295
297
  Bottom?: ReactElement;
296
- buttonProps?: ButtonProps;
298
+ buttonProps?: ButtonProps$2;
297
299
  footerStyle?: CSSProperties;
298
300
  onClose: () => void;
299
301
  shouldCloseOnOverlayClick?: boolean;
@@ -496,7 +498,8 @@ interface TextAreaDefaultProps extends ComponentPropsWithoutRef<"textarea"> {
496
498
  design?: "primary" | "secondary";
497
499
  }
498
500
 
499
- interface TextAreaEditorProps extends ComponentPropsWithoutRef<"textarea"> {
501
+ interface TextAreaEditorProps {
502
+ style?: React.CSSProperties;
500
503
  value?: string;
501
504
  defaultValue?: string;
502
505
  placeholder?: string;
@@ -504,6 +507,7 @@ interface TextAreaEditorProps extends ComponentPropsWithoutRef<"textarea"> {
504
507
  maxLength?: number;
505
508
  design?: "primary" | "secondary";
506
509
  ToolbarButton?: ReactNode;
510
+ onChange?: (value: string) => void;
507
511
  }
508
512
 
509
513
  declare const TextArea: (props: TextAreaDefaultProps | TextAreaEditorProps) => react_jsx_runtime.JSX.Element | null;
@@ -725,10 +729,10 @@ interface LocationFormProps {
725
729
  type: "location";
726
730
  design?: "primary" | "secondary" | "third";
727
731
  placeholder?: string;
728
- defaultLocation?: LocationProps;
732
+ defaultLocation?: LocationProps$1;
729
733
  isLoaded: boolean;
730
734
  onSubmit: (result: {
731
- data?: LocationProps;
735
+ data?: LocationProps$1;
732
736
  error?: string;
733
737
  }) => void;
734
738
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adoptaunabuelo/react-components",
3
- "version": "0.3.140",
3
+ "version": "0.3.142",
4
4
  "homepage": "https://github.com/Adopta-Un-Abuelo/react-components",
5
5
  "author": "Guillermo Angeles <guilleangeles94@gmail.com>",
6
6
  "private": false,
@@ -33,6 +33,7 @@
33
33
  "@stripe/stripe-js": "^8.5.3",
34
34
  "@tiptap/extension-text-align": "^3.13.0",
35
35
  "@tiptap/extension-text-style": "^3.13.0",
36
+ "@tiptap/extensions": "^3.13.0",
36
37
  "@tiptap/react": "^3.13.0",
37
38
  "@tiptap/starter-kit": "^3.13.0",
38
39
  "auto": "^11.3.6",
@@ -49,8 +50,8 @@
49
50
  "moment": "^2.30.1",
50
51
  "next": "16.0.8",
51
52
  "react": "19.2.3",
52
- "react-dom": "19.2.3",
53
53
  "react-dates": "^21.8.0",
54
+ "react-dom": "19.2.3",
54
55
  "react-image-crop": "^11.0.10",
55
56
  "react-modal": "^3.16.3",
56
57
  "react-webcam": "^7.2.0",
@@ -58,17 +59,17 @@
58
59
  "styled-media-query": "^2.1.2"
59
60
  },
60
61
  "devDependencies": {
61
- "@chromatic-com/storybook": "^4.1.3",
62
+ "@chromatic-com/storybook": "^5.0.0",
62
63
  "@rollup/plugin-commonjs": "^29.0.0",
63
64
  "@rollup/plugin-json": "^6.1.0",
64
65
  "@rollup/plugin-node-resolve": "^16.0.3",
65
66
  "@rollup/plugin-replace": "^6.0.3",
66
67
  "@rollup/plugin-typescript": "^8.5.0",
67
- "@storybook/addon-a11y": "^10.1.5",
68
- "@storybook/addon-docs": "^10.1.5",
69
- "@storybook/addon-links": "^10.1.5",
70
- "@storybook/addon-onboarding": "^10.1.5",
71
- "@storybook/nextjs": "^10.1.5",
68
+ "@storybook/addon-a11y": "^10.2.0",
69
+ "@storybook/addon-docs": "^10.2.0",
70
+ "@storybook/addon-links": "^10.2.0",
71
+ "@storybook/addon-onboarding": "^10.2.0",
72
+ "@storybook/nextjs": "^10.2.0",
72
73
  "@svgr/rollup": "^8.1.0",
73
74
  "@types/draftjs-to-html": "^0.8.4",
74
75
  "@types/google-libphonenumber": "^7.4.30",
@@ -83,7 +84,7 @@
83
84
  "ajv": "^8.17.1",
84
85
  "eslint": "^9.39.1",
85
86
  "eslint-config-next": "^16.0.8",
86
- "eslint-plugin-storybook": "^10.1.5",
87
+ "eslint-plugin-storybook": "^10.2.0",
87
88
  "rollup": "^2.77.2",
88
89
  "rollup-plugin-dts": "^6.3.0",
89
90
  "rollup-plugin-import-css": "^4.1.2",
@@ -92,7 +93,8 @@
92
93
  "rollup-plugin-styles": "^4.0.0",
93
94
  "rollup-plugin-svg": "^2.0.0",
94
95
  "rollup-plugin-terser": "^7.0.2",
95
- "storybook": "^10.1.5",
96
+ "rollup-plugin-typescript-paths": "^1.5.0",
97
+ "storybook": "^10.2.0",
96
98
  "typescript": "^5"
97
99
  },
98
100
  "overrides": {