@fluentui-react-native/apple-theme 0.19.1 → 0.19.2
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.json +34 -1
- package/CHANGELOG.md +13 -2
- package/lib/__tests__/apple-theme.test.d.ts +2 -0
- package/lib/__tests__/apple-theme.test.d.ts.map +1 -0
- package/lib/__tests__/apple-theme.test.js +83 -0
- package/lib/__tests__/apple-theme.test.js.map +1 -0
- package/lib/appleColors.ios.d.ts +4 -0
- package/lib/appleColors.ios.d.ts.map +1 -0
- package/lib/appleColors.ios.js +76 -0
- package/lib/appleColors.ios.js.map +1 -0
- package/lib/appleColors.macos.d.ts +6 -0
- package/lib/appleColors.macos.d.ts.map +1 -0
- package/lib/appleColors.macos.js +542 -0
- package/lib/appleColors.macos.js.map +1 -0
- package/lib/appleColors.types.ios.d.ts +24 -0
- package/lib/appleColors.types.ios.d.ts.map +1 -0
- package/lib/appleColors.types.ios.js +2 -0
- package/lib/appleColors.types.ios.js.map +1 -0
- package/lib/appleColors.types.macos.d.ts +155 -0
- package/lib/appleColors.types.macos.d.ts.map +1 -0
- package/lib/appleColors.types.macos.js +2 -0
- package/lib/appleColors.types.macos.js.map +1 -0
- package/lib/appleHighContrast.macos.d.ts +3 -0
- package/lib/appleHighContrast.macos.d.ts.map +1 -0
- package/lib/appleHighContrast.macos.js +8 -0
- package/lib/appleHighContrast.macos.js.map +1 -0
- package/lib/appleShadows.ios.d.ts +3 -0
- package/lib/appleShadows.ios.d.ts.map +1 -0
- package/lib/appleShadows.ios.js +9 -0
- package/lib/appleShadows.ios.js.map +1 -0
- package/lib/appleShadows.macos.d.ts +3 -0
- package/lib/appleShadows.macos.d.ts.map +1 -0
- package/lib/appleShadows.macos.js +6 -0
- package/lib/appleShadows.macos.js.map +1 -0
- package/lib/appleTheme.ios.d.ts +5 -0
- package/lib/appleTheme.ios.d.ts.map +1 -0
- package/lib/appleTheme.ios.js +134 -0
- package/lib/appleTheme.ios.js.map +1 -0
- package/lib/appleTheme.macos.d.ts +61 -0
- package/lib/appleTheme.macos.d.ts.map +1 -0
- package/lib/appleTheme.macos.js +82 -0
- package/lib/appleTheme.macos.js.map +1 -0
- package/lib/appleTypography.ios.d.ts +3 -0
- package/lib/appleTypography.ios.d.ts.map +1 -0
- package/lib/appleTypography.ios.js +49 -0
- package/lib/appleTypography.ios.js.map +1 -0
- package/lib/appleTypography.macos.d.ts +9 -0
- package/lib/appleTypography.macos.d.ts.map +1 -0
- package/lib/appleTypography.macos.js +70 -0
- package/lib/appleTypography.macos.js.map +1 -0
- package/lib/createAppleTheme.d.ts +3 -0
- package/lib/createAppleTheme.d.ts.map +1 -0
- package/lib/createAppleTheme.ios.d.ts +3 -0
- package/lib/createAppleTheme.ios.d.ts.map +1 -0
- package/lib/createAppleTheme.ios.js +20 -0
- package/lib/createAppleTheme.ios.js.map +1 -0
- package/lib/createAppleTheme.js +7 -0
- package/lib/createAppleTheme.js.map +1 -0
- package/lib/createAppleTheme.macos.d.ts +3 -0
- package/lib/createAppleTheme.macos.d.ts.map +1 -0
- package/lib/createAppleTheme.macos.js +31 -0
- package/lib/createAppleTheme.macos.js.map +1 -0
- package/lib/createFontAliasTokens.ios.d.ts +5 -0
- package/lib/createFontAliasTokens.ios.d.ts.map +1 -0
- package/lib/createFontAliasTokens.ios.js +8 -0
- package/lib/createFontAliasTokens.ios.js.map +1 -0
- package/lib/createMacOSAliasTokens.d.ts +8 -0
- package/lib/createMacOSAliasTokens.d.ts.map +1 -0
- package/lib/createMacOSAliasTokens.js +14 -0
- package/lib/createMacOSAliasTokens.js.map +1 -0
- package/lib/createiOSAliasTokens.d.ts +8 -0
- package/lib/createiOSAliasTokens.d.ts.map +1 -0
- package/lib/createiOSAliasTokens.js +14 -0
- package/lib/createiOSAliasTokens.js.map +1 -0
- package/lib/getMacOSTokens.d.ts +545 -0
- package/lib/getMacOSTokens.d.ts.map +1 -0
- package/lib/getMacOSTokens.js +58 -0
- package/lib/getMacOSTokens.js.map +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { ColorValue } from 'react-native';
|
|
2
|
+
/** Palette of Apple Platform Colors, defined at https://developer.apple.com/documentation/appkit/nscolor/ui_element_colors */
|
|
3
|
+
export interface AppleSemanticPalette {
|
|
4
|
+
/** The primary color to use for text labels */
|
|
5
|
+
labelColor: ColorValue;
|
|
6
|
+
/** The secondary color to use for text labels */
|
|
7
|
+
secondaryLabelColor: ColorValue;
|
|
8
|
+
/** The tertiary color to use for text labels */
|
|
9
|
+
tertiaryLabelColor: ColorValue;
|
|
10
|
+
/** The quaternary color to use for text labels and separators */
|
|
11
|
+
quaternaryLabelColor: ColorValue;
|
|
12
|
+
/** The color to use for text */
|
|
13
|
+
textColor: ColorValue;
|
|
14
|
+
/** The color to use for placeholder text in controls or text views */
|
|
15
|
+
placeholderTextColor: ColorValue;
|
|
16
|
+
/** The color to use for selected text */
|
|
17
|
+
selectedTextColor: ColorValue;
|
|
18
|
+
/** The color to use for the background area behind text */
|
|
19
|
+
textBackgroundColor: ColorValue;
|
|
20
|
+
/** The color to use for the background of selected text */
|
|
21
|
+
selectedTextBackgroundColor: ColorValue;
|
|
22
|
+
/** The color to use for the keyboard focus ring around controls */
|
|
23
|
+
keyboardFocusIndicatorColor: ColorValue;
|
|
24
|
+
/** The color to use for selected text in an unemphasized context */
|
|
25
|
+
unemphasizedSelectedTextColor: ColorValue;
|
|
26
|
+
/** The color to use for the text background in an unemphasized context */
|
|
27
|
+
unemphasizedSelectedTextBackgroundColor: ColorValue;
|
|
28
|
+
/** The color to use for links */
|
|
29
|
+
linkColor: ColorValue;
|
|
30
|
+
/** The color to use for separators between different sections of content */
|
|
31
|
+
separatorColor: ColorValue;
|
|
32
|
+
/** The color to use for the background of selected and emphasized content */
|
|
33
|
+
selectedContentBackgroundColor: ColorValue;
|
|
34
|
+
/** The color to use for selected and unemphasized content */
|
|
35
|
+
unemphasizedSelectedContentBackgroundColor: ColorValue;
|
|
36
|
+
/** The color to use for the text in menu items */
|
|
37
|
+
selectedMenuItemTextColor: ColorValue;
|
|
38
|
+
/** The color to use for the optional gridlines, such as those in a table view */
|
|
39
|
+
gridColor: ColorValue;
|
|
40
|
+
/** The color to use for text in header cells in table views and outline views */
|
|
41
|
+
headerTextColor: ColorValue;
|
|
42
|
+
/** The colors to use for alternating (odd Rows) content, typically found in table views and collection views */
|
|
43
|
+
alternatingOddContentBackgroundColor: ColorValue;
|
|
44
|
+
/** The colors to use for alternating (even Rows)content, typically found in table views and collection views */
|
|
45
|
+
alternatingEvenContentBackgroundColor: ColorValue;
|
|
46
|
+
/** The user's current accent color preference */
|
|
47
|
+
controlAccentColor: ColorValue;
|
|
48
|
+
/** The color to use for the flat surfaces of a control */
|
|
49
|
+
controlColor: ColorValue;
|
|
50
|
+
/** The color to use for the background of large controls, such as scroll views or table views */
|
|
51
|
+
controlBackgroundColor: ColorValue;
|
|
52
|
+
/** The color to use for text on enabled controls */
|
|
53
|
+
controlTextColor: ColorValue;
|
|
54
|
+
/** The color to use for text on disabled controls */
|
|
55
|
+
disabledControlTextColor: ColorValue;
|
|
56
|
+
/** The color to use for the face of a selected control—that is, a control that has been clicked or is being dragged */
|
|
57
|
+
selectedControlColor: ColorValue;
|
|
58
|
+
/** The color to use for text in a selected control—that is, a control being clicked or dragged */
|
|
59
|
+
selectedControlTextColor: ColorValue;
|
|
60
|
+
/** The color to use for text in a selected control */
|
|
61
|
+
alternateSelectedControlTextColor: ColorValue;
|
|
62
|
+
/** The patterned color to use for the background of a scrubber control */
|
|
63
|
+
scrubberTexturedBackground: ColorValue;
|
|
64
|
+
/** The color to use for the window background */
|
|
65
|
+
windowBackgroundColor: ColorValue;
|
|
66
|
+
/** The color to use for text in a window's frame */
|
|
67
|
+
windowFrameTextColor: ColorValue;
|
|
68
|
+
/** The color to use in the area beneath your window's views */
|
|
69
|
+
underPageBackgroundColor: ColorValue;
|
|
70
|
+
/** The highlight color to use for the bubble that shows inline search result values */
|
|
71
|
+
findHighlightColor: ColorValue;
|
|
72
|
+
/** The color to use as a virtual light source on the screen */
|
|
73
|
+
highlightColor: ColorValue;
|
|
74
|
+
/** The color to use for virtual shadows cast by raised objects on the screen */
|
|
75
|
+
shadowColor: ColorValue;
|
|
76
|
+
}
|
|
77
|
+
/** Palette of colors defined in FluentUI Apple */
|
|
78
|
+
interface FluentUIAppleBasePalette {
|
|
79
|
+
blue10: ColorValue;
|
|
80
|
+
blueMagenta20: ColorValue;
|
|
81
|
+
blueMagenta30: ColorValue;
|
|
82
|
+
communicationBlue: ColorValue;
|
|
83
|
+
communicationBlueShade10: ColorValue;
|
|
84
|
+
communicationBlueShade20: ColorValue;
|
|
85
|
+
communicationBlueShade30: ColorValue;
|
|
86
|
+
communicationBlueTint10: ColorValue;
|
|
87
|
+
communicationBlueTint20: ColorValue;
|
|
88
|
+
communicationBlueTint30: ColorValue;
|
|
89
|
+
communicationBlueTint40: ColorValue;
|
|
90
|
+
cyan20: ColorValue;
|
|
91
|
+
cyan30: ColorValue;
|
|
92
|
+
cyanBlue10: ColorValue;
|
|
93
|
+
cyanBlue20: ColorValue;
|
|
94
|
+
dangerPrimary: ColorValue;
|
|
95
|
+
dangerShade10: ColorValue;
|
|
96
|
+
dangerShade20: ColorValue;
|
|
97
|
+
dangerShade30: ColorValue;
|
|
98
|
+
dangerTint10: ColorValue;
|
|
99
|
+
dangerTint20: ColorValue;
|
|
100
|
+
dangerTint30: ColorValue;
|
|
101
|
+
dangerTint40: ColorValue;
|
|
102
|
+
gray20: ColorValue;
|
|
103
|
+
gray25: ColorValue;
|
|
104
|
+
gray30: ColorValue;
|
|
105
|
+
gray40: ColorValue;
|
|
106
|
+
gray50: ColorValue;
|
|
107
|
+
gray100: ColorValue;
|
|
108
|
+
gray200: ColorValue;
|
|
109
|
+
gray300: ColorValue;
|
|
110
|
+
gray400: ColorValue;
|
|
111
|
+
gray500: ColorValue;
|
|
112
|
+
gray600: ColorValue;
|
|
113
|
+
gray700: ColorValue;
|
|
114
|
+
gray800: ColorValue;
|
|
115
|
+
gray900: ColorValue;
|
|
116
|
+
gray950: ColorValue;
|
|
117
|
+
green10: ColorValue;
|
|
118
|
+
green20: ColorValue;
|
|
119
|
+
magenta10: ColorValue;
|
|
120
|
+
magenta20: ColorValue;
|
|
121
|
+
magentaPink10: ColorValue;
|
|
122
|
+
orange20: ColorValue;
|
|
123
|
+
orange30: ColorValue;
|
|
124
|
+
orangeYellow20: ColorValue;
|
|
125
|
+
pinkRed10: ColorValue;
|
|
126
|
+
presenceAvailable: ColorValue;
|
|
127
|
+
presenceAway: ColorValue;
|
|
128
|
+
presenceBlocked: ColorValue;
|
|
129
|
+
presenceBusy: ColorValue;
|
|
130
|
+
presenceDnd: ColorValue;
|
|
131
|
+
presenceOffline: ColorValue;
|
|
132
|
+
presenceOof: ColorValue;
|
|
133
|
+
presenceUnknown: ColorValue;
|
|
134
|
+
red10: ColorValue;
|
|
135
|
+
red20: ColorValue;
|
|
136
|
+
successPrimary: ColorValue;
|
|
137
|
+
successShade10: ColorValue;
|
|
138
|
+
successShade20: ColorValue;
|
|
139
|
+
successShade30: ColorValue;
|
|
140
|
+
successTint10: ColorValue;
|
|
141
|
+
successTint20: ColorValue;
|
|
142
|
+
successTint30: ColorValue;
|
|
143
|
+
successTint40: ColorValue;
|
|
144
|
+
warningPrimary: ColorValue;
|
|
145
|
+
warningShade10: ColorValue;
|
|
146
|
+
warningShade20: ColorValue;
|
|
147
|
+
warningShade30: ColorValue;
|
|
148
|
+
warningTint10: ColorValue;
|
|
149
|
+
warningTint20: ColorValue;
|
|
150
|
+
warningTint30: ColorValue;
|
|
151
|
+
warningTint40: ColorValue;
|
|
152
|
+
}
|
|
153
|
+
export type FluentUIApplePalette = FluentUIAppleBasePalette;
|
|
154
|
+
export {};
|
|
155
|
+
//# sourceMappingURL=appleColors.types.macos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleColors.types.macos.d.ts","sourceRoot":"","sources":["../src/appleColors.types.macos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,8HAA8H;AAC9H,MAAM,WAAW,oBAAoB;IAGnC,+CAA+C;IAC/C,UAAU,EAAE,UAAU,CAAC;IAEvB,iDAAiD;IACjD,mBAAmB,EAAE,UAAU,CAAC;IAEhC,gDAAgD;IAChD,kBAAkB,EAAE,UAAU,CAAC;IAE/B,iEAAiE;IACjE,oBAAoB,EAAE,UAAU,CAAC;IAIjC,gCAAgC;IAChC,SAAS,EAAE,UAAU,CAAC;IAEtB,sEAAsE;IACtE,oBAAoB,EAAE,UAAU,CAAC;IAEjC,yCAAyC;IACzC,iBAAiB,EAAE,UAAU,CAAC;IAE9B,2DAA2D;IAC3D,mBAAmB,EAAE,UAAU,CAAC;IAEhC,2DAA2D;IAC3D,2BAA2B,EAAE,UAAU,CAAC;IAExC,mEAAmE;IACnE,2BAA2B,EAAE,UAAU,CAAC;IAExC,oEAAoE;IACpE,6BAA6B,EAAE,UAAU,CAAC;IAE1C,0EAA0E;IAC1E,uCAAuC,EAAE,UAAU,CAAC;IAIpD,iCAAiC;IACjC,SAAS,EAAE,UAAU,CAAC;IAEtB,4EAA4E;IAC5E,cAAc,EAAE,UAAU,CAAC;IAE3B,6EAA6E;IAC7E,8BAA8B,EAAE,UAAU,CAAC;IAE3C,6DAA6D;IAC7D,0CAA0C,EAAE,UAAU,CAAC;IAIvD,kDAAkD;IAClD,yBAAyB,EAAE,UAAU,CAAC;IAItC,iFAAiF;IACjF,SAAS,EAAE,UAAU,CAAC;IAEtB,iFAAiF;IACjF,eAAe,EAAE,UAAU,CAAC;IAE5B,gHAAgH;IAChH,oCAAoC,EAAE,UAAU,CAAC;IAEjD,gHAAgH;IAChH,qCAAqC,EAAE,UAAU,C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K,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;IAClB,cAAc,EAAE,UAAU,CAAC;IAC3B,cAAc,EAAE,UAAU,CAAC;IAC3B,cAAc,EAAE,UAAU,CAAC;IAC3B,cAAc,EAAE,UAAU,CAAC;IAC3B,aAAa,EAAE,UAAU,CAAC;IAC1B,aAAa,EAAE,UAAU,CAAC;IAC1B,aAAa,EAAE,UAAU,CAAC;IAC1B,aAAa,EAAE,UAAU,CAAC;IAC1B,cAAc,EAAE,UAAU,CAAC;IAC3B,cAAc,EAAE,UAAU,CAAC;IAC3B,cAAc,EAAE,UAAU,CAAC;IAC3B,cAAc,EAAE,UAAU,CAAC;IAC3B,aAAa,EAAE,UAAU,CAAC;IAC1B,aAAa,EAAE,UAAU,CAAC;IAC1B,aAAa,EAAE,UAAU,CAAC;IAC1B,aAAa,EAAE,UAAU,CAAC;CAC3B;AAED,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleColors.types.macos.js","sourceRoot":"","sources":["../src/appleColors.types.macos.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleHighContrast.macos.d.ts","sourceRoot":"","sources":["../src/appleHighContrast.macos.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,iBAAiB,EAAE,OAAO,QAE3D;AAED,wBAAgB,iBAAiB,YAEhC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { isHighContrast, setIsHighContrast as setIsHighContrastCore } from '@fluentui-react-native/theming-utils';
|
|
2
|
+
export function setIsHighContrast(newIsHighContrast) {
|
|
3
|
+
setIsHighContrastCore(newIsHighContrast);
|
|
4
|
+
}
|
|
5
|
+
export function getIsHighContrast() {
|
|
6
|
+
return isHighContrast();
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=appleHighContrast.macos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleHighContrast.macos.js","sourceRoot":"","sources":["../src/appleHighContrast.macos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAElH,MAAM,UAAU,iBAAiB,CAAC,iBAA0B;IAC1D,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,cAAc,EAAE,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleShadows.ios.d.ts","sourceRoot":"","sources":["../src/appleShadows.ios.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAKhF,wBAAgB,UAAU,IAAI,qBAAqB,CAIlD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Appearance } from 'react-native';
|
|
2
|
+
import { getCurrentAppearance } from '@fluentui-react-native/theming-utils';
|
|
3
|
+
import { createiOSShadowAliasTokens } from './createiOSAliasTokens';
|
|
4
|
+
export function iOSShadows() {
|
|
5
|
+
var appearance = Appearance.getColorScheme();
|
|
6
|
+
var mode = getCurrentAppearance(appearance, 'light');
|
|
7
|
+
return createiOSShadowAliasTokens(mode);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=appleShadows.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleShadows.ios.js","sourceRoot":"","sources":["../src/appleShadows.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,UAAU,UAAU;IACxB,IAAM,UAAU,GAAG,UAAU,CAAC,cAAc,EAAE,CAAC;IAC/C,IAAM,IAAI,GAAG,oBAAoB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACvD,OAAO,0BAA0B,CAAC,IAAI,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleShadows.macos.d.ts","sourceRoot":"","sources":["../src/appleShadows.macos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAKnG,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,qBAAqB,CAEnF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { getIsHighContrast } from './appleHighContrast.macos';
|
|
2
|
+
import { createMacOSShadowAliasTokens } from './createMacOSAliasTokens';
|
|
3
|
+
export function fallbackAppleShadows(mode) {
|
|
4
|
+
return createMacOSShadowAliasTokens(mode, getIsHighContrast());
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=appleShadows.macos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleShadows.macos.js","sourceRoot":"","sources":["../src/appleShadows.macos.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAExE,MAAM,UAAU,oBAAoB,CAAC,IAAuB;IAC1D,OAAO,4BAA4B,CAAC,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/theme-types';
|
|
2
|
+
declare function getBaseAppleThemeIOSWorker(isLightMode: boolean, isElevated: boolean): Theme;
|
|
3
|
+
export declare const getBaseAppleThemeIOS: typeof getBaseAppleThemeIOSWorker;
|
|
4
|
+
export {};
|
|
5
|
+
//# sourceMappingURL=appleTheme.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleTheme.ios.d.ts","sourceRoot":"","sources":["../src/appleTheme.ios.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAW,MAAM,oCAAoC,CAAC;AAkIzE,iBAAS,0BAA0B,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,KAAK,CASpF;AAED,eAAO,MAAM,oBAAoB,mCAAsC,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { memoize } from '@fluentui-react-native/memo-cache';
|
|
2
|
+
import { paletteFromAppleColors } from './appleColors.ios';
|
|
3
|
+
import { iOSShadows } from './appleShadows.ios';
|
|
4
|
+
import { appleTypography } from './appleTypography.ios';
|
|
5
|
+
function appleSpacing() {
|
|
6
|
+
return {
|
|
7
|
+
s2: '4px',
|
|
8
|
+
s1: '8px',
|
|
9
|
+
l1: '20px',
|
|
10
|
+
l2: '32px',
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
var appleComponents = {
|
|
14
|
+
// The Default Button corresponds to the "secondary outline" button style on iOS
|
|
15
|
+
Button: {
|
|
16
|
+
tokens: {
|
|
17
|
+
borderRadius: 8,
|
|
18
|
+
borderWidth: 1,
|
|
19
|
+
},
|
|
20
|
+
root: {
|
|
21
|
+
style: {
|
|
22
|
+
margin: 8, // Padding around the outside of the button
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
stack: {
|
|
26
|
+
style: {
|
|
27
|
+
paddingVertical: 10,
|
|
28
|
+
paddingHorizontal: 14,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
icon: {
|
|
32
|
+
style: {
|
|
33
|
+
marginEnd: 8,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
content: {
|
|
37
|
+
fontSize: 12,
|
|
38
|
+
height: 18,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
PrimaryButton: {
|
|
42
|
+
tokens: {
|
|
43
|
+
borderRadius: 8,
|
|
44
|
+
borderWidth: 1,
|
|
45
|
+
},
|
|
46
|
+
root: {
|
|
47
|
+
style: {
|
|
48
|
+
margin: 8, // Padding around the outside of the button
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
stack: {
|
|
52
|
+
style: {
|
|
53
|
+
paddingVertical: 16,
|
|
54
|
+
paddingHorizontal: 20,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
icon: {
|
|
58
|
+
style: {
|
|
59
|
+
marginEnd: 10,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
content: {
|
|
63
|
+
fontSize: 15,
|
|
64
|
+
height: 20,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
StealthButton: {
|
|
68
|
+
tokens: {
|
|
69
|
+
borderRadius: 8,
|
|
70
|
+
borderWidth: 1,
|
|
71
|
+
},
|
|
72
|
+
root: {
|
|
73
|
+
style: {
|
|
74
|
+
margin: 8, // Padding around the outside of the button
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
stack: {
|
|
78
|
+
style: {
|
|
79
|
+
paddingVertical: 7,
|
|
80
|
+
paddingHorizontal: 12,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
icon: {
|
|
84
|
+
style: {
|
|
85
|
+
display: 'none',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
content: {
|
|
89
|
+
fontSize: 15,
|
|
90
|
+
height: 20,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
RNFText: {
|
|
94
|
+
tokens: {
|
|
95
|
+
variant: 'bodyStandard',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
Checkbox: {
|
|
99
|
+
root: {
|
|
100
|
+
style: {
|
|
101
|
+
minHeight: 20,
|
|
102
|
+
marginVertical: 2,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
checkbox: {
|
|
106
|
+
style: {
|
|
107
|
+
borderRadius: 100,
|
|
108
|
+
minHeight: 24,
|
|
109
|
+
minWidth: 24,
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
checkmarkIcon: {
|
|
113
|
+
width: 8.5,
|
|
114
|
+
height: 7,
|
|
115
|
+
style: {
|
|
116
|
+
marginVertical: 8.5,
|
|
117
|
+
marginLeft: 8,
|
|
118
|
+
marginRight: 7,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
function getBaseAppleThemeIOSWorker(isLightMode, isElevated) {
|
|
124
|
+
return {
|
|
125
|
+
colors: paletteFromAppleColors(isLightMode, isElevated),
|
|
126
|
+
typography: appleTypography(),
|
|
127
|
+
shadows: iOSShadows(),
|
|
128
|
+
spacing: appleSpacing(),
|
|
129
|
+
components: appleComponents,
|
|
130
|
+
host: { appearance: isLightMode ? 'light' : 'dark' },
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export var getBaseAppleThemeIOS = memoize(getBaseAppleThemeIOSWorker);
|
|
134
|
+
//# sourceMappingURL=appleTheme.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleTheme.ios.js","sourceRoot":"","sources":["../src/appleTheme.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAG5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,SAAS,YAAY;IACnB,OAAO;QACL,EAAE,EAAE,KAAK;QACT,EAAE,EAAE,KAAK;QACT,EAAE,EAAE,MAAM;QACV,EAAE,EAAE,MAAM;KACX,CAAC;AACJ,CAAC;AAED,IAAM,eAAe,GAAG;IACtB,gFAAgF;IAChF,MAAM,EAAE;QACN,MAAM,EAA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OAAO,EAAE,cAAc;SACxB;KACF;IAED,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,SAAS,EAAE,EAAE;gBACb,cAAc,EAAE,CAAC;aAClB;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,YAAY,EAAE,GAAG;gBACjB,SAAS,EAAE,EAAE;gBACb,QAAQ,EAAE,EAAE;aACb;SACF;QACD,aAAa,EAAE;YACb,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,CAAC;YACT,KAAK,EAAE;gBACL,cAAc,EAAE,GAAG;gBACnB,UAAU,EAAE,CAAC;gBACb,WAAW,EAAE,CAAC;aACf;SACF;KACF;CACF,CAAC;AAEF,SAAS,0BAA0B,CAAC,WAAoB,EAAE,UAAmB;IAC3E,OAAO;QACL,MAAM,EAAE,sBAAsB,CAAC,WAAW,EAAE,UAAU,CAAC;QACvD,UAAU,EAAE,eAAe,EAAE;QAC7B,OAAO,EAAE,UAAU,EAAE;QACrB,OAAO,EAAE,YAAY,EAAE;QACvB,UAAU,EAAE,eAAe;QAC3B,IAAI,EAAE,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE;KACrD,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,IAAM,oBAAoB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { Spacing, Theme, AppearanceOptions } from '@fluentui-react-native/theme-types';
|
|
2
|
+
export declare function appleSpacing(): Spacing;
|
|
3
|
+
export declare const appleComponents: {
|
|
4
|
+
Button: {
|
|
5
|
+
tokens: {
|
|
6
|
+
borderRadius: number;
|
|
7
|
+
borderWidth: number;
|
|
8
|
+
minHeight: number;
|
|
9
|
+
minWidth: number;
|
|
10
|
+
};
|
|
11
|
+
root: {
|
|
12
|
+
style: {
|
|
13
|
+
margin: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
stack: {
|
|
17
|
+
style: {
|
|
18
|
+
paddingVertical: number;
|
|
19
|
+
minHeight: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
icon: {
|
|
23
|
+
style: {
|
|
24
|
+
marginEnd: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
content: {
|
|
28
|
+
fontSize: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
RNFText: {
|
|
32
|
+
tokens: {
|
|
33
|
+
variant: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
Checkbox: {
|
|
37
|
+
checkbox: {
|
|
38
|
+
style: {
|
|
39
|
+
borderStyle: string;
|
|
40
|
+
borderWidth: number;
|
|
41
|
+
borderRadius: number;
|
|
42
|
+
minHeight: number;
|
|
43
|
+
minWidth: number;
|
|
44
|
+
marginEnd: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
checkmarkIcon: {
|
|
48
|
+
width: number;
|
|
49
|
+
height: number;
|
|
50
|
+
style: {
|
|
51
|
+
marginVertical: number;
|
|
52
|
+
marginHorizontal: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
_precedence: string[];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
declare function getBaseAppleThemeMacOSWorker(mode: AppearanceOptions): Theme;
|
|
59
|
+
export declare const getBaseAppleThemeMacOS: typeof getBaseAppleThemeMacOSWorker;
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=appleTheme.macos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleTheme.macos.d.ts","sourceRoot":"","sources":["../src/appleTheme.macos.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAM5F,wBAAgB,YAAY,IAAI,OAAO,CAQtC;AAED,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD3B,CAAC;AAEF,iBAAS,4BAA4B,CAAC,IAAI,EAAE,iBAAiB,GAAG,KAAK,CASpE;AAED,eAAO,MAAM,sBAAsB,qCAAwC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { memoize } from '@fluentui-react-native/memo-cache';
|
|
2
|
+
import { fallbackApplePalette } from './appleColors.macos';
|
|
3
|
+
import { fallbackAppleShadows } from './appleShadows.macos';
|
|
4
|
+
import { fallbackAppleTypography } from './appleTypography.macos';
|
|
5
|
+
export function appleSpacing() {
|
|
6
|
+
return {
|
|
7
|
+
s2: '8px',
|
|
8
|
+
s1: '12px',
|
|
9
|
+
m: '16px',
|
|
10
|
+
l1: '20px',
|
|
11
|
+
l2: '24px',
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export var appleComponents = {
|
|
15
|
+
// These values correspond to the "Large" Button Size values of the FluentUI Apple Button
|
|
16
|
+
Button: {
|
|
17
|
+
tokens: {
|
|
18
|
+
borderRadius: 6,
|
|
19
|
+
borderWidth: 1,
|
|
20
|
+
minHeight: 28,
|
|
21
|
+
minWidth: 72,
|
|
22
|
+
},
|
|
23
|
+
root: {
|
|
24
|
+
style: {
|
|
25
|
+
margin: 8, // Padding around the outside of the button
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
stack: {
|
|
29
|
+
style: {
|
|
30
|
+
paddingVertical: 4.5,
|
|
31
|
+
minHeight: 28,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
icon: {
|
|
35
|
+
style: {
|
|
36
|
+
marginEnd: 10,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
content: {
|
|
40
|
+
fontSize: 15,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
RNFText: {
|
|
44
|
+
tokens: {
|
|
45
|
+
variant: 'bodyStandard',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
Checkbox: {
|
|
49
|
+
checkbox: {
|
|
50
|
+
style: {
|
|
51
|
+
borderStyle: 'solid',
|
|
52
|
+
borderWidth: 0.5,
|
|
53
|
+
borderRadius: 3,
|
|
54
|
+
minHeight: 14,
|
|
55
|
+
minWidth: 14,
|
|
56
|
+
marginEnd: 5,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
checkmarkIcon: {
|
|
60
|
+
width: 10,
|
|
61
|
+
height: 10,
|
|
62
|
+
style: {
|
|
63
|
+
marginVertical: 2,
|
|
64
|
+
marginHorizontal: 2,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
// This disables other available states like: hovered, focused, pressed.
|
|
68
|
+
_precedence: ['disabled', 'boxAtEnd', 'checked'],
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
function getBaseAppleThemeMacOSWorker(mode) {
|
|
72
|
+
return {
|
|
73
|
+
colors: fallbackApplePalette(mode),
|
|
74
|
+
typography: fallbackAppleTypography(),
|
|
75
|
+
shadows: fallbackAppleShadows(mode),
|
|
76
|
+
spacing: appleSpacing(),
|
|
77
|
+
components: appleComponents,
|
|
78
|
+
host: { appearance: 'dynamic' },
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export var getBaseAppleThemeMacOS = memoize(getBaseAppleThemeMacOSWorker);
|
|
82
|
+
//# sourceMappingURL=appleTheme.macos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleTheme.macos.js","sourceRoot":"","sources":["../src/appleTheme.macos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAG5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,UAAU,YAAY;IAC1B,OAAO;QACL,EA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AAuB,EAAE;QACrC,OAAO,EAAE,oBAAoB,CAAC,IAAI,CAAC;QACnC,OAAO,EAAE,YAAY,EAAE;QACvB,UAAU,EAAE,eAAe;QAC3B,IAAI,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE;KAChC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,IAAM,sBAAsB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleTypography.ios.d.ts","sourceRoot":"","sources":["../src/appleTypography.ios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwC,UAAU,EAAY,MAAM,oCAAoC,CAAC;AAKrH,wBAAgB,eAAe,IAAI,UAAU,CAmD5C"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { createFontAliasTokens } from './createFontAliasTokens.ios';
|
|
13
|
+
// The sizes are taken for the Dynamic Type Size "Large", which is the system default
|
|
14
|
+
export function appleTypography() {
|
|
15
|
+
var appleDict = {
|
|
16
|
+
sizes: {
|
|
17
|
+
caption: 12,
|
|
18
|
+
secondary: 16,
|
|
19
|
+
body: 17,
|
|
20
|
+
subheader: 15,
|
|
21
|
+
header: 17,
|
|
22
|
+
hero: 26,
|
|
23
|
+
heroLarge: 30, // Large Title,
|
|
24
|
+
},
|
|
25
|
+
weights: {
|
|
26
|
+
ultralight: '100',
|
|
27
|
+
thin: '200',
|
|
28
|
+
light: '300',
|
|
29
|
+
regular: '400',
|
|
30
|
+
medium: '500',
|
|
31
|
+
semiBold: '600',
|
|
32
|
+
bold: '700',
|
|
33
|
+
heavy: '800',
|
|
34
|
+
black: '900',
|
|
35
|
+
},
|
|
36
|
+
families: {
|
|
37
|
+
primary: 'System',
|
|
38
|
+
secondary: 'System',
|
|
39
|
+
cursive: 'System',
|
|
40
|
+
monospace: 'System',
|
|
41
|
+
numeric: 'System',
|
|
42
|
+
sansSerif: 'System',
|
|
43
|
+
serif: 'System',
|
|
44
|
+
},
|
|
45
|
+
variants: __assign({ captionStandard: { face: 'primary', size: 'caption', weight: '400' }, secondaryStandard: { face: 'primary', size: 'secondary', weight: '400' }, secondarySemibold: { face: 'primary', size: 'secondary', weight: '600' }, bodyStandard: { face: 'primary', size: 'body', weight: '400' }, bodySemibold: { face: 'primary', size: 'body', weight: '600' }, subheaderStandard: { face: 'primary', size: 'subheader', weight: '400' }, subheaderSemibold: { face: 'primary', size: 'subheader', weight: '600' }, headerStandard: { face: 'primary', size: 'header', weight: '600' }, headerSemibold: { face: 'primary', size: 'header', weight: '800' }, heroStandard: { face: 'primary', size: 'hero', weight: '400' }, heroSemibold: { face: 'primary', size: 'hero', weight: '600' }, heroLargeStandard: { face: 'primary', size: 'heroLarge', weight: '400' }, heroLargeSemibold: { face: 'primary', size: 'heroLarge', weight: '600' } }, createFontAliasTokens()),
|
|
46
|
+
};
|
|
47
|
+
return appleDict;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=appleTypography.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleTypography.ios.js","sourceRoot":"","sources":["../src/appleTypography.ios.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,qFAAqF;AACrF,MAAM,UAAU,eAAe;IAC7B,IAAM,SAAS,GAAG;QAChB,KAAK,EAAE;YACL,OAAO,EAAE,EAAc;YACvB,SAAS,EAAE,EAAc;YACzB,IAAI,E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AE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,EACxE,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,EAClE,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,EAClE,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAC9D,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAC9D,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,EACxE,iBAAiB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,IAErE,qBAAqB,EAAE,CACf;KACd,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Typography } from '@fluentui-react-native/theme-types';
|
|
2
|
+
/**
|
|
3
|
+
* The Typography is designed to match the styles defined in the Apple HIG:
|
|
4
|
+
* https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/typography/
|
|
5
|
+
* These mappings and variants are subject to change as we moved to a unified cross platform Fluent typography ramp
|
|
6
|
+
* Github #598 also tracks pulling these values from a Native Module rather than hardcoding the numbers in JS.
|
|
7
|
+
*/
|
|
8
|
+
export declare function fallbackAppleTypography(): Typography;
|
|
9
|
+
//# sourceMappingURL=appleTypography.macos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appleTypography.macos.d.ts","sourceRoot":"","sources":["../src/appleTypography.macos.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwC,UAAU,EAAY,MAAM,oCAAoC,CAAC;AAErH;;;;;GAKG;AAEH,wBAAgB,uBAAuB,IAAI,UAAU,CA+DpD"}
|