@iit/precision-ui 0.2.0 → 0.4.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.
- package/dist/Adapters.d.ts +0 -7
- package/dist/Adapters.d.ts.map +1 -1
- package/dist/components/GridIterator.d.ts.map +1 -1
- 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/checkbox/CheckboxWithLabel.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/decorators/CarouselWrapper.d.ts +4 -4
- package/dist/decorators/CarouselWrapper.d.ts.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +55 -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 +13 -14
- package/dist/index.es12.js.map +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 +23 -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 +88 -2
- 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 +21 -19
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +18 -9
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es32.js +19 -84
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.js +10 -18
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es34.js +77 -38
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js +15 -41
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js +42 -33
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js +40 -51
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js +33 -88
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js +37 -79
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es40.js +86 -21
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js +97 -15
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +27 -4
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +48 -0
- package/dist/index.es43.js.map +1 -0
- 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/index.es9.js.map +1 -1
- package/dist/styles.css +35 -2
- package/package.json +18 -4
- package/dist/utils/unique.d.ts +0 -2
- package/dist/utils/unique.d.ts.map +0 -1
package/dist/Adapters.d.ts
CHANGED
|
@@ -15,13 +15,6 @@ interface Adapters {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
objectFit?: string;
|
|
17
17
|
}>;
|
|
18
|
-
CarouselWrapper?: ComponentAdapter<{
|
|
19
|
-
items: unknown[];
|
|
20
|
-
renderItem: (item: unknown, index: number) => React.ReactNode;
|
|
21
|
-
columns: number;
|
|
22
|
-
showControlsOnDesktop: boolean;
|
|
23
|
-
className?: string;
|
|
24
|
-
}>;
|
|
25
18
|
}
|
|
26
19
|
export declare const registerAdapter: <T extends keyof Adapters>(key: T, adapter: NonNullable<Adapters[T]>) => void;
|
|
27
20
|
export declare const getAdapter: <T extends keyof Adapters>(key: T) => NonNullable<Adapters[T]>;
|
package/dist/Adapters.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Adapters.d.ts","sourceRoot":"","sources":["../src/Adapters.tsx"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,CAAC,MAAM,GAAG,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAA;AAE1D,UAAU,QAAQ;IAChB,WAAW,CAAC,EAAE,gBAAgB,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;QACzB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAC,CAAA;IACF,YAAY,CAAC,EAAE,gBAAgB,CAAC;QAC9B,GAAG,EAAE,MAAM,CAAA;QACX,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"Adapters.d.ts","sourceRoot":"","sources":["../src/Adapters.tsx"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,CAAC,MAAM,GAAG,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,CAAA;AAE1D,UAAU,QAAQ;IAChB,WAAW,CAAC,EAAE,gBAAgB,CAAC;QAC7B,IAAI,EAAE,MAAM,CAAA;QACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;QACzB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAC,CAAA;IACF,YAAY,CAAC,EAAE,gBAAgB,CAAC;QAC9B,GAAG,EAAE,MAAM,CAAA;QACX,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAC,CAAA;CAQH;AAID,eAAO,MAAM,eAAe,kCACrB,CAAC,WACG,YAAY,QAAQ,CAAC,CAAC,CAAC,CAAC,SAGlC,CAAA;AAED,eAAO,MAAM,UAAU,kCAChB,CAAC,KACL,YAAY,QAAQ,CAAC,CAAC,CAAC,CAMzB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridIterator.d.ts","sourceRoot":"","sources":["../../src/components/GridIterator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GridIterator.d.ts","sourceRoot":"","sources":["../../src/components/GridIterator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,UAAU,iBAAiB,CAAC,CAAC;IAC3B,KAAK,EAAE,CAAC,EAAE,CAAA;IACV,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAA;IACvD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,QAAA,MAAM,YAAY,yFAOf,kBAAkB,CAAC,CAAC,gDA8CtB,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxWithLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/checkbox/CheckboxWithLabel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CheckboxWithLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/checkbox/CheckboxWithLabel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,QAAA,MAAM,yBAAyB;;8EAU7B,CAAA;AAEF,UAAU,sBACR,SAAQ,YAAY,CAAC,OAAO,yBAAyB,CAAC;IACtD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,iBAAiB,CAAC,EAChC,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,OAAO,GACR,EAAE,sBAAsB,+CAoBxB"}
|
|
@@ -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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
export declare const CarouselWrapper:
|
|
4
|
-
items:
|
|
5
|
-
renderItem: (item:
|
|
3
|
+
export declare const CarouselWrapper: <T>({ items, renderItem, columns, showControlsOnDesktop, className, }: {
|
|
4
|
+
items: T[];
|
|
5
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
6
6
|
columns: number;
|
|
7
7
|
showControlsOnDesktop: boolean;
|
|
8
8
|
className?: string;
|
|
9
|
-
}
|
|
9
|
+
}) => import("react/jsx-dev-runtime").JSX.Element;
|
|
10
10
|
//# sourceMappingURL=CarouselWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselWrapper.d.ts","sourceRoot":"","sources":["../../src/decorators/CarouselWrapper.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"CarouselWrapper.d.ts","sourceRoot":"","sources":["../../src/decorators/CarouselWrapper.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,eAAe,yEAMzB;IACD,KAAK,EAAE,CAAC,EAAE,CAAA;IACV,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,SAAS,CAAA;IACvD,OAAO,EAAE,MAAM,CAAA;IACf,qBAAqB,EAAE,OAAO,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,gDA0CA,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, } 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,KAAK,iBAAiB,EACvB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,OAAO,MAAM,sBAAsB,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAG5C,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE3E,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AAE,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,GACZ,MAAM,sBAAsB,CAAA"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,51 +1,65 @@
|
|
|
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 d } 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 F } 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, FormItem as fr, FormLabel as mr, FormMessage as pr, useFormField as xr } 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
|
+
d 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 FormItem,
|
|
47
|
+
mr as FormLabel,
|
|
48
|
+
pr as FormMessage,
|
|
49
|
+
_ as Heading,
|
|
50
|
+
K as Hero,
|
|
51
|
+
P as Informer,
|
|
52
|
+
h as Input,
|
|
53
|
+
I as InputWithLabel,
|
|
54
|
+
y as Label,
|
|
55
|
+
O as Partners,
|
|
56
|
+
G as SafeHtmlRenderer,
|
|
57
|
+
V as Section,
|
|
58
|
+
w as Tag,
|
|
59
|
+
rr as Text,
|
|
60
|
+
S as Textarea,
|
|
61
|
+
H as TextareaWithLabel,
|
|
62
|
+
F as registerAdapter,
|
|
63
|
+
xr as useFormField
|
|
50
64
|
};
|
|
51
65
|
//# 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
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { Input as l } from "./index.es11.js";
|
|
2
|
-
import { Label as m } from "./index.
|
|
3
|
-
import e from "react";
|
|
4
|
-
|
|
5
|
-
function I({
|
|
2
|
+
import { Label as m } from "./index.es15.js";
|
|
3
|
+
import e, { useId as p } from "react";
|
|
4
|
+
function h({
|
|
6
5
|
variant: t = "default",
|
|
7
6
|
label: o,
|
|
8
|
-
type:
|
|
9
|
-
id:
|
|
10
|
-
placeholder:
|
|
11
|
-
className:
|
|
7
|
+
type: s = "text",
|
|
8
|
+
id: a,
|
|
9
|
+
placeholder: c,
|
|
10
|
+
className: i
|
|
12
11
|
}) {
|
|
13
|
-
const
|
|
14
|
-
return /* @__PURE__ */ e.createElement("div", { className: `grid w-full items-center gap-1 group ${
|
|
12
|
+
const r = p(), n = a || r, u = t === "default" ? "group-focus-within:text-navy-opacity-40" : "group-focus-within:text-whitish-opacity-60";
|
|
13
|
+
return /* @__PURE__ */ e.createElement("div", { className: `grid w-full items-center gap-1 group ${i}` }, o && /* @__PURE__ */ e.createElement(m, { variant: t, htmlFor: n, className: u }, o), /* @__PURE__ */ e.createElement(
|
|
15
14
|
l,
|
|
16
15
|
{
|
|
17
16
|
variant: t,
|
|
18
|
-
type:
|
|
19
|
-
id:
|
|
20
|
-
placeholder:
|
|
17
|
+
type: s,
|
|
18
|
+
id: n,
|
|
19
|
+
placeholder: c,
|
|
21
20
|
className: "focus:outline-none"
|
|
22
21
|
}
|
|
23
22
|
));
|
|
24
23
|
}
|
|
25
24
|
export {
|
|
26
|
-
|
|
25
|
+
h as InputWithLabel
|
|
27
26
|
};
|
|
28
27
|
//# sourceMappingURL=index.es12.js.map
|
package/dist/index.es12.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es12.js","sources":["../src/components/ui/input/InputWithLabel.tsx"],"sourcesContent":["import { Input } from '@/components/ui/input'\r\nimport { InputVariant } from './types'\r\nimport { Label } from '@/components/ui/label'\r\nimport React from 'react'\r\nimport {
|
|
1
|
+
{"version":3,"file":"index.es12.js","sources":["../src/components/ui/input/InputWithLabel.tsx"],"sourcesContent":["import { Input } from '@/components/ui/input'\r\nimport { InputVariant } from './types'\r\nimport { Label } from '@/components/ui/label'\r\nimport React from 'react'\r\nimport { useId } from 'react'\r\n\r\ninterface InputWithLabelProps {\r\n variant?: InputVariant\r\n label?: string\r\n type?: string\r\n id?: string\r\n placeholder?: string\r\n className?: string\r\n}\r\n\r\nexport function InputWithLabel({\r\n variant = 'default',\r\n label,\r\n type = 'text',\r\n id,\r\n placeholder,\r\n className,\r\n}: InputWithLabelProps) {\r\n const generatedId = useId()\r\n const inputId = id || generatedId\r\n\r\n const labelClasses =\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 variant={variant} htmlFor={inputId} className={labelClasses}>\r\n {label}\r\n </Label>\r\n )}\r\n <Input\r\n variant={variant}\r\n type={type}\r\n id={inputId}\r\n placeholder={placeholder}\r\n className=\"focus:outline-none\"\r\n />\r\n </div>\r\n )\r\n}\r\n"],"names":["InputWithLabel","variant","label","type","id","placeholder","className","generatedId","useId","inputId","labelClasses","React","Label","Input"],"mappings":";;;AAeO,SAASA,EAAe;AAAA,EAC7B,SAAAC,IAAU;AAAA,EACV,OAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,IAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AACF,GAAwB;AACtB,QAAMC,IAAcC,KACdC,IAAUL,KAAMG,GAEhBG,IACJT,MAAY,YACR,4CACA;AAEN,SACGU,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAW,wCAAwCL,CAAS,GAC9D,GAAAJ,KACES,gBAAAA,EAAA,cAAAC,GAAA,EAAM,SAAAX,GAAkB,SAASQ,GAAS,WAAWC,KACnDR,CACH,GAEFS,gBAAAA,EAAA;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,SAAAZ;AAAA,MACA,MAAAE;AAAA,MACA,IAAIM;AAAA,MACJ,aAAAJ;AAAA,MACA,WAAU;AAAA,IAAA;AAAA,EAAA,CAEd;AAEJ;"}
|
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;"}
|