@rokkit/core 1.0.0-next.58 → 1.0.0-next.59

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": "@rokkit/core",
3
- "version": "1.0.0-next.58",
3
+ "version": "1.0.0-next.59",
4
4
  "description": "Core components, actions and stores for svelte apps.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "validators": "latest",
25
25
  "vite": "^4.5.0",
26
26
  "vitest": "~0.34.6",
27
- "shared-config": "1.0.0-next.58"
27
+ "shared-config": "1.0.0-next.59"
28
28
  },
29
29
  "files": [
30
30
  "src/**/*.js",
package/src/index.js CHANGED
@@ -9,4 +9,3 @@ export * from './calendar'
9
9
  export * from './utils'
10
10
  export * from './parser'
11
11
  export * from './string'
12
- export * from './hacks'
package/src/utils.js CHANGED
@@ -45,8 +45,8 @@ export function stateColors(name, modifier = 'none') {
45
45
  const fn = modifier in modifiers ? modifiers[modifier] : modifiers.none
46
46
  return {
47
47
  DEFAULT: fn(`var(--${name}-500)`),
48
- light: fn(`var(--${name}-100)`),
49
- dark: fn(`var(--${name}-800)`)
48
+ light: fn(`var(--${name}-200)`),
49
+ dark: fn(`var(--${name}-700)`)
50
50
  }
51
51
  }
52
52
 
package/src/hacks.js DELETED
@@ -1,15 +0,0 @@
1
- /**
2
- * Function to change the viewport height on mobile browsers to account for the address bar
3
- *
4
- * @param {boolean} [browser=false] indicates whether the device is a browser
5
- * @param {boolean} [small=false] indicates whether the device is a small mobile device
6
- */
7
- export function adjustViewport(browser = false, small = false) {
8
- if (browser) {
9
- const viewportHeight =
10
- window.innerHeight != window.outerHeight && small ? window.innerHeight + 'px' : '100vh'
11
- document.body.style.visibility = 'hidden'
12
- document.body.style.setProperty('--viewport-height', viewportHeight)
13
- document.body.style.visibility = 'visible'
14
- }
15
- }