@profiq/ui 0.1.0 → 0.1.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.
- package/dist/components/custom/basic/button.d.ts +1 -2
- package/dist/components/custom/basic/button.d.ts.map +1 -1
- package/dist/components/custom/basic/index.d.ts +17 -0
- package/dist/components/custom/basic/index.d.ts.map +1 -0
- package/dist/components/custom/basic/index.js +20 -0
- package/dist/components/custom/basic/input.d.ts +1 -2
- package/dist/components/custom/basic/input.d.ts.map +1 -1
- package/dist/components/custom/icons/index.d.ts +15 -0
- package/dist/components/custom/icons/index.d.ts.map +1 -0
- package/dist/components/custom/icons/index.js +27 -0
- package/dist/components/ui/index.d.ts +14 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +59 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +50 -7
- package/dist/lib/index.js +11 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.js +2 -0
- package/package.json +26 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { types, sizes } from '../../lib/buttonVariants';
|
|
2
2
|
import { BaseProps } from '../../lib/baseProps';
|
|
3
3
|
import { IconProps, IconKey } from '../../components/custom/icons/Icons';
|
|
4
|
-
type ButtonProps = BaseProps & {
|
|
4
|
+
export type ButtonProps = BaseProps & {
|
|
5
5
|
variant: types;
|
|
6
6
|
size: sizes;
|
|
7
7
|
title: string;
|
|
@@ -12,5 +12,4 @@ type ButtonProps = BaseProps & {
|
|
|
12
12
|
onClick?: () => void;
|
|
13
13
|
};
|
|
14
14
|
export declare function Button({ variant, size, title, leftIcon, rightIcon, leftIconProps, rightIconProps, dataTestId, onClick, theme, ariaLabel, className, }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
16
15
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/stories/basic/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EACL,KAAK,SAAS,EACd,KAAK,OAAO,EAEb,MAAM,iCAAiC,CAAC;AAGzC,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/stories/basic/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EACL,KAAK,SAAS,EACd,KAAK,OAAO,EAEb,MAAM,iCAAiC,CAAC;AAGzC,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG;IACpC,OAAO,EAAE,KAAK,CAAC;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,wBAAgB,MAAM,CAAC,EACrB,OAAmB,EACnB,IAAgB,EAChB,KAAqB,EACrB,QAAiB,EACjB,SAAkB,EAClB,aAAa,EACb,cAAc,EACd,UAAU,EACV,OAAO,EACP,KAAK,EACL,SAAS,EACT,SAAS,GACV,EAAE,WAAW,2CAkCb"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { Accordion } from './accordion';
|
|
2
|
+
export type { AccordionProps, Item as AccordionItem } from './accordion';
|
|
3
|
+
export { Button } from './button';
|
|
4
|
+
export type { ButtonProps } from './button';
|
|
5
|
+
export { InputField } from './input';
|
|
6
|
+
export type { InputFieldProps } from './input';
|
|
7
|
+
export { Select } from './select';
|
|
8
|
+
export type { Item as SelectItem } from './select';
|
|
9
|
+
export { Slider } from './slider';
|
|
10
|
+
export type { SliderProps, DefaultValue as SliderDefaultValue } from './slider';
|
|
11
|
+
export { SwitchField } from './switch';
|
|
12
|
+
export type { SwitchFieldProps } from './switch';
|
|
13
|
+
export { Table } from './table';
|
|
14
|
+
export { Text } from './text';
|
|
15
|
+
export type { TextProps } from './text';
|
|
16
|
+
export { Textarea } from './textarea';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stories/basic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEhF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Accordion as e } from "./accordion.js";
|
|
2
|
+
import { Button as x } from "./button.js";
|
|
3
|
+
import { InputField as f } from "./input.js";
|
|
4
|
+
import { Select as i } from "./select.js";
|
|
5
|
+
import { Slider as c } from "./slider.js";
|
|
6
|
+
import { SwitchField as a } from "./switch.js";
|
|
7
|
+
import { Table as S } from "./table.js";
|
|
8
|
+
import { Text as u } from "./text.js";
|
|
9
|
+
import { Textarea as b } from "./textarea.js";
|
|
10
|
+
export {
|
|
11
|
+
e as Accordion,
|
|
12
|
+
x as Button,
|
|
13
|
+
f as InputField,
|
|
14
|
+
i as Select,
|
|
15
|
+
c as Slider,
|
|
16
|
+
a as SwitchField,
|
|
17
|
+
S as Table,
|
|
18
|
+
u as Text,
|
|
19
|
+
b as Textarea
|
|
20
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseProps } from '../../lib/baseProps';
|
|
2
2
|
export type inputType = "text" | "number" | "url" | "email" | "password" | "search";
|
|
3
|
-
type InputFieldProps = BaseProps & {
|
|
3
|
+
export type InputFieldProps = BaseProps & {
|
|
4
4
|
fieldLabel: React.ReactNode;
|
|
5
5
|
fieldPlaceholder: string;
|
|
6
6
|
fieldDescription: string;
|
|
@@ -18,5 +18,4 @@ type InputFieldProps = BaseProps & {
|
|
|
18
18
|
msg?: React.ReactNode | string;
|
|
19
19
|
};
|
|
20
20
|
export declare function InputField({ fieldLabel, fieldPlaceholder, fieldDescription, isDisabled, isInvalid, isRequired, msg, type, leftNode, rightNode, defaultValue, value, onChange, onBlur, onFocus, dataTestId, theme, className, }: InputFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export {};
|
|
22
21
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/stories/basic/input.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,QAAQ,GACR,KAAK,GACL,OAAO,GACP,UAAU,GACV,QAAQ,CAAC;AAEb,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/stories/basic/input.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,QAAQ,GACR,KAAK,GACL,OAAO,GACP,UAAU,GACV,QAAQ,CAAC;AAEb,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG;IACxC,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC,IAAI,EAAE,SAAS,CAAC;IAEhB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,wBAAgB,UAAU,CAAC,EACzB,UAAU,EACV,gBAAqB,EACrB,gBAAqB,EAErB,UAAkB,EAClB,SAAiB,EACjB,UAAkB,EAElB,GAAQ,EACR,IAAI,EAEJ,QAAQ,EACR,SAAS,EAET,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,OAAO,EAEP,UAAU,EACV,KAAK,EACL,SAAS,GACV,EAAE,eAAe,2CA8FjB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { Backpack } from './Backpack';
|
|
2
|
+
export { CaretDown } from './CaretDown';
|
|
3
|
+
export { CaretUp } from './CaretUp';
|
|
4
|
+
export { DotsVertical } from './DotsVertical';
|
|
5
|
+
export { HamburgerMenu } from './HamburgerMenu';
|
|
6
|
+
export { Home } from './Home';
|
|
7
|
+
export { MagnifyingGlass } from './MagnifyingGlass';
|
|
8
|
+
export { Moon } from './Moon';
|
|
9
|
+
export { Sun } from './Sun';
|
|
10
|
+
export { iconMap } from './Icons';
|
|
11
|
+
export type { IconKey, IconProps } from './Icons';
|
|
12
|
+
export { Profiq } from './logo/Profiq';
|
|
13
|
+
export { LogoVariations, LOGO_COLOR_MAP } from './logo/logoVariations';
|
|
14
|
+
export type { logoVarUnion as LogoVariation } from './logo/logoVariations';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/icons/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG5B,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,YAAY,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Backpack as e } from "./Backpack.js";
|
|
2
|
+
import { CaretDown as p } from "./CaretDown.js";
|
|
3
|
+
import { CaretUp as m } from "./CaretUp.js";
|
|
4
|
+
import { DotsVertical as a } from "./DotsVertical.js";
|
|
5
|
+
import { HamburgerMenu as i } from "./HamburgerMenu.js";
|
|
6
|
+
import { Home as c } from "./Home.js";
|
|
7
|
+
import { MagnifyingGlass as s } from "./MagnifyingGlass.js";
|
|
8
|
+
import { Moon as u } from "./Moon.js";
|
|
9
|
+
import { Sun as L } from "./Sun.js";
|
|
10
|
+
import { iconMap as l } from "./Icons.js";
|
|
11
|
+
import { Profiq as G } from "./logo/Profiq.js";
|
|
12
|
+
import { LOGO_COLOR_MAP as P, LogoVariations as V } from "./logo/logoVariations.js";
|
|
13
|
+
export {
|
|
14
|
+
e as Backpack,
|
|
15
|
+
p as CaretDown,
|
|
16
|
+
m as CaretUp,
|
|
17
|
+
a as DotsVertical,
|
|
18
|
+
i as HamburgerMenu,
|
|
19
|
+
c as Home,
|
|
20
|
+
P as LOGO_COLOR_MAP,
|
|
21
|
+
V as LogoVariations,
|
|
22
|
+
s as MagnifyingGlass,
|
|
23
|
+
u as Moon,
|
|
24
|
+
G as Profiq,
|
|
25
|
+
L as Sun,
|
|
26
|
+
l as iconMap
|
|
27
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from './accordion';
|
|
2
|
+
export { Button } from './button';
|
|
3
|
+
export { buttonVariants } from './buttonVariants';
|
|
4
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, } from './field';
|
|
5
|
+
export { Input } from './input';
|
|
6
|
+
export { Label } from './label';
|
|
7
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, } from './select';
|
|
8
|
+
export { Separator } from './separator';
|
|
9
|
+
export { Slider } from './slider';
|
|
10
|
+
export { Switch } from './switch';
|
|
11
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from './table';
|
|
12
|
+
export { Textarea } from './textarea';
|
|
13
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, } from './tooltip';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,WAAW,EACX,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,UAAU,GACX,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,OAAO,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Accordion as r, AccordionContent as t, AccordionItem as l, AccordionTrigger as i } from "./accordion.js";
|
|
2
|
+
import { Button as a } from "./button.js";
|
|
3
|
+
import { buttonVariants as n } from "./buttonVariants.js";
|
|
4
|
+
import { Field as S, FieldContent as T, FieldDescription as m, FieldError as x, FieldGroup as f, FieldLabel as b, FieldLegend as F, FieldSeparator as u, FieldSet as g, FieldTitle as C } from "./field.js";
|
|
5
|
+
import { Input as B } from "./input.js";
|
|
6
|
+
import { Label as w } from "./label.js";
|
|
7
|
+
import { Select as s, SelectContent as D, SelectGroup as G, SelectItem as H, SelectLabel as V, SelectScrollDownButton as h, SelectScrollUpButton as v, SelectSeparator as y, SelectTrigger as E, SelectValue as P } from "./select.js";
|
|
8
|
+
import { Separator as U } from "./separator.js";
|
|
9
|
+
import { Slider as k } from "./slider.js";
|
|
10
|
+
import { Switch as z } from "./switch.js";
|
|
11
|
+
import { Table as K, TableBody as M, TableCaption as N, TableCell as O, TableFooter as Q, TableHead as W, TableHeader as X, TableRow as Y } from "./table.js";
|
|
12
|
+
import { Textarea as _ } from "./textarea.js";
|
|
13
|
+
import { Tooltip as ee, TooltipContent as oe, TooltipProvider as re, TooltipTrigger as te } from "./tooltip.js";
|
|
14
|
+
export {
|
|
15
|
+
r as Accordion,
|
|
16
|
+
t as AccordionContent,
|
|
17
|
+
l as AccordionItem,
|
|
18
|
+
i as AccordionTrigger,
|
|
19
|
+
a as Button,
|
|
20
|
+
S as Field,
|
|
21
|
+
T as FieldContent,
|
|
22
|
+
m as FieldDescription,
|
|
23
|
+
x as FieldError,
|
|
24
|
+
f as FieldGroup,
|
|
25
|
+
b as FieldLabel,
|
|
26
|
+
F as FieldLegend,
|
|
27
|
+
u as FieldSeparator,
|
|
28
|
+
g as FieldSet,
|
|
29
|
+
C as FieldTitle,
|
|
30
|
+
B as Input,
|
|
31
|
+
w as Label,
|
|
32
|
+
s as Select,
|
|
33
|
+
D as SelectContent,
|
|
34
|
+
G as SelectGroup,
|
|
35
|
+
H as SelectItem,
|
|
36
|
+
V as SelectLabel,
|
|
37
|
+
h as SelectScrollDownButton,
|
|
38
|
+
v as SelectScrollUpButton,
|
|
39
|
+
y as SelectSeparator,
|
|
40
|
+
E as SelectTrigger,
|
|
41
|
+
P as SelectValue,
|
|
42
|
+
U as Separator,
|
|
43
|
+
k as Slider,
|
|
44
|
+
z as Switch,
|
|
45
|
+
K as Table,
|
|
46
|
+
M as TableBody,
|
|
47
|
+
N as TableCaption,
|
|
48
|
+
O as TableCell,
|
|
49
|
+
Q as TableFooter,
|
|
50
|
+
W as TableHead,
|
|
51
|
+
X as TableHeader,
|
|
52
|
+
Y as TableRow,
|
|
53
|
+
_ as Textarea,
|
|
54
|
+
ee as Tooltip,
|
|
55
|
+
oe as TooltipContent,
|
|
56
|
+
re as TooltipProvider,
|
|
57
|
+
te as TooltipTrigger,
|
|
58
|
+
n as buttonVariants
|
|
59
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAG5B,cAAc,uBAAuB,CAAC;AAGtC,cAAc,iCAAiC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,54 @@
|
|
|
1
|
-
import { themes as
|
|
2
|
-
import { useMakeTestId as
|
|
1
|
+
import { themes as e } from "./lib/baseProps.js";
|
|
2
|
+
import { useMakeTestId as p } from "./lib/hooks/useMakeTestId.js";
|
|
3
3
|
import { cn as f } from "./lib/utils.js";
|
|
4
|
-
import { sizeClasses as
|
|
4
|
+
import { sizeClasses as a, weightClasses as i } from "./lib/text.types.js";
|
|
5
|
+
import { Accordion as n } from "./components/custom/basic/accordion.js";
|
|
6
|
+
import { Button as l } from "./components/custom/basic/button.js";
|
|
7
|
+
import { InputField as M } from "./components/custom/basic/input.js";
|
|
8
|
+
import { Select as g } from "./components/custom/basic/select.js";
|
|
9
|
+
import { Slider as O } from "./components/custom/basic/slider.js";
|
|
10
|
+
import { SwitchField as T } from "./components/custom/basic/switch.js";
|
|
11
|
+
import { Table as k } from "./components/custom/basic/table.js";
|
|
12
|
+
import { Text as L } from "./components/custom/basic/text.js";
|
|
13
|
+
import { Textarea as A } from "./components/custom/basic/textarea.js";
|
|
14
|
+
import { Backpack as D } from "./components/custom/icons/Backpack.js";
|
|
15
|
+
import { CaretDown as G } from "./components/custom/icons/CaretDown.js";
|
|
16
|
+
import { CaretUp as I } from "./components/custom/icons/CaretUp.js";
|
|
17
|
+
import { DotsVertical as V } from "./components/custom/icons/DotsVertical.js";
|
|
18
|
+
import { HamburgerMenu as q } from "./components/custom/icons/HamburgerMenu.js";
|
|
19
|
+
import { Home as z } from "./components/custom/icons/Home.js";
|
|
20
|
+
import { MagnifyingGlass as U } from "./components/custom/icons/MagnifyingGlass.js";
|
|
21
|
+
import { Moon as v } from "./components/custom/icons/Moon.js";
|
|
22
|
+
import { Sun as J } from "./components/custom/icons/Sun.js";
|
|
23
|
+
import { iconMap as N } from "./components/custom/icons/Icons.js";
|
|
24
|
+
import { Profiq as W } from "./components/custom/icons/logo/Profiq.js";
|
|
25
|
+
import { LOGO_COLOR_MAP as Y, LogoVariations as Z } from "./components/custom/icons/logo/logoVariations.js";
|
|
5
26
|
export {
|
|
27
|
+
n as Accordion,
|
|
28
|
+
D as Backpack,
|
|
29
|
+
l as Button,
|
|
30
|
+
G as CaretDown,
|
|
31
|
+
I as CaretUp,
|
|
32
|
+
V as DotsVertical,
|
|
33
|
+
q as HamburgerMenu,
|
|
34
|
+
z as Home,
|
|
35
|
+
M as InputField,
|
|
36
|
+
Y as LOGO_COLOR_MAP,
|
|
37
|
+
Z as LogoVariations,
|
|
38
|
+
U as MagnifyingGlass,
|
|
39
|
+
v as Moon,
|
|
40
|
+
W as Profiq,
|
|
41
|
+
g as Select,
|
|
42
|
+
O as Slider,
|
|
43
|
+
J as Sun,
|
|
44
|
+
T as SwitchField,
|
|
45
|
+
k as Table,
|
|
46
|
+
L as Text,
|
|
47
|
+
A as Textarea,
|
|
6
48
|
f as cn,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
49
|
+
N as iconMap,
|
|
50
|
+
a as sizeClasses,
|
|
51
|
+
e as themes,
|
|
52
|
+
p as useMakeTestId,
|
|
53
|
+
i as weightClasses
|
|
11
54
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { themes as o } from "./baseProps.js";
|
|
2
|
+
import { useMakeTestId as t } from "./hooks/useMakeTestId.js";
|
|
3
|
+
import { cn as f } from "./utils.js";
|
|
4
|
+
import { sizeClasses as x, weightClasses as a } from "./text.types.js";
|
|
5
|
+
export {
|
|
6
|
+
f as cn,
|
|
7
|
+
x as sizeClasses,
|
|
8
|
+
o as themes,
|
|
9
|
+
t as useMakeTestId,
|
|
10
|
+
a as weightClasses
|
|
11
|
+
};
|
package/dist/styles.d.ts
ADDED
package/dist/styles.js
ADDED
package/package.json
CHANGED
|
@@ -1,26 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@profiq/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A React UI component library built on ShadCN specially for internal use by profiq",
|
|
7
|
-
"main": "./dist/
|
|
8
|
-
"module": "./dist/
|
|
9
|
-
"types": "./dist/
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./styles": {
|
|
16
|
+
"types": "./dist/styles.d.ts",
|
|
17
|
+
"import": "./dist/styles.js"
|
|
18
|
+
},
|
|
19
|
+
"./lib": {
|
|
12
20
|
"types": "./dist/lib/index.d.ts",
|
|
13
21
|
"import": "./dist/lib/index.js"
|
|
14
22
|
},
|
|
15
23
|
"./index.css": "./dist/index.css",
|
|
24
|
+
"./components/ui": {
|
|
25
|
+
"types": "./dist/components/ui/index.d.ts",
|
|
26
|
+
"import": "./dist/components/ui/index.js"
|
|
27
|
+
},
|
|
16
28
|
"./components/ui/*": {
|
|
17
29
|
"types": "./dist/components/ui/*.d.ts",
|
|
18
30
|
"import": "./dist/components/ui/*.js"
|
|
19
31
|
},
|
|
32
|
+
"./components/custom/icons": {
|
|
33
|
+
"types": "./dist/components/custom/icons/index.d.ts",
|
|
34
|
+
"import": "./dist/components/custom/icons/index.js"
|
|
35
|
+
},
|
|
20
36
|
"./components/custom/icons/*": {
|
|
21
37
|
"types": "./dist/components/custom/icons/*.d.ts",
|
|
22
38
|
"import": "./dist/components/custom/icons/*.js"
|
|
23
39
|
},
|
|
40
|
+
"./components/custom/basic": {
|
|
41
|
+
"types": "./dist/components/custom/basic/index.d.ts",
|
|
42
|
+
"import": "./dist/components/custom/basic/index.js"
|
|
43
|
+
},
|
|
24
44
|
"./components/custom/basic/*": {
|
|
25
45
|
"types": "./dist/components/custom/basic/*.d.ts",
|
|
26
46
|
"import": "./dist/components/custom/basic/*.js"
|
|
@@ -52,8 +72,8 @@
|
|
|
52
72
|
"homepage": "https://ui-react.profiq.com",
|
|
53
73
|
"scripts": {
|
|
54
74
|
"dev": "vite",
|
|
55
|
-
"build": "vite build --mode lib",
|
|
56
|
-
"build:lib": "vite build --mode lib",
|
|
75
|
+
"build": "vite build --mode lib && node scripts/create-styles-entry.js",
|
|
76
|
+
"build:lib": "vite build --mode lib && node scripts/create-styles-entry.js",
|
|
57
77
|
"lint": "eslint .",
|
|
58
78
|
"preview": "vite preview",
|
|
59
79
|
"storybook": "storybook dev -p 6006",
|