@local-civics/mgmt-ui 0.1.212 → 0.1.213

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import * as React from 'react';
5
5
  * NavbarProps
6
6
  */
7
7
  interface NavbarProps {
8
- active: string;
8
+ active?: string;
9
9
  version: string;
10
10
  image: string;
11
11
  name: string;
@@ -21,6 +21,16 @@ interface NavbarProps {
21
21
  onGettingStarted: () => void;
22
22
  onSwitchAccounts?: () => void;
23
23
  }
24
+ /**
25
+ * The educator/admin left nav. Same behavior as before this round's restyle — item list, per-item
26
+ * notification counts, the `hidden`/trial visibility rules, the Organization sub-menu — only the
27
+ * markup/styling moved from Mantine's `createStyles` theme to Tailwind utility classes (matching
28
+ * the flat cyan/mint/gold system already shipped on the student side), plus `active` is now
29
+ * optional rather than required (it was forcing at least one caller to pass an empty string just
30
+ * to satisfy the type, which meant no row ever highlighted for it).
31
+ * @param props
32
+ * @constructor
33
+ */
24
34
  declare function Navbar(props: NavbarProps): JSX.Element;
25
35
 
26
36
  /**
@@ -288,7 +298,9 @@ type ClassProps = {
288
298
  onExportDataClick: () => void;
289
299
  };
290
300
  /**
291
- * Class
301
+ * Class. Chrome (header, actions, stat bar, table) is restyled to match the redesigned educator
302
+ * sidebar/shell; the Add Students drawer (CSV bulk upload + manual entry) and its underlying
303
+ * `onCreateMembers`/Dropzone/form logic are unchanged from before this round.
292
304
  * @param props
293
305
  * @constructor
294
306
  */
@@ -0,0 +1,26 @@
1
+ @charset "UTF-8";
2
+ @font-face {
3
+ font-family: "ProximaNova";
4
+ src: url(https://cdn.localcivics.io/fonts/ProximaNova.otf) format("opentype");
5
+ }
6
+ @font-face {
7
+ font-family: "ProximaNova";
8
+ font-weight: bold;
9
+ src: url(https://cdn.localcivics.io/fonts/ProximaNovaBold.otf) format("opentype");
10
+ }
11
+ @tailwind base;
12
+ @tailwind components;
13
+ @tailwind utilities;
14
+ /*
15
+ * Tailwind's preflight is disabled here (see tailwind.config.cjs) to avoid fighting Mantine's own
16
+ * global reset on the pages this round doesn't touch. But every Tailwind `border`/`border-{color}`
17
+ * utility silently depends on preflight's `border-style: solid` default — without it, the browser's
18
+ * native default (`border-style: none`) means border-width and border-color render with no visible
19
+ * effect at all. This is the one rule from preflight actually needed; using the lowest-specificity
20
+ * selector (`*`) so it never overrides a component's own more specific border-style (e.g. Mantine's
21
+ * dashed Dropzone).
22
+ */
23
+ *, ::before, ::after {
24
+ border-width: 0;
25
+ border-style: solid;
26
+ }