@databricks/design-system 1.12.13 → 1.12.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DropdownMenu-dbeef1b7.js → Stepper-839336b1.js} +367 -602
- package/dist/Stepper-839336b1.js.map +1 -0
- package/dist/design-system/AutoComplete/AutoComplete.d.ts +3 -0
- package/dist/design-system/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/design-system/Button/Button.d.ts +11 -2
- package/dist/design-system/Button/Button.d.ts.map +1 -1
- package/dist/design-system/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/design-system/ContextMenu/ContextMenu.d.ts.map +1 -0
- package/dist/design-system/ContextMenu/index.d.ts +2 -0
- package/dist/design-system/ContextMenu/index.d.ts.map +1 -0
- package/dist/design-system/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts +1 -0
- package/dist/design-system/DesignSystemEventProvider/DesignSystemEventProvider.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxAddButton.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts +9 -5
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSearch.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxOptionListSelectItem.d.ts.map +1 -1
- package/dist/design-system/DialogCombobox/DialogComboboxTrigger.d.ts.map +1 -1
- package/dist/design-system/Drawer/Drawer.d.ts.map +1 -1
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts +1 -2
- package/dist/design-system/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/design-system/FormV2/RHFAdapters.d.ts +1 -1
- package/dist/design-system/FormV2/RHFAdapters.d.ts.map +1 -1
- package/dist/design-system/Header/Header.d.ts.map +1 -1
- package/dist/design-system/Input/Input.d.ts +9 -1
- package/dist/design-system/Input/Input.d.ts.map +1 -1
- package/dist/design-system/Input/index.d.ts +2 -1
- package/dist/design-system/Input/index.d.ts.map +1 -1
- package/dist/design-system/Modal/Modal.d.ts +2 -2
- package/dist/design-system/Modal/Modal.d.ts.map +1 -1
- package/dist/design-system/Notification/Notification.d.ts.map +1 -1
- package/dist/design-system/Pagination/index.d.ts +8 -1
- package/dist/design-system/Pagination/index.d.ts.map +1 -1
- package/dist/design-system/Popover/InfoPopover.d.ts +2 -1
- package/dist/design-system/Popover/InfoPopover.d.ts.map +1 -1
- package/dist/design-system/Select/Select.d.ts.map +1 -1
- package/dist/design-system/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/design-system/SplitButton/Dropdown/DropdownButton.d.ts.map +1 -1
- package/dist/design-system/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/design-system/Switch/Switch.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableFilterInput.d.ts +2 -1
- package/dist/design-system/TableUI/TableFilterInput.d.ts.map +1 -1
- package/dist/design-system/TableUI/TableFilterLayout.d.ts.map +1 -1
- package/dist/design-system/Tooltip/Tooltip.d.ts +6 -0
- package/dist/design-system/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/design-system/Tree/Tree.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts +3 -0
- package/dist/design-system/TypeaheadCombobox/TypeaheadComboboxAddButton.d.ts.map +1 -0
- package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts +3 -1
- package/dist/design-system/TypeaheadCombobox/hooks/downshiftHookWrappers.d.ts.map +1 -1
- package/dist/design-system/TypeaheadCombobox/index.d.ts +1 -0
- package/dist/design-system/TypeaheadCombobox/index.d.ts.map +1 -1
- package/dist/design-system/Wizard/Wizard.d.ts +74 -0
- package/dist/design-system/Wizard/Wizard.d.ts.map +1 -0
- package/dist/design-system/Wizard/WizardFooter.d.ts +15 -0
- package/dist/design-system/Wizard/WizardFooter.d.ts.map +1 -0
- package/dist/design-system/Wizard/WizardModal.d.ts +7 -0
- package/dist/design-system/Wizard/WizardModal.d.ts.map +1 -0
- package/dist/design-system/Wizard/WizardStep.d.ts +71 -0
- package/dist/design-system/Wizard/WizardStep.d.ts.map +1 -0
- package/dist/design-system/Wizard/WizardStepsContent.d.ts +10 -0
- package/dist/design-system/Wizard/WizardStepsContent.d.ts.map +1 -0
- package/dist/design-system/Wizard/index.d.ts +5 -0
- package/dist/design-system/Wizard/index.d.ts.map +1 -0
- package/dist/design-system/Wizard/useWizardCurrentStep.d.ts +20 -0
- package/dist/design-system/Wizard/useWizardCurrentStep.d.ts.map +1 -0
- package/dist/design-system/_shared_/Combobox/styles.d.ts +9 -0
- package/dist/design-system/_shared_/Combobox/styles.d.ts.map +1 -1
- package/dist/design-system/index.d.ts +2 -0
- package/dist/design-system/index.d.ts.map +1 -1
- package/dist/design-system/utils/safex.d.ts +3 -2
- package/dist/design-system/utils/safex.d.ts.map +1 -1
- package/dist/design-system/utils/useNotifyOnFirstView.d.ts +15 -0
- package/dist/design-system/utils/useNotifyOnFirstView.d.ts.map +1 -0
- package/dist/development/Banner/Banner.d.ts +15 -4
- package/dist/development/Banner/Banner.d.ts.map +1 -1
- package/dist/development/ChatUI/ChatInput.d.ts.map +1 -1
- package/dist/development/ChatUI/Feedback.d.ts.map +1 -1
- package/dist/development/Stepper/Stepper.d.ts +62 -0
- package/dist/development/Stepper/Stepper.d.ts.map +1 -0
- package/dist/development/Stepper/index.d.ts +2 -0
- package/dist/development/Stepper/index.d.ts.map +1 -0
- package/dist/development/index.d.ts +1 -1
- package/dist/development/index.d.ts.map +1 -1
- package/dist/development.js +111 -228
- package/dist/development.js.map +1 -1
- package/dist/dubois-colors.less +54 -56
- package/dist/index-dark.css +193 -193
- package/dist/index.css +109 -109
- package/dist/index.js +1734 -511
- package/dist/index.js.map +1 -1
- package/dist/theme/_generated/SemanticColors-Dark.d.ts.map +1 -1
- package/dist/theme/_generated/SemanticColors-Light.d.ts.map +1 -1
- package/dist/theme/_generated/ValidSemanticColors.d.ts +0 -1
- package/dist/theme/_generated/ValidSemanticColors.d.ts.map +1 -1
- package/dist/theme/spacing.d.ts +1 -0
- package/dist/theme/spacing.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/DropdownMenu-dbeef1b7.js.map +0 -1
- package/dist/development/ContextMenu/ContextMenu.d.ts.map +0 -1
- package/dist/development/ContextMenu/index.d.ts +0 -2
- package/dist/development/ContextMenu/index.d.ts.map +0 -1
- /package/dist/{development → design-system}/ContextMenu/ContextMenu.d.ts +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WizardStep } from './WizardStep';
|
|
3
|
+
import type { WizardCurrentStepParams, WizardCurrentStepResult } from './useWizardCurrentStep';
|
|
4
|
+
import type { ButtonProps } from '..';
|
|
5
|
+
import type { StepperProps } from '../../development/Stepper';
|
|
6
|
+
export interface WizardProps {
|
|
7
|
+
/**
|
|
8
|
+
* The steps in this wizard.
|
|
9
|
+
* If steps are empty, this component won't render anything
|
|
10
|
+
*/
|
|
11
|
+
steps: WizardStep[];
|
|
12
|
+
/**
|
|
13
|
+
* Fired when the step has changed. Completed will be true when clicking done on the final step
|
|
14
|
+
*/
|
|
15
|
+
onStepChanged: WizardCurrentStepParams['onStepChanged'];
|
|
16
|
+
/**
|
|
17
|
+
* Fired when clicking on next and if the promise returns false, it will not advance to the next step
|
|
18
|
+
* This is useful for validating fields when users click on next and if invalid keep the user on this step
|
|
19
|
+
*/
|
|
20
|
+
onValidateStepChange?: WizardCurrentStepParams['onValidateStepChange'];
|
|
21
|
+
/**
|
|
22
|
+
* Function to localize the step number; workaround for no react-intl support within dubois
|
|
23
|
+
*
|
|
24
|
+
* ex) localizeStepNumber={intl.formatNumber}
|
|
25
|
+
*/
|
|
26
|
+
localizeStepNumber: StepperProps['localizeStepNumber'];
|
|
27
|
+
/**
|
|
28
|
+
* Called when user clicks on cancel button in Wizard footer
|
|
29
|
+
*/
|
|
30
|
+
onCancel: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* Initial step of the wizard
|
|
33
|
+
*
|
|
34
|
+
* @default 0
|
|
35
|
+
*/
|
|
36
|
+
initialStep?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Width of the entire component
|
|
39
|
+
*
|
|
40
|
+
* @default 100%
|
|
41
|
+
*/
|
|
42
|
+
width?: string | number;
|
|
43
|
+
/**
|
|
44
|
+
* Content of the wizard's footer cancel button
|
|
45
|
+
*/
|
|
46
|
+
cancelButtonContent: React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* Content of the wizard's footer next button
|
|
49
|
+
*
|
|
50
|
+
* Can be overriden for a specific step by setting `nextButtonContentOverride` on the step
|
|
51
|
+
*/
|
|
52
|
+
nextButtonContent: React.ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Content of the wizard's footer previous button
|
|
55
|
+
*
|
|
56
|
+
* Can be overriden for a specific step by setting `previousButtonContentOverride` on the step
|
|
57
|
+
*/
|
|
58
|
+
previousButtonContent: React.ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* Content of the wizard's footer done (last step's next) button
|
|
61
|
+
*
|
|
62
|
+
* Can be overriden for a specific step by setting `nextButtonContentOverride` on the last step
|
|
63
|
+
*/
|
|
64
|
+
doneButtonContent: React.ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Extra set of buttons to be displayed in the footer to the right of the cancel button
|
|
67
|
+
* The only button property that will be overriden is type to default; keeping 'next' as the only primary button.
|
|
68
|
+
*/
|
|
69
|
+
extraFooterButtons?: ButtonProps[];
|
|
70
|
+
}
|
|
71
|
+
export declare function Wizard({ steps, onStepChanged, onValidateStepChange, initialStep, ...props }: WizardProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
72
|
+
export type WizardControlledProps = WizardProps & WizardCurrentStepResult;
|
|
73
|
+
export declare function WizardControlled({ initialStep, steps, width, currentStepIndex, localizeStepNumber, onStepsChange, isLastStep, ...footerProps }: WizardControlledProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
74
|
+
//# sourceMappingURL=Wizard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wizard.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/Wizard.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAE/F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAEtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,KAAK,EAAE,UAAU,EAAE,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,uBAAuB,CAAC,eAAe,CAAC,CAAC;IAExD;;;OAGG;IACH,oBAAoB,CAAC,EAAE,uBAAuB,CAAC,sBAAsB,CAAC,CAAC;IAEvE;;;;OAIG;IACH,kBAAkB,EAAE,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAEvD;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAExB;;OAEG;IACH,mBAAmB,EAAE,KAAK,CAAC,SAAS,CAAC;IAErC;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC;IAEnC;;;;OAIG;IACH,qBAAqB,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvC;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC;IAEnC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAC;CACpC;AAED,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,oDAiBxG;AAED,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,uBAAuB,CAAC;AAE1E,wBAAgB,gBAAgB,CAAC,EAC/B,WAAe,EACf,KAAK,EACL,KAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,GAAG,WAAW,EACf,EAAE,qBAAqB,2DAiBvB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WizardStep } from './WizardStep';
|
|
3
|
+
import type { WizardCurrentStepResult } from './useWizardCurrentStep';
|
|
4
|
+
import type { ButtonProps } from '..';
|
|
5
|
+
export interface WizardFooterProps extends Omit<WizardCurrentStepResult, 'onStepsChange' | 'onValidateStepChange'>, WizardStep {
|
|
6
|
+
onCancel?: () => void;
|
|
7
|
+
cancelButtonContent: React.ReactNode;
|
|
8
|
+
nextButtonContent: React.ReactNode;
|
|
9
|
+
previousButtonContent: React.ReactNode;
|
|
10
|
+
doneButtonContent: React.ReactNode;
|
|
11
|
+
extraFooterButtons?: ButtonProps[];
|
|
12
|
+
}
|
|
13
|
+
export declare function WizardFooter(props: WizardFooterProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function getWizardFooterButtons({ goToNextStepOrDone, isLastStep, currentStepIndex, goToPreviousStep, busyValidatingNextStep, nextButtonDisabled, nextButtonLoading, nextButtonContentOverride, previousButtonContentOverride, previousStepButtonHidden, previousButtonDisabled, previousButtonLoading, cancelButtonContent, cancelStepButtonHidden, nextButtonContent, previousButtonContent, doneButtonContent, extraFooterButtons, onCancel, }: WizardFooterProps): (import("@emotion/react/jsx-runtime").JSX.Element | import("@emotion/react/jsx-runtime").JSX.Element[])[];
|
|
15
|
+
//# sourceMappingURL=WizardFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardFooter.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/WizardFooter.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAGtC,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,uBAAuB,EAAE,eAAe,GAAG,sBAAsB,CAAC,EAC7E,UAAU;IACZ,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,mBAAmB,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,qBAAqB,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAC;CACpC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,oDAgBpD;AAED,wBAAgB,sBAAsB,CAAC,EACrC,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,GACT,EAAE,iBAAiB,6GAsCnB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WizardProps } from './Wizard';
|
|
2
|
+
import type { ModalProps } from '..';
|
|
3
|
+
export interface WizardModalProps extends Omit<ModalProps, 'footer' | 'onCancel' | 'onOk'>, Omit<WizardProps, 'width'> {
|
|
4
|
+
onModalClose: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function WizardModal({ onStepChanged, onCancel, initialStep, steps, onModalClose, localizeStepNumber, cancelButtonContent, nextButtonContent, previousButtonContent, doneButtonContent, ...modalProps }: WizardModalProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=WizardModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardModal.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/WizardModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAK5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAErC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;IACpH,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,QAAQ,EACR,WAAW,EACX,KAAK,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,GAAG,UAAU,EACd,EAAE,gBAAgB,2DA4BlB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Step } from '../../development/Stepper';
|
|
3
|
+
/**
|
|
4
|
+
* Represents one step in the wizard
|
|
5
|
+
*/
|
|
6
|
+
export interface WizardStep {
|
|
7
|
+
/**
|
|
8
|
+
* The title of the step displayed in the steps header
|
|
9
|
+
*/
|
|
10
|
+
title: string;
|
|
11
|
+
/**
|
|
12
|
+
* Content of the step; the actual form
|
|
13
|
+
*/
|
|
14
|
+
content: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Optional description of the step displayed in the steps header
|
|
17
|
+
*/
|
|
18
|
+
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* if true the step is completed, reflected in the stepper style
|
|
21
|
+
*/
|
|
22
|
+
status?: Step['status'];
|
|
23
|
+
/**
|
|
24
|
+
* if true the next footer button for this step will be disabled
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
nextButtonDisabled: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* if true the next footer button for this step will be loading
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
nextButtonLoading?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Override content of this step's next button
|
|
37
|
+
*
|
|
38
|
+
* ex) 'Next', 'Create', 'Done' (for the last step)
|
|
39
|
+
*/
|
|
40
|
+
nextButtonContentOverride?: React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* If true the previous button will be hidden for this step.
|
|
43
|
+
* Note for the first step this is a no-op as it will always be hidden
|
|
44
|
+
*
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
previousStepButtonHidden?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Override content of this step's previous button
|
|
50
|
+
*/
|
|
51
|
+
previousButtonContentOverride?: React.ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* if true the previous footer button for this step will be disabled
|
|
54
|
+
*
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
previousButtonDisabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* if true the previous footer button for this step will be loading
|
|
60
|
+
*
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
previousButtonLoading?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* If true the cancel button will be hidden for this step.
|
|
66
|
+
*
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
cancelStepButtonHidden?: boolean;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=WizardStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardStep.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/WizardStep.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAE5B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5C;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,6BAA6B,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhD;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WizardStep } from './WizardStep';
|
|
2
|
+
import type { StepperProps } from '../../development/Stepper';
|
|
3
|
+
interface WizardStepsContentProps {
|
|
4
|
+
steps: WizardStep[];
|
|
5
|
+
currentStepIndex: number;
|
|
6
|
+
localizeStepNumber: StepperProps['localizeStepNumber'];
|
|
7
|
+
}
|
|
8
|
+
export declare function WizardStepsContent({ steps: wizardSteps, currentStepIndex, localizeStepNumber, }: WizardStepsContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=WizardStepsContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WizardStepsContent.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/WizardStepsContent.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,UAAU,uBAAuB;IAC/B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,YAAY,CAAC,oBAAoB,CAAC,CAAC;CACxD;AAED,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EAAE,WAAW,EAClB,gBAAgB,EAChB,kBAAkB,GACnB,EAAE,uBAAuB,oDAmBzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface WizardCurrentStepParams {
|
|
2
|
+
initialStep?: number;
|
|
3
|
+
totalSteps: number;
|
|
4
|
+
onValidateStepChange?: (step: number) => Promise<boolean>;
|
|
5
|
+
onStepChanged: ({ step, completed }: {
|
|
6
|
+
step: number;
|
|
7
|
+
completed: boolean;
|
|
8
|
+
}) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function useWizardCurrentStep({ initialStep, totalSteps, onValidateStepChange, onStepChanged, }: WizardCurrentStepParams): {
|
|
11
|
+
currentStepIndex: number;
|
|
12
|
+
busyValidatingNextStep: boolean;
|
|
13
|
+
isLastStep: boolean;
|
|
14
|
+
onStepsChange: (step: number, completed?: any) => Promise<void>;
|
|
15
|
+
goToNextStepOrDone: () => Promise<void>;
|
|
16
|
+
goToPreviousStep: () => void;
|
|
17
|
+
goToStep: (step: number) => void;
|
|
18
|
+
};
|
|
19
|
+
export type WizardCurrentStepResult = ReturnType<typeof useWizardCurrentStep>;
|
|
20
|
+
//# sourceMappingURL=useWizardCurrentStep.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWizardCurrentStep.d.ts","sourceRoot":"","sources":["../../../src/design-system/Wizard/useWizardCurrentStep.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1D,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CACpF;AAED,wBAAgB,oBAAoB,CAAC,EACnC,WAAW,EACX,UAAU,EACV,oBAAoB,EACpB,aAAa,GACd,EAAE,uBAAuB;;;;0BAMT,MAAM;;;qBAgCZ,MAAM;EAiBhB;AAED,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -9,9 +9,18 @@ export declare const getComboboxContentWrapperStyles: (theme: Theme, { maxHeight
|
|
|
9
9
|
width?: string | number | undefined;
|
|
10
10
|
}) => SerializedStyles;
|
|
11
11
|
export declare const getComboboxOptionItemWrapperStyles: (theme: Theme) => SerializedStyles;
|
|
12
|
+
interface getComboboxOptionLabelStylesProps {
|
|
13
|
+
theme: Theme;
|
|
14
|
+
dangerouslyHideCheck?: boolean;
|
|
15
|
+
textOverflowMode?: 'ellipsis' | 'multiline';
|
|
16
|
+
contentWidth?: DialogComboboxContextType['contentWidth'];
|
|
17
|
+
hasHintColumn?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const getComboboxOptionLabelStyles: ({ theme, dangerouslyHideCheck, textOverflowMode, contentWidth, hasHintColumn, }: getComboboxOptionLabelStylesProps) => SerializedStyles;
|
|
12
20
|
export declare const getInfoIconStyles: (theme: Theme) => SerializedStyles;
|
|
13
21
|
export declare const getCheckboxStyles: (theme: Theme, textOverflowMode: 'ellipsis' | 'multiline') => SerializedStyles;
|
|
14
22
|
export declare const getFooterStyles: (theme: Theme) => SerializedStyles;
|
|
15
23
|
export declare const getSelectItemWithHintColumnStyles: (hintColumnWidthPercent?: number) => SerializedStyles;
|
|
16
24
|
export declare const getHintColumnStyles: (theme: Theme, disabled: boolean, textOverflowMode: DialogComboboxContextType['textOverflowMode']) => SerializedStyles;
|
|
25
|
+
export {};
|
|
17
26
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/design-system/_shared_/Combobox/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/design-system/_shared_/Combobox/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AAKtG,eAAO,MAAM,+BAA+B,UACnC,KAAK;;;;;;MAcX,gBAuBF,CAAC;AAEF,eAAO,MAAM,kCAAkC,UAAW,KAAK,KAAG,gBA4BjE,CAAC;AAEF,UAAU,iCAAiC;IACzC,KAAK,EAAE,KAAK,CAAC;IACb,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IAC5C,YAAY,CAAC,EAAE,yBAAyB,CAAC,cAAc,CAAC,CAAC;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,4BAA4B,oFAMtC,iCAAiC,KAAG,gBAgBtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,KAAK,KAAG,gBAQhD,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,KAAK,oBAAoB,UAAU,GAAG,WAAW,KAAG,gBAwC5F,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,KAAK,KAAG,gBAsB9C,CAAC;AAEF,eAAO,MAAM,iCAAiC,4BAA4B,MAAM,KAAQ,gBAMvF,CAAC;AAEF,eAAO,MAAM,mBAAmB,UACvB,KAAK,YACF,OAAO,oBACC,yBAAyB,CAAC,kBAAkB,CAAC,KAC9D,gBAcF,CAAC"}
|
|
@@ -7,6 +7,7 @@ export * from './Breadcrumb';
|
|
|
7
7
|
export * from './Button';
|
|
8
8
|
export * from './Card';
|
|
9
9
|
export * from './Checkbox';
|
|
10
|
+
export * from './ContextMenu';
|
|
10
11
|
export * from './DatePicker';
|
|
11
12
|
export * from './DesignSystemEventProvider';
|
|
12
13
|
export * from './DesignSystemProvider';
|
|
@@ -55,5 +56,6 @@ export * from './Tooltip';
|
|
|
55
56
|
export * from './Tree';
|
|
56
57
|
export * from './TypeaheadCombobox';
|
|
57
58
|
export * from './Typography';
|
|
59
|
+
export * from './Wizard';
|
|
58
60
|
export * from './utils';
|
|
59
61
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/design-system/index.ts"],"names":[],"mapp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CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
type SAFEXValueType = boolean | number;
|
|
1
2
|
/**
|
|
2
3
|
* Provides access to http://go/safex flags from the frontend. Note that this is a temporary
|
|
3
4
|
* workaround until direct `safex` imports are available.
|
|
@@ -5,8 +6,8 @@
|
|
|
5
6
|
* @param defaultValue The default value to return if the flag is not set
|
|
6
7
|
* @returns
|
|
7
8
|
*/
|
|
8
|
-
export declare const safex: (flag: string, defaultValue:
|
|
9
|
-
type FlagMap = Record<string,
|
|
9
|
+
export declare const safex: <T extends SAFEXValueType>(flag: string, defaultValue: T) => T;
|
|
10
|
+
type FlagMap = Record<string, SAFEXValueType>;
|
|
10
11
|
export type SafexTestingConfig = {
|
|
11
12
|
setSafex: (overrides: FlagMap) => void;
|
|
12
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safex.d.ts","sourceRoot":"","sources":["../../../src/design-system/utils/safex.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"safex.d.ts","sourceRoot":"","sources":["../../../src/design-system/utils/safex.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvC;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,CAAC,CAAC,SAAS,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,KAAK,CAYhF,CAAC;AAEF,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAE9C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,kBAAkB,CA0BtD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface useNotifyOnFirstViewProps {
|
|
3
|
+
onView: () => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Checks if the element was viewed and calls the onView callback.
|
|
7
|
+
* NOTE: This hook only triggers the onView callback once for the element.
|
|
8
|
+
* @param onView - callback to be called when the element is viewed
|
|
9
|
+
* @typeParam T - extends Element to specify the type of element being observed
|
|
10
|
+
*/
|
|
11
|
+
export declare const useNotifyOnFirstView: <T extends Element>({ onView }: useNotifyOnFirstViewProps) => {
|
|
12
|
+
elementRef: import("react").MutableRefObject<T | null>;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=useNotifyOnFirstView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNotifyOnFirstView.d.ts","sourceRoot":"","sources":["../../../src/design-system/utils/useNotifyOnFirstView.ts"],"names":[],"mappings":";AAoCA,UAAU,yBAAyB;IACjC,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,kCAAmC,yBAAyB;;CA0B5F,CAAC"}
|
|
@@ -1,17 +1,28 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { DesignSystemEventProviderAnalyticsEventTypes } from '../../design-system/DesignSystemEventProvider/DesignSystemEventProvider';
|
|
3
3
|
export declare const BANNER_MIN_HEIGHT = 68;
|
|
4
4
|
export declare const BANNER_MAX_HEIGHT = 82;
|
|
5
5
|
export type BannerLevel = 'info' | 'warning' | 'error';
|
|
6
6
|
export interface BannerProps {
|
|
7
7
|
level: BannerLevel;
|
|
8
|
-
message:
|
|
9
|
-
description?:
|
|
10
|
-
ctaText?:
|
|
8
|
+
message: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
ctaText?: string;
|
|
11
11
|
onAccept?: () => void;
|
|
12
12
|
closable?: boolean;
|
|
13
13
|
onClose?: () => void;
|
|
14
14
|
'data-testid'?: string;
|
|
15
|
+
/**
|
|
16
|
+
* componentId is used to identify the component in analytics events. It distinguished
|
|
17
|
+
* this component from all other components of this type. For new instances of this
|
|
18
|
+
* component it's good to have this be a short, human-readable string that describes
|
|
19
|
+
* the component. For example, the syntax for the identifier could be something similar
|
|
20
|
+
* to "webapp.notebook.share".
|
|
21
|
+
* This will be used in querying component events in analytics.
|
|
22
|
+
* go/ui-observability
|
|
23
|
+
*/
|
|
24
|
+
componentId: string;
|
|
25
|
+
analyticsEvents?: ReadonlyArray<DesignSystemEventProviderAnalyticsEventTypes.OnView>;
|
|
15
26
|
closeButtonAriaLabel?: string;
|
|
16
27
|
}
|
|
17
28
|
export declare const Banner: React.FC<BannerProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../src/development/Banner/Banner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../src/development/Banner/Banner.tsx"],"names":[],"mappings":"AAEA,O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6BF,eAAO,MAAM,SAAS,8DAA+D,cAAc,
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/development/ChatUI/ChatInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,KAAK,cAAc,GAAG;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACrC,CAAC;AA6BF,eAAO,MAAM,SAAS,8DAA+D,cAAc,qDAgDlG,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feedback.d.ts","sourceRoot":"","sources":["../../../src/development/ChatUI/Feedback.tsx"],"names":[],"mappings":"AAQA,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CAC7D,CAAC;AAqBF,eAAO,MAAM,QAAQ,mBAAoB,aAAa,
|
|
1
|
+
{"version":3,"file":"Feedback.d.ts","sourceRoot":"","sources":["../../../src/development/ChatUI/Feedback.tsx"],"names":[],"mappings":"AAQA,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CAC7D,CAAC;AAqBF,eAAO,MAAM,QAAQ,mBAAoB,aAAa,4DAgErD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface Step {
|
|
3
|
+
/**
|
|
4
|
+
* Title of the step
|
|
5
|
+
*/
|
|
6
|
+
title: string;
|
|
7
|
+
/**
|
|
8
|
+
* Optional description of the step
|
|
9
|
+
*/
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Status of the step. This will change the icon and text color of the step.
|
|
13
|
+
*
|
|
14
|
+
* @default 'upcoming'
|
|
15
|
+
*/
|
|
16
|
+
status?: 'completed' | 'loading' | 'upcoming' | 'error';
|
|
17
|
+
icon?: React.ComponentType<{
|
|
18
|
+
statusColor: string;
|
|
19
|
+
status: Step['status'];
|
|
20
|
+
}>;
|
|
21
|
+
}
|
|
22
|
+
export interface StepperProps {
|
|
23
|
+
/**
|
|
24
|
+
* List of ordered steps in the stepper
|
|
25
|
+
*/
|
|
26
|
+
steps: Step[];
|
|
27
|
+
/**
|
|
28
|
+
* Function to localize the step number; workaround for no react-intl support within dubois
|
|
29
|
+
*
|
|
30
|
+
* ex) localizeStepNumber={intl.formatNumber}
|
|
31
|
+
*/
|
|
32
|
+
localizeStepNumber: (stepIndex: number) => string;
|
|
33
|
+
/**
|
|
34
|
+
* Direction of the stepper
|
|
35
|
+
*
|
|
36
|
+
* @default horizontal
|
|
37
|
+
*/
|
|
38
|
+
direction?: 'horizontal' | 'vertical';
|
|
39
|
+
/**
|
|
40
|
+
* Current active step from the `steps` property (zero-indexed)
|
|
41
|
+
*
|
|
42
|
+
* @default 0
|
|
43
|
+
*/
|
|
44
|
+
currentStepIndex?: number;
|
|
45
|
+
/**
|
|
46
|
+
* If true, and the stepper has a horizontal direction the stepper will be updated to be vertical if width is less than 532px.
|
|
47
|
+
* Set this value to false to opt out of the responsive behavior.
|
|
48
|
+
*
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
responsive?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export declare function Stepper({ direction: requestedDirection, currentStepIndex: currentStep, steps, localizeStepNumber, responsive, }: StepperProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
54
|
+
export declare function useResponsiveDirection({ requestedDirection, responsive, enabled, ref, }: {
|
|
55
|
+
requestedDirection: StepperProps['direction'];
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
responsive: boolean;
|
|
58
|
+
ref: React.RefObject<HTMLOListElement>;
|
|
59
|
+
}): {
|
|
60
|
+
direction: "horizontal" | "vertical";
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/development/Stepper/Stepper.tsx"],"names":[],"mappings":";AAQA,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAExD,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;KAAE,CAAC,CAAC;CAC7E;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,IAAI,EAAE,CAAC;IAEd;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAElD;;;;OAIG;IACH,SAAS,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAEtC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,OAAO,CAAC,EACtB,SAAS,EAAE,kBAAkB,EAC7B,gBAAgB,EAAE,WAAW,EAC7B,KAAK,EACL,kBAAkB,EAClB,UAAiB,GAClB,EAAE,YAAY,2DA0Ed;AA6OD,wBAAgB,sBAAsB,CAAC,EACrC,kBAAiC,EACjC,UAAU,EACV,OAAO,EACP,GAAG,GACJ,EAAE;IACD,kBAAkB,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACxC;;EA2BA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/development/Stepper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/development/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/development/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|