reactbridge-sdk 0.2.8 → 0.2.9
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"}
|
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";
|