@dfds-ui/react-components 3.0.0-alpha.356fd468 → 3.0.0-alpha.db5f99ee
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/package.json +11 -11
- package/cjs/accordion/Accordion.d.ts +0 -101
- package/cjs/accordion/AccordionContent.d.ts +0 -14
- package/cjs/accordion/AccordionSmall.d.ts +0 -56
- package/cjs/accordion/index.d.ts +0 -3
- package/cjs/app-bar/AppBar.d.ts +0 -13
- package/cjs/app-bar/AppBarContext.d.ts +0 -12
- package/cjs/app-bar/AppBarDrawer.d.ts +0 -5
- package/cjs/app-bar/AppBarIconButton.d.ts +0 -10
- package/cjs/app-bar/AppBarItem.d.ts +0 -23
- package/cjs/app-bar/AppBarListItem.d.ts +0 -15
- package/cjs/app-bar/index.d.ts +0 -7
- package/cjs/assertions/banner/Banner.d.ts +0 -74
- package/cjs/assertions/banner/BannerAction.d.ts +0 -19
- package/cjs/assertions/banner/BannerTypography.d.ts +0 -9
- package/cjs/assertions/banner/index.d.ts +0 -3
- package/cjs/assertions/index.d.ts +0 -2
- package/cjs/assertions/toast/Toast.d.ts +0 -13
- package/cjs/assertions/toast/Toaster.d.ts +0 -19
- package/cjs/assertions/toast/index.d.ts +0 -2
- package/cjs/badge/Badge.d.ts +0 -26
- package/cjs/badge/index.d.ts +0 -2
- package/cjs/button/BadgeIcon.d.ts +0 -7
- package/cjs/button/BaseButton.d.ts +0 -14
- package/cjs/button/Button.d.ts +0 -19
- package/cjs/button/IconButton.d.ts +0 -75
- package/cjs/button/LinkButton.d.ts +0 -8
- package/cjs/button/button-style.d.ts +0 -7
- package/cjs/button/index.d.ts +0 -7
- package/cjs/button-stack/ButtonStack.d.ts +0 -12
- package/cjs/button-stack/index.d.ts +0 -1
- package/cjs/card/Card.d.ts +0 -19
- package/cjs/card/CardActions.d.ts +0 -4
- package/cjs/card/CardContent.d.ts +0 -14
- package/cjs/card/CardMedia.d.ts +0 -19
- package/cjs/card/CardPriceTag.d.ts +0 -25
- package/cjs/card/CardTitle.d.ts +0 -19
- package/cjs/card/index.d.ts +0 -6
- package/cjs/chip/Chip.d.ts +0 -19
- package/cjs/chip/index.d.ts +0 -2
- package/cjs/common/LockBodyScroll.d.ts +0 -26
- package/cjs/common/arrow.d.ts +0 -6
- package/cjs/common/emotionCloneElement.d.ts +0 -2
- package/cjs/common/intent.d.ts +0 -3
- package/cjs/common/miniMoize.d.ts +0 -1
- package/cjs/common/polymorphic.d.ts +0 -25
- package/cjs/common/use-media.d.ts +0 -1
- package/cjs/common/useOnClickOutside.d.ts +0 -3
- package/cjs/common/utils.d.ts +0 -3
- package/cjs/counter/Counter.d.ts +0 -27
- package/cjs/counter/PluralCounter.d.ts +0 -14
- package/cjs/counter/index.d.ts +0 -2
- package/cjs/data-table/DataTable.d.ts +0 -11
- package/cjs/data-table/index.d.ts +0 -1
- package/cjs/divider/Divider.d.ts +0 -26
- package/cjs/divider/index.d.ts +0 -1
- package/cjs/drawer/Drawer.d.ts +0 -32
- package/cjs/drawer/index.d.ts +0 -1
- package/cjs/dropdown-menu/Dropdown.d.ts +0 -46
- package/cjs/dropdown-menu/DropdownContext.d.ts +0 -13
- package/cjs/dropdown-menu/MenuCheckbox.d.ts +0 -34
- package/cjs/dropdown-menu/MenuItem.d.ts +0 -45
- package/cjs/dropdown-menu/MenuTitle.d.ts +0 -14
- package/cjs/dropdown-menu/index.d.ts +0 -5
- package/cjs/elevation/index.d.ts +0 -3
- package/cjs/flexbox/FlexBox.d.ts +0 -100
- package/cjs/flexbox/index.d.ts +0 -1
- package/cjs/footer/Footer.d.ts +0 -7
- package/cjs/footer/index.d.ts +0 -1
- package/cjs/forms/assistive-text/AssistiveText.d.ts +0 -7
- package/cjs/forms/asterisk/Asterisk.d.ts +0 -3
- package/cjs/forms/checkbox/Checkbox.d.ts +0 -39
- package/cjs/forms/checkbox/ExampleControlComponent.d.ts +0 -11
- package/cjs/forms/checkbox/index.d.ts +0 -1
- package/cjs/forms/email-field/EmailField.d.ts +0 -22
- package/cjs/forms/error-text/ErrorText.d.ts +0 -7
- package/cjs/forms/field/Field.d.ts +0 -11
- package/cjs/forms/index.d.ts +0 -21
- package/cjs/forms/input/Input.d.ts +0 -19
- package/cjs/forms/input/InputComposition.d.ts +0 -43
- package/cjs/forms/label/Label.d.ts +0 -11
- package/cjs/forms/number-field/NumberField.d.ts +0 -22
- package/cjs/forms/password-field/PasswordField.d.ts +0 -4
- package/cjs/forms/radio/Radio.d.ts +0 -35
- package/cjs/forms/reactselect/ReactSelect.d.ts +0 -25
- package/cjs/forms/searchable-select/AsyncSearchableSelect.d.ts +0 -6
- package/cjs/forms/select/Select.d.ts +0 -16
- package/cjs/forms/select-field/SelectField.d.ts +0 -25
- package/cjs/forms/switch/Switch.d.ts +0 -13
- package/cjs/forms/tel-field/TelField.d.ts +0 -22
- package/cjs/forms/text-field/TextField.d.ts +0 -43
- package/cjs/global-styles/GlobalStyles.d.ts +0 -3
- package/cjs/global-styles/ResetStyles.d.ts +0 -9
- package/cjs/global-styles/sanitize.d.ts +0 -1
- package/cjs/grid/Column.d.ts +0 -10
- package/cjs/grid/Container.d.ts +0 -15
- package/cjs/grid/index.d.ts +0 -2
- package/cjs/hero/Hero.d.ts +0 -10
- package/cjs/hero/index.d.ts +0 -1
- package/cjs/hero/stripes.d.ts +0 -6
- package/cjs/ie-banner/IEBanner.d.ts +0 -12
- package/cjs/ie-banner/index.d.ts +0 -1
- package/cjs/index.d.ts +0 -43
- package/cjs/layout/LayoutLegacy.d.ts +0 -2
- package/cjs/lists/FeatureList.d.ts +0 -22
- package/cjs/lists/ListAddon.d.ts +0 -11
- package/cjs/lists/ListDivider.d.ts +0 -5
- package/cjs/lists/ListIcon.d.ts +0 -18
- package/cjs/lists/ListItem.d.ts +0 -46
- package/cjs/lists/ListText.d.ts +0 -39
- package/cjs/lists/ListTextGroup.d.ts +0 -15
- package/cjs/lists/ListTitle.d.ts +0 -4
- package/cjs/lists/index.d.ts +0 -8
- package/cjs/loader/DfdsLoader.d.ts +0 -9
- package/cjs/loader/Loader.d.ts +0 -6
- package/cjs/loader/index.d.ts +0 -2
- package/cjs/localization/LocaleFlag.d.ts +0 -13
- package/cjs/localization/index.d.ts +0 -2
- package/cjs/localization/locales.d.ts +0 -35
- package/cjs/logo/Logo.d.ts +0 -11
- package/cjs/logo/index.d.ts +0 -1
- package/cjs/media/index.d.ts +0 -2
- package/cjs/menu/Menu.d.ts +0 -7
- package/cjs/menu/index.d.ts +0 -2
- package/cjs/mobile-stepper/MobileStepper.d.ts +0 -25
- package/cjs/mobile-stepper/index.d.ts +0 -1
- package/cjs/nav-bar/NavBar.d.ts +0 -37
- package/cjs/nav-bar/index.d.ts +0 -2
- package/cjs/nav-menu/NavMenuItem.d.ts +0 -10
- package/cjs/nav-menu/index.d.ts +0 -1
- package/cjs/pagination/Pagination.d.ts +0 -44
- package/cjs/pagination/Pagination.styles.d.ts +0 -6
- package/cjs/pagination/index.d.ts +0 -1
- package/cjs/popper/Popper.d.ts +0 -29
- package/cjs/popper/index.d.ts +0 -1
- package/cjs/progress-bar/ProgressBar.d.ts +0 -8
- package/cjs/progress-bar/index.d.ts +0 -2
- package/cjs/schedule/ScheduleItem.d.ts +0 -19
- package/cjs/schedule/ScheduleList.d.ts +0 -11
- package/cjs/schedule/index.d.ts +0 -2
- package/cjs/side-sheet/SideSheet.d.ts +0 -57
- package/cjs/side-sheet/SideSheetCloseButton.d.ts +0 -13
- package/cjs/side-sheet/SideSheetContent.d.ts +0 -7
- package/cjs/side-sheet/SideSheetFooter.d.ts +0 -7
- package/cjs/side-sheet/SideSheetHeader.d.ts +0 -9
- package/cjs/side-sheet/SideSheetHeadline.d.ts +0 -7
- package/cjs/side-sheet/index.d.ts +0 -4
- package/cjs/site-layout/SiteLayout.d.ts +0 -40
- package/cjs/site-layout/index.d.ts +0 -2
- package/cjs/skeleton/Skeleton.d.ts +0 -8
- package/cjs/skeleton/index.d.ts +0 -1
- package/cjs/social-media-link-list/SocialMediaLinkList.d.ts +0 -24
- package/cjs/social-media-link-list/index.d.ts +0 -1
- package/cjs/spinner/Spinner.d.ts +0 -58
- package/cjs/spinner/index.d.ts +0 -1
- package/cjs/step/Step.d.ts +0 -45
- package/cjs/step/Step.styles.d.ts +0 -4
- package/cjs/step/StepButton.d.ts +0 -4
- package/cjs/step/StepContent.d.ts +0 -6
- package/cjs/step/StepContext.d.ts +0 -12
- package/cjs/step/StepLabel.d.ts +0 -7
- package/cjs/step/index.d.ts +0 -1
- package/cjs/stepper/Stepper.d.ts +0 -25
- package/cjs/stepper/StepperContext.d.ts +0 -9
- package/cjs/stepper/index.d.ts +0 -1
- package/cjs/stepper-feedback-message/StepperFeedbackMessage.d.ts +0 -5
- package/cjs/stepper-feedback-message/index.d.ts +0 -1
- package/cjs/styles/index.d.ts +0 -3
- package/cjs/styles/media.d.ts +0 -21
- package/cjs/styles/rem.d.ts +0 -1
- package/cjs/styles/style-helpers.d.ts +0 -1
- package/cjs/styles/theme.d.ts +0 -39
- package/cjs/surface/Surface.d.ts +0 -33
- package/cjs/surface/index.d.ts +0 -1
- package/cjs/tab/Tab.d.ts +0 -12
- package/cjs/tab/TabPanel.d.ts +0 -7
- package/cjs/tab/Tabs.d.ts +0 -11
- package/cjs/tab/TabsContext.d.ts +0 -16
- package/cjs/tab/index.d.ts +0 -4
- package/cjs/table/Table.d.ts +0 -22
- package/cjs/table/TableBody.d.ts +0 -9
- package/cjs/table/TableDataCell.d.ts +0 -14
- package/cjs/table/TableHead.d.ts +0 -14
- package/cjs/table/TableHeaderCell.d.ts +0 -15
- package/cjs/table/TableRow.d.ts +0 -17
- package/cjs/table/index.d.ts +0 -6
- package/cjs/test/Test.d.ts +0 -8
- package/cjs/tooltip/Tooltip.d.ts +0 -32
- package/cjs/tooltip/index.d.ts +0 -2
- package/cjs/typography/Headlines.d.ts +0 -71
- package/cjs/typography/Text.d.ts +0 -4
- package/cjs/typography/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Shared react components within DFDS",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "3.0.0-alpha.
|
|
6
|
+
"version": "3.0.0-alpha.db5f99ee",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
"react-select": "^5.10.2"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dfds-ui/colors": "3.0.0-alpha.
|
|
21
|
-
"@dfds-ui/fonts": "3.0.0-alpha.
|
|
22
|
-
"@dfds-ui/hooks": "3.0.0-alpha.
|
|
23
|
-
"@dfds-ui/icons": "3.0.0-alpha.
|
|
24
|
-
"@dfds-ui/spacing": "3.0.0-alpha.
|
|
25
|
-
"@dfds-ui/theme": "3.0.0-alpha.
|
|
26
|
-
"@dfds-ui/typography": "3.0.0-alpha.
|
|
20
|
+
"@dfds-ui/colors": "3.0.0-alpha.db5f99ee",
|
|
21
|
+
"@dfds-ui/fonts": "3.0.0-alpha.db5f99ee",
|
|
22
|
+
"@dfds-ui/hooks": "3.0.0-alpha.db5f99ee",
|
|
23
|
+
"@dfds-ui/icons": "3.0.0-alpha.db5f99ee",
|
|
24
|
+
"@dfds-ui/spacing": "3.0.0-alpha.db5f99ee",
|
|
25
|
+
"@dfds-ui/theme": "3.0.0-alpha.db5f99ee",
|
|
26
|
+
"@dfds-ui/typography": "3.0.0-alpha.db5f99ee",
|
|
27
27
|
"@kunukn/react-collapse": "^3.0.15",
|
|
28
|
-
"@mui/material": "^
|
|
29
|
-
"@mui/system": "^
|
|
28
|
+
"@mui/material": "^9.0.1",
|
|
29
|
+
"@mui/system": "^9.0.1",
|
|
30
30
|
"classnames": "^2.5.1",
|
|
31
31
|
"humps": "^2.0.1",
|
|
32
32
|
"uuid": "^14.0.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "db5f99ee9763b1aa1c9178d36546b5a4dfae978d",
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { CollapseProps } from '@kunukn/react-collapse';
|
|
3
|
-
export type AccordionHeaderProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Add heading to the Accordion.
|
|
6
|
-
*/
|
|
7
|
-
heading?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Add secondary heading to the Accordion.
|
|
10
|
-
*/
|
|
11
|
-
secondaryHeading?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Specify the duration of the transition between open and closed.
|
|
14
|
-
*/
|
|
15
|
-
transitionDuration?: string;
|
|
16
|
-
/**
|
|
17
|
-
* If set to `true` the Accordion is open.
|
|
18
|
-
*/
|
|
19
|
-
isOpen?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Disable the Accordion.
|
|
22
|
-
*/
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Use the Accordion without animation.
|
|
26
|
-
*/
|
|
27
|
-
noAnimation?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Hide the secondary heading when the Accordion is opened.
|
|
30
|
-
*/
|
|
31
|
-
noSecondaryHeadingWhenOpen?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Callback when toggling the accordion
|
|
34
|
-
*/
|
|
35
|
-
onToggle?: () => void;
|
|
36
|
-
};
|
|
37
|
-
export declare const AccordionHeader: React.FunctionComponent<AccordionHeaderProps>;
|
|
38
|
-
export type AccordionProps = {
|
|
39
|
-
/**
|
|
40
|
-
* Add heading to the Accordion.
|
|
41
|
-
*/
|
|
42
|
-
heading?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Add a custom header to the Accordion.
|
|
45
|
-
*/
|
|
46
|
-
header?: ReactNode;
|
|
47
|
-
/**
|
|
48
|
-
* Add secondary heading to the Accordion.
|
|
49
|
-
*/
|
|
50
|
-
secondaryHeading?: ReactNode;
|
|
51
|
-
/**
|
|
52
|
-
* Specify the duration of the transition between open and closed.
|
|
53
|
-
*/
|
|
54
|
-
transitionDuration?: string;
|
|
55
|
-
/**
|
|
56
|
-
* If set to `true` the Accordion is open.
|
|
57
|
-
*/
|
|
58
|
-
isOpen?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Disable the Accordion.
|
|
61
|
-
*/
|
|
62
|
-
disabled?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Callback when toggling the accordion
|
|
65
|
-
*/
|
|
66
|
-
onToggle?: () => void;
|
|
67
|
-
/**
|
|
68
|
-
* Props passed on to the Collapse component
|
|
69
|
-
*/
|
|
70
|
-
collapseProps?: CollapseProps;
|
|
71
|
-
/**
|
|
72
|
-
* Use the Accordion without animation.
|
|
73
|
-
*/
|
|
74
|
-
noAnimation?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* The compressed variant removes the `margin-bottom` of the Accordion.
|
|
77
|
-
*/
|
|
78
|
-
variant?: 'default' | 'compressed';
|
|
79
|
-
/**
|
|
80
|
-
* Specify the content padding of the Accordion.
|
|
81
|
-
*/
|
|
82
|
-
type?: 'small' | 'medium';
|
|
83
|
-
/**
|
|
84
|
-
* Add a className to the Accordion.
|
|
85
|
-
*/
|
|
86
|
-
className?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Hide the secondary heading when the Accordion is opened.
|
|
89
|
-
*/
|
|
90
|
-
noSecondaryHeadingWhenOpen?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Hide the Divider (the grey line under the header)
|
|
93
|
-
*/
|
|
94
|
-
hideDivider?: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Updates component with children prop accordingly to the @types update
|
|
97
|
-
*/
|
|
98
|
-
children?: ReactNode;
|
|
99
|
-
};
|
|
100
|
-
export declare const Accordion: React.FunctionComponent<AccordionProps>;
|
|
101
|
-
export default Accordion;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type AccordionContentProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* The compressed variant removes the `margin-bottom` of the Accordion.
|
|
6
|
-
*/
|
|
7
|
-
variant?: 'default' | 'compressed';
|
|
8
|
-
/**
|
|
9
|
-
* Specify the content padding of the Accordion.
|
|
10
|
-
*/
|
|
11
|
-
type?: 'small' | 'medium';
|
|
12
|
-
};
|
|
13
|
-
export declare const AccordionContent: React.FunctionComponent<AccordionContentProps>;
|
|
14
|
-
export default AccordionContent;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type AccordionSmallHeaderProps = {
|
|
3
|
-
/**
|
|
4
|
-
* Add a heading to the Accordion.
|
|
5
|
-
*/
|
|
6
|
-
heading: string;
|
|
7
|
-
/**
|
|
8
|
-
* Add a secondary heading to the Accordion.
|
|
9
|
-
*/
|
|
10
|
-
secondaryHeading?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Specify the duration of the transition between open and closed.
|
|
13
|
-
*/
|
|
14
|
-
transitionDuration?: string;
|
|
15
|
-
/**
|
|
16
|
-
* If set to `true` the Accordion is open.
|
|
17
|
-
*/
|
|
18
|
-
isOpen?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Disable the Accordion.
|
|
21
|
-
*/
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Use the Accordion without animation.
|
|
25
|
-
*/
|
|
26
|
-
noAnimation?: boolean;
|
|
27
|
-
onToggle?: () => void;
|
|
28
|
-
};
|
|
29
|
-
export declare const AccordionSmallHeader: React.FunctionComponent<AccordionSmallHeaderProps>;
|
|
30
|
-
export type AccordionSmallProps = {
|
|
31
|
-
children?: React.ReactNode;
|
|
32
|
-
/**
|
|
33
|
-
* Add a heading to the Accordion.
|
|
34
|
-
*/
|
|
35
|
-
heading: string;
|
|
36
|
-
/**
|
|
37
|
-
* Specify the duration of the transition between open and closed.
|
|
38
|
-
*/
|
|
39
|
-
transitionDuration?: string;
|
|
40
|
-
/**
|
|
41
|
-
* If set to `true` the Accordion is open.
|
|
42
|
-
*/
|
|
43
|
-
isOpen?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Disable the Accordion.
|
|
46
|
-
*/
|
|
47
|
-
disabled?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Use the Accordion without animation.
|
|
50
|
-
*/
|
|
51
|
-
noAnimation?: boolean;
|
|
52
|
-
onToggle?: () => void;
|
|
53
|
-
collapseProps?: object;
|
|
54
|
-
};
|
|
55
|
-
export declare const AccordionSmall: React.FunctionComponent<AccordionSmallProps>;
|
|
56
|
-
export default AccordionSmall;
|
package/cjs/accordion/index.d.ts
DELETED
package/cjs/app-bar/AppBar.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Breakpoint = 's' | 'm' | 'l';
|
|
3
|
-
declare const AppBar: ({ children, leftActions, actions, logoProps, menuBreakpoint, handleMenuButtonClick, hasMenuButton, ...rest }: {
|
|
4
|
-
leftActions?: React.ReactNode;
|
|
5
|
-
actions?: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
logoProps?: any;
|
|
8
|
-
menuBreakpoint?: Breakpoint;
|
|
9
|
-
hasMenuButton?: boolean;
|
|
10
|
-
handleMenuButtonClick?: () => void;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
}) => React.JSX.Element;
|
|
13
|
-
export default AppBar;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type AppBarState = {
|
|
3
|
-
drawerOpen: boolean;
|
|
4
|
-
setDrawerOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
-
height: number;
|
|
6
|
-
setHeight: React.Dispatch<React.SetStateAction<number>>;
|
|
7
|
-
};
|
|
8
|
-
export declare const AppBarProvider: ({ children }: {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}) => React.JSX.Element;
|
|
11
|
-
export declare const useAppBarContext: () => AppBarState;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type AppBarIconButtonProps = {
|
|
3
|
-
isActive?: boolean;
|
|
4
|
-
ariaLabel: string;
|
|
5
|
-
icon: React.ElementType;
|
|
6
|
-
showTooltip?: boolean;
|
|
7
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
8
|
-
};
|
|
9
|
-
declare const AppBarIconButton: ({ isActive, ariaLabel, showTooltip, ...rest }: AppBarIconButtonProps) => React.JSX.Element;
|
|
10
|
-
export default AppBarIconButton;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PopperProps } from '@mui/material';
|
|
3
|
-
export type AppBarItemProps = {
|
|
4
|
-
id: string;
|
|
5
|
-
Icon?: React.ElementType;
|
|
6
|
-
LeadingIcon?: React.ElementType;
|
|
7
|
-
TrailingIcon?: React.ElementType;
|
|
8
|
-
title: string;
|
|
9
|
-
divider?: 'start' | 'end' | 'both';
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
as?: React.ElementType;
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
placement?: 'bottom-start' | 'bottom-end';
|
|
14
|
-
isActive?: boolean;
|
|
15
|
-
AppBarPopperProps?: Omit<PopperProps, 'open'>;
|
|
16
|
-
};
|
|
17
|
-
export declare const MenuPopOverContext: React.Context<{
|
|
18
|
-
handlePopoverClose: () => void;
|
|
19
|
-
} | undefined>;
|
|
20
|
-
export declare const AppBarPopper: import("@emotion/styled").StyledComponent<PopperProps & React.RefAttributes<HTMLDivElement> & {
|
|
21
|
-
theme?: import("@emotion/react").Theme;
|
|
22
|
-
}, {}, {}>;
|
|
23
|
-
export declare const AppBarItem: ({ id, Icon, LeadingIcon, TrailingIcon, title, divider, children, onClick, placement, isActive, as, AppBarPopperProps, ...rest }: AppBarItemProps & React.JSX.IntrinsicElements["a"]) => React.JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const AppBarListItem: import("@emotion/styled").StyledComponent<{
|
|
2
|
-
multiline?: boolean;
|
|
3
|
-
selected?: boolean;
|
|
4
|
-
condensed?: boolean;
|
|
5
|
-
tabIndex?: number;
|
|
6
|
-
clickable?: boolean;
|
|
7
|
-
divider?: boolean;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
flexBoxProps?: import("../flexbox").FlexBoxProps;
|
|
10
|
-
className?: string;
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
} & import("..").PolymorphicComponentProps & {
|
|
13
|
-
theme?: import("@emotion/react").Theme;
|
|
14
|
-
}, {}, {}>;
|
|
15
|
-
export default AppBarListItem;
|
package/cjs/app-bar/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { useAppBarContext, AppBarProvider } from './AppBarContext';
|
|
2
|
-
import { AppBarItem, MenuPopOverContext } from './AppBarItem';
|
|
3
|
-
export { default as AppBarDrawer } from './AppBarDrawer';
|
|
4
|
-
export { default as AppBar } from './AppBar';
|
|
5
|
-
export { default as AppBarIconButton } from './AppBarIconButton';
|
|
6
|
-
export { default as AppBarListItem } from './AppBarListItem';
|
|
7
|
-
export { useAppBarContext, AppBarProvider, AppBarItem, MenuPopOverContext };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import React, { ElementType, FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import { Intent } from '../../common/intent';
|
|
3
|
-
export type BannerVariant = 'lowEmphasis' | 'mediumEmphasis' | 'highEmphasis' | 'default' | 'inverted';
|
|
4
|
-
export type BannerStickyPosition = 'top' | 'bottom' | 'bottom-right';
|
|
5
|
-
export type BannerProps = {
|
|
6
|
-
/**
|
|
7
|
-
* Specifies the intent of the Banner (change the color of the banner icon to match intended status)
|
|
8
|
-
*/
|
|
9
|
-
intent?: Intent;
|
|
10
|
-
/**
|
|
11
|
-
* Actions to be displayed inside the banner
|
|
12
|
-
*/
|
|
13
|
-
actions?: ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Class name to be added to the banner
|
|
16
|
-
*/
|
|
17
|
-
className?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Add a close icon in the top-right corner which will invoke the provided callback
|
|
20
|
-
*/
|
|
21
|
-
onRequestClose?: () => void;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies the ariaLabel to be added to the close(x) button
|
|
24
|
-
*/
|
|
25
|
-
closeLabel?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Specifies the variation of the banner.
|
|
28
|
-
*
|
|
29
|
-
* `default` and `inverted` variants are deprecated
|
|
30
|
-
*/
|
|
31
|
-
variant?: BannerVariant;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies if the Banner should be displayed with `position: fixed;`
|
|
34
|
-
*
|
|
35
|
-
* When the value is `undefined` the Banner default to being sticky if `variant` is set to `inverted`
|
|
36
|
-
*/
|
|
37
|
-
sticky?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Specifies the position of the Sticky Banner.
|
|
40
|
-
*/
|
|
41
|
-
stickyPosition?: BannerStickyPosition;
|
|
42
|
-
/**
|
|
43
|
-
* Specifies if the Banner should have a border/divider at the bottom.
|
|
44
|
-
*/
|
|
45
|
-
divider?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Specify a custom icon to replace the one derived from `intent`
|
|
48
|
-
*
|
|
49
|
-
* @type {ElementType<{ className?: string }>}
|
|
50
|
-
*/
|
|
51
|
-
icon?: ElementType<{
|
|
52
|
-
className?: string;
|
|
53
|
-
}>;
|
|
54
|
-
/**
|
|
55
|
-
* Specifies if the actions should always appear below the content
|
|
56
|
-
*/
|
|
57
|
-
wrapActions?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Content of the Banner
|
|
60
|
-
*/
|
|
61
|
-
children?: ReactNode;
|
|
62
|
-
/**
|
|
63
|
-
* Specifies if the banner should be narrow
|
|
64
|
-
*/
|
|
65
|
-
isNarrow?: boolean;
|
|
66
|
-
};
|
|
67
|
-
interface BannerContextInterface {
|
|
68
|
-
intent: NonNullable<BannerProps['intent']>;
|
|
69
|
-
variant: NonNullable<BannerProps['variant']>;
|
|
70
|
-
}
|
|
71
|
-
export declare const BannerContext: React.Context<BannerContextInterface | undefined>;
|
|
72
|
-
export declare const useBannerContext: () => BannerContextInterface;
|
|
73
|
-
export declare const Banner: FunctionComponent<BannerProps>;
|
|
74
|
-
export default Banner;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
export type BannerActionVariation = 'primary' | 'secondary' | 'primary-thick' | 'secondary-thick';
|
|
3
|
-
export interface BannerActionProps {
|
|
4
|
-
variation?: BannerActionVariation;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
/**
|
|
7
|
-
* className to be assigned to the button
|
|
8
|
-
*/
|
|
9
|
-
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
* HTML tag or custom component being rendered
|
|
12
|
-
*/
|
|
13
|
-
as?: React.ElementType;
|
|
14
|
-
/**
|
|
15
|
-
* Updates component with children prop accordingly to the @types update
|
|
16
|
-
*/
|
|
17
|
-
children?: ReactNode;
|
|
18
|
-
}
|
|
19
|
-
export declare const BannerAction: React.FunctionComponent<BannerActionProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const BannerHeadline: React.FunctionComponent<{
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const BannerParagraph: React.FunctionComponent<{
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
className?: string;
|
|
9
|
-
}>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Intent } from '../../common/intent';
|
|
3
|
-
export type ToastProps = {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
intent?: Intent;
|
|
6
|
-
className?: string;
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
onRequestClose?: () => void;
|
|
9
|
-
actionLabel?: string;
|
|
10
|
-
onRequestAction?: () => void;
|
|
11
|
-
};
|
|
12
|
-
declare const Toast: React.FunctionComponent<ToastProps>;
|
|
13
|
-
export default Toast;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { ToastProps } from './Toast';
|
|
3
|
-
type TimeoutType = {
|
|
4
|
-
timeout?: number;
|
|
5
|
-
};
|
|
6
|
-
type ToasterState = {
|
|
7
|
-
open: boolean;
|
|
8
|
-
hasActive: boolean;
|
|
9
|
-
toastProps: ToastProps | null;
|
|
10
|
-
} & TimeoutType;
|
|
11
|
-
export declare const useToaster: () => {
|
|
12
|
-
addToast: (props: ToastProps & TimeoutType) => Promise<void>;
|
|
13
|
-
state: ToasterState;
|
|
14
|
-
};
|
|
15
|
-
declare const Toaster: FunctionComponent<{
|
|
16
|
-
children: React.ReactNode | React.ReactNode[];
|
|
17
|
-
globalTimeout?: number;
|
|
18
|
-
}>;
|
|
19
|
-
export default Toaster;
|
package/cjs/badge/Badge.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Intent } from '../common/intent';
|
|
3
|
-
import { FlexBoxProps } from '../flexbox/FlexBox';
|
|
4
|
-
export type BadgeProps = {
|
|
5
|
-
/**
|
|
6
|
-
* Specifies the intent of the Badge
|
|
7
|
-
*/
|
|
8
|
-
intent?: Intent;
|
|
9
|
-
/**
|
|
10
|
-
* Text to be shown in the badge (usually just a string)
|
|
11
|
-
*/
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Class name to be added to the badge
|
|
15
|
-
*/
|
|
16
|
-
className?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Props controlling the flexbox
|
|
19
|
-
*/
|
|
20
|
-
flexBoxProps?: FlexBoxProps;
|
|
21
|
-
/**
|
|
22
|
-
* HTML tag or custom component being rendered
|
|
23
|
-
*/
|
|
24
|
-
as?: React.ElementType;
|
|
25
|
-
};
|
|
26
|
-
export default function Badge({ as, children, intent, flexBoxProps, ...rest }: BadgeProps): React.JSX.Element;
|
package/cjs/badge/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const variations: readonly ["primary", "secondary", "outlined", "text", "danger", "link"];
|
|
3
|
-
export type BaseButtonProps = React.PropsWithoutRef<React.JSX.IntrinsicElements['button']>;
|
|
4
|
-
export type ButtonVariation = (typeof variations)[number];
|
|
5
|
-
export type ButtonVariationProps = {
|
|
6
|
-
variation?: ButtonVariation;
|
|
7
|
-
};
|
|
8
|
-
export declare const BaseButton: import("@emotion/styled").StyledComponent<{
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
|
-
as?: React.ElementType;
|
|
11
|
-
} & {
|
|
12
|
-
selected?: boolean;
|
|
13
|
-
}, React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
14
|
-
export declare function getButtonVariationStyle(variation?: ButtonVariation): import("@emotion/utils").SerializedStyles;
|
package/cjs/button/Button.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseButtonProps, ButtonVariationProps } from './BaseButton';
|
|
3
|
-
type ButtonSize = 'medium' | 'small';
|
|
4
|
-
type IconAlign = 'left' | 'right';
|
|
5
|
-
export type ButtonProps = BaseButtonProps & ButtonVariationProps & {
|
|
6
|
-
className?: string;
|
|
7
|
-
replace?: boolean;
|
|
8
|
-
submitting?: boolean;
|
|
9
|
-
fillWidth?: boolean;
|
|
10
|
-
size?: ButtonSize;
|
|
11
|
-
icon?: React.ReactNode;
|
|
12
|
-
iconAlign?: IconAlign;
|
|
13
|
-
iconSpacing?: string;
|
|
14
|
-
iconColor?: string;
|
|
15
|
-
as?: React.ElementType;
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
};
|
|
18
|
-
declare const Button: ({ variation, children, submitting, size, icon, iconSpacing, iconAlign, iconColor, title, disabled, ...rest }: ButtonProps) => React.JSX.Element;
|
|
19
|
-
export default Button;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import React, { ElementType, ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { OverlayOptions } from '@dfds-ui/theme/states';
|
|
3
|
-
import { PolymorphicComponentProps } from '../common/polymorphic';
|
|
4
|
-
export type IconButtonSize = 'small' | 'medium' | 'large' | 's' | 'm' | 'l';
|
|
5
|
-
export interface IconButtonProps extends PolymorphicComponentProps, ComponentPropsWithRef<'button'> {
|
|
6
|
-
/**
|
|
7
|
-
* Icon to be displayed on the button.
|
|
8
|
-
*/
|
|
9
|
-
icon: ElementType;
|
|
10
|
-
/**
|
|
11
|
-
* Text of the aria-label as well as the fallback value used for tooltip.
|
|
12
|
-
*/
|
|
13
|
-
ariaLabel: string;
|
|
14
|
-
/**
|
|
15
|
-
* Size of the button.
|
|
16
|
-
*/
|
|
17
|
-
size?: IconButtonSize;
|
|
18
|
-
/**
|
|
19
|
-
* className to be assigned to the button.
|
|
20
|
-
*/
|
|
21
|
-
className?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Disable button.
|
|
24
|
-
*/
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Disable overlay states.
|
|
28
|
-
*/
|
|
29
|
-
disableOverlay?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Disable tooltip.
|
|
32
|
-
*/
|
|
33
|
-
disableTooltip?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Text of the tooltip, if none, aria-label will be used.
|
|
36
|
-
*/
|
|
37
|
-
tooltip?: string;
|
|
38
|
-
/**
|
|
39
|
-
* Color of the button and the overlay state.
|
|
40
|
-
*/
|
|
41
|
-
color?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Override color to be used for the hover state.
|
|
44
|
-
*/
|
|
45
|
-
hoverColor?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Override color to be used for the active state.
|
|
48
|
-
*/
|
|
49
|
-
activeColor?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Override color to be used for the focus state.
|
|
52
|
-
*/
|
|
53
|
-
focusColor?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Override the overlay options to use.
|
|
56
|
-
*/
|
|
57
|
-
overlayOptions?: OverlayOptions;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Helper function returning the default icon size when rendering an IconButton in the specified size.
|
|
61
|
-
* @param size : IconButtonSize;
|
|
62
|
-
* @returns The default icon size
|
|
63
|
-
*/
|
|
64
|
-
export declare const getDefaultIconButtonIconSize: (size: IconButtonSize) => "1.5rem" | "1.25rem" | "2rem";
|
|
65
|
-
/**
|
|
66
|
-
* Helper function returning the default dimensions of an IconButton in the specified size.
|
|
67
|
-
* @param size : IconButtonSize;
|
|
68
|
-
* @returns The default size
|
|
69
|
-
*/
|
|
70
|
-
export declare const getDefaultIconButtonDimensions: (size: IconButtonSize) => {
|
|
71
|
-
height: string;
|
|
72
|
-
width: string;
|
|
73
|
-
};
|
|
74
|
-
declare const IconButton: ({ type, tooltip, title, size, icon: Icon, disableTooltip, disableOverlay, disabled, color, hoverColor, focusColor, activeColor, overlayOptions, as, ariaLabel, ...rest }: IconButtonProps) => React.JSX.Element;
|
|
75
|
-
export default IconButton;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ButtonProps } from './Button';
|
|
3
|
-
export type LinkButtonProps = React.PropsWithoutRef<React.JSX.IntrinsicElements['a']> & ButtonProps & {
|
|
4
|
-
href?: string;
|
|
5
|
-
target?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const LinkButton: (props: LinkButtonProps) => React.JSX.Element;
|
|
8
|
-
export default LinkButton;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const baseButtonStyle: import("@emotion/utils").SerializedStyles;
|
|
2
|
-
export declare const primaryButtonStyles: import("@emotion/utils").SerializedStyles;
|
|
3
|
-
export declare const secondaryButtonStyles: import("@emotion/utils").SerializedStyles;
|
|
4
|
-
export declare const outlinedButtonStyles: import("@emotion/utils").SerializedStyles;
|
|
5
|
-
export declare const textButtonStyles: import("@emotion/utils").SerializedStyles;
|
|
6
|
-
export declare const dangerButtonStyles: import("@emotion/utils").SerializedStyles;
|
|
7
|
-
export declare const linkButtonStyles: import("@emotion/utils").SerializedStyles;
|
package/cjs/button/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Button } from './Button';
|
|
2
|
-
export * from './Button';
|
|
3
|
-
export * from './LinkButton';
|
|
4
|
-
export { default as IconButton } from './IconButton';
|
|
5
|
-
export * from './IconButton';
|
|
6
|
-
export * from './BadgeIcon';
|
|
7
|
-
export { default as Anchor } from './LinkButton';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Orientation = 'horizontal' | 'vertical';
|
|
3
|
-
type Alignment = 'left' | 'right' | 'center';
|
|
4
|
-
type ButtonStackProps = {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
align?: Alignment;
|
|
7
|
-
orientation?: Orientation;
|
|
8
|
-
className?: string;
|
|
9
|
-
reverse?: boolean;
|
|
10
|
-
};
|
|
11
|
-
declare const ButtonStack: React.FunctionComponent<ButtonStackProps>;
|
|
12
|
-
export default ButtonStack;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ButtonStack } from './ButtonStack';
|