flipper-ui 0.34.6 → 0.34.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/advertise.stories.d.ts +5 -4
- package/core/data-display/advertise/styles.d.ts +1 -1
- package/core/data-display/advertise/styles.js +2 -2
- package/core/data-display/chapter/chapter.stories.d.ts +5 -5
- package/core/data-display/chapter/styles.js +2 -2
- package/core/data-display/chip/chip.stories.d.ts +5 -9
- package/core/data-display/chip/index.js +7 -14
- package/core/data-display/data-table/data-table-field.js +2 -2
- package/core/data-display/data-table/data-table-query-paginated.stories.d.ts +2 -2
- package/core/data-display/data-table/data-table.js +6 -4
- package/core/data-display/data-table/data-table.stories.d.ts +2 -2
- package/core/data-display/fab/fab.stories.d.ts +5 -4
- package/core/data-display/fab/index.d.ts +1 -1
- package/core/data-display/fab/index.js +8 -13
- package/core/data-display/line/index.js +2 -2
- package/core/data-display/list/index.d.ts +1 -1
- package/core/data-display/list/index.js +9 -22
- package/core/data-display/list/list.stories.d.ts +5 -6
- package/core/data-display/list-item/index.js +28 -35
- package/core/data-display/table/index.js +2 -2
- package/core/data-display/table/table-footer.js +2 -2
- package/core/data-display/table/table-pagination.js +3 -3
- package/core/data-display/table/table-row.js +2 -2
- package/core/data-display/table/table.stories.d.ts +5 -4
- package/core/data-display/typography/typography.stories.d.ts +5 -21
- package/core/feedback/dialog/index.js +6 -13
- package/core/feedback/progress/index.d.ts +1 -9
- package/core/feedback/progress/index.js +9 -38
- package/core/feedback/progress/progress.stories.d.ts +6 -13
- package/core/feedback/skeleton/index.js +4 -4
- package/core/feedback/skeleton/skeleton.stories.d.ts +5 -6
- package/core/feedback/snackbar/index.js +13 -12
- package/core/feedback/snackbar/snackbar.stories.d.ts +5 -7
- package/core/feedback/snackbar/styles.d.ts +2 -0
- package/core/feedback/snackbar/styles.js +12 -0
- package/core/feedback/tooltip/styles.d.ts +1 -0
- package/core/feedback/tooltip/styles.js +11 -0
- package/core/feedback/tooltip/tooltip.stories.d.ts +5 -7
- package/core/feedback/validation-dialog/styles.d.ts +1 -1
- package/core/inputs/autocomplete/autocomplete.stories.d.ts +1 -1
- package/core/inputs/button/button.stories.d.ts +5 -18
- package/core/inputs/checkbox/checkbox.stories.d.ts +5 -10
- package/core/inputs/chip-field/chip-field.stories.d.ts +5 -10
- package/core/inputs/date-time/index.js +10 -8
- package/core/inputs/icon-button/icon-button.stories.d.ts +5 -7
- package/core/inputs/input-adornment/input-adornment.stories.d.ts +5 -5
- package/core/inputs/mask-field/mask-field.stories.d.ts +5 -6
- package/core/inputs/pin-input/index.js +15 -13
- package/core/inputs/radio/radio.stories.d.ts +5 -7
- package/core/inputs/radio-group/radio-group.stories.d.ts +5 -5
- package/core/inputs/select/select.stories.d.ts +5 -6
- package/core/inputs/slider/index.js +15 -22
- package/core/inputs/slider/slider.stories.d.ts +6 -10
- package/core/inputs/text-field/index.js +19 -27
- package/core/inputs/text-field/styles.js +2 -2
- package/core/inputs/text-field/text-field.stories.d.ts +0 -1
- package/core/navigation/breadcrumbs/styles.d.ts +1 -1
- package/core/navigation/menu/menu.stories.d.ts +5 -4
- package/core/navigation/sidebar/index.d.ts +1 -3
- package/core/navigation/sidebar/index.js +5 -21
- package/core/navigation/sidebar/styles.js +2 -2
- package/core/navigation/stepper/index.js +3 -3
- package/core/navigation/stepper/stepper.stories.d.ts +6 -5
- package/core/navigation/tabs/tabs.stories.d.ts +5 -4
- package/core/surfaces/box/box.stories.d.ts +5 -4
- package/core/surfaces/card/styles.d.ts +1 -1
- package/core/surfaces/expansion-panel/expansion-panel.stories.d.ts +5 -6
- package/core/surfaces/header/header.stories.d.ts +5 -6
- package/core/surfaces/header/styles.d.ts +1 -0
- package/core/surfaces/header/styles.js +11 -0
- package/core/surfaces/panel/styles.d.ts +1 -1
- package/core/surfaces/step-card/step-card-details.js +3 -3
- package/core/surfaces/step-card/step-card-panel.js +7 -8
- package/core/surfaces/step-card/step-card.stories.d.ts +7 -6
- package/package.json +34 -37
- package/test/mocks/chip-field-mock.d.ts +8 -0
- package/test/mocks/chip-field-mock.js +26 -0
- package/test/util.js +1 -1
- package/theme/colors.d.ts +50 -45
- package/theme/colors.js +274 -120
- package/theme/index.d.ts +0 -1
- package/theme/index.js +0 -12
- package/theme/theme.d.ts +50 -61
- package/theme/theme.js +6 -18
- package/theme/presets.d.ts +0 -31
- package/theme/presets.js +0 -41
package/theme/index.js
CHANGED
|
@@ -25,16 +25,4 @@ Object.keys(_theme).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
-
var _presets = require("./presets");
|
|
29
|
-
Object.keys(_presets).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
32
|
-
if (key in exports && exports[key] === _presets[key]) return;
|
|
33
|
-
Object.defineProperty(exports, key, {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function get() {
|
|
36
|
-
return _presets[key];
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
28
|
var _ThemeProvider = _interopRequireDefault(require("./ThemeProvider"));
|
package/theme/theme.d.ts
CHANGED
|
@@ -1,67 +1,69 @@
|
|
|
1
|
-
import colors from './colors';
|
|
2
1
|
export declare const theme: {
|
|
3
2
|
colors: {
|
|
3
|
+
red: Record<number, string>;
|
|
4
|
+
pink: Record<number, string>;
|
|
5
|
+
lightPink: Record<number, string>;
|
|
6
|
+
purple: Record<number, string>;
|
|
7
|
+
indigo: Record<number, string>;
|
|
8
|
+
darkBlue: Record<number, string>;
|
|
9
|
+
blue: Record<number, string>;
|
|
10
|
+
lightBlue: Record<number, string>;
|
|
11
|
+
lightTeal: Record<number, string>;
|
|
12
|
+
teal: Record<number, string>;
|
|
13
|
+
green: Record<number, string>;
|
|
14
|
+
lightGreen: Record<number, string>;
|
|
15
|
+
amber: Record<number, string>;
|
|
16
|
+
orange: Record<number, string>;
|
|
17
|
+
deepOrange: Record<number, string>;
|
|
18
|
+
brown: Record<number, string>;
|
|
19
|
+
lightBrown: Record<number, string>;
|
|
20
|
+
gray: Record<number, string>;
|
|
21
|
+
neutral: Record<number, string>;
|
|
22
|
+
action: {
|
|
23
|
+
cancel: string;
|
|
24
|
+
confirm: string;
|
|
25
|
+
};
|
|
4
26
|
primary: {
|
|
27
|
+
light: string;
|
|
5
28
|
main: string;
|
|
6
29
|
dark: string;
|
|
7
|
-
light: string;
|
|
8
|
-
contrast: string;
|
|
9
30
|
};
|
|
10
31
|
secondary: {
|
|
32
|
+
light: string;
|
|
11
33
|
main: string;
|
|
12
34
|
dark: string;
|
|
13
|
-
light: string;
|
|
14
|
-
contrast: string;
|
|
15
35
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
36
|
+
criticality: {
|
|
37
|
+
low: string;
|
|
38
|
+
medium: string;
|
|
39
|
+
high: string;
|
|
40
|
+
};
|
|
41
|
+
priority: {
|
|
42
|
+
main: {
|
|
43
|
+
neutral: string;
|
|
44
|
+
minimal: string;
|
|
45
|
+
low: string;
|
|
46
|
+
medium: string;
|
|
47
|
+
high: string;
|
|
48
|
+
critical: string;
|
|
21
49
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
50
|
+
light: {
|
|
51
|
+
neutral: string;
|
|
52
|
+
minimal: string;
|
|
53
|
+
low: string;
|
|
54
|
+
medium: string;
|
|
55
|
+
high: string;
|
|
56
|
+
critical: string;
|
|
26
57
|
};
|
|
27
58
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
graphic: Record<import("./presets").Graphically, {
|
|
34
|
-
main: string;
|
|
35
|
-
light: string;
|
|
36
|
-
}>;
|
|
37
|
-
criticality: Record<import("./presets").Criticality, string>;
|
|
38
|
-
neutral: {
|
|
39
|
-
black: string;
|
|
40
|
-
white: string;
|
|
41
|
-
transparent: string;
|
|
42
|
-
};
|
|
43
|
-
grays: {
|
|
44
|
-
g0: string;
|
|
45
|
-
g1: string;
|
|
46
|
-
g2: string;
|
|
47
|
-
g3: string;
|
|
48
|
-
g4: string;
|
|
49
|
-
g5: string;
|
|
50
|
-
g6: string;
|
|
51
|
-
g7: string;
|
|
52
|
-
g8: string;
|
|
53
|
-
g9: string;
|
|
54
|
-
};
|
|
55
|
-
action: {
|
|
56
|
-
confirm: string;
|
|
57
|
-
cancel: string;
|
|
58
|
-
neutral: string;
|
|
59
|
+
feedback: {
|
|
60
|
+
danger: string;
|
|
61
|
+
warning: string;
|
|
62
|
+
success: string;
|
|
63
|
+
info: string;
|
|
59
64
|
};
|
|
60
65
|
};
|
|
61
66
|
};
|
|
62
|
-
/**
|
|
63
|
-
* Options to createMuiTheme
|
|
64
|
-
* */
|
|
65
67
|
export declare const muiThemeOptions: {
|
|
66
68
|
palette: {
|
|
67
69
|
primary: {
|
|
@@ -81,16 +83,3 @@ export declare const muiThemeOptions: {
|
|
|
81
83
|
};
|
|
82
84
|
};
|
|
83
85
|
};
|
|
84
|
-
/**
|
|
85
|
-
* Raw colors
|
|
86
|
-
* */
|
|
87
|
-
export type Colors = typeof colors;
|
|
88
|
-
export interface Theme {
|
|
89
|
-
theme: {
|
|
90
|
-
colors: Colors;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Util interface to extend (Props + Theme)
|
|
95
|
-
* */
|
|
96
|
-
export type WithTheme<Props extends object> = Props & Theme;
|
package/theme/theme.js
CHANGED
|
@@ -9,34 +9,22 @@ var _colors = _interopRequireDefault(require("./colors"));
|
|
|
9
9
|
var theme = exports.theme = {
|
|
10
10
|
colors: _colors["default"]
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Options to createMuiTheme
|
|
15
|
-
* */
|
|
16
12
|
var muiThemeOptions = exports.muiThemeOptions = {
|
|
17
13
|
palette: {
|
|
18
14
|
primary: {
|
|
19
|
-
main: _colors["default"].
|
|
15
|
+
main: _colors["default"].darkBlue[600]
|
|
20
16
|
},
|
|
21
17
|
secondary: {
|
|
22
|
-
main: _colors["default"].
|
|
18
|
+
main: _colors["default"].green[600]
|
|
23
19
|
},
|
|
24
20
|
error: {
|
|
25
|
-
main: _colors["default"].
|
|
21
|
+
main: _colors["default"].deepOrange[600]
|
|
26
22
|
},
|
|
27
23
|
background: {
|
|
28
|
-
"default": _colors["default"].
|
|
24
|
+
"default": _colors["default"].neutral[100]
|
|
29
25
|
},
|
|
30
26
|
text: {
|
|
31
|
-
primary: _colors["default"].
|
|
27
|
+
primary: _colors["default"].gray[900]
|
|
32
28
|
}
|
|
33
29
|
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Raw colors
|
|
38
|
-
* */
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Util interface to extend (Props + Theme)
|
|
42
|
-
* */
|
|
30
|
+
};
|
package/theme/presets.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare enum Feedback {
|
|
2
|
-
danger = "danger",
|
|
3
|
-
warning = "warning",
|
|
4
|
-
success = "success",
|
|
5
|
-
info = "info"
|
|
6
|
-
}
|
|
7
|
-
export declare enum Priority {
|
|
8
|
-
critical = "critical",
|
|
9
|
-
high = "high",
|
|
10
|
-
medium = "medium",
|
|
11
|
-
low = "low",
|
|
12
|
-
minimal = "minimal",
|
|
13
|
-
neutral = "neutral"
|
|
14
|
-
}
|
|
15
|
-
export declare enum Criticality {
|
|
16
|
-
high = "high",
|
|
17
|
-
medium = "medium",
|
|
18
|
-
low = "low"
|
|
19
|
-
}
|
|
20
|
-
export declare enum Graphically {
|
|
21
|
-
pink = "pink",
|
|
22
|
-
purple = "purple",
|
|
23
|
-
brown = "brown",
|
|
24
|
-
red = "red",
|
|
25
|
-
orange = "orange",
|
|
26
|
-
yellow = "yellow",
|
|
27
|
-
lightgreen = "lightgreen",
|
|
28
|
-
green = "green",
|
|
29
|
-
blue = "blue",
|
|
30
|
-
gray = "gray"
|
|
31
|
-
}
|
package/theme/presets.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Priority = exports.Graphically = exports.Feedback = exports.Criticality = void 0;
|
|
7
|
-
var Feedback = exports.Feedback = /*#__PURE__*/function (Feedback) {
|
|
8
|
-
Feedback["danger"] = "danger";
|
|
9
|
-
Feedback["warning"] = "warning";
|
|
10
|
-
Feedback["success"] = "success";
|
|
11
|
-
Feedback["info"] = "info";
|
|
12
|
-
return Feedback;
|
|
13
|
-
}({});
|
|
14
|
-
var Priority = exports.Priority = /*#__PURE__*/function (Priority) {
|
|
15
|
-
Priority["critical"] = "critical";
|
|
16
|
-
Priority["high"] = "high";
|
|
17
|
-
Priority["medium"] = "medium";
|
|
18
|
-
Priority["low"] = "low";
|
|
19
|
-
Priority["minimal"] = "minimal";
|
|
20
|
-
Priority["neutral"] = "neutral";
|
|
21
|
-
return Priority;
|
|
22
|
-
}({});
|
|
23
|
-
var Criticality = exports.Criticality = /*#__PURE__*/function (Criticality) {
|
|
24
|
-
Criticality["high"] = "high";
|
|
25
|
-
Criticality["medium"] = "medium";
|
|
26
|
-
Criticality["low"] = "low";
|
|
27
|
-
return Criticality;
|
|
28
|
-
}({});
|
|
29
|
-
var Graphically = exports.Graphically = /*#__PURE__*/function (Graphically) {
|
|
30
|
-
Graphically["pink"] = "pink";
|
|
31
|
-
Graphically["purple"] = "purple";
|
|
32
|
-
Graphically["brown"] = "brown";
|
|
33
|
-
Graphically["red"] = "red";
|
|
34
|
-
Graphically["orange"] = "orange";
|
|
35
|
-
Graphically["yellow"] = "yellow";
|
|
36
|
-
Graphically["lightgreen"] = "lightgreen";
|
|
37
|
-
Graphically["green"] = "green";
|
|
38
|
-
Graphically["blue"] = "blue";
|
|
39
|
-
Graphically["gray"] = "gray";
|
|
40
|
-
return Graphically;
|
|
41
|
-
}({});
|