@sia.soul/sia-react-ui 0.1.4 → 0.1.6

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/core.css CHANGED
@@ -173,13 +173,31 @@ fieldset:disabled .sia-input-number__floating-placeholder {
173
173
  }
174
174
  .sia-scrollbar-track {
175
175
  --sia-scrollbar-size: 3px;
176
+ --sia-scrollbar-hit-size: 10px;
177
+ --sia-scrollbar-proximity: 16;
176
178
  }
179
+ .sia-scrollbar-track > ::before {
180
+ content: "";
181
+ position: absolute;
182
+ top: 0;
183
+ right: 0;
184
+ width: var(--sia-scrollbar-hit-size);
185
+ height: 100%;
186
+ }
187
+ .sia-scrollbar-track:is(.sia-floating-scrollbar--horizontal, .sia-table__scrollbar--horizontal) > ::before {
188
+ top: auto;
189
+ bottom: 0;
190
+ width: 100%;
191
+ height: var(--sia-scrollbar-hit-size);
192
+ }
193
+ .sia-scrollbar-track[data-scrollbar-near=true],
177
194
  .sia-scrollbar-track:hover,
178
195
  .sia-scrollbar-track:has(> :active) {
179
- --sia-scrollbar-size: 6px;
196
+ --sia-scrollbar-size: 10px;
180
197
  }
181
198
  @media (prefers-reduced-motion: reduce) {
182
- .sia-scrollbar-track > * {
199
+ .sia-scrollbar-track > *,
200
+ .sia-scrollbar-track > *::after {
183
201
  transition: none !important;
184
202
  }
185
203
  }
@@ -3129,6 +3147,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3129
3147
  overflow: hidden;
3130
3148
  }
3131
3149
  .sia-table__viewport {
3150
+ isolation: isolate;
3132
3151
  min-width: 0;
3133
3152
  min-height: 0;
3134
3153
  flex: 1 1 auto;
@@ -3232,15 +3251,22 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3232
3251
  text-overflow: ellipsis;
3233
3252
  white-space: nowrap;
3234
3253
  }
3235
- .sia-table__cell--ellipsis > .sia-table__cell-content > .sia-space {
3254
+ .sia-table__cell--ellipsis > .sia-table__cell-content :is(.sia-space, .sia-flex, [data-table-inline-layout]) {
3236
3255
  display: inline-flex;
3237
3256
  width: max-content;
3238
3257
  flex-wrap: nowrap !important;
3239
- flex-direction: row;
3258
+ flex-direction: row !important;
3240
3259
  vertical-align: middle;
3241
3260
  }
3242
- .sia-table__cell--ellipsis > .sia-table__cell-content > .sia-space > * {
3261
+ .sia-table__cell--ellipsis > .sia-table__cell-content :is(.sia-space, .sia-flex, [data-table-inline-layout]) > * {
3243
3262
  flex-shrink: 0;
3263
+ width: auto;
3264
+ flex-direction: row;
3265
+ }
3266
+ .sia-table__cell--ellipsis > .sia-table__cell-content[data-custom-content] {
3267
+ display: -webkit-box;
3268
+ -webkit-box-orient: vertical;
3269
+ -webkit-line-clamp: 1;
3244
3270
  }
3245
3271
  .sia-table__cell--ellipsis > .sia-table__cell-content[data-content-overflow=true]::after {
3246
3272
  position: absolute;
@@ -3379,13 +3405,19 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3379
3405
  right: 0;
3380
3406
  bottom: 0;
3381
3407
  left: 0;
3382
- height: 8px;
3408
+ height: 10px;
3409
+ }
3410
+ .sia-table[data-overflow-y=true] .sia-table__scrollbar--horizontal {
3411
+ right: 10px;
3412
+ }
3413
+ .sia-table[data-overflow-x=true] .sia-table__scrollbar--vertical {
3414
+ bottom: 10px;
3383
3415
  }
3384
3416
  .sia-table__scrollbar--vertical {
3385
3417
  top: 0;
3386
3418
  right: 0;
3387
3419
  bottom: 0;
3388
- width: 8px;
3420
+ width: 10px;
3389
3421
  }
3390
3422
  .sia-table[data-overflow-x=false] .sia-table__scrollbar--horizontal,
3391
3423
  .sia-table[data-overflow-y=false] .sia-table__scrollbar--vertical {
@@ -3399,30 +3431,47 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3399
3431
  .sia-table__scrollbar-thumb {
3400
3432
  position: absolute;
3401
3433
  cursor: default;
3434
+ touch-action: none;
3435
+ }
3436
+ .sia-table__scrollbar-thumb::after {
3437
+ position: absolute;
3438
+ right: 0;
3439
+ bottom: 0;
3440
+ content: "";
3441
+ pointer-events: none;
3402
3442
  background: rgb(82 82 82 / 68%);
3403
3443
  border-radius: 999px;
3404
- box-shadow: 0 0 0 1px rgb(255 255 255 / 22%);
3405
- touch-action: none;
3406
- transition: background-color 120ms ease;
3444
+ box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%);
3445
+ transition:
3446
+ background-color 120ms ease,
3447
+ width 150ms ease,
3448
+ height 150ms ease;
3407
3449
  }
3408
- .sia-table__scrollbar-thumb:hover {
3450
+ .sia-table__scrollbar[data-pointer-hover] .sia-table__scrollbar-thumb::after,
3451
+ .sia-table__scrollbar-thumb:hover::after {
3409
3452
  background: rgb(64 64 64 / 82%);
3410
3453
  }
3411
3454
  .sia-table__scrollbar--horizontal .sia-table__scrollbar-thumb {
3412
3455
  bottom: 0;
3413
3456
  left: 0;
3414
3457
  width: var(--sia-table-scrollbar-x-size, 0);
3415
- height: var(--sia-scrollbar-size);
3458
+ height: 100%;
3416
3459
  transform: translateX(var(--sia-table-scrollbar-x-position, 0));
3417
- transition: background-color 120ms ease, height 150ms ease;
3460
+ }
3461
+ .sia-table__scrollbar--horizontal .sia-table__scrollbar-thumb::after {
3462
+ width: 100%;
3463
+ height: var(--sia-scrollbar-size);
3418
3464
  }
3419
3465
  .sia-table__scrollbar--vertical .sia-table__scrollbar-thumb {
3420
3466
  top: 0;
3421
3467
  right: 0;
3422
- width: var(--sia-scrollbar-size);
3468
+ width: 100%;
3423
3469
  height: var(--sia-table-scrollbar-y-size, 0);
3424
3470
  transform: translateY(var(--sia-table-scrollbar-y-position, 0));
3425
- transition: background-color 120ms ease, width 150ms ease;
3471
+ }
3472
+ .sia-table__scrollbar--vertical .sia-table__scrollbar-thumb::after {
3473
+ width: var(--sia-scrollbar-size);
3474
+ height: 100%;
3426
3475
  }
3427
3476
  .sia-table__empty {
3428
3477
  position: absolute;
@@ -3566,7 +3615,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3566
3615
  touch-action: none;
3567
3616
  }
3568
3617
  .sia-table[data-overflow-y=true] .sia-table__header-cell[data-last-leaf-column=true] .sia-table__resize-handle {
3569
- right: 10px;
3618
+ right: 12px;
3570
3619
  }
3571
3620
  .sia-table__resize-handle::after {
3572
3621
  position: absolute;
@@ -4044,6 +4093,33 @@ fieldset:disabled .sia-input-number__floating-placeholder {
4044
4093
  visibility: hidden;
4045
4094
  }
4046
4095
  }
4096
+ .sia-table__settings-dropdown .sia-menu__item {
4097
+ min-height: 44px;
4098
+ padding: 10px 16px;
4099
+ gap: 12px;
4100
+ }
4101
+ .sia-table__settings-dropdown .sia-menu__divider {
4102
+ margin: 8px 12px;
4103
+ }
4104
+ .sia-table--borderless-toolbar {
4105
+ border: 0;
4106
+ }
4107
+ .sia-table--borderless-toolbar > .sia-table__toolbar {
4108
+ border: 0;
4109
+ }
4110
+ .sia-table--borderless-toolbar.sia-table--bordered > .sia-table__viewport-wrap {
4111
+ border: 1px solid var(--sia-color-border);
4112
+ border-radius: var(--sia-radius);
4113
+ }
4114
+ .sia-table--borderless-toolbar.sia-table--bordered:has(> .sia-table__footer) > .sia-table__viewport-wrap {
4115
+ border-bottom: 0;
4116
+ border-bottom-left-radius: 0;
4117
+ border-bottom-right-radius: 0;
4118
+ }
4119
+ .sia-table--borderless-toolbar.sia-table--bordered > .sia-table__footer {
4120
+ border: 1px solid var(--sia-color-border);
4121
+ border-radius: 0 0 var(--sia-radius) var(--sia-radius);
4122
+ }
4047
4123
 
4048
4124
  /* src/components-extra.css */
4049
4125
  .sia-flex {
@@ -4097,11 +4173,11 @@ fieldset:disabled .sia-input-number__floating-placeholder {
4097
4173
  .sia-space-compact--vertical > *:not(:first-child) {
4098
4174
  margin-top: -1px;
4099
4175
  }
4100
- .sia-space-compact--horizontal > *:not(:first-child) :is(.sia-input, .sia-input-control, .sia-select, .sia-tree-select__trigger, .sia-picker, .sia-input-number) {
4176
+ .sia-space-compact--horizontal > *:not(:first-child) :is(.sia-input, .sia-input-control, .sia-select, .sia-select__trigger, .sia-cascader__trigger, .sia-tree-select__trigger, .sia-picker, .sia-input-number) {
4101
4177
  border-top-left-radius: 0;
4102
4178
  border-bottom-left-radius: 0;
4103
4179
  }
4104
- .sia-space-compact--horizontal > *:not(:last-child) :is(.sia-input, .sia-input-control, .sia-select, .sia-tree-select__trigger, .sia-picker, .sia-input-number) {
4180
+ .sia-space-compact--horizontal > *:not(:last-child) :is(.sia-input, .sia-input-control, .sia-select, .sia-select__trigger, .sia-cascader__trigger, .sia-tree-select__trigger, .sia-picker, .sia-input-number) {
4105
4181
  border-top-right-radius: 0;
4106
4182
  border-bottom-right-radius: 0;
4107
4183
  }