@crispy-seed/data-table 0.5.0 → 0.6.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/dist/data-table-recipe.css +31 -0
- package/dist/data-table-recipe.layered.css +35 -0
- package/dist/index.cjs +779 -30
- package/dist/index.d.ts +222 -2
- package/dist/index.js +779 -32
- package/dist/record-panel-recipe.css +227 -0
- package/dist/record-panel-recipe.layered.css +263 -0
- package/dist/resizable-panel-recipe.css +132 -0
- package/dist/resizable-panel-recipe.layered.css +159 -0
- package/dist/styles.css +522 -67
- package/package.json +7 -2
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-resizable-panel__root {
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.seed-resizable-panel__spacer {
|
|
9
|
+
flex: none;
|
|
10
|
+
height: 100%;
|
|
11
|
+
transition: width .14s;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.seed-resizable-panel__panel {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
background: var(--seed-color-bg-layer-default);
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 0;
|
|
19
|
+
bottom: 0;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.seed-resizable-panel__panel[data-side="left"] {
|
|
24
|
+
left: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.seed-resizable-panel__panel[data-side="right"] {
|
|
28
|
+
right: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.seed-resizable-panel__panel[data-floating="false"] {
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
border-radius: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.seed-resizable-panel__panel[data-floating="false"][data-side="left"] {
|
|
37
|
+
border-inline-end: 1px solid var(--seed-color-stroke-neutral-muted);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.seed-resizable-panel__panel[data-floating="false"][data-side="right"] {
|
|
41
|
+
border-inline-start: 1px solid var(--seed-color-stroke-neutral-muted);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.seed-resizable-panel__panel[data-floating="true"] {
|
|
45
|
+
border-inline: none;
|
|
46
|
+
border-radius: 10px;
|
|
47
|
+
transition: transform .14s, padding .14s;
|
|
48
|
+
position: fixed;
|
|
49
|
+
top: 8px;
|
|
50
|
+
bottom: 8px;
|
|
51
|
+
transform: none;
|
|
52
|
+
box-shadow: inset 0 0 0 1px #0000, 0 0 0 1px #1c28400a, 0 4px 8px -4px #1c28401f, 0 4px 12px -2px #18294b29;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="left"] {
|
|
56
|
+
padding: 8px 0 8px 8px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@starting-style {
|
|
60
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="left"] {
|
|
61
|
+
transform: translateX(calc(-100% - 8px));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="right"] {
|
|
66
|
+
padding: 8px 8px 8px 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@starting-style {
|
|
70
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="right"] {
|
|
71
|
+
transform: translateX(calc(100% + 8px));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.seed-resizable-panel__inner {
|
|
76
|
+
opacity: 1;
|
|
77
|
+
height: 100%;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-floating="true"] > .seed-resizable-panel__inner {
|
|
81
|
+
transition: opacity .14s;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@starting-style {
|
|
85
|
+
[data-floating="true"] > .seed-resizable-panel__inner {
|
|
86
|
+
opacity: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.seed-resizable-panel__handle {
|
|
91
|
+
z-index: 2;
|
|
92
|
+
cursor: col-resize;
|
|
93
|
+
touch-action: none;
|
|
94
|
+
background: none;
|
|
95
|
+
width: 10px;
|
|
96
|
+
height: 100%;
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.seed-resizable-panel__handle[data-side="left"] {
|
|
102
|
+
right: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.seed-resizable-panel__handle[data-side="right"] {
|
|
106
|
+
left: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.seed-resizable-panel__handle:before {
|
|
110
|
+
content: "";
|
|
111
|
+
background: var(--seed-color-stroke-neutral-muted);
|
|
112
|
+
width: 1px;
|
|
113
|
+
height: 100%;
|
|
114
|
+
transition: background-color .16s, height .16s;
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.seed-resizable-panel__handle[data-side="left"]:before {
|
|
120
|
+
right: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.seed-resizable-panel__handle[data-side="right"]:before {
|
|
124
|
+
left: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.seed-resizable-panel__handle:hover:before, .seed-resizable-panel__handle[data-dragging]:before {
|
|
128
|
+
background: #0298d9;
|
|
129
|
+
width: 2px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.seed-resizable-panel__handle.crisp-seed-resizable-panel-handle--column {
|
|
133
|
+
z-index: 1;
|
|
134
|
+
cursor: col-resize;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
align-items: center;
|
|
137
|
+
width: 7px;
|
|
138
|
+
display: flex;
|
|
139
|
+
left: -3px;
|
|
140
|
+
right: -3px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.seed-resizable-panel__handle.crisp-seed-resizable-panel-handle--column:before {
|
|
144
|
+
content: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.seed-resizable-panel__handleInner {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
background: #0298d9;
|
|
150
|
+
border-radius: 3px;
|
|
151
|
+
width: 3px;
|
|
152
|
+
height: 100%;
|
|
153
|
+
transition: opacity .1s .1s;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.seed-resizable-panel__handle:hover .seed-resizable-panel__handleInner, .seed-resizable-panel__handle[data-dragging] .seed-resizable-panel__handleInner {
|
|
157
|
+
opacity: 1;
|
|
158
|
+
}
|
|
159
|
+
}
|