@crewlethq/ui 0.32.0 → 0.34.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 +149 -5
- package/dist/AccessDeniedCard/AccessDeniedCard.d.ts +5 -0
- package/dist/AccessDeniedCard/index.js +1 -5
- package/dist/AccessDeniedCard-QVNDMT46.css +8 -0
- package/dist/AppShell/index.js +4 -4
- package/dist/{AppShell-GCM4TDVY.css → AppShell-JTSEOA57.css} +3 -1
- package/dist/ArrangeGroup/ArrangeGroup.d.ts +16 -1
- package/dist/ArrangeGroup/index.d.ts +1 -1
- package/dist/ArrangeGroup/index.js +1 -1
- package/dist/{ArrangeGroup-GY5YMP6E.css → ArrangeGroup-KRWWOJKR.css} +43 -0
- package/dist/ArrangeList/index.js +2 -2
- package/dist/ArtifactBar/index.js +14 -12
- package/dist/{ArtifactBar-MLMJHWY6.css → ArtifactBar-C462VD4C.css} +8 -3
- package/dist/ArtifactCard/ArtifactCard.d.ts +64 -6
- package/dist/ArtifactCard/index.d.ts +2 -2
- package/dist/ArtifactCard/index.js +6 -4
- package/dist/ArtifactCard-XHRLAL7C.css +289 -0
- package/dist/ArtifactCover/index.js +8 -6
- package/dist/ArtifactIcon/index.js +7 -5
- package/dist/ArtifactKindIllustration/ArtifactKindIllustration.d.ts +53 -0
- package/dist/ArtifactKindIllustration/index.d.ts +3 -0
- package/dist/ArtifactKindIllustration/index.js +3 -0
- package/dist/ArtifactKindIllustration-4NG6IE3C.css +211 -0
- package/dist/ArtifactPanel/ArtifactPanel.d.ts +6 -2
- package/dist/ArtifactPanel/index.js +1 -1
- package/dist/{ArtifactPanel-YFXT5O77.css → ArtifactPanel-HW3SU7CP.css} +25 -7
- package/dist/Avatar/Avatar.d.ts +6 -4
- package/dist/Avatar/index.js +2 -2
- package/dist/AvatarPicker/index.js +8 -8
- package/dist/Callout/index.js +1 -1
- package/dist/{Callout-SXXK4B5R.css → Callout-ZAVG3P66.css} +46 -6
- package/dist/Canvas/Canvas.d.ts +33 -2
- package/dist/Canvas/index.d.ts +1 -1
- package/dist/Canvas/index.js +4 -4
- package/dist/{Canvas-LRVNW7XN.css → Canvas-VUG2HLZK.css} +23 -0
- package/dist/CanvasBoard/CanvasBoard.d.ts +38 -3
- package/dist/CanvasBoard/budget.d.ts +9 -3
- package/dist/CanvasBoard/index.d.ts +2 -2
- package/dist/CanvasBoard/index.js +7 -7
- package/dist/{CanvasBoard-MBZVBWDO.css → CanvasBoard-5NNSKY6A.css} +127 -6
- package/dist/CanvasToolbar/index.js +5 -5
- package/dist/{CanvasToolbar-AE5MXH7T.css → CanvasToolbar-EM5EVZED.css} +4 -2
- package/dist/ChangeMark/index.js +4 -4
- package/dist/CharacterPicker/index.js +2 -2
- package/dist/Charts/ActivityStrip.d.ts +16 -1
- package/dist/Charts/BarList.d.ts +6 -0
- package/dist/Charts/ChartEmpty.d.ts +33 -0
- package/dist/Charts/Legend.d.ts +6 -0
- package/dist/Charts/StackedBar.d.ts +4 -1
- package/dist/Charts/StackedColumns.d.ts +14 -3
- package/dist/Charts/TimeSeries.d.ts +11 -1
- package/dist/Charts/index.d.ts +2 -0
- package/dist/Charts/index.js +1 -1
- package/dist/{Charts-RY4JN5FC.css → Charts-MBJG72BS.css} +140 -16
- package/dist/Checkbox/index.js +1 -1
- package/dist/{Checkbox-5UORUG3F.css → Checkbox-ALWG3WV2.css} +11 -0
- package/dist/CommandPalette/index.js +3 -3
- package/dist/{CommandPalette-HBTNKHZQ.css → CommandPalette-7CFGVBND.css} +4 -0
- package/dist/CommentThread/index.js +5 -5
- package/dist/Container/index.js +1 -1
- package/dist/{Container-3TSKMGNI.css → Container-34BAKG7B.css} +3 -1
- package/dist/{DashboardCover-RMINBODB.css → DashboardCover-KYGYMRKW.css} +42 -9
- package/dist/DataTable/index.js +5 -5
- package/dist/{DataTable-WZK3V62B.css → DataTable-NL2YWAIA.css} +4 -1
- package/dist/DataView/index.js +8 -8
- package/dist/DateTimePicker/index.js +3 -3
- package/dist/DocTabsEditor/DocTabsEditor.d.ts +34 -21
- package/dist/DocTabsEditor/index.js +4 -1
- package/dist/DocTabsEditor-4M452LNS.css +189 -0
- package/dist/Document/Document.d.ts +18 -1
- package/dist/Document/index.d.ts +2 -2
- package/dist/Document/index.js +1 -1
- package/dist/{Document-G3YTZIUL.css → Document-JUGCSQ4L.css} +78 -5
- package/dist/EditingStatus/index.js +1 -1
- package/dist/{EditingStatus-L6THUAN7.css → EditingStatus-NNA2CKIL.css} +17 -4
- package/dist/{Editor-YWBUJAQU.js → Editor-UUZ7XKCU.js} +5 -5
- package/dist/EntityChip/index.js +3 -3
- package/dist/FactList/index.js +3 -3
- package/dist/FollowBanner/index.js +3 -3
- package/dist/Fullscreen/index.d.ts +1 -0
- package/dist/Fullscreen/index.js +1 -1
- package/dist/Fullscreen/useIdle.d.ts +16 -0
- package/dist/HuePicker/index.js +3 -3
- package/dist/ImageUpload/index.js +3 -3
- package/dist/Layer/index.d.ts +1 -1
- package/dist/Layer/index.js +1 -1
- package/dist/Layer/place.d.ts +18 -0
- package/dist/LayersList/LayersList.d.ts +57 -0
- package/dist/LayersList/index.d.ts +3 -0
- package/dist/LayersList/index.js +3 -0
- package/dist/LayersList-NQZEIPZB.css +82 -0
- package/dist/LinkInterstitial/index.js +4 -4
- package/dist/ListInput/index.js +1 -1
- package/dist/LivePreview/LivePreview.d.ts +83 -0
- package/dist/LivePreview/budget.d.ts +50 -0
- package/dist/LivePreview/index.d.ts +5 -0
- package/dist/LivePreview/index.js +2 -0
- package/dist/LivePreview-SRO7KHO4.css +65 -0
- package/dist/Markdown/index.js +1 -1
- package/dist/MarkdownEditor/index.js +5 -5
- package/dist/MediaMatch/index.d.ts +1 -0
- package/dist/MediaMatch/index.js +1 -0
- package/dist/MediaMatch/useMediaMatch.d.ts +19 -0
- package/dist/Menu/index.js +2 -2
- package/dist/MergeConflicts/index.js +4 -4
- package/dist/Modal/index.js +2 -2
- package/dist/{Modal-XOSV6FAH.css → Modal-7MWRCWAI.css} +30 -0
- package/dist/Note/index.js +1 -1
- package/dist/{Note-ONSKKTOA.css → Note-WI5MLZOO.css} +13 -0
- package/dist/OrgLabel/index.js +3 -3
- package/dist/OrgNode/index.js +4 -4
- package/dist/OrgTable/index.js +7 -7
- package/dist/PeopleRail/index.js +3 -3
- package/dist/Popover/index.js +2 -2
- package/dist/PresenceStack/index.js +3 -3
- package/dist/{PresenceStack-QSXQJND5.css → PresenceStack-FJJQVH74.css} +11 -3
- package/dist/PresenterView/PresenterView.d.ts +3 -0
- package/dist/PresenterView/index.js +5 -3
- package/dist/PresenterView-T3EXIQ5S.css +147 -0
- package/dist/Principal/index.js +3 -3
- package/dist/PrincipalPicker/index.js +4 -4
- package/dist/RichEditor/index.js +5 -5
- package/dist/RichEditor/schema.d.ts +1 -1
- package/dist/RichEditorMarkdown/index.js +3 -3
- package/dist/SandboxedFrame/SandboxedFrame.d.ts +44 -2
- package/dist/SandboxedFrame/index.d.ts +2 -2
- package/dist/SandboxedFrame/index.js +3 -3
- package/dist/SandboxedFrame-P5NASXB7.css +72 -0
- package/dist/Section/index.js +1 -1
- package/dist/{Section-QR3ILQVK.css → Section-O5AHGSOG.css} +28 -5
- package/dist/SegmentedControl/index.js +3 -3
- package/dist/Select/Select.d.ts +10 -0
- package/dist/Select/index.d.ts +1 -1
- package/dist/Select/index.js +2 -2
- package/dist/{Select-2P7AWUE4.css → Select-A54YS5EP.css} +29 -0
- package/dist/ShareDialog/ShareDialog.d.ts +10 -0
- package/dist/ShareDialog/index.js +9 -9
- package/dist/{ShareDialog-YZ4F37MW.css → ShareDialog-4QDCBWMH.css} +12 -0
- package/dist/SheetGrid/SheetGrid.d.ts +7 -3
- package/dist/SheetGrid/index.js +8 -8
- package/dist/{SheetGrid-J3TKKXZL.css → SheetGrid-GDPCCZ4V.css} +154 -14
- package/dist/SheetModel/fit.d.ts +34 -0
- package/dist/SheetModel/index.d.ts +1 -0
- package/dist/SheetModel/index.js +1 -1
- package/dist/SheetModel/labels.d.ts +1 -1
- package/dist/Shortcut/index.js +1 -1
- package/dist/Skeleton/Skeleton.d.ts +2 -1
- package/dist/Skeleton/index.js +1 -1
- package/dist/SlideCompare/SlideCompare.d.ts +6 -1
- package/dist/SlideCompare/index.js +3 -3
- package/dist/{SlideCompare-MGM3U2ME.css → SlideCompare-HTCMPQFY.css} +36 -3
- package/dist/SlideFilmstrip/SlideFilmstrip.d.ts +14 -3
- package/dist/SlideFilmstrip/index.js +3 -3
- package/dist/{SlideFilmstrip-BCLNAHFX.css → SlideFilmstrip-5U6Z55GS.css} +63 -2
- package/dist/SlideGrid/index.js +3 -3
- package/dist/{SlideGrid-RT6QEQEE.css → SlideGrid-S4LTJ4UU.css} +9 -5
- package/dist/SlideNav/SlideNav.d.ts +49 -0
- package/dist/SlideNav/index.d.ts +3 -0
- package/dist/SlideNav/index.js +4 -0
- package/dist/SlideNav-BLFJF6AH.css +53 -0
- package/dist/SlideStage/SlideStage.d.ts +9 -1
- package/dist/SlideStage/index.js +2 -2
- package/dist/{SlideStage-KGRRALXR.css → SlideStage-S2FISF4C.css} +23 -0
- package/dist/StatCard/StatCard.d.ts +16 -1
- package/dist/StatCard/index.js +1 -1
- package/dist/{StatCard-KPAFD4E2.css → StatCard-4T7TMWMN.css} +40 -13
- package/dist/Switcher/index.js +6 -6
- package/dist/TableCells/index.js +3 -3
- package/dist/Tabs/Tabs.d.ts +21 -4
- package/dist/Tabs/index.js +1 -1
- package/dist/{Tabs-CJGO35BH.css → Tabs-MMZXV5EF.css} +9 -8
- package/dist/TagsInput/index.js +1 -1
- package/dist/ThemeSwitcher/index.js +4 -4
- package/dist/TimeWindowPicker/index.js +4 -4
- package/dist/Toaster/index.js +2 -2
- package/dist/{Toaster-EOOOTSJT.css → Toaster-C6BQ7L6I.css} +10 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/Tooltip/Tooltip.d.ts +12 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/TreeCanvas/index.js +5 -5
- package/dist/TreeGrid/index.js +3 -3
- package/dist/VersionCompare/index.js +4 -4
- package/dist/VersionTimeline/index.js +4 -4
- package/dist/WidgetFrame/WidgetFrame.d.ts +8 -1
- package/dist/WidgetFrame/index.js +2 -2
- package/dist/{WidgetFrame-LRZIL62O.css → WidgetFrame-BTFW3CRK.css} +49 -5
- package/dist/{chunk-WJDQ7XQA.js → chunk-2QEDJSJC.js} +1 -1
- package/dist/{chunk-VYDFB6PJ.js → chunk-356JNSER.js} +50 -17
- package/dist/{chunk-2HIOJ4YZ.js → chunk-3EB2AV3H.js} +2 -3
- package/dist/{chunk-ODT5H4MN.js → chunk-3LYWD3BO.js} +2 -2
- package/dist/{chunk-OTN35CI4.js → chunk-3P4Y5RX6.js} +18 -6
- package/dist/{chunk-FAQGGX2Z.js → chunk-3TFDQLW3.js} +1 -1
- package/dist/{chunk-E6EWK5YY.js → chunk-3Y56GQPM.js} +3 -3
- package/dist/{chunk-A4E5YLXO.js → chunk-4B6LSFDS.js} +1 -1
- package/dist/{chunk-UAN5NE7M.js → chunk-5AQBPHZD.js} +1 -1
- package/dist/{chunk-CJKMURZO.js → chunk-5SZGKSGL.js} +1 -1
- package/dist/chunk-6VOS2GMB.js +54 -0
- package/dist/{chunk-QWOPX2MN.js → chunk-6ZJ3N7QI.js} +7 -5
- package/dist/{chunk-3ZAFJ4GK.js → chunk-7Q7WDXHG.js} +4 -4
- package/dist/{chunk-QH3AKP2N.js → chunk-AC22RZKC.js} +2 -2
- package/dist/{chunk-UZ6MA2V6.js → chunk-AORVEG5V.js} +2 -2
- package/dist/{chunk-ZITJKF6Z.js → chunk-AYB6AYNH.js} +1 -1
- package/dist/{chunk-FC4YTTFJ.js → chunk-BQ7AKL2N.js} +5 -5
- package/dist/{chunk-Y5NQ2LMS.js → chunk-BY4N65PM.js} +1 -1
- package/dist/{chunk-YFW4MTK4.js → chunk-C7DKX453.js} +1 -1
- package/dist/{chunk-RCQXUT5K.js → chunk-CCAXYHQS.js} +1 -1
- package/dist/{chunk-JQLTG4KH.js → chunk-CCLNGVCM.js} +62 -51
- package/dist/{chunk-6AH2XJ3Q.js → chunk-CFAJP777.js} +3 -3
- package/dist/{chunk-4KP4RC3O.js → chunk-CI3VPIJN.js} +1 -1
- package/dist/{chunk-7T42VQQT.js → chunk-CPEPST4S.js} +1 -1
- package/dist/{chunk-AAOH2P6Y.js → chunk-DFK5EQTU.js} +5 -3
- package/dist/{chunk-V5IGUXMZ.js → chunk-E4NNGC6X.js} +4 -4
- package/dist/{chunk-TGYDROIB.js → chunk-EBCHVFCS.js} +4 -4
- package/dist/{chunk-LWXRD6L6.js → chunk-EWAFN2IU.js} +118 -27
- package/dist/{chunk-YDBC4DNW.js → chunk-FWYHRU7M.js} +1 -1
- package/dist/{chunk-HVNTQ36V.js → chunk-GMU6SQ6B.js} +4 -4
- package/dist/{chunk-LIXSV5YI.js → chunk-GPHWCK7M.js} +1 -1
- package/dist/{chunk-UQHKFF2N.js → chunk-GPWJCP3U.js} +1 -1
- package/dist/{chunk-77DRMDXR.js → chunk-HG5VF3TZ.js} +192 -67
- package/dist/{chunk-QVE4GJAT.js → chunk-HJO4WCH6.js} +1 -1
- package/dist/{chunk-JI5AVQLA.js → chunk-HOIZ6MIS.js} +1 -1
- package/dist/{chunk-I3BSQUKN.js → chunk-HUVG2FFT.js} +1 -1
- package/dist/{chunk-VS3KOOOL.js → chunk-ILAEBSLJ.js} +3 -3
- package/dist/{chunk-P4BOXB6E.js → chunk-IUD5VA2Z.js} +6 -7
- package/dist/{chunk-GR55WT4R.js → chunk-IYO2N5ZH.js} +2 -2
- package/dist/{chunk-RWA4H2TV.js → chunk-J6ON5SYE.js} +1 -1
- package/dist/{chunk-AMNN4WDX.js → chunk-JBUMD6DS.js} +2 -2
- package/dist/{chunk-BWRGFKJP.js → chunk-K3IJQNB7.js} +2 -3
- package/dist/{chunk-LFNUH4GY.js → chunk-K4VP6ZKE.js} +1 -1
- package/dist/{chunk-ZR5VN5IV.js → chunk-KD2IRYCT.js} +2 -2
- package/dist/chunk-KF6YGL4B.js +160 -0
- package/dist/{chunk-SKOYC2CF.js → chunk-KK5OYNAF.js} +2 -1
- package/dist/{chunk-UB7TJEKZ.js → chunk-KV3ODJXH.js} +6 -7
- package/dist/chunk-LL5AFXU7.js +96 -0
- package/dist/{chunk-VYOKRN2I.js → chunk-LM3ISVJA.js} +1 -1
- package/dist/{chunk-E6CR5PEV.js → chunk-LV4APO72.js} +8 -2
- package/dist/{chunk-B4EBHPK3.js → chunk-M5KZX5JE.js} +9 -2
- package/dist/{chunk-HMPFGIWM.js → chunk-OMV5W53A.js} +10 -1
- package/dist/chunk-ONL54WMH.js +55 -0
- package/dist/{chunk-AKEZ3G5V.js → chunk-ONQKKHON.js} +1 -1
- package/dist/{chunk-LZHLSQYK.js → chunk-OOWPSBIS.js} +2 -2
- package/dist/{chunk-4KWOKX2B.js → chunk-OSKJZNBT.js} +1 -1
- package/dist/{chunk-4JUKWWUD.js → chunk-PLDUNXAO.js} +1 -1
- package/dist/{chunk-EHQTPVV4.js → chunk-PLTCDSTU.js} +1 -1
- package/dist/{chunk-5OM447RW.js → chunk-PZKHBB7D.js} +1 -1
- package/dist/{chunk-VEB5ERRE.js → chunk-QWNVSR6G.js} +2 -2
- package/dist/{chunk-IG75YMUN.js → chunk-RTPQDNW3.js} +1 -1
- package/dist/{chunk-YEKYVJQR.js → chunk-SGHIAGPR.js} +2 -2
- package/dist/{chunk-SVSCLHHI.js → chunk-SZZRIHGT.js} +1 -1
- package/dist/{chunk-EBNI36UQ.js → chunk-T46NR3WP.js} +3 -3
- package/dist/{chunk-FPS3JIPQ.js → chunk-TC7DJTXI.js} +1 -1
- package/dist/{chunk-W5J7R5EB.js → chunk-TEUQWOWZ.js} +1 -1
- package/dist/chunk-THROPJZC.js +115 -0
- package/dist/{chunk-IDBHX5SR.js → chunk-TRQCHF2F.js} +1 -1
- package/dist/{chunk-M3LUNN7F.js → chunk-TYKQ33CL.js} +13 -2
- package/dist/chunk-UDQW6UK7.js +129 -0
- package/dist/{chunk-WTNUVQVI.js → chunk-UHJQDFKQ.js} +1 -1
- package/dist/{chunk-VVRL27HM.js → chunk-ULPL26BU.js} +2 -2
- package/dist/{chunk-EBJREOKS.js → chunk-UXXJDIYE.js} +4 -4
- package/dist/{chunk-5LUI3WQP.js → chunk-V43UVX4H.js} +1 -1
- package/dist/{chunk-W4XYY73O.js → chunk-VHZ3AXJD.js} +1 -1
- package/dist/{chunk-NHBP2XS5.js → chunk-VI5FWDZW.js} +51 -3
- package/dist/{chunk-HJEVSQN6.js → chunk-VL6CUNSX.js} +11 -5
- package/dist/{chunk-XDTYBF2F.js → chunk-W5XCNEZC.js} +39 -1
- package/dist/{chunk-LDJ3J4TQ.js → chunk-WGD2HX2A.js} +1 -1
- package/dist/{chunk-FQCLKD7U.js → chunk-WKEPORNM.js} +1 -1
- package/dist/{chunk-PJD2KFHX.js → chunk-WPX6A5BV.js} +38 -13
- package/dist/{chunk-I3KKZ2O3.js → chunk-XEGZHHRH.js} +45 -36
- package/dist/{chunk-IKB6HFGK.js → chunk-XO7PUL4F.js} +6 -4
- package/dist/chunk-XTOVADJU.js +170 -0
- package/dist/chunk-XV32RKQZ.js +142 -0
- package/dist/{chunk-TBMDMXEX.js → chunk-YA3AWELW.js} +1 -1
- package/dist/{chunk-HVIX5ECM.js → chunk-YEVG2X5R.js} +1 -1
- package/dist/chunk-YZFLH463.js +215 -0
- package/dist/generated/index.d.ts +5 -0
- package/dist/generated/index.js +112 -108
- package/dist/index.js +112 -108
- package/dist/styles.css +1982 -228
- package/package.json +3 -3
- package/dist/AccessDeniedCard-WXM5DBDZ.css +0 -8
- package/dist/ArtifactCard-EXVAEBV6.css +0 -109
- package/dist/DocTabsEditor-RCOWHX5J.css +0 -78
- package/dist/PresenterView-T2C6ZZ3N.css +0 -103
- package/dist/SandboxedFrame-L6HBQZCD.css +0 -50
- package/dist/chunk-CRKFL423.js +0 -74
- package/dist/chunk-GOSQXEZU.js +0 -102
- package/dist/chunk-MBNFJSZS.js +0 -107
- package/dist/chunk-RV7SZAHR.js +0 -105
- package/dist/chunk-UZ7ZUSLH.js +0 -179
- package/dist/utils/useMediaMatch.d.ts +0 -12
- /package/dist/{chunk-TF2P3OPS.js → chunk-YCARLYI6.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewlethq/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.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.34.0",
|
|
46
|
+
"@crewlethq/tokens": "0.34.0",
|
|
47
47
|
"prosemirror-commands": "1.7.2",
|
|
48
48
|
"prosemirror-gapcursor": "1.4.1",
|
|
49
49
|
"prosemirror-history": "1.5.1",
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* A card in a gallery: the preview on top at a fixed ratio, so a grid of them
|
|
3
|
-
* lines up whatever each preview is, then the title and up to three lines of
|
|
4
|
-
* facts. `compact` is a row with the kind's glyph in place of the preview.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
.crewlet-artifact-card {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
min-width: 0;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
color: inherit;
|
|
13
|
-
text-decoration: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.crewlet-artifact-card--compact {
|
|
17
|
-
flex-direction: row;
|
|
18
|
-
align-items: flex-start;
|
|
19
|
-
gap: var(--spacing-3);
|
|
20
|
-
padding: var(--spacing-3);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.crewlet-artifact-card__preview {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
aspect-ratio: 16 / 9;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
border-bottom: 1px solid var(--color-border-default);
|
|
30
|
-
background: var(--color-surface-inset);
|
|
31
|
-
color: var(--color-text-tertiary);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.crewlet-artifact-card__glyph {
|
|
35
|
-
display: inline-flex;
|
|
36
|
-
color: var(--color-text-tertiary);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.crewlet-artifact-card__glyph--compact {
|
|
40
|
-
flex: none;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
width: var(--size-control-md);
|
|
44
|
-
height: var(--size-control-md);
|
|
45
|
-
border-radius: var(--radius-md);
|
|
46
|
-
background: var(--color-surface-inset);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.crewlet-artifact-card__body {
|
|
50
|
-
display: flex;
|
|
51
|
-
flex-direction: column;
|
|
52
|
-
gap: var(--spacing-1);
|
|
53
|
-
min-width: 0;
|
|
54
|
-
padding: var(--spacing-3);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.crewlet-artifact-card--compact .crewlet-artifact-card__body {
|
|
58
|
-
padding: 0;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.crewlet-artifact-card__title-row {
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
gap: var(--spacing-1);
|
|
65
|
-
min-width: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.crewlet-artifact-card__title {
|
|
69
|
-
overflow: hidden;
|
|
70
|
-
color: var(--color-text-primary);
|
|
71
|
-
font-weight: var(--font-weight-semibold);
|
|
72
|
-
text-overflow: ellipsis;
|
|
73
|
-
white-space: nowrap;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.crewlet-artifact-card__pin {
|
|
77
|
-
display: inline-flex;
|
|
78
|
-
flex: none;
|
|
79
|
-
color: var(--color-text-tertiary);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.crewlet-artifact-card__facts {
|
|
83
|
-
display: flex;
|
|
84
|
-
flex-direction: column;
|
|
85
|
-
gap: var(--spacing-1);
|
|
86
|
-
color: var(--color-text-tertiary);
|
|
87
|
-
font-size: var(--font-size-xs);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.crewlet-artifact-card__line {
|
|
91
|
-
display: flex;
|
|
92
|
-
flex-wrap: wrap;
|
|
93
|
-
align-items: center;
|
|
94
|
-
gap: var(--spacing-1) var(--spacing-2);
|
|
95
|
-
min-width: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.crewlet-artifact-card__owner,
|
|
99
|
-
.crewlet-artifact-card__presence {
|
|
100
|
-
display: inline-flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
gap: var(--spacing-1);
|
|
103
|
-
min-width: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.crewlet-artifact-card__changes {
|
|
107
|
-
color: var(--color-text-secondary);
|
|
108
|
-
font-weight: var(--font-weight-medium);
|
|
109
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* DocTabsEditor: a document's tabs as rows an editor titles, opens, moves and
|
|
3
|
-
* removes, with the row whose text is open marked, and a field to add one.
|
|
4
|
-
* The rows are quiet inset bands, as ArrangeList's are.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
.crewlet-doc-tabs-editor {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
gap: var(--spacing-2);
|
|
11
|
-
min-width: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.crewlet-doc-tabs-editor__list {
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
gap: var(--spacing-1);
|
|
18
|
-
margin: 0;
|
|
19
|
-
padding: 0;
|
|
20
|
-
list-style: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.crewlet-doc-tabs-editor__item {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
gap: var(--spacing-1);
|
|
27
|
-
padding: var(--spacing-1);
|
|
28
|
-
border: 1px solid transparent;
|
|
29
|
-
border-radius: var(--radius-md);
|
|
30
|
-
background: var(--color-surface-subtle);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.crewlet-doc-tabs-editor__item.is-open {
|
|
34
|
-
border-color: var(--color-border-strong);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.crewlet-doc-tabs-editor__item[data-reorder='dragging'] {
|
|
38
|
-
border-style: dashed;
|
|
39
|
-
border-color: var(--color-border-strong);
|
|
40
|
-
background: transparent;
|
|
41
|
-
}
|
|
42
|
-
.crewlet-doc-tabs-editor__item[data-reorder='dragging'] > * {
|
|
43
|
-
opacity: 0.4;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.crewlet-doc-tabs-editor__handle {
|
|
47
|
-
flex-shrink: 0;
|
|
48
|
-
cursor: grab;
|
|
49
|
-
color: var(--color-text-tertiary);
|
|
50
|
-
}
|
|
51
|
-
.crewlet-doc-tabs-editor__handle:active {
|
|
52
|
-
cursor: grabbing;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.crewlet-doc-tabs-editor__field {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex: 1 1 12rem;
|
|
58
|
-
flex-direction: column;
|
|
59
|
-
gap: var(--spacing-1);
|
|
60
|
-
min-width: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.crewlet-doc-tabs-editor__problem {
|
|
64
|
-
color: var(--color-feedback-danger-ink);
|
|
65
|
-
font-size: var(--font-size-xs);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.crewlet-doc-tabs-editor__moves {
|
|
69
|
-
display: inline-flex;
|
|
70
|
-
flex-shrink: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.crewlet-doc-tabs-editor__add {
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-wrap: wrap;
|
|
76
|
-
align-items: center;
|
|
77
|
-
gap: var(--spacing-2);
|
|
78
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* PresenterView: the presenter's own screen beside the room's.
|
|
3
|
-
*
|
|
4
|
-
* The notes take the space a glance needs: a large, readable size and their
|
|
5
|
-
* own scroll, so a long note never pushes the next slide or the timer away.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
.crewlet-presenter {
|
|
9
|
-
display: grid;
|
|
10
|
-
grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
|
|
11
|
-
gap: var(--spacing-4);
|
|
12
|
-
height: 100%;
|
|
13
|
-
min-height: 0;
|
|
14
|
-
padding: var(--spacing-4);
|
|
15
|
-
background: var(--color-surface-background);
|
|
16
|
-
color: var(--color-text-primary);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.crewlet-presenter__main {
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
gap: var(--spacing-3);
|
|
23
|
-
min-height: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.crewlet-presenter__main .crewlet-slide-stage {
|
|
27
|
-
flex: 1;
|
|
28
|
-
min-height: 0;
|
|
29
|
-
border-radius: var(--radius-md);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.crewlet-presenter__controls {
|
|
33
|
-
display: flex;
|
|
34
|
-
align-items: center;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
gap: var(--spacing-3);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.crewlet-presenter__position {
|
|
40
|
-
color: var(--color-text-secondary);
|
|
41
|
-
font-variant-numeric: tabular-nums;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.crewlet-presenter__side {
|
|
45
|
-
display: flex;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
gap: var(--spacing-4);
|
|
48
|
-
min-height: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.crewlet-presenter__next .crewlet-slide-stage {
|
|
52
|
-
border-radius: var(--radius-sm);
|
|
53
|
-
outline: 1px solid var(--color-border-default);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.crewlet-presenter__end {
|
|
57
|
-
margin: 0;
|
|
58
|
-
padding: var(--spacing-6) var(--spacing-3);
|
|
59
|
-
border: 1px dashed var(--color-border-default);
|
|
60
|
-
border-radius: var(--radius-sm);
|
|
61
|
-
color: var(--color-text-tertiary);
|
|
62
|
-
text-align: center;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.crewlet-presenter__timer {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
gap: var(--spacing-2);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.crewlet-presenter__elapsed {
|
|
72
|
-
margin-right: auto;
|
|
73
|
-
font-family: var(--font-family-mono);
|
|
74
|
-
font-size: var(--font-size-2xl);
|
|
75
|
-
font-variant-numeric: tabular-nums;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.crewlet-presenter__notes {
|
|
79
|
-
flex: 1;
|
|
80
|
-
min-height: 0;
|
|
81
|
-
overflow: auto;
|
|
82
|
-
padding: var(--spacing-3);
|
|
83
|
-
border-radius: var(--radius-md);
|
|
84
|
-
background: var(--color-surface-subtle);
|
|
85
|
-
font-size: var(--font-size-lg);
|
|
86
|
-
line-height: 1.5;
|
|
87
|
-
white-space: pre-wrap;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.crewlet-presenter__notes p {
|
|
91
|
-
margin: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.crewlet-presenter__empty {
|
|
95
|
-
color: var(--color-text-tertiary);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@media (max-width: 48rem) {
|
|
99
|
-
.crewlet-presenter {
|
|
100
|
-
grid-template-columns: minmax(0, 1fr);
|
|
101
|
-
height: auto;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* The frame fills the box it is given. The page around it does not scroll
|
|
3
|
-
* round the artifact: the artifact scrolls inside its own document, which is
|
|
4
|
-
* what a viewer body that holds one wants.
|
|
5
|
-
*
|
|
6
|
-
* The region takes focus when the frame hands it back, and keeps the
|
|
7
|
-
* document's own focus treatment then: a reader who just left a page by
|
|
8
|
-
* keyboard needs to see where they landed.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
.crewlet-sandboxed-frame {
|
|
12
|
-
position: relative;
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 100%;
|
|
17
|
-
min-height: 0;
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
border-radius: var(--radius-md);
|
|
20
|
-
background: var(--color-surface-background);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.crewlet-sandboxed-frame__frame {
|
|
24
|
-
flex: 1 1 auto;
|
|
25
|
-
display: block;
|
|
26
|
-
width: 100%;
|
|
27
|
-
height: 100%;
|
|
28
|
-
border: 0;
|
|
29
|
-
background: transparent;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/* Kept out of sight while it starts, so a document that has not painted in
|
|
33
|
-
the reader's palette yet is never what they see. It still loads. */
|
|
34
|
-
.crewlet-sandboxed-frame[data-state='loading'] .crewlet-sandboxed-frame__frame {
|
|
35
|
-
visibility: hidden;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.crewlet-sandboxed-frame__loading {
|
|
39
|
-
position: absolute;
|
|
40
|
-
inset: 0;
|
|
41
|
-
display: flex;
|
|
42
|
-
padding: var(--spacing-3);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.crewlet-sandboxed-frame__end {
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
justify-content: flex-start;
|
|
49
|
-
padding: var(--spacing-4);
|
|
50
|
-
}
|
package/dist/chunk-CRKFL423.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { SlideStage } from './chunk-E6CR5PEV.js';
|
|
2
|
-
import { Button } from './chunk-OG6CL3EB.js';
|
|
3
|
-
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
|
-
import './SlideCompare-MGM3U2ME.css';
|
|
5
|
-
import { useState } from 'react';
|
|
6
|
-
import { MinusGlyph, PlusGlyph, PencilGlyph, ArrowUpDownGlyph } from '@crewlethq/icons/glyphs';
|
|
7
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
|
-
|
|
9
|
-
var plural = (n, one, many) => `${n} ${n === 1 ? one : many}`;
|
|
10
|
-
var SLIDE_COMPARE_LABELS = {
|
|
11
|
-
changed: "Changed",
|
|
12
|
-
added: "Added",
|
|
13
|
-
removed: "Removed",
|
|
14
|
-
unchanged: "Unchanged",
|
|
15
|
-
moved: (from, to) => `Moved from ${from} to ${to}`,
|
|
16
|
-
missing: (version) => `Not in ${version}`,
|
|
17
|
-
summary: (c) => [
|
|
18
|
-
c.changed && plural(c.changed, "slide changed", "slides changed"),
|
|
19
|
-
c.added && plural(c.added, "added", "added"),
|
|
20
|
-
c.removed && plural(c.removed, "removed", "removed"),
|
|
21
|
-
c.moved && plural(c.moved, "moved", "moved")
|
|
22
|
-
].filter(Boolean).join(", ") + ".",
|
|
23
|
-
showUnchanged: (n) => `Show the ${plural(n, "unchanged slide", "unchanged slides")}`,
|
|
24
|
-
hideUnchanged: "Hide the unchanged slides",
|
|
25
|
-
identical: "The two versions hold the same slides, in the same order."
|
|
26
|
-
};
|
|
27
|
-
var MARKS = {
|
|
28
|
-
changed: PencilGlyph,
|
|
29
|
-
added: PlusGlyph,
|
|
30
|
-
removed: MinusGlyph,
|
|
31
|
-
unchanged: null
|
|
32
|
-
};
|
|
33
|
-
function SlideCompare({ rows, fromLabel, toLabel, className, labels }) {
|
|
34
|
-
const text = { ...SLIDE_COMPARE_LABELS, ...labels };
|
|
35
|
-
const [showAll, setShowAll] = useState(false);
|
|
36
|
-
const counts = { changed: 0, added: 0, removed: 0, moved: 0 };
|
|
37
|
-
for (const r of rows) {
|
|
38
|
-
if (r.change !== "unchanged") counts[r.change] += 1;
|
|
39
|
-
if (r.moved) counts.moved += 1;
|
|
40
|
-
}
|
|
41
|
-
const still = rows.filter((r) => r.change === "unchanged" && !r.moved);
|
|
42
|
-
const shown = showAll ? rows : rows.filter((r) => r.change !== "unchanged" || r.moved);
|
|
43
|
-
const differs = counts.changed + counts.added + counts.removed + counts.moved > 0;
|
|
44
|
-
return /* @__PURE__ */ jsxs("div", { className: cx("crewlet-slide-compare", className), children: [
|
|
45
|
-
/* @__PURE__ */ jsx("p", { className: "crewlet-slide-compare__summary", children: differs ? text.summary(counts) : text.identical }),
|
|
46
|
-
/* @__PURE__ */ jsx("ol", { className: "crewlet-slide-compare__list", children: shown.map((row) => {
|
|
47
|
-
const Mark = MARKS[row.change];
|
|
48
|
-
return /* @__PURE__ */ jsxs("li", { className: "crewlet-slide-compare__row", "data-change": row.change, children: [
|
|
49
|
-
/* @__PURE__ */ jsxs("div", { className: "crewlet-slide-compare__head", children: [
|
|
50
|
-
/* @__PURE__ */ jsxs("span", { className: "crewlet-slide-compare__title", children: [
|
|
51
|
-
row.toPosition ?? row.fromPosition,
|
|
52
|
-
". ",
|
|
53
|
-
row.title
|
|
54
|
-
] }),
|
|
55
|
-
row.change === "unchanged" && row.moved ? null : /* @__PURE__ */ jsxs("span", { className: "crewlet-slide-compare__change", children: [
|
|
56
|
-
Mark ? /* @__PURE__ */ jsx(Mark, { size: "sm" }) : null,
|
|
57
|
-
text[row.change]
|
|
58
|
-
] }),
|
|
59
|
-
row.moved && row.fromPosition !== void 0 && row.toPosition !== void 0 ? /* @__PURE__ */ jsxs("span", { className: "crewlet-slide-compare__change", children: [
|
|
60
|
-
/* @__PURE__ */ jsx(ArrowUpDownGlyph, { size: "sm" }),
|
|
61
|
-
text.moved(row.fromPosition, row.toPosition)
|
|
62
|
-
] }) : null
|
|
63
|
-
] }),
|
|
64
|
-
/* @__PURE__ */ jsx("div", { className: "crewlet-slide-compare__sides", children: [
|
|
65
|
-
{ side: "from", label: fromLabel, node: row.from, at: row.fromPosition },
|
|
66
|
-
{ side: "to", label: toLabel, node: row.to, at: row.toPosition }
|
|
67
|
-
].map((s) => /* @__PURE__ */ jsx("div", { className: "crewlet-slide-compare__side", "data-side": s.side, children: s.node !== void 0 && s.node !== null ? /* @__PURE__ */ jsx(SlideStage, { label: `${s.label}, slide ${s.at ?? ""}, ${row.title}`, children: s.node }) : /* @__PURE__ */ jsx("p", { className: "crewlet-slide-compare__missing", children: text.missing(s.label) }) }, s.side)) })
|
|
68
|
-
] }, row.key);
|
|
69
|
-
}) }),
|
|
70
|
-
still.length > 0 ? /* @__PURE__ */ jsx(Button, { size: "small", variant: "ghost", onClick: () => setShowAll((v) => !v), children: showAll ? text.hideUnchanged : text.showUnchanged(still.length) }) : null
|
|
71
|
-
] });
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export { SLIDE_COMPARE_LABELS, SlideCompare };
|
package/dist/chunk-GOSQXEZU.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { PrincipalAvatar } from './chunk-4KP4RC3O.js';
|
|
2
|
-
import { RelativeTime } from './chunk-3CZ7XAVY.js';
|
|
3
|
-
import { AvatarStack } from './chunk-UAN5NE7M.js';
|
|
4
|
-
import { Card } from './chunk-ACA27MZH.js';
|
|
5
|
-
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
6
|
-
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
|
-
import './ArtifactCard-EXVAEBV6.css';
|
|
8
|
-
import { useId } from 'react';
|
|
9
|
-
import { TableGlyph, LayoutDashboardGlyph, PaletteGlyph, PresentationGlyph, FileTextGlyph, FileCodeGlyph, PinGlyph } from '@crewlethq/icons/glyphs';
|
|
10
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
|
-
|
|
12
|
-
var ARTIFACT_KINDS = ["html", "doc", "slides", "design", "dashboard", "sheet"];
|
|
13
|
-
var KIND_GLYPHS = {
|
|
14
|
-
html: FileCodeGlyph,
|
|
15
|
-
doc: FileTextGlyph,
|
|
16
|
-
slides: PresentationGlyph,
|
|
17
|
-
design: PaletteGlyph,
|
|
18
|
-
dashboard: LayoutDashboardGlyph,
|
|
19
|
-
sheet: TableGlyph
|
|
20
|
-
};
|
|
21
|
-
function ArtifactKindGlyph({ kind, size = "md" }) {
|
|
22
|
-
const Drawn = KIND_GLYPHS[kind];
|
|
23
|
-
return /* @__PURE__ */ jsx(Drawn, { size });
|
|
24
|
-
}
|
|
25
|
-
var LABELS = {
|
|
26
|
-
kinds: { html: "Page", doc: "Doc", slides: "Slides", design: "Design", dashboard: "Dashboard", sheet: "Sheet" },
|
|
27
|
-
pinned: "Pinned",
|
|
28
|
-
version: (version) => `v${version}`,
|
|
29
|
-
changes: (count) => count === 1 ? "1 change since you looked" : `${count} changes since you looked`,
|
|
30
|
-
present: (count) => count === 1 ? "1 here now" : `${count} here now`,
|
|
31
|
-
updated: "Updated"
|
|
32
|
-
};
|
|
33
|
-
function ArtifactCard({
|
|
34
|
-
title,
|
|
35
|
-
kind,
|
|
36
|
-
href,
|
|
37
|
-
preview,
|
|
38
|
-
owner,
|
|
39
|
-
updatedAt,
|
|
40
|
-
updatedBy,
|
|
41
|
-
presence,
|
|
42
|
-
changes,
|
|
43
|
-
pinned = false,
|
|
44
|
-
version,
|
|
45
|
-
project,
|
|
46
|
-
size = "card",
|
|
47
|
-
className,
|
|
48
|
-
now,
|
|
49
|
-
labels
|
|
50
|
-
}) {
|
|
51
|
-
const text = { ...LABELS, ...labels, kinds: { ...LABELS.kinds, ...labels?.kinds } };
|
|
52
|
-
const titleId = useId();
|
|
53
|
-
const factsId = useId();
|
|
54
|
-
const present = presence && presence.length > 0 ? presence : null;
|
|
55
|
-
return /* @__PURE__ */ jsxs(
|
|
56
|
-
Card,
|
|
57
|
-
{
|
|
58
|
-
href,
|
|
59
|
-
variant: "subtle",
|
|
60
|
-
padding: "none",
|
|
61
|
-
className: cx("crewlet-artifact-card", `crewlet-artifact-card--${size}`, className),
|
|
62
|
-
"aria-labelledby": titleId,
|
|
63
|
-
"aria-describedby": factsId,
|
|
64
|
-
children: [
|
|
65
|
-
size === "card" ? /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__preview", "aria-hidden": true, children: preview ?? /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__glyph", children: /* @__PURE__ */ jsx(ArtifactKindGlyph, { kind, size: 32 }) }) }) : /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__glyph crewlet-artifact-card__glyph--compact", "aria-hidden": true, children: /* @__PURE__ */ jsx(ArtifactKindGlyph, { kind, size: "lg" }) }),
|
|
66
|
-
/* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-card__body", children: [
|
|
67
|
-
/* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-card__title-row", children: [
|
|
68
|
-
/* @__PURE__ */ jsx("span", { id: titleId, className: "crewlet-artifact-card__title", children: title }),
|
|
69
|
-
pinned ? /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__pin", title: text.pinned, "aria-hidden": true, children: /* @__PURE__ */ jsx(PinGlyph, { size: "xs" }) }) : null
|
|
70
|
-
] }),
|
|
71
|
-
/* @__PURE__ */ jsxs("span", { id: factsId, className: "crewlet-artifact-card__facts", children: [
|
|
72
|
-
/* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-card__line", children: [
|
|
73
|
-
/* @__PURE__ */ jsx("span", { children: text.kinds[kind] }),
|
|
74
|
-
project ? /* @__PURE__ */ jsx("span", { children: project }) : null,
|
|
75
|
-
version !== void 0 ? /* @__PURE__ */ jsx("span", { children: text.version(version) }) : null,
|
|
76
|
-
pinned ? /* @__PURE__ */ jsx(VisuallyHidden, { children: text.pinned }) : null
|
|
77
|
-
] }),
|
|
78
|
-
/* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-card__line", children: [
|
|
79
|
-
owner ? /* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-card__owner", children: [
|
|
80
|
-
/* @__PURE__ */ jsx(PrincipalAvatar, { principal: owner, size: "xs" }),
|
|
81
|
-
/* @__PURE__ */ jsx("span", { children: owner.name })
|
|
82
|
-
] }) : null,
|
|
83
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
84
|
-
updatedBy ? `${updatedBy} ` : `${text.updated} `,
|
|
85
|
-
/* @__PURE__ */ jsx(RelativeTime, { value: updatedAt, now })
|
|
86
|
-
] })
|
|
87
|
-
] }),
|
|
88
|
-
present || changes !== void 0 && changes > 0 ? /* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-card__line", children: [
|
|
89
|
-
present ? /* @__PURE__ */ jsxs("span", { className: "crewlet-artifact-card__presence", children: [
|
|
90
|
-
/* @__PURE__ */ jsx(AvatarStack, { members: present, max: 3, size: "xs", decorative: true }),
|
|
91
|
-
/* @__PURE__ */ jsx("span", { children: text.present(present.length) })
|
|
92
|
-
] }) : null,
|
|
93
|
-
changes !== void 0 && changes > 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-artifact-card__changes", children: text.changes(changes) }) : null
|
|
94
|
-
] }) : null
|
|
95
|
-
] })
|
|
96
|
-
] })
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export { ARTIFACT_KINDS, ArtifactCard, ArtifactKindGlyph };
|
package/dist/chunk-MBNFJSZS.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { SlideStage } from './chunk-E6CR5PEV.js';
|
|
2
|
-
import { Button } from './chunk-OG6CL3EB.js';
|
|
3
|
-
import { IconButton } from './chunk-4FQT6ZAY.js';
|
|
4
|
-
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
-
import './PresenterView-T2C6ZZ3N.css';
|
|
6
|
-
import { useRef, useState, useEffect } from 'react';
|
|
7
|
-
import { ChevronLeftGlyph, ChevronRightGlyph } from '@crewlethq/icons/glyphs';
|
|
8
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
9
|
-
|
|
10
|
-
var LABELS = {
|
|
11
|
-
current: (position, total, title) => `Slide ${position} of ${total}, ${title}`,
|
|
12
|
-
next: (title) => `Next, ${title}`,
|
|
13
|
-
end: "End of the deck",
|
|
14
|
-
notes: "Speaker notes",
|
|
15
|
-
noNotes: "No notes for this slide.",
|
|
16
|
-
timer: "Time presenting",
|
|
17
|
-
pause: "Pause",
|
|
18
|
-
resume: "Resume",
|
|
19
|
-
reset: "Reset",
|
|
20
|
-
previous: "Previous slide",
|
|
21
|
-
forward: "Next slide",
|
|
22
|
-
position: (position, total) => `${position} of ${total}`
|
|
23
|
-
};
|
|
24
|
-
function formatStopwatch(ms) {
|
|
25
|
-
const total = Math.max(0, Math.floor(ms / 1e3));
|
|
26
|
-
const h = Math.floor(total / 3600);
|
|
27
|
-
const m = Math.floor(total % 3600 / 60);
|
|
28
|
-
const s = total % 60;
|
|
29
|
-
const ss = String(s).padStart(2, "0");
|
|
30
|
-
return h > 0 ? `${h}:${String(m).padStart(2, "0")}:${ss}` : `${m}:${ss}`;
|
|
31
|
-
}
|
|
32
|
-
function PresenterView({
|
|
33
|
-
current,
|
|
34
|
-
currentTitle,
|
|
35
|
-
next,
|
|
36
|
-
nextTitle = "",
|
|
37
|
-
notes,
|
|
38
|
-
position,
|
|
39
|
-
total,
|
|
40
|
-
onNext,
|
|
41
|
-
onPrevious,
|
|
42
|
-
now = Date.now,
|
|
43
|
-
className,
|
|
44
|
-
labels
|
|
45
|
-
}) {
|
|
46
|
-
const text = { ...LABELS, ...labels };
|
|
47
|
-
const clock = useRef(now);
|
|
48
|
-
clock.current = now;
|
|
49
|
-
const [banked, setBanked] = useState(0);
|
|
50
|
-
const [runningSince, setRunningSince] = useState(() => now());
|
|
51
|
-
const [tick, setTick] = useState(0);
|
|
52
|
-
useEffect(() => {
|
|
53
|
-
if (runningSince === null) return void 0;
|
|
54
|
-
const id = setInterval(() => setTick((t) => t + 1), 1e3);
|
|
55
|
-
return () => clearInterval(id);
|
|
56
|
-
}, [runningSince]);
|
|
57
|
-
const elapsed = banked + (runningSince === null ? 0 : clock.current() - runningSince);
|
|
58
|
-
const pause = () => {
|
|
59
|
-
if (runningSince === null) {
|
|
60
|
-
setRunningSince(clock.current());
|
|
61
|
-
} else {
|
|
62
|
-
setBanked(elapsed);
|
|
63
|
-
setRunningSince(null);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
const reset = () => {
|
|
67
|
-
setBanked(0);
|
|
68
|
-
setRunningSince(runningSince === null ? null : clock.current());
|
|
69
|
-
};
|
|
70
|
-
return /* @__PURE__ */ jsxs("div", { className: cx("crewlet-presenter", className), children: [
|
|
71
|
-
/* @__PURE__ */ jsxs("div", { className: "crewlet-presenter__main", children: [
|
|
72
|
-
/* @__PURE__ */ jsx(SlideStage, { label: text.current(position, total, currentTitle), fit: "contain", children: current }),
|
|
73
|
-
/* @__PURE__ */ jsxs("div", { className: "crewlet-presenter__controls", children: [
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
75
|
-
IconButton,
|
|
76
|
-
{
|
|
77
|
-
label: text.previous,
|
|
78
|
-
icon: /* @__PURE__ */ jsx(ChevronLeftGlyph, {}),
|
|
79
|
-
onClick: onPrevious,
|
|
80
|
-
disabledReason: position <= 1 ? text.previous : void 0
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
/* @__PURE__ */ jsx("span", { className: "crewlet-presenter__position", "aria-live": "polite", children: text.position(position, total) }),
|
|
84
|
-
/* @__PURE__ */ jsx(
|
|
85
|
-
IconButton,
|
|
86
|
-
{
|
|
87
|
-
label: text.forward,
|
|
88
|
-
icon: /* @__PURE__ */ jsx(ChevronRightGlyph, {}),
|
|
89
|
-
onClick: onNext,
|
|
90
|
-
disabledReason: position >= total ? text.end : void 0
|
|
91
|
-
}
|
|
92
|
-
)
|
|
93
|
-
] })
|
|
94
|
-
] }),
|
|
95
|
-
/* @__PURE__ */ jsxs("aside", { className: "crewlet-presenter__side", children: [
|
|
96
|
-
/* @__PURE__ */ jsx("div", { className: "crewlet-presenter__next", children: next ? /* @__PURE__ */ jsx(SlideStage, { label: text.next(nextTitle), children: next }) : /* @__PURE__ */ jsx("p", { className: "crewlet-presenter__end", children: text.end }) }),
|
|
97
|
-
/* @__PURE__ */ jsxs("div", { className: "crewlet-presenter__timer", children: [
|
|
98
|
-
/* @__PURE__ */ jsx("span", { role: "timer", "aria-label": text.timer, className: "crewlet-presenter__elapsed", children: formatStopwatch(elapsed) }),
|
|
99
|
-
/* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", onClick: pause, children: runningSince === null ? text.resume : text.pause }),
|
|
100
|
-
/* @__PURE__ */ jsx(Button, { size: "small", variant: "ghost", onClick: reset, children: text.reset })
|
|
101
|
-
] }),
|
|
102
|
-
/* @__PURE__ */ jsx("section", { className: "crewlet-presenter__notes", "aria-label": text.notes, children: notes ? /* @__PURE__ */ jsx("p", { children: notes }) : /* @__PURE__ */ jsx("p", { className: "crewlet-presenter__empty", children: text.noNotes }) })
|
|
103
|
-
] })
|
|
104
|
-
] });
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export { PresenterView, formatStopwatch };
|