@sfgov/design-system 0.0.0-2b1f226
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/README.md +7 -0
- package/babel.config.js +16 -0
- package/css/.eslintrc.js +26 -0
- package/css/babel.config.js +6 -0
- package/css/lib/tailwind/details.js +14 -0
- package/css/package-lock.json +35561 -0
- package/css/src/base.css +26 -0
- package/css/src/components/button.css +61 -0
- package/css/src/components/details.css +10 -0
- package/css/src/components/grid.css +12 -0
- package/css/src/components/index.css +4 -0
- package/css/src/components/kbd.css +5 -0
- package/css/src/components.css +1 -0
- package/css/src/fonts.css +1 -0
- package/css/src/icons.css +7 -0
- package/css/src/overrides.css +3 -0
- package/css/src/sfds.css +6 -0
- package/css/src/theme.js +104 -0
- package/css/src/tokens/breakpoints.js +5 -0
- package/css/src/tokens/colors.js +116 -0
- package/css/src/tokens/index.js +8 -0
- package/css/src/tokens/spacing.js +27 -0
- package/css/src/tokens/typography.js +66 -0
- package/css/src/tokens/widths.js +11 -0
- package/css/src/typography.css +103 -0
- package/css/src/utilities.css +1 -0
- package/dist/css/base.css +2 -0
- package/dist/css/base.css.map +1 -0
- package/dist/css/components.css +2 -0
- package/dist/css/components.css.map +1 -0
- package/dist/css/fonts.css +2 -0
- package/dist/css/fonts.css.map +1 -0
- package/dist/css/icons.css +2 -0
- package/dist/css/icons.css.map +1 -0
- package/dist/css/overrides.css +2 -0
- package/dist/css/overrides.css.map +1 -0
- package/dist/css/sfds.css +2 -0
- package/dist/css/sfds.css.map +1 -0
- package/dist/css/typography.css +2 -0
- package/dist/css/typography.css.map +1 -0
- package/dist/css/utilities.css +2 -0
- package/dist/css/utilities.css.map +1 -0
- package/dist/css/utilities.json +7350 -0
- package/dist/elements/index.d.mts +30 -0
- package/dist/elements/index.d.mts.map +1 -0
- package/dist/elements/index.d.ts +30 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/index.js +1 -0
- package/dist/elements/index.mjs +1 -0
- package/dist/manifest.json +45 -0
- package/dist/react/index.d.mts +5725 -0
- package/dist/react/index.d.mts.map +1 -0
- package/dist/react/index.d.ts +5725 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +1 -0
- package/dist/react/index.mjs +1 -0
- package/elements/.eslintrc.js +6 -0
- package/elements/index.js +1 -0
- package/elements/index.mjs +1 -0
- package/elements/src/index.js +7 -0
- package/elements/src/sfgov-icon.js +109 -0
- package/icons/.eslintrc.js +23 -0
- package/icons/index.json +439 -0
- package/icons/svg/accessibility.svg +4 -0
- package/icons/svg/alert.svg +5 -0
- package/icons/svg/archive.svg +4 -0
- package/icons/svg/arrow-down.svg +3 -0
- package/icons/svg/arrow-left.svg +3 -0
- package/icons/svg/arrow-right.svg +3 -0
- package/icons/svg/arrow-up.svg +3 -0
- package/icons/svg/building.svg +7 -0
- package/icons/svg/calendar.svg +3 -0
- package/icons/svg/caution.svg +3 -0
- package/icons/svg/chart.svg +6 -0
- package/icons/svg/check.svg +3 -0
- package/icons/svg/chevron-down.svg +3 -0
- package/icons/svg/chevron-left.svg +3 -0
- package/icons/svg/chevron-right.svg +3 -0
- package/icons/svg/chevron-up.svg +3 -0
- package/icons/svg/clock.svg +4 -0
- package/icons/svg/close.svg +3 -0
- package/icons/svg/document.svg +3 -0
- package/icons/svg/globe.svg +3 -0
- package/icons/svg/hamburger-button.svg +5 -0
- package/icons/svg/index.json +346 -0
- package/icons/svg/info.svg +5 -0
- package/icons/svg/location.svg +4 -0
- package/icons/svg/mail.svg +3 -0
- package/icons/svg/minus.svg +3 -0
- package/icons/svg/pencil.svg +3 -0
- package/icons/svg/phone.svg +3 -0
- package/icons/svg/plus.svg +3 -0
- package/icons/svg/question.svg +4 -0
- package/icons/svg/search.svg +3 -0
- package/icons/svg/wip.svg +3 -0
- package/lib/markdownlint/frontmatter.js +51 -0
- package/lib/markdownlint/no-empty.js +19 -0
- package/package.json +352 -0
- package/postcss.config.js +17 -0
- package/react/README.md +36 -0
- package/react/index.js +1 -0
- package/react/index.mjs +1 -0
- package/react/scripts/wrap-icons.mjs +25 -0
- package/react/src/components/Box.tsx +6 -0
- package/react/src/components/Button.tsx +94 -0
- package/react/src/components/Container.tsx +19 -0
- package/react/src/components/Flex.tsx +16 -0
- package/react/src/components/GlobalStyle.tsx +35 -0
- package/react/src/components/GoogleFonts.tsx +67 -0
- package/react/src/components/Grid.tsx +15 -0
- package/react/src/components/SSRStyle.tsx +47 -0
- package/react/src/components/SVGIcon.tsx +42 -0
- package/react/src/components/Text.tsx +78 -0
- package/react/src/components/Tile.tsx +93 -0
- package/react/src/components/index.ts +11 -0
- package/react/src/components/page/AboutSection.tsx +90 -0
- package/react/src/components/page/AgencyHeader.tsx +56 -0
- package/react/src/components/page/ArchiveInformation.tsx +43 -0
- package/react/src/components/page/ContactSection.tsx +92 -0
- package/react/src/components/page/Section.tsx +53 -0
- package/react/src/components/page/Spotlight.tsx +70 -0
- package/react/src/components/page/index.ts +6 -0
- package/react/src/constants.ts +48 -0
- package/react/src/icons/IconAccessibility.jsx +3 -0
- package/react/src/icons/IconAlert.jsx +3 -0
- package/react/src/icons/IconArchive.jsx +3 -0
- package/react/src/icons/IconArrowDown.jsx +3 -0
- package/react/src/icons/IconArrowLeft.jsx +3 -0
- package/react/src/icons/IconArrowRight.jsx +3 -0
- package/react/src/icons/IconArrowUp.jsx +3 -0
- package/react/src/icons/IconBuilding.jsx +3 -0
- package/react/src/icons/IconCalendar.jsx +3 -0
- package/react/src/icons/IconCaution.jsx +3 -0
- package/react/src/icons/IconChart.jsx +3 -0
- package/react/src/icons/IconCheck.jsx +3 -0
- package/react/src/icons/IconChevronDown.jsx +3 -0
- package/react/src/icons/IconChevronLeft.jsx +3 -0
- package/react/src/icons/IconChevronRight.jsx +3 -0
- package/react/src/icons/IconChevronUp.jsx +3 -0
- package/react/src/icons/IconClock.jsx +3 -0
- package/react/src/icons/IconClose.jsx +3 -0
- package/react/src/icons/IconDocument.jsx +3 -0
- package/react/src/icons/IconGlobe.jsx +3 -0
- package/react/src/icons/IconHamburgerButton.jsx +3 -0
- package/react/src/icons/IconInfo.jsx +3 -0
- package/react/src/icons/IconLocation.jsx +3 -0
- package/react/src/icons/IconMail.jsx +3 -0
- package/react/src/icons/IconMinus.jsx +3 -0
- package/react/src/icons/IconPencil.jsx +3 -0
- package/react/src/icons/IconPhone.jsx +3 -0
- package/react/src/icons/IconPlus.jsx +3 -0
- package/react/src/icons/IconQuestion.jsx +3 -0
- package/react/src/icons/IconSearch.jsx +3 -0
- package/react/src/icons/IconWIP.jsx +3 -0
- package/react/src/icons/index.js +31 -0
- package/react/src/icons/index.json +346 -0
- package/react/src/icons.tsx +34 -0
- package/react/src/index.ts +4 -0
- package/react/src/stitches.config.ts +85 -0
- package/react/src/theme/breakpoints.ts +14 -0
- package/react/src/theme/colors.ts +34 -0
- package/react/src/theme/index.tsx +31 -0
- package/react/src/theme/space.ts +16 -0
- package/react/src/theme/typography.ts +136 -0
- package/react/src/types.ts +31 -0
- package/react/src/utils.tsx +25 -0
- package/rollup.config.mjs +72 -0
- package/svgo.config.js +27 -0
- package/tailwind.config.js +5 -0
- package/tailwind.preset.js +128 -0
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generated": "2023-01-10T07:46:54.467Z",
|
|
3
|
+
"components": [
|
|
4
|
+
{
|
|
5
|
+
"id": "alert",
|
|
6
|
+
"name": "Alert",
|
|
7
|
+
"component": "IconAlert",
|
|
8
|
+
"file": "IconAlert.jsx",
|
|
9
|
+
"size": {
|
|
10
|
+
"width": 20,
|
|
11
|
+
"height": 20
|
|
12
|
+
},
|
|
13
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:179"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "arrow-down",
|
|
17
|
+
"name": "Arrow down",
|
|
18
|
+
"component": "IconArrowDown",
|
|
19
|
+
"file": "IconArrowDown.jsx",
|
|
20
|
+
"size": {
|
|
21
|
+
"width": 20,
|
|
22
|
+
"height": 20
|
|
23
|
+
},
|
|
24
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:180"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "arrow-left",
|
|
28
|
+
"name": "Arrow left",
|
|
29
|
+
"component": "IconArrowLeft",
|
|
30
|
+
"file": "IconArrowLeft.jsx",
|
|
31
|
+
"size": {
|
|
32
|
+
"width": 20,
|
|
33
|
+
"height": 20
|
|
34
|
+
},
|
|
35
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:181"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "arrow-right",
|
|
39
|
+
"name": "Arrow right",
|
|
40
|
+
"component": "IconArrowRight",
|
|
41
|
+
"file": "IconArrowRight.jsx",
|
|
42
|
+
"size": {
|
|
43
|
+
"width": 20,
|
|
44
|
+
"height": 20
|
|
45
|
+
},
|
|
46
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:182"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "arrow-up",
|
|
50
|
+
"name": "Arrow up",
|
|
51
|
+
"component": "IconArrowUp",
|
|
52
|
+
"file": "IconArrowUp.jsx",
|
|
53
|
+
"size": {
|
|
54
|
+
"width": 20,
|
|
55
|
+
"height": 20
|
|
56
|
+
},
|
|
57
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:183"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "building",
|
|
61
|
+
"name": "Building",
|
|
62
|
+
"component": "IconBuilding",
|
|
63
|
+
"file": "IconBuilding.jsx",
|
|
64
|
+
"size": {
|
|
65
|
+
"width": 20,
|
|
66
|
+
"height": 20
|
|
67
|
+
},
|
|
68
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:184"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "check",
|
|
72
|
+
"name": "Check",
|
|
73
|
+
"component": "IconCheck",
|
|
74
|
+
"file": "IconCheck.jsx",
|
|
75
|
+
"size": {
|
|
76
|
+
"width": 20,
|
|
77
|
+
"height": 20
|
|
78
|
+
},
|
|
79
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:185"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "chevron-down",
|
|
83
|
+
"name": "Chevron down",
|
|
84
|
+
"component": "IconChevronDown",
|
|
85
|
+
"file": "IconChevronDown.jsx",
|
|
86
|
+
"size": {
|
|
87
|
+
"width": 20,
|
|
88
|
+
"height": 20
|
|
89
|
+
},
|
|
90
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:186"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "chevron-left",
|
|
94
|
+
"name": "Chevron left",
|
|
95
|
+
"component": "IconChevronLeft",
|
|
96
|
+
"file": "IconChevronLeft.jsx",
|
|
97
|
+
"size": {
|
|
98
|
+
"width": 20,
|
|
99
|
+
"height": 20
|
|
100
|
+
},
|
|
101
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:187"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"id": "chevron-right",
|
|
105
|
+
"name": "Chevron right",
|
|
106
|
+
"component": "IconChevronRight",
|
|
107
|
+
"file": "IconChevronRight.jsx",
|
|
108
|
+
"size": {
|
|
109
|
+
"width": 20,
|
|
110
|
+
"height": 20
|
|
111
|
+
},
|
|
112
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:188"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": "chevron-up",
|
|
116
|
+
"name": "Chevron up",
|
|
117
|
+
"component": "IconChevronUp",
|
|
118
|
+
"file": "IconChevronUp.jsx",
|
|
119
|
+
"size": {
|
|
120
|
+
"width": 20,
|
|
121
|
+
"height": 20
|
|
122
|
+
},
|
|
123
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:189"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"id": "clock",
|
|
127
|
+
"name": "Clock",
|
|
128
|
+
"component": "IconClock",
|
|
129
|
+
"file": "IconClock.jsx",
|
|
130
|
+
"size": {
|
|
131
|
+
"width": 20,
|
|
132
|
+
"height": 20
|
|
133
|
+
},
|
|
134
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:190"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "close",
|
|
138
|
+
"name": "Close",
|
|
139
|
+
"component": "IconClose",
|
|
140
|
+
"file": "IconClose.jsx",
|
|
141
|
+
"size": {
|
|
142
|
+
"width": 20,
|
|
143
|
+
"height": 20
|
|
144
|
+
},
|
|
145
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:191"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "document",
|
|
149
|
+
"name": "Document",
|
|
150
|
+
"component": "IconDocument",
|
|
151
|
+
"file": "IconDocument.jsx",
|
|
152
|
+
"size": {
|
|
153
|
+
"width": 20,
|
|
154
|
+
"height": 20
|
|
155
|
+
},
|
|
156
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:192"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"id": "globe",
|
|
160
|
+
"name": "Globe",
|
|
161
|
+
"component": "IconGlobe",
|
|
162
|
+
"file": "IconGlobe.jsx",
|
|
163
|
+
"size": {
|
|
164
|
+
"width": 20,
|
|
165
|
+
"height": 20
|
|
166
|
+
},
|
|
167
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:193"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"id": "info",
|
|
171
|
+
"name": "Info",
|
|
172
|
+
"component": "IconInfo",
|
|
173
|
+
"file": "IconInfo.jsx",
|
|
174
|
+
"size": {
|
|
175
|
+
"width": 20,
|
|
176
|
+
"height": 20
|
|
177
|
+
},
|
|
178
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:194"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"id": "location",
|
|
182
|
+
"name": "Location",
|
|
183
|
+
"component": "IconLocation",
|
|
184
|
+
"file": "IconLocation.jsx",
|
|
185
|
+
"size": {
|
|
186
|
+
"width": 20,
|
|
187
|
+
"height": 20
|
|
188
|
+
},
|
|
189
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:195"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"id": "mail",
|
|
193
|
+
"name": "Mail",
|
|
194
|
+
"component": "IconMail",
|
|
195
|
+
"file": "IconMail.jsx",
|
|
196
|
+
"size": {
|
|
197
|
+
"width": 20,
|
|
198
|
+
"height": 20
|
|
199
|
+
},
|
|
200
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:196"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": "pencil",
|
|
204
|
+
"name": "Pencil",
|
|
205
|
+
"component": "IconPencil",
|
|
206
|
+
"file": "IconPencil.jsx",
|
|
207
|
+
"size": {
|
|
208
|
+
"width": 20,
|
|
209
|
+
"height": 20
|
|
210
|
+
},
|
|
211
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:197"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"id": "phone",
|
|
215
|
+
"name": "Phone",
|
|
216
|
+
"component": "IconPhone",
|
|
217
|
+
"file": "IconPhone.jsx",
|
|
218
|
+
"size": {
|
|
219
|
+
"width": 20,
|
|
220
|
+
"height": 20
|
|
221
|
+
},
|
|
222
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:198"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"id": "search",
|
|
226
|
+
"name": "Search",
|
|
227
|
+
"component": "IconSearch",
|
|
228
|
+
"file": "IconSearch.jsx",
|
|
229
|
+
"size": {
|
|
230
|
+
"width": 20,
|
|
231
|
+
"height": 20
|
|
232
|
+
},
|
|
233
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=64:199"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"id": "calendar",
|
|
237
|
+
"name": "Calendar",
|
|
238
|
+
"component": "IconCalendar",
|
|
239
|
+
"file": "IconCalendar.jsx",
|
|
240
|
+
"size": {
|
|
241
|
+
"width": 20,
|
|
242
|
+
"height": 19.75
|
|
243
|
+
},
|
|
244
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=351:95"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"id": "accessibility",
|
|
248
|
+
"name": "Accessibility",
|
|
249
|
+
"component": "IconAccessibility",
|
|
250
|
+
"file": "IconAccessibility.jsx",
|
|
251
|
+
"size": {
|
|
252
|
+
"width": 20,
|
|
253
|
+
"height": 20
|
|
254
|
+
},
|
|
255
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=681:5"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"id": "archive",
|
|
259
|
+
"name": "Archive",
|
|
260
|
+
"component": "IconArchive",
|
|
261
|
+
"file": "IconArchive.jsx",
|
|
262
|
+
"size": {
|
|
263
|
+
"width": 20,
|
|
264
|
+
"height": 20
|
|
265
|
+
},
|
|
266
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=971:220"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"id": "caution",
|
|
270
|
+
"name": "Caution",
|
|
271
|
+
"component": "IconCaution",
|
|
272
|
+
"file": "IconCaution.jsx",
|
|
273
|
+
"size": {
|
|
274
|
+
"width": 20,
|
|
275
|
+
"height": 20
|
|
276
|
+
},
|
|
277
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=971:226"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"id": "wip",
|
|
281
|
+
"name": "WIP",
|
|
282
|
+
"component": "IconWIP",
|
|
283
|
+
"file": "IconWIP.jsx",
|
|
284
|
+
"size": {
|
|
285
|
+
"width": 20,
|
|
286
|
+
"height": 20
|
|
287
|
+
},
|
|
288
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=1972:110"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"id": "chart",
|
|
292
|
+
"name": "Chart",
|
|
293
|
+
"component": "IconChart",
|
|
294
|
+
"file": "IconChart.jsx",
|
|
295
|
+
"size": {
|
|
296
|
+
"width": 20,
|
|
297
|
+
"height": 20
|
|
298
|
+
},
|
|
299
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=1086:57"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"id": "question",
|
|
303
|
+
"name": "Question",
|
|
304
|
+
"component": "IconQuestion",
|
|
305
|
+
"file": "IconQuestion.jsx",
|
|
306
|
+
"size": {
|
|
307
|
+
"width": 20,
|
|
308
|
+
"height": 20
|
|
309
|
+
},
|
|
310
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=1092:48"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": "hamburger-button",
|
|
314
|
+
"name": "Hamburger button",
|
|
315
|
+
"component": "IconHamburgerButton",
|
|
316
|
+
"file": "IconHamburgerButton.jsx",
|
|
317
|
+
"size": {
|
|
318
|
+
"width": 20,
|
|
319
|
+
"height": 20
|
|
320
|
+
},
|
|
321
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=1519:27"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"id": "minus",
|
|
325
|
+
"name": "Minus",
|
|
326
|
+
"component": "IconMinus",
|
|
327
|
+
"file": "IconMinus.jsx",
|
|
328
|
+
"size": {
|
|
329
|
+
"width": 19,
|
|
330
|
+
"height": 19
|
|
331
|
+
},
|
|
332
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=368:28"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"id": "plus",
|
|
336
|
+
"name": "Plus",
|
|
337
|
+
"component": "IconPlus",
|
|
338
|
+
"file": "IconPlus.jsx",
|
|
339
|
+
"size": {
|
|
340
|
+
"width": 19,
|
|
341
|
+
"height": 19
|
|
342
|
+
},
|
|
343
|
+
"href": "https://figma.com/file/P0usvPQSAKOzqcH5mPFf1u/Icons?node-id=368:27"
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as icons from './icons/index.js'
|
|
2
|
+
import { createStyledIcon as wrap } from './components'
|
|
3
|
+
|
|
4
|
+
export const IconAlert = wrap(icons.IconAlert)
|
|
5
|
+
export const IconArrowDown = wrap(icons.IconArrowDown)
|
|
6
|
+
export const IconArrowLeft = wrap(icons.IconArrowLeft)
|
|
7
|
+
export const IconArrowRight = wrap(icons.IconArrowRight)
|
|
8
|
+
export const IconArrowUp = wrap(icons.IconArrowUp)
|
|
9
|
+
export const IconBuilding = wrap(icons.IconBuilding)
|
|
10
|
+
export const IconCheck = wrap(icons.IconCheck)
|
|
11
|
+
export const IconChevronDown = wrap(icons.IconChevronDown)
|
|
12
|
+
export const IconChevronLeft = wrap(icons.IconChevronLeft)
|
|
13
|
+
export const IconChevronRight = wrap(icons.IconChevronRight)
|
|
14
|
+
export const IconChevronUp = wrap(icons.IconChevronUp)
|
|
15
|
+
export const IconClock = wrap(icons.IconClock)
|
|
16
|
+
export const IconClose = wrap(icons.IconClose)
|
|
17
|
+
export const IconDocument = wrap(icons.IconDocument)
|
|
18
|
+
export const IconGlobe = wrap(icons.IconGlobe)
|
|
19
|
+
export const IconInfo = wrap(icons.IconInfo)
|
|
20
|
+
export const IconLocation = wrap(icons.IconLocation)
|
|
21
|
+
export const IconMail = wrap(icons.IconMail)
|
|
22
|
+
export const IconPencil = wrap(icons.IconPencil)
|
|
23
|
+
export const IconPhone = wrap(icons.IconPhone)
|
|
24
|
+
export const IconSearch = wrap(icons.IconSearch)
|
|
25
|
+
export const IconCalendar = wrap(icons.IconCalendar)
|
|
26
|
+
export const IconAccessibility = wrap(icons.IconAccessibility)
|
|
27
|
+
export const IconArchive = wrap(icons.IconArchive)
|
|
28
|
+
export const IconCaution = wrap(icons.IconCaution)
|
|
29
|
+
export const IconWIP = wrap(icons.IconWIP)
|
|
30
|
+
export const IconChart = wrap(icons.IconChart)
|
|
31
|
+
export const IconQuestion = wrap(icons.IconQuestion)
|
|
32
|
+
export const IconHamburgerButton = wrap(icons.IconHamburgerButton)
|
|
33
|
+
export const IconMinus = wrap(icons.IconMinus)
|
|
34
|
+
export const IconPlus = wrap(icons.IconPlus)
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { createStitches } from '@stitches/react'
|
|
2
|
+
import * as Stitches from '@stitches/react'
|
|
3
|
+
import { theme as inputTheme, media } from './theme'
|
|
4
|
+
import { identity } from './utils'
|
|
5
|
+
|
|
6
|
+
export const {
|
|
7
|
+
config,
|
|
8
|
+
css,
|
|
9
|
+
createTheme,
|
|
10
|
+
keyframes,
|
|
11
|
+
getCssText,
|
|
12
|
+
globalCss,
|
|
13
|
+
reset,
|
|
14
|
+
styled
|
|
15
|
+
} = createStitches({
|
|
16
|
+
prefix: 'sfgov',
|
|
17
|
+
theme: inputTheme,
|
|
18
|
+
media,
|
|
19
|
+
utils: {
|
|
20
|
+
// colors
|
|
21
|
+
bg: alias('backgroundColor'),
|
|
22
|
+
fg: alias('color'),
|
|
23
|
+
// borders
|
|
24
|
+
bc: alias('borderColor'),
|
|
25
|
+
br: alias('borderRadius'),
|
|
26
|
+
// layout
|
|
27
|
+
cols: alias('columnCount'),
|
|
28
|
+
gapX: alias('columnGap'),
|
|
29
|
+
gapY: alias('rowGap'),
|
|
30
|
+
// spacing
|
|
31
|
+
m: alias('margin'),
|
|
32
|
+
mt: alias('marginTop'),
|
|
33
|
+
mr: alias('marginRight'),
|
|
34
|
+
mb: alias('marginBottom'),
|
|
35
|
+
ml: alias('marginLeft'),
|
|
36
|
+
mx: alias(['marginLeft', 'marginRight']),
|
|
37
|
+
my: alias(['marginTop', 'marginBottom']),
|
|
38
|
+
p: alias('padding'),
|
|
39
|
+
pt: alias('paddingTop'),
|
|
40
|
+
pr: alias('paddingRight'),
|
|
41
|
+
pb: alias('paddingBottom'),
|
|
42
|
+
pl: alias('paddingLeft'),
|
|
43
|
+
px: alias(['paddingLeft', 'paddingRight']),
|
|
44
|
+
py: alias(['paddingTop', 'paddingBottom'])
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
type StitchesCSSProp = keyof Stitches.CSSProperties
|
|
49
|
+
|
|
50
|
+
export type CSS = Stitches.CSS<typeof config>
|
|
51
|
+
|
|
52
|
+
type CSSProp = keyof CSS
|
|
53
|
+
type CSSTransform<V extends CSSProp, Input = any> = (v: Input) => V
|
|
54
|
+
type AliasFunction<Input = any> = (v: Input) => Stitches.CSS
|
|
55
|
+
|
|
56
|
+
function alias <Input = any> (key: StitchesCSSProp, transform?: CSSTransform<typeof key, Input>): AliasFunction
|
|
57
|
+
function alias <Input = any> (keys: StitchesCSSProp[], transform?: CSSTransform<(typeof keys)[number], Input>): AliasFunction
|
|
58
|
+
function alias <Input = Stitches.CSS> (key: string, transform?: (v: Input) => Record<typeof key, Input>): AliasFunction
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Create an alias function that outputs one or more style properties from a single value:
|
|
62
|
+
*
|
|
63
|
+
* ```js
|
|
64
|
+
* createStitches({
|
|
65
|
+
* utils: {
|
|
66
|
+
* // { m: 0 } → { margin: 0 }
|
|
67
|
+
* m: alias('margin')
|
|
68
|
+
* // { mx: 'auto' } -> { marginLeft: 'auto', marginRight: 'auto' }
|
|
69
|
+
* mx: alias(['marginLeft', 'marginRight'])
|
|
70
|
+
* }
|
|
71
|
+
* })
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @param keyOrKeys A single CSS style property or array of them
|
|
75
|
+
* @param transform Optionally transform the input value with this function
|
|
76
|
+
*/
|
|
77
|
+
function alias <Input = any> (
|
|
78
|
+
keyOrKeys: StitchesCSSProp | StitchesCSSProp[] | string,
|
|
79
|
+
transform?: Function
|
|
80
|
+
) {
|
|
81
|
+
const t = transform || identity
|
|
82
|
+
return Array.isArray(keyOrKeys)
|
|
83
|
+
? (v: Input) => keyOrKeys.reduce((o, p) => Object.assign(o, { [p]: t(v) }), {})
|
|
84
|
+
: (v: Input) => ({ [keyOrKeys]: t(v) })
|
|
85
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// required keys of our breakpoint object
|
|
2
|
+
export type BreakpointName = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
3
|
+
|
|
4
|
+
export const breakpoints: Record<BreakpointName, string> = {
|
|
5
|
+
xs: '375px',
|
|
6
|
+
sm: '640px',
|
|
7
|
+
md: '768px',
|
|
8
|
+
lg: '1024px',
|
|
9
|
+
xl: '1280px'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const media = Object.fromEntries(
|
|
13
|
+
Object.entries(breakpoints).map(([name, value]) => [name, `(min-width: ${value})`])
|
|
14
|
+
) as Record<BreakpointName, string>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const colors = {
|
|
2
|
+
white: '#fff',
|
|
3
|
+
black: '#212123',
|
|
4
|
+
action: '$blueBright',
|
|
5
|
+
blueL1: '#edf4f7',
|
|
6
|
+
blueL2: '#a9d6ea',
|
|
7
|
+
blueBright: '#495ed4',
|
|
8
|
+
blueDark: '#0c1464',
|
|
9
|
+
greenL1: '#e9f7ec',
|
|
10
|
+
greenL2: '#c0e2c5',
|
|
11
|
+
greenL3: '#00866a',
|
|
12
|
+
greenL4: '#1b674d',
|
|
13
|
+
greyL1: '#f6f6f6',
|
|
14
|
+
greyL2: '#e2e2e2',
|
|
15
|
+
greyL3: '#c2c2c2',
|
|
16
|
+
greyL4: '#a1a1a1',
|
|
17
|
+
greyDark: '#424244',
|
|
18
|
+
purpleL1: '#edebf6',
|
|
19
|
+
purpleL2: '#cccced',
|
|
20
|
+
purpleL3: '#7d61b3',
|
|
21
|
+
purpleL4: '#543a89',
|
|
22
|
+
redL1: '#f5e9e5',
|
|
23
|
+
redL2: '#efcabb',
|
|
24
|
+
redL3: '#c55236',
|
|
25
|
+
redL4: '#9b3921',
|
|
26
|
+
slateL1: '#eff3f4',
|
|
27
|
+
slateL2: '#5a7a92',
|
|
28
|
+
slateL3: '#1d4d70',
|
|
29
|
+
slateL4: '#002b48',
|
|
30
|
+
yellowL1: '#f8f1df',
|
|
31
|
+
yellowL2: '#f9e3a3',
|
|
32
|
+
yellowL3: '#f4c435',
|
|
33
|
+
yellowL4: '#e0a81a'
|
|
34
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { colors } from './colors'
|
|
2
|
+
import { BreakpointName, breakpoints, media } from './breakpoints'
|
|
3
|
+
import { fonts, fontSizes, fontWeights, lineHeights, letterSpacings, textStyles } from './typography'
|
|
4
|
+
import { space } from './space'
|
|
5
|
+
import { pxMap } from '../utils'
|
|
6
|
+
|
|
7
|
+
export type { BreakpointName }
|
|
8
|
+
export { breakpoints, media, textStyles }
|
|
9
|
+
|
|
10
|
+
export const theme = {
|
|
11
|
+
colors,
|
|
12
|
+
media,
|
|
13
|
+
space,
|
|
14
|
+
sizes: {
|
|
15
|
+
...breakpoints,
|
|
16
|
+
...space
|
|
17
|
+
},
|
|
18
|
+
borderWidths: {
|
|
19
|
+
...pxMap([
|
|
20
|
+
0,
|
|
21
|
+
1,
|
|
22
|
+
2,
|
|
23
|
+
3
|
|
24
|
+
])
|
|
25
|
+
},
|
|
26
|
+
fonts,
|
|
27
|
+
fontSizes,
|
|
28
|
+
fontWeights,
|
|
29
|
+
lineHeights,
|
|
30
|
+
letterSpacings
|
|
31
|
+
}
|