@itcase/ui 1.8.21 → 1.8.22

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 (191) hide show
  1. package/dist/{Avatar_cjs_CiQ14ufF.js → Avatar_cjs_DSXs1Yrg.js} +2 -21
  2. package/dist/{Avatar_es_No9vSqji.js → Avatar_es_DByUaJL6.js} +2 -21
  3. package/dist/{Button_cjs_CnStmeGt.js → Button_cjs_CukkOE-v.js} +5 -4
  4. package/dist/{Button_es_BV1bepl1.js → Button_es_DXcCJuNX.js} +5 -4
  5. package/dist/{ChipsGroup_cjs_CL00pWKy.js → ChipsGroup_cjs_9wrMZrzL.js} +1 -1
  6. package/dist/{ChipsGroup_es_Ciln2otW.js → ChipsGroup_es_CjGZ-ulT.js} +1 -1
  7. package/dist/{DatePicker_cjs_DGgkpGbI.js → DatePicker_cjs_BriuTQqj.js} +3 -3
  8. package/dist/{DatePicker_es_BIOyGm22.js → DatePicker_es_DzY_fVii.js} +3 -3
  9. package/dist/{DropdownItem_cjs_DT-zspEr.js → DropdownItem_cjs_DY61IdLK.js} +1 -1
  10. package/dist/{DropdownItem_es_BJLFqVuH.js → DropdownItem_es_D8mY9vFZ.js} +1 -1
  11. package/dist/{Label_cjs_Cqcf6ffp.js → Label_cjs_CnwET26s.js} +11 -3
  12. package/dist/{Label_es_CeNdA70T.js → Label_es_Dc18d1gY.js} +11 -3
  13. package/dist/{Link_cjs_BlXrJ15R.js → Link_cjs_DbRGq2Yk.js} +9 -9
  14. package/dist/{Link_es_CyJn7NFb.js → Link_es_DxtZLeKY.js} +9 -9
  15. package/dist/{Tooltip_cjs_Cq5kuaIK.js → Tooltip_cjs_PkuRdzzy.js} +3 -3
  16. package/dist/{Tooltip_es_D0PSqI2c.js → Tooltip_es_BaGfb-qC.js} +3 -3
  17. package/dist/cjs/components/Accordion.js +2 -2
  18. package/dist/cjs/components/Avatar.js +3 -3
  19. package/dist/cjs/components/AvatarStack.js +5 -5
  20. package/dist/cjs/components/Badge.js +2 -2
  21. package/dist/cjs/components/Breadcrumbs.js +3 -3
  22. package/dist/cjs/components/Button.js +3 -3
  23. package/dist/cjs/components/Cell.js +15 -149
  24. package/dist/cjs/components/Chips.js +3 -3
  25. package/dist/cjs/components/Choice.js +2 -2
  26. package/dist/cjs/components/Code.js +2 -8
  27. package/dist/cjs/components/CookiesWarning.js +3 -3
  28. package/dist/cjs/components/DatePeriod.js +6 -6
  29. package/dist/cjs/components/DatePicker.js +5 -5
  30. package/dist/cjs/components/Dropdown.js +3 -3
  31. package/dist/cjs/components/Icon.js +2 -2
  32. package/dist/cjs/components/InputPassword.js +71 -129
  33. package/dist/cjs/components/Label.js +3 -3
  34. package/dist/cjs/components/Link.js +1 -1
  35. package/dist/cjs/components/List.js +1 -1
  36. package/dist/cjs/components/Logo.js +1 -1
  37. package/dist/cjs/components/MenuItem.js +29 -9
  38. package/dist/cjs/components/Modal.js +2 -2
  39. package/dist/cjs/components/Pagination.js +3 -3
  40. package/dist/cjs/components/Response/img.js +33 -0
  41. package/dist/cjs/components/Response.js +81 -213
  42. package/dist/cjs/components/Search.js +2 -2
  43. package/dist/cjs/components/Select.js +2 -2
  44. package/dist/cjs/components/Swiper.js +2 -2
  45. package/dist/cjs/components/Tab.js +2 -2
  46. package/dist/cjs/components/Tile.js +10 -172
  47. package/dist/cjs/components/Title.js +2 -2
  48. package/dist/cjs/components/Tooltip.js +2 -2
  49. package/dist/components/Accordion.js +2 -2
  50. package/dist/components/Avatar.js +3 -3
  51. package/dist/components/AvatarStack.js +5 -5
  52. package/dist/components/Badge.js +2 -2
  53. package/dist/components/Breadcrumbs.js +3 -3
  54. package/dist/components/Button.js +3 -3
  55. package/dist/components/Cell.js +15 -149
  56. package/dist/components/Chips.js +3 -3
  57. package/dist/components/Choice.js +2 -2
  58. package/dist/components/Code.js +2 -8
  59. package/dist/components/CookiesWarning.js +3 -3
  60. package/dist/components/DatePeriod.js +6 -6
  61. package/dist/components/DatePicker.js +5 -5
  62. package/dist/components/Dropdown.js +3 -3
  63. package/dist/components/Icon.js +2 -2
  64. package/dist/components/InputPassword.js +71 -129
  65. package/dist/components/Label.js +3 -3
  66. package/dist/components/Link.js +1 -1
  67. package/dist/components/List.js +1 -1
  68. package/dist/components/Logo.js +1 -1
  69. package/dist/components/MenuItem.js +29 -9
  70. package/dist/components/Modal.js +2 -2
  71. package/dist/components/Pagination.js +3 -3
  72. package/dist/components/Response/img.js +31 -0
  73. package/dist/components/Response.js +81 -213
  74. package/dist/components/Search.js +2 -2
  75. package/dist/components/Select.js +2 -2
  76. package/dist/components/Swiper.js +2 -2
  77. package/dist/components/Tab.js +2 -2
  78. package/dist/components/Tile.js +10 -172
  79. package/dist/components/Title.js +2 -2
  80. package/dist/components/Tooltip.js +2 -2
  81. package/dist/css/components/AvatarStack/AvatarStack.css +2 -15
  82. package/dist/css/components/Code/Code.css +3 -6
  83. package/dist/css/components/Label/Label.css +4 -4
  84. package/dist/css/components/MenuItem/MenuItem.css +19 -43
  85. package/dist/css/components/Response/Response.css +6 -3
  86. package/dist/css/components/Tab/Tab.css +14 -31
  87. package/dist/css/components/Tile/Tile.css +7 -5
  88. package/dist/css/styles/svg-color/svg_fill.css +5 -5
  89. package/dist/stories/Plsyground.mdx +0 -1
  90. package/dist/stories/index.stories.js +5 -8
  91. package/dist/types/components/Avatar/appearance/avatarAccent.d.ts +0 -4
  92. package/dist/types/components/Avatar/appearance/avatarDanger.d.ts +0 -1
  93. package/dist/types/components/Avatar/appearance/avatarInfo.d.ts +0 -4
  94. package/dist/types/components/Avatar/appearance/avatarPrimary.d.ts +0 -1
  95. package/dist/types/components/Avatar/appearance/avatarSecondary.d.ts +0 -1
  96. package/dist/types/components/Avatar/appearance/avatarSuccess.d.ts +1 -3
  97. package/dist/types/components/Avatar/appearance/avatarSurface.d.ts +0 -6
  98. package/dist/types/components/Button/appearance/buttonAccent.d.ts +1 -0
  99. package/dist/types/components/Cell/appearance/cellSize.d.ts +8 -44
  100. package/dist/types/components/Code/appearance/codeSize.d.ts +2 -8
  101. package/dist/types/components/{Response/appearance/responseDisabled.d.ts → InputPassword/appearance/inputPasswordDefault.d.ts} +9 -5
  102. package/dist/types/components/InputPassword/appearance/inputPasswordError.d.ts +15 -6
  103. package/dist/types/components/InputPassword/appearance/inputPasswordSize.d.ts +7 -7
  104. package/dist/types/components/InputPassword/appearance/inputPasswordSuccess.d.ts +15 -6
  105. package/dist/types/components/Label/appearance/labelAccent.d.ts +7 -0
  106. package/dist/types/components/Label/appearance/labelSize.d.ts +1 -0
  107. package/dist/types/components/Link/Link.interface.d.ts +1 -1
  108. package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +1 -0
  109. package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +4 -2
  110. package/dist/types/components/Response/appearance/responceConfirm.d.ts +13 -0
  111. package/dist/types/components/Response/appearance/responceFail.d.ts +13 -0
  112. package/dist/types/components/Response/appearance/responceNothingFound.d.ts +13 -0
  113. package/dist/types/components/Response/appearance/responceRefresh.d.ts +13 -0
  114. package/dist/types/components/Response/appearance/responseError.d.ts +6 -4
  115. package/dist/types/components/Response/appearance/responseSuccess.d.ts +6 -4
  116. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +13 -0
  117. package/dist/types/components/Response/appearance/responseWarning.d.ts +6 -4
  118. package/dist/types/components/Response/img/index.d.ts +12 -0
  119. package/dist/types/components/Tile/appearance/tileSize.d.ts +0 -8
  120. package/dist/types/components/Tile/appearance/tileSurface.d.ts +0 -1
  121. package/package.json +1 -1
  122. package/dist/cjs/components/InputMask.js +0 -65
  123. package/dist/cjs/components/Panel.js +0 -44
  124. package/dist/components/InputMask.js +0 -62
  125. package/dist/components/Panel.js +0 -41
  126. package/dist/css/components/InputMask/InputMask.css +0 -77
  127. package/dist/css/components/Panel/Panel.css +0 -107
  128. package/dist/stories/Accordion.mdx +0 -11
  129. package/dist/stories/AccordionItem.mdx +0 -15
  130. package/dist/stories/Breadcrumbs.mdx +0 -15
  131. package/dist/stories/BreadcrumbsItem.mdx +0 -17
  132. package/dist/stories/Dot.mdx +0 -19
  133. package/dist/stories/Drawer.mdx +0 -11
  134. package/dist/stories/Dropdown.mdx +0 -12
  135. package/dist/stories/DropdownItem.mdx +0 -19
  136. package/dist/stories/Image.mdx +0 -15
  137. package/dist/stories/Input.mdx +0 -31
  138. package/dist/stories/InputPassword.mdx +0 -15
  139. package/dist/stories/Label.mdx +0 -11
  140. package/dist/stories/ListItem.mdx +0 -11
  141. package/dist/stories/Logo.mdx +0 -24
  142. package/dist/stories/MenuItem.mdx +0 -15
  143. package/dist/stories/Modal.mdx +0 -15
  144. package/dist/stories/Notification.mdx +0 -23
  145. package/dist/stories/Radio.mdx +0 -28
  146. package/dist/stories/Response.mdx +0 -11
  147. package/dist/stories/SearchInput.mdx +0 -19
  148. package/dist/stories/Switch.mdx +0 -23
  149. package/dist/stories/Tab.mdx +0 -27
  150. package/dist/stories/Text.mdx +0 -35
  151. package/dist/types/components/Cell/appearance/cellAccent.d.ts +0 -21
  152. package/dist/types/components/Cell/appearance/cellDanger.d.ts +0 -7
  153. package/dist/types/components/Cell/appearance/cellError.d.ts +0 -11
  154. package/dist/types/components/Cell/appearance/cellInfo.d.ts +0 -21
  155. package/dist/types/components/Cell/appearance/cellPrimary.d.ts +0 -8
  156. package/dist/types/components/Cell/appearance/cellSecondary.d.ts +0 -8
  157. package/dist/types/components/Cell/appearance/cellSuccess.d.ts +0 -11
  158. package/dist/types/components/Cell/appearance/cellWarning.d.ts +0 -11
  159. package/dist/types/components/InputMask/InputMask.d.ts +0 -5
  160. package/dist/types/components/InputMask/InputMask.interface.d.ts +0 -54
  161. package/dist/types/components/InputMask/index.d.ts +0 -1
  162. package/dist/types/components/InputPassword/appearance/inputPasswordAccent.d.ts +0 -20
  163. package/dist/types/components/InputPassword/appearance/inputPasswordDanger.d.ts +0 -7
  164. package/dist/types/components/InputPassword/appearance/inputPasswordInfo.d.ts +0 -21
  165. package/dist/types/components/InputPassword/appearance/inputPasswordPrimary.d.ts +0 -8
  166. package/dist/types/components/InputPassword/appearance/inputPasswordSecondary.d.ts +0 -8
  167. package/dist/types/components/InputPassword/appearance/inputPasswordSurface.d.ts +0 -25
  168. package/dist/types/components/InputPassword/appearance/inputPasswordWarning.d.ts +0 -11
  169. package/dist/types/components/Panel/Panel.d.ts +0 -5
  170. package/dist/types/components/Panel/Panel.interface.d.ts +0 -58
  171. package/dist/types/components/Panel/index.d.ts +0 -1
  172. package/dist/types/components/Response/appearance/responseAccent.d.ts +0 -20
  173. package/dist/types/components/Response/appearance/responseDanger.d.ts +0 -7
  174. package/dist/types/components/Response/appearance/responseInfo.d.ts +0 -21
  175. package/dist/types/components/Response/appearance/responsePrimary.d.ts +0 -8
  176. package/dist/types/components/Response/appearance/responseRequire.d.ts +0 -20
  177. package/dist/types/components/Response/appearance/responseSecondary.d.ts +0 -8
  178. package/dist/types/components/Response/appearance/responseSize.d.ts +0 -59
  179. package/dist/types/components/Response/appearance/responseStyle.d.ts +0 -16
  180. package/dist/types/components/Response/appearance/responseSurface.d.ts +0 -25
  181. package/dist/types/components/Tile/appearance/tileAccent.d.ts +0 -20
  182. package/dist/types/components/Tile/appearance/tileDanger.d.ts +0 -7
  183. package/dist/types/components/Tile/appearance/tileDisabled.d.ts +0 -20
  184. package/dist/types/components/Tile/appearance/tileError.d.ts +0 -11
  185. package/dist/types/components/Tile/appearance/tileInfo.d.ts +0 -21
  186. package/dist/types/components/Tile/appearance/tilePrimary.d.ts +0 -8
  187. package/dist/types/components/Tile/appearance/tileRequire.d.ts +0 -20
  188. package/dist/types/components/Tile/appearance/tileSecondary.d.ts +0 -8
  189. package/dist/types/components/Tile/appearance/tileStyle.d.ts +0 -16
  190. package/dist/types/components/Tile/appearance/tileSuccess.d.ts +0 -11
  191. package/dist/types/components/Tile/appearance/tileWarning.d.ts +0 -11
@@ -1,44 +0,0 @@
1
- 'use strict';
2
-
3
- var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
4
- var jsxRuntime = require('react/jsx-runtime');
5
- var React = require('react');
6
- var clsx = require('clsx');
7
- var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
8
- var useStyles = require('../hooks/useStyles/useStyles.js');
9
- var Group = require('../../Group_cjs_Cwt0gWk4.js');
10
- var Text = require('../../Text_cjs_DPhKj3wf.js');
11
- require('lodash/camelCase');
12
- require('lodash/castArray');
13
- require('lodash/upperFirst');
14
- require('../context/Notifications.js');
15
- require('uuid');
16
- require('@itcase/common');
17
- require('../context/UIContext.js');
18
- require('../hooks/useMediaQueries/useMediaQueries.js');
19
- require('react-responsive');
20
- require('../utils/setViewportProperty.js');
21
- require('lodash/maxBy');
22
- require('../hooks/useStyles/styleAttributes.js');
23
-
24
- var panelConfig = {
25
- appearance: undefined,
26
- setAppearance: function (appearanceConfig) {
27
- panelConfig.appearance = appearanceConfig;
28
- },
29
- };
30
- var Panel = React.forwardRef(function Panel(props, ref) {
31
- var className = props.className, appearance = props.appearance, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, verticalScroll = props.verticalScroll, set = props.set, children = props.children;
32
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
33
- var _a;
34
- return (tslib_es6.__assign(tslib_es6.__assign({}, resultConfig), (_a = panelConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
35
- }, {});
36
- var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
37
- var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, positionClass = propsGenerator.positionClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
38
- // @ts-expect-error
39
- var _a = useStyles.useStyles(props), panelStyles = _a.styles, panelWrapperStyles = _a.wrapper;
40
- return (jsxRuntime.jsxs(Group.Group, { className: clsx(className, 'panel', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), set && "panel_set_".concat(set), wrapClass && "flex_wrap_".concat(wrapClass), shapeClass && "panel_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), alignContentClass && "panel_align-content_".concat(alignContentClass), alignItemsClass && "panel_align-items_".concat(alignItemsClass), elevationClass && "elevation_".concat(elevationClass), justifyContentClass && "panel_justify-content_".concat(justifyContentClass), positionClass && "position_".concat(positionClass), horizontalScroll && 'panel_type_scroll_horizontal', verticalScroll && 'panel_type_scroll_vertical'), "data-tour": dataTour, htmlFor: htmlFor, ref: ref, style: panelStyles, children: [title && (jsxRuntime.jsx("div", { className: "panel__header", children: jsxRuntime.jsx(Text.Text, { className: "panel__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title }) })), jsxRuntime.jsx("div", { className: clsx('panel__wrapper', directionClass && "panel_direction_".concat(directionClass)), style: panelWrapperStyles, children: children }), desc && (jsxRuntime.jsx("div", { className: "panel__footer", children: jsxRuntime.jsx(Text.Text, { className: "panel__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }) }))] }));
41
- });
42
-
43
- exports.Panel = Panel;
44
- exports.panelConfig = panelConfig;
@@ -1,62 +0,0 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
- import { jsx } from 'react/jsx-runtime';
3
- import React from 'react';
4
- import clsx from 'clsx';
5
- import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import 'lodash/camelCase';
7
- import 'lodash/castArray';
8
- import 'lodash/upperFirst';
9
- import '../context/Notifications.js';
10
- import 'uuid';
11
- import '@itcase/common';
12
- import '../context/UIContext.js';
13
- import '../hooks/useMediaQueries/useMediaQueries.js';
14
- import 'react-responsive';
15
- import '../utils/setViewportProperty.js';
16
-
17
- var inputMaskConfig = {
18
- appearance: undefined,
19
- state: undefined,
20
- setAppearance: function (appearanceConfig) {
21
- inputMaskConfig.appearance = appearanceConfig;
22
- },
23
- setState: function (newComponent) {
24
- inputMaskConfig.state = newComponent;
25
- },
26
- };
27
- var InputMask = React.forwardRef(function Input(props, ref) {
28
- var id = props.id, className = props.className,
29
- // state,
30
- _a = props.type,
31
- // state,
32
- type = _a === void 0 ? 'text' : _a, name = props.name, appearance = props.appearance, isDisabled = props.isDisabled, dataTestId = props.dataTestId, index = props.index, placeholder = props.placeholder, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, onKeyDown = props.onKeyDown;
33
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
34
- var _a;
35
- return (__assign(__assign({}, resultConfig), (_a = inputMaskConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
36
- }, {});
37
- // const stateConfig = useMemo(
38
- // () => state && inputMaskConfig.state && inputMaskConfig.state[state],
39
- // [state, inputMaskConfig],
40
- // )
41
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
42
- var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, _b = propsGenerator.sizeClass, sizeClass = _b === void 0 ? 'm' : _b, widthClass = propsGenerator.widthClass;
43
- return (jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), !isDisabled
44
- ? fillClass && "fill_".concat(fillClass)
45
- : fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), shapeClass && "input_shape_".concat(shapeClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), !isDisabled
46
- ? borderWidthClass && "border-width_".concat(borderWidthClass)
47
- : borderWidthDisabledClass &&
48
- "border-width_disabled_".concat(borderWidthDisabledClass), sizeClass && "input_size_".concat(sizeClass), !isDisabled
49
- ? borderColorClass && "border-color_".concat(borderColorClass)
50
- : borderColorDisabledClass &&
51
- "border-color_disabled_".concat(borderColorDisabledClass), !isDisabled
52
- ? placeholderTextColorClass &&
53
- "placeholder-text-color_".concat(placeholderTextColorClass)
54
- : placeholderTextColorDisabledClass &&
55
- "placeholder-text-color_disabled_".concat(placeholderTextColorDisabledClass), !isDisabled
56
- ? textColorClass && "text-color_".concat(textColorClass)
57
- : textColorDisabledClass && "text-color_".concat(textColorDisabledClass)), type: type, disabled: isDisabled, "data-test-id": dataTestId || (name ? "".concat(name, "InputMask") : 'inputMask'), index: index, placeholder: placeholder,
58
- // @ts-expect-error
59
- ref: ref, value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown }));
60
- });
61
-
62
- export { InputMask, inputMaskConfig };
@@ -1,41 +0,0 @@
1
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import React from 'react';
4
- import clsx from 'clsx';
5
- import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
- import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { G as Group } from '../Group_es_CYW2Hquh.js';
8
- import { T as Text } from '../Text_es_BRb3qqKM.js';
9
- import 'lodash/camelCase';
10
- import 'lodash/castArray';
11
- import 'lodash/upperFirst';
12
- import '../context/Notifications.js';
13
- import 'uuid';
14
- import '@itcase/common';
15
- import '../context/UIContext.js';
16
- import '../hooks/useMediaQueries/useMediaQueries.js';
17
- import 'react-responsive';
18
- import '../utils/setViewportProperty.js';
19
- import 'lodash/maxBy';
20
- import '../hooks/useStyles/styleAttributes.js';
21
-
22
- var panelConfig = {
23
- appearance: undefined,
24
- setAppearance: function (appearanceConfig) {
25
- panelConfig.appearance = appearanceConfig;
26
- },
27
- };
28
- var Panel = React.forwardRef(function Panel(props, ref) {
29
- var className = props.className, appearance = props.appearance, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, dataTour = props.dataTour, horizontalScroll = props.horizontalScroll, htmlFor = props.htmlFor, verticalScroll = props.verticalScroll, set = props.set, children = props.children;
30
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
31
- var _a;
32
- return (__assign(__assign({}, resultConfig), (_a = panelConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
33
- }, {});
34
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
35
- var directionClass = propsGenerator.directionClass, justifyContentClass = propsGenerator.justifyContentClass, alignContentClass = propsGenerator.alignContentClass, alignItemsClass = propsGenerator.alignItemsClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, heightClass = propsGenerator.heightClass, positionClass = propsGenerator.positionClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass, wrapClass = propsGenerator.wrapClass;
36
- // @ts-expect-error
37
- var _a = useStyles(props), panelStyles = _a.styles, panelWrapperStyles = _a.wrapper;
38
- return (jsxs(Group, { className: clsx(className, 'panel', widthClass && "width_".concat(widthClass), heightClass && "height_".concat(heightClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), set && "panel_set_".concat(set), wrapClass && "flex_wrap_".concat(wrapClass), shapeClass && "panel_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), alignContentClass && "panel_align-content_".concat(alignContentClass), alignItemsClass && "panel_align-items_".concat(alignItemsClass), elevationClass && "elevation_".concat(elevationClass), justifyContentClass && "panel_justify-content_".concat(justifyContentClass), positionClass && "position_".concat(positionClass), horizontalScroll && 'panel_type_scroll_horizontal', verticalScroll && 'panel_type_scroll_vertical'), "data-tour": dataTour, htmlFor: htmlFor, ref: ref, style: panelStyles, children: [title && (jsx("div", { className: "panel__header", children: jsx(Text, { className: "panel__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title }) })), jsx("div", { className: clsx('panel__wrapper', directionClass && "panel_direction_".concat(directionClass)), style: panelWrapperStyles, children: children }), desc && (jsx("div", { className: "panel__footer", children: jsx(Text, { className: "panel__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }) }))] }));
39
- });
40
-
41
- export { Panel, panelConfig };
@@ -1,77 +0,0 @@
1
- .input-mask {
2
- min-width: unset;
3
- padding: 0;
4
- margin: 0;
5
- border: none;
6
- position: relative;
7
- box-shadow: none;
8
- appearance: none;
9
- outline: 0;
10
- caret-color: var(--input-caret-color);
11
- &:disabled {
12
- background: var(--input-state-disabled-background);
13
- border: solid 1px var(--input-state-disabled-border);
14
- &:hover {
15
- background: var(--input-state-disabled-background);
16
- border: solid 1px var(--input-state-disabled-border);
17
- }
18
- }
19
- &:focus {
20
- outline: none;
21
- }
22
- &:hover {
23
- background: var(--input-state-hover-background);
24
- border: solid 1px var(--input-state-hover-border);
25
- }
26
- &&_state {
27
- &_success {
28
- background: var(--input-state-success-background);
29
- border: solid 1px var(--input-state-success-border);
30
- }
31
- &_error {
32
- background: var(--input-state-error-background);
33
- border: solid 1px var(--input-state-error-border);
34
- }
35
- &_focus {
36
- background: var(--input-state-focus-background);
37
- border: solid 1px var(--input-state-focus-border);
38
- }
39
- }
40
- }
41
- .input-mask {
42
- &_shape {
43
- &_rounded {
44
- border-radius: var(--input-shape-rounded);
45
- position: relative;
46
- }
47
- &_underline {
48
- border-left: none !important;
49
- border-top: none !important;
50
- border-right: none !important;
51
- position: relative;
52
- }
53
- }
54
- }
55
- .input-mask {
56
- &&_size {
57
- @each $size in xxl, xl, l, m, s, xs, xxs, normal, tiny, compact, large {
58
- &_$(size) {
59
- padding: var(--input-size-$(size)-padding);
60
- }
61
- }
62
- }
63
- }
64
- .input-mask {
65
- &_type {
66
- &_number {
67
- appearance: none;
68
- &[type='number'] {
69
- appearance: textfield;
70
- }
71
- &::-webkit-outer-spin-button,
72
- &::-webkit-inner-spin-button {
73
- appearance: none;
74
- }
75
- }
76
- }
77
- }
@@ -1,107 +0,0 @@
1
- .panel {
2
- display: flex;
3
- flex-direction: column;
4
- &__wrapper {
5
- align-items: stretch;
6
- }
7
- }
8
- .panel {
9
- &_direction {
10
- &_horizontal {
11
- display: flex;
12
- flex-direction: row;
13
- }
14
- &_vertical {
15
- display: flex;
16
- flex-direction: column;
17
- }
18
- &_horizontal-reverse {
19
- display: flex;
20
- flex-direction: row-reverse;
21
- }
22
- &_vertical-reverse {
23
- display: flex;
24
- flex-direction: column-reverse;
25
- }
26
- @each $val in row, row-reverse, column, column-reverse {
27
- &_$(val) {
28
- display: flex;
29
- flex-direction: $(val);
30
- }
31
- }
32
- }
33
- }
34
- .panel {
35
- @each $val in flex-start, flex-end, center, space-between, space-around, stretch {
36
- &_align-content_$(val) {
37
- align-content: $(val);
38
- }
39
- }
40
- }
41
- .panel {
42
- @each $val in stretch, flex-start, flex-end, center, baseline, auto {
43
- &_align-self_$(val) {
44
- align-self: $(val);
45
- }
46
- &_align-items_$(val) {
47
- align-items: $(val);
48
- }
49
- }
50
- }
51
- .panel {
52
- @each $val in flex-start, flex-end, center, space-between, space-around, space-evenly, flexStart,
53
- flexEnd, center, spaceBetween, spaceAround, spaceEvenly {
54
- &_justify-content_$(val) {
55
- justify-content: $(val);
56
- }
57
- }
58
- }
59
- .panel {
60
- &_shape {
61
- &_rounded {
62
- border-radius: var(--panel-shape-rounded, 12px);
63
- }
64
- &_circular {
65
- border-radius: 50%;
66
- }
67
- }
68
- }
69
- .panel {
70
- &_wrap {
71
- &_wrap {
72
- flex-wrap: wrap;
73
- }
74
- &_nowrap {
75
- flex-wrap: nowrap;
76
- }
77
- &_wrap-reverse {
78
- flex-wrap: wrap-reverse;
79
- }
80
- }
81
- }
82
- .panel {
83
- &_type {
84
- &_scroll {
85
- &_vertical {
86
- /* ^^^&& {
87
- max-height: 80%;
88
- } */
89
- ^^^&__wrapper {
90
- max-height: 100%;
91
- overflow: auto;
92
- scrollbar-width: thin;
93
- }
94
- }
95
- &_horizontal {
96
- /* ^^^&& {
97
- max-width: 80%;
98
- } */
99
- ^^^&__wrapper {
100
- max-width: 100%;
101
- overflow: auto;
102
- scrollbar-width: thin;
103
- }
104
- }
105
- }
106
- }
107
- }
@@ -1,11 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as AccordionStories from '../stories/Accordion.stories.tsx'
4
-
5
- <Meta of={AccordionStories} />
6
-
7
- # Accordion
8
-
9
- ## Default
10
-
11
- <Canvas of={AccordionStories.Default} />
@@ -1,15 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as AccordionItemStories from '../stories/AccordionItem.stories.tsx'
4
-
5
- <Meta of={AccordionItemStories} />
6
-
7
- # AccordionItem
8
-
9
- ## Closed
10
-
11
- <Canvas of={AccordionItemStories.Closed} />
12
-
13
- ## Opened
14
-
15
- <Canvas of={AccordionItemStories.Opened} />
@@ -1,15 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as BreadcrumbsStories from '../stories/Breadcrumbs.stories'
4
-
5
- <Meta of={BreadcrumbsStories} />
6
-
7
- # Breadcrumbs
8
- `Breadcrumbs` - это навигационные элементы на странице сайта,
9
- которые показывают текущее местоположение пользователя внутри структуры сайта
10
-
11
- ## Default
12
- <Canvas of={BreadcrumbsStories.Default} />
13
-
14
- ## IconAfter
15
- <Canvas of={BreadcrumbsStories.IconAfter} />
@@ -1,17 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as BreadcrumbsItemStories from '../stories/BreadcrubsItem.stories'
4
-
5
- <Meta title="Atoms / Breadcrumbs / BreadcrumbsItem" of={BreadcrumbsItemStories} />
6
-
7
- # BreadcrumbsItem
8
- `BreadcrumbsItem` - это навигационный элемент на странице сайта,
9
- который показывает текущее местоположение пользователя внутри структуры сайта
10
-
11
- ## Demo
12
-
13
- <Canvas of={BreadcrumbsItemStories.Demo} />
14
-
15
- ## Icon After
16
-
17
- <Canvas of={BreadcrumbsItemStories.IconAfter} />
@@ -1,19 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as DotStories from '../stories/Dot.stories.tsx'
4
-
5
- <Meta of={DotStories} />
6
-
7
- # Dot
8
-
9
- ## Accent
10
-
11
- <Canvas sourceState="shown" of={DotStories.Accent} />
12
-
13
- ## Primary
14
-
15
- <Canvas sourceState="shown" of={DotStories.Primary} />
16
-
17
- ## Secondary
18
-
19
- <Canvas sourceState="shown" of={DotStories.Secondary} />
@@ -1,11 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as DrawerStories from '../stories/Drawer.stories.tsx'
4
-
5
- <Meta of={DrawerStories} />
6
-
7
- # Drawer
8
-
9
- ## Default
10
-
11
- <Canvas sourceState="shown" of={DrawerStories.Default} />
@@ -1,12 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as DropdownStories from '../stories/Dropdown.stories.tsx'
4
- import * as DropdownItemStories from '../stories/DropdownItem.stories.tsx'
5
-
6
- <Meta of={DropdownStories} />
7
-
8
- # Dropdown
9
-
10
- ## Default
11
-
12
- <Canvas sourceState="shown" of={DropdownStories.Default} />
@@ -1,19 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as DropdownItemStories from '../stories/DropdownItem.stories.tsx'
4
-
5
- <Meta of={DropdownItemStories} />
6
-
7
- # DropdownItem
8
-
9
- ## Default
10
-
11
- <Canvas sourceState="shown" of={DropdownItemStories.Default} />
12
-
13
- ## Active
14
-
15
- <Canvas sourceState="shown" of={DropdownItemStories.Active} />
16
-
17
- ## Disabled
18
-
19
- <Canvas sourceState="shown" of={DropdownItemStories.Disabled} />
@@ -1,15 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as ImageStories from '../stories/Image.stories.tsx'
4
-
5
- <Meta of={ImageStories} />
6
-
7
- # Image
8
-
9
- ## Rectangular
10
-
11
- <Canvas sourceState="shown" of={ImageStories.Default} />
12
-
13
- ## Circular
14
-
15
- <Canvas sourceState="shown" of={ImageStories.Skeleton} />
@@ -1,31 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as InputStories from '../stories/Input.stories.tsx'
4
-
5
- <Meta of={InputStories} />
6
-
7
- # Input
8
-
9
- ## XXL
10
-
11
- <Canvas sourceState="shown" of={InputStories.SizeXXL} />
12
-
13
- ## XL
14
-
15
- <Canvas sourceState="shown" of={InputStories.SizeXL} />
16
-
17
- ## L
18
-
19
- <Canvas sourceState="shown" of={InputStories.SizeL} />
20
-
21
- ## M
22
-
23
- <Canvas sourceState="shown" of={InputStories.SizeM} />
24
-
25
- ## S
26
-
27
- <Canvas sourceState="shown" of={InputStories.SizeS} />
28
-
29
- ## XS
30
-
31
- <Canvas sourceState="shown" of={InputStories.SizeXS} />
@@ -1,15 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as InputPasswordStories from '../stories/InputPassword.stories.tsx'
4
-
5
- <Meta of={InputPasswordStories} />
6
-
7
- # InputPassword
8
-
9
- ## Hidden
10
-
11
- <Canvas sourceState="shown" of={InputPasswordStories.Hidden} />
12
-
13
- ## Disabled
14
-
15
- <Canvas sourceState="shown" of={InputPasswordStories.Disabled} />
@@ -1,11 +0,0 @@
1
- import { Meta, Story } from '@storybook/blocks'
2
-
3
- import * as LabelStories from '../stories/Label.stories.tsx'
4
-
5
- <Meta title="Atoms / Label" />
6
-
7
- # Label
8
-
9
- `Label` - это маленький компонент, который позволяет дополнить ваш компонент лейблом с описанием.
10
-
11
- <Story of={LabelStories.Demo} />
@@ -1,11 +0,0 @@
1
- import { Canvas, Meta, Story } from '@storybook/blocks'
2
-
3
- import * as ListItemStories from '../stories/ListItem.stories'
4
-
5
- <Meta of={ListItemStories} />
6
-
7
- # ListItem
8
- `ListItem` - это элемент списка `List`
9
-
10
- ## Demo
11
- <Canvas of={ListItemStories.Demo} />
@@ -1,24 +0,0 @@
1
- import { Canvas, Controls, Meta, Story } from '@storybook/blocks'
2
-
3
- import * as LogoStories from '../stories/Logo.stories.tsx'
4
- import * as LogoSizeStories from '../stories/LogoSize.stories.tsx'
5
-
6
- <Meta title="Atoms / Logo" />
7
-
8
- # Logo
9
-
10
- `Logo` - отображает логотип компании, и зачастую явлется ссылкой на главную страницу.
11
-
12
- <Canvas sourceState="shown" of={LogoStories.Default} />
13
-
14
- ## SizeS
15
-
16
- <Canvas sourceState="shown" of={LogoSizeStories.S} />
17
-
18
- ## SizeM
19
-
20
- <Canvas sourceState="shown" of={LogoSizeStories.M} />
21
-
22
- ## SizeL
23
-
24
- <Canvas sourceState="shown" of={LogoSizeStories.L} />
@@ -1,15 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as MenuItemStories from '../stories/MenuItem.stories.tsx'
4
-
5
- <Meta of={MenuItemStories} />
6
-
7
- # MenuItem
8
-
9
- ## Active
10
-
11
- <Canvas sourceState="shown" of={MenuItemStories.Active} />
12
-
13
- ## Subitem
14
-
15
- <Canvas sourceState="shown" of={MenuItemStories.SetSubitem} />
@@ -1,15 +0,0 @@
1
- import { Meta, Canvas } from '@storybook/blocks'
2
-
3
- import * as ModalStories from '../stories/Modal.stories.tsx'
4
-
5
- <Meta title="Molecules / Modal" />
6
-
7
- # Modal
8
-
9
- `Modal` - это карточка, на которой находится вся ключевая информация, более детальная отобразится при клике на нее.
10
-
11
- ## Demo
12
- <Canvas sourceState="shown" of={ModalStories.Demo} />
13
-
14
- ## Skeleton
15
- <Canvas sourceState="shown" of={ModalStories.Skeleton} />
@@ -1,23 +0,0 @@
1
- import { Canvas, Meta } from '@storybook/blocks'
2
-
3
- import * as NotificationStories from '../stories/Notification.stories.tsx'
4
-
5
- <Meta of={NotificationStories} />
6
-
7
- # Notification
8
-
9
- ## Top
10
-
11
- <Canvas sourceState="shown" of={NotificationStories.Top} />
12
-
13
- ## Float
14
-
15
- <Canvas sourceState="shown" of={NotificationStories.Float} />
16
-
17
- ## Form
18
-
19
- <Canvas sourceState="shown" of={NotificationStories.Form} />
20
-
21
- ## Toast
22
-
23
- <Canvas sourceState="shown" of={NotificationStories.Toast} />