@crewlethq/ui 0.122.0 → 0.124.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/README.md +45 -2
- package/dist/AvatarPicker/index.js +2 -2
- package/dist/Callout/Callout.d.ts +13 -1
- package/dist/Callout/index.d.ts +1 -1
- package/dist/Callout/index.js +1 -1
- package/dist/{Callout-G3N3IE6M.css → Callout-WLZKAFPT.css} +23 -0
- package/dist/Charts/StackedRing.d.ts +40 -0
- package/dist/Charts/TimeSeries.d.ts +8 -1
- package/dist/Charts/index.d.ts +2 -0
- package/dist/Charts/index.js +1 -1
- package/dist/{Charts-UJKADWXE.css → Charts-4VQ7T3GB.css} +85 -0
- package/dist/DataGrid/DataGrid.d.ts +11 -1
- package/dist/DataGrid/index.d.ts +1 -1
- package/dist/DataGrid/index.js +1 -1
- package/dist/{DataGrid-7KUUYSHA.css → DataGrid-KAFVH4B3.css} +3 -1
- package/dist/FindingList/FindingList.d.ts +8 -1
- package/dist/FindingList/index.js +1 -1
- package/dist/{FindingList-MPLA2ZTO.css → FindingList-5P2W5MIB.css} +24 -0
- package/dist/FollowBanner/index.js +2 -2
- package/dist/Fullscreen/FullscreenToggle.d.ts +21 -0
- package/dist/Fullscreen/index.d.ts +2 -0
- package/dist/Fullscreen/index.js +11 -1
- package/dist/GraphCanvas/GraphCanvas.d.ts +97 -16
- package/dist/GraphCanvas/index.d.ts +4 -4
- package/dist/GraphCanvas/index.js +3 -3
- package/dist/GraphCanvas/layout.d.ts +31 -1
- package/dist/GraphCanvas/walk.d.ts +5 -4
- package/dist/GraphCanvas-UZPZRP6S.css +793 -0
- package/dist/IconTile/IconTile.d.ts +26 -18
- package/dist/IconTile/index.d.ts +1 -1
- package/dist/IconTile/index.js +1 -1
- package/dist/IconTile-6OSCIHYU.css +112 -0
- package/dist/LinkInterstitial/index.js +2 -2
- package/dist/List/index.js +1 -1
- package/dist/{List-BNA4XGMH.css → List-DG77FXA6.css} +15 -0
- package/dist/OpenInAppCard/index.js +2 -2
- package/dist/OrgTable/index.js +3 -3
- package/dist/ReviewList/index.js +2 -2
- package/dist/RichEditor/index.js +2 -2
- package/dist/RoomRow/index.js +2 -2
- package/dist/SandboxedFrame/index.js +2 -2
- package/dist/SetupWizard/index.js +2 -2
- package/dist/ShareDialog/index.js +2 -2
- package/dist/TimeRangePicker/index.js +2 -2
- package/dist/TreeGrid/index.js +2 -2
- package/dist/{chunk-W5XCNEZC.js → chunk-3JLG6KRU.js} +23 -2
- package/dist/{chunk-NHHVN23D.js → chunk-45OOFAL6.js} +1 -1
- package/dist/{chunk-ZKGAEXLI.js → chunk-4EKHHHOQ.js} +1 -1
- package/dist/{chunk-AGVGX52B.js → chunk-7XYU5PSQ.js} +1 -1
- package/dist/{chunk-6KPHU4EB.js → chunk-DSBKVP73.js} +490 -122
- package/dist/{chunk-MDD6K5M4.js → chunk-EWJOBD25.js} +1 -1
- package/dist/{chunk-VY37HWFV.js → chunk-GAQU5V5R.js} +1 -1
- package/dist/{chunk-MVXQ74TB.js → chunk-I4V4GUVM.js} +1 -1
- package/dist/{chunk-XZQRJVOK.js → chunk-IMNCBQVO.js} +1 -1
- package/dist/chunk-J2GRBRGK.js +64 -0
- package/dist/{chunk-GUTZISXY.js → chunk-JXE4SCYV.js} +1 -1
- package/dist/{chunk-X5YI6QLW.js → chunk-NOKZULW3.js} +1 -1
- package/dist/{chunk-ZOMTCEHR.js → chunk-OFNJE4BN.js} +6 -1
- package/dist/{chunk-BPCY7ZID.js → chunk-RCQLXOGS.js} +9 -2
- package/dist/{chunk-75O3HCCD.js → chunk-T4TKY4VZ.js} +1 -1
- package/dist/{chunk-ENYHABQJ.js → chunk-VB7KAQBN.js} +1 -1
- package/dist/chunk-VRVNLJUA.js +46 -0
- package/dist/{chunk-6UVBOA4M.js → chunk-YKLYMQ6J.js} +1 -1
- package/dist/{chunk-MNTN5ESE.js → chunk-ZY5322MJ.js} +77 -3
- package/dist/generated/index.js +60 -60
- package/dist/index.js +60 -60
- package/dist/styles.css +766 -133
- package/package.json +3 -3
- package/dist/GraphCanvas-RSBMO2AF.css +0 -388
- package/dist/IconTile-G52XZVR4.css +0 -33
- package/dist/chunk-3LI4TRUR.js +0 -22
- package/dist/chunk-NEPNJMTD.js +0 -52
- package/dist/{chunk-2DZV4PHK.js → chunk-WLL3PFI3.js} +1 -1
- package/dist/{chunk-JWUIGUIS.js → chunk-YCT7LRYR.js} +1 -1
|
@@ -1,29 +1,37 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import type { NodeHue } from '../utils/nodeHue.js';
|
|
3
|
+
/** What needs a person on the thing a tile pictures: a ring in the tone and a badge with a glyph. */
|
|
4
|
+
export interface IconTileStatus {
|
|
5
|
+
tone: 'danger' | 'warning' | 'info';
|
|
6
|
+
/** Drawn in the badge in place of the tone's own glyph. */
|
|
7
|
+
glyph?: ReactNode;
|
|
8
|
+
}
|
|
3
9
|
export interface IconTileProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
4
|
-
/** The glyph
|
|
10
|
+
/** The glyph. */
|
|
5
11
|
children: ReactNode;
|
|
6
|
-
/**
|
|
12
|
+
/** One of the six node hues, each with its measured fill and ink. Left out, the tone decides. */
|
|
7
13
|
hue?: NodeHue | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* `neutral` draws the tile on the raised ground in the secondary ink, for a
|
|
10
|
-
* place or a record rather than a kind of thing: colour carries state, never
|
|
11
|
-
* identity, so a link to a task is not tinted. Ignored when `hue` is given.
|
|
12
|
-
*/
|
|
14
|
+
/** With no hue: the brand accent's soft fill, or the neutral raised ground for a place or a record. */
|
|
13
15
|
tone?: 'accent' | 'neutral' | undefined;
|
|
14
|
-
/** One of the row heights: `sm` 28px, `md` 36px, `lg` 48px. */
|
|
15
16
|
size?: 'sm' | 'md' | 'lg' | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* `disc` is a round tile inside a hairline: one entry of a catalogue (a
|
|
19
|
+
* service, a database, a domain), where the square is a kind of thing.
|
|
20
|
+
*/
|
|
21
|
+
shape?: 'square' | 'disc' | undefined;
|
|
22
|
+
/** A small mark on the lower corner, such as the vendor the entry lives at. Decorative. */
|
|
23
|
+
mark?: ReactNode;
|
|
24
|
+
/** A ring and a badge when the entry needs a person. The word is said beside the tile, never here. */
|
|
25
|
+
status?: IconTileStatus | undefined;
|
|
26
|
+
/** Not confirmed yet: a dashed edge. */
|
|
27
|
+
dashed?: boolean | undefined;
|
|
16
28
|
}
|
|
17
29
|
/**
|
|
18
|
-
* A glyph on a tinted
|
|
19
|
-
* told apart by before its name is read. The widget tray draws one per widget
|
|
20
|
-
* it offers.
|
|
21
|
-
*
|
|
22
|
-
* A HUE PER KIND, NOT PER STATE. The tint is decorative and picked for the
|
|
23
|
-
* thing it marks (`NodeHue`), so a tile in rose says nothing is wrong; a state
|
|
24
|
-
* is a `StatusDot` or a `Tag`.
|
|
30
|
+
* A glyph on a tinted tile, for catalogue items and the entries of one.
|
|
25
31
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
32
|
+
* DECORATIVE. The tile is hidden from assistive technology whatever it
|
|
33
|
+
* carries: the name, the vendor and the state it pictures are said in words
|
|
34
|
+
* beside it, so a status here is always a second signal and never the only
|
|
35
|
+
* one.
|
|
28
36
|
*/
|
|
29
|
-
export declare function IconTile({ children, hue, tone, size, className, ...rest }: IconTileProps): import("react").JSX.Element;
|
|
37
|
+
export declare function IconTile({ children, hue, tone, size, shape, mark, status, dashed, className, ...rest }: IconTileProps): import("react").JSX.Element;
|
package/dist/IconTile/index.d.ts
CHANGED
package/dist/IconTile/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { IconTile } from '../chunk-
|
|
1
|
+
export { IconTile } from '../chunk-VRVNLJUA.js';
|
|
2
2
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* IconTile: a glyph on a tinted square. Each hue pairs its fill and its ink
|
|
3
|
+
* from one measured family (`--color-node-*`); left out, the brand accent's
|
|
4
|
+
* soft fill and ink. No edge: the tile sits inside a card that has one.
|
|
5
|
+
*/
|
|
6
|
+
.crewlet-icon-tile {
|
|
7
|
+
--crewlet-icon-tile-fill: var(--color-brand-accent-soft);
|
|
8
|
+
--crewlet-icon-tile-ink: var(--color-brand-accent-ink);
|
|
9
|
+
--crewlet-icon-tile-size: var(--size-row-md);
|
|
10
|
+
|
|
11
|
+
--crewlet-icon-tile-line: var(--color-border-default);
|
|
12
|
+
|
|
13
|
+
position: relative;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
flex: none;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
width: var(--crewlet-icon-tile-size);
|
|
19
|
+
height: var(--crewlet-icon-tile-size);
|
|
20
|
+
border-radius: var(--radius-md);
|
|
21
|
+
background: var(--crewlet-icon-tile-fill);
|
|
22
|
+
color: var(--crewlet-icon-tile-ink);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.crewlet-icon-tile--sm { --crewlet-icon-tile-size: var(--size-row-sm); }
|
|
26
|
+
.crewlet-icon-tile--lg { --crewlet-icon-tile-size: var(--size-row-lg); border-radius: var(--radius-lg); }
|
|
27
|
+
|
|
28
|
+
/* A place or a record rather than a kind: the raised ground, the secondary ink. */
|
|
29
|
+
.crewlet-icon-tile--neutral { --crewlet-icon-tile-fill: var(--color-surface-elevated); --crewlet-icon-tile-ink: var(--color-text-secondary); }
|
|
30
|
+
|
|
31
|
+
.crewlet-icon-tile--purple { --crewlet-icon-tile-fill: var(--color-node-purple-fill); --crewlet-icon-tile-ink: var(--color-node-purple-ink); --crewlet-icon-tile-line: var(--color-node-purple-line); }
|
|
32
|
+
.crewlet-icon-tile--cyan { --crewlet-icon-tile-fill: var(--color-node-cyan-fill); --crewlet-icon-tile-ink: var(--color-node-cyan-ink); --crewlet-icon-tile-line: var(--color-node-cyan-line); }
|
|
33
|
+
.crewlet-icon-tile--green { --crewlet-icon-tile-fill: var(--color-node-green-fill); --crewlet-icon-tile-ink: var(--color-node-green-ink); --crewlet-icon-tile-line: var(--color-node-green-line); }
|
|
34
|
+
.crewlet-icon-tile--amber { --crewlet-icon-tile-fill: var(--color-node-amber-fill); --crewlet-icon-tile-ink: var(--color-node-amber-ink); --crewlet-icon-tile-line: var(--color-node-amber-line); }
|
|
35
|
+
.crewlet-icon-tile--rose { --crewlet-icon-tile-fill: var(--color-node-rose-fill); --crewlet-icon-tile-ink: var(--color-node-rose-ink); --crewlet-icon-tile-line: var(--color-node-rose-line); }
|
|
36
|
+
.crewlet-icon-tile--blue { --crewlet-icon-tile-fill: var(--color-node-blue-fill); --crewlet-icon-tile-ink: var(--color-node-blue-ink); --crewlet-icon-tile-line: var(--color-node-blue-line); }
|
|
37
|
+
|
|
38
|
+
/*
|
|
39
|
+
* A DISC: one entry of a catalogue. Round, inside a hairline in its hue, on
|
|
40
|
+
* the sheet under its tint so the tint reads the same on any ground.
|
|
41
|
+
*/
|
|
42
|
+
.crewlet-icon-tile--disc,
|
|
43
|
+
.crewlet-icon-tile--disc.crewlet-icon-tile--lg {
|
|
44
|
+
border-radius: var(--radius-circle);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.crewlet-icon-tile--disc {
|
|
48
|
+
background:
|
|
49
|
+
linear-gradient(var(--crewlet-icon-tile-fill), var(--crewlet-icon-tile-fill)), var(--color-surface-background);
|
|
50
|
+
box-shadow: inset 0 0 0 1.5px var(--crewlet-icon-tile-line);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Not confirmed yet: the edge is dashed. */
|
|
54
|
+
.crewlet-icon-tile[data-dashed] {
|
|
55
|
+
box-shadow: none;
|
|
56
|
+
outline: 1.5px dashed var(--color-border-strong);
|
|
57
|
+
outline-offset: -1.5px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/*
|
|
61
|
+
* NEEDS A PERSON: a ring in the tone inside a soft one, and a badge with a
|
|
62
|
+
* glyph, so the tone is never colour alone. The word is beside the tile.
|
|
63
|
+
*/
|
|
64
|
+
.crewlet-icon-tile[data-status='danger'] {
|
|
65
|
+
--crewlet-icon-tile-status: var(--color-feedback-danger);
|
|
66
|
+
--crewlet-icon-tile-status-soft: var(--color-feedback-danger-soft);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.crewlet-icon-tile[data-status='warning'] {
|
|
70
|
+
--crewlet-icon-tile-status: var(--color-feedback-warning);
|
|
71
|
+
--crewlet-icon-tile-status-soft: var(--color-feedback-warning-soft);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.crewlet-icon-tile[data-status='info'] {
|
|
75
|
+
--crewlet-icon-tile-status: var(--color-feedback-info);
|
|
76
|
+
--crewlet-icon-tile-status-soft: var(--color-feedback-info-soft);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.crewlet-icon-tile[data-status] {
|
|
80
|
+
box-shadow:
|
|
81
|
+
inset 0 0 0 2px var(--crewlet-icon-tile-status),
|
|
82
|
+
0 0 0 3px var(--crewlet-icon-tile-status-soft);
|
|
83
|
+
outline: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.crewlet-icon-tile__mark,
|
|
87
|
+
.crewlet-icon-tile__badge {
|
|
88
|
+
position: absolute;
|
|
89
|
+
display: grid;
|
|
90
|
+
place-items: center;
|
|
91
|
+
width: calc(var(--crewlet-icon-tile-size) * 0.42);
|
|
92
|
+
height: calc(var(--crewlet-icon-tile-size) * 0.42);
|
|
93
|
+
border-radius: var(--radius-circle);
|
|
94
|
+
font-size: calc(var(--crewlet-icon-tile-size) * 0.26);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* A vendor's mark on the lower corner, cut out of the tile by the sheet's colour. */
|
|
98
|
+
.crewlet-icon-tile__mark {
|
|
99
|
+
right: calc(var(--crewlet-icon-tile-size) * -0.1);
|
|
100
|
+
bottom: calc(var(--crewlet-icon-tile-size) * -0.08);
|
|
101
|
+
background: var(--color-surface-background);
|
|
102
|
+
box-shadow: 0 0 0 1px var(--color-border-default);
|
|
103
|
+
color: var(--color-text-primary);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.crewlet-icon-tile__badge {
|
|
107
|
+
top: calc(var(--crewlet-icon-tile-size) * -0.1);
|
|
108
|
+
right: calc(var(--crewlet-icon-tile-size) * -0.12);
|
|
109
|
+
background: var(--crewlet-icon-tile-status);
|
|
110
|
+
box-shadow: 0 0 0 1.5px var(--color-surface-background);
|
|
111
|
+
color: var(--color-surface-background);
|
|
112
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { LinkInterstitial, openExternal } from '../chunk-
|
|
1
|
+
export { LinkInterstitial, openExternal } from '../chunk-IMNCBQVO.js';
|
|
2
2
|
import '../chunk-OG4GX2TB.js';
|
|
3
3
|
import '../chunk-PPGDH32L.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-RCQLXOGS.js';
|
|
5
5
|
import '../chunk-M2M6ZD7P.js';
|
|
6
6
|
import '../chunk-XSPCITPN.js';
|
|
7
7
|
import '../chunk-X5YI6E5X.js';
|
package/dist/List/index.js
CHANGED
|
@@ -122,6 +122,21 @@
|
|
|
122
122
|
list-style: revert;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
/*
|
|
126
|
+
* A BULLETED LIST'S MARKER IS ITS OWN, not its ancestors'. `revert` hands the
|
|
127
|
+
* choice to the browser, which draws a hollow circle for any list inside
|
|
128
|
+
* another, one whose rows carry no marker at all included: a card's list of
|
|
129
|
+
* rows turned every bulleted list in it hollow. The disc is stated, and only
|
|
130
|
+
* a bulleted list inside a bulleted one steps to the circle.
|
|
131
|
+
*/
|
|
132
|
+
.crewlet-list--bulleted {
|
|
133
|
+
list-style-type: disc;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.crewlet-list--bulleted .crewlet-list--bulleted {
|
|
137
|
+
list-style-type: circle;
|
|
138
|
+
}
|
|
139
|
+
|
|
125
140
|
.crewlet-list--bulleted .crewlet-list__item,
|
|
126
141
|
.crewlet-list--numbered .crewlet-list__item {
|
|
127
142
|
display: list-item;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-
|
|
1
|
+
export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-T4TKY4VZ.js';
|
|
2
2
|
import '../chunk-KOJPDCGQ.js';
|
|
3
3
|
import '../chunk-KBZO4B33.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-VRVNLJUA.js';
|
|
5
5
|
import '../chunk-TMHG4576.js';
|
|
6
6
|
import '../chunk-7L75YB57.js';
|
|
7
7
|
import '../chunk-SJ3EUCFD.js';
|
package/dist/OrgTable/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { OrgTable, OrgTableActions, OrgTableAdd, OrgTableName } from '../chunk-EWJOBD25.js';
|
|
2
|
+
import '../chunk-NOKZULW3.js';
|
|
3
3
|
import '../chunk-DEVO45TG.js';
|
|
4
4
|
import '../chunk-MY374UUD.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-OFNJE4BN.js';
|
|
6
6
|
import '../chunk-X4HBZSXA.js';
|
|
7
7
|
import '../chunk-WFAJYBLX.js';
|
|
8
8
|
import '../chunk-WSIJDWUG.js';
|
package/dist/ReviewList/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ReviewList } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ReviewList } from '../chunk-7XYU5PSQ.js';
|
|
2
|
+
import '../chunk-VRVNLJUA.js';
|
|
3
3
|
import '../chunk-SJ3EUCFD.js';
|
|
4
4
|
import '../chunk-QRE6JCHS.js';
|
|
5
5
|
import '../chunk-PQADV6P6.js';
|
package/dist/RichEditor/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { RichEditor, preloadRichEditor } from '../chunk-
|
|
1
|
+
export { RichEditor, preloadRichEditor } from '../chunk-VB7KAQBN.js';
|
|
2
2
|
export { RICH_EDITOR_LABELS, richEditorLabels } from '../chunk-2DMTW2Y3.js';
|
|
3
3
|
import '../chunk-KOJPDCGQ.js';
|
|
4
4
|
import '../chunk-KBZO4B33.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-RCQLXOGS.js';
|
|
6
6
|
import '../chunk-WFAJYBLX.js';
|
|
7
7
|
import '../chunk-M2M6ZD7P.js';
|
|
8
8
|
import '../chunk-XSPCITPN.js';
|
package/dist/RoomRow/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from '../chunk-
|
|
1
|
+
export { FRAME_HELLO_TIMEOUT_MS, FRAME_LOAD_GRACE_MS, SandboxedFrame, SandboxedFrameNotice, SandboxedFramePlaceholder } from '../chunk-4EKHHHOQ.js';
|
|
2
2
|
import '../chunk-F6V2PTN6.js';
|
|
3
3
|
import '../chunk-ZXXDZJQN.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-RCQLXOGS.js';
|
|
5
5
|
import '../chunk-WFAJYBLX.js';
|
|
6
6
|
import '../chunk-M2M6ZD7P.js';
|
|
7
7
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { SetupWizard } from '../chunk-
|
|
2
|
-
import '../chunk-FPDIHEM4.js';
|
|
1
|
+
export { SetupWizard } from '../chunk-WLL3PFI3.js';
|
|
3
2
|
import '../chunk-EHD4CEHK.js';
|
|
3
|
+
import '../chunk-FPDIHEM4.js';
|
|
4
4
|
import '../chunk-QRE6JCHS.js';
|
|
5
5
|
import '../chunk-D5O64CVE.js';
|
|
6
6
|
import '../chunk-SK4BIFTG.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-
|
|
1
|
+
export { ARTIFACT_ROLES, SHAREABLE_ROLES, ShareDialog, roleAtLeast } from '../chunk-JXE4SCYV.js';
|
|
2
2
|
import '../chunk-AYVRS4LD.js';
|
|
3
3
|
import '../chunk-OG4GX2TB.js';
|
|
4
4
|
import '../chunk-KW7T23RT.js';
|
|
5
5
|
import '../chunk-AVK7RRQ4.js';
|
|
6
6
|
import '../chunk-STJ7QBC3.js';
|
|
7
7
|
import '../chunk-DTIW4CHZ.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-RCQLXOGS.js';
|
|
9
9
|
import '../chunk-HF5L56YQ.js';
|
|
10
10
|
import '../chunk-5SMYKL3D.js';
|
|
11
11
|
import '../chunk-XZY6S3UC.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-
|
|
1
|
+
export { TIME_RANGE_CUSTOM, TIME_RANGE_PICKER_LABELS, TimeRangePicker, timeRangeFieldKey, timeRangeProblem } from '../chunk-I4V4GUVM.js';
|
|
2
2
|
import '../chunk-OG4GX2TB.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-RCQLXOGS.js';
|
|
4
4
|
import '../chunk-KWXVG3CH.js';
|
|
5
5
|
import '../chunk-4PKMM3EZ.js';
|
|
6
6
|
import '../chunk-GIYIKUJE.js';
|
package/dist/TreeGrid/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { TreeGrid } from '../chunk-
|
|
1
|
+
export { TreeGrid } from '../chunk-NOKZULW3.js';
|
|
2
2
|
import '../chunk-MY374UUD.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-OFNJE4BN.js';
|
|
4
4
|
import '../chunk-X4HBZSXA.js';
|
|
5
5
|
import '../chunk-WFAJYBLX.js';
|
|
6
6
|
import '../chunk-WSIJDWUG.js';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { IconButton } from './chunk-X5YI6E5X.js';
|
|
2
|
+
import { MinimizeGlyph, MaximizeGlyph } from '@crewlethq/icons/glyphs';
|
|
1
3
|
import { useState, useEffect, useCallback } from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
5
|
|
|
3
|
-
// src/Fullscreen/useFullscreen.ts
|
|
4
6
|
function fullscreenSupported() {
|
|
5
7
|
return typeof document !== "undefined" && document.fullscreenEnabled === true && typeof Element.prototype.requestFullscreen === "function";
|
|
6
8
|
}
|
|
@@ -32,6 +34,25 @@ function useFullscreen(ref) {
|
|
|
32
34
|
}, [enter, exit, ref]);
|
|
33
35
|
return { supported, active, enter, exit, toggle };
|
|
34
36
|
}
|
|
37
|
+
var FULLSCREEN_TOGGLE_LABELS = {
|
|
38
|
+
enter: "Fullscreen",
|
|
39
|
+
leave: "Leave fullscreen"
|
|
40
|
+
};
|
|
41
|
+
function FullscreenToggle({ target, size = "sm", labels, className }) {
|
|
42
|
+
const fullscreen = useFullscreen(target);
|
|
43
|
+
if (!fullscreen.supported) return null;
|
|
44
|
+
const text = { ...FULLSCREEN_TOGGLE_LABELS, ...labels };
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
46
|
+
IconButton,
|
|
47
|
+
{
|
|
48
|
+
label: fullscreen.active ? text.leave : text.enter,
|
|
49
|
+
icon: fullscreen.active ? /* @__PURE__ */ jsx(MinimizeGlyph, {}) : /* @__PURE__ */ jsx(MaximizeGlyph, {}),
|
|
50
|
+
size,
|
|
51
|
+
className,
|
|
52
|
+
onClick: fullscreen.toggle
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
35
56
|
var IDLE_AFTER_MS = 2500;
|
|
36
57
|
function useIdle(ref, enabled, timeout = IDLE_AFTER_MS) {
|
|
37
58
|
const [idle, setIdle] = useState(false);
|
|
@@ -71,4 +92,4 @@ function useIdle(ref, enabled, timeout = IDLE_AFTER_MS) {
|
|
|
71
92
|
return enabled && idle;
|
|
72
93
|
}
|
|
73
94
|
|
|
74
|
-
export { IDLE_AFTER_MS, useFullscreen, useIdle };
|
|
95
|
+
export { FULLSCREEN_TOGGLE_LABELS, FullscreenToggle, IDLE_AFTER_MS, useFullscreen, useIdle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { frameThemeMessage, readFrameHello, frameOriginMatches, negotiateBridge, FRAME_MESSAGE, portTargetOrigin, checkFrameSandbox, httpOrigin, isFrameNonce, frameFragment, readOpenLink, externalUrl, isFocusExit } from './chunk-F6V2PTN6.js';
|
|
2
|
-
import { Callout } from './chunk-
|
|
2
|
+
import { Callout } from './chunk-RCQLXOGS.js';
|
|
3
3
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
4
4
|
import { Button } from './chunk-M2M6ZD7P.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|