reactbridge-sdk 0.2.8 → 0.2.10
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangeSelector.d.ts","sourceRoot":"","sources":["../../../src/components/reports/DateRangeSelector.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAoB,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,eAAe,CAAC;IAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"DateRangeSelector.d.ts","sourceRoot":"","sources":["../../../src/components/reports/DateRangeSelector.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAoB,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,eAAe,CAAC;IAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CA4C9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportLayout.d.ts","sourceRoot":"","sources":["../../../src/components/reports/ReportLayout.tsx"],"names":[],"mappings":"AAAA;;;GAGG;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AC"}
|
package/dist/index.esm.js
CHANGED
|
@@ -3027,15 +3027,17 @@ function useDateRange(defaultOption = "past-month") {
|
|
|
3027
3027
|
const DateRangeSelector = ({ selectedOption, onSelect, theme, }) => {
|
|
3028
3028
|
const options = DateRangeService.getAllOptions();
|
|
3029
3029
|
return (React.createElement("select", { value: selectedOption, onChange: (e) => onSelect(e.target.value), style: {
|
|
3030
|
-
padding: `${
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3030
|
+
padding: `${theme === null || theme === void 0 ? void 0 : theme.spacing.xs} ${theme === null || theme === void 0 ? void 0 : theme.spacing.sm}`,
|
|
3031
|
+
borderRadius: theme === null || theme === void 0 ? void 0 : theme.borderRadius,
|
|
3032
|
+
border: `1px solid ${theme === null || theme === void 0 ? void 0 : theme.colors.border}`,
|
|
3033
|
+
background: theme === null || theme === void 0 ? void 0 : theme.colors.surface,
|
|
3034
|
+
color: theme === null || theme === void 0 ? void 0 : theme.colors.text,
|
|
3035
|
+
fontSize: theme === null || theme === void 0 ? void 0 : theme.fontSizes.sm,
|
|
3036
|
+
fontWeight: 500,
|
|
3037
|
+
outline: "none",
|
|
3038
|
+
minWidth: 120,
|
|
3039
|
+
marginLeft: theme === null || theme === void 0 ? void 0 : theme.spacing.sm,
|
|
3037
3040
|
cursor: "pointer",
|
|
3038
|
-
transition: "border-color 0.2s ease, box-shadow 0.2s ease",
|
|
3039
3041
|
}, onFocus: (e) => {
|
|
3040
3042
|
e.currentTarget.style.borderColor =
|
|
3041
3043
|
(theme === null || theme === void 0 ? void 0 : theme.colors.primary) || "#1976d2";
|
|
@@ -3113,6 +3115,7 @@ const ReportLayout = ({ title, description, selectedDateRange, onDateRangeChange
|
|
|
3113
3115
|
display: "flex",
|
|
3114
3116
|
flexDirection: "column",
|
|
3115
3117
|
gap: (theme === null || theme === void 0 ? void 0 : theme.spacing.md) || "12px",
|
|
3118
|
+
padding: (theme === null || theme === void 0 ? void 0 : theme.spacing.md) || "12px",
|
|
3116
3119
|
} },
|
|
3117
3120
|
React.createElement("div", { style: {
|
|
3118
3121
|
display: "flex",
|