@team-monolith/cds 1.129.2-alpha.2 → 1.129.3-alpha

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 (128) hide show
  1. package/dist/CdsProvider.js +180 -180
  2. package/dist/components/AlertDialog/AlertDialogTitle.js +15 -15
  3. package/dist/components/Banner.js +28 -28
  4. package/dist/components/FileTypeAlertDialog.js +16 -16
  5. package/dist/components/Pagination.js +22 -22
  6. package/dist/emotion.d.ts +185 -0
  7. package/dist/i18n/i18n.js +14 -14
  8. package/dist/index.d.ts +8 -1
  9. package/dist/node_modules/.pnpm/html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js +78 -0
  10. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/I18nextProvider.js +12 -0
  11. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/Trans.js +26 -0
  12. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/TransWithoutContext.js +174 -0
  13. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/context.js +20 -0
  14. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/defaults.js +24 -0
  15. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/i18nInstance.js +6 -0
  16. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/initReactI18next.js +11 -0
  17. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/unescape.js +25 -0
  18. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js +69 -0
  19. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/utils.js +35 -0
  20. package/dist/patterns/LexicalEditor/Plugins.js +64 -64
  21. package/dist/patterns/LexicalEditor/components/FileSelectInput.js +19 -19
  22. package/dist/patterns/LexicalEditor/components/InsertImageDialog/ImagePreview.js +6 -6
  23. package/dist/patterns/LexicalEditor/components/InsertImageDialog/InsertImageDialog.js +34 -34
  24. package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +14 -14
  25. package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +17 -17
  26. package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +62 -62
  27. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +25 -25
  28. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormPlaceholder.js +7 -7
  29. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +24 -23
  30. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.js +48 -47
  31. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.js +11 -11
  32. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxView.js +15 -15
  33. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +28 -28
  34. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +30 -30
  35. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +35 -35
  36. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormIconAndLabel.js +21 -21
  37. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormLabel.js +15 -15
  38. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormQuestion.js +17 -17
  39. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/SettingForm.js +30 -30
  40. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +20 -20
  41. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +24 -24
  42. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/SettingForm.js +28 -28
  43. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxView.js +11 -11
  44. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +26 -26
  45. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormAllowMultipleAnswers.js +8 -8
  46. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +27 -27
  47. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.js +33 -33
  48. package/dist/patterns/LexicalEditor/nodes/VideoNode/VideoComponent.js +21 -21
  49. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdderPlugin.js +99 -99
  50. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/useContextMenuOptions.js +50 -50
  51. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js +85 -85
  52. package/dist/patterns/LexicalEditor/plugins/DragDropPastePlugin/index.js +13 -13
  53. package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +48 -48
  54. package/dist/patterns/LexicalEditor/plugins/ImagesPlugin/useImageNodeTransform.js +16 -16
  55. package/dist/patterns/ToggleButtonGroup/ToggleButton.js +17 -17
  56. package/package.json +15 -18
  57. package/@types/emotion.d.ts +0 -197
  58. package/node_modules/react-i18next/.eslintrc.json +0 -74
  59. package/node_modules/react-i18next/.husky/pre-commit +0 -1
  60. package/node_modules/react-i18next/.prettierignore +0 -4
  61. package/node_modules/react-i18next/CHANGELOG.md +0 -1433
  62. package/node_modules/react-i18next/LICENSE +0 -22
  63. package/node_modules/react-i18next/README.md +0 -181
  64. package/node_modules/react-i18next/TransWithoutContext.d.mts +0 -1
  65. package/node_modules/react-i18next/TransWithoutContext.d.ts +0 -129
  66. package/node_modules/react-i18next/dist/amd/react-i18next.js +0 -867
  67. package/node_modules/react-i18next/dist/amd/react-i18next.min.js +0 -1
  68. package/node_modules/react-i18next/dist/commonjs/I18nextProvider.js +0 -21
  69. package/node_modules/react-i18next/dist/commonjs/Trans.js +0 -54
  70. package/node_modules/react-i18next/dist/commonjs/TransWithoutContext.js +0 -330
  71. package/node_modules/react-i18next/dist/commonjs/Translation.js +0 -19
  72. package/node_modules/react-i18next/dist/commonjs/context.js +0 -81
  73. package/node_modules/react-i18next/dist/commonjs/defaults.js +0 -26
  74. package/node_modules/react-i18next/dist/commonjs/i18nInstance.js +0 -13
  75. package/node_modules/react-i18next/dist/commonjs/index.js +0 -128
  76. package/node_modules/react-i18next/dist/commonjs/initReactI18next.js +0 -15
  77. package/node_modules/react-i18next/dist/commonjs/unescape.js +0 -32
  78. package/node_modules/react-i18next/dist/commonjs/useSSR.js +0 -34
  79. package/node_modules/react-i18next/dist/commonjs/useTranslation.js +0 -114
  80. package/node_modules/react-i18next/dist/commonjs/utils.js +0 -76
  81. package/node_modules/react-i18next/dist/commonjs/withSSR.js +0 -27
  82. package/node_modules/react-i18next/dist/commonjs/withTranslation.js +0 -39
  83. package/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -15
  84. package/node_modules/react-i18next/dist/es/Trans.js +0 -43
  85. package/node_modules/react-i18next/dist/es/TransWithoutContext.js +0 -321
  86. package/node_modules/react-i18next/dist/es/Translation.js +0 -12
  87. package/node_modules/react-i18next/dist/es/context.js +0 -42
  88. package/node_modules/react-i18next/dist/es/defaults.js +0 -18
  89. package/node_modules/react-i18next/dist/es/i18nInstance.js +0 -5
  90. package/node_modules/react-i18next/dist/es/index.js +0 -18
  91. package/node_modules/react-i18next/dist/es/initReactI18next.js +0 -9
  92. package/node_modules/react-i18next/dist/es/package.json +0 -1
  93. package/node_modules/react-i18next/dist/es/unescape.js +0 -25
  94. package/node_modules/react-i18next/dist/es/useSSR.js +0 -27
  95. package/node_modules/react-i18next/dist/es/useTranslation.js +0 -107
  96. package/node_modules/react-i18next/dist/es/utils.js +0 -62
  97. package/node_modules/react-i18next/dist/es/withSSR.js +0 -20
  98. package/node_modules/react-i18next/dist/es/withTranslation.js +0 -32
  99. package/node_modules/react-i18next/dist/umd/react-i18next.js +0 -871
  100. package/node_modules/react-i18next/dist/umd/react-i18next.min.js +0 -1
  101. package/node_modules/react-i18next/helpers.d.ts +0 -3
  102. package/node_modules/react-i18next/icu.macro.d.mts +0 -1
  103. package/node_modules/react-i18next/icu.macro.d.ts +0 -103
  104. package/node_modules/react-i18next/icu.macro.js +0 -729
  105. package/node_modules/react-i18next/index.d.mts +0 -1
  106. package/node_modules/react-i18next/index.d.ts +0 -209
  107. package/node_modules/react-i18next/initReactI18next.d.mts +0 -1
  108. package/node_modules/react-i18next/initReactI18next.d.ts +0 -3
  109. package/node_modules/react-i18next/lint-staged.config.mjs +0 -4
  110. package/node_modules/react-i18next/package.json +0 -167
  111. package/node_modules/react-i18next/react-i18next.js +0 -871
  112. package/node_modules/react-i18next/react-i18next.min.js +0 -1
  113. package/node_modules/react-i18next/src/I18nextProvider.js +0 -7
  114. package/node_modules/react-i18next/src/Trans.js +0 -45
  115. package/node_modules/react-i18next/src/TransWithoutContext.js +0 -479
  116. package/node_modules/react-i18next/src/Translation.js +0 -14
  117. package/node_modules/react-i18next/src/context.js +0 -54
  118. package/node_modules/react-i18next/src/defaults.js +0 -20
  119. package/node_modules/react-i18next/src/i18nInstance.js +0 -7
  120. package/node_modules/react-i18next/src/index.js +0 -22
  121. package/node_modules/react-i18next/src/initReactI18next.js +0 -11
  122. package/node_modules/react-i18next/src/unescape.js +0 -31
  123. package/node_modules/react-i18next/src/useSSR.js +0 -33
  124. package/node_modules/react-i18next/src/useTranslation.js +0 -171
  125. package/node_modules/react-i18next/src/utils.js +0 -93
  126. package/node_modules/react-i18next/src/withSSR.js +0 -21
  127. package/node_modules/react-i18next/src/withTranslation.js +0 -35
  128. package/node_modules/react-i18next/vitest.workspace.typescript.mts +0 -52
@@ -1,32 +1,32 @@
1
1
  import { HOVER as e } from "../../utils/hover.js";
2
- import { RESET_BUTTON as t } from "../../utils/reset.js";
3
- import { Tooltip as n } from "../../components/Tooltip.js";
4
- import { toggleButtonGroupClasses as r } from "./ToggleButtonGroup.js";
5
- import { css as i } from "@emotion/react";
6
- import a from "@emotion/styled";
7
- import { useTranslation as o } from "react-i18next";
2
+ import { useTranslation as t } from "../../node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js";
3
+ import { RESET_BUTTON as n } from "../../utils/reset.js";
4
+ import { Tooltip as r } from "../../components/Tooltip.js";
5
+ import { toggleButtonGroupClasses as i } from "./ToggleButtonGroup.js";
6
+ import { css as a } from "@emotion/react";
7
+ import o from "@emotion/styled";
8
8
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
9
  //#region src/cds/patterns/ToggleButtonGroup/ToggleButton.tsx
10
10
  function l(e) {
11
- let { datum: t, placement: i, isActive: a, onClick: l } = e, { label: f, onIcon: p, offIcon: m } = t, { t: h } = o();
12
- return a ? /* @__PURE__ */ c(u, {
11
+ let { datum: n, placement: a, isActive: o, onClick: l } = e, { label: f, onIcon: p, offIcon: m } = n, { t: h } = t();
12
+ return o ? /* @__PURE__ */ c(u, {
13
13
  "aria-label": h("{{label}} 선택 해제하기", { label: f }),
14
- className: r.toggleButton.active,
14
+ className: i.toggleButton.active,
15
15
  onClick: l,
16
16
  children: [p, f]
17
- }) : /* @__PURE__ */ s(n, {
18
- placement: i,
17
+ }) : /* @__PURE__ */ s(r, {
18
+ placement: a,
19
19
  text: f,
20
20
  children: /* @__PURE__ */ s(d, {
21
21
  "aria-label": h("{{label}} 선택하기", { label: f }),
22
- className: r.toggleButton.inactive,
22
+ className: i.toggleButton.inactive,
23
23
  onClick: l,
24
24
  children: m
25
25
  })
26
26
  });
27
27
  }
28
- var u = a.button(({ theme: e }) => i`
29
- ${t};
28
+ var u = o.button(({ theme: e }) => a`
29
+ ${n};
30
30
  cursor: pointer;
31
31
  display: flex;
32
32
  padding: 8px 12px;
@@ -48,8 +48,8 @@ var u = a.button(({ theme: e }) => i`
48
48
  width: 24px;
49
49
  height: 24px;
50
50
  }
51
- `), d = a.button`
52
- ${t};
51
+ `), d = o.button`
52
+ ${n};
53
53
  cursor: pointer;
54
54
  display: flex;
55
55
  padding: 8px 12px;
@@ -57,7 +57,7 @@ var u = a.button(({ theme: e }) => i`
57
57
  align-items: center;
58
58
 
59
59
  opacity: 0.6;
60
- ${e(i`
60
+ ${e(a`
61
61
  opacity: 1;
62
62
  `)}
63
63
 
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.129.2-alpha.2",
3
+ "version": "1.129.3-alpha",
4
+ "packageManager": "pnpm@10.33.2",
4
5
  "main": "dist/index.js",
5
6
  "types": "dist/index.d.ts",
6
7
  "sideEffects": false,
@@ -40,7 +41,6 @@
40
41
  "react": "18.2.0",
41
42
  "react-dom": "18.2.0",
42
43
  "react-hook-form": "7.62.0",
43
- "react-i18next": "15.7.3",
44
44
  "react-player": "2.16.1",
45
45
  "remixicon": "4.3.0",
46
46
  "typescript": "5.5.4",
@@ -48,12 +48,18 @@
48
48
  "usehooks-ts": "2.9.1"
49
49
  },
50
50
  "files": [
51
- "dist/**/*",
52
- "@types/**/*"
53
- ],
54
- "bundleDependencies": [
55
- "react-i18next"
51
+ "dist/**/*"
56
52
  ],
53
+ "scripts": {
54
+ "build": "VITE_I18N_UPLOAD=true vite build",
55
+ "build:upload-i18n": "VITE_I18N_UPLOAD=true vite build",
56
+ "clean": "rimraf dist",
57
+ "storybook": "storybook dev -p 6006",
58
+ "build-storybook": "storybook build",
59
+ "test:self-install": "npx -y jiti ./scripts/self-install-test.mts",
60
+ "generate:remixicon-types": "tsx scripts/cds-build/writeRemixiconTypes.ts",
61
+ "lint": "npx eslint src/"
62
+ },
57
63
  "eslintConfig": {
58
64
  "extends": [
59
65
  "react-app",
@@ -102,6 +108,7 @@
102
108
  "pascalcase": "2.0.0",
103
109
  "prettier": "3.1.0",
104
110
  "prop-types": "15.8.1",
111
+ "react-i18next": "15.7.3",
105
112
  "rimraf": "5.0.5",
106
113
  "storybook": "10.3.5",
107
114
  "tsx": "4.20.5",
@@ -109,15 +116,5 @@
109
116
  "unplugin-dts": "1.0.0-beta.6",
110
117
  "vite": "8.0.9",
111
118
  "vite-plugin-svgr": "5.2.0"
112
- },
113
- "scripts": {
114
- "build": "VITE_I18N_UPLOAD=true vite build",
115
- "build:upload-i18n": "VITE_I18N_UPLOAD=true vite build",
116
- "clean": "rimraf dist",
117
- "storybook": "storybook dev -p 6006",
118
- "build-storybook": "storybook build",
119
- "test:self-install": "npx -y jiti ./scripts/self-install-test.mts",
120
- "generate:remixicon-types": "tsx scripts/cds-build/writeRemixiconTypes.ts",
121
- "lint": "npx eslint src/"
122
119
  }
123
- }
120
+ }
@@ -1,197 +0,0 @@
1
- import { SerializedStyles } from "@emotion/react";
2
-
3
- interface CodleFontFamilies {
4
- ui: string;
5
- title: string;
6
- code: string;
7
- }
8
-
9
- interface CodleColors {
10
- background: {
11
- neutralBase: string;
12
- neutralBaseActive: string;
13
- neutralBaseDisabled: string;
14
- neutralAlt: string;
15
- neutralAltActive: string;
16
- neutralAltDisabled: string;
17
- primary: string;
18
- primaryActive: string;
19
- primaryDisabled: string;
20
- secondary: string;
21
- secondaryActive: string;
22
- secondaryDisabled: string;
23
- danger: string;
24
- dangerActive: string;
25
- dangerDisabled: string;
26
- success: string;
27
- successActive: string;
28
- successDisabled: string;
29
- info: string;
30
- infoActive: string;
31
- infoDisabled: string;
32
- warning: string;
33
- warningActive: string;
34
- warningDisabled: string;
35
- inverse: string;
36
- inverseActive: string;
37
- inverseDisabled: string;
38
- };
39
- foreground: {
40
- neutralBase: string;
41
- neutralBaseActive: string;
42
- neutralBaseDisabled: string;
43
- neutralAlt: string;
44
- neutralAltActive: string;
45
- neutralAltDisabled: string;
46
- primary: string;
47
- primaryActive: string;
48
- primaryDisabled: string;
49
- secondary: string;
50
- secondaryActive: string;
51
- secondaryDisabled: string;
52
- danger: string;
53
- dangerActive: string;
54
- dangerDisabled: string;
55
- success: string;
56
- successActive: string;
57
- successDisabled: string;
58
- info: string;
59
- infoActive: string;
60
- infoDisabled: string;
61
- warning: string;
62
- warningActive: string;
63
- warningDisabled: string;
64
- };
65
- container: {
66
- blueContainer: string;
67
- blueOnContainer: string;
68
- orangeContainer: string;
69
- orangeOnContainer: string;
70
- redContainer: string;
71
- redOnContainer: string;
72
- greenContainer: string;
73
- greenOnContainer: string;
74
- tealContainer: string;
75
- tealOnContainer: string;
76
- yellowContainer: string;
77
- yellowOnContainer: string;
78
- obsidianContainer: string;
79
- obsidianOnContainer: string;
80
- marbleContainer: string;
81
- marbleOnContainer: string;
82
- };
83
- brand: {
84
- brandOriginal: string;
85
- brandAlt: string;
86
- brandAccent: string;
87
- brandFaded: string;
88
- pdf: string;
89
- pdfAlt: string;
90
- quiz: string;
91
- quizAlt: string;
92
- python: string;
93
- pythonAlt: string;
94
- embedded: string;
95
- embeddedAlt: string;
96
- board: string;
97
- boardAlt: string;
98
- scratch: string;
99
- scratchAlt: string;
100
- entry: string;
101
- entryAlt: string;
102
- video: string;
103
- videoAlt: string;
104
- worksheet: string;
105
- worksheetAlt: string;
106
- ebook: string;
107
- ebookAlt: string;
108
- makecode: string;
109
- makecodeAlt: string;
110
- codap: string;
111
- codapAlt: string;
112
- aiQuiz: string;
113
- aiQuizAlt: string;
114
- aiSocroom: string;
115
- aiSocroomAlt: string;
116
- aiHtml: string;
117
- aiHtmlAlt: string;
118
- visang: string;
119
-
120
- decorativeRed: string;
121
- decorativePink: string;
122
- decorativeAmber: string;
123
- decorativeCoral: string;
124
- decorativeGrass: string;
125
- decorativeGreen: string;
126
- decorativeBlue: string;
127
- decorativeIndigo: string;
128
- decorativePurple: string;
129
- decorativeBrown: string;
130
- decorativeCopper: string;
131
- decorativeGold: string;
132
- decorativeSilver: string;
133
- decorativeGray: string;
134
- decorativeBlack: string;
135
- decorativeRedContainer: string;
136
- decorativeRedOnContainer: string;
137
- decorativeIndigoContainer: string;
138
- decorativeIndigoOnContainer: string;
139
- decorativeGreenContainer: string;
140
- decorativeGreenOnContainer: string;
141
- decorativePurpleContainer: string;
142
- decorativePurpleOnContainer: string;
143
- decorativeGoldContainer: string;
144
- decorativeGoldOnContainer: string;
145
- decorativeGrayContainer: string;
146
- decorativeGrayOnContainer: string;
147
- decorativeBlackContainer: string;
148
- decorativeBlackOnContainer: string;
149
- };
150
- blanket: {
151
- neutral: string;
152
- neutralLight: string;
153
- neutralHeavy: string;
154
- inverse: string;
155
- inverseLight: string;
156
- inverseHeavy: string;
157
- };
158
- }
159
-
160
- interface CodleTypography {
161
- heading1Regular: SerializedStyles;
162
- heading1Bold: SerializedStyles;
163
- heading2Regular: SerializedStyles;
164
- heading2Bold: SerializedStyles;
165
- heading3Regular: SerializedStyles;
166
- heading3Bold: SerializedStyles;
167
- heading4Regular: SerializedStyles;
168
- heading4Bold: SerializedStyles;
169
- heading5Regular: SerializedStyles;
170
- heading5Bold: SerializedStyles;
171
- heading6Regular: SerializedStyles;
172
- heading6Bold: SerializedStyles;
173
- body1Regular: SerializedStyles;
174
- body1Medium: SerializedStyles;
175
- body1SemiBold: SerializedStyles;
176
- body1Bold: SerializedStyles;
177
- body2Regular: SerializedStyles;
178
- body2Medium: SerializedStyles;
179
- body2SemiBold: SerializedStyles;
180
- body2Bold: SerializedStyles;
181
- body3Regular: SerializedStyles;
182
- body3Medium: SerializedStyles;
183
- body3SemiBold: SerializedStyles;
184
- body3Bold: SerializedStyles;
185
- captionRegular: SerializedStyles;
186
- captionMedium: SerializedStyles;
187
- captionSemiBold: SerializedStyles;
188
- captionBold: SerializedStyles;
189
- }
190
-
191
- declare module "@emotion/react" {
192
- export interface Theme {
193
- color: CodleColors;
194
- fontFamily: CodleFontFamilies;
195
- typography: CodleTypography;
196
- }
197
- }
@@ -1,74 +0,0 @@
1
- {
2
- "extends": ["airbnb", "prettier"],
3
- "parser": "@babel/eslint-parser",
4
- "parserOptions": {
5
- "ecmaVersion": 8,
6
- "ecmaFeatures": {
7
- "experimentalObjectRestSpread": true,
8
- "impliedStrict": true,
9
- "classes": true
10
- }
11
- },
12
- "env": {
13
- "browser": true,
14
- "node": true
15
- },
16
- "reportUnusedDisableDirectives": true,
17
- "rules": {
18
- "no-debugger": 0,
19
- "no-alert": 0,
20
- "no-unused-vars": [1, { "argsIgnorePattern": "res|next|^err" }],
21
- "prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
22
- "prefer-const": ["error", { "destructuring": "all" }],
23
- "arrow-body-style": [2, "as-needed"],
24
- "no-unused-expressions": [2, { "allowTaggedTemplates": true }],
25
- "no-param-reassign": [2, { "props": false }],
26
- "no-console": 0,
27
- "no-use-before-define": 0,
28
- "no-nested-ternary": 0,
29
- "import/prefer-default-export": 0,
30
- "import/no-extraneous-dependencies": 1,
31
- "import/no-named-as-default-member": 1,
32
- "import": 0,
33
- "func-names": 0,
34
- "space-before-function-paren": 0,
35
- "comma-dangle": 0,
36
- "max-len": 0,
37
- "import/extensions": 0,
38
- "no-underscore-dangle": 0,
39
- "consistent-return": 0,
40
- "react/display-name": 1,
41
- "react/no-array-index-key": 0,
42
- "react/jsx-no-useless-fragment": ["error", { "allowExpressions": true }],
43
- "react/react-in-jsx-scope": 0,
44
- "react/prefer-stateless-function": 0,
45
- "react/forbid-prop-types": 0,
46
- "react/no-unescaped-entities": 0,
47
- "react/prop-types": 0,
48
- "jsx-a11y/accessible-emoji": 0,
49
- "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
50
- "react/no-unknown-property": ["error", { "ignore": ["i18nIsDynamicList"] }],
51
- "radix": 0,
52
- "no-shadow": [
53
- 2,
54
- { "hoist": "all", "allow": ["resolve", "reject", "done", "next", "err", "error"] }
55
- ],
56
- "quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
57
- "jsx-a11y/href-no-hash": "off",
58
- "jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
59
- "react/jsx-props-no-spreading": 0
60
- },
61
- "overrides": [
62
- {
63
- "files": ["test/*"],
64
- "extends": ["plugin:testing-library/react", "plugin:jest-dom/recommended"],
65
- "globals": {
66
- "globalThis": false
67
- },
68
- "rules": {
69
- "testing-library/no-node-access": ["error", { "allowContainerFirstChild": true }],
70
- "testing-library/no-manual-cleanup": "off"
71
- }
72
- }
73
- ]
74
- }
@@ -1 +0,0 @@
1
- npm exec lint-staged
@@ -1,4 +0,0 @@
1
- **/dist/
2
- **/react-i18next.js
3
- **/react-i18next.min.js
4
- **/example/