@agregio-solutions/design-system 1.102.6 → 2.1.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.
- package/dist/design-system.cjs +542 -623
- package/dist/design-system.js +7777 -27698
- package/dist/packages/components/Button/components/HoldProgress/HoldProgress.d.ts +1 -1
- package/dist/packages/components/Button/components/IconLeftElement/IconLeftElement.d.ts +1 -1
- package/dist/packages/components/Button/components/IconRightElement/IconRightElement.d.ts +1 -1
- package/dist/packages/components/Button/doc.md +33 -2
- package/dist/packages/components/ChartLegend/ChartLegend.d.ts +1 -1
- package/dist/packages/components/Combobox/Combobox.d.ts +40 -83
- package/dist/packages/components/Combobox/doc.md +362 -11
- package/dist/packages/components/DataTable/DataTable.d.ts +15 -6
- package/dist/packages/components/DataTable/DataTableRow/DataTableRow.d.ts +1 -6
- package/dist/packages/components/DataTable/doc.md +495 -389
- package/dist/packages/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/packages/components/DatePicker/doc.md +0 -1
- package/dist/packages/components/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/packages/components/DateRangePicker/doc.md +0 -1
- package/dist/packages/components/Drawer/Drawer.d.ts +7 -24
- package/dist/packages/components/Drawer/doc.md +136 -106
- package/dist/packages/components/Dropdown/Dropdown.d.ts +1 -7
- package/dist/packages/components/Dropdown/doc.md +2 -29
- package/dist/packages/components/FileUpload/components/FileDetails/FileDetails.d.ts +1 -1
- package/dist/packages/components/FileUpload/components/FileDetails/FileDetails.styled.d.ts +1 -1
- package/dist/packages/components/FileUpload/doc.md +0 -2
- package/dist/packages/components/Filter/Filter.d.ts +24 -10
- package/dist/packages/components/Filter/doc.md +31 -1
- package/dist/packages/components/Icon/components/access_time.d.ts +1 -1
- package/dist/packages/components/Icon/components/add.d.ts +1 -1
- package/dist/packages/components/Icon/components/add_box.d.ts +1 -1
- package/dist/packages/components/Icon/components/arrow_back.d.ts +1 -1
- package/dist/packages/components/Icon/components/arrow_downward.d.ts +1 -1
- package/dist/packages/components/Icon/components/arrow_enter.d.ts +1 -1
- package/dist/packages/components/Icon/components/arrow_forward.d.ts +1 -1
- package/dist/packages/components/Icon/components/arrow_upward.d.ts +1 -1
- package/dist/packages/components/Icon/components/back_time.d.ts +1 -1
- package/dist/packages/components/Icon/components/bar_chart.d.ts +1 -1
- package/dist/packages/components/Icon/components/bar_chart_2.d.ts +1 -1
- package/dist/packages/components/Icon/components/battery.d.ts +1 -1
- package/dist/packages/components/Icon/components/battery_alert.d.ts +1 -1
- package/dist/packages/components/Icon/components/battery_empty.d.ts +1 -1
- package/dist/packages/components/Icon/components/battery_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/battery_half.d.ts +1 -1
- package/dist/packages/components/Icon/components/bolt.d.ts +1 -1
- package/dist/packages/components/Icon/components/book.d.ts +1 -1
- package/dist/packages/components/Icon/components/business.d.ts +1 -1
- package/dist/packages/components/Icon/components/calculator.d.ts +1 -1
- package/dist/packages/components/Icon/components/calendar.d.ts +1 -1
- package/dist/packages/components/Icon/components/calendar_today.d.ts +1 -1
- package/dist/packages/components/Icon/components/calibration.d.ts +1 -1
- package/dist/packages/components/Icon/components/cancel.d.ts +1 -1
- package/dist/packages/components/Icon/components/caret.d.ts +1 -1
- package/dist/packages/components/Icon/components/change_circle.d.ts +1 -1
- package/dist/packages/components/Icon/components/change_ok.d.ts +1 -1
- package/dist/packages/components/Icon/components/chart_curves.d.ts +1 -1
- package/dist/packages/components/Icon/components/chart_curves_rounded.d.ts +1 -1
- package/dist/packages/components/Icon/components/chart_plus.d.ts +1 -1
- package/dist/packages/components/Icon/components/chart_simple.d.ts +1 -1
- package/dist/packages/components/Icon/components/chart_up.d.ts +1 -1
- package/dist/packages/components/Icon/components/check.d.ts +1 -1
- package/dist/packages/components/Icon/components/check_circle_outline.d.ts +1 -1
- package/dist/packages/components/Icon/components/chevron_left.d.ts +1 -1
- package/dist/packages/components/Icon/components/chevron_right.d.ts +1 -1
- package/dist/packages/components/Icon/components/clear.d.ts +1 -1
- package/dist/packages/components/Icon/components/close.d.ts +1 -1
- package/dist/packages/components/Icon/components/cloud.d.ts +1 -1
- package/dist/packages/components/Icon/components/cloud_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/collapse_menu.d.ts +1 -1
- package/dist/packages/components/Icon/components/content_copy.d.ts +1 -1
- package/dist/packages/components/Icon/components/cycle.d.ts +1 -1
- package/dist/packages/components/Icon/components/delete_outline.d.ts +1 -1
- package/dist/packages/components/Icon/components/dice.d.ts +1 -1
- package/dist/packages/components/Icon/components/disconnect.d.ts +1 -1
- package/dist/packages/components/Icon/components/download.d.ts +1 -1
- package/dist/packages/components/Icon/components/drag_indicator.d.ts +1 -1
- package/dist/packages/components/Icon/components/driver.d.ts +1 -1
- package/dist/packages/components/Icon/components/edit.d.ts +1 -1
- package/dist/packages/components/Icon/components/error_outline.d.ts +1 -1
- package/dist/packages/components/Icon/components/euro.d.ts +1 -1
- package/dist/packages/components/Icon/components/exit.d.ts +1 -1
- package/dist/packages/components/Icon/components/exit_to_app.d.ts +1 -1
- package/dist/packages/components/Icon/components/expand_less.d.ts +1 -1
- package/dist/packages/components/Icon/components/expand_more.d.ts +1 -1
- package/dist/packages/components/Icon/components/eye.d.ts +1 -1
- package/dist/packages/components/Icon/components/eye_off.d.ts +1 -1
- package/dist/packages/components/Icon/components/fiber_new.d.ts +1 -1
- package/dist/packages/components/Icon/components/file_download.d.ts +1 -1
- package/dist/packages/components/Icon/components/file_export.d.ts +1 -1
- package/dist/packages/components/Icon/components/file_plus.d.ts +1 -1
- package/dist/packages/components/Icon/components/filter_alt.d.ts +1 -1
- package/dist/packages/components/Icon/components/filter_list.d.ts +1 -1
- package/dist/packages/components/Icon/components/first_page.d.ts +1 -1
- package/dist/packages/components/Icon/components/flame.d.ts +1 -1
- package/dist/packages/components/Icon/components/flex.d.ts +1 -1
- package/dist/packages/components/Icon/components/folder_open.d.ts +1 -1
- package/dist/packages/components/Icon/components/gaz.d.ts +1 -1
- package/dist/packages/components/Icon/components/grid_view.d.ts +1 -1
- package/dist/packages/components/Icon/components/hand.d.ts +1 -1
- package/dist/packages/components/Icon/components/help_outline.d.ts +1 -1
- package/dist/packages/components/Icon/components/home.d.ts +1 -1
- package/dist/packages/components/Icon/components/hydraulic.d.ts +1 -1
- package/dist/packages/components/Icon/components/id.d.ts +1 -1
- package/dist/packages/components/Icon/components/industry.d.ts +1 -1
- package/dist/packages/components/Icon/components/insert_emoticon.d.ts +1 -1
- package/dist/packages/components/Icon/components/invoice.d.ts +1 -1
- package/dist/packages/components/Icon/components/invoice_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/joystick.d.ts +1 -1
- package/dist/packages/components/Icon/components/language.d.ts +1 -1
- package/dist/packages/components/Icon/components/laptop.d.ts +1 -1
- package/dist/packages/components/Icon/components/last_page.d.ts +1 -1
- package/dist/packages/components/Icon/components/leaf.d.ts +1 -1
- package/dist/packages/components/Icon/components/lines_ok.d.ts +1 -1
- package/dist/packages/components/Icon/components/lines_plus.d.ts +1 -1
- package/dist/packages/components/Icon/components/link.d.ts +1 -1
- package/dist/packages/components/Icon/components/list.d.ts +1 -1
- package/dist/packages/components/Icon/components/location.d.ts +1 -1
- package/dist/packages/components/Icon/components/location_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/location_searching.d.ts +1 -1
- package/dist/packages/components/Icon/components/logout.d.ts +1 -1
- package/dist/packages/components/Icon/components/logs.d.ts +1 -1
- package/dist/packages/components/Icon/components/magic_wand.d.ts +1 -1
- package/dist/packages/components/Icon/components/mail_empty.d.ts +1 -1
- package/dist/packages/components/Icon/components/mail_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/mail_off.d.ts +1 -1
- package/dist/packages/components/Icon/components/mail_ok.d.ts +1 -1
- package/dist/packages/components/Icon/components/mail_open.d.ts +1 -1
- package/dist/packages/components/Icon/components/mail_open_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/menu.d.ts +1 -1
- package/dist/packages/components/Icon/components/minimize.d.ts +1 -1
- package/dist/packages/components/Icon/components/modbus.d.ts +1 -1
- package/dist/packages/components/Icon/components/money_pig.d.ts +1 -1
- package/dist/packages/components/Icon/components/money_pig_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/monitor_heart.d.ts +1 -1
- package/dist/packages/components/Icon/components/monitoring.d.ts +1 -1
- package/dist/packages/components/Icon/components/moon.d.ts +1 -1
- package/dist/packages/components/Icon/components/more_horiz.d.ts +1 -1
- package/dist/packages/components/Icon/components/more_vert.d.ts +1 -1
- package/dist/packages/components/Icon/components/moving.d.ts +1 -1
- package/dist/packages/components/Icon/components/notifications_active.d.ts +1 -1
- package/dist/packages/components/Icon/components/notifications_none.d.ts +1 -1
- package/dist/packages/components/Icon/components/notifications_off.d.ts +1 -1
- package/dist/packages/components/Icon/components/one_single.d.ts +1 -1
- package/dist/packages/components/Icon/components/pause.d.ts +1 -1
- package/dist/packages/components/Icon/components/pause_empty.d.ts +1 -1
- package/dist/packages/components/Icon/components/payments.d.ts +1 -1
- package/dist/packages/components/Icon/components/pdf.d.ts +1 -1
- package/dist/packages/components/Icon/components/phone_1_empty.d.ts +1 -1
- package/dist/packages/components/Icon/components/phone_1_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/phone_2_empty.d.ts +1 -1
- package/dist/packages/components/Icon/components/phone_2_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/play.d.ts +1 -1
- package/dist/packages/components/Icon/components/play_empty.d.ts +1 -1
- package/dist/packages/components/Icon/components/play_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/power_off.d.ts +1 -1
- package/dist/packages/components/Icon/components/profile.d.ts +1 -1
- package/dist/packages/components/Icon/components/profile_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/progress.d.ts +1 -1
- package/dist/packages/components/Icon/components/question.d.ts +1 -1
- package/dist/packages/components/Icon/components/rain.d.ts +1 -1
- package/dist/packages/components/Icon/components/receipt_long.d.ts +1 -1
- package/dist/packages/components/Icon/components/record.d.ts +1 -1
- package/dist/packages/components/Icon/components/record_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/refresh.d.ts +1 -1
- package/dist/packages/components/Icon/components/remove.d.ts +1 -1
- package/dist/packages/components/Icon/components/remove_red_eye.d.ts +1 -1
- package/dist/packages/components/Icon/components/rename.d.ts +1 -1
- package/dist/packages/components/Icon/components/return.d.ts +1 -1
- package/dist/packages/components/Icon/components/save.d.ts +1 -1
- package/dist/packages/components/Icon/components/scan.d.ts +1 -1
- package/dist/packages/components/Icon/components/science.d.ts +1 -1
- package/dist/packages/components/Icon/components/science_2.d.ts +1 -1
- package/dist/packages/components/Icon/components/search.d.ts +1 -1
- package/dist/packages/components/Icon/components/sell.d.ts +1 -1
- package/dist/packages/components/Icon/components/sell_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/send.d.ts +1 -1
- package/dist/packages/components/Icon/components/settings.d.ts +1 -1
- package/dist/packages/components/Icon/components/sms_empty.d.ts +1 -1
- package/dist/packages/components/Icon/components/sms_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/square_plus.d.ts +1 -1
- package/dist/packages/components/Icon/components/ssid_chart.d.ts +1 -1
- package/dist/packages/components/Icon/components/stack_batch.d.ts +1 -1
- package/dist/packages/components/Icon/components/stacked_line_chart.d.ts +1 -1
- package/dist/packages/components/Icon/components/star.d.ts +1 -1
- package/dist/packages/components/Icon/components/star_outline.d.ts +1 -1
- package/dist/packages/components/Icon/components/storm.d.ts +1 -1
- package/dist/packages/components/Icon/components/sun.d.ts +1 -1
- package/dist/packages/components/Icon/components/sun_2.d.ts +1 -1
- package/dist/packages/components/Icon/components/sun_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/swap_horiz.d.ts +1 -1
- package/dist/packages/components/Icon/components/tag.d.ts +1 -1
- package/dist/packages/components/Icon/components/tag_add.d.ts +1 -1
- package/dist/packages/components/Icon/components/tag_ok.d.ts +1 -1
- package/dist/packages/components/Icon/components/tag_remove.d.ts +1 -1
- package/dist/packages/components/Icon/components/team.d.ts +1 -1
- package/dist/packages/components/Icon/components/text_snippet.d.ts +1 -1
- package/dist/packages/components/Icon/components/ticket.d.ts +1 -1
- package/dist/packages/components/Icon/components/ticket_full.d.ts +1 -1
- package/dist/packages/components/Icon/components/tools.d.ts +1 -1
- package/dist/packages/components/Icon/components/tree_item.d.ts +1 -1
- package/dist/packages/components/Icon/components/undo.d.ts +1 -1
- package/dist/packages/components/Icon/components/update.d.ts +1 -1
- package/dist/packages/components/Icon/components/update_circle.d.ts +1 -1
- package/dist/packages/components/Icon/components/upload.d.ts +1 -1
- package/dist/packages/components/Icon/components/wallet.d.ts +1 -1
- package/dist/packages/components/Icon/components/warehouse.d.ts +1 -1
- package/dist/packages/components/Icon/components/warning_amber.d.ts +1 -1
- package/dist/packages/components/Icon/components/warning_badge.d.ts +1 -1
- package/dist/packages/components/Icon/components/warning_octogone.d.ts +1 -1
- package/dist/packages/components/Icon/components/warning_shield.d.ts +1 -1
- package/dist/packages/components/Icon/components/wifi.d.ts +1 -1
- package/dist/packages/components/Icon/components/wifi_level.d.ts +1 -1
- package/dist/packages/components/Icon/components/wifi_rounded.d.ts +1 -1
- package/dist/packages/components/Icon/components/wifi_rounded_alert.d.ts +1 -1
- package/dist/packages/components/Icon/components/wifi_settings.d.ts +1 -1
- package/dist/packages/components/Icon/components/wind_turbine.d.ts +1 -1
- package/dist/packages/components/LinearProgressBar/LinearProgressBar.d.ts +1 -1
- package/dist/packages/components/List/components/ListItem/ListItem.d.ts +1 -1
- package/dist/packages/components/Loader/Loader.d.ts +1 -1
- package/dist/packages/components/MenuItem/MenuItem.d.ts +1 -1
- package/dist/packages/components/Modal/doc.md +1 -2
- package/dist/packages/components/Navigation/Navigation.d.ts +2 -1
- package/dist/packages/components/Navigation/components/AgregioSolutionsLogo.d.ts +1 -1
- package/dist/packages/components/Navigation/components/ConnectionManagementLogo.d.ts +1 -1
- package/dist/packages/components/Navigation/components/IrisLogo.d.ts +1 -1
- package/dist/packages/components/Navigation/components/OBILogo.d.ts +1 -1
- package/dist/packages/components/Navigation/components/VPPLogo.d.ts +1 -1
- package/dist/packages/components/Navigation/doc.md +14 -9
- package/dist/packages/components/NavigationItem/NavigationItem.d.ts +4 -0
- package/dist/packages/components/NavigationItem/doc.md +15 -3
- package/dist/packages/components/Notifications/components/EmptyNotifications/EmptyNotifications.d.ts +1 -1
- package/dist/packages/components/PageLayout/PageLayout.d.ts +1 -1
- package/dist/packages/components/PageLayout/doc.md +190 -149
- package/dist/packages/components/RouterProvider/RouterProvider.d.ts +1 -1
- package/dist/packages/components/Select/Select.d.ts +1 -1
- package/dist/packages/components/Select/doc.md +0 -9
- package/dist/packages/components/SelectItem/SelectItem.d.ts +2 -1
- package/dist/packages/components/Slider/Slider.d.ts +3 -9
- package/dist/packages/components/Slider/doc.md +1 -4
- package/dist/packages/components/Tabs/Tab/Tab.d.ts +0 -5
- package/dist/packages/components/TextInput/TextInput.d.ts +2 -2
- package/dist/packages/components/TextInput/doc.md +0 -22
- package/dist/packages/components/TimeField/TimeField.d.ts +2 -2
- package/dist/packages/components/TimeField/doc.md +0 -1
- package/dist/packages/components/TimePicker/TimePicker.d.ts +2 -2
- package/dist/packages/components/Timeline/Timeline.d.ts +1 -1
- package/dist/packages/components/Timeline/Timeline.styled.d.ts +15 -20
- package/dist/packages/components/Timeline/components/BlockLineContainer/BlockLineContainer.d.ts +1 -1
- package/dist/packages/components/Timeline/components/BlockLineContainer/BlockLineContainer.styled.d.ts +23 -27
- package/dist/packages/components/Timeline/components/BlockLineContainer/components/ExpandButton/ExpandButton.d.ts +1 -1
- package/dist/packages/components/Timeline/components/BlockLineContainer/components/NameBlock/NameBlock.d.ts +1 -1
- package/dist/packages/components/Timeline/components/GroupLineContainer/GroupLineContainer.d.ts +1 -1
- package/dist/packages/components/Timeline/components/GroupLineContainer/GroupLineContainer.styled.d.ts +3 -4
- package/dist/packages/components/Timeline/components/TimelineRange/TimelineRange.d.ts +1 -1
- package/dist/packages/components/Timeline/components/TimelineRange/TimelineRange.styled.d.ts +12 -16
- package/dist/packages/components/Timeline/doc.md +38 -1
- package/dist/packages/components/Toaster/Toaster.d.ts +1 -1
- package/dist/packages/components/YearMonthPicker/YearMonthPicker.d.ts +2 -2
- package/dist/packages/components/YearMonthPicker/doc.md +0 -1
- package/dist/packages/ds-design-tokens/index.d.ts +1 -2
- package/dist/packages/ds-design-tokens/src/tokens.style.d.ts +138 -135
- package/dist/packages/index.d.ts +5 -6
- package/dist/packages/internal-components/FormGroupWrapper/FormGroupWrapper.d.ts +0 -12
- package/dist/packages/internal-components/Logo/Logo.d.ts +1 -1
- package/dist/public_docs/index.md +4 -1
- package/dist/public_docs/migration-guide-v2.md +444 -0
- package/package.json +16 -18
- package/dist/packages/ds-design-tokens/src/fontSize.style.d.ts +0 -60
- package/dist/packages/mui/mui-theme.d.ts +0 -3
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Agregio Solutions Design System — V2 migration guide
|
|
3
|
+
description: Breaking changes shipped in the V2 release of the Design System, and how to adapt your codebase.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# V2 migration guide
|
|
7
|
+
|
|
8
|
+
Breaking changes of the V2 release. Last V1 version published: `v1.102.6`.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
Install V2 together with its new peer dependencies, in a single command:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install @agregio-solutions/design-system@^2 @tanstack/react-table@^9 react-aria-components@^1.21.0
|
|
16
|
+
npm install --save-dev @react-aria/optimize-locales-plugin
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Installed one at a time, npm goes through an intermediate state where the
|
|
20
|
+
Design System and `@tanstack/react-table` disagree on the major (V1 requires
|
|
21
|
+
`^8`, V2 requires `^9`) and stops with `ERESOLVE`.
|
|
22
|
+
|
|
23
|
+
If npm still stops with `ERESOLVE`, another package of your project requires
|
|
24
|
+
`@tanstack/react-table@^8` or an incompatible `react-aria-components`. Run
|
|
25
|
+
`npm explain @tanstack/react-table` to find it, and upgrade it. Do not bypass
|
|
26
|
+
the error with `--legacy-peer-deps` (it removes the peer dependencies npm
|
|
27
|
+
installed for your other packages, such as `react-is` for `recharts`) nor with
|
|
28
|
+
`--force`.
|
|
29
|
+
|
|
30
|
+
## Prompt to migrate with an LLM
|
|
31
|
+
|
|
32
|
+
Paste this prompt into your coding agent (Claude Code, Cursor, Copilot…) from
|
|
33
|
+
the root of your project, once the V2 package is installed. It points to this
|
|
34
|
+
guide inside `node_modules`, so the agent reads the version you installed.
|
|
35
|
+
|
|
36
|
+
```text
|
|
37
|
+
Migrate this codebase from V1 to V2 of @agregio-solutions/design-system.
|
|
38
|
+
|
|
39
|
+
Source of truth: node_modules/@agregio-solutions/design-system/dist/public_docs/migration-guide-v2.md
|
|
40
|
+
Read it in full before changing anything. Each section describes a breaking
|
|
41
|
+
change with "What changes", "Why" and "How to adapt": apply "How to adapt"
|
|
42
|
+
exactly, do not invent another migration. The component API docs are in
|
|
43
|
+
node_modules/@agregio-solutions/design-system/dist/packages/components/*/doc.md.
|
|
44
|
+
|
|
45
|
+
1. Check that node_modules/@agregio-solutions/design-system/package.json has a
|
|
46
|
+
version >= 2.0.0. Otherwise stop and tell me.
|
|
47
|
+
2. For each section of the guide, search the codebase for the affected APIs
|
|
48
|
+
(imports, props, types, tests, CSS) and list the files concerned. Skip the
|
|
49
|
+
sections that match nothing.
|
|
50
|
+
3. Install the new peer dependencies the guide requires and register the React
|
|
51
|
+
Aria locales plugin in the bundler config.
|
|
52
|
+
4. Apply the migration section by section. For @tanstack/react-table v9, follow
|
|
53
|
+
the skills shipped in node_modules/@tanstack/{table-core,react-table}/skills/,
|
|
54
|
+
starting with migrate-v8-to-v9/SKILL.md, not the TanStack website.
|
|
55
|
+
5. Also replace the deprecated NavigationItem isActive with currentPath on
|
|
56
|
+
Navigation.
|
|
57
|
+
6. Run the type check, the linter and the tests, and fix every failure caused
|
|
58
|
+
by the migration. Never silence an error with a cast, a ts-ignore or a
|
|
59
|
+
skipped test.
|
|
60
|
+
7. Report: the changes made per section, what you could not migrate and why,
|
|
61
|
+
and the visual changes I must check by hand (helperText position, Drawer
|
|
62
|
+
layout, CSS that targeted the Button span).
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## `react-table` v9 required
|
|
66
|
+
|
|
67
|
+
**What changes** — the optional peer dependency `@tanstack/react-table` moves from
|
|
68
|
+
`^8.0.0` to `^9.0.0`. `DataTable` and `Filter` now take a `useTable` instance, and
|
|
69
|
+
their generics gained a leading `TFeatures`: `TypeTableColumnWithFilter<TData>`
|
|
70
|
+
becomes `TypeTableColumnWithFilter<typeof features, TData>`.
|
|
71
|
+
|
|
72
|
+
**Why** — v9 is a full rewrite of TanStack Table. Its types carry the registered
|
|
73
|
+
feature set, so the Design System cannot type a table against both majors.
|
|
74
|
+
|
|
75
|
+
**How to adapt** — upgrade to `@tanstack/react-table@9`, then follow the v8-to-v9
|
|
76
|
+
skill shipped with the package (see below): replace `useReactTable` with
|
|
77
|
+
`useTable`, register every feature you use in `tableFeatures()` (including the
|
|
78
|
+
row models, which are no longer table options), read state through
|
|
79
|
+
`table.state` instead of `table.getState()`, and type your column helper with
|
|
80
|
+
`createColumnHelper<typeof features, TData>()`. Never pass a row, cell or column
|
|
81
|
+
method as a bare callback (`onChange={column.setFilterValue}`) —
|
|
82
|
+
v9 methods live on prototypes and lose their instance; wrap them
|
|
83
|
+
(`onChange={(value) => column.setFilterValue(value)}`). The `DataTable` and `Filter`
|
|
84
|
+
stories in Storybook are migrated and can be copy-pasted.
|
|
85
|
+
|
|
86
|
+
**Where to look** — `@tanstack/react-table@9` ships 30 agent skills inside
|
|
87
|
+
`node_modules/@tanstack/{table-core,react-table}/skills/`, versioned with the
|
|
88
|
+
package. Start with `table-core/skills/migrate-v8-to-v9/SKILL.md`, then the
|
|
89
|
+
per-topic ones (`table-features`, `typescript`, `column-filtering`,
|
|
90
|
+
`global-filtering`, `pagination`, `expanding`, `table-state`,
|
|
91
|
+
`api-not-found`...). Prefer them over the TanStack website, which documents the
|
|
92
|
+
`alpha` branch and describes APIs that do not exist in the released v9.
|
|
93
|
+
|
|
94
|
+
**Also worth knowing** — four v9 details that bite once the migration compiles:
|
|
95
|
+
|
|
96
|
+
- `useTable` takes an optional state selector as its second argument, and
|
|
97
|
+
`table.state` then holds only the selected slices. `DataTable` and `Filter`
|
|
98
|
+
read `columnFilters` and `globalFilter` from it, so call `useTable` without a
|
|
99
|
+
selector (TypeScript rejects a narrowed table anyway). Use `table.Subscribe`
|
|
100
|
+
lower in your own tree when you need finer subscriptions.
|
|
101
|
+
- Type each column `meta` with `satisfies TypeTableColumnWithFilter<typeof features, TData>`,
|
|
102
|
+
as in V1 with the new leading generic:
|
|
103
|
+
`meta: { FilterInDrawer: ({ column }) => …, filterChips: … } satisfies TypeTableColumnWithFilter<typeof features, User>`.
|
|
104
|
+
It type-checks the meta keys and types `column` inside `FilterInDrawer` and
|
|
105
|
+
`filterChips`. The new per-table `columnMeta` slot cannot carry this type,
|
|
106
|
+
because it needs `typeof features` and would reference the features object
|
|
107
|
+
inside its own initializer.
|
|
108
|
+
- In your own cell components, a state read hidden behind a method
|
|
109
|
+
(`row.getIsSelected()`) can be missed by the React Compiler. Wrap it in
|
|
110
|
+
`Subscribe` or receive the value as a prop.
|
|
111
|
+
- Prefer the `FlexRender` component over the `flexRender` function:
|
|
112
|
+
`<table.FlexRender cell={cell} />`.
|
|
113
|
+
|
|
114
|
+
## MUI support removed
|
|
115
|
+
|
|
116
|
+
**What changes** — `createMuiTheme` is no longer exported. The MUI theme, the MUI
|
|
117
|
+
example stories and the MUI migration guides are gone from Storybook. MUI is no
|
|
118
|
+
longer supported in any form.
|
|
119
|
+
|
|
120
|
+
**Why** — no Design System component uses MUI. The theme bundled `@mui/system`
|
|
121
|
+
into the package for every consumer and forced `@mui/material` to be installed
|
|
122
|
+
just to resolve the types.
|
|
123
|
+
|
|
124
|
+
**How to adapt** — remove MUI from your project and use the Design System
|
|
125
|
+
components (`Button`, `Badge`, `Checkbox`, `Select`, `Slider`, `Tabs`,
|
|
126
|
+
`TextInput`, `Link`, `Breadcrumbs`, `Drawer`, `Modal`, `Radio`, `Switch`,
|
|
127
|
+
`Icon`, etc). Style everything with the Design System CSS variables.
|
|
128
|
+
|
|
129
|
+
## `fontSize` and `lineHeight` exports removed
|
|
130
|
+
|
|
131
|
+
**What changes** — the `fontSize` and `lineHeight` objects are no longer
|
|
132
|
+
exported. Use the CSS variables `--text-font-size-*` and
|
|
133
|
+
`--text-line-height-*` instead, on the `xs` to `3xl` scale. The values are
|
|
134
|
+
unchanged.
|
|
135
|
+
|
|
136
|
+
**Why** — the same sizes were exposed twice, under two naming scales
|
|
137
|
+
(`xxSmall`…`xxLarge` in JS, `xs`…`3xl` in CSS). A single scale, the CSS
|
|
138
|
+
variables, removes the ambiguity.
|
|
139
|
+
|
|
140
|
+
**How to adapt** — replace each key with the CSS variable given in the table
|
|
141
|
+
below.
|
|
142
|
+
|
|
143
|
+
| Before (`fontSize` / `lineHeight`) | Value (font-size / line-height) | After (CSS variable suffix) |
|
|
144
|
+
| ---------------------------------- | ------------------------------- | --------------------------- |
|
|
145
|
+
| `xxSmall` | 12px / 16px | `xs` |
|
|
146
|
+
| `extraSmall` | 14px / 20px | `sm` |
|
|
147
|
+
| `small` | 16px / 24px | `md` |
|
|
148
|
+
| `medium` | 20px / 28px | `lg` |
|
|
149
|
+
| `large` | 24px / 32px | `xl` |
|
|
150
|
+
| `extraLarge` | 32px / 40px | `2xl` |
|
|
151
|
+
| `xxLarge` | 40px / 56px | `3xl` |
|
|
152
|
+
|
|
153
|
+
For example, `font-size: ${fontSize.small}; line-height: ${lineHeight.small};`
|
|
154
|
+
becomes `font-size: var(--text-font-size-md); line-height: var(--text-line-height-md);`.
|
|
155
|
+
|
|
156
|
+
## `react-aria-components` is now a required peer dependency
|
|
157
|
+
|
|
158
|
+
**What changes** — `react-aria-components` is no longer bundled into the Design
|
|
159
|
+
System nor installed with it. It moves to `peerDependencies` (`^1.21.0`): your
|
|
160
|
+
project must install it.
|
|
161
|
+
|
|
162
|
+
**Why** — the Design System shipped its own inlined copy of React Aria (about
|
|
163
|
+
40% of the package), next to the one npm installed anyway. Two copies mean two
|
|
164
|
+
sets of React contexts: an `I18nProvider` or `RouterProvider` imported from
|
|
165
|
+
`react-aria-components` in your app did not reach the Design System components.
|
|
166
|
+
With a single copy, they do, and you can pick up React Aria fixes without
|
|
167
|
+
waiting for a Design System release.
|
|
168
|
+
|
|
169
|
+
**How to adapt** — install the package and the locales plugin (already done if
|
|
170
|
+
you followed [Install](#install)):
|
|
171
|
+
|
|
172
|
+
```sh
|
|
173
|
+
npm install react-aria-components@^1.21.0
|
|
174
|
+
npm install --save-dev @react-aria/optimize-locales-plugin
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
Then register the plugin in your bundler, with the
|
|
178
|
+
locales your app supports. React Aria imports the strings of its 34 locales
|
|
179
|
+
statically. The Design System used to strip them at build time. It no longer
|
|
180
|
+
can, and without the plugin your bundle grows by about 180 kB minified
|
|
181
|
+
(40 kB gzipped).
|
|
182
|
+
|
|
183
|
+
```ts
|
|
184
|
+
// vite.config.ts
|
|
185
|
+
import optimizeLocales from "@react-aria/optimize-locales-plugin";
|
|
186
|
+
|
|
187
|
+
export default defineConfig({
|
|
188
|
+
plugins: [
|
|
189
|
+
// ...
|
|
190
|
+
optimizeLocales.vite({ locales: ["fr-FR", "en-US"] }),
|
|
191
|
+
],
|
|
192
|
+
});
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
```js
|
|
196
|
+
// next.config.js
|
|
197
|
+
const optimizeLocales = require("@react-aria/optimize-locales-plugin");
|
|
198
|
+
|
|
199
|
+
module.exports = {
|
|
200
|
+
webpack(config) {
|
|
201
|
+
config.plugins.push(
|
|
202
|
+
optimizeLocales.webpack({ locales: ["fr-FR", "en-US"] }),
|
|
203
|
+
);
|
|
204
|
+
return config;
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
`I18nProvider` stays exported by the Design System. Importing it from the
|
|
210
|
+
Design System or from `react-aria-components` is now equivalent.
|
|
211
|
+
|
|
212
|
+
## Deprecated props removed
|
|
213
|
+
|
|
214
|
+
Props marked `@deprecated` in V1 are removed. TypeScript reports every
|
|
215
|
+
remaining usage once you upgrade, including props passed through a spread or a
|
|
216
|
+
local wrapper component.
|
|
217
|
+
|
|
218
|
+
### `Tab`: `hasNotification`
|
|
219
|
+
|
|
220
|
+
**What changes** — the `hasNotification` prop is removed.
|
|
221
|
+
|
|
222
|
+
**Why** — `badgeProps` replaced it. It renders the same dot and also supports
|
|
223
|
+
every other `Badge` variant.
|
|
224
|
+
|
|
225
|
+
**How to adapt** — replace `hasNotification` with the equivalent badge:
|
|
226
|
+
|
|
227
|
+
```tsx
|
|
228
|
+
// Before
|
|
229
|
+
<Tab id="inbox" hasNotification>Inbox</Tab>
|
|
230
|
+
|
|
231
|
+
// After
|
|
232
|
+
<Tab id="inbox" badgeProps={{ variant: "dot", nature: "negative" }}>
|
|
233
|
+
Inbox
|
|
234
|
+
</Tab>
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
### `Dropdown`: `items`
|
|
238
|
+
|
|
239
|
+
**What changes** — the `items` prop is removed. Items are passed as
|
|
240
|
+
`DropdownListItem` children only.
|
|
241
|
+
|
|
242
|
+
**Why** — the two APIs did the same thing. Only composition lets you set a
|
|
243
|
+
`ref`, a custom `key` or wrap an item.
|
|
244
|
+
|
|
245
|
+
**How to adapt** — map your array to `DropdownListItem` children. The item
|
|
246
|
+
props are unchanged:
|
|
247
|
+
|
|
248
|
+
```tsx
|
|
249
|
+
// Before
|
|
250
|
+
<Dropdown items={items} />
|
|
251
|
+
|
|
252
|
+
// After
|
|
253
|
+
<Dropdown>
|
|
254
|
+
{items.map((item) => (
|
|
255
|
+
<DropdownListItem key={item.text} {...item} />
|
|
256
|
+
))}
|
|
257
|
+
</Dropdown>
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### `DataTableRow`: `depth`
|
|
261
|
+
|
|
262
|
+
**What changes** — the `depth` prop is removed.
|
|
263
|
+
|
|
264
|
+
**Why** — it no longer had any effect: `DataTable` styles sub-rows itself.
|
|
265
|
+
|
|
266
|
+
**How to adapt** — delete the prop. Nothing else changes.
|
|
267
|
+
|
|
268
|
+
```tsx
|
|
269
|
+
// Before
|
|
270
|
+
<DataTableRow depth={row.depth}>{cells}</DataTableRow>
|
|
271
|
+
|
|
272
|
+
// After
|
|
273
|
+
<DataTableRow>{cells}</DataTableRow>
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
## `description` removed from form fields, use `helperText`
|
|
277
|
+
|
|
278
|
+
**What changes** — the `description` prop is removed from `TextInput`,
|
|
279
|
+
`Select`, `Combobox`, `DatePicker`, `DateRangePicker`, `TimeField`,
|
|
280
|
+
`YearMonthPicker`, `Slider` and from the `formGroupWrapperProps` of
|
|
281
|
+
`FileUpload`.
|
|
282
|
+
|
|
283
|
+
**Why** — `description` and `helperText` displayed the same text, with the
|
|
284
|
+
same size and color, under the field. `helperText` also takes an icon
|
|
285
|
+
(`helperTextIcon`) and places the character counter like the other helper
|
|
286
|
+
texts. `Slider` flagged `helperText` as deprecated in favor of `description`.
|
|
287
|
+
That flag was a mistake: `helperText` stays and is no longer deprecated.
|
|
288
|
+
|
|
289
|
+
**How to adapt** — rename `description` to `helperText`:
|
|
290
|
+
|
|
291
|
+
```tsx
|
|
292
|
+
// Before
|
|
293
|
+
<TextInput label="Email" description="We never share it" />
|
|
294
|
+
|
|
295
|
+
// After
|
|
296
|
+
<TextInput label="Email" helperText="We never share it" />
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
Two visual differences to check:
|
|
300
|
+
|
|
301
|
+
- `helperText` is displayed after the error, success and warning messages,
|
|
302
|
+
while `description` sat right under the field.
|
|
303
|
+
- With `orientation="horizontal"`, `helperText` goes under the label and field
|
|
304
|
+
row, while `description` was placed inside it.
|
|
305
|
+
|
|
306
|
+
If a field already had both props, merge the two texts into `helperText`.
|
|
307
|
+
|
|
308
|
+
## `Drawer` actions are composed, like `Modal`
|
|
309
|
+
|
|
310
|
+
**What changes** — `Drawer` loses `primaryLabel`, `onPrimaryClick`,
|
|
311
|
+
`secondaryLabel`, `onSecondaryClick` and `customActionsBar`. It now renders its
|
|
312
|
+
`children` right under the title, as `Modal` does. Three new exports build the
|
|
313
|
+
body and the footer: `DrawerContent` (padded, scrollable body), `DrawerActions`
|
|
314
|
+
(bottom action bar) and `DrawerForm` (a `<form>` wrapping both).
|
|
315
|
+
|
|
316
|
+
**Why** — `Modal` and `Drawer` had two different APIs for the same layout. The
|
|
317
|
+
action props could not set `isLoading`, `isDisabled` or an icon, which is why
|
|
318
|
+
`customActionsBar` existed. The footer sat outside any form: submitting needed
|
|
319
|
+
`form="some-id"` on the button, or `onPrimaryClick={handleSubmit(onSubmit)}`,
|
|
320
|
+
which ignores the Enter key. The footer was also rendered, border included,
|
|
321
|
+
when a drawer had no action.
|
|
322
|
+
|
|
323
|
+
**How to adapt** — wrap the content in `DrawerContent` and move the buttons to
|
|
324
|
+
`DrawerActions`, secondary first, then primary. Without `DrawerContent` the
|
|
325
|
+
content loses its padding and its scroll.
|
|
326
|
+
|
|
327
|
+
```tsx
|
|
328
|
+
// Before
|
|
329
|
+
<Drawer
|
|
330
|
+
isOpen={isOpen}
|
|
331
|
+
onOpenChange={setIsOpen}
|
|
332
|
+
title="Filters"
|
|
333
|
+
primaryLabel="Apply"
|
|
334
|
+
onPrimaryClick={apply}
|
|
335
|
+
secondaryLabel="Reset"
|
|
336
|
+
onSecondaryClick={reset}
|
|
337
|
+
>
|
|
338
|
+
{filters}
|
|
339
|
+
</Drawer>
|
|
340
|
+
|
|
341
|
+
// After
|
|
342
|
+
<Drawer isOpen={isOpen} onOpenChange={setIsOpen} title="Filters">
|
|
343
|
+
<DrawerContent>{filters}</DrawerContent>
|
|
344
|
+
<DrawerActions>
|
|
345
|
+
<Button text="Reset" mode="secondary" onClick={reset} />
|
|
346
|
+
<Button text="Apply" onClick={apply} />
|
|
347
|
+
</DrawerActions>
|
|
348
|
+
</Drawer>
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
A `customActionsBar` becomes the content of `DrawerActions`, unchanged.
|
|
352
|
+
|
|
353
|
+
For a form, replace the `form="some-id"` link (or `onPrimaryClick={handleSubmit(onSubmit)}`)
|
|
354
|
+
with `DrawerForm`, which wraps both the fields and the buttons. The submit button
|
|
355
|
+
takes `type="submit"`, and Enter in a field submits the form:
|
|
356
|
+
|
|
357
|
+
```tsx
|
|
358
|
+
// Before
|
|
359
|
+
<Drawer
|
|
360
|
+
{...drawerProps}
|
|
361
|
+
customActionsBar={
|
|
362
|
+
<>
|
|
363
|
+
<Button text="Cancel" mode="secondary" onClick={close} />
|
|
364
|
+
<Button text="Save" type="submit" form="user-form" />
|
|
365
|
+
</>
|
|
366
|
+
}
|
|
367
|
+
>
|
|
368
|
+
<form id="user-form" onSubmit={handleSubmit(onSubmit)}>
|
|
369
|
+
{fields}
|
|
370
|
+
</form>
|
|
371
|
+
</Drawer>
|
|
372
|
+
|
|
373
|
+
// After
|
|
374
|
+
<Drawer {...drawerProps}>
|
|
375
|
+
<DrawerForm onSubmit={handleSubmit(onSubmit)}>
|
|
376
|
+
<DrawerContent>{fields}</DrawerContent>
|
|
377
|
+
<DrawerActions>
|
|
378
|
+
<Button text="Cancel" mode="secondary" onClick={close} />
|
|
379
|
+
<Button text="Save" type="submit" />
|
|
380
|
+
</DrawerActions>
|
|
381
|
+
</DrawerForm>
|
|
382
|
+
</Drawer>
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
Put `DrawerForm` in a child component that calls `useForm`, as in the `Drawer`
|
|
386
|
+
story "Example with a form": the form state is then reset each time the drawer
|
|
387
|
+
opens. `Modal` works the same way with `ModalContent`, `ModalActions` and
|
|
388
|
+
`ModalForm`.
|
|
389
|
+
|
|
390
|
+
## `Button` text is no longer wrapped in a `<span>`
|
|
391
|
+
|
|
392
|
+
**What changes** — the `Button` text is rendered directly inside the `<button>`
|
|
393
|
+
(or the `<a>` when `href` is set), without the `<span>` that used to wrap it.
|
|
394
|
+
|
|
395
|
+
**Why** — `getByText("Save")` returned the `<span>`, so assertions on the
|
|
396
|
+
button itself (`toBeDisabled`, `toHaveAttribute("aria-disabled")`, …) failed.
|
|
397
|
+
It now returns the button.
|
|
398
|
+
|
|
399
|
+
**How to adapt** — in tests, drop the hop from the text to its parent:
|
|
400
|
+
|
|
401
|
+
```tsx
|
|
402
|
+
// Before
|
|
403
|
+
expect(screen.getByText("Save").parentElement).toBeDisabled();
|
|
404
|
+
|
|
405
|
+
// After
|
|
406
|
+
expect(screen.getByText("Save")).toBeDisabled();
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
`.closest("button")` and `.closest("a")` keep working, as they match the
|
|
410
|
+
element itself. CSS targeting the `span` inside a `Button` no longer applies.
|
|
411
|
+
|
|
412
|
+
## `NavigationItem`: `isActive` deprecated, use `currentPath`
|
|
413
|
+
|
|
414
|
+
**What changes** — `isActive` on `NavigationItem` and on its `subLinks` is
|
|
415
|
+
deprecated and will be removed in V3. It still works in V2.
|
|
416
|
+
|
|
417
|
+
**Why** — every app computed it from the router path, most of them copying the
|
|
418
|
+
rule `Navigation` already applies with `currentPath`: an item is active when
|
|
419
|
+
the path starts with its `href` (`/` is matched exactly), a dropdown when one
|
|
420
|
+
of its sub links is. A dropdown also opens by itself when one of its sub links
|
|
421
|
+
becomes active.
|
|
422
|
+
|
|
423
|
+
**How to adapt** — pass the router path to `Navigation` and delete `isActive`:
|
|
424
|
+
|
|
425
|
+
```tsx
|
|
426
|
+
// Before
|
|
427
|
+
<Navigation logo="agregio">
|
|
428
|
+
<NavigationItem
|
|
429
|
+
label="Offers"
|
|
430
|
+
iconLeft="sell"
|
|
431
|
+
href="/offers"
|
|
432
|
+
isActive={location.pathname.startsWith("/offers")}
|
|
433
|
+
/>
|
|
434
|
+
</Navigation>
|
|
435
|
+
|
|
436
|
+
// After
|
|
437
|
+
<Navigation logo="agregio" currentPath={location.pathname}>
|
|
438
|
+
<NavigationItem label="Offers" iconLeft="sell" href="/offers" />
|
|
439
|
+
</Navigation>
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
For a section with tabs, point the `href` at the section root (e.g.
|
|
443
|
+
`/offers`, redirected by the router to the default tab) rather than at one tab:
|
|
444
|
+
the item then stays active on every tab.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agregio-solutions/design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "React Component library and Storybook that is part of the Design System for Agregio Solutions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/design-system.js",
|
|
@@ -38,29 +38,25 @@
|
|
|
38
38
|
"vitest:watch": "vitest --project unit"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@emotion/react": "11.14.0",
|
|
42
|
-
"@emotion/styled": "11.14.1",
|
|
43
41
|
"@eslint/compat": "2.1.1",
|
|
44
42
|
"@eslint/js": "9.39.5",
|
|
45
|
-
"@mui/material": "5.18.0",
|
|
46
|
-
"@react-aria/optimize-locales-plugin": "2.0.2",
|
|
47
43
|
"@semantic-release/gitlab": "13.3.3",
|
|
48
|
-
"@semantic-release/npm": "13.
|
|
44
|
+
"@semantic-release/npm": "13.2.0",
|
|
49
45
|
"@storybook/addon-a11y": "10.6.0",
|
|
50
46
|
"@storybook/addon-docs": "10.6.0",
|
|
51
47
|
"@storybook/addon-links": "10.6.0",
|
|
52
48
|
"@storybook/addon-vitest": "10.6.0",
|
|
53
49
|
"@storybook/react-vite": "10.6.0",
|
|
54
|
-
"@tanstack/react-query": "5.
|
|
55
|
-
"@tanstack/react-table": "
|
|
50
|
+
"@tanstack/react-query": "5.103.2",
|
|
51
|
+
"@tanstack/react-table": "9.2.4",
|
|
56
52
|
"@types/lodash": "4.17.25",
|
|
57
|
-
"@types/node": "24.13.
|
|
53
|
+
"@types/node": "24.13.6",
|
|
58
54
|
"@types/react": "19.3.0",
|
|
59
55
|
"@types/react-dom": "19.3.0",
|
|
60
56
|
"@vitejs/plugin-react": "6.1.1",
|
|
61
57
|
"@vitest/browser": "4.1.11",
|
|
62
58
|
"@vitest/browser-playwright": "4.1.11",
|
|
63
|
-
"chromatic": "18.
|
|
59
|
+
"chromatic": "18.9.5",
|
|
64
60
|
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
65
61
|
"eslint": "9.39.5",
|
|
66
62
|
"eslint-config-prettier": "10.1.8",
|
|
@@ -69,36 +65,38 @@
|
|
|
69
65
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
70
66
|
"eslint-plugin-storybook": "10.6.0",
|
|
71
67
|
"husky": "9.1.7",
|
|
72
|
-
"jest": "30.5.
|
|
68
|
+
"jest": "30.5.2",
|
|
73
69
|
"lint-staged": "17.5.1",
|
|
74
70
|
"lodash": "4.18.1",
|
|
75
71
|
"mockdate": "3.0.5",
|
|
76
72
|
"playwright": "1.63.0",
|
|
77
|
-
"prettier": "3.9.
|
|
73
|
+
"prettier": "3.9.9",
|
|
78
74
|
"react": "19.3.0",
|
|
75
|
+
"react-aria-components": "1.21.1",
|
|
79
76
|
"react-dom": "19.3.0",
|
|
80
77
|
"react-hook-form": "7.88.0",
|
|
81
|
-
"react-router-dom": "7.18.
|
|
78
|
+
"react-router-dom": "7.18.4",
|
|
82
79
|
"recharts": "3.10.1",
|
|
83
80
|
"remark-gfm": "4.0.1",
|
|
84
81
|
"semantic-release": "25.0.9",
|
|
85
82
|
"storybook": "10.6.0",
|
|
86
|
-
"typescript": "
|
|
87
|
-
"typescript-eslint": "8.70.
|
|
83
|
+
"typescript": "6.0.3",
|
|
84
|
+
"typescript-eslint": "8.70.1",
|
|
88
85
|
"vite": "8.3.0",
|
|
89
|
-
"vite-plugin-dts": "5.1.
|
|
86
|
+
"vite-plugin-dts": "5.1.1",
|
|
90
87
|
"vitest": "4.1.11"
|
|
91
88
|
},
|
|
92
89
|
"dependencies": {
|
|
90
|
+
"@internationalized/date": "^3.12.4",
|
|
93
91
|
"clsx": "2.1.1",
|
|
94
92
|
"normalize.css": "8.0.1",
|
|
95
|
-
"react-aria-components": "1.21.1",
|
|
96
93
|
"sonner": "2.0.8",
|
|
97
94
|
"styled-components": "6.5.3"
|
|
98
95
|
},
|
|
99
96
|
"peerDependencies": {
|
|
100
|
-
"@tanstack/react-table": "^
|
|
97
|
+
"@tanstack/react-table": "^9.0.0",
|
|
101
98
|
"react": "^18.0.0 || ^19.0.0",
|
|
99
|
+
"react-aria-components": "^1.21.0",
|
|
102
100
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
103
101
|
},
|
|
104
102
|
"peerDependenciesMeta": {
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export declare const fontSize: {
|
|
2
|
-
/**
|
|
3
|
-
* 12px
|
|
4
|
-
*/
|
|
5
|
-
xxSmall: string;
|
|
6
|
-
/**
|
|
7
|
-
* 14px
|
|
8
|
-
*/
|
|
9
|
-
extraSmall: string;
|
|
10
|
-
/**
|
|
11
|
-
* 16px
|
|
12
|
-
*/
|
|
13
|
-
small: string;
|
|
14
|
-
/**
|
|
15
|
-
* 20px
|
|
16
|
-
*/
|
|
17
|
-
medium: string;
|
|
18
|
-
/**
|
|
19
|
-
* 24px
|
|
20
|
-
*/
|
|
21
|
-
large: string;
|
|
22
|
-
/**
|
|
23
|
-
* 32px
|
|
24
|
-
*/
|
|
25
|
-
extraLarge: string;
|
|
26
|
-
/**
|
|
27
|
-
* 40px
|
|
28
|
-
*/
|
|
29
|
-
xxLarge: string;
|
|
30
|
-
};
|
|
31
|
-
export declare const lineHeight: {
|
|
32
|
-
/**
|
|
33
|
-
* 16px
|
|
34
|
-
*/
|
|
35
|
-
xxSmall: string;
|
|
36
|
-
/**
|
|
37
|
-
* 20px
|
|
38
|
-
*/
|
|
39
|
-
extraSmall: string;
|
|
40
|
-
/**
|
|
41
|
-
* 24px
|
|
42
|
-
*/
|
|
43
|
-
small: string;
|
|
44
|
-
/**
|
|
45
|
-
* 28px
|
|
46
|
-
*/
|
|
47
|
-
medium: string;
|
|
48
|
-
/**
|
|
49
|
-
* 32px
|
|
50
|
-
*/
|
|
51
|
-
large: string;
|
|
52
|
-
/**
|
|
53
|
-
* 40px
|
|
54
|
-
*/
|
|
55
|
-
extraLarge: string;
|
|
56
|
-
/**
|
|
57
|
-
* 56px
|
|
58
|
-
*/
|
|
59
|
-
xxLarge: string;
|
|
60
|
-
};
|