@x-plat/design-system 0.7.0 → 0.7.2
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 +1 -1
- package/dist/components/Badge/index.cjs +10 -7
- package/dist/components/Badge/index.css +13 -13
- package/dist/components/Badge/index.d.cts +3 -19
- package/dist/components/Badge/index.d.ts +3 -19
- package/dist/components/Badge/index.js +8 -6
- package/dist/components/ChatInput/index.css +2 -2
- package/dist/components/DatePicker/index.css +1 -1
- package/dist/components/Input/index.css +1 -1
- package/dist/components/NotificationBadge/index.cjs +68 -0
- package/dist/components/NotificationBadge/index.css +75 -0
- package/dist/components/NotificationBadge/index.d.cts +47 -0
- package/dist/components/NotificationBadge/index.d.ts +47 -0
- package/dist/components/NotificationBadge/index.js +40 -0
- package/dist/components/Select/index.css +4 -2
- package/dist/components/Table/index.cjs +2 -0
- package/dist/components/Table/index.d.cts +2 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +2 -0
- package/dist/components/TextArea/index.css +1 -1
- package/dist/components/index.cjs +268 -264
- package/dist/components/index.css +84 -82
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +267 -264
- package/dist/index.cjs +268 -264
- package/dist/index.css +84 -82
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +267 -264
- package/guidelines/AGENT_PROMPT.md +1 -1
- package/guidelines/Guidelines.md +1 -1
- package/guidelines/components/feedback.md +39 -11
- package/guidelines/components/table.md +68 -5
- package/package.json +1 -1
|
@@ -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);
|
|
@@ -1574,82 +1574,6 @@
|
|
|
1574
1574
|
height: 60%;
|
|
1575
1575
|
}
|
|
1576
1576
|
|
|
1577
|
-
/* src/components/Badge/badge.scss */
|
|
1578
|
-
.lib-xplat-badge {
|
|
1579
|
-
position: relative;
|
|
1580
|
-
display: inline-flex;
|
|
1581
|
-
}
|
|
1582
|
-
.lib-xplat-badge.sm .badge-indicator {
|
|
1583
|
-
min-width: var(--spacing-space-4);
|
|
1584
|
-
height: var(--spacing-space-4);
|
|
1585
|
-
font-family: var(--semantic-typo-caption-2-r-font);
|
|
1586
|
-
font-size: var(--semantic-typo-caption-2-r-size);
|
|
1587
|
-
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
1588
|
-
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
1589
|
-
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
1590
|
-
padding: 0 var(--spacing-space-1);
|
|
1591
|
-
}
|
|
1592
|
-
.lib-xplat-badge.sm .badge-indicator.dot {
|
|
1593
|
-
min-width: var(--spacing-space-2);
|
|
1594
|
-
height: var(--spacing-space-2);
|
|
1595
|
-
}
|
|
1596
|
-
.lib-xplat-badge.lg .badge-indicator {
|
|
1597
|
-
min-width: var(--spacing-space-6);
|
|
1598
|
-
height: var(--spacing-space-6);
|
|
1599
|
-
font-family: var(--semantic-typo-caption-1-r-font);
|
|
1600
|
-
font-size: var(--semantic-typo-caption-1-r-size);
|
|
1601
|
-
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
1602
|
-
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
1603
|
-
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
1604
|
-
padding: 0 var(--spacing-space-2);
|
|
1605
|
-
}
|
|
1606
|
-
.lib-xplat-badge.lg .badge-indicator.dot {
|
|
1607
|
-
min-width: var(--spacing-space-2);
|
|
1608
|
-
height: var(--spacing-space-2);
|
|
1609
|
-
}
|
|
1610
|
-
.lib-xplat-badge .badge-indicator {
|
|
1611
|
-
position: absolute;
|
|
1612
|
-
top: 0;
|
|
1613
|
-
right: 0;
|
|
1614
|
-
transform: translate(50%, -50%);
|
|
1615
|
-
display: flex;
|
|
1616
|
-
align-items: center;
|
|
1617
|
-
justify-content: center;
|
|
1618
|
-
border-radius: var(--spacing-radius-full);
|
|
1619
|
-
color: var(--semantic-text-inverse);
|
|
1620
|
-
font-family: var(--semantic-typo-caption-2-sb-font);
|
|
1621
|
-
font-size: var(--semantic-typo-caption-2-sb-size);
|
|
1622
|
-
line-height: var(--semantic-typo-caption-2-sb-lh);
|
|
1623
|
-
font-weight: var(--semantic-typo-caption-2-sb-weight);
|
|
1624
|
-
letter-spacing: var(--semantic-typo-caption-2-sb-ls);
|
|
1625
|
-
line-height: 1;
|
|
1626
|
-
min-width: var(--spacing-space-4);
|
|
1627
|
-
height: var(--spacing-space-4);
|
|
1628
|
-
padding: 0 var(--spacing-space-1);
|
|
1629
|
-
box-sizing: border-box;
|
|
1630
|
-
}
|
|
1631
|
-
.lib-xplat-badge .badge-indicator.dot {
|
|
1632
|
-
min-width: var(--spacing-space-2);
|
|
1633
|
-
height: var(--spacing-space-2);
|
|
1634
|
-
padding: 0;
|
|
1635
|
-
}
|
|
1636
|
-
.lib-xplat-badge .badge-indicator.error {
|
|
1637
|
-
background-color: var(--semantic-surface-error-default);
|
|
1638
|
-
}
|
|
1639
|
-
.lib-xplat-badge .badge-indicator.success {
|
|
1640
|
-
background-color: var(--semantic-surface-success-default);
|
|
1641
|
-
}
|
|
1642
|
-
.lib-xplat-badge .badge-indicator.warning {
|
|
1643
|
-
background-color: var(--semantic-surface-warning-default);
|
|
1644
|
-
color: var(--semantic-text-primary);
|
|
1645
|
-
}
|
|
1646
|
-
.lib-xplat-badge .badge-indicator.info {
|
|
1647
|
-
background-color: var(--semantic-surface-info-default);
|
|
1648
|
-
}
|
|
1649
|
-
.lib-xplat-badge .badge-indicator.brand {
|
|
1650
|
-
background-color: var(--semantic-surface-brand-default);
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
1577
|
/* src/components/Box/box.scss */
|
|
1654
1578
|
.lib-xplat-box {
|
|
1655
1579
|
contain: layout style;
|
|
@@ -2468,7 +2392,7 @@
|
|
|
2468
2392
|
border: 1px solid var(--semantic-border-primary);
|
|
2469
2393
|
border-radius: var(--spacing-radius-lg);
|
|
2470
2394
|
background-color: var(--semantic-surface-neutral-primary);
|
|
2471
|
-
transition: border-color 0.
|
|
2395
|
+
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);
|
|
2472
2396
|
}
|
|
2473
2397
|
.lib-xplat-chat-input:hover:not(.disabled):not(:focus-within) {
|
|
2474
2398
|
border-color: var(--semantic-border-tertiary);
|
|
@@ -2700,7 +2624,7 @@
|
|
|
2700
2624
|
background-color: var(--semantic-surface-neutral-primary);
|
|
2701
2625
|
padding-right: var(--spacing-space-2);
|
|
2702
2626
|
width: 100%;
|
|
2703
|
-
transition: border-color 0.
|
|
2627
|
+
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);
|
|
2704
2628
|
}
|
|
2705
2629
|
.lib-xplat-input-wrap .lib-xplat-input:hover:not(.disabled):not(:focus-within) {
|
|
2706
2630
|
border-color: var(--semantic-border-tertiary);
|
|
@@ -3878,6 +3802,82 @@
|
|
|
3878
3802
|
cursor: pointer;
|
|
3879
3803
|
}
|
|
3880
3804
|
|
|
3805
|
+
/* src/components/NotificationBadge/notificationBadge.scss */
|
|
3806
|
+
.lib-xplat-notification-badge {
|
|
3807
|
+
position: relative;
|
|
3808
|
+
display: inline-flex;
|
|
3809
|
+
}
|
|
3810
|
+
.lib-xplat-notification-badge.sm .badge-indicator {
|
|
3811
|
+
min-width: var(--spacing-space-4);
|
|
3812
|
+
height: var(--spacing-space-4);
|
|
3813
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
3814
|
+
font-size: var(--semantic-typo-caption-2-r-size);
|
|
3815
|
+
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
3816
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
3817
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
3818
|
+
padding: 0 var(--spacing-space-1);
|
|
3819
|
+
}
|
|
3820
|
+
.lib-xplat-notification-badge.sm .badge-indicator.dot {
|
|
3821
|
+
min-width: var(--spacing-space-2);
|
|
3822
|
+
height: var(--spacing-space-2);
|
|
3823
|
+
}
|
|
3824
|
+
.lib-xplat-notification-badge.lg .badge-indicator {
|
|
3825
|
+
min-width: var(--spacing-space-6);
|
|
3826
|
+
height: var(--spacing-space-6);
|
|
3827
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
3828
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
3829
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
3830
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
3831
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
3832
|
+
padding: 0 var(--spacing-space-2);
|
|
3833
|
+
}
|
|
3834
|
+
.lib-xplat-notification-badge.lg .badge-indicator.dot {
|
|
3835
|
+
min-width: var(--spacing-space-2);
|
|
3836
|
+
height: var(--spacing-space-2);
|
|
3837
|
+
}
|
|
3838
|
+
.lib-xplat-notification-badge .badge-indicator {
|
|
3839
|
+
position: absolute;
|
|
3840
|
+
top: 0;
|
|
3841
|
+
right: 0;
|
|
3842
|
+
transform: translate(50%, -50%);
|
|
3843
|
+
display: flex;
|
|
3844
|
+
align-items: center;
|
|
3845
|
+
justify-content: center;
|
|
3846
|
+
border-radius: var(--spacing-radius-full);
|
|
3847
|
+
color: var(--semantic-text-inverse);
|
|
3848
|
+
font-family: var(--semantic-typo-caption-2-sb-font);
|
|
3849
|
+
font-size: var(--semantic-typo-caption-2-sb-size);
|
|
3850
|
+
line-height: var(--semantic-typo-caption-2-sb-lh);
|
|
3851
|
+
font-weight: var(--semantic-typo-caption-2-sb-weight);
|
|
3852
|
+
letter-spacing: var(--semantic-typo-caption-2-sb-ls);
|
|
3853
|
+
line-height: 1;
|
|
3854
|
+
min-width: var(--spacing-space-4);
|
|
3855
|
+
height: var(--spacing-space-4);
|
|
3856
|
+
padding: 0 var(--spacing-space-1);
|
|
3857
|
+
box-sizing: border-box;
|
|
3858
|
+
}
|
|
3859
|
+
.lib-xplat-notification-badge .badge-indicator.dot {
|
|
3860
|
+
min-width: var(--spacing-space-2);
|
|
3861
|
+
height: var(--spacing-space-2);
|
|
3862
|
+
padding: 0;
|
|
3863
|
+
}
|
|
3864
|
+
.lib-xplat-notification-badge .badge-indicator.error {
|
|
3865
|
+
background-color: var(--semantic-surface-error-default);
|
|
3866
|
+
}
|
|
3867
|
+
.lib-xplat-notification-badge .badge-indicator.success {
|
|
3868
|
+
background-color: var(--semantic-surface-success-default);
|
|
3869
|
+
}
|
|
3870
|
+
.lib-xplat-notification-badge .badge-indicator.warning {
|
|
3871
|
+
background-color: var(--semantic-surface-warning-default);
|
|
3872
|
+
color: var(--semantic-text-primary);
|
|
3873
|
+
}
|
|
3874
|
+
.lib-xplat-notification-badge .badge-indicator.info {
|
|
3875
|
+
background-color: var(--semantic-surface-info-default);
|
|
3876
|
+
}
|
|
3877
|
+
.lib-xplat-notification-badge .badge-indicator.brand {
|
|
3878
|
+
background-color: var(--semantic-surface-brand-default);
|
|
3879
|
+
}
|
|
3880
|
+
|
|
3881
3881
|
/* src/components/Pagination/pagination.scss */
|
|
3882
3882
|
.lib-xplat-pagination {
|
|
3883
3883
|
display: inline-flex;
|
|
@@ -4237,7 +4237,7 @@
|
|
|
4237
4237
|
border-radius: var(--spacing-radius-md);
|
|
4238
4238
|
background-color: var(--semantic-surface-neutral-primary);
|
|
4239
4239
|
color: var(--semantic-text-primary);
|
|
4240
|
-
transition: border-color 0.
|
|
4240
|
+
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
4241
|
}
|
|
4242
4242
|
.lib-xplat-select .select-trigger:hover:not(.disabled) {
|
|
4243
4243
|
border-color: var(--semantic-border-tertiary);
|
|
@@ -4246,7 +4246,9 @@
|
|
|
4246
4246
|
border-color: var(--semantic-interaction-focus-ring);
|
|
4247
4247
|
}
|
|
4248
4248
|
.lib-xplat-select .select-trigger:focus-visible {
|
|
4249
|
-
|
|
4249
|
+
border-color: var(--semantic-interaction-focus-ring);
|
|
4250
|
+
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
4251
|
+
outline: 2px solid transparent;
|
|
4250
4252
|
outline-offset: 2px;
|
|
4251
4253
|
}
|
|
4252
4254
|
.lib-xplat-select .select-trigger.disabled {
|
|
@@ -5197,7 +5199,7 @@
|
|
|
5197
5199
|
color: var(--semantic-text-secondary);
|
|
5198
5200
|
font-family: inherit;
|
|
5199
5201
|
outline: none;
|
|
5200
|
-
transition: border-color 0.
|
|
5202
|
+
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
5203
|
}
|
|
5202
5204
|
.lib-xplat-textarea-wrap .lib-xplat-textarea.sm {
|
|
5203
5205
|
padding: var(--spacing-space-2) var(--spacing-space-3);
|
|
@@ -2,7 +2,6 @@ export { Accordion } from './Accordion/index.cjs';
|
|
|
2
2
|
export { Alert } from './Alert/index.cjs';
|
|
3
3
|
export { AutoResizeTextArea } from './AutoResizeTextArea/index.cjs';
|
|
4
4
|
export { Avatar } from './Avatar/index.cjs';
|
|
5
|
-
export { Badge } from './Badge/index.cjs';
|
|
6
5
|
export { Box } from './Box/index.cjs';
|
|
7
6
|
export { Breadcrumb } from './Breadcrumb/index.cjs';
|
|
8
7
|
export { Button } from './Button/index.cjs';
|
|
@@ -24,6 +23,7 @@ export { IconButton } from './IconButton/index.cjs';
|
|
|
24
23
|
export { ImageSelector } from './ImageSelector/index.cjs';
|
|
25
24
|
export { Input, PasswordInput } from './Input/index.cjs';
|
|
26
25
|
export { Modal } from './Modal/index.cjs';
|
|
26
|
+
export { NotificationBadge as Badge, NotificationBadge } from './NotificationBadge/index.cjs';
|
|
27
27
|
export { Pagination } from './Pagination/index.cjs';
|
|
28
28
|
export { PopOver } from './PopOver/index.cjs';
|
|
29
29
|
export { Progress } from './Progress/index.cjs';
|
|
@@ -2,7 +2,6 @@ export { Accordion } from './Accordion/index.js';
|
|
|
2
2
|
export { Alert } from './Alert/index.js';
|
|
3
3
|
export { AutoResizeTextArea } from './AutoResizeTextArea/index.js';
|
|
4
4
|
export { Avatar } from './Avatar/index.js';
|
|
5
|
-
export { Badge } from './Badge/index.js';
|
|
6
5
|
export { Box } from './Box/index.js';
|
|
7
6
|
export { Breadcrumb } from './Breadcrumb/index.js';
|
|
8
7
|
export { Button } from './Button/index.js';
|
|
@@ -24,6 +23,7 @@ export { IconButton } from './IconButton/index.js';
|
|
|
24
23
|
export { ImageSelector } from './ImageSelector/index.js';
|
|
25
24
|
export { Input, PasswordInput } from './Input/index.js';
|
|
26
25
|
export { Modal } from './Modal/index.js';
|
|
26
|
+
export { NotificationBadge as Badge, NotificationBadge } from './NotificationBadge/index.js';
|
|
27
27
|
export { Pagination } from './Pagination/index.js';
|
|
28
28
|
export { PopOver } from './PopOver/index.js';
|
|
29
29
|
export { Progress } from './Progress/index.js';
|