@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 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
@@ -28,6 +28,10 @@
28
28
  "RECENT": "Recent",
29
29
  "ALL": "All"
30
30
  },
31
+ "COPY-ICON": {
32
+ "COPIED": "Copied!",
33
+ "COPY-VALUE": "Copy"
34
+ },
31
35
  "DESCRIPTION": {
32
36
  "COPY-VALUE": "Copy value",
33
37
  "COPIED": "Copied"
@@ -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,5 @@
1
+ import React, { type ReactNode } from 'react';
2
+ import { type DropdownContextProps } from '../DropdownContext';
3
+ export declare const DropdownContextProvider: ({ children, ...rest }: DropdownContextProps & {
4
+ children?: ReactNode;
5
+ }) => React.JSX.Element;
@@ -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,2 @@
1
+ import { createContext } from 'react';
2
+ export var DropdownContext = /*#__PURE__*/createContext(undefined);
@@ -0,0 +1,5 @@
1
+ import React, { type ReactNode } from 'react';
2
+ import { type DropdownContextProps } from './DropdownContext';
3
+ export declare const DropdownContextProvider: ({ children, ...rest }: DropdownContextProps & {
4
+ children?: ReactNode;
5
+ }) => React.JSX.Element;
@@ -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,3 @@
1
+ export * from './DropdownContext';
2
+ export * from './DropdownContextProvider';
3
+ export * from './useDropdown';
@@ -0,0 +1,3 @@
1
+ export * from './DropdownContext';
2
+ export * from './DropdownContextProvider';
3
+ export * from './useDropdown';
@@ -0,0 +1 @@
1
+ export declare const useDropdown: () => import("./DropdownContext").DropdownContextProps | undefined;
@@ -0,0 +1,5 @@
1
+ import { useContext } from 'react';
2
+ import { DropdownContext } from './DropdownContext';
3
+ export var useDropdown = function useDropdown() {
4
+ return useContext(DropdownContext);
5
+ };
@@ -4,3 +4,4 @@ export { theme, useTheme, defaultColorsOrder, themeVariables, type ThemePropsVar
4
4
  export * from './data-format';
5
5
  export * from './testing';
6
6
  export * from './toaster';
7
+ export * from './DropdownContext';
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.7.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": "a40fca2cc78eda64afa96d18dc4d177538a22404"
60
+ "gitHead": "d5bd7fbc9d840ac30e2b79b36c451b486e178445"
61
61
  }