@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/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 picker. `<DateTimePicker value={iso} onChange={iso => …} mode="date" | "time" | "datetime" />`. The value prop and the onChange callback both speak ISO 8601 strings (the datastore wire format) — authors never round-trip through `new Date()`. Web renders the browser\'s native `<input type="date|time|datetime-local">` directly (react-native-web has no mapping for the RN datetimepicker library); native uses @react-native-community/datetimepicker. The field themes itself from the workspace theme — text uses `colors.onSurface`, the border `colors.border`, and on web `color-scheme` follows the theme so the browser\'s built-in date UI stays legible on a dark surface; never style it with raw CSS or `document`.',
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
- version: "1.189.0",
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,