@sia.soul/sia-react-ui 0.1.34 → 0.1.36

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
@@ -3219,7 +3219,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3219
3219
  }
3220
3220
  .sia-tabs--tech-line > .sia-tabs__header {
3221
3221
  min-height: 50px;
3222
- padding: 0 28px;
3222
+ padding: 0 12px;
3223
3223
  background: var(--sia-tabs-line-surface);
3224
3224
  gap: 28px;
3225
3225
  }
@@ -3377,7 +3377,6 @@ fieldset:disabled .sia-input-number__floating-placeholder {
3377
3377
  .sia-tabs--tech-line.sia-tabs--horizontal > .sia-tabs__header {
3378
3378
  flex-wrap: wrap;
3379
3379
  gap: 0;
3380
- padding-inline: 16px;
3381
3380
  }
3382
3381
  .sia-tabs--tech-line.sia-tabs--horizontal > .sia-tabs__header .sia-tabs__title {
3383
3382
  flex-basis: 100%;
@@ -7120,16 +7119,24 @@ fieldset:disabled .sia-input-number__floating-placeholder {
7120
7119
  grid-column: 2 / -1;
7121
7120
  font-size: 12px;
7122
7121
  }
7123
- .sia-upload__item > .sia-upload__remove {
7122
+ .sia-upload__actions {
7123
+ display: inline-flex;
7124
7124
  grid-column: 3;
7125
7125
  grid-row: 1;
7126
- width: 28px;
7127
- height: 28px;
7126
+ align-items: center;
7127
+ gap: 2px;
7128
+ flex: 0 0 auto;
7129
+ }
7130
+ .sia-upload__actions > .sia-button {
7131
+ width: 26px;
7132
+ height: 26px;
7133
+ min-width: 0;
7134
+ padding: 0;
7128
7135
  }
7129
7136
  .sia-upload__item--error {
7130
7137
  border-color: var(--sia-color-error);
7131
7138
  }
7132
- .sia-upload__item--error > .sia-upload__remove {
7139
+ .sia-upload__item--error .sia-upload__remove {
7133
7140
  color: var(--sia-color-error);
7134
7141
  }
7135
7142
  .sia-upload__thumbnail.sia-button {
@@ -7178,8 +7185,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
7178
7185
  .sia-upload--picture-card .sia-upload__item,
7179
7186
  .sia-upload--picture-card .sia-upload__choose {
7180
7187
  box-sizing: border-box;
7181
- width: 112px;
7182
- height: 112px;
7188
+ width: var(--sia-upload-card-width, 112px);
7189
+ height: var(--sia-upload-card-height, 112px);
7183
7190
  border: 1px solid var(--sia-color-border);
7184
7191
  border-radius: 9px;
7185
7192
  }
@@ -7189,7 +7196,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
7189
7196
  justify-content: center;
7190
7197
  padding: 8px;
7191
7198
  gap: 4px;
7192
- overflow: hidden;
7199
+ overflow: visible;
7193
7200
  }
7194
7201
  .sia-upload--picture-card .sia-upload__choose {
7195
7202
  display: flex;
@@ -7209,6 +7216,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
7209
7216
  height: 70px;
7210
7217
  min-height: 0;
7211
7218
  flex: 1 1 auto;
7219
+ overflow: hidden;
7212
7220
  }
7213
7221
  .sia-upload--picture-card .sia-upload__name {
7214
7222
  display: block;
@@ -7217,18 +7225,50 @@ fieldset:disabled .sia-input-number__floating-placeholder {
7217
7225
  font-size: 12px;
7218
7226
  flex: 0 0 auto;
7219
7227
  }
7220
- .sia-upload--picture-card .sia-upload__remove {
7228
+ .sia-upload--picture-card .sia-upload__actions {
7221
7229
  position: absolute;
7222
- right: 3px;
7223
- top: 3px;
7230
+ z-index: 1;
7231
+ top: 50%;
7232
+ left: 50%;
7233
+ width: max-content;
7234
+ justify-content: center;
7235
+ padding: 3px;
7236
+ border-radius: 6px;
7224
7237
  background: var(--sia-color-surface);
7225
- border-radius: 50%;
7238
+ box-shadow: 0 2px 8px rgb(0 0 0 / 15%);
7226
7239
  opacity: 0;
7227
- z-index: 1;
7240
+ pointer-events: none;
7241
+ transform: translate(-50%, -50%);
7242
+ transition: opacity 150ms ease;
7228
7243
  }
7229
- .sia-upload--picture-card .sia-upload__item:hover .sia-upload__remove,
7230
- .sia-upload--picture-card .sia-upload__item:focus-within .sia-upload__remove {
7244
+ .sia-upload--picture-card .sia-upload__item:hover .sia-upload__actions,
7245
+ .sia-upload--picture-card .sia-upload__item:has(:focus-visible) .sia-upload__actions {
7231
7246
  opacity: 1;
7247
+ pointer-events: auto;
7248
+ }
7249
+ .sia-upload--picture-card .sia-upload__item:hover,
7250
+ .sia-upload--picture-card .sia-upload__item:has(:focus-visible) {
7251
+ z-index: 2;
7252
+ }
7253
+ .sia-upload--compact-card .sia-upload__name,
7254
+ .sia-upload--compact-card .sia-upload__choose > span > span:not(.sia-icon) {
7255
+ display: none;
7256
+ }
7257
+ .sia-upload--compact-card .sia-upload__choose > span {
7258
+ gap: 0;
7259
+ }
7260
+ .sia-upload--compact-card .sia-upload__error {
7261
+ position: absolute;
7262
+ inset: auto 0 0;
7263
+ border-radius: 0 0 8px 8px;
7264
+ text-align: center;
7265
+ background: var(--sia-color-surface);
7266
+ }
7267
+ .sia-upload--compact-card .sia-upload__uploading {
7268
+ padding: 4px;
7269
+ gap: 4px;
7270
+ font-size: 10px;
7271
+ border-radius: inherit;
7232
7272
  }
7233
7273
  .sia-upload--picture-card .sia-upload__item--error {
7234
7274
  border-color: var(--sia-color-error);
@@ -7273,8 +7313,14 @@ fieldset:disabled .sia-input-number__floating-placeholder {
7273
7313
  cursor: not-allowed;
7274
7314
  }
7275
7315
  @media (hover: none) {
7276
- .sia-upload--picture-card .sia-upload__remove {
7316
+ .sia-upload--picture-card .sia-upload__actions {
7277
7317
  opacity: 1;
7318
+ pointer-events: auto;
7319
+ }
7320
+ }
7321
+ @media (prefers-reduced-motion: reduce) {
7322
+ .sia-upload--picture-card .sia-upload__actions {
7323
+ transition: none;
7278
7324
  }
7279
7325
  }
7280
7326
  .sia-form > fieldset {
@@ -7296,7 +7342,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
7296
7342
  text-align: right;
7297
7343
  line-height: 1.45;
7298
7344
  }
7299
- .sia-form-item__label > span {
7345
+ .sia-form-item__required-mark {
7300
7346
  margin-right: 4px;
7301
7347
  color: var(--sia-color-error);
7302
7348
  }
@@ -8846,31 +8892,81 @@ button.sia-pagination__total:disabled {
8846
8892
  position: fixed;
8847
8893
  z-index: 1500;
8848
8894
  inset: 0;
8849
- display: grid;
8850
- place-items: center;
8851
- padding: 56px;
8895
+ box-sizing: border-box;
8852
8896
  background: rgb(0 0 0 / 78%);
8853
8897
  animation: sia-fade-in 180ms ease;
8854
8898
  }
8855
- .sia-image-preview > img {
8856
- max-width: 100%;
8857
- max-height: 100%;
8858
- object-fit: contain;
8859
- }
8860
- .sia-image-preview > button {
8899
+ .sia-image-preview__stage {
8861
8900
  position: absolute;
8862
- top: 18px;
8863
- right: 18px;
8901
+ inset: 64px 24px 92px;
8864
8902
  display: grid;
8903
+ grid-template: minmax(0, 1fr) / minmax(0, 1fr);
8865
8904
  place-items: center;
8905
+ overflow: hidden;
8906
+ }
8907
+ .sia-image-preview__stage > img {
8908
+ display: block;
8909
+ max-width: none;
8910
+ max-height: none;
8911
+ object-fit: contain;
8912
+ user-select: none;
8913
+ touch-action: none;
8914
+ cursor: grab;
8915
+ }
8916
+ .sia-image-preview__stage > img:active {
8917
+ cursor: grabbing;
8918
+ }
8919
+ .sia-image-preview .sia-image-preview__close {
8920
+ position: absolute;
8921
+ top: 16px;
8922
+ right: 16px;
8866
8923
  width: 38px;
8867
8924
  height: 38px;
8925
+ padding: 0;
8868
8926
  color: #fff;
8869
- cursor: pointer;
8870
8927
  background: rgb(255 255 255 / 12%);
8871
8928
  border: 0;
8872
8929
  border-radius: 50%;
8873
8930
  }
8931
+ .sia-image-preview__toolbar {
8932
+ position: absolute;
8933
+ bottom: 24px;
8934
+ left: 50%;
8935
+ display: flex;
8936
+ box-sizing: border-box;
8937
+ align-items: center;
8938
+ gap: 6px;
8939
+ max-width: calc(100% - 24px);
8940
+ padding: 6px 12px;
8941
+ border-radius: 28px;
8942
+ background: rgb(45 45 45 / 90%);
8943
+ transform: translateX(-50%);
8944
+ }
8945
+ .sia-image-preview__scale {
8946
+ flex: 0 0 48px;
8947
+ color: #fff;
8948
+ text-align: center;
8949
+ font-size: 14px;
8950
+ font-variant-numeric: tabular-nums;
8951
+ white-space: nowrap;
8952
+ }
8953
+ .sia-image-preview__toolbar > .sia-button {
8954
+ flex: 0 1 36px;
8955
+ width: 36px;
8956
+ min-width: 0;
8957
+ height: 36px;
8958
+ padding: 0;
8959
+ color: #fff;
8960
+ }
8961
+ .sia-image-preview__toolbar > .sia-button:hover:not(:disabled) {
8962
+ background: rgb(255 255 255 / 16%);
8963
+ }
8964
+ .sia-image-preview__toolbar > .sia-button:disabled {
8965
+ color: rgb(255 255 255 / 30%);
8966
+ }
8967
+ .sia-image-preview__error {
8968
+ color: #fff;
8969
+ }
8874
8970
  body > .sia-popup-portal[data-sia-popup-layer] {
8875
8971
  position: fixed;
8876
8972
  z-index: 1080;
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, az as TagSize, T as TagStatus, aA as TagVariant, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, b1 as UploadProps, b5 as UploadRequestOptions, b9 as message } from './core-CIj-Xevv.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, az as TagSize, T as TagStatus, aA as TagVariant, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, b1 as UploadProps, b5 as UploadRequestOptions, b9 as message } from './core-CLt6U7oH.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, az as TagSize, T as TagStatus, aA as TagVariant, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, b1 as UploadProps, b5 as UploadRequestOptions, b9 as message } from './core-Cj9bxBwT.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, az as TagSize, T as TagStatus, aA as TagVariant, aE as Toolbar, aF as ToolbarItem, aG as ToolbarProps, aR as Typography, aS as TypographyLinkProps, aT as TypographyProps, aU as TypographyTitleProps, aV as TypographyType, aW as Upload, aX as UploadChangeInfo, aY as UploadDraggerProps, aZ as UploadFile, a_ as UploadFileStatus, b1 as UploadProps, b5 as UploadRequestOptions, b9 as message } from './core-vIHbXa6s.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,17 +10,17 @@ import {
10
10
  Typography,
11
11
  Upload,
12
12
  message
13
- } from "./chunk-Z63VYNCR.js";
13
+ } from "./chunk-7CPIEYS2.js";
14
14
  import "./chunk-SMCYEPBL.js";
15
15
  import {
16
16
  Modal,
17
17
  Select
18
- } from "./chunk-QAVQEBIS.js";
18
+ } from "./chunk-ZTJUFVJO.js";
19
19
  import {
20
20
  Icon,
21
21
  Input,
22
22
  Segmented
23
- } from "./chunk-HOU5JLNJ.js";
23
+ } from "./chunk-XCVAVCIO.js";
24
24
  import {
25
25
  Button
26
26
  } from "./chunk-IKAMZNCK.js";