@ceed/ads 0.0.65 → 0.0.67

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.
@@ -12,8 +12,8 @@ interface DatePickerProps {
12
12
  label?: React.ReactNode;
13
13
  error?: boolean;
14
14
  helperText?: React.ReactNode;
15
- minDate?: Date;
16
- maxDate?: Date;
15
+ minDate?: string;
16
+ maxDate?: string;
17
17
  disableFuture?: boolean;
18
18
  disablePast?: boolean;
19
19
  }
@@ -12,8 +12,8 @@ interface DateRangePickerProps {
12
12
  label?: React.ReactNode;
13
13
  error?: boolean;
14
14
  helperText?: React.ReactNode;
15
- minDate?: Date;
16
- maxDate?: Date;
15
+ minDate?: string;
16
+ maxDate?: string;
17
17
  disableFuture?: boolean;
18
18
  disablePast?: boolean;
19
19
  }
@@ -12,8 +12,8 @@ interface MonthRangePickerProps {
12
12
  label?: React.ReactNode;
13
13
  error?: boolean;
14
14
  helperText?: React.ReactNode;
15
- minDate?: Date;
16
- maxDate?: Date;
15
+ minDate?: string;
16
+ maxDate?: string;
17
17
  disableFuture?: boolean;
18
18
  disablePast?: boolean;
19
19
  }
package/dist/index.js CHANGED
@@ -222,7 +222,7 @@ function Breadcrumbs(props) {
222
222
  const { crumbs, collapsed, size, ...innerProps } = props;
223
223
  const [needCollapsed, setNeedCollapsed] = useState(false);
224
224
  const firstCrumb = crumbs[0];
225
- const restCrumbs = crumbs.length === 1 ? [] : crumbs.slice(-(MAX_CRUMBS - 1));
225
+ const restCrumbs = crumbs.length < MAX_CRUMBS ? crumbs.slice(1) : crumbs.slice(-(MAX_CRUMBS - 1));
226
226
  const collapsingCrumbs = crumbs.slice(1, -(MAX_CRUMBS - 1));
227
227
  return /* @__PURE__ */ React4.createElement(JoyBreadcrumbs, { size, ...innerProps }, firstCrumb, collapsingCrumbs.length && (collapsed && !needCollapsed ? /* @__PURE__ */ React4.createElement(Button_default, { size, variant: "plain", color: "neutral", onClick: () => setNeedCollapsed(true) }, "\u2022\u2022\u2022") : collapsingCrumbs), restCrumbs);
228
228
  }
@@ -1421,7 +1421,7 @@ function DataTable(props) {
1421
1421
  checkbox: RenderCheckbox = Checkbox_default,
1422
1422
  toolbar: Toolbar,
1423
1423
  footer: Footer,
1424
- loadingOverlay: LoadingOverlay = () => /* @__PURE__ */ React12.createElement(LinearProgress, null)
1424
+ loadingOverlay: LoadingOverlay = () => /* @__PURE__ */ React12.createElement(LinearProgress, { value: 8, variant: "plain" })
1425
1425
  } = {},
1426
1426
  slotProps: {
1427
1427
  checkbox: checkboxProps = {},
@@ -1732,8 +1732,8 @@ var DatePicker = forwardRef4(
1732
1732
  setValue(formatValueString(date));
1733
1733
  setAnchorEl(null);
1734
1734
  },
1735
- minDate,
1736
- maxDate,
1735
+ minDate: minDate ? new Date(minDate) : void 0,
1736
+ maxDate: maxDate ? new Date(maxDate) : void 0,
1737
1737
  disableFuture,
1738
1738
  disablePast
1739
1739
  }
@@ -1931,8 +1931,8 @@ var DateRangePicker = forwardRef5(
1931
1931
  rangeSelection: true,
1932
1932
  defaultValue: calendarValue,
1933
1933
  onChange: handleCalendarChange,
1934
- minDate,
1935
- maxDate,
1934
+ minDate: minDate ? new Date(minDate) : void 0,
1935
+ maxDate: maxDate ? new Date(maxDate) : void 0,
1936
1936
  disableFuture,
1937
1937
  disablePast
1938
1938
  }
@@ -2254,8 +2254,8 @@ var MonthRangePicker = forwardRef6(
2254
2254
  rangeSelection: true,
2255
2255
  defaultValue: calendarValue,
2256
2256
  onChange: handleCalendarChange,
2257
- minDate,
2258
- maxDate,
2257
+ minDate: minDate ? new Date(minDate) : void 0,
2258
+ maxDate: maxDate ? new Date(maxDate) : void 0,
2259
2259
  disableFuture,
2260
2260
  disablePast
2261
2261
  }
package/framer/index.js CHANGED
@@ -34690,7 +34690,7 @@ function Breadcrumbs3(props) {
34690
34690
  const _a = props, { crumbs, collapsed, size } = _a, innerProps = __objRest(_a, ["crumbs", "collapsed", "size"]);
34691
34691
  const [needCollapsed, setNeedCollapsed] = useState23(false);
34692
34692
  const firstCrumb = crumbs[0];
34693
- const restCrumbs = crumbs.length === 1 ? [] : crumbs.slice(-(MAX_CRUMBS - 1));
34693
+ const restCrumbs = crumbs.length < MAX_CRUMBS ? crumbs.slice(1) : crumbs.slice(-(MAX_CRUMBS - 1));
34694
34694
  const collapsingCrumbs = crumbs.slice(1, -(MAX_CRUMBS - 1));
34695
34695
  return /* @__PURE__ */ jsxs2(Breadcrumbs_default, __spreadProps(__spreadValues({ size }, innerProps), { children: [
34696
34696
  firstCrumb,
@@ -36888,7 +36888,7 @@ function DataTable(props) {
36888
36888
  checkbox: RenderCheckbox = Checkbox_default2,
36889
36889
  toolbar: Toolbar,
36890
36890
  footer: Footer,
36891
- loadingOverlay: LoadingOverlay = () => /* @__PURE__ */ jsx2(LinearProgress_default, {})
36891
+ loadingOverlay: LoadingOverlay = () => /* @__PURE__ */ jsx2(LinearProgress_default, { value: 8, variant: "plain" })
36892
36892
  } = {},
36893
36893
  slotProps: {
36894
36894
  checkbox: checkboxProps = {},
@@ -40851,8 +40851,8 @@ var DatePicker = forwardRef84(
40851
40851
  setValue(formatValueString(date));
40852
40852
  setAnchorEl(null);
40853
40853
  },
40854
- minDate,
40855
- maxDate,
40854
+ minDate: minDate ? new Date(minDate) : void 0,
40855
+ maxDate: maxDate ? new Date(maxDate) : void 0,
40856
40856
  disableFuture,
40857
40857
  disablePast
40858
40858
  }
@@ -41053,8 +41053,8 @@ var DateRangePicker = forwardRef85(
41053
41053
  rangeSelection: true,
41054
41054
  defaultValue: calendarValue,
41055
41055
  onChange: handleCalendarChange,
41056
- minDate,
41057
- maxDate,
41056
+ minDate: minDate ? new Date(minDate) : void 0,
41057
+ maxDate: maxDate ? new Date(maxDate) : void 0,
41058
41058
  disableFuture,
41059
41059
  disablePast
41060
41060
  }
@@ -41361,8 +41361,8 @@ var MonthRangePicker = forwardRef86(
41361
41361
  rangeSelection: true,
41362
41362
  defaultValue: calendarValue,
41363
41363
  onChange: handleCalendarChange,
41364
- minDate,
41365
- maxDate,
41364
+ minDate: minDate ? new Date(minDate) : void 0,
41365
+ maxDate: maxDate ? new Date(maxDate) : void 0,
41366
41366
  disableFuture,
41367
41367
  disablePast
41368
41368
  }
@@ -42324,11 +42324,11 @@ var monthRangePickerPropertyControls = {
42324
42324
  },
42325
42325
  minDate: {
42326
42326
  title: "Minimum Date",
42327
- type: ControlType19.Date
42327
+ type: ControlType19.String
42328
42328
  },
42329
42329
  maxDate: {
42330
42330
  title: "Maximum Date",
42331
- type: ControlType19.Date
42331
+ type: ControlType19.String
42332
42332
  },
42333
42333
  disableFuture: {
42334
42334
  title: "Disable Future",
@@ -42687,7 +42687,8 @@ var typographyPropertyControls = {
42687
42687
  "text.tertiary",
42688
42688
  "inherit",
42689
42689
  "common.white",
42690
- "common.black"
42690
+ "common.black",
42691
+ "primary.500"
42691
42692
  ],
42692
42693
  defaultValue: "inherit"
42693
42694
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ceed/ads",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",