@vygruppen/spor-react 3.7.3 → 3.7.4
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +13 -0
- package/dist/{CountryCodeSelect-WGNXQHWO.mjs → CountryCodeSelect-FLRREZ6C.mjs} +1 -1
- package/dist/{chunk-D2XVZVE6.mjs → chunk-TMLJPE4H.mjs} +148 -71
- package/dist/index.d.mts +37 -14
- package/dist/index.d.ts +37 -14
- package/dist/index.js +148 -70
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/button/Button.tsx +1 -0
- package/src/button/FloatingActionButton.tsx +9 -9
- package/src/input/ChoiceChip.tsx +2 -0
- package/src/theme/components/accordion.ts +38 -21
- package/src/theme/components/breadcrumb.ts +13 -12
- package/src/theme/components/button.ts +71 -24
- package/src/theme/components/choice-chip.ts +22 -9
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@3.7.
|
2
|
+
> @vygruppen/spor-react@3.7.4 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -9,14 +9,14 @@
|
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
|
+
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-TMLJPE4H.mjs".
|
12
13
|
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/index.js".
|
13
|
-
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-D2XVZVE6.mjs".
|
14
|
-
[32mCJS[39m [1mdist/index.js [22m[32m534.96 KB[39m
|
15
|
-
[32mCJS[39m ⚡️ Build success in 3732ms
|
16
14
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.09 KB[39m
|
17
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
18
|
-
[32mESM[39m [1mdist/chunk-
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
20
|
-
[
|
21
|
-
[
|
22
|
-
[32mDTS[39m
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-FLRREZ6C.mjs [22m[32m1.19 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-TMLJPE4H.mjs [22m[32m430.62 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 3863ms
|
18
|
+
[32mCJS[39m [1mdist/index.js [22m[32m538.95 KB[39m
|
19
|
+
[32mCJS[39m ⚡️ Build success in 3864ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 18236ms
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m256.42 KB[39m
|
22
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m256.42 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 3.7.4
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 637d713b: Accordion, ExpandableItem: Set the correct minimum height
|
8
|
+
- 75971916: Dark mode support for Accordion
|
9
|
+
- 6854e54a: Updated buttons to support dark mode with some minor touch ups to the current styles.
|
10
|
+
Variant `tertiary`-buttons are now deprecated as we are updating our visual structure
|
11
|
+
with a more minimalistic selection; please use `secondary` instead.
|
12
|
+
- 1a88ad5a: Tweaked ChoiceChip colors, and added dark mode
|
13
|
+
- e48e91d5: Breadcrumb: Add dark mode support
|
14
|
+
- 5012de56: FloatingActionButton: Make the isTextVisible prop work as expected
|
15
|
+
|
3
16
|
## 3.7.3
|
4
17
|
|
5
18
|
### Patch Changes
|
@@ -1293,10 +1293,10 @@ var FloatingActionButton = ({
|
|
1293
1293
|
...props
|
1294
1294
|
}) => {
|
1295
1295
|
const [isTextVisible, setIsTextVisible] = React50__default.useState(
|
1296
|
-
externalIsTextVisible !== void 0 ? externalIsTextVisible :
|
1296
|
+
externalIsTextVisible !== void 0 ? externalIsTextVisible : false
|
1297
1297
|
);
|
1298
1298
|
const scrollDirection = useScrollDirection();
|
1299
|
-
|
1299
|
+
useEffect(() => {
|
1300
1300
|
if (externalIsTextVisible !== void 0) {
|
1301
1301
|
return;
|
1302
1302
|
}
|
@@ -1306,7 +1306,7 @@ var FloatingActionButton = ({
|
|
1306
1306
|
);
|
1307
1307
|
return () => window.clearTimeout(id);
|
1308
1308
|
}, [scrollDirection, externalIsTextVisible]);
|
1309
|
-
|
1309
|
+
useEffect(() => {
|
1310
1310
|
setIsTextVisible(!!externalIsTextVisible);
|
1311
1311
|
}, [externalIsTextVisible]);
|
1312
1312
|
const style = useMultiStyleConfig("FloatingActionButton", {
|
@@ -1327,7 +1327,7 @@ var FloatingActionButton = ({
|
|
1327
1327
|
MotionBox,
|
1328
1328
|
{
|
1329
1329
|
animate: isTextVisible ? "show" : "hide",
|
1330
|
-
initial: "show",
|
1330
|
+
initial: externalIsTextVisible ? "show" : "hide",
|
1331
1331
|
variants: {
|
1332
1332
|
show: {
|
1333
1333
|
opacity: 1,
|
@@ -1348,7 +1348,9 @@ var FloatingActionButton = ({
|
|
1348
1348
|
};
|
1349
1349
|
var useScrollDirection = () => {
|
1350
1350
|
const [scrollDirection, setScrollDirection] = React50__default.useState(null);
|
1351
|
-
const lastScrollPosition = React50__default.useRef(
|
1351
|
+
const lastScrollPosition = React50__default.useRef(
|
1352
|
+
typeof window !== "undefined" ? window.scrollY : 0
|
1353
|
+
);
|
1352
1354
|
React50__default.useEffect(() => {
|
1353
1355
|
const onScroll = () => {
|
1354
1356
|
const delta = window.scrollY - lastScrollPosition.current;
|
@@ -4298,7 +4300,9 @@ var ChoiceChip = forwardRef((props, ref) => {
|
|
4298
4300
|
__css: styles3.container,
|
4299
4301
|
"data-checked": dataAttr(state2.isChecked),
|
4300
4302
|
"data-hover": dataAttr(state2.isHovered),
|
4301
|
-
"data-focus": dataAttr(state2.isFocused)
|
4303
|
+
"data-focus": dataAttr(state2.isFocused),
|
4304
|
+
"data-active": dataAttr(state2.isActive),
|
4305
|
+
"data-disabled": dataAttr(state2.isDisabled)
|
4302
4306
|
},
|
4303
4307
|
icon && /* @__PURE__ */ React50__default.createElement(chakra.span, { __css: styles3.icon }, state2.isChecked ? icon.checked : icon.default),
|
4304
4308
|
/* @__PURE__ */ React50__default.createElement(chakra.span, { __css: styles3.label, ...getCheckboxProps() }, variant !== "icon" && children),
|
@@ -5083,7 +5087,7 @@ var texts14 = createTexts({
|
|
5083
5087
|
sv: "Telefonnummer"
|
5084
5088
|
}
|
5085
5089
|
});
|
5086
|
-
var LazyCountryCodeSelect = React50__default.lazy(() => import('./CountryCodeSelect-
|
5090
|
+
var LazyCountryCodeSelect = React50__default.lazy(() => import('./CountryCodeSelect-FLRREZ6C.mjs'));
|
5087
5091
|
var Radio = forwardRef((props, ref) => {
|
5088
5092
|
return /* @__PURE__ */ React50__default.createElement(Radio$1, { ...props, ref });
|
5089
5093
|
});
|
@@ -11056,11 +11060,9 @@ var styles2 = {
|
|
11056
11060
|
}
|
11057
11061
|
})
|
11058
11062
|
};
|
11059
|
-
|
11060
|
-
// src/theme/components/accordion.ts
|
11061
11063
|
var helpers = createMultiStyleConfigHelpers(accordionAnatomy.keys);
|
11062
11064
|
var config3 = helpers.defineMultiStyleConfig({
|
11063
|
-
baseStyle: {
|
11065
|
+
baseStyle: (props) => ({
|
11064
11066
|
container: {
|
11065
11067
|
border: "none",
|
11066
11068
|
borderRadius: "sm"
|
@@ -11072,7 +11074,7 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11072
11074
|
borderRadius: "sm",
|
11073
11075
|
display: "flex",
|
11074
11076
|
justifyContent: "space-between",
|
11075
|
-
color: "darkGrey",
|
11077
|
+
color: mode("darkGrey", "white")(props),
|
11076
11078
|
textAlign: "left",
|
11077
11079
|
fontFamily: "body",
|
11078
11080
|
fontWeight: "bold",
|
@@ -11084,7 +11086,7 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11084
11086
|
},
|
11085
11087
|
focus: {
|
11086
11088
|
boxShadow: getBoxShadowString({
|
11087
|
-
borderColor: "greenHaze",
|
11089
|
+
borderColor: mode("greenHaze", "azure")(props),
|
11088
11090
|
borderWidth: 2
|
11089
11091
|
})
|
11090
11092
|
}
|
@@ -11101,23 +11103,26 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11101
11103
|
icon: {
|
11102
11104
|
fontSize: "1.25em"
|
11103
11105
|
}
|
11104
|
-
},
|
11106
|
+
}),
|
11105
11107
|
variants: {
|
11106
|
-
list: {
|
11108
|
+
list: (props) => ({
|
11107
11109
|
button: {
|
11108
11110
|
boxShadow: "none",
|
11109
11111
|
_hover: {
|
11110
|
-
backgroundColor: "seaMist"
|
11112
|
+
backgroundColor: mode("seaMist", "pine")(props)
|
11111
11113
|
},
|
11112
11114
|
_active: {
|
11113
|
-
backgroundColor: "mint"
|
11115
|
+
backgroundColor: mode("mint", "whiteAlpha.200")(props)
|
11114
11116
|
}
|
11115
11117
|
}
|
11116
|
-
},
|
11117
|
-
outline: {
|
11118
|
+
}),
|
11119
|
+
outline: (props) => ({
|
11118
11120
|
container: {
|
11119
11121
|
boxShadow: getBoxShadowString({
|
11120
|
-
borderColor:
|
11122
|
+
borderColor: mode(
|
11123
|
+
colors.blackAlpha["400"],
|
11124
|
+
colors.whiteAlpha["400"]
|
11125
|
+
)(props)
|
11121
11126
|
})
|
11122
11127
|
},
|
11123
11128
|
button: {
|
@@ -11126,23 +11131,24 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11126
11131
|
},
|
11127
11132
|
_hover: {
|
11128
11133
|
boxShadow: getBoxShadowString({
|
11129
|
-
borderColor: "darkGrey",
|
11134
|
+
borderColor: mode("darkGrey", "white")(props),
|
11130
11135
|
borderWidth: 2
|
11131
11136
|
})
|
11132
11137
|
},
|
11133
11138
|
_active: {
|
11134
|
-
backgroundColor: "mint",
|
11139
|
+
backgroundColor: mode("mint", "whiteAlpha.100")(props),
|
11135
11140
|
boxShadow: getBoxShadowString({
|
11136
|
-
borderColor: "darkGrey"
|
11141
|
+
borderColor: mode("darkGrey", colors.whiteAlpha[400])(props)
|
11137
11142
|
})
|
11138
11143
|
}
|
11139
11144
|
}
|
11140
|
-
},
|
11141
|
-
card: {
|
11145
|
+
}),
|
11146
|
+
card: (props) => ({
|
11142
11147
|
container: {
|
11148
|
+
backgroundColor: mode("white", "whiteAlpha.100")(props),
|
11143
11149
|
boxShadow: getBoxShadowString({
|
11144
|
-
baseShadow: "sm",
|
11145
|
-
borderColor: "silver"
|
11150
|
+
baseShadow: mode("sm", "none")(props),
|
11151
|
+
borderColor: mode("silver", "whiteAlpha.400")(props)
|
11146
11152
|
})
|
11147
11153
|
},
|
11148
11154
|
button: {
|
@@ -11150,20 +11156,30 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11150
11156
|
borderBottomRadius: "none"
|
11151
11157
|
},
|
11152
11158
|
_hover: {
|
11153
|
-
backgroundColor: "seaMist"
|
11159
|
+
backgroundColor: mode("seaMist", "whiteAlpha.200")(props),
|
11160
|
+
boxShadow: getBoxShadowString({
|
11161
|
+
borderColor: mode("darkGrey", "white")(props),
|
11162
|
+
borderWidth: 1
|
11163
|
+
})
|
11154
11164
|
},
|
11155
11165
|
_active: {
|
11156
|
-
backgroundColor: "mint"
|
11166
|
+
backgroundColor: mode("mint", "inherit")(props),
|
11167
|
+
boxShadow: getBoxShadowString({
|
11168
|
+
baseShadow: "none",
|
11169
|
+
borderWidth: 1,
|
11170
|
+
borderColor: mode("darkGrey", "whiteAlpha.400")(props)
|
11171
|
+
})
|
11157
11172
|
}
|
11158
11173
|
}
|
11159
|
-
}
|
11174
|
+
})
|
11160
11175
|
},
|
11161
11176
|
sizes: {
|
11162
11177
|
sm: {
|
11163
11178
|
button: {
|
11164
11179
|
fontSize: ["mobile.xs", null, "desktop.xs"],
|
11165
11180
|
paddingX: 2,
|
11166
|
-
paddingY: 1
|
11181
|
+
paddingY: 1,
|
11182
|
+
minHeight: 6
|
11167
11183
|
},
|
11168
11184
|
panel: {
|
11169
11185
|
fontSize: ["mobile.xs", null, "desktop.xs"],
|
@@ -11174,7 +11190,8 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11174
11190
|
button: {
|
11175
11191
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
11176
11192
|
paddingX: 3,
|
11177
|
-
paddingY: 1
|
11193
|
+
paddingY: 1,
|
11194
|
+
minHeight: 7
|
11178
11195
|
},
|
11179
11196
|
panel: {
|
11180
11197
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
@@ -11185,7 +11202,8 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11185
11202
|
button: {
|
11186
11203
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
11187
11204
|
paddingX: 3,
|
11188
|
-
paddingY: 2
|
11205
|
+
paddingY: 2,
|
11206
|
+
minHeight: 8
|
11189
11207
|
},
|
11190
11208
|
panel: {
|
11191
11209
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
@@ -11343,10 +11361,8 @@ var colorCombinations = {
|
|
11343
11361
|
color: "darkGrey"
|
11344
11362
|
}
|
11345
11363
|
};
|
11346
|
-
|
11347
|
-
// src/theme/components/breadcrumb.ts
|
11348
11364
|
var { defineMultiStyleConfig: defineMultiStyleConfig27, definePartsStyle: definePartsStyle27 } = createMultiStyleConfigHelpers(breadcrumbAnatomy.keys);
|
11349
|
-
var baseStyleLink2 = defineStyle({
|
11365
|
+
var baseStyleLink2 = defineStyle((props) => ({
|
11350
11366
|
transitionProperty: "common",
|
11351
11367
|
transitionDuration: "fast",
|
11352
11368
|
transitionTimingFunction: "ease-out",
|
@@ -11359,26 +11375,29 @@ var baseStyleLink2 = defineStyle({
|
|
11359
11375
|
paddingX: 0.5,
|
11360
11376
|
borderRadius: "xs",
|
11361
11377
|
_hover: {
|
11362
|
-
backgroundColor: "
|
11378
|
+
backgroundColor: mode("seaMist", "pine")(props)
|
11363
11379
|
},
|
11364
11380
|
_focusVisible: {
|
11365
11381
|
boxShadow: getBoxShadowString({
|
11366
|
-
borderColor: "greenHaze",
|
11382
|
+
borderColor: mode("greenHaze", "azure")(props),
|
11367
11383
|
borderWidth: 2
|
11368
|
-
})
|
11384
|
+
}),
|
11385
|
+
notFocus: {
|
11386
|
+
notFocus: { boxShadow: "none" }
|
11387
|
+
}
|
11369
11388
|
},
|
11370
11389
|
_active: {
|
11371
|
-
backgroundColor: "mint"
|
11390
|
+
backgroundColor: mode("mint", "whiteAlpha.200")(props)
|
11372
11391
|
}
|
11373
11392
|
}
|
11374
|
-
});
|
11375
|
-
var baseStyle43 = definePartsStyle27({
|
11376
|
-
link: baseStyleLink2,
|
11393
|
+
}));
|
11394
|
+
var baseStyle43 = definePartsStyle27((props) => ({
|
11395
|
+
link: baseStyleLink2(props),
|
11377
11396
|
list: {
|
11378
11397
|
flexWrap: "wrap",
|
11379
11398
|
alignItems: "flex-start"
|
11380
11399
|
}
|
11381
|
-
});
|
11400
|
+
}));
|
11382
11401
|
var breadcrumb_default = defineMultiStyleConfig27({
|
11383
11402
|
baseStyle: baseStyle43
|
11384
11403
|
});
|
@@ -11407,28 +11426,39 @@ var config6 = defineStyleConfig$1({
|
|
11407
11426
|
}
|
11408
11427
|
},
|
11409
11428
|
variants: {
|
11410
|
-
control: {
|
11411
|
-
backgroundColor: "darkTeal",
|
11412
|
-
color: "white",
|
11429
|
+
control: (props) => ({
|
11430
|
+
backgroundColor: mode("darkTeal", "mint")(props),
|
11431
|
+
color: mode("white", "darkTeal")(props),
|
11413
11432
|
...focusVisible({
|
11414
11433
|
focus: {
|
11415
|
-
boxShadow: `inset 0 0 0 4px ${
|
11434
|
+
boxShadow: `inset 0 0 0 4px ${mode(
|
11435
|
+
colors.darkTeal,
|
11436
|
+
colors.seaMist
|
11437
|
+
)(props)}, inset 0 0 0 6px currentColor`
|
11416
11438
|
},
|
11417
11439
|
notFocus: { boxShadow: "none" }
|
11418
11440
|
}),
|
11419
11441
|
_hover: {
|
11420
|
-
backgroundColor: "night"
|
11442
|
+
backgroundColor: mode("night", "coralGreen")(props)
|
11421
11443
|
},
|
11422
11444
|
_active: {
|
11423
|
-
backgroundColor: "pine"
|
11445
|
+
backgroundColor: mode("pine", "white")(props)
|
11424
11446
|
}
|
11425
|
-
},
|
11426
|
-
primary: {
|
11447
|
+
}),
|
11448
|
+
primary: (props) => ({
|
11449
|
+
// FIXME: Update to use a global defined background color for darkMode whenever it is available.
|
11450
|
+
// hardcoded background color as alpha-"hack" below is not feasible for dark mode with solid background color
|
11427
11451
|
backgroundColor: "primaryGreen",
|
11428
11452
|
color: "white",
|
11429
11453
|
...focusVisible({
|
11430
11454
|
focus: {
|
11431
|
-
boxShadow: `inset 0 0 0
|
11455
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
11456
|
+
colors.greenHaze,
|
11457
|
+
colors.azure
|
11458
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
11459
|
+
colors.white,
|
11460
|
+
colors.darkGrey
|
11461
|
+
)(props)}`
|
11432
11462
|
},
|
11433
11463
|
notFocus: { boxShadow: "none" }
|
11434
11464
|
}),
|
@@ -11438,25 +11468,61 @@ var config6 = defineStyleConfig$1({
|
|
11438
11468
|
_active: {
|
11439
11469
|
backgroundColor: "azure"
|
11440
11470
|
}
|
11441
|
-
},
|
11442
|
-
secondary: {
|
11443
|
-
|
11444
|
-
|
11471
|
+
}),
|
11472
|
+
secondary: (props) => ({
|
11473
|
+
// FIXME: Update to use global defined background color for darkMode whenever it is available instead of alpha
|
11474
|
+
backgroundColor: mode("seaMist", "whiteAlpha.100")(props),
|
11475
|
+
color: mode("darkTeal", "white")(props),
|
11476
|
+
// order is important here for now while we do not have global defined background color for darkMode
|
11477
|
+
_hover: {
|
11478
|
+
backgroundColor: mode("coralGreen", "whiteAlpha.200")(props)
|
11479
|
+
},
|
11445
11480
|
...focusVisible({
|
11446
11481
|
focus: {
|
11447
|
-
boxShadow: `inset 0 0 0
|
11482
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
11483
|
+
colors.greenHaze,
|
11484
|
+
colors.azure
|
11485
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
11486
|
+
colors.white,
|
11487
|
+
colors.blackAlpha[300]
|
11488
|
+
)(props)}`,
|
11489
|
+
_hover: {
|
11490
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
11491
|
+
colors.greenHaze,
|
11492
|
+
colors.azure
|
11493
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
11494
|
+
colors.white,
|
11495
|
+
colors.blackAlpha[500]
|
11496
|
+
)(props)}`
|
11497
|
+
}
|
11448
11498
|
},
|
11449
11499
|
notFocus: {
|
11450
11500
|
boxShadow: "none"
|
11451
11501
|
}
|
11452
11502
|
}),
|
11453
|
-
_hover: {
|
11454
|
-
backgroundColor: "blueGreen"
|
11455
|
-
},
|
11456
11503
|
_active: {
|
11457
|
-
backgroundColor: "mint"
|
11504
|
+
backgroundColor: mode("mint", "whiteAlpha.300")(props),
|
11505
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
11506
|
+
colors.greenHaze,
|
11507
|
+
colors.azure
|
11508
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
11509
|
+
colors.white,
|
11510
|
+
colors.blackAlpha[600]
|
11511
|
+
)(props)}`,
|
11512
|
+
_hover: {
|
11513
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
11514
|
+
colors.greenHaze,
|
11515
|
+
colors.azure
|
11516
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
11517
|
+
colors.white,
|
11518
|
+
colors.blackAlpha[600]
|
11519
|
+
)(props)}`
|
11520
|
+
}
|
11458
11521
|
}
|
11459
|
-
},
|
11522
|
+
}),
|
11523
|
+
/**
|
11524
|
+
* @deprecated use `secondary` instead.
|
11525
|
+
*/
|
11460
11526
|
tertiary: {
|
11461
11527
|
backgroundColor: "mint",
|
11462
11528
|
color: "darkGrey",
|
@@ -11485,7 +11551,7 @@ var config6 = defineStyleConfig$1({
|
|
11485
11551
|
...focusVisible({
|
11486
11552
|
focus: {
|
11487
11553
|
boxShadow: getBoxShadowString({
|
11488
|
-
borderWidth:
|
11554
|
+
borderWidth: 2,
|
11489
11555
|
borderColor: "greenHaze"
|
11490
11556
|
})
|
11491
11557
|
},
|
@@ -11992,32 +12058,43 @@ var helpers5 = createMultiStyleConfigHelpers$1(parts3.keys);
|
|
11992
12058
|
var config10 = helpers5.defineMultiStyleConfig({
|
11993
12059
|
baseStyle: (props) => ({
|
11994
12060
|
container: {
|
11995
|
-
backgroundColor: "white",
|
12061
|
+
backgroundColor: mode("white", "transparent")(props),
|
11996
12062
|
boxShadow: getBoxShadowString({ borderColor: "celadon" }),
|
11997
|
-
color: "darkTeal",
|
12063
|
+
color: mode("darkTeal", "white")(props),
|
11998
12064
|
display: "inline-flex",
|
11999
12065
|
alignItems: "center",
|
12000
12066
|
fontSize: "16px",
|
12001
12067
|
px: 1,
|
12002
12068
|
_checked: {
|
12003
|
-
|
12069
|
+
color: "white",
|
12070
|
+
background: "pine",
|
12004
12071
|
boxShadow: getBoxShadowString({ borderColor: "celadon" })
|
12005
12072
|
},
|
12006
12073
|
"input:focus-visible + &": {
|
12007
|
-
boxShadow:
|
12008
|
-
|
12009
|
-
|
12010
|
-
}
|
12074
|
+
boxShadow: `inset 0 0 0 2px ${mode(
|
12075
|
+
colors.greenHaze,
|
12076
|
+
colors.azure
|
12077
|
+
)(props)}, inset 0 0 0 4px ${mode(
|
12078
|
+
colors.white,
|
12079
|
+
colors.darkGrey
|
12080
|
+
)(props)}`
|
12011
12081
|
},
|
12012
12082
|
"@media (hover:hover)": {
|
12013
12083
|
_hover: {
|
12084
|
+
color: mode("darkTeal", "white")(props),
|
12014
12085
|
boxShadow: getBoxShadowString({
|
12015
12086
|
borderColor: "greenHaze",
|
12016
12087
|
borderWidth: 2
|
12017
12088
|
}),
|
12018
|
-
background: "
|
12089
|
+
background: mode("coralGreen", "whiteAlpha.200")(props),
|
12019
12090
|
cursor: "pointer"
|
12020
12091
|
}
|
12092
|
+
},
|
12093
|
+
_active: {
|
12094
|
+
backgroundColor: mode("mint", "whiteAlpha.300")(props),
|
12095
|
+
boxShadow: getBoxShadowString({
|
12096
|
+
borderColor: "pine"
|
12097
|
+
})
|
12021
12098
|
}
|
12022
12099
|
},
|
12023
12100
|
icon: {
|
package/dist/index.d.mts
CHANGED
@@ -266,7 +266,9 @@ type ButtonProps = Exclude<ButtonProps$1, "colorScheme" | "loadingText" | "size"
|
|
266
266
|
*
|
267
267
|
* Defaults to "primary"
|
268
268
|
*/
|
269
|
-
variant?: "control" | "primary" | "secondary"
|
269
|
+
variant?: "control" | "primary" | "secondary"
|
270
|
+
/** @deprecated Use `secondary` instead */
|
271
|
+
| "tertiary" | "additional" | "ghost" | "floating";
|
270
272
|
};
|
271
273
|
/**
|
272
274
|
* Buttons are used to trigger actions.
|
@@ -1963,7 +1965,7 @@ declare const fontFaces: string;
|
|
1963
1965
|
declare const theme: {
|
1964
1966
|
components: {
|
1965
1967
|
Accordion: {
|
1966
|
-
baseStyle?: {
|
1968
|
+
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
1967
1969
|
container: {
|
1968
1970
|
border: string;
|
1969
1971
|
borderRadius: string;
|
@@ -1994,13 +1996,14 @@ declare const theme: {
|
|
1994
1996
|
icon: {
|
1995
1997
|
fontSize: string;
|
1996
1998
|
};
|
1997
|
-
} | undefined;
|
1999
|
+
}) | undefined;
|
1998
2000
|
sizes?: {
|
1999
2001
|
sm: {
|
2000
2002
|
button: {
|
2001
2003
|
fontSize: ("mobile.xs" | "desktop.xs" | null)[];
|
2002
2004
|
paddingX: number;
|
2003
2005
|
paddingY: number;
|
2006
|
+
minHeight: number;
|
2004
2007
|
};
|
2005
2008
|
panel: {
|
2006
2009
|
fontSize: ("mobile.xs" | "desktop.xs" | null)[];
|
@@ -2012,6 +2015,7 @@ declare const theme: {
|
|
2012
2015
|
fontSize: ("mobile.sm" | "desktop.sm" | null)[];
|
2013
2016
|
paddingX: number;
|
2014
2017
|
paddingY: number;
|
2018
|
+
minHeight: number;
|
2015
2019
|
};
|
2016
2020
|
panel: {
|
2017
2021
|
fontSize: ("mobile.sm" | "desktop.sm" | null)[];
|
@@ -2023,6 +2027,7 @@ declare const theme: {
|
|
2023
2027
|
fontSize: ("mobile.sm" | "desktop.sm" | null)[];
|
2024
2028
|
paddingX: number;
|
2025
2029
|
paddingY: number;
|
2030
|
+
minHeight: number;
|
2026
2031
|
};
|
2027
2032
|
panel: {
|
2028
2033
|
fontSize: ("mobile.sm" | "desktop.sm" | null)[];
|
@@ -2031,7 +2036,7 @@ declare const theme: {
|
|
2031
2036
|
};
|
2032
2037
|
} | undefined;
|
2033
2038
|
variants?: {
|
2034
|
-
list: {
|
2039
|
+
list: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2035
2040
|
button: {
|
2036
2041
|
boxShadow: string;
|
2037
2042
|
_hover: {
|
@@ -2042,7 +2047,7 @@ declare const theme: {
|
|
2042
2047
|
};
|
2043
2048
|
};
|
2044
2049
|
};
|
2045
|
-
outline: {
|
2050
|
+
outline: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2046
2051
|
container: {
|
2047
2052
|
boxShadow: string;
|
2048
2053
|
};
|
@@ -2059,8 +2064,9 @@ declare const theme: {
|
|
2059
2064
|
};
|
2060
2065
|
};
|
2061
2066
|
};
|
2062
|
-
card: {
|
2067
|
+
card: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2063
2068
|
container: {
|
2069
|
+
backgroundColor: string;
|
2064
2070
|
boxShadow: string;
|
2065
2071
|
};
|
2066
2072
|
button: {
|
@@ -2069,9 +2075,11 @@ declare const theme: {
|
|
2069
2075
|
};
|
2070
2076
|
_hover: {
|
2071
2077
|
backgroundColor: string;
|
2078
|
+
boxShadow: string;
|
2072
2079
|
};
|
2073
2080
|
_active: {
|
2074
2081
|
backgroundColor: string;
|
2082
|
+
boxShadow: string;
|
2075
2083
|
};
|
2076
2084
|
};
|
2077
2085
|
};
|
@@ -2176,7 +2184,7 @@ declare const theme: {
|
|
2176
2184
|
} | undefined;
|
2177
2185
|
};
|
2178
2186
|
Breadcrumb: {
|
2179
|
-
baseStyle?: {
|
2187
|
+
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2180
2188
|
link: {
|
2181
2189
|
transitionProperty: string;
|
2182
2190
|
transitionDuration: string;
|
@@ -2194,6 +2202,11 @@ declare const theme: {
|
|
2194
2202
|
};
|
2195
2203
|
_focusVisible: {
|
2196
2204
|
boxShadow: string;
|
2205
|
+
notFocus: {
|
2206
|
+
notFocus: {
|
2207
|
+
boxShadow: string;
|
2208
|
+
};
|
2209
|
+
};
|
2197
2210
|
};
|
2198
2211
|
_active: {
|
2199
2212
|
backgroundColor: string;
|
@@ -2204,7 +2217,7 @@ declare const theme: {
|
|
2204
2217
|
flexWrap: string;
|
2205
2218
|
alignItems: string;
|
2206
2219
|
};
|
2207
|
-
} | undefined;
|
2220
|
+
}) | undefined;
|
2208
2221
|
sizes?: {
|
2209
2222
|
[key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
|
2210
2223
|
keys: ("link" | "container" | "separator" | "item")[];
|
@@ -2270,7 +2283,7 @@ declare const theme: {
|
|
2270
2283
|
};
|
2271
2284
|
} | undefined;
|
2272
2285
|
variants?: {
|
2273
|
-
control: {
|
2286
|
+
control: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2274
2287
|
_hover: {
|
2275
2288
|
backgroundColor: string;
|
2276
2289
|
};
|
@@ -2283,7 +2296,7 @@ declare const theme: {
|
|
2283
2296
|
backgroundColor: string;
|
2284
2297
|
color: string;
|
2285
2298
|
};
|
2286
|
-
primary: {
|
2299
|
+
primary: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2287
2300
|
_hover: {
|
2288
2301
|
backgroundColor: string;
|
2289
2302
|
};
|
@@ -2296,18 +2309,22 @@ declare const theme: {
|
|
2296
2309
|
backgroundColor: string;
|
2297
2310
|
color: string;
|
2298
2311
|
};
|
2299
|
-
secondary: {
|
2300
|
-
_hover: {
|
2301
|
-
backgroundColor: string;
|
2302
|
-
};
|
2312
|
+
secondary: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
2303
2313
|
_active: {
|
2304
2314
|
backgroundColor: string;
|
2315
|
+
boxShadow: string;
|
2316
|
+
_hover: {
|
2317
|
+
boxShadow: string;
|
2318
|
+
};
|
2305
2319
|
};
|
2306
2320
|
_focus: _chakra_ui_styled_system.SystemStyleObject;
|
2307
2321
|
_focusVisible: _chakra_ui_styled_system.SystemStyleObject;
|
2308
2322
|
"&[data-focus]:not([data-focus-visible])": _chakra_ui_styled_system.SystemStyleObject;
|
2309
2323
|
backgroundColor: string;
|
2310
2324
|
color: string;
|
2325
|
+
_hover: {
|
2326
|
+
backgroundColor: string;
|
2327
|
+
};
|
2311
2328
|
};
|
2312
2329
|
tertiary: {
|
2313
2330
|
_hover: {
|
@@ -2668,6 +2685,7 @@ declare const theme: {
|
|
2668
2685
|
fontSize: string;
|
2669
2686
|
px: number;
|
2670
2687
|
_checked: {
|
2688
|
+
color: string;
|
2671
2689
|
background: string;
|
2672
2690
|
boxShadow: string;
|
2673
2691
|
};
|
@@ -2676,11 +2694,16 @@ declare const theme: {
|
|
2676
2694
|
};
|
2677
2695
|
"@media (hover:hover)": {
|
2678
2696
|
_hover: {
|
2697
|
+
color: string;
|
2679
2698
|
boxShadow: string;
|
2680
2699
|
background: string;
|
2681
2700
|
cursor: string;
|
2682
2701
|
};
|
2683
2702
|
};
|
2703
|
+
_active: {
|
2704
|
+
backgroundColor: string;
|
2705
|
+
boxShadow: string;
|
2706
|
+
};
|
2684
2707
|
};
|
2685
2708
|
icon: {
|
2686
2709
|
mr: number;
|