@sonamu-kit/react-components 0.4.7 → 0.4.8

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 (61) hide show
  1. package/dist/components/ui/calendar.js +12 -6
  2. package/dist/components/ui/calendar.js.map +1 -1
  3. package/dist/components/ui/carousel.js +12 -16
  4. package/dist/components/ui/carousel.js.map +1 -1
  5. package/dist/components/ui/common-modal.d.ts +6 -6
  6. package/dist/components/ui/common-modal.js.map +1 -1
  7. package/dist/components/ui/file-input.js +131 -130
  8. package/dist/components/ui/file-input.js.map +1 -1
  9. package/dist/components/ui/input.js +21 -20
  10. package/dist/components/ui/input.js.map +1 -1
  11. package/dist/components/ui/month-picker-multiple.js +31 -19
  12. package/dist/components/ui/month-picker-multiple.js.map +1 -1
  13. package/dist/components/ui/pagination.js +18 -17
  14. package/dist/components/ui/pagination.js.map +1 -1
  15. package/dist/components/ui/select/enum-select.js +4 -2
  16. package/dist/components/ui/select/enum-select.js.map +1 -1
  17. package/dist/components/ui/select/id-async-select.d.ts +32 -14
  18. package/dist/components/ui/select/id-async-select.js +185 -144
  19. package/dist/components/ui/select/id-async-select.js.map +1 -1
  20. package/dist/components/ui/select/select.js +199 -158
  21. package/dist/components/ui/select/select.js.map +1 -1
  22. package/dist/components/ui/sidebar.d.ts +2 -1
  23. package/dist/components/ui/sidebar.js +54 -45
  24. package/dist/components/ui/sidebar.js.map +1 -1
  25. package/dist/components/ui/sonamu-filter/constants.d.ts +27 -3
  26. package/dist/components/ui/sonamu-filter/constants.js.map +1 -1
  27. package/dist/components/ui/sonamu-filter/rule-row-input.js +18 -15
  28. package/dist/components/ui/sonamu-filter/rule-row-input.js.map +1 -1
  29. package/dist/components/ui/sonamu-filter/sonamu-filter-modal.js +34 -37
  30. package/dist/components/ui/sonamu-filter/sonamu-filter-modal.js.map +1 -1
  31. package/dist/components/ui/sonamu-filter/sonamu-filter-popover.js +17 -12
  32. package/dist/components/ui/sonamu-filter/sonamu-filter-popover.js.map +1 -1
  33. package/dist/components/ui/sonamu-filter/types.d.ts +14 -9
  34. package/dist/components/ui/sonamu-filter/utils.d.ts +9 -7
  35. package/dist/components/ui/sonamu-filter/utils.js +39 -20
  36. package/dist/components/ui/sonamu-filter/utils.js.map +1 -1
  37. package/dist/components/ui/sonamu-filter/value-input.js +65 -50
  38. package/dist/components/ui/sonamu-filter/value-input.js.map +1 -1
  39. package/dist/contexts/sonamu-context.js +34 -10
  40. package/dist/contexts/sonamu-context.js.map +1 -1
  41. package/dist/demo/components/FormDebugPanel.d.ts +1 -1
  42. package/dist/hooks/use-toast.d.ts +1 -1
  43. package/dist/hooks/use-toast.js.map +1 -1
  44. package/dist/lib/base-helpers.d.ts +1 -1
  45. package/dist/lib/base-helpers.js +10 -10
  46. package/dist/lib/base-helpers.js.map +1 -1
  47. package/dist/lib/caster.d.ts +3 -2
  48. package/dist/lib/caster.js +37 -19
  49. package/dist/lib/caster.js.map +1 -1
  50. package/dist/lib/form-helpers.js +38 -35
  51. package/dist/lib/form-helpers.js.map +1 -1
  52. package/dist/lib/list-helpers.d.ts +2 -2
  53. package/dist/lib/list-helpers.js +33 -36
  54. package/dist/lib/list-helpers.js.map +1 -1
  55. package/dist/lib/use-mobile.js +5 -7
  56. package/dist/lib/use-mobile.js.map +1 -1
  57. package/dist/lib/utils.d.ts +0 -14
  58. package/dist/lib/utils.js +24 -14
  59. package/dist/lib/utils.js.map +1 -1
  60. package/dist/styles/globals.css +38 -106
  61. package/package.json +2 -2
@@ -300,120 +300,52 @@
300
300
  }
301
301
 
302
302
  /**
303
- * Base typography. This is not applied to elements which have an ancestor with a Tailwind text class.
303
+ * Base typography.
304
+ *
305
+ * Tailwind v4는 CSS를 theme < base < components < utilities 레이어 순서로 적용한다.
306
+ * 요소 자신에 붙은 text-*, font-*, leading-* 유틸리티는 항상 base 위에 오므로
307
+ * 여기서는 조건 없이 태그 기본값만 정한다.
308
+ *
309
+ * :has()로 조상의 클래스를 검사하는 조건은 두지 않는다. Firefox는 :has()가 포함된
310
+ * 전역 셀렉터를 DOM 변경마다 모든 조상에 대해 재평가하므로, 수백 행이 갱신되는
311
+ * 화면에서 수십 초의 멈춤이 발생한다(SON-540).
312
+ *
313
+ * 부모의 유틸리티가 상속되도록 헤딩 외에는 크기와 행간을 정하지 않는다.
314
+ * font-family는 body 상속과 Preflight(button, input의 font: inherit)로 충분하다.
304
315
  */
305
316
  @layer base {
306
- :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) {
307
- h1 {
308
- font-family:
309
- "Pretendard",
310
- -apple-system,
311
- BlinkMacSystemFont,
312
- system-ui,
313
- Roboto,
314
- sans-serif;
315
- font-size: var(--text-2xl);
316
- font-weight: var(--font-weight-medium);
317
- line-height: 1.5;
318
- }
319
-
320
- h2 {
321
- font-family:
322
- "Pretendard",
323
- -apple-system,
324
- BlinkMacSystemFont,
325
- system-ui,
326
- Roboto,
327
- sans-serif;
328
- font-size: var(--text-xl);
329
- font-weight: var(--font-weight-medium);
330
- line-height: 1.5;
331
- }
332
-
333
- h3 {
334
- font-family:
335
- "Pretendard",
336
- -apple-system,
337
- BlinkMacSystemFont,
338
- system-ui,
339
- Roboto,
340
- sans-serif;
341
- font-size: var(--text-lg);
342
- font-weight: var(--font-weight-medium);
343
- line-height: 1.5;
344
- }
345
-
346
- h4 {
347
- font-family:
348
- "Pretendard",
349
- -apple-system,
350
- BlinkMacSystemFont,
351
- system-ui,
352
- Roboto,
353
- sans-serif;
354
- font-size: var(--text-base);
355
- font-weight: var(--font-weight-medium);
356
- line-height: 1.5;
357
- }
358
-
359
- p {
360
- font-family:
361
- "Pretendard",
362
- -apple-system,
363
- BlinkMacSystemFont,
364
- system-ui,
365
- Roboto,
366
- sans-serif;
367
- font-size: var(--text-base);
368
- font-weight: var(--font-weight-normal);
369
- line-height: 1.5;
370
- }
371
-
372
- label {
373
- font-family:
374
- "Pretendard",
375
- -apple-system,
376
- BlinkMacSystemFont,
377
- system-ui,
378
- Roboto,
379
- sans-serif;
380
- font-size: var(--text-sm);
381
- font-weight: var(--font-weight-normal);
382
- line-height: 1.5;
383
- }
384
-
385
- button {
386
- font-family:
387
- "Pretendard",
388
- -apple-system,
389
- BlinkMacSystemFont,
390
- system-ui,
391
- Roboto,
392
- sans-serif;
393
- font-size: var(--text-base);
394
- font-weight: var(--font-weight-medium);
395
- line-height: 1.5;
396
- }
397
-
398
- input {
399
- font-family:
400
- "Pretendard",
401
- -apple-system,
402
- BlinkMacSystemFont,
403
- system-ui,
404
- Roboto,
405
- sans-serif;
406
- font-size: var(--text-base);
407
- font-weight: var(--font-weight-normal);
408
- line-height: 1.5;
409
- }
317
+ h1 {
318
+ font-size: var(--text-2xl);
319
+ font-weight: var(--font-weight-medium);
320
+ line-height: 1.5;
321
+ }
322
+
323
+ h2 {
324
+ font-size: var(--text-xl);
325
+ font-weight: var(--font-weight-medium);
326
+ line-height: 1.5;
327
+ }
328
+
329
+ h3 {
330
+ font-size: var(--text-lg);
331
+ font-weight: var(--font-weight-medium);
332
+ line-height: 1.5;
333
+ }
334
+
335
+ h4 {
336
+ font-size: var(--text-base);
337
+ font-weight: var(--font-weight-medium);
338
+ line-height: 1.5;
339
+ }
340
+
341
+ button {
342
+ font-weight: var(--font-weight-medium);
410
343
  }
411
344
  }
412
345
 
413
346
  html {
414
347
  font-size: var(--font-size);
415
348
  }
416
-
417
349
  /* Custom Scrollbar Styles */
418
350
  ::-webkit-scrollbar {
419
351
  width: 8px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonamu-kit/react-components",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "license": "MIT",
5
5
  "author": "CartaNova <dev@cartanova.ai>",
6
6
  "repository": {
@@ -114,7 +114,7 @@
114
114
  "postcss": "^8.4.49",
115
115
  "storybook": "^10.2.19",
116
116
  "tailwindcss": "^4.0.0",
117
- "typescript": "^6.0.3",
117
+ "typescript": "7.1.0-dev.20260831.1",
118
118
  "unplugin-icons": "0.20.2",
119
119
  "vite": "8.0.16",
120
120
  "vite-plugin-dts": "5.0.2",