@saykit/react 0.0.0-beta-20260804120241 → 0.0.0-beta-20260805071713

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 (2) hide show
  1. package/dist/index.d.mts +9 -3
  2. package/package.json +3 -3
package/dist/index.d.mts CHANGED
@@ -100,10 +100,12 @@ declare namespace Say {
100
100
  * ```tsx
101
101
  * <Say>You have <Say.Number _={items.length} /> items</Say>
102
102
  * <Say>Battery at <Say.Number _={level} style="percent" /></Say>
103
+ * <Say>Total <Say.Number _={total} style="::currency/EUR" /></Say>
103
104
  * ```
104
105
  *
105
106
  * @param props._ Number to format
106
- * @param props.style Formatting style, either a named style or a literal number pattern
107
+ * @param props.style Formatting style: a named style, an ICU skeleton such as
108
+ * `::currency/EUR`, or a literal number pattern such as `#,##0.00`
107
109
  * @returns The formatted number, as a React node
108
110
  * @remark This is a macro and must be used with the relevant saykit plugin
109
111
  */
@@ -116,10 +118,12 @@ declare namespace Say {
116
118
  * @example
117
119
  * ```tsx
118
120
  * <Say>Published <Say.Date _={post.publishedAt} style="medium" /></Say>
121
+ * <Say>Published <Say.Date _={post.publishedAt} style="::yMMMM" /></Say>
119
122
  * ```
120
123
  *
121
124
  * @param props._ Date to format
122
- * @param props.style Formatting style
125
+ * @param props.style Formatting style, either a named style or an ICU
126
+ * skeleton such as `::yyyyMMdd`
123
127
  * @returns The formatted date, as a React node
124
128
  * @remark This is a macro and must be used with the relevant saykit plugin
125
129
  */
@@ -132,10 +136,12 @@ declare namespace Say {
132
136
  * @example
133
137
  * ```tsx
134
138
  * <Say>Doors open at <Say.Time _={opensAt} style="short" /></Say>
139
+ * <Say>Doors open at <Say.Time _={opensAt} style="::Hm" /></Say>
135
140
  * ```
136
141
  *
137
142
  * @param props._ Date to format
138
- * @param props.style Formatting style
143
+ * @param props.style Formatting style, either a named style or an ICU
144
+ * skeleton such as `::Hm`
139
145
  * @returns The formatted time, as a React node
140
146
  * @remark This is a macro and must be used with the relevant saykit plugin
141
147
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saykit/react",
3
- "version": "0.0.0-beta-20260804120241",
3
+ "version": "0.0.0-beta-20260805071713",
4
4
  "description": "React integration for saykit, i18n hooks and components",
5
5
  "keywords": [
6
6
  "i18n",
@@ -52,11 +52,11 @@
52
52
  "jsdom": "^29.1.1",
53
53
  "react": "^19.2.8",
54
54
  "react-dom": "^19.2.8",
55
- "saykit": "^0.0.0-beta-20260804120241"
55
+ "saykit": "^0.0.0-beta-20260805071713"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "react": "*",
59
- "saykit": "0.0.0-beta-20260804120241"
59
+ "saykit": "0.0.0-beta-20260805071713"
60
60
  },
61
61
  "scripts": {
62
62
  "check": "tsc --noEmit",