athameui 0.0.7 → 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.
- package/components/Avatar/Avatar.tsx +6 -12
- package/components/Block/Block.tsx +22 -0
- package/components/Block/index.ts +1 -0
- package/components/Button/Button.tsx +2 -2
- package/components/DropDown/Dropdown.tsx +61 -0
- package/components/DropDown/index.ts +1 -0
- package/components/{FormElements/FormInput.tsx → FormField/FormField.tsx} +21 -15
- package/components/FormField/index.ts +1 -0
- package/components/{FormElements/FormInputLabel.tsx → FormLabel/FormLabel.tsx} +5 -5
- package/components/FormLabel/index.ts +1 -0
- package/components/FormTextInput/FormTextInput.tsx +93 -0
- package/components/FormTextInput/index.ts +1 -0
- package/components/Layout/Main.tsx +21 -14
- package/components/Modal/Modal.tsx +3 -3
- package/components/Search/Search.tsx +7 -4
- package/components/SlideOut/SlideOut.tsx +71 -0
- package/components/SlideOut/index.ts +1 -0
- package/components/index.ts +6 -1
- package/dist/athameui.cjs +204 -64
- package/dist/athameui.cjs.map +1 -1
- package/dist/athameui.mjs +199 -63
- package/dist/athameui.mjs.map +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Block/Block.d.ts +13 -0
- package/dist/components/Block/Block.d.ts.map +1 -0
- package/dist/components/Block/index.d.ts +2 -0
- package/dist/components/Block/index.d.ts.map +1 -0
- package/dist/components/DropDown/Dropdown.d.ts +14 -0
- package/dist/components/DropDown/Dropdown.d.ts.map +1 -0
- package/dist/components/DropDown/index.d.ts +2 -0
- package/dist/components/DropDown/index.d.ts.map +1 -0
- package/dist/components/{FormElements/FormInput.d.ts → FormField/FormField.d.ts} +6 -4
- package/dist/components/FormField/FormField.d.ts.map +1 -0
- package/dist/components/FormField/index.d.ts +2 -0
- package/dist/components/FormField/index.d.ts.map +1 -0
- package/dist/components/{FormElements/FormInputLabel.d.ts → FormLabel/FormLabel.d.ts} +3 -3
- package/dist/components/FormLabel/FormLabel.d.ts.map +1 -0
- package/dist/components/FormLabel/index.d.ts +2 -0
- package/dist/components/FormLabel/index.d.ts.map +1 -0
- package/dist/components/FormTextInput/FormTextInput.d.ts +27 -0
- package/dist/components/FormTextInput/FormTextInput.d.ts.map +1 -0
- package/dist/components/FormTextInput/index.d.ts +2 -0
- package/dist/components/FormTextInput/index.d.ts.map +1 -0
- package/dist/components/Layout/Main.d.ts +7 -3
- package/dist/components/Layout/Main.d.ts.map +1 -1
- package/dist/components/Search/Search.d.ts +2 -1
- package/dist/components/Search/Search.d.ts.map +1 -1
- package/dist/components/SlideOut/SlideOut.d.ts +21 -0
- package/dist/components/SlideOut/SlideOut.d.ts.map +1 -0
- package/dist/components/SlideOut/index.d.ts +2 -0
- package/dist/components/SlideOut/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +6 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/styles/breakpoints.d.ts +13 -0
- package/dist/styles/breakpoints.d.ts.map +1 -0
- package/dist/styles/breakpoints.ts +13 -0
- package/dist/styles/components/accordion.css +38 -35
- package/dist/styles/components/avatar.css +25 -4
- package/dist/styles/components/block.css +8 -0
- package/dist/styles/components/button.css +2 -2
- package/dist/styles/components/dropdown.css +18 -0
- package/dist/styles/components/footer.css +0 -1
- package/dist/styles/components/{form-elements.css → form-input.css} +8 -51
- package/dist/styles/components/form-label.css +42 -0
- package/dist/styles/components/main.css +11 -2
- package/dist/styles/components/modals.css +2 -1
- package/dist/styles/components/slide-out.css +69 -0
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/index.ts +1 -1
- package/dist/styles/theme.css +5 -1
- package/dist/styles/tokens.css +45 -25
- package/dist/styles/tokens.d.ts +0 -10
- package/dist/styles/tokens.d.ts.map +1 -1
- package/dist/styles/tokens.ts +16 -26
- package/package.json +1 -1
- package/styles/breakpoints.ts +13 -0
- package/styles/components/accordion.css +38 -35
- package/styles/components/avatar.css +25 -4
- package/styles/components/block.css +8 -0
- package/styles/components/button.css +2 -2
- package/styles/components/dropdown.css +18 -0
- package/styles/components/footer.css +0 -1
- package/styles/components/{form-elements.css → form-input.css} +8 -51
- package/styles/components/form-label.css +42 -0
- package/styles/components/main.css +11 -2
- package/styles/components/modals.css +2 -1
- package/styles/components/slide-out.css +69 -0
- package/styles/index.ts +1 -1
- package/styles/theme.css +5 -1
- package/styles/tokens.css +45 -25
- package/styles/tokens.ts +16 -26
- package/components/FormElements/index.ts +0 -2
- package/dist/components/FormElements/FormInput.d.ts.map +0 -1
- package/dist/components/FormElements/FormInputLabel.d.ts.map +0 -1
- package/dist/components/FormElements/index.d.ts +0 -3
- package/dist/components/FormElements/index.d.ts.map +0 -1
- package/dist/styles/mediaQueries.d.ts +0 -11
- package/dist/styles/mediaQueries.d.ts.map +0 -1
- package/dist/styles/mediaQueries.ts +0 -10
- package/styles/mediaQueries.ts +0 -10
package/dist/athameui.mjs
CHANGED
|
@@ -2178,7 +2178,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
2178
2178
|
onClick,
|
|
2179
2179
|
onFocus,
|
|
2180
2180
|
onKeyDown,
|
|
2181
|
-
...
|
|
2181
|
+
...other
|
|
2182
2182
|
}, ref) => {
|
|
2183
2183
|
const isIconOnly = icon && !children;
|
|
2184
2184
|
const sharedClasses = cx("ath-button", buttonVariants.size[size], buttonVariants.variant[variant], isIconOnly ? "ath-button-icon-only" : "", dark ? buttonVariants.dark : "");
|
|
@@ -2206,7 +2206,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
2206
2206
|
onKeyDown: onKeyDownHandler,
|
|
2207
2207
|
onFocus: onFocusHandler,
|
|
2208
2208
|
onBlur: onBlurHandler,
|
|
2209
|
-
...
|
|
2209
|
+
...other,
|
|
2210
2210
|
children: icon ? jsxs(Fragment, {
|
|
2211
2211
|
children: [icon, !isIconOnly && children]
|
|
2212
2212
|
}) : jsx(Fragment, {
|
|
@@ -2344,11 +2344,12 @@ const Avatar = ({
|
|
|
2344
2344
|
className,
|
|
2345
2345
|
displayName = "Display Name",
|
|
2346
2346
|
sx,
|
|
2347
|
-
size =
|
|
2347
|
+
size = "medium"
|
|
2348
2348
|
}) => {
|
|
2349
|
+
console.log(className?.avatar);
|
|
2349
2350
|
const initials = displayName.split(" ").map(n => n[0].toUpperCase());
|
|
2350
|
-
const avatarClasses = cx("
|
|
2351
|
-
const initialsClasses = cx(
|
|
2351
|
+
const avatarClasses = cx("ath-avatar", `ath-avatar-${size}`, className?.avatar);
|
|
2352
|
+
const initialsClasses = cx(`ath-avatar-initials`, className?.initials);
|
|
2352
2353
|
// const imageClasses = cx(".ath-avatar-image", className?.image);
|
|
2353
2354
|
return jsx("div", {
|
|
2354
2355
|
css: sx?.avatar,
|
|
@@ -2361,6 +2362,20 @@ const Avatar = ({
|
|
|
2361
2362
|
});
|
|
2362
2363
|
};
|
|
2363
2364
|
|
|
2365
|
+
const Block = ({
|
|
2366
|
+
children,
|
|
2367
|
+
className,
|
|
2368
|
+
sx
|
|
2369
|
+
}) => {
|
|
2370
|
+
const blockClasses = cx("ath-block", className?.block);
|
|
2371
|
+
return jsx("div", {
|
|
2372
|
+
className: blockClasses,
|
|
2373
|
+
"data-testid": "block",
|
|
2374
|
+
css: sx?.block,
|
|
2375
|
+
children: children
|
|
2376
|
+
});
|
|
2377
|
+
};
|
|
2378
|
+
|
|
2364
2379
|
const defaultAttributes = {
|
|
2365
2380
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
2366
2381
|
width: 24,
|
|
@@ -2535,21 +2550,50 @@ const ButtonGroup = ({
|
|
|
2535
2550
|
});
|
|
2536
2551
|
};
|
|
2537
2552
|
|
|
2538
|
-
const
|
|
2553
|
+
const Dropdown = ({
|
|
2554
|
+
children,
|
|
2555
|
+
className,
|
|
2556
|
+
isOpen,
|
|
2557
|
+
sx,
|
|
2558
|
+
onClose
|
|
2559
|
+
}) => {
|
|
2560
|
+
const dropdownRef = useRef(null);
|
|
2561
|
+
const dropdownClasses = cx("ath-dropdown", isOpen && "ath-dropdown-open", className?.dropdown);
|
|
2562
|
+
useEffect(() => {
|
|
2563
|
+
const handleOutsideClick = event => {
|
|
2564
|
+
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
|
2565
|
+
onClose();
|
|
2566
|
+
}
|
|
2567
|
+
};
|
|
2568
|
+
document.addEventListener("mousedown", handleOutsideClick);
|
|
2569
|
+
return () => {
|
|
2570
|
+
document.removeEventListener("mousedown", handleOutsideClick);
|
|
2571
|
+
};
|
|
2572
|
+
}, [onClose]);
|
|
2573
|
+
return jsxs("div", {
|
|
2574
|
+
ref: dropdownRef,
|
|
2575
|
+
className: dropdownClasses,
|
|
2576
|
+
css: sx?.dropdown,
|
|
2577
|
+
"data-testid": "dropdown",
|
|
2578
|
+
children: ["fdpdsugfpoidsuy", children]
|
|
2579
|
+
});
|
|
2580
|
+
};
|
|
2581
|
+
|
|
2582
|
+
const FormLabel = ({
|
|
2539
2583
|
label,
|
|
2540
2584
|
required,
|
|
2541
2585
|
className,
|
|
2542
2586
|
labelPosition = "above",
|
|
2543
2587
|
dark,
|
|
2544
2588
|
sx,
|
|
2545
|
-
...
|
|
2589
|
+
...other
|
|
2546
2590
|
}) => {
|
|
2547
2591
|
const labelClasses = cx("ath-form-input-label", labelPosition ? `ath-form-input-label-${labelPosition}` : "", dark ? "ath-form-input-label-dark" : "", className?.label);
|
|
2548
2592
|
const requiredClasses = cx("ath-form-input-label-required", dark ? "ath-form-input-label-required-dark" : "", className?.required);
|
|
2549
2593
|
return jsxs("label", {
|
|
2550
2594
|
className: labelClasses,
|
|
2551
2595
|
css: sx?.label,
|
|
2552
|
-
...
|
|
2596
|
+
...other,
|
|
2553
2597
|
children: [label, required && jsx("span", {
|
|
2554
2598
|
className: requiredClasses,
|
|
2555
2599
|
css: sx?.required,
|
|
@@ -2559,7 +2603,52 @@ const FormInputLabel = ({
|
|
|
2559
2603
|
});
|
|
2560
2604
|
};
|
|
2561
2605
|
|
|
2562
|
-
const
|
|
2606
|
+
const FormTextInput = ({
|
|
2607
|
+
autoComplete,
|
|
2608
|
+
autoFocus,
|
|
2609
|
+
className,
|
|
2610
|
+
dark,
|
|
2611
|
+
error,
|
|
2612
|
+
disabled,
|
|
2613
|
+
id,
|
|
2614
|
+
name,
|
|
2615
|
+
placeholder,
|
|
2616
|
+
readOnly,
|
|
2617
|
+
size,
|
|
2618
|
+
sx,
|
|
2619
|
+
tabIndex,
|
|
2620
|
+
type = "text",
|
|
2621
|
+
value,
|
|
2622
|
+
onChange,
|
|
2623
|
+
onKeyDown,
|
|
2624
|
+
...other
|
|
2625
|
+
}) => {
|
|
2626
|
+
const inputClasses = cx("ath-form-text-input", `ath-form-text-input-${size}`, dark ? "ath-form-text-input-dark" : "", disabled ? "ath-form-text-input-disabled" : "", readOnly ? "ath-form-text-input-readonly" : "", error ? "ath-form-text-input-error" : "", className?.input);
|
|
2627
|
+
const onChangeHandler = e => {
|
|
2628
|
+
if (!disabled && !readOnly) {
|
|
2629
|
+
onChange(e);
|
|
2630
|
+
}
|
|
2631
|
+
};
|
|
2632
|
+
return jsx("input", {
|
|
2633
|
+
autoComplete: autoComplete,
|
|
2634
|
+
autoFocus: autoFocus,
|
|
2635
|
+
className: inputClasses,
|
|
2636
|
+
css: sx?.input,
|
|
2637
|
+
disabled: disabled,
|
|
2638
|
+
name: name,
|
|
2639
|
+
placeholder: placeholder,
|
|
2640
|
+
readOnly: readOnly,
|
|
2641
|
+
tabIndex: disabled ? -1 : tabIndex,
|
|
2642
|
+
type: type,
|
|
2643
|
+
value: value,
|
|
2644
|
+
onChange: onChangeHandler,
|
|
2645
|
+
onKeyDown: onKeyDown,
|
|
2646
|
+
id: id,
|
|
2647
|
+
...other
|
|
2648
|
+
});
|
|
2649
|
+
};
|
|
2650
|
+
|
|
2651
|
+
const FormField = ({
|
|
2563
2652
|
autoComplete,
|
|
2564
2653
|
autoFocus = false,
|
|
2565
2654
|
autoResize = false,
|
|
@@ -2568,11 +2657,12 @@ const FormInput = ({
|
|
|
2568
2657
|
disabled = false,
|
|
2569
2658
|
error,
|
|
2570
2659
|
helperText,
|
|
2660
|
+
id,
|
|
2571
2661
|
label,
|
|
2572
2662
|
labelPosition = "above",
|
|
2573
2663
|
name,
|
|
2574
2664
|
placeholder,
|
|
2575
|
-
|
|
2665
|
+
readOnly = false,
|
|
2576
2666
|
required = false,
|
|
2577
2667
|
size = "medium",
|
|
2578
2668
|
sx,
|
|
@@ -2581,11 +2671,11 @@ const FormInput = ({
|
|
|
2581
2671
|
value,
|
|
2582
2672
|
onChange,
|
|
2583
2673
|
onKeyDown,
|
|
2584
|
-
...
|
|
2674
|
+
...other
|
|
2585
2675
|
}) => {
|
|
2586
2676
|
const textAreaRef = useRef(null);
|
|
2587
2677
|
const containerClasses = cx("ath-form-input-container", (labelPosition === "left" || labelPosition === "right") && "ath-form-input-container-horizontal", className?.container ? className.container : "");
|
|
2588
|
-
const inputSharedClasses = cx(`ath-form-input-${size}`, disabled && "ath-form-input-shared-disabled",
|
|
2678
|
+
const inputSharedClasses = cx(`ath-form-input-${size}`, disabled && "ath-form-input-shared-disabled", readOnly && "ath-form-input-shared-readonly", dark && "ath-form-input-shared-dark", className?.input ? className.input : "");
|
|
2589
2679
|
const inputClasses = cx("ath-form-input", inputSharedClasses, error && "ath-form-input-error");
|
|
2590
2680
|
const textAreaClasses = cx("ath-form-textarea", inputSharedClasses, autoResize && "ath-form-textarea-auto-resize", error && "ath-form-textarea-error");
|
|
2591
2681
|
const labelClasses = cx("ath-form-input-label", labelPosition ? `ath-form-input-label-${labelPosition}` : "");
|
|
@@ -2612,10 +2702,10 @@ const FormInput = ({
|
|
|
2612
2702
|
}
|
|
2613
2703
|
}
|
|
2614
2704
|
}, [autoResize, type]);
|
|
2615
|
-
const labelElement = label ? jsx(
|
|
2705
|
+
const labelElement = label ? jsx(FormLabel, {
|
|
2616
2706
|
label: label,
|
|
2617
2707
|
required: required,
|
|
2618
|
-
htmlFor:
|
|
2708
|
+
htmlFor: id,
|
|
2619
2709
|
className: labelClasses,
|
|
2620
2710
|
sx: {
|
|
2621
2711
|
label: sx?.label,
|
|
@@ -2631,29 +2721,33 @@ const FormInput = ({
|
|
|
2631
2721
|
name: name,
|
|
2632
2722
|
onChange: handleTextAreaChange,
|
|
2633
2723
|
disabled: disabled,
|
|
2634
|
-
readOnly:
|
|
2724
|
+
readOnly: readOnly,
|
|
2635
2725
|
onKeyDown: onKeyDown,
|
|
2636
2726
|
tabIndex: disabled ? -1 : tabIndex,
|
|
2637
2727
|
className: textAreaClasses,
|
|
2638
2728
|
css: sx?.input,
|
|
2639
2729
|
value: value,
|
|
2640
2730
|
placeholder: placeholder,
|
|
2641
|
-
...
|
|
2642
|
-
}) : jsx(
|
|
2731
|
+
...other
|
|
2732
|
+
}) : jsx(FormTextInput, {
|
|
2643
2733
|
autoComplete: autoComplete,
|
|
2644
2734
|
autoFocus: autoFocus,
|
|
2645
2735
|
name: name,
|
|
2646
2736
|
type: type,
|
|
2647
2737
|
onChange: handleInputChange,
|
|
2648
2738
|
disabled: disabled,
|
|
2649
|
-
readOnly:
|
|
2739
|
+
readOnly: readOnly,
|
|
2650
2740
|
onKeyDown: onKeyDown,
|
|
2651
2741
|
tabIndex: disabled ? -1 : tabIndex,
|
|
2652
|
-
className:
|
|
2742
|
+
className: {
|
|
2743
|
+
input: inputClasses
|
|
2744
|
+
},
|
|
2653
2745
|
css: sx?.input,
|
|
2654
2746
|
value: value,
|
|
2655
2747
|
placeholder: placeholder,
|
|
2656
|
-
|
|
2748
|
+
size: size,
|
|
2749
|
+
id: id,
|
|
2750
|
+
...other
|
|
2657
2751
|
});
|
|
2658
2752
|
const errorElement = error ? jsx("div", {
|
|
2659
2753
|
className: errorClasses,
|
|
@@ -2696,11 +2790,16 @@ const Main = ({
|
|
|
2696
2790
|
className,
|
|
2697
2791
|
sx
|
|
2698
2792
|
}) => {
|
|
2699
|
-
const
|
|
2793
|
+
const mainClasses = cx("ath-main", typeof className === "object" && className !== null ? className.main : "");
|
|
2794
|
+
const mainContentClasses = cx("ath-main-content", typeof className === "object" && className !== null ? className.mainContent : "");
|
|
2700
2795
|
return jsx("main", {
|
|
2701
|
-
css: sx,
|
|
2702
|
-
className:
|
|
2703
|
-
children:
|
|
2796
|
+
css: sx?.main,
|
|
2797
|
+
className: mainClasses,
|
|
2798
|
+
children: jsx("div", {
|
|
2799
|
+
css: sx?.mainContent,
|
|
2800
|
+
className: mainContentClasses,
|
|
2801
|
+
children: children
|
|
2802
|
+
})
|
|
2704
2803
|
});
|
|
2705
2804
|
};
|
|
2706
2805
|
|
|
@@ -2760,7 +2859,7 @@ const Modal = ({
|
|
|
2760
2859
|
finalFocusRef,
|
|
2761
2860
|
sx,
|
|
2762
2861
|
onClose,
|
|
2763
|
-
...
|
|
2862
|
+
...other
|
|
2764
2863
|
}) => {
|
|
2765
2864
|
const [previouslyFocusedElement, setPreviouslyFocusedElement] = React__default.useState(null);
|
|
2766
2865
|
const modalRef = React__default.useRef(null);
|
|
@@ -2846,7 +2945,7 @@ const Modal = ({
|
|
|
2846
2945
|
css: sx?.modal,
|
|
2847
2946
|
className: modalClasses,
|
|
2848
2947
|
role: "dialog",
|
|
2849
|
-
...
|
|
2948
|
+
...other,
|
|
2850
2949
|
children: [(title || showCloseButton) && jsxs("div", {
|
|
2851
2950
|
css: sx?.header,
|
|
2852
2951
|
className: headerClasses,
|
|
@@ -2887,6 +2986,7 @@ const Search = ({
|
|
|
2887
2986
|
buttonVariant = "primary",
|
|
2888
2987
|
className,
|
|
2889
2988
|
dark = false,
|
|
2989
|
+
id,
|
|
2890
2990
|
inputSize,
|
|
2891
2991
|
label,
|
|
2892
2992
|
labelPosition = "above",
|
|
@@ -2901,7 +3001,7 @@ const Search = ({
|
|
|
2901
3001
|
totalResultsCount = "0",
|
|
2902
3002
|
onSearch,
|
|
2903
3003
|
setSearchTerm,
|
|
2904
|
-
...
|
|
3004
|
+
...other
|
|
2905
3005
|
}) => {
|
|
2906
3006
|
const setSearchTermHandler = e => {
|
|
2907
3007
|
if (e.target instanceof HTMLInputElement) {
|
|
@@ -2920,7 +3020,7 @@ const Search = ({
|
|
|
2920
3020
|
className: cx("ath-search-form", typeof className?.searchForm === "string" ? className.searchForm : ""),
|
|
2921
3021
|
css: sx?.searchForm,
|
|
2922
3022
|
role: searchRole || "search",
|
|
2923
|
-
...
|
|
3023
|
+
...other,
|
|
2924
3024
|
children: jsxs("div", {
|
|
2925
3025
|
className: cx("ath-search-wrapper", typeof className?.searchWrapper === "string" ? className.searchWrapper : ""),
|
|
2926
3026
|
css: sx?.searchWrapper,
|
|
@@ -2934,8 +3034,9 @@ const Search = ({
|
|
|
2934
3034
|
children: [resultsLabel ?? "Total Results:", " ", totalResultsCount]
|
|
2935
3035
|
}), jsx("div", {
|
|
2936
3036
|
className: "ath-search-input-wrapper",
|
|
2937
|
-
children: jsx(
|
|
3037
|
+
children: jsx(FormField, {
|
|
2938
3038
|
type: "search",
|
|
3039
|
+
id: id,
|
|
2939
3040
|
value: searchTerm || "",
|
|
2940
3041
|
name: "searchTerm",
|
|
2941
3042
|
labelPosition: labelPosition,
|
|
@@ -2970,15 +3071,59 @@ const Search = ({
|
|
|
2970
3071
|
});
|
|
2971
3072
|
};
|
|
2972
3073
|
|
|
3074
|
+
const SlideOut = ({
|
|
3075
|
+
children,
|
|
3076
|
+
className,
|
|
3077
|
+
from = "right",
|
|
3078
|
+
isOpen = false,
|
|
3079
|
+
sx,
|
|
3080
|
+
onClose
|
|
3081
|
+
}) => {
|
|
3082
|
+
const slideOutClasses = cx("ath-slide-out", className?.slideOut);
|
|
3083
|
+
const overlayClasses = cx("ath-slide-out-overlay", isOpen && "ath-slide-out-overlay-open", className?.overlay);
|
|
3084
|
+
const panelClasses = cx("ath-slide-out-panel", from === "left" ? "ath-slide-out-from-left" : "ath-slide-out-from-right", isOpen && "ath-slide-out-panel-open", className?.panel);
|
|
3085
|
+
const closeButtonClasses = cx("ath-slide-out-close-button", className?.closeButton);
|
|
3086
|
+
return jsxs("div", {
|
|
3087
|
+
className: slideOutClasses,
|
|
3088
|
+
css: sx?.slideOut,
|
|
3089
|
+
"data-testid": "slide-out",
|
|
3090
|
+
children: [jsx("div", {
|
|
3091
|
+
className: overlayClasses,
|
|
3092
|
+
css: sx?.overlay,
|
|
3093
|
+
onClick: onClose
|
|
3094
|
+
}), jsxs("div", {
|
|
3095
|
+
className: panelClasses,
|
|
3096
|
+
css: sx?.panel,
|
|
3097
|
+
children: [jsx(Button, {
|
|
3098
|
+
className: {
|
|
3099
|
+
button: closeButtonClasses
|
|
3100
|
+
},
|
|
3101
|
+
sx: {
|
|
3102
|
+
button: sx?.closeButton
|
|
3103
|
+
},
|
|
3104
|
+
onClick: onClose,
|
|
3105
|
+
"aria-label": "Close menu",
|
|
3106
|
+
variant: "ghost",
|
|
3107
|
+
dark: true,
|
|
3108
|
+
size: "medium",
|
|
3109
|
+
icon: jsx(HugeiconsIcon, {
|
|
3110
|
+
icon: uL,
|
|
3111
|
+
size: 24
|
|
3112
|
+
})
|
|
3113
|
+
}), children]
|
|
3114
|
+
})]
|
|
3115
|
+
});
|
|
3116
|
+
};
|
|
3117
|
+
|
|
2973
3118
|
const breakpoints = {
|
|
2974
|
-
xs:
|
|
2975
|
-
sm:
|
|
2976
|
-
md:
|
|
2977
|
-
lg:
|
|
2978
|
-
xl:
|
|
2979
|
-
"2xl":
|
|
2980
|
-
"3xl":
|
|
2981
|
-
"4xl":
|
|
3119
|
+
xs: 320,
|
|
3120
|
+
sm: 480,
|
|
3121
|
+
md: 620,
|
|
3122
|
+
lg: 768,
|
|
3123
|
+
xl: 896,
|
|
3124
|
+
"2xl": 1024,
|
|
3125
|
+
"3xl": 1280,
|
|
3126
|
+
"4xl": 1536
|
|
2982
3127
|
};
|
|
2983
3128
|
|
|
2984
3129
|
const tokens = {
|
|
@@ -2988,15 +3133,15 @@ const tokens = {
|
|
|
2988
3133
|
serif: "Libre Baskerville, serif"
|
|
2989
3134
|
},
|
|
2990
3135
|
size: {
|
|
2991
|
-
xs: "0.
|
|
2992
|
-
sm: "0.
|
|
2993
|
-
md: "
|
|
2994
|
-
lg: "
|
|
2995
|
-
xl: "1.
|
|
2996
|
-
"2xl": "
|
|
2997
|
-
"3xl": "
|
|
2998
|
-
"4xl": "
|
|
2999
|
-
"5xl": "
|
|
3136
|
+
xs: "0.75rem",
|
|
3137
|
+
sm: "0.875rem",
|
|
3138
|
+
md: "1rem",
|
|
3139
|
+
lg: "1.25rem",
|
|
3140
|
+
xl: "1.5rem",
|
|
3141
|
+
"2xl": "2rem",
|
|
3142
|
+
"3xl": "2.5rem",
|
|
3143
|
+
"4xl": "3rem",
|
|
3144
|
+
"5xl": "3.5rem"
|
|
3000
3145
|
}
|
|
3001
3146
|
},
|
|
3002
3147
|
color: {
|
|
@@ -3129,27 +3274,18 @@ const tokens = {
|
|
|
3129
3274
|
md: "5px",
|
|
3130
3275
|
lg: "8px"
|
|
3131
3276
|
},
|
|
3132
|
-
screen: {
|
|
3133
|
-
xs: "360px",
|
|
3134
|
-
sm: "480px",
|
|
3135
|
-
md: "768px",
|
|
3136
|
-
lg: "896px",
|
|
3137
|
-
xl: "1024px",
|
|
3138
|
-
"2xl": "1280px",
|
|
3139
|
-
"3xl": "1536px"
|
|
3140
|
-
},
|
|
3141
3277
|
media: {
|
|
3142
3278
|
min: {
|
|
3143
|
-
xs: "@media (min-width:
|
|
3279
|
+
xs: "@media (min-width: 320px)",
|
|
3144
3280
|
sm: "@media (min-width: 480px)",
|
|
3145
|
-
md: "@media (min-width:
|
|
3146
|
-
lg: "@media (min-width:
|
|
3147
|
-
xl: "@media (min-width:
|
|
3148
|
-
"2xl": "@media (min-width:
|
|
3149
|
-
"3xl": "@media (min-width:
|
|
3281
|
+
md: "@media (min-width: 620px)",
|
|
3282
|
+
lg: "@media (min-width: 768px)",
|
|
3283
|
+
xl: "@media (min-width: 896px)",
|
|
3284
|
+
"2xl": "@media (min-width: 1024px)",
|
|
3285
|
+
"3xl": "@media (min-width: 1280px)"
|
|
3150
3286
|
},
|
|
3151
3287
|
max: {
|
|
3152
|
-
xs: "@media (max-width:
|
|
3288
|
+
xs: "@media (max-width: 319px)",
|
|
3153
3289
|
sm: "@media (max-width: 479px)",
|
|
3154
3290
|
md: "@media (max-width: 767px)",
|
|
3155
3291
|
lg: "@media (max-width: 895px)",
|
|
@@ -3160,5 +3296,5 @@ const tokens = {
|
|
|
3160
3296
|
}
|
|
3161
3297
|
};
|
|
3162
3298
|
|
|
3163
|
-
export { Accordion, AccordionItem, Avatar, Button, ButtonGroup, ContainerScalingText, Footer,
|
|
3299
|
+
export { Accordion, AccordionItem, Avatar, Block, Button, ButtonGroup, ContainerScalingText, Dropdown, Footer, FormField, FormLabel, FormTextInput, Header, List, ListItem, Main, Modal, ScrollToTopButton, Search, SlideOut, breakpoints, cx, tokens };
|
|
3164
3300
|
//# sourceMappingURL=athameui.mjs.map
|