@gnome-ui/react 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 el_jijuna
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,29 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ export type ButtonVariant = "default" | "suggested" | "destructive" | "flat";
3
+ export type ButtonSize = "sm" | "md" | "lg";
4
+ export type ButtonShape = "default" | "pill" | "circular";
5
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
+ /** Visual style of the button. Follows GNOME HIG button types. */
7
+ variant?: ButtonVariant;
8
+ /** Size of the button. */
9
+ size?: ButtonSize;
10
+ /** Shape of the button. "pill" for primary actions in open space, "circular" for icon-only buttons. */
11
+ shape?: ButtonShape;
12
+ /** Icon placed before the label. */
13
+ leadingIcon?: ReactNode;
14
+ /** Icon placed after the label. */
15
+ trailingIcon?: ReactNode;
16
+ children?: ReactNode;
17
+ }
18
+ /**
19
+ * Button component following GNOME Human Interface Guidelines.
20
+ *
21
+ * Variants:
22
+ * - `default` — Standard action, flat appearance with subtle border.
23
+ * - `suggested` — Affirmative/primary action (accent color). Use at most once per view.
24
+ * - `destructive` — Dangerous or irreversible action (red). Use sparingly.
25
+ * - `flat` — No border or background; ideal for header bars and toolbars.
26
+ *
27
+ * @see https://developer.gnome.org/hig/patterns/controls/buttons.html
28
+ */
29
+ export declare function Button({ variant, size, shape, leadingIcon, trailingIcon, children, className, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Button } from './Button';
2
+ export type { ButtonProps, ButtonVariant, ButtonSize, ButtonShape } from './Button';
package/dist/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`react/jsx-runtime`);var t={button:`_button_lkjar_1`,pill:`_pill_lkjar_52`,circular:`_circular_lkjar_59`,default:`_default_lkjar_71`,suggested:`_suggested_lkjar_105`,destructive:`_destructive_lkjar_120`,flat:`_flat_lkjar_135`,sm:`_sm_lkjar_161`,lg:`_lg_lkjar_168`};function n({variant:n=`default`,size:r=`md`,shape:i=`default`,leadingIcon:a,trailingIcon:o,children:s,className:c,...l}){return(0,e.jsxs)(`button`,{className:[t.button,t[n],r===`md`?null:t[r],i===`default`?null:t[i],c].filter(Boolean).join(` `),...l,children:[a,s,o]})}exports.Button=n;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../src/components/Button/Button.module.css","../src/components/Button/Button.tsx"],"sourcesContent":[".button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--gnome-space-1);\n\n /* Typography */\n font-family: var(--gnome-font-family);\n font-size: var(--gnome-font-size-body);\n font-weight: var(--gnome-font-weight-semibold);\n line-height: 1;\n white-space: nowrap;\n\n /* Shape */\n border-radius: var(--gnome-radius-md);\n border: 1px solid transparent;\n padding: var(--gnome-space-1) var(--gnome-space-2);\n min-height: 34px;\n min-width: 5.5rem;\n\n /* Behavior */\n cursor: pointer;\n user-select: none;\n text-decoration: none;\n vertical-align: middle;\n outline: none;\n transition:\n background-color var(--gnome-duration-fast) var(--gnome-easing-default),\n box-shadow var(--gnome-duration-fast) var(--gnome-easing-default),\n opacity var(--gnome-duration-fast) var(--gnome-easing-default);\n}\n\n/* ─── Focus ───────────────────────────────────────────────────── */\n\n.button:focus-visible {\n box-shadow:\n 0 0 0 var(--gnome-focus-ring-offset) var(--gnome-window-bg-color),\n 0 0 0 calc(var(--gnome-focus-ring-offset) + var(--gnome-focus-ring-width)) var(--gnome-focus-ring-color);\n}\n\n/* ─── Disabled ────────────────────────────────────────────────── */\n\n.button:disabled,\n.button[aria-disabled=\"true\"] {\n opacity: var(--gnome-opacity-disabled);\n cursor: not-allowed;\n pointer-events: none;\n}\n\n/* ─── Pill shape ──────────────────────────────────────────────── */\n\n.pill {\n border-radius: var(--gnome-radius-pill);\n padding-inline: var(--gnome-space-3);\n}\n\n/* ─── Circular shape ──────────────────────────────────────────── */\n\n.circular {\n border-radius: var(--gnome-radius-pill);\n padding: var(--gnome-space-1);\n min-width: 34px;\n min-height: 34px;\n width: 34px;\n height: 34px;\n}\n\n/* ─── Variants ────────────────────────────────────────────────── */\n\n/* Default — slight raised appearance with visible border */\n.default {\n background-color: var(--gnome-card-bg-color, #ffffff);\n color: var(--gnome-window-fg-color, rgba(0, 0, 0, 0.8));\n border-color: var(--gnome-light-3, #deddda);\n box-shadow: var(--gnome-shadow-sm);\n}\n\n.default:hover:not(:disabled) {\n background-color: var(--gnome-light-2, #f6f5f4);\n}\n\n.default:active:not(:disabled) {\n background-color: var(--gnome-light-3, #deddda);\n box-shadow: none;\n}\n\n@media (prefers-color-scheme: dark) {\n .default {\n background-color: var(--gnome-card-bg-color, #383838);\n border-color: rgba(255, 255, 255, 0.12);\n box-shadow: none;\n }\n\n .default:hover:not(:disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n }\n\n .default:active:not(:disabled) {\n background-color: rgba(255, 255, 255, 0.14);\n box-shadow: none;\n }\n}\n\n/* Suggested — accent color for primary / affirmative actions */\n.suggested {\n background-color: var(--gnome-accent-bg-color);\n color: var(--gnome-accent-fg-color);\n border-color: transparent;\n}\n\n.suggested:hover:not(:disabled) {\n filter: brightness(1.08);\n}\n\n.suggested:active:not(:disabled) {\n filter: brightness(0.92);\n}\n\n/* Destructive — red for dangerous / irreversible actions */\n.destructive {\n background-color: var(--gnome-destructive-bg-color);\n color: var(--gnome-destructive-fg-color);\n border-color: transparent;\n}\n\n.destructive:hover:not(:disabled) {\n filter: brightness(1.08);\n}\n\n.destructive:active:not(:disabled) {\n filter: brightness(0.92);\n}\n\n/* Flat — no border, no background. Used inside header bars */\n.flat {\n background-color: transparent;\n border-color: transparent;\n color: var(--gnome-window-fg-color, rgba(0, 0, 0, 0.8));\n}\n\n.flat:hover:not(:disabled) {\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.flat:active:not(:disabled) {\n background-color: rgba(0, 0, 0, 0.12);\n}\n\n@media (prefers-color-scheme: dark) {\n .flat:hover:not(:disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n }\n\n .flat:active:not(:disabled) {\n background-color: rgba(255, 255, 255, 0.14);\n }\n}\n\n/* ─── Sizes ───────────────────────────────────────────────────── */\n\n.sm {\n font-size: var(--gnome-font-size-caption);\n min-height: 28px;\n padding: 4px var(--gnome-space-1);\n min-width: 4rem;\n}\n\n.lg {\n font-size: var(--gnome-font-size-title-4);\n min-height: 42px;\n padding: var(--gnome-space-1) var(--gnome-space-3);\n}\n","import type { ButtonHTMLAttributes, ReactNode } from \"react\";\nimport styles from \"./Button.module.css\";\n\nexport type ButtonVariant = \"default\" | \"suggested\" | \"destructive\" | \"flat\";\nexport type ButtonSize = \"sm\" | \"md\" | \"lg\";\nexport type ButtonShape = \"default\" | \"pill\" | \"circular\";\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Visual style of the button. Follows GNOME HIG button types. */\n variant?: ButtonVariant;\n /** Size of the button. */\n size?: ButtonSize;\n /** Shape of the button. \"pill\" for primary actions in open space, \"circular\" for icon-only buttons. */\n shape?: ButtonShape;\n /** Icon placed before the label. */\n leadingIcon?: ReactNode;\n /** Icon placed after the label. */\n trailingIcon?: ReactNode;\n children?: ReactNode;\n}\n\n/**\n * Button component following GNOME Human Interface Guidelines.\n *\n * Variants:\n * - `default` — Standard action, flat appearance with subtle border.\n * - `suggested` — Affirmative/primary action (accent color). Use at most once per view.\n * - `destructive` — Dangerous or irreversible action (red). Use sparingly.\n * - `flat` — No border or background; ideal for header bars and toolbars.\n *\n * @see https://developer.gnome.org/hig/patterns/controls/buttons.html\n */\nexport function Button({\n variant = \"default\",\n size = \"md\",\n shape = \"default\",\n leadingIcon,\n trailingIcon,\n children,\n className,\n ...props\n}: ButtonProps) {\n const classes = [\n styles.button,\n styles[variant],\n size !== \"md\" ? styles[size] : null,\n shape !== \"default\" ? styles[shape] : null,\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n return (\n <button className={classes} {...props}>\n {leadingIcon}\n {children}\n {trailingIcon}\n </button>\n );\n}\n"],"mappings":"0VCgCA,SAAgB,EAAO,CACrB,UAAU,UACV,OAAO,KACP,QAAQ,UACR,cACA,eACA,WACA,YACA,GAAG,GACW,CAWd,OACE,EAAA,EAAA,MAAC,SAAD,CAAQ,UAXM,CACd,EAAO,OACP,EAAO,GACP,IAAS,KAAsB,KAAf,EAAO,GACvB,IAAU,UAA4B,KAAhB,EAAO,GAC7B,EACD,CACE,OAAO,QAAQ,CACf,KAAK,IAAI,CAGkB,GAAI,WAAhC,CACG,EACA,EACA,EACM"}
@@ -0,0 +1,2 @@
1
+ export { Button } from './components/Button';
2
+ export type { ButtonProps, ButtonVariant, ButtonSize, ButtonShape } from './components/Button';
package/dist/index.js ADDED
@@ -0,0 +1,35 @@
1
+ import { jsxs as e } from "react/jsx-runtime";
2
+ var t = {
3
+ button: "_button_lkjar_1",
4
+ pill: "_pill_lkjar_52",
5
+ circular: "_circular_lkjar_59",
6
+ default: "_default_lkjar_71",
7
+ suggested: "_suggested_lkjar_105",
8
+ destructive: "_destructive_lkjar_120",
9
+ flat: "_flat_lkjar_135",
10
+ sm: "_sm_lkjar_161",
11
+ lg: "_lg_lkjar_168"
12
+ };
13
+ //#endregion
14
+ //#region src/components/Button/Button.tsx
15
+ function n({ variant: n = "default", size: r = "md", shape: i = "default", leadingIcon: a, trailingIcon: o, children: s, className: c, ...l }) {
16
+ return /* @__PURE__ */ e("button", {
17
+ className: [
18
+ t.button,
19
+ t[n],
20
+ r === "md" ? null : t[r],
21
+ i === "default" ? null : t[i],
22
+ c
23
+ ].filter(Boolean).join(" "),
24
+ ...l,
25
+ children: [
26
+ a,
27
+ s,
28
+ o
29
+ ]
30
+ });
31
+ }
32
+ //#endregion
33
+ export { n as Button };
34
+
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/components/Button/Button.module.css","../src/components/Button/Button.tsx"],"sourcesContent":[".button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--gnome-space-1);\n\n /* Typography */\n font-family: var(--gnome-font-family);\n font-size: var(--gnome-font-size-body);\n font-weight: var(--gnome-font-weight-semibold);\n line-height: 1;\n white-space: nowrap;\n\n /* Shape */\n border-radius: var(--gnome-radius-md);\n border: 1px solid transparent;\n padding: var(--gnome-space-1) var(--gnome-space-2);\n min-height: 34px;\n min-width: 5.5rem;\n\n /* Behavior */\n cursor: pointer;\n user-select: none;\n text-decoration: none;\n vertical-align: middle;\n outline: none;\n transition:\n background-color var(--gnome-duration-fast) var(--gnome-easing-default),\n box-shadow var(--gnome-duration-fast) var(--gnome-easing-default),\n opacity var(--gnome-duration-fast) var(--gnome-easing-default);\n}\n\n/* ─── Focus ───────────────────────────────────────────────────── */\n\n.button:focus-visible {\n box-shadow:\n 0 0 0 var(--gnome-focus-ring-offset) var(--gnome-window-bg-color),\n 0 0 0 calc(var(--gnome-focus-ring-offset) + var(--gnome-focus-ring-width)) var(--gnome-focus-ring-color);\n}\n\n/* ─── Disabled ────────────────────────────────────────────────── */\n\n.button:disabled,\n.button[aria-disabled=\"true\"] {\n opacity: var(--gnome-opacity-disabled);\n cursor: not-allowed;\n pointer-events: none;\n}\n\n/* ─── Pill shape ──────────────────────────────────────────────── */\n\n.pill {\n border-radius: var(--gnome-radius-pill);\n padding-inline: var(--gnome-space-3);\n}\n\n/* ─── Circular shape ──────────────────────────────────────────── */\n\n.circular {\n border-radius: var(--gnome-radius-pill);\n padding: var(--gnome-space-1);\n min-width: 34px;\n min-height: 34px;\n width: 34px;\n height: 34px;\n}\n\n/* ─── Variants ────────────────────────────────────────────────── */\n\n/* Default — slight raised appearance with visible border */\n.default {\n background-color: var(--gnome-card-bg-color, #ffffff);\n color: var(--gnome-window-fg-color, rgba(0, 0, 0, 0.8));\n border-color: var(--gnome-light-3, #deddda);\n box-shadow: var(--gnome-shadow-sm);\n}\n\n.default:hover:not(:disabled) {\n background-color: var(--gnome-light-2, #f6f5f4);\n}\n\n.default:active:not(:disabled) {\n background-color: var(--gnome-light-3, #deddda);\n box-shadow: none;\n}\n\n@media (prefers-color-scheme: dark) {\n .default {\n background-color: var(--gnome-card-bg-color, #383838);\n border-color: rgba(255, 255, 255, 0.12);\n box-shadow: none;\n }\n\n .default:hover:not(:disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n }\n\n .default:active:not(:disabled) {\n background-color: rgba(255, 255, 255, 0.14);\n box-shadow: none;\n }\n}\n\n/* Suggested — accent color for primary / affirmative actions */\n.suggested {\n background-color: var(--gnome-accent-bg-color);\n color: var(--gnome-accent-fg-color);\n border-color: transparent;\n}\n\n.suggested:hover:not(:disabled) {\n filter: brightness(1.08);\n}\n\n.suggested:active:not(:disabled) {\n filter: brightness(0.92);\n}\n\n/* Destructive — red for dangerous / irreversible actions */\n.destructive {\n background-color: var(--gnome-destructive-bg-color);\n color: var(--gnome-destructive-fg-color);\n border-color: transparent;\n}\n\n.destructive:hover:not(:disabled) {\n filter: brightness(1.08);\n}\n\n.destructive:active:not(:disabled) {\n filter: brightness(0.92);\n}\n\n/* Flat — no border, no background. Used inside header bars */\n.flat {\n background-color: transparent;\n border-color: transparent;\n color: var(--gnome-window-fg-color, rgba(0, 0, 0, 0.8));\n}\n\n.flat:hover:not(:disabled) {\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.flat:active:not(:disabled) {\n background-color: rgba(0, 0, 0, 0.12);\n}\n\n@media (prefers-color-scheme: dark) {\n .flat:hover:not(:disabled) {\n background-color: rgba(255, 255, 255, 0.08);\n }\n\n .flat:active:not(:disabled) {\n background-color: rgba(255, 255, 255, 0.14);\n }\n}\n\n/* ─── Sizes ───────────────────────────────────────────────────── */\n\n.sm {\n font-size: var(--gnome-font-size-caption);\n min-height: 28px;\n padding: 4px var(--gnome-space-1);\n min-width: 4rem;\n}\n\n.lg {\n font-size: var(--gnome-font-size-title-4);\n min-height: 42px;\n padding: var(--gnome-space-1) var(--gnome-space-3);\n}\n","import type { ButtonHTMLAttributes, ReactNode } from \"react\";\nimport styles from \"./Button.module.css\";\n\nexport type ButtonVariant = \"default\" | \"suggested\" | \"destructive\" | \"flat\";\nexport type ButtonSize = \"sm\" | \"md\" | \"lg\";\nexport type ButtonShape = \"default\" | \"pill\" | \"circular\";\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n /** Visual style of the button. Follows GNOME HIG button types. */\n variant?: ButtonVariant;\n /** Size of the button. */\n size?: ButtonSize;\n /** Shape of the button. \"pill\" for primary actions in open space, \"circular\" for icon-only buttons. */\n shape?: ButtonShape;\n /** Icon placed before the label. */\n leadingIcon?: ReactNode;\n /** Icon placed after the label. */\n trailingIcon?: ReactNode;\n children?: ReactNode;\n}\n\n/**\n * Button component following GNOME Human Interface Guidelines.\n *\n * Variants:\n * - `default` — Standard action, flat appearance with subtle border.\n * - `suggested` — Affirmative/primary action (accent color). Use at most once per view.\n * - `destructive` — Dangerous or irreversible action (red). Use sparingly.\n * - `flat` — No border or background; ideal for header bars and toolbars.\n *\n * @see https://developer.gnome.org/hig/patterns/controls/buttons.html\n */\nexport function Button({\n variant = \"default\",\n size = \"md\",\n shape = \"default\",\n leadingIcon,\n trailingIcon,\n children,\n className,\n ...props\n}: ButtonProps) {\n const classes = [\n styles.button,\n styles[variant],\n size !== \"md\" ? styles[size] : null,\n shape !== \"default\" ? styles[shape] : null,\n className,\n ]\n .filter(Boolean)\n .join(\" \");\n\n return (\n <button className={classes} {...props}>\n {leadingIcon}\n {children}\n {trailingIcon}\n </button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;ACgCA,SAAgB,EAAO,EACrB,aAAU,WACV,UAAO,MACP,WAAQ,WACR,gBACA,iBACA,aACA,cACA,GAAG,KACW;AAWd,QACE,kBAAC,UAAD;EAAQ,WAXM;GACd,EAAO;GACP,EAAO;GACP,MAAS,OAAsB,OAAf,EAAO;GACvB,MAAU,YAA4B,OAAhB,EAAO;GAC7B;GACD,CACE,OAAO,QAAQ,CACf,KAAK,IAAI;EAGkB,GAAI;YAAhC;GACG;GACA;GACA;GACM"}
package/dist/style.css ADDED
@@ -0,0 +1,2 @@
1
+ :root{--gnome-blue-1:#99c1f1;--gnome-blue-2:#62a0ea;--gnome-blue-3:#3584e4;--gnome-blue-4:#1c71d8;--gnome-blue-5:#1a5fb4;--gnome-green-1:#8ff0a4;--gnome-green-2:#57e389;--gnome-green-3:#33d17a;--gnome-green-4:#2ec27e;--gnome-green-5:#26a269;--gnome-yellow-1:#f9f06b;--gnome-yellow-2:#f8e45c;--gnome-yellow-3:#f6d32d;--gnome-yellow-4:#f5c211;--gnome-yellow-5:#e5a50a;--gnome-orange-1:#ffbe6f;--gnome-orange-2:#ffa348;--gnome-orange-3:#ff7800;--gnome-orange-4:#e66100;--gnome-orange-5:#c64600;--gnome-red-1:#f66151;--gnome-red-2:#ed333b;--gnome-red-3:#e01b24;--gnome-red-4:#c01c28;--gnome-red-5:#a51d2d;--gnome-purple-1:#dc8add;--gnome-purple-2:#c061cb;--gnome-purple-3:#9141ac;--gnome-purple-4:#813d9c;--gnome-purple-5:#63452c;--gnome-brown-1:#cdab8f;--gnome-brown-2:#b5835a;--gnome-brown-3:#986a44;--gnome-brown-4:#865e3c;--gnome-brown-5:#63452c;--gnome-light-1:#fff;--gnome-light-2:#f6f5f4;--gnome-light-3:#deddda;--gnome-light-4:#c0bfbc;--gnome-light-5:#9a9996;--gnome-dark-1:#77767b;--gnome-dark-2:#5e5c64;--gnome-dark-3:#3d3846;--gnome-dark-4:#241f31;--gnome-dark-5:#000;--gnome-accent-color:var(--gnome-blue-3);--gnome-accent-bg-color:var(--gnome-blue-3);--gnome-accent-fg-color:#fff;--gnome-destructive-color:var(--gnome-red-3);--gnome-destructive-bg-color:var(--gnome-red-3);--gnome-destructive-fg-color:#fff;--gnome-success-color:var(--gnome-green-4);--gnome-success-bg-color:var(--gnome-green-4);--gnome-success-fg-color:#fff;--gnome-warning-color:var(--gnome-yellow-5);--gnome-warning-bg-color:var(--gnome-yellow-3);--gnome-warning-fg-color:#000c;--gnome-error-color:var(--gnome-red-3);--gnome-error-bg-color:var(--gnome-red-3);--gnome-error-fg-color:#fff;--gnome-window-bg-color:#fafafa;--gnome-window-fg-color:#000c;--gnome-view-bg-color:#fff;--gnome-view-fg-color:#000c;--gnome-card-bg-color:#fff;--gnome-card-fg-color:#000c;--gnome-card-shade-color:#00000012;--gnome-headerbar-bg-color:#ebebeb;--gnome-headerbar-fg-color:#000c;--gnome-headerbar-border-color:#0000001f;--gnome-headerbar-shade-color:#0000001f;--gnome-sidebar-bg-color:#ebebeb;--gnome-sidebar-fg-color:#000c;--gnome-popover-bg-color:#fff;--gnome-popover-fg-color:#000c;--gnome-dialog-bg-color:#fafafa;--gnome-dialog-fg-color:#000c;--gnome-font-family:"Adwaita Sans", Cantarell, "Inter", system-ui, sans-serif;--gnome-font-family-mono:"Adwaita Mono", "Source Code Pro", monospace;--gnome-font-size-caption:.75rem;--gnome-font-size-body:1rem;--gnome-font-size-title-4:1.125rem;--gnome-font-size-title-3:1.25rem;--gnome-font-size-title-2:1.5rem;--gnome-font-size-title-1:1.875rem;--gnome-font-size-large-title:2.25rem;--gnome-font-weight-normal:400;--gnome-font-weight-semibold:600;--gnome-font-weight-bold:700;--gnome-line-height-body:1.5;--gnome-line-height-heading:1.2;--gnome-space-1:6px;--gnome-space-2:12px;--gnome-space-3:18px;--gnome-space-4:24px;--gnome-space-5:36px;--gnome-space-6:48px;--gnome-radius-sm:4px;--gnome-radius-md:8px;--gnome-radius-lg:12px;--gnome-radius-xl:15px;--gnome-radius-pill:9999px;--gnome-shadow-sm:0 1px 2px #0000001f;--gnome-shadow-md:0 2px 6px 2px #0003, 0 0 0 1px #00000014;--gnome-shadow-lg:0 3px 9px 1px #0000001a, 0 2px 6px 2px #0003, 0 0 0 1px #1c1f1fe6;--gnome-opacity-disabled:.5;--gnome-opacity-dim:.55;--gnome-opacity-border:.15;--gnome-duration-fast:.1s;--gnome-duration-normal:.2s;--gnome-duration-slow:.4s;--gnome-easing-default:cubic-bezier(.25, .46, .45, .94);--gnome-focus-ring-color:var(--gnome-accent-color);--gnome-focus-ring-width:3px;--gnome-focus-ring-offset:2px}@media (prefers-color-scheme:dark){:root{--gnome-accent-color:var(--gnome-blue-2);--gnome-accent-bg-color:var(--gnome-blue-3);--gnome-window-bg-color:#242424;--gnome-window-fg-color:#ffffffde;--gnome-view-bg-color:#1e1e1e;--gnome-view-fg-color:#ffffffde;--gnome-card-bg-color:#383838;--gnome-card-fg-color:#ffffffde;--gnome-card-shade-color:#0000005c;--gnome-headerbar-bg-color:#303030;--gnome-headerbar-fg-color:#ffffffde;--gnome-headerbar-border-color:#ffffff1a;--gnome-headerbar-shade-color:#0000005c;--gnome-sidebar-bg-color:#303030;--gnome-sidebar-fg-color:#ffffffde;--gnome-popover-bg-color:#383838;--gnome-popover-fg-color:#ffffffde;--gnome-dialog-bg-color:#242424;--gnome-dialog-fg-color:#ffffffde}}*,:before,:after{box-sizing:border-box}._button_lkjar_1{justify-content:center;align-items:center;gap:var(--gnome-space-1);font-family:var(--gnome-font-family);font-size:var(--gnome-font-size-body);font-weight:var(--gnome-font-weight-semibold);white-space:nowrap;border-radius:var(--gnome-radius-md);padding:var(--gnome-space-1) var(--gnome-space-2);cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:middle;min-width:5.5rem;min-height:34px;transition:background-color var(--gnome-duration-fast) var(--gnome-easing-default), box-shadow var(--gnome-duration-fast) var(--gnome-easing-default), opacity var(--gnome-duration-fast) var(--gnome-easing-default);border:1px solid #0000;outline:none;line-height:1;text-decoration:none;display:inline-flex}._button_lkjar_1:focus-visible{box-shadow:0 0 0 var(--gnome-focus-ring-offset) var(--gnome-window-bg-color), 0 0 0 calc(var(--gnome-focus-ring-offset) + var(--gnome-focus-ring-width)) var(--gnome-focus-ring-color)}._button_lkjar_1:disabled,._button_lkjar_1[aria-disabled=true]{opacity:var(--gnome-opacity-disabled);cursor:not-allowed;pointer-events:none}._pill_lkjar_52{border-radius:var(--gnome-radius-pill);padding-inline:var(--gnome-space-3)}._circular_lkjar_59{border-radius:var(--gnome-radius-pill);padding:var(--gnome-space-1);width:34px;min-width:34px;height:34px;min-height:34px}._default_lkjar_71{background-color:var(--gnome-card-bg-color,#fff);color:var(--gnome-window-fg-color,#000c);border-color:var(--gnome-light-3,#deddda);box-shadow:var(--gnome-shadow-sm)}._default_lkjar_71:hover:not(:disabled){background-color:var(--gnome-light-2,#f6f5f4)}._default_lkjar_71:active:not(:disabled){background-color:var(--gnome-light-3,#deddda);box-shadow:none}@media (prefers-color-scheme:dark){._default_lkjar_71{background-color:var(--gnome-card-bg-color,#383838);box-shadow:none;border-color:#ffffff1f}._default_lkjar_71:hover:not(:disabled){background-color:#ffffff14}._default_lkjar_71:active:not(:disabled){box-shadow:none;background-color:#ffffff24}}._suggested_lkjar_105{background-color:var(--gnome-accent-bg-color);color:var(--gnome-accent-fg-color);border-color:#0000}._suggested_lkjar_105:hover:not(:disabled){filter:brightness(1.08)}._suggested_lkjar_105:active:not(:disabled){filter:brightness(.92)}._destructive_lkjar_120{background-color:var(--gnome-destructive-bg-color);color:var(--gnome-destructive-fg-color);border-color:#0000}._destructive_lkjar_120:hover:not(:disabled){filter:brightness(1.08)}._destructive_lkjar_120:active:not(:disabled){filter:brightness(.92)}._flat_lkjar_135{color:var(--gnome-window-fg-color,#000c);background-color:#0000;border-color:#0000}._flat_lkjar_135:hover:not(:disabled){background-color:#0000000f}._flat_lkjar_135:active:not(:disabled){background-color:#0000001f}@media (prefers-color-scheme:dark){._flat_lkjar_135:hover:not(:disabled){background-color:#ffffff14}._flat_lkjar_135:active:not(:disabled){background-color:#ffffff24}}._sm_lkjar_161{font-size:var(--gnome-font-size-caption);min-height:28px;padding:4px var(--gnome-space-1);min-width:4rem}._lg_lkjar_168{font-size:var(--gnome-font-size-title-4);min-height:42px;padding:var(--gnome-space-1) var(--gnome-space-3)}
2
+ /*$vite$:1*/
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@gnome-ui/react",
3
+ "version": "0.1.0",
4
+ "description": "React component library following GNOME Human Interface Guidelines",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "author": {
10
+ "name": "El Jijuna",
11
+ "email": "pilmee@gmail.com"
12
+ },
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.cjs"
18
+ },
19
+ "./styles": "./dist/style.css"
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "scripts": {
25
+ "dev": "vite",
26
+ "build": "tsc && vite build",
27
+ "preview": "vite preview",
28
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
29
+ "typecheck": "tsc --noEmit",
30
+ "storybook": "storybook dev -p 6006",
31
+ "build-storybook": "storybook build"
32
+ },
33
+ "peerDependencies": {
34
+ "react": "^19.0.0",
35
+ "react-dom": "^19.0.0"
36
+ },
37
+ "devDependencies": {
38
+ "@types/react": "^19.0.0",
39
+ "@types/react-dom": "^19.0.0",
40
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
41
+ "@typescript-eslint/parser": "^8.0.0",
42
+ "@vitejs/plugin-react": "^6.0.1",
43
+ "eslint": "^9.0.0",
44
+ "eslint-plugin-react-hooks": "^5.0.0",
45
+ "eslint-plugin-react-refresh": "^0.4.7",
46
+ "react": "^19.0.0",
47
+ "react-dom": "^19.0.0",
48
+ "typescript": "^5.5.3",
49
+ "vite": "^8.0.3",
50
+ "vite-plugin-dts": "^4.5.4",
51
+ "@storybook/react": "^10.3.3",
52
+ "@storybook/react-vite": "^10.3.3",
53
+ "@storybook/addon-a11y": "^10.3.3",
54
+ "storybook": "^10.3.3"
55
+ }
56
+ }