@bloomreach/react-banana-ui 1.36.0 → 1.38.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/bloomreach-react-banana-ui.es.js +11282 -9409
- package/dist/bloomreach-react-banana-ui.es.js.map +1 -1
- package/dist/bloomreach-react-banana-ui.umd.js +19 -19
- package/dist/bloomreach-react-banana-ui.umd.js.map +1 -1
- package/dist/components/inputs/autocomplete/autocomplete.stories.d.ts +10 -0
- package/dist/components/inputs/autocomplete/autocomplete.types.d.ts +36 -0
- package/dist/components/inputs/field-label/field-label.types.d.ts +2 -2
- package/dist/components/inputs/index.d.ts +1 -0
- package/dist/components/inputs/internal.d.ts +1 -0
- package/dist/components/inputs/slider/index.d.ts +4 -0
- package/dist/components/inputs/slider/internal/components/index.d.ts +4 -0
- package/dist/components/inputs/slider/internal/components/slider-mark-list.d.ts +20 -0
- package/dist/components/inputs/slider/internal/components/slider-number-input.d.ts +32 -0
- package/dist/components/inputs/slider/internal/components/slider-thumb.d.ts +31 -0
- package/dist/components/inputs/slider/internal/components/slider-tickmarks.d.ts +13 -0
- package/dist/components/inputs/slider/internal/hooks/index.d.ts +5 -0
- package/dist/components/inputs/slider/internal/hooks/use-slider-base.d.ts +18 -0
- package/dist/components/inputs/slider/internal/hooks/use-slider-hidden-input-props.d.ts +47 -0
- package/dist/components/inputs/slider/internal/hooks/use-slider-marks.d.ts +14 -0
- package/dist/components/inputs/slider/internal/hooks/use-slider-pointer-interaction.d.ts +47 -0
- package/dist/components/inputs/slider/internal/hooks/use-slider.d.ts +17 -0
- package/dist/components/inputs/slider/internal/index.d.ts +4 -0
- package/dist/components/inputs/slider/internal/types/index.d.ts +2 -0
- package/dist/components/inputs/slider/internal/types/slider.internal-types.d.ts +97 -0
- package/dist/components/inputs/slider/internal/utils/index.d.ts +2 -0
- package/dist/components/inputs/slider/internal/utils/slider.helpers.d.ts +227 -0
- package/dist/components/inputs/slider/internal/utils/slider.utils.d.ts +190 -0
- package/dist/components/inputs/slider/slider/index.d.ts +2 -0
- package/dist/components/inputs/slider/slider/slider.d.ts +17 -0
- package/dist/components/inputs/slider/slider/slider.qa.stories.d.ts +27 -0
- package/dist/components/inputs/slider/slider/slider.stories.d.ts +33 -0
- package/dist/components/inputs/slider/slider/slider.types.d.ts +229 -0
- package/dist/components/inputs/slider/slider-field/index.d.ts +2 -0
- package/dist/components/inputs/slider/slider-field/slider-field.d.ts +27 -0
- package/dist/components/inputs/slider/slider-field/slider-field.qa.stories.d.ts +18 -0
- package/dist/components/inputs/slider/slider-field/slider-field.stories.d.ts +15 -0
- package/dist/components/inputs/slider/slider-field/slider-field.types.d.ts +24 -0
- package/dist/react-banana-ui.css +1 -1
- package/dist/utils/dom.d.ts +7 -0
- package/dist/utils/hooks/index.d.ts +2 -0
- package/dist/utils/hooks/use-event-callback.d.ts +6 -0
- package/dist/utils/hooks/use-fork-refs.d.ts +7 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/types/styles.types.d.ts +1 -1
- package/package.json +44 -43
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export type EventHandler = (...args: unknown[]) => unknown;
|
|
3
|
+
export type EventHandlers = Record<string, EventHandler>;
|
|
4
|
+
export declare const visuallyHidden: React.CSSProperties;
|
|
5
|
+
export declare function ownerDocument(node: Node | null | undefined): Document;
|
|
6
|
+
export declare function extractEventHandlers(object: Record<string, unknown> | undefined, excludeKeys?: string[]): EventHandlers;
|
|
7
|
+
export declare function isFocusVisible(element: EventTarget | null): boolean;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as useElementWidth } from './use-element-width';
|
|
2
|
+
export { default as useEventCallback } from './use-event-callback';
|
|
3
|
+
export { default as useForkRefs } from './use-fork-refs';
|
|
2
4
|
export { default as useHover } from './use-hover';
|
|
3
5
|
export { default as useStyleProps } from './use-style-props';
|
|
4
6
|
export * from './use-style-props';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a stable callback reference that always invokes the latest version of the provided function.
|
|
3
|
+
* Avoids stale closures without adding the function to dependency arrays.
|
|
4
|
+
*/
|
|
5
|
+
declare function useEventCallback<Args extends unknown[], Return>(fn: (...args: Args) => Return): (...args: Args) => Return;
|
|
6
|
+
export default useEventCallback;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Ref, RefCallback } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Merges multiple React refs into a single callback ref.
|
|
4
|
+
* Useful when a component needs to forward its ref while also keeping a local ref.
|
|
5
|
+
*/
|
|
6
|
+
declare function useForkRefs<Instance>(...refs: Array<Ref<Instance> | undefined>): null | RefCallback<Instance>;
|
|
7
|
+
export default useForkRefs;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export interface CSSBorderProps {
|
|
|
42
42
|
*/
|
|
43
43
|
borderStartStartRadius?: CSSBorderValue;
|
|
44
44
|
}
|
|
45
|
-
export type CSSBorderValue = 'radius-0x' | 'radius-1x' | 'radius-2x' | 'radius-full' | 'radius-
|
|
45
|
+
export type CSSBorderValue = 'radius-0x' | 'radius-1x' | 'radius-2x' | 'radius-full' | 'radius-none';
|
|
46
46
|
export type CSSColorValue = 'accent-100' | 'accent-150' | 'accent-200' | 'accent-250' | 'accent-300' | 'accent-350' | 'accent-400' | 'accent-450' | 'accent-500' | 'accent-550' | 'accent-600' | 'accent-650' | 'accent-700' | 'accent-750' | 'accent-800' | 'accent-850' | 'blue-50' | 'blue-100' | 'blue-200' | 'blue-300' | 'blue-400' | 'blue-500' | 'blue-600' | 'blue-700' | 'gold-50' | 'gold-100' | 'gold-200' | 'gold-300' | 'gold-400' | 'gold-500' | 'gold-600' | 'gold-700' | 'green-50' | 'green-100' | 'green-200' | 'green-300' | 'green-400' | 'green-500' | 'green-600' | 'green-700' | 'neutral-000' | 'neutral-100' | 'neutral-200' | 'neutral-300' | 'neutral-400' | 'neutral-500' | 'neutral-600' | 'neutral-700' | 'orange-50' | 'orange-100' | 'orange-200' | 'orange-300' | 'orange-400' | 'orange-500' | 'orange-600' | 'orange-700' | 'red-50' | 'red-100' | 'red-200' | 'red-300' | 'red-400' | 'red-500' | 'red-600' | 'red-700';
|
|
47
47
|
export interface CSSLayoutProps {
|
|
48
48
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloomreach/react-banana-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.38.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -69,80 +69,81 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@bloomreach/banana-theme": "0.0
|
|
73
|
-
"@floating-ui/react": "0.27.
|
|
74
|
-
"@internationalized/date": "3.
|
|
72
|
+
"@bloomreach/banana-theme": "0.2.0",
|
|
73
|
+
"@floating-ui/react": "0.27.19",
|
|
74
|
+
"@internationalized/date": "3.12.0",
|
|
75
75
|
"@mui/base": "5.0.0-beta.70",
|
|
76
76
|
"@radix-ui/react-accordion": "1.2.12",
|
|
77
77
|
"@radix-ui/react-slot": "1.2.4",
|
|
78
|
-
"@react-aria/calendar": "3.9.
|
|
79
|
-
"@react-aria/datepicker": "3.
|
|
80
|
-
"@react-aria/i18n": "3.12.
|
|
81
|
-
"@react-stately/calendar": "3.9.
|
|
82
|
-
"@react-stately/datepicker": "3.
|
|
78
|
+
"@react-aria/calendar": "3.9.5",
|
|
79
|
+
"@react-aria/datepicker": "3.16.1",
|
|
80
|
+
"@react-aria/i18n": "3.12.16",
|
|
81
|
+
"@react-stately/calendar": "3.9.3",
|
|
82
|
+
"@react-stately/datepicker": "3.16.1",
|
|
83
83
|
"classnames": "2.5.1",
|
|
84
84
|
"react-hot-toast": "2.6.0",
|
|
85
85
|
"react-merge-refs": "2.1.1"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@antfu/eslint-config": "6.
|
|
89
|
-
"@commitlint/cli": "20.
|
|
90
|
-
"@commitlint/config-conventional": "20.
|
|
91
|
-
"@commitlint/types": "20.
|
|
92
|
-
"@eslint-community/eslint-plugin-eslint-comments": "4.
|
|
93
|
-
"@eslint-react/eslint-plugin": "2.
|
|
94
|
-
"@eslint/js": "9.39.
|
|
95
|
-
"@laynezh/vite-plugin-lib-assets": "2.
|
|
96
|
-
"@playwright/test": "1.
|
|
88
|
+
"@antfu/eslint-config": "6.7.3",
|
|
89
|
+
"@commitlint/cli": "20.5.0",
|
|
90
|
+
"@commitlint/config-conventional": "20.5.0",
|
|
91
|
+
"@commitlint/types": "20.5.0",
|
|
92
|
+
"@eslint-community/eslint-plugin-eslint-comments": "4.7.1",
|
|
93
|
+
"@eslint-react/eslint-plugin": "2.13.0",
|
|
94
|
+
"@eslint/js": "9.39.4",
|
|
95
|
+
"@laynezh/vite-plugin-lib-assets": "2.2.0",
|
|
96
|
+
"@playwright/test": "1.58.2",
|
|
97
97
|
"@semantic-release/changelog": "6.0.3",
|
|
98
98
|
"@semantic-release/git": "10.0.1",
|
|
99
|
-
"@storybook/addon-a11y": "10.
|
|
100
|
-
"@storybook/addon-docs": "10.
|
|
101
|
-
"@storybook/addon-links": "10.
|
|
102
|
-
"@storybook/react-vite": "10.
|
|
99
|
+
"@storybook/addon-a11y": "10.3.3",
|
|
100
|
+
"@storybook/addon-docs": "10.3.3",
|
|
101
|
+
"@storybook/addon-links": "10.3.3",
|
|
102
|
+
"@storybook/react-vite": "10.3.3",
|
|
103
103
|
"@testing-library/dom": "10.4.1",
|
|
104
104
|
"@testing-library/jest-dom": "6.9.1",
|
|
105
|
-
"@testing-library/react": "16.3.
|
|
105
|
+
"@testing-library/react": "16.3.2",
|
|
106
106
|
"@testing-library/user-event": "14.6.1",
|
|
107
|
-
"@types/node": "24.
|
|
107
|
+
"@types/node": "24.12.0",
|
|
108
108
|
"@types/react": "18.x.x",
|
|
109
109
|
"@types/react-dom": "18.x.x",
|
|
110
|
-
"@vitejs/plugin-react-swc": "4.
|
|
111
|
-
"@vitest/coverage-v8": "4.
|
|
112
|
-
"@vitest/eslint-plugin": "1.
|
|
113
|
-
"@vitest/ui": "4.
|
|
114
|
-
"autoprefixer": "10.4.
|
|
115
|
-
"conventional-changelog-conventionalcommits": "9.1
|
|
116
|
-
"eslint": "9.39.
|
|
110
|
+
"@vitejs/plugin-react-swc": "4.3.0",
|
|
111
|
+
"@vitest/coverage-v8": "4.1.2",
|
|
112
|
+
"@vitest/eslint-plugin": "1.6.14",
|
|
113
|
+
"@vitest/ui": "4.1.2",
|
|
114
|
+
"autoprefixer": "10.4.27",
|
|
115
|
+
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
116
|
+
"eslint": "9.39.4",
|
|
117
117
|
"eslint-config-prettier": "10.1.8",
|
|
118
118
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
119
119
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
120
120
|
"eslint-plugin-perfectionist": "4.15.1",
|
|
121
|
-
"eslint-plugin-prettier": "5.5.
|
|
121
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
122
122
|
"eslint-plugin-react": "7.37.5",
|
|
123
123
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
124
|
-
"eslint-plugin-react-refresh": "0.4.
|
|
125
|
-
"eslint-plugin-storybook": "10.
|
|
124
|
+
"eslint-plugin-react-refresh": "0.4.26",
|
|
125
|
+
"eslint-plugin-storybook": "10.3.3",
|
|
126
126
|
"eslint-plugin-unicorn": "62.0.0",
|
|
127
127
|
"globals": "16.5.0",
|
|
128
128
|
"husky": "9.1.7",
|
|
129
|
-
"jsdom": "27.
|
|
130
|
-
"lint-staged": "16.
|
|
131
|
-
"plop": "4.0.
|
|
132
|
-
"prettier": "3.
|
|
129
|
+
"jsdom": "27.4.0",
|
|
130
|
+
"lint-staged": "16.4.0",
|
|
131
|
+
"plop": "4.0.5",
|
|
132
|
+
"prettier": "3.8.1",
|
|
133
133
|
"react": "18.3.1",
|
|
134
134
|
"react-dom": "18.3.1",
|
|
135
135
|
"resize-observer-polyfill": "1.5.1",
|
|
136
|
-
"sass": "1.
|
|
136
|
+
"sass": "1.98.0",
|
|
137
137
|
"semantic-release": "24.2.9",
|
|
138
|
-
"
|
|
138
|
+
"servor": "4.0.2",
|
|
139
|
+
"storybook": "10.3.3",
|
|
139
140
|
"tsx": "4.21.0",
|
|
140
141
|
"typescript": "5.9.3",
|
|
141
|
-
"typescript-eslint": "8.
|
|
142
|
-
"vite": "7.
|
|
142
|
+
"typescript-eslint": "8.58.0",
|
|
143
|
+
"vite": "7.3.1",
|
|
143
144
|
"vite-plugin-dts": "4.5.4",
|
|
144
145
|
"vite-plugin-svgr": "4.5.0",
|
|
145
|
-
"vitest": "4.
|
|
146
|
+
"vitest": "4.1.2"
|
|
146
147
|
},
|
|
147
148
|
"browserslist": [
|
|
148
149
|
"> 0.25%",
|