@startlibs/components 1.1.0 → 1.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startlibs/components",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Startlibs Components",
5
5
  "main": "lib/index.cjs",
6
6
  "exports": {
@@ -21,8 +21,10 @@
21
21
  "@startlibs/core": "*",
22
22
  "@startlibs/utils": "*",
23
23
  "lodash": "^4.17.21",
24
+ "polished": "^2.0.0 || ^3.0.0 || ^4.0.0",
24
25
  "react": ">=16.8",
25
26
  "react-dom": ">=16.8",
27
+ "react-is": "^16.13.1 || ^17.0.0 || ^18.0.0 || ^19.0.0",
26
28
  "styled-components": ">=5",
27
29
  "wouter": "*"
28
30
  },
@@ -37,6 +39,8 @@
37
39
  "babel-plugin-styled-components": "^1.10.0",
38
40
  "lodash": "^4.17.21",
39
41
  "patch-package": "^8.0.1",
42
+ "polished": "^2.0.0 || ^3.0.0 || ^4.0.0",
43
+ "react-is": "^16.13.1 || ^17.0.0 || ^18.0.0 || ^19.0.0",
40
44
  "rollup": "^2.79.2",
41
45
  "rollup-plugin-auto-external": "^2.0.0",
42
46
  "rollup-plugin-babel": "^4.0.3",
@@ -47,7 +51,7 @@
47
51
  "scripts": {
48
52
  "test": "echo \"Error: no test specified\" && exit 1",
49
53
  "build": "rollup -c",
50
- "postinstall": "patch-package"
54
+ "prepare": "patch-package"
51
55
  },
52
56
  "repository": {
53
57
  "type": "git",
@@ -65,9 +69,7 @@
65
69
  "homepage": "https://github.com/felipeko/startlibs#readme",
66
70
  "dependencies": {
67
71
  "@babel/runtime": "^7.20.0",
68
- "mitt": "^1.1.2",
69
- "polished": "^2.0.0 || ^3.0.0 || ^4.0.0",
70
- "react-is": "^16.13.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
72
+ "mitt": "^1.1.2"
71
73
  },
72
74
  "files": [
73
75
  "lib",
@@ -86,7 +86,6 @@ export const ListItem = styled.li`
86
86
  }
87
87
  ${ifProp('hover', css`
88
88
  & > a, & > label {
89
- // background: ${props => lighten(0.53, getColor("main")(props))};
90
89
  background: ${props => transparentize(0.88, getColor("main")(props))};
91
90
  color: ${props => darken(0.03, getColor("main")(props))};
92
91
  }`)}
@@ -10,7 +10,7 @@ export const TextButton = styled(({className,isLoading,alert, fontSize, children
10
10
  </Wrapper>)`
11
11
  display: inline-block;
12
12
  font-weight: 600;
13
- font-size: ${props => props.fontSize ? fontSize : "14"}px;
13
+ font-size: ${props => props.fontSize ? props.fontSize : "14"}px;
14
14
  color: ${props => props.alert ? getColor('alert') : getColor('main')};
15
15
  cursor: pointer;
16
16
  text-decoration: none;
@@ -196,7 +196,7 @@ export const useToastNotificationToggle = (notification,timeout) => {
196
196
  open: () => toggle.get() ? toggle.get().openWith(formatNotification(notification,extraProps),timeout) : toggle.openWith(make(notification,timeout))
197
197
  }),[toggle.isOpen])
198
198
  }
199
- export const willShowToastNotification = (str) => () => showToastNotification(str)
199
+ export const willShowToastNotification = (str,timeout) => () => createToastNotification(str,timeout)
200
200
 
201
201
  const EXIT_ANIMATION_MS = 300
202
202
  const TOAST_EASING = 'cubic-bezier(0.22, 0.61, 0.36, 1)'