flipper-ui 0.30.7 → 0.30.8
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.js +4 -3
- package/core/data-display/data-table/data-table-pagination-actions.js +5 -8
- package/core/data-display/editable-table/index.d.ts +2 -0
- package/core/data-display/editable-table/index.js +4 -3
- package/core/data-display/line/index.js +5 -2
- package/core/data-display/menu-item/index.d.ts +17 -0
- package/core/data-display/menu-item/index.js +34 -0
- package/core/data-display/menu-item/menu-item.spec.d.ts +1 -0
- package/core/data-display/node/index.js +4 -3
- package/core/data-display/table/index.js +3 -2
- package/core/data-display/table/table-row.d.ts +1 -1
- package/core/data-display/table/table-row.js +4 -3
- package/core/feedback/snackbar/index.js +6 -10
- package/core/feedback/validation-dialog/index.d.ts +37 -0
- package/core/feedback/validation-dialog/index.js +105 -0
- package/core/feedback/validation-dialog/validation-dialog.spec.d.ts +1 -0
- package/core/feedback/validation-dialog/validaton-dialog.stories.d.ts +6 -0
- package/core/inputs/select/index.js +2 -2
- package/core/inputs/text-field/index.d.ts +2 -2
- package/core/inputs/text-field/index.js +5 -8
- package/core/surfaces/step-card/step-card-skeleton.js +7 -7
- package/core/surfaces/step-card/styles.d.ts +8 -8
- package/experimental/actions/index.d.ts +1 -1
- package/experimental/auto-complete-lab/index.d.ts +1 -1
- package/experimental/auto-complete-lab/index.js +13 -1
- package/experimental/card/index.d.ts +18 -3
- package/experimental/sidebar/index.js +2 -2
- package/experimental/skeleton/index.js +4 -5
- package/icons/index.d.ts +1 -1
- package/icons/index.js +4 -4
- package/index.d.ts +2 -0
- package/index.js +14 -0
- package/package.json +28 -22
- package/test/mocks/snackbar-mock.js +2 -2
- package/theme/colors.d.ts +60 -0
- package/theme/colors.js +143 -0
- package/theme/index.d.ts +2 -0
- package/theme/index.js +27 -0
- package/theme/presets.d.ts +31 -0
- package/theme/presets.js +41 -0
- package/theme/theme.d.ts +96 -0
- package/theme/theme.js +42 -0
- package/colors.d.ts +0 -27
- package/colors.js +0 -35
|
@@ -13,12 +13,12 @@ interface IContainerProps {
|
|
|
13
13
|
interface IColumnProps {
|
|
14
14
|
justifyContent: React.CSSProperties['justifyContent'];
|
|
15
15
|
}
|
|
16
|
-
export declare const Container: import("styled-components").
|
|
17
|
-
export declare const StepCardRow: import("styled-components").
|
|
18
|
-
export declare const StepContainer: import("styled-components").
|
|
19
|
-
export declare const StepCardColumn: import("styled-components").
|
|
20
|
-
export declare const ListItemContainer: import("styled-components").
|
|
21
|
-
export declare const TitleContainer: import("styled-components").
|
|
22
|
-
export declare const NormalProgressContainer: import("styled-components").
|
|
23
|
-
export declare const BarWrapper: import("styled-components").
|
|
16
|
+
export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IContainerProps>>;
|
|
17
|
+
export declare const StepCardRow: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IRowProps>>;
|
|
18
|
+
export declare const StepContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IStepContainerProps>>;
|
|
19
|
+
export declare const StepCardColumn: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IColumnProps>>;
|
|
20
|
+
export declare const ListItemContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>>;
|
|
21
|
+
export declare const TitleContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
22
|
+
export declare const NormalProgressContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
23
|
+
export declare const BarWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("@material-ui/core").BoxProps | (import("@material-ui/core").BoxProps & import("react").RefAttributes<import("react").Component<import("@material-ui/core").BoxProps, any, any>>), import("styled-components/dist/types").BaseObject>> & (Omit<import("react").ComponentClass<import("@material-ui/core").BoxProps, any>, keyof import("react").Component<any, {}, any>> | Omit<import("react").FunctionComponent<import("@material-ui/core").BoxProps>, keyof import("react").Component<any, {}, any>>);
|
|
24
24
|
export {};
|
|
@@ -25,6 +25,6 @@ interface IWrapper {
|
|
|
25
25
|
margin?: IProps['margin'];
|
|
26
26
|
align: IProps['align'];
|
|
27
27
|
}
|
|
28
|
-
export declare const Wrapper: import("styled-components").
|
|
28
|
+
export declare const Wrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IWrapper>>;
|
|
29
29
|
export declare const Actions: (props: IProps) => React.JSX.Element;
|
|
30
30
|
export default Actions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as MuiAutocomplete } from '@material-ui/lab/Autocomplete';
|
|
2
|
-
export { AutocompleteRenderInputParams, AutocompleteProps, AutocompleteCloseReason, AutocompleteChangeReason, AutocompleteInputChangeReason } from '@material-ui/lab/Autocomplete';
|
|
2
|
+
export { AutocompleteRenderInputParams, AutocompleteProps, AutocompleteCloseReason, AutocompleteChangeReason, AutocompleteInputChangeReason, AutocompleteGetTagProps, AutocompleteRenderOptionState } from '@material-ui/lab/Autocomplete';
|
|
3
3
|
export declare const Autocomplete: typeof MuiAutocomplete;
|
|
4
4
|
export default Autocomplete;
|
|
@@ -18,6 +18,12 @@ Object.defineProperty(exports, "AutocompleteCloseReason", {
|
|
|
18
18
|
return _Autocomplete.AutocompleteCloseReason;
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
+
Object.defineProperty(exports, "AutocompleteGetTagProps", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _Autocomplete.AutocompleteGetTagProps;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
21
27
|
Object.defineProperty(exports, "AutocompleteInputChangeReason", {
|
|
22
28
|
enumerable: true,
|
|
23
29
|
get: function get() {
|
|
@@ -36,13 +42,19 @@ Object.defineProperty(exports, "AutocompleteRenderInputParams", {
|
|
|
36
42
|
return _Autocomplete.AutocompleteRenderInputParams;
|
|
37
43
|
}
|
|
38
44
|
});
|
|
45
|
+
Object.defineProperty(exports, "AutocompleteRenderOptionState", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function get() {
|
|
48
|
+
return _Autocomplete.AutocompleteRenderOptionState;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
39
51
|
exports["default"] = void 0;
|
|
40
52
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
41
53
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
42
54
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
43
55
|
var _react = _interopRequireDefault(require("react"));
|
|
44
|
-
var _Autocomplete = _interopRequireWildcard(require("@material-ui/lab/Autocomplete"));
|
|
45
56
|
var _styles = require("@material-ui/core/styles");
|
|
57
|
+
var _Autocomplete = _interopRequireWildcard(require("@material-ui/lab/Autocomplete"));
|
|
46
58
|
var _excluded = ["classes"];
|
|
47
59
|
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); }
|
|
48
60
|
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; }
|
|
@@ -30,8 +30,8 @@ export interface IProps {
|
|
|
30
30
|
onClickAdd?(): void;
|
|
31
31
|
onToggleEdit?(): void;
|
|
32
32
|
}
|
|
33
|
-
export declare const Content: import("styled-components").
|
|
34
|
-
export declare const Title: import("styled-components").
|
|
33
|
+
export declare const Content: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
34
|
+
export declare const Title: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<{
|
|
35
35
|
/**
|
|
36
36
|
* Children to be rendered inside the card.
|
|
37
37
|
*/
|
|
@@ -46,6 +46,21 @@ export declare const Title: import("styled-components").StyledComponent<({ child
|
|
|
46
46
|
variantMapping?: Partial<Record<import("@material-ui/core").TypographyVariant | "srOnly", string>> | undefined;
|
|
47
47
|
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").TypographyTypeMap<{}, "span">> & Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
48
48
|
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
49
|
-
}, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "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" | "ref" | "key"> & import("../../core/types").DefaultProps
|
|
49
|
+
}, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "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" | "ref" | "key"> & import("../../core/types").DefaultProps, never>> & Omit<({ children, margin, padding, style, variant, ...otherProps }: {
|
|
50
|
+
/**
|
|
51
|
+
* Children to be rendered inside the card.
|
|
52
|
+
*/
|
|
53
|
+
align?: import("@material-ui/core").PropTypes.Alignment | undefined;
|
|
54
|
+
children?: React.ReactNode;
|
|
55
|
+
color?: "inherit" | "initial" | "primary" | "secondary" | "textPrimary" | "textSecondary" | "error" | undefined;
|
|
56
|
+
display?: "initial" | "block" | "inline" | undefined;
|
|
57
|
+
gutterBottom?: boolean | undefined;
|
|
58
|
+
noWrap?: boolean | undefined;
|
|
59
|
+
paragraph?: boolean | undefined;
|
|
60
|
+
variant?: "inherit" | (import("@material-ui/core").TypographyVariant | "srOnly") | undefined;
|
|
61
|
+
variantMapping?: Partial<Record<import("@material-ui/core").TypographyVariant | "srOnly", string>> | undefined;
|
|
62
|
+
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core").TypographyTypeMap<{}, "span">> & Pick<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
63
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
64
|
+
}, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "title" | "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" | "ref" | "key"> & import("../../core/types").DefaultProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
50
65
|
export declare const Card: (props: IProps) => React.JSX.Element;
|
|
51
66
|
export default Card;
|
|
@@ -15,7 +15,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
15
15
|
var _nginformaticaStyleguide = require("nginformatica-styleguide");
|
|
16
16
|
var _times = _interopRequireDefault(require("ramda/es/times"));
|
|
17
17
|
var _map = _interopRequireDefault(require("ramda/es/map"));
|
|
18
|
-
var
|
|
18
|
+
var _material = require("@mui/material");
|
|
19
19
|
var _excluded = ["options", "loading", "handleGoTo", "extraOptions", "top"];
|
|
20
20
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
21
21
|
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); }
|
|
@@ -33,7 +33,7 @@ var renderSkeleton = function renderSkeleton(index) {
|
|
|
33
33
|
style: {
|
|
34
34
|
padding: '2px 10px'
|
|
35
35
|
}
|
|
36
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement(_material.Skeleton, {
|
|
37
37
|
width: 36,
|
|
38
38
|
height: 36
|
|
39
39
|
}));
|
|
@@ -6,17 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = exports.Skeleton = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _nginformaticaStyleguide = require("nginformatica-styleguide");
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
10
|
var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skeleton"));
|
|
12
11
|
require("react-loading-skeleton/dist/skeleton.css");
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var _theme = require("../../theme");
|
|
13
|
+
var grays = _theme.theme.colors.grays;
|
|
15
14
|
var Skeleton = exports.Skeleton = function Skeleton(props) {
|
|
16
15
|
return /*#__PURE__*/_react["default"].createElement(_reactLoadingSkeleton["default"], (0, _extends2["default"])({
|
|
17
16
|
containerTestId: "skeleton-container",
|
|
18
|
-
baseColor:
|
|
19
|
-
highlightColor:
|
|
17
|
+
baseColor: grays.g7,
|
|
18
|
+
highlightColor: grays.g6
|
|
20
19
|
}, props));
|
|
21
20
|
};
|
|
22
21
|
var _default = exports["default"] = Skeleton;
|
package/icons/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@
|
|
1
|
+
export * from '@mui/icons-material';
|
package/icons/index.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
7
|
-
Object.keys(
|
|
6
|
+
var _iconsMaterial = require("@mui/icons-material");
|
|
7
|
+
Object.keys(_iconsMaterial).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] ===
|
|
9
|
+
if (key in exports && exports[key] === _iconsMaterial[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
12
|
get: function get() {
|
|
13
|
-
return
|
|
13
|
+
return _iconsMaterial[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
package/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export { default as ListItem } from './core/data-display/list-item';
|
|
|
32
32
|
export { default as Menu } from './core/navigation/menu';
|
|
33
33
|
export { default as MaskField } from './core/inputs/mask-field';
|
|
34
34
|
export { default as Node } from './core/data-display/node';
|
|
35
|
+
export { default as MenuItem } from './core/data-display/menu-item';
|
|
35
36
|
export { default as Pagination } from './core/navigation/pagination';
|
|
36
37
|
export { default as Paper } from './core/surfaces/paper';
|
|
37
38
|
export { default as Progress } from './core/feedback/progress';
|
|
@@ -62,5 +63,6 @@ export { default as Chapter } from './core/data-display/chapter';
|
|
|
62
63
|
export { default as DataTable } from './core/data-display/data-table';
|
|
63
64
|
export { default as StepCard } from './core/surfaces/step-card';
|
|
64
65
|
export { default as StepCardSkeleton } from './core/surfaces/step-card/step-card-skeleton';
|
|
66
|
+
export { default as ValidationDialog } from './core/feedback/validation-dialog/';
|
|
65
67
|
export * as Experimental from './experimental';
|
|
66
68
|
export * as Icons from './icons';
|
package/index.js
CHANGED
|
@@ -217,6 +217,12 @@ Object.defineProperty(exports, "Menu", {
|
|
|
217
217
|
return _menu["default"];
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
|
+
Object.defineProperty(exports, "MenuItem", {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
get: function get() {
|
|
223
|
+
return _menuItem["default"];
|
|
224
|
+
}
|
|
225
|
+
});
|
|
220
226
|
Object.defineProperty(exports, "Node", {
|
|
221
227
|
enumerable: true,
|
|
222
228
|
get: function get() {
|
|
@@ -385,6 +391,12 @@ Object.defineProperty(exports, "Typography", {
|
|
|
385
391
|
return _typography["default"];
|
|
386
392
|
}
|
|
387
393
|
});
|
|
394
|
+
Object.defineProperty(exports, "ValidationDialog", {
|
|
395
|
+
enumerable: true,
|
|
396
|
+
get: function get() {
|
|
397
|
+
return _validationDialog["default"];
|
|
398
|
+
}
|
|
399
|
+
});
|
|
388
400
|
Object.defineProperty(exports, "Zoom", {
|
|
389
401
|
enumerable: true,
|
|
390
402
|
get: function get() {
|
|
@@ -425,6 +437,7 @@ var _listItem = _interopRequireDefault(require("./core/data-display/list-item"))
|
|
|
425
437
|
var _menu = _interopRequireDefault(require("./core/navigation/menu"));
|
|
426
438
|
var _maskField = _interopRequireDefault(require("./core/inputs/mask-field"));
|
|
427
439
|
var _node = _interopRequireDefault(require("./core/data-display/node"));
|
|
440
|
+
var _menuItem = _interopRequireDefault(require("./core/data-display/menu-item"));
|
|
428
441
|
var _pagination = _interopRequireDefault(require("./core/navigation/pagination"));
|
|
429
442
|
var _paper = _interopRequireDefault(require("./core/surfaces/paper"));
|
|
430
443
|
var _progress = _interopRequireDefault(require("./core/feedback/progress"));
|
|
@@ -455,6 +468,7 @@ var _chapter = _interopRequireDefault(require("./core/data-display/chapter"));
|
|
|
455
468
|
var _dataTable = _interopRequireDefault(require("./core/data-display/data-table"));
|
|
456
469
|
var _stepCard = _interopRequireDefault(require("./core/surfaces/step-card"));
|
|
457
470
|
var _stepCardSkeleton = _interopRequireDefault(require("./core/surfaces/step-card/step-card-skeleton"));
|
|
471
|
+
var _validationDialog = _interopRequireDefault(require("./core/feedback/validation-dialog/"));
|
|
458
472
|
var _Experimental = _interopRequireWildcard(require("./experimental"));
|
|
459
473
|
exports.Experimental = _Experimental;
|
|
460
474
|
var _Icons = _interopRequireWildcard(require("./icons"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flipper-ui",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"homepage": "https://flipper-ui.ngi.com.br/",
|
|
@@ -34,10 +34,15 @@
|
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@date-io/date-fns": "1.3.6",
|
|
37
|
+
"@emotion/react": "11.11.3",
|
|
38
|
+
"@emotion/styled": "11.11.0",
|
|
37
39
|
"@material-ui/core": "4.12.4",
|
|
38
40
|
"@material-ui/icons": "4.11.3",
|
|
39
41
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
40
42
|
"@material-ui/pickers": "3.3.11",
|
|
43
|
+
"@mui/icons-material": "5.15.3",
|
|
44
|
+
"@mui/material": "5.15.3",
|
|
45
|
+
"@mui/styles": "5.15.3",
|
|
41
46
|
"date-fns": "2.30.0",
|
|
42
47
|
"faker": "5.5.3",
|
|
43
48
|
"material-table": "1.69.3",
|
|
@@ -47,33 +52,34 @@
|
|
|
47
52
|
"react-loading-skeleton": "3.3.1",
|
|
48
53
|
"react-number-format": "4.4.1",
|
|
49
54
|
"sprintf-js": "1.1.3",
|
|
55
|
+
"stylis": "4.3.1",
|
|
50
56
|
"uuid": "9.0.1"
|
|
51
57
|
},
|
|
52
58
|
"devDependencies": {
|
|
53
59
|
"@babel/cli": "7.23.4",
|
|
54
|
-
"@babel/core": "7.23.
|
|
55
|
-
"@babel/plugin-transform-runtime": "7.23.
|
|
56
|
-
"@babel/preset-env": "7.23.
|
|
60
|
+
"@babel/core": "7.23.7",
|
|
61
|
+
"@babel/plugin-transform-runtime": "7.23.7",
|
|
62
|
+
"@babel/preset-env": "7.23.7",
|
|
57
63
|
"@babel/preset-typescript": "7.23.3",
|
|
58
|
-
"@storybook/addon-essentials": "7.6.
|
|
59
|
-
"@storybook/addon-styling-webpack": "0.0.
|
|
60
|
-
"@storybook/react": "7.6.
|
|
61
|
-
"@storybook/react-webpack5": "7.6.
|
|
62
|
-
"@testing-library/react": "14.
|
|
63
|
-
"@testing-library/user-event": "14.5.
|
|
64
|
+
"@storybook/addon-essentials": "7.6.7",
|
|
65
|
+
"@storybook/addon-styling-webpack": "0.0.6",
|
|
66
|
+
"@storybook/react": "7.6.7",
|
|
67
|
+
"@storybook/react-webpack5": "7.6.7",
|
|
68
|
+
"@testing-library/react": "14.1.2",
|
|
69
|
+
"@testing-library/user-event": "14.5.2",
|
|
64
70
|
"@types/faker": "5.5.3",
|
|
65
71
|
"@types/history": "5.0.0",
|
|
66
72
|
"@types/jest": "29.5.11",
|
|
67
|
-
"@types/node": "20.10.
|
|
73
|
+
"@types/node": "20.10.6",
|
|
68
74
|
"@types/ramda": "0.25.36",
|
|
69
|
-
"@types/react": "18.2.
|
|
75
|
+
"@types/react": "18.2.46",
|
|
70
76
|
"@types/react-router": "5.1.20",
|
|
71
77
|
"@types/react-router-dom": "5.3.3",
|
|
72
78
|
"@types/sprintf-js": "1.1.4",
|
|
73
79
|
"@types/styled-components": "5.1.34",
|
|
74
80
|
"@types/uuid": "9.0.7",
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
76
|
-
"@typescript-eslint/parser": "6.
|
|
81
|
+
"@typescript-eslint/eslint-plugin": "6.17.0",
|
|
82
|
+
"@typescript-eslint/parser": "6.17.0",
|
|
77
83
|
"babel-loader": "9.1.3",
|
|
78
84
|
"babel-plugin-module-resolver": "5.0.0",
|
|
79
85
|
"babel-plugin-transform-class-properties": "6.24.1",
|
|
@@ -82,7 +88,7 @@
|
|
|
82
88
|
"eslint-config-prettier": "9.1.0",
|
|
83
89
|
"eslint-plugin-import": "2.29.1",
|
|
84
90
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
85
|
-
"eslint-plugin-prettier": "5.1.
|
|
91
|
+
"eslint-plugin-prettier": "5.1.2",
|
|
86
92
|
"eslint-plugin-ramda": "2.5.1",
|
|
87
93
|
"eslint-plugin-react": "7.33.2",
|
|
88
94
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
@@ -95,19 +101,19 @@
|
|
|
95
101
|
"prettier": "3.1.1",
|
|
96
102
|
"react": "18.2.0",
|
|
97
103
|
"react-dom": "18.2.0",
|
|
98
|
-
"react-router": "6.21.
|
|
99
|
-
"react-router-dom": "6.21.
|
|
100
|
-
"storybook": "7.6.
|
|
101
|
-
"styled-components": "6.1.
|
|
104
|
+
"react-router": "6.21.1",
|
|
105
|
+
"react-router-dom": "6.21.1",
|
|
106
|
+
"storybook": "7.6.7",
|
|
107
|
+
"styled-components": "6.1.6",
|
|
102
108
|
"ts-jest": "29.1.1",
|
|
103
109
|
"ts-loader": "9.5.1",
|
|
104
110
|
"typescript": "5.3.3",
|
|
105
111
|
"webpack": "5.89.0"
|
|
106
112
|
},
|
|
107
113
|
"peerDependencies": {
|
|
108
|
-
"date-fns": "2.30.0",
|
|
109
|
-
"react": "16.
|
|
110
|
-
"styled-components": "5.
|
|
114
|
+
"date-fns": "^2.30.0",
|
|
115
|
+
"react": "16.x || 17.x || 18.x",
|
|
116
|
+
"styled-components": "5.x || 6.x"
|
|
111
117
|
},
|
|
112
118
|
"publishConfig": {
|
|
113
119
|
"ignore": [
|
|
@@ -10,7 +10,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _ = require("../..");
|
|
12
12
|
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
13
|
-
var
|
|
13
|
+
var _icons = require("../../icons");
|
|
14
14
|
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
15
|
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
16
|
var Default = function Default(_ref) {
|
|
@@ -39,7 +39,7 @@ var Default = function Default(_ref) {
|
|
|
39
39
|
"aria-label": "Close",
|
|
40
40
|
color: "inherit",
|
|
41
41
|
onClick: (snackProps === null || snackProps === void 0 ? void 0 : snackProps.onClose) || handleClose
|
|
42
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement(_icons.Close, null));
|
|
43
43
|
};
|
|
44
44
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_.Button, {
|
|
45
45
|
disabled: btnState,
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Priority, Feedback, Criticality, Graphically } from './presets';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
primary: {
|
|
4
|
+
main: string;
|
|
5
|
+
dark: string;
|
|
6
|
+
light: string;
|
|
7
|
+
contrast: string;
|
|
8
|
+
};
|
|
9
|
+
secondary: {
|
|
10
|
+
main: string;
|
|
11
|
+
dark: string;
|
|
12
|
+
light: string;
|
|
13
|
+
contrast: string;
|
|
14
|
+
};
|
|
15
|
+
app: {
|
|
16
|
+
border: string;
|
|
17
|
+
background: {
|
|
18
|
+
main: string;
|
|
19
|
+
lighter: string;
|
|
20
|
+
};
|
|
21
|
+
text: {
|
|
22
|
+
main: string;
|
|
23
|
+
light: string;
|
|
24
|
+
disabled: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
priority: Record<Priority, {
|
|
28
|
+
main: string;
|
|
29
|
+
light: string;
|
|
30
|
+
}>;
|
|
31
|
+
feedback: Record<Feedback, string>;
|
|
32
|
+
graphic: Record<Graphically, {
|
|
33
|
+
main: string;
|
|
34
|
+
light: string;
|
|
35
|
+
}>;
|
|
36
|
+
criticality: Record<Criticality, string>;
|
|
37
|
+
neutral: {
|
|
38
|
+
black: string;
|
|
39
|
+
white: string;
|
|
40
|
+
transparent: string;
|
|
41
|
+
};
|
|
42
|
+
grays: {
|
|
43
|
+
g0: string;
|
|
44
|
+
g1: string;
|
|
45
|
+
g2: string;
|
|
46
|
+
g3: string;
|
|
47
|
+
g4: string;
|
|
48
|
+
g5: string;
|
|
49
|
+
g6: string;
|
|
50
|
+
g7: string;
|
|
51
|
+
g8: string;
|
|
52
|
+
g9: string;
|
|
53
|
+
};
|
|
54
|
+
action: {
|
|
55
|
+
confirm: string;
|
|
56
|
+
cancel: string;
|
|
57
|
+
neutral: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export default _default;
|
package/theme/colors.js
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var neutral = {
|
|
8
|
+
black: '#000000',
|
|
9
|
+
white: '#FFFFFF',
|
|
10
|
+
transparent: 'rgba(0, 0, 0, 0)'
|
|
11
|
+
};
|
|
12
|
+
var primary = {
|
|
13
|
+
main: '#152849',
|
|
14
|
+
dark: '#0E1C33',
|
|
15
|
+
light: '#43536D',
|
|
16
|
+
contrast: neutral.white
|
|
17
|
+
};
|
|
18
|
+
var secondary = {
|
|
19
|
+
main: '#118D16',
|
|
20
|
+
dark: '#0B620F',
|
|
21
|
+
light: '#40A344',
|
|
22
|
+
contrast: neutral.white
|
|
23
|
+
};
|
|
24
|
+
var feedback = {
|
|
25
|
+
danger: '#D84315',
|
|
26
|
+
warning: '#FFA000',
|
|
27
|
+
success: '#0E9043',
|
|
28
|
+
info: '#2F80ED'
|
|
29
|
+
};
|
|
30
|
+
var action = {
|
|
31
|
+
confirm: '#118D16',
|
|
32
|
+
cancel: '#D84315',
|
|
33
|
+
neutral: primary.main
|
|
34
|
+
};
|
|
35
|
+
var grays = {
|
|
36
|
+
g0: '#212121',
|
|
37
|
+
g1: '#424242',
|
|
38
|
+
g2: '#616161',
|
|
39
|
+
g3: '#757575',
|
|
40
|
+
g4: '#9e9e9e',
|
|
41
|
+
g5: '#bdbdbd',
|
|
42
|
+
g6: '#e0e0e0',
|
|
43
|
+
g7: '#eeeeee',
|
|
44
|
+
g8: '#f5f5f5',
|
|
45
|
+
g9: '#fafafa'
|
|
46
|
+
};
|
|
47
|
+
var graphic = {
|
|
48
|
+
pink: {
|
|
49
|
+
main: '#D467A8',
|
|
50
|
+
light: '#F4D9E9'
|
|
51
|
+
},
|
|
52
|
+
purple: {
|
|
53
|
+
main: '#7B4299',
|
|
54
|
+
light: '#D7C6E0'
|
|
55
|
+
},
|
|
56
|
+
brown: {
|
|
57
|
+
main: '#83471E',
|
|
58
|
+
light: '#DAC7BB'
|
|
59
|
+
},
|
|
60
|
+
red: {
|
|
61
|
+
main: '#D84315',
|
|
62
|
+
light: '#FFCDBE'
|
|
63
|
+
},
|
|
64
|
+
orange: {
|
|
65
|
+
main: '#FF9900',
|
|
66
|
+
light: '#FFE1B4'
|
|
67
|
+
},
|
|
68
|
+
yellow: {
|
|
69
|
+
main: '#E7BF11',
|
|
70
|
+
light: '#FFF7D5'
|
|
71
|
+
},
|
|
72
|
+
lightgreen: {
|
|
73
|
+
main: '#8BC34A',
|
|
74
|
+
light: '#E9F4DD'
|
|
75
|
+
},
|
|
76
|
+
green: {
|
|
77
|
+
main: '#0A7B3E',
|
|
78
|
+
light: '#CEE5D8'
|
|
79
|
+
},
|
|
80
|
+
blue: {
|
|
81
|
+
main: '#56CCF2',
|
|
82
|
+
light: '#DAF2FD'
|
|
83
|
+
},
|
|
84
|
+
gray: {
|
|
85
|
+
main: grays.g5,
|
|
86
|
+
light: grays.g8
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
var priority = {
|
|
90
|
+
critical: {
|
|
91
|
+
main: '#D84315',
|
|
92
|
+
light: '#FFCDBE'
|
|
93
|
+
},
|
|
94
|
+
high: {
|
|
95
|
+
main: '#FF9900',
|
|
96
|
+
light: '#FFE1B4'
|
|
97
|
+
},
|
|
98
|
+
medium: {
|
|
99
|
+
main: '#E7BF11',
|
|
100
|
+
light: '#FFF7D5'
|
|
101
|
+
},
|
|
102
|
+
low: {
|
|
103
|
+
main: '#8BC34A',
|
|
104
|
+
light: '#E9F4DD'
|
|
105
|
+
},
|
|
106
|
+
minimal: {
|
|
107
|
+
main: '#56CCF2',
|
|
108
|
+
light: '#DAF2FD'
|
|
109
|
+
},
|
|
110
|
+
neutral: {
|
|
111
|
+
main: grays.g5,
|
|
112
|
+
light: grays.g8
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
var criticality = {
|
|
116
|
+
high: '#FF9900',
|
|
117
|
+
medium: '#E7BF11',
|
|
118
|
+
low: '#8BC34A'
|
|
119
|
+
};
|
|
120
|
+
var app = {
|
|
121
|
+
border: grays.g6,
|
|
122
|
+
background: {
|
|
123
|
+
main: '#F6F7FF',
|
|
124
|
+
lighter: grays.g8
|
|
125
|
+
},
|
|
126
|
+
text: {
|
|
127
|
+
main: grays.g0,
|
|
128
|
+
light: grays.g3,
|
|
129
|
+
disabled: grays.g6
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
var _default = exports["default"] = {
|
|
133
|
+
primary: primary,
|
|
134
|
+
secondary: secondary,
|
|
135
|
+
app: app,
|
|
136
|
+
priority: priority,
|
|
137
|
+
feedback: feedback,
|
|
138
|
+
graphic: graphic,
|
|
139
|
+
criticality: criticality,
|
|
140
|
+
neutral: neutral,
|
|
141
|
+
grays: grays,
|
|
142
|
+
action: action
|
|
143
|
+
};
|
package/theme/index.d.ts
ADDED
package/theme/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _theme = require("./theme");
|
|
7
|
+
Object.keys(_theme).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _theme[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _theme[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _presets = require("./presets");
|
|
18
|
+
Object.keys(_presets).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _presets[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _presets[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|