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.cjs
CHANGED
|
@@ -2199,7 +2199,7 @@ const Button = /*#__PURE__*/React.forwardRef(({
|
|
|
2199
2199
|
onClick,
|
|
2200
2200
|
onFocus,
|
|
2201
2201
|
onKeyDown,
|
|
2202
|
-
...
|
|
2202
|
+
...other
|
|
2203
2203
|
}, ref) => {
|
|
2204
2204
|
const isIconOnly = icon && !children;
|
|
2205
2205
|
const sharedClasses = cx("ath-button", buttonVariants.size[size], buttonVariants.variant[variant], isIconOnly ? "ath-button-icon-only" : "", dark ? buttonVariants.dark : "");
|
|
@@ -2227,7 +2227,7 @@ const Button = /*#__PURE__*/React.forwardRef(({
|
|
|
2227
2227
|
onKeyDown: onKeyDownHandler,
|
|
2228
2228
|
onFocus: onFocusHandler,
|
|
2229
2229
|
onBlur: onBlurHandler,
|
|
2230
|
-
...
|
|
2230
|
+
...other,
|
|
2231
2231
|
children: icon ? jsxs(Fragment, {
|
|
2232
2232
|
children: [icon, !isIconOnly && children]
|
|
2233
2233
|
}) : jsx(Fragment, {
|
|
@@ -2365,11 +2365,12 @@ const Avatar = ({
|
|
|
2365
2365
|
className,
|
|
2366
2366
|
displayName = "Display Name",
|
|
2367
2367
|
sx,
|
|
2368
|
-
size =
|
|
2368
|
+
size = "medium"
|
|
2369
2369
|
}) => {
|
|
2370
|
+
console.log(className?.avatar);
|
|
2370
2371
|
const initials = displayName.split(" ").map(n => n[0].toUpperCase());
|
|
2371
|
-
const avatarClasses = cx("
|
|
2372
|
-
const initialsClasses = cx(
|
|
2372
|
+
const avatarClasses = cx("ath-avatar", `ath-avatar-${size}`, className?.avatar);
|
|
2373
|
+
const initialsClasses = cx(`ath-avatar-initials`, className?.initials);
|
|
2373
2374
|
// const imageClasses = cx(".ath-avatar-image", className?.image);
|
|
2374
2375
|
return jsx("div", {
|
|
2375
2376
|
css: sx?.avatar,
|
|
@@ -2382,6 +2383,20 @@ const Avatar = ({
|
|
|
2382
2383
|
});
|
|
2383
2384
|
};
|
|
2384
2385
|
|
|
2386
|
+
const Block = ({
|
|
2387
|
+
children,
|
|
2388
|
+
className,
|
|
2389
|
+
sx
|
|
2390
|
+
}) => {
|
|
2391
|
+
const blockClasses = cx("ath-block", className?.block);
|
|
2392
|
+
return jsx("div", {
|
|
2393
|
+
className: blockClasses,
|
|
2394
|
+
"data-testid": "block",
|
|
2395
|
+
css: sx?.block,
|
|
2396
|
+
children: children
|
|
2397
|
+
});
|
|
2398
|
+
};
|
|
2399
|
+
|
|
2385
2400
|
const defaultAttributes = {
|
|
2386
2401
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
2387
2402
|
width: 24,
|
|
@@ -2556,21 +2571,50 @@ const ButtonGroup = ({
|
|
|
2556
2571
|
});
|
|
2557
2572
|
};
|
|
2558
2573
|
|
|
2559
|
-
const
|
|
2574
|
+
const Dropdown = ({
|
|
2575
|
+
children,
|
|
2576
|
+
className,
|
|
2577
|
+
isOpen,
|
|
2578
|
+
sx,
|
|
2579
|
+
onClose
|
|
2580
|
+
}) => {
|
|
2581
|
+
const dropdownRef = React.useRef(null);
|
|
2582
|
+
const dropdownClasses = cx("ath-dropdown", isOpen && "ath-dropdown-open", className?.dropdown);
|
|
2583
|
+
React.useEffect(() => {
|
|
2584
|
+
const handleOutsideClick = event => {
|
|
2585
|
+
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
|
2586
|
+
onClose();
|
|
2587
|
+
}
|
|
2588
|
+
};
|
|
2589
|
+
document.addEventListener("mousedown", handleOutsideClick);
|
|
2590
|
+
return () => {
|
|
2591
|
+
document.removeEventListener("mousedown", handleOutsideClick);
|
|
2592
|
+
};
|
|
2593
|
+
}, [onClose]);
|
|
2594
|
+
return jsxs("div", {
|
|
2595
|
+
ref: dropdownRef,
|
|
2596
|
+
className: dropdownClasses,
|
|
2597
|
+
css: sx?.dropdown,
|
|
2598
|
+
"data-testid": "dropdown",
|
|
2599
|
+
children: ["fdpdsugfpoidsuy", children]
|
|
2600
|
+
});
|
|
2601
|
+
};
|
|
2602
|
+
|
|
2603
|
+
const FormLabel = ({
|
|
2560
2604
|
label,
|
|
2561
2605
|
required,
|
|
2562
2606
|
className,
|
|
2563
2607
|
labelPosition = "above",
|
|
2564
2608
|
dark,
|
|
2565
2609
|
sx,
|
|
2566
|
-
...
|
|
2610
|
+
...other
|
|
2567
2611
|
}) => {
|
|
2568
2612
|
const labelClasses = cx("ath-form-input-label", labelPosition ? `ath-form-input-label-${labelPosition}` : "", dark ? "ath-form-input-label-dark" : "", className?.label);
|
|
2569
2613
|
const requiredClasses = cx("ath-form-input-label-required", dark ? "ath-form-input-label-required-dark" : "", className?.required);
|
|
2570
2614
|
return jsxs("label", {
|
|
2571
2615
|
className: labelClasses,
|
|
2572
2616
|
css: sx?.label,
|
|
2573
|
-
...
|
|
2617
|
+
...other,
|
|
2574
2618
|
children: [label, required && jsx("span", {
|
|
2575
2619
|
className: requiredClasses,
|
|
2576
2620
|
css: sx?.required,
|
|
@@ -2580,7 +2624,52 @@ const FormInputLabel = ({
|
|
|
2580
2624
|
});
|
|
2581
2625
|
};
|
|
2582
2626
|
|
|
2583
|
-
const
|
|
2627
|
+
const FormTextInput = ({
|
|
2628
|
+
autoComplete,
|
|
2629
|
+
autoFocus,
|
|
2630
|
+
className,
|
|
2631
|
+
dark,
|
|
2632
|
+
error,
|
|
2633
|
+
disabled,
|
|
2634
|
+
id,
|
|
2635
|
+
name,
|
|
2636
|
+
placeholder,
|
|
2637
|
+
readOnly,
|
|
2638
|
+
size,
|
|
2639
|
+
sx,
|
|
2640
|
+
tabIndex,
|
|
2641
|
+
type = "text",
|
|
2642
|
+
value,
|
|
2643
|
+
onChange,
|
|
2644
|
+
onKeyDown,
|
|
2645
|
+
...other
|
|
2646
|
+
}) => {
|
|
2647
|
+
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);
|
|
2648
|
+
const onChangeHandler = e => {
|
|
2649
|
+
if (!disabled && !readOnly) {
|
|
2650
|
+
onChange(e);
|
|
2651
|
+
}
|
|
2652
|
+
};
|
|
2653
|
+
return jsx("input", {
|
|
2654
|
+
autoComplete: autoComplete,
|
|
2655
|
+
autoFocus: autoFocus,
|
|
2656
|
+
className: inputClasses,
|
|
2657
|
+
css: sx?.input,
|
|
2658
|
+
disabled: disabled,
|
|
2659
|
+
name: name,
|
|
2660
|
+
placeholder: placeholder,
|
|
2661
|
+
readOnly: readOnly,
|
|
2662
|
+
tabIndex: disabled ? -1 : tabIndex,
|
|
2663
|
+
type: type,
|
|
2664
|
+
value: value,
|
|
2665
|
+
onChange: onChangeHandler,
|
|
2666
|
+
onKeyDown: onKeyDown,
|
|
2667
|
+
id: id,
|
|
2668
|
+
...other
|
|
2669
|
+
});
|
|
2670
|
+
};
|
|
2671
|
+
|
|
2672
|
+
const FormField = ({
|
|
2584
2673
|
autoComplete,
|
|
2585
2674
|
autoFocus = false,
|
|
2586
2675
|
autoResize = false,
|
|
@@ -2589,11 +2678,12 @@ const FormInput = ({
|
|
|
2589
2678
|
disabled = false,
|
|
2590
2679
|
error,
|
|
2591
2680
|
helperText,
|
|
2681
|
+
id,
|
|
2592
2682
|
label,
|
|
2593
2683
|
labelPosition = "above",
|
|
2594
2684
|
name,
|
|
2595
2685
|
placeholder,
|
|
2596
|
-
|
|
2686
|
+
readOnly = false,
|
|
2597
2687
|
required = false,
|
|
2598
2688
|
size = "medium",
|
|
2599
2689
|
sx,
|
|
@@ -2602,11 +2692,11 @@ const FormInput = ({
|
|
|
2602
2692
|
value,
|
|
2603
2693
|
onChange,
|
|
2604
2694
|
onKeyDown,
|
|
2605
|
-
...
|
|
2695
|
+
...other
|
|
2606
2696
|
}) => {
|
|
2607
2697
|
const textAreaRef = React.useRef(null);
|
|
2608
2698
|
const containerClasses = cx("ath-form-input-container", (labelPosition === "left" || labelPosition === "right") && "ath-form-input-container-horizontal", className?.container ? className.container : "");
|
|
2609
|
-
const inputSharedClasses = cx(`ath-form-input-${size}`, disabled && "ath-form-input-shared-disabled",
|
|
2699
|
+
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 : "");
|
|
2610
2700
|
const inputClasses = cx("ath-form-input", inputSharedClasses, error && "ath-form-input-error");
|
|
2611
2701
|
const textAreaClasses = cx("ath-form-textarea", inputSharedClasses, autoResize && "ath-form-textarea-auto-resize", error && "ath-form-textarea-error");
|
|
2612
2702
|
const labelClasses = cx("ath-form-input-label", labelPosition ? `ath-form-input-label-${labelPosition}` : "");
|
|
@@ -2633,10 +2723,10 @@ const FormInput = ({
|
|
|
2633
2723
|
}
|
|
2634
2724
|
}
|
|
2635
2725
|
}, [autoResize, type]);
|
|
2636
|
-
const labelElement = label ? jsx(
|
|
2726
|
+
const labelElement = label ? jsx(FormLabel, {
|
|
2637
2727
|
label: label,
|
|
2638
2728
|
required: required,
|
|
2639
|
-
htmlFor:
|
|
2729
|
+
htmlFor: id,
|
|
2640
2730
|
className: labelClasses,
|
|
2641
2731
|
sx: {
|
|
2642
2732
|
label: sx?.label,
|
|
@@ -2652,29 +2742,33 @@ const FormInput = ({
|
|
|
2652
2742
|
name: name,
|
|
2653
2743
|
onChange: handleTextAreaChange,
|
|
2654
2744
|
disabled: disabled,
|
|
2655
|
-
readOnly:
|
|
2745
|
+
readOnly: readOnly,
|
|
2656
2746
|
onKeyDown: onKeyDown,
|
|
2657
2747
|
tabIndex: disabled ? -1 : tabIndex,
|
|
2658
2748
|
className: textAreaClasses,
|
|
2659
2749
|
css: sx?.input,
|
|
2660
2750
|
value: value,
|
|
2661
2751
|
placeholder: placeholder,
|
|
2662
|
-
...
|
|
2663
|
-
}) : jsx(
|
|
2752
|
+
...other
|
|
2753
|
+
}) : jsx(FormTextInput, {
|
|
2664
2754
|
autoComplete: autoComplete,
|
|
2665
2755
|
autoFocus: autoFocus,
|
|
2666
2756
|
name: name,
|
|
2667
2757
|
type: type,
|
|
2668
2758
|
onChange: handleInputChange,
|
|
2669
2759
|
disabled: disabled,
|
|
2670
|
-
readOnly:
|
|
2760
|
+
readOnly: readOnly,
|
|
2671
2761
|
onKeyDown: onKeyDown,
|
|
2672
2762
|
tabIndex: disabled ? -1 : tabIndex,
|
|
2673
|
-
className:
|
|
2763
|
+
className: {
|
|
2764
|
+
input: inputClasses
|
|
2765
|
+
},
|
|
2674
2766
|
css: sx?.input,
|
|
2675
2767
|
value: value,
|
|
2676
2768
|
placeholder: placeholder,
|
|
2677
|
-
|
|
2769
|
+
size: size,
|
|
2770
|
+
id: id,
|
|
2771
|
+
...other
|
|
2678
2772
|
});
|
|
2679
2773
|
const errorElement = error ? jsx("div", {
|
|
2680
2774
|
className: errorClasses,
|
|
@@ -2717,11 +2811,16 @@ const Main = ({
|
|
|
2717
2811
|
className,
|
|
2718
2812
|
sx
|
|
2719
2813
|
}) => {
|
|
2720
|
-
const
|
|
2814
|
+
const mainClasses = cx("ath-main", typeof className === "object" && className !== null ? className.main : "");
|
|
2815
|
+
const mainContentClasses = cx("ath-main-content", typeof className === "object" && className !== null ? className.mainContent : "");
|
|
2721
2816
|
return jsx("main", {
|
|
2722
|
-
css: sx,
|
|
2723
|
-
className:
|
|
2724
|
-
children:
|
|
2817
|
+
css: sx?.main,
|
|
2818
|
+
className: mainClasses,
|
|
2819
|
+
children: jsx("div", {
|
|
2820
|
+
css: sx?.mainContent,
|
|
2821
|
+
className: mainContentClasses,
|
|
2822
|
+
children: children
|
|
2823
|
+
})
|
|
2725
2824
|
});
|
|
2726
2825
|
};
|
|
2727
2826
|
|
|
@@ -2781,7 +2880,7 @@ const Modal = ({
|
|
|
2781
2880
|
finalFocusRef,
|
|
2782
2881
|
sx,
|
|
2783
2882
|
onClose,
|
|
2784
|
-
...
|
|
2883
|
+
...other
|
|
2785
2884
|
}) => {
|
|
2786
2885
|
const [previouslyFocusedElement, setPreviouslyFocusedElement] = React.useState(null);
|
|
2787
2886
|
const modalRef = React.useRef(null);
|
|
@@ -2867,7 +2966,7 @@ const Modal = ({
|
|
|
2867
2966
|
css: sx?.modal,
|
|
2868
2967
|
className: modalClasses,
|
|
2869
2968
|
role: "dialog",
|
|
2870
|
-
...
|
|
2969
|
+
...other,
|
|
2871
2970
|
children: [(title || showCloseButton) && jsxs("div", {
|
|
2872
2971
|
css: sx?.header,
|
|
2873
2972
|
className: headerClasses,
|
|
@@ -2908,6 +3007,7 @@ const Search = ({
|
|
|
2908
3007
|
buttonVariant = "primary",
|
|
2909
3008
|
className,
|
|
2910
3009
|
dark = false,
|
|
3010
|
+
id,
|
|
2911
3011
|
inputSize,
|
|
2912
3012
|
label,
|
|
2913
3013
|
labelPosition = "above",
|
|
@@ -2922,7 +3022,7 @@ const Search = ({
|
|
|
2922
3022
|
totalResultsCount = "0",
|
|
2923
3023
|
onSearch,
|
|
2924
3024
|
setSearchTerm,
|
|
2925
|
-
...
|
|
3025
|
+
...other
|
|
2926
3026
|
}) => {
|
|
2927
3027
|
const setSearchTermHandler = e => {
|
|
2928
3028
|
if (e.target instanceof HTMLInputElement) {
|
|
@@ -2941,7 +3041,7 @@ const Search = ({
|
|
|
2941
3041
|
className: cx("ath-search-form", typeof className?.searchForm === "string" ? className.searchForm : ""),
|
|
2942
3042
|
css: sx?.searchForm,
|
|
2943
3043
|
role: searchRole || "search",
|
|
2944
|
-
...
|
|
3044
|
+
...other,
|
|
2945
3045
|
children: jsxs("div", {
|
|
2946
3046
|
className: cx("ath-search-wrapper", typeof className?.searchWrapper === "string" ? className.searchWrapper : ""),
|
|
2947
3047
|
css: sx?.searchWrapper,
|
|
@@ -2955,8 +3055,9 @@ const Search = ({
|
|
|
2955
3055
|
children: [resultsLabel ?? "Total Results:", " ", totalResultsCount]
|
|
2956
3056
|
}), jsx("div", {
|
|
2957
3057
|
className: "ath-search-input-wrapper",
|
|
2958
|
-
children: jsx(
|
|
3058
|
+
children: jsx(FormField, {
|
|
2959
3059
|
type: "search",
|
|
3060
|
+
id: id,
|
|
2960
3061
|
value: searchTerm || "",
|
|
2961
3062
|
name: "searchTerm",
|
|
2962
3063
|
labelPosition: labelPosition,
|
|
@@ -2991,15 +3092,59 @@ const Search = ({
|
|
|
2991
3092
|
});
|
|
2992
3093
|
};
|
|
2993
3094
|
|
|
3095
|
+
const SlideOut = ({
|
|
3096
|
+
children,
|
|
3097
|
+
className,
|
|
3098
|
+
from = "right",
|
|
3099
|
+
isOpen = false,
|
|
3100
|
+
sx,
|
|
3101
|
+
onClose
|
|
3102
|
+
}) => {
|
|
3103
|
+
const slideOutClasses = cx("ath-slide-out", className?.slideOut);
|
|
3104
|
+
const overlayClasses = cx("ath-slide-out-overlay", isOpen && "ath-slide-out-overlay-open", className?.overlay);
|
|
3105
|
+
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);
|
|
3106
|
+
const closeButtonClasses = cx("ath-slide-out-close-button", className?.closeButton);
|
|
3107
|
+
return jsxs("div", {
|
|
3108
|
+
className: slideOutClasses,
|
|
3109
|
+
css: sx?.slideOut,
|
|
3110
|
+
"data-testid": "slide-out",
|
|
3111
|
+
children: [jsx("div", {
|
|
3112
|
+
className: overlayClasses,
|
|
3113
|
+
css: sx?.overlay,
|
|
3114
|
+
onClick: onClose
|
|
3115
|
+
}), jsxs("div", {
|
|
3116
|
+
className: panelClasses,
|
|
3117
|
+
css: sx?.panel,
|
|
3118
|
+
children: [jsx(Button, {
|
|
3119
|
+
className: {
|
|
3120
|
+
button: closeButtonClasses
|
|
3121
|
+
},
|
|
3122
|
+
sx: {
|
|
3123
|
+
button: sx?.closeButton
|
|
3124
|
+
},
|
|
3125
|
+
onClick: onClose,
|
|
3126
|
+
"aria-label": "Close menu",
|
|
3127
|
+
variant: "ghost",
|
|
3128
|
+
dark: true,
|
|
3129
|
+
size: "medium",
|
|
3130
|
+
icon: jsx(HugeiconsIcon, {
|
|
3131
|
+
icon: uL,
|
|
3132
|
+
size: 24
|
|
3133
|
+
})
|
|
3134
|
+
}), children]
|
|
3135
|
+
})]
|
|
3136
|
+
});
|
|
3137
|
+
};
|
|
3138
|
+
|
|
2994
3139
|
const breakpoints = {
|
|
2995
|
-
xs:
|
|
2996
|
-
sm:
|
|
2997
|
-
md:
|
|
2998
|
-
lg:
|
|
2999
|
-
xl:
|
|
3000
|
-
"2xl":
|
|
3001
|
-
"3xl":
|
|
3002
|
-
"4xl":
|
|
3140
|
+
xs: 320,
|
|
3141
|
+
sm: 480,
|
|
3142
|
+
md: 620,
|
|
3143
|
+
lg: 768,
|
|
3144
|
+
xl: 896,
|
|
3145
|
+
"2xl": 1024,
|
|
3146
|
+
"3xl": 1280,
|
|
3147
|
+
"4xl": 1536
|
|
3003
3148
|
};
|
|
3004
3149
|
|
|
3005
3150
|
const tokens = {
|
|
@@ -3009,15 +3154,15 @@ const tokens = {
|
|
|
3009
3154
|
serif: "Libre Baskerville, serif"
|
|
3010
3155
|
},
|
|
3011
3156
|
size: {
|
|
3012
|
-
xs: "0.
|
|
3013
|
-
sm: "0.
|
|
3014
|
-
md: "
|
|
3015
|
-
lg: "
|
|
3016
|
-
xl: "1.
|
|
3017
|
-
"2xl": "
|
|
3018
|
-
"3xl": "
|
|
3019
|
-
"4xl": "
|
|
3020
|
-
"5xl": "
|
|
3157
|
+
xs: "0.75rem",
|
|
3158
|
+
sm: "0.875rem",
|
|
3159
|
+
md: "1rem",
|
|
3160
|
+
lg: "1.25rem",
|
|
3161
|
+
xl: "1.5rem",
|
|
3162
|
+
"2xl": "2rem",
|
|
3163
|
+
"3xl": "2.5rem",
|
|
3164
|
+
"4xl": "3rem",
|
|
3165
|
+
"5xl": "3.5rem"
|
|
3021
3166
|
}
|
|
3022
3167
|
},
|
|
3023
3168
|
color: {
|
|
@@ -3150,27 +3295,18 @@ const tokens = {
|
|
|
3150
3295
|
md: "5px",
|
|
3151
3296
|
lg: "8px"
|
|
3152
3297
|
},
|
|
3153
|
-
screen: {
|
|
3154
|
-
xs: "360px",
|
|
3155
|
-
sm: "480px",
|
|
3156
|
-
md: "768px",
|
|
3157
|
-
lg: "896px",
|
|
3158
|
-
xl: "1024px",
|
|
3159
|
-
"2xl": "1280px",
|
|
3160
|
-
"3xl": "1536px"
|
|
3161
|
-
},
|
|
3162
3298
|
media: {
|
|
3163
3299
|
min: {
|
|
3164
|
-
xs: "@media (min-width:
|
|
3300
|
+
xs: "@media (min-width: 320px)",
|
|
3165
3301
|
sm: "@media (min-width: 480px)",
|
|
3166
|
-
md: "@media (min-width:
|
|
3167
|
-
lg: "@media (min-width:
|
|
3168
|
-
xl: "@media (min-width:
|
|
3169
|
-
"2xl": "@media (min-width:
|
|
3170
|
-
"3xl": "@media (min-width:
|
|
3302
|
+
md: "@media (min-width: 620px)",
|
|
3303
|
+
lg: "@media (min-width: 768px)",
|
|
3304
|
+
xl: "@media (min-width: 896px)",
|
|
3305
|
+
"2xl": "@media (min-width: 1024px)",
|
|
3306
|
+
"3xl": "@media (min-width: 1280px)"
|
|
3171
3307
|
},
|
|
3172
3308
|
max: {
|
|
3173
|
-
xs: "@media (max-width:
|
|
3309
|
+
xs: "@media (max-width: 319px)",
|
|
3174
3310
|
sm: "@media (max-width: 479px)",
|
|
3175
3311
|
md: "@media (max-width: 767px)",
|
|
3176
3312
|
lg: "@media (max-width: 895px)",
|
|
@@ -3184,12 +3320,15 @@ const tokens = {
|
|
|
3184
3320
|
exports.Accordion = Accordion;
|
|
3185
3321
|
exports.AccordionItem = AccordionItem;
|
|
3186
3322
|
exports.Avatar = Avatar;
|
|
3323
|
+
exports.Block = Block;
|
|
3187
3324
|
exports.Button = Button;
|
|
3188
3325
|
exports.ButtonGroup = ButtonGroup;
|
|
3189
3326
|
exports.ContainerScalingText = ContainerScalingText;
|
|
3327
|
+
exports.Dropdown = Dropdown;
|
|
3190
3328
|
exports.Footer = Footer;
|
|
3191
|
-
exports.
|
|
3192
|
-
exports.
|
|
3329
|
+
exports.FormField = FormField;
|
|
3330
|
+
exports.FormLabel = FormLabel;
|
|
3331
|
+
exports.FormTextInput = FormTextInput;
|
|
3193
3332
|
exports.Header = Header;
|
|
3194
3333
|
exports.List = List;
|
|
3195
3334
|
exports.ListItem = ListItem;
|
|
@@ -3197,6 +3336,7 @@ exports.Main = Main;
|
|
|
3197
3336
|
exports.Modal = Modal;
|
|
3198
3337
|
exports.ScrollToTopButton = ScrollToTopButton;
|
|
3199
3338
|
exports.Search = Search;
|
|
3339
|
+
exports.SlideOut = SlideOut;
|
|
3200
3340
|
exports.breakpoints = breakpoints;
|
|
3201
3341
|
exports.cx = cx;
|
|
3202
3342
|
exports.tokens = tokens;
|