@strapi/design-system 1.16.0-typescript.0 → 1.17.0-typescript.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/index.d.ts CHANGED
@@ -64,3 +64,6 @@ export * from './Tooltip';
64
64
  export * from './Typography';
65
65
  export * from './VisuallyHidden';
66
66
  export * from './themes';
67
+ export * from './hooks/useComposeRefs';
68
+ export * from './hooks/useDateFormatter';
69
+ export { useFilter, useCollator, type Filter, useCallbackRef, composeEventHandlers } from '@strapi/ui-primitives';
package/dist/index.js CHANGED
@@ -4,6 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  const DesignSystemProvider = require('./DesignSystemProvider.js');
6
6
  const index = require('./DismissibleLayer/index.js');
7
+ const useComposeRefs = require('./hooks/useComposeRefs.js');
8
+ const useDateFormatter = require('./hooks/useDateFormatter.js');
9
+ const uiPrimitives = require('@strapi/ui-primitives');
7
10
  const BaseRadio = require('./BaseRadio/BaseRadio.js');
8
11
  const Accordion = require('./Accordion/Accordion.js');
9
12
  const AccordionContent = require('./Accordion/AccordionContent.js');
@@ -148,6 +151,25 @@ const utils = require('./themes/utils.js');
148
151
  exports.DesignSystemProvider = DesignSystemProvider.DesignSystemProvider;
149
152
  exports.useDesignSystem = DesignSystemProvider.useDesignSystem;
150
153
  exports.DismissibleLayer = index.DismissibleLayer;
154
+ exports.composeRefs = useComposeRefs.composeRefs;
155
+ exports.useComposedRefs = useComposeRefs.useComposedRefs;
156
+ exports.useDateFormatter = useDateFormatter.useDateFormatter;
157
+ Object.defineProperty(exports, 'composeEventHandlers', {
158
+ enumerable: true,
159
+ get: () => uiPrimitives.composeEventHandlers
160
+ });
161
+ Object.defineProperty(exports, 'useCallbackRef', {
162
+ enumerable: true,
163
+ get: () => uiPrimitives.useCallbackRef
164
+ });
165
+ Object.defineProperty(exports, 'useCollator', {
166
+ enumerable: true,
167
+ get: () => uiPrimitives.useCollator
168
+ });
169
+ Object.defineProperty(exports, 'useFilter', {
170
+ enumerable: true,
171
+ get: () => uiPrimitives.useFilter
172
+ });
151
173
  exports.BaseRadio = BaseRadio.BaseRadio;
152
174
  exports.Accordion = Accordion.Accordion;
153
175
  exports.AccordionTypography = Accordion.AccordionTypography;
package/dist/index.mjs CHANGED
@@ -1,5 +1,8 @@
1
1
  export { DesignSystemProvider, useDesignSystem } from './DesignSystemProvider.mjs';
2
2
  export { DismissibleLayer } from './DismissibleLayer/index.mjs';
3
+ export { composeRefs, useComposedRefs } from './hooks/useComposeRefs.mjs';
4
+ export { useDateFormatter } from './hooks/useDateFormatter.mjs';
5
+ export { composeEventHandlers, useCallbackRef, useCollator, useFilter } from '@strapi/ui-primitives';
3
6
  export { BaseRadio } from './BaseRadio/BaseRadio.mjs';
4
7
  export { Accordion, AccordionTypography } from './Accordion/Accordion.mjs';
5
8
  export { AccordionContent } from './Accordion/AccordionContent.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/design-system",
3
- "version": "1.16.0-typescript.0",
3
+ "version": "1.17.0-typescript.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "@radix-ui/react-dismissable-layer": "^1.0.5",
34
34
  "@radix-ui/react-dropdown-menu": "^2.0.6",
35
35
  "@radix-ui/react-focus-scope": "1.0.4",
36
- "@strapi/ui-primitives": "1.16.0-typescript.0",
36
+ "@strapi/ui-primitives": "1.17.0-typescript.0",
37
37
  "@uiw/react-codemirror": "^4.21.24",
38
38
  "aria-hidden": "^1.2.3",
39
39
  "compute-scroll-into-view": "^3.1.0",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@playwright/test": "1.41.2",
45
- "@strapi/icons": "1.16.0-typescript.0",
45
+ "@strapi/icons": "1.17.0-typescript.0",
46
46
  "@types/react-router-dom": "^5.3.3",
47
47
  "@types/styled-components": "^5.1.26",
48
48
  "axe-playwright": "^2.0.1",
@@ -51,7 +51,7 @@
51
51
  "styled-components": "^5.3.11"
52
52
  },
53
53
  "peerDependencies": {
54
- "@strapi/icons": "1.16.0-typescript.0",
54
+ "@strapi/icons": "1.17.0-typescript.0",
55
55
  "react": "^17.0.0 || ^18.0.0",
56
56
  "react-dom": "^17.0.0 || ^18.0.0",
57
57
  "react-router-dom": "^5.2.0",