@apple-pie/slice 0.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/README.md +80 -0
- package/dist/colors.css +237 -0
- package/dist/flexBox.module.css +85 -0
- package/dist/index.esm.js +4831 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +4873 -0
- package/dist/index.js.map +1 -0
- package/dist/type.css +16 -0
- package/dist/type.module.css +161 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useMayaTheme.d.ts +7 -0
- package/dist/types/hooks/useObserveResize.d.ts +9 -0
- package/dist/types/hooks/useTheme.d.ts +2 -0
- package/dist/types/hooks/useTrackRenders.d.ts +5 -0
- package/dist/types/index.d.ts +74 -0
- package/dist/types/providers/ThemeProvider.d.ts +9 -0
- package/dist/types/providers/index.d.ts +1 -0
- package/dist/types/theme/colors/colors.d.ts +4 -0
- package/dist/types/theme/colors/types.d.ts +160 -0
- package/dist/types/theme/corners/corners.d.ts +2 -0
- package/dist/types/theme/corners/types.d.ts +10 -0
- package/dist/types/theme/index.d.ts +5 -0
- package/dist/types/theme/themes.d.ts +12 -0
- package/dist/types/theme/type/type.d.ts +2 -0
- package/dist/types/theme/type/types.d.ts +20 -0
- package/dist/types/uikit/Avatar/Avatar.d.ts +3 -0
- package/dist/types/uikit/Avatar/AvatarInline.stories.d.ts +7 -0
- package/dist/types/uikit/Avatar/_types.d.ts +19 -0
- package/dist/types/uikit/Avatar/index.d.ts +2 -0
- package/dist/types/uikit/AvatarGroup/AvatarGroup.d.ts +3 -0
- package/dist/types/uikit/AvatarGroup/_types.d.ts +21 -0
- package/dist/types/uikit/AvatarGroup/index.d.ts +2 -0
- package/dist/types/uikit/Badge/Badge.d.ts +3 -0
- package/dist/types/uikit/Badge/_types.d.ts +5 -0
- package/dist/types/uikit/Badge/index.d.ts +2 -0
- package/dist/types/uikit/CheckBox/CheckBox.d.ts +3 -0
- package/dist/types/uikit/CheckBox/_types.d.ts +8 -0
- package/dist/types/uikit/CheckBox/index.d.ts +2 -0
- package/dist/types/uikit/DivInput/DivInput.d.ts +3 -0
- package/dist/types/uikit/DivInput/_types.d.ts +21 -0
- package/dist/types/uikit/DivInput/index.d.ts +2 -0
- package/dist/types/uikit/DocIcon/DocIcons.d.ts +3 -0
- package/dist/types/uikit/DocIcon/_types.d.ts +4 -0
- package/dist/types/uikit/DocIcon/index.d.ts +2 -0
- package/dist/types/uikit/Dot/Dot.d.ts +3 -0
- package/dist/types/uikit/Dot/_types.d.ts +15 -0
- package/dist/types/uikit/Dot/index.d.ts +2 -0
- package/dist/types/uikit/DraggablePanel/DrggablePanel.d.ts +43 -0
- package/dist/types/uikit/DraggablePanel/_types.d.ts +5 -0
- package/dist/types/uikit/DraggablePanel/index.d.ts +1 -0
- package/dist/types/uikit/DropDown/DropDown.d.ts +3 -0
- package/dist/types/uikit/DropDown/_types.d.ts +31 -0
- package/dist/types/uikit/DropDown/index.d.ts +2 -0
- package/dist/types/uikit/EditorButtonBar/EditorButtonBar.d.ts +4 -0
- package/dist/types/uikit/EditorButtonBar/_Data.d.ts +12 -0
- package/dist/types/uikit/EditorButtonBar/_types.d.ts +59 -0
- package/dist/types/uikit/EditorButtonBar/index.d.ts +2 -0
- package/dist/types/uikit/ErrorSummary/ErrorSummary.d.ts +3 -0
- package/dist/types/uikit/ErrorSummary/_types.d.ts +9 -0
- package/dist/types/uikit/ErrorSummary/index.d.ts +2 -0
- package/dist/types/uikit/FlexDiv/FlexDiv.d.ts +3 -0
- package/dist/types/uikit/FlexDiv/_types.d.ts +28 -0
- package/dist/types/uikit/FlexDiv/index.d.ts +2 -0
- package/dist/types/uikit/Grouper/Grouper.d.ts +3 -0
- package/dist/types/uikit/Grouper/_types.d.ts +16 -0
- package/dist/types/uikit/Grouper/index.d.ts +2 -0
- package/dist/types/uikit/Icon/Icon.d.ts +3 -0
- package/dist/types/uikit/Icon/_types.d.ts +102 -0
- package/dist/types/uikit/Icon/iconRegistry.d.ts +16 -0
- package/dist/types/uikit/Icon/index.d.ts +2 -0
- package/dist/types/uikit/IconButton/IconButton.d.ts +3 -0
- package/dist/types/uikit/IconButton/_types.d.ts +32 -0
- package/dist/types/uikit/IconButton/index.d.ts +2 -0
- package/dist/types/uikit/Logos/Logos.d.ts +2 -0
- package/dist/types/uikit/Logos/_types.d.ts +5 -0
- package/dist/types/uikit/Logos/index.d.ts +2 -0
- package/dist/types/uikit/MessageInput/ExcerptList/ExcerptList.d.ts +2 -0
- package/dist/types/uikit/MessageInput/ExcerptList/_types.d.ts +15 -0
- package/dist/types/uikit/MessageInput/FileList/FileList.d.ts +2 -0
- package/dist/types/uikit/MessageInput/FileList/_types.d.ts +6 -0
- package/dist/types/uikit/MessageInput/InputField/MessageInput.d.ts +2 -0
- package/dist/types/uikit/MessageInput/InputField/_types.d.ts +36 -0
- package/dist/types/uikit/MessageInput/UserList/UserList.d.ts +5 -0
- package/dist/types/uikit/MessageInput/UserList/_types.d.ts +40 -0
- package/dist/types/uikit/MessageInput/_Data.d.ts +6 -0
- package/dist/types/uikit/MessageInput/_types.d.ts +42 -0
- package/dist/types/uikit/MessageInput/index.d.ts +4 -0
- package/dist/types/uikit/Overlay/Overlay.d.ts +3 -0
- package/dist/types/uikit/Overlay/_types.d.ts +9 -0
- package/dist/types/uikit/Overlay/index.d.ts +2 -0
- package/dist/types/uikit/Pager/Pager.d.ts +3 -0
- package/dist/types/uikit/Pager/_types.d.ts +10 -0
- package/dist/types/uikit/Pager/index.d.ts +2 -0
- package/dist/types/uikit/Progress/DoneCheck/DoneCheck.d.ts +3 -0
- package/dist/types/uikit/Progress/DoneCheck/_types.d.ts +11 -0
- package/dist/types/uikit/Progress/ProgressIndicator/ProgressIndicator.d.ts +3 -0
- package/dist/types/uikit/Progress/ProgressIndicator/_types.d.ts +11 -0
- package/dist/types/uikit/Progress/index.d.ts +4 -0
- package/dist/types/uikit/RadioButton/RadioButton.d.ts +3 -0
- package/dist/types/uikit/RadioButton/_types.d.ts +20 -0
- package/dist/types/uikit/RadioButton/index.d.ts +2 -0
- package/dist/types/uikit/RadioButtonList/RadioButtonList.d.ts +3 -0
- package/dist/types/uikit/RadioButtonList/_types.d.ts +20 -0
- package/dist/types/uikit/RadioButtonList/index.d.ts +2 -0
- package/dist/types/uikit/Slider/Slider.d.ts +3 -0
- package/dist/types/uikit/Slider/_types.d.ts +17 -0
- package/dist/types/uikit/Slider/index.d.ts +2 -0
- package/dist/types/uikit/Spacer/Spacer.d.ts +3 -0
- package/dist/types/uikit/Spacer/_types.d.ts +3 -0
- package/dist/types/uikit/Spacer/index.d.ts +2 -0
- package/dist/types/uikit/Switch/Switch.d.ts +3 -0
- package/dist/types/uikit/Switch/_types.d.ts +12 -0
- package/dist/types/uikit/Switch/index.d.ts +2 -0
- package/dist/types/uikit/TabBar/TabBar.d.ts +3 -0
- package/dist/types/uikit/TabBar/_types.d.ts +47 -0
- package/dist/types/uikit/TabBar/index.d.ts +2 -0
- package/dist/types/uikit/TextArea/TextArea.d.ts +3 -0
- package/dist/types/uikit/TextArea/_types.d.ts +38 -0
- package/dist/types/uikit/TextArea/index.d.ts +2 -0
- package/dist/types/uikit/Textfield/TextField.d.ts +3 -0
- package/dist/types/uikit/Textfield/_types.d.ts +77 -0
- package/dist/types/uikit/Textfield/index.d.ts +2 -0
- package/dist/types/uikit/UIButton/UIButton.d.ts +3 -0
- package/dist/types/uikit/UIButton/_types.d.ts +42 -0
- package/dist/types/uikit/UIButton/index.d.ts +2 -0
- package/dist/types/uikit/UIButtonBar/UIButtonBar.d.ts +2 -0
- package/dist/types/uikit/UIButtonBar/_types.d.ts +14 -0
- package/dist/types/uikit/UIButtonBar/index.d.ts +2 -0
- package/dist/types/uikit/UICard/UICard.d.ts +3 -0
- package/dist/types/uikit/UICard/_types.d.ts +11 -0
- package/dist/types/uikit/UICard/index.d.ts +2 -0
- package/dist/types/uikit/UIChip/UIChip.d.ts +3 -0
- package/dist/types/uikit/UIChip/_types.d.ts +19 -0
- package/dist/types/uikit/UIChip/index.d.ts +3 -0
- package/dist/types/uikit/UIFileIcon/UIFileIcon.d.ts +3 -0
- package/dist/types/uikit/UIFileIcon/_types.d.ts +17 -0
- package/dist/types/uikit/UIFileIcon/index.d.ts +2 -0
- package/dist/types/uikit/UILabel/UILabel.d.ts +2 -0
- package/dist/types/uikit/UILabel/_types.d.ts +9 -0
- package/dist/types/uikit/UILabel/index.d.ts +2 -0
- package/dist/types/uikit/sharedTypes.d.ts +21 -0
- package/dist/types/util/debounce.d.ts +10 -0
- package/dist/types/util/flexBox.d.ts +11 -0
- package/dist/types/util/utils.d.ts +33 -0
- package/package.json +74 -0
package/dist/type.css
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap");
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--font-family: "Funnel Sans";
|
|
5
|
+
--font-weight-regular: 360;
|
|
6
|
+
--font-weight-medium: 420;
|
|
7
|
+
--font-weight-bold: 480;
|
|
8
|
+
--font-size-xs: 12px;
|
|
9
|
+
--font-size-s: 14px;
|
|
10
|
+
--font-size-m: 15px;
|
|
11
|
+
--font-size-l: 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
font-family: "Funnel Sans", sans-serif;
|
|
16
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
.body-xs-regular {
|
|
2
|
+
font-family: var(--font-family), sans-serif;
|
|
3
|
+
font-weight: var(--font-weight-regular);
|
|
4
|
+
font-size: var(--font-size-xs);
|
|
5
|
+
line-height: 133.33%;
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
letter-spacing: 0.2px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.body-xs-medium {
|
|
11
|
+
font-family: var(--font-family), sans-serif;
|
|
12
|
+
font-weight: var(--font-weight-medium);
|
|
13
|
+
font-size: var(--font-size-xs);
|
|
14
|
+
line-height: 133.33%;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
letter-spacing: 0.2px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.body-xs-bold {
|
|
20
|
+
font-family: var(--font-family), sans-serif;
|
|
21
|
+
font-weight: var(--font-weight-bold);
|
|
22
|
+
font-size: var(--font-size-xs);
|
|
23
|
+
line-height: 133.33%;
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
letter-spacing: 0.25px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.body-s-regular {
|
|
29
|
+
font-family: var(--font-family), sans-serif;
|
|
30
|
+
font-weight: var(--font-weight-regular);
|
|
31
|
+
font-size: var(--font-size-s);
|
|
32
|
+
line-height: 142.86%;
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
letter-spacing: 0.15px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.body-s-medium {
|
|
38
|
+
font-family: var(--font-family), sans-serif;
|
|
39
|
+
font-weight: var(--font-weight-medium);
|
|
40
|
+
font-size: var(--font-size-s);
|
|
41
|
+
line-height: 142.86%;
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
letter-spacing: 0.15px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.body-s-bold {
|
|
47
|
+
font-family: var(--font-family), sans-serif;
|
|
48
|
+
font-weight: var(--font-weight-bold);
|
|
49
|
+
font-size: var(--font-size-s);
|
|
50
|
+
line-height: 142.86%;
|
|
51
|
+
text-decoration: none;
|
|
52
|
+
letter-spacing: 0.2px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.body-m-regular {
|
|
56
|
+
font-family: var(--font-family), sans-serif;
|
|
57
|
+
font-weight: var(--font-weight-regular);
|
|
58
|
+
font-size: var(--font-size-m);
|
|
59
|
+
line-height: 140%;
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
letter-spacing: 0.15px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.body-m-medium {
|
|
65
|
+
font-family: var(--font-family), sans-serif;
|
|
66
|
+
font-weight: var(--font-weight-medium);
|
|
67
|
+
font-size: var(--font-size-m);
|
|
68
|
+
line-height: 140%;
|
|
69
|
+
text-decoration: none;
|
|
70
|
+
letter-spacing: 0.15px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.body-m-bold {
|
|
74
|
+
font-family: var(--font-family), sans-serif;
|
|
75
|
+
font-weight: var(--font-weight-bold);
|
|
76
|
+
font-size: var(--font-size-m);
|
|
77
|
+
line-height: 140%;
|
|
78
|
+
text-decoration: none;
|
|
79
|
+
letter-spacing: 0.2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.body-l-regular {
|
|
83
|
+
font-family: var(--font-family), sans-serif;
|
|
84
|
+
font-weight: var(--font-weight-regular);
|
|
85
|
+
font-size: var(--font-size-l);
|
|
86
|
+
line-height: 162.5%;
|
|
87
|
+
text-decoration: none;
|
|
88
|
+
letter-spacing: 0.1px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.body-l-medium {
|
|
92
|
+
font-family: var(--font-family), sans-serif;
|
|
93
|
+
font-weight: var(--font-weight-medium);
|
|
94
|
+
font-size: var(--font-size-l);
|
|
95
|
+
line-height: 162.5%;
|
|
96
|
+
text-decoration: none;
|
|
97
|
+
letter-spacing: 0.1px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.body-l-bold {
|
|
101
|
+
font-family: var(--font-family), sans-serif;
|
|
102
|
+
font-weight: var(--font-weight-bold);
|
|
103
|
+
font-size: var(--font-size-l);
|
|
104
|
+
line-height: 162.5%;
|
|
105
|
+
text-decoration: none;
|
|
106
|
+
letter-spacing: 0.15px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.heading-s-bold {
|
|
110
|
+
font-family: var(--font-family), sans-serif;
|
|
111
|
+
font-weight: 650;
|
|
112
|
+
font-size: 20px;
|
|
113
|
+
line-height: 140%;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
letter-spacing: 0.2px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.heading-s-medium {
|
|
119
|
+
font-family: var(--font-family), sans-serif;
|
|
120
|
+
font-weight: 560;
|
|
121
|
+
font-size: 20px;
|
|
122
|
+
line-height: 140%;
|
|
123
|
+
text-decoration: none;
|
|
124
|
+
letter-spacing: 0.2px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.heading-m-bold {
|
|
128
|
+
font-family: var(--font-family), sans-serif;
|
|
129
|
+
font-weight: 650;
|
|
130
|
+
font-size: 24px;
|
|
131
|
+
line-height: 116.67%;
|
|
132
|
+
text-decoration: none;
|
|
133
|
+
letter-spacing: 0.2px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.heading-m-medium {
|
|
137
|
+
font-family: var(--font-family), sans-serif;
|
|
138
|
+
font-weight: 560;
|
|
139
|
+
font-size: 24px;
|
|
140
|
+
line-height: 116.67%;
|
|
141
|
+
text-decoration: none;
|
|
142
|
+
letter-spacing: 0.2px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.heading-l-medium {
|
|
146
|
+
font-family: var(--font-family), sans-serif;
|
|
147
|
+
font-weight: 560;
|
|
148
|
+
font-size: 28px;
|
|
149
|
+
line-height: 128.57%;
|
|
150
|
+
text-decoration: none;
|
|
151
|
+
letter-spacing: 0.2px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.heading-l-bold {
|
|
155
|
+
font-family: var(--font-family), sans-serif;
|
|
156
|
+
font-weight: 650;
|
|
157
|
+
font-size: 28px;
|
|
158
|
+
line-height: 128.57%;
|
|
159
|
+
text-decoration: none;
|
|
160
|
+
letter-spacing: 0.2px;
|
|
161
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export type { ToolTip, ToolTipInfo } from './uikit/sharedTypes';
|
|
2
|
+
export { ToolTipType } from './uikit/sharedTypes';
|
|
3
|
+
export { light, dark, lightTheme, darkTheme, } from './theme/index';
|
|
4
|
+
export type { MayaTheme, Colors, Type, Corners, } from './theme/index';
|
|
5
|
+
export { useTheme, useMayaTheme } from './hooks/index';
|
|
6
|
+
export { Avatar } from './uikit/Avatar/index';
|
|
7
|
+
export type { AvatarProps } from './uikit/Avatar/index';
|
|
8
|
+
export { AvatarGroup } from './uikit/AvatarGroup';
|
|
9
|
+
export type { AvatarGroupProps, AvatarInfo } from './uikit/AvatarGroup';
|
|
10
|
+
export { Badge } from './uikit/Badge';
|
|
11
|
+
export type { BadgeProps } from './uikit/Badge';
|
|
12
|
+
export { EditorButtonBar } from './uikit/EditorButtonBar';
|
|
13
|
+
export type { EditorButtonBarProps } from './uikit/EditorButtonBar';
|
|
14
|
+
export { IconButton } from './uikit/IconButton';
|
|
15
|
+
export type { IconButtonProps } from './uikit/IconButton';
|
|
16
|
+
export { CheckBox } from './uikit/CheckBox';
|
|
17
|
+
export type { CheckBoxProps } from './uikit/CheckBox';
|
|
18
|
+
export { DivInput } from './uikit/DivInput';
|
|
19
|
+
export type { DivInputProps } from './uikit/DivInput';
|
|
20
|
+
export { DocIcons } from './uikit/DocIcon';
|
|
21
|
+
export type { DocsProps } from './uikit/DocIcon';
|
|
22
|
+
export { Dot } from './uikit/Dot';
|
|
23
|
+
export type { DotProps } from './uikit/Dot';
|
|
24
|
+
export { DraggablePanel } from './uikit/DraggablePanel';
|
|
25
|
+
export type { DraggablePanelProps } from './uikit/DraggablePanel';
|
|
26
|
+
export { DropDown } from './uikit/DropDown';
|
|
27
|
+
export type { DropDownOption, DropDownProps } from './uikit/DropDown';
|
|
28
|
+
export { ErrorSummary } from './uikit/ErrorSummary';
|
|
29
|
+
export type { ErrorMessage, ErrorSummaryProps } from './uikit/ErrorSummary';
|
|
30
|
+
export { Grouper } from './uikit/Grouper';
|
|
31
|
+
export type { GrouperProps } from './uikit/Grouper';
|
|
32
|
+
export { Logos } from './uikit/Logos';
|
|
33
|
+
export type { LogoProps } from './uikit/Logos';
|
|
34
|
+
export { Overlay } from './uikit/Overlay';
|
|
35
|
+
export type { OverlayProps } from './uikit/Overlay';
|
|
36
|
+
export { FlexDiv } from './uikit/FlexDiv';
|
|
37
|
+
export type { FlexDivProps } from './uikit/FlexDiv';
|
|
38
|
+
export { MessageInput } from './uikit/MessageInput';
|
|
39
|
+
export type { MessageInputProps, SendMessage, UploadDocument, } from './uikit/MessageInput';
|
|
40
|
+
export type { PromptType, Role, } from './uikit/MessageInput/_types';
|
|
41
|
+
export { Pager } from './uikit/Pager';
|
|
42
|
+
export type { PagerProps } from './uikit/Pager';
|
|
43
|
+
export { DoneCheck, ProgressIndicator } from './uikit/Progress';
|
|
44
|
+
export type { DoneCheckProps, ProgressIndicatorProps } from './uikit/Progress';
|
|
45
|
+
export { RadioButton } from './uikit/RadioButton';
|
|
46
|
+
export type { RadioButtonProps, RadioButtonOption } from './uikit/RadioButton';
|
|
47
|
+
export { RadioButtonList } from './uikit/RadioButtonList';
|
|
48
|
+
export type { RadioButtonListProps } from './uikit/RadioButtonList';
|
|
49
|
+
export { Slider } from './uikit/Slider';
|
|
50
|
+
export type { SliderProps } from './uikit/Slider';
|
|
51
|
+
export { Spacer } from './uikit/Spacer';
|
|
52
|
+
export { Switch } from './uikit/Switch';
|
|
53
|
+
export type { SwitchProps } from './uikit/Switch';
|
|
54
|
+
export { TabBar } from './uikit/TabBar';
|
|
55
|
+
export type { TabOption, TabBarProps } from './uikit/TabBar';
|
|
56
|
+
export { TextArea } from './uikit/TextArea';
|
|
57
|
+
export type { TextAreaProps, Tip } from './uikit/TextArea';
|
|
58
|
+
export { TextField } from './uikit/Textfield';
|
|
59
|
+
export type { TextFieldProps } from './uikit/Textfield';
|
|
60
|
+
export { UIButton } from './uikit/UIButton';
|
|
61
|
+
export type { UIButtonProps, UIButtonHandle } from './uikit/UIButton';
|
|
62
|
+
export { UIChip } from './uikit/UIChip';
|
|
63
|
+
export type { UIChipProps } from './uikit/UIChip';
|
|
64
|
+
export { Icon } from './uikit/Icon';
|
|
65
|
+
export type { IconNames, IconProps } from './uikit/Icon/_types';
|
|
66
|
+
export { UIButtonBar } from './uikit/UIButtonBar';
|
|
67
|
+
export type { BarButton, UIButtonBarProps } from './uikit/UIButtonBar/_types';
|
|
68
|
+
export { UICard } from './uikit/UICard';
|
|
69
|
+
export type { UICardProps } from './uikit/UICard/_types';
|
|
70
|
+
export { UIFileIcon } from './uikit/UIFileIcon';
|
|
71
|
+
export type { UIFileIconProps } from './uikit/UIFileIcon';
|
|
72
|
+
export type { UIFileIcons } from './uikit/UIFileIcon/_types';
|
|
73
|
+
export { UILabel } from './uikit/UILabel';
|
|
74
|
+
export type { UILabelProps } from './uikit/UILabel';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import '../theme/colors/colors.css';
|
|
3
|
+
import '../theme/type/type.css';
|
|
4
|
+
interface ThemeProviderProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
theme?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function ThemeProvider(props: Readonly<ThemeProviderProps>): React.ReactNode;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ThemeProvider } from './ThemeProvider';
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export type CoreColors = {
|
|
2
|
+
'brand-grey-100': string;
|
|
3
|
+
'brand-grey-200': string;
|
|
4
|
+
'brand-grey-300': string;
|
|
5
|
+
'brand-grey-400': string;
|
|
6
|
+
'brand-grey-50': string;
|
|
7
|
+
'brand-grey-500': string;
|
|
8
|
+
'brand-grey-600': string;
|
|
9
|
+
'brand-grey-700': string;
|
|
10
|
+
'brand-grey-800': string;
|
|
11
|
+
'brand-grey-900': string;
|
|
12
|
+
'brand-grey-950': string;
|
|
13
|
+
'brand-land-100': string;
|
|
14
|
+
'brand-land-200': string;
|
|
15
|
+
'brand-land-300': string;
|
|
16
|
+
'brand-land-400': string;
|
|
17
|
+
'brand-land-50': string;
|
|
18
|
+
'brand-land-500': string;
|
|
19
|
+
'brand-land-600': string;
|
|
20
|
+
'brand-land-700': string;
|
|
21
|
+
'brand-land-800': string;
|
|
22
|
+
'brand-land-900': string;
|
|
23
|
+
'brand-land-950': string;
|
|
24
|
+
'brand-magenta-100': string;
|
|
25
|
+
'brand-magenta-200': string;
|
|
26
|
+
'brand-magenta-300': string;
|
|
27
|
+
'brand-magenta-400': string;
|
|
28
|
+
'brand-magenta-50': string;
|
|
29
|
+
'brand-magenta-500': string;
|
|
30
|
+
'brand-magenta-600': string;
|
|
31
|
+
'brand-magenta-700': string;
|
|
32
|
+
'brand-magenta-800': string;
|
|
33
|
+
'brand-magenta-900': string;
|
|
34
|
+
'brand-magenta-950': string;
|
|
35
|
+
'brand-orange-100': string;
|
|
36
|
+
'brand-orange-200': string;
|
|
37
|
+
'brand-orange-300': string;
|
|
38
|
+
'brand-orange-400': string;
|
|
39
|
+
'brand-orange-50': string;
|
|
40
|
+
'brand-orange-500': string;
|
|
41
|
+
'brand-orange-600': string;
|
|
42
|
+
'brand-orange-700': string;
|
|
43
|
+
'brand-orange-800': string;
|
|
44
|
+
'brand-orange-900': string;
|
|
45
|
+
'brand-orange-950': string;
|
|
46
|
+
'brand-purple-100': string;
|
|
47
|
+
'brand-purple-200': string;
|
|
48
|
+
'brand-purple-300': string;
|
|
49
|
+
'brand-purple-400': string;
|
|
50
|
+
'brand-purple-50': string;
|
|
51
|
+
'brand-purple-500': string;
|
|
52
|
+
'brand-purple-600': string;
|
|
53
|
+
'brand-purple-700': string;
|
|
54
|
+
'brand-purple-800': string;
|
|
55
|
+
'brand-purple-900': string;
|
|
56
|
+
'brand-purple-950': string;
|
|
57
|
+
'brand-sea-100': string;
|
|
58
|
+
'brand-sea-200': string;
|
|
59
|
+
'brand-sea-300': string;
|
|
60
|
+
'brand-sea-400': string;
|
|
61
|
+
'brand-sea-50': string;
|
|
62
|
+
'brand-sea-500': string;
|
|
63
|
+
'brand-sea-600': string;
|
|
64
|
+
'brand-sea-700': string;
|
|
65
|
+
'brand-sea-800': string;
|
|
66
|
+
'brand-sea-900': string;
|
|
67
|
+
'brand-sea-950': string;
|
|
68
|
+
'brand-sky-100': string;
|
|
69
|
+
'brand-sky-200': string;
|
|
70
|
+
'brand-sky-300': string;
|
|
71
|
+
'brand-sky-400': string;
|
|
72
|
+
'brand-sky-50': string;
|
|
73
|
+
'brand-sky-500': string;
|
|
74
|
+
'brand-sky-600': string;
|
|
75
|
+
'brand-sky-700': string;
|
|
76
|
+
'brand-sky-800': string;
|
|
77
|
+
'brand-sky-900': string;
|
|
78
|
+
'brand-sky-950': string;
|
|
79
|
+
'brand-white-0': string;
|
|
80
|
+
'brand-yellow-100': string;
|
|
81
|
+
'brand-yellow-200': string;
|
|
82
|
+
'brand-yellow-300': string;
|
|
83
|
+
'brand-yellow-400': string;
|
|
84
|
+
'brand-yellow-50': string;
|
|
85
|
+
'brand-yellow-500': string;
|
|
86
|
+
'brand-yellow-600': string;
|
|
87
|
+
'brand-yellow-700': string;
|
|
88
|
+
'brand-yellow-800': string;
|
|
89
|
+
'brand-yellow-900': string;
|
|
90
|
+
'brand-yellow-950': string;
|
|
91
|
+
'product-red-400': string;
|
|
92
|
+
'product-red-500': string;
|
|
93
|
+
};
|
|
94
|
+
export type Colors = {
|
|
95
|
+
'array-land': string;
|
|
96
|
+
'array-land-label': string;
|
|
97
|
+
'array-magenta': string;
|
|
98
|
+
'array-magenta-label': string;
|
|
99
|
+
'array-orange': string;
|
|
100
|
+
'array-orange-label': string;
|
|
101
|
+
'array-purple': string;
|
|
102
|
+
'array-purple-label': string;
|
|
103
|
+
'array-sea': string;
|
|
104
|
+
'array-sea-label': string;
|
|
105
|
+
'array-sky': string;
|
|
106
|
+
'array-sky-label': string;
|
|
107
|
+
'array-yellow': string;
|
|
108
|
+
'array-yellow-label': string;
|
|
109
|
+
'core-badge-primary': string;
|
|
110
|
+
'core-badge-secondary': string;
|
|
111
|
+
'core-button-disabled': string;
|
|
112
|
+
'core-button-primary': string;
|
|
113
|
+
'core-drop-shadow': string;
|
|
114
|
+
'core-gp-logo-primary': string;
|
|
115
|
+
'core-gp-logo-secondary': string;
|
|
116
|
+
'core-icon-dark': string;
|
|
117
|
+
'core-icon-disabled': string;
|
|
118
|
+
'core-icon-error': string;
|
|
119
|
+
'core-icon-light': string;
|
|
120
|
+
'core-icon-primary': string;
|
|
121
|
+
'core-icon-secondary': string;
|
|
122
|
+
'core-icon-tertiary': string;
|
|
123
|
+
'core-outline-secondary': string;
|
|
124
|
+
'core-outline-primary': string;
|
|
125
|
+
'core-outline-special': string;
|
|
126
|
+
'core-outline-tertiary': string;
|
|
127
|
+
'core-surface-coverup-translucent': string;
|
|
128
|
+
'core-surface-overlay-translucent': string;
|
|
129
|
+
'core-surface-primary': string;
|
|
130
|
+
'core-surface-secondary': string;
|
|
131
|
+
'core-surface-special': string;
|
|
132
|
+
'core-text-dark': string;
|
|
133
|
+
'core-text-disabled': string;
|
|
134
|
+
'core-text-error': string;
|
|
135
|
+
'core-text-light': string;
|
|
136
|
+
'core-text-primary': string;
|
|
137
|
+
'core-text-secondary': string;
|
|
138
|
+
'core-text-special': string;
|
|
139
|
+
'core-text-tertiary': string;
|
|
140
|
+
'core-link-primary': string;
|
|
141
|
+
'eor-tag-employee': string;
|
|
142
|
+
'eor-tag-overdue': string;
|
|
143
|
+
'eor-tag-paid': string;
|
|
144
|
+
'eor-tag-pending': string;
|
|
145
|
+
'eor-tag-professional': string;
|
|
146
|
+
'feedback-attention': string;
|
|
147
|
+
'feedback-informative': string;
|
|
148
|
+
'feedback-positive': string;
|
|
149
|
+
'feedback-urgency': string;
|
|
150
|
+
'feedback-warning': string;
|
|
151
|
+
'gia-tag-risk-high': string;
|
|
152
|
+
'gia-tag-risk-low': string;
|
|
153
|
+
'gia-tag-risk-moderate': string;
|
|
154
|
+
'gia-text-excerpt-highlight': string;
|
|
155
|
+
'gia-text-selection': string;
|
|
156
|
+
'scroll-bar': string;
|
|
157
|
+
'scroll-bar-hover': string;
|
|
158
|
+
'surface-shadow-soft': string;
|
|
159
|
+
'surface-shadow-strong': string;
|
|
160
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Colors, CoreColors } from './colors/types';
|
|
2
|
+
import type { Corners } from './corners/types';
|
|
3
|
+
import type { Type } from './type/types';
|
|
4
|
+
export type MayaTheme = {
|
|
5
|
+
name: string;
|
|
6
|
+
coreColors: CoreColors;
|
|
7
|
+
colors: Colors;
|
|
8
|
+
type: Type;
|
|
9
|
+
corners: Corners;
|
|
10
|
+
};
|
|
11
|
+
export declare const lightTheme: MayaTheme;
|
|
12
|
+
export declare const darkTheme: MayaTheme;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type Type = {
|
|
2
|
+
'body-xs-regular': string;
|
|
3
|
+
'body-xs-medium': string;
|
|
4
|
+
'body-xs-bold': string;
|
|
5
|
+
'body-s-regular': string;
|
|
6
|
+
'body-s-medium': string;
|
|
7
|
+
'body-s-bold': string;
|
|
8
|
+
'body-m-regular': string;
|
|
9
|
+
'body-m-medium': string;
|
|
10
|
+
'body-m-bold': string;
|
|
11
|
+
'body-l-regular': string;
|
|
12
|
+
'body-l-medium': string;
|
|
13
|
+
'body-l-bold': string;
|
|
14
|
+
'heading-s-bold': string;
|
|
15
|
+
'heading-s-medium': string;
|
|
16
|
+
'heading-m-bold': string;
|
|
17
|
+
'heading-m-medium': string;
|
|
18
|
+
'heading-l-bold': string;
|
|
19
|
+
'heading-l-medium': string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Avatar } from './Avatar';
|
|
3
|
+
declare const meta: Meta<typeof Avatar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Default: StoryObj<typeof Avatar>;
|
|
6
|
+
export declare const InteractiveWithInitials: StoryObj<typeof Avatar>;
|
|
7
|
+
export declare const AutoSizingInitials: StoryObj<typeof Avatar>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ToolTip } from '../sharedTypes';
|
|
3
|
+
export interface AvatarProps {
|
|
4
|
+
size?: number;
|
|
5
|
+
frame?: number;
|
|
6
|
+
first?: string;
|
|
7
|
+
last?: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
border?: number;
|
|
10
|
+
color?: string;
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
bgColor?: string;
|
|
13
|
+
firstOnly?: boolean;
|
|
14
|
+
fontSize?: number | 'auto';
|
|
15
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
16
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
17
|
+
onKeyDown?: (e: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
18
|
+
tabIndex?: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ToolTip } from '../sharedTypes';
|
|
2
|
+
export type AvatarInfo = {
|
|
3
|
+
first?: string;
|
|
4
|
+
last?: string;
|
|
5
|
+
image?: any;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
bgColor?: string;
|
|
10
|
+
};
|
|
11
|
+
export interface AvatarGroupProps {
|
|
12
|
+
avatars?: AvatarInfo[] | null;
|
|
13
|
+
size?: number;
|
|
14
|
+
overlap?: number;
|
|
15
|
+
border?: number;
|
|
16
|
+
borderColor?: string;
|
|
17
|
+
gap?: number;
|
|
18
|
+
margin?: number;
|
|
19
|
+
firstOnly?: boolean;
|
|
20
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export interface DivInputProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
onDblClick?: () => void;
|
|
6
|
+
onChange?: (value: string | null) => void;
|
|
7
|
+
onSubmit?: (value: string) => void;
|
|
8
|
+
onFocus?: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
9
|
+
onBlur?: (value: string) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
isEditable?: boolean;
|
|
13
|
+
wrap?: boolean;
|
|
14
|
+
focus?: boolean;
|
|
15
|
+
width?: number | string;
|
|
16
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
17
|
+
clamp?: number;
|
|
18
|
+
padding?: string;
|
|
19
|
+
radius?: number;
|
|
20
|
+
bgColor?: string;
|
|
21
|
+
}
|