@bbl-digital/snorre 2.2.133 → 2.2.134
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/dist/bundle.js
CHANGED
@@ -26284,9 +26284,10 @@
|
|
26284
26284
|
lightTheme,
|
26285
26285
|
active,
|
26286
26286
|
label,
|
26287
|
+
className,
|
26288
|
+
showActiveitemLabel,
|
26287
26289
|
onClick,
|
26288
|
-
onChange
|
26289
|
-
showActiveitemLabel
|
26290
|
+
onChange
|
26290
26291
|
}) => {
|
26291
26292
|
const theme = react.useTheme();
|
26292
26293
|
const isMobile = useIsMobile();
|
@@ -26314,6 +26315,7 @@
|
|
26314
26315
|
css: FocusState(lightTheme ? theme.primary : 'white'),
|
26315
26316
|
trackingName: "Submenu",
|
26316
26317
|
trackingEvent: 'Submenu click: ' + label,
|
26318
|
+
className: className,
|
26317
26319
|
children: jsxRuntime$1.jsx(reactTransitionGroup.CSSTransition, {
|
26318
26320
|
in: active,
|
26319
26321
|
classNames: "submenu-item",
|
@@ -13,9 +13,10 @@ const SubmenuItem = ({
|
|
13
13
|
lightTheme,
|
14
14
|
active,
|
15
15
|
label,
|
16
|
+
className,
|
17
|
+
showActiveitemLabel,
|
16
18
|
onClick,
|
17
|
-
onChange
|
18
|
-
showActiveitemLabel
|
19
|
+
onChange
|
19
20
|
}) => {
|
20
21
|
const theme = useTheme();
|
21
22
|
const isMobile = useIsMobile();
|
@@ -43,6 +44,7 @@ const SubmenuItem = ({
|
|
43
44
|
css: FocusState(lightTheme ? theme.primary : 'white'),
|
44
45
|
trackingName: "Submenu",
|
45
46
|
trackingEvent: 'Submenu click: ' + label,
|
47
|
+
className: className,
|
46
48
|
children: _jsx(CSSTransition, {
|
47
49
|
in: active,
|
48
50
|
classNames: "submenu-item",
|
@@ -7,12 +7,14 @@ interface IProps {
|
|
7
7
|
label: string;
|
8
8
|
/** Sets the item as active */
|
9
9
|
active?: boolean;
|
10
|
+
/** Return label of active item or null */
|
11
|
+
showActiveitemLabel?: boolean;
|
12
|
+
/** Add classname to desktop item */
|
13
|
+
className?: string;
|
10
14
|
/** CB fired on click */
|
11
15
|
onClick?: () => void;
|
12
16
|
/** CB fired on click */
|
13
17
|
onChange?: () => void;
|
14
|
-
/** Return label of active item or null */
|
15
|
-
showActiveitemLabel?: boolean;
|
16
18
|
}
|
17
19
|
declare const SubmenuItem: React.FC<IProps>;
|
18
20
|
export default SubmenuItem;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/layout/Submenu/SubmenuItem/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAmB,MAAM,OAAO,CAAA;AAUvC,UAAU,MAAM;IACd,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,8BAA8B;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/layout/Submenu/SubmenuItem/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAmB,MAAM,OAAO,CAAA;AAUvC,UAAU,MAAM;IACd,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,8BAA8B;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,0CAA0C;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wBAAwB;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CA0DjC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
@@ -13,9 +13,10 @@ const SubmenuItem = ({
|
|
13
13
|
lightTheme,
|
14
14
|
active,
|
15
15
|
label,
|
16
|
+
className,
|
17
|
+
showActiveitemLabel,
|
16
18
|
onClick,
|
17
|
-
onChange
|
18
|
-
showActiveitemLabel
|
19
|
+
onChange
|
19
20
|
}) => {
|
20
21
|
const theme = useTheme();
|
21
22
|
const isMobile = useIsMobile();
|
@@ -43,6 +44,7 @@ const SubmenuItem = ({
|
|
43
44
|
css: FocusState(lightTheme ? theme.primary : 'white'),
|
44
45
|
trackingName: "Submenu",
|
45
46
|
trackingEvent: 'Submenu click: ' + label,
|
47
|
+
className: className,
|
46
48
|
children: _jsx(CSSTransition, {
|
47
49
|
in: active,
|
48
50
|
classNames: "submenu-item",
|