@vygruppen/spor-react 9.13.1 → 9.13.3

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@9.13.1 build
2
+ > @vygruppen/spor-react@9.13.3 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -9,12 +9,12 @@
9
9
  CJS Build start
10
10
  ESM Build start
11
11
  DTS Build start
12
- CJS dist/index.js 526.31 KB
13
- CJS ⚡️ Build success in 2183ms
14
12
  ESM dist/index.mjs 2.19 KB
15
- ESM dist/CountryCodeSelect-XKJDLCJZ.mjs 1.19 KB
16
- ESM dist/chunk-NMEIV2NI.mjs 413.37 KB
17
- ESM ⚡️ Build success in 2183ms
18
- DTS ⚡️ Build success in 13025ms
19
- DTS dist/index.d.ts 343.71 KB
20
- DTS dist/index.d.mts 343.71 KB
13
+ ESM dist/chunk-Y56HXMZC.mjs 414.22 KB
14
+ ESM dist/CountryCodeSelect-7VDV2T5R.mjs 1.19 KB
15
+ ESM ⚡️ Build success in 2170ms
16
+ CJS dist/index.js 527.27 KB
17
+ CJS ⚡️ Build success in 2171ms
18
+ DTS ⚡️ Build success in 16058ms
19
+ DTS dist/index.d.ts 345.58 KB
20
+ DTS dist/index.d.mts 345.58 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 9.13.3
4
+
5
+ ### Patch Changes
6
+
7
+ - bec48fc: Add font-family to global CSS file
8
+ - e606bf3: RadioCardGroup & RadioCard: Add documentation for props
9
+
10
+ ## 9.13.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 59c1cc8: RadioCard: Fix accessibility features
15
+ - 4aa7c96: Added body prop for FullScreenDrawer and SimpleDrawer for accessability reasons
16
+
3
17
  ## 9.13.1
4
18
 
5
19
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-NMEIV2NI.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-Y56HXMZC.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4
 
@@ -1758,7 +1758,7 @@ var texts4 = createTexts({
1758
1758
  sv: "Landskod"
1759
1759
  }
1760
1760
  });
1761
- var LazyCountryCodeSelect = React87__default.lazy(() => import('./CountryCodeSelect-XKJDLCJZ.mjs'));
1761
+ var LazyCountryCodeSelect = React87__default.lazy(() => import('./CountryCodeSelect-7VDV2T5R.mjs'));
1762
1762
  var Radio = forwardRef((props, ref) => {
1763
1763
  return /* @__PURE__ */ React87__default.createElement(Radio$1, { ...props, ref });
1764
1764
  });
@@ -1923,25 +1923,13 @@ var RadioCardGroup = ({
1923
1923
  defaultValue: defaultValue || ""
1924
1924
  }
1925
1925
  },
1926
- /* @__PURE__ */ React87__default.createElement(
1927
- Stack$1,
1928
- {
1929
- as: "fieldset",
1930
- direction: direction2,
1931
- "aria-labelledby": groupLabel || name,
1932
- role: "radiogroup",
1933
- tabIndex: 0,
1934
- ...props
1935
- },
1936
- groupLabel && /* @__PURE__ */ React87__default.createElement(FormLabel, { as: "legend", id: groupLabel }, groupLabel),
1937
- children
1938
- )
1926
+ /* @__PURE__ */ React87__default.createElement(Stack$1, { as: "fieldset", direction: direction2, ...props }, groupLabel && /* @__PURE__ */ React87__default.createElement(FormLabel, { as: "legend", id: groupLabel }, groupLabel), children)
1939
1927
  );
1940
1928
  };
1941
1929
 
1942
1930
  // src/layout/RadioCard.tsx
1943
1931
  var RadioCard = forwardRef(
1944
- ({ children, value = "base", isDisabled, ...props }, ref) => {
1932
+ ({ children, value, isDisabled, ...props }, ref) => {
1945
1933
  const context = useContext(RadioCardGroupContext);
1946
1934
  if (!context) {
1947
1935
  throw new Error(
@@ -1950,52 +1938,72 @@ var RadioCard = forwardRef(
1950
1938
  }
1951
1939
  const { name, selectedValue, onChange, variant } = context;
1952
1940
  const styles3 = useMultiStyleConfig("RadioCard", { variant });
1941
+ const [isKeyboardUser, setKeyboardUser] = useState(false);
1942
+ const [isFocused, setFocus] = useState(false);
1953
1943
  const isChecked = selectedValue === value;
1954
- const radioCardId = `radio-card-${useId()}`;
1955
1944
  useEffect(() => {
1956
- if (isChecked && typeof ref !== "function" && (ref == null ? void 0 : ref.current)) {
1957
- ref.current.focus();
1958
- }
1959
- }, [isChecked]);
1960
- const handleKeyDown = (event) => {
1961
- if (event.key === "Enter" || event.key === " ") {
1962
- onChange(value);
1963
- }
1964
- if (event.key === "ArrowRight" || event.key === "ArrowDown" || event.key === "ArrowLeft" || event.key === "ArrowUp") {
1965
- const nextRadioCard = event.currentTarget.nextElementSibling;
1966
- if (nextRadioCard) {
1967
- nextRadioCard.focus();
1945
+ const handleMouseDown = () => setKeyboardUser(false);
1946
+ const handleKeyDown = (event) => {
1947
+ if (event.key === " ") {
1948
+ setFocus(false);
1949
+ } else {
1950
+ setKeyboardUser(true);
1968
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);
1969
1965
  }
1970
- };
1971
- return /* @__PURE__ */ React87__default.createElement(Box, { as: "label", "aria-label": String(children), onKeyDown: handleKeyDown }, /* @__PURE__ */ React87__default.createElement(
1972
- chakra.input,
1973
- {
1974
- type: "radio",
1975
- id: radioCardId,
1976
- ref,
1977
- value,
1978
- name,
1979
- checked: isChecked,
1980
- onChange: () => onChange(value),
1981
- disabled: isDisabled,
1982
- __css: styles3.radioInput
1983
- }
1984
- ), /* @__PURE__ */ React87__default.createElement(
1966
+ }, [isKeyboardUser, isChecked]);
1967
+ const inputId = `radio-card-${useId()}`;
1968
+ return /* @__PURE__ */ React87__default.createElement(
1985
1969
  Box,
1986
1970
  {
1987
- ...props,
1988
- tabIndex: 0,
1989
- ref,
1990
- role: "radio",
1991
- "aria-checked": isChecked,
1992
- "aria-labelledby": radioCardId,
1993
- __css: { ...styles3.container, ...isChecked && styles3.checked },
1994
- "data-checked": isChecked,
1995
- "data-disabled": isDisabled
1971
+ onFocus: () => isKeyboardUser && setFocus(true),
1972
+ onBlur: () => setFocus(false)
1996
1973
  },
1997
- children
1998
- ));
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
+ );
1999
2007
  }
2000
2008
  );
2001
2009
  var StaticCard = forwardRef(
@@ -2507,7 +2515,8 @@ var Button2 = forwardRef((props, ref) => {
2507
2515
  "aria-label": ariaLabel,
2508
2516
  "aria-busy": isLoading,
2509
2517
  disabled: isDisabled || isLoading,
2510
- position: "relative"
2518
+ position: "relative",
2519
+ fontFamily: "Vy Sans"
2511
2520
  },
2512
2521
  isLoading && /* @__PURE__ */ React87__default.createElement(Center, { position: "absolute", right: 0, left: 0, top: 1, bottom: 0 }, /* @__PURE__ */ React87__default.createElement(
2513
2522
  ColorInlineLoader,
@@ -4365,7 +4374,8 @@ var FullScreenDrawer = ({
4365
4374
  leftButton = null,
4366
4375
  rightButton = /* @__PURE__ */ React87__default.createElement(DrawerCloseButton2, null),
4367
4376
  isOpen,
4368
- onClose
4377
+ onClose,
4378
+ body
4369
4379
  }) => {
4370
4380
  const [isContentBoxScrolled, setContentBoxScrolled] = useState(false);
4371
4381
  const onContentScroll = (e) => {
@@ -4396,7 +4406,7 @@ var FullScreenDrawer = ({
4396
4406
  rightButton
4397
4407
  }
4398
4408
  ),
4399
- /* @__PURE__ */ React87__default.createElement(DrawerBody, { overflow: "auto", onScroll: onContentScroll }, children)
4409
+ /* @__PURE__ */ React87__default.createElement(DrawerBody, { overflow: "auto", onScroll: onContentScroll, ...body }, children)
4400
4410
  ));
4401
4411
  };
4402
4412
  var DrawerTopMenu = ({
@@ -4481,9 +4491,10 @@ var SimpleDrawer = ({
4481
4491
  placement,
4482
4492
  children,
4483
4493
  title,
4494
+ body,
4484
4495
  ...props
4485
4496
  }) => {
4486
- 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, null, children)));
4497
+ 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)));
4487
4498
  };
4488
4499
  var EXPIRATION_DELAY = 1e3 * 60 * 60 * 24 * 30;
4489
4500
  var Nudge = ({
@@ -13271,18 +13282,22 @@ function outlineBorder(state2, props) {
13271
13282
  }
13272
13283
 
13273
13284
  // src/theme/components/radio-card.ts
13274
- var parts17 = anatomy$1("radio-card").parts("container", "checked", "radioInput");
13285
+ var parts17 = anatomy$1("radio-card").parts(
13286
+ "container",
13287
+ "checked",
13288
+ "radioInput",
13289
+ "focused",
13290
+ "focusedChecked"
13291
+ );
13275
13292
  var helpers24 = createMultiStyleConfigHelpers$1(parts17.keys);
13276
13293
  var config33 = helpers24.defineMultiStyleConfig({
13277
13294
  baseStyle: (props) => ({
13278
13295
  container: {
13279
- border: "none",
13280
13296
  overflow: "hidden",
13281
13297
  fontSize: "inherit",
13282
13298
  display: "block",
13283
13299
  cursor: "pointer",
13284
13300
  borderRadius: "sm",
13285
- ...focusVisibleStyles(props),
13286
13301
  transitionProperty: "common",
13287
13302
  transitionDuration: "fast",
13288
13303
  _disabled: {
@@ -13317,9 +13332,6 @@ var config33 = helpers24.defineMultiStyleConfig({
13317
13332
  _active: {
13318
13333
  ...baseBackground("active", props),
13319
13334
  ...baseBorder("active", props)
13320
- },
13321
- _focus: {
13322
- ...outlineBorder("focus", props)
13323
13335
  }
13324
13336
  },
13325
13337
  checked: {
@@ -13329,12 +13341,23 @@ var config33 = helpers24.defineMultiStyleConfig({
13329
13341
  _active: {
13330
13342
  ...baseBackground("active", props),
13331
13343
  ...baseBorder("active", props)
13332
- },
13333
- _focus: {
13334
- outline: "4px solid",
13335
- outlineStyle: "double",
13336
- ...outlineBorder("focus", props),
13337
- outlineOffset: "-1px"
13344
+ }
13345
+ },
13346
+ focusedChecked: {
13347
+ outline: "4px solid",
13348
+ outlineStyle: "double",
13349
+ ...outlineBorder("focus", props),
13350
+ outlineOffset: "-1px"
13351
+ },
13352
+ focused: {
13353
+ outline: "2px solid",
13354
+ ...outlineBorder("focus", props),
13355
+ outlineOffset: "1px",
13356
+ boxShadow: `inset 0 0 0 1px rgba(0, 0, 0, 0.40)`,
13357
+ _hover: {
13358
+ ...baseBorder("hover", props),
13359
+ boxShadow: "none",
13360
+ outlineOffset: "0px"
13338
13361
  }
13339
13362
  }
13340
13363
  }),
@@ -13351,9 +13374,6 @@ var config33 = helpers24.defineMultiStyleConfig({
13351
13374
  _active: {
13352
13375
  ...floatingBackground("active", props),
13353
13376
  ...floatingBorder("active", props)
13354
- },
13355
- _focus: {
13356
- ...outlineBorder("focus", props)
13357
13377
  }
13358
13378
  },
13359
13379
  checked: {
@@ -13364,12 +13384,23 @@ var config33 = helpers24.defineMultiStyleConfig({
13364
13384
  _active: {
13365
13385
  ...floatingBackground("active", props),
13366
13386
  ...floatingBorder("active", props)
13367
- },
13368
- _focus: {
13369
- outline: "4px solid",
13370
- outlineStyle: "double",
13371
- ...outlineBorder("focus", props),
13372
- outlineOffset: "-1px"
13387
+ }
13388
+ },
13389
+ focusedChecked: {
13390
+ outline: "4px solid",
13391
+ outlineStyle: "double",
13392
+ ...outlineBorder("focus", props),
13393
+ outlineOffset: "-1px"
13394
+ },
13395
+ focused: {
13396
+ outline: "2px solid",
13397
+ ...outlineBorder("focus", props),
13398
+ outlineOffset: "1px",
13399
+ boxShadow: `inset 0 0 0 1px rgba(0, 0, 0, 0.10)`,
13400
+ _hover: {
13401
+ ...floatingBorder("hover", props),
13402
+ boxShadow: "md",
13403
+ outlineOffset: "0px"
13373
13404
  }
13374
13405
  }
13375
13406
  })
@@ -14197,6 +14228,9 @@ var fontFaces = `
14197
14228
  font-weight: 400;
14198
14229
  font-display: swap
14199
14230
  }
14231
+ body {
14232
+ font-family: "Vy Sans", sans-serif;
14233
+ }
14200
14234
  `;
14201
14235
 
14202
14236
  // src/theme/index.ts
package/dist/index.d.mts CHANGED
@@ -88,13 +88,19 @@ declare const Stack: _chakra_ui_system_dist_system_types.ComponentWithAs<"div",
88
88
  * @see Docs https://spor.vy.no/components/radiocard
89
89
  */
90
90
  type RadioCardProps = BoxProps & {
91
+ /** The value that will be passed to the `RadioCardGroup`'s `onChange` function if this `RadioCard` is selected.. */
91
92
  value: string;
93
+ /** The content of the RadioCard. */
92
94
  children: React.ReactNode;
95
+ /** Determines if the RadioCard is disabled. */
93
96
  isDisabled?: boolean;
94
97
  };
95
98
  declare const RadioCard: _chakra_ui_system_dist_system_types.ComponentWithAs<_chakra_ui_system_dist_system_types.As, BoxProps & {
99
+ /** The value that will be passed to the `RadioCardGroup`'s `onChange` function if this `RadioCard` is selected.. */
96
100
  value: string;
101
+ /** The content of the RadioCard. */
97
102
  children: React.ReactNode;
103
+ /** Determines if the RadioCard is disabled. */
98
104
  isDisabled?: boolean | undefined;
99
105
  }>;
100
106
 
@@ -109,15 +115,23 @@ type RadioGroupContextProps = {
109
115
  onChange: (value: string) => void;
110
116
  variant?: "base" | "floating";
111
117
  defaultValue?: string;
118
+ value?: string;
112
119
  };
113
120
  declare const RadioCardGroupContext: React.Context<RadioGroupContextProps | null>;
114
121
  type RadioCardGroupProps = BoxProps & {
122
+ /** A string that will be assigned as the name attribute to all RadioCard components within the group. */
115
123
  name: string;
124
+ /** The RadioCard components that make up the group. */
116
125
  children: React.ReactNode;
126
+ /** Optional. Determines the style of the RadioCard. Can be either "base" or "floating". */
117
127
  variant?: "base" | "floating";
128
+ /** Optional. Determines the direction of the group. Can be either "row" or "column". */
118
129
  direction?: "row" | "column";
130
+ /** Optional. A label for the group. */
119
131
  groupLabel?: string;
132
+ /** Optional. The default value of the RadioCard group. */
120
133
  defaultValue?: string;
134
+ /** Optional. A function that will be called when the selected value changes. The function receives the value of the selected RadioCard. */
121
135
  onChange?: (value: string) => void;
122
136
  };
123
137
  declare const RadioCardGroup: React.FC<RadioCardGroupProps>;
@@ -1966,31 +1980,17 @@ type DrawerProps = DrawerProps$1;
1966
1980
  declare const Drawer: (props: DrawerProps) => React.JSX.Element;
1967
1981
  declare const DrawerContent: _chakra_ui_system_dist_system_types.ComponentWithAs<any, DrawerContentProps>;
1968
1982
 
1969
- type DrawerPlacement = "top" | "right" | "bottom" | "left";
1970
- type FullScreenDrawerProps = {
1971
- /** The content inside the drawer */
1972
- children: React.ReactNode;
1973
- /** The title in the middle of the top menu */
1974
- title?: String;
1975
- /** Determines which side the drawer slides from */
1976
- placement?: DrawerPlacement;
1977
- /** A React component that will be placed to the left in the modal header */
1978
- leftButton?: React.ReactNode;
1979
- /** A React component that will be placed to the right in the modal header */
1980
- rightButton?: React.ReactNode;
1981
- /** Determines if the drawer is open or closed */
1982
- isOpen: boolean;
1983
- /** Function that will be called when the drawer closes */
1984
- onClose: () => void;
1983
+ type DrawerBodyProps = {
1984
+ id?: string;
1985
1985
  };
1986
- declare const FullScreenDrawer: ({ children, title, placement, leftButton, rightButton, isOpen, onClose, }: FullScreenDrawerProps) => React.JSX.Element;
1987
-
1988
1986
  type SimpleDrawerProps = {
1989
1987
  children: React.ReactNode;
1990
1988
  title?: React.ReactNode;
1991
1989
  placement: "top" | "right" | "bottom" | "left";
1992
1990
  isOpen: boolean;
1993
1991
  onClose: () => void;
1992
+ /** Props for drawer body */
1993
+ body?: DrawerBodyProps;
1994
1994
  };
1995
1995
  /** A very basic drawer component that's easy to use
1996
1996
  *
@@ -2002,7 +2002,28 @@ type SimpleDrawerProps = {
2002
2002
  *
2003
2003
  * For more advanced use cases, see the [Drawer](./Drawer.tsx) component.
2004
2004
  */
2005
- declare const SimpleDrawer: ({ placement, children, title, ...props }: SimpleDrawerProps) => React.JSX.Element;
2005
+ declare const SimpleDrawer: ({ placement, children, title, body, ...props }: SimpleDrawerProps) => React.JSX.Element;
2006
+
2007
+ type DrawerPlacement = "top" | "right" | "bottom" | "left";
2008
+ type FullScreenDrawerProps = {
2009
+ /** The content inside the drawer */
2010
+ children: React.ReactNode;
2011
+ /** The title in the middle of the top menu */
2012
+ title?: String;
2013
+ /** Determines which side the drawer slides from */
2014
+ placement?: DrawerPlacement;
2015
+ /** A React component that will be placed to the left in the modal header */
2016
+ leftButton?: React.ReactNode;
2017
+ /** A React component that will be placed to the right in the modal header */
2018
+ rightButton?: React.ReactNode;
2019
+ /** Determines if the drawer is open or closed */
2020
+ isOpen: boolean;
2021
+ /** Function that will be called when the drawer closes */
2022
+ onClose: () => void;
2023
+ /** Props for drawer body */
2024
+ body?: DrawerBodyProps;
2025
+ };
2026
+ declare const FullScreenDrawer: ({ children, title, placement, leftButton, rightButton, isOpen, onClose, body, }: FullScreenDrawerProps) => React.JSX.Element;
2006
2027
 
2007
2028
  type TooltipProps = PopoverProps & {
2008
2029
  /**
@@ -5908,6 +5929,11 @@ declare const theme: {
5908
5929
  RadioCard: {
5909
5930
  baseStyle?: ((props: any) => {
5910
5931
  container: {
5932
+ overflow: string;
5933
+ fontSize: string;
5934
+ display: string;
5935
+ cursor: string;
5936
+ borderRadius: string;
5911
5937
  transitionProperty: string;
5912
5938
  transitionDuration: string;
5913
5939
  _disabled: {
@@ -5925,18 +5951,6 @@ declare const theme: {
5925
5951
  backgroundColor: string;
5926
5952
  pointerEvents: string;
5927
5953
  };
5928
- _focusVisible: {
5929
- outlineWidth: string;
5930
- outlineColor: string;
5931
- outlineStyle: string;
5932
- outlineOffset: string;
5933
- };
5934
- border: string;
5935
- overflow: string;
5936
- fontSize: string;
5937
- display: string;
5938
- cursor: string;
5939
- borderRadius: string;
5940
5954
  };
5941
5955
  checked: {
5942
5956
  backgroundColor: string;
@@ -5952,7 +5966,7 @@ declare const theme: {
5952
5966
  }) | undefined;
5953
5967
  sizes?: {
5954
5968
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
5955
- keys: ("container" | "checked" | "radioInput")[];
5969
+ keys: ("container" | "checked" | "radioInput" | "focused" | "focusedChecked")[];
5956
5970
  }>;
5957
5971
  } | undefined;
5958
5972
  variants?: {
@@ -5980,9 +5994,6 @@ declare const theme: {
5980
5994
  outlineColor: string;
5981
5995
  backgroundColor: string;
5982
5996
  };
5983
- _focus: {
5984
- outlineColor: string;
5985
- };
5986
5997
  outlineWidth: string;
5987
5998
  outlineColor: string;
5988
5999
  outlineStyle: string;
@@ -6012,9 +6023,6 @@ declare const theme: {
6012
6023
  outlineColor: string;
6013
6024
  backgroundColor: string;
6014
6025
  };
6015
- _focus: {
6016
- outlineColor: string;
6017
- };
6018
6026
  outline: string;
6019
6027
  outlineColor: string;
6020
6028
  backgroundColor: string;
@@ -6041,12 +6049,30 @@ declare const theme: {
6041
6049
  outlineColor: string;
6042
6050
  backgroundColor: string;
6043
6051
  };
6044
- _focus: {
6052
+ };
6053
+ focusedChecked: {
6054
+ outlineOffset: string;
6055
+ outlineColor: string;
6056
+ outline: string;
6057
+ outlineStyle: string;
6058
+ };
6059
+ focused: {
6060
+ outlineOffset: string;
6061
+ boxShadow: string;
6062
+ _hover: {
6063
+ boxShadow: string;
6045
6064
  outlineOffset: string;
6065
+ outlineWidth: string;
6046
6066
  outlineColor: string;
6047
- outline: string;
6048
6067
  outlineStyle: string;
6068
+ } | {
6069
+ boxShadow: string;
6070
+ outlineOffset: string;
6071
+ outline: string;
6072
+ outlineColor: string;
6049
6073
  };
6074
+ outlineColor: string;
6075
+ outline: string;
6050
6076
  };
6051
6077
  };
6052
6078
  floating: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
@@ -6063,9 +6089,6 @@ declare const theme: {
6063
6089
  outlineColor: string;
6064
6090
  backgroundColor: string;
6065
6091
  };
6066
- _focus: {
6067
- outlineColor: string;
6068
- };
6069
6092
  outline: string;
6070
6093
  outlineColor: string;
6071
6094
  backgroundColor: string;
@@ -6081,12 +6104,24 @@ declare const theme: {
6081
6104
  outlineColor: string;
6082
6105
  backgroundColor: string;
6083
6106
  };
6084
- _focus: {
6107
+ };
6108
+ focusedChecked: {
6109
+ outlineOffset: string;
6110
+ outlineColor: string;
6111
+ outline: string;
6112
+ outlineStyle: string;
6113
+ };
6114
+ focused: {
6115
+ outlineOffset: string;
6116
+ boxShadow: string;
6117
+ _hover: {
6118
+ boxShadow: string;
6085
6119
  outlineOffset: string;
6086
- outlineColor: string;
6087
6120
  outline: string;
6088
- outlineStyle: string;
6121
+ outlineColor: string;
6089
6122
  };
6123
+ outlineColor: string;
6124
+ outline: string;
6090
6125
  };
6091
6126
  };
6092
6127
  } | undefined;
@@ -6095,7 +6130,7 @@ declare const theme: {
6095
6130
  variant?: "base" | "floating" | undefined;
6096
6131
  colorScheme?: string | undefined;
6097
6132
  } | undefined;
6098
- parts: ("container" | "checked" | "radioInput")[];
6133
+ parts: ("container" | "checked" | "radioInput" | "focused" | "focusedChecked")[];
6099
6134
  };
6100
6135
  Radio: {
6101
6136
  baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
@@ -9550,4 +9585,4 @@ declare const Text: _chakra_ui_system_dist_system_types.ComponentWithAs<"p", Tex
9550
9585
  **/
9551
9586
  declare function slugify(text: string | string[], maxLength?: number): string;
9552
9587
 
9553
- 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 };
9588
+ 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 };