@unofficialbox/box-open-elements 0.17.0 → 0.19.0
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/components/actions/button-group.js +6 -0
- package/dist/components/actions/button.js +6 -0
- package/dist/components/actions/icon-button.js +6 -0
- package/dist/components/actions/link-button.js +6 -0
- package/dist/components/actions/menu-item.js +6 -0
- package/dist/components/actions/menu.js +6 -0
- package/dist/components/actions/segmented-control.js +6 -0
- package/dist/components/actions/toolbar.js +6 -0
- package/dist/components/collections/card.js +6 -0
- package/dist/components/collections/carousel.js +6 -0
- package/dist/components/collections/datalist-item.js +6 -0
- package/dist/components/collections/draggable-list.js +6 -0
- package/dist/components/collections/grid-view.js +6 -0
- package/dist/components/collections/pagination.js +6 -0
- package/dist/components/collections/table.js +6 -0
- package/dist/components/collections/thumbnail-card.js +6 -0
- package/dist/components/collections/tree-grid.js +6 -0
- package/dist/components/collections/tree.js +6 -0
- package/dist/components/feedback/alert.js +1 -1
- package/dist/components/feedback/badge.js +1 -1
- package/dist/components/feedback/badgeable.js +6 -0
- package/dist/components/feedback/chip.js +6 -0
- package/dist/components/feedback/due-badge.js +6 -0
- package/dist/components/feedback/empty-state.js +6 -0
- package/dist/components/feedback/error-mask.js +6 -0
- package/dist/components/feedback/help-text.js +6 -0
- package/dist/components/feedback/indicator.js +1 -1
- package/dist/components/feedback/nudge.js +6 -0
- package/dist/components/feedback/path.js +6 -0
- package/dist/components/feedback/progress-bar.js +6 -0
- package/dist/components/feedback/progress-ring.js +6 -0
- package/dist/components/feedback/progress-steps.js +6 -0
- package/dist/components/feedback/skeleton.js +6 -0
- package/dist/components/feedback/spinner.js +6 -0
- package/dist/components/feedback/toast.js +1 -1
- package/dist/components/files/drop-zone.d.ts +26 -5
- package/dist/components/files/drop-zone.js +181 -22
- package/dist/components/forms/calendar.js +6 -0
- package/dist/components/forms/category-selector.js +6 -0
- package/dist/components/forms/checkbox-group.js +6 -0
- package/dist/components/forms/checkbox.js +6 -0
- package/dist/components/forms/color-picker.js +6 -0
- package/dist/components/forms/combobox.js +6 -0
- package/dist/components/forms/date-field.js +6 -0
- package/dist/components/forms/dropdown.js +6 -0
- package/dist/components/forms/dual-listbox.js +6 -0
- package/dist/components/forms/fieldset.js +6 -0
- package/dist/components/forms/multi-select.js +6 -0
- package/dist/components/forms/number-input.js +6 -0
- package/dist/components/forms/pill-cloud.js +6 -0
- package/dist/components/forms/pill-selector-dropdown.js +6 -0
- package/dist/components/forms/radio-group.js +6 -0
- package/dist/components/forms/range-slider.js +6 -0
- package/dist/components/forms/rating.js +6 -0
- package/dist/components/forms/rich-text-input.js +6 -0
- package/dist/components/forms/search-field.js +6 -0
- package/dist/components/forms/select.js +6 -0
- package/dist/components/forms/slider.js +6 -0
- package/dist/components/forms/spin-button.js +6 -0
- package/dist/components/forms/switch.js +6 -0
- package/dist/components/forms/tag-input.js +6 -0
- package/dist/components/forms/text-area.js +6 -0
- package/dist/components/forms/text-field.js +6 -0
- package/dist/components/forms/tile-group.js +1 -1
- package/dist/components/forms/time-field.js +6 -0
- package/dist/components/identity/avatar.js +6 -0
- package/dist/components/identity/contact-datalist-item.js +6 -0
- package/dist/components/identity/persona.js +6 -0
- package/dist/components/layout/app-shell.js +6 -0
- package/dist/components/layout/divider.js +6 -0
- package/dist/components/layout/grid.js +1 -1
- package/dist/components/layout/nav-sidebar.js +6 -0
- package/dist/components/layout/section.js +6 -0
- package/dist/components/layout/sidebar-toggle-button.js +6 -0
- package/dist/components/layout/split-view.js +6 -0
- package/dist/components/navigation/accordion.js +6 -0
- package/dist/components/navigation/breadcrumb.js +6 -0
- package/dist/components/navigation/tabs.js +6 -0
- package/dist/components/output/code-block.js +1 -1
- package/dist/components/output/formatted-value.js +1 -1
- package/dist/components/overlays/command-palette.js +6 -0
- package/dist/components/overlays/context-menu.js +6 -0
- package/dist/components/overlays/guide-tooltip.js +6 -0
- package/dist/components/overlays/popover.js +6 -0
- package/dist/components/overlays/shortcuts-overlay.js +6 -0
- package/dist/components/overlays/tooltip.js +6 -0
- package/dist/components/visuals/illustration.js +6 -0
- package/dist/foundations/tokens/box-defaults.js +36 -0
- package/dist/patterns/agent-chat/agent-chat.js +6 -0
- package/dist/patterns/audit/activity-density.js +6 -0
- package/dist/patterns/audit/audit-log.js +6 -0
- package/dist/patterns/comments/comment-thread.js +6 -0
- package/dist/patterns/content-explorer/adapters/action-menu.js +6 -0
- package/dist/patterns/content-explorer/adapters/breadcrumbs.js +6 -0
- package/dist/patterns/content-explorer/adapters/list.js +6 -0
- package/dist/patterns/content-explorer/adapters/table.js +6 -0
- package/dist/patterns/content-explorer/adapters/toolbar.js +6 -0
- package/dist/patterns/content-explorer/content-explorer.js +6 -0
- package/dist/patterns/content-picker/content-picker.js +6 -0
- package/dist/patterns/content-sidebar/content-sidebar.js +6 -0
- package/dist/patterns/content-uploader/content-uploader.d.ts +33 -0
- package/dist/patterns/content-uploader/content-uploader.js +181 -16
- package/dist/patterns/diff/compare-view.js +6 -0
- package/dist/patterns/diff/diff-viewer.js +6 -0
- package/dist/patterns/file-request/file-request-builder.js +6 -0
- package/dist/patterns/form-wizard/form-wizard.js +6 -0
- package/dist/patterns/form-wizard/wizard-summary.js +6 -0
- package/dist/patterns/governance/governance-panel.js +6 -0
- package/dist/patterns/insights/bar-chart.js +6 -0
- package/dist/patterns/insights/chart-panel.js +6 -0
- package/dist/patterns/insights/donut-chart.js +6 -0
- package/dist/patterns/insights/line-chart.js +6 -0
- package/dist/patterns/insights/metric-card.js +6 -0
- package/dist/patterns/item/bulk-action-bar.js +6 -0
- package/dist/patterns/item/item-details-panel.js +6 -0
- package/dist/patterns/item/item-form.js +6 -0
- package/dist/patterns/item/preview-header.js +6 -0
- package/dist/patterns/lineage/lineage-graph.js +6 -0
- package/dist/patterns/lineage/provenance-strip.js +6 -0
- package/dist/patterns/metadata/metadata-filter-builder.js +6 -0
- package/dist/patterns/metadata/metadata-inspector.js +6 -0
- package/dist/patterns/notifications/notification-bell.js +6 -0
- package/dist/patterns/notifications/notification-inbox.js +6 -0
- package/dist/patterns/preview/annotation-inspector.js +6 -0
- package/dist/patterns/preview/annotation-toolbar.js +6 -0
- package/dist/patterns/preview/preview-element.js +6 -0
- package/dist/patterns/run/run-trace.js +6 -0
- package/dist/patterns/search/filter-bar.js +6 -0
- package/dist/patterns/search/saved-view-picker.js +6 -0
- package/dist/patterns/search/search-results-header.js +6 -0
- package/dist/patterns/share/access-stats.js +6 -0
- package/dist/patterns/share/collaborator-avatars.js +6 -0
- package/dist/patterns/share/invite-collaborators-modal.js +6 -0
- package/dist/patterns/share/permission-matrix.js +6 -0
- package/dist/patterns/share/presence.js +6 -0
- package/dist/patterns/share/share-panel.js +6 -0
- package/dist/patterns/share/unified-share-modal.js +6 -0
- package/dist/patterns/signature/signature-ceremony.js +6 -0
- package/dist/patterns/task/review-queue-item.js +6 -0
- package/dist/patterns/task/task-assignment-panel.js +6 -0
- package/dist/patterns/timeline/timeline.js +6 -0
- package/dist/patterns/versions/version-graph.js +6 -0
- package/dist/patterns/versions/version-list.js +6 -0
- package/dist/patterns/work-queue/work-queue.js +6 -0
- package/dist/patterns/work-queue/workload-board.js +6 -0
- package/package.json +1 -1
|
@@ -39,6 +39,12 @@ const avatarStyles = `
|
|
|
39
39
|
font: inherit;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
43
|
+
leaving the element on screen when a host hides it. */
|
|
44
|
+
:host([hidden]) {
|
|
45
|
+
display: none !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
42
48
|
[part="avatar"] {
|
|
43
49
|
position: relative;
|
|
44
50
|
display: inline-grid;
|
|
@@ -16,6 +16,12 @@ const contactStyles = `
|
|
|
16
16
|
font: inherit;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
20
|
+
leaving the element on screen when a host hides it. */
|
|
21
|
+
:host([hidden]) {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
[part="item"] {
|
|
20
26
|
display: flex;
|
|
21
27
|
align-items: center;
|
|
@@ -20,6 +20,12 @@ const personaStyles = `
|
|
|
20
20
|
font: inherit;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
24
|
+
leaving the element on screen when a host hides it. */
|
|
25
|
+
:host([hidden]) {
|
|
26
|
+
display: none !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
23
29
|
[part="persona"] {
|
|
24
30
|
display: grid;
|
|
25
31
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
@@ -8,6 +8,12 @@ const appShellStyles = `
|
|
|
8
8
|
font: inherit;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
12
|
+
leaving the element on screen when a host hides it. */
|
|
13
|
+
:host([hidden]) {
|
|
14
|
+
display: none !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
[part="shell"] {
|
|
12
18
|
display: grid;
|
|
13
19
|
grid-template-rows: auto 1fr auto;
|
|
@@ -15,6 +15,12 @@ const dividerStyles = `
|
|
|
15
15
|
font: inherit;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
19
|
+
leaving the element on screen when a host hides it. */
|
|
20
|
+
:host([hidden]) {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
:host([orientation="vertical"]) {
|
|
19
25
|
display: inline-block;
|
|
20
26
|
inline-size: auto;
|
|
@@ -11,6 +11,12 @@ const navSidebarStyles = `
|
|
|
11
11
|
--boe-nav-label-display: inline;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
15
|
+
leaving the element on screen when a host hides it. */
|
|
16
|
+
:host([hidden]) {
|
|
17
|
+
display: none !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
:host([collapsed]) {
|
|
15
21
|
--boe-nav-label-display: none;
|
|
16
22
|
}
|
|
@@ -14,6 +14,12 @@ const sectionStyles = `
|
|
|
14
14
|
font: inherit;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
18
|
+
leaving the element on screen when a host hides it. */
|
|
19
|
+
:host([hidden]) {
|
|
20
|
+
display: none !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
17
23
|
[part="section"] {
|
|
18
24
|
display: grid;
|
|
19
25
|
gap: 0.6rem;
|
|
@@ -10,6 +10,12 @@ const sidebarToggleButtonStyles = `
|
|
|
10
10
|
font: inherit;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
14
|
+
leaving the element on screen when a host hides it. */
|
|
15
|
+
:host([hidden]) {
|
|
16
|
+
display: none !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
13
19
|
[part="button"] {
|
|
14
20
|
appearance: none;
|
|
15
21
|
display: inline-flex;
|
|
@@ -5,6 +5,12 @@ const splitViewStyles = `
|
|
|
5
5
|
display: block;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
9
|
+
leaving the element on screen when a host hides it. */
|
|
10
|
+
:host([hidden]) {
|
|
11
|
+
display: none !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
[part="split-view"] {
|
|
9
15
|
display: grid;
|
|
10
16
|
align-items: stretch;
|
|
@@ -15,6 +15,12 @@ const accordionStyles = `
|
|
|
15
15
|
font: inherit;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
19
|
+
leaving the element on screen when a host hides it. */
|
|
20
|
+
:host([hidden]) {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
[part="accordion"] {
|
|
19
25
|
display: grid;
|
|
20
26
|
gap: 0;
|
|
@@ -14,6 +14,12 @@ const breadcrumbStyles = `
|
|
|
14
14
|
font: inherit;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
18
|
+
leaving the element on screen when a host hides it. */
|
|
19
|
+
:host([hidden]) {
|
|
20
|
+
display: none !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
17
23
|
[part="list"] {
|
|
18
24
|
display: flex;
|
|
19
25
|
flex-wrap: wrap;
|
|
@@ -16,6 +16,12 @@ const tabsStyles = `
|
|
|
16
16
|
font: inherit;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
20
|
+
leaving the element on screen when a host hides it. */
|
|
21
|
+
:host([hidden]) {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
[part="tabs"] {
|
|
20
26
|
display: flex;
|
|
21
27
|
flex-wrap: nowrap;
|
|
@@ -20,6 +20,12 @@ const elementStyles = `
|
|
|
20
20
|
display: contents;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
24
|
+
leaving the element on screen when a host hides it. */
|
|
25
|
+
:host([hidden]) {
|
|
26
|
+
display: none !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
23
29
|
/* A <dialog> promoted with showModal() — see
|
|
24
30
|
foundations/overlay/top-layer.ts. The top layer keeps the scrim above
|
|
25
31
|
the page without moving the host node. UA border/margin/max-* reset
|
|
@@ -16,6 +16,12 @@ const contextMenuStyles = `
|
|
|
16
16
|
font: inherit;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
20
|
+
leaving the element on screen when a host hides it. */
|
|
21
|
+
:host([hidden]) {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
[part="target"] {
|
|
20
26
|
display: contents;
|
|
21
27
|
}
|
|
@@ -12,6 +12,12 @@ const guideTooltipStyles = `
|
|
|
12
12
|
font: inherit;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
16
|
+
leaving the element on screen when a host hides it. */
|
|
17
|
+
:host([hidden]) {
|
|
18
|
+
display: none !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
15
21
|
/* Positioned by JS (foundations/overlay) as a viewport-fixed callout, so it
|
|
16
22
|
escapes ancestor overflow and flips/shifts to stay on-screen. */
|
|
17
23
|
/* display is stated explicitly because the element carries
|
|
@@ -20,6 +20,12 @@ const popoverStyles = `
|
|
|
20
20
|
font: inherit;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
24
|
+
leaving the element on screen when a host hides it. */
|
|
25
|
+
:host([hidden]) {
|
|
26
|
+
display: none !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
23
29
|
[part="container"] {
|
|
24
30
|
position: relative;
|
|
25
31
|
display: inline-grid;
|
|
@@ -38,6 +38,12 @@ const elementStyles = `
|
|
|
38
38
|
display: contents;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
42
|
+
leaving the element on screen when a host hides it. */
|
|
43
|
+
:host([hidden]) {
|
|
44
|
+
display: none !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
/* A <dialog> promoted with showModal() — see
|
|
42
48
|
foundations/overlay/top-layer.ts. The top layer keeps the scrim above
|
|
43
49
|
the page without moving the host node. UA border/margin/max-* reset
|
|
@@ -13,6 +13,12 @@ const tooltipStyles = `
|
|
|
13
13
|
font: inherit;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
17
|
+
leaving the element on screen when a host hides it. */
|
|
18
|
+
:host([hidden]) {
|
|
19
|
+
display: none !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
[part="container"] {
|
|
17
23
|
display: inline-grid;
|
|
18
24
|
}
|
|
@@ -8,6 +8,12 @@ const illustrationStyles = `
|
|
|
8
8
|
font: inherit;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
12
|
+
leaving the element on screen when a host hides it. */
|
|
13
|
+
:host([hidden]) {
|
|
14
|
+
display: none !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
[part="illustration"] {
|
|
12
18
|
display: grid;
|
|
13
19
|
gap: 0.55rem;
|
|
@@ -46,6 +46,42 @@ export const boxDefaultDesignSystem = {
|
|
|
46
46
|
},
|
|
47
47
|
illustrations: {
|
|
48
48
|
"empty-state-folder": illustrationSvg("0 0 140 140", '<g fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" fill-rule="evenodd" clip-rule="evenodd" opacity="0.1"><path d="M47.11 36H35.383c-1.261 0-2.294.97-2.378 2.198L33 38.36v48.604c0 2.162 1.716 3.926 3.872 4.031l.546.005h.257l.19-.036c1.743-.375 3.062-1.86 3.152-3.663l.005-.197V73.972a.98.98 0 0 1 .017-.18.87.87 0 0 1-.032-.155L41 73.52V56.717c0-4.209 3.7-7.59 8.268-7.713l.26-.004L97 48.999v-2.26c0-3.08-2.463-5.592-5.546-5.707l-.221-.004H54.118a4.402 4.402 0 0 1-3.51-1.738l-.14-.197-1.375-2.042a2.386 2.386 0 0 0-1.8-1.044L47.11 36Z" /><path d="M51 96a7 7 0 1 1 0 14 7 7 0 0 1 0-14Zm47-66c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10Z" /></g><path fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" fill-rule="evenodd" d="M95 90c0-7.18-5.82-13-13-13s-13 5.82-13 13 5.82 13 13 13 13-5.82 13-13Zm-12.268-6.723a1.03 1.03 0 0 0-1.269-.107l-.105.079-.061.057-.057.061-4.99 5.898-.074.098a1.06 1.06 0 0 0 .187 1.384l.098.076c.17.115.371.177.578.177H79l.001 4.921c0 .596.497 1.08 1.11 1.08h3.779c.614 0 1.11-.484 1.11-1.081V91h1.96l.115-.006c.52-.057.925-.503.925-1.045 0-.249-.087-.489-.246-.679l-4.932-5.898-.09-.095Z" clip-rule="evenodd" /><path fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" d="M44.156 39c.466 0 .844.448.844 1s-.378 1-.844 1h-6.312c-.466 0-.844-.448-.844-1s.378-1 .844-1h6.312Zm41.952 21c.493 0 .892.448.892 1s-.4 1-.892 1H61.892c-.493 0-.892-.448-.892-1s.4-1 .892-1h24.216Z" /><path fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" fill-rule="evenodd" d="M99 91a6 6 0 0 0 5.996-5.775L105 85l.005-28.283c0-2.983-2.745-5.672-6.005-5.708l-49.473-.019c-3.55 0-6.403 2.476-6.528 5.518l-.004.209c0 10.13.005 20.255.005 30.387a5.817 5.817 0 0 1-1.497 3.897L65 91a1 1 0 0 1 0 2H37c-3.238 0-5.878-2.521-5.996-5.675L31 87.104V38.347c0-2.33 1.85-4.232 4.174-4.342l.212-.005h11.727a4.4 4.4 0 0 1 3.509 1.739l.14.197 1.376 2.043c.407.607 1.073.99 1.799 1.045l.183.007h37.11c4.208 0 7.636 3.316 7.766 7.456l.004.244v2.284c4.358.24 7.863 3.449 7.996 7.464l.004.238V85a8 8 0 0 1-7.75 7.996L99 93a1 1 0 0 1 0-2ZM35.383 36H47.11l.183.007a2.386 2.386 0 0 1 1.8 1.044l1.375 2.042.14.197a4.402 4.402 0 0 0 3.51 1.738h37.115l.221.004c3.083.115 5.546 2.627 5.546 5.707v2.26L49.528 49l-.26.004C44.7 49.127 41 52.508 41 56.717c0 10.129.022 20.258.022 30.387l-.005.197c-.09 1.803-1.409 3.288-3.152 3.663l-.19.036h-.257l-.546-.005C34.716 90.89 33 89.126 33 86.964V38.36l.005-.162A2.374 2.374 0 0 1 35.383 36Z" clip-rule="evenodd" />'),
|
|
49
|
+
// Fanned file cards behind a cloud carrying an upload arrow — the empty
|
|
50
|
+
// state for box-content-uploader, matching what box-ui-elements shows.
|
|
51
|
+
// Cards are stroked rather than filled so they read on a dark surface too.
|
|
52
|
+
"upload-cloud": illustrationSvg("0 0 140 140", [
|
|
53
|
+
'<ellipse cx="70" cy="116" rx="27" ry="3.5" fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" opacity="0.1" />',
|
|
54
|
+
'<g fill="var(--boe-token-surface-surface, #ffffff)" stroke="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" stroke-width="2" stroke-linejoin="round">',
|
|
55
|
+
// Five cards fanned across an arc. Each is drawn at the origin and
|
|
56
|
+
// placed by transform, so the shape is written once.
|
|
57
|
+
[
|
|
58
|
+
{ x: 44, y: 72, rotate: -26, glyph: "grid" },
|
|
59
|
+
{ x: 57, y: 65, rotate: -13, glyph: "lines" },
|
|
60
|
+
{ x: 70, y: 62, rotate: 0, glyph: "lines" },
|
|
61
|
+
{ x: 83, y: 65, rotate: 13, glyph: "image" },
|
|
62
|
+
{ x: 96, y: 72, rotate: 26, glyph: "grid" },
|
|
63
|
+
]
|
|
64
|
+
.map(card => {
|
|
65
|
+
const glyphs = {
|
|
66
|
+
lines: '<rect x="5" y="13" width="16" height="2" rx="1" /><rect x="5" y="18" width="16" height="2" rx="1" /><rect x="5" y="23" width="10" height="2" rx="1" />',
|
|
67
|
+
image: '<circle cx="9" cy="15" r="2" /><path d="M5 25l5-6 4 5 3-3 4 5v1H5z" />',
|
|
68
|
+
grid: '<rect x="5" y="13" width="7" height="6" rx="1" /><rect x="14" y="13" width="7" height="6" rx="1" /><rect x="5" y="21" width="7" height="6" rx="1" /><rect x="14" y="21" width="7" height="6" rx="1" />',
|
|
69
|
+
};
|
|
70
|
+
return [
|
|
71
|
+
`<g transform="translate(${String(card.x)} ${String(card.y)}) rotate(${String(card.rotate)}) translate(-13 -17)">`,
|
|
72
|
+
'<path d="M0 4a4 4 0 0 1 4-4h14l8 8v22a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4Z" />',
|
|
73
|
+
'<path d="M18 0v6a2 2 0 0 0 2 2h6" fill="none" />',
|
|
74
|
+
`<g fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" stroke="none" opacity="0.45">${glyphs[card.glyph] ?? ""}</g>`,
|
|
75
|
+
"</g>",
|
|
76
|
+
].join("");
|
|
77
|
+
})
|
|
78
|
+
.join(""),
|
|
79
|
+
"</g>",
|
|
80
|
+
// The cloud sits in front of the cards, so only their tops show.
|
|
81
|
+
'<path d="M52 108A14 14 0 0 1 52 80A20 20 0 0 1 88 80A14 14 0 0 1 88 108Z" fill="var(--boe-token-surface-surface, #ffffff)" stroke="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" stroke-width="2" stroke-linejoin="round" />',
|
|
82
|
+
'<circle cx="70" cy="89" r="11.5" fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" fill-opacity="0.12" stroke="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" stroke-width="1.75" stroke-dasharray="2 3.5" stroke-linecap="round" />',
|
|
83
|
+
'<path d="M70 83l5 5h-3v5h-4v-5h-3z" fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" />',
|
|
84
|
+
].join("")),
|
|
49
85
|
"files-information": illustrationSvg("0 0 140 140", '<path fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" fill-opacity="0.1" d="M97.5 99a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 1 1-5 0v-7a2.5 2.5 0 0 1 2.5-2.5ZM97.5 91a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5ZM74 78a2 2 0 1 1 0 4H57a2 2 0 1 1 0-4h17ZM90.01 67a1.99 1.99 0 0 1 0 3.978H56.99a1.99 1.99 0 0 1 0-3.978h33.02ZM90 56a2 2 0 1 1 0 4H57a2 2 0 1 1 0-4h33ZM80.058 27c.61 0 1.202.206 1.671.595C83.773 29.286 87.784 32.783 92 37c4.641 4.641 8.41 8.877 9.859 10.81a.73.73 0 0 1-1.105.944L98.89 46.89a3.037 3.037 0 0 0-2.148-.89h-9.264A4.479 4.479 0 0 1 83 41.522v-8.743a4.479 4.479 0 0 0-1.22-3.073L79.226 27h.83Z" /><path fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" fill-opacity="0.25" d="M45 91.001a8 8 0 0 0 8 8h28.068c-.044.494-.068.994-.068 1.499a16.42 16.42 0 0 0 2.966 9.439A7.896 7.896 0 0 1 83 110H43c-5.523 0-10-4.477-10-10V47a7 7 0 0 1 7-7h5v51.001Z" /><path fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" fill-rule="evenodd" d="M97.5 98.25a3.25 3.25 0 0 1 3.25 3.25v7a3.25 3.25 0 1 1-6.5 0v-7a3.25 3.25 0 0 1 3.25-3.25Zm0 1.5a1.75 1.75 0 0 0-1.75 1.75v7a1.75 1.75 0 0 0 3.5 0v-7a1.75 1.75 0 0 0-1.75-1.75ZM97.5 90.25a3.25 3.25 0 1 1 0 6.5 3.25 3.25 0 0 1 0-6.5Zm0 1.5a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5Z" clip-rule="evenodd" /><path fill="var(--boe-token-surface-illustration-surface-box-neutral, #0061d5)" fill-rule="evenodd" d="M79.1 26.25a7.75 7.75 0 0 1 5.481 2.27l15.899 15.899a7.749 7.749 0 0 1 2.27 5.48v34.165c6.96 2.222 12 8.74 12 16.436 0 9.527-7.723 17.25-17.25 17.25-5.743 0-10.83-2.807-13.965-7.123-.5.08-1.013.123-1.535.123H42c-5.385 0-9.75-4.365-9.75-9.75V47A7.75 7.75 0 0 1 40 39.25h4.25V34A7.75 7.75 0 0 1 52 26.25h27.1Zm18.4 58.5c-8.698 0-15.75 7.052-15.75 15.75s7.052 15.75 15.75 15.75 15.75-7.052 15.75-15.75-7.052-15.75-15.75-15.75Zm-57.5-44A6.25 6.25 0 0 0 33.75 47v54a8.25 8.25 0 0 0 8.25 8.25h40c.207 0 .413-.011.616-.026a17.172 17.172 0 0 1-2.348-9.473H52a7.75 7.75 0 0 1-7.75-7.75V40.75H40Zm12-13A6.25 6.25 0 0 0 45.75 34v58.001a6.25 6.25 0 0 0 6.25 6.25h28.395c1.103-8.464 8.34-15.001 17.105-15.001 1.288 0 2.543.141 3.75.41V51.112c0-.514-.204-1.007-.567-1.37l-1.902-1.901a3.73 3.73 0 0 0-2.637-1.092h-8.666a5.229 5.229 0 0 1-5.228-5.228v-8.743c0-.951-.364-1.866-1.017-2.558l-1.756-1.864a1.938 1.938 0 0 0-1.41-.607H52Zm30.325 1.441a5.23 5.23 0 0 1 1.425 3.588v8.742c0 2.06 1.67 3.729 3.728 3.729h8.666a5.23 5.23 0 0 1 3.698 1.531l1.056 1.057a6.241 6.241 0 0 0-1.48-2.358L83.52 29.581a6.252 6.252 0 0 0-2.15-1.403l.956 1.013Z" clip-rule="evenodd" />'),
|
|
50
86
|
},
|
|
51
87
|
};
|
|
@@ -28,6 +28,12 @@ const elementStyles = `
|
|
|
28
28
|
font: inherit;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
32
|
+
leaving the element on screen when a host hides it. */
|
|
33
|
+
:host([hidden]) {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
section[part="panel"] {
|
|
32
38
|
display: grid;
|
|
33
39
|
gap: ${boePanel.gap};
|
|
@@ -16,6 +16,12 @@ const elementStyles = `
|
|
|
16
16
|
font: inherit;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
20
|
+
leaving the element on screen when a host hides it. */
|
|
21
|
+
:host([hidden]) {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
[part="panel"] {
|
|
20
26
|
display: grid;
|
|
21
27
|
gap: ${boePanel.gap};
|
|
@@ -32,6 +32,12 @@ const elementStyles = `
|
|
|
32
32
|
font: inherit;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
36
|
+
leaving the element on screen when a host hides it. */
|
|
37
|
+
:host([hidden]) {
|
|
38
|
+
display: none !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
35
41
|
[part="panel"] {
|
|
36
42
|
display: grid;
|
|
37
43
|
gap: ${boePanel.gap};
|
|
@@ -22,6 +22,12 @@ const threadStyles = `
|
|
|
22
22
|
font: inherit;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
26
|
+
leaving the element on screen when a host hides it. */
|
|
27
|
+
:host([hidden]) {
|
|
28
|
+
display: none !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
25
31
|
[part="thread"] {
|
|
26
32
|
display: grid;
|
|
27
33
|
gap: ${boePanel.gap};
|
|
@@ -19,6 +19,12 @@ const elementStyles = `
|
|
|
19
19
|
font: inherit;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
23
|
+
leaving the element on screen when a host hides it. */
|
|
24
|
+
:host([hidden]) {
|
|
25
|
+
display: none !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
[part="menu-shell"] {
|
|
23
29
|
position: relative;
|
|
24
30
|
display: inline-grid;
|
|
@@ -15,6 +15,12 @@ const elementStyles = `
|
|
|
15
15
|
font: inherit;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
19
|
+
leaving the element on screen when a host hides it. */
|
|
20
|
+
:host([hidden]) {
|
|
21
|
+
display: none !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
[part="breadcrumbs"] {
|
|
19
25
|
display: flex;
|
|
20
26
|
flex-wrap: wrap;
|
|
@@ -19,6 +19,12 @@ const elementStyles = `
|
|
|
19
19
|
font: inherit;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
23
|
+
leaving the element on screen when a host hides it. */
|
|
24
|
+
:host([hidden]) {
|
|
25
|
+
display: none !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
[part="list-shell"] {
|
|
23
29
|
border: 1px solid color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 84%, var(--boe-token-surface-surface, #ffffff) 16%);
|
|
24
30
|
border-radius: ${boePanel.radius};
|
|
@@ -23,6 +23,12 @@ const elementStyles = `
|
|
|
23
23
|
min-width: 0;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
27
|
+
leaving the element on screen when a host hides it. */
|
|
28
|
+
:host([hidden]) {
|
|
29
|
+
display: none !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
26
32
|
[part="table-shell"] {
|
|
27
33
|
border: 1px solid color-mix(in srgb, var(--boe-token-stroke-stroke, #e8e8e8) 84%, var(--boe-token-surface-surface, #ffffff) 16%);
|
|
28
34
|
border-radius: ${boePanel.radius};
|
|
@@ -13,6 +13,12 @@ const elementStyles = `
|
|
|
13
13
|
font: inherit;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
17
|
+
leaving the element on screen when a host hides it. */
|
|
18
|
+
:host([hidden]) {
|
|
19
|
+
display: none !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
[part="toolbar"] {
|
|
17
23
|
display: flex;
|
|
18
24
|
flex-wrap: wrap;
|
|
@@ -30,6 +30,12 @@ const elementStyles = `
|
|
|
30
30
|
font: inherit;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
34
|
+
leaving the element on screen when a host hides it. */
|
|
35
|
+
:host([hidden]) {
|
|
36
|
+
display: none !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
33
39
|
section {
|
|
34
40
|
display: grid;
|
|
35
41
|
gap: ${boePanel.gap};
|
|
@@ -31,6 +31,12 @@ const elementStyles = `
|
|
|
31
31
|
font: inherit;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
35
|
+
leaving the element on screen when a host hides it. */
|
|
36
|
+
:host([hidden]) {
|
|
37
|
+
display: none !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
34
40
|
section {
|
|
35
41
|
display: grid;
|
|
36
42
|
gap: ${boePanel.gap};
|
|
@@ -25,6 +25,12 @@ const elementStyles = `
|
|
|
25
25
|
font: inherit;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/* The host's own display would otherwise beat the UA rule for [hidden],
|
|
29
|
+
leaving the element on screen when a host hides it. */
|
|
30
|
+
:host([hidden]) {
|
|
31
|
+
display: none !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
28
34
|
[part="sidebar"] {
|
|
29
35
|
display: grid;
|
|
30
36
|
gap: ${boePanel.gap};
|
|
@@ -14,6 +14,13 @@ export declare class ContentUploader extends BaseElement {
|
|
|
14
14
|
private summaryEl;
|
|
15
15
|
private queueSignature;
|
|
16
16
|
private updateScheduled;
|
|
17
|
+
private closeEl;
|
|
18
|
+
private cancelEl;
|
|
19
|
+
private uploadEl;
|
|
20
|
+
private clearCompletedEl;
|
|
21
|
+
private illustrationEl;
|
|
22
|
+
private illustrationSignature;
|
|
23
|
+
private readonly handleDesignSystemChange;
|
|
17
24
|
get folderId(): string | null;
|
|
18
25
|
set folderId(value: string | null);
|
|
19
26
|
get token(): string | null;
|
|
@@ -50,8 +57,24 @@ export declare class ContentUploader extends BaseElement {
|
|
|
50
57
|
*/
|
|
51
58
|
get directories(): boolean;
|
|
52
59
|
set directories(value: boolean);
|
|
60
|
+
/**
|
|
61
|
+
* Show the Close control. On by default, matching box-ui-elements; a host
|
|
62
|
+
* that owns its own dismissal (a drawer with its own close button) sets
|
|
63
|
+
* `closable="false"` rather than styling ours away.
|
|
64
|
+
*/
|
|
65
|
+
get closable(): boolean;
|
|
66
|
+
set closable(value: boolean);
|
|
67
|
+
/**
|
|
68
|
+
* Headline of the empty state. Defaults to the box-ui-elements wording, and
|
|
69
|
+
* names folders too when they can be uploaded, so the invitation matches what
|
|
70
|
+
* the zone will actually accept.
|
|
71
|
+
*/
|
|
53
72
|
get dropLabel(): string;
|
|
54
73
|
set dropLabel(value: string);
|
|
74
|
+
/**
|
|
75
|
+
* Optional supporting line under the headline. Empty by default: the browse
|
|
76
|
+
* controls say what to do, and a sentence repeating them is noise.
|
|
77
|
+
*/
|
|
55
78
|
get dropMessage(): string;
|
|
56
79
|
set dropMessage(value: string);
|
|
57
80
|
get transport(): UploadTransport | null;
|
|
@@ -98,7 +121,17 @@ export declare class ContentUploader extends BaseElement {
|
|
|
98
121
|
private scheduleUpdate;
|
|
99
122
|
private teardownController;
|
|
100
123
|
protected renderTemplate(): void;
|
|
124
|
+
/**
|
|
125
|
+
* Paints the empty-state art from the active design system, so a host that
|
|
126
|
+
* registers its own system gets its own illustration without touching this.
|
|
127
|
+
*
|
|
128
|
+
* Resolved during update rather than at template time: a host may register or
|
|
129
|
+
* switch design systems after the element upgrades, and the art has to follow.
|
|
130
|
+
*/
|
|
131
|
+
private renderIllustration;
|
|
101
132
|
protected setupListeners(): void;
|
|
133
|
+
/** Cancel every item still queued or in flight. Settled items are untouched. */
|
|
134
|
+
cancelAll(): void;
|
|
102
135
|
private rebuildQueue;
|
|
103
136
|
private patchQueueProgress;
|
|
104
137
|
protected update(): void;
|