@itcase/ui 1.1.19 → 1.1.20

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 (156) hide show
  1. package/dist/{Accordion-uWRXripc.js → Accordion-DCk1_IOx.js} +1 -1
  2. package/dist/{Avatar-APOOlMd3.js → Avatar-EsnSFf8y.js} +1 -1
  3. package/dist/{Breadcrumbs-rRMuYnWJ.js → Breadcrumbs-lq8teNHv.js} +2 -2
  4. package/dist/{Button-DxZUKQ8I.js → Button-Dslt7OS2.js} +2 -2
  5. package/dist/{Cell-BJThS4YS.js → Cell-DtK-UEKE.js} +2 -2
  6. package/dist/{Choice-DVU4k0tu.js → Choice-CeVJI4H9.js} +1 -1
  7. package/dist/{ContextMenuItem-xssbnviQ.js → ContextMenuItem-BuJBuKmW.js} +1 -1
  8. package/dist/{CookiesWarning-Dcon4SS4.js → CookiesWarning-BQZ8f2hX.js} +2 -2
  9. package/dist/{DatePicker-D9UgOcue.js → DatePicker-DxTgMHIo.js} +3 -3
  10. package/dist/{DropdownItem-DB5nPIdl.js → DropdownItem-DftDKP1Y.js} +1 -1
  11. package/dist/{GridRow-CvYQDJ2W.js → GridRow-DRjyNWBh.js} +10 -19
  12. package/dist/{Group-DuHn_z2p.js → Group-BWwH31L7.js} +16 -4
  13. package/dist/{Icon-C0gtkmdU.js → Icon-DobrgUul.js} +2 -2
  14. package/dist/{InputPassword-D6OLQrVC.js → InputPassword-FuVE3fYp.js} +1 -1
  15. package/dist/{Label-0lMH0-AK.js → Label-Ch6YjDF4.js} +1 -1
  16. package/dist/{LanguageSelector-uOmIj9mJ.js → LanguageSelector-DrFlau3K.js} +1 -1
  17. package/dist/Link-CnzdHbwf.js +1864 -0
  18. package/dist/{ListItem-DMS6_Rtr.js → ListItem-CmWuDHgt.js} +1 -1
  19. package/dist/Logo-Dc9ImVCn.js +37 -0
  20. package/dist/{Menu-9u6BoWRL.js → Menu-D-C4q1An.js} +1 -1
  21. package/dist/{MenuItem-CXxL099U.js → MenuItem-Cs0KLPXi.js} +1 -1
  22. package/dist/{NotificationList-B48jz206.js → NotificationList-CaAYxwHB.js} +1 -1
  23. package/dist/{Pagination-Ch75clod.js → Pagination-z2n_5l-u.js} +2 -2
  24. package/dist/{Response-CgE3B1JS.js → Response-BXQPmdQr.js} +3 -3
  25. package/dist/{SearchResult-vA2t-ZGx.js → SearchResult-BsXiKcpx.js} +1 -1
  26. package/dist/{SiteMenuButton-CFPtqh_i.js → SiteMenuButton-DNMOi-I3.js} +1 -1
  27. package/dist/{Swiper-CP2ph4S3.js → Swiper-CXjE6qZR.js} +5 -5
  28. package/dist/{SwitchField-Cj0B7JdE.js → SwitchField-Djrsk1Th.js} +1 -1
  29. package/dist/{TabGroup-C4CbZgr7.js → TabGroup-c-myALzO.js} +1 -1
  30. package/dist/{Tile-B2HwgBDH.js → Tile-m0Q0UUPl.js} +1 -1
  31. package/dist/{Title-BAdU2oW_.js → Title-zpOK2AxL.js} +1 -1
  32. package/dist/{Tooltip-D46EmkZq.js → Tooltip-BYw26YRd.js} +1 -1
  33. package/dist/cjs/{Accordion-OI5oLjJY.js → Accordion-CGdZmC7z.js} +1 -1
  34. package/dist/cjs/{Avatar-BBAt1cKM.js → Avatar-CXkFUZni.js} +1 -1
  35. package/dist/cjs/{Breadcrumbs-DLTpOh1T.js → Breadcrumbs-GGwX18rz.js} +2 -2
  36. package/dist/cjs/{Button-C-K_KVjd.js → Button-DplZg-6U.js} +2 -2
  37. package/dist/cjs/{Cell-DpzvSs16.js → Cell-fldKcEHr.js} +2 -2
  38. package/dist/cjs/{Choice-nMRlWkpF.js → Choice-DwYPQwyf.js} +1 -1
  39. package/dist/cjs/{ContextMenuItem-D2wjhhzg.js → ContextMenuItem-D-wYq1Of.js} +1 -1
  40. package/dist/cjs/{CookiesWarning--Edz7Gcv.js → CookiesWarning-Cny73RI8.js} +2 -2
  41. package/dist/cjs/{DatePicker-vgeb1SWe.js → DatePicker-BvGVwQWT.js} +3 -3
  42. package/dist/cjs/{DropdownItem-CCuDjUjH.js → DropdownItem-BazQTndn.js} +1 -1
  43. package/dist/cjs/{GridRow-OxLsh_2P.js → GridRow-CAqZZGge.js} +10 -19
  44. package/dist/cjs/{Group-CtseVj34.js → Group-B3axMtEa.js} +16 -4
  45. package/dist/cjs/{Icon-BUwWk_dS.js → Icon-1nE_a40k.js} +2 -2
  46. package/dist/cjs/{InputPassword-BqbSnWDE.js → InputPassword-u30j02Bh.js} +1 -1
  47. package/dist/cjs/{Label-Bc4u2NRI.js → Label-Cgxxx2Ar.js} +1 -1
  48. package/dist/cjs/{LanguageSelector-BswZL8dZ.js → LanguageSelector-lyV39rdI.js} +1 -1
  49. package/dist/cjs/Link-D30saU5d.js +1877 -0
  50. package/dist/cjs/{ListItem-C3tWa-2I.js → ListItem-DBqD3_kT.js} +1 -1
  51. package/dist/cjs/{Logo-BjDQjs3w.js → Logo-CLwB8jrJ.js} +3 -3
  52. package/dist/cjs/{Menu-Bn0hqLr-.js → Menu-D4NCuPTA.js} +1 -1
  53. package/dist/cjs/{MenuItem-C-0vQBaj.js → MenuItem-D7TzAdrA.js} +1 -1
  54. package/dist/cjs/{NotificationList-D7rD4PAW.js → NotificationList-DuwcxJAs.js} +1 -1
  55. package/dist/cjs/{Pagination-XAVYtca1.js → Pagination-BaUSH8Q1.js} +2 -2
  56. package/dist/cjs/{Response-BmR09awR.js → Response-g-ogAxvP.js} +3 -3
  57. package/dist/cjs/{SearchResult-gHEwq0ay.js → SearchResult-CbJZk7jp.js} +1 -1
  58. package/dist/cjs/{SiteMenuButton-B6QISdea.js → SiteMenuButton-CbRuV0ju.js} +1 -1
  59. package/dist/cjs/{Swiper--idB5Ci6.js → Swiper-Zh5xaPu3.js} +5 -5
  60. package/dist/cjs/{SwitchField-CCHC2ZHS.js → SwitchField-C3TrW6fZ.js} +1 -1
  61. package/dist/cjs/{TabGroup-CYaefMap.js → TabGroup-C6d1YI0e.js} +1 -1
  62. package/dist/cjs/{Tile-By9iqne7.js → Tile-CatxYX82.js} +1 -1
  63. package/dist/cjs/{Title-BzopkHQY.js → Title-Ckp30YSI.js} +1 -1
  64. package/dist/cjs/{Tooltip-VrKQ8W1G.js → Tooltip-CYJGThOv.js} +1 -1
  65. package/dist/cjs/components/Accordion.js +7 -5
  66. package/dist/cjs/components/Avatar.js +7 -5
  67. package/dist/cjs/components/Breadcrumbs.js +7 -5
  68. package/dist/cjs/components/Button.js +7 -5
  69. package/dist/cjs/components/Cell.js +8 -6
  70. package/dist/cjs/components/Choice.js +7 -5
  71. package/dist/cjs/components/ContextMenu.js +7 -5
  72. package/dist/cjs/components/CookiesWarning.js +9 -7
  73. package/dist/cjs/components/DatePicker.js +8 -7
  74. package/dist/cjs/components/Dropdown.js +4 -2
  75. package/dist/cjs/components/FormField.js +7 -6
  76. package/dist/cjs/components/Grid/Grid.interface.d.ts +23 -31
  77. package/dist/cjs/components/Grid.js +1 -1
  78. package/dist/cjs/components/Group/Group.interface.d.ts +13 -12
  79. package/dist/cjs/components/Group.js +1 -1
  80. package/dist/cjs/components/Icon.js +6 -4
  81. package/dist/cjs/components/InputPassword.js +7 -5
  82. package/dist/cjs/components/Label.js +3 -3
  83. package/dist/cjs/components/LanguageSelector.js +7 -5
  84. package/dist/cjs/components/Link/Link.d.ts +2 -1
  85. package/dist/cjs/components/Link/index.d.ts +1 -1
  86. package/dist/cjs/components/Link.js +5 -2
  87. package/dist/cjs/components/List.js +4 -2
  88. package/dist/cjs/components/Logo/Logo.interface.d.ts +6 -1
  89. package/dist/cjs/components/Logo.js +4 -2
  90. package/dist/cjs/components/Menu.js +5 -3
  91. package/dist/cjs/components/MenuItem.js +4 -2
  92. package/dist/cjs/components/Notification.js +2 -2
  93. package/dist/cjs/components/Pagination.js +8 -6
  94. package/dist/cjs/components/Panel.js +1 -1
  95. package/dist/cjs/components/Response.js +9 -7
  96. package/dist/cjs/components/Search.js +7 -5
  97. package/dist/cjs/components/Select.js +6 -5
  98. package/dist/cjs/components/SiteMenu.js +7 -5
  99. package/dist/cjs/components/Swiper.js +2 -2
  100. package/dist/cjs/components/Tab.js +4 -2
  101. package/dist/cjs/components/Tile.js +2 -2
  102. package/dist/cjs/components/Title.js +1 -1
  103. package/dist/cjs/components/Tooltip.js +2 -2
  104. package/dist/cjs/components.js +33 -32
  105. package/dist/components/Accordion.js +7 -5
  106. package/dist/components/Avatar.js +7 -5
  107. package/dist/components/Breadcrumbs.js +7 -5
  108. package/dist/components/Button.js +7 -5
  109. package/dist/components/Cell.js +8 -6
  110. package/dist/components/Choice.js +7 -5
  111. package/dist/components/ContextMenu.js +7 -5
  112. package/dist/components/CookiesWarning.js +9 -7
  113. package/dist/components/DatePicker.js +8 -7
  114. package/dist/components/Dropdown.js +4 -2
  115. package/dist/components/FormField.js +7 -6
  116. package/dist/components/Grid/Grid.interface.d.ts +23 -31
  117. package/dist/components/Grid.js +1 -1
  118. package/dist/components/Group/Group.interface.d.ts +13 -12
  119. package/dist/components/Group.js +1 -1
  120. package/dist/components/Icon.js +6 -4
  121. package/dist/components/InputPassword.js +7 -5
  122. package/dist/components/Label.js +3 -3
  123. package/dist/components/LanguageSelector.js +7 -5
  124. package/dist/components/Link/Link.d.ts +2 -1
  125. package/dist/components/Link/index.d.ts +1 -1
  126. package/dist/components/Link.js +4 -2
  127. package/dist/components/List.js +4 -2
  128. package/dist/components/Logo/Logo.interface.d.ts +6 -1
  129. package/dist/components/Logo.js +4 -2
  130. package/dist/components/Menu.js +5 -3
  131. package/dist/components/MenuItem.js +4 -2
  132. package/dist/components/Notification.js +2 -2
  133. package/dist/components/Pagination.js +8 -6
  134. package/dist/components/Panel.js +1 -1
  135. package/dist/components/Response.js +9 -7
  136. package/dist/components/Search.js +7 -5
  137. package/dist/components/Select.js +6 -5
  138. package/dist/components/SiteMenu.js +7 -5
  139. package/dist/components/Swiper.js +2 -2
  140. package/dist/components/Tab.js +4 -2
  141. package/dist/components/Tile.js +2 -2
  142. package/dist/components/Title.js +1 -1
  143. package/dist/components/Tooltip.js +2 -2
  144. package/dist/components.js +33 -32
  145. package/dist/css/components/DadataHintField/DadataHintField.css +4 -1
  146. package/dist/css/components/Grid/Grid.css +12 -3
  147. package/dist/css/components/Group/Group.css +35 -0
  148. package/dist/css/components/Input/Input.css +2 -2
  149. package/dist/css/components/Swiper/Swiper.css +2 -2
  150. package/dist/css/styles/text-color/text-color.css +11 -7
  151. package/dist/css/styles/text-color/text-color_active.css +12 -10
  152. package/dist/css/styles/text-color/text-color_hover.css +16 -13
  153. package/package.json +13 -11
  154. package/dist/Link-Co6uspFK.js +0 -90
  155. package/dist/Logo-dRWwDqj-.js +0 -37
  156. package/dist/cjs/Link-B6Xq7PWn.js +0 -99
@@ -53,10 +53,10 @@
53
53
  position: relative;
54
54
  }
55
55
  &_underline {
56
- position: relative;
57
56
  border-left: none !important;
58
- border-right: none !important;
59
57
  border-top: none !important;
58
+ border-right: none !important;
59
+ position: relative;
60
60
  }
61
61
  }
62
62
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper 11.1.8
2
+ * Swiper 11.1.9
3
3
  * Most modern mobile touch slider and framework with hardware accelerated transitions
4
4
  * https://swiperjs.com
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: July 26, 2024
10
+ * Released on: July 31, 2024
11
11
  */
12
12
 
13
13
  /* FONT_START */
@@ -1,10 +1,14 @@
1
- .text-color {
2
- @each $type in accent, primary, secondary, tertiary, quaternary, quinary, senary, surface, success, error, info, warning {
3
- &_$(type) {
4
- &-text {
5
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled, hover, invert, inverse {
6
- &-$(color) {
7
- color: var(--color-$(type)-text-$(color));
1
+ .text {
2
+ &&-color {
3
+ @each $type in accent, primary, secondary, tertiary, quaternary, quinary, senary, surface,
4
+ success, error, info, warning {
5
+ &_$(type) {
6
+ &-text {
7
+ @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent,
8
+ disabled, hover, invert, inverse {
9
+ &-$(color) {
10
+ color: var(--color-$(type)-text-$(color));
11
+ }
8
12
  }
9
13
  }
10
14
  }
@@ -1,13 +1,15 @@
1
- .text-color {
2
- &_active {
3
- @each $type in accent, primary, secondary, tertiary, quaternary, quinary, senary, surface,
4
- success, error, info, warning {
5
- &_$(type) {
6
- &-text {
7
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent,
8
- disabled, hover, invert, inverse {
9
- &-$(color) {
10
- color: var(--color-$(type)-text-$(color));
1
+ .text {
2
+ &&-color {
3
+ &_active {
4
+ @each $type in accent, primary, secondary, tertiary, quaternary, quinary, senary, surface,
5
+ success, error, info, warning {
6
+ &_$(type) {
7
+ &-text {
8
+ @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent,
9
+ disabled, hover, invert, inverse {
10
+ &-$(color) {
11
+ color: var(--color-$(type)-text-$(color));
12
+ }
11
13
  }
12
14
  }
13
15
  }
@@ -1,17 +1,20 @@
1
- .text-color {
2
- &_hover {
3
- @each $type in accent, primary, secondary, tertiary, quaternary, quinary, senary, surface, success, error, info, warning {
4
- &_$(type) {
5
- &-text {
6
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled,
7
- hover {
8
- &-$(color) {
9
- &:hover {
10
- color: var(--color-$(type)-text-$(color));
11
- }
12
- &-hover {
1
+ .text {
2
+ &&-color {
3
+ &_hover {
4
+ @each $type in accent, primary, secondary, tertiary, quaternary, quinary, senary, surface,
5
+ success, error, info, warning {
6
+ &_$(type) {
7
+ &-text {
8
+ @each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent,
9
+ disabled, hover {
10
+ &-$(color) {
13
11
  &:hover {
14
- color: var(--color-$(type)-text-$(color)-hover);
12
+ color: var(--color-$(type)-text-$(color));
13
+ }
14
+ &-hover {
15
+ &:hover {
16
+ color: var(--color-$(type)-text-$(color)-hover);
17
+ }
15
18
  }
16
19
  }
17
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -91,12 +91,12 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "@itcase/common": "^1.2.5",
94
- "@itcase/lint": "^1.0.2",
94
+ "@itcase/lint": "^1.0.5",
95
95
  "clsx": "^2.1.1",
96
96
  "html5-boilerplate": "^9.0.1",
97
97
  "js-cookie": "^3.0.5",
98
98
  "lodash": "^4.17.21",
99
- "luxon": "^3.4.4",
99
+ "luxon": "^3.5.0",
100
100
  "prop-types": "^15.8.1",
101
101
  "rc-slider": "^11.1.5",
102
102
  "react": "^18.3.1",
@@ -110,16 +110,17 @@
110
110
  "react-otp-input": "^3.1.1",
111
111
  "react-paginate": "^8.2.0",
112
112
  "react-responsive": "^10.0.0",
113
+ "react-scroll": "^1.9.0",
113
114
  "react-scrollbars-custom": "^4.1.1",
114
115
  "react-select": "^5.8.0",
115
- "swiper": "^11.1.8",
116
+ "swiper": "^11.1.9",
116
117
  "uuid": "^10.0.0"
117
118
  },
118
119
  "devDependencies": {
119
120
  "@babel/core": "^7.25.2",
120
121
  "@babel/eslint-parser": "^7.25.1",
121
122
  "@babel/eslint-plugin": "^7.25.1",
122
- "@babel/preset-env": "^7.25.2",
123
+ "@babel/preset-env": "^7.25.3",
123
124
  "@babel/preset-react": "^7.24.7",
124
125
  "@commitlint/cli": "^19.3.0",
125
126
  "@commitlint/config-conventional": "^19.2.2",
@@ -135,8 +136,9 @@
135
136
  "@types/js-cookie": "^3.0.6",
136
137
  "@types/lodash": "^4.17.7",
137
138
  "@types/react": "^18",
138
- "@types/react-datepicker": "^6.2.0",
139
+ "@types/react-datepicker": "^7.0.0",
139
140
  "@types/react-dom": "^18.3.0",
141
+ "@types/react-scroll": "^1.8.10",
140
142
  "babel-loader": "^9.1.3",
141
143
  "babel-plugin-inline-react-svg": "^2.0.2",
142
144
  "babel-plugin-react-docgen": "^4.2.1",
@@ -144,9 +146,9 @@
144
146
  "conventional-changelog-conventionalcommits": "^8.0.0",
145
147
  "eslint": "9.8.0",
146
148
  "husky": "^9.1.4",
147
- "lint-staged": "^15.2.7",
149
+ "lint-staged": "^15.2.8",
148
150
  "npm": "^10.8.2",
149
- "postcss": "^8.4.40",
151
+ "postcss": "^8.4.41",
150
152
  "postcss-aspect-ratio-polyfill": "^2.0.0",
151
153
  "postcss-cli": "^11.0.0",
152
154
  "postcss-combine-duplicated-selectors": "^10.0.3",
@@ -164,19 +166,19 @@
164
166
  "postcss-nested-ancestors": "^3.0.0",
165
167
  "postcss-normalize": "^10.0.1",
166
168
  "postcss-prepend-imports": "^1.0.1",
167
- "postcss-preset-env": "^9.6.0",
169
+ "postcss-preset-env": "^10.0.0",
168
170
  "postcss-pxtorem": "^6.1.0",
169
171
  "postcss-responsive-type": "github:ITCase/postcss-responsive-type",
170
172
  "postcss-sort-media-queries": "^5.2.0",
171
173
  "prettier": "3.3.3",
172
- "rollup": "^4.19.1",
174
+ "rollup": "^4.20.0",
173
175
  "rollup-plugin-copy": "^3.5.0",
174
176
  "rollup-plugin-dts": "^6.1.1",
175
177
  "rollup-plugin-peer-deps-external": "^2.2.4",
176
178
  "rollup-plugin-typescript2": "^0.36.0",
177
179
  "rollup-preserve-directives": "^1.1.1",
178
180
  "semantic-release": "^24.0.0",
179
- "stylelint": "^16.8.0",
181
+ "stylelint": "^16.8.1",
180
182
  "tslib": "^2.6.3",
181
183
  "typescript": "^5.5.4"
182
184
  }
@@ -1,90 +0,0 @@
1
- import { a as __rest, _ as __assign } from './_tslib-S-VPg1Cw.js';
2
- import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
3
- import React__default from 'react';
4
- import clsx from 'clsx';
5
- import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
6
- import { useStyles } from './hooks/useStyles.js';
7
-
8
- var linkConfig = {
9
- LinkComponent: 'a',
10
- setLinkComponent: function (newComponent) {
11
- linkConfig.LinkComponent = newComponent;
12
- },
13
- };
14
- function Link(props) {
15
- var after = props.after, before = props.before, children = props.children, className = props.className, LinkComponent = props.LinkComponent, href = props.href, link = props.link, target = props.target, rel = props.rel, text = props.text, _a = props.underline, underline = _a === void 0 ? 'underline' : _a, onClick = props.onClick, onMouseDown = props.onMouseDown;
16
- var directionClass = useDeviceTargetClass(props, {
17
- prefix: 'link_direction_',
18
- propsKey: 'direction',
19
- });
20
- var sizeClass = useDeviceTargetClass(props, {
21
- prefix: 'text_size_',
22
- propsKey: 'size',
23
- });
24
- var textColorClass = useDeviceTargetClass(props, {
25
- prefix: 'text-color_',
26
- propsKey: 'textColor',
27
- });
28
- var fillClass = useDeviceTargetClass(props, {
29
- prefix: 'fill_',
30
- propsKey: 'fill',
31
- });
32
- var svgFillClass = useDeviceTargetClass(props, {
33
- prefix: 'svg_fill_',
34
- propsKey: 'svgFill',
35
- });
36
- var svgFillHoverClass = useDeviceTargetClass(props, {
37
- prefix: 'svg_fill_hover_',
38
- propsKey: 'svgFillHover',
39
- });
40
- var weightClass = useDeviceTargetClass(props, {
41
- prefix: 'text-weight_',
42
- propsKey: 'textWeight',
43
- });
44
- var textColorHoverClass = useDeviceTargetClass(props, {
45
- prefix: 'text-color_hover_',
46
- propsKey: 'textColorHover',
47
- });
48
- var textStyleClass = useDeviceTargetClass(props, {
49
- prefix: 'text-style_',
50
- propsKey: 'textColorHover',
51
- });
52
- var textGradientClass = useDeviceTargetClass(props, {
53
- prefix: 'text-gradient_',
54
- propsKey: 'textGradient',
55
- });
56
- // @ts-expect-error
57
- var styles = useStyles(props).styles;
58
- return (jsxRuntimeExports.jsxs(LinkWrapper, { className: clsx(className, 'link', directionClass, sizeClass, svgFillClass, svgFillHoverClass, underline && "link_underline_".concat(underline), (textColorClass ||
59
- textColorHoverClass ||
60
- textGradientClass ||
61
- textStyleClass ||
62
- weightClass) &&
63
- 'text', textColorClass, textColorHoverClass, textGradientClass, textStyleClass, weightClass, fillClass), Component: LinkComponent, href: href || link, rel: rel, style: styles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: [before, children || text, after] }));
64
- }
65
- Link.defaultProps = {
66
- underline: 'underline',
67
- };
68
- // Wrapper with "Link" by condition
69
- function LinkWrapper(props) {
70
- var children = props.children, Component = props.Component, DefaultComponent = props.DefaultComponent, href = props.href, target = props.target, rel = props.rel, otherProps = __rest(props, ["children", "Component", "DefaultComponent", "href", "target", "rel"]);
71
- if (href) {
72
- // If href passed, make link-wrapper
73
- var LinkComponent = Component || linkConfig.LinkComponent;
74
- if (LinkComponent) {
75
- return (jsxRuntimeExports.jsx(LinkComponent, __assign({ href: href, rel: rel, target: target }, otherProps, { children: children })));
76
- }
77
- }
78
- else if (DefaultComponent) {
79
- // If has default "Component" - render it
80
- return jsxRuntimeExports.jsx(DefaultComponent, __assign({}, otherProps, { children: children }));
81
- }
82
- // Return children and pass current props to
83
- return React__default.Children.toArray(children)
84
- .filter(Boolean)
85
- .map(function (child) {
86
- return React__default.isValidElement(child) ? React__default.cloneElement(child, otherProps) : child;
87
- });
88
- }
89
-
90
- export { Link as L, LinkWrapper as a, linkConfig as l };
@@ -1,37 +0,0 @@
1
- import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
2
- import clsx from 'clsx';
3
- import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
4
- import { useStyles } from './hooks/useStyles.js';
5
- import { a as LinkWrapper } from './Link-Co6uspFK.js';
6
-
7
- var logoConfig = {
8
- appearance: undefined,
9
- setAppearance: function (newComponent) {
10
- logoConfig.appearance = newComponent;
11
- },
12
- };
13
- function Logo(props) {
14
- var alt = props.alt, appearance = props.appearance, className = props.className, href = props.href, link = props.link, mode = props.mode, size = props.size, source = props.source, src = props.src, srcSize = props.srcSize;
15
- var alignItemsClass = useDeviceTargetClass(props, {
16
- prefix: 'logo_align-items_',
17
- propsKey: 'alignItems',
18
- });
19
- var widthClass = useDeviceTargetClass(props, {
20
- prefix: 'width_',
21
- propsKey: 'width',
22
- });
23
- var alignDirectionClass = useDeviceTargetClass(props, {
24
- prefix: 'align_',
25
- propsKey: 'alignDirection',
26
- });
27
- var alignClass = useDeviceTargetClass(props, {
28
- prefix: 'align_',
29
- propsKey: 'align',
30
- });
31
- // @ts-expect-error
32
- var logo = useStyles(props).styles;
33
- var appearanceConfig = appearance && logoConfig.appearance && logoConfig.appearance[appearance];
34
- return (jsxRuntimeExports.jsx("div", { style: logo, className: clsx(className, 'logo', alignClass, alignDirectionClass, alignItemsClass, alt, mode && "logo_mode_".concat(mode), size && "logo_size_".concat(size), widthClass), children: link || href ? (jsxRuntimeExports.jsx(LinkWrapper, { href: link || href, children: jsxRuntimeExports.jsx("img", { className: "logo__image", src: src || source || srcSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.srcSize) }) })) : (jsxRuntimeExports.jsx("img", { className: "logo__image", src: src || source || srcSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.srcSize) })) }));
35
- }
36
-
37
- export { Logo as L, logoConfig as l };
@@ -1,99 +0,0 @@
1
- 'use strict';
2
-
3
- var _tslib = require('./_tslib-CKiUdo7p.js');
4
- var jsxRuntime = require('./jsx-runtime-BBxmckJR.js');
5
- var React = require('react');
6
- var clsx = require('clsx');
7
- var useDeviceTargetClass = require('./hooks/useDeviceTargetClass.js');
8
- var useStyles = require('./hooks/useStyles.js');
9
-
10
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
-
12
- var React__default = /*#__PURE__*/_interopDefault(React);
13
- var clsx__default = /*#__PURE__*/_interopDefault(clsx);
14
-
15
- var linkConfig = {
16
- LinkComponent: 'a',
17
- setLinkComponent: function (newComponent) {
18
- linkConfig.LinkComponent = newComponent;
19
- },
20
- };
21
- function Link(props) {
22
- var after = props.after, before = props.before, children = props.children, className = props.className, LinkComponent = props.LinkComponent, href = props.href, link = props.link, target = props.target, rel = props.rel, text = props.text, _a = props.underline, underline = _a === void 0 ? 'underline' : _a, onClick = props.onClick, onMouseDown = props.onMouseDown;
23
- var directionClass = useDeviceTargetClass.useDeviceTargetClass(props, {
24
- prefix: 'link_direction_',
25
- propsKey: 'direction',
26
- });
27
- var sizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
28
- prefix: 'text_size_',
29
- propsKey: 'size',
30
- });
31
- var textColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
32
- prefix: 'text-color_',
33
- propsKey: 'textColor',
34
- });
35
- var fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
36
- prefix: 'fill_',
37
- propsKey: 'fill',
38
- });
39
- var svgFillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
40
- prefix: 'svg_fill_',
41
- propsKey: 'svgFill',
42
- });
43
- var svgFillHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
44
- prefix: 'svg_fill_hover_',
45
- propsKey: 'svgFillHover',
46
- });
47
- var weightClass = useDeviceTargetClass.useDeviceTargetClass(props, {
48
- prefix: 'text-weight_',
49
- propsKey: 'textWeight',
50
- });
51
- var textColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
52
- prefix: 'text-color_hover_',
53
- propsKey: 'textColorHover',
54
- });
55
- var textStyleClass = useDeviceTargetClass.useDeviceTargetClass(props, {
56
- prefix: 'text-style_',
57
- propsKey: 'textColorHover',
58
- });
59
- var textGradientClass = useDeviceTargetClass.useDeviceTargetClass(props, {
60
- prefix: 'text-gradient_',
61
- propsKey: 'textGradient',
62
- });
63
- // @ts-expect-error
64
- var styles = useStyles.useStyles(props).styles;
65
- return (jsxRuntime.jsxRuntimeExports.jsxs(LinkWrapper, { className: clsx__default.default(className, 'link', directionClass, sizeClass, svgFillClass, svgFillHoverClass, underline && "link_underline_".concat(underline), (textColorClass ||
66
- textColorHoverClass ||
67
- textGradientClass ||
68
- textStyleClass ||
69
- weightClass) &&
70
- 'text', textColorClass, textColorHoverClass, textGradientClass, textStyleClass, weightClass, fillClass), Component: LinkComponent, href: href || link, rel: rel, style: styles, target: target, onClick: onClick, onMouseDown: onMouseDown, children: [before, children || text, after] }));
71
- }
72
- Link.defaultProps = {
73
- underline: 'underline',
74
- };
75
- // Wrapper with "Link" by condition
76
- function LinkWrapper(props) {
77
- var children = props.children, Component = props.Component, DefaultComponent = props.DefaultComponent, href = props.href, target = props.target, rel = props.rel, otherProps = _tslib.__rest(props, ["children", "Component", "DefaultComponent", "href", "target", "rel"]);
78
- if (href) {
79
- // If href passed, make link-wrapper
80
- var LinkComponent = Component || linkConfig.LinkComponent;
81
- if (LinkComponent) {
82
- return (jsxRuntime.jsxRuntimeExports.jsx(LinkComponent, _tslib.__assign({ href: href, rel: rel, target: target }, otherProps, { children: children })));
83
- }
84
- }
85
- else if (DefaultComponent) {
86
- // If has default "Component" - render it
87
- return jsxRuntime.jsxRuntimeExports.jsx(DefaultComponent, _tslib.__assign({}, otherProps, { children: children }));
88
- }
89
- // Return children and pass current props to
90
- return React__default.default.Children.toArray(children)
91
- .filter(Boolean)
92
- .map(function (child) {
93
- return React__default.default.isValidElement(child) ? React__default.default.cloneElement(child, otherProps) : child;
94
- });
95
- }
96
-
97
- exports.Link = Link;
98
- exports.LinkWrapper = LinkWrapper;
99
- exports.linkConfig = linkConfig;