flipper-ui 0.31.1 → 0.31.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/data-display/advertise/index.d.ts +1 -1
- package/core/data-display/advertise/index.js +6 -18
- package/core/data-display/advertise/styles.d.ts +27 -0
- package/core/data-display/advertise/styles.js +16 -0
- package/core/data-display/badge/index.d.ts +1 -1
- package/core/data-display/badge/index.js +2 -2
- package/core/data-display/chapter/index.d.ts +1 -1
- package/core/data-display/chapter/index.js +17 -26
- package/core/data-display/chapter/styles.d.ts +4 -0
- package/core/data-display/chapter/styles.js +16 -0
- package/core/data-display/chip/index.d.ts +1 -1
- package/core/data-display/chip/index.js +2 -2
- package/core/data-display/data-table/data-table-action.d.ts +1 -1
- package/core/data-display/data-table/data-table-field.d.ts +1 -1
- package/core/data-display/data-table/data-table-field.js +14 -12
- package/core/data-display/data-table/data-table-pagination-actions.js +6 -11
- package/core/data-display/data-table/data-table-query-paginated.js +1 -1
- package/core/data-display/data-table/data-table.js +1 -1
- package/core/data-display/data-table/index.d.ts +4 -4
- package/core/data-display/data-table/index.js +3 -3
- package/core/data-display/data-table/rows.js +10 -4
- package/core/data-display/data-table/styles.d.ts +8 -0
- package/core/data-display/data-table/styles.js +15 -0
- package/core/data-display/data-table/use-paginated.d.ts +2 -2
- package/core/data-display/data-table/use-paginated.js +4 -4
- package/core/data-display/data-table/use-rows-state.js +2 -0
- package/core/data-display/editable-table/index.d.ts +1 -3
- package/core/data-display/editable-table/index.js +34 -70
- package/core/data-display/editable-table/styles.d.ts +35 -0
- package/core/data-display/editable-table/styles.js +27 -0
- package/core/data-display/fab/index.d.ts +1 -1
- package/core/data-display/fab/index.js +2 -2
- package/core/data-display/list/index.d.ts +1 -1
- package/core/data-display/list/index.js +2 -2
- package/core/data-display/list-item/index.d.ts +1 -1
- package/core/data-display/menu-item/index.js +2 -6
- package/core/data-display/menu-item/styles.d.ts +4 -0
- package/core/data-display/menu-item/styles.js +12 -0
- package/core/data-display/node/index.d.ts +1 -1
- package/core/data-display/node/index.js +6 -25
- package/core/data-display/node/styles.d.ts +17 -0
- package/core/data-display/node/styles.js +19 -0
- package/core/data-display/table/index.d.ts +1 -1
- package/core/data-display/table/index.js +2 -2
- package/core/data-display/tree/index.d.ts +1 -2
- package/core/data-display/tree/index.js +5 -5
- package/core/data-display/typography/index.d.ts +1 -1
- package/core/data-display/typography/index.js +2 -2
- package/core/feedback/dialog/index.js +15 -13
- package/core/feedback/dialog/styles.d.ts +6 -0
- package/core/feedback/dialog/styles.js +15 -0
- package/core/feedback/grow/index.d.ts +1 -1
- package/core/feedback/grow/index.js +2 -2
- package/core/feedback/progress/index.d.ts +1 -1
- package/core/feedback/progress/index.js +2 -2
- package/core/feedback/slide/index.d.ts +1 -1
- package/core/feedback/slide/index.js +2 -2
- package/core/feedback/snackbar/index.d.ts +1 -1
- package/core/feedback/snackbar/index.js +2 -2
- package/core/feedback/tooltip/index.d.ts +1 -1
- package/core/feedback/tooltip/index.js +2 -2
- package/core/feedback/validation-dialog/index.js +8 -15
- package/core/feedback/validation-dialog/styles.d.ts +28 -0
- package/core/feedback/validation-dialog/styles.js +15 -0
- package/core/inputs/auto-complete/index.js +7 -9
- package/core/inputs/button/index.d.ts +1 -1
- package/core/inputs/button/index.js +2 -2
- package/core/inputs/checkbox/index.d.ts +1 -1
- package/core/inputs/checkbox/index.js +5 -8
- package/core/inputs/checkbox/styles.d.ts +6 -0
- package/core/inputs/checkbox/styles.js +15 -0
- package/core/inputs/chip-field/index.d.ts +1 -1
- package/core/inputs/chip-field/index.js +4 -8
- package/core/inputs/chip-field/styles.d.ts +2 -0
- package/core/inputs/chip-field/styles.js +12 -0
- package/core/inputs/date-time/index.js +1 -1
- package/core/inputs/icon-button/index.d.ts +1 -1
- package/core/inputs/icon-button/index.js +2 -2
- package/core/inputs/input-adornment/index.d.ts +1 -1
- package/core/inputs/input-adornment/index.js +2 -2
- package/core/inputs/input-base/index.d.ts +1 -1
- package/core/inputs/input-base/index.js +2 -2
- package/core/inputs/mask-field/index.d.ts +1 -1
- package/core/inputs/mask-field/index.js +2 -2
- package/core/inputs/pin-input/index.js +6 -6
- package/core/inputs/pin-input/styles.d.ts +4 -0
- package/core/inputs/pin-input/styles.js +13 -0
- package/core/inputs/radio/index.d.ts +1 -1
- package/core/inputs/radio/index.js +2 -2
- package/core/inputs/radio-group/index.d.ts +1 -1
- package/core/inputs/radio-group/index.js +2 -2
- package/core/inputs/select/index.d.ts +1 -1
- package/core/inputs/select/index.js +2 -2
- package/core/inputs/slider/index.d.ts +1 -1
- package/core/inputs/slider/index.js +2 -2
- package/core/inputs/text-field/index.d.ts +0 -2
- package/core/inputs/text-field/index.js +11 -19
- package/core/inputs/text-field/styles.d.ts +6 -0
- package/core/inputs/text-field/styles.js +17 -0
- package/core/navigation/breadcrumb/index.d.ts +1 -1
- package/core/navigation/breadcrumb/index.js +2 -2
- package/core/navigation/menu/index.d.ts +1 -1
- package/core/navigation/menu/index.js +2 -2
- package/core/navigation/pagination/index.d.ts +1 -1
- package/core/navigation/pagination/index.js +8 -11
- package/core/navigation/pagination/styles.d.ts +2 -0
- package/core/navigation/pagination/styles.js +11 -0
- package/core/navigation/sidebar/index.d.ts +1 -1
- package/core/navigation/sidebar/index.js +6 -11
- package/core/navigation/sidebar/styles.d.ts +7 -0
- package/core/navigation/sidebar/styles.js +13 -0
- package/core/navigation/stepper/index.d.ts +1 -1
- package/core/navigation/stepper/index.js +2 -2
- package/core/navigation/tabs/index.d.ts +1 -1
- package/core/navigation/tabs/index.js +2 -2
- package/core/surfaces/box/index.d.ts +1 -1
- package/core/surfaces/box/index.js +2 -2
- package/core/surfaces/container/index.d.ts +1 -1
- package/core/surfaces/container/index.js +2 -2
- package/core/surfaces/content/index.d.ts +1 -1
- package/core/surfaces/content/index.js +5 -12
- package/core/surfaces/content/styles.d.ts +3 -0
- package/core/surfaces/content/styles.js +15 -0
- package/core/surfaces/expansion-panel/index.d.ts +1 -1
- package/core/surfaces/expansion-panel/index.js +4 -7
- package/core/surfaces/expansion-panel/styles.d.ts +2 -0
- package/core/surfaces/expansion-panel/styles.js +11 -0
- package/core/surfaces/header/index.d.ts +1 -1
- package/core/surfaces/header/index.js +2 -2
- package/core/surfaces/step-card/index.d.ts +2 -2
- package/core/surfaces/step-card/index.js +2 -2
- package/core/surfaces/step-card/step-card-details.js +42 -40
- package/core/surfaces/step-card/step-card-panel.js +66 -94
- package/core/surfaces/step-card/step-card-skeleton.js +33 -27
- package/core/surfaces/step-card/styles.js +2 -1
- package/experimental/avatar/index.d.ts +2 -2
- package/experimental/avatar/index.js +2 -2
- package/experimental/breadcrumbs/index.d.ts +2 -2
- package/experimental/breadcrumbs/index.js +7 -18
- package/experimental/breadcrumbs/styles.d.ts +27 -0
- package/experimental/breadcrumbs/styles.js +20 -0
- package/experimental/button/index.js +2 -6
- package/experimental/button/styles.d.ts +2 -0
- package/experimental/button/styles.js +12 -0
- package/experimental/card/index.d.ts +1 -27
- package/experimental/card/index.js +8 -20
- package/experimental/card/styles.d.ts +30 -0
- package/experimental/card/styles.js +20 -0
- package/experimental/dialog/confirm-dialog.js +2 -2
- package/experimental/dialog/dialog.d.ts +1 -1
- package/experimental/dialog/dialog.js +2 -2
- package/experimental/dialog/dialog.stories.d.ts +2 -2
- package/experimental/dialog/remove-dialog.js +2 -2
- package/experimental/fab/fab-wrapper.d.ts +1 -1
- package/experimental/fab/fab-wrapper.js +2 -5
- package/experimental/fab/fab.d.ts +1 -1
- package/experimental/fab/fab.js +2 -2
- package/experimental/fab/styles.d.ts +2 -0
- package/experimental/fab/styles.js +11 -0
- package/experimental/index.d.ts +4 -4
- package/experimental/index.js +9 -9
- package/experimental/loading/index.js +2 -6
- package/experimental/loading/styles.d.ts +2 -0
- package/experimental/loading/styles.js +11 -0
- package/experimental/nothing-found/index.js +5 -8
- package/experimental/nothing-found/styles.d.ts +26 -0
- package/experimental/nothing-found/styles.js +12 -0
- package/experimental/panel/index.d.ts +1 -1
- package/experimental/panel/index.js +5 -11
- package/experimental/panel/styles.d.ts +28 -0
- package/experimental/panel/styles.js +14 -0
- package/experimental/sidebar/index.d.ts +1 -1
- package/experimental/sidebar/index.js +11 -22
- package/experimental/sidebar/styles.d.ts +6 -0
- package/experimental/sidebar/styles.js +20 -0
- package/experimental/skeleton/index.d.ts +1 -1
- package/experimental/skeleton/index.js +2 -2
- package/experimental/visibility-icon/index.d.ts +1 -1
- package/experimental/visibility-icon/index.js +4 -8
- package/experimental/visibility-icon/styles.d.ts +2 -0
- package/experimental/visibility-icon/styles.js +12 -0
- package/index.d.ts +1 -0
- package/index.js +7 -0
- package/lib/localization.js +1 -1
- package/package.json +25 -26
- package/test/mocks/data-table-hidden-mock.js +4 -4
- package/test/mocks/data-table-mock.js +4 -4
- package/test/mocks/editable-table-date-mock.js +3 -2
- package/test/mocks/editable-table-mock.js +5 -4
- package/test/mocks/radio-group-mock.js +2 -2
- package/test/mocks/select-mock.js +2 -2
- package/test/mocks/snackbar-mock.js +18 -13
- package/test/mocks/step-card-mock.js +2 -2
- /package/core/data-display/editable-table/{editTable.stories.d.ts → editable-table.stories.d.ts} +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
export declare const NESTED_ELEVATION = 0;
|
|
3
|
+
export declare const PAPER_PROPS: CSSProperties;
|
|
4
|
+
export declare const Header: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
5
|
+
export declare const Title: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<{
|
|
6
|
+
align?: import("@material-ui/core").PropTypes.Alignment | undefined;
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
color?: "inherit" | "initial" | "primary" | "secondary" | "textPrimary" | "textSecondary" | "error" | undefined;
|
|
9
|
+
display?: "initial" | "block" | "inline" | undefined;
|
|
10
|
+
gutterBottom?: boolean | undefined;
|
|
11
|
+
noWrap?: boolean | undefined;
|
|
12
|
+
paragraph?: boolean | undefined;
|
|
13
|
+
variant?: "inherit" | (import("@material-ui/core").TypographyVariant | "srOnly") | undefined;
|
|
14
|
+
variantMapping?: Partial<Record<import("@material-ui/core").TypographyVariant | "srOnly", string>> | undefined;
|
|
15
|
+
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").TypographyTypeMap<{}, "span">> & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
16
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
17
|
+
}, "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "children" | "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" | "onClick" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("../../core/types").DefaultProps, never>> & Omit<({ children, margin, padding, style, variant, ...otherProps }: {
|
|
18
|
+
align?: import("@material-ui/core").PropTypes.Alignment | undefined;
|
|
19
|
+
children?: import("react").ReactNode;
|
|
20
|
+
color?: "inherit" | "initial" | "primary" | "secondary" | "textPrimary" | "textSecondary" | "error" | undefined;
|
|
21
|
+
display?: "initial" | "block" | "inline" | undefined;
|
|
22
|
+
gutterBottom?: boolean | undefined;
|
|
23
|
+
noWrap?: boolean | undefined;
|
|
24
|
+
paragraph?: boolean | undefined;
|
|
25
|
+
variant?: "inherit" | (import("@material-ui/core").TypographyVariant | "srOnly") | undefined;
|
|
26
|
+
variantMapping?: Partial<Record<import("@material-ui/core").TypographyVariant | "srOnly", string>> | undefined;
|
|
27
|
+
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").TypographyTypeMap<{}, "span">> & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
28
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
29
|
+
}, "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "children" | "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" | "onClick" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("../../core/types").DefaultProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
30
|
+
export declare const EditButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("../../core/inputs/icon-button").IconButtonProps, never>> & Omit<({ children, padding, margin, style, ...otherProps }: import("../../core/inputs/icon-button").IconButtonProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Title = exports.PAPER_PROPS = exports.NESTED_ELEVATION = exports.Header = exports.EditButton = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _ = require("../..");
|
|
11
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
12
|
+
var NESTED_ELEVATION = exports.NESTED_ELEVATION = 0;
|
|
13
|
+
var PAPER_PROPS = exports.PAPER_PROPS = {
|
|
14
|
+
flex: 1,
|
|
15
|
+
display: 'flex',
|
|
16
|
+
flexDirection: 'column'
|
|
17
|
+
};
|
|
18
|
+
var Header = exports.Header = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n"])));
|
|
19
|
+
var Title = exports.Title = (0, _styledComponents["default"])(_.Typography)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n flex: 1;\n"])));
|
|
20
|
+
var EditButton = exports.EditButton = (0, _styledComponents["default"])(_.IconButton)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n && {\n width: 36px;\n height: 36px;\n }\n"])));
|
|
@@ -8,7 +8,7 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _dialog = require("./dialog");
|
|
11
|
+
var _dialog = _interopRequireDefault(require("./dialog"));
|
|
12
12
|
var _excluded = ["open", "title", "text", "labels", "onCancel", "onConfirm", "disableBackdropClick"];
|
|
13
13
|
var ConfirmDialog = function ConfirmDialog(props) {
|
|
14
14
|
var open = props.open,
|
|
@@ -19,7 +19,7 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
19
19
|
onConfirm = props.onConfirm,
|
|
20
20
|
disableBackdropClick = props.disableBackdropClick,
|
|
21
21
|
otherProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
22
|
-
return /*#__PURE__*/_react["default"].createElement(_dialog
|
|
22
|
+
return /*#__PURE__*/_react["default"].createElement(_dialog["default"], (0, _extends2["default"])({}, otherProps, {
|
|
23
23
|
open: open,
|
|
24
24
|
title: title,
|
|
25
25
|
text: text,
|
|
@@ -18,5 +18,5 @@ export interface IProps {
|
|
|
18
18
|
secondaryButtonAction?(event: MouseEvent<HTMLButtonElement>): void;
|
|
19
19
|
onClose?(): void;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
declare const DialogV2: (props: IProps) => React.JSX.Element;
|
|
22
22
|
export default DialogV2;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports["default"] =
|
|
7
|
+
exports["default"] = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -27,7 +27,7 @@ var themeDialog = {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
var DialogV2 =
|
|
30
|
+
var DialogV2 = function DialogV2(props) {
|
|
31
31
|
var open = props.open,
|
|
32
32
|
title = props.title,
|
|
33
33
|
titleAction = props.titleAction,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const Default: any;
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const DialogRemove: any;
|
|
3
|
+
export declare const DialogConfirm: any;
|
|
4
4
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./dialog").IProps>;
|
|
5
5
|
export default _default;
|
|
@@ -9,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _toUpper = _interopRequireDefault(require("ramda/es/toUpper"));
|
|
12
|
-
var _dialog = require("./dialog");
|
|
12
|
+
var _dialog = _interopRequireDefault(require("./dialog"));
|
|
13
13
|
var _excluded = ["open", "onCancel", "onConfirm", "title", "text", "labels", "disableBackdropClick"];
|
|
14
14
|
var RemoveDialog = function RemoveDialog(props) {
|
|
15
15
|
var open = props.open,
|
|
@@ -20,7 +20,7 @@ var RemoveDialog = function RemoveDialog(props) {
|
|
|
20
20
|
labels = props.labels,
|
|
21
21
|
disableBackdropClick = props.disableBackdropClick,
|
|
22
22
|
otherProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
23
|
-
return /*#__PURE__*/_react["default"].createElement(_dialog
|
|
23
|
+
return /*#__PURE__*/_react["default"].createElement(_dialog["default"], (0, _extends2["default"])({}, otherProps, {
|
|
24
24
|
open: open,
|
|
25
25
|
title: (0, _toUpper["default"])(title || 'EXCLUIR'),
|
|
26
26
|
text: text,
|
|
@@ -6,20 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var
|
|
12
|
-
var _templateObject;
|
|
10
|
+
var _styles = require("./styles");
|
|
13
11
|
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; }
|
|
14
12
|
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; }
|
|
15
|
-
var Wrapper = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n opacity: 0;\n transition: opacity 200ms ease;\n &:hover {\n opacity: 1;\n }\n"])));
|
|
16
13
|
var FabWrapper = function FabWrapper(_ref) {
|
|
17
14
|
var padding = _ref.padding,
|
|
18
15
|
children = _ref.children,
|
|
19
16
|
style = _ref.style,
|
|
20
17
|
width = _ref.width,
|
|
21
18
|
height = _ref.height;
|
|
22
|
-
return /*#__PURE__*/_react["default"].createElement(Wrapper, {
|
|
19
|
+
return /*#__PURE__*/_react["default"].createElement(_styles.Wrapper, {
|
|
23
20
|
className: "list-item-action",
|
|
24
21
|
style: _objectSpread({
|
|
25
22
|
padding: padding,
|
|
@@ -12,5 +12,5 @@ export interface IProps extends FabProps {
|
|
|
12
12
|
children: JSX.Element;
|
|
13
13
|
onClick(event: MouseEvent<HTMLButtonElement>): void;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
declare const FabV2: (props: IProps) => React.JSX.Element;
|
|
16
16
|
export default FabV2;
|
package/experimental/fab/fab.js
CHANGED
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
17
17
|
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; }
|
|
18
18
|
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; }
|
|
19
|
-
var FabV2 =
|
|
19
|
+
var FabV2 = function FabV2(props) {
|
|
20
20
|
var renderButton = function renderButton() {
|
|
21
21
|
var large = props.large,
|
|
22
22
|
children = props.children,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Wrapper = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _templateObject;
|
|
11
|
+
var Wrapper = exports.Wrapper = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n opacity: 0;\n transition: opacity 200ms ease;\n &:hover {\n opacity: 1;\n }\n"])));
|
package/experimental/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { default as Sidebar } from './sidebar';
|
|
2
1
|
export * from './fab';
|
|
3
|
-
export { default as Card } from './card';
|
|
4
|
-
export { default as Button } from './button';
|
|
5
2
|
export * from './dialog';
|
|
6
3
|
export { default as Avatar } from './avatar';
|
|
7
4
|
export { default as Actions, Wrapper } from './actions';
|
|
8
5
|
export { default as Breadcrumbs } from './breadcrumbs';
|
|
6
|
+
export { default as Button } from './button';
|
|
7
|
+
export { default as Card } from './card';
|
|
9
8
|
export { default as Loading } from './loading';
|
|
9
|
+
export { default as NothingFound } from './nothing-found';
|
|
10
10
|
export { default as Panel } from './panel';
|
|
11
|
+
export { default as Sidebar } from './sidebar';
|
|
11
12
|
export { default as Skeleton } from './skeleton';
|
|
12
13
|
export { default as VisibilityIcon } from './visibility-icon';
|
|
13
|
-
export { default as NothingFound } from './nothing-found';
|
package/experimental/index.js
CHANGED
|
@@ -6,18 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
var _exportNames = {
|
|
9
|
-
Sidebar: true,
|
|
10
|
-
Card: true,
|
|
11
|
-
Button: true,
|
|
12
9
|
Avatar: true,
|
|
13
10
|
Actions: true,
|
|
14
11
|
Wrapper: true,
|
|
15
12
|
Breadcrumbs: true,
|
|
13
|
+
Button: true,
|
|
14
|
+
Card: true,
|
|
16
15
|
Loading: true,
|
|
16
|
+
NothingFound: true,
|
|
17
17
|
Panel: true,
|
|
18
|
+
Sidebar: true,
|
|
18
19
|
Skeleton: true,
|
|
19
|
-
VisibilityIcon: true
|
|
20
|
-
NothingFound: true
|
|
20
|
+
VisibilityIcon: true
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "Actions", {
|
|
23
23
|
enumerable: true,
|
|
@@ -91,7 +91,6 @@ Object.defineProperty(exports, "Wrapper", {
|
|
|
91
91
|
return _actions.Wrapper;
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
var _sidebar = _interopRequireDefault(require("./sidebar"));
|
|
95
94
|
var _fab = require("./fab");
|
|
96
95
|
Object.keys(_fab).forEach(function (key) {
|
|
97
96
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -104,8 +103,6 @@ Object.keys(_fab).forEach(function (key) {
|
|
|
104
103
|
}
|
|
105
104
|
});
|
|
106
105
|
});
|
|
107
|
-
var _card = _interopRequireDefault(require("./card"));
|
|
108
|
-
var _button = _interopRequireDefault(require("./button"));
|
|
109
106
|
var _dialog = require("./dialog");
|
|
110
107
|
Object.keys(_dialog).forEach(function (key) {
|
|
111
108
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -121,10 +118,13 @@ Object.keys(_dialog).forEach(function (key) {
|
|
|
121
118
|
var _avatar = _interopRequireDefault(require("./avatar"));
|
|
122
119
|
var _actions = _interopRequireWildcard(require("./actions"));
|
|
123
120
|
var _breadcrumbs = _interopRequireDefault(require("./breadcrumbs"));
|
|
121
|
+
var _button = _interopRequireDefault(require("./button"));
|
|
122
|
+
var _card = _interopRequireDefault(require("./card"));
|
|
124
123
|
var _loading = _interopRequireDefault(require("./loading"));
|
|
124
|
+
var _nothingFound = _interopRequireDefault(require("./nothing-found"));
|
|
125
125
|
var _panel = _interopRequireDefault(require("./panel"));
|
|
126
|
+
var _sidebar = _interopRequireDefault(require("./sidebar"));
|
|
126
127
|
var _skeleton = _interopRequireDefault(require("./skeleton"));
|
|
127
128
|
var _visibilityIcon = _interopRequireDefault(require("./visibility-icon"));
|
|
128
|
-
var _nothingFound = _interopRequireDefault(require("./nothing-found"));
|
|
129
129
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
130
130
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = exports.Loading = void 0;
|
|
9
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
12
9
|
var _ = require("../..");
|
|
13
|
-
var
|
|
10
|
+
var _styles = require("./styles");
|
|
14
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
|
-
var LoadingContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n"])));
|
|
17
13
|
var Loading = exports.Loading = function Loading(props) {
|
|
18
14
|
var _props$margin = props.margin,
|
|
19
15
|
margin = _props$margin === void 0 ? 48 : _props$margin,
|
|
@@ -28,7 +24,7 @@ var Loading = exports.Loading = function Loading(props) {
|
|
|
28
24
|
});
|
|
29
25
|
}, [size]);
|
|
30
26
|
return (0, _react.useMemo)(function () {
|
|
31
|
-
return /*#__PURE__*/_react["default"].createElement(LoadingContainer, {
|
|
27
|
+
return /*#__PURE__*/_react["default"].createElement(_styles.LoadingContainer, {
|
|
32
28
|
"data-testid": "loading-component",
|
|
33
29
|
style: {
|
|
34
30
|
margin: margin,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const LoadingContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.LoadingContainer = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _templateObject;
|
|
11
|
+
var LoadingContainer = exports.LoadingContainer = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n"])));
|
|
@@ -8,7 +8,7 @@ exports["default"] = exports.NothingFound = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _styles = require("./styles");
|
|
12
12
|
var _excluded = ["buttonLabel", "readonly"],
|
|
13
13
|
_excluded2 = ["customText", "searchText", "show"];
|
|
14
14
|
var NothingFound = exports.NothingFound = function NothingFound(props) {
|
|
@@ -16,21 +16,18 @@ var NothingFound = exports.NothingFound = function NothingFound(props) {
|
|
|
16
16
|
readonly = props.readonly,
|
|
17
17
|
rest = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
|
18
18
|
var label = buttonLabel || 'Adicionar';
|
|
19
|
-
var message = readonly ? 'Não há nada aqui.' :
|
|
19
|
+
var message = readonly ? 'Não há nada aqui.' : "N\xE3o h\xE1 nada aqui. Clique em \"".concat(label, "\" para cadastrar um item.");
|
|
20
20
|
var _rest$customText = rest.customText,
|
|
21
21
|
customText = _rest$customText === void 0 ? message : _rest$customText,
|
|
22
22
|
_rest$searchText = rest.searchText,
|
|
23
23
|
searchText = _rest$searchText === void 0 ? '' : _rest$searchText,
|
|
24
24
|
show = rest.show,
|
|
25
25
|
otherProps = (0, _objectWithoutProperties2["default"])(rest, _excluded2);
|
|
26
|
-
return show ? /*#__PURE__*/_react["default"].createElement(
|
|
26
|
+
return show ? /*#__PURE__*/_react["default"].createElement(_styles.TextTypography, (0, _extends2["default"])({
|
|
27
27
|
align: "center",
|
|
28
28
|
variant: "h5",
|
|
29
29
|
color: "textSecondary",
|
|
30
|
-
padding: "48px 0"
|
|
31
|
-
|
|
32
|
-
flex: 1
|
|
33
|
-
}
|
|
34
|
-
}, otherProps), searchText !== '' ? 'Sua pesquisa "' + searchText + '" não retornou nenhum resultado.' : customText) : null;
|
|
30
|
+
padding: "48px 0"
|
|
31
|
+
}, otherProps), searchText !== '' ? "Sua pesquisa \"".concat(searchText, "\" n\xE3o retornou nenhum resultado.") : customText) : null;
|
|
35
32
|
};
|
|
36
33
|
var _default = exports["default"] = NothingFound;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const TextTypography: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<{
|
|
3
|
+
align?: import("@material-ui/core").PropTypes.Alignment | undefined;
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
color?: "inherit" | "initial" | "primary" | "secondary" | "textPrimary" | "textSecondary" | "error" | 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
|
+
}, "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "children" | "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" | "onClick" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("../../core/types").DefaultProps, never>> & Omit<({ children, margin, padding, style, variant, ...otherProps }: {
|
|
15
|
+
align?: import("@material-ui/core").PropTypes.Alignment | undefined;
|
|
16
|
+
children?: import("react").ReactNode;
|
|
17
|
+
color?: "inherit" | "initial" | "primary" | "secondary" | "textPrimary" | "textSecondary" | "error" | 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
|
+
}, "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "children" | "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" | "onClick" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("../../core/types").DefaultProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.TextTypography = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _typography = _interopRequireDefault(require("../../core/data-display/typography"));
|
|
11
|
+
var _templateObject;
|
|
12
|
+
var TextTypography = exports.TextTypography = (0, _styledComponents["default"])(_typography["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n && {\n flex: 1;\n }\n"])));
|
|
@@ -20,5 +20,5 @@ export interface PaperProps extends Omit<FlipperPaperProps, 'title' | 'onChange'
|
|
|
20
20
|
onChange?(event?: ChangeEvent<Record<string, unknown>>, expanded?: boolean): void;
|
|
21
21
|
onClick?(event: MouseEvent<HTMLDivElement>): void;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
declare const Panel: (props: PaperProps) => React.JSX.Element;
|
|
24
24
|
export default Panel;
|
|
@@ -4,26 +4,20 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports["default"] =
|
|
7
|
+
exports["default"] = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
12
11
|
var _react = _interopRequireDefault(require("react"));
|
|
13
12
|
var _defaultTo = _interopRequireDefault(require("ramda/es/defaultTo"));
|
|
14
|
-
var
|
|
13
|
+
var _styles = require("./styles");
|
|
15
14
|
var _icons = require("../../icons");
|
|
16
|
-
var _ = require("../..");
|
|
17
15
|
var _excluded = ["hideExpansionIcon", "expanded", "defaultExpanded", "id", "nested", "elevation", "hideSummary", "title", "summary", "details", "actions", "area", "style", "className", "detailsStyle", "onChange", "onClick"];
|
|
18
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
19
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; }
|
|
20
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; }
|
|
21
|
-
var Paper = (0, _styledComponents["default"])(_.ExpansionPanel)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n && {\n border-radius: 4px;\n ::before {\n height: 0px;\n background-color: transparent;\n }\n }\n"])));
|
|
22
|
-
var Summary = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex: 1;\n align-items: center;\n"])));
|
|
23
|
-
var Title = (0, _styledComponents["default"])(_.Typography)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n && {\n flex: 1;\n }\n"])));
|
|
24
18
|
var NESTED_ELEVATION = 0;
|
|
25
19
|
var DEFAULT_ELEVATION = 2;
|
|
26
|
-
var Panel =
|
|
20
|
+
var Panel = function Panel(props) {
|
|
27
21
|
var hideExpansionIcon = props.hideExpansionIcon,
|
|
28
22
|
expanded = props.expanded,
|
|
29
23
|
defaultExpanded = props.defaultExpanded,
|
|
@@ -47,13 +41,13 @@ var Panel = exports.Panel = function Panel(props) {
|
|
|
47
41
|
cursor: 'auto'
|
|
48
42
|
}
|
|
49
43
|
} : undefined;
|
|
50
|
-
return /*#__PURE__*/_react["default"].createElement(Paper, (0, _extends2["default"])({}, otherProps, {
|
|
44
|
+
return /*#__PURE__*/_react["default"].createElement(_styles.Paper, (0, _extends2["default"])({}, otherProps, {
|
|
51
45
|
expanded: expanded,
|
|
52
46
|
id: id,
|
|
53
47
|
"data-testid": "panel-component",
|
|
54
48
|
defaultExpanded: (0, _defaultTo["default"])(true, defaultExpanded),
|
|
55
49
|
elevation: nested ? NESTED_ELEVATION : (0, _defaultTo["default"])(DEFAULT_ELEVATION, elevation),
|
|
56
|
-
summary: !hideSummary && /*#__PURE__*/_react["default"].createElement(Summary, null, title && /*#__PURE__*/_react["default"].createElement(Title, {
|
|
50
|
+
summary: !hideSummary && /*#__PURE__*/_react["default"].createElement(_styles.Summary, null, title && /*#__PURE__*/_react["default"].createElement(_styles.Title, {
|
|
57
51
|
noWrap: true,
|
|
58
52
|
variant: "subtitle1"
|
|
59
53
|
}, title), summary),
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Paper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("../../core/surfaces/expansion-panel").ExpansionPanelProps, never>> & Omit<({ actions, details, expandIcon, margin, padding, style, summary, summaryStyle, detailsStyle, actionsStyle, editStyle, onHelperClick, onEditClick, onSaveClick, onClick, helperIcon, editable, editing, headerProps, helperButtonPosition, ...otherProps }: import("../../core/surfaces/expansion-panel").ExpansionPanelProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
3
|
+
export declare const Summary: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
4
|
+
export declare const Title: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<{
|
|
5
|
+
align?: import("@material-ui/core").PropTypes.Alignment | undefined;
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
color?: "inherit" | "initial" | "primary" | "secondary" | "textPrimary" | "textSecondary" | "error" | undefined;
|
|
8
|
+
display?: "initial" | "block" | "inline" | undefined;
|
|
9
|
+
gutterBottom?: boolean | undefined;
|
|
10
|
+
noWrap?: boolean | undefined;
|
|
11
|
+
paragraph?: boolean | undefined;
|
|
12
|
+
variant?: "inherit" | (import("@material-ui/core").TypographyVariant | "srOnly") | undefined;
|
|
13
|
+
variantMapping?: Partial<Record<import("@material-ui/core").TypographyVariant | "srOnly", string>> | undefined;
|
|
14
|
+
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").TypographyTypeMap<{}, "span">> & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
15
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
16
|
+
}, "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "children" | "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" | "onClick" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("../../core/types").DefaultProps, never>> & Omit<({ children, margin, padding, style, variant, ...otherProps }: {
|
|
17
|
+
align?: import("@material-ui/core").PropTypes.Alignment | undefined;
|
|
18
|
+
children?: import("react").ReactNode;
|
|
19
|
+
color?: "inherit" | "initial" | "primary" | "secondary" | "textPrimary" | "textSecondary" | "error" | undefined;
|
|
20
|
+
display?: "initial" | "block" | "inline" | undefined;
|
|
21
|
+
gutterBottom?: boolean | undefined;
|
|
22
|
+
noWrap?: boolean | undefined;
|
|
23
|
+
paragraph?: boolean | undefined;
|
|
24
|
+
variant?: "inherit" | (import("@material-ui/core").TypographyVariant | "srOnly") | undefined;
|
|
25
|
+
variantMapping?: Partial<Record<import("@material-ui/core").TypographyVariant | "srOnly", string>> | undefined;
|
|
26
|
+
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").TypographyTypeMap<{}, "span">> & Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
27
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
28
|
+
}, "ref" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "children" | "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" | "onClick" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("../../core/types").DefaultProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|