@varialkit/banner 0.1.1 → 0.1.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.
- package/examples.tsx +6 -6
- package/package.json +3 -3
- package/src/Banner.tsx +2 -2
- package/src/Banner.types.ts +1 -1
package/examples.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { iconNames } from "@
|
|
3
|
-
import type { SolaraIconName } from "@
|
|
4
|
-
import { Button } from "@
|
|
2
|
+
import { iconNames } from "@varialkit/icons";
|
|
3
|
+
import type { SolaraIconName } from "@varialkit/icons";
|
|
4
|
+
import { Button } from "@varialkit/button";
|
|
5
5
|
import { Banner } from "./src/Banner";
|
|
6
6
|
import type { BannerProps } from "./src/Banner.types";
|
|
7
7
|
|
|
@@ -118,7 +118,7 @@ export const stories = {
|
|
|
118
118
|
/>
|
|
119
119
|
</div>
|
|
120
120
|
),
|
|
121
|
-
code: `import { Banner } from "@
|
|
121
|
+
code: `import { Banner } from "@varialkit/banner";
|
|
122
122
|
|
|
123
123
|
export function Example() {
|
|
124
124
|
return (
|
|
@@ -171,8 +171,8 @@ export function Example() {
|
|
|
171
171
|
onDismiss={() => undefined}
|
|
172
172
|
/>
|
|
173
173
|
),
|
|
174
|
-
code: `import { Banner } from "@
|
|
175
|
-
import { Button } from "@
|
|
174
|
+
code: `import { Banner } from "@varialkit/banner";
|
|
175
|
+
import { Button } from "@varialkit/button";
|
|
176
176
|
|
|
177
177
|
export function Example() {
|
|
178
178
|
return (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varialkit/banner",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"./examples": "./examples.tsx"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@varialkit/icons": "0.1.
|
|
13
|
-
"@varialkit/button": "0.1.
|
|
12
|
+
"@varialkit/icons": "0.1.3",
|
|
13
|
+
"@varialkit/button": "0.1.3"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"src",
|
package/src/Banner.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from "react";
|
|
2
|
-
import { Icon } from "@
|
|
3
|
-
import type { IconProps } from "@
|
|
2
|
+
import { Icon } from "@varialkit/icons";
|
|
3
|
+
import type { IconProps } from "@varialkit/icons";
|
|
4
4
|
import type { BannerProps, BannerVariant } from "./Banner.types";
|
|
5
5
|
import "./Banner.scss";
|
|
6
6
|
|
package/src/Banner.types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type { IconProps } from "@
|
|
2
|
+
import type { IconProps } from "@varialkit/icons";
|
|
3
3
|
|
|
4
4
|
export type BannerVariant = "neutral" | "info" | "success" | "warning" | "destructive";
|
|
5
5
|
export type BannerRadius = "default" | "none" | "full";
|