@prestack/thread-ui 0.1.9 → 0.1.11
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 +366 -0
- package/dist/ui/attach.js +6 -7
- package/dist/ui/compositions.d.ts +0 -2
- package/dist/ui/compositions.js +2 -112
- package/dist/ui/generators/routes.js +1 -0
- package/dist/ui/variant.d.ts +1 -3
- package/package.json +2 -2
- package/dist/ui/animations/anm_appear.ts +0 -13
- package/dist/ui/animations/anm_blur_in.ts +0 -19
- package/dist/ui/animations/anm_blur_out.ts +0 -18
- package/dist/ui/animations/anm_dismiss.ts +0 -18
- package/dist/ui/animations/anm_drop.ts +0 -19
- package/dist/ui/animations/anm_fall.ts +0 -18
- package/dist/ui/animations/anm_flash.ts +0 -18
- package/dist/ui/animations/anm_glow.ts +0 -16
- package/dist/ui/animations/anm_lift.ts +0 -16
- package/dist/ui/animations/anm_nudge.ts +0 -16
- package/dist/ui/animations/anm_pop_in.ts +0 -23
- package/dist/ui/animations/anm_pop_out.ts +0 -22
- package/dist/ui/animations/anm_press.ts +0 -12
- package/dist/ui/animations/anm_pulse.ts +0 -13
- package/dist/ui/animations/anm_rise.ts +0 -19
- package/dist/ui/animations/anm_shake.ts +0 -13
- package/dist/ui/animations/anm_slide_in_left.ts +0 -19
- package/dist/ui/animations/anm_slide_in_right.ts +0 -19
- package/dist/ui/animations/anm_slide_out_left.ts +0 -18
- package/dist/ui/animations/anm_slide_out_right.ts +0 -18
- package/dist/ui/animations/anm_spin.ts +0 -12
- package/dist/ui/animations/anm_swell.ts +0 -16
- package/dist/ui/animations/anm_wobble.ts +0 -24
- package/dist/ui/animations/anm_zoom_in.ts +0 -19
- package/dist/ui/animations/anm_zoom_out.ts +0 -18
- package/dist/ui/animations.ts +0 -308
- package/dist/ui/attach.ts +0 -553
- package/dist/ui/charts.tsx +0 -69
- package/dist/ui/checked.ts +0 -32
- package/dist/ui/collector.ts +0 -140
- package/dist/ui/compositions.ts +0 -555
- package/dist/ui/consent.ts +0 -55
- package/dist/ui/content.tsx +0 -27
- package/dist/ui/contrast.ts +0 -27
- package/dist/ui/controls.tsx +0 -25
- package/dist/ui/disclosure.tsx +0 -20
- package/dist/ui/dismiss-layer.ts +0 -87
- package/dist/ui/door.ts +0 -140
- package/dist/ui/drag.ts +0 -316
- package/dist/ui/elements/accordion.tsx +0 -47
- package/dist/ui/elements/accordion.works.ts +0 -66
- package/dist/ui/elements/aspect-ratio.tsx +0 -31
- package/dist/ui/elements/aspect-ratio.works.ts +0 -5
- package/dist/ui/elements/avatar.tsx +0 -34
- package/dist/ui/elements/avatar.works.ts +0 -16
- package/dist/ui/elements/badge.tsx +0 -33
- package/dist/ui/elements/badge.works.ts +0 -9
- package/dist/ui/elements/bars.tsx +0 -50
- package/dist/ui/elements/bars.works.ts +0 -29
- package/dist/ui/elements/box.tsx +0 -36
- package/dist/ui/elements/breadcrumb.tsx +0 -38
- package/dist/ui/elements/breadcrumb.works.ts +0 -24
- package/dist/ui/elements/button.tsx +0 -46
- package/dist/ui/elements/button.works.tsx +0 -52
- package/dist/ui/elements/column.tsx +0 -29
- package/dist/ui/elements/consent.tsx +0 -71
- package/dist/ui/elements/consent.works.tsx +0 -132
- package/dist/ui/elements/donut.tsx +0 -45
- package/dist/ui/elements/donut.works.ts +0 -42
- package/dist/ui/elements/each.tsx +0 -34
- package/dist/ui/elements/each.works.tsx +0 -82
- package/dist/ui/elements/empty.tsx +0 -33
- package/dist/ui/elements/field.tsx +0 -45
- package/dist/ui/elements/field.works.ts +0 -65
- package/dist/ui/elements/funnel.tsx +0 -50
- package/dist/ui/elements/funnel.works.ts +0 -37
- package/dist/ui/elements/gauge.tsx +0 -40
- package/dist/ui/elements/gauge.works.ts +0 -42
- package/dist/ui/elements/glyph.tsx +0 -30
- package/dist/ui/elements/glyph.works.tsx +0 -42
- package/dist/ui/elements/grid.tsx +0 -29
- package/dist/ui/elements/heatmap.tsx +0 -48
- package/dist/ui/elements/heatmap.works.ts +0 -24
- package/dist/ui/elements/hit-box.tsx +0 -47
- package/dist/ui/elements/hit-box.works.tsx +0 -576
- package/dist/ui/elements/image.tsx +0 -29
- package/dist/ui/elements/line-chart.tsx +0 -45
- package/dist/ui/elements/line-chart.works.ts +0 -41
- package/dist/ui/elements/link.tsx +0 -38
- package/dist/ui/elements/link.works.ts +0 -25
- package/dist/ui/elements/media.tsx +0 -57
- package/dist/ui/elements/menu.tsx +0 -51
- package/dist/ui/elements/menu.works.tsx +0 -154
- package/dist/ui/elements/money.tsx +0 -36
- package/dist/ui/elements/money.works.ts +0 -9
- package/dist/ui/elements/pagination.tsx +0 -39
- package/dist/ui/elements/pagination.works.ts +0 -20
- package/dist/ui/elements/progress.tsx +0 -34
- package/dist/ui/elements/progress.works.ts +0 -8
- package/dist/ui/elements/radio-group.tsx +0 -50
- package/dist/ui/elements/radio-group.works.ts +0 -33
- package/dist/ui/elements/row.tsx +0 -29
- package/dist/ui/elements/scatter.tsx +0 -42
- package/dist/ui/elements/scatter.works.ts +0 -38
- package/dist/ui/elements/select.tsx +0 -43
- package/dist/ui/elements/select.works.ts +0 -5
- package/dist/ui/elements/separator.tsx +0 -31
- package/dist/ui/elements/skeleton.tsx +0 -31
- package/dist/ui/elements/slider.tsx +0 -34
- package/dist/ui/elements/slider.works.ts +0 -5
- package/dist/ui/elements/sparkline.tsx +0 -37
- package/dist/ui/elements/sparkline.works.ts +0 -32
- package/dist/ui/elements/spinner.tsx +0 -33
- package/dist/ui/elements/stack.tsx +0 -29
- package/dist/ui/elements/stat.tsx +0 -36
- package/dist/ui/elements/stat.works.ts +0 -14
- package/dist/ui/elements/surface.tsx +0 -36
- package/dist/ui/elements/surface.works.ts +0 -9
- package/dist/ui/elements/table.tsx +0 -62
- package/dist/ui/elements/table.works.ts +0 -30
- package/dist/ui/elements/tabs.tsx +0 -47
- package/dist/ui/elements/tabs.works.ts +0 -84
- package/dist/ui/elements/text.tsx +0 -33
- package/dist/ui/elements/textarea.tsx +0 -38
- package/dist/ui/elements/textarea.works.ts +0 -5
- package/dist/ui/elements/time.tsx +0 -40
- package/dist/ui/elements/time.works.ts +0 -29
- package/dist/ui/elements/toggle.tsx +0 -34
- package/dist/ui/elements/toggle.works.ts +0 -5
- package/dist/ui/elements/tooltip.tsx +0 -40
- package/dist/ui/elements/tooltip.works.ts +0 -77
- package/dist/ui/elements/value.tsx +0 -38
- package/dist/ui/elements/value.works.ts +0 -9
- package/dist/ui/elements.ts +0 -127
- package/dist/ui/focus-scope.ts +0 -121
- package/dist/ui/fonts.ts +0 -355
- package/dist/ui/generators/dev.d.ts +0 -1
- package/dist/ui/generators/dev.js +0 -61
- package/dist/ui/generators/dev.ts +0 -74
- package/dist/ui/generators/elements.ts +0 -796
- package/dist/ui/generators/i18n.ts +0 -283
- package/dist/ui/generators/icons.ts +0 -207
- package/dist/ui/generators/react.ts +0 -267
- package/dist/ui/generators/routes.ts +0 -847
- package/dist/ui/generators/show.ts +0 -261
- package/dist/ui/generators/styles.ts +0 -677
- package/dist/ui/generators/variants.ts +0 -196
- package/dist/ui/i18n/catalogs/en.ts +0 -191
- package/dist/ui/i18n/format.ts +0 -221
- package/dist/ui/i18n/locales.ts +0 -33
- package/dist/ui/i18n/parse.ts +0 -315
- package/dist/ui/i18n/translator.ts +0 -31
- package/dist/ui/i18n/types.ts +0 -96
- package/dist/ui/icons.ts +0 -331
- package/dist/ui/islands/map.ts +0 -58
- package/dist/ui/localizations.ts +0 -75
- package/dist/ui/material.ts +0 -236
- package/dist/ui/materials/mat_bordered.ts +0 -13
- package/dist/ui/materials/mat_ceramic.ts +0 -13
- package/dist/ui/materials/mat_clay.ts +0 -13
- package/dist/ui/materials/mat_elevated.ts +0 -24
- package/dist/ui/materials/mat_flat.ts +0 -34
- package/dist/ui/materials/mat_glass.ts +0 -20
- package/dist/ui/materials/mat_lit.ts +0 -13
- package/dist/ui/materials/mat_moulded.ts +0 -11
- package/dist/ui/materials.ts +0 -197
- package/dist/ui/modes.ts +0 -44
- package/dist/ui/navigation.tsx +0 -29
- package/dist/ui/positioning.ts +0 -90
- package/dist/ui/presented.tsx +0 -119
- package/dist/ui/provider.tsx +0 -184
- package/dist/ui/render-loop.ts +0 -133
- package/dist/ui/roving-focus.ts +0 -161
- package/dist/ui/screens.ts +0 -141
- package/dist/ui/scroll-lock.ts +0 -28
- package/dist/ui/series.ts +0 -97
- package/dist/ui/signals.ts +0 -386
- package/dist/ui/styleguide.ts +0 -231
- package/dist/ui/styleguides.ts +0 -374
- package/dist/ui/themes.ts +0 -22
- package/dist/ui/token.ts +0 -78
- package/dist/ui/tokens/shadow.ts +0 -25
- package/dist/ui/tokens.ts +0 -234
- package/dist/ui/validators.ts +0 -232
- package/dist/ui/variant.ts +0 -352
- package/dist/ui/variants/var_avatar-round.ts +0 -14
- package/dist/ui/variants/var_bubble-me.ts +0 -14
- package/dist/ui/variants/var_bubble-them.ts +0 -13
- package/dist/ui/variants/var_button-border.ts +0 -76
- package/dist/ui/variants/var_button-cta.ts +0 -76
- package/dist/ui/variants/var_button-destructive-ghost.ts +0 -72
- package/dist/ui/variants/var_button-destructive.ts +0 -76
- package/dist/ui/variants/var_button-fill.ts +0 -76
- package/dist/ui/variants/var_button-ghost.ts +0 -72
- package/dist/ui/variants/var_button-glass.ts +0 -55
- package/dist/ui/variants/var_button-normal.ts +0 -76
- package/dist/ui/variants/var_button-quiet.ts +0 -74
- package/dist/ui/variants/var_card.ts +0 -17
- package/dist/ui/variants/var_chip.ts +0 -13
- package/dist/ui/variants/var_choice.ts +0 -15
- package/dist/ui/variants/var_framed.ts +0 -10
- package/dist/ui/variants/var_glyph-plain.ts +0 -11
- package/dist/ui/variants/var_input.ts +0 -43
- package/dist/ui/variants/var_link-inline.ts +0 -29
- package/dist/ui/variants/var_list-row.ts +0 -34
- package/dist/ui/variants/var_rule.ts +0 -10
- package/dist/ui/variants/var_skeleton-block.ts +0 -12
- package/dist/ui/variants/var_spinner-turning.ts +0 -12
- package/dist/ui/variants/var_stat-tile.ts +0 -13
- package/dist/ui/variants/var_tab-bar.ts +0 -15
- package/dist/ui/variants/var_tap-target.ts +0 -25
- package/dist/ui/variants.ts +0 -64
- package/dist/ui/wrappers.tsx +0 -429
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const BUTTON_FILL = variant({
|
|
4
|
-
id: 'button-fill',
|
|
5
|
-
type: 'label',
|
|
6
|
-
icon: 'md',
|
|
7
|
-
sets: [
|
|
8
|
-
{ property: 'display', is: 'layout-flex' },
|
|
9
|
-
{ property: 'alignItems', is: 'align-centre' },
|
|
10
|
-
{ property: 'justifyContent', is: 'align-centre' },
|
|
11
|
-
{ property: 'borderRadius', is: 'control-radius' },
|
|
12
|
-
{ property: 'height', is: 'control-md' },
|
|
13
|
-
{ property: 'padding', is: 'control-pad-y control-pad-x' },
|
|
14
|
-
{ property: 'gap', is: 'control-gap' },
|
|
15
|
-
{ property: 'cursor', is: 'cursor-press' },
|
|
16
|
-
{ property: 'transition', is: 'motion-quick ease-out' },
|
|
17
|
-
{ property: 'background', is: 'colour-accent' },
|
|
18
|
-
{ property: 'color', is: 'colour-on-accent' },
|
|
19
|
-
{ property: 'borderWidth', is: 'edge-hair' },
|
|
20
|
-
{ property: 'borderStyle', is: 'line-off' },
|
|
21
|
-
{ property: 'borderColor', is: 'colour-clear' },
|
|
22
|
-
{ property: 'boxShadow', is: 'shadow-0' },
|
|
23
|
-
],
|
|
24
|
-
states: [
|
|
25
|
-
{
|
|
26
|
-
when: ['hover'],
|
|
27
|
-
sets: [
|
|
28
|
-
{ property: 'background', is: 'colour-accent-hover' },
|
|
29
|
-
{ property: 'transform', is: 'transform-lift' },
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
when: ['active'],
|
|
34
|
-
sets: [
|
|
35
|
-
{ property: 'background', is: 'colour-accent-press' },
|
|
36
|
-
{ property: 'transform', is: 'transform-press' },
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
when: ['active', 'hover'],
|
|
41
|
-
sets: [
|
|
42
|
-
{ property: 'background', is: 'colour-accent-press' },
|
|
43
|
-
{ property: 'transform', is: 'transform-press' },
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
when: ['focus'],
|
|
48
|
-
sets: [
|
|
49
|
-
{ property: 'outline', is: 'control-ring line-solid colour-accent' },
|
|
50
|
-
{ property: 'outlineOffset', is: 'control-ring-offset' },
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
when: ['loading'],
|
|
55
|
-
sets: [
|
|
56
|
-
{ property: 'opacity', is: 'opacity-muted' },
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
when: ['disabled'],
|
|
61
|
-
sets: [
|
|
62
|
-
{ property: 'cursor', is: 'cursor-refuse' },
|
|
63
|
-
{ property: 'background', is: 'colour-sunken' },
|
|
64
|
-
{ property: 'color', is: 'colour-ink-faint' },
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
when: ['disabled', 'hover'],
|
|
69
|
-
sets: [
|
|
70
|
-
{ property: 'background', is: 'colour-sunken' },
|
|
71
|
-
{ property: 'transform', is: 'transform-rest' },
|
|
72
|
-
],
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
reacts: ['active', 'disabled', 'focus', 'hover', 'loading'],
|
|
76
|
-
} as const)
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const BUTTON_GHOST = variant({
|
|
4
|
-
id: 'button-ghost',
|
|
5
|
-
type: 'label',
|
|
6
|
-
icon: 'md',
|
|
7
|
-
sets: [
|
|
8
|
-
{ property: 'display', is: 'layout-flex' },
|
|
9
|
-
{ property: 'alignItems', is: 'align-centre' },
|
|
10
|
-
{ property: 'justifyContent', is: 'align-centre' },
|
|
11
|
-
{ property: 'borderRadius', is: 'control-radius' },
|
|
12
|
-
{ property: 'height', is: 'control-md' },
|
|
13
|
-
{ property: 'padding', is: 'control-pad-y control-pad-x' },
|
|
14
|
-
{ property: 'gap', is: 'control-gap' },
|
|
15
|
-
{ property: 'cursor', is: 'cursor-press' },
|
|
16
|
-
{ property: 'transition', is: 'motion-quick ease-out' },
|
|
17
|
-
{ property: 'background', is: 'colour-clear' },
|
|
18
|
-
{ property: 'color', is: 'colour-accent' },
|
|
19
|
-
{ property: 'borderWidth', is: 'edge-hair' },
|
|
20
|
-
{ property: 'borderStyle', is: 'line-off' },
|
|
21
|
-
{ property: 'borderColor', is: 'colour-clear' },
|
|
22
|
-
{ property: 'boxShadow', is: 'shadow-0' },
|
|
23
|
-
],
|
|
24
|
-
states: [
|
|
25
|
-
{
|
|
26
|
-
when: ['hover'],
|
|
27
|
-
sets: [
|
|
28
|
-
{ property: 'background', is: 'colour-surface-lit' },
|
|
29
|
-
{ property: 'transform', is: 'transform-lift' },
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
when: ['active'],
|
|
34
|
-
sets: [
|
|
35
|
-
{ property: 'background', is: 'colour-surface-lit' },
|
|
36
|
-
{ property: 'transform', is: 'transform-press' },
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
when: ['active', 'hover'],
|
|
41
|
-
sets: [
|
|
42
|
-
{ property: 'background', is: 'colour-surface-lit' },
|
|
43
|
-
{ property: 'transform', is: 'transform-press' },
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
when: ['focus'],
|
|
48
|
-
sets: [
|
|
49
|
-
{ property: 'outline', is: 'control-ring line-solid colour-accent' },
|
|
50
|
-
{ property: 'outlineOffset', is: 'control-ring-offset' },
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
when: ['loading'],
|
|
55
|
-
sets: [
|
|
56
|
-
{ property: 'opacity', is: 'opacity-muted' },
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
when: ['disabled'],
|
|
61
|
-
sets: [{ property: 'color', is: 'colour-ink-faint' }, { property: 'cursor', is: 'cursor-refuse' }],
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
when: ['disabled', 'hover'],
|
|
65
|
-
sets: [
|
|
66
|
-
{ property: 'background', is: 'colour-clear' },
|
|
67
|
-
{ property: 'transform', is: 'transform-rest' },
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
reacts: ['active', 'disabled', 'focus', 'hover', 'loading'],
|
|
72
|
-
} as const)
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const BUTTON_GLASS = variant({
|
|
4
|
-
id: 'button-glass',
|
|
5
|
-
material: 'glass',
|
|
6
|
-
type: 'label',
|
|
7
|
-
icon: 'md',
|
|
8
|
-
sets: [
|
|
9
|
-
{ property: 'display', is: 'layout-flex' },
|
|
10
|
-
{ property: 'alignItems', is: 'align-centre' },
|
|
11
|
-
{ property: 'justifyContent', is: 'align-centre' },
|
|
12
|
-
{ property: 'borderRadius', is: 'control-radius' },
|
|
13
|
-
{ property: 'height', is: 'control-md' },
|
|
14
|
-
{ property: 'padding', is: 'control-pad-y control-pad-x' },
|
|
15
|
-
{ property: 'gap', is: 'control-gap' },
|
|
16
|
-
{ property: 'cursor', is: 'cursor-press' },
|
|
17
|
-
{ property: 'transition', is: 'motion-quick ease-out' },
|
|
18
|
-
],
|
|
19
|
-
states: [
|
|
20
|
-
{
|
|
21
|
-
when: ['hover'],
|
|
22
|
-
sets: [{ property: 'transform', is: 'transform-lift' }],
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
when: ['active'],
|
|
26
|
-
sets: [{ property: 'transform', is: 'transform-press' }],
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
when: ['active', 'hover'],
|
|
30
|
-
sets: [{ property: 'transform', is: 'transform-press' }],
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
when: ['focus'],
|
|
34
|
-
sets: [
|
|
35
|
-
{ property: 'outline', is: 'control-ring line-solid colour-accent' },
|
|
36
|
-
{ property: 'outlineOffset', is: 'control-ring-offset' },
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
when: ['loading'],
|
|
41
|
-
sets: [
|
|
42
|
-
{ property: 'opacity', is: 'opacity-muted' },
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
when: ['disabled'],
|
|
47
|
-
sets: [{ property: 'color', is: 'colour-ink-faint' }, { property: 'cursor', is: 'cursor-refuse' }],
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
when: ['disabled', 'hover'],
|
|
51
|
-
sets: [{ property: 'transform', is: 'transform-rest' }],
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
reacts: ['active', 'disabled', 'focus', 'hover', 'loading'],
|
|
55
|
-
} as const)
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const BUTTON_NORMAL = variant({
|
|
4
|
-
id: 'button-normal',
|
|
5
|
-
type: 'label',
|
|
6
|
-
icon: 'md',
|
|
7
|
-
sets: [
|
|
8
|
-
{ property: 'display', is: 'layout-flex' },
|
|
9
|
-
{ property: 'alignItems', is: 'align-centre' },
|
|
10
|
-
{ property: 'justifyContent', is: 'align-centre' },
|
|
11
|
-
{ property: 'borderRadius', is: 'control-radius' },
|
|
12
|
-
{ property: 'height', is: 'control-md' },
|
|
13
|
-
{ property: 'padding', is: 'control-pad-y control-pad-x' },
|
|
14
|
-
{ property: 'gap', is: 'control-gap' },
|
|
15
|
-
{ property: 'cursor', is: 'cursor-press' },
|
|
16
|
-
{ property: 'transition', is: 'motion-quick ease-out' },
|
|
17
|
-
{ property: 'background', is: 'colour-surface' },
|
|
18
|
-
{ property: 'color', is: 'colour-ink' },
|
|
19
|
-
{ property: 'borderWidth', is: 'control-edge' },
|
|
20
|
-
{ property: 'borderStyle', is: 'line-solid' },
|
|
21
|
-
{ property: 'borderColor', is: 'colour-edge' },
|
|
22
|
-
{ property: 'boxShadow', is: 'shadow-0' },
|
|
23
|
-
],
|
|
24
|
-
states: [
|
|
25
|
-
{
|
|
26
|
-
when: ['hover'],
|
|
27
|
-
sets: [
|
|
28
|
-
{ property: 'background', is: 'colour-raised' },
|
|
29
|
-
{ property: 'transform', is: 'transform-lift' },
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
when: ['active'],
|
|
34
|
-
sets: [
|
|
35
|
-
{ property: 'background', is: 'colour-sunken' },
|
|
36
|
-
{ property: 'transform', is: 'transform-press' },
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
when: ['active', 'hover'],
|
|
41
|
-
sets: [
|
|
42
|
-
{ property: 'background', is: 'colour-sunken' },
|
|
43
|
-
{ property: 'transform', is: 'transform-press' },
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
when: ['focus'],
|
|
48
|
-
sets: [
|
|
49
|
-
{ property: 'outline', is: 'control-ring line-solid colour-accent' },
|
|
50
|
-
{ property: 'outlineOffset', is: 'control-ring-offset' },
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
when: ['loading'],
|
|
55
|
-
sets: [
|
|
56
|
-
{ property: 'opacity', is: 'opacity-muted' },
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
when: ['disabled'],
|
|
61
|
-
sets: [
|
|
62
|
-
{ property: 'cursor', is: 'cursor-refuse' },
|
|
63
|
-
{ property: 'borderColor', is: 'colour-edge-faint' },
|
|
64
|
-
{ property: 'color', is: 'colour-ink-faint' },
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
when: ['disabled', 'hover'],
|
|
69
|
-
sets: [
|
|
70
|
-
{ property: 'background', is: 'colour-surface' },
|
|
71
|
-
{ property: 'transform', is: 'transform-rest' },
|
|
72
|
-
],
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
reacts: ['active', 'disabled', 'focus', 'hover', 'loading'],
|
|
76
|
-
} as const)
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const BUTTON_QUIET = variant({
|
|
4
|
-
id: 'button-quiet',
|
|
5
|
-
type: 'label',
|
|
6
|
-
icon: 'sm',
|
|
7
|
-
sets: [
|
|
8
|
-
{ property: 'display', is: 'layout-flex' },
|
|
9
|
-
{ property: 'alignItems', is: 'align-centre' },
|
|
10
|
-
{ property: 'justifyContent', is: 'align-centre' },
|
|
11
|
-
{ property: 'borderRadius', is: 'control-radius' },
|
|
12
|
-
{ property: 'height', is: 'control-md' },
|
|
13
|
-
{ property: 'padding', is: 'control-pad-y control-pad-x' },
|
|
14
|
-
{ property: 'gap', is: 'control-gap' },
|
|
15
|
-
{ property: 'cursor', is: 'cursor-press' },
|
|
16
|
-
{ property: 'transition', is: 'motion-quick ease-out' },
|
|
17
|
-
{ property: 'background', is: 'colour-clear' },
|
|
18
|
-
{ property: 'color', is: 'colour-ink-soft' },
|
|
19
|
-
{ property: 'borderWidth', is: 'edge-hair' },
|
|
20
|
-
{ property: 'borderStyle', is: 'line-off' },
|
|
21
|
-
{ property: 'borderColor', is: 'colour-clear' },
|
|
22
|
-
{ property: 'boxShadow', is: 'shadow-0' },
|
|
23
|
-
],
|
|
24
|
-
states: [
|
|
25
|
-
{
|
|
26
|
-
when: ['hover'],
|
|
27
|
-
sets: [
|
|
28
|
-
{ property: 'background', is: 'colour-sunken' },
|
|
29
|
-
{ property: 'color', is: 'colour-ink' },
|
|
30
|
-
{ property: 'transform', is: 'transform-lift' },
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
when: ['active'],
|
|
35
|
-
sets: [
|
|
36
|
-
{ property: 'background', is: 'colour-sunken' },
|
|
37
|
-
{ property: 'transform', is: 'transform-press' },
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
when: ['active', 'hover'],
|
|
42
|
-
sets: [
|
|
43
|
-
{ property: 'background', is: 'colour-sunken' },
|
|
44
|
-
{ property: 'transform', is: 'transform-press' },
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
when: ['focus'],
|
|
49
|
-
sets: [
|
|
50
|
-
{ property: 'outline', is: 'control-ring line-solid colour-accent' },
|
|
51
|
-
{ property: 'outlineOffset', is: 'control-ring-offset' },
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
when: ['loading'],
|
|
56
|
-
sets: [
|
|
57
|
-
{ property: 'opacity', is: 'opacity-muted' },
|
|
58
|
-
],
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
when: ['disabled'],
|
|
62
|
-
sets: [{ property: 'color', is: 'colour-ink-faint' }, { property: 'cursor', is: 'cursor-refuse' }],
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
when: ['disabled', 'hover'],
|
|
66
|
-
sets: [
|
|
67
|
-
{ property: 'background', is: 'colour-clear' },
|
|
68
|
-
{ property: 'color', is: 'colour-ink-faint' },
|
|
69
|
-
{ property: 'transform', is: 'transform-rest' },
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
reacts: ['active', 'disabled', 'focus', 'hover', 'loading'],
|
|
74
|
-
} as const)
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const CARD = variant({
|
|
4
|
-
id: 'card',
|
|
5
|
-
material: 'flat',
|
|
6
|
-
sets: [
|
|
7
|
-
{ property: 'color', is: 'colour-ink' },
|
|
8
|
-
{ property: 'display', is: 'layout-flex' },
|
|
9
|
-
{ property: 'flexDirection', is: 'flow-down' },
|
|
10
|
-
{ property: 'alignItems', is: 'align-start' },
|
|
11
|
-
{ property: 'borderRadius', is: 'radius-md' },
|
|
12
|
-
{ property: 'padding', is: 'space-4' },
|
|
13
|
-
{ property: 'gap', is: 'space-3' },
|
|
14
|
-
],
|
|
15
|
-
plays: { in: 'animation-appear' },
|
|
16
|
-
reacts: ['focus', 'hover'],
|
|
17
|
-
} as const)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const CHIP = variant({
|
|
4
|
-
id: 'chip',
|
|
5
|
-
material: 'flat',
|
|
6
|
-
sets: [
|
|
7
|
-
{ property: 'color', is: 'colour-ink-soft' },
|
|
8
|
-
{ property: 'borderRadius', is: 'radius-pill' },
|
|
9
|
-
{ property: 'padding', is: 'space-1 space-3' },
|
|
10
|
-
{ property: 'gap', is: 'space-1' },
|
|
11
|
-
],
|
|
12
|
-
reacts: ['focus', 'hover'],
|
|
13
|
-
} as const)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const CHOICE = variant({
|
|
4
|
-
id: 'choice',
|
|
5
|
-
sets: [
|
|
6
|
-
{ property: 'display', is: 'layout-flex' },
|
|
7
|
-
{ property: 'flexDirection', is: 'flow-down' },
|
|
8
|
-
{ property: 'alignItems', is: 'align-start' },
|
|
9
|
-
{ property: 'gap', is: 'space-2' },
|
|
10
|
-
{ property: 'padding', is: 'space-3' },
|
|
11
|
-
{ property: 'borderRadius', is: 'radius-md' },
|
|
12
|
-
{ property: 'color', is: 'colour-ink' },
|
|
13
|
-
],
|
|
14
|
-
reacts: [],
|
|
15
|
-
} as const)
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const GLYPH_PLAIN = variant({
|
|
4
|
-
id: 'glyph-plain',
|
|
5
|
-
sets: [
|
|
6
|
-
{ property: 'width', is: 'icon-md' },
|
|
7
|
-
{ property: 'height', is: 'icon-md' },
|
|
8
|
-
{ property: 'color', is: 'colour-ink' },
|
|
9
|
-
],
|
|
10
|
-
reacts: [],
|
|
11
|
-
} as const)
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const INPUT = variant({
|
|
4
|
-
id: 'input',
|
|
5
|
-
material: 'flat',
|
|
6
|
-
sets: [
|
|
7
|
-
{ property: 'color', is: 'colour-ink' },
|
|
8
|
-
{ property: 'borderRadius', is: 'radius-md' },
|
|
9
|
-
{ property: 'minHeight', is: 'control-md' },
|
|
10
|
-
{ property: 'padding', is: 'space-3 space-4' },
|
|
11
|
-
{ property: 'gap', is: 'space-2' },
|
|
12
|
-
{ property: 'transition', is: 'motion-quick ease-out' },
|
|
13
|
-
],
|
|
14
|
-
states: [
|
|
15
|
-
{
|
|
16
|
-
when: ['focus'],
|
|
17
|
-
sets: [
|
|
18
|
-
{ property: 'borderColor', is: 'colour-accent' },
|
|
19
|
-
{ property: 'borderWidth', is: 'edge-thick' },
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
when: ['invalid'],
|
|
24
|
-
sets: [{ property: 'borderColor', is: 'colour-negative' }],
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
when: ['focus', 'invalid'],
|
|
28
|
-
sets: [
|
|
29
|
-
{ property: 'borderColor', is: 'colour-negative' },
|
|
30
|
-
{ property: 'borderWidth', is: 'edge-thick' },
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
when: ['focus', 'hover', 'invalid'],
|
|
35
|
-
sets: [
|
|
36
|
-
{ property: 'borderColor', is: 'colour-negative' },
|
|
37
|
-
{ property: 'borderWidth', is: 'edge-thick' },
|
|
38
|
-
{ property: 'boxShadow', is: 'shadow-2' },
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
reacts: ['focus', 'hover', 'invalid'],
|
|
43
|
-
} as const)
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const LINK_INLINE = variant({
|
|
4
|
-
id: 'link-inline',
|
|
5
|
-
sets: [
|
|
6
|
-
{ property: 'color', is: 'colour-accent' },
|
|
7
|
-
{ property: 'borderRadius', is: 'radius-sm' },
|
|
8
|
-
{ property: 'outlineOffset', is: 'space-1' },
|
|
9
|
-
{ property: 'transition', is: 'motion-quick ease-out' },
|
|
10
|
-
],
|
|
11
|
-
states: [
|
|
12
|
-
{
|
|
13
|
-
when: ['hover'],
|
|
14
|
-
sets: [{ property: 'color', is: 'colour-accent-hover' }],
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
when: ['focus'],
|
|
18
|
-
sets: [{ property: 'outline', is: 'edge-thick line-solid colour-accent' }],
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
when: ['focus', 'hover'],
|
|
22
|
-
sets: [
|
|
23
|
-
{ property: 'color', is: 'colour-accent-hover' },
|
|
24
|
-
{ property: 'outline', is: 'edge-thick line-solid colour-accent' },
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
reacts: ['focus', 'hover'],
|
|
29
|
-
} as const)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const LIST_ROW = variant({
|
|
4
|
-
id: 'list-row',
|
|
5
|
-
material: 'flat',
|
|
6
|
-
sets: [
|
|
7
|
-
{ property: 'color', is: 'colour-ink' },
|
|
8
|
-
{ property: 'borderRadius', is: 'radius-sm' },
|
|
9
|
-
{ property: 'padding', is: 'space-3 space-4' },
|
|
10
|
-
{ property: 'gap', is: 'space-3' },
|
|
11
|
-
],
|
|
12
|
-
states: [
|
|
13
|
-
{
|
|
14
|
-
when: ['carrying'],
|
|
15
|
-
sets: [{ property: 'opacity', is: 'opacity-muted' }],
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
when: ['draggedOver'],
|
|
19
|
-
sets: [
|
|
20
|
-
{ property: 'outline', is: 'edge-thick line-solid colour-accent' },
|
|
21
|
-
{ property: 'outlineOffset', is: 'space-1' },
|
|
22
|
-
],
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
when: ['refusing'],
|
|
26
|
-
sets: [
|
|
27
|
-
{ property: 'outline', is: 'edge-thick line-dashed colour-negative' },
|
|
28
|
-
{ property: 'outlineOffset', is: 'space-1' },
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
plays: { in: 'animation-rise', out: 'animation-fall' },
|
|
33
|
-
reacts: ['carrying', 'draggedOver', 'focus', 'hover', 'refusing'],
|
|
34
|
-
} as const)
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const SKELETON_BLOCK = variant({
|
|
4
|
-
id: 'skeleton-block',
|
|
5
|
-
sets: [
|
|
6
|
-
{ property: 'background', is: 'colour-sunken' },
|
|
7
|
-
{ property: 'borderRadius', is: 'radius-sm' },
|
|
8
|
-
{ property: 'minHeight', is: 'control-sm' },
|
|
9
|
-
{ property: 'animation', is: 'animation-waiting' },
|
|
10
|
-
],
|
|
11
|
-
reacts: [],
|
|
12
|
-
} as const)
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const SPINNER_TURNING = variant({
|
|
4
|
-
id: 'spinner-turning',
|
|
5
|
-
sets: [
|
|
6
|
-
{ property: 'width', is: 'icon-md' },
|
|
7
|
-
{ property: 'height', is: 'icon-md' },
|
|
8
|
-
{ property: 'color', is: 'colour-accent' },
|
|
9
|
-
{ property: 'animation', is: 'animation-working' },
|
|
10
|
-
],
|
|
11
|
-
reacts: [],
|
|
12
|
-
} as const)
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const STAT_TILE = variant({
|
|
4
|
-
id: 'stat-tile',
|
|
5
|
-
material: 'flat',
|
|
6
|
-
sets: [
|
|
7
|
-
{ property: 'color', is: 'colour-ink' },
|
|
8
|
-
{ property: 'borderRadius', is: 'radius-md' },
|
|
9
|
-
{ property: 'padding', is: 'space-4' },
|
|
10
|
-
{ property: 'gap', is: 'space-2' },
|
|
11
|
-
],
|
|
12
|
-
reacts: ['focus', 'hover'],
|
|
13
|
-
} as const)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const TAB_BAR = variant({
|
|
4
|
-
id: 'tab-bar',
|
|
5
|
-
material: 'flat',
|
|
6
|
-
sets: [
|
|
7
|
-
{ property: 'color', is: 'colour-ink' },
|
|
8
|
-
{ property: 'borderRadius', is: 'radius-lg' },
|
|
9
|
-
{ property: 'minHeight', is: 'control-md' },
|
|
10
|
-
{ property: 'padding', is: 'space-1' },
|
|
11
|
-
{ property: 'gap', is: 'space-1' },
|
|
12
|
-
{ property: 'transition', is: 'motion-quick ease-out' },
|
|
13
|
-
],
|
|
14
|
-
reacts: ['focus', 'hover'],
|
|
15
|
-
} as const)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { variant } from '../variant.ts'
|
|
2
|
-
|
|
3
|
-
export const TAP_TARGET = variant({
|
|
4
|
-
id: 'tap-target',
|
|
5
|
-
sets: [{ property: 'borderRadius', is: 'radius-md' }],
|
|
6
|
-
states: [
|
|
7
|
-
{
|
|
8
|
-
when: ['tapped'],
|
|
9
|
-
sets: [{ property: 'animation', is: 'animation-flash' }],
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
when: ['pressing'],
|
|
13
|
-
sets: [{ property: 'animation', is: 'animation-press' }],
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
when: ['carrying', 'pressing'],
|
|
17
|
-
sets: [{ property: 'animation', is: 'animation-hover-lift' }],
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
when: ['carrying'],
|
|
21
|
-
sets: [{ property: 'animation', is: 'animation-hover-lift' }],
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
reacts: ['tapped', 'pressing', 'carrying'],
|
|
25
|
-
} as const)
|