tccd-ui 0.0.85 → 0.0.87

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.mts CHANGED
@@ -209,4 +209,8 @@ declare function TimePicker({ label, id, value, onChange, error, disabled, use24
209
209
 
210
210
  declare function UnauthorizedPage(): react_jsx_runtime.JSX.Element;
211
211
 
212
- export { Button, ButtonTypes, ButtonWidths, Checkbox, DatePicker, DropdownMenu, type DropdownMenuItem, type DropdownMenuProps$1 as DropdownMenuProps, type DropdownOption, DropdownPopup, ErrorScreen, FullScreenViewer, InfoScreen, type InfoScreenProps, InputField, LazyImageLoader, LoadingPage, type MediaItem, Modal, NumberField, PasswordField, Radiobutton as RadioButton, SearchField, SuccessScreen, TextAreaField, TextDisplayEdit, TimePicker as Timepicker, UnauthorizedPage };
212
+ declare const setDarkModeConfig: (config: {
213
+ enableDarkMode: boolean;
214
+ }) => void;
215
+
216
+ export { Button, ButtonTypes, ButtonWidths, Checkbox, DatePicker, DropdownMenu, type DropdownMenuItem, type DropdownMenuProps$1 as DropdownMenuProps, type DropdownOption, DropdownPopup, ErrorScreen, FullScreenViewer, InfoScreen, type InfoScreenProps, InputField, LazyImageLoader, LoadingPage, type MediaItem, Modal, NumberField, PasswordField, Radiobutton as RadioButton, SearchField, SuccessScreen, TextAreaField, TextDisplayEdit, TimePicker as Timepicker, UnauthorizedPage, setDarkModeConfig };
package/dist/index.d.ts CHANGED
@@ -209,4 +209,8 @@ declare function TimePicker({ label, id, value, onChange, error, disabled, use24
209
209
 
210
210
  declare function UnauthorizedPage(): react_jsx_runtime.JSX.Element;
211
211
 
212
- export { Button, ButtonTypes, ButtonWidths, Checkbox, DatePicker, DropdownMenu, type DropdownMenuItem, type DropdownMenuProps$1 as DropdownMenuProps, type DropdownOption, DropdownPopup, ErrorScreen, FullScreenViewer, InfoScreen, type InfoScreenProps, InputField, LazyImageLoader, LoadingPage, type MediaItem, Modal, NumberField, PasswordField, Radiobutton as RadioButton, SearchField, SuccessScreen, TextAreaField, TextDisplayEdit, TimePicker as Timepicker, UnauthorizedPage };
212
+ declare const setDarkModeConfig: (config: {
213
+ enableDarkMode: boolean;
214
+ }) => void;
215
+
216
+ export { Button, ButtonTypes, ButtonWidths, Checkbox, DatePicker, DropdownMenu, type DropdownMenuItem, type DropdownMenuProps$1 as DropdownMenuProps, type DropdownOption, DropdownPopup, ErrorScreen, FullScreenViewer, InfoScreen, type InfoScreenProps, InputField, LazyImageLoader, LoadingPage, type MediaItem, Modal, NumberField, PasswordField, Radiobutton as RadioButton, SearchField, SuccessScreen, TextAreaField, TextDisplayEdit, TimePicker as Timepicker, UnauthorizedPage, setDarkModeConfig };
package/dist/index.js CHANGED
@@ -41,7 +41,8 @@ __export(index_exports, {
41
41
  TextAreaField: () => TextAreaField,
42
42
  TextDisplayEdit: () => TextDisplayEdit,
43
43
  Timepicker: () => TimePicker,
44
- UnauthorizedPage: () => UnauthorizedPage
44
+ UnauthorizedPage: () => UnauthorizedPage,
45
+ setDarkModeConfig: () => setDarkModeConfig
45
46
  });
46
47
  module.exports = __toCommonJS(index_exports);
47
48
 
@@ -1125,6 +1126,9 @@ function FullScreenViewer({ isOpen, items, index, setIndex, onClose }) {
1125
1126
 
1126
1127
  // src/config.ts
1127
1128
  var darkModeEnabled = false;
1129
+ var setDarkModeConfig = (config2) => {
1130
+ darkModeEnabled = config2.enableDarkMode;
1131
+ };
1128
1132
  var config = {
1129
1133
  get ENABLE_DARK_MODE() {
1130
1134
  return darkModeEnabled;
@@ -2240,6 +2244,7 @@ function UnauthorizedPage() {
2240
2244
  TextAreaField,
2241
2245
  TextDisplayEdit,
2242
2246
  Timepicker,
2243
- UnauthorizedPage
2247
+ UnauthorizedPage,
2248
+ setDarkModeConfig
2244
2249
  });
2245
2250
  //# sourceMappingURL=index.js.map