@ni/ok-components 0.4.3 → 0.4.4

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.
@@ -10,48 +10,7 @@
10
10
  },
11
11
  {
12
12
  "kind": "javascript-module",
13
- "path": "src/button/index.ts",
14
- "declarations": [
15
- {
16
- "kind": "class",
17
- "description": "A Ok demo component (not for production use)",
18
- "name": "Button",
19
- "superclass": {
20
- "name": "FoundationElement",
21
- "package": "@ni/fast-foundation"
22
- }
23
- },
24
- {
25
- "kind": "variable",
26
- "name": "buttonTag",
27
- "type": {
28
- "text": "string"
29
- },
30
- "default": "'ok-button'"
31
- }
32
- ],
33
- "exports": [
34
- {
35
- "kind": "js",
36
- "name": "Button",
37
- "declaration": {
38
- "name": "Button",
39
- "module": "src/button/index.ts"
40
- }
41
- },
42
- {
43
- "kind": "js",
44
- "name": "buttonTag",
45
- "declaration": {
46
- "name": "buttonTag",
47
- "module": "src/button/index.ts"
48
- }
49
- }
50
- ]
51
- },
52
- {
53
- "kind": "javascript-module",
54
- "path": "src/fv/all-fv.ts",
13
+ "path": "src/ex/all-ex.ts",
55
14
  "declarations": [],
56
15
  "exports": []
57
16
  },
@@ -123,6 +82,53 @@
123
82
  }
124
83
  ]
125
84
  },
85
+ {
86
+ "kind": "javascript-module",
87
+ "path": "src/fv/all-fv.ts",
88
+ "declarations": [],
89
+ "exports": []
90
+ },
91
+ {
92
+ "kind": "javascript-module",
93
+ "path": "src/ex/button/index.ts",
94
+ "declarations": [
95
+ {
96
+ "kind": "class",
97
+ "description": "A Ok demo component (not for production use)",
98
+ "name": "ExButton",
99
+ "superclass": {
100
+ "name": "FoundationElement",
101
+ "package": "@ni/fast-foundation"
102
+ }
103
+ },
104
+ {
105
+ "kind": "variable",
106
+ "name": "exButtonTag",
107
+ "type": {
108
+ "text": "string"
109
+ },
110
+ "default": "'ok-ex-button'"
111
+ }
112
+ ],
113
+ "exports": [
114
+ {
115
+ "kind": "js",
116
+ "name": "ExButton",
117
+ "declaration": {
118
+ "name": "ExButton",
119
+ "module": "src/ex/button/index.ts"
120
+ }
121
+ },
122
+ {
123
+ "kind": "js",
124
+ "name": "exButtonTag",
125
+ "declaration": {
126
+ "name": "exButtonTag",
127
+ "module": "src/ex/button/index.ts"
128
+ }
129
+ }
130
+ ]
131
+ },
126
132
  {
127
133
  "kind": "javascript-module",
128
134
  "path": "src/fv/accordion-item/index.ts",
@@ -1,13 +1,3 @@
1
- ## class: `Button`
2
-
3
- ### Superclass
4
-
5
- | Name | Module | Package |
6
- | ------------------- | ------ | ------------------- |
7
- | `FoundationElement` | | @ni/fast-foundation |
8
-
9
- <hr/>
10
-
11
1
  ## class: `IconDynamic`
12
2
 
13
3
  ### Superclass
@@ -24,6 +14,16 @@
24
14
 
25
15
  <hr/>
26
16
 
17
+ ## class: `ExButton`
18
+
19
+ ### Superclass
20
+
21
+ | Name | Module | Package |
22
+ | ------------------- | ------ | ------------------- |
23
+ | `FoundationElement` | | @ni/fast-foundation |
24
+
25
+ <hr/>
26
+
27
27
  ## class: `FvAccordionItem`
28
28
 
29
29
  ### Superclass
@@ -5,5 +5,5 @@
5
5
  */
6
6
  import '@ni/spright-components/dist/esm/all-components';
7
7
  import './fv/all-fv';
8
- import './button';
8
+ import './ex/all-ex';
9
9
  import './icon-dynamic';
@@ -5,6 +5,6 @@
5
5
  */
6
6
  import '@ni/spright-components/dist/esm/all-components';
7
7
  import './fv/all-fv';
8
- import './button';
8
+ import './ex/all-ex';
9
9
  import './icon-dynamic';
10
10
  //# sourceMappingURL=all-components.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,gDAAgD,CAAC;AAExD,OAAO,aAAa,CAAC;AACrB,OAAO,UAAU,CAAC;AAClB,OAAO,gBAAgB,CAAC","sourcesContent":["/**\n * Import of all the web components available in Nimble, Spright, and Ok.\n * Production applications are encouraged to import only components\n * that are required instead of leveraging this file.\n */\n\nimport '@ni/spright-components/dist/esm/all-components';\n\nimport './fv/all-fv';\nimport './button';\nimport './icon-dynamic';\n"]}
1
+ {"version":3,"file":"all-components.js","sourceRoot":"","sources":["../../src/all-components.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,gDAAgD,CAAC;AAExD,OAAO,aAAa,CAAC;AACrB,OAAO,aAAa,CAAC;AACrB,OAAO,gBAAgB,CAAC","sourcesContent":["/**\n * Import of all the web components available in Nimble, Spright, and Ok.\n * Production applications are encouraged to import only components\n * that are required instead of leveraging this file.\n */\n\nimport '@ni/spright-components/dist/esm/all-components';\n\nimport './fv/all-fv';\nimport './ex/all-ex';\nimport './icon-dynamic';\n"]}
@@ -0,0 +1 @@
1
+ import './button';
@@ -0,0 +1,2 @@
1
+ import './button';
2
+ //# sourceMappingURL=all-ex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all-ex.js","sourceRoot":"","sources":["../../../src/ex/all-ex.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC","sourcesContent":["import './button';\n"]}
@@ -1,12 +1,12 @@
1
1
  import { FoundationElement } from '@ni/fast-foundation';
2
2
  declare global {
3
3
  interface HTMLElementTagNameMap {
4
- 'ok-button': Button;
4
+ 'ok-ex-button': ExButton;
5
5
  }
6
6
  }
7
7
  /**
8
8
  * A Ok demo component (not for production use)
9
9
  */
10
- export declare class Button extends FoundationElement {
10
+ export declare class ExButton extends FoundationElement {
11
11
  }
12
- export declare const buttonTag = "ok-button";
12
+ export declare const exButtonTag = "ok-ex-button";
@@ -0,0 +1,16 @@
1
+ import { DesignSystem, FoundationElement } from '@ni/fast-foundation';
2
+ import { styles } from './styles';
3
+ import { template } from './template';
4
+ /**
5
+ * A Ok demo component (not for production use)
6
+ */
7
+ export class ExButton extends FoundationElement {
8
+ }
9
+ const okExButton = ExButton.compose({
10
+ baseName: 'ex-button',
11
+ template,
12
+ styles
13
+ });
14
+ DesignSystem.getOrCreate().withPrefix('ok').register(okExButton());
15
+ export const exButtonTag = 'ok-ex-button';
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ex/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,iBAAiB;CAAG;AAElD,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC;IAChC,QAAQ,EAAE,WAAW;IACrB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC","sourcesContent":["import { DesignSystem, FoundationElement } from '@ni/fast-foundation';\nimport { styles } from './styles';\nimport { template } from './template';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'ok-ex-button': ExButton;\n }\n}\n\n/**\n * A Ok demo component (not for production use)\n */\nexport class ExButton extends FoundationElement {}\n\nconst okExButton = ExButton.compose({\n baseName: 'ex-button',\n template,\n styles\n});\n\nDesignSystem.getOrCreate().withPrefix('ok').register(okExButton());\nexport const exButtonTag = 'ok-ex-button';\n"]}
@@ -1,6 +1,6 @@
1
1
  import { css } from '@ni/fast-element';
2
2
  import { bodyDisabledFontColor, bodyFont, bodyFontColor, borderHoverColor, borderRgbPartialColor } from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';
3
- import { display } from '../utilities/style/display';
3
+ import { display } from '../../utilities/style/display';
4
4
  export const styles = css `
5
5
  ${display('inline-block')}
6
6
 
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/ex/button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EACH,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACxB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;;;4BAGD,gBAAgB;;;;;;;;6BAQf,qBAAqB;;;;gBAIlC,QAAQ;iBACP,aAAa;;;;iBAIb,qBAAqB;;CAErC,CAAC","sourcesContent":["import { css } from '@ni/fast-element';\nimport {\n bodyDisabledFontColor,\n bodyFont,\n bodyFontColor,\n borderHoverColor,\n borderRgbPartialColor\n} from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';\nimport { display } from '../../utilities/style/display';\n\nexport const styles = css`\n ${display('inline-block')}\n\n :host {\n border: 2px solid ${borderHoverColor};\n }\n\n :host(:hover) {\n border-width: 4px;\n }\n\n :host([disabled]) {\n border-color: rgba(${borderRgbPartialColor}, 0.2);\n }\n\n slot {\n font: ${bodyFont};\n color: ${bodyFontColor};\n }\n\n :host([disabled]) slot {\n color: ${bodyDisabledFontColor};\n }\n`;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/ex/button/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAA,eAAe,CAAC","sourcesContent":["import { html } from '@ni/fast-element';\n\nexport const template = html`<slot></slot>`;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/ok-components",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "NI Ok Components",
5
5
  "scripts": {
6
6
  "build": "npm run build:components && npm run build:cem",
@@ -1,16 +0,0 @@
1
- import { DesignSystem, FoundationElement } from '@ni/fast-foundation';
2
- import { styles } from './styles';
3
- import { template } from './template';
4
- /**
5
- * A Ok demo component (not for production use)
6
- */
7
- export class Button extends FoundationElement {
8
- }
9
- const okButton = Button.compose({
10
- baseName: 'button',
11
- template,
12
- styles
13
- });
14
- DesignSystem.getOrCreate().withPrefix('ok').register(okButton());
15
- export const buttonTag = 'ok-button';
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,iBAAiB;CAAG;AAEhD,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;IAC5B,QAAQ,EAAE,QAAQ;IAClB,QAAQ;IACR,MAAM;CACT,CAAC,CAAC;AAEH,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;AACjE,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC","sourcesContent":["import { DesignSystem, FoundationElement } from '@ni/fast-foundation';\nimport { styles } from './styles';\nimport { template } from './template';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'ok-button': Button;\n }\n}\n\n/**\n * A Ok demo component (not for production use)\n */\nexport class Button extends FoundationElement {}\n\nconst okButton = Button.compose({\n baseName: 'button',\n template,\n styles\n});\n\nDesignSystem.getOrCreate().withPrefix('ok').register(okButton());\nexport const buttonTag = 'ok-button';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EACH,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACxB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;;;4BAGD,gBAAgB;;;;;;;;6BAQf,qBAAqB;;;;gBAIlC,QAAQ;iBACP,aAAa;;;;iBAIb,qBAAqB;;CAErC,CAAC","sourcesContent":["import { css } from '@ni/fast-element';\nimport {\n bodyDisabledFontColor,\n bodyFont,\n bodyFontColor,\n borderHoverColor,\n borderRgbPartialColor\n} from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';\nimport { display } from '../utilities/style/display';\n\nexport const styles = css`\n ${display('inline-block')}\n\n :host {\n border: 2px solid ${borderHoverColor};\n }\n\n :host(:hover) {\n border-width: 4px;\n }\n\n :host([disabled]) {\n border-color: rgba(${borderRgbPartialColor}, 0.2);\n }\n\n slot {\n font: ${bodyFont};\n color: ${bodyFontColor};\n }\n\n :host([disabled]) slot {\n color: ${bodyDisabledFontColor};\n }\n`;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/button/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAA,eAAe,CAAC","sourcesContent":["import { html } from '@ni/fast-element';\n\nexport const template = html`<slot></slot>`;\n"]}
File without changes
File without changes
File without changes