athameui 0.0.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/README.md +7 -0
- package/components/Accordion/Accordion.tsx +81 -0
- package/components/Accordion/AccordionItem.tsx +65 -0
- package/components/Accordion/index.ts +2 -0
- package/components/Button/BackToTopButton.tsx +53 -0
- package/components/Button/Button.tsx +114 -0
- package/components/Button/ButtonGroup.tsx +13 -0
- package/components/Button/ButtonPrimitive.tsx +16 -0
- package/components/Button/button.variants.ts +30 -0
- package/components/Button/index.ts +3 -0
- package/components/Button/stories/Buttons.stories.tsx +81 -0
- package/components/Header/Header.tsx +12 -0
- package/components/Header/index.ts +1 -0
- package/components/List/List.tsx +44 -0
- package/components/List/ListItem.tsx +52 -0
- package/components/index.ts +5 -0
- package/dist/athameui.cjs +188 -0
- package/dist/athameui.cjs.map +1 -0
- package/dist/athameui.mjs +181 -0
- package/dist/athameui.mjs.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +15 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionItem.d.ts +15 -0
- package/dist/components/Accordion/AccordionItem.d.ts.map +1 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Button/BackToTopButton.d.ts +7 -0
- package/dist/components/Button/BackToTopButton.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +48 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/ButtonGroup.d.ts +8 -0
- package/dist/components/Button/ButtonGroup.d.ts.map +1 -0
- package/dist/components/Button/ButtonPrimitive.d.ts +3 -0
- package/dist/components/Button/ButtonPrimitive.d.ts.map +1 -0
- package/dist/components/Button/button.variants.d.ts +29 -0
- package/dist/components/Button/button.variants.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Header/Header.d.ts +7 -0
- package/dist/components/Header/Header.d.ts.map +1 -0
- package/dist/components/Header/index.d.ts +2 -0
- package/dist/components/Header/index.d.ts.map +1 -0
- package/dist/components/List/List.d.ts +18 -0
- package/dist/components/List/List.d.ts.map +1 -0
- package/dist/components/List/ListItem.d.ts +20 -0
- package/dist/components/List/ListItem.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/utils/cx.d.ts +2 -0
- package/dist/utils/cx.d.ts.map +1 -0
- package/main.ts +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AccordionItemType } from "./AccordionItem";
|
|
2
|
+
type AccordionProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
items: AccordionItemType[];
|
|
5
|
+
childrenFirst?: boolean;
|
|
6
|
+
expand?: "one" | "any";
|
|
7
|
+
className?: string | {
|
|
8
|
+
accordion?: string | false | null | undefined;
|
|
9
|
+
accordionItem?: string | false | null | undefined;
|
|
10
|
+
} | false | undefined | null;
|
|
11
|
+
expandToggleCallback?: (expandedItems: (string | number)[]) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const Accordion: ({ children, className, items, childrenFirst, expand, expandToggleCallback, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,KAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,SAAS,CAAC,EACN,MAAM,GACN;QACE,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;QAC9C,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KACnD,GACD,KAAK,GACL,SAAS,GACT,IAAI,CAAC;IACT,oBAAoB,CAAC,EAAE,CAAC,aAAa,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,8EAQvB,cAAc,4CAiDhB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type AccordionItemType = {
|
|
2
|
+
id: string | number;
|
|
3
|
+
heading: string;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export type AccordionItemProps = {
|
|
7
|
+
item: AccordionItemType;
|
|
8
|
+
expanded: boolean;
|
|
9
|
+
onToggle: (id: string | number) => void;
|
|
10
|
+
className?: string | {
|
|
11
|
+
accordionItem?: string | false | null | undefined;
|
|
12
|
+
} | false | undefined | null;
|
|
13
|
+
};
|
|
14
|
+
export declare const AccordionItem: ({ item, expanded, onToggle, className, }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=AccordionItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../components/Accordion/AccordionItem.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,iBAAiB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EACN,MAAM,GACN;QAAE,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;KAAE,GACrD,KAAK,GACL,SAAS,GACT,IAAI,CAAC;CACV,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,0CAK3B,kBAAkB,4CAoCpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Accordion/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ButtonProps } from "./Button";
|
|
2
|
+
type BackToTopButtonProps = ButtonProps & {
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const BackToTopButton: (props: BackToTopButtonProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=BackToTopButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackToTopButton.d.ts","sourceRoot":"","sources":["../../../components/Button/BackToTopButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,KAAK,oBAAoB,GAAG,WAAW,GAAG;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,mDAwC1D,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ButtonPrimitiveProps } from "./ButtonPrimitive";
|
|
2
|
+
import { ButtonSize, ButtonVariant } from "./button.variants";
|
|
3
|
+
import type { KeyboardEventHandler, MouseEventHandler, ReactElement } from "react";
|
|
4
|
+
export type ButtonProps = Omit<ButtonPrimitiveProps, "className"> & {
|
|
5
|
+
children?: ReactElement | string;
|
|
6
|
+
className?: string | {
|
|
7
|
+
button?: string | false | null | undefined;
|
|
8
|
+
} | false | undefined | null;
|
|
9
|
+
type?: "button" | "submit" | "reset";
|
|
10
|
+
variant?: ButtonVariant;
|
|
11
|
+
size?: ButtonSize;
|
|
12
|
+
dark?: boolean;
|
|
13
|
+
iconOnly?: boolean;
|
|
14
|
+
icon?: ReactElement | string;
|
|
15
|
+
title?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
autoFocus?: boolean;
|
|
18
|
+
tabIndex?: number;
|
|
19
|
+
testId?: string;
|
|
20
|
+
textAlign?: "left" | "center" | "right";
|
|
21
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
22
|
+
onKeyDown?: KeyboardEventHandler<HTMLButtonElement>;
|
|
23
|
+
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
24
|
+
onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
25
|
+
};
|
|
26
|
+
export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "className"> & {
|
|
27
|
+
children?: ReactElement | string;
|
|
28
|
+
className?: string | {
|
|
29
|
+
button?: string | false | null | undefined;
|
|
30
|
+
} | false | undefined | null;
|
|
31
|
+
type?: "button" | "submit" | "reset";
|
|
32
|
+
variant?: ButtonVariant;
|
|
33
|
+
size?: ButtonSize;
|
|
34
|
+
dark?: boolean;
|
|
35
|
+
iconOnly?: boolean;
|
|
36
|
+
icon?: ReactElement | string;
|
|
37
|
+
title?: string;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
autoFocus?: boolean;
|
|
40
|
+
tabIndex?: number;
|
|
41
|
+
testId?: string;
|
|
42
|
+
textAlign?: "left" | "center" | "right";
|
|
43
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
44
|
+
onKeyDown?: KeyboardEventHandler<HTMLButtonElement>;
|
|
45
|
+
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
46
|
+
onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
47
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,OAAO,EAAkB,UAAU,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE9E,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACb,MAAM,OAAO,CAAC;AAGf,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC,GAAG;IAClE,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IACjC,SAAS,CAAC,EACN,MAAM,GACN;QAAE,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;KAAE,GAC9C,KAAK,GACL,SAAS,GACT,IAAI,CAAC;IACT,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAExC,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IACpD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC/D,CAAC;AAEF,eAAO,MAAM,MAAM;eA1BN,YAAY,GAAG,MAAM;gBAE5B,MAAM,GACN;QAAE,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;KAAE,GAC9C,KAAK,GACL,SAAS,GACT,IAAI;WACD,QAAQ,GAAG,QAAQ,GAAG,OAAO;cAC1B,aAAa;WAChB,UAAU;WACV,OAAO;eACH,OAAO;WACX,YAAY,GAAG,MAAM;YACpB,MAAM;eACH,OAAO;gBACN,OAAO;eACR,MAAM;aACR,MAAM;gBACH,MAAM,GAAG,QAAQ,GAAG,OAAO;cAE7B,iBAAiB,CAAC,iBAAiB,CAAC;gBAClC,oBAAoB,CAAC,iBAAiB,CAAC;cACzC,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI;aACrD,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI;qDA2E9D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type ButtonGroupProps = {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
gap?: string;
|
|
4
|
+
direction?: "row" | "column";
|
|
5
|
+
};
|
|
6
|
+
export declare const ButtonGroup: ({ children, gap, direction, }: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ButtonGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../../components/Button/ButtonGroup.tsx"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,+BAIzB,gBAAgB,4CAElB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type ButtonPrimitiveProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {};
|
|
2
|
+
export declare const ButtonPrimitive: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
//# sourceMappingURL=ButtonPrimitive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonPrimitive.d.ts","sourceRoot":"","sources":["../../../components/Button/ButtonPrimitive.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,oBAAoB,GAC9B,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG,EAAE,CAAC;AAErD,eAAO,MAAM,eAAe,uJAS1B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const buttonVariants: {
|
|
2
|
+
readonly size: {
|
|
3
|
+
readonly small: "ath-button-small";
|
|
4
|
+
readonly medium: "ath-button-medium";
|
|
5
|
+
readonly large: "ath-button-large";
|
|
6
|
+
readonly full: "ath-button-full";
|
|
7
|
+
};
|
|
8
|
+
readonly variant: {
|
|
9
|
+
readonly primary: "ath-button-primary";
|
|
10
|
+
readonly secondary: "ath-button-secondary";
|
|
11
|
+
readonly tertiary: "ath-button-tertiary";
|
|
12
|
+
readonly danger: "ath-button-danger";
|
|
13
|
+
readonly warning: "ath-button-warning";
|
|
14
|
+
readonly success: "ath-button-success";
|
|
15
|
+
readonly outline: "ath-button-outline";
|
|
16
|
+
readonly ghost: "ath-button-ghost";
|
|
17
|
+
};
|
|
18
|
+
readonly textAlign: {
|
|
19
|
+
readonly left: "ath-button-text-left";
|
|
20
|
+
readonly center: "ath-button-text-center";
|
|
21
|
+
readonly right: "ath-button-text-right";
|
|
22
|
+
};
|
|
23
|
+
readonly dark: "ath-button-dark";
|
|
24
|
+
};
|
|
25
|
+
export type ButtonSize = keyof typeof buttonVariants.size;
|
|
26
|
+
export type ButtonVariant = keyof typeof buttonVariants.variant;
|
|
27
|
+
export type ButtonDark = keyof typeof buttonVariants.dark;
|
|
28
|
+
export type ButtonTextAlign = keyof typeof buttonVariants.textAlign;
|
|
29
|
+
//# sourceMappingURL=button.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.variants.d.ts","sourceRoot":"","sources":["../../../components/Button/button.variants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;CAuBjB,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,cAAc,CAAC,IAAI,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAC,OAAO,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,cAAc,CAAC,IAAI,CAAC;AAC1D,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,cAAc,CAAC,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../components/Header/Header.tsx"],"names":[],"mappings":"AAEA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,yBAAyB,WAAW,4CAI1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Header/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
type ListProps = {
|
|
3
|
+
children?: ReactNode[];
|
|
4
|
+
addClasses?: {
|
|
5
|
+
list?: string;
|
|
6
|
+
ul?: string;
|
|
7
|
+
ol?: string;
|
|
8
|
+
};
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
ariaLabelledBy?: string;
|
|
11
|
+
ariaDescribedBy?: string;
|
|
12
|
+
role?: "list" | "menu" | "menubar" | "tablist" | "tree" | "grid";
|
|
13
|
+
dataTestId?: string;
|
|
14
|
+
ordered?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const List: React.FC<ListProps>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=List.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../components/List/List.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0BpC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type ListItemProps = {
|
|
2
|
+
children?: React.ReactNode;
|
|
3
|
+
addClasses?: {
|
|
4
|
+
li?: string;
|
|
5
|
+
};
|
|
6
|
+
useHover?: boolean;
|
|
7
|
+
role?: "listitem" | "menuitem" | "tab" | "treeitem" | "option";
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
ariaDescribedBy?: string;
|
|
10
|
+
ariaSelected?: boolean;
|
|
11
|
+
ariaExpanded?: boolean;
|
|
12
|
+
ariaLevel?: number;
|
|
13
|
+
tabIndex?: number;
|
|
14
|
+
dataTestId?: string;
|
|
15
|
+
onClick?: (event: React.MouseEvent<HTMLLIElement>) => void;
|
|
16
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLLIElement>) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const ListItem: React.FC<ListItemProps>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=ListItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../components/List/ListItem.tsx"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE;QACX,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,KAAK,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAC3D,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;CACjE,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiC5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx.d.ts","sourceRoot":"","sources":["../../utils/cx.ts"],"names":[],"mappings":"AAAA,wBAAgB,EAAE,CAAC,GAAG,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,UAEtE"}
|
package/main.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "athameui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.2",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/athameui.cjs",
|
|
7
|
+
"module": "./dist/athameui.mjs",
|
|
8
|
+
"types": "./dist/main.d.ts",
|
|
9
|
+
"description": "A sharp React component library that's a cut above the rest. ...sorry, not sorry.",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/main.d.ts",
|
|
13
|
+
"import": "./dist/athameui.mjs",
|
|
14
|
+
"require": "./dist/athameui.cjs",
|
|
15
|
+
"default": "./dist/athameui.mjs"
|
|
16
|
+
},
|
|
17
|
+
"./tokens.css": "./dist/tokens.css",
|
|
18
|
+
"./theme.css": "./styles/theme.css"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"main.ts",
|
|
23
|
+
"components"
|
|
24
|
+
],
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": "^18.0.0",
|
|
27
|
+
"react-dom": "^18.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
31
|
+
"@eslint/js": "^9.39.1",
|
|
32
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
33
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
34
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
35
|
+
"@storybook/addon-a11y": "^10.1.3",
|
|
36
|
+
"@storybook/addon-docs": "^10.1.3",
|
|
37
|
+
"@types/node": "^24.10.0",
|
|
38
|
+
"@types/react": "^18.3.27",
|
|
39
|
+
"@types/react-dom": "^18.3.7",
|
|
40
|
+
"@vitest/browser-playwright": "^4.0.15",
|
|
41
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
42
|
+
"eslint": "^9.39.1",
|
|
43
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
44
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
45
|
+
"eslint-plugin-storybook": "^10.1.3",
|
|
46
|
+
"globals": "^16.5.0",
|
|
47
|
+
"playwright": "^1.57.0",
|
|
48
|
+
"postcss-nested": "^7.0.2",
|
|
49
|
+
"rollup": "^4.53.5",
|
|
50
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
51
|
+
"storybook": "^10.1.3",
|
|
52
|
+
"typescript": "~5.9.3",
|
|
53
|
+
"typescript-eslint": "^8.46.3"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@hugeicons/core-free-icons": "^2.0.0",
|
|
57
|
+
"@hugeicons/react": "^1.1.1",
|
|
58
|
+
"@storybook/addon-vitest": "^10.1.9",
|
|
59
|
+
"@storybook/react-vite": "^10.1.9",
|
|
60
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
61
|
+
"autoprefixer": "^10.4.22",
|
|
62
|
+
"postcss": "^8.5.6",
|
|
63
|
+
"postcss-nesting": "^13.0.2",
|
|
64
|
+
"vite": "^7.3.0"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "rollup -c",
|
|
68
|
+
"dev": "rollup -c --watch",
|
|
69
|
+
"lint": "eslint .",
|
|
70
|
+
"storybook": "storybook dev -p 6006",
|
|
71
|
+
"build-storybook": "storybook build"
|
|
72
|
+
}
|
|
73
|
+
}
|