@rippling/pebble-sdui-mobile 0.7.2 → 0.11.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.
@@ -11,8 +11,8 @@ Format an amount as currency (symbol/code + grouped decimals) using app currency
11
11
  `currencyCode` (optional): ISO 4217 code (e.g. `"USD"`). Defaults to USD when omitted.
12
12
  Other resolved keys are passed as `CurrencyFormatOptions` (e.g. `decimalPlaces`, `trimZeroDecimal`, `enforceDecimal`, `locale`).
13
13
 
14
- Catalog key: `currency_format`
15
- Helper: `currencyFormat`
14
+ Catalog key: `currency_format`
15
+ Helper: `currencyFormat`
16
16
  Params type: `CurrencyFormatParams`
17
17
 
18
18
  ### Params
@@ -30,8 +30,8 @@ Map an ISO 3166-1 alpha-2 country code to its primary ISO 4217 currency code.
30
30
 
31
31
  `value` (required): two-letter country code (e.g. `"US"`).
32
32
 
33
- Catalog key: `currency_getCurrencyCodeByCountryCode`
34
- Helper: `currencyGetCurrencyCodeByCountryCode`
33
+ Catalog key: `currency_getCurrencyCodeByCountryCode`
34
+ Helper: `currencyGetCurrencyCodeByCountryCode`
35
35
  Params type: `CurrencyGetCurrencyCodeByCountryCodeParams`
36
36
 
37
37
  ### Params
@@ -48,8 +48,8 @@ Human-readable currency name for an ISO 4217 code (e.g. USD → US Dollar).
48
48
 
49
49
  `value` (required): ISO 4217 currency code.
50
50
 
51
- Catalog key: `currency_getCurrencyNameByCode`
52
- Helper: `currencyGetCurrencyNameByCode`
51
+ Catalog key: `currency_getCurrencyNameByCode`
52
+ Helper: `currencyGetCurrencyNameByCode`
53
53
  Params type: `CurrencyGetCurrencyNameByCodeParams`
54
54
 
55
55
  ### Params
@@ -67,8 +67,8 @@ Resolve the display symbol (or code fallback) for a currency code.
67
67
  `value` (optional): ISO 4217 currency code; omit to use the default (USD).
68
68
  Other keys are passed as symbol options (`shouldReturnSymbol`, `locale`, `shouldReturnNonLocalizedSymbol`).
69
69
 
70
- Catalog key: `currency_getCurrencySymbol`
71
- Helper: `currencyGetCurrencySymbol`
70
+ Catalog key: `currency_getCurrencySymbol`
71
+ Helper: `currencyGetCurrencySymbol`
72
72
  Params type: `CurrencyGetCurrencySymbolParams`
73
73
 
74
74
  ### Params
@@ -85,8 +85,8 @@ Whether the given value can be interpreted as a number string (delegates to `Cur
85
85
 
86
86
  `value`: candidate to test. Optional `decimalDenote` for locale-specific decimal separators.
87
87
 
88
- Catalog key: `currency_isConvertableToCurrency`
89
- Helper: `currencyIsConvertableToCurrency`
88
+ Catalog key: `currency_isConvertableToCurrency`
89
+ Helper: `currencyIsConvertableToCurrency`
90
90
  Params type: `CurrencyIsConvertableToCurrencyParams`
91
91
 
92
92
  ### Params
@@ -105,8 +105,8 @@ Format a numeric amount with locale-aware grouping/decimals (no currency symbol)
105
105
  `value` (required): number or string amount.
106
106
  Other resolved keys are passed as number-format options (grouping/decimals/locale) — same as `CurrencyUtils.toMoney` / underlying number `format`.
107
107
 
108
- Catalog key: `currency_toMoney`
109
- Helper: `currencyToMoney`
108
+ Catalog key: `currency_toMoney`
109
+ Helper: `currencyToMoney`
110
110
  Params type: `CurrencyToMoneyParams`
111
111
 
112
112
  ### Params
@@ -125,8 +125,8 @@ Add a duration to a datetime and return the resulting `Date` via `DateTimeUtils.
125
125
  `duration` (required): `Duration` object with optional numeric fields: `years`, `months`, `weeks`, `days`, `hours`, `minutes`, `seconds`.
126
126
  `options` (optional): `AddOptions` (e.g. `parseFormat`, `parseTimeZone`) passed as the third argument to `DateTimeUtils.add`.
127
127
 
128
- Catalog key: `dateTime_add`
129
- Helper: `dateTimeAdd`
128
+ Catalog key: `dateTime_add`
129
+ Helper: `dateTimeAdd`
130
130
  Params type: `DateTimeAddParams`
131
131
 
132
132
  ### Params
@@ -147,8 +147,8 @@ Format a datetime for display via `DateTimeUtils.format` using preset tokens and
147
147
  `tokens` (optional): `FormatStyle` for `DateTimeUtils.format` — a preset string (e.g. `"medium"`) or an object with optional `date`, `time`, and/or `weekday` preset strings. See Rippling `FormatTokens` / `DateTimeUtils.format` for supported preset names.
148
148
  `options` (optional): `FormatOptions` passed as the third argument (e.g. `parseFormat`, `timeZone`, `parseTimeZone`, `unit`).
149
149
 
150
- Catalog key: `dateTime_format`
151
- Helper: `dateTimeFormat`
150
+ Catalog key: `dateTime_format`
151
+ Helper: `dateTimeFormat`
152
152
  Params type: `DateTimeFormatParams`
153
153
 
154
154
  ### Params
@@ -156,7 +156,7 @@ Params type: `DateTimeFormatParams`
156
156
  | Name | Required | Type | Description |
157
157
  |---|---:|---|---|
158
158
  | `options` | no | [DateTimeFormatParamsOption](./types.md#datetimeformatparamsoption) | Optional FormatOptions (parseFormat, timeZone, parseTimeZone, unit). |
159
- | `tokens` | no | unknown | FormatStyle preset(s) for DateTimeUtils.format — string or { date?, time?, weekday? } with string values. |
159
+ | `tokens` | no | string \| [Token](./types.md#token) | FormatStyle preset(s) for DateTimeUtils.format — string or { date?, time?, weekday? } with string values. |
160
160
  | `value` | yes | string | Primary datetime input (ISO string or resolved date). |
161
161
 
162
162
  Additional properties: unknown.