@astryxdesign/lab 0.7.2-canary.3f45fc2 → 0.7.2-canary.405bb94
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 +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -3
- package/dist/lab.css +0 -46
- package/package.json +4 -4
- package/src/index.ts +0 -8
- package/blocks/DrawerFullWidthMobile.doc.mjs +0 -21
- package/blocks/DrawerFullWidthMobile.tsx +0 -42
- package/blocks/DrawerHeaderShowcase.doc.mjs +0 -15
- package/blocks/DrawerHeaderShowcase.tsx +0 -73
- package/blocks/DrawerHeaderSubtitleEndContent.doc.mjs +0 -22
- package/blocks/DrawerHeaderSubtitleEndContent.tsx +0 -49
- package/blocks/DrawerHeaderWithCloseButton.doc.mjs +0 -21
- package/blocks/DrawerHeaderWithCloseButton.tsx +0 -42
- package/blocks/DrawerMobileReveal.doc.mjs +0 -21
- package/blocks/DrawerMobileReveal.tsx +0 -43
- package/blocks/DrawerScrim.doc.mjs +0 -22
- package/blocks/DrawerScrim.tsx +0 -68
- package/blocks/DrawerShowcase.doc.mjs +0 -22
- package/blocks/DrawerShowcase.tsx +0 -41
- package/blocks/DrawerStart.doc.mjs +0 -21
- package/blocks/DrawerStart.tsx +0 -41
- package/blocks/DrawerWidths.doc.mjs +0 -22
- package/blocks/DrawerWidths.tsx +0 -54
- package/dist/Drawer/Drawer.d.ts +0 -181
- package/dist/Drawer/Drawer.d.ts.map +0 -1
- package/dist/Drawer/Drawer.js +0 -388
- package/dist/Drawer/DrawerHeader.d.ts +0 -82
- package/dist/Drawer/DrawerHeader.d.ts.map +0 -1
- package/dist/Drawer/DrawerHeader.js +0 -131
- package/dist/Drawer/index.d.ts +0 -11
- package/dist/Drawer/index.d.ts.map +0 -1
- package/dist/Drawer/index.js +0 -11
- package/dist/Drawer/useDrawerDialogPresence.d.ts +0 -42
- package/dist/Drawer/useDrawerDialogPresence.d.ts.map +0 -1
- package/dist/Drawer/useDrawerDialogPresence.js +0 -235
- package/src/Drawer/Drawer.doc.mjs +0 -470
- package/src/Drawer/Drawer.spec.md +0 -343
- package/src/Drawer/Drawer.test.tsx +0 -1039
- package/src/Drawer/Drawer.tsx +0 -618
- package/src/Drawer/DrawerHeader.doc.mjs +0 -291
- package/src/Drawer/DrawerHeader.test.tsx +0 -89
- package/src/Drawer/DrawerHeader.tsx +0 -237
- package/src/Drawer/index.ts +0 -13
- package/src/Drawer/useDrawerDialogPresence.ts +0 -283
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ export { Comments, type CommentsProps, CommentThread, type CommentThreadProps, C
|
|
|
18
18
|
export { TransferList, TransferListSelector, transferListVars, type TransferListOption, type TransferListProps, type TransferListSelectorCommitBehavior, type TransferListSelectorProps, } from './TransferList';
|
|
19
19
|
export { ChatReasoning, type ChatReasoningProps, } from './ChatReasoning/ChatReasoning';
|
|
20
20
|
export * from './Chat';
|
|
21
|
-
export { Drawer, DrawerHeader, type DrawerProps, type DrawerHeaderProps, } from './Drawer';
|
|
22
21
|
export { Tour, type TourProps, TourStep, type TourStepProps, useTour, type UseTourReturn, type TourDismissSource, } from './Tour';
|
|
23
22
|
export { Stat, type StatProps, type StatDelta, type StatDeltaDirection, type StatDeltaSentiment, type StatSize, } from './Stat';
|
|
24
23
|
export * from './Schedule';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,QAAQ,EACR,aAAa,EACb,uBAAuB,EACvB,KAAK,WAAW,GACjB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAC,MAAM,WAAW,CAAC;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rB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,UAAU,CAAC;AAIlB,cAAc,oBAAoB,CAAC;AAGnC,cAAc,aAAa,CAAC;AAG5B,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -35,9 +35,6 @@ export { TransferList, TransferListSelector, transferListVars } from "./Transfer
|
|
|
35
35
|
export { ChatReasoning } from "./ChatReasoning/ChatReasoning.js";
|
|
36
36
|
export * from "./Chat/index.js";
|
|
37
37
|
|
|
38
|
-
// Drawer — experimental overlay panel
|
|
39
|
-
export { Drawer, DrawerHeader } from "./Drawer/index.js";
|
|
40
|
-
|
|
41
38
|
// Tour — guided product-tour / NUX walkthrough (facebook/astryx#4239)
|
|
42
39
|
export { Tour, TourStep, useTour } from "./Tour/index.js";
|
|
43
40
|
|
package/dist/lab.css
CHANGED
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
@layer astryx-base {
|
|
7
7
|
@property --x-1pds3uo { syntax: "*"; inherits: false;}
|
|
8
|
-
@property --x-1xmrurk { syntax: "*"; inherits: false;}
|
|
9
|
-
@property --x-fqzwsx { syntax: "*"; inherits: false;}
|
|
10
8
|
@property --x-gridAutoRows { syntax: "*"; inherits: false;}
|
|
11
9
|
@property --x-gridColumn { syntax: "*"; inherits: false;}
|
|
12
10
|
@property --x-gridTemplateColumns { syntax: "*"; inherits: false;}
|
|
@@ -111,7 +109,6 @@
|
|
|
111
109
|
.x98rzlu:not(#\#):not(#\#){flex:1}
|
|
112
110
|
.xxhr3t:not(#\#):not(#\#){gap:0}
|
|
113
111
|
.x1lsbc85:not(#\#):not(#\#){gap:var(--spacing-0-5)}
|
|
114
|
-
.xsn7fz1:not(#\#):not(#\#){gap:var(--spacing-0)}
|
|
115
112
|
.x1s4dlld:not(#\#):not(#\#){gap:var(--spacing-1-5)}
|
|
116
113
|
.xzye2dw:not(#\#):not(#\#){gap:var(--spacing-1)}
|
|
117
114
|
.x1txdalj:not(#\#):not(#\#){gap:var(--spacing-2)}
|
|
@@ -133,8 +130,6 @@
|
|
|
133
130
|
.x10no89f:not(#\#):not(#\#){inset-block:0}
|
|
134
131
|
.x17y0mx6:not(#\#):not(#\#){inset-inline:0}
|
|
135
132
|
.xe8uvvx:not(#\#):not(#\#){list-style:none}
|
|
136
|
-
.xhzvc8f:not(#\#):not(#\#){margin-block:calc(-1 * var(--spacing-2))}
|
|
137
|
-
.xqixskq:not(#\#):not(#\#){margin-block:calc(var(--size-element-md) / 2 - var(--spacing-2) - var(--text-heading-2-size) * var(--text-heading-2-leading) / 2)}
|
|
138
133
|
.x1yqqeh1:not(#\#):not(#\#){margin-block:var(--spacing-0-5)}
|
|
139
134
|
.x1g06x3t:not(#\#):not(#\#){margin-block:var(--spacing-2)}
|
|
140
135
|
.xvqg1ol:not(#\#):not(#\#){margin-inline:calc(-1 * var(--spacing-3))}
|
|
@@ -310,7 +305,6 @@
|
|
|
310
305
|
.xefcaua:not(#\#):not(#\#):not(#\#){box-shadow:0 0 0 2px var(--color-background-surface),0 0 0 4px var(--color-accent),0 0 0 9999px var(--color-overlay)}
|
|
311
306
|
.xr5mita:not(#\#):not(#\#):not(#\#){box-shadow:0 0 0 2px var(--color-background-surface),0 0 0 4px var(--color-accent)}
|
|
312
307
|
.x1gnnqk1:not(#\#):not(#\#):not(#\#){box-shadow:none}
|
|
313
|
-
.x1kcpxr7:not(#\#):not(#\#):not(#\#){box-shadow:var(--shadow-high)}
|
|
314
308
|
.x14hfi27:not(#\#):not(#\#):not(#\#){box-shadow:var(--shadow-med)}
|
|
315
309
|
.x9f619:not(#\#):not(#\#):not(#\#){box-sizing:border-box}
|
|
316
310
|
.x1ftfhsn:not(#\#):not(#\#):not(#\#){caret-color:var(--color-text-primary)}
|
|
@@ -412,7 +406,6 @@
|
|
|
412
406
|
.x18juvz8:not(#\#):not(#\#):not(#\#){font-size:var(--text-large-size)}
|
|
413
407
|
.x141an7d:not(#\#):not(#\#):not(#\#){font-size:var(--text-supporting-size)}
|
|
414
408
|
.x1k4tb9n:not(#\#):not(#\#):not(#\#){font-style:italic}
|
|
415
|
-
.x1j61x8r:not(#\#):not(#\#):not(#\#){font-style:normal}
|
|
416
409
|
.xss6m8b:not(#\#):not(#\#):not(#\#){font-variant-numeric:tabular-nums}
|
|
417
410
|
.x1lvx875:not(#\#):not(#\#):not(#\#){font-weight:var(--font-weight-bold)}
|
|
418
411
|
.x1e4wzip:not(#\#):not(#\#):not(#\#){font-weight:var(--font-weight-medium)}
|
|
@@ -444,13 +437,9 @@
|
|
|
444
437
|
.x1eiw8i6:not(#\#):not(#\#):not(#\#){grid-template-rows:56px auto auto}
|
|
445
438
|
.x1clt5hq:not(#\#):not(#\#):not(#\#){grid-template-rows:subgrid}
|
|
446
439
|
.x1xxtoay:not(#\#):not(#\#):not(#\#){grid-template-rows:var(--x-gridTemplateRows)}
|
|
447
|
-
.xxydokm:not(#\#):not(#\#):not(#\#){hyphens:manual}
|
|
448
|
-
.xtijo5x:not(#\#):not(#\#):not(#\#){inset-inline-end:0}
|
|
449
|
-
.x1woyocn:not(#\#):not(#\#):not(#\#){inset-inline-end:auto}
|
|
450
440
|
.x1itk590:not(#\#):not(#\#):not(#\#){inset-inline-end:calc(var(--spacing-0-5) + var(--border-width))}
|
|
451
441
|
.x1mcfs9z:not(#\#):not(#\#):not(#\#){inset-inline-end:var(--spacing-3)}
|
|
452
442
|
.x1o0tod:not(#\#):not(#\#):not(#\#){inset-inline-start:0}
|
|
453
|
-
.xhi6v0a:not(#\#):not(#\#):not(#\#){inset-inline-start:auto}
|
|
454
443
|
.xywfheq:not(#\#):not(#\#):not(#\#){inset-inline-start:calc(var(--spacing-3) + var(--border-width))}
|
|
455
444
|
.x1htmfwz:not(#\#):not(#\#):not(#\#){inset-inline-start:var(--spacing-0-5)}
|
|
456
445
|
.x1ybfrjj:not(#\#):not(#\#):not(#\#){inset-inline-start:var(--spacing-3)}
|
|
@@ -465,7 +454,6 @@
|
|
|
465
454
|
.x1lqcxt8:not(#\#):not(#\#):not(#\#){justify-self:start}
|
|
466
455
|
.xuy72oy:not(#\#):not(#\#):not(#\#){justify-self:stretch}
|
|
467
456
|
.x9pfba7:not(#\#):not(#\#):not(#\#){letter-spacing:.08em}
|
|
468
|
-
.x1i21sxh:not(#\#):not(#\#):not(#\#){letter-spacing:normal}
|
|
469
457
|
.xa7kkou:not(#\#):not(#\#):not(#\#){line-height:1.7}
|
|
470
458
|
.xo5v014:not(#\#):not(#\#):not(#\#){line-height:1}
|
|
471
459
|
.xklk4pu:not(#\#):not(#\#):not(#\#){line-height:30px}
|
|
@@ -475,7 +463,6 @@
|
|
|
475
463
|
.x1kq96og:not(#\#):not(#\#):not(#\#){line-height:var(--text-label-leading)}
|
|
476
464
|
.x1ltkj2j:not(#\#):not(#\#):not(#\#){line-height:var(--text-supporting-leading)}
|
|
477
465
|
.x3ct3a4:not(#\#):not(#\#):not(#\#){list-style-type:none}
|
|
478
|
-
.x3kzqx6:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(-1 * var(--spacing-2))}
|
|
479
466
|
.x1h1dc9q:not(#\#):not(#\#):not(#\#){margin-inline-end:calc(var(--spacing-0-5) + var(--border-width))}
|
|
480
467
|
.x1pezmd8:not(#\#):not(#\#):not(#\#){margin-inline-end:var(--spacing-2)}
|
|
481
468
|
.xvc5jky:not(#\#):not(#\#):not(#\#){margin-inline-start:auto}
|
|
@@ -537,26 +524,18 @@
|
|
|
537
524
|
.x9ezeq1:not(#\#):not(#\#):not(#\#){stroke:var(--color-warning)}
|
|
538
525
|
.xeq4nuv:not(#\#):not(#\#):not(#\#){tab-size:2}
|
|
539
526
|
.x140o2bo:not(#\#):not(#\#):not(#\#){table-layout:fixed}
|
|
540
|
-
.x7ssn7h:not(#\#):not(#\#):not(#\#){text-align-last:auto}
|
|
541
527
|
.x2b8uid:not(#\#):not(#\#):not(#\#){text-align:center}
|
|
542
528
|
.xp4054r:not(#\#):not(#\#):not(#\#){text-align:end}
|
|
543
529
|
.xdpxx8g:not(#\#):not(#\#):not(#\#){text-align:left}
|
|
544
530
|
.x1yc453h:not(#\#):not(#\#):not(#\#){text-align:start}
|
|
545
531
|
.xkrqix3:not(#\#):not(#\#):not(#\#){text-decoration-line:none}
|
|
546
|
-
.xzugeeo:not(#\#):not(#\#):not(#\#){text-indent:0}
|
|
547
532
|
.xlyipyv:not(#\#):not(#\#):not(#\#){text-overflow:ellipsis}
|
|
548
|
-
.x19pm5ym:not(#\#):not(#\#):not(#\#){text-shadow:none}
|
|
549
|
-
.x6mezaz:not(#\#):not(#\#):not(#\#){text-transform:none}
|
|
550
533
|
.xtvhhri:not(#\#):not(#\#):not(#\#){text-transform:uppercase}
|
|
551
534
|
.x5ve5x3:not(#\#):not(#\#):not(#\#){touch-action:none}
|
|
552
|
-
.xx69xxh:not(#\#):not(#\#):not(#\#){touch-action:pan-y}
|
|
553
535
|
.x1bd091l:not(#\#):not(#\#):not(#\#){transform-origin:left bottom}
|
|
554
536
|
.x9tu13d:not(#\#):not(#\#):not(#\#){transform:rotate(-90deg)}
|
|
555
537
|
.x19jd1h0:not(#\#):not(#\#):not(#\#){transform:rotate(180deg)}
|
|
556
538
|
.x1iffjtl:not(#\#):not(#\#):not(#\#){transform:rotate(90deg)}
|
|
557
|
-
.x5i6ehr:not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}
|
|
558
|
-
.xbryuvx:not(#\#):not(#\#):not(#\#){transform:translateX(0)}
|
|
559
|
-
.xumwmo6:not(#\#):not(#\#):not(#\#){transform:translateX(100%)}
|
|
560
539
|
.x1cb1t30:not(#\#):not(#\#):not(#\#){transform:translateY(-50%)}
|
|
561
540
|
.xsqj5wx:not(#\#):not(#\#):not(#\#){transform:var(--x-transform)}
|
|
562
541
|
.xkvfbh3:not(#\#):not(#\#):not(#\#){transition-duration:var(--duration-fast-min)}
|
|
@@ -583,7 +562,6 @@
|
|
|
583
562
|
.x1sdyfia:not(#\#):not(#\#):not(#\#){white-space:pre}
|
|
584
563
|
.x1so62im:not(#\#):not(#\#):not(#\#){will-change:transform}
|
|
585
564
|
.x1lldw8n:not(#\#):not(#\#):not(#\#){word-break:normal}
|
|
586
|
-
.xp3md9m:not(#\#):not(#\#):not(#\#){word-spacing:normal}
|
|
587
565
|
.x8knxv4:not(#\#):not(#\#):not(#\#){z-index:-1}
|
|
588
566
|
.x1ja2u2z:not(#\#):not(#\#):not(#\#){z-index:0}
|
|
589
567
|
.x1vjfegm:not(#\#):not(#\#):not(#\#){z-index:1}
|
|
@@ -604,8 +582,6 @@
|
|
|
604
582
|
.x1jhp3zv:focus-visible:not(#\#):not(#\#):not(#\#){outline-style:var(--focus-outline-style)}
|
|
605
583
|
.xmbzu5e.xmbzu5e:hover:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){text-decoration-line:underline}
|
|
606
584
|
.x173emx3:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){transform-origin:right bottom}
|
|
607
|
-
.x1df3fe5:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}
|
|
608
|
-
.xttggg:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}
|
|
609
585
|
.x135w3n3:focus-visible:not(#\#):not(#\#):not(#\#){z-index:1}
|
|
610
586
|
.x16iypot:focus-visible:not(#\#):not(#\#):not(#\#){z-index:2}
|
|
611
587
|
.xuqm82a:active:not(#\#):not(#\#):not(#\#){background-image:none}
|
|
@@ -629,7 +605,6 @@
|
|
|
629
605
|
@media (forced-colors: active){.x815t2r.x815t2r:not(#\#):not(#\#):not(#\#){outline-style:solid}}
|
|
630
606
|
@media (forced-colors: active){.x1lfg6js.x1lfg6js:not(#\#):not(#\#):not(#\#){outline-width:calc(var(--border-width) * 2)}}
|
|
631
607
|
@media (prefers-reduced-motion: reduce){.xsagj69.xsagj69:not(#\#):not(#\#):not(#\#){transition-duration:.01ms}}
|
|
632
|
-
@media (prefers-reduced-motion: reduce){.xzg1mie.xzg1mie:not(#\#):not(#\#):not(#\#){transition-duration:.01s}}
|
|
633
608
|
@media (prefers-reduced-motion: reduce){.x12w9bfk.x12w9bfk:not(#\#):not(#\#):not(#\#){transition-duration:0s}}
|
|
634
609
|
@media (hover: hover){.xyys8i.xyys8i.xyys8i:hover:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){background-color:#141417}}
|
|
635
610
|
@media (hover: hover){.x1fkayqs.x1fkayqs.x1fkayqs:hover:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){background-color:#1d1d21}}
|
|
@@ -662,7 +637,6 @@
|
|
|
662
637
|
.x1hmuevu:not(#\#):not(#\#):not(#\#):not(#\#){bottom:var(--spacing-3)}
|
|
663
638
|
.xqtp20y:not(#\#):not(#\#):not(#\#):not(#\#){height:0}
|
|
664
639
|
.x5yr21d:not(#\#):not(#\#):not(#\#):not(#\#){height:100%}
|
|
665
|
-
.xtdtrs8:not(#\#):not(#\#):not(#\#):not(#\#){height:100dvh}
|
|
666
640
|
.x170jfvy:not(#\#):not(#\#):not(#\#):not(#\#){height:10px}
|
|
667
641
|
.x1v9usgg:not(#\#):not(#\#):not(#\#):not(#\#){height:14px}
|
|
668
642
|
.xlup9mm:not(#\#):not(#\#):not(#\#):not(#\#){height:16px}
|
|
@@ -693,15 +667,12 @@
|
|
|
693
667
|
.x1qnf6uq:not(#\#):not(#\#):not(#\#):not(#\#){max-height:calc(100vh - 2 * var(--spacing-4) - 2 * var(--spacing-3));max-height:calc(100dvb - 2 * var(--spacing-4) - 2 * var(--spacing-3))}
|
|
694
668
|
.x12ajvvl:not(#\#):not(#\#):not(#\#):not(#\#){max-height:calc(100vh - 32px)}
|
|
695
669
|
.xedcshv:not(#\#):not(#\#):not(#\#):not(#\#){max-height:inherit}
|
|
696
|
-
.x7ab17h:not(#\#):not(#\#):not(#\#):not(#\#){max-height:none}
|
|
697
670
|
.x9rxgia:not(#\#):not(#\#):not(#\#):not(#\#){max-height:var(--transfer-list-panel-max-block-size)}
|
|
698
671
|
.x1jols5v:not(#\#):not(#\#):not(#\#):not(#\#){max-height:var(--x-maxHeight)}
|
|
699
672
|
.x193iq5w:not(#\#):not(#\#):not(#\#):not(#\#){max-width:100%}
|
|
700
|
-
.xlbgzzq:not(#\#):not(#\#):not(#\#):not(#\#){max-width:100dvw}
|
|
701
673
|
.x1va8c73:not(#\#):not(#\#):not(#\#):not(#\#){max-width:320px}
|
|
702
674
|
.xxc7z9f:not(#\#):not(#\#):not(#\#):not(#\#){max-width:360px}
|
|
703
675
|
.x1ewfaou:not(#\#):not(#\#):not(#\#):not(#\#){max-width:calc(100% - var(--spacing-6) - var(--spacing-1))}
|
|
704
|
-
.x1x1rfll:not(#\#):not(#\#):not(#\#):not(#\#){max-width:none}
|
|
705
676
|
.xf68679:not(#\#):not(#\#):not(#\#):not(#\#){max-width:var(--x-maxWidth)}
|
|
706
677
|
.x2lwn1j:not(#\#):not(#\#):not(#\#):not(#\#){min-height:0}
|
|
707
678
|
.xisnujt:not(#\#):not(#\#):not(#\#):not(#\#){min-height:20px}
|
|
@@ -725,9 +696,7 @@
|
|
|
725
696
|
.x16asifk:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--spacing-5)}
|
|
726
697
|
.xkj4a21:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--x-minWidth)}
|
|
727
698
|
.xw2csxc:not(#\#):not(#\#):not(#\#):not(#\#){overflow-x:auto}
|
|
728
|
-
.x6ikm8r:not(#\#):not(#\#):not(#\#):not(#\#){overflow-x:hidden}
|
|
729
699
|
.x1odjw0f:not(#\#):not(#\#):not(#\#):not(#\#){overflow-y:auto}
|
|
730
|
-
.xvmia7e:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(var(--container-padding-block-end,0px) + env(safe-area-inset-bottom,0px))}
|
|
731
700
|
.xy143xn:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--spacing-1)}
|
|
732
701
|
.x1wesfrj:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--spacing-2)}
|
|
733
702
|
.xvmdzux:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:var(--spacing-3)}
|
|
@@ -761,12 +730,10 @@
|
|
|
761
730
|
.x1lout4y:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--astryx-chat-typing-indicator-dots-column-width,auto)}
|
|
762
731
|
.x1oai4fc:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--icon-size)}
|
|
763
732
|
.xw7hby4:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--spacing-0-5)}
|
|
764
|
-
.x11ymkkh:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--x-1xmrurk)}
|
|
765
733
|
.x1uyokj7:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--x-inlineSize)}
|
|
766
734
|
.x5lhr3w:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--x-width)}
|
|
767
735
|
.x14l7nz5:first-child:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:0}
|
|
768
736
|
.x1t1lzn6:last-child:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:0}
|
|
769
|
-
@media (max-width: 640px){.xci7e5a.xci7e5a:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--x-fqzwsx)}}
|
|
770
737
|
@container (max-width: 40rem){.x165mbd2.x165mbd2:not(#\#):not(#\#):not(#\#):not(#\#){border-top-width:var(--border-width)}}
|
|
771
738
|
@container list-input (max-width: 640px){.xx3ixyd.xx3ixyd:not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:var(--spacing-1)}}
|
|
772
739
|
@container list-input (max-width: 640px){.xc47mtf.xc47mtf:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:0}}
|
|
@@ -774,39 +741,27 @@
|
|
|
774
741
|
@container (max-width: 40rem){.x2opm4d.x2opm4d:not(#\#):not(#\#):not(#\#):not(#\#){min-height:0}}
|
|
775
742
|
@container (max-width: 40rem){.x2kikmz.x2kikmz:not(#\#):not(#\#):not(#\#):not(#\#){overflow-y:visible}}
|
|
776
743
|
@starting-style{.x4itv7f.x4itv7f:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}}
|
|
777
|
-
@starting-style{.x6mt36l.x6mt36l:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}}
|
|
778
|
-
@starting-style{.x1yqmsfc.x1yqmsfc:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}}
|
|
779
|
-
@starting-style{.x1lymnkk.x1lymnkk:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}}
|
|
780
|
-
@starting-style{.x14gflnl.x14gflnl:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}}
|
|
781
744
|
.xmwhqxd:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{border-radius:var(--radius-full)}
|
|
782
745
|
.xq94oqs:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{border-radius:var(--radius-full)}
|
|
783
746
|
.xb7ltuz:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline:0}
|
|
784
747
|
.xm4btww:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline:0}
|
|
785
748
|
.x1iibmkh:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::view-transition-group(*){animation-duration:var(--duration-fast)}
|
|
786
749
|
.x1fnez61:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::view-transition-group(*){animation-timing-function:var(--ease-standard)}
|
|
787
|
-
.x1abwkk1:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{backdrop-filter:blur(2px)}
|
|
788
750
|
.x1tzqye7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-color:var(--color-accent)}
|
|
789
751
|
.xs88s87:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-color:var(--color-accent)}
|
|
790
752
|
.x19jfor0:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{background-color:var(--color-border-orange)}
|
|
791
753
|
.xvgeimn:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{background-color:var(--color-border-orange)}
|
|
792
|
-
.xnixb3f:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{background-color:var(--color-overlay)}
|
|
793
754
|
.x1cpjm7i:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{content:""}
|
|
794
755
|
.x1s928wv:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{content:""}
|
|
795
756
|
.xxxjk75:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{inset-inline-start:-1px}
|
|
796
757
|
.xh7j7mt:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{inset-inline-start:-6px}
|
|
797
|
-
.xph5o2a:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{opacity:0}
|
|
798
|
-
.xb3n6bw:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{opacity:1}
|
|
799
758
|
.x2q1x1w:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{pointer-events:none}
|
|
800
759
|
.xkk1bqk:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{pointer-events:none}
|
|
801
760
|
.x1hmns74:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{position:absolute}
|
|
802
761
|
.x1j6awrg:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{position:absolute}
|
|
803
|
-
.xft5bk6:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{transition-duration:var(--duration-medium)}
|
|
804
|
-
.x167zut7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{transition-property:opacity}
|
|
805
|
-
.x15h3t91:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{transition-timing-function:var(--ease-standard)}
|
|
806
762
|
.x1jg531d:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{z-index:2}
|
|
807
763
|
.xvi4grz:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{z-index:2}
|
|
808
764
|
@media (prefers-reduced-motion: reduce){.xt9y79.xt9y79:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::view-transition-group(*){animation-duration:0s}}
|
|
809
|
-
@media (prefers-reduced-motion: reduce){.x1viac0w.x1viac0w:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{transition-duration:.01s}}
|
|
810
765
|
.x1b5r9ul:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{border-top-color:var(--color-border-orange)}
|
|
811
766
|
.xnvurfn:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{border-top-style:solid}
|
|
812
767
|
.x1b8stmw:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{border-top-width:2px}
|
|
@@ -821,5 +776,4 @@
|
|
|
821
776
|
.xucr3ah:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{top:calc(-1 * var(--spacing-0-5))}
|
|
822
777
|
.xaknh5y:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::before{width:10px}
|
|
823
778
|
.xg4xgkf:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::after{width:10px}
|
|
824
|
-
@starting-style{.xxiuuzi.xxiuuzi:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#)::backdrop{opacity:0}}
|
|
825
779
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/lab",
|
|
3
|
-
"version": "0.7.2-canary.
|
|
3
|
+
"version": "0.7.2-canary.405bb94",
|
|
4
4
|
"description": "Experimental Astryx components — published to npm only under the @canary dist-tag for early testing; never released as a stable (latest) version.",
|
|
5
5
|
"author": "Meta Open Source",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@stylexjs/stylex": ">=0.10.0",
|
|
52
|
-
"@astryxdesign/core": "0.7.2-canary.
|
|
52
|
+
"@astryxdesign/core": "0.7.2-canary.405bb94",
|
|
53
53
|
"react": ">=19.0.0",
|
|
54
54
|
"react-dom": ">=19.0.0"
|
|
55
55
|
},
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"d3-shape": "^3.2.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@astryxdesign/a11y-spec": "0.7.2-canary.
|
|
63
|
-
"@astryxdesign/cli": "0.7.2-canary.
|
|
62
|
+
"@astryxdesign/a11y-spec": "0.7.2-canary.405bb94",
|
|
63
|
+
"@astryxdesign/cli": "0.7.2-canary.405bb94",
|
|
64
64
|
"@babel/cli": "^7.29.7",
|
|
65
65
|
"@babel/core": "^7.29.7",
|
|
66
66
|
"@babel/preset-react": "^7.29.7",
|
package/src/index.ts
CHANGED
|
@@ -88,14 +88,6 @@ export {
|
|
|
88
88
|
} from './ChatReasoning/ChatReasoning';
|
|
89
89
|
export * from './Chat';
|
|
90
90
|
|
|
91
|
-
// Drawer — experimental overlay panel
|
|
92
|
-
export {
|
|
93
|
-
Drawer,
|
|
94
|
-
DrawerHeader,
|
|
95
|
-
type DrawerProps,
|
|
96
|
-
type DrawerHeaderProps,
|
|
97
|
-
} from './Drawer';
|
|
98
|
-
|
|
99
91
|
// Tour — guided product-tour / NUX walkthrough (facebook/astryx#4239)
|
|
100
92
|
export {
|
|
101
93
|
Tour,
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
-
export default {
|
|
5
|
-
type: 'block',
|
|
6
|
-
name: 'Wide desktop panel, full-width on mobile',
|
|
7
|
-
displayName: 'Wide desktop panel, full-width on mobile',
|
|
8
|
-
description:
|
|
9
|
-
'Use a 560px desktop width and isFullWidthOnMobile to fill the viewport below 640px, without the default page reveal.',
|
|
10
|
-
exampleFor: 'Drawer',
|
|
11
|
-
isReady: true,
|
|
12
|
-
aspectRatio: 16 / 9,
|
|
13
|
-
componentsUsed: [
|
|
14
|
-
'Drawer',
|
|
15
|
-
'Button',
|
|
16
|
-
'Layout',
|
|
17
|
-
'LayoutContent',
|
|
18
|
-
'DrawerHeader',
|
|
19
|
-
'Text',
|
|
20
|
-
],
|
|
21
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @input A wide desktop budget and isFullWidthOnMobile
|
|
7
|
-
* @output A Drawer that fills the viewport on mobile
|
|
8
|
-
* @position Copyable Lab Drawer example
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import {useState} from 'react';
|
|
12
|
-
import {Drawer, DrawerHeader} from '@astryxdesign/lab';
|
|
13
|
-
import {Button} from '@astryxdesign/core/Button';
|
|
14
|
-
import {Layout, LayoutContent} from '@astryxdesign/core/Layout';
|
|
15
|
-
import {Text} from '@astryxdesign/core/Text';
|
|
16
|
-
|
|
17
|
-
export default function DrawerFullWidthMobile() {
|
|
18
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<>
|
|
22
|
-
<Button label="Open wide drawer" onClick={() => setIsOpen(true)} />
|
|
23
|
-
<Drawer
|
|
24
|
-
isOpen={isOpen}
|
|
25
|
-
onOpenChange={setIsOpen}
|
|
26
|
-
label="Wide panel"
|
|
27
|
-
width={560}
|
|
28
|
-
isFullWidthOnMobile>
|
|
29
|
-
<Layout
|
|
30
|
-
header={<DrawerHeader title="Wide panel" onOpenChange={setIsOpen} />}
|
|
31
|
-
content={
|
|
32
|
-
<LayoutContent>
|
|
33
|
-
<Text type="body">
|
|
34
|
-
A wide panel on desktop, the full viewport width on mobile.
|
|
35
|
-
</Text>
|
|
36
|
-
</LayoutContent>
|
|
37
|
-
}
|
|
38
|
-
/>
|
|
39
|
-
</Drawer>
|
|
40
|
-
</>
|
|
41
|
-
);
|
|
42
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
-
export default {
|
|
5
|
-
type: 'block',
|
|
6
|
-
name: 'DrawerHeader',
|
|
7
|
-
displayName: 'Drawer Header',
|
|
8
|
-
description:
|
|
9
|
-
'DrawerHeader provides a structured header for drawers with slots for title, subtitle, close button, and optional start or end content.',
|
|
10
|
-
exampleFor: 'DrawerHeader',
|
|
11
|
-
isReady: true,
|
|
12
|
-
isShowcase: true,
|
|
13
|
-
aspectRatio: 16 / 9,
|
|
14
|
-
componentsUsed: ['DrawerHeader', 'Layout', 'LayoutContent', 'Text'],
|
|
15
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @input Static header content: title, subtitle, a no-op close handler, and a divider
|
|
7
|
-
* @output The DrawerHeader row at the top of a square-cornered, drawer-width panel, visible without opening an overlay
|
|
8
|
-
* @position Lab DrawerHeader's docsite showcase. Drawer has no inline mode
|
|
9
|
-
* like Dialog's isInline, so a plain panel stands in for the drawer; in an
|
|
10
|
-
* app, compose DrawerHeader in a Layout header slot inside a Drawer.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import * as stylex from '@stylexjs/stylex';
|
|
14
|
-
import {DrawerHeader} from '@astryxdesign/lab';
|
|
15
|
-
import {
|
|
16
|
-
Layout,
|
|
17
|
-
LayoutContent,
|
|
18
|
-
overlayPaddingReset,
|
|
19
|
-
} from '@astryxdesign/core/Layout';
|
|
20
|
-
import {Text} from '@astryxdesign/core/Text';
|
|
21
|
-
import {
|
|
22
|
-
borderVars,
|
|
23
|
-
colorVars,
|
|
24
|
-
spacingVars,
|
|
25
|
-
} from '@astryxdesign/core/theme/tokens.stylex';
|
|
26
|
-
|
|
27
|
-
const styles = stylex.create({
|
|
28
|
-
// A card-like panel with square corners, matching the drawer's own corners.
|
|
29
|
-
panel: {
|
|
30
|
-
width: 360,
|
|
31
|
-
maxWidth: '100%',
|
|
32
|
-
boxSizing: 'border-box',
|
|
33
|
-
backgroundColor: colorVars['--color-background-card'],
|
|
34
|
-
borderWidth: borderVars['--border-width'],
|
|
35
|
-
borderStyle: 'solid',
|
|
36
|
-
borderColor: colorVars['--color-border'],
|
|
37
|
-
borderRadius: 0,
|
|
38
|
-
},
|
|
39
|
-
body: {
|
|
40
|
-
padding: spacingVars['--spacing-4'],
|
|
41
|
-
backgroundColor: colorVars['--color-background-muted'],
|
|
42
|
-
borderRadius: 0,
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
export default function DrawerHeaderShowcase() {
|
|
47
|
-
return (
|
|
48
|
-
// Like the Drawer root, the panel is a padding boundary, so the Layout
|
|
49
|
-
// regions inset by their own --spacing-4 default: the drawer's inset.
|
|
50
|
-
<div {...stylex.props(styles.panel, overlayPaddingReset.reset)}>
|
|
51
|
-
<Layout
|
|
52
|
-
height="auto"
|
|
53
|
-
header={
|
|
54
|
-
<DrawerHeader
|
|
55
|
-
title="Host details"
|
|
56
|
-
subtitle="web-prod-04"
|
|
57
|
-
onOpenChange={() => {}}
|
|
58
|
-
hasDivider
|
|
59
|
-
/>
|
|
60
|
-
}
|
|
61
|
-
content={
|
|
62
|
-
<LayoutContent>
|
|
63
|
-
<div {...stylex.props(styles.body)}>
|
|
64
|
-
<Text type="body" color="secondary">
|
|
65
|
-
Drawer body content goes here.
|
|
66
|
-
</Text>
|
|
67
|
-
</div>
|
|
68
|
-
</LayoutContent>
|
|
69
|
-
}
|
|
70
|
-
/>
|
|
71
|
-
</div>
|
|
72
|
-
);
|
|
73
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
-
export default {
|
|
5
|
-
type: 'block',
|
|
6
|
-
name: 'With subtitle and end content',
|
|
7
|
-
displayName: 'With subtitle and end content',
|
|
8
|
-
description:
|
|
9
|
-
'Add a subtitle under the title and put a status, such as a Badge, in endContent. The close button stays at the end of the row.',
|
|
10
|
-
exampleFor: 'DrawerHeader',
|
|
11
|
-
isReady: true,
|
|
12
|
-
aspectRatio: 16 / 9,
|
|
13
|
-
componentsUsed: [
|
|
14
|
-
'Drawer',
|
|
15
|
-
'DrawerHeader',
|
|
16
|
-
'Badge',
|
|
17
|
-
'Button',
|
|
18
|
-
'Layout',
|
|
19
|
-
'LayoutContent',
|
|
20
|
-
'Text',
|
|
21
|
-
],
|
|
22
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @input Controlled open state for a modal Drawer
|
|
7
|
-
* @output A DrawerHeader with a subtitle, a status badge in its end slot, and a close button
|
|
8
|
-
* @position Copyable Lab DrawerHeader example
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import {useState} from 'react';
|
|
12
|
-
import {Drawer, DrawerHeader} from '@astryxdesign/lab';
|
|
13
|
-
import {Badge} from '@astryxdesign/core/Badge';
|
|
14
|
-
import {Button} from '@astryxdesign/core/Button';
|
|
15
|
-
import {Layout, LayoutContent} from '@astryxdesign/core/Layout';
|
|
16
|
-
import {Text} from '@astryxdesign/core/Text';
|
|
17
|
-
|
|
18
|
-
export default function DrawerHeaderSubtitleEndContent() {
|
|
19
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<>
|
|
23
|
-
<Button label="Open host details" onClick={() => setIsOpen(true)} />
|
|
24
|
-
<Drawer
|
|
25
|
-
isOpen={isOpen}
|
|
26
|
-
onOpenChange={setIsOpen}
|
|
27
|
-
label="web-prod-04"
|
|
28
|
-
width={360}>
|
|
29
|
-
<Layout
|
|
30
|
-
header={
|
|
31
|
-
<DrawerHeader
|
|
32
|
-
title="web-prod-04"
|
|
33
|
-
subtitle="us-east-1"
|
|
34
|
-
endContent={<Badge label="Healthy" variant="success" />}
|
|
35
|
-
onOpenChange={setIsOpen}
|
|
36
|
-
/>
|
|
37
|
-
}
|
|
38
|
-
content={
|
|
39
|
-
<LayoutContent>
|
|
40
|
-
<Text type="body">
|
|
41
|
-
All 6 instances are passing readiness checks.
|
|
42
|
-
</Text>
|
|
43
|
-
</LayoutContent>
|
|
44
|
-
}
|
|
45
|
-
/>
|
|
46
|
-
</Drawer>
|
|
47
|
-
</>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
-
export default {
|
|
5
|
-
type: 'block',
|
|
6
|
-
name: 'With close button',
|
|
7
|
-
displayName: 'With close button',
|
|
8
|
-
description:
|
|
9
|
-
'Pass onOpenChange to render a close button that calls it with false. Drawer renders no close button of its own, so this is the usual visible way to close.',
|
|
10
|
-
exampleFor: 'DrawerHeader',
|
|
11
|
-
isReady: true,
|
|
12
|
-
aspectRatio: 16 / 9,
|
|
13
|
-
componentsUsed: [
|
|
14
|
-
'Drawer',
|
|
15
|
-
'DrawerHeader',
|
|
16
|
-
'Button',
|
|
17
|
-
'Layout',
|
|
18
|
-
'LayoutContent',
|
|
19
|
-
'Text',
|
|
20
|
-
],
|
|
21
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @input Controlled open state for a modal Drawer
|
|
7
|
-
* @output A Drawer whose DrawerHeader renders a close button because it receives onOpenChange
|
|
8
|
-
* @position Copyable Lab DrawerHeader example
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import {useState} from 'react';
|
|
12
|
-
import {Drawer, DrawerHeader} from '@astryxdesign/lab';
|
|
13
|
-
import {Button} from '@astryxdesign/core/Button';
|
|
14
|
-
import {Layout, LayoutContent} from '@astryxdesign/core/Layout';
|
|
15
|
-
import {Text} from '@astryxdesign/core/Text';
|
|
16
|
-
|
|
17
|
-
export default function DrawerHeaderWithCloseButton() {
|
|
18
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<>
|
|
22
|
-
<Button label="Open drawer" onClick={() => setIsOpen(true)} />
|
|
23
|
-
<Drawer
|
|
24
|
-
isOpen={isOpen}
|
|
25
|
-
onOpenChange={setIsOpen}
|
|
26
|
-
label="Details"
|
|
27
|
-
width={360}>
|
|
28
|
-
<Layout
|
|
29
|
-
header={<DrawerHeader title="Details" onOpenChange={setIsOpen} />}
|
|
30
|
-
content={
|
|
31
|
-
<LayoutContent>
|
|
32
|
-
<Text type="body">
|
|
33
|
-
Passing onOpenChange renders the close button, which calls it
|
|
34
|
-
with false.
|
|
35
|
-
</Text>
|
|
36
|
-
</LayoutContent>
|
|
37
|
-
}
|
|
38
|
-
/>
|
|
39
|
-
</Drawer>
|
|
40
|
-
</>
|
|
41
|
-
);
|
|
42
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
-
export default {
|
|
5
|
-
type: 'block',
|
|
6
|
-
name: 'Mobile: the 56px page reveal (default)',
|
|
7
|
-
displayName: 'Mobile: the 56px page reveal (default)',
|
|
8
|
-
description:
|
|
9
|
-
'Below 640px, the default drawer leaves at least 56px of the page visible while respecting its width budget. Open this example in a narrow viewport to see the reveal.',
|
|
10
|
-
exampleFor: 'Drawer',
|
|
11
|
-
isReady: true,
|
|
12
|
-
aspectRatio: 16 / 9,
|
|
13
|
-
componentsUsed: [
|
|
14
|
-
'Drawer',
|
|
15
|
-
'Button',
|
|
16
|
-
'Layout',
|
|
17
|
-
'LayoutContent',
|
|
18
|
-
'DrawerHeader',
|
|
19
|
-
'Text',
|
|
20
|
-
],
|
|
21
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @input A 360px width budget and the default mobile sizing
|
|
7
|
-
* @output A Drawer preserving the page reveal on narrow viewports
|
|
8
|
-
* @position Copyable Lab Drawer example
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import {useState} from 'react';
|
|
12
|
-
import {Drawer, DrawerHeader} from '@astryxdesign/lab';
|
|
13
|
-
import {Button} from '@astryxdesign/core/Button';
|
|
14
|
-
import {Layout, LayoutContent} from '@astryxdesign/core/Layout';
|
|
15
|
-
import {Text} from '@astryxdesign/core/Text';
|
|
16
|
-
|
|
17
|
-
export default function DrawerMobileReveal() {
|
|
18
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<>
|
|
22
|
-
<Button label="Open mobile drawer" onClick={() => setIsOpen(true)} />
|
|
23
|
-
<Drawer
|
|
24
|
-
isOpen={isOpen}
|
|
25
|
-
onOpenChange={setIsOpen}
|
|
26
|
-
label="Mobile reveal"
|
|
27
|
-
width={360}>
|
|
28
|
-
<Layout
|
|
29
|
-
header={
|
|
30
|
-
<DrawerHeader title="Mobile reveal" onOpenChange={setIsOpen} />
|
|
31
|
-
}
|
|
32
|
-
content={
|
|
33
|
-
<LayoutContent>
|
|
34
|
-
<Text type="body">
|
|
35
|
-
The page remains visible beside the drawer on mobile.
|
|
36
|
-
</Text>
|
|
37
|
-
</LayoutContent>
|
|
38
|
-
}
|
|
39
|
-
/>
|
|
40
|
-
</Drawer>
|
|
41
|
-
</>
|
|
42
|
-
);
|
|
43
|
-
}
|