@crewlethq/ui 0.2.0
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/LICENSE +21 -0
- package/README.md +68 -0
- package/dist/Accordion-NIMJQIOI.css +88 -0
- package/dist/AppShell-ZW3NSFBP.css +51 -0
- package/dist/Avatar-V6NG6Q45.css +67 -0
- package/dist/Button-XGCTXXYP.css +174 -0
- package/dist/Callout-LEGDIMAM.css +52 -0
- package/dist/Card-BOZGBML7.css +86 -0
- package/dist/Checkbox-OCUICIIZ.css +58 -0
- package/dist/CodeBlock-IEMBNIQC.css +90 -0
- package/dist/Container-LTKBA2FW.css +21 -0
- package/dist/Copyable-IB57OTHZ.css +123 -0
- package/dist/DataTable-3GALZUW2.css +1593 -0
- package/dist/DateTimePicker-NMSSGVPK.css +312 -0
- package/dist/Eyebrow-AVBORAS2.css +30 -0
- package/dist/IconButton-GB4PJDG2.css +82 -0
- package/dist/ImageUpload-3HQDF2KC.css +158 -0
- package/dist/Input-ZHUTN7CU.css +210 -0
- package/dist/Kbd-Q77CDZY7.css +23 -0
- package/dist/Modal-FJVG66S4.css +138 -0
- package/dist/Popover-FUFULUE2.css +123 -0
- package/dist/PricingCard-NKYV3JHA.css +238 -0
- package/dist/Section-665ZIPG6.css +20 -0
- package/dist/Select-GPRF7PRB.css +294 -0
- package/dist/Skeleton-3WEFLRDN.css +378 -0
- package/dist/StatCard-RTJIVTRB.css +50 -0
- package/dist/Table-AR3TRY2E.css +89 -0
- package/dist/Tabs-XZ4JIH3E.css +153 -0
- package/dist/Tag-R5QDJLYJ.css +163 -0
- package/dist/TimeWindowPicker-L3G5Q7UT.css +629 -0
- package/dist/Toaster-2O65VOR4.css +264 -0
- package/dist/index.d.ts +1217 -0
- package/dist/index.js +4518 -0
- package/dist/styles.css +5842 -0
- package/package.json +58 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* CodeBlock, a monospace command/config surface. Slightly lifted from the
|
|
3
|
+
* page background, with an optional header for filename and a copy control.
|
|
4
|
+
* Content scrolls sideways so long lines never reflow.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.crewlet-codeblock {
|
|
8
|
+
border: 1px solid var(--color-border-default);
|
|
9
|
+
border-radius: var(--radius-lg);
|
|
10
|
+
background: var(--color-surface-subtle);
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
font-family: var(--font-family-mono);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.crewlet-codeblock__header {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
gap: var(--spacing-4);
|
|
20
|
+
padding: var(--spacing-3) var(--spacing-4);
|
|
21
|
+
border-bottom: 1px solid var(--color-border-default);
|
|
22
|
+
background: var(--color-surface-muted);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.crewlet-codeblock__meta {
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: var(--spacing-2);
|
|
29
|
+
min-width: 0;
|
|
30
|
+
font-size: var(--font-size-xs);
|
|
31
|
+
color: var(--color-text-tertiary);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.crewlet-codeblock__filename {
|
|
35
|
+
color: var(--color-text-secondary);
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
text-overflow: ellipsis;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.crewlet-codeblock__lang {
|
|
42
|
+
text-transform: uppercase;
|
|
43
|
+
letter-spacing: 0.08em;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.crewlet-codeblock__pre {
|
|
47
|
+
margin: 0;
|
|
48
|
+
padding: var(--spacing-4);
|
|
49
|
+
overflow-x: auto;
|
|
50
|
+
font-size: var(--font-size-sm);
|
|
51
|
+
line-height: 1.7;
|
|
52
|
+
color: var(--color-text-primary);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.crewlet-codeblock__code {
|
|
56
|
+
display: block;
|
|
57
|
+
font-family: inherit;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.crewlet-codeblock__line {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: baseline;
|
|
63
|
+
gap: var(--spacing-3);
|
|
64
|
+
white-space: pre;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.crewlet-codeblock__ln {
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
width: 1.5em;
|
|
70
|
+
text-align: right;
|
|
71
|
+
color: var(--color-text-muted);
|
|
72
|
+
user-select: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.crewlet-codeblock__prompt {
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
color: var(--color-brand-accent);
|
|
78
|
+
user-select: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.crewlet-codeblock__linecontent {
|
|
82
|
+
white-space: pre;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* The copy control is a Copyable configured to show a compact "Copy" label. */
|
|
86
|
+
.crewlet-codeblock__copy {
|
|
87
|
+
flex-shrink: 0;
|
|
88
|
+
font-family: var(--font-family-sans);
|
|
89
|
+
font-size: var(--font-size-xs);
|
|
90
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Container, the centered content measure. One max-width scale shared by
|
|
3
|
+
* every surface so pages line up regardless of who composed them.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.crewlet-container {
|
|
7
|
+
width: 100%;
|
|
8
|
+
margin-inline: auto;
|
|
9
|
+
padding-inline: var(--spacing-6);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.crewlet-container--sm { max-width: 720px; }
|
|
13
|
+
.crewlet-container--md { max-width: 960px; }
|
|
14
|
+
.crewlet-container--lg { max-width: 1200px; }
|
|
15
|
+
.crewlet-container--xl { max-width: 1440px; }
|
|
16
|
+
|
|
17
|
+
@media (max-width: 640px) {
|
|
18
|
+
.crewlet-container {
|
|
19
|
+
padding-inline: var(--spacing-5);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyable, identifier / value display with click-to-copy and a
|
|
3
|
+
* hover-revealed copy button. Three variants:
|
|
4
|
+
*
|
|
5
|
+
* chip Compact pill for table cells. firstN…lastM truncation.
|
|
6
|
+
* Background chip, copy button reveals on hover.
|
|
7
|
+
* inline Full value inline for detail pages, no chip background,
|
|
8
|
+
* copy button reveals on hover.
|
|
9
|
+
* block Bordered panel for code samples or full URLs. Copy
|
|
10
|
+
* button is always visible.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.crewlet-copyable {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 4px;
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.crewlet-copyable__value {
|
|
22
|
+
font-family: var(--font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
|
|
23
|
+
letter-spacing: 0.02em;
|
|
24
|
+
color: var(--color-text-tertiary);
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
min-width: 0;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
transition: color 0.15s ease, background 0.15s ease;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.crewlet-copyable:hover .crewlet-copyable__value {
|
|
34
|
+
color: var(--color-text-primary);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.crewlet-copyable__button {
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
background: transparent;
|
|
40
|
+
border: 1px solid transparent;
|
|
41
|
+
border-radius: 4px;
|
|
42
|
+
width: 20px;
|
|
43
|
+
height: 20px;
|
|
44
|
+
padding: 0;
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
color: var(--color-text-tertiary);
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
opacity: 0;
|
|
51
|
+
transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.crewlet-copyable__button .material-symbols-outlined {
|
|
55
|
+
font-size: 14px;
|
|
56
|
+
line-height: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.crewlet-copyable:hover .crewlet-copyable__button,
|
|
60
|
+
.crewlet-copyable__button:focus-visible,
|
|
61
|
+
.crewlet-copyable.is-copied .crewlet-copyable__button {
|
|
62
|
+
opacity: 1;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.crewlet-copyable__button:hover {
|
|
66
|
+
background: var(--color-brand-accent-soft, rgba(84, 105, 212, 0.1));
|
|
67
|
+
border-color: var(--color-brand-accent-soft-strong, rgba(84, 105, 212, 0.32));
|
|
68
|
+
color: var(--color-brand-accent, var(--color-brand-primary));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.crewlet-copyable.is-copied .crewlet-copyable__button {
|
|
72
|
+
color: var(--color-brand-accent, var(--color-brand-primary));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* ── chip ───────────────────────────────────────────────────────── */
|
|
76
|
+
.crewlet-copyable--chip .crewlet-copyable__value {
|
|
77
|
+
font-size: 11.5px;
|
|
78
|
+
background: var(--color-surface-elevated, var(--color-surface-subtle));
|
|
79
|
+
padding: 1px 6px;
|
|
80
|
+
border-radius: 4px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* ── inline ─────────────────────────────────────────────────────── */
|
|
84
|
+
.crewlet-copyable--inline .crewlet-copyable__value {
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
background: transparent;
|
|
87
|
+
padding: 0;
|
|
88
|
+
color: var(--color-text-secondary);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* ── block ──────────────────────────────────────────────────────── */
|
|
92
|
+
.crewlet-copyable--block {
|
|
93
|
+
display: inline-flex;
|
|
94
|
+
background: var(--color-surface-elevated, var(--color-surface-subtle));
|
|
95
|
+
border: 1px solid var(--color-border-default);
|
|
96
|
+
border-radius: 6px;
|
|
97
|
+
padding: 8px 12px;
|
|
98
|
+
width: 100%;
|
|
99
|
+
max-width: 100%;
|
|
100
|
+
box-sizing: border-box;
|
|
101
|
+
justify-content: space-between;
|
|
102
|
+
gap: 8px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.crewlet-copyable--block .crewlet-copyable__value {
|
|
106
|
+
font-size: 13px;
|
|
107
|
+
color: var(--color-text-primary);
|
|
108
|
+
background: transparent;
|
|
109
|
+
padding: 0;
|
|
110
|
+
white-space: nowrap;
|
|
111
|
+
overflow-x: auto;
|
|
112
|
+
flex: 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.crewlet-copyable--block .crewlet-copyable__button {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* monospace flag: forces mono font for any variant (commonly paired
|
|
120
|
+
with block to render command samples). */
|
|
121
|
+
.crewlet-copyable--monospace .crewlet-copyable__value {
|
|
122
|
+
font-family: var(--font-family-mono);
|
|
123
|
+
}
|