Skip to content

Commit 89c0476

Browse files
committed
chore: add sizer
1 parent 666b5a7 commit 89c0476

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2108
-570
lines changed

.storybook/styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
@import url('./styles/scroll-area.css');
3131
@import url('./styles/select.css');
3232
@import url('./styles/signature-pad.css');
33+
@import url('./styles/sizer.css');
3334
@import url('./styles/slider.css');
3435
@import url('./styles/splitter.css');
3536
@import url('./styles/steps.css');

.storybook/styles/sizer.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
[data-scope='sizer'][data-part='root'] {
2+
border: 2px solid #e2e8f0;
3+
border-radius: 8px;
4+
overflow: hidden;
5+
}
6+
7+
[data-scope='sizer'][data-part='content'] {
8+
padding: 1rem;
9+
min-width: 300px;
10+
}
11+
12+
.sizer-controls {
13+
margin-bottom: 1rem;
14+
display: flex;
15+
gap: 8px;
16+
}
17+
18+
.sizer-controls-with-info {
19+
margin-bottom: 1rem;
20+
display: flex;
21+
gap: 8px;
22+
align-items: center;
23+
}
24+
25+
.sizer-dimensions {
26+
margin-left: auto;
27+
font-size: 14px;
28+
color: #64748b;
29+
}
30+
31+
.sizer-list {
32+
list-style: none;
33+
padding: 0;
34+
margin: 0;
35+
}
36+
37+
.sizer-list-item {
38+
display: flex;
39+
justify-content: space-between;
40+
align-items: center;
41+
padding: 12px;
42+
margin-bottom: 8px;
43+
background: #f8fafc;
44+
border-radius: 6px;
45+
border: 1px solid #e2e8f0;
46+
}
47+
48+
.sizer-empty {
49+
color: #94a3b8;
50+
text-align: center;
51+
}
52+
53+
.sizer-button-remove {
54+
padding: 4px 12px;
55+
background: #ef4444;
56+
color: white;
57+
border: none;
58+
border-radius: 4px;
59+
cursor: pointer;
60+
font-size: 14px;
61+
}

0 commit comments

Comments
 (0)