@grucloud/bau-ui 0.301.0 → 0.303.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 (61) hide show
  1. package/accordion/accordion.js +36 -63
  2. package/alert/alert.js +14 -24
  3. package/alertStack/README.md +89 -0
  4. package/alertStack/alertStack.js +98 -28
  5. package/animate/animate.js +2 -0
  6. package/autocomplete/autocomplete.js +130 -164
  7. package/avatar/avatar.js +20 -25
  8. package/breadcrumbs/breadcrumbs.js +34 -30
  9. package/button/button.js +27 -41
  10. package/buttonGroup/buttonGroup.js +20 -27
  11. package/calendar/calendar.js +6 -12
  12. package/carousel/carousel.js +64 -47
  13. package/checkbox/checkbox.js +10 -13
  14. package/chip/chip.js +9 -0
  15. package/collapsible/collapsible.js +73 -47
  16. package/collapsible/index.d.ts +12 -1
  17. package/constants.d.ts +1 -0
  18. package/constants.js +4 -0
  19. package/divider/divider.js +1 -0
  20. package/drawer/drawer.js +48 -1
  21. package/drillDownMenu/drillDownMenu.js +90 -67
  22. package/dropdownMenu/dropdownMenu.js +29 -122
  23. package/fileInput/fileInput.js +4 -0
  24. package/globalStyle/globalStyle.js +75 -30
  25. package/input/input.js +35 -44
  26. package/inputSearch/inputSearch.js +26 -31
  27. package/lazy/lazy.js +8 -5
  28. package/linearProgress/linearProgress.js +12 -24
  29. package/list/list.js +2 -1
  30. package/loadingButton/loadingButton.js +29 -22
  31. package/modal/modal.js +38 -41
  32. package/multiSelect/multiSelect.js +84 -171
  33. package/package.json +13 -5
  34. package/paginationNavigation/paginationNavigation.js +8 -13
  35. package/popover/popover.js +5 -2
  36. package/radioButton/radioButton.js +10 -23
  37. package/radioButtonGroup/radioButtonGroup.js +15 -24
  38. package/resizable/resizable.js +74 -70
  39. package/select/select.js +84 -160
  40. package/selectNative/selectNative.js +2 -0
  41. package/slider/slider.js +6 -12
  42. package/spinner/spinner.js +37 -53
  43. package/stepper/stepper.js +23 -35
  44. package/switch/switch.js +28 -45
  45. package/tableOfContent/tableOfContent.js +55 -84
  46. package/tablePagination/tablePagination.js +39 -69
  47. package/tabs/tabs.js +95 -59
  48. package/textareaAutosize/textareaAutosize.js +13 -16
  49. package/themeSwitch/themeSwitch.js +27 -41
  50. package/toggle/index.d.ts +8 -1
  51. package/toggle/toggle.js +17 -9
  52. package/toggleGroup/toggleGroup.js +23 -28
  53. package/tooltip/tooltip.js +79 -94
  54. package/treeView/treeView.js +57 -25
  55. package/utils/control.js +20 -0
  56. package/utils/popupList.js +137 -0
  57. package/utils/urlChange.js +32 -0
  58. package/virtualList/index.d.ts +27 -0
  59. package/virtualList/index.js +1 -0
  60. package/virtualList/virtualList.js +111 -0
  61. package/vite.config.js +48 -0
package/vite.config.js ADDED
@@ -0,0 +1,48 @@
1
+ import { defineConfig } from "vite";
2
+ import { playwright } from "@vitest/browser-playwright";
3
+
4
+ export default defineConfig({
5
+ optimizeDeps: {
6
+ // Pre-bundle the coverage runtime, otherwise vite reloads the tests
7
+ // when it discovers it
8
+ include: ["@vitest/coverage-istanbul"],
9
+ },
10
+ test: {
11
+ coverage: {
12
+ // Instrumented with istanbul: v8 coverage merges the test files badly
13
+ // in browser mode
14
+ provider: "istanbul",
15
+ // The components; not the examples, the tests, the re-exports, or the
16
+ // login page, a placeholder
17
+ include: ["**/*.js"],
18
+ exclude: [
19
+ "examples/**",
20
+ "test/**",
21
+ "vite.config.js",
22
+ "**/index.js",
23
+ "pages/**",
24
+ ],
25
+ reporter: ["text", "html", "lcov"],
26
+ // Fail when the coverage drops below 100%
27
+ thresholds: {
28
+ statements: 100,
29
+ branches: 100,
30
+ functions: 100,
31
+ lines: 100,
32
+ },
33
+ },
34
+ include: ["test/**/*.test.js"],
35
+ // One file at a time: the files run in iframes of the same browser, which
36
+ // share the keyboard focus
37
+ fileParallelism: false,
38
+ browser: {
39
+ // Keyboard, focus, popovers and dialogs need a real browser: Playwright
40
+ // drives the installed Google Chrome
41
+ provider: playwright({ launchOptions: { channel: "chrome" } }),
42
+ enabled: true,
43
+ headless: true,
44
+ screenshotFailures: false,
45
+ instances: [{ browser: "chromium" }],
46
+ },
47
+ },
48
+ });