@ni/fast-foundation 0.0.6 → 10.0.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 (2) hide show
  1. package/README.md +14 -39
  2. package/package.json +3 -4
package/README.md CHANGED
@@ -1,58 +1,33 @@
1
+ <div align="center">
2
+ <p><b>ni | fast | foundation</b></p>
3
+ </div>
4
+
1
5
  # FAST Foundation
2
6
 
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
- [![npm version](https://badge.fury.io/js/%40microsoft%2Ffast-foundation.svg)](https://badge.fury.io/js/%40microsoft%2Ffast-foundation)
7
+ [![NI FAST Foundation NPM version and repo link](https://img.shields.io/npm/v/@ni/fast-foundation.svg?label=@ni/fast-foundation)](https://www.npmjs.com/package/@ni/fast-foundation)
5
8
 
6
- The `fast-foundation` package is a library of Web Component classes, templates, and other utilities intended to be composed into registered Web Components by design systems (e.g. Fluent Design, Material Design, etc.). The exports of this package can generally be thought of as un-styled base components that implement semantic and accessible markup and behavior.
9
+ The `fast-foundation` package is a library of Web Component classes, templates, and other utilities intended to be composed into registered Web Components by design systems (e.g. [NI Nimble Design System](https://nimble.ni.dev/), etc.). The exports of this package can generally be thought of as un-styled base components that implement semantic and accessible markup and behavior.
7
10
 
8
11
  This package does not export Web Components registered as [custom elements](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) - it exports parts and pieces intended to be *composed* into Web Components, allowing you to implement your own design language by simply applying CSS styles and behaviors without having to write all the JavaScript that's involved in building production-quality component implementations.
9
12
 
10
- ## Installation
11
-
12
- ### From NPM
13
+ ## Getting Started
13
14
 
14
- To install the `fast-foundation` library, use either `npm` or `yarn` as follows:
15
+ ### Installing from NPM
15
16
 
16
- ```shell
17
- npm install --save @microsoft/fast-foundation
18
- ```
17
+ To install the `fast-foundation` library, use `npm` as follows:
19
18
 
20
19
  ```shell
21
- yarn add @microsoft/fast-foundation
20
+ npm install @ni/fast-foundation
22
21
  ```
23
22
 
24
23
  Within your JavaScript or TypeScript code, you can then import library APIs like this:
25
24
 
26
25
  ```ts
27
- import { Anchor } from '@microsoft/fast-foundation';
26
+ import { Anchor } from '@ni/fast-foundation';
28
27
  ```
29
28
 
30
- Looking for a setup that integrates with a particular front-end framework or bundler? Check out [our integration docs](https://fast.design/docs/integrations/introduction).
31
-
32
- ### From CDN
33
-
34
- A pre-bundled script that contains all APIs needed to use FAST Foundation is available on CDN. You can use this script by adding [`type="module"`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) to the script element and then importing from the CDN.
29
+ Looking for a setup that integrates with a particular front-end framework or bundler? Check out the [FAST 1.x: integration docs](https://fast.design/docs/1.x/integrations/introduction).
35
30
 
36
- ```html
37
- <!DOCTYPE html>
38
- <html lang="en">
39
- <head>
40
- <script type="module">
41
- import { Anchor } from "https://cdn.jsdelivr.net/npm/@microsoft/fast-foundation/dist/fast-foundation.min.js";
42
-
43
- // your code here
44
- </script>
45
- </head>
46
- <!-- ... -->
47
- </html>
48
- ```
49
-
50
- The markup above always references the latest release. When deploying to production, you will want to ship with a specific version. Here's an example of the markup for that:
51
-
52
- ```html
53
- <script type="module" src="https://cdn.jsdelivr.net/npm/@microsoft/fast-foundation@2.26.2/dist/fast-foundation.min.js"></script>
54
- ```
31
+ ### Documentation
55
32
 
56
- :::note
57
- For simplicity, examples throughout the documentation will assume the library has been installed from NPM, but you can always replace the import location with the CDN URL.
58
- :::
33
+ See the [FAST 1.x: Creating a Component Library](https://fast.design/docs/1.x/design-systems/creating-a-component-library) documentation and related topics.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ni/fast-foundation",
3
3
  "description": "A library of Web Component building blocks",
4
4
  "sideEffects": false,
5
- "version": "0.0.6",
5
+ "version": "10.0.0",
6
6
  "author": {
7
7
  "name": "National Instruments"
8
8
  },
@@ -83,14 +83,13 @@
83
83
  "source-map": "^0.7.3",
84
84
  "source-map-loader": "^5.0.0",
85
85
  "ts-loader": "^9.5.2",
86
- "ts-node": "^10.9.2",
87
86
  "tsconfig-paths": "^4.2.0",
88
87
  "typescript": "~5.4.5",
89
88
  "webpack": "^5.97.1"
90
89
  },
91
90
  "dependencies": {
92
- "@ni/fast-element": "^0.0.5",
93
- "@ni/fast-web-utilities": "^0.0.5",
91
+ "@ni/fast-element": "^10.0.0",
92
+ "@ni/fast-web-utilities": "^10.0.0",
94
93
  "tabbable": "^6.2.0",
95
94
  "tslib": "^2.8.1"
96
95
  },