sate-lib 1.1.13 → 1.1.15

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/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../src/assets/icons/Bed.svg","../src/components/badge/badge.tsx","../src/assets/icons/Building.svg","../src/components/icon/icon.tsx","../src/components/typography/typography.tsx"],"sourcesContent":["<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M20.25 6.75H3V4.5C3 4.30109 2.92098 4.11032 2.78033 3.96967C2.63968 3.82902 2.44891 3.75 2.25 3.75C2.05109 3.75 1.86032 3.82902 1.71967 3.96967C1.57902 4.11032 1.5 4.30109 1.5 4.5V19.5C1.5 19.6989 1.57902 19.8897 1.71967 20.0303C1.86032 20.171 2.05109 20.25 2.25 20.25C2.44891 20.25 2.63968 20.171 2.78033 20.0303C2.92098 19.8897 3 19.6989 3 19.5V16.5H22.5V19.5C22.5 19.6989 22.579 19.8897 22.7197 20.0303C22.8603 20.171 23.0511 20.25 23.25 20.25C23.4489 20.25 23.6397 20.171 23.7803 20.0303C23.921 19.8897 24 19.6989 24 19.5V10.5C24 9.50544 23.6049 8.55161 22.9016 7.84835C22.1984 7.14509 21.2446 6.75 20.25 6.75ZM3 8.25H9.75V15H3V8.25ZM11.25 15V8.25H20.25C20.8467 8.25 21.419 8.48705 21.841 8.90901C22.2629 9.33097 22.5 9.90326 22.5 10.5V15H11.25Z\"/>\n</svg>","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 className={`${styles.badge} ${className}`.trim()} {...props}>\n {children}\n </span>\n );\n}\n","<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M21.75 21H19.5V3H20.25C20.4489 3 20.6397 2.92098 20.7803 2.78033C20.921 2.63968 21 2.44891 21 2.25C21 2.05109 20.921 1.86032 20.7803 1.71967C20.6397 1.57902 20.4489 1.5 20.25 1.5H3.75C3.55109 1.5 3.36032 1.57902 3.21967 1.71967C3.07902 1.86032 3 2.05109 3 2.25C3 2.44891 3.07902 2.63968 3.21967 2.78033C3.36032 2.92098 3.55109 3 3.75 3H4.5V21H2.25C2.05109 21 1.86032 21.079 1.71967 21.2197C1.57902 21.3603 1.5 21.5511 1.5 21.75C1.5 21.9489 1.57902 22.1397 1.71967 22.2803C1.86032 22.421 2.05109 22.5 2.25 22.5H21.75C21.9489 22.5 22.1397 22.421 22.2803 22.2803C22.421 22.1397 22.5 21.9489 22.5 21.75C22.5 21.5511 22.421 21.3603 22.2803 21.2197C22.1397 21.079 21.9489 21 21.75 21ZM6 3H18V21H15V17.25C15 17.0511 14.921 16.8603 14.7803 16.7197C14.6397 16.579 14.4489 16.5 14.25 16.5H9.75C9.55109 16.5 9.36032 16.579 9.21967 16.7197C9.07902 16.8603 9 17.0511 9 17.25V21H6V3ZM13.5 21H10.5V18H13.5V21ZM8.25 6C8.25 5.80109 8.32902 5.61032 8.46967 5.46967C8.61032 5.32902 8.80109 5.25 9 5.25H10.5C10.6989 5.25 10.8897 5.32902 11.0303 5.46967C11.171 5.61032 11.25 5.80109 11.25 6C11.25 6.19891 11.171 6.38968 11.0303 6.53033C10.8897 6.67098 10.6989 6.75 10.5 6.75H9C8.80109 6.75 8.61032 6.67098 8.46967 6.53033C8.32902 6.38968 8.25 6.19891 8.25 6ZM12.75 6C12.75 5.80109 12.829 5.61032 12.9697 5.46967C13.1103 5.32902 13.3011 5.25 13.5 5.25H15C15.1989 5.25 15.3897 5.32902 15.5303 5.46967C15.671 5.61032 15.75 5.80109 15.75 6C15.75 6.19891 15.671 6.38968 15.5303 6.53033C15.3897 6.67098 15.1989 6.75 15 6.75H13.5C13.3011 6.75 13.1103 6.67098 12.9697 6.53033C12.829 6.38968 12.75 6.19891 12.75 6ZM8.25 9.75C8.25 9.55109 8.32902 9.36032 8.46967 9.21967C8.61032 9.07902 8.80109 9 9 9H10.5C10.6989 9 10.8897 9.07902 11.0303 9.21967C11.171 9.36032 11.25 9.55109 11.25 9.75C11.25 9.94891 11.171 10.1397 11.0303 10.2803C10.8897 10.421 10.6989 10.5 10.5 10.5H9C8.80109 10.5 8.61032 10.421 8.46967 10.2803C8.32902 10.1397 8.25 9.94891 8.25 9.75ZM12.75 9.75C12.75 9.55109 12.829 9.36032 12.9697 9.21967C13.1103 9.07902 13.3011 9 13.5 9H15C15.1989 9 15.3897 9.07902 15.5303 9.21967C15.671 9.36032 15.75 9.55109 15.75 9.75C15.75 9.94891 15.671 10.1397 15.5303 10.2803C15.3897 10.421 15.1989 10.5 15 10.5H13.5C13.3011 10.5 13.1103 10.421 12.9697 10.2803C12.829 10.1397 12.75 9.94891 12.75 9.75ZM8.25 13.5C8.25 13.3011 8.32902 13.1103 8.46967 12.9697C8.61032 12.829 8.80109 12.75 9 12.75H10.5C10.6989 12.75 10.8897 12.829 11.0303 12.9697C11.171 13.1103 11.25 13.3011 11.25 13.5C11.25 13.6989 11.171 13.8897 11.0303 14.0303C10.8897 14.171 10.6989 14.25 10.5 14.25H9C8.80109 14.25 8.61032 14.171 8.46967 14.0303C8.32902 13.8897 8.25 13.6989 8.25 13.5ZM12.75 13.5C12.75 13.3011 12.829 13.1103 12.9697 12.9697C13.1103 12.829 13.3011 12.75 13.5 12.75H15C15.1989 12.75 15.3897 12.829 15.5303 12.9697C15.671 13.1103 15.75 13.3011 15.75 13.5C15.75 13.6989 15.671 13.8897 15.5303 14.0303C15.3897 14.171 15.1989 14.25 15 14.25H13.5C13.3011 14.25 13.1103 14.171 12.9697 14.0303C12.829 13.8897 12.75 13.6989 12.75 13.5Z\"/>\n</svg>","/* eslint-disable react-refresh/only-export-components */\nimport { SVGProps } from \"react\";\n\nimport BedIcon from \"../../assets/icons/Bed.svg\";\nimport BuildingIcon from \"../../assets/icons/Building.svg\";\n\nconst Icons = {\n Bed: BedIcon,\n Building: BuildingIcon,\n} as const;\n\nexport type IconName = keyof typeof Icons;\nexport const iconNameArr = Object.keys(Icons) as IconName[];\n\nexport interface IconProps extends SVGProps<SVGSVGElement> {\n name: IconName;\n size?: number;\n}\n\nexport function Icon({ name, size = 24, ...rest }: IconProps) {\n const SvgComponent = Icons[name];\n\n if (!SvgComponent) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(`Icon \"${name}\" not found.`);\n }\n return null;\n }\n\n return (\n <SvgComponent width={size} height={size} fill=\"currentColor\" {...rest} />\n );\n}\n","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} ${\n styles[`typography${variant.charAt(0).toUpperCase() + variant.slice(1)}`]\n } ${className}`.trim();\n\n return (\n <Tag className={combined} {...rest}>\n {children}\n </Tag>\n );\n};\n"],"names":["_path","Badge","className","children","props","_jsx","styles","trim","_extends","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","Icons","Bed","React","createElement","xmlns","width","height","viewBox","d","Building","Icon","name","size","rest","SvgComponent","fill","process","env","NODE_ENV","console","warn","Typography","as","Tag","variant","combined","typography","charAt","toUpperCase","slice"],"mappings":"oEAAIA,uCCOE,SAAUC,GAAMC,UAAEA,EAAY,GAAEC,SAAEA,KAAaC,IACnD,OACEC,UAAMH,UAAW,GAAGI,KAAgBJ,IAAYK,UAAYH,WACzDD,GAGP,CDZA,SAASK,IAAa,OAAOA,E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ST,iBAEjB,KAMX,6UCtBO,MAAMU,EAAaA,EACxBC,GAAIC,EAAM,IACVC,UAAU,OACV3C,YAAY,GACZC,cACG+B,MAEH,MAAMY,EAAW,GAAGxC,EAAOyC,cACzBzC,EAAO,aAAauC,EAAQG,OAAO,GAAGC,cAAgBJ,EAAQK,MAAM,SAClEhD,IAAYK,OAEhB,OACEF,EAACuC,EAAG,CAAC1C,UAAW4C,KAAcZ,EAAI/B,SAC/BA"}
@@ -1,13 +0,0 @@
1
- import { SVGProps } from "react";
2
- declare const Icons: {
3
- readonly Bed: any;
4
- readonly Building: any;
5
- };
6
- export type IconName = keyof typeof Icons;
7
- export declare const iconNameArr: IconName[];
8
- export interface IconProps extends SVGProps<SVGSVGElement> {
9
- name: IconName;
10
- size?: number;
11
- }
12
- export declare function Icon({ name, size, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element | null;
13
- export {};
@@ -1,7 +0,0 @@
1
- import { HTMLAttributes } from "react";
2
- export type Variant = "title" | "header" | "body" | "caption";
3
- export interface TypographyProps extends HTMLAttributes<HTMLParagraphElement> {
4
- as?: "p" | "span" | "h1" | "h2" | "h3" | "h4";
5
- variant?: Variant;
6
- }
7
- export declare const Typography: ({ as: Tag, variant, className, children, ...rest }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import "./assets/styles/base.scss";
2
- export { Badge } from "./components/badge/badge";
3
- export { Icon } from "./components/icon/icon";
4
- export { Typography } from "./components/typography/typography";