@primer/react-brand 0.2.1 → 0.3.0-rc.78f0d9f
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/CHANGELOG.md +172 -0
- package/lib/Accordion/Accordion.d.ts +29 -0
- package/lib/Accordion/index.d.ts +1 -0
- package/lib/FAQ/FAQ.d.ts +37 -0
- package/lib/FAQ/index.d.ts +1 -0
- package/lib/InlineLink/InlineLink.d.ts +24 -0
- package/lib/InlineLink/index.d.ts +1 -0
- package/lib/River/River.d.ts +3 -3
- package/lib/css/main.css +358 -18
- package/lib/css/stylesheets.d.ts +1 -0
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +16 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +6 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +19 -0
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +9 -0
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +16 -0
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +8 -0
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +19 -0
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +9 -0
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +19 -7
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +92 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +47 -0
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +31 -0
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +49 -0
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +173 -0
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +7 -2
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +7 -0
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +6 -0
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +7 -0
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +9 -0
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +9 -2
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +9 -2
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +18 -0
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +17 -0
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +15 -0
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +14 -0
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +16 -0
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +15 -0
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +18 -0
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +17 -0
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -1
- package/lib/index.js.LICENSE.txt +9 -0
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# @primer/react-brand
|
|
2
|
+
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c8609a8`](https://github.com/primer/react-brand/commit/c8609a8d35ea80192d85e97794390207f4624e63) Thanks [@rezrah](https://github.com/rezrah)! - added an FAQ component, which displays a list of questions and answers relating to a particular subject.
|
|
8
|
+
|
|
9
|
+
[See usage examples](https://primer.style/react-brand/components/FAQ)
|
|
10
|
+
|
|
11
|
+
* [#45](https://github.com/primer/react-brand/pull/45) [`2fb6924`](https://github.com/primer/react-brand/commit/2fb6924a834ddcbad34cfb97ecfc1659d54f4ed5) Thanks [@rezrah](https://github.com/rezrah)! - > **Warning**
|
|
12
|
+
|
|
13
|
+
> This is a breaking change, but as the library is a pre-v1 release we are publishing this update as a `minor` change.
|
|
14
|
+
> Please read the following instructions carefully before updating:
|
|
15
|
+
|
|
16
|
+
### Updated references for "left" and "right" to "start" and "end"
|
|
17
|
+
|
|
18
|
+
For improved i18n support and closer alignment with our Figma naming conventions, we have updated the references for "left" and "right" to "start" and "end" respectively in `Hero` and `River` components.
|
|
19
|
+
|
|
20
|
+
```diff
|
|
21
|
+
- <River align="left">
|
|
22
|
+
- <River align="right">
|
|
23
|
+
+ <River align="start">
|
|
24
|
+
+ <River align="end">
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## 0.2.1
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- [#38](https://github.com/primer/react-brand/pull/38) [`b0c9293`](https://github.com/primer/react-brand/commit/b0c929389d62f184e5ae447c0b00e351cb2d1c6e) Thanks [@rezrah](https://github.com/rezrah)! - updated `css-loader` to generate valid (escaped) class names
|
|
32
|
+
|
|
33
|
+
## 0.2.0
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- [#33](https://github.com/primer/react-brand/pull/33) [`662fcfc`](https://github.com/primer/react-brand/commit/662fcfc6d123460730317b7ddd3d3a4622d30dce) Thanks [@rezrah](https://github.com/rezrah)! - - Adds `River` component
|
|
38
|
+
|
|
39
|
+
- Renames `LinkButton` to `Button` :warning: (see below)
|
|
40
|
+
- Button supports polymorphism and can be used `as` either `a` or `button`
|
|
41
|
+
|
|
42
|
+
### `River`
|
|
43
|
+
|
|
44
|
+
**NEW** Component :sparkles:
|
|
45
|
+
|
|
46
|
+
<table>
|
|
47
|
+
<tr>
|
|
48
|
+
<th> Before</th> <th> After</th>
|
|
49
|
+
</tr>
|
|
50
|
+
<tr>
|
|
51
|
+
<td valign="top">❌</td>
|
|
52
|
+
<td valign="top">
|
|
53
|
+
|
|
54
|
+
```jsx
|
|
55
|
+
// import {River} from "@primer/react-brand";
|
|
56
|
+
|
|
57
|
+
<River>
|
|
58
|
+
<River.Visual>
|
|
59
|
+
<img
|
|
60
|
+
src="https://via.placeholder.com/600x400/f5f5f5/f5f5f5.png"
|
|
61
|
+
alt="placeholder, blank area with an off-white background color"
|
|
62
|
+
/>
|
|
63
|
+
</River.Visual>
|
|
64
|
+
<River.Content>
|
|
65
|
+
<Heading>Heading</Heading>
|
|
66
|
+
<Text>
|
|
67
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien sit ullamcorper id. Aliquam luctus sed turpis
|
|
68
|
+
felis nam pulvinar risus elementum.
|
|
69
|
+
</Text>
|
|
70
|
+
<Link href="#">Call to action</Link>
|
|
71
|
+
</River.Content>
|
|
72
|
+
</River>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
</td>
|
|
76
|
+
</tr>
|
|
77
|
+
</table>
|
|
78
|
+
|
|
79
|
+
See more examples in our documentation.
|
|
80
|
+
https://primer.style/react-brand/components/River
|
|
81
|
+
|
|
82
|
+
### `LinkButton`
|
|
83
|
+
|
|
84
|
+
> **Warning**
|
|
85
|
+
> The changes below should be considered a breaking change for anyone relying on `LinkButton`, but as we are shipping a pre-v1 library, this has been marked as a `minor` release rather than `major`. Please remember to update your usage per the below example.
|
|
86
|
+
|
|
87
|
+
<table>
|
|
88
|
+
<tr>
|
|
89
|
+
<th> Before</th> <th> After</th>
|
|
90
|
+
</tr>
|
|
91
|
+
<tr>
|
|
92
|
+
<td valign="top">
|
|
93
|
+
|
|
94
|
+
```jsx
|
|
95
|
+
//import { LinkButton } from '@primer/react-brand';
|
|
96
|
+
|
|
97
|
+
<LinkButton href="#">Sign up</LinkButton>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
</td>
|
|
101
|
+
<td valign="top">
|
|
102
|
+
|
|
103
|
+
```jsx
|
|
104
|
+
//import { Button } from '@primer/react-brand';
|
|
105
|
+
|
|
106
|
+
<Button as="a" href="#">
|
|
107
|
+
Sign up
|
|
108
|
+
</Button>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
</td>
|
|
112
|
+
</tr>
|
|
113
|
+
<tr>
|
|
114
|
+
<td valign="top">
|
|
115
|
+
|
|
116
|
+
❌
|
|
117
|
+
|
|
118
|
+
</td>
|
|
119
|
+
<td valign="top">
|
|
120
|
+
|
|
121
|
+
```jsx
|
|
122
|
+
//import { Button } from '@primer/react-brand';
|
|
123
|
+
|
|
124
|
+
<Button onClick={handler}>Sign Up</Button>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
</td>
|
|
128
|
+
</tr>
|
|
129
|
+
|
|
130
|
+
</table>
|
|
131
|
+
|
|
132
|
+
## 0.1.0
|
|
133
|
+
|
|
134
|
+
### Minor Changes
|
|
135
|
+
|
|
136
|
+
- [#19](https://github.com/primer/react-brand/pull/19) [`3b22e9e`](https://github.com/primer/react-brand/commit/3b22e9e0823401104d6e33b3c4f8664b755ea6ba) Thanks [@colebemis](https://github.com/colebemis)! - Add `size` prop to `Hero` component
|
|
137
|
+
|
|
138
|
+
### Patch Changes
|
|
139
|
+
|
|
140
|
+
- [#23](https://github.com/primer/react-brand/pull/23) [`77abf53`](https://github.com/primer/react-brand/commit/77abf535e77ef26fa29fb09d6d2dfb746f4bc383) Thanks [@rezrah](https://github.com/rezrah)! - add Text and Heading components
|
|
141
|
+
|
|
142
|
+
* [#29](https://github.com/primer/react-brand/pull/29) [`144c7d7`](https://github.com/primer/react-brand/commit/144c7d762a91cb691699e4f8923ab08385c77966) Thanks [@rezrah](https://github.com/rezrah)! - Removed `gh-variables.css` from package as Brand variables are now surfaced in main.css
|
|
143
|
+
|
|
144
|
+
**To upgrade:**
|
|
145
|
+
|
|
146
|
+
- _Remove_ `import "@primer/react-brand/lib/css/gh-variables.css"`
|
|
147
|
+
|
|
148
|
+
- _Add_ `import "@primer/react-brand/lib/css/main.css"`
|
|
149
|
+
|
|
150
|
+
- [#23](https://github.com/primer/react-brand/pull/23) [`77abf53`](https://github.com/primer/react-brand/commit/77abf535e77ef26fa29fb09d6d2dfb746f4bc383) Thanks [@rezrah](https://github.com/rezrah)! - forward className in Hero
|
|
151
|
+
|
|
152
|
+
* [#25](https://github.com/primer/react-brand/pull/25) [`4b00b72`](https://github.com/primer/react-brand/commit/4b00b72f5dbf5e578351ea77e1e74cddc69833e7) Thanks [@rezrah](https://github.com/rezrah)! - adds baseline tokens
|
|
153
|
+
|
|
154
|
+
- [#21](https://github.com/primer/react-brand/pull/21) [`ab06cce`](https://github.com/primer/react-brand/commit/ab06cceb6ed3b2eaca70f9738b9708343b4e6db9) Thanks [@rezrah](https://github.com/rezrah)! - Remove fixed background color from `Hero` to allow underlying customisation to be surfaced.
|
|
155
|
+
|
|
156
|
+
* [#27](https://github.com/primer/react-brand/pull/27) [`ca2d300`](https://github.com/primer/react-brand/commit/ca2d3002ba6f7ca9c719f80077c4d95246f33410) Thanks [@rezrah](https://github.com/rezrah)! - Updated Hero text appearance
|
|
157
|
+
|
|
158
|
+
- **updated** Hero description text size from `500` to `400`
|
|
159
|
+
- **updated** button alignment to not stretch on mobile viewports
|
|
160
|
+
- **removed** `size` prop. Now only one responsive size available.
|
|
161
|
+
|
|
162
|
+
## 0.0.3
|
|
163
|
+
|
|
164
|
+
### Patch Changes
|
|
165
|
+
|
|
166
|
+
- [#18](https://github.com/primer/react-brand/pull/18) [`0835830`](https://github.com/primer/react-brand/commit/0835830fc15c582e280ac692ff3d578d6bcf282e) Thanks [@rezrah](https://github.com/rezrah)! - Fixes for production bundles
|
|
167
|
+
|
|
168
|
+
## 0.0.2
|
|
169
|
+
|
|
170
|
+
### Patch Changes
|
|
171
|
+
|
|
172
|
+
- [#2](https://github.com/primer/react-brand/pull/2) [`ab01a8a`](https://github.com/primer/react-brand/commit/ab01a8ad1dc504f7a2865213b6f41c0b0adba131) Thanks [@colebemis](https://github.com/colebemis)! - Initialize releases with [changesets](https://github.com/changesets/changesets)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Design tokens
|
|
4
|
+
*/
|
|
5
|
+
import '../../lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css';
|
|
6
|
+
export declare type AccordionRootProps = {
|
|
7
|
+
open?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
children: React.ReactElement<AccordionHeadingProps | AccordionContentProps>[];
|
|
10
|
+
} & React.HTMLAttributes<HTMLDetailsElement>;
|
|
11
|
+
export declare function AccordionRoot({ children, className, open, ...rest }: AccordionRootProps): JSX.Element;
|
|
12
|
+
declare type AccordionHeadingProps = {
|
|
13
|
+
className?: string;
|
|
14
|
+
children: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function AccordionHeading({ children, className }: AccordionHeadingProps): JSX.Element;
|
|
17
|
+
declare type AccordionContentProps = {
|
|
18
|
+
className?: string;
|
|
19
|
+
children: React.ReactElement | React.ReactElement[];
|
|
20
|
+
};
|
|
21
|
+
export declare function AccordionContent({ children, className }: AccordionContentProps): JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* Branded Accordion component
|
|
24
|
+
*/
|
|
25
|
+
export declare const Accordion: typeof AccordionRoot & {
|
|
26
|
+
Content: typeof AccordionContent;
|
|
27
|
+
Heading: typeof AccordionHeading;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Accordion';
|
package/lib/FAQ/FAQ.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AccordionHeading, AccordionContent, AccordionRoot, AccordionRootProps } from '..';
|
|
3
|
+
/**
|
|
4
|
+
* Design tokens
|
|
5
|
+
*/
|
|
6
|
+
import '../../lib/design-tokens/css/tokens/functional/components/faq/base.css';
|
|
7
|
+
import '../../lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css';
|
|
8
|
+
declare type FAQRootProps = {
|
|
9
|
+
className?: string;
|
|
10
|
+
children: React.ReactElement<FAQHeadingProps | FAQSubheadingProps | AccordionRootProps>[];
|
|
11
|
+
};
|
|
12
|
+
declare function FAQRoot({ children, className }: FAQRootProps): JSX.Element;
|
|
13
|
+
declare type FAQHeadingProps = {
|
|
14
|
+
className?: string;
|
|
15
|
+
size?: 'medium' | 'large';
|
|
16
|
+
align?: 'start' | 'center';
|
|
17
|
+
children: string;
|
|
18
|
+
};
|
|
19
|
+
declare function FAQHeading({ children, className, size, align }: FAQHeadingProps): JSX.Element;
|
|
20
|
+
declare type FAQSubheadingProps = {
|
|
21
|
+
align?: 'start' | 'center';
|
|
22
|
+
className?: string;
|
|
23
|
+
children: string;
|
|
24
|
+
};
|
|
25
|
+
declare function FAQSubheading({ children, className }: FAQSubheadingProps): JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* FAQ component:
|
|
28
|
+
* {@link https://primer.style/react-brand/components/FAQ/ See usage examples}.
|
|
29
|
+
*/
|
|
30
|
+
export declare const FAQ: typeof FAQRoot & {
|
|
31
|
+
Subheading: typeof FAQSubheading;
|
|
32
|
+
Heading: typeof FAQHeading;
|
|
33
|
+
Item: typeof AccordionRoot;
|
|
34
|
+
Question: typeof AccordionHeading;
|
|
35
|
+
Answer: typeof AccordionContent;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FAQ';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { TextSizes } from '../';
|
|
3
|
+
/**
|
|
4
|
+
* Design tokens
|
|
5
|
+
*/
|
|
6
|
+
import '../../lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css';
|
|
7
|
+
export declare type InlineLinkProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Forward a custom HTML class attribute
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Specify the links destination
|
|
14
|
+
*/
|
|
15
|
+
href: string;
|
|
16
|
+
/**
|
|
17
|
+
* Specify the text size
|
|
18
|
+
*/
|
|
19
|
+
size?: typeof TextSizes[number];
|
|
20
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
21
|
+
/**
|
|
22
|
+
* A HTML anchor link component that renders inline with adjacent text.
|
|
23
|
+
*/
|
|
24
|
+
export declare function InlineLink({ className, size, children, href, ...rest }: PropsWithChildren<InlineLinkProps>): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InlineLink';
|
package/lib/River/River.d.ts
CHANGED
|
@@ -18,12 +18,12 @@ export declare type RiverProps = {
|
|
|
18
18
|
*/
|
|
19
19
|
imageTextRatio?: '60:40' | '50:50';
|
|
20
20
|
/**
|
|
21
|
-
* Adjust the order of the `Content` column. The default is `
|
|
21
|
+
* Adjust the order of the `Content` column. The default is `start`.
|
|
22
22
|
*/
|
|
23
|
-
align?: '
|
|
23
|
+
align?: 'start' | 'end' | 'center';
|
|
24
24
|
};
|
|
25
25
|
export declare const defaultRiverImageTextRatio = "50:50";
|
|
26
|
-
export declare const defaultRiverAlign = "
|
|
26
|
+
export declare const defaultRiverAlign = "start";
|
|
27
27
|
declare function Root({ imageTextRatio, align, className, children, ...rest }: RiverProps): JSX.Element;
|
|
28
28
|
declare type RiverContentProps = {
|
|
29
29
|
/**
|