@x-plat/design-system 0.5.20 → 0.5.22

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.
@@ -1664,6 +1664,140 @@
1664
1664
  font-weight: 600;
1665
1665
  }
1666
1666
 
1667
+ /* src/components/TextArea/textArea.scss */
1668
+ .lib-xplat-textarea-wrapper {
1669
+ display: flex;
1670
+ flex-direction: column;
1671
+ gap: var(--spacing-space-2);
1672
+ }
1673
+ .lib-xplat-textarea-wrapper .lib-xplat-textarea {
1674
+ display: flex;
1675
+ align-items: center;
1676
+ border: 1px solid var(--semantic-border-default);
1677
+ border-radius: var(--spacing-radius-md);
1678
+ min-height: var(--spacing-control-height-md);
1679
+ overflow: hidden;
1680
+ background-color: var(--semantic-surface-neutral-default);
1681
+ width: 100%;
1682
+ transition: border-color 0.15s, box-shadow 0.15s;
1683
+ }
1684
+ .lib-xplat-textarea-wrapper .lib-xplat-textarea:hover:not(.disabled):not(:focus-within) {
1685
+ border-color: var(--semantic-border-strong);
1686
+ }
1687
+ .lib-xplat-textarea-wrapper .lib-xplat-textarea:focus-within {
1688
+ border-color: var(--semantic-interaction-focus-ring);
1689
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
1690
+ }
1691
+ .lib-xplat-textarea-wrapper .lib-xplat-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
1692
+ border-color: var(--semantic-border-strong);
1693
+ }
1694
+ .lib-xplat-textarea-wrapper .lib-xplat-textarea.disabled {
1695
+ background-color: var(--semantic-surface-neutral-disabled);
1696
+ cursor: not-allowed;
1697
+ }
1698
+ .lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea {
1699
+ border: none;
1700
+ outline: none;
1701
+ flex: 1;
1702
+ padding-left: var(--spacing-space-4);
1703
+ padding-right: var(--spacing-space-4);
1704
+ width: 100%;
1705
+ color: var(--semantic-text-subtle);
1706
+ resize: none;
1707
+ height: 1.5em;
1708
+ }
1709
+ .lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea:disabled {
1710
+ cursor: not-allowed;
1711
+ }
1712
+
1713
+ /* src/components/ChatInput/chatInput.scss */
1714
+ .lib-xplat-chat-input {
1715
+ display: flex;
1716
+ align-items: flex-end;
1717
+ gap: var(--spacing-space-2);
1718
+ padding: var(--spacing-space-3);
1719
+ border: 1px solid var(--semantic-border-default);
1720
+ border-radius: var(--spacing-radius-lg);
1721
+ background-color: var(--semantic-surface-neutral-default);
1722
+ transition: border-color 0.15s, box-shadow 0.15s;
1723
+ }
1724
+ .lib-xplat-chat-input:hover:not(.disabled):not(:focus-within) {
1725
+ border-color: var(--semantic-border-strong);
1726
+ }
1727
+ .lib-xplat-chat-input:focus-within {
1728
+ border-color: var(--semantic-interaction-focus-ring);
1729
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
1730
+ }
1731
+ .lib-xplat-chat-input.disabled {
1732
+ background-color: var(--semantic-surface-neutral-subtle);
1733
+ border-color: var(--semantic-border-default);
1734
+ cursor: not-allowed;
1735
+ }
1736
+ .lib-xplat-chat-input .chat-input-textarea {
1737
+ flex: 1;
1738
+ border: none;
1739
+ outline: none;
1740
+ resize: none;
1741
+ min-height: var(--spacing-control-height-lg);
1742
+ max-height: 200px;
1743
+ overflow-y: auto;
1744
+ padding: 0;
1745
+ font-size: 16px;
1746
+ line-height: 1.5;
1747
+ color: var(--semantic-text-strong);
1748
+ background: transparent;
1749
+ }
1750
+ .lib-xplat-chat-input .chat-input-textarea::placeholder {
1751
+ color: var(--semantic-text-disabled);
1752
+ }
1753
+ .lib-xplat-chat-input .chat-input-textarea:disabled {
1754
+ cursor: not-allowed;
1755
+ color: var(--semantic-text-disabled);
1756
+ }
1757
+ .lib-xplat-chat-input .chat-input-send {
1758
+ display: inline-flex;
1759
+ align-items: center;
1760
+ justify-content: center;
1761
+ flex-shrink: 0;
1762
+ width: var(--spacing-control-height-lg);
1763
+ height: var(--spacing-control-height-lg);
1764
+ border: none;
1765
+ border-radius: var(--spacing-radius-md);
1766
+ cursor: pointer;
1767
+ font-size: 20px;
1768
+ transition: background-color 0.15s, opacity 0.15s;
1769
+ }
1770
+ .lib-xplat-chat-input .chat-input-send:disabled {
1771
+ opacity: 0.4;
1772
+ cursor: not-allowed;
1773
+ }
1774
+ .lib-xplat-chat-input .chat-input-send:focus-visible {
1775
+ outline: 2px solid var(--semantic-interaction-focus-ring);
1776
+ outline-offset: 2px;
1777
+ }
1778
+ .lib-xplat-chat-input .chat-input-send.btn-primary {
1779
+ background-color: var(--semantic-surface-brand-default);
1780
+ color: var(--semantic-text-inverse);
1781
+ }
1782
+ .lib-xplat-chat-input .chat-input-send.btn-primary:hover:not(:disabled) {
1783
+ background-color: var(--semantic-surface-brand-strong);
1784
+ }
1785
+ .lib-xplat-chat-input .chat-input-send.btn-secondary {
1786
+ background-color: var(--semantic-surface-neutral-default);
1787
+ color: var(--semantic-surface-brand-default);
1788
+ border: 1px solid var(--semantic-border-default);
1789
+ }
1790
+ .lib-xplat-chat-input .chat-input-send.btn-secondary:hover:not(:disabled) {
1791
+ background-color: var(--semantic-surface-neutral-subtle);
1792
+ }
1793
+ .lib-xplat-chat-input .chat-input-send.btn-text {
1794
+ background-color: transparent;
1795
+ color: var(--semantic-surface-brand-default);
1796
+ }
1797
+ .lib-xplat-chat-input .chat-input-send.btn-text:hover:not(:disabled) {
1798
+ background-color: var(--semantic-surface-neutral-subtle);
1799
+ }
1800
+
1667
1801
  /* src/components/Box/box.scss */
1668
1802
  .lib-xplat-box {
1669
1803
  contain: layout style;
@@ -1864,7 +1998,7 @@
1864
1998
  transform 0.15s ease-out;
1865
1999
  transform-origin: center;
1866
2000
  }
1867
- .lib-xplat-chart .chart-svg:hover .chart-slice {
2001
+ .lib-xplat-chart .chart-pie:has(.chart-slice:hover) .chart-slice {
1868
2002
  opacity: 0.5;
1869
2003
  }
1870
2004
  .lib-xplat-chart .chart-slice:hover {
@@ -1892,10 +2026,8 @@
1892
2026
  .lib-xplat-chart .chart-bar-animate {
1893
2027
  animation: chart-bar-grow 800ms ease-out both;
1894
2028
  }
1895
- .lib-xplat-chart .chart-slice-group-animate {
1896
- animation: chart-slice-in 1000ms ease-out both;
1897
- }
1898
2029
  .lib-xplat-chart .chart-pie-label-animate {
2030
+ opacity: 0;
1899
2031
  animation: chart-fade-in 150ms ease-out both;
1900
2032
  }
1901
2033
  .lib-xplat-chart .chart-area[style*=animationDelay] {
@@ -1909,16 +2041,6 @@
1909
2041
  transform: scaleY(1);
1910
2042
  }
1911
2043
  }
1912
- @keyframes chart-slice-in {
1913
- from {
1914
- opacity: 0;
1915
- transform: scale(0.8);
1916
- }
1917
- to {
1918
- opacity: 1;
1919
- transform: scale(1);
1920
- }
1921
- }
1922
2044
  @keyframes chart-fade-in {
1923
2045
  from {
1924
2046
  opacity: 0;
@@ -1939,7 +2061,6 @@
1939
2061
  }
1940
2062
  @media (prefers-reduced-motion: reduce) {
1941
2063
  .lib-xplat-chart .chart-bar-animate,
1942
- .lib-xplat-chart .chart-slice-group-animate,
1943
2064
  .lib-xplat-chart .chart-pie-label-animate,
1944
2065
  .lib-xplat-chart .chart-area {
1945
2066
  animation: none !important;
@@ -3734,6 +3855,27 @@
3734
3855
  position: relative;
3735
3856
  overflow: auto;
3736
3857
  }
3858
+ .lib-xplat-table-wrapper.sm > .lib-xplat-table > thead > tr > th,
3859
+ .lib-xplat-table-wrapper.sm > .lib-xplat-table > thead > tr > td,
3860
+ .lib-xplat-table-wrapper.sm > .lib-xplat-table > tbody > tr > th,
3861
+ .lib-xplat-table-wrapper.sm > .lib-xplat-table > tbody > tr > td {
3862
+ padding: var(--spacing-space-1) var(--spacing-space-2);
3863
+ font-size: 12px;
3864
+ }
3865
+ .lib-xplat-table-wrapper.md > .lib-xplat-table > thead > tr > th,
3866
+ .lib-xplat-table-wrapper.md > .lib-xplat-table > thead > tr > td,
3867
+ .lib-xplat-table-wrapper.md > .lib-xplat-table > tbody > tr > th,
3868
+ .lib-xplat-table-wrapper.md > .lib-xplat-table > tbody > tr > td {
3869
+ padding: var(--spacing-space-2) var(--spacing-space-3);
3870
+ font-size: 14px;
3871
+ }
3872
+ .lib-xplat-table-wrapper.lg > .lib-xplat-table > thead > tr > th,
3873
+ .lib-xplat-table-wrapper.lg > .lib-xplat-table > thead > tr > td,
3874
+ .lib-xplat-table-wrapper.lg > .lib-xplat-table > tbody > tr > th,
3875
+ .lib-xplat-table-wrapper.lg > .lib-xplat-table > tbody > tr > td {
3876
+ padding: var(--spacing-space-3) var(--spacing-space-4);
3877
+ font-size: 16px;
3878
+ }
3737
3879
  .lib-xplat-table-wrapper > .lib-xplat-table {
3738
3880
  width: 100%;
3739
3881
  min-width: 600px;
@@ -3794,6 +3936,102 @@
3794
3936
  .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary.hover:hover > th {
3795
3937
  background-color: var(--semantic-surface-neutral-subtle);
3796
3938
  }
3939
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success,
3940
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success {
3941
+ background-color: var(--semantic-surface-success-default);
3942
+ }
3943
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success > td,
3944
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success > th,
3945
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success > td,
3946
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success > th {
3947
+ color: var(--semantic-text-inverse);
3948
+ background-color: var(--semantic-surface-success-default);
3949
+ }
3950
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success > td.cell-hover:hover,
3951
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success > th.cell-hover:hover,
3952
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success > td.cell-hover:hover,
3953
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success > th.cell-hover:hover {
3954
+ background-color: var(--semantic-surface-success-strong);
3955
+ }
3956
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success.hover:hover > td,
3957
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success.hover:hover > th,
3958
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success.hover:hover > td,
3959
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success.hover:hover > th {
3960
+ color: var(--semantic-text-inverse);
3961
+ background-color: var(--semantic-surface-success-strong);
3962
+ }
3963
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error,
3964
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error {
3965
+ background-color: var(--semantic-surface-error-default);
3966
+ }
3967
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error > td,
3968
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error > th,
3969
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error > td,
3970
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error > th {
3971
+ color: var(--semantic-text-inverse);
3972
+ background-color: var(--semantic-surface-error-default);
3973
+ }
3974
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error > td.cell-hover:hover,
3975
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error > th.cell-hover:hover,
3976
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error > td.cell-hover:hover,
3977
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error > th.cell-hover:hover {
3978
+ background-color: var(--semantic-surface-error-strong);
3979
+ }
3980
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error.hover:hover > td,
3981
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error.hover:hover > th,
3982
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error.hover:hover > td,
3983
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error.hover:hover > th {
3984
+ color: var(--semantic-text-inverse);
3985
+ background-color: var(--semantic-surface-error-strong);
3986
+ }
3987
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning,
3988
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning {
3989
+ background-color: var(--semantic-surface-warning-default);
3990
+ }
3991
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning > td,
3992
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning > th,
3993
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning > td,
3994
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning > th {
3995
+ color: var(--semantic-text-strong);
3996
+ background-color: var(--semantic-surface-warning-default);
3997
+ }
3998
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning > td.cell-hover:hover,
3999
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning > th.cell-hover:hover,
4000
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning > td.cell-hover:hover,
4001
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning > th.cell-hover:hover {
4002
+ background-color: var(--semantic-surface-warning-strong);
4003
+ }
4004
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning.hover:hover > td,
4005
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning.hover:hover > th,
4006
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning.hover:hover > td,
4007
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning.hover:hover > th {
4008
+ color: var(--semantic-text-strong);
4009
+ background-color: var(--semantic-surface-warning-strong);
4010
+ }
4011
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info,
4012
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info {
4013
+ background-color: var(--semantic-surface-info-default);
4014
+ }
4015
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info > td,
4016
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info > th,
4017
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info > td,
4018
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info > th {
4019
+ color: var(--semantic-text-inverse);
4020
+ background-color: var(--semantic-surface-info-default);
4021
+ }
4022
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info > td.cell-hover:hover,
4023
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info > th.cell-hover:hover,
4024
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info > td.cell-hover:hover,
4025
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info > th.cell-hover:hover {
4026
+ background-color: var(--semantic-surface-info-strong);
4027
+ }
4028
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info.hover:hover > td,
4029
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info.hover:hover > th,
4030
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info.hover:hover > td,
4031
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info.hover:hover > th {
4032
+ color: var(--semantic-text-inverse);
4033
+ background-color: var(--semantic-surface-info-strong);
4034
+ }
3797
4035
  .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.clickable,
3798
4036
  .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.clickable {
3799
4037
  cursor: pointer;
@@ -3981,52 +4219,6 @@
3981
4219
  font-size: 14px;
3982
4220
  }
3983
4221
 
3984
- /* src/components/TextArea/textArea.scss */
3985
- .lib-xplat-textarea-wrapper {
3986
- display: flex;
3987
- flex-direction: column;
3988
- gap: var(--spacing-space-2);
3989
- }
3990
- .lib-xplat-textarea-wrapper .lib-xplat-textarea {
3991
- display: flex;
3992
- align-items: center;
3993
- border: 1px solid var(--semantic-border-default);
3994
- border-radius: var(--spacing-radius-md);
3995
- min-height: var(--spacing-control-height-md);
3996
- overflow: hidden;
3997
- background-color: var(--semantic-surface-neutral-default);
3998
- width: 100%;
3999
- transition: border-color 0.15s, box-shadow 0.15s;
4000
- }
4001
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:hover:not(.disabled):not(:focus-within) {
4002
- border-color: var(--semantic-border-strong);
4003
- }
4004
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:focus-within {
4005
- border-color: var(--semantic-interaction-focus-ring);
4006
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
4007
- }
4008
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
4009
- border-color: var(--semantic-border-strong);
4010
- }
4011
- .lib-xplat-textarea-wrapper .lib-xplat-textarea.disabled {
4012
- background-color: var(--semantic-surface-neutral-disabled);
4013
- cursor: not-allowed;
4014
- }
4015
- .lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea {
4016
- border: none;
4017
- outline: none;
4018
- flex: 1;
4019
- padding-left: var(--spacing-space-4);
4020
- padding-right: var(--spacing-space-4);
4021
- width: 100%;
4022
- color: var(--semantic-text-subtle);
4023
- resize: none;
4024
- height: 1.5em;
4025
- }
4026
- .lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea:disabled {
4027
- cursor: not-allowed;
4028
- }
4029
-
4030
4222
  /* src/components/Toast/toast.scss */
4031
4223
  .lib-xplat-toast-container {
4032
4224
  position: fixed;
@@ -5,6 +5,7 @@ export { Badge } from './Badge/index.cjs';
5
5
  export { Breadcrumb } from './Breadcrumb/index.cjs';
6
6
  export { Button } from './Button/index.cjs';
7
7
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './Calendar/index.cjs';
8
+ export { ChatInput } from './ChatInput/index.cjs';
8
9
  export { Box } from './Box/index.cjs';
9
10
  export { CardTab } from './CardTab/index.cjs';
10
11
  export { Chart } from './Chart/index.cjs';
@@ -5,6 +5,7 @@ export { Badge } from './Badge/index.js';
5
5
  export { Breadcrumb } from './Breadcrumb/index.js';
6
6
  export { Button } from './Button/index.js';
7
7
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './Calendar/index.js';
8
+ export { ChatInput } from './ChatInput/index.js';
8
9
  export { Box } from './Box/index.js';
9
10
  export { CardTab } from './CardTab/index.js';
10
11
  export { Chart } from './Chart/index.js';