hisd3-ui-kit 5.3.1 → 5.5.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 +20 -1
- package/dist/index.cjs.js +329 -89
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +42 -7
- package/dist/index.js +362 -122
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemeConfig, MenuProps, TableProps, TabsProps, ButtonProps, InputProps, SelectProps, FormItemProps, GetProps, Skeleton, Input, InputNumberProps, GetRef, InputNumber, RadioGroupProps, CheckboxProps, Checkbox, SwitchProps, DatePickerProps, DatePicker, TimePickerProps, TimePicker, TimeRangePickerProps, AutoCompleteProps, AutoComplete, MentionsProps, MentionsRef, CascaderAutoProps, Cascader, TreeSelectProps, TreeSelect, SegmentedProps, TransferProps, Transfer, Slider, RateProps, Rate, ColorPickerProps, UploadProps, UploadFile } from 'antd';
|
|
1
|
+
import { ThemeConfig, MenuProps, ResultProps, TableProps, TabsProps, ButtonProps, InputProps, SelectProps, FormItemProps, GetProps, Skeleton, Input, InputNumberProps, GetRef, InputNumber, RadioGroupProps, CheckboxProps, Checkbox, SwitchProps, DatePickerProps, DatePicker, TimePickerProps, TimePicker, TimeRangePickerProps, AutoCompleteProps, AutoComplete, MentionsProps, MentionsRef, CascaderAutoProps, Cascader, TreeSelectProps, TreeSelect, SegmentedProps, TransferProps, Transfer, Slider, RateProps, Rate, ColorPickerProps, UploadProps, UploadFile } from 'antd';
|
|
2
2
|
import React, { ReactNode, ComponentType } from 'react';
|
|
3
3
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
4
4
|
import * as styled_components from 'styled-components';
|
|
@@ -952,7 +952,35 @@ declare const HISD3PageBody: styled_components_dist_types.IStyledComponentBase<"
|
|
|
952
952
|
*/
|
|
953
953
|
declare const HISD3PageHeader: React.FC<HISD3PageHeaderProps>;
|
|
954
954
|
|
|
955
|
-
|
|
955
|
+
/** What happened to the page: it is not there, it is not for this person, or it broke. */
|
|
956
|
+
type HISD3PageStatusKind = "404" | "403" | "error";
|
|
957
|
+
interface HISD3PageStatusProps extends Omit<ResultProps, "status" | "icon"> {
|
|
958
|
+
/**
|
|
959
|
+
* `"404"`: the page or record does not exist. `"403"`: the person may not
|
|
960
|
+
* see it. `"error"`: it could not be loaded or shown; pair it with a Retry
|
|
961
|
+
* in `extra`.
|
|
962
|
+
*/
|
|
963
|
+
status: HISD3PageStatusKind;
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* A whole-page status: a missing record, a page the person may not open, or
|
|
967
|
+
* one that failed to load. antd `Result` with one quiet icon in place of
|
|
968
|
+
* antd's coloured illustrations, which ignore the theme (a blue figure on
|
|
969
|
+
* every module, and on a dark page). The copy is the app's: `title`,
|
|
970
|
+
* `subTitle` and an `extra` with the way out, usually a primary button back
|
|
971
|
+
* to the list.
|
|
972
|
+
*
|
|
973
|
+
* ```tsx
|
|
974
|
+
* <HISD3PageStatus
|
|
975
|
+
* status="404"
|
|
976
|
+
* title="Folio not found"
|
|
977
|
+
* extra={<HISD3Button variant="primary" onClick={backToList}>Back to Billing Folios</HISD3Button>}
|
|
978
|
+
* />
|
|
979
|
+
* ```
|
|
980
|
+
*/
|
|
981
|
+
declare function HISD3PageStatus({ status, ...rest }: HISD3PageStatusProps): react_jsx_runtime.JSX.Element;
|
|
982
|
+
|
|
983
|
+
type LoginVariant = "soft" | "square" | "sheet";
|
|
956
984
|
/** Which side of the screen the form card sits on. */
|
|
957
985
|
type LoginSide = "left" | "right";
|
|
958
986
|
|
|
@@ -981,7 +1009,10 @@ interface HISD3LoginPageProps {
|
|
|
981
1009
|
panelTitle?: ReactNode;
|
|
982
1010
|
/** Supporting line under the panel headline. Pass `null` to omit it. */
|
|
983
1011
|
panelSubtitle?: ReactNode;
|
|
984
|
-
/**
|
|
1012
|
+
/**
|
|
1013
|
+
* Photo behind the panel. Without one, a subtle pattern is drawn ("soft",
|
|
1014
|
+
* "square") or the brand illustration ("sheet").
|
|
1015
|
+
*/
|
|
985
1016
|
panelImage?: string;
|
|
986
1017
|
/**
|
|
987
1018
|
* Text beside the fixed HISD3 watermark. The watermark's mark itself is the
|
|
@@ -989,9 +1020,13 @@ interface HISD3LoginPageProps {
|
|
|
989
1020
|
*/
|
|
990
1021
|
organisationName?: ReactNode;
|
|
991
1022
|
/**
|
|
992
|
-
* "soft" (rounded corners, a floating card; the default)
|
|
1023
|
+
* "soft" (rounded corners, a floating card; the default); "square": the
|
|
993
1024
|
* flat look of the shell — the panel edge to edge, the card with a
|
|
994
|
-
* hairline edge and no shadow, square fields and button
|
|
1025
|
+
* hairline edge and no shadow, square fields and button; or "sheet": the
|
|
1026
|
+
* panel and the form side by side inside one bordered sheet on the page
|
|
1027
|
+
* ground, the form standing on the sheet with no card of its own, a
|
|
1028
|
+
* compact button, and the panel carrying the headline over an
|
|
1029
|
+
* illustration built from the brand.
|
|
995
1030
|
*/
|
|
996
1031
|
variant?: LoginVariant;
|
|
997
1032
|
/**
|
|
@@ -1432,5 +1467,5 @@ declare const HISD3_LAYOUT: {
|
|
|
1432
1467
|
readonly panelInset: 24;
|
|
1433
1468
|
};
|
|
1434
1469
|
|
|
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 };
|
|
1436
|
-
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, 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 };
|
|
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 };
|
|
1471
|
+
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 };
|