sate-lib 1.1.20 → 1.1.22

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,70 @@
1
+ *, :before, :after {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ * {
6
+ outline: none;
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+
11
+ ul, ol {
12
+ list-style: none;
13
+ }
14
+
15
+ html:focus-within {
16
+ scroll-behavior: smooth;
17
+ }
18
+
19
+ a:not([class]) {
20
+ text-decoration-skip-ink: auto;
21
+ color: inherit;
22
+ }
23
+
24
+ img, picture, svg, video, canvas {
25
+ vertical-align: middle;
26
+ background-repeat: no-repeat;
27
+ background-size: cover;
28
+ max-width: 100%;
29
+ height: auto;
30
+ }
31
+
32
+ input, button, textarea, select {
33
+ font: inherit;
34
+ color: inherit;
35
+ background: none;
36
+ border: none;
37
+ outline: none;
38
+ }
39
+
40
+ @media (prefers-reduced-motion: reduce) {
41
+ html:focus-within {
42
+ scroll-behavior: auto;
43
+ }
44
+
45
+ *, :before, :after {
46
+ transition: none;
47
+ scroll-behavior: auto !important;
48
+ transition-duration: .01ms !important;
49
+ animation-duration: .01ms !important;
50
+ animation-iteration-count: 1 !important;
51
+ }
52
+ }
53
+
54
+ body, html {
55
+ scroll-behavior: smooth;
56
+ height: 100%;
57
+ }
58
+
59
+ body {
60
+ -webkit-font-smoothing: antialiased;
61
+ }
62
+
63
+ p, h1, h2, h3, h4, h5, h6 {
64
+ overflow-wrap: break-word;
65
+ }
66
+
67
+ button {
68
+ cursor: pointer;
69
+ }
70
+
@@ -0,0 +1,34 @@
1
+ :root {
2
+ --box-shadow-1: 0px 1px 0px 0px #11111a1a;
3
+ --box-shadow-2: 0px 1px 0px #11111a0d, 0px 0px 8px #11111a1a;
4
+ --opacity-disabled: .38;
5
+ --color-theme-core-bright: #317c6c;
6
+ --color-theme-core-dark: #b80f0f;
7
+ --color-system-content-primary: #0e0e0e;
8
+ --color-system-content-secondary: #474747;
9
+ --color-system-content-tertiary: #767676;
10
+ --radius-radii-10: .625rem;
11
+ --radius-radii-16: 1rem;
12
+ --radius-radii-24: 1.5rem;
13
+ --radius-large-container: 1rem;
14
+ --radius-chip: .5rem;
15
+ --radius-medium-container: .75rem;
16
+ --spacing-size-4: .25rem;
17
+ --spacing-size-154: 9.625rem;
18
+ --spacing-size-0: 0;
19
+ --padding-x-small: .5rem;
20
+ --padding-small: 1rem;
21
+ --padding-medium: 1.5rem;
22
+ --padding-large: 2rem;
23
+ --size-x-small: 1.5rem;
24
+ --size-medium: 2.5rem;
25
+ --size-large: 3rem;
26
+ --size-x-large: 3.5rem;
27
+ --size-small: 2rem;
28
+ --size-2x-large: 4.5rem;
29
+ --size-2x-small: 1rem;
30
+ --spacing-column-gap-cards: .75rem;
31
+ --spacing-column-gap-chips: .5rem;
32
+ --spacing-column-margin-screen-mobile: 1.5rem;
33
+ }
34
+
@@ -0,0 +1,5 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
3
+ children: ReactNode;
4
+ }
5
+ 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_styles_module from "./badge.styles.module.js";
3
+ function Badge({ className = "", children, ...props }) {
4
+ return /*#__PURE__*/ jsx("span", {
5
+ className: `${badge_styles_module.badge} ${className}`.trim(),
6
+ ...props,
7
+ children: children
8
+ });
9
+ }
10
+ export { Badge };
@@ -0,0 +1,5 @@
1
+ import "./badge.styles_module.css";
2
+ const badge_styles_module = {
3
+ badge: "badge-AenA5o"
4
+ };
5
+ export { badge_styles_module as default };
@@ -1,4 +1,4 @@
1
- .badge {
1
+ .badge-AenA5o {
2
2
  border-radius: .25rem;
3
3
  }
4
4
 
@@ -0,0 +1,9 @@
1
+ interface ButtonProps {
2
+ primary?: boolean;
3
+ backgroundColor?: string;
4
+ size?: "small" | "medium" | "large";
5
+ label: string;
6
+ onClick?: () => void;
7
+ }
8
+ export declare function Button({ primary, size, backgroundColor, label, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,19 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import button_styles_module from "./button.styles.module.js";
3
+ function Button({ primary = false, size = "medium", backgroundColor, label, ...props }) {
4
+ const mode = primary ? button_styles_module.primary : button_styles_module.secondary;
5
+ return /*#__PURE__*/ jsx("button", {
6
+ type: "button",
7
+ className: [
8
+ button_styles_module.button,
9
+ button_styles_module[size],
10
+ mode
11
+ ].join(" "),
12
+ style: {
13
+ backgroundColor
14
+ },
15
+ ...props,
16
+ children: label
17
+ });
18
+ }
19
+ export { Button };
@@ -0,0 +1,10 @@
1
+ import "./button.styles_module.css";
2
+ const button_styles_module = {
3
+ button: "button-dWV52U",
4
+ primary: "primary-bbJ4Nd",
5
+ secondary: "secondary-W91doR",
6
+ small: "small-uxUptY",
7
+ medium: "medium-iwhjuP",
8
+ large: "large-N1qL9e"
9
+ };
10
+ export { button_styles_module as default };
@@ -1,4 +1,4 @@
1
- .demo-button {
1
+ .button-dWV52U {
2
2
  cursor: pointer;
3
3
  border: 0;
4
4
  border-radius: 3em;
@@ -7,28 +7,28 @@
7
7
  display: inline-block;
8
8
  }
9
9
 
10
- .demo-button--primary {
10
+ .primary-bbJ4Nd {
11
11
  color: #fff;
12
12
  background-color: #1ea7fd;
13
13
  }
14
14
 
15
- .demo-button--secondary {
15
+ .secondary-W91doR {
16
16
  color: #333;
17
17
  background-color: #0000;
18
18
  box-shadow: inset 0 0 0 1px #00000026;
19
19
  }
20
20
 
21
- .demo-button--small {
21
+ .small-uxUptY {
22
22
  padding: 10px 16px;
23
23
  font-size: 12px;
24
24
  }
25
25
 
26
- .demo-button--medium {
26
+ .medium-iwhjuP {
27
27
  padding: 11px 20px;
28
28
  font-size: 14px;
29
29
  }
30
30
 
31
- .demo-button--large {
31
+ .large-N1qL9e {
32
32
  padding: 12px 24px;
33
33
  font-size: 16px;
34
34
  }
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { Button } from "./components/button/button";
2
+ export { Badge } from "./components/badge/badge";
package/lib/index.js ADDED
@@ -0,0 +1,3 @@
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,24 +1,16 @@
1
1
  {
2
2
  "name": "sate-lib",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "type": "module",
5
5
  "exports": {
6
- "./button": {
7
- "import": "./dist/button/button.js",
8
- "types": "./dist/components/button/button.d.ts"
9
- },
10
- "./badge": {
11
- "import": "./dist/badge/badge.js",
12
- "types": "./dist/components/badge/badge.d.ts"
13
- },
14
6
  ".": {
15
- "import": "./dist/index.js",
16
- "types": "./dist/index.d.ts"
7
+ "import": "./lib/index.js",
8
+ "types": "./lib/index.d.ts"
17
9
  }
18
10
  },
19
- "types": "./dist/index.d.ts",
11
+ "types": "./lib/index.d.ts",
20
12
  "files": [
21
- "dist"
13
+ "lib"
22
14
  ],
23
15
  "scripts": {
24
16
  "build": "rslib build",
@@ -31,6 +23,7 @@
31
23
  "devDependencies": {
32
24
  "@biomejs/biome": "^1.9.4",
33
25
  "@rsbuild/core": "1.4.0-beta.4",
26
+ "@rsbuild/plugin-css-minimizer": "^1.0.2",
34
27
  "@rsbuild/plugin-react": "^1.3.2",
35
28
  "@rslib/core": "^0.10.2",
36
29
  "@storybook/addon-docs": "^9.0.11",
@@ -1,9 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import "./badge.css";
3
- const Badge = ({ className = "", children, ...props })=>/*#__PURE__*/ jsx("span", {
4
- className: `badge ${className}`.trim(),
5
- ...props,
6
- children: children
7
- });
8
- const badge = Badge;
9
- export { badge as default };
@@ -1,20 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import "./button.css";
3
- const Button = ({ primary = false, size = "medium", backgroundColor, label, ...props })=>{
4
- const mode = primary ? "demo-button--primary" : "demo-button--secondary";
5
- return /*#__PURE__*/ jsx("button", {
6
- type: "button",
7
- className: [
8
- "demo-button",
9
- `demo-button--${size}`,
10
- mode
11
- ].join(" "),
12
- style: {
13
- backgroundColor
14
- },
15
- ...props,
16
- children: label
17
- });
18
- };
19
- const button_button = Button;
20
- export { button_button as default };
@@ -1,7 +0,0 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- import "./badge.css";
3
- export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
4
- children: ReactNode;
5
- }
6
- declare const Badge: ({ className, children, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
7
- export default Badge;
@@ -1,10 +0,0 @@
1
- import "./button.css";
2
- interface ButtonProps {
3
- primary?: boolean;
4
- backgroundColor?: string;
5
- size?: "small" | "medium" | "large";
6
- label: string;
7
- onClick?: () => void;
8
- }
9
- declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
10
- export default Button;
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { default as Button } from "./components/button/button";
2
- export { default as Badge } from "./components/badge/badge";