@colixsystems/widget-sdk 0.234.0 → 0.236.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/README.md +9 -1
- package/dist/contract.cjs +6 -2
- package/dist/contract.js +6 -2
- package/dist/datetimepicker-calendar.js +225 -0
- package/dist/datetimepicker-cells.js +71 -0
- package/dist/datetimepicker-format.js +107 -45
- package/dist/datetimepicker-names.js +99 -0
- package/dist/datetimepicker-sheet-header.js +159 -0
- package/dist/datetimepicker-sheet-parts.js +146 -0
- package/dist/datetimepicker-sheet-state.js +117 -0
- package/dist/datetimepicker-sheet.js +113 -0
- package/dist/datetimepicker-time-columns.js +107 -0
- package/dist/datetimepicker-view.js +221 -0
- package/dist/datetimepicker.js +12 -163
- package/dist/datetimepicker.native.js +36 -124
- package/dist/hooks.js +8 -0
- package/dist/host.d.ts +10 -2
- package/dist/host.js +1 -0
- package/dist/theme-background.cjs +18 -0
- package/dist/theme-background.js +17 -0
- package/package.json +1 -1
- package/src/contract.js +6 -2
package/src/contract.js
CHANGED
|
@@ -3123,7 +3123,7 @@ const PRIMITIVES = [
|
|
|
3123
3123
|
{
|
|
3124
3124
|
name: "DateTimePicker",
|
|
3125
3125
|
description:
|
|
3126
|
-
'Cross-platform date / time / datetime
|
|
3126
|
+
'Cross-platform date / time / datetime field. `<DateTimePicker value={iso} onChange={iso => …} mode="date" | "time" | "datetime" accessibilityLabel="Due" />`. The value prop and the onChange callback both speak ISO 8601 strings (the datastore wire format): `YYYY-MM-DD` for date, `HH:mm` for time, a full UTC instant for datetime — authors never round-trip through `new Date()`. Clearing emits "". The field shows the value in the app user\'s language beside a calendar (or clock) icon, with a clear button once it holds a value. Web opens a themed calendar sheet in `<Overlay>`: a month grid (keyboard: arrows, Home/End, PageUp/PageDown), a month and year jump, hour and minute columns for time, and a Today / Now button. Native opens the operating system\'s own picker (@react-native-community/datetimepicker). `minimumDate` / `maximumDate` (ISO, `HH:mm` in time mode) bound what can be picked; `disabled` locks the field. Optional copy: `placeholder`, `clearLabel` (default "Clear"), `doneLabel` (default "Done", closes the web time sheet), `closeAccessibilityLabel`; `testID` names the field. Colours come from the workspace theme — the field from the text-field tokens, the sheet from the popover scope, the chosen day from `colors.primary`; never style it with raw CSS or `document`.',
|
|
3127
3127
|
rnComponent: "@react-native-community/datetimepicker",
|
|
3128
3128
|
docsUrl: "https://github.com/react-native-datetimepicker/datetimepicker",
|
|
3129
3129
|
},
|
|
@@ -6045,7 +6045,11 @@ const CONTRACT = deepFreeze({
|
|
|
6045
6045
|
// 1.189.0: additive (sc-11703) — `resolveFooterTokens` gains `padding`,
|
|
6046
6046
|
// the space around a bottom bar's tabs (0–12, default 4); `FOOTER_SIZES`
|
|
6047
6047
|
// gains its bound.
|
|
6048
|
-
|
|
6048
|
+
// 1.190.0: additive (sc-11777) — `<DateTimePicker>` on web opens a themed
|
|
6049
|
+
// calendar sheet instead of the browser's date popup; both hosts show
|
|
6050
|
+
// the value in the app's language with a clear button. New optional
|
|
6051
|
+
// props: placeholder, clearLabel, doneLabel, closeAccessibilityLabel, testID.
|
|
6052
|
+
version: "1.190.0",
|
|
6049
6053
|
sharedTranslationKeys: SHARED_TRANSLATION_KEYS,
|
|
6050
6054
|
hooks: HOOKS,
|
|
6051
6055
|
primitives: PRIMITIVES,
|