@uifabricshared/theming-react-native 0.20.20 → 0.21.1
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/CHANGELOG.md +110 -3
- package/README.md +1 -1
- package/etc/theming-react-native.api.md +12 -11
- package/lib/BaselinePlatformDefaults.js.map +1 -1
- package/lib/Global.js.map +1 -1
- package/lib/NativeModule/ThemingModuleHelpers.d.ts +1 -1
- package/lib/NativeModule/ThemingModuleHelpers.d.ts.map +1 -1
- package/lib/NativeModule/ThemingModuleHelpers.js.map +1 -1
- package/lib/NativeModule/getHostSettings.js.map +1 -1
- package/lib/ThemeLayer.d.ts +3 -2
- package/lib/ThemeLayer.d.ts.map +1 -1
- package/lib/ThemeLayer.js +13 -12
- package/lib/ThemeLayer.js.map +1 -1
- package/lib/ThemeProvider.js +3 -2
- package/lib/ThemeProvider.js.map +1 -1
- package/lib/platform/PlatformDefaults.d.ts +1 -1
- package/lib/platform/PlatformDefaults.d.ts.map +1 -1
- package/lib/platform/PlatformDefaults.js.map +1 -1
- package/lib/platform/PlatformDefaults.native.d.ts +1 -1
- package/lib/platform/PlatformDefaults.native.d.ts.map +1 -1
- package/lib/platform/PlatformDefaults.native.js.map +1 -1
- package/lib-commonjs/BaselinePlatformDefaults.js +1 -2
- package/lib-commonjs/BaselinePlatformDefaults.js.map +1 -1
- package/lib-commonjs/Global.js +7 -8
- package/lib-commonjs/Global.js.map +1 -1
- package/lib-commonjs/NativeModule/ThemingModuleHelpers.js +2 -3
- package/lib-commonjs/NativeModule/ThemingModuleHelpers.js.map +1 -1
- package/lib-commonjs/NativeModule/getHostSettings.js +1 -2
- package/lib-commonjs/NativeModule/getHostSettings.js.map +1 -1
- package/lib-commonjs/NativeModule/index.js +2 -2
- package/lib-commonjs/NativeModule/index.js.map +1 -1
- package/lib-commonjs/ThemeContext.js +18 -8
- package/lib-commonjs/ThemeContext.js.map +1 -1
- package/lib-commonjs/ThemeLayer.d.ts +3 -2
- package/lib-commonjs/ThemeLayer.d.ts.map +1 -1
- package/lib-commonjs/ThemeLayer.js +30 -19
- package/lib-commonjs/ThemeLayer.js.map +1 -1
- package/lib-commonjs/ThemeProvider.js +20 -9
- package/lib-commonjs/ThemeProvider.js.map +1 -1
- package/lib-commonjs/index.js +6 -6
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/platform/PlatformDefaults.js +1 -2
- package/lib-commonjs/platform/PlatformDefaults.js.map +1 -1
- package/lib-commonjs/platform/PlatformDefaults.native.js +1 -2
- package/lib-commonjs/platform/PlatformDefaults.native.js.map +1 -1
- package/package.json +57 -60
- package/src/ThemeLayer.tsx +3 -2
- package/babel.config.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# Change Log - @uifabricshared/theming-react-native
|
|
2
2
|
|
|
3
|
+
## 0.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0d6e9c1: chore: migrate to `oxfmt`
|
|
8
|
+
- ac6e7af: Ensure packages have a default export that references the typescript entrypoint and clean up build dependency ordering
|
|
9
|
+
- Updated dependencies [0d6e9c1]
|
|
10
|
+
- Updated dependencies [ac6e7af]
|
|
11
|
+
- @uifabricshared/theme-registry@0.13.1
|
|
12
|
+
- @uifabricshared/theming-ramp@0.21.1
|
|
13
|
+
- @fluentui-react-native/default-theme@0.27.1
|
|
14
|
+
- @fluentui-react-native/win32-theme@0.39.1
|
|
15
|
+
|
|
16
|
+
## 0.21.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- d7adbdd: # Migration from Beachball to Changesets
|
|
21
|
+
|
|
22
|
+
This changeset represents the migration from Beachball to Changesets for version management and consolidates all changes from 440+ beachball change files that were in the `change/` directory.
|
|
23
|
+
|
|
24
|
+
All 75 affected packages receive a minor version bump to acknowledge the accumulated changes from the beachball era.
|
|
25
|
+
|
|
26
|
+
## What Changed
|
|
27
|
+
|
|
28
|
+
Going forward, all version management uses Changesets via `yarn changeset`. The following beachball infrastructure has been removed:
|
|
29
|
+
|
|
30
|
+
- ❌ 440+ beachball change files from `change/` directory
|
|
31
|
+
- ❌ `beachball` package dependency
|
|
32
|
+
- ❌ Beachball scripts from `package.json`
|
|
33
|
+
- ❌ `beachball.config.js` configuration file
|
|
34
|
+
- ❌ Beachball publish steps from Azure Pipelines
|
|
35
|
+
|
|
36
|
+
## New Workflow
|
|
37
|
+
|
|
38
|
+
✅ **Create changes**: Run `yarn changeset` to document changes
|
|
39
|
+
✅ **Version bump PRs**: Automatically created by GitHub Actions
|
|
40
|
+
✅ **Publishing**: Handled by Azure Pipelines using `changeset publish`
|
|
41
|
+
✅ **Validation**: CI validates changesets and blocks major version bumps
|
|
42
|
+
|
|
43
|
+
For details, see `CHANGESETS_SETUP.md` and `CONTRIBUTING.md`.
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- d1d8c26: We were pinning @types/react and react-native-macos via resolutions. This fixes that which uncovered a bunch of type inconsistencies that needed to be addressed.
|
|
48
|
+
- Updated dependencies [d7adbdd]
|
|
49
|
+
- Updated dependencies [d1d8c26]
|
|
50
|
+
- @fluentui-react-native/default-theme@0.27.0
|
|
51
|
+
- @fluentui-react-native/win32-theme@0.39.0
|
|
52
|
+
- @uifabricshared/theme-registry@0.13.0
|
|
53
|
+
- @uifabricshared/theming-ramp@0.21.0
|
|
54
|
+
|
|
3
55
|
<!-- This log was last generated on Tue, 05 Aug 2025 18:50:40 GMT and should not be manually modified. -->
|
|
4
56
|
|
|
5
57
|
<!-- Start content -->
|
|
@@ -1444,7 +1496,7 @@ Fri, 24 Apr 2020 17:13:37 GMT
|
|
|
1444
1496
|
|
|
1445
1497
|
### Patches
|
|
1446
1498
|
|
|
1447
|
-
- Dont import
|
|
1499
|
+
- Dont import \* from react-native (acoates@microsoft.com)
|
|
1448
1500
|
|
|
1449
1501
|
## 0.7.0
|
|
1450
1502
|
|
|
@@ -1487,170 +1539,225 @@ Thu, 16 Apr 2020 23:57:38 GMT
|
|
|
1487
1539
|
- publish with correct main/module references (jasonmo@microsoft.com)
|
|
1488
1540
|
|
|
1489
1541
|
## 0.5.0
|
|
1542
|
+
|
|
1490
1543
|
Mon, 13 Apr 2020 22:48:23 GMT
|
|
1491
1544
|
|
|
1492
1545
|
### Minor changes
|
|
1493
1546
|
|
|
1494
1547
|
- Add variants and fluent typeramp to text (krsiler@microsoft.com)
|
|
1548
|
+
|
|
1495
1549
|
## 0.4.10
|
|
1550
|
+
|
|
1496
1551
|
Thu, 09 Apr 2020 20:23:08 GMT
|
|
1497
1552
|
|
|
1498
1553
|
### Patches
|
|
1499
1554
|
|
|
1500
1555
|
- 🐛 Make ThemingModule not crash on Mac (email not defined)
|
|
1556
|
+
|
|
1501
1557
|
## 0.4.9
|
|
1558
|
+
|
|
1502
1559
|
Thu, 09 Apr 2020 18:39:15 GMT
|
|
1503
1560
|
|
|
1504
1561
|
### Patches
|
|
1505
1562
|
|
|
1506
1563
|
- merge conflicts (ppatboyd@outlook.com)
|
|
1564
|
+
|
|
1507
1565
|
## 0.4.7
|
|
1566
|
+
|
|
1508
1567
|
Fri, 03 Apr 2020 20:40:51 GMT
|
|
1509
1568
|
|
|
1510
1569
|
### Patches
|
|
1511
1570
|
|
|
1512
1571
|
- switch the bin name from just-script to fluent-scripts to disambiguate names (jasonmo@microsoft.com)
|
|
1572
|
+
|
|
1513
1573
|
## 0.4.6
|
|
1574
|
+
|
|
1514
1575
|
Tue, 31 Mar 2020 18:01:09 GMT
|
|
1515
1576
|
|
|
1516
1577
|
### Patches
|
|
1517
1578
|
|
|
1518
1579
|
- Merge branch 'sammy/checkboxV1' of https://github.com/samuelfreiberg/fluentui-react-native into sammy/checkboxV1 (safreibe@microsoft.com)
|
|
1580
|
+
|
|
1519
1581
|
## 0.4.5
|
|
1582
|
+
|
|
1520
1583
|
Mon, 30 Mar 2020 16:27:00 GMT
|
|
1521
1584
|
|
|
1522
1585
|
### Patches
|
|
1523
1586
|
|
|
1524
1587
|
- Update main attribute to specify TypeScript index file. (kinhln@microsoft.com)
|
|
1588
|
+
|
|
1525
1589
|
## 0.4.3
|
|
1590
|
+
|
|
1526
1591
|
Wed, 11 Mar 2020 17:57:52 GMT
|
|
1527
1592
|
|
|
1528
1593
|
### Patches
|
|
1529
1594
|
|
|
1530
1595
|
- 🎨 Add the ability to respond to host theme change (adrum@microsoft.com)
|
|
1596
|
+
|
|
1531
1597
|
## 0.4.2
|
|
1598
|
+
|
|
1532
1599
|
Wed, 11 Mar 2020 00:02:33 GMT
|
|
1533
1600
|
|
|
1534
1601
|
### Patches
|
|
1535
1602
|
|
|
1536
1603
|
- Add host to theme object typing (adrum@microsoft.com)
|
|
1604
|
+
|
|
1537
1605
|
## 0.4.0
|
|
1606
|
+
|
|
1538
1607
|
Fri, 06 Mar 2020 19:46:35 GMT
|
|
1539
1608
|
|
|
1540
1609
|
### Minor changes
|
|
1541
1610
|
|
|
1542
1611
|
- 🎨 Create host settings in theme object for direct access to native colors (adrum@microsoft.com)
|
|
1612
|
+
|
|
1543
1613
|
## 0.3.4
|
|
1614
|
+
|
|
1544
1615
|
Fri, 28 Feb 2020 00:04:18 GMT
|
|
1545
1616
|
|
|
1546
1617
|
### Patches
|
|
1547
1618
|
|
|
1548
1619
|
- fix builds with moved packages (jasonmo@microsoft.com)
|
|
1620
|
+
|
|
1549
1621
|
## 0.3.3
|
|
1622
|
+
|
|
1550
1623
|
Thu, 20 Feb 2020 01:36:35 GMT
|
|
1551
1624
|
|
|
1552
1625
|
### Patches
|
|
1553
1626
|
|
|
1554
1627
|
- restructure directories in project (jasonmo@microsoft.com)
|
|
1628
|
+
|
|
1555
1629
|
## 0.3.2
|
|
1630
|
+
|
|
1556
1631
|
Fri, 07 Feb 2020 00:29:25 GMT
|
|
1557
1632
|
|
|
1558
1633
|
### Patches
|
|
1559
1634
|
|
|
1560
1635
|
- clean up just tasks and remove unnecessary webpack configs (jasonmo@microsoft.com)
|
|
1636
|
+
|
|
1561
1637
|
## 0.3.1
|
|
1638
|
+
|
|
1562
1639
|
Thu, 06 Feb 2020 01:00:13 GMT
|
|
1563
1640
|
|
|
1564
1641
|
### Patches
|
|
1565
1642
|
|
|
1566
1643
|
- Get RNTester test app launch for uifabric package. (kinhln@microsoft.com)
|
|
1567
1644
|
- clean up just tasks and remove unnecessary webpack configs (jasonmo@microsoft.com)
|
|
1645
|
+
|
|
1568
1646
|
## 0.3.0
|
|
1647
|
+
|
|
1569
1648
|
Fri, 13 Dec 2019 21:50:31 GMT
|
|
1570
1649
|
|
|
1571
1650
|
### Minor changes
|
|
1572
1651
|
|
|
1573
1652
|
- ♻ rename theme.settings -> theme.components for better alignment (adrum@microsoft.com)
|
|
1653
|
+
|
|
1574
1654
|
## 0.2.5
|
|
1655
|
+
|
|
1575
1656
|
Fri, 06 Dec 2019 01:37:51 GMT
|
|
1576
1657
|
|
|
1577
1658
|
### Patches
|
|
1578
1659
|
|
|
1579
|
-
- 🐛 Fix web/native bundles to use
|
|
1660
|
+
- 🐛 Fix web/native bundles to use **DEV** as appropriate (adrum@microsoft.com)
|
|
1661
|
+
|
|
1580
1662
|
## 0.2.4
|
|
1663
|
+
|
|
1581
1664
|
Thu, 05 Dec 2019 23:11:01 GMT
|
|
1582
1665
|
|
|
1583
1666
|
### Patches
|
|
1584
1667
|
|
|
1585
|
-
- fix error on web where
|
|
1668
|
+
- fix error on web where **DEV** is undefined (jasonmo360@gmail.com)
|
|
1669
|
+
|
|
1586
1670
|
## 0.2.3
|
|
1671
|
+
|
|
1587
1672
|
Thu, 05 Dec 2019 01:37:57 GMT
|
|
1588
1673
|
|
|
1589
1674
|
### Patches
|
|
1590
1675
|
|
|
1591
1676
|
- 🐛 DEV bundles break theming module (adrum@microsoft.com)
|
|
1677
|
+
|
|
1592
1678
|
## 0.2.2
|
|
1679
|
+
|
|
1593
1680
|
Wed, 04 Dec 2019 21:00:39 GMT
|
|
1594
1681
|
|
|
1595
1682
|
### Patches
|
|
1596
1683
|
|
|
1597
1684
|
- ✅ Add better jest mocks for consuming packages (adrum@microsoft.com)
|
|
1685
|
+
|
|
1598
1686
|
## 0.2.1
|
|
1687
|
+
|
|
1599
1688
|
Fri, 22 Nov 2019 23:33:23 GMT
|
|
1600
1689
|
|
|
1601
1690
|
### Patches
|
|
1602
1691
|
|
|
1603
1692
|
- 🐛 Fix Theming Module web debugging/debug bundles (adrum@microsoft.com)
|
|
1604
1693
|
- ♻ rename props & typings (adrum@microsoft.com)
|
|
1694
|
+
|
|
1605
1695
|
## 0.2.0
|
|
1696
|
+
|
|
1606
1697
|
Wed, 20 Nov 2019 19:37:06 GMT
|
|
1607
1698
|
|
|
1608
1699
|
### Minor changes
|
|
1609
1700
|
|
|
1610
1701
|
- 📦 fix package entrypoints to distinguish CJS/ES6 (adrum@microsoft.com)
|
|
1702
|
+
|
|
1611
1703
|
## 0.1.9
|
|
1704
|
+
|
|
1612
1705
|
Wed, 20 Nov 2019 00:19:04 GMT
|
|
1613
1706
|
|
|
1614
1707
|
### Patches
|
|
1615
1708
|
|
|
1616
1709
|
- Fix Web Debug for ThemingModule consumers (adrum@microsoft.com)
|
|
1710
|
+
|
|
1617
1711
|
## 0.1.8
|
|
1712
|
+
|
|
1618
1713
|
Fri, 15 Nov 2019 19:30:39 GMT
|
|
1619
1714
|
|
|
1620
1715
|
### Patches
|
|
1621
1716
|
|
|
1622
1717
|
- Add Theming Module, Theme Provider, and Theme Context hooks (adrum@microsoft.com)
|
|
1718
|
+
|
|
1623
1719
|
## 0.1.7
|
|
1720
|
+
|
|
1624
1721
|
Fri, 01 Nov 2019 16:51:54 GMT
|
|
1625
1722
|
|
|
1626
1723
|
### Patches
|
|
1627
1724
|
|
|
1628
1725
|
- fix version references for packages (jasonmo@microsoft.com)
|
|
1726
|
+
|
|
1629
1727
|
## 0.1.6
|
|
1728
|
+
|
|
1630
1729
|
Tue, 15 Oct 2019 02:11:41 GMT
|
|
1631
1730
|
|
|
1632
1731
|
### Patches
|
|
1633
1732
|
|
|
1634
1733
|
- api-extractor setup (taamireh@microsoft.com)
|
|
1734
|
+
|
|
1635
1735
|
## 0.1.5
|
|
1736
|
+
|
|
1636
1737
|
Wed, 25 Sep 2019 23:15:41 GMT
|
|
1637
1738
|
|
|
1638
1739
|
### Patches
|
|
1639
1740
|
|
|
1640
1741
|
- Get new compose infrastructure working (jasonmo@microsoft.com)
|
|
1742
|
+
|
|
1641
1743
|
## 0.1.4
|
|
1744
|
+
|
|
1642
1745
|
Thu, 19 Sep 2019 23:21:48 GMT
|
|
1643
1746
|
|
|
1644
1747
|
### Patches
|
|
1645
1748
|
|
|
1646
1749
|
- force publish (taamireh@microsoft.com)
|
|
1750
|
+
|
|
1647
1751
|
## 0.1.3
|
|
1752
|
+
|
|
1648
1753
|
Thu, 19 Sep 2019 00:21:30 GMT
|
|
1649
1754
|
|
|
1650
1755
|
### Patches
|
|
1651
1756
|
|
|
1652
1757
|
- change scope names (taamireh@microsoft.com)
|
|
1758
|
+
|
|
1653
1759
|
## 0.1.2
|
|
1760
|
+
|
|
1654
1761
|
Sat, 14 Sep 2019 01:56:36 GMT
|
|
1655
1762
|
|
|
1656
1763
|
### Patches
|
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ import * as React from 'react';
|
|
|
64
64
|
import { ThemeContext, ITheme } from '@uifabricshared/theming-react-native';
|
|
65
65
|
|
|
66
66
|
export class OtherComponent extends React.Component {
|
|
67
|
-
public render(): JSX.Element {
|
|
67
|
+
public render(): React.JSX.Element {
|
|
68
68
|
return (
|
|
69
69
|
<ThemeContext.Consumer>
|
|
70
70
|
{(theme: ITheme) => {
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
|
-
|
|
7
6
|
import { IPartialTheme } from '@uifabricshared/theming-ramp';
|
|
8
7
|
import { IProcessTheme } from '@uifabricshared/theme-registry';
|
|
9
8
|
import { ITheme } from '@uifabricshared/theming-ramp';
|
|
@@ -30,28 +29,30 @@ export type INativeThemeDefinition = IPartialTheme;
|
|
|
30
29
|
|
|
31
30
|
// @public
|
|
32
31
|
export interface IThemeLayerProps {
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
children: (theme: INativeTheme) => React.JSX.Element | null;
|
|
33
|
+
themeName?: string;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
// @public
|
|
38
37
|
export function removeThemeRegistryListener(listener: IThemeEventListener): void;
|
|
39
38
|
|
|
40
39
|
// @public
|
|
41
|
-
export function setTheme(
|
|
40
|
+
export function setTheme(
|
|
41
|
+
definition: INativeThemeDefinition | IProcessTheme<INativeTheme, INativeThemeDefinition>,
|
|
42
|
+
name?: string,
|
|
43
|
+
parent?: string,
|
|
44
|
+
): void;
|
|
42
45
|
|
|
43
46
|
// @public (undocumented)
|
|
44
|
-
export const ThemeContext: React.Context<import(
|
|
47
|
+
export const ThemeContext: React.Context<import('@uifabricshared/theming-ramp').ITheme>;
|
|
45
48
|
|
|
46
49
|
// @public
|
|
47
50
|
export class ThemeLayer extends React.Component<IThemeLayerProps> {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
componentWillUnmount(): void;
|
|
52
|
+
onInvalidate: IThemeEventListener['onInvalidate'];
|
|
53
|
+
// (undocumented)
|
|
54
|
+
render(): React.JSX.Element;
|
|
52
55
|
}
|
|
53
56
|
|
|
54
|
-
|
|
55
57
|
// (No @packageDocumentation comment for this package)
|
|
56
|
-
|
|
57
58
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaselinePlatformDefaults.js","sourceRoot":"","sources":["../src/BaselinePlatformDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E;;GAEG;AACH,MAAM,UAAU,wBAAwB;
|
|
1
|
+
{"version":3,"file":"BaselinePlatformDefaults.js","sourceRoot":"","sources":["../src/BaselinePlatformDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E;;GAEG;AACH,MAAM,UAAU,wBAAwB,GAAW;IACjD,OAAO,kBAAkB,CAAC;AAAA,CAC3B"}
|
package/lib/Global.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Global.js","sourceRoot":"","sources":["../src/Global.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAGzD,IAAI,SAAwB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,UAAU,gBAAgB;
|
|
1
|
+
{"version":3,"file":"Global.js","sourceRoot":"","sources":["../src/Global.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAGzD,IAAI,SAAwB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,GAAkB;IAChD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,SAAS,GAAG,2BAA2B,EAAE,CAAC;IAC5C,CAAC;IACD,OAAO,SAAS,CAAC;AAAA,CAClB;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAAuB,EAAQ;IAC9D,SAAS,GAAG,QAAQ,CAAC;AAAA,CACtB;AAED;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CAAC,UAAgE,EAAE,IAAa,EAAE,MAAe,EAAQ;IAC/H,OAAO,gBAAgB,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAAA,CAC9D;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CAAC,QAA6B,EAAQ;IAC5E,OAAO,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AAAA,CACtD;AAED;;;;GAIG;AACH,MAAM,UAAU,2BAA2B,CAAC,QAA6B,EAAQ;IAC/E,OAAO,gBAAgB,EAAE,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAAA,CACzD;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAa,EAAU;IAC9C,OAAO,gBAAgB,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAAA,CAC1C;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,UAAyB,EAAQ;IACpE,gBAAgB,EAAE,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;AAAA,CACvD"}
|
|
@@ -7,7 +7,7 @@ type PaletteCache = {
|
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated
|
|
9
9
|
*/
|
|
10
|
-
export declare function translateOfficeTheme(module: OfficeThemingModule, cache: PaletteCache, id?: string, themeName?: string): import("@
|
|
10
|
+
export declare function translateOfficeTheme(module: OfficeThemingModule, cache: PaletteCache, id?: string, themeName?: string): import("@fluentui-react-native/theme-types").PartialTheme;
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated
|
|
13
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemingModuleHelpers.d.ts","sourceRoot":"","sources":["../../src/NativeModule/ThemingModuleHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAIpB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAU,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGjF,KAAK,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,CAAC;AAyBrD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,mBAAmB,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ThemingModuleHelpers.d.ts","sourceRoot":"","sources":["../../src/NativeModule/ThemingModuleHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAIpB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAU,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGjF,KAAK,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,CAAC;AAyBrD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,mBAAmB,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,6DAGrH;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,CAAC,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,oBAAoB,CAuB5H"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemingModuleHelpers.js","sourceRoot":"","sources":["../../src/NativeModule/ThemingModuleHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAIvE,SAAS,WAAW,CAAC,OAAqC;
|
|
1
|
+
{"version":3,"file":"ThemingModuleHelpers.js","sourceRoot":"","sources":["../../src/NativeModule/ThemingModuleHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,wBAAwB,EAAE,MA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C;IACtC,IAAI,UAAU,GAAG,aAAa,CAAC,YAAY,EAAE,CAAC,uBAAuB,IAAI,EAAE,CAAC;IAC5E,OAAO;QACL,OAAO,CAAC,WAAW,CAAC,2BAA2B,EAAE,CAAC,IAAiC,EAAE,EAAE,CAAC;YACtF,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,gBAAgB,CAAC,IAAI,UAAU,CAAC;YAC3D,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;QAAA,CAC9E,CAAC,CAAC;IACL,OAAO;QACL,mBAAmB,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC;YACzC,OAAO,mBAAmB,CAAC,wBAAwB,EAAE,EAAE,oBAAoB,CAAC,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;QAAA,CAChI;QACD,0BAA0B,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC;YAChD,OAAO,CAAC,OAAe,EAAE,EAAE,CAAC;gBAC1B,oBAAoB,CAAC,aAAa,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;gBAC3D,OAAO,oBAAoB,CAAC,aAAa,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;YAAA,CACnE,CAAC;QAAA,CACH;QACD,WAAW,EAAE,CAAC,QAAyC,EAAE,EAAE,CAAC;YAC1D,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,2BAA2B,EAAE,QAAQ,CAAC,CAAC;QAAA,CACvE;KACF,CAAC;AAAA,CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getHostSettings.js","sourceRoot":"","sources":["../../src/NativeModule/getHostSettings.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAa;
|
|
1
|
+
{"version":3,"file":"getHostSettings.js","sourceRoot":"","sources":["../../src/NativeModule/getHostSettings.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAa,EAA8B;IAC9E,OAAO,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AAAA,CACrD"}
|
package/lib/ThemeLayer.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { IThemeEventListener } from '@uifabricshared/theme-registry';
|
|
3
3
|
import type { ITheme } from './Theme.types';
|
|
4
|
+
import type { FurnJSX } from '@fluentui-react-native/framework-base';
|
|
4
5
|
/**
|
|
5
6
|
* props for the ThemeLayer
|
|
6
7
|
* @deprecated
|
|
@@ -16,7 +17,7 @@ export interface IThemeLayerProps {
|
|
|
16
17
|
* children function that allows passing of the theme to children. This is a standard pattern for
|
|
17
18
|
* consumers.
|
|
18
19
|
*/
|
|
19
|
-
children: (theme: ITheme) =>
|
|
20
|
+
children: (theme: ITheme) => FurnJSX.Element | null;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Multipurpose theme provider. This can run in provider/consumer mode and pure consumer mode.
|
|
@@ -54,7 +55,7 @@ export declare class ThemeLayer extends React.Component<IThemeLayerProps> {
|
|
|
54
55
|
onInvalidate: IThemeEventListener['onInvalidate'];
|
|
55
56
|
/** standard cleanup handler to ensure we unregister */
|
|
56
57
|
componentWillUnmount(): void;
|
|
57
|
-
render():
|
|
58
|
+
render(): FurnJSX.Element;
|
|
58
59
|
/** helper to register if this is the first time and to update the filter if necessary */
|
|
59
60
|
private _ensureCallbackRegistration;
|
|
60
61
|
}
|
package/lib/ThemeLayer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeLayer.d.ts","sourceRoot":"","sources":["../src/ThemeLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAI1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeLayer.d.ts","sourceRoot":"","sources":["../src/ThemeLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAI1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAErE;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;CACrD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,gBAAgB,CAAqB;IAE7C,iEAAiE;IAC1D,YAAY,EAAE,mBAAmB,CAAC,cAAc,CAAC,CAKtD;IAEF,uDAAuD;IAChD,oBAAoB,IAAI,IAAI,CAKlC;IAEM,MAAM,IAAI,OAAO,CAAC,OAAO,CAkB/B;IAED,yFAAyF;IACzF,OAAO,CAAC,2BAA2B,CAKjC;CACH"}
|
package/lib/ThemeLayer.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { ThemeContext } from '@uifabricshared/theming-ramp';
|
|
3
4
|
import { removeThemeRegistryListener, getTheme, addThemeRegistryListener } from './Global';
|
|
@@ -49,18 +50,18 @@ export class ThemeLayer extends React.Component {
|
|
|
49
50
|
}
|
|
50
51
|
render() {
|
|
51
52
|
let themeName = this.props.themeName;
|
|
52
|
-
return (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
53
|
+
return (_jsx(ThemeContext.Consumer, { children: (theme) => {
|
|
54
|
+
// go to provider mode if a themeName is specified or if this is the first consumer and the context
|
|
55
|
+
// is undefined.
|
|
56
|
+
if (themeName !== undefined || theme === undefined) {
|
|
57
|
+
themeName = themeName || '';
|
|
58
|
+
this._ensureCallbackRegistration(themeName);
|
|
59
|
+
theme = getTheme(themeName);
|
|
60
|
+
return _jsx(ThemeContext.Provider, { value: theme, children: this.props.children(theme) });
|
|
61
|
+
}
|
|
62
|
+
// otherwise in consumer mode just push the current theme to the children
|
|
63
|
+
return this.props.children(theme);
|
|
64
|
+
} }));
|
|
64
65
|
}
|
|
65
66
|
/** helper to register if this is the first time and to update the filter if necessary */
|
|
66
67
|
_ensureCallbackRegistration = (themeName) => {
|
package/lib/ThemeLayer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeLayer.js","sourceRoot":"","sources":["../src/ThemeLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeLayer.js","sourceRoot":"","sources":["../src/ThemeLayer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,2BAA2B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ACqB,CACzB,CAAC;IAAA,CACH;IAED,yFAAyF;IACjF,2BAA2B,GAAG,CAAC,SAAiB,EAAE,EAAE,CAAC;QAC3D,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS,EAAE,CAAC;YACxC,wBAAwB,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC;QACD,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAAA,CACnC,CAAC;CACH"}
|
package/lib/ThemeProvider.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { ThemeContext } from '@uifabricshared/theming-ramp';
|
|
3
4
|
import { getThemeRegistry } from './Global';
|
|
@@ -23,8 +24,8 @@ export const ThemeProvider = (props) => {
|
|
|
23
24
|
registryToUse.removeEventListener(themeInvalidater);
|
|
24
25
|
};
|
|
25
26
|
}, [registryToUse, themeName, setThemeState]);
|
|
26
|
-
const themeProvider =
|
|
27
|
+
const themeProvider = _jsx(ThemeContext.Provider, { value: theme, children: children });
|
|
27
28
|
// note `registryFromProps` came from props and it's not the same as `registryToUse`
|
|
28
|
-
return registryFromProps ? (
|
|
29
|
+
return registryFromProps ? (_jsx(ThemeRegistryContext.Provider, { value: registryFromProps, children: themeProvider })) : (themeProvider);
|
|
29
30
|
};
|
|
30
31
|
//# sourceMappingURL=ThemeProvider.js.map
|
package/lib/ThemeProvider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.js","sourceRoot":"","sources":["../src/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAG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AC,gBAAgB,CAAC,CAAC;QAAA,CACrD,CAAC;IAAA,CACH,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC;IAE9C,MAAM,aAAa,GAAG,KAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAyB,CAAC;IAE9F,oFAAoF;IACpF,OAAO,iBAAiB,CAAC,CAAC,CAAC,CACzB,KAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,iBAAiB,YAAG,aAAa,GAAiC,CACzG,CAAC,CAAC,CAAC,CACF,aAAa,CACd,CAAC;AAAA,CACH,CAAC"}
|
|
@@ -2,5 +2,5 @@ import type { IThemingModuleHelper } from '../NativeModule';
|
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated
|
|
4
4
|
*/
|
|
5
|
-
export declare function createPlatformThemeRegistry(_themeId?: string, _module?: IThemingModuleHelper): import("@uifabricshared/theme-registry").IThemeRegistry<import("@
|
|
5
|
+
export declare function createPlatformThemeRegistry(_themeId?: string, _module?: IThemingModuleHelper): import("@uifabricshared/theme-registry").IThemeRegistry<import("@fluentui-react-native/theme-types").Theme, import("@fluentui-react-native/theme-types").PartialTheme>;
|
|
6
6
|
//# sourceMappingURL=PlatformDefaults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformDefaults.d.ts","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"PlatformDefaults.d.ts","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,0KAE5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformDefaults.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAGvE;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,QAAiB,EAAE,OAA8B;
|
|
1
|
+
{"version":3,"file":"PlatformDefaults.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAGvE;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,QAAiB,EAAE,OAA8B,EAAE;IAC7F,OAAO,mBAAmB,CAAC,wBAAwB,EAAE,EAAE,mBAAmB,CAAC,CAAC;AAAA,CAC7E"}
|
|
@@ -2,5 +2,5 @@ import type { IThemingModuleHelper } from '../NativeModule';
|
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated
|
|
4
4
|
*/
|
|
5
|
-
export declare function createPlatformThemeRegistry(platformThemeId?: string, module?: IThemingModuleHelper): import("@uifabricshared/theme-registry").IThemeRegistry<import("@
|
|
5
|
+
export declare function createPlatformThemeRegistry(platformThemeId?: string, module?: IThemingModuleHelper): import("@uifabricshared/theme-registry").IThemeRegistry<import("@fluentui-react-native/theme-types").Theme, import("@fluentui-react-native/theme-types").PartialTheme>;
|
|
6
6
|
//# sourceMappingURL=PlatformDefaults.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformDefaults.native.d.ts","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.native.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAG5D;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,GAAE,oBAA0C,
|
|
1
|
+
{"version":3,"file":"PlatformDefaults.native.d.ts","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.native.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAG5D;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,GAAE,oBAA0C,0KAMvH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformDefaults.native.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,eAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"PlatformDefaults.native.js","sourceRoot":"","sources":["../../src/platform/PlatformDefaults.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,MAAM,UAAU,2BAA2B,CAAC,eAAwB,EAAE,MAAM,GAAyB,mBAAmB,EAAE;IACxH,MAAM,QAAQ,GAAG,mBAAmB,CAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,EAAE,mBAAmB,CAAC,CAAC;IACvG,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC;QACvB,QAAQ,CAAC,sBAAsB,CAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC;IAAA,CAC9E,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAAA,CACjB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBaselinePlatformTheme =
|
|
3
|
+
exports.getBaselinePlatformTheme = getBaselinePlatformTheme;
|
|
4
4
|
const default_theme_1 = require("@fluentui-react-native/default-theme");
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated
|
|
@@ -8,5 +8,4 @@ const default_theme_1 = require("@fluentui-react-native/default-theme");
|
|
|
8
8
|
function getBaselinePlatformTheme() {
|
|
9
9
|
return default_theme_1.defaultFluentTheme;
|
|
10
10
|
}
|
|
11
|
-
exports.getBaselinePlatformTheme = getBaselinePlatformTheme;
|
|
12
11
|
//# sourceMappingURL=BaselinePlatformDefaults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaselinePlatformDefaults.js","sourceRoot":"","sources":["../src/BaselinePlatformDefaults.ts"],"names":[],"mappings":";;;AAAA,wEAA0E;AAG1E;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"BaselinePlatformDefaults.js","sourceRoot":"","sources":["../src/BaselinePlatformDefaults.ts"],"names":[],"mappings":";;;AAAA,wEAA0E;AAG1E;;GAEG;AACH,oCAAmD;IACjD,OAAO,kCAAkB,CAAC;AAAA,CAC3B"}
|
package/lib-commonjs/Global.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getThemeRegistry = getThemeRegistry;
|
|
4
|
+
exports.setThemeRegistry = setThemeRegistry;
|
|
5
|
+
exports.setTheme = setTheme;
|
|
6
|
+
exports.addThemeRegistryListener = addThemeRegistryListener;
|
|
7
|
+
exports.removeThemeRegistryListener = removeThemeRegistryListener;
|
|
8
|
+
exports.getTheme = getTheme;
|
|
9
|
+
exports.augmentPlatformTheme = augmentPlatformTheme;
|
|
4
10
|
const platform_1 = require("./platform");
|
|
5
11
|
let _registry;
|
|
6
12
|
/**
|
|
@@ -14,7 +20,6 @@ function getThemeRegistry() {
|
|
|
14
20
|
}
|
|
15
21
|
return _registry;
|
|
16
22
|
}
|
|
17
|
-
exports.getThemeRegistry = getThemeRegistry;
|
|
18
23
|
/**
|
|
19
24
|
* Set the global theme registry.
|
|
20
25
|
*
|
|
@@ -29,7 +34,6 @@ exports.getThemeRegistry = getThemeRegistry;
|
|
|
29
34
|
function setThemeRegistry(registry) {
|
|
30
35
|
_registry = registry;
|
|
31
36
|
}
|
|
32
|
-
exports.setThemeRegistry = setThemeRegistry;
|
|
33
37
|
/**
|
|
34
38
|
* Create or update a theme definition
|
|
35
39
|
* @param definition - partial theme definition or processing function that defines the theme
|
|
@@ -40,7 +44,6 @@ exports.setThemeRegistry = setThemeRegistry;
|
|
|
40
44
|
function setTheme(definition, name, parent) {
|
|
41
45
|
return getThemeRegistry().setTheme(definition, name, parent);
|
|
42
46
|
}
|
|
43
|
-
exports.setTheme = setTheme;
|
|
44
47
|
/**
|
|
45
48
|
* Register a theme event listener
|
|
46
49
|
* @param listener - theme event listener to add
|
|
@@ -49,7 +52,6 @@ exports.setTheme = setTheme;
|
|
|
49
52
|
function addThemeRegistryListener(listener) {
|
|
50
53
|
return getThemeRegistry().addEventListener(listener);
|
|
51
54
|
}
|
|
52
|
-
exports.addThemeRegistryListener = addThemeRegistryListener;
|
|
53
55
|
/**
|
|
54
56
|
* Unregister a theme event listener
|
|
55
57
|
* @param listener - theme event listener to remove
|
|
@@ -58,7 +60,6 @@ exports.addThemeRegistryListener = addThemeRegistryListener;
|
|
|
58
60
|
function removeThemeRegistryListener(listener) {
|
|
59
61
|
return getThemeRegistry().removeEventListener(listener);
|
|
60
62
|
}
|
|
61
|
-
exports.removeThemeRegistryListener = removeThemeRegistryListener;
|
|
62
63
|
/**
|
|
63
64
|
* Get a theme by name
|
|
64
65
|
* @param name - name of the theme. Undefined or '' will resolve to the default theme
|
|
@@ -67,7 +68,6 @@ exports.removeThemeRegistryListener = removeThemeRegistryListener;
|
|
|
67
68
|
function getTheme(name) {
|
|
68
69
|
return getThemeRegistry().getTheme(name);
|
|
69
70
|
}
|
|
70
|
-
exports.getTheme = getTheme;
|
|
71
71
|
/**
|
|
72
72
|
* This will update the platform theme. This is primarily exposed for clients to add custom lookup values to palettes or to
|
|
73
73
|
* add custom typed settings blocks for their own components.
|
|
@@ -79,5 +79,4 @@ exports.getTheme = getTheme;
|
|
|
79
79
|
function augmentPlatformTheme(definition) {
|
|
80
80
|
getThemeRegistry().updatePlatformDefaults(definition);
|
|
81
81
|
}
|
|
82
|
-
exports.augmentPlatformTheme = augmentPlatformTheme;
|
|
83
82
|
//# sourceMappingURL=Global.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Global.js","sourceRoot":"","sources":["../src/Global.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Global.js","sourceRoot":"","sources":["../src/Global.ts"],"names":[],"mappings":";;;;;;;;;AAEA,yCAAyD;AAGzD,IAAI,SAAwB,CAAC;AAE7B;;;;GAIG;AACH,4BAAkD;IAChD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,SAAS,GAAG,IAAA,sCAA2B,GAAE,CAAC;IAC5C,CAAC;IACD,OAAO,SAAS,CAAC;AAAA,CAClB;AAED;;;;;;;;;;GAUG;AACH,0BAAiC,QAAuB,EAAQ;IAC9D,SAAS,GAAG,QAAQ,CAAC;AAAA,CACtB;AAED;;;;;;GAMG;AACH,kBAAyB,UAAgE,EAAE,IAAa,EAAE,MAAe,EAAQ;IAC/H,OAAO,gBAAgB,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAAA,CAC9D;AAED;;;;GAIG;AACH,kCAAyC,QAA6B,EAAQ;IAC5E,OAAO,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AAAA,CACtD;AAED;;;;GAIG;AACH,qCAA4C,QAA6B,EAAQ;IAC/E,OAAO,gBAAgB,EAAE,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;AAAA,CACzD;AAED;;;;GAIG;AACH,kBAAyB,IAAa,EAAU;IAC9C,OAAO,gBAAgB,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAAA,CAC1C;AAED;;;;;;;GAOG;AACH,8BAAqC,UAAyB,EAAQ;IACpE,gBAAgB,EAAE,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;AAAA,CACvD"}
|