@varialkit/colorpicker 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { useState } from "react";
2
2
  import { ColorPicker, ColorPickerContent, ColorPickerPalette, ColorPickerSwatch, ColorPreview } from "./src";
3
- import { Menu } from "@solara/menu";
3
+ import { Menu } from "@varialkit/menu";
4
4
 
5
5
  export const stories = {
6
6
  triggered: {
@@ -9,7 +9,7 @@ export const stories = {
9
9
  showProps: false,
10
10
  render: () => <TriggeredExample />,
11
11
  code: `import React from "react";
12
- import { ColorPicker } from "@solara/colorpicker";
12
+ import { ColorPicker } from "@varialkit/colorpicker";
13
13
 
14
14
  export function Example() {
15
15
  const [color, setColor] = React.useState("#3b82f6");
@@ -23,7 +23,7 @@ export function Example() {
23
23
  showProps: false,
24
24
  render: () => <AdvancedMenuExample />,
25
25
  code: `import React from "react";
26
- import { ColorPicker } from "@solara/colorpicker";
26
+ import { ColorPicker } from "@varialkit/colorpicker";
27
27
 
28
28
  export function Example() {
29
29
  const [color, setColor] = React.useState("#C94B4B");
@@ -75,7 +75,7 @@ export function Example() {
75
75
  showProps: false,
76
76
  render: () => <CustomPaletteExample />,
77
77
  code: `import React from "react";
78
- import { ColorPicker } from "@solara/colorpicker";
78
+ import { ColorPicker } from "@varialkit/colorpicker";
79
79
 
80
80
  export function Example() {
81
81
  const [color, setColor] = React.useState("#ff6b6b");
@@ -98,8 +98,8 @@ export function Example() {
98
98
  showProps: false,
99
99
  render: () => <InlineExample />,
100
100
  code: `import React from "react";
101
- import { ColorPickerContent } from "@solara/colorpicker";
102
- import { Menu } from "@solara/menu";
101
+ import { ColorPickerContent } from "@varialkit/colorpicker";
102
+ import { Menu } from "@varialkit/menu";
103
103
 
104
104
  export function Example() {
105
105
  const [color, setColor] = React.useState("#22c55e");
@@ -122,7 +122,7 @@ export function Example() {
122
122
  <ColorPreview color="#000000" size="lg" shape="circle" label="Ink" />
123
123
  </div>
124
124
  ),
125
- code: `import { ColorPreview } from "@solara/colorpicker";
125
+ code: `import { ColorPreview } from "@varialkit/colorpicker";
126
126
 
127
127
  export function Example() {
128
128
  return (
@@ -163,7 +163,7 @@ export function Example() {
163
163
  </div>
164
164
  </div>
165
165
  ),
166
- code: `import { ColorPreview } from "@solara/colorpicker";
166
+ code: `import { ColorPreview } from "@varialkit/colorpicker";
167
167
 
168
168
  export function Example() {
169
169
  return (
@@ -227,7 +227,7 @@ export function Example() {
227
227
  </ColorPickerSwatch>
228
228
  </div>
229
229
  ),
230
- code: `import { ColorPickerSwatch } from "@solara/colorpicker";
230
+ code: `import { ColorPickerSwatch } from "@varialkit/colorpicker";
231
231
 
232
232
  export function Example() {
233
233
  return (
@@ -282,7 +282,7 @@ export function Example() {
282
282
  ]}
283
283
  />
284
284
  ),
285
- code: `import { ColorPickerPalette } from "@solara/colorpicker";
285
+ code: `import { ColorPickerPalette } from "@varialkit/colorpicker";
286
286
 
287
287
  export function Example() {
288
288
  return (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varialkit/colorpicker",
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",
@@ -17,8 +17,8 @@
17
17
  "react": "^19.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@varialkit/menu": "0.1.1",
21
- "@varialkit/textfield": "0.1.1"
20
+ "@varialkit/menu": "0.1.3",
21
+ "@varialkit/textfield": "0.1.3"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/react": "19.0.10",
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { Menu, MenuDropdown } from "@solara/menu";
3
- import { TextField } from "@solara/textfield";
2
+ import { Menu, MenuDropdown } from "@varialkit/menu";
3
+ import { TextField } from "@varialkit/textfield";
4
4
  import type {
5
5
  ColorPickerContentProps,
6
6
  ColorPickerPaletteEntry,
@@ -1,5 +1,5 @@
1
1
  import type React from "react";
2
- import type { MenuDropdownProps, MenuProps } from "@solara/menu";
2
+ import type { MenuDropdownProps, MenuProps } from "@varialkit/menu";
3
3
 
4
4
  export type ColorPickerSize = "sm" | "md" | "lg";
5
5
  export type ColorPickerValueFormat = "hex" | "rgba" | "hsla";