@gtivr4/a1-design-system-react 0.1.0 → 0.2.3
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/package.json +1 -1
- package/src/color-scheme.css +586 -24
- package/src/components/accordion/Accordion.jsx +80 -0
- package/src/components/accordion/accordion.css +118 -0
- package/src/components/banner/Banner.jsx +66 -0
- package/src/components/banner/banner.css +205 -0
- package/src/components/bleed/Bleed.jsx +27 -0
- package/src/components/bleed/bleed.css +5 -0
- package/src/components/blockquote/Blockquote.jsx +40 -0
- package/src/components/blockquote/blockquote.css +166 -0
- package/src/components/breadcrumb/Breadcrumb.jsx +82 -0
- package/src/components/breadcrumb/breadcrumb.css +133 -0
- package/src/components/button/button.css +42 -12
- package/src/components/button-container/ButtonContainer.jsx +20 -1
- package/src/components/button-container/button-container.css +19 -1
- package/src/components/calendar/Calendar.jsx +383 -0
- package/src/components/calendar/calendar.css +225 -0
- package/src/components/card/Card.jsx +50 -12
- package/src/components/card/card.css +178 -14
- package/src/components/checkbox-group/CheckboxGroup.jsx +120 -0
- package/src/components/checkbox-group/checkbox-group.css +304 -0
- package/src/components/cluster/Cluster.jsx +52 -0
- package/src/components/cluster/cluster.css +9 -0
- package/src/components/code/Code.jsx +135 -0
- package/src/components/code/code.css +60 -0
- package/src/components/data-table/DataTable.jsx +721 -0
- package/src/components/data-table/DataTableFilters.jsx +339 -0
- package/src/components/data-table/data-table-filters.css +259 -0
- package/src/components/data-table/data-table.css +425 -0
- package/src/components/dialog/Dialog.jsx +45 -2
- package/src/components/dialog/dialog.css +13 -4
- package/src/components/divider/Divider.jsx +64 -0
- package/src/components/divider/divider.css +170 -0
- package/src/components/field/CreditCardField.jsx +131 -0
- package/src/components/field/DateField.jsx +11 -0
- package/src/components/field/NumberField.jsx +11 -0
- package/src/components/field/PhoneField.jsx +107 -0
- package/src/components/field/SelectField.jsx +86 -0
- package/src/components/field/TextField.jsx +83 -0
- package/src/components/field/TextareaField.jsx +147 -0
- package/src/components/field/TimeField.jsx +11 -0
- package/src/components/field/ZipField.jsx +114 -0
- package/src/components/field/credit-card.css +30 -0
- package/src/components/field/field.css +380 -0
- package/src/components/field/textarea-field.css +185 -0
- package/src/components/field-row/FieldRow.jsx +23 -0
- package/src/components/field-row/field-row.css +51 -0
- package/src/components/fieldset/Fieldset.jsx +49 -0
- package/src/components/fieldset/fieldset.css +75 -0
- package/src/components/figure/Figure.jsx +63 -0
- package/src/components/figure/figure.css +97 -0
- package/src/components/grid/Grid.jsx +36 -2
- package/src/components/grid/grid.css +129 -4
- package/src/components/heading/Heading.jsx +41 -1
- package/src/components/heading/heading.css +65 -4
- package/src/components/icon/icon.css +1 -0
- package/src/components/icon-button/icon-button.css +1 -0
- package/src/components/inline/inline.css +51 -0
- package/src/components/inline-editable/InlineEditable.jsx +77 -0
- package/src/components/inline-editable/inline-editable.css +47 -0
- package/src/components/inset/Inset.jsx +27 -0
- package/src/components/inset/inset.css +6 -0
- package/src/components/labels/Labels.jsx +5 -5
- package/src/components/link/Link.jsx +2 -3
- package/src/components/link/link.css +30 -1
- package/src/components/list/List.jsx +92 -0
- package/src/components/list/list.css +178 -0
- package/src/components/menu/Menu.jsx +243 -10
- package/src/components/menu/menu.css +157 -17
- package/src/components/message/Message.jsx +25 -50
- package/src/components/message/message.css +50 -33
- package/src/components/notification/Notification.jsx +1 -1
- package/src/components/page-layout/PageLayout.jsx +16 -1
- package/src/components/page-layout/page-layout.css +97 -4
- package/src/components/page-nav/PageNav.jsx +110 -0
- package/src/components/page-nav/page-nav.css +167 -0
- package/src/components/paragraph/Paragraph.jsx +35 -2
- package/src/components/paragraph/paragraph.css +38 -1
- package/src/components/radio-group/RadioGroup.jsx +121 -0
- package/src/components/radio-group/radio-group.css +268 -0
- package/src/components/section/Section.jsx +108 -0
- package/src/components/section/section.css +280 -0
- package/src/components/segmented-control/SegmentedControl.jsx +4 -0
- package/src/components/segmented-control/segmented.css +13 -0
- package/src/components/side-nav/SideNav.jsx +29 -9
- package/src/components/side-nav/scrim.css +1 -1
- package/src/components/side-nav/side-nav.css +70 -32
- package/src/components/snackbar/Snackbar.jsx +56 -0
- package/src/components/snackbar/snackbar.css +113 -0
- package/src/components/spacer/Spacer.jsx +36 -0
- package/src/components/spacer/spacer.css +44 -0
- package/src/components/stack/Stack.jsx +100 -0
- package/src/components/stack/stack.css +37 -0
- package/src/components/switch/Switch.jsx +114 -0
- package/src/components/switch/switch.css +276 -0
- package/src/components/system-banner/SystemBanner.jsx +57 -0
- package/src/components/system-banner/system-banner.css +118 -0
- package/src/components/tabs/Tabs.jsx +96 -28
- package/src/components/tabs/tabs.css +352 -15
- package/src/components/token-select/TokenSelect.jsx +159 -0
- package/src/components/token-select/token-select.css +110 -0
- package/src/components/top-header/TopHeader.jsx +641 -0
- package/src/components/top-header/top-header.css +337 -0
- package/src/illustrations/ComponentThumbnails.jsx +227 -0
- package/src/index.js +41 -5
- package/src/themes.css +256 -5
- package/src/utilities/spacing.css +8 -0
- package/src/utilities/sr-only.css +16 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* ─── TokenSelect — trigger ──────────────────────────────────────────────── */
|
|
2
|
+
|
|
3
|
+
/* Widen the menu to comfortably show token names + hex values side by side */
|
|
4
|
+
.a1-token-select {
|
|
5
|
+
--component-menu-width: 288px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* The trigger is a <button> using field.css's a1-field__select class.
|
|
9
|
+
We need flex layout for the swatch + label inside it. */
|
|
10
|
+
.a1-token-select__trigger {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: var(--base-spacing-6);
|
|
14
|
+
text-align: start;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.a1-token-select__swatch {
|
|
19
|
+
display: block;
|
|
20
|
+
width: 14px;
|
|
21
|
+
height: 14px;
|
|
22
|
+
border-radius: var(--base-radius-xs, 3px);
|
|
23
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.a1-token-select__value {
|
|
28
|
+
flex: 1;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
font-family: ui-monospace, "Fira Code", monospace;
|
|
34
|
+
font-size: 0.82em;
|
|
35
|
+
line-height: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* ─── TokenItem (menu list items) ────────────────────────────────────────── */
|
|
39
|
+
|
|
40
|
+
.a1-token-item {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: var(--base-spacing-8);
|
|
44
|
+
width: 100%;
|
|
45
|
+
padding: var(--base-spacing-5) var(--base-spacing-8);
|
|
46
|
+
border: none;
|
|
47
|
+
border-radius: var(--base-radius-control);
|
|
48
|
+
background: transparent;
|
|
49
|
+
color: var(--semantic-color-text-default);
|
|
50
|
+
font-family: var(--semantic-font-family-body);
|
|
51
|
+
font-size: var(--semantic-font-size-body-sm);
|
|
52
|
+
line-height: var(--component-menu-item-line-height);
|
|
53
|
+
text-align: start;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
transition: background var(--semantic-motion-duration-fast) var(--semantic-motion-easing-standard);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.a1-token-item:hover {
|
|
59
|
+
background: color-mix(in srgb, var(--semantic-color-surface-panel), var(--semantic-color-text-default) 6%);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.a1-token-item:active {
|
|
63
|
+
background: color-mix(in srgb, var(--semantic-color-surface-panel), var(--semantic-color-text-default) 12%);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.a1-token-item:focus-visible {
|
|
67
|
+
outline: var(--component-menu-item-focus-ring-width) solid var(--semantic-color-text-accent);
|
|
68
|
+
outline-offset: var(--component-menu-item-focus-ring-offset);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.a1-token-item--selected {
|
|
72
|
+
color: var(--semantic-color-text-accent);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.a1-token-item__swatch {
|
|
76
|
+
display: block;
|
|
77
|
+
width: 20px;
|
|
78
|
+
height: 20px;
|
|
79
|
+
border-radius: var(--base-radius-sm);
|
|
80
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
81
|
+
flex-shrink: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.a1-token-item__name {
|
|
85
|
+
flex: 1;
|
|
86
|
+
min-width: 0;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
text-overflow: ellipsis;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
font-family: ui-monospace, "Fira Code", monospace;
|
|
91
|
+
font-size: 0.8125rem;
|
|
92
|
+
font-weight: inherit;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.a1-token-item--selected .a1-token-item__name {
|
|
96
|
+
font-weight: var(--base-font-weight-semibold);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.a1-token-item__hex {
|
|
100
|
+
flex-shrink: 0;
|
|
101
|
+
font-family: ui-monospace, "Fira Code", monospace;
|
|
102
|
+
font-size: 0.6875rem;
|
|
103
|
+
color: var(--semantic-color-text-muted);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.a1-token-item__check {
|
|
107
|
+
flex-shrink: 0;
|
|
108
|
+
font-size: 16px;
|
|
109
|
+
color: var(--semantic-color-text-accent);
|
|
110
|
+
}
|