@bbl-digital/snorre 2.2.87 → 2.2.88
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 +5 -2
- package/esm/core/TabNav/index.js +5 -2
- package/lib/core/TabNav/index.js +5 -2
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
@@ -30600,7 +30600,8 @@
|
|
30600
30600
|
value: value || values[0].value,
|
30601
30601
|
children: jsxRuntime$1.jsx(TabContext.Consumer, {
|
30602
30602
|
children: ({
|
30603
|
-
width: childrenTotalWidth
|
30603
|
+
width: childrenTotalWidth,
|
30604
|
+
setActive
|
30604
30605
|
}) => {
|
30605
30606
|
if (actionsWidth + childrenTotalWidth > containerWidth) {
|
30606
30607
|
// Render dropdown instead of tabs
|
@@ -30610,7 +30611,9 @@
|
|
30610
30611
|
width: "auto",
|
30611
30612
|
text: "Velg",
|
30612
30613
|
selectedValue: String(value) || '0',
|
30613
|
-
onChange:
|
30614
|
+
onChange: ({
|
30615
|
+
value
|
30616
|
+
}) => setActive(value),
|
30614
30617
|
children: values.map(({
|
30615
30618
|
displayText,
|
30616
30619
|
value
|
package/esm/core/TabNav/index.js
CHANGED
@@ -36,7 +36,8 @@ const TabNav = ({
|
|
36
36
|
value: value || values[0].value,
|
37
37
|
children: _jsx(TabContext.Consumer, {
|
38
38
|
children: ({
|
39
|
-
width: childrenTotalWidth
|
39
|
+
width: childrenTotalWidth,
|
40
|
+
setActive
|
40
41
|
}) => {
|
41
42
|
if (actionsWidth + childrenTotalWidth > containerWidth) {
|
42
43
|
// Render dropdown instead of tabs
|
@@ -46,7 +47,9 @@ const TabNav = ({
|
|
46
47
|
width: "auto",
|
47
48
|
text: "Velg",
|
48
49
|
selectedValue: String(value) || '0',
|
49
|
-
onChange:
|
50
|
+
onChange: ({
|
51
|
+
value
|
52
|
+
}) => setActive(value),
|
50
53
|
children: values.map(({
|
51
54
|
displayText,
|
52
55
|
value
|
package/lib/core/TabNav/index.js
CHANGED
@@ -36,7 +36,8 @@ const TabNav = ({
|
|
36
36
|
value: value || values[0].value,
|
37
37
|
children: _jsx(TabContext.Consumer, {
|
38
38
|
children: ({
|
39
|
-
width: childrenTotalWidth
|
39
|
+
width: childrenTotalWidth,
|
40
|
+
setActive
|
40
41
|
}) => {
|
41
42
|
if (actionsWidth + childrenTotalWidth > containerWidth) {
|
42
43
|
// Render dropdown instead of tabs
|
@@ -46,7 +47,9 @@ const TabNav = ({
|
|
46
47
|
width: "auto",
|
47
48
|
text: "Velg",
|
48
49
|
selectedValue: String(value) || '0',
|
49
|
-
onChange:
|
50
|
+
onChange: ({
|
51
|
+
value
|
52
|
+
}) => setActive(value),
|
50
53
|
children: values.map(({
|
51
54
|
displayText,
|
52
55
|
value
|