@snmt-react-ui/city-select 1.1.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/README.md +1 -0
- package/dist/CitySelect.d.ts +19 -0
- package/dist/CitySelect.stories.d.ts +7 -0
- package/dist/city-select.js +234008 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/translations/en.json.d.ts +6 -0
- package/dist/translations/ru.json.d.ts +6 -0
- package/package.json +27 -0
package/dist/index.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";.snmt-flex.inherit{flex-wrap:inherit}.snmt-select{width:100%;position:relative}.snmt-select .ant-select{height:100%;pointer-events:none;width:100%;border-radius:8px}.snmt-select .ant-select .wrapper-suffix-icon{pointer-events:none;display:flex;align-items:center;gap:10px}.snmt-select .ant-select-focused .ant-select-selector{box-shadow:none!important}.snmt-select .ant-select-selector{pointer-events:all;border:1px solid var(--grey-light-4)!important;border-radius:8px!important;height:100%!important;padding:8px 16px!important}.snmt-select .ant-select-selection-placeholder{font-size:16px!important;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left!important}.snmt-select .ant-select-selection-search{margin-inline-start:0px!important;font-size:16px;font-weight:500}.snmt-select .ant-select-selection-search input{font-size:16px!important;font-weight:500!important;color:var(--blue-dark-2)!important}.snmt-select .ant-select-arrow div{pointer-events:all;position:relative;z-index:10}.snmt-select .ant-select-disabled .ant-select-arrow div{pointer-events:none!important;cursor:not-allowed!important}.snmt-select .ant-select-single .ant-select-selection-item{font-family:Montserrat,sans-serif;font-weight:500;color:var(--blue-dark-2);font-size:16px}.snmt-select .ant-select-single .ant-select-selection-item img{display:none}.snmt-select .ant-select-multiple .ant-select-selector{padding:9px 48px 9px 16px!important}.snmt-select .ant-select-multiple .ant-select-selection-placeholder{inset-inline-start:16px;inset-inline-end:16px}.snmt-select .ant-select-multiple .ant-select-selection-item{background-color:var(--grey-light-2)}.snmt-select .ant-select-multiple .ant-select-selection-item-content{font-family:Montserrat,sans-serif;color:var(--blue-dark-2);font-weight:500;font-size:12px;margin-inline-end:6px}.snmt-select .ant-select-multiple .ant-select-selection-item-content img{display:none}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item .tag-wrapper{margin:0 3px}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item{margin-inline-start:3px;margin-inline-end:0;margin-block:0;padding-inline-start:0;padding-inline-end:0;height:22px;background:transparent}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item-rest .ant-select-selection-item-content{margin:0}.snmt-select .ant-select-multiple .ant-select-selection-overflow-item:first-of-type .tag-wrapper{margin-left:0;margin-right:3px}.snmt-select .ant-select-multiple .ant-select-selection-overflow .custom-placeholder{position:absolute;top:50%;transform:translateY(-50%);transition:all .3s;font-size:16px;font-weight:500;color:var(--grey-dark-2);font-family:Montserrat,sans-serif;text-align:left}.snmt-select .ant-select-open .ant-select-selector{box-shadow:none!important;border-color:var(--blue-primary)!important}.snmt-select .select-arrow{transition:transform .3s ease;position:relative;z-index:2}.snmt-select .select-arrow-rotated{transition:transform .3s ease;transform:rotate(180deg)}.snmt-select-focused{border-color:var(--blue-primary)!important}.ant-select-dropdown{padding:0}.ant-select-dropdown .ant-select-item{border-radius:0}.ant-select-dropdown .ant-select-item-option{padding:14px 16px}.ant-select-dropdown .ant-select-item-option-state{display:none}.ant-select-dropdown .ant-select-item-option-active{background-color:var(--blue-light-1)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content span{color:var(--grey-light-4)!important}.ant-select-dropdown .ant-select-item-option-disabled .ant-select-item-option-content img{filter:opacity(.5)}.ant-select-dropdown .ant-select-item-option-content span{font-family:Montserrat,sans-serif;color:var(--blue-dark-2);font-weight:500}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:transparent}.ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-content span{font-weight:600!important}.ant-select-dropdown .rc-virtual-list-holder{overflow-y:auto!important}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar{width:6px}.ant-select-dropdown .rc-virtual-list-holder::-webkit-scrollbar-thumb{background:var(--grey-light-4);border-radius:10px}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector{background:var(--grey-light-2);border:none!important}.ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{color:var(--grey-dark-1)!important}.rc-virtual-list-scrollbar.rc-virtual-list-scrollbar-vertical{visibility:hidden!important}.snmt-select-single .ant-select-item-option-state{display:block}.snmt-tag{display:flex;align-items:center;justify-content:center;border-radius:4px;border:none;margin-inline-end:0;padding:2px 6px;height:20px;background:var(--grey-light-2)}.snmt-tag .ant-tag-close-icon{display:flex;align-items:center;margin-inline-start:6px}.snmt-tag .ant-tag-close-icon:hover>path{fill:var(--blue-primary);transition:fill .2s ease-in-out}.snmt-tag.medium{padding:4px 8px;height:28px}.snmt-tag.medium .ant-tag-close-icon{margin-inline-start:7.75px}.clickable{cursor:pointer}.snmt-typography.ant-typography{color:var(--blue-dark-3);font-family:Montserrat,sans-serif;font-style:normal;font-feature-settings:"clig" off,"liga" off;line-height:normal;margin:0!important}.snmt-typography.snmt-typography-h1{font-size:32px;font-weight:700}.snmt-typography.snmt-typography-h2{font-size:20px;font-weight:600}.snmt-typography.snmt-typography-h3{font-size:18px;font-weight:600}.snmt-typography.snmt-typography-h4{font-size:16px;font-weight:600}.snmt-typography.snmt-typography-text1{font-size:16px;font-weight:500}.snmt-typography.snmt-typography-text2{font-size:14px;font-weight:600}.snmt-typography.snmt-typography-text3{font-size:8px;font-weight:500}.snmt-typography.snmt-typography-subtitle1{font-size:12px;font-weight:600;text-transform:uppercase}.snmt-typography.snmt-typography-body1{font-size:14px;font-weight:600}.snmt-typography.snmt-typography-body2{font-size:14px;font-weight:500}.snmt-typography.snmt-typography-body3{font-size:12px;font-weight:600}.snmt-typography.snmt-typography-body4{font-size:12px;font-weight:500;line-height:140%}.snmt-typography.snmt-typography-overline{font-size:12px;font-weight:500}.snmt-typography.snmt-typography-button1{font-size:14px;font-weight:600;line-height:130%}.snmt-typography.snmt-typography-button2{font-size:12px;font-weight:600;line-height:150%}.snmt-typography.snmt-typography-button3{font-size:12px;font-weight:500;line-height:150%}.snmt-typography.snmt-typography-button4{font-size:10px;font-weight:600;line-height:130%}.snmt-typography.snmt-typography-tag1{font-size:14px;font-weight:600;line-height:24px}.snmt-typography.snmt-typography-tag2{font-size:12px;font-weight:500;line-height:24px}.snmt-typography.snmt-typography-align-center{text-align:center}.snmt-typography.snmt-typography-align-justify{text-align:justify}.snmt-typography.snmt-typography-align-left{text-align:left}.snmt-typography.snmt-typography-align-right{text-align:right}.snmt-typography.collapsed{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overflow-button{width:fit-content;display:flex;align-items:center;border:none;margin-inline-end:3px;padding:2px 6px;height:20px;cursor:pointer;background:var(--grey-light-2)}.overflow-button:hover{background:var(--blue-light-1)}.overflow-button.open{background:var(--blue-light-2)}.snmt-popover .ant-popover-inner{padding:0}.snmt-popover.padding .ant-popover-inner{padding:16px}:root{--grey-light-0: #ffffff;--grey-light-1: #fafafc;--grey-light-2: #f2f2f7;--grey-light-3: #e5e5ea;--grey-light-4: #d1d1d6;--grey-dark-1: #babbc4;--grey-dark-2: #8f8f99;--grey-dark-3: #6d6d85;--grey-dark-4: #37373d;--grey-dark-5: #131314;--blue-primary: #004ed7;--blue-hover: #003899;--blue-light-1: #e5edfb;--blue-light-2: #deebff;--blue-light-3: #c3dbff;--blue-light-4: #a5c9ff;--blue-dark-1: #498bff;--blue-dark-2: #001e52;--purple-light: #e6e5ff;--purple-dark: #775ead;--notification-warning-light: #fef3ec;--notification-warning-dark: #cb662f;--notification-success-light: #e8f7f4;--notification-success-dark: #075e45;--notification-error-light: #fdeeee;--notification-error-dark: #a1160a}.snmt-avatar.ant-avatar{background-color:var(--blue-dark-2);color:var(--grey-light-0);font-family:Montserrat,sans-serif}.snmt-avatar.image.ant-avatar{background-color:transparent}.snmt-checkbox .ant-checkbox-indeterminate .ant-checkbox-inner:after{height:2px;background-color:var(--grey-light-0)}:not(.ant-checkbox-indeterminate).ant-checkbox-checked .ant-checkbox-inner:after{transform:rotate(45deg) scale(1) translate(-40%,-60%)}.ant-checkbox-inner{width:20px!important;height:20px!important}.ant-checkbox-checked .ant-checkbox-inner,.snmt-checkbox.ant-checkbox-checked .ant-checkbox-inner:hover{background-color:var(--blue-primary);border-color:var(--blue-primary)}.ant-checkbox:not(.ant-checkbox-checked) .ant-checkbox-inner{border:1px solid var(--grey-light-3)}.ant-checkbox+span{padding-inline-start:12px;padding-inline-end:unset;font-family:Montserrat,sans-serif;font-size:14px;font-weight:600;line-height:18px;letter-spacing:0;text-align:left}
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './CitySelect';
|
package/package.json
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"name": "@snmt-react-ui/city-select",
|
3
|
+
"private": false,
|
4
|
+
"version": "1.1.0",
|
5
|
+
"type": "module",
|
6
|
+
"main": "dist/city-select.js",
|
7
|
+
"types": "dist/index.d.ts",
|
8
|
+
"files": [
|
9
|
+
"dist"
|
10
|
+
],
|
11
|
+
"sideEffects": [
|
12
|
+
"**/*.css"
|
13
|
+
],
|
14
|
+
"publishConfig": {
|
15
|
+
"access": "public"
|
16
|
+
},
|
17
|
+
"scripts": {
|
18
|
+
"build": "tsc && vite build"
|
19
|
+
},
|
20
|
+
"dependencies": {
|
21
|
+
"@snmt-react-ui/core": "^1.3.5",
|
22
|
+
"@snmt-react-ui/select": "^1.3.22",
|
23
|
+
"i18next": "^23.11.5",
|
24
|
+
"react-i18next": "^14.1.1"
|
25
|
+
},
|
26
|
+
"gitHead": "d06e1625bb3e8c418fb702fe1b622df115a6bbb7"
|
27
|
+
}
|