@oliasoft-open-source/react-ui-library 8.0.0-beta-13 → 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 +3 -3
- package/dist/components/menu/layer/layer.d.ts.map +1 -1
- package/dist/components/menu/layer/option.d.ts.map +1 -1
- package/dist/components/menu/menu.test-case.stories.d.ts.map +1 -1
- package/dist/components/option-dropdown/option-dropdown.test-case.stories.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.js +43 -49
- package/package.json +1 -1
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` |
|
|
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`:
|
|
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`
|
|
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;AAGnE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAK1E,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIrE,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;
|
|
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;AAGnE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAK1E,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIrE,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAwED,eAAO,MAAM,KAAK,GAAI,6FASnB,eAAe,4CAwDjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/layer/option.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAGjD,OAAO,
|
|
1
|
+
{"version":3,"file":"option.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/layer/option.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAgB,mBAAmB,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAIhH,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAW1D,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,MAAM,GAAI,0JAiBpB,YAAY,4CAoFd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;
|
|
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"}
|