@stihl-design-system/components 1.0.0-RC.29 → 1.0.0-RC.30
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/{actionbutton.DHt1AL7U.js → actionbutton.u1qp8oGC.js} +1 -1
- package/{actionlink.BML1jenE.js → actionlink.C7HzeIVa.js} +1 -1
- package/assets/ActionButton.oGVPTS1J.css +1 -0
- package/assets/ActionLink.CTh6IXrN.css +1 -0
- package/assets/Header.CNqtWTxB.css +1 -0
- package/assets/MegaMenu.DX9gChtY.css +1 -0
- package/assets/banner.BLdW5VF4.css +1 -0
- package/banner.j9YpudOS.js +55 -0
- package/chunks/ActionButton.B8zFwOrJ.js +165 -0
- package/chunks/{ActionLink.BlhqDEtq.js → ActionLink.IX6oRXU3.js} +31 -31
- package/chunks/Header.DqZRryB5.js +366 -0
- package/chunks/MegaMenu.BY7eOnhj.js +189 -0
- package/chunks/Popover.NGetxKGg.js +159 -0
- package/chunks/floating-ui.react.x0F9CYgn.js +1637 -0
- package/components/Banner/Banner.d.ts +1 -1
- package/components/InputFile/InputFile.d.ts +1 -1
- package/components/MegaMenu/MegaMenu.d.ts +32 -0
- package/components/MegaMenu/MegaMenu.test.d.ts +1 -0
- package/components/MegaMenu/MegaMenu.utils.d.ts +52 -0
- package/components/MegaMenu/MegaMenu.utils.test.d.ts +1 -0
- package/components/Popover/Popover.d.ts +1 -1
- package/components/Scroller/Scroller.d.ts +1 -1
- package/github-mark-white.svg +1 -0
- package/github-mark.svg +1 -0
- package/{header.Z4Oxj_xL.js → header.QpNjE3N-.js} +1 -1
- package/index.d.ts +2 -0
- package/index.es.js +117 -112
- package/megamenu.CdHrEeoh.js +12 -0
- package/megamenu.d.ts +2 -0
- package/package.json +3 -1
- package/partials/index.js +21 -15
- package/partials/lib/partials.d.ts +1 -1
- package/{popover.BFx99cHg.js → popover.DXxm1oWI.js} +3 -2
- package/styles/scss/ds/index.scss +0 -1
- package/styles/scss/ds/lib/grid-main.scss +2 -13
- package/styles/scss/ds/lib/grid-sidebar.scss +38 -136
- package/{topbar.Bccms0xZ.js → topbar.Dhy_TL0U.js} +1 -1
- package/assets/ActionButton.Ewi0i1hW.css +0 -1
- package/assets/ActionLink.BdPEvuGm.css +0 -1
- package/assets/Header.DO34x-dO.css +0 -1
- package/assets/banner.D9EiZqqR.css +0 -1
- package/banner.B2YO054K.js +0 -55
- package/chunks/ActionButton.CzaWZGPt.js +0 -165
- package/chunks/Header.BSvyYrIV.js +0 -368
- package/chunks/Popover.hXQTvwwd.js +0 -1685
- package/styles/scss/ds/lib/grid-sidebar-sidebar.scss +0 -52
|
@@ -27,6 +27,6 @@ export interface BannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
27
27
|
*
|
|
28
28
|
* Avoid using it for critical updates or system messages; use notifications for those instead.
|
|
29
29
|
*
|
|
30
|
-
* Design in Figma: [
|
|
30
|
+
* Design in Figma: [Banner](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/branch/E1V1SOH56AJFI8POcjNHhO/Web-Pattern-Library?node-id=7171-10859&t=DJuQNlSCRz2j9IRs-11)
|
|
31
31
|
* */
|
|
32
32
|
export declare const DSBanner: ({ className, closeButtonProps, children, variant, onClose, ...rest }: BannerProps) => JSX.Element;
|
|
@@ -86,6 +86,6 @@ export interface FileWithFeedback extends File {
|
|
|
86
86
|
/**
|
|
87
87
|
* The `<DSInputFile />` allows users to select and upload files, such as images, documents, or videos. It ensures a clear, accessible, and user-friendly way to manage file uploads.
|
|
88
88
|
*
|
|
89
|
-
* Design in Figma: [Input File](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/
|
|
89
|
+
* Design in Figma: [Input File](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=32314-6485&t=QXC7W0qCpEbPrh2M-11)
|
|
90
90
|
*/
|
|
91
91
|
export declare const DSInputFile: import('react').ForwardRefExoticComponent<InputFileProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HTMLProps, JSX } from 'react';
|
|
2
|
+
import { OpenChangeReason } from '@floating-ui/react';
|
|
3
|
+
export interface MegaMenuProps {
|
|
4
|
+
/** Content within the MegaMenu. */
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** Opens the MegaMenu on initial render.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
initialOpen?: boolean;
|
|
10
|
+
/** Controls the open state of the MegaMenu. If provided, it will be a controlled component.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
/** A function that is called when the open state should change. */
|
|
15
|
+
onOpenChange?: (isOpen: boolean, event?: Event, reason?: OpenChangeReason) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The MegaMenu component is used to display additional information or actions related to an anchor element. It can be positioned relative to the anchor and supports various placements and offsets.
|
|
19
|
+
*
|
|
20
|
+
* Design in Figma: [MegaMenu](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/branch/dDZiDou9UpPtHIF2bXkLKL/Web-Pattern-Library?node-id=6869-65546&t=PkzLITphHlu1XJKT-11)
|
|
21
|
+
* */
|
|
22
|
+
export declare const DSMegaMenu: {
|
|
23
|
+
({ children, ...rest }: MegaMenuProps): JSX.Element;
|
|
24
|
+
/** attach static members */
|
|
25
|
+
Anchor: import('react').ForwardRefExoticComponent<Omit<HTMLProps<HTMLElement> & MegaMenuAnchorProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
26
|
+
Content: import('react').ForwardRefExoticComponent<Omit<HTMLProps<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
interface MegaMenuAnchorProps {
|
|
30
|
+
children: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { MegaMenuProps } from './MegaMenu';
|
|
2
|
+
export declare const useMegaMenu: ({ initialOpen, isOpen: controlledOpen, onOpenChange: setControlledOpen, }?: MegaMenuProps) => {
|
|
3
|
+
placement: import('@floating-ui/utils').Placement;
|
|
4
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
5
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
isPositioned: boolean;
|
|
9
|
+
update: () => void;
|
|
10
|
+
floatingStyles: React.CSSProperties;
|
|
11
|
+
refs: {
|
|
12
|
+
reference: import('react').MutableRefObject<import('@floating-ui/react-dom').ReferenceType | null>;
|
|
13
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
14
|
+
setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
|
|
15
|
+
setFloating: (node: HTMLElement | null) => void;
|
|
16
|
+
} & import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
17
|
+
elements: {
|
|
18
|
+
reference: import('@floating-ui/react-dom').ReferenceType | null;
|
|
19
|
+
floating: HTMLElement | null;
|
|
20
|
+
} & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
21
|
+
context: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
placement: import('@floating-ui/utils').Placement;
|
|
25
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
26
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
27
|
+
isPositioned: boolean;
|
|
28
|
+
update: () => void;
|
|
29
|
+
floatingStyles: React.CSSProperties;
|
|
30
|
+
open: boolean;
|
|
31
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
32
|
+
events: import('@floating-ui/react').FloatingEvents;
|
|
33
|
+
dataRef: React.MutableRefObject<import('@floating-ui/react').ContextData>;
|
|
34
|
+
nodeId: string | undefined;
|
|
35
|
+
floatingId: string | undefined;
|
|
36
|
+
refs: import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
37
|
+
elements: import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
38
|
+
};
|
|
39
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
40
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
41
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
42
|
+
active?: boolean;
|
|
43
|
+
selected?: boolean;
|
|
44
|
+
}) => Record<string, unknown>;
|
|
45
|
+
open: boolean;
|
|
46
|
+
setOpen: (isOpen: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
47
|
+
};
|
|
48
|
+
export declare const validateMegaMenuAnchor: (children: React.ReactNode) => void;
|
|
49
|
+
export declare const validateMegaMenuChildren: ({ hasContent, hasAnchor, }: {
|
|
50
|
+
hasContent: boolean;
|
|
51
|
+
hasAnchor: boolean;
|
|
52
|
+
}) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -25,7 +25,7 @@ export interface PopoverProps {
|
|
|
25
25
|
/**
|
|
26
26
|
* The Popover component is used to display additional information or actions related to an anchor element. It can be positioned relative to the anchor and supports various placements and offsets.
|
|
27
27
|
*
|
|
28
|
-
* Design in Figma: [Popover](https://www.figma.com/design/
|
|
28
|
+
* Design in Figma: [Popover](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=35223-10505&p=f&t=QXC7W0qCpEbPrh2M-11)
|
|
29
29
|
* */
|
|
30
30
|
export declare const DSPopover: {
|
|
31
31
|
({ children, ...rest }: PopoverProps): JSX.Element;
|
|
@@ -15,6 +15,6 @@ export interface ScrollerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
15
15
|
* The <DSScroller> component enables horizontal scrolling when a single item or a group of items
|
|
16
16
|
* exceeds the container width, allowing users to navigate content side-to-side seamlessly.
|
|
17
17
|
*
|
|
18
|
-
* Design in Figma: [Scroller](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/Web-Pattern-Library?node-id=
|
|
18
|
+
* Design in Figma: [Scroller](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/Web-Pattern-Library?node-id=6263-49213&t=wRBNgx5siTv3aUkL-11)
|
|
19
19
|
*/
|
|
20
20
|
export declare const DSScroller: ({ children, className, scrollToPosition, ...rest }: ScrollerProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="98" height="96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#fff"/></svg>
|
package/github-mark.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="98" height="96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#24292f"/></svg>
|
|
@@ -5,7 +5,7 @@ import "./chunks/index.CEyLAtio.js";
|
|
|
5
5
|
import "react";
|
|
6
6
|
import "./chunks/helpers.BbWkXTr3.js";
|
|
7
7
|
import "./chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
8
|
-
import { a as s, D } from "./chunks/Header.
|
|
8
|
+
import { a as s, D } from "./chunks/Header.DqZRryB5.js";
|
|
9
9
|
export {
|
|
10
10
|
s as DSHeader,
|
|
11
11
|
D as DSHeaderContext
|
package/index.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ export * from './components/LinkButton/LinkButton';
|
|
|
52
52
|
export * from './components/LinkButton/LinkButton.utils';
|
|
53
53
|
export * from './components/Logo/Logo';
|
|
54
54
|
export * from './components/Logo/Logo.utils';
|
|
55
|
+
export * from './components/MegaMenu/MegaMenu';
|
|
56
|
+
export * from './components/MegaMenu/MegaMenu.utils';
|
|
55
57
|
export * from './components/NavigationTabs/NavigationTabs';
|
|
56
58
|
export * from './components/NavigationTabs/NavigationTabs.utils';
|
|
57
59
|
export * from './components/Notification/Notification';
|
package/index.es.js
CHANGED
|
@@ -1,78 +1,79 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as D, A, C as
|
|
3
|
-
import { d, A as m, a as v, b as C, c, D as x, v as P } from "./chunks/ActionButton.
|
|
4
|
-
import { A as
|
|
5
|
-
import { DSAriaLiveRegions as
|
|
6
|
-
import { DSBanner as
|
|
2
|
+
import { a as D, A, C as n, D as O, v as l } from "./chunks/Accordion.C5V5IcM-.js";
|
|
3
|
+
import { d as E, A as m, a as v, b as C, c, D as x, v as P } from "./chunks/ActionButton.B8zFwOrJ.js";
|
|
4
|
+
import { A as f, a as L, b as R, c as h, D as g, v as B } from "./chunks/ActionLink.IX6oRXU3.js";
|
|
5
|
+
import { DSAriaLiveRegions as U } from "./arialiveregions.Fgcshs5k.js";
|
|
6
|
+
import { DSBanner as G } from "./banner.j9YpudOS.js";
|
|
7
7
|
import { D as F, M as V, v as Z } from "./chunks/Breadcrumb.BGzwzvh8.js";
|
|
8
8
|
import { B as k, a as K, D as w, v as y } from "./chunks/Button.B7xF1E19.js";
|
|
9
9
|
import { DSButtonRound as Y } from "./buttonround.C426mO4d.js";
|
|
10
10
|
import { D as q, v as z } from "./chunks/Checkbox.DxV7-F5W.js";
|
|
11
11
|
import { D as Q, v as $ } from "./chunks/CheckboxGroup.Dy_6tiGk.js";
|
|
12
12
|
import { DSChipGroup as ea } from "./chipgroup.CjIK0Z0x.js";
|
|
13
|
-
import { C as sa, c as ra, b as ta, D as Ia, g as
|
|
13
|
+
import { C as sa, c as ra, b as ta, D as Ia, g as Sa, d as Ta, v as ia, a as pa } from "./chunks/Chip.31UfPwQF.js";
|
|
14
14
|
import { DSCombobox as _a } from "./combobox.Bk2ycofh.js";
|
|
15
|
-
import { C as Aa, b as
|
|
15
|
+
import { C as Aa, b as na, a as Oa, D as la, v as da } from "./chunks/CustomReactSelect.iE5iTdez.js";
|
|
16
16
|
import { D as ma, v as va } from "./chunks/Dialog.B_2pKRnd.js";
|
|
17
17
|
import { a as ca, D as xa, v as Pa } from "./chunks/Drawer.HFlBTcqN.js";
|
|
18
|
-
import { D as
|
|
18
|
+
import { D as fa, v as La } from "./chunks/Fieldset.CjIfmN_5.js";
|
|
19
19
|
import { DSFlag as ha } from "./flag.D_iN8iD6.js";
|
|
20
|
-
import { DSFloatingActionButton as
|
|
21
|
-
import { B as
|
|
20
|
+
import { DSFloatingActionButton as Ba } from "./floatingactionbutton.DOH2k0gv.js";
|
|
21
|
+
import { B as Ua, a as ba, D as Ga, b as Ha, H as Fa, i as Va, v as Za, c as Xa } from "./chunks/Header.DqZRryB5.js";
|
|
22
22
|
import { DSHeading as Ka } from "./heading.BXFBZhKv.js";
|
|
23
23
|
import { D as ya, I as Wa, u as Ya } from "./chunks/Icon.DGTYCv63.js";
|
|
24
24
|
import { DSInput as qa } from "./input.BKHOY118.js";
|
|
25
|
-
import { I as Ja, M as Qa, a as $a, S as ae, U as ee, h as oe, i as se, c as re, s as te, v as Ie, b as
|
|
25
|
+
import { I as Ja, M as Qa, a as $a, S as ae, U as ee, h as oe, i as se, c as re, s as te, v as Ie, b as Se } from "./chunks/Input.utils.Cnnzvuk4.js";
|
|
26
26
|
import { D as ie, c as pe, b as Ne, a as _e, f as De, v as Ae } from "./chunks/InputFile.DvOatDzg.js";
|
|
27
|
-
import { D as
|
|
28
|
-
import { D as
|
|
27
|
+
import { D as Oe, v as le } from "./chunks/InputPassword.DC2POUc1.js";
|
|
28
|
+
import { D as Ee, i as me, v as ve } from "./chunks/InputSearch.B0aCuPRZ.js";
|
|
29
29
|
import { D as ce, v as xe } from "./chunks/InputStepper.B_ZjgY_f.js";
|
|
30
|
-
import { DSLink as
|
|
31
|
-
import { D as
|
|
32
|
-
import { DSLogo as
|
|
33
|
-
import { D as
|
|
34
|
-
import { D as Ze,
|
|
35
|
-
import { D as
|
|
36
|
-
import { D as qe,
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { D as Lo,
|
|
45
|
-
import { D as
|
|
46
|
-
import { D as Fo, T as Vo,
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
|
|
30
|
+
import { DSLink as ue } from "./link.D_FjTyoZ.js";
|
|
31
|
+
import { D as Le, L as Re, a as he, v as ge } from "./chunks/LinkButton.DdTspmJz.js";
|
|
32
|
+
import { DSLogo as Me } from "./logo.C96KaG1P.js";
|
|
33
|
+
import { D as be, u as Ge, v as He, a as Fe } from "./chunks/MegaMenu.BY7eOnhj.js";
|
|
34
|
+
import { D as Ze, N as Xe, a as ke, v as Ke } from "./chunks/NavigationTabs.ClpVGcl0.js";
|
|
35
|
+
import { D as ye, a as We, N as Ye } from "./chunks/Notification.DIdIhGTQ.js";
|
|
36
|
+
import { D as qe, u as ze, v as Je, a as Qe } from "./chunks/Popover.NGetxKGg.js";
|
|
37
|
+
import { D as ao, a as eo, o as oo, v as so } from "./chunks/RadioGroup.peTeMK45.js";
|
|
38
|
+
import { DSScroller as to } from "./scroller.BiRLQg__.js";
|
|
39
|
+
import { D as So, S as To, g as io, v as po } from "./chunks/Select.BDHLJ2ma.js";
|
|
40
|
+
import { DSSkipToContent as _o } from "./skiptocontent._F-d8y5b.js";
|
|
41
|
+
import { D as Ao, L as no, M as Oo, g as lo, a as Eo, i as mo, s as vo, v as Co } from "./chunks/Slider.kyVr7BLk.js";
|
|
42
|
+
import { DSSpinner as xo } from "./spinner.Dht6FspZ.js";
|
|
43
|
+
import { DSSwitch as uo } from "./switch.B37S4vfP.js";
|
|
44
|
+
import { D as Lo, a as Ro, S as ho } from "./chunks/SystemFeedback.B9f67mjJ.js";
|
|
45
|
+
import { D as Bo, T as Mo, a as Uo, v as bo } from "./chunks/Tabs.CkVL8Jw8.js";
|
|
46
|
+
import { D as Ho, a as Fo, T as Vo, b as Zo, i as Xo } from "./chunks/Text.DGWeWF1y.js";
|
|
47
|
+
import { D as Ko, T as wo, v as yo } from "./chunks/Textarea.ORkJUx-S.js";
|
|
48
|
+
import { DSTitle as Yo } from "./title.Bz_k5Vda.js";
|
|
49
|
+
import { DSToastProvider as qo, useDSToast as zo } from "./toastmanager.CVamaS5T.js";
|
|
50
|
+
const a = ["default", "secondary", "highlight"], e = ["filled", "highlight"], o = ["grey-light", "yellow-light", "red-light", "green-light", "orange-base"], s = ["x-large", "x-large-uppercase", "large", "large-uppercase", "medium", "medium-uppercase", "small", "small-uppercase"], r = ["h1", "h2", "h3", "h4", "h5", "h6"], t = ["neutral", "highlight"], I = ["main", "reduced-main", "reduced-connected", "reduced-mystihl", "reduced-imow"], S = ["prev", "next"], T = 48, i = ["small", "medium", "large", "x-large", "inherit"], p = ["x-large", "large"];
|
|
50
51
|
export {
|
|
51
52
|
D as ACCORDION_OPEN_STATE_INDICATOR,
|
|
52
53
|
A as ACCORDION_SIZE,
|
|
53
|
-
|
|
54
|
+
E as ACTION_BUTTON_CHEVRON_DIRECTION,
|
|
54
55
|
m as ACTION_BUTTON_ICON_POSITION,
|
|
55
56
|
v as ACTION_BUTTON_ICON_SIZE,
|
|
56
57
|
C as ACTION_BUTTON_INDENT_LEVEL,
|
|
57
58
|
c as ACTION_BUTTON_WEIGHT,
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
f as ACTION_LINK_ICON_POSITION,
|
|
60
|
+
L as ACTION_LINK_ICON_SIZE,
|
|
60
61
|
R as ACTION_LINK_INDENT_LEVEL,
|
|
61
62
|
h as ACTION_LINK_WEIGHT,
|
|
62
63
|
a as BANNER_VARIANT,
|
|
63
|
-
|
|
64
|
+
Ua as BRAND_ADDON_VARIANT,
|
|
64
65
|
e as BUTTON_ROUND_VARIANT,
|
|
65
66
|
k as BUTTON_SIZE,
|
|
66
67
|
K as BUTTON_VARIANT,
|
|
67
|
-
|
|
68
|
+
n as CHEVRON_POSITION,
|
|
68
69
|
sa as CHIP_GROUP_SIZE,
|
|
69
70
|
Aa as COMBOBOX_SIZE,
|
|
70
71
|
ca as DRAWER_POSITION,
|
|
71
|
-
|
|
72
|
+
O as DSAccordion,
|
|
72
73
|
x as DSActionButton,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
g as DSActionLink,
|
|
75
|
+
U as DSAriaLiveRegions,
|
|
76
|
+
G as DSBanner,
|
|
76
77
|
F as DSBreadcrumb,
|
|
77
78
|
w as DSButton,
|
|
78
79
|
Y as DSButtonRound,
|
|
@@ -82,43 +83,44 @@ export {
|
|
|
82
83
|
_a as DSCombobox,
|
|
83
84
|
ma as DSDialog,
|
|
84
85
|
xa as DSDrawer,
|
|
85
|
-
|
|
86
|
+
fa as DSFieldset,
|
|
86
87
|
ha as DSFlag,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
Ba as DSFloatingActionButton,
|
|
89
|
+
ba as DSHeader,
|
|
90
|
+
Ga as DSHeaderContext,
|
|
90
91
|
Ka as DSHeading,
|
|
91
92
|
ya as DSIcon,
|
|
92
93
|
qa as DSInput,
|
|
93
94
|
ie as DSInputFile,
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
Oe as DSInputPassword,
|
|
96
|
+
Ee as DSInputSearch,
|
|
96
97
|
ce as DSInputStepper,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
Ze as
|
|
102
|
-
|
|
103
|
-
qe as
|
|
104
|
-
ao as
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Lo as
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
98
|
+
ue as DSLink,
|
|
99
|
+
Le as DSLinkButton,
|
|
100
|
+
Me as DSLogo,
|
|
101
|
+
be as DSMegaMenu,
|
|
102
|
+
Ze as DSNavigationTabs,
|
|
103
|
+
ye as DSNotification,
|
|
104
|
+
qe as DSPopover,
|
|
105
|
+
ao as DSRadioGroup,
|
|
106
|
+
to as DSScroller,
|
|
107
|
+
So as DSSelect,
|
|
108
|
+
_o as DSSkipToContent,
|
|
109
|
+
Ao as DSSlider,
|
|
110
|
+
xo as DSSpinner,
|
|
111
|
+
uo as DSSwitch,
|
|
112
|
+
Lo as DSSystemFeedback,
|
|
113
|
+
Bo as DSTabs,
|
|
114
|
+
Ho as DSText,
|
|
115
|
+
Ko as DSTextarea,
|
|
116
|
+
Yo as DSTitle,
|
|
117
|
+
qo as DSToastProvider,
|
|
118
|
+
Ha as DSTopBar,
|
|
117
119
|
ra as DS_CHIP_GROUP_TRANSLATIONS,
|
|
118
120
|
ta as DS_CHIP_GROUP_TRANSLATIONS_DE,
|
|
119
121
|
Ia as DS_CHIP_GROUP_TRANSLATIONS_EN,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
na as DS_COMBOBOX_TRANSLATIONS,
|
|
123
|
+
Oa as DS_COMBOBOX_TRANSLATIONS_DE,
|
|
122
124
|
la as DS_COMBOBOX_TRANSLATIONS_EN,
|
|
123
125
|
pe as DS_INPUT_FILE_TRANSLATIONS,
|
|
124
126
|
Ne as DS_INPUT_FILE_TRANSLATIONS_DE,
|
|
@@ -129,66 +131,67 @@ export {
|
|
|
129
131
|
r as HEADING_TAG,
|
|
130
132
|
Wa as ICON_SIZE,
|
|
131
133
|
Ja as INPUT_SIZE,
|
|
132
|
-
|
|
134
|
+
no as LABEL_LENGTH_BREAKPOINT,
|
|
133
135
|
Re as LINK_BUTTON_SIZE,
|
|
134
136
|
he as LINK_BUTTON_VARIANT,
|
|
135
137
|
t as LINK_VARIANT,
|
|
136
138
|
I as LOGO,
|
|
137
|
-
|
|
139
|
+
Oo as MAXIMUM_TICK_AMOUNT,
|
|
138
140
|
Qa as MAX_PREFIX_LENGTH,
|
|
139
141
|
$a as MAX_SUFFIX_LENGTH,
|
|
140
142
|
V as MAX_VISIBLE_LINKS,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
Xe as NAVIGATION_TABS_ALIGNMENT,
|
|
144
|
+
ke as NAVIGATION_TABS_DIRECTION,
|
|
145
|
+
We as NOTIFICATION_ICONS,
|
|
146
|
+
Ye as NOTIFICATION_VARIANT,
|
|
147
|
+
S as SCROLLER_DIRECTION,
|
|
148
|
+
T as SCROLL_MARGIN_INLINE,
|
|
149
|
+
To as SELECT_SIZE,
|
|
148
150
|
i as SPINNER_SIZE,
|
|
149
151
|
ae as SUPPORTED_INPUT_TYPES,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
152
|
+
Ro as SYSTEM_FEEDBACK_ICON_MAP,
|
|
153
|
+
ho as SYSTEM_FEEDBACK_VARIANT,
|
|
154
|
+
Mo as TABS_ALIGNMENT,
|
|
155
|
+
Uo as TABS_DIRECTION,
|
|
156
|
+
wo as TEXTAREA_SIZE,
|
|
157
|
+
Fo as TEXT_SIZE,
|
|
158
|
+
Vo as TEXT_TAG,
|
|
159
|
+
Zo as TEXT_WEIGHT,
|
|
158
160
|
p as TITLE_SIZE,
|
|
159
161
|
ee as UNSUPPORTED_INPUT_TYPES,
|
|
160
162
|
De as fileMatchesAccept,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
Sa as getChipAriaLabel,
|
|
164
|
+
Ta as getChipTitle,
|
|
165
|
+
io as getIsPlaceholderSelected,
|
|
166
|
+
lo as getNumberLength,
|
|
167
|
+
Eo as getTickLeftOffset,
|
|
166
168
|
oe as hasShowPickerSupport,
|
|
167
169
|
se as isCalendarInput,
|
|
168
170
|
Va as isEmptyObjectOrUndefined,
|
|
169
|
-
|
|
171
|
+
mo as isStepAligned,
|
|
170
172
|
re as isTimeInput,
|
|
171
|
-
|
|
173
|
+
Xo as isWithinElement,
|
|
172
174
|
me as isWithinForm,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
+
eo as optionsHaveCustomAreaInline,
|
|
176
|
+
oo as optionsHaveHint,
|
|
175
177
|
te as showCustomCalendarOrTimeIndicator,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
+
vo as snapValueToStep,
|
|
179
|
+
zo as useDSToast,
|
|
178
180
|
Ya as useDynamicSvgImport,
|
|
179
|
-
|
|
181
|
+
Ge as useMegaMenu,
|
|
182
|
+
ze as usePopover,
|
|
180
183
|
l as validateAccordionProps,
|
|
181
184
|
P as validateActionButtonProps,
|
|
182
|
-
|
|
185
|
+
B as validateActionLinkProps,
|
|
183
186
|
Z as validateBreadcrumbProps,
|
|
184
187
|
y as validateButtonProps,
|
|
185
188
|
$ as validateCheckboxGroupProps,
|
|
186
189
|
z as validateCheckboxProps,
|
|
187
190
|
ia as validateChipGroupProps,
|
|
188
|
-
|
|
191
|
+
da as validateComboboxProps,
|
|
189
192
|
va as validateDialogProps,
|
|
190
193
|
Pa as validateDrawerProps,
|
|
191
|
-
|
|
194
|
+
La as validateFieldsetProps,
|
|
192
195
|
Za as validateHeaderChildren,
|
|
193
196
|
Ae as validateInputFileProps,
|
|
194
197
|
le as validateInputPasswordProps,
|
|
@@ -196,15 +199,17 @@ export {
|
|
|
196
199
|
ve as validateInputSearchProps,
|
|
197
200
|
xe as validateInputStepperProps,
|
|
198
201
|
pa as validateIsLiveRegionPresent,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
202
|
+
ge as validateLinkButtonProps,
|
|
203
|
+
He as validateMegaMenuAnchor,
|
|
204
|
+
Fe as validateMegaMenuChildren,
|
|
205
|
+
Ke as validateNavigationTabsProps,
|
|
206
|
+
Je as validatePopoverAnchor,
|
|
207
|
+
Qe as validatePopoverChildren,
|
|
208
|
+
so as validateRadioGroupProps,
|
|
209
|
+
po as validateSelectProps,
|
|
210
|
+
Co as validateSliderProps,
|
|
211
|
+
bo as validateTabsProps,
|
|
212
|
+
yo as validateTextareaProps,
|
|
208
213
|
Xa as validateTopBarChildren,
|
|
209
|
-
|
|
214
|
+
Se as validateType
|
|
210
215
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.CgTHIF3K.js";
|
|
4
|
+
import { D as s } from "./chunks/MegaMenu.BY7eOnhj.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./chunks/floating-ui.react.x0F9CYgn.js";
|
|
7
|
+
import "./chunks/index.CEyLAtio.js";
|
|
8
|
+
import "./chunks/helpers.BbWkXTr3.js";
|
|
9
|
+
import "./chunks/Header.DqZRryB5.js";
|
|
10
|
+
export {
|
|
11
|
+
s as DSMegaMenu
|
|
12
|
+
};
|
package/megamenu.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stihl-design-system/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.0-RC.
|
|
4
|
+
"version": "1.0.0-RC.30",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://designsystem.stihl.de/",
|
|
7
7
|
"keywords": [
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"build:utilities:partials": "cd ../utilities && npm run build:partials:bundle",
|
|
63
63
|
"build:copyComponents": "npm run build:components && ../../copyDistToExampleApps.sh '../../'",
|
|
64
64
|
"build:copyTypes": "TARGET=./dist/types && rm -rf $TARGET && mkdir -p $TARGET && cp -r ./src/types/* $TARGET/",
|
|
65
|
+
"build:copyPatterns": "npx vite-node scripts/copyPatterns.ts --clear-dest --no-verbose && npm run build --prefix ../../../examples",
|
|
65
66
|
"build:copyUtilitiesBuild": "npm run build:copyUtilitiesBuild:scss && npm run build:copyUtilitiesBuild:fonts && npm run build:copyUtilitiesBuild:partials && npm run build:copyUtilitiesBuild:js",
|
|
66
67
|
"build:copyUtilitiesBuild:scss": "TARGET=./dist/styles/scss && rm -rf $TARGET && mkdir -p $TARGET && cp -r ../utilities/dist/scss/* $TARGET/",
|
|
67
68
|
"build:copyUtilitiesBuild:fonts": "TARGET=./dist/styles/fonts && rm -rf $TARGET && mkdir -p $TARGET && cp -r ../utilities/dist/fonts/* $TARGET/",
|
|
@@ -133,6 +134,7 @@
|
|
|
133
134
|
"http-server": "^14.1.1",
|
|
134
135
|
"jsdom": "^26.1.0",
|
|
135
136
|
"posthog-js": "^1.240.5",
|
|
137
|
+
"prettier-plugin-organize-imports": "^4.2.0",
|
|
136
138
|
"react": "^19.1.0",
|
|
137
139
|
"react-compiler-runtime": "^19.1.0-rc.1",
|
|
138
140
|
"react-docgen": "^8.0.0",
|