@caspeco/casper-ui-library 9.0.0-alpha.1 → 9.0.0-alpha.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.
@@ -8,7 +8,7 @@ type CustomProperties = {
8
8
  isRequired?: boolean;
9
9
  };
10
10
  type CustomStyleProps = CustomChakraBoxProps & LayoutProps & MarginProps & PaddingProps & CustomProperties;
11
- type ChakraTextareaProperties = Pick<ChakraTextareaProps, "id" | "name" | "placeholder" | "rows" | "value" | "defaultValue" | "onChange" | "onBlur" | "onFocus" | "onKeyDown" | "resize" | "autoresize">;
11
+ type ChakraTextareaProperties = Pick<ChakraTextareaProps, "as" | "id" | "name" | "placeholder" | "rows" | "value" | "defaultValue" | "onChange" | "onBlur" | "onFocus" | "onKeyDown" | "resize" | "autoresize">;
12
12
  export type TextareaProps = ChakraTextareaProperties & CustomStyleProps;
13
13
  export declare const Textarea: React.ForwardRefExoticComponent<ChakraTextareaProperties & CustomChakraBoxProps & LayoutProps & MarginProps & PaddingProps & CustomProperties & React.RefAttributes<HTMLTextAreaElement>>;
14
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../lib/components/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EAA8B,KAAK,aAAa,IAAI,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACzG,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,gBAAgB,GAAG;IACvB,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAG/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,KAAK,gBAAgB,GAAG,oBAAoB,GAAG,WA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1,21 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { Textarea as f } from "@chakra-ui/react";
3
- import m from "react";
4
- const p = m.forwardRef((e, r) => {
5
- const { isDisabled: a, isReadOnly: t, isRequired: i, resize: s, ...o } = e;
6
- return /* @__PURE__ */ d(
7
- f,
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { Textarea as m } from "@chakra-ui/react";
3
+ import l from "react";
4
+ const u = l.forwardRef((e, r) => {
5
+ const { isDisabled: a, isReadOnly: t, isRequired: s, resize: i, as: o, ...d } = e;
6
+ return /* @__PURE__ */ f(
7
+ m,
8
8
  {
9
- resize: s,
9
+ resize: i,
10
10
  ref: r,
11
11
  disabled: a,
12
12
  readOnly: t,
13
- required: i,
14
- ...o
13
+ required: s,
14
+ as: o,
15
+ ...d
15
16
  }
16
17
  );
17
18
  });
18
19
  export {
19
- p as Textarea
20
+ u as Textarea
20
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caspeco/casper-ui-library",
3
- "version": "9.0.0-alpha.1",
3
+ "version": "9.0.0-alpha.2",
4
4
  "prettier": "@caspeco/prettier-config",
5
5
  "type": "module",
6
6
  "sideEffects": false,