@digital-ai/dot-components 2.18.1 → 2.18.3
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/index.esm.js +10 -6
- package/index.umd.js +10 -6
- package/lib/components/index.d.ts +1 -1
- package/package.json +16 -1
- package/CHANGE_LOG.md +0 -2333
- package/fonts/Lato-Bold.woff +0 -0
- package/fonts/Lato-Regular.woff +0 -0
- package/lib/Typography.stories.d.ts +0 -4
- package/lib/components/accordion/Accordion.stories.d.ts +0 -8
- package/lib/components/action-toolbar/ActionToolbar.stories.d.ts +0 -5
- package/lib/components/alert-banner/AlertBanner.stories.d.ts +0 -5
- package/lib/components/app-switcher/AppSwitcher.stories.d.ts +0 -5
- package/lib/components/app-toolbar/AppToolbar.stories.d.ts +0 -8
- package/lib/components/app-toolbar/AppToolbar.stories.data.d.ts +0 -7
- package/lib/components/app-toolbar/AppToolbar.stories.styles.d.ts +0 -2
- package/lib/components/auto-complete/AutoComplete.stories.d.ts +0 -25
- package/lib/components/auto-complete/AutoComplete.stories.styles.d.ts +0 -10
- package/lib/components/auto-complete/Autocomplete.stories.data.d.ts +0 -41
- package/lib/components/avatar/Avatar.stories.d.ts +0 -9
- package/lib/components/avatar-group/AvatarGroup.stories.d.ts +0 -5
- package/lib/components/avatar-group/AvatarGroup.stories.data.d.ts +0 -2
- package/lib/components/badge/Badge.stories.d.ts +0 -8
- package/lib/components/breadcrumbs/Breadcrumbs.stories.d.ts +0 -5
- package/lib/components/button/Button.stories.d.ts +0 -12
- package/lib/components/button/Button.stories.styles.d.ts +0 -2
- package/lib/components/button/CopyButton.stories.d.ts +0 -5
- package/lib/components/button/IconButton.stories.d.ts +0 -11
- package/lib/components/button-toggle/ButtonToggle.stories.d.ts +0 -11
- package/lib/components/button-toggle/ButtonToggle.stories.data.d.ts +0 -2
- package/lib/components/card/Card.stories.d.ts +0 -6
- package/lib/components/checkbox/Checkbox.stories.d.ts +0 -9
- package/lib/components/checkbox/CheckboxGroup.stories.d.ts +0 -6
- package/lib/components/chip/Chip.stories.d.ts +0 -8
- package/lib/components/click-away-listener/ClickAwayListener.stories.d.ts +0 -5
- package/lib/components/confirmation-dialog/ConfirmationDialog.stories.d.ts +0 -6
- package/lib/components/css-grid/CssGrid.stories.d.ts +0 -7
- package/lib/components/date-picker/DatePicker.stories.d.ts +0 -27
- package/lib/components/date-picker/DatePicker.stories.styles.d.ts +0 -8
- package/lib/components/dialog/Dialog.stories.d.ts +0 -5
- package/lib/components/divider/Divider.stories.d.ts +0 -6
- package/lib/components/divider/Divider.stories.styles.d.ts +0 -2
- package/lib/components/draggable-list/DraggableList.stories.d.ts +0 -10
- package/lib/components/draggable-list/DraggableList.stories.data.d.ts +0 -18
- package/lib/components/draggable-list/DraggableList.stories.styles.d.ts +0 -6
- package/lib/components/drawer/Drawer.stories.d.ts +0 -9
- package/lib/components/dynamic-form/DynamicForm.stories.d.ts +0 -5
- package/lib/components/dynamic-form/DynamicForm.stories.data.d.ts +0 -2
- package/lib/components/dynamic-form/DynamicForm.stories.styles.d.ts +0 -1
- package/lib/components/empty-state/EmptyState.stories.d.ts +0 -5
- package/lib/components/file-upload/FileUpload.stories.d.ts +0 -9
- package/lib/components/file-upload/FileUpload.stories.data.d.ts +0 -6
- package/lib/components/file-upload/FileUpload.stories.styles.d.ts +0 -2
- package/lib/components/form/Form.stories.d.ts +0 -5
- package/lib/components/form-group/FormGroup.stories.d.ts +0 -5
- package/lib/components/icon/Icon.stories.d.ts +0 -5
- package/lib/components/inline-edit/InlineEdit.stories.d.ts +0 -16
- package/lib/components/inline-edit/InlineEdit.stories.styles.d.ts +0 -2
- package/lib/components/input-form-fields/Input.stories.data.d.ts +0 -12
- package/lib/components/input-form-fields/InputSelect.stories.d.ts +0 -10
- package/lib/components/input-form-fields/InputText.stories.d.ts +0 -17
- package/lib/components/linear-progress/LinearProgress.stories.d.ts +0 -13
- package/lib/components/link/Link.stories.d.ts +0 -6
- package/lib/components/list/List.stories.d.ts +0 -6
- package/lib/components/list/List.stories.data.d.ts +0 -4
- package/lib/components/menu/Menu.stories.d.ts +0 -9
- package/lib/components/menu/Menu.stories.data.d.ts +0 -27
- package/lib/components/menu/Menu.stories.styles.d.ts +0 -6
- package/lib/components/navigation-rail/NavigationRail.stories.d.ts +0 -7
- package/lib/components/navigation-rail/NavigationRail.stories.data.d.ts +0 -9
- package/lib/components/navigation-rail/NavigationRail.stories.styles.d.ts +0 -4
- package/lib/components/pill/Pill.stories.d.ts +0 -5
- package/lib/components/popper/Popper.stories.d.ts +0 -6
- package/lib/components/popper/Popper.stories.data.d.ts +0 -5
- package/lib/components/popper/Popper.stories.styles.d.ts +0 -4
- package/lib/components/progress/Progress.stories.d.ts +0 -9
- package/lib/components/progress-button/ProgressButton.stories.d.ts +0 -5
- package/lib/components/radio/RadioButton.stories.d.ts +0 -5
- package/lib/components/radio/RadioGroup.stories.d.ts +0 -7
- package/lib/components/sidebar/Sidebar.stories.d.ts +0 -8
- package/lib/components/sidebar/Sidebar.stories.data.d.ts +0 -102
- package/lib/components/skeleton/Skeleton.stories.d.ts +0 -5
- package/lib/components/snackbar/Snackbar.stories.d.ts +0 -6
- package/lib/components/split-button/SplitButton.stories.d.ts +0 -9
- package/lib/components/stepper/Stepper.stories.d.ts +0 -10
- package/lib/components/stepper/Stepper.stories.data.d.ts +0 -86
- package/lib/components/switch/Switch.stories.d.ts +0 -12
- package/lib/components/table/Table.stories.d.ts +0 -13
- package/lib/components/table/Table.stories.data.d.ts +0 -165
- package/lib/components/table/TablePagination.stories.d.ts +0 -7
- package/lib/components/tabs/Tabs.stories.d.ts +0 -6
- package/lib/components/time-picker/TimePicker.stories.d.ts +0 -24
- package/lib/components/time-picker/TimePicker.stories.styles.d.ts +0 -10
- package/lib/components/tooltip/Tooltip.stories.d.ts +0 -5
- package/lib/components/truncate-with-tooltip/TruncateWithTooltip.stories.d.ts +0 -8
- package/lib/components/typography/Typography.stories.d.ts +0 -7
- package/lib/testing-utils/index.d.ts +0 -61
- package/lib/testing-utils/intersection-observer-mock.d.ts +0 -1
- package/lib/testing-utils/resize-observer-mock.d.ts +0 -1
- package/lib/testing-utils/scroll-into-view-mock.d.ts +0 -3
package/index.esm.js
CHANGED
|
@@ -4315,6 +4315,7 @@ const DotAppToolbar = ({
|
|
|
4315
4315
|
}, void 0)
|
|
4316
4316
|
}), void 0), jsx(StyledMainMenu, Object.assign({
|
|
4317
4317
|
anchor: "left",
|
|
4318
|
+
ariaLabel: "main menu navigation",
|
|
4318
4319
|
className: mainMenuClasses,
|
|
4319
4320
|
"data-testid": "main-menu",
|
|
4320
4321
|
onClose: () => updateMenuOpen(false),
|
|
@@ -6484,7 +6485,6 @@ function DotRadioButton({
|
|
|
6484
6485
|
};
|
|
6485
6486
|
// a11y: role doesn't need to be specified because it is done so automatically by the MUI component
|
|
6486
6487
|
const radioControl = jsx(StyledRadioButton, {
|
|
6487
|
-
"aria-checked": checked,
|
|
6488
6488
|
checked: checked,
|
|
6489
6489
|
classes: {
|
|
6490
6490
|
root: rootClassName$t
|
|
@@ -7521,6 +7521,7 @@ const DotInlineEdit = ({
|
|
|
7521
7521
|
}, void 0);
|
|
7522
7522
|
};
|
|
7523
7523
|
return jsx(StyledInlineEdit, Object.assign({
|
|
7524
|
+
"aria-expanded": editing ? true : false,
|
|
7524
7525
|
"aria-label": ariaLabel,
|
|
7525
7526
|
className: rootClasses,
|
|
7526
7527
|
"data-testid": dataTestId,
|
|
@@ -7962,7 +7963,7 @@ const StyledStepper = styled.div.withConfig({
|
|
|
7962
7963
|
componentId: "sc-1qka0yq-0"
|
|
7963
7964
|
})(["", ""], ({
|
|
7964
7965
|
theme
|
|
7965
|
-
}) => css(["&.", "{display:flex;align-items:flex-start;padding:0;width:100%;&.left{flex-direction:row;}&.right{flex-direction:row-reverse;}.", "{padding:", ";&.MuiStepper-horizontal{padding:0;display:flex;flex-direction:column;}.MuiStep-root{width:315px;.dot-icon{display:flex;background:", ";border-radius:50%;color:", ";height:28px;width:28px;}.dot-typography{color:", ";}.MuiStepContent-root{border-left-color:", ";}&.MuiStep-horizontal{padding:", ";.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}.dot-typography{color:", ";}.horizontal-step-description{color:", ";}&:hover{cursor:pointer;}&.completed{.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}}&.active{background:", ";}&.error{.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}}&.in-progress{.dot-avatar i:before{color:", ";}}}&.MuiStep-vertical{&.completed{.dot-typography,.dot-icon{color:", ";}}&.active{.dot-icon{background:", ";color:", ";}.step-label.dot-typography{color:", ";}.dot-typography{color:", ";}}&.error{.dot-typography{color:", ";}.dot-icon{background:", ";border:1px solid ", ";color:", ";}}}&.disabled{.dot-icon{color:", ";}.dot-typography{color:", ";}}&:last-of-type .MuiStepContent-root{border-left-color:transparent;}}}.", "{width:100%;.step-content-container{padding:", ";}}}"], rootClassName$k, stepListClassName, theme.spacing(3), theme.palette.primary['50'], theme.palette.primary['50'], theme.palette.layer.n300, theme.palette.layer.n300, theme.spacing(1), theme.palette.layer.n300, theme.palette.layer.n100, theme.palette.layer.n500, theme.palette.layer.n400, theme.palette.secondary['500'], theme.palette.secondary['50'], theme.palette.layer['n50'], theme.palette.error['500'], theme.palette.error['50'], theme.palette.primary['400'], theme.palette.layer.n700, theme.palette.primary['400'], theme.palette.layer.n0, theme.palette.primary['500'], theme.palette.layer.n700, theme.palette.error.main, theme.palette.layer.n0, theme.palette.error.main, theme.palette.error.main, theme.palette.primary['50'], theme.palette.layer.n300, contentClassName, theme.spacing(3, 3, 2, 3)));
|
|
7966
|
+
}) => css(["&.", "{display:flex;align-items:flex-start;padding:0;width:100%;&.left{flex-direction:row;}&.right{flex-direction:row-reverse;}.", "{padding:", ";&.MuiStepper-horizontal{padding:0;display:flex;flex-direction:column;}.MuiStep-root{width:315px;.dot-icon{display:flex;background:", ";border-radius:50%;color:", ";height:28px;width:28px;}.dot-typography{color:", ";}.MuiStepContent-root{border-left-color:", ";}&.MuiStep-horizontal{padding:", ";.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}.dot-typography{color:", ";}.horizontal-step-description{color:", ";}&:hover{cursor:pointer;}&.completed{.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}}&.active{background:", ";}&.error{.dot-avatar i:before{color:", ";}.dot-avatar,.dot-icon{background:", ";}}&.in-progress{.dot-avatar i:before{color:", ";}}}&.MuiStep-vertical{&.completed{.dot-typography,.dot-icon{color:", ";}}&.active{.dot-icon{background:", ";color:", ";}.step-label.dot-typography{color:", ";}.dot-typography{color:", ";}}&.inactive .step-label.dot-typography{color:", ";}&.error{.dot-typography{color:", ";}.dot-icon{background:", ";border:1px solid ", ";color:", ";}}}&.disabled{.dot-icon{color:", ";}.dot-typography{color:", ";}}&:last-of-type .MuiStepContent-root{border-left-color:transparent;}}}.", "{width:100%;.step-content-container{padding:", ";}}}"], rootClassName$k, stepListClassName, theme.spacing(3), theme.palette.primary['50'], theme.palette.primary['50'], theme.palette.layer.n300, theme.palette.layer.n300, theme.spacing(1), theme.palette.layer.n300, theme.palette.layer.n100, theme.palette.layer.n500, theme.palette.layer.n400, theme.palette.secondary['500'], theme.palette.secondary['50'], theme.palette.layer['n50'], theme.palette.error['500'], theme.palette.error['50'], theme.palette.primary['400'], theme.palette.layer.n700, theme.palette.primary['400'], theme.palette.layer.n0, theme.palette.primary['500'], theme.palette.layer.n700, theme.palette.layer.n400, theme.palette.error.main, theme.palette.layer.n0, theme.palette.error.main, theme.palette.error.main, theme.palette.primary['50'], theme.palette.layer.n300, contentClassName, theme.spacing(3, 3, 2, 3)));
|
|
7966
7967
|
const ScrollbarContainer = styled.div.withConfig({
|
|
7967
7968
|
displayName: "Stepperstyles__ScrollbarContainer",
|
|
7968
7969
|
componentId: "sc-1qka0yq-1"
|
|
@@ -8086,7 +8087,7 @@ const DotStepper = ({
|
|
|
8086
8087
|
stepIcon = isHorizontal ? 'circle' : 'edit';
|
|
8087
8088
|
}
|
|
8088
8089
|
return isHorizontal ? jsx(DotAvatar, {
|
|
8089
|
-
alt: iconId,
|
|
8090
|
+
alt: iconId || stepIcon,
|
|
8090
8091
|
iconId: stepIcon,
|
|
8091
8092
|
type: "icon"
|
|
8092
8093
|
}, void 0) : jsx(DotIcon, {
|
|
@@ -8186,8 +8187,9 @@ const DotStepper = ({
|
|
|
8186
8187
|
className: rootClasses
|
|
8187
8188
|
}, {
|
|
8188
8189
|
children: [jsx(ScrollbarContainer, Object.assign({
|
|
8190
|
+
className: _stepsPosition,
|
|
8189
8191
|
offset: _offset,
|
|
8190
|
-
|
|
8192
|
+
tabIndex: 0
|
|
8191
8193
|
}, {
|
|
8192
8194
|
children: jsx(Stepper, Object.assign({
|
|
8193
8195
|
activeStep: currentStep,
|
|
@@ -8200,7 +8202,7 @@ const DotStepper = ({
|
|
|
8200
8202
|
const isActive = currentStep === step.id;
|
|
8201
8203
|
// TODO: use useStylesWithRootClass here
|
|
8202
8204
|
const stepClasses = () => {
|
|
8203
|
-
return [step.className, isActive ? 'active' : '', step.completed ? 'completed' : '', step.disabled ? 'disabled' : '', step.error ? 'error' : '', step.inProgress ? 'in-progress' : ''].concat().join(' ').trim();
|
|
8205
|
+
return [step.className, isActive ? 'active' : 'inactive', step.completed ? 'completed' : '', step.disabled ? 'disabled' : '', step.error ? 'error' : '', step.inProgress ? 'in-progress' : ''].concat().join(' ').trim();
|
|
8204
8206
|
};
|
|
8205
8207
|
const getContent = () => {
|
|
8206
8208
|
return isString$1(step.description) ? jsx(StepDescription, Object.assign({
|
|
@@ -8981,7 +8983,9 @@ const DotHeaderRow = ({
|
|
|
8981
8983
|
root: 'dot-tr'
|
|
8982
8984
|
}
|
|
8983
8985
|
}, {
|
|
8984
|
-
children: [multiSelectHeader && renderMultiSelectCell(), collapsibleTableOptions && jsx(TableCell, {
|
|
8986
|
+
children: [multiSelectHeader && renderMultiSelectCell(), collapsibleTableOptions && jsx(TableCell, {
|
|
8987
|
+
"aria-hidden": "true"
|
|
8988
|
+
}, void 0), columns.map(cell => {
|
|
8985
8989
|
return jsx(DotHeaderCell, {
|
|
8986
8990
|
align: cell.align,
|
|
8987
8991
|
createSortHandler: createSortHandler,
|
package/index.umd.js
CHANGED
|
@@ -4759,6 +4759,7 @@
|
|
|
4759
4759
|
}, void 0)
|
|
4760
4760
|
}), void 0), jsxRuntime.jsx(StyledMainMenu, __assign({
|
|
4761
4761
|
anchor: "left",
|
|
4762
|
+
ariaLabel: "main menu navigation",
|
|
4762
4763
|
className: mainMenuClasses,
|
|
4763
4764
|
"data-testid": "main-menu",
|
|
4764
4765
|
onClose: function () {
|
|
@@ -7064,7 +7065,6 @@
|
|
|
7064
7065
|
};
|
|
7065
7066
|
// a11y: role doesn't need to be specified because it is done so automatically by the MUI component
|
|
7066
7067
|
var radioControl = jsxRuntime.jsx(StyledRadioButton, {
|
|
7067
|
-
"aria-checked": checked,
|
|
7068
7068
|
checked: checked,
|
|
7069
7069
|
classes: {
|
|
7070
7070
|
root: rootClassName$t
|
|
@@ -8165,6 +8165,7 @@
|
|
|
8165
8165
|
}, void 0);
|
|
8166
8166
|
};
|
|
8167
8167
|
return jsxRuntime.jsx(StyledInlineEdit, __assign({
|
|
8168
|
+
"aria-expanded": editing ? true : false,
|
|
8168
8169
|
"aria-label": ariaLabel,
|
|
8169
8170
|
className: rootClasses,
|
|
8170
8171
|
"data-testid": dataTestId,
|
|
@@ -8660,7 +8661,7 @@
|
|
|
8660
8661
|
componentId: "sc-1qka0yq-0"
|
|
8661
8662
|
})(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
8662
8663
|
var theme = _a.theme;
|
|
8663
|
-
return styled.css(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n &.", " {\n display: flex;\n align-items: flex-start;\n padding: 0;\n width: 100%;\n\n &.left {\n flex-direction: row;\n }\n\n &.right {\n flex-direction: row-reverse;\n }\n\n .", " {\n padding: ", ";\n\n &.MuiStepper-horizontal {\n padding: 0;\n display: flex;\n flex-direction: column;\n }\n\n .MuiStep-root {\n width: 315px;\n\n .dot-icon {\n display: flex;\n background: ", ";\n border-radius: 50%;\n color: ", ";\n height: 28px;\n width: 28px;\n }\n\n .dot-typography {\n color: ", ";\n }\n\n .MuiStepContent-root {\n border-left-color: ", ";\n }\n\n &.MuiStep-horizontal {\n padding: ", ";\n\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n .horizontal-step-description {\n color: ", ";\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.completed {\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n }\n\n &.active {\n background: ", ";\n }\n\n &.error {\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n }\n\n &.in-progress {\n .dot-avatar i:before {\n color: ", ";\n }\n }\n }\n\n &.MuiStep-vertical {\n &.completed {\n .dot-typography,\n .dot-icon {\n color: ", ";\n }\n }\n\n &.active {\n .dot-icon {\n background: ", ";\n color: ", ";\n }\n .step-label.dot-typography {\n color: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n }\n\n &.error {\n .dot-typography {\n color: ", ";\n }\n\n .dot-icon {\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n }\n }\n }\n\n &.disabled {\n .dot-icon {\n color: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n }\n\n &:last-of-type .MuiStepContent-root {\n border-left-color: transparent;\n }\n }\n }\n\n .", " {\n width: 100%;\n\n .step-content-container {\n padding: ", ";\n }\n }\n }\n "], ["\n &.", " {\n display: flex;\n align-items: flex-start;\n padding: 0;\n width: 100%;\n\n &.left {\n flex-direction: row;\n }\n\n &.right {\n flex-direction: row-reverse;\n }\n\n .", " {\n padding: ", ";\n\n &.MuiStepper-horizontal {\n padding: 0;\n display: flex;\n flex-direction: column;\n }\n\n .MuiStep-root {\n width: 315px;\n\n .dot-icon {\n display: flex;\n background: ", ";\n border-radius: 50%;\n color: ", ";\n height: 28px;\n width: 28px;\n }\n\n .dot-typography {\n color: ", ";\n }\n\n .MuiStepContent-root {\n border-left-color: ", ";\n }\n\n &.MuiStep-horizontal {\n padding: ", ";\n\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n .horizontal-step-description {\n color: ", ";\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.completed {\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n }\n\n &.active {\n background: ", ";\n }\n\n &.error {\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n }\n\n &.in-progress {\n .dot-avatar i:before {\n color: ", ";\n }\n }\n }\n\n &.MuiStep-vertical {\n &.completed {\n .dot-typography,\n .dot-icon {\n color: ", ";\n }\n }\n\n &.active {\n .dot-icon {\n background: ", ";\n color: ", ";\n }\n .step-label.dot-typography {\n color: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n }\n\n &.error {\n .dot-typography {\n color: ", ";\n }\n\n .dot-icon {\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n }\n }\n }\n\n &.disabled {\n .dot-icon {\n color: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n }\n\n &:last-of-type .MuiStepContent-root {\n border-left-color: transparent;\n }\n }\n }\n\n .", " {\n width: 100%;\n\n .step-content-container {\n padding: ", ";\n }\n }\n }\n "])), rootClassName$k, stepListClassName, theme.spacing(3), theme.palette.primary['50'], theme.palette.primary['50'], theme.palette.layer.n300, theme.palette.layer.n300, theme.spacing(1), theme.palette.layer.n300, theme.palette.layer.n100, theme.palette.layer.n500, theme.palette.layer.n400, theme.palette.secondary['500'], theme.palette.secondary['50'], theme.palette.layer['n50'], theme.palette.error['500'], theme.palette.error['50'], theme.palette.primary['400'], theme.palette.layer.n700, theme.palette.primary['400'], theme.palette.layer.n0, theme.palette.primary['500'], theme.palette.layer.n700, theme.palette.error.main, theme.palette.layer.n0, theme.palette.error.main, theme.palette.error.main, theme.palette.primary['50'], theme.palette.layer.n300, contentClassName, theme.spacing(3, 3, 2, 3));
|
|
8664
|
+
return styled.css(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n &.", " {\n display: flex;\n align-items: flex-start;\n padding: 0;\n width: 100%;\n\n &.left {\n flex-direction: row;\n }\n\n &.right {\n flex-direction: row-reverse;\n }\n\n .", " {\n padding: ", ";\n\n &.MuiStepper-horizontal {\n padding: 0;\n display: flex;\n flex-direction: column;\n }\n\n .MuiStep-root {\n width: 315px;\n\n .dot-icon {\n display: flex;\n background: ", ";\n border-radius: 50%;\n color: ", ";\n height: 28px;\n width: 28px;\n }\n\n .dot-typography {\n color: ", ";\n }\n\n .MuiStepContent-root {\n border-left-color: ", ";\n }\n\n &.MuiStep-horizontal {\n padding: ", ";\n\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n .horizontal-step-description {\n color: ", ";\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.completed {\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n }\n\n &.active {\n background: ", ";\n }\n\n &.error {\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n }\n\n &.in-progress {\n .dot-avatar i:before {\n color: ", ";\n }\n }\n }\n\n &.MuiStep-vertical {\n &.completed {\n .dot-typography,\n .dot-icon {\n color: ", ";\n }\n }\n\n &.active {\n .dot-icon {\n background: ", ";\n color: ", ";\n }\n .step-label.dot-typography {\n color: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n }\n\n &.inactive .step-label.dot-typography {\n color: ", ";\n }\n\n &.error {\n .dot-typography {\n color: ", ";\n }\n\n .dot-icon {\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n }\n }\n }\n\n &.disabled {\n .dot-icon {\n color: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n }\n\n &:last-of-type .MuiStepContent-root {\n border-left-color: transparent;\n }\n }\n }\n\n .", " {\n width: 100%;\n\n .step-content-container {\n padding: ", ";\n }\n }\n }\n "], ["\n &.", " {\n display: flex;\n align-items: flex-start;\n padding: 0;\n width: 100%;\n\n &.left {\n flex-direction: row;\n }\n\n &.right {\n flex-direction: row-reverse;\n }\n\n .", " {\n padding: ", ";\n\n &.MuiStepper-horizontal {\n padding: 0;\n display: flex;\n flex-direction: column;\n }\n\n .MuiStep-root {\n width: 315px;\n\n .dot-icon {\n display: flex;\n background: ", ";\n border-radius: 50%;\n color: ", ";\n height: 28px;\n width: 28px;\n }\n\n .dot-typography {\n color: ", ";\n }\n\n .MuiStepContent-root {\n border-left-color: ", ";\n }\n\n &.MuiStep-horizontal {\n padding: ", ";\n\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n .horizontal-step-description {\n color: ", ";\n }\n\n &:hover {\n cursor: pointer;\n }\n\n &.completed {\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n }\n\n &.active {\n background: ", ";\n }\n\n &.error {\n .dot-avatar i:before {\n color: ", ";\n }\n .dot-avatar,\n .dot-icon {\n background: ", ";\n }\n }\n\n &.in-progress {\n .dot-avatar i:before {\n color: ", ";\n }\n }\n }\n\n &.MuiStep-vertical {\n &.completed {\n .dot-typography,\n .dot-icon {\n color: ", ";\n }\n }\n\n &.active {\n .dot-icon {\n background: ", ";\n color: ", ";\n }\n .step-label.dot-typography {\n color: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n }\n\n &.inactive .step-label.dot-typography {\n color: ", ";\n }\n\n &.error {\n .dot-typography {\n color: ", ";\n }\n\n .dot-icon {\n background: ", ";\n border: 1px solid ", ";\n color: ", ";\n }\n }\n }\n\n &.disabled {\n .dot-icon {\n color: ", ";\n }\n .dot-typography {\n color: ", ";\n }\n }\n\n &:last-of-type .MuiStepContent-root {\n border-left-color: transparent;\n }\n }\n }\n\n .", " {\n width: 100%;\n\n .step-content-container {\n padding: ", ";\n }\n }\n }\n "])), rootClassName$k, stepListClassName, theme.spacing(3), theme.palette.primary['50'], theme.palette.primary['50'], theme.palette.layer.n300, theme.palette.layer.n300, theme.spacing(1), theme.palette.layer.n300, theme.palette.layer.n100, theme.palette.layer.n500, theme.palette.layer.n400, theme.palette.secondary['500'], theme.palette.secondary['50'], theme.palette.layer['n50'], theme.palette.error['500'], theme.palette.error['50'], theme.palette.primary['400'], theme.palette.layer.n700, theme.palette.primary['400'], theme.palette.layer.n0, theme.palette.primary['500'], theme.palette.layer.n700, theme.palette.layer.n400, theme.palette.error.main, theme.palette.layer.n0, theme.palette.error.main, theme.palette.error.main, theme.palette.primary['50'], theme.palette.layer.n300, contentClassName, theme.spacing(3, 3, 2, 3));
|
|
8664
8665
|
});
|
|
8665
8666
|
var ScrollbarContainer = styled__default["default"].div.withConfig({
|
|
8666
8667
|
displayName: "Stepperstyles__ScrollbarContainer",
|
|
@@ -8807,7 +8808,7 @@
|
|
|
8807
8808
|
stepIcon = isHorizontal ? 'circle' : 'edit';
|
|
8808
8809
|
}
|
|
8809
8810
|
return isHorizontal ? jsxRuntime.jsx(DotAvatar, {
|
|
8810
|
-
alt: iconId,
|
|
8811
|
+
alt: iconId || stepIcon,
|
|
8811
8812
|
iconId: stepIcon,
|
|
8812
8813
|
type: "icon"
|
|
8813
8814
|
}, void 0) : jsxRuntime.jsx(DotIcon, {
|
|
@@ -8913,8 +8914,9 @@
|
|
|
8913
8914
|
className: rootClasses
|
|
8914
8915
|
}, {
|
|
8915
8916
|
children: [jsxRuntime.jsx(ScrollbarContainer, __assign({
|
|
8917
|
+
className: stepsPosition,
|
|
8916
8918
|
offset: offset,
|
|
8917
|
-
|
|
8919
|
+
tabIndex: 0
|
|
8918
8920
|
}, {
|
|
8919
8921
|
children: jsxRuntime.jsx(material.Stepper, __assign({
|
|
8920
8922
|
activeStep: currentStep,
|
|
@@ -8927,7 +8929,7 @@
|
|
|
8927
8929
|
var isActive = currentStep === step.id;
|
|
8928
8930
|
// TODO: use useStylesWithRootClass here
|
|
8929
8931
|
var stepClasses = function stepClasses() {
|
|
8930
|
-
return [step.className, isActive ? 'active' : '', step.completed ? 'completed' : '', step.disabled ? 'disabled' : '', step.error ? 'error' : '', step.inProgress ? 'in-progress' : ''].concat().join(' ').trim();
|
|
8932
|
+
return [step.className, isActive ? 'active' : 'inactive', step.completed ? 'completed' : '', step.disabled ? 'disabled' : '', step.error ? 'error' : '', step.inProgress ? 'in-progress' : ''].concat().join(' ').trim();
|
|
8931
8933
|
};
|
|
8932
8934
|
var getContent = function getContent() {
|
|
8933
8935
|
return isString$1(step.description) ? jsxRuntime.jsx(StepDescription, __assign({
|
|
@@ -9753,7 +9755,9 @@
|
|
|
9753
9755
|
root: 'dot-tr'
|
|
9754
9756
|
}
|
|
9755
9757
|
}, {
|
|
9756
|
-
children: [multiSelectHeader && renderMultiSelectCell(), collapsibleTableOptions && jsxRuntime.jsx(material.TableCell, {
|
|
9758
|
+
children: [multiSelectHeader && renderMultiSelectCell(), collapsibleTableOptions && jsxRuntime.jsx(material.TableCell, {
|
|
9759
|
+
"aria-hidden": "true"
|
|
9760
|
+
}, void 0), columns.map(function (cell) {
|
|
9757
9761
|
return jsxRuntime.jsx(DotHeaderCell, {
|
|
9758
9762
|
align: cell.align,
|
|
9759
9763
|
createSortHandler: createSortHandler,
|
|
@@ -83,7 +83,7 @@ export { DotSidebar } from './sidebar/Sidebar';
|
|
|
83
83
|
export { DotSkeleton } from './skeleton/Skeleton';
|
|
84
84
|
export { DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, useDotSnackbarContext, } from './snackbar';
|
|
85
85
|
export { DotSplitButton } from './split-button/SplitButton';
|
|
86
|
-
export { DotStepper } from './stepper/Stepper';
|
|
86
|
+
export { DotStepper, StepProps } from './stepper/Stepper';
|
|
87
87
|
export { DotProgressButton } from './progress-button/ProgressButton';
|
|
88
88
|
export { DotSwitch } from './switch';
|
|
89
89
|
export { DotHeaderRow, DotTable, DotTablePagination, DotTableActions, DotTableAction, } from './table';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digital-ai/dot-components",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE.md>",
|
|
6
6
|
"contributors": [
|
|
@@ -22,6 +22,21 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
24
24
|
},
|
|
25
|
+
"files": [
|
|
26
|
+
"**/*.styles.{js,jsx,ts,tsx}",
|
|
27
|
+
"**/*.{js,jsx,ts,tsx,svg}",
|
|
28
|
+
"!**/testing-utils/**",
|
|
29
|
+
"!typings/tests.d.ts",
|
|
30
|
+
"!**/*.stories.{js,jsx,ts,tsx}",
|
|
31
|
+
"!**/*.stories.*.{js,jsx,ts,tsx}",
|
|
32
|
+
"!**/*.spec.{js,jsx,ts,tsx}",
|
|
33
|
+
"!**/*.data.{js,jsx,ts,tsx}",
|
|
34
|
+
"!**/test_logo.svg",
|
|
35
|
+
"!.storybook/**",
|
|
36
|
+
"!jest.config.js",
|
|
37
|
+
"!rollup.config.js",
|
|
38
|
+
"!**/demo-*.svg"
|
|
39
|
+
],
|
|
25
40
|
"author": "Matt Haff",
|
|
26
41
|
"dependencies": {
|
|
27
42
|
"@digital-ai/dot-icons": "latest",
|