@highpixel-co/palda-design-system 0.4.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/LICENSE +21 -0
- package/NOTICE +93 -0
- package/README.md +49 -0
- package/dist/chunk-EYFL232L.js +0 -0
- package/dist/chunk-GPCPGABI.js +976 -0
- package/dist/chunk-KMOB23O7.js +0 -0
- package/dist/chunk-Q4UXASZH.js +170 -0
- package/dist/chunk-TWYJ2UTC.js +1876 -0
- package/dist/icons.d.ts +128 -0
- package/dist/icons.js +129 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +186 -0
- package/dist/patterns.d.ts +162 -0
- package/dist/patterns.js +20 -0
- package/dist/styles.css +2193 -0
- package/dist/tokens.d.ts +290 -0
- package/dist/tokens.js +463 -0
- package/dist/ui.d.ts +243 -0
- package/dist/ui.js +44 -0
- package/package.json +56 -0
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { SVGProps } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const BlankIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
5
|
+
|
|
6
|
+
declare const SearchIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
7
|
+
|
|
8
|
+
declare const FilterIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
9
|
+
|
|
10
|
+
declare const InfoIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
11
|
+
|
|
12
|
+
declare const DashboardIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
13
|
+
|
|
14
|
+
declare const CloseIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare const HomeIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
17
|
+
|
|
18
|
+
declare const ReportIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
19
|
+
|
|
20
|
+
declare const ProductIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
21
|
+
|
|
22
|
+
declare const ChevronUpIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
23
|
+
|
|
24
|
+
declare const ChevronDownIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
25
|
+
|
|
26
|
+
declare const ChevronLeftIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
27
|
+
|
|
28
|
+
declare const ChevronRightIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
29
|
+
|
|
30
|
+
declare const ArrowRightIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare const ArrowLeftIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
33
|
+
|
|
34
|
+
declare const PersonIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
35
|
+
|
|
36
|
+
declare const PlusIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
37
|
+
|
|
38
|
+
declare const CheckIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
39
|
+
|
|
40
|
+
declare const AlertIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
41
|
+
|
|
42
|
+
declare const AlarmIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
43
|
+
|
|
44
|
+
declare const CardIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
45
|
+
|
|
46
|
+
declare const HistoryIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
47
|
+
|
|
48
|
+
declare const LogoutIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
49
|
+
|
|
50
|
+
declare const ExternalLinkIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
51
|
+
|
|
52
|
+
declare const MenuIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
53
|
+
|
|
54
|
+
declare const HelpIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
55
|
+
|
|
56
|
+
declare const MoreVerticalIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
57
|
+
|
|
58
|
+
declare const RefreshIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
59
|
+
|
|
60
|
+
declare const SendIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
61
|
+
|
|
62
|
+
declare const PencilIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
63
|
+
|
|
64
|
+
declare const TrashIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
65
|
+
|
|
66
|
+
declare const UploadIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
67
|
+
|
|
68
|
+
declare const CopyIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
69
|
+
|
|
70
|
+
declare const LinkIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
71
|
+
|
|
72
|
+
declare const EyeIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
73
|
+
|
|
74
|
+
declare const EyeOffIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
75
|
+
|
|
76
|
+
declare const PauseIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
77
|
+
|
|
78
|
+
declare const CameraIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
79
|
+
|
|
80
|
+
declare const SlidersIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
81
|
+
|
|
82
|
+
declare const TypeIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
83
|
+
|
|
84
|
+
declare const UnplugIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
85
|
+
|
|
86
|
+
declare const StoreIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
87
|
+
|
|
88
|
+
declare const MessageIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
89
|
+
|
|
90
|
+
declare const SmartphoneIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
91
|
+
|
|
92
|
+
declare const MonitorIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
93
|
+
|
|
94
|
+
declare const PhoneIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
95
|
+
|
|
96
|
+
declare const TruckIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
97
|
+
|
|
98
|
+
declare const ImageIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
99
|
+
|
|
100
|
+
declare const CableIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
101
|
+
|
|
102
|
+
declare const MousePointerClickIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
103
|
+
|
|
104
|
+
declare const TrendingUpIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
105
|
+
|
|
106
|
+
declare const LockIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
107
|
+
|
|
108
|
+
declare const KeyIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
109
|
+
|
|
110
|
+
declare const ShieldCheckIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
111
|
+
|
|
112
|
+
declare const GiftIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
113
|
+
|
|
114
|
+
declare const StarIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
115
|
+
|
|
116
|
+
declare const SparklesIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
117
|
+
|
|
118
|
+
declare const ThumbsUpIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
119
|
+
|
|
120
|
+
declare const LightbulbIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
121
|
+
|
|
122
|
+
declare const TimerIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
123
|
+
|
|
124
|
+
declare const LoadingIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
125
|
+
|
|
126
|
+
declare const SuccessIcon: (props: SVGProps<SVGSVGElement>) => react.JSX.Element;
|
|
127
|
+
|
|
128
|
+
export { AlarmIcon, AlertIcon, ArrowLeftIcon, ArrowRightIcon, BlankIcon, CableIcon, CameraIcon, CardIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, DashboardIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FilterIcon, GiftIcon, HelpIcon, HistoryIcon, HomeIcon, ImageIcon, InfoIcon, KeyIcon, LightbulbIcon, LinkIcon, LoadingIcon, LockIcon, LogoutIcon, MenuIcon, MessageIcon, MonitorIcon, MoreVerticalIcon, MousePointerClickIcon, PauseIcon, PencilIcon, PersonIcon, PhoneIcon, PlusIcon, ProductIcon, RefreshIcon, ReportIcon, SearchIcon, SendIcon, ShieldCheckIcon, SlidersIcon, SmartphoneIcon, SparklesIcon, StarIcon, StoreIcon, SuccessIcon, ThumbsUpIcon, TimerIcon, TrashIcon, TrendingUpIcon, TruckIcon, TypeIcon, UnplugIcon, UploadIcon };
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import "./chunk-KMOB23O7.js";
|
|
2
|
+
import {
|
|
3
|
+
AlarmIcon,
|
|
4
|
+
AlertIcon,
|
|
5
|
+
ArrowLeftIcon,
|
|
6
|
+
ArrowRightIcon,
|
|
7
|
+
BlankIcon,
|
|
8
|
+
CableIcon,
|
|
9
|
+
CameraIcon,
|
|
10
|
+
CardIcon,
|
|
11
|
+
CheckIcon,
|
|
12
|
+
ChevronDownIcon,
|
|
13
|
+
ChevronLeftIcon,
|
|
14
|
+
ChevronRightIcon,
|
|
15
|
+
ChevronUpIcon,
|
|
16
|
+
CloseIcon,
|
|
17
|
+
CopyIcon,
|
|
18
|
+
DashboardIcon,
|
|
19
|
+
ExternalLinkIcon,
|
|
20
|
+
EyeIcon,
|
|
21
|
+
EyeOffIcon,
|
|
22
|
+
FilterIcon,
|
|
23
|
+
GiftIcon,
|
|
24
|
+
HelpIcon,
|
|
25
|
+
HistoryIcon,
|
|
26
|
+
HomeIcon,
|
|
27
|
+
ImageIcon,
|
|
28
|
+
InfoIcon,
|
|
29
|
+
KeyIcon,
|
|
30
|
+
LightbulbIcon,
|
|
31
|
+
LinkIcon,
|
|
32
|
+
LoadingIcon,
|
|
33
|
+
LockIcon,
|
|
34
|
+
LogoutIcon,
|
|
35
|
+
MenuIcon,
|
|
36
|
+
MessageIcon,
|
|
37
|
+
MonitorIcon,
|
|
38
|
+
MoreVerticalIcon,
|
|
39
|
+
MousePointerClickIcon,
|
|
40
|
+
PauseIcon,
|
|
41
|
+
PencilIcon,
|
|
42
|
+
PersonIcon,
|
|
43
|
+
PhoneIcon,
|
|
44
|
+
PlusIcon,
|
|
45
|
+
ProductIcon,
|
|
46
|
+
RefreshIcon,
|
|
47
|
+
ReportIcon,
|
|
48
|
+
SearchIcon,
|
|
49
|
+
SendIcon,
|
|
50
|
+
ShieldCheckIcon,
|
|
51
|
+
SlidersIcon,
|
|
52
|
+
SmartphoneIcon,
|
|
53
|
+
SparklesIcon,
|
|
54
|
+
StarIcon,
|
|
55
|
+
StoreIcon,
|
|
56
|
+
SuccessIcon,
|
|
57
|
+
ThumbsUpIcon,
|
|
58
|
+
TimerIcon,
|
|
59
|
+
TrashIcon,
|
|
60
|
+
TrendingUpIcon,
|
|
61
|
+
TruckIcon,
|
|
62
|
+
TypeIcon,
|
|
63
|
+
UnplugIcon,
|
|
64
|
+
UploadIcon
|
|
65
|
+
} from "./chunk-TWYJ2UTC.js";
|
|
66
|
+
export {
|
|
67
|
+
AlarmIcon,
|
|
68
|
+
AlertIcon,
|
|
69
|
+
ArrowLeftIcon,
|
|
70
|
+
ArrowRightIcon,
|
|
71
|
+
BlankIcon,
|
|
72
|
+
CableIcon,
|
|
73
|
+
CameraIcon,
|
|
74
|
+
CardIcon,
|
|
75
|
+
CheckIcon,
|
|
76
|
+
ChevronDownIcon,
|
|
77
|
+
ChevronLeftIcon,
|
|
78
|
+
ChevronRightIcon,
|
|
79
|
+
ChevronUpIcon,
|
|
80
|
+
CloseIcon,
|
|
81
|
+
CopyIcon,
|
|
82
|
+
DashboardIcon,
|
|
83
|
+
ExternalLinkIcon,
|
|
84
|
+
EyeIcon,
|
|
85
|
+
EyeOffIcon,
|
|
86
|
+
FilterIcon,
|
|
87
|
+
GiftIcon,
|
|
88
|
+
HelpIcon,
|
|
89
|
+
HistoryIcon,
|
|
90
|
+
HomeIcon,
|
|
91
|
+
ImageIcon,
|
|
92
|
+
InfoIcon,
|
|
93
|
+
KeyIcon,
|
|
94
|
+
LightbulbIcon,
|
|
95
|
+
LinkIcon,
|
|
96
|
+
LoadingIcon,
|
|
97
|
+
LockIcon,
|
|
98
|
+
LogoutIcon,
|
|
99
|
+
MenuIcon,
|
|
100
|
+
MessageIcon,
|
|
101
|
+
MonitorIcon,
|
|
102
|
+
MoreVerticalIcon,
|
|
103
|
+
MousePointerClickIcon,
|
|
104
|
+
PauseIcon,
|
|
105
|
+
PencilIcon,
|
|
106
|
+
PersonIcon,
|
|
107
|
+
PhoneIcon,
|
|
108
|
+
PlusIcon,
|
|
109
|
+
ProductIcon,
|
|
110
|
+
RefreshIcon,
|
|
111
|
+
ReportIcon,
|
|
112
|
+
SearchIcon,
|
|
113
|
+
SendIcon,
|
|
114
|
+
ShieldCheckIcon,
|
|
115
|
+
SlidersIcon,
|
|
116
|
+
SmartphoneIcon,
|
|
117
|
+
SparklesIcon,
|
|
118
|
+
StarIcon,
|
|
119
|
+
StoreIcon,
|
|
120
|
+
SuccessIcon,
|
|
121
|
+
ThumbsUpIcon,
|
|
122
|
+
TimerIcon,
|
|
123
|
+
TrashIcon,
|
|
124
|
+
TrendingUpIcon,
|
|
125
|
+
TruckIcon,
|
|
126
|
+
TypeIcon,
|
|
127
|
+
UnplugIcon,
|
|
128
|
+
UploadIcon
|
|
129
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AlarmIcon, AlertIcon, ArrowLeftIcon, ArrowRightIcon, BlankIcon, CableIcon, CameraIcon, CardIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, DashboardIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FilterIcon, GiftIcon, HelpIcon, HistoryIcon, HomeIcon, ImageIcon, InfoIcon, KeyIcon, LightbulbIcon, LinkIcon, LoadingIcon, LockIcon, LogoutIcon, MenuIcon, MessageIcon, MonitorIcon, MoreVerticalIcon, MousePointerClickIcon, PauseIcon, PencilIcon, PersonIcon, PhoneIcon, PlusIcon, ProductIcon, RefreshIcon, ReportIcon, SearchIcon, SendIcon, ShieldCheckIcon, SlidersIcon, SmartphoneIcon, SparklesIcon, StarIcon, StoreIcon, SuccessIcon, ThumbsUpIcon, TimerIcon, TrashIcon, TrendingUpIcon, TruckIcon, TypeIcon, UnplugIcon, UploadIcon } from './icons.js';
|
|
2
|
+
export { AppShell, AppShellProps, BottomBar, BottomBarProps, Card, CardProps, CardTone, EmptyState, EmptyStateProps, FormSection, FormSectionProps, ListRow, ListRowProps, LivePreview, LivePreviewProps, LivePreviewStatus } from './patterns.js';
|
|
3
|
+
export { Alert, AlertProps, AlertVariant, Badge, BadgeProps, BadgeSize, BadgeVariant, Button, ButtonProps, ButtonSize, ButtonVariant, Checkbox, CheckboxProps, Chip, ChipProps, ChipSize, ChipVariant, DropdownButton, DropdownButtonAlign, DropdownButtonItem, DropdownButtonProps, DropdownButtonVariant, IconButton, IconButtonProps, IconButtonSize, IconButtonVariant, Link, LinkProps, LinkSize, LinkVariant, Modal, ModalActions, ModalActionsProps, ModalProps, NavigationButton, NavigationButtonProps, ProgressBar, ProgressBarProps, Radio, RadioProps, Switch, SwitchProps, SwitchSize, Tab, TabProps, TextField, TextFieldProps, TextFieldSize, TextFieldVariant, ToastOptions, ToastVariant, Toaster, ToasterPlacement, ToasterProps, Tooltip, TooltipPlacement, TooltipProps, toast } from './ui.js';
|
|
4
|
+
import 'react';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import "./chunk-KMOB23O7.js";
|
|
2
|
+
import {
|
|
3
|
+
AppShell,
|
|
4
|
+
BottomBar,
|
|
5
|
+
Card,
|
|
6
|
+
EmptyState,
|
|
7
|
+
FormSection,
|
|
8
|
+
ListRow,
|
|
9
|
+
LivePreview
|
|
10
|
+
} from "./chunk-Q4UXASZH.js";
|
|
11
|
+
import "./chunk-EYFL232L.js";
|
|
12
|
+
import {
|
|
13
|
+
Alert,
|
|
14
|
+
Badge,
|
|
15
|
+
Button,
|
|
16
|
+
Checkbox,
|
|
17
|
+
Chip,
|
|
18
|
+
DropdownButton,
|
|
19
|
+
IconButton,
|
|
20
|
+
Link,
|
|
21
|
+
Modal,
|
|
22
|
+
ModalActions,
|
|
23
|
+
NavigationButton,
|
|
24
|
+
ProgressBar,
|
|
25
|
+
Radio,
|
|
26
|
+
Switch,
|
|
27
|
+
Tab,
|
|
28
|
+
TextField,
|
|
29
|
+
Toaster,
|
|
30
|
+
Tooltip,
|
|
31
|
+
toast
|
|
32
|
+
} from "./chunk-GPCPGABI.js";
|
|
33
|
+
import {
|
|
34
|
+
AlarmIcon,
|
|
35
|
+
AlertIcon,
|
|
36
|
+
ArrowLeftIcon,
|
|
37
|
+
ArrowRightIcon,
|
|
38
|
+
BlankIcon,
|
|
39
|
+
CableIcon,
|
|
40
|
+
CameraIcon,
|
|
41
|
+
CardIcon,
|
|
42
|
+
CheckIcon,
|
|
43
|
+
ChevronDownIcon,
|
|
44
|
+
ChevronLeftIcon,
|
|
45
|
+
ChevronRightIcon,
|
|
46
|
+
ChevronUpIcon,
|
|
47
|
+
CloseIcon,
|
|
48
|
+
CopyIcon,
|
|
49
|
+
DashboardIcon,
|
|
50
|
+
ExternalLinkIcon,
|
|
51
|
+
EyeIcon,
|
|
52
|
+
EyeOffIcon,
|
|
53
|
+
FilterIcon,
|
|
54
|
+
GiftIcon,
|
|
55
|
+
HelpIcon,
|
|
56
|
+
HistoryIcon,
|
|
57
|
+
HomeIcon,
|
|
58
|
+
ImageIcon,
|
|
59
|
+
InfoIcon,
|
|
60
|
+
KeyIcon,
|
|
61
|
+
LightbulbIcon,
|
|
62
|
+
LinkIcon,
|
|
63
|
+
LoadingIcon,
|
|
64
|
+
LockIcon,
|
|
65
|
+
LogoutIcon,
|
|
66
|
+
MenuIcon,
|
|
67
|
+
MessageIcon,
|
|
68
|
+
MonitorIcon,
|
|
69
|
+
MoreVerticalIcon,
|
|
70
|
+
MousePointerClickIcon,
|
|
71
|
+
PauseIcon,
|
|
72
|
+
PencilIcon,
|
|
73
|
+
PersonIcon,
|
|
74
|
+
PhoneIcon,
|
|
75
|
+
PlusIcon,
|
|
76
|
+
ProductIcon,
|
|
77
|
+
RefreshIcon,
|
|
78
|
+
ReportIcon,
|
|
79
|
+
SearchIcon,
|
|
80
|
+
SendIcon,
|
|
81
|
+
ShieldCheckIcon,
|
|
82
|
+
SlidersIcon,
|
|
83
|
+
SmartphoneIcon,
|
|
84
|
+
SparklesIcon,
|
|
85
|
+
StarIcon,
|
|
86
|
+
StoreIcon,
|
|
87
|
+
SuccessIcon,
|
|
88
|
+
ThumbsUpIcon,
|
|
89
|
+
TimerIcon,
|
|
90
|
+
TrashIcon,
|
|
91
|
+
TrendingUpIcon,
|
|
92
|
+
TruckIcon,
|
|
93
|
+
TypeIcon,
|
|
94
|
+
UnplugIcon,
|
|
95
|
+
UploadIcon
|
|
96
|
+
} from "./chunk-TWYJ2UTC.js";
|
|
97
|
+
export {
|
|
98
|
+
AlarmIcon,
|
|
99
|
+
Alert,
|
|
100
|
+
AlertIcon,
|
|
101
|
+
AppShell,
|
|
102
|
+
ArrowLeftIcon,
|
|
103
|
+
ArrowRightIcon,
|
|
104
|
+
Badge,
|
|
105
|
+
BlankIcon,
|
|
106
|
+
BottomBar,
|
|
107
|
+
Button,
|
|
108
|
+
CableIcon,
|
|
109
|
+
CameraIcon,
|
|
110
|
+
Card,
|
|
111
|
+
CardIcon,
|
|
112
|
+
CheckIcon,
|
|
113
|
+
Checkbox,
|
|
114
|
+
ChevronDownIcon,
|
|
115
|
+
ChevronLeftIcon,
|
|
116
|
+
ChevronRightIcon,
|
|
117
|
+
ChevronUpIcon,
|
|
118
|
+
Chip,
|
|
119
|
+
CloseIcon,
|
|
120
|
+
CopyIcon,
|
|
121
|
+
DashboardIcon,
|
|
122
|
+
DropdownButton,
|
|
123
|
+
EmptyState,
|
|
124
|
+
ExternalLinkIcon,
|
|
125
|
+
EyeIcon,
|
|
126
|
+
EyeOffIcon,
|
|
127
|
+
FilterIcon,
|
|
128
|
+
FormSection,
|
|
129
|
+
GiftIcon,
|
|
130
|
+
HelpIcon,
|
|
131
|
+
HistoryIcon,
|
|
132
|
+
HomeIcon,
|
|
133
|
+
IconButton,
|
|
134
|
+
ImageIcon,
|
|
135
|
+
InfoIcon,
|
|
136
|
+
KeyIcon,
|
|
137
|
+
LightbulbIcon,
|
|
138
|
+
Link,
|
|
139
|
+
LinkIcon,
|
|
140
|
+
ListRow,
|
|
141
|
+
LivePreview,
|
|
142
|
+
LoadingIcon,
|
|
143
|
+
LockIcon,
|
|
144
|
+
LogoutIcon,
|
|
145
|
+
MenuIcon,
|
|
146
|
+
MessageIcon,
|
|
147
|
+
Modal,
|
|
148
|
+
ModalActions,
|
|
149
|
+
MonitorIcon,
|
|
150
|
+
MoreVerticalIcon,
|
|
151
|
+
MousePointerClickIcon,
|
|
152
|
+
NavigationButton,
|
|
153
|
+
PauseIcon,
|
|
154
|
+
PencilIcon,
|
|
155
|
+
PersonIcon,
|
|
156
|
+
PhoneIcon,
|
|
157
|
+
PlusIcon,
|
|
158
|
+
ProductIcon,
|
|
159
|
+
ProgressBar,
|
|
160
|
+
Radio,
|
|
161
|
+
RefreshIcon,
|
|
162
|
+
ReportIcon,
|
|
163
|
+
SearchIcon,
|
|
164
|
+
SendIcon,
|
|
165
|
+
ShieldCheckIcon,
|
|
166
|
+
SlidersIcon,
|
|
167
|
+
SmartphoneIcon,
|
|
168
|
+
SparklesIcon,
|
|
169
|
+
StarIcon,
|
|
170
|
+
StoreIcon,
|
|
171
|
+
SuccessIcon,
|
|
172
|
+
Switch,
|
|
173
|
+
Tab,
|
|
174
|
+
TextField,
|
|
175
|
+
ThumbsUpIcon,
|
|
176
|
+
TimerIcon,
|
|
177
|
+
Toaster,
|
|
178
|
+
Tooltip,
|
|
179
|
+
TrashIcon,
|
|
180
|
+
TrendingUpIcon,
|
|
181
|
+
TruckIcon,
|
|
182
|
+
TypeIcon,
|
|
183
|
+
UnplugIcon,
|
|
184
|
+
UploadIcon,
|
|
185
|
+
toast
|
|
186
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface AppShellProps {
|
|
5
|
+
/** 바디. 페이지 제목과 본문이 여기 들어간다. 좌우 여백은 shell이 준다. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** 하단에 고정되는 액션 바. `BottomBar`를 넣는 자리다. */
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
/** 사이드바 위쪽. 로고와 nav 항목이 온다. */
|
|
10
|
+
sidebar?: ReactNode;
|
|
11
|
+
/** 사이드바 아래쪽에 붙는 것. 로그아웃 같은 자리다. */
|
|
12
|
+
sidebarFooter?: ReactNode;
|
|
13
|
+
/** 화면 전역 상태를 켜고 끄는 바. 있으면 상단 행 아래에 accent 틴트로 깔린다. */
|
|
14
|
+
statusBar?: ReactNode;
|
|
15
|
+
/** 콘텐츠 안 상단 행. 컨텍스트 스위처와 계정이 온다. */
|
|
16
|
+
topRow?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 모든 화면이 쓰는 틀이다. **사이드바(전체 높이) + 콘텐츠** 구성이고, 사이드바 위를 덮는 전역
|
|
20
|
+
* 상단 바는 없다 (`docs/LAYOUT.md`).
|
|
21
|
+
*
|
|
22
|
+
* 콘텐츠는 세로 3단이다.
|
|
23
|
+
* 1. `topRow` — 인-콘텐츠 상단 행. 좌우 여백 `--palda-layout-inset`
|
|
24
|
+
* 2. `statusBar` — 상태·활성화 바. `accent/subtle` 틴트
|
|
25
|
+
* 3. `children` — 바디. 좌우 `--palda-layout-page-margin`, 상단 `space-8`, 자식 사이 `gap-xl`
|
|
26
|
+
*
|
|
27
|
+
* 각 단은 **배경이 남은 폭을 다 쓰고(풀블리드), 안쪽 내용만 `--palda-layout-content-width`로 묶여
|
|
28
|
+
* 가운데 정렬**된다. 그래서 화면이 넓어져도 틴트 바가 중간에서 끊기지 않는다.
|
|
29
|
+
*
|
|
30
|
+
* **페이지 제목은 상단 행이 아니라 바디 안에 둔다.** 자기 자신은 loading·empty·error를 갖지
|
|
31
|
+
* 않는다. 틀은 늘 그려지고 상태는 안에 놓이는 것이 가진다.
|
|
32
|
+
*/
|
|
33
|
+
declare function AppShell({ children, footer, sidebar, sidebarFooter, statusBar, topRow, }: AppShellProps): react.JSX.Element;
|
|
34
|
+
|
|
35
|
+
interface BottomBarProps {
|
|
36
|
+
/** 오른쪽 끝 액션. 저장·취소 버튼을 넣는다. */
|
|
37
|
+
children: ReactNode;
|
|
38
|
+
/** 왼쪽에 놓이는 상태 문구. 저장되지 않은 변경 안내 같은 것. */
|
|
39
|
+
status?: ReactNode;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 화면 아래에 붙어 페이지 전체의 액션을 담는 바다. `AppShell`의 `footer`에 넣는다.
|
|
43
|
+
*
|
|
44
|
+
* `AppShell`의 다른 단과 같이 **배경은 풀블리드이고 안쪽 내용만 `--palda-layout-content-width`로
|
|
45
|
+
* 묶여 가운데 정렬**된다. 그래서 넓은 화면에서 바가 중간에서 끊기지 않는다.
|
|
46
|
+
*
|
|
47
|
+
* 상태를 스스로 갖지 않는다. 진행 중이라는 표시는 안에 놓이는 Button의 `disabled`로 낸다.
|
|
48
|
+
*/
|
|
49
|
+
declare function BottomBar({ children, status }: BottomBarProps): react.JSX.Element;
|
|
50
|
+
|
|
51
|
+
type CardTone = 'plain' | 'filled';
|
|
52
|
+
interface CardProps {
|
|
53
|
+
/** 제목 줄 오른쪽 끝에 놓이는 액션. `onClick`을 준 카드에는 쓰지 않는다. */
|
|
54
|
+
action?: ReactNode;
|
|
55
|
+
children: ReactNode;
|
|
56
|
+
description?: ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* 카드의 채움. 보더와 여백은 둘 다 같고 면 색만 갈린다.
|
|
59
|
+
* - `plain`(기본) — 흰 면. 읽는 것이 가장 밝다는 기본값을 따른다.
|
|
60
|
+
* - `filled` — 옅은 회색 필. 한 화면에서 앞으로 끌어낼 카드에만 쓴다.
|
|
61
|
+
* `ListRow`의 `tone`과 같은 축이고 같은 뜻이다.
|
|
62
|
+
*/
|
|
63
|
+
tone?: CardTone;
|
|
64
|
+
/** 본문 아래 디바이더 뒤에 놓이는 영역. */
|
|
65
|
+
footer?: ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* 주면 카드 전체가 **고를 수 있는** button이 된다. `selected`와 항상 짝으로 쓴다.
|
|
68
|
+
* "누를 수 있다"가 아니라 "고를 수 있다"는 뜻이라, 모달을 여는 것 같은 액션에는 쓰지 않는다 —
|
|
69
|
+
* `aria-pressed`가 붙어 잘못된 상태를 알린다. 여는 것은 카드 안의 `Button`이 한다.
|
|
70
|
+
*/
|
|
71
|
+
onClick?: () => void;
|
|
72
|
+
/** 골라진 상태. accent 보더로 표시된다. */
|
|
73
|
+
selected?: boolean;
|
|
74
|
+
title?: ReactNode;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 보더를 가진 면이다. **섹션을 묶는 데 쓰지 않는다** — 그 자리는 `FormSection`이다.
|
|
78
|
+
*
|
|
79
|
+
* 쓰는 자리는 둘뿐이다 (0011, `docs/DESIGN_GRAMMAR.md`).
|
|
80
|
+
* 1. **고르는 카드** — 템플릿 카드, 옵션 카드. `onClick`과 `selected`를 항상 짝으로 쓴다.
|
|
81
|
+
* 누르면 열리는 카드는 여기가 아니다. 갈리는 기준은 같은 문서의 §세 번째 질문에 있다.
|
|
82
|
+
* 2. **페이지 바디 최상위**에 놓이는 요약 블록 — 섹션당 최대 1개. 섹션 안의 요약 행은 이것이
|
|
83
|
+
* 아니라 `ListRow`의 `tone="filled"`다. 갈리는 기준은 같은 문서의 §두 번째 질문에 있다.
|
|
84
|
+
*
|
|
85
|
+
* 그림자를 갖지 않는다. 떠 있는 표면이 아니기 때문이다.
|
|
86
|
+
*/
|
|
87
|
+
declare function Card({ action, children, description, footer, onClick, selected, title, tone, }: CardProps): react.JSX.Element;
|
|
88
|
+
|
|
89
|
+
interface EmptyStateProps {
|
|
90
|
+
actionLabel?: string;
|
|
91
|
+
description: string;
|
|
92
|
+
icon?: ReactNode;
|
|
93
|
+
onAction?: () => void;
|
|
94
|
+
title: string;
|
|
95
|
+
}
|
|
96
|
+
declare function EmptyState({ actionLabel, description, icon, onAction, title }: EmptyStateProps): react.JSX.Element;
|
|
97
|
+
|
|
98
|
+
interface FormSectionProps {
|
|
99
|
+
children: ReactNode;
|
|
100
|
+
description?: ReactNode;
|
|
101
|
+
/** 섹션 전체에 걸린 오류. 개별 필드 오류는 TextField의 `error`를 쓴다. */
|
|
102
|
+
error?: ReactNode;
|
|
103
|
+
/** 섹션 아래 액션. 저장·초기화 버튼을 넣는다. */
|
|
104
|
+
footer?: ReactNode;
|
|
105
|
+
title: ReactNode;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 입력 필드를 제목 아래로 묶는 폼의 한 덩어리다.
|
|
109
|
+
*
|
|
110
|
+
* 필드 사이 간격만 잡고 필드 자체는 그리지 않는다. 라벨과 컨트롤의 간격은 `TextField`가 갖고
|
|
111
|
+
* 있으므로 여기서 다시 주지 않는다.
|
|
112
|
+
*/
|
|
113
|
+
declare function FormSection({ children, description, error, footer, title }: FormSectionProps): react.JSX.Element;
|
|
114
|
+
|
|
115
|
+
interface ListRowProps {
|
|
116
|
+
/** 누를 수 있는 행 오른쪽 끝의 chevron. `onClick`이 있으면 기본으로 붙는다. */
|
|
117
|
+
chevron?: boolean;
|
|
118
|
+
children?: ReactNode;
|
|
119
|
+
description?: ReactNode;
|
|
120
|
+
/** 제목 앞 아이콘이나 썸네일. */
|
|
121
|
+
leading?: ReactNode;
|
|
122
|
+
/** 자리를 잡아 두는 로딩 표시. 켜면 내용 대신 뼈대를 그린다. */
|
|
123
|
+
loading?: boolean;
|
|
124
|
+
onClick?: () => void;
|
|
125
|
+
/** 누를 수 있는 행일 때 현재 선택 여부. */
|
|
126
|
+
selected?: boolean;
|
|
127
|
+
title: ReactNode;
|
|
128
|
+
/**
|
|
129
|
+
* 행의 채움.
|
|
130
|
+
* - `plain`(기본) — 채움 없이 행 사이 디바이더로만 갈린다. 목록과 정보 나열의 기본이다.
|
|
131
|
+
* - `filled` — 옅은 회색 필. 값을 강조해 담는 요약 행 하나에만 쓴다. 보더는 없다.
|
|
132
|
+
*/
|
|
133
|
+
tone?: 'plain' | 'filled';
|
|
134
|
+
/** 행 오른쪽 끝. 상태 배지·스위치를 넣는다. chevron보다 앞에 온다. */
|
|
135
|
+
trailing?: ReactNode;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* 목록의 한 줄이다. **행을 박스로 감싸지 않는다.** 구분은 행 사이 디바이더뿐이고, 선택은 보더가
|
|
139
|
+
* 아니라 색으로 낸다 (0011, `docs/DESIGN_GRAMMAR.md`).
|
|
140
|
+
*
|
|
141
|
+
* `onClick`을 주면 누를 수 있는 행이 되어 button으로 그려지고 오른쪽 끝에 chevron이 붙는다.
|
|
142
|
+
*
|
|
143
|
+
* 목록 전체가 비었을 때와 실패했을 때는 이 컴포넌트가 아니라 `EmptyState`를 쓴다.
|
|
144
|
+
*/
|
|
145
|
+
declare function ListRow({ chevron, children, description, leading, loading, onClick, selected, title, tone, trailing, }: ListRowProps): react.JSX.Element;
|
|
146
|
+
|
|
147
|
+
type LivePreviewStatus = 'ready' | 'loading' | 'empty' | 'error';
|
|
148
|
+
interface LivePreviewProps {
|
|
149
|
+
children?: ReactNode;
|
|
150
|
+
/** `status`가 `empty`·`error`일 때 본문 대신 보여줄 문구. */
|
|
151
|
+
message?: ReactNode;
|
|
152
|
+
status?: LivePreviewStatus;
|
|
153
|
+
title: ReactNode;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* 폼 옆에 붙어 입력 결과를 그대로 비추는 패널이다. 2단 구성의 오른쪽 열이다.
|
|
157
|
+
*
|
|
158
|
+
* 폭은 고정이고 왼쪽 폼이 남는 폭을 갖는다(`docs/LAYOUT.md`). 스크롤을 따라다니도록 sticky다.
|
|
159
|
+
*/
|
|
160
|
+
declare function LivePreview({ children, message, status, title }: LivePreviewProps): react.JSX.Element;
|
|
161
|
+
|
|
162
|
+
export { AppShell, type AppShellProps, BottomBar, type BottomBarProps, Card, type CardProps, type CardTone, EmptyState, type EmptyStateProps, FormSection, type FormSectionProps, ListRow, type ListRowProps, LivePreview, type LivePreviewProps, type LivePreviewStatus };
|
package/dist/patterns.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AppShell,
|
|
3
|
+
BottomBar,
|
|
4
|
+
Card,
|
|
5
|
+
EmptyState,
|
|
6
|
+
FormSection,
|
|
7
|
+
ListRow,
|
|
8
|
+
LivePreview
|
|
9
|
+
} from "./chunk-Q4UXASZH.js";
|
|
10
|
+
import "./chunk-GPCPGABI.js";
|
|
11
|
+
import "./chunk-TWYJ2UTC.js";
|
|
12
|
+
export {
|
|
13
|
+
AppShell,
|
|
14
|
+
BottomBar,
|
|
15
|
+
Card,
|
|
16
|
+
EmptyState,
|
|
17
|
+
FormSection,
|
|
18
|
+
ListRow,
|
|
19
|
+
LivePreview
|
|
20
|
+
};
|