@stackshift-ui/scripts 6.0.10 → 6.1.0-beta.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stackshift-ui/scripts
2
2
 
3
+ ## 6.1.0-beta.0
4
+
5
+ ### Minor Changes
6
+
7
+ - shadcn migration
8
+
3
9
  ## 6.0.10
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackshift-ui/scripts",
3
- "version": "6.0.10",
3
+ "version": "6.1.0-beta.0",
4
4
  "description": "",
5
5
  "main": "rebrand.js",
6
6
  "scripts": {}
@@ -7,7 +7,7 @@ describe.concurrent("{{kebabCase componentName}}", () => {
7
7
 
8
8
  test("Dummy test - test if renders without errors", ({ expect }) => {
9
9
  const clx = "my-class";
10
- render(<{{capitalize componentName}} className={clx} />);
11
- expect(screen.getByTestId("{ kebabCase name }}").classList).toContain(clx);
10
+ render(<{{capitalize componentName}} data-testid="{{ kebabCase name }}" className={clx} />);
11
+ expect(screen.getByTestId("{{ kebabCase name }}").classList).toContain(clx);
12
12
  });
13
13
  });
@@ -18,7 +18,7 @@ export const {{capitalize componentName}}: React.FC<{{capitalize componentName}}
18
18
  const { [displayName]: Component = DefaultComponent } = useStackShiftUIComponents();
19
19
 
20
20
  return (
21
- <Component as={as} className={className} {...props} data-testid={displayName}>
21
+ <Component as={as} className={className} {...props} >
22
22
  {children}
23
23
  </Component>
24
24
  );