athameui 0.0.9-c → 0.0.11

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.
Files changed (40) hide show
  1. package/components/Avatar/Avatar.tsx +0 -1
  2. package/components/Button/Button.tsx +18 -0
  3. package/components/Button/button.variants.ts +1 -0
  4. package/components/Carousel/Carousel.tsx +84 -0
  5. package/components/Carousel/index.ts +1 -0
  6. package/components/DropDown/Dropdown.tsx +0 -1
  7. package/components/index.ts +1 -0
  8. package/dist/athameui.cjs +118 -6
  9. package/dist/athameui.cjs.map +1 -1
  10. package/dist/athameui.mjs +103 -8
  11. package/dist/athameui.mjs.map +1 -1
  12. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  13. package/dist/components/Button/Button.d.ts +3 -0
  14. package/dist/components/Button/Button.d.ts.map +1 -1
  15. package/dist/components/Button/button.variants.d.ts +1 -0
  16. package/dist/components/Button/button.variants.d.ts.map +1 -1
  17. package/dist/components/Carousel/Carousel.d.ts +14 -0
  18. package/dist/components/Carousel/Carousel.d.ts.map +1 -0
  19. package/dist/components/Carousel/index.d.ts +2 -0
  20. package/dist/components/Carousel/index.d.ts.map +1 -0
  21. package/dist/components/DropDown/Dropdown.d.ts.map +1 -1
  22. package/dist/components/index.d.ts +1 -0
  23. package/dist/components/index.d.ts.map +1 -1
  24. package/dist/styles/breakpoints.d.ts +16 -0
  25. package/dist/styles/breakpoints.d.ts.map +1 -1
  26. package/dist/styles/breakpoints.ts +21 -0
  27. package/dist/styles/components/button.css +4 -1
  28. package/dist/styles/components/carousel.css +43 -0
  29. package/dist/styles/components/form-input.css +10 -1
  30. package/dist/styles/components/main.css +3 -1
  31. package/dist/styles/theme.css +1 -0
  32. package/dist/styles/tokens.css +6 -10
  33. package/package.json +1 -1
  34. package/styles/breakpoints.ts +21 -0
  35. package/styles/components/button.css +4 -1
  36. package/styles/components/carousel.css +43 -0
  37. package/styles/components/form-input.css +10 -1
  38. package/styles/components/main.css +3 -1
  39. package/styles/theme.css +1 -0
  40. package/styles/tokens.css +6 -10
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE;QACV,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;KAEnB,CAAC;IACF,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IAChD,EAAE,CAAC,EAAE;QACH,MAAM,CAAC,EAAE,SAAS,CAAC;QACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;KAEtB,CAAC;CACH,CAAC;AAGF,eAAO,MAAM,MAAM,GAAI,uCAKpB,WAAW,qDAmBb,CAAC"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE;QACV,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;KAEnB,CAAC;IACF,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IAChD,EAAE,CAAC,EAAE;QACH,MAAM,CAAC,EAAE,SAAS,CAAC;QACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;KAEtB,CAAC;CACH,CAAC;AAGF,eAAO,MAAM,MAAM,GAAI,uCAKpB,WAAW,qDAkBb,CAAC"}
@@ -20,10 +20,13 @@ export type ButtonProps = {
20
20
  textPosition?: "left" | "center" | "right";
21
21
  type?: "button" | "submit" | "reset";
22
22
  variant?: ButtonVariant;
23
+ wrap?: boolean;
23
24
  onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
24
25
  onClick?: MouseEventHandler<HTMLButtonElement>;
25
26
  onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
26
27
  onKeyDown?: KeyboardEventHandler<HTMLButtonElement>;
28
+ onMouseEnter?: MouseEventHandler<HTMLButtonElement>;
29
+ onMouseLeave?: MouseEventHandler<HTMLButtonElement>;
27
30
  };
28
31
  export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
29
32
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACb,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE;QACV,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;QAC3C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KAC1C,CAAC;IACF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,EAAE,CAAC,EAAE,SAAS,GAAG;QAAE,MAAM,CAAC,EAAE,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3C,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,SAAS,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,MAAM,2GAkFlB,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../components/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACb,MAAM,OAAO,CAAC;AAEf,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACpC,SAAS,CAAC,EAAE;QACV,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;QAC3C,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KAC1C,CAAC;IACF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,EAAE,CAAC,EAAE,SAAS,GAAG;QAAE,MAAM,CAAC,EAAE,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC3C,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,SAAS,CAAC,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,MAAM,2GAiGlB,CAAC"}
@@ -21,6 +21,7 @@ export declare const buttonVariants: {
21
21
  readonly ghost: "ath-button-ghost";
22
22
  };
23
23
  readonly dark: "ath-button-dark";
24
+ readonly wrap: "ath-button-wrap";
24
25
  };
25
26
  export type ButtonSize = keyof typeof buttonVariants.size;
26
27
  export type ButtonVariant = keyof typeof buttonVariants.variant;
@@ -1 +1 @@
1
- {"version":3,"file":"button.variants.d.ts","sourceRoot":"","sources":["../../../components/Button/button.variants.ts"],"names":[],"mappings":"AAAA,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,OAAO,cAAc,CAAC,IAAI,CAAC;AACpD,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,cAAc,CAAC,YAAY,CAAC"}
1
+ {"version":3,"file":"button.variants.d.ts","sourceRoot":"","sources":["../../../components/Button/button.variants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;CAwBjB,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,OAAO,cAAc,CAAC,IAAI,CAAC;AACpD,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,cAAc,CAAC,YAAY,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type ReactNode } from "react";
2
+ import { CSSObject } from "@emotion/react";
3
+ export type CarouselProps = {
4
+ children?: ReactNode;
5
+ className?: {
6
+ carousel?: string | false | null | undefined;
7
+ };
8
+ emptyMessage?: string;
9
+ sx?: {
10
+ carousel?: CSSObject;
11
+ };
12
+ };
13
+ export declare const Carousel: ({ children, className, emptyMessage, sx, }: CarouselProps) => import("@emotion/react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=Carousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../components/Carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAM3C,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KAC9C,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,EAAE,CAAC,EAAE;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,4CAKtB,aAAa,qDA4Df,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./Carousel";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Carousel/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../components/DropDown/Dropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KAC9C,CAAC;IACF,MAAM,EAAE,OAAO,CAAC;IAChB,EAAE,CAAC,EAAE;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC;KACtB,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,+CAOtB,aAAa,qDAmCf,CAAC"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../components/DropDown/Dropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KAC9C,CAAC;IACF,MAAM,EAAE,OAAO,CAAC;IAChB,EAAE,CAAC,EAAE;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC;KACtB,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,+CAOtB,aAAa,qDAkCf,CAAC"}
@@ -3,6 +3,7 @@ export * from "./Avatar";
3
3
  export * from "./Block";
4
4
  export * from "./Button";
5
5
  export * from "./ButtonGroup";
6
+ export * from "./Carousel";
6
7
  export * from "./DropDown";
7
8
  export * from "./ContainerScalingText";
8
9
  export * from "./FormField";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -10,4 +10,20 @@ export declare const breakpoints: {
10
10
  };
11
11
  export type Breakpoints = typeof breakpoints;
12
12
  export type Breakpoint = keyof typeof breakpoints;
13
+ export declare const minXs: string;
14
+ export declare const minSm: string;
15
+ export declare const minMd: string;
16
+ export declare const minLg: string;
17
+ export declare const minXl: string;
18
+ export declare const min2xl: string;
19
+ export declare const min3xl: string;
20
+ export declare const min4xl: string;
21
+ export declare const maxXs: string;
22
+ export declare const maxSm: string;
23
+ export declare const maxMd: string;
24
+ export declare const maxLg: string;
25
+ export declare const maxXl: string;
26
+ export declare const max2xl: string;
27
+ export declare const max3xl: string;
28
+ export declare const max4xl: string;
13
29
  //# sourceMappingURL=breakpoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../styles/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;CASd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAC7C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../styles/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;CASd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAC7C,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAKlD,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,MAAM,QAA+B,CAAC;AACnD,eAAO,MAAM,MAAM,QAA+B,CAAC;AACnD,eAAO,MAAM,MAAM,QAA+B,CAAC;AAEnD,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,KAAK,QAA2B,CAAC;AAC9C,eAAO,MAAM,MAAM,QAA+B,CAAC;AACnD,eAAO,MAAM,MAAM,QAA+B,CAAC;AACnD,eAAO,MAAM,MAAM,QAA+B,CAAC"}
@@ -11,3 +11,24 @@ export const breakpoints = {
11
11
 
12
12
  export type Breakpoints = typeof breakpoints;
13
13
  export type Breakpoint = keyof typeof breakpoints;
14
+
15
+ const minWidth = (width: number) => `@media (min-width: ${width}px)`;
16
+ const maxWidth = (width: number) => `@media (max-width: ${width - 1}px)`;
17
+
18
+ export const minXs = minWidth(breakpoints.xs);
19
+ export const minSm = minWidth(breakpoints.sm);
20
+ export const minMd = minWidth(breakpoints.md);
21
+ export const minLg = minWidth(breakpoints.lg);
22
+ export const minXl = minWidth(breakpoints.xl);
23
+ export const min2xl = minWidth(breakpoints["2xl"]);
24
+ export const min3xl = minWidth(breakpoints["3xl"]);
25
+ export const min4xl = minWidth(breakpoints["4xl"]);
26
+
27
+ export const maxXs = maxWidth(breakpoints.xs);
28
+ export const maxSm = maxWidth(breakpoints.sm);
29
+ export const maxMd = maxWidth(breakpoints.md);
30
+ export const maxLg = maxWidth(breakpoints.lg);
31
+ export const maxXl = maxWidth(breakpoints.xl);
32
+ export const max2xl = maxWidth(breakpoints["2xl"]);
33
+ export const max3xl = maxWidth(breakpoints["3xl"]);
34
+ export const max4xl = maxWidth(breakpoints["4xl"]);
@@ -7,7 +7,6 @@
7
7
  cursor: pointer;
8
8
  display: flex;
9
9
  align-items: center;
10
- white-space: nowrap;
11
10
 
12
11
  transition:
13
12
  box-shadow 0.2s ease-in-out,
@@ -68,6 +67,10 @@
68
67
  }
69
68
  }
70
69
 
70
+ .ath-button-wrap {
71
+ white-space: nowrap;
72
+ }
73
+
71
74
  .ath-button-small {
72
75
  font-size: var(--font-size-md);
73
76
  line-height: var(--font-size-md);
@@ -0,0 +1,43 @@
1
+ @import "../tokens.css";
2
+
3
+ @layer components {
4
+ .ath-carousel-wrapper {
5
+ position: relative;
6
+ }
7
+ .ath-carousel {
8
+ display: flex;
9
+ width: 100%;
10
+ min-width: 0;
11
+ max-width: 100%;
12
+ border: 5px solid var(--color-secondary-800);
13
+ border-radius: 10px;
14
+ padding: 10px;
15
+ overflow-x: auto;
16
+ gap: 10px;
17
+ scrollbar-width: none;
18
+ &::-webkit-scrollbar {
19
+ display: none;
20
+ }
21
+ }
22
+ .ath-carousel-arrow {
23
+ position: absolute;
24
+ border-radius: 50%;
25
+ background-color: var(--color-secondary-200);
26
+ opacity: 0;
27
+ top: 50%;
28
+ transform: translateY(-50%);
29
+ z-index: 1;
30
+ transition: opacity 0.2s ease-in-out;
31
+ }
32
+ .ath-carousel-left-arrow {
33
+ left: 5px;
34
+ }
35
+ .ath-carousel-right-arrow {
36
+ right: 5px;
37
+ }
38
+ .ath-carousel-hover {
39
+ .ath-carousel-arrow {
40
+ opacity: 0.75;
41
+ }
42
+ }
43
+ }
@@ -24,6 +24,12 @@
24
24
  outline-offset: -1px;
25
25
  transition: all 0.2s ease;
26
26
  min-width: 0;
27
+ &:read-only {
28
+ background-color: transparent;
29
+ outline: none;
30
+ color: var(--color-tertiary-600);
31
+ padding-left: 0;
32
+ }
27
33
  }
28
34
  .ath-form-text-input:focus {
29
35
  outline: 2px solid var(--color-primary-vibrant-500);
@@ -52,13 +58,16 @@
52
58
  /* Textarea specific */
53
59
  .ath-form-textarea {
54
60
  margin-top: 3px;
61
+ font-size: inherit;
62
+ line-height: 1.5;
63
+ padding: 0.75rem;
55
64
  border: 1px solid var(--color-tertiary-500);
56
65
  border-radius: var(--radius-md);
57
66
  transition:
58
67
  border-color 0.2s ease,
59
68
  box-shadow 0.2s ease;
60
69
  min-width: 0;
61
- min-height: 3rem;
70
+ min-height: 6rem;
62
71
  resize: vertical;
63
72
  overflow: auto;
64
73
  }
@@ -7,7 +7,7 @@
7
7
  padding: 25px 0;
8
8
  display: flex;
9
9
  flex-direction: column;
10
- flex-wrap: wrap;
10
+ align-items: stretch;
11
11
  gap: 20px;
12
12
  flex: 1;
13
13
  min-height: 100vh;
@@ -17,6 +17,8 @@
17
17
  display: flex;
18
18
  flex-direction: column;
19
19
  gap: 15px;
20
+ width: 100%;
21
+ margin-inline: auto;
20
22
  max-width: 1200px;
21
23
  padding: 0 15px;
22
24
  }
@@ -3,6 +3,7 @@
3
3
  @import "./components/block.css";
4
4
  @import "./components/button.css";
5
5
  @import "./components/button-group.css";
6
+ @import "./components/carousel.css";
6
7
  @import "./components/dropdown.css";
7
8
  @import "./components/footer.css";
8
9
  @import "./components/form-input.css";
@@ -136,16 +136,6 @@
136
136
  --font-size-4xl: 3rem;
137
137
  --font-size-5xl: 3.5rem;
138
138
 
139
- /* ----- Screen Sizes ----- */
140
- /* --screen-xs: 320px;
141
- --screen-sm: 480px;
142
- --screen-md: 620px;
143
- --screen-lg: 768px;
144
- --screen-xl: 896px;
145
- --screen-2xl: 1024px;
146
- --screen-3xl: 1280px;
147
- --screen-4xl: 1536px; */
148
-
149
139
  --screen-xs: 320;
150
140
  --screen-sm: 480;
151
141
  --screen-md: 620;
@@ -175,6 +165,12 @@
175
165
  }
176
166
 
177
167
  @layer base {
168
+
169
+ *,
170
+ ::before,
171
+ ::after {
172
+ box-sizing: border-box;
173
+ }
178
174
  body {
179
175
  background-color: var(--color-primary-500);
180
176
  color: var(--color-text-light);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "athameui",
3
3
  "private": false,
4
- "version": "0.0.9-c",
4
+ "version": "0.0.11",
5
5
  "type": "module",
6
6
  "main": "./dist/athameui.cjs",
7
7
  "module": "./dist/athameui.mjs",
@@ -11,3 +11,24 @@ export const breakpoints = {
11
11
 
12
12
  export type Breakpoints = typeof breakpoints;
13
13
  export type Breakpoint = keyof typeof breakpoints;
14
+
15
+ const minWidth = (width: number) => `@media (min-width: ${width}px)`;
16
+ const maxWidth = (width: number) => `@media (max-width: ${width - 1}px)`;
17
+
18
+ export const minXs = minWidth(breakpoints.xs);
19
+ export const minSm = minWidth(breakpoints.sm);
20
+ export const minMd = minWidth(breakpoints.md);
21
+ export const minLg = minWidth(breakpoints.lg);
22
+ export const minXl = minWidth(breakpoints.xl);
23
+ export const min2xl = minWidth(breakpoints["2xl"]);
24
+ export const min3xl = minWidth(breakpoints["3xl"]);
25
+ export const min4xl = minWidth(breakpoints["4xl"]);
26
+
27
+ export const maxXs = maxWidth(breakpoints.xs);
28
+ export const maxSm = maxWidth(breakpoints.sm);
29
+ export const maxMd = maxWidth(breakpoints.md);
30
+ export const maxLg = maxWidth(breakpoints.lg);
31
+ export const maxXl = maxWidth(breakpoints.xl);
32
+ export const max2xl = maxWidth(breakpoints["2xl"]);
33
+ export const max3xl = maxWidth(breakpoints["3xl"]);
34
+ export const max4xl = maxWidth(breakpoints["4xl"]);
@@ -7,7 +7,6 @@
7
7
  cursor: pointer;
8
8
  display: flex;
9
9
  align-items: center;
10
- white-space: nowrap;
11
10
 
12
11
  transition:
13
12
  box-shadow 0.2s ease-in-out,
@@ -68,6 +67,10 @@
68
67
  }
69
68
  }
70
69
 
70
+ .ath-button-wrap {
71
+ white-space: nowrap;
72
+ }
73
+
71
74
  .ath-button-small {
72
75
  font-size: var(--font-size-md);
73
76
  line-height: var(--font-size-md);
@@ -0,0 +1,43 @@
1
+ @import "../tokens.css";
2
+
3
+ @layer components {
4
+ .ath-carousel-wrapper {
5
+ position: relative;
6
+ }
7
+ .ath-carousel {
8
+ display: flex;
9
+ width: 100%;
10
+ min-width: 0;
11
+ max-width: 100%;
12
+ border: 5px solid var(--color-secondary-800);
13
+ border-radius: 10px;
14
+ padding: 10px;
15
+ overflow-x: auto;
16
+ gap: 10px;
17
+ scrollbar-width: none;
18
+ &::-webkit-scrollbar {
19
+ display: none;
20
+ }
21
+ }
22
+ .ath-carousel-arrow {
23
+ position: absolute;
24
+ border-radius: 50%;
25
+ background-color: var(--color-secondary-200);
26
+ opacity: 0;
27
+ top: 50%;
28
+ transform: translateY(-50%);
29
+ z-index: 1;
30
+ transition: opacity 0.2s ease-in-out;
31
+ }
32
+ .ath-carousel-left-arrow {
33
+ left: 5px;
34
+ }
35
+ .ath-carousel-right-arrow {
36
+ right: 5px;
37
+ }
38
+ .ath-carousel-hover {
39
+ .ath-carousel-arrow {
40
+ opacity: 0.75;
41
+ }
42
+ }
43
+ }
@@ -24,6 +24,12 @@
24
24
  outline-offset: -1px;
25
25
  transition: all 0.2s ease;
26
26
  min-width: 0;
27
+ &:read-only {
28
+ background-color: transparent;
29
+ outline: none;
30
+ color: var(--color-tertiary-600);
31
+ padding-left: 0;
32
+ }
27
33
  }
28
34
  .ath-form-text-input:focus {
29
35
  outline: 2px solid var(--color-primary-vibrant-500);
@@ -52,13 +58,16 @@
52
58
  /* Textarea specific */
53
59
  .ath-form-textarea {
54
60
  margin-top: 3px;
61
+ font-size: inherit;
62
+ line-height: 1.5;
63
+ padding: 0.75rem;
55
64
  border: 1px solid var(--color-tertiary-500);
56
65
  border-radius: var(--radius-md);
57
66
  transition:
58
67
  border-color 0.2s ease,
59
68
  box-shadow 0.2s ease;
60
69
  min-width: 0;
61
- min-height: 3rem;
70
+ min-height: 6rem;
62
71
  resize: vertical;
63
72
  overflow: auto;
64
73
  }
@@ -7,7 +7,7 @@
7
7
  padding: 25px 0;
8
8
  display: flex;
9
9
  flex-direction: column;
10
- flex-wrap: wrap;
10
+ align-items: stretch;
11
11
  gap: 20px;
12
12
  flex: 1;
13
13
  min-height: 100vh;
@@ -17,6 +17,8 @@
17
17
  display: flex;
18
18
  flex-direction: column;
19
19
  gap: 15px;
20
+ width: 100%;
21
+ margin-inline: auto;
20
22
  max-width: 1200px;
21
23
  padding: 0 15px;
22
24
  }
package/styles/theme.css CHANGED
@@ -3,6 +3,7 @@
3
3
  @import "./components/block.css";
4
4
  @import "./components/button.css";
5
5
  @import "./components/button-group.css";
6
+ @import "./components/carousel.css";
6
7
  @import "./components/dropdown.css";
7
8
  @import "./components/footer.css";
8
9
  @import "./components/form-input.css";
package/styles/tokens.css CHANGED
@@ -136,16 +136,6 @@
136
136
  --font-size-4xl: 3rem;
137
137
  --font-size-5xl: 3.5rem;
138
138
 
139
- /* ----- Screen Sizes ----- */
140
- /* --screen-xs: 320px;
141
- --screen-sm: 480px;
142
- --screen-md: 620px;
143
- --screen-lg: 768px;
144
- --screen-xl: 896px;
145
- --screen-2xl: 1024px;
146
- --screen-3xl: 1280px;
147
- --screen-4xl: 1536px; */
148
-
149
139
  --screen-xs: 320;
150
140
  --screen-sm: 480;
151
141
  --screen-md: 620;
@@ -175,6 +165,12 @@
175
165
  }
176
166
 
177
167
  @layer base {
168
+
169
+ *,
170
+ ::before,
171
+ ::after {
172
+ box-sizing: border-box;
173
+ }
178
174
  body {
179
175
  background-color: var(--color-primary-500);
180
176
  color: var(--color-text-light);