@alleninstitute/cortex-ui 0.1.0

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.
Files changed (42) hide show
  1. package/README.md +390 -0
  2. package/dist/cjs/cortex-ui.cjs.js +24 -0
  3. package/dist/cjs/cui-tag.cjs.entry.js +24 -0
  4. package/dist/cjs/index-Rxdz0vyq.js +1337 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/loader.cjs.js +12 -0
  7. package/dist/collection/collection-manifest.json +13 -0
  8. package/dist/collection/components/cui-tag/cui-tag.css +49 -0
  9. package/dist/collection/components/cui-tag/cui-tag.js +97 -0
  10. package/dist/collection/index.js +8 -0
  11. package/dist/collection/stories/assets/accessibility.svg +1 -0
  12. package/dist/collection/stories/assets/discord.svg +1 -0
  13. package/dist/collection/stories/assets/github.svg +1 -0
  14. package/dist/collection/stories/assets/tutorials.svg +1 -0
  15. package/dist/collection/stories/assets/youtube.svg +1 -0
  16. package/dist/components/cui-tag.d.ts +11 -0
  17. package/dist/components/cui-tag.js +1 -0
  18. package/dist/components/index.d.ts +35 -0
  19. package/dist/components/index.js +1 -0
  20. package/dist/cortex-ui/cortex-ui.css +1 -0
  21. package/dist/cortex-ui/cortex-ui.esm.js +1 -0
  22. package/dist/cortex-ui/index.esm.js +0 -0
  23. package/dist/cortex-ui/p-054ebfa8.entry.js +1 -0
  24. package/dist/cortex-ui/p-C70YK15K.js +2 -0
  25. package/dist/esm/cortex-ui.js +20 -0
  26. package/dist/esm/cui-tag.entry.js +22 -0
  27. package/dist/esm/index-C70YK15K.js +1330 -0
  28. package/dist/esm/index.js +1 -0
  29. package/dist/esm/loader.js +10 -0
  30. package/dist/index.cjs.js +1 -0
  31. package/dist/index.js +1 -0
  32. package/dist/types/components/cui-tag/cui-tag.d.ts +12 -0
  33. package/dist/types/components.d.ts +84 -0
  34. package/dist/types/global.d.ts +2 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/dist/types/stencil-public-runtime.d.ts +1861 -0
  37. package/loader/cdn.js +1 -0
  38. package/loader/index.cjs.js +1 -0
  39. package/loader/index.d.ts +24 -0
  40. package/loader/index.es2017.js +1 -0
  41. package/loader/index.js +2 -0
  42. package/package.json +128 -0
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,10 @@
1
+ import { g as globalScripts, b as bootstrapLazy } from './index-C70YK15K.js';
2
+ export { s as setNonce } from './index-C70YK15K.js';
3
+
4
+ const defineCustomElements = async (win, options) => {
5
+ if (typeof window === 'undefined') return undefined;
6
+ await globalScripts();
7
+ return bootstrapLazy([["cui-tag",[[1,"cui-tag",{"label":[1],"variant":[1],"size":[1]}]]]], options);
8
+ };
9
+
10
+ export { defineCustomElements };
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A Tag component for displaying status labels or counts.
3
+ *
4
+ * @example
5
+ * <cui-tag variant="positive" label="Active"></cui-tag>
6
+ */
7
+ export declare class CuiTag {
8
+ label: string;
9
+ variant: 'default' | 'highlight' | 'info' | 'negative' | 'neutral' | 'positive' | 'warning';
10
+ size: 'small' | 'medium';
11
+ render(): any;
12
+ }
@@ -0,0 +1,84 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ export namespace Components {
9
+ /**
10
+ * A Tag component for displaying status labels or counts.
11
+ * @example <cui-tag variant="positive" label="Active"></cui-tag>
12
+ */
13
+ interface CuiTag {
14
+ /**
15
+ * @default ''
16
+ */
17
+ "label": string;
18
+ /**
19
+ * @default 'medium'
20
+ */
21
+ "size": 'small' | 'medium';
22
+ /**
23
+ * @default 'default'
24
+ */
25
+ "variant": 'default' | 'highlight' | 'info' | 'negative' | 'neutral' | 'positive' | 'warning';
26
+ }
27
+ }
28
+ declare global {
29
+ /**
30
+ * A Tag component for displaying status labels or counts.
31
+ * @example <cui-tag variant="positive" label="Active"></cui-tag>
32
+ */
33
+ interface HTMLCuiTagElement extends Components.CuiTag, HTMLStencilElement {
34
+ }
35
+ var HTMLCuiTagElement: {
36
+ prototype: HTMLCuiTagElement;
37
+ new (): HTMLCuiTagElement;
38
+ };
39
+ interface HTMLElementTagNameMap {
40
+ "cui-tag": HTMLCuiTagElement;
41
+ }
42
+ }
43
+ declare namespace LocalJSX {
44
+ /**
45
+ * A Tag component for displaying status labels or counts.
46
+ * @example <cui-tag variant="positive" label="Active"></cui-tag>
47
+ */
48
+ interface CuiTag {
49
+ /**
50
+ * @default ''
51
+ */
52
+ "label"?: string;
53
+ /**
54
+ * @default 'medium'
55
+ */
56
+ "size"?: 'small' | 'medium';
57
+ /**
58
+ * @default 'default'
59
+ */
60
+ "variant"?: 'default' | 'highlight' | 'info' | 'negative' | 'neutral' | 'positive' | 'warning';
61
+ }
62
+
63
+ interface CuiTagAttributes {
64
+ "label": string;
65
+ "variant": 'default' | 'highlight' | 'info' | 'negative' | 'neutral' | 'positive' | 'warning';
66
+ "size": 'small' | 'medium';
67
+ }
68
+
69
+ interface IntrinsicElements {
70
+ "cui-tag": Omit<CuiTag, keyof CuiTagAttributes> & { [K in keyof CuiTag & keyof CuiTagAttributes]?: CuiTag[K] } & { [K in keyof CuiTag & keyof CuiTagAttributes as `attr:${K}`]?: CuiTagAttributes[K] } & { [K in keyof CuiTag & keyof CuiTagAttributes as `prop:${K}`]?: CuiTag[K] };
71
+ }
72
+ }
73
+ export { LocalJSX as JSX };
74
+ declare module "@stencil/core" {
75
+ export namespace JSX {
76
+ interface IntrinsicElements {
77
+ /**
78
+ * A Tag component for displaying status labels or counts.
79
+ * @example <cui-tag variant="positive" label="Active"></cui-tag>
80
+ */
81
+ "cui-tag": LocalJSX.IntrinsicElements["cui-tag"] & JSXBase.HTMLAttributes<HTMLCuiTagElement>;
82
+ }
83
+ }
84
+ }
@@ -0,0 +1,2 @@
1
+ declare module '*.scss';
2
+ declare module '*.css';
@@ -0,0 +1 @@
1
+ export * from './components';