@lichens-innovation/react-native-common 3.9.0 → 3.10.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 (49) hide show
  1. package/README.md +21 -25
  2. package/dist/components/dialogs/dialog-single-textinput.js +1 -1
  3. package/dist/components/dialogs/dialog-single-textinput.js.map +1 -1
  4. package/dist/components/drop-down-selector/drop-down-selector-item.js +2 -2
  5. package/dist/components/drop-down-selector/drop-down-selector-item.js.map +1 -1
  6. package/dist/components/drop-down-selector/drop-down-selector-left-icon.js +1 -1
  7. package/dist/components/drop-down-selector/drop-down-selector-left-icon.js.map +1 -1
  8. package/dist/components/drop-down-selector/drop-down-selector.js +2 -2
  9. package/dist/components/drop-down-selector/drop-down-selector.js.map +1 -1
  10. package/dist/components/event-logs/event-logs-screen.js +2 -2
  11. package/dist/components/event-logs/event-logs-screen.js.map +1 -1
  12. package/dist/components/event-logs/live-logs-viewer/use-logs-actions.js.map +1 -1
  13. package/dist/components/index.d.ts +1 -0
  14. package/dist/components/index.js +1 -0
  15. package/dist/components/index.js.map +1 -1
  16. package/dist/components/layout/orientation-aware-tabs/orientation-aware-tabs-layout.js +1 -1
  17. package/dist/components/password-input/index.d.ts +1 -0
  18. package/dist/components/password-input/index.js +2 -0
  19. package/dist/components/password-input/index.js.map +1 -0
  20. package/dist/components/password-input/password-input.d.ts +4 -0
  21. package/dist/components/password-input/password-input.js +27 -0
  22. package/dist/components/password-input/password-input.js.map +1 -0
  23. package/dist/components/syntax/styles/dark.d.ts +25 -25
  24. package/dist/components/syntax/styles/dark.js +64 -64
  25. package/dist/components/syntax/styles/dark.js.map +1 -1
  26. package/dist/components/syntax/styles/light.d.ts +31 -31
  27. package/dist/components/syntax/styles/light.js +76 -76
  28. package/dist/components/syntax/styles/light.js.map +1 -1
  29. package/dist/components/syntax/syntax-coloring-tag-pre.js.map +1 -1
  30. package/dist/hooks/use-image-picker.js.map +1 -1
  31. package/dist/hooks/use-invalidate-queries-on-focus.d.ts +1 -1
  32. package/dist/hooks/use-invalidate-queries-on-focus.js +3 -3
  33. package/dist/i18n/en/common.json +4 -0
  34. package/dist/i18n/fr/common.json +4 -0
  35. package/dist/logger/logger.js +1 -0
  36. package/dist/logger/logger.js.map +1 -1
  37. package/dist/logger/logger.types.js.map +1 -1
  38. package/dist/services/device-finder/device-finder.js +4 -3
  39. package/dist/services/device-finder/device-finder.js.map +1 -1
  40. package/dist/store/common-logs.store.d.ts +1 -1
  41. package/dist/store/common-logs.store.js.map +1 -1
  42. package/dist/utils/alert.utils.js +6 -6
  43. package/dist/utils/alert.utils.js.map +1 -1
  44. package/dist/utils/digest-auth.d.ts +1 -1
  45. package/dist/utils/digest-auth.js +7 -1
  46. package/dist/utils/digest-auth.js.map +1 -1
  47. package/dist/utils/platform.utils.d.ts +1 -1
  48. package/dist/utils/platform.utils.js.map +1 -1
  49. package/package.json +10 -9
package/README.md CHANGED
@@ -13,7 +13,6 @@ This repository contains common components, utilities, and services used across
13
13
 
14
14
  [![GitHub Package](https://img.shields.io/badge/GitHub%20Package-@Lichens--Innovation%2Freact--native--common-blue.svg?style=flat-square&logo=github)](https://github.com/Lichens-Innovation/react-native-common) [![Version](https://img.shields.io/badge/version-2.7.1-blue.svg?style=flat-square)](https://github.com/Lichens-Innovation/react-native-common)
15
15
 
16
-
17
16
  Table of content
18
17
 
19
18
  - [React Native Common Module](#react-native-common-module)
@@ -35,7 +34,6 @@ Table of content
35
34
  - [Project coding guidelines](#project-coding-guidelines)
36
35
  - [License](#license)
37
36
 
38
-
39
37
  ## Reusable Components
40
38
 
41
39
  - Safe area containers, centered layouts, tab bar components
@@ -45,8 +43,8 @@ Table of content
45
43
 
46
44
  ### Examples
47
45
 
48
- | Vertical Split View | Dialog Ok/Cancel |
49
- |:-------------------:|:----------------:|
46
+ | Vertical Split View | Dialog Ok/Cancel |
47
+ | :---------------------------------------------------------------: | :------------------------------------------------------------: |
50
48
  | <img src="docs/demos/demo-vertical-split-view.gif" width="200" /> | <img src="docs/demos/demo-dialog-ok-cancel.gif" width="200" /> |
51
49
 
52
50
  - [Components Catalog](docs/catalog.md)
@@ -71,7 +69,7 @@ Table of content
71
69
  Depending on your Expo SDK version, here are the compatibility table for `react-native-common` module:
72
70
 
73
71
  | Version Family | Expo SDK Version | Description |
74
- |----------------|------------------|-------------------------------------------------------|
72
+ | -------------- | ---------------- | ----------------------------------------------------- |
75
73
  | 1.x.y | SDK 52, SDK 53 | Compatible with applications using Expo SDK 52 and 53 |
76
74
  | 2.x.y, 3.x.y | SDK 54 | Compatible with applications using Expo SDK 54 |
77
75
  | 4.x.y | SDK 55 | Compatible with applications using Expo SDK 55 |
@@ -108,11 +106,8 @@ export const MyComponent = () => {
108
106
 
109
107
  return (
110
108
  <>
111
- <Button
112
- title="Show Dialog"
113
- onPress={() => setShowDialog(true)}
114
- />
115
-
109
+ <Button title="Show Dialog" onPress={() => setShowDialog(true)} />
110
+
116
111
  <DialogOkCancel
117
112
  isVisible={showDialog}
118
113
  title="Confirm Action"
@@ -145,17 +140,19 @@ yarn install
145
140
 
146
141
  ### Scripts
147
142
 
148
- | Command | Description |
149
- |------------------------------|-----------------------------------------------------------------------------|
150
- | `yarn build` | Cleans the dist folder and compiles TypeScript |
151
- | `yarn clean:node` | Removes node_modules directories and yarn.lock file |
152
- | `yarn clean:dist` | Removes the dist directory |
153
- | `yarn typecheck` | Checks TypeScript types without emitting files |
154
- | `yarn watch:for:rvdrain` | Watches for TS changes and syncs dist files to rvdrain app node_modules |
155
- | `yarn watch:for:manufacture` | Watches for TS changes and syncs dist files to manufacture app node_modules |
156
- | `yarn test` | Runs tests using Vitest |
157
- | `yarn mirror:to:rinnovision` | Mirrors the package to the Rinnovision repository |
158
-
143
+ | Command | Description |
144
+ | ------------------------------- | ------------------------------------------------------------------ |
145
+ | `yarn build` | Cleans the dist folder and compiles TypeScript |
146
+ | `yarn clean:node` | Removes node_modules and yarn.lock |
147
+ | `yarn clean:dist` | Removes the dist directory |
148
+ | `yarn typecheck` | Checks TypeScript types without emitting files (`tsc --noEmit`) |
149
+ | `yarn watch:for:rvdrain` | Watches TS and syncs dist to rinno-rvdrain-app-mobile node_modules |
150
+ | `yarn watch:for:manufacture` | Watches TS and syncs dist to rinno-manufacture-app node_modules |
151
+ | `yarn watch:for:rn-common-demo` | Watches TS and syncs dist to react-native-common-demo node_modules |
152
+ | `yarn test` | Runs tests with Vitest |
153
+ | `yarn lint` | Runs ESLint and Prettier check on JS/TS/TSX/JSON |
154
+ | `yarn lint:fix` | Runs ESLint with auto-fix |
155
+ | `yarn format:fix` | Formats code with Prettier (write) |
159
156
 
160
157
  ## Peer Dependencies
161
158
 
@@ -188,15 +185,14 @@ This dual approach solves the compilation problem while maintaining clean depend
188
185
 
189
186
  Interfaces and types are generated by the `react-native-winrt` package at build time of the desktop application. To ensure compatibility and avoid conflicts, the generated types should be placed in the `src/types/winrt` folder of current project. Here's how to do it. Copy all generated types from:
190
187
 
191
- - `my-app-desktop\node_modules\react-native-winrt\windows\WinRTTurboModule\Generated Files\types\`
192
- - to `src\types\winrt\`
188
+ - `my-app-desktop\node_modules\react-native-winrt\windows\WinRTTurboModule\Generated Files\types\`
189
+ - to `src\types\winrt\`
193
190
 
194
191
  ## Project coding guidelines
195
192
 
196
193
  Adhering to established coding guidelines is essential for developing efficient, maintainable, and scalable software. These guidelines promote consistency across codebases, making it easier for teams to collaborate and for new developers to understand existing code. By following standardized patterns, such as those outlined in the [Coding guidelines](https://github.com/amwebexpert/chrome-extensions-collection/blob/master/packages/coding-guide-helper/public/markdowns/table-of-content.md), developers can reduce errors and enhance code readability.
197
194
 
198
- * [Coding guidelines](https://github.com/amwebexpert/chrome-extensions-collection/blob/master/packages/coding-guide-helper/public/markdowns/table-of-content.md)
199
-
195
+ - [Coding guidelines](https://github.com/amwebexpert/chrome-extensions-collection/blob/master/packages/coding-guide-helper/public/markdowns/table-of-content.md)
200
196
 
201
197
  ## License
202
198
 
@@ -37,7 +37,7 @@ export const DialogSingleTextInput = (_a) => {
37
37
  if (!isVisible) {
38
38
  return null;
39
39
  }
40
- return (_jsx(Portal, { children: _jsxs(Dialog, Object.assign({}, dialogProps, { style: [styles.dialog, dialogStyleProp], visible: true, onDismiss: onCancel, children: [hasTitle && _jsx(Dialog.Title, { children: hasTitleString ? _jsx(Text, { children: title }) : title }), hasDescription && (_jsx(Dialog.Content, { children: hasDescriptionString ? _jsx(Text, { children: description }) : description })), _jsxs(Dialog.Content, { children: [_jsx(TextInput, { mode: "outlined", value: inputValue, onChangeText: onChangeText, selection: selection, onSelectionChange: (e) => setSelection(e.nativeEvent.selection), placeholder: placeholder, error: hasError }), hasError && _jsx(Text, { variant: "bodyMedium", style: styles.errorText, children: errorMessage })] }), _jsxs(Dialog.Actions, { children: [_jsx(Button, { onPress: onCancel, children: t('common:cancel') }), _jsx(Button, { style: styles.button, mode: "contained", onPress: () => onOk(inputValue), disabled: !isOkEnabled, children: t('common:ok') })] })] })) }));
40
+ return (_jsx(Portal, { children: _jsxs(Dialog, Object.assign({}, dialogProps, { style: [styles.dialog, dialogStyleProp], visible: true, onDismiss: onCancel, children: [hasTitle && _jsx(Dialog.Title, { children: hasTitleString ? _jsx(Text, { children: title }) : title }), hasDescription && (_jsx(Dialog.Content, { children: hasDescriptionString ? _jsx(Text, { children: description }) : description })), _jsxs(Dialog.Content, { children: [_jsx(TextInput, { mode: "outlined", value: inputValue, onChangeText: onChangeText, selection: selection, onSelectionChange: (e) => setSelection(e.nativeEvent.selection), placeholder: placeholder, error: hasError }), hasError && (_jsx(Text, { variant: "bodyMedium", style: styles.errorText, children: errorMessage }))] }), _jsxs(Dialog.Actions, { children: [_jsx(Button, { onPress: onCancel, children: t('common:cancel') }), _jsx(Button, { style: styles.button, mode: "contained", onPress: () => onOk(inputValue), disabled: !isOkEnabled, children: t('common:ok') })] })] })) }));
41
41
  };
42
42
  const useStyles = () => {
43
43
  const theme = useAppTheme();
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-single-textinput.js","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EjB,MAAC,MAAM,CAAC,OAAO,eACb,KAAC,MAAM,IAAC,OAAO,EAAE,QAAQ,YAAG,CAAC,CAAC,eAAe,CAAC,GAAU,EACxD,KAAC,MAAM,IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,EAAC,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAC,WAAW,YACnG,CAAC,CAAC,WAAW,CAAC,GACR,IACM,KACV,GACF,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,eAAe,EAAE,CAAC;IAE/C,OAAO,UAAU,CAAC,MAAM,CAAC;QACvB,MAAM,EAAE;YACN,KAAK,EAAE,EAAE;SACV;QACD,MAAM,EAAE;YACN,KAAK;YACL,SAAS;SACV;QACD,SAAS,EAAE;YACT,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;SAC1B;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"dialog-single-textinput.js","sourceRoot":"","sources":["../../../src/components/dialogs/dialog-single-textinput.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAA+D,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,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KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,eAAe,EAAE,CAAC;IAE/C,OAAO,UAAU,CAAC,MAAM,CAAC;QACvB,MAAM,EAAE;YACN,KAAK,EAAE,EAAE;SACV;QACD,MAAM,EAAE;YACN,KAAK;YACL,SAAS;SACV;QACD,SAAS,EAAE;YACT,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;SAC1B;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -3,10 +3,10 @@ import { StyleSheet, View } from 'react-native';
3
3
  import { Text } from 'react-native-paper';
4
4
  import { useAppTheme } from '../../theme/theme';
5
5
  import { DropDownSelectorLeftIcon } from './drop-down-selector-left-icon';
6
- export const DropDownSelectorItem = ({ item, selected, textColor, }) => {
6
+ export const DropDownSelectorItem = ({ item, selected, textColor }) => {
7
7
  const isSelected = selected === true;
8
8
  const styles = useStyles({ isSelected });
9
- return (_jsxs(View, { style: styles.itemContainer, children: [item.icon && (_jsx(DropDownSelectorLeftIcon, { icon: item.icon, color: textColor })), _jsx(Text, { style: { color: textColor }, children: item.label })] }));
9
+ return (_jsxs(View, { style: styles.itemContainer, children: [item.icon && _jsx(DropDownSelectorLeftIcon, { icon: item.icon, color: textColor }), _jsx(Text, { style: { color: textColor }, children: item.label })] }));
10
10
  };
11
11
  const useStyles = ({ isSelected }) => {
12
12
  const theme = useAppTheme();
@@ -1 +1 @@
1
- {"version":3,"file":"drop-down-selector-item.js","sourceRoot":"","sources":["../../../src/components/drop-down-selector/drop-down-selector-item.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAQ1E,MAAM,CAAC,MAAM,oBAAoB,GAAiD,CAAC,EACjF,IAAI,EACJ,QAAQ,EACR,SAAS,GACV,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,QAAQ,KAAK,IAAI,CAAC;IACrC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IAEzC,OAAO,CACL,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,aAAa,aAC9B,IAAI,CAAC,IAAI,IAAI,CACZ,KAAC,wBAAwB,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,GAAI,CAChE,EACD,KAAC,IAAI,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,YAAG,IAAI,CAAC,KAAK,GAAQ,IACjD,CACR,CAAC;AACJ,CAAC,CAAC;AAMF,MAAM,SAAS,GAAG,CAAC,EAAE,UAAU,EAAkB,EAAE,EAAE;IACnD,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAE5B,OAAO,UAAU,CAAC,MAAM,CAAC;QACvB,aAAa,EAAE;YACb,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE,QAAQ;YACpB,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACjC,iBAAiB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACnC,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACrB,eAAe,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;SACjF;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"drop-down-selector-item.js","sourceRoot":"","sources":["../../../src/components/drop-down-selector/drop-down-selector-item.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,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CAAC;AACL,CAAC,CAAC"}
@@ -4,6 +4,6 @@ export const DropDownSelectorLeftIcon = ({ icon, color, size = 20, }) => {
4
4
  if (!icon) {
5
5
  return null;
6
6
  }
7
- return (_jsx(Icon, { source: icon, size: size, color: color }));
7
+ return _jsx(Icon, { source: icon, size: size, color: color });
8
8
  };
9
9
  //# sourceMappingURL=drop-down-selector-left-icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"drop-down-selector-left-icon.js","sourceRoot":"","sources":["../../../src/components/drop-down-selector/drop-down-selector-left-icon.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAQ1C,MAAM,CAAC,MAAM,wBAAwB,GAAqD,CAAC,EACzF,IAAI,EACJ,KAAK,EACL,IAAI,GAAG,EAAE,GACV,EAAE,EAAE;IACH,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,KAAC,IAAI,IAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAI,CACjD,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"drop-down-selector-left-icon.js","sourceRoot":"","sources":["../../../src/components/drop-down-selector/drop-down-selector-left-icon.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAQ1C,MAAM,CAAC,MAAM,wBAAwB,GAAqD,CAAC,EACzF,IAAI,EACJ,KAAK,EACL,IAAI,GAAG,EAAE,GACV,EAAE,EAAE;IACH,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAC,IAAI,IAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC;AAC1D,CAAC,CAAC"}
@@ -15,10 +15,10 @@ export const DropDownSelector = ({ label, value, onChange, isError, options, pla
15
15
  const textColor = getTextColor({ theme, isFocused, isDisabled });
16
16
  const styles = useStyles({ isFocused, disabled, isError, textColor });
17
17
  const selectedItem = options.find((option) => option.value === value);
18
- return (_jsxs(View, { children: [hasLabel && (_jsx(Text, { variant: 'bodySmall', style: styles.dropdownTitle, children: label })), _jsx(Dropdown, { style: styles.dropdown, autoScroll: false, placeholderStyle: styles.placeholderStyle, selectedTextStyle: styles.selectedTextStyle, data: options, search: false, searchPlaceholder: searchPlaceholder, maxHeight: 300, labelField: "label", valueField: "value", placeholder: isFocused ? '' : placeholder, value: value, disable: disabled, onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), onChange: ({ value }) => {
18
+ return (_jsxs(View, { children: [hasLabel && (_jsx(Text, { variant: "bodySmall", style: styles.dropdownTitle, children: label })), _jsx(Dropdown, { style: styles.dropdown, autoScroll: false, placeholderStyle: styles.placeholderStyle, selectedTextStyle: styles.selectedTextStyle, data: options, search: false, searchPlaceholder: searchPlaceholder, maxHeight: 300, labelField: "label", valueField: "value", placeholder: isFocused ? '' : placeholder, value: value, disable: disabled, onFocus: () => setIsFocused(true), onBlur: () => setIsFocused(false), onChange: ({ value }) => {
19
19
  onChange(value);
20
20
  setIsFocused(false);
21
- }, renderItem: (item, selected) => (_jsx(DropDownSelectorItem, { item: item, selected: selected, textColor: textColor })), renderLeftIcon: () => (_jsx(DropDownSelectorLeftIcon, { icon: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon, color: textColor })) })] }));
21
+ }, renderItem: (item, selected) => (_jsx(DropDownSelectorItem, { item: item, selected: selected, textColor: textColor })), renderLeftIcon: () => _jsx(DropDownSelectorLeftIcon, { icon: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.icon, color: textColor }) })] }));
22
22
  };
23
23
  const useStyles = ({ isFocused, disabled, isError, textColor }) => {
24
24
  const theme = useAppTheme();
@@ -1 +1 @@
1
- {"version":3,"file":"drop-down-selector.js","sourceRoot":"","sources":["../../../src/components/drop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,iBAAiB,EAAE;YACjB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SAC9B;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"drop-down-selector.js","sourceRoot":"","sources":["../../../src/components/drop-down-selector/drop-down-selector.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAmB1E,MAAM,CAAC,MAAM,gBAAgB,GAA6C,CAAC,EACzE,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,QAAQ,GACT,EAAE,EAAE;IACH,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC;IACzB,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,UAAU,GAAG,QAAQ,KAAK,IAAI,CAAC;IACrC,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC;IACjE,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAA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AAW;YACX,WAAW;YACX,YAAY,EAAE,KAAK,CAAC,SAAS;YAC7B,iBAAiB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACnC,eAAe;SAChB;QACD,gBAAgB,EAAE;YAChB,KAAK,EAAE,SAAS;SACjB;QACD,iBAAiB,EAAE;YACjB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SAC9B;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -28,11 +28,11 @@ export const EventLogsScreen = () => {
28
28
  return (_jsxs(View, { style: styles.container, children: [_jsx(Text, { variant: "titleMedium", style: styles.title, children: t('common:eventLogs') }), _jsx(LegendList, { data: files, renderItem: ({ item }) => {
29
29
  var _a, _b;
30
30
  const title = item.uri.split('/').pop();
31
- const updatedAt = 'modificationTime' in item ? new Date(((_a = item.modificationTime) !== null && _a !== void 0 ? _a : 0)) : new Date();
31
+ const updatedAt = 'modificationTime' in item ? new Date((_a = item.modificationTime) !== null && _a !== void 0 ? _a : 0) : new Date();
32
32
  const formattedUpdatedAt = format(updatedAt, 'yyyy-MM-dd HH:mm:ss');
33
33
  const size = 'size' in item ? filesize((_b = item.size) !== null && _b !== void 0 ? _b : 0) : '';
34
34
  const description = `${formattedUpdatedAt} [ ${size} ]`;
35
- return (_jsx(List.Item, { title: title, description: description, left: (props) => (_jsx(List.Icon, Object.assign({}, props, { icon: (props) => _jsx(Icon, Object.assign({ source: "file-document" }, props)) }))), right: () => (_jsx(IconButton, { iconColor: theme.colors.primary, icon: "share", onPress: () => shareTextFile(item.uri) })) }));
35
+ return (_jsx(List.Item, { title: title, description: description, left: (props) => _jsx(List.Icon, Object.assign({}, props, { icon: (props) => _jsx(Icon, Object.assign({ source: "file-document" }, props)) })), right: () => (_jsx(IconButton, { iconColor: theme.colors.primary, icon: "share", onPress: () => shareTextFile(item.uri) })) }));
36
36
  }, estimatedItemSize: 30 }), _jsx(View, { style: styles.actions, children: _jsx(Button, { mode: "outlined", icon: "delete", onPress: () => toggleDeleteConfirmVisibility(), children: t('common:delete') }) }), _jsx(DialogOkCancel, { icon: "alert", title: t('common:confirm'), description: t('common:deleteAllLogsFilesConfirmation'), isVisible: isDeleteDialogVisible, onOk: onDeleteConfirmed, onCancel: toggleDeleteConfirmVisibility })] }));
37
37
  };
38
38
  const useStyles = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"event-logs-screen.js","sourceRoot":"","sources":["../../../src/components/event-logs/event-logs-screen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAc,EAAqB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,MAAM,CAAC,MAAM,eAAe,GAAsB,GAAG,EAAE;IACrD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/B,MAAM,C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M,CAAC;QACvB,SAAS,EAAE;YACT,IAAI,EAAE,CAAC;YACP,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SAC1B;QACD,KAAK,EAAE;YACL,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SAC/B;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACzB,iBAAiB,EAAE,CAAC;YACpB,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;SACxC;QACD,OAAO,EAAE;YACP,aAAa,EAAE,KAAK;YACpB,cAAc,EAAE,QAAQ;YACxB,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SACtB;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,GAAG;SACb;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"event-logs-screen.js","sourceRoot":"","sources":["../../../src/components/event-logs/event-logs-screen.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAc,EAAqB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD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B,CAAC,EAC1B,WAAW,EAAE,CAAC,CAAC,uCAAuC,CAAC,EACvD,SAAS,EAAE,qBAAqB,EAChC,IAAI,EAAE,iBAAiB,EACvB,QAAQ,EAAE,6BAA6B,GACvC,IACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,KAAK,GAAG,WAAW,EAAE,CAAC;IAE5B,OAAO,UAAU,CAAC,MAAM,CAAC;QACvB,SAAS,EAAE;YACT,IAAI,EAAE,CAAC;YACP,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SAC1B;QACD,KAAK,EAAE;YACL,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SAC/B;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YACzB,iBAAiB,EAAE,CAAC;YACpB,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO;SACxC;QACD,OAAO,EAAE;YACP,aAAa,EAAE,KAAK;YACpB,cAAc,EAAE,QAAQ;YACxB,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;SACtB;QACD,YAAY,EAAE;YACZ,OAAO,EAAE,GAAG;SACb;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-logs-actions.js","sourceRoot":"","sources":["../../../../src/components/event-logs/live-logs-viewer/use-logs-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAGhE,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,mBAAmB,EAAE,GAAG,WAAW,EAAE,CAAC;IAC9C,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAE/B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACjD,MAAM,mBAAmB,GAAG,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;IACzD,MAAM,YAAY,GAAG,eAAe,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAErE,MAAM,iBAAiB,GAAG,KAAK,IAAI,EAAE;QACnC,MAAM,uBAAuB,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QAC7D,mBAAmB,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,OAAO;QACL,UAAU;QACV,aAAa;QACb,YAAY;QACZ,iBAAiB;KAClB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"use-logs-actions.js","sourceRoot":"","sources":["../../../../src/components/event-logs/live-logs-viewer/use-logs-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,mBAAmB,EAAE,GAAG,WAAW,EAAE,CAAC;IAC9C,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAE/B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACjD,MAAM,mBAAmB,GAAG,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;IACzD,MAAM,YAAY,GAAG,eAAe,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAErE,MAAM,iBAAiB,GAAG,KAAK,IAAI,EAAE;QACnC,MAAM,uBAAuB,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QAC7D,mBAAmB,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC;IACrD,CAAC,CAAC;IAEF,OAAO;QACL,UAAU;QACV,aAAa;QACb,YAAY;QACZ,iBAAiB;KAClB,CAAC;AACJ,CAAC,CAAC"}
@@ -10,6 +10,7 @@ export * from './language-selector';
10
10
  export * from './layout';
11
11
  export * from './lists';
12
12
  export * from './on-off-toggle';
13
+ export * from './password-input';
13
14
  export * from './score-indicator';
14
15
  export * from './snack-bar';
15
16
  export * from './spinner';
@@ -10,6 +10,7 @@ export * from './language-selector';
10
10
  export * from './layout';
11
11
  export * from './lists';
12
12
  export * from './on-off-toggle';
13
+ export * from './password-input';
13
14
  export * from './score-indicator';
14
15
  export * from './snack-bar';
15
16
  export * from './spinner';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
@@ -34,7 +34,7 @@ const useStyles = () => {
34
34
  borderTopColor: isLandscape ? undefined : theme.colors.outline,
35
35
  borderLeftWidth: isLandscape ? StyleSheet.hairlineWidth : undefined,
36
36
  borderLeftColor: isLandscape ? theme.colors.outline : undefined,
37
- }
37
+ },
38
38
  });
39
39
  };
40
40
  //# sourceMappingURL=orientation-aware-tabs-layout.js.map
@@ -0,0 +1 @@
1
+ export * from './password-input';
@@ -0,0 +1,2 @@
1
+ export * from './password-input';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/password-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FunctionComponent } from 'react';
2
+ import { TextInputProps } from 'react-native-paper';
3
+ export type PasswordInputProps = Omit<TextInputProps, 'secureTextEntry'>;
4
+ export declare const PasswordInput: FunctionComponent<PasswordInputProps>;
@@ -0,0 +1,27 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { useToggle } from '@uidotdev/usehooks';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { TextInput } from 'react-native-paper';
16
+ export const PasswordInput = (_a) => {
17
+ var { label } = _a, rest = __rest(_a, ["label"]);
18
+ const { t } = useTranslation();
19
+ const [isPasswordVisible, toggleShowPassword] = useToggle();
20
+ const displayLabel = label !== null && label !== void 0 ? label : t('common:password');
21
+ const icon = isPasswordVisible ? 'eye-off' : 'eye';
22
+ const showA11yLabel = isPasswordVisible
23
+ ? t('common:passwordInput.hidePassword')
24
+ : t('common:passwordInput.showPassword');
25
+ return (_jsx(TextInput, Object.assign({ label: displayLabel, secureTextEntry: !isPasswordVisible, right: _jsx(TextInput.Icon, { icon: icon, onPress: () => toggleShowPassword(), accessibilityLabel: showA11yLabel }) }, rest)));
26
+ };
27
+ //# sourceMappingURL=password-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-input.js","sourceRoot":"","sources":["../../../src/components/password-input/password-input.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAkB,MAAM,oBAAoB,CAAC;AAI/D,MAAM,CAAC,MAAM,aAAa,GAA0C,CAAC,EAAkB,EAAE,EAAE;QAAtB,EAAE,KAAK,OAAW,EAAN,IAAI,cAAhB,SAAkB,CAAF;IACnF,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAC;IAC/B,MAAM,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,GAAG,SAAS,EAAE,CAAC;IAE5D,MAAM,YAAY,GAAG,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC,CAAC,iBAAiB,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IACnD,MAAM,aAAa,GAAG,iBAAiB;QACrC,CAAC,CAAC,CAAC,CAAC,mCAAmC,CAAC;QACxC,CAAC,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC;IAE3C,OAAO,CACL,KAAC,SAAS,kBACR,KAAK,EAAE,YAAY,EACnB,eAAe,EAAE,CAAC,iBAAiB,EACnC,KAAK,EAAE,KAAC,SAAS,CAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,kBAAkB,EAAE,EAAE,kBAAkB,EAAE,aAAa,GAAI,IACzG,IAAI,EACR,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -6,86 +6,86 @@ declare const _default: {
6
6
  background: string;
7
7
  color: string;
8
8
  };
9
- "hljs-keyword": {
9
+ 'hljs-keyword': {
10
10
  color: string;
11
11
  fontWeight: string;
12
12
  };
13
- "hljs-selector-tag": {
13
+ 'hljs-selector-tag': {
14
14
  color: string;
15
15
  fontWeight: string;
16
16
  };
17
- "hljs-literal": {
17
+ 'hljs-literal': {
18
18
  color: string;
19
19
  fontWeight: string;
20
20
  };
21
- "hljs-section": {
21
+ 'hljs-section': {
22
22
  color: string;
23
23
  fontWeight: string;
24
24
  };
25
- "hljs-link": {
25
+ 'hljs-link': {
26
26
  color: string;
27
27
  };
28
- "hljs-subst": {
28
+ 'hljs-subst': {
29
29
  color: string;
30
30
  };
31
- "hljs-string": {
31
+ 'hljs-string': {
32
32
  color: string;
33
33
  };
34
- "hljs-title": {
34
+ 'hljs-title': {
35
35
  color: string;
36
36
  fontWeight: string;
37
37
  };
38
- "hljs-name": {
38
+ 'hljs-name': {
39
39
  color: string;
40
40
  fontWeight: string;
41
41
  };
42
- "hljs-type": {
42
+ 'hljs-type': {
43
43
  color: string;
44
44
  fontWeight: string;
45
45
  };
46
- "hljs-attribute": {
46
+ 'hljs-attribute': {
47
47
  color: string;
48
48
  };
49
- "hljs-symbol": {
49
+ 'hljs-symbol': {
50
50
  color: string;
51
51
  };
52
- "hljs-bullet": {
52
+ 'hljs-bullet': {
53
53
  color: string;
54
54
  };
55
- "hljs-built_in": {
55
+ 'hljs-built_in': {
56
56
  color: string;
57
57
  };
58
- "hljs-addition": {
58
+ 'hljs-addition': {
59
59
  color: string;
60
60
  };
61
- "hljs-variable": {
61
+ 'hljs-variable': {
62
62
  color: string;
63
63
  };
64
- "hljs-template-tag": {
64
+ 'hljs-template-tag': {
65
65
  color: string;
66
66
  };
67
- "hljs-template-variable": {
67
+ 'hljs-template-variable': {
68
68
  color: string;
69
69
  };
70
- "hljs-comment": {
70
+ 'hljs-comment': {
71
71
  color: string;
72
72
  };
73
- "hljs-quote": {
73
+ 'hljs-quote': {
74
74
  color: string;
75
75
  };
76
- "hljs-deletion": {
76
+ 'hljs-deletion': {
77
77
  color: string;
78
78
  };
79
- "hljs-meta": {
79
+ 'hljs-meta': {
80
80
  color: string;
81
81
  };
82
- "hljs-doctag": {
82
+ 'hljs-doctag': {
83
83
  fontWeight: string;
84
84
  };
85
- "hljs-strong": {
85
+ 'hljs-strong': {
86
86
  fontWeight: string;
87
87
  };
88
- "hljs-emphasis": {
88
+ 'hljs-emphasis': {
89
89
  fontStyle: string;
90
90
  };
91
91
  };
@@ -1,92 +1,92 @@
1
1
  export default {
2
- "hljs": {
3
- "display": "block",
4
- "overflowX": "auto",
5
- "padding": "0.5em",
6
- "background": "black",
7
- "color": "#ddd"
2
+ hljs: {
3
+ display: 'block',
4
+ overflowX: 'auto',
5
+ padding: '0.5em',
6
+ background: 'black',
7
+ color: '#ddd',
8
8
  },
9
- "hljs-keyword": {
10
- "color": "white",
11
- "fontWeight": "bold"
9
+ 'hljs-keyword': {
10
+ color: 'white',
11
+ fontWeight: 'bold',
12
12
  },
13
- "hljs-selector-tag": {
14
- "color": "white",
15
- "fontWeight": "bold"
13
+ 'hljs-selector-tag': {
14
+ color: 'white',
15
+ fontWeight: 'bold',
16
16
  },
17
- "hljs-literal": {
18
- "color": "white",
19
- "fontWeight": "bold"
17
+ 'hljs-literal': {
18
+ color: 'white',
19
+ fontWeight: 'bold',
20
20
  },
21
- "hljs-section": {
22
- "color": "white",
23
- "fontWeight": "bold"
21
+ 'hljs-section': {
22
+ color: 'white',
23
+ fontWeight: 'bold',
24
24
  },
25
- "hljs-link": {
26
- "color": "white"
25
+ 'hljs-link': {
26
+ color: 'white',
27
27
  },
28
- "hljs-subst": {
29
- "color": "#ddd"
28
+ 'hljs-subst': {
29
+ color: '#ddd',
30
30
  },
31
- "hljs-string": {
32
- "color": "#d88"
31
+ 'hljs-string': {
32
+ color: '#d88',
33
33
  },
34
- "hljs-title": {
35
- "color": "#d88",
36
- "fontWeight": "bold"
34
+ 'hljs-title': {
35
+ color: '#d88',
36
+ fontWeight: 'bold',
37
37
  },
38
- "hljs-name": {
39
- "color": "#d88",
40
- "fontWeight": "bold"
38
+ 'hljs-name': {
39
+ color: '#d88',
40
+ fontWeight: 'bold',
41
41
  },
42
- "hljs-type": {
43
- "color": "#d88",
44
- "fontWeight": "bold"
42
+ 'hljs-type': {
43
+ color: '#d88',
44
+ fontWeight: 'bold',
45
45
  },
46
- "hljs-attribute": {
47
- "color": "#d88"
46
+ 'hljs-attribute': {
47
+ color: '#d88',
48
48
  },
49
- "hljs-symbol": {
50
- "color": "#d88"
49
+ 'hljs-symbol': {
50
+ color: '#d88',
51
51
  },
52
- "hljs-bullet": {
53
- "color": "#d88"
52
+ 'hljs-bullet': {
53
+ color: '#d88',
54
54
  },
55
- "hljs-built_in": {
56
- "color": "#d88"
55
+ 'hljs-built_in': {
56
+ color: '#d88',
57
57
  },
58
- "hljs-addition": {
59
- "color": "#d88"
58
+ 'hljs-addition': {
59
+ color: '#d88',
60
60
  },
61
- "hljs-variable": {
62
- "color": "#d88"
61
+ 'hljs-variable': {
62
+ color: '#d88',
63
63
  },
64
- "hljs-template-tag": {
65
- "color": "#d88"
64
+ 'hljs-template-tag': {
65
+ color: '#d88',
66
66
  },
67
- "hljs-template-variable": {
68
- "color": "#d88"
67
+ 'hljs-template-variable': {
68
+ color: '#d88',
69
69
  },
70
- "hljs-comment": {
71
- "color": "#777"
70
+ 'hljs-comment': {
71
+ color: '#777',
72
72
  },
73
- "hljs-quote": {
74
- "color": "#777"
73
+ 'hljs-quote': {
74
+ color: '#777',
75
75
  },
76
- "hljs-deletion": {
77
- "color": "#777"
76
+ 'hljs-deletion': {
77
+ color: '#777',
78
78
  },
79
- "hljs-meta": {
80
- "color": "#777"
79
+ 'hljs-meta': {
80
+ color: '#777',
81
81
  },
82
- "hljs-doctag": {
83
- "fontWeight": "bold"
82
+ 'hljs-doctag': {
83
+ fontWeight: 'bold',
84
84
  },
85
- "hljs-strong": {
86
- "fontWeight": "bold"
85
+ 'hljs-strong': {
86
+ fontWeight: 'bold',
87
+ },
88
+ 'hljs-emphasis': {
89
+ fontStyle: 'italic',
87
90
  },
88
- "hljs-emphasis": {
89
- "fontStyle": "italic"
90
- }
91
91
  };
92
92
  //# sourceMappingURL=dark.js.map