@loadsmart/loadsmart-ui 7.3.1 → 7.3.3

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 (70) hide show
  1. package/dist/common/BackButton/BackButton.d.ts +1 -0
  2. package/dist/common/CloseButton/CloseButton.d.ts +1 -0
  3. package/dist/components/Accordion/Accordion.stories.d.ts +1 -0
  4. package/dist/components/Banner/Banner.d.ts +1 -1
  5. package/dist/components/Calendar/Calendar.d.ts +1 -0
  6. package/dist/components/Calendar/Calendar.stories.d.ts +1 -0
  7. package/dist/components/Calendar/PickerModeToggle.d.ts +1 -0
  8. package/dist/components/Calendar/Pickers/DayPicker.d.ts +1 -0
  9. package/dist/components/Calendar/Pickers/MonthPicker.d.ts +1 -0
  10. package/dist/components/Calendar/Pickers/YearPicker.d.ts +1 -0
  11. package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -0
  12. package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -0
  13. package/dist/components/DatePicker/DateRangePicker.d.ts +1 -0
  14. package/dist/components/DatePicker/DateRangePicker.stories.d.ts +1 -0
  15. package/dist/components/DatePicker/useDatePicker.d.ts +102 -102
  16. package/dist/components/DatePicker/useDateRangePicker.d.ts +153 -154
  17. package/dist/components/Dialog/Dialog.stories.d.ts +1 -0
  18. package/dist/components/DragDropFile/DragDropFile.stories.d.ts +1 -0
  19. package/dist/components/DragDropFile/components/DropZone.d.ts +1 -0
  20. package/dist/components/DragDropFile/components/FileItem.d.ts +1 -0
  21. package/dist/components/DragDropFile/components/FileList.d.ts +1 -0
  22. package/dist/components/DragDropFile/styles.d.ts +1 -1
  23. package/dist/components/EmptyState/EmptyState.stories.d.ts +1 -0
  24. package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +1 -0
  25. package/dist/components/Icon/Icon.d.ts +2 -1
  26. package/dist/components/IconFactory/IconFactory.d.ts +2 -1
  27. package/dist/components/Label/Label.stories.d.ts +1 -0
  28. package/dist/components/Layout/Layout.stories.d.ts +1 -0
  29. package/dist/components/Link/Link.stories.d.ts +1 -0
  30. package/dist/components/Loaders/LoadingDots.d.ts +1 -0
  31. package/dist/components/Loaders/Spinner.d.ts +1 -0
  32. package/dist/components/Modal/Modal.stories.d.ts +1 -0
  33. package/dist/components/Pagination/Pagination.d.ts +1 -0
  34. package/dist/components/Pagination/PaginationItem.d.ts +1 -0
  35. package/dist/components/Popover/Popover.d.ts +1 -0
  36. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +1 -0
  37. package/dist/components/Radio/Radio.stories.d.ts +1 -0
  38. package/dist/components/Section/Sections.stories.d.ts +1 -0
  39. package/dist/components/Select/SelectCreatableOption.d.ts +1 -0
  40. package/dist/components/Select/SelectEmpty.d.ts +1 -0
  41. package/dist/components/Select/SelectOption.d.ts +1 -0
  42. package/dist/components/SideNavigation/Separator/Separator.d.ts +1 -0
  43. package/dist/components/SideNavigation/SideNavigation.stories.d.ts +1 -0
  44. package/dist/components/Steps/ProgressSteps/ProgressSteps.d.ts +1 -0
  45. package/dist/components/Table/Table.d.ts +1 -0
  46. package/dist/components/Table/Table.stories.d.ts +1 -0
  47. package/dist/components/Table/TableSortHandle.d.ts +1 -0
  48. package/dist/components/TablePagination/RowsPerPage.d.ts +1 -0
  49. package/dist/components/TablePagination/TablePagination.d.ts +1 -0
  50. package/dist/components/TablePagination/TablePaginationActions.d.ts +2 -1
  51. package/dist/components/Tabs/Tabs.stories.d.ts +1 -0
  52. package/dist/components/TextField/TextField.stories.d.ts +1 -0
  53. package/dist/components/Textarea/Textarea.stories.d.ts +1 -0
  54. package/dist/components/Toast/Toast.stories.d.ts +1 -0
  55. package/dist/components/ToggleGroup/Toggle.d.ts +1 -0
  56. package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -0
  57. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
  58. package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +1 -0
  59. package/dist/components/TopNavigation/TopNavigation.stories.d.ts +1 -0
  60. package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +1 -0
  61. package/dist/index.js +1 -1
  62. package/dist/index.js.map +1 -1
  63. package/dist/utils/toolset/highlightMatch.d.ts +1 -0
  64. package/package.json +189 -184
  65. package/src/components/Dropdown/Dropdown.stories.tsx +1 -2
  66. package/src/components/IconFactory/IconFactory.tsx +2 -2
  67. package/src/components/Select/Select.constants.ts +2 -2
  68. package/src/components/Steps/useSteps.ts +1 -1
  69. package/src/components/Tag/Tag.tsx +1 -1
  70. package/src/hooks/useSelectable/SelectableStrategy.ts +1 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * A function that wraps a match into `mark` element to be highlighted.
3
4
  * @example
package/package.json CHANGED
@@ -1,186 +1,191 @@
1
1
  {
2
- "name": "@loadsmart/loadsmart-ui",
3
- "version": "7.3.1",
4
- "description": "Miranda UI, a React UI library",
5
- "main": "dist",
6
- "files": [
7
- "src",
8
- "dist",
9
- "README.md"
10
- ],
11
- "types": "dist/index.d.ts",
12
- "scripts": {
13
- "start": "yarn dev",
14
- "dev": "npm-run-all --parallel watch-tailwind storybook",
15
- "lint": "eslint --ext .js,.ts,.tsx src/",
16
- "test": "TZ=UTC jest --clearMocks",
17
- "test-watch": "yarn test --watch",
18
- "storybook": "storybook dev -p 6006",
19
- "build": "rollup -c --environment BUILD:prod",
20
- "watch-tailwind": "postcss ./tailwind.css -o ./.storybook/globals.css --watch",
21
- "docs:build": "storybook build -o ./docs",
22
- "docs:deploy": "gh-pages -d docs -m \"chore(docs): update gh-pages [skip ci]\"",
23
- "release": "semantic-release",
24
- "prepare": "husky install"
25
- },
26
- "storybook-deployer": {
27
- "commitMessage": "chore(docs): deploy storybook to GitHub pages [skip ci]"
28
- },
29
- "lint-staged": {
30
- "src/**/*.{js,ts,jsx,tsx,json}": [
31
- "eslint --fix",
32
- "prettier --write"
33
- ],
34
- "src/{common,components,styles}/**/*.{js,ts,jsx,tsx}": [
35
- "eslint --fix",
36
- "prettier --write",
37
- "stylelint --fix"
38
- ]
39
- },
40
- "jest-junit": {
41
- "addFileAttribute": "true"
42
- },
43
- "devDependencies": {
44
- "@babel/core": "^7.20.12",
45
- "@babel/plugin-proposal-class-properties": "^7.18.6",
46
- "@babel/plugin-proposal-private-methods": "^7.18.6",
47
- "@babel/plugin-proposal-private-property-in-object": "^7.21.0",
48
- "@babel/preset-env": "^7.20.2",
49
- "@babel/preset-react": "^7.18.6",
50
- "@babel/preset-typescript": "^7.18.6",
51
- "@commitlint/cli": "^16.0.2",
52
- "@commitlint/config-conventional": "^16.0.0",
53
- "@loadsmart/miranda-tokens": "^2.2.1",
54
- "@loadsmart/stylelint-config": "^0.0.3",
55
- "@rollup/plugin-babel": "^5.3.0",
56
- "@rollup/plugin-commonjs": "^19.0.0",
57
- "@rollup/plugin-json": "^4.1.0",
58
- "@rollup/plugin-node-resolve": "^13.0.0",
59
- "@semantic-release/git": "^9.0.0",
60
- "@storybook/addon-a11y": "^7.0.17",
61
- "@storybook/addon-essentials": "^7.0.17",
62
- "@storybook/addon-links": "^7.0.17",
63
- "@storybook/addons": "^7.0.17",
64
- "@storybook/react": "^7.0.17",
65
- "@storybook/react-webpack5": "^7.0.17",
66
- "@storybook/theming": "^7.0.17",
67
- "@svgr/rollup": "^6.5.1",
68
- "@svgr/webpack": "^8.0.1",
69
- "@tailwindcss/postcss7-compat": "^2.1.2",
70
- "@testing-library/dom": "^8.20.0",
71
- "@testing-library/jest-dom": "^5.16.5",
72
- "@testing-library/react": "^11.2.7",
73
- "@testing-library/react-hooks": "^5.1.3",
74
- "@testing-library/user-event": "^13.5.0",
75
- "@types/chance": "^1.1.1",
76
- "@types/jest": "^27.5.2",
77
- "@types/lodash.debounce": "^4.0.6",
78
- "@types/lodash.flatten": "^4.4.6",
79
- "@types/lodash.get": "^4.4.6",
80
- "@types/lodash.isempty": "^4.4.6",
81
- "@types/lodash.omit": "^4.5.6",
82
- "@types/lodash.range": "^3.2.6",
83
- "@types/mdx": "^2.0.2",
84
- "@types/node": "^18.11.18",
85
- "@types/react": "^17.0.59",
86
- "@types/react-dom": "^17.0.20",
87
- "@types/react-test-renderer": "^17.0.1",
88
- "@types/styled-components": "^5.1.26",
89
- "@typescript-eslint/eslint-plugin": "^4.22.1",
90
- "@typescript-eslint/parser": "^4.22.1",
91
- "@zerollup/ts-transform-paths": "^1.7.18",
92
- "autoprefixer": "^9.8.8",
93
- "babel-jest": "^27.5.1",
94
- "babel-loader": "8.2.2",
95
- "babel-plugin-react-remove-properties": "^0.3.0",
96
- "babel-plugin-styled-components": "^1.12.0",
97
- "babel-plugin-transform-inline-environment-variables": "^0.4.3",
98
- "babel-preset-react-app": "^10.0.0",
99
- "chance": "^1.1.8",
100
- "commitizen": "^4.2.4",
101
- "cross-env": "^7.0.3",
102
- "cz-conventional-changelog": "^3.3.0",
103
- "eslint": "^7.26.0",
104
- "eslint-config-prettier": "^8.3.0",
105
- "eslint-plugin-jest-dom": "^3.8.1",
106
- "eslint-plugin-jsx-a11y": "^6.4.1",
107
- "eslint-plugin-prettier": "^3.4.0",
108
- "eslint-plugin-react": "^7.23.2",
109
- "eslint-plugin-react-hooks": "^4.2.0",
110
- "eslint-plugin-storybook": "^0.6.12",
111
- "eslint-plugin-testing-library": "^5.9.1",
112
- "gh-pages": "^5.0.0",
113
- "husky": "7.0.4",
114
- "identity-obj-proxy": "^3.0.0",
115
- "jest": "^27.5.1",
116
- "jest-junit": "^16.0.0",
117
- "jest-transformer-svg": "^1.0.2",
118
- "lint-staged": "^11.0.0",
119
- "npm-run-all": "^4.1.5",
120
- "postcss": "^7.0.39",
121
- "postcss-cli": "^7.1.2",
122
- "prettier": "^2.8.4",
123
- "react": "^17.0.2",
124
- "react-dom": "^17.0.2",
125
- "react-is": "^17.0.2",
126
- "react-syntax-highlighter": "^15.5.0",
127
- "rollup": "^2.79.1",
128
- "rollup-plugin-delete": "^2.0.0",
129
- "rollup-plugin-peer-deps-external": "^2.2.4",
130
- "rollup-plugin-terser": "^7.0.2",
131
- "rollup-plugin-typescript2": "^0.34.1",
132
- "rollup-plugin-visualizer": "^5.5.2",
133
- "semantic-release": "^17.4.2",
134
- "storybook": "^7.0.17",
135
- "styled-components": "^5.3.0",
136
- "stylelint": "^13.13.1",
137
- "stylelint-config-prettier": "^8.0.2",
138
- "stylelint-config-rational-order": "^0.1.2",
139
- "stylelint-config-recommended": "^5.0.0",
140
- "stylelint-no-unsupported-browser-features": "^5.0.1",
141
- "stylelint-order": "^4.1.0",
142
- "tailwindcss": "npm:@tailwindcss/postcss7-compat",
143
- "ts-jest": "^27.1.5",
144
- "ts-node": "^10.9.1",
145
- "ts-toolbelt": "^9.6.0",
146
- "ttypescript": "^1.5.13",
147
- "typescript": "4.4.4",
148
- "typescript-plugin-styled-components": "^1.5.0"
149
- },
150
- "peerDependencies": {
151
- "@loadsmart/miranda-tokens": ">=1.3.0",
152
- "@testing-library/react": ">=11.2.6",
153
- "react": ">=16.8.0",
154
- "react-dom": ">=16.8.0",
155
- "styled-components": ">=5.3.0"
156
- },
157
- "dependencies": {
158
- "@floating-ui/react-dom": "^2.0.0",
159
- "@loadsmart/utils-function": "0.3.1",
160
- "@loadsmart/utils-object": "0.3.1",
161
- "@loadsmart/utils-string": "0.3.1",
162
- "clsx": "1.1.1",
163
- "lodash.debounce": "4.0.8",
164
- "lodash.flatten": "4.4.0",
165
- "lodash.get": "4.4.2",
166
- "lodash.isempty": "4.4.0",
167
- "lodash.omit": "4.5.0",
168
- "lodash.range": "3.2.0"
169
- },
170
- "repository": {
171
- "type": "git",
172
- "url": "https://github.com/loadsmart/miranda.git"
173
- },
174
- "license": "MIT",
175
- "publishConfig": {
176
- "access": "public"
177
- },
178
- "config": {
179
- "commitizen": {
180
- "path": "./node_modules/cz-conventional-changelog"
181
- }
182
- },
183
- "resolutions": {
184
- "@stylelint/postcss-css-in-js": "0.37.2"
185
- }
2
+ "name": "@loadsmart/loadsmart-ui",
3
+ "version": "7.3.3",
4
+ "description": "Miranda UI, a React UI library",
5
+ "main": "dist",
6
+ "files": [
7
+ "src",
8
+ "dist",
9
+ "README.md"
10
+ ],
11
+ "types": "dist/index.d.ts",
12
+ "scripts": {
13
+ "start": "yarn dev",
14
+ "dev": "npm-run-all --parallel watch-tailwind storybook",
15
+ "lint": "eslint --ext .js,.ts,.tsx src/",
16
+ "test": "TZ=UTC jest --clearMocks",
17
+ "test-watch": "yarn test --watch",
18
+ "storybook": "storybook dev -p 6006",
19
+ "build": "rollup -c --environment BUILD:prod",
20
+ "watch-tailwind": "postcss ./tailwind.css -o ./.storybook/globals.css --watch",
21
+ "docs:build": "storybook build -o ./docs",
22
+ "docs:deploy": "gh-pages -d docs -m \"chore(docs): update gh-pages [skip ci]\"",
23
+ "release": "semantic-release",
24
+ "prepare": "husky install"
25
+ },
26
+ "storybook-deployer": {
27
+ "commitMessage": "chore(docs): deploy storybook to GitHub pages [skip ci]"
28
+ },
29
+ "lint-staged": {
30
+ "src/**/*.{js,ts,jsx,tsx,json}": [
31
+ "eslint --fix",
32
+ "prettier --write"
33
+ ],
34
+ "src/{common,components,styles}/**/*.{js,ts,jsx,tsx}": [
35
+ "eslint --fix",
36
+ "prettier --write",
37
+ "stylelint --fix"
38
+ ]
39
+ },
40
+ "jest-junit": {
41
+ "addFileAttribute": "true"
42
+ },
43
+ "devDependencies": {
44
+ "@babel/core": "^7.20.12",
45
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
46
+ "@babel/plugin-proposal-private-methods": "^7.18.6",
47
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.0",
48
+ "@babel/preset-env": "^7.20.2",
49
+ "@babel/preset-react": "^7.18.6",
50
+ "@babel/preset-typescript": "^7.18.6",
51
+ "@commitlint/cli": "^16.0.2",
52
+ "@commitlint/config-conventional": "^16.0.0",
53
+ "@loadsmart/miranda-tokens": "^2.2.1",
54
+ "@loadsmart/stylelint-config": "^0.0.3",
55
+ "@rollup/plugin-babel": "^5.3.0",
56
+ "@rollup/plugin-commonjs": "^19.0.0",
57
+ "@rollup/plugin-json": "^4.1.0",
58
+ "@rollup/plugin-node-resolve": "^13.0.0",
59
+ "@semantic-release/git": "^9.0.0",
60
+ "@storybook/addon-a11y": "^7.0.17",
61
+ "@storybook/addon-essentials": "^7.0.17",
62
+ "@storybook/addon-links": "^7.0.17",
63
+ "@storybook/addons": "^7.0.17",
64
+ "@storybook/react": "^7.0.17",
65
+ "@storybook/react-webpack5": "^7.0.17",
66
+ "@storybook/theming": "^7.0.17",
67
+ "@svgr/rollup": "^6.5.1",
68
+ "@svgr/webpack": "^8.0.1",
69
+ "@tailwindcss/postcss7-compat": "^2.1.2",
70
+ "@testing-library/dom": "^8.20.0",
71
+ "@testing-library/jest-dom": "^5.16.5",
72
+ "@testing-library/react": "^11.2.7",
73
+ "@testing-library/react-hooks": "^5.1.3",
74
+ "@testing-library/user-event": "^13.5.0",
75
+ "@types/chance": "^1.1.1",
76
+ "@types/jest": "^27.5.2",
77
+ "@types/lodash.debounce": "^4.0.6",
78
+ "@types/lodash.flatten": "^4.4.6",
79
+ "@types/lodash.get": "^4.4.6",
80
+ "@types/lodash.isempty": "^4.4.6",
81
+ "@types/lodash.omit": "^4.5.6",
82
+ "@types/lodash.range": "^3.2.6",
83
+ "@types/mdx": "^2.0.2",
84
+ "@types/node": "^18.11.18",
85
+ "@types/react": "^17.0.83",
86
+ "@types/react-dom": "^17.0.25",
87
+ "@types/react-test-renderer": "^17.0.1",
88
+ "@types/styled-components": "^5.1.34",
89
+ "@typescript-eslint/eslint-plugin": "^4.22.1",
90
+ "@typescript-eslint/parser": "^4.22.1",
91
+ "@zerollup/ts-transform-paths": "^1.7.18",
92
+ "autoprefixer": "^9.8.8",
93
+ "babel-jest": "^27.5.1",
94
+ "babel-loader": "8.2.2",
95
+ "babel-plugin-react-remove-properties": "^0.3.0",
96
+ "babel-plugin-styled-components": "^1.12.0",
97
+ "babel-plugin-transform-inline-environment-variables": "^0.4.3",
98
+ "babel-preset-react-app": "^10.0.0",
99
+ "chance": "^1.1.8",
100
+ "commitizen": "^4.2.4",
101
+ "cross-env": "^7.0.3",
102
+ "cz-conventional-changelog": "^3.3.0",
103
+ "eslint": "^7.26.0",
104
+ "eslint-config-prettier": "^8.3.0",
105
+ "eslint-plugin-jest-dom": "^3.8.1",
106
+ "eslint-plugin-jsx-a11y": "^6.4.1",
107
+ "eslint-plugin-prettier": "^3.4.0",
108
+ "eslint-plugin-react": "^7.23.2",
109
+ "eslint-plugin-react-hooks": "^4.2.0",
110
+ "eslint-plugin-storybook": "^0.6.12",
111
+ "eslint-plugin-testing-library": "^5.9.1",
112
+ "gh-pages": "^5.0.0",
113
+ "husky": "7.0.4",
114
+ "identity-obj-proxy": "^3.0.0",
115
+ "jest": "^27.5.1",
116
+ "jest-junit": "^16.0.0",
117
+ "jest-transformer-svg": "^1.0.2",
118
+ "lint-staged": "^11.0.0",
119
+ "npm-run-all": "^4.1.5",
120
+ "postcss": "^7.0.39",
121
+ "postcss-cli": "^7.1.2",
122
+ "prettier": "^2.8.4",
123
+ "react": "^17.0.2",
124
+ "react-dom": "^17.0.2",
125
+ "react-is": "^17.0.2",
126
+ "react-syntax-highlighter": "^15.5.0",
127
+ "rollup": "^2.79.1",
128
+ "rollup-plugin-delete": "^2.0.0",
129
+ "rollup-plugin-peer-deps-external": "^2.2.4",
130
+ "rollup-plugin-terser": "^7.0.2",
131
+ "rollup-plugin-typescript2": "^0.34.1",
132
+ "rollup-plugin-visualizer": "^5.5.2",
133
+ "semantic-release": "^17.4.2",
134
+ "storybook": "^7.0.17",
135
+ "styled-components": "^5.3.11",
136
+ "stylelint": "^13.13.1",
137
+ "stylelint-config-prettier": "^8.0.2",
138
+ "stylelint-config-rational-order": "^0.1.2",
139
+ "stylelint-config-recommended": "^5.0.0",
140
+ "stylelint-no-unsupported-browser-features": "^5.0.1",
141
+ "stylelint-order": "^4.1.0",
142
+ "tailwindcss": "npm:@tailwindcss/postcss7-compat",
143
+ "ts-jest": "^27.1.5",
144
+ "ts-node": "^10.9.1",
145
+ "ts-toolbelt": "^9.6.0",
146
+ "ttypescript": "^1.5.13",
147
+ "typescript": "4.4.4",
148
+ "typescript-plugin-styled-components": "^1.5.0"
149
+ },
150
+ "peerDependencies": {
151
+ "@loadsmart/miranda-tokens": ">=1.3.0",
152
+ "@testing-library/react": ">=11.2.6",
153
+ "react": ">=16.8.0",
154
+ "react-dom": ">=16.8.0",
155
+ "styled-components": ">=5.3.0"
156
+ },
157
+ "dependencies": {
158
+ "@floating-ui/react-dom": "^2.0.0",
159
+ "@loadsmart/utils-function": "0.3.1",
160
+ "@loadsmart/utils-object": "0.3.1",
161
+ "@loadsmart/utils-string": "0.3.1",
162
+ "clsx": "1.1.1",
163
+ "lodash.debounce": "4.0.8",
164
+ "lodash.flatten": "4.4.0",
165
+ "lodash.get": "4.4.2",
166
+ "lodash.isempty": "4.4.0",
167
+ "lodash.omit": "4.5.0",
168
+ "lodash.range": "3.2.0"
169
+ },
170
+ "repository": {
171
+ "type": "git",
172
+ "url": "https://github.com/loadsmart/miranda.git"
173
+ },
174
+ "license": "MIT",
175
+ "publishConfig": {
176
+ "access": "public"
177
+ },
178
+ "config": {
179
+ "commitizen": {
180
+ "path": "./node_modules/cz-conventional-changelog"
181
+ }
182
+ },
183
+ "resolutions": {
184
+ "@stylelint/postcss-css-in-js": "0.37.2",
185
+ "react": "17.0.2",
186
+ "react-dom": "17.0.2",
187
+ "@types/react": "17.0.83",
188
+ "@types/react-dom": "17.0.25",
189
+ "react-is": "17.0.2"
190
+ }
186
191
  }
@@ -80,7 +80,7 @@ export const WithSections: Story<DropdownStoryProps> = (args) => {
80
80
  <div className="flex flex-col">
81
81
  <Dropdown {...args}>
82
82
  <Dropdown.Trigger outlined={args.outlined}>Sections</Dropdown.Trigger>
83
- <Dropdown.Menu align={args.align}>
83
+ <Dropdown.Menu>
84
84
  <Dropdown.Section header="My profile">
85
85
  {PROFILE_ACTIONS.map(({ label, value }) => (
86
86
  <Dropdown.Item
@@ -128,7 +128,6 @@ export const Extended: Story<DropdownStoryProps> = (args) => {
128
128
  <Dropdown {...args}>
129
129
  <Dropdown.Trigger outlined={args.outlined}>With Header &amp; Footer</Dropdown.Trigger>
130
130
  <Dropdown.Menu
131
- align={args.align}
132
131
  header={<p className="px-2">Header</p>}
133
132
  footer={<p className="px-2">A cool footer</p>}
134
133
  >
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react'
1
+ import React, { ReactNode, ComponentType } from 'react'
2
2
  import styled from 'styled-components'
3
3
 
4
4
  import transition from 'styles/transition'
@@ -50,7 +50,7 @@ export function UnknownIcon(): JSX.Element {
50
50
  return <span aria-label="Unknown icon">&#9785;</span>
51
51
  }
52
52
 
53
- function IconFactory(map: IconMapping): (props: IconProps<typeof map>) => JSX.Element {
53
+ function IconFactory(map: IconMapping): ComponentType<IconProps<typeof map>> {
54
54
  function getIcon(name: keyof typeof map): ReactNode | null {
55
55
  // eslint-disable-next-line no-param-reassign
56
56
  name = String(name || '').toLowerCase()
@@ -4,9 +4,9 @@ import type { SelectAdapter } from './Select.types'
4
4
 
5
5
  export const GenericAdapter: SelectAdapter<unknown> = {
6
6
  getKey(o): string {
7
- return get(o, 'value') as string
7
+ return get(o, 'value')!
8
8
  },
9
9
  getLabel(o): string {
10
- return get(o, 'label') as string
10
+ return get(o, 'label')!
11
11
  },
12
12
  }
@@ -115,7 +115,7 @@ function useSteps({ steps, current: currentProp }: useStepsProps): [State, Dispa
115
115
  // TODO: gather step info to feed Steps component
116
116
  function init(steps: Array<Step>, current?: number | string): State {
117
117
  return {
118
- current: current || (get(steps, '0.id') as number | string),
118
+ current: current || get(steps, '0.id')!,
119
119
  steps,
120
120
  }
121
121
  }
@@ -315,7 +315,7 @@ const StyledCloseButton = styled.button<WithSizeProps & WithVariantProps>`
315
315
  'tag-warning-background--focus': whenProps({ variant: 'warning' }),
316
316
  'tag-danger-background--focus': whenProps({ variant: 'danger' }),
317
317
  })};
318
- box-shadow: ${token('tag-outline')};
318
+ box-shadow: ${token('tag-box-shadow')};
319
319
  }
320
320
  `
321
321
 
@@ -14,7 +14,7 @@ export type SelectableStrategyContext<T extends Selectable> = {
14
14
 
15
15
  const GenericAdapter: SelectableAdapter<unknown> = {
16
16
  getKey(o): string {
17
- return get(o, 'value') as string
17
+ return get(o, 'value')!
18
18
  },
19
19
  }
20
20