@x-plat/design-system 0.5.64 → 0.5.66

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;
@@ -2819,8 +2866,6 @@
2819
2866
  .lib-xplat-checkbox > .label {
2820
2867
  color: var(--semantic-text-strong);
2821
2868
  font-weight: 400;
2822
- line-height: 1em;
2823
- padding-top: 1px;
2824
2869
  }
2825
2870
 
2826
2871
  /* src/components/Chip/chip.scss */
@@ -5173,52 +5218,50 @@
5173
5218
  }
5174
5219
 
5175
5220
  /* src/components/TextArea/textArea.scss */
5176
- .lib-xplat-textarea-wrapper {
5221
+ .lib-xplat-textarea-wrap {
5177
5222
  display: flex;
5178
5223
  flex-direction: column;
5179
- gap: var(--spacing-space-2);
5224
+ width: 100%;
5180
5225
  }
5181
- .lib-xplat-textarea-wrapper .lib-xplat-textarea {
5182
- display: flex;
5183
- align-items: center;
5226
+ .lib-xplat-textarea-wrap .lib-xplat-textarea {
5227
+ width: 100%;
5184
5228
  border: 1px solid var(--semantic-border-default);
5185
5229
  border-radius: var(--spacing-radius-md);
5186
- min-height: var(--spacing-control-height-md);
5187
- overflow: hidden;
5188
5230
  background-color: var(--semantic-surface-neutral-default);
5189
- width: 100%;
5231
+ color: var(--semantic-text-subtle);
5232
+ font-family: inherit;
5233
+ outline: none;
5190
5234
  transition: border-color 0.15s, box-shadow 0.15s;
5191
5235
  }
5192
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:hover:not(.disabled):not(:focus-within) {
5236
+ .lib-xplat-textarea-wrap .lib-xplat-textarea.sm {
5237
+ padding: var(--spacing-space-2) var(--spacing-space-3);
5238
+ font-size: var(--semantic-typo-caption-1-r-size);
5239
+ line-height: var(--semantic-typo-caption-1-r-lh);
5240
+ }
5241
+ .lib-xplat-textarea-wrap .lib-xplat-textarea.md {
5242
+ padding: var(--spacing-space-2) var(--spacing-space-4);
5243
+ font-size: var(--semantic-typo-label-2-m-size);
5244
+ line-height: var(--semantic-typo-label-2-m-lh);
5245
+ }
5246
+ .lib-xplat-textarea-wrap .lib-xplat-textarea.lg {
5247
+ padding: var(--spacing-space-3) var(--spacing-space-4);
5248
+ font-size: var(--semantic-typo-label-1-m-size);
5249
+ line-height: var(--semantic-typo-label-1-m-lh);
5250
+ }
5251
+ .lib-xplat-textarea-wrap .lib-xplat-textarea:hover:not(.disabled):not(:focus) {
5193
5252
  border-color: var(--semantic-border-strong);
5194
5253
  }
5195
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:focus-within {
5254
+ .lib-xplat-textarea-wrap .lib-xplat-textarea:focus {
5196
5255
  border-color: var(--semantic-interaction-focus-ring);
5197
5256
  box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5198
5257
  }
5199
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
5258
+ .lib-xplat-textarea-wrap .lib-xplat-textarea:not(:placeholder-shown):not(:focus) {
5200
5259
  border-color: var(--semantic-border-strong);
5201
5260
  }
5202
- .lib-xplat-textarea-wrapper .lib-xplat-textarea.disabled {
5261
+ .lib-xplat-textarea-wrap .lib-xplat-textarea.disabled {
5203
5262
  background-color: var(--semantic-surface-neutral-disabled);
5204
5263
  cursor: not-allowed;
5205
- }
5206
- .lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea {
5207
- border: none;
5208
- outline: none;
5209
- flex: 1;
5210
- padding-left: var(--spacing-space-4);
5211
- padding-right: var(--spacing-space-4);
5212
- width: 100%;
5213
- color: var(--semantic-text-subtle);
5214
5264
  resize: none;
5215
- height: 1.5em;
5216
- font-size: var(--semantic-typo-label-2-m-size);
5217
- line-height: var(--semantic-typo-label-2-m-lh);
5218
- font-family: inherit;
5219
- }
5220
- .lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea:disabled {
5221
- cursor: not-allowed;
5222
5265
  }
5223
5266
 
5224
5267
  /* 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';