@synerise/ds-core 1.1.0 → 1.3.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/CHANGELOG.md +23 -0
- package/README.md +8 -7
- package/dist/i18n/en.json +8 -1
- package/dist/i18n/pl.json +8 -2
- package/dist/js/DSProvider/DSProvider.d.ts +5 -2
- package/dist/js/DSProvider/DSProvider.js +7 -2
- package/dist/js/DSProvider/LocaleProvider/LocaleProvider.d.ts +1 -1
- package/dist/js/DSProvider/ThemeProvider/variables.js +2 -2
- package/dist/js/index.d.ts +1 -0
- package/dist/style/config.less +2 -2
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
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.3.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-core@1.2.0...@synerise/ds-core@1.3.0) (2025-05-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **collector:** make texts prop optional ([6d59694](https://github.com/synerise/synerise-design/commit/6d59694a427102714ebcd9579fe086d72066d9af))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.2.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-core@1.1.0...@synerise/ds-core@1.2.0) (2025-05-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **button:** add ButtonToggle component ([1e86e54](https://github.com/synerise/synerise-design/commit/1e86e54273e2204bcbbbbe302ff0c2e2a326e94f))
|
|
23
|
+
* **toast:** toast component ([0cb20d0](https://github.com/synerise/synerise-design/commit/0cb20d07b48d1c768a0ddf133b1970a4a13444ca))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
# [1.1.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-core@1.0.1...@synerise/ds-core@1.1.0) (2025-04-16)
|
|
7
30
|
|
|
8
31
|
|
package/README.md
CHANGED
|
@@ -18,10 +18,11 @@ Bunch of components to bootstrap application.
|
|
|
18
18
|
|
|
19
19
|
## API
|
|
20
20
|
|
|
21
|
-
| Property | Description
|
|
22
|
-
|
|
23
|
-
| locale | Current lang (ex. en-US)
|
|
24
|
-
| timeZone | Current timezone (ex. Europe/Warsaw)
|
|
25
|
-
| messages | Object with translations
|
|
26
|
-
| defaultMessages | Object with fallback translations
|
|
27
|
-
| dataFormatConfig | Object with data (dates/numbers) notations
|
|
21
|
+
| Property | Description | Type | Default |
|
|
22
|
+
|------------------|--------------------------------------------------------------------------|------------------|-------------|
|
|
23
|
+
| locale | Current lang (ex. en-US) | string | en |
|
|
24
|
+
| timeZone | Current timezone (ex. Europe/Warsaw) | string | |
|
|
25
|
+
| messages | Object with translations | object | |
|
|
26
|
+
| defaultMessages | Object with fallback translations | object | |
|
|
27
|
+
| dataFormatConfig | Object with data (dates/numbers) notations | DataFormatConfig | EU notation |
|
|
28
|
+
| includeToaster | Opt out of rendering a Toaster component for rendering toasts (messages) | boolean | true |
|
package/dist/i18n/en.json
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
"BULK_SELECTION_ENABLE": "Bulk actions",
|
|
5
5
|
"BULK_SELECTION_DISABLE": "Hide actions"
|
|
6
6
|
},
|
|
7
|
+
"COLLECTOR": {
|
|
8
|
+
"ADD": "Add",
|
|
9
|
+
"CANCEL": "Cancel",
|
|
10
|
+
"PLACEHOLDER": "Type value",
|
|
11
|
+
"TO-NAVIGATE": "to navigate",
|
|
12
|
+
"TO-SELECT": "to select"
|
|
13
|
+
},
|
|
7
14
|
"MENU": {
|
|
8
15
|
"SHOW-LESS": "Show less",
|
|
9
16
|
"SHOW-MORE": "Show more"
|
|
@@ -426,4 +433,4 @@
|
|
|
426
433
|
"CHOOSE-CONDITION": "Choose type of condition below"
|
|
427
434
|
}
|
|
428
435
|
}
|
|
429
|
-
}
|
|
436
|
+
}
|
package/dist/i18n/pl.json
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"RECENT": "Ostatnie",
|
|
13
13
|
"ALL": "Wszystkie"
|
|
14
14
|
},
|
|
15
|
-
|
|
16
15
|
"MANAGABLE-LIST": {
|
|
17
16
|
"LESS": "mniej",
|
|
18
17
|
"MORE": "więcej",
|
|
@@ -138,6 +137,13 @@
|
|
|
138
137
|
"SEARCH": "Szukaj",
|
|
139
138
|
"NO-RESULTS": "Brak wyników"
|
|
140
139
|
},
|
|
140
|
+
"COLLECTOR": {
|
|
141
|
+
"ADD": "Dodaj",
|
|
142
|
+
"CANCEL": "Anuluj",
|
|
143
|
+
"PLACEHOLDER": "Wpisz wartość",
|
|
144
|
+
"TO-NAVIGATE": "nawiguj",
|
|
145
|
+
"TO-SELECT": "wybierz"
|
|
146
|
+
},
|
|
141
147
|
"COLUMN-MANAGER": {
|
|
142
148
|
"GROUP_TITLE": "Ustawienia dla grupowania wyników w tabeli",
|
|
143
149
|
"SELECT_PLACEHOLDER": "Wybierz",
|
|
@@ -383,4 +389,4 @@
|
|
|
383
389
|
"CHOOSE-CONDITION": "Wybierz rodzaj warunku"
|
|
384
390
|
}
|
|
385
391
|
}
|
|
386
|
-
}
|
|
392
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { DataFormatConfigProviderProps } from '@synerise/ds-data-format';
|
|
3
|
+
import { ToasterProps } from '@synerise/ds-toaster';
|
|
3
4
|
import '../style';
|
|
4
5
|
import { LocaleProviderProps } from './LocaleProvider/LocaleProvider';
|
|
5
6
|
import { ThemeProviderProps } from './ThemeProvider/ThemeProvider';
|
|
6
|
-
export type DSProviderProps = PropsWithChildren<LocaleProviderProps & ThemeProviderProps & DataFormatConfigProviderProps
|
|
7
|
-
|
|
7
|
+
export type DSProviderProps = PropsWithChildren<LocaleProviderProps & ThemeProviderProps & DataFormatConfigProviderProps & {
|
|
8
|
+
toasterProps?: false | Partial<ToasterProps>;
|
|
9
|
+
}>;
|
|
10
|
+
declare const DSProvider: ({ locale, defaultLocale, messages, timeZone, children, theme, dataFormatConfig, onErrorIntl, onDSLocalesLoaded, toasterProps, }: DSProviderProps) => React.JSX.Element;
|
|
8
11
|
export default DSProvider;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DataFormatConfigProvider } from '@synerise/ds-data-format';
|
|
3
|
+
import Toaster, { ToasterProvider, TOASTER_DEFAULTS } from '@synerise/ds-toaster';
|
|
3
4
|
import '../style';
|
|
4
5
|
import LocaleProvider from './LocaleProvider';
|
|
5
6
|
import ThemeProvider from './ThemeProvider';
|
|
@@ -12,7 +13,9 @@ var DSProvider = function DSProvider(_ref) {
|
|
|
12
13
|
theme = _ref.theme,
|
|
13
14
|
dataFormatConfig = _ref.dataFormatConfig,
|
|
14
15
|
onErrorIntl = _ref.onErrorIntl,
|
|
15
|
-
onDSLocalesLoaded = _ref.onDSLocalesLoaded
|
|
16
|
+
onDSLocalesLoaded = _ref.onDSLocalesLoaded,
|
|
17
|
+
_ref$toasterProps = _ref.toasterProps,
|
|
18
|
+
toasterProps = _ref$toasterProps === void 0 ? false : _ref$toasterProps;
|
|
16
19
|
return /*#__PURE__*/React.createElement(LocaleProvider, {
|
|
17
20
|
locale: locale,
|
|
18
21
|
messages: messages,
|
|
@@ -24,6 +27,8 @@ var DSProvider = function DSProvider(_ref) {
|
|
|
24
27
|
theme: theme
|
|
25
28
|
}, /*#__PURE__*/React.createElement(DataFormatConfigProvider, {
|
|
26
29
|
dataFormatConfig: dataFormatConfig
|
|
27
|
-
},
|
|
30
|
+
}, /*#__PURE__*/React.createElement(ToasterProvider, {
|
|
31
|
+
toasterProps: toasterProps || TOASTER_DEFAULTS
|
|
32
|
+
}, children, toasterProps !== false && /*#__PURE__*/React.createElement(Toaster, null)))));
|
|
28
33
|
};
|
|
29
34
|
export default DSProvider;
|
|
@@ -307,7 +307,7 @@ const variables = {
|
|
|
307
307
|
"btn-primary-focus-bg": "#0044d9",
|
|
308
308
|
"btn-primary-active-bg": "#0044d9",
|
|
309
309
|
"btn-primary-shadow": "rgba(35, 138, 254, 0.2)",
|
|
310
|
-
"btn-default-color": "#
|
|
310
|
+
"btn-default-color": "#6a7580",
|
|
311
311
|
"btn-default-bg": "#f9fafb",
|
|
312
312
|
"btn-default-border": "#dbe0e3",
|
|
313
313
|
"btn-default-focus-bg": "#f9fafb",
|
|
@@ -327,7 +327,7 @@ const variables = {
|
|
|
327
327
|
"btn-tertiary-white-focus-bg": "rgba(219, 224, 227, 0.15)",
|
|
328
328
|
"btn-tertiary-white-active-bg": "rgba(219, 224, 227, 0.1)",
|
|
329
329
|
"btn-tertiary-white-border": "transparent",
|
|
330
|
-
"btn-ghost-color": "#
|
|
330
|
+
"btn-ghost-color": "#6a7580",
|
|
331
331
|
"btn-ghost-bg": "transparent",
|
|
332
332
|
"btn-ghost-hover-bg": "rgba(181, 189, 195, 0.25)",
|
|
333
333
|
"btn-ghost-focus-bg": "transparent",
|
package/dist/js/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { default as DSProvider } from './DSProvider';
|
|
|
2
2
|
export { default as mediaQuery } from './mediaQuery/mediaQuery';
|
|
3
3
|
export { theme, useTheme, defaultColorsOrder } from './DSProvider/ThemeProvider/theme';
|
|
4
4
|
export type { ThemePropsVars, ThemeProps, WithTheme, DefaultColor } from './DSProvider/ThemeProvider/theme';
|
|
5
|
+
export type { DSProviderProps } from './DSProvider';
|
package/dist/style/config.less
CHANGED
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
@btn-primary-active-bg: @primary-color-darker-1;
|
|
226
226
|
@btn-primary-shadow: rgba(35, 138, 254, 0.2);
|
|
227
227
|
|
|
228
|
-
@btn-default-color: @gray-color-lighter-
|
|
228
|
+
@btn-default-color: @gray-color-lighter-2;
|
|
229
229
|
@btn-default-bg: @gray-color-lighter-8;
|
|
230
230
|
@btn-default-border: @gray-color-lighter-5;
|
|
231
231
|
@btn-default-focus-bg: @gray-color-lighter-8;
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
@btn-tertiary-white-active-bg: rgba(@gray-color-lighter-5, 0.1);
|
|
249
249
|
@btn-tertiary-white-border: transparent;
|
|
250
250
|
|
|
251
|
-
@btn-ghost-color: @gray-color-lighter-
|
|
251
|
+
@btn-ghost-color: @gray-color-lighter-2;
|
|
252
252
|
@btn-ghost-bg: transparent;
|
|
253
253
|
@btn-ghost-hover-bg: @gray-color-opacity-2;
|
|
254
254
|
@btn-ghost-focus-bg: transparent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Core Components for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"types": "dist/js/index.js",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@synerise/ds-data-format": "^1.0.0",
|
|
36
|
+
"@synerise/ds-toaster": "^1.1.0",
|
|
36
37
|
"deepmerge": "^4.2.2",
|
|
37
|
-
"flat": "^5.0.2"
|
|
38
|
-
"intl-messageformat-parser": "^3.6.4"
|
|
38
|
+
"flat": "^5.0.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"antd": "4.24.16",
|
|
@@ -44,8 +44,10 @@
|
|
|
44
44
|
"styled-components": "^5.3.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
+
"@formatjs/icu-messageformat-parser": "^2.11.1",
|
|
48
|
+
"@formatjs/intl": "^2.10.14",
|
|
47
49
|
"hex-rgb": "^5.0.0",
|
|
48
50
|
"less-vars-to-js": "^1.3.0"
|
|
49
51
|
},
|
|
50
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8aa16b27c86c97e3ac774d92561ab0a03176c439"
|
|
51
53
|
}
|