@oliasoft-open-source/react-ui-library 8.0.0-beta-14 → 8.0.0-beta-15

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/README.md CHANGED
@@ -1184,7 +1184,7 @@ The `Menu` component is used to render a menu with various options or sections.
1184
1184
  | `closeOnOptionClick` | A boolean indicating whether the menu should close when an option is clicked. | `true` |
1185
1185
  | `groupOrder` | The order of the menu group. | - |
1186
1186
  | `maxHeight` | The maximum height of the menu. | - |
1187
- | `testId` | Preferred test id: trigger + open panel as `${testId}-layer`. | - |
1187
+ | `testId` | Test id on the trigger; open panel is `${testId}-layer`. | - |
1188
1188
  | `open` | A boolean indicating whether the menu is open. | `false` |
1189
1189
  | `setOpen` | A function to set the open state of the menu. | - |
1190
1190
  | `tooltip` | The tooltip for the menu. | `null` |
@@ -1207,9 +1207,9 @@ The `menu` prop accepts an object with the following properties:
1207
1207
  - `sections`: The sections of the menu. Option `url` navigates via MenuItem `href`. For SPA routing, use `onClick` with `preventDefault` and your router’s `navigate`.
1208
1208
  - `placement`: The placement of the menu.
1209
1209
  - `showAllButton`: The configuration for the "show all" button.
1210
- - `testId`: Alias for the top-level `testId` prop (prefer `<Menu testId>`). Same contract: trigger + `${id}-layer`.
1210
+ - `testId`: Applied as-is to the open popover (e.g. OptionDropdown `${testId}-menu-layer`). Does not set the trigger or `${id}-layer` — use top-level `testId` for those.
1211
1211
 
1212
- Nested submenu sections use `section.testId` (preferred) or `section.menu.testId` on the submenu trigger item, and `${id}-layer` on the nested panel.
1212
+ Nested submenu sections use `section.testId` on the submenu trigger item and `${id}-layer` on the nested panel. `section.menu.testId` is applied as-is to the nested popover.
1213
1213
 
1214
1214
  ### Usage Example
1215
1215
 
@@ -1 +1 @@
1
- {"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/layer/layer.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAkB,SAAS,EAAY,MAAM,OAAO,CAAC;AA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.stories.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAKtD,OAAO,EAAE,UAAU,EAAQ,MAAM,QAAQ,CAAC;wBAkFrC,IAAI;AAPT,wBAOU;AAIV,eAAO,MAAM,qBAAqB,8GAAoB,CAAC;AASvD,eAAO,MAAM,wBAAwB,8GAAoB,CAAC;AAK1D,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,UAAU,CAAyC,CAAC;AA+D/E,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,UAAU,CAAyC,CAAC;AA0CjG,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,UAAU,CAAgD,CAAC;AAsCxG,eAAO,MAAM,yBAAyB,EAAE,OA4BvC,CAAC;AAgBF,eAAO,MAAM,oBAAoB,EAAE,OAuBlC,CAAC;AAeF,eAAO,MAAM,wBAAwB,EAAE,OAuBtC,CAAC;AAiBF,eAAO,MAAM,4BAA4B,EAAE,OA4B1C,CAAC;AAgBF,eAAO,MAAM,uBAAuB,EAAE,OAuBrC,CAAC;AAiBF,eAAO,MAAM,mBAAmB,EAAE,OAqBjC,CAAC;AA8BF,eAAO,MAAM,gBAAgB,EAAE,OAsB9B,CAAC;AA4CF,eAAO,MAAM,iBAAiB,EAAE,OA4B/B,CAAC;AAiBF,eAAO,MAAM,2BAA2B,EAAE,OAmBzC,CAAC;AA0BF,eAAO,MAAM,6BAA6B,EAAE,OAY3C,CAAC"}
1
+ {"version":3,"file":"menu.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAKtD,OAAO,EAAE,UAAU,EAAQ,MAAM,QAAQ,CAAC;wBAkFrC,IAAI;AAPT,wBAOU;AAIV,eAAO,MAAM,qBAAqB,8GAAoB,CAAC;AASvD,eAAO,MAAM,wBAAwB,8GAAoB,CAAC;AAK1D,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,UAAU,CAAyC,CAAC;AAgE/E,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,UAAU,CAAyC,CAAC;AA0CjG,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC,UAAU,CAAgD,CAAC;AAsCxG,eAAO,MAAM,yBAAyB,EAAE,OA4BvC,CAAC;AAgBF,eAAO,MAAM,oBAAoB,EAAE,OAuBlC,CAAC;AAeF,eAAO,MAAM,wBAAwB,EAAE,OAuBtC,CAAC;AAiBF,eAAO,MAAM,4BAA4B,EAAE,OA4B1C,CAAC;AAgBF,eAAO,MAAM,uBAAuB,EAAE,OAuBrC,CAAC;AAiBF,eAAO,MAAM,mBAAmB,EAAE,OAqBjC,CAAC;AA8BF,eAAO,MAAM,gBAAgB,EAAE,OAsB9B,CAAC;AA4CF,eAAO,MAAM,iBAAiB,EAAE,OA4B/B,CAAC;AAiBF,eAAO,MAAM,2BAA2B,EAAE,OAmBzC,CAAC;AA0BF,eAAO,MAAM,6BAA6B,EAAE,OAY3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"option-dropdown.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/option-dropdown/option-dropdown.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAA+B,MAAM,mBAAmB,CAAC;wBAgBjF,IAAI,CAAC,oBAAoB,CAAC;AAR/B,wBAQgC;AAYhC,eAAO,MAAM,IAAI,wHAAoB,CAAC;AAyDtC,eAAO,MAAM,YAAY,wHAAoB,CAAC"}
1
+ {"version":3,"file":"option-dropdown.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/option-dropdown/option-dropdown.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,oBAAoB,EAA+B,MAAM,mBAAmB,CAAC;wBAgBjF,IAAI,CAAC,oBAAoB,CAAC;AAR/B,wBAQgC;AAYhC,eAAO,MAAM,IAAI,wHAAoB,CAAC;AA2DtC,eAAO,MAAM,YAAY,wHAAoB,CAAC"}