Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add all docs for release in November #528

Merged
merged 22 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/screens/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,15 @@ const ButtonPage = () => (
<GenericBoolTrue />
</Property>

<Property name="button.elevation">
<Description>
The elevation for a given button. Should reference an elevation namespace from `theme.global.elevation`.
</Description>
<PropertyValue type="string">
<Example>'medium'</Example>
</PropertyValue>
</Property>

<Property name="button.extend">
<Description>Any additional style for the Button.</Description>
<GenericExtend />
Expand Down
188 changes: 187 additions & 1 deletion src/screens/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import {
GenericBoolFalse,
GenericGridArea,
GenericMargin,
GenericBool,
GenericRound,
} from '../utils/genericPropExamples';
import { GenericExtend } from '../utils/genericThemeExamples';
import { GenericExtend, GenericWeight } from '../utils/genericThemeExamples';
import {
ComponentDoc,
Properties,
Expand Down Expand Up @@ -315,6 +317,95 @@ const CalendarPage = () => (
</Properties>

<ThemeDoc>
<Property name="calendar.day.hover">
<Description>
Any additional background and color hover style for the Calendar
day.
</Description>
<PropertyValue type="string">
<Description>A hex, name, or rgb value.</Description>
<Example>"brand"</Example>
</PropertyValue>
<PropertyValue type="object">
<Description>
An object with a color for dark and light modes.
</Description>
<Example defaultValue>
{`{ dark: "light-4", light: "dark-3" }`}
</Example>
</PropertyValue>
</Property>
<Property name="calendar.day.selected">
<Description>
Any additional background and color selected style for the Calendar
day.
</Description>
<PropertyValue type="string">
<Description>A hex, name, or rgb value.</Description>
<Example>"brand"</Example>
</PropertyValue>
<PropertyValue type="object">
<Description>
An object with a color for dark and light modes.
</Description>
<Example defaultValue>
{`{ dark: "light-4", light: "dark-3" }`}
</Example>
</PropertyValue>
</Property>
<Property name="calendar.day.selected.font.weight">
<Description>Font weight for the selected date.</Description>
<GenericWeight defaultValue="bold" />
</Property>
<Property name="calendar.day.selected.hover">
<Description>
Any additional background and color hover style for the selected
Calendar day.
</Description>
<PropertyValue type="string">
<Description>A hex, name, or rgb value.</Description>
<Example>"brand"</Example>
</PropertyValue>
<PropertyValue type="object">
<Description>
An object with a color for dark and light modes.
</Description>
<Example defaultValue>
{`{ dark: "light-4", light: "dark-3" }`}
</Example>
</PropertyValue>
</Property>
<Property name="calendar.day.inRange.color">
<Description>
Any additional color style for the day in range of Calendar.
</Description>
<PropertyValue type="string">
<Description>A hex, name, or rgb value.</Description>
<Example>"brand"</Example>
</PropertyValue>
</Property>
<Property name="calendar.day.inRange.font.weight">
<Description>Font weight for the days in range.</Description>
<GenericWeight defaultValue="bold" />
</Property>
<Property name="calendar.day.inRange.hover">
<Description>
Any additional background and color hover style for the days in
range.
</Description>
<PropertyValue type="string">
<Description>A hex, name, or rgb value.</Description>
<Example>"brand"</Example>
</PropertyValue>
<PropertyValue type="object">
<Description>
An object with a color for dark and light modes.
</Description>
<Example defaultValue>
{`{ dark: "light-4", light: "dark-3" }`}
</Example>
</PropertyValue>
</Property>
<Property name="calendar.day.extend">
<Description>
Any additional style for the day of Calendar.
Expand Down Expand Up @@ -454,6 +545,38 @@ const CalendarPage = () => (
</PropertyValue>
</Property>

<Property name="calendar.small.day.round">
<Description>
The amount to round the corner of a day when small.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="calendar.small.range.round">
<Description>
The amount to round the corner of a day in range when small.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="calendar.small.range.round.start">
<Description>
The amount to round the corner of a day in range when small.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="calendar.small.range.round.end">
<Description>
The amount to round the corner of a day in range when small.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="calendar.small.daySize">
<Description>The size of a day when small.</Description>
<PropertyValue type="string">
Expand Down Expand Up @@ -507,13 +630,76 @@ const CalendarPage = () => (
</PropertyValue>
</Property>

<Property name="calendar.medium.day.round">
<Description>
The amount to round the corner of a day when medium.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="calendar.medium.range.round">
<Description>
The amount to round the corner of a day in range when medium.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="calendar.medium.range.round.start">
<Description>
The amount to round the corner of a day in range when medium.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="calendar.medium.range.round.end">
<Description>
The amount to round the corner of a day in range when medium.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="global.size.large">
<Description>The width of the calendar when large.</Description>
<PropertyValue type="string">
<Example defaultValue>"768px"</Example>
</PropertyValue>
</Property>

<Property name="calendar.large.day.round">
<Description>
The amount to round the corner of a day when large.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="calendar.large.range.round">
<Description>
The amount to round the corner of a day in range when large.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="calendar.large.range.round.start">
<Description>
The amount to round the corner of a day in range when large.
</Description>
<GenericBool />
<GenericRound />
</Property>

<Property name="calendar.large.range.round.end">
<Description>
The amount to round the corner of a day in range when large.
</Description>
<GenericBool />
<GenericRound />
</Property>
<IconColor />

<EdgeStyle description="The possible sizes for margin." />
Expand Down
8 changes: 8 additions & 0 deletions src/screens/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,14 @@ const DataTablePage = () => (
<GenericExtend />
</Property>

<Property name="dataTable.body.selected">
<PropertyValue type="object">
<Description>
Any additional style for an DataTable selected body.
</Description>
</PropertyValue>
</Property>

<Property name="dataTable.container">
<Description>
When using paginate, any valid Box props for the container
Expand Down
Loading