@k8o/arte-odyssey 2.0.1 → 3.0.0
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/context.js +1 -0
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +4 -1
- package/dist/components/anchor/index.d.ts +1 -1
- package/dist/components/anchor/index.js +4 -1
- package/dist/components/baseline-status/index.d.ts +1 -1
- package/dist/components/baseline-status/index.js +4 -1
- package/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/components/breadcrumb/index.js +4 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +4 -1
- package/dist/components/card/card.js +4 -8
- package/dist/components/card/card.stories.js +16 -11
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/card/index.js +6 -2
- package/dist/components/card/interactive-card.js +5 -9
- package/dist/components/card/type.d.ts +0 -1
- package/dist/components/dialog/dialog.js +1 -0
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +5 -1
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.js +4 -1
- package/dist/components/dropdown-menu/index.d.ts +1 -1
- package/dist/components/dropdown-menu/index.js +4 -1
- package/dist/components/form/autocomplete/autocomplete.js +1 -0
- package/dist/components/form/autocomplete/index.d.ts +1 -1
- package/dist/components/form/autocomplete/index.js +4 -1
- package/dist/components/form/checkbox/checkbox.js +1 -0
- package/dist/components/form/checkbox/index.d.ts +1 -1
- package/dist/components/form/checkbox/index.js +4 -1
- package/dist/components/form/file-field/index.d.ts +1 -1
- package/dist/components/form/file-field/index.js +5 -1
- package/dist/components/form/form-control/form-control.js +1 -0
- package/dist/components/form/form-control/index.d.ts +1 -1
- package/dist/components/form/form-control/index.js +4 -1
- package/dist/components/form/number-field/index.d.ts +1 -1
- package/dist/components/form/number-field/index.js +4 -1
- package/dist/components/form/number-field/number-field.js +3 -2
- package/dist/components/form/radio/index.d.ts +1 -1
- package/dist/components/form/radio/index.js +4 -1
- package/dist/components/form/range-field/range-field.js +1 -0
- package/dist/components/form/select/index.d.ts +1 -1
- package/dist/components/form/select/index.js +4 -1
- package/dist/components/form/text-field/index.d.ts +1 -1
- package/dist/components/form/text-field/index.js +4 -1
- package/dist/components/form/textarea/index.d.ts +1 -1
- package/dist/components/form/textarea/index.js +4 -1
- package/dist/components/form/textarea/textarea.js +1 -0
- package/dist/components/heading/index.d.ts +1 -1
- package/dist/components/heading/index.js +4 -1
- package/dist/components/icon-button/index.d.ts +1 -1
- package/dist/components/icon-button/index.js +4 -1
- package/dist/components/icon-link/index.d.ts +1 -1
- package/dist/components/icon-link/index.js +4 -1
- package/dist/components/icons/index.d.ts +6 -6
- package/dist/components/icons/index.js +97 -6
- package/dist/components/index.d.ts +38 -38
- package/dist/components/index.js +183 -38
- package/dist/components/link-button/index.d.ts +1 -1
- package/dist/components/link-button/index.js +4 -1
- package/dist/components/list-box/index.d.ts +1 -1
- package/dist/components/list-box/index.js +4 -1
- package/dist/components/modal/index.d.ts +1 -1
- package/dist/components/modal/index.js +4 -1
- package/dist/components/modal/modal.js +1 -0
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +5 -1
- package/dist/components/progress/index.d.ts +1 -1
- package/dist/components/progress/index.js +4 -1
- package/dist/components/providers/index.d.ts +2 -2
- package/dist/components/providers/index.js +7 -2
- package/dist/components/scroll-linked/index.d.ts +1 -1
- package/dist/components/scroll-linked/index.js +4 -1
- package/dist/components/separator/index.d.ts +1 -1
- package/dist/components/separator/index.js +4 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +4 -1
- package/dist/components/text-tag/index.d.ts +1 -1
- package/dist/components/text-tag/index.js +4 -1
- package/dist/components/toast/toast.js +1 -0
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +4 -1
- package/dist/hooks/client/index.js +1 -0
- package/dist/hooks/clipboard/index.js +1 -0
- package/dist/hooks/hash/index.js +1 -0
- package/dist/hooks/index.d.ts +12 -12
- package/dist/hooks/index.js +26 -12
- package/dist/hooks/interval/index.js +1 -0
- package/dist/hooks/local-storage/index.js +1 -0
- package/dist/hooks/timeout/index.js +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +212 -2
- package/package.json +20 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Alert } from './alert';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Anchor } from './anchor';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BaselineStatus } from './baseline-status';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Breadcrumb } from './breadcrumb';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Button } from './button';
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "./../../helpers/cn";
|
|
3
3
|
const Card = ({
|
|
4
4
|
children,
|
|
5
5
|
variant = "primary",
|
|
6
|
-
title,
|
|
7
6
|
width = "full"
|
|
8
|
-
}) => /* @__PURE__ */
|
|
7
|
+
}) => /* @__PURE__ */ jsx(
|
|
9
8
|
"section",
|
|
10
9
|
{
|
|
11
10
|
className: cn(
|
|
12
|
-
"
|
|
11
|
+
"rounded-lg shadow-sm",
|
|
13
12
|
width === "full" && "w-full",
|
|
14
13
|
width === "fit" && "w-fit",
|
|
15
14
|
variant === "primary" && "bg-bg-base",
|
|
16
15
|
variant === "secondary" && "bg-bg-mute"
|
|
17
16
|
),
|
|
18
|
-
children
|
|
19
|
-
title && /* @__PURE__ */ jsx("div", { className: "bg-primary-bg/10 px-4 py-3", children: /* @__PURE__ */ jsx("p", { className: "font-bold", children: title }) }),
|
|
20
|
-
children
|
|
21
|
-
]
|
|
17
|
+
children
|
|
22
18
|
}
|
|
23
19
|
);
|
|
24
20
|
export {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "./../button";
|
|
3
|
+
import { LinkButton } from "./../link-button";
|
|
2
4
|
import { Card } from "./card";
|
|
3
5
|
import { InteractiveCard } from "./interactive-card";
|
|
4
6
|
const meta = {
|
|
@@ -12,20 +14,24 @@ const Primary = {
|
|
|
12
14
|
/* @__PURE__ */ jsx("p", { className: "mt-2 text-fg-mute", children: "\u3053\u308C\u306F\u30AB\u30FC\u30C9\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306E\u8AAC\u660E\u6587\u3067\u3059\u3002\u30B3\u30F3\u30C6\u30F3\u30C4\u3092\u56F2\u3093\u3067\u8996\u899A\u7684\u306B\u30B0\u30EB\u30FC\u30D7\u5316\u3057\u307E\u3059\u3002" })
|
|
13
15
|
] }) })
|
|
14
16
|
};
|
|
15
|
-
const WithTitle = {
|
|
16
|
-
render: () => /* @__PURE__ */ jsx(Card, { title: "\u304A\u77E5\u3089\u305B", children: /* @__PURE__ */ jsxs("div", { className: "p-4", children: [
|
|
17
|
-
/* @__PURE__ */ jsx("p", { children: "\u30B7\u30B9\u30C6\u30E0\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u306E\u304A\u77E5\u3089\u305B\u3067\u3059\u3002" }),
|
|
18
|
-
/* @__PURE__ */ jsx("p", { className: "mt-2 text-fg-mute text-sm", children: "2024\u5E741\u670820\u65E5 10:00\u301C12:00" })
|
|
19
|
-
] }) })
|
|
20
|
-
};
|
|
21
17
|
const Secondary = {
|
|
22
18
|
render: () => /* @__PURE__ */ jsx(Card, { variant: "secondary", children: /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx("p", { className: "text-fg-mute", children: "\u30BB\u30AB\u30F3\u30C0\u30EA\u30D0\u30EA\u30A8\u30FC\u30B7\u30E7\u30F3\u306F\u80CC\u666F\u8272\u304C\u5C11\u3057\u6697\u304F\u306A\u308A\u307E\u3059\u3002" }) }) })
|
|
23
19
|
};
|
|
24
20
|
const Interactive = {
|
|
25
|
-
render: () => /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */ jsx("
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
render: () => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
22
|
+
/* @__PURE__ */ jsx(InteractiveCard, { children: /* @__PURE__ */ jsxs("a", { className: "block p-4", href: "https://example.com", children: [
|
|
23
|
+
/* @__PURE__ */ jsx("h3", { className: "font-bold", children: "\u30AB\u30FC\u30C9\u5168\u4F53\u304C\u30EA\u30F3\u30AF" }),
|
|
24
|
+
/* @__PURE__ */ jsx("p", { className: "mt-2 text-fg-mute text-sm", children: "\u30AB\u30FC\u30C9\u5168\u4F53\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u9077\u79FB\u3057\u307E\u3059\u3002" })
|
|
25
|
+
] }) }),
|
|
26
|
+
/* @__PURE__ */ jsx(InteractiveCard, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 p-4", children: [
|
|
27
|
+
/* @__PURE__ */ jsx("h3", { className: "font-bold", children: "\u30AB\u30FC\u30C9\u5185\u306B\u30DC\u30BF\u30F3\u3068\u30EA\u30F3\u30AF" }),
|
|
28
|
+
/* @__PURE__ */ jsx("p", { className: "text-fg-mute text-sm", children: "\u30AB\u30FC\u30C9\u5185\u306B\u30A4\u30F3\u30BF\u30E9\u30AF\u30C6\u30A3\u30D6\u8981\u7D20\u3092\u914D\u7F6E\u3067\u304D\u307E\u3059\u3002" }),
|
|
29
|
+
/* @__PURE__ */ jsxs("nav", { className: "flex gap-2", children: [
|
|
30
|
+
/* @__PURE__ */ jsx(LinkButton, { href: "https://example.com", size: "sm", children: "\u8A73\u7D30\u3092\u898B\u308B" }),
|
|
31
|
+
/* @__PURE__ */ jsx(Button, { color: "gray", size: "sm", variant: "outlined", children: "\u4FDD\u5B58" })
|
|
32
|
+
] })
|
|
33
|
+
] }) })
|
|
34
|
+
] })
|
|
29
35
|
};
|
|
30
36
|
const FitWidth = {
|
|
31
37
|
render: () => /* @__PURE__ */ jsx(Card, { width: "fit", children: /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx("p", { children: "\u5E45\u304C\u30B3\u30F3\u30C6\u30F3\u30C4\u306B\u5408\u308F\u305B\u3066\u8ABF\u6574\u3055\u308C\u307E\u3059\u3002" }) }) })
|
|
@@ -35,6 +41,5 @@ export {
|
|
|
35
41
|
Interactive,
|
|
36
42
|
Primary,
|
|
37
43
|
Secondary,
|
|
38
|
-
WithTitle,
|
|
39
44
|
card_stories_default as default
|
|
40
45
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { Card } from './card';
|
|
2
|
+
export { InteractiveCard } from './interactive-card';
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "./../../helpers/cn";
|
|
3
3
|
const InteractiveCard = ({
|
|
4
4
|
children,
|
|
5
5
|
variant = "primary",
|
|
6
|
-
width = "full"
|
|
7
|
-
|
|
8
|
-
}) => /* @__PURE__ */ jsxs(
|
|
6
|
+
width = "full"
|
|
7
|
+
}) => /* @__PURE__ */ jsx(
|
|
9
8
|
"section",
|
|
10
9
|
{
|
|
11
10
|
className: cn(
|
|
12
|
-
"
|
|
11
|
+
"rounded-lg shadow-sm transition-transform hover:scale-[1.02] active:scale-[0.98]",
|
|
13
12
|
width === "full" && "w-full",
|
|
14
13
|
width === "fit" && "w-fit",
|
|
15
14
|
variant === "primary" && "bg-bg-base",
|
|
16
15
|
variant === "secondary" && "bg-bg-mute"
|
|
17
16
|
),
|
|
18
|
-
children
|
|
19
|
-
title && /* @__PURE__ */ jsx("div", { className: "bg-primary-bg/10 px-4 py-3", children: /* @__PURE__ */ jsx("p", { className: "font-bold", children: title }) }),
|
|
20
|
-
children
|
|
21
|
-
]
|
|
17
|
+
children
|
|
22
18
|
}
|
|
23
19
|
);
|
|
24
20
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Content, Dialog } from './dialog';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Drawer } from './drawer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { DropdownMenu } from './dropdown-menu';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Autocomplete } from './autocomplete';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Checkbox } from './checkbox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { FileField, FileFieldProvider } from './file-field';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { FormControl } from './form-control';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { NumberField } from './number-field';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { useState } from "react";
|
|
3
4
|
import { cn } from "./../../../helpers/cn";
|
|
@@ -107,7 +108,7 @@ const NumberField = ({
|
|
|
107
108
|
"button",
|
|
108
109
|
{
|
|
109
110
|
className: cn(
|
|
110
|
-
"flex w-6 grow items-center justify-center rounded-tr-
|
|
111
|
+
"flex w-6 grow items-center justify-center rounded-tr-lg border-border-base border-b border-l bg-bg-mute",
|
|
111
112
|
"disabled:cursor-not-allowed"
|
|
112
113
|
),
|
|
113
114
|
disabled: isDisabled,
|
|
@@ -132,7 +133,7 @@ const NumberField = ({
|
|
|
132
133
|
"button",
|
|
133
134
|
{
|
|
134
135
|
className: cn(
|
|
135
|
-
"flex w-6 grow items-center justify-center rounded-br-
|
|
136
|
+
"flex w-6 grow items-center justify-center rounded-br-lg border-border-base border-l bg-bg-mute",
|
|
136
137
|
"disabled:cursor-not-allowed"
|
|
137
138
|
),
|
|
138
139
|
disabled: isDisabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Radio } from './radio';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Select } from './select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { TextField } from './text-field';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Textarea } from './textarea';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Heading } from './heading';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { IconButton } from './icon-button';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { IconLink } from './icon-link';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
1
|
+
export { ArteOdyssey } from './arte-odyssey';
|
|
2
|
+
export { GitHubIcon } from './github-mark';
|
|
3
|
+
export { Logo, LogoIcon } from './logo';
|
|
4
|
+
export { AIIcon, AlertIcon, BadIcon, BlogIcon, BoringIcon, CheckIcon, ChevronIcon, CloseIcon, ColorContrastIcon, ColorInfoIcon, CopyIcon, DarkModeIcon, DifficultIcon, EasyIcon, ExternalLinkIcon, FormIcon, GoodIcon, HistoryIcon, InformativeIcon, InterestingIcon, LightModeIcon, LinkIcon, ListIcon, LocationIcon, MailIcon, MinusIcon, MixedColorIcon, NavigationMenuIcon, NewsIcon, PlusIcon, PrepareIcon, PublishDateIcon, RSSIcon, SendIcon, ShallowIcon, SlideIcon, SubscribeIcon, TableIcon, TagIcon, UpdateDateIcon, ViewIcon, } from './lucide';
|
|
5
|
+
export { QiitaIcon } from './qiita';
|
|
6
|
+
export { TwitterIcon } from './twitter';
|
|
@@ -1,6 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ArteOdyssey } from "./arte-odyssey";
|
|
2
|
+
import { GitHubIcon } from "./github-mark";
|
|
3
|
+
import { Logo, LogoIcon } from "./logo";
|
|
4
|
+
import {
|
|
5
|
+
AIIcon,
|
|
6
|
+
AlertIcon,
|
|
7
|
+
BadIcon,
|
|
8
|
+
BlogIcon,
|
|
9
|
+
BoringIcon,
|
|
10
|
+
CheckIcon,
|
|
11
|
+
ChevronIcon,
|
|
12
|
+
CloseIcon,
|
|
13
|
+
ColorContrastIcon,
|
|
14
|
+
ColorInfoIcon,
|
|
15
|
+
CopyIcon,
|
|
16
|
+
DarkModeIcon,
|
|
17
|
+
DifficultIcon,
|
|
18
|
+
EasyIcon,
|
|
19
|
+
ExternalLinkIcon,
|
|
20
|
+
FormIcon,
|
|
21
|
+
GoodIcon,
|
|
22
|
+
HistoryIcon,
|
|
23
|
+
InformativeIcon,
|
|
24
|
+
InterestingIcon,
|
|
25
|
+
LightModeIcon,
|
|
26
|
+
LinkIcon,
|
|
27
|
+
ListIcon,
|
|
28
|
+
LocationIcon,
|
|
29
|
+
MailIcon,
|
|
30
|
+
MinusIcon,
|
|
31
|
+
MixedColorIcon,
|
|
32
|
+
NavigationMenuIcon,
|
|
33
|
+
NewsIcon,
|
|
34
|
+
PlusIcon,
|
|
35
|
+
PrepareIcon,
|
|
36
|
+
PublishDateIcon,
|
|
37
|
+
RSSIcon,
|
|
38
|
+
SendIcon,
|
|
39
|
+
ShallowIcon,
|
|
40
|
+
SlideIcon,
|
|
41
|
+
SubscribeIcon,
|
|
42
|
+
TableIcon,
|
|
43
|
+
TagIcon,
|
|
44
|
+
UpdateDateIcon,
|
|
45
|
+
ViewIcon
|
|
46
|
+
} from "./lucide";
|
|
47
|
+
import { QiitaIcon } from "./qiita";
|
|
48
|
+
import { TwitterIcon } from "./twitter";
|
|
49
|
+
export {
|
|
50
|
+
AIIcon,
|
|
51
|
+
AlertIcon,
|
|
52
|
+
ArteOdyssey,
|
|
53
|
+
BadIcon,
|
|
54
|
+
BlogIcon,
|
|
55
|
+
BoringIcon,
|
|
56
|
+
CheckIcon,
|
|
57
|
+
ChevronIcon,
|
|
58
|
+
CloseIcon,
|
|
59
|
+
ColorContrastIcon,
|
|
60
|
+
ColorInfoIcon,
|
|
61
|
+
CopyIcon,
|
|
62
|
+
DarkModeIcon,
|
|
63
|
+
DifficultIcon,
|
|
64
|
+
EasyIcon,
|
|
65
|
+
ExternalLinkIcon,
|
|
66
|
+
FormIcon,
|
|
67
|
+
GitHubIcon,
|
|
68
|
+
GoodIcon,
|
|
69
|
+
HistoryIcon,
|
|
70
|
+
InformativeIcon,
|
|
71
|
+
InterestingIcon,
|
|
72
|
+
LightModeIcon,
|
|
73
|
+
LinkIcon,
|
|
74
|
+
ListIcon,
|
|
75
|
+
LocationIcon,
|
|
76
|
+
Logo,
|
|
77
|
+
LogoIcon,
|
|
78
|
+
MailIcon,
|
|
79
|
+
MinusIcon,
|
|
80
|
+
MixedColorIcon,
|
|
81
|
+
NavigationMenuIcon,
|
|
82
|
+
NewsIcon,
|
|
83
|
+
PlusIcon,
|
|
84
|
+
PrepareIcon,
|
|
85
|
+
PublishDateIcon,
|
|
86
|
+
QiitaIcon,
|
|
87
|
+
RSSIcon,
|
|
88
|
+
SendIcon,
|
|
89
|
+
ShallowIcon,
|
|
90
|
+
SlideIcon,
|
|
91
|
+
SubscribeIcon,
|
|
92
|
+
TableIcon,
|
|
93
|
+
TagIcon,
|
|
94
|
+
TwitterIcon,
|
|
95
|
+
UpdateDateIcon,
|
|
96
|
+
ViewIcon
|
|
97
|
+
};
|