@crispy-seed/data-table 0.6.0 → 0.8.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/index.cjs +504 -153
- package/dist/index.d.ts +98 -39
- package/dist/index.js +504 -153
- package/dist/{record-panel-recipe.css → record-preview-recipe.css} +35 -35
- package/dist/{record-panel-recipe.layered.css → record-preview-recipe.layered.css} +35 -35
- package/dist/resizable-panel-recipe.css +62 -22
- package/dist/resizable-panel-recipe.layered.css +55 -21
- package/dist/styles.css +90 -56
- package/package.json +5 -4
package/dist/styles.css
CHANGED
|
@@ -10023,7 +10023,7 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10023
10023
|
--seed-prefix-icon-size: 18px;
|
|
10024
10024
|
}
|
|
10025
10025
|
|
|
10026
|
-
.seed-record-
|
|
10026
|
+
.seed-record-preview__root {
|
|
10027
10027
|
background: var(--seed-color-bg-layer-default);
|
|
10028
10028
|
flex-direction: column;
|
|
10029
10029
|
height: 100%;
|
|
@@ -10032,7 +10032,7 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10032
10032
|
overflow: hidden;
|
|
10033
10033
|
}
|
|
10034
10034
|
|
|
10035
|
-
.seed-record-
|
|
10035
|
+
.seed-record-preview__toolbar {
|
|
10036
10036
|
border-bottom: 1px solid var(--seed-color-stroke-neutral-muted);
|
|
10037
10037
|
flex-shrink: 0;
|
|
10038
10038
|
align-items: center;
|
|
@@ -10041,18 +10041,18 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10041
10041
|
display: flex;
|
|
10042
10042
|
}
|
|
10043
10043
|
|
|
10044
|
-
.seed-record-
|
|
10044
|
+
.seed-record-preview__toolbarSpacer {
|
|
10045
10045
|
flex: 1;
|
|
10046
10046
|
}
|
|
10047
10047
|
|
|
10048
|
-
.seed-record-
|
|
10048
|
+
.seed-record-preview__pager {
|
|
10049
10049
|
align-items: center;
|
|
10050
10050
|
gap: 6px;
|
|
10051
10051
|
margin-inline-start: 12px;
|
|
10052
10052
|
display: flex;
|
|
10053
10053
|
}
|
|
10054
10054
|
|
|
10055
|
-
.seed-record-
|
|
10055
|
+
.seed-record-preview__counter {
|
|
10056
10056
|
color: var(--seed-color-fg-neutral-subtle);
|
|
10057
10057
|
white-space: nowrap;
|
|
10058
10058
|
text-overflow: ellipsis;
|
|
@@ -10062,7 +10062,7 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10062
10062
|
overflow: hidden;
|
|
10063
10063
|
}
|
|
10064
10064
|
|
|
10065
|
-
.seed-record-
|
|
10065
|
+
.seed-record-preview__iconbtn {
|
|
10066
10066
|
width: 28px;
|
|
10067
10067
|
height: 28px;
|
|
10068
10068
|
color: var(--seed-color-fg-neutral-subtle);
|
|
@@ -10079,12 +10079,12 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10079
10079
|
display: inline-flex;
|
|
10080
10080
|
}
|
|
10081
10081
|
|
|
10082
|
-
.seed-record-
|
|
10082
|
+
.seed-record-preview__iconbtn:hover {
|
|
10083
10083
|
background: var(--seed-color-bg-layer-fill);
|
|
10084
10084
|
color: var(--seed-color-fg-neutral);
|
|
10085
10085
|
}
|
|
10086
10086
|
|
|
10087
|
-
.seed-record-
|
|
10087
|
+
.seed-record-preview__navbtn {
|
|
10088
10088
|
background: var(--seed-color-bg-layer-default);
|
|
10089
10089
|
width: 28px;
|
|
10090
10090
|
height: 28px;
|
|
@@ -10101,16 +10101,16 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10101
10101
|
box-shadow: inset 0 0 0 1px #0000000f, 0 0 2px #1c28402e, 0 1px 3px #0000000a;
|
|
10102
10102
|
}
|
|
10103
10103
|
|
|
10104
|
-
.seed-record-
|
|
10104
|
+
.seed-record-preview__navbtn:hover:not(:disabled) {
|
|
10105
10105
|
background: var(--seed-color-bg-layer-fill);
|
|
10106
10106
|
}
|
|
10107
10107
|
|
|
10108
|
-
.seed-record-
|
|
10108
|
+
.seed-record-preview__navbtn:disabled {
|
|
10109
10109
|
opacity: .4;
|
|
10110
10110
|
cursor: not-allowed;
|
|
10111
10111
|
}
|
|
10112
10112
|
|
|
10113
|
-
.seed-record-
|
|
10113
|
+
.seed-record-preview__header {
|
|
10114
10114
|
flex-shrink: 0;
|
|
10115
10115
|
align-items: center;
|
|
10116
10116
|
gap: 8px;
|
|
@@ -10119,7 +10119,7 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10119
10119
|
display: flex;
|
|
10120
10120
|
}
|
|
10121
10121
|
|
|
10122
|
-
.seed-record-
|
|
10122
|
+
.seed-record-preview__fav {
|
|
10123
10123
|
object-fit: cover;
|
|
10124
10124
|
background: var(--seed-color-bg-layer-fill);
|
|
10125
10125
|
border-radius: 4px;
|
|
@@ -10128,7 +10128,7 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10128
10128
|
height: 22px;
|
|
10129
10129
|
}
|
|
10130
10130
|
|
|
10131
|
-
.seed-record-
|
|
10131
|
+
.seed-record-preview__title {
|
|
10132
10132
|
letter-spacing: -.2px;
|
|
10133
10133
|
min-width: 0;
|
|
10134
10134
|
color: var(--seed-color-fg-neutral);
|
|
@@ -10140,18 +10140,18 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10140
10140
|
overflow: hidden;
|
|
10141
10141
|
}
|
|
10142
10142
|
|
|
10143
|
-
.seed-record-
|
|
10143
|
+
.seed-record-preview__body {
|
|
10144
10144
|
flex: 1;
|
|
10145
10145
|
min-height: 0;
|
|
10146
10146
|
padding: 8px 12px;
|
|
10147
10147
|
overflow-y: auto;
|
|
10148
10148
|
}
|
|
10149
10149
|
|
|
10150
|
-
.seed-record-
|
|
10150
|
+
.seed-record-preview__section {
|
|
10151
10151
|
padding: 8px 4px 0;
|
|
10152
10152
|
}
|
|
10153
10153
|
|
|
10154
|
-
.seed-record-
|
|
10154
|
+
.seed-record-preview__sectionHead {
|
|
10155
10155
|
justify-content: space-between;
|
|
10156
10156
|
align-items: center;
|
|
10157
10157
|
gap: 8px;
|
|
@@ -10160,13 +10160,13 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10160
10160
|
display: flex;
|
|
10161
10161
|
}
|
|
10162
10162
|
|
|
10163
|
-
.seed-record-
|
|
10163
|
+
.seed-record-preview__sectionLabel {
|
|
10164
10164
|
color: var(--seed-color-fg-neutral-subtle);
|
|
10165
10165
|
font-size: 14px;
|
|
10166
10166
|
font-weight: 500;
|
|
10167
10167
|
}
|
|
10168
10168
|
|
|
10169
|
-
.seed-record-
|
|
10169
|
+
.seed-record-preview__sectionAction {
|
|
10170
10170
|
color: color-mix(in srgb, var(--seed-color-fg-neutral) 55%, transparent);
|
|
10171
10171
|
cursor: pointer;
|
|
10172
10172
|
background: none;
|
|
@@ -10177,24 +10177,24 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10177
10177
|
font-weight: 400;
|
|
10178
10178
|
}
|
|
10179
10179
|
|
|
10180
|
-
.seed-record-
|
|
10180
|
+
.seed-record-preview__sectionAction:hover {
|
|
10181
10181
|
color: var(--seed-color-fg-neutral);
|
|
10182
10182
|
}
|
|
10183
10183
|
|
|
10184
|
-
.seed-record-
|
|
10184
|
+
.seed-record-preview__highlights {
|
|
10185
10185
|
grid-template-columns: 1fr 1fr;
|
|
10186
10186
|
gap: 8px;
|
|
10187
10187
|
display: grid;
|
|
10188
10188
|
}
|
|
10189
10189
|
|
|
10190
|
-
.seed-record-
|
|
10190
|
+
.seed-record-preview__highlight {
|
|
10191
10191
|
flex-direction: column;
|
|
10192
10192
|
gap: 6px;
|
|
10193
10193
|
min-width: 0;
|
|
10194
10194
|
display: flex;
|
|
10195
10195
|
}
|
|
10196
10196
|
|
|
10197
|
-
.seed-record-
|
|
10197
|
+
.seed-record-preview__highlightLabel {
|
|
10198
10198
|
color: var(--seed-color-fg-neutral-subtle);
|
|
10199
10199
|
align-items: center;
|
|
10200
10200
|
gap: 4px;
|
|
@@ -10203,18 +10203,18 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10203
10203
|
display: flex;
|
|
10204
10204
|
}
|
|
10205
10205
|
|
|
10206
|
-
.seed-record-
|
|
10206
|
+
.seed-record-preview__highlightLabel span {
|
|
10207
10207
|
text-overflow: ellipsis;
|
|
10208
10208
|
white-space: nowrap;
|
|
10209
10209
|
overflow: hidden;
|
|
10210
10210
|
}
|
|
10211
10211
|
|
|
10212
|
-
.seed-record-
|
|
10212
|
+
.seed-record-preview__highlightLabel svg {
|
|
10213
10213
|
color: var(--seed-color-fg-neutral-subtle);
|
|
10214
10214
|
flex-shrink: 0;
|
|
10215
10215
|
}
|
|
10216
10216
|
|
|
10217
|
-
.seed-record-
|
|
10217
|
+
.seed-record-preview__highlightValue {
|
|
10218
10218
|
color: var(--seed-color-fg-neutral);
|
|
10219
10219
|
text-overflow: ellipsis;
|
|
10220
10220
|
font-size: 14px;
|
|
@@ -10222,17 +10222,17 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10222
10222
|
overflow: hidden;
|
|
10223
10223
|
}
|
|
10224
10224
|
|
|
10225
|
-
.seed-record-
|
|
10225
|
+
.seed-record-preview__activity {
|
|
10226
10226
|
font-size: 14px;
|
|
10227
10227
|
}
|
|
10228
10228
|
|
|
10229
|
-
.seed-record-
|
|
10229
|
+
.seed-record-preview__sections {
|
|
10230
10230
|
flex-direction: column;
|
|
10231
10231
|
padding-top: 8px;
|
|
10232
10232
|
display: flex;
|
|
10233
10233
|
}
|
|
10234
10234
|
|
|
10235
|
-
.seed-record-
|
|
10235
|
+
.seed-record-preview__sectionTrigger {
|
|
10236
10236
|
text-align: start;
|
|
10237
10237
|
cursor: pointer;
|
|
10238
10238
|
background: none;
|
|
@@ -10246,37 +10246,37 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10246
10246
|
display: flex;
|
|
10247
10247
|
}
|
|
10248
10248
|
|
|
10249
|
-
.seed-record-
|
|
10249
|
+
.seed-record-preview__sectionTrigger[data-inert] {
|
|
10250
10250
|
cursor: default;
|
|
10251
10251
|
}
|
|
10252
10252
|
|
|
10253
|
-
.seed-record-
|
|
10253
|
+
.seed-record-preview__sectionRowLabel {
|
|
10254
10254
|
color: var(--seed-color-fg-neutral);
|
|
10255
10255
|
font-size: 14px;
|
|
10256
10256
|
font-weight: 500;
|
|
10257
10257
|
}
|
|
10258
10258
|
|
|
10259
|
-
.seed-record-
|
|
10259
|
+
.seed-record-preview__sectionRowCount {
|
|
10260
10260
|
color: var(--seed-color-fg-neutral-subtle);
|
|
10261
10261
|
font-size: 14px;
|
|
10262
10262
|
}
|
|
10263
10263
|
|
|
10264
|
-
.seed-record-
|
|
10264
|
+
.seed-record-preview__sectionChevron {
|
|
10265
10265
|
color: var(--seed-color-fg-neutral-subtle);
|
|
10266
10266
|
flex-shrink: 0;
|
|
10267
10267
|
margin-inline-start: auto;
|
|
10268
10268
|
transition: transform .15s;
|
|
10269
10269
|
}
|
|
10270
10270
|
|
|
10271
|
-
.seed-record-
|
|
10271
|
+
.seed-record-preview__sectionChevron[data-open] {
|
|
10272
10272
|
transform: rotate(180deg);
|
|
10273
10273
|
}
|
|
10274
10274
|
|
|
10275
|
-
.seed-record-
|
|
10275
|
+
.seed-record-preview__sectionContent {
|
|
10276
10276
|
padding: 8px 8px 8px 12px;
|
|
10277
10277
|
}
|
|
10278
10278
|
|
|
10279
|
-
.seed-record-
|
|
10279
|
+
.seed-record-preview__footer {
|
|
10280
10280
|
border-top: 1px solid var(--seed-color-stroke-neutral-muted);
|
|
10281
10281
|
flex-shrink: 0;
|
|
10282
10282
|
align-items: center;
|
|
@@ -10328,51 +10328,85 @@ tr:hover .seed-data-table__entityActions, .seed-data-table__entityActions:focus-
|
|
|
10328
10328
|
}
|
|
10329
10329
|
|
|
10330
10330
|
.seed-resizable-panel__panel[data-floating="true"] {
|
|
10331
|
+
z-index: 20;
|
|
10332
|
+
opacity: 1;
|
|
10331
10333
|
border-inline: none;
|
|
10332
|
-
border-radius:
|
|
10333
|
-
|
|
10334
|
-
position: fixed;
|
|
10334
|
+
border-radius: 12px;
|
|
10335
|
+
position: absolute;
|
|
10335
10336
|
top: 8px;
|
|
10336
10337
|
bottom: 8px;
|
|
10337
10338
|
transform: none;
|
|
10338
|
-
box-shadow:
|
|
10339
|
+
box-shadow: 0 0 0 1px #1c28400a, 0 4px 8px -4px #1c28401f, 0 4px 12px -2px #18294b29;
|
|
10339
10340
|
}
|
|
10340
10341
|
|
|
10341
10342
|
.seed-resizable-panel__panel[data-floating="true"][data-side="left"] {
|
|
10342
|
-
|
|
10343
|
+
left: 8px;
|
|
10344
|
+
}
|
|
10345
|
+
|
|
10346
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="right"] {
|
|
10347
|
+
right: 8px;
|
|
10343
10348
|
}
|
|
10344
10349
|
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10350
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="left"][data-state="open"] {
|
|
10351
|
+
--seed-enter-translate-x: calc(-100% - 8px);
|
|
10352
|
+
--seed-enter-translate-y: 0;
|
|
10353
|
+
--seed-enter-opacity: 0;
|
|
10354
|
+
--seed-enter-scale: 1;
|
|
10355
|
+
animation: .18s cubic-bezier(.16, 1, .3, 1) seed-enter;
|
|
10356
|
+
}
|
|
10357
|
+
|
|
10358
|
+
@media (prefers-reduced-motion: reduce) {
|
|
10359
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="left"][data-state="open"] {
|
|
10360
|
+
--seed-enter-translate-x: 0;
|
|
10348
10361
|
}
|
|
10349
10362
|
}
|
|
10350
10363
|
|
|
10351
|
-
.seed-resizable-panel__panel[data-floating="true"][data-side="
|
|
10352
|
-
|
|
10364
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="left"][data-state="closed"] {
|
|
10365
|
+
--seed-exit-translate-x: calc(-100% - 8px);
|
|
10366
|
+
--seed-exit-translate-y: 0;
|
|
10367
|
+
--seed-exit-opacity: 0;
|
|
10368
|
+
--seed-exit-scale: 1;
|
|
10369
|
+
animation: .14s cubic-bezier(.4, 0, 1, 1) forwards seed-exit;
|
|
10353
10370
|
}
|
|
10354
10371
|
|
|
10355
|
-
@
|
|
10356
|
-
.seed-resizable-panel__panel[data-floating="true"][data-side="
|
|
10357
|
-
|
|
10372
|
+
@media (prefers-reduced-motion: reduce) {
|
|
10373
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="left"][data-state="closed"] {
|
|
10374
|
+
--seed-exit-translate-x: 0;
|
|
10358
10375
|
}
|
|
10359
10376
|
}
|
|
10360
10377
|
|
|
10361
|
-
.seed-resizable-
|
|
10362
|
-
|
|
10363
|
-
|
|
10378
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="right"][data-state="open"] {
|
|
10379
|
+
--seed-enter-translate-x: calc(100% + 8px);
|
|
10380
|
+
--seed-enter-translate-y: 0;
|
|
10381
|
+
--seed-enter-opacity: 0;
|
|
10382
|
+
--seed-enter-scale: 1;
|
|
10383
|
+
animation: .18s cubic-bezier(.16, 1, .3, 1) seed-enter;
|
|
10364
10384
|
}
|
|
10365
10385
|
|
|
10366
|
-
|
|
10367
|
-
|
|
10386
|
+
@media (prefers-reduced-motion: reduce) {
|
|
10387
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="right"][data-state="open"] {
|
|
10388
|
+
--seed-enter-translate-x: 0;
|
|
10389
|
+
}
|
|
10368
10390
|
}
|
|
10369
10391
|
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10392
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="right"][data-state="closed"] {
|
|
10393
|
+
--seed-exit-translate-x: calc(100% + 8px);
|
|
10394
|
+
--seed-exit-translate-y: 0;
|
|
10395
|
+
--seed-exit-opacity: 0;
|
|
10396
|
+
--seed-exit-scale: 1;
|
|
10397
|
+
animation: .14s cubic-bezier(.4, 0, 1, 1) forwards seed-exit;
|
|
10398
|
+
}
|
|
10399
|
+
|
|
10400
|
+
@media (prefers-reduced-motion: reduce) {
|
|
10401
|
+
.seed-resizable-panel__panel[data-floating="true"][data-side="right"][data-state="closed"] {
|
|
10402
|
+
--seed-exit-translate-x: 0;
|
|
10373
10403
|
}
|
|
10374
10404
|
}
|
|
10375
10405
|
|
|
10406
|
+
.seed-resizable-panel__inner {
|
|
10407
|
+
height: 100%;
|
|
10408
|
+
}
|
|
10409
|
+
|
|
10376
10410
|
.seed-resizable-panel__handle {
|
|
10377
10411
|
z-index: 2;
|
|
10378
10412
|
cursor: col-resize;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crispy-seed/data-table",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Self-contained, publishable build of seed-design's Attio-measured DataTable, ResizablePanel and
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Self-contained, publishable build of seed-design's Attio-measured DataTable, ResizablePanel and RecordPreview — one install, one CSS import.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/daangn/seed-design.git",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"./data-table-recipe.layered.css": "./dist/data-table-recipe.layered.css",
|
|
24
24
|
"./resizable-panel-recipe.css": "./dist/resizable-panel-recipe.css",
|
|
25
25
|
"./resizable-panel-recipe.layered.css": "./dist/resizable-panel-recipe.layered.css",
|
|
26
|
-
"./record-
|
|
27
|
-
"./record-
|
|
26
|
+
"./record-preview-recipe.css": "./dist/record-preview-recipe.css",
|
|
27
|
+
"./record-preview-recipe.layered.css": "./dist/record-preview-recipe.layered.css",
|
|
28
28
|
"./package.json": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
"main": "./dist/index.cjs",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"@seed-design/react-field": "^2.0.1",
|
|
63
63
|
"@seed-design/react-image": "^1.1.0",
|
|
64
64
|
"@seed-design/react-menu": "^2.0.2",
|
|
65
|
+
"@seed-design/react-presence": "^1.0.1",
|
|
65
66
|
"@seed-design/react-primitive": "^2.0.1",
|
|
66
67
|
"@seed-design/react-resizable-panel": "^0.1.0",
|
|
67
68
|
"@seed-design/react-scale-feedback": "^1.0.0",
|