@fluentui-react-native/framework 0.15.3 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/.cache/tsconfig.tsbuildinfo +1 -0
  2. package/CHANGELOG.md +29 -0
  3. package/jest.config.cjs +1 -0
  4. package/lib/compose.js +1 -1
  5. package/lib/compose.js.map +1 -1
  6. package/lib/compressible.d.ts +1 -1
  7. package/lib/compressible.d.ts.map +1 -1
  8. package/lib/compressible.js.map +1 -1
  9. package/lib/compressible.test.js +5 -11
  10. package/lib/compressible.test.js.map +1 -1
  11. package/lib/index.d.ts +9 -9
  12. package/lib/index.d.ts.map +1 -1
  13. package/lib/index.js +5 -5
  14. package/lib/index.js.map +1 -1
  15. package/lib/themeHelper.js +1 -1
  16. package/lib/themeHelper.js.map +1 -1
  17. package/lib/useFluentTheme.js.map +1 -1
  18. package/lib/useStyling.js +1 -1
  19. package/lib/useStyling.js.map +1 -1
  20. package/lib/useTokens.d.ts +1 -1
  21. package/lib/useTokens.d.ts.map +1 -1
  22. package/lib/useTokens.js +1 -1
  23. package/lib/useTokens.js.map +1 -1
  24. package/package.json +22 -27
  25. package/src/compose.ts +1 -1
  26. package/src/compressible.test.tsx +3 -3
  27. package/src/compressible.ts +2 -2
  28. package/src/index.ts +9 -9
  29. package/src/themeHelper.ts +1 -1
  30. package/src/useStyling.ts +1 -1
  31. package/src/useTokens.ts +2 -2
  32. package/babel.config.js +0 -4
  33. package/lib-commonjs/compose.d.ts +0 -37
  34. package/lib-commonjs/compose.d.ts.map +0 -1
  35. package/lib-commonjs/compose.js +0 -9
  36. package/lib-commonjs/compose.js.map +0 -1
  37. package/lib-commonjs/compressible.d.ts +0 -13
  38. package/lib-commonjs/compressible.d.ts.map +0 -1
  39. package/lib-commonjs/compressible.js +0 -21
  40. package/lib-commonjs/compressible.js.map +0 -1
  41. package/lib-commonjs/compressible.test.d.ts +0 -2
  42. package/lib-commonjs/compressible.test.d.ts.map +0 -1
  43. package/lib-commonjs/compressible.test.js +0 -117
  44. package/lib-commonjs/compressible.test.js.map +0 -1
  45. package/lib-commonjs/index.d.ts +0 -25
  46. package/lib-commonjs/index.d.ts.map +0 -1
  47. package/lib-commonjs/index.js +0 -55
  48. package/lib-commonjs/index.js.map +0 -1
  49. package/lib-commonjs/themeHelper.d.ts +0 -4
  50. package/lib-commonjs/themeHelper.d.ts.map +0 -1
  51. package/lib-commonjs/themeHelper.js +0 -12
  52. package/lib-commonjs/themeHelper.js.map +0 -1
  53. package/lib-commonjs/useFluentTheme.d.ts +0 -8
  54. package/lib-commonjs/useFluentTheme.d.ts.map +0 -1
  55. package/lib-commonjs/useFluentTheme.js +0 -14
  56. package/lib-commonjs/useFluentTheme.js.map +0 -1
  57. package/lib-commonjs/useStyling.d.ts +0 -19
  58. package/lib-commonjs/useStyling.d.ts.map +0 -1
  59. package/lib-commonjs/useStyling.js +0 -19
  60. package/lib-commonjs/useStyling.js.map +0 -1
  61. package/lib-commonjs/useTokens.d.ts +0 -8
  62. package/lib-commonjs/useTokens.d.ts.map +0 -1
  63. package/lib-commonjs/useTokens.js +0 -15
  64. package/lib-commonjs/useTokens.js.map +0 -1
@@ -1,19 +0,0 @@
1
- /**
2
- * Many of the types from use-styling take a theme as a type parameter. This re-exports them in such a way
3
- * as to be dependent on the core theme type
4
- */
5
- export type { TokensThatAreAlsoProps, HasLayer, UseStyling } from '@fluentui-react-native/use-styling';
6
- import type { Theme } from '@fluentui-react-native/theme-types';
7
- import type { TokensFromTheme as TokensFromThemeBase, TokenSettings as TokenSettingsBase, UseStylingOptions as UseStylingOptionsBase, UseStyling, BuildPropsBase } from '@fluentui-react-native/use-styling';
8
- export type BuildProps<TProps, TTokens> = BuildPropsBase<TProps, TTokens, Theme>;
9
- export declare function buildProps<TProps, TTokens>(fn: (tokens: TTokens, theme: Theme) => TProps, keys?: (keyof TTokens)[]): BuildProps<TProps, TTokens>;
10
- export type TokensFromTheme<TTokens> = TokensFromThemeBase<TTokens, Theme>;
11
- export type TokenSettings<TTokens> = TokenSettingsBase<TTokens, Theme>;
12
- export type UseStylingOptions<TProps, TSlotProps, TTokens> = UseStylingOptionsBase<TProps, TSlotProps, TTokens, Theme>;
13
- /**
14
- * Construct a useStyling hook which returns styled slot props based on props and tokens defined in options and in the theme
15
- *
16
- * @param options - options which drive behavior for the generated styling hook
17
- */
18
- export declare function buildUseStyling<TProps, TSlotProps, TTokens>(options: UseStylingOptions<TProps, TSlotProps, TTokens>): UseStyling<TProps, TSlotProps>;
19
- //# sourceMappingURL=useStyling.d.ts.map
@@ -1 +0,0 @@
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,MAAM,oCAAoC,CAAC;AACvG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,KAAK,EACV,eAAe,IAAI,mBAAmB,EACtC,aAAa,IAAI,iBAAiB,EAClC,iBAAiB,IAAI,qBAAqB,EAC1C,UAAU,EACV,cAAc,EACf,MAAM,oCAAoC,CAAC;AAK5C,MAAM,MAAM,UAAU,CAAC,MAAM,EAAE,OAAO,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAEjF,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,EACxC,EAAE,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,KAAK,MAAM,EAC7C,IAAI,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,EAAE,GACvB,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAE7B;AAED,MAAM,MAAM,eAAe,CAAC,OAAO,IAAI,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;AAC3E,MAAM,MAAM,aAAa,CAAC,OAAO,IAAI,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;AACvE,MAAM,MAAM,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,IAAI,qBAAqB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAEvH;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EACzD,OAAO,EAAE,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,GACtD,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,CAGhC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildProps = buildProps;
4
- exports.buildUseStyling = buildUseStyling;
5
- const use_styling_1 = require("@fluentui-react-native/use-styling");
6
- const themeHelper_1 = require("./themeHelper");
7
- function buildProps(fn, keys) {
8
- return (0, use_styling_1.buildProps)(fn, keys);
9
- }
10
- /**
11
- * Construct a useStyling hook which returns styled slot props based on props and tokens defined in options and in the theme
12
- *
13
- * @param options - options which drive behavior for the generated styling hook
14
- */
15
- function buildUseStyling(options) {
16
- // create a cache instance for this use styling implementation
17
- return (0, use_styling_1.buildUseStyling)(options, themeHelper_1.themeHelper);
18
- }
19
- //# sourceMappingURL=useStyling.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useStyling.js","sourceRoot":"","sources":["../src/useStyling.ts"],"names":[],"mappings":";;;;AAaA,oEAA0H;AAE1H,+CAA4C;AAI5C,oBACE,EAA6C,EAC7C,IAAwB,EACK;IAC7B,OAAO,IAAA,wBAAc,EAAyB,EAAE,EAAE,IAAI,CAAC,CAAC;AAAA,CACzD;AAMD;;;;GAIG;AACH,yBACE,OAAuD,EACvB;IAChC,8DAA8D;IAC9D,OAAO,IAAA,6BAAmB,EAAC,OAAO,EAAE,yBAAW,CAAC,CAAC;AAAA,CAClD"}
@@ -1,8 +0,0 @@
1
- import type { Theme } from '@fluentui-react-native/theme-types';
2
- import type { UseTokens as UseTokensCore } from '@fluentui-react-native/use-tokens';
3
- import type { TokenSettings } from './useStyling';
4
- export { applyTokenLayers, applyPropsToTokens, customizable, patchTokens } from '@fluentui-react-native/use-tokens';
5
- export type UseTokens<TTokens> = UseTokensCore<TTokens, Theme>;
6
- export type { CustomizableComponent } from '@fluentui-react-native/use-tokens';
7
- export declare function buildUseTokens<TTokens>(...tokens: TokenSettings<TTokens>[]): UseTokens<TTokens>;
8
- //# sourceMappingURL=useTokens.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTokens.d.ts","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oCAAoC,CAAC;AAChE,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"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.patchTokens = exports.customizable = exports.applyPropsToTokens = exports.applyTokenLayers = void 0;
4
- exports.buildUseTokens = buildUseTokens;
5
- const use_tokens_1 = require("@fluentui-react-native/use-tokens");
6
- const themeHelper_1 = require("./themeHelper");
7
- const use_tokens_2 = require("@fluentui-react-native/use-tokens");
8
- Object.defineProperty(exports, "applyTokenLayers", { enumerable: true, get: function () { return use_tokens_2.applyTokenLayers; } });
9
- Object.defineProperty(exports, "applyPropsToTokens", { enumerable: true, get: function () { return use_tokens_2.applyPropsToTokens; } });
10
- Object.defineProperty(exports, "customizable", { enumerable: true, get: function () { return use_tokens_2.customizable; } });
11
- Object.defineProperty(exports, "patchTokens", { enumerable: true, get: function () { return use_tokens_2.patchTokens; } });
12
- function buildUseTokens(...tokens) {
13
- return (0, use_tokens_1.buildUseTokens)(themeHelper_1.themeHelper.getComponentInfo, ...tokens);
14
- }
15
- //# sourceMappingURL=useTokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTokens.js","sourceRoot":"","sources":["../src/useTokens.ts"],"names":[],"mappings":";;;;AAEA,kEAAyF;AAEzF,+CAA4C;AAG5C,kEAAoH;AAA3G,8GAAA,gBAAgB,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAAE,0GAAA,YAAY,OAAA;AAAE,yGAAA,WAAW,OAAA;AAMxE,wBAAwC,GAAG,MAAgC,EAAsB;IAC/F,OAAO,IAAA,2BAAkB,EAAC,yBAAW,CAAC,gBAAgB,EAAE,GAAG,MAAM,CAAC,CAAC;AAAA,CACpE"}