@vygruppen/spor-react 3.7.2 → 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 +22 -0
- package/dist/{CountryCodeSelect-LFJGSTTV.mjs → CountryCodeSelect-FLRREZ6C.mjs} +1 -1
- package/dist/{chunk-YVEFEGE4.mjs → chunk-TMLJPE4H.mjs} +196 -103
- package/dist/index.d.mts +70 -45
- package/dist/index.d.ts +70 -45
- package/dist/index.js +204 -102
- 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/link/TextLink.tsx +5 -1
- package/src/theme/components/accordion.ts +39 -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/src/theme/components/index.ts +1 -1
- package/src/theme/components/link.ts +30 -30
- package/src/theme/components/list.ts +23 -0
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-YVEFEGE4.mjs".
|
14
|
-
[32mCJS[39m [1mdist/index.js [22m[32m534.04 KB[39m
|
15
|
-
[32mCJS[39m ⚡️ Build success in 4013ms
|
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,27 @@
|
|
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
|
+
|
16
|
+
## 3.7.3
|
17
|
+
|
18
|
+
### Patch Changes
|
19
|
+
|
20
|
+
- 05f55861: Updated styles for TextLink, and added dark mode support.
|
21
|
+
Variant `tertiary` is now deprecated as we are updating our visual structure
|
22
|
+
with a more minimalistic selection; please use `secondary` instead.
|
23
|
+
- 6cef81ca: Add font family to list and accordion button
|
24
|
+
|
3
25
|
## 3.7.2
|
4
26
|
|
5
27
|
### 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
|
});
|
@@ -10806,6 +10810,7 @@ __export(components_exports, {
|
|
10806
10810
|
Input: () => input_default,
|
10807
10811
|
LineIcon: () => line_icon_default,
|
10808
10812
|
Link: () => link_default,
|
10813
|
+
List: () => list_default,
|
10809
10814
|
ListBox: () => listbox_default,
|
10810
10815
|
MediaControllerButton: () => media_controller_button_default,
|
10811
10816
|
Modal: () => modal_default,
|
@@ -11055,11 +11060,9 @@ var styles2 = {
|
|
11055
11060
|
}
|
11056
11061
|
})
|
11057
11062
|
};
|
11058
|
-
|
11059
|
-
// src/theme/components/accordion.ts
|
11060
11063
|
var helpers = createMultiStyleConfigHelpers(accordionAnatomy.keys);
|
11061
11064
|
var config3 = helpers.defineMultiStyleConfig({
|
11062
|
-
baseStyle: {
|
11065
|
+
baseStyle: (props) => ({
|
11063
11066
|
container: {
|
11064
11067
|
border: "none",
|
11065
11068
|
borderRadius: "sm"
|
@@ -11071,8 +11074,9 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11071
11074
|
borderRadius: "sm",
|
11072
11075
|
display: "flex",
|
11073
11076
|
justifyContent: "space-between",
|
11074
|
-
color: "darkGrey",
|
11077
|
+
color: mode("darkGrey", "white")(props),
|
11075
11078
|
textAlign: "left",
|
11079
|
+
fontFamily: "body",
|
11076
11080
|
fontWeight: "bold",
|
11077
11081
|
...focusVisible({
|
11078
11082
|
notFocus: {
|
@@ -11082,7 +11086,7 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11082
11086
|
},
|
11083
11087
|
focus: {
|
11084
11088
|
boxShadow: getBoxShadowString({
|
11085
|
-
borderColor: "greenHaze",
|
11089
|
+
borderColor: mode("greenHaze", "azure")(props),
|
11086
11090
|
borderWidth: 2
|
11087
11091
|
})
|
11088
11092
|
}
|
@@ -11099,23 +11103,26 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11099
11103
|
icon: {
|
11100
11104
|
fontSize: "1.25em"
|
11101
11105
|
}
|
11102
|
-
},
|
11106
|
+
}),
|
11103
11107
|
variants: {
|
11104
|
-
list: {
|
11108
|
+
list: (props) => ({
|
11105
11109
|
button: {
|
11106
11110
|
boxShadow: "none",
|
11107
11111
|
_hover: {
|
11108
|
-
backgroundColor: "seaMist"
|
11112
|
+
backgroundColor: mode("seaMist", "pine")(props)
|
11109
11113
|
},
|
11110
11114
|
_active: {
|
11111
|
-
backgroundColor: "mint"
|
11115
|
+
backgroundColor: mode("mint", "whiteAlpha.200")(props)
|
11112
11116
|
}
|
11113
11117
|
}
|
11114
|
-
},
|
11115
|
-
outline: {
|
11118
|
+
}),
|
11119
|
+
outline: (props) => ({
|
11116
11120
|
container: {
|
11117
11121
|
boxShadow: getBoxShadowString({
|
11118
|
-
borderColor:
|
11122
|
+
borderColor: mode(
|
11123
|
+
colors.blackAlpha["400"],
|
11124
|
+
colors.whiteAlpha["400"]
|
11125
|
+
)(props)
|
11119
11126
|
})
|
11120
11127
|
},
|
11121
11128
|
button: {
|
@@ -11124,23 +11131,24 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11124
11131
|
},
|
11125
11132
|
_hover: {
|
11126
11133
|
boxShadow: getBoxShadowString({
|
11127
|
-
borderColor: "darkGrey",
|
11134
|
+
borderColor: mode("darkGrey", "white")(props),
|
11128
11135
|
borderWidth: 2
|
11129
11136
|
})
|
11130
11137
|
},
|
11131
11138
|
_active: {
|
11132
|
-
backgroundColor: "mint",
|
11139
|
+
backgroundColor: mode("mint", "whiteAlpha.100")(props),
|
11133
11140
|
boxShadow: getBoxShadowString({
|
11134
|
-
borderColor: "darkGrey"
|
11141
|
+
borderColor: mode("darkGrey", colors.whiteAlpha[400])(props)
|
11135
11142
|
})
|
11136
11143
|
}
|
11137
11144
|
}
|
11138
|
-
},
|
11139
|
-
card: {
|
11145
|
+
}),
|
11146
|
+
card: (props) => ({
|
11140
11147
|
container: {
|
11148
|
+
backgroundColor: mode("white", "whiteAlpha.100")(props),
|
11141
11149
|
boxShadow: getBoxShadowString({
|
11142
|
-
baseShadow: "sm",
|
11143
|
-
borderColor: "silver"
|
11150
|
+
baseShadow: mode("sm", "none")(props),
|
11151
|
+
borderColor: mode("silver", "whiteAlpha.400")(props)
|
11144
11152
|
})
|
11145
11153
|
},
|
11146
11154
|
button: {
|
@@ -11148,20 +11156,30 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11148
11156
|
borderBottomRadius: "none"
|
11149
11157
|
},
|
11150
11158
|
_hover: {
|
11151
|
-
backgroundColor: "seaMist"
|
11159
|
+
backgroundColor: mode("seaMist", "whiteAlpha.200")(props),
|
11160
|
+
boxShadow: getBoxShadowString({
|
11161
|
+
borderColor: mode("darkGrey", "white")(props),
|
11162
|
+
borderWidth: 1
|
11163
|
+
})
|
11152
11164
|
},
|
11153
11165
|
_active: {
|
11154
|
-
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
|
+
})
|
11155
11172
|
}
|
11156
11173
|
}
|
11157
|
-
}
|
11174
|
+
})
|
11158
11175
|
},
|
11159
11176
|
sizes: {
|
11160
11177
|
sm: {
|
11161
11178
|
button: {
|
11162
11179
|
fontSize: ["mobile.xs", null, "desktop.xs"],
|
11163
11180
|
paddingX: 2,
|
11164
|
-
paddingY: 1
|
11181
|
+
paddingY: 1,
|
11182
|
+
minHeight: 6
|
11165
11183
|
},
|
11166
11184
|
panel: {
|
11167
11185
|
fontSize: ["mobile.xs", null, "desktop.xs"],
|
@@ -11172,7 +11190,8 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11172
11190
|
button: {
|
11173
11191
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
11174
11192
|
paddingX: 3,
|
11175
|
-
paddingY: 1
|
11193
|
+
paddingY: 1,
|
11194
|
+
minHeight: 7
|
11176
11195
|
},
|
11177
11196
|
panel: {
|
11178
11197
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
@@ -11183,7 +11202,8 @@ var config3 = helpers.defineMultiStyleConfig({
|
|
11183
11202
|
button: {
|
11184
11203
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
11185
11204
|
paddingX: 3,
|
11186
|
-
paddingY: 2
|
11205
|
+
paddingY: 2,
|
11206
|
+
minHeight: 8
|
11187
11207
|
},
|
11188
11208
|
panel: {
|
11189
11209
|
fontSize: ["mobile.sm", null, "desktop.sm"],
|
@@ -11341,10 +11361,8 @@ var colorCombinations = {
|
|
11341
11361
|
color: "darkGrey"
|
11342
11362
|
}
|
11343
11363
|
};
|
11344
|
-
|
11345
|
-
// src/theme/components/breadcrumb.ts
|
11346
11364
|
var { defineMultiStyleConfig: defineMultiStyleConfig27, definePartsStyle: definePartsStyle27 } = createMultiStyleConfigHelpers(breadcrumbAnatomy.keys);
|
11347
|
-
var baseStyleLink2 = defineStyle({
|
11365
|
+
var baseStyleLink2 = defineStyle((props) => ({
|
11348
11366
|
transitionProperty: "common",
|
11349
11367
|
transitionDuration: "fast",
|
11350
11368
|
transitionTimingFunction: "ease-out",
|
@@ -11357,26 +11375,29 @@ var baseStyleLink2 = defineStyle({
|
|
11357
11375
|
paddingX: 0.5,
|
11358
11376
|
borderRadius: "xs",
|
11359
11377
|
_hover: {
|
11360
|
-
backgroundColor: "
|
11378
|
+
backgroundColor: mode("seaMist", "pine")(props)
|
11361
11379
|
},
|
11362
11380
|
_focusVisible: {
|
11363
11381
|
boxShadow: getBoxShadowString({
|
11364
|
-
borderColor: "greenHaze",
|
11382
|
+
borderColor: mode("greenHaze", "azure")(props),
|
11365
11383
|
borderWidth: 2
|
11366
|
-
})
|
11384
|
+
}),
|
11385
|
+
notFocus: {
|
11386
|
+
notFocus: { boxShadow: "none" }
|
11387
|
+
}
|
11367
11388
|
},
|
11368
11389
|
_active: {
|
11369
|
-
backgroundColor: "mint"
|
11390
|
+
backgroundColor: mode("mint", "whiteAlpha.200")(props)
|
11370
11391
|
}
|
11371
11392
|
}
|
11372
|
-
});
|
11373
|
-
var baseStyle43 = definePartsStyle27({
|
11374
|
-
link: baseStyleLink2,
|
11393
|
+
}));
|
11394
|
+
var baseStyle43 = definePartsStyle27((props) => ({
|
11395
|
+
link: baseStyleLink2(props),
|
11375
11396
|
list: {
|
11376
11397
|
flexWrap: "wrap",
|
11377
11398
|
alignItems: "flex-start"
|
11378
11399
|
}
|
11379
|
-
});
|
11400
|
+
}));
|
11380
11401
|
var breadcrumb_default = defineMultiStyleConfig27({
|
11381
11402
|
baseStyle: baseStyle43
|
11382
11403
|
});
|
@@ -11405,28 +11426,39 @@ var config6 = defineStyleConfig$1({
|
|
11405
11426
|
}
|
11406
11427
|
},
|
11407
11428
|
variants: {
|
11408
|
-
control: {
|
11409
|
-
backgroundColor: "darkTeal",
|
11410
|
-
color: "white",
|
11429
|
+
control: (props) => ({
|
11430
|
+
backgroundColor: mode("darkTeal", "mint")(props),
|
11431
|
+
color: mode("white", "darkTeal")(props),
|
11411
11432
|
...focusVisible({
|
11412
11433
|
focus: {
|
11413
|
-
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`
|
11414
11438
|
},
|
11415
11439
|
notFocus: { boxShadow: "none" }
|
11416
11440
|
}),
|
11417
11441
|
_hover: {
|
11418
|
-
backgroundColor: "night"
|
11442
|
+
backgroundColor: mode("night", "coralGreen")(props)
|
11419
11443
|
},
|
11420
11444
|
_active: {
|
11421
|
-
backgroundColor: "pine"
|
11445
|
+
backgroundColor: mode("pine", "white")(props)
|
11422
11446
|
}
|
11423
|
-
},
|
11424
|
-
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
|
11425
11451
|
backgroundColor: "primaryGreen",
|
11426
11452
|
color: "white",
|
11427
11453
|
...focusVisible({
|
11428
11454
|
focus: {
|
11429
|
-
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)}`
|
11430
11462
|
},
|
11431
11463
|
notFocus: { boxShadow: "none" }
|
11432
11464
|
}),
|
@@ -11436,25 +11468,61 @@ var config6 = defineStyleConfig$1({
|
|
11436
11468
|
_active: {
|
11437
11469
|
backgroundColor: "azure"
|
11438
11470
|
}
|
11439
|
-
},
|
11440
|
-
secondary: {
|
11441
|
-
|
11442
|
-
|
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
|
+
},
|
11443
11480
|
...focusVisible({
|
11444
11481
|
focus: {
|
11445
|
-
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
|
+
}
|
11446
11498
|
},
|
11447
11499
|
notFocus: {
|
11448
11500
|
boxShadow: "none"
|
11449
11501
|
}
|
11450
11502
|
}),
|
11451
|
-
_hover: {
|
11452
|
-
backgroundColor: "blueGreen"
|
11453
|
-
},
|
11454
11503
|
_active: {
|
11455
|
-
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
|
+
}
|
11456
11521
|
}
|
11457
|
-
},
|
11522
|
+
}),
|
11523
|
+
/**
|
11524
|
+
* @deprecated use `secondary` instead.
|
11525
|
+
*/
|
11458
11526
|
tertiary: {
|
11459
11527
|
backgroundColor: "mint",
|
11460
11528
|
color: "darkGrey",
|
@@ -11483,7 +11551,7 @@ var config6 = defineStyleConfig$1({
|
|
11483
11551
|
...focusVisible({
|
11484
11552
|
focus: {
|
11485
11553
|
boxShadow: getBoxShadowString({
|
11486
|
-
borderWidth:
|
11554
|
+
borderWidth: 2,
|
11487
11555
|
borderColor: "greenHaze"
|
11488
11556
|
})
|
11489
11557
|
},
|
@@ -11990,32 +12058,43 @@ var helpers5 = createMultiStyleConfigHelpers$1(parts3.keys);
|
|
11990
12058
|
var config10 = helpers5.defineMultiStyleConfig({
|
11991
12059
|
baseStyle: (props) => ({
|
11992
12060
|
container: {
|
11993
|
-
backgroundColor: "white",
|
12061
|
+
backgroundColor: mode("white", "transparent")(props),
|
11994
12062
|
boxShadow: getBoxShadowString({ borderColor: "celadon" }),
|
11995
|
-
color: "darkTeal",
|
12063
|
+
color: mode("darkTeal", "white")(props),
|
11996
12064
|
display: "inline-flex",
|
11997
12065
|
alignItems: "center",
|
11998
12066
|
fontSize: "16px",
|
11999
12067
|
px: 1,
|
12000
12068
|
_checked: {
|
12001
|
-
|
12069
|
+
color: "white",
|
12070
|
+
background: "pine",
|
12002
12071
|
boxShadow: getBoxShadowString({ borderColor: "celadon" })
|
12003
12072
|
},
|
12004
12073
|
"input:focus-visible + &": {
|
12005
|
-
boxShadow:
|
12006
|
-
|
12007
|
-
|
12008
|
-
}
|
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)}`
|
12009
12081
|
},
|
12010
12082
|
"@media (hover:hover)": {
|
12011
12083
|
_hover: {
|
12084
|
+
color: mode("darkTeal", "white")(props),
|
12012
12085
|
boxShadow: getBoxShadowString({
|
12013
12086
|
borderColor: "greenHaze",
|
12014
12087
|
borderWidth: 2
|
12015
12088
|
}),
|
12016
|
-
background: "
|
12089
|
+
background: mode("coralGreen", "whiteAlpha.200")(props),
|
12017
12090
|
cursor: "pointer"
|
12018
12091
|
}
|
12092
|
+
},
|
12093
|
+
_active: {
|
12094
|
+
backgroundColor: mode("mint", "whiteAlpha.300")(props),
|
12095
|
+
boxShadow: getBoxShadowString({
|
12096
|
+
borderColor: "pine"
|
12097
|
+
})
|
12019
12098
|
}
|
12020
12099
|
},
|
12021
12100
|
icon: {
|
@@ -13231,80 +13310,79 @@ var config23 = defineStyleConfig$1({
|
|
13231
13310
|
}
|
13232
13311
|
},
|
13233
13312
|
variants: {
|
13234
|
-
primary: {
|
13235
|
-
color: "pine",
|
13313
|
+
primary: (props) => ({
|
13314
|
+
color: mode("pine", "seaMist")(props),
|
13236
13315
|
...focusVisible({
|
13237
13316
|
focus: {
|
13238
|
-
|
13239
|
-
backgroundColor: "pine",
|
13317
|
+
backgroundColor: "transparent",
|
13240
13318
|
boxShadow: getBoxShadowString({
|
13241
|
-
borderColor: "
|
13242
|
-
borderWidth:
|
13319
|
+
borderColor: "azure",
|
13320
|
+
borderWidth: 2,
|
13243
13321
|
isInset: false
|
13244
13322
|
})
|
13245
13323
|
},
|
13246
13324
|
notFocus: {
|
13247
13325
|
color: "pine",
|
13248
|
-
|
13249
|
-
|
13326
|
+
backgroundColor: "transparent",
|
13327
|
+
boxShadow: "none"
|
13250
13328
|
}
|
13251
13329
|
}),
|
13252
13330
|
_hover: {
|
13253
|
-
|
13254
|
-
|
13331
|
+
color: "white",
|
13332
|
+
backgroundColor: "pine",
|
13255
13333
|
boxShadow: getBoxShadowString({
|
13256
|
-
borderColor: "
|
13257
|
-
borderWidth:
|
13334
|
+
borderColor: "pine",
|
13335
|
+
borderWidth: 2,
|
13258
13336
|
isInset: false
|
13259
13337
|
})
|
13260
13338
|
},
|
13261
13339
|
_active: {
|
13262
|
-
|
13340
|
+
color: "white",
|
13341
|
+
backgroundColor: "azure",
|
13263
13342
|
boxShadow: getBoxShadowString({
|
13264
|
-
borderColor: "
|
13265
|
-
borderWidth:
|
13343
|
+
borderColor: "azure",
|
13344
|
+
borderWidth: 2,
|
13266
13345
|
isInset: false
|
13267
|
-
})
|
13268
|
-
color: "pine"
|
13346
|
+
})
|
13269
13347
|
}
|
13270
|
-
},
|
13348
|
+
}),
|
13271
13349
|
secondary: (props) => ({
|
13272
|
-
color: "darkGrey",
|
13350
|
+
color: mode("darkGrey", "white")(props),
|
13273
13351
|
...focusVisible({
|
13274
13352
|
focus: {
|
13275
|
-
|
13276
|
-
backgroundColor: "darkGrey",
|
13353
|
+
backgroundColor: "transparent",
|
13277
13354
|
boxShadow: getBoxShadowString({
|
13278
|
-
borderColor: "
|
13279
|
-
borderWidth:
|
13355
|
+
borderColor: "azure",
|
13356
|
+
borderWidth: 2,
|
13280
13357
|
isInset: false
|
13281
13358
|
})
|
13282
13359
|
},
|
13283
13360
|
notFocus: {
|
13284
|
-
color: "darkGrey",
|
13285
13361
|
boxShadow: "none",
|
13286
13362
|
backgroundColor: "transparent"
|
13287
13363
|
}
|
13288
13364
|
}),
|
13289
13365
|
_hover: {
|
13290
|
-
|
13291
|
-
backgroundColor: "blackAlpha.100",
|
13366
|
+
backgroundColor: mode("seaMist", "pine")(props),
|
13292
13367
|
boxShadow: getBoxShadowString({
|
13293
|
-
borderColor: props
|
13294
|
-
borderWidth:
|
13368
|
+
borderColor: mode("seaMist", "pine")(props),
|
13369
|
+
borderWidth: 2,
|
13295
13370
|
isInset: false
|
13296
13371
|
})
|
13297
13372
|
},
|
13298
13373
|
_active: {
|
13299
|
-
|
13300
|
-
backgroundColor: "mint",
|
13374
|
+
backgroundColor: mode("mint", "whiteAlpha.200")(props),
|
13301
13375
|
boxShadow: getBoxShadowString({
|
13302
|
-
borderColor: "mint",
|
13303
|
-
borderWidth:
|
13376
|
+
borderColor: mode("mint", "whiteAlpha.200")(props),
|
13377
|
+
borderWidth: 2,
|
13304
13378
|
isInset: false
|
13305
13379
|
})
|
13306
13380
|
}
|
13307
13381
|
}),
|
13382
|
+
/**
|
13383
|
+
* @deprecated tertiary style will be deprecated in the future.
|
13384
|
+
* Please use the secondary style instead.
|
13385
|
+
*/
|
13308
13386
|
tertiary: (props) => ({
|
13309
13387
|
color: "white",
|
13310
13388
|
...focusVisible({
|
@@ -13348,6 +13426,21 @@ var config23 = defineStyleConfig$1({
|
|
13348
13426
|
}
|
13349
13427
|
});
|
13350
13428
|
var link_default = config23;
|
13429
|
+
|
13430
|
+
// src/theme/components/list.ts
|
13431
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig28, definePartsStyle: definePartsStyle28 } = createMultiStyleConfigHelpers(listAnatomy.keys);
|
13432
|
+
var baseStyleIcon8 = defineStyle({
|
13433
|
+
marginEnd: "2",
|
13434
|
+
display: "inline",
|
13435
|
+
verticalAlign: "text-bottom",
|
13436
|
+
fontFamily: "body"
|
13437
|
+
});
|
13438
|
+
var baseStyle45 = definePartsStyle28({
|
13439
|
+
icon: baseStyleIcon8
|
13440
|
+
});
|
13441
|
+
var list_default = defineMultiStyleConfig28({
|
13442
|
+
baseStyle: baseStyle45
|
13443
|
+
});
|
13351
13444
|
var parts10 = anatomy("ListBox").parts(
|
13352
13445
|
"container",
|
13353
13446
|
"item",
|