@vygruppen/spor-react 11.3.4 → 11.3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "11.3.4",
3
+ "version": "11.3.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -32,8 +32,8 @@
32
32
  "react-stately": "^3.31.1",
33
33
  "react-swipeable": "^7.0.1",
34
34
  "@vygruppen/spor-icon-react": "3.13.0",
35
- "@vygruppen/spor-design-tokens": "3.10.0",
36
- "@vygruppen/spor-loader": "0.5.0"
35
+ "@vygruppen/spor-loader": "0.5.0",
36
+ "@vygruppen/spor-design-tokens": "3.10.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@react-types/datepicker": "^3.10.0",
@@ -11,9 +11,9 @@ import {
11
11
  useMultiStyleConfig,
12
12
  } from "@chakra-ui/react";
13
13
  import React from "react";
14
+ import { createTexts, useTranslation } from "../i18n";
14
15
  import { AlertIcon } from "./AlertIcon";
15
16
  import { BaseAlert, BaseAlertProps } from "./BaseAlert";
16
- import { createTexts, useTranslation } from "../i18n";
17
17
 
18
18
  type ServiceAlertProps = BaseAlertProps & {
19
19
  /** The title string */
@@ -91,7 +91,7 @@ export const ServiceAlert = ({
91
91
  maxWidth={contentWidth}
92
92
  >
93
93
  <Flex as={headingLevel} alignItems="center">
94
- <AlertIcon variant={variant} />
94
+ {notification === 1 && <AlertIcon variant={variant} />}
95
95
 
96
96
  <Box
97
97
  as="span"
@@ -1,11 +1,2 @@
1
- import {
2
- FormControl as ChakraFormControl,
3
- FormControlProps as ChakraFormControlProps,
4
- forwardRef,
5
- } from "@chakra-ui/react";
6
- import React from "react";
7
-
8
- export type FormControlProps = ChakraFormControlProps;
9
- export const FormControl = forwardRef<FormControlProps, "div">((props, ref) => {
10
- return <ChakraFormControl {...props} ref={ref} />;
11
- });
1
+ export { FormControl } from "@chakra-ui/react";
2
+ export type { FormControlProps } from "@chakra-ui/react";