@fluentui-react-native/framework 0.16.1 → 0.17.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/.cache/tsconfig.tsbuildinfo +1 -1
- package/AGENTS.md +244 -0
- package/CHANGELOG.md +70 -0
- package/lib/compose.d.ts +1 -1
- package/lib/compose.d.ts.map +1 -1
- package/lib/compose.js +1 -1
- package/lib/compose.js.map +1 -1
- package/lib/compressible.d.ts +4 -4
- package/lib/compressible.d.ts.map +1 -1
- package/lib/compressible.js.map +1 -1
- package/lib/compressible.test.js +3 -4
- package/lib/compressible.test.js.map +1 -1
- package/lib/index.d.ts +13 -14
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -8
- package/lib/index.js.map +1 -1
- package/lib/themeHelper.d.ts +1 -1
- package/lib/themeHelper.d.ts.map +1 -1
- package/lib/themeHelper.js +1 -1
- package/lib/themeHelper.js.map +1 -1
- package/lib/useFluentTheme.d.ts +1 -1
- package/lib/useFluentTheme.d.ts.map +1 -1
- package/lib/useFluentTheme.js +1 -1
- package/lib/useFluentTheme.js.map +1 -1
- package/lib/useStyling.d.ts +1 -1
- package/lib/useStyling.d.ts.map +1 -1
- package/lib/useStyling.js +1 -1
- package/lib/useStyling.js.map +1 -1
- package/lib/useTokens.d.ts +2 -2
- package/lib/useTokens.d.ts.map +1 -1
- package/lib/useTokens.js +1 -1
- package/lib/useTokens.js.map +1 -1
- package/package.json +11 -13
- package/src/compose.ts +2 -2
- package/src/compressible.test.tsx +5 -6
- package/src/compressible.ts +7 -7
- package/src/index.ts +13 -14
- package/src/themeHelper.ts +2 -2
- package/src/useFluentTheme.ts +2 -2
- package/src/useStyling.ts +2 -2
- package/src/useTokens.ts +3 -3
package/AGENTS.md
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
# v1 component framework
|
|
2
|
+
|
|
3
|
+
These instructions apply to `packages/framework/framework` and to components
|
|
4
|
+
authored with `@fluentui-react-native/framework`. They describe the repository's
|
|
5
|
+
v1 compose/compressible framework. Preserve this model when maintaining v1 code;
|
|
6
|
+
do not mix it with either legacy v0 or the newer framework-base component model.
|
|
7
|
+
|
|
8
|
+
## Recognizing v1 code
|
|
9
|
+
|
|
10
|
+
Treat a component as v1 when several of these are present:
|
|
11
|
+
|
|
12
|
+
- imports of `compose`, `compressible`, `UseSlots`, `UseStylingOptions`,
|
|
13
|
+
`buildProps`, `buildUseTokens`, or `useFluentTheme` from
|
|
14
|
+
`@fluentui-react-native/framework`;
|
|
15
|
+
- a descriptor such as `ButtonType` with `props`, `tokens`, and `slotProps`;
|
|
16
|
+
- `compose<ComponentType>({ slots, slotProps, tokens, states, useRender })`;
|
|
17
|
+
- a styling file whose tokens contain nested state layers such as `hovered`,
|
|
18
|
+
`pressed`, `disabled`, size, appearance, or shape;
|
|
19
|
+
- a public `V1` export beside a legacy unsuffixed export, for example
|
|
20
|
+
`ButtonV1`, `CheckboxV1`, `TextV1`, or `IconV1`.
|
|
21
|
+
|
|
22
|
+
Representative compose components are
|
|
23
|
+
`packages/components/Button/src/Button.tsx`,
|
|
24
|
+
`packages/components/Checkbox/src/Checkbox.tsx`,
|
|
25
|
+
`packages/components/Avatar/src/Avatar.tsx`, and
|
|
26
|
+
`packages/components/Menu/src/MenuItem/MenuItem.tsx`. Representative
|
|
27
|
+
compressible components are `packages/components/Text/src/Text.tsx`,
|
|
28
|
+
`packages/components/Divider/src/Divider.tsx`, and
|
|
29
|
+
`packages/components/TabList/src/Tab/Tab.tsx`.
|
|
30
|
+
|
|
31
|
+
Do not classify code by the JSX pragma alone. V0 and v1 components both use
|
|
32
|
+
`/** @jsxImportSource @fluentui-react-native/framework-base */` so callable slots
|
|
33
|
+
can render without extra wrappers.
|
|
34
|
+
|
|
35
|
+
## Framework boundaries
|
|
36
|
+
|
|
37
|
+
- **V0/legacy:** imports `@uifabricshared/foundation-compose` and uses
|
|
38
|
+
`settings`, `styles`, `usePrepareProps`, `render`, `mergeSettings`,
|
|
39
|
+
`_overrides`, and `_precedence`. Follow
|
|
40
|
+
`packages/deprecated/foundation-compose/AGENTS.md`; do not apply those shapes
|
|
41
|
+
to v1.
|
|
42
|
+
- **V1/this framework:** `compose` wraps
|
|
43
|
+
`packages/framework/composition`, while styling and slots come from
|
|
44
|
+
`use-styling`, `use-tokens`, and `use-slots`. Its component hook is
|
|
45
|
+
`useRender`, its customization input is a flat token object, and its state
|
|
46
|
+
layers are nested token objects.
|
|
47
|
+
- **Modern framework-base/agent-generation work:** `phasedComponent`, modern
|
|
48
|
+
`directComponent`, `Slot<typeof View>`, `OptionalSlot`, `ComponentProps`, and
|
|
49
|
+
public slot shorthand/`as` props are a different component-authoring model.
|
|
50
|
+
Framework-base utilities such as `mergeProps`, `useSlot`, `directComponent`,
|
|
51
|
+
and the JSX runtime may appear inside v1 implementations for compatibility;
|
|
52
|
+
that does not convert the component to the new model.
|
|
53
|
+
|
|
54
|
+
Do not migrate between these frameworks during a maintenance change unless the
|
|
55
|
+
task explicitly requests a migration. In particular, v1 is built on the
|
|
56
|
+
compatibility `stagedComponent` path even though new framework-base components
|
|
57
|
+
must not add new staged components.
|
|
58
|
+
|
|
59
|
+
## Framework model and public API
|
|
60
|
+
|
|
61
|
+
`compose` injects the Fluent `Theme` integration into `composeFactory`. The
|
|
62
|
+
factory:
|
|
63
|
+
|
|
64
|
+
1. resolves tokens and token-derived props through `buildUseStyling`;
|
|
65
|
+
2. creates all callable slots through `buildUseSlots`;
|
|
66
|
+
3. wraps `useRender` in a staged component;
|
|
67
|
+
4. attaches `.customize(...)`, `.compose(...)`, `displayName`, `__options`, and
|
|
68
|
+
any declared statics.
|
|
69
|
+
|
|
70
|
+
Use the `@fluentui-react-native/framework` entry point from components. Import
|
|
71
|
+
`composeFactory` directly from `@fluentui-react-native/composition` only when
|
|
72
|
+
working on the theme-agnostic lower-level factory.
|
|
73
|
+
|
|
74
|
+
- `.customize(...tokenSettings)` appends token layers. Inputs may be token
|
|
75
|
+
objects, theme functions, or component names. Define customized components at
|
|
76
|
+
module scope, not during render.
|
|
77
|
+
- `.compose(partialOptions)` deep-merges factory options and appends `tokens`.
|
|
78
|
+
Use it to replace slots, slot props, state declarations, or `useRender`
|
|
79
|
+
without adding a React wrapper. See the compose tests in Button and Checkbox.
|
|
80
|
+
- `buildUseTokens` and `buildUseStyling` are Fluent-theme-specialized wrappers
|
|
81
|
+
around the lower-level packages. `useFluentTheme` returns the context theme or
|
|
82
|
+
`defaultFluentTheme`.
|
|
83
|
+
|
|
84
|
+
The package also re-exports established token builders, memo/merge helpers,
|
|
85
|
+
slot helpers, and theme types. Check `src/index.ts` before adding another public
|
|
86
|
+
export; keep exports explicit.
|
|
87
|
+
|
|
88
|
+
## Compose component shape
|
|
89
|
+
|
|
90
|
+
Keep the descriptor, styling, state hook, and renderer aligned:
|
|
91
|
+
|
|
92
|
+
```tsx
|
|
93
|
+
interface ExampleType {
|
|
94
|
+
props: ExampleProps;
|
|
95
|
+
tokens: ExampleTokens;
|
|
96
|
+
slotProps: ExampleSlotProps;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export const Example = compose<ExampleType>({
|
|
100
|
+
displayName: exampleName,
|
|
101
|
+
...stylingSettings,
|
|
102
|
+
slots: { root: Pressable, content: Text },
|
|
103
|
+
useRender: (userProps, useSlots) => {
|
|
104
|
+
const example = useExample(userProps);
|
|
105
|
+
const Slots = useSlots(userProps, (layer) => example.state[layer] || userProps[layer]);
|
|
106
|
+
|
|
107
|
+
return (final, ...children) => {
|
|
108
|
+
const mergedProps = mergeProps(example.props, final);
|
|
109
|
+
return (
|
|
110
|
+
<Slots.root {...mergedProps}>
|
|
111
|
+
<Slots.content>{children}</Slots.content>
|
|
112
|
+
</Slots.root>
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
`ComposeType` is available, but most current components use a named interface.
|
|
120
|
+
Only `props`, `slotProps`, `tokens`, and optional `statics` are extracted by the
|
|
121
|
+
factory. Extra descriptor fields such as `state` are documentation/type-sharing
|
|
122
|
+
conveniences, not factory-managed state.
|
|
123
|
+
|
|
124
|
+
Typical files are `<Component>.types.ts`, `<Component>Tokens.ts` plus platform
|
|
125
|
+
variants, `<Component>.styling.ts`, `use<Component>.ts`, `<Component>.tsx`,
|
|
126
|
+
`index.ts`, tests/snapshots, and migration/spec docs where applicable. Preserve
|
|
127
|
+
existing v0/v1 export aliases and package API compatibility.
|
|
128
|
+
|
|
129
|
+
## Slots and staged rendering
|
|
130
|
+
|
|
131
|
+
- Keep every key in `slots`, `slotProps`, and the descriptor's `slotProps`
|
|
132
|
+
synchronized. Type ref-bearing roots with `React.PropsWithRef<...>`.
|
|
133
|
+
- Call `useSlots` once, unconditionally, in the hook stage. `buildUseSlots`
|
|
134
|
+
creates every slot with `useSlot`; conditional slot rendering belongs in the
|
|
135
|
+
returned hook-free render stage.
|
|
136
|
+
- Styled slot props are captured when slots are created. Props supplied in JSX
|
|
137
|
+
are merged on top. Merge prepared component props with final composition props
|
|
138
|
+
using `mergeProps`; do not mutate either object.
|
|
139
|
+
- Decide explicitly where children render. The traditional v1 continuation is
|
|
140
|
+
`(finalProps, ...children) => JSX`. Some transitional components return a
|
|
141
|
+
hook-free `directComponent(({ children, ...finalProps }) => JSX)` instead.
|
|
142
|
+
Never call hooks in either final render form.
|
|
143
|
+
- `filters` are supported by `use-slots`, but current v1 consumers rarely use
|
|
144
|
+
them. Preserve an existing filter contract; do not copy v0
|
|
145
|
+
`{ slotType, filter }` slot descriptors into v1.
|
|
146
|
+
- Platform-only slots may be declared conditionally, as Button does for
|
|
147
|
+
`rippleContainer` and `focusInnerBorder`. Create slots consistently and render
|
|
148
|
+
them only on the matching platform.
|
|
149
|
+
|
|
150
|
+
Use `compressible` for the established lighter-weight v1 pattern when a component
|
|
151
|
+
manually resolves tokens and creates slots rather than needing the full compose
|
|
152
|
+
options object. `compressible` also wraps a staged component and adds
|
|
153
|
+
`.customize(...)`; it does not expose `.compose(...)`.
|
|
154
|
+
|
|
155
|
+
In a compressible component:
|
|
156
|
+
|
|
157
|
+
1. call hooks, `useFluentTheme`, and `useTokens(theme)` in the outer function;
|
|
158
|
+
2. use `applyTokenLayers`, `applyPropsToTokens`, or `patchTokens` when state/props
|
|
159
|
+
must alter resolved tokens;
|
|
160
|
+
3. build all slots with `useSlot`;
|
|
161
|
+
4. return a hook-free continuation and merge final props there.
|
|
162
|
+
|
|
163
|
+
Follow existing examples rather than calling `stagedComponent` directly.
|
|
164
|
+
|
|
165
|
+
## Tokens, styling, and state precedence
|
|
166
|
+
|
|
167
|
+
- Define defaults as stable objects or theme functions, then place the component
|
|
168
|
+
name last, for example
|
|
169
|
+
`tokens: [defaultButtonTokens, defaultButtonFontTokens, buttonName]`. The name
|
|
170
|
+
loads `theme.components[name]` overrides.
|
|
171
|
+
- Model visual states as nested values of the same token type. List them in
|
|
172
|
+
`states` in application order; later active layers win.
|
|
173
|
+
- Supply a lookup to `useSlots` when state is derived from interaction hooks,
|
|
174
|
+
enum props, context, content, or platform defaults. Button's `buttonLookup`
|
|
175
|
+
and Avatar's `avatarLookup` are representative.
|
|
176
|
+
- `tokensThatAreAlsoProps` is opt-in. After state layers are applied, listed
|
|
177
|
+
props override those token values. Prefer a precise key list over `'all'` to
|
|
178
|
+
retain caching and avoid leaking unrelated props into tokens.
|
|
179
|
+
- Build each slot's cached props with `buildProps`. List every token key read by
|
|
180
|
+
the builder, including helper key arrays such as `fontStyles.keys`,
|
|
181
|
+
`borderStyles.keys`, and `layoutStyles.keys`.
|
|
182
|
+
- Treat resolved tokens and cached slot props as immutable. Use `patchTokens`
|
|
183
|
+
rather than mutation for instance-dependent values in compressible components.
|
|
184
|
+
- Keep theme/default/state values in token files, token-to-native mapping in
|
|
185
|
+
styling files, and volatile handlers/accessibility/data/ref props in the
|
|
186
|
+
component state hook or render preparation.
|
|
187
|
+
|
|
188
|
+
## Hooks, state, and refs
|
|
189
|
+
|
|
190
|
+
Put controlled/uncontrolled state, context, interaction hooks, callbacks,
|
|
191
|
+
accessibility normalization, and ref preparation in `use<Component>` or the
|
|
192
|
+
outer `useRender`/compressible stage. Return a conventional `{ props, state }`
|
|
193
|
+
object when the component has derived behavior; `state` is component-owned data
|
|
194
|
+
used by the token lookup and final render.
|
|
195
|
+
|
|
196
|
+
Preserve established `componentRef` APIs. Convert `componentRef` to the native
|
|
197
|
+
root `ref` during preparation, commonly with `useViewCommandFocus`, as Button,
|
|
198
|
+
Checkbox, and MenuItem do. Do not introduce `forwardRef` or replace
|
|
199
|
+
`componentRef` with a public `ref` as an incidental change.
|
|
200
|
+
|
|
201
|
+
Hooks must run in a stable order before the continuation is returned. Never call
|
|
202
|
+
hooks inside state lookups, `buildProps` callbacks, conditional slot branches,
|
|
203
|
+
or the final render stage.
|
|
204
|
+
|
|
205
|
+
## Platform-specific behavior
|
|
206
|
+
|
|
207
|
+
Use React Native platform resolution and keep the public props/type/export
|
|
208
|
+
contract consistent across `.android`, `.ios`, `.macos`, `.mobile`, `.windows`,
|
|
209
|
+
and `.win32` implementations. Platform variants may replace the root with a
|
|
210
|
+
native component and use a one-slot compose implementation; see
|
|
211
|
+
`packages/experimental/Checkbox/src/Checkbox.macos.tsx` and
|
|
212
|
+
`packages/experimental/Avatar/src/NativeAvatar.tsx`.
|
|
213
|
+
|
|
214
|
+
Keep platform defaults and token differences in platform token/styling files
|
|
215
|
+
when practical. Keep imports from React Native forks inside their platform files
|
|
216
|
+
and retain the repository's `Platform.OS === ('win32' as any)` convention.
|
|
217
|
+
|
|
218
|
+
## Testing and validation
|
|
219
|
+
|
|
220
|
+
Add or update the owning component's Jest tests and snapshots for rendering,
|
|
221
|
+
state layers, `.customize`, `.compose`, slot replacement, accessibility, and
|
|
222
|
+
platform behavior affected by a change. Review snapshot trees rather than
|
|
223
|
+
updating them blindly. The framework package's direct test covers compressible;
|
|
224
|
+
lower-level compose, slot, token, and styling behavior is tested in the
|
|
225
|
+
corresponding framework packages.
|
|
226
|
+
|
|
227
|
+
Run the smallest relevant package checks:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
yarn workspace @fluentui-react-native/framework build
|
|
231
|
+
yarn workspace @fluentui-react-native/framework test
|
|
232
|
+
yarn workspace @fluentui-react-native/framework lint
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
For component changes, also build/test the owning package, for example:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
yarn workspace @fluentui-react-native/button build
|
|
239
|
+
yarn workspace @fluentui-react-native/button test
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
Changes to factory, slot, token, or styling semantics also require the matching
|
|
243
|
+
`@fluentui-react-native/composition`, `use-slots`, `use-tokens`, or
|
|
244
|
+
`use-styling` package tests.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/framework
|
|
2
2
|
|
|
3
|
+
## 0.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cbd319c: Bump package to publish via ESRP (no changes)
|
|
8
|
+
- Updated dependencies [5bc9e81]
|
|
9
|
+
- Updated dependencies [5bc9e81]
|
|
10
|
+
- Updated dependencies [cbd319c]
|
|
11
|
+
- @fluentui-react-native/framework-base@0.6.1
|
|
12
|
+
- @fluentui-react-native/design@0.3.1
|
|
13
|
+
- @fluentui-react-native/composition@0.14.2
|
|
14
|
+
- @fluentui-react-native/use-slots@0.13.2
|
|
15
|
+
- @fluentui-react-native/use-styling@0.16.2
|
|
16
|
+
- @fluentui-react-native/use-tokens@0.9.2
|
|
17
|
+
- @fluentui-react-native/default-theme@0.27.8
|
|
18
|
+
- @fluentui-react-native/tokens@0.24.8
|
|
19
|
+
|
|
20
|
+
## 0.17.1
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 3abc13a: Updated packages with agent instructions and type fixes
|
|
25
|
+
- Updated dependencies [3abc13a]
|
|
26
|
+
- Updated dependencies [778d82b]
|
|
27
|
+
- Updated dependencies [3abc13a]
|
|
28
|
+
- Updated dependencies [1157793]
|
|
29
|
+
- Updated dependencies [778d82b]
|
|
30
|
+
- Updated dependencies [ea738f0]
|
|
31
|
+
- @fluentui-react-native/design@0.3.0
|
|
32
|
+
- @fluentui-react-native/framework-base@0.6.0
|
|
33
|
+
- @fluentui-react-native/composition@0.14.1
|
|
34
|
+
- @fluentui-react-native/use-slots@0.13.1
|
|
35
|
+
- @fluentui-react-native/use-styling@0.16.1
|
|
36
|
+
- @fluentui-react-native/use-tokens@0.9.1
|
|
37
|
+
- @fluentui-react-native/default-theme@0.27.7
|
|
38
|
+
- @fluentui-react-native/tokens@0.24.7
|
|
39
|
+
|
|
40
|
+
## 0.17.0
|
|
41
|
+
|
|
42
|
+
### Minor Changes
|
|
43
|
+
|
|
44
|
+
- e2a4065: rework framework rendering to prepare for new component structure
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- 801d8b1: Switch to the released typescript 7
|
|
49
|
+
- 5b5afea: Remove depcheck script, allow jest to run tests with platform module suffixes
|
|
50
|
+
- d2690c9: Move theme type definitions into the `@fluentui-react-native/design` package under the new `@fluentui-react-native/design/theming` submodule export. The `@fluentui-react-native/theme-types` package is now a thin compatibility shim that re-exports from `@fluentui-react-native/design/theming`, and all in-repo consumers now reference the new submodule.
|
|
51
|
+
- Updated dependencies [e37b04b]
|
|
52
|
+
- Updated dependencies [01ed385]
|
|
53
|
+
- Updated dependencies [1eef74e]
|
|
54
|
+
- Updated dependencies [801d8b1]
|
|
55
|
+
- Updated dependencies [e2a4065]
|
|
56
|
+
- Updated dependencies [80bf14d]
|
|
57
|
+
- Updated dependencies [b28f021]
|
|
58
|
+
- Updated dependencies [1b45589]
|
|
59
|
+
- Updated dependencies [5b5afea]
|
|
60
|
+
- Updated dependencies [c1de024]
|
|
61
|
+
- Updated dependencies [d2690c9]
|
|
62
|
+
- Updated dependencies [03ba7ef]
|
|
63
|
+
- Updated dependencies [9d2bb3e]
|
|
64
|
+
- @fluentui-react-native/design@0.2.0
|
|
65
|
+
- @fluentui-react-native/framework-base@0.5.0
|
|
66
|
+
- @fluentui-react-native/composition@0.14.0
|
|
67
|
+
- @fluentui-react-native/use-styling@0.16.0
|
|
68
|
+
- @fluentui-react-native/default-theme@0.27.6
|
|
69
|
+
- @fluentui-react-native/use-tokens@0.9.0
|
|
70
|
+
- @fluentui-react-native/use-slots@0.13.0
|
|
71
|
+
- @fluentui-react-native/tokens@0.24.6
|
|
72
|
+
|
|
3
73
|
## 0.16.1
|
|
4
74
|
|
|
5
75
|
### Patch Changes
|
package/lib/compose.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComposeFactoryOptions, ComposeFactoryComponent, UseStyledSlots } from '@fluentui-react-native/composition';
|
|
2
|
-
import type { Theme } from '@fluentui-react-native/
|
|
2
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
3
3
|
import type { ObjectBase } from '@fluentui-react-native/framework-base';
|
|
4
4
|
/**
|
|
5
5
|
* This is an object used purely for configuring the typings on composable. It is not necessary to define
|
package/lib/compose.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,M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CACT,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,SAAS,UAAU,IAAI,uBAAuB,CACjH,MAAM,EACN,UAAU,EACV,OAAO,EACP,KAAK,EACL,QAAQ,CACT,CAAC;AAEF,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E,wBAAgB,OAAO,CAAC,CAAC,EACvB,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,EAClG,IAAI,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,GACpG,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAEhG"}
|
package/lib/compose.js
CHANGED
package/lib/compose.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA8C5C,MAAM,UAAU,OAAO,CACrB,OAAkG,EAClG,IAAqG;IAErG,OAAO,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;AACpD,CAAC"}
|
package/lib/compressible.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
2
|
-
import type { StagedRender } from '@fluentui-react-native/framework-base';
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
3
2
|
import type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
|
4
|
-
import type { UseTokens } from './useTokens
|
|
3
|
+
import type { UseTokens } from './useTokens';
|
|
4
|
+
import type { LegacyFunctionComponent } from '@fluentui-react-native/framework-base';
|
|
5
5
|
/**
|
|
6
6
|
* Utility function which can create function components that can be tree compressed (using the stagedRender pattern),
|
|
7
7
|
* and also have customize functionality.
|
|
@@ -9,5 +9,5 @@ import type { UseTokens } from './useTokens.ts';
|
|
|
9
9
|
* @param useTokens a hook function to build a set of tokens from a passed in theme as well as a cache object
|
|
10
10
|
* @returns A tree compressed function component with the `.customize` method exposed to it
|
|
11
11
|
*/
|
|
12
|
-
export declare function compressible<TProps, TTokens>(fn:
|
|
12
|
+
export declare function compressible<TProps, TTokens>(fn: (props: TProps, useTokens: UseTokens<TTokens>) => LegacyFunctionComponent<TProps>, useTokens: UseTokens<TTokens>): CustomizableComponent<TProps, TTokens, Theme>;
|
|
13
13
|
//# sourceMappingURL=compressible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.d.ts","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"compressible.d.ts","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAEnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAG/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAErF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,EAC1C,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,KAAK,uBAAuB,CAAC,MAAM,CAAC,EACrF,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,GAC5B,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAY/C"}
|
package/lib/compressible.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compressible.js","sourceRoot":"","sources":["../src/compressible.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAOxE;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,EAAqF,EACrF,SAA6B;IAI7B,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,EAAE,CAAC,KAAe,EAAE,SAAS,CAAC,CAAC;IACnF,MAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAA6B,CAAC;IAE/E,SAAS,CAAC,SAAS,GAAG,CAAC,GAAG,MAAgC,EAAE,EAAE;QAC5D,MAAM,YAAY,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,CAAC;QACpD,OAAO,YAAY,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/lib/compressible.test.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@fluentui-react-native/framework-base/jsx-runtime";
|
|
2
2
|
import { act } from 'react';
|
|
3
3
|
import { Text, View } from 'react-native';
|
|
4
|
-
import { mergeStyles } from '@fluentui-react-native/framework-base';
|
|
5
|
-
import { useSlot } from '@fluentui-react-native/use-slot';
|
|
4
|
+
import { mergeStyles, useSlot } from '@fluentui-react-native/framework-base';
|
|
6
5
|
import { applyTokenLayers } from '@fluentui-react-native/use-tokens';
|
|
7
6
|
import * as renderer from 'react-test-renderer';
|
|
8
|
-
import { compressible } from './compressible
|
|
9
|
-
import { buildUseTokens } from './useTokens
|
|
7
|
+
import { compressible } from './compressible';
|
|
8
|
+
import { buildUseTokens } from './useTokens';
|
|
10
9
|
const useVariantTokens = buildUseTokens({
|
|
11
10
|
color: 'black',
|
|
12
11
|
fontSize: 12,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"compressible.test.js","sourceRoot":"","sources":["../src/compressible.test.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAe7C,MAAM,gBAAgB,GAAG,cAAc,CAAoB;IACzD,KAAK,EA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;YACP,SAAS,GAAG,QAAQ,CAAC,MAAM,CACzB,MAAC,IAAI,eACH,KAAC,KAAK,IAAC,UAAU,EAAC,SAAS,GAAG,EAC9B,KAAC,KAAK,IAAC,UAAU,EAAC,SAAS,EAAC,WAAW,EAAC,UAAU,GAAG,IAChD,CACR,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACzD,IAAI,SAAqC,CAAC;QAC1C,GAAG,CAAC,GAAG,EAAE;YACP,SAAS,GAAG,QAAQ,CAAC,MAAM,CACzB,MAAC,IAAI,eACH,KAAC,KAAK,IAAC,UAAU,EAAC,cAAc,EAAC,UAAU,EAAE,WAAW,EAAE,WAAW,EAAC,gBAAgB,GAAG,EACzF,KAAC,KAAK,IAAC,UAAU,EAAC,eAAe,EAAC,WAAW,EAAC,wBAAwB,GAAG,IACpE,CACR,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,SAAU,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -4,22 +4,21 @@ export type { StyleProp } from '@fluentui-react-native/framework-base';
|
|
|
4
4
|
export { mergeProps, mergeStyles } from '@fluentui-react-native/framework-base';
|
|
5
5
|
export { backgroundColorTokens, borderStyles, borderTokens, colorTokens, fontStyles, foregroundColorTokens, getPaletteFromTheme, layoutStyles, layoutTokens, shadowStyles, shadowTokens, textTokens, tokenBuilder, } from '@fluentui-react-native/tokens';
|
|
6
6
|
export type { FontStyleTokens, FontTokens, FontVariantTokens, IBackgroundColorTokens, IBorderTokens, IColorTokens, IForegroundColorTokens, IShadowTokens, LayoutTokens, TokenBuilder, } from '@fluentui-react-native/tokens';
|
|
7
|
-
export { useSlot } from '@fluentui-react-native/
|
|
8
|
-
export {
|
|
9
|
-
export type { ComposableFunction, FinalRender, NativeReactType, SlotFn, StagedRender } from '@fluentui-react-native/framework-base';
|
|
7
|
+
export { renderSlot, stagedComponent, withSlots, useSlot } from '@fluentui-react-native/framework-base';
|
|
8
|
+
export type { RenderType as NativeReactType } from '@fluentui-react-native/framework-base';
|
|
10
9
|
export { buildUseSlots } from '@fluentui-react-native/use-slots';
|
|
11
10
|
export type { GetSlotProps, Slots, UseSlotOptions, UseSlotsBase } from '@fluentui-react-native/use-slots';
|
|
12
11
|
export { immutableMerge, immutableMergeCore, processImmutable } from '@fluentui-react-native/framework-base';
|
|
13
12
|
export type { BuiltinRecursionHandlers, CustomRecursionHandler, MergeOptions, ObjectBase, RecursionHandler, RecursionOption, } from '@fluentui-react-native/framework-base';
|
|
14
|
-
export { ThemeContext, useTheme } from '@fluentui-react-native/
|
|
15
|
-
export type { AliasColorTokens, AppearanceOptions, Color, FontFamilies, FontFamily, FontFamilyValue, FontSize, FontSizeValuePoints, FontSizes, FontWeight, FontWeightValue, FontWeights, OfficePalette, Palette, PaletteBackgroundColors, PaletteTextColors, PartialPalette, PartialTheme, PartialTypography, Spacing, TextStyling, Theme, ThemeColorDefinition, ThemeOptions, Typography, Variant, VariantValue, Variants, } from '@fluentui-react-native/
|
|
16
|
-
export { compose } from './compose
|
|
17
|
-
export type { ComposableComponent, ComposeOptions, ComposeType, ExtractProps, ExtractSlotProps, ExtractStatics, ExtractTokens, UseSlots, } from './compose
|
|
18
|
-
export { compressible } from './compressible
|
|
19
|
-
export { useFluentTheme } from './useFluentTheme
|
|
20
|
-
export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling
|
|
21
|
-
export { buildProps, buildUseStyling } from './useStyling
|
|
22
|
-
export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling
|
|
23
|
-
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens
|
|
24
|
-
export type { UseTokens, CustomizableComponent } from './useTokens
|
|
13
|
+
export { ThemeContext, useTheme } from '@fluentui-react-native/design/theming';
|
|
14
|
+
export type { AliasColorTokens, AppearanceOptions, Color, FontFamilies, FontFamily, FontFamilyValue, FontSize, FontSizeValuePoints, FontSizes, FontWeight, FontWeightValue, FontWeights, OfficePalette, Palette, PaletteBackgroundColors, PaletteTextColors, PartialPalette, PartialTheme, PartialTypography, Spacing, TextStyling, Theme, ThemeColorDefinition, ThemeOptions, Typography, Variant, VariantValue, Variants, } from '@fluentui-react-native/design/theming';
|
|
15
|
+
export { compose } from './compose';
|
|
16
|
+
export type { ComposableComponent, ComposeOptions, ComposeType, ExtractProps, ExtractSlotProps, ExtractStatics, ExtractTokens, UseSlots, } from './compose';
|
|
17
|
+
export { compressible } from './compressible';
|
|
18
|
+
export { useFluentTheme } from './useFluentTheme';
|
|
19
|
+
export type { HasLayer, TokensThatAreAlsoProps, UseStyling } from './useStyling';
|
|
20
|
+
export { buildProps, buildUseStyling } from './useStyling';
|
|
21
|
+
export type { BuildProps, TokenSettings, TokensFromTheme, UseStylingOptions } from './useStyling';
|
|
22
|
+
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
|
|
23
|
+
export type { UseTokens, CustomizableComponent } from './useTokens';
|
|
25
24
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAEjG,YAAY,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;A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AiB,EAAE,MAAM,cAAc,CAAC;AAClG,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC9G,YAAY,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
export { getMemoCache, getTypedMemoCache, memoize } from '@fluentui-react-native/framework-base';
|
|
2
2
|
export { mergeProps, mergeStyles } from '@fluentui-react-native/framework-base';
|
|
3
3
|
export { backgroundColorTokens, borderStyles, borderTokens, colorTokens, fontStyles, foregroundColorTokens, getPaletteFromTheme, layoutStyles, layoutTokens, shadowStyles, shadowTokens, textTokens, tokenBuilder, } from '@fluentui-react-native/tokens';
|
|
4
|
-
export { useSlot } from '@fluentui-react-native/
|
|
5
|
-
export { renderSlot, stagedComponent, withSlots } from '@fluentui-react-native/framework-base';
|
|
4
|
+
export { renderSlot, stagedComponent, withSlots, useSlot } from '@fluentui-react-native/framework-base';
|
|
6
5
|
export { buildUseSlots } from '@fluentui-react-native/use-slots';
|
|
7
6
|
export { immutableMerge, immutableMergeCore, processImmutable } from '@fluentui-react-native/framework-base';
|
|
8
|
-
export { ThemeContext, useTheme } from '@fluentui-react-native/
|
|
9
|
-
export { compose } from './compose
|
|
10
|
-
export { compressible } from './compressible
|
|
11
|
-
export { useFluentTheme } from './useFluentTheme
|
|
12
|
-
export { buildProps, buildUseStyling } from './useStyling
|
|
13
|
-
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens
|
|
7
|
+
export { ThemeContext, useTheme } from '@fluentui-react-native/design/theming';
|
|
8
|
+
export { compose } from './compose';
|
|
9
|
+
export { compressible } from './compressible';
|
|
10
|
+
export { useFluentTheme } from './useFluentTheme';
|
|
11
|
+
export { buildProps, buildUseStyling } from './useStyling';
|
|
12
|
+
export { applyPropsToTokens, applyTokenLayers, buildUseTokens, customizable, patchTokens } from './useTokens';
|
|
14
13
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGjG,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,GACb,MAAM,+BAA+B,CAAC;AAcvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGjG,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,GACb,MAAM,+BAA+B,CAAC;AAcvC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAGxG,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAU7G,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAgC/E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/lib/themeHelper.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
2
2
|
import type { ThemeHelper } from '@fluentui-react-native/use-styling';
|
|
3
3
|
export declare const themeHelper: ThemeHelper<Theme>;
|
|
4
4
|
//# sourceMappingURL=themeHelper.d.ts.map
|
package/lib/themeHelper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeHelper.d.ts","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"themeHelper.d.ts","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAItE,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,KAAK,CAM1C,CAAC"}
|
package/lib/themeHelper.js
CHANGED
package/lib/themeHelper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeHelper.js","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"themeHelper.js","sourceRoot":"","sources":["../src/themeHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,WAAW,GAAuB;IAC7C,QAAQ,EAAE,GAAG,EAAE,CAAC,cAAc,EAAE;IAChC,gBAAgB,EAAE,CAAC,KAAY,EAAE,IAAY,EAAE,EAAE;QAC/C,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC;QAC1C,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CACF,CAAC"}
|
package/lib/useFluentTheme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
2
2
|
/**
|
|
3
3
|
* Attempts to obtain a theme via the react context, failing that the default fluent theme will be returned. Used to ensure some theme
|
|
4
4
|
* object is provided for looking up color (and other) theme values
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFluentTheme.d.ts","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useFluentTheme.d.ts","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAGnE;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,KAAK,CAEtC"}
|
package/lib/useFluentTheme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defaultFluentTheme } from '@fluentui-react-native/default-theme';
|
|
2
|
-
import { useTheme } from '@fluentui-react-native/
|
|
2
|
+
import { useTheme } from '@fluentui-react-native/design/theming';
|
|
3
3
|
/**
|
|
4
4
|
* Attempts to obtain a theme via the react context, failing that the default fluent theme will be returned. Used to ensure some theme
|
|
5
5
|
* object is provided for looking up color (and other) theme values
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFluentTheme.js","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useFluentTheme.js","sourceRoot":"","sources":["../src/useFluentTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAEjE;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,QAAQ,EAAE,IAAI,kBAAkB,CAAC;AAC1C,CAAC"}
|
package/lib/useStyling.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* as to be dependent on the core theme type
|
|
4
4
|
*/
|
|
5
5
|
export type { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
|
|
6
|
-
import type { Theme } from '@fluentui-react-native/
|
|
6
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
7
7
|
import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
|
|
8
8
|
export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
|
|
9
9
|
export declare function buildProps<TProps, TTokens>(fn: (tokens: TTokens, theme: Theme) => TProps, keys?: (keyof TTokens)[]): BuildProps<TProps, TTokens>;
|
package/lib/useStyling.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStyling.d.ts","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,YAAY,EAAE,sBAAsB,EAAE,QAAQ,EAAE,UAAU,EAAE,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D,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,CAGhC"}
|
package/lib/useStyling.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { buildUseStyling as buildUseStylingBase, buildProps as buildPropsBase } from '@fluentui-react-native/use-styling';
|
|
2
|
-
import { themeHelper } from './themeHelper
|
|
2
|
+
import { themeHelper } from './themeHelper';
|
|
3
3
|
export function buildProps(fn, keys) {
|
|
4
4
|
return buildPropsBase(fn, keys);
|
|
5
5
|
}
|
package/lib/useStyling.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAE1H,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAE1H,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,UAAU,UAAU,CACxB,EAA6C,EAC7C,IAAwB;IAExB,OAAO,cAAc,CAAyB,EAAE,EAAE,IAAI,CAAC,CAAC;AAC1D,CAAC;AAMD;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAuD;IAEvD,8DAA8D;IAC9D,OAAO,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AACnD,CAAC"}
|
package/lib/useTokens.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Theme } from '@fluentui-react-native/
|
|
1
|
+
import type { Theme } from '@fluentui-react-native/design/theming';
|
|
2
2
|
import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
3
|
-
import type { TokenSettings } from './useStyling
|
|
3
|
+
import type { TokenSettings } from './useStyling';
|
|
4
4
|
export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
|
|
5
5
|
export type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
|
|
6
6
|
export type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
|
package/lib/useTokens.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTokens.d.ts","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useTokens.d.ts","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAIpF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGpH,MAAM,MAAM,SAAS,CAAC,OAAO,IAAI,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;AAC/D,YAAY,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,wBAAgB,cAAc,CAAC,OAAO,EAAE,GAAG,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,CAE/F"}
|
package/lib/useTokens.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { buildUseTokens as buildUseTokensCore } from '@fluentui-react-native/use-tokens';
|
|
2
|
-
import { themeHelper } from './themeHelper
|
|
2
|
+
import { themeHelper } from './themeHelper';
|
|
3
3
|
export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
|
|
4
4
|
export function buildUseTokens(...tokens) {
|
|
5
5
|
return buildUseTokensCore(themeHelper.getComponentInfo, ...tokens);
|