@alea-design/ui 0.1.0 → 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/components/overlay/Sheet.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1414 -1409
- package/dist/utils/inert.d.ts +2 -0
- 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). */
|
|
@@ -42,7 +42,7 @@ export interface ActionSheetProps {
|
|
|
42
42
|
title?: ReactNode;
|
|
43
43
|
/** A line under the title. */
|
|
44
44
|
description?: ReactNode;
|
|
45
|
-
/** The actions, top to bottom. Each one closes the sheet. */
|
|
45
|
+
/** The actions, top to bottom: each has an id, a label and an optional icon, description, tone (default or danger), isDisabled and onAction. Each one closes the sheet. */
|
|
46
46
|
actions: ActionSheetAction[];
|
|
47
47
|
/** The text of the cancel button. Default "Cancel". */
|
|
48
48
|
cancelLabel?: ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export * from './components/display/Display2';
|
|
|
61
61
|
export * from './components/work/Ops';
|
|
62
62
|
export { useStrings, registerStrings, en as stringsEn, es as stringsEs, type AleaStrings } from './i18n/strings';
|
|
63
63
|
export { cx } from './utils/cx';
|
|
64
|
+
export { inertProps } from './utils/inert';
|
|
64
65
|
export { parseDate, parseDateTime, parseTime, today, getLocalTimeZone, CalendarDate, Time } from '@internationalized/date';
|
|
65
66
|
export type { Key, Selection } from 'react-aria-components';
|
|
66
67
|
export * from './components/emoji/EmojiPicker';
|