@synerise/ds-core 1.7.1 → 1.8.1
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/CHANGELOG.md +19 -0
- package/dist/i18n/en.json +4 -0
- package/dist/i18n/index.d.ts +8 -0
- package/dist/js/DropdownContext/DropdownContext/DropdownContextProvider.d.ts +5 -0
- package/dist/js/DropdownContext/DropdownContext/DropdownContextProvider.js +11 -0
- package/dist/js/DropdownContext/DropdownContext.d.ts +7 -0
- package/dist/js/DropdownContext/DropdownContext.js +2 -0
- package/dist/js/DropdownContext/DropdownContextProvider.d.ts +5 -0
- package/dist/js/DropdownContext/DropdownContextProvider.js +11 -0
- package/dist/js/DropdownContext/index.d.ts +3 -0
- package/dist/js/DropdownContext/index.js +3 -0
- package/dist/js/DropdownContext/useDropdown.d.ts +1 -0
- package/dist/js/DropdownContext/useDropdown.js +5 -0
- package/dist/js/index.d.ts +1 -0
- package/dist/js/index.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.8.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-core@1.8.0...@synerise/ds-core@1.8.1) (2025-11-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [1.8.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-core@1.7.1...@synerise/ds-core@1.8.0) (2025-11-06)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **dropdown:** dropdownMenu component ([f0ec827](https://github.com/synerise/synerise-design/commit/f0ec82792cdcb021fa9a454912f6e7a892e53895))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [1.7.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-core@1.7.0...@synerise/ds-core@1.7.1) (2025-10-22)
|
|
7
26
|
|
|
8
27
|
|
package/dist/i18n/en.json
CHANGED
package/dist/i18n/index.d.ts
CHANGED
|
@@ -458,6 +458,10 @@ declare const _default: {
|
|
|
458
458
|
RECENT: string;
|
|
459
459
|
ALL: string;
|
|
460
460
|
};
|
|
461
|
+
"COPY-ICON": {
|
|
462
|
+
COPIED: string;
|
|
463
|
+
"COPY-VALUE": string;
|
|
464
|
+
};
|
|
461
465
|
DESCRIPTION: {
|
|
462
466
|
"COPY-VALUE": string;
|
|
463
467
|
COPIED: string;
|
|
@@ -1922,6 +1926,10 @@ declare const _default: {
|
|
|
1922
1926
|
RECENT: string;
|
|
1923
1927
|
ALL: string;
|
|
1924
1928
|
};
|
|
1929
|
+
"COPY-ICON": {
|
|
1930
|
+
COPIED: string;
|
|
1931
|
+
"COPY-VALUE": string;
|
|
1932
|
+
};
|
|
1925
1933
|
DESCRIPTION: {
|
|
1926
1934
|
"COPY-VALUE": string;
|
|
1927
1935
|
COPIED: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var _excluded = ["children"];
|
|
2
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { DropdownContext } from '../DropdownContext';
|
|
5
|
+
export var DropdownContextProvider = function DropdownContextProvider(_ref) {
|
|
6
|
+
var children = _ref.children,
|
|
7
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
8
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
9
|
+
value: rest
|
|
10
|
+
}, children);
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type DropdownContextProps = {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
activeIndex: number | null;
|
|
4
|
+
setIsOpen: (newOpen: boolean) => void;
|
|
5
|
+
hideOnItemClick?: string | boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const DropdownContext: import("react").Context<DropdownContextProps | undefined>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var _excluded = ["children"];
|
|
2
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { DropdownContext } from './DropdownContext';
|
|
5
|
+
export var DropdownContextProvider = function DropdownContextProvider(_ref) {
|
|
6
|
+
var children = _ref.children,
|
|
7
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
8
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
9
|
+
value: rest
|
|
10
|
+
}, children);
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDropdown: () => import("./DropdownContext").DropdownContextProps | undefined;
|
package/dist/js/index.d.ts
CHANGED
package/dist/js/index.js
CHANGED
|
@@ -3,4 +3,5 @@ export { default as mediaQuery } from './mediaQuery/mediaQuery';
|
|
|
3
3
|
export { theme, useTheme, defaultColorsOrder, themeVariables } from './DSProvider/ThemeProvider/theme';
|
|
4
4
|
export * from './data-format';
|
|
5
5
|
export * from './testing';
|
|
6
|
-
export * from './toaster';
|
|
6
|
+
export * from './toaster';
|
|
7
|
+
export * from './DropdownContext';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Core Components for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"hex-rgb": "^5.0.0",
|
|
58
58
|
"less-vars-to-js": "^1.3.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "d5bd7fbc9d840ac30e2b79b36c451b486e178445"
|
|
61
61
|
}
|