hisd3-ui-kit 5.2.2 → 5.3.1

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
@@ -23,17 +23,32 @@ declare const HISD3_PRESETS: {
23
23
  type HISD3Preset = keyof typeof HISD3_PRESETS;
24
24
  /** Light or dark. Each person picks one; a module never forces it. */
25
25
  type HISD3ThemeMode = "light" | "dark";
26
- /** Neutral palette shared by every preset (the "Backoffice" look), light. */
26
+ /**
27
+ * Neutral palette shared by every preset (the "Backoffice" look), light.
28
+ *
29
+ * Two surfaces: the ground (`bgLayout`), one warm near-white under the
30
+ * sidebar, the top bar and the page alike, and the panel (`bgElevated`),
31
+ * white, for cards, tables, drawers and popups. The ground sits a visible
32
+ * step under the white (1.08:1), so a panel reads as a panel before its
33
+ * edge does and the data on it is the brightest thing on screen.
34
+ */
27
35
  declare const HISD3_NEUTRALS: {
28
- readonly bgLayout: "#F3F2F0";
29
- readonly bgContainer: "#F3F2F0";
36
+ readonly bgLayout: "#F6F5F2";
37
+ readonly bgContainer: "#F6F5F2";
30
38
  readonly bgElevated: "#FFFFFF";
31
39
  readonly bgFilled: "#E6E4E1";
32
40
  readonly bgFilledHover: "#DBD8D4";
33
- /** Inside a text field: lighter than the page, so it never reads as disabled. */
34
- readonly bgField: "#FAF9F7";
41
+ /**
42
+ * Inside a text field: white, so on the ground a field sits lighter than
43
+ * the page and never reads as disabled, and on a panel it sits flush and
44
+ * its edge defines it. A tint between the two (5.3.0 had #FAF9F7) was too
45
+ * faint to read as anything and made a form on a panel look off-white.
46
+ */
47
+ readonly bgField: "#FFFFFF";
35
48
  /** A table row under the pointer: solid, so a fixed column can sit on it. */
36
49
  readonly bgRowHover: "#EBEAE8";
50
+ /** The same, for a table on a panel (white): a shade off the panel. */
51
+ readonly bgPanelRowHover: "#F6F5F3";
37
52
  /** A translucent hover wash for menu rows and list items. */
38
53
  readonly hover: "rgba(0,0,0,0.04)";
39
54
  readonly text: "#171717";
@@ -63,6 +78,7 @@ declare const HISD3_NEUTRALS_DARK: {
63
78
  readonly bgFilledHover: "#393734";
64
79
  readonly bgField: "#201F1D";
65
80
  readonly bgRowHover: "#22211F";
81
+ readonly bgPanelRowHover: "#2E2D2A";
66
82
  readonly hover: "rgba(255,255,255,0.05)";
67
83
  readonly text: "#EEEDEA";
68
84
  readonly textSecondary: "#C2C0BB";
@@ -1412,6 +1428,8 @@ declare const HISD3_LAYOUT: {
1412
1428
  readonly topBarHeight: 60;
1413
1429
  /** Horizontal padding used by the top bar, title block and page body. */
1414
1430
  readonly pageGutter: 28;
1431
+ /** How far a table's first and last cells and its pager sit in from the panel's edge. */
1432
+ readonly panelInset: 24;
1415
1433
  };
1416
1434
 
1417
1435
  export { AppAnimateGroups, AppAnimates, AppMotionAnimate, AuthType, DialogProvider, Fonts, FooterType, HISD3AvatarMenu, HISD3Button, HISD3FormAutoComplete, HISD3FormCascader, HISD3FormCheckbox, HISD3FormCheckboxGroup, HISD3FormColorPicker, HISD3FormDatePicker, HISD3FormField, HISD3FormInput, HISD3FormInputNumber, HISD3FormMentions, HISD3FormOTP, HISD3FormPassword, HISD3FormRadioGroup, HISD3FormRangePicker, HISD3FormRate, HISD3FormSearch, HISD3FormSegmented, HISD3FormSelect, HISD3FormSlider, HISD3FormSwitch, HISD3FormTextArea, HISD3FormTimePicker, HISD3FormTimeRangePicker, HISD3FormTransfer, HISD3FormTreeSelect, HISD3FormUpload, HISD3FormUploadDragger, HISD3HeaderActions, HISD3Input, HISD3LoginPage, HISD3NotificationButton, HISD3PageBody, HISD3PageHeader, HISD3Provider, HISD3SearchInput, HISD3Select, HISD3SelectLabel, HISD3Sidebar, HISD3Table, HISD3Tabs, HISD3Tag, HISD3_BORDER_PRESETS, HISD3_BORDER_PRESETS_DARK, HISD3_COLORS, HISD3_FONT_FAMILY, HISD3_FONT_WEIGHT_BODY, HISD3_FONT_WEIGHT_HEADING, HISD3_LAYOUT, HISD3_LOGO_SRC, HISD3_NEUTRALS, HISD3_NEUTRALS_DARK, HISD3_PRESETS, HISD3_STATUS, HeaderIconButton, HeaderType, LayoutDirection, LayoutType, MenuStyle, MessageType, NavStyle, RoutePermittedRole, RouteTransition, ThemeMode, ThemeStyle, ThemeStyleRadius, UserMenu, borderVarsCss, contrastRatio, createHisd3Theme, getInitials, hisd3AntdTheme, hisd3VarsCss, mix, normalizeUploadFileList, resolvePrimary, resolvePrimaryPalette, shade, tint, useDialog, useInsideHISD3Provider };