sate-lib 1.1.6 → 1.1.7

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.
@@ -1,16 +1,2 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import m from "./badge.styles.module.css.js";
3
- function s({ className: r, children: o, ...t }) {
4
- return /* @__PURE__ */ e(
5
- "span",
6
- {
7
- className: `${m.badge}${r ? ` ${r}` : ""}`,
8
- ...t,
9
- children: o
10
- }
11
- );
12
- }
13
- export {
14
- s as Badge
15
- };
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),n=require("./badge.styles.module.css.js");function s({className:e,children:t,...r}){return u.jsx("span",{className:`${n.default.badge}${e?` ${e}`:""}`,...r,children:t})}exports.Badge=s;
16
2
  //# sourceMappingURL=badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge.js","sources":["../../../src/components/badge/badge.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from \"react\";\nimport styles from \"./badge.styles.module.css\";\n\nexport interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {\n children: ReactNode;\n}\n\nexport function Badge({ className, children, ...props }: BadgeProps) {\n return (\n <span\n className={`${styles.badge}${className ? ` ${className}` : \"\"}`}\n {...props}\n >\n {children}\n </span>\n );\n}\n"],"names":["Badge","className","children","props","jsx","styles"],"mappings":";;AAOO,SAASA,EAAM,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAAqB;AACnE,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAGC,EAAO,KAAK,GAAGJ,IAAY,IAAIA,CAAS,KAAK,EAAE;AAAA,MAC5D,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"badge.js","sources":["../../../src/components/badge/badge.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from \"react\";\nimport styles from \"./badge.styles.module.css\";\n\nexport interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {\n children: ReactNode;\n}\n\nexport function Badge({ className, children, ...props }: BadgeProps) {\n return (\n <span\n className={`${styles.badge}${className ? ` ${className}` : \"\"}`}\n {...props}\n >\n {children}\n </span>\n );\n}\n"],"names":["Badge","className","children","props","jsx","styles"],"mappings":"+JAOO,SAASA,EAAM,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,GAAqB,CACnE,OACEC,EAAAA,IAAC,OAAA,CACC,UAAW,GAAGC,UAAO,KAAK,GAAGJ,EAAY,IAAIA,CAAS,GAAK,EAAE,GAC5D,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP"}
@@ -1,8 +1,2 @@
1
- import '../../assets/components/badge/badge.styles.module.css';const e = "_badge_43knu_1", a = {
2
- badge: e
3
- };
4
- export {
5
- e as badge,
6
- a as default
7
- };
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('../../assets/components/badge/badge.styles.module.css');const e="_badge_43knu_1",t={badge:e};exports.badge=e;exports.default=t;
8
2
  //# sourceMappingURL=badge.styles.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge.styles.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"badge.styles.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,16 +1,2 @@
1
- import { jsx as $ } from "react/jsx-runtime";
2
- import p from "./typography.styles.module.css.js";
3
- const n = ({
4
- as: r = "p",
5
- variant: t = "body",
6
- className: o,
7
- children: y,
8
- ...s
9
- }) => {
10
- const m = `${p.typography} ${p[`typography--${t}`]}${o ? ` ${o}` : ""}`;
11
- return /* @__PURE__ */ $(r, { className: m, ...s, children: y });
12
- };
13
- export {
14
- n as Typography
15
- };
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("./typography.styles.module.css.js"),u=({as:o="p",variant:r="body",className:e,children:y,...p})=>{const s=`${t.default.typography} ${t.default[`typography--${r}`]}${e?` ${e}`:""}`;return a.jsx(o,{className:s,...p,children:y})};exports.Typography=u;
16
2
  //# sourceMappingURL=typography.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.js","sources":["../../../src/components/typography/typography.tsx"],"sourcesContent":["import { HTMLAttributes } from \"react\";\nimport styles from \"./typography.styles.module.css\";\n\nexport type Variant = \"title\" | \"header\" | \"body\" | \"caption\";\n\nexport interface TypographyProps extends HTMLAttributes<HTMLParagraphElement> {\n as?: \"p\" | \"span\" | \"h1\" | \"h2\" | \"h3\" | \"h4\";\n variant?: Variant;\n}\n\nexport const Typography = ({\n as: Tag = \"p\",\n variant = \"body\",\n className,\n children,\n ...rest\n}: TypographyProps) => {\n const combined = `${styles.typography} ${styles[`typography--${variant}`]}${\n className ? ` ${className}` : \"\"\n }`;\n\n return (\n <Tag className={combined} {...rest}>\n {children}\n </Tag>\n );\n};\n"],"names":["Typography","Tag","variant","className","children","rest","combined","styles"],"mappings":";;AAUO,MAAMA,IAAa,CAAC;AAAA,EACzB,IAAIC,IAAM;AAAA,EACV,SAAAC,IAAU;AAAA,EACV,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MAAuB;AACrB,QAAMC,IAAW,GAAGC,EAAO,UAAU,IAAIA,EAAO,eAAeL,CAAO,EAAE,CAAC,GACvEC,IAAY,IAAIA,CAAS,KAAK,EAChC;AAEA,2BACGF,GAAA,EAAI,WAAWK,GAAW,GAAGD,GAC3B,UAAAD,GACH;AAEJ;"}
1
+ {"version":3,"file":"typography.js","sources":["../../../src/components/typography/typography.tsx"],"sourcesContent":["import { HTMLAttributes } from \"react\";\nimport styles from \"./typography.styles.module.css\";\n\nexport type Variant = \"title\" | \"header\" | \"body\" | \"caption\";\n\nexport interface TypographyProps extends HTMLAttributes<HTMLParagraphElement> {\n as?: \"p\" | \"span\" | \"h1\" | \"h2\" | \"h3\" | \"h4\";\n variant?: Variant;\n}\n\nexport const Typography = ({\n as: Tag = \"p\",\n variant = \"body\",\n className,\n children,\n ...rest\n}: TypographyProps) => {\n const combined = `${styles.typography} ${styles[`typography--${variant}`]}${\n className ? ` ${className}` : \"\"\n }`;\n\n return (\n <Tag className={combined} {...rest}>\n {children}\n </Tag>\n );\n};\n"],"names":["Typography","Tag","variant","className","children","rest","combined","styles"],"mappings":"oKAUaA,EAAa,CAAC,CACzB,GAAIC,EAAM,IACV,QAAAC,EAAU,OACV,UAAAC,EACA,SAAAC,EACA,GAAGC,CACL,IAAuB,CACrB,MAAMC,EAAW,GAAGC,EAAAA,QAAO,UAAU,IAAIA,EAAAA,QAAO,eAAeL,CAAO,EAAE,CAAC,GACvEC,EAAY,IAAIA,CAAS,GAAK,EAChC,GAEA,aACGF,EAAA,CAAI,UAAWK,EAAW,GAAGD,EAC3B,SAAAD,EACH,CAEJ"}
@@ -1,12 +1,2 @@
1
- import '../../assets/components/typography/typography.styles.module.css';const p = "_typography_pqvyo_1", y = {
2
- typography: p,
3
- "typography--title": "_typography--title_pqvyo_6",
4
- "typography--header": "_typography--header_pqvyo_13",
5
- "typography--body": "_typography--body_pqvyo_14",
6
- "typography--caption": "_typography--caption_pqvyo_15"
7
- };
8
- export {
9
- y as default,
10
- p as typography
11
- };
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('../../assets/components/typography/typography.styles.module.css');const y="_typography_pqvyo_1",p={typography:y,"typography--title":"_typography--title_pqvyo_6","typography--header":"_typography--header_pqvyo_13","typography--body":"_typography--body_pqvyo_14","typography--caption":"_typography--caption_pqvyo_15"};exports.default=p;exports.typography=y;
12
2
  //# sourceMappingURL=typography.styles.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.styles.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"typography.styles.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -1,7 +1,2 @@
1
- import { Badge as p } from "./components/badge/badge.js";
2
- import { Typography as a } from "./components/typography/typography.js";
3
- export {
4
- p as Badge,
5
- a as Typography
6
- };
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/badge/badge.js"),o=require("./components/typography/typography.js");exports.Badge=e.Badge;exports.Typography=o.Typography;
7
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, ReactNode } from '../../../node_modules/.pnpm/react@19.1.0/node_modules/react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
3
3
  children: ReactNode;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes } from '../../../node_modules/.pnpm/react@19.1.0/node_modules/react';
1
+ import { HTMLAttributes } from 'react';
2
2
  export type Variant = "title" | "header" | "body" | "caption";
3
3
  export interface TypographyProps extends HTMLAttributes<HTMLParagraphElement> {
4
4
  as?: "p" | "span" | "h1" | "h2" | "h3" | "h4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sate-lib",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "author": "Tiago Sousa (tiagorsousa0@gmail.com)",
5
5
  "license": "MIT",
6
6
  "type": "module",