@k8o/arte-odyssey 1.4.3 → 2.0.1
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/dist/components/accordion/accordion-button.js +8 -7
- package/dist/components/accordion/accordion-item.js +1 -1
- package/dist/components/accordion/accordion-panel.js +1 -1
- package/dist/components/accordion/accordion.js +1 -11
- package/dist/components/alert/alert.js +3 -4
- package/dist/components/alert/alert.stories.js +6 -2
- package/dist/components/anchor/anchor.js +3 -2
- package/dist/components/baseline-status/baseline-status.js +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +9 -2
- package/dist/components/button/button.js +6 -6
- package/dist/components/card/card.js +3 -3
- package/dist/components/card/card.stories.js +20 -18
- package/dist/components/card/interactive-card.js +4 -12
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/drawer/drawer.stories.js +6 -6
- package/dist/components/dropdown-menu/dropdown-menu.js +4 -4
- package/dist/components/dropdown-menu/dropdown-menu.stories.js +16 -16
- package/dist/components/form/autocomplete/autocomplete.js +5 -5
- package/dist/components/form/checkbox/checkbox.js +1 -1
- package/dist/components/form/file-field/file-field.js +1 -1
- package/dist/components/form/number-field/number-field.js +2 -2
- package/dist/components/form/number-field/number-field.stories.js +2 -34
- package/dist/components/form/radio/radio.d.ts +1 -0
- package/dist/components/form/radio/radio.js +2 -0
- package/dist/components/form/radio/radio.stories.js +14 -39
- package/dist/components/form/range-field/range-field.js +2 -3
- package/dist/components/form/range-field/range-field.stories.js +11 -184
- package/dist/components/form/select/select.js +1 -1
- package/dist/components/form/select/select.stories.js +1 -4
- package/dist/components/form/text-field/text-field.js +1 -1
- package/dist/components/form/text-field/text-field.stories.js +1 -5
- package/dist/components/form/textarea/textarea.js +1 -1
- package/dist/components/form/textarea/textarea.stories.js +1 -5
- package/dist/components/icon-button/icon-button.js +3 -3
- package/dist/components/icon-button/icon-button.stories.js +1 -4
- package/dist/components/icon-link/icon-link.d.ts +1 -1
- package/dist/components/icon-link/icon-link.js +3 -2
- package/dist/components/icon-link/icon-link.stories.js +7 -1
- package/dist/components/icons/icons.stories.js +0 -5
- package/dist/components/icons/index.d.ts +0 -1
- package/dist/components/icons/index.js +0 -1
- package/dist/components/link-button/link-button.d.ts +2 -1
- package/dist/components/link-button/link-button.js +9 -6
- package/dist/components/link-button/link-button.stories.js +21 -2
- package/dist/components/list-box/list-box.js +6 -8
- package/dist/components/list-box/list-box.stories.js +10 -19
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/modal/modal.stories.js +2 -2
- package/dist/components/popover/popover.stories.js +3 -3
- package/dist/components/progress/progress.js +2 -2
- package/dist/components/scroll-linked/scroll-linked.js +1 -1
- package/dist/components/scroll-linked/scroll-linked.stories.js +7 -7
- package/dist/components/separator/separator.d.ts +1 -0
- package/dist/components/separator/separator.js +21 -12
- package/dist/components/separator/separator.stories.js +12 -0
- package/dist/components/tabs/tabs.js +2 -2
- package/dist/components/tabs/tabs.stories.js +33 -26
- package/dist/components/text-tag/text-tag.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/tooltip/tooltip.stories.js +3 -3
- package/dist/styles/index.css +0 -3
- package/package.json +10 -10
- package/dist/components/icons/zenn.d.ts +0 -6
- package/dist/components/icons/zenn.js +0 -41
|
@@ -11,8 +11,8 @@ const Default = {
|
|
|
11
11
|
args: {
|
|
12
12
|
defaultOpen: true,
|
|
13
13
|
children: /* @__PURE__ */ jsxs(Dialog.Root, { children: [
|
|
14
|
-
/* @__PURE__ */ jsx(Dialog.Header, { onClose: fn(), title: "
|
|
15
|
-
/* @__PURE__ */ jsx(Dialog.Content, { children: "
|
|
14
|
+
/* @__PURE__ */ jsx(Dialog.Header, { onClose: fn(), title: "\u78BA\u8A8D" }),
|
|
15
|
+
/* @__PURE__ */ jsx(Dialog.Content, { children: /* @__PURE__ */ jsx("p", { children: "\u3053\u306E\u64CD\u4F5C\u3092\u5B9F\u884C\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F" }) })
|
|
16
16
|
] })
|
|
17
17
|
}
|
|
18
18
|
};
|
|
@@ -21,19 +21,19 @@ const Default = {
|
|
|
21
21
|
/* @__PURE__ */ jsx(
|
|
22
22
|
Popover.Trigger,
|
|
23
23
|
{
|
|
24
|
-
renderItem: (props) => /* @__PURE__ */ jsx(Button, { ...props, size: "md", type: "button", children: "
|
|
24
|
+
renderItem: (props) => /* @__PURE__ */ jsx(Button, { ...props, size: "md", type: "button", children: "\u30E1\u30CB\u30E5\u30FC" })
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
27
|
/* @__PURE__ */ jsx(
|
|
28
28
|
Popover.Content,
|
|
29
29
|
{
|
|
30
|
-
renderItem: (props) => /* @__PURE__ */ jsx("div", { className: "rounded-
|
|
30
|
+
renderItem: (props) => /* @__PURE__ */ jsx("div", { className: "rounded-lg bg-bg-mute p-4 shadow-md", ...props, children: /* @__PURE__ */ jsx("div", { role: "menuitem", children: "\u30DD\u30C3\u30D7\u30AA\u30FC\u30D0\u30FC\u306E\u30B3\u30F3\u30C6\u30F3\u30C4" }) })
|
|
31
31
|
}
|
|
32
32
|
)
|
|
33
33
|
] }),
|
|
34
34
|
play: async ({ canvas, userEvent }) => {
|
|
35
35
|
const trigger = canvas.getByRole("button", {
|
|
36
|
-
name: "
|
|
36
|
+
name: "\u30E1\u30CB\u30E5\u30FC"
|
|
37
37
|
});
|
|
38
38
|
trigger.focus();
|
|
39
39
|
await userEvent.keyboard("{Enter}");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { toPrecision } from "./../../helpers/number";
|
|
3
3
|
const Progress = ({ progress, maxProgress, minProgress = 0, label }) => {
|
|
4
|
-
return /* @__PURE__ */ jsx("div", { className: "w-full rounded-
|
|
4
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full rounded-full bg-bg-emphasize", children: /* @__PURE__ */ jsx(
|
|
5
5
|
"div",
|
|
6
6
|
{
|
|
7
7
|
"aria-label": label ?? `${toPrecision(progress / maxProgress).toString()}%`,
|
|
8
8
|
"aria-valuemax": maxProgress,
|
|
9
9
|
"aria-valuemin": minProgress,
|
|
10
10
|
"aria-valuenow": progress,
|
|
11
|
-
className: "h-4 rounded-
|
|
11
|
+
className: "h-4 rounded-full bg-primary-bg transition-all",
|
|
12
12
|
role: "progressbar",
|
|
13
13
|
style: {
|
|
14
14
|
width: `${(progress / maxProgress * 100).toString()}%`
|
|
@@ -11,7 +11,7 @@ const ScrollLinked = ({ container }) => {
|
|
|
11
11
|
return /* @__PURE__ */ jsx(
|
|
12
12
|
motion.div,
|
|
13
13
|
{
|
|
14
|
-
className: "fixed top-0 right-0 left-0 h-2 origin-left bg-primary-
|
|
14
|
+
className: "fixed top-0 right-0 left-0 h-2 origin-left bg-primary-bg",
|
|
15
15
|
style: { scaleX }
|
|
16
16
|
}
|
|
17
17
|
);
|
|
@@ -19,20 +19,20 @@ const WithContainer = {
|
|
|
19
19
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
20
20
|
"section",
|
|
21
21
|
{
|
|
22
|
-
"aria-label": "
|
|
23
|
-
className: "relative h-96 overflow-y-scroll rounded border border-
|
|
22
|
+
"aria-label": "\u30B9\u30AF\u30ED\u30FC\u30EB\u30B3\u30F3\u30C6\u30CA\u306E\u4F8B",
|
|
23
|
+
className: "relative h-96 overflow-y-scroll rounded-lg border border-border-mute",
|
|
24
24
|
ref: containerRef,
|
|
25
25
|
tabIndex: 0,
|
|
26
26
|
children: [
|
|
27
27
|
/* @__PURE__ */ jsx(Story, { args: { container: containerRef } }),
|
|
28
28
|
/* @__PURE__ */ jsxs("div", { className: "h-[200vh] p-4", children: [
|
|
29
|
-
/* @__PURE__ */ jsx("h2", { className: "mb-4 font-bold text-xl", children: "
|
|
30
|
-
/* @__PURE__ */ jsx("p", { className: "mb-4", children: "
|
|
31
|
-
/* @__PURE__ */ jsx("p", { className: "mb-4", children: "
|
|
29
|
+
/* @__PURE__ */ jsx("h2", { className: "mb-4 font-bold text-xl", children: "\u30B3\u30F3\u30C6\u30CA\u5185\u30B9\u30AF\u30ED\u30FC\u30EB\u306E\u4F8B" }),
|
|
30
|
+
/* @__PURE__ */ jsx("p", { className: "mb-4", children: "\u3053\u306E\u30B3\u30F3\u30C6\u30CA\u5185\u3092\u30B9\u30AF\u30ED\u30FC\u30EB\u3059\u308B\u3068\u3001\u4E0A\u90E8\u306B\u30D7\u30ED\u30B0\u30EC\u30B9\u30D0\u30FC\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002" }),
|
|
31
|
+
/* @__PURE__ */ jsx("p", { className: "mb-4", children: "\u30D7\u30ED\u30B0\u30EC\u30B9\u30D0\u30FC\u306F\u30A6\u30A3\u30F3\u30C9\u30A6\u3067\u306F\u306A\u304F\u3001\u3053\u306E\u30B3\u30F3\u30C6\u30CA\u306E\u30B9\u30AF\u30ED\u30FC\u30EB\u4F4D\u7F6E\u3092\u8FFD\u8DE1\u3057\u307E\u3059\u3002" }),
|
|
32
32
|
/* @__PURE__ */ jsx("div", { className: "mt-8 space-y-4", children: Array.from({ length: 20 }, (_, i) => (
|
|
33
33
|
// biome-ignore lint/suspicious/noArrayIndexKey: Static demo content
|
|
34
|
-
/* @__PURE__ */ jsxs("p", { className: "rounded bg-
|
|
35
|
-
"
|
|
34
|
+
/* @__PURE__ */ jsxs("p", { className: "rounded-lg bg-bg-mute p-4", children: [
|
|
35
|
+
"\u30B3\u30F3\u30C6\u30F3\u30C4\u30D6\u30ED\u30C3\u30AF ",
|
|
36
36
|
i + 1
|
|
37
37
|
] }, `content-${i}`)
|
|
38
38
|
)) })
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "./../../helpers/cn";
|
|
3
|
-
const Separator = ({ orientation = "horizontal" }) => {
|
|
3
|
+
const Separator = ({ orientation = "horizontal", color = "base" }) => {
|
|
4
4
|
const isVertical = orientation === "vertical";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
return (
|
|
6
|
+
// biome-ignore lint/a11y/useFocusableInteractive: decorative separator
|
|
7
|
+
// biome-ignore lint/a11y/useSemanticElements: need color prop support
|
|
8
|
+
/* @__PURE__ */ jsx(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
"aria-orientation": orientation,
|
|
12
|
+
className: cn(
|
|
13
|
+
"block",
|
|
14
|
+
{
|
|
15
|
+
"h-full w-px": isVertical,
|
|
16
|
+
"h-px w-full": !isVertical
|
|
17
|
+
},
|
|
18
|
+
color === "base" && "bg-border-base",
|
|
19
|
+
color === "mute" && "bg-border-mute",
|
|
20
|
+
color === "subtle" && "bg-border-subtle"
|
|
21
|
+
),
|
|
22
|
+
role: "separator"
|
|
23
|
+
}
|
|
24
|
+
)
|
|
16
25
|
);
|
|
17
26
|
};
|
|
18
27
|
export {
|
|
@@ -20,7 +20,19 @@ const Vertical = {
|
|
|
20
20
|
orientation: "vertical"
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
+
const ColorMute = {
|
|
24
|
+
args: {
|
|
25
|
+
color: "mute"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const ColorSubtle = {
|
|
29
|
+
args: {
|
|
30
|
+
color: "subtle"
|
|
31
|
+
}
|
|
32
|
+
};
|
|
23
33
|
export {
|
|
34
|
+
ColorMute,
|
|
35
|
+
ColorSubtle,
|
|
24
36
|
Horizontal,
|
|
25
37
|
Vertical,
|
|
26
38
|
separator_stories_default as default
|
|
@@ -78,7 +78,7 @@ const Tab = ({ id, children }) => {
|
|
|
78
78
|
"aria-controls": selectedId === id ? `${rootId}-panel-${id}` : void 0,
|
|
79
79
|
"aria-selected": selectedId === id,
|
|
80
80
|
className: cn(
|
|
81
|
-
"relative cursor-pointer rounded-
|
|
81
|
+
"relative cursor-pointer rounded-lg p-2 transition-colors",
|
|
82
82
|
"focus-visible:border-transparent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-border-info"
|
|
83
83
|
),
|
|
84
84
|
id: `${rootId}-tab-${id}`,
|
|
@@ -125,7 +125,7 @@ const Panel = ({ id, children }) => {
|
|
|
125
125
|
{
|
|
126
126
|
"aria-labelledby": `${rootId}-tab-${id}`,
|
|
127
127
|
className: cn(
|
|
128
|
-
"
|
|
128
|
+
"grow rounded-lg p-2",
|
|
129
129
|
"focus-visible:border-transparent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-border-info"
|
|
130
130
|
),
|
|
131
131
|
id: `${rootId}-panel-${id}`,
|
|
@@ -7,39 +7,46 @@ const meta = {
|
|
|
7
7
|
};
|
|
8
8
|
var tabs_stories_default = meta;
|
|
9
9
|
const Primary = {
|
|
10
|
-
render: () => /* @__PURE__ */ jsxs(Tabs.Root, { ids: ["
|
|
11
|
-
/* @__PURE__ */ jsxs(Tabs.List, { label: "
|
|
12
|
-
/* @__PURE__ */ jsx(Tabs.Tab, { id: "
|
|
13
|
-
/* @__PURE__ */ jsx(Tabs.Tab, { id: "
|
|
14
|
-
/* @__PURE__ */ jsx(Tabs.Tab, { id: "
|
|
10
|
+
render: () => /* @__PURE__ */ jsxs(Tabs.Root, { ids: ["overview", "settings", "history"], children: [
|
|
11
|
+
/* @__PURE__ */ jsxs(Tabs.List, { label: "\u8A2D\u5B9A\u30E1\u30CB\u30E5\u30FC", children: [
|
|
12
|
+
/* @__PURE__ */ jsx(Tabs.Tab, { id: "overview", children: "\u6982\u8981" }),
|
|
13
|
+
/* @__PURE__ */ jsx(Tabs.Tab, { id: "settings", children: "\u8A2D\u5B9A" }),
|
|
14
|
+
/* @__PURE__ */ jsx(Tabs.Tab, { id: "history", children: "\u5C65\u6B74" })
|
|
15
15
|
] }),
|
|
16
|
-
/* @__PURE__ */ jsx(Tabs.Panel, { id: "
|
|
17
|
-
/* @__PURE__ */ jsx(Tabs.Panel, { id: "
|
|
18
|
-
/* @__PURE__ */ jsx(Tabs.Panel, { id: "
|
|
16
|
+
/* @__PURE__ */ jsx(Tabs.Panel, { id: "overview", children: /* @__PURE__ */ jsx("p", { children: "\u3053\u3053\u306B\u6982\u8981\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002" }) }),
|
|
17
|
+
/* @__PURE__ */ jsx(Tabs.Panel, { id: "settings", children: /* @__PURE__ */ jsx("p", { children: "\u3053\u3053\u306B\u8A2D\u5B9A\u9805\u76EE\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002" }) }),
|
|
18
|
+
/* @__PURE__ */ jsx(Tabs.Panel, { id: "history", children: /* @__PURE__ */ jsx("p", { children: "\u3053\u3053\u306B\u5C65\u6B74\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002" }) })
|
|
19
19
|
] }),
|
|
20
20
|
play: async ({ canvas, userEvent }) => {
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
await expect(canvas.getByRole("tabpanel")).toHaveTextContent("
|
|
24
|
-
await userEvent.click(
|
|
25
|
-
await expect(canvas.getByRole("tabpanel")).toHaveTextContent("
|
|
26
|
-
await userEvent.click(
|
|
27
|
-
await expect(canvas.getByRole("tabpanel")).toHaveTextContent("
|
|
21
|
+
const settingsTab = canvas.getByRole("tab", { name: "\u8A2D\u5B9A" });
|
|
22
|
+
const historyTab = canvas.getByRole("tab", { name: "\u5C65\u6B74" });
|
|
23
|
+
await expect(canvas.getByRole("tabpanel")).toHaveTextContent("\u6982\u8981");
|
|
24
|
+
await userEvent.click(settingsTab);
|
|
25
|
+
await expect(canvas.getByRole("tabpanel")).toHaveTextContent("\u8A2D\u5B9A\u9805\u76EE");
|
|
26
|
+
await userEvent.click(historyTab);
|
|
27
|
+
await expect(canvas.getByRole("tabpanel")).toHaveTextContent("\u5C65\u6B74");
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
const DefaultSelected = {
|
|
31
|
-
render: () => /* @__PURE__ */ jsxs(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
render: () => /* @__PURE__ */ jsxs(
|
|
32
|
+
Tabs.Root,
|
|
33
|
+
{
|
|
34
|
+
defaultSelectedId: "settings",
|
|
35
|
+
ids: ["overview", "settings", "history"],
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ jsxs(Tabs.List, { label: "\u8A2D\u5B9A\u30E1\u30CB\u30E5\u30FC", children: [
|
|
38
|
+
/* @__PURE__ */ jsx(Tabs.Tab, { id: "overview", children: "\u6982\u8981" }),
|
|
39
|
+
/* @__PURE__ */ jsx(Tabs.Tab, { id: "settings", children: "\u8A2D\u5B9A" }),
|
|
40
|
+
/* @__PURE__ */ jsx(Tabs.Tab, { id: "history", children: "\u5C65\u6B74" })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ jsx(Tabs.Panel, { id: "overview", children: /* @__PURE__ */ jsx("p", { children: "\u3053\u3053\u306B\u6982\u8981\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002" }) }),
|
|
43
|
+
/* @__PURE__ */ jsx(Tabs.Panel, { id: "settings", children: /* @__PURE__ */ jsx("p", { children: "\u3053\u3053\u306B\u8A2D\u5B9A\u9805\u76EE\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002" }) }),
|
|
44
|
+
/* @__PURE__ */ jsx(Tabs.Panel, { id: "history", children: /* @__PURE__ */ jsx("p", { children: "\u3053\u3053\u306B\u5C65\u6B74\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002" }) })
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
),
|
|
41
48
|
play: async ({ canvas }) => {
|
|
42
|
-
await expect(canvas.getByRole("tabpanel")).toHaveTextContent("
|
|
49
|
+
await expect(canvas.getByRole("tabpanel")).toHaveTextContent("\u8A2D\u5B9A\u9805\u76EE");
|
|
43
50
|
}
|
|
44
51
|
};
|
|
45
52
|
export {
|
|
@@ -9,7 +9,7 @@ const TextTag = ({
|
|
|
9
9
|
"span",
|
|
10
10
|
{
|
|
11
11
|
className: cn(
|
|
12
|
-
"inline-block rounded-full bg-bg-mute font-medium",
|
|
12
|
+
"inline-block rounded-full bg-bg-mute font-medium transition-colors",
|
|
13
13
|
clickable && "cursor-pointer hover:bg-bg-emphasize",
|
|
14
14
|
size === "sm" && "px-2 py-0.5 text-xs",
|
|
15
15
|
size === "md" && "px-3 py-1 text-sm"
|
|
@@ -21,14 +21,14 @@ const Default = {
|
|
|
21
21
|
/* @__PURE__ */ jsx(
|
|
22
22
|
Tooltip.Trigger,
|
|
23
23
|
{
|
|
24
|
-
renderItem: (props) => /* @__PURE__ */ jsx(Button, { type: "button", ...props, children: "
|
|
24
|
+
renderItem: (props) => /* @__PURE__ */ jsx(Button, { type: "button", ...props, children: "\u30D8\u30EB\u30D7" })
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
|
-
/* @__PURE__ */ jsx(Tooltip.Content, { children: /* @__PURE__ */ jsx("p", { children: "
|
|
27
|
+
/* @__PURE__ */ jsx(Tooltip.Content, { children: /* @__PURE__ */ jsx("p", { children: "\u3053\u3053\u306B\u88DC\u8DB3\u60C5\u5831\u304C\u8868\u793A\u3055\u308C\u307E\u3059" }) })
|
|
28
28
|
] }),
|
|
29
29
|
play: async ({ canvas, userEvent }) => {
|
|
30
30
|
const trigger = canvas.getByRole("button", {
|
|
31
|
-
name: "
|
|
31
|
+
name: "\u30D8\u30EB\u30D7"
|
|
32
32
|
});
|
|
33
33
|
trigger.focus();
|
|
34
34
|
await userEvent.keyboard("{Enter}");
|
package/dist/styles/index.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k8o/arte-odyssey",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "k8o's react ui library",
|
|
5
5
|
"author": "k8o <kosakanoki@gmail.com>",
|
|
6
6
|
"keywords": [
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
"clsx": "2.1.1",
|
|
58
58
|
"esbuild": "0.27.2",
|
|
59
59
|
"lucide-react": "0.562.0",
|
|
60
|
-
"motion": "12.
|
|
61
|
-
"react-error-boundary": "6.0.
|
|
60
|
+
"motion": "12.25.0",
|
|
61
|
+
"react-error-boundary": "6.0.3",
|
|
62
62
|
"tailwind-merge": "3.4.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@chromatic-com/storybook": "4.1.3",
|
|
66
|
-
"@storybook/addon-a11y": "10.1.
|
|
67
|
-
"@storybook/addon-docs": "10.1.
|
|
68
|
-
"@storybook/addon-vitest": "10.1.
|
|
69
|
-
"@storybook/react-vite": "10.1.
|
|
66
|
+
"@storybook/addon-a11y": "10.1.11",
|
|
67
|
+
"@storybook/addon-docs": "10.1.11",
|
|
68
|
+
"@storybook/addon-vitest": "10.1.11",
|
|
69
|
+
"@storybook/react-vite": "10.1.11",
|
|
70
70
|
"@tailwindcss/postcss": "4.1.18",
|
|
71
|
-
"@types/react": "19.2.
|
|
71
|
+
"@types/react": "19.2.8",
|
|
72
72
|
"@types/react-dom": "19.2.3",
|
|
73
73
|
"@vitejs/plugin-react-swc": "4.2.2",
|
|
74
74
|
"@vitest/browser-playwright": "4.0.16",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"postcss": "8.5.6",
|
|
77
77
|
"react": "19.2.3",
|
|
78
78
|
"react-dom": "19.2.3",
|
|
79
|
-
"storybook": "10.1.
|
|
79
|
+
"storybook": "10.1.11",
|
|
80
80
|
"storybook-addon-mock-date": "2.0.0",
|
|
81
81
|
"tailwindcss": "4.1.18",
|
|
82
|
-
"vite": "7.3.
|
|
82
|
+
"vite": "7.3.1",
|
|
83
83
|
"vitest": "4.0.16",
|
|
84
84
|
"vitest-browser-react": "2.0.2"
|
|
85
85
|
},
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { BaseIcon } from "./base";
|
|
3
|
-
const Zenn = ({ className }) => {
|
|
4
|
-
return /* @__PURE__ */ jsx(
|
|
5
|
-
"svg",
|
|
6
|
-
{
|
|
7
|
-
className,
|
|
8
|
-
viewBox: "0 0 98 96",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
children: /* @__PURE__ */ jsxs("g", { fill: "#3EA8FF", children: [
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
12
|
-
"path",
|
|
13
|
-
{
|
|
14
|
-
d: "M3.9,83.3h17c0.9,0,1.7-0.5,2.2-1.2L69.9,5.2c0.6-1-0.1-2.2-1.3-2.2H52.5c-0.8,0-1.5,0.4-1.9,1.1L3.1,81.9\n C2.8,82.5,3.2,83.3,3.9,83.3z"
|
|
15
|
-
}
|
|
16
|
-
),
|
|
17
|
-
/* @__PURE__ */ jsx(
|
|
18
|
-
"path",
|
|
19
|
-
{
|
|
20
|
-
d: "M62.5,82.1l22.1-35.5c0.7-1.1-0.1-2.5-1.4-2.5h-16c-0.6,0-1.2,0.3-1.5,0.8L43,81.2c-0.6,0.9,0.1,2.1,1.2,2.1\n h16.3C61.3,83.3,62.1,82.9,62.5,82.1z"
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
|
-
] })
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
const ZennIcon = ({ size = "md" }) => {
|
|
28
|
-
return /* @__PURE__ */ jsx(
|
|
29
|
-
BaseIcon,
|
|
30
|
-
{
|
|
31
|
-
renderItem: (props) => {
|
|
32
|
-
return /* @__PURE__ */ jsx(Zenn, { ...props });
|
|
33
|
-
},
|
|
34
|
-
size
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
export {
|
|
39
|
-
Zenn,
|
|
40
|
-
ZennIcon
|
|
41
|
-
};
|