@hh.ru/magritte-ui-select 11.0.27 → 11.0.28
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/SelectBottomSheet.js +1 -1
- package/SelectDrop.js +12 -10
- package/SelectDrop.js.map +1 -1
- package/SelectEmptyHint.js +1 -1
- package/SelectError.js +1 -1
- package/SelectModal.js +1 -1
- package/SelectOption.js +1 -1
- package/index.css +34 -30
- package/package.json +16 -16
package/SelectBottomSheet.js
CHANGED
|
@@ -24,7 +24,7 @@ import '@hh.ru/magritte-common-use-disabled';
|
|
|
24
24
|
import '@hh.ru/magritte-ui-checkable-card/CheckableCardElement';
|
|
25
25
|
import '@hh.ru/magritte-ui-checkbox-radio';
|
|
26
26
|
|
|
27
|
-
var styles = {"select-bottom-sheet":"magritte-select-bottom-sheet___1RZDJ_11-0-
|
|
27
|
+
var styles = {"select-bottom-sheet":"magritte-select-bottom-sheet___1RZDJ_11-0-28","selectBottomSheet":"magritte-select-bottom-sheet___1RZDJ_11-0-28","select-bottom-sheet_checkbox":"magritte-select-bottom-sheet_checkbox___hwTgo_11-0-28","selectBottomSheetCheckbox":"magritte-select-bottom-sheet_checkbox___hwTgo_11-0-28","select-bottom-sheet_radio":"magritte-select-bottom-sheet_radio___qvFFV_11-0-28","selectBottomSheetRadio":"magritte-select-bottom-sheet_radio___qvFFV_11-0-28","select-bottom-sheet_without-header":"magritte-select-bottom-sheet_without-header___KOKVh_11-0-28","selectBottomSheetWithoutHeader":"magritte-select-bottom-sheet_without-header___KOKVh_11-0-28","full-screen-placeholder":"magritte-full-screen-placeholder___zPC8k_11-0-28","fullScreenPlaceholder":"magritte-full-screen-placeholder___zPC8k_11-0-28","error-wrapper":"magritte-error-wrapper___P7jYg_11-0-28","errorWrapper":"magritte-error-wrapper___P7jYg_11-0-28"};
|
|
28
28
|
|
|
29
29
|
const SelectOptionDefault = ({ data, input, type, checked, plain, }) => {
|
|
30
30
|
if (type === 'delimiter') {
|
package/SelectDrop.js
CHANGED
|
@@ -21,7 +21,7 @@ import '@hh.ru/magritte-common-use-disabled';
|
|
|
21
21
|
import '@hh.ru/magritte-ui-checkable-card/CheckableCardElement';
|
|
22
22
|
import '@hh.ru/magritte-ui-checkbox-radio';
|
|
23
23
|
|
|
24
|
-
var styles = {"select-drop-container-wrapper":"magritte-select-drop-container-wrapper___OHM0q_11-0-
|
|
24
|
+
var styles = {"select-drop-container-wrapper":"magritte-select-drop-container-wrapper___OHM0q_11-0-28","selectDropContainerWrapper":"magritte-select-drop-container-wrapper___OHM0q_11-0-28","select-drop-container":"magritte-select-drop-container___hee1p_11-0-28","selectDropContainer":"magritte-select-drop-container___hee1p_11-0-28","select-drop-container_plain":"magritte-select-drop-container_plain___766zl_11-0-28","selectDropContainerPlain":"magritte-select-drop-container_plain___766zl_11-0-28","select-drop-container_with-footer":"magritte-select-drop-container_with-footer___6wp-L_11-0-28","selectDropContainerWithFooter":"magritte-select-drop-container_with-footer___6wp-L_11-0-28","select-drop":"magritte-select-drop___jn4O-_11-0-28","selectDrop":"magritte-select-drop___jn4O-_11-0-28","select-drop-header":"magritte-select-drop-header___fMmio_11-0-28","selectDropHeader":"magritte-select-drop-header___fMmio_11-0-28","select-drop_plain":"magritte-select-drop_plain___VL8Fz_11-0-28","selectDropPlain":"magritte-select-drop_plain___VL8Fz_11-0-28","label-option":"magritte-label-option___2N7t9_11-0-28","labelOption":"magritte-label-option___2N7t9_11-0-28","loading":"magritte-loading___AMiuq_11-0-28","hint":"magritte-hint___6qaFl_11-0-28"};
|
|
25
25
|
|
|
26
26
|
const SelectOptionDefault = ({ data, input, type, plain, checked, }) => {
|
|
27
27
|
if (type === 'delimiter') {
|
|
@@ -101,6 +101,16 @@ const SelectDrop = ({ activatorRef, type, name, multiple, applyChangesButton: _a
|
|
|
101
101
|
!searchInProgress &&
|
|
102
102
|
!internalError);
|
|
103
103
|
const optionsVisible = !loading && !emptySearchOptionsHintVisible && !emptyOptionsHintVisible && !internalError;
|
|
104
|
+
const footer = renderButtonsContainer({
|
|
105
|
+
applyChangesButton,
|
|
106
|
+
clearButton,
|
|
107
|
+
searchValue,
|
|
108
|
+
optionsCount: optionList.length,
|
|
109
|
+
loading,
|
|
110
|
+
isError: Boolean(internalError && innerErrorTrls),
|
|
111
|
+
emptyOptionsHintVisible: emptyOptionsHintVisible || emptySearchOptionsHintVisible,
|
|
112
|
+
});
|
|
113
|
+
const haveFooter = Boolean(footer);
|
|
104
114
|
return (jsx(Drop, { ...props, ref: optionsListRef, autoFocusWhenOpened: false, maxWidth: maxWidth, visible: (optionList.length > 0 ||
|
|
105
115
|
forceDropVisibleWithEmptyOptions ||
|
|
106
116
|
emptyOptionsHintVisible ||
|
|
@@ -113,15 +123,7 @@ const SelectDrop = ({ activatorRef, type, name, multiple, applyChangesButton: _a
|
|
|
113
123
|
if (keyboardMatches(event.nativeEvent, [keyboardKeys.Enter, keyboardKeys.Space])) {
|
|
114
124
|
closedByKeyboardRef.current = true;
|
|
115
125
|
}
|
|
116
|
-
}, widthEqualToActivator: widthEqualToActivator || loading, forcePlacement: true, footer:
|
|
117
|
-
applyChangesButton,
|
|
118
|
-
clearButton,
|
|
119
|
-
searchValue,
|
|
120
|
-
optionsCount: optionList.length,
|
|
121
|
-
loading,
|
|
122
|
-
isError: Boolean(internalError && innerErrorTrls),
|
|
123
|
-
emptyOptionsHintVisible: emptyOptionsHintVisible || emptySearchOptionsHintVisible,
|
|
124
|
-
}), onAfterExit: onDropClose, onAppear: onDropOpen, children: jsx("div", { className: styles.selectDropContainerWrapper, style: { maxHeight: `${maxHeight}px` }, children: jsxs("div", { className: classnames(styles.selectDropContainer, { [styles.selectDropContainerPlain]: plain }), children: [internalError && innerErrorTrls && jsx(SelectError, { innerErrorTrls: innerErrorTrls, reload: reload }), emptyOptionsHintVisible && jsx("div", { className: styles.hint, children: emptyOptionsHint }), emptySearchOptionsHintVisible && jsx("div", { className: styles.hint, children: emptyOptionsSearchHint }), loading && (jsx("div", { className: styles.loading, children: jsx(Loader, { size: 24 }) })), optionsVisible && (jsxs(Fragment, { children: [renderContentBefore && (jsx("div", { "data-qa": "magritte-select-header", className: styles.selectDropHeader, children: renderContentBefore({
|
|
126
|
+
}, widthEqualToActivator: widthEqualToActivator || loading, forcePlacement: true, footer: footer, onAfterExit: onDropClose, onAppear: onDropOpen, children: jsx("div", { className: styles.selectDropContainerWrapper, style: { maxHeight: `${maxHeight}px` }, children: jsxs("div", { className: classnames(styles.selectDropContainer, { [styles.selectDropContainerPlain]: plain }, { [styles.selectDropContainerWithFooter]: haveFooter }), children: [internalError && innerErrorTrls && jsx(SelectError, { innerErrorTrls: innerErrorTrls, reload: reload }), emptyOptionsHintVisible && jsx("div", { className: styles.hint, children: emptyOptionsHint }), emptySearchOptionsHintVisible && jsx("div", { className: styles.hint, children: emptyOptionsSearchHint }), loading && (jsx("div", { className: styles.loading, children: jsx(Loader, { size: 24 }) })), optionsVisible && (jsxs(Fragment, { children: [renderContentBefore && (jsx("div", { "data-qa": "magritte-select-header", className: styles.selectDropHeader, children: renderContentBefore({
|
|
125
127
|
clearSelectedValuesAndClose,
|
|
126
128
|
searchValue,
|
|
127
129
|
setSearchValue,
|
package/SelectDrop.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectDrop.js","sources":["../src/SelectDrop.tsx"],"sourcesContent":["import { useCallback, ReactElement, cloneElement, ComponentProps, ReactNode, useRef, KeyboardEvent } from 'react';\nimport classnames from 'classnames';\n\nimport { StaticDataFetcherItem } from '@hh.ru/magritte-common-data-provider';\nimport { keyboardKeys, keyboardMatches } from '@hh.ru/magritte-common-keyboard';\nimport { ActionBar } from '@hh.ru/magritte-ui-action-bar/ActionBar';\nimport { Button } from '@hh.ru/magritte-ui-button';\nimport { Cell, CellText } from '@hh.ru/magritte-ui-cell';\nimport { Drop } from '@hh.ru/magritte-ui-drop';\nimport { CheckOutlinedSize24 } from '@hh.ru/magritte-ui-icon/icon';\nimport { Loader } from '@hh.ru/magritte-ui-loader';\nimport { SelectError } from '@hh.ru/magritte-ui-select/SelectError';\nimport { SelectOption } from '@hh.ru/magritte-ui-select/SelectOption';\nimport { getChecked } from '@hh.ru/magritte-ui-select/getChecked';\nimport {\n OnChangeAction,\n SelectDropProps,\n RenderOptionTypeProps,\n RenderButtonsContainerProps,\n} from '@hh.ru/magritte-ui-select/types';\n\nimport styles from './select-drop.less';\n\nconst SelectOptionDefault = <DataType extends StaticDataFetcherItem>({\n data,\n input,\n type,\n plain,\n checked,\n}: RenderOptionTypeProps<DataType>): ReactElement => {\n if (type === 'delimiter') {\n return (\n <CellText maxLines={1} style=\"secondary\">\n {data.text}\n </CellText>\n );\n }\n if (type === 'label') {\n return (\n <Cell Element=\"div\" right={checked && plain ? <CheckOutlinedSize24 /> : undefined}>\n <div className={classnames({ [styles.labelOption]: !plain })}>\n <CellText maxLines={1}>{data.text}</CellText>\n </div>\n </Cell>\n );\n }\n return (\n <Cell Element=\"div\" align=\"center\" left={input}>\n <CellText maxLines={1}>{data.text}</CellText>\n </Cell>\n );\n};\n\nconst RenderButtonsContainerDefault = ({ applyChangesButton, loading }: RenderButtonsContainerProps): ReactNode => {\n if (loading || !applyChangesButton) {\n return null;\n }\n return <ActionBar primaryActions={applyChangesButton} />;\n};\n\nexport const SelectDrop = <MultipleType extends boolean, DataType extends StaticDataFetcherItem>({\n activatorRef,\n type,\n name,\n multiple,\n applyChangesButton: _applyChangesButton,\n clearButton: _clearButton,\n useInitialValuesOnClearAction,\n loading,\n renderItem = SelectOptionDefault,\n renderButtonsContainer = RenderButtonsContainerDefault,\n visible,\n optionList,\n optionsListRef,\n searchValue,\n setSearchValue,\n maxWidth,\n value: values,\n onChange,\n onClose,\n clearSelectedValues,\n setInitialValues,\n isLimitExceeded,\n plain,\n searchable,\n widthEqualToActivator,\n forceDropVisibleWithEmptyOptions,\n renderContentBefore,\n setForcedState,\n setSelectedValues,\n maxHeight,\n onDropClose,\n onDropOpen,\n emptyOptionsHint,\n emptyOptionsSearchHint,\n onApply,\n onClear,\n searchInProgress,\n internalError,\n reload,\n innerErrorTrls,\n optionDataQa,\n ...props\n}: SelectDropProps<MultipleType, DataType>): ReactElement => {\n const closedByKeyboardRef = useRef(false);\n const handleChange: OnChangeAction<DataType> = useCallback(\n (newValue, needToPut) => {\n onChange(newValue, needToPut);\n\n if (!multiple) {\n onClose?.();\n }\n\n if (!multiple && closedByKeyboardRef.current) {\n closedByKeyboardRef.current = false;\n setForcedState('focus');\n return;\n }\n\n if (multiple && searchValue) {\n setForcedState('focusAndSelect');\n return;\n }\n closedByKeyboardRef.current = false;\n setForcedState(null);\n },\n [multiple, onChange, onClose, searchValue, setForcedState]\n );\n\n const clearSelectedValuesAndClose = () => {\n if (useInitialValuesOnClearAction) {\n setInitialValues();\n } else {\n clearSelectedValues();\n }\n onClose?.();\n };\n const clearButton =\n _clearButton &&\n cloneElement(_clearButton, {\n key: 'clearButton',\n size: 'medium',\n 'data-qa': 'magritte-select-clear-action',\n onClick: () => {\n clearSelectedValuesAndClose();\n onClear?.();\n },\n } as Partial<ComponentProps<typeof Button>>);\n const needAddChangesButton = multiple && _applyChangesButton;\n const applyChangesButton =\n needAddChangesButton &&\n cloneElement(_applyChangesButton, {\n key: 'applyChangesButton',\n size: 'medium',\n 'data-qa': 'magritte-select-apply',\n onClick: () => {\n setSelectedValues();\n onClose?.();\n onApply?.({ isMobile: false, searchValue });\n },\n } as Partial<ComponentProps<typeof Button>>);\n\n const emptyOptionsHintVisible =\n optionList.length === 0 &&\n !searchValue &&\n !!emptyOptionsHint &&\n !loading &&\n !searchInProgress &&\n !internalError;\n const emptySearchOptionsHintVisible = !!(\n optionList.length === 0 &&\n searchValue &&\n !!emptyOptionsSearchHint &&\n !loading &&\n !searchInProgress &&\n !internalError\n );\n\n const optionsVisible = !loading && !emptySearchOptionsHintVisible && !emptyOptionsHintVisible && !internalError;\n\n return (\n <Drop\n {...props}\n ref={optionsListRef}\n autoFocusWhenOpened={false}\n maxWidth={maxWidth}\n visible={\n (optionList.length > 0 ||\n forceDropVisibleWithEmptyOptions ||\n emptyOptionsHintVisible ||\n emptySearchOptionsHintVisible ||\n internalError) &&\n visible\n }\n placement={['bottom-left', 'top-left']}\n activatorRef={activatorRef}\n role={searchable ? 'status' : 'listbox'}\n padding={plain ? 24 : 12}\n keyboardNavigationMode=\"list\"\n onClose={() => {\n setForcedState('focus');\n onClose?.();\n }}\n closeByClickOutside={false}\n onKeyDownCapture={(event: KeyboardEvent) => {\n if (keyboardMatches(event.nativeEvent, [keyboardKeys.Enter, keyboardKeys.Space])) {\n closedByKeyboardRef.current = true;\n }\n }}\n widthEqualToActivator={widthEqualToActivator || loading}\n forcePlacement\n footer={renderButtonsContainer({\n applyChangesButton,\n clearButton,\n searchValue,\n optionsCount: optionList.length,\n loading,\n isError: Boolean(internalError && innerErrorTrls),\n emptyOptionsHintVisible: emptyOptionsHintVisible || emptySearchOptionsHintVisible,\n })}\n onAfterExit={onDropClose}\n onAppear={onDropOpen}\n >\n <div className={styles.selectDropContainerWrapper} style={{ maxHeight: `${maxHeight}px` }}>\n <div className={classnames(styles.selectDropContainer, { [styles.selectDropContainerPlain]: plain })}>\n {internalError && innerErrorTrls && <SelectError innerErrorTrls={innerErrorTrls} reload={reload} />}\n {emptyOptionsHintVisible && <div className={styles.hint}>{emptyOptionsHint}</div>}\n {emptySearchOptionsHintVisible && <div className={styles.hint}>{emptyOptionsSearchHint}</div>}\n {loading && (\n <div className={styles.loading}>\n <Loader size={24} />\n </div>\n )}\n {optionsVisible && (\n <>\n {renderContentBefore && (\n <div data-qa=\"magritte-select-header\" className={styles.selectDropHeader}>\n {renderContentBefore({\n clearSelectedValuesAndClose,\n searchValue,\n setSearchValue,\n optionsCount: optionList.length,\n })}\n </div>\n )}\n <div\n className={classnames(styles.selectDrop, { [styles.selectDropPlain]: plain })}\n data-qa=\"magritte-select-option-list\"\n >\n {optionList.map((option) => {\n const checked = Boolean(option.data && getChecked(option.data, values ?? []));\n const disabled = !checked && (option.disabled || isLimitExceeded);\n return (\n <SelectOption\n key={option.data.value}\n name={name}\n checked={checked}\n onChange={handleChange}\n render={renderItem}\n disabled={disabled}\n type={option.type || type}\n plain={!!plain}\n multiple={multiple}\n data-qa={optionDataQa}\n data={option.data}\n />\n );\n })}\n </div>\n </>\n )}\n </div>\n </div>\n </Drop>\n );\n};\n"],"names":["_jsx","_jsxs","_Fragment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAM,mBAAmB,GAAG,CAAyC,EACjE,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,OAAO,GACuB,KAAkB;AAChD,IAAA,IAAI,IAAI,KAAK,WAAW,EAAE;AACtB,QAAA,QACIA,GAAC,CAAA,QAAQ,EAAC,EAAA,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAC,WAAW,EACnC,QAAA,EAAA,IAAI,CAAC,IAAI,EAAA,CACH,EACb;KACL;AACD,IAAA,IAAI,IAAI,KAAK,OAAO,EAAE;QAClB,QACIA,GAAC,CAAA,IAAI,EAAC,EAAA,OAAO,EAAC,KAAK,EAAC,KAAK,EAAE,OAAO,IAAI,KAAK,GAAGA,GAAA,CAAC,mBAAmB,EAAA,EAAA,CAAG,GAAG,SAAS,EAC7E,QAAA,EAAAA,GAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAE,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,WAAW,GAAG,CAAC,KAAK,EAAE,CAAC,EACxD,QAAA,EAAAA,GAAA,CAAC,QAAQ,EAAC,EAAA,QAAQ,EAAE,CAAC,EAAG,QAAA,EAAA,IAAI,CAAC,IAAI,EAAY,CAAA,EAAA,CAC3C,EACH,CAAA,EACT;KACL;AACD,IAAA,QACIA,GAAA,CAAC,IAAI,EAAA,EAAC,OAAO,EAAC,KAAK,EAAC,KAAK,EAAC,QAAQ,EAAC,IAAI,EAAE,KAAK,EAAA,QAAA,EAC1CA,GAAC,CAAA,QAAQ,EAAC,EAAA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AAC,IAAI,CAAC,KAAK,CAWxB,EACJ;iCACL,CAAC,GACA,CACP,EAAA,CAAA,CACN,IACC,EACJ,CAAA,EAAA,CACH,EACT;AACN;;;;"}
|
|
1
|
+
{"version":3,"file":"SelectDrop.js","sources":["../src/SelectDrop.tsx"],"sourcesContent":["import { useCallback, ReactElement, cloneElement, ComponentProps, ReactNode, useRef, KeyboardEvent } from 'react';\nimport classnames from 'classnames';\n\nimport { StaticDataFetcherItem } from '@hh.ru/magritte-common-data-provider';\nimport { keyboardKeys, keyboardMatches } from '@hh.ru/magritte-common-keyboard';\nimport { ActionBar } from '@hh.ru/magritte-ui-action-bar/ActionBar';\nimport { Button } from '@hh.ru/magritte-ui-button';\nimport { Cell, CellText } from '@hh.ru/magritte-ui-cell';\nimport { Drop } from '@hh.ru/magritte-ui-drop';\nimport { CheckOutlinedSize24 } from '@hh.ru/magritte-ui-icon/icon';\nimport { Loader } from '@hh.ru/magritte-ui-loader';\nimport { SelectError } from '@hh.ru/magritte-ui-select/SelectError';\nimport { SelectOption } from '@hh.ru/magritte-ui-select/SelectOption';\nimport { getChecked } from '@hh.ru/magritte-ui-select/getChecked';\nimport {\n OnChangeAction,\n SelectDropProps,\n RenderOptionTypeProps,\n RenderButtonsContainerProps,\n} from '@hh.ru/magritte-ui-select/types';\n\nimport styles from './select-drop.less';\n\nconst SelectOptionDefault = <DataType extends StaticDataFetcherItem>({\n data,\n input,\n type,\n plain,\n checked,\n}: RenderOptionTypeProps<DataType>): ReactElement => {\n if (type === 'delimiter') {\n return (\n <CellText maxLines={1} style=\"secondary\">\n {data.text}\n </CellText>\n );\n }\n if (type === 'label') {\n return (\n <Cell Element=\"div\" right={checked && plain ? <CheckOutlinedSize24 /> : undefined}>\n <div className={classnames({ [styles.labelOption]: !plain })}>\n <CellText maxLines={1}>{data.text}</CellText>\n </div>\n </Cell>\n );\n }\n return (\n <Cell Element=\"div\" align=\"center\" left={input}>\n <CellText maxLines={1}>{data.text}</CellText>\n </Cell>\n );\n};\n\nconst RenderButtonsContainerDefault = ({ applyChangesButton, loading }: RenderButtonsContainerProps): ReactNode => {\n if (loading || !applyChangesButton) {\n return null;\n }\n return <ActionBar primaryActions={applyChangesButton} />;\n};\n\nexport const SelectDrop = <MultipleType extends boolean, DataType extends StaticDataFetcherItem>({\n activatorRef,\n type,\n name,\n multiple,\n applyChangesButton: _applyChangesButton,\n clearButton: _clearButton,\n useInitialValuesOnClearAction,\n loading,\n renderItem = SelectOptionDefault,\n renderButtonsContainer = RenderButtonsContainerDefault,\n visible,\n optionList,\n optionsListRef,\n searchValue,\n setSearchValue,\n maxWidth,\n value: values,\n onChange,\n onClose,\n clearSelectedValues,\n setInitialValues,\n isLimitExceeded,\n plain,\n searchable,\n widthEqualToActivator,\n forceDropVisibleWithEmptyOptions,\n renderContentBefore,\n setForcedState,\n setSelectedValues,\n maxHeight,\n onDropClose,\n onDropOpen,\n emptyOptionsHint,\n emptyOptionsSearchHint,\n onApply,\n onClear,\n searchInProgress,\n internalError,\n reload,\n innerErrorTrls,\n optionDataQa,\n ...props\n}: SelectDropProps<MultipleType, DataType>): ReactElement => {\n const closedByKeyboardRef = useRef(false);\n const handleChange: OnChangeAction<DataType> = useCallback(\n (newValue, needToPut) => {\n onChange(newValue, needToPut);\n\n if (!multiple) {\n onClose?.();\n }\n\n if (!multiple && closedByKeyboardRef.current) {\n closedByKeyboardRef.current = false;\n setForcedState('focus');\n return;\n }\n\n if (multiple && searchValue) {\n setForcedState('focusAndSelect');\n return;\n }\n closedByKeyboardRef.current = false;\n setForcedState(null);\n },\n [multiple, onChange, onClose, searchValue, setForcedState]\n );\n\n const clearSelectedValuesAndClose = () => {\n if (useInitialValuesOnClearAction) {\n setInitialValues();\n } else {\n clearSelectedValues();\n }\n onClose?.();\n };\n const clearButton =\n _clearButton &&\n cloneElement(_clearButton, {\n key: 'clearButton',\n size: 'medium',\n 'data-qa': 'magritte-select-clear-action',\n onClick: () => {\n clearSelectedValuesAndClose();\n onClear?.();\n },\n } as Partial<ComponentProps<typeof Button>>);\n const needAddChangesButton = multiple && _applyChangesButton;\n const applyChangesButton =\n needAddChangesButton &&\n cloneElement(_applyChangesButton, {\n key: 'applyChangesButton',\n size: 'medium',\n 'data-qa': 'magritte-select-apply',\n onClick: () => {\n setSelectedValues();\n onClose?.();\n onApply?.({ isMobile: false, searchValue });\n },\n } as Partial<ComponentProps<typeof Button>>);\n\n const emptyOptionsHintVisible =\n optionList.length === 0 &&\n !searchValue &&\n !!emptyOptionsHint &&\n !loading &&\n !searchInProgress &&\n !internalError;\n const emptySearchOptionsHintVisible = !!(\n optionList.length === 0 &&\n searchValue &&\n !!emptyOptionsSearchHint &&\n !loading &&\n !searchInProgress &&\n !internalError\n );\n\n const optionsVisible = !loading && !emptySearchOptionsHintVisible && !emptyOptionsHintVisible && !internalError;\n const footer = renderButtonsContainer({\n applyChangesButton,\n clearButton,\n searchValue,\n optionsCount: optionList.length,\n loading,\n isError: Boolean(internalError && innerErrorTrls),\n emptyOptionsHintVisible: emptyOptionsHintVisible || emptySearchOptionsHintVisible,\n });\n const haveFooter = Boolean(footer);\n\n return (\n <Drop\n {...props}\n ref={optionsListRef}\n autoFocusWhenOpened={false}\n maxWidth={maxWidth}\n visible={\n (optionList.length > 0 ||\n forceDropVisibleWithEmptyOptions ||\n emptyOptionsHintVisible ||\n emptySearchOptionsHintVisible ||\n internalError) &&\n visible\n }\n placement={['bottom-left', 'top-left']}\n activatorRef={activatorRef}\n role={searchable ? 'status' : 'listbox'}\n padding={plain ? 24 : 12}\n keyboardNavigationMode=\"list\"\n onClose={() => {\n setForcedState('focus');\n onClose?.();\n }}\n closeByClickOutside={false}\n onKeyDownCapture={(event: KeyboardEvent) => {\n if (keyboardMatches(event.nativeEvent, [keyboardKeys.Enter, keyboardKeys.Space])) {\n closedByKeyboardRef.current = true;\n }\n }}\n widthEqualToActivator={widthEqualToActivator || loading}\n forcePlacement\n footer={footer}\n onAfterExit={onDropClose}\n onAppear={onDropOpen}\n >\n <div className={styles.selectDropContainerWrapper} style={{ maxHeight: `${maxHeight}px` }}>\n <div\n className={classnames(\n styles.selectDropContainer,\n { [styles.selectDropContainerPlain]: plain },\n { [styles.selectDropContainerWithFooter]: haveFooter }\n )}\n >\n {internalError && innerErrorTrls && <SelectError innerErrorTrls={innerErrorTrls} reload={reload} />}\n {emptyOptionsHintVisible && <div className={styles.hint}>{emptyOptionsHint}</div>}\n {emptySearchOptionsHintVisible && <div className={styles.hint}>{emptyOptionsSearchHint}</div>}\n {loading && (\n <div className={styles.loading}>\n <Loader size={24} />\n </div>\n )}\n {optionsVisible && (\n <>\n {renderContentBefore && (\n <div data-qa=\"magritte-select-header\" className={styles.selectDropHeader}>\n {renderContentBefore({\n clearSelectedValuesAndClose,\n searchValue,\n setSearchValue,\n optionsCount: optionList.length,\n })}\n </div>\n )}\n <div\n className={classnames(styles.selectDrop, { [styles.selectDropPlain]: plain })}\n data-qa=\"magritte-select-option-list\"\n >\n {optionList.map((option) => {\n const checked = Boolean(option.data && getChecked(option.data, values ?? []));\n const disabled = !checked && (option.disabled || isLimitExceeded);\n return (\n <SelectOption\n key={option.data.value}\n name={name}\n checked={checked}\n onChange={handleChange}\n render={renderItem}\n disabled={disabled}\n type={option.type || type}\n plain={!!plain}\n multiple={multiple}\n data-qa={optionDataQa}\n data={option.data}\n />\n );\n })}\n </div>\n </>\n )}\n </div>\n </div>\n </Drop>\n );\n};\n"],"names":["_jsx","_jsxs","_Fragment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAM,mBAAmB,GAAG,CAAyC,EACjE,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,KAAK,EACL,OAAO,GACuB,KAAkB;AAChD,IAAA,IAAI,IAAI,KAAK,WAAW,EAAE;AACtB,QAAA,QACIA,GAAC,CAAA,QAAQ,EAAC,EAAA,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAC,WAAW,EACnC,QAAA,EAAA,IAAI,CAAC,IAAI,EAAA,CACH,EACb;KACL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A,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,GAAG,KAAK,EAAE,CAAC,aACrE,6BAA6B,EAAA,QAAA,EAEpC,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,KAAI;AACvB,oCAAA,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC;AAC9E,oCAAA,MAAM,QAAQ,GAAG,CAAC,OAAO,KAAK,MAAM,CAAC,QAAQ,IAAI,eAAe,CAAC,CAAC;oCAClE,QACIA,GAAC,CAAA,YAAY,EAET,EAAA,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,IAAI,EACzB,KAAK,EAAE,CAAC,CAAC,KAAK,EACd,QAAQ,EAAE,QAAQ,EACT,SAAA,EAAA,YAAY,EACrB,IAAI,EAAE,MAAM,CAAC,IAAI,EAVZ,EAAA,MAAM,CAAC,IAAI,CAAC,KAAK,CAWxB,EACJ;iCACL,CAAC,GACA,CACP,EAAA,CAAA,CACN,IACC,EACJ,CAAA,EAAA,CACH,EACT;AACN;;;;"}
|
package/SelectEmptyHint.js
CHANGED
|
@@ -6,7 +6,7 @@ import { VSpacing } from '@hh.ru/magritte-ui-spacing';
|
|
|
6
6
|
import { Title } from '@hh.ru/magritte-ui-title';
|
|
7
7
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
8
8
|
|
|
9
|
-
var styles = {"select-empty-hint":"magritte-select-empty-hint___B39XJ_11-0-
|
|
9
|
+
var styles = {"select-empty-hint":"magritte-select-empty-hint___B39XJ_11-0-28","selectEmptyHint":"magritte-select-empty-hint___B39XJ_11-0-28","icon":"magritte-icon___F0GQx_11-0-28","icon-init":"magritte-icon-init___GWK-V_11-0-28","iconInit":"magritte-icon-init___GWK-V_11-0-28","icon-search":"magritte-icon-search___ZsqO-_11-0-28","iconSearch":"magritte-icon-search___ZsqO-_11-0-28"};
|
|
10
10
|
|
|
11
11
|
const SelectEmptyHint = ({ title, titleElement, description, type }) => {
|
|
12
12
|
return (jsxs("div", { className: styles.selectEmptyHint, children: [type === 'init' && (jsx("div", { className: classnames(styles.icon, styles.iconInit), children: jsx(MagnifierOutlinedSize24, {}) })), type === 'emptySearch' && (jsx("div", { className: classnames(styles.icon, styles.iconSearch), children: jsx(EmojiHalfsadOutlinedSize24, {}) })), jsx(VSpacing, { default: 32 }), jsx(Title, { Element: titleElement, size: "small", children: title }), jsx(VSpacing, { default: 8 }), Boolean(description) && (jsx(Text, { typography: "paragraph-2-regular", style: "secondary", children: description }))] }));
|
package/SelectError.js
CHANGED
|
@@ -7,7 +7,7 @@ import { VSpacing } from '@hh.ru/magritte-ui-spacing';
|
|
|
7
7
|
import { Title } from '@hh.ru/magritte-ui-title';
|
|
8
8
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
9
9
|
|
|
10
|
-
var styles = {"error-container":"magritte-error-container___t9B5w_11-0-
|
|
10
|
+
var styles = {"error-container":"magritte-error-container___t9B5w_11-0-28","errorContainer":"magritte-error-container___t9B5w_11-0-28"};
|
|
11
11
|
|
|
12
12
|
const SelectError = ({ innerErrorTrls, reload, }) => {
|
|
13
13
|
const { isMobile } = useBreakpoint();
|
package/SelectModal.js
CHANGED
|
@@ -23,7 +23,7 @@ import '@hh.ru/magritte-common-use-disabled';
|
|
|
23
23
|
import '@hh.ru/magritte-ui-checkable-card/CheckableCardElement';
|
|
24
24
|
import '@hh.ru/magritte-ui-checkbox-radio';
|
|
25
25
|
|
|
26
|
-
var styles = {"select-modal-wrapper":"magritte-select-modal-wrapper___5BhtC_11-0-
|
|
26
|
+
var styles = {"select-modal-wrapper":"magritte-select-modal-wrapper___5BhtC_11-0-28","selectModalWrapper":"magritte-select-modal-wrapper___5BhtC_11-0-28","select-modal":"magritte-select-modal___f9wc6_11-0-28","selectModal":"magritte-select-modal___f9wc6_11-0-28","select-modal_plain":"magritte-select-modal_plain___0rP39_11-0-28","selectModalPlain":"magritte-select-modal_plain___0rP39_11-0-28","label-option":"magritte-label-option___kFAuR_11-0-28","labelOption":"magritte-label-option___kFAuR_11-0-28","layer-full-height":"magritte-layer-full-height___cJX-K_11-0-28","layerFullHeight":"magritte-layer-full-height___cJX-K_11-0-28"};
|
|
27
27
|
|
|
28
28
|
const SelectOptionDefault = ({ data, input, type, plain, checked, }) => {
|
|
29
29
|
if (type === 'delimiter') {
|
package/SelectOption.js
CHANGED
|
@@ -8,7 +8,7 @@ import { CheckableCardElement } from '@hh.ru/magritte-ui-checkable-card/Checkabl
|
|
|
8
8
|
import { Radio, Checkbox } from '@hh.ru/magritte-ui-checkbox-radio';
|
|
9
9
|
import { Text } from '@hh.ru/magritte-ui-typography';
|
|
10
10
|
|
|
11
|
-
var styles = {"select-option-plain":"magritte-select-option-plain___dfz4a_11-0-
|
|
11
|
+
var styles = {"select-option-plain":"magritte-select-option-plain___dfz4a_11-0-28","selectOptionPlain":"magritte-select-option-plain___dfz4a_11-0-28","select-option-plain_active":"magritte-select-option-plain_active___AQSQS_11-0-28","selectOptionPlainActive":"magritte-select-option-plain_active___AQSQS_11-0-28","select-delimiter":"magritte-select-delimiter___WyeR6_11-0-28","selectDelimiter":"magritte-select-delimiter___WyeR6_11-0-28"};
|
|
12
12
|
|
|
13
13
|
const CheckableComponent = ({ type, value, checked, name, onChange, 'data-qa': dataQa, }) => {
|
|
14
14
|
if (type === 'label') {
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.magritte-error-container___t9B5w_11-0-
|
|
1
|
+
.magritte-error-container___t9B5w_11-0-28{
|
|
2
2
|
display:flex;
|
|
3
3
|
flex-direction:column;
|
|
4
4
|
align-items:center;
|
|
@@ -6,25 +6,25 @@
|
|
|
6
6
|
justify-content:center;
|
|
7
7
|
}
|
|
8
8
|
@media (min-width: 1020px){
|
|
9
|
-
body.magritte-old-layout .magritte-error-container___t9B5w_11-0-
|
|
9
|
+
body.magritte-old-layout .magritte-error-container___t9B5w_11-0-28{
|
|
10
10
|
min-height:320px;
|
|
11
11
|
height:auto;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
@media (min-width: 1024px){
|
|
15
|
-
body:not(.magritte-old-layout) .magritte-error-container___t9B5w_11-0-
|
|
15
|
+
body:not(.magritte-old-layout) .magritte-error-container___t9B5w_11-0-28{
|
|
16
16
|
min-height:320px;
|
|
17
17
|
height:auto;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.magritte-select-option-plain___dfz4a_11-0-
|
|
21
|
+
.magritte-select-option-plain___dfz4a_11-0-28:hover{
|
|
22
22
|
cursor:default;
|
|
23
23
|
}
|
|
24
|
-
.magritte-select-option-plain_active___AQSQS_11-0-
|
|
24
|
+
.magritte-select-option-plain_active___AQSQS_11-0-28:hover{
|
|
25
25
|
cursor:pointer;
|
|
26
26
|
}
|
|
27
|
-
.magritte-select-delimiter___WyeR6_11-0-
|
|
27
|
+
.magritte-select-delimiter___WyeR6_11-0-28{
|
|
28
28
|
padding-left:16px;
|
|
29
29
|
padding-top:12px;
|
|
30
30
|
}
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
:root{
|
|
33
33
|
--magritte-static-space-400-v21-5-1:16px;
|
|
34
34
|
}
|
|
35
|
-
.magritte-select-bottom-sheet___1RZDJ_11-0-
|
|
35
|
+
.magritte-select-bottom-sheet___1RZDJ_11-0-28{
|
|
36
36
|
display:flex;
|
|
37
37
|
flex-direction:column;
|
|
38
38
|
padding:0 var(--magritte-static-space-400-v21-5-1);
|
|
39
39
|
padding-bottom:16px;
|
|
40
40
|
}
|
|
41
|
-
.magritte-select-bottom-sheet_checkbox___hwTgo_11-0-
|
|
42
|
-
.magritte-select-bottom-sheet_radio___qvFFV_11-0-
|
|
41
|
+
.magritte-select-bottom-sheet_checkbox___hwTgo_11-0-28,
|
|
42
|
+
.magritte-select-bottom-sheet_radio___qvFFV_11-0-28{
|
|
43
43
|
gap:12px;
|
|
44
44
|
}
|
|
45
|
-
.magritte-select-bottom-sheet_without-header___KOKVh_11-0-
|
|
45
|
+
.magritte-select-bottom-sheet_without-header___KOKVh_11-0-28{
|
|
46
46
|
padding-top:16px;
|
|
47
47
|
}
|
|
48
|
-
.magritte-full-screen-placeholder___zPC8k_11-0-
|
|
48
|
+
.magritte-full-screen-placeholder___zPC8k_11-0-28{
|
|
49
49
|
display:flex;
|
|
50
50
|
flex-direction:column;
|
|
51
51
|
align-items:center;
|
|
52
52
|
height:100%;
|
|
53
53
|
justify-content:center;
|
|
54
54
|
}
|
|
55
|
-
.magritte-error-wrapper___P7jYg_11-0-
|
|
55
|
+
.magritte-error-wrapper___P7jYg_11-0-28{
|
|
56
56
|
height:100%;
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -60,44 +60,48 @@
|
|
|
60
60
|
--magritte-static-space-300-v21-5-1:12px;
|
|
61
61
|
--magritte-static-space-600-v21-5-1:24px;
|
|
62
62
|
}
|
|
63
|
-
.magritte-select-drop-container-wrapper___OHM0q_11-0-
|
|
63
|
+
.magritte-select-drop-container-wrapper___OHM0q_11-0-28{
|
|
64
64
|
display:flex;
|
|
65
65
|
flex-direction:column;
|
|
66
66
|
}
|
|
67
|
-
.magritte-select-drop-container___hee1p_11-0-
|
|
67
|
+
.magritte-select-drop-container___hee1p_11-0-28{
|
|
68
68
|
display:flex;
|
|
69
69
|
flex-direction:column;
|
|
70
70
|
padding:var(--magritte-static-space-300-v21-5-1);
|
|
71
71
|
margin:calc(-1 * var(--magritte-static-space-300-v21-5-1));
|
|
72
72
|
}
|
|
73
|
-
.magritte-select-drop-container_plain___766zl_11-0-
|
|
73
|
+
.magritte-select-drop-container_plain___766zl_11-0-28{
|
|
74
74
|
padding:var(--magritte-static-space-600-v21-5-1);
|
|
75
75
|
margin:calc(-1 * var(--magritte-static-space-600-v21-5-1));
|
|
76
76
|
}
|
|
77
|
-
.magritte-select-
|
|
77
|
+
.magritte-select-drop-container_with-footer___6wp-L_11-0-28{
|
|
78
|
+
margin-bottom:0;
|
|
79
|
+
padding-bottom:0;
|
|
80
|
+
}
|
|
81
|
+
.magritte-select-drop___jn4O-_11-0-28{
|
|
78
82
|
display:flex;
|
|
79
83
|
flex-direction:column;
|
|
80
84
|
gap:8px;
|
|
81
85
|
}
|
|
82
|
-
.magritte-select-drop-header___fMmio_11-0-
|
|
86
|
+
.magritte-select-drop-header___fMmio_11-0-28{
|
|
83
87
|
display:flex;
|
|
84
88
|
flex-direction:column;
|
|
85
89
|
margin-bottom:8px;
|
|
86
90
|
}
|
|
87
|
-
.magritte-select-drop_plain___VL8Fz_11-0-
|
|
91
|
+
.magritte-select-drop_plain___VL8Fz_11-0-28{
|
|
88
92
|
gap:16px;
|
|
89
93
|
}
|
|
90
|
-
.magritte-label-option___2N7t9_11-0-
|
|
94
|
+
.magritte-label-option___2N7t9_11-0-28{
|
|
91
95
|
display:flex;
|
|
92
96
|
justify-content:center;
|
|
93
97
|
}
|
|
94
|
-
.magritte-loading___AMiuq_11-0-
|
|
98
|
+
.magritte-loading___AMiuq_11-0-28{
|
|
95
99
|
display:flex;
|
|
96
100
|
align-items:center;
|
|
97
101
|
height:150px;
|
|
98
102
|
justify-content:center;
|
|
99
103
|
}
|
|
100
|
-
.magritte-hint___6qaFl_11-0-
|
|
104
|
+
.magritte-hint___6qaFl_11-0-28{
|
|
101
105
|
display:flex;
|
|
102
106
|
flex-direction:column;
|
|
103
107
|
align-items:center;
|
|
@@ -105,24 +109,24 @@
|
|
|
105
109
|
justify-content:center;
|
|
106
110
|
}
|
|
107
111
|
|
|
108
|
-
.magritte-select-modal-wrapper___5BhtC_11-0-
|
|
112
|
+
.magritte-select-modal-wrapper___5BhtC_11-0-28{
|
|
109
113
|
display:flex;
|
|
110
114
|
flex-direction:column;
|
|
111
115
|
flex-grow:1;
|
|
112
116
|
}
|
|
113
|
-
.magritte-select-modal___f9wc6_11-0-
|
|
117
|
+
.magritte-select-modal___f9wc6_11-0-28{
|
|
114
118
|
display:flex;
|
|
115
119
|
flex-direction:column;
|
|
116
120
|
gap:12px;
|
|
117
121
|
}
|
|
118
|
-
.magritte-select-modal_plain___0rP39_11-0-
|
|
122
|
+
.magritte-select-modal_plain___0rP39_11-0-28{
|
|
119
123
|
gap:0;
|
|
120
124
|
}
|
|
121
|
-
.magritte-label-option___kFAuR_11-0-
|
|
125
|
+
.magritte-label-option___kFAuR_11-0-28{
|
|
122
126
|
display:flex;
|
|
123
127
|
justify-content:center;
|
|
124
128
|
}
|
|
125
|
-
.magritte-layer-full-height___cJX-K_11-0-
|
|
129
|
+
.magritte-layer-full-height___cJX-K_11-0-28{
|
|
126
130
|
display:flex;
|
|
127
131
|
flex-direction:column;
|
|
128
132
|
align-items:center;
|
|
@@ -143,14 +147,14 @@
|
|
|
143
147
|
--magritte-color-icon-tertiary-v21-5-1:#767676;
|
|
144
148
|
--magritte-color-icon-accent-v21-5-1:#5e9eff;
|
|
145
149
|
}
|
|
146
|
-
.magritte-select-empty-hint___B39XJ_11-0-
|
|
150
|
+
.magritte-select-empty-hint___B39XJ_11-0-28{
|
|
147
151
|
display:flex;
|
|
148
152
|
flex-direction:column;
|
|
149
153
|
justify-content:center;
|
|
150
154
|
align-content:center;
|
|
151
155
|
align-items:center;
|
|
152
156
|
}
|
|
153
|
-
.magritte-icon___F0GQx_11-0-
|
|
157
|
+
.magritte-icon___F0GQx_11-0-28{
|
|
154
158
|
display:flex;
|
|
155
159
|
align-items:center;
|
|
156
160
|
justify-content:center;
|
|
@@ -158,11 +162,11 @@
|
|
|
158
162
|
height:48px;
|
|
159
163
|
border-radius:50%;
|
|
160
164
|
}
|
|
161
|
-
.magritte-icon-init___GWK-V_11-0-
|
|
165
|
+
.magritte-icon-init___GWK-V_11-0-28{
|
|
162
166
|
background-color:var(--magritte-color-background-accent-secondary-v21-5-1);
|
|
163
167
|
--magritte-ui-icon-color-override:var(--magritte-color-icon-accent-v21-5-1);
|
|
164
168
|
}
|
|
165
|
-
.magritte-icon-search___ZsqO-_11-0-
|
|
169
|
+
.magritte-icon-search___ZsqO-_11-0-28{
|
|
166
170
|
background-color:var(--magritte-color-background-secondary-v21-5-1);
|
|
167
171
|
--magritte-ui-icon-color-override:var(--magritte-color-icon-tertiary-v21-5-1);
|
|
168
172
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-select",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.28",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -31,25 +31,25 @@
|
|
|
31
31
|
"@hh.ru/magritte-common-keyboard": "4.1.2",
|
|
32
32
|
"@hh.ru/magritte-common-use-disabled": "1.0.12",
|
|
33
33
|
"@hh.ru/magritte-common-use-multiple-refs": "1.1.7",
|
|
34
|
-
"@hh.ru/magritte-ui-action-bar": "4.0.
|
|
35
|
-
"@hh.ru/magritte-ui-bottom-sheet": "7.2.
|
|
34
|
+
"@hh.ru/magritte-ui-action-bar": "4.0.2",
|
|
35
|
+
"@hh.ru/magritte-ui-bottom-sheet": "7.2.21",
|
|
36
36
|
"@hh.ru/magritte-ui-breakpoint": "5.0.3",
|
|
37
|
-
"@hh.ru/magritte-ui-button": "5.3.
|
|
38
|
-
"@hh.ru/magritte-ui-button-stack": "2.1.
|
|
39
|
-
"@hh.ru/magritte-ui-cell": "5.0.
|
|
40
|
-
"@hh.ru/magritte-ui-checkable-card": "3.0.
|
|
41
|
-
"@hh.ru/magritte-ui-checkbox-radio": "3.0.
|
|
42
|
-
"@hh.ru/magritte-ui-drop": "10.0.
|
|
43
|
-
"@hh.ru/magritte-ui-icon": "11.0.
|
|
44
|
-
"@hh.ru/magritte-ui-input": "7.2.
|
|
45
|
-
"@hh.ru/magritte-ui-loader": "1.3.
|
|
46
|
-
"@hh.ru/magritte-ui-modal": "8.1.
|
|
47
|
-
"@hh.ru/magritte-ui-navigation-bar": "9.0.
|
|
37
|
+
"@hh.ru/magritte-ui-button": "5.3.15",
|
|
38
|
+
"@hh.ru/magritte-ui-button-stack": "2.1.65",
|
|
39
|
+
"@hh.ru/magritte-ui-cell": "5.0.9",
|
|
40
|
+
"@hh.ru/magritte-ui-checkable-card": "3.0.98",
|
|
41
|
+
"@hh.ru/magritte-ui-checkbox-radio": "3.0.61",
|
|
42
|
+
"@hh.ru/magritte-ui-drop": "10.0.2",
|
|
43
|
+
"@hh.ru/magritte-ui-icon": "11.0.12",
|
|
44
|
+
"@hh.ru/magritte-ui-input": "7.2.21",
|
|
45
|
+
"@hh.ru/magritte-ui-loader": "1.3.42",
|
|
46
|
+
"@hh.ru/magritte-ui-modal": "8.1.23",
|
|
47
|
+
"@hh.ru/magritte-ui-navigation-bar": "9.0.21",
|
|
48
48
|
"@hh.ru/magritte-ui-spacing": "2.0.55",
|
|
49
49
|
"@hh.ru/magritte-ui-theme-provider": "1.1.50",
|
|
50
50
|
"@hh.ru/magritte-ui-title": "6.1.19",
|
|
51
|
-
"@hh.ru/magritte-ui-trigger": "3.1.
|
|
51
|
+
"@hh.ru/magritte-ui-trigger": "3.1.19",
|
|
52
52
|
"@hh.ru/magritte-ui-typography": "3.0.46"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "98345837f5a81196f61f757e9cc17ed0fc6f1c65"
|
|
55
55
|
}
|