wimui 0.12.0 → 0.14.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.
Files changed (137) hide show
  1. package/dist/components/_internal/OverlayBase.cjs +1 -1
  2. package/dist/components/_internal/OverlayBase.js +1 -0
  3. package/dist/components/ai/AIResponseFeedback/AIResponseFeedback.cjs +1 -1
  4. package/dist/components/ai/AIResponseFeedback/AIResponseFeedback.js +60 -50
  5. package/dist/components/ai/ChatUI/ChatUI.cjs +1 -1
  6. package/dist/components/ai/ChatUI/ChatUI.d.ts +13 -1
  7. package/dist/components/ai/ChatUI/ChatUI.js +4 -4
  8. package/dist/components/ai/ChatUI/chat-ui.module.cjs +1 -1
  9. package/dist/components/ai/ChatUI/chat-ui.module.js +2 -2
  10. package/dist/components/ai/CodeBlock/code-block.module.cjs +1 -1
  11. package/dist/components/ai/CodeBlock/code-block.module.js +1 -1
  12. package/dist/components/ai/MarkdownRenderer/markdown-renderer.module.cjs +1 -1
  13. package/dist/components/ai/MarkdownRenderer/markdown-renderer.module.js +1 -1
  14. package/dist/components/ai/ModelSelector/ModelSelector.cjs +1 -1
  15. package/dist/components/ai/ModelSelector/ModelSelector.js +1 -1
  16. package/dist/components/ai/ModelSelector/model-selector.module.cjs +1 -1
  17. package/dist/components/ai/ModelSelector/model-selector.module.js +1 -1
  18. package/dist/components/ai/PromptInput/prompt-input.module.cjs +1 -1
  19. package/dist/components/ai/PromptInput/prompt-input.module.js +1 -1
  20. package/dist/components/ai/StreamingText/StreamingText.cjs +1 -1
  21. package/dist/components/ai/StreamingText/StreamingText.js +1 -1
  22. package/dist/components/ai/ThoughtProcess/thought-process.module.cjs +1 -1
  23. package/dist/components/ai/ThoughtProcess/thought-process.module.js +4 -4
  24. package/dist/components/ai/ThreadList/thread-list.module.cjs +1 -1
  25. package/dist/components/ai/ThreadList/thread-list.module.js +1 -1
  26. package/dist/components/ai/UsageMeter/usage-meter.module.cjs +1 -1
  27. package/dist/components/ai/UsageMeter/usage-meter.module.js +1 -1
  28. package/dist/components/charts/GanttChart/GanttChart.cjs +1 -1
  29. package/dist/components/charts/GanttChart/GanttChart.js +1 -4
  30. package/dist/components/charts/GanttChart/gantt-chart.module.cjs +1 -1
  31. package/dist/components/charts/GanttChart/gantt-chart.module.js +1 -1
  32. package/dist/components/data-display/Card/Card.d.ts +18 -5
  33. package/dist/components/data-display/Card/styled-values.d.ts +7 -4
  34. package/dist/components/data-display/DataGrid/datagrid.module.cjs +1 -1
  35. package/dist/components/data-display/DataGrid/datagrid.module.js +4 -3
  36. package/dist/components/data-display/DescriptionList/description-list.module.cjs +1 -1
  37. package/dist/components/data-display/DescriptionList/description-list.module.js +1 -1
  38. package/dist/components/data-display/InfiniteScroll/InfiniteScroll.cjs +1 -1
  39. package/dist/components/data-display/InfiniteScroll/InfiniteScroll.js +1 -1
  40. package/dist/components/data-display/List/List.cjs +1 -1
  41. package/dist/components/data-display/List/List.js +2 -2
  42. package/dist/components/data-display/List/list.module.cjs +1 -1
  43. package/dist/components/data-display/List/list.module.js +18 -17
  44. package/dist/components/data-display/Table/Table.cjs +1 -1
  45. package/dist/components/data-display/Table/Table.js +5 -5
  46. package/dist/components/data-display/Table/table.module.cjs +1 -1
  47. package/dist/components/data-display/Table/table.module.js +1 -1
  48. package/dist/components/data-display/TreeView/tree-view.module.cjs +1 -1
  49. package/dist/components/data-display/TreeView/tree-view.module.js +2 -2
  50. package/dist/components/feedback/Banner/Banner.cjs +1 -1
  51. package/dist/components/feedback/Banner/Banner.js +1 -4
  52. package/dist/components/feedback/Banner/banner.module.cjs +1 -1
  53. package/dist/components/feedback/Banner/banner.module.js +2 -2
  54. package/dist/components/feedback/Progress/Progress.cjs +1 -1
  55. package/dist/components/feedback/Progress/Progress.js +1 -7
  56. package/dist/components/form/Combobox/Combobox.cjs +1 -1
  57. package/dist/components/form/Combobox/Combobox.js +1 -1
  58. package/dist/components/form/DateRangePicker/date-range-picker.module.cjs +1 -1
  59. package/dist/components/form/DateRangePicker/date-range-picker.module.js +1 -1
  60. package/dist/components/form/FieldTemplate/field-template.module.cjs +1 -1
  61. package/dist/components/form/FieldTemplate/field-template.module.js +1 -1
  62. package/dist/components/form/FloatButton/FloatButton.cjs +1 -1
  63. package/dist/components/form/FloatButton/FloatButton.js +1 -1
  64. package/dist/components/form/FloatButton/float-button.module.cjs +1 -1
  65. package/dist/components/form/FloatButton/float-button.module.js +3 -3
  66. package/dist/components/form/InputBase/input-base.module.cjs +1 -1
  67. package/dist/components/form/InputBase/input-base.module.js +1 -1
  68. package/dist/components/form/OtpInput/otp-input.module.cjs +1 -1
  69. package/dist/components/form/OtpInput/otp-input.module.js +1 -1
  70. package/dist/components/form/PhoneInput/PhoneInput.cjs +1 -1
  71. package/dist/components/form/PhoneInput/PhoneInput.js +1 -4
  72. package/dist/components/form/QueryBuilder/querybuilder.module.cjs +1 -1
  73. package/dist/components/form/QueryBuilder/querybuilder.module.js +1 -1
  74. package/dist/components/form/RichTextEditor/rich-text-editor.module.cjs +1 -1
  75. package/dist/components/form/RichTextEditor/rich-text-editor.module.js +1 -1
  76. package/dist/components/form/Select/select.module.cjs +1 -1
  77. package/dist/components/form/Select/select.module.js +1 -1
  78. package/dist/components/form/SmartSearchInput/SmartSearchInput.cjs +1 -1
  79. package/dist/components/form/SmartSearchInput/SmartSearchInput.js +1 -1
  80. package/dist/components/form/SmartSearchInput/smart-search-input.module.cjs +1 -1
  81. package/dist/components/form/SmartSearchInput/smart-search-input.module.js +1 -1
  82. package/dist/components/form/Textarea/textarea.module.cjs +1 -1
  83. package/dist/components/form/Textarea/textarea.module.js +1 -1
  84. package/dist/components/form/ToggleGroup/ToggleGroup.cjs +1 -1
  85. package/dist/components/form/ToggleGroup/ToggleGroup.js +1 -4
  86. package/dist/components/form/Transfer/transfer.module.cjs +1 -1
  87. package/dist/components/form/Transfer/transfer.module.js +6 -6
  88. package/dist/components/form/TreeSelect/tree-select.module.cjs +1 -1
  89. package/dist/components/form/TreeSelect/tree-select.module.js +6 -6
  90. package/dist/components/layout/AppShell/AppShell.cjs +1 -1
  91. package/dist/components/layout/AppShell/AppShell.d.ts +0 -31
  92. package/dist/components/layout/AppShell/AppShell.js +41 -33
  93. package/dist/components/layout/BentoGrid/bento-grid.module.cjs +1 -1
  94. package/dist/components/layout/BentoGrid/bento-grid.module.js +1 -1
  95. package/dist/components/layout/Dashboard/Dashboard.cjs +1 -1
  96. package/dist/components/layout/Dashboard/Dashboard.js +1 -1
  97. package/dist/components/layout/Dashboard/dashboard.module.cjs +1 -1
  98. package/dist/components/layout/Dashboard/dashboard.module.js +13 -13
  99. package/dist/components/layout/Grid/grid.module.cjs +1 -1
  100. package/dist/components/layout/Grid/grid.module.js +1 -1
  101. package/dist/components/layout/Sidebar/Sidebar.d.ts +28 -2
  102. package/dist/components/layout/SimpleGrid/simple-grid.module.cjs +1 -1
  103. package/dist/components/layout/SimpleGrid/simple-grid.module.js +1 -1
  104. package/dist/components/layout/Transition/Transition.cjs +1 -1
  105. package/dist/components/layout/Transition/Transition.d.ts +13 -2
  106. package/dist/components/layout/Transition/Transition.js +29 -29
  107. package/dist/components/media/Gallery/gallery.module.cjs +1 -1
  108. package/dist/components/media/Gallery/gallery.module.js +11 -11
  109. package/dist/components/navigation/Pagination/pagination.module.cjs +1 -1
  110. package/dist/components/navigation/Pagination/pagination.module.js +1 -1
  111. package/dist/components/navigation/Stepper/Stepper.cjs +1 -1
  112. package/dist/components/navigation/Stepper/Stepper.js +1 -1
  113. package/dist/components/navigation/Stepper/stepper.module.cjs +1 -1
  114. package/dist/components/navigation/Stepper/stepper.module.js +1 -1
  115. package/dist/components/navigation/Tabs/tabs.module.cjs +1 -1
  116. package/dist/components/navigation/Tabs/tabs.module.js +1 -1
  117. package/dist/components/overlay/BottomSheet/BottomSheet.cjs +1 -1
  118. package/dist/components/overlay/BottomSheet/BottomSheet.js +16 -16
  119. package/dist/components/overlay/Dialog/Dialog.cjs +1 -1
  120. package/dist/components/overlay/Dialog/Dialog.js +12 -12
  121. package/dist/components/overlay/Drawer/Drawer.cjs +1 -1
  122. package/dist/components/overlay/Drawer/Drawer.js +7 -5
  123. package/dist/components/overlay/Drawer/drawer.module.cjs +1 -1
  124. package/dist/components/overlay/Drawer/drawer.module.js +12 -11
  125. package/dist/components/overlay/Menu/menu.module.cjs +1 -1
  126. package/dist/components/overlay/Menu/menu.module.js +1 -1
  127. package/dist/components/typography/Code/code.module.cjs +1 -1
  128. package/dist/components/typography/Code/code.module.js +1 -1
  129. package/dist/components/typography/Label/label.module.cjs +1 -1
  130. package/dist/components/typography/Label/label.module.js +1 -1
  131. package/dist/llms-full.txt +56 -8
  132. package/dist/llms.txt +1 -1
  133. package/dist/styles.css +2 -2
  134. package/dist/types/generated-tokens.d.ts +1 -0
  135. package/dist/wimui.umd.css +1 -1
  136. package/dist/wimui.umd.js +5 -5
  137. package/package.json +12 -6
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What this is
6
6
 
7
- **wimui** v0.12.0 — a React 19 component library: 218 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
7
+ **wimui** v0.14.0 — a React 19 component library: 218 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
8
8
 
9
9
  ## Install & required setup
10
10
 
@@ -786,8 +786,32 @@ The container-query wrapper div is preserved to maintain responsive column behav
786
786
  - `collapsed: boolean` — Collapsed state
787
787
  - `width: number | string` = 260 — Width when expanded
788
788
  - `bordered: boolean` = true — Border at the right
789
- - `responsive: boolean` = true — Enable responsive behavior (mobile drawer)
790
- - `mobileOpen: boolean` — Mobile drawer open state
789
+ - `responsive: boolean` = true — Below the `md` breakpoint, move the sidebar off-canvas so it stops taking
790
+ width from the content. Defaults to `true`.
791
+
792
+ **It does not bring a way back on screen.** Off-canvas means
793
+ `left: -{width}` until `mobileOpen` is true, and nothing in this component
794
+ flips that — so on a phone the sidebar and everything in it become
795
+ unreachable unless you wire a trigger yourself. Measured at 390px: the rail
796
+ sits at `x = -260` with no control anywhere on the page (T60).
797
+
798
+ Pair it with `mobileOpen` and a `HamburgerMenu`, the way the AppShell story
799
+ does:
800
+
801
+ ```tsx
802
+ const [open, setOpen] = useState(false);
803
+
804
+ <HamburgerMenu visibleBelow="md" open={open} onClick={() => setOpen((o) => !o)} />
805
+ <Sidebar mobileOpen={open} onOverlayClick={() => setOpen(false)}>…</Sidebar>
806
+ ```
807
+
808
+ `visibleBelow="md"` keeps the control out of the way at widths where the
809
+ rail is already on screen. The trigger lives outside this component on
810
+ purpose: it usually belongs in the header, and a built-in one would sit in
811
+ the wrong place or duplicate the one you already have.
812
+
813
+ Set `responsive={false}` to keep the sidebar in flow at every width.
814
+ - `mobileOpen: boolean` — Mobile drawer open state. Required for the rail to be reachable below `md` — see `responsive`.
791
815
  - `onOverlayClick: () => void` — Callback when overlay is clicked
792
816
  - **SimpleGrid** — Responsive fixed grid
793
817
  - `cols: T | { base?: T; sm?: T; md?: T; lg?: T; xl?: T; }` = 1 — Number of columns (or a responsive object per breakpoint)
@@ -835,7 +859,13 @@ The container-query wrapper div is preserved to maintain responsive column behav
835
859
  - **Transition** — Utilities for managing smooth enter and leave animations with CSS classes
836
860
  - `show: boolean` (required) — Whether the content is shown (drives the enter/leave transitions)
837
861
  - `children: React.ReactNode` (required) — Content to transition
838
- - `preset: "fade" | "scale" | "slide-right" | "slide-left" | "slide-top" | "slide-bottom"` — Preset transition (fade, scale, slide-*)
862
+ - `preset: "none" | "fade" | "scale" | "slide-right" | "slide-left" | "slide-top" | "slide-bottom"` — Preset transition (fade, scale, slide-*) — 入りと出の両方に効く
863
+ - `enterPreset: "none" | "fade" | "scale" | "slide-right" | "slide-left" | "slide-top" | "slide-bottom"` — 入りだけ別扱いにしたいときのプリセット。`"none"` で入りのアニメーションを止める。
864
+ 省略時は `preset` に従う。
865
+
866
+ `Drawer` の `slideIn` / `slideOut` のように**片方だけ切りたい** API があるのに、
867
+ `preset` は両相を一括で決めるため表現できなかった(T58)。
868
+ - `leavePreset: "none" | "fade" | "scale" | "slide-right" | "slide-left" | "slide-top" | "slide-bottom"` — 出だけ別扱いにしたいときのプリセット。`"none"` で出のアニメーションを止める。
839
869
  - `enter: string` = "" — Class applied during the enter transition
840
870
  - `enterFrom: string` = "" — Class applied at the start of the enter transition
841
871
  - `enterTo: string` = "" — Class applied at the end of the enter transition
@@ -2099,8 +2129,17 @@ Useful for URL-based pagination (e.g. wrap with a Link via PaginationPage asChil
2099
2129
  - `asChild: boolean` = false — If true, the card will be rendered as its child, merging its props onto that child.
2100
2130
  - `variant: "elevated" | "outline" | "flat" | "glass"` = "elevated" — Visual style variant of the card
2101
2131
  - `interactive: boolean` = false — Whether to enable hover animation and click effects
2102
- - `padding: ComponentSize | "none"` = "md" — Padding size
2103
- - `radius: ComponentSize | "none"` = "lg" — Corner radius size
2132
+ - `padding: (typeof CARD_STYLED_PADDING)[number]` = "md" — Padding size.
2133
+
2134
+ Derived from the values `card.module.scss` implements, not from
2135
+ `ComponentSize`. Declaring the whole scale meant `padding="5xl"`
2136
+ type-checked and then did nothing (T38); deriving it means the type cannot
2137
+ drift from the stylesheet again, because `Card.unstyled-values.test.tsx`
2138
+ fails if the list stops matching the SCSS.
2139
+ - `radius: (typeof CARD_STYLED_RADIUS)[number]` = "lg" — Corner radius size.
2140
+
2141
+ Same derivation as `padding`. There is no `--wim-radius-xs` / `-3xl` /
2142
+ `-4xl` / `-5xl` token, so those values had nothing they could have meant.
2104
2143
  - **Carousel** — Content slideshow
2105
2144
  - `children: React.ReactNode` — Content of the carousel
2106
2145
  - `autoPlay: boolean` = false — Whether to auto-play
@@ -2342,8 +2381,17 @@ drops secondary text below the AA contrast floor.
2342
2381
  - `variant: React.ComponentProps<typeof Card>["variant"]` = "elevated" — Visual style variant of the card
2343
2382
  - `asChild: boolean` = false — If true, the card will be rendered as its child, merging its props onto that child.
2344
2383
  - `interactive: boolean` = false — Whether to enable hover animation and click effects
2345
- - `padding: ComponentSize | "none"` = "md" — Padding size
2346
- - `radius: ComponentSize | "none"` = "lg" — Corner radius size
2384
+ - `padding: (typeof CARD_STYLED_PADDING)[number]` = "md" — Padding size.
2385
+
2386
+ Derived from the values `card.module.scss` implements, not from
2387
+ `ComponentSize`. Declaring the whole scale meant `padding="5xl"`
2388
+ type-checked and then did nothing (T38); deriving it means the type cannot
2389
+ drift from the stylesheet again, because `Card.unstyled-values.test.tsx`
2390
+ fails if the list stops matching the SCSS.
2391
+ - `radius: (typeof CARD_STYLED_RADIUS)[number]` = "lg" — Corner radius size.
2392
+
2393
+ Same derivation as `padding`. There is no `--wim-radius-xs` / `-3xl` /
2394
+ `-4xl` / `-5xl` token, so those values had nothing they could have meant.
2347
2395
  - **SwipeAction** — Mobile-friendly swipe actions (delete, archive) for list items.
2348
2396
  - `as: React.ElementType` = "div" — The element to render as the root container. Default is 'div'.
2349
2397
  - `leftActions: SwipeActionItem[]` = [] — Actions revealed when swiping from left to right
package/dist/llms.txt CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## What this is
6
6
 
7
- **wimui** v0.12.0 — a React 19 component library: 218 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
7
+ **wimui** v0.14.0 — a React 19 component library: 218 documented components across 10 categories, with design tokens, dark mode, i18n (en/ja/pt-BR) and WAI-ARIA compliant a11y. Peer deps: react ^19, react-dom ^19 (plus optional peers for specific components — see package.json).
8
8
 
9
9
  ## Install & required setup
10
10