@itcase/ui 1.2.4 → 1.2.6

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 (39) hide show
  1. package/dist/cjs/components/FormField.js +4 -4
  2. package/dist/cjs/components/Pagination.js +26 -22
  3. package/dist/cjs/components/Select.js +252 -1220
  4. package/dist/cjs/context/Notifications.js +3 -2
  5. package/dist/components/FormField.js +4 -4
  6. package/dist/components/Pagination.js +27 -23
  7. package/dist/components/Select.js +252 -1220
  8. package/dist/context/Notifications.js +3 -2
  9. package/dist/css/components/DadataHintField/DadataHintField.css +1 -1
  10. package/dist/css/components/Swiper/Swiper.css +5 -5
  11. package/dist/css/mixins/mixin.css +73 -0
  12. package/dist/css/mixins/mixin_animation.css +8 -0
  13. package/dist/css/mixins/mixin_dark-light.css +16 -0
  14. package/dist/css/mixins/mixin_elevation.css +33 -0
  15. package/dist/css/{styles → mixins}/mixin_fill-gradient.css +1 -1
  16. package/dist/css/mixins/mixin_typography.css +70 -0
  17. package/dist/css/{styles/mixin_global.css → mixins/mixin_utils.css} +0 -30
  18. package/dist/types/components/Pagination/Pagination.d.ts +0 -10
  19. package/dist/types/components/Select/Select.interface.d.ts +91 -0
  20. package/dist/types/components/Select/SelectClearIndicator.d.ts +4 -11
  21. package/dist/types/components/Select/SelectContainer.d.ts +4 -1
  22. package/dist/types/components/Select/SelectControl.d.ts +4 -11
  23. package/dist/types/components/Select/SelectDropdownIndicator.d.ts +4 -13
  24. package/dist/types/components/Select/SelectGroupHeading.d.ts +4 -7
  25. package/dist/types/components/Select/SelectIndicatorsContainer.d.ts +4 -4
  26. package/dist/types/components/Select/SelectInput.d.ts +4 -12
  27. package/dist/types/components/Select/SelectLoadingIndicator.d.ts +5 -7
  28. package/dist/types/components/Select/SelectMenu.d.ts +4 -11
  29. package/dist/types/components/Select/SelectMultiValueContainer.d.ts +4 -1
  30. package/dist/types/components/Select/SelectMultiValueLabel.d.ts +4 -4
  31. package/dist/types/components/Select/SelectMultiValueRemove.d.ts +4 -4
  32. package/dist/types/components/Select/SelectNoOptions.d.ts +4 -12
  33. package/dist/types/components/Select/SelectOption.d.ts +4 -16
  34. package/dist/types/components/Select/SelectPlaceholder.d.ts +4 -11
  35. package/dist/types/components/Select/SelectSingleValue.d.ts +4 -12
  36. package/dist/types/components/Select/SelectValueContainer.d.ts +4 -11
  37. package/dist/types/components/Select/index.d.ts +3 -5
  38. package/package.json +24 -23
  39. package/dist/css/styles/mixin_elevation.css +0 -33
@@ -1,12 +1,4 @@
1
- export function SelectSingleValue(props: any): import("react/jsx-runtime").JSX.Element;
2
- export namespace SelectSingleValue {
3
- namespace propTypes {
4
- let selectProps: PropTypes.Requireable<PropTypes.InferProps<{
5
- inputTextSize: PropTypes.Requireable<string>;
6
- inputTextColor: PropTypes.Requireable<string>;
7
- }>>;
8
- let children: PropTypes.Requireable<any>;
9
- let data: PropTypes.Requireable<object>;
10
- }
11
- }
12
- import PropTypes from 'prop-types';
1
+ import { GroupBase, SingleValueProps } from 'react-select';
2
+ import { iSelectCustomComponentsProps } from './Select.interface';
3
+ declare const SelectSingleValue: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: iSelectCustomComponentsProps & SingleValueProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
+ export { SelectSingleValue };
@@ -1,11 +1,4 @@
1
- export function SelectValueContainer(props: any): import("react/jsx-runtime").JSX.Element;
2
- export namespace SelectValueContainer {
3
- namespace propTypes {
4
- let children: PropTypes.Requireable<any>;
5
- let selectProps: PropTypes.Requireable<PropTypes.InferProps<{
6
- inputBefore: PropTypes.Requireable<any>;
7
- inputAfter: PropTypes.Requireable<any>;
8
- }>>;
9
- }
10
- }
11
- import PropTypes from 'prop-types';
1
+ import { GroupBase, ValueContainerProps } from 'react-select';
2
+ import { iSelectCustomComponentsProps } from './Select.interface';
3
+ declare const SelectValueContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: iSelectCustomComponentsProps & ValueContainerProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
4
+ export { SelectValueContainer };
@@ -1,3 +1,4 @@
1
+ import { iSelectConfig } from './Select.interface.js';
1
2
  import { SelectClearIndicator } from './SelectClearIndicator.js';
2
3
  import { SelectContainer } from './SelectContainer.js';
3
4
  import { SelectControl } from './SelectControl.js';
@@ -13,8 +14,5 @@ import { SelectOption } from './SelectOption.js';
13
14
  import { SelectPlaceholder } from './SelectPlaceholder.js';
14
15
  import { SelectSingleValue } from './SelectSingleValue.js';
15
16
  import { SelectValueContainer } from './SelectValueContainer.js';
16
- export namespace selectConfig {
17
- let appearance: {};
18
- function setAppearance(newComponent: any): void;
19
- }
20
- export { SelectClearIndicator, SelectContainer as Select, SelectControl, SelectDropdownIndicator, SelectGroupHeading, SelectIndicatorsContainer, SelectInput, SelectMenu, SelectMultiValueContainer, SelectMultiValueLabel, SelectMultiValueRemove, SelectOption, SelectPlaceholder, SelectSingleValue, SelectValueContainer };
17
+ declare const selectConfig: iSelectConfig;
18
+ export { SelectClearIndicator, SelectContainer as Select, SelectControl, SelectDropdownIndicator, SelectGroupHeading, SelectIndicatorsContainer, SelectInput, SelectMenu, SelectMultiValueContainer, SelectMultiValueLabel, SelectMultiValueRemove, SelectOption, SelectPlaceholder, SelectSingleValue, SelectValueContainer, selectConfig, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -69,12 +69,13 @@
69
69
  "scripts": {
70
70
  "build": "npm run build-js && npm run build-css",
71
71
  "build-js": "rm -rf dist && NODE_ENV=production rollup -c",
72
- "build-css": "rm -rf dist/css && postcss 'src/components/**/!(css)/*.css' 'src/styles/!(.css)/**/*.css' 'src/styles/{mediaqueries,mixin_global,mixin_elevation,mixin_fill-gradient}.css' --base src --dir dist/css/ --env production",
72
+ "build-css": "rm -rf dist/css && postcss 'src/components/**/!(css)/*.css' 'src/styles/!(.css)/**/*.css' 'src/styles/mediaqueries.css' 'src/mixins/**/*.css' --base src --dir dist/css/ --env production",
73
73
  "dev-js": "rollup -c -w",
74
- "dev-css": "postcss 'src/components/**/!(css)/*.css' 'src/styles/!(.css)/**/*.css' 'src/styles/{mediaqueries,mixin_global,mixin_elevation,mixin_fill-gradient}.css' --base src --dir dist/css/ --env production -w --verbose",
74
+ "dev-css": "postcss 'src/components/**/!(css)/*.css' 'src/styles/!(.css)/**/*.css' 'src/styles/mediaqueries.css' 'src/mixins/**/*.css' --base src --dir dist/css/ --env production -w --verbose",
75
75
  "prepare": "husky",
76
76
  "prepack": "npm run build",
77
- "semantic-release": "semantic-release"
77
+ "semantic-release": "semantic-release",
78
+ "typecheck": "tsc --noEmit"
78
79
  },
79
80
  "files": [
80
81
  "dist",
@@ -89,7 +90,7 @@
89
90
  "registry": "https://registry.npmjs.org/"
90
91
  },
91
92
  "dependencies": {
92
- "@itcase/common": "^1.2.8",
93
+ "@itcase/common": "^1.2.9",
93
94
  "clsx": "^2.1.1",
94
95
  "html5-boilerplate": "^9.0.1",
95
96
  "js-cookie": "^3.0.5",
@@ -98,7 +99,7 @@
98
99
  "prop-types": "^15.8.1",
99
100
  "rc-slider": "^11.1.5",
100
101
  "react": "^18.3.1",
101
- "react-dadata": "^2.23.1",
102
+ "react-dadata": "^2.23.3",
102
103
  "react-date-range": "^2.0.1",
103
104
  "react-datepicker": "^7.3.0",
104
105
  "react-dom": "^18.3.1",
@@ -111,18 +112,18 @@
111
112
  "react-scroll": "^1.9.0",
112
113
  "react-scrollbars-custom": "^4.1.1",
113
114
  "react-select": "^5.8.0",
114
- "swiper": "^11.1.10",
115
+ "swiper": "^11.1.12",
115
116
  "uuid": "^10.0.0"
116
117
  },
117
118
  "devDependencies": {
118
- "@itcase/lint": "^1.0.10",
119
119
  "@babel/core": "^7.25.2",
120
120
  "@babel/eslint-parser": "^7.25.1",
121
121
  "@babel/eslint-plugin": "^7.25.1",
122
- "@babel/preset-env": "^7.25.3",
122
+ "@babel/preset-env": "^7.25.4",
123
123
  "@babel/preset-react": "^7.24.7",
124
- "@commitlint/cli": "^19.4.0",
125
- "@commitlint/config-conventional": "^19.2.2",
124
+ "@commitlint/cli": "^19.4.1",
125
+ "@commitlint/config-conventional": "^19.4.1",
126
+ "@itcase/lint": "^1.0.13",
126
127
  "@rollup/plugin-babel": "^6.0.4",
127
128
  "@rollup/plugin-commonjs": "^26.0.1",
128
129
  "@rollup/plugin-json": "^6.1.0",
@@ -143,11 +144,11 @@
143
144
  "babel-plugin-react-docgen": "^4.2.1",
144
145
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
145
146
  "conventional-changelog-conventionalcommits": "^8.0.0",
146
- "eslint": "9.9.0",
147
+ "eslint": "9.10.0",
147
148
  "husky": "^9.1.5",
148
- "lint-staged": "^15.2.9",
149
- "npm": "^10.8.2",
150
- "postcss": "^8.4.41",
149
+ "lint-staged": "^15.2.10",
150
+ "npm": "^10.8.3",
151
+ "postcss": "^8.4.45",
151
152
  "postcss-aspect-ratio-polyfill": "^2.0.0",
152
153
  "postcss-cli": "^11.0.0",
153
154
  "postcss-combine-duplicated-selectors": "^10.0.3",
@@ -160,23 +161,23 @@
160
161
  "postcss-hexrgba": "^2.1.0",
161
162
  "postcss-import": "^16.1.0",
162
163
  "postcss-import-ext-glob": "^2.1.1",
163
- "postcss-mixins": "^10.0.1",
164
+ "postcss-mixins": "^11.0.1",
164
165
  "postcss-nested": "^6.2.0",
165
166
  "postcss-nested-ancestors": "^3.0.0",
166
- "postcss-normalize": "^10.0.1",
167
+ "postcss-normalize": "^13.0.0",
167
168
  "postcss-prepend-imports": "^1.0.1",
168
- "postcss-preset-env": "^10.0.2",
169
+ "postcss-preset-env": "^10.0.3",
169
170
  "postcss-pxtorem": "^6.1.0",
170
171
  "postcss-responsive-type": "github:ITCase/postcss-responsive-type",
171
172
  "postcss-sort-media-queries": "^5.2.0",
172
- "prettier": "3.3.3",
173
- "rollup": "^4.21.0",
173
+ "prettier": "^3.3.3",
174
+ "rollup": "^4.21.2",
174
175
  "rollup-plugin-copy": "^3.5.0",
175
176
  "rollup-plugin-dts": "^6.1.1",
176
177
  "rollup-plugin-peer-deps-external": "^2.2.4",
177
178
  "rollup-preserve-directives": "^1.1.1",
178
- "semantic-release": "^24.1.0",
179
- "stylelint": "^16.8.2",
180
- "typescript": "^5.5.4"
179
+ "semantic-release": "^24.1.1",
180
+ "stylelint": "^16.9.0",
181
+ "typescript": "^5.6.2"
181
182
  }
182
183
  }
@@ -1,33 +0,0 @@
1
- /* stylelint-disable length-zero-no-unit */
2
-
3
- @define-mixin elevation-1 {
4
- box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.24);
5
- }
6
-
7
- @define-mixin elevation-2 {
8
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.24);
9
- }
10
-
11
- @define-mixin elevation-4 {
12
- box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.24);
13
- }
14
-
15
- @define-mixin elevation-6 {
16
- box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.24);
17
- }
18
-
19
- @define-mixin elevation-8 {
20
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.16);
21
- }
22
-
23
- @define-mixin elevation-12 {
24
- box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.16)
25
- }
26
-
27
- @define-mixin elevation-16 {
28
- box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.16);
29
- }
30
-
31
- @define-mixin elevation-24 {
32
- box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.12);
33
- }