@x-plat/design-system 0.5.63 → 0.5.65

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.
@@ -2592,6 +2592,53 @@
2592
2592
  }
2593
2593
  }
2594
2594
 
2595
+ /* src/components/AutoResizeTextArea/autoResizeTextArea.scss */
2596
+ .lib-xplat-auto-resize-textarea-wrapper {
2597
+ display: flex;
2598
+ flex-direction: column;
2599
+ gap: var(--spacing-space-2);
2600
+ }
2601
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea {
2602
+ display: flex;
2603
+ align-items: center;
2604
+ border: 1px solid var(--semantic-border-default);
2605
+ border-radius: var(--spacing-radius-md);
2606
+ min-height: var(--spacing-control-height-md);
2607
+ overflow: hidden;
2608
+ background-color: var(--semantic-surface-neutral-default);
2609
+ width: 100%;
2610
+ transition: border-color 0.15s, box-shadow 0.15s;
2611
+ }
2612
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
2613
+ border-color: var(--semantic-border-strong);
2614
+ }
2615
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
2616
+ border-color: var(--semantic-interaction-focus-ring);
2617
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2618
+ }
2619
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
2620
+ border-color: var(--semantic-border-strong);
2621
+ }
2622
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea.disabled {
2623
+ background-color: var(--semantic-surface-neutral-disabled);
2624
+ cursor: not-allowed;
2625
+ }
2626
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea {
2627
+ border: none;
2628
+ outline: none;
2629
+ flex: 1;
2630
+ padding: var(--spacing-space-2) var(--spacing-space-4);
2631
+ width: 100%;
2632
+ color: var(--semantic-text-subtle);
2633
+ resize: none;
2634
+ font-size: var(--semantic-typo-label-2-m-size);
2635
+ line-height: var(--semantic-typo-label-2-m-lh);
2636
+ font-family: inherit;
2637
+ }
2638
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea:disabled {
2639
+ cursor: not-allowed;
2640
+ }
2641
+
2595
2642
  /* src/components/IconButton/iconButton.scss */
2596
2643
  .lib-xplat-icon-button {
2597
2644
  display: inline-flex;
@@ -2757,6 +2804,7 @@
2757
2804
  }
2758
2805
  .lib-xplat-checkbox > .checkbox {
2759
2806
  display: flex;
2807
+ flex-shrink: 0;
2760
2808
  align-items: center;
2761
2809
  justify-content: center;
2762
2810
  border-radius: var(--spacing-radius-sm);
@@ -4170,6 +4218,7 @@
4170
4218
  border: 2px solid var(--semantic-border-strong);
4171
4219
  border-radius: 50%;
4172
4220
  display: flex;
4221
+ flex-shrink: 0;
4173
4222
  align-items: center;
4174
4223
  justify-content: center;
4175
4224
  cursor: pointer;
@@ -5171,52 +5220,50 @@
5171
5220
  }
5172
5221
 
5173
5222
  /* src/components/TextArea/textArea.scss */
5174
- .lib-xplat-textarea-wrapper {
5223
+ .lib-xplat-textarea-wrap {
5175
5224
  display: flex;
5176
5225
  flex-direction: column;
5177
- gap: var(--spacing-space-2);
5226
+ width: 100%;
5178
5227
  }
5179
- .lib-xplat-textarea-wrapper .lib-xplat-textarea {
5180
- display: flex;
5181
- align-items: center;
5228
+ .lib-xplat-textarea-wrap .lib-xplat-textarea {
5229
+ width: 100%;
5182
5230
  border: 1px solid var(--semantic-border-default);
5183
5231
  border-radius: var(--spacing-radius-md);
5184
- min-height: var(--spacing-control-height-md);
5185
- overflow: hidden;
5186
5232
  background-color: var(--semantic-surface-neutral-default);
5187
- width: 100%;
5233
+ color: var(--semantic-text-subtle);
5234
+ font-family: inherit;
5235
+ outline: none;
5188
5236
  transition: border-color 0.15s, box-shadow 0.15s;
5189
5237
  }
5190
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:hover:not(.disabled):not(:focus-within) {
5238
+ .lib-xplat-textarea-wrap .lib-xplat-textarea.sm {
5239
+ padding: var(--spacing-space-2) var(--spacing-space-3);
5240
+ font-size: var(--semantic-typo-caption-1-r-size);
5241
+ line-height: var(--semantic-typo-caption-1-r-lh);
5242
+ }
5243
+ .lib-xplat-textarea-wrap .lib-xplat-textarea.md {
5244
+ padding: var(--spacing-space-2) var(--spacing-space-4);
5245
+ font-size: var(--semantic-typo-label-2-m-size);
5246
+ line-height: var(--semantic-typo-label-2-m-lh);
5247
+ }
5248
+ .lib-xplat-textarea-wrap .lib-xplat-textarea.lg {
5249
+ padding: var(--spacing-space-3) var(--spacing-space-4);
5250
+ font-size: var(--semantic-typo-label-1-m-size);
5251
+ line-height: var(--semantic-typo-label-1-m-lh);
5252
+ }
5253
+ .lib-xplat-textarea-wrap .lib-xplat-textarea:hover:not(.disabled):not(:focus) {
5191
5254
  border-color: var(--semantic-border-strong);
5192
5255
  }
5193
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:focus-within {
5256
+ .lib-xplat-textarea-wrap .lib-xplat-textarea:focus {
5194
5257
  border-color: var(--semantic-interaction-focus-ring);
5195
5258
  box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5196
5259
  }
5197
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
5260
+ .lib-xplat-textarea-wrap .lib-xplat-textarea:not(:placeholder-shown):not(:focus) {
5198
5261
  border-color: var(--semantic-border-strong);
5199
5262
  }
5200
- .lib-xplat-textarea-wrapper .lib-xplat-textarea.disabled {
5263
+ .lib-xplat-textarea-wrap .lib-xplat-textarea.disabled {
5201
5264
  background-color: var(--semantic-surface-neutral-disabled);
5202
5265
  cursor: not-allowed;
5203
- }
5204
- .lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea {
5205
- border: none;
5206
- outline: none;
5207
- flex: 1;
5208
- padding-left: var(--spacing-space-4);
5209
- padding-right: var(--spacing-space-4);
5210
- width: 100%;
5211
- color: var(--semantic-text-subtle);
5212
5266
  resize: none;
5213
- height: 1.5em;
5214
- font-size: var(--semantic-typo-label-2-m-size);
5215
- line-height: var(--semantic-typo-label-2-m-lh);
5216
- font-family: inherit;
5217
- }
5218
- .lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea:disabled {
5219
- cursor: not-allowed;
5220
5267
  }
5221
5268
 
5222
5269
  /* src/components/Toast/toast.scss */
@@ -8,6 +8,7 @@ export { Button } from './Button/index.cjs';
8
8
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './Calendar/index.cjs';
9
9
  export { CardTab } from './CardTab/index.cjs';
10
10
  export { Chart } from './Chart/index.cjs';
11
+ export { AutoResizeTextArea } from './AutoResizeTextArea/index.cjs';
11
12
  export { ChatInput } from './ChatInput/index.cjs';
12
13
  export { CheckBox } from './CheckBox/index.cjs';
13
14
  export { Chip } from './Chip/index.cjs';
@@ -8,6 +8,7 @@ export { Button } from './Button/index.js';
8
8
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './Calendar/index.js';
9
9
  export { CardTab } from './CardTab/index.js';
10
10
  export { Chart } from './Chart/index.js';
11
+ export { AutoResizeTextArea } from './AutoResizeTextArea/index.js';
11
12
  export { ChatInput } from './ChatInput/index.js';
12
13
  export { CheckBox } from './CheckBox/index.js';
13
14
  export { Chip } from './Chip/index.js';