flipper-ui 0.33.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/core/data-display/actions/index.d.ts +3 -4
- package/core/data-display/actions/styles.d.ts +0 -1
- package/core/data-display/advertise/advertise.stories.d.ts +3 -1
- package/core/data-display/advertise/index.js +1 -1
- package/core/data-display/advertise/styles.d.ts +6 -27
- package/core/data-display/advertise/styles.js +2 -2
- package/core/data-display/avatar/index.js +1 -2
- package/core/data-display/badge/badge.stories.d.ts +6 -6
- package/core/data-display/badge/index.d.ts +7 -11
- package/core/data-display/badge/index.js +17 -15
- package/core/data-display/chapter/chapter.stories.d.ts +3 -1
- package/core/data-display/chapter/index.d.ts +1 -2
- package/core/data-display/chapter/index.js +3 -2
- package/core/data-display/chapter/styles.d.ts +1 -2
- package/core/data-display/chapter/styles.js +3 -3
- package/core/data-display/chip/chip.stories.d.ts +3 -1
- package/core/data-display/chip/index.d.ts +11 -2
- package/core/data-display/chip/index.js +12 -10
- package/core/data-display/data-table/data-table-action.js +1 -1
- package/core/data-display/data-table/data-table-field.js +21 -19
- package/core/data-display/data-table/data-table-pagination-actions.js +5 -5
- package/core/data-display/data-table/data-table-query-paginated.d.ts +1 -1
- package/core/data-display/data-table/data-table-query-paginated.js +9 -9
- package/core/data-display/data-table/data-table-query-paginated.stories.d.ts +3 -1
- package/core/data-display/data-table/data-table.d.ts +1 -1
- package/core/data-display/data-table/data-table.js +12 -14
- package/core/data-display/data-table/data-table.stories.d.ts +3 -1
- package/core/data-display/data-table/rows.js +2 -2
- package/core/data-display/data-table/styles.d.ts +2 -3
- package/core/data-display/data-table/use-paginated.d.ts +1 -1
- package/core/data-display/data-table/use-paginated.js +10 -7
- package/core/data-display/data-table/use-rows-state.d.ts +2 -2
- package/core/data-display/divider/index.d.ts +3 -3
- package/core/data-display/divider/index.js +2 -2
- package/core/data-display/fab/fab.stories.d.ts +3 -1
- package/core/data-display/fab/index.d.ts +3 -3
- package/core/data-display/fab/index.js +15 -2
- package/core/data-display/fab-v2/index.d.ts +2 -2
- package/core/data-display/list/index.d.ts +2 -2
- package/core/data-display/list/index.js +15 -21
- package/core/data-display/list/list.stories.d.ts +3 -1
- package/core/data-display/list-item/index.js +29 -30
- package/core/data-display/menu-item/index.d.ts +2 -5
- package/core/data-display/menu-item/index.js +3 -2
- package/core/data-display/password-visibility/styles.d.ts +1 -2
- package/core/data-display/table/index.d.ts +4 -4
- package/core/data-display/table/index.js +1 -1
- package/core/data-display/table/table-body.js +1 -1
- package/core/data-display/table/table-cell.d.ts +4 -4
- package/core/data-display/table/table-cell.js +2 -2
- package/core/data-display/table/table-head.js +1 -1
- package/core/data-display/table/table-row.d.ts +4 -4
- package/core/data-display/table/table-row.js +1 -1
- package/core/data-display/table/table.stories.d.ts +3 -8
- package/core/data-display/typography/index.d.ts +1 -1
- package/core/data-display/typography/index.js +1 -1
- package/core/data-display/typography/typography.stories.d.ts +3 -14
- package/core/feedback/collapse/index.d.ts +2 -2
- package/core/feedback/collapse/index.js +3 -3
- package/core/feedback/dialog/index.d.ts +4 -5
- package/core/feedback/dialog/index.js +24 -33
- package/core/feedback/dialog/styles.d.ts +0 -1
- package/core/feedback/dialog/styles.js +1 -1
- package/core/feedback/dialog-v2/dialog.d.ts +7 -4
- package/core/feedback/dialog-v2/dialog.js +9 -2
- package/core/feedback/fade/index.d.ts +3 -2
- package/core/feedback/fade/index.js +3 -3
- package/core/feedback/grow/grow.stories.d.ts +6 -4
- package/core/feedback/grow/index.d.ts +1 -1
- package/core/feedback/grow/index.js +3 -3
- package/core/feedback/loading/index.js +11 -19
- package/core/feedback/loading/styles.d.ts +0 -1
- package/core/feedback/nothing-found/index.d.ts +1 -1
- package/core/feedback/nothing-found/styles.d.ts +3 -26
- package/core/feedback/nothing-found/styles.js +2 -2
- package/core/feedback/progress/index.d.ts +5 -5
- package/core/feedback/progress/index.js +6 -6
- package/core/feedback/progress/progress.stories.d.ts +3 -1
- package/core/feedback/skeleton/skeleton.stories.d.ts +3 -1
- package/core/feedback/snackbar/index.d.ts +1 -1
- package/core/feedback/snackbar/index.js +25 -35
- package/core/feedback/snackbar/snackbar.stories.d.ts +3 -1
- package/core/feedback/tooltip/index.js +2 -2
- package/core/feedback/tooltip/tooltip.stories.d.ts +3 -1
- package/core/feedback/validation-dialog/index.js +4 -4
- package/core/feedback/validation-dialog/styles.d.ts +6 -27
- package/core/inputs/add-button/index.d.ts +2 -2
- package/core/inputs/add-button/index.js +1 -1
- package/core/inputs/add-button/styles.d.ts +1 -2
- package/core/inputs/autocomplete/autocomplete.stories.d.ts +6 -0
- package/core/inputs/autocomplete/index.d.ts +3 -0
- package/core/inputs/autocomplete/index.js +15 -0
- package/core/inputs/button/button.stories.d.ts +3 -1
- package/core/inputs/button/index.d.ts +12 -10
- package/core/inputs/button/index.js +12 -6
- package/core/inputs/checkbox/checkbox.stories.d.ts +3 -1
- package/core/inputs/checkbox/index.d.ts +4 -4
- package/core/inputs/checkbox/index.js +12 -12
- package/core/inputs/checkbox/styles.d.ts +0 -1
- package/core/inputs/date-time/index.d.ts +10 -13
- package/core/inputs/date-time/index.js +272 -67
- package/core/inputs/date-time/styles.d.ts +1 -0
- package/core/inputs/date-time/styles.js +11 -0
- package/core/inputs/icon-button/icon-button.stories.d.ts +3 -1
- package/core/inputs/icon-button/index.d.ts +4 -3
- package/core/inputs/icon-button/index.js +4 -2
- package/core/inputs/input-adornment/index.d.ts +3 -3
- package/core/inputs/input-adornment/index.js +2 -2
- package/core/inputs/input-adornment/input-adornment.stories.d.ts +4 -1
- package/core/inputs/mask-field/index.d.ts +2 -2
- package/core/inputs/mask-field/mask-field.stories.d.ts +3 -1
- package/core/inputs/pin-input/index.js +20 -28
- package/core/inputs/pin-input/styles.d.ts +0 -1
- package/core/inputs/radio/index.d.ts +5 -5
- package/core/inputs/radio/index.js +7 -4
- package/core/inputs/radio/radio.stories.d.ts +4 -2
- package/core/inputs/radio-group/index.d.ts +3 -2
- package/core/inputs/radio-group/index.js +15 -11
- package/core/inputs/radio-group/radio-group.stories.d.ts +3 -1
- package/core/inputs/select/index.d.ts +4 -4
- package/core/inputs/select/index.js +15 -31
- package/core/inputs/select/select.spec.d.ts +1 -1
- package/core/inputs/select/select.stories.d.ts +3 -1
- package/core/inputs/slider/index.d.ts +4 -4
- package/core/inputs/slider/index.js +33 -3
- package/core/inputs/slider/slider.spec.d.ts +1 -1
- package/core/inputs/slider/slider.stories.d.ts +3 -1
- package/core/inputs/text-field/index.d.ts +9 -18
- package/core/inputs/text-field/index.js +34 -91
- package/core/inputs/text-field/styles.d.ts +0 -1
- package/core/navigation/breadcrumbs/index.js +2 -2
- package/core/navigation/breadcrumbs/styles.d.ts +6 -30
- package/core/navigation/breadcrumbs/styles.js +4 -6
- package/core/navigation/drawer/index.d.ts +3 -3
- package/core/navigation/drawer/index.js +10 -23
- package/core/navigation/menu/index.d.ts +7 -3
- package/core/navigation/menu/index.js +12 -3
- package/core/navigation/menu/menu.stories.d.ts +3 -1
- package/core/navigation/sidebar/index.d.ts +3 -3
- package/core/navigation/sidebar/index.js +24 -47
- package/core/navigation/sidebar/sidebar.stories.d.ts +6 -3
- package/core/navigation/sidebar/styles.d.ts +4 -1
- package/core/navigation/sidebar/styles.js +10 -3
- package/core/navigation/stepper/index.js +6 -6
- package/core/navigation/stepper/stepper.stories.d.ts +3 -1
- package/core/navigation/tab/index.d.ts +7 -4
- package/core/navigation/tab/index.js +10 -4
- package/core/navigation/tabs/index.d.ts +5 -14
- package/core/navigation/tabs/index.js +7 -8
- package/core/navigation/tabs/tabs.stories.d.ts +3 -1
- package/core/surfaces/box/box.stories.d.ts +3 -1
- package/core/surfaces/box/index.d.ts +1 -1
- package/core/surfaces/box/index.js +4 -4
- package/core/surfaces/card/index.d.ts +2 -2
- package/core/surfaces/card/index.js +8 -4
- package/core/surfaces/card/styles.d.ts +6 -29
- package/core/surfaces/card/styles.js +1 -7
- package/core/surfaces/expansion-panel/expansion-panel.stories.d.ts +3 -1
- package/core/surfaces/expansion-panel/index.d.ts +5 -5
- package/core/surfaces/expansion-panel/index.js +25 -20
- package/core/surfaces/expansion-panel/styles.d.ts +0 -1
- package/core/surfaces/header/header.stories.d.ts +3 -1
- package/core/surfaces/header/index.d.ts +5 -3
- package/core/surfaces/header/index.js +4 -4
- package/core/surfaces/panel/index.d.ts +3 -3
- package/core/surfaces/panel/index.js +13 -12
- package/core/surfaces/panel/styles.d.ts +6 -27
- package/core/surfaces/panel/styles.js +2 -2
- package/core/surfaces/paper/index.d.ts +3 -3
- package/core/surfaces/paper/index.js +2 -2
- package/core/surfaces/step-card/index.d.ts +4 -3
- package/core/surfaces/step-card/index.js +2 -2
- package/core/surfaces/step-card/step-card-details.js +3 -3
- package/core/surfaces/step-card/step-card-panel.js +14 -22
- package/core/surfaces/step-card/step-card-skeleton.js +17 -21
- package/core/surfaces/step-card/step-card.stories.d.ts +3 -1
- package/core/surfaces/step-card/styles.d.ts +1 -4
- package/core/surfaces/step-card/styles.js +3 -6
- package/index.d.ts +1 -3
- package/index.js +4 -20
- package/package.json +30 -38
- package/test/mocks/data-table-hidden-mock.js +2 -4
- package/test/mocks/data-table-mock.js +2 -4
- package/test/mocks/date-time-mock.d.ts +2 -3
- package/test/mocks/date-time-mock.js +1 -5
- package/test/mocks/pin-input-mock.js +1 -2
- package/test/mocks/select-mock.d.ts +2 -2
- package/test/mocks/select-mock.js +4 -4
- package/test/mocks/snackbar-mock.js +2 -2
- package/test/mocks/text-field-mock.d.ts +2 -2
- package/test/mocks/text-field-mock.js +2 -2
- package/test/mocks/text-field-options-mock.d.ts +2 -2
- package/theme/ThemeProvider.d.ts +1 -1
- package/theme/ThemeProvider.js +1 -1
- package/core/data-display/menu-item/styles.d.ts +0 -4
- package/core/data-display/menu-item/styles.js +0 -12
- package/core/feedback/slide/index.d.ts +0 -14
- package/core/feedback/slide/index.js +0 -32
- package/core/feedback/slide/slide.spec.d.ts +0 -1
- package/core/feedback/slide/slide.stories.d.ts +0 -3
- package/core/inputs/auto-complete-lab/autocomplete-lab.stories.d.ts +0 -4
- package/core/inputs/auto-complete-lab/index.d.ts +0 -3
- package/core/inputs/auto-complete-lab/index.js +0 -33
- package/core/inputs/chip-field/chip-field.spec.d.ts +0 -1
- package/core/inputs/chip-field/chip-field.stories.d.ts +0 -3
- package/core/inputs/chip-field/index.d.ts +0 -25
- package/core/inputs/chip-field/index.js +0 -26
- package/core/inputs/chip-field/styles.d.ts +0 -2
- package/core/inputs/chip-field/styles.js +0 -12
- /package/core/inputs/{auto-complete-lab/autocomplete-lab.spec.d.ts → autocomplete/autocomplete.spec.d.ts} +0 -0
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
children?: import("react").ReactNode;
|
|
5
|
-
color?: "inherit" | "primary" | "secondary" | "initial" | "error" | "textPrimary" | "textSecondary" | undefined;
|
|
6
|
-
display?: "initial" | "block" | "inline" | undefined;
|
|
7
|
-
gutterBottom?: boolean | undefined;
|
|
8
|
-
noWrap?: boolean | undefined;
|
|
9
|
-
paragraph?: boolean | undefined;
|
|
10
|
-
variant?: "inherit" | (import("@material-ui/core").TypographyVariant | "srOnly") | undefined;
|
|
11
|
-
variantMapping?: Partial<Record<import("@material-ui/core").TypographyVariant | "srOnly", string>> | undefined;
|
|
12
|
-
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").TypographyTypeMap<{}, "span">> & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
13
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
14
|
-
}, "color" | "role" | "onClick" | "children" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key"> & import("../../types").DefaultProps, never>> & string & Omit<({ children, margin, padding, style, variant, ...otherProps }: {
|
|
15
|
-
align?: import("@material-ui/core").PropTypes.Alignment | undefined;
|
|
16
|
-
children?: import("react").ReactNode;
|
|
17
|
-
color?: "inherit" | "primary" | "secondary" | "initial" | "error" | "textPrimary" | "textSecondary" | undefined;
|
|
18
|
-
display?: "initial" | "block" | "inline" | undefined;
|
|
19
|
-
gutterBottom?: boolean | undefined;
|
|
20
|
-
noWrap?: boolean | undefined;
|
|
21
|
-
paragraph?: boolean | undefined;
|
|
22
|
-
variant?: "inherit" | (import("@material-ui/core").TypographyVariant | "srOnly") | undefined;
|
|
23
|
-
variantMapping?: Partial<Record<import("@material-ui/core").TypographyVariant | "srOnly", string>> | undefined;
|
|
24
|
-
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").TypographyTypeMap<{}, "span">> & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
25
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
26
|
-
}, "color" | "role" | "onClick" | "children" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key"> & import("../../types").DefaultProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
1
|
+
export declare const TextTypography: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@mui/material/Typography").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
3
|
+
}, "color" | "children" | "padding" | "margin" | "style" | "className" | "classes" | "sx" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "overflow" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "variant" | "noWrap" | "gutterBottom" | "paragraph" | "variantMapping">, never>> & string & Omit<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material/Typography").TypographyTypeMap<{}, "span">>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.TextTypography = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
9
10
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _typography = _interopRequireDefault(require("../../data-display/typography"));
|
|
11
11
|
var _templateObject;
|
|
12
|
-
var TextTypography = exports.TextTypography = (0, _styledComponents["default"])(
|
|
12
|
+
var TextTypography = exports.TextTypography = (0, _styledComponents["default"])(_Typography["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n && {\n flex: 1;\n }\n"])));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DefaultProps } from '../../types';
|
|
3
3
|
export interface ILinear {
|
|
4
|
-
color?: 'primary' | 'secondary';
|
|
5
|
-
valueBuffer?: number;
|
|
6
|
-
variant?: 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
|
4
|
+
color?: 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'inherit';
|
|
7
5
|
classes?: {
|
|
8
6
|
root?: string;
|
|
9
7
|
colorPrimary?: string;
|
|
10
8
|
barColorPrimary?: string;
|
|
11
9
|
barColorSecondary?: string;
|
|
12
10
|
};
|
|
11
|
+
variant?: 'buffer' | 'determinate' | 'indeterminate' | 'query';
|
|
12
|
+
valueBuffer?: number;
|
|
13
13
|
rootColor?: string;
|
|
14
14
|
primaryColor?: string;
|
|
15
15
|
barPrimaryColor?: string;
|
|
@@ -17,8 +17,8 @@ export interface ILinear {
|
|
|
17
17
|
}
|
|
18
18
|
export interface ICircular {
|
|
19
19
|
size?: string | number;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
variant?: 'determinate' | 'indeterminate';
|
|
21
|
+
color?: 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'inherit';
|
|
22
22
|
}
|
|
23
23
|
export interface ProgressProps extends DefaultProps {
|
|
24
24
|
value?: number;
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
-
var _CircularProgress2 = _interopRequireDefault(require("@material-ui/core/CircularProgress"));
|
|
9
|
-
var _LinearProgress2 = _interopRequireDefault(require("@material-ui/core/LinearProgress"));
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
var _makeStyles2 = _interopRequireDefault(require("@mui/styles/makeStyles"));
|
|
13
12
|
var _react = _interopRequireDefault(require("react"));
|
|
14
|
-
var
|
|
13
|
+
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
14
|
+
var _LinearProgress = _interopRequireDefault(require("@mui/material/LinearProgress"));
|
|
15
15
|
var _excluded = ["linear", "style", "margin", "padding", "rootColor", "primaryColor", "barPrimaryColor", "barSecondaryColor"];
|
|
16
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
-
var useStyles = (0,
|
|
18
|
+
var useStyles = (0, _makeStyles2["default"])(function () {
|
|
19
19
|
return {
|
|
20
20
|
root: function root(props) {
|
|
21
21
|
return {
|
|
@@ -56,7 +56,7 @@ var Progress = function Progress(_ref) {
|
|
|
56
56
|
barPrimaryColor: barPrimaryColor,
|
|
57
57
|
barSecondaryColor: barSecondaryColor
|
|
58
58
|
});
|
|
59
|
-
return linear ? /*#__PURE__*/_react["default"].createElement(
|
|
59
|
+
return linear ? /*#__PURE__*/_react["default"].createElement(_LinearProgress["default"], (0, _extends2["default"])({
|
|
60
60
|
style: _objectSpread({
|
|
61
61
|
margin: margin,
|
|
62
62
|
padding: padding
|
|
@@ -67,7 +67,7 @@ var Progress = function Progress(_ref) {
|
|
|
67
67
|
barColorPrimary: classes.barColorPrimary,
|
|
68
68
|
barColorSecondary: classes.barColorSecondary
|
|
69
69
|
}
|
|
70
|
-
}, otherProps)) : /*#__PURE__*/_react["default"].createElement(
|
|
70
|
+
}, otherProps)) : /*#__PURE__*/_react["default"].createElement(_CircularProgress["default"], (0, _extends2["default"])({
|
|
71
71
|
style: _objectSpread({
|
|
72
72
|
margin: margin,
|
|
73
73
|
padding: padding
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Meta } from '@storybook/react';
|
|
2
|
+
import Progress from '.';
|
|
3
|
+
declare const _default: Meta<typeof Progress>;
|
|
2
4
|
export default _default;
|
|
3
5
|
export declare const Default: any;
|
|
4
6
|
export declare const Primary: any;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Meta } from '@storybook/react';
|
|
2
|
+
import Skeleton from '.';
|
|
3
|
+
declare const _default: Meta<typeof Skeleton>;
|
|
2
4
|
export default _default;
|
|
3
5
|
export declare const Default: any;
|
|
4
6
|
export declare const WithCustomHeight: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactNode, FunctionComponent } from 'react';
|
|
3
3
|
import type { DefaultProps } from '../../types';
|
|
4
|
-
import type { TransitionProps } from '@material
|
|
4
|
+
import type { TransitionProps } from '@mui/material/transitions';
|
|
5
5
|
export interface SnackBarProps extends DefaultProps {
|
|
6
6
|
autoHide?: number;
|
|
7
7
|
message: ReactNode;
|
|
@@ -5,10 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
-
var _Snackbar2 = _interopRequireDefault(require("@material-ui/core/Snackbar"));
|
|
9
|
-
var _SnackbarContent2 = _interopRequireDefault(require("@material-ui/core/SnackbarContent"));
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
var _IconButton2 = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
12
9
|
var _Close2 = _interopRequireDefault(require("@mui/icons-material/Close"));
|
|
13
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
@@ -17,8 +14,10 @@ var _CheckCircle2 = _interopRequireDefault(require("@mui/icons-material/CheckCir
|
|
|
17
14
|
var _Info2 = _interopRequireDefault(require("@mui/icons-material/Info"));
|
|
18
15
|
var _Error2 = _interopRequireDefault(require("@mui/icons-material/Error"));
|
|
19
16
|
var _react = _interopRequireDefault(require("react"));
|
|
20
|
-
var _colors = require("@material
|
|
21
|
-
var
|
|
17
|
+
var _colors = require("@mui/material/colors");
|
|
18
|
+
var _Snackbar = _interopRequireDefault(require("@mui/material/Snackbar"));
|
|
19
|
+
var _SnackbarContent = _interopRequireDefault(require("@mui/material/SnackbarContent"));
|
|
20
|
+
var _iconButton = _interopRequireDefault(require("../../inputs/icon-button"));
|
|
22
21
|
var _excluded = ["id", "action", "anchorOrigin", "autoHide", "icon", "message", "onClose", "open", "padding", "margin", "style", "variant", "className", "TransitionComponent", "TransitionProps", "onClick"];
|
|
23
22
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
23
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -40,19 +39,6 @@ var variants = {
|
|
|
40
39
|
icon: _Warning2["default"]
|
|
41
40
|
}
|
|
42
41
|
};
|
|
43
|
-
var useStyles = (0, _styles.makeStyles)(function (theme) {
|
|
44
|
-
return (0, _styles.createStyles)({
|
|
45
|
-
icon: {
|
|
46
|
-
fontSize: 20,
|
|
47
|
-
marginRight: theme.spacing(1),
|
|
48
|
-
opacity: 0.9
|
|
49
|
-
},
|
|
50
|
-
message: {
|
|
51
|
-
alignItems: 'center',
|
|
52
|
-
display: 'flex'
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
42
|
var SnackBar = function SnackBar(props) {
|
|
57
43
|
var id = props.id,
|
|
58
44
|
action = props.action,
|
|
@@ -72,9 +58,8 @@ var SnackBar = function SnackBar(props) {
|
|
|
72
58
|
TransitionComponent = props.TransitionComponent,
|
|
73
59
|
TransitionProps = props.TransitionProps,
|
|
74
60
|
onClick = props.onClick,
|
|
75
|
-
|
|
61
|
+
otherProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
76
62
|
var Icon = variants[variant].icon;
|
|
77
|
-
var classes = useStyles();
|
|
78
63
|
var cursor = onClick ? 'pointer' : undefined;
|
|
79
64
|
var handleClose = function handleClose(event) {
|
|
80
65
|
event.preventDefault();
|
|
@@ -83,45 +68,50 @@ var SnackBar = function SnackBar(props) {
|
|
|
83
68
|
props.onClose();
|
|
84
69
|
}
|
|
85
70
|
};
|
|
86
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
87
|
-
anchorOrigin: anchorOrigin,
|
|
88
|
-
open: open,
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement(_Snackbar["default"], {
|
|
89
72
|
id: id,
|
|
73
|
+
open: open,
|
|
74
|
+
className: className,
|
|
75
|
+
anchorOrigin: anchorOrigin !== null && anchorOrigin !== void 0 ? anchorOrigin : {
|
|
76
|
+
horizontal: 'center',
|
|
77
|
+
vertical: 'bottom'
|
|
78
|
+
},
|
|
90
79
|
autoHideDuration: autoHide,
|
|
80
|
+
TransitionProps: TransitionProps,
|
|
81
|
+
TransitionComponent: TransitionComponent,
|
|
91
82
|
style: _objectSpread({
|
|
92
83
|
cursor: cursor,
|
|
93
84
|
padding: padding,
|
|
94
85
|
margin: margin
|
|
95
86
|
}, style),
|
|
96
|
-
className: className,
|
|
97
|
-
TransitionComponent: TransitionComponent,
|
|
98
|
-
TransitionProps: TransitionProps,
|
|
99
87
|
onClick: onClick,
|
|
100
88
|
onClose: onClose
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
89
|
+
}, /*#__PURE__*/_react["default"].createElement(_SnackbarContent["default"], (0, _extends2["default"])({
|
|
90
|
+
"aria-describedby": "client-snackbar",
|
|
102
91
|
style: {
|
|
103
92
|
backgroundColor: variants[variant].color,
|
|
104
93
|
flexWrap: 'nowrap',
|
|
105
94
|
cursor: cursor
|
|
106
95
|
},
|
|
107
|
-
"aria-describedby": "client-snackbar",
|
|
108
96
|
message: /*#__PURE__*/_react["default"].createElement("span", {
|
|
109
97
|
id: "client-snackbar",
|
|
110
|
-
|
|
98
|
+
style: {
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
display: 'flex',
|
|
101
|
+
gap: '12px'
|
|
102
|
+
}
|
|
111
103
|
}, icon || /*#__PURE__*/_react["default"].createElement(Icon, {
|
|
112
|
-
className: classes.icon
|
|
113
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
114
104
|
style: {
|
|
115
|
-
|
|
105
|
+
opacity: 0.9
|
|
116
106
|
}
|
|
117
|
-
}, message)),
|
|
118
|
-
action: action || /*#__PURE__*/_react["default"].createElement(
|
|
107
|
+
}), /*#__PURE__*/_react["default"].createElement("div", null, message)),
|
|
108
|
+
action: action || /*#__PURE__*/_react["default"].createElement(_iconButton["default"], {
|
|
119
109
|
key: "close",
|
|
120
110
|
role: "close-icon-button",
|
|
121
111
|
"aria-label": "Close",
|
|
122
112
|
color: "inherit",
|
|
123
113
|
onClick: handleClose
|
|
124
114
|
}, /*#__PURE__*/_react["default"].createElement(_Close2["default"], null))
|
|
125
|
-
},
|
|
115
|
+
}, otherProps)));
|
|
126
116
|
};
|
|
127
117
|
var _default = exports["default"] = SnackBar;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Meta } from '@storybook/react';
|
|
2
|
+
import Snackbar from '.';
|
|
3
|
+
declare const _default: Meta<typeof Snackbar>;
|
|
2
4
|
export default _default;
|
|
3
5
|
export declare const Default: any;
|
|
4
6
|
export declare const Success: any;
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
-
var _Tooltip2 = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
9
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
13
13
|
var _excluded = ["children", "withWrapper", "wrapperStyle", "enterDelay", "title"];
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -21,7 +21,7 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
21
21
|
enterDelay = _ref$enterDelay === void 0 ? 1000 : _ref$enterDelay,
|
|
22
22
|
title = _ref.title,
|
|
23
23
|
otherProps = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
24
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
24
|
+
return /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], (0, _extends2["default"])({
|
|
25
25
|
title: title || '',
|
|
26
26
|
enterDelay: enterDelay
|
|
27
27
|
}, otherProps), withWrapper ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import type { Meta } from '@storybook/react';
|
|
3
|
+
import Tooltip from '.';
|
|
4
|
+
declare const _default: Meta<typeof Tooltip>;
|
|
3
5
|
export default _default;
|
|
4
6
|
export declare const Default: any;
|
|
5
7
|
export declare const Positioned: () => React.JSX.Element;
|
|
@@ -75,18 +75,18 @@ var ValidationDialog = function ValidationDialog(_ref) {
|
|
|
75
75
|
return /*#__PURE__*/_react["default"].createElement(_styles.MuiDialog, {
|
|
76
76
|
fullWidth: true,
|
|
77
77
|
open: open,
|
|
78
|
-
|
|
78
|
+
scroll: "body",
|
|
79
79
|
maxWidth: "sm",
|
|
80
|
-
|
|
80
|
+
title: renderTitle(title, responses),
|
|
81
81
|
actions: failed ? /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
|
82
82
|
color: "primary",
|
|
83
83
|
variant: "contained",
|
|
84
|
-
margin: "
|
|
84
|
+
margin: "12px",
|
|
85
85
|
padding: "6px 31.1px",
|
|
86
86
|
onClick: onClose
|
|
87
87
|
}, "VOLTAR") : /*#__PURE__*/_react["default"].createElement(_actions["default"], {
|
|
88
88
|
disabled: !success,
|
|
89
|
-
margin: "
|
|
89
|
+
margin: "12px",
|
|
90
90
|
actionButtonColor: "secondary",
|
|
91
91
|
onCancel: onCancel,
|
|
92
92
|
onConfirm: handleCreate
|
|
@@ -1,28 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
display?: "initial" | "block" | "inline" | undefined;
|
|
8
|
-
gutterBottom?: boolean | undefined;
|
|
9
|
-
noWrap?: boolean | undefined;
|
|
10
|
-
paragraph?: boolean | undefined;
|
|
11
|
-
variant?: "inherit" | (import("@material-ui/core").TypographyVariant | "srOnly") | undefined;
|
|
12
|
-
variantMapping?: Partial<Record<import("@material-ui/core").TypographyVariant | "srOnly", string>> | undefined;
|
|
13
|
-
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").TypographyTypeMap<{}, "span">> & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
14
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
15
|
-
}, "color" | "role" | "onClick" | "children" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key"> & import("../../types").DefaultProps, never>> & string & Omit<({ children, margin, padding, style, variant, ...otherProps }: {
|
|
16
|
-
align?: import("@material-ui/core").PropTypes.Alignment | undefined;
|
|
17
|
-
children?: import("react").ReactNode;
|
|
18
|
-
color?: "inherit" | "primary" | "secondary" | "initial" | "error" | "textPrimary" | "textSecondary" | undefined;
|
|
19
|
-
display?: "initial" | "block" | "inline" | undefined;
|
|
20
|
-
gutterBottom?: boolean | undefined;
|
|
21
|
-
noWrap?: boolean | undefined;
|
|
22
|
-
paragraph?: boolean | undefined;
|
|
23
|
-
variant?: "inherit" | (import("@material-ui/core").TypographyVariant | "srOnly") | undefined;
|
|
24
|
-
variantMapping?: Partial<Record<import("@material-ui/core").TypographyVariant | "srOnly", string>> | undefined;
|
|
25
|
-
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").TypographyTypeMap<{}, "span">> & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
26
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
27
|
-
}, "color" | "role" | "onClick" | "children" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key"> & import("../../types").DefaultProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
1
|
+
export declare const MuiDialog: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../dialog").IDialogProps, never>> & string & Omit<({ snippet, style, padding, margin, scroll, PaperProps, open, fullScreen, fullWidth, maxWidth, onClose, titleAction, titleWrapperStyle, titleStyle, titleActionStyle, contentStyle, contentTextStyle, actionsStyle, actions, content, text, title, snippetStyle, snippetContentStyle, "aria-title": ariaTitle, ...otherProps }: import("../dialog").IDialogProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
2
|
+
export declare const DialogTypography: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
4
|
+
}, "color" | "children" | "padding" | "margin" | "style" | "className" | "classes" | "sx" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "overflow" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "variant" | "noWrap" | "gutterBottom" | "paragraph" | "variantMapping"> & {
|
|
5
|
+
component?: import("react").ElementType;
|
|
6
|
+
} & import("../../types").DefaultProps, never>> & string & Omit<({ children, margin, padding, style, variant, ...otherProps }: import("@mui/material").TypographyProps & import("../../types").DefaultProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
28
7
|
export declare const ValidationWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
export interface Props extends
|
|
2
|
+
import type { IButtonProps } from '@/core/inputs/button';
|
|
3
|
+
export interface Props extends IButtonProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
name: string;
|
|
6
6
|
margin?: string | number;
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
var _styles = require("./styles");
|
|
12
12
|
var AddButton = function AddButton(props) {
|
|
13
13
|
return /*#__PURE__*/_react["default"].createElement(_styles.ButtonAdd, (0, _extends2["default"])({}, props, {
|
|
14
|
-
|
|
14
|
+
dashed: true,
|
|
15
15
|
color: "primary",
|
|
16
16
|
id: 'id-add-' + props.name,
|
|
17
17
|
name: 'add-' + props.name,
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ButtonAdd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@/core/inputs/button").ButtonProps, never>> & string & Omit<({ children, margin, padding, style, variant, ...otherProps }: import("@/core/inputs/button").ButtonProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
1
|
+
export declare const ButtonAdd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@/core/inputs/button").IButtonProps, never>> & string & Omit<({ children, color, dashed, href, margin, padding, style, variant, ...otherProps }: import("@/core/inputs/button").IButtonProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import MuiAutocomplete from '@mui/material/Autocomplete';
|
|
2
|
+
export type { AutocompleteChangeReason, AutocompleteCloseReason, AutocompleteInputChangeReason, AutocompleteProps, AutocompleteRenderGetTagProps, AutocompleteRenderInputParams, AutocompleteRenderOptionState } from '@mui/material/Autocomplete';
|
|
3
|
+
export declare const Autocomplete: typeof MuiAutocomplete;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Autocomplete = void 0;
|
|
8
|
+
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _Autocomplete = _interopRequireDefault(require("@mui/material/Autocomplete"));
|
|
12
|
+
var Autocomplete = exports.Autocomplete = function Autocomplete(props) {
|
|
13
|
+
var otherProps = (0, _extends2["default"])({}, ((0, _objectDestructuringEmpty2["default"])(props), props));
|
|
14
|
+
return /*#__PURE__*/_react["default"].createElement(_Autocomplete["default"], otherProps);
|
|
15
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Meta } from '@storybook/react';
|
|
2
|
+
import Button from '.';
|
|
3
|
+
declare const _default: Meta<typeof Button>;
|
|
2
4
|
export default _default;
|
|
3
5
|
export declare const Default: any;
|
|
4
6
|
export declare const Primary: any;
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ElementType, MouseEvent, ReactNode } from 'react';
|
|
3
3
|
import type { DefaultProps } from '../../types';
|
|
4
|
-
|
|
4
|
+
import type { ButtonProps } from '@mui/material/Button';
|
|
5
|
+
export interface IButtonProps extends DefaultProps, ButtonProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
|
|
8
|
+
component?: ElementType;
|
|
9
|
+
dashed?: boolean;
|
|
5
10
|
disabled?: boolean;
|
|
6
|
-
selected?: boolean;
|
|
7
11
|
disableTouchRipple?: boolean;
|
|
8
|
-
|
|
9
|
-
color?: 'default' | 'primary' | 'inherit' | 'secondary';
|
|
10
|
-
size?: 'small' | 'medium' | 'large';
|
|
11
|
-
href?: string;
|
|
12
|
+
'data-testid'?: string;
|
|
12
13
|
fullWidth?: boolean;
|
|
13
|
-
|
|
14
|
+
href?: string;
|
|
15
|
+
selected?: boolean;
|
|
16
|
+
size?: 'small' | 'medium' | 'large';
|
|
14
17
|
target?: string;
|
|
15
|
-
|
|
16
|
-
'data-testid'?: string;
|
|
18
|
+
variant?: 'text' | 'outlined' | 'contained';
|
|
17
19
|
onClick?(event: MouseEvent<HTMLButtonElement>): void;
|
|
18
20
|
}
|
|
19
|
-
declare const Button: ({ children, margin, padding, style, variant, ...otherProps }:
|
|
21
|
+
declare const Button: ({ children, color, dashed, href, margin, padding, style, variant, ...otherProps }: IButtonProps) => React.JSX.Element;
|
|
20
22
|
export default Button;
|
|
@@ -5,30 +5,36 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
-
var _Button2 = _interopRequireDefault(require("@material-ui/core/Button"));
|
|
9
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
11
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
var
|
|
12
|
+
var _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
13
|
+
var _excluded = ["children", "color", "dashed", "href", "margin", "padding", "style", "variant"];
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
16
|
var Button = function Button(_ref) {
|
|
17
17
|
var children = _ref.children,
|
|
18
|
+
color = _ref.color,
|
|
19
|
+
dashed = _ref.dashed,
|
|
20
|
+
_ref$href = _ref.href,
|
|
21
|
+
href = _ref$href === void 0 ? '' : _ref$href,
|
|
18
22
|
margin = _ref.margin,
|
|
19
23
|
padding = _ref.padding,
|
|
20
24
|
_ref$style = _ref.style,
|
|
21
25
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
22
26
|
variant = _ref.variant,
|
|
23
27
|
otherProps = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
24
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
25
|
-
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement(_Button["default"], (0, _extends2["default"])({
|
|
29
|
+
href: href,
|
|
30
|
+
color: color || 'inherit',
|
|
31
|
+
variant: dashed ? 'outlined' : variant,
|
|
26
32
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
27
33
|
margin: margin,
|
|
28
34
|
padding: padding,
|
|
29
35
|
opacity: otherProps.selected ? 0.5 : 1,
|
|
30
|
-
borderStyle: variant
|
|
36
|
+
borderStyle: dashed ? 'dashed' : variant
|
|
31
37
|
})
|
|
32
|
-
}), children);
|
|
38
|
+
}, otherProps), children);
|
|
33
39
|
};
|
|
34
40
|
var _default = exports["default"] = Button;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import type { Meta } from '@storybook/react';
|
|
3
|
+
import Checkbox from '.';
|
|
4
|
+
declare const _default: Meta<typeof Checkbox>;
|
|
3
5
|
export default _default;
|
|
4
6
|
export declare const Default: () => React.JSX.Element;
|
|
5
7
|
export declare const WithHelper: any;
|