@auspices/eos 2.22.1 → 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Alert/Alert.js +3 -3
- package/dist/Alert/Alert.js.map +1 -1
- package/dist/Alerts/Alerts.js +1 -1
- package/dist/Alerts/Alerts.js.map +1 -1
- package/dist/Alerts/useAlerts.js +21 -16
- package/dist/Alerts/useAlerts.js.map +1 -1
- package/dist/AspectRatioBox/AspectRatioBox.js +3 -3
- package/dist/AspectRatioBox/AspectRatioBox.js.map +1 -1
- package/dist/Box/Box.d.ts +3 -1
- package/dist/Box/Box.js +3 -3
- package/dist/Box/Box.js.map +1 -1
- package/dist/Button/Button.d.ts +9 -1
- package/dist/Button/Button.js +8 -9
- package/dist/Button/Button.js.map +1 -1
- package/dist/Caret/Caret.d.ts +7 -1
- package/dist/Caret/Caret.js +5 -6
- package/dist/Caret/Caret.js.map +1 -1
- package/dist/Cell/Cell.d.ts +4 -1
- package/dist/Cell/Cell.js +2 -2
- package/dist/Cell/Cell.js.map +1 -1
- package/dist/Clear/Clear.d.ts +7 -1
- package/dist/Clear/Clear.js +3 -3
- package/dist/Clear/Clear.js.map +1 -1
- package/dist/ClearableInput/ClearableInput.d.ts +1 -1
- package/dist/ClearableInput/ClearableInput.js +6 -6
- package/dist/ClearableInput/ClearableInput.js.map +1 -1
- package/dist/Clickable/Clickable.d.ts +3 -1
- package/dist/Confirm/useConfirm.js +4 -4
- package/dist/Confirm/useConfirm.js.map +1 -1
- package/dist/Divider/Divider.d.ts +4 -1
- package/dist/Dropdown/Dropdown.js +8 -8
- package/dist/Dropdown/Dropdown.js.map +1 -1
- package/dist/Ellipsis/Ellipsis.js +2 -2
- package/dist/Ellipsis/Ellipsis.js.map +1 -1
- package/dist/EmptyFrame/EmptyFrame.js +2 -3
- package/dist/EmptyFrame/EmptyFrame.js.map +1 -1
- package/dist/Expandable/Expandable.js +1 -1
- package/dist/Expandable/Expandable.js.map +1 -1
- package/dist/Field/Field.js +1 -1
- package/dist/Field/Field.js.map +1 -1
- package/dist/File/File.js +3 -3
- package/dist/File/File.js.map +1 -1
- package/dist/Flyout/Flyout.js +9 -9
- package/dist/Flyout/Flyout.js.map +1 -1
- package/dist/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/Grid/Grid.js +2 -3
- package/dist/Grid/Grid.js.map +1 -1
- package/dist/HTML/HTML.d.ts +3 -1
- package/dist/HTML/HTML.js +1 -1
- package/dist/HTML/HTML.js.map +1 -1
- package/dist/Image/Image.js +9 -10
- package/dist/Image/Image.js.map +1 -1
- package/dist/Input/Input.d.ts +4 -1
- package/dist/Input/Input.js +4 -4
- package/dist/Input/Input.js.map +1 -1
- package/dist/KeyValueEditor/KeyValueEditor.js +18 -13
- package/dist/KeyValueEditor/KeyValueEditor.js.map +1 -1
- package/dist/KeyValueInput/KeyValueInput.d.ts +1 -1
- package/dist/Loading/Loading.js +3 -4
- package/dist/Loading/Loading.js.map +1 -1
- package/dist/Modal/Modal.js +8 -9
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Mono/Mono.d.ts +4 -1
- package/dist/Mono/Mono.js +1 -1
- package/dist/Mono/Mono.js.map +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts +2 -2
- package/dist/MultiSelect/MultiSelect.js +11 -6
- package/dist/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/MultiSelect/useMultiSelect.js +9 -9
- package/dist/MultiSelect/useMultiSelect.js.map +1 -1
- package/dist/MultiSelect/useMultiSelection.js +1 -1
- package/dist/MultiSelect/useMultiSelection.js.map +1 -1
- package/dist/Pagination/Page.js +2 -2
- package/dist/Pagination/Page.js.map +1 -1
- package/dist/Pagination/Pagination.js +11 -6
- package/dist/Pagination/Pagination.js.map +1 -1
- package/dist/Pane/Pane.js +8 -8
- package/dist/Pane/Pane.js.map +1 -1
- package/dist/Pane/PaneHeader.d.ts +4 -1
- package/dist/Pane/PaneHeader.js +1 -1
- package/dist/Pane/PaneHeader.js.map +1 -1
- package/dist/Pane/PaneOption.d.ts +9 -1
- package/dist/Pane/PaneOption.js +5 -5
- package/dist/Pane/PaneOption.js.map +1 -1
- package/dist/Pill/Pill.d.ts +4 -1
- package/dist/Plus/Plus.d.ts +8 -1
- package/dist/Plus/Plus.js +4 -7
- package/dist/Plus/Plus.js.map +1 -1
- package/dist/Popper/Popper.js +1 -1
- package/dist/Popper/Popper.js.map +1 -1
- package/dist/Popper/usePopper.js +17 -12
- package/dist/Popper/usePopper.js.map +1 -1
- package/dist/ProgressBar/ProgressBar.js +3 -3
- package/dist/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/Remove/Remove.d.ts +7 -1
- package/dist/Remove/Remove.js +3 -3
- package/dist/Remove/Remove.js.map +1 -1
- package/dist/ResponsiveImage/ResponsiveImage.js +9 -8
- package/dist/ResponsiveImage/ResponsiveImage.js.map +1 -1
- package/dist/Select/Select.js +2 -2
- package/dist/Select/Select.js.map +1 -1
- package/dist/Skeleton/Skeleton.d.ts +4 -1
- package/dist/Skeleton/Skeleton.js +3 -4
- package/dist/Skeleton/Skeleton.js.map +1 -1
- package/dist/Spinner/Spinner.js +1 -1
- package/dist/Spinner/Spinner.js.map +1 -1
- package/dist/Stack/Stack.js +2 -22
- package/dist/Stack/Stack.js.map +1 -1
- package/dist/Tag/Tag.js +7 -8
- package/dist/Tag/Tag.js.map +1 -1
- package/dist/Themer/useThemer.js +7 -7
- package/dist/Themer/useThemer.js.map +1 -1
- package/dist/Tooltip/Tooltip.js +6 -6
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/Upload/Upload.js +2 -2
- package/dist/Upload/Upload.js.map +1 -1
- package/dist/hooks/useClickOutside.js +4 -4
- package/dist/hooks/useClickOutside.js.map +1 -1
- package/dist/hooks/useUniqueId.js +1 -1
- package/dist/hooks/useUniqueId.js.map +1 -1
- package/dist/hooks/useUpdateEffect.js +2 -2
- package/dist/hooks/useUpdateEffect.js.map +1 -1
- package/dist/lib/flattenChildren.js +10 -5
- package/dist/lib/flattenChildren.js.map +1 -1
- package/dist/lib/hasChildren.d.ts +1 -1
- package/dist/lib/hasChildren.js +1 -1
- package/dist/lib/hasChildren.js.map +1 -1
- package/dist/lib/onlyText.d.ts +2 -2
- package/dist/lib/onlyText.js +5 -5
- package/dist/lib/onlyText.js.map +1 -1
- package/dist/mixins/overflowEllipsis.js +1 -1
- package/dist/mixins/overflowEllipsis.js.map +1 -1
- package/dist/theme/theme.js +2 -2
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/utils.js +7 -7
- package/dist/theme/utils.js.map +1 -1
- package/package.json +24 -24
package/dist/Alert/Alert.js
CHANGED
|
@@ -54,10 +54,10 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
54
54
|
var Box_1 = require("../Box");
|
|
55
55
|
var theme_get_1 = require("@styled-system/theme-get");
|
|
56
56
|
var THEMES = {
|
|
57
|
-
notification: styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n &,\n a {\n color: ", ";\n }\n "], ["\n background-color: ", ";\n &,\n a {\n color: ", ";\n }\n "])), theme_get_1.themeGet("colors.tertiary"), theme_get_1.themeGet("colors.primary")),
|
|
58
|
-
error: styled_components_1.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n &,\n a {\n color: ", ";\n }\n "], ["\n background-color: ", ";\n &,\n a {\n color: ", ";\n }\n "])), theme_get_1.themeGet("colors.danger"), theme_get_1.themeGet("colors.white")),
|
|
57
|
+
notification: (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n &,\n a {\n color: ", ";\n }\n "], ["\n background-color: ", ";\n &,\n a {\n color: ", ";\n }\n "])), (0, theme_get_1.themeGet)("colors.tertiary"), (0, theme_get_1.themeGet)("colors.primary")),
|
|
58
|
+
error: (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n &,\n a {\n color: ", ";\n }\n "], ["\n background-color: ", ";\n &,\n a {\n color: ", ";\n }\n "])), (0, theme_get_1.themeGet)("colors.danger"), (0, theme_get_1.themeGet)("colors.white")),
|
|
59
59
|
};
|
|
60
|
-
var Container = styled_components_1.default(Box_1.Box)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
60
|
+
var Container = (0, styled_components_1.default)(Box_1.Box)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
61
61
|
var mode = _a.mode;
|
|
62
62
|
return THEMES[mode];
|
|
63
63
|
});
|
package/dist/Alert/Alert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../src/Alert/Alert.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,qEAAgD;AAChD,8BAAuC;AACvC,sDAAoD;AAMpD,IAAM,MAAM,GAAG;IACb,YAAY,
|
|
1
|
+
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../src/Alert/Alert.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,qEAAgD;AAChD,8BAAuC;AACvC,sDAAoD;AAMpD,IAAM,MAAM,GAAG;IACb,YAAY,MAAE,uBAAG,mJAAA,0BACK,EAA2B,mCAGpC,EAA0B,cAEtC,KALqB,IAAA,oBAAQ,EAAC,iBAAiB,CAAC,EAGpC,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,CAEtC;IACD,KAAK,MAAE,uBAAG,mJAAA,0BACY,EAAyB,mCAGlC,EAAwB,cAEpC,KALqB,IAAA,oBAAQ,EAAC,eAAe,CAAC,EAGlC,IAAA,oBAAQ,EAAC,cAAc,CAAC,CAEpC;CACF,CAAC;AAEF,IAAM,SAAS,GAAG,IAAA,2BAAM,EAAC,SAAG,CAAC,+EAE3B,MACE,EAA0B,IAC7B,KADG,UAAC,EAAQ;QAAN,IAAI,UAAA;IAAO,OAAA,MAAM,CAAC,IAAI,CAAC;AAAZ,CAAY,CAC7B,CAAC;AAEK,IAAM,KAAK,GAAyB,UAAC,EAA2B;IAAzB,IAAA,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAK,IAAI,cAAzB,oBAA2B,CAAF;IACnE,OAAO,CACL,8BAAC,SAAS,aACR,QAAQ,EAAE,CAAC,EACX,EAAE,EAAE,CAAC,EACL,EAAE,EAAE,CAAC,EACL,YAAY,EAAE,CAAC,EACf,IAAI,EAAE,IAAI,IACN,IAAI,GAEP,QAAQ,CACC,CACb,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,KAAK,SAahB;AAEF,aAAK,CAAC,WAAW,GAAG,OAAO,CAAC"}
|
package/dist/Alerts/Alerts.js
CHANGED
|
@@ -39,7 +39,7 @@ var takeRight = function (xs, limit) {
|
|
|
39
39
|
};
|
|
40
40
|
var Alerts = function (_a) {
|
|
41
41
|
var _b = _a.limit, limit = _b === void 0 ? 5 : _b, rest = __rest(_a, ["limit"]);
|
|
42
|
-
var alerts = useAlerts_1.useAlerts().alerts;
|
|
42
|
+
var alerts = (0, useAlerts_1.useAlerts)().alerts;
|
|
43
43
|
return (react_1.default.createElement(Stack_1.Stack, __assign({ spacing: 2 }, rest), takeRight(alerts, limit).map(function (alert, i) { return (react_1.default.createElement(Alert_1.Alert, { key: i, mode: alert.mode }, alert.body)); })));
|
|
44
44
|
};
|
|
45
45
|
exports.Alerts = Alerts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alerts.js","sourceRoot":"","sources":["../../src/Alerts/Alerts.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,kCAA6C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AK,OAAA,CAC1C,8BAAC,aAAK,IAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,IAC5B,KAAK,CAAC,IAAI,CACL,CACT,EAJ2C,CAI3C,CAAC,CACI,CACT,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,MAAM,UAYjB;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"}
|
package/dist/Alerts/useAlerts.js
CHANGED
|
@@ -45,9 +45,14 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
45
45
|
}
|
|
46
46
|
return ar;
|
|
47
47
|
};
|
|
48
|
-
var
|
|
49
|
-
for (var
|
|
50
|
-
|
|
48
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
49
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
50
|
+
if (ar || !(i in from)) {
|
|
51
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
52
|
+
ar[i] = from[i];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
51
56
|
};
|
|
52
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
58
|
exports.useAlerts = exports.AlertsProvider = exports.AlertsContext = void 0;
|
|
@@ -56,39 +61,39 @@ var generateId_1 = require("../util/generateId");
|
|
|
56
61
|
var reducer = function (state, action) {
|
|
57
62
|
switch (action.type) {
|
|
58
63
|
case "NOTIFICATION":
|
|
59
|
-
return __assign(__assign({}, state), { alerts:
|
|
64
|
+
return __assign(__assign({}, state), { alerts: __spreadArray(__spreadArray([], __read(state.alerts), false), [
|
|
60
65
|
__assign({ mode: "notification" }, action.payload),
|
|
61
|
-
]) });
|
|
66
|
+
], false) });
|
|
62
67
|
case "ERROR":
|
|
63
|
-
return __assign(__assign({}, state), { alerts:
|
|
68
|
+
return __assign(__assign({}, state), { alerts: __spreadArray(__spreadArray([], __read(state.alerts), false), [
|
|
64
69
|
__assign({ mode: "error" }, action.payload),
|
|
65
|
-
]) });
|
|
70
|
+
], false) });
|
|
66
71
|
case "RETRACT":
|
|
67
72
|
return __assign(__assign({}, state), { alerts: state.alerts.filter(function (alert) { return alert.id !== action.payload.id; }) });
|
|
68
73
|
}
|
|
69
74
|
};
|
|
70
|
-
exports.AlertsContext = react_1.createContext({
|
|
75
|
+
exports.AlertsContext = (0, react_1.createContext)({
|
|
71
76
|
state: { alerts: [] },
|
|
72
77
|
sendNotification: function () { },
|
|
73
78
|
sendError: function () { },
|
|
74
79
|
});
|
|
75
80
|
var AlertsProvider = function (_a) {
|
|
76
81
|
var children = _a.children;
|
|
77
|
-
var _b = __read(react_1.useReducer(reducer, { alerts: [] }), 2), state = _b[0], dispatch = _b[1];
|
|
78
|
-
var timeouts = react_1.useRef([]);
|
|
79
|
-
var sendNotification = react_1.useCallback(function (_a) {
|
|
82
|
+
var _b = __read((0, react_1.useReducer)(reducer, { alerts: [] }), 2), state = _b[0], dispatch = _b[1];
|
|
83
|
+
var timeouts = (0, react_1.useRef)([]);
|
|
84
|
+
var sendNotification = (0, react_1.useCallback)(function (_a) {
|
|
80
85
|
var body = _a.body, _b = _a.ttl, ttl = _b === void 0 ? 2500 : _b;
|
|
81
|
-
var id = generateId_1.generateId();
|
|
86
|
+
var id = (0, generateId_1.generateId)();
|
|
82
87
|
dispatch({ type: "NOTIFICATION", payload: { id: id, body: body } });
|
|
83
88
|
timeouts.current.push(window.setTimeout(function () { return dispatch({ type: "RETRACT", payload: { id: id } }); }, ttl));
|
|
84
89
|
}, []);
|
|
85
|
-
var sendError = react_1.useCallback(function (_a) {
|
|
90
|
+
var sendError = (0, react_1.useCallback)(function (_a) {
|
|
86
91
|
var body = _a.body, _b = _a.ttl, ttl = _b === void 0 ? 5000 : _b;
|
|
87
|
-
var id = generateId_1.generateId();
|
|
92
|
+
var id = (0, generateId_1.generateId)();
|
|
88
93
|
dispatch({ type: "ERROR", payload: { id: id, body: body } });
|
|
89
94
|
timeouts.current.push(window.setTimeout(function () { return dispatch({ type: "RETRACT", payload: { id: id } }); }, ttl));
|
|
90
95
|
}, []);
|
|
91
|
-
react_1.useEffect(function () {
|
|
96
|
+
(0, react_1.useEffect)(function () {
|
|
92
97
|
var handles = timeouts.current;
|
|
93
98
|
return function () {
|
|
94
99
|
handles.map(clearTimeout);
|
|
@@ -98,7 +103,7 @@ var AlertsProvider = function (_a) {
|
|
|
98
103
|
};
|
|
99
104
|
exports.AlertsProvider = AlertsProvider;
|
|
100
105
|
var useAlerts = function () {
|
|
101
|
-
var _a = react_1.useContext(exports.AlertsContext), alerts = _a.state.alerts, sendNotification = _a.sendNotification, sendError = _a.sendError;
|
|
106
|
+
var _a = (0, react_1.useContext)(exports.AlertsContext), alerts = _a.state.alerts, sendNotification = _a.sendNotification, sendError = _a.sendError;
|
|
102
107
|
return { alerts: alerts, sendNotification: sendNotification, sendError: sendError };
|
|
103
108
|
};
|
|
104
109
|
exports.useAlerts = useAlerts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAlerts.js","sourceRoot":"","sources":["../../src/Alerts/useAlerts.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAlerts.js","sourceRoot":"","sources":["../../src/Alerts/useAlerts.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAOe;AACf,iDAAgD;AAmBhD,IAAM,OAAO,GAAG,UAAC,KAAY,EAAE,MAAc;IAC3C,QAAQ,MAAM,CAAC,IAAI,EAAE;QACnB,KAAK,cAAc;YACjB,6BACK,KAAK,KACR,MAAM,yCACD,KAAK,CAAC,MAAM;+BAEb,IAAI,EAAE,cAAc,IACjB,MAAM,CAAC,OAAO;6BAGrB;QACJ,KAAK,OAAO;YACV,6BACK,KAAK,KACR,MAAM,yCACD,KAAK,CAAC,MAAM;+BAEb,IAAI,EAAE,OAAO,IACV,MA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
|
33
33
|
if ("maxWidth" in args && args.maxWidth === "100%") {
|
|
34
34
|
return {
|
|
35
35
|
maxWidth: "100%",
|
|
36
|
-
paddingBottom: proportional_scale_1.paddingBottom({
|
|
36
|
+
paddingBottom: (0, proportional_scale_1.paddingBottom)({
|
|
37
37
|
width: args.aspectWidth,
|
|
38
38
|
height: args.aspectHeight,
|
|
39
39
|
}),
|
|
@@ -41,9 +41,9 @@ var responsiveScale = function (args) {
|
|
|
41
41
|
}
|
|
42
42
|
var width = args.aspectWidth, height = args.aspectHeight, rest = __rest(args, ["aspectWidth", "aspectHeight"]);
|
|
43
43
|
// @ts-ignore
|
|
44
|
-
var scaled = proportional_scale_1.scale(__assign({ width: width, height: height }, rest));
|
|
44
|
+
var scaled = (0, proportional_scale_1.scale)(__assign({ width: width, height: height }, rest));
|
|
45
45
|
return {
|
|
46
|
-
maxWidth: scaled.width
|
|
46
|
+
maxWidth: "".concat(scaled.width, "px"),
|
|
47
47
|
paddingBottom: scaled.paddingBottom,
|
|
48
48
|
};
|
|
49
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AspectRatioBox.js","sourceRoot":"","sources":["../../src/AspectRatioBox/AspectRatioBox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,yDAA0D;AAC1D,8BAAuC;AAavC,IAAM,eAAe,GAAG,UAAC,IAAsC;IAC7D,IAAI,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,MAAM,EAAE;QAClD,OAAO;YACL,QAAQ,EAAE,MAAM;YAChB,aAAa,EAAE,kCAAa,
|
|
1
|
+
{"version":3,"file":"AspectRatioBox.js","sourceRoot":"","sources":["../../src/AspectRatioBox/AspectRatioBox.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,yDAA0D;AAC1D,8BAAuC;AAavC,IAAM,eAAe,GAAG,UAAC,I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I,EAAE,CAAC,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,IACjE,QAAQ,CACL,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AA5BW,QAAA,cAAc,kBA4BzB;AAEF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC"}
|
package/dist/Box/Box.d.ts
CHANGED
|
@@ -11,4 +11,6 @@ export declare type BoxProps = BorderProps & TypographyProps & BoxSpatialProps &
|
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
};
|
|
13
13
|
export declare const boxMixin: import("styled-system").styleFn;
|
|
14
|
-
export declare const Box: import("styled-components").StyledComponent<"div", any,
|
|
14
|
+
export declare const Box: import("styled-components").StyledComponent<"div", any, BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & TextColorProps & TransitionProps & {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}, never>;
|
package/dist/Box/Box.js
CHANGED
|
@@ -10,13 +10,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.Box = exports.boxMixin = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
12
|
var styled_system_1 = require("styled-system");
|
|
13
|
-
var textColor = styled_system_1.style({
|
|
13
|
+
var textColor = (0, styled_system_1.style)({
|
|
14
14
|
prop: "textColor",
|
|
15
15
|
cssProperty: "color",
|
|
16
16
|
key: "colors",
|
|
17
17
|
});
|
|
18
|
-
var transition = styled_system_1.system({ transition: true });
|
|
19
|
-
exports.boxMixin = styled_system_1.compose(styled_system_1.border, styled_system_1.flexbox, styled_system_1.space, styled_system_1.typography, styled_system_1.position, styled_system_1.layout, styled_system_1.color, textColor, transition);
|
|
18
|
+
var transition = (0, styled_system_1.system)({ transition: true });
|
|
19
|
+
exports.boxMixin = (0, styled_system_1.compose)(styled_system_1.border, styled_system_1.flexbox, styled_system_1.space, styled_system_1.typography, styled_system_1.position, styled_system_1.layout, styled_system_1.color, textColor, transition);
|
|
20
20
|
exports.Box = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), exports.boxMixin);
|
|
21
21
|
exports.Box.defaultProps = {
|
|
22
22
|
fontFamily: "body",
|
package/dist/Box/Box.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.js","sourceRoot":"","sources":["../../src/Box/Box.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AACvC,+CAmBuB;AAwBvB,IAAM,SAAS,GAAG,qBAAK,
|
|
1
|
+
{"version":3,"file":"Box.js","sourceRoot":"","sources":["../../src/Box/Box.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AACvC,+CAmBuB;AAwBvB,IAAM,SAAS,GAAG,IAAA,qBAAK,EAAC;IACtB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,OAAO;IACpB,GAAG,EAAE,QAAQ;CACd,CAAC,CAAC;AAEH,IAAM,UAAU,GAAG,IAAA,sBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;AAEnC,QAAA,QAAQ,GAAG,IAAA,uBAAO,EAC7B,sBAAM,EACN,uBAAO,EACP,qBAAK,EACL,0BAAU,EACV,wBAAQ,EACR,sBAAM,EACN,qBAAK,EACL,SAAS,EACT,UAAU,CACX,CAAC;AAEW,QAAA,GAAG,GAAG,2BAAM,CAAC,GAAG,+EAAU,MACnC,EAAQ,IACX,KADG,gBAAQ,EACV;AAEF,WAAG,CAAC,YAAY,GAAG;IACjB,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,CAAC;CACd,CAAC"}
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ClickableProps } from "../Clickable";
|
|
2
3
|
export declare const BUTTON: {
|
|
3
4
|
display: string;
|
|
@@ -27,4 +28,11 @@ export declare const buttonSelectedMixin: import("styled-components").FlattenInt
|
|
|
27
28
|
export declare const buttonDisabledMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|
|
28
29
|
export declare const buttonHighlightedMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|
|
29
30
|
export declare const buttonMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<ButtonProps, any>>;
|
|
30
|
-
export declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
31
|
+
export declare const Button: import("styled-components").StyledComponent<"button", any, import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("..").TextColorProps & import("..").TransitionProps & {
|
|
32
|
+
children?: import("react").ReactNode;
|
|
33
|
+
} & {
|
|
34
|
+
focus?: boolean | undefined;
|
|
35
|
+
hover?: boolean | undefined;
|
|
36
|
+
selected?: boolean | undefined;
|
|
37
|
+
highlighted?: boolean | undefined;
|
|
38
|
+
}, never>;
|
package/dist/Button/Button.js
CHANGED
|
@@ -40,13 +40,12 @@ var theme_get_1 = require("@styled-system/theme-get");
|
|
|
40
40
|
var Clickable_1 = require("../Clickable");
|
|
41
41
|
var Cell_1 = require("../Cell");
|
|
42
42
|
exports.BUTTON = __assign(__assign({}, Cell_1.CELL), { display: "inline-flex", alignItems: "center", justifyContent: "center" });
|
|
43
|
-
exports.buttonHoverMixin = styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), theme_get_1.themeGet("colors.secondary"));
|
|
44
|
-
exports.buttonFocusMixin = styled_components_1.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n outline: 0;\n ", "\n"], ["\n outline: 0;\n ", "\n"])), Cell_1.cellFocusMixin);
|
|
45
|
-
exports.buttonSelectedMixin = styled_components_1.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n text-decoration: underline;\n color: ", ";\n border-color: ", ";\n"], ["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n text-decoration: underline;\n color: ", ";\n border-color: ", ";\n"])), theme_get_1.themeGet("space.1"), theme_get_1.themeGet("colors.primary"), theme_get_1.themeGet("colors.primary"), theme_get_1.themeGet("colors.tertiary"));
|
|
46
|
-
exports.buttonDisabledMixin = styled_components_1.css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: relative;\n color: ", ";\n border-color: ", ";\n pointer-events: none;\n cursor: default;\n z-index: -1;\n"], ["\n position: relative;\n color: ", ";\n border-color: ", ";\n pointer-events: none;\n cursor: default;\n z-index: -1;\n"])), theme_get_1.themeGet("colors.tertiary"), theme_get_1.themeGet("colors.tertiary"));
|
|
47
|
-
exports.buttonHighlightedMixin = styled_components_1.css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n &::before {\n content: \"\u2192\u00A0\";\n margin-left: -", ";\n }\n"], ["\n &::before {\n content: \"\u2192\\u00A0\";\n margin-left: -", ";\n }\n"])), theme_get_1.themeGet("space.3"));
|
|
48
|
-
exports.buttonMixin = styled_components_1.css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n cursor: pointer;\n transition: ", ", color 200ms ease;\n min-width: 0;\n user-select: none;\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:disabled {\n ", "\n }\n\n ", "\n\n ", "\n"], ["\n cursor: pointer;\n transition: ", ", color 200ms ease;\n min-width: 0;\n user-select: none;\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:disabled {\n ", "\n }\n\n ",
|
|
49
|
-
"\n\n ", "\n"])), Cell_1.CELL.transition, function (_a) {
|
|
43
|
+
exports.buttonHoverMixin = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), (0, theme_get_1.themeGet)("colors.secondary"));
|
|
44
|
+
exports.buttonFocusMixin = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n outline: 0;\n ", "\n"], ["\n outline: 0;\n ", "\n"])), Cell_1.cellFocusMixin);
|
|
45
|
+
exports.buttonSelectedMixin = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n text-decoration: underline;\n color: ", ";\n border-color: ", ";\n"], ["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n text-decoration: underline;\n color: ", ";\n border-color: ", ";\n"])), (0, theme_get_1.themeGet)("space.1"), (0, theme_get_1.themeGet)("colors.primary"), (0, theme_get_1.themeGet)("colors.primary"), (0, theme_get_1.themeGet)("colors.tertiary"));
|
|
46
|
+
exports.buttonDisabledMixin = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: relative;\n color: ", ";\n border-color: ", ";\n pointer-events: none;\n cursor: default;\n z-index: -1;\n"], ["\n position: relative;\n color: ", ";\n border-color: ", ";\n pointer-events: none;\n cursor: default;\n z-index: -1;\n"])), (0, theme_get_1.themeGet)("colors.tertiary"), (0, theme_get_1.themeGet)("colors.tertiary"));
|
|
47
|
+
exports.buttonHighlightedMixin = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n &::before {\n content: \"\u2192\u00A0\";\n margin-left: -", ";\n }\n"], ["\n &::before {\n content: \"\u2192\\u00A0\";\n margin-left: -", ";\n }\n"])), (0, theme_get_1.themeGet)("space.3"));
|
|
48
|
+
exports.buttonMixin = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n cursor: pointer;\n transition: ", ", color 200ms ease;\n min-width: 0;\n user-select: none;\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:disabled {\n ", "\n }\n\n ", "\n\n ", "\n"], ["\n cursor: pointer;\n transition: ", ", color 200ms ease;\n min-width: 0;\n user-select: none;\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:disabled {\n ", "\n }\n\n ", "\n\n ", "\n"])), Cell_1.CELL.transition, function (_a) {
|
|
50
49
|
var hover = _a.hover;
|
|
51
50
|
return hover && exports.buttonHoverMixin;
|
|
52
51
|
}, exports.buttonHoverMixin, function (_a) {
|
|
@@ -57,12 +56,12 @@ exports.buttonMixin = styled_components_1.css(templateObject_7 || (templateObjec
|
|
|
57
56
|
return disabled && exports.buttonDisabledMixin;
|
|
58
57
|
}, exports.buttonDisabledMixin, function (_a) {
|
|
59
58
|
var selected = _a.selected;
|
|
60
|
-
return selected && styled_components_1.css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n &:focus {\n ", "\n }\n &:disabled {\n ", "\n }\n "], ["\n ", "\n &:focus {\n ", "\n }\n &:disabled {\n ", "\n }\n "])), exports.buttonSelectedMixin, exports.buttonSelectedMixin, exports.buttonSelectedMixin);
|
|
59
|
+
return selected && (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n &:focus {\n ", "\n }\n &:disabled {\n ", "\n }\n "], ["\n ", "\n &:focus {\n ", "\n }\n &:disabled {\n ", "\n }\n "])), exports.buttonSelectedMixin, exports.buttonSelectedMixin, exports.buttonSelectedMixin);
|
|
61
60
|
}, function (_a) {
|
|
62
61
|
var highlighted = _a.highlighted;
|
|
63
62
|
return highlighted && exports.buttonHighlightedMixin;
|
|
64
63
|
});
|
|
65
|
-
exports.Button = styled_components_1.default(Clickable_1.Clickable)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), exports.buttonMixin);
|
|
64
|
+
exports.Button = (0, styled_components_1.default)(Clickable_1.Clickable)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), exports.buttonMixin);
|
|
66
65
|
exports.Button.defaultProps = __assign({}, exports.BUTTON);
|
|
67
66
|
exports.Button.displayName = "Button";
|
|
68
67
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/Button/Button.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,0CAAyD;AACzD,gCAA+C;AAElC,QAAA,MAAM,yBACd,WAAI,KACP,OAAO,EAAE,aAAa,EACtB,UAAU,EAAE,QAAQ,EACpB,cAAc,EAAE,QAAQ,IACx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AI,CAAC,UAAU,EAI3B,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,IAAI,wBAAgB;AAAzB,CAAyB,EAEtC,wBAAgB,EAGlB,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,IAAI,wBAAgB;AAAzB,CAAyB,EAEtC,wBAAgB,EAGlB,UAAC,EAAY;QAAV,QAAQ,cAAA;IAAO,OAAA,QAAQ,IAAI,2BAAmB;AAA/B,CAA+B,EAE/C,2BAAmB,EAGrB,UAAC,EAAY;QAAV,QAAQ,cAAA;IACX,OAAA,QAAQ,QACR,uBAAG,2KAAA,UACC,EAAmB,6BAEjB,EAAmB,yCAGnB,EAAmB,iBAExB,KAPG,2BAAmB,EAEjB,2BAAmB,EAGnB,2BAAmB,CAExB;AATD,CASC,EAED,UAAC,EAAe;QAAb,WAAW,iBAAA;IAAO,OAAA,WAAW,IAAI,8BAAsB;AAArC,CAAqC,EAC5D;AAEW,QAAA,MAAM,GAAG,IAAA,2BAAM,EAAC,qBAAS,CAAC,+EAAa,MAChD,EAAW,IACd,KADG,mBAAW,EACb;AAEF,cAAM,CAAC,YAAY,gBAAQ,cAAM,CAAE,CAAC;AAEpC,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"}
|
package/dist/Caret/Caret.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BoxProps } from "../Box";
|
|
2
3
|
export declare type CaretProps = BoxProps & {
|
|
3
4
|
direction?: "up" | "down" | "left" | "right";
|
|
4
5
|
size?: number;
|
|
5
6
|
};
|
|
6
|
-
export declare const Caret: import("styled-components").StyledComponent<"div", any,
|
|
7
|
+
export declare const Caret: import("styled-components").StyledComponent<"div", any, import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("../Box").TextColorProps & import("../Box").TransitionProps & {
|
|
8
|
+
children?: import("react").ReactNode;
|
|
9
|
+
} & {
|
|
10
|
+
direction?: "left" | "right" | "up" | "down" | undefined;
|
|
11
|
+
size?: number | undefined;
|
|
12
|
+
}, never>;
|
package/dist/Caret/Caret.js
CHANGED
|
@@ -27,18 +27,17 @@ exports.Caret = void 0;
|
|
|
27
27
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
28
28
|
var theme_get_1 = require("@styled-system/theme-get");
|
|
29
29
|
var Box_1 = require("../Box");
|
|
30
|
-
exports.Caret = styled_components_1.default(Box_1.Box)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n width: ", ";\n height: ", ";\n flex-shrink: 0;\n\n &::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 70%;\n height: 70%;\n background-color: transparent;\n transform: translate(-50%, -50%) rotate(45deg);\n\n ", "\n }\n"], ["\n position: relative;\n width: ", ";\n height: ", ";\n flex-shrink: 0;\n\n &::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 70%;\n height: 70%;\n background-color: transparent;\n transform: translate(-50%, -50%) rotate(45deg);\n\n ",
|
|
31
|
-
"\n }\n"])), function (props) { return theme_get_1.themeGet("space." + props.size)(props); }, function (props) { return theme_get_1.themeGet("space." + props.size)(props); }, function (_a) {
|
|
30
|
+
exports.Caret = (0, styled_components_1.default)(Box_1.Box)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n width: ", ";\n height: ", ";\n flex-shrink: 0;\n\n &::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 70%;\n height: 70%;\n background-color: transparent;\n transform: translate(-50%, -50%) rotate(45deg);\n\n ", "\n }\n"], ["\n position: relative;\n width: ", ";\n height: ", ";\n flex-shrink: 0;\n\n &::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 70%;\n height: 70%;\n background-color: transparent;\n transform: translate(-50%, -50%) rotate(45deg);\n\n ", "\n }\n"])), function (props) { return (0, theme_get_1.themeGet)("space.".concat(props.size))(props); }, function (props) { return (0, theme_get_1.themeGet)("space.".concat(props.size))(props); }, function (_a) {
|
|
32
31
|
var direction = _a.direction;
|
|
33
32
|
switch (direction) {
|
|
34
33
|
case "up":
|
|
35
|
-
return styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-top: 1px solid;\n border-left: 1px solid;\n margin-top: 25%;\n "], ["\n border-top: 1px solid;\n border-left: 1px solid;\n margin-top: 25%;\n "])));
|
|
34
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-top: 1px solid;\n border-left: 1px solid;\n margin-top: 25%;\n "], ["\n border-top: 1px solid;\n border-left: 1px solid;\n margin-top: 25%;\n "])));
|
|
36
35
|
case "down":
|
|
37
|
-
return styled_components_1.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-right: 1px solid;\n border-bottom: 1px solid;\n margin-top: -25%;\n "], ["\n border-right: 1px solid;\n border-bottom: 1px solid;\n margin-top: -25%;\n "])));
|
|
36
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-right: 1px solid;\n border-bottom: 1px solid;\n margin-top: -25%;\n "], ["\n border-right: 1px solid;\n border-bottom: 1px solid;\n margin-top: -25%;\n "])));
|
|
38
37
|
case "left":
|
|
39
|
-
return styled_components_1.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-bottom: 1px solid;\n border-left: 1px solid;\n margin-left: 25%;\n "], ["\n border-bottom: 1px solid;\n border-left: 1px solid;\n margin-left: 25%;\n "])));
|
|
38
|
+
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-bottom: 1px solid;\n border-left: 1px solid;\n margin-left: 25%;\n "], ["\n border-bottom: 1px solid;\n border-left: 1px solid;\n margin-left: 25%;\n "])));
|
|
40
39
|
case "right":
|
|
41
|
-
return styled_components_1.css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-top: 1px solid;\n border-right: 1px solid;\n margin-left: -25%;\n "], ["\n border-top: 1px solid;\n border-right: 1px solid;\n margin-left: -25%;\n "])));
|
|
40
|
+
return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-top: 1px solid;\n border-right: 1px solid;\n margin-left: -25%;\n "], ["\n border-top: 1px solid;\n border-right: 1px solid;\n margin-left: -25%;\n "])));
|
|
42
41
|
}
|
|
43
42
|
});
|
|
44
43
|
exports.Caret.defaultProps = {
|
package/dist/Caret/Caret.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Caret.js","sourceRoot":"","sources":["../../src/Caret/Caret.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,8BAAuC;AAO1B,QAAA,KAAK,GAAG,2BAAM,
|
|
1
|
+
{"version":3,"file":"Caret.js","sourceRoot":"","sources":["../../src/Caret/Caret.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,8BAAuC;AAO1B,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,SAAG,CAAC,gZAAY,oCAEjC,EAAiD,eAChD,EAAiD,2QAcvD,EA2BD,SAEJ,KA5CU,UAAC,KAAK,IAAK,OAAA,IAAA,oBAAQ,EAAC,gBAAS,KAAK,CAAC,IAAI,CAAE,CAAC,CAAC,KAAK,CAAC,EAAtC,CAAsC,EAChD,UAAC,KAAK,IAAK,OAAA,IAAA,oBAAQ,EAAC,gBAAS,KAAK,CAAC,IAAI,CAAE,CAAC,CAAC,KAAK,CAAC,EAAtC,CAAsC,EAcvD,UAAC,EAAa;QAAX,SAAS,eAAA;IACZ,QAAQ,SAAS,EAAE;QACjB,KAAK,IAAI;YACP,WAAO,uBAAG,yLAAA,qHAIT,KAAC;QACJ,KAAK,MAAM;YACT,WAAO,uBAAG,8LAAA,0HAIT,KAAC;QACJ,KAAK,MAAM;YACT,WAAO,uBAAG,6LAAA,yHAIT,KAAC;QACJ,KAAK,OAAO;YACV,WAAO,uBAAG,4LAAA,wHAIT,KAAC;KACL;AACH,CAAC,EAEH;AAEF,aAAK,CAAC,YAAY,GAAG;IACnB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC;CACR,CAAC"}
|
package/dist/Cell/Cell.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BoxProps } from "../Box";
|
|
2
3
|
export declare type CellProps = BoxProps;
|
|
3
4
|
export declare const CELL: {
|
|
@@ -16,4 +17,6 @@ export declare const CELL: {
|
|
|
16
17
|
transition: string;
|
|
17
18
|
};
|
|
18
19
|
export declare const cellFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|
|
19
|
-
export declare const Cell: import("styled-components").StyledComponent<"div", any,
|
|
20
|
+
export declare const Cell: import("styled-components").StyledComponent<"div", any, import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("../Box").TextColorProps & import("../Box").TransitionProps & {
|
|
21
|
+
children?: import("react").ReactNode;
|
|
22
|
+
}, never>;
|
package/dist/Cell/Cell.js
CHANGED
|
@@ -53,8 +53,8 @@ exports.CELL = {
|
|
|
53
53
|
py: 4,
|
|
54
54
|
transition: "box-shadow 250ms ease",
|
|
55
55
|
};
|
|
56
|
-
exports.cellFocusMixin = styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n"], ["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n"])), theme_get_1.themeGet("space.1"), theme_get_1.themeGet("colors.accent"));
|
|
57
|
-
exports.Cell = styled_components_1.default(Box_1.Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &:focus {\n ", "\n }\n"], ["\n &:focus {\n ", "\n }\n"])), exports.cellFocusMixin);
|
|
56
|
+
exports.cellFocusMixin = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n"], ["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n"])), (0, theme_get_1.themeGet)("space.1"), (0, theme_get_1.themeGet)("colors.accent"));
|
|
57
|
+
exports.Cell = (0, styled_components_1.default)(Box_1.Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &:focus {\n ", "\n }\n"], ["\n &:focus {\n ", "\n }\n"])), exports.cellFocusMixin);
|
|
58
58
|
exports.Cell.defaultProps = __assign({}, exports.CELL);
|
|
59
59
|
exports.Cell.displayName = "Cell";
|
|
60
60
|
var templateObject_1, templateObject_2;
|
package/dist/Cell/Cell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.js","sourceRoot":"","sources":["../../src/Cell/Cell.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,8BAAuC;AAI1B,QAAA,IAAI,GAAG;IAClB,UAAU,EAAE,QAAQ;IACpB,eAAe,EAAE,YAAY;IAC7B,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,OAAO;IACpB,WAAW,EAAE,KAAK;IAClB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACnB,UAAU,EAAE,CAAC;IACb,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,UAAU,EAAE,uBAAuB;CACpC,CAAC;AAEW,QAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"Cell.js","sourceRoot":"","sources":["../../src/Cell/Cell.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,8BAAuC;AAI1B,QAAA,IAAI,GAAG;IAClB,UAAU,EAAE,QAAQ;IACpB,eAAe,EAAE,YAAY;IAC7B,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,OAAO;IACpB,WAAW,EAAE,KAAK;IAClB,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACnB,UAAU,EAAE,CAAC;IACb,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,UAAU,EAAE,uBAAuB;CACpC,CAAC;AAEW,QAAA,cAAc,OAAG,uBAAG,6HAAA,6CAEL,EAAmB,GAAI,EAAyB,KAC3E,KAD2B,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAAI,IAAA,oBAAQ,EAAC,eAAe,CAAC,EAC1E;AAEW,QAAA,IAAI,GAAG,IAAA,2BAAM,EAAC,SAAG,CAAC,mGAAW,qBAEpC,EAAc,SAEnB,KAFK,sBAAc,EAElB;AAEF,YAAI,CAAC,YAAY,gBAAQ,YAAI,CAAE,CAAC;AAEhC,YAAI,CAAC,WAAW,GAAG,MAAM,CAAC"}
|
package/dist/Clear/Clear.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { RemoveProps } from "../Remove";
|
|
2
3
|
export declare type ClearProps = RemoveProps;
|
|
3
4
|
export declare const clearHoverMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|
|
4
5
|
export declare const clearFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
|
|
5
|
-
export declare const Clear: import("styled-components").StyledComponent<"button", any,
|
|
6
|
+
export declare const Clear: import("styled-components").StyledComponent<"button", any, import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("..").TextColorProps & import("..").TransitionProps & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
} & {
|
|
9
|
+
hover?: boolean | undefined;
|
|
10
|
+
focus?: boolean | undefined;
|
|
11
|
+
}, never>;
|
package/dist/Clear/Clear.js
CHANGED
|
@@ -27,9 +27,9 @@ exports.Clear = exports.clearFocusMixin = exports.clearHoverMixin = void 0;
|
|
|
27
27
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
28
28
|
var theme_get_1 = require("@styled-system/theme-get");
|
|
29
29
|
var Remove_1 = require("../Remove");
|
|
30
|
-
exports.clearHoverMixin = styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n"], ["\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n"])), theme_get_1.themeGet("colors.tertiary"), theme_get_1.themeGet("colors.primary"));
|
|
31
|
-
exports.clearFocusMixin = styled_components_1.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &,\n &:hover {\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n }\n"], ["\n &,\n &:hover {\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n }\n"])), theme_get_1.themeGet("colors.tertiary"), theme_get_1.themeGet("colors.primary"));
|
|
32
|
-
exports.Clear = styled_components_1.default(Remove_1.Remove)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n min-width: ", ";\n min-height: ", ";\n border-radius: 50%;\n background-color: ", ";\n transition: background-color 200ms;\n\n &::before,\n &::after {\n width: ", ";\n height: 1px;\n background-color: ", ";\n }\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"], ["\n min-width: ", ";\n min-height: ", ";\n border-radius: 50%;\n background-color: ", ";\n transition: background-color 200ms;\n\n &::before,\n &::after {\n width: ", ";\n height: 1px;\n background-color: ", ";\n }\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"])), theme_get_1.themeGet("space.6"), theme_get_1.themeGet("space.6"), theme_get_1.themeGet("colors.hint"), theme_get_1.themeGet("space.4"), theme_get_1.themeGet("colors.secondary"), function (_a) {
|
|
30
|
+
exports.clearHoverMixin = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n"], ["\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n"])), (0, theme_get_1.themeGet)("colors.tertiary"), (0, theme_get_1.themeGet)("colors.primary"));
|
|
31
|
+
exports.clearFocusMixin = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &,\n &:hover {\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n }\n"], ["\n &,\n &:hover {\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n }\n"])), (0, theme_get_1.themeGet)("colors.tertiary"), (0, theme_get_1.themeGet)("colors.primary"));
|
|
32
|
+
exports.Clear = (0, styled_components_1.default)(Remove_1.Remove)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n min-width: ", ";\n min-height: ", ";\n border-radius: 50%;\n background-color: ", ";\n transition: background-color 200ms;\n\n &::before,\n &::after {\n width: ", ";\n height: 1px;\n background-color: ", ";\n }\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"], ["\n min-width: ", ";\n min-height: ", ";\n border-radius: 50%;\n background-color: ", ";\n transition: background-color 200ms;\n\n &::before,\n &::after {\n width: ", ";\n height: 1px;\n background-color: ", ";\n }\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"])), (0, theme_get_1.themeGet)("space.6"), (0, theme_get_1.themeGet)("space.6"), (0, theme_get_1.themeGet)("colors.hint"), (0, theme_get_1.themeGet)("space.4"), (0, theme_get_1.themeGet)("colors.secondary"), function (_a) {
|
|
33
33
|
var hover = _a.hover;
|
|
34
34
|
return hover && exports.clearHoverMixin;
|
|
35
35
|
}, exports.clearHoverMixin, function (_a) {
|
package/dist/Clear/Clear.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clear.js","sourceRoot":"","sources":["../../src/Clear/Clear.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,oCAAgD;AAInC,QAAA,eAAe,
|
|
1
|
+
{"version":3,"file":"Clear.js","sourceRoot":"","sources":["../../src/Clear/Clear.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,oCAAgD;AAInC,QAAA,eAAe,OAAG,uBAAG,mKAAA,wBACZ,EAA2B,yDAIzB,EAA0B,UAEjD,KANqB,IAAA,oBAAQ,EAAC,iBAAiB,CAAC,EAIzB,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,EAEhD;AAEW,QAAA,eAAe,OAAG,uBAAG,qMAAA,6CAGV,EAA2B,+DAIzB,EAA0B,iBAGnD,KAPuB,IAAA,oBAAQ,EAAC,iBAAiB,CAAC,EAIzB,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,EAGlD;AAEW,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,eAAM,CAAC,yXAAA,iBACpB,EAAmB,mBAClB,EAAmB,gDAEb,EAAuB,qFAKhC,EAAmB,6CAER,EAA4B,cAGhD,EAAuC,qBAErC,EAAe,aAGjB,EAAuC,qBAErC,EAAe,SAEpB,KAtBc,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAClB,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAEb,IAAA,oBAAQ,EAAC,aAAa,CAAC,EAKhC,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAER,IAAA,oBAAQ,EAAC,kBAAkB,CAAC,EAGhD,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,IAAI,uBAAe;AAAxB,CAAwB,EAErC,uBAAe,EAGjB,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,IAAI,uBAAe;AAAxB,CAAwB,EAErC,uBAAe,EAEnB"}
|
|
@@ -6,7 +6,7 @@ export declare type ClearableInputProps = BoxSpatialProps & Omit<InputProps, "on
|
|
|
6
6
|
onClear?(): void;
|
|
7
7
|
value?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const ClearableInput: React.ForwardRefExoticComponent<import("styled-system").FlexboxProps<Required<import("styled-system").Theme<
|
|
9
|
+
export declare const ClearableInput: React.ForwardRefExoticComponent<import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<InputProps, "value" | "onChange"> & {
|
|
10
10
|
onChange?(value: string): void;
|
|
11
11
|
onClear?(): void;
|
|
12
12
|
value?: string | undefined;
|
|
@@ -68,7 +68,7 @@ var Box_1 = require("../Box");
|
|
|
68
68
|
var Clear_1 = require("../Clear");
|
|
69
69
|
var Cell_1 = require("../Cell");
|
|
70
70
|
var theme_1 = require("../theme");
|
|
71
|
-
var CLEARABLE_BUTTON_WITH_MARGINS = ""
|
|
71
|
+
var CLEARABLE_BUTTON_WITH_MARGINS = "".concat(parseFloat((0, theme_1.space)(4)) * 2 + parseFloat((0, theme_1.space)(6))).concat(theme_1.SPACE_SCALE_UNIT);
|
|
72
72
|
exports.ClearableInput = react_1.default.forwardRef(function (_a, forwardedRef) {
|
|
73
73
|
var m = _a.m, mt = _a.mt, mr = _a.mr, mb = _a.mb, ml = _a.ml, minWidth = _a.minWidth, width = _a.width, flex = _a.flex, flexGrow = _a.flexGrow, flexShrink = _a.flexShrink, flexBasis = _a.flexBasis,
|
|
74
74
|
// Above are spatial props for wrapper, remainder
|
|
@@ -77,16 +77,16 @@ exports.ClearableInput = react_1.default.forwardRef(function (_a, forwardedRef)
|
|
|
77
77
|
// Above are spatial props for wrapper, remainder
|
|
78
78
|
// is split off into input
|
|
79
79
|
value = _b === void 0 ? "" : _b, onChange = _a.onChange, onClear = _a.onClear, rest = __rest(_a, ["m", "mt", "mr", "mb", "ml", "minWidth", "width", "flex", "flexGrow", "flexShrink", "flexBasis", "value", "onChange", "onClear"]);
|
|
80
|
-
var ref = react_1.useRef(null);
|
|
81
|
-
var _c = __read(react_1.useState(value), 2), controlledValue = _c[0], setValue = _c[1];
|
|
82
|
-
var handleClick = react_1.useCallback(function () {
|
|
80
|
+
var ref = (0, react_1.useRef)(null);
|
|
81
|
+
var _c = __read((0, react_1.useState)(value), 2), controlledValue = _c[0], setValue = _c[1];
|
|
82
|
+
var handleClick = (0, react_1.useCallback)(function () {
|
|
83
83
|
setValue("");
|
|
84
84
|
onClear && onClear();
|
|
85
85
|
onChange && onChange("");
|
|
86
86
|
if (ref.current)
|
|
87
87
|
ref.current.focus();
|
|
88
88
|
}, [onChange, onClear]);
|
|
89
|
-
var handleChange = react_1.useCallback(function (_a) {
|
|
89
|
+
var handleChange = (0, react_1.useCallback)(function (_a) {
|
|
90
90
|
var value = _a.currentTarget.value;
|
|
91
91
|
setValue(value);
|
|
92
92
|
onChange && onChange(value);
|
|
@@ -104,7 +104,7 @@ exports.ClearableInput = react_1.default.forwardRef(function (_a, forwardedRef)
|
|
|
104
104
|
flexShrink: flexShrink,
|
|
105
105
|
flexBasis: flexBasis,
|
|
106
106
|
}),
|
|
107
|
-
react_1.default.createElement(Input_1.Input, __assign({}, rest, { ref: compose_react_refs_1.default(ref, forwardedRef), width: "100%", value: controlledValue, onChange: handleChange, px: 0, pl: Cell_1.CELL.px, pr: CLEARABLE_BUTTON_WITH_MARGINS })),
|
|
107
|
+
react_1.default.createElement(Input_1.Input, __assign({}, rest, { ref: (0, compose_react_refs_1.default)(ref, forwardedRef), width: "100%", value: controlledValue, onChange: handleChange, px: 0, pl: Cell_1.CELL.px, pr: CLEARABLE_BUTTON_WITH_MARGINS })),
|
|
108
108
|
controlledValue && (react_1.default.createElement(Clear_1.Clear, { onClick: handleClick, position: "absolute", top: "50%", right: 0, mx: 4, backgroundColor: "hint", borderRadius: "50%", type: "reset", style: { transform: "translateY(-50%)" } }))));
|
|
109
109
|
});
|
|
110
110
|
exports.ClearableInput.displayName = "ClearableInput";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClearableInput.js","sourceRoot":"","sources":["../../src/ClearableInput/ClearableInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6D;AAC7D,kFAAqD;AACrD,kCAA6C;AAC7C,8BAA8C;AAC9C,kCAAiC;AACjC,gCAA+B;AAC/B,kCAAmD;AAEnD,IAAM,6BAA6B,GAAG,
|
|
1
|
+
{"version":3,"file":"ClearableInput.js","sourceRoot":"","sources":["../../src/ClearableInput/ClearableInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6D;AAC7D,kFAAqD;AACrD,kCAA6C;AAC7C,8BAA8C;AAC9C,kCAAiC;AACjC,gCAA+B;AAC/B,kCAAmD;AAEnD,IAAM,6BAA6B,GAAG,UACpC,UAAU,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,SAC9C,wBAAgB,CAAE,CAAC;AAST,QAAA,cAAc,GAAG,eAAK,CAAC,UAAU,CAC5C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AAA;QACF,QAAQ,UAAA;QACR,KAAK,OAAA;QACL,IAAI,MAAA;QACJ,QAAQ,UAAA;QACR,UAAU,YAAA;QACV,SAAS,WAAA;KACV;QAED,8BAAC,aAAK,eACA,IAAI,IACR,GAAG,EAAE,IAAA,4BAAW,EAAC,GAAG,EAAE,YAAY,CAAC,EACnC,KAAK,EAAC,MAAM,EACZ,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,YAAY,EACtB,EAAE,EAAE,CAAC,EACL,EAAE,EAAE,WAAI,CAAC,EAAE,EACX,EAAE,EAAE,6BAA6B,IACjC;QAED,eAAe,IAAI,CAClB,8BAAC,aAAK,IACJ,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAC,UAAU,EACnB,GAAG,EAAC,KAAK,EACT,KAAK,EAAE,CAAC,EACR,EAAE,EAAE,CAAC,EACL,eAAe,EAAC,MAAM,EACtB,YAAY,EAAC,KAAK,EAClB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,GACxC,CACH,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BoxProps } from "../Box";
|
|
3
3
|
export declare type ClickableProps = React.ButtonHTMLAttributes<HTMLButtonElement> & BoxProps;
|
|
4
|
-
export declare const Clickable: import("styled-components").StyledComponent<"button", any,
|
|
4
|
+
export declare const Clickable: import("styled-components").StyledComponent<"button", any, import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("../Box").TextColorProps & import("../Box").TransitionProps & {
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
}, never>;
|
|
@@ -69,13 +69,13 @@ var Mode;
|
|
|
69
69
|
})(Mode || (Mode = {}));
|
|
70
70
|
var useConfirm = function (_a) {
|
|
71
71
|
var onConfirm = _a.onConfirm, onCancel = _a.onCancel;
|
|
72
|
-
var _b = __read(react_1.useState(Mode.Resting), 2), mode = _b[0], setMode = _b[1];
|
|
73
|
-
var requestConfirmation = react_1.useCallback(function () { return setMode(Mode.Open); }, []);
|
|
74
|
-
var handleCancel = react_1.useCallback(function () {
|
|
72
|
+
var _b = __read((0, react_1.useState)(Mode.Resting), 2), mode = _b[0], setMode = _b[1];
|
|
73
|
+
var requestConfirmation = (0, react_1.useCallback)(function () { return setMode(Mode.Open); }, []);
|
|
74
|
+
var handleCancel = (0, react_1.useCallback)(function () {
|
|
75
75
|
setMode(Mode.Resting);
|
|
76
76
|
onCancel && onCancel();
|
|
77
77
|
}, [onCancel]);
|
|
78
|
-
var handleConfirm = react_1.useCallback(function () {
|
|
78
|
+
var handleConfirm = (0, react_1.useCallback)(function () {
|
|
79
79
|
setMode(Mode.Confirmed);
|
|
80
80
|
onConfirm();
|
|
81
81
|
}, [onConfirm]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConfirm.js","sourceRoot":"","sources":["../../src/Confirm/useConfirm.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CA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EAAE,CAAC;IACd,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,IAAM,YAAY,GAAG,UAAC,EAIU;QAH9B,IAAA,QAAQ,cAAA,EACL,IAAI,cAFa,YAGrB,CADQ;QAE4B,OAAA,CACnC,8DACG,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,CACrB,8BAAC,aAAK,aAAC,OAAO,EAAE,YAAY,EAAE,OAAO,UAAK,IAAI;YAC5C,8BAAC,iBAAO,IAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,IACtD,QAAQ,CACD,CACJ,CACT,CACA,CACJ,CAAA;KAAA,CAAC;IAEF,OAAO;QACL,YAAY,cAAA;QACZ,mBAAmB,qBAAA;QACnB,SAAS,EAAE,IAAI,KAAK,IAAI,CAAC,SAAS;KACnC,CAAC;AACJ,CAAC,CAAC;AApCW,QAAA,UAAU,cAoCrB"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BoxProps } from "../Box";
|
|
2
3
|
export declare type DividerProps = BoxProps;
|
|
3
|
-
export declare const Divider: import("styled-components").StyledComponent<"hr", any,
|
|
4
|
+
export declare const Divider: import("styled-components").StyledComponent<"hr", any, import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("../Box").TextColorProps & import("../Box").TransitionProps & {
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
}, never>;
|