@x-plat/design-system 0.5.25 → 0.5.28

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,84 @@
1664
1664
  font-weight: 600;
1665
1665
  }
1666
1666
 
1667
+ /* src/components/IconButton/iconButton.scss */
1668
+ .lib-xplat-icon-button {
1669
+ display: inline-flex;
1670
+ align-items: center;
1671
+ justify-content: center;
1672
+ flex-shrink: 0;
1673
+ border: 1px solid transparent;
1674
+ border-radius: var(--spacing-radius-md);
1675
+ cursor: pointer;
1676
+ transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
1677
+ }
1678
+ .lib-xplat-icon-button.sm {
1679
+ width: var(--spacing-control-height-sm);
1680
+ height: var(--spacing-control-height-sm);
1681
+ font-size: 14px;
1682
+ }
1683
+ .lib-xplat-icon-button.md {
1684
+ width: var(--spacing-control-height-md);
1685
+ height: var(--spacing-control-height-md);
1686
+ font-size: 18px;
1687
+ }
1688
+ .lib-xplat-icon-button.lg {
1689
+ width: var(--spacing-control-height-lg);
1690
+ height: var(--spacing-control-height-lg);
1691
+ font-size: 22px;
1692
+ }
1693
+ .lib-xplat-icon-button:disabled {
1694
+ cursor: not-allowed;
1695
+ background-color: var(--semantic-surface-neutral-disabled) !important;
1696
+ border-color: var(--semantic-surface-neutral-disabled) !important;
1697
+ color: var(--semantic-text-disabled) !important;
1698
+ }
1699
+ .lib-xplat-icon-button.primary {
1700
+ color: var(--semantic-text-inverse);
1701
+ background-color: var(--semantic-surface-brand-default);
1702
+ }
1703
+ .lib-xplat-icon-button.primary:hover:not(:disabled) {
1704
+ background-color: var(--semantic-surface-brand-strong);
1705
+ }
1706
+ .lib-xplat-icon-button.primary:focus-visible {
1707
+ outline: 2px solid var(--semantic-interaction-focus-ring);
1708
+ outline-offset: 2px;
1709
+ }
1710
+ .lib-xplat-icon-button.secondary {
1711
+ color: var(--semantic-surface-brand-default);
1712
+ background-color: var(--semantic-surface-neutral-default);
1713
+ border-color: var(--semantic-border-default);
1714
+ }
1715
+ .lib-xplat-icon-button.secondary:hover:not(:disabled) {
1716
+ background-color: var(--semantic-surface-neutral-subtle);
1717
+ }
1718
+ .lib-xplat-icon-button.secondary:focus-visible {
1719
+ outline: 2px solid var(--semantic-interaction-focus-ring);
1720
+ outline-offset: 2px;
1721
+ }
1722
+ .lib-xplat-icon-button.danger {
1723
+ color: var(--semantic-text-inverse);
1724
+ background-color: var(--semantic-surface-error-default);
1725
+ }
1726
+ .lib-xplat-icon-button.danger:hover:not(:disabled) {
1727
+ background-color: var(--semantic-surface-error-strong);
1728
+ }
1729
+ .lib-xplat-icon-button.danger:focus-visible {
1730
+ outline: 2px solid var(--semantic-interaction-focus-ring);
1731
+ outline-offset: 2px;
1732
+ }
1733
+ .lib-xplat-icon-button.ghost {
1734
+ color: var(--semantic-text-subtle);
1735
+ background-color: transparent;
1736
+ }
1737
+ .lib-xplat-icon-button.ghost:hover:not(:disabled) {
1738
+ background-color: var(--semantic-surface-neutral-subtle);
1739
+ }
1740
+ .lib-xplat-icon-button.ghost:focus-visible {
1741
+ outline: 2px solid var(--semantic-interaction-focus-ring);
1742
+ outline-offset: 2px;
1743
+ }
1744
+
1667
1745
  /* src/components/ChatInput/chatInput.scss */
1668
1746
  .lib-xplat-chat-input {
1669
1747
  display: flex;
@@ -1696,9 +1774,9 @@
1696
1774
  min-height: var(--spacing-control-height-sm);
1697
1775
  max-height: 200px;
1698
1776
  overflow-y: auto;
1699
- padding: 0;
1777
+ padding: 4px 0;
1700
1778
  font-size: 16px;
1701
- line-height: 1.5;
1779
+ line-height: 24px;
1702
1780
  color: var(--semantic-text-strong);
1703
1781
  background: transparent;
1704
1782
  }
@@ -1709,49 +1787,6 @@
1709
1787
  cursor: not-allowed;
1710
1788
  color: var(--semantic-text-disabled);
1711
1789
  }
1712
- .lib-xplat-chat-input .chat-input-send {
1713
- display: inline-flex;
1714
- align-items: center;
1715
- justify-content: center;
1716
- flex-shrink: 0;
1717
- width: var(--spacing-control-height-sm);
1718
- height: var(--spacing-control-height-sm);
1719
- border: none;
1720
- border-radius: var(--spacing-radius-md);
1721
- cursor: pointer;
1722
- font-size: 16px;
1723
- transition: background-color 0.15s, opacity 0.15s;
1724
- }
1725
- .lib-xplat-chat-input .chat-input-send:disabled {
1726
- opacity: 0.4;
1727
- cursor: not-allowed;
1728
- }
1729
- .lib-xplat-chat-input .chat-input-send:focus-visible {
1730
- outline: 2px solid var(--semantic-interaction-focus-ring);
1731
- outline-offset: 2px;
1732
- }
1733
- .lib-xplat-chat-input .chat-input-send.btn-primary {
1734
- background-color: var(--semantic-surface-brand-default);
1735
- color: var(--semantic-text-inverse);
1736
- }
1737
- .lib-xplat-chat-input .chat-input-send.btn-primary:hover:not(:disabled) {
1738
- background-color: var(--semantic-surface-brand-strong);
1739
- }
1740
- .lib-xplat-chat-input .chat-input-send.btn-secondary {
1741
- background-color: var(--semantic-surface-neutral-default);
1742
- color: var(--semantic-surface-brand-default);
1743
- border: 1px solid var(--semantic-border-default);
1744
- }
1745
- .lib-xplat-chat-input .chat-input-send.btn-secondary:hover:not(:disabled) {
1746
- background-color: var(--semantic-surface-neutral-subtle);
1747
- }
1748
- .lib-xplat-chat-input .chat-input-send.btn-text {
1749
- background-color: transparent;
1750
- color: var(--semantic-surface-brand-default);
1751
- }
1752
- .lib-xplat-chat-input .chat-input-send.btn-text:hover:not(:disabled) {
1753
- background-color: var(--semantic-surface-neutral-subtle);
1754
- }
1755
1790
 
1756
1791
  /* src/components/Box/box.scss */
1757
1792
  .lib-xplat-box {
@@ -4050,12 +4085,6 @@
4050
4085
  z-index: 1;
4051
4086
  left: calc(var(--sticky-left) * 1px);
4052
4087
  }
4053
- .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td.right-shadow,
4054
- .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > th.right-shadow,
4055
- .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > td.right-shadow,
4056
- .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > th.right-shadow {
4057
- box-shadow: 8px 0 10px -5px rgba(0, 0, 0, 0.3);
4058
- }
4059
4088
  .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > td.right-shadow::after,
4060
4089
  .lib-xplat-table-wrapper > .lib-xplat-table > thead > tr > th.right-shadow::after,
4061
4090
  .lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > td.right-shadow::after,
@@ -4063,14 +4092,14 @@
4063
4092
  content: "";
4064
4093
  position: absolute;
4065
4094
  top: 0;
4066
- right: calc(var(--spacing-space-2) * -1);
4067
- width: var(--spacing-space-2);
4095
+ right: -6px;
4096
+ width: 6px;
4068
4097
  height: 100%;
4069
4098
  background:
4070
4099
  linear-gradient(
4071
4100
  to right,
4072
- rgba(0, 0, 0, 0.18),
4073
- rgba(255, 255, 255, 0));
4101
+ rgba(0, 0, 0, 0.08),
4102
+ transparent);
4074
4103
  pointer-events: none;
4075
4104
  }
4076
4105
 
@@ -18,6 +18,7 @@ export { Dropdown } from './Dropdown/index.cjs';
18
18
  export { EmptyState } from './EmptyState/index.cjs';
19
19
  export { FileUpload } from './FileUpload/index.cjs';
20
20
  export { HtmlTypewriter } from './HtmlTypeWriter/index.cjs';
21
+ export { IconButton } from './IconButton/index.cjs';
21
22
  export { ImageSelector } from './ImageSelector/index.cjs';
22
23
  export { Input, PasswordInput } from './Input/index.cjs';
23
24
  export { Modal } from './Modal/index.cjs';
@@ -18,6 +18,7 @@ export { Dropdown } from './Dropdown/index.js';
18
18
  export { EmptyState } from './EmptyState/index.js';
19
19
  export { FileUpload } from './FileUpload/index.js';
20
20
  export { HtmlTypewriter } from './HtmlTypeWriter/index.js';
21
+ export { IconButton } from './IconButton/index.js';
21
22
  export { ImageSelector } from './ImageSelector/index.js';
22
23
  export { Input, PasswordInput } from './Input/index.js';
23
24
  export { Modal } from './Modal/index.js';