@aivex/ui 1.2.0-dev.35 → 1.2.0-dev.37

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 (54) hide show
  1. package/README.md +68 -0
  2. package/dist/{Button-DLfTdKpW.js → Button-CuvXiYtX.js} +1381 -1436
  3. package/dist/Button-CuvXiYtX.js.map +1 -0
  4. package/dist/Button-DXf0LWOC.cjs +2 -0
  5. package/dist/Button-DXf0LWOC.cjs.map +1 -0
  6. package/dist/IconButton-CrrS0BMg.cjs +2 -0
  7. package/dist/{IconButton-CfbfwHu2.cjs.map → IconButton-CrrS0BMg.cjs.map} +1 -1
  8. package/dist/{IconButton-CQG1Pw51.js → IconButton-DusjiWye.js} +14 -13
  9. package/dist/{IconButton-CQG1Pw51.js.map → IconButton-DusjiWye.js.map} +1 -1
  10. package/dist/comment.cjs +1 -1
  11. package/dist/comment.cjs.map +1 -1
  12. package/dist/comment.js +51 -41
  13. package/dist/comment.js.map +1 -1
  14. package/dist/components/Calendar/Calendar.d.ts +13 -2
  15. package/dist/components/Calendar/Calendar.test.d.ts +1 -0
  16. package/dist/components/Calendar/date.d.ts +2 -2
  17. package/dist/components/Calendar/date.test.d.ts +1 -0
  18. package/dist/components/Calendar/index.d.ts +1 -1
  19. package/dist/components/Drawer/Drawer.d.ts +2 -1
  20. package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +1 -2
  21. package/dist/components/ShapeEditor/_model/strings.d.ts +1 -0
  22. package/dist/components/ShapeEditor/_renderers/types.d.ts +2 -1
  23. package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +0 -1
  24. package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +4 -4
  25. package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +9 -0
  26. package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +1 -1
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +1351 -1389
  31. package/dist/index.js.map +1 -1
  32. package/dist/keyboard-9B-R6uN0.cjs +2 -0
  33. package/dist/keyboard-9B-R6uN0.cjs.map +1 -0
  34. package/dist/{Switch-D7Dzld4x.js → keyboard-DUqwZll5.js} +178 -105
  35. package/dist/keyboard-DUqwZll5.js.map +1 -0
  36. package/dist/shape-editor.cjs +1 -1
  37. package/dist/shape-editor.cjs.map +1 -1
  38. package/dist/shape-editor.js +1549 -1554
  39. package/dist/shape-editor.js.map +1 -1
  40. package/dist/styles.css +1 -1
  41. package/dist/utils/keyboard.d.ts +3 -0
  42. package/dist/utils/useModalAutoFocus.d.ts +5 -0
  43. package/dist/utils.cjs +2 -0
  44. package/dist/utils.cjs.map +1 -0
  45. package/dist/utils.js +59 -0
  46. package/dist/utils.js.map +1 -0
  47. package/package.json +20 -22
  48. package/dist/Button-BcJuLWuX.cjs +0 -2
  49. package/dist/Button-BcJuLWuX.cjs.map +0 -1
  50. package/dist/Button-DLfTdKpW.js.map +0 -1
  51. package/dist/IconButton-CfbfwHu2.cjs +0 -2
  52. package/dist/Switch-BTWZAzgl.cjs +0 -2
  53. package/dist/Switch-BTWZAzgl.cjs.map +0 -1
  54. package/dist/Switch-D7Dzld4x.js.map +0 -1
package/README.md CHANGED
@@ -108,3 +108,71 @@ pnpm build
108
108
  pnpm typecheck
109
109
  pnpm lint
110
110
  ```
111
+
112
+ ## Calendar props
113
+
114
+ `locale` accepts a BCP 47 language tag (default: `"ko-KR"`). Month titles, weekday labels,
115
+ day numerals, and default navigation target labels use this locale. Date selection uses
116
+ the Gregorian calendar. Explicit labels and `formatMonthTitle` override these defaults.
117
+
118
+ `weekStartsOn` accepts `"SUNDAY"` (default) or `"MONDAY"`.
119
+ `weekdayLabels` maps weekday names to display labels; object order does not affect placement.
120
+
121
+ ```tsx
122
+ <Calendar
123
+ month={month}
124
+ locale="en-US"
125
+ weekStartsOn="MONDAY"
126
+ weekdayLabels={{
127
+ MONDAY: "Mon", TUESDAY: "Tue", WEDNESDAY: "Wed", THURSDAY: "Thu",
128
+ FRIDAY: "Fri", SATURDAY: "Sat", SUNDAY: "Sun",
129
+ }}
130
+ />
131
+ ```
132
+
133
+ When migrating from the previous release, replace positional `weekdayLabels` arrays
134
+ with the keyed object above. `weekStartsOn` is a new option; its default remains Sunday.
135
+ The default Korean month title changes from `2026. 08` to `2026년 8월`. To keep the
136
+ previous display, pass `formatMonthTitle`. Locale controls labels and numerals, not
137
+ week order or RTL layout.
138
+
139
+ ## Server utilities
140
+
141
+ Use `import { cn } from "@aivex/ui/utils"` in Server Components.
142
+ This entry contains only the class-name utility, without client components or CSS imports.
143
+
144
+ ## Overlay and editor integration
145
+
146
+ Radix primitives remain normal external runtime dependencies instead of a private
147
+ copy bundled into the library. The package manager installs them with `@aivex/ui`;
148
+ consuming apps do not need to declare extra Radix dependencies or version overrides
149
+ solely to use these components.
150
+
151
+ The main, comment, and shape-editor entries resolve the same installed Radix packages.
152
+ Use the provided Modal, Dialog, Popover, Menu, and SelectBox for nested overlays;
153
+ the integration tests cover their dismissal order and focus restoration.
154
+
155
+ The overlay family uses exact official versions (Dialog/AlertDialog/Popover 1.1.15,
156
+ Menu 2.1.16, Select 2.2.6, Tooltip 1.2.8), which share DismissableLayer 1.1.11.
157
+ The newer 1.1.19 layer regressed the first outside click after closing a nested
158
+ Select in our regression fixture. Upgrades should pass that fixture before these
159
+ pins change. No local dependency patch or consumer-side override is required.
160
+
161
+ Pointer events from DOM panels must reach the document for Radix outside-click
162
+ tracking. Canvas renderers listen to their own canvas, so sibling DOM panels do
163
+ not need to stop pointerdown propagation. A panel may still stop click propagation
164
+ to prevent its parent marker from being selected again. Radix's known two-click
165
+ behavior with stopped pointerdown is not fixed by this version pin; we avoid that
166
+ unnecessary interception in our editor panels instead of patching the library.
167
+
168
+ ShapeEditor shortcuts apply when its canvas has focus. Clicking the canvas focuses it;
169
+ inputs and child dialogs retain their own keyboard behavior. Consumers that open an
170
+ overlay programmatically should let it receive focus so shortcuts stay with that overlay.
171
+
172
+ Modal, Dialog, and ModalBase preserve normal keyboard event propagation.
173
+ Radix manages focus and dismissals; applications own the scope of business shortcuts.
174
+ Replace the former `stopKeyboardPropagation` prop with scoped application handlers.
175
+ Application shortcuts should ignore portal events and events from nested dialogs,
176
+ menus, or listboxes outside their own scope, and respect `defaultPrevented`.
177
+ Use ModalBase for custom modal surfaces and Popover for anchored nested controls
178
+ so Escape and focus restoration follow the shared layer stack.