@dt-dds/react-accordion 1.0.0-beta.43 → 1.0.0-beta.45
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 +22 -0
- package/dist/index.d.mts +21 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @dt-ui/react-accordion
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.45
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- chore(dependencies): upgrade builders versions
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @dt-dds/react-core@1.0.0-beta.45
|
|
10
|
+
- @dt-dds/react-divider@1.0.0-beta.44
|
|
11
|
+
- @dt-dds/react-icon@1.0.0-beta.46
|
|
12
|
+
- @dt-dds/themes@1.0.0-beta.5
|
|
13
|
+
|
|
14
|
+
## 1.0.0-beta.44
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- refactor(themes): consolidate theme structure
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
- @dt-dds/react-core@1.0.0-beta.44
|
|
21
|
+
- @dt-dds/react-divider@1.0.0-beta.43
|
|
22
|
+
- @dt-dds/react-icon@1.0.0-beta.45
|
|
23
|
+
- @dt-dds/themes@1.0.0-beta.4
|
|
24
|
+
|
|
3
25
|
## 1.0.0-beta.43
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CustomTheme } from '@dt-dds/themes';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { BaseProps } from '@dt-dds/react-core';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
interface AccordionBaseProps extends BaseProps {
|
|
7
|
+
isOpen?: boolean;
|
|
8
|
+
headerContent: ReactNode;
|
|
9
|
+
hasBackground?: boolean;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
hasBorderBottom?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const Accordion: ({ isOpen, headerContent, hasBackground, hasBorderBottom, isDisabled, children, dataTestId, style, className, }: AccordionBaseProps) => react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
declare module '@emotion/react' {
|
|
17
|
+
interface Theme extends CustomTheme {
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { Accordion, type AccordionBaseProps };
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -28,11 +28,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
Accordion: () => Accordion
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
36
|
|
|
37
37
|
// src/Accordion.tsx
|
|
38
38
|
var import_react2 = require("react");
|
|
@@ -58,7 +58,7 @@ var AccordionStyled = import_styled.default.div`
|
|
|
58
58
|
` : `
|
|
59
59
|
&:hover {
|
|
60
60
|
background-color: ${theme.palette.surface.default};
|
|
61
|
-
box-shadow: ${theme.shadows.
|
|
61
|
+
box-shadow: ${theme.shadows.elevation_100};
|
|
62
62
|
}
|
|
63
63
|
`}
|
|
64
64
|
`}
|
|
@@ -76,8 +76,8 @@ var HeaderStyled = import_styled2.default.header`
|
|
|
76
76
|
display: flex;
|
|
77
77
|
align-items: center;
|
|
78
78
|
justify-content: space-between;
|
|
79
|
-
gap: ${theme.spacing
|
|
80
|
-
padding: ${theme.spacing
|
|
79
|
+
gap: ${theme.spacing.spacing_30};
|
|
80
|
+
padding: ${theme.spacing.spacing_50};
|
|
81
81
|
cursor: pointer;
|
|
82
82
|
user-select: none;
|
|
83
83
|
color: ${theme.palette.surface.dark};
|
|
@@ -135,7 +135,7 @@ var BodyStyled = import_styled3.default.div`
|
|
|
135
135
|
transition: grid-template-rows 0.3s ease-in-out, padding 0.3s ease-in-out;
|
|
136
136
|
color: ${theme.palette.content.dark};
|
|
137
137
|
|
|
138
|
-
padding: 0 ${theme.spacing
|
|
138
|
+
padding: 0 ${theme.spacing.spacing_50} ${isOpenState ? theme.spacing.spacing_50 : 0};
|
|
139
139
|
|
|
140
140
|
& > div {
|
|
141
141
|
width: 100%;
|
package/dist/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ var AccordionStyled = styled.div`
|
|
|
22
22
|
` : `
|
|
23
23
|
&:hover {
|
|
24
24
|
background-color: ${theme.palette.surface.default};
|
|
25
|
-
box-shadow: ${theme.shadows.
|
|
25
|
+
box-shadow: ${theme.shadows.elevation_100};
|
|
26
26
|
}
|
|
27
27
|
`}
|
|
28
28
|
`}
|
|
@@ -40,8 +40,8 @@ var HeaderStyled = styled2.header`
|
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: space-between;
|
|
43
|
-
gap: ${theme.spacing
|
|
44
|
-
padding: ${theme.spacing
|
|
43
|
+
gap: ${theme.spacing.spacing_30};
|
|
44
|
+
padding: ${theme.spacing.spacing_50};
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
user-select: none;
|
|
47
47
|
color: ${theme.palette.surface.dark};
|
|
@@ -99,7 +99,7 @@ var BodyStyled = styled3.div`
|
|
|
99
99
|
transition: grid-template-rows 0.3s ease-in-out, padding 0.3s ease-in-out;
|
|
100
100
|
color: ${theme.palette.content.dark};
|
|
101
101
|
|
|
102
|
-
padding: 0 ${theme.spacing
|
|
102
|
+
padding: 0 ${theme.spacing.spacing_50} ${isOpenState ? theme.spacing.spacing_50 : 0};
|
|
103
103
|
|
|
104
104
|
& > div {
|
|
105
105
|
width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-accordion",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.45",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"test:update:snapshot": "jest -u"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dt-dds/react-core": "1.0.0-beta.
|
|
24
|
-
"@dt-dds/react-divider": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/react-icon": "1.0.0-beta.
|
|
26
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
23
|
+
"@dt-dds/react-core": "1.0.0-beta.45",
|
|
24
|
+
"@dt-dds/react-divider": "1.0.0-beta.44",
|
|
25
|
+
"@dt-dds/react-icon": "1.0.0-beta.46",
|
|
26
|
+
"@dt-dds/themes": "1.0.0-beta.5"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/core": "^7.22.9",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react": "^18.1.0",
|
|
45
45
|
"react-dom": "^18.2.0",
|
|
46
46
|
"tsconfig": "*",
|
|
47
|
-
"tsup": "^
|
|
47
|
+
"tsup": "^8.5.0",
|
|
48
48
|
"typescript": "^4.5.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|