@sia.soul/sia-react-ui 0.1.27 → 0.1.29

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
@@ -3517,8 +3517,21 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3517
3517
  gap: 5px;
3518
3518
  }
3519
3519
  .sia-table__header-label-content {
3520
+ display: block;
3520
3521
  min-width: 0;
3521
3522
  flex: 1;
3523
+ overflow: hidden;
3524
+ white-space: nowrap;
3525
+ text-overflow: ellipsis;
3526
+ }
3527
+ .sia-table__sortable-header > span:first-child,
3528
+ .sia-table__filter-header > span:first-child,
3529
+ .sia-table__resizable-header > span:first-child {
3530
+ flex: 1;
3531
+ min-width: 0;
3532
+ overflow: hidden;
3533
+ white-space: nowrap;
3534
+ text-overflow: ellipsis;
3522
3535
  }
3523
3536
  .sia-table__header-description {
3524
3537
  display: inline-grid;
@@ -3828,24 +3841,40 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3828
3841
  display: flex;
3829
3842
  align-items: center;
3830
3843
  justify-content: space-between;
3844
+ min-width: 0;
3831
3845
  gap: 6px;
3832
3846
  }
3833
3847
  .sia-table__sort-button {
3834
3848
  display: grid;
3835
3849
  align-content: center;
3836
- width: 20px;
3850
+ justify-items: center;
3851
+ flex: 0 0 26px;
3852
+ width: 26px;
3837
3853
  height: 28px;
3838
3854
  padding: 0;
3839
3855
  color: var(--sia-color-text-secondary);
3840
3856
  cursor: pointer;
3841
3857
  background: transparent;
3842
3858
  border: 0;
3859
+ border-radius: var(--sia-radius);
3843
3860
  }
3844
- .sia-table__sort-button .sia-icon {
3861
+ .sia-table__sort-button[data-sort-order=none] .sia-icon {
3845
3862
  margin-block: -2px;
3846
3863
  }
3847
- .sia-table__sort-button .is-active {
3864
+ .sia-table__sort-button:not([data-sort-order=none]) {
3848
3865
  color: var(--sia-color-primary-text);
3866
+ background: color-mix(in srgb, var(--sia-color-primary) 14%, var(--sia-color-surface));
3867
+ }
3868
+ .sia-table__sort-button:not([data-sort-order=none]) .sia-icon {
3869
+ stroke-width: 2.5;
3870
+ }
3871
+ .sia-table__sort-button:hover {
3872
+ color: var(--sia-color-primary-text);
3873
+ background: color-mix(in srgb, var(--sia-color-primary) 20%, var(--sia-color-surface));
3874
+ }
3875
+ .sia-table__sort-button:focus-visible {
3876
+ outline: 2px solid var(--sia-color-primary);
3877
+ outline-offset: 1px;
3849
3878
  }
3850
3879
  .sia-table__filter-header {
3851
3880
  display: flex;
@@ -6979,6 +7008,205 @@ fieldset:disabled .sia-input-number__floating-placeholder {
6979
7008
  .sia-upload-dragger__content strong {
6980
7009
  color: var(--sia-color-text);
6981
7010
  }
7011
+ .sia-upload {
7012
+ min-width: 0;
7013
+ outline-offset: 4px;
7014
+ }
7015
+ .sia-upload__list:empty {
7016
+ display: none;
7017
+ }
7018
+ .sia-upload__item {
7019
+ position: relative;
7020
+ min-width: 0;
7021
+ }
7022
+ .sia-upload__choose {
7023
+ gap: 8px;
7024
+ }
7025
+ .sia-upload__choose > span {
7026
+ display: inline-flex;
7027
+ align-items: center;
7028
+ gap: 8px;
7029
+ }
7030
+ .sia-upload__name a {
7031
+ color: var(--sia-color-primary-text);
7032
+ text-decoration: none;
7033
+ }
7034
+ .sia-upload__item--error .sia-upload__name a {
7035
+ color: inherit;
7036
+ }
7037
+ .sia-upload__uploading {
7038
+ display: grid;
7039
+ grid-column: 2 / -1;
7040
+ gap: 5px;
7041
+ font-size: 12px;
7042
+ color: var(--sia-color-text-secondary);
7043
+ }
7044
+ .sia-upload__progress {
7045
+ display: block;
7046
+ grid-column: auto;
7047
+ width: 100%;
7048
+ }
7049
+ .sia-upload__error {
7050
+ grid-column: 2 / -1;
7051
+ font-size: 12px;
7052
+ }
7053
+ .sia-upload__item > .sia-upload__remove {
7054
+ grid-column: 3;
7055
+ grid-row: 1;
7056
+ width: 28px;
7057
+ height: 28px;
7058
+ }
7059
+ .sia-upload__item--error {
7060
+ border-color: var(--sia-color-error);
7061
+ }
7062
+ .sia-upload__item--error > .sia-upload__remove {
7063
+ color: var(--sia-color-error);
7064
+ }
7065
+ .sia-upload__thumbnail.sia-button {
7066
+ display: grid;
7067
+ place-items: center;
7068
+ width: 60px;
7069
+ height: 60px;
7070
+ padding: 0;
7071
+ color: inherit;
7072
+ background: var(--sia-color-control-hover);
7073
+ border-radius: 5px;
7074
+ }
7075
+ .sia-upload__thumbnail img {
7076
+ display: block;
7077
+ width: 100%;
7078
+ height: 100%;
7079
+ object-fit: cover;
7080
+ }
7081
+ .sia-upload__thumbnail > span {
7082
+ display: grid;
7083
+ place-items: center;
7084
+ width: 100%;
7085
+ height: 100%;
7086
+ }
7087
+ .sia-upload--picture .sia-upload__item {
7088
+ min-height: 84px;
7089
+ padding: 10px;
7090
+ border: 1px solid var(--sia-color-border);
7091
+ border-radius: 8px;
7092
+ }
7093
+ .sia-upload--picture .sia-upload__item--error {
7094
+ border-color: var(--sia-color-error);
7095
+ }
7096
+ .sia-upload--picture .sia-upload__thumbnail {
7097
+ grid-row: 1 / 3;
7098
+ }
7099
+ .sia-upload--picture .sia-upload__uploading,
7100
+ .sia-upload--picture .sia-upload__error {
7101
+ grid-row: 2;
7102
+ }
7103
+ .sia-upload--picture-card .sia-upload__list {
7104
+ display: flex;
7105
+ flex-wrap: wrap;
7106
+ gap: 10px;
7107
+ }
7108
+ .sia-upload--picture-card .sia-upload__item,
7109
+ .sia-upload--picture-card .sia-upload__choose {
7110
+ box-sizing: border-box;
7111
+ width: 112px;
7112
+ height: 112px;
7113
+ border: 1px solid var(--sia-color-border);
7114
+ border-radius: 9px;
7115
+ }
7116
+ .sia-upload--picture-card .sia-upload__item {
7117
+ display: flex;
7118
+ flex-direction: column;
7119
+ justify-content: center;
7120
+ padding: 8px;
7121
+ gap: 4px;
7122
+ overflow: hidden;
7123
+ }
7124
+ .sia-upload--picture-card .sia-upload__choose {
7125
+ display: flex;
7126
+ flex-direction: column;
7127
+ gap: 10px;
7128
+ padding: 8px;
7129
+ border-style: dashed;
7130
+ color: var(--sia-color-text);
7131
+ background: var(--sia-color-control-hover);
7132
+ }
7133
+ .sia-upload--picture-card .sia-upload__choose > span {
7134
+ flex-direction: column;
7135
+ gap: 10px;
7136
+ }
7137
+ .sia-upload--picture-card .sia-upload__thumbnail {
7138
+ width: 100%;
7139
+ height: 70px;
7140
+ min-height: 0;
7141
+ flex: 1 1 auto;
7142
+ }
7143
+ .sia-upload--picture-card .sia-upload__name {
7144
+ display: block;
7145
+ width: 100%;
7146
+ text-align: center;
7147
+ font-size: 12px;
7148
+ flex: 0 0 auto;
7149
+ }
7150
+ .sia-upload--picture-card .sia-upload__remove {
7151
+ position: absolute;
7152
+ right: 3px;
7153
+ top: 3px;
7154
+ background: var(--sia-color-surface);
7155
+ border-radius: 50%;
7156
+ opacity: 0;
7157
+ z-index: 1;
7158
+ }
7159
+ .sia-upload--picture-card .sia-upload__item:hover .sia-upload__remove,
7160
+ .sia-upload--picture-card .sia-upload__item:focus-within .sia-upload__remove {
7161
+ opacity: 1;
7162
+ }
7163
+ .sia-upload--picture-card .sia-upload__item--error {
7164
+ border-color: var(--sia-color-error);
7165
+ }
7166
+ .sia-upload--picture-card .sia-upload__uploading {
7167
+ position: absolute;
7168
+ inset: 0;
7169
+ display: flex;
7170
+ flex-direction: column;
7171
+ justify-content: center;
7172
+ gap: 12px;
7173
+ padding: 12px;
7174
+ text-align: center;
7175
+ background: var(--sia-color-surface);
7176
+ pointer-events: none;
7177
+ }
7178
+ .sia-upload--picture-card .sia-upload__error {
7179
+ font-size: 11px;
7180
+ }
7181
+ .sia-upload-dragger .sia-upload__choose {
7182
+ width: 100%;
7183
+ height: auto;
7184
+ padding: 0;
7185
+ white-space: normal;
7186
+ border: 0;
7187
+ }
7188
+ .sia-upload-dragger .sia-upload__choose > span {
7189
+ display: block;
7190
+ width: 100%;
7191
+ }
7192
+ .sia-upload-dragger__content {
7193
+ box-sizing: border-box;
7194
+ }
7195
+ .sia-upload-dragger__content > .sia-icon {
7196
+ color: var(--sia-color-primary);
7197
+ }
7198
+ .sia-upload.is-dragging .sia-upload__choose {
7199
+ outline: 2px solid var(--sia-color-primary);
7200
+ outline-offset: 2px;
7201
+ }
7202
+ .sia-upload.is-disabled .sia-upload-dragger__content {
7203
+ cursor: not-allowed;
7204
+ }
7205
+ @media (hover: none) {
7206
+ .sia-upload--picture-card .sia-upload__remove {
7207
+ opacity: 1;
7208
+ }
7209
+ }
6982
7210
  .sia-form > fieldset {
6983
7211
  display: contents;
6984
7212
  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-BM-wnJRa.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-C_aAA7OF.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-CLqv6btD.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-CuszFlw9.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,12 +10,12 @@ import {
10
10
  Typography,
11
11
  Upload,
12
12
  message
13
- } from "./chunk-NAOV53NK.js";
13
+ } from "./chunk-I5KAI6FC.js";
14
14
  import "./chunk-YQDHCORW.js";
15
15
  import {
16
16
  Modal,
17
17
  Select
18
- } from "./chunk-5MW3NE2V.js";
18
+ } from "./chunk-DQYNL6VZ.js";
19
19
  import {
20
20
  Icon,
21
21
  Input,