@x-plat/design-system 0.5.64 → 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.
package/dist/index.css CHANGED
@@ -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;
@@ -5173,52 +5220,50 @@
5173
5220
  }
5174
5221
 
5175
5222
  /* src/components/TextArea/textArea.scss */
5176
- .lib-xplat-textarea-wrapper {
5223
+ .lib-xplat-textarea-wrap {
5177
5224
  display: flex;
5178
5225
  flex-direction: column;
5179
- gap: var(--spacing-space-2);
5226
+ width: 100%;
5180
5227
  }
5181
- .lib-xplat-textarea-wrapper .lib-xplat-textarea {
5182
- display: flex;
5183
- align-items: center;
5228
+ .lib-xplat-textarea-wrap .lib-xplat-textarea {
5229
+ width: 100%;
5184
5230
  border: 1px solid var(--semantic-border-default);
5185
5231
  border-radius: var(--spacing-radius-md);
5186
- min-height: var(--spacing-control-height-md);
5187
- overflow: hidden;
5188
5232
  background-color: var(--semantic-surface-neutral-default);
5189
- width: 100%;
5233
+ color: var(--semantic-text-subtle);
5234
+ font-family: inherit;
5235
+ outline: none;
5190
5236
  transition: border-color 0.15s, box-shadow 0.15s;
5191
5237
  }
5192
- .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) {
5193
5254
  border-color: var(--semantic-border-strong);
5194
5255
  }
5195
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:focus-within {
5256
+ .lib-xplat-textarea-wrap .lib-xplat-textarea:focus {
5196
5257
  border-color: var(--semantic-interaction-focus-ring);
5197
5258
  box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
5198
5259
  }
5199
- .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) {
5200
5261
  border-color: var(--semantic-border-strong);
5201
5262
  }
5202
- .lib-xplat-textarea-wrapper .lib-xplat-textarea.disabled {
5263
+ .lib-xplat-textarea-wrap .lib-xplat-textarea.disabled {
5203
5264
  background-color: var(--semantic-surface-neutral-disabled);
5204
5265
  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
5266
  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
5267
  }
5223
5268
 
5224
5269
  /* src/components/Toast/toast.scss */
package/dist/index.d.cts CHANGED
@@ -9,6 +9,7 @@ export { Button } from './components/Button/index.cjs';
9
9
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './components/Calendar/index.cjs';
10
10
  export { CardTab } from './components/CardTab/index.cjs';
11
11
  export { Chart } from './components/Chart/index.cjs';
12
+ export { AutoResizeTextArea } from './components/AutoResizeTextArea/index.cjs';
12
13
  export { ChatInput } from './components/ChatInput/index.cjs';
13
14
  export { CheckBox } from './components/CheckBox/index.cjs';
14
15
  export { Chip } from './components/Chip/index.cjs';
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { Button } from './components/Button/index.js';
9
9
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './components/Calendar/index.js';
10
10
  export { CardTab } from './components/CardTab/index.js';
11
11
  export { Chart } from './components/Chart/index.js';
12
+ export { AutoResizeTextArea } from './components/AutoResizeTextArea/index.js';
12
13
  export { ChatInput } from './components/ChatInput/index.js';
13
14
  export { CheckBox } from './components/CheckBox/index.js';
14
15
  export { Chip } from './components/Chip/index.js';