ouisys-component-library 0.0.32 → 2.0.1

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 (145) hide show
  1. package/README.md +54 -27
  2. package/dist/Button.js +2 -0
  3. package/dist/Button.js.map +1 -0
  4. package/dist/ChainRedirect.js +2 -0
  5. package/dist/ChainRedirect.js.map +1 -0
  6. package/dist/Disclaimers.js +2 -0
  7. package/dist/Disclaimers.js.map +1 -0
  8. package/dist/ExtraDisclaimers.js +2 -0
  9. package/dist/ExtraDisclaimers.js.map +1 -0
  10. package/dist/Features.js +2 -0
  11. package/dist/Features.js.map +1 -0
  12. package/dist/Input.js +2 -0
  13. package/dist/Input.js.map +1 -0
  14. package/dist/Intl-2eab59e1.js +2 -0
  15. package/dist/Intl-2eab59e1.js.map +1 -0
  16. package/dist/IntlProvider.js +2 -0
  17. package/dist/IntlProvider.js.map +1 -0
  18. package/dist/LanguageSwitcher.js +2 -0
  19. package/dist/LanguageSwitcher.js.map +1 -0
  20. package/dist/Link.js +2 -0
  21. package/dist/Link.js.map +1 -0
  22. package/dist/MOLink-5e2f5f82.js +2 -0
  23. package/dist/MOLink-5e2f5f82.js.map +1 -0
  24. package/dist/MOLink.js +2 -0
  25. package/dist/MOLink.js.map +1 -0
  26. package/dist/PINEntry.js +2 -0
  27. package/dist/PINEntry.js.map +1 -0
  28. package/dist/PhoneEntry.js +2 -0
  29. package/dist/PhoneEntry.js.map +1 -0
  30. package/dist/PricePoint.js +2 -0
  31. package/dist/PricePoint.js.map +1 -0
  32. package/dist/Select.js +2 -0
  33. package/dist/Select.js.map +1 -0
  34. package/dist/Showcase.js +2 -0
  35. package/dist/Showcase.js.map +1 -0
  36. package/dist/TopLegals.js +2 -0
  37. package/dist/TopLegals.js.map +1 -0
  38. package/dist/Translate.js +2 -0
  39. package/dist/Translate.js.map +1 -0
  40. package/dist/defineMessages.js +2 -0
  41. package/dist/defineMessages.js.map +1 -0
  42. package/dist/formatSMSLink.js +2 -0
  43. package/dist/formatSMSLink.js.map +1 -0
  44. package/dist/injectIntl.js +2 -0
  45. package/dist/injectIntl.js.map +1 -0
  46. package/dist/style-inject.es-1f59c1d0.js +2 -0
  47. package/dist/style-inject.es-1f59c1d0.js.map +1 -0
  48. package/dist/types/Button/Button.d.ts +5 -0
  49. package/dist/types/Button/Button.types.d.ts +12 -0
  50. package/{build/src → dist/types}/ChainRedirect/ChainRedirect.d.ts +5 -3
  51. package/dist/types/ChainRedirect/ChainRedirect.types.d.ts +10 -0
  52. package/dist/types/Disclaimers/Disclaimers.d.ts +5 -0
  53. package/{build/src → dist/types}/Disclaimers/Disclaimers.types.d.ts +38 -36
  54. package/dist/types/ExtraDisclaimers/ExtraDisclaimers.d.ts +5 -0
  55. package/dist/types/ExtraDisclaimers/ExtraDisclaimers.types.d.ts +11 -0
  56. package/dist/types/Features/Features.d.ts +5 -0
  57. package/dist/types/Features/Features.types.d.ts +16 -0
  58. package/dist/types/Input/Input.d.ts +5 -0
  59. package/{build/src → dist/types}/Input/Input.types.d.ts +46 -45
  60. package/dist/types/Intl/Intl.d.ts +21 -0
  61. package/dist/types/LanguageSwitcher/LanguageSwitcher.d.ts +5 -0
  62. package/{build/src → dist/types}/LanguageSwitcher/LanguageSwitcher.types.d.ts +16 -13
  63. package/dist/types/Link/Link.d.ts +5 -0
  64. package/{build/src → dist/types}/Link/Link.types.d.ts +13 -11
  65. package/dist/types/MOLink/MOLink.d.ts +7 -0
  66. package/{build/src → dist/types}/MOLink/MOLink.types.d.ts +11 -10
  67. package/{build/src → dist/types}/PINEntry/PINEntry.d.ts +5 -3
  68. package/{build/src → dist/types}/PINEntry/PINEntry.types.d.ts +25 -23
  69. package/{build/src → dist/types}/PhoneEntry/PhoneEntry.d.ts +5 -3
  70. package/{build/src → dist/types}/PhoneEntry/PhoneEntry.types.d.ts +39 -38
  71. package/dist/types/PricePoint/PricePoint.d.ts +5 -0
  72. package/{build/src → dist/types}/PricePoint/PricePoint.types.d.ts +12 -9
  73. package/dist/types/Select/Select.d.ts +5 -0
  74. package/{build/src → dist/types}/Select/Select.types.d.ts +31 -30
  75. package/dist/types/Showcase/Showcase.d.ts +5 -0
  76. package/dist/types/Showcase/Showcase.types.d.ts +15 -0
  77. package/dist/types/TopLegals/TopLegals.d.ts +5 -0
  78. package/dist/types/TopLegals/TopLegals.types.d.ts +11 -0
  79. package/dist/types/components/button/Button.d.ts +2 -0
  80. package/dist/types/components/chainredirect/ChainRedirect.d.ts +2 -0
  81. package/dist/types/components/disclaimers/Disclaimers.d.ts +2 -0
  82. package/dist/types/components/extradisclaimers/ExtraDisclaimers.d.ts +2 -0
  83. package/dist/types/components/features/Features.d.ts +2 -0
  84. package/dist/types/components/input/Input.d.ts +2 -0
  85. package/dist/types/components/intlprovider/IntlProvider.d.ts +1 -0
  86. package/dist/types/components/languageswitcher/LanguageSwitcher.d.ts +2 -0
  87. package/dist/types/components/link/Link.d.ts +2 -0
  88. package/dist/types/components/molink/MOLink.d.ts +2 -0
  89. package/dist/types/components/phoneentry/PhoneEntry.d.ts +2 -0
  90. package/dist/types/components/pinentry/PINEntry.d.ts +2 -0
  91. package/dist/types/components/pricepoint/PricePoint.d.ts +2 -0
  92. package/dist/types/components/select/Select.d.ts +2 -0
  93. package/dist/types/components/showcase/Showcase.d.ts +2 -0
  94. package/dist/types/components/toplegals/TopLegals.d.ts +2 -0
  95. package/dist/types/components/translate/Translate.d.ts +1 -0
  96. package/{build/src → dist/types}/custom-types.d.ts +10 -8
  97. package/dist/types/utilities/definemessages/defineMessages.d.ts +1 -0
  98. package/dist/types/utilities/formatsmslink/formatSMSLink.d.ts +1 -0
  99. package/dist/types/utilities/injectintl/injectIntl.d.ts +1 -0
  100. package/package.json +136 -50
  101. package/build/index.d.ts +0 -291
  102. package/build/index.js +0 -2
  103. package/build/index.js.map +0 -1
  104. package/build/index.mjs +0 -2
  105. package/build/index.mjs.map +0 -1
  106. package/build/src/Button/Button.d.ts +0 -2
  107. package/build/src/Button/Button.stories.d.ts +0 -41
  108. package/build/src/Button/Button.test.d.ts +0 -1
  109. package/build/src/Button/Button.types.d.ts +0 -10
  110. package/build/src/ChainRedirect/ChainRedirect.stories.d.ts +0 -32
  111. package/build/src/ChainRedirect/ChainRedirect.types.d.ts +0 -7
  112. package/build/src/Disclaimers/Disclaimers.d.ts +0 -2
  113. package/build/src/Disclaimers/Disclaimers.stories.d.ts +0 -41
  114. package/build/src/Disclaimers/Disclaimers.test.d.ts +0 -1
  115. package/build/src/ExtraDisclaimers/ExtraDisclaimers.d.ts +0 -2
  116. package/build/src/ExtraDisclaimers/ExtraDisclaimers.stories.d.ts +0 -41
  117. package/build/src/ExtraDisclaimers/ExtraDisclaimers.test.d.ts +0 -1
  118. package/build/src/ExtraDisclaimers/ExtraDisclaimers.types.d.ts +0 -8
  119. package/build/src/Input/Input.d.ts +0 -2
  120. package/build/src/Input/Input.stories.d.ts +0 -5
  121. package/build/src/Intl/Intl.d.ts +0 -18
  122. package/build/src/LanguageSwitcher/LanguageSwitcher.d.ts +0 -2
  123. package/build/src/LanguageSwitcher/LanguageSwitcher.stories.d.ts +0 -38
  124. package/build/src/LanguageSwitcher/LanguageSwitcher.test.d.ts +0 -1
  125. package/build/src/Link/Link.d.ts +0 -2
  126. package/build/src/Link/Link.stories.d.ts +0 -51
  127. package/build/src/Link/Link.test.d.ts +0 -1
  128. package/build/src/MOLink/MOLink.d.ts +0 -4
  129. package/build/src/MOLink/MOLink.stories.d.ts +0 -32
  130. package/build/src/MOLink/MOLink.test.d.ts +0 -1
  131. package/build/src/PINEntry/PINEntry.stories.d.ts +0 -54
  132. package/build/src/PhoneEntry/PhoneEntry.stories.d.ts +0 -59
  133. package/build/src/PricePoint/PricePoint.d.ts +0 -2
  134. package/build/src/PricePoint/PricePoint.stories.d.ts +0 -41
  135. package/build/src/PricePoint/PricePoint.test.d.ts +0 -1
  136. package/build/src/Select/Select.d.ts +0 -2
  137. package/build/src/Select/Select.stories.d.ts +0 -5
  138. package/build/src/TopLegals/TopLegals.d.ts +0 -2
  139. package/build/src/TopLegals/TopLegals.stories.d.ts +0 -41
  140. package/build/src/TopLegals/TopLegals.test.d.ts +0 -1
  141. package/build/src/TopLegals/TopLegals.types.d.ts +0 -8
  142. package/build/src/index.d.ts +0 -20
  143. package/build/src/utils/parsePhoneNumber.d.ts +0 -90
  144. package/build/src/utils/searchToObject.d.ts +0 -2
  145. package/build/src/utils/test/index.d.ts +0 -14
@@ -1,30 +1,31 @@
1
- /// <reference types="react" />
2
- export type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
3
- value: string;
4
- label?: string;
5
- onChange: React.ChangeEventHandler<HTMLSelectElement> | undefined;
6
- type?: SelectType;
7
- placeholder?: string;
8
- error?: string;
9
- dataQaId?: string;
10
- disabled?: boolean;
11
- readOnly?: boolean;
12
- required?: boolean;
13
- maxLength?: number;
14
- minLength?: number;
15
- wrapperClassName?: string;
16
- options?: SelectOption[];
17
- onBlur?: React.ChangeEventHandler<HTMLSelectElement> | undefined;
18
- firstOptionText?: string;
19
- };
20
- export interface SelectOption {
21
- value: string;
22
- label: string;
23
- }
24
- export declare enum SelectType {
25
- Country = "country"
26
- }
27
- export declare enum InputSize {
28
- Medium = "Medium",
29
- Large = "Large"
30
- }
1
+ type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
2
+ value: string;
3
+ label?: string;
4
+ onChange: React.ChangeEventHandler<HTMLSelectElement> | undefined;
5
+ type?: SelectType;
6
+ placeholder?: string;
7
+ error?: string;
8
+ dataQaId?: string;
9
+ disabled?: boolean;
10
+ readOnly?: boolean;
11
+ required?: boolean;
12
+ maxLength?: number;
13
+ minLength?: number;
14
+ wrapperClassName?: string;
15
+ options?: SelectOption[];
16
+ onBlur?: React.ChangeEventHandler<HTMLSelectElement> | undefined;
17
+ firstOptionText?: string;
18
+ };
19
+ interface SelectOption {
20
+ value: string;
21
+ label: string;
22
+ }
23
+ declare enum SelectType {
24
+ Country = "country"
25
+ }
26
+ declare enum InputSize {
27
+ Medium = "Medium",
28
+ Large = "Large"
29
+ }
30
+
31
+ export { InputSize, SelectOption, SelectProps, SelectType };
@@ -0,0 +1,5 @@
1
+ import { interfaceShowcase } from './Showcase.types.js';
2
+
3
+ declare const Showcase: ({ headline, items, className, dataQaId, tracker }: interfaceShowcase) => JSX.Element;
4
+
5
+ export { Showcase };
@@ -0,0 +1,15 @@
1
+ import { ITracker } from '../custom-types.js';
2
+
3
+ type typeItems = {
4
+ image: string;
5
+ name: string;
6
+ };
7
+ interface interfaceShowcase {
8
+ headline: string;
9
+ items: Array<typeItems>;
10
+ className?: string;
11
+ dataQaId?: string;
12
+ tracker?: ITracker;
13
+ }
14
+
15
+ export { interfaceShowcase, typeItems };
@@ -0,0 +1,5 @@
1
+ import { TopLegalsProps } from './TopLegals.types.js';
2
+
3
+ declare const TopLegals: ({ locale, className, legals, flow, dataQaId }: TopLegalsProps) => JSX.Element;
4
+
5
+ export { TopLegals };
@@ -0,0 +1,11 @@
1
+ import { ILegals, ILegalFlows } from '../Disclaimers/Disclaimers.types.js';
2
+
3
+ interface TopLegalsProps {
4
+ locale: string;
5
+ legals: Array<ILegals>;
6
+ className?: string;
7
+ flow?: ILegalFlows;
8
+ dataQaId?: string;
9
+ }
10
+
11
+ export { TopLegalsProps };
@@ -0,0 +1,2 @@
1
+ export { Button } from '../../Button/Button.js';
2
+ export { interfaceButton } from '../../Button/Button.types.js';
@@ -0,0 +1,2 @@
1
+ export { ChainRedirect } from '../../ChainRedirect/ChainRedirect.js';
2
+ export { IChainRedirectProps } from '../../ChainRedirect/ChainRedirect.types.js';
@@ -0,0 +1,2 @@
1
+ export { Disclaimers } from '../../Disclaimers/Disclaimers.js';
2
+ export { DisclaimersProps, ILegalFlows, ILegals } from '../../Disclaimers/Disclaimers.types.js';
@@ -0,0 +1,2 @@
1
+ export { ExtraDisclaimers } from '../../ExtraDisclaimers/ExtraDisclaimers.js';
2
+ export { ExtraDisclaimersProps } from '../../ExtraDisclaimers/ExtraDisclaimers.types.js';
@@ -0,0 +1,2 @@
1
+ export { Features } from '../../Features/Features.js';
2
+ export { interfaceFeatures, typeItems } from '../../Features/Features.types.js';
@@ -0,0 +1,2 @@
1
+ export { Input } from '../../Input/Input.js';
2
+ export { InputIconPosition, InputMaskTypes, InputProps, InputSize, InputType } from '../../Input/Input.types.js';
@@ -0,0 +1 @@
1
+ export { IntlProvider } from '../../Intl/Intl.js';
@@ -0,0 +1,2 @@
1
+ export { LanguageSwitcher } from '../../LanguageSwitcher/LanguageSwitcher.js';
2
+ export { interfaceLanguageSwitcher, typeLanguageSwitcherOptions } from '../../LanguageSwitcher/LanguageSwitcher.types.js';
@@ -0,0 +1,2 @@
1
+ export { Link } from '../../Link/Link.js';
2
+ export { interfaceLink } from '../../Link/Link.types.js';
@@ -0,0 +1,2 @@
1
+ export { MOLink } from '../../MOLink/MOLink.js';
2
+ export { IKeywordShortcode, MOLinkProps } from '../../MOLink/MOLink.types.js';
@@ -0,0 +1,2 @@
1
+ export { PhoneEntry } from '../../PhoneEntry/PhoneEntry.js';
2
+ export { interfacePhoneEntry } from '../../PhoneEntry/PhoneEntry.types.js';
@@ -0,0 +1,2 @@
1
+ export { PINEntry } from '../../PINEntry/PINEntry.js';
2
+ export { interfacePINEntry } from '../../PINEntry/PINEntry.types.js';
@@ -0,0 +1,2 @@
1
+ export { PricePoint } from '../../PricePoint/PricePoint.js';
2
+ export { PricePointProps } from '../../PricePoint/PricePoint.types.js';
@@ -0,0 +1,2 @@
1
+ export { Select } from '../../Select/Select.js';
2
+ export { InputSize, SelectOption, SelectProps, SelectType } from '../../Select/Select.types.js';
@@ -0,0 +1,2 @@
1
+ export { Showcase } from '../../Showcase/Showcase.js';
2
+ export { interfaceShowcase, typeItems } from '../../Showcase/Showcase.types.js';
@@ -0,0 +1,2 @@
1
+ export { TopLegals } from '../../TopLegals/TopLegals.js';
2
+ export { TopLegalsProps } from '../../TopLegals/TopLegals.types.js';
@@ -0,0 +1 @@
1
+ export { Translate } from '../../Intl/Intl.js';
@@ -1,8 +1,10 @@
1
- export declare type IOptInFlowName = 'Block' | 'Click to sms' | 'Hybrid Pin' | 'Msisdn to sms' | 'Not available' | 'Pin' | 'Redirect' | 'To be determined' | 'USSD' | '3G click';
2
- export declare type ITracker = {
3
- advancedInFlow: (flow: string, action: string, args?: any) => void;
4
- advancedInPreFlow: (label: string, args?: any) => void;
5
- recedeInFlow: (flow: string, newState: string, args?: any) => void;
6
- customEvent: (category: string, action: string, label: string, arg?: any) => void;
7
- sendOptInFlowEvent: (optInFlowName: IOptInFlowName) => void;
8
- };
1
+ declare type IOptInFlowName = 'Block' | 'Click to sms' | 'Hybrid Pin' | 'Msisdn to sms' | 'Not available' | 'Pin' | 'Redirect' | 'To be determined' | 'USSD' | '3G click';
2
+ declare type ITracker = {
3
+ advancedInFlow: (flow: string, action: string, args?: any) => void;
4
+ advancedInPreFlow: (label: string, args?: any) => void;
5
+ recedeInFlow: (flow: string, newState: string, args?: any) => void;
6
+ customEvent: (category: string, action: string, label: string, arg?: any) => void;
7
+ sendOptInFlowEvent: (optInFlowName: IOptInFlowName) => void;
8
+ };
9
+
10
+ export { IOptInFlowName, ITracker };
@@ -0,0 +1 @@
1
+ export { defineMessages } from '../../Intl/Intl.js';
@@ -0,0 +1 @@
1
+ export { formatSMSLink } from '../../MOLink/MOLink.js';
@@ -0,0 +1 @@
1
+ export { injectIntl } from '../../Intl/Intl.js';
package/package.json CHANGED
@@ -1,51 +1,154 @@
1
1
  {
2
2
  "name": "ouisys-component-library",
3
- "version": "0.0.32",
3
+ "version": "2.0.1",
4
4
  "description": "Ouisys Components",
5
- "main": "build/index.js",
6
- "module": "build/index.es.js",
7
- "typings": "build/index.d.ts",
8
- "style": "build/index.css",
9
- "files": [
10
- "build"
11
- ],
5
+ "main": "dist/index.js",
6
+ "directories": "dist dev-tools",
7
+ "scripts": {
8
+ "build": "yarn clean && rollup -c",
9
+ "storybook": "storybook dev -p 6006",
10
+ "storybook:export": "storybook build",
11
+ "build-storybook": "storybook build",
12
+ "clean": "rm -rf ./dist && rm -rf ./build",
13
+ "watch": "tsc -b -w --preserveWatchOutput",
14
+ "lint": "eslint --fix 'src/**/*.{ts,tsx}'",
15
+ "format": "prettier --write .",
16
+ "test": "jest",
17
+ "test:local": "jest --runInBand",
18
+ "test:coverage": "yarn run test -- --watch --coverage --coverage-reporters=lcov --watchAll=false; echo \"\\033[32m>>> 🌹 Coverage report now in /coverage folder\"",
19
+ "test:coverageWatch": "yarn run test -- --watch --coverage --coverage-reporters=lcov --watchAll=true",
20
+ "test:watch": "yarn run test -- --watch --watchAll=true",
21
+ "test:debug": "node --inspect-brk node_modules/.bin/jest --watch --ci --runInBand",
22
+ "release": "yarn release:patch && release:publish && release:publish",
23
+ "release:patch": "npm version patch",
24
+ "release:publish": "npm publish",
25
+ "release:push": "git push"
26
+ },
12
27
  "author": "Emmancipate <emman@sam-media.com>",
13
28
  "license": "MIT",
29
+ "type": "module",
30
+ "sideEffects": false,
31
+ "files": [
32
+ "dist/"
33
+ ],
34
+ "exports": {
35
+ "./Button": "./dist/Button.js",
36
+ "./ChainRedirect": "./dist/ChainRedirect.js",
37
+ "./Disclaimers": "./dist/Disclaimers.js",
38
+ "./ExtraDisclaimers": "./dist/ExtraDisclaimers.js",
39
+ "./Features": "./dist/Features.js",
40
+ "./LanguageSwitcher": "./dist/LanguageSwitcher.js",
41
+ "./Link": "./dist/Link.js",
42
+ "./MOLink": "./dist/MOLink.js",
43
+ "./PhoneEntry": "./dist/PhoneEntry.js",
44
+ "./PINEntry": "./dist/PINEntry.js",
45
+ "./PricePoint": "./dist/PricePoint.js",
46
+ "./Showcase": "./dist/Showcase.js",
47
+ "./TopLegals": "./dist/TopLegals.js",
48
+ "./Input": "./dist/Input.js",
49
+ "./Select": "./dist/Select.js",
50
+ "./IntlProvider": "./dist/IntlProvider.js",
51
+ "./Translate": "./dist/Translate.js",
52
+ "./utilities/defineMessages": "./dist/defineMessages.js",
53
+ "./utilities/injectIntl": "./dist/injectIntl.js",
54
+ "./utilities/formatSMSLink": "./dist/formatSMSLink.js"
55
+ },
56
+ "typesVersions": {
57
+ "*": {
58
+ "Button": [
59
+ "dist/types/Button.d.ts"
60
+ ],
61
+ "ChainRedirect": [
62
+ "dist/types/ChainRedirect.d.ts"
63
+ ],
64
+ "Disclaimers": [
65
+ "dist/types/Disclaimers.d.ts"
66
+ ],
67
+ "ExtraDisclaimers": [
68
+ "dist/types/ExtraDisclaimers.d.ts"
69
+ ],
70
+ "Input": [
71
+ "dist/types/Input.d.ts"
72
+ ],
73
+ "Link": [
74
+ "dist/types/Link.d.ts"
75
+ ],
76
+ "MOLink": [
77
+ "dist/types/MOLink.d.ts"
78
+ ],
79
+ "PricePoint": [
80
+ "dist/types/PricePoint.d.ts"
81
+ ],
82
+ "Select": [
83
+ "dist/types/Select.d.ts"
84
+ ],
85
+ "TopLegals": [
86
+ "dist/types/TopLegals.d.ts"
87
+ ],
88
+ "LanguageSwitcher": [
89
+ "dist/types/LanguageSwitcher.d.ts"
90
+ ],
91
+ "Intl": [
92
+ "dist/types/Intl.d.ts"
93
+ ],
94
+ "PhoneEntry": [
95
+ "dist/types/PhoneEntry.d.ts"
96
+ ],
97
+ "PinEntry": [
98
+ "dist/types/PinEntry.d.ts"
99
+ ]
100
+ }
101
+ },
102
+ "dependencies": {
103
+ "awesome-phonenumber": "^7.0.1"
104
+ },
14
105
  "devDependencies": {
15
106
  "@babel/core": "^7.16.7",
107
+ "@chromatic-com/storybook": "^3.2.2",
16
108
  "@rollup/plugin-commonjs": "^21.0.1",
17
109
  "@rollup/plugin-node-resolve": "^13.1.3",
18
- "@storybook/addon-actions": "^6.4.13",
19
- "@storybook/addon-essentials": "^6.4.13",
20
- "@storybook/addon-links": "^6.4.13",
110
+ "@storybook/addon-actions": "^8.4.7",
111
+ "@storybook/addon-essentials": "^8.4.7",
112
+ "@storybook/addon-interactions": "^8.4.7",
113
+ "@storybook/addon-links": "^8.4.7",
114
+ "@storybook/addon-mdx-gfm": "^8.4.7",
115
+ "@storybook/addon-onboarding": "^8.4.7",
116
+ "@storybook/addon-webpack5-compiler-swc": "^1.0.5",
117
+ "@storybook/blocks": "^8.4.7",
21
118
  "@storybook/preset-scss": "^1.0.3",
22
- "@storybook/react": "^6.4.13",
23
- "@testing-library/jest-dom": "^5.16.1",
24
- "@testing-library/react": "^12.1.2",
25
- "@types/jest": "^27.4.0",
119
+ "@storybook/react": "^8.4.7",
120
+ "@storybook/react-webpack5": "^8.4.7",
121
+ "@storybook/test": "^8.4.7",
122
+ "@testing-library/jest-dom": "^6.6.3",
123
+ "@testing-library/react": "^16.1.0",
124
+ "@types/jest": "^29.5.14",
26
125
  "@types/react": "18.2.0",
27
126
  "@types/react-test-renderer": "^17.0.1",
28
127
  "@typescript-eslint/eslint-plugin": "^4.19.0",
29
128
  "@typescript-eslint/parser": "^4.19.0",
129
+ "autoprefixer": "^10.4.20",
30
130
  "babel-loader": "^8.2.3",
31
131
  "babel-preset-react-app": "^10.0.1",
32
132
  "classnames": "^2.3.1",
33
133
  "esbuild": "^0.15.10",
34
- "eslint": "^7.16.0",
134
+ "eslint": "7.16.0",
35
135
  "eslint-config-airbnb": "^18.2.1",
36
- "eslint-config-ouisys": "0.0.1",
136
+ "eslint-config-ouisys": "0.0.9",
37
137
  "eslint-config-prettier": "^7.1.0",
38
138
  "eslint-plugin-import": "^2.22.1",
39
- "eslint-plugin-jest": "^24.1.3",
139
+ "eslint-plugin-jest": "24.1.3",
40
140
  "eslint-plugin-jsx-a11y": "^6.4.1",
41
141
  "eslint-plugin-prettier": "^3.3.0",
42
142
  "eslint-plugin-react": "^7.21.5",
43
143
  "eslint-plugin-react-hooks": "^4.2.0",
144
+ "eslint-plugin-storybook": "^0.11.1",
44
145
  "eslint-plugin-testing-library": "^3.10.1",
146
+ "eslint-webpack-plugin": "3.2.0",
147
+ "husky": "8.0.1",
45
148
  "identity-obj-proxy": "^3.0.0",
46
- "jest": "^27.4.7",
149
+ "jest": "^29.7.0",
150
+ "jest-environment-jsdom": "^29.7.0",
47
151
  "lint-staged": "^13.0.3",
48
- "node-sass": "7",
49
152
  "postcss": "8",
50
153
  "prettier": "^2.7.1",
51
154
  "prettier-config-ouisys": "0.0.2",
@@ -61,39 +164,13 @@
61
164
  "rollup-plugin-postcss": "^4.0.2",
62
165
  "rollup-plugin-terser": "^7.0.2",
63
166
  "rollup-plugin-typescript2": "^0.31.1",
167
+ "sass": "^1.83.0",
64
168
  "sass-loader": "^10",
65
- "ts-jest": "^27.1.3",
66
- "ts-node": "^10.9.1",
169
+ "storybook": "^8.4.7",
170
+ "ts-jest": "^29.2.5",
171
+ "ts-node": "^10.9.2",
67
172
  "typescript": "^4.5.4"
68
173
  },
69
- "dependencies": {
70
- "awesome-phonenumber": "^7.0.1"
71
- },
72
- "peerDependencies": {
73
- "classnames": "^2.3.1",
74
- "react": ">=18.2.0",
75
- "react-dom": ">=18.2.0"
76
- },
77
- "scripts": {
78
- "build": "rm -rf build && rollup -c",
79
- "storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
80
- "storybook:export": "build-storybook",
81
- "build-storybook": "build-storybook",
82
- "clean": "rm -rf ./dist && rm -rf ./build",
83
- "watch": "tsc -b -w --preserveWatchOutput",
84
- "lint": "eslint --fix 'src/**/*.{ts,tsx}'",
85
- "format": "prettier --write .",
86
- "test": "node --max_old_space_size=5096 node_modules/.bin/jest",
87
- "test:local": "jest --runInBand",
88
- "test:coverage": "yarn run test -- --watch --coverage --coverage-reporters=lcov --watchAll=false; echo \"\\033[32m>>> 🌹 Coverage report now in /coverage folder\"",
89
- "test:coverageWatch": "yarn run test -- --watch --coverage --coverage-reporters=lcov --watchAll=true",
90
- "test:watch": "yarn run test -- --watch --watchAll=true",
91
- "test:debug": "node --inspect-brk node_modules/.bin/jest --watch --ci --runInBand",
92
- "release": "yarn release:patch && release:publish && release:publish",
93
- "release:patch": "npm version patch",
94
- "release:publish": "npm publish",
95
- "release:push": "git push"
96
- },
97
174
  "husky": {
98
175
  "hooks": {
99
176
  "pre-commit": "lint-staged"
@@ -103,5 +180,14 @@
103
180
  "*": "prettier --ignore-unknown --write",
104
181
  "src/**/*.{ts,tsx}": "eslint --fix"
105
182
  },
183
+ "peerDependencies": {
184
+ "classnames": "^2.3.1",
185
+ "react": ">=18.2.0",
186
+ "react-dom": ">=18.2.0"
187
+ },
188
+ "engines": {
189
+ "node": ">=20",
190
+ "npm": ">=10"
191
+ },
106
192
  "prettier": "prettier-config-ouisys"
107
193
  }