@obosbbl/grunnmuren-react 1.14.3 → 1.14.5
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
|
-
|
|
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>>;
|
package/dist/grunnmuren.mjs
CHANGED
|
@@ -809,7 +809,7 @@ const V = y({ bgColor: "white", contentPosition: "below-center", hasImage: !1 })
|
|
|
809
809
|
style: t !== "vertical-split" && t !== "below-center" && t !== "below-left" ? { gridArea: "hero" } : void 0,
|
|
810
810
|
ref: r,
|
|
811
811
|
children: [
|
|
812
|
-
/* @__PURE__ */ o("source", { media: "(min-width:
|
|
812
|
+
/* @__PURE__ */ o("source", { media: "(min-width: 640px)", srcSet: e.mdSrc }),
|
|
813
813
|
/* @__PURE__ */ o(
|
|
814
814
|
"img",
|
|
815
815
|
{
|
|
@@ -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.
|
|
3
|
+
"version": "1.14.5",
|
|
4
4
|
"description": "OBOS Grunnmuren design system React components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
],
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@storybook/addon-controls": "7.4.
|
|
21
|
-
"@storybook/addon-docs": "7.4.
|
|
20
|
+
"@storybook/addon-controls": "7.4.2",
|
|
21
|
+
"@storybook/addon-docs": "7.4.2",
|
|
22
22
|
"@storybook/addon-styling": "1.3.7",
|
|
23
23
|
"@storybook/builder-vite": "7.4.0",
|
|
24
|
-
"@storybook/react": "7.4.
|
|
24
|
+
"@storybook/react": "7.4.2",
|
|
25
25
|
"@storybook/react-vite": "7.4.0",
|
|
26
26
|
"@types/react": "18.2.21",
|
|
27
27
|
"@types/react-dom": "18.2.7",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"react-dom": "18.2.0",
|
|
33
33
|
"require-from-string": "2.0.2",
|
|
34
34
|
"rimraf": "5.0.1",
|
|
35
|
-
"storybook": "7.4.
|
|
35
|
+
"storybook": "7.4.2",
|
|
36
36
|
"tailwindcss": "3.3.3",
|
|
37
37
|
"type-fest": "4.3.1",
|
|
38
38
|
"vite": "4.4.9",
|