@lobehub/ui 5.64.0 → 5.64.2

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.
Files changed (30) hide show
  1. package/es/EmojiPicker/EmojiPicker.mjs +2 -2
  2. package/es/base-ui/DatePicker/DatePicker.d.mts +5 -3
  3. package/es/base-ui/DatePicker/DatePicker.mjs +7 -5
  4. package/es/base-ui/DatePicker/DatePicker.mjs.map +1 -1
  5. package/es/base-ui/DatePicker/DateRangePicker.d.mts +1 -1
  6. package/es/base-ui/DatePicker/DayjsDatePicker.d.mts +12 -0
  7. package/es/base-ui/DatePicker/DayjsDatePicker.mjs +19 -0
  8. package/es/base-ui/DatePicker/DayjsDatePicker.mjs.map +1 -0
  9. package/es/base-ui/DatePicker/DayjsDateRangePicker.d.mts +7 -0
  10. package/es/base-ui/DatePicker/DayjsDateRangePicker.mjs +8 -0
  11. package/es/base-ui/DatePicker/DayjsDateRangePicker.mjs.map +1 -0
  12. package/es/base-ui/DatePicker/RangePicker.mjs +7 -1
  13. package/es/base-ui/DatePicker/RangePicker.mjs.map +1 -1
  14. package/es/base-ui/DatePicker/SinglePicker.mjs +3 -1
  15. package/es/base-ui/DatePicker/SinglePicker.mjs.map +1 -1
  16. package/es/base-ui/DatePicker/dateGenerateConfig.mjs +52 -0
  17. package/es/base-ui/DatePicker/dateGenerateConfig.mjs.map +1 -0
  18. package/es/base-ui/DatePicker/index.d.mts +4 -2
  19. package/es/base-ui/DatePicker/legacyDate.mjs +58 -0
  20. package/es/base-ui/DatePicker/legacyDate.mjs.map +1 -0
  21. package/es/base-ui/DatePicker/style.mjs +12 -4
  22. package/es/base-ui/DatePicker/style.mjs.map +1 -1
  23. package/es/base-ui/DatePicker/type.d.mts +65 -39
  24. package/es/base-ui/DatePicker/usePresetActive.mjs +1 -0
  25. package/es/base-ui/DatePicker/usePresetActive.mjs.map +1 -1
  26. package/es/base-ui/ProTable/FieldControl.mjs +4 -4
  27. package/es/base-ui/ProTable/FieldControl.mjs.map +1 -1
  28. package/es/base-ui/index.d.mts +4 -2
  29. package/es/base-ui/index.mjs +3 -1
  30. package/package.json +1 -1
@@ -18,8 +18,8 @@ import { SmileIcon, TrashIcon, UploadIcon } from "lucide-react";
18
18
  import chroma from "chroma-js";
19
19
  import data from "@emoji-mart/data";
20
20
  import Picker from "@emoji-mart/react";
21
- import { getLobeIconCDN } from "@lobehub/icons/es/features/getLobeIconCDN/index.js";
22
- import { toc } from "@lobehub/icons/es/toc.js";
21
+ import { getLobeIconCDN } from "@lobehub/icons/es/features/getLobeIconCDN";
22
+ import { toc } from "@lobehub/icons/es/toc";
23
23
  import useSWR from "swr";
24
24
  //#region src/EmojiPicker/EmojiPicker.tsx
25
25
  const DEFAULT_AVATAR = "🤖";
@@ -1,9 +1,11 @@
1
1
  import { DatePickerType } from "./type.mjs";
2
2
  //#region src/base-ui/DatePicker/DatePicker.d.ts
3
3
  /**
4
- * DatePicker over Dayjs, with antd's statics: `DatePicker.RangePicker`, `WeekPicker`,
5
- * `MonthPicker`, `YearPicker`, `QuarterPicker`, `TimePicker`, the debug-only pure panels
6
- * and `generatePicker`.
4
+ * DatePicker over native `Date` — the previous lobe DatePicker API: values, `onChange`
5
+ * and `disabledDate` use `Date`, a cleared range is `[null, null]`; inputs may also be
6
+ * `Dayjs`, date strings or timestamps. Statics as in antd: `DatePicker.RangePicker`,
7
+ * `WeekPicker`, `MonthPicker`, `YearPicker`, `QuarterPicker`, `TimePicker`, the pure panels
8
+ * and `generatePicker`. For the antd `Dayjs` API use `DayjsDatePicker`.
7
9
  */
8
10
  declare const DatePicker: DatePickerType;
9
11
  //#endregion
@@ -1,14 +1,16 @@
1
1
  "use client";
2
- import generateConfig from "./generateConfig.mjs";
2
+ import dateGenerateConfig from "./dateGenerateConfig.mjs";
3
3
  import generatePicker from "./generatePicker.mjs";
4
4
  import genPurePanel from "./PurePanel.mjs";
5
5
  //#region src/base-ui/DatePicker/DatePicker.tsx
6
6
  /**
7
- * DatePicker over Dayjs, with antd's statics: `DatePicker.RangePicker`, `WeekPicker`,
8
- * `MonthPicker`, `YearPicker`, `QuarterPicker`, `TimePicker`, the debug-only pure panels
9
- * and `generatePicker`.
7
+ * DatePicker over native `Date` — the previous lobe DatePicker API: values, `onChange`
8
+ * and `disabledDate` use `Date`, a cleared range is `[null, null]`; inputs may also be
9
+ * `Dayjs`, date strings or timestamps. Statics as in antd: `DatePicker.RangePicker`,
10
+ * `WeekPicker`, `MonthPicker`, `YearPicker`, `QuarterPicker`, `TimePicker`, the pure panels
11
+ * and `generatePicker`. For the antd `Dayjs` API use `DayjsDatePicker`.
10
12
  */
11
- const DatePicker = generatePicker(generateConfig);
13
+ const DatePicker = generatePicker(dateGenerateConfig);
12
14
  DatePicker._InternalPanelDoNotUseOrYouWillBeFired = genPurePanel(DatePicker);
13
15
  DatePicker._InternalRangePanelDoNotUseOrYouWillBeFired = genPurePanel(DatePicker.RangePicker);
14
16
  DatePicker.generatePicker = generatePicker;
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.mjs","names":["dayjsGenerateConfig"],"sources":["../../../src/base-ui/DatePicker/DatePicker.tsx"],"sourcesContent":["'use client';\n\nimport dayjsGenerateConfig from './generateConfig';\nimport generatePicker from './generatePicker';\nimport genPurePanel from './PurePanel';\nimport type { DatePickerType } from './type';\n\n/**\n * DatePicker over Dayjs, with antd's statics: `DatePicker.RangePicker`, `WeekPicker`,\n * `MonthPicker`, `YearPicker`, `QuarterPicker`, `TimePicker`, the debug-only pure panels\n * and `generatePicker`.\n */\nconst DatePicker = generatePicker(dayjsGenerateConfig) as DatePickerType;\n\nDatePicker._InternalPanelDoNotUseOrYouWillBeFired = genPurePanel(DatePicker);\nDatePicker._InternalRangePanelDoNotUseOrYouWillBeFired = genPurePanel(DatePicker.RangePicker);\nDatePicker.generatePicker = generatePicker;\n\nexport default DatePicker;\n"],"mappings":";;;;;;;;;;AAYA,MAAM,aAAa,eAAeA,cAAmB;AAErD,WAAW,yCAAyC,aAAa,UAAU;AAC3E,WAAW,8CAA8C,aAAa,WAAW,WAAW;AAC5F,WAAW,iBAAiB"}
1
+ {"version":3,"file":"DatePicker.mjs","names":[],"sources":["../../../src/base-ui/DatePicker/DatePicker.tsx"],"sourcesContent":["'use client';\n\nimport dateGenerateConfig from './dateGenerateConfig';\nimport generatePicker from './generatePicker';\nimport genPurePanel from './PurePanel';\nimport type { DatePickerType } from './type';\n\n/**\n * DatePicker over native `Date` — the previous lobe DatePicker API: values, `onChange`\n * and `disabledDate` use `Date`, a cleared range is `[null, null]`; inputs may also be\n * `Dayjs`, date strings or timestamps. Statics as in antd: `DatePicker.RangePicker`,\n * `WeekPicker`, `MonthPicker`, `YearPicker`, `QuarterPicker`, `TimePicker`, the pure panels\n * and `generatePicker`. For the antd `Dayjs` API use `DayjsDatePicker`.\n */\nconst DatePicker = generatePicker(dateGenerateConfig) as DatePickerType;\n\nDatePicker._InternalPanelDoNotUseOrYouWillBeFired = genPurePanel(DatePicker);\nDatePicker._InternalRangePanelDoNotUseOrYouWillBeFired = genPurePanel(DatePicker.RangePicker);\nDatePicker.generatePicker = generatePicker;\n\nexport default DatePicker;\n"],"mappings":";;;;;;;;;;;;AAcA,MAAM,aAAa,eAAe,kBAAkB;AAEpD,WAAW,yCAAyC,aAAa,UAAU;AAC3E,WAAW,8CAA8C,aAAa,WAAW,WAAW;AAC5F,WAAW,iBAAiB"}
@@ -1,7 +1,7 @@
1
1
  import { RangePickerComponent } from "./type.mjs";
2
2
  //#region src/base-ui/DatePicker/DateRangePicker.d.ts
3
3
  /** `DatePicker.RangePicker`, kept as a standalone export. */
4
- declare const DateRangePicker: RangePickerComponent<import("dayjs").Dayjs>;
4
+ declare const DateRangePicker: RangePickerComponent<Date>;
5
5
  //#endregion
6
6
  export { DateRangePicker as default };
7
7
  //# sourceMappingURL=DateRangePicker.d.mts.map
@@ -0,0 +1,12 @@
1
+ import { DayjsDatePickerType } from "./type.mjs";
2
+ //#region src/base-ui/DatePicker/DayjsDatePicker.d.ts
3
+ /**
4
+ * antd-aligned DatePicker over `Dayjs` (values, callbacks and `disabledDate` are `Dayjs`),
5
+ * with antd's statics: `RangePicker`, `WeekPicker`, `MonthPicker`, `YearPicker`,
6
+ * `QuarterPicker`, `TimePicker`, the debug-only pure panels and `generatePicker`.
7
+ * The default `DatePicker` export works with native `Date` (the previous lobe API).
8
+ */
9
+ declare const DayjsDatePicker: DayjsDatePickerType;
10
+ //#endregion
11
+ export { DayjsDatePicker as default };
12
+ //# sourceMappingURL=DayjsDatePicker.d.mts.map
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import generateConfig from "./generateConfig.mjs";
3
+ import generatePicker from "./generatePicker.mjs";
4
+ import genPurePanel from "./PurePanel.mjs";
5
+ //#region src/base-ui/DatePicker/DayjsDatePicker.tsx
6
+ /**
7
+ * antd-aligned DatePicker over `Dayjs` (values, callbacks and `disabledDate` are `Dayjs`),
8
+ * with antd's statics: `RangePicker`, `WeekPicker`, `MonthPicker`, `YearPicker`,
9
+ * `QuarterPicker`, `TimePicker`, the debug-only pure panels and `generatePicker`.
10
+ * The default `DatePicker` export works with native `Date` (the previous lobe API).
11
+ */
12
+ const DayjsDatePicker = generatePicker(generateConfig);
13
+ DayjsDatePicker._InternalPanelDoNotUseOrYouWillBeFired = genPurePanel(DayjsDatePicker);
14
+ DayjsDatePicker._InternalRangePanelDoNotUseOrYouWillBeFired = genPurePanel(DayjsDatePicker.RangePicker);
15
+ DayjsDatePicker.generatePicker = generatePicker;
16
+ //#endregion
17
+ export { DayjsDatePicker as default };
18
+
19
+ //# sourceMappingURL=DayjsDatePicker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DayjsDatePicker.mjs","names":["dayjsGenerateConfig"],"sources":["../../../src/base-ui/DatePicker/DayjsDatePicker.tsx"],"sourcesContent":["'use client';\n\nimport dayjsGenerateConfig from './generateConfig';\nimport generatePicker from './generatePicker';\nimport genPurePanel from './PurePanel';\nimport type { DayjsDatePickerType } from './type';\n\n/**\n * antd-aligned DatePicker over `Dayjs` (values, callbacks and `disabledDate` are `Dayjs`),\n * with antd's statics: `RangePicker`, `WeekPicker`, `MonthPicker`, `YearPicker`,\n * `QuarterPicker`, `TimePicker`, the debug-only pure panels and `generatePicker`.\n * The default `DatePicker` export works with native `Date` (the previous lobe API).\n */\nconst DayjsDatePicker = generatePicker(dayjsGenerateConfig) as DayjsDatePickerType;\n\nDayjsDatePicker._InternalPanelDoNotUseOrYouWillBeFired = genPurePanel(DayjsDatePicker);\nDayjsDatePicker._InternalRangePanelDoNotUseOrYouWillBeFired = genPurePanel(\n DayjsDatePicker.RangePicker,\n);\nDayjsDatePicker.generatePicker = generatePicker;\n\nexport default DayjsDatePicker;\n"],"mappings":";;;;;;;;;;;AAaA,MAAM,kBAAkB,eAAeA,cAAmB;AAE1D,gBAAgB,yCAAyC,aAAa,eAAe;AACrF,gBAAgB,8CAA8C,aAC5D,gBAAgB,WAClB;AACA,gBAAgB,iBAAiB"}
@@ -0,0 +1,7 @@
1
+ import { RangePickerComponent } from "./type.mjs";
2
+ //#region src/base-ui/DatePicker/DayjsDateRangePicker.d.ts
3
+ /** `DayjsDatePicker.RangePicker` (values are `Dayjs`), kept as a standalone export. */
4
+ declare const DayjsDateRangePicker: RangePickerComponent<import("dayjs").Dayjs>;
5
+ //#endregion
6
+ export { DayjsDateRangePicker as default };
7
+ //# sourceMappingURL=DayjsDateRangePicker.d.mts.map
@@ -0,0 +1,8 @@
1
+ import DayjsDatePicker from "./DayjsDatePicker.mjs";
2
+ //#region src/base-ui/DatePicker/DayjsDateRangePicker.tsx
3
+ /** `DayjsDatePicker.RangePicker` (values are `Dayjs`), kept as a standalone export. */
4
+ const DayjsDateRangePicker = DayjsDatePicker.RangePicker;
5
+ //#endregion
6
+ export { DayjsDateRangePicker as default };
7
+
8
+ //# sourceMappingURL=DayjsDateRangePicker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DayjsDateRangePicker.mjs","names":[],"sources":["../../../src/base-ui/DatePicker/DayjsDateRangePicker.tsx"],"sourcesContent":["import DayjsDatePicker from './DayjsDatePicker';\n\n/** `DayjsDatePicker.RangePicker` (values are `Dayjs`), kept as a standalone export. */\nconst DayjsDateRangePicker = DayjsDatePicker.RangePicker;\n\nexport default DayjsDateRangePicker;\n"],"mappings":";;;AAGA,MAAM,uBAAuB,gBAAgB"}
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import Icon from "../../Icon/Icon.mjs";
3
3
  import { cx } from "../../utils/styleEngine.mjs";
4
+ import { isNativeDateConfig, normalizeLegacyDateProps } from "./legacyDate.mjs";
4
5
  import { usePickerLocale } from "./locale.mjs";
5
6
  import { usePanelKeyboard } from "./usePanelKeyboard.mjs";
6
7
  import { usePickerShared } from "./usePickerShared.mjs";
@@ -11,7 +12,12 @@ import { RangePicker } from "@rc-component/picker";
11
12
  //#region src/base-ui/DatePicker/RangePicker.tsx
12
13
  /** antd `generateRangePicker`: `DatePicker.RangePicker` over `generateConfig`'s date type. */
13
14
  const generateRangePicker = (generateConfig) => {
14
- const RangePicker$1 = (props) => {
15
+ const RangePicker$1 = (rawProps) => {
16
+ const normalized = normalizeLegacyDateProps(rawProps, generateConfig);
17
+ const props = isNativeDateConfig(generateConfig) && normalized.onChange ? {
18
+ ...normalized,
19
+ onChange: (dates, dateStrings) => normalized.onChange(dates ?? [null, null], dateStrings ?? ["", ""])
20
+ } : normalized;
15
21
  const { allowClear, allowEmpty, bordered, cellRender, changeOnBlur, className, clearIcon, classNames, components, dateRender, defaultOpen, defaultPickerValue, defaultValue, dropdownClassName, direction, disabled, disabledDate, footer, getPopupContainer, id, locale: localeOverride, max, maxDate, min, minDate, mode, monthCellRender, needConfirm, nextIcon, onBlur, onKeyDown, onCalendarChange, onChange, onFocus, onOk, onOpenChange, onPanelChange, onPickerValueChange, open, order, picker = "date", pickerValue, placeholder, popupClassName, popupStyle, prevIcon, renderExtraFooter, rootClassName, separator, shadow, size, status, styles, suffixIcon, superNextIcon, superPrevIcon, transitionName, value, variant, ...rest } = props;
16
22
  const { locale, rangePlaceholder } = usePickerLocale(localeOverride);
17
23
  const keyboard = usePanelKeyboard({
@@ -1 +1 @@
1
- {"version":3,"file":"RangePicker.mjs","names":["RangePicker","RcRangePicker"],"sources":["../../../src/base-ui/DatePicker/RangePicker.tsx"],"sourcesContent":["'use client';\n\nimport { RangePicker as RcRangePicker } from '@rc-component/picker';\nimport type { GenerateConfig } from '@rc-component/picker/generate';\nimport { ArrowRight } from 'lucide-react';\n\nimport Icon from '@/Icon';\nimport { cx } from '@/utils/styleEngine';\n\nimport { usePickerLocale } from './locale';\nimport type { DateRangePickerProps, RangePickerComponent } from './type';\nimport { usePanelKeyboard } from './usePanelKeyboard';\nimport { usePickerShared } from './usePickerShared';\nimport { usePresetActive } from './usePresetActive';\n\n/** antd `generateRangePicker`: `DatePicker.RangePicker` over `generateConfig`'s date type. */\nconst generateRangePicker = <DateType extends object>(generateConfig: GenerateConfig<DateType>) => {\n const RangePicker = (props: DateRangePickerProps<DateType>) => {\n const {\n allowClear,\n allowEmpty,\n bordered,\n cellRender,\n changeOnBlur,\n className,\n clearIcon,\n classNames,\n components,\n dateRender,\n defaultOpen,\n defaultPickerValue,\n defaultValue,\n dropdownClassName,\n direction,\n disabled,\n disabledDate,\n footer,\n getPopupContainer,\n id,\n locale: localeOverride,\n max,\n maxDate,\n min,\n minDate,\n mode,\n monthCellRender,\n needConfirm,\n nextIcon,\n onBlur,\n onKeyDown,\n onCalendarChange,\n onChange,\n onFocus,\n onOk,\n onOpenChange,\n onPanelChange,\n onPickerValueChange,\n open,\n order,\n picker = 'date',\n pickerValue,\n placeholder,\n popupClassName,\n popupStyle,\n prevIcon,\n renderExtraFooter,\n rootClassName,\n separator,\n shadow,\n size,\n status,\n styles,\n suffixIcon,\n superNextIcon,\n superPrevIcon,\n transitionName,\n value,\n variant,\n ...rest\n } = props;\n const { locale, rangePlaceholder } = usePickerLocale(localeOverride);\n const keyboard = usePanelKeyboard({\n cellRender,\n dateRender,\n defaultOpen,\n defaultPickerValue,\n defaultValue,\n direction,\n generateConfig,\n mode,\n monthCellRender,\n onChange,\n onFocus,\n onOpenChange,\n onPanelChange,\n onPickerValueChange,\n open,\n picker,\n pickerValue,\n range: true,\n value,\n });\n const shared = usePickerShared({\n allowClear,\n bordered,\n changeOnBlur,\n className,\n clearIcon,\n classNames,\n components,\n defaultOpen,\n dropdownClassName,\n generateConfig,\n getPopupContainer,\n max,\n maxDate,\n min,\n minDate,\n needConfirm,\n nextIcon,\n onKeyDown,\n onOpenChange: keyboard.onOpenChange,\n open,\n picker,\n popupClassName,\n popupStyle,\n prevIcon,\n rootClassName: cx(keyboard.scopeClassName, rootClassName),\n semanticProps: props,\n shadow,\n size,\n status,\n styles,\n suffixIcon,\n superNextIcon,\n superPrevIcon,\n transitionName,\n variant,\n });\n\n const presetActive = usePresetActive((rest as any).presets, value, defaultValue);\n\n return (\n <RcRangePicker<DateType>\n {...rest}\n {...shared}\n allowEmpty={allowEmpty}\n cellRender={keyboard.cellRender}\n dateRender={dateRender}\n defaultPickerValue={defaultPickerValue as any}\n defaultValue={defaultValue as any}\n direction={direction}\n disabled={disabled}\n disabledDate={disabledDate}\n id={id}\n locale={locale.lang}\n mode={mode as any}\n monthCellRender={monthCellRender}\n order={order}\n picker={picker}\n pickerValue={keyboard.pickerValue}\n placeholder={placeholder ?? rangePlaceholder(picker)}\n presets={presetActive.presets as any}\n renderExtraFooter={renderExtraFooter ?? (footer ? () => footer : undefined)}\n separator={separator ?? <Icon icon={ArrowRight} size={14} />}\n value={value as any}\n onBlur={onBlur as any}\n onCalendarChange={onCalendarChange as any}\n onFocus={keyboard.onFocus}\n onOk={onOk as any}\n onPanelChange={keyboard.onPanelChange}\n onPickerValueChange={keyboard.onPickerValueChange}\n onChange={(...args: any[]) => {\n presetActive.track(args[0]);\n (keyboard.onChange as any)(...args);\n }}\n />\n );\n };\n RangePicker.displayName = 'RangePicker';\n return RangePicker as RangePickerComponent<DateType>;\n};\n\nexport default generateRangePicker;\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAM,uBAAgD,mBAA6C;CACjG,MAAMA,iBAAe,UAA0C;EAC7D,MAAM,EACJ,YACA,YACA,UACA,YACA,cACA,WACA,WACA,YACA,YACA,YACA,aACA,oBACA,cACA,mBACA,WACA,UACA,cACA,QACA,mBACA,IACA,QAAQ,gBACR,KACA,SACA,KACA,SACA,MACA,iBACA,aACA,UACA,QACA,WACA,kBACA,UACA,SACA,MACA,cACA,eACA,qBACA,MACA,OACA,SAAS,QACT,aACA,aACA,gBACA,YACA,UACA,mBACA,eACA,WACA,QACA,MACA,QACA,QACA,YACA,eACA,eACA,gBACA,OACA,SACA,GAAG,SACD;EACJ,MAAM,EAAE,QAAQ,qBAAqB,gBAAgB,cAAc;EACnE,MAAM,WAAW,iBAAiB;GAChC;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA,OAAO;GACP;EACF,CAAC;EACD,MAAM,SAAS,gBAAgB;GAC7B;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA,cAAc,SAAS;GACvB;GACA;GACA;GACA;GACA;GACA,eAAe,GAAG,SAAS,gBAAgB,aAAa;GACxD,eAAe;GACf;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF,CAAC;EAED,MAAM,eAAe,gBAAiB,KAAa,SAAS,OAAO,YAAY;EAE/E,OACE,oBAACC,aAAD;GACE,GAAI;GACJ,GAAI;GACQ;GACZ,YAAY,SAAS;GACT;GACQ;GACN;GACH;GACD;GACI;GACV;GACJ,QAAQ,OAAO;GACT;GACW;GACV;GACC;GACR,aAAa,SAAS;GACtB,aAAa,eAAe,iBAAiB,MAAM;GACnD,SAAS,aAAa;GACtB,mBAAmB,sBAAsB,eAAe,SAAS,KAAA;GACjE,WAAW,aAAa,oBAAC,MAAD;IAAM,MAAM;IAAY,MAAM;GAAK,CAAA;GACpD;GACC;GACU;GAClB,SAAS,SAAS;GACZ;GACN,eAAe,SAAS;GACxB,qBAAqB,SAAS;GAC9B,WAAW,GAAG,SAAgB;IAC5B,aAAa,MAAM,KAAK,EAAE;IAC1B,SAAU,SAAiB,GAAG,IAAI;GACpC;EACD,CAAA;CAEL;CACA,cAAY,cAAc;CAC1B,OAAOD;AACT"}
1
+ {"version":3,"file":"RangePicker.mjs","names":["RangePicker","RcRangePicker"],"sources":["../../../src/base-ui/DatePicker/RangePicker.tsx"],"sourcesContent":["'use client';\n\nimport { RangePicker as RcRangePicker } from '@rc-component/picker';\nimport type { GenerateConfig } from '@rc-component/picker/generate';\nimport { ArrowRight } from 'lucide-react';\n\nimport Icon from '@/Icon';\nimport { cx } from '@/utils/styleEngine';\n\nimport { isNativeDateConfig, normalizeLegacyDateProps } from './legacyDate';\nimport { usePickerLocale } from './locale';\nimport type { DateRangePickerProps, RangePickerComponent } from './type';\nimport { usePanelKeyboard } from './usePanelKeyboard';\nimport { usePickerShared } from './usePickerShared';\nimport { usePresetActive } from './usePresetActive';\n\n/** antd `generateRangePicker`: `DatePicker.RangePicker` over `generateConfig`'s date type. */\nconst generateRangePicker = <DateType extends object>(generateConfig: GenerateConfig<DateType>) => {\n const RangePicker = (rawProps: DateRangePickerProps<DateType>) => {\n const normalized = normalizeLegacyDateProps(rawProps, generateConfig);\n // The default (native Date) picker keeps the previous lobe contract: a cleared range is\n // `[null, null]` with empty strings, never `null`.\n const props =\n isNativeDateConfig(generateConfig) && normalized.onChange\n ? {\n ...normalized,\n onChange: (dates: any, dateStrings: any) =>\n (normalized.onChange as any)(dates ?? [null, null], dateStrings ?? ['', '']),\n }\n : normalized;\n const {\n allowClear,\n allowEmpty,\n bordered,\n cellRender,\n changeOnBlur,\n className,\n clearIcon,\n classNames,\n components,\n dateRender,\n defaultOpen,\n defaultPickerValue,\n defaultValue,\n dropdownClassName,\n direction,\n disabled,\n disabledDate,\n footer,\n getPopupContainer,\n id,\n locale: localeOverride,\n max,\n maxDate,\n min,\n minDate,\n mode,\n monthCellRender,\n needConfirm,\n nextIcon,\n onBlur,\n onKeyDown,\n onCalendarChange,\n onChange,\n onFocus,\n onOk,\n onOpenChange,\n onPanelChange,\n onPickerValueChange,\n open,\n order,\n picker = 'date',\n pickerValue,\n placeholder,\n popupClassName,\n popupStyle,\n prevIcon,\n renderExtraFooter,\n rootClassName,\n separator,\n shadow,\n size,\n status,\n styles,\n suffixIcon,\n superNextIcon,\n superPrevIcon,\n transitionName,\n value,\n variant,\n ...rest\n } = props;\n const { locale, rangePlaceholder } = usePickerLocale(localeOverride);\n const keyboard = usePanelKeyboard({\n cellRender,\n dateRender,\n defaultOpen,\n defaultPickerValue,\n defaultValue,\n direction,\n generateConfig,\n mode,\n monthCellRender,\n onChange,\n onFocus,\n onOpenChange,\n onPanelChange,\n onPickerValueChange,\n open,\n picker,\n pickerValue,\n range: true,\n value,\n });\n const shared = usePickerShared({\n allowClear,\n bordered,\n changeOnBlur,\n className,\n clearIcon,\n classNames,\n components,\n defaultOpen,\n dropdownClassName,\n generateConfig,\n getPopupContainer,\n max,\n maxDate,\n min,\n minDate,\n needConfirm,\n nextIcon,\n onKeyDown,\n onOpenChange: keyboard.onOpenChange,\n open,\n picker,\n popupClassName,\n popupStyle,\n prevIcon,\n rootClassName: cx(keyboard.scopeClassName, rootClassName),\n semanticProps: props,\n shadow,\n size,\n status,\n styles,\n suffixIcon,\n superNextIcon,\n superPrevIcon,\n transitionName,\n variant,\n });\n\n const presetActive = usePresetActive((rest as any).presets, value, defaultValue);\n\n return (\n <RcRangePicker<DateType>\n {...rest}\n {...shared}\n allowEmpty={allowEmpty}\n cellRender={keyboard.cellRender}\n dateRender={dateRender}\n defaultPickerValue={defaultPickerValue as any}\n defaultValue={defaultValue as any}\n direction={direction}\n disabled={disabled}\n disabledDate={disabledDate}\n id={id}\n locale={locale.lang}\n mode={mode as any}\n monthCellRender={monthCellRender}\n order={order}\n picker={picker}\n pickerValue={keyboard.pickerValue}\n placeholder={placeholder ?? rangePlaceholder(picker)}\n presets={presetActive.presets as any}\n renderExtraFooter={renderExtraFooter ?? (footer ? () => footer : undefined)}\n separator={separator ?? <Icon icon={ArrowRight} size={14} />}\n value={value as any}\n onBlur={onBlur as any}\n onCalendarChange={onCalendarChange as any}\n onFocus={keyboard.onFocus}\n onOk={onOk as any}\n onPanelChange={keyboard.onPanelChange}\n onPickerValueChange={keyboard.onPickerValueChange}\n onChange={(...args: any[]) => {\n presetActive.track(args[0]);\n (keyboard.onChange as any)(...args);\n }}\n />\n );\n };\n RangePicker.displayName = 'RangePicker';\n return RangePicker as RangePickerComponent<DateType>;\n};\n\nexport default generateRangePicker;\n"],"mappings":";;;;;;;;;;;;;AAiBA,MAAM,uBAAgD,mBAA6C;CACjG,MAAMA,iBAAe,aAA6C;EAChE,MAAM,aAAa,yBAAyB,UAAU,cAAc;EAGpE,MAAM,QACJ,mBAAmB,cAAc,KAAK,WAAW,WAC7C;GACE,GAAG;GACH,WAAW,OAAY,gBACpB,WAAW,SAAiB,SAAS,CAAC,MAAM,IAAI,GAAG,eAAe,CAAC,IAAI,EAAE,CAAC;EAC/E,IACA;EACN,MAAM,EACJ,YACA,YACA,UACA,YACA,cACA,WACA,WACA,YACA,YACA,YACA,aACA,oBACA,cACA,mBACA,WACA,UACA,cACA,QACA,mBACA,IACA,QAAQ,gBACR,KACA,SACA,KACA,SACA,MACA,iBACA,aACA,UACA,QACA,WACA,kBACA,UACA,SACA,MACA,cACA,eACA,qBACA,MACA,OACA,SAAS,QACT,aACA,aACA,gBACA,YACA,UACA,mBACA,eACA,WACA,QACA,MACA,QACA,QACA,YACA,eACA,eACA,gBACA,OACA,SACA,GAAG,SACD;EACJ,MAAM,EAAE,QAAQ,qBAAqB,gBAAgB,cAAc;EACnE,MAAM,WAAW,iBAAiB;GAChC;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA,OAAO;GACP;EACF,CAAC;EACD,MAAM,SAAS,gBAAgB;GAC7B;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA,cAAc,SAAS;GACvB;GACA;GACA;GACA;GACA;GACA,eAAe,GAAG,SAAS,gBAAgB,aAAa;GACxD,eAAe;GACf;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF,CAAC;EAED,MAAM,eAAe,gBAAiB,KAAa,SAAS,OAAO,YAAY;EAE/E,OACE,oBAACC,aAAD;GACE,GAAI;GACJ,GAAI;GACQ;GACZ,YAAY,SAAS;GACT;GACQ;GACN;GACH;GACD;GACI;GACV;GACJ,QAAQ,OAAO;GACT;GACW;GACV;GACC;GACR,aAAa,SAAS;GACtB,aAAa,eAAe,iBAAiB,MAAM;GACnD,SAAS,aAAa;GACtB,mBAAmB,sBAAsB,eAAe,SAAS,KAAA;GACjE,WAAW,aAAa,oBAAC,MAAD;IAAM,MAAM;IAAY,MAAM;GAAK,CAAA;GACpD;GACC;GACU;GAClB,SAAS,SAAS;GACZ;GACN,eAAe,SAAS;GACxB,qBAAqB,SAAS;GAC9B,WAAW,GAAG,SAAgB;IAC5B,aAAa,MAAM,KAAK,EAAE;IAC1B,SAAU,SAAiB,GAAG,IAAI;GACpC;EACD,CAAA;CAEL;CACA,cAAY,cAAc;CAC1B,OAAOD;AACT"}
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import Icon from "../../Icon/Icon.mjs";
3
3
  import { cx } from "../../utils/styleEngine.mjs";
4
+ import { normalizeLegacyDateProps } from "./legacyDate.mjs";
4
5
  import { usePickerLocale } from "./locale.mjs";
5
6
  import { PREFIX_CLS } from "./style.mjs";
6
7
  import { usePanelKeyboard } from "./usePanelKeyboard.mjs";
@@ -21,7 +22,8 @@ const defaultRemoveIcon = /* @__PURE__ */ jsx(Icon, {
21
22
  */
22
23
  const generateSinglePicker = (generateConfig) => {
23
24
  const getPicker = (presetPicker, displayName = "DatePicker") => {
24
- const Picker = (props) => {
25
+ const Picker = (rawProps) => {
26
+ const props = normalizeLegacyDateProps(rawProps, generateConfig);
25
27
  const { allowClear, bordered, cellRender, changeOnBlur, className, clearIcon, classNames, components, dateRender, defaultOpen, defaultPickerValue, defaultValue, dropdownClassName, direction, footer, getPopupContainer, locale: localeOverride, max, maxDate, min, minDate, mode, monthCellRender, multiple, needConfirm, nextIcon, onKeyDown, onCalendarChange, onChange, onFocus, onOk, onOpenChange, onPanelChange, onPickerValueChange, onSelect, open, picker: pickerProp, pickerValue, placeholder, popupClassName, popupStyle, prevIcon, ref, removeIcon, renderExtraFooter, rootClassName, shadow, size, status, styles, suffixIcon, superNextIcon, superPrevIcon, transitionName, value, variant, ...rest } = props;
26
28
  const picker = presetPicker ?? pickerProp ?? "date";
27
29
  const { locale, placeholder: defaultPlaceholder } = usePickerLocale(localeOverride);
@@ -1 +1 @@
1
- {"version":3,"file":"SinglePicker.mjs","names":[],"sources":["../../../src/base-ui/DatePicker/SinglePicker.tsx"],"sourcesContent":["'use client';\n\nimport RcPicker from '@rc-component/picker';\nimport type { GenerateConfig } from '@rc-component/picker/generate';\nimport type { PickerMode } from '@rc-component/picker/interface';\nimport { X } from 'lucide-react';\n\nimport Icon from '@/Icon';\nimport { cx } from '@/utils/styleEngine';\n\nimport { usePickerLocale } from './locale';\nimport { PREFIX_CLS } from './style';\nimport type { GeneratedDatePicker, PickerProps, SinglePickerComponent } from './type';\nimport { usePanelKeyboard } from './usePanelKeyboard';\nimport { usePickerShared, withDefault } from './usePickerShared';\nimport { usePresetActive } from './usePresetActive';\n\nconst defaultRemoveIcon = <Icon icon={X} size={10} style={{ strokeWidth: 3 }} />;\n\n/**\n * antd `generateSinglePicker`: DatePicker over `generateConfig`'s date type, plus the\n * pickers whose `picker` is fixed (`DatePicker.WeekPicker`, …, `DatePicker.TimePicker`).\n */\nconst generateSinglePicker = <DateType extends object>(\n generateConfig: GenerateConfig<DateType>,\n) => {\n const getPicker = (presetPicker?: PickerMode, displayName = 'DatePicker') => {\n const Picker = (props: PickerProps<DateType, any>) => {\n const {\n allowClear,\n bordered,\n cellRender,\n changeOnBlur,\n className,\n clearIcon,\n classNames,\n components,\n dateRender,\n defaultOpen,\n defaultPickerValue,\n defaultValue,\n dropdownClassName,\n direction,\n footer,\n getPopupContainer,\n locale: localeOverride,\n max,\n maxDate,\n min,\n minDate,\n mode,\n monthCellRender,\n multiple,\n needConfirm,\n nextIcon,\n onKeyDown,\n onCalendarChange,\n onChange,\n onFocus,\n onOk,\n onOpenChange,\n onPanelChange,\n onPickerValueChange,\n onSelect,\n open,\n picker: pickerProp,\n pickerValue,\n placeholder,\n popupClassName,\n popupStyle,\n prevIcon,\n ref,\n removeIcon,\n renderExtraFooter,\n rootClassName,\n shadow,\n size,\n status,\n styles,\n suffixIcon,\n superNextIcon,\n superPrevIcon,\n transitionName,\n value,\n variant,\n ...rest\n } = props;\n const picker = presetPicker ?? pickerProp ?? 'date';\n const { locale, placeholder: defaultPlaceholder } = usePickerLocale(localeOverride);\n const keyboard = usePanelKeyboard({\n cellRender,\n dateRender,\n defaultOpen,\n defaultPickerValue,\n defaultValue,\n direction,\n generateConfig,\n mode,\n monthCellRender,\n onChange,\n onFocus,\n onOpenChange,\n onPanelChange,\n onPickerValueChange,\n open,\n picker,\n pickerValue,\n value,\n });\n const shared = usePickerShared({\n allowClear,\n bordered,\n changeOnBlur,\n className,\n clearIcon,\n classNames,\n components,\n defaultOpen,\n dropdownClassName,\n generateConfig,\n getPopupContainer,\n max,\n maxDate,\n min,\n minDate,\n needConfirm,\n nextIcon,\n onKeyDown,\n onOpenChange: keyboard.onOpenChange,\n open,\n picker,\n popupClassName,\n popupStyle,\n prevIcon,\n rootClassName: cx(keyboard.scopeClassName, rootClassName),\n semanticProps: props,\n shadow,\n size,\n status,\n styles,\n suffixIcon,\n superNextIcon,\n superPrevIcon,\n transitionName,\n variant,\n });\n\n const presetActive = usePresetActive(\n (rest as any).presets,\n multiple ? undefined : value,\n multiple ? undefined : defaultValue,\n );\n\n return (\n <RcPicker<DateType>\n {...rest}\n {...shared}\n presets={presetActive.presets as any}\n // No footer row by default: Today / Now only when asked for (showNow or the\n // deprecated showToday); showTime + needConfirm still shows OK.\n cellRender={keyboard.cellRender}\n dateRender={dateRender}\n defaultPickerValue={defaultPickerValue as any}\n defaultValue={defaultValue ?? undefined}\n direction={direction}\n locale={locale.lang}\n mode={mode as any}\n monthCellRender={monthCellRender}\n multiple={multiple}\n picker={picker}\n pickerValue={keyboard.pickerValue}\n placeholder={placeholder ?? defaultPlaceholder(picker)}\n ref={ref}\n removeIcon={withDefault(removeIcon, defaultRemoveIcon)}\n renderExtraFooter={renderExtraFooter ?? (footer ? () => footer : undefined)}\n showNow={(rest as any).showNow ?? (rest as any).showToday ?? false}\n value={value as any}\n classNames={\n multiple\n ? {\n ...shared.classNames,\n popup: {\n ...shared.classNames.popup,\n root: cx(shared.classNames.popup.root, `${PREFIX_CLS}-dropdown-multiple`),\n },\n }\n : shared.classNames\n }\n onFocus={keyboard.onFocus}\n onOk={onOk as any}\n onPanelChange={keyboard.onPanelChange}\n onPickerValueChange={keyboard.onPickerValueChange}\n onCalendarChange={\n onCalendarChange || onSelect\n ? (date, dateString, info) => {\n onCalendarChange?.(date, dateString as any, info);\n if (date && !Array.isArray(date)) onSelect?.(date);\n }\n : undefined\n }\n onChange={(...args: any[]) => {\n presetActive.track(args[0]);\n (keyboard.onChange as any)(...args);\n }}\n />\n );\n };\n Picker.displayName = displayName;\n return Picker as SinglePickerComponent<DateType, any>;\n };\n\n return {\n DatePicker: getPicker() as GeneratedDatePicker<DateType>,\n MonthPicker: getPicker('month', 'MonthPicker'),\n QuarterPicker: getPicker('quarter', 'QuarterPicker'),\n TimePicker: getPicker('time', 'TimePicker'),\n WeekPicker: getPicker('week', 'WeekPicker'),\n YearPicker: getPicker('year', 'YearPicker'),\n };\n};\n\nexport default generateSinglePicker;\n"],"mappings":";;;;;;;;;;;;AAiBA,MAAM,oBAAoB,oBAAC,MAAD;CAAM,MAAM;CAAG,MAAM;CAAI,OAAO,EAAE,aAAa,EAAE;AAAI,CAAA;;;;;AAM/E,MAAM,wBACJ,mBACG;CACH,MAAM,aAAa,cAA2B,cAAc,iBAAiB;EAC3E,MAAM,UAAU,UAAsC;GACpD,MAAM,EACJ,YACA,UACA,YACA,cACA,WACA,WACA,YACA,YACA,YACA,aACA,oBACA,cACA,mBACA,WACA,QACA,mBACA,QAAQ,gBACR,KACA,SACA,KACA,SACA,MACA,iBACA,UACA,aACA,UACA,WACA,kBACA,UACA,SACA,MACA,cACA,eACA,qBACA,UACA,MACA,QAAQ,YACR,aACA,aACA,gBACA,YACA,UACA,KACA,YACA,mBACA,eACA,QACA,MACA,QACA,QACA,YACA,eACA,eACA,gBACA,OACA,SACA,GAAG,SACD;GACJ,MAAM,SAAS,gBAAgB,cAAc;GAC7C,MAAM,EAAE,QAAQ,aAAa,uBAAuB,gBAAgB,cAAc;GAClF,MAAM,WAAW,iBAAiB;IAChC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF,CAAC;GACD,MAAM,SAAS,gBAAgB;IAC7B;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,cAAc,SAAS;IACvB;IACA;IACA;IACA;IACA;IACA,eAAe,GAAG,SAAS,gBAAgB,aAAa;IACxD,eAAe;IACf;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF,CAAC;GAED,MAAM,eAAe,gBAClB,KAAa,SACd,WAAW,KAAA,IAAY,OACvB,WAAW,KAAA,IAAY,YACzB;GAEA,OACE,oBAAC,UAAD;IACE,GAAI;IACJ,GAAI;IACJ,SAAS,aAAa;IAGtB,YAAY,SAAS;IACT;IACQ;IACpB,cAAc,gBAAgB,KAAA;IACnB;IACX,QAAQ,OAAO;IACT;IACW;IACP;IACF;IACR,aAAa,SAAS;IACtB,aAAa,eAAe,mBAAmB,MAAM;IAChD;IACL,YAAY,YAAY,YAAY,iBAAiB;IACrD,mBAAmB,sBAAsB,eAAe,SAAS,KAAA;IACjE,SAAU,KAAa,WAAY,KAAa,aAAa;IACtD;IACP,YACE,WACI;KACE,GAAG,OAAO;KACV,OAAO;MACL,GAAG,OAAO,WAAW;MACrB,MAAM,GAAG,OAAO,WAAW,MAAM,MAAM,GAAG,WAAW,mBAAmB;KAC1E;IACF,IACA,OAAO;IAEb,SAAS,SAAS;IACZ;IACN,eAAe,SAAS;IACxB,qBAAqB,SAAS;IAC9B,kBACE,oBAAoB,YACf,MAAM,YAAY,SAAS;KAC1B,mBAAmB,MAAM,YAAmB,IAAI;KAChD,IAAI,QAAQ,CAAC,MAAM,QAAQ,IAAI,GAAG,WAAW,IAAI;IACnD,IACA,KAAA;IAEN,WAAW,GAAG,SAAgB;KAC5B,aAAa,MAAM,KAAK,EAAE;KAC1B,SAAU,SAAiB,GAAG,IAAI;IACpC;GACD,CAAA;EAEL;EACA,OAAO,cAAc;EACrB,OAAO;CACT;CAEA,OAAO;EACL,YAAY,UAAU;EACtB,aAAa,UAAU,SAAS,aAAa;EAC7C,eAAe,UAAU,WAAW,eAAe;EACnD,YAAY,UAAU,QAAQ,YAAY;EAC1C,YAAY,UAAU,QAAQ,YAAY;EAC1C,YAAY,UAAU,QAAQ,YAAY;CAC5C;AACF"}
1
+ {"version":3,"file":"SinglePicker.mjs","names":[],"sources":["../../../src/base-ui/DatePicker/SinglePicker.tsx"],"sourcesContent":["'use client';\n\nimport RcPicker from '@rc-component/picker';\nimport type { GenerateConfig } from '@rc-component/picker/generate';\nimport type { PickerMode } from '@rc-component/picker/interface';\nimport { X } from 'lucide-react';\n\nimport Icon from '@/Icon';\nimport { cx } from '@/utils/styleEngine';\n\nimport { normalizeLegacyDateProps } from './legacyDate';\nimport { usePickerLocale } from './locale';\nimport { PREFIX_CLS } from './style';\nimport type { GeneratedDatePicker, PickerProps, SinglePickerComponent } from './type';\nimport { usePanelKeyboard } from './usePanelKeyboard';\nimport { usePickerShared, withDefault } from './usePickerShared';\nimport { usePresetActive } from './usePresetActive';\n\nconst defaultRemoveIcon = <Icon icon={X} size={10} style={{ strokeWidth: 3 }} />;\n\n/**\n * antd `generateSinglePicker`: DatePicker over `generateConfig`'s date type, plus the\n * pickers whose `picker` is fixed (`DatePicker.WeekPicker`, …, `DatePicker.TimePicker`).\n */\nconst generateSinglePicker = <DateType extends object>(\n generateConfig: GenerateConfig<DateType>,\n) => {\n const getPicker = (presetPicker?: PickerMode, displayName = 'DatePicker') => {\n const Picker = (rawProps: PickerProps<DateType, any>) => {\n const props = normalizeLegacyDateProps(rawProps, generateConfig);\n const {\n allowClear,\n bordered,\n cellRender,\n changeOnBlur,\n className,\n clearIcon,\n classNames,\n components,\n dateRender,\n defaultOpen,\n defaultPickerValue,\n defaultValue,\n dropdownClassName,\n direction,\n footer,\n getPopupContainer,\n locale: localeOverride,\n max,\n maxDate,\n min,\n minDate,\n mode,\n monthCellRender,\n multiple,\n needConfirm,\n nextIcon,\n onKeyDown,\n onCalendarChange,\n onChange,\n onFocus,\n onOk,\n onOpenChange,\n onPanelChange,\n onPickerValueChange,\n onSelect,\n open,\n picker: pickerProp,\n pickerValue,\n placeholder,\n popupClassName,\n popupStyle,\n prevIcon,\n ref,\n removeIcon,\n renderExtraFooter,\n rootClassName,\n shadow,\n size,\n status,\n styles,\n suffixIcon,\n superNextIcon,\n superPrevIcon,\n transitionName,\n value,\n variant,\n ...rest\n } = props;\n const picker = presetPicker ?? pickerProp ?? 'date';\n const { locale, placeholder: defaultPlaceholder } = usePickerLocale(localeOverride);\n const keyboard = usePanelKeyboard({\n cellRender,\n dateRender,\n defaultOpen,\n defaultPickerValue,\n defaultValue,\n direction,\n generateConfig,\n mode,\n monthCellRender,\n onChange,\n onFocus,\n onOpenChange,\n onPanelChange,\n onPickerValueChange,\n open,\n picker,\n pickerValue,\n value,\n });\n const shared = usePickerShared({\n allowClear,\n bordered,\n changeOnBlur,\n className,\n clearIcon,\n classNames,\n components,\n defaultOpen,\n dropdownClassName,\n generateConfig,\n getPopupContainer,\n max,\n maxDate,\n min,\n minDate,\n needConfirm,\n nextIcon,\n onKeyDown,\n onOpenChange: keyboard.onOpenChange,\n open,\n picker,\n popupClassName,\n popupStyle,\n prevIcon,\n rootClassName: cx(keyboard.scopeClassName, rootClassName),\n semanticProps: props,\n shadow,\n size,\n status,\n styles,\n suffixIcon,\n superNextIcon,\n superPrevIcon,\n transitionName,\n variant,\n });\n\n const presetActive = usePresetActive(\n (rest as any).presets,\n multiple ? undefined : value,\n multiple ? undefined : defaultValue,\n );\n\n return (\n <RcPicker<DateType>\n {...rest}\n {...shared}\n presets={presetActive.presets as any}\n // No footer row by default: Today / Now only when asked for (showNow or the\n // deprecated showToday); showTime + needConfirm still shows OK.\n cellRender={keyboard.cellRender}\n dateRender={dateRender}\n defaultPickerValue={defaultPickerValue as any}\n defaultValue={defaultValue ?? undefined}\n direction={direction}\n locale={locale.lang}\n mode={mode as any}\n monthCellRender={monthCellRender}\n multiple={multiple}\n picker={picker}\n pickerValue={keyboard.pickerValue}\n placeholder={placeholder ?? defaultPlaceholder(picker)}\n ref={ref}\n removeIcon={withDefault(removeIcon, defaultRemoveIcon)}\n renderExtraFooter={renderExtraFooter ?? (footer ? () => footer : undefined)}\n showNow={(rest as any).showNow ?? (rest as any).showToday ?? false}\n value={value as any}\n classNames={\n multiple\n ? {\n ...shared.classNames,\n popup: {\n ...shared.classNames.popup,\n root: cx(shared.classNames.popup.root, `${PREFIX_CLS}-dropdown-multiple`),\n },\n }\n : shared.classNames\n }\n onFocus={keyboard.onFocus}\n onOk={onOk as any}\n onPanelChange={keyboard.onPanelChange}\n onPickerValueChange={keyboard.onPickerValueChange}\n onCalendarChange={\n onCalendarChange || onSelect\n ? (date, dateString, info) => {\n onCalendarChange?.(date, dateString as any, info);\n if (date && !Array.isArray(date)) onSelect?.(date);\n }\n : undefined\n }\n onChange={(...args: any[]) => {\n presetActive.track(args[0]);\n (keyboard.onChange as any)(...args);\n }}\n />\n );\n };\n Picker.displayName = displayName;\n return Picker as SinglePickerComponent<DateType, any>;\n };\n\n return {\n DatePicker: getPicker() as GeneratedDatePicker<DateType>,\n MonthPicker: getPicker('month', 'MonthPicker'),\n QuarterPicker: getPicker('quarter', 'QuarterPicker'),\n TimePicker: getPicker('time', 'TimePicker'),\n WeekPicker: getPicker('week', 'WeekPicker'),\n YearPicker: getPicker('year', 'YearPicker'),\n };\n};\n\nexport default generateSinglePicker;\n"],"mappings":";;;;;;;;;;;;;AAkBA,MAAM,oBAAoB,oBAAC,MAAD;CAAM,MAAM;CAAG,MAAM;CAAI,OAAO,EAAE,aAAa,EAAE;AAAI,CAAA;;;;;AAM/E,MAAM,wBACJ,mBACG;CACH,MAAM,aAAa,cAA2B,cAAc,iBAAiB;EAC3E,MAAM,UAAU,aAAyC;GACvD,MAAM,QAAQ,yBAAyB,UAAU,cAAc;GAC/D,MAAM,EACJ,YACA,UACA,YACA,cACA,WACA,WACA,YACA,YACA,YACA,aACA,oBACA,cACA,mBACA,WACA,QACA,mBACA,QAAQ,gBACR,KACA,SACA,KACA,SACA,MACA,iBACA,UACA,aACA,UACA,WACA,kBACA,UACA,SACA,MACA,cACA,eACA,qBACA,UACA,MACA,QAAQ,YACR,aACA,aACA,gBACA,YACA,UACA,KACA,YACA,mBACA,eACA,QACA,MACA,QACA,QACA,YACA,eACA,eACA,gBACA,OACA,SACA,GAAG,SACD;GACJ,MAAM,SAAS,gBAAgB,cAAc;GAC7C,MAAM,EAAE,QAAQ,aAAa,uBAAuB,gBAAgB,cAAc;GAClF,MAAM,WAAW,iBAAiB;IAChC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF,CAAC;GACD,MAAM,SAAS,gBAAgB;IAC7B;IACA;IACA;IACA;IACA;IAC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nD,YAAY,UAAU,QAAQ,YAAY;EAC1C,YAAY,UAAU,QAAQ,YAAY;EAC1C,YAAY,UAAU,QAAQ,YAAY;CAC5C;AACF"}
@@ -0,0 +1,52 @@
1
+ import generateConfig from "./generateConfig.mjs";
2
+ import dayjs from "dayjs";
3
+ //#region src/base-ui/DatePicker/dateGenerateConfig.ts
4
+ const c = generateConfig;
5
+ const inn = (value) => dayjs(value);
6
+ const out = (value) => value.toDate();
7
+ /**
8
+ * rc-picker config over native `Date`, built on the dayjs config (parsing, formatting, week
9
+ * rules and locales stay dayjs'). The default `DatePicker` / `DateRangePicker` use it so
10
+ * values, callbacks and `disabledDate` are native `Date`, as in the previous lobe DatePicker.
11
+ */
12
+ const dateGenerateConfig = {
13
+ addDate: (value, diff) => out(c.addDate(inn(value), diff)),
14
+ addMonth: (value, diff) => out(c.addMonth(inn(value), diff)),
15
+ addYear: (value, diff) => out(c.addYear(inn(value), diff)),
16
+ getDate: (value) => c.getDate(inn(value)),
17
+ getEndDate: (value) => out(c.getEndDate(inn(value))),
18
+ getFixedDate: (fixed) => out(c.getFixedDate(fixed)),
19
+ getHour: (value) => c.getHour(inn(value)),
20
+ getMillisecond: (value) => c.getMillisecond(inn(value)),
21
+ getMinute: (value) => c.getMinute(inn(value)),
22
+ getMonth: (value) => c.getMonth(inn(value)),
23
+ getNow: () => /* @__PURE__ */ new Date(),
24
+ getSecond: (value) => c.getSecond(inn(value)),
25
+ getWeekDay: (value) => c.getWeekDay(inn(value)),
26
+ getYear: (value) => c.getYear(inn(value)),
27
+ isAfter: (date1, date2) => c.isAfter(inn(date1), inn(date2)),
28
+ isValidate: (date) => date instanceof Date && !Number.isNaN(date.getTime()),
29
+ locale: {
30
+ format: (locale, date, format) => c.locale.format(locale, inn(date), format),
31
+ getShortMonths: c.locale.getShortMonths,
32
+ getShortWeekDays: c.locale.getShortWeekDays,
33
+ getWeek: (locale, value) => c.locale.getWeek(locale, inn(value)),
34
+ getWeekFirstDate: (locale, value) => out(c.locale.getWeekFirstDate(locale, inn(value))),
35
+ getWeekFirstDay: c.locale.getWeekFirstDay,
36
+ parse: (locale, text, formats) => {
37
+ const parsed = c.locale.parse(locale, text, formats);
38
+ return parsed ? out(parsed) : null;
39
+ }
40
+ },
41
+ setDate: (value, date) => out(c.setDate(inn(value), date)),
42
+ setHour: (value, hour) => out(c.setHour(inn(value), hour)),
43
+ setMillisecond: (value, ms) => out(c.setMillisecond(inn(value), ms)),
44
+ setMinute: (value, minute) => out(c.setMinute(inn(value), minute)),
45
+ setMonth: (value, month) => out(c.setMonth(inn(value), month)),
46
+ setSecond: (value, second) => out(c.setSecond(inn(value), second)),
47
+ setYear: (value, year) => out(c.setYear(inn(value), year))
48
+ };
49
+ //#endregion
50
+ export { dateGenerateConfig as default };
51
+
52
+ //# sourceMappingURL=dateGenerateConfig.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateGenerateConfig.mjs","names":["dayjsGenerateConfig"],"sources":["../../../src/base-ui/DatePicker/dateGenerateConfig.ts"],"sourcesContent":["import type { GenerateConfig } from '@rc-component/picker/generate';\nimport dayjs, { type Dayjs } from 'dayjs';\n\nimport dayjsGenerateConfig from './generateConfig';\n\nconst c = dayjsGenerateConfig;\nconst inn = (value: Date): Dayjs => dayjs(value);\nconst out = (value: Dayjs): Date => value.toDate();\n\n/**\n * rc-picker config over native `Date`, built on the dayjs config (parsing, formatting, week\n * rules and locales stay dayjs'). The default `DatePicker` / `DateRangePicker` use it so\n * values, callbacks and `disabledDate` are native `Date`, as in the previous lobe DatePicker.\n */\nconst dateGenerateConfig: GenerateConfig<Date> = {\n addDate: (value, diff) => out(c.addDate(inn(value), diff)),\n addMonth: (value, diff) => out(c.addMonth(inn(value), diff)),\n addYear: (value, diff) => out(c.addYear(inn(value), diff)),\n getDate: (value) => c.getDate(inn(value)),\n getEndDate: (value) => out(c.getEndDate(inn(value))),\n getFixedDate: (fixed) => out(c.getFixedDate(fixed)),\n getHour: (value) => c.getHour(inn(value)),\n getMillisecond: (value) => c.getMillisecond(inn(value)),\n getMinute: (value) => c.getMinute(inn(value)),\n getMonth: (value) => c.getMonth(inn(value)),\n getNow: () => new Date(),\n getSecond: (value) => c.getSecond(inn(value)),\n getWeekDay: (value) => c.getWeekDay(inn(value)),\n getYear: (value) => c.getYear(inn(value)),\n isAfter: (date1, date2) => c.isAfter(inn(date1), inn(date2)),\n isValidate: (date) => date instanceof Date && !Number.isNaN(date.getTime()),\n locale: {\n format: (locale, date, format) => c.locale.format(locale, inn(date), format),\n getShortMonths: c.locale.getShortMonths,\n getShortWeekDays: c.locale.getShortWeekDays,\n getWeek: (locale, value) => c.locale.getWeek(locale, inn(value)),\n getWeekFirstDate: (locale, value) => out(c.locale.getWeekFirstDate(locale, inn(value))),\n getWeekFirstDay: c.locale.getWeekFirstDay,\n parse: (locale, text, formats) => {\n const parsed = c.locale.parse(locale, text, formats);\n return parsed ? out(parsed) : null;\n },\n },\n setDate: (value, date) => out(c.setDate(inn(value), date)),\n setHour: (value, hour) => out(c.setHour(inn(value), hour)),\n setMillisecond: (value, ms) => out(c.setMillisecond(inn(value), ms)),\n setMinute: (value, minute) => out(c.setMinute(inn(value), minute)),\n setMonth: (value, month) => out(c.setMonth(inn(value), month)),\n setSecond: (value, second) => out(c.setSecond(inn(value), second)),\n setYear: (value, year) => out(c.setYear(inn(value), year)),\n};\n\nexport default dateGenerateConfig;\n"],"mappings":";;;AAKA,MAAM,IAAIA;AACV,MAAM,OAAO,UAAuB,MAAM,KAAK;AAC/C,MAAM,OAAO,UAAuB,MAAM,OAAO;;;;;;AAOjD,MAAM,qBAA2C;CAC/C,UAAU,OAAO,SAAS,IAAI,EAAE,QAAQ,IAAI,KAAK,GAAG,IAAI,CAAC;CACzD,WAAW,OAAO,SAAS,IAAI,EAAE,SAAS,IAAI,KAAK,GAAG,IAAI,CAAC;CAC3D,UAAU,OAAO,SAAS,IAAI,EAAE,QAAQ,IAAI,KAAK,GAAG,IAAI,CAAC;CACzD,UAAU,UAAU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E,QAAQ,IAAI,KAAK,GAAG,IAAI,CAAC;CACzD,iBAAiB,OAAO,OAAO,IAAI,EAAE,eAAe,IAAI,KAAK,GAAG,EAAE,CAAC;CACnE,YAAY,OAAO,WAAW,IAAI,EAAE,UAAU,IAAI,KAAK,GAAG,MAAM,CAAC;CACjE,WAAW,OAAO,UAAU,IAAI,EAAE,SAAS,IAAI,KAAK,GAAG,KAAK,CAAC;CAC7D,YAAY,OAAO,WAAW,IAAI,EAAE,UAAU,IAAI,KAAK,GAAG,MAAM,CAAC;CACjE,UAAU,OAAO,SAAS,IAAI,EAAE,QAAQ,IAAI,KAAK,GAAG,IAAI,CAAC;AAC3D"}
@@ -1,6 +1,8 @@
1
- import { CalendarMode, CellRender, CellRenderInfo, DatePickerBaseProps, DatePickerProps, DatePickerSemanticType, DatePickerType, DateRangePickerProps, DateRangeValue, GeneratedDatePicker, GenericTimePickerProps, MonthPickerProps, PanelMode, PickerClassNames, PickerComponents, PickerDateStrings, PickerLocale, PickerLocaleInput, PickerLocaleLang, PickerMode, PickerPanelProps, PickerPlacement, PickerPopupSemanticName, PickerProps, PickerPropsWithMultiple, PickerRef, PickerSemanticClassNames, PickerSemanticName, PickerSemanticStyles, PickerSize, PickerStatus, PickerStyles, PickerTagProps, PickerVariant, PresetDate, PresetPickerProps, QuarterPickerProps, RangeDisabledDate, RangeInfo, RangePickerComponent, RangePickerProps, RangePickerRef, SinglePickerComponent, TimePickerLocale, TimePickerProps, WeekPickerProps, YearPickerProps } from "./type.mjs";
1
+ import { CalendarMode, CellRender, CellRenderInfo, DatePickerBaseProps, DatePickerProps, DatePickerSemanticType, DatePickerType, DateRangePickerProps, DateRangeValue, DayjsDatePickerProps, DayjsDatePickerType, DayjsDateRangePickerProps, DayjsDateRangeValue, GeneratedDatePicker, GenericTimePickerProps, LegacyDateInput, MonthPickerProps, PanelMode, PickerClassNames, PickerComponents, PickerDateInput, PickerDateStrings, PickerLocale, PickerLocaleInput, PickerLocaleLang, PickerMode, PickerPanelProps, PickerPlacement, PickerPopupSemanticName, PickerProps, PickerPropsWithMultiple, PickerRef, PickerSemanticClassNames, PickerSemanticName, PickerSemanticStyles, PickerSize, PickerStatus, PickerStyles, PickerTagProps, PickerValueInput, PickerVariant, PresetDate, PresetPickerProps, QuarterPickerProps, RangeChangeDates, RangeChangeStrings, RangeDisabledDate, RangeInfo, RangePickerComponent, RangePickerProps, RangePickerRef, SinglePickerComponent, TimePickerLocale, TimePickerProps, WeekPickerProps, YearPickerProps } from "./type.mjs";
2
2
  import DatePicker from "./DatePicker.mjs";
3
3
  import DateRangePicker from "./DateRangePicker.mjs";
4
+ import DayjsDatePicker from "./DayjsDatePicker.mjs";
5
+ import DayjsDateRangePicker from "./DayjsDateRangePicker.mjs";
4
6
  import generatePicker from "./generatePicker.mjs";
5
7
  import { createPickerLocale, datePickerLocaleEnUS, datePickerLocaleZhCN } from "./locale.mjs";
6
- export { type CalendarMode, type CellRender, type CellRenderInfo, DatePicker, type DatePickerBaseProps, type DatePickerProps, type DatePickerSemanticType, type DatePickerType, DateRangePicker, type DateRangePickerProps, type DateRangeValue, type GeneratedDatePicker, type GenericTimePickerProps, type MonthPickerProps, type PanelMode, type PickerClassNames, type PickerComponents, type PickerDateStrings, type PickerLocale, type PickerLocaleInput, type PickerLocaleLang, type PickerMode, type PickerPanelProps, type PickerPlacement, type PickerPopupSemanticName, type PickerProps, type PickerPropsWithMultiple, type PickerRef, type PickerSemanticClassNames, type PickerSemanticName, type PickerSemanticStyles, type PickerSize, type PickerStatus, type PickerStyles, type PickerTagProps, type PickerVariant, type PresetDate, type PresetPickerProps, type QuarterPickerProps, type RangeDisabledDate, type RangeInfo, type RangePickerComponent, type RangePickerProps, type RangePickerRef, type SinglePickerComponent, type TimePickerLocale, type TimePickerProps, type WeekPickerProps, type YearPickerProps, createPickerLocale, datePickerLocaleEnUS, datePickerLocaleZhCN, generatePicker };
8
+ export { type CalendarMode, type CellRender, type CellRenderInfo, DatePicker, type DatePickerBaseProps, type DatePickerProps, type DatePickerSemanticType, type DatePickerType, DateRangePicker, type DateRangePickerProps, type DateRangeValue, DayjsDatePicker, type DayjsDatePickerProps, type DayjsDatePickerType, DayjsDateRangePicker, type DayjsDateRangePickerProps, type DayjsDateRangeValue, type GeneratedDatePicker, type GenericTimePickerProps, type LegacyDateInput, type MonthPickerProps, type PanelMode, type PickerClassNames, type PickerComponents, type PickerDateInput, type PickerDateStrings, type PickerLocale, type PickerLocaleInput, type PickerLocaleLang, type PickerMode, type PickerPanelProps, type PickerPlacement, type PickerPopupSemanticName, type PickerProps, type PickerPropsWithMultiple, type PickerRef, type PickerSemanticClassNames, type PickerSemanticName, type PickerSemanticStyles, type PickerSize, type PickerStatus, type PickerStyles, type PickerTagProps, type PickerValueInput, type PickerVariant, type PresetDate, type PresetPickerProps, type QuarterPickerProps, type RangeChangeDates, type RangeChangeStrings, type RangeDisabledDate, type RangeInfo, type RangePickerComponent, type RangePickerProps, type RangePickerRef, type SinglePickerComponent, type TimePickerLocale, type TimePickerProps, type WeekPickerProps, type YearPickerProps, createPickerLocale, datePickerLocaleEnUS, datePickerLocaleZhCN, generatePicker };
@@ -0,0 +1,58 @@
1
+ import generateConfig from "./generateConfig.mjs";
2
+ import dateGenerateConfig from "./dateGenerateConfig.mjs";
3
+ import dayjs from "dayjs";
4
+ //#region src/base-ui/DatePicker/legacyDate.ts
5
+ const DATE_KEYS = [
6
+ "defaultPickerValue",
7
+ "defaultValue",
8
+ "max",
9
+ "maxDate",
10
+ "min",
11
+ "minDate",
12
+ "pickerValue",
13
+ "value"
14
+ ];
15
+ const toDayjs = (v) => v instanceof Date || typeof v === "string" || typeof v === "number" ? dayjs(v) : v;
16
+ const toDate = (v) => {
17
+ if (dayjs.isDayjs(v)) return v.toDate();
18
+ if (typeof v === "string" || typeof v === "number") return dayjs(v).toDate();
19
+ return v;
20
+ };
21
+ const convertValue = (v, convert) => {
22
+ if (!Array.isArray(v)) return convert(v);
23
+ let changed = false;
24
+ const next = v.map((item) => {
25
+ const converted = item === null || item === void 0 ? item : convert(item);
26
+ if (converted !== item) changed = true;
27
+ return converted;
28
+ });
29
+ return changed ? next : v;
30
+ };
31
+ /**
32
+ * Normalises date props to the picker's date type, so both pickers take any of
33
+ * `Date` / `Dayjs` / date string / timestamp (also inside a range tuple or `multiple` array):
34
+ * the default (native `Date`) pickers convert `Dayjs` / strings / timestamps to `Date`, the
35
+ * dayjs pickers convert `Date` / strings / timestamps to `Dayjs`. Pickers generated over
36
+ * another date library get their props untouched.
37
+ */
38
+ const normalizeLegacyDateProps = (props, generateConfig$1) => {
39
+ const convert = generateConfig$1 === generateConfig ? toDayjs : generateConfig$1 === dateGenerateConfig ? toDate : void 0;
40
+ if (!convert) return props;
41
+ let next;
42
+ for (const key of DATE_KEYS) {
43
+ const v = props[key];
44
+ if (v === void 0 || v === null) continue;
45
+ const converted = convertValue(v, convert);
46
+ if (converted !== v) {
47
+ next ??= { ...props };
48
+ next[key] = converted;
49
+ }
50
+ }
51
+ return next ?? props;
52
+ };
53
+ /** The previous lobe DateRangePicker never passed `null`: a cleared range is `[null, null]`. */
54
+ const isNativeDateConfig = (generateConfig) => generateConfig === dateGenerateConfig;
55
+ //#endregion
56
+ export { isNativeDateConfig, normalizeLegacyDateProps };
57
+
58
+ //# sourceMappingURL=legacyDate.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacyDate.mjs","names":["generateConfig","dayjsGenerateConfig"],"sources":["../../../src/base-ui/DatePicker/legacyDate.ts"],"sourcesContent":["import dayjs from 'dayjs';\n\nimport dateGenerateConfig from './dateGenerateConfig';\nimport dayjsGenerateConfig from './generateConfig';\n\nconst DATE_KEYS = [\n 'defaultPickerValue',\n 'defaultValue',\n 'max',\n 'maxDate',\n 'min',\n 'minDate',\n 'pickerValue',\n 'value',\n] as const;\n\ntype Convert = (v: unknown) => unknown;\n\nconst toDayjs: Convert = (v) =>\n v instanceof Date || typeof v === 'string' || typeof v === 'number' ? dayjs(v) : v;\n\nconst toDate: Convert = (v) => {\n if (dayjs.isDayjs(v)) return v.toDate();\n if (typeof v === 'string' || typeof v === 'number') return dayjs(v).toDate();\n return v;\n};\n\nconst convertValue = (v: unknown, convert: Convert): unknown => {\n if (!Array.isArray(v)) return convert(v);\n let changed = false;\n const next = v.map((item) => {\n const converted = item === null || item === undefined ? item : convert(item);\n if (converted !== item) changed = true;\n return converted;\n });\n return changed ? next : v;\n};\n\n/**\n * Normalises date props to the picker's date type, so both pickers take any of\n * `Date` / `Dayjs` / date string / timestamp (also inside a range tuple or `multiple` array):\n * the default (native `Date`) pickers convert `Dayjs` / strings / timestamps to `Date`, the\n * dayjs pickers convert `Date` / strings / timestamps to `Dayjs`. Pickers generated over\n * another date library get their props untouched.\n */\nexport const normalizeLegacyDateProps = <P extends object>(\n props: P,\n generateConfig: unknown,\n): P => {\n const convert =\n generateConfig === dayjsGenerateConfig\n ? toDayjs\n : generateConfig === dateGenerateConfig\n ? toDate\n : undefined;\n if (!convert) return props;\n let next: P | undefined;\n for (const key of DATE_KEYS) {\n const v = (props as any)[key];\n if (v === undefined || v === null) continue;\n const converted = convertValue(v, convert);\n if (converted !== v) {\n next ??= { ...props };\n (next as any)[key] = converted;\n }\n }\n return next ?? props;\n};\n\n/** The previous lobe DateRangePicker never passed `null`: a cleared range is `[null, null]`. */\nexport const isNativeDateConfig = (generateConfig: unknown) =>\n generateConfig === dateGenerateConfig;\n"],"mappings":";;;;AAKA,MAAM,YAAY;CAChB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,MAAM,WAAoB,MACxB,aAAa,QAAQ,OAAO,MAAM,YAAY,OAAO,MAAM,WAAW,MAAM,CAAC,IAAI;AAEnF,MAAM,UAAmB,MAAM;CAC7B,IAAI,MAAM,QAAQ,CAAC,GAAG,OAAO,EAAE,OAAO;CACtC,IAAI,OAAO,MAAM,YAAY,OAAO,MAAM,UAAU,OAAO,MAAM,CAAC,CAAC,CAAC,OAAO;CAC3E,OAAO;AACT;AAEA,MAAM,gBAAgB,GAAY,YAA8B;CAC9D,IAAI,CAAC,MAAM,QAAQ,CAAC,GAAG,OAAO,QAAQ,CAAC;CACvC,IAAI,UAAU;CACd,MAAM,OAAO,EAAE,KAAK,SAAS;EAC3B,MAAM,YAAY,SAAS,QAAQ,SAAS,KAAA,IAAY,OAAO,QAAQ,IAAI;EAC3E,IAAI,cAAc,MAAM,UAAU;EAClC,OAAO;CACT,CAAC;CACD,OAAO,UAAU,OAAO;AAC1B;;;;;;;;AASA,MAAa,4BACX,OACA,qBACM;CACN,MAAM,UACJA,qBAAmBC,iBACf,UACAD,qBAAmB,qBACjB,SACA,KAAA;CACR,IAAI,CAAC,SAAS,OAAO;CACrB,IAAI;CACJ,KAAK,MAAM,OAAO,WAAW;EAC3B,MAAM,IAAK,MAAc;EACzB,IAAI,MAAM,KAAA,KAAa,MAAM,MAAM;EACnC,MAAM,YAAY,aAAa,GAAG,OAAO;EACzC,IAAI,cAAc,GAAG;GACnB,SAAS,EAAE,GAAG,MAAM;GACpB,KAAc,OAAO;EACvB;CACF;CACA,OAAO,QAAQ;AACjB;;AAGA,MAAa,sBAAsB,mBACjC,mBAAmB"}
@@ -28,15 +28,23 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
28
28
  `,
29
29
  root: css`
30
30
  /* ---------------------------------------------------------------- input box */
31
+
32
+ /* Size to content like antd: the shared Input root is width: 100%, which made the
33
+ picker stretch in a flex row and squeeze its siblings. Default to auto width (capped by
34
+ the container); a style / className width (e.g. 100%) still wins and the inputs grow. */
31
35
  &.${P} {
32
36
  position: relative;
37
+ width: auto;
38
+ max-width: 100%;
33
39
  }
34
40
 
41
+ /* flex-basis auto, not 0: the input keeps its natural width from rc-picker's size
42
+ attribute (format length + 2) instead of collapsing when the root is auto width. */
35
43
  &.${P} .${P}-input {
36
44
  position: relative;
37
45
 
38
46
  display: inline-flex;
39
- flex: 1;
47
+ flex: 1 1 auto;
40
48
  gap: 8px;
41
49
  align-items: center;
42
50
 
@@ -44,9 +52,9 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
44
52
  }
45
53
 
46
54
  &.${P} .${P}-input > input {
47
- flex: 1;
55
+ flex: 1 1 auto;
48
56
 
49
- width: 100%;
57
+ width: auto;
50
58
  min-width: 0;
51
59
  padding: 0;
52
60
  border: none;
@@ -336,7 +344,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({
336
344
 
337
345
  /* range: two inputs, a separator and the bar under the active field */
338
346
  &.${P}-range .${P}-input {
339
- flex: 1;
347
+ flex: 1 1 auto;
340
348
  }
341
349
 
342
350
  &.${P}-range .${P}-range-separator {
@@ -1 +1 @@
1
- {"version":3,"file":"style.mjs","names":[],"sources":["../../../src/base-ui/DatePicker/style.ts"],"sourcesContent":["import { focusRing } from '@/base-ui/focusRing';\nimport { createStaticStyles } from '@/utils/styleEngine';\n\n/** Own prefix so rc-picker class names never collide with antd's global `.ant-picker` CSS. */\nexport const PREFIX_CLS = 'lobe-picker';\n\nconst P = PREFIX_CLS;\nconst MOTION = `${P}-slide-up`;\n\n/**\n * Styles for rc-picker's class-name contract. `root` is passed as `rootClassName`, which\n * rc-picker puts on both the input box (`.lobe-picker`) and the popup\n * (`.lobe-picker-dropdown`); the box itself reuses base-ui Input's `rootVariants`.\n */\nexport const styles = createStaticStyles(({ css, cssVar }) => ({\n /** antd's `underlined`: only a bottom border, applied over Input's `borderless`. */\n underlined: css`\n &.${P} {\n border-block-end-color: ${cssVar.colorBorder};\n border-radius: 0;\n }\n\n &.${P}:hover:not(:focus-within, .${P}-disabled) {\n border-block-end-color: ${cssVar.colorPrimaryHover};\n }\n\n &.${P}:focus-within {\n border-block-end-color: ${cssVar.colorPrimary};\n }\n `,\n root: css`\n /* ---------------------------------------------------------------- input box */\n &.${P} {\n position: relative;\n }\n\n &.${P} .${P}-input {\n position: relative;\n\n display: inline-flex;\n flex: 1;\n gap: 8px;\n align-items: center;\n\n min-width: 0;\n }\n\n &.${P} .${P}-input > input {\n flex: 1;\n\n width: 100%;\n min-width: 0;\n padding: 0;\n border: none;\n\n font: inherit;\n font-variant-numeric: tabular-nums;\n color: inherit;\n text-overflow: ellipsis;\n\n appearance: none;\n background: transparent;\n outline: none;\n\n &::placeholder {\n color: ${cssVar.colorTextPlaceholder};\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n }\n\n /*\n * \\`disabled: [boolean, boolean]\\`: Input greys the whole root on \\`:has(input:disabled)\\`;\n * while one end stays editable (rc adds \\`-disabled\\` only when both are), grey just that end.\n */\n &.${P}-range:not(.${P}-disabled):has(input:disabled) {\n cursor: auto;\n color: ${cssVar.colorText};\n opacity: 1;\n }\n\n &.${P}-range:not(.${P}-disabled) .${P}-input:has(> input:disabled) {\n cursor: not-allowed;\n color: ${cssVar.colorTextQuaternary};\n }\n\n /* hover preview text from presets / cells */\n &.${P} .${P}-input-placeholder > input {\n color: ${cssVar.colorTextPlaceholder};\n }\n\n &.${P} .${P}-prefix {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: ${cssVar.colorTextTertiary};\n }\n\n &.${P} .${P}-suffix {\n pointer-events: none;\n\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n width: 16px;\n\n color: ${cssVar.colorTextTertiary};\n\n transition: opacity 150ms ${cssVar.motionEaseOut};\n }\n\n /* the clear button sits on top of the suffix icon (16px wide + 8px gap) */\n &.${P} .${P}-clear {\n cursor: pointer;\n\n position: relative;\n z-index: 1;\n\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n width: 16px;\n height: 16px;\n margin-inline-start: -24px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n\n color: ${cssVar.colorBgContainer};\n\n opacity: 0;\n background: ${cssVar.colorTextQuaternary};\n\n transition: opacity 150ms ${cssVar.motionEaseOut};\n\n &:hover {\n background: ${cssVar.colorTextTertiary};\n }\n }\n\n &.${P}:not(.${P}-disabled):hover .${P}-clear {\n opacity: 1;\n }\n\n &.${P}:not(.${P}-disabled):hover .${P}-suffix:not(:last-child) {\n opacity: 0;\n }\n\n &.${P}-disabled .${P}-clear {\n display: none;\n }\n\n /*\n * multiple: rc-picker's tags (\\`-selection-item\\`, also the \\`+ N ...\\` rest) in base-ui Tag's\n * filled look, sized as antd (control height - 8px) and wrapping the box when they overflow.\n */\n &.${P}-multiple {\n --lobe-picker-tag-height: 24px;\n\n cursor: pointer;\n padding-block: 1px;\n }\n\n &.${P}-multiple.${P}-small {\n --lobe-picker-tag-height: 16px;\n }\n\n &.${P}-multiple.${P}-large {\n --lobe-picker-tag-height: 32px;\n }\n\n &.${P}-multiple .${P}-selector {\n position: relative;\n flex: 1;\n min-width: 0;\n }\n\n &.${P}-multiple .${P}-selection-overflow {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n max-width: 100%;\n }\n\n &.${P}-multiple .${P}-selection-overflow-item {\n flex: none;\n max-width: 100%;\n }\n\n &.${P}-multiple .${P}-selection-item {\n display: flex;\n gap: 4px;\n align-items: center;\n\n box-sizing: border-box;\n max-width: 100%;\n height: var(--lobe-picker-tag-height);\n margin-block: 2px;\n margin-inline-end: 4px;\n padding-inline: 8px 4px;\n border-radius: ${cssVar.borderRadiusSM};\n\n font-size: ${cssVar.fontSizeSM};\n line-height: var(--lobe-picker-tag-height);\n color: ${cssVar.colorText};\n white-space: nowrap;\n\n background: ${cssVar.colorFillSecondary};\n }\n\n &.${P}-multiple.${P}-large .${P}-selection-item {\n font-size: ${cssVar.fontSize};\n }\n\n &.${P}-multiple .${P}-selection-item:not(:has(.${P}-selection-item-remove)) {\n padding-inline-end: 8px;\n }\n\n &.${P}-multiple .${P}-selection-item-content {\n overflow: hidden;\n font-variant-numeric: tabular-nums;\n text-overflow: ellipsis;\n }\n\n &.${P}-multiple .${P}-selection-item-remove {\n cursor: pointer;\n\n display: inline-flex;\n flex: none;\n align-items: center;\n\n color: ${cssVar.colorIcon};\n\n &:hover {\n color: ${cssVar.colorTextHeading};\n }\n }\n\n &.${P}-multiple .${P}-selection-placeholder {\n overflow: hidden;\n display: block;\n\n line-height: calc(var(--lobe-picker-tag-height) + 4px);\n color: ${cssVar.colorTextPlaceholder};\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n /* the selector shows the value; rc-picker keeps this readonly input only for focus */\n &.${P}-multiple .${P}-multiple-input {\n position: absolute;\n z-index: -1;\n\n width: 0;\n height: 0;\n padding: 0;\n border: 0;\n\n opacity: 0;\n }\n\n &.${P}-multiple.${P}-disabled {\n cursor: not-allowed;\n color: ${cssVar.colorTextQuaternary};\n opacity: 0.66;\n }\n\n /* status: border + focus ring per variant, as antd's genStatusStyle */\n &.${P}-status-error {\n --lobe-picker-status: ${cssVar.colorError};\n --lobe-picker-status-hover: ${cssVar.colorErrorBorderHover};\n --lobe-picker-status-bg: ${cssVar.colorErrorBg};\n --lobe-picker-status-bg-hover: ${cssVar.colorErrorBgHover};\n }\n\n &.${P}-status-warning {\n --lobe-picker-status: ${cssVar.colorWarning};\n --lobe-picker-status-hover: ${cssVar.colorWarningBorderHover};\n --lobe-picker-status-bg: ${cssVar.colorWarningBg};\n --lobe-picker-status-bg-hover: ${cssVar.colorWarningBgHover};\n }\n\n &:is(.${P}-status-error, .${P}-status-warning):not(.${P}-disabled) {\n &.${P}-outlined {\n border-color: var(--lobe-picker-status);\n\n &:hover:not(:focus-within) {\n border-color: var(--lobe-picker-status-hover);\n }\n\n &:focus-within {\n border-color: var(--lobe-picker-status);\n box-shadow: 0 0 0 2px var(--lobe-picker-status-bg);\n }\n }\n\n &.${P}-filled {\n background: var(--lobe-picker-status-bg);\n\n &:hover:not(:focus-within) {\n background: var(--lobe-picker-status-bg-hover);\n }\n\n &:focus-within {\n border-color: var(--lobe-picker-status);\n background: ${cssVar.colorBgContainer};\n }\n }\n\n &.${P}-underlined {\n border-block-end-color: var(--lobe-picker-status);\n }\n\n &:is(.${P}-borderless, .${P}-underlined) .${P}-input > input {\n color: var(--lobe-picker-status);\n }\n\n .${P}-prefix {\n color: var(--lobe-picker-status);\n }\n }\n\n /* rtl: rc-picker adds the -rtl modifier to the box and the popup; lucide arrows are mirrored */\n &.${P}-rtl, &.${P}-dropdown-rtl {\n direction: rtl;\n }\n\n &.${P}-rtl .${P}-range-separator .lucide,\n &.${P}-dropdown-rtl .${P}-header > button .lucide {\n transform: scaleX(-1);\n }\n\n /* range: two inputs, a separator and the bar under the active field */\n &.${P}-range .${P}-input {\n flex: 1;\n }\n\n &.${P}-range .${P}-range-separator {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: ${cssVar.colorTextTertiary};\n }\n\n &.${P}-range .${P}-active-bar {\n pointer-events: none;\n\n position: absolute;\n inset-block-end: -1px;\n\n height: 2px;\n\n opacity: 0;\n background: ${cssVar.colorPrimary};\n\n transition:\n inset-inline-start 200ms ${cssVar.motionEaseOut},\n width 200ms ${cssVar.motionEaseOut},\n opacity 200ms ${cssVar.motionEaseOut};\n }\n\n &.${P}-range.${P}-focused .${P}-active-bar {\n opacity: 1;\n }\n\n /* ---------------------------------------------------------------- popup */\n &.${P}-dropdown {\n /* nested in a base-ui Modal / Popover layer that sets pointer-events: none */\n pointer-events: auto;\n\n position: absolute;\n inset-block-start: -9999px;\n inset-inline-start: -9999px;\n\n font-size: 14px;\n color: ${cssVar.colorText};\n }\n\n &.${P}-dropdown-hidden {\n display: none;\n }\n\n &.${P}-dropdown .${P}-range-arrow {\n display: none;\n }\n\n /* rc-trigger stretches the popup to the input width; only the container is painted */\n &.${P}-dropdown .${P}-panel-container {\n overflow: hidden;\n display: inline-block;\n\n border-radius: 16px;\n\n vertical-align: top;\n\n background: ${cssVar.colorBgElevated};\n box-shadow: ${cssVar.boxShadow}, var(--lobe-ring);\n }\n\n &.${P}-dropdown .${P}-panel-layout {\n display: flex;\n align-items: stretch;\n }\n\n &.${P}-dropdown .${P}-panels {\n display: flex;\n flex-wrap: nowrap;\n }\n\n /* presets: a sidebar on the start side of the panels, as in antd */\n &.${P}-dropdown .${P}-presets {\n display: flex;\n flex-direction: column;\n\n min-width: 120px;\n max-width: 200px;\n\n /* divider one step lighter than the panel borders: light colorFillSecondary,\n dark colorFillTertiary (see the -dropdown-dark rule below) */\n border-inline-end: 1px solid ${cssVar.colorFillSecondary};\n\n /* slightly tinted; the panel container's radius + overflow clip it */\n background: ${cssVar.colorFillQuaternary};\n\n ul {\n overflow: auto;\n flex: auto;\n\n height: 0;\n margin: 0;\n padding: 6px;\n\n list-style: none;\n }\n\n li {\n cursor: pointer;\n\n overflow: hidden;\n\n padding-block: 4px;\n padding-inline: 8px;\n border-radius: 6px;\n\n font-size: 13px;\n line-height: 20px;\n color: ${cssVar.colorText};\n text-overflow: ellipsis;\n white-space: nowrap;\n\n transition: background-color 150ms ${cssVar.motionEaseOut};\n\n &:hover {\n background: ${cssVar.colorFillTertiary};\n }\n\n &:has(> .${P}-preset-active) {\n font-weight: 500;\n background: ${cssVar.colorFillSecondary};\n }\n }\n\n li + li {\n margin-block-start: 2px;\n }\n }\n\n /* dark: fill tokens are white-alpha and would lighten the sidebar, so darken it */\n &.${P}-dropdown.${P}-dropdown-dark .${P}-presets {\n border-inline-end-color: ${cssVar.colorFillTertiary};\n background: rgb(0 0 0 / 12%);\n }\n\n &.${P}-dropdown .${P}-panel {\n display: inline-flex;\n flex-direction: column;\n outline: none;\n }\n\n &.${P}-dropdown .${P}-panels > .${P}-panel + .${P}-panel {\n border-inline-start: 1px solid ${cssVar.colorBorderSecondary};\n }\n\n &.${P}-dropdown\n :is(\n .${P}-date-panel,\n .${P}-week-panel,\n .${P}-month-panel,\n .${P}-quarter-panel,\n .${P}-year-panel,\n .${P}-decade-panel\n ) {\n width: 288px;\n }\n\n /* header: << < [month year] > >> */\n &.${P}-dropdown .${P}-header {\n display: flex;\n gap: 2px;\n align-items: center;\n\n padding-block: 12px 4px;\n padding-inline: 12px;\n }\n\n &.${P}-dropdown .${P}-header > button {\n ${focusRing};\n cursor: pointer;\n\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n\n color: ${cssVar.colorTextSecondary};\n\n background: none;\n\n &:hover:not(:disabled) {\n color: ${cssVar.colorText};\n background: ${cssVar.colorFillTertiary};\n }\n }\n\n &.${P}-dropdown\n :is(\n .${P}-header-prev-btn-disabled,\n .${P}-header-next-btn-disabled,\n .${P}-header-super-prev-btn-disabled,\n .${P}-header-super-next-btn-disabled\n ) {\n cursor: not-allowed;\n opacity: 0.3;\n }\n\n &.${P}-dropdown .${P}-header-view {\n display: flex;\n flex: 1;\n gap: 4px;\n align-items: center;\n justify-content: center;\n\n min-width: 0;\n\n font-weight: 600;\n }\n\n &.${P}-dropdown .${P}-header-view > button {\n ${focusRing};\n cursor: pointer;\n\n padding-block: 2px;\n padding-inline: 4px;\n border: 0;\n border-radius: 6px;\n\n font: inherit;\n color: inherit;\n\n background: none;\n\n &:hover:not(:disabled) {\n color: ${cssVar.colorPrimary};\n }\n\n &:disabled {\n cursor: default;\n }\n }\n\n /* body + cells */\n &.${P}-dropdown .${P}-body {\n padding-block: 4px 12px;\n padding-inline: 12px;\n }\n\n &.${P}-dropdown .${P}-content {\n table-layout: fixed;\n border-collapse: collapse;\n width: 100%;\n }\n\n &.${P}-dropdown .${P}-content th {\n height: 28px;\n padding: 0;\n\n font-size: 12px;\n font-weight: 400;\n color: ${cssVar.colorTextTertiary};\n text-align: center;\n }\n\n &.${P}-dropdown .${P}-cell {\n cursor: pointer;\n\n position: relative;\n\n padding-block: 2px;\n padding-inline: 0;\n\n color: ${cssVar.colorTextQuaternary};\n text-align: center;\n\n &::before {\n content: '';\n\n position: absolute;\n z-index: 0;\n inset-block-start: 50%;\n inset-inline: 0;\n transform: translateY(-50%);\n\n height: 32px;\n }\n }\n\n &.${P}-dropdown .${P}-cell-in-view {\n color: ${cssVar.colorText};\n }\n\n &.${P}-dropdown .${P}-cell-inner {\n position: relative;\n z-index: 1;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n box-sizing: border-box;\n min-width: 32px;\n height: 32px;\n border-radius: 999px;\n\n font-size: 13px;\n font-variant-numeric: tabular-nums;\n\n transition:\n background 150ms ${cssVar.motionEaseOut},\n color 150ms ${cssVar.motionEaseOut};\n }\n\n &.${P}-dropdown\n .${P}-cell:not(\n .${P}-cell-disabled,\n .${P}-cell-selected,\n .${P}-cell-range-start,\n .${P}-cell-range-end\n ):hover\n .${P}-cell-inner {\n background: ${cssVar.colorFillTertiary};\n }\n\n /* today: bold only, no ring, fill or border */\n &.${P}-dropdown .${P}-cell-in-view.${P}-cell-today .${P}-cell-inner {\n font-weight: ${cssVar.fontWeightStrong};\n }\n\n &.${P}-dropdown\n :is(\n .${P}-cell-in-view.${P}-cell-selected,\n .${P}-cell-in-view.${P}-cell-range-start,\n .${P}-cell-in-view.${P}-cell-range-end\n )\n .${P}-cell-inner {\n font-weight: 600;\n color: ${cssVar.colorBgContainer};\n background: ${cssVar.colorText};\n }\n\n &.${P}-dropdown .${P}-cell-in-view.${P}-cell-in-range::before {\n background: ${cssVar.colorFillSecondary};\n }\n\n &.${P}-dropdown .${P}-cell-in-view.${P}-cell-range-start:not(.${P}-cell-range-end)::before {\n inset-inline-start: 50%;\n background: ${cssVar.colorFillSecondary};\n }\n\n &.${P}-dropdown .${P}-cell-in-view.${P}-cell-range-end:not(.${P}-cell-range-start)::before {\n inset-inline-end: 50%;\n background: ${cssVar.colorFillSecondary};\n }\n\n &.${P}-dropdown .${P}-cell-disabled {\n cursor: not-allowed;\n color: ${cssVar.colorTextQuaternary};\n }\n\n &.${P}-dropdown .${P}-cell-disabled::before {\n background: transparent;\n }\n\n /* month / quarter / year / decade: wider pills in a 3-column grid */\n &.${P}-dropdown\n :is(.${P}-month-panel, .${P}-quarter-panel, .${P}-year-panel, .${P}-decade-panel)\n .${P}-cell {\n padding-block: 8px;\n }\n\n &.${P}-dropdown\n :is(.${P}-month-panel, .${P}-quarter-panel, .${P}-year-panel, .${P}-decade-panel)\n .${P}-cell::before {\n height: 36px;\n }\n\n &.${P}-dropdown\n :is(.${P}-month-panel, .${P}-quarter-panel, .${P}-year-panel, .${P}-decade-panel)\n .${P}-cell-inner {\n min-width: 64px;\n height: 36px;\n padding-inline: 8px;\n font-size: 14px;\n }\n\n /* decade labels (\"2020-2029\") stay on one line */\n &.${P}-dropdown .${P}-decade-panel .${P}-cell-inner {\n padding-inline: 6px;\n font-size: 13px;\n white-space: nowrap;\n }\n\n /* week number column: always on the week panel, on the date panel with showWeek */\n &.${P}-dropdown :is(.${P}-week-panel, .${P}-date-panel-show-week) {\n width: 320px;\n }\n\n &.${P}-dropdown .${P}-cell-week {\n font-size: 12px;\n color: ${cssVar.colorTextTertiary};\n }\n\n &.${P}-dropdown .${P}-date-panel-show-week .${P}-cell-week {\n cursor: default;\n }\n\n /* week panel: the whole row is one tile, painted through each cell's band */\n &.${P}-dropdown .${P}-week-panel .${P}-cell:hover .${P}-cell-inner {\n background: none;\n }\n\n &.${P}-dropdown .${P}-week-panel .${P}-cell:first-child::before {\n inset-inline-start: 2px;\n border-start-start-radius: 999px;\n border-end-start-radius: 999px;\n }\n\n &.${P}-dropdown .${P}-week-panel .${P}-cell:last-child::before {\n inset-inline-end: 2px;\n border-start-end-radius: 999px;\n border-end-end-radius: 999px;\n }\n\n &.${P}-dropdown .${P}-week-panel-row:hover .${P}-cell::before {\n background: ${cssVar.colorFillTertiary};\n }\n\n &.${P}-dropdown\n .${P}-week-panel-row-range-hover\n .${P}-cell::before,\n &.${P}-dropdown\n .${P}-week-panel-row-hover\n .${P}-cell::before {\n background: ${cssVar.colorFillSecondary};\n }\n\n /* multiple: rc-picker marks every picked week but the first with \\`-row-hover\\` */\n &.${P}-dropdown\n :is(\n .${P}-week-panel-row-selected,\n .${P}-dropdown-multiple\n .${P}-week-panel-row-hover,\n .${P}-week-panel-row-range-start,\n .${P}-week-panel-row-range-end\n )\n .${P}-cell {\n color: ${cssVar.colorBgContainer};\n\n &::before {\n background: ${cssVar.colorText};\n }\n\n .${P}-cell-inner {\n font-weight: 600;\n box-shadow: none;\n }\n }\n\n /* keyboard: the tile arrow keys moved to on month / quarter / year / decade panels */\n &.${P}-dropdown .${P}-cell-keyboard-active {\n display: none;\n }\n\n &.${P}-dropdown .${P}-cell-in-view:has(> .${P}-cell-keyboard-active) .${P}-cell-inner {\n outline: 2px solid ${cssVar.colorPrimary};\n outline-offset: 1px;\n }\n\n /* time: hour / minute / second / meridiem columns, beside the date panel with showTime */\n &.${P}-dropdown .${P}-datetime-panel {\n display: flex;\n align-items: stretch;\n }\n\n &.${P}-dropdown .${P}-datetime-panel > .${P}-time-panel {\n border-inline-start: 1px solid ${cssVar.colorBorderSecondary};\n }\n\n &.${P}-dropdown .${P}-time-panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n &.${P}-dropdown .${P}-time-panel .${P}-header-view {\n height: 28px;\n font-variant-numeric: tabular-nums;\n }\n\n &.${P}-dropdown .${P}-time-panel .${P}-content {\n display: flex;\n flex: auto;\n\n height: 224px;\n padding-block: 4px 12px;\n padding-inline: 4px;\n }\n\n /* next to the date panel the columns take its height instead */\n &.${P}-dropdown .${P}-datetime-panel .${P}-time-panel .${P}-content {\n flex: 1 1 0;\n height: auto;\n min-height: 0;\n }\n\n &.${P}-dropdown .${P}-time-panel-column {\n scrollbar-width: thin;\n\n overflow-y: hidden;\n flex: none;\n\n width: 56px;\n margin: 0;\n padding: 0;\n\n list-style: none;\n\n /* lets the last option scroll up to the top, as in antd */\n &::after {\n content: '';\n display: block;\n height: calc(100% - 28px);\n }\n\n &:hover {\n overflow-y: auto;\n }\n }\n\n &.${P}-dropdown .${P}-time-panel-column + .${P}-time-panel-column {\n border-inline-start: 1px solid ${cssVar.colorBorderSecondary};\n }\n\n &.${P}-dropdown .${P}-time-panel-cell {\n cursor: pointer;\n padding-block: 1px;\n padding-inline: 4px;\n }\n\n &.${P}-dropdown .${P}-time-panel-cell-inner {\n height: 26px;\n border-radius: 6px;\n\n font-size: 13px;\n font-variant-numeric: tabular-nums;\n line-height: 26px;\n color: ${cssVar.colorText};\n text-align: center;\n\n transition:\n background 150ms ${cssVar.motionEaseOut},\n color 150ms ${cssVar.motionEaseOut};\n }\n\n &.${P}-dropdown\n .${P}-time-panel-cell:not(.${P}-time-panel-cell-disabled, .${P}-time-panel-cell-selected):hover\n .${P}-time-panel-cell-inner {\n background: ${cssVar.colorFillTertiary};\n }\n\n &.${P}-dropdown .${P}-time-panel-cell-selected .${P}-time-panel-cell-inner {\n font-weight: 600;\n color: ${cssVar.colorBgContainer};\n background: ${cssVar.colorText};\n }\n\n &.${P}-dropdown .${P}-time-panel-cell-disabled {\n cursor: not-allowed;\n\n .${P}-time-panel-cell-inner {\n color: ${cssVar.colorTextQuaternary};\n }\n }\n\n /* footer: no background of its own; dividers match the presets sidebar divider */\n\n /* footer: ONE row in one container — renderExtraFooter content on the start side,\n Today / Now / OK on the end side — under a single divider. No background. */\n &.${P}-dropdown .${P}-footer {\n display: flex;\n gap: 8px;\n align-items: center;\n\n min-width: 0;\n border-block-start: 1px solid ${cssVar.colorFillSecondary};\n\n background: none;\n }\n\n &.${P}-dropdown.${P}-dropdown-dark .${P}-footer {\n border-block-start-color: ${cssVar.colorFillTertiary};\n }\n\n &.${P}-dropdown .${P}-footer-extra {\n flex: 1;\n\n min-width: 0;\n padding-block: 8px;\n padding-inline: 12px;\n\n font-size: 13px;\n line-height: 20px;\n color: ${cssVar.colorTextSecondary};\n text-align: start;\n }\n\n &.${P}-dropdown .${P}-footer-extra + .${P}-ranges {\n flex: none;\n padding-inline-start: 0;\n }\n\n &.${P}-dropdown .${P}-ranges {\n display: flex;\n flex: 1;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n margin: 0;\n padding-block: 8px;\n padding-inline: 12px;\n\n list-style: none;\n }\n\n &.${P}-dropdown .${P}-ranges > .${P}-now {\n margin-inline: auto;\n }\n\n /* Now on the start side, OK on the end side */\n &.${P}-dropdown .${P}-ranges > .${P}-now:has(+ .${P}-ok) {\n margin-inline: 0;\n }\n\n &.${P}-dropdown .${P}-ranges > .${P}-ok {\n margin-inline-start: auto;\n }\n\n &.${P}-dropdown .${P}-now-btn {\n ${focusRing};\n cursor: pointer;\n\n padding-block: 2px;\n padding-inline: 8px;\n border-radius: 6px;\n\n font-size: 13px;\n color: ${cssVar.colorText};\n\n &:hover {\n background: ${cssVar.colorFillTertiary};\n }\n }\n\n &.${P}-dropdown .${P}-now-btn-disabled {\n cursor: not-allowed;\n color: ${cssVar.colorTextQuaternary};\n }\n\n /* motion (transitionName = lobe-picker-slide-up) */\n &.${MOTION}-appear, &.${MOTION}-enter {\n transform-origin: top center;\n }\n\n /* rc-motion's prepare frame is where the trigger measures and aligns the popup, so it\n must stay untransformed (a scaled box would misalign). Without an opacity of its own\n it painted fully visible at the final spot for one frame, then snapped back to the\n start state below and animated in again: that flash + jump read as jitter on open. */\n &.${MOTION}-appear-prepare, &.${MOTION}-enter-prepare {\n opacity: 0;\n }\n\n &.${MOTION}-appear-start, &.${MOTION}-enter-start {\n transform: translateY(-4px) scale(0.98);\n opacity: 0;\n }\n\n &.${MOTION}-appear-active, &.${MOTION}-enter-active {\n transform: none;\n opacity: 1;\n transition:\n opacity 150ms ${cssVar.motionEaseOut},\n transform 150ms ${cssVar.motionEaseOut};\n }\n\n &.${MOTION}-leave-active {\n transform: translateY(-4px) scale(0.98);\n opacity: 0;\n transition:\n opacity 100ms ${cssVar.motionEaseInOut},\n transform 100ms ${cssVar.motionEaseInOut};\n }\n `,\n}));\n"],"mappings":";;;;AAIA,MAAa,aAAa;AAE1B,MAAM,IAAI;AACV,MAAM,SAAS,GAAG,EAAE;;;;;;AAOpB,MAAa,SAAS,oBAAoB,EAAE,KAAK,cAAc;;CAE7D,YAAY,GAAG;QACT,EAAE;gCACsB,OAAO,YAAY;;;;QAI3C,EAAE,6BAA6B,EAAE;gCACT,OAAO,kBAAkB;;;QAGjD,EAAE;gCACsB,OAAO,aAAa;;;CAGlD,MAAM,GAAG;;QAEH,EAAE;;;;QAIF,EAAE,IAAI,EAAE;;;;;;;;;;;QAWR,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AE;QACjB,UAAU;;;;;;;;eAQH,OAAO,UAAU;;;sBAGV,OAAO,kBAAkB;;;;QAIvC,EAAE,aAAa,EAAE;;eAEV,OAAO,oBAAoB;;;;QAIlC,OAAO,aAAa,OAAO;;;;;;;;QAQ3B,OAAO,qBAAqB,OAAO;;;;QAInC,OAAO,mBAAmB,OAAO;;;;;QAKjC,OAAO,oBAAoB,OAAO;;;;wBAIlB,OAAO,cAAc;0BACnB,OAAO,cAAc;;;QAGvC,OAAO;;;;wBAIS,OAAO,gBAAgB;0BACrB,OAAO,gBAAgB;;;AAGjD,EAAE"}
1
+ {"version":3,"file":"style.mjs","names":[],"sources":["../../../src/base-ui/DatePicker/style.ts"],"sourcesContent":["import { focusRing } from '@/base-ui/focusRing';\nimport { createStaticStyles } from '@/utils/styleEngine';\n\n/** Own prefix so rc-picker class names never collide with antd's global `.ant-picker` CSS. */\nexport const PREFIX_CLS = 'lobe-picker';\n\nconst P = PREFIX_CLS;\nconst MOTION = `${P}-slide-up`;\n\n/**\n * Styles for rc-picker's class-name contract. `root` is passed as `rootClassName`, which\n * rc-picker puts on both the input box (`.lobe-picker`) and the popup\n * (`.lobe-picker-dropdown`); the box itself reuses base-ui Input's `rootVariants`.\n */\nexport const styles = createStaticStyles(({ css, cssVar }) => ({\n /** antd's `underlined`: only a bottom border, applied over Input's `borderless`. */\n underlined: css`\n &.${P} {\n border-block-end-color: ${cssVar.colorBorder};\n border-radius: 0;\n }\n\n &.${P}:hover:not(:focus-within, .${P}-disabled) {\n border-block-end-color: ${cssVar.colorPrimaryHover};\n }\n\n &.${P}:focus-within {\n border-block-end-color: ${cssVar.colorPrimary};\n }\n `,\n root: css`\n /* ---------------------------------------------------------------- input box */\n\n /* Size to content like antd: the shared Input root is width: 100%, which made the\n picker stretch in a flex row and squeeze its siblings. Default to auto width (capped by\n the container); a style / className width (e.g. 100%) still wins and the inputs grow. */\n &.${P} {\n position: relative;\n width: auto;\n max-width: 100%;\n }\n\n /* flex-basis auto, not 0: the input keeps its natural width from rc-picker's size\n attribute (format length + 2) instead of collapsing when the root is auto width. */\n &.${P} .${P}-input {\n position: relative;\n\n display: inline-flex;\n flex: 1 1 auto;\n gap: 8px;\n align-items: center;\n\n min-width: 0;\n }\n\n &.${P} .${P}-input > input {\n flex: 1 1 auto;\n\n width: auto;\n min-width: 0;\n padding: 0;\n border: none;\n\n font: inherit;\n font-variant-numeric: tabular-nums;\n color: inherit;\n text-overflow: ellipsis;\n\n appearance: none;\n background: transparent;\n outline: none;\n\n &::placeholder {\n color: ${cssVar.colorTextPlaceholder};\n }\n\n &:disabled {\n cursor: not-allowed;\n }\n }\n\n /*\n * \\`disabled: [boolean, boolean]\\`: Input greys the whole root on \\`:has(input:disabled)\\`;\n * while one end stays editable (rc adds \\`-disabled\\` only when both are), grey just that end.\n */\n &.${P}-range:not(.${P}-disabled):has(input:disabled) {\n cursor: auto;\n color: ${cssVar.colorText};\n opacity: 1;\n }\n\n &.${P}-range:not(.${P}-disabled) .${P}-input:has(> input:disabled) {\n cursor: not-allowed;\n color: ${cssVar.colorTextQuaternary};\n }\n\n /* hover preview text from presets / cells */\n &.${P} .${P}-input-placeholder > input {\n color: ${cssVar.colorTextPlaceholder};\n }\n\n &.${P} .${P}-prefix {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: ${cssVar.colorTextTertiary};\n }\n\n &.${P} .${P}-suffix {\n pointer-events: none;\n\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n width: 16px;\n\n color: ${cssVar.colorTextTertiary};\n\n transition: opacity 150ms ${cssVar.motionEaseOut};\n }\n\n /* the clear button sits on top of the suffix icon (16px wide + 8px gap) */\n &.${P} .${P}-clear {\n cursor: pointer;\n\n position: relative;\n z-index: 1;\n\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n width: 16px;\n height: 16px;\n margin-inline-start: -24px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n\n color: ${cssVar.colorBgContainer};\n\n opacity: 0;\n background: ${cssVar.colorTextQuaternary};\n\n transition: opacity 150ms ${cssVar.motionEaseOut};\n\n &:hover {\n background: ${cssVar.colorTextTertiary};\n }\n }\n\n &.${P}:not(.${P}-disabled):hover .${P}-clear {\n opacity: 1;\n }\n\n &.${P}:not(.${P}-disabled):hover .${P}-suffix:not(:last-child) {\n opacity: 0;\n }\n\n &.${P}-disabled .${P}-clear {\n display: none;\n }\n\n /*\n * multiple: rc-picker's tags (\\`-selection-item\\`, also the \\`+ N ...\\` rest) in base-ui Tag's\n * filled look, sized as antd (control height - 8px) and wrapping the box when they overflow.\n */\n &.${P}-multiple {\n --lobe-picker-tag-height: 24px;\n\n cursor: pointer;\n padding-block: 1px;\n }\n\n &.${P}-multiple.${P}-small {\n --lobe-picker-tag-height: 16px;\n }\n\n &.${P}-multiple.${P}-large {\n --lobe-picker-tag-height: 32px;\n }\n\n &.${P}-multiple .${P}-selector {\n position: relative;\n flex: 1;\n min-width: 0;\n }\n\n &.${P}-multiple .${P}-selection-overflow {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n max-width: 100%;\n }\n\n &.${P}-multiple .${P}-selection-overflow-item {\n flex: none;\n max-width: 100%;\n }\n\n &.${P}-multiple .${P}-selection-item {\n display: flex;\n gap: 4px;\n align-items: center;\n\n box-sizing: border-box;\n max-width: 100%;\n height: var(--lobe-picker-tag-height);\n margin-block: 2px;\n margin-inline-end: 4px;\n padding-inline: 8px 4px;\n border-radius: ${cssVar.borderRadiusSM};\n\n font-size: ${cssVar.fontSizeSM};\n line-height: var(--lobe-picker-tag-height);\n color: ${cssVar.colorText};\n white-space: nowrap;\n\n background: ${cssVar.colorFillSecondary};\n }\n\n &.${P}-multiple.${P}-large .${P}-selection-item {\n font-size: ${cssVar.fontSize};\n }\n\n &.${P}-multiple .${P}-selection-item:not(:has(.${P}-selection-item-remove)) {\n padding-inline-end: 8px;\n }\n\n &.${P}-multiple .${P}-selection-item-content {\n overflow: hidden;\n font-variant-numeric: tabular-nums;\n text-overflow: ellipsis;\n }\n\n &.${P}-multiple .${P}-selection-item-remove {\n cursor: pointer;\n\n display: inline-flex;\n flex: none;\n align-items: center;\n\n color: ${cssVar.colorIcon};\n\n &:hover {\n color: ${cssVar.colorTextHeading};\n }\n }\n\n &.${P}-multiple .${P}-selection-placeholder {\n overflow: hidden;\n display: block;\n\n line-height: calc(var(--lobe-picker-tag-height) + 4px);\n color: ${cssVar.colorTextPlaceholder};\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n /* the selector shows the value; rc-picker keeps this readonly input only for focus */\n &.${P}-multiple .${P}-multiple-input {\n position: absolute;\n z-index: -1;\n\n width: 0;\n height: 0;\n padding: 0;\n border: 0;\n\n opacity: 0;\n }\n\n &.${P}-multiple.${P}-disabled {\n cursor: not-allowed;\n color: ${cssVar.colorTextQuaternary};\n opacity: 0.66;\n }\n\n /* status: border + focus ring per variant, as antd's genStatusStyle */\n &.${P}-status-error {\n --lobe-picker-status: ${cssVar.colorError};\n --lobe-picker-status-hover: ${cssVar.colorErrorBorderHover};\n --lobe-picker-status-bg: ${cssVar.colorErrorBg};\n --lobe-picker-status-bg-hover: ${cssVar.colorErrorBgHover};\n }\n\n &.${P}-status-warning {\n --lobe-picker-status: ${cssVar.colorWarning};\n --lobe-picker-status-hover: ${cssVar.colorWarningBorderHover};\n --lobe-picker-status-bg: ${cssVar.colorWarningBg};\n --lobe-picker-status-bg-hover: ${cssVar.colorWarningBgHover};\n }\n\n &:is(.${P}-status-error, .${P}-status-warning):not(.${P}-disabled) {\n &.${P}-outlined {\n border-color: var(--lobe-picker-status);\n\n &:hover:not(:focus-within) {\n border-color: var(--lobe-picker-status-hover);\n }\n\n &:focus-within {\n border-color: var(--lobe-picker-status);\n box-shadow: 0 0 0 2px var(--lobe-picker-status-bg);\n }\n }\n\n &.${P}-filled {\n background: var(--lobe-picker-status-bg);\n\n &:hover:not(:focus-within) {\n background: var(--lobe-picker-status-bg-hover);\n }\n\n &:focus-within {\n border-color: var(--lobe-picker-status);\n background: ${cssVar.colorBgContainer};\n }\n }\n\n &.${P}-underlined {\n border-block-end-color: var(--lobe-picker-status);\n }\n\n &:is(.${P}-borderless, .${P}-underlined) .${P}-input > input {\n color: var(--lobe-picker-status);\n }\n\n .${P}-prefix {\n color: var(--lobe-picker-status);\n }\n }\n\n /* rtl: rc-picker adds the -rtl modifier to the box and the popup; lucide arrows are mirrored */\n &.${P}-rtl, &.${P}-dropdown-rtl {\n direction: rtl;\n }\n\n &.${P}-rtl .${P}-range-separator .lucide,\n &.${P}-dropdown-rtl .${P}-header > button .lucide {\n transform: scaleX(-1);\n }\n\n /* range: two inputs, a separator and the bar under the active field */\n &.${P}-range .${P}-input {\n flex: 1 1 auto;\n }\n\n &.${P}-range .${P}-range-separator {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: ${cssVar.colorTextTertiary};\n }\n\n &.${P}-range .${P}-active-bar {\n pointer-events: none;\n\n position: absolute;\n inset-block-end: -1px;\n\n height: 2px;\n\n opacity: 0;\n background: ${cssVar.colorPrimary};\n\n transition:\n inset-inline-start 200ms ${cssVar.motionEaseOut},\n width 200ms ${cssVar.motionEaseOut},\n opacity 200ms ${cssVar.motionEaseOut};\n }\n\n &.${P}-range.${P}-focused .${P}-active-bar {\n opacity: 1;\n }\n\n /* ---------------------------------------------------------------- popup */\n &.${P}-dropdown {\n /* nested in a base-ui Modal / Popover layer that sets pointer-events: none */\n pointer-events: auto;\n\n position: absolute;\n inset-block-start: -9999px;\n inset-inline-start: -9999px;\n\n font-size: 14px;\n color: ${cssVar.colorText};\n }\n\n &.${P}-dropdown-hidden {\n display: none;\n }\n\n &.${P}-dropdown .${P}-range-arrow {\n display: none;\n }\n\n /* rc-trigger stretches the popup to the input width; only the container is painted */\n &.${P}-dropdown .${P}-panel-container {\n overflow: hidden;\n display: inline-block;\n\n border-radius: 16px;\n\n vertical-align: top;\n\n background: ${cssVar.colorBgElevated};\n box-shadow: ${cssVar.boxShadow}, var(--lobe-ring);\n }\n\n &.${P}-dropdown .${P}-panel-layout {\n display: flex;\n align-items: stretch;\n }\n\n &.${P}-dropdown .${P}-panels {\n display: flex;\n flex-wrap: nowrap;\n }\n\n /* presets: a sidebar on the start side of the panels, as in antd */\n &.${P}-dropdown .${P}-presets {\n display: flex;\n flex-direction: column;\n\n min-width: 120px;\n max-width: 200px;\n\n /* divider one step lighter than the panel borders: light colorFillSecondary,\n dark colorFillTertiary (see the -dropdown-dark rule below) */\n border-inline-end: 1px solid ${cssVar.colorFillSecondary};\n\n /* slightly tinted; the panel container's radius + overflow clip it */\n background: ${cssVar.colorFillQuaternary};\n\n ul {\n overflow: auto;\n flex: auto;\n\n height: 0;\n margin: 0;\n padding: 6px;\n\n list-style: none;\n }\n\n li {\n cursor: pointer;\n\n overflow: hidden;\n\n padding-block: 4px;\n padding-inline: 8px;\n border-radius: 6px;\n\n font-size: 13px;\n line-height: 20px;\n color: ${cssVar.colorText};\n text-overflow: ellipsis;\n white-space: nowrap;\n\n transition: background-color 150ms ${cssVar.motionEaseOut};\n\n &:hover {\n background: ${cssVar.colorFillTertiary};\n }\n\n &:has(> .${P}-preset-active) {\n font-weight: 500;\n background: ${cssVar.colorFillSecondary};\n }\n }\n\n li + li {\n margin-block-start: 2px;\n }\n }\n\n /* dark: fill tokens are white-alpha and would lighten the sidebar, so darken it */\n &.${P}-dropdown.${P}-dropdown-dark .${P}-presets {\n border-inline-end-color: ${cssVar.colorFillTertiary};\n background: rgb(0 0 0 / 12%);\n }\n\n &.${P}-dropdown .${P}-panel {\n display: inline-flex;\n flex-direction: column;\n outline: none;\n }\n\n &.${P}-dropdown .${P}-panels > .${P}-panel + .${P}-panel {\n border-inline-start: 1px solid ${cssVar.colorBorderSecondary};\n }\n\n &.${P}-dropdown\n :is(\n .${P}-date-panel,\n .${P}-week-panel,\n .${P}-month-panel,\n .${P}-quarter-panel,\n .${P}-year-panel,\n .${P}-decade-panel\n ) {\n width: 288px;\n }\n\n /* header: << < [month year] > >> */\n &.${P}-dropdown .${P}-header {\n display: flex;\n gap: 2px;\n align-items: center;\n\n padding-block: 12px 4px;\n padding-inline: 12px;\n }\n\n &.${P}-dropdown .${P}-header > button {\n ${focusRing};\n cursor: pointer;\n\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n\n color: ${cssVar.colorTextSecondary};\n\n background: none;\n\n &:hover:not(:disabled) {\n color: ${cssVar.colorText};\n background: ${cssVar.colorFillTertiary};\n }\n }\n\n &.${P}-dropdown\n :is(\n .${P}-header-prev-btn-disabled,\n .${P}-header-next-btn-disabled,\n .${P}-header-super-prev-btn-disabled,\n .${P}-header-super-next-btn-disabled\n ) {\n cursor: not-allowed;\n opacity: 0.3;\n }\n\n &.${P}-dropdown .${P}-header-view {\n display: flex;\n flex: 1;\n gap: 4px;\n align-items: center;\n justify-content: center;\n\n min-width: 0;\n\n font-weight: 600;\n }\n\n &.${P}-dropdown .${P}-header-view > button {\n ${focusRing};\n cursor: pointer;\n\n padding-block: 2px;\n padding-inline: 4px;\n border: 0;\n border-radius: 6px;\n\n font: inherit;\n color: inherit;\n\n background: none;\n\n &:hover:not(:disabled) {\n color: ${cssVar.colorPrimary};\n }\n\n &:disabled {\n cursor: default;\n }\n }\n\n /* body + cells */\n &.${P}-dropdown .${P}-body {\n padding-block: 4px 12px;\n padding-inline: 12px;\n }\n\n &.${P}-dropdown .${P}-content {\n table-layout: fixed;\n border-collapse: collapse;\n width: 100%;\n }\n\n &.${P}-dropdown .${P}-content th {\n height: 28px;\n padding: 0;\n\n font-size: 12px;\n font-weight: 400;\n color: ${cssVar.colorTextTertiary};\n text-align: center;\n }\n\n &.${P}-dropdown .${P}-cell {\n cursor: pointer;\n\n position: relative;\n\n padding-block: 2px;\n padding-inline: 0;\n\n color: ${cssVar.colorTextQuaternary};\n text-align: center;\n\n &::before {\n content: '';\n\n position: absolute;\n z-index: 0;\n inset-block-start: 50%;\n inset-inline: 0;\n transform: translateY(-50%);\n\n height: 32px;\n }\n }\n\n &.${P}-dropdown .${P}-cell-in-view {\n color: ${cssVar.colorText};\n }\n\n &.${P}-dropdown .${P}-cell-inner {\n position: relative;\n z-index: 1;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n box-sizing: border-box;\n min-width: 32px;\n height: 32px;\n border-radius: 999px;\n\n font-size: 13px;\n font-variant-numeric: tabular-nums;\n\n transition:\n background 150ms ${cssVar.motionEaseOut},\n color 150ms ${cssVar.motionEaseOut};\n }\n\n &.${P}-dropdown\n .${P}-cell:not(\n .${P}-cell-disabled,\n .${P}-cell-selected,\n .${P}-cell-range-start,\n .${P}-cell-range-end\n ):hover\n .${P}-cell-inner {\n background: ${cssVar.colorFillTertiary};\n }\n\n /* today: bold only, no ring, fill or border */\n &.${P}-dropdown .${P}-cell-in-view.${P}-cell-today .${P}-cell-inner {\n font-weight: ${cssVar.fontWeightStrong};\n }\n\n &.${P}-dropdown\n :is(\n .${P}-cell-in-view.${P}-cell-selected,\n .${P}-cell-in-view.${P}-cell-range-start,\n .${P}-cell-in-view.${P}-cell-range-end\n )\n .${P}-cell-inner {\n font-weight: 600;\n color: ${cssVar.colorBgContainer};\n background: ${cssVar.colorText};\n }\n\n &.${P}-dropdown .${P}-cell-in-view.${P}-cell-in-range::before {\n background: ${cssVar.colorFillSecondary};\n }\n\n &.${P}-dropdown .${P}-cell-in-view.${P}-cell-range-start:not(.${P}-cell-range-end)::before {\n inset-inline-start: 50%;\n background: ${cssVar.colorFillSecondary};\n }\n\n &.${P}-dropdown .${P}-cell-in-view.${P}-cell-range-end:not(.${P}-cell-range-start)::before {\n inset-inline-end: 50%;\n background: ${cssVar.colorFillSecondary};\n }\n\n &.${P}-dropdown .${P}-cell-disabled {\n cursor: not-allowed;\n color: ${cssVar.colorTextQuaternary};\n }\n\n &.${P}-dropdown .${P}-cell-disabled::before {\n background: transparent;\n }\n\n /* month / quarter / year / decade: wider pills in a 3-column grid */\n &.${P}-dropdown\n :is(.${P}-month-panel, .${P}-quarter-panel, .${P}-year-panel, .${P}-decade-panel)\n .${P}-cell {\n padding-block: 8px;\n }\n\n &.${P}-dropdown\n :is(.${P}-month-panel, .${P}-quarter-panel, .${P}-year-panel, .${P}-decade-panel)\n .${P}-cell::before {\n height: 36px;\n }\n\n &.${P}-dropdown\n :is(.${P}-month-panel, .${P}-quarter-panel, .${P}-year-panel, .${P}-decade-panel)\n .${P}-cell-inner {\n min-width: 64px;\n height: 36px;\n padding-inline: 8px;\n font-size: 14px;\n }\n\n /* decade labels (\"2020-2029\") stay on one line */\n &.${P}-dropdown .${P}-decade-panel .${P}-cell-inner {\n padding-inline: 6px;\n font-size: 13px;\n white-space: nowrap;\n }\n\n /* week number column: always on the week panel, on the date panel with showWeek */\n &.${P}-dropdown :is(.${P}-week-panel, .${P}-date-panel-show-week) {\n width: 320px;\n }\n\n &.${P}-dropdown .${P}-cell-week {\n font-size: 12px;\n color: ${cssVar.colorTextTertiary};\n }\n\n &.${P}-dropdown .${P}-date-panel-show-week .${P}-cell-week {\n cursor: default;\n }\n\n /* week panel: the whole row is one tile, painted through each cell's band */\n &.${P}-dropdown .${P}-week-panel .${P}-cell:hover .${P}-cell-inner {\n background: none;\n }\n\n &.${P}-dropdown .${P}-week-panel .${P}-cell:first-child::before {\n inset-inline-start: 2px;\n border-start-start-radius: 999px;\n border-end-start-radius: 999px;\n }\n\n &.${P}-dropdown .${P}-week-panel .${P}-cell:last-child::before {\n inset-inline-end: 2px;\n border-start-end-radius: 999px;\n border-end-end-radius: 999px;\n }\n\n &.${P}-dropdown .${P}-week-panel-row:hover .${P}-cell::before {\n background: ${cssVar.colorFillTertiary};\n }\n\n &.${P}-dropdown\n .${P}-week-panel-row-range-hover\n .${P}-cell::before,\n &.${P}-dropdown\n .${P}-week-panel-row-hover\n .${P}-cell::before {\n background: ${cssVar.colorFillSecondary};\n }\n\n /* multiple: rc-picker marks every picked week but the first with \\`-row-hover\\` */\n &.${P}-dropdown\n :is(\n .${P}-week-panel-row-selected,\n .${P}-dropdown-multiple\n .${P}-week-panel-row-hover,\n .${P}-week-panel-row-range-start,\n .${P}-week-panel-row-range-end\n )\n .${P}-cell {\n color: ${cssVar.colorBgContainer};\n\n &::before {\n background: ${cssVar.colorText};\n }\n\n .${P}-cell-inner {\n font-weight: 600;\n box-shadow: none;\n }\n }\n\n /* keyboard: the tile arrow keys moved to on month / quarter / year / decade panels */\n &.${P}-dropdown .${P}-cell-keyboard-active {\n display: none;\n }\n\n &.${P}-dropdown .${P}-cell-in-view:has(> .${P}-cell-keyboard-active) .${P}-cell-inner {\n outline: 2px solid ${cssVar.colorPrimary};\n outline-offset: 1px;\n }\n\n /* time: hour / minute / second / meridiem columns, beside the date panel with showTime */\n &.${P}-dropdown .${P}-datetime-panel {\n display: flex;\n align-items: stretch;\n }\n\n &.${P}-dropdown .${P}-datetime-panel > .${P}-time-panel {\n border-inline-start: 1px solid ${cssVar.colorBorderSecondary};\n }\n\n &.${P}-dropdown .${P}-time-panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n &.${P}-dropdown .${P}-time-panel .${P}-header-view {\n height: 28px;\n font-variant-numeric: tabular-nums;\n }\n\n &.${P}-dropdown .${P}-time-panel .${P}-content {\n display: flex;\n flex: auto;\n\n height: 224px;\n padding-block: 4px 12px;\n padding-inline: 4px;\n }\n\n /* next to the date panel the columns take its height instead */\n &.${P}-dropdown .${P}-datetime-panel .${P}-time-panel .${P}-content {\n flex: 1 1 0;\n height: auto;\n min-height: 0;\n }\n\n &.${P}-dropdown .${P}-time-panel-column {\n scrollbar-width: thin;\n\n overflow-y: hidden;\n flex: none;\n\n width: 56px;\n margin: 0;\n padding: 0;\n\n list-style: none;\n\n /* lets the last option scroll up to the top, as in antd */\n &::after {\n content: '';\n display: block;\n height: calc(100% - 28px);\n }\n\n &:hover {\n overflow-y: auto;\n }\n }\n\n &.${P}-dropdown .${P}-time-panel-column + .${P}-time-panel-column {\n border-inline-start: 1px solid ${cssVar.colorBorderSecondary};\n }\n\n &.${P}-dropdown .${P}-time-panel-cell {\n cursor: pointer;\n padding-block: 1px;\n padding-inline: 4px;\n }\n\n &.${P}-dropdown .${P}-time-panel-cell-inner {\n height: 26px;\n border-radius: 6px;\n\n font-size: 13px;\n font-variant-numeric: tabular-nums;\n line-height: 26px;\n color: ${cssVar.colorText};\n text-align: center;\n\n transition:\n background 150ms ${cssVar.motionEaseOut},\n color 150ms ${cssVar.motionEaseOut};\n }\n\n &.${P}-dropdown\n .${P}-time-panel-cell:not(.${P}-time-panel-cell-disabled, .${P}-time-panel-cell-selected):hover\n .${P}-time-panel-cell-inner {\n background: ${cssVar.colorFillTertiary};\n }\n\n &.${P}-dropdown .${P}-time-panel-cell-selected .${P}-time-panel-cell-inner {\n font-weight: 600;\n color: ${cssVar.colorBgContainer};\n background: ${cssVar.colorText};\n }\n\n &.${P}-dropdown .${P}-time-panel-cell-disabled {\n cursor: not-allowed;\n\n .${P}-time-panel-cell-inner {\n color: ${cssVar.colorTextQuaternary};\n }\n }\n\n /* footer: no background of its own; dividers match the presets sidebar divider */\n\n /* footer: ONE row in one container — renderExtraFooter content on the start side,\n Today / Now / OK on the end side — under a single divider. No background. */\n &.${P}-dropdown .${P}-footer {\n display: flex;\n gap: 8px;\n align-items: center;\n\n min-width: 0;\n border-block-start: 1px solid ${cssVar.colorFillSecondary};\n\n background: none;\n }\n\n &.${P}-dropdown.${P}-dropdown-dark .${P}-footer {\n border-block-start-color: ${cssVar.colorFillTertiary};\n }\n\n &.${P}-dropdown .${P}-footer-extra {\n flex: 1;\n\n min-width: 0;\n padding-block: 8px;\n padding-inline: 12px;\n\n font-size: 13px;\n line-height: 20px;\n color: ${cssVar.colorTextSecondary};\n text-align: start;\n }\n\n &.${P}-dropdown .${P}-footer-extra + .${P}-ranges {\n flex: none;\n padding-inline-start: 0;\n }\n\n &.${P}-dropdown .${P}-ranges {\n display: flex;\n flex: 1;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n margin: 0;\n padding-block: 8px;\n padding-inline: 12px;\n\n list-style: none;\n }\n\n &.${P}-dropdown .${P}-ranges > .${P}-now {\n margin-inline: auto;\n }\n\n /* Now on the start side, OK on the end side */\n &.${P}-dropdown .${P}-ranges > .${P}-now:has(+ .${P}-ok) {\n margin-inline: 0;\n }\n\n &.${P}-dropdown .${P}-ranges > .${P}-ok {\n margin-inline-start: auto;\n }\n\n &.${P}-dropdown .${P}-now-btn {\n ${focusRing};\n cursor: pointer;\n\n padding-block: 2px;\n padding-inline: 8px;\n border-radius: 6px;\n\n font-size: 13px;\n color: ${cssVar.colorText};\n\n &:hover {\n background: ${cssVar.colorFillTertiary};\n }\n }\n\n &.${P}-dropdown .${P}-now-btn-disabled {\n cursor: not-allowed;\n color: ${cssVar.colorTextQuaternary};\n }\n\n /* motion (transitionName = lobe-picker-slide-up) */\n &.${MOTION}-appear, &.${MOTION}-enter {\n transform-origin: top center;\n }\n\n /* rc-motion's prepare frame is where the trigger measures and aligns the popup, so it\n must stay untransformed (a scaled box would misalign). Without an opacity of its own\n it painted fully visible at the final spot for one frame, then snapped back to the\n start state below and animated in again: that flash + jump read as jitter on open. */\n &.${MOTION}-appear-prepare, &.${MOTION}-enter-prepare {\n opacity: 0;\n }\n\n &.${MOTION}-appear-start, &.${MOTION}-enter-start {\n transform: translateY(-4px) scale(0.98);\n opacity: 0;\n }\n\n &.${MOTION}-appear-active, &.${MOTION}-enter-active {\n transform: none;\n opacity: 1;\n transition:\n opacity 150ms ${cssVar.motionEaseOut},\n transform 150ms ${cssVar.motionEaseOut};\n }\n\n &.${MOTION}-leave-active {\n transform: translateY(-4px) scale(0.98);\n opacity: 0;\n transition:\n opacity 100ms ${cssVar.motionEaseInOut},\n transform 100ms ${cssVar.motionEaseInOut};\n }\n `,\n}));\n"],"mappings":";;;;AAIA,MAAa,aAAa;AAE1B,MAAM,IAAI;AACV,MAAM,SAAS,GAAG,EAAE;;;;;;AAOpB,MAAa,SAAS,oBAAoB,EAAE,KAAK,cAAc;;CAE7D,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,mBAAmB,EAAE;;;;;QAKtC,EAAE,aAAa,EAAE;;;;;;;;;;;;;;QAcjB,EAAE,aAAa,EAAE,aAAa,EAAE;;;;;QAKhC,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE;;;;QAIhD,EAAE,aAAa,EAAE,aAAa,EAAE;;;;QAIhC,EAAE,aAAa,EAAE;QACjB,UAAU;;;;;;;;eAQH,OAAO,UAAU;;;sBAGV,OAAO,kBAAkB;;;;QAIvC,EAAE,aAAa,EAAE;;eAEV,OAAO,oBAAoB;;;;QAIlC,OAAO,aAAa,OAAO;;;;;;;;QAQ3B,OAAO,qBAAqB,OAAO;;;;QAInC,OAAO,mBAAmB,OAAO;;;;;QAKjC,OAAO,oBAAoB,OAAO;;;;wBAIlB,OAAO,cAAc;0BACnB,OAAO,cAAc;;;QAGvC,OAAO;;;;wBAIS,OAAO,gBAAgB;0BACrB,OAAO,gBAAgB;;;AAGjD,EAAE"}
@@ -45,11 +45,11 @@ type PickerLocaleInput = Omit<Partial<PickerLocale>, 'lang' | 'timePickerLocale'
45
45
  timePickerLocale?: TimePickerLocale;
46
46
  };
47
47
  /** A `presets` entry: `value` may be a function, evaluated when the preset is hovered or picked. */
48
- type PresetDate<T = Dayjs> = ValueDate<T>;
48
+ type PresetDate<T = Date> = ValueDate<T>;
49
49
  /** `components`: replace a panel (`date` / `week` / … / `time`), the `input` or the OK `button`. */
50
- type PickerComponents = Components<Dayjs>;
50
+ type PickerComponents = Components<Date>;
51
51
  /** Props a custom panel in `components` receives (`value`, `onSelect`, `onHover`, …). */
52
- type PickerPanelProps = SharedPanelProps<Dayjs>;
52
+ type PickerPanelProps<DateType extends object = Date> = SharedPanelProps<DateType>;
53
53
  /** `middle` is kept as an alias of `medium`. */
54
54
  type PickerSize = 'large' | 'medium' | 'small' | 'middle';
55
55
  type PickerVariant = 'outlined' | 'borderless' | 'filled' | 'underlined';
@@ -108,7 +108,7 @@ interface LobePickerProps {
108
108
  variant?: PickerVariant;
109
109
  }
110
110
  /** Props `tagRender` receives for each picked date in `multiple` mode. */
111
- interface PickerTagProps<DateType extends object = Dayjs> {
111
+ interface PickerTagProps<DateType extends object = Date> {
112
112
  closable: boolean;
113
113
  disabled: boolean;
114
114
  /** The date formatted with `format`. */
@@ -119,25 +119,39 @@ interface PickerTagProps<DateType extends object = Dayjs> {
119
119
  }
120
120
  /** `dateString` of a value: a string per date in `multiple` mode. */
121
121
  type PickerDateStrings<ValueType> = ValueType extends readonly unknown[] ? string[] : string | null;
122
+ /**
123
+ * Date inputs the previous lobe DatePicker took (native `Date`), plus date strings and
124
+ * timestamps. On the dayjs pickers they are converted to `Dayjs`; callbacks always get `Dayjs`.
125
+ */
126
+ type LegacyDateInput = Date | string | number;
127
+ /** A date prop value: `Dayjs` or a `LegacyDateInput` on the dayjs pickers, else `DateType`. */
128
+ type PickerDateInput<DateType> = DateType extends Dayjs ? Dayjs | LegacyDateInput : DateType extends Date ? Dayjs | LegacyDateInput : DateType;
129
+ /** Range `onChange` dates: never `null` on the default (native `Date`) picker, as before. */
130
+ type RangeChangeDates<DateType extends object> = DateType extends Date ? DateRangeValue<DateType> : DateRangeValue<DateType> | null;
131
+ type RangeChangeStrings<DateType extends object> = DateType extends Date ? [string, string] : [string, string] | null;
132
+ /** `PickerDateInput` for a single value or each date of a `multiple` array. */
133
+ type PickerValueInput<ValueType> = ValueType extends readonly (infer D)[] ? PickerDateInput<D>[] : PickerDateInput<ValueType>;
122
134
  /**
123
135
  * antd's `PickerPropsWithMultiple`: `InnerPickerProps` with the value props typed by
124
136
  * `ValueType` — `DateType` for one date, `DateType[]` with `multiple`.
125
137
  */
126
138
  type PickerPropsWithMultiple<DateType, InnerPickerProps, ValueType = DateType> = Omit<InnerPickerProps, 'defaultValue' | 'onCalendarChange' | 'onChange' | 'onOk' | 'value'> & {
127
- defaultValue?: ValueType | null;
128
- onCalendarChange?: (date: ValueType | null, dateString: PickerDateStrings<ValueType>, info: BaseInfo) => void;
139
+ /** Also takes a native `Date`, date string or timestamp (converted to `Dayjs`). */
140
+ defaultValue?: PickerValueInput<ValueType> | null;
141
+ onCalendarChange?(date: ValueType | null, dateString: PickerDateStrings<ValueType>, info: BaseInfo): void;
129
142
  /** Cleared: `null` for one date, `[]` with `multiple`. */
130
- onChange?: (date: ValueType | null, dateString: PickerDateStrings<ValueType>) => void;
131
- onOk?: (date?: ValueType | null) => void;
132
- value?: ValueType | null;
143
+ onChange?(date: ValueType | null, dateString: PickerDateStrings<ValueType>): void;
144
+ onOk?(date?: ValueType | null): void;
145
+ /** Also takes a native `Date`, date string or timestamp (converted to `Dayjs`). */
146
+ value?: PickerValueInput<ValueType> | null;
133
147
  };
134
148
  /**
135
149
  * DatePicker props other than the value ones, which `PickerPropsWithMultiple` adds.
136
150
  * `DateType` is the date library's type (`Dayjs`, or another one with `generatePicker`).
137
151
  */
138
- interface DatePickerBaseProps<DateType extends object = Dayjs> extends Omit<PickerProps<DateType>, InternalRcProps | MultipleRcProps | ValueRcProps>, LobePickerProps {
152
+ interface DatePickerBaseProps<DateType extends object = Date> extends Omit<PickerProps<DateType>, InternalRcProps | MultipleRcProps | ValueRcProps>, LobePickerProps {
139
153
  /** Semantic DOM class names: `root` / `prefix` / `input` / `suffix` and `popup.*`. */
140
- classNames?: PickerClassNames<DatePickerProps<any>>;
154
+ classNames?: PickerClassNames<DatePickerBaseProps<DateType>>;
141
155
  /** @deprecated Use `renderExtraFooter` instead. */
142
156
  footer?: ReactNode;
143
157
  /**
@@ -147,14 +161,14 @@ interface DatePickerBaseProps<DateType extends object = Dayjs> extends Omit<Pick
147
161
  */
148
162
  locale?: PickerLocaleInput;
149
163
  /** @deprecated Use `maxDate` instead. */
150
- max?: DateType;
164
+ max?: PickerDateInput<DateType>;
151
165
  /**
152
166
  * `multiple`: at most this many tags; `'responsive'` fits as many as the width allows.
153
167
  * The rest collapse into a `+ N ...` tag.
154
168
  */
155
169
  maxTagCount?: number | 'responsive';
156
170
  /** @deprecated Use `minDate` instead. */
157
- min?: DateType;
171
+ min?: PickerDateInput<DateType>;
158
172
  /**
159
173
  * Pick several dates, shown as tags; clicking a picked cell again removes it. Works on
160
174
  * every `picker` except with `showTime`. Values are `Dayjs[]`, sorted unless
@@ -174,7 +188,7 @@ interface DatePickerBaseProps<DateType extends object = Dayjs> extends Omit<Pick
174
188
  /** `multiple`: the remove icon of each tag. */
175
189
  removeIcon?: ReactNode;
176
190
  /** Semantic DOM styles: `root` / `prefix` / `input` / `suffix` and `popup.*`. */
177
- styles?: PickerStyles<DatePickerProps<any>>;
191
+ styles?: PickerStyles<DatePickerBaseProps<DateType>>;
178
192
  /** `multiple`: render each picked date's tag, e.g. with base-ui `Tag`. */
179
193
  tagRender?: (props: PickerTagProps<DateType>) => ReactNode;
180
194
  }
@@ -182,19 +196,19 @@ interface DatePickerBaseProps<DateType extends object = Dayjs> extends Omit<Pick
182
196
  * `ValueType` is `Dayjs` (default) or `Dayjs[]` with `multiple`; `<DatePicker multiple>`
183
197
  * infers `Dayjs[]` by itself.
184
198
  */
185
- type DatePickerProps<ValueType = Dayjs> = PickerPropsWithMultiple<Dayjs, DatePickerBaseProps, ValueType>;
186
- type DateRangeValue<DateType extends object = Dayjs> = [DateType | null, DateType | null];
199
+ type DatePickerProps<ValueType = Date> = PickerPropsWithMultiple<Date, DatePickerBaseProps, ValueType>;
200
+ type DateRangeValue<DateType extends object = Date> = [DateType | null, DateType | null];
187
201
  /** Which end of a range an event belongs to. */
188
202
  interface RangeInfo {
189
203
  range: 'start' | 'end';
190
204
  }
191
205
  /** `info.from` is the end picked first in the current range selection. */
192
- type RangeDisabledDate<DateType extends object = Dayjs> = (current: DateType, info: {
206
+ type RangeDisabledDate<DateType extends object = Date> = (current: DateType, info: {
193
207
  from?: DateType;
194
208
  type: PanelMode;
195
209
  }) => boolean;
196
210
  type RangeRcProps = 'allowEmpty' | 'disabled' | 'disabledDate' | 'id' | 'onBlur' | 'onFocus' | 'order';
197
- interface DateRangePickerProps<DateType extends object = Dayjs> extends Omit<RangePickerProps<DateType>, InternalRcProps | RangeRcProps | ValueRcProps>, LobePickerProps {
211
+ interface DateRangePickerProps<DateType extends object = Date> extends Omit<RangePickerProps<DateType>, InternalRcProps | RangeRcProps | ValueRcProps>, LobePickerProps {
198
212
  /**
199
213
  * Allow leaving the start / end empty; `true` applies to both ends.
200
214
  * @default [false, false]
@@ -202,7 +216,8 @@ interface DateRangePickerProps<DateType extends object = Dayjs> extends Omit<Ran
202
216
  allowEmpty?: boolean | [boolean, boolean];
203
217
  /** Semantic DOM class names, see `DatePickerProps['classNames']`. */
204
218
  classNames?: PickerClassNames<DateRangePickerProps<DateType>>;
205
- defaultValue?: [DateType | null | undefined, DateType | null | undefined];
219
+ /** Each end also takes a native `Date`, date string or timestamp (converted to `Dayjs`). */
220
+ defaultValue?: [PickerDateInput<DateType> | null | undefined, PickerDateInput<DateType> | null | undefined];
206
221
  /** Disable the whole picker, or each end separately with `[start, end]`. */
207
222
  disabled?: boolean | [boolean, boolean];
208
223
  /** Receives `info.from` once one end is picked, e.g. to limit the range length. */
@@ -217,14 +232,16 @@ interface DateRangePickerProps<DateType extends object = Dayjs> extends Omit<Ran
217
232
  /** antd `PickerLocale`, see `DatePickerProps['locale']`. */
218
233
  locale?: PickerLocaleInput;
219
234
  /** @deprecated Use `maxDate` instead. */
220
- max?: DateType;
235
+ max?: PickerDateInput<DateType>;
221
236
  /** @deprecated Use `minDate` instead. */
222
- min?: DateType;
237
+ min?: PickerDateInput<DateType>;
223
238
  onBlur?: (event: FocusEvent<HTMLElement>, info: RangeInfo) => void;
224
- onCalendarChange?: (dates: DateRangeValue<DateType>, dateStrings: [string, string], info: RangeInfo) => void;
225
- onChange?: (dates: DateRangeValue<DateType> | null, dateStrings: [string, string] | null) => void;
239
+ onCalendarChange?(dates: DateRangeValue<DateType>, dateStrings: [string, string], info: RangeInfo): void;
240
+ /** Cleared: `null` (antd). */
241
+ /** Cleared: `[null, null]` on the default (native `Date`) picker, `null` on the dayjs one (antd). */
242
+ onChange?(dates: RangeChangeDates<DateType>, dateStrings: RangeChangeStrings<DateType>): void;
226
243
  onFocus?: (event: FocusEvent<HTMLElement>, info: RangeInfo) => void;
227
- onOk?: (dates: DateRangeValue<DateType>) => void;
244
+ onOk?(dates: DateRangeValue<DateType>): void;
228
245
  /**
229
246
  * Swap the ends when the end is earlier than the start; `false` keeps them as entered.
230
247
  * @default true
@@ -235,21 +252,22 @@ interface DateRangePickerProps<DateType extends object = Dayjs> extends Omit<Ran
235
252
  ref?: Ref<RangePickerRef>;
236
253
  /** Semantic DOM styles, see `DatePickerProps['styles']`. */
237
254
  styles?: PickerStyles<DateRangePickerProps<DateType>>;
238
- value?: [DateType | null | undefined, DateType | null | undefined] | null;
255
+ /** Each end also takes a native `Date`, date string or timestamp (converted to `Dayjs`). */
256
+ value?: [PickerDateInput<DateType> | null | undefined, PickerDateInput<DateType> | null | undefined] | null;
239
257
  }
240
258
  /** antd `PickerProps<DateType>`: DatePicker props over any date library's type. */
241
- type PickerProps$1<DateType extends object = Dayjs, ValueType = DateType> = PickerPropsWithMultiple<DateType, DatePickerBaseProps<DateType>, ValueType>;
259
+ type PickerProps$1<DateType extends object = Date, ValueType = DateType> = PickerPropsWithMultiple<DateType, DatePickerBaseProps<DateType>, ValueType>;
242
260
  /** Props of `DatePicker.WeekPicker` / `MonthPicker` / … : `picker` is fixed. */
243
- type PresetPickerProps<DateType extends object = Dayjs, ValueType = DateType> = Omit<PickerProps$1<DateType, ValueType>, 'picker'>;
244
- type WeekPickerProps<ValueType = Dayjs> = PresetPickerProps<Dayjs, ValueType>;
245
- type MonthPickerProps<ValueType = Dayjs> = PresetPickerProps<Dayjs, ValueType>;
246
- type YearPickerProps<ValueType = Dayjs> = PresetPickerProps<Dayjs, ValueType>;
247
- type QuarterPickerProps<ValueType = Dayjs> = PresetPickerProps<Dayjs, ValueType>;
261
+ type PresetPickerProps<DateType extends object = Date, ValueType = DateType> = Omit<PickerProps$1<DateType, ValueType>, 'picker'>;
262
+ type WeekPickerProps<ValueType = Date> = PresetPickerProps<Date, ValueType>;
263
+ type MonthPickerProps<ValueType = Date> = PresetPickerProps<Date, ValueType>;
264
+ type YearPickerProps<ValueType = Date> = PresetPickerProps<Date, ValueType>;
265
+ type QuarterPickerProps<ValueType = Date> = PresetPickerProps<Date, ValueType>;
248
266
  /** antd `GenericTimePickerProps`: `DatePicker.TimePicker` has no `picker` / `showTime`. */
249
- type GenericTimePickerProps<DateType extends object = Dayjs, ValueType = DateType> = Omit<PickerProps$1<DateType, ValueType>, 'picker' | 'showTime'>;
250
- type TimePickerProps<ValueType = Dayjs> = GenericTimePickerProps<Dayjs, ValueType>;
267
+ type GenericTimePickerProps<DateType extends object = Date, ValueType = DateType> = Omit<PickerProps$1<DateType, ValueType>, 'picker' | 'showTime'>;
268
+ type TimePickerProps<ValueType = Date> = GenericTimePickerProps<Date, ValueType>;
251
269
  /** antd-style alias of `DateRangePickerProps`. */
252
- type RangePickerProps$1<DateType extends object = Dayjs> = DateRangePickerProps<DateType>;
270
+ type RangePickerProps$1<DateType extends object = Date> = DateRangePickerProps<DateType>;
253
271
  /** antd `DatePickerSemanticType`: the Semantic DOM `classNames` / `styles` shapes. */
254
272
  interface DatePickerSemanticType {
255
273
  classNames?: PickerSemanticClassNames;
@@ -278,14 +296,22 @@ interface GeneratedDatePicker<DateType extends object> extends SinglePickerCompo
278
296
  WeekPicker: SinglePickerComponent<DateType, Omit<DatePickerBaseProps<DateType>, 'picker'>>;
279
297
  YearPicker: SinglePickerComponent<DateType, Omit<DatePickerBaseProps<DateType>, 'picker'>>;
280
298
  }
281
- /** The default `DatePicker` (Dayjs), with antd's pure panels and `generatePicker`. */
282
- interface DatePickerType extends GeneratedDatePicker<Dayjs> {
299
+ /** The default `DatePicker` (native `Date`) or `DayjsDatePicker`, with antd's pure panels and `generatePicker`. */
300
+ interface DatePickerType<D extends object = Date> extends GeneratedDatePicker<D> {
283
301
  /** Debug only: the popup panel rendered inline, always open (antd `render-panel`). */
284
- _InternalPanelDoNotUseOrYouWillBeFired: ComponentType<DatePickerProps<any>>;
302
+ _InternalPanelDoNotUseOrYouWillBeFired: ComponentType<PickerPropsWithMultiple<D, DatePickerBaseProps<D>, any>>;
285
303
  /** Debug only: the RangePicker popup panel rendered inline, always open. */
286
- _InternalRangePanelDoNotUseOrYouWillBeFired: ComponentType<DateRangePickerProps>;
304
+ _InternalRangePanelDoNotUseOrYouWillBeFired: ComponentType<DateRangePickerProps<D>>;
287
305
  generatePicker: <DateType extends object>(generateConfig: GenerateConfig<DateType>) => GeneratedDatePicker<DateType>;
288
306
  }
307
+ /** `DayjsDatePicker`: the antd-aligned DatePicker over `Dayjs`. */
308
+ type DayjsDatePickerType = DatePickerType<Dayjs>;
309
+ /** `DayjsDatePicker` props: values and callbacks use `Dayjs` (`Dayjs[]` with `multiple`). */
310
+ type DayjsDatePickerProps<ValueType = Dayjs> = PickerPropsWithMultiple<Dayjs, DatePickerBaseProps<Dayjs>, ValueType>;
311
+ /** `DayjsDateRangePicker` props. */
312
+ type DayjsDateRangePickerProps = DateRangePickerProps<Dayjs>;
313
+ /** `DayjsDateRangePicker` value: `[Dayjs | null, Dayjs | null]`. */
314
+ type DayjsDateRangeValue = DateRangeValue<Dayjs>;
289
315
  //#endregion
290
- export { CalendarMode, type CellRender, type CellRenderInfo, DatePickerBaseProps, DatePickerProps, DatePickerSemanticType, DatePickerType, DateRangePickerProps, DateRangeValue, GeneratedDatePicker, GenericTimePickerProps, MonthPickerProps, type PanelMode, PickerClassNames, PickerComponents, PickerDateStrings, PickerLocale, PickerLocaleInput, PickerLocaleLang, type PickerMode, PickerPanelProps, PickerPlacement, PickerPopupSemanticName, PickerProps$1 as PickerProps, PickerPropsWithMultiple, type PickerRef, PickerSemanticClassNames, PickerSemanticName, PickerSemanticStyles, PickerSize, PickerStatus, PickerStyles, PickerTagProps, PickerVariant, PresetDate, PresetPickerProps, QuarterPickerProps, RangeDisabledDate, RangeInfo, RangePickerComponent, RangePickerProps$1 as RangePickerProps, type RangePickerRef, SinglePickerComponent, TimePickerLocale, TimePickerProps, WeekPickerProps, YearPickerProps };
316
+ export { CalendarMode, type CellRender, type CellRenderInfo, DatePickerBaseProps, DatePickerProps, DatePickerSemanticType, DatePickerType, DateRangePickerProps, DateRangeValue, DayjsDatePickerProps, DayjsDatePickerType, DayjsDateRangePickerProps, DayjsDateRangeValue, GeneratedDatePicker, GenericTimePickerProps, LegacyDateInput, MonthPickerProps, type PanelMode, PickerClassNames, PickerComponents, PickerDateInput, PickerDateStrings, PickerLocale, PickerLocaleInput, PickerLocaleLang, type PickerMode, PickerPanelProps, PickerPlacement, PickerPopupSemanticName, PickerProps$1 as PickerProps, PickerPropsWithMultiple, type PickerRef, PickerSemanticClassNames, PickerSemanticName, PickerSemanticStyles, PickerSize, PickerStatus, PickerStyles, PickerTagProps, PickerValueInput, PickerVariant, PresetDate, PresetPickerProps, QuarterPickerProps, RangeChangeDates, RangeChangeStrings, RangeDisabledDate, RangeInfo, RangePickerComponent, RangePickerProps$1 as RangePickerProps, type RangePickerRef, SinglePickerComponent, TimePickerLocale, TimePickerProps, WeekPickerProps, YearPickerProps };
291
317
  //# sourceMappingURL=type.d.mts.map
@@ -5,6 +5,7 @@ import { jsx } from "react/jsx-runtime";
5
5
  const sameDay = (a, b) => {
6
6
  if (!a || !b) return !a && !b;
7
7
  if (typeof a.isSame === "function") return a.isSame(b, "day");
8
+ if (a instanceof Date && b instanceof Date) return a.toDateString() === b.toDateString();
8
9
  return a === b;
9
10
  };
10
11
  const sameValue = (a, b) => {
@@ -1 +1 @@
1
- {"version":3,"file":"usePresetActive.mjs","names":[],"sources":["../../../src/base-ui/DatePicker/usePresetActive.tsx"],"sourcesContent":["import { type ReactNode, useCallback, useMemo, useState } from 'react';\n\nimport { PREFIX_CLS } from './style';\n\ninterface Preset {\n label: ReactNode;\n value: unknown;\n}\n\nconst sameDay = (a: any, b: any): boolean => {\n if (!a || !b) return !a && !b;\n if (typeof a.isSame === 'function') return a.isSame(b, 'day');\n return a === b;\n};\n\nconst sameValue = (a: any, b: any): boolean => {\n if (Array.isArray(a) || Array.isArray(b)) {\n if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;\n return a.every((item, i) => sameDay(item, b[i]));\n }\n return sameDay(a, b);\n};\n\nexport const PRESET_ACTIVE_CLS = `${PREFIX_CLS}-preset-active`;\n\n/**\n * rc-picker renders `presets` as the popup sidebar but has no \"current preset\" state.\n * Mirror the picked value (controlled or not) and wrap the matching preset's label so the\n * sidebar can show it as selected (`li:has(> .lobe-picker-preset-active)`).\n */\nexport const usePresetActive = <P extends Preset>(\n presets: P[] | undefined,\n value: unknown,\n defaultValue: unknown,\n) => {\n const [inner, setInner] = useState<unknown>(defaultValue);\n const current = value !== undefined ? value : inner;\n\n const track = useCallback((next: unknown) => setInner(next), []);\n\n const mapped = useMemo(() => {\n if (!presets?.length || !current) return presets;\n return presets.map((preset) => {\n const v =\n typeof preset.value === 'function' ? (preset.value as () => unknown)() : preset.value;\n if (!sameValue(v, current)) return preset;\n return { ...preset, label: <span className={PRESET_ACTIVE_CLS}>{preset.label}</span> };\n });\n }, [presets, current]);\n\n return { presets: mapped, track };\n};\n"],"mappings":";;;;AASA,MAAM,WAAW,GAAQ,MAAoB;CAC3C,IAAI,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;CAC5B,IAAI,OAAO,EAAE,WAAW,YAAY,OAAO,EAAE,OAAO,GAAG,KAAK;CAC5D,OAAO,MAAM;AACf;AAEA,MAAM,aAAa,GAAQ,MAAoB;CAC7C,IAAI,MAAM,QAAQ,CAAC,KAAK,MAAM,QAAQ,CAAC,GAAG;EACxC,IAAI,CAAC,MAAM,QAAQ,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,OAAO;EAC5E,OAAO,EAAE,OAAO,MAAM,MAAM,QAAQ,MAAM,EAAE,EAAE,CAAC;CACjD;CACA,OAAO,QAAQ,GAAG,CAAC;AACrB;AAEA,MAAa,oBAAoB,GAAG,WAAW;;;;;;AAO/C,MAAa,mBACX,SACA,OACA,iBACG;CACH,MAAM,CAAC,OAAO,YAAY,SAAkB,YAAY;CACxD,MAAM,UAAU,UAAU,KAAA,IAAY,QAAQ;CAE9C,MAAM,QAAQ,aAAa,SAAkB,SAAS,IAAI,GAAG,CAAC,CAAC;CAY/D,OAAO;EAAE,SAVM,cAAc;GAC3B,IAAI,CAAC,SAAS,UAAU,CAAC,SAAS,OAAO;GACzC,OAAO,QAAQ,KAAK,WAAW;IAC7B,MAAM,IACJ,OAAO,OAAO,UAAU,aAAc,OAAO,MAAwB,IAAI,OAAO;IAClF,IAAI,CAAC,UAAU,GAAG,OAAO,GAAG,OAAO;IACnC,OAAO;KAAE,GAAG;KAAQ,OAAO,oBAAC,QAAD;MAAM,WAAW;MAAoB,UAAA,OAAO;KAAY,CAAA;IAAE;GACvF,CAAC;EACH,GAAG,CAAC,SAAS,OAAO,CAEG;EAAG;CAAM;AAClC"}
1
+ {"version":3,"file":"usePresetActive.mjs","names":[],"sources":["../../../src/base-ui/DatePicker/usePresetActive.tsx"],"sourcesContent":["import { type ReactNode, useCallback, useMemo, useState } from 'react';\n\nimport { PREFIX_CLS } from './style';\n\ninterface Preset {\n label: ReactNode;\n value: unknown;\n}\n\nconst sameDay = (a: any, b: any): boolean => {\n if (!a || !b) return !a && !b;\n if (typeof a.isSame === 'function') return a.isSame(b, 'day');\n if (a instanceof Date && b instanceof Date) return a.toDateString() === b.toDateString();\n return a === b;\n};\n\nconst sameValue = (a: any, b: any): boolean => {\n if (Array.isArray(a) || Array.isArray(b)) {\n if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;\n return a.every((item, i) => sameDay(item, b[i]));\n }\n return sameDay(a, b);\n};\n\nexport const PRESET_ACTIVE_CLS = `${PREFIX_CLS}-preset-active`;\n\n/**\n * rc-picker renders `presets` as the popup sidebar but has no \"current preset\" state.\n * Mirror the picked value (controlled or not) and wrap the matching preset's label so the\n * sidebar can show it as selected (`li:has(> .lobe-picker-preset-active)`).\n */\nexport const usePresetActive = <P extends Preset>(\n presets: P[] | undefined,\n value: unknown,\n defaultValue: unknown,\n) => {\n const [inner, setInner] = useState<unknown>(defaultValue);\n const current = value !== undefined ? value : inner;\n\n const track = useCallback((next: unknown) => setInner(next), []);\n\n const mapped = useMemo(() => {\n if (!presets?.length || !current) return presets;\n return presets.map((preset) => {\n const v =\n typeof preset.value === 'function' ? (preset.value as () => unknown)() : preset.value;\n if (!sameValue(v, current)) return preset;\n return { ...preset, label: <span className={PRESET_ACTIVE_CLS}>{preset.label}</span> };\n });\n }, [presets, current]);\n\n return { presets: mapped, track };\n};\n"],"mappings":";;;;AASA,MAAM,WAAW,GAAQ,MAAoB;CAC3C,IAAI,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;CAC5B,IAAI,OAAO,EAAE,WAAW,YAAY,OAAO,EAAE,OAAO,GAAG,KAAK;CAC5D,IAAI,aAAa,QAAQ,aAAa,MAAM,OAAO,EAAE,aAAa,MAAM,EAAE,aAAa;CACvF,OAAO,MAAM;AACf;AAEA,MAAM,aAAa,GAAQ,MAAoB;CAC7C,IAAI,MAAM,QAAQ,CAAC,KAAK,MAAM,QAAQ,CAAC,GAAG;EACxC,IAAI,CAAC,MAAM,QAAQ,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,OAAO;EAC5E,OAAO,EAAE,OAAO,MAAM,MAAM,QAAQ,MAAM,EAAE,EAAE,CAAC;CACjD;CACA,OAAO,QAAQ,GAAG,CAAC;AACrB;AAEA,MAAa,oBAAoB,GAAG,WAAW;;;;;;AAO/C,MAAa,mBACX,SACA,OACA,iBACG;CACH,MAAM,CAAC,OAAO,YAAY,SAAkB,YAAY;CACxD,MAAM,UAAU,UAAU,KAAA,IAAY,QAAQ;CAE9C,MAAM,QAAQ,aAAa,SAAkB,SAAS,IAAI,GAAG,CAAC,CAAC;CAY/D,OAAO;EAAE,SAVM,cAAc;GAC3B,IAAI,CAAC,SAAS,UAAU,CAAC,SAAS,OAAO;GACzC,OAAO,QAAQ,KAAK,WAAW;IAC7B,MAAM,IACJ,OAAO,OAAO,UAAU,aAAc,OAAO,MAAwB,IAAI,OAAO;IAClF,IAAI,CAAC,UAAU,GAAG,OAAO,GAAG,OAAO;IACnC,OAAO;KAAE,GAAG;KAAQ,OAAO,oBAAC,QAAD;MAAM,WAAW;MAAoB,UAAA,OAAO;KAAY,CAAA;IAAE;GACvF,CAAC;EACH,GAAG,CAAC,SAAS,OAAO,CAEG;EAAG;CAAM;AAClC"}
@@ -2,8 +2,8 @@ import Switch from "../Switch/Switch.mjs";
2
2
  import Input_default from "../Input/Input.mjs";
3
3
  import InputNumber_default from "../Input/InputNumber.mjs";
4
4
  import Select from "../Select/Select.mjs";
5
- import DatePicker from "../DatePicker/DatePicker.mjs";
6
- import DateRangePicker from "../DatePicker/DateRangePicker.mjs";
5
+ import DayjsDatePicker from "../DatePicker/DayjsDatePicker.mjs";
6
+ import DayjsDateRangePicker from "../DatePicker/DayjsDateRangePicker.mjs";
7
7
  import { useColumnRequest } from "./useColumnRequest.mjs";
8
8
  import { resolveValueEnum, resolveValueType, valueEnumToList } from "./utils.mjs";
9
9
  import { jsx } from "react/jsx-runtime";
@@ -73,7 +73,7 @@ const FieldControl = ({ column, form, light, onChange, placeholder, value }) =>
73
73
  onChange: (next) => onChange(next)
74
74
  });
75
75
  case "date":
76
- case "dateTime": return /* @__PURE__ */ jsx(DatePicker, {
76
+ case "dateTime": return /* @__PURE__ */ jsx(DayjsDatePicker, {
77
77
  allowClear: true,
78
78
  placeholder: light ? label : placeholder.select,
79
79
  size,
@@ -84,7 +84,7 @@ const FieldControl = ({ column, form, light, onChange, placeholder, value }) =>
84
84
  onChange: (next) => onChange(next ?? void 0)
85
85
  });
86
86
  case "dateRange":
87
- case "dateTimeRange": return /* @__PURE__ */ jsx(DateRangePicker, {
87
+ case "dateTimeRange": return /* @__PURE__ */ jsx(DayjsDateRangePicker, {
88
88
  allowClear: true,
89
89
  size,
90
90
  style: { width: "100%" },
@@ -1 +1 @@
1
- {"version":3,"file":"FieldControl.mjs","names":["InputNumber","Input"],"sources":["../../../src/base-ui/ProTable/FieldControl.tsx"],"sourcesContent":["import { useThemeMode } from 'antd-style';\nimport { type ReactNode } from 'react';\n\nimport DatePicker from '@/base-ui/DatePicker/DatePicker';\nimport DateRangePicker from '@/base-ui/DatePicker/DateRangePicker';\nimport Input from '@/base-ui/Input/Input';\nimport InputNumber from '@/base-ui/Input/InputNumber';\nimport Select from '@/base-ui/Select';\nimport Switch from '@/base-ui/Switch';\n\nimport type { ProColumnType, ProTableFormInstance, ProTableValueType } from './type';\nimport { useColumnRequest } from './useColumnRequest';\nimport { resolveValueEnum, resolveValueType, valueEnumToList } from './utils';\n\nexport interface FieldControlProps {\n column: ProColumnType<any>;\n form: ProTableFormInstance;\n /** Light filter bar: small controls, outlined in light mode and filled in dark mode. */\n light?: boolean;\n onChange: (value: any) => void;\n placeholder: { input: string; select: string };\n value: any;\n}\n\nconst SELECT_TYPES = new Set<ProTableValueType>(['select', 'radio', 'checkbox']);\n\n/** The search-form control of a column (Pro \"edit\" mode, query flavor). */\nconst FieldControl = ({ column, form, light, onChange, placeholder, value }: FieldControlProps) => {\n const valueType = resolveValueType(column) ?? 'text';\n const valueEnum = resolveValueEnum(column);\n const { fieldProps = {} } = column;\n const label = typeof column.title === 'string' ? column.title : undefined;\n const size = light ? 'small' : undefined;\n const { isDarkMode } = useThemeMode();\n // Light filter: outlined on light backgrounds, filled in dark mode.\n const variant = light ? (isDarkMode ? 'filled' : 'outlined') : undefined;\n const remote = useColumnRequest(column);\n\n if (column.renderFormItem) {\n return column.renderFormItem(\n column,\n { form, isQuery: !light, onChange, value },\n form,\n ) as ReactNode;\n }\n\n if (remote.enabled || valueEnum || SELECT_TYPES.has(valueType)) {\n const options =\n remote.options ??\n fieldProps.options ??\n valueEnumToList(valueEnum).map((item) => ({\n disabled: item.disabled,\n label: item.text,\n value: item.value,\n }));\n return (\n <Select\n allowClear\n loading={remote.loading}\n mode={valueType === 'checkbox' ? 'multiple' : undefined}\n options={options as any}\n placeholder={light ? label : placeholder.select}\n size={size}\n style={{ width: '100%' }}\n value={value ?? (valueType === 'checkbox' ? [] : null)}\n variant={variant}\n {...fieldProps}\n onChange={(next) => onChange(next ?? undefined)}\n onSearch={\n remote.onSearch\n ? (keyWords: string) => {\n remote.onSearch!(keyWords);\n fieldProps.onSearch?.(keyWords);\n }\n : fieldProps.onSearch\n }\n />\n );\n }\n\n switch (valueType) {\n case 'digit':\n case 'money':\n case 'percent':\n case 'progress': {\n return (\n <InputNumber\n placeholder={light ? label : placeholder.input}\n size={size}\n style={{ width: '100%' }}\n value={value ?? null}\n variant={variant}\n {...fieldProps}\n onChange={(next) => onChange(next ?? undefined)}\n />\n );\n }\n case 'switch': {\n return <Switch checked={!!value} {...fieldProps} onChange={(next) => onChange(next)} />;\n }\n case 'date':\n case 'dateTime': {\n return (\n <DatePicker\n allowClear\n placeholder={light ? label : placeholder.select}\n size={size}\n style={{ width: '100%' }}\n value={value ?? null}\n variant={variant}\n {...fieldProps}\n onChange={(next) => onChange(next ?? undefined)}\n />\n );\n }\n case 'dateRange':\n case 'dateTimeRange': {\n return (\n <DateRangePicker\n allowClear\n size={size}\n style={{ width: '100%' }}\n value={value ?? [null, null]}\n variant={variant}\n {...fieldProps}\n onChange={(next) => onChange(next && (next[0] || next[1]) ? next : undefined)}\n />\n );\n }\n default: {\n return (\n <Input\n allowClear\n placeholder={light ? label : placeholder.input}\n size={size}\n type={valueType === 'password' ? 'password' : undefined}\n value={value ?? ''}\n variant={variant}\n {...fieldProps}\n onChange={(event) => onChange(event.target.value === '' ? undefined : event.target.value)}\n onClear={() => {\n onChange(undefined);\n fieldProps.onClear?.();\n }}\n />\n );\n }\n }\n};\n\nexport default FieldControl;\n"],"mappings":";;;;;;;;;;;AAwBA,MAAM,+BAA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ACnC;GACN,OAAO,EAAE,OAAO,OAAO;GACvB,OAAO,SAAS;GACP;GACT,GAAI;GACJ,WAAW,SAAS,SAAS,QAAQ,KAAA,CAAS;EAC/C,CAAA;EAGL,KAAK,UACH,OAAO,oBAAC,QAAD;GAAQ,SAAS,CAAC,CAAC;GAAO,GAAI;GAAY,WAAW,SAAS,SAAS,IAAI;EAAI,CAAA;EAExF,KAAK;EACL,KAAK,YACH,OACE,oBAAC,YAAD;GACE,YAAA;GACA,aAAa,QAAQ,QAAQ,YAAY;GACnC;GACN,OAAO,EAAE,OAAO,OAAO;GACvB,OAAO,SAAS;GACP;GACT,GAAI;GACJ,WAAW,SAAS,SAAS,QAAQ,KAAA,CAAS;EAC/C,CAAA;EAGL,KAAK;EACL,KAAK,iBACH,OACE,oBAAC,iBAAD;GACE,YAAA;GACM;GACN,OAAO,EAAE,OAAO,OAAO;GACvB,OAAO,SAAS,CAAC,MAAM,IAAI;GAClB;GACT,GAAI;GACJ,WAAW,SAAS,SAAS,SAAS,KAAK,MAAM,KAAK,MAAM,OAAO,KAAA,CAAS;EAC7E,CAAA;EAGL,SACE,OACE,oBAACC,eAAD;GACE,YAAA;GACA,aAAa,QAAQ,QAAQ,YAAY;GACnC;GACN,MAAM,cAAc,aAAa,aAAa,KAAA;GAC9C,OAAO,SAAS;GACP;GACT,GAAI;GACJ,WAAW,UAAU,SAAS,MAAM,OAAO,UAAU,KAAK,KAAA,IAAY,MAAM,OAAO,KAAK;GACxF,eAAe;IACb,SAAS,KAAA,CAAS;IAClB,WAAW,UAAU;GACvB;EACD,CAAA;CAGP;AACF"}
1
+ {"version":3,"file":"FieldControl.mjs","names":["InputNumber","DatePicker","DateRangePicker","Input"],"sources":["../../../src/base-ui/ProTable/FieldControl.tsx"],"sourcesContent":["import { useThemeMode } from 'antd-style';\nimport { type ReactNode } from 'react';\n\nimport DatePicker from '@/base-ui/DatePicker/DayjsDatePicker';\nimport DateRangePicker from '@/base-ui/DatePicker/DayjsDateRangePicker';\nimport Input from '@/base-ui/Input/Input';\nimport InputNumber from '@/base-ui/Input/InputNumber';\nimport Select from '@/base-ui/Select';\nimport Switch from '@/base-ui/Switch';\n\nimport type { ProColumnType, ProTableFormInstance, ProTableValueType } from './type';\nimport { useColumnRequest } from './useColumnRequest';\nimport { resolveValueEnum, resolveValueType, valueEnumToList } from './utils';\n\nexport interface FieldControlProps {\n column: ProColumnType<any>;\n form: ProTableFormInstance;\n /** Light filter bar: small controls, outlined in light mode and filled in dark mode. */\n light?: boolean;\n onChange: (value: any) => void;\n placeholder: { input: string; select: string };\n value: any;\n}\n\nconst SELECT_TYPES = new Set<ProTableValueType>(['select', 'radio', 'checkbox']);\n\n/** The search-form control of a column (Pro \"edit\" mode, query flavor). */\nconst FieldControl = ({ column, form, light, onChange, placeholder, value }: FieldControlProps) => {\n const valueType = resolveValueType(column) ?? 'text';\n const valueEnum = resolveValueEnum(column);\n const { fieldProps = {} } = column;\n const label = typeof column.title === 'string' ? column.title : undefined;\n const size = light ? 'small' : undefined;\n const { isDarkMode } = useThemeMode();\n // Light filter: outlined on light backgrounds, filled in dark mode.\n const variant = light ? (isDarkMode ? 'filled' : 'outlined') : undefined;\n const remote = useColumnRequest(column);\n\n if (column.renderFormItem) {\n return column.renderFormItem(\n column,\n { form, isQuery: !light, onChange, value },\n form,\n ) as ReactNode;\n }\n\n if (remote.enabled || valueEnum || SELECT_TYPES.has(valueType)) {\n const options =\n remote.options ??\n fieldProps.options ??\n valueEnumToList(valueEnum).map((item) => ({\n disabled: item.disabled,\n label: item.text,\n value: item.value,\n }));\n return (\n <Select\n allowClear\n loading={remote.loading}\n mode={valueType === 'checkbox' ? 'multiple' : undefined}\n options={options as any}\n placeholder={light ? label : placeholder.select}\n size={size}\n style={{ width: '100%' }}\n value={value ?? (valueType === 'checkbox' ? [] : null)}\n variant={variant}\n {...fieldProps}\n onChange={(next) => onChange(next ?? undefined)}\n onSearch={\n remote.onSearch\n ? (keyWords: string) => {\n remote.onSearch!(keyWords);\n fieldProps.onSearch?.(keyWords);\n }\n : fieldProps.onSearch\n }\n />\n );\n }\n\n switch (valueType) {\n case 'digit':\n case 'money':\n case 'percent':\n case 'progress': {\n return (\n <InputNumber\n placeholder={light ? label : placeholder.input}\n size={size}\n style={{ width: '100%' }}\n value={value ?? null}\n variant={variant}\n {...fieldProps}\n onChange={(next) => onChange(next ?? undefined)}\n />\n );\n }\n case 'switch': {\n return <Switch checked={!!value} {...fieldProps} onChange={(next) => onChange(next)} />;\n }\n case 'date':\n case 'dateTime': {\n return (\n <DatePicker\n allowClear\n placeholder={light ? label : placeholder.select}\n size={size}\n style={{ width: '100%' }}\n value={value ?? null}\n variant={variant}\n {...fieldProps}\n onChange={(next) => onChange(next ?? undefined)}\n />\n );\n }\n case 'dateRange':\n case 'dateTimeRange': {\n return (\n <DateRangePicker\n allowClear\n size={size}\n style={{ width: '100%' }}\n value={value ?? [null, null]}\n variant={variant}\n {...fieldProps}\n onChange={(next) => onChange(next && (next[0] || next[1]) ? next : undefined)}\n />\n );\n }\n default: {\n return (\n <Input\n allowClear\n placeholder={light ? label : placeholder.input}\n size={size}\n type={valueType === 'password' ? 'password' : undefined}\n value={value ?? ''}\n variant={variant}\n {...fieldProps}\n onChange={(event) => onChange(event.target.value === '' ? undefined : event.target.value)}\n onClear={() => {\n onChange(undefined);\n fieldProps.onClear?.();\n }}\n />\n );\n }\n }\n};\n\nexport default FieldControl;\n"],"mappings":";;;;;;;;;;;AAwBA,MAAM,+BAAe,IAAI,IAAuB;CAAC;CAAU;CAAS;AAAU,CAAC;;AAG/E,MAAM,gBAAgB,EAAE,QAAQ,MAAM,OAAO,UAAU,aAAa,YAA+B;CACjG,MAAM,YAAY,iBAAiB,MAAM,KAAK;CAC9C,MAAM,YAAY,iBAAiB,MAAM;CACzC,MAAM,EAAE,aAAa,CAAC,MAAM;CAC5B,MAAM,QAAQ,OAAO,OAAO,UAAU,WAAW,OAAO,QAAQ,KAAA;CAChE,MAAM,OAAO,QAAQ,UAAU,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AAQ,YAAY;GACnC;GACN,OAAO,EAAE,OAAO,OAAO;GACvB,OAAO,SAAS;GACP;GACT,GAAI;GACJ,WAAW,SAAS,SAAS,QAAQ,KAAA,CAAS;EAC/C,CAAA;EAGL,KAAK;EACL,KAAK,iBACH,OACE,oBAACC,sBAAD;GACE,YAAA;GACM;GACN,OAAO,EAAE,OAAO,OAAO;GACvB,OAAO,SAAS,CAAC,MAAM,IAAI;GAClB;GACT,GAAI;GACJ,WAAW,SAAS,SAAS,SAAS,KAAK,MAAM,KAAK,MAAM,OAAO,KAAA,CAAS;EAC7E,CAAA;EAGL,SACE,OACE,oBAACC,eAAD;GACE,YAAA;GACA,aAAa,QAAQ,QAAQ,YAAY;GACnC;GACN,MAAM,cAAc,aAAa,aAAa,KAAA;GAC9C,OAAO,SAAS;GACP;GACT,GAAI;GACJ,WAAW,UAAU,SAAS,MAAM,OAAO,UAAU,KAAK,KAAA,IAAY,MAAM,OAAO,KAAK;GACxF,eAAe;IACb,SAAS,KAAA,CAAS;IAClB,WAAW,UAAU;GACvB;EACD,CAAA;CAGP;AACF"}
@@ -122,9 +122,11 @@ import { ColorPickerProps } from "./ColorPicker/type.mjs";
122
122
  import ColorPicker from "./ColorPicker/ColorPicker.mjs";
123
123
  import "./ColorPicker/index.mjs";
124
124
  import { ControlSize, controlHeight } from "./controlSize.mjs";
125
- import { CalendarMode, CellRender, CellRenderInfo, DatePickerBaseProps, DatePickerProps, DatePickerSemanticType, DatePickerType, DateRangePickerProps, DateRangeValue, GeneratedDatePicker, GenericTimePickerProps, MonthPickerProps, PanelMode, PickerClassNames, PickerComponents, PickerDateStrings, PickerLocale, PickerLocaleInput, PickerLocaleLang, PickerMode, PickerPanelProps, PickerPlacement, PickerPopupSemanticName, PickerProps, PickerPropsWithMultiple, PickerRef, PickerSemanticClassNames, PickerSemanticName, PickerSemanticStyles, PickerSize, PickerStatus, PickerStyles, PickerTagProps, PickerVariant, PresetDate, PresetPickerProps, QuarterPickerProps, RangeDisabledDate, RangeInfo, RangePickerComponent, RangePickerProps, RangePickerRef, SinglePickerComponent, TimePickerLocale, TimePickerProps, WeekPickerProps, YearPickerProps } from "./DatePicker/type.mjs";
125
+ import { CalendarMode, CellRender, CellRenderInfo, DatePickerBaseProps, DatePickerProps, DatePickerSemanticType, DatePickerType, DateRangePickerProps, DateRangeValue, DayjsDatePickerProps, DayjsDatePickerType, DayjsDateRangePickerProps, DayjsDateRangeValue, GeneratedDatePicker, GenericTimePickerProps, LegacyDateInput, MonthPickerProps, PanelMode, PickerClassNames, PickerComponents, PickerDateInput, PickerDateStrings, PickerLocale, PickerLocaleInput, PickerLocaleLang, PickerMode, PickerPanelProps, PickerPlacement, PickerPopupSemanticName, PickerProps, PickerPropsWithMultiple, PickerRef, PickerSemanticClassNames, PickerSemanticName, PickerSemanticStyles, PickerSize, PickerStatus, PickerStyles, PickerTagProps, PickerValueInput, PickerVariant, PresetDate, PresetPickerProps, QuarterPickerProps, RangeChangeDates, RangeChangeStrings, RangeDisabledDate, RangeInfo, RangePickerComponent, RangePickerProps, RangePickerRef, SinglePickerComponent, TimePickerLocale, TimePickerProps, WeekPickerProps, YearPickerProps } from "./DatePicker/type.mjs";
126
126
  import DatePicker from "./DatePicker/DatePicker.mjs";
127
127
  import DateRangePicker from "./DatePicker/DateRangePicker.mjs";
128
+ import DayjsDatePicker from "./DatePicker/DayjsDatePicker.mjs";
129
+ import DayjsDateRangePicker from "./DatePicker/DayjsDateRangePicker.mjs";
128
130
  import generatePicker from "./DatePicker/generatePicker.mjs";
129
131
  import { createPickerLocale, datePickerLocaleEnUS, datePickerLocaleZhCN } from "./DatePicker/locale.mjs";
130
132
  import "./DatePicker/index.mjs";
@@ -231,4 +233,4 @@ import { TreeClassNames, TreeDataNode, TreeFlatRow, TreeProps, TreeStyles } from
231
233
  import Tree from "./Tree/Tree.mjs";
232
234
  import { conductCheck, flattenVisible, getAllKeys } from "./Tree/utils.mjs";
233
235
  import "./Tree/index.mjs";
234
- export { Accordion, type AccordionClassNames, AccordionHeader, type AccordionHeaderProps, type AccordionIndicatorPlacement, AccordionItem, type AccordionItemProps, type AccordionItemType, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionRoot, type AccordionRootProps, type AccordionStyles, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, ActionIcon, type ActionIconClassNames, type ActionIconOutdent, type ActionIconProps, type ActionIconSize, type ActionIconStyles, type ActionIconVariant, Alert, type AlertClassNames, type AlertCloseConfig, type AlertProps, type AlertRef, type AlertStyles, type AlertType, type AlertVariant, Anchor, type AnchorItem, type AnchorProps, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarClassNames, AvatarGroup, type AvatarGroupItemType, type AvatarGroupProps, type AvatarProps, type AvatarStyles, Badge, type BadgeProps, type BadgeSize, type BadgeStatus, type BaseModalProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Burger, type BurgerProps, Button, type ButtonIconPosition, type ButtonOutdent, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonType, type CalendarMode, Carousel, type CarouselProps, type CarouselRef, type CellRender, type CellRenderInfo, _default as Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxShape, Collapsible, type CollapsibleProps, ColorPicker, type ColorPickerProps, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, type ControlSize, DatePicker, type DatePickerBaseProps, type DatePickerProps, type DatePickerSemanticType, type DatePickerType, DateRangePicker, type DateRangePickerProps, type DateRangeValue, Descriptions, type DescriptionsItem, type DescriptionsProps, Divider, type DividerOrientation, type DividerProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelContent, type DraggablePanelContentProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHandle, type DraggablePanelHandleProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelPlacement, type DraggablePanelProps, DraggablePanelRoot, type DraggablePanelRootProps, type DraggablePanelSize, DraggablePanelToggle, type DraggablePanelToggleProps, Drawer, DrawerBackdrop, type DrawerBackdropProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, DrawerPopup, type DrawerPopupProps, DrawerPortal, type DrawerPortalProps, type DrawerProps, type DrawerPush, DrawerRoot, type DrawerRootProps, type DrawerSemanticNames, type DrawerSemanticStyles, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, type DropdownMenuCheckboxItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemDesc, type DropdownMenuItemDescProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, type DropdownMenuItemLabelGroupProps, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuSwitchItem, type DropdownMenuSwitchItemProps, type DropdownMenuSwitchItem$1 as DropdownMenuSwitchItemType, DropdownMenuTrigger, type DropdownMenuTriggerProps, type FilterValue, type FloatingCollisionPadding, FloatingPanel, type FloatingPanelOffset, type FloatingPanelPlacement, type FloatingPanelProps, FloatingSheet, type FloatingSheetProps, FocusScope, type FocusScopeProps, Form, type FormContextValue, FormDivider, type FormDividerProps, FormField, type FormFieldProps, FormFlatGroup, type FormFlatGroupProps, FormFooter, type FormFooterProps, FormGroup, type FormGroupItemType, type FormGroupProps, type FormLayout, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, type FormValues, type FormVariant, type GeneratedDatePicker, type GenericTimePickerProps, type IconSpaceMode, type ImperativeModalProps, _default$1 as Input, type InputClassNames, _default$2 as InputNumber, type InputNumberProps, InputOTP, type InputOTPProps, _default$3 as InputPassword, type InputPasswordProps, type InputProps, type InputSize, type InputStyles, type InputVariant, type ItemsType, List, type ListClickInfo, type ListDividerType, type ListItem, type ListItemType, type ListProps, type ListSemanticName, Modal, ModalBackdrop, type ModalBackdropProps, ModalClose, type ModalCloseProps, type ModalComponentProps, type ModalConfirmConfig, ModalContent, type ModalContentProps, ModalContext, type ModalContextValue, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalHost, type ModalHostProps, type ModalInstance, ModalPopup, type ModalPopupProps, ModalPortal, type ModalPortalProps, ModalRoot, type ModalRootProps, type ModalSystem, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, ModalViewport, type ModalViewportProps, type MonthPickerProps, Pagination, type PaginationAlign, type PaginationItemType, type PaginationProps, type PaginationSemanticName, type PaginationSize, type PaginationSizeChangerProps, type PanelMode, type PickerClassNames, type PickerComponents, type PickerDateStrings, type PickerLocale, type PickerLocaleInput, type PickerLocaleLang, type PickerMode, type PickerPanelProps, type PickerPlacement, type PickerPopupSemanticName, type PickerProps, type PickerPropsWithMultiple, type PickerRef, type PickerSemanticClassNames, type PickerSemanticName, type PickerSemanticStyles, type PickerSize, type PickerStatus, type PickerStyles, type PickerTagProps, type PickerVariant, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverBackdropProps, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, type PopoverPopupProps, PopoverPortal, type PopoverPortalAtomProps, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverPositionerProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, type PopoverTriggerComponentProps, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, type PresetDate, type PresetPickerProps, Progress, type ProgressProps, type ProgressSize, type ProgressStatus, type ProgressType, type ProgressVariant, QRCode, type QRCodeErrorLevel, type QRCodeProps, type QRCodeStatus, type QuarterPickerProps, Radio, RadioGroup, type RadioGroupOption, type RadioGroupProps, type RadioProps, type RangeDisabledDate, type RangeInfo, type RangePickerComponent, type RangePickerProps, type RangePickerRef, Rate, type RateProps, Result, type ResultProps, type ResultStatus, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, Segmented, type SegmentedClassNames, SegmentedIndicator, type SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, type SegmentedItemProps, type SegmentedOption, type SegmentedOptions, type SegmentedOrientation, type SegmentedProps, SegmentedRoot, type SegmentedRootProps, type SegmentedSize, type SegmentedStyles, type SegmentedVariant, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, type SelectRootChangeEventDetails, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, type SinglePickerComponent, Skeleton, type SkeletonAnimation, SkeletonAvatar, type SkeletonAvatarProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, SliderWithInput, type SliderWithInputProps, type SortOrder, Spin, type SpinProps, type SpinSize, type SpinVariant, _default$4 as SplitButton, type SplitButtonMenuProps, type SplitButtonProps, Statistic, type StatisticProps, type StepItem, type StepStatus, Steps, type StepsProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, Table, type TableBreakpoint, type TableCellAttributes, type TableClassNames, type TableColumn, type TableColumnEllipsis, type TableColumnFilterItem, type TableColumnFixed, type TableColumnGroupProps, type TableColumnGroupType, type TableColumnProps, type TableColumnSorter, type TableColumnTitle, type TableColumnTitleProps, type TableColumnType, type TableColumnsType, type TableCompareFn, type TableComponents, type TableComponentsSemanticName, type TableCurrentDataSource, type TableExpandIconProps, type TableExpandableConfig, type TableExpandedRowRender, type TableFilterDropdownPopupProps, type TableFilterDropdownProps, type TableFilters, type TableHeaderCellAttributes, type TableLegacySemanticName, type TableLoadingConfig, type TableLocale, type TableMultipleSorterResult, type TablePaginationConfig, type TablePaginationPlacement, type TablePaginationPosition, type TableProps, type TableRef, type TableRenderedCell, type TableRowClassName, type TableRowSelectMethod, type TableRowSelection, type TableRowSelectionCheckboxProps, type TableRowSelectionType, type TableScrollToConfig, type TableSelectionItem, type TableSelectionPreset, type TableSemanticInfo, type TableSemanticName, type TableSize, type TableSorterResult, type TableSorterTooltipProps, type TableSticky, type TableStyles, type TableSummaryCellProps, type TableSummaryProps, type TableSummaryRowProps, type TableVariant, Tabs, type TabsClassNames, TabsIndicator, type TabsIndicatorProps, type TabsItem, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, TabsRoot, type TabsRootProps, type TabsSize, type TabsStyles, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagClassNames, type TagProps, type TagShape, type TagSize, type TagStyles, type TagVariant, Text, _default$5 as TextArea, type TextAreaAutoSize, type TextAreaProps, type TextClassNames, type TextProps, type TextStyles, type TimePickerLocale, type TimePickerProps, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, ToggleGroup, type ToggleGroupClassNames, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, ToggleGroupRoot, type ToggleGroupRootProps, type ToggleGroupSize, type ToggleGroupStyles, type ToggleGroupVariant, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipPlacement, type TooltipPopupComponentProps, type TooltipPortalProps, type TooltipPositionerProps, type TooltipProps, type TooltipTriggerComponentProps, Tree, type TreeClassNames, type TreeDataNode, type TreeFlatRow, type TreeProps, type TreeStyles, Upload, type UploadChangeInfo, UploadDragger, type UploadProps, type UseScopeArrowNavOptions, type UseScopeSwitcherOptions, type VirtualListProps, type WeekPickerProps, type YearPickerProps, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, conductCheck, confirmModal, controlHeight, createModal, createModalSystem, createPickerLocale, datePickerLocaleEnUS, datePickerLocaleZhCN, drawerBackdropTransition, flattenVisible, focusScopeItem, styles$6 as focusScopeStyles, formatStatisticValue, generatePicker, getActiveScopeId, getAllKeys, getDrawerMotionConfig, getFloatingCollisionPadding, getLastFocusedItem, styles$7 as inputStyles, rootVariants as inputVariants, modalMotionConfig, notifyScopeItemFocus, parseTrigger, presetColors, presetSystemColors, styles$8 as radioStyles, registerScope, renderDropdownMenuItems, setActiveScope, setContextMenuInterceptor, setFloatingCollisionPadding, setLastFocusedItem, showContextMenu, styles$9 as sliderStyles, styles$10 as switchStyles, styles$11 as tabsStyles, groupStyles as textGroupStyles, styles$12 as textStyles, variants as textVariants, toast, styles$13 as toggleGroupStyles, styles$14 as treeStyles, updateContextMenuItems, useAccordionContext, useActiveScopeId, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFocusScopeActive, useFocusScopeId, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useScopeArrowNav, useScopeSwitcher, useSwitchContext, useTabsContext, useToast };
236
+ export { Accordion, type AccordionClassNames, AccordionHeader, type AccordionHeaderProps, type AccordionIndicatorPlacement, AccordionItem, type AccordionItemProps, type AccordionItemType, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionRoot, type AccordionRootProps, type AccordionStyles, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, ActionIcon, type ActionIconClassNames, type ActionIconOutdent, type ActionIconProps, type ActionIconSize, type ActionIconStyles, type ActionIconVariant, Alert, type AlertClassNames, type AlertCloseConfig, type AlertProps, type AlertRef, type AlertStyles, type AlertType, type AlertVariant, Anchor, type AnchorItem, type AnchorProps, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarClassNames, AvatarGroup, type AvatarGroupItemType, type AvatarGroupProps, type AvatarProps, type AvatarStyles, Badge, type BadgeProps, type BadgeSize, type BadgeStatus, type BaseModalProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Burger, type BurgerProps, Button, type ButtonIconPosition, type ButtonOutdent, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonType, type CalendarMode, Carousel, type CarouselProps, type CarouselRef, type CellRender, type CellRenderInfo, _default as Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxShape, Collapsible, type CollapsibleProps, ColorPicker, type ColorPickerProps, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, type ControlSize, DatePicker, type DatePickerBaseProps, type DatePickerProps, type DatePickerSemanticType, type DatePickerType, DateRangePicker, type DateRangePickerProps, type DateRangeValue, DayjsDatePicker, type DayjsDatePickerProps, type DayjsDatePickerType, DayjsDateRangePicker, type DayjsDateRangePickerProps, type DayjsDateRangeValue, Descriptions, type DescriptionsItem, type DescriptionsProps, Divider, type DividerOrientation, type DividerProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelContent, type DraggablePanelContentProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHandle, type DraggablePanelHandleProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelPlacement, type DraggablePanelProps, DraggablePanelRoot, type DraggablePanelRootProps, type DraggablePanelSize, DraggablePanelToggle, type DraggablePanelToggleProps, Drawer, DrawerBackdrop, type DrawerBackdropProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, DrawerPopup, type DrawerPopupProps, DrawerPortal, type DrawerPortalProps, type DrawerProps, type DrawerPush, DrawerRoot, type DrawerRootProps, type DrawerSemanticNames, type DrawerSemanticStyles, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, type DropdownMenuCheckboxItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemDesc, type DropdownMenuItemDescProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, type DropdownMenuItemLabelGroupProps, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuSwitchItem, type DropdownMenuSwitchItemProps, type DropdownMenuSwitchItem$1 as DropdownMenuSwitchItemType, DropdownMenuTrigger, type DropdownMenuTriggerProps, type FilterValue, type FloatingCollisionPadding, FloatingPanel, type FloatingPanelOffset, type FloatingPanelPlacement, type FloatingPanelProps, FloatingSheet, type FloatingSheetProps, FocusScope, type FocusScopeProps, Form, type FormContextValue, FormDivider, type FormDividerProps, FormField, type FormFieldProps, FormFlatGroup, type FormFlatGroupProps, FormFooter, type FormFooterProps, FormGroup, type FormGroupItemType, type FormGroupProps, type FormLayout, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, type FormValues, type FormVariant, type GeneratedDatePicker, type GenericTimePickerProps, type IconSpaceMode, type ImperativeModalProps, _default$1 as Input, type InputClassNames, _default$2 as InputNumber, type InputNumberProps, InputOTP, type InputOTPProps, _default$3 as InputPassword, type InputPasswordProps, type InputProps, type InputSize, type InputStyles, type InputVariant, type ItemsType, type LegacyDateInput, List, type ListClickInfo, type ListDividerType, type ListItem, type ListItemType, type ListProps, type ListSemanticName, Modal, ModalBackdrop, type ModalBackdropProps, ModalClose, type ModalCloseProps, type ModalComponentProps, type ModalConfirmConfig, ModalContent, type ModalContentProps, ModalContext, type ModalContextValue, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalHost, type ModalHostProps, type ModalInstance, ModalPopup, type ModalPopupProps, ModalPortal, type ModalPortalProps, ModalRoot, type ModalRootProps, type ModalSystem, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, ModalViewport, type ModalViewportProps, type MonthPickerProps, Pagination, type PaginationAlign, type PaginationItemType, type PaginationProps, type PaginationSemanticName, type PaginationSize, type PaginationSizeChangerProps, type PanelMode, type PickerClassNames, type PickerComponents, type PickerDateInput, type PickerDateStrings, type PickerLocale, type PickerLocaleInput, type PickerLocaleLang, type PickerMode, type PickerPanelProps, type PickerPlacement, type PickerPopupSemanticName, type PickerProps, type PickerPropsWithMultiple, type PickerRef, type PickerSemanticClassNames, type PickerSemanticName, type PickerSemanticStyles, type PickerSize, type PickerStatus, type PickerStyles, type PickerTagProps, type PickerValueInput, type PickerVariant, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverBackdropProps, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, type PopoverPopupProps, PopoverPortal, type PopoverPortalAtomProps, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverPositionerProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, type PopoverTriggerComponentProps, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, type PresetDate, type PresetPickerProps, Progress, type ProgressProps, type ProgressSize, type ProgressStatus, type ProgressType, type ProgressVariant, QRCode, type QRCodeErrorLevel, type QRCodeProps, type QRCodeStatus, type QuarterPickerProps, Radio, RadioGroup, type RadioGroupOption, type RadioGroupProps, type RadioProps, type RangeChangeDates, type RangeChangeStrings, type RangeDisabledDate, type RangeInfo, type RangePickerComponent, type RangePickerProps, type RangePickerRef, Rate, type RateProps, Result, type ResultProps, type ResultStatus, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, Segmented, type SegmentedClassNames, SegmentedIndicator, type SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, type SegmentedItemProps, type SegmentedOption, type SegmentedOptions, type SegmentedOrientation, type SegmentedProps, SegmentedRoot, type SegmentedRootProps, type SegmentedSize, type SegmentedStyles, type SegmentedVariant, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, type SelectRootChangeEventDetails, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, type SinglePickerComponent, Skeleton, type SkeletonAnimation, SkeletonAvatar, type SkeletonAvatarProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, SliderWithInput, type SliderWithInputProps, type SortOrder, Spin, type SpinProps, type SpinSize, type SpinVariant, _default$4 as SplitButton, type SplitButtonMenuProps, type SplitButtonProps, Statistic, type StatisticProps, type StepItem, type StepStatus, Steps, type StepsProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, Table, type TableBreakpoint, type TableCellAttributes, type TableClassNames, type TableColumn, type TableColumnEllipsis, type TableColumnFilterItem, type TableColumnFixed, type TableColumnGroupProps, type TableColumnGroupType, type TableColumnProps, type TableColumnSorter, type TableColumnTitle, type TableColumnTitleProps, type TableColumnType, type TableColumnsType, type TableCompareFn, type TableComponents, type TableComponentsSemanticName, type TableCurrentDataSource, type TableExpandIconProps, type TableExpandableConfig, type TableExpandedRowRender, type TableFilterDropdownPopupProps, type TableFilterDropdownProps, type TableFilters, type TableHeaderCellAttributes, type TableLegacySemanticName, type TableLoadingConfig, type TableLocale, type TableMultipleSorterResult, type TablePaginationConfig, type TablePaginationPlacement, type TablePaginationPosition, type TableProps, type TableRef, type TableRenderedCell, type TableRowClassName, type TableRowSelectMethod, type TableRowSelection, type TableRowSelectionCheckboxProps, type TableRowSelectionType, type TableScrollToConfig, type TableSelectionItem, type TableSelectionPreset, type TableSemanticInfo, type TableSemanticName, type TableSize, type TableSorterResult, type TableSorterTooltipProps, type TableSticky, type TableStyles, type TableSummaryCellProps, type TableSummaryProps, type TableSummaryRowProps, type TableVariant, Tabs, type TabsClassNames, TabsIndicator, type TabsIndicatorProps, type TabsItem, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, TabsRoot, type TabsRootProps, type TabsSize, type TabsStyles, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagClassNames, type TagProps, type TagShape, type TagSize, type TagStyles, type TagVariant, Text, _default$5 as TextArea, type TextAreaAutoSize, type TextAreaProps, type TextClassNames, type TextProps, type TextStyles, type TimePickerLocale, type TimePickerProps, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, ToggleGroup, type ToggleGroupClassNames, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, ToggleGroupRoot, type ToggleGroupRootProps, type ToggleGroupSize, type ToggleGroupStyles, type ToggleGroupVariant, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipPlacement, type TooltipPopupComponentProps, type TooltipPortalProps, type TooltipPositionerProps, type TooltipProps, type TooltipTriggerComponentProps, Tree, type TreeClassNames, type TreeDataNode, type TreeFlatRow, type TreeProps, type TreeStyles, Upload, type UploadChangeInfo, UploadDragger, type UploadProps, type UseScopeArrowNavOptions, type UseScopeSwitcherOptions, type VirtualListProps, type WeekPickerProps, type YearPickerProps, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, conductCheck, confirmModal, controlHeight, createModal, createModalSystem, createPickerLocale, datePickerLocaleEnUS, datePickerLocaleZhCN, drawerBackdropTransition, flattenVisible, focusScopeItem, styles$6 as focusScopeStyles, formatStatisticValue, generatePicker, getActiveScopeId, getAllKeys, getDrawerMotionConfig, getFloatingCollisionPadding, getLastFocusedItem, styles$7 as inputStyles, rootVariants as inputVariants, modalMotionConfig, notifyScopeItemFocus, parseTrigger, presetColors, presetSystemColors, styles$8 as radioStyles, registerScope, renderDropdownMenuItems, setActiveScope, setContextMenuInterceptor, setFloatingCollisionPadding, setLastFocusedItem, showContextMenu, styles$9 as sliderStyles, styles$10 as switchStyles, styles$11 as tabsStyles, groupStyles as textGroupStyles, styles$12 as textStyles, variants as textVariants, toast, styles$13 as toggleGroupStyles, styles$14 as treeStyles, updateContextMenuItems, useAccordionContext, useActiveScopeId, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFocusScopeActive, useFocusScopeId, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useScopeArrowNav, useScopeSwitcher, useSwitchContext, useTabsContext, useToast };
@@ -82,6 +82,8 @@ import { createPickerLocale, datePickerLocaleEnUS, datePickerLocaleZhCN } from "
82
82
  import generatePicker from "./DatePicker/generatePicker.mjs";
83
83
  import DatePicker from "./DatePicker/DatePicker.mjs";
84
84
  import DateRangePicker from "./DatePicker/DateRangePicker.mjs";
85
+ import DayjsDatePicker from "./DatePicker/DayjsDatePicker.mjs";
86
+ import DayjsDateRangePicker from "./DatePicker/DayjsDateRangePicker.mjs";
85
87
  import Descriptions from "./Descriptions/Descriptions.mjs";
86
88
  import { useDraggablePanelContext } from "./DraggablePanel/context.mjs";
87
89
  import { DraggablePanelBody, DraggablePanelContainer, DraggablePanelContent, DraggablePanelFooter, DraggablePanelHandle, DraggablePanelHeader, DraggablePanelRoot, DraggablePanelToggle } from "./DraggablePanel/atoms.mjs";
@@ -124,4 +126,4 @@ import Text from "./Text/Text.mjs";
124
126
  import { styles as styles$13 } from "./ToggleGroup/style.mjs";
125
127
  import { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot } from "./ToggleGroup/atoms.mjs";
126
128
  import ToggleGroup from "./ToggleGroup/ToggleGroup.mjs";
127
- export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, AccordionTrigger, ActionIcon, Alert, Anchor, AutoComplete, Avatar, AvatarGroup, Badge, Breadcrumb, Burger, Button, Carousel, Checkbox_default as Checkbox, CheckboxGroup, Collapsible, ColorPicker, ContextMenuHost, ContextMenuTrigger, DatePicker, DateRangePicker, Descriptions, Divider, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelContent, DraggablePanelFooter, DraggablePanelHandle, DraggablePanelHeader, DraggablePanelRoot, DraggablePanelToggle, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger, FloatingPanel, FloatingSheet, FocusScope, Form, FormDivider, FormField, FormFlatGroup, FormFooter, FormGroup, FormSubmitFooter, FormTitle, Input_default as Input, InputNumber_default as InputNumber, InputOTP, InputPassword_default as InputPassword, List, Modal, ModalBackdrop, ModalClose, ModalContent, ModalContext, ModalDescription, ModalFooter, ModalHeader, ModalHost, ModalPopup, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, ModalViewport, Pagination, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, Progress, QRCode, Radio, RadioGroup, Rate, Result, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Segmented, SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot, Select, SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonAvatar, SkeletonText, Slider, SliderWithInput, Spin, SplitButton, Statistic, Steps, Switch, SwitchIcon, SwitchRoot, SwitchThumb, Table, Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, Tag, Text, TextArea_default as TextArea, ToastHost, ToggleGroup, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot, Tooltip, TooltipGroup, Tree, Upload, UploadDragger, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, conductCheck, confirmModal, controlHeight, createModal, createModalSystem, createPickerLocale, datePickerLocaleEnUS, datePickerLocaleZhCN, drawerBackdropTransition, flattenVisible, focusScopeItem, styles$6 as focusScopeStyles, formatStatisticValue, generatePicker, getActiveScopeId, getAllKeys, getDrawerMotionConfig, getFloatingCollisionPadding, getLastFocusedItem, styles$7 as inputStyles, rootVariants as inputVariants, modalMotionConfig, notifyScopeItemFocus, parseTrigger, presetColors, presetSystemColors, styles$8 as radioStyles, registerScope, renderDropdownMenuItems, setActiveScope, setContextMenuInterceptor, setFloatingCollisionPadding, setLastFocusedItem, showContextMenu, styles$9 as sliderStyles, styles$10 as switchStyles, styles$11 as tabsStyles, groupStyles as textGroupStyles, styles$12 as textStyles, variants as textVariants, toast, styles$13 as toggleGroupStyles, styles$14 as treeStyles, updateContextMenuItems, useAccordionContext, useActiveScopeId, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFocusScopeActive, useFocusScopeId, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useScopeArrowNav, useScopeSwitcher, useSwitchContext, useTabsContext, useToast };
129
+ export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, AccordionTrigger, ActionIcon, Alert, Anchor, AutoComplete, Avatar, AvatarGroup, Badge, Breadcrumb, Burger, Button, Carousel, Checkbox_default as Checkbox, CheckboxGroup, Collapsible, ColorPicker, ContextMenuHost, ContextMenuTrigger, DatePicker, DateRangePicker, DayjsDatePicker, DayjsDateRangePicker, Descriptions, Divider, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelContent, DraggablePanelFooter, DraggablePanelHandle, DraggablePanelHeader, DraggablePanelRoot, DraggablePanelToggle, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger, FloatingPanel, FloatingSheet, FocusScope, Form, FormDivider, FormField, FormFlatGroup, FormFooter, FormGroup, FormSubmitFooter, FormTitle, Input_default as Input, InputNumber_default as InputNumber, InputOTP, InputPassword_default as InputPassword, List, Modal, ModalBackdrop, ModalClose, ModalContent, ModalContext, ModalDescription, ModalFooter, ModalHeader, ModalHost, ModalPopup, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, ModalViewport, Pagination, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, Progress, QRCode, Radio, RadioGroup, Rate, Result, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Segmented, SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot, Select, SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonAvatar, SkeletonText, Slider, SliderWithInput, Spin, SplitButton, Statistic, Steps, Switch, SwitchIcon, SwitchRoot, SwitchThumb, Table, Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, Tag, Text, TextArea_default as TextArea, ToastHost, ToggleGroup, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot, Tooltip, TooltipGroup, Tree, Upload, UploadDragger, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, conductCheck, confirmModal, controlHeight, createModal, createModalSystem, createPickerLocale, datePickerLocaleEnUS, datePickerLocaleZhCN, drawerBackdropTransition, flattenVisible, focusScopeItem, styles$6 as focusScopeStyles, formatStatisticValue, generatePicker, getActiveScopeId, getAllKeys, getDrawerMotionConfig, getFloatingCollisionPadding, getLastFocusedItem, styles$7 as inputStyles, rootVariants as inputVariants, modalMotionConfig, notifyScopeItemFocus, parseTrigger, presetColors, presetSystemColors, styles$8 as radioStyles, registerScope, renderDropdownMenuItems, setActiveScope, setContextMenuInterceptor, setFloatingCollisionPadding, setLastFocusedItem, showContextMenu, styles$9 as sliderStyles, styles$10 as switchStyles, styles$11 as tabsStyles, groupStyles as textGroupStyles, styles$12 as textStyles, variants as textVariants, toast, styles$13 as toggleGroupStyles, styles$14 as treeStyles, updateContextMenuItems, useAccordionContext, useActiveScopeId, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFocusScopeActive, useFocusScopeId, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useScopeArrowNav, useScopeSwitcher, useSwitchContext, useTabsContext, useToast };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "5.64.0",
3
+ "version": "5.64.2",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",