@jetbrains/ring-ui 8.0.0-beta.1 → 8.0.0-beta.11
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/babel.config.js +1 -9
- package/components/alert/alert-actions.d.ts +4 -0
- package/components/alert/alert-actions.js +5 -0
- package/components/alert/alert-heading.d.ts +4 -0
- package/components/alert/alert-heading.js +6 -0
- package/components/alert/alert.css +63 -22
- package/components/alert/alert.d.ts +14 -1
- package/components/alert/alert.js +34 -19
- package/components/alert/container.css +1 -2
- package/components/alert-service/alert-service.d.ts +2 -1
- package/components/alert-service/alert-service.js +8 -4
- package/components/auth/auth-core.d.ts +5 -9
- package/components/auth/auth-core.js +56 -15
- package/components/auth-dialog-service/auth-dialog-service.js +5 -2
- package/components/avatar/avatar-info.js +0 -2
- package/components/avatar/avatar-size.d.ts +0 -4
- package/components/avatar/avatar-size.js +0 -4
- package/components/avatar/avatar.js +0 -6
- package/components/avatar/fallback-avatar.js +0 -28
- package/components/avatar-stack/avatar-stack.js +1 -1
- package/components/banner/banner.css +3 -3
- package/components/button/button.css +4 -4
- package/components/button/button.d.ts +0 -4
- package/components/button/button.js +2 -7
- package/components/button-group/button-group.css +5 -5
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/collapse/collapse-content.d.ts +7 -0
- package/components/collapse/collapse-content.js +44 -11
- package/components/collapse/collapse-context.d.ts +2 -0
- package/components/collapse/collapse-context.js +2 -0
- package/components/collapse/collapse-control.js +2 -2
- package/components/collapse/collapse.css +8 -2
- package/components/collapse/collapse.d.ts +9 -0
- package/components/collapse/collapse.js +12 -3
- package/components/{expand → collapsible-group}/collapsible-group.css +7 -1
- package/components/collapsible-group/collapsible-group.d.ts +33 -0
- package/components/{expand → collapsible-group}/collapsible-group.js +13 -21
- package/components/confirm/confirm.js +12 -8
- package/components/confirm-service/confirm-service.js +5 -2
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/item.d.ts +1 -1
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +1 -1
- package/components/date-picker/consts.d.ts +1 -0
- package/components/date-picker/date-input.js +6 -2
- package/components/date-picker/months.js +2 -2
- package/components/date-picker/use-scroll-behavior.js +5 -6
- package/components/date-picker/years.js +2 -2
- package/components/dialog/dialog-controls.d.ts +13 -0
- package/components/dialog/dialog-controls.js +17 -0
- package/components/dialog/dialog-geometry.d.ts +31 -0
- package/components/dialog/dialog-geometry.js +48 -0
- package/components/dialog/dialog.css +166 -27
- package/components/dialog/dialog.d.ts +15 -7
- package/components/dialog/dialog.js +110 -29
- package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
- package/components/dropdown-menu/dropdown-menu.js +4 -4
- package/components/editable-heading/editable-heading.d.ts +1 -2
- package/components/editable-heading/editable-heading.js +18 -19
- package/components/global/compose-refs.d.ts +2 -1
- package/components/global/compose-refs.js +24 -8
- package/components/global/create-stateful-context.js +5 -5
- package/components/global/focus-with-temporary-tabindex.d.ts +11 -0
- package/components/global/focus-with-temporary-tabindex.js +21 -0
- package/components/global/get-viewport-size.d.ts +5 -0
- package/components/global/get-viewport-size.js +5 -0
- package/components/global/intersection-observer-context.d.ts +31 -11
- package/components/global/intersection-observer-context.js +47 -28
- package/components/global/is-within-interactive-element.d.ts +6 -0
- package/components/global/is-within-interactive-element.js +26 -0
- package/components/global/is-within-navigable-element.d.ts +6 -0
- package/components/global/is-within-navigable-element.js +27 -0
- package/components/global/parse-css-duration.d.ts +5 -0
- package/components/global/parse-css-duration.js +13 -0
- package/components/global/rerender-hoc.d.ts +4 -2
- package/components/global/rerender-hoc.js +4 -4
- package/components/global/schedule-with-cleanup.d.ts +12 -0
- package/components/global/schedule-with-cleanup.js +34 -0
- package/components/{legacy-table/selection.d.ts → global/table-selection.d.ts} +14 -14
- package/components/{legacy-table/selection.js → global/table-selection.js} +2 -2
- package/components/global/theme.d.ts +4 -3
- package/components/global/theme.js +8 -8
- package/components/global/variables.css +18 -28
- package/components/global/variables.interface.d.ts +0 -4
- package/components/global/variables_dark.css +18 -25
- package/components/header/header.css +3 -3
- package/components/http/http.d.ts +2 -2
- package/components/http/http.js +6 -17
- package/components/i18n/i18n-context.js +1 -1
- package/components/i18n/i18n.d.ts +1 -0
- package/components/i18n/messages.json +1 -0
- package/components/icon/icon.css +0 -27
- package/components/icon/icon.d.ts +0 -1
- package/components/icon/icon.js +2 -4
- package/components/input/input.d.ts +1 -1
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +7 -2
- package/components/island/content.js +5 -5
- package/components/island/header.js +1 -1
- package/components/legacy-table/cell.js +1 -1
- package/components/legacy-table/header-cell.js +1 -1
- package/components/legacy-table/header.js +1 -1
- package/components/legacy-table/multitable.d.ts +1 -1
- package/components/legacy-table/row.d.ts +1 -1
- package/components/legacy-table/row.js +1 -1
- package/components/legacy-table/selection-adapter.d.ts +3 -3
- package/components/legacy-table/selection-shortcuts-hoc.d.ts +5 -5
- package/components/legacy-table/simple-table.d.ts +2 -2
- package/components/legacy-table/simple-table.js +3 -3
- package/components/legacy-table/smart-table.d.ts +5 -5
- package/components/legacy-table/smart-table.js +3 -3
- package/components/legacy-table/table.js +1 -1
- package/components/list/consts.d.ts +0 -1
- package/components/list/consts.js +0 -1
- package/components/list/list.d.ts +0 -4
- package/components/login-dialog/service.js +5 -2
- package/components/panel/panel.css +1 -1
- package/components/popup/popup.d.ts +2 -0
- package/components/popup/popup.js +2 -2
- package/components/popup/popup.target.d.ts +3 -2
- package/components/popup/popup.target.js +4 -6
- package/components/query-assist/query-assist.d.ts +3 -1
- package/components/query-assist/query-assist.js +2 -2
- package/components/radio/radio-item.d.ts +3 -3
- package/components/radio/radio-item.js +3 -4
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +1 -1
- package/components/select/select-popup.d.ts +3 -2
- package/components/select/select-popup.js +3 -3
- package/components/select/select.d.ts +6 -2
- package/components/select/select.js +2 -4
- package/components/selection-toolbar/selection-toolbar.css +86 -0
- package/components/selection-toolbar/selection-toolbar.d.ts +11 -0
- package/components/selection-toolbar/selection-toolbar.js +23 -0
- package/components/slider/slider.js +4 -5
- package/components/tab-trap/tab-trap.d.ts +3 -3
- package/components/tab-trap/tab-trap.js +3 -5
- package/components/table/default-item-renderer.d.ts +41 -11
- package/components/table/default-item-renderer.js +60 -47
- package/components/table/internal/reorder-animation-context.d.ts +21 -0
- package/components/table/internal/reorder-animation-context.js +60 -0
- package/components/table/internal/reorder-handle.d.ts +9 -0
- package/components/table/internal/reorder-handle.js +334 -0
- package/components/table/internal/reorder-layout-context.d.ts +16 -0
- package/components/table/internal/reorder-layout-context.js +69 -0
- package/components/table/internal/table-header.d.ts +1 -0
- package/components/table/internal/table-header.js +143 -0
- package/components/table/internal/virtualization.d.ts +41 -0
- package/components/table/{table-virtualize.js → internal/virtualization.js} +82 -46
- package/components/table/item-virtualization.d.ts +37 -0
- package/components/table/item-virtualization.js +26 -0
- package/components/table/reorder-animation.d.ts +37 -0
- package/components/table/reorder-animation.js +11 -0
- package/components/table/reorder-item-layout.d.ts +32 -0
- package/components/table/reorder-item-layout.js +23 -0
- package/components/table/table-const.d.ts +8 -6
- package/components/table/table-const.js +7 -5
- package/components/table/table-primitives.d.ts +64 -0
- package/components/table/table-primitives.js +34 -0
- package/components/table/table-props.d.ts +304 -0
- package/components/table/table-props.js +1 -0
- package/components/table/table.css +179 -67
- package/components/table/table.d.ts +231 -224
- package/components/table/table.js +327 -2
- package/components/tag/tag.css +3 -3
- package/components/tags-input/tags-input.d.ts +3 -1
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +6 -5
- package/components/upload/upload.d.ts +4 -3
- package/components/upload/upload.js +3 -7
- package/components/user-agreement/service.js +5 -2
- package/components/user-agreement/user-agreement.css +2 -8
- package/components/user-agreement/user-agreement.js +8 -10
- package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/components/util-stories.d.ts +26 -0
- package/components/util-stories.js +61 -0
- package/package.json +47 -50
- package/components/content-layout/content-layout.css +0 -109
- package/components/content-layout/content-layout.d.ts +0 -20
- package/components/content-layout/content-layout.js +0 -40
- package/components/content-layout/sidebar.d.ts +0 -26
- package/components/content-layout/sidebar.js +0 -71
- package/components/date-picker/use-intersection-observer.d.ts +0 -6
- package/components/date-picker/use-intersection-observer.js +0 -48
- package/components/expand/collapsible-group.d.ts +0 -16
- package/components/global/composeRefs.d.ts +0 -6
- package/components/global/composeRefs.js +0 -7
- package/components/global/use-event-callback.d.ts +0 -1
- package/components/global/use-event-callback.js +0 -15
- package/components/grid/col.d.ts +0 -16
- package/components/grid/col.js +0 -35
- package/components/grid/grid.css +0 -920
- package/components/grid/grid.d.ts +0 -13
- package/components/grid/grid.js +0 -19
- package/components/grid/row.d.ts +0 -21
- package/components/grid/row.js +0 -41
- package/components/old-browsers-message/__mocks__/old-browsers-message.js +0 -1
- package/components/old-browsers-message/old-browsers-message-stop.d.ts +0 -1
- package/components/old-browsers-message/old-browsers-message-stop.js +0 -2
- package/components/old-browsers-message/old-browsers-message.css +0 -26
- package/components/old-browsers-message/old-browsers-message.d.ts +0 -5
- package/components/old-browsers-message/old-browsers-message.js +0 -86
- package/components/old-browsers-message/white-list.d.ts +0 -2
- package/components/old-browsers-message/white-list.js +0 -24
- package/components/table/table-base.d.ts +0 -24
- package/components/table/table-base.js +0 -79
- package/components/table/table-component.d.ts +0 -53
- package/components/table/table-component.js +0 -101
- package/components/table/table-virtualize.d.ts +0 -32
- /package/components/legacy-table/{table.css → legacy-table.css} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.11",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -99,29 +99,29 @@
|
|
|
99
99
|
},
|
|
100
100
|
"readmeFilename": "README.md",
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@babel/cli": "^
|
|
103
|
-
"@babel/eslint-parser": "^7.
|
|
102
|
+
"@babel/cli": "^8.0.1",
|
|
103
|
+
"@babel/eslint-parser": "^7.29.7",
|
|
104
104
|
"@csstools/css-parser-algorithms": "^4.0.0",
|
|
105
105
|
"@csstools/stylelint-no-at-nest-rule": "^5.0.0",
|
|
106
106
|
"@eslint/compat": "^2.1.0",
|
|
107
107
|
"@eslint/eslintrc": "^3.3.5",
|
|
108
108
|
"@eslint/js": "^10.0.1",
|
|
109
|
-
"@figma/code-connect": "^1.4.
|
|
109
|
+
"@figma/code-connect": "^1.4.8",
|
|
110
110
|
"@jetbrains/eslint-config": "^6.0.5",
|
|
111
111
|
"@jetbrains/logos": "3.0.0-canary.734b213.0",
|
|
112
112
|
"@jetbrains/rollup-css-plugin": "./packages/rollup-css-plugin",
|
|
113
113
|
"@jetbrains/stylelint-config": "^4.0.2",
|
|
114
114
|
"@jetbrains/typescript-plugin-css-modules": "^5.3.1",
|
|
115
|
-
"@primer/octicons": "^19.
|
|
116
|
-
"@rollup/plugin-babel": "^7.
|
|
115
|
+
"@primer/octicons": "^19.28.1",
|
|
116
|
+
"@rollup/plugin-babel": "^7.1.0",
|
|
117
117
|
"@rollup/plugin-json": "^6.1.0",
|
|
118
118
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
119
119
|
"@rollup/plugin-replace": "^6.0.3",
|
|
120
|
-
"@storybook/addon-a11y": "10.4.
|
|
121
|
-
"@storybook/addon-docs": "
|
|
122
|
-
"@storybook/addon-themes": "
|
|
120
|
+
"@storybook/addon-a11y": "10.4.6",
|
|
121
|
+
"@storybook/addon-docs": "10.4.6",
|
|
122
|
+
"@storybook/addon-themes": "10.4.6",
|
|
123
123
|
"@storybook/csf": "^0.1.13",
|
|
124
|
-
"@storybook/react-webpack5": "10.4.
|
|
124
|
+
"@storybook/react-webpack5": "10.4.6",
|
|
125
125
|
"@storybook/test-runner": "^0.24.4",
|
|
126
126
|
"@testing-library/dom": "^10.4.1",
|
|
127
127
|
"@testing-library/react": "^16.3.2",
|
|
@@ -129,36 +129,36 @@
|
|
|
129
129
|
"@types/chai-as-promised": "^8.0.2",
|
|
130
130
|
"@types/chai-dom": "1.11.3",
|
|
131
131
|
"@types/markdown-it": "^14.1.2",
|
|
132
|
-
"@types/react": "^19.2.
|
|
132
|
+
"@types/react": "^19.2.17",
|
|
133
133
|
"@types/react-dom": "^19.2.3",
|
|
134
134
|
"@types/webpack-env": "^1.18.8",
|
|
135
|
-
"@vitejs/plugin-react": "^6.0.
|
|
136
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
137
|
-
"acorn": "^8.
|
|
135
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
136
|
+
"@vitest/eslint-plugin": "^1.6.20",
|
|
137
|
+
"acorn": "^8.17.0",
|
|
138
138
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
139
|
-
"caniuse-lite": "^1.0.
|
|
139
|
+
"caniuse-lite": "^1.0.30001799",
|
|
140
140
|
"chai-as-promised": "^8.0.2",
|
|
141
141
|
"chai-dom": "^1.12.1",
|
|
142
142
|
"cheerio": "^1.2.0",
|
|
143
143
|
"core-js": "^3.49.0",
|
|
144
144
|
"cpy-cli": "^7.0.0",
|
|
145
145
|
"dotenv-cli": "^11.0.0",
|
|
146
|
-
"eslint": "^9.39.
|
|
146
|
+
"eslint": "^9.39.4",
|
|
147
147
|
"eslint-config-prettier": "^10.1.8",
|
|
148
148
|
"eslint-formatter-jslint-xml": "^9.0.1",
|
|
149
149
|
"eslint-import-resolver-exports": "^1.0.0-beta.5",
|
|
150
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
150
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
151
151
|
"eslint-import-resolver-webpack": "^0.13.11",
|
|
152
152
|
"eslint-plugin-import": "^2.32.0",
|
|
153
153
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
154
|
-
"eslint-plugin-prettier": "^5.5.
|
|
154
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
155
155
|
"eslint-plugin-react": "^7.37.5",
|
|
156
156
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
157
|
-
"eslint-plugin-storybook": "^10.4.
|
|
158
|
-
"eslint-plugin-unicorn": "^
|
|
157
|
+
"eslint-plugin-storybook": "^10.4.6",
|
|
158
|
+
"eslint-plugin-unicorn": "^70.0.0",
|
|
159
159
|
"events": "^3.3.0",
|
|
160
160
|
"glob": "^13.0.6",
|
|
161
|
-
"globals": "^17.
|
|
161
|
+
"globals": "^17.7.0",
|
|
162
162
|
"html-webpack-plugin": "^5.6.7",
|
|
163
163
|
"http-server": "^14.1.1",
|
|
164
164
|
"husky": "^9.1.7",
|
|
@@ -166,41 +166,41 @@
|
|
|
166
166
|
"jest": "~30.4.2",
|
|
167
167
|
"jest-environment-jsdom": "^30.4.1",
|
|
168
168
|
"jest-teamcity": "^1.12.0",
|
|
169
|
-
"lint-staged": "^17.0.
|
|
169
|
+
"lint-staged": "^17.0.8",
|
|
170
170
|
"markdown-it": "^14.2.0",
|
|
171
171
|
"merge-options": "^3.0.4",
|
|
172
172
|
"pinst": "^3.0.0",
|
|
173
|
-
"prettier": "^3.
|
|
173
|
+
"prettier": "^3.9.4",
|
|
174
174
|
"raw-loader": "^4.0.2",
|
|
175
|
-
"react": "^19.2.
|
|
176
|
-
"react-dom": "^19.2.
|
|
175
|
+
"react": "^19.2.7",
|
|
176
|
+
"react-dom": "^19.2.7",
|
|
177
177
|
"regenerator-runtime": "^0.14.1",
|
|
178
178
|
"rimraf": "^6.1.3",
|
|
179
|
-
"rollup": "^4.
|
|
179
|
+
"rollup": "^4.62.2",
|
|
180
180
|
"rollup-plugin-clear": "^2.0.7",
|
|
181
181
|
"storage-mock": "^2.1.0",
|
|
182
|
-
"storybook": "10.4.
|
|
183
|
-
"stylelint": "^17.
|
|
182
|
+
"storybook": "10.4.6",
|
|
183
|
+
"stylelint": "^17.14.0",
|
|
184
184
|
"stylelint-config-sass-guidelines": "^13.0.0",
|
|
185
185
|
"svg-inline-loader": "^0.8.2",
|
|
186
186
|
"teamcity-service-messages": "^0.1.14",
|
|
187
|
-
"terser-webpack-plugin": "^5.6.
|
|
187
|
+
"terser-webpack-plugin": "^5.6.1",
|
|
188
188
|
"typed-css-modules": "^0.9.1",
|
|
189
189
|
"typescript": "~6.0.3",
|
|
190
|
-
"typescript-eslint": "^8.
|
|
191
|
-
"vite": "^8.0
|
|
192
|
-
"vitest": "^4.1.
|
|
190
|
+
"typescript-eslint": "^8.62.1",
|
|
191
|
+
"vite": "^8.1.0",
|
|
192
|
+
"vitest": "^4.1.9",
|
|
193
193
|
"vitest-teamcity-reporter": "^0.4.1",
|
|
194
|
-
"webpack": "^5.
|
|
195
|
-
"webpack-cli": "^7.0
|
|
194
|
+
"webpack": "^5.108.1",
|
|
195
|
+
"webpack-cli": "^7.1.0",
|
|
196
196
|
"xmlappend": "^1.0.4"
|
|
197
197
|
},
|
|
198
198
|
"peerDependencies": {
|
|
199
|
-
"@types/react": ">=
|
|
200
|
-
"@types/react-dom": ">=
|
|
199
|
+
"@types/react": ">=19.2.0",
|
|
200
|
+
"@types/react-dom": ">=19.2.0",
|
|
201
201
|
"core-js": ">=3.0.0",
|
|
202
|
-
"react": ">=
|
|
203
|
-
"react-dom": ">=
|
|
202
|
+
"react": ">=19.2.0",
|
|
203
|
+
"react-dom": ">=19.2.0",
|
|
204
204
|
"webpack": ">=5.0.0"
|
|
205
205
|
},
|
|
206
206
|
"peerDependenciesMeta": {
|
|
@@ -215,10 +215,10 @@
|
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
217
|
"dependencies": {
|
|
218
|
-
"@babel/core": "^7.29.
|
|
219
|
-
"@babel/preset-typescript": "^
|
|
218
|
+
"@babel/core": "^7.29.7",
|
|
219
|
+
"@babel/preset-typescript": "^8.0.1",
|
|
220
220
|
"@jetbrains/babel-preset-jetbrains": "^2.4.0",
|
|
221
|
-
"@jetbrains/icons": "^5.
|
|
221
|
+
"@jetbrains/icons": "^5.23.3",
|
|
222
222
|
"@jetbrains/postcss-require-hover": "^0.2.0",
|
|
223
223
|
"@types/combokeys": "^2.4.9",
|
|
224
224
|
"@types/element-resize-detector": "^1.1.6",
|
|
@@ -226,32 +226,29 @@
|
|
|
226
226
|
"@types/util-deprecate": "^1.0.4",
|
|
227
227
|
"babel-loader": "10.1.1",
|
|
228
228
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
229
|
-
"babel-plugin-transform-define": "^2.1.4",
|
|
230
|
-
"browserslist": "^4.28.2",
|
|
231
229
|
"change-case": "^4.1.1",
|
|
232
230
|
"classnames": "^2.5.1",
|
|
233
231
|
"combokeys": "^3.0.1",
|
|
234
232
|
"css-loader": "^7.1.4",
|
|
235
233
|
"csstype": "^3.2.1",
|
|
236
|
-
"date-fns": "^4.
|
|
234
|
+
"date-fns": "^4.4.0",
|
|
237
235
|
"dequal": "^2.0.3",
|
|
238
236
|
"element-resize-detector": "^1.2.4",
|
|
239
237
|
"fastdom": "^1.0.12",
|
|
240
238
|
"file-loader": "^6.2.0",
|
|
241
|
-
"focus-trap": "^8.2.
|
|
239
|
+
"focus-trap": "^8.2.2",
|
|
242
240
|
"highlight.js": "^10.7.2",
|
|
243
241
|
"just-debounce-it": "^3.2.0",
|
|
244
242
|
"memoize-one": "^6.0.0",
|
|
245
|
-
"postcss": "^8.5.
|
|
246
|
-
"postcss-calc": "^
|
|
243
|
+
"postcss": "^8.5.25",
|
|
244
|
+
"postcss-calc": "^11.0.1",
|
|
247
245
|
"postcss-font-family-system-ui": "^5.0.0",
|
|
248
246
|
"postcss-loader": "^8.2.1",
|
|
249
247
|
"postcss-modules-values-replace": "^4.2.2",
|
|
250
|
-
"postcss-preset-env": "^11.3.
|
|
248
|
+
"postcss-preset-env": "^11.3.1",
|
|
251
249
|
"react-compiler-runtime": "^1.0.0",
|
|
252
250
|
"react-movable": "^3.4.1",
|
|
253
251
|
"react-virtualized": "^9.22.6",
|
|
254
|
-
"react-waypoint": "^10.3.0",
|
|
255
252
|
"scrollbar-width": "^3.1.1",
|
|
256
253
|
"simply-uuid": "^1.0.1",
|
|
257
254
|
"sniffr": "^1.4.0",
|
|
@@ -261,7 +258,7 @@
|
|
|
261
258
|
"util-deprecate": "^1.0.2"
|
|
262
259
|
},
|
|
263
260
|
"engines": {
|
|
264
|
-
"node": ">=
|
|
261
|
+
"node": "^22.22.3 || ^24.15 || >=26.0",
|
|
265
262
|
"npm": ">=6.0.0"
|
|
266
263
|
},
|
|
267
264
|
"bugs": {
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
@import '../global/variables.css';
|
|
2
|
-
|
|
3
|
-
@value extra-small-screen-media, small-screen-media from '../global/global.css';
|
|
4
|
-
|
|
5
|
-
.contentLayout {
|
|
6
|
-
--ring-content-layout-sidebar-width: calc(var(--ring-unit) * 30);
|
|
7
|
-
|
|
8
|
-
position: relative;
|
|
9
|
-
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-flow: row nowrap;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.contentLayoutContent {
|
|
15
|
-
align-self: flex-start;
|
|
16
|
-
flex-grow: 2;
|
|
17
|
-
|
|
18
|
-
width: 100%; /* without this hack IE11 render contentLayoutContent wider than its container */
|
|
19
|
-
margin: 0 calc(var(--ring-unit) * 4);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.sidebarContainer {
|
|
23
|
-
min-width: var(--ring-content-layout-sidebar-width);
|
|
24
|
-
max-width: var(--ring-content-layout-sidebar-width);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.sidebarContainerRight {
|
|
28
|
-
order: 1;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.sidebar {
|
|
32
|
-
overflow: auto;
|
|
33
|
-
|
|
34
|
-
box-sizing: border-box;
|
|
35
|
-
min-width: var(--ring-content-layout-sidebar-width);
|
|
36
|
-
max-width: var(--ring-content-layout-sidebar-width);
|
|
37
|
-
height: 100%;
|
|
38
|
-
padding-right: calc(var(--ring-unit) * 2);
|
|
39
|
-
padding-left: calc(var(--ring-unit) * 4);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.sidebarRight {
|
|
43
|
-
padding-right: calc(var(--ring-unit) * 4);
|
|
44
|
-
padding-left: calc(var(--ring-unit) * 2);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.sidebarFixedTop {
|
|
48
|
-
top: 0;
|
|
49
|
-
bottom: 0;
|
|
50
|
-
|
|
51
|
-
&.sidebarFixedTop {
|
|
52
|
-
position: fixed;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.sidebarFixedBottom.sidebarFixedBottom {
|
|
57
|
-
position: absolute;
|
|
58
|
-
top: auto;
|
|
59
|
-
bottom: 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.bottomMarker {
|
|
63
|
-
position: absolute;
|
|
64
|
-
bottom: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.contentLayoutResponsive {
|
|
68
|
-
@media extra-small-screen-media, small-screen-media {
|
|
69
|
-
& .contentLayoutContent {
|
|
70
|
-
margin: 0 16px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
& .sidebar {
|
|
74
|
-
position: absolute;
|
|
75
|
-
top: 0;
|
|
76
|
-
bottom: 0;
|
|
77
|
-
left: 0;
|
|
78
|
-
|
|
79
|
-
box-sizing: content-box;
|
|
80
|
-
padding: 0 16px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
& .sidebarFixedTop {
|
|
84
|
-
position: fixed;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
& .sidebarFixedBottom {
|
|
88
|
-
top: auto;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
& .sidebarRight {
|
|
92
|
-
right: 0;
|
|
93
|
-
left: auto;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
& .sidebarContainer {
|
|
97
|
-
min-width: 0;
|
|
98
|
-
max-width: 0;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@media extra-small-screen-media {
|
|
103
|
-
& .sidebar {
|
|
104
|
-
width: 80%;
|
|
105
|
-
min-width: 0;
|
|
106
|
-
max-width: none;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component, type HTMLAttributes } from 'react';
|
|
2
|
-
export interface ContentLayoutProps extends HTMLAttributes<HTMLElement> {
|
|
3
|
-
responsive: boolean;
|
|
4
|
-
contentClassName?: string | null | undefined;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @name Content Layout
|
|
8
|
-
* @deprecated Will be removed in Ring UI 8.0.
|
|
9
|
-
*/
|
|
10
|
-
export default class ContentLayout extends Component<ContentLayoutProps> {
|
|
11
|
-
static defaultProps: {
|
|
12
|
-
responsive: boolean;
|
|
13
|
-
};
|
|
14
|
-
state: {
|
|
15
|
-
contentNode: null;
|
|
16
|
-
};
|
|
17
|
-
saveContentNode: (contentNode: HTMLElement | null) => void;
|
|
18
|
-
render(): import("react").JSX.Element;
|
|
19
|
-
}
|
|
20
|
-
export { default as Sidebar } from './sidebar';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Children, cloneElement, Component } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import Sidebar from './sidebar';
|
|
4
|
-
import styles from './content-layout.css';
|
|
5
|
-
/**
|
|
6
|
-
* @name Content Layout
|
|
7
|
-
* @deprecated Will be removed in Ring UI 8.0.
|
|
8
|
-
*/
|
|
9
|
-
export default class ContentLayout extends Component {
|
|
10
|
-
static defaultProps = {
|
|
11
|
-
responsive: true,
|
|
12
|
-
};
|
|
13
|
-
state = {
|
|
14
|
-
contentNode: null,
|
|
15
|
-
};
|
|
16
|
-
saveContentNode = (contentNode) => {
|
|
17
|
-
this.setState({ contentNode });
|
|
18
|
-
};
|
|
19
|
-
render() {
|
|
20
|
-
const { children, className, contentClassName, responsive, ...restProps } = this.props;
|
|
21
|
-
const classes = classNames(styles.contentLayout, className, {
|
|
22
|
-
[styles.contentLayoutResponsive]: responsive,
|
|
23
|
-
});
|
|
24
|
-
const contentClasses = classNames(styles.contentLayoutContent, contentClassName);
|
|
25
|
-
const childrenArray = Children.toArray(children);
|
|
26
|
-
const sidebarChild = childrenArray.filter((child) => !!child && typeof child === 'object' && 'type' in child && child.type === Sidebar)[0];
|
|
27
|
-
const sidebar = sidebarChild &&
|
|
28
|
-
cloneElement(sidebarChild, {
|
|
29
|
-
contentNode: this.state.contentNode,
|
|
30
|
-
});
|
|
31
|
-
const contentChildren = childrenArray.filter(child => child !== sidebarChild);
|
|
32
|
-
return (<div data-test='content-layout' {...restProps} className={classes}>
|
|
33
|
-
{sidebar}
|
|
34
|
-
<main className={contentClasses} ref={this.saveContentNode}>
|
|
35
|
-
{contentChildren}
|
|
36
|
-
</main>
|
|
37
|
-
</div>);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
export { default as Sidebar } from './sidebar';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Component, type HTMLAttributes } from 'react';
|
|
2
|
-
import { Waypoint } from 'react-waypoint';
|
|
3
|
-
export interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
right?: boolean | null | undefined;
|
|
5
|
-
containerClassName?: string | null | undefined;
|
|
6
|
-
fixedClassName?: string | null | undefined;
|
|
7
|
-
contentNode?: HTMLElement | null | undefined;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @name Sidebar
|
|
11
|
-
* @deprecated Will be removed in Ring UI 8.0.
|
|
12
|
-
*/
|
|
13
|
-
export default class Sidebar extends Component<SidebarProps> {
|
|
14
|
-
state: {
|
|
15
|
-
topIsOutside: boolean;
|
|
16
|
-
bottomIsOutside: boolean;
|
|
17
|
-
sidebarVisibleHeight: undefined;
|
|
18
|
-
};
|
|
19
|
-
sidebarNode?: HTMLElement | null;
|
|
20
|
-
handleTopWaypoint: ({ currentPosition }: Waypoint.CallbackArgs) => void;
|
|
21
|
-
handleBottomWaypoint: ({ currentPosition, waypointTop }: Waypoint.CallbackArgs) => void;
|
|
22
|
-
shouldUseFixation(): boolean;
|
|
23
|
-
shouldFixateBottom(): boolean;
|
|
24
|
-
sidebarRef: (node: HTMLElement | null) => void;
|
|
25
|
-
render(): import("react").JSX.Element;
|
|
26
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import { Waypoint } from 'react-waypoint';
|
|
4
|
-
import styles from './content-layout.css';
|
|
5
|
-
const ABOVE = 'above';
|
|
6
|
-
const INSIDE = 'inside';
|
|
7
|
-
/**
|
|
8
|
-
* @name Sidebar
|
|
9
|
-
* @deprecated Will be removed in Ring UI 8.0.
|
|
10
|
-
*/
|
|
11
|
-
export default class Sidebar extends Component {
|
|
12
|
-
state = {
|
|
13
|
-
topIsOutside: true,
|
|
14
|
-
bottomIsOutside: true,
|
|
15
|
-
sidebarVisibleHeight: undefined,
|
|
16
|
-
};
|
|
17
|
-
sidebarNode;
|
|
18
|
-
handleTopWaypoint = ({ currentPosition }) => {
|
|
19
|
-
this.setState({ topIsOutside: currentPosition === ABOVE });
|
|
20
|
-
};
|
|
21
|
-
handleBottomWaypoint = ({ currentPosition, waypointTop }) => {
|
|
22
|
-
this.setState({
|
|
23
|
-
sidebarVisibleHeight: waypointTop,
|
|
24
|
-
bottomIsOutside: currentPosition !== INSIDE,
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
shouldUseFixation() {
|
|
28
|
-
const { contentNode } = this.props;
|
|
29
|
-
const { sidebarNode } = this;
|
|
30
|
-
if (!contentNode || !sidebarNode) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
return contentNode.offsetHeight >= sidebarNode.offsetHeight;
|
|
34
|
-
}
|
|
35
|
-
shouldFixateBottom() {
|
|
36
|
-
const { topIsOutside, bottomIsOutside } = this.state;
|
|
37
|
-
return !bottomIsOutside && topIsOutside && this.shouldUseFixation();
|
|
38
|
-
}
|
|
39
|
-
sidebarRef = (node) => {
|
|
40
|
-
this.sidebarNode = node;
|
|
41
|
-
};
|
|
42
|
-
render() {
|
|
43
|
-
const { right, children, className, containerClassName, fixedClassName, contentNode, ...restProps } = this.props;
|
|
44
|
-
const { topIsOutside, bottomIsOutside, sidebarVisibleHeight } = this.state;
|
|
45
|
-
const shouldFixateTop = bottomIsOutside && topIsOutside && this.shouldUseFixation();
|
|
46
|
-
const shouldFixateBottom = this.shouldFixateBottom();
|
|
47
|
-
const containerClasses = classNames(styles.sidebarContainer, containerClassName, {
|
|
48
|
-
[styles.sidebarContainerRight]: right,
|
|
49
|
-
});
|
|
50
|
-
const classes = classNames(styles.sidebar, className, {
|
|
51
|
-
[styles.sidebarRight]: right,
|
|
52
|
-
[styles.sidebarFixedTop]: shouldFixateTop,
|
|
53
|
-
[styles.sidebarFixedBottom]: shouldFixateBottom,
|
|
54
|
-
[fixedClassName ?? '']: shouldFixateTop || shouldFixateBottom,
|
|
55
|
-
});
|
|
56
|
-
const style = {
|
|
57
|
-
maxHeight: shouldFixateBottom && sidebarVisibleHeight ? `${sidebarVisibleHeight}px` : undefined,
|
|
58
|
-
};
|
|
59
|
-
return (<aside className={containerClasses} ref={this.sidebarRef}>
|
|
60
|
-
<Waypoint onEnter={this.handleTopWaypoint} onLeave={this.handleTopWaypoint}/>
|
|
61
|
-
|
|
62
|
-
<div {...restProps} style={style} className={classes}>
|
|
63
|
-
{children}
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
<div className={styles.bottomMarker}>
|
|
67
|
-
<Waypoint onEnter={this.handleBottomWaypoint} onLeave={this.handleBottomWaypoint}/>
|
|
68
|
-
</div>
|
|
69
|
-
</aside>);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
2
|
-
export declare function useIntersectionObserver(containerRef: RefObject<HTMLElement | null>, scrollMargin?: number): IntersectionObserverHandle | null;
|
|
3
|
-
export interface IntersectionObserverHandle {
|
|
4
|
-
observeVisibility(element: Element, setVisible: (isVisible: boolean) => void): () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function useVisibility(handle: IntersectionObserverHandle | null, elementRef: RefObject<Element | null>): boolean;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from 'react';
|
|
2
|
-
export function useIntersectionObserver(containerRef, scrollMargin = 0) {
|
|
3
|
-
const [handle, setHandle] = useState(null);
|
|
4
|
-
useEffect(() => {
|
|
5
|
-
const container = containerRef.current;
|
|
6
|
-
if (!container)
|
|
7
|
-
return;
|
|
8
|
-
const elementToSetVisible = new Map();
|
|
9
|
-
const observer = new IntersectionObserver(entries => {
|
|
10
|
-
for (const entry of entries) {
|
|
11
|
-
const setVisible = elementToSetVisible.get(entry.target);
|
|
12
|
-
setVisible?.(entry.isIntersecting);
|
|
13
|
-
}
|
|
14
|
-
}, {
|
|
15
|
-
root: container,
|
|
16
|
-
...(scrollMargin
|
|
17
|
-
? {
|
|
18
|
-
scrollMargin: `${scrollMargin}px`,
|
|
19
|
-
}
|
|
20
|
-
: {}),
|
|
21
|
-
});
|
|
22
|
-
setHandle({
|
|
23
|
-
observeVisibility(element, setVisible) {
|
|
24
|
-
elementToSetVisible.set(element, setVisible);
|
|
25
|
-
observer.observe(element);
|
|
26
|
-
return () => {
|
|
27
|
-
elementToSetVisible.delete(element);
|
|
28
|
-
observer.unobserve(element);
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
return () => {
|
|
33
|
-
observer.disconnect();
|
|
34
|
-
setHandle(null);
|
|
35
|
-
};
|
|
36
|
-
}, [containerRef, scrollMargin]);
|
|
37
|
-
return handle;
|
|
38
|
-
}
|
|
39
|
-
export function useVisibility(handle, elementRef) {
|
|
40
|
-
const [isVisible, setIsVisible] = useState(false);
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
const element = elementRef.current;
|
|
43
|
-
if (!element || !handle)
|
|
44
|
-
return;
|
|
45
|
-
return handle.observeVisibility(element, setIsVisible);
|
|
46
|
-
}, [handle, elementRef, setIsVisible]);
|
|
47
|
-
return isVisible;
|
|
48
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface CollapsibleGroupProps {
|
|
3
|
-
avatar?: React.ReactNode;
|
|
4
|
-
title: React.ReactNode;
|
|
5
|
-
subtitle?: React.ReactNode;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
className?: string | null | undefined;
|
|
8
|
-
defaultExpanded?: boolean;
|
|
9
|
-
expanded?: boolean | null | undefined;
|
|
10
|
-
onChange?: (expanded: boolean) => void;
|
|
11
|
-
disableAnimation?: boolean;
|
|
12
|
-
interactive?: boolean;
|
|
13
|
-
'data-test'?: string | null | undefined;
|
|
14
|
-
}
|
|
15
|
-
declare const CollapsibleGroup: React.ForwardRefExoticComponent<CollapsibleGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
export default CollapsibleGroup;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/* eslint-disable unicorn/filename-case */
|
|
2
|
-
import { createComposedRef as _createComposedRef } from './compose-refs';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use createComposedRef from './compose-refs' instead
|
|
5
|
-
*/
|
|
6
|
-
const createComposedRef = _createComposedRef;
|
|
7
|
-
export { createComposedRef };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useEventCallback<I extends unknown[], O>(fn: (...args: I) => O): (...args: I) => O;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useCallback, useLayoutEffect, useRef } from 'react';
|
|
2
|
-
// TODO deprecate in favor of useEffectEvent after dropping support for React < 19.2
|
|
3
|
-
export default function useEventCallback(fn) {
|
|
4
|
-
const ref = useRef(null);
|
|
5
|
-
useLayoutEffect(() => {
|
|
6
|
-
ref.current = fn;
|
|
7
|
-
});
|
|
8
|
-
return useCallback((...args) => {
|
|
9
|
-
const { current } = ref;
|
|
10
|
-
if (current === null || current === undefined) {
|
|
11
|
-
throw new Error('callback created in useEventCallback can only be called from event handlers');
|
|
12
|
-
}
|
|
13
|
-
return current(...args);
|
|
14
|
-
}, []);
|
|
15
|
-
}
|
package/components/grid/col.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Component, type HTMLAttributes } from 'react';
|
|
2
|
-
export interface ColProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
'data-test'?: string | null | undefined;
|
|
4
|
-
xs?: boolean | number | null | undefined;
|
|
5
|
-
sm?: boolean | number | null | undefined;
|
|
6
|
-
md?: boolean | number | null | undefined;
|
|
7
|
-
lg?: boolean | number | null | undefined;
|
|
8
|
-
xsOffset?: number | null | undefined;
|
|
9
|
-
smOffset?: number | null | undefined;
|
|
10
|
-
mdOffset?: number | null | undefined;
|
|
11
|
-
lgOffset?: number | null | undefined;
|
|
12
|
-
reverse?: boolean | null | undefined;
|
|
13
|
-
}
|
|
14
|
-
export default class Col extends Component<ColProps> {
|
|
15
|
-
render(): import("react").JSX.Element;
|
|
16
|
-
}
|
package/components/grid/col.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import dataTests from '../global/data-tests';
|
|
4
|
-
import styles from './grid.css';
|
|
5
|
-
const classMap = {
|
|
6
|
-
xs: 'col-xs',
|
|
7
|
-
sm: 'col-sm',
|
|
8
|
-
md: 'col-md',
|
|
9
|
-
lg: 'col-lg',
|
|
10
|
-
xsOffset: 'col-xs-offset',
|
|
11
|
-
smOffset: 'col-sm-offset',
|
|
12
|
-
mdOffset: 'col-md-offset',
|
|
13
|
-
lgOffset: 'col-lg-offset',
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Converts props like "xs=9 xsOffset={2}" to classes "col-xs-9 col-xs-offset-2"
|
|
17
|
-
* @param {Object} props incoming props
|
|
18
|
-
* @mockReturnValue {Array} result classnames
|
|
19
|
-
*/
|
|
20
|
-
function getClassNames(props) {
|
|
21
|
-
return Object.entries(props)
|
|
22
|
-
.filter(([key, value]) => classMap[key] && value != null)
|
|
23
|
-
.map(([key, value]) => styles[Number.isInteger(value) ? `${classMap[key]}-${value}` : classMap[key]]);
|
|
24
|
-
}
|
|
25
|
-
export default class Col extends Component {
|
|
26
|
-
render() {
|
|
27
|
-
const { children, className, 'data-test': dataTest, reverse, xs, sm, md, lg, xsOffset, smOffset, mdOffset, lgOffset, ...restProps } = this.props;
|
|
28
|
-
const classes = classNames(styles.col, className, getClassNames({ xs, sm, md, lg, xsOffset, smOffset, mdOffset, lgOffset }), {
|
|
29
|
-
[styles.reverse]: reverse,
|
|
30
|
-
});
|
|
31
|
-
return (<div {...restProps} className={classes} data-test={dataTests('ring-grid-column', dataTest)}>
|
|
32
|
-
{children}
|
|
33
|
-
</div>);
|
|
34
|
-
}
|
|
35
|
-
}
|