@orbitcommerce/constellation-docs 1.0.0 → 1.2.1
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/docs.css +14764 -2237
- package/dist/index.js +2 -2
- package/dist/pages/{Playground-CNbBbErC.js → Playground-Mk1yIWXb.js} +2 -2
- package/dist/pages/_address-data-L9BR499w.js +161 -0
- package/dist/pages/_builder-demo-C0eJUmPU.js +282 -0
- package/dist/pages/_card-art-0be5ncyV.js +18 -0
- package/dist/pages/_conversation-samples-Bq7cn-4d.js +70 -0
- package/dist/pages/{_figures-data-BDmScEny.js → _figures-data-DaDvB7Nm.js} +5 -5
- package/dist/pages/_kpi-examples-DeGCBB9T.js +208 -0
- package/dist/pages/{_overlays-specimens-Dpn6oiyH.js → _overlays-specimens-bawR331Z.js} +33 -23
- package/dist/pages/_preview-specimens-DKQC9HAo.js +153 -0
- package/dist/pages/accordion-Sg0TUqxB.js +1036 -0
- package/dist/pages/address-autocomplete-DP0PUOlK.js +360 -0
- package/dist/pages/address-block-BvxQWBTy.js +403 -0
- package/dist/pages/address-fields-CwSqro3W.js +277 -0
- package/dist/pages/ai-highlight-D3x2vD83.js +642 -0
- package/dist/pages/{alert-BD4e6QTh.js → alert-D3i7xZTU.js} +195 -50
- package/dist/pages/anchored-overlay-BV0OCu2Q.js +788 -0
- package/dist/pages/{app-shell-KbA-nRqZ.js → app-shell-D4hdlHps.js} +133 -54
- package/dist/pages/{area-chart-B91dLcGo.js → area-chart-BEWFwiB2.js} +183 -27
- package/dist/pages/{avatar-DPPHXJAu.js → avatar-BFEqQViw.js} +194 -12
- package/dist/pages/avatar-upload-BDCzJfyN.js +484 -0
- package/dist/pages/{badge-C9JR0thI.js → badge-0-PyMrih.js} +441 -135
- package/dist/pages/bar-chart-DkLogYlt.js +1060 -0
- package/dist/pages/bar-fold-B-3XeIDZ.js +360 -0
- package/dist/pages/board-card-D2tZY_mU.js +415 -0
- package/dist/pages/brand-mark-BqiLvFSR.js +417 -0
- package/dist/pages/{button-D3V912P4.js → button-DAyfssDY.js} +276 -79
- package/dist/pages/{calendar-DSDZ9nRH.js → calendar-Ds7KsgSI.js} +69 -17
- package/dist/pages/canvas-stage-1KiPspkX.js +472 -0
- package/dist/pages/card-CXZ3V1d4.js +1612 -0
- package/dist/pages/caret-suggestions-oHI6QvqW.js +526 -0
- package/dist/pages/chart-legend-B20AbakD.js +724 -0
- package/dist/pages/chat-composer-CwzUJYIa.js +437 -0
- package/dist/pages/checkbox-BG9Zkb6j.js +1581 -0
- package/dist/pages/checklist-card-DEyykVFS.js +783 -0
- package/dist/pages/chip-Ck-o3Ui6.js +839 -0
- package/dist/pages/chip-list-k1LxXuCi.js +414 -0
- package/dist/pages/clamp-text-n-iE8RDR.js +203 -0
- package/dist/pages/coachmark-Be2ghobT.js +366 -0
- package/dist/pages/code-block-Dv_Y5GYq.js +622 -0
- package/dist/pages/collab-field-CfqqK7d2.js +696 -0
- package/dist/pages/color-field-CZpfcA-A.js +1127 -0
- package/dist/pages/{colour-BwuO8xAv.js → colour-q2ntvI0w.js} +496 -20
- package/dist/pages/column-mapper-TsTG39cl.js +502 -0
- package/dist/pages/combobox-DvK2j5tI.js +1334 -0
- package/dist/pages/{command-palette-xAD7fOg6.js → command-palette-CJ7uBA04.js} +201 -58
- package/dist/pages/comment-box-CDSGYhr5.js +346 -0
- package/dist/pages/composer-D4B0NgpA.js +689 -0
- package/dist/pages/condition-builder-BZy2ZGXe.js +715 -0
- package/dist/pages/conflict-chooser-C--_9UIS.js +210 -0
- package/dist/pages/context-menu-F9DV30ia.js +487 -0
- package/dist/pages/copy-button-Cn7WiKRF.js +568 -0
- package/dist/pages/copy-field-D3Xt3Jq6.js +511 -0
- package/dist/pages/danger-zone-Db_UUeiP.js +564 -0
- package/dist/pages/date-input-GOW067EB.js +956 -0
- package/dist/pages/{date-picker-BYSa816m.js → date-picker-GdBciR99.js} +186 -38
- package/dist/pages/date-time-BLKCXtVZ.js +678 -0
- package/dist/pages/{delta-CtAo0eIM.js → delta-CNAGv8JY.js} +266 -61
- package/dist/pages/description-list-BPeXn1eW.js +1268 -0
- package/dist/pages/device-switcher-BCaN99c1.js +554 -0
- package/dist/pages/dialog-CRpkRC98.js +3164 -0
- package/dist/pages/{docs-BNOb7AqR.js → docs-lM2UBSir.js} +20 -15
- package/dist/pages/doodle-nzkqi2UI.js +201 -0
- package/dist/pages/drag-ghost-B6kpzC3O.js +426 -0
- package/dist/pages/drill-menu-cskH5mol.js +490 -0
- package/dist/pages/dropzone-DOY_Rhw0.js +1069 -0
- package/dist/pages/element-toolbar-DZIhXlCJ.js +498 -0
- package/dist/pages/emoji-picker-CqaWaffD.js +235 -0
- package/dist/pages/empty-state-4U2txFpI.js +1113 -0
- package/dist/pages/facet-filters-McbBeY9e.js +353 -0
- package/dist/pages/figure-D-HF5vCj.js +563 -0
- package/dist/pages/figure-strip-hg7txTc3.js +1381 -0
- package/dist/pages/{figure-tabs-CoPFzzKz.js → figure-tabs-QOeQMY6N.js} +153 -35
- package/dist/pages/file-chip-DMDjtlqQ.js +738 -0
- package/dist/pages/filter-pill-DzqNOsD4.js +1295 -0
- package/dist/pages/font-picker-Bqhu0QMh.js +416 -0
- package/dist/pages/form-grid-BfWCVlie.js +692 -0
- package/dist/pages/gallery-BBk2EOri.js +453 -0
- package/dist/pages/gif-picker-CnoDTCaL.js +270 -0
- package/dist/pages/gradient-editor-Bqxp7Fxj.js +378 -0
- package/dist/pages/grouped-checklist-gNZ0tBKU.js +477 -0
- package/dist/pages/heatmap-BohgIcNk.js +507 -0
- package/dist/pages/highlight-text-BfxzfmvS.js +287 -0
- package/dist/pages/{home-dashboard-CFQwDtC9.js → home-dashboard-CxPmvduE.js} +21 -18
- package/dist/pages/hosted-embed-Jef3aIMP.js +163 -0
- package/dist/pages/hosted-field-BLh-53AE.js +208 -0
- package/dist/pages/hosted-field-DEpI4lVS.js +514 -0
- package/dist/pages/{icon-button-C9eSVPPW.js → icon-button-Bu4Gj5sy.js} +370 -31
- package/dist/pages/icon-picker-DEyoMUTh.js +291 -0
- package/dist/pages/icon-tile-DcgxyXPF.js +592 -0
- package/dist/pages/{icons-sxkTs5Ob.js → icons-CJ9Aar3d.js} +315 -52
- package/dist/pages/image-cropper-NyougqLH.js +466 -0
- package/dist/pages/image-field-7knBv4mJ.js +567 -0
- package/dist/pages/import-result-CmTtGXW_.js +486 -0
- package/dist/pages/inline-confirm-CEcI5Lxo.js +327 -0
- package/dist/pages/inline-edit-Ba39SzhM.js +1125 -0
- package/dist/pages/input-CzLCzfyx.js +2372 -0
- package/dist/pages/{installation-DpsX8G_n.js → installation-DRUWNVHP.js} +112 -29
- package/dist/pages/job-indicator-DOXWbFdl.js +755 -0
- package/dist/pages/kanban-Dy9sPAI0.js +740 -0
- package/dist/pages/{kbd-cNfDoikz.js → kbd-UNj4zqxn.js} +15 -14
- package/dist/pages/layout-primitives-CPRaZeyt.js +483 -0
- package/dist/pages/line-chart-CntWxeMF.js +1117 -0
- package/dist/pages/link-CXqvAg9z.js +689 -0
- package/dist/pages/link-picker-BMFGCC67.js +478 -0
- package/dist/pages/link-row-x8yaUuWc.js +595 -0
- package/dist/pages/{live-globe-ClvLn9Lb.js → live-globe-95ROMhGQ.js} +191 -47
- package/dist/pages/loading-overlay-BeGuXM9G.js +456 -0
- package/dist/pages/loading-state-BNbCo51C.js +556 -0
- package/dist/pages/log-viewer-BQz8I_a2.js +503 -0
- package/dist/pages/{logo-BfGF1Pq9.js → logo-D3a3QGKJ.js} +13 -13
- package/dist/pages/lottie_light-CxEH8eiR.js +9116 -0
- package/dist/pages/markdown-Ied72vMT.js +237 -0
- package/dist/pages/markdown-field-BfnIEKZH.js +193 -0
- package/dist/pages/media-banner-DkStCia0.js +233 -0
- package/dist/pages/{menu-by2sgQ09.js → menu-NrLYKqKp.js} +623 -109
- package/dist/pages/message-thread-Bo4zbxqu.js +731 -0
- package/dist/pages/meta-line-D5p2TycR.js +371 -0
- package/dist/pages/model-viewer-BfokvHoc.js +60288 -0
- package/dist/pages/model-viewer-C8PFO8wk.js +577 -0
- package/dist/pages/month-calendar-T1vw9Rup.js +457 -0
- package/dist/pages/{motion-BvTGc2Dk.js → motion-CrXtiBvA.js} +20 -10
- package/dist/pages/number-input-CuyMZg18.js +968 -0
- package/dist/pages/orbit-loader-DeVBtkFE.js +219 -0
- package/dist/pages/{orbit-spinner-Dil1Z3Oy.js → orbit-spinner-Dxv5qAhr.js} +30 -14
- package/dist/pages/otp-input-CVRoX1mw.js +591 -0
- package/dist/pages/{overview-BPEbZQ6g.js → overview-BSfEqHY8.js} +4 -4
- package/dist/pages/package-dimensions-DFCyZj_T.js +192 -0
- package/dist/pages/{pagination-BBUnGvv5.js → pagination-C1EgVtW4.js} +74 -29
- package/dist/pages/palette-tile-X9ZXu2Z0.js +414 -0
- package/dist/pages/password-field-DHEQKyUC.js +912 -0
- package/dist/pages/person-cell-BmjbADBz.js +564 -0
- package/dist/pages/phone-input-B3G7Qpb2.js +747 -0
- package/dist/pages/plan-card-DRaA6RuB.js +621 -0
- package/dist/pages/plan-card-DtloWvMh.js +258 -0
- package/dist/pages/plan-comparison-BVIGTtbd.js +559 -0
- package/dist/pages/plan-grid-BCPvtP8J.js +251 -0
- package/dist/pages/point-list-BbPmZjsm.js +222 -0
- package/dist/pages/{popover-Db1gLDpb.js → popover-C3Oar9D5.js} +76 -14
- package/dist/pages/presence-avatars-CRZIk8n9.js +328 -0
- package/dist/pages/preview-frame-Bcwk0y_Q.js +1631 -0
- package/dist/pages/price-CRBLoa9h.js +604 -0
- package/dist/pages/{principles-CeAIOIdt.js → principles-pnDyfHpK.js} +9 -9
- package/dist/pages/print-page-BkLv6bW8.js +513 -0
- package/dist/pages/profile-hero-CC9dUzuN.js +498 -0
- package/dist/pages/progress-CP_awmo4.js +904 -0
- package/dist/pages/progress-ring-JuOAwk2T.js +576 -0
- package/dist/pages/{radio-group-CkdBWWfG.js → radio-group-CbiibLwn.js} +581 -18
- package/dist/pages/radius-control-B2kRA2Ch.js +441 -0
- package/dist/pages/rating-CweKN2SX.js +471 -0
- package/dist/pages/record-layout-DUP_X0RL.js +719 -0
- package/dist/pages/record-pager-y9D7JFgb.js +278 -0
- package/dist/pages/registry-CNR7zpf7.js +594 -0
- package/dist/pages/{release-Dvo684UJ.js → release-DYBCY7jm.js} +4 -1
- package/dist/pages/repeater-BRZYKRQa.js +1351 -0
- package/dist/pages/reply-feedback-BDnHprla.js +192 -0
- package/dist/pages/reveal-BygENBbL.js +460 -0
- package/dist/pages/rich-text-DOFQZEpT.js +156 -0
- package/dist/pages/rich-text-editor-BhIM20JI.js +1265 -0
- package/dist/pages/rolldown-runtime-CbKu08Hx.js +25 -0
- package/dist/pages/{rolling-number-qmvH84Mq.js → rolling-number-GR3Cyfpz.js} +12 -12
- package/dist/pages/row-list-Dl6CYhC-.js +1565 -0
- package/dist/pages/rule-list-DTCmIMpT.js +648 -0
- package/dist/pages/save-status-B5KkyMZP.js +378 -0
- package/dist/pages/schedule-YycI95O1.js +243 -0
- package/dist/pages/scroll-area-B2sGm23Q.js +423 -0
- package/dist/pages/{search-field-BN7MWGQ4.js → search-field-D1uG7R6A.js} +15 -15
- package/dist/pages/search-menu-DMuXyUUW.js +580 -0
- package/dist/pages/secret-field-Dj9x3LL8.js +337 -0
- package/dist/pages/section-rail-BtTCETS5.js +637 -0
- package/dist/pages/section-v2Pubup9.js +639 -0
- package/dist/pages/{segmented-control-CTbIpRBW.js → segmented-control-D-FB1K1T.js} +450 -37
- package/dist/pages/{select-DguELoRR.js → select-DZ43NpOm.js} +22 -17
- package/dist/pages/selection-chrome-Czcs6RN6.js +437 -0
- package/dist/pages/{separator-CPZub9pv.js → separator-CFwqRvfO.js} +99 -22
- package/dist/pages/serp-preview-BGwORjmo.js +346 -0
- package/dist/pages/setting-row-Bt-dZV8H.js +913 -0
- package/dist/pages/{shape-DKvA0YKr.js → shape-DzniHAVT.js} +10 -10
- package/dist/pages/share-list-D4wgBxKN.js +926 -0
- package/dist/pages/side-panel-CCtkrZjs.js +811 -0
- package/dist/pages/site-preview-Dj1hM2Yo.js +353 -0
- package/dist/pages/skeleton-C1F5HkAu.js +1325 -0
- package/dist/pages/skip-link-BxznhSkz.js +252 -0
- package/dist/pages/slider-CAoPURKD.js +774 -0
- package/dist/pages/sortable-card-Sr44uCpI.js +424 -0
- package/dist/pages/sortable-list-DUAleYE1.js +1298 -0
- package/dist/pages/sortable-tree-BLzK-hTE.js +737 -0
- package/dist/pages/spacing-box-CtuvzxQu.js +550 -0
- package/dist/pages/{sparkline-DMMYGbHn.js → sparkline-D3aavCly.js} +301 -22
- package/dist/pages/split-bar-DYgZnFID.js +414 -0
- package/dist/pages/split-button-Be08-VI-.js +335 -0
- package/dist/pages/split-pane-lSNZgTKt.js +523 -0
- package/dist/pages/status-badge-DOdNhmzn.js +1074 -0
- package/dist/pages/status-checklist-CWkjCZIC.js +1152 -0
- package/dist/pages/status-dot-D99gAGsV.js +567 -0
- package/dist/pages/stepper-CxKTbEA-.js +1093 -0
- package/dist/pages/success-mark-CqFTOBEu.js +142 -0
- package/dist/pages/swatch-H_kNvHuC.js +565 -0
- package/dist/pages/{switch-B-Qe4kcT.js → switch-C93K6j9h.js} +151 -51
- package/dist/pages/table-mq_pNXza.js +3232 -0
- package/dist/pages/{tabs-B4M-usCV.js → tabs-Cf4MZ8Fq.js} +257 -21
- package/dist/pages/tag-input-BjZWKKRJ.js +1307 -0
- package/dist/pages/task-card-Dv0sR1-w.js +295 -0
- package/dist/pages/{textarea-fTuUZRQb.js → textarea-CCM-SnGN.js} +271 -15
- package/dist/pages/thumbnail-DwFJL_k1.js +1147 -0
- package/dist/pages/time-input-CA9-uZAa.js +442 -0
- package/dist/pages/time-zone-select-CEtMXVYO.js +296 -0
- package/dist/pages/timeline-BsMUTlpR.js +1798 -0
- package/dist/pages/{toast-CKP03zjy.js → toast-zXLRiMRT.js} +240 -25
- package/dist/pages/tool-rail-B1AbTMCP.js +355 -0
- package/dist/pages/toolbar-B9l_fHKy.js +754 -0
- package/dist/pages/{tooltip-CBYil3kt.js → tooltip-LHtCUkF-.js} +162 -33
- package/dist/pages/translation-field-CTRXiF2N.js +251 -0
- package/dist/pages/tree-checklist-CJj3OcLg.js +451 -0
- package/dist/pages/tree-select-DU1qXHy_.js +492 -0
- package/dist/pages/tree-view-g_RjLtAb.js +739 -0
- package/dist/pages/{typography-PCbg8Bhg.js → typography-BSijtiRl.js} +153 -12
- package/dist/pages/unit-input-Dml4fjmK.js +659 -0
- package/dist/pages/upload-rules-yozEzSah.js +419 -0
- package/dist/pages/url-upload-input-SSnMgfpA.js +307 -0
- package/dist/pages/value-change-CnubDKyO.js +489 -0
- package/dist/pages/weekly-hours-i2EpsmTx.js +287 -0
- package/dist/pages/widget-preview-CUJMyZ_k.js +625 -0
- package/dist/pages/working-status-CENemSsw.js +389 -0
- package/manifest.json +10989 -1108
- package/package.json +3 -3
- package/dist/pages/card-DUggbis3.js +0 -659
- package/dist/pages/checkbox-DwimQaK3.js +0 -365
- package/dist/pages/dialog-BRAf4LMh.js +0 -1451
- package/dist/pages/empty-state-C-mLrXW2.js +0 -417
- package/dist/pages/input-KF9Gkawf.js +0 -1093
- package/dist/pages/registry-CroHzK9I.js +0 -244
- package/dist/pages/skeleton-DLuBhP46.js +0 -561
- package/dist/pages/table-AMoODng4.js +0 -607
|
@@ -0,0 +1,580 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { a as DocTable, d as Section$1, i as DocPage, l as Note, o as Example, s as Guidelines, u as PropsTable } from "./docs-lM2UBSir.js";
|
|
3
|
+
import { useRef, useState } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Badge, Button, Field, Input, SearchMenu, SegmentedControl } from "@orbitcommerce/constellation";
|
|
6
|
+
import { BracketsCurlyIcon, CaretDownIcon, GearSixIcon, MagnifyingGlassIcon, PlusIcon, TranslateIcon } from "@orbitcommerce/constellation/icons";
|
|
7
|
+
//#region src/pages/components/search-menu.tsx
|
|
8
|
+
var VARIABLES = [
|
|
9
|
+
{
|
|
10
|
+
value: "{{customer.first_name}}",
|
|
11
|
+
label: "First name",
|
|
12
|
+
token: "{{customer.first_name}}",
|
|
13
|
+
group: "Customer"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: "{{customer.last_name}}",
|
|
17
|
+
label: "Last name",
|
|
18
|
+
token: "{{customer.last_name}}",
|
|
19
|
+
group: "Customer"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: "{{customer.email}}",
|
|
23
|
+
label: "Email address",
|
|
24
|
+
token: "{{customer.email}}",
|
|
25
|
+
group: "Customer"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
value: "{{order.number}}",
|
|
29
|
+
label: "Order number",
|
|
30
|
+
token: "{{order.number}}",
|
|
31
|
+
group: "Order"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: "{{order.total}}",
|
|
35
|
+
label: "Order total",
|
|
36
|
+
token: "{{order.total}}",
|
|
37
|
+
group: "Order"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: "{{order.date}}",
|
|
41
|
+
label: "Order date",
|
|
42
|
+
token: "{{order.date}}",
|
|
43
|
+
group: "Order"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
value: "{{order.tracking_url}}",
|
|
47
|
+
label: "Tracking link",
|
|
48
|
+
token: "{{order.tracking_url}}",
|
|
49
|
+
group: "Order",
|
|
50
|
+
disabled: true,
|
|
51
|
+
description: "Only in shipping emails"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
value: "{{store.name}}",
|
|
55
|
+
label: "Shop name",
|
|
56
|
+
token: "{{store.name}}",
|
|
57
|
+
group: "Shop",
|
|
58
|
+
keywords: "store"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: "{{store.url}}",
|
|
62
|
+
label: "Shop address",
|
|
63
|
+
token: "{{store.url}}",
|
|
64
|
+
group: "Shop",
|
|
65
|
+
keywords: "store link website"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
value: "{{store.support_email}}",
|
|
69
|
+
label: "Support email",
|
|
70
|
+
token: "{{store.support_email}}",
|
|
71
|
+
group: "Shop",
|
|
72
|
+
keywords: "store contact"
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
var LANGUAGES = [
|
|
76
|
+
{
|
|
77
|
+
value: "en-GB",
|
|
78
|
+
label: "English (UK)",
|
|
79
|
+
aside: "en-GB",
|
|
80
|
+
keywords: "british"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
value: "cy",
|
|
84
|
+
label: "Cymraeg",
|
|
85
|
+
description: "Welsh",
|
|
86
|
+
aside: "cy",
|
|
87
|
+
keywords: "welsh"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
value: "ga",
|
|
91
|
+
label: "Gaeilge",
|
|
92
|
+
description: "Irish",
|
|
93
|
+
aside: "ga",
|
|
94
|
+
keywords: "irish"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
value: "fr",
|
|
98
|
+
label: "Français",
|
|
99
|
+
description: "French",
|
|
100
|
+
aside: "fr",
|
|
101
|
+
keywords: "french"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
value: "de",
|
|
105
|
+
label: "Deutsch",
|
|
106
|
+
description: "German",
|
|
107
|
+
aside: "de",
|
|
108
|
+
keywords: "german"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
value: "es",
|
|
112
|
+
label: "Español",
|
|
113
|
+
description: "Spanish",
|
|
114
|
+
aside: "es",
|
|
115
|
+
keywords: "spanish"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
value: "it",
|
|
119
|
+
label: "Italiano",
|
|
120
|
+
description: "Italian",
|
|
121
|
+
aside: "it",
|
|
122
|
+
keywords: "italian"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
value: "nl",
|
|
126
|
+
label: "Nederlands",
|
|
127
|
+
description: "Dutch",
|
|
128
|
+
aside: "nl",
|
|
129
|
+
keywords: "dutch"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
value: "pl",
|
|
133
|
+
label: "Polski",
|
|
134
|
+
description: "Polish",
|
|
135
|
+
aside: "pl",
|
|
136
|
+
keywords: "polish"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
value: "pt-PT",
|
|
140
|
+
label: "Português",
|
|
141
|
+
description: "Portuguese",
|
|
142
|
+
aside: "pt-PT",
|
|
143
|
+
keywords: "portuguese"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
value: "sv",
|
|
147
|
+
label: "Svenska",
|
|
148
|
+
description: "Swedish",
|
|
149
|
+
aside: "sv",
|
|
150
|
+
keywords: "swedish"
|
|
151
|
+
}
|
|
152
|
+
];
|
|
153
|
+
function Preview() {
|
|
154
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
155
|
+
className: "o-popover o-search-menu search-menu-still",
|
|
156
|
+
"data-padding": "none",
|
|
157
|
+
"data-variant": "search-menu",
|
|
158
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
159
|
+
className: "o-search-menu__search",
|
|
160
|
+
children: [/* @__PURE__ */ jsx(MagnifyingGlassIcon, { className: "o-search-menu__search-icon" }), /* @__PURE__ */ jsx("span", {
|
|
161
|
+
className: "search-menu-still__placeholder",
|
|
162
|
+
children: "Search variables"
|
|
163
|
+
})]
|
|
164
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
165
|
+
className: "o-search-menu__scroll",
|
|
166
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
167
|
+
className: "o-search-menu__group",
|
|
168
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
169
|
+
className: "o-search-menu__heading",
|
|
170
|
+
children: "Customer"
|
|
171
|
+
}), [{
|
|
172
|
+
label: "First name",
|
|
173
|
+
token: "{{customer.first_name}}",
|
|
174
|
+
active: true
|
|
175
|
+
}, {
|
|
176
|
+
label: "Email address",
|
|
177
|
+
token: "{{customer.email}}"
|
|
178
|
+
}].map((row) => /* @__PURE__ */ jsxs("div", {
|
|
179
|
+
className: "o-search-menu__option",
|
|
180
|
+
"data-active": row.active ? "" : void 0,
|
|
181
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
182
|
+
className: "o-search-menu__text",
|
|
183
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
184
|
+
className: "o-search-menu__label",
|
|
185
|
+
children: row.label
|
|
186
|
+
})
|
|
187
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
188
|
+
className: "o-search-menu__token-end",
|
|
189
|
+
children: /* @__PURE__ */ jsx("code", {
|
|
190
|
+
className: "o-search-menu__token",
|
|
191
|
+
children: row.token
|
|
192
|
+
})
|
|
193
|
+
})]
|
|
194
|
+
}, row.label))]
|
|
195
|
+
})
|
|
196
|
+
})]
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function SubjectWithVariables() {
|
|
200
|
+
const field = useRef(null);
|
|
201
|
+
const [subject, setSubject] = useState("Your order {{order.number}} is on its way");
|
|
202
|
+
const insert = (token) => {
|
|
203
|
+
const input = field.current;
|
|
204
|
+
const start = input?.selectionStart ?? subject.length;
|
|
205
|
+
const end = input?.selectionEnd ?? subject.length;
|
|
206
|
+
const next = subject.slice(0, start) + token + subject.slice(end);
|
|
207
|
+
setSubject(next);
|
|
208
|
+
requestAnimationFrame(() => {
|
|
209
|
+
input?.focus();
|
|
210
|
+
input?.setSelectionRange(start + token.length, start + token.length);
|
|
211
|
+
});
|
|
212
|
+
input?.focus();
|
|
213
|
+
};
|
|
214
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
215
|
+
className: "search-menu-subject",
|
|
216
|
+
children: [/* @__PURE__ */ jsx(Field, {
|
|
217
|
+
label: "Subject line",
|
|
218
|
+
children: /* @__PURE__ */ jsx(Input, {
|
|
219
|
+
ref: field,
|
|
220
|
+
value: subject,
|
|
221
|
+
onChange: (event) => setSubject(event.target.value)
|
|
222
|
+
})
|
|
223
|
+
}), /* @__PURE__ */ jsx(SearchMenu, {
|
|
224
|
+
trigger: /* @__PURE__ */ jsx(Button, {
|
|
225
|
+
size: "sm",
|
|
226
|
+
icon: /* @__PURE__ */ jsx(BracketsCurlyIcon, {}),
|
|
227
|
+
children: "Insert variable"
|
|
228
|
+
}),
|
|
229
|
+
items: VARIABLES,
|
|
230
|
+
onSelect: (item) => insert(item.value),
|
|
231
|
+
labels: {
|
|
232
|
+
search: "Search variables",
|
|
233
|
+
list: "Variables",
|
|
234
|
+
notFound: "No variables match"
|
|
235
|
+
},
|
|
236
|
+
align: "end"
|
|
237
|
+
})]
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
function AddLanguage() {
|
|
241
|
+
const [added, setAdded] = useState(["en-GB", "cy"]);
|
|
242
|
+
const [manage, setManage] = useState(false);
|
|
243
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
244
|
+
className: "search-menu-languages",
|
|
245
|
+
children: [
|
|
246
|
+
/* @__PURE__ */ jsx("ul", {
|
|
247
|
+
className: "search-menu-languages__list",
|
|
248
|
+
"aria-label": "Shop languages",
|
|
249
|
+
children: added.map((code) => {
|
|
250
|
+
const language = LANGUAGES.find((each) => each.value === code);
|
|
251
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
252
|
+
className: "search-menu-languages__item",
|
|
253
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
254
|
+
className: "search-menu-languages__name",
|
|
255
|
+
children: language.label
|
|
256
|
+
}), code === "en-GB" ? /* @__PURE__ */ jsx(Badge, {
|
|
257
|
+
size: "sm",
|
|
258
|
+
children: "Default"
|
|
259
|
+
}) : null]
|
|
260
|
+
}, code);
|
|
261
|
+
})
|
|
262
|
+
}),
|
|
263
|
+
/* @__PURE__ */ jsx(SearchMenu, {
|
|
264
|
+
trigger: /* @__PURE__ */ jsx(Button, {
|
|
265
|
+
size: "sm",
|
|
266
|
+
icon: /* @__PURE__ */ jsx(PlusIcon, {}),
|
|
267
|
+
children: "Add language"
|
|
268
|
+
}),
|
|
269
|
+
items: LANGUAGES,
|
|
270
|
+
exclude: added,
|
|
271
|
+
onSelect: (item) => setAdded((all) => [...all, item.value]),
|
|
272
|
+
footer: {
|
|
273
|
+
label: "Manage translations",
|
|
274
|
+
icon: /* @__PURE__ */ jsx(GearSixIcon, {}),
|
|
275
|
+
onSelect: () => setManage(true)
|
|
276
|
+
},
|
|
277
|
+
labels: {
|
|
278
|
+
search: "Search languages",
|
|
279
|
+
list: "Languages",
|
|
280
|
+
empty: "Every language is added",
|
|
281
|
+
notFound: "No languages match"
|
|
282
|
+
},
|
|
283
|
+
width: 320
|
|
284
|
+
}),
|
|
285
|
+
/* @__PURE__ */ jsx("p", {
|
|
286
|
+
className: "search-menu-languages__note",
|
|
287
|
+
role: "status",
|
|
288
|
+
children: manage ? "Translations would open here." : ""
|
|
289
|
+
})
|
|
290
|
+
]
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
function States() {
|
|
294
|
+
const [sample, setSample] = useState("loading");
|
|
295
|
+
const items = sample === "loading" || sample === "empty" ? [] : LANGUAGES.slice(3, 9);
|
|
296
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
297
|
+
className: "search-menu-states",
|
|
298
|
+
children: [/* @__PURE__ */ jsx(SegmentedControl, {
|
|
299
|
+
"aria-label": "What the menu holds",
|
|
300
|
+
size: "sm",
|
|
301
|
+
value: sample,
|
|
302
|
+
onValueChange: (next) => setSample(next),
|
|
303
|
+
options: [
|
|
304
|
+
{
|
|
305
|
+
value: "loading",
|
|
306
|
+
label: "Loading"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
value: "empty",
|
|
310
|
+
label: "Nothing to add"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
value: "rows",
|
|
314
|
+
label: "Rows"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
value: "chosen",
|
|
318
|
+
label: "A choice"
|
|
319
|
+
}
|
|
320
|
+
]
|
|
321
|
+
}), /* @__PURE__ */ jsx(SearchMenu, {
|
|
322
|
+
trigger: /* @__PURE__ */ jsx(Button, {
|
|
323
|
+
size: "sm",
|
|
324
|
+
icon: /* @__PURE__ */ jsx(TranslateIcon, {}),
|
|
325
|
+
iconEnd: /* @__PURE__ */ jsx(CaretDownIcon, {}),
|
|
326
|
+
children: sample === "chosen" ? "Deutsch" : "Language"
|
|
327
|
+
}),
|
|
328
|
+
items,
|
|
329
|
+
loading: sample === "loading",
|
|
330
|
+
value: sample === "chosen" ? "de" : void 0,
|
|
331
|
+
onSelect: () => {},
|
|
332
|
+
labels: {
|
|
333
|
+
search: "Search languages",
|
|
334
|
+
list: "Languages",
|
|
335
|
+
empty: "Every language is added"
|
|
336
|
+
}
|
|
337
|
+
})]
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
function Page() {
|
|
341
|
+
return /* @__PURE__ */ jsxs(DocPage, {
|
|
342
|
+
title: "Search menu",
|
|
343
|
+
status: "new",
|
|
344
|
+
importNames: ["SearchMenu", "searchMenuLabels"],
|
|
345
|
+
lead: "A button that opens a list to pick from with a search on top, for lists too long to scan: the variables to insert into an email, a language to add, the tokens of a template. Type to narrow it, use the arrow keys, and Enter inserts or adds and closes it.",
|
|
346
|
+
children: [
|
|
347
|
+
/* @__PURE__ */ jsxs(Section$1, {
|
|
348
|
+
id: "basics",
|
|
349
|
+
title: "Basics",
|
|
350
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
351
|
+
"Give it a ",
|
|
352
|
+
/* @__PURE__ */ jsx("code", { children: "trigger" }),
|
|
353
|
+
", the ",
|
|
354
|
+
/* @__PURE__ */ jsx("code", { children: "items" }),
|
|
355
|
+
" and an ",
|
|
356
|
+
/* @__PURE__ */ jsx("code", { children: "onSelect" }),
|
|
357
|
+
". It opens with its search focused, and the search keeps focus: typing narrows the rows (by label, token or ",
|
|
358
|
+
/* @__PURE__ */ jsx("code", { children: "keywords" }),
|
|
359
|
+
") and marks what matched, the arrow keys walk them, and Enter or a click picks one and closes the menu. Rows with a",
|
|
360
|
+
" ",
|
|
361
|
+
/* @__PURE__ */ jsx("code", { children: "group" }),
|
|
362
|
+
" sit under its heading, which stays at the top of the list as the rows scroll. A",
|
|
363
|
+
" ",
|
|
364
|
+
/* @__PURE__ */ jsx("code", { children: "token" }),
|
|
365
|
+
" shows at the row's end in mono, as it will be inserted. Here, the variables of an order email: put the caret in the subject and insert one."
|
|
366
|
+
] }),
|
|
367
|
+
children: [/* @__PURE__ */ jsx(Example, {
|
|
368
|
+
align: "fill",
|
|
369
|
+
minHeight: 260,
|
|
370
|
+
code: `
|
|
371
|
+
<SearchMenu
|
|
372
|
+
trigger={<Button size="sm" icon={<BracketsCurlyIcon />}>Insert variable</Button>}
|
|
373
|
+
items={[
|
|
374
|
+
{ value: '{{customer.first_name}}', label: 'First name', token: '{{customer.first_name}}', group: 'Customer' },
|
|
375
|
+
{ value: '{{order.number}}', label: 'Order number', token: '{{order.number}}', group: 'Order' },
|
|
376
|
+
{ value: '{{order.tracking_url}}', label: 'Tracking link', token: '{{order.tracking_url}}', group: 'Order',
|
|
377
|
+
disabled: true, description: 'Only in shipping emails' },
|
|
378
|
+
{ value: '{{store.name}}', label: 'Shop name', token: '{{store.name}}', group: 'Shop', keywords: 'store' },
|
|
379
|
+
// ...
|
|
380
|
+
]}
|
|
381
|
+
onSelect={(item) => insertAtCaret(item.value)}
|
|
382
|
+
labels={{ search: 'Search variables', list: 'Variables', notFound: 'No variables match' }}
|
|
383
|
+
align="end"
|
|
384
|
+
/>`,
|
|
385
|
+
children: /* @__PURE__ */ jsx(SubjectWithVariables, {})
|
|
386
|
+
}), /* @__PURE__ */ jsxs(Note, {
|
|
387
|
+
title: "Inserting into a field",
|
|
388
|
+
children: [
|
|
389
|
+
"When ",
|
|
390
|
+
/* @__PURE__ */ jsx("code", { children: "onSelect" }),
|
|
391
|
+
" moves focus into the field it inserted into, the menu leaves it there instead of handing it back to its button, so the person can carry on typing."
|
|
392
|
+
]
|
|
393
|
+
})]
|
|
394
|
+
}),
|
|
395
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
396
|
+
id: "adding",
|
|
397
|
+
title: "Adding from a catalogue",
|
|
398
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
399
|
+
"For a list of things to add, pass what is already added as ",
|
|
400
|
+
/* @__PURE__ */ jsx("code", { children: "exclude" }),
|
|
401
|
+
": those rows are left out (the current ",
|
|
402
|
+
/* @__PURE__ */ jsx("code", { children: "value" }),
|
|
403
|
+
" stays). A row can lead with an ",
|
|
404
|
+
/* @__PURE__ */ jsx("code", { children: "icon" }),
|
|
405
|
+
" and end with an",
|
|
406
|
+
" ",
|
|
407
|
+
/* @__PURE__ */ jsx("code", { children: "aside" }),
|
|
408
|
+
" (here, the language's code), and take a quiet ",
|
|
409
|
+
/* @__PURE__ */ jsx("code", { children: "description" }),
|
|
410
|
+
" under its label. A",
|
|
411
|
+
" ",
|
|
412
|
+
/* @__PURE__ */ jsx("code", { children: "footer" }),
|
|
413
|
+
" action sits on the sheet's foot, below the list, and the arrow keys reach it last."
|
|
414
|
+
] }),
|
|
415
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
416
|
+
align: "fill",
|
|
417
|
+
minHeight: 300,
|
|
418
|
+
code: `
|
|
419
|
+
<SearchMenu
|
|
420
|
+
trigger={<Button size="sm" icon={<PlusIcon />}>Add language</Button>}
|
|
421
|
+
items={[
|
|
422
|
+
{ value: 'cy', label: 'Cymraeg', description: 'Welsh', aside: 'cy', keywords: 'welsh' },
|
|
423
|
+
{ value: 'fr', label: 'Français', description: 'French', aside: 'fr', keywords: 'french' },
|
|
424
|
+
// ...
|
|
425
|
+
]}
|
|
426
|
+
exclude={addedCodes}
|
|
427
|
+
onSelect={(item) => addLanguage(item.value)}
|
|
428
|
+
footer={{ label: 'Manage translations', icon: <GearSixIcon />, onSelect: openTranslations }}
|
|
429
|
+
labels={{ search: 'Search languages', list: 'Languages', empty: 'Every language is added' }}
|
|
430
|
+
width={320}
|
|
431
|
+
/>`,
|
|
432
|
+
children: /* @__PURE__ */ jsx(AddLanguage, {})
|
|
433
|
+
})
|
|
434
|
+
}),
|
|
435
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
436
|
+
id: "states",
|
|
437
|
+
title: "Loading, empty and chosen",
|
|
438
|
+
description: /* @__PURE__ */ jsxs("p", { children: [
|
|
439
|
+
"While ",
|
|
440
|
+
/* @__PURE__ */ jsx("code", { children: "loading" }),
|
|
441
|
+
", a quiet line with the Orbit spinner stands where the rows go, and the status says so. With no items at all the sheet says ",
|
|
442
|
+
/* @__PURE__ */ jsx("code", { children: "labels.empty" }),
|
|
443
|
+
"; when a search matches nothing,",
|
|
444
|
+
" ",
|
|
445
|
+
/* @__PURE__ */ jsx("code", { children: "labels.notFound" }),
|
|
446
|
+
". The current ",
|
|
447
|
+
/* @__PURE__ */ jsx("code", { children: "value" }),
|
|
448
|
+
" is ticked in teal. Pick a state and open the menu."
|
|
449
|
+
] }),
|
|
450
|
+
children: /* @__PURE__ */ jsx(Example, {
|
|
451
|
+
align: "fill",
|
|
452
|
+
minHeight: 300,
|
|
453
|
+
code: `
|
|
454
|
+
<SearchMenu items={[]} loading trigger={trigger} onSelect={add} />
|
|
455
|
+
<SearchMenu items={[]} labels={{ empty: 'Every language is added' }} trigger={trigger} onSelect={add} />
|
|
456
|
+
<SearchMenu items={languages} value="de" trigger={trigger} onSelect={choose} />`,
|
|
457
|
+
children: /* @__PURE__ */ jsx(States, {})
|
|
458
|
+
})
|
|
459
|
+
}),
|
|
460
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
461
|
+
id: "keyboard",
|
|
462
|
+
title: "Keyboard",
|
|
463
|
+
children: /* @__PURE__ */ jsx(DocTable, {
|
|
464
|
+
columns: ["Key", "Does"],
|
|
465
|
+
rows: [
|
|
466
|
+
["Typing", "Narrows the rows. Letters always go into the search: there is no typeahead to jump the highlight."],
|
|
467
|
+
["Down and Up arrows", "Walk the rows, past rows that are off, round from the last to the first."],
|
|
468
|
+
["Page Down and Page Up", "The last row and the first."],
|
|
469
|
+
["Enter", "Picks the highlighted row: inserts or adds, and closes the menu."],
|
|
470
|
+
["Escape", "Clears the search; with the search empty, closes the menu and hands focus back to its button."],
|
|
471
|
+
["Tab", "Leaves the menu, which closes."]
|
|
472
|
+
]
|
|
473
|
+
})
|
|
474
|
+
}),
|
|
475
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
476
|
+
id: "guidelines",
|
|
477
|
+
title: "Guidelines",
|
|
478
|
+
children: /* @__PURE__ */ jsx(Guidelines, { items: [
|
|
479
|
+
"Use it for a list of ten or more things to insert or add. A short list of actions is a Menu; a value a form submits is a Select or a Combobox.",
|
|
480
|
+
"Name the trigger for what it does (\"Insert variable\", \"Add language\"), and the search for what it searches.",
|
|
481
|
+
"Leave out what has already been added rather than showing it switched off.",
|
|
482
|
+
"A row that is off says why in its description, which stays readable."
|
|
483
|
+
] })
|
|
484
|
+
}),
|
|
485
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
486
|
+
id: "accessibility",
|
|
487
|
+
title: "Accessibility",
|
|
488
|
+
children: /* @__PURE__ */ jsx(Guidelines, { items: [
|
|
489
|
+
"The search is a combobox that controls the list (a listbox of options), and the highlighted row is its active descendant, so a screen reader reads each row as the arrow keys reach it while focus stays in the search.",
|
|
490
|
+
"Group headings name their groups, so \"Customer\" is read with its rows.",
|
|
491
|
+
"A polite status says how many rows a search found, or that none did, and that the items are loading.",
|
|
492
|
+
"Picking hands focus back to the button, or leaves it in the field onSelect put it in.",
|
|
493
|
+
"Under forced colours the highlighted row is outlined, since its tint is gone."
|
|
494
|
+
] })
|
|
495
|
+
}),
|
|
496
|
+
/* @__PURE__ */ jsx(Section$1, {
|
|
497
|
+
id: "props",
|
|
498
|
+
title: "Props",
|
|
499
|
+
children: /* @__PURE__ */ jsx(PropsTable, { rows: [
|
|
500
|
+
{
|
|
501
|
+
name: "trigger",
|
|
502
|
+
type: "ReactElement",
|
|
503
|
+
description: "The button that opens the menu."
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
name: "items",
|
|
507
|
+
type: "SearchMenuItem[]",
|
|
508
|
+
description: "value, label, and any of token, aside, icon, description, group, keywords, disabled, data."
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
name: "onSelect",
|
|
512
|
+
type: "(item) => void",
|
|
513
|
+
description: "A row was picked. The menu then closes."
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
name: "value",
|
|
517
|
+
type: "string | null",
|
|
518
|
+
description: "The current choice: ticked and aria-selected."
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
name: "exclude",
|
|
522
|
+
type: "string[]",
|
|
523
|
+
description: "Values to leave out: what has already been added. The current value stays."
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
name: "filter",
|
|
527
|
+
type: "((item, query) => boolean) | false",
|
|
528
|
+
default: "label, token or keywords",
|
|
529
|
+
description: "How the search matches; false shows the items as given, for a host that searches itself."
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
name: "onQueryChange",
|
|
533
|
+
type: "(query) => void",
|
|
534
|
+
description: "Called as the search changes."
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
name: "loading",
|
|
538
|
+
type: "boolean",
|
|
539
|
+
default: "false",
|
|
540
|
+
description: "A loading line in place of the rows."
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
name: "footer",
|
|
544
|
+
type: "{ label, icon?, onSelect }",
|
|
545
|
+
description: "An action stuck to the sheet’s foot. Runs and closes."
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
name: "labels",
|
|
549
|
+
type: "Partial<SearchMenuLabels>",
|
|
550
|
+
description: "search, list, notFound, empty, loading, results(count). English defaults in searchMenuLabels."
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
name: "open / defaultOpen / onOpenChange",
|
|
554
|
+
type: "boolean / boolean / (open) => void",
|
|
555
|
+
description: "Controlled or uncontrolled open state."
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
name: "width",
|
|
559
|
+
type: "number | string",
|
|
560
|
+
default: "300",
|
|
561
|
+
description: "The sheet’s width."
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
name: "align / side / sideOffset",
|
|
565
|
+
type: "Popover placement",
|
|
566
|
+
default: "'start' / 'bottom' / 6",
|
|
567
|
+
description: "Where the sheet opens against its button."
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
name: "container",
|
|
571
|
+
type: "HTMLElement | null",
|
|
572
|
+
description: "Where the sheet is portalled. Defaults to the page, or the layer of the dialog it is opened in."
|
|
573
|
+
}
|
|
574
|
+
] })
|
|
575
|
+
})
|
|
576
|
+
]
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
//#endregion
|
|
580
|
+
export { Page, Preview };
|