bootstrap-rn 0.2.14 → 0.3.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/bootstrap-rn.cjs.js +320 -503
- package/dist/bootstrap-rn.esm.js +320 -503
- package/dist/bootstrap-rn.umd.js +324 -506
- package/dist/bootstrap-rn.umd.min.js +3 -3
- package/package.json +3 -3
package/dist/bootstrap-rn.esm.js
CHANGED
|
@@ -6,7 +6,6 @@ import React, { useState, useEffect, useMemo, useRef, useContext, createContext
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import invariant from 'tiny-invariant';
|
|
8
8
|
import { useFocusRing } from '@react-native-aria/focus';
|
|
9
|
-
import { SvgXml } from 'react-native-svg';
|
|
10
9
|
|
|
11
10
|
const checkFunction = (char, silent) => {
|
|
12
11
|
if (typeof char !== 'function') {
|
|
@@ -1260,27 +1259,26 @@ const NEGATIVE_SPACERS = each(SPACERS, (key, value) => {
|
|
|
1260
1259
|
|
|
1261
1260
|
const utilities = {
|
|
1262
1261
|
align: {
|
|
1263
|
-
property: '
|
|
1262
|
+
property: 'vertical-align',
|
|
1264
1263
|
class: 'align',
|
|
1265
1264
|
values: {
|
|
1266
1265
|
// baseline: 'baseline',
|
|
1267
1266
|
top: 'top',
|
|
1268
|
-
|
|
1269
|
-
// 'middle',
|
|
1267
|
+
middle: 'middle',
|
|
1270
1268
|
bottom: 'bottom'
|
|
1271
1269
|
// 'text-bottom': 'text-bottom',
|
|
1272
1270
|
// 'text-top': 'text-top',
|
|
1273
1271
|
}
|
|
1274
1272
|
},
|
|
1275
1273
|
|
|
1276
|
-
/* float: {
|
|
1277
|
-
responsive: true,
|
|
1278
|
-
property: 'float',
|
|
1279
|
-
values: {
|
|
1280
|
-
start: 'left',
|
|
1281
|
-
end: 'right',
|
|
1282
|
-
none: 'none',
|
|
1283
|
-
},
|
|
1274
|
+
/* float: {
|
|
1275
|
+
responsive: true,
|
|
1276
|
+
property: 'float',
|
|
1277
|
+
values: {
|
|
1278
|
+
start: 'left',
|
|
1279
|
+
end: 'right',
|
|
1280
|
+
none: 'none',
|
|
1281
|
+
},
|
|
1284
1282
|
}, */
|
|
1285
1283
|
// Opacity utilities
|
|
1286
1284
|
opacity: {
|
|
@@ -1359,14 +1357,14 @@ const utilities = {
|
|
|
1359
1357
|
class: 'end',
|
|
1360
1358
|
values: POSITION_VALUES
|
|
1361
1359
|
},
|
|
1362
|
-
/* translateMiddle: {
|
|
1363
|
-
property: 'transform',
|
|
1364
|
-
class: 'translate-middle',
|
|
1365
|
-
values: {
|
|
1366
|
-
null: translate(-50%, -50%),
|
|
1367
|
-
x: translateX(-50%),
|
|
1368
|
-
y: translateY(-50%),
|
|
1369
|
-
},
|
|
1360
|
+
/* translateMiddle: {
|
|
1361
|
+
property: 'transform',
|
|
1362
|
+
class: 'translate-middle',
|
|
1363
|
+
values: {
|
|
1364
|
+
null: translate(-50%, -50%),
|
|
1365
|
+
x: translateX(-50%),
|
|
1366
|
+
y: translateY(-50%),
|
|
1367
|
+
},
|
|
1370
1368
|
}, */
|
|
1371
1369
|
border: {
|
|
1372
1370
|
property: 'border',
|
|
@@ -1376,35 +1374,35 @@ const utilities = {
|
|
|
1376
1374
|
}
|
|
1377
1375
|
},
|
|
1378
1376
|
// TODO: Find a way to write border-top as border-top-width, ...
|
|
1379
|
-
/* borderTop: {
|
|
1380
|
-
property: 'border-top',
|
|
1381
|
-
values: {
|
|
1382
|
-
null: (t) => `${t['border-width']} solid ${t['border-color']}`,
|
|
1383
|
-
0: '0',
|
|
1384
|
-
},
|
|
1377
|
+
/* borderTop: {
|
|
1378
|
+
property: 'border-top',
|
|
1379
|
+
values: {
|
|
1380
|
+
null: (t) => `${t['border-width']} solid ${t['border-color']}`,
|
|
1381
|
+
0: '0',
|
|
1382
|
+
},
|
|
1385
1383
|
}, */
|
|
1386
|
-
/* borderRight: {
|
|
1387
|
-
property: 'border-right',
|
|
1388
|
-
class: 'border-end',
|
|
1389
|
-
values: {
|
|
1390
|
-
null: (t) => `${t['border-width']} solid ${t['border-color']}`,
|
|
1391
|
-
0: '0',
|
|
1392
|
-
},
|
|
1384
|
+
/* borderRight: {
|
|
1385
|
+
property: 'border-right',
|
|
1386
|
+
class: 'border-end',
|
|
1387
|
+
values: {
|
|
1388
|
+
null: (t) => `${t['border-width']} solid ${t['border-color']}`,
|
|
1389
|
+
0: '0',
|
|
1390
|
+
},
|
|
1393
1391
|
}, */
|
|
1394
|
-
/* borderBottom: {
|
|
1395
|
-
property: 'border-bottom',
|
|
1396
|
-
values: {
|
|
1397
|
-
null: (t) => `${t['border-width']} solid ${t['border-color']}`,
|
|
1398
|
-
0: '0',
|
|
1399
|
-
},
|
|
1392
|
+
/* borderBottom: {
|
|
1393
|
+
property: 'border-bottom',
|
|
1394
|
+
values: {
|
|
1395
|
+
null: (t) => `${t['border-width']} solid ${t['border-color']}`,
|
|
1396
|
+
0: '0',
|
|
1397
|
+
},
|
|
1400
1398
|
}, */
|
|
1401
|
-
/* borderLeft: {
|
|
1402
|
-
property: 'border-left',
|
|
1403
|
-
class: 'border-start',
|
|
1404
|
-
values: {
|
|
1405
|
-
null: (t) => `${t['border-width']} solid ${t['border-color']}`,
|
|
1406
|
-
0: '0',
|
|
1407
|
-
},
|
|
1399
|
+
/* borderLeft: {
|
|
1400
|
+
property: 'border-left',
|
|
1401
|
+
class: 'border-start',
|
|
1402
|
+
values: {
|
|
1403
|
+
null: (t) => `${t['border-width']} solid ${t['border-color']}`,
|
|
1404
|
+
0: '0',
|
|
1405
|
+
},
|
|
1408
1406
|
}, */
|
|
1409
1407
|
borderColor: {
|
|
1410
1408
|
property: 'border-color',
|
|
@@ -1533,11 +1531,11 @@ const utilities = {
|
|
|
1533
1531
|
'wrap-reverse': 'wrap-reverse'
|
|
1534
1532
|
}
|
|
1535
1533
|
},
|
|
1536
|
-
/* gap: {
|
|
1537
|
-
responsive: true,
|
|
1538
|
-
property: 'gap',
|
|
1539
|
-
class: 'gap',
|
|
1540
|
-
values: SPACERS,
|
|
1534
|
+
/* gap: {
|
|
1535
|
+
responsive: true,
|
|
1536
|
+
property: 'gap',
|
|
1537
|
+
class: 'gap',
|
|
1538
|
+
values: SPACERS,
|
|
1541
1539
|
}, */
|
|
1542
1540
|
justifyContent: {
|
|
1543
1541
|
responsive: true,
|
|
@@ -1587,19 +1585,19 @@ const utilities = {
|
|
|
1587
1585
|
stretch: 'stretch'
|
|
1588
1586
|
}
|
|
1589
1587
|
},
|
|
1590
|
-
/* order: {
|
|
1591
|
-
responsive: true,
|
|
1592
|
-
property: 'order',
|
|
1593
|
-
values: {
|
|
1594
|
-
first: '-1',
|
|
1595
|
-
0: '0',
|
|
1596
|
-
1: '1',
|
|
1597
|
-
2: '2',
|
|
1598
|
-
3: '3',
|
|
1599
|
-
4: '4',
|
|
1600
|
-
5: '5',
|
|
1601
|
-
last: '6',
|
|
1602
|
-
},
|
|
1588
|
+
/* order: {
|
|
1589
|
+
responsive: true,
|
|
1590
|
+
property: 'order',
|
|
1591
|
+
values: {
|
|
1592
|
+
first: '-1',
|
|
1593
|
+
0: '0',
|
|
1594
|
+
1: '1',
|
|
1595
|
+
2: '2',
|
|
1596
|
+
3: '3',
|
|
1597
|
+
4: '4',
|
|
1598
|
+
5: '5',
|
|
1599
|
+
last: '6',
|
|
1600
|
+
},
|
|
1603
1601
|
}, */
|
|
1604
1602
|
// Margin utilities
|
|
1605
1603
|
margin: {
|
|
@@ -1817,21 +1815,21 @@ const utilities = {
|
|
|
1817
1815
|
capitalize: 'capitalize'
|
|
1818
1816
|
}
|
|
1819
1817
|
},
|
|
1820
|
-
/* whiteSpace: {
|
|
1821
|
-
property: 'white-space',
|
|
1822
|
-
class: 'text',
|
|
1823
|
-
values: {
|
|
1824
|
-
wrap: 'normal',
|
|
1825
|
-
nowrap: 'nowrap',
|
|
1826
|
-
},
|
|
1818
|
+
/* whiteSpace: {
|
|
1819
|
+
property: 'white-space',
|
|
1820
|
+
class: 'text',
|
|
1821
|
+
values: {
|
|
1822
|
+
wrap: 'normal',
|
|
1823
|
+
nowrap: 'nowrap',
|
|
1824
|
+
},
|
|
1827
1825
|
}, */
|
|
1828
|
-
/* wordWrap: {
|
|
1829
|
-
property: ['word-wrap', 'word-break'],
|
|
1830
|
-
class: 'text',
|
|
1831
|
-
values: {
|
|
1832
|
-
break: 'break-word',
|
|
1833
|
-
},
|
|
1834
|
-
rtl: false,
|
|
1826
|
+
/* wordWrap: {
|
|
1827
|
+
property: ['word-wrap', 'word-break'],
|
|
1828
|
+
class: 'text',
|
|
1829
|
+
values: {
|
|
1830
|
+
break: 'break-word',
|
|
1831
|
+
},
|
|
1832
|
+
rtl: false,
|
|
1835
1833
|
}, */
|
|
1836
1834
|
color: {
|
|
1837
1835
|
property: 'color',
|
|
@@ -1874,28 +1872,28 @@ const utilities = {
|
|
|
1874
1872
|
100: '1'
|
|
1875
1873
|
}
|
|
1876
1874
|
},
|
|
1877
|
-
/* gradient: {
|
|
1878
|
-
property: 'background-image',
|
|
1879
|
-
class: 'bg',
|
|
1880
|
-
values: {
|
|
1881
|
-
gradient: 'var(--#{$variable-prefix}gradient))',
|
|
1882
|
-
},
|
|
1875
|
+
/* gradient: {
|
|
1876
|
+
property: 'background-image',
|
|
1877
|
+
class: 'bg',
|
|
1878
|
+
values: {
|
|
1879
|
+
gradient: 'var(--#{$variable-prefix}gradient))',
|
|
1880
|
+
},
|
|
1883
1881
|
}, */
|
|
1884
|
-
/* userSelect: {
|
|
1885
|
-
property: 'user-select',
|
|
1886
|
-
values: {
|
|
1887
|
-
all: 'all',
|
|
1888
|
-
auto: 'auto',
|
|
1889
|
-
none: 'none',
|
|
1890
|
-
},
|
|
1882
|
+
/* userSelect: {
|
|
1883
|
+
property: 'user-select',
|
|
1884
|
+
values: {
|
|
1885
|
+
all: 'all',
|
|
1886
|
+
auto: 'auto',
|
|
1887
|
+
none: 'none',
|
|
1888
|
+
},
|
|
1891
1889
|
}, */
|
|
1892
|
-
/* pointerEvents: {
|
|
1893
|
-
property: 'pointer-events',
|
|
1894
|
-
class: 'pe',
|
|
1895
|
-
values: {
|
|
1896
|
-
none: 'none',
|
|
1897
|
-
auto: 'auto',
|
|
1898
|
-
},
|
|
1890
|
+
/* pointerEvents: {
|
|
1891
|
+
property: 'pointer-events',
|
|
1892
|
+
class: 'pe',
|
|
1893
|
+
values: {
|
|
1894
|
+
none: 'none',
|
|
1895
|
+
auto: 'auto',
|
|
1896
|
+
},
|
|
1899
1897
|
}, */
|
|
1900
1898
|
rounded: {
|
|
1901
1899
|
property: 'border-radius',
|
|
@@ -1912,41 +1910,41 @@ const utilities = {
|
|
|
1912
1910
|
}
|
|
1913
1911
|
}
|
|
1914
1912
|
// TODO: Support multiple properties for rounded-* utilities.
|
|
1915
|
-
/* roundedTop: {
|
|
1916
|
-
property: ['border-top-left-radius', 'border-top-right-radius'],
|
|
1917
|
-
class: 'rounded-top',
|
|
1918
|
-
values: {
|
|
1919
|
-
null: (t) => t['border-radius'],
|
|
1920
|
-
},
|
|
1913
|
+
/* roundedTop: {
|
|
1914
|
+
property: ['border-top-left-radius', 'border-top-right-radius'],
|
|
1915
|
+
class: 'rounded-top',
|
|
1916
|
+
values: {
|
|
1917
|
+
null: (t) => t['border-radius'],
|
|
1918
|
+
},
|
|
1921
1919
|
}, */
|
|
1922
|
-
/* roundedEnd: {
|
|
1923
|
-
property: ['border-top-right-radius', 'border-bottom-right-radius'],
|
|
1924
|
-
class: 'rounded-end',
|
|
1925
|
-
values: {
|
|
1926
|
-
null: (t) => t['border-radius'],
|
|
1927
|
-
},
|
|
1920
|
+
/* roundedEnd: {
|
|
1921
|
+
property: ['border-top-right-radius', 'border-bottom-right-radius'],
|
|
1922
|
+
class: 'rounded-end',
|
|
1923
|
+
values: {
|
|
1924
|
+
null: (t) => t['border-radius'],
|
|
1925
|
+
},
|
|
1928
1926
|
}, */
|
|
1929
|
-
/* roundedBottom: {
|
|
1930
|
-
property: ['border-bottom-right-radius', 'border-bottom-left-radius'],
|
|
1931
|
-
class: 'rounded-bottom',
|
|
1932
|
-
values: {
|
|
1933
|
-
null: (t) => t['border-radius'],
|
|
1934
|
-
},
|
|
1927
|
+
/* roundedBottom: {
|
|
1928
|
+
property: ['border-bottom-right-radius', 'border-bottom-left-radius'],
|
|
1929
|
+
class: 'rounded-bottom',
|
|
1930
|
+
values: {
|
|
1931
|
+
null: (t) => t['border-radius'],
|
|
1932
|
+
},
|
|
1935
1933
|
}, */
|
|
1936
|
-
/* roundedStart: {
|
|
1937
|
-
property: ['border-bottom-left-radius', 'border-top-left-radius'],
|
|
1938
|
-
class: 'rounded-start',
|
|
1939
|
-
values: {
|
|
1940
|
-
null: (t) => t['border-radius'],
|
|
1941
|
-
},
|
|
1934
|
+
/* roundedStart: {
|
|
1935
|
+
property: ['border-bottom-left-radius', 'border-top-left-radius'],
|
|
1936
|
+
class: 'rounded-start',
|
|
1937
|
+
values: {
|
|
1938
|
+
null: (t) => t['border-radius'],
|
|
1939
|
+
},
|
|
1942
1940
|
}, */
|
|
1943
|
-
/* visibility: {
|
|
1944
|
-
property: 'visibility',
|
|
1945
|
-
class: 'null',
|
|
1946
|
-
values: {
|
|
1947
|
-
visible: 'visible',
|
|
1948
|
-
invisible: 'hidden',
|
|
1949
|
-
},
|
|
1941
|
+
/* visibility: {
|
|
1942
|
+
property: 'visibility',
|
|
1943
|
+
class: 'null',
|
|
1944
|
+
values: {
|
|
1945
|
+
visible: 'visible',
|
|
1946
|
+
invisible: 'hidden',
|
|
1947
|
+
},
|
|
1950
1948
|
}, */
|
|
1951
1949
|
};
|
|
1952
1950
|
|
|
@@ -2119,7 +2117,7 @@ const divide = fn(_ref8 => {
|
|
|
2119
2117
|
|
|
2120
2118
|
var _templateObject$1e;
|
|
2121
2119
|
const url = val => t => "url(\"".concat(val.replace(/#{\$(.*?)}/g, (_, key) => t[key]), "\")");
|
|
2122
|
-
const variables = css(_templateObject$1e || (_templateObject$1e = _taggedTemplateLiteral(["\n // Color system\n\n $white: #fff;\n $gray-100: #f8f9fa;\n $gray-200: #e9ecef;\n $gray-300: #dee2e6;\n $gray-400: #ced4da;\n $gray-500: #adb5bd;\n $gray-600: #6c757d;\n $gray-700: #495057;\n $gray-800: #343a40;\n $gray-900: #212529;\n $black: #000;\n\n $grays: ", ";\n\n $blue: #0d6efd;\n $indigo: #6610f2;\n $purple: #6f42c1;\n $pink: #d63384;\n $red: #dc3545;\n $orange: #fd7e14;\n $yellow: #ffc107;\n $green: #198754;\n $teal: #20c997;\n $cyan: #0dcaf0;\n\n $colors: ", ";\n\n $primary: $blue;\n $secondary: $gray-600;\n $success: $green;\n $info: $cyan;\n $warning: $yellow;\n $danger: $red;\n $light: $gray-100;\n $dark: $gray-900;\n\n $theme-colors: ", ";\n\n // The contrast ratio to reach against white, to determine if color changes from \"light\" to \"dark\". Acceptable values for WCAG 2.0 are 3, 4.5 and 7.\n // See https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast\n $min-contrast-ratio: 4.5;\n\n // Customize the light and dark text colors for use in our color contrast function.\n $color-contrast-dark: $black;\n $color-contrast-light: $white;\n\n $blue-100: tint-color($blue, 80%);\n $blue-200: tint-color($blue, 60%);\n $blue-300: tint-color($blue, 40%);\n $blue-400: tint-color($blue, 20%);\n $blue-500: $blue;\n $blue-600: shade-color($blue, 20%);\n $blue-700: shade-color($blue, 40%);\n $blue-800: shade-color($blue, 60%);\n $blue-900: shade-color($blue, 80%);\n\n $indigo-100: tint-color($indigo, 80%);\n $indigo-200: tint-color($indigo, 60%);\n $indigo-300: tint-color($indigo, 40%);\n $indigo-400: tint-color($indigo, 20%);\n $indigo-500: $indigo;\n $indigo-600: shade-color($indigo, 20%);\n $indigo-700: shade-color($indigo, 40%);\n $indigo-800: shade-color($indigo, 60%);\n $indigo-900: shade-color($indigo, 80%);\n\n $purple-100: tint-color($purple, 80%);\n $purple-200: tint-color($purple, 60%);\n $purple-300: tint-color($purple, 40%);\n $purple-400: tint-color($purple, 20%);\n $purple-500: $purple;\n $purple-600: shade-color($purple, 20%);\n $purple-700: shade-color($purple, 40%);\n $purple-800: shade-color($purple, 60%);\n $purple-900: shade-color($purple, 80%);\n\n $pink-100: tint-color($pink, 80%);\n $pink-200: tint-color($pink, 60%);\n $pink-300: tint-color($pink, 40%);\n $pink-400: tint-color($pink, 20%);\n $pink-500: $pink;\n $pink-600: shade-color($pink, 20%);\n $pink-700: shade-color($pink, 40%);\n $pink-800: shade-color($pink, 60%);\n $pink-900: shade-color($pink, 80%);\n\n $red-100: tint-color($red, 80%);\n $red-200: tint-color($red, 60%);\n $red-300: tint-color($red, 40%);\n $red-400: tint-color($red, 20%);\n $red-500: $red;\n $red-600: shade-color($red, 20%);\n $red-700: shade-color($red, 40%);\n $red-800: shade-color($red, 60%);\n $red-900: shade-color($red, 80%);\n\n $orange-100: tint-color($orange, 80%);\n $orange-200: tint-color($orange, 60%);\n $orange-300: tint-color($orange, 40%);\n $orange-400: tint-color($orange, 20%);\n $orange-500: $orange;\n $orange-600: shade-color($orange, 20%);\n $orange-700: shade-color($orange, 40%);\n $orange-800: shade-color($orange, 60%);\n $orange-900: shade-color($orange, 80%);\n\n $yellow-100: tint-color($yellow, 80%);\n $yellow-200: tint-color($yellow, 60%);\n $yellow-300: tint-color($yellow, 40%);\n $yellow-400: tint-color($yellow, 20%);\n $yellow-500: $yellow;\n $yellow-600: shade-color($yellow, 20%);\n $yellow-700: shade-color($yellow, 40%);\n $yellow-800: shade-color($yellow, 60%);\n $yellow-900: shade-color($yellow, 80%);\n\n $green-100: tint-color($green, 80%);\n $green-200: tint-color($green, 60%);\n $green-300: tint-color($green, 40%);\n $green-400: tint-color($green, 20%);\n $green-500: $green;\n $green-600: shade-color($green, 20%);\n $green-700: shade-color($green, 40%);\n $green-800: shade-color($green, 60%);\n $green-900: shade-color($green, 80%);\n\n $teal-100: tint-color($teal, 80%);\n $teal-200: tint-color($teal, 60%);\n $teal-300: tint-color($teal, 40%);\n $teal-400: tint-color($teal, 20%);\n $teal-500: $teal;\n $teal-600: shade-color($teal, 20%);\n $teal-700: shade-color($teal, 40%);\n $teal-800: shade-color($teal, 60%);\n $teal-900: shade-color($teal, 80%);\n\n $cyan-100: tint-color($cyan, 80%);\n $cyan-200: tint-color($cyan, 60%);\n $cyan-300: tint-color($cyan, 40%);\n $cyan-400: tint-color($cyan, 20%);\n $cyan-500: $cyan;\n $cyan-600: shade-color($cyan, 20%);\n $cyan-700: shade-color($cyan, 40%);\n $cyan-800: shade-color($cyan, 60%);\n $cyan-900: shade-color($cyan, 80%);\n\n $blues: ", ";\n\n $indigos: ", ";\n\n $purples: ", ";\n\n $pinks: ", ";\n\n $reds: ", ";\n\n $oranges: ", ";\n\n $yellows: ", ";\n\n $greens: ", ";\n\n $teals: ", ";\n\n $cyans: ", ";\n\n // Characters which are escaped by the escape-svg function\n // $escaped characters\n\n // Options\n //\n // Quickly modify global styling by enabling or disabling optional features.\n\n // NOTE: Handled by JavaScript.\n\n // Gradient\n //\n // The gradient which is added to components if \"$enable-gradients\" is \"true\"\n // This gradient is also added to elements with \".bg-gradient\"\n $gradient: linear-gradient(180deg, rgba($white, 0.15), rgba($white, 0));\n\n // Spacing\n //\n // Control the default styling of most Bootstrap elements by modifying these\n // variables. Mostly focused on spacing.\n // You can add more entries to the $spacers map, should you need more variation.\n\n $spacer: 1rem;\n $spacers: ", ";\n\n // Position\n //\n // Define the edge positioning anchors of the position utilities.\n\n $position-values: ", ";\n\n // Placeholder\n\n $placeholder-opacity-max: 0.5;\n $placeholder-opacity-min: 0.2;\n\n // Body\n //\n // Settings for the \"<body>\" element.\n\n $body-bg: $white;\n $body-color: $gray-900;\n $body-text-align: null;\n\n // Links\n //\n // Style anchor elements.\n\n $link-color: $primary;\n $link-decoration: underline;\n $link-shade-percentage: 20%;\n $link-hover-color: ", ";\n $link-hover-decoration: null;\n\n $stretched-link-pseudo-element: after;\n $stretched-link-z-index: 1;\n\n // Paragraphs\n //\n // Style p element.\n\n $paragraph-margin-bottom: 1rem;\n\n // Grid breakpoints\n //\n // Define the minimum dimensions at which your layout will change,\n // adapting to different screen sizes, for use in media queries.\n\n $grid-breakpoints: ", ";\n\n // Grid containers\n //\n // Define the maximum width of \".container\" for different screen sizes.\n\n $container-max-widths: ", ";\n\n // Grid columns\n //\n // Set the number of columns and specify the width of the gutters.\n\n // $grid-columns: 12;\n $grid-gutter-width: 1.5rem;\n // $grid-row-columns: 6;\n\n // Container padding\n\n $container-padding-x: $grid-gutter-width * 0.5;\n\n // Components\n //\n // Define common padding and border radius sizes and more.\n\n $border-width: 1px;\n $border-widths: ", ";\n\n $border-color: $gray-300;\n\n $border-radius: 0.25rem;\n $border-radius-sm: 0.2rem;\n $border-radius-lg: 0.3rem;\n $border-radius-pill: 50rem;\n\n $box-shadow: 0 0.5rem 1rem rgba($black, 0.15);\n $box-shadow-sm: 0 0.125rem 0.25rem rgba($black, 0.075);\n $box-shadow-lg: 0 1rem 3rem rgba($black, 0.175);\n $box-shadow-inset: inset 0 1px 2px rgba($black, 0.075);\n\n $component-active-color: $white;\n $component-active-bg: $primary;\n\n $caret-width: 1rem * 0.3; // 0.3em;\n $caret-vertical-align: $caret-width * 0.85;\n $caret-spacing: $caret-width * 0.85;\n\n $transition-base: all 0.2s ease-in-out;\n $transition-fade: opacity 0.15s linear;\n $transition-collapse: height 0.35s ease;\n $transition-collapse-width: width 0.35s ease;\n\n $aspect-ratios: ", ";\n\n // Typography\n //\n // Font, line-height, and color for body text, headings, and more.\n\n $font-family-sans-serif: ", ";\n $font-family-monospace: ", ";\n $font-family-base: $font-family-sans-serif;\n $font-family-code: $font-family-monospace;\n\n // $font-size-root affects the value of \"rem\", which is used for as well font sizes, paddings, and margins\n // $font-size-base affects the font size of the body text\n $font-size-root: null;\n $font-size-base: 1rem; // Assumes the browser default, typically \"16px\"\n $font-size-sm: $font-size-base * 0.875;\n $font-size-lg: $font-size-base * 1.25;\n\n $font-weight-lighter: 300; // lighter;\n $font-weight-light: 300;\n $font-weight-normal: 400;\n $font-weight-bold: 700;\n $font-weight-bolder: 500; // bolder;\n\n $font-weight-base: $font-weight-normal;\n\n $line-height-base: 1.5;\n $line-height-sm: 1.25;\n $line-height-lg: 2;\n\n $h1-font-size: $font-size-base * 2.5;\n $h2-font-size: $font-size-base * 2;\n $h3-font-size: $font-size-base * 1.75;\n $h4-font-size: $font-size-base * 1.5;\n $h5-font-size: $font-size-base * 1.25;\n $h6-font-size: $font-size-base;\n\n $font-sizes: ", ";\n\n $headings-margin-bottom: $spacer * 0.5;\n $headings-font-family: null;\n $headings-font-style: null;\n $headings-font-weight: 500;\n $headings-line-height: 1.2;\n $headings-color: null;\n\n $display-font-sizes: ", ";\n\n $display-font-weight: 300;\n $display-line-height: $headings-line-height;\n\n $lead-font-size: $font-size-base * 1.25;\n $lead-font-weight: 300;\n\n $small-font-size: $font-size-base * 0.875; // 0.875em;\n\n $sub-sup-font-size: $font-size-base * 0.75; // 0.75em;\n\n $text-muted: $gray-600;\n\n $initialism-font-size: $small-font-size;\n\n $blockquote-margin-y: $spacer;\n $blockquote-font-size: $font-size-base * 1.25;\n $blockquote-footer-color: $gray-600;\n $blockquote-footer-font-size: $small-font-size;\n\n $hr-margin-y: $spacer;\n $hr-color: inherit;\n $hr-bg-color: currentColor;\n $hr-border-width: 0;\n $hr-height: $border-width;\n $hr-opacity: 0.25;\n\n $legend-margin-bottom: 0.5rem;\n $legend-font-size: 1.5rem;\n $legend-font-weight: null;\n\n $mark-padding: $font-size-base * 0.2; // 0.2em;\n\n $dt-font-weight: $font-weight-bold;\n\n $nested-kbd-font-weight: $font-weight-bold;\n\n $list-inline-padding: 0.5rem;\n\n $mark-bg: #fcf8e3;\n\n // ...\n\n // Buttons + Forms\n //\n // Shared variables that are reassigned to \"$input-\" and \"$btn-\" specific variables.\n\n $input-btn-padding-y: 0.375rem;\n $input-btn-padding-x: 0.75rem;\n $input-btn-font-family: null;\n $input-btn-font-size: $font-size-base;\n $input-btn-line-height: $line-height-base;\n\n $input-btn-focus-width: 0.25rem;\n $input-btn-focus-color-opacity: 0.25;\n $input-btn-focus-color: rgba(\n $component-active-bg,\n $input-btn-focus-color-opacity\n );\n $input-btn-focus-blur: 0;\n $input-btn-focus-box-shadow: 0 0 $input-btn-focus-blur $input-btn-focus-width\n $input-btn-focus-color;\n\n $input-btn-padding-y-sm: 0.25rem;\n $input-btn-padding-x-sm: 0.5rem;\n $input-btn-font-size-sm: $font-size-sm;\n\n $input-btn-padding-y-lg: 0.5rem;\n $input-btn-padding-x-lg: 1rem;\n $input-btn-font-size-lg: $font-size-lg;\n\n $input-btn-border-width: $border-width;\n\n // Buttons\n //\n // For each of Bootstrap's buttons, define text, background, and border color.\n\n $btn-padding-y: $input-btn-padding-y;\n $btn-padding-x: $input-btn-padding-x;\n $btn-font-family: $input-btn-font-family;\n $btn-font-size: $input-btn-font-size;\n $btn-line-height: $input-btn-line-height;\n $btn-white-space: null; // Set to \"nowrap\" to prevent text wrapping\n\n $btn-padding-y-sm: $input-btn-padding-y-sm;\n $btn-padding-x-sm: $input-btn-padding-x-sm;\n $btn-font-size-sm: $input-btn-font-size-sm;\n\n $btn-padding-y-lg: $input-btn-padding-y-lg;\n $btn-padding-x-lg: $input-btn-padding-x-lg;\n $btn-font-size-lg: $input-btn-font-size-lg;\n\n $btn-border-width: $input-btn-border-width;\n\n $btn-font-weight: $font-weight-normal;\n $btn-box-shadow: inset 0 1px 0 rgba($white, 0.15),\n 0 1px 1px rgba($black, 0.075);\n $btn-focus-width: $input-btn-focus-width;\n $btn-focus-box-shadow: $input-btn-focus-box-shadow;\n $btn-disabled-opacity: 0.65;\n $btn-active-box-shadow: inset 0 3px 5px rgba($black, 0.125);\n\n $btn-link-color: $link-color;\n $btn-link-hover-color: $link-hover-color;\n $btn-link-disabled-color: $gray-600;\n\n // Allows for customizing button radius independently from global border radius\n $btn-border-radius: $border-radius;\n $btn-border-radius-sm: $border-radius-sm;\n $btn-border-radius-lg: $border-radius-lg;\n\n $btn-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,\n border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n\n $btn-hover-bg-shade-amount: 15%;\n $btn-hover-bg-tint-amount: 15%;\n $btn-hover-border-shade-amount: 20%;\n $btn-hover-border-tint-amount: 10%;\n $btn-active-bg-shade-amount: 20%;\n $btn-active-bg-tint-amount: 20%;\n $btn-active-border-shade-amount: 25%;\n $btn-active-border-tint-amount: 10%;\n\n // Breadcrumb\n\n $breadcrumb-font-size: $font-size-base; // null;\n $breadcrumb-padding-y: 0;\n $breadcrumb-padding-x: 0;\n $breadcrumb-item-padding-x: 0.5rem;\n $breadcrumb-margin-bottom: 1rem;\n $breadcrumb-bg: null;\n $breadcrumb-divider-color: $gray-600;\n $breadcrumb-active-color: $gray-600;\n $breadcrumb-divider: ", "; // quote('/');\n $breadcrumb-divider-flipped: $breadcrumb-divider;\n $breadcrumb-border-radius: null;\n\n // Forms\n\n $form-text-margin-top: 0.25rem;\n $form-text-font-size: $small-font-size;\n $form-text-font-style: null;\n $form-text-font-weight: null;\n $form-text-color: $text-muted;\n\n $form-label-margin-bottom: 0.5rem;\n $form-label-font-size: $font-size-base; // null;\n $form-label-font-style: null;\n $form-label-font-weight: null;\n $form-label-color: null;\n\n $input-padding-y: $input-btn-padding-y;\n $input-padding-x: $input-btn-padding-x;\n $input-font-family: $input-btn-font-family;\n $input-font-size: $input-btn-font-size;\n $input-font-weight: $font-weight-base;\n $input-line-height: $input-btn-line-height;\n\n $input-padding-y-sm: $input-btn-padding-y-sm;\n $input-padding-x-sm: $input-btn-padding-x-sm;\n $input-font-size-sm: $input-btn-font-size-sm;\n\n $input-padding-y-lg: $input-btn-padding-y-lg;\n $input-padding-x-lg: $input-btn-padding-x-lg;\n $input-font-size-lg: $input-btn-font-size-lg;\n\n $input-bg: $body-bg;\n $input-disabled-bg: $gray-200;\n $input-disabled-border-color: null;\n\n $input-color: $body-color;\n $input-border-color: $gray-400;\n $input-border-width: $input-btn-border-width;\n $input-box-shadow: $box-shadow-inset;\n\n $input-border-radius: $border-radius;\n $input-border-radius-sm: $border-radius-sm;\n $input-border-radius-lg: $border-radius-lg;\n\n $input-focus-bg: $input-bg;\n $input-focus-border-color: ", ";\n $input-focus-color: $input-color;\n $input-focus-width: $input-btn-focus-width;\n $input-focus-box-shadow: $input-btn-focus-box-shadow;\n\n $input-placeholder-color: $gray-600;\n $input-plaintext-color: $body-color;\n\n $input-height-border: $input-border-width * 2;\n\n $input-height-inner: ", ";\n $input-height-inner-half: ", ";\n $input-height-inner-quarter: ", ";\n\n $input-height: ", ";\n $input-height-sm: ", ";\n $input-height-lg: ", ";\n\n $input-transition: border-color 0.15s ease-in-out,\n box-shadow 0.15s ease-in-out;\n\n $form-color-width: 3rem;\n\n $form-check-input-width: $font-size-base * 1; // 1em;\n $form-check-min-height: $font-size-base * $line-height-base;\n $form-check-padding-start: $form-check-input-width + 0.5rem; // 0.5em;\n $form-check-margin-bottom: 0.125rem;\n $form-check-label-color: null;\n $form-check-label-cursor: null;\n $form-check-transition: null;\n\n $form-check-input-active-filter: brightness(90%);\n\n $form-check-input-bg: $input-bg;\n $form-check-input-border: 1px solid rgba($black, 0.25);\n $form-check-input-border-radius: $font-size-base * 0.25; // 0.25em;\n $form-check-radio-border-radius: 50%;\n $form-check-input-focus-border: $input-focus-border-color;\n $form-check-input-focus-box-shadow: $input-btn-focus-box-shadow;\n\n $form-check-input-checked-color: $component-active-color;\n $form-check-input-checked-bg-color: $component-active-bg;\n $form-check-input-checked-border-color: $form-check-input-checked-bg-color;\n $form-check-input-checked-bg-image: ", ";\n $form-check-radio-checked-bg-image: ", ";\n\n $form-check-input-indeterminate-color: $component-active-color;\n $form-check-input-indeterminate-bg-color: $component-active-bg;\n $form-check-input-indeterminate-border-color: $form-check-input-indeterminate-bg-color;\n $form-check-input-indeterminate-bg-image: ", ";\n\n $form-check-input-disabled-opacity: 0.5;\n $form-check-label-disabled-opacity: $form-check-input-disabled-opacity;\n $form-check-btn-check-disabled-opacity: $btn-disabled-opacity;\n\n $form-check-inline-margin-end: 1rem;\n\n $form-switch-color: rgba($black, 0.25);\n $form-switch-width: 2rem;\n $form-switch-padding-start: $form-switch-width + 0.5rem;\n $form-switch-bg-image: ", ";\n $form-switch-border-radius: $form-switch-width;\n $form-switch-transition: background-position 0.15s ease-in-out;\n\n $form-switch-focus-color: $input-focus-border-color;\n $form-switch-focus-bg-image: ", ";\n\n $form-switch-checked-color: $component-active-color;\n $form-switch-checked-bg-image: ", ";\n $form-switch-checked-bg-position: right center;\n\n $input-group-addon-padding-y: $input-padding-y;\n $input-group-addon-padding-x: $input-padding-x;\n $input-group-addon-font-weight: $input-font-weight;\n $input-group-addon-color: $input-color;\n $input-group-addon-bg: $gray-200;\n $input-group-addon-border-color: $input-border-color;\n\n $form-select-padding-y: $input-padding-y;\n $form-select-padding-x: $input-padding-x;\n $form-select-font-family: $input-font-family;\n $form-select-font-size: $input-font-size;\n $form-select-indicator-padding: $form-select-padding-x * 3; // Extra padding for background-image\n $form-select-font-weight: $input-font-weight;\n $form-select-line-height: $input-line-height;\n $form-select-color: $input-color;\n $form-select-bg: $input-bg;\n $form-select-disabled-color: null;\n $form-select-disabled-bg: $gray-200;\n $form-select-disabled-border-color: $input-disabled-border-color;\n $form-select-bg-position: right $form-select-padding-x center;\n $form-select-bg-size: 16px 12px; // In pixels because image dimensions\n $form-select-indicator-color: $gray-800;\n $form-select-indicator: ", ";\n\n $form-select-feedback-icon-padding-end: $form-select-padding-x * 2.5 +\n $form-select-indicator-padding;\n $form-select-feedback-icon-position: center right\n $form-select-indicator-padding;\n $form-select-feedback-icon-size: $input-height-inner-half\n $input-height-inner-half;\n\n $form-select-border-width: $input-border-width;\n $form-select-border-color: $input-border-color;\n $form-select-border-radius: $input-border-radius;\n $form-select-box-shadow: $box-shadow-inset;\n\n $form-select-focus-border-color: $input-focus-border-color;\n $form-select-focus-width: $input-focus-width;\n $form-select-focus-box-shadow: 0 0 0 $form-select-focus-width\n $input-btn-focus-color;\n\n $form-select-padding-y-sm: $input-padding-y-sm;\n $form-select-padding-x-sm: $input-padding-x-sm;\n $form-select-font-size-sm: $input-font-size-sm;\n $form-select-border-radius-sm: $input-border-radius-sm;\n\n $form-select-padding-y-lg: $input-padding-y-lg;\n $form-select-padding-x-lg: $input-padding-x-lg;\n $form-select-font-size-lg: $input-font-size-lg;\n $form-select-border-radius-lg: $input-border-radius-lg;\n\n $form-select-transition: $input-transition;\n\n $form-range-track-width: 100%;\n $form-range-track-height: 0.5rem;\n $form-range-track-cursor: pointer;\n $form-range-track-bg: $gray-300;\n $form-range-track-border-radius: 1rem;\n $form-range-track-box-shadow: $box-shadow-inset;\n\n $form-range-thumb-width: 1rem;\n $form-range-thumb-height: $form-range-thumb-width;\n $form-range-thumb-bg: $component-active-bg;\n $form-range-thumb-border: 0;\n $form-range-thumb-border-radius: 1rem;\n $form-range-thumb-box-shadow: 0 0.1rem 0.25rem rgba($black, 0.1);\n $form-range-thumb-focus-box-shadow: 0 0 0 1px $body-bg,\n $input-focus-box-shadow;\n $form-range-thumb-focus-box-shadow-width: $input-focus-width; // For focus box shadow issue in Edge\n $form-range-thumb-active-bg: tint-color($component-active-bg, 70%);\n $form-range-thumb-disabled-bg: $gray-500;\n $form-range-thumb-transition: background-color 0.15s ease-in-out,\n border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n\n $form-file-button-color: $input-color;\n $form-file-button-bg: $input-group-addon-bg;\n $form-file-button-hover-bg: shade-color($form-file-button-bg, 5%);\n\n $form-floating-height: ", ";\n $form-floating-line-height: 1.25;\n $form-floating-padding-x: $input-padding-x;\n $form-floating-padding-y: 1rem;\n $form-floating-input-padding-t: 1.625rem;\n $form-floating-input-padding-b: 0.625rem;\n $form-floating-label-opacity: 0.65;\n $form-floating-label-transform: scale(0.85) translateY(-0.5rem)\n translateX(0.15rem);\n $form-floating-transition: opacity 0.1s ease-in-out,\n transform 0.1s ease-in-out;\n\n // Form validation\n\n $form-feedback-margin-top: $form-text-margin-top;\n $form-feedback-font-size: $form-text-font-size;\n $form-feedback-font-style: $form-text-font-style;\n $form-feedback-valid-color: $success;\n $form-feedback-invalid-color: $danger;\n\n $form-feedback-icon-valid-color: $form-feedback-valid-color;\n $form-feedback-icon-valid: ", ";\n $form-feedback-icon-invalid-color: $form-feedback-invalid-color;\n $form-feedback-icon-invalid: ", ";\n\n $form-validation-states: ", ";\n\n // Z-index master list\n //\n // Warning: Avoid customizing these values. They're used for a bird's eye view\n // of components dependent on the z-axis and are designed to all work together.\n\n $zindex-dropdown: 1000;\n $zindex-sticky: 1020;\n $zindex-fixed: 1030;\n $zindex-offcanvas-backdrop: 1040;\n $zindex-offcanvas: 1045;\n $zindex-modal-backdrop: 1050;\n $zindex-modal: 1055;\n $zindex-popover: 1070;\n $zindex-tooltip: 1080;\n\n // Navs\n\n $nav-link-padding-y: 0.5rem;\n $nav-link-padding-x: 1rem;\n $nav-link-font-size: null;\n $nav-link-font-weight: null;\n $nav-link-color: $link-color;\n $nav-link-hover-color: $link-hover-color;\n $nav-link-transition: color 0.15s ease-in-out,\n background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;\n $nav-link-disabled-color: $gray-600;\n\n $nav-tabs-border-color: $gray-300;\n $nav-tabs-border-width: $border-width;\n $nav-tabs-border-radius: $border-radius;\n $nav-tabs-link-hover-border-color: $gray-200 $gray-200 $nav-tabs-border-color;\n $nav-tabs-link-active-color: $gray-700;\n $nav-tabs-link-active-bg: $body-bg;\n $nav-tabs-link-active-border-color: $gray-300 $gray-300\n $nav-tabs-link-active-bg;\n\n $nav-pills-border-radius: $border-radius;\n $nav-pills-link-active-color: $component-active-color;\n $nav-pills-link-active-bg: $component-active-bg;\n\n // Navbar\n\n $navbar-padding-y: $spacer * 0.5;\n $navbar-padding-x: null;\n\n $navbar-nav-link-padding-x: 0.5rem;\n\n $navbar-brand-font-size: $font-size-lg;\n\n $nav-link-height: $font-size-base * $line-height-base + $nav-link-padding-y *\n 2;\n $navbar-brand-height: $navbar-brand-font-size * $line-height-base;\n $navbar-brand-padding-y-intermediate-result: $nav-link-height -\n $navbar-brand-height;\n $navbar-brand-padding-y: $navbar-brand-padding-y-intermediate-result * 0.5;\n $navbar-brand-margin-end: 1rem;\n\n $navbar-toggler-padding-y: 0.25rem;\n $navbar-toggler-padding-x: 0.75rem;\n $navbar-toggler-font-size: $font-size-lg;\n $navbar-toggler-border-radius: $btn-border-radius;\n $navbar-toggler-focus-width: $btn-focus-width;\n $navbar-toggler-transition: box-shadow 0.15s ease-in-out;\n\n $navbar-dark-color: rgba($white, 0.55);\n $navbar-dark-hover-color: rgba($white, 0.75);\n $navbar-dark-active-color: $white;\n $navbar-dark-disabled-color: rgba($white, 0.25);\n $navbar-dark-toggler-icon-bg: ", ";\n $navbar-dark-toggler-border-color: rgba($white, 0.1);\n\n $navbar-light-color: rgba($black, 0.55);\n $navbar-light-hover-color: rgba($black, 0.7);\n $navbar-light-active-color: rgba($black, 0.9);\n $navbar-light-disabled-color: rgba($black, 0.3);\n $navbar-light-toggler-icon-bg: ", ";\n $navbar-light-toggler-border-color: rgba($black, 0.1);\n\n $navbar-light-brand-color: $navbar-light-active-color;\n $navbar-light-brand-hover-color: $navbar-light-active-color;\n $navbar-dark-brand-color: $navbar-dark-active-color;\n $navbar-dark-brand-hover-color: $navbar-dark-active-color;\n\n // Dropdowns\n //\n // Dropdown menu container and contents.\n\n $dropdown-min-width: 10rem;\n $dropdown-padding-x: 0;\n $dropdown-padding-y: 0.5rem;\n $dropdown-spacer: 0.125rem;\n $dropdown-font-size: $font-size-base;\n $dropdown-color: $body-color;\n $dropdown-bg: $white;\n $dropdown-border-color: rgba($black, 0.15);\n $dropdown-border-radius: $border-radius;\n $dropdown-border-width: $border-width;\n $dropdown-inner-border-radius: ", ";\n $dropdown-divider-bg: $dropdown-border-color;\n $dropdown-divider-margin-y: $spacer * 0.5;\n $dropdown-box-shadow: $box-shadow;\n\n $dropdown-link-color: $gray-900;\n\n $dropdown-link-hover-color: ", ";\n $dropdown-link-hover-bg: $gray-200;\n\n $dropdown-link-active-color: $component-active-color;\n $dropdown-link-active-bg: $component-active-bg;\n\n $dropdown-link-disabled-color: $gray-500;\n\n $dropdown-item-padding-y: $spacer * 0.25;\n $dropdown-item-padding-x: $spacer;\n\n $dropdown-header-color: $gray-600;\n $dropdown-header-padding: $dropdown-padding-y $dropdown-item-padding-x;\n\n $dropdown-dark-color: $gray-300;\n $dropdown-dark-bg: $gray-800;\n $dropdown-dark-border-color: $dropdown-border-color;\n $dropdown-dark-divider-bg: $dropdown-divider-bg;\n $dropdown-dark-box-shadow: null;\n $dropdown-dark-link-color: $dropdown-dark-color;\n $dropdown-dark-link-hover-color: $white;\n $dropdown-dark-link-hover-bg: rgba($white, 0.15);\n $dropdown-dark-link-active-color: $dropdown-link-active-color;\n $dropdown-dark-link-active-bg: $dropdown-link-active-bg;\n $dropdown-dark-link-disabled-color: $gray-500;\n $dropdown-dark-header-color: $gray-500;\n\n // ...\n\n // Cards\n\n $card-spacer-y: $spacer;\n $card-spacer-x: $spacer;\n $card-title-spacer-y: $spacer * 0.5;\n $card-border-width: $border-width;\n $card-border-color: rgba($black, 0.125);\n $card-border-radius: $border-radius;\n $card-box-shadow: null;\n $card-inner-border-radius: ", ";\n $card-cap-padding-y: $card-spacer-y * 0.5;\n $card-cap-padding-x: $card-spacer-x;\n $card-cap-bg: rgba($black, 0.03);\n $card-cap-color: null;\n $card-height: null;\n $card-color: null;\n $card-bg: $white;\n $card-img-overlay-padding: $spacer;\n $card-group-margin: $grid-gutter-width * 0.5;\n\n // ...\n\n // Tooltips\n\n $tooltip-font-size: $font-size-sm;\n $tooltip-max-width: 200px;\n $tooltip-color: $white;\n $tooltip-bg: $black;\n $tooltip-border-radius: $border-radius;\n $tooltip-opacity: 0.9;\n $tooltip-padding-y: $spacer * 0.25;\n $tooltip-padding-x: $spacer * 0.5;\n $tooltip-margin: 0;\n\n $tooltip-arrow-width: 0.8rem;\n $tooltip-arrow-height: 0.4rem;\n $tooltip-arrow-color: $tooltip-bg;\n\n // Popovers\n\n $popover-font-size: $font-size-sm;\n $popover-bg: $white;\n $popover-max-width: 276px;\n $popover-border-width: $border-width;\n $popover-border-color: rgba($black, 0.2);\n $popover-border-radius: $border-radius-lg;\n $popover-inner-border-radius: ", ";\n $popover-box-shadow: $box-shadow;\n\n $popover-header-bg: ", ";\n $popover-header-color: $headings-color;\n $popover-header-padding-y: 0.5rem;\n $popover-header-padding-x: $spacer;\n\n $popover-body-color: $body-color;\n $popover-body-padding-y: $spacer;\n $popover-body-padding-x: $spacer;\n\n $popover-arrow-width: 1rem;\n $popover-arrow-height: 0.5rem;\n $popover-arrow-color: $popover-bg;\n\n $popover-arrow-outer-color: $popover-border-color;\n\n // Toasts\n\n $toast-max-width: 350px;\n $toast-padding-x: 0.75rem;\n $toast-padding-y: 0.5rem;\n $toast-font-size: 0.875rem;\n $toast-color: null;\n $toast-background-color: rgba($white, 0.85);\n $toast-border-width: 1px;\n $toast-border-color: rgba($black, 0.1);\n $toast-border-radius: $border-radius;\n $toast-box-shadow: $box-shadow;\n $toast-spacing: $container-padding-x;\n\n $toast-header-color: $gray-600;\n $toast-header-background-color: rgba($white, 0.85);\n $toast-header-border-color: rgba($black, 0.05);\n\n // Badges\n\n $badge-font-size: $font-size-base * 0.75; // 0.75em;\n $badge-font-weight: $font-weight-bold;\n $badge-color: $white;\n $badge-padding-y: $badge-font-size * 0.35; // 0.35em;\n $badge-padding-x: $badge-font-size * 0.65; // 0.65em;\n $badge-border-radius: $border-radius;\n\n // Modals\n\n $modal-inner-padding: $spacer;\n\n $modal-footer-margin-between: 0.5rem;\n\n $modal-dialog-margin: 0.5rem;\n $modal-dialog-margin-y-sm-up: 1.75rem;\n\n $modal-title-line-height: $line-height-base;\n\n $modal-content-color: null;\n $modal-content-bg: $white;\n $modal-content-border-color: rgba($black, 0.65); // rgba($black, 0.2);\n $modal-content-border-width: $border-width;\n $modal-content-border-radius: $border-radius-lg;\n $modal-content-inner-border-radius: ", ";\n $modal-content-box-shadow-xs: $box-shadow-sm;\n $modal-content-box-shadow-sm-up: $box-shadow;\n\n $modal-backdrop-bg: $black;\n $modal-backdrop-opacity: 0.5;\n $modal-header-border-color: $border-color;\n $modal-footer-border-color: $modal-header-border-color;\n $modal-header-border-width: $modal-content-border-width;\n $modal-footer-border-width: $modal-header-border-width;\n $modal-header-padding-y: $modal-inner-padding;\n $modal-header-padding-x: $modal-inner-padding;\n $modal-header-padding: $modal-header-padding-y $modal-header-padding-x; // Keep this for backwards compatibility\n\n $modal-sm: 300px;\n $modal-md: 500px;\n $modal-lg: 800px;\n $modal-xl: 1140px;\n\n $modal-fade-transform: translate(0, -50px);\n $modal-show-transform: none;\n $modal-transition: transform 0.3s ease-out;\n $modal-scale-transform: scale(1.02);\n\n // ...\n\n // Alerts\n //\n // Define alert colors, border radius, and padding.\n\n $alert-padding-y: $spacer;\n $alert-padding-x: $spacer;\n $alert-margin-bottom: 1rem;\n $alert-border-radius: $border-radius;\n $alert-link-font-weight: $font-weight-bold;\n $alert-border-width: $border-width;\n $alert-bg-scale: -80%;\n $alert-border-scale: -70%;\n $alert-color-scale: 40%;\n $alert-dismissible-padding-r: $alert-padding-x * 3; // 3x covers width of x plus default padding on either side\n\n // Pagination\n\n $pagination-padding-y: 0.375rem;\n $pagination-padding-x: 0.75rem;\n $pagination-padding-y-sm: 0.25rem;\n $pagination-padding-x-sm: 0.5rem;\n $pagination-padding-y-lg: 0.75rem;\n $pagination-padding-x-lg: 1.5rem;\n\n $pagination-color: $link-color;\n $pagination-bg: $white;\n $pagination-border-width: $border-width;\n $pagination-border-radius: $border-radius;\n $pagination-margin-start: -$pagination-border-width;\n $pagination-border-color: $gray-300;\n\n $pagination-focus-color: $link-hover-color;\n $pagination-focus-bg: $gray-200;\n $pagination-focus-box-shadow: $input-btn-focus-box-shadow;\n $pagination-focus-outline: 0;\n\n $pagination-hover-color: $link-hover-color;\n $pagination-hover-bg: $gray-200;\n $pagination-hover-border-color: $gray-300;\n\n $pagination-active-color: $component-active-color;\n $pagination-active-bg: $component-active-bg;\n $pagination-active-border-color: $pagination-active-bg;\n\n $pagination-disabled-color: $gray-600;\n $pagination-disabled-bg: $white;\n $pagination-disabled-border-color: $gray-300;\n\n $pagination-transition: color 0.15s ease-in-out,\n background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,\n box-shadow 0.15s ease-in-out;\n\n $pagination-border-radius-sm: $border-radius-sm;\n $pagination-border-radius-lg: $border-radius-lg;\n\n // Progress bars\n\n $progress-height: 1rem;\n $progress-font-size: $font-size-base * 0.75;\n $progress-bg: $gray-200;\n $progress-border-radius: $border-radius;\n $progress-box-shadow: $box-shadow-inset;\n $progress-bar-color: $white;\n $progress-bar-bg: $primary;\n $progress-bar-animation-timing: 1s linear infinite;\n $progress-bar-transition: width 0.6s ease;\n\n // List group\n\n $list-group-color: $gray-900;\n $list-group-bg: $white;\n $list-group-border-color: rgba($black, 0.125);\n $list-group-border-width: $border-width;\n $list-group-border-radius: $border-radius;\n\n $list-group-item-padding-y: $spacer * 0.5;\n $list-group-item-padding-x: $spacer;\n $list-group-item-bg-scale: -80%;\n $list-group-item-color-scale: 40%;\n\n $list-group-hover-bg: $gray-100;\n $list-group-active-color: $component-active-color;\n $list-group-active-bg: $component-active-bg;\n $list-group-active-border-color: $list-group-active-bg;\n\n $list-group-disabled-color: $gray-600;\n $list-group-disabled-bg: $list-group-bg;\n\n $list-group-action-color: $gray-700;\n $list-group-action-hover-color: $list-group-action-color;\n\n $list-group-action-active-color: $body-color;\n $list-group-action-active-bg: $gray-200;\n\n // ...\n\n // Spinners\n\n $spinner-width: 2rem;\n $spinner-height: $spinner-width;\n $spinner-vertical-align: $font-size-base * -0.125; // -.125em;\n $spinner-border-width: $font-size-base * 0.25; // .25em;\n $spinner-animation-speed: 0.75s;\n\n $spinner-width-sm: 1rem;\n $spinner-height-sm: $spinner-width-sm;\n $spinner-border-width-sm: $font-size-base * 0.2; // .2em;\n\n // Close\n\n $btn-close-width: $font-size-base * 1; // 1em;\n $btn-close-height: $btn-close-width;\n $btn-close-padding-x: $font-size-base * 0.25; // .25em;\n $btn-close-padding-y: $btn-close-padding-x;\n $btn-close-color: $black;\n $btn-close-bg: ", ";\n $btn-close-focus-shadow: $input-btn-focus-box-shadow;\n $btn-close-opacity: 0.5;\n $btn-close-hover-opacity: 0.75;\n $btn-close-focus-opacity: 1;\n $btn-close-disabled-opacity: 0.25;\n // $btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);\n\n // Offcanvas\n\n $offcanvas-padding-y: $modal-inner-padding;\n $offcanvas-padding-x: $modal-inner-padding;\n $offcanvas-horizontal-width: 400px;\n $offcanvas-vertical-height: 200px; // 30vh;\n $offcanvas-transition-duration: 0.3s;\n $offcanvas-border-color: $modal-content-border-color;\n $offcanvas-border-width: $modal-content-border-width;\n $offcanvas-title-line-height: $modal-title-line-height;\n $offcanvas-bg-color: $modal-content-bg;\n $offcanvas-color: $modal-content-color;\n $offcanvas-box-shadow: $modal-content-box-shadow-xs;\n $offcanvas-backdrop-bg: $modal-backdrop-bg;\n $offcanvas-backdrop-opacity: $modal-backdrop-opacity;\n\n // Code\n\n $code-font-size: $small-font-size;\n $code-color: $pink;\n\n $kbd-padding-y: 0.2rem;\n $kbd-padding-x: 0.4rem;\n $kbd-font-size: $code-font-size;\n $kbd-color: $white;\n $kbd-bg: $gray-900;\n\n $pre-color: null;\n"])), t => ({
|
|
2120
|
+
const variables = css(_templateObject$1e || (_templateObject$1e = _taggedTemplateLiteral(["\n // Color system\n\n $white: #fff;\n $gray-100: #f8f9fa;\n $gray-200: #e9ecef;\n $gray-300: #dee2e6;\n $gray-400: #ced4da;\n $gray-500: #adb5bd;\n $gray-600: #6c757d;\n $gray-700: #495057;\n $gray-800: #343a40;\n $gray-900: #212529;\n $black: #000;\n\n $grays: ", ";\n\n $blue: #0d6efd;\n $indigo: #6610f2;\n $purple: #6f42c1;\n $pink: #d63384;\n $red: #dc3545;\n $orange: #fd7e14;\n $yellow: #ffc107;\n $green: #198754;\n $teal: #20c997;\n $cyan: #0dcaf0;\n\n $colors: ", ";\n\n $primary: $blue;\n $secondary: $gray-600;\n $success: $green;\n $info: $cyan;\n $warning: $yellow;\n $danger: $red;\n $light: $gray-100;\n $dark: $gray-900;\n\n $theme-colors: ", ";\n\n // The contrast ratio to reach against white, to determine if color changes from \"light\" to \"dark\". Acceptable values for WCAG 2.0 are 3, 4.5 and 7.\n // See https://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast\n $min-contrast-ratio: 4.5;\n\n // Customize the light and dark text colors for use in our color contrast function.\n $color-contrast-dark: $black;\n $color-contrast-light: $white;\n\n $blue-100: tint-color($blue, 80%);\n $blue-200: tint-color($blue, 60%);\n $blue-300: tint-color($blue, 40%);\n $blue-400: tint-color($blue, 20%);\n $blue-500: $blue;\n $blue-600: shade-color($blue, 20%);\n $blue-700: shade-color($blue, 40%);\n $blue-800: shade-color($blue, 60%);\n $blue-900: shade-color($blue, 80%);\n\n $indigo-100: tint-color($indigo, 80%);\n $indigo-200: tint-color($indigo, 60%);\n $indigo-300: tint-color($indigo, 40%);\n $indigo-400: tint-color($indigo, 20%);\n $indigo-500: $indigo;\n $indigo-600: shade-color($indigo, 20%);\n $indigo-700: shade-color($indigo, 40%);\n $indigo-800: shade-color($indigo, 60%);\n $indigo-900: shade-color($indigo, 80%);\n\n $purple-100: tint-color($purple, 80%);\n $purple-200: tint-color($purple, 60%);\n $purple-300: tint-color($purple, 40%);\n $purple-400: tint-color($purple, 20%);\n $purple-500: $purple;\n $purple-600: shade-color($purple, 20%);\n $purple-700: shade-color($purple, 40%);\n $purple-800: shade-color($purple, 60%);\n $purple-900: shade-color($purple, 80%);\n\n $pink-100: tint-color($pink, 80%);\n $pink-200: tint-color($pink, 60%);\n $pink-300: tint-color($pink, 40%);\n $pink-400: tint-color($pink, 20%);\n $pink-500: $pink;\n $pink-600: shade-color($pink, 20%);\n $pink-700: shade-color($pink, 40%);\n $pink-800: shade-color($pink, 60%);\n $pink-900: shade-color($pink, 80%);\n\n $red-100: tint-color($red, 80%);\n $red-200: tint-color($red, 60%);\n $red-300: tint-color($red, 40%);\n $red-400: tint-color($red, 20%);\n $red-500: $red;\n $red-600: shade-color($red, 20%);\n $red-700: shade-color($red, 40%);\n $red-800: shade-color($red, 60%);\n $red-900: shade-color($red, 80%);\n\n $orange-100: tint-color($orange, 80%);\n $orange-200: tint-color($orange, 60%);\n $orange-300: tint-color($orange, 40%);\n $orange-400: tint-color($orange, 20%);\n $orange-500: $orange;\n $orange-600: shade-color($orange, 20%);\n $orange-700: shade-color($orange, 40%);\n $orange-800: shade-color($orange, 60%);\n $orange-900: shade-color($orange, 80%);\n\n $yellow-100: tint-color($yellow, 80%);\n $yellow-200: tint-color($yellow, 60%);\n $yellow-300: tint-color($yellow, 40%);\n $yellow-400: tint-color($yellow, 20%);\n $yellow-500: $yellow;\n $yellow-600: shade-color($yellow, 20%);\n $yellow-700: shade-color($yellow, 40%);\n $yellow-800: shade-color($yellow, 60%);\n $yellow-900: shade-color($yellow, 80%);\n\n $green-100: tint-color($green, 80%);\n $green-200: tint-color($green, 60%);\n $green-300: tint-color($green, 40%);\n $green-400: tint-color($green, 20%);\n $green-500: $green;\n $green-600: shade-color($green, 20%);\n $green-700: shade-color($green, 40%);\n $green-800: shade-color($green, 60%);\n $green-900: shade-color($green, 80%);\n\n $teal-100: tint-color($teal, 80%);\n $teal-200: tint-color($teal, 60%);\n $teal-300: tint-color($teal, 40%);\n $teal-400: tint-color($teal, 20%);\n $teal-500: $teal;\n $teal-600: shade-color($teal, 20%);\n $teal-700: shade-color($teal, 40%);\n $teal-800: shade-color($teal, 60%);\n $teal-900: shade-color($teal, 80%);\n\n $cyan-100: tint-color($cyan, 80%);\n $cyan-200: tint-color($cyan, 60%);\n $cyan-300: tint-color($cyan, 40%);\n $cyan-400: tint-color($cyan, 20%);\n $cyan-500: $cyan;\n $cyan-600: shade-color($cyan, 20%);\n $cyan-700: shade-color($cyan, 40%);\n $cyan-800: shade-color($cyan, 60%);\n $cyan-900: shade-color($cyan, 80%);\n\n $blues: ", ";\n\n $indigos: ", ";\n\n $purples: ", ";\n\n $pinks: ", ";\n\n $reds: ", ";\n\n $oranges: ", ";\n\n $yellows: ", ";\n\n $greens: ", ";\n\n $teals: ", ";\n\n $cyans: ", ";\n\n // Characters which are escaped by the escape-svg function\n // $escaped characters\n\n // Options\n //\n // Quickly modify global styling by enabling or disabling optional features.\n\n // NOTE: Handled by JavaScript.\n\n // Gradient\n //\n // The gradient which is added to components if \"$enable-gradients\" is \"true\"\n // This gradient is also added to elements with \".bg-gradient\"\n $gradient: linear-gradient(180deg, rgba($white, 0.15), rgba($white, 0));\n\n // Spacing\n //\n // Control the default styling of most Bootstrap elements by modifying these\n // variables. Mostly focused on spacing.\n // You can add more entries to the $spacers map, should you need more variation.\n\n $spacer: 1rem;\n $spacers: ", ";\n\n // Position\n //\n // Define the edge positioning anchors of the position utilities.\n\n $position-values: ", ";\n\n // Placeholder\n\n $placeholder-opacity-max: 0.5;\n $placeholder-opacity-min: 0.2;\n\n // Body\n //\n // Settings for the \"<body>\" element.\n\n $body-bg: $white;\n $body-color: $gray-900;\n $body-text-align: null;\n\n // Links\n //\n // Style anchor elements.\n\n $link-color: $primary;\n $link-decoration: underline;\n $link-shade-percentage: 20%;\n $link-hover-color: ", ";\n $link-hover-decoration: null;\n\n $stretched-link-pseudo-element: after;\n $stretched-link-z-index: 1;\n\n // Paragraphs\n //\n // Style p element.\n\n $paragraph-margin-bottom: 1rem;\n\n // Grid breakpoints\n //\n // Define the minimum dimensions at which your layout will change,\n // adapting to different screen sizes, for use in media queries.\n\n $grid-breakpoints: ", ";\n\n // Grid containers\n //\n // Define the maximum width of \".container\" for different screen sizes.\n\n $container-max-widths: ", ";\n\n // Grid columns\n //\n // Set the number of columns and specify the width of the gutters.\n\n // $grid-columns: 12;\n $grid-gutter-width: 1.5rem;\n // $grid-row-columns: 6;\n\n // Container padding\n\n $container-padding-x: $grid-gutter-width * 0.5;\n\n // Components\n //\n // Define common padding and border radius sizes and more.\n\n $border-width: 1px;\n $border-widths: ", ";\n\n $border-color: $gray-300;\n\n $border-radius: 0.25rem;\n $border-radius-sm: 0.2rem;\n $border-radius-lg: 0.3rem;\n $border-radius-pill: 50rem;\n\n $box-shadow: 0 0.5rem 1rem rgba($black, 0.15);\n $box-shadow-sm: 0 0.125rem 0.25rem rgba($black, 0.075);\n $box-shadow-lg: 0 1rem 3rem rgba($black, 0.175);\n $box-shadow-inset: inset 0 1px 2px rgba($black, 0.075);\n\n $component-active-color: $white;\n $component-active-bg: $primary;\n\n $caret-width: 1rem * 0.3; // 0.3em;\n $caret-vertical-align: $caret-width * 0.85;\n $caret-spacing: $caret-width * 0.85;\n\n $transition-base: all 0.2s ease-in-out;\n $transition-fade: opacity 0.15s linear;\n $transition-collapse: height 0.35s ease;\n $transition-collapse-width: width 0.35s ease;\n\n $aspect-ratios: ", ";\n\n // Typography\n //\n // Font, line-height, and color for body text, headings, and more.\n\n $font-family-sans-serif: ", ";\n $font-family-monospace: ", ";\n $font-family-base: $font-family-sans-serif;\n $font-family-code: $font-family-monospace;\n\n // $font-size-root affects the value of \"rem\", which is used for as well font sizes, paddings, and margins\n // $font-size-base affects the font size of the body text\n $font-size-root: null;\n $font-size-base: 1rem; // Assumes the browser default, typically \"16px\"\n $font-size-sm: $font-size-base * 0.875;\n $font-size-lg: $font-size-base * 1.25;\n\n $font-weight-lighter: 300; // lighter;\n $font-weight-light: 300;\n $font-weight-normal: 400;\n $font-weight-bold: 700;\n $font-weight-bolder: 500; // bolder;\n\n $font-weight-base: $font-weight-normal;\n\n $line-height-base: 1.5;\n $line-height-sm: 1.25;\n $line-height-lg: 2;\n\n $h1-font-size: $font-size-base * 2.5;\n $h2-font-size: $font-size-base * 2;\n $h3-font-size: $font-size-base * 1.75;\n $h4-font-size: $font-size-base * 1.5;\n $h5-font-size: $font-size-base * 1.25;\n $h6-font-size: $font-size-base;\n\n $font-sizes: ", ";\n\n $headings-margin-bottom: $spacer * 0.5;\n $headings-font-family: null;\n $headings-font-style: null;\n $headings-font-weight: 500;\n $headings-line-height: 1.2;\n $headings-color: null;\n\n $display-font-sizes: ", ";\n\n $display-font-weight: 300;\n $display-line-height: $headings-line-height;\n\n $lead-font-size: $font-size-base * 1.25;\n $lead-font-weight: 300;\n\n $small-font-size: $font-size-base * 0.875; // 0.875em;\n\n $sub-sup-font-size: $font-size-base * 0.75; // 0.75em;\n\n $text-muted: $gray-600;\n\n $initialism-font-size: $small-font-size;\n\n $blockquote-margin-y: $spacer;\n $blockquote-font-size: $font-size-base * 1.25;\n $blockquote-footer-color: $gray-600;\n $blockquote-footer-font-size: $small-font-size;\n\n $hr-margin-y: $spacer;\n $hr-color: inherit;\n $hr-bg-color: currentColor;\n $hr-border-width: 0;\n $hr-height: $border-width;\n $hr-opacity: 0.25;\n\n $legend-margin-bottom: 0.5rem;\n $legend-font-size: 1.5rem;\n $legend-font-weight: null;\n\n $mark-padding: $font-size-base * 0.2; // 0.2em;\n\n $dt-font-weight: $font-weight-bold;\n\n $nested-kbd-font-weight: $font-weight-bold;\n\n $list-inline-padding: 0.5rem;\n\n $mark-bg: #fcf8e3;\n\n // ...\n\n // Buttons + Forms\n //\n // Shared variables that are reassigned to \"$input-\" and \"$btn-\" specific variables.\n\n $input-btn-padding-y: 0.375rem;\n $input-btn-padding-x: 0.75rem;\n $input-btn-font-family: null;\n $input-btn-font-size: $font-size-base;\n $input-btn-line-height: $line-height-base;\n\n $input-btn-focus-width: 0.25rem;\n $input-btn-focus-color-opacity: 0.25;\n $input-btn-focus-color: rgba(\n $component-active-bg,\n $input-btn-focus-color-opacity\n );\n $input-btn-focus-blur: 0;\n $input-btn-focus-box-shadow: 0 0 $input-btn-focus-blur $input-btn-focus-width\n $input-btn-focus-color;\n\n $input-btn-padding-y-sm: 0.25rem;\n $input-btn-padding-x-sm: 0.5rem;\n $input-btn-font-size-sm: $font-size-sm;\n\n $input-btn-padding-y-lg: 0.5rem;\n $input-btn-padding-x-lg: 1rem;\n $input-btn-font-size-lg: $font-size-lg;\n\n $input-btn-border-width: $border-width;\n\n // Buttons\n //\n // For each of Bootstrap's buttons, define text, background, and border color.\n\n $btn-padding-y: $input-btn-padding-y;\n $btn-padding-x: $input-btn-padding-x;\n $btn-font-family: $input-btn-font-family;\n $btn-font-size: $input-btn-font-size;\n $btn-line-height: $input-btn-line-height;\n $btn-white-space: null; // Set to \"nowrap\" to prevent text wrapping\n\n $btn-padding-y-sm: $input-btn-padding-y-sm;\n $btn-padding-x-sm: $input-btn-padding-x-sm;\n $btn-font-size-sm: $input-btn-font-size-sm;\n\n $btn-padding-y-lg: $input-btn-padding-y-lg;\n $btn-padding-x-lg: $input-btn-padding-x-lg;\n $btn-font-size-lg: $input-btn-font-size-lg;\n\n $btn-border-width: $input-btn-border-width;\n\n $btn-font-weight: $font-weight-normal;\n $btn-box-shadow: inset 0 1px 0 rgba($white, 0.15),\n 0 1px 1px rgba($black, 0.075);\n $btn-focus-width: $input-btn-focus-width;\n $btn-focus-box-shadow: $input-btn-focus-box-shadow;\n $btn-disabled-opacity: 0.65;\n $btn-active-box-shadow: inset 0 3px 5px rgba($black, 0.125);\n\n $btn-link-color: $link-color;\n $btn-link-hover-color: $link-hover-color;\n $btn-link-disabled-color: $gray-600;\n\n // Allows for customizing button radius independently from global border radius\n $btn-border-radius: $border-radius;\n $btn-border-radius-sm: $border-radius-sm;\n $btn-border-radius-lg: $border-radius-lg;\n\n $btn-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,\n border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n\n $btn-hover-bg-shade-amount: 15%;\n $btn-hover-bg-tint-amount: 15%;\n $btn-hover-border-shade-amount: 20%;\n $btn-hover-border-tint-amount: 10%;\n $btn-active-bg-shade-amount: 20%;\n $btn-active-bg-tint-amount: 20%;\n $btn-active-border-shade-amount: 25%;\n $btn-active-border-tint-amount: 10%;\n\n // Breadcrumb\n\n $breadcrumb-font-size: $font-size-base; // null;\n $breadcrumb-padding-y: 0;\n $breadcrumb-padding-x: 0;\n $breadcrumb-item-padding-x: 0.5rem;\n $breadcrumb-margin-bottom: 1rem;\n $breadcrumb-bg: null;\n $breadcrumb-divider-color: $gray-600;\n $breadcrumb-active-color: $gray-600;\n $breadcrumb-divider: ", "; // quote('/');\n $breadcrumb-divider-flipped: $breadcrumb-divider;\n $breadcrumb-border-radius: null;\n\n // Forms\n\n $form-text-margin-top: 0.25rem;\n $form-text-font-size: $small-font-size;\n $form-text-font-style: null;\n $form-text-font-weight: null;\n $form-text-color: $text-muted;\n\n $form-label-margin-bottom: 0.5rem;\n $form-label-font-size: $font-size-base; // null;\n $form-label-font-style: null;\n $form-label-font-weight: null;\n $form-label-color: null;\n\n $input-padding-y: $input-btn-padding-y;\n $input-padding-x: $input-btn-padding-x;\n $input-font-family: $input-btn-font-family;\n $input-font-size: $input-btn-font-size;\n $input-font-weight: $font-weight-base;\n $input-line-height: $input-btn-line-height;\n\n $input-padding-y-sm: $input-btn-padding-y-sm;\n $input-padding-x-sm: $input-btn-padding-x-sm;\n $input-font-size-sm: $input-btn-font-size-sm;\n\n $input-padding-y-lg: $input-btn-padding-y-lg;\n $input-padding-x-lg: $input-btn-padding-x-lg;\n $input-font-size-lg: $input-btn-font-size-lg;\n\n $input-bg: $body-bg;\n $input-disabled-bg: $gray-200;\n $input-disabled-border-color: null;\n\n $input-color: $body-color;\n $input-border-color: $gray-400;\n $input-border-width: $input-btn-border-width;\n $input-box-shadow: $box-shadow-inset;\n\n $input-border-radius: $border-radius;\n $input-border-radius-sm: $border-radius-sm;\n $input-border-radius-lg: $border-radius-lg;\n\n $input-focus-bg: $input-bg;\n $input-focus-border-color: ", ";\n $input-focus-color: $input-color;\n $input-focus-width: $input-btn-focus-width;\n $input-focus-box-shadow: $input-btn-focus-box-shadow;\n\n $input-placeholder-color: $gray-600;\n $input-plaintext-color: $body-color;\n\n $input-height-border: $input-border-width * 2;\n\n $input-height-inner: ", ";\n $input-height-inner-half: ", ";\n $input-height-inner-quarter: ", ";\n\n $input-height: ", ";\n $input-height-sm: ", ";\n $input-height-lg: ", ";\n\n $input-transition: border-color 0.15s ease-in-out,\n box-shadow 0.15s ease-in-out;\n\n $form-color-width: 3rem;\n\n $form-check-input-width: $font-size-base * 1; // 1em;\n $form-check-min-height: $font-size-base * $line-height-base;\n $form-check-padding-start: $form-check-input-width + 0.5rem; // 0.5em;\n $form-check-margin-bottom: 0.125rem;\n $form-check-label-color: null;\n $form-check-label-cursor: null;\n $form-check-transition: null;\n\n $form-check-input-active-filter: brightness(90%);\n\n $form-check-input-bg: $input-bg;\n $form-check-input-border: 1px solid rgba($black, 0.25);\n $form-check-input-border-radius: $font-size-base * 0.25; // 0.25em;\n $form-check-radio-border-radius: $form-check-input-width * 0.5; // 50%;\n $form-check-input-focus-border: $input-focus-border-color;\n $form-check-input-focus-box-shadow: $input-btn-focus-box-shadow;\n\n $form-check-input-checked-color: $component-active-color;\n $form-check-input-checked-bg-color: $component-active-bg;\n $form-check-input-checked-border-color: $form-check-input-checked-bg-color;\n $form-check-input-checked-bg-image: ", ";\n $form-check-radio-checked-bg-image: ", ";\n\n $form-check-input-indeterminate-color: $component-active-color;\n $form-check-input-indeterminate-bg-color: $component-active-bg;\n $form-check-input-indeterminate-border-color: $form-check-input-indeterminate-bg-color;\n $form-check-input-indeterminate-bg-image: ", ";\n\n $form-check-input-disabled-opacity: 0.5;\n $form-check-label-disabled-opacity: $form-check-input-disabled-opacity;\n $form-check-btn-check-disabled-opacity: $btn-disabled-opacity;\n\n $form-check-inline-margin-end: 1rem;\n\n $form-switch-color: rgba($black, 0.25);\n $form-switch-width: 2rem;\n $form-switch-padding-start: $form-switch-width + 0.5rem;\n $form-switch-bg-image: ", ";\n $form-switch-border-radius: $form-switch-width;\n $form-switch-transition: background-position 0.15s ease-in-out;\n\n $form-switch-focus-color: $input-focus-border-color;\n $form-switch-focus-bg-image: ", ";\n\n $form-switch-checked-color: $component-active-color;\n $form-switch-checked-bg-image: ", ";\n $form-switch-checked-bg-position: right center;\n\n $input-group-addon-padding-y: $input-padding-y;\n $input-group-addon-padding-x: $input-padding-x;\n $input-group-addon-font-weight: $input-font-weight;\n $input-group-addon-color: $input-color;\n $input-group-addon-bg: $gray-200;\n $input-group-addon-border-color: $input-border-color;\n\n $form-select-padding-y: $input-padding-y;\n $form-select-padding-x: $input-padding-x;\n $form-select-font-family: $input-font-family;\n $form-select-font-size: $input-font-size;\n $form-select-indicator-padding: $form-select-padding-x * 3; // Extra padding for background-image\n $form-select-font-weight: $input-font-weight;\n $form-select-line-height: $input-line-height;\n $form-select-color: $input-color;\n $form-select-bg: $input-bg;\n $form-select-disabled-color: null;\n $form-select-disabled-bg: $gray-200;\n $form-select-disabled-border-color: $input-disabled-border-color;\n $form-select-bg-position: right $form-select-padding-x center;\n $form-select-bg-size: 16px 12px; // In pixels because image dimensions\n $form-select-indicator-color: $gray-800;\n $form-select-indicator: ", ";\n\n $form-select-feedback-icon-padding-end: $form-select-padding-x * 2.5 +\n $form-select-indicator-padding;\n $form-select-feedback-icon-position: center right\n $form-select-indicator-padding;\n $form-select-feedback-icon-size: $input-height-inner-half\n $input-height-inner-half;\n\n $form-select-border-width: $input-border-width;\n $form-select-border-color: $input-border-color;\n $form-select-border-radius: $input-border-radius;\n $form-select-box-shadow: $box-shadow-inset;\n\n $form-select-focus-border-color: $input-focus-border-color;\n $form-select-focus-width: $input-focus-width;\n $form-select-focus-box-shadow: 0 0 0 $form-select-focus-width\n $input-btn-focus-color;\n\n $form-select-padding-y-sm: $input-padding-y-sm;\n $form-select-padding-x-sm: $input-padding-x-sm;\n $form-select-font-size-sm: $input-font-size-sm;\n $form-select-border-radius-sm: $input-border-radius-sm;\n\n $form-select-padding-y-lg: $input-padding-y-lg;\n $form-select-padding-x-lg: $input-padding-x-lg;\n $form-select-font-size-lg: $input-font-size-lg;\n $form-select-border-radius-lg: $input-border-radius-lg;\n\n $form-select-transition: $input-transition;\n\n $form-range-track-width: 100%;\n $form-range-track-height: 0.5rem;\n $form-range-track-cursor: pointer;\n $form-range-track-bg: $gray-300;\n $form-range-track-border-radius: 1rem;\n $form-range-track-box-shadow: $box-shadow-inset;\n\n $form-range-thumb-width: 1rem;\n $form-range-thumb-height: $form-range-thumb-width;\n $form-range-thumb-bg: $component-active-bg;\n $form-range-thumb-border: 0;\n $form-range-thumb-border-radius: 1rem;\n $form-range-thumb-box-shadow: 0 0.1rem 0.25rem rgba($black, 0.1);\n $form-range-thumb-focus-box-shadow: 0 0 0 1px $body-bg,\n $input-focus-box-shadow;\n $form-range-thumb-focus-box-shadow-width: $input-focus-width; // For focus box shadow issue in Edge\n $form-range-thumb-active-bg: tint-color($component-active-bg, 70%);\n $form-range-thumb-disabled-bg: $gray-500;\n $form-range-thumb-transition: background-color 0.15s ease-in-out,\n border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n\n $form-file-button-color: $input-color;\n $form-file-button-bg: $input-group-addon-bg;\n $form-file-button-hover-bg: shade-color($form-file-button-bg, 5%);\n\n $form-floating-height: ", ";\n $form-floating-line-height: 1.25;\n $form-floating-padding-x: $input-padding-x;\n $form-floating-padding-y: 1rem;\n $form-floating-input-padding-t: 1.625rem;\n $form-floating-input-padding-b: 0.625rem;\n $form-floating-label-opacity: 0.65;\n $form-floating-label-transform: scale(0.85) translateY(-0.5rem)\n translateX(0.15rem);\n $form-floating-transition: opacity 0.1s ease-in-out,\n transform 0.1s ease-in-out;\n\n // Form validation\n\n $form-feedback-margin-top: $form-text-margin-top;\n $form-feedback-font-size: $form-text-font-size;\n $form-feedback-font-style: $form-text-font-style;\n $form-feedback-valid-color: $success;\n $form-feedback-invalid-color: $danger;\n\n $form-feedback-icon-valid-color: $form-feedback-valid-color;\n $form-feedback-icon-valid: ", ";\n $form-feedback-icon-invalid-color: $form-feedback-invalid-color;\n $form-feedback-icon-invalid: ", ";\n\n $form-validation-states: ", ";\n\n // Z-index master list\n //\n // Warning: Avoid customizing these values. They're used for a bird's eye view\n // of components dependent on the z-axis and are designed to all work together.\n\n $zindex-dropdown: 1000;\n $zindex-sticky: 1020;\n $zindex-fixed: 1030;\n $zindex-offcanvas-backdrop: 1040;\n $zindex-offcanvas: 1045;\n $zindex-modal-backdrop: 1050;\n $zindex-modal: 1055;\n $zindex-popover: 1070;\n $zindex-tooltip: 1080;\n\n // Navs\n\n $nav-link-padding-y: 0.5rem;\n $nav-link-padding-x: 1rem;\n $nav-link-font-size: null;\n $nav-link-font-weight: null;\n $nav-link-color: $link-color;\n $nav-link-hover-color: $link-hover-color;\n $nav-link-transition: color 0.15s ease-in-out,\n background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;\n $nav-link-disabled-color: $gray-600;\n\n $nav-tabs-border-color: $gray-300;\n $nav-tabs-border-width: $border-width;\n $nav-tabs-border-radius: $border-radius;\n $nav-tabs-link-hover-border-color: $gray-200 $gray-200 $nav-tabs-border-color;\n $nav-tabs-link-active-color: $gray-700;\n $nav-tabs-link-active-bg: $body-bg;\n $nav-tabs-link-active-border-color: $gray-300 $gray-300\n $nav-tabs-link-active-bg;\n\n $nav-pills-border-radius: $border-radius;\n $nav-pills-link-active-color: $component-active-color;\n $nav-pills-link-active-bg: $component-active-bg;\n\n // Navbar\n\n $navbar-padding-y: $spacer * 0.5;\n $navbar-padding-x: null;\n\n $navbar-nav-link-padding-x: 0.5rem;\n\n $navbar-brand-font-size: $font-size-lg;\n\n $nav-link-height: $font-size-base * $line-height-base + $nav-link-padding-y *\n 2;\n $navbar-brand-height: $navbar-brand-font-size * $line-height-base;\n $navbar-brand-padding-y-intermediate-result: $nav-link-height -\n $navbar-brand-height;\n $navbar-brand-padding-y: $navbar-brand-padding-y-intermediate-result * 0.5;\n $navbar-brand-margin-end: 1rem;\n\n $navbar-toggler-padding-y: 0.25rem;\n $navbar-toggler-padding-x: 0.75rem;\n $navbar-toggler-font-size: $font-size-lg;\n $navbar-toggler-border-radius: $btn-border-radius;\n $navbar-toggler-focus-width: $btn-focus-width;\n $navbar-toggler-transition: box-shadow 0.15s ease-in-out;\n\n $navbar-dark-color: rgba($white, 0.55);\n $navbar-dark-hover-color: rgba($white, 0.75);\n $navbar-dark-active-color: $white;\n $navbar-dark-disabled-color: rgba($white, 0.25);\n $navbar-dark-toggler-icon-bg: ", ";\n $navbar-dark-toggler-border-color: rgba($white, 0.1);\n\n $navbar-light-color: rgba($black, 0.55);\n $navbar-light-hover-color: rgba($black, 0.7);\n $navbar-light-active-color: rgba($black, 0.9);\n $navbar-light-disabled-color: rgba($black, 0.3);\n $navbar-light-toggler-icon-bg: ", ";\n $navbar-light-toggler-border-color: rgba($black, 0.1);\n\n $navbar-light-brand-color: $navbar-light-active-color;\n $navbar-light-brand-hover-color: $navbar-light-active-color;\n $navbar-dark-brand-color: $navbar-dark-active-color;\n $navbar-dark-brand-hover-color: $navbar-dark-active-color;\n\n // Dropdowns\n //\n // Dropdown menu container and contents.\n\n $dropdown-min-width: 10rem;\n $dropdown-padding-x: 0;\n $dropdown-padding-y: 0.5rem;\n $dropdown-spacer: 0.125rem;\n $dropdown-font-size: $font-size-base;\n $dropdown-color: $body-color;\n $dropdown-bg: $white;\n $dropdown-border-color: rgba($black, 0.15);\n $dropdown-border-radius: $border-radius;\n $dropdown-border-width: $border-width;\n $dropdown-inner-border-radius: ", ";\n $dropdown-divider-bg: $dropdown-border-color;\n $dropdown-divider-margin-y: $spacer * 0.5;\n $dropdown-box-shadow: $box-shadow;\n\n $dropdown-link-color: $gray-900;\n\n $dropdown-link-hover-color: ", ";\n $dropdown-link-hover-bg: $gray-200;\n\n $dropdown-link-active-color: $component-active-color;\n $dropdown-link-active-bg: $component-active-bg;\n\n $dropdown-link-disabled-color: $gray-500;\n\n $dropdown-item-padding-y: $spacer * 0.25;\n $dropdown-item-padding-x: $spacer;\n\n $dropdown-header-color: $gray-600;\n $dropdown-header-padding: $dropdown-padding-y $dropdown-item-padding-x;\n\n $dropdown-dark-color: $gray-300;\n $dropdown-dark-bg: $gray-800;\n $dropdown-dark-border-color: $dropdown-border-color;\n $dropdown-dark-divider-bg: $dropdown-divider-bg;\n $dropdown-dark-box-shadow: null;\n $dropdown-dark-link-color: $dropdown-dark-color;\n $dropdown-dark-link-hover-color: $white;\n $dropdown-dark-link-hover-bg: rgba($white, 0.15);\n $dropdown-dark-link-active-color: $dropdown-link-active-color;\n $dropdown-dark-link-active-bg: $dropdown-link-active-bg;\n $dropdown-dark-link-disabled-color: $gray-500;\n $dropdown-dark-header-color: $gray-500;\n\n // ...\n\n // Cards\n\n $card-spacer-y: $spacer;\n $card-spacer-x: $spacer;\n $card-title-spacer-y: $spacer * 0.5;\n $card-border-width: $border-width;\n $card-border-color: rgba($black, 0.125);\n $card-border-radius: $border-radius;\n $card-box-shadow: null;\n $card-inner-border-radius: ", ";\n $card-cap-padding-y: $card-spacer-y * 0.5;\n $card-cap-padding-x: $card-spacer-x;\n $card-cap-bg: rgba($black, 0.03);\n $card-cap-color: null;\n $card-height: null;\n $card-color: null;\n $card-bg: $white;\n $card-img-overlay-padding: $spacer;\n $card-group-margin: $grid-gutter-width * 0.5;\n\n // ...\n\n // Tooltips\n\n $tooltip-font-size: $font-size-sm;\n $tooltip-max-width: 200px;\n $tooltip-color: $white;\n $tooltip-bg: $black;\n $tooltip-border-radius: $border-radius;\n $tooltip-opacity: 0.9;\n $tooltip-padding-y: $spacer * 0.25;\n $tooltip-padding-x: $spacer * 0.5;\n $tooltip-margin: 0;\n\n $tooltip-arrow-width: 0.8rem;\n $tooltip-arrow-height: 0.4rem;\n $tooltip-arrow-color: $tooltip-bg;\n\n // Popovers\n\n $popover-font-size: $font-size-sm;\n $popover-bg: $white;\n $popover-max-width: 276px;\n $popover-border-width: $border-width;\n $popover-border-color: rgba($black, 0.2);\n $popover-border-radius: $border-radius-lg;\n $popover-inner-border-radius: ", ";\n $popover-box-shadow: $box-shadow;\n\n $popover-header-bg: ", ";\n $popover-header-color: $headings-color;\n $popover-header-padding-y: 0.5rem;\n $popover-header-padding-x: $spacer;\n\n $popover-body-color: $body-color;\n $popover-body-padding-y: $spacer;\n $popover-body-padding-x: $spacer;\n\n $popover-arrow-width: 1rem;\n $popover-arrow-height: 0.5rem;\n $popover-arrow-color: $popover-bg;\n\n $popover-arrow-outer-color: $popover-border-color;\n\n // Toasts\n\n $toast-max-width: 350px;\n $toast-padding-x: 0.75rem;\n $toast-padding-y: 0.5rem;\n $toast-font-size: 0.875rem;\n $toast-color: null;\n $toast-background-color: rgba($white, 0.85);\n $toast-border-width: 1px;\n $toast-border-color: rgba($black, 0.1);\n $toast-border-radius: $border-radius;\n $toast-box-shadow: $box-shadow;\n $toast-spacing: $container-padding-x;\n\n $toast-header-color: $gray-600;\n $toast-header-background-color: rgba($white, 0.85);\n $toast-header-border-color: rgba($black, 0.05);\n\n // Badges\n\n $badge-font-size: $font-size-base * 0.75; // 0.75em;\n $badge-font-weight: $font-weight-bold;\n $badge-color: $white;\n $badge-padding-y: $badge-font-size * 0.35; // 0.35em;\n $badge-padding-x: $badge-font-size * 0.65; // 0.65em;\n $badge-border-radius: $border-radius;\n\n // Modals\n\n $modal-inner-padding: $spacer;\n\n $modal-footer-margin-between: 0.5rem;\n\n $modal-dialog-margin: 0.5rem;\n $modal-dialog-margin-y-sm-up: 1.75rem;\n\n $modal-title-line-height: $line-height-base;\n\n $modal-content-color: null;\n $modal-content-bg: $white;\n $modal-content-border-color: rgba($black, 0.65); // rgba($black, 0.2);\n $modal-content-border-width: $border-width;\n $modal-content-border-radius: $border-radius-lg;\n $modal-content-inner-border-radius: ", ";\n $modal-content-box-shadow-xs: $box-shadow-sm;\n $modal-content-box-shadow-sm-up: $box-shadow;\n\n $modal-backdrop-bg: $black;\n $modal-backdrop-opacity: 0.5;\n $modal-header-border-color: $border-color;\n $modal-footer-border-color: $modal-header-border-color;\n $modal-header-border-width: $modal-content-border-width;\n $modal-footer-border-width: $modal-header-border-width;\n $modal-header-padding-y: $modal-inner-padding;\n $modal-header-padding-x: $modal-inner-padding;\n $modal-header-padding: $modal-header-padding-y $modal-header-padding-x; // Keep this for backwards compatibility\n\n $modal-sm: 300px;\n $modal-md: 500px;\n $modal-lg: 800px;\n $modal-xl: 1140px;\n\n $modal-fade-transform: translate(0, -50px);\n $modal-show-transform: none;\n $modal-transition: transform 0.3s ease-out;\n $modal-scale-transform: scale(1.02);\n\n // ...\n\n // Alerts\n //\n // Define alert colors, border radius, and padding.\n\n $alert-padding-y: $spacer;\n $alert-padding-x: $spacer;\n $alert-margin-bottom: 1rem;\n $alert-border-radius: $border-radius;\n $alert-link-font-weight: $font-weight-bold;\n $alert-border-width: $border-width;\n $alert-bg-scale: -80%;\n $alert-border-scale: -70%;\n $alert-color-scale: 40%;\n $alert-dismissible-padding-r: $alert-padding-x * 3; // 3x covers width of x plus default padding on either side\n\n // Pagination\n\n $pagination-padding-y: 0.375rem;\n $pagination-padding-x: 0.75rem;\n $pagination-padding-y-sm: 0.25rem;\n $pagination-padding-x-sm: 0.5rem;\n $pagination-padding-y-lg: 0.75rem;\n $pagination-padding-x-lg: 1.5rem;\n\n $pagination-color: $link-color;\n $pagination-bg: $white;\n $pagination-border-width: $border-width;\n $pagination-border-radius: $border-radius;\n $pagination-margin-start: -$pagination-border-width;\n $pagination-border-color: $gray-300;\n\n $pagination-focus-color: $link-hover-color;\n $pagination-focus-bg: $gray-200;\n $pagination-focus-box-shadow: $input-btn-focus-box-shadow;\n $pagination-focus-outline: 0;\n\n $pagination-hover-color: $link-hover-color;\n $pagination-hover-bg: $gray-200;\n $pagination-hover-border-color: $gray-300;\n\n $pagination-active-color: $component-active-color;\n $pagination-active-bg: $component-active-bg;\n $pagination-active-border-color: $pagination-active-bg;\n\n $pagination-disabled-color: $gray-600;\n $pagination-disabled-bg: $white;\n $pagination-disabled-border-color: $gray-300;\n\n $pagination-transition: color 0.15s ease-in-out,\n background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,\n box-shadow 0.15s ease-in-out;\n\n $pagination-border-radius-sm: $border-radius-sm;\n $pagination-border-radius-lg: $border-radius-lg;\n\n // Progress bars\n\n $progress-height: 1rem;\n $progress-font-size: $font-size-base * 0.75;\n $progress-bg: $gray-200;\n $progress-border-radius: $border-radius;\n $progress-box-shadow: $box-shadow-inset;\n $progress-bar-color: $white;\n $progress-bar-bg: $primary;\n $progress-bar-animation-timing: 1s linear infinite;\n $progress-bar-transition: width 0.6s ease;\n\n // List group\n\n $list-group-color: $gray-900;\n $list-group-bg: $white;\n $list-group-border-color: rgba($black, 0.125);\n $list-group-border-width: $border-width;\n $list-group-border-radius: $border-radius;\n\n $list-group-item-padding-y: $spacer * 0.5;\n $list-group-item-padding-x: $spacer;\n $list-group-item-bg-scale: -80%;\n $list-group-item-color-scale: 40%;\n\n $list-group-hover-bg: $gray-100;\n $list-group-active-color: $component-active-color;\n $list-group-active-bg: $component-active-bg;\n $list-group-active-border-color: $list-group-active-bg;\n\n $list-group-disabled-color: $gray-600;\n $list-group-disabled-bg: $list-group-bg;\n\n $list-group-action-color: $gray-700;\n $list-group-action-hover-color: $list-group-action-color;\n\n $list-group-action-active-color: $body-color;\n $list-group-action-active-bg: $gray-200;\n\n // ...\n\n // Spinners\n\n $spinner-width: 2rem;\n $spinner-height: $spinner-width;\n $spinner-vertical-align: $font-size-base * -0.125; // -.125em;\n $spinner-border-width: $font-size-base * 0.25; // .25em;\n $spinner-animation-speed: 0.75s;\n\n $spinner-width-sm: 1rem;\n $spinner-height-sm: $spinner-width-sm;\n $spinner-border-width-sm: $font-size-base * 0.2; // .2em;\n\n // Close\n\n $btn-close-width: $font-size-base * 1; // 1em;\n $btn-close-height: $btn-close-width;\n $btn-close-padding-x: $font-size-base * 0.25; // .25em;\n $btn-close-padding-y: $btn-close-padding-x;\n $btn-close-color: $black;\n $btn-close-bg: ", ";\n $btn-close-focus-shadow: $input-btn-focus-box-shadow;\n $btn-close-opacity: 0.5;\n $btn-close-hover-opacity: 0.75;\n $btn-close-focus-opacity: 1;\n $btn-close-disabled-opacity: 0.25;\n // $btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);\n\n // Offcanvas\n\n $offcanvas-padding-y: $modal-inner-padding;\n $offcanvas-padding-x: $modal-inner-padding;\n $offcanvas-horizontal-width: 400px;\n $offcanvas-vertical-height: 200px; // 30vh;\n $offcanvas-transition-duration: 0.3s;\n $offcanvas-border-color: $modal-content-border-color;\n $offcanvas-border-width: $modal-content-border-width;\n $offcanvas-title-line-height: $modal-title-line-height;\n $offcanvas-bg-color: $modal-content-bg;\n $offcanvas-color: $modal-content-color;\n $offcanvas-box-shadow: $modal-content-box-shadow-xs;\n $offcanvas-backdrop-bg: $modal-backdrop-bg;\n $offcanvas-backdrop-opacity: $modal-backdrop-opacity;\n\n // Code\n\n $code-font-size: $small-font-size;\n $code-color: $pink;\n\n $kbd-padding-y: 0.2rem;\n $kbd-padding-x: 0.4rem;\n $kbd-font-size: $code-font-size;\n $kbd-color: $white;\n $kbd-bg: $gray-900;\n\n $pre-color: null;\n"])), t => ({
|
|
2123
2121
|
100: t['gray-100'],
|
|
2124
2122
|
200: t['gray-200'],
|
|
2125
2123
|
300: t['gray-300'],
|
|
@@ -2487,9 +2485,8 @@ function useViewport(initialViewport) {
|
|
|
2487
2485
|
const nextViewport = calculateViewport(breakpoints, width);
|
|
2488
2486
|
setViewport(nextViewport);
|
|
2489
2487
|
};
|
|
2490
|
-
|
|
2491
|
-
// Initially determine viewport after mounting.
|
|
2492
2488
|
useEffect(() => {
|
|
2489
|
+
// Initially determine viewport after mounting.
|
|
2493
2490
|
handleChange({
|
|
2494
2491
|
window: Dimensions.get('window')
|
|
2495
2492
|
});
|
|
@@ -2669,7 +2666,7 @@ const propTypes$1y = {
|
|
|
2669
2666
|
// eslint-disable-next-line react/forbid-prop-types
|
|
2670
2667
|
textStyle: PropTypes.any
|
|
2671
2668
|
};
|
|
2672
|
-
const styles$
|
|
2669
|
+
const styles$1e = StyleSheet.create(_objectSpread2(_objectSpread2({
|
|
2673
2670
|
'.alert': css(_templateObject$1d || (_templateObject$1d = _taggedTemplateLiteral(["\n position: relative;\n padding: $alert-padding-y $alert-padding-x;\n margin-bottom: $alert-margin-bottom;\n background-color: transparent;\n border: $alert-border-width solid transparent;\n border-radius: $alert-border-radius;\n "])))
|
|
2674
2671
|
}, each(THEME_COLORS, (state, value) => ({
|
|
2675
2672
|
[".alert-".concat(state)]: css(_templateObject2$V || (_templateObject2$V = _taggedTemplateLiteral(["\n background-color: ", ";\n border-color: ", ";\n "])), shiftColor(value, t => t['alert-bg-scale']), shiftColor(value, t => t['alert-border-scale'])),
|
|
@@ -2688,11 +2685,11 @@ const Alert = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
2688
2685
|
textStyle
|
|
2689
2686
|
} = props,
|
|
2690
2687
|
elementProps = _objectWithoutProperties(props, _excluded$1x);
|
|
2691
|
-
const classes = getStyles(styles$
|
|
2692
|
-
const textClasses = getStyles(styles$
|
|
2688
|
+
const classes = getStyles(styles$1e, ['.alert', ".alert-".concat(color), dismissible && '.alert-dismissible']);
|
|
2689
|
+
const textClasses = getStyles(styles$1e, [".alert-".concat(color, " --text")]);
|
|
2693
2690
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
2694
2691
|
ref: ref,
|
|
2695
|
-
|
|
2692
|
+
role: "alert",
|
|
2696
2693
|
style: [classes, style],
|
|
2697
2694
|
textStyle: [textClasses, textStyle]
|
|
2698
2695
|
}), children);
|
|
@@ -2713,7 +2710,7 @@ const propTypes$1x = {
|
|
|
2713
2710
|
// eslint-disable-next-line react/forbid-prop-types
|
|
2714
2711
|
styleName: PropTypes.any
|
|
2715
2712
|
};
|
|
2716
|
-
const styles$
|
|
2713
|
+
const styles$1d = StyleSheet.create({
|
|
2717
2714
|
text: css(_templateObject$1c || (_templateObject$1c = _taggedTemplateLiteral(["\n font-family: $font-family-base;\n font-size: $font-size-base;\n font-weight: $font-weight-base;\n line-height: $font-size-base * $line-height-base;\n "]))),
|
|
2718
2715
|
strong: css(_templateObject2$U || (_templateObject2$U = _taggedTemplateLiteral(["\n font-weight: $font-weight-bolder;\n "]))),
|
|
2719
2716
|
italic: css(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteral(["\n font-style: italic;\n "]))),
|
|
@@ -2740,10 +2737,10 @@ const Text = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
2740
2737
|
elementProps = _objectWithoutProperties(props, _excluded$1w);
|
|
2741
2738
|
const media = useMedia();
|
|
2742
2739
|
const context = useContext(TextStyleContext);
|
|
2743
|
-
const classes = getStyles(styles$
|
|
2740
|
+
const classes = getStyles(styles$1d, [bold && 'strong', italic && 'italic', small && 'small', mark && 'mark']);
|
|
2744
2741
|
const resolveStyle = useStyle([
|
|
2745
2742
|
// eslint-disable-next-line react/destructuring-assignment
|
|
2746
|
-
(!context || !context.hasTextAncestor) && styles$
|
|
2743
|
+
(!context || !context.hasTextAncestor) && styles$1d.text,
|
|
2747
2744
|
// eslint-disable-next-line react/destructuring-assignment
|
|
2748
2745
|
context && context.style, classes, style], getStyleName(styleName, color));
|
|
2749
2746
|
const element = /*#__PURE__*/React.createElement(Text$1, _extends({}, elementProps, {
|
|
@@ -2780,7 +2777,7 @@ const propTypes$1w = {
|
|
|
2780
2777
|
// eslint-disable-next-line react/forbid-prop-types
|
|
2781
2778
|
textStyle: PropTypes.any
|
|
2782
2779
|
};
|
|
2783
|
-
const styles$
|
|
2780
|
+
const styles$1c = StyleSheet.create({
|
|
2784
2781
|
'.badge': css(_templateObject$1b || (_templateObject$1b = _taggedTemplateLiteral(["\n // display: inline-block;\n padding: $badge-padding-y $badge-padding-x;\n border-radius: $badge-border-radius;\n // @include gradient-bg();\n "]))),
|
|
2785
2782
|
'.badge --text': css(_templateObject2$T || (_templateObject2$T = _taggedTemplateLiteral(["\n font-size: $badge-font-size;\n font-weight: $badge-font-weight;\n line-height: $badge-font-size * 1;\n color: $badge-color;\n text-align: center;\n // white-space: nowrap;\n // vertical-align: baseline;\n "])))
|
|
2786
2783
|
});
|
|
@@ -2791,8 +2788,8 @@ const Badge = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
2791
2788
|
textStyle
|
|
2792
2789
|
} = props,
|
|
2793
2790
|
elementProps = _objectWithoutProperties(props, _excluded$1v);
|
|
2794
|
-
const classes = getStyles(styles$
|
|
2795
|
-
const textClasses = getStyles(styles$
|
|
2791
|
+
const classes = getStyles(styles$1c, ['.badge']);
|
|
2792
|
+
const textClasses = getStyles(styles$1c, ['.badge --text']);
|
|
2796
2793
|
|
|
2797
2794
|
// composite component
|
|
2798
2795
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
@@ -2865,7 +2862,7 @@ const propTypes$1v = {
|
|
|
2865
2862
|
// eslint-disable-next-line react/forbid-prop-types
|
|
2866
2863
|
textStyle: PropTypes.any
|
|
2867
2864
|
};
|
|
2868
|
-
const styles$
|
|
2865
|
+
const styles$1b = StyleSheet.create({
|
|
2869
2866
|
'.breadcrumb-item + .breadcrumb-item': css(_templateObject$1a || (_templateObject$1a = _taggedTemplateLiteral(["\n flex-direction: row; // added for bootstrap-rn\n padding-left: $breadcrumb-item-padding-x;\n "]))),
|
|
2870
2867
|
'.breadcrumb-item + .breadcrumb-item::before': css(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteral(["\n // float: left; // Suppress inline spacings and underlining of the separator\n padding-right: $breadcrumb-item-padding-x;\n color: $breadcrumb-divider-color;\n "]))),
|
|
2871
2868
|
'.breadcrumb-item.active --text': css(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteral(["\n color: $breadcrumb-active-color;\n "])))
|
|
@@ -2882,20 +2879,19 @@ const BreadcrumbItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
2882
2879
|
const {
|
|
2883
2880
|
first
|
|
2884
2881
|
} = useForcedContext(ListContext);
|
|
2885
|
-
const classes = getStyles(styles$
|
|
2886
|
-
const textClasses = getStyles(styles$
|
|
2887
|
-
const dividerClasses = getStyles(styles$
|
|
2882
|
+
const classes = getStyles(styles$1b, [!first && '.breadcrumb-item + .breadcrumb-item']);
|
|
2883
|
+
const textClasses = getStyles(styles$1b, [active && '.breadcrumb-item.active --text']);
|
|
2884
|
+
const dividerClasses = getStyles(styles$1b, ['.breadcrumb-item + .breadcrumb-item::before']);
|
|
2888
2885
|
const role = Platform.OS === 'web' ? 'listitem' : null;
|
|
2889
2886
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
2890
2887
|
ref: ref,
|
|
2891
|
-
|
|
2888
|
+
role: role
|
|
2892
2889
|
}, optional(active, {
|
|
2893
|
-
|
|
2890
|
+
'aria-current': 'page'
|
|
2894
2891
|
}), {
|
|
2895
2892
|
style: [classes, style],
|
|
2896
2893
|
textStyle: [textClasses, textStyle]
|
|
2897
2894
|
}), !first && /*#__PURE__*/React.createElement(Text, {
|
|
2898
|
-
selectable: false,
|
|
2899
2895
|
style: [dividerClasses, dividerStyle]
|
|
2900
2896
|
}, I18nManager.isRTL ? StyleSheet.value('breadcrumb-divider-flipped') : StyleSheet.value('breadcrumb-divider')), children);
|
|
2901
2897
|
});
|
|
@@ -2911,7 +2907,7 @@ const propTypes$1u = {
|
|
|
2911
2907
|
// eslint-disable-next-line react/forbid-prop-types
|
|
2912
2908
|
textStyle: PropTypes.any
|
|
2913
2909
|
};
|
|
2914
|
-
const styles$
|
|
2910
|
+
const styles$1a = StyleSheet.create({
|
|
2915
2911
|
'.breadcrumb': css(_templateObject$19 || (_templateObject$19 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row; // added for bootstrap-rn\n flex-wrap: wrap;\n padding: $breadcrumb-padding-y $breadcrumb-padding-x;\n margin-bottom: $breadcrumb-margin-bottom;\n // list-style: none;\n background-color: $breadcrumb-bg;\n border-radius: $breadcrumb-border-radius;\n "]))),
|
|
2916
2912
|
'.breadcrumb --text': css(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteral(["\n font-size: $breadcrumb-font-size;\n line-height: $breadcrumb-font-size * $line-height-base; // added for bootstrap-rn\n "])))
|
|
2917
2913
|
});
|
|
@@ -2923,12 +2919,12 @@ const Breadcrumb = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
2923
2919
|
} = props,
|
|
2924
2920
|
elementProps = _objectWithoutProperties(props, _excluded$1t);
|
|
2925
2921
|
const list = useList(children);
|
|
2926
|
-
const classes = getStyles(styles$
|
|
2927
|
-
const textClasses = getStyles(styles$
|
|
2922
|
+
const classes = getStyles(styles$1a, ['.breadcrumb']);
|
|
2923
|
+
const textClasses = getStyles(styles$1a, ['.breadcrumb --text']);
|
|
2928
2924
|
const role = Platform.OS === 'web' ? 'list' : null;
|
|
2929
2925
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
2930
2926
|
ref: ref,
|
|
2931
|
-
|
|
2927
|
+
role: role,
|
|
2932
2928
|
style: [classes, style],
|
|
2933
2929
|
textStyle: [textClasses, textStyle]
|
|
2934
2930
|
}), list);
|
|
@@ -2948,7 +2944,7 @@ const propTypes$1t = {
|
|
|
2948
2944
|
// eslint-disable-next-line react/forbid-prop-types
|
|
2949
2945
|
style: PropTypes.any
|
|
2950
2946
|
};
|
|
2951
|
-
const styles$
|
|
2947
|
+
const styles$19 = StyleSheet.create({
|
|
2952
2948
|
'.btn-group': css(_templateObject$18 || (_templateObject$18 = _taggedTemplateLiteral(["\n flex-direction: row; // added for bootstrap-rn\n border-radius: $btn-border-radius;\n "])))
|
|
2953
2949
|
});
|
|
2954
2950
|
const ButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
@@ -2959,13 +2955,13 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
2959
2955
|
} = props,
|
|
2960
2956
|
elementProps = _objectWithoutProperties(props, _excluded$1s);
|
|
2961
2957
|
const list = useList(children);
|
|
2962
|
-
const classes = getStyles(styles$
|
|
2958
|
+
const classes = getStyles(styles$19, ['.btn-group']);
|
|
2963
2959
|
|
|
2964
2960
|
// Accessiblity role tabpanel is only supported on web.
|
|
2965
2961
|
const role = Platform.OS === 'web' ? 'group' : null;
|
|
2966
2962
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
2967
2963
|
ref: ref,
|
|
2968
|
-
|
|
2964
|
+
role: role,
|
|
2969
2965
|
style: [classes, style]
|
|
2970
2966
|
}), /*#__PURE__*/React.createElement(ButtonGroupContext.Provider, {
|
|
2971
2967
|
value: {
|
|
@@ -2983,7 +2979,7 @@ const propTypes$1s = {
|
|
|
2983
2979
|
// eslint-disable-next-line react/forbid-prop-types
|
|
2984
2980
|
style: PropTypes.any
|
|
2985
2981
|
};
|
|
2986
|
-
const styles$
|
|
2982
|
+
const styles$18 = StyleSheet.create({
|
|
2987
2983
|
'.btn-toolbar': css(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row; // added for bootstrap-rn\n flex-wrap: wrap;\n justify-content: flex-start;\n "])))
|
|
2988
2984
|
});
|
|
2989
2985
|
const ButtonToolbar = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
@@ -2992,10 +2988,10 @@ const ButtonToolbar = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
2992
2988
|
style
|
|
2993
2989
|
} = props,
|
|
2994
2990
|
elementProps = _objectWithoutProperties(props, _excluded$1r);
|
|
2995
|
-
const classes = getStyles(styles$
|
|
2991
|
+
const classes = getStyles(styles$18, ['.btn-toolbar']);
|
|
2996
2992
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
2997
2993
|
ref: ref,
|
|
2998
|
-
|
|
2994
|
+
role: "toolbar",
|
|
2999
2995
|
style: [classes, style]
|
|
3000
2996
|
}), children);
|
|
3001
2997
|
});
|
|
@@ -3150,7 +3146,7 @@ const getBorderColorStyle = (color, direction) => {
|
|
|
3150
3146
|
throw new Error('Unknown direction.');
|
|
3151
3147
|
}
|
|
3152
3148
|
};
|
|
3153
|
-
const styles$
|
|
3149
|
+
const styles$17 = StyleSheet.create({
|
|
3154
3150
|
caret: css(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteral(["\n // &::after styles\n // display: inline-block;\n margin-left: $caret-spacing;\n // vertical-align: $caret-vertical-align;\n align-self: center; // added for bootstrap-rn\n // content: \"\";\n "]))),
|
|
3155
3151
|
'caret-down': css(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteral(["\n // &::after styles\n border-top-width: $caret-width;\n border-right-width: $caret-width;\n border-right-color: transparent;\n border-bottom-width: 0;\n border-left-width: $caret-width;\n border-left-color: transparent;\n "]))),
|
|
3156
3152
|
'caret-up': css(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteral(["\n // &::after styles\n border-top-width: 0;\n border-right-width: $caret-width;\n border-right-color: transparent;\n border-bottom-width: $caret-width;\n border-left-width: $caret-width;\n border-left-color: transparent;\n "]))),
|
|
@@ -3165,7 +3161,7 @@ const Caret = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3165
3161
|
} = props,
|
|
3166
3162
|
elementProps = _objectWithoutProperties(props, _excluded$1o);
|
|
3167
3163
|
const context = useContext(TextStyleContext);
|
|
3168
|
-
const classes = getStyles(styles$
|
|
3164
|
+
const classes = getStyles(styles$17, ['caret', "caret-".concat(direction)]);
|
|
3169
3165
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3170
3166
|
ref: ref,
|
|
3171
3167
|
style: [classes, getBorderColorStyle(color || getColor(context), direction), style]
|
|
@@ -3196,19 +3192,18 @@ const propTypes$1q = {
|
|
|
3196
3192
|
};
|
|
3197
3193
|
|
|
3198
3194
|
// One of the following should be set for aria support:
|
|
3199
|
-
// 1)
|
|
3200
|
-
// 2)
|
|
3195
|
+
// 1) role
|
|
3196
|
+
// 2) aria-label + aria-hint
|
|
3201
3197
|
// 3) accessibilityActions + onAccessibilityAction
|
|
3202
3198
|
const getRole$2 = props => {
|
|
3203
3199
|
const {
|
|
3204
|
-
|
|
3205
|
-
accessibilityLabel,
|
|
3200
|
+
role,
|
|
3206
3201
|
accessibilityActions
|
|
3207
3202
|
} = props;
|
|
3208
|
-
if (
|
|
3209
|
-
return
|
|
3203
|
+
if (role) {
|
|
3204
|
+
return role;
|
|
3210
3205
|
}
|
|
3211
|
-
if (
|
|
3206
|
+
if (props['aria-label'] || accessibilityActions) {
|
|
3212
3207
|
return null;
|
|
3213
3208
|
}
|
|
3214
3209
|
return 'button';
|
|
@@ -3257,7 +3252,7 @@ const Pressable = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3257
3252
|
const wrappedChildren = applyCaret(children, caret);
|
|
3258
3253
|
return /*#__PURE__*/React.createElement(Pressable$1, _extends({}, elementProps, interactionProps, {
|
|
3259
3254
|
ref: actionRef,
|
|
3260
|
-
|
|
3255
|
+
role: getRole$2(actionProps),
|
|
3261
3256
|
style: [resolveStyle({
|
|
3262
3257
|
media,
|
|
3263
3258
|
interaction
|
|
@@ -3295,7 +3290,7 @@ function useToggleButton(props) {
|
|
|
3295
3290
|
if (handlePress) handlePress(event);
|
|
3296
3291
|
setPressed(value => !value);
|
|
3297
3292
|
},
|
|
3298
|
-
|
|
3293
|
+
'aria-pressed': pressed
|
|
3299
3294
|
});
|
|
3300
3295
|
}
|
|
3301
3296
|
|
|
@@ -3317,7 +3312,7 @@ const propTypes$1p = {
|
|
|
3317
3312
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3318
3313
|
activeTextStyle: PropTypes.any
|
|
3319
3314
|
};
|
|
3320
|
-
const styles$
|
|
3315
|
+
const styles$16 = StyleSheet.create(_objectSpread2(_objectSpread2({
|
|
3321
3316
|
'.btn': css(_templateObject$15 || (_templateObject$15 = _taggedTemplateLiteral(["\n flex-direction: row; // added for bootstrap-rn\n justify-content: center; // added for bootstrap-rn\n // display: inline-block;\n @include platform(web) {\n // cursor: if($enable-button-pointers, pointer, null);\n user-select: none;\n }\n background-color: transparent;\n border: $btn-border-width solid transparent;\n padding: $btn-padding-y $btn-padding-x;\n // Manually declare to provide an override to the browser default\n border-radius: $btn-border-radius;\n // @include transition($btn-transition);\n\n &:focus-visible {\n // outline: 0;\n // box-shadow: $btn-focus-box-shadow;\n }\n\n &:active {\n // @include box-shadow($btn-active-box-shadow);\n\n &:focus-visible {\n // @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);\n }\n }\n "]))),
|
|
3322
3317
|
'.btn --text': css(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteral(["\n font-family: $btn-font-family;\n font-weight: $btn-font-weight;\n line-height: $btn-font-size * $btn-line-height;\n color: $body-color;\n text-align: center;\n text-decoration: none; // if($link-decoration == none, null, none);\n white-space: $btn-white-space;\n // vertical-align: middle;\n font-size: $btn-font-size;\n\n &:hover {\n color: $body-color;\n text-decoration: none; // if($link-decoration == none, null, none);\n }\n "]))),
|
|
3323
3318
|
'.btn.disabled': css(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteral(["\n // pointer-events: none;\n opacity: $btn-disabled-opacity;\n // @include box-shadow(none);\n "])))
|
|
@@ -3376,10 +3371,10 @@ const Button = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3376
3371
|
invariant(color !== 'link' || !outline, 'Button link variant is only available as non outline style.');
|
|
3377
3372
|
const listItem = useContext(ListContext);
|
|
3378
3373
|
const group = useContext(ButtonGroupContext);
|
|
3379
|
-
const classes = getStyles(styles$
|
|
3380
|
-
const activeClasses = getStyles(styles$
|
|
3381
|
-
const textClasses = getStyles(styles$
|
|
3382
|
-
const activeTextClasses = getStyles(styles$
|
|
3374
|
+
const classes = getStyles(styles$16, ['.btn', getVariant(color, outline), disabled && '.btn.disabled', disabled && "".concat(getVariant(color, outline), ".disabled"), hasSize(size, group, 'lg') && '.btn-lg', hasSize(size, group, 'sm') && '.btn-sm', group && '.btn-group > .btn', group && active && '.btn-group > .btn.active', group && !listItem.first && '.btn-group > .btn:not(:first-child)', group && !listItem.last && '.btn-group > .btn:not(:last-child)']);
|
|
3375
|
+
const activeClasses = getStyles(styles$16, ["".concat(getVariant(color, outline), ".active")]);
|
|
3376
|
+
const textClasses = getStyles(styles$16, ['.btn --text', "".concat(getVariant(color, outline), " --text"), color === 'link' && '.btn-link --text', disabled && "".concat(getVariant(color, outline), ".disabled --text"), disabled && color === 'link' && '.btn-link.disabled --text', hasSize(size, group, 'lg') && '.btn-lg --text', hasSize(size, group, 'sm') && '.btn-sm --text']);
|
|
3377
|
+
const activeTextClasses = getStyles(styles$16, ["".concat(getVariant(color, outline), ".active --text")]);
|
|
3383
3378
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, elementProps, {
|
|
3384
3379
|
ref: ref,
|
|
3385
3380
|
active: active,
|
|
@@ -3403,7 +3398,7 @@ const propTypes$1o = {
|
|
|
3403
3398
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3404
3399
|
textStyle: PropTypes.any
|
|
3405
3400
|
};
|
|
3406
|
-
const styles$
|
|
3401
|
+
const styles$15 = StyleSheet.create({
|
|
3407
3402
|
blockquote: css(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteral(["\n margin-bottom: $blockquote-margin-y;\n "]))),
|
|
3408
3403
|
'blockquote --text': css(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteral(["\n font-size: $blockquote-font-size;\n "])))
|
|
3409
3404
|
});
|
|
@@ -3414,14 +3409,14 @@ const Blockquote = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3414
3409
|
textStyle
|
|
3415
3410
|
} = props,
|
|
3416
3411
|
elementProps = _objectWithoutProperties(props, _excluded$1k);
|
|
3417
|
-
const classes = getStyles(styles$
|
|
3418
|
-
const textClasses = getStyles(styles$
|
|
3412
|
+
const classes = getStyles(styles$15, ['blockquote']);
|
|
3413
|
+
const textClasses = getStyles(styles$15, ['blockquote --text']);
|
|
3419
3414
|
|
|
3420
3415
|
// Accessiblity role blockquote is only supported on web.
|
|
3421
3416
|
const role = Platform.OS === 'web' ? 'blockquote' : null;
|
|
3422
3417
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3423
3418
|
ref: ref,
|
|
3424
|
-
|
|
3419
|
+
role: role,
|
|
3425
3420
|
style: [classes, style],
|
|
3426
3421
|
textStyle: [textClasses, textStyle]
|
|
3427
3422
|
}), children);
|
|
@@ -3440,7 +3435,7 @@ const propTypes$1n = {
|
|
|
3440
3435
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3441
3436
|
styleName: PropTypes.any
|
|
3442
3437
|
};
|
|
3443
|
-
const styles$
|
|
3438
|
+
const styles$14 = StyleSheet.create({
|
|
3444
3439
|
body: css(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteral(["\n background-color: $body-bg;\n flex-grow: 1; // added for bootstrap-rn\n flex-shrink: 1; // added for bootstrap-rn\n "]))),
|
|
3445
3440
|
'body --text': css(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteral(["\n color: $body-color;\n text-align: $body-text-align;\n "])))
|
|
3446
3441
|
});
|
|
@@ -3452,8 +3447,8 @@ const Body = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3452
3447
|
styleName
|
|
3453
3448
|
} = props,
|
|
3454
3449
|
elementProps = _objectWithoutProperties(props, _excluded$1j);
|
|
3455
|
-
const classes = getStyles(styles$
|
|
3456
|
-
const textClasses = getStyles(styles$
|
|
3450
|
+
const classes = getStyles(styles$14, ['body']);
|
|
3451
|
+
const textClasses = getStyles(styles$14, ['body --text']);
|
|
3457
3452
|
const media = useMedia();
|
|
3458
3453
|
const resolveStyle = useStyle([classes, style], styleName);
|
|
3459
3454
|
const resolveTextStyle = useStyle([textClasses, textStyle]);
|
|
@@ -3482,7 +3477,7 @@ const propTypes$1m = {
|
|
|
3482
3477
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3483
3478
|
textStyle: PropTypes.any
|
|
3484
3479
|
};
|
|
3485
|
-
const styles$
|
|
3480
|
+
const styles$13 = StyleSheet.create({
|
|
3486
3481
|
'.card-body': css(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteral(["\n // flex: 1 1 auto;\n padding: $card-spacer-y $card-spacer-x;\n "]))),
|
|
3487
3482
|
'.card-body --text': css(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteral(["\n color: $card-color;\n "])))
|
|
3488
3483
|
});
|
|
@@ -3493,8 +3488,8 @@ const CardBody = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3493
3488
|
textStyle
|
|
3494
3489
|
} = props,
|
|
3495
3490
|
elementProps = _objectWithoutProperties(props, _excluded$1i);
|
|
3496
|
-
const classes = getStyles(styles$
|
|
3497
|
-
const textClasses = getStyles(styles$
|
|
3491
|
+
const classes = getStyles(styles$13, ['.card-body']);
|
|
3492
|
+
const textClasses = getStyles(styles$13, [".card-body --text"]);
|
|
3498
3493
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3499
3494
|
ref: ref,
|
|
3500
3495
|
style: [classes, style],
|
|
@@ -3513,7 +3508,7 @@ const propTypes$1l = {
|
|
|
3513
3508
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3514
3509
|
textStyle: PropTypes.any
|
|
3515
3510
|
};
|
|
3516
|
-
const styles$
|
|
3511
|
+
const styles$12 = StyleSheet.create({
|
|
3517
3512
|
'.card-header': css(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteral(["\n padding: $card-cap-padding-y $card-cap-padding-x;\n background-color: $card-cap-bg;\n border-bottom-width: $card-border-width;\n border-style: solid;\n border-color: $card-border-color;\n border-radius: $card-inner-border-radius $card-inner-border-radius 0 0;\n "]))),
|
|
3518
3513
|
'.card-header --text': css(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteral(["\n margin-bottom: 0; // Removes the default margin-bottom of <hN>\n color: $card-cap-color;\n "])))
|
|
3519
3514
|
});
|
|
@@ -3524,8 +3519,8 @@ const CardHeader = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3524
3519
|
textStyle
|
|
3525
3520
|
} = props,
|
|
3526
3521
|
elementProps = _objectWithoutProperties(props, _excluded$1h);
|
|
3527
|
-
const classes = getStyles(styles$
|
|
3528
|
-
const textClasses = getStyles(styles$
|
|
3522
|
+
const classes = getStyles(styles$12, ['.card-header']);
|
|
3523
|
+
const textClasses = getStyles(styles$12, ['.card-header --text']);
|
|
3529
3524
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3530
3525
|
ref: ref,
|
|
3531
3526
|
style: [classes, style],
|
|
@@ -3544,7 +3539,7 @@ const propTypes$1k = {
|
|
|
3544
3539
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3545
3540
|
textStyle: PropTypes.any
|
|
3546
3541
|
};
|
|
3547
|
-
const styles$
|
|
3542
|
+
const styles$11 = StyleSheet.create({
|
|
3548
3543
|
'.card-footer': css(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteral(["\n padding: $card-cap-padding-y $card-cap-padding-x;\n background-color: $card-cap-bg;\n border-top-width: $card-border-width;\n border-style: solid;\n border-color: $card-border-color;\n border-radius: 0 0 $card-inner-border-radius $card-inner-border-radius;\n "]))),
|
|
3549
3544
|
'.card-footer --text': css(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteral(["\n color: $card-cap-color;\n "])))
|
|
3550
3545
|
});
|
|
@@ -3555,8 +3550,8 @@ const CardFooter = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3555
3550
|
textStyle
|
|
3556
3551
|
} = props,
|
|
3557
3552
|
elementProps = _objectWithoutProperties(props, _excluded$1g);
|
|
3558
|
-
const classes = getStyles(styles$
|
|
3559
|
-
const textClasses = getStyles(styles$
|
|
3553
|
+
const classes = getStyles(styles$11, ['.card-footer']);
|
|
3554
|
+
const textClasses = getStyles(styles$11, ['.card-footer --text']);
|
|
3560
3555
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3561
3556
|
ref: ref,
|
|
3562
3557
|
style: [classes, style],
|
|
@@ -3573,7 +3568,7 @@ const propTypes$1j = {
|
|
|
3573
3568
|
// eslint-disable-next-line react/forbid-prop-types
|
|
3574
3569
|
style: PropTypes.any
|
|
3575
3570
|
};
|
|
3576
|
-
const styles$
|
|
3571
|
+
const styles$10 = StyleSheet.create({
|
|
3577
3572
|
'.card': css(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n flex-direction: column;\n min-width: 0;\n height: $card-height;\n // word-wrap: break-word;\n background-color: $card-bg;\n // background-clip: border-box;\n border: $card-border-width solid $card-border-color;\n border-radius: $card-border-radius;\n // @include box-shadow($card-box-shadow);\n "])))
|
|
3578
3573
|
});
|
|
3579
3574
|
const Card = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
@@ -3582,7 +3577,7 @@ const Card = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3582
3577
|
style
|
|
3583
3578
|
} = props,
|
|
3584
3579
|
elementProps = _objectWithoutProperties(props, _excluded$1f);
|
|
3585
|
-
const classes = getStyles(styles$
|
|
3580
|
+
const classes = getStyles(styles$10, ['.card']);
|
|
3586
3581
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
3587
3582
|
ref: ref,
|
|
3588
3583
|
style: [classes, style]
|
|
@@ -3600,7 +3595,25 @@ ModalContext.displayName = 'ModalContext';
|
|
|
3600
3595
|
const OffcanvasContext = /*#__PURE__*/React.createContext();
|
|
3601
3596
|
OffcanvasContext.displayName = 'OffcanvasContext';
|
|
3602
3597
|
|
|
3603
|
-
|
|
3598
|
+
// The assumed background styles are typed as followed:
|
|
3599
|
+
//
|
|
3600
|
+
// type Position = 'center' | 'left' | 'right' | 'top' | 'bottom';
|
|
3601
|
+
// type PositionX = 'center' | 'left' | 'right';
|
|
3602
|
+
// type PositionY = 'center' | 'top' | 'bottom';
|
|
3603
|
+
//
|
|
3604
|
+
// type BackgroundStyles = {
|
|
3605
|
+
// backgroundImage: string,
|
|
3606
|
+
// backgroundSize: 'contain' | 'cover' | string | number,
|
|
3607
|
+
// backgroundPosition: Position,
|
|
3608
|
+
// backgroundPositionX:
|
|
3609
|
+
// | PositionX
|
|
3610
|
+
// | { position: PositionX, offset: string | number },
|
|
3611
|
+
// backgroundPositionY:
|
|
3612
|
+
// | PositionY
|
|
3613
|
+
// | { position: PositionY, offset: string | number },
|
|
3614
|
+
// };
|
|
3615
|
+
|
|
3616
|
+
const styles$$ = StyleSheet$1.create({
|
|
3604
3617
|
reset: {
|
|
3605
3618
|
// Background repeat is not supported on native yet.
|
|
3606
3619
|
backgroundRepeat: 'no-repeat'
|
|
@@ -3662,7 +3675,7 @@ const resolveBackgroundPosition = style => {
|
|
|
3662
3675
|
function useBackgroundWeb(style) {
|
|
3663
3676
|
const flattenedStyle = StyleSheet$1.flatten(style);
|
|
3664
3677
|
return {
|
|
3665
|
-
style: [flattenedStyle, styles
|
|
3678
|
+
style: [flattenedStyle, styles$$.reset, {
|
|
3666
3679
|
// Transform background size
|
|
3667
3680
|
backgroundSize: resolveBackgroundSize(flattenedStyle),
|
|
3668
3681
|
// Workaround, because some browsers do not support two-value syntax:
|
|
@@ -3675,198 +3688,6 @@ function useBackgroundWeb(style) {
|
|
|
3675
3688
|
};
|
|
3676
3689
|
}
|
|
3677
3690
|
|
|
3678
|
-
const styles$$ = StyleSheet$1.create({
|
|
3679
|
-
container: {
|
|
3680
|
-
overflow: 'hidden'
|
|
3681
|
-
},
|
|
3682
|
-
object: {
|
|
3683
|
-
aspectRatio: 1
|
|
3684
|
-
}
|
|
3685
|
-
});
|
|
3686
|
-
const horizontalPositions = {
|
|
3687
|
-
left: function () {
|
|
3688
|
-
let offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
3689
|
-
return {
|
|
3690
|
-
alignItems: I18nManager.isRTL ? 'flex-end' : 'flex-start',
|
|
3691
|
-
paddingLeft: offset
|
|
3692
|
-
};
|
|
3693
|
-
},
|
|
3694
|
-
right: function () {
|
|
3695
|
-
let offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
3696
|
-
return {
|
|
3697
|
-
alignItems: I18nManager.isRTL ? 'flex-start' : 'flex-end',
|
|
3698
|
-
paddingRight: offset
|
|
3699
|
-
};
|
|
3700
|
-
},
|
|
3701
|
-
center: offset => {
|
|
3702
|
-
if (offset !== undefined) {
|
|
3703
|
-
return null;
|
|
3704
|
-
}
|
|
3705
|
-
return {
|
|
3706
|
-
alignItems: 'center'
|
|
3707
|
-
};
|
|
3708
|
-
}
|
|
3709
|
-
};
|
|
3710
|
-
const verticalPositions = {
|
|
3711
|
-
top: function () {
|
|
3712
|
-
let offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
3713
|
-
return {
|
|
3714
|
-
justifyContent: 'flex-start',
|
|
3715
|
-
paddingTop: offset
|
|
3716
|
-
};
|
|
3717
|
-
},
|
|
3718
|
-
bottom: function () {
|
|
3719
|
-
let offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
3720
|
-
return {
|
|
3721
|
-
justifyContent: 'flex-end',
|
|
3722
|
-
paddingBottom: offset
|
|
3723
|
-
};
|
|
3724
|
-
},
|
|
3725
|
-
center: offset => {
|
|
3726
|
-
if (offset !== undefined) {
|
|
3727
|
-
return null;
|
|
3728
|
-
}
|
|
3729
|
-
return {
|
|
3730
|
-
justifyContent: 'center'
|
|
3731
|
-
};
|
|
3732
|
-
}
|
|
3733
|
-
};
|
|
3734
|
-
const getXml = value => {
|
|
3735
|
-
const match = value.match(/^url\("data:image\/svg\+xml,(.*?)"\)$/);
|
|
3736
|
-
if (!match) {
|
|
3737
|
-
return null;
|
|
3738
|
-
}
|
|
3739
|
-
return decodeURIComponent(match[1]);
|
|
3740
|
-
};
|
|
3741
|
-
const transforms = {
|
|
3742
|
-
backgroundSize(value) {
|
|
3743
|
-
if (value === 'cover') {
|
|
3744
|
-
return {
|
|
3745
|
-
width: '100%'
|
|
3746
|
-
// TODO: Support cover for views with height > width.
|
|
3747
|
-
// height: '100%',
|
|
3748
|
-
};
|
|
3749
|
-
}
|
|
3750
|
-
|
|
3751
|
-
if (value === 'contain') {
|
|
3752
|
-
return {
|
|
3753
|
-
width: '100%',
|
|
3754
|
-
height: '100%'
|
|
3755
|
-
};
|
|
3756
|
-
}
|
|
3757
|
-
const {
|
|
3758
|
-
width,
|
|
3759
|
-
height = width
|
|
3760
|
-
} = value;
|
|
3761
|
-
return {
|
|
3762
|
-
width,
|
|
3763
|
-
height
|
|
3764
|
-
};
|
|
3765
|
-
},
|
|
3766
|
-
backgroundPosition(value) {
|
|
3767
|
-
if (value === 'center') {
|
|
3768
|
-
return {
|
|
3769
|
-
alignItems: 'center',
|
|
3770
|
-
justifyContent: 'center'
|
|
3771
|
-
};
|
|
3772
|
-
}
|
|
3773
|
-
if (horizontalPositions[value]) {
|
|
3774
|
-
return _objectSpread2(_objectSpread2({}, horizontalPositions[value]()), {}, {
|
|
3775
|
-
justifyContent: 'center'
|
|
3776
|
-
});
|
|
3777
|
-
}
|
|
3778
|
-
if (verticalPositions[value]) {
|
|
3779
|
-
return _objectSpread2({
|
|
3780
|
-
alignItems: 'center'
|
|
3781
|
-
}, verticalPositions[value]());
|
|
3782
|
-
}
|
|
3783
|
-
return null;
|
|
3784
|
-
},
|
|
3785
|
-
backgroundPositionX(value) {
|
|
3786
|
-
const {
|
|
3787
|
-
position = 'left',
|
|
3788
|
-
offset
|
|
3789
|
-
} = typeof value === 'object' ? value : {
|
|
3790
|
-
position: value
|
|
3791
|
-
};
|
|
3792
|
-
if (!horizontalPositions[position]) {
|
|
3793
|
-
return null;
|
|
3794
|
-
}
|
|
3795
|
-
return horizontalPositions[position](offset);
|
|
3796
|
-
},
|
|
3797
|
-
backgroundPositionY(value) {
|
|
3798
|
-
const {
|
|
3799
|
-
position = 'top',
|
|
3800
|
-
offset
|
|
3801
|
-
} = typeof value === 'object' ? value : {
|
|
3802
|
-
position: value
|
|
3803
|
-
};
|
|
3804
|
-
if (!verticalPositions[position]) {
|
|
3805
|
-
return null;
|
|
3806
|
-
}
|
|
3807
|
-
return verticalPositions[position](offset);
|
|
3808
|
-
}
|
|
3809
|
-
};
|
|
3810
|
-
function useBackgroundNative(style) {
|
|
3811
|
-
const flattenedStyle = StyleSheet$1.flatten(style);
|
|
3812
|
-
const background = {
|
|
3813
|
-
containerStyle: {},
|
|
3814
|
-
objectStyle: {},
|
|
3815
|
-
xml: null
|
|
3816
|
-
};
|
|
3817
|
-
Object.entries(flattenedStyle).forEach(_ref => {
|
|
3818
|
-
let [key, value] = _ref;
|
|
3819
|
-
if (!value) {
|
|
3820
|
-
return;
|
|
3821
|
-
}
|
|
3822
|
-
if (key === 'backgroundImage') {
|
|
3823
|
-
background.xml = getXml(value);
|
|
3824
|
-
} else if (key === 'backgroundSize') {
|
|
3825
|
-
Object.assign(background.objectStyle, transforms[key](value));
|
|
3826
|
-
} else if (key === 'backgroundPosition' || key === 'backgroundPositionX' || key === 'backgroundPositionY') {
|
|
3827
|
-
Object.assign(background.containerStyle, transforms[key](value));
|
|
3828
|
-
}
|
|
3829
|
-
});
|
|
3830
|
-
return {
|
|
3831
|
-
style: flattenedStyle,
|
|
3832
|
-
element: /*#__PURE__*/React.createElement(View$1, {
|
|
3833
|
-
style: [StyleSheet$1.absoluteFill, styles$$.container, background.containerStyle]
|
|
3834
|
-
}, /*#__PURE__*/React.createElement(View$1, {
|
|
3835
|
-
style: [styles$$.object, background.objectStyle]
|
|
3836
|
-
}, background.xml && /*#__PURE__*/React.createElement(SvgXml, {
|
|
3837
|
-
xml: background.xml
|
|
3838
|
-
})))
|
|
3839
|
-
};
|
|
3840
|
-
}
|
|
3841
|
-
|
|
3842
|
-
// The assumed background styles are typed as followed:
|
|
3843
|
-
//
|
|
3844
|
-
// type Position = 'center' | 'left' | 'right' | 'top' | 'bottom';
|
|
3845
|
-
// type PositionX = 'center' | 'left' | 'right';
|
|
3846
|
-
// type PositionY = 'center' | 'top' | 'bottom';
|
|
3847
|
-
//
|
|
3848
|
-
// type BackgroundStyles = {
|
|
3849
|
-
// backgroundImage: string,
|
|
3850
|
-
// backgroundSize: 'contain' | 'cover' | string | number,
|
|
3851
|
-
// backgroundPosition: Position,
|
|
3852
|
-
// backgroundPositionX:
|
|
3853
|
-
// | PositionX
|
|
3854
|
-
// | { position: PositionX, offset: string | number },
|
|
3855
|
-
// backgroundPositionY:
|
|
3856
|
-
// | PositionY
|
|
3857
|
-
// | { position: PositionY, offset: string | number },
|
|
3858
|
-
// };
|
|
3859
|
-
|
|
3860
|
-
function useBackground(style, styleName) {
|
|
3861
|
-
// TODO: Use *.web.js / *.native.js file endings to select platforms, but
|
|
3862
|
-
// before we need to make sure that the published bundles are all functional.
|
|
3863
|
-
const useBackgroundForPlatform = Platform.select({
|
|
3864
|
-
web: useBackgroundWeb,
|
|
3865
|
-
default: useBackgroundNative
|
|
3866
|
-
});
|
|
3867
|
-
return useBackgroundForPlatform(style, styleName);
|
|
3868
|
-
}
|
|
3869
|
-
|
|
3870
3691
|
const _excluded$1e = ["children", "disabled", "style", "textStyle", "styleName"];
|
|
3871
3692
|
var _templateObject$_, _templateObject2$J, _templateObject3$o, _templateObject4$l, _templateObject5$i;
|
|
3872
3693
|
const propTypes$1i = {
|
|
@@ -3911,7 +3732,7 @@ const CloseButton = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
3911
3732
|
interaction,
|
|
3912
3733
|
interactionProps
|
|
3913
3734
|
} = useInteractionState(elementProps);
|
|
3914
|
-
const background =
|
|
3735
|
+
const background = useBackgroundWeb(resolveStyle({
|
|
3915
3736
|
media,
|
|
3916
3737
|
interaction
|
|
3917
3738
|
}));
|
|
@@ -3999,8 +3820,8 @@ function useToggleCollapse(props) {
|
|
|
3999
3820
|
if (handlePress) handlePress(event);
|
|
4000
3821
|
context.setVisible(value => !value);
|
|
4001
3822
|
},
|
|
4002
|
-
|
|
4003
|
-
|
|
3823
|
+
'aria-expanded': context.visible,
|
|
3824
|
+
'aria-controls': context.identifier
|
|
4004
3825
|
});
|
|
4005
3826
|
}
|
|
4006
3827
|
|
|
@@ -4022,7 +3843,7 @@ const Collapse = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4022
3843
|
}
|
|
4023
3844
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
4024
3845
|
ref: ref,
|
|
4025
|
-
|
|
3846
|
+
id: identifier
|
|
4026
3847
|
}), children);
|
|
4027
3848
|
});
|
|
4028
3849
|
Collapse.displayName = 'Collapse';
|
|
@@ -4102,7 +3923,7 @@ const propTypes$1e = {
|
|
|
4102
3923
|
// eslint-disable-next-line react/forbid-prop-types
|
|
4103
3924
|
style: PropTypes.any,
|
|
4104
3925
|
// eslint-disable-next-line react/forbid-prop-types
|
|
4105
|
-
|
|
3926
|
+
id: PropTypes.any
|
|
4106
3927
|
};
|
|
4107
3928
|
const styles$Y = StyleSheet$1.create({
|
|
4108
3929
|
reboot: {
|
|
@@ -4131,9 +3952,9 @@ const FormCheckInputWeb = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4131
3952
|
onBlur = () => {},
|
|
4132
3953
|
disabled = false,
|
|
4133
3954
|
style,
|
|
4134
|
-
|
|
3955
|
+
id
|
|
4135
3956
|
} = props;
|
|
4136
|
-
const inputBackground =
|
|
3957
|
+
const inputBackground = useBackgroundWeb(style);
|
|
4137
3958
|
return /*#__PURE__*/React.createElement(Input$1, {
|
|
4138
3959
|
ref: ref,
|
|
4139
3960
|
type: type === 'switch' ? 'checkbox' : type,
|
|
@@ -4145,7 +3966,7 @@ const FormCheckInputWeb = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4145
3966
|
onBlur: onBlur,
|
|
4146
3967
|
disabled: disabled,
|
|
4147
3968
|
style: inputBackground.style,
|
|
4148
|
-
|
|
3969
|
+
id: id
|
|
4149
3970
|
});
|
|
4150
3971
|
});
|
|
4151
3972
|
FormCheckInputWeb.displayName = 'FormCheckInputWeb';
|
|
@@ -4162,7 +3983,7 @@ const propTypes$1d = {
|
|
|
4162
3983
|
// eslint-disable-next-line react/forbid-prop-types
|
|
4163
3984
|
style: PropTypes.any,
|
|
4164
3985
|
// eslint-disable-next-line react/forbid-prop-types
|
|
4165
|
-
|
|
3986
|
+
id: PropTypes.any
|
|
4166
3987
|
};
|
|
4167
3988
|
const FormCheckInputNative = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
4168
3989
|
const {
|
|
@@ -4174,13 +3995,13 @@ const FormCheckInputNative = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4174
3995
|
hitSlop = 8,
|
|
4175
3996
|
disabled = false,
|
|
4176
3997
|
style,
|
|
4177
|
-
|
|
3998
|
+
id
|
|
4178
3999
|
} = props;
|
|
4179
|
-
const inputBackground =
|
|
4000
|
+
const inputBackground = useBackgroundWeb(style);
|
|
4180
4001
|
return /*#__PURE__*/React.createElement(Pressable, {
|
|
4181
4002
|
ref: ref,
|
|
4182
|
-
|
|
4183
|
-
|
|
4003
|
+
role: type,
|
|
4004
|
+
"aria-checked": value,
|
|
4184
4005
|
onPress: () => {
|
|
4185
4006
|
handleValueChange(!value);
|
|
4186
4007
|
},
|
|
@@ -4189,7 +4010,7 @@ const FormCheckInputNative = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4189
4010
|
hitSlop: hitSlop,
|
|
4190
4011
|
disabled: disabled,
|
|
4191
4012
|
style: inputBackground.style,
|
|
4192
|
-
|
|
4013
|
+
id: id
|
|
4193
4014
|
}, inputBackground.element);
|
|
4194
4015
|
});
|
|
4195
4016
|
FormCheckInputNative.displayName = 'FormCheckInputNative';
|
|
@@ -4215,7 +4036,7 @@ const propTypes$1c = {
|
|
|
4215
4036
|
/* eslint-enable */
|
|
4216
4037
|
|
|
4217
4038
|
const styles$X = StyleSheet.create(_objectSpread2(_objectSpread2({
|
|
4218
|
-
'.form-check .form-check-input': css(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteral(["\n $margin-top-double: $
|
|
4039
|
+
'.form-check .form-check-input': css(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteral(["\n $height: $line-height-base * 1rem;\n $margin-top-double: $height - $form-check-input-width;\n\n // float: left;\n // margin-left: $form-check-padding-start * -1;\n margin-top: $margin-top-double * 0.5; // added for bootstrap-rn\n margin-right: $form-check-padding-start - $form-check-input-width; // added for bootstrap-rn\n "]))),
|
|
4219
4040
|
'.form-check-reverse .form-check-input': css(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteral(["\n // float: right;\n // margin-right: $form-check-padding-start * -1;\n margin-right: 0; // added for bootstrap-rn\n // margin-left: 0;\n margin-left: $form-check-padding-start - $form-check-input-width; // added for bootstrap-rn\n "]))),
|
|
4220
4041
|
'.form-check-input': css(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteral(["\n width: $form-check-input-width;\n height: $form-check-input-width;\n // margin-top: ($line-height-base - $form-check-input-width) * 0.5; // line-height minus check height\n // vertical-align: top;\n background-color: $form-check-input-bg;\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n border: $form-check-input-border;\n @include platform(web) {\n appearance: none;\n user-select: none; // added for bootstrap-rn\n color-adjust: exact; // Keep themed appearance for print\n }\n // @include transition($form-check-transition);\n\n &:active {\n // filter: $form-check-input-active-filter;\n }\n\n &:focus {\n border-color: $form-check-input-focus-border;\n @include platform(web) {\n outline-width: 0; // outline: 0;\n box-shadow: $form-check-input-focus-box-shadow;\n }\n }\n "]))),
|
|
4221
4042
|
'.form-check-input[type="checkbox"]': css(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteral(["\n border-radius: $form-check-input-border-radius;\n "]))),
|
|
@@ -4357,7 +4178,7 @@ const Code = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4357
4178
|
const role = Platform.OS === 'web' ? 'code' : null;
|
|
4358
4179
|
return /*#__PURE__*/React.createElement(Text, _extends({}, elementProps, {
|
|
4359
4180
|
ref: ref,
|
|
4360
|
-
|
|
4181
|
+
role: role,
|
|
4361
4182
|
style: [classes, style]
|
|
4362
4183
|
}), children);
|
|
4363
4184
|
});
|
|
@@ -4376,14 +4197,14 @@ function useToggleDropdown(props) {
|
|
|
4376
4197
|
} = props,
|
|
4377
4198
|
restProps = _objectWithoutProperties(props, _excluded$16);
|
|
4378
4199
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
4379
|
-
|
|
4200
|
+
id: context.identifier,
|
|
4380
4201
|
ref: context.toggleRef,
|
|
4381
4202
|
onPress: event => {
|
|
4382
4203
|
if (handlePress) handlePress(event);
|
|
4383
4204
|
context.setVisible(value => !value);
|
|
4384
4205
|
},
|
|
4385
|
-
|
|
4386
|
-
|
|
4206
|
+
'aria-haspopup': true,
|
|
4207
|
+
'aria-expanded': context.visible,
|
|
4387
4208
|
caret: caret === undefined ? {
|
|
4388
4209
|
direction: context.direction
|
|
4389
4210
|
} : caret
|
|
@@ -4660,7 +4481,7 @@ const DropdownMenu = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4660
4481
|
autoClose: autoClose
|
|
4661
4482
|
}), /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
4662
4483
|
ref: concatRefs(dialogRef, ref),
|
|
4663
|
-
|
|
4484
|
+
"aria-labelledby": identifier,
|
|
4664
4485
|
style: [classes, style],
|
|
4665
4486
|
textStyle: [textClasses, textStyle]
|
|
4666
4487
|
}), children));
|
|
@@ -4679,7 +4500,7 @@ const DropdownMenu = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4679
4500
|
autoClose: autoClose
|
|
4680
4501
|
}), /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
4681
4502
|
ref: concatRefs(overlayRef, ref),
|
|
4682
|
-
|
|
4503
|
+
"aria-labelledby": identifier,
|
|
4683
4504
|
style: [classes, overlay.overlayProps.style, {
|
|
4684
4505
|
maxHeight: 'auto',
|
|
4685
4506
|
opacity: overlay.rendered ? 1 : 0
|
|
@@ -4715,8 +4536,8 @@ const Heading$1 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
4715
4536
|
const classes = getStyles(styles$S, ['heading', ".h".concat(size)]);
|
|
4716
4537
|
return /*#__PURE__*/React.createElement(Text, _extends({}, elementProps, {
|
|
4717
4538
|
ref: ref,
|
|
4718
|
-
|
|
4719
|
-
|
|
4539
|
+
role: "heading",
|
|
4540
|
+
"aria-level": size,
|
|
4720
4541
|
style: [classes, style]
|
|
4721
4542
|
}), children);
|
|
4722
4543
|
});
|
|
@@ -5024,7 +4845,7 @@ const Label = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
5024
4845
|
const role = Platform.OS === 'web' ? 'label' : null;
|
|
5025
4846
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
5026
4847
|
ref: concatRefs(forRef, ref),
|
|
5027
|
-
|
|
4848
|
+
role: role
|
|
5028
4849
|
}), children);
|
|
5029
4850
|
});
|
|
5030
4851
|
Label.displayName = 'Label';
|
|
@@ -5225,7 +5046,7 @@ const TextInput = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
5225
5046
|
TextInput.displayName = 'TextInput';
|
|
5226
5047
|
TextInput.propTypes = propTypes$U;
|
|
5227
5048
|
|
|
5228
|
-
const _excluded$R = ["size", "placeholderTextColor", "multiline", "disabled", "valid", "invalid", "
|
|
5049
|
+
const _excluded$R = ["size", "placeholderTextColor", "multiline", "disabled", "valid", "invalid", "readOnly", "selectTextOnFocus", "style"];
|
|
5229
5050
|
var _templateObject$H, _templateObject2$w, _templateObject3$g, _templateObject4$e, _templateObject5$c, _templateObject6$b, _templateObject7$7, _templateObject8$7, _templateObject9$7, _templateObject10$7, _templateObject11$5;
|
|
5230
5051
|
const propTypes$T = {
|
|
5231
5052
|
size: PropTypes.oneOf(['sm', 'lg']),
|
|
@@ -5234,7 +5055,7 @@ const propTypes$T = {
|
|
|
5234
5055
|
disabled: PropTypes.bool,
|
|
5235
5056
|
valid: PropTypes.bool,
|
|
5236
5057
|
invalid: PropTypes.bool,
|
|
5237
|
-
|
|
5058
|
+
readOnly: PropTypes.bool,
|
|
5238
5059
|
selectTextOnFocus: PropTypes.bool,
|
|
5239
5060
|
// eslint-disable-next-line react/forbid-prop-types
|
|
5240
5061
|
style: PropTypes.any
|
|
@@ -5264,7 +5085,7 @@ const styles$G = StyleSheet.create(_objectSpread2({
|
|
|
5264
5085
|
'.form-control:not(textarea)': css(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteral(["\n @include platform(android) {\n height: $input-height; // added for bootstrap-rn\n }\n "]))),
|
|
5265
5086
|
'.form-control-sm:not(textarea)': css(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteral(["\n @include platform(android) {\n height: $input-height-sm; // added for bootstrap-rn\n }\n "]))),
|
|
5266
5087
|
'.form-control-lg:not(textarea)': css(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteral(["\n @include platform(android) {\n height: $input-height-lg; // added for bootstrap-rn\n }\n "]))),
|
|
5267
|
-
'textarea.form-control': css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteral(["\n
|
|
5088
|
+
'textarea.form-control': css(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteral(["\n vertical-align: top; // added for bootstrap-rn\n min-height: $input-height;\n\n @include platform(ios) {\n min-height: $input-height-sm + 8rem; // added for bootstrap-rn\n }\n @include platform(native) {\n line-height: $input-font-size * $input-line-height; // added for bootstrap-rn\n }\n "]))),
|
|
5268
5089
|
'textarea.form-control-sm': css(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteral(["\n min-height: $input-height-sm;\n\n @include platform(ios) {\n // TODO: Adjust ios height to sm size\n min-height: $input-height-sm + 8rem; // added for bootstrap-rn\n }\n @include platform(native) {\n line-height: $input-font-size-sm * $line-height-base; // added for bootstrap-rn\n }\n "]))),
|
|
5269
5090
|
'textarea.form-control-lg': css(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteral(["\n min-height: $input-height-lg;\n\n @include platform(ios) {\n // TODO: Adjust ios height to lg size\n min-height: $input-height-sm + 8rem; // added for bootstrap-rn\n }\n @include platform(native) {\n line-height: $input-font-size-sm * $line-height-base; // added for bootstrap-rn\n }\n "])))
|
|
5270
5091
|
}, each(FORM_VALIDATION_STATES, (state, data) => ({
|
|
@@ -5279,7 +5100,7 @@ const Input = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
5279
5100
|
disabled = false,
|
|
5280
5101
|
valid = false,
|
|
5281
5102
|
invalid = false,
|
|
5282
|
-
|
|
5103
|
+
readOnly = false,
|
|
5283
5104
|
selectTextOnFocus = false,
|
|
5284
5105
|
style
|
|
5285
5106
|
} = modifierProps,
|
|
@@ -5290,7 +5111,7 @@ const Input = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
5290
5111
|
placeholderTextColor: placeholderTextColor,
|
|
5291
5112
|
multiline: multiline,
|
|
5292
5113
|
disabled: disabled,
|
|
5293
|
-
|
|
5114
|
+
readOnly: disabled ? true : readOnly,
|
|
5294
5115
|
selectTextOnFocus: disabled ? false : selectTextOnFocus,
|
|
5295
5116
|
style: [classes, style]
|
|
5296
5117
|
}));
|
|
@@ -5333,7 +5154,7 @@ function useTrigger(rawTrigger, props, elementProps, ref) {
|
|
|
5333
5154
|
targetProps: _objectSpread2(_objectSpread2({
|
|
5334
5155
|
ref: concatRefs(targetRef, ref)
|
|
5335
5156
|
}, optional(visible, {
|
|
5336
|
-
|
|
5157
|
+
'aria-describedby': identifier
|
|
5337
5158
|
})), {}, {
|
|
5338
5159
|
onPress: event => {
|
|
5339
5160
|
const handleHoverAsPress = (Platform.OS === 'android' || Platform.OS === 'ios') && trigger.includes('hover');
|
|
@@ -5393,7 +5214,7 @@ function useTrigger(rawTrigger, props, elementProps, ref) {
|
|
|
5393
5214
|
}),
|
|
5394
5215
|
targetRef,
|
|
5395
5216
|
templateProps: {
|
|
5396
|
-
|
|
5217
|
+
id: identifier
|
|
5397
5218
|
}
|
|
5398
5219
|
};
|
|
5399
5220
|
}
|
|
@@ -5554,7 +5375,7 @@ const Popover = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
5554
5375
|
const role = Platform.OS === 'web' ? 'tooltip' : null;
|
|
5555
5376
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
5556
5377
|
ref: ref,
|
|
5557
|
-
|
|
5378
|
+
role: role,
|
|
5558
5379
|
style: [classes, style],
|
|
5559
5380
|
textStyle: [textClasses, textStyle]
|
|
5560
5381
|
}), /*#__PURE__*/React.createElement(PopoverContext.Provider, {
|
|
@@ -5751,7 +5572,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
5751
5572
|
const role = Platform.OS === 'web' ? 'tooltip' : null;
|
|
5752
5573
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
5753
5574
|
ref: ref,
|
|
5754
|
-
|
|
5575
|
+
role: role,
|
|
5755
5576
|
style: [classes, style],
|
|
5756
5577
|
textStyle: [textClasses, textStyle]
|
|
5757
5578
|
}), /*#__PURE__*/React.createElement(TooltipContext.Provider, {
|
|
@@ -5927,7 +5748,7 @@ const ListGroupItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
5927
5748
|
const role = Platform.OS === 'web' ? 'listitem' : null;
|
|
5928
5749
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
5929
5750
|
ref: ref,
|
|
5930
|
-
|
|
5751
|
+
role: role,
|
|
5931
5752
|
style: [classes, style],
|
|
5932
5753
|
textStyle: [textClasses, textStyle]
|
|
5933
5754
|
}), children);
|
|
@@ -5988,7 +5809,7 @@ const ListGroupItemAction = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
5988
5809
|
const role = Platform.OS === 'web' ? 'listitem' : null;
|
|
5989
5810
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, elementProps, {
|
|
5990
5811
|
ref: modifierRef,
|
|
5991
|
-
|
|
5812
|
+
role: role,
|
|
5992
5813
|
active: active,
|
|
5993
5814
|
disabled: disabled,
|
|
5994
5815
|
style: [...classes, style],
|
|
@@ -6035,7 +5856,7 @@ const ListGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
6035
5856
|
const tabbable = false;
|
|
6036
5857
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
6037
5858
|
ref: ref,
|
|
6038
|
-
|
|
5859
|
+
role: getRole$1(tabbable),
|
|
6039
5860
|
style: [classes, style]
|
|
6040
5861
|
}), /*#__PURE__*/React.createElement(ListGroupContext.Provider, {
|
|
6041
5862
|
value: {
|
|
@@ -6097,7 +5918,7 @@ const Link = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
6097
5918
|
handleMouseLeaveInteraction(event);
|
|
6098
5919
|
},
|
|
6099
5920
|
ref: actionRef,
|
|
6100
|
-
|
|
5921
|
+
role: getRole$2(actionProps),
|
|
6101
5922
|
accessible: true,
|
|
6102
5923
|
style: resolveStyle({
|
|
6103
5924
|
media,
|
|
@@ -6562,7 +6383,7 @@ const Nav = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
6562
6383
|
navbar && '.navbar-nav', navbar && navbar.expand && ".navbar-expand".concat(navbar.expand === true ? '' : "-".concat(navbar.expand), " .navbar-nav")]);
|
|
6563
6384
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
6564
6385
|
ref: ref,
|
|
6565
|
-
|
|
6386
|
+
role: getRole(tabbable, navbar),
|
|
6566
6387
|
style: [classes, style]
|
|
6567
6388
|
}), /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6568
6389
|
value: {
|
|
@@ -6693,14 +6514,14 @@ function useToggleNavbar(props) {
|
|
|
6693
6514
|
} = props,
|
|
6694
6515
|
restProps = _objectWithoutProperties(props, _excluded$q);
|
|
6695
6516
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
6696
|
-
|
|
6517
|
+
id: context.identifier,
|
|
6697
6518
|
onPress: event => {
|
|
6698
6519
|
if (handlePress) handlePress(event);
|
|
6699
6520
|
context.setExpanded(value => !value);
|
|
6700
6521
|
},
|
|
6701
6522
|
accessibilitControls: context.identifier,
|
|
6702
|
-
|
|
6703
|
-
|
|
6523
|
+
'aria-expanded': context.expanded,
|
|
6524
|
+
'aria-label': 'Toggle navigation'
|
|
6704
6525
|
});
|
|
6705
6526
|
}
|
|
6706
6527
|
|
|
@@ -6744,7 +6565,7 @@ const NavbarToggler = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
6744
6565
|
const textClasses = getStyles(styles$l, ['.navbar-toggler --text', ".navbar-".concat(variant, " .navbar-toggler --text")]);
|
|
6745
6566
|
const iconClasses = getStyles(styles$l, ['.navbar-toggler-icon', ".navbar-".concat(variant, " .navbar-toggler-icon")]);
|
|
6746
6567
|
const resolveIconStyle = useStyle([iconClasses, iconStyle]);
|
|
6747
|
-
const background =
|
|
6568
|
+
const background = useBackgroundWeb(resolveIconStyle({
|
|
6748
6569
|
media
|
|
6749
6570
|
}));
|
|
6750
6571
|
return /*#__PURE__*/React.createElement(Pressable, _extends({}, elementProps, {
|
|
@@ -6783,7 +6604,7 @@ function useDismissNavbar(props) {
|
|
|
6783
6604
|
if (handlePress) handlePress(event);
|
|
6784
6605
|
context.setExpanded(false);
|
|
6785
6606
|
},
|
|
6786
|
-
|
|
6607
|
+
'aria-label': 'Close'
|
|
6787
6608
|
});
|
|
6788
6609
|
}
|
|
6789
6610
|
|
|
@@ -7072,7 +6893,7 @@ const PickerWeb = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7072
6893
|
style
|
|
7073
6894
|
} = props,
|
|
7074
6895
|
elementProps = _objectWithoutProperties(props, _excluded$i);
|
|
7075
|
-
const background =
|
|
6896
|
+
const background = useBackgroundWeb(style);
|
|
7076
6897
|
const showPlaceholder = selectedValue === undefined || selectedValue === null;
|
|
7077
6898
|
return /*#__PURE__*/React.createElement(Picker$1, _extends({}, elementProps, {
|
|
7078
6899
|
ref: ref,
|
|
@@ -7180,7 +7001,7 @@ const PickerNative = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7180
7001
|
style
|
|
7181
7002
|
} = props,
|
|
7182
7003
|
elementProps = _objectWithoutProperties(props, _excluded$h);
|
|
7183
|
-
const background =
|
|
7004
|
+
const background = useBackgroundWeb(style);
|
|
7184
7005
|
const [visible, setVisible] = useState(false);
|
|
7185
7006
|
const textStyle = extractTextStyles(background.style);
|
|
7186
7007
|
const showPlaceholder = selectedValue === undefined || selectedValue === null;
|
|
@@ -7193,7 +7014,7 @@ const PickerNative = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7193
7014
|
};
|
|
7194
7015
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Pressable, _extends({}, elementProps, {
|
|
7195
7016
|
ref: ref,
|
|
7196
|
-
|
|
7017
|
+
role: "combobox",
|
|
7197
7018
|
onPress: () => {
|
|
7198
7019
|
setVisible(true);
|
|
7199
7020
|
},
|
|
@@ -7274,7 +7095,7 @@ const PickerNativeItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7274
7095
|
onPress: () => {
|
|
7275
7096
|
handleValueChange(value);
|
|
7276
7097
|
},
|
|
7277
|
-
|
|
7098
|
+
"aria-selected": selected,
|
|
7278
7099
|
disabled: disabled,
|
|
7279
7100
|
style: resolveStyle({
|
|
7280
7101
|
media
|
|
@@ -7466,10 +7287,10 @@ const ProgressBar = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7466
7287
|
// composite component
|
|
7467
7288
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
7468
7289
|
ref: ref,
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7290
|
+
role: "progressbar",
|
|
7291
|
+
"aria-valuenow": value,
|
|
7292
|
+
"aria-valuemin": min,
|
|
7293
|
+
"aria-valuemax": max,
|
|
7473
7294
|
style: [classes, style, {
|
|
7474
7295
|
width: "".concat(getPercentage(value, min, max), "%")
|
|
7475
7296
|
}]
|
|
@@ -7551,7 +7372,7 @@ const Heading = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7551
7372
|
const role = Platform.OS === 'web' ? 'paragraph' : null;
|
|
7552
7373
|
return /*#__PURE__*/React.createElement(Text, _extends({}, elementProps, {
|
|
7553
7374
|
ref: ref,
|
|
7554
|
-
|
|
7375
|
+
role: role,
|
|
7555
7376
|
style: [classes, style]
|
|
7556
7377
|
}), children);
|
|
7557
7378
|
});
|
|
@@ -7594,7 +7415,7 @@ const PaginationItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7594
7415
|
const role = Platform.OS === 'web' ? 'listitem' : null;
|
|
7595
7416
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
7596
7417
|
ref: ref,
|
|
7597
|
-
|
|
7418
|
+
role: role,
|
|
7598
7419
|
style: [classes, style],
|
|
7599
7420
|
textStyle: [textClasses, textStyle]
|
|
7600
7421
|
}), children);
|
|
@@ -7602,43 +7423,43 @@ const PaginationItem = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7602
7423
|
PaginationItem.displayName = 'PaginationItem';
|
|
7603
7424
|
PaginationItem.propTypes = propTypes$c;
|
|
7604
7425
|
|
|
7605
|
-
/*
|
|
7606
|
-
$pagination-padding-y: .375rem;
|
|
7607
|
-
$pagination-padding-x: .75rem;
|
|
7608
|
-
$pagination-padding-y-sm: .25rem;
|
|
7609
|
-
$pagination-padding-x-sm: .5rem;
|
|
7610
|
-
$pagination-padding-y-lg: .75rem;
|
|
7611
|
-
$pagination-padding-x-lg: 1.5rem;
|
|
7612
|
-
|
|
7613
|
-
$pagination-color: $link-color;
|
|
7614
|
-
$pagination-bg: $white;
|
|
7615
|
-
$pagination-border-width: $border-width;
|
|
7616
|
-
$pagination-border-radius: $border-radius;
|
|
7617
|
-
$pagination-margin-start: -$pagination-border-width;
|
|
7618
|
-
$pagination-border-color: $gray-300;
|
|
7619
|
-
|
|
7620
|
-
$pagination-focus-color: $link-hover-color;
|
|
7621
|
-
$pagination-focus-bg: $gray-200;
|
|
7622
|
-
$pagination-focus-box-shadow: $input-btn-focus-box-shadow;
|
|
7623
|
-
$pagination-focus-outline: 0;
|
|
7624
|
-
|
|
7625
|
-
$pagination-hover-color: $link-hover-color;
|
|
7626
|
-
$pagination-hover-bg: $gray-200;
|
|
7627
|
-
$pagination-hover-border-color: $gray-300;
|
|
7628
|
-
|
|
7629
|
-
$pagination-active-color: $component-active-color;
|
|
7630
|
-
$pagination-active-bg: $component-active-bg;
|
|
7631
|
-
$pagination-active-border-color: $pagination-active-bg;
|
|
7632
|
-
|
|
7633
|
-
$pagination-disabled-color: $gray-600;
|
|
7634
|
-
$pagination-disabled-bg: $white;
|
|
7635
|
-
$pagination-disabled-border-color: $gray-300;
|
|
7636
|
-
|
|
7637
|
-
$pagination-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
|
|
7638
|
-
|
|
7639
|
-
$pagination-border-radius-sm: $border-radius-sm;
|
|
7640
|
-
$pagination-border-radius-lg: $border-radius-lg;
|
|
7641
|
-
|
|
7426
|
+
/*
|
|
7427
|
+
$pagination-padding-y: .375rem;
|
|
7428
|
+
$pagination-padding-x: .75rem;
|
|
7429
|
+
$pagination-padding-y-sm: .25rem;
|
|
7430
|
+
$pagination-padding-x-sm: .5rem;
|
|
7431
|
+
$pagination-padding-y-lg: .75rem;
|
|
7432
|
+
$pagination-padding-x-lg: 1.5rem;
|
|
7433
|
+
|
|
7434
|
+
$pagination-color: $link-color;
|
|
7435
|
+
$pagination-bg: $white;
|
|
7436
|
+
$pagination-border-width: $border-width;
|
|
7437
|
+
$pagination-border-radius: $border-radius;
|
|
7438
|
+
$pagination-margin-start: -$pagination-border-width;
|
|
7439
|
+
$pagination-border-color: $gray-300;
|
|
7440
|
+
|
|
7441
|
+
$pagination-focus-color: $link-hover-color;
|
|
7442
|
+
$pagination-focus-bg: $gray-200;
|
|
7443
|
+
$pagination-focus-box-shadow: $input-btn-focus-box-shadow;
|
|
7444
|
+
$pagination-focus-outline: 0;
|
|
7445
|
+
|
|
7446
|
+
$pagination-hover-color: $link-hover-color;
|
|
7447
|
+
$pagination-hover-bg: $gray-200;
|
|
7448
|
+
$pagination-hover-border-color: $gray-300;
|
|
7449
|
+
|
|
7450
|
+
$pagination-active-color: $component-active-color;
|
|
7451
|
+
$pagination-active-bg: $component-active-bg;
|
|
7452
|
+
$pagination-active-border-color: $pagination-active-bg;
|
|
7453
|
+
|
|
7454
|
+
$pagination-disabled-color: $gray-600;
|
|
7455
|
+
$pagination-disabled-bg: $white;
|
|
7456
|
+
$pagination-disabled-border-color: $gray-300;
|
|
7457
|
+
|
|
7458
|
+
$pagination-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
|
|
7459
|
+
|
|
7460
|
+
$pagination-border-radius-sm: $border-radius-sm;
|
|
7461
|
+
$pagination-border-radius-lg: $border-radius-lg;
|
|
7462
|
+
|
|
7642
7463
|
*/
|
|
7643
7464
|
|
|
7644
7465
|
const _excluded$a = ["children", "style"];
|
|
@@ -7662,7 +7483,7 @@ const Pagination = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7662
7483
|
const role = Platform.OS === 'web' ? 'list' : null;
|
|
7663
7484
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
7664
7485
|
ref: ref,
|
|
7665
|
-
|
|
7486
|
+
role: role,
|
|
7666
7487
|
style: [classes, style]
|
|
7667
7488
|
}), list);
|
|
7668
7489
|
});
|
|
@@ -7690,7 +7511,7 @@ const RadioGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7690
7511
|
elementProps = _objectWithoutProperties(props, _excluded$9);
|
|
7691
7512
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
7692
7513
|
ref: ref,
|
|
7693
|
-
|
|
7514
|
+
role: "radiogroup"
|
|
7694
7515
|
}), /*#__PURE__*/React.createElement(RadioContext.Provider, {
|
|
7695
7516
|
value: {
|
|
7696
7517
|
selectedValue,
|
|
@@ -7791,21 +7612,17 @@ const getAnimationStyle = (variant, animation) => {
|
|
|
7791
7612
|
switch (variant) {
|
|
7792
7613
|
case 'border':
|
|
7793
7614
|
return {
|
|
7794
|
-
transform:
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
})
|
|
7799
|
-
}]
|
|
7615
|
+
transform: animation.interpolate({
|
|
7616
|
+
inputRange: [0, 1],
|
|
7617
|
+
outputRange: ['rotate(0deg)', 'rotate(360deg)']
|
|
7618
|
+
})
|
|
7800
7619
|
};
|
|
7801
7620
|
case 'grow':
|
|
7802
7621
|
return {
|
|
7803
|
-
transform:
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
})
|
|
7808
|
-
}],
|
|
7622
|
+
transform: animation.interpolate({
|
|
7623
|
+
inputRange: [0, 0.5, 1],
|
|
7624
|
+
outputRange: ['scale(0)', 'scale(1)', 'scale(1)']
|
|
7625
|
+
}),
|
|
7809
7626
|
opacity: animation.interpolate({
|
|
7810
7627
|
inputRange: [0, 0.5, 1],
|
|
7811
7628
|
outputRange: [0, 1, 0]
|
|
@@ -7837,8 +7654,8 @@ const Spinner = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7837
7654
|
}, []);
|
|
7838
7655
|
return /*#__PURE__*/React.createElement(AnimatedView, _extends({}, elementProps, {
|
|
7839
7656
|
ref: ref,
|
|
7840
|
-
|
|
7841
|
-
|
|
7657
|
+
role: role,
|
|
7658
|
+
"aria-hidden": true,
|
|
7842
7659
|
style: [classes, getAnimationStyle(variant, animation), style]
|
|
7843
7660
|
}));
|
|
7844
7661
|
});
|
|
@@ -7914,9 +7731,9 @@ const TabPane = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
7914
7731
|
const role = Platform.OS === 'web' ? 'tabpanel' : null;
|
|
7915
7732
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
7916
7733
|
ref: ref,
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7734
|
+
id: id,
|
|
7735
|
+
role: role,
|
|
7736
|
+
"aria-labelledby": "".concat(id, "-tab"),
|
|
7920
7737
|
style: [classes, style]
|
|
7921
7738
|
}));
|
|
7922
7739
|
});
|
|
@@ -7935,16 +7752,16 @@ function useToggleTab(props) {
|
|
|
7935
7752
|
const id = getElementId(context.identifier, target);
|
|
7936
7753
|
const active = context.activeTarget === target;
|
|
7937
7754
|
return _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
7938
|
-
|
|
7755
|
+
id: "".concat(id, "-tab"),
|
|
7939
7756
|
onPress: event => {
|
|
7940
7757
|
if (handlePress) handlePress(event);
|
|
7941
7758
|
event.preventDefault();
|
|
7942
7759
|
context.setActiveTarget(target);
|
|
7943
7760
|
},
|
|
7944
7761
|
active,
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7762
|
+
role: 'tab',
|
|
7763
|
+
'aria-controls': id,
|
|
7764
|
+
'aria-selected': active
|
|
7948
7765
|
});
|
|
7949
7766
|
}
|
|
7950
7767
|
|
|
@@ -8047,9 +7864,9 @@ const Toast = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
8047
7864
|
const textClasses = getStyles(styles$1, ['.toast --text']);
|
|
8048
7865
|
return /*#__PURE__*/React.createElement(View, _extends({}, elementProps, {
|
|
8049
7866
|
ref: ref,
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
7867
|
+
role: "alert",
|
|
7868
|
+
"aria-live": "assertive",
|
|
7869
|
+
"aria-atomic": true,
|
|
8053
7870
|
style: [classes, style],
|
|
8054
7871
|
textStyle: [textClasses, textStyle]
|
|
8055
7872
|
}), children);
|