athameui 0.0.8 → 0.0.9-c

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 (64) hide show
  1. package/components/Avatar/Avatar.tsx +0 -1
  2. package/components/Block/Block.tsx +22 -0
  3. package/components/Block/index.ts +1 -0
  4. package/components/DropDown/Dropdown.tsx +61 -0
  5. package/components/DropDown/index.ts +1 -0
  6. package/components/Layout/Main.tsx +21 -14
  7. package/components/Modal/Modal.tsx +1 -1
  8. package/components/SlideOut/SlideOut.tsx +71 -0
  9. package/components/SlideOut/index.ts +1 -0
  10. package/components/index.ts +3 -0
  11. package/dist/athameui.cjs +123 -37
  12. package/dist/athameui.cjs.map +1 -1
  13. package/dist/athameui.mjs +121 -38
  14. package/dist/athameui.mjs.map +1 -1
  15. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  16. package/dist/components/Block/Block.d.ts +13 -0
  17. package/dist/components/Block/Block.d.ts.map +1 -0
  18. package/dist/components/Block/index.d.ts +2 -0
  19. package/dist/components/Block/index.d.ts.map +1 -0
  20. package/dist/components/DropDown/Dropdown.d.ts +14 -0
  21. package/dist/components/DropDown/Dropdown.d.ts.map +1 -0
  22. package/dist/components/DropDown/index.d.ts +2 -0
  23. package/dist/components/DropDown/index.d.ts.map +1 -0
  24. package/dist/components/Layout/Main.d.ts +7 -3
  25. package/dist/components/Layout/Main.d.ts.map +1 -1
  26. package/dist/components/SlideOut/SlideOut.d.ts +21 -0
  27. package/dist/components/SlideOut/SlideOut.d.ts.map +1 -0
  28. package/dist/components/SlideOut/index.d.ts +2 -0
  29. package/dist/components/SlideOut/index.d.ts.map +1 -0
  30. package/dist/components/index.d.ts +3 -0
  31. package/dist/components/index.d.ts.map +1 -1
  32. package/dist/styles/breakpoints.d.ts +13 -0
  33. package/dist/styles/breakpoints.d.ts.map +1 -0
  34. package/dist/styles/breakpoints.ts +13 -0
  35. package/dist/styles/components/accordion.css +8 -5
  36. package/dist/styles/components/block.css +8 -0
  37. package/dist/styles/components/button.css +1 -1
  38. package/dist/styles/components/dropdown.css +18 -0
  39. package/dist/styles/components/main.css +11 -2
  40. package/dist/styles/components/slide-out.css +69 -0
  41. package/dist/styles/index.d.ts +1 -1
  42. package/dist/styles/index.d.ts.map +1 -1
  43. package/dist/styles/index.ts +1 -1
  44. package/dist/styles/theme.css +3 -0
  45. package/dist/styles/tokens.css +45 -25
  46. package/dist/styles/tokens.d.ts +0 -10
  47. package/dist/styles/tokens.d.ts.map +1 -1
  48. package/dist/styles/tokens.ts +16 -26
  49. package/package.json +1 -1
  50. package/styles/breakpoints.ts +13 -0
  51. package/styles/components/accordion.css +8 -5
  52. package/styles/components/block.css +8 -0
  53. package/styles/components/button.css +1 -1
  54. package/styles/components/dropdown.css +18 -0
  55. package/styles/components/main.css +11 -2
  56. package/styles/components/slide-out.css +69 -0
  57. package/styles/index.ts +1 -1
  58. package/styles/theme.css +3 -0
  59. package/styles/tokens.css +45 -25
  60. package/styles/tokens.ts +16 -26
  61. package/dist/styles/mediaQueries.d.ts +0 -11
  62. package/dist/styles/mediaQueries.d.ts.map +0 -1
  63. package/dist/styles/mediaQueries.ts +0 -10
  64. package/styles/mediaQueries.ts +0 -10
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../components/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,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,qDAmBb,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { CSSObject } from "@emotion/react";
2
+ type BlockProps = {
3
+ children: React.ReactNode;
4
+ className?: {
5
+ block?: string | false | null | undefined;
6
+ };
7
+ sx?: {
8
+ block: CSSObject;
9
+ };
10
+ };
11
+ export declare const Block: ({ children, className, sx }: BlockProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=Block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../components/Block/Block.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,KAAK,UAAU,GAAG;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE;QACV,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KAC3C,CAAC;IACF,EAAE,CAAC,EAAE;QACH,KAAK,EAAE,SAAS,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,6BAA6B,UAAU,qDAQ5D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./Block";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/Block/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { CSSObject } from "@emotion/react";
2
+ export type DropdownProps = {
3
+ children: React.ReactNode;
4
+ className?: {
5
+ dropdown?: string | false | null | undefined;
6
+ };
7
+ isOpen: boolean;
8
+ sx?: {
9
+ dropdown?: CSSObject;
10
+ };
11
+ onClose: () => void;
12
+ };
13
+ export declare const Dropdown: ({ children, className, isOpen, sx, onClose, }: DropdownProps) => import("@emotion/react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=Dropdown.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export * from "./Dropdown";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/DropDown/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -1,10 +1,14 @@
1
1
  import type { CSSObject } from "@emotion/react";
2
2
  type MainProps = {
3
3
  children?: React.ReactNode;
4
- className?: string | {
4
+ className?: {
5
5
  main?: string | false | null | undefined;
6
- } | false | undefined | null;
7
- sx?: CSSObject;
6
+ mainContent?: string | false | null | undefined;
7
+ };
8
+ sx?: {
9
+ main?: CSSObject;
10
+ mainContent?: CSSObject;
11
+ };
8
12
  };
9
13
  export declare const Main: ({ children, className, sx }: MainProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../components/Layout/Main.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EACN,MAAM,GACN;QACE,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KAC1C,GACD,KAAK,GACL,SAAS,GACT,IAAI,CAAC;IACT,EAAE,CAAC,EAAE,SAAS,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,6BAA6B,SAAS,qDAa1D,CAAC"}
1
+ {"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../components/Layout/Main.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE;QACV,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;QACzC,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KACjD,CAAC;IAEF,EAAE,CAAC,EAAE;QACH,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,WAAW,CAAC,EAAE,SAAS,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,6BAA6B,SAAS,qDAoB1D,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { CSSObject } from "@emotion/react";
2
+ export type SlideOutProps = {
3
+ children: React.ReactNode;
4
+ className?: {
5
+ slideOut?: string | false | null | undefined;
6
+ overlay?: string | false | null | undefined;
7
+ panel?: string | false | null | undefined;
8
+ closeButton?: string | false | null | undefined;
9
+ };
10
+ from?: "left" | "right";
11
+ isOpen?: boolean;
12
+ sx?: {
13
+ slideOut?: CSSObject;
14
+ overlay?: CSSObject;
15
+ panel?: CSSObject;
16
+ closeButton?: CSSObject;
17
+ };
18
+ onClose: () => void;
19
+ };
20
+ export declare const SlideOut: ({ children, className, from, isOpen, sx, onClose, }: SlideOutProps) => import("@emotion/react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=SlideOut.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlideOut.d.ts","sourceRoot":"","sources":["../../../components/SlideOut/SlideOut.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAM3C,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;QAC7C,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;QAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;QAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;KACjD,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE;QACH,QAAQ,CAAC,EAAE,SAAS,CAAC;QACrB,OAAO,CAAC,EAAE,SAAS,CAAC;QACpB,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,WAAW,CAAC,EAAE,SAAS,CAAC;KACzB,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,qDAQtB,aAAa,qDAoCf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./SlideOut";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/SlideOut/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -1,7 +1,9 @@
1
1
  export * from "./Accordion";
2
2
  export * from "./Avatar";
3
+ export * from "./Block";
3
4
  export * from "./Button";
4
5
  export * from "./ButtonGroup";
6
+ export * from "./DropDown";
5
7
  export * from "./ContainerScalingText";
6
8
  export * from "./FormField";
7
9
  export * from "./FormLabel";
@@ -11,4 +13,5 @@ export * from "./Layout";
11
13
  export * from "./List";
12
14
  export * from "./Modal";
13
15
  export * from "./Search";
16
+ export * from "./SlideOut";
14
17
  //# sourceMappingURL=index.d.ts.map
@@ -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,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,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"}
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"}
@@ -0,0 +1,13 @@
1
+ export declare const breakpoints: {
2
+ readonly xs: 320;
3
+ readonly sm: 480;
4
+ readonly md: 620;
5
+ readonly lg: 768;
6
+ readonly xl: 896;
7
+ readonly "2xl": 1024;
8
+ readonly "3xl": 1280;
9
+ readonly "4xl": 1536;
10
+ };
11
+ export type Breakpoints = typeof breakpoints;
12
+ export type Breakpoint = keyof typeof breakpoints;
13
+ //# sourceMappingURL=breakpoints.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,13 @@
1
+ export const breakpoints = {
2
+ xs: 320,
3
+ sm: 480,
4
+ md: 620,
5
+ lg: 768,
6
+ xl: 896,
7
+ "2xl": 1024,
8
+ "3xl": 1280,
9
+ "4xl": 1536,
10
+ } as const;
11
+
12
+ export type Breakpoints = typeof breakpoints;
13
+ export type Breakpoint = keyof typeof breakpoints;
@@ -4,15 +4,15 @@
4
4
  .ath-accordion {
5
5
  display: flex;
6
6
  flex-direction: column;
7
- font-size: var(--font-size-md);
8
7
  margin: 0;
9
8
  width: 100%;
10
9
  border-radius: 3px;
11
10
  overflow: hidden;
12
11
 
13
12
  .ath-accordion-item-heading {
13
+ white-space: normal;
14
14
  width: 100%;
15
- padding: 12px 20px;
15
+ padding: 10px;
16
16
  background-color: transparent;
17
17
  border: none;
18
18
  display: flex;
@@ -71,7 +71,7 @@
71
71
  flex: 1;
72
72
  margin-right: 12px;
73
73
  font-weight: 600;
74
- font-size: 18px;
74
+ font-size: var(--font-size-md);
75
75
  }
76
76
 
77
77
  .ath-accordion-item-icon {
@@ -91,8 +91,11 @@
91
91
  }
92
92
 
93
93
  .ath-accordion-content-wrapper {
94
- padding: 14px 20px 14px 40px;
94
+ padding: 14px 20px 14px 20px;
95
+ /* padding: 14px 20px 14px 40px; */
95
96
  background-color: rgb(from var(--color-primary-50) r g b / 0.01);
96
- font-size: var(--font-size-lg);
97
+ /* font-size: var(--font-size-lg); */
98
+ font-size: var(--font-size-md);
99
+ line-height: 1.5;
97
100
  }
98
101
  }
@@ -0,0 +1,8 @@
1
+ @layer components {
2
+ .ath-block {
3
+ /* width: 100%; */
4
+ display: flex;
5
+ flex-direction: column;
6
+ margin-bottom: 15px;
7
+ }
8
+ }
@@ -116,7 +116,7 @@
116
116
  .ath-button-full {
117
117
  font-size: var(--font-size-lg);
118
118
  line-height: var(--font-size-xl);
119
- width: 100%;
119
+ /* width: 100%; */
120
120
  justify-content: center;
121
121
  padding: 10px 40px;
122
122
 
@@ -0,0 +1,18 @@
1
+ @import "../tokens.css";
2
+
3
+ @layer components {
4
+ .ath-dropdown {
5
+ display: none;
6
+ position: absolute;
7
+ z-index: 10;
8
+ background-color: var(--color-tertiary-100);
9
+ border-radius: var(--radius-sm);
10
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
11
+ padding: 8px;
12
+ min-width: 160px;
13
+ }
14
+
15
+ .ath-dropdown-open {
16
+ display: block;
17
+ }
18
+ }
@@ -4,11 +4,20 @@
4
4
  .ath-main {
5
5
  overflow-x: hidden;
6
6
  position: relative;
7
- padding: 32px;
7
+ padding: 25px 0;
8
8
  display: flex;
9
9
  flex-direction: column;
10
10
  flex-wrap: wrap;
11
11
  gap: 20px;
12
- flex-grow: 1;
12
+ flex: 1;
13
+ min-height: 100vh;
14
+ }
15
+
16
+ .ath-main-content {
17
+ display: flex;
18
+ flex-direction: column;
19
+ gap: 15px;
20
+ max-width: 1200px;
21
+ padding: 0 15px;
13
22
  }
14
23
  }
@@ -0,0 +1,69 @@
1
+ @import "../tokens.css";
2
+
3
+ @layer components {
4
+ .ath-slide-out {
5
+ display: flex;
6
+ overflow: hidden;
7
+ }
8
+
9
+ .ath-slide-out-overlay {
10
+ position: fixed;
11
+ top: 0;
12
+ left: 0;
13
+ right: 0;
14
+ bottom: 0;
15
+ background-color: rgba(0, 0, 0, 0.8);
16
+ z-index: 100;
17
+ display: flex;
18
+ justify-content: flex-end;
19
+ opacity: 0;
20
+ visibility: hidden;
21
+ transition:
22
+ opacity 0.3s ease,
23
+ visibility 0.3s ease;
24
+ }
25
+
26
+ .ath-slide-out-overlay-open {
27
+ opacity: 1;
28
+ visibility: visible;
29
+ }
30
+
31
+ .ath-slide-out-panel {
32
+ position: fixed;
33
+ top: 0;
34
+ z-index: 100;
35
+ background-color: var(--color-primary-500);
36
+ width: 280px;
37
+ height: 100%;
38
+ padding: 20px;
39
+ overflow-y: auto;
40
+ display: flex;
41
+ flex-direction: column;
42
+ transition: transform 0.1s ease-in-out;
43
+ }
44
+
45
+ .ath-slide-out-from-left {
46
+ left: 0;
47
+ transform: translateX(-100%);
48
+ }
49
+
50
+ .ath-slide-out-from-right {
51
+ right: 0;
52
+ transform: translateX(100%);
53
+ }
54
+
55
+ .ath-slide-out-panel-open {
56
+ transform: translateX(0);
57
+ box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
58
+ }
59
+
60
+ .ath-slide-out-close-button {
61
+ padding: 0;
62
+ align-self: flex-end;
63
+ margin-bottom: 10px;
64
+
65
+ &:hover {
66
+ box-shadow: none;
67
+ }
68
+ }
69
+ }
@@ -1,3 +1,3 @@
1
- export * from "./mediaQueries";
1
+ export * from "./breakpoints";
2
2
  export * from "./tokens";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from "./mediaQueries";
1
+ export * from "./breakpoints";
2
2
  export * from "./tokens";
@@ -1,7 +1,9 @@
1
1
  @import "./components/accordion.css";
2
2
  @import "./components/avatar.css";
3
+ @import "./components/block.css";
3
4
  @import "./components/button.css";
4
5
  @import "./components/button-group.css";
6
+ @import "./components/dropdown.css";
5
7
  @import "./components/footer.css";
6
8
  @import "./components/form-input.css";
7
9
  @import "./components/form-label.css";
@@ -10,4 +12,5 @@
10
12
  @import "./components/main.css";
11
13
  @import "./components/modals.css";
12
14
  @import "./components/search.css";
15
+ @import "./components/slide-out.css";
13
16
  @import "./tokens.css";
@@ -126,36 +126,46 @@
126
126
  --radius-lg: 8px;
127
127
 
128
128
  /* ----- Font Sizes ----- */
129
- --font-size-xs: 0.625rem;
130
- --font-size-sm: 0.75rem;
131
- --font-size-md: 0.875rem;
132
- --font-size-lg: 1rem;
133
- --font-size-xl: 1.25rem;
134
- --font-size-2xl: 1.5rem;
135
- --font-size-3xl: 2rem;
136
- --font-size-4xl: 2.5rem;
137
- --font-size-5xl: 3rem;
129
+ --font-size-xs: 0.75rem;
130
+ --font-size-sm: 0.875rem;
131
+ --font-size-md: 1rem;
132
+ --font-size-lg: 1.25rem;
133
+ --font-size-xl: 1.5rem;
134
+ --font-size-2xl: 2rem;
135
+ --font-size-3xl: 2.5rem;
136
+ --font-size-4xl: 3rem;
137
+ --font-size-5xl: 3.5rem;
138
138
 
139
139
  /* ----- Screen Sizes ----- */
140
- --screen-xs: 360px;
140
+ /* --screen-xs: 320px;
141
141
  --screen-sm: 480px;
142
- --screen-md: 768px;
143
- --screen-lg: 896px;
144
- --screen-xl: 1024px;
145
- --screen-2xl: 1280px;
146
- --screen-3xl: 1536px;
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
+ --screen-xs: 320;
150
+ --screen-sm: 480;
151
+ --screen-md: 620;
152
+ --screen-lg: 768;
153
+ --screen-xl: 896;
154
+ --screen-2xl: 1024;
155
+ --screen-3xl: 1280;
156
+ --screen-4xl: 1536;
147
157
 
148
158
  /* ----- Media Queries ----- */
149
159
  /* Only useful for CSS-in-JS media query handling */
150
- --media-min-xs: @media (min-width: 360px);
160
+ --media-min-xs: @media (min-width: 320px);
151
161
  --media-min-sm: @media (min-width: 480px);
152
- --media-min-md: @media (min-width: 768px);
153
- --media-min-lg: @media (min-width: 896px);
154
- --media-min-xl: @media (min-width: 1024px);
155
- --media-min-2xl: @media (min-width: 1280px);
156
- --media-min-3xl: @media (min-width: 1536px);
162
+ --media-min-md: @media (min-width: 620px);
163
+ --media-min-lg: @media (min-width: 768px);
164
+ --media-min-xl: @media (min-width: 896px);
165
+ --media-min-2xl: @media (min-width: 1024px);
166
+ --media-min-3xl: @media (min-width: 1280px);
157
167
 
158
- --media-max-xs: @media (max-width: 359px);
168
+ --media-max-xs: @media (max-width: 319px);
159
169
  --media-max-sm: @media (max-width: 479px);
160
170
  --media-max-md: @media (max-width: 767px);
161
171
  --media-max-lg: @media (max-width: 895px);
@@ -174,30 +184,39 @@
174
184
  -moz-osx-font-smoothing: grayscale;
175
185
  margin: 0;
176
186
  }
187
+
177
188
  h1 {
178
189
  color: var(--color-text-light);
179
- font-size: var(--font-size-3xl);
190
+ font-size: var(--font-size-2xl);
191
+ /* font-size: var(--font-size-3xl); */
180
192
  font-weight: 300;
181
193
  margin: 0 0 1rem;
182
194
  line-height: normal;
195
+ @media (max-width: var(--screen-lg)) {
196
+ font-size: var(--font-size-4xl);
197
+ }
183
198
  }
199
+
184
200
  h2 {
185
201
  color: var(--color-primary-300);
186
202
  font-size: var(--font-size-lg);
187
203
  font-weight: 400;
188
204
  margin: 0;
189
205
  }
206
+
190
207
  h3 {
191
208
  color: var(--color-primary-200);
192
- font-size: var(--font-size-xl);
209
+ font-size: var(--font-size-lg);
193
210
  font-weight: 500;
194
- margin: 0;
211
+ margin: 0 0 0.5rem 0;
195
212
  }
213
+
196
214
  p {
197
215
  margin: 0;
198
216
  margin-bottom: 1rem;
199
217
  line-height: 1.5;
200
218
  }
219
+
201
220
  button {
202
221
  font-family: inherit;
203
222
  background-color: transparent;
@@ -207,6 +226,7 @@
207
226
  outline: none;
208
227
  }
209
228
  }
229
+
210
230
  a {
211
231
  text-decoration: none;
212
232
  color: inherit;
@@ -146,15 +146,6 @@ export declare const tokens: {
146
146
  md: string;
147
147
  lg: string;
148
148
  };
149
- screen: {
150
- xs: string;
151
- sm: string;
152
- md: string;
153
- lg: string;
154
- xl: string;
155
- "2xl": string;
156
- "3xl": string;
157
- };
158
149
  media: {
159
150
  min: {
160
151
  xs: string;
@@ -181,6 +172,5 @@ export type FontTokens = typeof tokens.font;
181
172
  export type ColorTokens = typeof tokens.color;
182
173
  export type PaddingTokens = typeof tokens.padding;
183
174
  export type RadiusTokens = typeof tokens.radius;
184
- export type ScreenTokens = typeof tokens.screen;
185
175
  export type MediaTokens = typeof tokens.media;
186
176
  //# sourceMappingURL=tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../styles/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiLlB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC;AAGnC,MAAM,MAAM,UAAU,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC;AAC9C,MAAM,MAAM,aAAa,GAAG,OAAO,MAAM,CAAC,OAAO,CAAC;AAClD,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC;AAChD,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../styles/tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwKlB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC;AAGnC,MAAM,MAAM,UAAU,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC;AAC9C,MAAM,MAAM,aAAa,GAAG,OAAO,MAAM,CAAC,OAAO,CAAC;AAClD,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,KAAK,CAAC"}
@@ -5,15 +5,15 @@ export const tokens = {
5
5
  serif: "Libre Baskerville, serif"
6
6
  },
7
7
  size: {
8
- xs: "0.625rem",
9
- sm: "0.75rem",
10
- md: "0.875rem",
11
- lg: "1rem",
12
- xl: "1.25rem",
13
- "2xl": "1.5rem",
14
- "3xl": "2rem",
15
- "4xl": "2.5rem",
16
- "5xl": "3rem"
8
+ xs: "0.75rem",
9
+ sm: "0.875rem",
10
+ md: "1rem",
11
+ lg: "1.25rem",
12
+ xl: "1.5rem",
13
+ "2xl": "2rem",
14
+ "3xl": "2.5rem",
15
+ "4xl": "3rem",
16
+ "5xl": "3.5rem"
17
17
  }
18
18
  },
19
19
  color: {
@@ -146,27 +146,18 @@ export const tokens = {
146
146
  md: "5px",
147
147
  lg: "8px"
148
148
  },
149
- screen: {
150
- xs: "360px",
151
- sm: "480px",
152
- md: "768px",
153
- lg: "896px",
154
- xl: "1024px",
155
- "2xl": "1280px",
156
- "3xl": "1536px"
157
- },
158
149
  media: {
159
150
  min: {
160
- xs: "@media (min-width: 360px)",
151
+ xs: "@media (min-width: 320px)",
161
152
  sm: "@media (min-width: 480px)",
162
- md: "@media (min-width: 768px)",
163
- lg: "@media (min-width: 896px)",
164
- xl: "@media (min-width: 1024px)",
165
- "2xl": "@media (min-width: 1280px)",
166
- "3xl": "@media (min-width: 1536px)"
153
+ md: "@media (min-width: 620px)",
154
+ lg: "@media (min-width: 768px)",
155
+ xl: "@media (min-width: 896px)",
156
+ "2xl": "@media (min-width: 1024px)",
157
+ "3xl": "@media (min-width: 1280px)"
167
158
  },
168
159
  max: {
169
- xs: "@media (max-width: 359px)",
160
+ xs: "@media (max-width: 319px)",
170
161
  sm: "@media (max-width: 479px)",
171
162
  md: "@media (max-width: 767px)",
172
163
  lg: "@media (max-width: 895px)",
@@ -184,5 +175,4 @@ export type FontTokens = typeof tokens.font;
184
175
  export type ColorTokens = typeof tokens.color;
185
176
  export type PaddingTokens = typeof tokens.padding;
186
177
  export type RadiusTokens = typeof tokens.radius;
187
- export type ScreenTokens = typeof tokens.screen;
188
178
  export type MediaTokens = typeof tokens.media;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "athameui",
3
3
  "private": false,
4
- "version": "0.0.8",
4
+ "version": "0.0.9-c",
5
5
  "type": "module",
6
6
  "main": "./dist/athameui.cjs",
7
7
  "module": "./dist/athameui.mjs",
@@ -0,0 +1,13 @@
1
+ export const breakpoints = {
2
+ xs: 320,
3
+ sm: 480,
4
+ md: 620,
5
+ lg: 768,
6
+ xl: 896,
7
+ "2xl": 1024,
8
+ "3xl": 1280,
9
+ "4xl": 1536,
10
+ } as const;
11
+
12
+ export type Breakpoints = typeof breakpoints;
13
+ export type Breakpoint = keyof typeof breakpoints;