@linzjs/lui 17.16.3-1 → 17.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/assets/icons/maori_land.svg +1 -0
- package/dist/assets/svg-content.tsx +6 -0
- package/dist/components/LuiBadge/LuiBadge.d.ts +1 -1
- package/dist/components/LuiBearingInput/LuiBearingInput.d.ts +23 -0
- package/dist/components/LuiFormikForms/LuiFormikCheckbox/LuiFormikCheckbox.d.ts +9 -0
- package/dist/components/LuiFormikForms/LuiFormikForm.d.ts +10 -0
- package/dist/components/LuiFormikForms/LuiFormikFormLabel/LuiFormikFormLabel.d.ts +8 -0
- package/dist/components/LuiFormikForms/LuiFormikFormSubmitButton/LuiFormikFormSubmitButton.d.ts +6 -0
- package/dist/components/LuiFormikForms/LuiFormikRadioButton/LuiFormikRadioButton.d.ts +8 -0
- package/dist/components/LuiFormikForms/LuiFormikRadioGroup/LuiFormikRadioGroup.d.ts +7 -0
- package/dist/components/LuiFormikForms/LuiFormikSelect/LuiFormikSelect.d.ts +11 -0
- package/dist/components/LuiFormikForms/LuiFormikTextInput/LuiFormikTextInput.d.ts +17 -0
- package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.d.ts +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +8128 -428
- package/dist/index.js.map +1 -1
- package/dist/lui.css +7 -0
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +8117 -427
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.scss +7 -0
- package/dist/scss/Components/LuiFormElements/LuiRadioInput/LuiRadioInput.scss +6 -1
- package/dist/scss/Foundation/Utilities/Focus.scss +6 -0
- package/dist/scss/Foundation/Utilities/_index.scss +1 -0
- package/package.json +20 -22
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
@use '../../../Foundation/Variables/FontVars' as fonts;
|
|
4
4
|
@use '../../../Foundation/Variables/FormVars' as forms;
|
|
5
5
|
@use '../../../Foundation/Variables/MiscVars' as misc;
|
|
6
|
+
@use "../../../Foundation/Utilities" as *;
|
|
7
|
+
|
|
6
8
|
// Usage:
|
|
7
9
|
// <label class="Checkbox" for="male">
|
|
8
10
|
// <input class="Checkbox-input" type="checkbox" id="male">
|
|
@@ -101,6 +103,11 @@ $border-size: 2px;
|
|
|
101
103
|
fill: rgba(colors.$snow, 1); // tick in checkbox now visible when checked
|
|
102
104
|
}
|
|
103
105
|
}
|
|
106
|
+
// set the focus-visible styling of
|
|
107
|
+
// for keyboard accessibility
|
|
108
|
+
.LuiCheckboxInput-input:focus-visible + span .LuiCheckboxInput-labelCheck {
|
|
109
|
+
@include focusStyle;
|
|
110
|
+
}
|
|
104
111
|
|
|
105
112
|
// ============
|
|
106
113
|
// STATES
|
|
@@ -69,7 +69,12 @@
|
|
|
69
69
|
background-color: colors.$disabled-color-dark;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
// If the label has an input inside it that has a focus-visible, then show outline
|
|
73
|
+
// for keyboard accessibility
|
|
74
|
+
&:has(input:focus-visible):before {
|
|
75
|
+
@include focusStyle;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
73
78
|
|
|
74
79
|
.LuiRadioInput--hasError {
|
|
75
80
|
.LuiRadioInput-label:before {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "17.
|
|
2
|
+
"version": "17.17.0",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -33,11 +33,9 @@
|
|
|
33
33
|
"prettier:fix-changed": "pretty-quick",
|
|
34
34
|
"clear-cache": "jest --clearCache",
|
|
35
35
|
"watch-storybook": "start-storybook --port=6006 --static-dir ./src/assets",
|
|
36
|
-
"generate-svgs": "echo 'CHECK THAT YOUR SVG HAS A VIEW BOX, otherwise it will not work'; node ./svg-generator"
|
|
37
|
-
"install-react-17": "npm i react@^17 react-dom@^17 && npm i @testing-library/react@^12 @types/react@^17 framer-motion@^4.1"
|
|
36
|
+
"generate-svgs": "echo 'CHECK THAT YOUR SVG HAS A VIEW BOX, otherwise it will not work'; node ./svg-generator"
|
|
38
37
|
},
|
|
39
38
|
"peerDependencies": {
|
|
40
|
-
"framer-motion": ">=4.1",
|
|
41
39
|
"react": ">=16",
|
|
42
40
|
"react-dom": ">=16"
|
|
43
41
|
},
|
|
@@ -49,12 +47,13 @@
|
|
|
49
47
|
"name": "@linzjs/lui",
|
|
50
48
|
"module": "dist/lui.esm.js",
|
|
51
49
|
"jest": {
|
|
52
|
-
"preset": "ts-jest",
|
|
53
|
-
"testEnvironment": "jsdom",
|
|
54
50
|
"moduleNameMapper": {
|
|
55
51
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/src/__mocks__/fileMock.js",
|
|
56
52
|
"\\.(css|less|scss)$": "<rootDir>/src/__mocks__/styleMock.js"
|
|
57
53
|
},
|
|
54
|
+
"transform": {
|
|
55
|
+
"^.+\\.tsx?$": "esbuild-jest"
|
|
56
|
+
},
|
|
58
57
|
"setupFilesAfterEnv": [
|
|
59
58
|
"./setupTests.ts"
|
|
60
59
|
],
|
|
@@ -75,7 +74,6 @@
|
|
|
75
74
|
"devDependencies": {
|
|
76
75
|
"@geometricpanda/storybook-addon-badges": "^0.2.1",
|
|
77
76
|
"@linzjs/style": "^3.9.0",
|
|
78
|
-
"@mdx-js/react": "^2.1.3",
|
|
79
77
|
"@react-types/shared": "^3.14.0",
|
|
80
78
|
"@rollup/plugin-commonjs": "^21.0.2",
|
|
81
79
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -84,47 +82,46 @@
|
|
|
84
82
|
"@semantic-release/git": "^9.0.0",
|
|
85
83
|
"@size-limit/preset-small-lib": "^7.0.8",
|
|
86
84
|
"@storybook/addon-a11y": "^6.5.0",
|
|
87
|
-
"@storybook/addon-docs": "^6.5.
|
|
85
|
+
"@storybook/addon-docs": "^6.5.0",
|
|
88
86
|
"@storybook/addon-essentials": "^6.5.0",
|
|
89
87
|
"@storybook/addon-info": "^5.3.21",
|
|
90
88
|
"@storybook/addon-links": "^6.5.0",
|
|
91
89
|
"@storybook/addon-storysource": "6.4.19",
|
|
92
90
|
"@storybook/addons": "^6.5.0",
|
|
93
|
-
"@storybook/mdx2-csf": "^0.0.3",
|
|
94
91
|
"@storybook/preset-scss": "^1.0.3",
|
|
95
|
-
"@storybook/react": "^6.5.
|
|
92
|
+
"@storybook/react": "^6.5.0",
|
|
96
93
|
"@storybook/theming": "^6.5.0",
|
|
97
94
|
"@testing-library/jest-dom": "^5.8.0",
|
|
98
|
-
"@testing-library/react": "^
|
|
99
|
-
"@testing-library/user-event": "^
|
|
95
|
+
"@testing-library/react": "^10.0.4",
|
|
96
|
+
"@testing-library/user-event": "^10.4.0",
|
|
100
97
|
"@types/camelcase": "^5.2.0",
|
|
101
|
-
"@types/jest": "^
|
|
98
|
+
"@types/jest": "^25.2.3",
|
|
102
99
|
"@types/jest-axe": "^3.5.0",
|
|
103
|
-
"@types/react": "^
|
|
100
|
+
"@types/react": "^16.9.55",
|
|
104
101
|
"@types/react-dom": "^16.9.9",
|
|
105
102
|
"@types/react-helmet": "^6.1.2",
|
|
106
|
-
"@types/react-modal": "^3.
|
|
103
|
+
"@types/react-modal": "^3.10.5",
|
|
107
104
|
"@types/sass": "^1.16.0",
|
|
108
105
|
"@types/uuid": "^8.3.1",
|
|
109
106
|
"@types/yup": "0.29.13",
|
|
110
107
|
"chromatic": "^4.0.3",
|
|
111
108
|
"conventional-changelog-conventionalcommits": "^4.6.1",
|
|
112
109
|
"css-loader": "^3.6.0",
|
|
110
|
+
"esbuild": "^0.15.5",
|
|
111
|
+
"esbuild-jest": "^0.5.0",
|
|
113
112
|
"eslint-config-prettier": "8.3.0",
|
|
114
113
|
"eslint-config-react-app": "^7.0.0",
|
|
115
114
|
"eslint-plugin-prettier": "4.0.0",
|
|
116
115
|
"fetch-mock": "^9.11.0",
|
|
117
|
-
"framer-motion": "^7.5.2",
|
|
118
116
|
"html-loader": "^1.1.0",
|
|
119
117
|
"husky": "^4.3.0",
|
|
120
|
-
"jest": "^27.5.1",
|
|
121
118
|
"jest-axe": "^3.5.0",
|
|
122
119
|
"jest-canvas-mock": "2.3.1",
|
|
123
120
|
"msw": "^0.22.2",
|
|
124
121
|
"npm-run-all": "^4.1.5",
|
|
125
122
|
"pretty-quick": "^3.1.1",
|
|
126
|
-
"react": "^
|
|
127
|
-
"react-dom": "^
|
|
123
|
+
"react": "^17.0.2",
|
|
124
|
+
"react-dom": "^17.0.2",
|
|
128
125
|
"react-helmet": "^6.1.0",
|
|
129
126
|
"react-is": "^17.0.1",
|
|
130
127
|
"rollup": "^2.56.3",
|
|
@@ -141,7 +138,6 @@
|
|
|
141
138
|
"stylelint-config-standard": "^25.0.0",
|
|
142
139
|
"stylelint-scss": "^4.1.0",
|
|
143
140
|
"stylelint-suitcss": "^5.0.0",
|
|
144
|
-
"ts-jest": "^27.1.3",
|
|
145
141
|
"typescript": "^4.7.4",
|
|
146
142
|
"whatwg-fetch": "^3.4.1",
|
|
147
143
|
"yup": "^0.29.0"
|
|
@@ -152,13 +148,15 @@
|
|
|
152
148
|
"@react-aria/listbox": "^3.6.0",
|
|
153
149
|
"@react-aria/utils": "^3.13.2",
|
|
154
150
|
"@react-stately/list": "^3.5.2",
|
|
155
|
-
"@szhsin/react-menu": "^3.
|
|
151
|
+
"@szhsin/react-menu": "^2.3.3",
|
|
156
152
|
"camelcase": "^6.0.0",
|
|
157
153
|
"clsx": "^1.1.0",
|
|
158
154
|
"container-query-polyfill": "0.1.2",
|
|
155
|
+
"formik": "^2.1.4",
|
|
156
|
+
"framer-motion": "4.1.17",
|
|
159
157
|
"lottie-web": "^5.9.1",
|
|
160
158
|
"react-loading-skeleton": "^3.1.0",
|
|
161
|
-
"react-modal": "^3.
|
|
159
|
+
"react-modal": "^3.11.2",
|
|
162
160
|
"react-query": "2.26.3",
|
|
163
161
|
"react-select": "^5.1.0",
|
|
164
162
|
"resolve-url-loader": "^5.0.0",
|