@x-plat/design-system 0.5.25 → 0.5.27

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,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 {
package/dist/index.d.cts CHANGED
@@ -19,6 +19,7 @@ export { Dropdown } from './components/Dropdown/index.cjs';
19
19
  export { EmptyState } from './components/EmptyState/index.cjs';
20
20
  export { FileUpload } from './components/FileUpload/index.cjs';
21
21
  export { HtmlTypewriter } from './components/HtmlTypeWriter/index.cjs';
22
+ export { IconButton } from './components/IconButton/index.cjs';
22
23
  export { ImageSelector } from './components/ImageSelector/index.cjs';
23
24
  export { Input, PasswordInput } from './components/Input/index.cjs';
24
25
  export { Modal } from './components/Modal/index.cjs';
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export { Dropdown } from './components/Dropdown/index.js';
19
19
  export { EmptyState } from './components/EmptyState/index.js';
20
20
  export { FileUpload } from './components/FileUpload/index.js';
21
21
  export { HtmlTypewriter } from './components/HtmlTypeWriter/index.js';
22
+ export { IconButton } from './components/IconButton/index.js';
22
23
  export { ImageSelector } from './components/ImageSelector/index.js';
23
24
  export { Input, PasswordInput } from './components/Input/index.js';
24
25
  export { Modal } from './components/Modal/index.js';