@vygruppen/spor-react 9.13.0 → 9.13.2
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 +13 -0
- package/dist/{CountryCodeSelect-MMRSNFMQ.mjs → CountryCodeSelect-QPCMMHSU.mjs} +1 -1
- package/dist/{chunk-KJYJYQBK.mjs → chunk-UOSLFTBE.mjs} +111 -77
- package/dist/index.d.mts +71 -48
- package/dist/index.d.ts +71 -48
- package/dist/index.js +110 -77
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/layout/RadioCard.tsx +45 -31
- package/src/layout/RadioCardGroup.tsx +5 -9
- package/src/modal/FullScreenDrawer.tsx +5 -1
- package/src/modal/SimpleDrawer.tsx +8 -1
- package/src/theme/components/radio-card.ts +41 -21
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@9.13.
|
2
|
+
> @vygruppen/spor-react@9.13.2 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -10,11 +10,11 @@
|
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
12
|
[32mESM[39m [1mdist/index.mjs [22m[32m2.19 KB[39m
|
13
|
-
[32mESM[39m [1mdist/CountryCodeSelect-
|
14
|
-
[32mESM[39m [1mdist/chunk-
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
16
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
17
|
-
[32mCJS[39m ⚡️ Build success in
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
13
|
+
[32mESM[39m [1mdist/CountryCodeSelect-QPCMMHSU.mjs [22m[32m1.19 KB[39m
|
14
|
+
[32mESM[39m [1mdist/chunk-UOSLFTBE.mjs [22m[32m414.14 KB[39m
|
15
|
+
[32mESM[39m ⚡️ Build success in 2239ms
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m527.19 KB[39m
|
17
|
+
[32mCJS[39m ⚡️ Build success in 2239ms
|
18
|
+
[32mDTS[39m ⚡️ Build success in 15663ms
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m344.57 KB[39m
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m344.57 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 9.13.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 59c1cc8: RadioCard: Fix accessibility features
|
8
|
+
- 4aa7c96: Added body prop for FullScreenDrawer and SimpleDrawer for accessability reasons
|
9
|
+
|
10
|
+
## 9.13.1
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- 366d1f9: Adds onChange and fixes bug on RadioCard
|
15
|
+
|
3
16
|
## 9.13.0
|
4
17
|
|
5
18
|
### Minor Changes
|
@@ -1758,7 +1758,7 @@ var texts4 = createTexts({
|
|
1758
1758
|
sv: "Landskod"
|
1759
1759
|
}
|
1760
1760
|
});
|
1761
|
-
var LazyCountryCodeSelect = React87__default.lazy(() => import('./CountryCodeSelect-
|
1761
|
+
var LazyCountryCodeSelect = React87__default.lazy(() => import('./CountryCodeSelect-QPCMMHSU.mjs'));
|
1762
1762
|
var Radio = forwardRef((props, ref) => {
|
1763
1763
|
return /* @__PURE__ */ React87__default.createElement(Radio$1, { ...props, ref });
|
1764
1764
|
});
|
@@ -1902,6 +1902,7 @@ var RadioCardGroup = ({
|
|
1902
1902
|
direction: direction2 = "row",
|
1903
1903
|
groupLabel,
|
1904
1904
|
defaultValue,
|
1905
|
+
onChange,
|
1905
1906
|
...props
|
1906
1907
|
}) => {
|
1907
1908
|
const [selectedValue, setSelectedValue] = useState(
|
@@ -1909,6 +1910,7 @@ var RadioCardGroup = ({
|
|
1909
1910
|
);
|
1910
1911
|
const handleChange = (value) => {
|
1911
1912
|
setSelectedValue(value);
|
1913
|
+
onChange && onChange(value);
|
1912
1914
|
};
|
1913
1915
|
return /* @__PURE__ */ React87__default.createElement(
|
1914
1916
|
RadioCardGroupContext.Provider,
|
@@ -1921,25 +1923,13 @@ var RadioCardGroup = ({
|
|
1921
1923
|
defaultValue: defaultValue || ""
|
1922
1924
|
}
|
1923
1925
|
},
|
1924
|
-
/* @__PURE__ */ React87__default.createElement(
|
1925
|
-
Stack$1,
|
1926
|
-
{
|
1927
|
-
as: "fieldset",
|
1928
|
-
direction: direction2,
|
1929
|
-
"aria-labelledby": groupLabel || name,
|
1930
|
-
role: "radiogroup",
|
1931
|
-
tabIndex: 0,
|
1932
|
-
...props
|
1933
|
-
},
|
1934
|
-
groupLabel && /* @__PURE__ */ React87__default.createElement(FormLabel, { as: "legend", id: groupLabel }, groupLabel),
|
1935
|
-
children
|
1936
|
-
)
|
1926
|
+
/* @__PURE__ */ React87__default.createElement(Stack$1, { as: "fieldset", direction: direction2, ...props }, groupLabel && /* @__PURE__ */ React87__default.createElement(FormLabel, { as: "legend", id: groupLabel }, groupLabel), children)
|
1937
1927
|
);
|
1938
1928
|
};
|
1939
1929
|
|
1940
1930
|
// src/layout/RadioCard.tsx
|
1941
1931
|
var RadioCard = forwardRef(
|
1942
|
-
({ children, value
|
1932
|
+
({ children, value, isDisabled, ...props }, ref) => {
|
1943
1933
|
const context = useContext(RadioCardGroupContext);
|
1944
1934
|
if (!context) {
|
1945
1935
|
throw new Error(
|
@@ -1948,50 +1938,72 @@ var RadioCard = forwardRef(
|
|
1948
1938
|
}
|
1949
1939
|
const { name, selectedValue, onChange, variant } = context;
|
1950
1940
|
const styles3 = useMultiStyleConfig("RadioCard", { variant });
|
1941
|
+
const [isKeyboardUser, setKeyboardUser] = useState(false);
|
1942
|
+
const [isFocused, setFocus] = useState(false);
|
1951
1943
|
const isChecked = selectedValue === value;
|
1952
|
-
const radioCardId = `radio-card-${useId()}`;
|
1953
1944
|
useEffect(() => {
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
}
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
1971
|
-
|
1972
|
-
|
1973
|
-
|
1974
|
-
name,
|
1975
|
-
checked: isChecked,
|
1976
|
-
onChange: () => onChange(value),
|
1977
|
-
disabled: isDisabled,
|
1978
|
-
__css: styles3.radioInput
|
1945
|
+
const handleMouseDown = () => setKeyboardUser(false);
|
1946
|
+
const handleKeyDown = (event) => {
|
1947
|
+
if (event.key === " ") {
|
1948
|
+
setFocus(false);
|
1949
|
+
} else {
|
1950
|
+
setKeyboardUser(true);
|
1951
|
+
}
|
1952
|
+
};
|
1953
|
+
window.addEventListener("mousedown", handleMouseDown);
|
1954
|
+
window.addEventListener("keydown", handleKeyDown);
|
1955
|
+
return () => {
|
1956
|
+
window.removeEventListener("mousedown", handleMouseDown);
|
1957
|
+
window.removeEventListener("keydown", handleKeyDown);
|
1958
|
+
};
|
1959
|
+
}, []);
|
1960
|
+
useEffect(() => {
|
1961
|
+
if (isKeyboardUser && isChecked) {
|
1962
|
+
setFocus(true);
|
1963
|
+
} else {
|
1964
|
+
setFocus(false);
|
1979
1965
|
}
|
1980
|
-
|
1966
|
+
}, [isKeyboardUser, isChecked]);
|
1967
|
+
const inputId = `radio-card-${useId()}`;
|
1968
|
+
return /* @__PURE__ */ React87__default.createElement(
|
1981
1969
|
Box,
|
1982
1970
|
{
|
1983
|
-
|
1984
|
-
|
1985
|
-
ref,
|
1986
|
-
role: "radio",
|
1987
|
-
"aria-checked": isChecked,
|
1988
|
-
"aria-labelledby": radioCardId,
|
1989
|
-
__css: { ...styles3.container, ...isChecked && styles3.checked },
|
1990
|
-
"data-checked": isChecked,
|
1991
|
-
"data-disabled": isDisabled
|
1971
|
+
onFocus: () => isKeyboardUser && setFocus(true),
|
1972
|
+
onBlur: () => setFocus(false)
|
1992
1973
|
},
|
1993
|
-
|
1994
|
-
|
1974
|
+
/* @__PURE__ */ React87__default.createElement(
|
1975
|
+
chakra.input,
|
1976
|
+
{
|
1977
|
+
type: "radio",
|
1978
|
+
id: inputId,
|
1979
|
+
name,
|
1980
|
+
ref,
|
1981
|
+
checked: isChecked,
|
1982
|
+
onChange: () => onChange(value),
|
1983
|
+
disabled: isDisabled,
|
1984
|
+
__css: styles3.radioInput
|
1985
|
+
}
|
1986
|
+
),
|
1987
|
+
/* @__PURE__ */ React87__default.createElement(
|
1988
|
+
Box,
|
1989
|
+
{
|
1990
|
+
as: "label",
|
1991
|
+
name,
|
1992
|
+
htmlFor: inputId,
|
1993
|
+
"aria-checked": isChecked,
|
1994
|
+
"data-checked": isChecked,
|
1995
|
+
"data-disabled": isDisabled,
|
1996
|
+
...props,
|
1997
|
+
__css: {
|
1998
|
+
...styles3.container,
|
1999
|
+
...isChecked && styles3.checked,
|
2000
|
+
...isFocused && !isChecked && styles3.focused,
|
2001
|
+
...isChecked && isFocused && styles3.focusedChecked
|
2002
|
+
}
|
2003
|
+
},
|
2004
|
+
children
|
2005
|
+
)
|
2006
|
+
);
|
1995
2007
|
}
|
1996
2008
|
);
|
1997
2009
|
var StaticCard = forwardRef(
|
@@ -4361,7 +4373,8 @@ var FullScreenDrawer = ({
|
|
4361
4373
|
leftButton = null,
|
4362
4374
|
rightButton = /* @__PURE__ */ React87__default.createElement(DrawerCloseButton2, null),
|
4363
4375
|
isOpen,
|
4364
|
-
onClose
|
4376
|
+
onClose,
|
4377
|
+
body
|
4365
4378
|
}) => {
|
4366
4379
|
const [isContentBoxScrolled, setContentBoxScrolled] = useState(false);
|
4367
4380
|
const onContentScroll = (e) => {
|
@@ -4392,7 +4405,7 @@ var FullScreenDrawer = ({
|
|
4392
4405
|
rightButton
|
4393
4406
|
}
|
4394
4407
|
),
|
4395
|
-
/* @__PURE__ */ React87__default.createElement(DrawerBody, { overflow: "auto", onScroll: onContentScroll }, children)
|
4408
|
+
/* @__PURE__ */ React87__default.createElement(DrawerBody, { overflow: "auto", onScroll: onContentScroll, ...body }, children)
|
4396
4409
|
));
|
4397
4410
|
};
|
4398
4411
|
var DrawerTopMenu = ({
|
@@ -4477,9 +4490,10 @@ var SimpleDrawer = ({
|
|
4477
4490
|
placement,
|
4478
4491
|
children,
|
4479
4492
|
title,
|
4493
|
+
body,
|
4480
4494
|
...props
|
4481
4495
|
}) => {
|
4482
|
-
return /* @__PURE__ */ React87__default.createElement(Drawer, { placement, ...props }, /* @__PURE__ */ React87__default.createElement(DrawerOverlay, null), /* @__PURE__ */ React87__default.createElement(DrawerContent, null, /* @__PURE__ */ React87__default.createElement(DrawerCloseButton, null), title && /* @__PURE__ */ React87__default.createElement(ModalHeader, null, title), /* @__PURE__ */ React87__default.createElement(DrawerBody,
|
4496
|
+
return /* @__PURE__ */ React87__default.createElement(Drawer, { placement, ...props }, /* @__PURE__ */ React87__default.createElement(DrawerOverlay, null), /* @__PURE__ */ React87__default.createElement(DrawerContent, null, /* @__PURE__ */ React87__default.createElement(DrawerCloseButton, null), title && /* @__PURE__ */ React87__default.createElement(ModalHeader, null, title), /* @__PURE__ */ React87__default.createElement(DrawerBody, { ...body }, children)));
|
4483
4497
|
};
|
4484
4498
|
var EXPIRATION_DELAY = 1e3 * 60 * 60 * 24 * 30;
|
4485
4499
|
var Nudge = ({
|
@@ -13267,18 +13281,22 @@ function outlineBorder(state2, props) {
|
|
13267
13281
|
}
|
13268
13282
|
|
13269
13283
|
// src/theme/components/radio-card.ts
|
13270
|
-
var parts17 = anatomy$1("radio-card").parts(
|
13284
|
+
var parts17 = anatomy$1("radio-card").parts(
|
13285
|
+
"container",
|
13286
|
+
"checked",
|
13287
|
+
"radioInput",
|
13288
|
+
"focused",
|
13289
|
+
"focusedChecked"
|
13290
|
+
);
|
13271
13291
|
var helpers24 = createMultiStyleConfigHelpers$1(parts17.keys);
|
13272
13292
|
var config33 = helpers24.defineMultiStyleConfig({
|
13273
13293
|
baseStyle: (props) => ({
|
13274
13294
|
container: {
|
13275
|
-
border: "none",
|
13276
13295
|
overflow: "hidden",
|
13277
13296
|
fontSize: "inherit",
|
13278
13297
|
display: "block",
|
13279
13298
|
cursor: "pointer",
|
13280
13299
|
borderRadius: "sm",
|
13281
|
-
...focusVisibleStyles(props),
|
13282
13300
|
transitionProperty: "common",
|
13283
13301
|
transitionDuration: "fast",
|
13284
13302
|
_disabled: {
|
@@ -13313,9 +13331,6 @@ var config33 = helpers24.defineMultiStyleConfig({
|
|
13313
13331
|
_active: {
|
13314
13332
|
...baseBackground("active", props),
|
13315
13333
|
...baseBorder("active", props)
|
13316
|
-
},
|
13317
|
-
_focus: {
|
13318
|
-
...outlineBorder("focus", props)
|
13319
13334
|
}
|
13320
13335
|
},
|
13321
13336
|
checked: {
|
@@ -13325,12 +13340,23 @@ var config33 = helpers24.defineMultiStyleConfig({
|
|
13325
13340
|
_active: {
|
13326
13341
|
...baseBackground("active", props),
|
13327
13342
|
...baseBorder("active", props)
|
13328
|
-
}
|
13329
|
-
|
13330
|
-
|
13331
|
-
|
13332
|
-
|
13333
|
-
|
13343
|
+
}
|
13344
|
+
},
|
13345
|
+
focusedChecked: {
|
13346
|
+
outline: "4px solid",
|
13347
|
+
outlineStyle: "double",
|
13348
|
+
...outlineBorder("focus", props),
|
13349
|
+
outlineOffset: "-1px"
|
13350
|
+
},
|
13351
|
+
focused: {
|
13352
|
+
outline: "2px solid",
|
13353
|
+
...outlineBorder("focus", props),
|
13354
|
+
outlineOffset: "1px",
|
13355
|
+
boxShadow: `inset 0 0 0 1px rgba(0, 0, 0, 0.40)`,
|
13356
|
+
_hover: {
|
13357
|
+
...baseBorder("hover", props),
|
13358
|
+
boxShadow: "none",
|
13359
|
+
outlineOffset: "0px"
|
13334
13360
|
}
|
13335
13361
|
}
|
13336
13362
|
}),
|
@@ -13347,9 +13373,6 @@ var config33 = helpers24.defineMultiStyleConfig({
|
|
13347
13373
|
_active: {
|
13348
13374
|
...floatingBackground("active", props),
|
13349
13375
|
...floatingBorder("active", props)
|
13350
|
-
},
|
13351
|
-
_focus: {
|
13352
|
-
...outlineBorder("focus", props)
|
13353
13376
|
}
|
13354
13377
|
},
|
13355
13378
|
checked: {
|
@@ -13360,12 +13383,23 @@ var config33 = helpers24.defineMultiStyleConfig({
|
|
13360
13383
|
_active: {
|
13361
13384
|
...floatingBackground("active", props),
|
13362
13385
|
...floatingBorder("active", props)
|
13363
|
-
}
|
13364
|
-
|
13365
|
-
|
13366
|
-
|
13367
|
-
|
13368
|
-
|
13386
|
+
}
|
13387
|
+
},
|
13388
|
+
focusedChecked: {
|
13389
|
+
outline: "4px solid",
|
13390
|
+
outlineStyle: "double",
|
13391
|
+
...outlineBorder("focus", props),
|
13392
|
+
outlineOffset: "-1px"
|
13393
|
+
},
|
13394
|
+
focused: {
|
13395
|
+
outline: "2px solid",
|
13396
|
+
...outlineBorder("focus", props),
|
13397
|
+
outlineOffset: "1px",
|
13398
|
+
boxShadow: `inset 0 0 0 1px rgba(0, 0, 0, 0.10)`,
|
13399
|
+
_hover: {
|
13400
|
+
...floatingBorder("hover", props),
|
13401
|
+
boxShadow: "md",
|
13402
|
+
outlineOffset: "0px"
|
13369
13403
|
}
|
13370
13404
|
}
|
13371
13405
|
})
|
package/dist/index.d.mts
CHANGED
@@ -109,6 +109,7 @@ type RadioGroupContextProps = {
|
|
109
109
|
onChange: (value: string) => void;
|
110
110
|
variant?: "base" | "floating";
|
111
111
|
defaultValue?: string;
|
112
|
+
value?: string;
|
112
113
|
};
|
113
114
|
declare const RadioCardGroupContext: React.Context<RadioGroupContextProps | null>;
|
114
115
|
type RadioCardGroupProps = BoxProps & {
|
@@ -118,6 +119,7 @@ type RadioCardGroupProps = BoxProps & {
|
|
118
119
|
direction?: "row" | "column";
|
119
120
|
groupLabel?: string;
|
120
121
|
defaultValue?: string;
|
122
|
+
onChange?: (value: string) => void;
|
121
123
|
};
|
122
124
|
declare const RadioCardGroup: React.FC<RadioCardGroupProps>;
|
123
125
|
|
@@ -1965,31 +1967,17 @@ type DrawerProps = DrawerProps$1;
|
|
1965
1967
|
declare const Drawer: (props: DrawerProps) => React.JSX.Element;
|
1966
1968
|
declare const DrawerContent: _chakra_ui_system_dist_system_types.ComponentWithAs<any, DrawerContentProps>;
|
1967
1969
|
|
1968
|
-
type
|
1969
|
-
|
1970
|
-
/** The content inside the drawer */
|
1971
|
-
children: React.ReactNode;
|
1972
|
-
/** The title in the middle of the top menu */
|
1973
|
-
title?: String;
|
1974
|
-
/** Determines which side the drawer slides from */
|
1975
|
-
placement?: DrawerPlacement;
|
1976
|
-
/** A React component that will be placed to the left in the modal header */
|
1977
|
-
leftButton?: React.ReactNode;
|
1978
|
-
/** A React component that will be placed to the right in the modal header */
|
1979
|
-
rightButton?: React.ReactNode;
|
1980
|
-
/** Determines if the drawer is open or closed */
|
1981
|
-
isOpen: boolean;
|
1982
|
-
/** Function that will be called when the drawer closes */
|
1983
|
-
onClose: () => void;
|
1970
|
+
type DrawerBodyProps = {
|
1971
|
+
id?: string;
|
1984
1972
|
};
|
1985
|
-
declare const FullScreenDrawer: ({ children, title, placement, leftButton, rightButton, isOpen, onClose, }: FullScreenDrawerProps) => React.JSX.Element;
|
1986
|
-
|
1987
1973
|
type SimpleDrawerProps = {
|
1988
1974
|
children: React.ReactNode;
|
1989
1975
|
title?: React.ReactNode;
|
1990
1976
|
placement: "top" | "right" | "bottom" | "left";
|
1991
1977
|
isOpen: boolean;
|
1992
1978
|
onClose: () => void;
|
1979
|
+
/** Props for drawer body */
|
1980
|
+
body?: DrawerBodyProps;
|
1993
1981
|
};
|
1994
1982
|
/** A very basic drawer component that's easy to use
|
1995
1983
|
*
|
@@ -2001,7 +1989,28 @@ type SimpleDrawerProps = {
|
|
2001
1989
|
*
|
2002
1990
|
* For more advanced use cases, see the [Drawer](./Drawer.tsx) component.
|
2003
1991
|
*/
|
2004
|
-
declare const SimpleDrawer: ({ placement, children, title, ...props }: SimpleDrawerProps) => React.JSX.Element;
|
1992
|
+
declare const SimpleDrawer: ({ placement, children, title, body, ...props }: SimpleDrawerProps) => React.JSX.Element;
|
1993
|
+
|
1994
|
+
type DrawerPlacement = "top" | "right" | "bottom" | "left";
|
1995
|
+
type FullScreenDrawerProps = {
|
1996
|
+
/** The content inside the drawer */
|
1997
|
+
children: React.ReactNode;
|
1998
|
+
/** The title in the middle of the top menu */
|
1999
|
+
title?: String;
|
2000
|
+
/** Determines which side the drawer slides from */
|
2001
|
+
placement?: DrawerPlacement;
|
2002
|
+
/** A React component that will be placed to the left in the modal header */
|
2003
|
+
leftButton?: React.ReactNode;
|
2004
|
+
/** A React component that will be placed to the right in the modal header */
|
2005
|
+
rightButton?: React.ReactNode;
|
2006
|
+
/** Determines if the drawer is open or closed */
|
2007
|
+
isOpen: boolean;
|
2008
|
+
/** Function that will be called when the drawer closes */
|
2009
|
+
onClose: () => void;
|
2010
|
+
/** Props for drawer body */
|
2011
|
+
body?: DrawerBodyProps;
|
2012
|
+
};
|
2013
|
+
declare const FullScreenDrawer: ({ children, title, placement, leftButton, rightButton, isOpen, onClose, body, }: FullScreenDrawerProps) => React.JSX.Element;
|
2005
2014
|
|
2006
2015
|
type TooltipProps = PopoverProps & {
|
2007
2016
|
/**
|
@@ -5907,6 +5916,11 @@ declare const theme: {
|
|
5907
5916
|
RadioCard: {
|
5908
5917
|
baseStyle?: ((props: any) => {
|
5909
5918
|
container: {
|
5919
|
+
overflow: string;
|
5920
|
+
fontSize: string;
|
5921
|
+
display: string;
|
5922
|
+
cursor: string;
|
5923
|
+
borderRadius: string;
|
5910
5924
|
transitionProperty: string;
|
5911
5925
|
transitionDuration: string;
|
5912
5926
|
_disabled: {
|
@@ -5924,18 +5938,6 @@ declare const theme: {
|
|
5924
5938
|
backgroundColor: string;
|
5925
5939
|
pointerEvents: string;
|
5926
5940
|
};
|
5927
|
-
_focusVisible: {
|
5928
|
-
outlineWidth: string;
|
5929
|
-
outlineColor: string;
|
5930
|
-
outlineStyle: string;
|
5931
|
-
outlineOffset: string;
|
5932
|
-
};
|
5933
|
-
border: string;
|
5934
|
-
overflow: string;
|
5935
|
-
fontSize: string;
|
5936
|
-
display: string;
|
5937
|
-
cursor: string;
|
5938
|
-
borderRadius: string;
|
5939
5941
|
};
|
5940
5942
|
checked: {
|
5941
5943
|
backgroundColor: string;
|
@@ -5951,7 +5953,7 @@ declare const theme: {
|
|
5951
5953
|
}) | undefined;
|
5952
5954
|
sizes?: {
|
5953
5955
|
[key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
|
5954
|
-
keys: ("container" | "checked" | "radioInput")[];
|
5956
|
+
keys: ("container" | "checked" | "radioInput" | "focused" | "focusedChecked")[];
|
5955
5957
|
}>;
|
5956
5958
|
} | undefined;
|
5957
5959
|
variants?: {
|
@@ -5979,9 +5981,6 @@ declare const theme: {
|
|
5979
5981
|
outlineColor: string;
|
5980
5982
|
backgroundColor: string;
|
5981
5983
|
};
|
5982
|
-
_focus: {
|
5983
|
-
outlineColor: string;
|
5984
|
-
};
|
5985
5984
|
outlineWidth: string;
|
5986
5985
|
outlineColor: string;
|
5987
5986
|
outlineStyle: string;
|
@@ -6011,9 +6010,6 @@ declare const theme: {
|
|
6011
6010
|
outlineColor: string;
|
6012
6011
|
backgroundColor: string;
|
6013
6012
|
};
|
6014
|
-
_focus: {
|
6015
|
-
outlineColor: string;
|
6016
|
-
};
|
6017
6013
|
outline: string;
|
6018
6014
|
outlineColor: string;
|
6019
6015
|
backgroundColor: string;
|
@@ -6040,12 +6036,30 @@ declare const theme: {
|
|
6040
6036
|
outlineColor: string;
|
6041
6037
|
backgroundColor: string;
|
6042
6038
|
};
|
6043
|
-
|
6039
|
+
};
|
6040
|
+
focusedChecked: {
|
6041
|
+
outlineOffset: string;
|
6042
|
+
outlineColor: string;
|
6043
|
+
outline: string;
|
6044
|
+
outlineStyle: string;
|
6045
|
+
};
|
6046
|
+
focused: {
|
6047
|
+
outlineOffset: string;
|
6048
|
+
boxShadow: string;
|
6049
|
+
_hover: {
|
6050
|
+
boxShadow: string;
|
6044
6051
|
outlineOffset: string;
|
6052
|
+
outlineWidth: string;
|
6045
6053
|
outlineColor: string;
|
6046
|
-
outline: string;
|
6047
6054
|
outlineStyle: string;
|
6055
|
+
} | {
|
6056
|
+
boxShadow: string;
|
6057
|
+
outlineOffset: string;
|
6058
|
+
outline: string;
|
6059
|
+
outlineColor: string;
|
6048
6060
|
};
|
6061
|
+
outlineColor: string;
|
6062
|
+
outline: string;
|
6049
6063
|
};
|
6050
6064
|
};
|
6051
6065
|
floating: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
@@ -6062,9 +6076,6 @@ declare const theme: {
|
|
6062
6076
|
outlineColor: string;
|
6063
6077
|
backgroundColor: string;
|
6064
6078
|
};
|
6065
|
-
_focus: {
|
6066
|
-
outlineColor: string;
|
6067
|
-
};
|
6068
6079
|
outline: string;
|
6069
6080
|
outlineColor: string;
|
6070
6081
|
backgroundColor: string;
|
@@ -6080,12 +6091,24 @@ declare const theme: {
|
|
6080
6091
|
outlineColor: string;
|
6081
6092
|
backgroundColor: string;
|
6082
6093
|
};
|
6083
|
-
|
6094
|
+
};
|
6095
|
+
focusedChecked: {
|
6096
|
+
outlineOffset: string;
|
6097
|
+
outlineColor: string;
|
6098
|
+
outline: string;
|
6099
|
+
outlineStyle: string;
|
6100
|
+
};
|
6101
|
+
focused: {
|
6102
|
+
outlineOffset: string;
|
6103
|
+
boxShadow: string;
|
6104
|
+
_hover: {
|
6105
|
+
boxShadow: string;
|
6084
6106
|
outlineOffset: string;
|
6085
|
-
outlineColor: string;
|
6086
6107
|
outline: string;
|
6087
|
-
|
6108
|
+
outlineColor: string;
|
6088
6109
|
};
|
6110
|
+
outlineColor: string;
|
6111
|
+
outline: string;
|
6089
6112
|
};
|
6090
6113
|
};
|
6091
6114
|
} | undefined;
|
@@ -6094,7 +6117,7 @@ declare const theme: {
|
|
6094
6117
|
variant?: "base" | "floating" | undefined;
|
6095
6118
|
colorScheme?: string | undefined;
|
6096
6119
|
} | undefined;
|
6097
|
-
parts: ("container" | "checked" | "radioInput")[];
|
6120
|
+
parts: ("container" | "checked" | "radioInput" | "focused" | "focusedChecked")[];
|
6098
6121
|
};
|
6099
6122
|
Radio: {
|
6100
6123
|
baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
|
@@ -9549,4 +9572,4 @@ declare const Text: _chakra_ui_system_dist_system_types.ComponentWithAs<"p", Tex
|
|
9549
9572
|
**/
|
9550
9573
|
declare function slugify(text: string | string[], maxLength?: number): string;
|
9551
9574
|
|
9552
|
-
export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, Combobox, ComboboxProps, ContentLoader, ContentLoaderProps, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, FullScreenDrawer, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, Nudge, NudgeProps, NumericStepper, Pagination, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PressableCard, PrideProvider, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardGroupContext, RadioCardProps, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SimpleDrawer, SimpleDrawerProps, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, StaticCard, StaticCardProps, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, TogglePride, Tooltip, TooltipProps, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoDefault, VyLogoDefaultProps, VyLogoPride, VyLogoPrideProps, VyLogoProps, WizardNudge, WizardNudgeProps, brandTheme, createTexts, fontFaces, slugify, theme, usePride, useToast, useTranslation };
|
9575
|
+
export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Brand, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, Combobox, ComboboxProps, ContentLoader, ContentLoaderProps, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerBodyProps, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, FullScreenDrawer, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, Nudge, NudgeProps, NumericStepper, Pagination, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PressableCard, PrideProvider, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardGroupContext, RadioCardProps, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SimpleDrawer, SimpleDrawerProps, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, StaticCard, StaticCardProps, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, TogglePride, Tooltip, TooltipProps, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoDefault, VyLogoDefaultProps, VyLogoPride, VyLogoPrideProps, VyLogoProps, WizardNudge, WizardNudgeProps, brandTheme, createTexts, fontFaces, slugify, theme, usePride, useToast, useTranslation };
|