@newtonschool/grauity 3.0.11 → 3.0.13
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 -674
- package/README.md +19 -14
- package/dist/css/grauity-icons.scss +200 -192
- package/dist/fonts/grauity-icons.eot +0 -0
- package/dist/fonts/grauity-icons.ttf +0 -0
- package/dist/fonts/grauity-icons.woff +0 -0
- package/dist/fonts/grauity-icons.woff2 +0 -0
- package/dist/index.d.ts +30 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/ui/core/icons/iconTags.d.ts +2 -0
- package/dist/ui/core/icons/iconTags.d.ts.map +1 -1
- package/dist/ui/core/icons/iconTypes.d.ts +4 -2
- package/dist/ui/core/icons/iconTypes.d.ts.map +1 -1
- package/dist/ui/elements/Form/TextField/TextField.d.ts.map +1 -1
- package/dist/ui/elements/Form/TextField/types.d.ts +27 -1
- package/dist/ui/elements/Form/TextField/types.d.ts.map +1 -1
- package/package.json +4 -25
package/README.md
CHANGED
|
@@ -18,6 +18,14 @@
|
|
|
18
18
|
<br />
|
|
19
19
|
<br />
|
|
20
20
|
<img src="https://github.com/Newton-School/grauity/actions/workflows/run-tests.yml/badge.svg" alt="Test status badge" />
|
|
21
|
+
<img src="https://github.com/Newton-School/grauity/actions/workflows/build-storybook.yml/badge.svg" alt="Build docs badge" />
|
|
22
|
+
<img src="https://github.com/Newton-School/grauity/actions/workflows/publish-npm-package.yml/badge.svg" alt="Publish to NPM" />
|
|
23
|
+
<div align="center">
|
|
24
|
+
<img src="http://img.shields.io/npm/v/@newtonschool/grauity.svg" alt="NPM version badge" />
|
|
25
|
+
<img src="http://img.shields.io/npm/dm/@newtonschool/grauity.svg" alt="NPM downloads badge" />
|
|
26
|
+
<img src="http://img.shields.io/bundlephobia/min/@newtonschool/grauity.svg" alt="Bundle size badge" />
|
|
27
|
+
<img src="http://img.shields.io/npm/l/@newtonschool/grauity.svg" alt="License badge" />
|
|
28
|
+
</div>
|
|
21
29
|
</p>
|
|
22
30
|
|
|
23
31
|
## About gra.UI.ty
|
|
@@ -84,6 +92,7 @@ your-app$: npm run dev
|
|
|
84
92
|
```
|
|
85
93
|
|
|
86
94
|
After you have made changes in grauity, build it.
|
|
95
|
+
|
|
87
96
|
```bash
|
|
88
97
|
grauity$: npm run build
|
|
89
98
|
```
|
|
@@ -91,6 +100,7 @@ grauity$: npm run build
|
|
|
91
100
|
If changes are not showing up even after rebuilding, you may
|
|
92
101
|
have to delete `your-app/node_modules/@newtonschool/grauity` folder
|
|
93
102
|
and install `grauity` again:
|
|
103
|
+
|
|
94
104
|
```bash
|
|
95
105
|
grauity$: npm run build
|
|
96
106
|
|
|
@@ -120,7 +130,6 @@ export const MyComponent = () => (
|
|
|
120
130
|
);
|
|
121
131
|
```
|
|
122
132
|
|
|
123
|
-
|
|
124
133
|
# How to's
|
|
125
134
|
|
|
126
135
|
## Add new icons from `.svg` files
|
|
@@ -135,53 +144,49 @@ grauity$: git submodule update --remote --merge
|
|
|
135
144
|
|
|
136
145
|
To add a new font icon, add your `.svg` files for the new icon in the [./iconland/seeds/](iconland/seeds) directory in the [iconland](./iconland) submodule.
|
|
137
146
|
|
|
138
|
-
|
|
139
147
|
#### 3. Optimize & Generate new font files
|
|
140
148
|
|
|
141
149
|
```bash
|
|
142
150
|
grauity$: npm run build-icons:optimize
|
|
143
151
|
grauity$: npm run build-icons:generate
|
|
144
152
|
```
|
|
145
|
-
|
|
153
|
+
|
|
154
|
+
_Alternatively_, run the command
|
|
155
|
+
|
|
146
156
|
```bash
|
|
147
157
|
grauity$: npm run build-icons
|
|
148
158
|
```
|
|
149
159
|
|
|
150
160
|
Font files will be created in [ui/fonts](ui/fonts) folder.
|
|
151
161
|
|
|
152
|
-
|
|
153
162
|
## Use theming in your React app
|
|
154
163
|
|
|
155
164
|
Without theming, only foundational (theme agnostic) CSS variables (found here: [constantGlobalStyle](ui/themes/GlobalStyle.ts)) will be provided.
|
|
156
165
|
|
|
157
166
|
To enable theming, wrap your components with `GrauityThemeProvider`:
|
|
167
|
+
|
|
158
168
|
```js
|
|
159
169
|
import { GrauityThemeProvider } from '@newtonschool/grauity';
|
|
160
170
|
|
|
161
171
|
const App = ({ children, ...props }) => {
|
|
162
|
-
|
|
163
|
-
<GrauityThemeProvider>
|
|
164
|
-
{children}
|
|
165
|
-
</GrauityThemeProvider>
|
|
166
|
-
)
|
|
172
|
+
return <GrauityThemeProvider>{children}</GrauityThemeProvider>;
|
|
167
173
|
};
|
|
168
174
|
|
|
169
175
|
export default App;
|
|
170
176
|
```
|
|
171
177
|
|
|
172
|
-
|
|
173
178
|
Theming can be controlled by providing different class names to your root/local DOM elements, like the body element.
|
|
174
179
|
|
|
175
|
-
|
|
176
|
-
|
|
180
|
+
- Add class `grauity-theme-light` to use the light theme
|
|
181
|
+
- Add class `grauity-theme-dark` to use the dark theme
|
|
177
182
|
|
|
178
183
|
Now, you will be provided with the foundational as well as themed CSS variables, whose
|
|
179
184
|
value will change depending on the theme applied.
|
|
180
185
|
|
|
181
186
|
These themed CSS variables can be found here:
|
|
182
|
-
- [Dark theme color mapping](./ui/themes/darkThemeConstants.ts)
|
|
183
|
-
- [Light theme color mapping](./ui/themes/lightThemeConstants.ts)
|
|
184
187
|
|
|
188
|
+
- [Dark theme color mapping](./ui/themes/darkThemeConstants.ts)
|
|
189
|
+
- [Light theme color mapping](./ui/themes/lightThemeConstants.ts)
|
|
185
190
|
|
|
186
191
|
## Use icons in your React app
|
|
187
192
|
|
|
@@ -2,10 +2,10 @@ $grauity-icons-font: "grauity-icons";
|
|
|
2
2
|
|
|
3
3
|
@font-face {
|
|
4
4
|
font-family: $grauity-icons-font;
|
|
5
|
-
src: url("../fonts/grauity-icons.eot?
|
|
6
|
-
url("../fonts/grauity-icons.woff?
|
|
7
|
-
url("../fonts/grauity-icons.woff2?
|
|
8
|
-
url("../fonts/grauity-icons.ttf?
|
|
5
|
+
src: url("../fonts/grauity-icons.eot?c1b5f5d7b18af544c47de637dcbd8cd8#iefix") format("embedded-opentype"),
|
|
6
|
+
url("../fonts/grauity-icons.woff?c1b5f5d7b18af544c47de637dcbd8cd8") format("woff"),
|
|
7
|
+
url("../fonts/grauity-icons.woff2?c1b5f5d7b18af544c47de637dcbd8cd8") format("woff2"),
|
|
8
|
+
url("../fonts/grauity-icons.ttf?c1b5f5d7b18af544c47de637dcbd8cd8") format("truetype");
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
i[class^="grauity-icon-"]:before, i[class*=" grauity-icon-"]:before {
|
|
@@ -274,194 +274,196 @@ $grauity-icons-map: (
|
|
|
274
274
|
"close": "\f1fc",
|
|
275
275
|
"compass-filled": "\f1fd",
|
|
276
276
|
"compass": "\f1fe",
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
282
|
-
"
|
|
283
|
-
"
|
|
284
|
-
"
|
|
285
|
-
"
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"email-filled": "\f20b",
|
|
290
|
-
"email": "\f20c",
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"
|
|
296
|
-
"
|
|
297
|
-
"
|
|
298
|
-
"
|
|
299
|
-
"
|
|
300
|
-
"
|
|
301
|
-
"
|
|
302
|
-
"
|
|
303
|
-
"
|
|
304
|
-
"
|
|
305
|
-
"grip-
|
|
306
|
-
"grip-
|
|
307
|
-
"
|
|
308
|
-
"
|
|
309
|
-
"growth-
|
|
310
|
-
"growth-
|
|
311
|
-
"
|
|
312
|
-
"
|
|
313
|
-
"
|
|
314
|
-
"
|
|
315
|
-
"
|
|
316
|
-
"
|
|
317
|
-
"
|
|
318
|
-
"
|
|
319
|
-
"
|
|
320
|
-
"
|
|
321
|
-
"kebab-
|
|
322
|
-
"kebab-
|
|
323
|
-
"
|
|
324
|
-
"
|
|
325
|
-
"
|
|
326
|
-
"
|
|
327
|
-
"list-filled": "\f231",
|
|
328
|
-
"list": "\f232",
|
|
329
|
-
"
|
|
330
|
-
"
|
|
331
|
-
"
|
|
332
|
-
"
|
|
333
|
-
"
|
|
334
|
-
"
|
|
335
|
-
"
|
|
336
|
-
"
|
|
337
|
-
"map-pin-
|
|
338
|
-
"map-pin-
|
|
339
|
-
"map-pin-filled": "\f23d",
|
|
340
|
-
"map-pin": "\f23e",
|
|
341
|
-
"
|
|
342
|
-
"
|
|
343
|
-
"
|
|
344
|
-
"
|
|
345
|
-
"menu-filled": "\f243",
|
|
346
|
-
"menu-
|
|
347
|
-
"menu-
|
|
348
|
-
"menu": "\f246",
|
|
349
|
-
"
|
|
350
|
-
"
|
|
351
|
-
"
|
|
352
|
-
"
|
|
353
|
-
"
|
|
354
|
-
"
|
|
355
|
-
"minus-
|
|
356
|
-
"minus-
|
|
357
|
-
"
|
|
358
|
-
"
|
|
359
|
-
"
|
|
360
|
-
"
|
|
361
|
-
"
|
|
362
|
-
"
|
|
363
|
-
"
|
|
364
|
-
"
|
|
365
|
-
"plus-filled": "\f257",
|
|
366
|
-
"plus-
|
|
367
|
-
"plus-
|
|
368
|
-
"plus": "\f25a",
|
|
369
|
-
"
|
|
370
|
-
"
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
"
|
|
375
|
-
"progress-
|
|
376
|
-
"progress-
|
|
377
|
-
"progress-
|
|
378
|
-
"progress-
|
|
379
|
-
"
|
|
380
|
-
"
|
|
381
|
-
"
|
|
382
|
-
"
|
|
383
|
-
"
|
|
384
|
-
"
|
|
385
|
-
"
|
|
386
|
-
"
|
|
387
|
-
"
|
|
388
|
-
"
|
|
389
|
-
"
|
|
390
|
-
"
|
|
391
|
-
"
|
|
392
|
-
"
|
|
393
|
-
"screenshare-
|
|
394
|
-
"screenshare-
|
|
395
|
-
"
|
|
396
|
-
"
|
|
397
|
-
"
|
|
398
|
-
"
|
|
399
|
-
"
|
|
400
|
-
"
|
|
401
|
-
"shield-
|
|
402
|
-
"shield-
|
|
403
|
-
"shield-filled": "\f27d",
|
|
404
|
-
"shield-
|
|
405
|
-
"shield-
|
|
406
|
-
"shield-
|
|
407
|
-
"shield-
|
|
408
|
-
"shield": "\f282",
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"sidebar-
|
|
414
|
-
"sidebar-
|
|
415
|
-
"
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
"
|
|
421
|
-
"
|
|
422
|
-
"
|
|
423
|
-
"
|
|
424
|
-
"
|
|
425
|
-
"
|
|
426
|
-
"
|
|
427
|
-
"
|
|
428
|
-
"
|
|
429
|
-
"thumbs-
|
|
430
|
-
"thumbs-
|
|
431
|
-
"
|
|
432
|
-
"
|
|
433
|
-
"
|
|
434
|
-
"
|
|
435
|
-
"
|
|
436
|
-
"
|
|
437
|
-
"
|
|
438
|
-
"
|
|
439
|
-
"
|
|
440
|
-
"
|
|
441
|
-
"
|
|
442
|
-
"
|
|
443
|
-
"calender-filled": "\f2a5",
|
|
444
|
-
"calender-
|
|
445
|
-
"calender-
|
|
446
|
-
"calender": "\f2a8",
|
|
447
|
-
"
|
|
448
|
-
"
|
|
449
|
-
"
|
|
450
|
-
"
|
|
451
|
-
"
|
|
452
|
-
"
|
|
453
|
-
"
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"
|
|
457
|
-
"person-filled": "\f2b3",
|
|
458
|
-
"person-
|
|
459
|
-
"person-
|
|
460
|
-
"person": "\f2b6",
|
|
461
|
-
"
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
"
|
|
277
|
+
"copy-filled": "\f1ff",
|
|
278
|
+
"copy": "\f200",
|
|
279
|
+
"database-filled": "\f201",
|
|
280
|
+
"database": "\f202",
|
|
281
|
+
"diamond-filled": "\f203",
|
|
282
|
+
"diamond": "\f204",
|
|
283
|
+
"double-check-filled": "\f205",
|
|
284
|
+
"double-check": "\f206",
|
|
285
|
+
"download-filled": "\f207",
|
|
286
|
+
"download": "\f208",
|
|
287
|
+
"eda-filled": "\f209",
|
|
288
|
+
"eda": "\f20a",
|
|
289
|
+
"email-alt-filled": "\f20b",
|
|
290
|
+
"email-alt": "\f20c",
|
|
291
|
+
"email-filled": "\f20d",
|
|
292
|
+
"email": "\f20e",
|
|
293
|
+
"filter-filled": "\f20f",
|
|
294
|
+
"filter": "\f210",
|
|
295
|
+
"floppy-filled": "\f211",
|
|
296
|
+
"floppy": "\f212",
|
|
297
|
+
"forward-filled": "\f213",
|
|
298
|
+
"forward": "\f214",
|
|
299
|
+
"gear-filled": "\f215",
|
|
300
|
+
"gear": "\f216",
|
|
301
|
+
"git-commit-filled": "\f217",
|
|
302
|
+
"git-commit": "\f218",
|
|
303
|
+
"globe-filled": "\f219",
|
|
304
|
+
"globe": "\f21a",
|
|
305
|
+
"grip-hortizontal-filled": "\f21b",
|
|
306
|
+
"grip-hortizontal": "\f21c",
|
|
307
|
+
"grip-vertical-filled": "\f21d",
|
|
308
|
+
"grip-vertical": "\f21e",
|
|
309
|
+
"growth-down-filled": "\f21f",
|
|
310
|
+
"growth-down": "\f220",
|
|
311
|
+
"growth-up-filled": "\f221",
|
|
312
|
+
"growth-up": "\f222",
|
|
313
|
+
"help-filled": "\f223",
|
|
314
|
+
"help": "\f224",
|
|
315
|
+
"hold-filled": "\f225",
|
|
316
|
+
"hold": "\f226",
|
|
317
|
+
"home-filled": "\f227",
|
|
318
|
+
"home": "\f228",
|
|
319
|
+
"hourglass-filled": "\f229",
|
|
320
|
+
"hourglass": "\f22a",
|
|
321
|
+
"kebab-horizontal-filled": "\f22b",
|
|
322
|
+
"kebab-horizontal": "\f22c",
|
|
323
|
+
"kebab-vertical-filled": "\f22d",
|
|
324
|
+
"kebab-vertical": "\f22e",
|
|
325
|
+
"link-filled": "\f22f",
|
|
326
|
+
"link": "\f230",
|
|
327
|
+
"list-checked-filled": "\f231",
|
|
328
|
+
"list-checked": "\f232",
|
|
329
|
+
"list-filled": "\f233",
|
|
330
|
+
"list": "\f234",
|
|
331
|
+
"load-filled": "\f235",
|
|
332
|
+
"load": "\f236",
|
|
333
|
+
"loudspeaker-filled": "\f237",
|
|
334
|
+
"loudspeaker": "\f238",
|
|
335
|
+
"machine-learning-filled": "\f239",
|
|
336
|
+
"machine-learning": "\f23a",
|
|
337
|
+
"map-pin-alt1-filled": "\f23b",
|
|
338
|
+
"map-pin-alt1": "\f23c",
|
|
339
|
+
"map-pin-alt2-filled": "\f23d",
|
|
340
|
+
"map-pin-alt2": "\f23e",
|
|
341
|
+
"map-pin-filled": "\f23f",
|
|
342
|
+
"map-pin": "\f240",
|
|
343
|
+
"maximize-filled": "\f241",
|
|
344
|
+
"maximize": "\f242",
|
|
345
|
+
"menu-alt2-filled": "\f243",
|
|
346
|
+
"menu-alt2": "\f244",
|
|
347
|
+
"menu-filled": "\f245",
|
|
348
|
+
"menu-grid-filled": "\f246",
|
|
349
|
+
"menu-grid": "\f247",
|
|
350
|
+
"menu": "\f248",
|
|
351
|
+
"microchip-filled": "\f249",
|
|
352
|
+
"microchip": "\f24a",
|
|
353
|
+
"minimize-filled": "\f24b",
|
|
354
|
+
"minimize": "\f24c",
|
|
355
|
+
"minus-circle-filled": "\f24d",
|
|
356
|
+
"minus-circle": "\f24e",
|
|
357
|
+
"minus-square-filled": "\f24f",
|
|
358
|
+
"minus-square": "\f250",
|
|
359
|
+
"moon-filled": "\f251",
|
|
360
|
+
"moon": "\f252",
|
|
361
|
+
"new-tab-filled": "\f253",
|
|
362
|
+
"new-tab": "\f254",
|
|
363
|
+
"paper-clip-filled": "\f255",
|
|
364
|
+
"paper-clip": "\f256",
|
|
365
|
+
"plus-circle-filled": "\f257",
|
|
366
|
+
"plus-circle": "\f258",
|
|
367
|
+
"plus-filled": "\f259",
|
|
368
|
+
"plus-square-filled": "\f25a",
|
|
369
|
+
"plus-square": "\f25b",
|
|
370
|
+
"plus": "\f25c",
|
|
371
|
+
"power-bi-filled": "\f25d",
|
|
372
|
+
"power-bi": "\f25e",
|
|
373
|
+
"printer-filled": "\f25f",
|
|
374
|
+
"printer": "\f260",
|
|
375
|
+
"progress-half-filled": "\f261",
|
|
376
|
+
"progress-half": "\f262",
|
|
377
|
+
"progress-quarter-filled": "\f263",
|
|
378
|
+
"progress-quarter": "\f264",
|
|
379
|
+
"progress-zero-filled": "\f265",
|
|
380
|
+
"progress-zero": "\f266",
|
|
381
|
+
"python-filled": "\f267",
|
|
382
|
+
"python": "\f268",
|
|
383
|
+
"quiz-filled": "\f269",
|
|
384
|
+
"quiz": "\f26a",
|
|
385
|
+
"refresh-filled": "\f26b",
|
|
386
|
+
"refresh": "\f26c",
|
|
387
|
+
"remove-filled": "\f26d",
|
|
388
|
+
"remove": "\f26e",
|
|
389
|
+
"reply-filled": "\f26f",
|
|
390
|
+
"reply": "\f270",
|
|
391
|
+
"retail-filled": "\f271",
|
|
392
|
+
"retail": "\f272",
|
|
393
|
+
"screenshare-start-filled": "\f273",
|
|
394
|
+
"screenshare-start": "\f274",
|
|
395
|
+
"screenshare-stop-filled": "\f275",
|
|
396
|
+
"screenshare-stop": "\f276",
|
|
397
|
+
"search-filled": "\f277",
|
|
398
|
+
"search": "\f278",
|
|
399
|
+
"share-filled": "\f279",
|
|
400
|
+
"share": "\f27a",
|
|
401
|
+
"shield-alert-filled": "\f27b",
|
|
402
|
+
"shield-alert": "\f27c",
|
|
403
|
+
"shield-check-filled": "\f27d",
|
|
404
|
+
"shield-check": "\f27e",
|
|
405
|
+
"shield-filled": "\f27f",
|
|
406
|
+
"shield-lock-filled": "\f280",
|
|
407
|
+
"shield-lock": "\f281",
|
|
408
|
+
"shield-x-filled": "\f282",
|
|
409
|
+
"shield-x": "\f283",
|
|
410
|
+
"shield": "\f284",
|
|
411
|
+
"shop-filled": "\f285",
|
|
412
|
+
"shop": "\f286",
|
|
413
|
+
"sidebar-left-filled": "\f287",
|
|
414
|
+
"sidebar-left": "\f288",
|
|
415
|
+
"sidebar-right-filled": "\f289",
|
|
416
|
+
"sidebar-right": "\f28a",
|
|
417
|
+
"signin-filled": "\f28b",
|
|
418
|
+
"signin": "\f28c",
|
|
419
|
+
"signout-filled": "\f28d",
|
|
420
|
+
"signout": "\f28e",
|
|
421
|
+
"slider-filled": "\f28f",
|
|
422
|
+
"slider": "\f290",
|
|
423
|
+
"square-filled": "\f291",
|
|
424
|
+
"square": "\f292",
|
|
425
|
+
"sticky-note-filled": "\f293",
|
|
426
|
+
"sticky-note": "\f294",
|
|
427
|
+
"sun-filled": "\f295",
|
|
428
|
+
"sun": "\f296",
|
|
429
|
+
"thumbs-down-filled": "\f297",
|
|
430
|
+
"thumbs-down": "\f298",
|
|
431
|
+
"thumbs-up-filled": "\f299",
|
|
432
|
+
"thumbs-up": "\f29a",
|
|
433
|
+
"thunder-filled": "\f29b",
|
|
434
|
+
"thunder": "\f29c",
|
|
435
|
+
"truck-filled": "\f29d",
|
|
436
|
+
"truck": "\f29e",
|
|
437
|
+
"upload-filled": "\f29f",
|
|
438
|
+
"upload": "\f2a0",
|
|
439
|
+
"wrench-filled": "\f2a1",
|
|
440
|
+
"wrench": "\f2a2",
|
|
441
|
+
"bell-filled": "\f2a3",
|
|
442
|
+
"bell": "\f2a4",
|
|
443
|
+
"calender-check-filled": "\f2a5",
|
|
444
|
+
"calender-check": "\f2a6",
|
|
445
|
+
"calender-filled": "\f2a7",
|
|
446
|
+
"calender-plus-filled": "\f2a8",
|
|
447
|
+
"calender-plus": "\f2a9",
|
|
448
|
+
"calender": "\f2aa",
|
|
449
|
+
"clock-filled": "\f2ab",
|
|
450
|
+
"clock": "\f2ac",
|
|
451
|
+
"rewatch-filled": "\f2ad",
|
|
452
|
+
"rewatch": "\f2ae",
|
|
453
|
+
"stopwatch-filled": "\f2af",
|
|
454
|
+
"stopwatch": "\f2b0",
|
|
455
|
+
"bot-filled": "\f2b1",
|
|
456
|
+
"bot": "\f2b2",
|
|
457
|
+
"person-check-filled": "\f2b3",
|
|
458
|
+
"person-check": "\f2b4",
|
|
459
|
+
"person-filled": "\f2b5",
|
|
460
|
+
"person-plus-filled": "\f2b6",
|
|
461
|
+
"person-plus": "\f2b7",
|
|
462
|
+
"person": "\f2b8",
|
|
463
|
+
"user-speak-filled": "\f2b9",
|
|
464
|
+
"user-speak": "\f2ba",
|
|
465
|
+
"users-filled": "\f2bb",
|
|
466
|
+
"users": "\f2bc",
|
|
465
467
|
);
|
|
466
468
|
|
|
467
469
|
.grauity-icon-exclamation-circle-filled:before {
|
|
@@ -1226,6 +1228,12 @@ $grauity-icons-map: (
|
|
|
1226
1228
|
.grauity-icon-compass:before {
|
|
1227
1229
|
content: map-get($grauity-icons-map, "compass");
|
|
1228
1230
|
}
|
|
1231
|
+
.grauity-icon-copy-filled:before {
|
|
1232
|
+
content: map-get($grauity-icons-map, "copy-filled");
|
|
1233
|
+
}
|
|
1234
|
+
.grauity-icon-copy:before {
|
|
1235
|
+
content: map-get($grauity-icons-map, "copy");
|
|
1236
|
+
}
|
|
1229
1237
|
.grauity-icon-database-filled:before {
|
|
1230
1238
|
content: map-get($grauity-icons-map, "database-filled");
|
|
1231
1239
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { NamedExoticComponent, ReactNode, RefAttributes, Component, HTMLAttributes, DetailedHTMLProps } from "react";
|
|
1
|
+
import React, { NamedExoticComponent, ReactNode, RefAttributes, Component, HTMLAttributes, DetailedHTMLProps, HTMLInputTypeAttribute } from "react";
|
|
2
2
|
import { Substitute, IStyledComponentBase } from "styled-components/dist/types";
|
|
3
3
|
import { HTMLMotionProps, ForwardRefComponent } from "framer-motion";
|
|
4
4
|
import { FastOmit } from "styled-components";
|
|
@@ -280,6 +280,8 @@ export const ICON_TAGS: {
|
|
|
280
280
|
close: string[];
|
|
281
281
|
"compass-filled": string[];
|
|
282
282
|
compass: string[];
|
|
283
|
+
"copy-filled": string[];
|
|
284
|
+
copy: string[];
|
|
283
285
|
"database-filled": string[];
|
|
284
286
|
database: string[];
|
|
285
287
|
"diamond-filled": string[];
|
|
@@ -484,7 +486,7 @@ export const TAG_ICONS: {
|
|
|
484
486
|
Time: string[];
|
|
485
487
|
User: string[];
|
|
486
488
|
};
|
|
487
|
-
type grauityIconName = 'exclamation-circle-filled' | 'exclamation-circle' | 'exclamation-triangle-filled' | 'exclamation-triangle' | 'info-circle-filled' | 'info-circle' | 'question-circle-filled' | 'question-circle' | 'code-alt-filled' | 'code-alt' | 'code-filled' | 'code' | 'project-filled' | 'project' | 'terminal-filled' | 'terminal' | 'nst-filled' | 'nst' | 'desktop-filled' | 'desktop' | 'gamepad-filled' | 'gamepad' | 'lamp-filled' | 'lamp' | 'laptop-filled' | 'laptop' | 'mobile-filled' | 'mobile' | 'archive-filled' | 'archive' | 'bookmark-filled' | 'bookmark' | 'file-alt-filled' | 'file-alt' | 'file-filled' | 'file-lightning-filled' | 'file-lightning' | 'file' | 'folder-filled' | 'folder-open-filled' | 'folder-open' | 'folder' | 'label-filled' | 'label' | 'note-filled' | 'note' | 'pen-filled' | 'pen' | 'pin-filled' | 'pin' | 'currency-rupee-filled' | 'currency-rupee' | 'headphone-filled' | 'headphone-mic-filled' | 'headphone-mic' | 'headphone' | 'mic-filled' | 'mic' | 'micmute-filled' | 'micmute' | 'pause-circle-filled' | 'pause-circle' | 'pause-filled' | 'pause' | 'play-circle-filled' | 'play-circle' | 'play-filled' | 'play-rectangle-filled' | 'play-rectangle' | 'play' | 'video-filled' | 'video-off-filled' | 'video-off' | 'video' | 'volume-maximum-filled' | 'volume-maximum' | 'volume-minimum-filled' | 'volume-minimum' | 'volume-mute-filled' | 'volume-mute' | 'waveform-filled' | 'waveform' | 'comment-filled' | 'comment' | 'connector-filled' | 'connector' | 'doubt-alt2-filled' | 'doubt-alt2' | 'doubt-filled' | 'doubt-message-filled' | 'doubt-message' | 'doubt' | 'hearing-filled' | 'hearing' | 'heart-filled' | 'heart' | 'hearthands-filled' | 'hearthands' | 'lock-filled' | 'lock-open-filled' | 'lock-open' | 'lock' | 'magic-orb-filled' | 'magic-orb' | 'message-filled' | 'message-info-filled' | 'message-info' | 'message' | 'milestone-filled' | 'milestone' | 'scholar-hat-filled' | 'scholar-hat' | 'smiley-bad-filled' | 'smiley-bad' | 'smiley-filled' | 'smiley-happy-filled' | 'smiley-happy' | 'smiley-neutral-filled' | 'smiley-neutral' | 'smiley-sad-filled' | 'smiley-sad' | 'smiley-very-bad-filled' | 'smiley-very-bad' | 'smiley-very-happy-filled' | 'smiley-very-happy' | 'smiley' | 'spark-filled' | 'spark' | 'sparkle-filled' | 'sparkle' | 'target-filled' | 'target' | 'check-badge-filled' | 'check-badge' | 'crown-filled' | 'crown' | 'flag-filled' | 'flag' | 'gift-filled' | 'gift' | 'leaderboard-filled' | 'leaderboard' | 'medal-filled' | 'medal' | 'star-filled' | 'star-half-filled' | 'star-half' | 'star' | 'trophy-filled' | 'trophy' | 'codechef' | 'codeforces' | 'facebook' | 'github' | 'google' | 'hackerearth' | 'hackerrank' | 'instagram' | 'leetcode' | 'linkedin' | 'twitter' | 'whatsapp' | 'x' | 'youtube' | 'arrow-double-filled' | 'arrow-double' | 'arrow-down-filled' | 'arrow-down-left-filled' | 'arrow-down-left' | 'arrow-down-right-filled' | 'arrow-down-right' | 'arrow-down' | 'arrow-left-filled' | 'arrow-left' | 'arrow-right-filled' | 'arrow-right' | 'arrow-up-filled' | 'arrow-up-left-filled' | 'arrow-up-left' | 'arrow-up-right-filled' | 'arrow-up-right' | 'arrow-up' | 'ban-filled' | 'ban' | 'bin-filled' | 'bin' | 'book-alt-filled' | 'book-alt' | 'book-alt2-filled' | 'book-alt2' | 'book-alt3-filled' | 'book-alt3' | 'book-filled' | 'book' | 'briefcase-alt2-filled' | 'briefcase-alt2' | 'briefcase-filled' | 'briefcase' | 'broadcast-filled' | 'broadcast' | 'bug-filled' | 'bug' | 'bulb-filled' | 'bulb' | 'call-end-filled' | 'call-end' | 'call-start-filled' | 'call-start' | 'camera-filled' | 'camera' | 'caret-double-filled' | 'caret-double' | 'caret-down-filled' | 'caret-down' | 'caret-left-filled' | 'caret-left' | 'caret-right-filled' | 'caret-right' | 'caret-up-filled' | 'caret-up' | 'check-circle-filled' | 'check-circle' | 'check-filled' | 'check-square-filled' | 'check-square' | 'check' | 'chevron-down-double-filled' | 'chevron-down-double' | 'chevron-down-filled' | 'chevron-down' | 'chevron-left-double-filled' | 'chevron-left-double' | 'chevron-left-filled' | 'chevron-left' | 'chevron-right-double-filled' | 'chevron-right-double' | 'chevron-right-filled' | 'chevron-right' | 'chevron-up-double-filled' | 'chevron-up-double' | 'chevron-up-filled' | 'chevron-up' | 'circle-filled' | 'circle' | 'clock-alarm-filled' | 'clock-alarm' | 'close-circle-filled' | 'close-circle' | 'close-filled' | 'close-square-filled' | 'close-square' | 'close' | 'compass-filled' | 'compass' | 'database-filled' | 'database' | 'diamond-filled' | 'diamond' | 'double-check-filled' | 'double-check' | 'download-filled' | 'download' | 'eda-filled' | 'eda' | 'email-alt-filled' | 'email-alt' | 'email-filled' | 'email' | 'filter-filled' | 'filter' | 'floppy-filled' | 'floppy' | 'forward-filled' | 'forward' | 'gear-filled' | 'gear' | 'git-commit-filled' | 'git-commit' | 'globe-filled' | 'globe' | 'grip-hortizontal-filled' | 'grip-hortizontal' | 'grip-vertical-filled' | 'grip-vertical' | 'growth-down-filled' | 'growth-down' | 'growth-up-filled' | 'growth-up' | 'help-filled' | 'help' | 'hold-filled' | 'hold' | 'home-filled' | 'home' | 'hourglass-filled' | 'hourglass' | 'kebab-horizontal-filled' | 'kebab-horizontal' | 'kebab-vertical-filled' | 'kebab-vertical' | 'link-filled' | 'link' | 'list-checked-filled' | 'list-checked' | 'list-filled' | 'list' | 'load-filled' | 'load' | 'loudspeaker-filled' | 'loudspeaker' | 'machine-learning-filled' | 'machine-learning' | 'map-pin-alt1-filled' | 'map-pin-alt1' | 'map-pin-alt2-filled' | 'map-pin-alt2' | 'map-pin-filled' | 'map-pin' | 'maximize-filled' | 'maximize' | 'menu-alt2-filled' | 'menu-alt2' | 'menu-filled' | 'menu-grid-filled' | 'menu-grid' | 'menu' | 'microchip-filled' | 'microchip' | 'minimize-filled' | 'minimize' | 'minus-circle-filled' | 'minus-circle' | 'minus-square-filled' | 'minus-square' | 'moon-filled' | 'moon' | 'new-tab-filled' | 'new-tab' | 'paper-clip-filled' | 'paper-clip' | 'plus-circle-filled' | 'plus-circle' | 'plus-filled' | 'plus-square-filled' | 'plus-square' | 'plus' | 'power-bi-filled' | 'power-bi' | 'printer-filled' | 'printer' | 'progress-half-filled' | 'progress-half' | 'progress-quarter-filled' | 'progress-quarter' | 'progress-zero-filled' | 'progress-zero' | 'python-filled' | 'python' | 'quiz-filled' | 'quiz' | 'refresh-filled' | 'refresh' | 'remove-filled' | 'remove' | 'reply-filled' | 'reply' | 'retail-filled' | 'retail' | 'screenshare-start-filled' | 'screenshare-start' | 'screenshare-stop-filled' | 'screenshare-stop' | 'search-filled' | 'search' | 'share-filled' | 'share' | 'shield-alert-filled' | 'shield-alert' | 'shield-check-filled' | 'shield-check' | 'shield-filled' | 'shield-lock-filled' | 'shield-lock' | 'shield-x-filled' | 'shield-x' | 'shield' | 'shop-filled' | 'shop' | 'sidebar-left-filled' | 'sidebar-left' | 'sidebar-right-filled' | 'sidebar-right' | 'signin-filled' | 'signin' | 'signout-filled' | 'signout' | 'slider-filled' | 'slider' | 'square-filled' | 'square' | 'sticky-note-filled' | 'sticky-note' | 'sun-filled' | 'sun' | 'thumbs-down-filled' | 'thumbs-down' | 'thumbs-up-filled' | 'thumbs-up' | 'thunder-filled' | 'thunder' | 'truck-filled' | 'truck' | 'upload-filled' | 'upload' | 'wrench-filled' | 'wrench' | 'bell-filled' | 'bell' | 'calender-check-filled' | 'calender-check' | 'calender-filled' | 'calender-plus-filled' | 'calender-plus' | 'calender' | 'clock-filled' | 'clock' | 'rewatch-filled' | 'rewatch' | 'stopwatch-filled' | 'stopwatch' | 'bot-filled' | 'bot' | 'person-check-filled' | 'person-check' | 'person-filled' | 'person-plus-filled' | 'person-plus' | 'person' | 'user-speak-filled' | 'user-speak' | 'users-filled' | 'users';
|
|
489
|
+
type grauityIconName = 'exclamation-circle-filled' | 'exclamation-circle' | 'exclamation-triangle-filled' | 'exclamation-triangle' | 'info-circle-filled' | 'info-circle' | 'question-circle-filled' | 'question-circle' | 'code-alt-filled' | 'code-alt' | 'code-filled' | 'code' | 'project-filled' | 'project' | 'terminal-filled' | 'terminal' | 'nst-filled' | 'nst' | 'desktop-filled' | 'desktop' | 'gamepad-filled' | 'gamepad' | 'lamp-filled' | 'lamp' | 'laptop-filled' | 'laptop' | 'mobile-filled' | 'mobile' | 'archive-filled' | 'archive' | 'bookmark-filled' | 'bookmark' | 'file-alt-filled' | 'file-alt' | 'file-filled' | 'file-lightning-filled' | 'file-lightning' | 'file' | 'folder-filled' | 'folder-open-filled' | 'folder-open' | 'folder' | 'label-filled' | 'label' | 'note-filled' | 'note' | 'pen-filled' | 'pen' | 'pin-filled' | 'pin' | 'currency-rupee-filled' | 'currency-rupee' | 'headphone-filled' | 'headphone-mic-filled' | 'headphone-mic' | 'headphone' | 'mic-filled' | 'mic' | 'micmute-filled' | 'micmute' | 'pause-circle-filled' | 'pause-circle' | 'pause-filled' | 'pause' | 'play-circle-filled' | 'play-circle' | 'play-filled' | 'play-rectangle-filled' | 'play-rectangle' | 'play' | 'video-filled' | 'video-off-filled' | 'video-off' | 'video' | 'volume-maximum-filled' | 'volume-maximum' | 'volume-minimum-filled' | 'volume-minimum' | 'volume-mute-filled' | 'volume-mute' | 'waveform-filled' | 'waveform' | 'comment-filled' | 'comment' | 'connector-filled' | 'connector' | 'doubt-alt2-filled' | 'doubt-alt2' | 'doubt-filled' | 'doubt-message-filled' | 'doubt-message' | 'doubt' | 'hearing-filled' | 'hearing' | 'heart-filled' | 'heart' | 'hearthands-filled' | 'hearthands' | 'lock-filled' | 'lock-open-filled' | 'lock-open' | 'lock' | 'magic-orb-filled' | 'magic-orb' | 'message-filled' | 'message-info-filled' | 'message-info' | 'message' | 'milestone-filled' | 'milestone' | 'scholar-hat-filled' | 'scholar-hat' | 'smiley-bad-filled' | 'smiley-bad' | 'smiley-filled' | 'smiley-happy-filled' | 'smiley-happy' | 'smiley-neutral-filled' | 'smiley-neutral' | 'smiley-sad-filled' | 'smiley-sad' | 'smiley-very-bad-filled' | 'smiley-very-bad' | 'smiley-very-happy-filled' | 'smiley-very-happy' | 'smiley' | 'spark-filled' | 'spark' | 'sparkle-filled' | 'sparkle' | 'target-filled' | 'target' | 'check-badge-filled' | 'check-badge' | 'crown-filled' | 'crown' | 'flag-filled' | 'flag' | 'gift-filled' | 'gift' | 'leaderboard-filled' | 'leaderboard' | 'medal-filled' | 'medal' | 'star-filled' | 'star-half-filled' | 'star-half' | 'star' | 'trophy-filled' | 'trophy' | 'codechef' | 'codeforces' | 'facebook' | 'github' | 'google' | 'hackerearth' | 'hackerrank' | 'instagram' | 'leetcode' | 'linkedin' | 'twitter' | 'whatsapp' | 'x' | 'youtube' | 'arrow-double-filled' | 'arrow-double' | 'arrow-down-filled' | 'arrow-down-left-filled' | 'arrow-down-left' | 'arrow-down-right-filled' | 'arrow-down-right' | 'arrow-down' | 'arrow-left-filled' | 'arrow-left' | 'arrow-right-filled' | 'arrow-right' | 'arrow-up-filled' | 'arrow-up-left-filled' | 'arrow-up-left' | 'arrow-up-right-filled' | 'arrow-up-right' | 'arrow-up' | 'ban-filled' | 'ban' | 'bin-filled' | 'bin' | 'book-alt-filled' | 'book-alt' | 'book-alt2-filled' | 'book-alt2' | 'book-alt3-filled' | 'book-alt3' | 'book-filled' | 'book' | 'briefcase-alt2-filled' | 'briefcase-alt2' | 'briefcase-filled' | 'briefcase' | 'broadcast-filled' | 'broadcast' | 'bug-filled' | 'bug' | 'bulb-filled' | 'bulb' | 'call-end-filled' | 'call-end' | 'call-start-filled' | 'call-start' | 'camera-filled' | 'camera' | 'caret-double-filled' | 'caret-double' | 'caret-down-filled' | 'caret-down' | 'caret-left-filled' | 'caret-left' | 'caret-right-filled' | 'caret-right' | 'caret-up-filled' | 'caret-up' | 'check-circle-filled' | 'check-circle' | 'check-filled' | 'check-square-filled' | 'check-square' | 'check' | 'chevron-down-double-filled' | 'chevron-down-double' | 'chevron-down-filled' | 'chevron-down' | 'chevron-left-double-filled' | 'chevron-left-double' | 'chevron-left-filled' | 'chevron-left' | 'chevron-right-double-filled' | 'chevron-right-double' | 'chevron-right-filled' | 'chevron-right' | 'chevron-up-double-filled' | 'chevron-up-double' | 'chevron-up-filled' | 'chevron-up' | 'circle-filled' | 'circle' | 'clock-alarm-filled' | 'clock-alarm' | 'close-circle-filled' | 'close-circle' | 'close-filled' | 'close-square-filled' | 'close-square' | 'close' | 'compass-filled' | 'compass' | 'copy-filled' | 'copy' | 'database-filled' | 'database' | 'diamond-filled' | 'diamond' | 'double-check-filled' | 'double-check' | 'download-filled' | 'download' | 'eda-filled' | 'eda' | 'email-alt-filled' | 'email-alt' | 'email-filled' | 'email' | 'filter-filled' | 'filter' | 'floppy-filled' | 'floppy' | 'forward-filled' | 'forward' | 'gear-filled' | 'gear' | 'git-commit-filled' | 'git-commit' | 'globe-filled' | 'globe' | 'grip-hortizontal-filled' | 'grip-hortizontal' | 'grip-vertical-filled' | 'grip-vertical' | 'growth-down-filled' | 'growth-down' | 'growth-up-filled' | 'growth-up' | 'help-filled' | 'help' | 'hold-filled' | 'hold' | 'home-filled' | 'home' | 'hourglass-filled' | 'hourglass' | 'kebab-horizontal-filled' | 'kebab-horizontal' | 'kebab-vertical-filled' | 'kebab-vertical' | 'link-filled' | 'link' | 'list-checked-filled' | 'list-checked' | 'list-filled' | 'list' | 'load-filled' | 'load' | 'loudspeaker-filled' | 'loudspeaker' | 'machine-learning-filled' | 'machine-learning' | 'map-pin-alt1-filled' | 'map-pin-alt1' | 'map-pin-alt2-filled' | 'map-pin-alt2' | 'map-pin-filled' | 'map-pin' | 'maximize-filled' | 'maximize' | 'menu-alt2-filled' | 'menu-alt2' | 'menu-filled' | 'menu-grid-filled' | 'menu-grid' | 'menu' | 'microchip-filled' | 'microchip' | 'minimize-filled' | 'minimize' | 'minus-circle-filled' | 'minus-circle' | 'minus-square-filled' | 'minus-square' | 'moon-filled' | 'moon' | 'new-tab-filled' | 'new-tab' | 'paper-clip-filled' | 'paper-clip' | 'plus-circle-filled' | 'plus-circle' | 'plus-filled' | 'plus-square-filled' | 'plus-square' | 'plus' | 'power-bi-filled' | 'power-bi' | 'printer-filled' | 'printer' | 'progress-half-filled' | 'progress-half' | 'progress-quarter-filled' | 'progress-quarter' | 'progress-zero-filled' | 'progress-zero' | 'python-filled' | 'python' | 'quiz-filled' | 'quiz' | 'refresh-filled' | 'refresh' | 'remove-filled' | 'remove' | 'reply-filled' | 'reply' | 'retail-filled' | 'retail' | 'screenshare-start-filled' | 'screenshare-start' | 'screenshare-stop-filled' | 'screenshare-stop' | 'search-filled' | 'search' | 'share-filled' | 'share' | 'shield-alert-filled' | 'shield-alert' | 'shield-check-filled' | 'shield-check' | 'shield-filled' | 'shield-lock-filled' | 'shield-lock' | 'shield-x-filled' | 'shield-x' | 'shield' | 'shop-filled' | 'shop' | 'sidebar-left-filled' | 'sidebar-left' | 'sidebar-right-filled' | 'sidebar-right' | 'signin-filled' | 'signin' | 'signout-filled' | 'signout' | 'slider-filled' | 'slider' | 'square-filled' | 'square' | 'sticky-note-filled' | 'sticky-note' | 'sun-filled' | 'sun' | 'thumbs-down-filled' | 'thumbs-down' | 'thumbs-up-filled' | 'thumbs-up' | 'thunder-filled' | 'thunder' | 'truck-filled' | 'truck' | 'upload-filled' | 'upload' | 'wrench-filled' | 'wrench' | 'bell-filled' | 'bell' | 'calender-check-filled' | 'calender-check' | 'calender-filled' | 'calender-plus-filled' | 'calender-plus' | 'calender' | 'clock-filled' | 'clock' | 'rewatch-filled' | 'rewatch' | 'stopwatch-filled' | 'stopwatch' | 'bot-filled' | 'bot' | 'person-check-filled' | 'person-check' | 'person-filled' | 'person-plus-filled' | 'person-plus' | 'person' | 'user-speak-filled' | 'user-speak' | 'users-filled' | 'users';
|
|
488
490
|
type grauityFlippedChoiceName = 'vertically' | 'horizontally';
|
|
489
491
|
type grauityRotatedChoiceName = 'clockwise' | 'counterclockwise';
|
|
490
492
|
type grauityIconSizeName = '4' | '8' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40';
|
|
@@ -5253,6 +5255,32 @@ export interface TextFieldProps {
|
|
|
5253
5255
|
* The placeholder text for the input field.
|
|
5254
5256
|
*/
|
|
5255
5257
|
placeholder?: string;
|
|
5258
|
+
/**
|
|
5259
|
+
* The type of the input field.
|
|
5260
|
+
* @default 'text'
|
|
5261
|
+
*/
|
|
5262
|
+
type?: HTMLInputTypeAttribute;
|
|
5263
|
+
/**
|
|
5264
|
+
* The input mode for the input field.
|
|
5265
|
+
* @default 'text'
|
|
5266
|
+
*/
|
|
5267
|
+
inputMode?: 'none' | 'text' | 'search' | 'email' | 'tel' | 'url' | 'numeric' | 'decimal' | undefined;
|
|
5268
|
+
/**
|
|
5269
|
+
* The pattern for the input field.
|
|
5270
|
+
*/
|
|
5271
|
+
pattern?: string;
|
|
5272
|
+
/**
|
|
5273
|
+
* The minimum value for the input field.
|
|
5274
|
+
*/
|
|
5275
|
+
min?: number;
|
|
5276
|
+
/**
|
|
5277
|
+
* The maximum value for the input field.
|
|
5278
|
+
*/
|
|
5279
|
+
max?: number;
|
|
5280
|
+
/**
|
|
5281
|
+
* The step value for the input field.
|
|
5282
|
+
*/
|
|
5283
|
+
step?: number;
|
|
5256
5284
|
/**
|
|
5257
5285
|
* The validation message to display when the input field is invalid.
|
|
5258
5286
|
*/
|