@iit/precision-ui 0.3.0 → 0.4.1
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/components/core/typography/Heading.d.ts +1 -0
- package/dist/components/core/typography/Heading.d.ts.map +1 -1
- package/dist/components/ui/form.d.ts +24 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/textarea/Textarea.d.ts +10 -0
- package/dist/components/ui/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea/TextareaWithLabel.d.ts +11 -0
- package/dist/components/ui/textarea/TextareaWithLabel.d.ts.map +1 -0
- package/dist/components/ui/textarea/index.d.ts +5 -0
- package/dist/components/ui/textarea/index.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +56 -41
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es12.js +1 -1
- package/dist/index.es13.js +27 -24
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es14.js +28 -73
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es15.js +15 -23
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es16.js +24 -31
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es17.js +71 -28
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es18.js +33 -26
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es19.js +25 -176
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +29 -51
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es21.js +25 -54
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es22.js +178 -54
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es23.js +50 -17
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js +56 -18
- package/dist/index.es24.js.map +1 -1
- package/dist/index.es25.js +59 -6
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es26.js +19 -21
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es27.js +18 -26
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +90 -19
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es29.js +6 -20
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es3.js +2 -2
- package/dist/index.es30.js +22 -11
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +19 -84
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +20 -19
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +11 -46
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +81 -41
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +15 -33
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +38 -48
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +37 -84
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +35 -96
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +50 -21
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es40.js +83 -36
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +87 -211
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +27 -16
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +45 -4
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +19 -0
- package/dist/index.es44.js.map +1 -0
- package/dist/index.es45.js +225 -0
- package/dist/index.es45.js.map +1 -0
- package/dist/index.es46.js +7 -0
- package/dist/index.es46.js.map +1 -0
- package/dist/index.es5.js +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/styles.css +3 -0
- package/package.json +18 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../src/components/core/typography/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAIlE,UAAU,YAAY;IACpB,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../../src/components/core/typography/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAIlE,UAAU,YAAY;IACpB,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,OAAO,yFAgBZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
2
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-dev-runtime").JSX.Element;
|
|
6
|
+
declare const useFormField: () => {
|
|
7
|
+
invalid: boolean;
|
|
8
|
+
isDirty: boolean;
|
|
9
|
+
isTouched: boolean;
|
|
10
|
+
isValidating: boolean;
|
|
11
|
+
error?: import('react-hook-form').FieldError | undefined;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
formItemId: string;
|
|
15
|
+
formDescriptionId: string;
|
|
16
|
+
formMessageId: string;
|
|
17
|
+
};
|
|
18
|
+
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
20
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-slot').SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
21
|
+
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
22
|
+
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
23
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
24
|
+
//# sourceMappingURL=form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAEL,eAAe,EACf,SAAS,EACT,WAAW,EAGZ,MAAM,iBAAiB,CAAA;AAMxB,QAAA,MAAM,IAAI,yOAAe,CAAA;AAazB,QAAA,MAAM,SAAS,kIAKZ,gBAAgB,YAAY,EAAE,KAAK,CAAC,gDAMtC,CAAA;AAED,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAA;AAUD,QAAA,MAAM,QAAQ,6GAWZ,CAAA;AAGF,QAAA,MAAM,SAAS,yJAcb,CAAA;AAGF,QAAA,MAAM,WAAW,8JAmBf,CAAA;AAGF,QAAA,MAAM,eAAe,yHAcnB,CAAA;AAGF,QAAA,MAAM,WAAW,yHAqBf,CAAA;AAGF,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACV,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const textareaVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "blue" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof textareaVariants> {
|
|
7
|
+
}
|
|
8
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
9
|
+
export { Textarea };
|
|
10
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAI5D,QAAA,MAAM,gBAAgB;;8EAcrB,CAAA;AAED,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EACvD,YAAY,CAAC,OAAO,gBAAgB,CAAC;CAExC;AAED,QAAA,MAAM,QAAQ,2FAUb,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputVariant } from '../input/types';
|
|
2
|
+
|
|
3
|
+
interface TextareaWithLabelProps {
|
|
4
|
+
variant?: InputVariant;
|
|
5
|
+
label?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function TextareaWithLabel({ id, variant, label, className, }: TextareaWithLabelProps): import("react/jsx-dev-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=TextareaWithLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextareaWithLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/textarea/TextareaWithLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAK7C,UAAU,sBAAsB;IAC9B,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,EAAE,EACF,OAAmB,EACnB,KAAK,EACL,SAAS,GACV,EAAE,sBAAsB,+CA8BxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/textarea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import { default as AppLink } from './components/ui/Link';
|
|
|
8
8
|
import { registerAdapter } from './Adapters';
|
|
9
9
|
import { Input } from './components/ui/input/Input';
|
|
10
10
|
import { InputWithLabel } from './components/ui/input/InputWithLabel';
|
|
11
|
+
import { Textarea, TextareaWithLabel } from './components/ui/textarea';
|
|
12
|
+
import { Label } from './components/ui/label';
|
|
11
13
|
import { default as Informer } from './components/Informer';
|
|
12
14
|
import { default as SafeHtmlRenderer } from './components/SafeHtml';
|
|
13
15
|
import { Checkbox, CheckboxWithLabel } from './components/ui/checkbox';
|
|
@@ -30,6 +32,8 @@ export { ButtonUnique, type ButtonUniqueProps };
|
|
|
30
32
|
export { AppLink };
|
|
31
33
|
export { registerAdapter };
|
|
32
34
|
export { Input, InputWithLabel };
|
|
35
|
+
export { Textarea, TextareaWithLabel };
|
|
36
|
+
export { Label };
|
|
33
37
|
export { Informer };
|
|
34
38
|
export { SafeHtmlRenderer };
|
|
35
39
|
export { Checkbox, CheckboxWithLabel };
|
|
@@ -40,4 +44,5 @@ export { Partners };
|
|
|
40
44
|
export { Section };
|
|
41
45
|
export { CardsGridSection };
|
|
42
46
|
export { Heading, Text };
|
|
47
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, } from './components/ui/form';
|
|
43
48
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,UAAU,EAAE,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAC/E,OAAO,aAAa,EAAE,EACpB,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,eAAe,EAAE,EACtB,KAAK,oBAAoB,EAC1B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,UAAU,EAAE,EACjB,KAAK,eAAe,EACrB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,YAAY,EAAE,EACnB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AA;AACxC,OAAO,gBAAgB,MAAM,6BAA6B,CAAA;AAE1D,OAAO,EAAE,GAAG,EAAE,CAAA;AACd,OAAO,EAAE,IAAI,EAAE,CAAA;AACf,OAAO,EAAE,QAAQ,EAAE,CAAA;AACnB,OAAO,EAAE,OAAO,EAAE,CAAA;AAClB,OAAO,EAAE,gBAAgB,EAAE,CAAA;AAE3B,OAAO,OAAO,MAAM,sCAAsC,CAAA;AAC1D,OAAO,IAAI,MAAM,mCAAmC,CAAA;AAEpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;AAGxB,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACV,MAAM,sBAAsB,CAAA"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,51 +1,66 @@
|
|
|
1
|
-
import { Button as
|
|
1
|
+
import { Button as o } from "./index.es2.js";
|
|
2
2
|
import { default as a } from "./index.es3.js";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
3
|
+
import { default as m } from "./index.es4.js";
|
|
4
|
+
import { default as x } from "./index.es5.js";
|
|
5
|
+
import { default as u } from "./index.es6.js";
|
|
6
|
+
import { default as s } from "./index.es7.js";
|
|
7
7
|
import { default as i } from "./index.es8.js";
|
|
8
|
-
import { registerAdapter as
|
|
9
|
-
import { Alert as T, AlertDescription as
|
|
10
|
-
import { Input as
|
|
11
|
-
import { InputWithLabel as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
8
|
+
import { registerAdapter as c } from "./index.es9.js";
|
|
9
|
+
import { Alert as T, AlertDescription as A, AlertTitle as B } from "./index.es10.js";
|
|
10
|
+
import { Input as h } from "./index.es11.js";
|
|
11
|
+
import { InputWithLabel as I } from "./index.es12.js";
|
|
12
|
+
import { Textarea as S } from "./index.es13.js";
|
|
13
|
+
import { TextareaWithLabel as H } from "./index.es14.js";
|
|
14
|
+
import { Label as y } from "./index.es15.js";
|
|
15
|
+
import { default as P } from "./index.es16.js";
|
|
16
|
+
import { default as G } from "./index.es17.js";
|
|
17
|
+
import { Checkbox as R } from "./index.es18.js";
|
|
18
|
+
import { CheckboxWithLabel as j } from "./index.es19.js";
|
|
19
|
+
import { Tag as w } from "./index.es20.js";
|
|
20
|
+
import { default as E } from "./index.es21.js";
|
|
21
|
+
import { default as K } from "./index.es22.js";
|
|
22
22
|
import { default as O } from "./index.es23.js";
|
|
23
23
|
import { default as V } from "./index.es24.js";
|
|
24
|
+
import { default as Y } from "./index.es25.js";
|
|
25
|
+
import { default as _ } from "./index.es26.js";
|
|
26
|
+
import { default as rr } from "./index.es27.js";
|
|
27
|
+
import { Form as or, FormControl as tr, FormDescription as ar, FormField as fr, FormItem as mr, FormLabel as pr, FormMessage as xr, useFormField as lr } from "./index.es28.js";
|
|
24
28
|
export {
|
|
25
29
|
T as Alert,
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
A as AlertDescription,
|
|
31
|
+
B as AlertTitle,
|
|
28
32
|
i as AppLink,
|
|
29
|
-
|
|
33
|
+
o as Button,
|
|
30
34
|
a as ButtonIcon,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
m as ButtonPrimary,
|
|
36
|
+
x as ButtonSecondary,
|
|
37
|
+
u as ButtonText,
|
|
38
|
+
s as ButtonUnique,
|
|
39
|
+
E as CTA,
|
|
40
|
+
Y as CardsGridSection,
|
|
41
|
+
R as Checkbox,
|
|
42
|
+
j as CheckboxWithLabel,
|
|
43
|
+
or as Form,
|
|
44
|
+
tr as FormControl,
|
|
45
|
+
ar as FormDescription,
|
|
46
|
+
fr as FormField,
|
|
47
|
+
mr as FormItem,
|
|
48
|
+
pr as FormLabel,
|
|
49
|
+
xr as FormMessage,
|
|
50
|
+
_ as Heading,
|
|
51
|
+
K as Hero,
|
|
52
|
+
P as Informer,
|
|
53
|
+
h as Input,
|
|
54
|
+
I as InputWithLabel,
|
|
55
|
+
y as Label,
|
|
56
|
+
O as Partners,
|
|
57
|
+
G as SafeHtmlRenderer,
|
|
58
|
+
V as Section,
|
|
59
|
+
w as Tag,
|
|
60
|
+
rr as Text,
|
|
61
|
+
S as Textarea,
|
|
62
|
+
H as TextareaWithLabel,
|
|
63
|
+
c as registerAdapter,
|
|
64
|
+
lr as useFormField
|
|
50
65
|
};
|
|
51
66
|
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.es10.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "react";
|
|
2
2
|
import { cva as d } from "class-variance-authority";
|
|
3
|
-
import { cn as l } from "./index.
|
|
3
|
+
import { cn as l } from "./index.es29.js";
|
|
4
4
|
const i = d(
|
|
5
5
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
6
6
|
{
|
package/dist/index.es11.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
2
|
import { cva as n } from "class-variance-authority";
|
|
3
|
-
import { cn as l } from "./index.
|
|
3
|
+
import { cn as l } from "./index.es29.js";
|
|
4
4
|
const d = n(
|
|
5
5
|
"flex h-11 w-full rounded-lg border border-transparent border-b bg-background px-3 pt-[14px] pb-[11px] typo_variant_small-body ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 duration-200 transition-colors",
|
|
6
6
|
{
|
package/dist/index.es12.js
CHANGED
package/dist/index.es13.js
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const p = ({ content: t }) => /* @__PURE__ */ e.createElement(m, { delayDuration: 0 }, /* @__PURE__ */ e.createElement("div", { className: "hidden xl:block" }, /* @__PURE__ */ e.createElement(i, null, /* @__PURE__ */ e.createElement(c, { asChild: !0 }, /* @__PURE__ */ e.createElement(
|
|
7
|
-
r,
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { cva as i } from "class-variance-authority";
|
|
3
|
+
import { cn as n } from "./index.es29.js";
|
|
4
|
+
const s = i(
|
|
5
|
+
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible0:ring-2 focus-visible0:ring-ring focus-visible0:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
8
6
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: "bg-navy-opacity-4 text-navy focus:border-navy hover:bg-navy-opacity-8 border-b-navy-opacity-32",
|
|
10
|
+
blue: "bg-whitish-opacity-8 text-white focus:border-white hover:bg-whitish-opacity-16 border-b-whitish-opacity-32"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: "default"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
), c = e.forwardRef(
|
|
18
|
+
({ className: t, variant: a, ...r }, o) => /* @__PURE__ */ e.createElement(
|
|
19
|
+
"textarea",
|
|
20
|
+
{
|
|
21
|
+
className: n(s({ variant: a, className: t })),
|
|
22
|
+
ref: o,
|
|
23
|
+
...r
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
c.displayName = "Textarea";
|
|
25
28
|
export {
|
|
26
|
-
|
|
29
|
+
c as Textarea
|
|
27
30
|
};
|
|
28
31
|
//# sourceMappingURL=index.es13.js.map
|
package/dist/index.es13.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es13.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es13.js","sources":["../src/components/ui/textarea/Textarea.tsx"],"sourcesContent":["import * as React from 'react'\r\n\r\nimport { VariantProps, cva } from 'class-variance-authority'\r\n\r\nimport { cn } from '@/lib/utils/cn'\r\n\r\nconst textareaVariants = cva(\r\n 'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible0:ring-2 focus-visible0:ring-ring focus-visible0:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\r\n {\r\n variants: {\r\n variant: {\r\n default:\r\n 'bg-navy-opacity-4 text-navy focus:border-navy hover:bg-navy-opacity-8 border-b-navy-opacity-32',\r\n blue: 'bg-whitish-opacity-8 text-white focus:border-white hover:bg-whitish-opacity-16 border-b-whitish-opacity-32',\r\n },\r\n },\r\n defaultVariants: {\r\n variant: 'default',\r\n },\r\n }\r\n)\r\n\r\nexport interface TextareaProps\r\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement>,\r\n VariantProps<typeof textareaVariants> {\r\n // className?: string\r\n}\r\n\r\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\r\n ({ className, variant, ...props }, ref) => {\r\n return (\r\n <textarea\r\n className={cn(textareaVariants({ variant, className }))}\r\n ref={ref}\r\n {...props}\r\n />\r\n )\r\n }\r\n)\r\nTextarea.displayName = 'Textarea'\r\n\r\nexport { Textarea }\r\n"],"names":["textareaVariants","cva","Textarea","React","className","variant","props","ref","cn"],"mappings":";;;AAMA,MAAMA,IAAmBC;AAAA,EACvB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAQMC,IAAWC,EAAM;AAAA,EACrB,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,GAAGC,EAAA,GAASC,MAE/B,gBAAAJ,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWK,EAAGR,EAAiB,EAAE,SAAAK,GAAS,WAAAD,EAAW,CAAA,CAAC;AAAA,MACtD,KAAAG;AAAA,MACC,GAAGD;AAAA,IAAA;AAAA,EAAA;AAIZ;AACAJ,EAAS,cAAc;"}
|
package/dist/index.es14.js
CHANGED
|
@@ -1,76 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
const r = /<[^>]*?['"][^'"]*>/g, l = t.match(r) || [];
|
|
31
|
-
for (const s of l) {
|
|
32
|
-
let e = !1, o = "";
|
|
33
|
-
for (let n = 0; n < s.length; n++)
|
|
34
|
-
(s[n] === "'" || s[n] === '"') && (e ? s[n] === o && (e = !1) : (e = !0, o = s[n]));
|
|
35
|
-
if (e)
|
|
36
|
-
return !1;
|
|
37
|
-
}
|
|
38
|
-
return !0;
|
|
39
|
-
}, v = (t) => {
|
|
40
|
-
const a = [...t.matchAll(/<([a-z]+)(\s[^>]*)\/>/gi)];
|
|
41
|
-
for (const [i, r, l] of a) {
|
|
42
|
-
const s = /(\w+)=["']([^"']*)["']/g, e = [...l.matchAll(s)];
|
|
43
|
-
for (const [g, f, c] of e)
|
|
44
|
-
if (!f || !c)
|
|
45
|
-
return !1;
|
|
46
|
-
const o = /(\w+)=["'][^"']*$/g;
|
|
47
|
-
if ([...l.matchAll(o)].length > 0)
|
|
48
|
-
return !1;
|
|
49
|
-
}
|
|
50
|
-
return !0;
|
|
51
|
-
}, p = (t) => {
|
|
52
|
-
const a = /style=["']([^"']*)["']/gi, i = [...t.matchAll(a)];
|
|
53
|
-
for (const [r, l] of i) {
|
|
54
|
-
const s = l.split(";");
|
|
55
|
-
for (const e of s)
|
|
56
|
-
if (e.trim()) {
|
|
57
|
-
const [o, n] = e.split(":");
|
|
58
|
-
if (!o || !n)
|
|
59
|
-
return !1;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return !0;
|
|
63
|
-
}, T = (t) => h(t) && m(t) && v(t) && p(t), y = ({
|
|
64
|
-
html: t,
|
|
65
|
-
className: a
|
|
66
|
-
}) => T(t) ? /* @__PURE__ */ u.createElement(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
className: ["content", a].filter(Boolean).join(" "),
|
|
70
|
-
dangerouslySetInnerHTML: { __html: t }
|
|
71
|
-
}
|
|
72
|
-
) : (console.error("Invalid HTML content:", t), /* @__PURE__ */ u.createElement("div", { style: { color: "red" } }, "Invalid HTML content")), R = y;
|
|
1
|
+
import { Label as i } from "./index.es15.js";
|
|
2
|
+
import { Textarea as n } from "./index.es13.js";
|
|
3
|
+
import { useId as m } from "react";
|
|
4
|
+
function p({
|
|
5
|
+
id: r,
|
|
6
|
+
variant: e = "default",
|
|
7
|
+
label: t,
|
|
8
|
+
className: c
|
|
9
|
+
}) {
|
|
10
|
+
const s = m(), a = r || s, o = e === "default" ? "group-focus-within:text-navy-opacity-40" : "group-focus-within:text-whitish-opacity-60";
|
|
11
|
+
return /* @__PURE__ */ React.createElement("div", { className: `grid w-full items-center gap-1 group ${c}` }, t && /* @__PURE__ */ React.createElement(
|
|
12
|
+
i,
|
|
13
|
+
{
|
|
14
|
+
variant: e,
|
|
15
|
+
htmlFor: a,
|
|
16
|
+
className: o
|
|
17
|
+
},
|
|
18
|
+
t
|
|
19
|
+
), /* @__PURE__ */ React.createElement(
|
|
20
|
+
n,
|
|
21
|
+
{
|
|
22
|
+
id: a,
|
|
23
|
+
variant: e,
|
|
24
|
+
className: `focus:outline-none '${o}'`
|
|
25
|
+
}
|
|
26
|
+
));
|
|
27
|
+
}
|
|
73
28
|
export {
|
|
74
|
-
|
|
29
|
+
p as TextareaWithLabel
|
|
75
30
|
};
|
|
76
31
|
//# sourceMappingURL=index.es14.js.map
|
package/dist/index.es14.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es14.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.es14.js","sources":["../src/components/ui/textarea/TextareaWithLabel.tsx"],"sourcesContent":["import { InputVariant } from '../input/types'\r\nimport { Label } from '../label'\r\nimport { Textarea } from './Textarea'\r\nimport { useId } from 'react'\r\n\r\ninterface TextareaWithLabelProps {\r\n variant?: InputVariant\r\n label?: string\r\n id?: string\r\n className?: string\r\n}\r\n\r\nexport function TextareaWithLabel({\r\n id,\r\n variant = 'default',\r\n label,\r\n className,\r\n}: TextareaWithLabelProps) {\r\n const generatedId = useId()\r\n const textareaId = id || generatedId\r\n\r\n const textareaClasses =\r\n variant === 'default'\r\n ? 'group-focus-within:text-navy-opacity-40'\r\n : 'group-focus-within:text-whitish-opacity-60'\r\n\r\n return (\r\n <div className={`grid w-full items-center gap-1 group ${className}`}>\r\n {label && (\r\n <Label\r\n variant={variant}\r\n htmlFor={textareaId}\r\n className={textareaClasses}\r\n >\r\n {label}\r\n </Label>\r\n )}\r\n\r\n <Textarea\r\n id={textareaId}\r\n variant={variant}\r\n className={`focus:outline-none '${textareaClasses}'`}\r\n />\r\n\r\n {/* {desc && <p className=\"text-sm text-muted-foreground\">{desc}</p>} */}\r\n </div>\r\n )\r\n}\r\n"],"names":["TextareaWithLabel","id","variant","label","className","generatedId","useId","textareaId","textareaClasses","Label","Textarea"],"mappings":";;;AAYO,SAASA,EAAkB;AAAA,EAChC,IAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,OAAAC;AAAA,EACA,WAAAC;AACF,GAA2B;AACzB,QAAMC,IAAcC,KACdC,IAAaN,KAAMI,GAEnBG,IACJN,MAAY,YACR,4CACA;AAEN,6CACG,OAAI,EAAA,WAAW,wCAAwCE,CAAS,MAC9DD,KACC,sBAAA;AAAA,IAACM;AAAA,IAAA;AAAA,MACC,SAAAP;AAAA,MACA,SAASK;AAAA,MACT,WAAWC;AAAA,IAAA;AAAA,IAEVL;AAAA,EAIL,GAAA,sBAAA;AAAA,IAACO;AAAA,IAAA;AAAA,MACC,IAAIH;AAAA,MACJ,SAAAL;AAAA,MACA,WAAW,uBAAuBM,CAAe;AAAA,IAAA;AAAA,EAAA,CAIrD;AAEJ;"}
|
package/dist/index.es15.js
CHANGED
|
@@ -1,38 +1,30 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"peer h-[18px] w-[18px] shrink-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 duration-200",
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import * as t from "@radix-ui/react-label";
|
|
3
|
+
import { cva as l } from "class-variance-authority";
|
|
4
|
+
import { cn as n } from "./index.es29.js";
|
|
5
|
+
const s = l(
|
|
6
|
+
"typo_variant_h6 leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 duration-200",
|
|
8
7
|
{
|
|
9
8
|
variants: {
|
|
10
9
|
variant: {
|
|
11
|
-
default: "
|
|
12
|
-
|
|
10
|
+
default: "text-navy",
|
|
11
|
+
blue: "text-whitish"
|
|
13
12
|
}
|
|
14
13
|
},
|
|
15
14
|
defaultVariants: {
|
|
16
15
|
variant: "default"
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
|
-
),
|
|
18
|
+
), d = a.forwardRef(({ className: e, variant: r, ...o }, i) => /* @__PURE__ */ a.createElement(
|
|
20
19
|
t.Root,
|
|
21
20
|
{
|
|
22
|
-
ref:
|
|
23
|
-
className:
|
|
24
|
-
...
|
|
25
|
-
}
|
|
26
|
-
/* @__PURE__ */ e.createElement(
|
|
27
|
-
t.Indicator,
|
|
28
|
-
{
|
|
29
|
-
className: a("flex items-center justify-center text-current")
|
|
30
|
-
},
|
|
31
|
-
/* @__PURE__ */ e.createElement(c, { className: "h-[18px] w-[18px] relative bottom-[1px]" })
|
|
32
|
-
)
|
|
21
|
+
ref: i,
|
|
22
|
+
className: n(s({ variant: r }), e),
|
|
23
|
+
...o
|
|
24
|
+
}
|
|
33
25
|
));
|
|
34
|
-
|
|
26
|
+
d.displayName = t.Root.displayName;
|
|
35
27
|
export {
|
|
36
|
-
|
|
28
|
+
d as Label
|
|
37
29
|
};
|
|
38
30
|
//# sourceMappingURL=index.es15.js.map
|
package/dist/index.es15.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es15.js","sources":["../src/components/ui/
|
|
1
|
+
{"version":3,"file":"index.es15.js","sources":["../src/components/ui/label.tsx"],"sourcesContent":["import * as React from 'react'\r\nimport * as LabelPrimitive from '@radix-ui/react-label'\r\nimport { cva, type VariantProps } from 'class-variance-authority'\r\n\r\nimport { cn } from '@/lib/utils/cn'\r\n\r\nconst labelVariants = cva(\r\n 'typo_variant_h6 leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 duration-200',\r\n {\r\n variants: {\r\n variant: {\r\n default: 'text-navy',\r\n blue: 'text-whitish',\r\n },\r\n },\r\n defaultVariants: {\r\n variant: 'default',\r\n },\r\n }\r\n)\r\n\r\nconst Label = React.forwardRef<\r\n React.ElementRef<typeof LabelPrimitive.Root>,\r\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\r\n VariantProps<typeof labelVariants>\r\n>(({ className, variant, ...props }, ref) => (\r\n <LabelPrimitive.Root\r\n ref={ref}\r\n className={cn(labelVariants({ variant }), className)}\r\n {...props}\r\n />\r\n))\r\nLabel.displayName = LabelPrimitive.Root.displayName\r\n\r\nexport { Label }\r\n"],"names":["labelVariants","cva","Label","React","className","variant","props","ref","LabelPrimitive","cn"],"mappings":";;;;AAMA,MAAMA,IAAgBC;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEMC,IAAQC,EAAM,WAIlB,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,GAAGC,EAAM,GAAGC,MACnC,gBAAAJ,EAAA;AAAA,EAACK,EAAe;AAAA,EAAf;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAGT,EAAc,EAAE,SAAAK,EAAS,CAAA,GAAGD,CAAS;AAAA,IAClD,GAAGE;AAAA,EAAA;AACN,CACD;AACDJ,EAAM,cAAcM,EAAe,KAAK;"}
|