@talxis/base-controls 1.2501.6 → 1.2501.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -77,9 +77,28 @@ interface IFluentDesignState extends ComponentFramework.FluentDesignState {
77
77
  */
78
78
  applicationTheme?: ITheme;
79
79
  }
80
+ declare class ControlTheme {
81
+ static GetV8ThemeFromFluentDesignLanguage(fluentDesignLanguage?: IFluentDesignState): ITheme;
82
+ static GenerateFluentDesignLanguage(primaryColor: string, backgroundColor: string, textColor: string, options?: {
83
+ v8FluentOverrides?: DeepPartial<ITheme>;
84
+ applicationTheme?: ITheme;
85
+ }): IFluentDesignState;
86
+ }
80
87
 
81
88
  declare const useControlTheme: (fluentDesignLanguage?: IFluentDesignState) => ITheme$1;
82
89
 
90
+ declare const useControlThemeGenerator: (primaryColor: string, backgroundColor: string, textColor: string, options?: {
91
+ /**
92
+ * Optional overrides that will get applied when v8 theme is generated from fluentDesignLanguage
93
+ */
94
+ v8FluentOverrides?: DeepPartial<ITheme$1>;
95
+ /**
96
+ * The application's theme may differ from the control's theme. This is often the case when rendering a PCF as a cell customizer with conditional formatting.
97
+ * This object allows you to set application theme so PCF's can use it to render surfaces accurately.
98
+ */
99
+ applicationTheme?: ITheme$1;
100
+ }) => IFluentDesignState;
101
+
83
102
  interface IOutputs$1 {
84
103
  [key: string]: any;
85
104
  }
@@ -894,4 +913,4 @@ interface IDatasetControl extends IControl<IGridParameters, IGridOutputs, Partia
894
913
 
895
914
  declare const DatasetControl: (props: IDatasetControl) => JSX.Element;
896
915
 
897
- export { DatasetControl, DateTime, Decimal, Duration, Grid, IContext, IControl, IControlController, IDatasetControl, IDateTime, IDateTimeOutputs, IDateTimeParameters, IDateTimeProperty, IDecimal, IDecimalNumberProperty, IDecimalOutputs, IDecimalParameters, IDefaultTranslations, IDuration, IDurationOutputs, IDurationParameters, IEntity, IGrid, IGridOutputs, IGridParameters, ILayout, ILookup, ILookupOutputs, ILookupParameters, ILookupProperty, IMetadata, IMultiSelectOptionSet, IMultiSelectOptionSetOutputs, IMultiSelectOptionSetParameters, IMultiSelectOptionSetProperty, IOptionSet, IOptionSetOutputs, IOptionSetParameters, IOptionSetProperty, IOutputs, IParameters$1 as IParameters, IProperty, IStringProperty, ITextField, ITextFieldOutputs, ITextFieldParameters, ITranslation, ITranslations, ITwoOptions, ITwoOptionsOutputs, ITwoOptionsParameters, ITwoOptionsProperty, IWholeNumberProperty, Lookup, MultiSelectOptionSet, OptionSet, TextField, TwoOptions, useControl, useControlSizing, useControlTheme, useDateTime, useFocusIn, useInputBasedControl, useLookup, useMouseOver };
916
+ export { ControlTheme, DatasetControl, DateTime, Decimal, Duration, Grid, IContext, IControl, IControlController, IDatasetControl, IDateTime, IDateTimeOutputs, IDateTimeParameters, IDateTimeProperty, IDecimal, IDecimalNumberProperty, IDecimalOutputs, IDecimalParameters, IDefaultTranslations, IDuration, IDurationOutputs, IDurationParameters, IEntity, IFluentDesignState, IGrid, IGridOutputs, IGridParameters, ILayout, ILookup, ILookupOutputs, ILookupParameters, ILookupProperty, IMetadata, IMultiSelectOptionSet, IMultiSelectOptionSetOutputs, IMultiSelectOptionSetParameters, IMultiSelectOptionSetProperty, IOptionSet, IOptionSetOutputs, IOptionSetParameters, IOptionSetProperty, IOutputs, IParameters$1 as IParameters, IProperty, IStringProperty, ITextField, ITextFieldOutputs, ITextFieldParameters, ITranslation, ITranslations, ITwoOptions, ITwoOptionsOutputs, ITwoOptionsParameters, ITwoOptionsProperty, IWholeNumberProperty, Lookup, MultiSelectOptionSet, OptionSet, TextField, TwoOptions, useControl, useControlSizing, useControlTheme, useControlThemeGenerator, useDateTime, useFocusIn, useInputBasedControl, useLookup, useMouseOver };
package/dist/index.js CHANGED
@@ -4,6 +4,8 @@ export { useFocusIn } from './hooks/useFocusIn.js';
4
4
  export { useInputBasedControl } from './hooks/useInputBasedControl.js';
5
5
  export { useMouseOver } from './hooks/useMouseOver.js';
6
6
  export { useControlTheme } from './utils/theme/hooks/useControlTheme.js';
7
+ export { ControlTheme } from './utils/theme/ControlTheme.js';
8
+ export { useControlThemeGenerator } from './utils/theme/hooks/useControlThemeGenerator.js';
7
9
  export { DateTime } from './components/DateTime/DateTime.js';
8
10
  export { useDateTime } from './components/DateTime/hooks/useDateTime.js';
9
11
  export { Decimal } from './components/Decimal/Decimal.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talxis/base-controls",
3
- "version": "1.2501.6",
3
+ "version": "1.2501.7",
4
4
  "description": "Set of React components that natively work with Power Apps Component Framework API's",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",