Skip to content

Commit 6415cfa

Browse files
committed
refactor: remove nanostores, refactor to load.js and hooks.js
1 parent 2711daf commit 6415cfa

27 files changed

+77
-77
lines changed

cypress/tests/system/api/use-css.js renamed to cypress/tests/system/hooks/use-css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import {useCss} from '../../../../lib/system/api.js';
3+
import {useCss} from '../../../../lib/system/hooks.js';
44
import {mount} from '../../../utils/index.js';
55

66
const style1 = {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

cypress/tests/system/api/use.h.js renamed to cypress/tests/system/hooks/use.h.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {createElement as h} from 'react';
22

3-
import {load, useH} from '../../../../lib/system/api.js';
3+
import {useH} from '../../../../lib/system/hooks.js';
4+
import {load} from '../../../../lib/system/load.js';
45

56
describe('useH', () => {
67
it('should throw if system is not loaded', () => {

cypress/tests/system/config/element-shorthand-props-mapping.js renamed to cypress/tests/system/load/config/element-shorthand-props-mapping.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

3-
import {Element, Icon, Layout, Text} from '../../../../index.js';
4-
import {mount} from '../../../utils/index.js';
3+
import {Element, Icon, Layout, Text} from '../../../../../index.js';
4+
import {mount} from '../../../../utils/index.js';
55

66
describe('config.elementShorthandPropsMapping', () => {
77
it('should not apply shorthand props style if not configured', () => {

cypress/tests/system/config/element-styles.js renamed to cypress/tests/system/load/config/element-styles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

3-
import {Element, Icon, Layout, Text} from '../../../../index.js';
4-
import {mount} from '../../../utils/index.js';
3+
import {Element, Icon, Layout, Text} from '../../../../../index.js';
4+
import {mount} from '../../../../utils/index.js';
55

66
const system = {
77
config: {

cypress/tests/system/config/enable-atomic-css.js renamed to cypress/tests/system/load/config/enable-atomic-css.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

3-
import {Element} from '../../../../index.js';
4-
import {mount} from '../../../utils/index.js';
3+
import {Element} from '../../../../../index.js';
4+
import {mount} from '../../../../utils/index.js';
55

66
const styles = [
77
{backgroundColor: 'rgb(225, 225, 225)', padding: '42px'},

0 commit comments

Comments
 (0)