@varialkit/buttongroup 0.1.0 → 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 +9 -9
- package/package.json +3 -3
- package/src/ButtonGroup.tsx +2 -2
- package/src/ButtonGroup.types.ts +1 -1
package/examples.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Button } from "@
|
|
3
|
-
import type { ButtonRadius, ButtonSize, ButtonVariant } from "@
|
|
4
|
-
import { iconNames } from "@
|
|
5
|
-
import type { SolaraIconName } from "@
|
|
2
|
+
import { Button } from "@varialkit/button";
|
|
3
|
+
import type { ButtonRadius, ButtonSize, ButtonVariant } from "@varialkit/button";
|
|
4
|
+
import { iconNames } from "@varialkit/icons";
|
|
5
|
+
import type { SolaraIconName } from "@varialkit/icons";
|
|
6
6
|
import { ButtonGroup } from "./src/ButtonGroup";
|
|
7
7
|
import type { ButtonGroupOrientation } from "./src/ButtonGroup.types";
|
|
8
8
|
|
|
@@ -113,7 +113,7 @@ export const stories = {
|
|
|
113
113
|
]}
|
|
114
114
|
/>
|
|
115
115
|
),
|
|
116
|
-
code: `import { ButtonGroup } from "@
|
|
116
|
+
code: `import { ButtonGroup } from "@varialkit/buttongroup";
|
|
117
117
|
|
|
118
118
|
export function Example() {
|
|
119
119
|
return (
|
|
@@ -143,8 +143,8 @@ export function Example() {
|
|
|
143
143
|
</ButtonGroup>
|
|
144
144
|
</div>
|
|
145
145
|
),
|
|
146
|
-
code: `import { Button } from "@
|
|
147
|
-
import { ButtonGroup } from "@
|
|
146
|
+
code: `import { Button } from "@varialkit/button";
|
|
147
|
+
import { ButtonGroup } from "@varialkit/buttongroup";
|
|
148
148
|
|
|
149
149
|
export function Example() {
|
|
150
150
|
return (
|
|
@@ -170,8 +170,8 @@ export function Example() {
|
|
|
170
170
|
<Button label="Merge" />
|
|
171
171
|
</ButtonGroup>
|
|
172
172
|
),
|
|
173
|
-
code: `import { Button } from "@
|
|
174
|
-
import { ButtonGroup } from "@
|
|
173
|
+
code: `import { Button } from "@varialkit/button";
|
|
174
|
+
import { ButtonGroup } from "@varialkit/buttongroup";
|
|
175
175
|
|
|
176
176
|
export function Example() {
|
|
177
177
|
return (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varialkit/buttongroup",
|
|
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/button": "0.1.
|
|
13
|
-
"@varialkit/icons": "0.1.
|
|
12
|
+
"@varialkit/button": "0.1.3",
|
|
13
|
+
"@varialkit/icons": "0.1.3"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"src",
|
package/src/ButtonGroup.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Children, cloneElement, isValidElement, useMemo } from "react";
|
|
2
|
-
import { Button } from "@
|
|
3
|
-
import type { ButtonProps } from "@
|
|
2
|
+
import { Button } from "@varialkit/button";
|
|
3
|
+
import type { ButtonProps } from "@varialkit/button";
|
|
4
4
|
import type { ButtonGroupProps } from "./ButtonGroup.types";
|
|
5
5
|
import "./ButtonGroup.scss";
|
|
6
6
|
|
package/src/ButtonGroup.types.ts
CHANGED