@semcore/notice 17.2.1-prerelease.0 → 17.2.2-prerelease.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/lib/cjs/Notice.js +47 -38
  3. package/lib/cjs/Notice.js.map +1 -1
  4. package/lib/cjs/Notice.type.js +2 -0
  5. package/lib/cjs/Notice.type.js.map +1 -0
  6. package/lib/cjs/NoticeSmart.js.map +1 -1
  7. package/lib/cjs/NoticeSmart.type.js +2 -0
  8. package/lib/cjs/NoticeSmart.type.js.map +1 -0
  9. package/lib/cjs/index.js +27 -0
  10. package/lib/cjs/index.js.map +1 -1
  11. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  12. package/lib/es6/Notice.js +47 -38
  13. package/lib/es6/Notice.js.map +1 -1
  14. package/lib/es6/Notice.type.js +2 -0
  15. package/lib/es6/Notice.type.js.map +1 -0
  16. package/lib/es6/NoticeSmart.js.map +1 -1
  17. package/lib/es6/NoticeSmart.type.js +2 -0
  18. package/lib/es6/NoticeSmart.type.js.map +1 -0
  19. package/lib/es6/index.js +2 -0
  20. package/lib/es6/index.js.map +1 -1
  21. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  22. package/lib/esm/Notice.mjs +48 -39
  23. package/lib/esm/Notice.type.mjs +1 -0
  24. package/lib/esm/NoticeSmart.type.mjs +1 -0
  25. package/lib/esm/index.mjs +2 -0
  26. package/lib/types/Notice.d.ts +8 -0
  27. package/lib/types/Notice.type.d.ts +69 -0
  28. package/lib/types/NoticeSmart.d.ts +8 -0
  29. package/lib/types/NoticeSmart.type.d.ts +35 -0
  30. package/lib/types/index.d.ts +4 -77
  31. package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +73 -0
  32. package/package.json +9 -9
  33. package/vite.config.ts +1 -1
  34. package/vitest.config.mts +0 -1
  35. package/lib/cjs/index.d.js +0 -2
  36. package/lib/cjs/index.d.js.map +0 -1
  37. package/lib/es6/index.d.js +0 -2
  38. package/lib/es6/index.d.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/notice",
3
3
  "description": "Semrush Notice Component",
4
- "version": "17.2.1-prerelease.0",
4
+ "version": "17.2.2-prerelease.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,12 +14,12 @@
14
14
  "require": "./lib/cjs/index.js"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/button": "^17.2.1-prerelease.0",
18
- "@semcore/typography": "^17.2.1-prerelease.0"
17
+ "@semcore/button": "^17.2.1",
18
+ "@semcore/typography": "^17.2.1"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "@semcore/base-components": "^17.2.1",
22
- "@semcore/icon": "^17.2.1"
22
+ "@semcore/icon": "^17.2.0"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -27,12 +27,12 @@
27
27
  "directory": "semcore/notice"
28
28
  },
29
29
  "devDependencies": {
30
- "@semcore/core": "17.2.1-prerelease.0",
31
- "@semcore/base-components": "17.2.1-prerelease.0",
32
- "@semcore/testing-utils": "1.0.0",
33
- "@semcore/icon": "17.2.1-prerelease.0"
30
+ "@semcore/core": "17.2.1",
31
+ "@semcore/base-components": "17.2.1",
32
+ "@semcore/icon": "17.2.0",
33
+ "@semcore/testing-utils": "1.0.0"
34
34
  },
35
35
  "scripts": {
36
- "build": "pnpm semcore-builder --source=js && pnpm vite build"
36
+ "build": "pnpm semcore-builder && pnpm vite build"
37
37
  }
38
38
  }
package/vite.config.ts CHANGED
@@ -7,7 +7,7 @@ export default mergeConfig(
7
7
  defineConfig({
8
8
  build: {
9
9
  lib: {
10
- entry: './src/index.js',
10
+ entry: './src/index.ts',
11
11
  },
12
12
  rollupOptions: {
13
13
  external: ['react', 'react-dom', 'react/jsx-runtime', /@babel\/runtime\/*/, /@semcore\/*/],
package/vitest.config.mts CHANGED
@@ -10,7 +10,6 @@ export default defineConfig({
10
10
  test: {
11
11
  include: [
12
12
  '__tests__/**/*.test.tsx',
13
- '__tests__/**/*.test.jsx',
14
13
  ],
15
14
  environment: 'jsdom',
16
15
  setupFiles: [resolvePath(__dirname, '../../tools/testing-utils/setupTests')],
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { FadeInOutProps, Box, BoxProps } from '@semcore/base-components';\nimport type Button from '@semcore/button';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { Text } from '@semcore/typography';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\n\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n };\n\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\nexport type NoticeContext = {\n getLabelProps?: PropGetterFn;\n};\n\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n\n /**\n * A custom element for title\n */\n title?: React.ReactNode;\n\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n\n /** A custom element for text */\n text?: React.ReactNode;\n /**\n * Adds a Close button\n */\n closable?: boolean;\n /**\n * Callback on a click on the close button\n */\n onClose?: (event: React.SyntheticEvent) => void;\n};\n\ndeclare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext> & {\n Label: Intergalactic.Component<'div', NoticeLabelProps>;\n Actions: typeof Box;\n Content: typeof Box;\n Title: typeof Text;\n Text: typeof Text;\n Close: typeof Button;\n};\n\ndeclare const NoticeSmart: (\n props: Intergalactic.InternalTypings.EfficientOmit<\n Intergalactic.InternalTypings.ComponentProps<'div', 'div', NoticeSmartProps>,\n 'children'\n >\n) => Intergalactic.InternalTypings.ComponentRenderingResults & Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', NoticeSmartProps>;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":"","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { FadeInOutProps, Box, BoxProps } from '@semcore/base-components';\nimport type Button from '@semcore/button';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { Text } from '@semcore/typography';\n\nexport type NoticeTheme = 'danger' | 'warning' | 'success' | 'info' | 'muted';\n\nexport type NoticeProps = BoxProps &\n FadeInOutProps & {\n /** Property for managing visibility of Notice */\n hidden?: boolean;\n /**\n * Notice theme\n * @default info\n */\n theme?: NoticeTheme;\n /** Duration of animation, ms\n * @default 250\n */\n duration?: number;\n /** Specifies the locale for i18n support */\n locale?: string;\n };\n\nexport type NoticeLabelProps = BoxProps & {\n theme?: NoticeTheme;\n};\n\nexport type NoticeContext = {\n getLabelProps?: PropGetterFn;\n};\n\nexport type NoticeSmartProps = NoticeProps & {\n /**\n * A custom element for additional information\n */\n label?: React.ReactNode;\n\n /**\n * A custom element for title\n */\n title?: React.ReactNode;\n\n /**\n * Custom action element\n */\n actions?: React.ReactNode;\n\n /** A custom element for text */\n text?: React.ReactNode;\n /**\n * Adds a Close button\n */\n closable?: boolean;\n /**\n * Callback on a click on the close button\n */\n onClose?: (event: React.SyntheticEvent) => void;\n};\n\ndeclare const Notice: Intergalactic.Component<'div', NoticeProps, NoticeContext> & {\n Label: Intergalactic.Component<'div', NoticeLabelProps>;\n Actions: typeof Box;\n Content: typeof Box;\n Title: typeof Text;\n Text: typeof Text;\n Close: typeof Button;\n};\n\ndeclare const NoticeSmart: (\n props: Intergalactic.InternalTypings.EfficientOmit<\n Intergalactic.InternalTypings.ComponentProps<'div', 'div', NoticeSmartProps>,\n 'children'\n >\n) => Intergalactic.InternalTypings.ComponentRenderingResults & Intergalactic.InternalTypings.ComponentAdditive<'div', 'div', NoticeSmartProps>;\n\nexport { NoticeSmart };\nexport default Notice;\n"],"mappings":"","ignoreList":[]}