@k8o/arte-odyssey 2.0.2 → 3.1.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 +9 -10
- package/dist/components/card/card.stories.js +22 -10
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/card/index.js +6 -2
- package/dist/components/card/interactive-card.js +8 -9
- package/dist/components/card/type.d.ts +1 -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/drawer.d.ts +3 -2
- package/dist/components/drawer/drawer.js +25 -15
- 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 +1 -0
- 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 +107 -6
- package/dist/components/icons/lucide.d.ts +5 -0
- package/dist/components/icons/lucide.js +65 -0
- 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.d.ts +1 -1
- package/dist/components/modal/modal.js +22 -2
- 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/dist/styles/index.css +31 -0
- package/package.json +71 -23
|
@@ -1,6 +1,107 @@
|
|
|
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
|
+
AccessibilityIcon,
|
|
6
|
+
AIIcon,
|
|
7
|
+
AlertIcon,
|
|
8
|
+
AtomIcon,
|
|
9
|
+
BadIcon,
|
|
10
|
+
BlogIcon,
|
|
11
|
+
BoringIcon,
|
|
12
|
+
CheckIcon,
|
|
13
|
+
ChevronIcon,
|
|
14
|
+
CloseIcon,
|
|
15
|
+
ColorContrastIcon,
|
|
16
|
+
ColorInfoIcon,
|
|
17
|
+
CopyIcon,
|
|
18
|
+
DarkModeIcon,
|
|
19
|
+
DifficultIcon,
|
|
20
|
+
EasyIcon,
|
|
21
|
+
ExternalLinkIcon,
|
|
22
|
+
FormIcon,
|
|
23
|
+
GoodIcon,
|
|
24
|
+
HistoryIcon,
|
|
25
|
+
InformativeIcon,
|
|
26
|
+
InterestingIcon,
|
|
27
|
+
LightModeIcon,
|
|
28
|
+
LinkIcon,
|
|
29
|
+
ListIcon,
|
|
30
|
+
LocationIcon,
|
|
31
|
+
MailIcon,
|
|
32
|
+
MinusIcon,
|
|
33
|
+
MixedColorIcon,
|
|
34
|
+
NavigationMenuIcon,
|
|
35
|
+
NewsIcon,
|
|
36
|
+
PaletteIcon,
|
|
37
|
+
PlusIcon,
|
|
38
|
+
PrepareIcon,
|
|
39
|
+
PublishDateIcon,
|
|
40
|
+
RSSIcon,
|
|
41
|
+
SendIcon,
|
|
42
|
+
ShallowIcon,
|
|
43
|
+
ShieldCheckIcon,
|
|
44
|
+
SlideIcon,
|
|
45
|
+
SparklesIcon,
|
|
46
|
+
SubscribeIcon,
|
|
47
|
+
TableIcon,
|
|
48
|
+
TagIcon,
|
|
49
|
+
UpdateDateIcon,
|
|
50
|
+
ViewIcon
|
|
51
|
+
} from "./lucide";
|
|
52
|
+
import { QiitaIcon } from "./qiita";
|
|
53
|
+
import { TwitterIcon } from "./twitter";
|
|
54
|
+
export {
|
|
55
|
+
AIIcon,
|
|
56
|
+
AccessibilityIcon,
|
|
57
|
+
AlertIcon,
|
|
58
|
+
ArteOdyssey,
|
|
59
|
+
AtomIcon,
|
|
60
|
+
BadIcon,
|
|
61
|
+
BlogIcon,
|
|
62
|
+
BoringIcon,
|
|
63
|
+
CheckIcon,
|
|
64
|
+
ChevronIcon,
|
|
65
|
+
CloseIcon,
|
|
66
|
+
ColorContrastIcon,
|
|
67
|
+
ColorInfoIcon,
|
|
68
|
+
CopyIcon,
|
|
69
|
+
DarkModeIcon,
|
|
70
|
+
DifficultIcon,
|
|
71
|
+
EasyIcon,
|
|
72
|
+
ExternalLinkIcon,
|
|
73
|
+
FormIcon,
|
|
74
|
+
GitHubIcon,
|
|
75
|
+
GoodIcon,
|
|
76
|
+
HistoryIcon,
|
|
77
|
+
InformativeIcon,
|
|
78
|
+
InterestingIcon,
|
|
79
|
+
LightModeIcon,
|
|
80
|
+
LinkIcon,
|
|
81
|
+
ListIcon,
|
|
82
|
+
LocationIcon,
|
|
83
|
+
Logo,
|
|
84
|
+
LogoIcon,
|
|
85
|
+
MailIcon,
|
|
86
|
+
MinusIcon,
|
|
87
|
+
MixedColorIcon,
|
|
88
|
+
NavigationMenuIcon,
|
|
89
|
+
NewsIcon,
|
|
90
|
+
PaletteIcon,
|
|
91
|
+
PlusIcon,
|
|
92
|
+
PrepareIcon,
|
|
93
|
+
PublishDateIcon,
|
|
94
|
+
QiitaIcon,
|
|
95
|
+
RSSIcon,
|
|
96
|
+
SendIcon,
|
|
97
|
+
ShallowIcon,
|
|
98
|
+
ShieldCheckIcon,
|
|
99
|
+
SlideIcon,
|
|
100
|
+
SparklesIcon,
|
|
101
|
+
SubscribeIcon,
|
|
102
|
+
TableIcon,
|
|
103
|
+
TagIcon,
|
|
104
|
+
TwitterIcon,
|
|
105
|
+
UpdateDateIcon,
|
|
106
|
+
ViewIcon
|
|
107
|
+
};
|
|
@@ -47,4 +47,9 @@ export declare const InformativeIcon: FC<IconProps>;
|
|
|
47
47
|
export declare const ShallowIcon: FC<IconProps>;
|
|
48
48
|
export declare const EasyIcon: FC<IconProps>;
|
|
49
49
|
export declare const DifficultIcon: FC<IconProps>;
|
|
50
|
+
export declare const AtomIcon: FC<IconProps>;
|
|
51
|
+
export declare const PaletteIcon: FC<IconProps>;
|
|
52
|
+
export declare const ShieldCheckIcon: FC<IconProps>;
|
|
53
|
+
export declare const AccessibilityIcon: FC<IconProps>;
|
|
54
|
+
export declare const SparklesIcon: FC<IconProps>;
|
|
50
55
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import {
|
|
3
|
+
Accessibility,
|
|
3
4
|
AlignRight,
|
|
4
5
|
Angry,
|
|
5
6
|
Annoyed,
|
|
7
|
+
Atom,
|
|
6
8
|
Bell,
|
|
7
9
|
Blend,
|
|
8
10
|
Bookmark,
|
|
@@ -34,12 +36,15 @@ import {
|
|
|
34
36
|
Minus,
|
|
35
37
|
MoonStar,
|
|
36
38
|
PaintBucket,
|
|
39
|
+
Palette,
|
|
37
40
|
Plus,
|
|
38
41
|
Presentation,
|
|
39
42
|
Rocket,
|
|
40
43
|
Rss,
|
|
41
44
|
Send,
|
|
45
|
+
ShieldCheck,
|
|
42
46
|
Smile,
|
|
47
|
+
Sparkles,
|
|
43
48
|
Sun,
|
|
44
49
|
Table2,
|
|
45
50
|
Tag,
|
|
@@ -524,9 +529,66 @@ const DifficultIcon = ({ size = "md" }) => {
|
|
|
524
529
|
}
|
|
525
530
|
);
|
|
526
531
|
};
|
|
532
|
+
const AtomIcon = ({ size = "md" }) => {
|
|
533
|
+
return /* @__PURE__ */ jsx(
|
|
534
|
+
BaseIcon,
|
|
535
|
+
{
|
|
536
|
+
renderItem: (props) => {
|
|
537
|
+
return /* @__PURE__ */ jsx(Atom, { ...props });
|
|
538
|
+
},
|
|
539
|
+
size
|
|
540
|
+
}
|
|
541
|
+
);
|
|
542
|
+
};
|
|
543
|
+
const PaletteIcon = ({ size = "md" }) => {
|
|
544
|
+
return /* @__PURE__ */ jsx(
|
|
545
|
+
BaseIcon,
|
|
546
|
+
{
|
|
547
|
+
renderItem: (props) => {
|
|
548
|
+
return /* @__PURE__ */ jsx(Palette, { ...props });
|
|
549
|
+
},
|
|
550
|
+
size
|
|
551
|
+
}
|
|
552
|
+
);
|
|
553
|
+
};
|
|
554
|
+
const ShieldCheckIcon = ({ size = "md" }) => {
|
|
555
|
+
return /* @__PURE__ */ jsx(
|
|
556
|
+
BaseIcon,
|
|
557
|
+
{
|
|
558
|
+
renderItem: (props) => {
|
|
559
|
+
return /* @__PURE__ */ jsx(ShieldCheck, { ...props });
|
|
560
|
+
},
|
|
561
|
+
size
|
|
562
|
+
}
|
|
563
|
+
);
|
|
564
|
+
};
|
|
565
|
+
const AccessibilityIcon = ({ size = "md" }) => {
|
|
566
|
+
return /* @__PURE__ */ jsx(
|
|
567
|
+
BaseIcon,
|
|
568
|
+
{
|
|
569
|
+
renderItem: (props) => {
|
|
570
|
+
return /* @__PURE__ */ jsx(Accessibility, { ...props });
|
|
571
|
+
},
|
|
572
|
+
size
|
|
573
|
+
}
|
|
574
|
+
);
|
|
575
|
+
};
|
|
576
|
+
const SparklesIcon = ({ size = "md" }) => {
|
|
577
|
+
return /* @__PURE__ */ jsx(
|
|
578
|
+
BaseIcon,
|
|
579
|
+
{
|
|
580
|
+
renderItem: (props) => {
|
|
581
|
+
return /* @__PURE__ */ jsx(Sparkles, { ...props });
|
|
582
|
+
},
|
|
583
|
+
size
|
|
584
|
+
}
|
|
585
|
+
);
|
|
586
|
+
};
|
|
527
587
|
export {
|
|
528
588
|
AIIcon,
|
|
589
|
+
AccessibilityIcon,
|
|
529
590
|
AlertIcon,
|
|
591
|
+
AtomIcon,
|
|
530
592
|
BadIcon,
|
|
531
593
|
BlogIcon,
|
|
532
594
|
BoringIcon,
|
|
@@ -554,13 +616,16 @@ export {
|
|
|
554
616
|
MixedColorIcon,
|
|
555
617
|
NavigationMenuIcon,
|
|
556
618
|
NewsIcon,
|
|
619
|
+
PaletteIcon,
|
|
557
620
|
PlusIcon,
|
|
558
621
|
PrepareIcon,
|
|
559
622
|
PublishDateIcon,
|
|
560
623
|
RSSIcon,
|
|
561
624
|
SendIcon,
|
|
562
625
|
ShallowIcon,
|
|
626
|
+
ShieldCheckIcon,
|
|
563
627
|
SlideIcon,
|
|
628
|
+
SparklesIcon,
|
|
564
629
|
SubscribeIcon,
|
|
565
630
|
TableIcon,
|
|
566
631
|
TagIcon,
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
1
|
+
export { Accordion } from './accordion';
|
|
2
|
+
export { Alert } from './alert';
|
|
3
|
+
export { Anchor } from './anchor';
|
|
4
|
+
export { BaselineStatus } from './baseline-status';
|
|
5
|
+
export { Breadcrumb } from './breadcrumb';
|
|
6
|
+
export { Button } from './button';
|
|
7
|
+
export { Card, InteractiveCard } from './card';
|
|
8
|
+
export { Code } from './code';
|
|
9
|
+
export { Content, Dialog } from './dialog';
|
|
10
|
+
export { Drawer } from './drawer';
|
|
11
|
+
export { DropdownMenu } from './dropdown-menu';
|
|
12
|
+
export { ErrorBoundary } from './error-boundary';
|
|
13
|
+
export { Autocomplete } from './form/autocomplete';
|
|
14
|
+
export { Checkbox } from './form/checkbox';
|
|
15
|
+
export { FileField, FileFieldProvider } from './form/file-field';
|
|
16
|
+
export { FormControl } from './form/form-control';
|
|
17
|
+
export { NumberField } from './form/number-field';
|
|
18
|
+
export { Radio } from './form/radio';
|
|
19
|
+
export { RangeField } from './form/range-field';
|
|
20
|
+
export { Select } from './form/select';
|
|
21
|
+
export { TextField } from './form/text-field';
|
|
22
|
+
export { Textarea } from './form/textarea';
|
|
23
|
+
export { Heading } from './heading';
|
|
24
|
+
export { IconButton } from './icon-button';
|
|
25
|
+
export { IconLink } from './icon-link';
|
|
26
|
+
export { AIIcon, AlertIcon, ArteOdyssey, BadIcon, BlogIcon, BoringIcon, CheckIcon, ChevronIcon, CloseIcon, ColorContrastIcon, ColorInfoIcon, CopyIcon, DarkModeIcon, DifficultIcon, EasyIcon, ExternalLinkIcon, FormIcon, GitHubIcon, GoodIcon, HistoryIcon, InformativeIcon, InterestingIcon, LightModeIcon, LinkIcon, ListIcon, LocationIcon, Logo, LogoIcon, MailIcon, MinusIcon, MixedColorIcon, NavigationMenuIcon, NewsIcon, PlusIcon, PrepareIcon, PublishDateIcon, QiitaIcon, RSSIcon, SendIcon, ShallowIcon, SlideIcon, SubscribeIcon, TableIcon, TagIcon, TwitterIcon, UpdateDateIcon, ViewIcon, } from './icons';
|
|
27
|
+
export { LinkButton } from './link-button';
|
|
28
|
+
export { ListBox } from './list-box';
|
|
29
|
+
export { Modal } from './modal';
|
|
30
|
+
export { Popover, useOpenContext } from './popover';
|
|
31
|
+
export { Progress } from './progress';
|
|
32
|
+
export { ArteOdysseyProvider, PortalRootProvider, usePortalRoot, } from './providers';
|
|
33
|
+
export { ScrollLinked } from './scroll-linked';
|
|
34
|
+
export { Separator } from './separator';
|
|
35
|
+
export { Tabs } from './tabs';
|
|
36
|
+
export { TextTag } from './text-tag';
|
|
37
|
+
export { ToastProvider, useToast } from './toast';
|
|
38
|
+
export { Tooltip } from './tooltip';
|
package/dist/components/index.js
CHANGED
|
@@ -1,38 +1,183 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import { Accordion } from "./accordion";
|
|
2
|
+
import { Alert } from "./alert";
|
|
3
|
+
import { Anchor } from "./anchor";
|
|
4
|
+
import { BaselineStatus } from "./baseline-status";
|
|
5
|
+
import { Breadcrumb } from "./breadcrumb";
|
|
6
|
+
import { Button } from "./button";
|
|
7
|
+
import { Card, InteractiveCard } from "./card";
|
|
8
|
+
import { Code } from "./code";
|
|
9
|
+
import { Content, Dialog } from "./dialog";
|
|
10
|
+
import { Drawer } from "./drawer";
|
|
11
|
+
import { DropdownMenu } from "./dropdown-menu";
|
|
12
|
+
import { ErrorBoundary } from "./error-boundary";
|
|
13
|
+
import { Autocomplete } from "./form/autocomplete";
|
|
14
|
+
import { Checkbox } from "./form/checkbox";
|
|
15
|
+
import { FileField, FileFieldProvider } from "./form/file-field";
|
|
16
|
+
import { FormControl } from "./form/form-control";
|
|
17
|
+
import { NumberField } from "./form/number-field";
|
|
18
|
+
import { Radio } from "./form/radio";
|
|
19
|
+
import { RangeField } from "./form/range-field";
|
|
20
|
+
import { Select } from "./form/select";
|
|
21
|
+
import { TextField } from "./form/text-field";
|
|
22
|
+
import { Textarea } from "./form/textarea";
|
|
23
|
+
import { Heading } from "./heading";
|
|
24
|
+
import { IconButton } from "./icon-button";
|
|
25
|
+
import { IconLink } from "./icon-link";
|
|
26
|
+
import {
|
|
27
|
+
AIIcon,
|
|
28
|
+
AlertIcon,
|
|
29
|
+
ArteOdyssey,
|
|
30
|
+
BadIcon,
|
|
31
|
+
BlogIcon,
|
|
32
|
+
BoringIcon,
|
|
33
|
+
CheckIcon,
|
|
34
|
+
ChevronIcon,
|
|
35
|
+
CloseIcon,
|
|
36
|
+
ColorContrastIcon,
|
|
37
|
+
ColorInfoIcon,
|
|
38
|
+
CopyIcon,
|
|
39
|
+
DarkModeIcon,
|
|
40
|
+
DifficultIcon,
|
|
41
|
+
EasyIcon,
|
|
42
|
+
ExternalLinkIcon,
|
|
43
|
+
FormIcon,
|
|
44
|
+
GitHubIcon,
|
|
45
|
+
GoodIcon,
|
|
46
|
+
HistoryIcon,
|
|
47
|
+
InformativeIcon,
|
|
48
|
+
InterestingIcon,
|
|
49
|
+
LightModeIcon,
|
|
50
|
+
LinkIcon,
|
|
51
|
+
ListIcon,
|
|
52
|
+
LocationIcon,
|
|
53
|
+
Logo,
|
|
54
|
+
LogoIcon,
|
|
55
|
+
MailIcon,
|
|
56
|
+
MinusIcon,
|
|
57
|
+
MixedColorIcon,
|
|
58
|
+
NavigationMenuIcon,
|
|
59
|
+
NewsIcon,
|
|
60
|
+
PlusIcon,
|
|
61
|
+
PrepareIcon,
|
|
62
|
+
PublishDateIcon,
|
|
63
|
+
QiitaIcon,
|
|
64
|
+
RSSIcon,
|
|
65
|
+
SendIcon,
|
|
66
|
+
ShallowIcon,
|
|
67
|
+
SlideIcon,
|
|
68
|
+
SubscribeIcon,
|
|
69
|
+
TableIcon,
|
|
70
|
+
TagIcon,
|
|
71
|
+
TwitterIcon,
|
|
72
|
+
UpdateDateIcon,
|
|
73
|
+
ViewIcon
|
|
74
|
+
} from "./icons";
|
|
75
|
+
import { LinkButton } from "./link-button";
|
|
76
|
+
import { ListBox } from "./list-box";
|
|
77
|
+
import { Modal } from "./modal";
|
|
78
|
+
import { Popover, useOpenContext } from "./popover";
|
|
79
|
+
import { Progress } from "./progress";
|
|
80
|
+
import {
|
|
81
|
+
ArteOdysseyProvider,
|
|
82
|
+
PortalRootProvider,
|
|
83
|
+
usePortalRoot
|
|
84
|
+
} from "./providers";
|
|
85
|
+
import { ScrollLinked } from "./scroll-linked";
|
|
86
|
+
import { Separator } from "./separator";
|
|
87
|
+
import { Tabs } from "./tabs";
|
|
88
|
+
import { TextTag } from "./text-tag";
|
|
89
|
+
import { ToastProvider, useToast } from "./toast";
|
|
90
|
+
import { Tooltip } from "./tooltip";
|
|
91
|
+
export {
|
|
92
|
+
AIIcon,
|
|
93
|
+
Accordion,
|
|
94
|
+
Alert,
|
|
95
|
+
AlertIcon,
|
|
96
|
+
Anchor,
|
|
97
|
+
ArteOdyssey,
|
|
98
|
+
ArteOdysseyProvider,
|
|
99
|
+
Autocomplete,
|
|
100
|
+
BadIcon,
|
|
101
|
+
BaselineStatus,
|
|
102
|
+
BlogIcon,
|
|
103
|
+
BoringIcon,
|
|
104
|
+
Breadcrumb,
|
|
105
|
+
Button,
|
|
106
|
+
Card,
|
|
107
|
+
CheckIcon,
|
|
108
|
+
Checkbox,
|
|
109
|
+
ChevronIcon,
|
|
110
|
+
CloseIcon,
|
|
111
|
+
Code,
|
|
112
|
+
ColorContrastIcon,
|
|
113
|
+
ColorInfoIcon,
|
|
114
|
+
Content,
|
|
115
|
+
CopyIcon,
|
|
116
|
+
DarkModeIcon,
|
|
117
|
+
Dialog,
|
|
118
|
+
DifficultIcon,
|
|
119
|
+
Drawer,
|
|
120
|
+
DropdownMenu,
|
|
121
|
+
EasyIcon,
|
|
122
|
+
ErrorBoundary,
|
|
123
|
+
ExternalLinkIcon,
|
|
124
|
+
FileField,
|
|
125
|
+
FileFieldProvider,
|
|
126
|
+
FormControl,
|
|
127
|
+
FormIcon,
|
|
128
|
+
GitHubIcon,
|
|
129
|
+
GoodIcon,
|
|
130
|
+
Heading,
|
|
131
|
+
HistoryIcon,
|
|
132
|
+
IconButton,
|
|
133
|
+
IconLink,
|
|
134
|
+
InformativeIcon,
|
|
135
|
+
InteractiveCard,
|
|
136
|
+
InterestingIcon,
|
|
137
|
+
LightModeIcon,
|
|
138
|
+
LinkButton,
|
|
139
|
+
LinkIcon,
|
|
140
|
+
ListBox,
|
|
141
|
+
ListIcon,
|
|
142
|
+
LocationIcon,
|
|
143
|
+
Logo,
|
|
144
|
+
LogoIcon,
|
|
145
|
+
MailIcon,
|
|
146
|
+
MinusIcon,
|
|
147
|
+
MixedColorIcon,
|
|
148
|
+
Modal,
|
|
149
|
+
NavigationMenuIcon,
|
|
150
|
+
NewsIcon,
|
|
151
|
+
NumberField,
|
|
152
|
+
PlusIcon,
|
|
153
|
+
Popover,
|
|
154
|
+
PortalRootProvider,
|
|
155
|
+
PrepareIcon,
|
|
156
|
+
Progress,
|
|
157
|
+
PublishDateIcon,
|
|
158
|
+
QiitaIcon,
|
|
159
|
+
RSSIcon,
|
|
160
|
+
Radio,
|
|
161
|
+
RangeField,
|
|
162
|
+
ScrollLinked,
|
|
163
|
+
Select,
|
|
164
|
+
SendIcon,
|
|
165
|
+
Separator,
|
|
166
|
+
ShallowIcon,
|
|
167
|
+
SlideIcon,
|
|
168
|
+
SubscribeIcon,
|
|
169
|
+
TableIcon,
|
|
170
|
+
Tabs,
|
|
171
|
+
TagIcon,
|
|
172
|
+
TextField,
|
|
173
|
+
TextTag,
|
|
174
|
+
Textarea,
|
|
175
|
+
ToastProvider,
|
|
176
|
+
Tooltip,
|
|
177
|
+
TwitterIcon,
|
|
178
|
+
UpdateDateIcon,
|
|
179
|
+
ViewIcon,
|
|
180
|
+
useOpenContext,
|
|
181
|
+
usePortalRoot,
|
|
182
|
+
useToast
|
|
183
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { LinkButton } from './link-button';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ListBox } from './list-box';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Modal } from './modal';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FC, type PropsWithChildren, type RefObject } from 'react';
|
|
2
2
|
export declare const Modal: FC<PropsWithChildren<{
|
|
3
3
|
ref?: RefObject<HTMLDialogElement | null>;
|
|
4
|
-
type?: 'center' | 'bottom' | 'right';
|
|
4
|
+
type?: 'center' | 'bottom' | 'right' | 'left';
|
|
5
5
|
defaultOpen?: boolean;
|
|
6
6
|
isOpen?: boolean;
|
|
7
7
|
onClose?: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
import * as motion from "motion/react-client";
|
|
3
4
|
import {
|
|
@@ -62,6 +63,24 @@ const rightVariants = {
|
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
};
|
|
66
|
+
const leftVariants = {
|
|
67
|
+
open: {
|
|
68
|
+
opacity: 1,
|
|
69
|
+
x: 0,
|
|
70
|
+
transition: {
|
|
71
|
+
duration: 0.3,
|
|
72
|
+
ease: [0.4, 0, 0.2, 1]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
closed: {
|
|
76
|
+
opacity: 0,
|
|
77
|
+
x: "-100%",
|
|
78
|
+
transition: {
|
|
79
|
+
duration: 0.3,
|
|
80
|
+
ease: [0.4, 0, 0.2, 1]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
65
84
|
const Modal = ({ ref, type = "center", defaultOpen, isOpen, onClose, children }) => {
|
|
66
85
|
const dialogRef = useRef(null);
|
|
67
86
|
const [dialogOpen, setDialogOpen] = useState(defaultOpen ?? false);
|
|
@@ -98,7 +117,8 @@ const Modal = ({ ref, type = "center", defaultOpen, isOpen, onClose, children })
|
|
|
98
117
|
"border-border-mute bg-bg-base shadow-md backdrop:bg-back-drop",
|
|
99
118
|
type === "center" && "m-auto max-h-lg w-5/6 max-w-2xl rounded-lg dark:border",
|
|
100
119
|
type === "bottom" && "mt-auto w-screen max-w-screen rounded-t-lg dark:border-t",
|
|
101
|
-
type === "right" && "ml-auto
|
|
120
|
+
type === "right" && "ml-auto h-svh max-h-none w-screen max-w-sm rounded-l-lg dark:border-l",
|
|
121
|
+
type === "left" && "mr-auto h-svh max-h-none w-screen max-w-sm rounded-r-lg dark:border-r"
|
|
102
122
|
),
|
|
103
123
|
exit: "closed",
|
|
104
124
|
initial: "closed",
|
|
@@ -109,7 +129,7 @@ const Modal = ({ ref, type = "center", defaultOpen, isOpen, onClose, children })
|
|
|
109
129
|
},
|
|
110
130
|
onClose: realOnClose,
|
|
111
131
|
ref: realRef,
|
|
112
|
-
variants: type === "center" ? centerVariants : type === "bottom" ? bottomVariants : rightVariants,
|
|
132
|
+
variants: type === "center" ? centerVariants : type === "bottom" ? bottomVariants : type === "left" ? leftVariants : rightVariants,
|
|
113
133
|
children: /* @__PURE__ */ jsx(ToastProvider, { portalRef: realRef, position: "absolute", children })
|
|
114
134
|
}
|
|
115
135
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Popover, useOpenContext } from './popover';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Progress } from './progress';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { ArteOdysseyProvider } from './arte-odyssey-provider';
|
|
2
|
+
export { PortalRootProvider, usePortalRoot } from './portal-root';
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ArteOdysseyProvider } from "./arte-odyssey-provider";
|
|
2
|
+
import { PortalRootProvider, usePortalRoot } from "./portal-root";
|
|
3
|
+
export {
|
|
4
|
+
ArteOdysseyProvider,
|
|
5
|
+
PortalRootProvider,
|
|
6
|
+
usePortalRoot
|
|
7
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ScrollLinked } from './scroll-linked';
|