@digital-ai/dot-components 2.5.0 → 2.5.1
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/CHANGE_LOG.md +19 -9
- package/README.md +15 -0
- package/lib/Typography.stories.d.ts +4 -0
- package/lib/components/accordion/Accordion.stories.d.ts +8 -0
- package/lib/components/action-toolbar/ActionToolbar.stories.d.ts +5 -0
- package/lib/components/alert-banner/AlertBanner.stories.d.ts +5 -0
- package/lib/components/app-toolbar/AppToolbar.stories.d.ts +8 -0
- package/lib/components/auto-complete/AutoComplete.stories.d.ts +22 -0
- package/lib/components/avatar/Avatar.stories.d.ts +7 -0
- package/lib/components/avatar-group/AvatarGroup.stories.d.ts +5 -0
- package/lib/components/badge/Badge.stories.d.ts +8 -0
- package/lib/components/breadcrumbs/Breadcrumbs.stories.d.ts +5 -0
- package/lib/components/button/Button.stories.d.ts +11 -0
- package/lib/components/button/CopyButton.stories.d.ts +5 -0
- package/lib/components/button/IconButton.stories.d.ts +10 -0
- package/lib/components/button-toggle/ButtonToggle.stories.d.ts +11 -0
- package/lib/components/card/Card.stories.d.ts +6 -0
- package/lib/components/checkbox/Checkbox.stories.d.ts +9 -0
- package/lib/components/checkbox/CheckboxGroup.stories.d.ts +6 -0
- package/lib/components/chip/Chip.stories.d.ts +8 -0
- package/lib/components/confirmation-dialog/ConfirmationDialog.stories.d.ts +6 -0
- package/lib/components/css-grid/CssGrid.stories.d.ts +7 -0
- package/lib/components/dialog/Dialog.stories.d.ts +5 -0
- package/lib/components/divider/Divider.stories.d.ts +6 -0
- package/lib/components/draggable-list/DraggableList.stories.d.ts +10 -0
- package/lib/components/drawer/Drawer.stories.d.ts +9 -0
- package/lib/components/dynamic-form/DynamicForm.stories.d.ts +5 -0
- package/lib/components/dynamic-form/utils/helpers.d.ts +1 -1
- package/lib/components/empty-state/EmptyState.stories.d.ts +5 -0
- package/lib/components/file-upload/FileUpload.stories.d.ts +8 -0
- package/lib/components/form/Form.stories.d.ts +5 -0
- package/lib/components/form-group/FormGroup.stories.d.ts +5 -0
- package/lib/components/icon/Icon.stories.d.ts +5 -0
- package/lib/components/inline-edit/InlineEdit.stories.d.ts +15 -0
- package/lib/components/input-form-fields/InputSelect.stories.d.ts +10 -0
- package/lib/components/input-form-fields/InputText.stories.d.ts +14 -0
- package/lib/components/linear-progress/LinearProgress.stories.d.ts +13 -0
- package/lib/components/link/Link.stories.d.ts +6 -0
- package/lib/components/list/List.stories.d.ts +6 -0
- package/lib/components/menu/Menu.stories.d.ts +9 -0
- package/lib/components/navigation-rail/NavigationRail.stories.d.ts +7 -0
- package/lib/components/pill/Pill.stories.d.ts +5 -0
- package/lib/components/popper/Popper.stories.d.ts +6 -0
- package/lib/components/progress/Progress.stories.d.ts +9 -0
- package/lib/components/progress-button/ProgressButton.stories.d.ts +5 -0
- package/lib/components/radio/RadioButton.stories.d.ts +5 -0
- package/lib/components/radio/RadioGroup.stories.d.ts +7 -0
- package/lib/components/sidebar/Sidebar.stories.d.ts +8 -0
- package/lib/components/skeleton/Skeleton.stories.d.ts +5 -0
- package/lib/components/snackbar/Snackbar.stories.d.ts +6 -0
- package/lib/components/split-button/SplitButton.stories.d.ts +9 -0
- package/lib/components/switch/Switch.stories.d.ts +12 -0
- package/lib/components/table/Table.stories.d.ts +10 -0
- package/lib/components/table/TablePagination.stories.d.ts +5 -0
- package/lib/components/tabs/Tabs.stories.d.ts +6 -0
- package/lib/components/tooltip/Tooltip.stories.d.ts +5 -0
- package/lib/components/truncate-with-tooltip/TruncateWithTooltip.stories.d.ts +8 -0
- package/lib/components/typography/Typography.stories.d.ts +7 -0
- package/package.json +3 -3
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.5.1](https://www.npmjs.com/package/@digital-ai/dot-components) (03/14/2023)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.5.0...2.5.1)
|
|
6
|
+
|
|
7
|
+
**Misc:**
|
|
8
|
+
|
|
9
|
+
- Add jwt-decode to dot-components dependency tree [\#1407](https://github.com/digital-ai/dot-components/pull/1407) ([CWSites](https://github.com/CWSites))
|
|
10
|
+
- Address Storybook lint issues [\#1406](https://github.com/digital-ai/dot-components/pull/1406) ([CWSites](https://github.com/CWSites))
|
|
11
|
+
|
|
3
12
|
## [2.5.0](https://www.npmjs.com/package/@digital-ai/dot-components) (03/10/2023)
|
|
4
13
|
|
|
5
14
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.21.9...2.5.0)
|
|
@@ -298,7 +307,6 @@
|
|
|
298
307
|
- S-86128: `DotAutocomplete`: Support error/warning icons with the tooltip [\#1237](https://github.com/digital-ai/dot-components/pull/1237) ([dmiletic85](https://github.com/dmiletic85))
|
|
299
308
|
- S-86683: `DotAutocomplete`: expose `onBlur` [\#1236](https://github.com/digital-ai/dot-components/pull/1236) ([dmiletic85](https://github.com/dmiletic85))
|
|
300
309
|
- S-86581: `DotAutocomplete` should allow to pass `readOnly` property into the inner `TextField` [\#1235](https://github.com/digital-ai/dot-components/pull/1235) ([dmiletic85](https://github.com/dmiletic85))
|
|
301
|
-
- S-85811: `NavigationRail` Allow badges [\#1215](https://github.com/digital-ai/dot-components/pull/1215) ([dmiletic85](https://github.com/dmiletic85))
|
|
302
310
|
|
|
303
311
|
**Fixed bugs:**
|
|
304
312
|
|
|
@@ -320,6 +328,7 @@
|
|
|
320
328
|
- S-84069: expose shrink prop to input fields [\#1223](https://github.com/digital-ai/dot-components/pull/1223) ([CWSites](https://github.com/CWSites))
|
|
321
329
|
- Issue \#1210: add prop for noMargin to typography [\#1222](https://github.com/digital-ai/dot-components/pull/1222) ([CWSites](https://github.com/CWSites))
|
|
322
330
|
- S-83952: persistent label for text field and select field [\#1219](https://github.com/digital-ai/dot-components/pull/1219) ([CWSites](https://github.com/CWSites))
|
|
331
|
+
- S-85811: `NavigationRail` Allow badges [\#1215](https://github.com/digital-ai/dot-components/pull/1215) ([dmiletic85](https://github.com/dmiletic85))
|
|
323
332
|
|
|
324
333
|
**Fixed bugs:**
|
|
325
334
|
|
|
@@ -698,10 +707,6 @@
|
|
|
698
707
|
|
|
699
708
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.5.4...1.6.0)
|
|
700
709
|
|
|
701
|
-
**Features:**
|
|
702
|
-
|
|
703
|
-
- S-77210: Component - Drawer [\#893](https://github.com/digital-ai/dot-components/pull/893) ([monapatel91](https://github.com/monapatel91))
|
|
704
|
-
|
|
705
710
|
**Fixed bugs:**
|
|
706
711
|
|
|
707
712
|
- D-19382: `DynamicForm`: `isRequired` with value of `false` is not respected [\#919](https://github.com/digital-ai/dot-components/pull/919) ([dmiletic85](https://github.com/dmiletic85))
|
|
@@ -746,6 +751,10 @@
|
|
|
746
751
|
|
|
747
752
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.5.1...1.5.2)
|
|
748
753
|
|
|
754
|
+
**Features:**
|
|
755
|
+
|
|
756
|
+
- S-77210: Component - Drawer [\#893](https://github.com/digital-ai/dot-components/pull/893) ([monapatel91](https://github.com/monapatel91))
|
|
757
|
+
|
|
749
758
|
**Fixed bugs:**
|
|
750
759
|
|
|
751
760
|
- D-19319: `Apptoolbar`: primary logo link is hardcoded to `/` [\#880](https://github.com/digital-ai/dot-components/pull/880) ([dmiletic85](https://github.com/dmiletic85))
|
|
@@ -763,10 +772,6 @@
|
|
|
763
772
|
|
|
764
773
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.4.0...1.5.0)
|
|
765
774
|
|
|
766
|
-
**Features:**
|
|
767
|
-
|
|
768
|
-
- S-80586: Breadcrumbs enhancement \(collapse and expand automatically\) [\#843](https://github.com/digital-ai/dot-components/pull/843) ([dmiletic85](https://github.com/dmiletic85))
|
|
769
|
-
|
|
770
775
|
**Fixed bugs:**
|
|
771
776
|
|
|
772
777
|
- D-19294: Fix broken expand/collapse for uncontrolled accordion [\#866](https://github.com/digital-ai/dot-components/pull/866) ([selsemore](https://github.com/selsemore))
|
|
@@ -810,6 +815,7 @@
|
|
|
810
815
|
|
|
811
816
|
- S-79571: DotInput - expose onKeyDown [\#846](https://github.com/digital-ai/dot-components/pull/846) ([monapatel91](https://github.com/monapatel91))
|
|
812
817
|
- S-79357: evaluate codebase and remove old references to core Tooltip [\#844](https://github.com/digital-ai/dot-components/pull/844) ([CWSites](https://github.com/CWSites))
|
|
818
|
+
- S-80586: Breadcrumbs enhancement \(collapse and expand automatically\) [\#843](https://github.com/digital-ai/dot-components/pull/843) ([dmiletic85](https://github.com/dmiletic85))
|
|
813
819
|
- S-80621: file upload [\#840](https://github.com/digital-ai/dot-components/pull/840) ([CWSites](https://github.com/CWSites))
|
|
814
820
|
- S-76922: file upload [\#820](https://github.com/digital-ai/dot-components/pull/820) ([CWSites](https://github.com/CWSites))
|
|
815
821
|
|
|
@@ -1135,6 +1141,10 @@
|
|
|
1135
1141
|
|
|
1136
1142
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.0.3...1.0.4)
|
|
1137
1143
|
|
|
1144
|
+
**Breaking changes:**
|
|
1145
|
+
|
|
1146
|
+
- S-76919: cleaning up props used with various form elements [\#606](https://github.com/digital-ai/dot-components/pull/606) ([CWSites](https://github.com/CWSites))
|
|
1147
|
+
|
|
1138
1148
|
**Features:**
|
|
1139
1149
|
|
|
1140
1150
|
- S-76930: New Component: DotSnackbar [\#607](https://github.com/digital-ai/dot-components/pull/607) ([coryell1287](https://github.com/coryell1287))
|
package/README.md
CHANGED
|
@@ -62,6 +62,21 @@ export const MyWidget = ({ text }: MyWidgetProps) => {
|
|
|
62
62
|
);
|
|
63
63
|
};
|
|
64
64
|
```
|
|
65
|
+
### Configuring Jest
|
|
66
|
+
|
|
67
|
+
We are utilizing `@digital-ai/dot-icons` which uses `@font-face`. If you are using Jest then you'll need to update the following files. The location of the files may be different based on the structure of your application
|
|
68
|
+
|
|
69
|
+
#### `jest.config.js`
|
|
70
|
+
```js
|
|
71
|
+
moduleNameMapper: {
|
|
72
|
+
'@digital-ai/dot-icons': '<rootDir>/testing-utils/style-mock.ts',
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
#### `style-mock.ts`
|
|
77
|
+
```js
|
|
78
|
+
module.exports = {};
|
|
79
|
+
```
|
|
65
80
|
|
|
66
81
|
### Targeting CSS ClassNames
|
|
67
82
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: import("./components/typography/Typography").TypographyProps) => JSX.Element>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { AccordionProps } from './Accordion';
|
|
3
|
+
declare const _default: ComponentMeta<({ actions, ariaLabel, children, className, "data-testid": dataTestId, disabled, expanded, hasElevation, onChange, square, startIcon, summary, noWrap, }: AccordionProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<AccordionProps>;
|
|
6
|
+
export declare const WithExpanded: Story<AccordionProps>;
|
|
7
|
+
export declare const WithStartIcons: Story<AccordionProps>;
|
|
8
|
+
export declare const WithNoWrap: Story<AccordionProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { DotActionBarProps } from './ActionToolbar';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, variant, }: DotActionBarProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<DotActionBarProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { AlertBannerProps } from './AlertBanner';
|
|
3
|
+
declare const _default: ComponentMeta<({ action, ariaLabel, children, className, "data-testid": dataTestId, onClose, roundedCorners, severity, textVariant, }: AlertBannerProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<AlertBannerProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { AppToolbarProps } from './AppToolbar';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, appLogo, appLogoHref, appLogoSmall, avatar, borderColor, children, className, closeMenuOnItemClick, customLogo, "data-testid": dataTestId, dense, mainMenu, mainMenuItems, mainMenuWidth, menuCloseOnClickAway, navItems, onClickAway, primaryLogoHref, }: AppToolbarProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<AppToolbarProps>;
|
|
6
|
+
export declare const WithoutMenu: Story<AppToolbarProps>;
|
|
7
|
+
export declare const WithCustomMenu: Story<AppToolbarProps>;
|
|
8
|
+
export declare const WithCustomMenuClose: Story<AppToolbarProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { AutoCompleteOption, AutoCompleteProps } from './AutoComplete';
|
|
3
|
+
import { AutoCompleteWithRenderOption } from './Autocomplete.stories.data';
|
|
4
|
+
declare const _default: ComponentMeta<(<T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterSelectedOptions, freesolo, group, helperText, inputId, inputRef, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element)>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: any;
|
|
7
|
+
export declare const WithActionItem: any;
|
|
8
|
+
export declare const WithCustomActionItem: Story<AutoCompleteProps>;
|
|
9
|
+
export declare const WithAsyncLoad: Story<AutoCompleteProps>;
|
|
10
|
+
declare type AutoCompleteWithRenderOptionProps = AutoCompleteProps<AutoCompleteWithRenderOption>;
|
|
11
|
+
export declare const WithRenderOption: Story<AutoCompleteWithRenderOptionProps>;
|
|
12
|
+
export declare const WithChipError: Story<AutoCompleteProps>;
|
|
13
|
+
export declare const WithoutChips: Story<AutoCompleteWithRenderOptionProps>;
|
|
14
|
+
export declare const WithNullAsValue: Story<AutoCompleteProps>;
|
|
15
|
+
export declare const WithMaxHeight: any;
|
|
16
|
+
export declare const WithCustomBlur: Story<AutoCompleteProps>;
|
|
17
|
+
export declare const WithReadOnly: any;
|
|
18
|
+
export declare const WithWarning: any;
|
|
19
|
+
export declare const WithError: any;
|
|
20
|
+
export declare const WithLabel: any;
|
|
21
|
+
export declare const WithPersistentLabel: any;
|
|
22
|
+
export declare const WithFixedVirtualList: Story<AutoCompleteProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { AvatarProps } from './Avatar';
|
|
3
|
+
declare const _default: ComponentMeta<({ alt, ariaLabel, className, component, color, "data-testid": dataTestId, iconId, imageSrc, onClick, size, tabIndex, text, type, tooltip, variant, style, }: AvatarProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<AvatarProps>;
|
|
6
|
+
export declare const AvatarButton: Story<AvatarProps>;
|
|
7
|
+
export declare const WithTooltip: Story<AvatarProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { AvatarGroupProps } from './AvatarGroup';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, avatars, className, "data-testid": dataTestId, max, spacing, }: AvatarGroupProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<AvatarGroupProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { BadgeProps } from './Badge';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, badgeColor, badgeContent, children, className, "data-testid": dataTestId, invisible, max, overlap, variant, }: BadgeProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<BadgeProps>;
|
|
6
|
+
export declare const WithNotification: Story<BadgeProps>;
|
|
7
|
+
export declare const WithNotificationNumber: Story<BadgeProps>;
|
|
8
|
+
export declare const WithMaxNumber: Story<BadgeProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { BreadcrumbProps } from './Breadcrumbs';
|
|
3
|
+
declare const _default: ComponentMeta<({ className, "data-testid": dataTestId, expansionMenu, items, maxItems, }: BreadcrumbProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<BreadcrumbProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta } from '@storybook/react';
|
|
3
|
+
import { ButtonProps } from './Button';
|
|
4
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: any;
|
|
7
|
+
export declare const WithStartIcon: any;
|
|
8
|
+
export declare const WithEndIcon: any;
|
|
9
|
+
export declare const WithDestructiveType: any;
|
|
10
|
+
export declare const WithOutlinedType: any;
|
|
11
|
+
export declare const WithTextType: any;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { CopyButtonProps } from './CopyButton';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, copiedTooltip, copyTooltip, "data-testid": dataTestId, value, }: CopyButtonProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { IconButtonProps } from './IconButton';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, className, color, "data-testid": dataTestId, disabled, disableRipple, iconId, iconSize, onClick, tooltip, size, }: IconButtonProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithPrimaryColor: any;
|
|
7
|
+
export declare const WithSecondaryColor: any;
|
|
8
|
+
export declare const WithSmallSize: any;
|
|
9
|
+
export declare const WithDisabledState: any;
|
|
10
|
+
export declare const WithDisabledRipple: any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { ButtonToggleProps } from './';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, buttonOptions, className, color, "data-testid": dataTestId, disableFocusRipple, disableRipple, exclusive, onChange, orientation, size, value, }: ButtonToggleProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<ButtonToggleProps>;
|
|
6
|
+
export declare const WithTooltip: Story<ButtonToggleProps>;
|
|
7
|
+
export declare const WithDifferentValueTypes: Story<ButtonToggleProps>;
|
|
8
|
+
export declare const WithExclusivity: Story<ButtonToggleProps>;
|
|
9
|
+
export declare const WithSmallSize: Story<ButtonToggleProps>;
|
|
10
|
+
export declare const WithLargeSize: Story<ButtonToggleProps>;
|
|
11
|
+
export declare const WithPrimaryColor: Story<ButtonToggleProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { CardProps } from './Card';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, }: CardProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<CardProps>;
|
|
6
|
+
export declare const ComplexCardWithMedia: Story<CardProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { CheckboxProps, DotCheckbox } from './Checkbox';
|
|
3
|
+
declare const _default: ComponentMeta<typeof DotCheckbox>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<CheckboxProps>;
|
|
6
|
+
export declare const WithSmallSize: Story<CheckboxProps>;
|
|
7
|
+
export declare const WithStartLabelPlacement: Story<CheckboxProps>;
|
|
8
|
+
export declare const WithBottomLabelPlacement: Story<CheckboxProps>;
|
|
9
|
+
export declare const WithIndeterminateOption: Story<CheckboxProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { DotCheckboxGroup, CheckboxGroupProps } from './CheckboxGroup';
|
|
3
|
+
declare const _default: ComponentMeta<typeof DotCheckboxGroup>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<CheckboxGroupProps>;
|
|
6
|
+
export declare const WithHelperText: any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { ChipProps } from './Chip';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, avatar, charactersLimit, children, className, "data-testid": dataTestId, disabled, error, isClickable, isDeletable, onClick, onDelete, size, startIcon, }: ChipProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<ChipProps>;
|
|
6
|
+
export declare const ChipWithAvatar: Story<ChipProps>;
|
|
7
|
+
export declare const ChipWithIcon: Story<ChipProps>;
|
|
8
|
+
export declare const ChipWithLongText: Story<ChipProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { ConfirmationDialogProps } from './ConfirmationDialog';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, cancelButtonProps, className, "data-testid": dataTestId, message, onCancel, onSubmit, submitButtonProps, open, title, }: ConfirmationDialogProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithCustomTitleAndMessage: any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { CssGridProps } from './CssGrid';
|
|
3
|
+
declare const _default: ComponentMeta<(props: CssGridProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<CssGridProps>;
|
|
6
|
+
export declare const DebugCssGrid: Story<CssGridProps>;
|
|
7
|
+
export declare const CssGridCell: Story<CssGridProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { DialogProps } from './Dialog';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, cancelButtonProps, cancelButtonVisible, className, "data-testid": dataTestId, children, closeIconVisible, closeOnClickAway, hasPrimaryAction, onCancel, onSubmit, open, submitButtonProps, title, }: DialogProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<DialogProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { DividerProps } from './Divider';
|
|
3
|
+
declare const _default: ComponentMeta<({ absolute, ariaLabel, className, "data-testid": dataTestId, flexItem, light, orientation, variant, }: DividerProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<DividerProps>;
|
|
6
|
+
export declare const WithVerticalOrientation: (args: any) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { DraggableListProps } from './';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, disableDrag, draggableHandle, items, onChange, rowHeight, width, }: DraggableListProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: any;
|
|
6
|
+
export declare const WithCustomWidth: any;
|
|
7
|
+
export declare const WithAvatar: any;
|
|
8
|
+
export declare const WithIcons: any;
|
|
9
|
+
export declare const WithDisabledDrag: any;
|
|
10
|
+
export declare const WithDraggableHandle: any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { DrawerProps } from './Drawer';
|
|
3
|
+
declare const _default: ComponentMeta<({ anchor, ariaLabel, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: DrawerProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<DrawerProps>;
|
|
6
|
+
export declare const WithHeader: Story<DrawerProps>;
|
|
7
|
+
export declare const WithBodyOnly: Story<DrawerProps>;
|
|
8
|
+
export declare const WithFooter: Story<DrawerProps>;
|
|
9
|
+
export declare const WithHeaderBodyFooter: Story<DrawerProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { DynamicFormProps } from './DynamicForm';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, config, disabled: isFormDisabled, liveValidation, onChange, onSubmit, }: DynamicFormProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<DynamicFormProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ControlCondition, DisabledControlCondition, DynamicFormConfig, DynamicFormOutputData, DynamicFormState, DynamicFormStateData } from '../models';
|
|
2
|
-
export declare const getControlValue: <T
|
|
2
|
+
export declare const getControlValue: <T>(controlName: string, data: DynamicFormStateData) => T;
|
|
3
3
|
export declare const getOutputFormData: (formState: DynamicFormState) => DynamicFormOutputData;
|
|
4
4
|
export declare const checkIfHiddenControl: (hidden: ControlCondition, formValues: DynamicFormOutputData) => boolean;
|
|
5
5
|
export declare const checkIfDisabledControl: (disabled: DisabledControlCondition, formValues: DynamicFormOutputData, isFormValid: boolean) => boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { EmptyStateProps } from './EmptyState';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, buttonProps, className, "data-testid": dataTestId, imageAltText, imageSrc, subtitle, title, }: EmptyStateProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<EmptyStateProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { FileUploadProps } from './';
|
|
3
|
+
declare const _default: ComponentMeta<({ accept, ariaLabel, buttonOnly, className, "data-testid": dataTestId, disabled, hideFilesList, maxFiles, maxSize, onChange, onDragEnter, onFileClick, }: FileUploadProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<FileUploadProps>;
|
|
6
|
+
export declare const WithSingleFileLimit: Story<FileUploadProps>;
|
|
7
|
+
export declare const WithCustomFileUploadList: Story<FileUploadProps>;
|
|
8
|
+
export declare const WithUploadErrors: Story<FileUploadProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { FormProps } from './Form';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, onSubmit, }: FormProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<FormProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { IconProps } from './Icon';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, fontSize, iconId, tooltip, }: IconProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<IconProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { InlineEditProps } from './InlineEdit';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, readOnly, selectTextOnEdit, tabIndex, tooltip, typography, value, }: InlineEditProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<InlineEditProps>;
|
|
6
|
+
export declare const WithCharactersLimit: any;
|
|
7
|
+
export declare const WithMultipleLines: any;
|
|
8
|
+
export declare const WithReadOnlyMode: any;
|
|
9
|
+
export declare const WithoutActionButtons: any;
|
|
10
|
+
export declare const WithTooltip: any;
|
|
11
|
+
export declare const WithSaveError: Story<InlineEditProps>;
|
|
12
|
+
export declare const WithCustomTypography: Story<InlineEditProps>;
|
|
13
|
+
export declare const WithSingleBinding: any;
|
|
14
|
+
export declare const WithMultipleBindings: Story<InlineEditProps>;
|
|
15
|
+
export declare const WithSelectOnEdit: any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { InputSelectProps } from './InputSelect';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disabled, endIcon, error, fullWidth, helperText, id, inputRef, label, name, onBlur, onChange, onFocus, onKeyDown, options, persistentLabel, readOnly, required, shrink, size, startIcon, success, value, warning, }: InputSelectProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<InputSelectProps>;
|
|
6
|
+
export declare const WithPersistentLabel: Story<InputSelectProps>;
|
|
7
|
+
export declare const WithError: Story<InputSelectProps>;
|
|
8
|
+
export declare const WithSuccess: Story<InputSelectProps>;
|
|
9
|
+
export declare const WithWarning: Story<InputSelectProps>;
|
|
10
|
+
export declare const WithReadOnly: Story<InputSelectProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { InputTextProps } from './InputText';
|
|
3
|
+
declare const _default: ComponentMeta<({ autoComplete, autoFocus, className, defaultValue, "data-testid": dataTestId, disabled, error, endAdornmentTooltip, fullWidth, hasDebounce, helperText, endIcon, id, inputRef, label, maxRows, minRows, multiline, name, onBlur, onChange, onFocus, onKeyDown, onMouseUp, persistentLabel, placeholder, readOnly, required, shrink, startIcon, size, success, type, value, warning, }: InputTextProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<InputTextProps>;
|
|
6
|
+
export declare const WithPersistentLabel: Story<InputTextProps>;
|
|
7
|
+
export declare const WithHelperText: Story<InputTextProps>;
|
|
8
|
+
export declare const WithError: Story<InputTextProps>;
|
|
9
|
+
export declare const WithSuccess: Story<InputTextProps>;
|
|
10
|
+
export declare const WithWarning: Story<InputTextProps>;
|
|
11
|
+
export declare const WithErrorTooltip: Story<InputTextProps>;
|
|
12
|
+
export declare const WithWarningTooltip: Story<InputTextProps>;
|
|
13
|
+
export declare const WithReadOnly: Story<InputTextProps>;
|
|
14
|
+
export declare const WithMultiline: Story<InputTextProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { LinearProgressProps } from './LinearProgress';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, color, className, "data-testid": dataTestId, value, valueBuffer, variant, }: LinearProgressProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<LinearProgressProps>;
|
|
6
|
+
export declare const WithDeterminateVariant: any;
|
|
7
|
+
export declare const WithBufferVariant: any;
|
|
8
|
+
export declare const WithQueryVariant: any;
|
|
9
|
+
export declare const WithPrimaryColor: any;
|
|
10
|
+
export declare const WithSecondaryColor: any;
|
|
11
|
+
export declare const WithErrorColor: any;
|
|
12
|
+
export declare const WithWarningColor: any;
|
|
13
|
+
export declare const WithPurpleColor: any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { LinkProps } from './Link';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, children, className, color, "data-testid": dataTestId, href, onClick, onMouseEnter, rel, tabIndex, target, tooltip, underline, }: LinkProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<LinkProps>;
|
|
6
|
+
export declare const LinkInParagraph: Story<LinkProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { ListProps } from './utils/models';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, children, className, component, "data-testid": dataTestId, dense, disablePadding, items, menuPlacement, nestedDrawerLeftSpacing, nestedListType, width, }: ListProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<ListProps>;
|
|
6
|
+
export declare const WithoutIcons: Story<ListProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { MenuProps } from './Menu';
|
|
3
|
+
declare const _default: ComponentMeta<({ anchorEl, ariaLabel, className, "data-testid": dataTestId, dense, disablePortal, id, loading, maxVisibleItems, menuItemHeight, menuItems, menuPlacement, onLeave, onSelect, open, selectedKey, }: MenuProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<MenuProps>;
|
|
6
|
+
export declare const ButtonMenu: Story<MenuProps>;
|
|
7
|
+
export declare const TableMenu: Story<MenuProps>;
|
|
8
|
+
export declare const WithCustomHeight: Story<MenuProps>;
|
|
9
|
+
export declare const WithMultiLevelMenu: Story<MenuProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { NavigationRailProps } from './NavigationRail';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, onChange, railItemPosition, railItems, selectedIndex, }: NavigationRailProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<NavigationRailProps>;
|
|
6
|
+
export declare const WithProgrammaticNavigation: Story<NavigationRailProps>;
|
|
7
|
+
export declare const WithBadges: Story<NavigationRailProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { PillProps } from './Pill';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, backgroundcolor, bordercolor, className, "data-testid": dataTestId, icon, label, labelcolor, size, status, variant, }: PillProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<PillProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { PopperProps } from './Popper';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, anchorEl, children, className, "data-testid": dataTestId, disablePortal, onClickAway, open, placement, }: PopperProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<PopperProps>;
|
|
6
|
+
export declare const WithButtonAnchor: Story<PopperProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { ProgressProps } from './Progress';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, color, className, "data-testid": dataTestId, size, thickness, tooltip, value, variant, }: ProgressProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<ProgressProps>;
|
|
6
|
+
export declare const WithPrimaryColor: any;
|
|
7
|
+
export declare const WithCustomSizeAndThickness: any;
|
|
8
|
+
export declare const WithDeterminateVariant: any;
|
|
9
|
+
export declare const WithPercentageSimulation: (args: ProgressProps) => JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { ProgressButtonProps } from './ProgressButton';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, disabled, disableRipple, fullWidth, isLoading, isSubmit, onClick, size, tooltip, type, }: ProgressButtonProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<ProgressButtonProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { DotRadioButton, RadioButtonProps } from './RadioButton';
|
|
3
|
+
declare const _default: ComponentMeta<typeof DotRadioButton>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<RadioButtonProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { RadioGroupProps } from './RadioGroup';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, defaultValue, disableGroup, endIcon, error, helperText, groupLabel, name, labelPlacement, onChange, value, options, startIcon, required, row, size, }: RadioGroupProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<RadioGroupProps>;
|
|
6
|
+
export declare const WithHelperText: any;
|
|
7
|
+
export declare const WithRowAndHelperText: any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { SidebarProps } from './Sidebar';
|
|
3
|
+
declare const _default: ComponentMeta<({ appLogo, appLogoSmall, ariaLabel, backItem, brandDesc, children, className, collapsable, "data-testid": dataTestId, displayAppLogo, displayBrand, goBack, navItems, nestedListType, onCollapseChange, open, title, titleAvatarProps, width, }: SidebarProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<SidebarProps>;
|
|
6
|
+
export declare const WithReactRouter: Story<SidebarProps>;
|
|
7
|
+
export declare const WithTooltipsWhenCollapsed: Story<SidebarProps>;
|
|
8
|
+
export declare const WithBackItem: Story<SidebarProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { SkeletonProps } from './Skeleton';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, height, width, variant, }: SkeletonProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<SkeletonProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { SnackbarProps } from './';
|
|
3
|
+
declare const _default: ComponentMeta<({ action, anchorOrigin, ariaLabel, children, className, "data-testid": dataTestId, onClose, open, severity, width, }: SnackbarProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<SnackbarProps>;
|
|
6
|
+
export declare const WithBottomCenterAnchor: Story<SnackbarProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { SplitButtonProps } from './SplitButton';
|
|
3
|
+
declare const _default: ComponentMeta<({ autoFocus, ariaLabel, className, "data-testid": dataTestId, defaultMainOptionKey, disabled, disablePortal, disableRipple, fullWidth, isSubmit, onOptionClick, options, size, tooltip, type, }: SplitButtonProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<SplitButtonProps>;
|
|
6
|
+
export declare const WithSelectedKey: Story<SplitButtonProps>;
|
|
7
|
+
export declare const WithMainOptionDisabled: Story<SplitButtonProps>;
|
|
8
|
+
export declare const WithMenuOptionDisabled: Story<SplitButtonProps>;
|
|
9
|
+
export declare const WithMenuButtonDisabled: Story<SplitButtonProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { SwitchProps } from './';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, checked, className, color, "data-testid": dataTestId, disabled, id, inputRef, label, labelPlacement, onChange, size, }: SwitchProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<SwitchProps>;
|
|
6
|
+
export declare const WithSecondaryColor: Story<SwitchProps>;
|
|
7
|
+
export declare const WithDisabledState: Story<SwitchProps>;
|
|
8
|
+
export declare const WithSmallSize: Story<SwitchProps>;
|
|
9
|
+
export declare const WithStartLabelPlacement: Story<SwitchProps>;
|
|
10
|
+
export declare const WithBottomLabelPlacement: Story<SwitchProps>;
|
|
11
|
+
export declare const WithTopLabelPlacement: Story<SwitchProps>;
|
|
12
|
+
export declare const WithoutLabel: Story<SwitchProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { TableProps } from './Table';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, bodyTypography, className, columns, count, data, "data-testid": dataTestId, emptyMessage, footerTypography, headerTypography, loading, maxHeight, multiSelect, order, orderBy, onRowClick, onUpdateData, page, rowsPerPage, stickyHeader, sortable, toolbar, }: TableProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<TableProps>;
|
|
6
|
+
export declare const LocallyPaginatedTable: Story<TableProps>;
|
|
7
|
+
export declare const RemotelyPaginatedTable: Story<TableProps>;
|
|
8
|
+
export declare const WithActionMenu: Story<TableProps>;
|
|
9
|
+
export declare const WithCheckboxSelection: Story<TableProps>;
|
|
10
|
+
export declare const EmptyTable: Story<TableProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { TablePaginationProps } from './TablePagination';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, className, count, "data-testid": dataTestId, onPageChange, onRowsPerPageChange, page, rowsPerPage, typography, }: TablePaginationProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<TablePaginationProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { TabsProps } from './Tabs';
|
|
3
|
+
declare const _default: ComponentMeta<({ centered, className, color, "data-testid": dataTestId, initialValue, onChange, scrollButtons, tabs, variant, }: TabsProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<TabsProps>;
|
|
6
|
+
export declare const TabsInActionBar: Story<TabsProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { TooltipProps } from './Tooltip';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, children, className, "data-testid": dataTestId, leaveDelay, onClose, open, placement, title, }: TooltipProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<TooltipProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from '@storybook/react';
|
|
2
|
+
import { TruncateWithTooltipProps } from './';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, charactersLimit, className, "data-testid": dataTestId, label, width, }: TruncateWithTooltipProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<TruncateWithTooltipProps>;
|
|
6
|
+
export declare const WithAutoTruncate: Story<TruncateWithTooltipProps>;
|
|
7
|
+
export declare const WithWidthAsNumber: Story<TruncateWithTooltipProps>;
|
|
8
|
+
export declare const WithWidthAsString: Story<TruncateWithTooltipProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { TypographyProps } from './Typography';
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: TypographyProps) => JSX.Element>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: Story<TypographyProps>;
|
|
6
|
+
export declare const WithVariants: Story<TypographyProps>;
|
|
7
|
+
export declare const WithWrappingOptions: Story<TypographyProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digital-ai/dot-components",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE.md>",
|
|
6
6
|
"contributors": [
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@emotion/styled": "^11.10.4",
|
|
30
30
|
"@mui/material": "^5.2.5",
|
|
31
31
|
"@mui/styles": "^5.2.3",
|
|
32
|
+
"jwt-decode": "^3.1.2",
|
|
32
33
|
"react-dropzone": "^11.4.2",
|
|
33
34
|
"react-grid-layout": "^1.3.4",
|
|
34
35
|
"styled-components": "^5.2.1"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|
|
37
38
|
"react": "^17.0.2 || ^18.0.0",
|
|
38
|
-
"react-router-dom": "6.4.4"
|
|
39
|
-
"jwt-decode": "^3.1.2"
|
|
39
|
+
"react-router-dom": "6.4.4"
|
|
40
40
|
}
|
|
41
41
|
}
|