@x-plat/design-system 0.7.1 → 0.8.0
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/components/AutoResizeTextArea/index.css +3 -1
- package/dist/components/Button/index.css +2 -1
- package/dist/components/Button/index.d.cts +6 -0
- package/dist/components/Button/index.d.ts +6 -0
- package/dist/components/Chart/index.cjs +8 -1
- package/dist/components/Chart/index.js +8 -1
- package/dist/components/ChatInput/index.css +6 -2
- package/dist/components/DatePicker/index.css +5 -2
- package/dist/components/Input/index.css +3 -1
- package/dist/components/Link/index.cjs +64 -0
- package/dist/components/Link/index.css +25 -0
- package/dist/components/Link/index.d.cts +27 -0
- package/dist/components/Link/index.d.ts +27 -0
- package/dist/components/Link/index.js +37 -0
- package/dist/components/LinkButton/index.cjs +64 -0
- package/dist/components/LinkButton/index.css +106 -0
- package/dist/components/LinkButton/index.d.cts +28 -0
- package/dist/components/LinkButton/index.d.ts +28 -0
- package/dist/components/LinkButton/index.js +37 -0
- package/dist/components/Select/index.css +4 -2
- package/dist/components/TextArea/index.css +3 -1
- package/dist/components/Tooltip/index.cjs +77 -32
- package/dist/components/Tooltip/index.d.cts +10 -2
- package/dist/components/Tooltip/index.d.ts +10 -2
- package/dist/components/Tooltip/index.js +77 -32
- package/dist/components/index.cjs +247 -153
- package/dist/components/index.css +44 -7
- package/dist/components/index.d.cts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +222 -130
- package/dist/index.cjs +266 -172
- package/dist/index.css +44 -7
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +239 -147
- package/guidelines/AGENT_PROMPT.md +2 -2
- package/guidelines/Guidelines.md +2 -1
- package/guidelines/components/button.md +54 -0
- package/guidelines/components/card.md +15 -19
- package/guidelines/components/link.md +35 -0
- package/guidelines/components/overlay.md +30 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1450,7 +1450,7 @@
|
|
|
1450
1450
|
overflow: hidden;
|
|
1451
1451
|
background-color: var(--semantic-surface-neutral-primary);
|
|
1452
1452
|
width: 100%;
|
|
1453
|
-
transition: border-color 0.
|
|
1453
|
+
transition: border-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
1454
1454
|
}
|
|
1455
1455
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
|
|
1456
1456
|
border-color: var(--semantic-border-tertiary);
|
|
@@ -1458,6 +1458,8 @@
|
|
|
1458
1458
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
|
|
1459
1459
|
border-color: var(--semantic-interaction-focus-ring);
|
|
1460
1460
|
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
1461
|
+
outline: 2px solid transparent;
|
|
1462
|
+
outline-offset: 2px;
|
|
1461
1463
|
}
|
|
1462
1464
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
|
|
1463
1465
|
border-color: var(--semantic-border-tertiary);
|
|
@@ -1719,7 +1721,8 @@
|
|
|
1719
1721
|
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
1720
1722
|
letter-spacing: var(--semantic-typo-label-1-m-ls);
|
|
1721
1723
|
}
|
|
1722
|
-
.lib-xplat-button:disabled
|
|
1724
|
+
.lib-xplat-button:disabled,
|
|
1725
|
+
.lib-xplat-button.disabled {
|
|
1723
1726
|
cursor: not-allowed;
|
|
1724
1727
|
background-color: var(--semantic-surface-neutral-disabled) !important;
|
|
1725
1728
|
border-color: var(--semantic-surface-neutral-disabled) !important;
|
|
@@ -2392,7 +2395,7 @@
|
|
|
2392
2395
|
border: 1px solid var(--semantic-border-primary);
|
|
2393
2396
|
border-radius: var(--spacing-radius-lg);
|
|
2394
2397
|
background-color: var(--semantic-surface-neutral-primary);
|
|
2395
|
-
transition: border-color 0.
|
|
2398
|
+
transition: border-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
2396
2399
|
}
|
|
2397
2400
|
.lib-xplat-chat-input:hover:not(.disabled):not(:focus-within) {
|
|
2398
2401
|
border-color: var(--semantic-border-tertiary);
|
|
@@ -2400,6 +2403,8 @@
|
|
|
2400
2403
|
.lib-xplat-chat-input:focus-within {
|
|
2401
2404
|
border-color: var(--semantic-interaction-focus-ring);
|
|
2402
2405
|
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
2406
|
+
outline: 2px solid transparent;
|
|
2407
|
+
outline-offset: 2px;
|
|
2403
2408
|
}
|
|
2404
2409
|
.lib-xplat-chat-input.disabled {
|
|
2405
2410
|
background-color: var(--semantic-surface-neutral-secondary);
|
|
@@ -2624,7 +2629,7 @@
|
|
|
2624
2629
|
background-color: var(--semantic-surface-neutral-primary);
|
|
2625
2630
|
padding-right: var(--spacing-space-2);
|
|
2626
2631
|
width: 100%;
|
|
2627
|
-
transition: border-color 0.
|
|
2632
|
+
transition: border-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
2628
2633
|
}
|
|
2629
2634
|
.lib-xplat-input-wrap .lib-xplat-input:hover:not(.disabled):not(:focus-within) {
|
|
2630
2635
|
border-color: var(--semantic-border-tertiary);
|
|
@@ -2632,6 +2637,8 @@
|
|
|
2632
2637
|
.lib-xplat-input-wrap .lib-xplat-input:focus-within {
|
|
2633
2638
|
border-color: var(--semantic-interaction-focus-ring);
|
|
2634
2639
|
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
2640
|
+
outline: 2px solid transparent;
|
|
2641
|
+
outline-offset: 2px;
|
|
2635
2642
|
}
|
|
2636
2643
|
.lib-xplat-input-wrap .lib-xplat-input:has(> input:not(:placeholder-shown)):not(:focus-within) {
|
|
2637
2644
|
border-color: var(--semantic-border-tertiary);
|
|
@@ -3802,6 +3809,32 @@
|
|
|
3802
3809
|
cursor: pointer;
|
|
3803
3810
|
}
|
|
3804
3811
|
|
|
3812
|
+
/* src/components/Link/link.scss */
|
|
3813
|
+
.lib-xplat-link {
|
|
3814
|
+
color: var(--semantic-text-link);
|
|
3815
|
+
cursor: pointer;
|
|
3816
|
+
text-underline-offset: 2px;
|
|
3817
|
+
text-decoration-thickness: 1px;
|
|
3818
|
+
border-radius: var(--spacing-radius-sm);
|
|
3819
|
+
transition: text-decoration-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
3820
|
+
}
|
|
3821
|
+
.lib-xplat-link.underline-always {
|
|
3822
|
+
text-decoration: underline;
|
|
3823
|
+
}
|
|
3824
|
+
.lib-xplat-link.underline-hover {
|
|
3825
|
+
text-decoration: none;
|
|
3826
|
+
}
|
|
3827
|
+
.lib-xplat-link.underline-hover:hover {
|
|
3828
|
+
text-decoration: underline;
|
|
3829
|
+
}
|
|
3830
|
+
.lib-xplat-link.underline-none {
|
|
3831
|
+
text-decoration: none;
|
|
3832
|
+
}
|
|
3833
|
+
.lib-xplat-link:focus-visible {
|
|
3834
|
+
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
3835
|
+
outline-offset: 2px;
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3805
3838
|
/* src/components/NotificationBadge/notificationBadge.scss */
|
|
3806
3839
|
.lib-xplat-notification-badge {
|
|
3807
3840
|
position: relative;
|
|
@@ -4237,7 +4270,7 @@
|
|
|
4237
4270
|
border-radius: var(--spacing-radius-md);
|
|
4238
4271
|
background-color: var(--semantic-surface-neutral-primary);
|
|
4239
4272
|
color: var(--semantic-text-primary);
|
|
4240
|
-
transition: border-color 0.
|
|
4273
|
+
transition: border-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
4241
4274
|
}
|
|
4242
4275
|
.lib-xplat-select .select-trigger:hover:not(.disabled) {
|
|
4243
4276
|
border-color: var(--semantic-border-tertiary);
|
|
@@ -4246,7 +4279,9 @@
|
|
|
4246
4279
|
border-color: var(--semantic-interaction-focus-ring);
|
|
4247
4280
|
}
|
|
4248
4281
|
.lib-xplat-select .select-trigger:focus-visible {
|
|
4249
|
-
|
|
4282
|
+
border-color: var(--semantic-interaction-focus-ring);
|
|
4283
|
+
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
4284
|
+
outline: 2px solid transparent;
|
|
4250
4285
|
outline-offset: 2px;
|
|
4251
4286
|
}
|
|
4252
4287
|
.lib-xplat-select .select-trigger.disabled {
|
|
@@ -5197,7 +5232,7 @@
|
|
|
5197
5232
|
color: var(--semantic-text-secondary);
|
|
5198
5233
|
font-family: inherit;
|
|
5199
5234
|
outline: none;
|
|
5200
|
-
transition: border-color 0.
|
|
5235
|
+
transition: border-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
5201
5236
|
}
|
|
5202
5237
|
.lib-xplat-textarea-wrap .lib-xplat-textarea.sm {
|
|
5203
5238
|
padding: var(--spacing-space-2) var(--spacing-space-3);
|
|
@@ -5229,6 +5264,8 @@
|
|
|
5229
5264
|
.lib-xplat-textarea-wrap .lib-xplat-textarea:focus {
|
|
5230
5265
|
border-color: var(--semantic-interaction-focus-ring);
|
|
5231
5266
|
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
5267
|
+
outline: 2px solid transparent;
|
|
5268
|
+
outline-offset: 2px;
|
|
5232
5269
|
}
|
|
5233
5270
|
.lib-xplat-textarea-wrap .lib-xplat-textarea:not(:placeholder-shown):not(:focus) {
|
|
5234
5271
|
border-color: var(--semantic-border-tertiary);
|
package/dist/index.d.cts
CHANGED
|
@@ -23,6 +23,8 @@ export { HtmlTypeWriter, HtmlTypeWriter as HtmlTypewriter } from './components/H
|
|
|
23
23
|
export { IconButton } from './components/IconButton/index.cjs';
|
|
24
24
|
export { ImageSelector } from './components/ImageSelector/index.cjs';
|
|
25
25
|
export { Input, PasswordInput } from './components/Input/index.cjs';
|
|
26
|
+
export { Link } from './components/Link/index.cjs';
|
|
27
|
+
export { LinkButton } from './components/LinkButton/index.cjs';
|
|
26
28
|
export { Modal } from './components/Modal/index.cjs';
|
|
27
29
|
export { NotificationBadge as Badge, NotificationBadge } from './components/NotificationBadge/index.cjs';
|
|
28
30
|
export { Pagination } from './components/Pagination/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export { HtmlTypeWriter, HtmlTypeWriter as HtmlTypewriter } from './components/H
|
|
|
23
23
|
export { IconButton } from './components/IconButton/index.js';
|
|
24
24
|
export { ImageSelector } from './components/ImageSelector/index.js';
|
|
25
25
|
export { Input, PasswordInput } from './components/Input/index.js';
|
|
26
|
+
export { Link } from './components/Link/index.js';
|
|
27
|
+
export { LinkButton } from './components/LinkButton/index.js';
|
|
26
28
|
export { Modal } from './components/Modal/index.js';
|
|
27
29
|
export { NotificationBadge as Badge, NotificationBadge } from './components/NotificationBadge/index.js';
|
|
28
30
|
export { Pagination } from './components/Pagination/index.js';
|