helix-ui icon indicating copy to clipboard operation
helix-ui copied to clipboard

[FEATURE] Deep module imports

Open CITguy opened this issue 7 years ago • 2 comments

As a consumer of HelixUI, I would like to use deep module imports, so that I can import specific functionality from a HelixUI submodule.


With #309, we have the ability to selectively import items from the helix-ui module. However, we still have to import Elements and Utils as a namespace if we want to use any of the available functionality within them.

A consumer should be able to use the following syntax:

import { HXElement } from 'helix-ui/elements';
import { KEYS } from 'helix-ui/utils';
import { getPosition } from 'helix-ui/utils/position';

CITguy avatar Aug 15 '18 03:08 CITguy

Anticipated consumption after Nov 2018 CAREaTHON project.

import { HXElement } from 'helix-ui/lib/elements';
import { KEYS } from 'helix-ui/lib/utils';
import { getPosition } from 'helix-ui/lib/utils/position';

CITguy avatar Nov 09 '18 19:11 CITguy

We'll be investigating LOE to complete this work.

CITguy avatar Dec 16 '19 18:12 CITguy