@nulogy/components 8.11.1 → 8.13.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/dist/main.js +2599 -2444
- package/dist/main.module.js +2596 -2442
- package/dist/src/Alert/Alert.d.ts +2 -3
- package/dist/src/Alert/Alert.story.d.ts +0 -1
- package/dist/src/Alert/CloseButton.d.ts +0 -1
- package/dist/src/AsyncSelect/AsyncSelect.story.d.ts +0 -1
- package/dist/src/Banner/Banner.story.d.ts +0 -1
- package/dist/src/Box/Box.story.d.ts +0 -1
- package/dist/src/BrandedNavBar/NavBar.d.ts +0 -1
- package/dist/src/BrandedNavBar/NavBar.story.d.ts +0 -1
- package/dist/src/BrandedNavBar/NulogyLogo.d.ts +0 -1
- package/dist/src/BrandedNavBar/NulogyLogoContainer.d.ts +0 -1
- package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +0 -1
- package/dist/src/Branding/Branding.d.ts +0 -1
- package/dist/src/Branding/Branding.story.d.ts +0 -1
- package/dist/src/Breadcrumbs/Breadcrumbs.story.d.ts +0 -1
- package/dist/src/Button/Button.story.d.ts +0 -1
- package/dist/src/Button/ControlIcon.story.d.ts +0 -1
- package/dist/src/Button/IconicButton.story.d.ts +0 -1
- package/dist/src/ButtonGroup/ButtonGroup.story.d.ts +0 -1
- package/dist/src/Card/Card.story.d.ts +0 -1
- package/dist/src/Checkbox/Checkbox.story.d.ts +0 -1
- package/dist/src/Checkbox/CheckboxGroup.story.d.ts +0 -1
- package/dist/src/DatePicker/DatePicker.d.ts +4 -1
- package/dist/src/DatePicker/DatePicker.story.d.ts +0 -1
- package/dist/src/DatePicker/DatePickerInput.d.ts +2 -0
- package/dist/src/DateRange/DateRange.story.d.ts +0 -1
- package/dist/src/Divider/Divider.d.ts +0 -1
- package/dist/src/Divider/Divider.story.d.ts +0 -1
- package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +0 -1
- package/dist/src/FieldLabel/FieldLabel.d.ts +0 -1
- package/dist/src/FieldLabel/FieldLabel.story.d.ts +0 -1
- package/dist/src/FieldLabel/MaybeFieldLabel.d.ts +0 -1
- package/dist/src/FieldLabel/RequirementText.d.ts +0 -1
- package/dist/src/Flex/Flex.story.d.ts +0 -1
- package/dist/src/Form/Form.story.d.ts +0 -1
- package/dist/src/Icon/Icon.story.d.ts +0 -1
- package/dist/src/Input/Input.story.d.ts +0 -1
- package/dist/src/Input/Prefix.d.ts +0 -1
- package/dist/src/Input/Suffix.d.ts +0 -1
- package/dist/src/Layout/ApplicationFrame.story.d.ts +0 -1
- package/dist/src/Layout/Header.story.d.ts +0 -1
- package/dist/src/Layout/Page.story.d.ts +0 -1
- package/dist/src/Layout/Sidebar.story.d.ts +0 -1
- package/dist/src/Link/Link.story.d.ts +0 -1
- package/dist/src/List/List.story.d.ts +0 -1
- package/dist/src/LoadingAnimation/LoadingAnimation.story.d.ts +0 -1
- package/dist/src/Modal/Modal.story.d.ts +0 -1
- package/dist/src/NDSProvider/NDSProvider.d.ts +0 -1
- package/dist/src/NDSProvider/renderWithNDSProvider.spec-utils.d.ts +1 -1
- package/dist/src/NavBar/DesktopMenu.d.ts +0 -1
- package/dist/src/NavBar/MenuTrigger.d.ts +0 -1
- package/dist/src/NavBar/MobileMenu.d.ts +0 -1
- package/dist/src/NavBar/NavBar.story.d.ts +0 -1
- package/dist/src/NavBar/SubMenuTrigger.d.ts +0 -1
- package/dist/src/Overlay/Overlay.story.d.ts +0 -1
- package/dist/src/Pagination/NextButton.d.ts +0 -1
- package/dist/src/Pagination/Pagination.story.d.ts +0 -1
- package/dist/src/Pagination/PreviousButton.d.ts +0 -1
- package/dist/src/Radio/Radio.story.d.ts +0 -1
- package/dist/src/Radio/RadioGroup.d.ts +0 -1
- package/dist/src/Radio/RadioGroup.story.d.ts +0 -1
- package/dist/src/RangeContainer/RangeContainer.story.d.ts +0 -1
- package/dist/src/Select/Select.story.d.ts +0 -1
- package/dist/src/Select/SelectComponents.d.ts +0 -1
- package/dist/src/Select/SelectOption.d.ts +0 -1
- package/dist/src/StatusIndicator/StatusIndicator.story.d.ts +0 -1
- package/dist/src/Summary/Summary.story.d.ts +0 -1
- package/dist/src/Summary/SummaryDivider.d.ts +0 -1
- package/dist/src/Switcher/Switch.story.d.ts +0 -1
- package/dist/src/Switcher/Switcher.story.d.ts +0 -1
- package/dist/src/Table/BaseTable.story.d.ts +0 -1
- package/dist/src/Table/SortingColumnHeader.d.ts +0 -1
- package/dist/src/Table/SortingColumnHeader.story.d.ts +0 -1
- package/dist/src/Table/Table.d.ts +0 -1
- package/dist/src/Table/Table.story.d.ts +0 -1
- package/dist/src/Table/TableBody.d.ts +0 -1
- package/dist/src/Table/TableFoot.d.ts +0 -1
- package/dist/src/Table/TableWithCustomSorting.story.d.ts +0 -1
- package/dist/src/Table/TableWithFiltering.story.d.ts +0 -1
- package/dist/src/Table/TableWithSelectableRows.story.d.ts +0 -1
- package/dist/src/Table/TableWithServerSidePagination.story.d.ts +0 -1
- package/dist/src/Tabs/Tabs.story.d.ts +0 -1
- package/dist/src/Textarea/Textarea.story.d.ts +0 -1
- package/dist/src/TimePicker/TimePicker.story.d.ts +0 -1
- package/dist/src/TimeRange/TimeRange.story.d.ts +0 -1
- package/dist/src/Toast/Toast.d.ts +30 -7
- package/dist/src/Toast/Toast.story.d.ts +0 -1
- package/dist/src/ToastContainer/ToastContainer.d.ts +20 -0
- package/dist/src/ToastContainer/ToastContainer.story.d.ts +5 -0
- package/dist/src/ToastContainer/ToastFunction.d.ts +14 -0
- package/dist/src/ToastContainer/index.d.ts +2 -0
- package/dist/src/Toggle/Toggle.story.d.ts +0 -1
- package/dist/src/Tokens/Tokens.story.d.ts +0 -1
- package/dist/src/Tooltip/Tooltip.story.d.ts +0 -1
- package/dist/src/TruncatedText/MaybeTooltip.d.ts +0 -1
- package/dist/src/TruncatedText/TruncatedText.d.ts +0 -1
- package/dist/src/TruncatedText/TruncatedText.story.d.ts +0 -1
- package/dist/src/TruncatedText/TruncatedTextFillWidth.d.ts +0 -1
- package/dist/src/TruncatedText/TruncatedTextMaxCharacters.d.ts +0 -1
- package/dist/src/Type/Headings.story.d.ts +0 -1
- package/dist/src/Type/Text.story.d.ts +0 -1
- package/dist/src/Type/Typography.story.d.ts +0 -1
- package/dist/src/Validation/InlineValidation.story.d.ts +0 -1
- package/dist/src/Validation/mapErrorsToList.d.ts +0 -1
- package/dist/src/VisualTests/Select.story.d.ts +0 -1
- package/dist/src/VisualTests/WithSpace.story.d.ts +0 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/pages/ErrorPage.story.d.ts +0 -1
- package/dist/src/pages/LoginPage.story.d.ts +0 -1
- package/dist/src/utils/datePickerLocales.d.ts +1 -1
- package/dist/src/utils/numberFromDimension/index.d.ts +5 -0
- package/dist/src/utils/numberFromDimension/numberFromDimension.spec.d.ts +1 -0
- package/package.json +9 -8
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ToastOptions as ReactHotToastOptions } from "react-hot-toast";
|
|
3
|
+
import { AlertProps as OriginalAlertProps } from "../Alert/Alert";
|
|
4
|
+
type AlertProps = Omit<OriginalAlertProps, "as">;
|
|
5
|
+
type ToastFunction = (children: React.ReactNode, props?: AlertProps, options?: ToastOptions) => void;
|
|
6
|
+
type ToastFunctions = {
|
|
7
|
+
danger: ToastFunction;
|
|
8
|
+
informative: ToastFunction;
|
|
9
|
+
success: ToastFunction;
|
|
10
|
+
warning: ToastFunction;
|
|
11
|
+
};
|
|
12
|
+
declare const toast: ToastFunctions;
|
|
13
|
+
export type ToastOptions = Omit<ReactHotToastOptions, "icon" | "iconTheme">;
|
|
14
|
+
export default toast;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TruncatedTextProps } from "./TruncatedTextProps";
|
|
3
2
|
declare const TruncatedTextFillWidth: ({ element, showTooltip, tooltipProps, children, "data-testid": testId, ...props }: TruncatedTextProps) => JSX.Element;
|
|
4
3
|
export default TruncatedTextFillWidth;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TruncatedTextProps } from "./TruncatedTextProps";
|
|
3
2
|
declare const TruncatedTextMaxCharacters: ({ children, element, indicator, maxCharacters, showTooltip, tooltipProps, "data-testid": testId, ...props }: TruncatedTextProps) => JSX.Element;
|
|
4
3
|
export default TruncatedTextMaxCharacters;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export type { ThemeType } from "./theme.type";
|
|
|
48
48
|
export { TimePicker } from "./TimePicker";
|
|
49
49
|
export { TimeRange } from "./TimeRange";
|
|
50
50
|
export { Toast } from "./Toast";
|
|
51
|
+
export { ToastContainer, toast } from "./ToastContainer";
|
|
51
52
|
export { Toggle } from "./Toggle";
|
|
52
53
|
export { Tooltip } from "./Tooltip";
|
|
53
54
|
export { TruncatedText } from "./TruncatedText";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function registerDatePickerLocales():
|
|
1
|
+
export function registerDatePickerLocales(): void[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.0",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -77,10 +77,11 @@
|
|
|
77
77
|
"@storybook/react": "^6.3.12",
|
|
78
78
|
"@storybook/theming": "^6.1.9",
|
|
79
79
|
"@testing-library/jest-dom": "5.11.5",
|
|
80
|
-
"@testing-library/react": "^
|
|
80
|
+
"@testing-library/react": "^12.1.5",
|
|
81
81
|
"@types/jest": "^29.5.1",
|
|
82
82
|
"@types/node": "^14.0.14",
|
|
83
83
|
"@types/react": "^17.0.9",
|
|
84
|
+
"@types/react-datepicker": "^4.1.0",
|
|
84
85
|
"@types/react-dom": "^17.0.6",
|
|
85
86
|
"@types/styled-components": "^5.1.9",
|
|
86
87
|
"@types/styled-system": "^5.1.11",
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
"babel-loader": "8.0.6",
|
|
93
94
|
"babel-plugin-inline-json-import": "^0.3.2",
|
|
94
95
|
"babel-plugin-require-context-hook": "1.0.0",
|
|
95
|
-
"babel-plugin-styled-components": "1.
|
|
96
|
+
"babel-plugin-styled-components": "2.1.3",
|
|
96
97
|
"babel-preset-react": "6.24.1",
|
|
97
98
|
"chromatic": "^6.0.6",
|
|
98
99
|
"concurrently": "^5.2.0",
|
|
@@ -113,7 +114,6 @@
|
|
|
113
114
|
"mockdate": "^3.0.2",
|
|
114
115
|
"plop": "^2.4.0",
|
|
115
116
|
"prop-types": "15.7.2",
|
|
116
|
-
"puppeteer": "^3.3.0",
|
|
117
117
|
"react": "16.10.2",
|
|
118
118
|
"react-color": "^2.18.1",
|
|
119
119
|
"react-dom": "16.10.2",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"source-map-loader": "^1.0.1",
|
|
130
130
|
"storybook-addon-performance": "^0.17.1",
|
|
131
131
|
"styled-components": "^5.1.0",
|
|
132
|
-
"svg-sprite-loader": "^
|
|
132
|
+
"svg-sprite-loader": "^6.0.11",
|
|
133
133
|
"ts-jest": "^26.1.1",
|
|
134
134
|
"typescript": "4.9.5",
|
|
135
135
|
"typescript-eslint": "^0.0.1-alpha.0",
|
|
@@ -145,18 +145,19 @@
|
|
|
145
145
|
"create-react-context": "^0.3.0",
|
|
146
146
|
"date-fns": "2.23.0",
|
|
147
147
|
"debounce": "^1.2.0",
|
|
148
|
-
"deep-equal": "^
|
|
148
|
+
"deep-equal": "^2.2.1",
|
|
149
149
|
"framer-motion": "^3.1.3",
|
|
150
150
|
"i18next": "^19.3.1",
|
|
151
151
|
"polished": "3.4.4",
|
|
152
152
|
"react-datepicker": "^4.1.0",
|
|
153
153
|
"react-fast-compare": "^3.2.0",
|
|
154
|
+
"react-hot-toast": "^2.4.1",
|
|
154
155
|
"react-i18next": "^11.14.2",
|
|
155
156
|
"react-input-autosize": "^2.2.2",
|
|
156
157
|
"react-modal": "^3.14.4",
|
|
157
|
-
"react-popper": "1.3.
|
|
158
|
+
"react-popper": "1.3.11",
|
|
158
159
|
"react-popper-2": "npm:react-popper@2.2.4",
|
|
159
|
-
"react-resize-detector": "^
|
|
160
|
+
"react-resize-detector": "^9.1.0",
|
|
160
161
|
"react-windowed-select": "2.0.5",
|
|
161
162
|
"smoothscroll-polyfill": "^0.4.4",
|
|
162
163
|
"styled-system": "^5.1.4"
|