@crewlethq/ui 0.37.0 → 0.38.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 +58 -0
- package/dist/Accordion/index.js +1 -1
- package/dist/AgentHandoffPanel/index.js +5 -5
- package/dist/AppShell/index.d.ts +1 -0
- package/dist/AppShell/index.js +5 -3
- package/dist/{AppShell-JTSEOA57.css → AppShell-NDU4XMGF.css} +51 -6
- package/dist/ArrangeList/index.js +4 -4
- package/dist/ArtifactBar/index.js +9 -7
- package/dist/ArtifactCard/index.js +2 -2
- package/dist/ArtifactCover/index.js +3 -3
- package/dist/ArtifactMakeRow/ArtifactMakeRow.d.ts +3 -1
- package/dist/ArtifactMakeRow/index.d.ts +1 -0
- package/dist/ArtifactMakeRow/index.js +2 -1
- package/dist/{ArtifactMakeRow-XBA2MPSY.css → ArtifactMakeRow-6UX2LTF7.css} +49 -6
- package/dist/AuthLayout/index.js +2 -2
- package/dist/AvatarPicker/index.js +8 -6
- package/dist/Canvas/index.js +4 -3
- package/dist/CanvasBoard/index.js +7 -6
- package/dist/CanvasToolbar/index.js +6 -5
- package/dist/Card/index.js +1 -1
- package/dist/{Card-QOVASQNU.css → Card-G2ZGT5Z6.css} +43 -0
- package/dist/ChangeMark/index.js +4 -3
- package/dist/Checkbox/index.js +3 -3
- package/dist/ChoiceList/index.d.ts +1 -0
- package/dist/ChoiceList/index.js +2 -1
- package/dist/{ChoiceList-EA2W6MOS.css → ChoiceList-KFYFAECP.css} +26 -4
- package/dist/Combobox/index.d.ts +1 -0
- package/dist/Combobox/index.js +6 -5
- package/dist/{Combobox-4FUVYIE7.css → Combobox-YDONYDTM.css} +2 -1
- package/dist/CommandPalette/index.d.ts +1 -0
- package/dist/CommandPalette/index.js +7 -6
- package/dist/{CommandPalette-7CFGVBND.css → CommandPalette-TOZYLWLE.css} +5 -1
- package/dist/CommentThread/index.js +5 -5
- package/dist/Composer/index.js +3 -3
- package/dist/{Composer-PXITWNEK.css → Composer-TXULCPPV.css} +1 -1
- package/dist/ConfirmField/index.js +3 -3
- package/dist/DataTable/index.js +7 -7
- package/dist/DataView/index.js +12 -12
- package/dist/DatasetSource/index.d.ts +1 -0
- package/dist/DatasetSource/index.js +3 -2
- package/dist/{DatasetSource-SMGX4PS5.css → DatasetSource-FFKTD3ZU.css} +16 -1
- package/dist/DateTimePicker/index.js +4 -4
- package/dist/{DateTimePicker-2IVTKFV2.css → DateTimePicker-3A7JIIVL.css} +3 -3
- package/dist/DescriptionList/DescriptionList.d.ts +12 -1
- package/dist/DescriptionList/index.js +1 -1
- package/dist/{DescriptionList-IXMRCSMK.css → DescriptionList-DEZISDLQ.css} +8 -1
- package/dist/Disclosure/index.js +1 -1
- package/dist/{Disclosure-VKBJJIZ7.css → Disclosure-P4FH3C35.css} +28 -2
- package/dist/DocTabsEditor/index.js +6 -6
- package/dist/Document/index.js +2 -2
- package/dist/{Document-YFWTWXJP.css → Document-TZ2NBLOR.css} +2 -2
- package/dist/{Editor-HORWMUM3.js → Editor-QV4JP242.js} +6 -6
- package/dist/FactList/index.js +4 -3
- package/dist/FollowBanner/index.js +3 -2
- package/dist/HitArea/hitArea.d.ts +7 -0
- package/dist/HitArea/index.d.ts +2 -0
- package/dist/HitArea/index.js +2 -0
- package/dist/HitArea-QUOS6ZDJ.css +35 -0
- package/dist/HuePicker/index.js +4 -3
- package/dist/Input/index.js +2 -2
- package/dist/{Input-ABGOFENS.css → Input-OQZBCRX5.css} +9 -4
- package/dist/Layer/index.js +2 -1
- package/dist/LinkInterstitial/index.js +4 -3
- package/dist/ListInput/index.js +5 -5
- package/dist/Listbox/index.js +3 -2
- package/dist/{Listbox-6WJNJQVQ.css → Listbox-NQV6E3FS.css} +3 -0
- package/dist/LivePreview/index.js +1 -1
- package/dist/{LivePreview-BROGKR4N.css → LivePreview-KQEDMQCY.css} +13 -0
- package/dist/MarkdownEditor/index.js +8 -6
- package/dist/Menu/index.js +3 -2
- package/dist/MergeConflicts/index.js +5 -4
- package/dist/Modal/index.js +3 -2
- package/dist/OrgTable/index.js +4 -3
- package/dist/Popover/index.js +3 -2
- package/dist/PresenterView/index.js +4 -3
- package/dist/PricingCard/index.js +2 -2
- package/dist/PrincipalPicker/index.js +7 -6
- package/dist/RichEditor/index.js +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -0
- package/dist/SegmentedControl/index.js +4 -3
- package/dist/{SegmentedControl-FLI45IOW.css → SegmentedControl-B7XCUOML.css} +9 -2
- package/dist/Select/index.d.ts +1 -0
- package/dist/Select/index.js +5 -4
- package/dist/{Select-W3CHTZXP.css → Select-F526HLNR.css} +5 -4
- package/dist/ShareDialog/index.js +7 -6
- package/dist/SheetColumnEditor/index.js +12 -11
- package/dist/SheetGrid/index.js +9 -8
- package/dist/{SheetGrid-YRDXTIIZ.css → SheetGrid-XK7T7M34.css} +9 -4
- package/dist/Shortcut/index.js +3 -2
- package/dist/SidebarNav/index.d.ts +1 -0
- package/dist/SidebarNav/index.js +2 -1
- package/dist/{SidebarNav-KF66MLOM.css → SidebarNav-7SGUZYKK.css} +21 -2
- package/dist/SlideCompare/index.js +4 -3
- package/dist/SlideFilmstrip/index.js +6 -5
- package/dist/SlideGrid/index.js +4 -3
- package/dist/SlideStage/index.js +3 -2
- package/dist/SourceEditor/index.js +2 -2
- package/dist/{SourceEditor-QAYE2JS6.css → SourceEditor-OKPWPFXK.css} +1 -1
- package/dist/StatGroup/StatGroup.d.ts +11 -7
- package/dist/StatGroup/index.js +1 -1
- package/dist/StatGroup-DOFHX5QJ.css +168 -0
- package/dist/Switcher/index.js +8 -8
- package/dist/TableCells/index.js +2 -2
- package/dist/Tabs/index.d.ts +1 -0
- package/dist/Tabs/index.js +2 -1
- package/dist/{Tabs-MMZXV5EF.css → Tabs-WIF7457H.css} +20 -3
- package/dist/Tag/index.js +1 -1
- package/dist/{Tag-SRGTK5KI.css → Tag-2DQOVE6W.css} +15 -5
- package/dist/TagsInput/index.js +6 -6
- package/dist/{TagsInput-7EGBBXHS.css → TagsInput-CLFHP6I2.css} +1 -1
- package/dist/ThemeGallery/index.js +4 -3
- package/dist/ThemeSwitcher/index.js +5 -4
- package/dist/TimeWindowPicker/index.js +8 -7
- package/dist/{TimeWindowPicker-DEFDV77Z.css → TimeWindowPicker-I3HXC74I.css} +3 -3
- package/dist/Toaster/index.js +2 -1
- package/dist/Toolbar/index.js +3 -2
- package/dist/Tooltip/index.js +3 -2
- package/dist/TreeCanvas/index.js +5 -4
- package/dist/TreeGrid/index.js +3 -2
- package/dist/VersionCompare/index.js +5 -4
- package/dist/{chunk-CCAXYHQS.js → chunk-2QZ2VPHR.js} +3 -1
- package/dist/chunk-2YTOOH3A.js +4 -0
- package/dist/{chunk-QWNVSR6G.js → chunk-3KYVFG47.js} +1 -1
- package/dist/{chunk-H5NOLRGH.js → chunk-3V5T5K5H.js} +1 -1
- package/dist/{chunk-BIQDJOJZ.js → chunk-3ZUINC7C.js} +2 -2
- package/dist/{chunk-K4VP6ZKE.js → chunk-4BJK7FE5.js} +1 -1
- package/dist/chunk-4ISUIS6F.js +3 -0
- package/dist/{chunk-FG4O64DV.js → chunk-4L2BWSHR.js} +5 -5
- package/dist/{chunk-PLTCDSTU.js → chunk-4LRAJXHL.js} +1 -1
- package/dist/{chunk-4ZJLOKSS.js → chunk-5BUOMF6N.js} +2 -2
- package/dist/{chunk-47JQAGRV.js → chunk-66X5WDKE.js} +1 -1
- package/dist/{chunk-66NGUD5S.js → chunk-6NNY5WBF.js} +8 -7
- package/dist/{chunk-5RT5O4JR.js → chunk-7CGPPAYR.js} +1 -1
- package/dist/{chunk-F73MC7EZ.js → chunk-7KHM2FZH.js} +2 -2
- package/dist/{chunk-VL6CUNSX.js → chunk-7SDUKCNW.js} +4 -1
- package/dist/{chunk-JML75PGJ.js → chunk-A23KDROH.js} +3 -3
- package/dist/{chunk-PJIPUEJ3.js → chunk-AXS6MBNH.js} +1 -1
- package/dist/{chunk-2FPENTCF.js → chunk-AYHIF6DH.js} +1 -1
- package/dist/{chunk-J6ON5SYE.js → chunk-B5J23C73.js} +1 -1
- package/dist/{chunk-7VAUGG6B.js → chunk-B5UHX5UC.js} +2 -2
- package/dist/{chunk-AOLCZDZ6.js → chunk-BH52LIY6.js} +5 -5
- package/dist/{chunk-WX2NIG4G.js → chunk-BJI3RFXG.js} +1 -1
- package/dist/{chunk-JXRI5YD2.js → chunk-BT5H2THK.js} +2 -1
- package/dist/{chunk-FHHYXZSP.js → chunk-C7OKDYBH.js} +2 -2
- package/dist/{chunk-JBUMD6DS.js → chunk-CFGGE3HO.js} +1 -1
- package/dist/{chunk-WYKWXRJ4.js → chunk-CQFQGAZI.js} +1 -1
- package/dist/{chunk-GMLAKNFY.js → chunk-D2OL3ZSS.js} +1 -1
- package/dist/{chunk-D7GNNID2.js → chunk-D3EJSLCL.js} +2 -2
- package/dist/{chunk-BUVCV3WI.js → chunk-D6FEHY5G.js} +3 -2
- package/dist/{chunk-4BYHAOHH.js → chunk-DAERKOOG.js} +3 -2
- package/dist/{chunk-PGZ2R3ON.js → chunk-DYB66CNM.js} +23 -7
- package/dist/{chunk-PPFX6GRK.js → chunk-EAEJ7CDM.js} +6 -3
- package/dist/{chunk-WZGYIVYH.js → chunk-EAQLI2SO.js} +4 -2
- package/dist/{chunk-GYBDPCRC.js → chunk-ECGGQX2H.js} +2 -2
- package/dist/{chunk-RH2NCQBZ.js → chunk-ETVEGR2Y.js} +2 -2
- package/dist/{chunk-SUXP4OBT.js → chunk-F4LPQA4E.js} +1 -1
- package/dist/{chunk-KYZMN6I6.js → chunk-FBW3Q2OY.js} +2 -2
- package/dist/{chunk-JQLS3MZB.js → chunk-FWBKMPNR.js} +1 -1
- package/dist/{chunk-OOWPSBIS.js → chunk-GMW4ZHST.js} +3 -3
- package/dist/{chunk-R25RGPUB.js → chunk-H5XTJ7GJ.js} +2 -3
- package/dist/{chunk-6ZJ3N7QI.js → chunk-I33UIUZD.js} +1 -1
- package/dist/{chunk-GRYZ5EP3.js → chunk-IPWU6ERC.js} +14 -3
- package/dist/{chunk-W3HYWD63.js → chunk-JZPK4IXR.js} +16 -9
- package/dist/{chunk-K3IJQNB7.js → chunk-KHJIEPZV.js} +3 -2
- package/dist/{chunk-GFV4LJHH.js → chunk-KYIAFNU7.js} +1 -1
- package/dist/{chunk-F2XSYBKH.js → chunk-MFS6F2P7.js} +4 -1
- package/dist/chunk-MICRGE3J.js +1 -0
- package/dist/{chunk-PGRPNDWM.js → chunk-NR4CPM4T.js} +1 -1
- package/dist/{chunk-5WDXPHEW.js → chunk-NRBAXRWE.js} +1 -1
- package/dist/{chunk-YSGLEHND.js → chunk-NUZHC6MM.js} +14 -2
- package/dist/{chunk-WGD2HX2A.js → chunk-OED6LUWE.js} +1 -1
- package/dist/{chunk-MICH6QSJ.js → chunk-OGXHZHRX.js} +1 -1
- package/dist/{chunk-OHA6WSAG.js → chunk-OTCXRJ7D.js} +1 -1
- package/dist/{chunk-N5SKHIAP.js → chunk-PAQXOP2M.js} +8 -6
- package/dist/{chunk-KJW2AS57.js → chunk-PEUGPAKH.js} +1 -1
- package/dist/{chunk-IPAU6FLH.js → chunk-PPHTIKZO.js} +1 -1
- package/dist/{chunk-44WJLPQS.js → chunk-PT6WKXKW.js} +2 -2
- package/dist/{chunk-P6WFZDKS.js → chunk-PWG3VHRQ.js} +2 -2
- package/dist/{chunk-EAKC24BW.js → chunk-R2IBCEU6.js} +16 -4
- package/dist/{chunk-HOIZ6MIS.js → chunk-RLJXVFEH.js} +1 -1
- package/dist/{chunk-NQGPD6NX.js → chunk-RMEBFYL7.js} +1 -1
- package/dist/{chunk-APDKUGSH.js → chunk-S27UBCVX.js} +5 -4
- package/dist/{chunk-XEGZHHRH.js → chunk-SVGARBDY.js} +1 -1
- package/dist/{chunk-UWGUKMBK.js → chunk-SYBYFQTY.js} +2 -2
- package/dist/{chunk-IUYUS2SO.js → chunk-TYONQSOK.js} +2 -2
- package/dist/{chunk-DQSXWQMJ.js → chunk-U3ILLCR2.js} +1 -1
- package/dist/{chunk-L4WZSVMT.js → chunk-UB6MLXUL.js} +3 -3
- package/dist/{chunk-EARDAJQY.js → chunk-UWRBD2YO.js} +2 -2
- package/dist/{chunk-F23N4MVU.js → chunk-UXYEOWG5.js} +1 -1
- package/dist/{chunk-UCCC7YVZ.js → chunk-W7PAIVAP.js} +4 -2
- package/dist/{chunk-T5RQGI6O.js → chunk-X3UYTAOG.js} +1 -1
- package/dist/{chunk-EOQFPZEE.js → chunk-XBURIXHO.js} +2 -2
- package/dist/{chunk-VKKUGZ3G.js → chunk-XQZ6EWOE.js} +8 -5
- package/dist/{chunk-TVRBQMIX.js → chunk-YPMGP2X4.js} +6 -6
- package/dist/{chunk-GS7ZTHPF.js → chunk-YQG4PZGC.js} +7 -7
- package/dist/{chunk-5QXRI35B.js → chunk-ZK3VYY7L.js} +1 -1
- package/dist/{chunk-2QEDJSJC.js → chunk-ZMDYQ2HH.js} +1 -1
- package/dist/{chunk-27GD7LVR.js → chunk-ZMWXE4GT.js} +1 -1
- package/dist/{chunk-RIAZM6L3.js → chunk-ZNOXQACX.js} +1 -1
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +106 -104
- package/dist/index.js +106 -104
- package/dist/styles.css +508 -102
- package/dist/utils/focusModality.d.ts +17 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +3 -3
- package/dist/StatGroup-PADTJCUQ.css +0 -86
- package/dist/chunk-WKEPORNM.js +0 -2
- /package/dist/{chunk-PNNYVN52.js → chunk-4QQ3MND5.js} +0 -0
|
@@ -22,7 +22,10 @@
|
|
|
22
22
|
* focus is NOT in a text-entry control (Enter on a link, the arrows in a
|
|
23
23
|
* radio group, Escape out of a menu), because those keys move focus. Typing
|
|
24
24
|
* inside a field does not, or the ring would widen under every character a
|
|
25
|
-
* reader typed into a field they clicked. A modifier on its own is neither.
|
|
25
|
+
* reader typed into a field they clicked. A modifier on its own is neither. A
|
|
26
|
+
* shortcut (Cmd or Ctrl with a key) is the keyboard outside a field, since it
|
|
27
|
+
* opens a palette or a dialog whose focus goes back on Escape, and neither
|
|
28
|
+
* inside one, where it is copy, paste or undo.
|
|
26
29
|
*
|
|
27
30
|
* One listener set per document however many fields mount, counted, and taken
|
|
28
31
|
* down when the last one unmounts.
|
|
@@ -39,3 +42,16 @@ export declare const FOCUS_MODALITY_ATTRIBUTE = "data-crewlet-focus";
|
|
|
39
42
|
export declare function trackFocusModality(doc?: Document): () => void;
|
|
40
43
|
/** Track the modality for as long as the calling component is mounted. */
|
|
41
44
|
export declare function useFocusModality(): void;
|
|
45
|
+
export declare const FOCUS_RETURNED_ATTRIBUTE = "data-crewlet-focus-returned";
|
|
46
|
+
/**
|
|
47
|
+
* Hand focus back to `el` (the trigger a surface opened from, the button an
|
|
48
|
+
* inline editor replaced) and report whether it took it.
|
|
49
|
+
*
|
|
50
|
+
* A focus moved by script after a text field matches `:focus-visible`, since
|
|
51
|
+
* the field always did. So a palette opened with a click and closed with
|
|
52
|
+
* Escape left its trigger ringed as if it had been tabbed to. The element is
|
|
53
|
+
* marked until it blurs, and the base stylesheet draws no ring on a marked
|
|
54
|
+
* element while the modality is the pointer's. A key pressed afterwards makes
|
|
55
|
+
* it the keyboard's, and the ring shows.
|
|
56
|
+
*/
|
|
57
|
+
export declare function returnFocus(el: HTMLElement | null | undefined, options?: FocusOptions): boolean;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from './nodeHue.js';
|
|
|
14
14
|
export type { NodeHue } from './nodeHue.js';
|
|
15
15
|
export { HeadingLevelProvider, headingTag, nextHeadingLevel, useHeadingLevel } from './headingLevel.js';
|
|
16
16
|
export type { HeadingLevel, HeadingLevelProviderProps } from './headingLevel.js';
|
|
17
|
-
export { FOCUS_MODALITY_ATTRIBUTE, trackFocusModality, useFocusModality } from './focusModality.js';
|
|
17
|
+
export { FOCUS_MODALITY_ATTRIBUTE, FOCUS_RETURNED_ATTRIBUTE, returnFocus, trackFocusModality, useFocusModality, } from './focusModality.js';
|
|
18
18
|
export type { FocusModality } from './focusModality.js';
|
package/dist/utils/index.js
CHANGED
|
@@ -3,6 +3,6 @@ export { downloadBlob, downloadText, safeFilename, useDownload } from '../chunk-
|
|
|
3
3
|
export { useClipboard, writeClipboard } from '../chunk-STJ7QBC3.js';
|
|
4
4
|
export { useOutcome } from '../chunk-DTIW4CHZ.js';
|
|
5
5
|
export { NODE_HUES, NODE_HUE_NAMES, isNodeHue } from '../chunk-AYKXMIOR.js';
|
|
6
|
-
export { FOCUS_MODALITY_ATTRIBUTE, trackFocusModality, useFocusModality } from '../chunk-YSGLEHND.js';
|
|
7
6
|
export { HeadingLevelProvider, headingTag, nextHeadingLevel, useHeadingLevel } from '../chunk-PQADV6P6.js';
|
|
7
|
+
export { FOCUS_MODALITY_ATTRIBUTE, FOCUS_RETURNED_ATTRIBUTE, returnFocus, trackFocusModality, useFocusModality } from '../chunk-NUZHC6MM.js';
|
|
8
8
|
export { cx } from '../chunk-ODEQTPFM.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewlethq/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"clean": "rm -rf dist src/generated"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@crewlethq/icons": "0.
|
|
46
|
-
"@crewlethq/tokens": "0.
|
|
45
|
+
"@crewlethq/icons": "0.38.0",
|
|
46
|
+
"@crewlethq/tokens": "0.38.0",
|
|
47
47
|
"prosemirror-commands": "1.7.2",
|
|
48
48
|
"prosemirror-gapcursor": "1.4.1",
|
|
49
49
|
"prosemirror-history": "1.5.1",
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* A row of stat tiles.
|
|
3
|
-
*
|
|
4
|
-
* ITS COLUMN COUNT NEVER MOVES with its contents. A grid that reflowed as
|
|
5
|
-
* tiles appeared and vanished moved every number on the page for a reason that
|
|
6
|
-
* had nothing to do with the numbers, which is exactly what a reader watching
|
|
7
|
-
* a live board is trying not to have happen.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
.crewlet-stat-group {
|
|
11
|
-
display: grid;
|
|
12
|
-
grid-template-columns: repeat(var(--crewlet-stat-group-cols, 4), minmax(0, 1fr));
|
|
13
|
-
/* The flush-panel recipe: the card's surface, its hairline and its 12px
|
|
14
|
-
corner, flat as every card is, and `overflow: hidden`, which is what lets
|
|
15
|
-
the tiles inside sit against the corners without their own hairlines
|
|
16
|
-
escaping past them. */
|
|
17
|
-
background: var(--color-surface-subtle);
|
|
18
|
-
border: 1px solid var(--color-border-default);
|
|
19
|
-
border-radius: var(--radius-lg);
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Inside another card: the card's surface and edge are the row's. */
|
|
24
|
-
.crewlet-stat-group--flush {
|
|
25
|
-
background: transparent;
|
|
26
|
-
border: 0;
|
|
27
|
-
border-radius: var(--radius-none);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* A tile inside the row brings no surface of its own, whether or not its
|
|
32
|
-
* caller remembered `flush`. The group draws one card and the hairlines
|
|
33
|
-
* inside it, so a tile that kept its own border and radius is a card inside
|
|
34
|
-
* a card: a box inside a box, which is what the reader sees.
|
|
35
|
-
*
|
|
36
|
-
* TWO CLASSES, NOT :where(). Written as `> :where(.crewlet-statcard)` this
|
|
37
|
-
* weighed exactly what the tile's own `.crewlet-statcard` rule weighs, so
|
|
38
|
-
* which one painted was settled by whichever stylesheet the bundler put
|
|
39
|
-
* last. It put the tile's last, and every tile in every group drew its own
|
|
40
|
-
* border, its own 12px corner and its own surface inside the group's.
|
|
41
|
-
* Naming both classes settles it by weight, which no import order can undo.
|
|
42
|
-
*/
|
|
43
|
-
.crewlet-stat-group > .crewlet-statcard {
|
|
44
|
-
background: transparent;
|
|
45
|
-
border: 0;
|
|
46
|
-
border-radius: var(--radius-none);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/*
|
|
50
|
-
* A hairline between columns, drawn on the tile that follows one.
|
|
51
|
-
*
|
|
52
|
-
* NAMED TWICE, ON PURPOSE. The rule above clears the tile's own border and
|
|
53
|
-
* weighs two classes, so a one-class selector here loses to it and the row
|
|
54
|
-
* of numbers runs together with nothing between the columns. The first
|
|
55
|
-
* selector matches whatever a caller puts in the row; the second weighs the
|
|
56
|
-
* same as the rule it has to beat, and sits after it.
|
|
57
|
-
*/
|
|
58
|
-
.crewlet-stat-group > * + *,
|
|
59
|
-
.crewlet-stat-group > .crewlet-statcard + .crewlet-statcard {
|
|
60
|
-
border-left: 1px solid var(--color-border-default);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/*
|
|
64
|
-
* Two columns under the shell breakpoint, which is where the engine drops its
|
|
65
|
-
* own stat row, and strictly under it, as the shell switches. The step is
|
|
66
|
-
* 1024px, a 236px rail, the 8px inset and a 780px floor for the sheet, and it
|
|
67
|
-
* is the width at which the shell stops holding the page beside the rail. The
|
|
68
|
-
* rules are written for the general case rather than per column count: the
|
|
69
|
-
* first tile of each pair loses its left hairline, and everything on the
|
|
70
|
-
* second row and below gains a top one.
|
|
71
|
-
*/
|
|
72
|
-
@media (width < 1024px) {
|
|
73
|
-
.crewlet-stat-group {
|
|
74
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.crewlet-stat-group > *:nth-child(odd),
|
|
78
|
-
.crewlet-stat-group > .crewlet-statcard:nth-child(odd) {
|
|
79
|
-
border-left: 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.crewlet-stat-group > *:nth-child(n + 3),
|
|
83
|
-
.crewlet-stat-group > .crewlet-statcard:nth-child(n + 3) {
|
|
84
|
-
border-top: 1px solid var(--color-border-default);
|
|
85
|
-
}
|
|
86
|
-
}
|
package/dist/chunk-WKEPORNM.js
DELETED
|
File without changes
|