rudiment-ui 0.2.0 → 0.3.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 +119 -100
- package/dist/components/AppShell/AppShell.d.ts +48 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +14 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Charts/BarChart/BarChart.d.ts +5 -1
- package/dist/components/Charts/BarChart/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/LineChart/LineChart.d.ts +6 -1
- package/dist/components/Charts/LineChart/LineChart.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.ts +15 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Dot/Dot.d.ts +20 -0
- package/dist/components/Dot/Dot.d.ts.map +1 -0
- package/dist/components/Footer/Footer.d.ts +31 -0
- package/dist/components/Footer/Footer.d.ts.map +1 -0
- package/dist/components/Image/Image.d.ts +18 -0
- package/dist/components/Image/Image.d.ts.map +1 -0
- package/dist/components/Link/Link.d.ts +16 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Menu/MenuItem.d.ts +10 -1
- package/dist/components/Menu/MenuItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuSeparator.d.ts +5 -0
- package/dist/components/Menu/MenuSeparator.d.ts.map +1 -0
- package/dist/components/Menu/SubmenuTrigger.d.ts +5 -0
- package/dist/components/Menu/SubmenuTrigger.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +12 -0
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +14 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +14 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/components/Rating/Rating.d.ts +18 -0
- package/dist/components/Rating/Rating.d.ts.map +1 -0
- package/dist/components/SectionHeader/SectionHeader.d.ts +12 -0
- package/dist/components/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/dist/components/Select/Option.d.ts +3 -0
- package/dist/components/Select/Option.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.d.ts +17 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +17 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/TopBar/TopBar.d.ts +18 -0
- package/dist/components/TopBar/TopBar.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +27 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1289 -810
- package/dist/typography/Heading/Heading.d.ts +9 -0
- package/dist/typography/Heading/Heading.d.ts.map +1 -1
- package/dist/typography/Text/Text.d.ts +11 -0
- package/dist/typography/Text/Text.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { RudiTypographyAlign, RudiTypographyTone, RudiTypographyWeight } from '../Text/Text';
|
|
1
2
|
export interface RudiHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
2
3
|
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
4
|
size?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
+
/** Font weight, overriding the size default. */
|
|
6
|
+
weight?: RudiTypographyWeight;
|
|
7
|
+
/** Semantic text color. */
|
|
8
|
+
tone?: RudiTypographyTone;
|
|
9
|
+
/** Text alignment. */
|
|
10
|
+
align?: RudiTypographyAlign;
|
|
11
|
+
/** Removes the element's default block margin. */
|
|
12
|
+
noMargin?: boolean;
|
|
4
13
|
children: React.ReactNode;
|
|
5
14
|
className?: string;
|
|
6
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/typography/Heading/Heading.tsx"],"names":[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|
|
|
1
|
+
export type RudiTypographyWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
2
|
+
export type RudiTypographyTone = 'default' | 'subtle' | 'disabled' | 'brand' | 'inverted' | 'success' | 'warning' | 'error' | 'info';
|
|
3
|
+
export type RudiTypographyAlign = 'start' | 'center' | 'end' | 'justify';
|
|
1
4
|
export interface RudiTextProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
5
|
variant?: 'body' | 'body-sm' | 'caption' | 'overline' | 'code';
|
|
3
6
|
as?: React.ElementType;
|
|
7
|
+
/** Font weight, overriding the variant default. */
|
|
8
|
+
weight?: RudiTypographyWeight;
|
|
9
|
+
/** Semantic text color. */
|
|
10
|
+
tone?: RudiTypographyTone;
|
|
11
|
+
/** Text alignment. */
|
|
12
|
+
align?: RudiTypographyAlign;
|
|
13
|
+
/** Removes the element's default block margin. */
|
|
14
|
+
noMargin?: boolean;
|
|
4
15
|
children: React.ReactNode;
|
|
5
16
|
className?: string;
|
|
6
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/typography/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAA;IAC9D,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/typography/Text/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAA;AAC7E,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,QAAQ,GACR,UAAU,GACV,OAAO,GACP,UAAU,GACV,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAA;AACV,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAA;AAExE,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAA;IAC9D,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,mDAAmD;IACnD,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,kBAAkB,CAAA;IACzB,sBAAsB;IACtB,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,uGA8BnB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rudiment-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Accessible React component library built on React Aria, with layout primitives, charts, and a three-tier design token architecture supporting
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Accessible React component library built on React Aria, with layout primitives, charts, and a three-tier design token architecture supporting eight built-in themes.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "storybook dev -p 6006",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"prepare": "npm run build:tokens && npm run build",
|
|
10
10
|
"prepublishOnly": "npm run build:tokens && npm run build",
|
|
11
11
|
"build-storybook": "storybook build",
|
|
12
|
-
"build:tokens": "style-dictionary build --config tokens/style-dictionary.config.mjs && style-dictionary build --config tokens/style-dictionary.config.dark.mjs && style-dictionary build --config tokens/style-dictionary.config.
|
|
12
|
+
"build:tokens": "style-dictionary build --config tokens/style-dictionary.config.mjs && style-dictionary build --config tokens/style-dictionary.config.dark.mjs && style-dictionary build --config tokens/style-dictionary.config.roomy.mjs && style-dictionary build --config tokens/style-dictionary.config.roomy-dark.mjs && style-dictionary build --config tokens/style-dictionary.config.soft.mjs && style-dictionary build --config tokens/style-dictionary.config.soft-dark.mjs && style-dictionary build --config tokens/style-dictionary.config.compressed.mjs && style-dictionary build --config tokens/style-dictionary.config.compressed-dark.mjs",
|
|
13
13
|
"test": "vitest",
|
|
14
14
|
"test:coverage": "vitest --coverage",
|
|
15
15
|
"test:watch": "vitest --watch"
|