@staqforce.studio/staqui 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.
package/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 StaqUI contributors
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.
22
+
23
+ Research captures under research/sources retain the copyright of their source.
24
+ The MIT license applies to original StaqUI implementation and documentation.
package/README.md CHANGED
@@ -1,3 +1,58 @@
1
- # Temporary Holding Version
1
+ # StaqUI
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
+ An independent React and TypeScript UI library with 50 catalog components, semantic light/dark themes, and compact and comfortable densities. No Shopify or Next.js runtime dependency.
4
+
5
+ ## Install
6
+
7
+ After the first public release, install from npm using your preferred package manager:
8
+
9
+ ```sh
10
+ npm install @staqforce.studio/staqui
11
+ pnpm add @staqforce.studio/staqui
12
+ bun add @staqforce.studio/staqui
13
+ ```
14
+
15
+ Use one of these commands in an existing React application. For an unpublished
16
+ checkout, run `pnpm pack:ui` at the repository root and install the generated
17
+ `artifacts/staqforce.studio-staqui-<version>.tgz` instead. See the repository's
18
+ [PUBLISHING.md](https://github.com/regzimarx/StaqUI/blob/main/PUBLISHING.md) for release instructions.
19
+
20
+ React and React DOM 18.3 or 19 are peer dependencies. ESM, CommonJS, TypeScript declarations and CSS are included. Load styles once in your application's entry point or root layout.
21
+
22
+ ```tsx
23
+ import { StaqProvider, Stack, TextField, Button } from '@staqforce.studio/staqui';
24
+ import '@staqforce.studio/staqui/styles.css';
25
+
26
+ export default function App() {
27
+ return (
28
+ <StaqProvider theme="light" density="compact">
29
+ <form onSubmit={(event) => event.preventDefault()}>
30
+ <Stack>
31
+ <TextField label="Project name" required />
32
+ <Button type="submit" variant="primary">Create project</Button>
33
+ </Stack>
34
+ </form>
35
+ </StaqProvider>
36
+ );
37
+ }
38
+ ```
39
+
40
+ Use `theme="dark"` for the alternate theme and `density="comfortable"` for roomier 40px controls; `density="compact"` is the default with 32px controls. Add `asChild` to `Button` to render its styles onto a single child element, such as a framework link: `<Button asChild variant="primary"><a href="/start">Start</a></Button>`. With `asChild`, put the label and any icon inside that child; the button's own `icon` and `loading` slots apply only to real buttons. Use `theme="staqwish"` for the neutral Shopify admin-inspired visual system extracted from the Staqwish project. Components wrapping native elements accept React HTML and ARIA attributes. Fields use `label`, `description`, `error`, and `onValueChange`; checkboxes and switches use `onCheckedChange`. Overlays use `open` and `onOpenChange`.
41
+
42
+ ## Customization
43
+
44
+ Override the `--sq-*` CSS custom properties after importing the stylesheet. Theme-specific overrides should target `[data-staq-theme]`. Built-in theme and density propagate to portals. Scope custom brand overrides globally or explicitly include `.sq-modal`, `.sq-menu`, `.sq-popover` and `.sq-tooltip`; custom ancestor-only CSS does not cross portal boundaries.
45
+
46
+ ## Accessibility
47
+
48
+ Native inputs provide labels, autofill and constraint validation. Radix handles overlays and focus management; React DayPicker handles calendars. Always supply meaningful labels, descriptions, alternative text, and valid heading structure. Target: WCAG 2.2 AA, not a conformance certification. Perform assistive-technology testing in your consuming application.
49
+
50
+ ## Scope
51
+
52
+ This is an independent equivalent of the reference component catalog component catalog, not a compatible Shopify API implementation. Color inputs use native six-digit RGB hex; date fields use native browser UI; the calendar uses Date objects and matcher constraints. The icon set is Lucide. Table sorting is client-side and pagination is application-owned. File uploads and all backend/service behavior belong to the consuming application.
53
+
54
+ For the full component API, examples, and per-component adaptations, run the documentation site from the repository with `pnpm dev`. The repository also includes `research/INVENTORY.md` and `research/COVERAGE.md`.
55
+
56
+ MIT licensed. Dependencies retain their respective licenses.
57
+
58
+ Fixel Display is the default font, bundled as self-hosted WOFF2 files (weights 100–900, upright and italic) with its OFL license. Importing the stylesheet loads the font; override `--sq-font` to use another family. Unsupported scripts fall back to the system font stack. Corners use an 8/12/20px scale for small, medium, and large radii.
@@ -0,0 +1,87 @@
1
+ © 2023 MacPaw Inc. (Authors: Alfabravo + MacPaw)
2
+
3
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
4
+ -----------------------------------------------------------
5
+
6
+ PREAMBLE
7
+ The goals of the Open Font License (OFL) are to stimulate worldwide
8
+ development of collaborative font projects, to support the font creation
9
+ efforts of academic and linguistic communities, and to provide a free and
10
+ open framework in which fonts may be shared and improved in partnership
11
+ with others.
12
+
13
+ The OFL allows the licensed fonts to be used, studied, modified and
14
+ redistributed freely as long as they are not sold by themselves. The
15
+ fonts, including any derivative works, can be bundled, embedded,
16
+ redistributed and/or sold with any software provided that any reserved
17
+ names are not used by derivative works. The fonts and derivatives,
18
+ however, cannot be released under any other type of license. The
19
+ requirement for fonts to remain under this license does not apply
20
+ to any document created using the fonts or their derivatives.
21
+
22
+ DEFINITIONS
23
+ "Font Software" refers to the set of files released by the Copyright
24
+ Holder(s) under this license and clearly marked as such. This may
25
+ include source files, build scripts and documentation.
26
+
27
+ "Reserved Font Name" refers to any names specified as such after the
28
+ copyright statement(s).
29
+
30
+ "Original Version" refers to the collection of Font Software components as
31
+ distributed by the Copyright Holder(s).
32
+
33
+ "Modified Version" refers to any derivative made by adding to, deleting,
34
+ or substituting -- in part or in whole -- any of the components of the
35
+ Original Version, by changing formats or by porting the Font Software to a
36
+ new environment.
37
+
38
+ "Author" refers to any designer, engineer, programmer, technical
39
+ writer or other person who contributed to the Font Software.
40
+
41
+ PERMISSION & CONDITIONS
42
+ Permission is hereby granted, free of charge, to any person obtaining
43
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
44
+ redistribute, and sell modified and unmodified copies of the Font
45
+ Software, subject to the following conditions:
46
+
47
+ 1) Neither the Font Software nor any of its individual components,
48
+ in Original or Modified Versions, may be sold by itself.
49
+
50
+ 2) Original or Modified Versions of the Font Software may be bundled,
51
+ redistributed and/or sold with any software, provided that each copy
52
+ contains the above copyright notice and this license. These can be
53
+ included either as stand-alone text files, human-readable headers or
54
+ in the appropriate machine-readable metadata fields within text or
55
+ binary files as long as those fields can be easily viewed by the user.
56
+
57
+ 3) No Modified Version of the Font Software may use the Reserved Font
58
+ Name(s) unless explicit written permission is granted by the corresponding
59
+ Copyright Holder. This restriction only applies to the primary font name as
60
+ presented to the users.
61
+
62
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
63
+ Software shall not be used to promote, endorse or advertise any
64
+ Modified Version, except to acknowledge the contribution(s) of the
65
+ Copyright Holder(s) and the Author(s) or with their explicit written
66
+ permission.
67
+
68
+ 5) The Font Software, modified or unmodified, in part or in whole,
69
+ must be distributed entirely under this license, and must not be
70
+ distributed under any other license. The requirement for fonts to
71
+ remain under this license does not apply to any document created
72
+ using the Font Software.
73
+
74
+ TERMINATION
75
+ This license becomes null and void if any of the above conditions are
76
+ not met.
77
+
78
+ DISCLAIMER
79
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
80
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
81
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
82
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
83
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
84
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
85
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
86
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
87
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,5 @@
1
+ Fixel Display by MacPaw and AlfaBravo.
2
+
3
+ Source: https://fixel.macpaw.com/ (official FixelAll.zip distribution).
4
+ Unmodified WOFF2 files, weights 100–900, upright and italic.
5
+ Copyright and SIL OFL 1.1 are included in LICENSE.