@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/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
- /** Host your own export of this illustration (this package ships no artwork). */
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
- /** Snacky Illustration - decorative spot illustration for empty states, onboarding, confirmations. */
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 home$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
442
- declare const category$1: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
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 history: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
446
- declare const account: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
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 back: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
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 closeCircle: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
455
- declare const calendar: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
456
- declare const search: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
457
- declare const location: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
458
- declare const pin: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
459
- declare const send: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
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 bell: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
464
- declare const check: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
465
- declare const plus: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
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 lock: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
473
- declare const document: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
474
- declare const creditCard: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
475
- declare const receipt: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
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 key: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
478
- declare const help: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
479
- declare const logout: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
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 outline_account: typeof account;
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 outline_closeCircle: typeof closeCircle;
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 outline_receipt: typeof receipt;
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 outline_truck: typeof truck;
534
+ declare const outline_unsent: typeof unsent;
522
535
  declare namespace outline {
523
- export { outline_account as account, outline_back as back, outline_bell as bell, outline_calendar as calendar, outline_camera as camera, cart$1 as cart, outline_cartAdd as cartAdd, outline_cash as cash, category$1 as category, outline_chat as chat, outline_check as check, outline_chevronDown as chevronDown, outline_chevronRight as chevronRight, outline_chevronUp as chevronUp, outline_clock as clock, outline_close as close, outline_closeCircle as closeCircle, 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, outline_history as history, home$1 as home, outline_key as key, outline_location as location, outline_lock as lock, outline_logout as logout, outline_messageSquare as messageSquare, outline_minus as minus, outline_phone as phone, outline_pin as pin, outline_plus as plus, outline_receipt as receipt, outline_search as search, outline_send as send, outline_share as share, outline_smartphone as smartphone, outline_trash as trash, outline_truck as truck };
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 home: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
527
- declare const category: ({ width, height, color, ...rest }: IconProps) => react.JSX.Element;
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. */