@varialkit/expandcollapse 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 +6 -6
- package/package.json +3 -3
- package/src/ExpandCollapse.tsx +3 -3
- package/src/ExpandCollapse.types.ts +1 -1
package/examples.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ReactElement } from "react";
|
|
3
|
-
import { iconNames } from "@
|
|
4
|
-
import type { SolaraIconName } from "@
|
|
3
|
+
import { iconNames } from "@varialkit/icons";
|
|
4
|
+
import type { SolaraIconName } from "@varialkit/icons";
|
|
5
5
|
import { ExpandCollapse, ExpandCollapseGroup } from "./src/ExpandCollapse";
|
|
6
6
|
import type { ExpandCollapseSize } from "./src/ExpandCollapse.types";
|
|
7
7
|
|
|
@@ -125,7 +125,7 @@ export const stories: Record<string, StoryDefinition> = {
|
|
|
125
125
|
showAllLabel: "Show all",
|
|
126
126
|
collapseAllLabel: "Collapse all",
|
|
127
127
|
},
|
|
128
|
-
code: `import { ExpandCollapse, ExpandCollapseGroup } from "@
|
|
128
|
+
code: `import { ExpandCollapse, ExpandCollapseGroup } from "@varialkit/expandcollapse";
|
|
129
129
|
|
|
130
130
|
export function Example() {
|
|
131
131
|
return (
|
|
@@ -180,7 +180,7 @@ export function Example() {
|
|
|
180
180
|
showAllLabel: "Show all",
|
|
181
181
|
collapseAllLabel: "Collapse all",
|
|
182
182
|
},
|
|
183
|
-
code: `import { ExpandCollapse, ExpandCollapseGroup } from "@
|
|
183
|
+
code: `import { ExpandCollapse, ExpandCollapseGroup } from "@varialkit/expandcollapse";
|
|
184
184
|
|
|
185
185
|
export function Example() {
|
|
186
186
|
return (
|
|
@@ -227,7 +227,7 @@ export function Example() {
|
|
|
227
227
|
</ExpandCollapse>
|
|
228
228
|
</ExpandCollapseGroup>
|
|
229
229
|
),
|
|
230
|
-
code: `import { ExpandCollapse, ExpandCollapseGroup } from "@
|
|
230
|
+
code: `import { ExpandCollapse, ExpandCollapseGroup } from "@varialkit/expandcollapse";
|
|
231
231
|
|
|
232
232
|
export function Example() {
|
|
233
233
|
return (
|
|
@@ -269,7 +269,7 @@ export function Example() {
|
|
|
269
269
|
</ExpandCollapse>
|
|
270
270
|
</ExpandCollapseGroup>
|
|
271
271
|
),
|
|
272
|
-
code: `import { ExpandCollapse, ExpandCollapseGroup } from "@
|
|
272
|
+
code: `import { ExpandCollapse, ExpandCollapseGroup } from "@varialkit/expandcollapse";
|
|
273
273
|
|
|
274
274
|
export function Example() {
|
|
275
275
|
return (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varialkit/expandcollapse",
|
|
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/index.tsx"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@varialkit/
|
|
13
|
-
"@varialkit/
|
|
12
|
+
"@varialkit/button": "0.1.3",
|
|
13
|
+
"@varialkit/icons": "0.1.3"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"src",
|
package/src/ExpandCollapse.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Children, cloneElement, useLayoutEffect, useRef, useState } from "react";
|
|
2
|
-
import { Button } from "@
|
|
3
|
-
import { Icon } from "@
|
|
4
|
-
import type { IconProps } from "@
|
|
2
|
+
import { Button } from "@varialkit/button";
|
|
3
|
+
import { Icon } from "@varialkit/icons";
|
|
4
|
+
import type { IconProps } from "@varialkit/icons";
|
|
5
5
|
import type { ExpandCollapseProps, ExpandCollapseGroupProps } from "./ExpandCollapse.types";
|
|
6
6
|
import "./ExpandCollapse.scss";
|
|
7
7
|
|