@fluentui/react-datepicker-compat 9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 → 9.75.2-experimental.css-modules.20261113-ba13c87438.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -16
- package/README.md +12 -0
- package/lib/components/DatePicker/DatePicker.module.css +31 -0
- package/lib/components/DatePicker/useDatePickerStyles.styles.css.js +15 -0
- package/lib/components/DatePicker/useDatePickerStyles.styles.css.js.map +1 -0
- package/lib/components/DatePicker/useDatePickerStyles.styles.raw.css.js +15 -0
- package/lib/components/DatePicker/useDatePickerStyles.styles.raw.css.js.map +1 -0
- package/lib-commonjs/components/DatePicker/DatePicker.module.css +31 -0
- package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.css.cjs +34 -0
- package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.css.cjs.map +1 -0
- package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.raw.css.cjs +34 -0
- package/lib-commonjs/components/DatePicker/useDatePickerStyles.styles.raw.css.cjs.map +1 -0
- package/package.json +18 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,37 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-datepicker-compat
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Fri, 13 Nov 2026 20:37:12 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.75.
|
|
7
|
+
## [9.75.2-experimental.css-modules.20261113-ba13c87438.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v9.75.2-experimental.css-modules.20261113-ba13c87438.0)
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Fri, 13 Nov 2026 20:37:12 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-datepicker-compat_v0.6.41..@fluentui/react-datepicker-compat_v9.75.2-experimental.css-modules.20261113-ba13c87438.0)
|
|
10
11
|
|
|
11
12
|
### Changes
|
|
12
13
|
|
|
13
|
-
- Release 9.75.
|
|
14
|
-
- Bump @fluentui/keyboard-keys to v9.75.
|
|
15
|
-
- Bump @fluentui/react-calendar-compat to v9.75.
|
|
16
|
-
- Bump @fluentui/react-field to v9.75.
|
|
17
|
-
- Bump @fluentui/react-input to v9.75.
|
|
18
|
-
- Bump @fluentui/react-jsx-runtime to v9.75.
|
|
19
|
-
- Bump @fluentui/react-popover to v9.75.
|
|
20
|
-
- Bump @fluentui/react-portal to v9.75.
|
|
21
|
-
- Bump @fluentui/react-positioning to v9.75.
|
|
22
|
-
- Bump @fluentui/react-shared-contexts to v9.75.
|
|
23
|
-
- Bump @fluentui/react-tabster to v9.75.
|
|
24
|
-
- Bump @fluentui/react-theme to v9.75.
|
|
25
|
-
- Bump @fluentui/react-utilities to v9.75.
|
|
14
|
+
- Release 9.75.2-experimental.css-modules.20261113-ba13c87438 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
|
|
15
|
+
- Bump @fluentui/keyboard-keys to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
16
|
+
- Bump @fluentui/react-calendar-compat to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
17
|
+
- Bump @fluentui/react-field to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
18
|
+
- Bump @fluentui/react-input to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
19
|
+
- Bump @fluentui/react-jsx-runtime to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
20
|
+
- Bump @fluentui/react-popover to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
21
|
+
- Bump @fluentui/react-portal to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
22
|
+
- Bump @fluentui/react-positioning to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
23
|
+
- Bump @fluentui/react-shared-contexts to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
24
|
+
- Bump @fluentui/react-tabster to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
25
|
+
- Bump @fluentui/react-theme to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
26
|
+
- Bump @fluentui/react-utilities to v9.75.2-experimental.css-modules.20261113-ba13c87438.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
27
|
+
|
|
28
|
+
## [0.6.41](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.41)
|
|
29
|
+
|
|
30
|
+
Tue, 10 Nov 2026 16:50:23 GMT
|
|
31
|
+
|
|
32
|
+
### Patches
|
|
33
|
+
|
|
34
|
+
- Bump @fluentui/react-input to v9.8.9 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
26
35
|
|
|
27
36
|
## [0.6.40](https://github.com/microsoft/fluentui/tree/@fluentui/react-datepicker-compat_v0.6.40)
|
|
28
37
|
|
package/README.md
CHANGED
|
@@ -40,3 +40,15 @@ We will take a similar approach as v0 where we will follow this pattern:
|
|
|
40
40
|
|
|
41
41
|
- `breaking change (major)`: Since this is a compat component, we will allow breaking changes if absolutely necessary. To accommodate for this, we will denote those changes as a minor version in semver, i.e. `0.(change will be reflected here).x`.
|
|
42
42
|
- `minor and patch`: These changes will be reflected in the patch version in semver as `0.x.(change will be reflected here)`.
|
|
43
|
+
|
|
44
|
+
## Opt-in CSS Modules styles
|
|
45
|
+
|
|
46
|
+
The DatePicker style hook has an opt-in CSS Modules alternative. Griffel remains
|
|
47
|
+
the default. Configure a CSS Modules-capable bundler to replace
|
|
48
|
+
`useDatePickerStyles.styles` with `useDatePickerStyles.styles.css`, including
|
|
49
|
+
`.styles.js` → `.styles.css.js` for built imports, and retain the CSS
|
|
50
|
+
assets. The alternative preserves caller classes and styles the popup surface
|
|
51
|
+
independently so portaled and inline popups both work.
|
|
52
|
+
|
|
53
|
+
This alternative covers DatePicker's own slots only. Its composed Input and
|
|
54
|
+
Calendar components retain their existing style selection.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* @griffel-buckets reset: .popupSurface */
|
|
2
|
+
.root {
|
|
3
|
+
position: relative;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
}
|
|
6
|
+
.root input {
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
}
|
|
9
|
+
.disabled {
|
|
10
|
+
cursor: default;
|
|
11
|
+
}
|
|
12
|
+
.disabled input {
|
|
13
|
+
cursor: default;
|
|
14
|
+
}
|
|
15
|
+
.inline {
|
|
16
|
+
z-index: 1;
|
|
17
|
+
}
|
|
18
|
+
.popupSurface {
|
|
19
|
+
background-color: var(--colorNeutralBackground1);
|
|
20
|
+
box-shadow: var(--shadow16);
|
|
21
|
+
border-radius: var(--borderRadiusMedium);
|
|
22
|
+
border-width: 1px;
|
|
23
|
+
border-style: solid;
|
|
24
|
+
border-color: var(--colorTransparentStroke);
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
color: var(--colorNeutralForeground1);
|
|
27
|
+
font-family: var(--fontFamilyBase);
|
|
28
|
+
font-size: var(--fontSizeBase300);
|
|
29
|
+
font-weight: var(--fontWeightRegular);
|
|
30
|
+
line-height: var(--lineHeightBase300);
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./DatePicker.module.css";
|
|
3
|
+
export const datePickerClassNames = {
|
|
4
|
+
root: 'fui-DatePicker',
|
|
5
|
+
calendar: 'fui-DatePicker__calendar',
|
|
6
|
+
popupSurface: 'fui-DatePicker__popupSurface'
|
|
7
|
+
};
|
|
8
|
+
export const useDatePickerStyles_unstable = (state)=>{
|
|
9
|
+
state.root.className = clsx(datePickerClassNames.root, styles.root, state.disabled && styles.disabled, state.root.className);
|
|
10
|
+
if (state.popupSurface) {
|
|
11
|
+
state.popupSurface.className = clsx(datePickerClassNames.popupSurface, styles.popupSurface, state.inlinePopup && styles.inline, state.popupSurface.className);
|
|
12
|
+
}
|
|
13
|
+
state.calendar.className = clsx(datePickerClassNames.calendar, state.calendar.className);
|
|
14
|
+
return state;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DatePicker/useDatePickerStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DatePickerSlots, DatePickerState } from './DatePicker.types';\nimport styles from './DatePicker.module.css';\n\nexport const datePickerClassNames: SlotClassNames<DatePickerSlots> = {\n root: 'fui-DatePicker',\n calendar: 'fui-DatePicker__calendar',\n popupSurface: 'fui-DatePicker__popupSurface',\n};\n\nexport const useDatePickerStyles_unstable = (state: DatePickerState): DatePickerState => {\n state.root.className = clsx(\n datePickerClassNames.root,\n styles.root,\n state.disabled && styles.disabled,\n state.root.className,\n );\n if (state.popupSurface) {\n state.popupSurface.className = clsx(\n datePickerClassNames.popupSurface,\n styles.popupSurface,\n state.inlinePopup && styles.inline,\n state.popupSurface.className,\n );\n }\n state.calendar.className = clsx(datePickerClassNames.calendar, state.calendar.className);\n return state;\n};\n"],"names":["clsx","styles","datePickerClassNames","root","calendar","popupSurface","useDatePickerStyles_unstable","state","className","disabled","inlinePopup","inline"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,0BAA0B;AAE7C,OAAO,MAAMC,uBAAwD;IACnEC,MAAM;IACNC,UAAU;IACVC,cAAc;AAChB,EAAE;AAEF,OAAO,MAAMC,+BAA+B,CAACC;IAC3CA,MAAMJ,IAAI,CAACK,SAAS,GAAGR,KACrBE,qBAAqBC,IAAI,EACzBF,OAAOE,IAAI,EACXI,MAAME,QAAQ,IAAIR,OAAOQ,QAAQ,EACjCF,MAAMJ,IAAI,CAACK,SAAS;IAEtB,IAAID,MAAMF,YAAY,EAAE;QACtBE,MAAMF,YAAY,CAACG,SAAS,GAAGR,KAC7BE,qBAAqBG,YAAY,EACjCJ,OAAOI,YAAY,EACnBE,MAAMG,WAAW,IAAIT,OAAOU,MAAM,EAClCJ,MAAMF,YAAY,CAACG,SAAS;IAEhC;IACAD,MAAMH,QAAQ,CAACI,SAAS,GAAGR,KAAKE,qBAAqBE,QAAQ,EAAEG,MAAMH,QAAQ,CAACI,SAAS;IACvF,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import styles from "./DatePicker.module.css";
|
|
3
|
+
export const datePickerClassNames = {
|
|
4
|
+
root: 'fui-DatePicker',
|
|
5
|
+
calendar: 'fui-DatePicker__calendar',
|
|
6
|
+
popupSurface: 'fui-DatePicker__popupSurface'
|
|
7
|
+
};
|
|
8
|
+
export const useDatePickerStyles_unstable = (state)=>{
|
|
9
|
+
state.root.className = clsx(datePickerClassNames.root, styles.root, state.disabled && styles.disabled, state.root.className);
|
|
10
|
+
if (state.popupSurface) {
|
|
11
|
+
state.popupSurface.className = clsx(datePickerClassNames.popupSurface, styles.popupSurface, state.inlinePopup && styles.inline, state.popupSurface.className);
|
|
12
|
+
}
|
|
13
|
+
state.calendar.className = clsx(datePickerClassNames.calendar, state.calendar.className);
|
|
14
|
+
return state;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DatePicker/useDatePickerStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DatePickerSlots, DatePickerState } from './DatePicker.types';\nimport styles from './DatePicker.module.css';\n\nexport const datePickerClassNames: SlotClassNames<DatePickerSlots> = {\n root: 'fui-DatePicker',\n calendar: 'fui-DatePicker__calendar',\n popupSurface: 'fui-DatePicker__popupSurface',\n};\n\nexport const useDatePickerStyles_unstable = (state: DatePickerState): DatePickerState => {\n state.root.className = clsx(\n datePickerClassNames.root,\n styles.root,\n state.disabled && styles.disabled,\n state.root.className,\n );\n if (state.popupSurface) {\n state.popupSurface.className = clsx(\n datePickerClassNames.popupSurface,\n styles.popupSurface,\n state.inlinePopup && styles.inline,\n state.popupSurface.className,\n );\n }\n state.calendar.className = clsx(datePickerClassNames.calendar, state.calendar.className);\n return state;\n};\n"],"names":["clsx","styles","datePickerClassNames","root","calendar","popupSurface","useDatePickerStyles_unstable","state","className","disabled","inlinePopup","inline"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,0BAA0B;AAE7C,OAAO,MAAMC,uBAAwD;IACnEC,MAAM;IACNC,UAAU;IACVC,cAAc;AAChB,EAAE;AAEF,OAAO,MAAMC,+BAA+B,CAACC;IAC3CA,MAAMJ,IAAI,CAACK,SAAS,GAAGR,KACrBE,qBAAqBC,IAAI,EACzBF,OAAOE,IAAI,EACXI,MAAME,QAAQ,IAAIR,OAAOQ,QAAQ,EACjCF,MAAMJ,IAAI,CAACK,SAAS;IAEtB,IAAID,MAAMF,YAAY,EAAE;QACtBE,MAAMF,YAAY,CAACG,SAAS,GAAGR,KAC7BE,qBAAqBG,YAAY,EACjCJ,OAAOI,YAAY,EACnBE,MAAMG,WAAW,IAAIT,OAAOU,MAAM,EAClCJ,MAAMF,YAAY,CAACG,SAAS;IAEhC;IACAD,MAAMH,QAAQ,CAACI,SAAS,GAAGR,KAAKE,qBAAqBE,QAAQ,EAAEG,MAAMH,QAAQ,CAACI,SAAS;IACvF,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* @griffel-buckets reset: .popupSurface */
|
|
2
|
+
.root {
|
|
3
|
+
position: relative;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
}
|
|
6
|
+
.root input {
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
}
|
|
9
|
+
.disabled {
|
|
10
|
+
cursor: default;
|
|
11
|
+
}
|
|
12
|
+
.disabled input {
|
|
13
|
+
cursor: default;
|
|
14
|
+
}
|
|
15
|
+
.inline {
|
|
16
|
+
z-index: 1;
|
|
17
|
+
}
|
|
18
|
+
.popupSurface {
|
|
19
|
+
background-color: var(--colorNeutralBackground1);
|
|
20
|
+
box-shadow: var(--shadow16);
|
|
21
|
+
border-radius: var(--borderRadiusMedium);
|
|
22
|
+
border-width: 1px;
|
|
23
|
+
border-style: solid;
|
|
24
|
+
border-color: var(--colorTransparentStroke);
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
color: var(--colorNeutralForeground1);
|
|
27
|
+
font-family: var(--fontFamilyBase);
|
|
28
|
+
font-size: var(--fontSizeBase300);
|
|
29
|
+
font-weight: var(--fontWeightRegular);
|
|
30
|
+
line-height: var(--lineHeightBase300);
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get datePickerClassNames () {
|
|
13
|
+
return datePickerClassNames;
|
|
14
|
+
},
|
|
15
|
+
get useDatePickerStyles_unstable () {
|
|
16
|
+
return useDatePickerStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
+
const _clsx = require("clsx");
|
|
21
|
+
const _DatePickermodulecss = /*#__PURE__*/ _interop_require_default._(require("./DatePicker.module.css"));
|
|
22
|
+
const datePickerClassNames = {
|
|
23
|
+
root: 'fui-DatePicker',
|
|
24
|
+
calendar: 'fui-DatePicker__calendar',
|
|
25
|
+
popupSurface: 'fui-DatePicker__popupSurface'
|
|
26
|
+
};
|
|
27
|
+
const useDatePickerStyles_unstable = (state)=>{
|
|
28
|
+
state.root.className = (0, _clsx.clsx)(datePickerClassNames.root, _DatePickermodulecss.default.root, state.disabled && _DatePickermodulecss.default.disabled, state.root.className);
|
|
29
|
+
if (state.popupSurface) {
|
|
30
|
+
state.popupSurface.className = (0, _clsx.clsx)(datePickerClassNames.popupSurface, _DatePickermodulecss.default.popupSurface, state.inlinePopup && _DatePickermodulecss.default.inline, state.popupSurface.className);
|
|
31
|
+
}
|
|
32
|
+
state.calendar.className = (0, _clsx.clsx)(datePickerClassNames.calendar, state.calendar.className);
|
|
33
|
+
return state;
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DatePicker/useDatePickerStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DatePickerSlots, DatePickerState } from './DatePicker.types';\nimport styles from './DatePicker.module.css';\n\nexport const datePickerClassNames: SlotClassNames<DatePickerSlots> = {\n root: 'fui-DatePicker',\n calendar: 'fui-DatePicker__calendar',\n popupSurface: 'fui-DatePicker__popupSurface',\n};\n\nexport const useDatePickerStyles_unstable = (state: DatePickerState): DatePickerState => {\n state.root.className = clsx(\n datePickerClassNames.root,\n styles.root,\n state.disabled && styles.disabled,\n state.root.className,\n );\n if (state.popupSurface) {\n state.popupSurface.className = clsx(\n datePickerClassNames.popupSurface,\n styles.popupSurface,\n state.inlinePopup && styles.inline,\n state.popupSurface.className,\n );\n }\n state.calendar.className = clsx(datePickerClassNames.calendar, state.calendar.className);\n return state;\n};\n"],"names":["clsx","styles","datePickerClassNames","root","calendar","popupSurface","useDatePickerStyles_unstable","state","className","disabled","inlinePopup","inline"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;8EAGT,0BAA0B;AAEtC,6BAA8D;IACnEC,MAAM;IACNC,UAAU;IACVC,cAAc;AAChB,EAAE;AAEK,MAAMC,+BAA+B,CAACC;IAC3CA,MAAMJ,IAAI,CAACK,SAAS,OAAGR,UAAAA,EACrBE,qBAAqBC,IAAI,EACzBF,4BAAAA,CAAOE,IAAI,EACXI,MAAME,QAAQ,IAAIR,4BAAAA,CAAOQ,QAAQ,EACjCF,MAAMJ,IAAI,CAACK,SAAS;IAEtB,IAAID,MAAMF,YAAY,EAAE;QACtBE,MAAMF,YAAY,CAACG,SAAS,OAAGR,UAAAA,EAC7BE,qBAAqBG,YAAY,EACjCJ,4BAAAA,CAAOI,YAAY,EACnBE,MAAMG,WAAW,IAAIT,4BAAAA,CAAOU,MAAM,EAClCJ,MAAMF,YAAY,CAACG,SAAS;IAEhC;IACAD,MAAMH,QAAQ,CAACI,SAAS,OAAGR,UAAAA,EAAKE,qBAAqBE,QAAQ,EAAEG,MAAMH,QAAQ,CAACI,SAAS;IACvF,OAAOD;AACT,EAAE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get datePickerClassNames () {
|
|
13
|
+
return datePickerClassNames;
|
|
14
|
+
},
|
|
15
|
+
get useDatePickerStyles_unstable () {
|
|
16
|
+
return useDatePickerStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
+
const _clsx = require("clsx");
|
|
21
|
+
const _DatePickermodulecss = /*#__PURE__*/ _interop_require_default._(require("./DatePicker.module.css"));
|
|
22
|
+
const datePickerClassNames = {
|
|
23
|
+
root: 'fui-DatePicker',
|
|
24
|
+
calendar: 'fui-DatePicker__calendar',
|
|
25
|
+
popupSurface: 'fui-DatePicker__popupSurface'
|
|
26
|
+
};
|
|
27
|
+
const useDatePickerStyles_unstable = (state)=>{
|
|
28
|
+
state.root.className = (0, _clsx.clsx)(datePickerClassNames.root, _DatePickermodulecss.default.root, state.disabled && _DatePickermodulecss.default.disabled, state.root.className);
|
|
29
|
+
if (state.popupSurface) {
|
|
30
|
+
state.popupSurface.className = (0, _clsx.clsx)(datePickerClassNames.popupSurface, _DatePickermodulecss.default.popupSurface, state.inlinePopup && _DatePickermodulecss.default.inline, state.popupSurface.className);
|
|
31
|
+
}
|
|
32
|
+
state.calendar.className = (0, _clsx.clsx)(datePickerClassNames.calendar, state.calendar.className);
|
|
33
|
+
return state;
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/DatePicker/useDatePickerStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { DatePickerSlots, DatePickerState } from './DatePicker.types';\nimport styles from './DatePicker.module.css';\n\nexport const datePickerClassNames: SlotClassNames<DatePickerSlots> = {\n root: 'fui-DatePicker',\n calendar: 'fui-DatePicker__calendar',\n popupSurface: 'fui-DatePicker__popupSurface',\n};\n\nexport const useDatePickerStyles_unstable = (state: DatePickerState): DatePickerState => {\n state.root.className = clsx(\n datePickerClassNames.root,\n styles.root,\n state.disabled && styles.disabled,\n state.root.className,\n );\n if (state.popupSurface) {\n state.popupSurface.className = clsx(\n datePickerClassNames.popupSurface,\n styles.popupSurface,\n state.inlinePopup && styles.inline,\n state.popupSurface.className,\n );\n }\n state.calendar.className = clsx(datePickerClassNames.calendar, state.calendar.className);\n return state;\n};\n"],"names":["clsx","styles","datePickerClassNames","root","calendar","popupSurface","useDatePickerStyles_unstable","state","className","disabled","inlinePopup","inline"],"mappings":";;;;;;;;;;;QAKaE;;;;;;;;sBALQ,OAAO;8EAGT,0BAA0B;AAEtC,6BAA8D;IACnEC,MAAM;IACNC,UAAU;IACVC,cAAc;AAChB,EAAE;AAEK,MAAMC,+BAA+B,CAACC;IAC3CA,MAAMJ,IAAI,CAACK,SAAS,OAAGR,UAAAA,EACrBE,qBAAqBC,IAAI,EACzBF,4BAAAA,CAAOE,IAAI,EACXI,MAAME,QAAQ,IAAIR,4BAAAA,CAAOQ,QAAQ,EACjCF,MAAMJ,IAAI,CAACK,SAAS;IAEtB,IAAID,MAAMF,YAAY,EAAE;QACtBE,MAAMF,YAAY,CAACG,SAAS,OAAGR,UAAAA,EAC7BE,qBAAqBG,YAAY,EACjCJ,4BAAAA,CAAOI,YAAY,EACnBE,MAAMG,WAAW,IAAIT,4BAAAA,CAAOU,MAAM,EAClCJ,MAAMF,YAAY,CAACG,SAAS;IAEhC;IACAD,MAAMH,QAAQ,CAACI,SAAS,OAAGR,UAAAA,EAAKE,qBAAqBE,QAAQ,EAAEG,MAAMH,QAAQ,CAACI,SAAS;IACvF,OAAOD;AACT,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-datepicker-compat",
|
|
3
|
-
"version": "9.75.
|
|
3
|
+
"version": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
4
4
|
"description": "React components for building web experiences",
|
|
5
5
|
"main": "lib-commonjs/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
7
|
"typings": "./dist/index.d.ts",
|
|
8
|
-
"sideEffects":
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"**/*.css"
|
|
10
|
+
],
|
|
9
11
|
"repository": {
|
|
10
12
|
"type": "git",
|
|
11
13
|
"url": "https://github.com/microsoft/fluentui"
|
|
12
14
|
},
|
|
13
15
|
"license": "MIT",
|
|
14
16
|
"dependencies": {
|
|
15
|
-
"@fluentui/keyboard-keys": "9.75.
|
|
16
|
-
"@fluentui/react-calendar-compat": "9.75.
|
|
17
|
-
"@fluentui/react-field": "9.75.
|
|
17
|
+
"@fluentui/keyboard-keys": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
18
|
+
"@fluentui/react-calendar-compat": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
19
|
+
"@fluentui/react-field": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
18
20
|
"@fluentui/react-icons": "^2.0.245",
|
|
19
|
-
"@fluentui/react-input": "9.75.
|
|
20
|
-
"@fluentui/react-jsx-runtime": "9.75.
|
|
21
|
-
"@fluentui/react-popover": "9.75.
|
|
22
|
-
"@fluentui/react-portal": "9.75.
|
|
23
|
-
"@fluentui/react-positioning": "9.75.
|
|
24
|
-
"@fluentui/react-shared-contexts": "9.75.
|
|
25
|
-
"@fluentui/react-tabster": "9.75.
|
|
26
|
-
"@fluentui/react-theme": "9.75.
|
|
27
|
-
"@fluentui/react-utilities": "9.75.
|
|
21
|
+
"@fluentui/react-input": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
22
|
+
"@fluentui/react-jsx-runtime": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
23
|
+
"@fluentui/react-popover": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
24
|
+
"@fluentui/react-portal": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
25
|
+
"@fluentui/react-positioning": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
26
|
+
"@fluentui/react-shared-contexts": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
27
|
+
"@fluentui/react-tabster": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
28
|
+
"@fluentui/react-theme": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
29
|
+
"@fluentui/react-utilities": "9.75.2-experimental.css-modules.20261113-ba13c87438.0",
|
|
28
30
|
"@griffel/react": "^1.5.32",
|
|
29
|
-
"@swc/helpers": "^0.5.1"
|
|
31
|
+
"@swc/helpers": "^0.5.1",
|
|
32
|
+
"clsx": "^2.1.1"
|
|
30
33
|
},
|
|
31
34
|
"peerDependencies": {
|
|
32
35
|
"@types/react": ">=16.14.0 <20.0.0",
|