@sqrzro/admin 2.0.0-beta.0 → 2.0.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.
- package/.turbo/turbo-docs.log +0 -0
- package/.turbo/turbo-lint.log +112 -0
- package/.turbo/turbo-prettier.log +215 -0
- package/.turbo/turbo-test.log +6 -0
- package/dist/components/Alert/index.d.ts +4 -26
- package/dist/components/Alert/index.js +15 -54
- package/dist/components/Allow/index.d.ts +20 -20
- package/dist/components/Allow/index.js +29 -29
- package/dist/components/AppLayout/AppLayout.stories.d.ts +5 -5
- package/dist/components/AppLayout/AppLayout.stories.js +11 -11
- package/dist/components/AppLayout/index.d.ts +6 -6
- package/dist/components/AppLayout/index.js +18 -11
- package/dist/components/AutoSuggest/index.d.ts +74 -74
- package/dist/components/AutoSuggest/index.js +143 -143
- package/dist/components/Button/Button.stories.d.ts +11 -11
- package/dist/components/Button/Button.stories.js +41 -41
- package/dist/components/Button/index.d.ts +49 -50
- package/dist/components/Button/index.js +50 -50
- package/dist/components/CalendarInput/index.d.ts +24 -24
- package/dist/components/CalendarInput/index.js +54 -56
- package/dist/components/CheckboxList/index.d.ts +17 -17
- package/dist/components/CheckboxList/index.js +25 -25
- package/dist/components/CodeInput/index.d.ts +9 -9
- package/dist/components/CodeInput/index.js +51 -57
- package/dist/components/ConnectedDropdown/index.d.ts +14 -14
- package/dist/components/ConnectedDropdown/index.js +36 -36
- package/dist/components/ConnectedList/index.d.ts +5 -5
- package/dist/components/ConnectedList/index.js +7 -7
- package/dist/components/ConnectedTable/index.d.ts +5 -5
- package/dist/components/ConnectedTable/index.js +7 -7
- package/dist/components/ContentBlock/index.d.ts +16 -16
- package/dist/components/ContentBlock/index.js +13 -13
- package/dist/components/DataPanel/index.d.ts +8 -8
- package/dist/components/DataPanel/index.js +8 -8
- package/dist/components/DateInput/index.d.ts +18 -18
- package/dist/components/DateInput/index.js +81 -81
- package/dist/components/Dropdown/index.d.ts +36 -36
- package/dist/components/Dropdown/index.js +122 -122
- package/dist/components/ErrorMessage/index.d.ts +16 -16
- package/dist/components/ErrorMessage/index.js +17 -17
- package/dist/components/Fieldset/index.d.ts +18 -18
- package/dist/components/Fieldset/index.js +19 -19
- package/dist/components/FileInput/index.d.ts +10 -10
- package/dist/components/FileInput/index.js +26 -26
- package/dist/components/FilterLink/index.d.ts +14 -14
- package/dist/components/FilterLink/index.js +15 -15
- package/dist/components/Form/index.d.ts +14 -14
- package/dist/components/Form/index.js +15 -15
- package/dist/components/FormActions/index.d.ts +18 -18
- package/dist/components/FormActions/index.js +14 -14
- package/dist/components/FormField/index.d.ts +14 -14
- package/dist/components/FormField/index.js +40 -40
- package/dist/components/FormRepeater/index.d.ts +18 -18
- package/dist/components/FormRepeater/index.js +65 -65
- package/dist/components/ImageInput/index.d.ts +13 -13
- package/dist/components/ImageInput/index.js +45 -45
- package/dist/components/InfoPanel/index.d.ts +14 -14
- package/dist/components/InfoPanel/index.js +11 -11
- package/dist/components/Link/__mocks__/index.d.ts +6 -6
- package/dist/components/Link/__mocks__/index.js +12 -12
- package/dist/components/Link/index.d.ts +23 -23
- package/dist/components/Link/index.js +21 -21
- package/dist/components/List/index.d.ts +36 -36
- package/dist/components/List/index.js +46 -46
- package/dist/components/ListActions/index.d.ts +18 -18
- package/dist/components/ListActions/index.js +14 -14
- package/dist/components/LoginForm/index.d.ts +3 -3
- package/dist/components/LoginForm/index.js +47 -47
- package/dist/components/Message/index.d.ts +14 -14
- package/dist/components/Message/index.js +14 -14
- package/dist/components/Modal/index.d.ts +4 -4
- package/dist/components/Modal/index.js +18 -18
- package/dist/components/ModalActions/index.d.ts +21 -21
- package/dist/components/ModalActions/index.js +18 -18
- package/dist/components/MoneyInput/index.d.ts +10 -10
- package/dist/components/MoneyInput/index.js +13 -13
- package/dist/components/PasswordForm/index.d.ts +35 -35
- package/dist/components/PasswordForm/index.js +21 -21
- package/dist/components/PasswordInput/index.d.ts +4 -4
- package/dist/components/PasswordInput/index.js +12 -12
- package/dist/components/RadioList/index.d.ts +9 -9
- package/dist/components/RadioList/index.js +7 -7
- package/dist/components/RootLayout/index.d.ts +6 -8
- package/dist/components/RootLayout/index.js +7 -21
- package/dist/components/SummaryList/index.d.ts +18 -18
- package/dist/components/SummaryList/index.js +15 -15
- package/dist/components/Switch/index.d.ts +21 -21
- package/dist/components/Switch/index.js +31 -31
- package/dist/components/Table/index.d.ts +28 -28
- package/dist/components/Table/index.js +55 -55
- package/dist/components/Tag/index.d.ts +15 -15
- package/dist/components/Tag/index.js +13 -13
- package/dist/components/TextArea/index.d.ts +18 -18
- package/dist/components/TextArea/index.js +26 -26
- package/dist/components/TextInput/index.d.ts +14 -14
- package/dist/components/TextInput/index.js +27 -27
- package/dist/components/WebsiteInput/index.d.ts +10 -10
- package/dist/components/WebsiteInput/index.js +13 -13
- package/dist/components/WeekCalendar/index.d.ts +24 -24
- package/dist/components/WeekCalendar/index.js +48 -48
- package/dist/core/AlertComponent/index.d.ts +26 -26
- package/dist/core/AlertComponent/index.js +35 -45
- package/dist/core/AppHeader/index.d.ts +3 -3
- package/dist/core/AppHeader/index.js +17 -17
- package/dist/core/AppLogo/index.d.ts +12 -12
- package/dist/core/AppLogo/index.js +16 -17
- package/dist/core/AppLogoImage/index.d.ts +3 -3
- package/dist/core/AppLogoImage/index.js +11 -11
- package/dist/core/AppLogoPlaceholder/index.d.ts +3 -3
- package/dist/core/AppLogoPlaceholder/index.js +10 -10
- package/dist/core/Assistive/index.d.ts +12 -12
- package/dist/core/Assistive/index.js +9 -9
- package/dist/core/AuthForm/index.d.ts +10 -10
- package/dist/core/AuthForm/index.js +13 -26
- package/dist/core/Banner/index.d.ts +3 -3
- package/dist/core/Banner/index.js +14 -14
- package/dist/core/Calendar/index.d.ts +21 -21
- package/dist/core/Calendar/index.js +69 -69
- package/dist/core/CalendarDay/index.d.ts +30 -30
- package/dist/core/CalendarDay/index.js +30 -30
- package/dist/core/CalendarMonth/index.d.ts +23 -23
- package/dist/core/CalendarMonth/index.js +45 -45
- package/dist/core/CalendarNavigation/index.d.ts +17 -17
- package/dist/core/CalendarNavigation/index.js +24 -24
- package/dist/core/CalendarWeek/index.d.ts +28 -28
- package/dist/core/CalendarWeek/index.js +46 -46
- package/dist/core/ChkRad/index.d.ts +26 -26
- package/dist/core/ChkRad/index.js +33 -33
- package/dist/core/ChkRadIcon/index.d.ts +14 -14
- package/dist/core/ChkRadIcon/index.js +12 -12
- package/dist/core/ChkRadList/index.d.ts +32 -32
- package/dist/core/ChkRadList/index.js +37 -37
- package/dist/core/CloseButton/index.d.ts +17 -17
- package/dist/core/CloseButton/index.js +12 -12
- package/dist/core/ConfirmModal/index.d.ts +3 -3
- package/dist/core/ConfirmModal/index.js +38 -38
- package/dist/core/ConnectedRepeater/index.d.ts +50 -50
- package/dist/core/ConnectedRepeater/index.js +154 -154
- package/dist/core/ConnectedRepeaterComponent/index.d.ts +24 -24
- package/dist/core/ConnectedRepeaterComponent/index.js +25 -25
- package/dist/core/Container/index.d.ts +14 -14
- package/dist/core/Container/index.js +12 -12
- package/dist/core/DataPanelItem/index.d.ts +8 -8
- package/dist/core/DataPanelItem/index.js +7 -7
- package/dist/core/DropdownPanel/index.d.ts +31 -31
- package/dist/core/DropdownPanel/index.js +32 -32
- package/dist/core/EmptyMessage/index.d.ts +21 -21
- package/dist/core/EmptyMessage/index.js +21 -21
- package/dist/core/FilterItem/index.d.ts +25 -25
- package/dist/core/FilterItem/index.js +82 -84
- package/dist/core/Filters/index.d.ts +31 -31
- package/dist/core/Filters/index.js +85 -85
- package/dist/core/FixedActions/index.d.ts +24 -24
- package/dist/core/FixedActions/index.js +22 -22
- package/dist/core/FormError/index.d.ts +12 -12
- package/dist/core/FormError/index.js +9 -9
- package/dist/core/FormLabel/index.d.ts +16 -16
- package/dist/core/FormLabel/index.js +13 -13
- package/dist/core/FormLegend/index.d.ts +12 -12
- package/dist/core/FormLegend/index.js +9 -9
- package/dist/core/Header/Header.stories.d.ts +5 -5
- package/dist/core/Header/Header.stories.js +11 -11
- package/dist/core/Header/index.d.ts +14 -14
- package/dist/core/Header/index.js +12 -12
- package/dist/core/Icon/index.d.ts +14 -14
- package/dist/core/Icon/index.js +32 -32
- package/dist/core/IconButton/index.d.ts +22 -22
- package/dist/core/IconButton/index.js +20 -20
- package/dist/core/InputPanel/index.d.ts +16 -16
- package/dist/core/InputPanel/index.js +11 -11
- package/dist/core/ListItem/index.d.ts +39 -39
- package/dist/core/ListItem/index.js +44 -44
- package/dist/core/ListItemAction/index.d.ts +11 -11
- package/dist/core/ListItemAction/index.js +13 -13
- package/dist/core/ListItemActions/index.d.ts +8 -8
- package/dist/core/ListItemActions/index.js +16 -16
- package/dist/core/ListItemMetaItem/index.d.ts +19 -19
- package/dist/core/ListItemMetaItem/index.js +29 -29
- package/dist/core/ListItemTitle/index.d.ts +19 -19
- package/dist/core/ListItemTitle/index.js +44 -44
- package/dist/core/Loader/index.d.ts +15 -15
- package/dist/core/Loader/index.js +16 -16
- package/dist/core/MeActions/index.d.ts +3 -3
- package/dist/core/MeActions/index.js +48 -48
- package/dist/core/MePanel/index.d.ts +19 -19
- package/dist/core/MePanel/index.js +29 -29
- package/dist/core/ModalComponent/index.d.ts +22 -22
- package/dist/core/ModalComponent/index.js +29 -29
- package/dist/core/Navigation/index.d.ts +3 -3
- package/dist/core/Navigation/index.js +33 -33
- package/dist/core/NavigationDivider/index.d.ts +3 -3
- package/dist/core/NavigationDivider/index.js +8 -8
- package/dist/core/NavigationItem/index.d.ts +16 -16
- package/dist/core/NavigationItem/index.js +21 -21
- package/dist/core/Pagination/index.d.ts +15 -15
- package/dist/core/Pagination/index.js +64 -64
- package/dist/core/PaginationItem/index.d.ts +10 -10
- package/dist/core/PaginationItem/index.js +17 -17
- package/dist/core/Panel/index.d.ts +17 -17
- package/dist/core/Panel/index.js +13 -16
- package/dist/core/PasswordForgotForm/index.d.ts +7 -7
- package/dist/core/PasswordForgotForm/index.js +40 -40
- package/dist/core/PasswordResetForm/index.d.ts +7 -7
- package/dist/core/PasswordResetForm/index.js +34 -34
- package/dist/core/RadialProgress/index.d.ts +16 -16
- package/dist/core/RadialProgress/index.js +23 -23
- package/dist/core/SettingsForm/index.d.ts +3 -3
- package/dist/core/SettingsForm/index.js +14 -14
- package/dist/core/StaticTextInput/index.d.ts +29 -29
- package/dist/core/StaticTextInput/index.js +39 -39
- package/dist/core/Styled/index.d.ts +6 -6
- package/dist/core/Styled/index.js +39 -39
- package/dist/core/SummaryListItem/index.d.ts +23 -23
- package/dist/core/SummaryListItem/index.js +31 -31
- package/dist/core/TabItem/index.d.ts +4 -4
- package/dist/core/TabItem/index.js +13 -13
- package/dist/core/TableActionsCell/index.d.ts +8 -8
- package/dist/core/TableActionsCell/index.js +8 -8
- package/dist/core/TableCell/index.d.ts +15 -15
- package/dist/core/TableCell/index.js +20 -20
- package/dist/core/TableHead/index.d.ts +18 -18
- package/dist/core/TableHead/index.js +18 -18
- package/dist/core/TableRow/index.d.ts +13 -13
- package/dist/core/TableRow/index.js +18 -18
- package/dist/core/Tabs/index.d.ts +7 -7
- package/dist/core/Tabs/index.js +13 -13
- package/dist/core/TextInputAncillary/index.d.ts +29 -29
- package/dist/core/TextInputAncillary/index.js +31 -31
- package/dist/core/Toast/index.d.ts +3 -3
- package/dist/core/Toast/index.js +47 -47
- package/dist/core/TwoFactor/index.d.ts +13 -13
- package/dist/core/TwoFactor/index.js +49 -49
- package/dist/core/TwoFactorAuthenticator/index.d.ts +10 -10
- package/dist/core/TwoFactorAuthenticator/index.js +9 -9
- package/dist/core/TwoFactorMethodList/index.d.ts +10 -10
- package/dist/core/TwoFactorMethodList/index.js +22 -22
- package/dist/core/TwoFactorSetup/index.d.ts +12 -12
- package/dist/core/TwoFactorSetup/index.js +43 -43
- package/dist/core/TwoFactorSetupAuthenticator/index.d.ts +20 -20
- package/dist/core/TwoFactorSetupAuthenticator/index.js +42 -42
- package/dist/core/TwoFactorSetupYubikey/index.d.ts +16 -16
- package/dist/core/TwoFactorSetupYubikey/index.js +14 -14
- package/dist/core/TwoFactorYubikey/index.d.ts +9 -9
- package/dist/core/TwoFactorYubikey/index.js +14 -14
- package/dist/core/WeekCalendarDay/index.d.ts +27 -27
- package/dist/core/WeekCalendarDay/index.js +35 -35
- package/dist/core/YubikeyInput/index.d.ts +4 -4
- package/dist/core/YubikeyInput/index.js +14 -39
- package/dist/filters/BooleanFilter/index.d.ts +14 -14
- package/dist/filters/BooleanFilter/index.js +35 -35
- package/dist/filters/DateFilter/index.d.ts +5 -5
- package/dist/filters/DateFilter/index.js +24 -24
- package/dist/filters/DropdownFilter/index.d.ts +17 -17
- package/dist/filters/DropdownFilter/index.js +32 -32
- package/dist/filters/QuickDateFilter/index.d.ts +13 -13
- package/dist/filters/QuickDateFilter/index.js +40 -40
- package/dist/filters/interfaces.d.ts +35 -35
- package/dist/filters/interfaces.js +1 -1
- package/dist/hooks/useAlert.d.ts +12 -12
- package/dist/hooks/useAlert.js +18 -18
- package/dist/hooks/useAppConfig.d.ts +3 -0
- package/dist/hooks/useAppConfig.js +5 -0
- package/dist/hooks/useConnectedList.d.ts +7 -7
- package/dist/hooks/useConnectedList.js +6 -6
- package/dist/hooks/useConnectedRepeater.d.ts +7 -7
- package/dist/hooks/useConnectedRepeater.js +14 -14
- package/dist/hooks/useConnectedTable.d.ts +7 -7
- package/dist/hooks/useConnectedTable.js +6 -6
- package/dist/hooks/useFilters.d.ts +9 -9
- package/dist/hooks/useFilters.js +24 -24
- package/dist/hooks/useLayout.d.ts +7 -7
- package/dist/hooks/useLayout.js +10 -10
- package/dist/hooks/useLayout.spec.d.ts +1 -1
- package/dist/hooks/useLayout.spec.js +24 -24
- package/dist/hooks/useModal.d.ts +12 -12
- package/dist/hooks/useModal.js +39 -39
- package/dist/hooks/useModalOffset.d.ts +2 -2
- package/dist/hooks/useModalOffset.js +16 -16
- package/dist/hooks/useModalOffset.spec.d.ts +1 -1
- package/dist/hooks/useModalOffset.spec.js +19 -19
- package/dist/hooks/useNavigation.d.ts +7 -7
- package/dist/hooks/useNavigation.js +113 -113
- package/dist/hooks/useRemote.d.ts +7 -7
- package/dist/hooks/useRemote.js +29 -29
- package/dist/hooks/useVariant.d.ts +9 -9
- package/dist/hooks/useVariant.js +14 -14
- package/dist/index.d.ts +209 -208
- package/dist/index.js +213 -212
- package/dist/scenes/Error404Scene.d.ts +3 -3
- package/dist/scenes/Error404Scene.js +5 -5
- package/dist/services/AppService.d.ts +5 -5
- package/dist/services/AppService.js +11 -11
- package/dist/services/ConfigService.d.ts +42 -42
- package/dist/services/ConfigService.js +52 -55
- package/dist/services/ConfirmService.d.ts +12 -12
- package/dist/services/ConfirmService.js +10 -10
- package/dist/services/DateService.d.ts +26 -26
- package/dist/services/DateService.js +132 -132
- package/dist/services/DateService.spec.d.ts +1 -1
- package/dist/services/DateService.spec.js +83 -83
- package/dist/services/DownloadService.d.ts +7 -7
- package/dist/services/DownloadService.js +16 -16
- package/dist/services/DownloadService.spec.d.ts +1 -1
- package/dist/services/DownloadService.spec.js +18 -18
- package/dist/services/FilterComponentService.d.ts +25 -25
- package/dist/services/FilterComponentService.js +54 -54
- package/dist/services/FilterService.d.ts +34 -34
- package/dist/services/FilterService.js +58 -58
- package/dist/services/FilterService.spec.d.ts +1 -1
- package/dist/services/FilterService.spec.js +67 -67
- package/dist/services/FormatService.d.ts +11 -11
- package/dist/services/FormatService.js +45 -45
- package/dist/services/FormatService.spec.d.ts +1 -1
- package/dist/services/FormatService.spec.js +66 -66
- package/dist/services/ToastService.d.ts +7 -7
- package/dist/services/ToastService.js +17 -17
- package/dist/services/ToastService.spec.d.ts +1 -1
- package/dist/services/ToastService.spec.js +34 -34
- package/dist/styles.css +125 -67
- package/dist/utility/MockRouter/index.d.ts +2 -2
- package/dist/utility/MockRouter/index.js +37 -37
- package/dist/utility/StorybookPanel/index.d.ts +14 -14
- package/dist/utility/StorybookPanel/index.js +12 -12
- package/dist/utility/TestChangeHandler/index.d.ts +15 -15
- package/dist/utility/TestChangeHandler/index.js +30 -30
- package/dist/utility/icons.d.ts +3 -3
- package/dist/utility/icons.js +12 -12
- package/dist/utility/interfaces.d.ts +79 -80
- package/dist/utility/interfaces.js +18 -18
- package/dist/utility/middleware.d.ts +4 -4
- package/dist/utility/middleware.js +9 -4
- package/dist/utility/prop-types.d.ts +57 -57
- package/dist/utility/prop-types.js +77 -77
- package/dist/utility/register.d.ts +3 -3
- package/dist/utility/register.js +9 -7
- package/package.json +5 -5
- package/src/components/LoginForm/index.tsx +1 -1
- package/src/core/TwoFactor/TwoFactor.spec.tsx +4 -4
- package/src/core/TwoFactor/index.tsx +5 -5
- package/src/core/TwoFactorAuthenticator/index.tsx +1 -1
- package/src/core/TwoFactorSetup/index.tsx +1 -1
- package/src/core/TwoFactorYubikey/index.tsx +1 -1
- package/dist/hooks/useConfig.d.ts +0 -9
- package/dist/hooks/useConfig.js +0 -13
|
File without changes
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
$ tsc --noEmit && eslint "./src/**/*.tsx" "./src/**/*.ts"
|
|
2
|
+
src/components/Alert/index.tsx(12,24): error TS2307: Cannot find module '../../hooks/useVariant' or its corresponding type declarations.
|
|
3
|
+
src/components/Alert/index.tsx(14,23): error TS2305: Module '"../../utility/interfaces"' has no exported member 'StyleVariant'.
|
|
4
|
+
src/components/Alert/index.tsx(51,25): error TS2345: Argument of type 'MouseEvent' is not assignable to parameter of type 'MouseEvent<HTMLButtonElement, MouseEvent>'.
|
|
5
|
+
Type 'MouseEvent' is missing the following properties from type 'MouseEvent<HTMLButtonElement, MouseEvent>': nativeEvent, isDefaultPrevented, isPropagationStopped, persist
|
|
6
|
+
src/components/Alert/index.tsx(81,33): error TS2322: Type '{ children: string; key: string; isDisabled: boolean | null | undefined; onClick: () => void; variant: any; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
|
|
7
|
+
Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps'.
|
|
8
|
+
src/components/Alert/index.tsx(88,51): error TS2322: Type '{ children: string; type: "submit"; variant: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
|
|
9
|
+
Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps'.
|
|
10
|
+
src/components/AutoSuggest/index.tsx(13,26): error TS2307: Cannot find module '../../core/DropdownList' or its corresponding type declarations.
|
|
11
|
+
src/components/AutoSuggest/index.tsx(14,35): error TS2307: Cannot find module '../../core/DropdownList' or its corresponding type declarations.
|
|
12
|
+
src/components/AutoSuggest/index.tsx(15,24): error TS2307: Cannot find module '../../core/InputPanel' or its corresponding type declarations.
|
|
13
|
+
src/components/Button/Button.stories.tsx(5,15): error TS2614: Module '"./index"' has no exported member 'ButtonProps'. Did you mean to use 'import ButtonProps from "./index"' instead?
|
|
14
|
+
src/components/CalendarInput/index.tsx(10,24): error TS2307: Cannot find module '../../core/InputPanel' or its corresponding type declarations.
|
|
15
|
+
src/components/CalendarInput/index.tsx(11,29): error TS2307: Cannot find module '../../core/StaticTextInput' or its corresponding type declarations.
|
|
16
|
+
src/components/ConnectedDropdown/index.tsx(8,22): error TS2307: Cannot find module '../Dropdown' or its corresponding type declarations.
|
|
17
|
+
src/components/FileInput/index.tsx(7,29): error TS2307: Cannot find module '../../core/StaticTextInput' or its corresponding type declarations.
|
|
18
|
+
src/components/FormRepeater/index.tsx(106,21): error TS2322: Type '{ key: number; action: Action | null; id: string; label: string | undefined; name: string; onChange: (event: InputEvent<string, SimpleObject>) => void; render: (props: InputProps<...>) => ReactElement<...>; value: string; isShallow: true; }' is not assignable to type 'IntrinsicAttributes & FormFieldProps<string>'.
|
|
19
|
+
Property 'isShallow' does not exist on type 'IntrinsicAttributes & FormFieldProps<string>'.
|
|
20
|
+
src/components/InfoPanel/index.tsx(5,24): error TS2307: Cannot find module '../../hooks/useVariant' or its corresponding type declarations.
|
|
21
|
+
src/components/InfoPanel/index.tsx(7,15): error TS2305: Module '"../../utility/interfaces"' has no exported member 'StyleVariant'.
|
|
22
|
+
src/components/List/index.tsx(6,15): error TS2614: Module '"../../core/EmptyMessage"' has no exported member 'EmptyMessageProps'. Did you mean to use 'import EmptyMessageProps from "../../core/EmptyMessage"' instead?
|
|
23
|
+
src/components/List/index.tsx(8,24): error TS2307: Cannot find module '../../core/Pagination' or its corresponding type declarations.
|
|
24
|
+
src/components/LoginForm/index.tsx(11,27): error TS2307: Cannot find module '../PasswordInput' or its corresponding type declarations.
|
|
25
|
+
src/components/LoginForm/index.tsx(33,9): error TS2554: Expected 1 arguments, but got 3.
|
|
26
|
+
src/components/ModalActions/index.tsx(7,15): error TS2305: Module '"../../utility/interfaces"' has no exported member 'ButtonVariant'.
|
|
27
|
+
src/components/ModalActions/index.tsx(34,21): error TS2322: Type '{ children: string; isDisabled: boolean | undefined; onClick: MouseEventHandler<HTMLButtonElement> | undefined; type: "button" | "submit"; variant: any; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
|
|
28
|
+
Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps'.
|
|
29
|
+
src/components/MoneyInput/index.tsx(6,15): error TS2614: Module '"../TextInput"' has no exported member 'TextInputProps'. Did you mean to use 'import TextInputProps from "../TextInput"' instead?
|
|
30
|
+
src/components/Switch/index.tsx(7,8): error TS2613: Module '"/Users/richard/Sites/@sqrzro/sqrzro/packages/admin/src/core/Assistive/index"' has no default export. Did you mean to use 'import { Assistive } from "/Users/richard/Sites/@sqrzro/sqrzro/packages/admin/src/core/Assistive/index"' instead?
|
|
31
|
+
src/components/Table/index.tsx(8,15): error TS2614: Module '"../../core/EmptyMessage"' has no exported member 'EmptyMessageProps'. Did you mean to use 'import EmptyMessageProps from "../../core/EmptyMessage"' instead?
|
|
32
|
+
src/components/Table/index.tsx(9,24): error TS2307: Cannot find module '../../core/Pagination' or its corresponding type declarations.
|
|
33
|
+
src/components/Table/index.tsx(11,23): error TS2307: Cannot find module '../../core/TableCell' or its corresponding type declarations.
|
|
34
|
+
src/components/Table/index.tsx(12,23): error TS2307: Cannot find module '../../core/TableHead' or its corresponding type declarations.
|
|
35
|
+
src/components/Table/index.tsx(13,30): error TS2307: Cannot find module '../../core/TableCell' or its corresponding type declarations.
|
|
36
|
+
src/components/Table/index.tsx(14,22): error TS2307: Cannot find module '../../core/TableRow' or its corresponding type declarations.
|
|
37
|
+
src/components/Table/index.tsx(15,40): error TS2307: Cannot find module '../../core/TableRow' or its corresponding type declarations.
|
|
38
|
+
src/components/TextArea/index.tsx(7,15): error TS2614: Module '"../TextInput"' has no exported member 'TextInputProps'. Did you mean to use 'import TextInputProps from "../TextInput"' instead?
|
|
39
|
+
src/components/TextInput/TextInput.stories.tsx(5,15): error TS2614: Module '"./index"' has no exported member 'TextInputProps'. Did you mean to use 'import TextInputProps from "./index"' instead?
|
|
40
|
+
src/components/WebsiteInput/index.tsx(6,15): error TS2614: Module '"../TextInput"' has no exported member 'TextInputProps'. Did you mean to use 'import TextInputProps from "../TextInput"' instead?
|
|
41
|
+
src/core/AlertComponent/index.tsx(12,23): error TS2305: Module '"../../utility/interfaces"' has no exported member 'StyleVariant'.
|
|
42
|
+
src/core/AlertComponent/index.tsx(81,33): error TS2322: Type '{ children: string; key: string; isDisabled: boolean | null | undefined; onClick: () => void; variant: any; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
|
|
43
|
+
Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps'.
|
|
44
|
+
src/core/AlertComponent/index.tsx(87,55): error TS2322: Type '{ children: string; onClick: (event: MouseEvent<HTMLButtonElement, MouseEvent>) => void; variant: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
|
|
45
|
+
Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps'.
|
|
46
|
+
src/core/AppLogoImage/index.tsx(5,8): error TS2613: Module '"/Users/richard/Sites/@sqrzro/sqrzro/packages/admin/src/core/Assistive/index"' has no default export. Did you mean to use 'import { Assistive } from "/Users/richard/Sites/@sqrzro/sqrzro/packages/admin/src/core/Assistive/index"' instead?
|
|
47
|
+
src/core/AuthForm/index.tsx(13,15): error TS2305: Module '"../../utility/interfaces"' has no exported member 'StyleVariant'.
|
|
48
|
+
src/core/AuthForm/index.tsx(14,24): error TS2307: Cannot find module '../../hooks/useVariant' or its corresponding type declarations.
|
|
49
|
+
src/core/ChkRadList/index.tsx(5,20): error TS2307: Cannot find module '../ChkRad' or its corresponding type declarations.
|
|
50
|
+
src/core/ConnectedRepeater/index.tsx(16,30): error TS2307: Cannot find module '../TableCell' or its corresponding type declarations.
|
|
51
|
+
src/core/ConnectedRepeaterComponent/index.tsx(8,30): error TS2307: Cannot find module '../TableCell' or its corresponding type declarations.
|
|
52
|
+
src/core/EmptyMessage/EmptyMessage.stories.tsx(24,1): error TS2304: Cannot find name 'Custom'.
|
|
53
|
+
src/core/EmptyMessage/EmptyMessage.stories.tsx(31,1): error TS2304: Cannot find name 'WithAction'.
|
|
54
|
+
src/core/FilterItem/index.tsx(12,24): error TS2307: Cannot find module '../InputPanel' or its corresponding type declarations.
|
|
55
|
+
src/core/Filters/index.tsx(91,48): error TS2322: Type '{ children: string[]; onClick: () => void; variant: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
|
|
56
|
+
Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps'.
|
|
57
|
+
src/core/Filters/index.tsx(133,33): error TS2322: Type '{ children: string; key: string; isDisabled: boolean | null | undefined; onClick: () => void; variant: any; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
|
|
58
|
+
Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps'.
|
|
59
|
+
src/core/Filters/index.tsx(142,48): error TS2322: Type '{ children: string; onClick: () => void; variant: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
|
|
60
|
+
Property 'variant' does not exist on type 'IntrinsicAttributes & ButtonProps'.
|
|
61
|
+
src/core/Header/index.tsx(9,15): error TS2305: Module '"../../utility/interfaces"' has no exported member 'StyleVariant'.
|
|
62
|
+
src/core/IconButton/index.tsx(7,8): error TS2613: Module '"/Users/richard/Sites/@sqrzro/sqrzro/packages/admin/src/core/Assistive/index"' has no default export. Did you mean to use 'import { Assistive } from "/Users/richard/Sites/@sqrzro/sqrzro/packages/admin/src/core/Assistive/index"' instead?
|
|
63
|
+
src/core/ListItemAction/index.tsx(5,24): error TS2307: Cannot find module '../../hooks/useVariant' or its corresponding type declarations.
|
|
64
|
+
src/core/ListItemAction/index.tsx(7,23): error TS2305: Module '"../../utility/interfaces"' has no exported member 'ButtonVariant'.
|
|
65
|
+
src/core/ListItemMetaItem/index.tsx(6,20): error TS2307: Cannot find module '../Styled' or its corresponding type declarations.
|
|
66
|
+
src/core/ListItemTitle/index.tsx(8,17): error TS2307: Cannot find module '../../components/Tag' or its corresponding type declarations.
|
|
67
|
+
src/core/ListItemTitle/index.tsx(10,20): error TS2307: Cannot find module '../Styled' or its corresponding type declarations.
|
|
68
|
+
src/core/MePanel/index.tsx(5,26): error TS2307: Cannot find module '../DropdownList' or its corresponding type declarations.
|
|
69
|
+
src/core/MePanel/index.tsx(6,36): error TS2307: Cannot find module '../DropdownList' or its corresponding type declarations.
|
|
70
|
+
src/core/ModalComponent/index.tsx(10,15): error TS2305: Module '"../../utility/interfaces"' has no exported member 'StyleVariant'.
|
|
71
|
+
src/core/PasswordResetForm/index.tsx(9,27): error TS2307: Cannot find module '../../components/PasswordInput' or its corresponding type declarations.
|
|
72
|
+
src/core/SummaryListItem/index.tsx(5,17): error TS2307: Cannot find module '../../components/Tag' or its corresponding type declarations.
|
|
73
|
+
src/core/SummaryListItem/index.tsx(7,20): error TS2307: Cannot find module '../Styled' or its corresponding type declarations.
|
|
74
|
+
src/core/SummaryListItem/index.tsx(9,15): error TS2305: Module '"../../utility/interfaces"' has no exported member 'StyleVariant'.
|
|
75
|
+
src/core/TwoFactorAuthenticator/index.tsx(3,23): error TS2307: Cannot find module '../../components/CodeInput' or its corresponding type declarations.
|
|
76
|
+
src/core/TwoFactorSetupAuthenticator/index.tsx(6,23): error TS2307: Cannot find module '../../components/CodeInput' or its corresponding type declarations.
|
|
77
|
+
src/core/YubikeyInput/index.tsx(4,8): error TS2613: Module '"/Users/richard/Sites/@sqrzro/sqrzro/packages/admin/src/core/Assistive/index"' has no default export. Did you mean to use 'import { Assistive } from "/Users/richard/Sites/@sqrzro/sqrzro/packages/admin/src/core/Assistive/index"' instead?
|
|
78
|
+
src/filters/BooleanFilter/index.tsx(4,22): error TS2307: Cannot find module '../../components/Dropdown' or its corresponding type declarations.
|
|
79
|
+
src/filters/DropdownFilter/index.tsx(4,39): error TS2307: Cannot find module '../../components/Dropdown' or its corresponding type declarations.
|
|
80
|
+
src/filters/QuickDateFilter/index.tsx(4,22): error TS2307: Cannot find module '../../components/Dropdown' or its corresponding type declarations.
|
|
81
|
+
src/index.ts(25,15): error TS2307: Cannot find module './components/CodeInput' or its corresponding type declarations.
|
|
82
|
+
src/index.ts(26,38): error TS2307: Cannot find module './components/CodeInput' or its corresponding type declarations.
|
|
83
|
+
src/index.ts(39,15): error TS2307: Cannot find module './components/Dropdown' or its corresponding type declarations.
|
|
84
|
+
src/index.ts(40,37): error TS2307: Cannot find module './components/Dropdown' or its corresponding type declarations.
|
|
85
|
+
src/index.ts(79,15): error TS2307: Cannot find module './components/PasswordInput' or its corresponding type declarations.
|
|
86
|
+
src/index.ts(80,42): error TS2307: Cannot find module './components/PasswordInput' or its corresponding type declarations.
|
|
87
|
+
src/index.ts(91,15): error TS2307: Cannot find module './components/Tag' or its corresponding type declarations.
|
|
88
|
+
src/index.ts(92,32): error TS2307: Cannot find module './components/Tag' or its corresponding type declarations.
|
|
89
|
+
src/index.ts(114,15): error TS2307: Cannot find module './core/ChkRad' or its corresponding type declarations.
|
|
90
|
+
src/index.ts(115,15): error TS2307: Cannot find module './core/ChkRadIcon' or its corresponding type declarations.
|
|
91
|
+
src/index.ts(123,15): error TS2307: Cannot find module './core/DropdownList' or its corresponding type declarations.
|
|
92
|
+
src/index.ts(128,15): error TS2307: Cannot find module './core/FormError' or its corresponding type declarations.
|
|
93
|
+
src/index.ts(129,15): error TS2307: Cannot find module './core/FormLabel' or its corresponding type declarations.
|
|
94
|
+
src/index.ts(134,15): error TS2307: Cannot find module './core/InputPanel' or its corresponding type declarations.
|
|
95
|
+
src/index.ts(147,15): error TS2307: Cannot find module './core/Pagination' or its corresponding type declarations.
|
|
96
|
+
src/index.ts(148,15): error TS2307: Cannot find module './core/PaginationItem' or its corresponding type declarations.
|
|
97
|
+
src/index.ts(154,15): error TS2307: Cannot find module './core/StaticTextInput' or its corresponding type declarations.
|
|
98
|
+
src/index.ts(155,15): error TS2307: Cannot find module './core/Styled' or its corresponding type declarations.
|
|
99
|
+
src/index.ts(158,15): error TS2307: Cannot find module './core/TableActionsCell' or its corresponding type declarations.
|
|
100
|
+
src/index.ts(159,15): error TS2307: Cannot find module './core/TableCell' or its corresponding type declarations.
|
|
101
|
+
src/index.ts(160,15): error TS2307: Cannot find module './core/TableHead' or its corresponding type declarations.
|
|
102
|
+
src/index.ts(161,15): error TS2307: Cannot find module './core/TableRow' or its corresponding type declarations.
|
|
103
|
+
src/index.ts(163,15): error TS2307: Cannot find module './core/TextInputAncillary' or its corresponding type declarations.
|
|
104
|
+
src/index.ts(196,15): error TS2307: Cannot find module './hooks/useVariant' or its corresponding type declarations.
|
|
105
|
+
src/index.ts(197,39): error TS2307: Cannot find module './hooks/useVariant' or its corresponding type declarations.
|
|
106
|
+
src/utility/interfaces.ts(60,15): error TS2304: Cannot find name 'ButtonVariant'.
|
|
107
|
+
src/utility/interfaces.ts(60,31): error TS2304: Cannot find name 'ButtonVariant'.
|
|
108
|
+
src/utility/middleware.ts(6,50): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
|
|
109
|
+
src/utility/prop-types.ts(7,15): error TS2305: Module '"../utility/interfaces"' has no exported member 'ButtonVariant'.
|
|
110
|
+
src/utility/prop-types.ts(7,30): error TS2305: Module '"../utility/interfaces"' has no exported member 'StyleVariant'.
|
|
111
|
+
error Command failed with exit code 2.
|
|
112
|
+
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
$ prettier --write "./src/**/*.tsx" "./src/**/*.ts"
|
|
2
|
+
(node:10718) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/richard/Sites/@sqrzro/sqrzro/node_modules/@sqrzro/prettier-config/package.json' of 'index2.js'. Please either fix that or report it to the module author
|
|
3
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
4
|
+
src/components/Alert/index.tsx 192ms
|
|
5
|
+
src/components/Allow/Allow.spec.tsx 11ms
|
|
6
|
+
src/components/Allow/index.tsx 9ms
|
|
7
|
+
src/components/AppLayout/AppLayout.stories.tsx 8ms
|
|
8
|
+
src/components/AppLayout/index.tsx 10ms
|
|
9
|
+
src/components/AutoSuggest/AutoSuggest.spec.tsx 28ms
|
|
10
|
+
src/components/AutoSuggest/AutoSuggest.story.tsx 9ms
|
|
11
|
+
src/components/AutoSuggest/index.tsx 21ms
|
|
12
|
+
src/components/Button/Button.spec.tsx 13ms
|
|
13
|
+
src/components/Button/Button.stories.tsx 9ms
|
|
14
|
+
src/components/Button/index.tsx 5ms
|
|
15
|
+
src/components/CalendarInput/CalendarInput.spec.tsx 23ms
|
|
16
|
+
src/components/CalendarInput/CalendarInput.story.tsx 8ms
|
|
17
|
+
src/components/CalendarInput/index.tsx 10ms
|
|
18
|
+
src/components/CheckboxList/CheckboxList.spec.tsx 14ms
|
|
19
|
+
src/components/CheckboxList/index.tsx 9ms
|
|
20
|
+
src/components/ConnectedDropdown/index.tsx 8ms
|
|
21
|
+
src/components/ConnectedList/index.tsx 5ms
|
|
22
|
+
src/components/ConnectedTable/index.tsx 5ms
|
|
23
|
+
src/components/ContentBlock/ContentBlock.spec.tsx 5ms
|
|
24
|
+
src/components/ContentBlock/index.tsx 6ms
|
|
25
|
+
src/components/DataPanel/index.tsx 6ms
|
|
26
|
+
src/components/DateInput/DateInput.spec.tsx 12ms
|
|
27
|
+
src/components/DateInput/index.tsx 14ms
|
|
28
|
+
src/components/ErrorMessage/ErrorMessage.spec.tsx 6ms
|
|
29
|
+
src/components/ErrorMessage/index.tsx 7ms
|
|
30
|
+
src/components/Fieldset/Fieldset.spec.tsx 5ms
|
|
31
|
+
src/components/Fieldset/Fieldset.story.tsx 5ms
|
|
32
|
+
src/components/Fieldset/index.tsx 5ms
|
|
33
|
+
src/components/FileInput/FileInput.spec.tsx 8ms
|
|
34
|
+
src/components/FileInput/FileInput.story.tsx 4ms
|
|
35
|
+
src/components/FileInput/index.tsx 8ms
|
|
36
|
+
src/components/FilterLink/FilterLink.spec.tsx 7ms
|
|
37
|
+
src/components/FilterLink/index.tsx 6ms
|
|
38
|
+
src/components/Form/Form.spec.tsx 6ms
|
|
39
|
+
src/components/Form/index.tsx 5ms
|
|
40
|
+
src/components/FormActions/FormActions.spec.tsx 4ms
|
|
41
|
+
src/components/FormActions/FormActions.story.tsx 6ms
|
|
42
|
+
src/components/FormActions/index.tsx 5ms
|
|
43
|
+
src/components/FormField/FormField.spec.tsx 17ms
|
|
44
|
+
src/components/FormField/FormField.stories.tsx 6ms
|
|
45
|
+
src/components/FormField/index.tsx 5ms
|
|
46
|
+
src/components/FormRepeater/FormRepeater.spec.tsx 12ms
|
|
47
|
+
src/components/FormRepeater/index.tsx 9ms
|
|
48
|
+
src/components/ImageInput/ImageInput.spec.tsx 7ms
|
|
49
|
+
src/components/ImageInput/ImageInput.story.tsx 5ms
|
|
50
|
+
src/components/ImageInput/index.tsx 10ms
|
|
51
|
+
src/components/InfoPanel/index.tsx 6ms
|
|
52
|
+
src/components/InfoPanel/InfoPanel.spec.tsx 4ms
|
|
53
|
+
src/components/InfoPanel/InfoPanel.story.tsx 5ms
|
|
54
|
+
src/components/Link/__mocks__/index.tsx 4ms
|
|
55
|
+
src/components/Link/index.tsx 7ms
|
|
56
|
+
src/components/Link/Link.spec.tsx 8ms
|
|
57
|
+
src/components/List/index.tsx 10ms
|
|
58
|
+
src/components/List/List.spec.tsx 38ms
|
|
59
|
+
src/components/List/List.story.tsx 8ms
|
|
60
|
+
src/components/ListActions/index.tsx 4ms
|
|
61
|
+
src/components/ListActions/ListActions.spec.tsx 4ms
|
|
62
|
+
src/components/ListActions/ListActions.story.tsx 5ms
|
|
63
|
+
src/components/LoginForm/index.tsx 7ms
|
|
64
|
+
src/components/LoginForm/LoginForm.spec.tsx 9ms
|
|
65
|
+
src/components/LoginForm/LoginForm.story.tsx 5ms
|
|
66
|
+
src/components/Message/index.tsx 6ms
|
|
67
|
+
src/components/Message/Message.spec.tsx 4ms
|
|
68
|
+
src/components/Modal/index.tsx 6ms
|
|
69
|
+
src/components/ModalActions/index.tsx 7ms
|
|
70
|
+
src/components/ModalActions/ModalActions.spec.tsx 6ms
|
|
71
|
+
src/components/ModalActions/ModalActions.story.tsx 4ms
|
|
72
|
+
src/components/MoneyInput/index.tsx 4ms
|
|
73
|
+
src/components/MoneyInput/MoneyInput.spec.tsx 6ms
|
|
74
|
+
src/components/MoneyInput/MoneyInput.story.tsx 4ms
|
|
75
|
+
src/components/PasswordForm/index.tsx 5ms
|
|
76
|
+
src/components/RadioList/index.tsx 5ms
|
|
77
|
+
src/components/RadioList/RadioList.spec.tsx 6ms
|
|
78
|
+
src/components/RootLayout/index.tsx 7ms
|
|
79
|
+
src/components/SummaryList/index.tsx 5ms
|
|
80
|
+
src/components/SummaryList/SummaryList.spec.tsx 7ms
|
|
81
|
+
src/components/SummaryList/SummaryList.story.tsx 4ms
|
|
82
|
+
src/components/Switch/index.tsx 7ms
|
|
83
|
+
src/components/Switch/Switch.spec.tsx 7ms
|
|
84
|
+
src/components/Table/index.tsx 11ms
|
|
85
|
+
src/components/Table/Table.spec.tsx 12ms
|
|
86
|
+
src/components/Table/Table.story.tsx 11ms
|
|
87
|
+
src/components/TextArea/index.tsx 6ms
|
|
88
|
+
src/components/TextArea/TextArea.spec.tsx 7ms
|
|
89
|
+
src/components/TextInput/index.tsx 4ms
|
|
90
|
+
src/components/TextInput/TextInput.spec.tsx 12ms
|
|
91
|
+
src/components/TextInput/TextInput.stories.tsx 5ms
|
|
92
|
+
src/components/WebsiteInput/index.tsx 4ms
|
|
93
|
+
src/components/WebsiteInput/WebsiteInput.spec.tsx 5ms
|
|
94
|
+
src/components/WeekCalendar/index.tsx 8ms
|
|
95
|
+
src/core/AlertComponent/AlertComponent.spec.tsx 8ms
|
|
96
|
+
src/core/AlertComponent/AlertComponent.story.tsx 6ms
|
|
97
|
+
src/core/AlertComponent/index.tsx 7ms
|
|
98
|
+
src/core/AppHeader/index.tsx 5ms
|
|
99
|
+
src/core/AppLogo/index.tsx 4ms
|
|
100
|
+
src/core/AppLogoImage/index.tsx 3ms
|
|
101
|
+
src/core/AppLogoPlaceholder/index.tsx 5ms
|
|
102
|
+
src/core/Assistive/index.tsx 4ms
|
|
103
|
+
src/core/AuthForm/AuthForm.spec.tsx 7ms
|
|
104
|
+
src/core/AuthForm/index.tsx 7ms
|
|
105
|
+
src/core/Banner/index.tsx 5ms
|
|
106
|
+
src/core/Calendar/index.tsx 10ms
|
|
107
|
+
src/core/CalendarDay/index.tsx 7ms
|
|
108
|
+
src/core/CalendarMonth/index.tsx 10ms
|
|
109
|
+
src/core/CalendarNavigation/index.tsx 7ms
|
|
110
|
+
src/core/CalendarWeek/index.tsx 8ms
|
|
111
|
+
src/core/ChkRadList/index.tsx 7ms
|
|
112
|
+
src/core/CloseButton/CloseButton.spec.tsx 5ms
|
|
113
|
+
src/core/CloseButton/index.tsx 5ms
|
|
114
|
+
src/core/ConfirmModal/ConfirmModal.spec.tsx 7ms
|
|
115
|
+
src/core/ConfirmModal/index.tsx 5ms
|
|
116
|
+
src/core/ConnectedRepeater/index.tsx 16ms
|
|
117
|
+
src/core/ConnectedRepeaterComponent/index.tsx 6ms
|
|
118
|
+
src/core/Container/index.tsx 4ms
|
|
119
|
+
src/core/DataPanelItem/index.tsx 4ms
|
|
120
|
+
src/core/EmptyMessage/EmptyMessage.stories.tsx 4ms
|
|
121
|
+
src/core/EmptyMessage/index.tsx 4ms
|
|
122
|
+
src/core/FilterItem/index.tsx 11ms
|
|
123
|
+
src/core/Filters/Filters.spec.tsx 35ms
|
|
124
|
+
src/core/Filters/index.tsx 11ms
|
|
125
|
+
src/core/FixedActions/FixedActions.spec.tsx 7ms
|
|
126
|
+
src/core/FixedActions/index.tsx 5ms
|
|
127
|
+
src/core/FormLegend/index.tsx 4ms
|
|
128
|
+
src/core/Header/Header.stories.tsx 5ms
|
|
129
|
+
src/core/Header/index.tsx 7ms
|
|
130
|
+
src/core/Icon/Icon.spec.tsx 6ms
|
|
131
|
+
src/core/Icon/index.tsx 6ms
|
|
132
|
+
src/core/IconButton/index.tsx 6ms
|
|
133
|
+
src/core/ListItem/index.tsx 10ms
|
|
134
|
+
src/core/ListItem/ListItem.story.tsx 7ms
|
|
135
|
+
src/core/ListItemAction/index.tsx 4ms
|
|
136
|
+
src/core/ListItemActions/index.tsx 6ms
|
|
137
|
+
src/core/ListItemMetaItem/index.tsx 6ms
|
|
138
|
+
src/core/ListItemTitle/index.tsx 6ms
|
|
139
|
+
src/core/ListItemTitle/ListItemTitle.spec.tsx 6ms
|
|
140
|
+
src/core/Loader/index.tsx 3ms
|
|
141
|
+
src/core/Loader/Loader.stories.tsx 4ms
|
|
142
|
+
src/core/MeActions/index.tsx 6ms
|
|
143
|
+
src/core/MePanel/index.tsx 6ms
|
|
144
|
+
src/core/ModalComponent/index.tsx 5ms
|
|
145
|
+
src/core/ModalComponent/ModalComponent.spec.tsx 6ms
|
|
146
|
+
src/core/Navigation/index.tsx 5ms
|
|
147
|
+
src/core/Navigation/Navigation.spec.tsx 8ms
|
|
148
|
+
src/core/NavigationDivider/index.tsx 3ms
|
|
149
|
+
src/core/NavigationItem/index.tsx 4ms
|
|
150
|
+
src/core/Panel/index.tsx 5ms
|
|
151
|
+
src/core/Panel/Panel.spec.tsx 4ms
|
|
152
|
+
src/core/PasswordForgotForm/index.tsx 6ms
|
|
153
|
+
src/core/PasswordResetForm/index.tsx 6ms
|
|
154
|
+
src/core/RadialProgress/index.tsx 5ms
|
|
155
|
+
src/core/SettingsForm/index.tsx 5ms
|
|
156
|
+
src/core/SummaryListItem/index.tsx 6ms
|
|
157
|
+
src/core/TabItem/index.tsx 4ms
|
|
158
|
+
src/core/Tabs/index.tsx 5ms
|
|
159
|
+
src/core/Tabs/Tabs.spec.tsx 5ms
|
|
160
|
+
src/core/Toast/index.tsx 7ms
|
|
161
|
+
src/core/Toast/Toast.spec.tsx 7ms
|
|
162
|
+
src/core/TwoFactor/index.tsx 7ms
|
|
163
|
+
src/core/TwoFactor/TwoFactor.spec.tsx 12ms
|
|
164
|
+
src/core/TwoFactorAuthenticator/index.tsx 5ms
|
|
165
|
+
src/core/TwoFactorMethodList/index.tsx 6ms
|
|
166
|
+
src/core/TwoFactorSetup/index.tsx 7ms
|
|
167
|
+
src/core/TwoFactorSetupAuthenticator/index.tsx 7ms
|
|
168
|
+
src/core/TwoFactorSetupYubikey/index.tsx 7ms
|
|
169
|
+
src/core/TwoFactorYubikey/index.tsx 4ms
|
|
170
|
+
src/core/WeekCalendarDay/index.tsx 8ms
|
|
171
|
+
src/core/YubikeyInput/index.tsx 5ms
|
|
172
|
+
src/core/YubikeyInput/YubikeyInput.spec.tsx 7ms
|
|
173
|
+
src/filters/BooleanFilter/index.tsx 5ms
|
|
174
|
+
src/filters/DateFilter/index.tsx 5ms
|
|
175
|
+
src/filters/DropdownFilter/index.tsx 8ms
|
|
176
|
+
src/filters/QuickDateFilter/index.tsx 6ms
|
|
177
|
+
src/hooks/useAlert.spec.tsx 8ms
|
|
178
|
+
src/hooks/useModal.spec.tsx 7ms
|
|
179
|
+
src/scenes/Error404Scene.tsx 3ms
|
|
180
|
+
src/services/FilterComponentService.tsx 5ms
|
|
181
|
+
src/utility/icons.tsx 4ms
|
|
182
|
+
src/utility/register.tsx 3ms
|
|
183
|
+
src/filters/interfaces.ts 4ms
|
|
184
|
+
src/hooks/useAlert.ts 6ms
|
|
185
|
+
src/hooks/useConfig.ts 5ms
|
|
186
|
+
src/hooks/useConnectedList.ts 3ms
|
|
187
|
+
src/hooks/useConnectedRepeater.ts 4ms
|
|
188
|
+
src/hooks/useConnectedTable.ts 4ms
|
|
189
|
+
src/hooks/useFilters.ts 4ms
|
|
190
|
+
src/hooks/useLayout.spec.ts 5ms
|
|
191
|
+
src/hooks/useLayout.ts 4ms
|
|
192
|
+
src/hooks/useModal.ts 5ms
|
|
193
|
+
src/hooks/useModalOffset.spec.ts 4ms
|
|
194
|
+
src/hooks/useModalOffset.ts 5ms
|
|
195
|
+
src/hooks/useNavigation.ts 9ms
|
|
196
|
+
src/hooks/useRemote.ts 5ms
|
|
197
|
+
src/index.ts 9ms
|
|
198
|
+
src/services/AppService.ts 4ms
|
|
199
|
+
src/services/ConfigService.ts 6ms
|
|
200
|
+
src/services/ConfirmService.ts 4ms
|
|
201
|
+
src/services/DateService.spec.ts 10ms
|
|
202
|
+
src/services/DateService.ts 14ms
|
|
203
|
+
src/services/DownloadService.spec.ts 5ms
|
|
204
|
+
src/services/DownloadService.ts 4ms
|
|
205
|
+
src/services/FilterService.spec.ts 7ms
|
|
206
|
+
src/services/FilterService.ts 6ms
|
|
207
|
+
src/services/FormatService.spec.ts 7ms
|
|
208
|
+
src/services/FormatService.ts 7ms
|
|
209
|
+
src/services/ToastService.spec.ts 6ms
|
|
210
|
+
src/services/ToastService.ts 5ms
|
|
211
|
+
src/typings.d.ts 4ms
|
|
212
|
+
src/utility/interfaces.ts 10ms
|
|
213
|
+
src/utility/middleware.ts 4ms
|
|
214
|
+
src/utility/MockRouter/index.ts 6ms
|
|
215
|
+
src/utility/prop-types.ts 9ms
|
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
actions?: Action[];
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
icon?: string;
|
|
8
|
-
isOpen?: boolean;
|
|
9
|
-
onClose?: React.MouseEventHandler<HTMLButtonElement>;
|
|
10
|
-
title?: string;
|
|
11
|
-
variant?: StyleVariant;
|
|
12
|
-
width?: string;
|
|
13
|
-
}
|
|
14
|
-
declare function Alert({ actions, children, icon, isOpen, onClose, title, variant, width, }: AlertProps): React.ReactElement | null;
|
|
15
|
-
declare namespace Alert {
|
|
16
|
-
var propTypes: {
|
|
17
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
18
|
-
actions: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
19
|
-
label: PropTypes.Validator<string>;
|
|
20
|
-
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
|
-
}>>[]>;
|
|
22
|
-
title: PropTypes.Requireable<string>;
|
|
23
|
-
variant: PropTypes.Requireable<string>;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export default Alert;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AlertComponentProps } from '../../core/AlertComponent';
|
|
3
|
+
declare function Alert(props: AlertComponentProps): React.ReactElement | null;
|
|
4
|
+
export default Alert;
|
|
@@ -1,54 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import React
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
z-index: 10;
|
|
17
|
-
}
|
|
18
|
-
*/
|
|
19
|
-
function Alert({ actions, children, icon, isOpen, onClose, title, variant, width, }) {
|
|
20
|
-
const ref = useRef(null);
|
|
21
|
-
const { applyVariantClassName } = useVariant(variant);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
if (isOpen) {
|
|
24
|
-
ref.current?.showModal();
|
|
25
|
-
}
|
|
26
|
-
}, [isOpen]);
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
ref.current?.addEventListener('close', (event) => {
|
|
29
|
-
if (onClose) {
|
|
30
|
-
onClose(event);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
}, []);
|
|
34
|
-
return (React.createElement("dialog", { ref: ref, className: "alert" },
|
|
35
|
-
React.createElement("aside", { className: "max-w-sm", role: "alert" },
|
|
36
|
-
React.createElement(Panel, { isPadded: true },
|
|
37
|
-
React.createElement("div", { className: clsx('bg-green-400 rounded-b-md flex flex-col h-24 justify-center w-16 mx-auto -mt-8', applyVariantClassName({ warning: 'bg-amber-400' })), "data-testid": "alert-component-logo" }, icon ? React.createElement(Icon, { icon: icon, size: 40 }) : null),
|
|
38
|
-
title ? (React.createElement("h3", { className: "/*styles.title*/", role: "heading" }, title)) : null,
|
|
39
|
-
React.createElement("div", { key: String(isOpen) }, children),
|
|
40
|
-
React.createElement("footer", { className: "/*styles.actions*/" },
|
|
41
|
-
actions?.map((action) => (React.createElement(Button, { key: action.label, isDisabled: action.isDisabled, onClick: action.onClick, variant: action.variant }, action.label))),
|
|
42
|
-
React.createElement("form", { method: "dialog" },
|
|
43
|
-
React.createElement(Button, { type: "submit", variant: "link" }, "Close")))))));
|
|
44
|
-
}
|
|
45
|
-
Alert.propTypes = {
|
|
46
|
-
children: PropTypes.node.isRequired,
|
|
47
|
-
actions: PropTypes.arrayOf(PropTypes.shape({
|
|
48
|
-
label: PropTypes.string.isRequired,
|
|
49
|
-
onClick: PropTypes.func.isRequired,
|
|
50
|
-
}).isRequired),
|
|
51
|
-
title: PropTypes.string,
|
|
52
|
-
variant: PropTypes.oneOf(['primary', 'secondary', 'tertiary', 'warning', 'danger']),
|
|
53
|
-
};
|
|
54
|
-
export default Alert;
|
|
1
|
+
/* istanbul ignore file */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { createPortal } from 'react-dom';
|
|
4
|
+
import { ifWindow } from '@sqrzro/utility';
|
|
5
|
+
import AlertComponent from '../../core/AlertComponent';
|
|
6
|
+
function Alert(props) {
|
|
7
|
+
return ifWindow(() => {
|
|
8
|
+
const portalElement = document.getElementById('alert-portal');
|
|
9
|
+
if (!portalElement) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
return createPortal(React.createElement(AlertComponent, { ...props }), portalElement);
|
|
13
|
+
}, null);
|
|
14
|
+
}
|
|
15
|
+
export default Alert;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
interface AllowProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
permission?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The `Allow` component is essentially a wrappy that lets a developer display or hide child content
|
|
9
|
-
* based on the permissions a particular user has.
|
|
10
|
-
*
|
|
11
|
-
* By default, the
|
|
12
|
-
*/
|
|
13
|
-
declare function Allow({ children, permission }: AllowProps): React.ReactElement | null;
|
|
14
|
-
declare namespace Allow {
|
|
15
|
-
var propTypes: {
|
|
16
|
-
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
17
|
-
permission: PropTypes.Requireable<string>;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export default Allow;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
interface AllowProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
permission?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The `Allow` component is essentially a wrappy that lets a developer display or hide child content
|
|
9
|
+
* based on the permissions a particular user has.
|
|
10
|
+
*
|
|
11
|
+
* By default, the
|
|
12
|
+
*/
|
|
13
|
+
declare function Allow({ children, permission }: AllowProps): React.ReactElement | null;
|
|
14
|
+
declare namespace Allow {
|
|
15
|
+
var propTypes: {
|
|
16
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
17
|
+
permission: PropTypes.Requireable<string>;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export default Allow;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import React, { Fragment } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
if (!me.permissions || !permission) {
|
|
6
|
-
return true;
|
|
7
|
-
}
|
|
8
|
-
return me.permissions.includes(permission);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The `Allow` component is essentially a wrappy that lets a developer display or hide child content
|
|
12
|
-
* based on the permissions a particular user has.
|
|
13
|
-
*
|
|
14
|
-
* By default, the
|
|
15
|
-
*/
|
|
16
|
-
function Allow({ children, permission }) {
|
|
17
|
-
const { me } =
|
|
18
|
-
if (me && !hasPermission(me, permission)) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
// Use the `Fragment` here to get around TS complaining about FunctionComponent
|
|
22
|
-
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
23
|
-
return React.createElement(Fragment, null, children);
|
|
24
|
-
}
|
|
25
|
-
Allow.propTypes = {
|
|
26
|
-
children: PropTypes.node.isRequired,
|
|
27
|
-
permission: PropTypes.string,
|
|
28
|
-
};
|
|
29
|
-
export default Allow;
|
|
1
|
+
import React, { Fragment } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import useAppConfig from '../../hooks/useAppConfig';
|
|
4
|
+
const hasPermission = (me, permission) => {
|
|
5
|
+
if (!me.permissions || !permission) {
|
|
6
|
+
return true;
|
|
7
|
+
}
|
|
8
|
+
return me.permissions.includes(permission);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The `Allow` component is essentially a wrappy that lets a developer display or hide child content
|
|
12
|
+
* based on the permissions a particular user has.
|
|
13
|
+
*
|
|
14
|
+
* By default, the
|
|
15
|
+
*/
|
|
16
|
+
function Allow({ children, permission }) {
|
|
17
|
+
const { me } = useAppConfig();
|
|
18
|
+
if (me && !hasPermission(me, permission)) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
// Use the `Fragment` here to get around TS complaining about FunctionComponent
|
|
22
|
+
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
23
|
+
return React.createElement(Fragment, null, children);
|
|
24
|
+
}
|
|
25
|
+
Allow.propTypes = {
|
|
26
|
+
children: PropTypes.node.isRequired,
|
|
27
|
+
permission: PropTypes.string,
|
|
28
|
+
};
|
|
29
|
+
export default Allow;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentMeta } from '@storybook/react';
|
|
2
|
-
import AppLayout from './index';
|
|
3
|
-
declare const _default: ComponentMeta<typeof AppLayout>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Basic: any;
|
|
1
|
+
import type { ComponentMeta } from '@storybook/react';
|
|
2
|
+
import AppLayout from './index';
|
|
3
|
+
declare const _default: ComponentMeta<typeof AppLayout>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Basic: any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import AppLayout from './index';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Components/AppLayout',
|
|
5
|
-
component: AppLayout,
|
|
6
|
-
};
|
|
7
|
-
const Template = (args) => (React.createElement(AppLayout, { ...args }));
|
|
8
|
-
export const Basic = Template.bind({});
|
|
9
|
-
Basic.args = {
|
|
10
|
-
children: 'Lorem Ipsum',
|
|
11
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AppLayout from './index';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/AppLayout',
|
|
5
|
+
component: AppLayout,
|
|
6
|
+
};
|
|
7
|
+
const Template = (args) => (React.createElement(AppLayout, { ...args }));
|
|
8
|
+
export const Basic = Template.bind({});
|
|
9
|
+
Basic.args = {
|
|
10
|
+
children: 'Lorem Ipsum',
|
|
11
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface AppLayoutProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
declare function AppLayout({ children }: AppLayoutProps): React.ReactElement;
|
|
6
|
-
export default AppLayout;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface AppLayoutProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
declare function AppLayout({ children }: AppLayoutProps): React.ReactElement;
|
|
6
|
+
export default AppLayout;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import AppHeader from '../../core/AppHeader';
|
|
3
|
-
import Banner from '../../core/Banner';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
import React, { Fragment } from 'react';
|
|
2
|
+
import AppHeader from '../../core/AppHeader';
|
|
3
|
+
import Banner from '../../core/Banner';
|
|
4
|
+
import ConfirmModal from '../../core/ConfirmModal';
|
|
5
|
+
import Toast from '../../core/Toast';
|
|
6
|
+
function AppLayout({ children }) {
|
|
7
|
+
return (React.createElement(Fragment, null,
|
|
8
|
+
React.createElement("div", { className: "flex flex-col min-h-full md:grid md:grid-cols-[22rem_1fr]" },
|
|
9
|
+
React.createElement(Banner, null),
|
|
10
|
+
React.createElement("main", { className: "block" },
|
|
11
|
+
React.createElement(AppHeader, null),
|
|
12
|
+
children)),
|
|
13
|
+
React.createElement("div", { id: "alert-portal" }),
|
|
14
|
+
React.createElement("div", { id: "modal-portal" }),
|
|
15
|
+
React.createElement(ConfirmModal, null),
|
|
16
|
+
React.createElement(Toast, null)));
|
|
17
|
+
}
|
|
18
|
+
export default AppLayout;
|