@mistriwork/kit 1.0.0-rc.58 → 1.0.0-rc.59

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.
Files changed (158) hide show
  1. package/dist/client/app.js +14 -2
  2. package/dist/client/audience.d.ts +1 -0
  3. package/dist/client/audience.js +10 -0
  4. package/dist/client/brandLook.css +49 -1
  5. package/dist/client/components/AppColumnMenuPopups.js +41 -11
  6. package/dist/client/components/AppList.d.ts +3 -1
  7. package/dist/client/components/AppList.js +77 -15
  8. package/dist/client/components/CardsList.js +14 -1
  9. package/dist/client/components/Chart.css +4 -0
  10. package/dist/client/components/Chart.d.ts +4 -4
  11. package/dist/client/components/Chart.js +30 -9
  12. package/dist/client/components/Content.js +3 -1
  13. package/dist/client/components/DateField.css +1 -1
  14. package/dist/client/components/DateField.js +1 -0
  15. package/dist/client/components/DefinedFields.js +2 -2
  16. package/dist/client/components/Diagram.css +82 -0
  17. package/dist/client/components/Diagram.d.ts +1 -0
  18. package/dist/client/components/Diagram.js +1 -0
  19. package/dist/client/components/Dressed.js +1 -1
  20. package/dist/client/components/Editable.js +7 -3
  21. package/dist/client/components/Export.js +1 -1
  22. package/dist/client/components/FilterBoxes.js +2 -2
  23. package/dist/client/components/FilterRail.css +1 -1
  24. package/dist/client/components/FilterRail.js +6 -4
  25. package/dist/client/components/Gallery.css +171 -0
  26. package/dist/client/components/Gallery.d.ts +1 -0
  27. package/dist/client/components/Gallery.js +1 -0
  28. package/dist/client/components/Grid.d.ts +2 -1
  29. package/dist/client/components/Grid.js +78 -24
  30. package/dist/client/components/GridCellEditor.js +4 -2
  31. package/dist/client/components/GridSelection.d.ts +4 -1
  32. package/dist/client/components/GridSelection.js +20 -3
  33. package/dist/client/components/LandingSurface.css +2 -2
  34. package/dist/client/components/LayoutBuilder.css +225 -0
  35. package/dist/client/components/LayoutBuilder.d.ts +1 -0
  36. package/dist/client/components/LayoutBuilder.js +1 -0
  37. package/dist/client/components/ListColumns.d.ts +12 -0
  38. package/dist/client/components/ListColumns.js +61 -0
  39. package/dist/client/components/ListFilterBar.css +39 -14
  40. package/dist/client/components/ListFilterBar.js +39 -23
  41. package/dist/client/components/MultiStepForm.css +22 -22
  42. package/dist/client/components/NewRecord.js +120 -104
  43. package/dist/client/components/Notes.css +9 -0
  44. package/dist/client/components/Notes.d.ts +6 -2
  45. package/dist/client/components/Notes.js +10 -6
  46. package/dist/client/components/OverflowMenu.js +16 -11
  47. package/dist/client/components/PageFields.js +19 -4
  48. package/dist/client/components/PageRelated.d.ts +8 -1
  49. package/dist/client/components/PageRelated.js +46 -33
  50. package/dist/client/components/PageSections.js +18 -5
  51. package/dist/client/components/Palette.js +1 -1
  52. package/dist/client/components/Prefs.d.ts +10 -0
  53. package/dist/client/components/Prefs.js +33 -23
  54. package/dist/client/components/PresentationSwitch.js +4 -0
  55. package/dist/client/components/Prompt.js +4 -4
  56. package/dist/client/components/RecordGone.js +4 -4
  57. package/dist/client/components/RecordPicker.js +24 -6
  58. package/dist/client/components/RecordSummaries.js +31 -5
  59. package/dist/client/components/RecordTrailNav.js +4 -0
  60. package/dist/client/components/RichTextEditor.css +2 -2
  61. package/dist/client/components/RichTextEditor.js +18 -19
  62. package/dist/client/components/Rooms.js +22 -4
  63. package/dist/client/components/SectionPeriod.css +1 -1
  64. package/dist/client/components/SetFieldDialog.js +1 -1
  65. package/dist/client/components/Sidebar.js +8 -5
  66. package/dist/client/components/SuggestBox.js +2 -2
  67. package/dist/client/components/TableRoom.d.ts +5 -1
  68. package/dist/client/components/TableRoom.js +29 -10
  69. package/dist/client/components/TableView.js +1 -1
  70. package/dist/client/components/ThMenu.js +26 -15
  71. package/dist/client/components/Tour.css +96 -0
  72. package/dist/client/components/Tour.d.ts +1 -0
  73. package/dist/client/components/Tour.js +1 -0
  74. package/dist/client/components/TreePicker.css +1 -1
  75. package/dist/client/components/TreePicker.js +27 -20
  76. package/dist/client/components/Value.js +4 -1
  77. package/dist/client/components/WorkflowStatus.js +8 -4
  78. package/dist/client/components/appListModel.d.ts +4 -0
  79. package/dist/client/components/appRooms.d.ts +2 -0
  80. package/dist/client/components/appRooms.js +2 -0
  81. package/dist/client/components/boardNew.d.ts +5 -0
  82. package/dist/client/components/boardNew.js +5 -0
  83. package/dist/client/components/conditionWords.d.ts +10 -0
  84. package/dist/client/components/conditionWords.js +20 -0
  85. package/dist/client/components/dashboardModel.d.ts +8 -0
  86. package/dist/client/components/dashboardModel.js +28 -1
  87. package/dist/client/components/editInteraction.d.ts +1 -1
  88. package/dist/client/components/editInteraction.js +1 -1
  89. package/dist/client/components/gridSizing.d.ts +14 -20
  90. package/dist/client/components/gridSizing.js +147 -108
  91. package/dist/client/components/pageContext.d.ts +3 -2
  92. package/dist/client/components/pageModel.d.ts +2 -0
  93. package/dist/client/components/pickerStaleness.d.ts +11 -1
  94. package/dist/client/components/pickerStaleness.js +12 -2
  95. package/dist/client/components/rowTitle.d.ts +2 -0
  96. package/dist/client/components/rowTitle.js +10 -0
  97. package/dist/client/components/textMeasure.js +72 -3
  98. package/dist/client/components/useConditionWords.d.ts +5 -0
  99. package/dist/client/components/useConditionWords.js +3 -1
  100. package/dist/client/components/useGridKeyboard.js +5 -0
  101. package/dist/client/components/valueModel.d.ts +1 -0
  102. package/dist/client/components/valueModel.js +39 -4
  103. package/dist/client/composer.css +2 -2
  104. package/dist/client/copy/es.js +3 -3
  105. package/dist/client/copy/filters/components/ListFilterBar.d.ts +1 -0
  106. package/dist/client/copy/filters/components/ListFilterBar.js +1 -0
  107. package/dist/client/copy/forms/components/DateField.d.ts +2 -0
  108. package/dist/client/copy/forms/components/DateField.js +2 -0
  109. package/dist/client/copy/forms/components/NewRecord.d.ts +8 -0
  110. package/dist/client/copy/forms/components/NewRecord.js +2 -0
  111. package/dist/client/copy/lists/components/AppList.d.ts +2 -0
  112. package/dist/client/copy/lists/components/AppList.js +2 -0
  113. package/dist/client/copy/lists/components/GridSelection.d.ts +1 -0
  114. package/dist/client/copy/lists/components/GridSelection.js +1 -0
  115. package/dist/client/copy/lists/components/ListColumns.d.ts +5 -0
  116. package/dist/client/copy/lists/components/ListColumns.js +7 -0
  117. package/dist/client/copy/lists/components/TableRoom.d.ts +3 -1
  118. package/dist/client/copy/lists/components/TableRoom.js +3 -1
  119. package/dist/client/copy/record/components/PageHistory.d.ts +2 -2
  120. package/dist/client/copy/record/components/PageHistory.js +4 -2
  121. package/dist/client/copy/record/components/WorkflowStatus.d.ts +1 -0
  122. package/dist/client/copy/record/components/WorkflowStatus.js +1 -0
  123. package/dist/client/copy/shell/components/MobileNavDrawer.d.ts +1 -0
  124. package/dist/client/copy/shell/components/MobileNavDrawer.js +2 -0
  125. package/dist/client/customThemes.css +3 -3
  126. package/dist/client/dom.js +5 -5
  127. package/dist/client/features.css +216 -356
  128. package/dist/client/fonts/Manrope-OFL.txt +93 -0
  129. package/dist/client/fonts/faces.css +10 -1
  130. package/dist/client/fonts/manrope-latin.woff2 +0 -0
  131. package/dist/client/formControls.css +4 -4
  132. package/dist/client/help.css +2 -2
  133. package/dist/client/ledgerLook.css +28 -0
  134. package/dist/client/locale.d.ts +2 -10
  135. package/dist/client/locale.js +0 -0
  136. package/dist/client/lumenLook.css +295 -105
  137. package/dist/client/manropeFace.css +32 -0
  138. package/dist/client/messages.d.ts +3 -3
  139. package/dist/client/messages.js +3 -3
  140. package/dist/client/page.css +98 -354
  141. package/dist/client/palette.js +31 -6
  142. package/dist/client/partsLook.css +60 -60
  143. package/dist/client/sageLook.css +101 -32
  144. package/dist/client/shellHost.d.ts +2 -2
  145. package/dist/client/shellHost.js +2 -2
  146. package/dist/client/shellMode.d.ts +9 -0
  147. package/dist/client/shellMode.js +2 -0
  148. package/dist/client/structure.css +281 -201
  149. package/dist/client/style.css +75 -224
  150. package/dist/client/themeFamilies.css +471 -66
  151. package/dist/client/tilesLook.css +502 -0
  152. package/dist/client/visualTheme.js +5 -2
  153. package/dist/client/visualThemes.css +38 -34
  154. package/dist/client/workbenchLook.css +12 -12
  155. package/dist/client/workshopLook.css +3 -8
  156. package/dist/vite.d.ts +1 -20
  157. package/dist/vite.js +33 -3
  158. package/package.json +8 -7
@@ -0,0 +1,93 @@
1
+ Copyright 2019 The Manrope Project Authors (https://github.com/sharanda/manrope)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  /* The kit's own faces, for a host product's look (`@mistriwork/kit/client/fonts/faces.css`): every font file the kit
2
2
  ships, declared once each under the family names its looks use, so a look of the host's own can name Barlow, Barlow
3
- Semi Condensed, IBM Plex Mono or Inter in a stack, as Workshop, Ledger and Lumen do. Each is under the SIL Open Font
3
+ Semi Condensed, IBM Plex Mono, Inter or Manrope in a stack, as Workshop, Ledger and Lumen do. Each is under the SIL Open Font
4
4
  License, whose text travels beside it (the *-OFL.txt files here; the kit's Vite preset copies them into the build).
5
5
  A rule costs nothing until a line is drawn in its family, so importing this sheet fetches no font a page does not
6
6
  set. The kit's own face sheets (barlowFace.css, interFace.css, ledgerLook.css) keep their own rules and their cut
@@ -51,3 +51,12 @@
51
51
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
52
52
  U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
53
53
  }
54
+ @font-face {
55
+ font-family: Manrope;
56
+ font-style: normal;
57
+ font-weight: 200 800;
58
+ font-display: swap;
59
+ src: url('./manrope-latin.woff2') format('woff2');
60
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
61
+ U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
62
+ }
@@ -1,5 +1,5 @@
1
- /* @mistriwork/ui's form controls' rules (packages/ui/src/forms.css), in the base layer beside the primitives' own
2
- (style.css says why base). Apart from style.css so a first paint that draws no control does not carry them: the
3
- module that first draws a TextField, a Select or a choice imports this file, and it arrives with that chunk. */
4
- @import '@mistriwork/ui/forms.css' layer(base);
1
+ /* @mistriwork/ui's answers to the reader's own settings (packages/ui/src/preferences.css), in the base layer beside
2
+ its tokens. Apart from style.css so a first paint that draws no control does not carry them: the module that
3
+ first draws a TextField, a Select or a choice imports this file, and it arrives with that chunk. The controls' own
4
+ rules are in style.css with the tokens (controls.css). */
5
5
  @import '@mistriwork/ui/preferences.css' layer(base);
@@ -61,8 +61,8 @@
61
61
 
62
62
  /* A Modal (HelpPanel.tsx): the scrim is its backdrop, and the box hangs from the top rather than sitting centered, so
63
63
  the sections do not jump as the examples sharpen. */
64
- .modal-backdrop.help-panel-backdrop { background: var(--scrim); }
65
- .modal.help-panel {
64
+ [data-slot='dialog-backdrop'][data-for='help-panel'] { background: var(--scrim); }
65
+ [data-slot='dialog-content'][data-kind='modal'].help-panel {
66
66
  inset: 8vh 0 auto; margin: 0 auto; padding: 0;
67
67
  width: min(720px, 96vw); max-width: none; height: auto; max-height: 84vh;
68
68
  color: var(--ink);
@@ -25,8 +25,36 @@
25
25
  :root[data-look-rules='double'] .app-mode .table-wrap thead th {
26
26
  border-bottom: 3px double var(--rules-head);
27
27
  }
28
+ /* The book's cover runs over the pane as it runs down the menu: the pane's bar stands on the menu's ground in the
29
+ menu's ink. The bar's own rules read the page's colour roles (structure.css), so the bar is given the menu's
30
+ under those names and everything in it — the trail, the search's well, the keys — follows without a rule each. */
31
+ :root[data-look-rules='double'] body.app-sidebar-shell .layout > .pane-bar {
32
+ --surface: var(--nav-ground);
33
+ --raised: color-mix(in srgb, var(--nav-ink) 8%, var(--nav-ground));
34
+ --ground: var(--raised);
35
+ --field-fill: var(--raised);
36
+ --line: var(--nav-line);
37
+ --line-control: var(--nav-line);
38
+ --ink: var(--nav-ink);
39
+ --ink-muted: var(--nav-muted);
40
+ --ink-subtle: var(--nav-muted);
41
+ color: var(--nav-ink);
42
+ }
43
+ /* A list's tabs are words to choose between, not a column's head: the text face in sentence case, where the
44
+ label role would set them in the book's capitals. */
45
+ :root[data-look-rules='double'][data-type-label~='upper'] :is(.tab, :where(body.app-mode) .page-tab) {
46
+ font-family: var(--sans);
47
+ text-transform: none;
48
+ letter-spacing: 0;
49
+ }
28
50
  /* A field group, a dashboard section and a stat card are ruled boxes in the strong line, not the hairline. */
29
51
  :root[data-look-rules='double'] .app-mode :is(.page-fields, .page-section, .home-card) {
30
52
  border-color: var(--line-strong);
31
53
  }
54
+ /* A ledger sets every cell in the figures' face, a tenth wider a letter than the text's: a ten-column list at a
55
+ desk cut its residents' names by a letter or two. Its list cells are set at the platform's size, not the book's
56
+ own a step up, and the names are whole. A record's own tables keep the book's size. */
57
+ :root[data-look-rules='double'] .app-mode .applist-room td {
58
+ font-size: calc(var(--text-base) / var(--type-k, 1));
59
+ }
32
60
  }
@@ -102,19 +102,11 @@ export declare function formatDateTime(value: string | number | Date, options?:
102
102
  * the start (a range that runs backwards is two facts, not one).
103
103
  */
104
104
  export declare function formatSpan(start: string, end: string): string | null;
105
- /**
106
- * A stored day or moment said absolutely, the same words on any day and for any reader (`format: 'date'` and
107
- * `'datetime'`, and every date on a document's paper). A date alone is its calendar day and never shifts, whatever
108
- * the zone. A moment is an instant: one with its offset (`Z`, `+10`) is that instant, a zone-less one was written in
109
- * the App's clock zone (appPayload.ts servedUi). It is said in `zone`, else the App's `ui.timezone`, else that clock
110
- * zone, never the reader's own; with `time` its clock and the zone's short name follow the day ("Sep 4, 2026,
111
- * 2:30 PM PDT"), without, it is the day it falls on there. A Date or an epoch is an instant. A time alone is a time;
112
- * text that is no date comes back as it was. `short` says it in the fewest characters ("9/4/26, 2:30 PM PDT").
113
- */
114
- export declare function formatAbsolute(value: string | number | Date, { time, zone, short }?: {
105
+ export declare function formatAbsolute(value: string | number | Date, { time, zone, short, reader }?: {
115
106
  time?: boolean;
116
107
  zone?: string;
117
108
  short?: boolean;
109
+ reader?: boolean;
118
110
  }): string;
119
111
  /**
120
112
  * A date said from today: "today", "yesterday", "in 3 days", "7 weeks
Binary file