wimui 0.5.1 → 0.5.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wimui",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "description": "React component library with design tokens, dark mode, i18n (en/ja/pt-BR), and WAI-ARIA compliant accessibility. 200+ components documented in Storybook.",
6
6
  "main": "dist/index.cjs",
@@ -140,49 +140,149 @@
140
140
  },
141
141
  "size-limit": [
142
142
  {
143
- "name": "ESM library total (gzip)",
144
- "path": [
145
- "dist/**/*.js",
146
- "!dist/wimui.umd.js"
143
+ "name": "import { Button } — 単体利用の下限 (gzip)",
144
+ "path": "dist/index.js",
145
+ "import": "{ Button }",
146
+ "ignore": [
147
+ "react",
148
+ "react-dom",
149
+ "react/jsx-runtime"
147
150
  ],
148
151
  "gzip": true,
149
- "limit": "380 kB"
152
+ "limit": "13 kB"
150
153
  },
151
154
  {
152
- "name": "Bundled third-party code (gzip)",
153
- "path": "dist/node_modules/**/*.js",
155
+ "name": "小さな画面: Button/Input/Card/Stack/Text (gzip)",
156
+ "path": "dist/index.js",
157
+ "import": "{ Button, Input, Card, Stack, Text }",
158
+ "ignore": [
159
+ "react",
160
+ "react-dom",
161
+ "react/jsx-runtime"
162
+ ],
163
+ "gzip": true,
164
+ "limit": "19 kB"
165
+ },
166
+ {
167
+ "name": "フォーム画面: 入力7種 (gzip)",
168
+ "path": "dist/index.js",
169
+ "import": "{ Button, Input, Select, Checkbox, Switch, Textarea, Label }",
170
+ "ignore": [
171
+ "react",
172
+ "react-dom",
173
+ "react/jsx-runtime"
174
+ ],
175
+ "gzip": true,
176
+ "limit": "23 kB"
177
+ },
178
+ {
179
+ "name": "ルートバレル全部 — 最悪ケース (gzip)",
180
+ "path": "dist/index.js",
181
+ "import": "*",
182
+ "ignore": [
183
+ "react",
184
+ "react-dom",
185
+ "react/jsx-runtime"
186
+ ],
154
187
  "gzip": true,
155
- "limit": "5 kB"
188
+ "limit": "205 kB"
156
189
  },
157
190
  {
158
- "name": "form components (gzip)",
159
- "path": "dist/components/form/**/*.js",
191
+ "name": "wimui/form 全部 (gzip)",
192
+ "path": "dist/form.js",
193
+ "import": "*",
194
+ "ignore": [
195
+ "react",
196
+ "react-dom",
197
+ "react/jsx-runtime"
198
+ ],
160
199
  "gzip": true,
161
- "limit": "88 kB"
200
+ "limit": "95 kB"
162
201
  },
163
202
  {
164
- "name": "charts components (gzip)",
165
- "path": "dist/components/charts/**/*.js",
203
+ "name": "wimui/layout 全部 (gzip)",
204
+ "path": "dist/layout.js",
205
+ "import": "*",
206
+ "ignore": [
207
+ "react",
208
+ "react-dom",
209
+ "react/jsx-runtime"
210
+ ],
166
211
  "gzip": true,
167
- "limit": "15 kB"
212
+ "limit": "30 kB"
213
+ },
214
+ {
215
+ "name": "wimui/data-display 全部 (gzip)",
216
+ "path": "dist/data-display.js",
217
+ "import": "*",
218
+ "ignore": [
219
+ "react",
220
+ "react-dom",
221
+ "react/jsx-runtime"
222
+ ],
223
+ "gzip": true,
224
+ "limit": "76 kB"
225
+ },
226
+ {
227
+ "name": "wimui/charts 全部 (gzip)",
228
+ "path": "dist/charts.js",
229
+ "import": "*",
230
+ "ignore": [
231
+ "react",
232
+ "react-dom",
233
+ "react/jsx-runtime",
234
+ "recharts"
235
+ ],
236
+ "gzip": true,
237
+ "limit": "10 kB"
238
+ },
239
+ {
240
+ "name": "wimui/ai 全部 (gzip)",
241
+ "path": "dist/ai.js",
242
+ "import": "*",
243
+ "ignore": [
244
+ "react",
245
+ "react-dom",
246
+ "react/jsx-runtime"
247
+ ],
248
+ "gzip": true,
249
+ "limit": "29 kB"
168
250
  },
169
251
  {
170
252
  "name": "UMD Bundle (gzip)",
171
253
  "path": "dist/wimui.umd.js",
172
254
  "gzip": true,
173
- "limit": "145 kB"
255
+ "limit": "145 kB",
256
+ "disablePlugins": [
257
+ "@size-limit/esbuild"
258
+ ]
174
259
  },
175
260
  {
176
261
  "name": "styles.css — tokens + components (gzip)",
177
262
  "path": "dist/styles.css",
178
263
  "gzip": true,
179
- "limit": "78 kB"
264
+ "limit": "78 kB",
265
+ "disablePlugins": [
266
+ "@size-limit/esbuild"
267
+ ]
180
268
  },
181
269
  {
182
270
  "name": "reset.css — reset/base (gzip)",
183
271
  "path": "dist/reset.css",
184
272
  "gzip": true,
185
- "limit": "4 kB"
273
+ "limit": "4 kB",
274
+ "disablePlugins": [
275
+ "@size-limit/esbuild"
276
+ ]
277
+ },
278
+ {
279
+ "name": "Bundled third-party code (gzip)",
280
+ "path": "dist/node_modules/**/*.js",
281
+ "gzip": true,
282
+ "limit": "5 kB",
283
+ "disablePlugins": [
284
+ "@size-limit/esbuild"
285
+ ]
186
286
  }
187
287
  ],
188
288
  "engines": {
@@ -242,6 +342,7 @@
242
342
  "smoke:full": "npm run build && node scripts/smoke/run.mjs --full",
243
343
  "smoke:pnpm": "npm run build && node scripts/smoke/run.mjs --pm pnpm",
244
344
  "smoke:treeshake": "npm run build && node scripts/smoke/run.mjs --treeshake",
345
+ "smoke:recipes": "npm run build && node scripts/smoke/run.mjs --recipes",
245
346
  "smoke:nobuild": "node scripts/smoke/run.mjs",
246
347
  "audit-mdx": "node scripts/audit-mdx.js",
247
348
  "audit:all": "node scripts/audit-all.js",
@@ -252,15 +353,19 @@
252
353
  "audit:i18n-ignore": "node scripts/check-i18n-ignore.js",
253
354
  "scaffold": "node scripts/scaffold-component.js",
254
355
  "llms:build": "node scripts/generate-llms.js",
356
+ "check:llms": "node scripts/generate-llms.js --check",
255
357
  "tokens:build": "node style-dictionary.config.js && node scripts/generate-intents.js && node scripts/generate-presets.js",
256
358
  "intents:build": "node scripts/generate-intents.js",
257
359
  "check:intents": "node scripts/generate-intents.js --check",
258
360
  "check:intents:scss": "node scripts/check-intents-scss.js",
361
+ "check:contrast": "node scripts/check-contrast.js",
362
+ "check:prop-classes": "node scripts/check-prop-classes.js",
259
363
  "check:slop": "node scripts/check-slop.js",
260
364
  "judge:slop": "node scripts/judge-slop.mjs",
261
365
  "changeset": "changeset",
262
366
  "version": "changeset version",
263
367
  "release": "npm run build && changeset publish",
368
+ "version:packages": "changeset version && npm run llms:build",
264
369
  "prepublishOnly": "npm run build",
265
370
  "prepare": "husky"
266
371
  },
@@ -300,6 +405,7 @@
300
405
  "@google/genai": "2.12.0",
301
406
  "@hookform/resolvers": "5.4.0",
302
407
  "@playwright/test": "^1.59.0",
408
+ "@size-limit/esbuild": "12.1.0",
303
409
  "@size-limit/file": "^12.0.1",
304
410
  "@storybook/addon-a11y": "10.5.3",
305
411
  "@storybook/addon-docs": "10.5.3",
@@ -448,7 +554,9 @@
448
554
  ],
449
555
  "stories/**/*.{ts,tsx}": [
450
556
  "node scripts/check-stories-hardcoded.js",
451
- "node scripts/check-i18n-ignore.js",
557
+ "node scripts/check-i18n-ignore.js"
558
+ ],
559
+ "{stories,sandbox}/**/*.tsx": [
452
560
  "node scripts/check-slop.js"
453
561
  ],
454
562
  "{src,stories}/**/*.{css,scss}": [
@@ -459,7 +567,8 @@
459
567
  "node scripts/check-mdx-hardcoded.js",
460
568
  "node scripts/check-i18n-components.js",
461
569
  "node scripts/check-mdx-links.js",
462
- "node scripts/audit-mdx.js"
570
+ "node scripts/audit-mdx.js",
571
+ "node scripts/check-slop.js"
463
572
  ],
464
573
  "public/locales/**/*.json": [
465
574
  "node scripts/sync-i18n.js",
@@ -476,6 +585,15 @@
476
585
  "tokens/intents.json": [
477
586
  "node scripts/generate-intents.js",
478
587
  "node scripts/stage-generated.js src/types/generated-intents.ts src/tokens/generated/_intents.scss --"
588
+ ],
589
+ "tokens/**/*.json": [
590
+ "node scripts/check-contrast.js"
591
+ ],
592
+ "src/styles/_token-common.scss": [
593
+ "node scripts/check-contrast.js"
594
+ ],
595
+ "src/components/**/*.module.scss": [
596
+ "node scripts/check-prop-classes.js"
479
597
  ]
480
598
  },
481
599
  "dependencies": {
@@ -484,4 +602,4 @@
484
602
  "classnames": "^2.5.1",
485
603
  "react-is": "19.2.7"
486
604
  }
487
- }
605
+ }