@sia.soul/sia-react-ui 0.1.28 → 0.1.30

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
@@ -3467,12 +3467,14 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3467
3467
  .sia-table__header-cell,
3468
3468
  .sia-table__cell {
3469
3469
  position: relative;
3470
- height: 38px;
3471
- padding: 8px 12px;
3470
+ height: 36px;
3471
+ padding: 5px 12px;
3472
3472
  border-right: var(--sia-table-column-border-width) solid var(--sia-table-border-color, #EFF2F6);
3473
3473
  border-bottom: var(--sia-table-row-border-width) solid var(--sia-table-border-color, #EFF2F6);
3474
3474
  background: var(--sia-color-surface);
3475
3475
  vertical-align: middle;
3476
+ font-size: 13px;
3477
+ line-height: 1.5;
3476
3478
  }
3477
3479
  .sia-table__cell:last-child {
3478
3480
  border-right: 0;
@@ -3517,8 +3519,21 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3517
3519
  gap: 5px;
3518
3520
  }
3519
3521
  .sia-table__header-label-content {
3522
+ display: block;
3520
3523
  min-width: 0;
3521
3524
  flex: 1;
3525
+ overflow: hidden;
3526
+ white-space: nowrap;
3527
+ text-overflow: ellipsis;
3528
+ }
3529
+ .sia-table__sortable-header > span:first-child,
3530
+ .sia-table__filter-header > span:first-child,
3531
+ .sia-table__resizable-header > span:first-child {
3532
+ flex: 1;
3533
+ min-width: 0;
3534
+ overflow: hidden;
3535
+ white-space: nowrap;
3536
+ text-overflow: ellipsis;
3522
3537
  }
3523
3538
  .sia-table__header-description {
3524
3539
  display: inline-grid;
@@ -3584,7 +3599,13 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3584
3599
  }
3585
3600
  .sia-table__row {
3586
3601
  content-visibility: auto;
3587
- contain-intrinsic-size: auto 38px;
3602
+ contain-intrinsic-size: auto 36px;
3603
+ }
3604
+ .sia-table--small .sia-table__row {
3605
+ contain-intrinsic-size: auto 28px;
3606
+ }
3607
+ .sia-table--large .sia-table__row {
3608
+ contain-intrinsic-size: auto 46px;
3588
3609
  }
3589
3610
  .sia-table__row--striped .sia-table__cell {
3590
3611
  background: color-mix(in srgb, var(--sia-color-background) 55%, var(--sia-color-surface));
@@ -3651,7 +3672,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3651
3672
  .sia-table__cell--merge-sticky > .sia-table__cell-content {
3652
3673
  position: sticky;
3653
3674
  z-index: var(--sia-table-merge-sticky-z-index, 3);
3654
- top: calc(var(--sia-table-header-height, 38px) + var(--sia-table-merge-sticky-inset, 0px));
3675
+ top: calc(var(--sia-table-header-height, 36px) + var(--sia-table-merge-sticky-inset, 0px));
3655
3676
  }
3656
3677
  .sia-table__cell--fixed {
3657
3678
  position: sticky;
@@ -3774,7 +3795,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3774
3795
  .sia-table__empty {
3775
3796
  position: absolute;
3776
3797
  z-index: 7;
3777
- inset: var(--sia-table-header-height, 38px) 0 0;
3798
+ inset: var(--sia-table-header-height, 36px) 0 0;
3778
3799
  display: grid;
3779
3800
  place-items: center;
3780
3801
  min-width: 0;
@@ -3800,8 +3821,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3800
3821
  }
3801
3822
  .sia-table--small .sia-table__header-cell,
3802
3823
  .sia-table--small .sia-table__cell {
3803
- height: 32px;
3804
- padding: 5px 9px;
3824
+ height: 28px;
3825
+ padding: 3px 9px;
3805
3826
  font-size: 12px;
3806
3827
  }
3807
3828
  .sia-table--large .sia-table__header-cell,
@@ -3828,24 +3849,53 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3828
3849
  display: flex;
3829
3850
  align-items: center;
3830
3851
  justify-content: space-between;
3852
+ min-width: 0;
3831
3853
  gap: 6px;
3832
3854
  }
3833
3855
  .sia-table__sort-button {
3834
3856
  display: grid;
3835
3857
  align-content: center;
3836
- width: 20px;
3858
+ justify-items: center;
3859
+ flex: 0 0 26px;
3860
+ width: 26px;
3837
3861
  height: 28px;
3838
3862
  padding: 0;
3839
3863
  color: var(--sia-color-text-secondary);
3840
3864
  cursor: pointer;
3841
3865
  background: transparent;
3842
3866
  border: 0;
3867
+ border-radius: var(--sia-radius);
3843
3868
  }
3844
- .sia-table__sort-button .sia-icon {
3869
+ .sia-table__sort-button[data-sort-order=none] .sia-icon {
3845
3870
  margin-block: -2px;
3846
3871
  }
3847
- .sia-table__sort-button .is-active {
3872
+ .sia-table__sort-button:not([data-sort-order=none]) {
3873
+ color: var(--sia-color-primary-text);
3874
+ background: color-mix(in srgb, var(--sia-color-primary) 14%, var(--sia-color-surface));
3875
+ }
3876
+ .sia-table__sort-button:not([data-sort-order=none]) .sia-icon {
3877
+ stroke-width: 2.5;
3878
+ }
3879
+ .sia-table__sort-button:hover {
3848
3880
  color: var(--sia-color-primary-text);
3881
+ background: color-mix(in srgb, var(--sia-color-primary) 20%, var(--sia-color-surface));
3882
+ }
3883
+ .sia-table__sort-button:focus-visible {
3884
+ outline: 2px solid var(--sia-color-primary);
3885
+ outline-offset: 1px;
3886
+ }
3887
+ .sia-table--medium .sia-table__sort-button {
3888
+ height: 24px;
3889
+ }
3890
+ .sia-table--small .sia-table__sort-button,
3891
+ .sia-table--small .sia-table__filter-button {
3892
+ height: 20px;
3893
+ }
3894
+ .sia-table--medium .sia-table__cell .sia-button--link {
3895
+ height: 24px;
3896
+ }
3897
+ .sia-table--small .sia-table__cell .sia-button--link {
3898
+ height: 20px;
3849
3899
  }
3850
3900
  .sia-table__filter-header {
3851
3901
  display: flex;
@@ -4392,8 +4442,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
4392
4442
  }
4393
4443
  }
4394
4444
  .sia-table__settings-dropdown .sia-menu__item {
4395
- min-height: 34px;
4396
- padding: 4px 12px;
4445
+ min-height: 36px;
4446
+ padding: 5px 12px;
4397
4447
  gap: 10px;
4398
4448
  font-size: 14px;
4399
4449
  line-height: 24px;
@@ -6979,6 +7029,205 @@ fieldset:disabled .sia-input-number__floating-placeholder {
6979
7029
  .sia-upload-dragger__content strong {
6980
7030
  color: var(--sia-color-text);
6981
7031
  }
7032
+ .sia-upload {
7033
+ min-width: 0;
7034
+ outline-offset: 4px;
7035
+ }
7036
+ .sia-upload__list:empty {
7037
+ display: none;
7038
+ }
7039
+ .sia-upload__item {
7040
+ position: relative;
7041
+ min-width: 0;
7042
+ }
7043
+ .sia-upload__choose {
7044
+ gap: 8px;
7045
+ }
7046
+ .sia-upload__choose > span {
7047
+ display: inline-flex;
7048
+ align-items: center;
7049
+ gap: 8px;
7050
+ }
7051
+ .sia-upload__name a {
7052
+ color: var(--sia-color-primary-text);
7053
+ text-decoration: none;
7054
+ }
7055
+ .sia-upload__item--error .sia-upload__name a {
7056
+ color: inherit;
7057
+ }
7058
+ .sia-upload__uploading {
7059
+ display: grid;
7060
+ grid-column: 2 / -1;
7061
+ gap: 5px;
7062
+ font-size: 12px;
7063
+ color: var(--sia-color-text-secondary);
7064
+ }
7065
+ .sia-upload__progress {
7066
+ display: block;
7067
+ grid-column: auto;
7068
+ width: 100%;
7069
+ }
7070
+ .sia-upload__error {
7071
+ grid-column: 2 / -1;
7072
+ font-size: 12px;
7073
+ }
7074
+ .sia-upload__item > .sia-upload__remove {
7075
+ grid-column: 3;
7076
+ grid-row: 1;
7077
+ width: 28px;
7078
+ height: 28px;
7079
+ }
7080
+ .sia-upload__item--error {
7081
+ border-color: var(--sia-color-error);
7082
+ }
7083
+ .sia-upload__item--error > .sia-upload__remove {
7084
+ color: var(--sia-color-error);
7085
+ }
7086
+ .sia-upload__thumbnail.sia-button {
7087
+ display: grid;
7088
+ place-items: center;
7089
+ width: 60px;
7090
+ height: 60px;
7091
+ padding: 0;
7092
+ color: inherit;
7093
+ background: var(--sia-color-control-hover);
7094
+ border-radius: 5px;
7095
+ }
7096
+ .sia-upload__thumbnail img {
7097
+ display: block;
7098
+ width: 100%;
7099
+ height: 100%;
7100
+ object-fit: cover;
7101
+ }
7102
+ .sia-upload__thumbnail > span {
7103
+ display: grid;
7104
+ place-items: center;
7105
+ width: 100%;
7106
+ height: 100%;
7107
+ }
7108
+ .sia-upload--picture .sia-upload__item {
7109
+ min-height: 84px;
7110
+ padding: 10px;
7111
+ border: 1px solid var(--sia-color-border);
7112
+ border-radius: 8px;
7113
+ }
7114
+ .sia-upload--picture .sia-upload__item--error {
7115
+ border-color: var(--sia-color-error);
7116
+ }
7117
+ .sia-upload--picture .sia-upload__thumbnail {
7118
+ grid-row: 1 / 3;
7119
+ }
7120
+ .sia-upload--picture .sia-upload__uploading,
7121
+ .sia-upload--picture .sia-upload__error {
7122
+ grid-row: 2;
7123
+ }
7124
+ .sia-upload--picture-card .sia-upload__list {
7125
+ display: flex;
7126
+ flex-wrap: wrap;
7127
+ gap: 10px;
7128
+ }
7129
+ .sia-upload--picture-card .sia-upload__item,
7130
+ .sia-upload--picture-card .sia-upload__choose {
7131
+ box-sizing: border-box;
7132
+ width: 112px;
7133
+ height: 112px;
7134
+ border: 1px solid var(--sia-color-border);
7135
+ border-radius: 9px;
7136
+ }
7137
+ .sia-upload--picture-card .sia-upload__item {
7138
+ display: flex;
7139
+ flex-direction: column;
7140
+ justify-content: center;
7141
+ padding: 8px;
7142
+ gap: 4px;
7143
+ overflow: hidden;
7144
+ }
7145
+ .sia-upload--picture-card .sia-upload__choose {
7146
+ display: flex;
7147
+ flex-direction: column;
7148
+ gap: 10px;
7149
+ padding: 8px;
7150
+ border-style: dashed;
7151
+ color: var(--sia-color-text);
7152
+ background: var(--sia-color-control-hover);
7153
+ }
7154
+ .sia-upload--picture-card .sia-upload__choose > span {
7155
+ flex-direction: column;
7156
+ gap: 10px;
7157
+ }
7158
+ .sia-upload--picture-card .sia-upload__thumbnail {
7159
+ width: 100%;
7160
+ height: 70px;
7161
+ min-height: 0;
7162
+ flex: 1 1 auto;
7163
+ }
7164
+ .sia-upload--picture-card .sia-upload__name {
7165
+ display: block;
7166
+ width: 100%;
7167
+ text-align: center;
7168
+ font-size: 12px;
7169
+ flex: 0 0 auto;
7170
+ }
7171
+ .sia-upload--picture-card .sia-upload__remove {
7172
+ position: absolute;
7173
+ right: 3px;
7174
+ top: 3px;
7175
+ background: var(--sia-color-surface);
7176
+ border-radius: 50%;
7177
+ opacity: 0;
7178
+ z-index: 1;
7179
+ }
7180
+ .sia-upload--picture-card .sia-upload__item:hover .sia-upload__remove,
7181
+ .sia-upload--picture-card .sia-upload__item:focus-within .sia-upload__remove {
7182
+ opacity: 1;
7183
+ }
7184
+ .sia-upload--picture-card .sia-upload__item--error {
7185
+ border-color: var(--sia-color-error);
7186
+ }
7187
+ .sia-upload--picture-card .sia-upload__uploading {
7188
+ position: absolute;
7189
+ inset: 0;
7190
+ display: flex;
7191
+ flex-direction: column;
7192
+ justify-content: center;
7193
+ gap: 12px;
7194
+ padding: 12px;
7195
+ text-align: center;
7196
+ background: var(--sia-color-surface);
7197
+ pointer-events: none;
7198
+ }
7199
+ .sia-upload--picture-card .sia-upload__error {
7200
+ font-size: 11px;
7201
+ }
7202
+ .sia-upload-dragger .sia-upload__choose {
7203
+ width: 100%;
7204
+ height: auto;
7205
+ padding: 0;
7206
+ white-space: normal;
7207
+ border: 0;
7208
+ }
7209
+ .sia-upload-dragger .sia-upload__choose > span {
7210
+ display: block;
7211
+ width: 100%;
7212
+ }
7213
+ .sia-upload-dragger__content {
7214
+ box-sizing: border-box;
7215
+ }
7216
+ .sia-upload-dragger__content > .sia-icon {
7217
+ color: var(--sia-color-primary);
7218
+ }
7219
+ .sia-upload.is-dragging .sia-upload__choose {
7220
+ outline: 2px solid var(--sia-color-primary);
7221
+ outline-offset: 2px;
7222
+ }
7223
+ .sia-upload.is-disabled .sia-upload-dragger__content {
7224
+ cursor: not-allowed;
7225
+ }
7226
+ @media (hover: none) {
7227
+ .sia-upload--picture-card .sia-upload__remove {
7228
+ opacity: 1;
7229
+ }
7230
+ }
6982
7231
  .sia-form > fieldset {
6983
7232
  display: contents;
6984
7233
  min-width: 0;
package/dist/core.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, aq as TabItem, ar as Tabs, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, T as TagStatus, az as TagVariant, aD as Toolbar, aE as ToolbarItem, aF as ToolbarProps, aQ as Typography, aR as TypographyLinkProps, aS as TypographyProps, aT as TypographyTitleProps, aU as TypographyType, aV as Upload, aW as UploadChangeInfo, aX as UploadDraggerProps, aY as UploadFile, aZ as UploadFileStatus, a_ as UploadProps, a$ as UploadRequestOptions, b3 as message } from './core-CTe-Sfl1.cjs';
1
+ export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, aq as TabItem, ar as Tabs, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, T as TagStatus, az as TagVariant, aD as Toolbar, aE as ToolbarItem, aF as ToolbarProps, aQ as Typography, aR as TypographyLinkProps, aS as TypographyProps, aT as TypographyTitleProps, aU as TypographyType, aV as Upload, aW as UploadChangeInfo, aX as UploadDraggerProps, aY as UploadFile, aZ as UploadFileStatus, b0 as UploadProps, b4 as UploadRequestOptions, b8 as message } from './core-B687rqFa.cjs';
2
2
  export { f as Button, B as ButtonProps, e as ButtonSize, g as ButtonVariant, h as Modal, d as ModalActionResult, M as ModalOpenConfig, i as ModalProps, j as ModalType, a as OverlayApiHandle, k as Select, S as SelectOption, c as SelectProps, m as SelectValue } from './Select-YJbT-MF1.cjs';
3
3
  import 'react';
4
4
  import './shared-Bx4B28Wh.cjs';
package/dist/core.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, aq as TabItem, ar as Tabs, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, T as TagStatus, az as TagVariant, aD as Toolbar, aE as ToolbarItem, aF as ToolbarProps, aQ as Typography, aR as TypographyLinkProps, aS as TypographyProps, aT as TypographyTitleProps, aU as TypographyType, aV as Upload, aW as UploadChangeInfo, aX as UploadDraggerProps, aY as UploadFile, aZ as UploadFileStatus, a_ as UploadProps, a$ as UploadRequestOptions, b3 as message } from './core-DlvCqFU7.js';
1
+ export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Segmented, ah as SegmentedOption, ai as SegmentedProps, aj as SegmentedValue, aq as TabItem, ar as Tabs, at as TabsOrientation, au as TabsPosition, av as TabsProps, aw as TabsType, ax as Tag, ay as TagProps, T as TagStatus, az as TagVariant, aD as Toolbar, aE as ToolbarItem, aF as ToolbarProps, aQ as Typography, aR as TypographyLinkProps, aS as TypographyProps, aT as TypographyTitleProps, aU as TypographyType, aV as Upload, aW as UploadChangeInfo, aX as UploadDraggerProps, aY as UploadFile, aZ as UploadFileStatus, b0 as UploadProps, b4 as UploadRequestOptions, b8 as message } from './core-BwuvPHYM.js';
2
2
  export { f as Button, B as ButtonProps, e as ButtonSize, g as ButtonVariant, h as Modal, d as ModalActionResult, M as ModalOpenConfig, i as ModalProps, j as ModalType, a as OverlayApiHandle, k as Select, S as SelectOption, c as SelectProps, m as SelectValue } from './Select-CCrPqULn.js';
3
3
  import 'react';
4
4
  import './shared-Bx4B28Wh.js';
package/dist/core.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  Typography,
11
11
  Upload,
12
12
  message
13
- } from "./chunk-NEYUBLLB.js";
13
+ } from "./chunk-KT7DIBXX.js";
14
14
  import "./chunk-YQDHCORW.js";
15
15
  import {
16
16
  Modal,