@x-plat/design-system 0.5.21 → 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.
package/dist/index.css CHANGED
@@ -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;
@@ -3721,6 +3855,27 @@
3721
3855
  position: relative;
3722
3856
  overflow: auto;
3723
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
+ }
3724
3879
  .lib-xplat-table-wrapper > .lib-xplat-table {
3725
3880
  width: 100%;
3726
3881
  min-width: 600px;
@@ -3781,6 +3936,102 @@
3781
3936
  .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary.hover:hover > th {
3782
3937
  background-color: var(--semantic-surface-neutral-subtle);
3783
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
+ }
3784
4035
  .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.clickable,
3785
4036
  .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.clickable {
3786
4037
  cursor: pointer;
@@ -3968,52 +4219,6 @@
3968
4219
  font-size: 14px;
3969
4220
  }
3970
4221
 
3971
- /* src/components/TextArea/textArea.scss */
3972
- .lib-xplat-textarea-wrapper {
3973
- display: flex;
3974
- flex-direction: column;
3975
- gap: var(--spacing-space-2);
3976
- }
3977
- .lib-xplat-textarea-wrapper .lib-xplat-textarea {
3978
- display: flex;
3979
- align-items: center;
3980
- border: 1px solid var(--semantic-border-default);
3981
- border-radius: var(--spacing-radius-md);
3982
- min-height: var(--spacing-control-height-md);
3983
- overflow: hidden;
3984
- background-color: var(--semantic-surface-neutral-default);
3985
- width: 100%;
3986
- transition: border-color 0.15s, box-shadow 0.15s;
3987
- }
3988
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:hover:not(.disabled):not(:focus-within) {
3989
- border-color: var(--semantic-border-strong);
3990
- }
3991
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:focus-within {
3992
- border-color: var(--semantic-interaction-focus-ring);
3993
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
3994
- }
3995
- .lib-xplat-textarea-wrapper .lib-xplat-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
3996
- border-color: var(--semantic-border-strong);
3997
- }
3998
- .lib-xplat-textarea-wrapper .lib-xplat-textarea.disabled {
3999
- background-color: var(--semantic-surface-neutral-disabled);
4000
- cursor: not-allowed;
4001
- }
4002
- .lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea {
4003
- border: none;
4004
- outline: none;
4005
- flex: 1;
4006
- padding-left: var(--spacing-space-4);
4007
- padding-right: var(--spacing-space-4);
4008
- width: 100%;
4009
- color: var(--semantic-text-subtle);
4010
- resize: none;
4011
- height: 1.5em;
4012
- }
4013
- .lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea:disabled {
4014
- cursor: not-allowed;
4015
- }
4016
-
4017
4222
  /* src/components/Toast/toast.scss */
4018
4223
  .lib-xplat-toast-container {
4019
4224
  position: fixed;
package/dist/index.d.cts CHANGED
@@ -6,6 +6,7 @@ export { Badge } from './components/Badge/index.cjs';
6
6
  export { Breadcrumb } from './components/Breadcrumb/index.cjs';
7
7
  export { Button } from './components/Button/index.cjs';
8
8
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './components/Calendar/index.cjs';
9
+ export { ChatInput } from './components/ChatInput/index.cjs';
9
10
  export { Box } from './components/Box/index.cjs';
10
11
  export { CardTab } from './components/CardTab/index.cjs';
11
12
  export { Chart } from './components/Chart/index.cjs';
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export { Badge } from './components/Badge/index.js';
6
6
  export { Breadcrumb } from './components/Breadcrumb/index.js';
7
7
  export { Button } from './components/Button/index.js';
8
8
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './components/Calendar/index.js';
9
+ export { ChatInput } from './components/ChatInput/index.js';
9
10
  export { Box } from './components/Box/index.js';
10
11
  export { CardTab } from './components/CardTab/index.js';
11
12
  export { Chart } from './components/Chart/index.js';