@purr-react-tailwindcss/components.helper-text 0.0.7 → 0.0.8

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.cjs ADDED
@@ -0,0 +1 @@
1
+ 'use strict';var l=require('clsx'),s=require('react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var l__default=/*#__PURE__*/_interopDefault(l);var s__default=/*#__PURE__*/_interopDefault(s);var x=s.memo(({children:e="",variant:t="standard",isError:r=false,hasLabel:o=false,htmlAttributes:p})=>e?s__default.default.createElement("span",{className:l__default.default("inline-block","absolute","text-xs",o?"top-12":"top-14",t==="standard"?"left-0":"left-3.5",r?"text-red-500":"text-gray-200","helper-text"),...p},e):null);x.displayName="HelperText";exports.HelperText=x;
@@ -0,0 +1,15 @@
1
+ import React, { ReactNode, HTMLAttributes } from 'react';
2
+ import { IExtendable } from '@purr-core/utils.definitions';
3
+
4
+ type THelperTextVariant = "outlined" | "filled" | "standard";
5
+ interface IHelperTextProps {
6
+ variant?: THelperTextVariant;
7
+ children?: ReactNode;
8
+ isError?: boolean;
9
+ hasLabel?: boolean;
10
+ htmlAttributes?: HTMLAttributes<HTMLSpanElement> & IExtendable;
11
+ }
12
+
13
+ declare const HelperText: React.MemoExoticComponent<({ children, variant, isError, hasLabel, htmlAttributes, }: IHelperTextProps) => React.JSX.Element | null>;
14
+
15
+ export { HelperText, type IHelperTextProps, type THelperTextVariant };
@@ -0,0 +1,15 @@
1
+ import React, { ReactNode, HTMLAttributes } from 'react';
2
+ import { IExtendable } from '@purr-core/utils.definitions';
3
+
4
+ type THelperTextVariant = "outlined" | "filled" | "standard";
5
+ interface IHelperTextProps {
6
+ variant?: THelperTextVariant;
7
+ children?: ReactNode;
8
+ isError?: boolean;
9
+ hasLabel?: boolean;
10
+ htmlAttributes?: HTMLAttributes<HTMLSpanElement> & IExtendable;
11
+ }
12
+
13
+ declare const HelperText: React.MemoExoticComponent<({ children, variant, isError, hasLabel, htmlAttributes, }: IHelperTextProps) => React.JSX.Element | null>;
14
+
15
+ export { HelperText, type IHelperTextProps, type THelperTextVariant };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ import l from'clsx';import s,{memo}from'react';var x=memo(({children:e="",variant:t="standard",isError:r=false,hasLabel:o=false,htmlAttributes:p})=>e?s.createElement("span",{className:l("inline-block","absolute","text-xs",o?"top-12":"top-14",t==="standard"?"left-0":"left-3.5",r?"text-red-500":"text-gray-200","helper-text"),...p},e):null);x.displayName="HelperText";export{x as HelperText};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purr-react-tailwindcss/components.helper-text",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "typescript": "*",
25
25
  "react": "*",
26
26
  "clsx": "*",
27
- "@purr-core/utils.definitions": "0.0.11"
27
+ "@purr-core/utils.definitions": "0.0.12"
28
28
  },
29
29
  "author": "@DinhThienPhuc",
30
30
  "license": "ISC",