rudiment-ui 0.1.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 +325 -35
- package/dist/components/Alert/Alert.d.ts +2 -2
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.d.ts +48 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +2 -2
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +14 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +8 -8
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Charts/BarChart/BarChart.d.ts +7 -3
- package/dist/components/Charts/BarChart/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/DonutChart/DonutChart.d.ts +4 -4
- package/dist/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
- package/dist/components/Charts/LineChart/LineChart.d.ts +8 -3
- package/dist/components/Charts/LineChart/LineChart.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxGroup.d.ts +2 -2
- package/dist/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/CircularProgress/CircularProgress.d.ts +2 -2
- package/dist/components/CircularProgress/CircularProgress.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +2 -2
- package/dist/components/Dialog/Dialog.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/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +2 -2
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/Image/Image.d.ts +18 -0
- package/dist/components/Image/Image.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Kanban/KanbanBoard.d.ts +12 -12
- package/dist/components/Kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/components/Kanban/KanbanCard.d.ts +2 -2
- package/dist/components/Kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/Kanban/KanbanColumn.d.ts +5 -5
- package/dist/components/Kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/components/Link/Link.d.ts +16 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Menu/Keyboard.d.ts +2 -2
- package/dist/components/Menu/Keyboard.d.ts.map +1 -1
- package/dist/components/Menu/Menu.d.ts +2 -2
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/MenuItem.d.ts +11 -2
- package/dist/components/Menu/MenuItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuSection.d.ts +2 -2
- package/dist/components/Menu/MenuSection.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/MenuTrigger.d.ts +2 -2
- package/dist/components/Menu/MenuTrigger.d.ts.map +1 -1
- package/dist/components/Menu/SubmenuTrigger.d.ts +5 -0
- package/dist/components/Menu/SubmenuTrigger.d.ts.map +1 -0
- package/dist/components/NavItem/NavItem.d.ts +2 -2
- package/dist/components/NavItem/NavItem.d.ts.map +1 -1
- 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 +15 -3
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.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/Select/Select.d.ts +2 -2
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/StatCard/StatCard.d.ts +2 -2
- package/dist/components/StatCard/StatCard.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.d.ts +17 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts +17 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +4 -4
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- 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 +109 -85
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1424 -945
- package/dist/layouts/Box/Box.d.ts +2 -2
- package/dist/layouts/Box/Box.d.ts.map +1 -1
- package/dist/layouts/Center/Center.d.ts +2 -2
- package/dist/layouts/Center/Center.d.ts.map +1 -1
- package/dist/layouts/Cluster/Cluster.d.ts +2 -2
- package/dist/layouts/Cluster/Cluster.d.ts.map +1 -1
- package/dist/layouts/Cover/Cover.d.ts +2 -2
- package/dist/layouts/Cover/Cover.d.ts.map +1 -1
- package/dist/layouts/Grid/Grid.d.ts +2 -2
- package/dist/layouts/Grid/Grid.d.ts.map +1 -1
- package/dist/layouts/Sidebar/Sidebar.d.ts +2 -2
- package/dist/layouts/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/layouts/Stack/Stack.d.ts +3 -3
- package/dist/layouts/Stack/Stack.d.ts.map +1 -1
- package/dist/layouts/Switcher/Switcher.d.ts +2 -2
- package/dist/layouts/Switcher/Switcher.d.ts.map +1 -1
- package/dist/typography/Heading/Heading.d.ts +11 -2
- package/dist/typography/Heading/Heading.d.ts.map +1 -1
- package/dist/typography/Prose/Prose.d.ts +2 -2
- package/dist/typography/Prose/Prose.d.ts.map +1 -1
- package/dist/typography/Text/Text.d.ts +13 -2
- package/dist/typography/Text/Text.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface RudiBoxProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
2
|
padding?: string;
|
|
3
3
|
bordered?: boolean;
|
|
4
4
|
invert?: boolean;
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const RudiBox: import('react').ForwardRefExoticComponent<RudiBoxProps & import('react').RefAttributes<HTMLElement>>;
|
|
9
9
|
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/layouts/Box/Box.tsx"],"names":[],"mappings":"AAGA,OAAO,WAAW,CAAA;AAElB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/layouts/Box/Box.tsx"],"names":[],"mappings":"AAGA,OAAO,WAAW,CAAA;AAElB,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACrE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,OAAO,sGA+BlB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface RudiCenterProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
2
|
maxWidth?: string;
|
|
3
3
|
gutters?: string;
|
|
4
4
|
intrinsic?: boolean;
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const RudiCenter: import('react').ForwardRefExoticComponent<RudiCenterProps & import('react').RefAttributes<HTMLElement>>;
|
|
9
9
|
//# sourceMappingURL=Center.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../src/layouts/Center/Center.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../../src/layouts/Center/Center.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,UAAU,yGA+BrB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface RudiClusterProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
2
|
space?: string;
|
|
3
3
|
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
|
|
4
4
|
align?: 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const RudiCluster: import('react').ForwardRefExoticComponent<RudiClusterProps & import('react').RefAttributes<HTMLElement>>;
|
|
9
9
|
//# sourceMappingURL=Cluster.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cluster/Cluster.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cluster/Cluster.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EACJ,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,eAAe,GACf,cAAc,CAAA;IAClB,KAAK,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;IACrE,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,WAAW,0GA4BtB,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface RudiCoverProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
2
|
minHeight?: string;
|
|
3
3
|
space?: string;
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const RudiCover: import('react').ForwardRefExoticComponent<RudiCoverProps & import('react').RefAttributes<HTMLElement>>;
|
|
8
8
|
//# sourceMappingURL=Cover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cover.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cover/Cover.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Cover.d.ts","sourceRoot":"","sources":["../../../src/layouts/Cover/Cover.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACvE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,SAAS,wGA0BpB,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface RudiGridProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
2
|
minCellWidth?: string;
|
|
3
3
|
space?: string;
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const RudiGrid: import('react').ForwardRefExoticComponent<RudiGridProps & import('react').RefAttributes<HTMLElement>>;
|
|
8
8
|
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/layouts/Grid/Grid.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../src/layouts/Grid/Grid.tsx"],"names":[],"mappings":"AAEA,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,QAAQ,uGA0BnB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface RudiSidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
2
|
side?: 'left' | 'right';
|
|
3
3
|
sideWidth?: string;
|
|
4
4
|
contentMin?: string;
|
|
@@ -7,5 +7,5 @@ export interface SidebarProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
7
7
|
as?: React.ElementType;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const RudiSidebar: import('react').ForwardRefExoticComponent<RudiSidebarProps & import('react').RefAttributes<HTMLElement>>;
|
|
11
11
|
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/layouts/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../src/layouts/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,WAAW,0GAmCtB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
/** CSS spacing value. Defaults to --
|
|
1
|
+
export interface RudiStackProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
|
+
/** CSS spacing value. Defaults to --rudi-layout-stack-space-default token. */
|
|
3
3
|
space?: string;
|
|
4
4
|
/** Apply spacing recursively to all nested elements, not just direct children. */
|
|
5
5
|
recursive?: boolean;
|
|
@@ -9,5 +9,5 @@ export interface StackProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
9
9
|
as?: React.ElementType;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const RudiStack: import('react').ForwardRefExoticComponent<RudiStackProps & import('react').RefAttributes<HTMLElement>>;
|
|
13
13
|
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/layouts/Stack/Stack.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../src/layouts/Stack/Stack.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACvE,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,SAAS,wGAsDpB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface RudiSwitcherProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
2
|
threshold?: string;
|
|
3
3
|
space?: string;
|
|
4
4
|
limit?: number;
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const RudiSwitcher: import('react').ForwardRefExoticComponent<RudiSwitcherProps & import('react').RefAttributes<HTMLElement>>;
|
|
9
9
|
//# sourceMappingURL=Switcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switcher.d.ts","sourceRoot":"","sources":["../../../src/layouts/Switcher/Switcher.tsx"],"names":[],"mappings":"AAEA,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Switcher.d.ts","sourceRoot":"","sources":["../../../src/layouts/Switcher/Switcher.tsx"],"names":[],"mappings":"AAEA,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,YAAY,2GA6BxB,CAAA"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { RudiTypographyAlign, RudiTypographyTone, RudiTypographyWeight } from '../Text/Text';
|
|
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
|
}
|
|
7
|
-
export declare const
|
|
16
|
+
export declare const RudiHeading: import('react').ForwardRefExoticComponent<RudiHeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
8
17
|
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/typography/Heading/Heading.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/typography/Heading/Heading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IAChF,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC5B,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC5B,gDAAgD;IAChD,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,WAAW,iHAyBvB,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface RudiProseProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
2
|
size?: 'sm' | 'base' | 'lg';
|
|
3
3
|
as?: React.ElementType;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const RudiProse: import('react').ForwardRefExoticComponent<RudiProseProps & import('react').RefAttributes<HTMLElement>>;
|
|
8
8
|
//# sourceMappingURL=Prose.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prose.d.ts","sourceRoot":"","sources":["../../../src/typography/Prose/Prose.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Prose.d.ts","sourceRoot":"","sources":["../../../src/typography/Prose/Prose.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACvE,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAA;IAC3B,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,SAAS,wGAiBpB,CAAA"}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
export
|
|
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';
|
|
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
|
}
|
|
7
|
-
export declare const
|
|
18
|
+
export declare const RudiText: import('react').ForwardRefExoticComponent<RudiTextProps & import('react').RefAttributes<HTMLElement>>;
|
|
8
19
|
//# sourceMappingURL=Text.d.ts.map
|
|
@@ -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,
|
|
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"
|