hisd3-ui-kit 5.5.0 → 5.5.2
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 +22 -1
- package/dist/index.cjs.js +47 -49
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +23 -4
- package/dist/index.js +72 -74
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -113,17 +113,25 @@ declare const HISD3_STATUS: {
|
|
|
113
113
|
readonly warningBg: "#3C2F22";
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* Border weights. "hairline" is the default modern look. `tableRule` is the
|
|
118
|
+
* line between a table's rows and under its heading: a step darker than
|
|
119
|
+
* `border`, because a table sits on a white panel where `border` is a 6%
|
|
120
|
+
* step and the secondary hairline a 2% one, and tall rows floated between
|
|
121
|
+
* lines nobody could see.
|
|
122
|
+
*/
|
|
117
123
|
declare const HISD3_BORDER_PRESETS: {
|
|
118
124
|
readonly hairline: {
|
|
119
125
|
readonly width: 1;
|
|
120
126
|
readonly border: "#D9D5CE";
|
|
121
127
|
readonly borderSecondary: "#E7E4DE";
|
|
128
|
+
readonly tableRule: "#CFCAC2";
|
|
122
129
|
};
|
|
123
130
|
readonly bold: {
|
|
124
131
|
readonly width: 2;
|
|
125
132
|
readonly border: "#1F1F1F";
|
|
126
133
|
readonly borderSecondary: "#CFCDC9";
|
|
134
|
+
readonly tableRule: "#B3B0AA";
|
|
127
135
|
};
|
|
128
136
|
};
|
|
129
137
|
/** The border presets in dark mode. */
|
|
@@ -132,11 +140,13 @@ declare const HISD3_BORDER_PRESETS_DARK: {
|
|
|
132
140
|
readonly width: 1;
|
|
133
141
|
readonly border: "#3A3936";
|
|
134
142
|
readonly borderSecondary: "#2C2B29";
|
|
143
|
+
readonly tableRule: "#434240";
|
|
135
144
|
};
|
|
136
145
|
readonly bold: {
|
|
137
146
|
readonly width: 2;
|
|
138
147
|
readonly border: "#C2C0BB";
|
|
139
148
|
readonly borderSecondary: "#3A3936";
|
|
149
|
+
readonly tableRule: "#55534F";
|
|
140
150
|
};
|
|
141
151
|
};
|
|
142
152
|
type HISD3Borders = keyof typeof HISD3_BORDER_PRESETS;
|
|
@@ -1149,13 +1159,22 @@ interface HISD3HeaderActionsProps {
|
|
|
1149
1159
|
/** Spacing wrapper for the top-right header controls. */
|
|
1150
1160
|
declare const HISD3HeaderActions: React.FC<HISD3HeaderActionsProps>;
|
|
1151
1161
|
|
|
1162
|
+
/**
|
|
1163
|
+
* Rows per page when a list first opens: 10, so a page is short enough to
|
|
1164
|
+
* scan and the pager is in reach. A list that reads its page size from the
|
|
1165
|
+
* URL treats this as the value that leaves the URL clean.
|
|
1166
|
+
*/
|
|
1167
|
+
declare const HISD3_PAGE_SIZE = 10;
|
|
1168
|
+
/** The page-size buttons on the pager, smallest first. */
|
|
1169
|
+
declare const HISD3_PAGE_SIZES: readonly [10, 20, 50];
|
|
1152
1170
|
interface HISD3TablePagination {
|
|
1153
1171
|
current: number;
|
|
1172
|
+
/** Rows on the page; start a list at `HISD3_PAGE_SIZE`. */
|
|
1154
1173
|
pageSize: number;
|
|
1155
1174
|
total: number;
|
|
1156
1175
|
onChange: (page: number, pageSize: number) => void;
|
|
1157
|
-
/** Page-size toggle buttons on the right. Default
|
|
1158
|
-
pageSizeOptions?: number[];
|
|
1176
|
+
/** Page-size toggle buttons on the right. Default `HISD3_PAGE_SIZES`. */
|
|
1177
|
+
pageSizeOptions?: readonly number[];
|
|
1159
1178
|
/** Custom total text. Default "Total 7,223 items". */
|
|
1160
1179
|
renderTotal?: (total: number, range: [number, number]) => React.ReactNode;
|
|
1161
1180
|
/** Hide the page-size buttons. */
|
|
@@ -1467,5 +1486,5 @@ declare const HISD3_LAYOUT: {
|
|
|
1467
1486
|
readonly panelInset: 24;
|
|
1468
1487
|
};
|
|
1469
1488
|
|
|
1470
|
-
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, HISD3PageStatus, 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 };
|
|
1489
|
+
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, HISD3PageStatus, 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_PAGE_SIZE, HISD3_PAGE_SIZES, 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 };
|
|
1471
1490
|
export type { DialogOwnProps, DialogProps, DialogResult, HISD3AutoCompleteRef, HISD3AvatarMenuProps, HISD3Borders, HISD3BreadcrumbItem, HISD3ButtonProps, HISD3ButtonVariant, HISD3CascaderRef, HISD3FormAutoCompleteProps, HISD3FormCascaderProps, HISD3FormCheckboxGroupProps, HISD3FormCheckboxProps, HISD3FormColorPickerProps, HISD3FormDatePickerProps, HISD3FormFieldBaseProps, HISD3FormFieldComponent, HISD3FormFieldProps, HISD3FormFieldShellProps, HISD3FormInputNumberProps, HISD3FormInputProps, HISD3FormMentionsProps, HISD3FormOTPProps, HISD3FormPasswordProps, HISD3FormRadioGroupProps, HISD3FormRangePickerProps, HISD3FormRateProps, HISD3FormSearchProps, HISD3FormSegmentedProps, HISD3FormSelectProps, HISD3FormSliderProps, HISD3FormSwitchProps, HISD3FormTextAreaProps, HISD3FormTimePickerProps, HISD3FormTimeRangePickerProps, HISD3FormTransferProps, HISD3FormTreeSelectProps, HISD3FormUploadProps, HISD3HeaderActionsProps, HISD3InputNumberRef, HISD3InputProps, HISD3LoginPageProps, HISD3LoginValues, HISD3MenuItem, HISD3Notification, HISD3NotificationButtonProps, HISD3OTPRef, HISD3PageHeaderProps, HISD3PageStatusKind, HISD3PageStatusProps, HISD3PickerRef, HISD3Preset, HISD3PrimaryPalette, HISD3ProviderProps, HISD3RangePickerRef, HISD3RateRef, HISD3SearchInputProps, HISD3SelectLabelProps, HISD3SelectOption, HISD3SelectProps, HISD3SidebarProps, HISD3SkeletonInputProps, HISD3SliderRef, HISD3TabItem, HISD3TablePagination, HISD3TableProps, HISD3TabsProps, HISD3TagProps, HISD3TagTone, HISD3TagVariant, HISD3ThemeMode, HISD3ThemeOptions, HISD3TimePickerRef, HISD3TimeRangePickerRef, HISD3TransferRef, HISD3TreeSelectRef, IUserEmployee, LoginSide, LoginVariant, StyledTheme, UserMenuProps };
|