@vygruppen/spor-react 9.11.2 → 9.11.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 +9 -9
- package/CHANGELOG.md +12 -0
- package/dist/{CountryCodeSelect-KU4HQMG3.mjs → CountryCodeSelect-5Z5ATLWK.mjs} +1 -1
- package/dist/{chunk-PA6EOPOZ.mjs → chunk-WCPDJEIZ.mjs} +86 -122
- package/dist/index.d.mts +44 -26
- package/dist/index.d.ts +44 -26
- package/dist/index.js +90 -125
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/datepicker/CalendarCell.tsx +1 -21
- package/src/datepicker/CalendarHeader.tsx +4 -6
- package/src/datepicker/CalendarTriggerButton.tsx +1 -1
- package/src/datepicker/DateTimeSegment.tsx +0 -4
- package/src/input/Radio.tsx +0 -1
- package/src/theme/components/breadcrumb.ts +4 -42
- package/src/theme/components/button.ts +4 -4
- package/src/theme/components/choice-chip.ts +11 -14
- package/src/theme/components/close-button.ts +6 -5
- package/src/theme/components/datepicker.ts +21 -0
- package/src/theme/components/info-select.ts +1 -1
- package/src/theme/components/input.ts +2 -2
- package/src/theme/components/pressable-card.ts +2 -1
- package/src/theme/components/progress-bar.ts +4 -1
- package/src/theme/components/radio.ts +5 -2
- package/src/theme/components/select.ts +4 -4
- package/src/theme/components/static-card.ts +0 -1
- package/src/theme/components/tabs.ts +5 -31
package/dist/index.js
CHANGED
@@ -3537,44 +3537,20 @@ function CalendarCell({
|
|
3537
3537
|
{ passive: false, once: true }
|
3538
3538
|
);
|
3539
3539
|
}, []);
|
3540
|
-
return /* @__PURE__ */ React88__namespace.default.createElement(
|
3540
|
+
return /* @__PURE__ */ React88__namespace.default.createElement(react.Box, { as: "td", ...cellProps, textAlign: "center", sx: styles3.cell }, /* @__PURE__ */ React88__namespace.default.createElement(
|
3541
3541
|
react.Box,
|
3542
3542
|
{
|
3543
|
-
as: "
|
3544
|
-
|
3545
|
-
|
3546
|
-
|
3547
|
-
|
3548
|
-
|
3549
|
-
|
3550
|
-
|
3551
|
-
width: "100%",
|
3552
|
-
height: "100%",
|
3553
|
-
backgroundColor: "darkTeal",
|
3554
|
-
position: "absolute",
|
3555
|
-
left: "-50%",
|
3556
|
-
top: 0,
|
3557
|
-
bottom: 0,
|
3558
|
-
zIndex: -1
|
3559
|
-
}
|
3560
|
-
}
|
3561
|
-
}
|
3543
|
+
as: "button",
|
3544
|
+
type: "button",
|
3545
|
+
...buttonProps,
|
3546
|
+
...stateProps,
|
3547
|
+
ref,
|
3548
|
+
sx: styles3.dateCell,
|
3549
|
+
hidden: isOutsideVisibleRange,
|
3550
|
+
width: "100%"
|
3562
3551
|
},
|
3563
|
-
|
3564
|
-
|
3565
|
-
{
|
3566
|
-
as: "button",
|
3567
|
-
type: "button",
|
3568
|
-
...buttonProps,
|
3569
|
-
...stateProps,
|
3570
|
-
ref,
|
3571
|
-
sx: styles3.dateCell,
|
3572
|
-
hidden: isOutsideVisibleRange,
|
3573
|
-
width: "100%"
|
3574
|
-
},
|
3575
|
-
date$1.day
|
3576
|
-
)
|
3577
|
-
);
|
3552
|
+
date$1.day
|
3553
|
+
));
|
3578
3554
|
}
|
3579
3555
|
var init_CalendarCell = __esm({
|
3580
3556
|
"src/datepicker/CalendarCell.tsx"() {
|
@@ -3736,7 +3712,6 @@ var capitalize, CalendarNavigator, texts13;
|
|
3736
3712
|
var init_CalendarHeader = __esm({
|
3737
3713
|
"src/datepicker/CalendarHeader.tsx"() {
|
3738
3714
|
init_i18n();
|
3739
|
-
init_typography();
|
3740
3715
|
init_CalendarNavigationButton();
|
3741
3716
|
init_utils();
|
3742
3717
|
capitalize = (str = "") => str.charAt(0).toUpperCase() + str.slice(1);
|
@@ -3758,11 +3733,10 @@ var init_CalendarHeader = __esm({
|
|
3758
3733
|
"aria-label": `${t2(texts13.previous)} ${t2(texts13[unit])}`
|
3759
3734
|
}
|
3760
3735
|
), /* @__PURE__ */ React88__namespace.default.createElement(
|
3761
|
-
|
3736
|
+
react.Box,
|
3762
3737
|
{
|
3763
|
-
as: "div",
|
3764
3738
|
role: "heading",
|
3765
|
-
|
3739
|
+
fontSize: "sm",
|
3766
3740
|
fontWeight: "bold",
|
3767
3741
|
flex: "1",
|
3768
3742
|
textAlign: "center"
|
@@ -3909,11 +3883,7 @@ var init_DateTimeSegment = __esm({
|
|
3909
3883
|
outline: "none",
|
3910
3884
|
borderRadius: "xs",
|
3911
3885
|
fontSize: ["mobile.sm", "desktop.sm"],
|
3912
|
-
sx: styles3.dateTimeSegment
|
3913
|
-
_focus: {
|
3914
|
-
backgroundColor: "darkTeal",
|
3915
|
-
color: "white"
|
3916
|
-
}
|
3886
|
+
sx: styles3.dateTimeSegment
|
3917
3887
|
},
|
3918
3888
|
isPaddable(segment.type) ? segment.text.padStart(2, "0") : segment.text
|
3919
3889
|
);
|
@@ -12078,41 +12048,17 @@ var init_badge = __esm({
|
|
12078
12048
|
};
|
12079
12049
|
}
|
12080
12050
|
});
|
12081
|
-
|
12051
|
+
|
12052
|
+
// src/theme/components/breadcrumb.ts
|
12053
|
+
var defineMultiStyleConfig27, definePartsStyle27, breadcrumb_default;
|
12082
12054
|
var init_breadcrumb2 = __esm({
|
12083
12055
|
"src/theme/components/breadcrumb.ts"() {
|
12084
12056
|
init_dist4();
|
12085
12057
|
init_dist3();
|
12086
12058
|
init_base_utils();
|
12087
12059
|
init_focus_utils();
|
12060
|
+
init_ghost_utils();
|
12088
12061
|
({ defineMultiStyleConfig: defineMultiStyleConfig27, definePartsStyle: definePartsStyle27 } = createMultiStyleConfigHelpers(breadcrumbAnatomy.keys));
|
12089
|
-
baseStyleLink2 = defineStyle((props) => ({
|
12090
|
-
transitionProperty: "common",
|
12091
|
-
transitionDuration: "fast",
|
12092
|
-
transitionTimingFunction: "ease-out",
|
12093
|
-
color: "inherit",
|
12094
|
-
textDecoration: "none",
|
12095
|
-
textStyle: "xs",
|
12096
|
-
paddingX: 0.5,
|
12097
|
-
borderRadius: "xs",
|
12098
|
-
"&:not([aria-current=page])": {
|
12099
|
-
cursor: "pointer",
|
12100
|
-
_hover: {
|
12101
|
-
...baseBackground("hover", props)
|
12102
|
-
},
|
12103
|
-
_active: {
|
12104
|
-
...baseBackground("active", props)
|
12105
|
-
},
|
12106
|
-
...focusVisibleStyles(props)
|
12107
|
-
}
|
12108
|
-
}));
|
12109
|
-
definePartsStyle27((props) => ({
|
12110
|
-
link: baseStyleLink2(props),
|
12111
|
-
list: {
|
12112
|
-
flexWrap: "wrap",
|
12113
|
-
alignItems: "flex-start"
|
12114
|
-
}
|
12115
|
-
}));
|
12116
12062
|
breadcrumb_default = defineMultiStyleConfig27({
|
12117
12063
|
baseStyle: definePartsStyle27((props) => ({
|
12118
12064
|
link: {
|
@@ -12151,16 +12097,10 @@ var init_breadcrumb2 = __esm({
|
|
12151
12097
|
link: {
|
12152
12098
|
"&:not([aria-current=page])": {
|
12153
12099
|
_hover: {
|
12154
|
-
|
12155
|
-
"ghost.surface.hover.light",
|
12156
|
-
"ghost.surface.hover.dark"
|
12157
|
-
)(props)
|
12100
|
+
...ghostBackground("hover", props)
|
12158
12101
|
},
|
12159
12102
|
_active: {
|
12160
|
-
|
12161
|
-
"ghost.surface.active.light",
|
12162
|
-
"ghost.surface.active.dark"
|
12163
|
-
)(props)
|
12103
|
+
...ghostBackground("active", props)
|
12164
12104
|
}
|
12165
12105
|
}
|
12166
12106
|
}
|
@@ -12312,26 +12252,26 @@ var init_button2 = __esm({
|
|
12312
12252
|
lg: {
|
12313
12253
|
minHeight: 8,
|
12314
12254
|
minWidth: 8,
|
12315
|
-
fontSize: "
|
12255
|
+
fontSize: "sm",
|
12316
12256
|
fontWeight: "bold"
|
12317
12257
|
},
|
12318
12258
|
md: {
|
12319
12259
|
minHeight: 7,
|
12320
12260
|
minWidth: 7,
|
12321
|
-
fontSize: "
|
12261
|
+
fontSize: "sm",
|
12322
12262
|
fontWeight: "bold"
|
12323
12263
|
},
|
12324
12264
|
sm: {
|
12325
12265
|
minHeight: 6,
|
12326
12266
|
minWidth: 6,
|
12327
|
-
fontSize: "
|
12267
|
+
fontSize: "xs",
|
12328
12268
|
fontWeight: "normal"
|
12329
12269
|
},
|
12330
12270
|
xs: {
|
12331
12271
|
minHeight: 5,
|
12332
12272
|
minWidth: 5,
|
12333
12273
|
paddingY: 0.5,
|
12334
|
-
fontSize: "
|
12274
|
+
fontSize: "xs",
|
12335
12275
|
fontWeight: "normal"
|
12336
12276
|
}
|
12337
12277
|
},
|
@@ -13052,9 +12992,10 @@ var init_choice_chip = __esm({
|
|
13052
12992
|
container: {
|
13053
12993
|
display: "inline-flex",
|
13054
12994
|
alignItems: "center",
|
13055
|
-
fontSize: "
|
12995
|
+
fontSize: "xs",
|
13056
12996
|
cursor: "pointer",
|
13057
12997
|
transitionProperty: "all",
|
12998
|
+
borderRadius: "xl",
|
13058
12999
|
transitionDuration: "fast",
|
13059
13000
|
_checked: {
|
13060
13001
|
outlineColor: "transparent",
|
@@ -13154,42 +13095,38 @@ var init_choice_chip = __esm({
|
|
13154
13095
|
sizes: {
|
13155
13096
|
xs: {
|
13156
13097
|
container: {
|
13157
|
-
borderRadius: "30px",
|
13158
13098
|
_checked: {
|
13159
|
-
borderRadius: "
|
13099
|
+
borderRadius: "0.563rem"
|
13160
13100
|
},
|
13161
|
-
height:
|
13101
|
+
height: 5,
|
13162
13102
|
paddingX: 1.5
|
13163
13103
|
}
|
13164
13104
|
},
|
13165
13105
|
sm: {
|
13166
13106
|
container: {
|
13167
|
-
borderRadius: "30px",
|
13168
13107
|
_checked: {
|
13169
|
-
borderRadius: "
|
13108
|
+
borderRadius: "sm"
|
13170
13109
|
},
|
13171
|
-
height:
|
13110
|
+
height: 6,
|
13172
13111
|
paddingX: 2
|
13173
13112
|
}
|
13174
13113
|
},
|
13175
13114
|
md: {
|
13176
13115
|
container: {
|
13177
|
-
borderRadius: "30px",
|
13178
13116
|
_checked: {
|
13179
|
-
borderRadius: "
|
13117
|
+
borderRadius: "sm"
|
13180
13118
|
},
|
13181
|
-
height:
|
13119
|
+
height: 7,
|
13182
13120
|
paddingX: 2
|
13183
13121
|
}
|
13184
13122
|
},
|
13185
13123
|
lg: {
|
13186
13124
|
container: {
|
13187
|
-
borderRadius: "30px",
|
13188
13125
|
_checked: {
|
13189
|
-
borderRadius: "
|
13126
|
+
borderRadius: "md"
|
13190
13127
|
},
|
13191
|
-
height:
|
13192
|
-
|
13128
|
+
height: 8,
|
13129
|
+
paddingX: 3
|
13193
13130
|
}
|
13194
13131
|
}
|
13195
13132
|
},
|
@@ -13204,6 +13141,7 @@ var $size6, config12, close_button_default;
|
|
13204
13141
|
var init_close_button = __esm({
|
13205
13142
|
"src/theme/components/close-button.ts"() {
|
13206
13143
|
init_focus_utils();
|
13144
|
+
init_ghost_utils();
|
13207
13145
|
$size6 = themeTools.cssVar("close-button-size");
|
13208
13146
|
config12 = react.defineStyleConfig({
|
13209
13147
|
baseStyle: (props) => ({
|
@@ -13217,27 +13155,27 @@ var init_close_button = __esm({
|
|
13217
13155
|
fontWeight: "normal",
|
13218
13156
|
...focusVisibleStyles(props),
|
13219
13157
|
_hover: {
|
13220
|
-
|
13158
|
+
...ghostBackground("hover", props),
|
13221
13159
|
_disabled: {
|
13222
13160
|
color: "dimGrey"
|
13223
13161
|
}
|
13224
13162
|
},
|
13225
13163
|
_active: {
|
13226
|
-
|
13164
|
+
...ghostBackground("active", props)
|
13227
13165
|
}
|
13228
13166
|
}),
|
13229
13167
|
sizes: {
|
13230
13168
|
lg: {
|
13231
13169
|
[$size6.variable]: "40px",
|
13232
|
-
fontSize: "
|
13170
|
+
fontSize: "xs"
|
13233
13171
|
},
|
13234
13172
|
md: {
|
13235
13173
|
[$size6.variable]: "32px",
|
13236
|
-
fontSize: "
|
13174
|
+
fontSize: "0.75rem"
|
13237
13175
|
},
|
13238
13176
|
sm: {
|
13239
13177
|
[$size6.variable]: "24px",
|
13240
|
-
fontSize: "
|
13178
|
+
fontSize: "0.625rem"
|
13241
13179
|
}
|
13242
13180
|
},
|
13243
13181
|
defaultProps: {
|
@@ -13286,7 +13224,8 @@ var init_datepicker2 = __esm({
|
|
13286
13224
|
"weekend",
|
13287
13225
|
"dateCell",
|
13288
13226
|
"inputLabel",
|
13289
|
-
"dateTimeSegment"
|
13227
|
+
"dateTimeSegment",
|
13228
|
+
"cell"
|
13290
13229
|
);
|
13291
13230
|
$arrowBackground = themeTools.cssVar("popper-arrow-bg");
|
13292
13231
|
helpers7 = react.createMultiStyleConfigHelpers(parts5.keys);
|
@@ -13321,7 +13260,11 @@ var init_datepicker2 = __esm({
|
|
13321
13260
|
color: themeTools.mode(
|
13322
13261
|
"darkGrey",
|
13323
13262
|
props.isPlaceholder ? "whiteAlpha.400" : "white"
|
13324
|
-
)(props)
|
13263
|
+
)(props),
|
13264
|
+
_focus: {
|
13265
|
+
...brandBackground("hover", props),
|
13266
|
+
color: "white"
|
13267
|
+
}
|
13325
13268
|
},
|
13326
13269
|
calendarTriggerButton: {
|
13327
13270
|
width: 8,
|
@@ -13362,6 +13305,22 @@ var init_datepicker2 = __esm({
|
|
13362
13305
|
weekend: {
|
13363
13306
|
...accentText("default", props)
|
13364
13307
|
},
|
13308
|
+
cell: {
|
13309
|
+
'&[aria-selected="true"] + [aria-selected="true"] > button': {
|
13310
|
+
"&::before": {
|
13311
|
+
content: '""',
|
13312
|
+
display: "block",
|
13313
|
+
width: "100%",
|
13314
|
+
height: "100%",
|
13315
|
+
position: "absolute",
|
13316
|
+
left: "-50%",
|
13317
|
+
top: 0,
|
13318
|
+
bottom: 0,
|
13319
|
+
zIndex: -1,
|
13320
|
+
...brandBackground("default", props)
|
13321
|
+
}
|
13322
|
+
}
|
13323
|
+
},
|
13365
13324
|
dateCell: {
|
13366
13325
|
...ghostBackground("default", props),
|
13367
13326
|
...baseText("default", props),
|
@@ -13450,11 +13409,11 @@ var init_datepicker2 = __esm({
|
|
13450
13409
|
datepicker_default = config14;
|
13451
13410
|
}
|
13452
13411
|
});
|
13453
|
-
var
|
13412
|
+
var baseStyle43, variantSolid5, variantDashed2, variants14, sizes25, divider_default;
|
13454
13413
|
var init_divider = __esm({
|
13455
13414
|
"src/theme/components/divider.ts"() {
|
13456
13415
|
init_dist3();
|
13457
|
-
|
13416
|
+
baseStyle43 = defineStyle((props) => ({
|
13458
13417
|
borderColor: themeTools.mode("blackAlpha.300", "whiteAlpha.300")(props)
|
13459
13418
|
}));
|
13460
13419
|
variantSolid5 = defineStyle({
|
@@ -13482,7 +13441,7 @@ var init_divider = __esm({
|
|
13482
13441
|
}
|
13483
13442
|
};
|
13484
13443
|
divider_default = defineStyleConfig({
|
13485
|
-
baseStyle:
|
13444
|
+
baseStyle: baseStyle43,
|
13486
13445
|
variants: variants14,
|
13487
13446
|
sizes: sizes25,
|
13488
13447
|
defaultProps: {
|
@@ -13808,7 +13767,7 @@ var init_info_select = __esm({
|
|
13808
13767
|
display: "flex",
|
13809
13768
|
appearance: "none",
|
13810
13769
|
width: "100%",
|
13811
|
-
height:
|
13770
|
+
height: 8,
|
13812
13771
|
borderTopRadius: "sm",
|
13813
13772
|
borderBottomRadius: props.isOpen ? 0 : "sm",
|
13814
13773
|
paddingY: 1.5,
|
@@ -14195,7 +14154,7 @@ var init_input2 = __esm({
|
|
14195
14154
|
transitionDuration: "fast",
|
14196
14155
|
position: "relative",
|
14197
14156
|
paddingX: 3,
|
14198
|
-
height:
|
14157
|
+
height: 8,
|
14199
14158
|
fontSize: "mobile.md",
|
14200
14159
|
...baseBackground("default", props),
|
14201
14160
|
...baseBorder("default", props),
|
@@ -14233,7 +14192,7 @@ var init_input2 = __esm({
|
|
14233
14192
|
cursor: "text"
|
14234
14193
|
},
|
14235
14194
|
"&:not(:placeholder-shown)": {
|
14236
|
-
paddingTop: "
|
14195
|
+
paddingTop: "1rem",
|
14237
14196
|
"& + label": {
|
14238
14197
|
transform: "scale(0.825) translateY(-10px)"
|
14239
14198
|
}
|
@@ -14456,13 +14415,13 @@ var init_link2 = __esm({
|
|
14456
14415
|
});
|
14457
14416
|
|
14458
14417
|
// src/theme/components/list.ts
|
14459
|
-
var defineMultiStyleConfig28, definePartsStyle28,
|
14418
|
+
var defineMultiStyleConfig28, definePartsStyle28, baseStyle44, list_default;
|
14460
14419
|
var init_list2 = __esm({
|
14461
14420
|
"src/theme/components/list.ts"() {
|
14462
14421
|
init_dist4();
|
14463
14422
|
init_dist3();
|
14464
14423
|
({ defineMultiStyleConfig: defineMultiStyleConfig28, definePartsStyle: definePartsStyle28 } = createMultiStyleConfigHelpers(listAnatomy.keys));
|
14465
|
-
|
14424
|
+
baseStyle44 = definePartsStyle28({
|
14466
14425
|
container: {
|
14467
14426
|
fontSize: ["mobile.sm", "desktop.sm"]
|
14468
14427
|
},
|
@@ -14476,7 +14435,7 @@ var init_list2 = __esm({
|
|
14476
14435
|
}
|
14477
14436
|
});
|
14478
14437
|
list_default = defineMultiStyleConfig28({
|
14479
|
-
baseStyle:
|
14438
|
+
baseStyle: baseStyle44
|
14480
14439
|
});
|
14481
14440
|
}
|
14482
14441
|
});
|
@@ -14946,8 +14905,10 @@ var init_progress_bar = __esm({
|
|
14946
14905
|
},
|
14947
14906
|
background: {
|
14948
14907
|
display: "flex",
|
14949
|
-
backgroundColor: themeTools.mode(
|
14950
|
-
|
14908
|
+
backgroundColor: themeTools.mode(
|
14909
|
+
"brand.surface.default.dark",
|
14910
|
+
"brand.surface.default.light"
|
14911
|
+
)(props),
|
14951
14912
|
borderRadius: "sm",
|
14952
14913
|
justifyContent: "flex-start",
|
14953
14914
|
marginX: "auto"
|
@@ -15177,7 +15138,10 @@ var init_radio = __esm({
|
|
15177
15138
|
...baseText("disabled", props)
|
15178
15139
|
},
|
15179
15140
|
_checked: {
|
15180
|
-
color: themeTools.mode(
|
15141
|
+
color: themeTools.mode(
|
15142
|
+
"brand.surface.default.light",
|
15143
|
+
"brand.surface.default.dark"
|
15144
|
+
)(props),
|
15181
15145
|
borderColor: "currentColor",
|
15182
15146
|
_before: {
|
15183
15147
|
content: `""`,
|
@@ -15232,17 +15196,17 @@ var init_select = __esm({
|
|
15232
15196
|
field: {
|
15233
15197
|
...input_default.baseStyle(props).field,
|
15234
15198
|
appearance: "none",
|
15235
|
-
paddingTop: "
|
15199
|
+
paddingTop: "1rem",
|
15236
15200
|
"option, optgroup": {}
|
15237
15201
|
},
|
15238
15202
|
icon: {
|
15239
|
-
width:
|
15240
|
-
height:
|
15203
|
+
width: 5,
|
15204
|
+
height: 5,
|
15241
15205
|
insetEnd: "0.5rem",
|
15242
15206
|
position: "relative",
|
15243
15207
|
color: "currentColor",
|
15244
15208
|
strokeLinecap: "round",
|
15245
|
-
fontSize: "
|
15209
|
+
fontSize: "sm",
|
15246
15210
|
_disabled: {
|
15247
15211
|
...baseText("disabled", props)
|
15248
15212
|
}
|
@@ -15750,7 +15714,7 @@ var init_tabs = __esm({
|
|
15750
15714
|
sizes: {
|
15751
15715
|
xs: {
|
15752
15716
|
tablist: {
|
15753
|
-
height:
|
15717
|
+
height: 5,
|
15754
15718
|
padding: "2px"
|
15755
15719
|
},
|
15756
15720
|
tab: {
|
@@ -15760,7 +15724,7 @@ var init_tabs = __esm({
|
|
15760
15724
|
},
|
15761
15725
|
sm: {
|
15762
15726
|
tablist: {
|
15763
|
-
height:
|
15727
|
+
height: 6,
|
15764
15728
|
padding: 0.5
|
15765
15729
|
},
|
15766
15730
|
tab: {
|
@@ -15769,7 +15733,7 @@ var init_tabs = __esm({
|
|
15769
15733
|
},
|
15770
15734
|
md: {
|
15771
15735
|
tablist: {
|
15772
|
-
height:
|
15736
|
+
height: 7,
|
15773
15737
|
padding: 0.5
|
15774
15738
|
},
|
15775
15739
|
tab: {
|
@@ -15779,7 +15743,7 @@ var init_tabs = __esm({
|
|
15779
15743
|
},
|
15780
15744
|
lg: {
|
15781
15745
|
tablist: {
|
15782
|
-
height:
|
15746
|
+
height: 8,
|
15783
15747
|
padding: "4px"
|
15784
15748
|
},
|
15785
15749
|
tab: {
|
@@ -15959,6 +15923,7 @@ var init_pressable_card = __esm({
|
|
15959
15923
|
}
|
15960
15924
|
}),
|
15961
15925
|
accent: (props) => ({
|
15926
|
+
...accentText("default", props),
|
15962
15927
|
...accentBackground("default", props),
|
15963
15928
|
boxShadow: "sm",
|
15964
15929
|
_hover: {
|
package/dist/index.mjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, FullScreenDrawer, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, Nudge, NumericStepper, OrderedList, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, PressableCard, PrideProvider, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, TogglePride, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, VyLogoDefault, VyLogoPride, WizardNudge, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, slugify, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, usePride, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-
|
1
|
+
export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, FullScreenDrawer, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, Nudge, NumericStepper, OrderedList, Pagination, PasswordInput, PhoneNumberInput, PlayPauseButton, Portal, PressableCard, PrideProvider, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, StaticCard, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, TogglePride, Tooltip, Tr, TravelTag, UnorderedList, VStack, VyLogo, VyLogoDefault, VyLogoPride, WizardNudge, Wrap, WrapItem, brandTheme, createTexts, defineStyleConfig, extendTheme, fontFaces, slugify, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, usePride, useSize, useTheme, useToast, useToken, useTranslation } from './chunk-WCPDJEIZ.mjs';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vygruppen/spor-react",
|
3
|
-
"version": "9.11.
|
3
|
+
"version": "9.11.4",
|
4
4
|
"main": "./dist/index.js",
|
5
5
|
"module": "./dist/index.mjs",
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"@internationalized/date": "^3.0.1",
|
25
25
|
"@vygruppen/spor-design-tokens": ">3.6.0",
|
26
26
|
"@vygruppen/spor-icon-react": ">3.6.0",
|
27
|
-
"@vygruppen/spor-loader": ">0.3.
|
27
|
+
"@vygruppen/spor-loader": ">0.3.1",
|
28
28
|
"awesome-phonenumber": "^5.10.0",
|
29
29
|
"deepmerge": "^4.3.1",
|
30
30
|
"framer-motion": "^9.1.7",
|
@@ -64,27 +64,7 @@ export function CalendarCell({
|
|
64
64
|
}, []);
|
65
65
|
|
66
66
|
return (
|
67
|
-
<Box
|
68
|
-
as="td"
|
69
|
-
{...cellProps}
|
70
|
-
textAlign="center"
|
71
|
-
sx={{
|
72
|
-
'&[aria-selected="true"] + [aria-selected="true"] > button': {
|
73
|
-
"&::before": {
|
74
|
-
content: '""',
|
75
|
-
display: "block",
|
76
|
-
width: "100%",
|
77
|
-
height: "100%",
|
78
|
-
backgroundColor: "darkTeal",
|
79
|
-
position: "absolute",
|
80
|
-
left: "-50%",
|
81
|
-
top: 0,
|
82
|
-
bottom: 0,
|
83
|
-
zIndex: -1,
|
84
|
-
},
|
85
|
-
},
|
86
|
-
}}
|
87
|
-
>
|
67
|
+
<Box as="td" {...cellProps} textAlign="center" sx={styles.cell}>
|
88
68
|
<Box
|
89
69
|
as="button"
|
90
70
|
type="button"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Flex } from "@chakra-ui/react";
|
1
|
+
import { Box, Flex } from "@chakra-ui/react";
|
2
2
|
import { getLocalTimeZone } from "@internationalized/date";
|
3
3
|
import {
|
4
4
|
ArrowLeftOutline24Icon,
|
@@ -7,7 +7,6 @@ import {
|
|
7
7
|
import React from "react";
|
8
8
|
import { CalendarState, RangeCalendarState } from "react-stately";
|
9
9
|
import { createTexts, useTranslation } from "../i18n";
|
10
|
-
import { Heading } from "../typography";
|
11
10
|
import { CalendarNavigationButton } from "./CalendarNavigationButton";
|
12
11
|
import { useCurrentLocale } from "./utils";
|
13
12
|
|
@@ -105,16 +104,15 @@ export const CalendarNavigator = ({
|
|
105
104
|
icon={<ArrowLeftOutline24Icon />}
|
106
105
|
aria-label={`${t(texts.previous)} ${t(texts[unit])}`}
|
107
106
|
/>
|
108
|
-
<
|
109
|
-
as="div"
|
107
|
+
<Box
|
110
108
|
role="heading"
|
111
|
-
|
109
|
+
fontSize="sm"
|
112
110
|
fontWeight="bold"
|
113
111
|
flex="1"
|
114
112
|
textAlign="center"
|
115
113
|
>
|
116
114
|
{capitalize(title)}
|
117
|
-
</
|
115
|
+
</Box>
|
118
116
|
<CalendarNavigationButton
|
119
117
|
onPress={onNext}
|
120
118
|
isDisabled={isNextDisabled}
|
@@ -7,7 +7,7 @@ import {
|
|
7
7
|
ResponsiveValue,
|
8
8
|
} from "@chakra-ui/react";
|
9
9
|
import { CalendarOutline24Icon } from "@vygruppen/spor-icon-react";
|
10
|
-
import React
|
10
|
+
import React from "react";
|
11
11
|
import { AriaButtonProps } from "react-aria";
|
12
12
|
import { createTexts, useTranslation } from "..";
|
13
13
|
|
@@ -42,10 +42,6 @@ export const DateTimeSegment = forwardRef<HTMLDivElement, DateTimeSegmentProps>(
|
|
42
42
|
borderRadius="xs"
|
43
43
|
fontSize={["mobile.sm", "desktop.sm"]}
|
44
44
|
sx={styles.dateTimeSegment}
|
45
|
-
_focus={{
|
46
|
-
backgroundColor: "darkTeal",
|
47
|
-
color: "white",
|
48
|
-
}}
|
49
45
|
>
|
50
46
|
{isPaddable(segment.type)
|
51
47
|
? segment.text.padStart(2, "0")
|
package/src/input/Radio.tsx
CHANGED
@@ -1,44 +1,12 @@
|
|
1
1
|
import { breadcrumbAnatomy as parts } from "@chakra-ui/anatomy";
|
2
|
-
import {
|
3
|
-
createMultiStyleConfigHelpers,
|
4
|
-
defineStyle,
|
5
|
-
} from "@chakra-ui/styled-system";
|
6
|
-
import { mode } from "@chakra-ui/theme-tools";
|
2
|
+
import { createMultiStyleConfigHelpers } from "@chakra-ui/styled-system";
|
7
3
|
import { baseBackground, baseBorder } from "../utils/base-utils";
|
8
4
|
import { focusVisibleStyles } from "../utils/focus-utils";
|
5
|
+
import { ghostBackground } from "../utils/ghost-utils";
|
9
6
|
|
10
7
|
const { defineMultiStyleConfig, definePartsStyle } =
|
11
8
|
createMultiStyleConfigHelpers(parts.keys);
|
12
9
|
|
13
|
-
const baseStyleLink = defineStyle((props) => ({
|
14
|
-
transitionProperty: "common",
|
15
|
-
transitionDuration: "fast",
|
16
|
-
transitionTimingFunction: "ease-out",
|
17
|
-
color: "inherit",
|
18
|
-
textDecoration: "none",
|
19
|
-
textStyle: "xs",
|
20
|
-
paddingX: 0.5,
|
21
|
-
borderRadius: "xs",
|
22
|
-
"&:not([aria-current=page])": {
|
23
|
-
cursor: "pointer",
|
24
|
-
_hover: {
|
25
|
-
...baseBackground("hover", props),
|
26
|
-
},
|
27
|
-
_active: {
|
28
|
-
...baseBackground("active", props),
|
29
|
-
},
|
30
|
-
...focusVisibleStyles(props),
|
31
|
-
},
|
32
|
-
}));
|
33
|
-
|
34
|
-
const baseStyle = definePartsStyle((props) => ({
|
35
|
-
link: baseStyleLink(props),
|
36
|
-
list: {
|
37
|
-
flexWrap: "wrap",
|
38
|
-
alignItems: "flex-start",
|
39
|
-
},
|
40
|
-
}));
|
41
|
-
|
42
10
|
export default defineMultiStyleConfig({
|
43
11
|
baseStyle: definePartsStyle((props) => ({
|
44
12
|
link: {
|
@@ -77,16 +45,10 @@ export default defineMultiStyleConfig({
|
|
77
45
|
link: {
|
78
46
|
"&:not([aria-current=page])": {
|
79
47
|
_hover: {
|
80
|
-
|
81
|
-
"ghost.surface.hover.light",
|
82
|
-
"ghost.surface.hover.dark",
|
83
|
-
)(props),
|
48
|
+
...ghostBackground("hover", props),
|
84
49
|
},
|
85
50
|
_active: {
|
86
|
-
|
87
|
-
"ghost.surface.active.light",
|
88
|
-
"ghost.surface.active.dark",
|
89
|
-
)(props),
|
51
|
+
...ghostBackground("active", props),
|
90
52
|
},
|
91
53
|
},
|
92
54
|
},
|