@tpzdsp/next-toolkit 1.2.2 → 1.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpzdsp/next-toolkit",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "A reusable React component library for Next.js applications",
5
5
  "type": "module",
6
6
  "private": false,
@@ -18,7 +18,7 @@ const hiddenPositionClasses = {
18
18
  describe('SlidingPanel', () => {
19
19
  it.each(positions)('should render closed panel by default at %s', (position) => {
20
20
  render(
21
- <SlidingPanel position={position} tabLabel="Open Test">
21
+ <SlidingPanel position={position} tabLabel="Test">
22
22
  <p>Panel Content</p>
23
23
  </SlidingPanel>,
24
24
  );
@@ -38,7 +38,7 @@ describe('SlidingPanel', () => {
38
38
  const user = userEvent.setup();
39
39
 
40
40
  render(
41
- <SlidingPanel position={position} tabLabel="Open Me">
41
+ <SlidingPanel position={position} tabLabel="Me">
42
42
  <div>My content</div>
43
43
  </SlidingPanel>,
44
44
  );
@@ -72,7 +72,7 @@ describe('SlidingPanel', () => {
72
72
 
73
73
  expect(panelContent).toBeVisible();
74
74
 
75
- await user.click(screen.getByRole('button', { name: 'Close' }));
75
+ await user.click(screen.getByRole('button', { name: 'Close Trigger' }));
76
76
 
77
77
  await waitFor(() => {
78
78
  expect(panelContent).toBeInTheDocument();
@@ -117,7 +117,7 @@ export const SlidingPanel = ({
117
117
  style={getButtonStyle}
118
118
  onClick={() => setIsVisible((prev) => !prev)}
119
119
  >
120
- {isVisible ? 'Close' : tabLabel}
120
+ {isVisible ? `Close ${tabLabel}` : `Open ${tabLabel}`}
121
121
  </button>
122
122
 
123
123
  <div