hisd3-ui-kit 5.2.1 → 5.3.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 +28 -1
- package/dist/index.cjs.js +109 -31
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +21 -4
- package/dist/index.js +168 -90
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,10 +23,18 @@ 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
|
-
/**
|
|
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: "#
|
|
29
|
-
readonly bgContainer: "#
|
|
36
|
+
readonly bgLayout: "#F6F5F2";
|
|
37
|
+
readonly bgContainer: "#F6F5F2";
|
|
30
38
|
readonly bgElevated: "#FFFFFF";
|
|
31
39
|
readonly bgFilled: "#E6E4E1";
|
|
32
40
|
readonly bgFilledHover: "#DBD8D4";
|
|
@@ -34,6 +42,8 @@ declare const HISD3_NEUTRALS: {
|
|
|
34
42
|
readonly bgField: "#FAF9F7";
|
|
35
43
|
/** A table row under the pointer: solid, so a fixed column can sit on it. */
|
|
36
44
|
readonly bgRowHover: "#EBEAE8";
|
|
45
|
+
/** The same, for a table on a panel (white): a shade off the panel. */
|
|
46
|
+
readonly bgPanelRowHover: "#F6F5F3";
|
|
37
47
|
/** A translucent hover wash for menu rows and list items. */
|
|
38
48
|
readonly hover: "rgba(0,0,0,0.04)";
|
|
39
49
|
readonly text: "#171717";
|
|
@@ -63,6 +73,7 @@ declare const HISD3_NEUTRALS_DARK: {
|
|
|
63
73
|
readonly bgFilledHover: "#393734";
|
|
64
74
|
readonly bgField: "#201F1D";
|
|
65
75
|
readonly bgRowHover: "#22211F";
|
|
76
|
+
readonly bgPanelRowHover: "#2E2D2A";
|
|
66
77
|
readonly hover: "rgba(255,255,255,0.05)";
|
|
67
78
|
readonly text: "#EEEDEA";
|
|
68
79
|
readonly textSecondary: "#C2C0BB";
|
|
@@ -972,7 +983,11 @@ interface HISD3LoginPageProps {
|
|
|
972
983
|
* organisation logo and is deliberately not overridable.
|
|
973
984
|
*/
|
|
974
985
|
organisationName?: ReactNode;
|
|
975
|
-
/**
|
|
986
|
+
/**
|
|
987
|
+
* "soft" (rounded corners, a floating card; the default) or "square": the
|
|
988
|
+
* flat look of the shell — the panel edge to edge, the card with a
|
|
989
|
+
* hairline edge and no shadow, square fields and button.
|
|
990
|
+
*/
|
|
976
991
|
variant?: LoginVariant;
|
|
977
992
|
/**
|
|
978
993
|
* Which side the form card sits on — the brand panel takes the other.
|
|
@@ -1408,6 +1423,8 @@ declare const HISD3_LAYOUT: {
|
|
|
1408
1423
|
readonly topBarHeight: 60;
|
|
1409
1424
|
/** Horizontal padding used by the top bar, title block and page body. */
|
|
1410
1425
|
readonly pageGutter: 28;
|
|
1426
|
+
/** How far a table's first and last cells and its pager sit in from the panel's edge. */
|
|
1427
|
+
readonly panelInset: 24;
|
|
1411
1428
|
};
|
|
1412
1429
|
|
|
1413
1430
|
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 };
|