@x-plat/design-system 0.6.0 → 0.6.1

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.
@@ -1381,6 +1381,53 @@
1381
1381
  color: var(--semantic-text-error);
1382
1382
  }
1383
1383
 
1384
+ /* src/components/AutoResizeTextArea/autoResizeTextArea.scss */
1385
+ .lib-xplat-auto-resize-textarea-wrapper {
1386
+ display: flex;
1387
+ flex-direction: column;
1388
+ gap: var(--spacing-space-2);
1389
+ }
1390
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea {
1391
+ display: flex;
1392
+ align-items: center;
1393
+ border: 1px solid var(--semantic-border-primary);
1394
+ border-radius: var(--spacing-radius-md);
1395
+ min-height: var(--spacing-control-height-md);
1396
+ overflow: hidden;
1397
+ background-color: var(--semantic-surface-neutral-primary);
1398
+ width: 100%;
1399
+ transition: border-color 0.15s, box-shadow 0.15s;
1400
+ }
1401
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
1402
+ border-color: var(--semantic-border-tertiary);
1403
+ }
1404
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
1405
+ border-color: var(--semantic-interaction-focus-ring);
1406
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
1407
+ }
1408
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
1409
+ border-color: var(--semantic-border-tertiary);
1410
+ }
1411
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea.disabled {
1412
+ background-color: var(--semantic-surface-neutral-disabled);
1413
+ cursor: not-allowed;
1414
+ }
1415
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea {
1416
+ border: none;
1417
+ outline: none;
1418
+ flex: 1;
1419
+ padding: var(--spacing-space-2) var(--spacing-space-4);
1420
+ width: 100%;
1421
+ color: var(--semantic-text-secondary);
1422
+ resize: none;
1423
+ font-size: var(--semantic-typo-label-2-m-size);
1424
+ line-height: var(--semantic-typo-label-2-m-lh);
1425
+ font-family: inherit;
1426
+ }
1427
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea:disabled {
1428
+ cursor: not-allowed;
1429
+ }
1430
+
1384
1431
  /* src/components/Avatar/avatar.scss */
1385
1432
  .lib-xplat-avatar {
1386
1433
  display: inline-flex;
@@ -2200,53 +2247,6 @@
2200
2247
  }
2201
2248
  }
2202
2249
 
2203
- /* src/components/AutoResizeTextArea/autoResizeTextArea.scss */
2204
- .lib-xplat-auto-resize-textarea-wrapper {
2205
- display: flex;
2206
- flex-direction: column;
2207
- gap: var(--spacing-space-2);
2208
- }
2209
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea {
2210
- display: flex;
2211
- align-items: center;
2212
- border: 1px solid var(--semantic-border-primary);
2213
- border-radius: var(--spacing-radius-md);
2214
- min-height: var(--spacing-control-height-md);
2215
- overflow: hidden;
2216
- background-color: var(--semantic-surface-neutral-primary);
2217
- width: 100%;
2218
- transition: border-color 0.15s, box-shadow 0.15s;
2219
- }
2220
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
2221
- border-color: var(--semantic-border-tertiary);
2222
- }
2223
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
2224
- border-color: var(--semantic-interaction-focus-ring);
2225
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2226
- }
2227
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
2228
- border-color: var(--semantic-border-tertiary);
2229
- }
2230
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea.disabled {
2231
- background-color: var(--semantic-surface-neutral-disabled);
2232
- cursor: not-allowed;
2233
- }
2234
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea {
2235
- border: none;
2236
- outline: none;
2237
- flex: 1;
2238
- padding: var(--spacing-space-2) var(--spacing-space-4);
2239
- width: 100%;
2240
- color: var(--semantic-text-secondary);
2241
- resize: none;
2242
- font-size: var(--semantic-typo-label-2-m-size);
2243
- line-height: var(--semantic-typo-label-2-m-lh);
2244
- font-family: inherit;
2245
- }
2246
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea:disabled {
2247
- cursor: not-allowed;
2248
- }
2249
-
2250
2250
  /* src/components/IconButton/iconButton.scss */
2251
2251
  .lib-xplat-icon-button {
2252
2252
  display: inline-flex;
@@ -5128,7 +5128,7 @@
5128
5128
  color: inherit;
5129
5129
  text-align: left;
5130
5130
  cursor: pointer;
5131
- border-radius: var(--spacing-radius-xs);
5131
+ border-radius: var(--spacing-radius-sm);
5132
5132
  font-size: var(--semantic-typo-caption-2-r-size);
5133
5133
  font-variant-numeric: tabular-nums;
5134
5134
  }
@@ -1,5 +1,6 @@
1
1
  export { Accordion } from './Accordion/index.cjs';
2
2
  export { Alert } from './Alert/index.cjs';
3
+ export { AutoResizeTextArea } from './AutoResizeTextArea/index.cjs';
3
4
  export { Avatar } from './Avatar/index.cjs';
4
5
  export { Badge } from './Badge/index.cjs';
5
6
  export { Box } from './Box/index.cjs';
@@ -8,7 +9,6 @@ export { Button } from './Button/index.cjs';
8
9
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './Calendar/index.cjs';
9
10
  export { CardTab } from './CardTab/index.cjs';
10
11
  export { Chart } from './Chart/index.cjs';
11
- export { AutoResizeTextArea } from './AutoResizeTextArea/index.cjs';
12
12
  export { ChatInput } from './ChatInput/index.cjs';
13
13
  export { CheckBox } from './CheckBox/index.cjs';
14
14
  export { Chip } from './Chip/index.cjs';
@@ -42,5 +42,5 @@ export { ToastProvider, useToast } from './Toast/index.cjs';
42
42
  export { Tooltip } from './Tooltip/index.cjs';
43
43
  export { Video, VideoProps } from './Video/index.cjs';
44
44
  import 'react';
45
- import 'react/jsx-runtime';
46
45
  import '../attributes-DJIWir_0.cjs';
46
+ import 'react/jsx-runtime';
@@ -1,5 +1,6 @@
1
1
  export { Accordion } from './Accordion/index.js';
2
2
  export { Alert } from './Alert/index.js';
3
+ export { AutoResizeTextArea } from './AutoResizeTextArea/index.js';
3
4
  export { Avatar } from './Avatar/index.js';
4
5
  export { Badge } from './Badge/index.js';
5
6
  export { Box } from './Box/index.js';
@@ -8,7 +9,6 @@ export { Button } from './Button/index.js';
8
9
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './Calendar/index.js';
9
10
  export { CardTab } from './CardTab/index.js';
10
11
  export { Chart } from './Chart/index.js';
11
- export { AutoResizeTextArea } from './AutoResizeTextArea/index.js';
12
12
  export { ChatInput } from './ChatInput/index.js';
13
13
  export { CheckBox } from './CheckBox/index.js';
14
14
  export { Chip } from './Chip/index.js';
@@ -42,5 +42,5 @@ export { ToastProvider, useToast } from './Toast/index.js';
42
42
  export { Tooltip } from './Tooltip/index.js';
43
43
  export { Video, VideoProps } from './Video/index.js';
44
44
  import 'react';
45
- import 'react/jsx-runtime';
46
45
  import '../attributes-DJIWir_0.js';
46
+ import 'react/jsx-runtime';