@alea-design/ui 0.1.1 → 0.2.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/README.md +6 -0
- package/dist/components/extras/CodeSteps.d.ts +2 -0
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,8 +4,14 @@ The core of **Alea**, the complete React design system: accessible components, A
|
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npm install @alea-design/ui
|
|
7
|
+
pnpm add @alea-design/ui
|
|
8
|
+
yarn add @alea-design/ui
|
|
9
|
+
bun add @alea-design/ui
|
|
10
|
+
deno add npm:@alea-design/ui
|
|
7
11
|
```
|
|
8
12
|
|
|
13
|
+
Use the line of your package manager. With Deno, set `"nodeModulesDir": "auto"` in `deno.json` if a bundler such as Vite has to find the package on disk. Where the stylesheet and the provider go in Vite, Next.js, React Router, Astro and TanStack Start: https://alea.alevasquez.dev/frameworks
|
|
14
|
+
|
|
9
15
|
```tsx
|
|
10
16
|
import '@alea-design/ui/styles.css';
|
|
11
17
|
import { ThemeProvider, Button } from '@alea-design/ui';
|
|
@@ -6,6 +6,8 @@ export interface CodeStep {
|
|
|
6
6
|
description?: ReactNode;
|
|
7
7
|
/** The code for this step. Leave it out for a step that is only text. */
|
|
8
8
|
code?: string;
|
|
9
|
+
/** Your own content in the code column, in place of the code block: tabs with one command per package manager, a terminal, a preview. Use it or code. */
|
|
10
|
+
codeContent?: ReactNode;
|
|
9
11
|
/** Label over the code: a file name ("main.tsx") or "Terminal". */
|
|
10
12
|
file?: string;
|
|
11
13
|
/** Anything else under the description (a note, a link, an alert). */
|
package/dist/index.js
CHANGED
|
@@ -3090,14 +3090,14 @@ function Ud({ children: e, stagger: t = 60, className: n, ...r }) {
|
|
|
3090
3090
|
}
|
|
3091
3091
|
function _d({ steps: e, headingLevel: t = 3, start: n = 1, className: r }) {
|
|
3092
3092
|
const l = `h${t}`;
|
|
3093
|
-
return /* @__PURE__ */ a("ol", { className: A("alea-codesteps", r), start: n, children: e.map((i, s) => /* @__PURE__ */ m("li", { className: "alea-codesteps-step", "data-code": i.code ? !0 : void 0, children: [
|
|
3093
|
+
return /* @__PURE__ */ a("ol", { className: A("alea-codesteps", r), start: n, children: e.map((i, s) => /* @__PURE__ */ m("li", { className: "alea-codesteps-step", "data-code": i.code || i.codeContent ? !0 : void 0, children: [
|
|
3094
3094
|
/* @__PURE__ */ a("span", { className: "alea-codesteps-num", "aria-hidden": "true", children: n + s }),
|
|
3095
3095
|
/* @__PURE__ */ m("div", { className: "alea-codesteps-text", children: [
|
|
3096
3096
|
/* @__PURE__ */ a(l, { className: "alea-codesteps-title", children: i.title }),
|
|
3097
3097
|
i.description && /* @__PURE__ */ a("div", { className: "alea-codesteps-desc", children: i.description }),
|
|
3098
3098
|
i.children
|
|
3099
3099
|
] }),
|
|
3100
|
-
i.code && /* @__PURE__ */ a("div", { className: "alea-codesteps-code", children: /* @__PURE__ */ a(Co, { code: i.code, title: i.file }) })
|
|
3100
|
+
i.codeContent ? /* @__PURE__ */ a("div", { className: "alea-codesteps-code", children: i.codeContent }) : i.code && /* @__PURE__ */ a("div", { className: "alea-codesteps-code", children: /* @__PURE__ */ a(Co, { code: i.code, title: i.file }) })
|
|
3101
3101
|
] }, s)) });
|
|
3102
3102
|
}
|
|
3103
3103
|
function Pr({ className: e, size: t, ...n }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alea-design/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Alea: the complete React design system. Accessible components from forms to AI, charts and editors, Alea Motion, and W3C design tokens for dark, light and high contrast.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"react-dom": ">=18.3"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@alea-design/motion": "0.
|
|
64
|
-
"@alea-design/tokens": "0.
|
|
63
|
+
"@alea-design/motion": "0.2.0",
|
|
64
|
+
"@alea-design/tokens": "0.2.0",
|
|
65
65
|
"@internationalized/date": "^3.8.0",
|
|
66
66
|
"lucide-react": "^0.525.0",
|
|
67
67
|
"qrcode-generator": "^1.5.2",
|