fuse-importer 0.0.6-testing → 0.0.8-testing

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 (159) hide show
  1. package/lib/esm/Importer/common/Spreadsheet/components/inputs/index.d.ts +0 -1
  2. package/lib/esm/Importer/common/Spreadsheet/validation/validators.d.ts +1 -1
  3. package/lib/esm/common/columnsValidations.d.ts +1 -1
  4. package/lib/esm/hooks/index.d.ts +0 -1
  5. package/lib/esm/types.d.ts +2 -2
  6. package/lib/main.js +11 -11
  7. package/package.json +1 -1
  8. package/lib/esm/Importer/ImporterWithContext.js +0 -63
  9. package/lib/esm/Importer/Matcher/EnumFieldsMatchers/EnumFieldMatcher/index.js +0 -68
  10. package/lib/esm/Importer/Matcher/EnumFieldsMatchers/EnumFieldMatcher/tableColumns.js +0 -58
  11. package/lib/esm/Importer/Matcher/EnumFieldsMatchers/EnumFieldMatcherContext.js +0 -21
  12. package/lib/esm/Importer/Matcher/EnumFieldsMatchers/index.js +0 -23
  13. package/lib/esm/Importer/Matcher/HeaderMatcher/index.js +0 -61
  14. package/lib/esm/Importer/Matcher/HeaderMatcher/tableColumns.js +0 -55
  15. package/lib/esm/Importer/Matcher/common/icons/index.js +0 -14
  16. package/lib/esm/Importer/Matcher/common/index.js +0 -39
  17. package/lib/esm/Importer/Matcher/common/types.js +0 -9
  18. package/lib/esm/Importer/Matcher/index.js +0 -22
  19. package/lib/esm/Importer/PreviewFirstTime.js +0 -81
  20. package/lib/esm/Importer/PreviewModeBanner.js +0 -19
  21. package/lib/esm/Importer/Review/AppResponseModal.js +0 -35
  22. package/lib/esm/Importer/Review/ReviewContextProvider.js +0 -315
  23. package/lib/esm/Importer/Review/ReviewWithContext.js +0 -33
  24. package/lib/esm/Importer/Review/index.js +0 -4
  25. package/lib/esm/Importer/Stepper/ConfirmCloseModal.js +0 -24
  26. package/lib/esm/Importer/Stepper/Step.js +0 -19
  27. package/lib/esm/Importer/Stepper/StepIndex.js +0 -27
  28. package/lib/esm/Importer/Stepper/StepperSubmitModal.js +0 -24
  29. package/lib/esm/Importer/Stepper/UnmatchedHeadersModal.js +0 -31
  30. package/lib/esm/Importer/Stepper/common/getEnumFieldValueMatchingsInitialValue.js +0 -33
  31. package/lib/esm/Importer/Stepper/common/icons.js +0 -18
  32. package/lib/esm/Importer/Stepper/index.js +0 -118
  33. package/lib/esm/Importer/TrialModeBanner.js +0 -22
  34. package/lib/esm/Importer/Uploader/DragAndDropImporter/DragAndDropImporter.styles.js +0 -11
  35. package/lib/esm/Importer/Uploader/DragAndDropImporter/ImporterDropzone.js +0 -123
  36. package/lib/esm/Importer/Uploader/DragAndDropImporter/ImporterSectionHeader/ImporterSectionHeader.styles.js +0 -11
  37. package/lib/esm/Importer/Uploader/DragAndDropImporter/ImporterSectionHeader/index.js +0 -44
  38. package/lib/esm/Importer/Uploader/DragAndDropImporter/backgrounds.js +0 -14
  39. package/lib/esm/Importer/Uploader/DragAndDropImporter/index.js +0 -45
  40. package/lib/esm/Importer/Uploader/HeaderButtons.js +0 -28
  41. package/lib/esm/Importer/Uploader/HeadersPreview.js +0 -44
  42. package/lib/esm/Importer/Uploader/UploaderContextProvider.js +0 -27
  43. package/lib/esm/Importer/Uploader/index.js +0 -13
  44. package/lib/esm/Importer/common/AppLoading.js +0 -24
  45. package/lib/esm/Importer/common/Footer.js +0 -17
  46. package/lib/esm/Importer/common/FuseApi.js +0 -48
  47. package/lib/esm/Importer/common/GlobalStyle.js +0 -7
  48. package/lib/esm/Importer/common/ImporterFonts.js +0 -5
  49. package/lib/esm/Importer/common/Spreadsheet/SpreadsheetContextProvider/filterMethods.js +0 -56
  50. package/lib/esm/Importer/common/Spreadsheet/SpreadsheetContextProvider/index.js +0 -176
  51. package/lib/esm/Importer/common/Spreadsheet/SpreadsheetContextProvider/useSpreadsheetFilter.js +0 -45
  52. package/lib/esm/Importer/common/Spreadsheet/SpreadsheetContextProvider/utils.js +0 -14
  53. package/lib/esm/Importer/common/Spreadsheet/common/index.js +0 -63
  54. package/lib/esm/Importer/common/Spreadsheet/common/types.js +0 -5
  55. package/lib/esm/Importer/common/Spreadsheet/components/FieldHeader.js +0 -66
  56. package/lib/esm/Importer/common/Spreadsheet/components/GlobalStyle.js +0 -9
  57. package/lib/esm/Importer/common/Spreadsheet/components/SpreadsheetData.js +0 -110
  58. package/lib/esm/Importer/common/Spreadsheet/components/SpreadsheetRowCheckboxes.js +0 -186
  59. package/lib/esm/Importer/common/Spreadsheet/components/SpreadsheetRowNumbers.js +0 -55
  60. package/lib/esm/Importer/common/Spreadsheet/components/ValidationProgress.js +0 -19
  61. package/lib/esm/Importer/common/Spreadsheet/components/fields/SpeadsheetAutocomplete.js +0 -43
  62. package/lib/esm/Importer/common/Spreadsheet/components/fields/SpreadsheetInput.js +0 -70
  63. package/lib/esm/Importer/common/Spreadsheet/components/fields/index.js +0 -108
  64. package/lib/esm/Importer/common/Spreadsheet/components/inputs/Boolean.js +0 -18
  65. package/lib/esm/Importer/common/Spreadsheet/components/inputs/EmailInput.js +0 -14
  66. package/lib/esm/Importer/common/Spreadsheet/components/inputs/EnumInput.js +0 -30
  67. package/lib/esm/Importer/common/Spreadsheet/components/inputs/FloatInput.js +0 -16
  68. package/lib/esm/Importer/common/Spreadsheet/components/inputs/IntegerInput.js +0 -16
  69. package/lib/esm/Importer/common/Spreadsheet/components/inputs/StringInput.js +0 -14
  70. package/lib/esm/Importer/common/Spreadsheet/components/inputs/index.js +0 -20
  71. package/lib/esm/Importer/common/Spreadsheet/hooks.js +0 -245
  72. package/lib/esm/Importer/common/Spreadsheet/index.js +0 -119
  73. package/lib/esm/Importer/common/Spreadsheet/styles.js +0 -16
  74. package/lib/esm/Importer/common/Spreadsheet/transformation/index.js +0 -47
  75. package/lib/esm/Importer/common/Spreadsheet/transformation/transformators.js +0 -199
  76. package/lib/esm/Importer/common/Spreadsheet/validation/index.js +0 -202
  77. package/lib/esm/Importer/common/Spreadsheet/validation/validators.js +0 -176
  78. package/lib/esm/Importer/common/icons/index.js +0 -18
  79. package/lib/esm/Importer/common/index.js +0 -13
  80. package/lib/esm/Importer/common/theme.js +0 -19
  81. package/lib/esm/Importer/common/utils.js +0 -100
  82. package/lib/esm/Importer/contexts/ImporterContextProvider.js +0 -247
  83. package/lib/esm/Importer/data/index.js +0 -152
  84. package/lib/esm/Importer/index.js +0 -28
  85. package/lib/esm/api/index.js +0 -93
  86. package/lib/esm/api/responseHandlers.js +0 -49
  87. package/lib/esm/common/AppLoadingContextProvider/AppLoadingUI.js +0 -26
  88. package/lib/esm/common/AppLoadingContextProvider/index.js +0 -25
  89. package/lib/esm/common/ConfirmationModal.js +0 -19
  90. package/lib/esm/common/Modal.js +0 -31
  91. package/lib/esm/common/Spinner.js +0 -41
  92. package/lib/esm/common/Table/Pagination/icons.js +0 -42
  93. package/lib/esm/common/Table/Pagination/index.js +0 -32
  94. package/lib/esm/common/Table/TableActions/DeleteSelectedRows.js +0 -50
  95. package/lib/esm/common/Table/TableActions/ExportData.js +0 -23
  96. package/lib/esm/common/Table/TableActions/FilterByErrors/FilterByErrors.js +0 -47
  97. package/lib/esm/common/Table/TableActions/FilterByErrors/FilterByErrors.styles.js +0 -24
  98. package/lib/esm/common/Table/TableActions/FilterByErrors/functions.js +0 -35
  99. package/lib/esm/common/Table/TableActions/FilterByErrors/index.js +0 -1
  100. package/lib/esm/common/Table/TableActions/RowFilters.js +0 -42
  101. package/lib/esm/common/Table/TableActions/SearchRows.js +0 -72
  102. package/lib/esm/common/Table/TableActions/TableActions.js +0 -35
  103. package/lib/esm/common/Table/TableActions/TableActions.styles.js +0 -18
  104. package/lib/esm/common/Table/TableActions/TransformedRecordsCount.js +0 -67
  105. package/lib/esm/common/Table/TableActions/common.js +0 -1
  106. package/lib/esm/common/Table/TableActions/hooks.js +0 -41
  107. package/lib/esm/common/Table/TableActions/icons.js +0 -17
  108. package/lib/esm/common/Table/TableActions/index.js +0 -1
  109. package/lib/esm/common/Table/TableDataProvider.js +0 -127
  110. package/lib/esm/common/Table/TableView/TableHeaders.js +0 -69
  111. package/lib/esm/common/Table/TableView/TableRows/TableRow.js +0 -57
  112. package/lib/esm/common/Table/TableView/TableRows/index.js +0 -48
  113. package/lib/esm/common/Table/TableView/common/index.js +0 -37
  114. package/lib/esm/common/Table/TableView/index.js +0 -132
  115. package/lib/esm/common/Table/TableView/types.js +0 -1
  116. package/lib/esm/common/Table/icons.js +0 -15
  117. package/lib/esm/common/Table/index.js +0 -140
  118. package/lib/esm/common/Table/useReorderRows.js +0 -83
  119. package/lib/esm/common/Toast.js +0 -69
  120. package/lib/esm/common/TooltipProvider.js +0 -57
  121. package/lib/esm/common/buttons.js +0 -97
  122. package/lib/esm/common/columnsTransformations.js +0 -94
  123. package/lib/esm/common/columnsValidations.js +0 -431
  124. package/lib/esm/common/icons/index.js +0 -30
  125. package/lib/esm/common/index.js +0 -45
  126. package/lib/esm/common/inputs/Autocomplete.js +0 -110
  127. package/lib/esm/common/inputs/Checkbox.js +0 -53
  128. package/lib/esm/common/inputs/SelectMenu.js +0 -67
  129. package/lib/esm/common/inputs/TextInput.js +0 -89
  130. package/lib/esm/common/inputs/index.js +0 -5
  131. package/lib/esm/common/inputs/tooltip.js +0 -38
  132. package/lib/esm/common/logo.js +0 -13
  133. package/lib/esm/hooks/index.js +0 -16
  134. package/lib/esm/index.js +0 -218
  135. package/lib/esm/locales/de.js +0 -126
  136. package/lib/esm/locales/en.js +0 -126
  137. package/lib/esm/locales/es.js +0 -126
  138. package/lib/esm/locales/fr.js +0 -126
  139. package/lib/esm/locales/index.js +0 -4
  140. package/lib/esm/styled/fontsURL.js +0 -27
  141. package/lib/esm/styled/index.js +0 -3
  142. package/lib/esm/styled/theme/animations.js +0 -9
  143. package/lib/esm/styled/theme/colorPalette.js +0 -109
  144. package/lib/esm/styled/theme/debugCss.js +0 -16
  145. package/lib/esm/styled/theme/dimensionsCss.js +0 -20
  146. package/lib/esm/styled/theme/fontCss.js +0 -17
  147. package/lib/esm/styled/theme/globalCss.js +0 -26
  148. package/lib/esm/styled/theme/index.js +0 -33
  149. package/lib/esm/styled/theme/layoutCss.js +0 -26
  150. package/lib/esm/styled/theme/mediaQueries.js +0 -4
  151. package/lib/esm/styled/theme/positionCss.js +0 -27
  152. package/lib/esm/styled/theme/textCss.js +0 -18
  153. package/lib/esm/styled/theme/textStyles.js +0 -27
  154. package/lib/esm/styled/themeType.js +0 -6
  155. package/lib/esm/styled/utils.js +0 -17
  156. package/lib/esm/types.js +0 -65
  157. package/lib/esm/utils/hooks/useWindowSize.js +0 -23
  158. package/lib/esm/utils/hooks.js +0 -1
  159. package/lib/esm/utils/index.js +0 -37
@@ -1,16 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { css } from "../themeType";
6
- export var debugCss = {
7
- border: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: solid 1px black;\n "], ["\n border: solid 1px black;\n "]))),
8
- outline: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n outline: solid 1px black;\n "], ["\n outline: solid 1px black;\n "]))),
9
- borderwhite: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border: solid 1px white;\n "], ["\n border: solid 1px white;\n "]))),
10
- borderred: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border: solid 1px red;\n "], ["\n border: solid 1px red;\n "]))),
11
- bgred: css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background: red;\n "], ["\n background: red;\n "]))),
12
- bgblue: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n background: blue;\n "], ["\n background: blue;\n "]))),
13
- opacity5: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n opacity: 0.5;\n "], ["\n opacity: 0.5;\n "]))),
14
- divider: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n height: 1px;\n background: ", ";\n "], ["\n height: 1px;\n background: ", ";\n "])), function (props) { return props.theme.colors.gray300; }),
15
- };
16
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
@@ -1,20 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { getCssValue } from ".";
6
- import { css } from "../themeType";
7
- export var dimensionsCss = {
8
- w50: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 50%;\n "], ["\n width: 50%;\n "]))),
9
- w100: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n "], ["\n ", ";\n "])), function (props) { return (props.w100 ? "width: 100%" : null); }),
10
- h100: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 100%;\n "], ["\n height: 100%;\n "]))),
11
- w: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n /* width in px when w is type number */\n width: ", ";\n "], ["\n /* width in px when w is type number */\n width: ", ";\n "])), function (p) { return getCssValue(p.w); }),
12
- h: css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n /* height in px when h is type number */\n height: ", ";\n "], ["\n /* height in px when h is type number */\n height: ", ";\n "])), function (p) { return getCssValue(p.h); }),
13
- dim: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n "], ["\n height: ", ";\n width: ", ";\n "])), function (p) { return getCssValue(p.dim); }, function (p) { return getCssValue(p.dim); }),
14
- maxw: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n /* maximum width in px */\n ", "\n "], ["\n /* maximum width in px */\n ", "\n "])), function (p) { return (p.maxw ? "max-width: ".concat(p.maxw, "px;") : null); }),
15
- maxh: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n /* maxinum height in px */\n max-height: ", "px;\n "], ["\n /* maxinum height in px */\n max-height: ", "px;\n "])), function (p) { return p.maxh; }),
16
- minw: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n /* minimum width in px */\n ", "\n "], ["\n /* minimum width in px */\n ", "\n "])), function (p) { return (p.minw ? "min-width: ".concat(p.minw, "px;") : null); }),
17
- minh: css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n /* minimum height in px */\n min-height: ", "px;\n "], ["\n /* minimum height in px */\n min-height: ", "px;\n "])), function (p) { return p.minh; }),
18
- br: css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n /* border radius in px */\n border-radius: ", ";\n "], ["\n /* border radius in px */\n border-radius: ", ";\n "])), function (p) { return getCssValue(p.br); }),
19
- };
20
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
@@ -1,17 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { css } from "../themeType";
6
- export var fontCss = {
7
- semiBold: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-weight: 500;\n "], ["\n font-weight: 500;\n "]))),
8
- bold: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-weight: 600;\n "], ["\n font-weight: 600;\n "]))),
9
- extraBold: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-weight: 700;\n "], ["\n font-weight: 700;\n "]))),
10
- fontweight_800: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-weight: 800;\n "], ["\n font-weight: 800;\n "]))),
11
- italic: css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-style: italic;\n "], ["\n font-style: italic;\n "]))),
12
- DM4: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-family: DM Serif Text;\n font-weight: 400;\n "], ["\n font-family: DM Serif Text;\n font-weight: 400;\n "]))),
13
- fs: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n /* font size in px */\n font-size: ", "px;\n "], ["\n /* font size in px */\n font-size: ", "px;\n "])), function (props) { return props.fs; }),
14
- lh: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n /* line height in px */\n line-height: ", "px;\n "], ["\n /* line height in px */\n line-height: ", "px;\n "])), function (props) { return props.lh; }),
15
- ls: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n /* letter spacing in px */\n letter-spacing: ", "px;\n "], ["\n /* letter spacing in px */\n letter-spacing: ", "px;\n "])), function (props) { return props.ls; }),
16
- };
17
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
@@ -1,26 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { css } from "../themeType";
6
- import { colors } from "./colorPalette";
7
- import { mediaQueries } from "./mediaQueries";
8
- export var globalCss = {
9
- clickable: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n user-select: none;\n :hover {\n cursor: pointer;\n opacity: 0.8;\n }\n "], ["\n user-select: none;\n :hover {\n cursor: pointer;\n opacity: 0.8;\n }\n "]))),
10
- disabledWhen: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), function (p) {
11
- return p.disabledWhen && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n pointer-events: none;\n "], ["\n pointer-events: none;\n "])));
12
- }),
13
- selectNone: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n user-select: none;\n "], ["\n user-select: none;\n "]))),
14
- yscroll: css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n overflow-y: scroll;\n "], ["\n overflow-y: scroll;\n "]))),
15
- overflowHidden: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n overflow: hidden;\n "], ["\n overflow: hidden;\n "]))),
16
- rotate180: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n transform: rotate(180deg);\n "], ["\n transform: rotate(180deg);\n "]))),
17
- rotate180If: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n transform: rotate(", ");\n "], ["\n transform: rotate(", ");\n "])), function (props) { return (props.rotate180If ? "180deg" : "0 deg"); }),
18
- forMobile: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n @media all and ", " {\n display: none;\n }\n "], ["\n @media all and ", " {\n display: none;\n }\n "])), mediaQueries.desktop),
19
- forDesktop: css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n @media all and ", " {\n display: none;\n }\n "], ["\n @media all and ", " {\n display: none;\n }\n "])), mediaQueries.mobile),
20
- mcontainer: css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n @media all and ", " {\n padding-left: 6%;\n padding-right: 6%;\n }\n "], ["\n @media all and ", " {\n padding-left: 6%;\n padding-right: 6%;\n }\n "])), mediaQueries.mobile),
21
- c: css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n /* set color based on colors defined in theme */\n color: ", ";\n "], ["\n /* set color based on colors defined in theme */\n color: ", ";\n "])), function (props) { return props.c; }),
22
- bg: css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n /* set background color based on colors defined in theme */\n background-color: ", ";\n "], ["\n /* set background color based on colors defined in theme */\n background-color: ", ";\n "])), function (props) { return props.bg; }),
23
- css: css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", ";\n "], ["\n ", ";\n "])), function (p) { return p.css; }),
24
- scrollbarDark: css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n scrollbar-width: thin;\n scrollbar-color: ", ";\n /* width */\n ::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n }\n\n /* Handle */\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 3px;\n }\n\n /* Track */\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n /* Handle on hover */\n ::-webkit-scrollbar-thumb:hover {\n border-radius: 3px;\n background-color: ", ";\n }\n "], ["\n scrollbar-width: thin;\n scrollbar-color: ", ";\n /* width */\n ::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n }\n\n /* Handle */\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: 3px;\n }\n\n /* Track */\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n\n /* Handle on hover */\n ::-webkit-scrollbar-thumb:hover {\n border-radius: 3px;\n background-color: ", ";\n }\n "])), colors.gray400, colors.gray400, colors.gray400),
25
- };
26
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
@@ -1,33 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import "styled-components";
13
- import { colors } from "./colorPalette";
14
- import { debugCss } from "./debugCss";
15
- import { fontCss } from "./fontCss";
16
- import { dimensionsCss } from "./dimensionsCss";
17
- import { layoutCss } from "./layoutCss";
18
- import { textCss } from "./textCss";
19
- import { textStyles } from "./textStyles";
20
- import { animations } from "./animations";
21
- import { absolutePosition, marginCss, paddingCss } from "./positionCss";
22
- import { globalCss } from "./globalCss";
23
- import { mediaQueries } from "./mediaQueries";
24
- export var getCssValue = function (v) { return v + (typeof v === "number" ? "px" : ""); };
25
- export { colors };
26
- export var appCss = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, animations), dimensionsCss), layoutCss), textCss), textStyles), fontCss), debugCss), globalCss), absolutePosition), marginCss), paddingCss);
27
- export var theme = {
28
- colors: colors,
29
- textStyles: textStyles,
30
- css: appCss,
31
- media: mediaQueries,
32
- };
33
- export default theme;
@@ -1,26 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { css } from "../themeType";
6
- export var layoutCss = {
7
- dflex: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n "], ["\n display: flex;\n "]))),
8
- centered: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n "], ["\n display: flex;\n align-items: center;\n justify-content: center;\n "]))),
9
- flexColumn: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n "], ["\n display: flex;\n flex-direction: column;\n "]))),
10
- flexColumnCentered: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n "], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n "]))),
11
- flexRowReverse: css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n flex-direction: row-reverse;\n "], ["\n display: flex;\n flex-direction: row-reverse;\n "]))),
12
- spaceBetween: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n "], ["\n display: flex;\n justify-content: space-between;\n "]))),
13
- spaceBetweenAligned: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n "], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n "]))),
14
- spaceAround: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n justify-content: space-around;\n "], ["\n display: flex;\n justify-content: space-around;\n "]))),
15
- justifyEnd: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-end;\n "], ["\n display: flex;\n justify-content: flex-end;\n "]))),
16
- justifyCenter: css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n "], ["\n display: flex;\n justify-content: center;\n "]))),
17
- alignEnd: css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n align-items: flex-end;\n "], ["\n display: flex;\n align-items: flex-end;\n "]))),
18
- alignStart: css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n align-items: flex-start;\n "], ["\n display: flex;\n align-items: flex-start;\n "]))),
19
- alignCenter: css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n "], ["\n display: flex;\n align-items: center;\n "]))),
20
- grow: css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: flex;\n flex-grow: 1;\n "], ["\n display: flex;\n flex-grow: 1;\n "]))),
21
- pAbsolute: css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n position: absolute;\n "], ["\n position: absolute;\n "]))),
22
- pRelative: css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n position: relative;\n "], ["\n position: relative;\n "]))),
23
- pSticky: css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n z-index: 100;\n "], ["\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n z-index: 100;\n "]))),
24
- floatLeft: css(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n float: left;\n "], ["\n float: left;\n "]))),
25
- };
26
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18;
@@ -1,4 +0,0 @@
1
- export var mediaQueries = {
2
- desktop: "(min-width: 1051px)",
3
- mobile: "(max-width: 1050px)",
4
- };
@@ -1,27 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { getCssValue } from ".";
6
- import { css } from "../themeType";
7
- export var absolutePosition = {
8
- top: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n top: ", ";\n "], ["\n top: ", ";\n "])), function (p) { return getCssValue(p.top); }),
9
- bottom: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n bottom: ", ";\n "], ["\n bottom: ", ";\n "])), function (p) { return getCssValue(p.bottom); }),
10
- left: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n left: ", ";\n "], ["\n left: ", ";\n "])), function (p) { return getCssValue(p.left); }),
11
- right: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n right: ", ";\n "], ["\n right: ", ";\n "])), function (p) { return getCssValue(p.right); }),
12
- };
13
- export var marginCss = {
14
- mt: css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-top: ", ";\n "], ["\n margin-top: ", ";\n "])), function (p) { return getCssValue(p.mt); }),
15
- mb: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin-bottom: ", ";\n "], ["\n margin-bottom: ", ";\n "])), function (p) { return getCssValue(p.mb); }),
16
- ml: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-left: ", ";\n "], ["\n margin-left: ", ";\n "])), function (p) { return getCssValue(p.ml); }),
17
- mr: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n margin-right: ", ";\n "], ["\n margin-right: ", ";\n "])), function (p) { return getCssValue(p.mr); }),
18
- m: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n margin: ", ";\n "], ["\n margin: ", ";\n "])), function (p) { return getCssValue(p.m); }),
19
- };
20
- export var paddingCss = {
21
- pt: css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n padding-top: ", ";\n "], ["\n padding-top: ", ";\n "])), function (p) { return getCssValue(p.pt); }),
22
- pb: css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n padding-bottom: ", ";\n "], ["\n padding-bottom: ", ";\n "])), function (p) { return getCssValue(p.pb); }),
23
- pl: css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n padding-left: ", ";\n "], ["\n padding-left: ", ";\n "])), function (p) { return getCssValue(p.pl); }),
24
- pr: css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n padding-right: ", ";\n "], ["\n padding-right: ", ";\n "])), function (p) { return getCssValue(p.pr); }),
25
- p: css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n padding: ", ";\n "], ["\n padding: ", ";\n "])), function (p) { return getCssValue(p.p); }),
26
- };
27
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14;
@@ -1,18 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { css } from "../themeType";
6
- export var textCss = {
7
- truncateText: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: hidden;\n word-wrap: break-word;\n overflow-wrap: break-word;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n -webkit-hyphens: auto;\n -moz-hyphens: auto;\n hyphens: auto;\n "], ["\n overflow: hidden;\n word-wrap: break-word;\n overflow-wrap: break-word;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n -webkit-hyphens: auto;\n -moz-hyphens: auto;\n hyphens: auto;\n "]))),
8
- dInline: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: inline-block;\n "], ["\n display: inline-block;\n "]))),
9
- flexWrap: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n "], ["\n display: flex;\n flex-wrap: wrap;\n "]))),
10
- underline: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-decoration: underline;\n "], ["\n text-decoration: underline;\n "]))),
11
- textAlignCenter: css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n text-align: center;\n "], ["\n text-align: center;\n "]))),
12
- textAlignRight: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n text-align: right;\n "], ["\n text-align: right;\n "]))),
13
- textAlignLeft: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n text-align: left;\n "], ["\n text-align: left;\n "]))),
14
- uppercase: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n text-transform: uppercase;\n "], ["\n text-transform: uppercase;\n "]))),
15
- capitalize: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n text-transform: capitalize;\n "], ["\n text-transform: capitalize;\n "]))),
16
- lowercase: css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n text-transform: lowercase;\n "], ["\n text-transform: lowercase;\n "]))),
17
- };
18
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
@@ -1,27 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { css } from "../themeType";
6
- export var textStyles = {
7
- h1: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: DM Serif Display;\n font-weight: 400;\n font-style: normal;\n font-size: 48px;\n line-height: 72px;\n "], ["\n font-family: DM Serif Display;\n font-weight: 400;\n font-style: normal;\n font-size: 48px;\n line-height: 72px;\n "]))),
8
- h2: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 28px;\n line-height: 36px;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 28px;\n line-height: 36px;\n "]))),
9
- h3: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 40px;\n line-height: 48px;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 40px;\n line-height: 48px;\n "]))),
10
- h4: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 400;\n font-style: normal;\n font-size: 32px;\n line-height: 48px;\n "], ["\n font-family: DM Sans;\n font-weight: 400;\n font-style: normal;\n font-size: 32px;\n line-height: 48px;\n "]))),
11
- h5: css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 24px;\n line-height: 36px;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 24px;\n line-height: 36px;\n "]))),
12
- h6: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 20px;\n line-height: 32px;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 20px;\n line-height: 32px;\n "]))),
13
- subtitle: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 500;\n font-style: normal;\n font-size: 18px;\n line-height: 24px;\n "], ["\n font-family: DM Sans;\n font-weight: 500;\n font-style: normal;\n font-size: 18px;\n line-height: 24px;\n "]))),
14
- body1: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 400;\n font-style: normal;\n font-size: 16px;\n line-height: 28px;\n "], ["\n font-family: DM Sans;\n font-weight: 400;\n font-style: normal;\n font-size: 16px;\n line-height: 28px;\n "]))),
15
- body2: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 16px;\n line-height: 28px;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 16px;\n line-height: 28px;\n "]))),
16
- body3: css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n "], ["\n font-family: DM Sans;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n "]))),
17
- body4: css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 14px;\n line-height: 20px;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 14px;\n line-height: 20px;\n "]))),
18
- label1: css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 14px;\n line-height: 16px;\n letter-spacing: 0.5px;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 14px;\n line-height: 16px;\n letter-spacing: 0.5px;\n "]))),
19
- label2: css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 1px;\n text-transform: uppercase;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 1px;\n text-transform: uppercase;\n "]))),
20
- label3: css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 10px;\n line-height: 16px;\n letter-spacing: 1px;\n text-transform: uppercase;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 10px;\n line-height: 16px;\n letter-spacing: 1px;\n text-transform: uppercase;\n "]))),
21
- helperText: css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 400;\n font-style: normal;\n font-size: 12px;\n line-height: 18px;\n "], ["\n font-family: DM Sans;\n font-weight: 400;\n font-style: normal;\n font-size: 12px;\n line-height: 18px;\n "]))),
22
- buttonText: css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 16px;\n line-height: 24px;\n letter-spacing: 0.02em;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 16px;\n line-height: 24px;\n letter-spacing: 0.02em;\n "]))),
23
- buttonTextSmall: css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 14px;\n line-height: 24px;\n letter-spacing: 0.02em;\n "], ["\n font-family: DM Sans;\n font-weight: 700;\n font-style: normal;\n font-size: 14px;\n line-height: 24px;\n letter-spacing: 0.02em;\n "]))),
24
- link: css(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n font-family: DM Sans;\n font-weight: 500;\n font-style: normal;\n font-size: 14px;\n line-height: 24px;\n user-select: none;\n :hover {\n cursor: pointer;\n text-decoration-line: underline;\n opacity: 0.8;\n }\n "], ["\n font-family: DM Sans;\n font-weight: 500;\n font-style: normal;\n font-size: 14px;\n line-height: 24px;\n user-select: none;\n :hover {\n cursor: pointer;\n text-decoration-line: underline;\n opacity: 0.8;\n }\n "]))),
25
- stepper: css(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n font-family: \"Montserrat\";\n font-style: normal;\n font-weight: 700;\n font-size: 14px;\n line-height: 16px;\n "], ["\n font-family: \"Montserrat\";\n font-style: normal;\n font-weight: 700;\n font-size: 14px;\n line-height: 16px;\n "]))),
26
- };
27
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
@@ -1,6 +0,0 @@
1
- import { css as cssBase } from "styled-components";
2
- // prevents circular definition since:
3
- // - type for `css` is ThemedCssFunction<DefaultTheme>
4
- // - theme will be used to define DefaultTheme
5
- export var css = cssBase;
6
- // `css` shouldn't use ${(props) => props.theme.css.};
@@ -1,17 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import styled, { css } from "styled-components";
6
- export var themeProps = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), function (props) {
7
- return Object.keys(props)
8
- .map(function (p) { return props.theme.css[p]; })
9
- .filter(function (c) { return c; });
10
- });
11
- export var Div = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), themeProps);
12
- export var HTMLButton = styled.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), themeProps);
13
- export var Span = styled.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), themeProps);
14
- export var Label = styled.label(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), themeProps);
15
- export var P = styled.p(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), themeProps);
16
- export var BaseButton = styled.button(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n outline: none;\n margin: none;\n padding: none;\n background: transparent;\n border: none;\n"], ["\n ", ";\n outline: none;\n margin: none;\n padding: none;\n background: transparent;\n border: none;\n"])), themeProps);
17
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
package/lib/esm/types.js DELETED
@@ -1,65 +0,0 @@
1
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
- if (ar || !(i in from)) {
4
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
- ar[i] = from[i];
6
- }
7
- }
8
- return to.concat(ar || Array.prototype.slice.call(from));
9
- };
10
- var EnvironmentTypes = [
11
- "local",
12
- "development",
13
- "production",
14
- "test",
15
- ];
16
- export var FieldTypes;
17
- (function (FieldTypes) {
18
- FieldTypes["boolean"] = "boolean";
19
- FieldTypes["integer"] = "integer";
20
- FieldTypes["float"] = "float";
21
- FieldTypes["string"] = "string";
22
- FieldTypes["email"] = "email";
23
- FieldTypes["enum"] = "enum";
24
- FieldTypes["url"] = "url";
25
- FieldTypes["date"] = "date";
26
- FieldTypes["datetime"] = "datetime";
27
- FieldTypes["time"] = "time";
28
- })(FieldTypes || (FieldTypes = {}));
29
- export var validationTypesBase = [
30
- "cannot_contain",
31
- "contain",
32
- "max_length",
33
- "min_length",
34
- "length_exactly",
35
- "unique_case_sensitive",
36
- "unique_case_insensitive",
37
- "regex",
38
- "integer",
39
- "less_than",
40
- "greater_than",
41
- "even",
42
- "odd",
43
- "float",
44
- "email",
45
- "url",
46
- "boolean",
47
- "before_date",
48
- "after_date",
49
- ];
50
- export var mutableValidationTypes = __spreadArray([], validationTypesBase, true);
51
- export var transformationTypesBase = [
52
- "sentence_case",
53
- "capitalize",
54
- "uppercase",
55
- "lowercase",
56
- "trim_whitespace",
57
- "autoformat",
58
- "prefix",
59
- "number_of_decimals",
60
- "round",
61
- "floor",
62
- "ceiling",
63
- "autodetect",
64
- ];
65
- export var mutableTransformationTypes = __spreadArray([], transformationTypesBase, true);
@@ -1,23 +0,0 @@
1
- import { useEffect, useState } from "react";
2
- var useWindowDimensions = function () {
3
- var _a = useState({
4
- width: undefined,
5
- height: undefined,
6
- }), windowDimensions = _a[0], setWindowDimensions = _a[1];
7
- useEffect(function () {
8
- var handleResize = function () {
9
- setWindowDimensions({
10
- width: window.innerWidth,
11
- height: window.innerHeight,
12
- });
13
- };
14
- handleResize();
15
- window.addEventListener("resize", handleResize);
16
- return function () { return window.removeEventListener("resize", handleResize); };
17
- }, []);
18
- var isOnSmallScreens = windowDimensions.width
19
- ? windowDimensions.width <= 1050
20
- : false;
21
- return { windowDimensions: windowDimensions, isOnSmallScreens: isOnSmallScreens };
22
- };
23
- export default useWindowDimensions;
@@ -1 +0,0 @@
1
- export * from "./hooks/useWindowSize";
@@ -1,37 +0,0 @@
1
- export var isString = function (variable) {
2
- return typeof variable === "string" || variable instanceof String;
3
- };
4
- export var sleep = function (n) {
5
- return new Promise(function (resolve) { return setTimeout(resolve, n); });
6
- };
7
- export var addLinkToHead = function (document, head, href, rel, crossOrigin) {
8
- if (crossOrigin === void 0) { crossOrigin = ""; }
9
- var link = document.createElement("link");
10
- link.href = href;
11
- link.rel = rel;
12
- link.crossOrigin = crossOrigin;
13
- head.appendChild(link);
14
- };
15
- // Add dynamic columns
16
- export var addValidation = function (value, label) {
17
- return {
18
- validation_type: value,
19
- message: label,
20
- };
21
- };
22
- export var getDefaultValidations = function (columnType) {
23
- switch (columnType) {
24
- case "email":
25
- return [addValidation("email", "Must be an email")];
26
- case "url":
27
- return [addValidation("url", "Must be a URL")];
28
- case "boolean":
29
- return [addValidation("boolean", "Must be True or False")];
30
- case "integer":
31
- return [addValidation("integer", "Must be an integer")];
32
- case "float":
33
- return [addValidation("float", "Must be a float")];
34
- default:
35
- return [];
36
- }
37
- };