@box/blueprint-web 12.13.1 → 12.15.0
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/lib-esm/card/card.js +5 -0
- package/dist/lib-esm/card/card.module.js +1 -1
- package/dist/lib-esm/index.css +247 -109
- package/dist/lib-esm/primitives/notification/notification.module.js +1 -1
- package/dist/lib-esm/primitives/notification/private-notification-element.js +5 -0
- package/dist/lib-esm/text-area/text-area-autosize/text-area-autosize.js +7 -0
- package/dist/lib-esm/text-area/text-area-autosize/text-area-autosize.module.js +1 -1
- package/dist/lib-esm/text-area/text-area.js +6 -1
- package/dist/lib-esm/text-area/text-area.module.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
4
5
|
import styles from './card.module.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -13,10 +14,14 @@ const Card = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
13
14
|
elevation: elevationToken,
|
|
14
15
|
...rest
|
|
15
16
|
} = props;
|
|
17
|
+
const {
|
|
18
|
+
enableModernizedComponents
|
|
19
|
+
} = useBlueprintModernization();
|
|
16
20
|
return jsx("div", {
|
|
17
21
|
...rest,
|
|
18
22
|
ref: forwardedRef,
|
|
19
23
|
className: clsx(styles.card, elevationToken && styles[elevationToken], className),
|
|
24
|
+
"data-modern": enableModernizedComponents,
|
|
20
25
|
children: children
|
|
21
26
|
});
|
|
22
27
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"card":"bp_card_module_card--
|
|
2
|
+
var styles = {"card":"bp_card_module_card--c61ad","dropshadow-1":"bp_card_module_dropshadow-1--c61ad","dropshadow-3":"bp_card_module_dropshadow-3--c61ad"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
package/dist/lib-esm/index.css
CHANGED
|
@@ -1101,17 +1101,37 @@
|
|
|
1101
1101
|
.bp_button_wrapper_module_buttonWrapper--b0897{
|
|
1102
1102
|
all:unset;
|
|
1103
1103
|
}
|
|
1104
|
-
.bp_card_module_card--
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
padding:var(--space-
|
|
1104
|
+
.bp_card_module_card--c61ad[data-modern=true]{
|
|
1105
|
+
--bp-card-dropshadow-1:var(--dropshadow-1);
|
|
1106
|
+
--bp-card-dropshadow-3:var(--dropshadow-3);
|
|
1107
|
+
--card-radius:var(--bp-radius-10);
|
|
1108
|
+
--card-padding:var(--bp-space-060);
|
|
1109
|
+
--card-background:var(--bp-surface-card-surface);
|
|
1110
|
+
--card-border:var(--bp-border-01) solid var(--bp-border-card-border);
|
|
1111
|
+
--card-dropshadow-1:var(--bp-card-dropshadow-1);
|
|
1112
|
+
--card-dropshadow-3:var(--bp-card-dropshadow-3);
|
|
1109
1113
|
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1114
|
+
|
|
1115
|
+
.bp_card_module_card--c61ad[data-modern=false]{
|
|
1116
|
+
--card-padding:var(--space-4);
|
|
1117
|
+
--card-background:var(--surface-card-surface);
|
|
1118
|
+
--card-border:var(--border-1) solid var(--border-card-border);
|
|
1119
|
+
--card-radius:var(--radius-4);
|
|
1120
|
+
--card-dropshadow-1:var(--dropshadow-1);
|
|
1121
|
+
--card-dropshadow-3:var(--dropshadow-3);
|
|
1112
1122
|
}
|
|
1113
|
-
|
|
1114
|
-
|
|
1123
|
+
|
|
1124
|
+
.bp_card_module_card--c61ad{
|
|
1125
|
+
background:var(--card-background);
|
|
1126
|
+
border:var(--card-border);
|
|
1127
|
+
border-radius:var(--card-radius);
|
|
1128
|
+
padding:var(--card-padding);
|
|
1129
|
+
}
|
|
1130
|
+
.bp_card_module_card--c61ad.bp_card_module_dropshadow-1--c61ad{
|
|
1131
|
+
box-shadow:var(--card-dropshadow-1);
|
|
1132
|
+
}
|
|
1133
|
+
.bp_card_module_card--c61ad.bp_card_module_dropshadow-3--c61ad{
|
|
1134
|
+
box-shadow:var(--card-dropshadow-3);
|
|
1115
1135
|
}
|
|
1116
1136
|
|
|
1117
1137
|
.bp_card_tooltip_module_content--efa88{
|
|
@@ -1747,76 +1767,145 @@
|
|
|
1747
1767
|
flex-grow:0;
|
|
1748
1768
|
flex-shrink:0;
|
|
1749
1769
|
}
|
|
1770
|
+
.bp_labelable_module_required--25dbc{
|
|
1771
|
+
align-items:center;
|
|
1772
|
+
display:inline-flex;
|
|
1773
|
+
gap:var(--space-1);
|
|
1774
|
+
}
|
|
1775
|
+
.bp_labelable_module_required--25dbc::before{
|
|
1776
|
+
color:var(--icon-icon-required-on-light);
|
|
1777
|
+
content:"*";
|
|
1778
|
+
font-family:monospace;
|
|
1779
|
+
transform:scale(1.2);
|
|
1780
|
+
}
|
|
1750
1781
|
|
|
1751
|
-
.bp_text_area_autosize_module_textArea--
|
|
1752
|
-
|
|
1782
|
+
.bp_text_area_autosize_module_textArea--4fa6a[data-modern=false]{
|
|
1783
|
+
--text-area-text-color:var(--text-text-on-light);
|
|
1784
|
+
--text-area-inner-shadow:var(--innershadow-1);
|
|
1785
|
+
--text-area-background-color:var(--surface-input-surface);
|
|
1786
|
+
--text-area-padding-inline:var(--space-3);
|
|
1787
|
+
--text-area-padding-block:0.625rem;
|
|
1788
|
+
--text-area-placeholder-color:var(--text-text-on-light-secondary);
|
|
1789
|
+
--text-area-error-background-color:var(--surface-input-surface-error);
|
|
1790
|
+
--text-area-error-background-focus:var(--surface-input-surface-focus);
|
|
1791
|
+
--text-area-error-background-hover:var(--surface-input-surface-hover);
|
|
1792
|
+
--text-area-icon-padding:1.875rem;
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
.bp_text_area_autosize_module_textArea--4fa6a[data-modern=true]{
|
|
1796
|
+
--text-area-inner-shadow:var(--innershadow-1);
|
|
1797
|
+
--text-area-text-color:var(--bp-text-text-on-light);
|
|
1798
|
+
--text-area-background-color:var(--bp-surface-input-surface);
|
|
1799
|
+
--text-area-padding-inline:var(--bp-size-030);
|
|
1800
|
+
--text-area-padding-block:0.625rem;
|
|
1801
|
+
--text-area-placeholder-color:var(--bp-text-text-on-light-secondary);
|
|
1802
|
+
--text-area-error-background-color:var(--bp-surface-input-surface-error);
|
|
1803
|
+
--text-area-error-background-focus:var(--bp-surface-input-surface-focus);
|
|
1804
|
+
--text-area-error-background-hover:var(--bp-surface-input-surface-hover);
|
|
1805
|
+
--text-area-icon-padding:1.875rem;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
.bp_text_area_autosize_module_textArea--4fa6a{
|
|
1809
|
+
background:var(--text-area-background-color);
|
|
1753
1810
|
border:none;
|
|
1754
|
-
box-shadow:var(--
|
|
1755
|
-
color:var(--text-text-
|
|
1811
|
+
box-shadow:var(--text-area-inner-shadow);
|
|
1812
|
+
color:var(--text-area-text-color);
|
|
1756
1813
|
font-family:var(--body-default-font-family);
|
|
1757
1814
|
font-size:var(--body-default-font-size);
|
|
1758
1815
|
font-weight:var(--body-default-font-weight);
|
|
1759
1816
|
letter-spacing:var(--body-default-letter-spacing);
|
|
1760
1817
|
line-height:var(--body-default-line-height);
|
|
1761
1818
|
margin:0;
|
|
1762
|
-
padding-block
|
|
1763
|
-
padding-inline:var(--
|
|
1819
|
+
padding-block:var(--text-area-padding-block);
|
|
1820
|
+
padding-inline:var(--text-area-padding-inline);
|
|
1764
1821
|
resize:none;
|
|
1765
1822
|
-webkit-text-decoration:var(--body-default-text-decoration);
|
|
1766
1823
|
text-decoration:var(--body-default-text-decoration);
|
|
1767
1824
|
text-transform:var(--body-default-text-case);
|
|
1768
1825
|
width:100%;
|
|
1769
1826
|
}
|
|
1770
|
-
.bp_text_area_autosize_module_textArea--
|
|
1771
|
-
color:var(--text-
|
|
1827
|
+
.bp_text_area_autosize_module_textArea--4fa6a::placeholder{
|
|
1828
|
+
color:var(--text-area-placeholder-color);
|
|
1772
1829
|
opacity:1;
|
|
1773
1830
|
}
|
|
1774
|
-
.bp_text_area_autosize_module_textArea--
|
|
1775
|
-
background:var(--
|
|
1831
|
+
.bp_text_area_autosize_module_textArea--4fa6a.bp_text_area_autosize_module_error--4fa6a{
|
|
1832
|
+
background:var(--text-area-error-background-color);
|
|
1776
1833
|
outline:0;
|
|
1777
1834
|
}
|
|
1778
|
-
.bp_text_area_autosize_module_textArea--
|
|
1835
|
+
.bp_text_area_autosize_module_textArea--4fa6a:focus{
|
|
1779
1836
|
border:none;
|
|
1780
1837
|
}
|
|
1781
|
-
.bp_text_area_autosize_module_textArea--
|
|
1782
|
-
box-shadow:var(--
|
|
1838
|
+
.bp_text_area_autosize_module_textArea--4fa6a:hover{
|
|
1839
|
+
box-shadow:var(--text-area-inner-shadow);
|
|
1783
1840
|
}
|
|
1784
|
-
.bp_text_area_autosize_module_textArea--
|
|
1785
|
-
background:var(--
|
|
1841
|
+
.bp_text_area_autosize_module_textArea--4fa6a:focus-visible{
|
|
1842
|
+
background:var(--text-area-error-background-focus);
|
|
1786
1843
|
outline:0;
|
|
1787
1844
|
}
|
|
1788
|
-
.bp_text_area_autosize_module_textArea--
|
|
1789
|
-
background:var(--
|
|
1845
|
+
.bp_text_area_autosize_module_textArea--4fa6a:disabled{
|
|
1846
|
+
background:var(--text-area-background-color);
|
|
1790
1847
|
border:none;
|
|
1791
|
-
box-shadow:var(--
|
|
1792
|
-
color:var(--text-text-
|
|
1848
|
+
box-shadow:var(--text-area-inner-shadow);
|
|
1849
|
+
color:var(--text-area-text-color);
|
|
1793
1850
|
}
|
|
1794
|
-
.bp_text_area_autosize_module_textArea--
|
|
1795
|
-
background:var(--
|
|
1851
|
+
.bp_text_area_autosize_module_textArea--4fa6a:not(:disabled):not(:focus-visible):not(.bp_text_area_autosize_module_error--4fa6a):hover{
|
|
1852
|
+
background:var(--text-area-error-background-hover);
|
|
1796
1853
|
}
|
|
1797
|
-
.bp_text_area_autosize_module_textArea--
|
|
1798
|
-
padding-inline-end:
|
|
1854
|
+
.bp_text_area_autosize_module_textArea--4fa6a.bp_text_area_autosize_module_loading--4fa6a{
|
|
1855
|
+
padding-inline-end:var(--text-area-icon-padding);
|
|
1799
1856
|
}
|
|
1800
1857
|
|
|
1801
|
-
.bp_text_area_autosize_module_loadingIndicator--
|
|
1858
|
+
.bp_text_area_autosize_module_loadingIndicator--4fa6a[data-modern=false]{
|
|
1859
|
+
--text-area-loading-indicator-width:var(--size-6);
|
|
1860
|
+
--text-area-loading-indicator-height:var(--size-6);
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
.bp_text_area_autosize_module_loadingIndicator--4fa6a[data-modern=true]{
|
|
1864
|
+
--text-area-loading-indicator-width:var(--bp-size-060);
|
|
1865
|
+
--text-area-loading-indicator-height:var(--bp-size-060);
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
.bp_text_area_autosize_module_loadingIndicator--4fa6a{
|
|
1802
1869
|
bottom:.375rem;
|
|
1803
1870
|
display:inline-block;
|
|
1804
|
-
height:var(--
|
|
1871
|
+
height:var(--text-area-loading-indicator-height);
|
|
1805
1872
|
left:unset;
|
|
1806
1873
|
position:absolute;
|
|
1807
1874
|
right:0;
|
|
1808
|
-
width:var(--
|
|
1875
|
+
width:var(--text-area-loading-indicator-width);
|
|
1809
1876
|
}
|
|
1810
1877
|
|
|
1811
|
-
.bp_text_area_autosize_module_border--
|
|
1812
|
-
|
|
1813
|
-
|
|
1878
|
+
.bp_text_area_autosize_module_border--4fa6a[data-modern=false]{
|
|
1879
|
+
--text-area-radius:var(--radius-2);
|
|
1880
|
+
--text-area-border-width:var(--border-1);
|
|
1881
|
+
--text-area-shadow-color:var(--border-input-border);
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
.bp_text_area_autosize_module_border--4fa6a[data-modern=true]{
|
|
1885
|
+
--text-area-radius:var(--bp-radius-06);
|
|
1886
|
+
--text-area-border-width:var(--bp-border-01);
|
|
1887
|
+
--text-area-shadow-color:var(--bp-border-input-border);
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
.bp_text_area_autosize_module_border--4fa6a{
|
|
1891
|
+
border-radius:var(--text-area-radius);
|
|
1892
|
+
box-shadow:0 0 0 var(--text-area-border-width) var(--text-area-shadow-color);
|
|
1814
1893
|
display:flex;
|
|
1815
1894
|
overflow:hidden;
|
|
1816
1895
|
transform:translateZ(0);
|
|
1817
1896
|
}
|
|
1818
1897
|
|
|
1819
|
-
.bp_text_area_module_textAreaContainer--
|
|
1898
|
+
.bp_text_area_module_textAreaContainer--bf753[data-modern=false]{
|
|
1899
|
+
--text-area-container-row-gap:var(--space-2);
|
|
1900
|
+
--text-area-container-label-color:var(--text-text-on-light);
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
.bp_text_area_module_textAreaContainer--bf753[data-modern=true]{
|
|
1904
|
+
--text-area-container-row-gap:var(--bp-size-020);
|
|
1905
|
+
--text-area-container-label-color:var(--bp-text-text-on-light);
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
.bp_text_area_module_textAreaContainer--bf753{
|
|
1820
1909
|
display:flex;
|
|
1821
1910
|
flex-direction:column;
|
|
1822
1911
|
font-family:var(--body-default-font-family);
|
|
@@ -1829,8 +1918,8 @@
|
|
|
1829
1918
|
text-decoration:var(--body-default-text-decoration);
|
|
1830
1919
|
text-transform:var(--body-default-text-case);
|
|
1831
1920
|
}
|
|
1832
|
-
.bp_text_area_module_textAreaContainer--
|
|
1833
|
-
color:var(--text-
|
|
1921
|
+
.bp_text_area_module_textAreaContainer--bf753 .bp_text_area_module_label--bf753{
|
|
1922
|
+
color:var(--text-area-container-label-color);
|
|
1834
1923
|
flex:0 0 fit-content;
|
|
1835
1924
|
font-family:var(--body-default-bold-font-family);
|
|
1836
1925
|
font-size:var(--body-default-bold-font-size);
|
|
@@ -1843,25 +1932,14 @@
|
|
|
1843
1932
|
width:-moz-fit-content;
|
|
1844
1933
|
width:fit-content;
|
|
1845
1934
|
}
|
|
1846
|
-
.bp_text_area_module_textAreaContainer--
|
|
1847
|
-
margin-block-end:var(--
|
|
1935
|
+
.bp_text_area_module_textAreaContainer--bf753 .bp_text_area_module_label--bf753:not(.bp_text_area_module_hidden--bf753){
|
|
1936
|
+
margin-block-end:var(--text-area-container-row-gap);
|
|
1848
1937
|
}
|
|
1849
|
-
.bp_text_area_module_textAreaContainer--
|
|
1938
|
+
.bp_text_area_module_textAreaContainer--bf753.bp_text_area_module_disabled--bf753{
|
|
1850
1939
|
opacity:60%;
|
|
1851
1940
|
}
|
|
1852
|
-
.bp_text_area_module_textAreaContainer--
|
|
1853
|
-
margin-block-start:var(--
|
|
1854
|
-
}
|
|
1855
|
-
.bp_labelable_module_required--25dbc{
|
|
1856
|
-
align-items:center;
|
|
1857
|
-
display:inline-flex;
|
|
1858
|
-
gap:var(--space-1);
|
|
1859
|
-
}
|
|
1860
|
-
.bp_labelable_module_required--25dbc::before{
|
|
1861
|
-
color:var(--icon-icon-required-on-light);
|
|
1862
|
-
content:"*";
|
|
1863
|
-
font-family:monospace;
|
|
1864
|
-
transform:scale(1.2);
|
|
1941
|
+
.bp_text_area_module_textAreaContainer--bf753 .bp_text_area_module_inlineError--bf753{
|
|
1942
|
+
margin-block-start:var(--text-area-container-row-gap);
|
|
1865
1943
|
}
|
|
1866
1944
|
|
|
1867
1945
|
.bp_combobox_module_container--d598b{
|
|
@@ -5350,60 +5428,119 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
5350
5428
|
white-space:nowrap;
|
|
5351
5429
|
}
|
|
5352
5430
|
|
|
5353
|
-
.bp_notification_module_viewport--
|
|
5431
|
+
.bp_notification_module_viewport--bc071{
|
|
5432
|
+
--notification-viewport-space:var(--space-4);
|
|
5433
|
+
--notification-viewport-item-spacing:var(--space-3);
|
|
5354
5434
|
all:unset;
|
|
5355
5435
|
align-items:center;
|
|
5356
5436
|
display:flex;
|
|
5357
5437
|
flex-direction:column;
|
|
5358
|
-
gap:var(--
|
|
5438
|
+
gap:var(--notification-viewport-item-spacing);
|
|
5359
5439
|
left:50%;
|
|
5360
5440
|
position:fixed;
|
|
5361
|
-
top:var(--space
|
|
5441
|
+
top:var(--notification-viewport-space);
|
|
5362
5442
|
transform:translate(-50%);
|
|
5363
5443
|
z-index:2147483647;
|
|
5364
5444
|
}
|
|
5365
5445
|
|
|
5366
|
-
.bp_notification_module_root--
|
|
5367
|
-
|
|
5368
|
-
|
|
5446
|
+
.bp_notification_module_root--bc071[data-modern=false]{
|
|
5447
|
+
--notification-padding-vertical:var(--space-3);
|
|
5448
|
+
--notification-padding-horizontal:var(--space-4);
|
|
5449
|
+
--notification-item-spacing:var(--space-3);
|
|
5450
|
+
--notification-radius:var(--radius-3);
|
|
5451
|
+
--notification-border:var(--border-2);
|
|
5452
|
+
--notification-shadow:var(--dropshadow-3);
|
|
5453
|
+
--notification-background-info:var(--surface-message-surface-info);
|
|
5454
|
+
--notification-background-success:var(--surface-message-surface-success);
|
|
5455
|
+
--notification-background-warning:var(--surface-message-surface-warning);
|
|
5456
|
+
--notification-background-error:var(--surface-message-surface-error);
|
|
5457
|
+
--notification-background-blur:none;
|
|
5458
|
+
--notification-border-color-info:var(--border-message-border-info);
|
|
5459
|
+
--notification-border-color-success:var(--border-message-border-success);
|
|
5460
|
+
--notification-border-color-warning:var(--border-message-border-warning);
|
|
5461
|
+
--notification-border-color-error:var(--border-message-border-error);
|
|
5462
|
+
--notification-text-color:var(--text-text-on-light);
|
|
5463
|
+
--notification-text-container-height:var(--space-8);
|
|
5464
|
+
--notification-icon-size:var(--size-8);
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5467
|
+
.bp_notification_module_root--bc071[data-modern=true]{
|
|
5468
|
+
--notification-padding-vertical:var(--bp-space-030);
|
|
5469
|
+
--notification-padding-horizontal:var(--bp-space-040);
|
|
5470
|
+
--notification-item-spacing:var(--bp-space-030);
|
|
5471
|
+
--notification-radius:var(--bp-radius-16);
|
|
5472
|
+
--notification-border:var(--bp-border-02);
|
|
5473
|
+
--notification-shadow:var(--dropshadow-3);
|
|
5474
|
+
--notification-background-info:var(--bp-light-blue-opacity-04);
|
|
5475
|
+
--notification-background-success:var(--bp-green-light-opacity-04);
|
|
5476
|
+
--notification-background-warning:var(--bp-yellow-opacity-04);
|
|
5477
|
+
--notification-background-error:var(--bp-watermelon-red-opacity-04);
|
|
5478
|
+
--notification-background-overlay:var(--bp-white-opacity-90);
|
|
5479
|
+
--notification-background-blur:16px;
|
|
5480
|
+
--notification-border-color-info:var(--bp-light-blue-opacity-30);
|
|
5481
|
+
--notification-border-color-success:var(--bp-green-light-opacity-30);
|
|
5482
|
+
--notification-border-color-warning:var(--bp-yellow-opacity-30);
|
|
5483
|
+
--notification-border-color-error:var(--bp-watermelon-red-opacity-30);
|
|
5484
|
+
--notification-outline-focus:var(--bp-outline-focus-on-light);
|
|
5485
|
+
--notification-text-color:var(--bp-text-text-on-light);
|
|
5486
|
+
--notification-text-container-height:var(--bp-space-080);
|
|
5487
|
+
--notification-icon-size:var(--bp-size-080);
|
|
5488
|
+
}
|
|
5489
|
+
.bp_notification_module_root--bc071[data-modern=true].bp_notification_module_info--bc071{
|
|
5490
|
+
background:linear-gradient(0deg, var(--notification-background-info) 0, var(--notification-background-info) 100%), var(--notification-background-overlay);
|
|
5491
|
+
}
|
|
5492
|
+
.bp_notification_module_root--bc071[data-modern=true].bp_notification_module_success--bc071{
|
|
5493
|
+
background:linear-gradient(0deg, var(--notification-background-success) 0, var(--notification-background-success) 100%), var(--notification-background-overlay);
|
|
5494
|
+
}
|
|
5495
|
+
.bp_notification_module_root--bc071[data-modern=true].bp_notification_module_warning--bc071{
|
|
5496
|
+
background:linear-gradient(0deg, var(--notification-background-warning) 0, var(--notification-background-warning) 100%), var(--notification-background-overlay);
|
|
5497
|
+
}
|
|
5498
|
+
.bp_notification_module_root--bc071[data-modern=true].bp_notification_module_error--bc071{
|
|
5499
|
+
background:linear-gradient(0deg, var(--notification-background-error) 0, var(--notification-background-error) 100%), var(--notification-background-overlay);
|
|
5500
|
+
}
|
|
5501
|
+
|
|
5502
|
+
.bp_notification_module_root--bc071{
|
|
5503
|
+
backdrop-filter:blur(var(--notification-background-blur));
|
|
5504
|
+
border:var(--notification-border) solid;
|
|
5505
|
+
border-radius:var(--notification-radius);
|
|
5506
|
+
box-shadow:var(--notification-shadow);
|
|
5369
5507
|
display:flex;
|
|
5370
5508
|
max-width:288px;
|
|
5371
5509
|
width:max-content;
|
|
5372
5510
|
}
|
|
5373
5511
|
@media (width > 374px){
|
|
5374
|
-
.bp_notification_module_root--
|
|
5512
|
+
.bp_notification_module_root--bc071{
|
|
5375
5513
|
max-width:343px;
|
|
5376
5514
|
}
|
|
5377
5515
|
}
|
|
5378
5516
|
@media (width > 767px){
|
|
5379
|
-
.bp_notification_module_root--
|
|
5517
|
+
.bp_notification_module_root--bc071{
|
|
5380
5518
|
max-width:728px;
|
|
5381
5519
|
}
|
|
5382
5520
|
}
|
|
5383
5521
|
@media (width > 1023px){
|
|
5384
|
-
.bp_notification_module_root--
|
|
5522
|
+
.bp_notification_module_root--bc071{
|
|
5385
5523
|
max-width:848px;
|
|
5386
5524
|
}
|
|
5387
5525
|
}
|
|
5388
5526
|
@media (width > 1219px){
|
|
5389
|
-
.bp_notification_module_root--
|
|
5527
|
+
.bp_notification_module_root--bc071{
|
|
5390
5528
|
max-width:896px;
|
|
5391
5529
|
}
|
|
5392
5530
|
}
|
|
5393
|
-
.bp_notification_module_root--
|
|
5531
|
+
.bp_notification_module_root--bc071 .bp_notification_module_container--bc071{
|
|
5394
5532
|
align-items:flex-start;
|
|
5395
|
-
box-shadow:var(--dropshadow-3);
|
|
5396
5533
|
display:flex;
|
|
5397
|
-
gap:var(--
|
|
5398
|
-
padding:var(--
|
|
5534
|
+
gap:var(--notification-item-spacing);
|
|
5535
|
+
padding:var(--notification-padding-vertical) 0;
|
|
5399
5536
|
width:100%;
|
|
5400
5537
|
}
|
|
5401
5538
|
@media (width > 767px){
|
|
5402
|
-
.bp_notification_module_root--
|
|
5539
|
+
.bp_notification_module_root--bc071 .bp_notification_module_container--bc071{
|
|
5403
5540
|
align-items:center;
|
|
5404
5541
|
}
|
|
5405
5542
|
}
|
|
5406
|
-
.bp_notification_module_root--
|
|
5543
|
+
.bp_notification_module_root--bc071 .bp_notification_module_mobileContainer--bc071{
|
|
5407
5544
|
align-items:left;
|
|
5408
5545
|
display:flex;
|
|
5409
5546
|
flex-direction:column;
|
|
@@ -5411,88 +5548,89 @@ div[data-radix-popper-content-wrapper]:has([role=menu]):has([data-state=open]):h
|
|
|
5411
5548
|
width:100%;
|
|
5412
5549
|
}
|
|
5413
5550
|
@media (width > 767px){
|
|
5414
|
-
.bp_notification_module_root--
|
|
5551
|
+
.bp_notification_module_root--bc071 .bp_notification_module_mobileContainer--bc071{
|
|
5415
5552
|
align-items:center;
|
|
5416
5553
|
flex-direction:row;
|
|
5417
5554
|
}
|
|
5418
5555
|
}
|
|
5419
|
-
.bp_notification_module_root--
|
|
5420
|
-
gap:var(--
|
|
5556
|
+
.bp_notification_module_root--bc071 .bp_notification_module_withButtons--bc071{
|
|
5557
|
+
gap:var(--notification-item-spacing);
|
|
5421
5558
|
}
|
|
5422
|
-
.bp_notification_module_root--
|
|
5423
|
-
background:var(--
|
|
5424
|
-
border-color:var(--border-
|
|
5559
|
+
.bp_notification_module_root--bc071.bp_notification_module_info--bc071{
|
|
5560
|
+
background:var(--notification-background-info);
|
|
5561
|
+
border-color:var(--notification-border-color-info);
|
|
5425
5562
|
}
|
|
5426
|
-
.bp_notification_module_root--
|
|
5427
|
-
background:var(--
|
|
5428
|
-
border-color:var(--border-
|
|
5563
|
+
.bp_notification_module_root--bc071.bp_notification_module_success--bc071{
|
|
5564
|
+
background:var(--notification-background-success);
|
|
5565
|
+
border-color:var(--notification-border-color-success);
|
|
5429
5566
|
}
|
|
5430
|
-
.bp_notification_module_root--
|
|
5431
|
-
background:var(--
|
|
5432
|
-
border-color:var(--border-
|
|
5567
|
+
.bp_notification_module_root--bc071.bp_notification_module_warning--bc071{
|
|
5568
|
+
background:var(--notification-background-warning);
|
|
5569
|
+
border-color:var(--notification-border-color-warning);
|
|
5433
5570
|
}
|
|
5434
|
-
.bp_notification_module_root--
|
|
5435
|
-
background:var(--
|
|
5436
|
-
border-color:var(--border-
|
|
5571
|
+
.bp_notification_module_root--bc071.bp_notification_module_error--bc071{
|
|
5572
|
+
background:var(--notification-background-error);
|
|
5573
|
+
border-color:var(--notification-border-color-error);
|
|
5437
5574
|
}
|
|
5438
|
-
.bp_notification_module_root--
|
|
5439
|
-
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) var(--outline-focus
|
|
5575
|
+
.bp_notification_module_root--bc071:focus-visible{
|
|
5576
|
+
box-shadow:0 0 0 var(--border-1, 1px) var(--background-background), 0 0 0 var(--border-3) var(--notification-outline-focus);
|
|
5440
5577
|
outline:none;
|
|
5441
5578
|
}
|
|
5442
|
-
.bp_notification_module_root--
|
|
5579
|
+
.bp_notification_module_root--bc071 .bp_notification_module_typeIconContainer--bc071{
|
|
5443
5580
|
align-items:center;
|
|
5444
5581
|
display:flex;
|
|
5445
|
-
height:var(--size
|
|
5582
|
+
height:var(--notification-icon-size);
|
|
5446
5583
|
justify-content:center;
|
|
5447
|
-
width:var(--size
|
|
5584
|
+
width:var(--notification-icon-size);
|
|
5448
5585
|
}
|
|
5449
|
-
.bp_notification_module_root--
|
|
5586
|
+
.bp_notification_module_root--bc071 .bp_notification_module_typeIconContainer--bc071 .bp_notification_module_typeIcon--bc071{
|
|
5450
5587
|
flex-shrink:0;
|
|
5451
|
-
margin-left:var(--
|
|
5588
|
+
margin-left:var(--notification-padding-horizontal);
|
|
5452
5589
|
}
|
|
5453
|
-
.bp_notification_module_root--
|
|
5590
|
+
.bp_notification_module_root--bc071 .bp_notification_module_text--bc071{
|
|
5454
5591
|
align-items:center;
|
|
5455
|
-
color:var(--
|
|
5592
|
+
color:var(--notification-text-color);
|
|
5456
5593
|
display:flex;
|
|
5457
5594
|
font-family:var(--body-default-bold-font-family);
|
|
5458
5595
|
font-size:var(--body-default-bold-font-size);
|
|
5459
5596
|
font-weight:var(--body-default-bold-font-weight);
|
|
5460
|
-
gap:var(--
|
|
5597
|
+
gap:var(--notification-item-spacing);
|
|
5461
5598
|
letter-spacing:var(--body-default-bold-letter-spacing);
|
|
5462
5599
|
line-height:var(--body-default-bold-line-height);
|
|
5600
|
+
min-height:var(--notification-text-container-height);
|
|
5463
5601
|
overflow:hidden;
|
|
5464
5602
|
-webkit-text-decoration:var(--body-default-bold-text-decoration);
|
|
5465
5603
|
text-decoration:var(--body-default-bold-text-decoration);
|
|
5466
5604
|
text-transform:var(--body-default-bold-text-case);
|
|
5467
5605
|
}
|
|
5468
|
-
.bp_notification_module_root--
|
|
5606
|
+
.bp_notification_module_root--bc071 .bp_notification_module_text--bc071 > div{
|
|
5469
5607
|
overflow:hidden;
|
|
5470
5608
|
overflow-wrap:break-word;
|
|
5471
5609
|
}
|
|
5472
|
-
.bp_notification_module_root--
|
|
5610
|
+
.bp_notification_module_root--bc071 .bp_notification_module_contentButtonSection--bc071{
|
|
5473
5611
|
display:flex;
|
|
5474
|
-
gap:var(--
|
|
5612
|
+
gap:var(--notification-item-spacing);
|
|
5475
5613
|
margin-left:0;
|
|
5476
5614
|
}
|
|
5477
5615
|
@media (width > 767px){
|
|
5478
|
-
.bp_notification_module_root--
|
|
5616
|
+
.bp_notification_module_root--bc071 .bp_notification_module_contentButtonSection--bc071{
|
|
5479
5617
|
margin-left:auto;
|
|
5480
5618
|
}
|
|
5481
5619
|
}
|
|
5482
|
-
.bp_notification_module_root--
|
|
5620
|
+
.bp_notification_module_root--bc071 .bp_notification_module_contentButtonSection--bc071 .bp_notification_module_contentButtons--bc071{
|
|
5483
5621
|
display:flex;
|
|
5484
|
-
gap:var(--
|
|
5622
|
+
gap:var(--notification-item-spacing);
|
|
5485
5623
|
}
|
|
5486
|
-
.bp_notification_module_root--
|
|
5624
|
+
.bp_notification_module_root--bc071 .bp_notification_module_closeButtonSection--bc071{
|
|
5487
5625
|
display:flex;
|
|
5488
|
-
gap:var(--
|
|
5626
|
+
gap:var(--notification-item-spacing);
|
|
5489
5627
|
margin-left:auto;
|
|
5490
|
-
margin-right:var(--
|
|
5628
|
+
margin-right:var(--notification-padding-horizontal);
|
|
5491
5629
|
}
|
|
5492
|
-
.bp_notification_module_root--
|
|
5630
|
+
.bp_notification_module_root--bc071 .bp_notification_module_closeButtonSection--bc071 .bp_notification_module_closeButton--bc071{
|
|
5493
5631
|
align-self:center;
|
|
5494
5632
|
}
|
|
5495
|
-
.bp_notification_module_root--
|
|
5633
|
+
.bp_notification_module_root--bc071 .bp_notification_module_closeButtonSection--bc071 .bp_notification_module_closeButton--bc071 svg *{
|
|
5496
5634
|
fill:currentColor;
|
|
5497
5635
|
}
|
|
5498
5636
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"viewport":"bp_notification_module_viewport--
|
|
2
|
+
var styles = {"viewport":"bp_notification_module_viewport--bc071","root":"bp_notification_module_root--bc071","info":"bp_notification_module_info--bc071","success":"bp_notification_module_success--bc071","warning":"bp_notification_module_warning--bc071","error":"bp_notification_module_error--bc071","container":"bp_notification_module_container--bc071","mobileContainer":"bp_notification_module_mobileContainer--bc071","withButtons":"bp_notification_module_withButtons--bc071","typeIconContainer":"bp_notification_module_typeIconContainer--bc071","typeIcon":"bp_notification_module_typeIcon--bc071","text":"bp_notification_module_text--bc071","contentButtonSection":"bp_notification_module_contentButtonSection--bc071","contentButtons":"bp_notification_module_contentButtons--bc071","closeButtonSection":"bp_notification_module_closeButtonSection--bc071","closeButton":"bp_notification_module_closeButton--bc071"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -5,6 +5,7 @@ import { Size5 } from '@box/blueprint-web-assets/tokens/tokens';
|
|
|
5
5
|
import * as Toast from '@radix-ui/react-toast';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { useMemo } from 'react';
|
|
8
|
+
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
8
9
|
import { IconButton } from '../icon-button/icon-button.js';
|
|
9
10
|
import styles from './notification.module.js';
|
|
10
11
|
|
|
@@ -56,9 +57,13 @@ function PrivateNotificationElement(props) {
|
|
|
56
57
|
...rest
|
|
57
58
|
} = props;
|
|
58
59
|
const iconComponent = useMemo(() => getIcon(typeIconAriaLabel, variant), [typeIconAriaLabel, variant]);
|
|
60
|
+
const {
|
|
61
|
+
enableModernizedComponents
|
|
62
|
+
} = useBlueprintModernization();
|
|
59
63
|
return jsx(Toast.Root, {
|
|
60
64
|
...rest,
|
|
61
65
|
className: clsx(styles.root, styles[variant]),
|
|
66
|
+
"data-modern": enableModernizedComponents,
|
|
62
67
|
onOpenChange: onClose,
|
|
63
68
|
open: open,
|
|
64
69
|
type: sensitivity,
|
|
@@ -3,6 +3,7 @@ import { BorderInputBorderHover, Border1, BorderInputBorderFocus, Border2, Borde
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { forwardRef, useRef, useState, useCallback, useEffect } from 'react';
|
|
5
5
|
import { flushSync } from 'react-dom';
|
|
6
|
+
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
6
7
|
import { LoadingIndicator } from '../../loading-indicator/loading-indicator.js';
|
|
7
8
|
import { debounce } from '../../utils/debounce.js';
|
|
8
9
|
import { ownerWindow } from '../../utils/ownerWindow.js';
|
|
@@ -62,6 +63,9 @@ const TextAreaAutosize = /*#__PURE__*/forwardRef(function TextAreaAutosize(props
|
|
|
62
63
|
onBlur,
|
|
63
64
|
...rest
|
|
64
65
|
} = props;
|
|
66
|
+
const {
|
|
67
|
+
enableModernizedComponents
|
|
68
|
+
} = useBlueprintModernization();
|
|
65
69
|
const {
|
|
66
70
|
current: isControlled
|
|
67
71
|
} = useRef(value != null);
|
|
@@ -274,6 +278,7 @@ const TextAreaAutosize = /*#__PURE__*/forwardRef(function TextAreaAutosize(props
|
|
|
274
278
|
const shouldCompensateScrollbar = !state.overflow && !isScrollbarVisible && (hasError || isLoading);
|
|
275
279
|
return jsxs("div", {
|
|
276
280
|
className: styles.border,
|
|
281
|
+
"data-modern": enableModernizedComponents,
|
|
277
282
|
onMouseEnter: handleHover,
|
|
278
283
|
onMouseLeave: handleOnMouseOut,
|
|
279
284
|
style: borderInlineStyle,
|
|
@@ -281,6 +286,7 @@ const TextAreaAutosize = /*#__PURE__*/forwardRef(function TextAreaAutosize(props
|
|
|
281
286
|
...rest,
|
|
282
287
|
ref: handleRef,
|
|
283
288
|
className: classNames,
|
|
289
|
+
"data-modern": enableModernizedComponents,
|
|
284
290
|
onBlur: handleBlur,
|
|
285
291
|
onChange: handleChange,
|
|
286
292
|
onFocus: handleFocus,
|
|
@@ -311,6 +317,7 @@ const TextAreaAutosize = /*#__PURE__*/forwardRef(function TextAreaAutosize(props
|
|
|
311
317
|
}), isLoading && jsx(LoadingIndicator, {
|
|
312
318
|
"aria-label": loadingAriaLabel,
|
|
313
319
|
className: styles.loadingIndicator,
|
|
320
|
+
"data-modern": enableModernizedComponents,
|
|
314
321
|
onClick: focusTextArea,
|
|
315
322
|
style: !state.overflow ? {
|
|
316
323
|
right: '0.75rem'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"textArea":"bp_text_area_autosize_module_textArea--
|
|
2
|
+
var styles = {"textArea":"bp_text_area_autosize_module_textArea--4fa6a","error":"bp_text_area_autosize_module_error--4fa6a","loading":"bp_text_area_autosize_module_loading--4fa6a","loadingIndicator":"bp_text_area_autosize_module_loadingIndicator--4fa6a","border":"bp_text_area_autosize_module_border--4fa6a"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
4
5
|
import { InlineError } from '../primitives/inline-error/inline-error.js';
|
|
6
|
+
import { useLabelable } from '../util-components/labelable/useLabelable.js';
|
|
5
7
|
import { useUniqueId } from '../utils/useUniqueId.js';
|
|
6
8
|
import { TextAreaAutosize } from './text-area-autosize/text-area-autosize.js';
|
|
7
9
|
import styles from './text-area.module.js';
|
|
8
|
-
import { useLabelable } from '../util-components/labelable/useLabelable.js';
|
|
9
10
|
|
|
10
11
|
const TextArea = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
11
12
|
const {
|
|
@@ -20,6 +21,9 @@ const TextArea = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
20
21
|
maxRows,
|
|
21
22
|
...rest
|
|
22
23
|
} = props;
|
|
24
|
+
const {
|
|
25
|
+
enableModernizedComponents
|
|
26
|
+
} = useBlueprintModernization();
|
|
23
27
|
const textAreaId = useUniqueId('text-area-');
|
|
24
28
|
const inlineErrorId = useUniqueId('inline-error-');
|
|
25
29
|
const hasError = !!error && !disabled;
|
|
@@ -32,6 +36,7 @@ const TextArea = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
32
36
|
[styles.disabled]: disabled,
|
|
33
37
|
[styles.error]: hasError
|
|
34
38
|
}, className),
|
|
39
|
+
"data-modern": enableModernizedComponents,
|
|
35
40
|
children: [jsx(Label, {
|
|
36
41
|
className: clsx([styles.label], {
|
|
37
42
|
[styles.hidden]: hideLabel
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"textAreaContainer":"bp_text_area_module_textAreaContainer--
|
|
2
|
+
var styles = {"textAreaContainer":"bp_text_area_module_textAreaContainer--bf753","label":"bp_text_area_module_label--bf753","hidden":"bp_text_area_module_hidden--bf753","disabled":"bp_text_area_module_disabled--bf753","inlineError":"bp_text_area_module_inlineError--bf753"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|