@semcore/tab-panel 3.0.9 → 3.1.1

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/CHANGELOG.md CHANGED
@@ -2,59 +2,35 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [3.0.9] - 2022-09-30
6
-
7
- ### Added
8
-
9
- - Added styles for panel consisting only of an icon.
10
-
11
- ## [3.0.8] - 2022-09-07
12
-
13
- ### Fixed
14
-
15
- - Enforced inner text font line height to prevent possible bottom cut.
16
-
17
- ## [3.0.7] - 2022-08-30
18
-
19
- ### Changed
20
-
21
- - Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1], `@semcore/flex-box` [4.5.10 ~> 4.5.11]).
22
-
23
- ## [3.0.6] - 2022-08-18
24
-
25
- ### Changed
26
-
27
- - Version patch update due to children dependencies update (`@semcore/utils` [3.36.0 ~> 3.37.0], `@semcore/flex-box` [4.5.9 ~> 4.5.10]).
28
-
29
- ## [3.0.5] - 2022-08-11
5
+ ## [3.1.1] - 2022-10-17
30
6
 
31
7
  ### Changed
32
8
 
33
- - Version patch update due to children dependencies update (`@semcore/utils` [3.35.1 ~> 3.36.0], `@semcore/flex-box` [4.5.8 ~> 4.5.9]).
9
+ - Version patch update due to children dependencies update (`@semcore/utils` [3.39.0 ~> 3.39.0], `@semcore/flex-box` [4.6.0 ~> 4.6.1]).
34
10
 
35
- ## [3.0.4] - 2022-07-22
11
+ ## [3.1.0] - 2022-10-10
36
12
 
37
13
  ### Changed
38
14
 
39
- - Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0], `@semcore/flex-box` [4.5.6 ~> 4.5.7]).
15
+ - Added support for React 18 🔥
40
16
 
41
- ## [3.0.3] - 2022-06-02
17
+ ## [3.0.9] - 2022-09-30
42
18
 
43
- ### Changed
19
+ ### Added
44
20
 
45
- - Version patch update due to children dependencies update (`@semcore/utils` [3.32.2 ~> 3.33.0], `@semcore/flex-box` [4.5.4 ~> 4.5.5]).
21
+ - Added styles for panel consisting only of an icon.
46
22
 
47
- ## [3.0.2] - 2022-05-31
23
+ ## [3.0.8] - 2022-09-07
48
24
 
49
- ### Changed
25
+ ### Fixed
50
26
 
51
- - Version patch update due to children dependencies update (`@semcore/utils` [3.32.1 ~> 3.32.2], `@semcore/flex-box` [4.5.3 ~> 4.5.4]).
27
+ - Enforced inner text font line height to prevent possible bottom cut.
52
28
 
53
- ## [3.0.1] - 2022-05-19
29
+ ## [3.0.7] - 2022-08-30
54
30
 
55
31
  ### Changed
56
32
 
57
- - Version patch update due to children dependencies update (`@semcore/utils` [3.32.0 ~> 3.32.1], `@semcore/flex-box` [4.5.1 ~> 4.5.3]).
33
+ - Version patch update due to children dependencies update (`@semcore/utils` [3.37.0 ~> 3.37.1], `@semcore/flex-box` [4.5.10 ~> 4.5.11]).
58
34
 
59
35
  ## [3.0.0] - 2022-05-17
60
36
 
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright ©, 2022, Semrush Inc. (written by Roman Lysov, Sergey Kobets, Mikhail Karachev, Julia Mnizhek, Elena Krasnopolskaia, Mikhail Sereniti).
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -52,18 +52,18 @@ var style = (
52
52
  /*__reshadow_css_start__*/
53
53
  _core.sstyled.insert(
54
54
  /*__inner_css_start__*/
55
- ".___STabPanel_2imgl_gg_{display:flex;width:100%;max-width:100%;border-bottom:1px solid #c4c7cf}.___STabPanelItem_2imgl_gg_{position:relative;bottom:-1px;display:inline-flex;min-width:0;height:32px;color:#6c6e79;border:1px solid transparent;border-radius:6px 6px 0 0;background:transparent;align-items:center;justify-content:center;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;outline:none;text-decoration:none;-webkit-tap-highlight-color:transparent;outline:0;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer}.___STabPanelItem_2imgl_gg_ .___SText_2imgl_gg_{font-size:14px;line-height:1.42}.___STabPanelItem_2imgl_gg_::-moz-focus-inner{border:none;padding:0}.___STabPanelItem_2imgl_gg_:active,.___STabPanelItem_2imgl_gg_:focus,.___STabPanelItem_2imgl_gg_:hover{outline:0;text-decoration:none}.___STabPanelItem_2imgl_gg_:hover{color:#191b23}.___STabPanelItem_2imgl_gg_.__disabled_2imgl_gg_{opacity:0.3;cursor:default;pointer-events:none}.___STabPanelItem_2imgl_gg_.__keyboardFocused_2imgl_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___STabPanelItem_2imgl_gg_.__selected_2imgl_gg_{color:#006dca;border-color:#c4c7cf;border-bottom-color:#ffffff;flex-shrink:0}.___STabPanelItem_2imgl_gg_.__selected_2imgl_gg_:hover{color:#006dca}.___SText_2imgl_gg_{display:inline-block;margin:auto 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SAddon_2imgl_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_2imgl_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_2imgl_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_2imgl_gg_:only-child{margin-right:8px;margin-left:8px}"
55
+ ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___STabPanel_16hty_gg_ {\n display: flex;\n width: 100%;\n max-width: 100%;\n border-bottom: 1px solid #c4c7cf;\n}\n\n.___STabPanelItem_16hty_gg_ {\n position: relative;\n bottom: -1px;\n display: inline-flex;\n min-width: 0;\n height: 32px;\n color: #6c6e79;\n border: 1px solid transparent;\n border-radius: 6px 6px 0 0;\n background: transparent;\n align-items: center;\n justify-content: center;\n touch-action: manipulation;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n box-shadow: none;\n outline: none;\n text-decoration: none;\n -webkit-tap-highlight-color: transparent;\n outline: 0;\n text-align: center;\n vertical-align: middle;\n font-family: inherit;\n cursor: pointer\n}\n\n.___STabPanelItem_16hty_gg_ .___SText_16hty_gg_ {\n font-size: 14px;\n line-height: 1.42;\n }\n\n.___STabPanelItem_16hty_gg_::-moz-focus-inner {\n border: none;\n padding: 0;\n }\n\n.___STabPanelItem_16hty_gg_:active,\n .___STabPanelItem_16hty_gg_:hover,\n .___STabPanelItem_16hty_gg_:focus {\n outline: 0;\n text-decoration: none;\n }\n\n.___STabPanelItem_16hty_gg_:hover {\n color: #191b23;\n }\n\n.___STabPanelItem_16hty_gg_.__disabled_16hty_gg_ {\n opacity: 0.3;\n cursor: default;\n pointer-events: none; /* Disable link interactions */\n}\n\n.___STabPanelItem_16hty_gg_.__keyboardFocused_16hty_gg_ {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n}\n\n.___STabPanelItem_16hty_gg_.__selected_16hty_gg_ {\n color: #006dca;\n border-color: #c4c7cf;\n border-bottom-color: #ffffff;\n flex-shrink: 0\n}\n\n.___STabPanelItem_16hty_gg_.__selected_16hty_gg_:hover {\n color: #006dca;\n }\n\n.___SText_16hty_gg_ {\n display: inline-block;\n margin: auto 8px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.___SAddon_16hty_gg_ {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.___SAddon_16hty_gg_:not(:only-child):first-child {\n margin-left: 8px;\n}\n\n.___SAddon_16hty_gg_:not(:only-child):last-child {\n margin-right: 8px;\n}\n\n.___SAddon_16hty_gg_:only-child {\n margin-right: 8px;\n margin-left: 8px;\n}\n"
56
56
  /*__inner_css_end__*/
57
- , "2imgl_gg_")
57
+ , "16hty_gg_")
58
58
  /*__reshadow_css_end__*/
59
59
  , {
60
- "__STabPanel": "___STabPanel_2imgl_gg_",
61
- "__STabPanelItem": "___STabPanelItem_2imgl_gg_",
62
- "__SText": "___SText_2imgl_gg_",
63
- "_disabled": "__disabled_2imgl_gg_",
64
- "_keyboardFocused": "__keyboardFocused_2imgl_gg_",
65
- "_selected": "__selected_2imgl_gg_",
66
- "__SAddon": "___SAddon_2imgl_gg_"
60
+ "__STabPanel": "___STabPanel_16hty_gg_",
61
+ "__STabPanelItem": "___STabPanelItem_16hty_gg_",
62
+ "__SText": "___SText_16hty_gg_",
63
+ "_disabled": "__disabled_16hty_gg_",
64
+ "_keyboardFocused": "__keyboardFocused_16hty_gg_",
65
+ "_selected": "__selected_16hty_gg_",
66
+ "__SAddon": "___SAddon_16hty_gg_"
67
67
  });
68
68
  var optionsA11yEnhance = {
69
69
  onNeighborChange: function onNeighborChange(neighborElement) {
@@ -31,18 +31,18 @@ var style = (
31
31
  /*__reshadow_css_start__*/
32
32
  _sstyled.insert(
33
33
  /*__inner_css_start__*/
34
- ".___STabPanel_2imgl_gg_{display:flex;width:100%;max-width:100%;border-bottom:1px solid #c4c7cf}.___STabPanelItem_2imgl_gg_{position:relative;bottom:-1px;display:inline-flex;min-width:0;height:32px;color:#6c6e79;border:1px solid transparent;border-radius:6px 6px 0 0;background:transparent;align-items:center;justify-content:center;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;outline:none;text-decoration:none;-webkit-tap-highlight-color:transparent;outline:0;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer}.___STabPanelItem_2imgl_gg_ .___SText_2imgl_gg_{font-size:14px;line-height:1.42}.___STabPanelItem_2imgl_gg_::-moz-focus-inner{border:none;padding:0}.___STabPanelItem_2imgl_gg_:active,.___STabPanelItem_2imgl_gg_:focus,.___STabPanelItem_2imgl_gg_:hover{outline:0;text-decoration:none}.___STabPanelItem_2imgl_gg_:hover{color:#191b23}.___STabPanelItem_2imgl_gg_.__disabled_2imgl_gg_{opacity:0.3;cursor:default;pointer-events:none}.___STabPanelItem_2imgl_gg_.__keyboardFocused_2imgl_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___STabPanelItem_2imgl_gg_.__selected_2imgl_gg_{color:#006dca;border-color:#c4c7cf;border-bottom-color:#ffffff;flex-shrink:0}.___STabPanelItem_2imgl_gg_.__selected_2imgl_gg_:hover{color:#006dca}.___SText_2imgl_gg_{display:inline-block;margin:auto 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SAddon_2imgl_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_2imgl_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_2imgl_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_2imgl_gg_:only-child{margin-right:8px;margin-left:8px}"
34
+ ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___STabPanel_16hty_gg_ {\n display: flex;\n width: 100%;\n max-width: 100%;\n border-bottom: 1px solid #c4c7cf;\n}\n\n.___STabPanelItem_16hty_gg_ {\n position: relative;\n bottom: -1px;\n display: inline-flex;\n min-width: 0;\n height: 32px;\n color: #6c6e79;\n border: 1px solid transparent;\n border-radius: 6px 6px 0 0;\n background: transparent;\n align-items: center;\n justify-content: center;\n touch-action: manipulation;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n box-shadow: none;\n outline: none;\n text-decoration: none;\n -webkit-tap-highlight-color: transparent;\n outline: 0;\n text-align: center;\n vertical-align: middle;\n font-family: inherit;\n cursor: pointer\n}\n\n.___STabPanelItem_16hty_gg_ .___SText_16hty_gg_ {\n font-size: 14px;\n line-height: 1.42;\n }\n\n.___STabPanelItem_16hty_gg_::-moz-focus-inner {\n border: none;\n padding: 0;\n }\n\n.___STabPanelItem_16hty_gg_:active,\n .___STabPanelItem_16hty_gg_:hover,\n .___STabPanelItem_16hty_gg_:focus {\n outline: 0;\n text-decoration: none;\n }\n\n.___STabPanelItem_16hty_gg_:hover {\n color: #191b23;\n }\n\n.___STabPanelItem_16hty_gg_.__disabled_16hty_gg_ {\n opacity: 0.3;\n cursor: default;\n pointer-events: none; /* Disable link interactions */\n}\n\n.___STabPanelItem_16hty_gg_.__keyboardFocused_16hty_gg_ {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n}\n\n.___STabPanelItem_16hty_gg_.__selected_16hty_gg_ {\n color: #006dca;\n border-color: #c4c7cf;\n border-bottom-color: #ffffff;\n flex-shrink: 0\n}\n\n.___STabPanelItem_16hty_gg_.__selected_16hty_gg_:hover {\n color: #006dca;\n }\n\n.___SText_16hty_gg_ {\n display: inline-block;\n margin: auto 8px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.___SAddon_16hty_gg_ {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.___SAddon_16hty_gg_:not(:only-child):first-child {\n margin-left: 8px;\n}\n\n.___SAddon_16hty_gg_:not(:only-child):last-child {\n margin-right: 8px;\n}\n\n.___SAddon_16hty_gg_:only-child {\n margin-right: 8px;\n margin-left: 8px;\n}\n"
35
35
  /*__inner_css_end__*/
36
- , "2imgl_gg_")
36
+ , "16hty_gg_")
37
37
  /*__reshadow_css_end__*/
38
38
  , {
39
- "__STabPanel": "___STabPanel_2imgl_gg_",
40
- "__STabPanelItem": "___STabPanelItem_2imgl_gg_",
41
- "__SText": "___SText_2imgl_gg_",
42
- "_disabled": "__disabled_2imgl_gg_",
43
- "_keyboardFocused": "__keyboardFocused_2imgl_gg_",
44
- "_selected": "__selected_2imgl_gg_",
45
- "__SAddon": "___SAddon_2imgl_gg_"
39
+ "__STabPanel": "___STabPanel_16hty_gg_",
40
+ "__STabPanelItem": "___STabPanelItem_16hty_gg_",
41
+ "__SText": "___SText_16hty_gg_",
42
+ "_disabled": "__disabled_16hty_gg_",
43
+ "_keyboardFocused": "__keyboardFocused_16hty_gg_",
44
+ "_selected": "__selected_16hty_gg_",
45
+ "__SAddon": "___SAddon_16hty_gg_"
46
46
  });
47
47
  var optionsA11yEnhance = {
48
48
  onNeighborChange: function onNeighborChange(neighborElement) {
package/package.json CHANGED
@@ -1,24 +1,20 @@
1
1
  {
2
2
  "name": "@semcore/tab-panel",
3
3
  "description": "Semrush TabPanel Component",
4
- "version": "3.0.9",
4
+ "version": "3.1.1",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
- "scripts": {
12
- "build": "pnpm semcore-builder --source=js",
13
- "test": "jest"
14
- },
15
11
  "dependencies": {
16
12
  "@semcore/utils": "^3.30",
17
13
  "@semcore/flex-box": "^4"
18
14
  },
19
15
  "peerDependencies": {
20
16
  "@semcore/core": "^1.11",
21
- "react": "16.8 - 17"
17
+ "react": "16.8 - 18"
22
18
  },
23
19
  "jest": {
24
20
  "preset": "@semcore/jest-preset-ui"
@@ -29,8 +25,12 @@
29
25
  "directory": "semcore/tab-panel"
30
26
  },
31
27
  "devDependencies": {
32
- "@types/react": "16.8 - 17",
28
+ "@types/react": "18.0.21",
33
29
  "@semcore/jest-preset-ui": "1.0.0",
34
- "@semcore/icon": "^2.16"
30
+ "@semcore/icon": "*"
31
+ },
32
+ "scripts": {
33
+ "build": "pnpm semcore-builder --source=js",
34
+ "test": "jest"
35
35
  }
36
- }
36
+ }