@snacky/ui 0.2.4 → 0.3.3
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/NOTICE +41 -0
- package/README.md +57 -10
- package/dist/index.cjs +257 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -4
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +75 -50
- package/dist/index.d.ts +75 -50
- package/dist/index.js +304 -211
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -367,12 +367,30 @@ declare function Avatar({ src, alt, size, className }: AvatarProps): react.JSX.E
|
|
|
367
367
|
type IllustrationVariant = 'empty' | 'createAccount' | 'welcome' | 'success' | 'discountReferral';
|
|
368
368
|
interface IllustrationProps {
|
|
369
369
|
variant: IllustrationVariant;
|
|
370
|
-
/**
|
|
370
|
+
/** Your own export of this illustration - this package ships no artwork. */
|
|
371
371
|
src: string;
|
|
372
372
|
alt: string;
|
|
373
373
|
className?: string;
|
|
374
374
|
}
|
|
375
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* Snacky Illustration - decorative spot illustration for empty states,
|
|
377
|
+
* onboarding and confirmations.
|
|
378
|
+
*
|
|
379
|
+
* ```tsx
|
|
380
|
+
* <Illustration variant="empty" src="/img/empty.svg" alt="No products found" />
|
|
381
|
+
* ```
|
|
382
|
+
*
|
|
383
|
+
* This ships no artwork, deliberately, and that is the normal split - Material,
|
|
384
|
+
* Radix and Chakra ship none either. What belongs in a design system is the
|
|
385
|
+
* documented canvas size per variant, which is what this owns; the Snacky
|
|
386
|
+
* artwork itself is modified stock and is not ours to redistribute.
|
|
387
|
+
*
|
|
388
|
+
* Export your own at the variant's ratio (SVG preferred) and serve it wherever
|
|
389
|
+
* your app already serves static assets. Open Peeps (openpeeps.com) is CC0 and
|
|
390
|
+
* drops in cleanly; unDraw (undraw.co) is free without attribution but its
|
|
391
|
+
* licence forbids redistributing assets "in packs", so keep it inside your own
|
|
392
|
+
* app. See the package README for the fuller note.
|
|
393
|
+
*/
|
|
376
394
|
declare function Illustration({ variant, src, alt, className }: IllustrationProps): react.JSX.Element;
|
|
377
395
|
|
|
378
396
|
type ProductImageUsage = 'product-card' | 'product-details' | 'list' | 'review' | 'variant' | 'accordion-modal';
|
|
@@ -438,102 +456,109 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
438
456
|
color?: string;
|
|
439
457
|
}
|
|
440
458
|
|
|
441
|
-
declare const
|
|
442
|
-
declare const
|
|
459
|
+
declare const account$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
460
|
+
declare const address: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
461
|
+
declare const back: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
462
|
+
declare const balance$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
463
|
+
declare const bell$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
464
|
+
declare const calendar: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
465
|
+
declare const camera: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
443
466
|
declare const cart$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
444
467
|
declare const cartAdd: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
445
|
-
declare const
|
|
446
|
-
declare const
|
|
447
|
-
declare const eye: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
448
|
-
declare const eyeOff: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
468
|
+
declare const category$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
469
|
+
declare const chat: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
449
470
|
declare const chevronDown: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
450
|
-
declare const chevronUp: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
451
471
|
declare const chevronRight: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
452
|
-
declare const
|
|
472
|
+
declare const chevronUp: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
453
473
|
declare const close: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
454
|
-
declare const
|
|
455
|
-
declare const
|
|
456
|
-
declare const
|
|
457
|
-
declare const
|
|
458
|
-
declare const
|
|
459
|
-
declare const
|
|
460
|
-
declare const chat: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
461
|
-
declare const messageSquare: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
474
|
+
declare const closeInput: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
475
|
+
declare const creditCard: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
476
|
+
declare const document: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
477
|
+
declare const edit: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
478
|
+
declare const eye: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
479
|
+
declare const eyeOff: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
462
480
|
declare const heart$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
463
|
-
declare const
|
|
464
|
-
declare const
|
|
465
|
-
declare const
|
|
481
|
+
declare const help: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
482
|
+
declare const history$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
483
|
+
declare const home$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
484
|
+
declare const key: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
485
|
+
declare const lock: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
486
|
+
declare const logout: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
487
|
+
declare const map: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
488
|
+
declare const messageSquare: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
466
489
|
declare const minus: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
467
|
-
declare const trash: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
468
|
-
declare const edit: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
469
|
-
declare const share: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
470
|
-
declare const camera: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
471
490
|
declare const phone: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
472
|
-
declare const
|
|
473
|
-
declare const
|
|
474
|
-
declare const
|
|
475
|
-
declare const
|
|
491
|
+
declare const plus: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
492
|
+
declare const referral: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
493
|
+
declare const search: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
494
|
+
declare const send: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
495
|
+
declare const sent: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
496
|
+
declare const share: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
476
497
|
declare const smartphone: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
477
|
-
declare const
|
|
478
|
-
declare const
|
|
479
|
-
declare const
|
|
480
|
-
declare const truck: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
481
|
-
declare const cash: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
482
|
-
declare const clock: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
498
|
+
declare const trash: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
499
|
+
declare const truck$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
500
|
+
declare const unsent: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
483
501
|
|
|
484
|
-
declare const
|
|
502
|
+
declare const outline_address: typeof address;
|
|
485
503
|
declare const outline_back: typeof back;
|
|
486
|
-
declare const outline_bell: typeof bell;
|
|
487
504
|
declare const outline_calendar: typeof calendar;
|
|
488
505
|
declare const outline_camera: typeof camera;
|
|
489
506
|
declare const outline_cartAdd: typeof cartAdd;
|
|
490
|
-
declare const outline_cash: typeof cash;
|
|
491
507
|
declare const outline_chat: typeof chat;
|
|
492
|
-
declare const outline_check: typeof check;
|
|
493
508
|
declare const outline_chevronDown: typeof chevronDown;
|
|
494
509
|
declare const outline_chevronRight: typeof chevronRight;
|
|
495
510
|
declare const outline_chevronUp: typeof chevronUp;
|
|
496
|
-
declare const outline_clock: typeof clock;
|
|
497
511
|
declare const outline_close: typeof close;
|
|
498
|
-
declare const
|
|
512
|
+
declare const outline_closeInput: typeof closeInput;
|
|
499
513
|
declare const outline_creditCard: typeof creditCard;
|
|
500
514
|
declare const outline_document: typeof document;
|
|
501
515
|
declare const outline_edit: typeof edit;
|
|
502
516
|
declare const outline_eye: typeof eye;
|
|
503
517
|
declare const outline_eyeOff: typeof eyeOff;
|
|
504
518
|
declare const outline_help: typeof help;
|
|
505
|
-
declare const outline_history: typeof history;
|
|
506
519
|
declare const outline_key: typeof key;
|
|
507
|
-
declare const outline_location: typeof location;
|
|
508
520
|
declare const outline_lock: typeof lock;
|
|
509
521
|
declare const outline_logout: typeof logout;
|
|
522
|
+
declare const outline_map: typeof map;
|
|
510
523
|
declare const outline_messageSquare: typeof messageSquare;
|
|
511
524
|
declare const outline_minus: typeof minus;
|
|
512
525
|
declare const outline_phone: typeof phone;
|
|
513
|
-
declare const outline_pin: typeof pin;
|
|
514
526
|
declare const outline_plus: typeof plus;
|
|
515
|
-
declare const
|
|
527
|
+
declare const outline_referral: typeof referral;
|
|
516
528
|
declare const outline_search: typeof search;
|
|
517
529
|
declare const outline_send: typeof send;
|
|
530
|
+
declare const outline_sent: typeof sent;
|
|
518
531
|
declare const outline_share: typeof share;
|
|
519
532
|
declare const outline_smartphone: typeof smartphone;
|
|
520
533
|
declare const outline_trash: typeof trash;
|
|
521
|
-
declare const
|
|
534
|
+
declare const outline_unsent: typeof unsent;
|
|
522
535
|
declare namespace outline {
|
|
523
|
-
export {
|
|
536
|
+
export { account$1 as account, outline_address as address, outline_back as back, balance$1 as balance, bell$1 as bell, outline_calendar as calendar, outline_camera as camera, cart$1 as cart, outline_cartAdd as cartAdd, category$1 as category, outline_chat as chat, outline_chevronDown as chevronDown, outline_chevronRight as chevronRight, outline_chevronUp as chevronUp, outline_close as close, outline_closeInput as closeInput, outline_creditCard as creditCard, outline_document as document, outline_edit as edit, outline_eye as eye, outline_eyeOff as eyeOff, heart$1 as heart, outline_help as help, history$1 as history, home$1 as home, outline_key as key, outline_lock as lock, outline_logout as logout, outline_map as map, outline_messageSquare as messageSquare, outline_minus as minus, outline_phone as phone, outline_plus as plus, outline_referral as referral, outline_search as search, outline_send as send, outline_sent as sent, outline_share as share, outline_smartphone as smartphone, outline_trash as trash, truck$1 as truck, outline_unsent as unsent };
|
|
524
537
|
}
|
|
525
538
|
|
|
526
|
-
declare const
|
|
527
|
-
declare const
|
|
539
|
+
declare const account: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
540
|
+
declare const balance: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
541
|
+
declare const bell: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
528
542
|
declare const cart: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
543
|
+
declare const category: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
529
544
|
declare const heart: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
545
|
+
declare const history: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
546
|
+
declare const home: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
547
|
+
declare const points: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
548
|
+
declare const truck: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
|
|
530
549
|
|
|
550
|
+
declare const solid_account: typeof account;
|
|
551
|
+
declare const solid_balance: typeof balance;
|
|
552
|
+
declare const solid_bell: typeof bell;
|
|
531
553
|
declare const solid_cart: typeof cart;
|
|
532
554
|
declare const solid_category: typeof category;
|
|
533
555
|
declare const solid_heart: typeof heart;
|
|
556
|
+
declare const solid_history: typeof history;
|
|
534
557
|
declare const solid_home: typeof home;
|
|
558
|
+
declare const solid_points: typeof points;
|
|
559
|
+
declare const solid_truck: typeof truck;
|
|
535
560
|
declare namespace solid {
|
|
536
|
-
export { solid_cart as cart, solid_category as category, solid_heart as heart, solid_home as home };
|
|
561
|
+
export { solid_account as account, solid_balance as balance, solid_bell as bell, solid_cart as cart, solid_category as category, solid_heart as heart, solid_history as history, solid_home as home, solid_points as points, solid_truck as truck };
|
|
537
562
|
}
|
|
538
563
|
|
|
539
564
|
/** Matches the `<SnackyIcons.outline.home />` / `<SnackyIcons.solid.home />` namespace used throughout the design system's documented code samples. */
|