@obosbbl/grunnmuren-react 1.14.2 → 1.14.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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- interface CampaignProps<T extends React.ElementType> {
2
+ export interface CampaignProps<T extends React.ElementType> {
3
3
  /** @default div */
4
4
  as?: T;
5
5
  body: React.ReactElement;
@@ -13,10 +13,12 @@ interface CampaignProps<T extends React.ElementType> {
13
13
  */
14
14
  rightAlignBody?: boolean;
15
15
  }
16
- interface CampaignBodyProps extends React.ComponentPropsWithoutRef<'div'> {
16
+ export interface CampaignBodyProps extends React.ComponentPropsWithoutRef<'div'> {
17
17
  }
18
- interface CampaignImageProps extends React.ComponentPropsWithoutRef<'img'> {
18
+ export declare const CampaignBody: import("react").ForwardRefExoticComponent<CampaignBodyProps & import("react").RefAttributes<HTMLDivElement>>;
19
+ export interface CampaignImageProps extends React.ComponentPropsWithoutRef<'img'> {
19
20
  }
21
+ export declare const CampaignImage: import("react").ForwardRefExoticComponent<CampaignImageProps & import("react").RefAttributes<HTMLImageElement>>;
20
22
  declare const Campaign: import("react").ForwardRefExoticComponent<Omit<CampaignProps<import("react").ElementType<any>> & Omit<Omit<any, "ref">, keyof CampaignProps<T>>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
21
23
  Body: import("react").ForwardRefExoticComponent<CampaignBodyProps & import("react").RefAttributes<HTMLDivElement>>;
22
24
  Image: import("react").ForwardRefExoticComponent<CampaignImageProps & import("react").RefAttributes<HTMLImageElement>>;
@@ -6,7 +6,7 @@ export interface TextFieldProps extends React.ComponentPropsWithoutRef<'input'>
6
6
  /** Error message for the form control */
7
7
  error?: string;
8
8
  /** Label for the form control */
9
- label: string;
9
+ label: React.ReactNode;
10
10
  /** React node on the left (ex. icon, text, component) */
11
11
  leftAddon?: React.ReactNode;
12
12
  /** React node on the left (ex. icon, text, component) */
@@ -1494,6 +1494,8 @@ export {
1494
1494
  bt as Button,
1495
1495
  L as ButtonColorContext,
1496
1496
  ft as Campaign,
1497
+ Te as CampaignBody,
1498
+ Fe as CampaignImage,
1497
1499
  gt as Card,
1498
1500
  At as CardContent,
1499
1501
  ht as CardImage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-react",
3
- "version": "1.14.2",
3
+ "version": "1.14.4",
4
4
  "description": "OBOS Grunnmuren design system React components",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,30 +17,30 @@
17
17
  ],
18
18
  "types": "./dist/index.d.ts",
19
19
  "devDependencies": {
20
- "@storybook/addon-controls": "7.1.1",
21
- "@storybook/addon-docs": "7.1.1",
22
- "@storybook/addon-styling": "1.3.5",
23
- "@storybook/builder-vite": "7.0.26",
24
- "@storybook/react": "7.1.1",
25
- "@storybook/react-vite": "7.0.26",
26
- "@types/react": "18.2.17",
20
+ "@storybook/addon-controls": "7.4.0",
21
+ "@storybook/addon-docs": "7.4.0",
22
+ "@storybook/addon-styling": "1.3.7",
23
+ "@storybook/builder-vite": "7.4.0",
24
+ "@storybook/react": "7.4.0",
25
+ "@storybook/react-vite": "7.4.0",
26
+ "@types/react": "18.2.21",
27
27
  "@types/react-dom": "18.2.7",
28
- "@vitejs/plugin-react": "4.0.2",
29
- "autoprefixer": "10.4.14",
30
- "postcss": "8.4.27",
28
+ "@vitejs/plugin-react": "4.0.4",
29
+ "autoprefixer": "10.4.15",
30
+ "postcss": "8.4.29",
31
31
  "react": "18.2.0",
32
32
  "react-dom": "18.2.0",
33
33
  "require-from-string": "2.0.2",
34
34
  "rimraf": "5.0.1",
35
- "storybook": "7.1.1",
35
+ "storybook": "7.4.0",
36
36
  "tailwindcss": "3.3.3",
37
- "type-fest": "3.13.1",
38
- "vite": "4.4.2",
37
+ "type-fest": "4.3.1",
38
+ "vite": "4.4.9",
39
39
  "@obosbbl/grunnmuren-tailwind": "0.9.1"
40
40
  },
41
41
  "dependencies": {
42
42
  "@react-hookz/web": "23.1.0",
43
- "clsx": "1.2.1",
43
+ "clsx": "2.0.0",
44
44
  "react-collapsed": "4.0.4",
45
45
  "react-merge-refs": "2.0.2",
46
46
  "@obosbbl/grunnmuren-icons": "^0.6.0"