@vygruppen/spor-react 9.9.0 → 9.10.1
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 +18 -0
- package/dist/{CountryCodeSelect-U25NF65N.mjs → CountryCodeSelect-CO6P2KH4.mjs} +1 -1
- package/dist/{chunk-TEDOVPXZ.mjs → chunk-QOPSLFKS.mjs} +178 -180
- package/dist/index.d.mts +165 -74
- package/dist/index.d.ts +165 -74
- package/dist/index.js +2598 -2604
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/layout/RadioCard.tsx +44 -35
- package/src/layout/RadioCardGroup.tsx +9 -5
- package/src/media-controller/JumpButton.tsx +6 -3
- package/src/media-controller/PlayPauseButton.tsx +6 -3
- package/src/media-controller/SkipButton.tsx +6 -3
- package/src/theme/components/media-controller-button.ts +20 -11
- package/src/theme/components/pressable-card.ts +4 -1
- package/src/theme/components/radio-card.ts +79 -40
- package/src/theme/components/static-card.ts +4 -2
- package/src/theme/utils/base-utils.ts +5 -2
- package/src/theme/utils/outline-utils.ts +26 -0
- package/src/theme/utils/types.ts +3 -1
- package/src/media-controller/icons.tsx +0 -80
package/dist/index.d.ts
CHANGED
@@ -65,13 +65,8 @@ type StackProps = Exclude<StackProps$1, "direction"> & {
|
|
65
65
|
*/
|
66
66
|
declare const Stack: _chakra_ui_system_dist_system_types.ComponentWithAs<"div", StackProps>;
|
67
67
|
|
68
|
-
type RadioCardProps = UseRadioProps & BoxProps & {
|
69
|
-
children: React.ReactNode;
|
70
|
-
/** Defaults to "base" */
|
71
|
-
variant: "floating" | "base";
|
72
|
-
};
|
73
68
|
/**
|
74
|
-
*
|
69
|
+
* Radio cards are used to present a set of options where only one option can be selected.
|
75
70
|
*
|
76
71
|
* The most basic version looks like this:
|
77
72
|
*
|
@@ -81,6 +76,14 @@ type RadioCardProps = UseRadioProps & BoxProps & {
|
|
81
76
|
* </RadioCard>
|
82
77
|
* ```
|
83
78
|
*
|
79
|
+
* In order to use RadioCard outside a RadioCardGroup, you need to pass the `isChecked` and `onChange` props.
|
80
|
+
*
|
81
|
+
* ```tsx
|
82
|
+
* <RadioCard isChecked={true} onChange={(e) => console.log(e.target.value)}>
|
83
|
+
* Content
|
84
|
+
* </RadioCard>
|
85
|
+
* ```
|
86
|
+
*
|
84
87
|
* In order to use RadioCard, you typically want to place these components in a group with several other RadioCards.
|
85
88
|
*
|
86
89
|
* ```tsx
|
@@ -112,6 +115,15 @@ type RadioCardProps = UseRadioProps & BoxProps & {
|
|
112
115
|
* </RadioCard>
|
113
116
|
* ```
|
114
117
|
*/
|
118
|
+
type RadioCardProps = UseRadioProps & BoxProps & {
|
119
|
+
children: React.ReactNode;
|
120
|
+
/** Defaults to "base" */
|
121
|
+
variant?: "floating" | "base";
|
122
|
+
/** Needs to be defined if RadioCard is used outside RadioCardGroup */
|
123
|
+
isChecked?: boolean;
|
124
|
+
/** Needs to be defined if RadioCard is used outside RadioCardGroup */
|
125
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
126
|
+
};
|
115
127
|
declare const RadioCard: _chakra_ui_system_dist_system_types.ComponentWithAs<"div", RadioCardProps>;
|
116
128
|
|
117
129
|
type RadioCardGroupProps = RadioGroupProps$1 & {
|
@@ -5463,31 +5475,40 @@ declare const theme: {
|
|
5463
5475
|
};
|
5464
5476
|
}) | undefined;
|
5465
5477
|
sizes?: {
|
5466
|
-
sm: {
|
5478
|
+
sm: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5467
5479
|
container: {
|
5468
5480
|
fontSize: number;
|
5481
|
+
width: string | undefined;
|
5482
|
+
height: string | undefined;
|
5469
5483
|
};
|
5470
5484
|
};
|
5471
|
-
lg: {
|
5485
|
+
lg: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5472
5486
|
container: {
|
5473
5487
|
fontSize: number;
|
5488
|
+
width: string | undefined;
|
5489
|
+
height: string | undefined;
|
5474
5490
|
};
|
5475
5491
|
};
|
5476
5492
|
} | undefined;
|
5477
5493
|
variants?: {
|
5478
5494
|
play: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5479
5495
|
container: {
|
5480
|
-
padding: number;
|
5481
5496
|
_hover: {
|
5497
|
+
backgroundColor: string;
|
5482
5498
|
color: string;
|
5483
5499
|
};
|
5484
5500
|
_active: {
|
5501
|
+
backgroundColor: string;
|
5485
5502
|
color: string;
|
5486
5503
|
};
|
5487
5504
|
_disabled: {
|
5505
|
+
backgroundColor: string;
|
5488
5506
|
pointerEvents: string;
|
5489
5507
|
color: string;
|
5490
5508
|
};
|
5509
|
+
backgroundColor: string;
|
5510
|
+
color: string;
|
5511
|
+
padding: number;
|
5491
5512
|
};
|
5492
5513
|
};
|
5493
5514
|
jumpSkip: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
@@ -5893,105 +5914,168 @@ declare const theme: {
|
|
5893
5914
|
};
|
5894
5915
|
RadioCard: {
|
5895
5916
|
baseStyle?: ((props: any) => {
|
5896
|
-
|
5897
|
-
|
5898
|
-
|
5899
|
-
|
5900
|
-
|
5901
|
-
outline: string;
|
5902
|
-
outlineColor: string;
|
5903
|
-
};
|
5904
|
-
_disabled: {
|
5905
|
-
color: string;
|
5906
|
-
outlineWidth: string;
|
5907
|
-
outlineColor: string;
|
5908
|
-
outlineStyle: string;
|
5909
|
-
outlineOffset: string;
|
5910
|
-
backgroundColor: string;
|
5911
|
-
pointerEvents: string;
|
5912
|
-
} | {
|
5913
|
-
color: string;
|
5914
|
-
outline: string;
|
5915
|
-
outlineColor: string;
|
5916
|
-
backgroundColor: string;
|
5917
|
-
pointerEvents: string;
|
5918
|
-
};
|
5919
|
-
_focusVisible: {
|
5920
|
-
outlineWidth: string;
|
5921
|
-
outlineColor: string;
|
5922
|
-
outlineStyle: string;
|
5923
|
-
outlineOffset: string;
|
5924
|
-
};
|
5925
|
-
appearance: string;
|
5926
|
-
border: string;
|
5927
|
-
overflow: string;
|
5928
|
-
fontSize: string;
|
5929
|
-
display: string;
|
5930
|
-
borderRadius: string;
|
5931
|
-
}) | undefined;
|
5932
|
-
sizes?: {
|
5933
|
-
[key: string]: _chakra_ui_styled_system.SystemStyleInterpolation;
|
5934
|
-
} | undefined;
|
5935
|
-
variants?: {
|
5936
|
-
base: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5937
|
-
_hover: {
|
5917
|
+
container: {
|
5918
|
+
transitionProperty: string;
|
5919
|
+
transitionDuration: string;
|
5920
|
+
_disabled: {
|
5921
|
+
color: string;
|
5938
5922
|
outlineWidth: string;
|
5939
5923
|
outlineColor: string;
|
5940
5924
|
outlineStyle: string;
|
5941
5925
|
outlineOffset: string;
|
5942
5926
|
backgroundColor: string;
|
5927
|
+
pointerEvents: string;
|
5943
5928
|
} | {
|
5929
|
+
color: string;
|
5944
5930
|
outline: string;
|
5945
5931
|
outlineColor: string;
|
5946
5932
|
backgroundColor: string;
|
5933
|
+
pointerEvents: string;
|
5947
5934
|
};
|
5948
|
-
|
5949
|
-
|
5935
|
+
_focusVisible: {
|
5936
|
+
outlineWidth: string;
|
5937
|
+
outlineColor: string;
|
5938
|
+
outlineStyle: string;
|
5939
|
+
outlineOffset: string;
|
5950
5940
|
};
|
5951
|
-
|
5952
|
-
|
5953
|
-
|
5954
|
-
|
5941
|
+
appearance: string;
|
5942
|
+
border: string;
|
5943
|
+
overflow: string;
|
5944
|
+
fontSize: string;
|
5945
|
+
display: string;
|
5946
|
+
cursor: string;
|
5947
|
+
borderRadius: string;
|
5948
|
+
};
|
5949
|
+
checked: {
|
5955
5950
|
backgroundColor: string;
|
5956
|
-
|
5957
|
-
|
5951
|
+
outlineColor: string;
|
5952
|
+
outline: string;
|
5953
|
+
};
|
5954
|
+
radioInput: {
|
5955
|
+
appearance: string;
|
5956
|
+
position: string;
|
5957
|
+
opacity: number;
|
5958
|
+
zIndex: number;
|
5959
|
+
};
|
5960
|
+
}) | undefined;
|
5961
|
+
sizes?: {
|
5962
|
+
[key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
|
5963
|
+
keys: ("container" | "checked" | "radioInput")[];
|
5964
|
+
}>;
|
5965
|
+
} | undefined;
|
5966
|
+
variants?: {
|
5967
|
+
base: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5968
|
+
container: {
|
5969
|
+
_hover: {
|
5970
|
+
outlineWidth: string;
|
5971
|
+
outlineColor: string;
|
5972
|
+
outlineStyle: string;
|
5973
|
+
outlineOffset: string;
|
5974
|
+
backgroundColor: string;
|
5975
|
+
} | {
|
5976
|
+
outline: string;
|
5977
|
+
outlineColor: string;
|
5978
|
+
backgroundColor: string;
|
5979
|
+
};
|
5980
|
+
_active: {
|
5981
|
+
outlineWidth: string;
|
5982
|
+
outlineColor: string;
|
5983
|
+
outlineStyle: string;
|
5984
|
+
outlineOffset: string;
|
5985
|
+
backgroundColor: string;
|
5986
|
+
} | {
|
5987
|
+
outline: string;
|
5988
|
+
outlineColor: string;
|
5989
|
+
backgroundColor: string;
|
5990
|
+
};
|
5958
5991
|
outlineWidth: string;
|
5959
5992
|
outlineColor: string;
|
5960
5993
|
outlineStyle: string;
|
5961
5994
|
outlineOffset: string;
|
5962
5995
|
backgroundColor: string;
|
5996
|
+
color: string;
|
5963
5997
|
} | {
|
5998
|
+
_hover: {
|
5999
|
+
outlineWidth: string;
|
6000
|
+
outlineColor: string;
|
6001
|
+
outlineStyle: string;
|
6002
|
+
outlineOffset: string;
|
6003
|
+
backgroundColor: string;
|
6004
|
+
} | {
|
6005
|
+
outline: string;
|
6006
|
+
outlineColor: string;
|
6007
|
+
backgroundColor: string;
|
6008
|
+
};
|
6009
|
+
_active: {
|
6010
|
+
outlineWidth: string;
|
6011
|
+
outlineColor: string;
|
6012
|
+
outlineStyle: string;
|
6013
|
+
outlineOffset: string;
|
6014
|
+
backgroundColor: string;
|
6015
|
+
} | {
|
6016
|
+
outline: string;
|
6017
|
+
outlineColor: string;
|
6018
|
+
backgroundColor: string;
|
6019
|
+
};
|
5964
6020
|
outline: string;
|
5965
6021
|
outlineColor: string;
|
5966
6022
|
backgroundColor: string;
|
6023
|
+
color: string;
|
5967
6024
|
};
|
5968
|
-
|
5969
|
-
|
6025
|
+
checked: {
|
6026
|
+
_hover: {
|
6027
|
+
outlineWidth: string;
|
6028
|
+
outlineColor: string;
|
6029
|
+
outlineStyle: string;
|
6030
|
+
outlineOffset: string;
|
6031
|
+
} | {
|
6032
|
+
outline: string;
|
6033
|
+
outlineColor: string;
|
6034
|
+
};
|
6035
|
+
_active: {
|
6036
|
+
outlineWidth: string;
|
6037
|
+
outlineColor: string;
|
6038
|
+
outlineStyle: string;
|
6039
|
+
outlineOffset: string;
|
6040
|
+
backgroundColor: string;
|
6041
|
+
} | {
|
6042
|
+
outline: string;
|
6043
|
+
outlineColor: string;
|
6044
|
+
backgroundColor: string;
|
6045
|
+
};
|
5970
6046
|
};
|
5971
|
-
outline: string;
|
5972
|
-
outlineColor: string;
|
5973
|
-
backgroundColor: string;
|
5974
6047
|
};
|
5975
6048
|
floating: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
5976
|
-
|
5977
|
-
_hover: {
|
6049
|
+
container: {
|
5978
6050
|
boxShadow: string;
|
6051
|
+
_hover: {
|
6052
|
+
boxShadow: string;
|
6053
|
+
outline: string;
|
6054
|
+
outlineColor: string;
|
6055
|
+
backgroundColor: string;
|
6056
|
+
};
|
6057
|
+
_active: {
|
6058
|
+
outline: string;
|
6059
|
+
outlineColor: string;
|
6060
|
+
backgroundColor: string;
|
6061
|
+
};
|
5979
6062
|
outline: string;
|
5980
6063
|
outlineColor: string;
|
5981
6064
|
backgroundColor: string;
|
6065
|
+
color: string;
|
5982
6066
|
};
|
5983
|
-
|
5984
|
-
|
5985
|
-
outlineColor: string;
|
5986
|
-
backgroundColor: string;
|
5987
|
-
};
|
5988
|
-
_checked: {
|
6067
|
+
checked: {
|
6068
|
+
cursor: string;
|
5989
6069
|
_hover: {
|
5990
6070
|
outline: string;
|
5991
6071
|
outlineColor: string;
|
5992
6072
|
};
|
6073
|
+
_active: {
|
6074
|
+
outline: string;
|
6075
|
+
outlineColor: string;
|
6076
|
+
backgroundColor: string;
|
6077
|
+
};
|
5993
6078
|
};
|
5994
|
-
backgroundColor: string;
|
5995
6079
|
};
|
5996
6080
|
} | undefined;
|
5997
6081
|
defaultProps?: {
|
@@ -5999,6 +6083,7 @@ declare const theme: {
|
|
5999
6083
|
variant?: "base" | "floating" | undefined;
|
6000
6084
|
colorScheme?: string | undefined;
|
6001
6085
|
} | undefined;
|
6086
|
+
parts: ("container" | "checked" | "radioInput")[];
|
6002
6087
|
};
|
6003
6088
|
Radio: {
|
6004
6089
|
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
@@ -7212,7 +7297,7 @@ declare const theme: {
|
|
7212
7297
|
display: string;
|
7213
7298
|
borderRadius: string;
|
7214
7299
|
} | {
|
7215
|
-
backgroundColor:
|
7300
|
+
backgroundColor: string;
|
7216
7301
|
_focusVisible: {
|
7217
7302
|
outlineWidth: string;
|
7218
7303
|
outlineColor: string;
|
@@ -7304,6 +7389,7 @@ declare const theme: {
|
|
7304
7389
|
outlineColor: string;
|
7305
7390
|
outlineStyle: string;
|
7306
7391
|
outlineOffset: string;
|
7392
|
+
cursor: string;
|
7307
7393
|
} | {
|
7308
7394
|
_hover: {
|
7309
7395
|
outlineWidth: string;
|
@@ -7327,6 +7413,7 @@ declare const theme: {
|
|
7327
7413
|
};
|
7328
7414
|
outline: string;
|
7329
7415
|
outlineColor: string;
|
7416
|
+
cursor: string;
|
7330
7417
|
};
|
7331
7418
|
accent: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
7332
7419
|
boxShadow: string;
|
@@ -7351,7 +7438,11 @@ declare const theme: {
|
|
7351
7438
|
_active: {
|
7352
7439
|
boxShadow: string;
|
7353
7440
|
backgroundColor: string;
|
7441
|
+
outline: string;
|
7442
|
+
outlineColor: string;
|
7354
7443
|
};
|
7444
|
+
outline: string;
|
7445
|
+
outlineColor: string;
|
7355
7446
|
backgroundColor: string;
|
7356
7447
|
};
|
7357
7448
|
} | undefined;
|