sate-lib 1.1.14 → 1.1.16

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.
@@ -0,0 +1,4 @@
1
+ .badge {
2
+ border-radius: .25rem;
3
+ }
4
+
@@ -0,0 +1,6 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ import "./badge.css";
3
+ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
4
+ children: ReactNode;
5
+ }
6
+ export declare function Badge({ className, children, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import "./badge.css";
3
+ function Badge({ className = "", children, ...props }) {
4
+ return /*#__PURE__*/ jsx("span", {
5
+ className: `badge ${className}`.trim(),
6
+ ...props,
7
+ children: children
8
+ });
9
+ }
10
+ export { Badge };
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export { Button } from './Button';
1
+ export { Button } from "./components/button/button";
2
+ export { Badge } from "./components/badge/badge";
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
- import { Button } from "./Button.js";
2
- export { Button };
1
+ import { Button } from "./components/button/button.js";
2
+ import { Badge } from "./components/badge/badge.js";
3
+ export { Badge, Button };
package/package.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "sate-lib",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "type": "module",
5
5
  "exports": {
6
+ "./button": {
7
+ "import": "./dist/components/button/button.js",
8
+ "types": "./dist/components/button/button.d.ts"
9
+ },
10
+ "./badge": {
11
+ "import": "./dist/components/badge/badge.js",
12
+ "types": "./dist/components/badge/badge.d.ts"
13
+ },
6
14
  ".": {
7
15
  "types": "./dist/index.d.ts",
8
16
  "import": "./dist/index.js"
@@ -44,5 +52,18 @@
44
52
  "react": ">=16.9.0",
45
53
  "react-dom": ">=16.9.0"
46
54
  },
47
- "private": false
55
+ "private": false,
56
+ "keywords": [
57
+ "react",
58
+ "component-library",
59
+ "design-system",
60
+ "storybook",
61
+ "rsbuild",
62
+ "rslib",
63
+ "biome",
64
+ "typescript",
65
+ "ui-library",
66
+ "react-components",
67
+ "frontend"
68
+ ]
48
69
  }
File without changes