@x-plat/design-system 0.5.21 → 0.5.23

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,94 @@
1664
1664
  font-weight: 600;
1665
1665
  }
1666
1666
 
1667
+ /* src/components/ChatInput/chatInput.scss */
1668
+ .lib-xplat-chat-input {
1669
+ display: flex;
1670
+ align-items: flex-end;
1671
+ gap: var(--spacing-space-2);
1672
+ padding: var(--spacing-space-3);
1673
+ border: 1px solid var(--semantic-border-default);
1674
+ border-radius: var(--spacing-radius-lg);
1675
+ background-color: var(--semantic-surface-neutral-default);
1676
+ transition: border-color 0.15s, box-shadow 0.15s;
1677
+ }
1678
+ .lib-xplat-chat-input:hover:not(.disabled):not(:focus-within) {
1679
+ border-color: var(--semantic-border-strong);
1680
+ }
1681
+ .lib-xplat-chat-input:focus-within {
1682
+ border-color: var(--semantic-interaction-focus-ring);
1683
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
1684
+ }
1685
+ .lib-xplat-chat-input.disabled {
1686
+ background-color: var(--semantic-surface-neutral-subtle);
1687
+ border-color: var(--semantic-border-default);
1688
+ cursor: not-allowed;
1689
+ }
1690
+ .lib-xplat-chat-input .chat-input-textarea {
1691
+ flex: 1;
1692
+ border: none;
1693
+ outline: none;
1694
+ resize: none;
1695
+ min-height: var(--spacing-control-height-lg);
1696
+ max-height: 200px;
1697
+ overflow-y: auto;
1698
+ padding: 0;
1699
+ font-size: 16px;
1700
+ line-height: 1.5;
1701
+ color: var(--semantic-text-strong);
1702
+ background: transparent;
1703
+ }
1704
+ .lib-xplat-chat-input .chat-input-textarea::placeholder {
1705
+ color: var(--semantic-text-disabled);
1706
+ }
1707
+ .lib-xplat-chat-input .chat-input-textarea:disabled {
1708
+ cursor: not-allowed;
1709
+ color: var(--semantic-text-disabled);
1710
+ }
1711
+ .lib-xplat-chat-input .chat-input-send {
1712
+ display: inline-flex;
1713
+ align-items: center;
1714
+ justify-content: center;
1715
+ flex-shrink: 0;
1716
+ width: var(--spacing-control-height-md);
1717
+ height: var(--spacing-control-height-md);
1718
+ border: none;
1719
+ border-radius: var(--spacing-radius-md);
1720
+ cursor: pointer;
1721
+ font-size: 20px;
1722
+ transition: background-color 0.15s, opacity 0.15s;
1723
+ }
1724
+ .lib-xplat-chat-input .chat-input-send:disabled {
1725
+ opacity: 0.4;
1726
+ cursor: not-allowed;
1727
+ }
1728
+ .lib-xplat-chat-input .chat-input-send:focus-visible {
1729
+ outline: 2px solid var(--semantic-interaction-focus-ring);
1730
+ outline-offset: 2px;
1731
+ }
1732
+ .lib-xplat-chat-input .chat-input-send.btn-primary {
1733
+ background-color: var(--semantic-surface-brand-default);
1734
+ color: var(--semantic-text-inverse);
1735
+ }
1736
+ .lib-xplat-chat-input .chat-input-send.btn-primary:hover:not(:disabled) {
1737
+ background-color: var(--semantic-surface-brand-strong);
1738
+ }
1739
+ .lib-xplat-chat-input .chat-input-send.btn-secondary {
1740
+ background-color: var(--semantic-surface-neutral-default);
1741
+ color: var(--semantic-surface-brand-default);
1742
+ border: 1px solid var(--semantic-border-default);
1743
+ }
1744
+ .lib-xplat-chat-input .chat-input-send.btn-secondary:hover:not(:disabled) {
1745
+ background-color: var(--semantic-surface-neutral-subtle);
1746
+ }
1747
+ .lib-xplat-chat-input .chat-input-send.btn-text {
1748
+ background-color: transparent;
1749
+ color: var(--semantic-surface-brand-default);
1750
+ }
1751
+ .lib-xplat-chat-input .chat-input-send.btn-text:hover:not(:disabled) {
1752
+ background-color: var(--semantic-surface-neutral-subtle);
1753
+ }
1754
+
1667
1755
  /* src/components/Box/box.scss */
1668
1756
  .lib-xplat-box {
1669
1757
  contain: layout style;
@@ -3721,6 +3809,27 @@
3721
3809
  position: relative;
3722
3810
  overflow: auto;
3723
3811
  }
3812
+ .lib-xplat-table-wrapper.sm > .lib-xplat-table > thead > tr > th,
3813
+ .lib-xplat-table-wrapper.sm > .lib-xplat-table > thead > tr > td,
3814
+ .lib-xplat-table-wrapper.sm > .lib-xplat-table > tbody > tr > th,
3815
+ .lib-xplat-table-wrapper.sm > .lib-xplat-table > tbody > tr > td {
3816
+ padding: var(--spacing-space-1) var(--spacing-space-2);
3817
+ font-size: 12px;
3818
+ }
3819
+ .lib-xplat-table-wrapper.md > .lib-xplat-table > thead > tr > th,
3820
+ .lib-xplat-table-wrapper.md > .lib-xplat-table > thead > tr > td,
3821
+ .lib-xplat-table-wrapper.md > .lib-xplat-table > tbody > tr > th,
3822
+ .lib-xplat-table-wrapper.md > .lib-xplat-table > tbody > tr > td {
3823
+ padding: var(--spacing-space-2) var(--spacing-space-3);
3824
+ font-size: 14px;
3825
+ }
3826
+ .lib-xplat-table-wrapper.lg > .lib-xplat-table > thead > tr > th,
3827
+ .lib-xplat-table-wrapper.lg > .lib-xplat-table > thead > tr > td,
3828
+ .lib-xplat-table-wrapper.lg > .lib-xplat-table > tbody > tr > th,
3829
+ .lib-xplat-table-wrapper.lg > .lib-xplat-table > tbody > tr > td {
3830
+ padding: var(--spacing-space-3) var(--spacing-space-4);
3831
+ font-size: 16px;
3832
+ }
3724
3833
  .lib-xplat-table-wrapper > .lib-xplat-table {
3725
3834
  width: 100%;
3726
3835
  min-width: 600px;
@@ -3781,6 +3890,102 @@
3781
3890
  .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary.hover:hover > th {
3782
3891
  background-color: var(--semantic-surface-neutral-subtle);
3783
3892
  }
3893
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success,
3894
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success {
3895
+ background-color: var(--semantic-surface-success-default);
3896
+ }
3897
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success > td,
3898
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success > th,
3899
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success > td,
3900
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success > th {
3901
+ color: var(--semantic-text-inverse);
3902
+ background-color: var(--semantic-surface-success-default);
3903
+ }
3904
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success > td.cell-hover:hover,
3905
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success > th.cell-hover:hover,
3906
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success > td.cell-hover:hover,
3907
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success > th.cell-hover:hover {
3908
+ background-color: var(--semantic-surface-success-strong);
3909
+ }
3910
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success.hover:hover > td,
3911
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success.hover:hover > th,
3912
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success.hover:hover > td,
3913
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success.hover:hover > th {
3914
+ color: var(--semantic-text-inverse);
3915
+ background-color: var(--semantic-surface-success-strong);
3916
+ }
3917
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error,
3918
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error {
3919
+ background-color: var(--semantic-surface-error-default);
3920
+ }
3921
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error > td,
3922
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error > th,
3923
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error > td,
3924
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error > th {
3925
+ color: var(--semantic-text-inverse);
3926
+ background-color: var(--semantic-surface-error-default);
3927
+ }
3928
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error > td.cell-hover:hover,
3929
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error > th.cell-hover:hover,
3930
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error > td.cell-hover:hover,
3931
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error > th.cell-hover:hover {
3932
+ background-color: var(--semantic-surface-error-strong);
3933
+ }
3934
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error.hover:hover > td,
3935
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.error.hover:hover > th,
3936
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error.hover:hover > td,
3937
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.error.hover:hover > th {
3938
+ color: var(--semantic-text-inverse);
3939
+ background-color: var(--semantic-surface-error-strong);
3940
+ }
3941
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning,
3942
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning {
3943
+ background-color: var(--semantic-surface-warning-default);
3944
+ }
3945
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning > td,
3946
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning > th,
3947
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning > td,
3948
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning > th {
3949
+ color: var(--semantic-text-strong);
3950
+ background-color: var(--semantic-surface-warning-default);
3951
+ }
3952
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning > td.cell-hover:hover,
3953
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning > th.cell-hover:hover,
3954
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning > td.cell-hover:hover,
3955
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning > th.cell-hover:hover {
3956
+ background-color: var(--semantic-surface-warning-strong);
3957
+ }
3958
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning.hover:hover > td,
3959
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning.hover:hover > th,
3960
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning.hover:hover > td,
3961
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning.hover:hover > th {
3962
+ color: var(--semantic-text-strong);
3963
+ background-color: var(--semantic-surface-warning-strong);
3964
+ }
3965
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info,
3966
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info {
3967
+ background-color: var(--semantic-surface-info-default);
3968
+ }
3969
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info > td,
3970
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info > th,
3971
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info > td,
3972
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info > th {
3973
+ color: var(--semantic-text-inverse);
3974
+ background-color: var(--semantic-surface-info-default);
3975
+ }
3976
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info > td.cell-hover:hover,
3977
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info > th.cell-hover:hover,
3978
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info > td.cell-hover:hover,
3979
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info > th.cell-hover:hover {
3980
+ background-color: var(--semantic-surface-info-strong);
3981
+ }
3982
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info.hover:hover > td,
3983
+ .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info.hover:hover > th,
3984
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info.hover:hover > td,
3985
+ .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.info.hover:hover > th {
3986
+ color: var(--semantic-text-inverse);
3987
+ background-color: var(--semantic-surface-info-strong);
3988
+ }
3784
3989
  .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.clickable,
3785
3990
  .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.clickable {
3786
3991
  cursor: pointer;
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';