Skip to content

Commit 95a0217

Browse files
authored
Merge pull request #1065 from strapi/release/1.7.7
2 parents 953be74 + 71489e8 commit 95a0217

File tree

103 files changed

+1050
-1319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+1050
-1319
lines changed

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": ["packages/*", "docs"],
3-
"version": "1.7.6",
3+
"version": "1.7.7",
44
"npmClient": "yarn",
55
"useWorkspaces": true
66
}

packages/primitives/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@strapi/ui-primitives",
3-
"version": "1.7.6",
3+
"version": "1.7.7",
44
"license": "MIT",
55
"type": "module",
66
"sideEffects": false,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { composeEventHandlers } from '@radix-ui/primitive';

packages/primitives/src/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
export * from './components/Combobox';
55
export * from './components/Select';
66

7+
/* -------------------------------------------------------------------------------------------------
8+
* Helpers
9+
* -----------------------------------------------------------------------------------------------*/
10+
export * from './helpers/events';
11+
712
/* -------------------------------------------------------------------------------------------------
813
* Hooks
914
* -----------------------------------------------------------------------------------------------*/

packages/strapi-design-system/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@strapi/design-system",
3-
"version": "1.7.6",
3+
"version": "1.7.7",
44
"license": "MIT",
55
"type": "module",
66
"sideEffects": false,
@@ -24,7 +24,7 @@
2424
"@radix-ui/react-dismissable-layer": "^1.0.3",
2525
"@radix-ui/react-dropdown-menu": "^2.0.4",
2626
"@radix-ui/react-focus-scope": "1.0.2",
27-
"@strapi/ui-primitives": "^1.7.6",
27+
"@strapi/ui-primitives": "^1.7.7",
2828
"@uiw/react-codemirror": "^4.19.16",
2929
"aria-hidden": "^1.2.3",
3030
"compute-scroll-into-view": "^3.0.3",
@@ -33,7 +33,7 @@
3333
},
3434
"devDependencies": {
3535
"@playwright/test": "1.33.0",
36-
"@strapi/icons": "^1.7.6",
36+
"@strapi/icons": "^1.7.7",
3737
"@types/react-router-dom": "^5.3.3",
3838
"@types/styled-components": "^5.1.26",
3939
"axe-playwright": "^1.2.3",

packages/strapi-design-system/src/BaseButton/BaseButton.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ButtonHTMLAttributes } from 'react';
1+
import * as React from 'react';
22

33
import styled from 'styled-components';
44

@@ -23,10 +23,7 @@ export const BaseButtonWrapper = styled(Flex)`
2323
${buttonFocusStyle}
2424
`;
2525

26-
export interface BaseButtonProps<TElement extends HTMLElement = HTMLButtonElement> extends FlexProps<TElement> {
27-
disabled?: boolean;
28-
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
29-
}
26+
export type BaseButtonProps<TElement extends keyof JSX.IntrinsicElements = 'button'> = FlexProps<TElement>;
3027

3128
export const BaseButton = React.forwardRef<HTMLButtonElement, BaseButtonProps>(
3229
({ disabled, children, background = 'neutral0', ...props }, ref) => {

packages/strapi-design-system/src/BaseLink/BaseLink.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ import React from 'react';
22

33
import { Box, BoxProps } from '../Box';
44

5-
export interface BaseLinkProps extends BoxProps<HTMLAnchorElement> {
5+
export type BaseLinkProps = BoxProps<'a'> & {
66
disabled?: boolean;
7-
href?: string;
87
isExternal?: boolean;
9-
rel?: string;
10-
target?: string;
11-
}
8+
};
129

1310
export const BaseLink = React.forwardRef<HTMLAnchorElement, BaseLinkProps>(
1411
({ href, rel = 'noreferrer noopener', target = '_self', disabled = false, isExternal = false, ...props }, ref) => {

packages/strapi-design-system/src/Box/Box.tsx

+16-16
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ type DefaultThemeOrCSSProp<T extends keyof DefaultTheme, K extends keyof CSSProp
1111
| keyof DefaultTheme[T]
1212
| CSSProperties[K];
1313

14-
export type BoxProps<TElement extends HTMLElement = HTMLDivElement> = Pick<
15-
CSSProperties,
16-
| 'pointerEvents'
17-
| 'display'
18-
| 'position'
19-
| 'zIndex'
20-
| 'overflow'
21-
| 'cursor'
22-
| 'transition'
23-
| 'transform'
24-
| 'animation'
25-
| 'textAlign'
26-
| 'textTransform'
27-
| 'lineHeight'
28-
> &
29-
React.HTMLAttributes<TElement> & {
14+
export type BoxProps<TElement extends keyof JSX.IntrinsicElements = 'div'> = React.ComponentPropsWithoutRef<TElement> &
15+
Pick<
16+
CSSProperties,
17+
| 'pointerEvents'
18+
| 'display'
19+
| 'position'
20+
| 'zIndex'
21+
| 'overflow'
22+
| 'cursor'
23+
| 'transition'
24+
| 'transform'
25+
| 'animation'
26+
| 'textAlign'
27+
| 'textTransform'
28+
| 'lineHeight'
29+
> & {
3030
/**
3131
* JavaScript hover handler
3232
*/

packages/strapi-design-system/src/CarouselInput/Carousel.js

-139
This file was deleted.

0 commit comments

Comments
 (0)