@atom-learning/components 3.1.1 → 3.1.2
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/navigation/NavigationMenuDropdownContent.d.ts +323 -1
- package/dist/components/navigation/NavigationMenuDropdownContent.js +1 -1
- package/dist/components/navigation/NavigationMenuDropdownContent.js.map +1 -1
- package/dist/docgen.json +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -207
|
@@ -1,2 +1,324 @@
|
|
|
1
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
|
|
3
|
+
declare const StyledContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>>, {}, {
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
reducedMotion: string;
|
|
9
|
+
allowMotion: string;
|
|
10
|
+
hover: string;
|
|
11
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
12
|
+
sm: string;
|
|
13
|
+
md: string;
|
|
14
|
+
lg: string;
|
|
15
|
+
xl: string;
|
|
16
|
+
reducedMotion: string;
|
|
17
|
+
allowMotion: string;
|
|
18
|
+
hover: string;
|
|
19
|
+
}, {
|
|
20
|
+
colors: {
|
|
21
|
+
textForeground: any;
|
|
22
|
+
textSubtle: any;
|
|
23
|
+
textPlaceholder: any;
|
|
24
|
+
background: any;
|
|
25
|
+
backgroundAccent: any;
|
|
26
|
+
grey100: any;
|
|
27
|
+
grey200: any;
|
|
28
|
+
grey300: any;
|
|
29
|
+
grey400: any;
|
|
30
|
+
grey500: any;
|
|
31
|
+
grey600: any;
|
|
32
|
+
grey700: any;
|
|
33
|
+
grey800: any;
|
|
34
|
+
grey900: any;
|
|
35
|
+
grey1000: any;
|
|
36
|
+
grey1100: any;
|
|
37
|
+
grey1200: any;
|
|
38
|
+
blue100: any;
|
|
39
|
+
blue200: any;
|
|
40
|
+
blue300: any;
|
|
41
|
+
blue400: any;
|
|
42
|
+
blue500: any;
|
|
43
|
+
blue600: any;
|
|
44
|
+
blue700: any;
|
|
45
|
+
blue800: any;
|
|
46
|
+
blue900: any;
|
|
47
|
+
blue1000: any;
|
|
48
|
+
blue1100: any;
|
|
49
|
+
blue1200: any;
|
|
50
|
+
purple100: any;
|
|
51
|
+
purple200: any;
|
|
52
|
+
purple300: any;
|
|
53
|
+
purple400: any;
|
|
54
|
+
purple500: any;
|
|
55
|
+
purple600: any;
|
|
56
|
+
purple700: any;
|
|
57
|
+
purple800: any;
|
|
58
|
+
purple900: any;
|
|
59
|
+
purple1000: any;
|
|
60
|
+
purple1100: any;
|
|
61
|
+
purple1200: any;
|
|
62
|
+
cyan100: any;
|
|
63
|
+
cyan200: any;
|
|
64
|
+
cyan300: any;
|
|
65
|
+
cyan400: any;
|
|
66
|
+
cyan500: any;
|
|
67
|
+
cyan600: any;
|
|
68
|
+
cyan700: any;
|
|
69
|
+
cyan800: any;
|
|
70
|
+
cyan900: any;
|
|
71
|
+
cyan1000: any;
|
|
72
|
+
cyan1100: any;
|
|
73
|
+
cyan1200: any;
|
|
74
|
+
green100: any;
|
|
75
|
+
green200: any;
|
|
76
|
+
green300: any;
|
|
77
|
+
green400: any;
|
|
78
|
+
green500: any;
|
|
79
|
+
green600: any;
|
|
80
|
+
green700: any;
|
|
81
|
+
green800: any;
|
|
82
|
+
green900: any;
|
|
83
|
+
green1000: any;
|
|
84
|
+
green1100: any;
|
|
85
|
+
green1200: any;
|
|
86
|
+
magenta100: any;
|
|
87
|
+
magenta200: any;
|
|
88
|
+
magenta300: any;
|
|
89
|
+
magenta400: any;
|
|
90
|
+
magenta500: any;
|
|
91
|
+
magenta600: any;
|
|
92
|
+
magenta700: any;
|
|
93
|
+
magenta800: any;
|
|
94
|
+
magenta900: any;
|
|
95
|
+
magenta1000: any;
|
|
96
|
+
magenta1100: any;
|
|
97
|
+
magenta1200: any;
|
|
98
|
+
red100: any;
|
|
99
|
+
red200: any;
|
|
100
|
+
red300: any;
|
|
101
|
+
red400: any;
|
|
102
|
+
red500: any;
|
|
103
|
+
red600: any;
|
|
104
|
+
red700: any;
|
|
105
|
+
red800: any;
|
|
106
|
+
red900: any;
|
|
107
|
+
red1000: any;
|
|
108
|
+
red1100: any;
|
|
109
|
+
red1200: any;
|
|
110
|
+
teal100: any;
|
|
111
|
+
teal200: any;
|
|
112
|
+
teal300: any;
|
|
113
|
+
teal400: any;
|
|
114
|
+
teal500: any;
|
|
115
|
+
teal600: any;
|
|
116
|
+
teal700: any;
|
|
117
|
+
teal800: any;
|
|
118
|
+
teal900: any;
|
|
119
|
+
teal1000: any;
|
|
120
|
+
teal1100: any;
|
|
121
|
+
teal1200: any;
|
|
122
|
+
orange100: any;
|
|
123
|
+
orange200: any;
|
|
124
|
+
orange300: any;
|
|
125
|
+
orange400: any;
|
|
126
|
+
orange500: any;
|
|
127
|
+
orange600: any;
|
|
128
|
+
orange700: any;
|
|
129
|
+
orange800: any;
|
|
130
|
+
orange900: any;
|
|
131
|
+
orange1000: any;
|
|
132
|
+
orange1100: any;
|
|
133
|
+
orange1200: any;
|
|
134
|
+
yellow100: any;
|
|
135
|
+
yellow200: any;
|
|
136
|
+
yellow300: any;
|
|
137
|
+
yellow400: any;
|
|
138
|
+
yellow500: any;
|
|
139
|
+
yellow600: any;
|
|
140
|
+
yellow700: any;
|
|
141
|
+
yellow800: any;
|
|
142
|
+
yellow900: any;
|
|
143
|
+
yellow1000: any;
|
|
144
|
+
yellow1100: any;
|
|
145
|
+
yellow1200: any;
|
|
146
|
+
lime100: any;
|
|
147
|
+
lime200: any;
|
|
148
|
+
lime300: any;
|
|
149
|
+
lime400: any;
|
|
150
|
+
lime500: any;
|
|
151
|
+
lime600: any;
|
|
152
|
+
lime700: any;
|
|
153
|
+
lime800: any;
|
|
154
|
+
lime900: any;
|
|
155
|
+
lime1000: any;
|
|
156
|
+
lime1100: any;
|
|
157
|
+
lime1200: any;
|
|
158
|
+
tonal50: any;
|
|
159
|
+
tonal100: any;
|
|
160
|
+
tonal200: any;
|
|
161
|
+
tonal300: any;
|
|
162
|
+
tonal400: any;
|
|
163
|
+
tonal500: any;
|
|
164
|
+
tonal600: any;
|
|
165
|
+
alpha100: any;
|
|
166
|
+
alpha150: any;
|
|
167
|
+
alpha200: any;
|
|
168
|
+
alpha250: any;
|
|
169
|
+
alpha600: any;
|
|
170
|
+
primaryLight: any;
|
|
171
|
+
primary: any;
|
|
172
|
+
primaryMid: any;
|
|
173
|
+
primaryDark: any;
|
|
174
|
+
secondary: any;
|
|
175
|
+
brandRed: any;
|
|
176
|
+
brandRedAccent: any;
|
|
177
|
+
brandGreen: any;
|
|
178
|
+
brandGreenAccent: any;
|
|
179
|
+
brandPurple: any;
|
|
180
|
+
brandPurpleAccent: any;
|
|
181
|
+
brandYellow: any;
|
|
182
|
+
brandYellowAccent: any;
|
|
183
|
+
successLight: any;
|
|
184
|
+
success: any;
|
|
185
|
+
successMid: any;
|
|
186
|
+
successDark: any;
|
|
187
|
+
dangerLight: any;
|
|
188
|
+
danger: any;
|
|
189
|
+
dangerMid: any;
|
|
190
|
+
dangerDark: any;
|
|
191
|
+
warningLight: any;
|
|
192
|
+
warning: any;
|
|
193
|
+
warningMid: any;
|
|
194
|
+
warningDark: any;
|
|
195
|
+
warningText: any;
|
|
196
|
+
subjectEnglish: any;
|
|
197
|
+
subjectMaths: any;
|
|
198
|
+
subjectScience: any;
|
|
199
|
+
subjectVerbalReasoning: any;
|
|
200
|
+
subjectNonVerbalReasoning: any;
|
|
201
|
+
subjectCreativeWriting: any;
|
|
202
|
+
subjectExamSkills: any;
|
|
203
|
+
glBlueLight: any;
|
|
204
|
+
glBluePrimary: any;
|
|
205
|
+
glBlueDark: any;
|
|
206
|
+
};
|
|
207
|
+
space: {
|
|
208
|
+
"0": any;
|
|
209
|
+
"1": any;
|
|
210
|
+
"2": any;
|
|
211
|
+
"3": any;
|
|
212
|
+
"4": any;
|
|
213
|
+
"5": any;
|
|
214
|
+
"6": any;
|
|
215
|
+
"7": any;
|
|
216
|
+
"8": any;
|
|
217
|
+
"9": any;
|
|
218
|
+
"24": any;
|
|
219
|
+
};
|
|
220
|
+
fontSizes: {
|
|
221
|
+
xs: any;
|
|
222
|
+
sm: any;
|
|
223
|
+
md: any;
|
|
224
|
+
lg: any;
|
|
225
|
+
xl: any;
|
|
226
|
+
"2xl": any;
|
|
227
|
+
"3xl": any;
|
|
228
|
+
"4xl": any;
|
|
229
|
+
};
|
|
230
|
+
fonts: {
|
|
231
|
+
sans: any;
|
|
232
|
+
mono: any;
|
|
233
|
+
display: any;
|
|
234
|
+
body: any;
|
|
235
|
+
};
|
|
236
|
+
sizes: {
|
|
237
|
+
"0": any;
|
|
238
|
+
"1": any;
|
|
239
|
+
"2": any;
|
|
240
|
+
"3": any;
|
|
241
|
+
"4": any;
|
|
242
|
+
"5": any;
|
|
243
|
+
"6": any;
|
|
244
|
+
"7": any;
|
|
245
|
+
"8": any;
|
|
246
|
+
};
|
|
247
|
+
radii: {
|
|
248
|
+
"0": any;
|
|
249
|
+
"1": any;
|
|
250
|
+
"2": any;
|
|
251
|
+
"3": any;
|
|
252
|
+
round: any;
|
|
253
|
+
};
|
|
254
|
+
shadows: {
|
|
255
|
+
"0": any;
|
|
256
|
+
"1": any;
|
|
257
|
+
"2": any;
|
|
258
|
+
"3": any;
|
|
259
|
+
};
|
|
260
|
+
ratios: {
|
|
261
|
+
"16-9": any;
|
|
262
|
+
"3-2": any;
|
|
263
|
+
"4-3": any;
|
|
264
|
+
"1-1": any;
|
|
265
|
+
"3-4": any;
|
|
266
|
+
};
|
|
267
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
268
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
269
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
270
|
+
};
|
|
271
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
272
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
273
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
274
|
+
};
|
|
275
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
276
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
277
|
+
};
|
|
278
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
279
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
280
|
+
};
|
|
281
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
282
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
283
|
+
};
|
|
284
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
285
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
286
|
+
};
|
|
287
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
288
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
289
|
+
};
|
|
290
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
291
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
292
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
293
|
+
};
|
|
294
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
295
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
296
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
297
|
+
};
|
|
298
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
299
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
300
|
+
};
|
|
301
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
302
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
303
|
+
};
|
|
304
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
305
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
306
|
+
};
|
|
307
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
308
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
309
|
+
};
|
|
310
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
311
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
312
|
+
};
|
|
313
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
314
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
315
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
316
|
+
};
|
|
317
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
318
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
319
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
320
|
+
};
|
|
321
|
+
}>>;
|
|
322
|
+
declare type NavigationMenuDropdownContentProps = typeof StyledContent;
|
|
323
|
+
export declare const NavigationMenuDropdownContent: React.FC<NavigationMenuDropdownContentProps>;
|
|
324
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as a from"@radix-ui/react-navigation-menu";import e from"react";import{styled as o}from"../../stitches.js";import{preventEvent as t}from"../../utilities/event/preventEvent.js";const m=o("ul",{listStyle:"none",m:0,p:0}),p=o(a.Content,{p:"$3",bg:"white",mt:"4px",boxShadow:"$1",borderRadius:"$1"}),n=({children:r,...i})=>e.createElement(p,{onPointerMove:t,onPointerLeave:t,...i},e.createElement(m,null,r));n.displayName="NavigationMenuDropdownContent";export{n as NavigationMenuDropdownContent};
|
|
2
2
|
//# sourceMappingURL=NavigationMenuDropdownContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationMenuDropdownContent.js","sources":["../../../src/components/navigation/NavigationMenuDropdownContent.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { styled } from '~/stitches'\nimport { preventEvent } from '~/utilities/event'\n\nconst StyledList = styled('ul', {\n listStyle: 'none',\n m: 0,\n p: 0\n})\n\nconst StyledContent = styled(NavigationMenuPrimitive.Content, {\n p: '$3',\n bg: 'white',\n mt: '4px',\n boxShadow: '$1',\n borderRadius: '$1'\n})\n\nexport const NavigationMenuDropdownContent: React.FC = ({ children }) => (\n <StyledContent
|
|
1
|
+
{"version":3,"file":"NavigationMenuDropdownContent.js","sources":["../../../src/components/navigation/NavigationMenuDropdownContent.tsx"],"sourcesContent":["import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu'\nimport React from 'react'\n\nimport { styled } from '~/stitches'\nimport { preventEvent } from '~/utilities/event'\n\nconst StyledList = styled('ul', {\n listStyle: 'none',\n m: 0,\n p: 0\n})\n\nconst StyledContent = styled(NavigationMenuPrimitive.Content, {\n p: '$3',\n bg: 'white',\n mt: '4px',\n boxShadow: '$1',\n borderRadius: '$1'\n})\n\ntype NavigationMenuDropdownContentProps = typeof StyledContent\n\nexport const NavigationMenuDropdownContent: React.FC<\n NavigationMenuDropdownContentProps\n> = ({ children, ...rest }) => (\n <StyledContent\n onPointerMove={preventEvent}\n onPointerLeave={preventEvent}\n {...rest}\n >\n <StyledList>{children}</StyledList>\n </StyledContent>\n)\n\nNavigationMenuDropdownContent.displayName = 'NavigationMenuDropdownContent'\n"],"names":["StyledList","styled","StyledContent","NavigationMenuPrimitive","NavigationMenuDropdownContent","children","rest","React","preventEvent"],"mappings":"uLAMA,MAAMA,EAAaC,EAAO,KAAM,CAC9B,UAAW,OACX,EAAG,EACH,EAAG,CACL,CAAC,EAEKC,EAAgBD,EAAOE,EAAwB,QAAS,CAC5D,EAAG,KACH,GAAI,QACJ,GAAI,MACJ,UAAW,KACX,aAAc,IAChB,CAAC,EAIYC,EAET,CAAC,CAAE,SAAAC,KAAaC,CAAK,IACvBC,EAAA,cAACL,EAAA,CACC,cAAeM,EACf,eAAgBA,EACf,GAAGF,CAAAA,EAEJC,EAAA,cAACP,EAAA,KAAYK,CAAS,CACxB,EAGFD,EAA8B,YAAc"}
|