@mitcsutt/kiln-ui 0.2.0 → 0.2.1
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/dist/components/display/List/List.module.js.map +1 -1
- package/dist/components/display/Table/Table.module.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/custom-theme/SKILL.md +1 -1
- package/skills/layout-composition/SKILL.md +11 -11
- package/skills/layout-composition/references/action-bar.md +1 -1
- package/skills/layout-composition/references/app-shell.md +1 -1
- package/skills/layout-composition/references/aspect-ratio.md +1 -1
- package/skills/layout-composition/references/box.md +1 -1
- package/skills/layout-composition/references/checkout.md +1 -1
- package/skills/layout-composition/references/container.md +1 -1
- package/skills/layout-composition/references/dashboard.md +1 -1
- package/skills/layout-composition/references/divider.md +1 -1
- package/skills/layout-composition/references/settings.md +1 -1
- package/skills/layout-composition/references/visually-hidden.md +1 -1
- package/skills/setup-and-theming/SKILL.md +1 -1
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ A Kiln theme is one CSS file. It sets the tokens in the [contract](references/to
|
|
|
24
24
|
```tsx
|
|
25
25
|
import { Box, Button, Heading, Inline, Stack, Text, ThemeScope } from '@mitcsutt/kiln-ui'
|
|
26
26
|
|
|
27
|
-
export
|
|
27
|
+
export function Usage() {
|
|
28
28
|
return (
|
|
29
29
|
<ThemeScope theme="harbour">
|
|
30
30
|
<Box padding={6}>
|
|
@@ -50,7 +50,7 @@ Vary the rhythm. Adjacent sections shouldn't share a `space` step, and a page us
|
|
|
50
50
|
```tsx
|
|
51
51
|
import { Button, Inline, Stack, Text, TextField } from '@mitcsutt/kiln-ui'
|
|
52
52
|
|
|
53
|
-
export
|
|
53
|
+
export function Density() {
|
|
54
54
|
return (
|
|
55
55
|
<Inline gap={7} align="start">
|
|
56
56
|
{(['compact', undefined, 'comfortable'] as const).map((density) => (
|
|
@@ -96,7 +96,7 @@ import { Box, Grid, Text } from '@mitcsutt/kiln-ui'
|
|
|
96
96
|
|
|
97
97
|
const STOPS = ['Harbour', 'Northpoint', 'Kelso Bay', 'Ferry Lane', 'Old Quay', 'Marram Point']
|
|
98
98
|
|
|
99
|
-
export
|
|
99
|
+
export function ResponsiveProps() {
|
|
100
100
|
return (
|
|
101
101
|
<Grid columns={{ base: 1, sm: 2, lg: 3 }} gap={{ base: 3, md: 5 }}>
|
|
102
102
|
{STOPS.map((stop) => (
|
|
@@ -124,7 +124,7 @@ A column of things with consistent space between them. The layout you'll reach f
|
|
|
124
124
|
```tsx
|
|
125
125
|
import { Button, Heading, Stack, Text } from '@mitcsutt/kiln-ui'
|
|
126
126
|
|
|
127
|
-
export
|
|
127
|
+
export function Usage() {
|
|
128
128
|
return (
|
|
129
129
|
<Stack gap={4} align="start">
|
|
130
130
|
<Heading level={3} size="xl">
|
|
@@ -152,7 +152,7 @@ const STOPS = [
|
|
|
152
152
|
{ name: 'Kelso Bay Pier', time: '23:31' },
|
|
153
153
|
]
|
|
154
154
|
|
|
155
|
-
export
|
|
155
|
+
export function Dividers() {
|
|
156
156
|
return (
|
|
157
157
|
<Stack gap={{ base: 3, md: 4 }} dividers>
|
|
158
158
|
{STOPS.map((stop) => (
|
|
@@ -196,7 +196,7 @@ Things in a row that wrap when they run out of room. Button rows, tag lists, too
|
|
|
196
196
|
```tsx
|
|
197
197
|
import { Badge, Button, Inline, Text } from '@mitcsutt/kiln-ui'
|
|
198
198
|
|
|
199
|
-
export
|
|
199
|
+
export function Usage() {
|
|
200
200
|
return (
|
|
201
201
|
<Inline gap={3} justify={{ base: 'start', md: 'between' }}>
|
|
202
202
|
<Inline gap={2}>
|
|
@@ -244,7 +244,7 @@ import { Box, Grid, Text } from '@mitcsutt/kiln-ui'
|
|
|
244
244
|
|
|
245
245
|
const LINES = ['Red', 'Harbour', 'Coastal', 'Night', 'Airport', 'Orbital', 'Market', 'University']
|
|
246
246
|
|
|
247
|
-
export
|
|
247
|
+
export function Columns() {
|
|
248
248
|
return (
|
|
249
249
|
<Grid columns={{ base: 1, sm: 2, lg: 4 }} gap={4}>
|
|
250
250
|
{LINES.map((line) => (
|
|
@@ -266,7 +266,7 @@ import { Box, Grid, Text } from '@mitcsutt/kiln-ui'
|
|
|
266
266
|
|
|
267
267
|
const PIERS = ['North pier', 'South pier', 'Ferry terminal', 'Lifeboat station', 'Fish market']
|
|
268
268
|
|
|
269
|
-
export
|
|
269
|
+
export function AutoFill() {
|
|
270
270
|
return (
|
|
271
271
|
<Grid minItemWidth="xs" gap={4}>
|
|
272
272
|
{PIERS.map((pier) => (
|
|
@@ -286,7 +286,7 @@ export default function AutoFill() {
|
|
|
286
286
|
```tsx
|
|
287
287
|
import { Box, Grid, Text } from '@mitcsutt/kiln-ui'
|
|
288
288
|
|
|
289
|
-
export
|
|
289
|
+
export function Items() {
|
|
290
290
|
return (
|
|
291
291
|
<Grid columns={{ base: 1, md: 3 }} gap={4}>
|
|
292
292
|
<Grid.Item span={{ base: 1, md: 2 }}>
|
|
@@ -357,7 +357,7 @@ const CHANGES = [
|
|
|
357
357
|
'Kelso Bay Pier reopens on 3 November.',
|
|
358
358
|
]
|
|
359
359
|
|
|
360
|
-
export
|
|
360
|
+
export function Usage() {
|
|
361
361
|
return (
|
|
362
362
|
<Split ratio="5/7" gap={{ base: 5, md: 7 }}>
|
|
363
363
|
<Heading level={3} size="2xl">
|
|
@@ -380,7 +380,7 @@ export default function Usage() {
|
|
|
380
380
|
```tsx
|
|
381
381
|
import { Box, Split, Stack, Text } from '@mitcsutt/kiln-ui'
|
|
382
382
|
|
|
383
|
-
export
|
|
383
|
+
export function Ratios() {
|
|
384
384
|
return (
|
|
385
385
|
<Stack gap={4}>
|
|
386
386
|
{(['1/1', '1/2', '1/3', '5/7'] as const).map((ratio) => (
|
|
@@ -425,7 +425,7 @@ A full-bleed band of vertical space, with an optional surface and rules. Put a C
|
|
|
425
425
|
```tsx
|
|
426
426
|
import { Button, Container, Heading, Section, Stack, Text } from '@mitcsutt/kiln-ui'
|
|
427
427
|
|
|
428
|
-
export
|
|
428
|
+
export function Usage() {
|
|
429
429
|
return (
|
|
430
430
|
<>
|
|
431
431
|
<Section space={7}>
|
|
@@ -11,7 +11,7 @@ Source: https://kiln.mitchellsutton.com/docs/ui/layout/action-bar
|
|
|
11
11
|
```tsx
|
|
12
12
|
import { ActionBar, Button, Stack, TextField } from '@mitcsutt/kiln-ui'
|
|
13
13
|
|
|
14
|
-
export
|
|
14
|
+
export function Usage() {
|
|
15
15
|
return (
|
|
16
16
|
<Stack gap={5}>
|
|
17
17
|
<TextField label="Route name" defaultValue="Morning commute" />
|
|
@@ -11,7 +11,7 @@ Source: https://kiln.mitchellsutton.com/docs/ui/layout/box
|
|
|
11
11
|
```tsx
|
|
12
12
|
import { Box, Stack, Text } from '@mitcsutt/kiln-ui'
|
|
13
13
|
|
|
14
|
-
export
|
|
14
|
+
export function Usage() {
|
|
15
15
|
return (
|
|
16
16
|
<Stack gap={4}>
|
|
17
17
|
<Box padding={{ base: 4, md: 5 }} surface="sunken" radius="surface">
|
|
@@ -11,7 +11,7 @@ Source: https://kiln.mitchellsutton.com/docs/ui/layout/container
|
|
|
11
11
|
```tsx
|
|
12
12
|
import { Container, Stack, Text } from '@mitcsutt/kiln-ui'
|
|
13
13
|
|
|
14
|
-
export
|
|
14
|
+
export function Usage() {
|
|
15
15
|
return (
|
|
16
16
|
<Stack gap={4}>
|
|
17
17
|
{(['narrow', 'text', 'content'] as const).map((width) => (
|
|
@@ -11,7 +11,7 @@ Source: https://kiln.mitchellsutton.com/docs/ui/layout/divider
|
|
|
11
11
|
```tsx
|
|
12
12
|
import { Divider, Inline, Stack, Text } from '@mitcsutt/kiln-ui'
|
|
13
13
|
|
|
14
|
-
export
|
|
14
|
+
export function Usage() {
|
|
15
15
|
return (
|
|
16
16
|
<Stack gap={4}>
|
|
17
17
|
<Text>Morning departures</Text>
|
|
@@ -11,7 +11,7 @@ Source: https://kiln.mitchellsutton.com/docs/ui/layout/visually-hidden
|
|
|
11
11
|
```tsx
|
|
12
12
|
import { Inline, Text, VisuallyHidden } from '@mitcsutt/kiln-ui'
|
|
13
13
|
|
|
14
|
-
export
|
|
14
|
+
export function Usage() {
|
|
15
15
|
return (
|
|
16
16
|
<Inline gap={2}>
|
|
17
17
|
<Text numeric weight="strong">
|
|
@@ -70,7 +70,7 @@ Screens are built from layout primitives and typed props, never utility classes
|
|
|
70
70
|
```tsx
|
|
71
71
|
import { Button, Container, Heading, Inline, Section, Stack, Text } from '@mitcsutt/kiln-ui'
|
|
72
72
|
|
|
73
|
-
export
|
|
73
|
+
export function Usage() {
|
|
74
74
|
return (
|
|
75
75
|
<Section space={7}>
|
|
76
76
|
<Container width="text">
|