@meddhiaka/glixor 0.0.0-stage → 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.
Files changed (43) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +139 -2
  3. package/dist-lib/components/Badge/Badge.d.ts +26 -0
  4. package/dist-lib/components/Badge/index.d.ts +2 -0
  5. package/dist-lib/components/Button/Button.d.ts +22 -0
  6. package/dist-lib/components/Button/index.d.ts +2 -0
  7. package/dist-lib/components/Card/Card.d.ts +45 -0
  8. package/dist-lib/components/Card/index.d.ts +2 -0
  9. package/dist-lib/components/CyberFx.d.ts +10 -0
  10. package/dist-lib/components/Input/Input.d.ts +24 -0
  11. package/dist-lib/components/Input/index.d.ts +2 -0
  12. package/dist-lib/components/Modal/Modal.d.ts +20 -0
  13. package/dist-lib/components/Modal/index.d.ts +2 -0
  14. package/dist-lib/components/Navbar/Navbar.d.ts +36 -0
  15. package/dist-lib/components/Navbar/index.d.ts +2 -0
  16. package/dist-lib/components/Pagination/Pagination.d.ts +33 -0
  17. package/dist-lib/components/Pagination/index.d.ts +2 -0
  18. package/dist-lib/components/Progress/Progress.d.ts +21 -0
  19. package/dist-lib/components/Progress/index.d.ts +2 -0
  20. package/dist-lib/components/Radio/Radio.d.ts +11 -0
  21. package/dist-lib/components/Radio/RadioGroup.d.ts +30 -0
  22. package/dist-lib/components/Radio/context.d.ts +18 -0
  23. package/dist-lib/components/Radio/index.d.ts +5 -0
  24. package/dist-lib/components/Sidebar/Sidebar.d.ts +46 -0
  25. package/dist-lib/components/Sidebar/index.d.ts +2 -0
  26. package/dist-lib/components/Skeleton/Skeleton.d.ts +9 -0
  27. package/dist-lib/components/Skeleton/index.d.ts +2 -0
  28. package/dist-lib/components/Slider/Slider.d.ts +18 -0
  29. package/dist-lib/components/Slider/index.d.ts +2 -0
  30. package/dist-lib/components/Spinner.d.ts +4 -0
  31. package/dist-lib/components/Table/Table.d.ts +43 -0
  32. package/dist-lib/components/Table/TableCheckbox.d.ts +7 -0
  33. package/dist-lib/components/Table/index.d.ts +4 -0
  34. package/dist-lib/components/Tooltip/Tooltip.d.ts +21 -0
  35. package/dist-lib/components/Tooltip/index.d.ts +2 -0
  36. package/dist-lib/index.cjs +2 -0
  37. package/dist-lib/index.cjs.map +1 -0
  38. package/dist-lib/index.d.ts +18 -0
  39. package/dist-lib/index.js +1712 -0
  40. package/dist-lib/index.js.map +1 -0
  41. package/dist-lib/styles.css +952 -0
  42. package/package.json +89 -4
  43. package/tailwind-preset.cjs +66 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the
44
+ purposes of this License, Derivative Works shall not include works
45
+ that remain separable from, or merely link (or bind by name) to the
46
+ interfaces of, the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including the
49
+ original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Dhia Kassab
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,140 @@
1
- # Temporary Holding Version
1
+ <div align="center">
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <img alt="5efe7a4c-4118-4963-b560-8f59bf0d2200" src="https://github.com/user-attachments/assets/3885ac77-70b7-4baf-b749-83fe3bb486de" alt="Glixor logo" width="120"/>
4
+
5
+ # Glixor
6
+
7
+ A neo-brutalist, glitch-driven UI component library and design system — built with React, TypeScript, and Storybook.
8
+
9
+ <img alt="a1a40ab8-3435-441d-9ce6-0dbbee0f35e1" src="https://github.com/user-attachments/assets/b649440d-3345-4952-8265-2594eec3dcb4" alt="Glixor preview" width="100%" />
10
+
11
+
12
+ [![React](https://img.shields.io/badge/React-19-61DAFB?logo=react&logoColor=black)](https://react.dev)
13
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org)
14
+ [![Vite](https://img.shields.io/badge/Vite-8-646CFF?logo=vite&logoColor=white)](https://vitejs.dev)
15
+ [![Tailwind CSS](https://img.shields.io/badge/Tailwind_CSS-3-06B6D4?logo=tailwindcss&logoColor=white)](https://tailwindcss.com)
16
+ [![Storybook](https://img.shields.io/badge/Storybook-10-FF4785?logo=storybook&logoColor=white)](https://storybook.js.org)
17
+ [![License](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](./LICENSE)
18
+
19
+ Built by **Dhia Kassab** — developer, 🇹🇳 Tunisian vibes
20
+ [LinkedIn](https://linkedin.com/in/meddhiaka) · [mohameddhiakb@gmail.com](mailto:mohameddhiakb@gmail.com)
21
+
22
+ </div>
23
+
24
+ ---
25
+
26
+ ## Overview
27
+
28
+ Glixor is a component library built around a distinctive "cyber HUD" aesthetic — hard geometric cuts, chromatic-aberration glitch effects, and a shared dual-theme (light/dark) token system. Every component draws from the same foundations: semantic color tokens, animation keyframes, and a reusable `.cyber-fx` glitch engine that any interactive component can opt into.
29
+
30
+ ## Tech stack
31
+
32
+ | Layer | Tool |
33
+ | :--- | :--- |
34
+ | UI | React 19 + TypeScript |
35
+ | Build | Vite |
36
+ | Styling | Tailwind CSS |
37
+ | Documentation | Storybook |
38
+ | Testing | Vitest + Playwright |
39
+
40
+ ## Foundations
41
+
42
+ - Semantic color tokens (primary, secondary, alert, warning, success) with full light/dark support
43
+ - Shared `.cyber-fx` glitch engine — animated borders, floating pips, chromatic aberration — reused across every interactive component
44
+ - Typography scale, geometric corner chamfers, and surface-pattern utilities
45
+ - Documented in Storybook under `Foundations/*`
46
+
47
+ ## Components
48
+
49
+ | Component | Highlights | Status | Preview |
50
+ | :--- | :--- | :---: | :---: |
51
+ | Button | Variants, sizes, chamfer cuts, loading/disabled states, icons | ✅ | 🎥 _coming soon_ |
52
+ | Badge | Status pills, outline, solid, and micro-tag styles | ✅ | 🎥 _coming soon_ |
53
+ | Input | Style variants, sizing, validation, search adornment, segmented groups | ✅ | 🎥 _coming soon_ |
54
+ | Card | Surface hierarchy, media/title/footer sub-components | ✅ | 🎥 _coming soon_ |
55
+ | Modal | Glitch-intro sequence, focus trap, alert tone | ✅ | 🎥 _coming soon_ |
56
+ | Pagination | Numbered pager, stepper, jump-to-page, load-more | ✅ | 🎥 _coming soon_ |
57
+ | Skeletons | Four animated loading placeholders | ✅ | 🎥 _coming soon_ |
58
+ | Sliders | Media carousel with slicing transitions and a hazard override skin | ✅ | 🎥 _coming soon_ |
59
+ | Radio | Dot and card looks, glitch on selection, native keyboard support | ✅ | 🎥 _coming soon_ |
60
+ | Tooltip | Glitch-in popover with shortcut chip, four sides, alert tone | ✅ | 🎥 _coming soon_ |
61
+ | Progress | Bar and segmented fills, glitching head, indeterminate mode | ✅ | 🎥 _coming soon_ |
62
+ | Sidebar | Glitch-in panel, sections, overlay mode | ✅ | 🎥 _coming soon_ |
63
+ | Navbar | Glitch-in bar with full-width mega-menu panels | ✅ | 🎥 _coming soon_ |
64
+ | Table | Search, sort, selection, paging and expandable rows | ✅ | 🎥 _coming soon_ |
65
+ | Form controls | Textarea, dropdown, checkbox, switch | 🚧 | — |
66
+
67
+ ## Roadmap
68
+
69
+ - 📖 A standalone documentation site (separate from Storybook) is planned for the future
70
+ - 📦 Glixor is packaged for npm as `@meddhiaka/glixor` (see [Using the package](#using-the-package))
71
+
72
+ ## Getting started
73
+
74
+ ```bash
75
+ npm install
76
+ npm run storybook
77
+ ```
78
+
79
+ Storybook runs at `http://localhost:6006`.
80
+
81
+ ## Using the package
82
+
83
+ ```bash
84
+ npm install @meddhiaka/glixor react react-dom
85
+ ```
86
+
87
+ Glixor needs [Tailwind CSS 3](https://tailwindcss.com) in your app. Three one-time steps:
88
+
89
+ **1. Add the preset and let Tailwind scan the package** (`tailwind.config.js`)
90
+
91
+ ```js
92
+ module.exports = {
93
+ presets: [require('@meddhiaka/glixor/tailwind-preset')],
94
+ content: [
95
+ './src/**/*.{js,jsx,ts,tsx}',
96
+ './node_modules/@meddhiaka/glixor/dist-lib/**/*.js',
97
+ ],
98
+ }
99
+ ```
100
+
101
+ **2. Import the styles once** (the glitch engine, keyframes, chamfers and surface patterns)
102
+
103
+ ```ts
104
+ import '@meddhiaka/glixor/styles.css'
105
+ ```
106
+
107
+ **3. Use the components**
108
+
109
+ ```tsx
110
+ import { Button, Badge, Progress } from '@meddhiaka/glixor'
111
+
112
+ <Button variant="primary">Execute</Button>
113
+ ```
114
+
115
+ Dark mode is class-based: add `class="dark"` to an ancestor (usually `<html>`). Inter is the default sans font — load it yourself if you want it.
116
+
117
+ ## Publishing (maintainers)
118
+
119
+ ```bash
120
+ npm run build:lib # ESM + CJS bundles, .d.ts files, styles.css -> dist-lib/
121
+ npm pack --dry-run # review exactly what will be published
122
+ npm login
123
+ npm publish # runs lint + build:lib first (prepublishOnly); scoped package is public via publishConfig
124
+ ```
125
+
126
+ Bump `version` in `package.json` for every release — npm never allows re-publishing a version.
127
+
128
+ ## Scripts
129
+
130
+ | Command | Description |
131
+ | :--- | :--- |
132
+ | `npm run dev` | Start the Vite dev server |
133
+ | `npm run storybook` | Start Storybook |
134
+ | `npm run build` | Type-check and build for production |
135
+ | `npm run build-storybook` | Build a static Storybook (into `dist/ui`) |
136
+ | `npm run build:lib` | Build the npm package into `dist-lib/` |
137
+
138
+ ## License
139
+
140
+ Apache 2.0 — see [LICENSE](./LICENSE).
@@ -0,0 +1,26 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export type BadgeVariant = 'default' | 'primary' | 'secondary' | 'alert' | 'warning' | 'success';
3
+ export type BadgeLook = 'pill' | 'outline' | 'solid' | 'micro';
4
+ export type BadgeSize = 'xs' | 'sm' | 'md';
5
+ export type BadgeChamfer = 'none' | 'chamfer' | 'chamfer-tl-br' | 'tag';
6
+ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
7
+ /** Color/fill treatment. In `pill` look this only colors the dot — the container stays neutral. */
8
+ variant?: BadgeVariant;
9
+ /** Structural style: status pill, outlined box, filled box, or a tiny inline tag. */
10
+ look?: BadgeLook;
11
+ /** Padding/text scale */
12
+ size?: BadgeSize;
13
+ /** Geometric corner cut */
14
+ chamfer?: BadgeChamfer;
15
+ /** Wraps the badge in the shared .cyber-fx glitch engine. */
16
+ glitch?: boolean;
17
+ /** Small leading status dot, colored by variant (circular in `pill`, square otherwise). */
18
+ dot?: boolean;
19
+ /** Animates the dot. Only has an effect together with `dot`. */
20
+ pulse?: boolean;
21
+ /** Renders as bare `[ children ]` text with no box — for the smallest bracket-style tags. */
22
+ bracket?: boolean;
23
+ rounded?: boolean;
24
+ children: ReactNode;
25
+ }
26
+ export declare function Badge({ variant, look, size, chamfer, glitch, dot, pulse, bracket, rounded, className, children, ...rest }: BadgeProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Badge } from './Badge';
2
+ export type { BadgeProps, BadgeVariant, BadgeLook, BadgeSize, BadgeChamfer } from './Badge';
@@ -0,0 +1,22 @@
1
+ import type { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ export type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'alert';
3
+ export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
4
+ export type ButtonChamfer = 'none' | 'chamfer' | 'chamfer-tl-br' | 'tag';
5
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
+ /** Color/fill treatment */
7
+ variant?: ButtonVariant;
8
+ /** Padding/text scale */
9
+ size?: ButtonSize;
10
+ /** Geometric corner cut */
11
+ chamfer?: ButtonChamfer;
12
+ /** Wraps the button in the .cyber-fx glitch engine */
13
+ glitch?: boolean;
14
+ /** Shows a spinner and blocks interaction without the muted "disabled" look. */
15
+ loading?: boolean;
16
+ fullWidth?: boolean;
17
+ /** Square aspect ratio for a single-glyph child — remember an aria-label. */
18
+ iconOnly?: boolean;
19
+ leftIcon?: ReactNode;
20
+ rightIcon?: ReactNode;
21
+ }
22
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,2 @@
1
+ export { Button } from './Button';
2
+ export type { ButtonProps, ButtonVariant, ButtonSize, ButtonChamfer } from './Button';
@@ -0,0 +1,45 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export type CardSurface = 'transparent' | 'default' | 'secondary' | 'tertiary';
3
+ export type CardPadding = 'sm' | 'md' | 'lg';
4
+ export type CardRounding = 'lg' | 'xl' | '2xl';
5
+ export interface CardProps extends HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * Elevation tier, from foundations.md's surface hierarchy:
8
+ * - transparent: dashed border, solidifies to brand-primary on hover — least prominent, nested content
9
+ * - default: solid border + base surface — the standard card
10
+ * - secondary: no border, mid-tone surface, brand-primary border on hover
11
+ * - tertiary: no border, highest-contrast surface, brand-secondary border on hover
12
+ */
13
+ surface?: CardSurface;
14
+ /** Padding scale — also drives the vertical rhythm between direct children. */
15
+ padding?: CardPadding;
16
+ rounded?: CardRounding;
17
+ /** Wraps the card in the shared .cyber-fx glitch engine. */
18
+ glitch?: boolean;
19
+ children: ReactNode;
20
+ }
21
+ export declare function Card({ surface, padding, rounded, glitch, className, children, ...rest }: CardProps): import("react").JSX.Element;
22
+ export type CardMediaSize = 'sm' | 'md' | 'lg';
23
+ export type CardMediaShape = 'square' | 'rounded' | 'circle';
24
+ export interface CardMediaProps extends HTMLAttributes<HTMLDivElement> {
25
+ size?: CardMediaSize;
26
+ shape?: CardMediaShape;
27
+ children: ReactNode;
28
+ }
29
+ export declare function CardMedia({ size, shape, className, children, ...rest }: CardMediaProps): import("react").JSX.Element;
30
+ export type CardTitleSize = 'sm' | 'base' | 'lg';
31
+ export interface CardTitleProps extends HTMLAttributes<HTMLHeadingElement> {
32
+ /** Heading level — pick based on the surrounding document outline, not visual size. */
33
+ as?: 'h2' | 'h3' | 'h4';
34
+ size?: CardTitleSize;
35
+ children: ReactNode;
36
+ }
37
+ export declare function CardTitle({ as, size, className, children, ...rest }: CardTitleProps): import("react").JSX.Element;
38
+ export interface CardDescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
39
+ children: ReactNode;
40
+ }
41
+ export declare function CardDescription({ className, children, ...rest }: CardDescriptionProps): import("react").JSX.Element;
42
+ export interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {
43
+ children: ReactNode;
44
+ }
45
+ export declare function CardFooter({ className, children, ...rest }: CardFooterProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Card, CardMedia, CardTitle, CardDescription, CardFooter } from './Card';
2
+ export type { CardProps, CardSurface, CardPadding, CardRounding, CardMediaProps, CardMediaSize, CardMediaShape, CardTitleProps, CardTitleSize, CardDescriptionProps, CardFooterProps, } from './Card';
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface CyberFxProps {
3
+ disabled?: boolean;
4
+ tone?: 'default' | 'alert' | 'hazard';
5
+ /** Keeps the hover/focus glitch treatment persistently on — for a "this is the current one" indicator (e.g. the active page in Pagination) rather than an interaction state. */
6
+ active?: boolean;
7
+ className?: string;
8
+ children: ReactNode;
9
+ }
10
+ export declare function CyberFx({ disabled, tone, active, className, children, }: CyberFxProps): import("react").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import type { InputHTMLAttributes, ReactNode } from 'react';
2
+ export type InputLook = 'default' | 'subtle' | 'outline' | 'flushed';
3
+ export type InputSize = 'xs' | 'sm' | 'md' | 'lg';
4
+ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
5
+ label?: ReactNode;
6
+ /** Box treatment. Ignored (falls back to the error styling) when `error` is set. */
7
+ look?: InputLook;
8
+ size?: InputSize;
9
+ /** Presence puts the field in its error state and shows this message below it. */
10
+ error?: string;
11
+ /** Helper text shown below the field when there's no error. */
12
+ hint?: string;
13
+ /** Shows a "// REQUIRED" marker next to the label. */
14
+ required?: boolean;
15
+ /** Wraps the field in the shared .cyber-fx glitch engine. */
16
+ glitch?: boolean;
17
+ leftIcon?: ReactNode;
18
+ /** Trailing slot — a `<kbd>` shortcut badge, an icon, anything. */
19
+ rightAdornment?: ReactNode;
20
+ /** Renders just the bare `<input>` with no border/box of its own, for composing into a shared container — see the segmented-input story. */
21
+ bare?: boolean;
22
+ containerClassName?: string;
23
+ }
24
+ export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,2 @@
1
+ export { Input } from './Input';
2
+ export type { InputProps, InputLook, InputSize } from './Input';
@@ -0,0 +1,20 @@
1
+ import type { ReactNode } from 'react';
2
+ export type ModalSize = 'sm' | 'md' | 'lg';
3
+ export type ModalTone = 'default' | 'alert';
4
+ export interface ModalProps {
5
+ open: boolean;
6
+ onClose: () => void;
7
+ /** Renders the standard header row (title + close button). Omit it for a fully custom body — see the danger-modal story. */
8
+ title?: ReactNode;
9
+ size?: ModalSize;
10
+ /** 'alert' reddens the border/glow and the shared glitch engine — for destructive confirmations. */
11
+ tone?: ModalTone;
12
+ /** Plays the 1.5s fullscreen pre-modal screen-tear before the dialog appears, matching the reference exactly. Turn off for routine, frequent modals. */
13
+ glitchIntro?: boolean;
14
+ closeOnBackdropClick?: boolean;
15
+ closeOnEscape?: boolean;
16
+ /** Action row — layout (row, stacked, full-width) is entirely up to what you put in here. */
17
+ footer?: ReactNode;
18
+ children: ReactNode;
19
+ }
20
+ export declare function Modal({ open, onClose, title, size, tone, glitchIntro, closeOnBackdropClick, closeOnEscape, footer, children, }: ModalProps): import("react").ReactPortal | null;
@@ -0,0 +1,2 @@
1
+ export { Modal } from './Modal';
2
+ export type { ModalProps, ModalSize, ModalTone } from './Modal';
@@ -0,0 +1,36 @@
1
+ import type { AnchorHTMLAttributes, ReactNode } from 'react';
2
+ export interface NavbarProps {
3
+ /** Left slot — logo / wordmark. */
4
+ brand?: ReactNode;
5
+ /** Right slot — buttons, theme toggle, avatar. */
6
+ actions?: ReactNode;
7
+ /** Glitches in on mount, and each mega-menu panel glitches in when it opens. */
8
+ glitch?: boolean;
9
+ sticky?: boolean;
10
+ /** Accessible name of the `<nav>` landmark — keep it unique if the page has more than one. */
11
+ 'aria-label'?: string;
12
+ className?: string;
13
+ /** `NavbarItem`s. */
14
+ children: ReactNode;
15
+ }
16
+ export declare function Navbar({ brand, actions, glitch, sticky, 'aria-label': ariaLabel, className, children }: NavbarProps): import("react").JSX.Element;
17
+ export interface NavbarItemProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> {
18
+ label: ReactNode;
19
+ /** Mega-menu content shown in a full-width panel under the bar (hover, focus or click). Omit for a plain link. */
20
+ menu?: ReactNode;
21
+ active?: boolean;
22
+ }
23
+ export declare function NavbarItem({ label, menu, active, className, ...rest }: NavbarItemProps): import("react").JSX.Element;
24
+ export interface NavbarMenuProps {
25
+ columns?: 1 | 2 | 3;
26
+ children: ReactNode;
27
+ }
28
+ /** Grid for `NavbarMenuLink`s; entries glitch in with a short stagger. */
29
+ export declare function NavbarMenu({ columns, children }: NavbarMenuProps): import("react").JSX.Element;
30
+ export interface NavbarMenuLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'title' | 'media'> {
31
+ title: ReactNode;
32
+ description?: ReactNode;
33
+ /** Thumbnail / icon at the start of the entry. */
34
+ media?: ReactNode;
35
+ }
36
+ export declare function NavbarMenuLink({ title, description, media, className, ...rest }: NavbarMenuLinkProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Navbar, NavbarItem, NavbarMenu, NavbarMenuLink } from './Navbar';
2
+ export type { NavbarProps, NavbarItemProps, NavbarMenuProps, NavbarMenuLinkProps } from './Navbar';
@@ -0,0 +1,33 @@
1
+ import type { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ interface PaginationBaseProps {
3
+ currentPage: number;
4
+ totalPages: number;
5
+ onPageChange: (page: number) => void;
6
+ }
7
+ export interface PaginationProps extends PaginationBaseProps {
8
+ /** Total item count — combined with `pageSize`, renders the "Showing X-Y of Z results" summary. */
9
+ totalItems?: number;
10
+ pageSize?: number;
11
+ /** How many page numbers to show on each side of the current page before collapsing into an ellipsis. */
12
+ siblingCount?: number;
13
+ glitch?: boolean;
14
+ className?: string;
15
+ }
16
+ export declare function Pagination({ currentPage, totalPages, onPageChange, totalItems, pageSize, siblingCount, glitch, className, }: PaginationProps): import("react").JSX.Element;
17
+ export interface PaginationStepperProps extends PaginationBaseProps {
18
+ glitch?: boolean;
19
+ className?: string;
20
+ }
21
+ export declare function PaginationStepper({ currentPage, totalPages, onPageChange, glitch, className, }: PaginationStepperProps): import("react").JSX.Element;
22
+ export interface PaginationJumpToProps extends PaginationBaseProps {
23
+ glitch?: boolean;
24
+ className?: string;
25
+ }
26
+ export declare function PaginationJumpTo({ currentPage, totalPages, onPageChange, glitch, className, }: PaginationJumpToProps): import("react").JSX.Element;
27
+ export interface PaginationLoadMoreProps extends ButtonHTMLAttributes<HTMLButtonElement> {
28
+ loading?: boolean;
29
+ glitch?: boolean;
30
+ children?: ReactNode;
31
+ }
32
+ export declare function PaginationLoadMore({ loading, glitch, className, children, disabled, ...rest }: PaginationLoadMoreProps): import("react").JSX.Element;
33
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Pagination, PaginationStepper, PaginationJumpTo, PaginationLoadMore } from './Pagination';
2
+ export type { PaginationProps, PaginationStepperProps, PaginationJumpToProps, PaginationLoadMoreProps, } from './Pagination';
@@ -0,0 +1,21 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export type ProgressSize = 'sm' | 'md' | 'lg';
3
+ export type ProgressTone = 'primary' | 'secondary' | 'success' | 'warning' | 'alert';
4
+ export type ProgressVariant = 'bar' | 'segmented';
5
+ export interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
6
+ /** Current value, 0–`max`. Ignored when `indeterminate`. */
7
+ value?: number;
8
+ max?: number;
9
+ /** Unknown duration — a glitching block sweeps the track instead of filling it. */
10
+ indeterminate?: boolean;
11
+ label?: ReactNode;
12
+ /** Shows the `42%` readout next to the label. */
13
+ showValue?: boolean;
14
+ size?: ProgressSize;
15
+ tone?: ProgressTone;
16
+ /** `segmented` renders the fill as stepped 8-bit cells. */
17
+ variant?: ProgressVariant;
18
+ /** Glitch treatment: jittering chromatic head, laser sweep, and a one-shot tear on completion. */
19
+ glitch?: boolean;
20
+ }
21
+ export declare function Progress({ value, max, indeterminate, label, showValue, size, tone, variant, glitch, className, ...rest }: ProgressProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Progress } from './Progress';
2
+ export type { ProgressProps, ProgressSize, ProgressTone, ProgressVariant } from './Progress';
@@ -0,0 +1,11 @@
1
+ import type { InputHTMLAttributes, ReactNode } from 'react';
2
+ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size' | 'value' | 'name' | 'checked' | 'defaultChecked' | 'onChange'> {
3
+ /** Unique value within the group. */
4
+ value: string;
5
+ label: ReactNode;
6
+ /** Secondary line under the label. */
7
+ description?: ReactNode;
8
+ /** Trailing slot (card look only) — e.g. a `[ACTIVATE]` tag. */
9
+ trailing?: ReactNode;
10
+ }
11
+ export declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<HTMLInputElement>>;