@varialkit/editabletitle 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.
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import type { ReactElement } from "react";
3
- import { iconNames } from "@solara/icons";
4
- import type { SolaraIconName } from "@solara/icons";
3
+ import { iconNames } from "@varialkit/icons";
4
+ import type { SolaraIconName } from "@varialkit/icons";
5
5
  import { EditableTitle } from "../src/EditableTitle";
6
6
  import type { EditableTitleSize, EditableTitleWeight } from "../src/EditableTitle.types";
7
7
 
@@ -98,7 +98,7 @@ export const stories: Record<string, StoryDefinition> = {
98
98
  <EditableTitle title="Heading 2XL" onSave={simulateSave} size="2xl" />
99
99
  </div>
100
100
  ),
101
- code: `import { EditableTitle } from "@solara/editabletitle";
101
+ code: `import { EditableTitle } from "@varialkit/editabletitle";
102
102
 
103
103
  const simulateSave = async (nextTitle: string) => {
104
104
  await new Promise((resolve) => setTimeout(resolve, 350));
@@ -130,7 +130,7 @@ export function Example() {
130
130
  weight="medium"
131
131
  />
132
132
  ),
133
- code: `import { EditableTitle } from "@solara/editabletitle";
133
+ code: `import { EditableTitle } from "@varialkit/editabletitle";
134
134
 
135
135
  const simulateSave = async (nextTitle: string) => {
136
136
  await new Promise((resolve) => setTimeout(resolve, 350));
@@ -158,7 +158,7 @@ export function Example() {
158
158
  <EditableTitle title="Launch plan" onSave={simulateSave} iconLeft="arrow_line_up_16" />
159
159
  </div>
160
160
  ),
161
- code: `import { EditableTitle } from "@solara/editabletitle";
161
+ code: `import { EditableTitle } from "@varialkit/editabletitle";
162
162
 
163
163
  const simulateSave = async (nextTitle: string) => {
164
164
  await new Promise((resolve) => setTimeout(resolve, 350));
@@ -183,7 +183,7 @@ export function Example() {
183
183
  <EditableTitle title="This is a long title that should wrap" onSave={simulateSave} fullWidth />
184
184
  </div>
185
185
  ),
186
- code: `import { EditableTitle } from "@solara/editabletitle";
186
+ code: `import { EditableTitle } from "@varialkit/editabletitle";
187
187
 
188
188
  const simulateSave = async (nextTitle: string) => {
189
189
  await new Promise((resolve) => setTimeout(resolve, 350));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varialkit/editabletitle",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -9,7 +9,7 @@
9
9
  "./examples": "./examples/index.tsx"
10
10
  },
11
11
  "dependencies": {
12
- "@varialkit/icons": "0.1.1"
12
+ "@varialkit/icons": "0.1.3"
13
13
  },
14
14
  "files": [
15
15
  "src",
@@ -1,6 +1,6 @@
1
1
  import React, { forwardRef, useEffect, useRef, useState } from "react";
2
- import { Icon } from "@solara/icons";
3
- import type { IconProps } from "@solara/icons";
2
+ import { Icon } from "@varialkit/icons";
3
+ import type { IconProps } from "@varialkit/icons";
4
4
  import type { EditableTitleProps } from "./EditableTitle.types";
5
5
  import "./EditableTitle.scss";
6
6
 
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { IconProps } from "@solara/icons";
2
+ import type { IconProps } from "@varialkit/icons";
3
3
 
4
4
  export type EditableTitleSize =
5
5
  | "xs"