@polarityio/pi-components 1.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.
- package/LICENSE +21 -0
- package/README.md +88 -0
- package/dist/component-registry.json +107 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +71 -0
- package/package.json +58 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ThreatConnect, Inc
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Polarity Integration Component Library
|
|
2
|
+
|
|
3
|
+
## All Components
|
|
4
|
+
|
|
5
|
+
Meta-package that re-exports every component in the Polarity Integration Component Library. Install this single package to get access to all components, utilities, and types.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @polarityio/pi-components
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Peer Dependencies
|
|
14
|
+
|
|
15
|
+
- [lit](https://lit.dev/) ^3.0.0
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```javascript
|
|
20
|
+
import {
|
|
21
|
+
defineCustomElementOnce,
|
|
22
|
+
PiButton, PiButtonName,
|
|
23
|
+
PiIcon, PiIconName,
|
|
24
|
+
PiSelect, PiSelectName
|
|
25
|
+
} from '@polarityio/pi-components';
|
|
26
|
+
|
|
27
|
+
// Register only the components you need
|
|
28
|
+
defineCustomElementOnce(PiButtonName, PiButton);
|
|
29
|
+
defineCustomElementOnce(PiIconName, PiIcon);
|
|
30
|
+
defineCustomElementOnce(PiSelectName, PiSelect);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
```javascript
|
|
34
|
+
import { html } from 'lit';
|
|
35
|
+
import { faUser } from '@fortawesome/free-solid-svg-icons';
|
|
36
|
+
|
|
37
|
+
html`
|
|
38
|
+
<pi-button type="primary" label="Click me"></pi-button>
|
|
39
|
+
<pi-icon .icon=${faUser} size="lg"></pi-icon>
|
|
40
|
+
`;
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
> **Tree-shaking:** Only the components you import are included in your bundle. Unused components are automatically excluded.
|
|
44
|
+
|
|
45
|
+
## Included Components
|
|
46
|
+
|
|
47
|
+
| Package | Component(s) | Description |
|
|
48
|
+
| --- | --- | --- |
|
|
49
|
+
| [@polarityio/pi-shared](../shared/) | — | Shared utilities, base classes, interfaces, and design tokens |
|
|
50
|
+
| [@polarityio/pi-button](../button/) | `<pi-button>` | Button with multiple types, variants, and icon support |
|
|
51
|
+
| [@polarityio/pi-card](../card/) | `<pi-card>` | Card container with optional collapsible title |
|
|
52
|
+
| [@polarityio/pi-checkbox](../checkbox/) | `<pi-checkbox>` | Checkbox with checked, indeterminate, and disabled states |
|
|
53
|
+
| [@polarityio/pi-copy-button](../copy-button/) | `<pi-copy-button>` | Clipboard copy button with rich text support |
|
|
54
|
+
| [@polarityio/pi-external-link](../external-link/) | `<pi-external-link>` | Link that opens URLs in a new tab with icon and tooltip |
|
|
55
|
+
| [@polarityio/pi-icon](../icon/) | `<pi-icon>` | FontAwesome SVG icon rendering |
|
|
56
|
+
| [@polarityio/pi-input](../input/) | `<pi-input>` | Text input with validation, clearable field, and error states |
|
|
57
|
+
| [@polarityio/pi-key-value](../key-value/) | `<pi-key-value>` | Key-value pair display with date formatting |
|
|
58
|
+
| [@polarityio/pi-object-table](../object-table/) | `<pi-object-table>` | Object/array to HTML table renderer |
|
|
59
|
+
| [@polarityio/pi-radio](../radio/) | `<pi-radio>`, `<pi-radio-group>` | Radio button and radio group components |
|
|
60
|
+
| [@polarityio/pi-section-header](../section-header/) | `<pi-section-header>` | Collapsible section header with count display |
|
|
61
|
+
| [@polarityio/pi-select](../select/) | `<pi-select>` | Searchable dropdown with single/multiple selection |
|
|
62
|
+
| [@polarityio/pi-show-more](../show-more/) | `<pi-show-more>` | Expandable content with show more/less toggle |
|
|
63
|
+
| [@polarityio/pi-spinner](../spinner/) | `<pi-spinner>` | Loading spinner with configurable size and label |
|
|
64
|
+
| [@polarityio/pi-summary-tag](../summary-tag/) | `<pi-summary-tag>` | Integration-themed badge with colored acronym |
|
|
65
|
+
| [@polarityio/pi-tab](../tab/) | `<pi-tab>`, `<pi-tab-group>`, `<pi-tab-panel>` | Tab navigation components |
|
|
66
|
+
| [@polarityio/pi-tag](../tag/) | `<pi-tag>` | Inline tag/chip with optional icons |
|
|
67
|
+
| [@polarityio/pi-tooltip](../tooltip/) | `<pi-tooltip>` | Tooltip with floating-ui positioning |
|
|
68
|
+
|
|
69
|
+
## Component Registry
|
|
70
|
+
|
|
71
|
+
This package also exports a component registry JSON file for runtime discovery:
|
|
72
|
+
|
|
73
|
+
```javascript
|
|
74
|
+
import registry from '@polarityio/pi-components/component-registry.json';
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## When to Use This Package
|
|
78
|
+
|
|
79
|
+
- **Use `@polarityio/pi-components`** when you need multiple components and want a single import source. Tree-shaking ensures only what you use is bundled.
|
|
80
|
+
- **Use individual packages** (e.g., `@polarityio/pi-button`) when you want minimal dependencies or need fine-grained version control per component.
|
|
81
|
+
|
|
82
|
+
## Theming
|
|
83
|
+
|
|
84
|
+
All components use CSS custom properties from `@polarityio/pi-shared` for theming. See the [Shared Utilities README](../shared/) for details on design tokens and theme setup.
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
|
|
88
|
+
MIT
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pi-button": {
|
|
3
|
+
"element": "pi-button-v1-0-0",
|
|
4
|
+
"className": "PiButton",
|
|
5
|
+
"package": "@polarityio/pi-button"
|
|
6
|
+
},
|
|
7
|
+
"pi-card": {
|
|
8
|
+
"element": "pi-card-v1-0-0",
|
|
9
|
+
"className": "PiCard",
|
|
10
|
+
"package": "@polarityio/pi-card"
|
|
11
|
+
},
|
|
12
|
+
"pi-checkbox": {
|
|
13
|
+
"element": "pi-checkbox-v1-0-0",
|
|
14
|
+
"className": "PiCheckbox",
|
|
15
|
+
"package": "@polarityio/pi-checkbox"
|
|
16
|
+
},
|
|
17
|
+
"pi-copy-button": {
|
|
18
|
+
"element": "pi-copy-button-v1-0-0",
|
|
19
|
+
"className": "PiCopyButton",
|
|
20
|
+
"package": "@polarityio/pi-copy-button"
|
|
21
|
+
},
|
|
22
|
+
"pi-external-link": {
|
|
23
|
+
"element": "pi-external-link-v1-0-0",
|
|
24
|
+
"className": "PiExternalLink",
|
|
25
|
+
"package": "@polarityio/pi-external-link"
|
|
26
|
+
},
|
|
27
|
+
"pi-icon": {
|
|
28
|
+
"element": "pi-icon-v1-0-0",
|
|
29
|
+
"className": "PiIcon",
|
|
30
|
+
"package": "@polarityio/pi-icon"
|
|
31
|
+
},
|
|
32
|
+
"pi-input": {
|
|
33
|
+
"element": "pi-input-v1-0-0",
|
|
34
|
+
"className": "PiInput",
|
|
35
|
+
"package": "@polarityio/pi-input"
|
|
36
|
+
},
|
|
37
|
+
"pi-key-value": {
|
|
38
|
+
"element": "pi-key-value-v1-0-0",
|
|
39
|
+
"className": "PiKeyValue",
|
|
40
|
+
"package": "@polarityio/pi-key-value"
|
|
41
|
+
},
|
|
42
|
+
"pi-object-table": {
|
|
43
|
+
"element": "pi-object-table-v1-0-0",
|
|
44
|
+
"className": "PiObjectTable",
|
|
45
|
+
"package": "@polarityio/pi-object-table"
|
|
46
|
+
},
|
|
47
|
+
"pi-radio": {
|
|
48
|
+
"element": "pi-radio-v1-0-0",
|
|
49
|
+
"className": "PiRadio",
|
|
50
|
+
"package": "@polarityio/pi-radio"
|
|
51
|
+
},
|
|
52
|
+
"pi-radio-group": {
|
|
53
|
+
"element": "pi-radio-group-v1-0-0",
|
|
54
|
+
"className": "PiRadioGroup",
|
|
55
|
+
"package": "@polarityio/pi-radio"
|
|
56
|
+
},
|
|
57
|
+
"pi-section-header": {
|
|
58
|
+
"element": "pi-section-header-v1-0-0",
|
|
59
|
+
"className": "PiSectionHeader",
|
|
60
|
+
"package": "@polarityio/pi-section-header"
|
|
61
|
+
},
|
|
62
|
+
"pi-select": {
|
|
63
|
+
"element": "pi-select-v1-0-0",
|
|
64
|
+
"className": "PiSelect",
|
|
65
|
+
"package": "@polarityio/pi-select"
|
|
66
|
+
},
|
|
67
|
+
"pi-show-more": {
|
|
68
|
+
"element": "pi-show-more-v1-0-0",
|
|
69
|
+
"className": "PiShowMore",
|
|
70
|
+
"package": "@polarityio/pi-show-more"
|
|
71
|
+
},
|
|
72
|
+
"pi-spinner": {
|
|
73
|
+
"element": "pi-spinner-v1-0-0",
|
|
74
|
+
"className": "PiSpinner",
|
|
75
|
+
"package": "@polarityio/pi-spinner"
|
|
76
|
+
},
|
|
77
|
+
"pi-summary-tag": {
|
|
78
|
+
"element": "pi-summary-tag-v1-0-0",
|
|
79
|
+
"className": "PiSummaryTag",
|
|
80
|
+
"package": "@polarityio/pi-summary-tag"
|
|
81
|
+
},
|
|
82
|
+
"pi-tab": {
|
|
83
|
+
"element": "pi-tab-v1-0-0",
|
|
84
|
+
"className": "PiTab",
|
|
85
|
+
"package": "@polarityio/pi-tab"
|
|
86
|
+
},
|
|
87
|
+
"pi-tab-group": {
|
|
88
|
+
"element": "pi-tab-group-v1-0-0",
|
|
89
|
+
"className": "PiTabGroup",
|
|
90
|
+
"package": "@polarityio/pi-tab"
|
|
91
|
+
},
|
|
92
|
+
"pi-tab-panel": {
|
|
93
|
+
"element": "pi-tab-panel-v1-0-0",
|
|
94
|
+
"className": "PiTabPanel",
|
|
95
|
+
"package": "@polarityio/pi-tab"
|
|
96
|
+
},
|
|
97
|
+
"pi-tag": {
|
|
98
|
+
"element": "pi-tag-v1-0-0",
|
|
99
|
+
"className": "PiTag",
|
|
100
|
+
"package": "@polarityio/pi-tag"
|
|
101
|
+
},
|
|
102
|
+
"pi-tooltip": {
|
|
103
|
+
"element": "pi-tooltip-v1-0-0",
|
|
104
|
+
"className": "PiTooltip",
|
|
105
|
+
"package": "@polarityio/pi-tooltip"
|
|
106
|
+
}
|
|
107
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export { libraryCustomElementName } from '@polarityio/pi-shared';
|
|
2
|
+
export { appendCustomElement } from '@polarityio/pi-shared';
|
|
3
|
+
export { defineCustomElementOnce } from '@polarityio/pi-shared';
|
|
4
|
+
export { getComponentElementName } from '@polarityio/pi-shared';
|
|
5
|
+
export { renderCustomElement } from '@polarityio/pi-shared';
|
|
6
|
+
export { IntegrationComponentBase } from '@polarityio/pi-shared';
|
|
7
|
+
export { typographyCSS, injectPiTypography } from '@polarityio/pi-shared';
|
|
8
|
+
export type { IBlock, IConfig, ICustomElementProperty, IIntegrationBlockIntegration, IIntegrationComponentProperties, IDefaultSummaryComponentProperties, IPiTagColors, IServicesProxy } from '@polarityio/pi-shared';
|
|
9
|
+
export { PiObjectTable, CUSTOM_ELEMENT_NAME as ObjectTableName } from '@polarityio/pi-object-table';
|
|
10
|
+
export type { PiObjectTableProps } from '@polarityio/pi-object-table';
|
|
11
|
+
export { PiIcon, CUSTOM_ELEMENT_NAME as PiIconName } from '@polarityio/pi-icon';
|
|
12
|
+
export type { PiIconProps } from '@polarityio/pi-icon';
|
|
13
|
+
export { PiSummaryTag, CUSTOM_ELEMENT_NAME as PiSummaryTagName } from '@polarityio/pi-summary-tag';
|
|
14
|
+
export type { PiSummaryTagProps } from '@polarityio/pi-summary-tag';
|
|
15
|
+
export { PiCopyButton, CUSTOM_ELEMENT_NAME as CopyButtonName } from '@polarityio/pi-copy-button';
|
|
16
|
+
export type { PiCopyButtonProps } from '@polarityio/pi-copy-button';
|
|
17
|
+
export { PiSectionHeader, CUSTOM_ELEMENT_NAME as SectionHeaderName } from '@polarityio/pi-section-header';
|
|
18
|
+
export type { PiSectionHeaderProps } from '@polarityio/pi-section-header';
|
|
19
|
+
export { PiButton, CUSTOM_ELEMENT_NAME as PiButtonName } from '@polarityio/pi-button';
|
|
20
|
+
export type { PiButtonProps } from '@polarityio/pi-button';
|
|
21
|
+
export { PiCard, CUSTOM_ELEMENT_NAME as PiCardName } from '@polarityio/pi-card';
|
|
22
|
+
export type { PiCardProps } from '@polarityio/pi-card';
|
|
23
|
+
export { PiCheckbox, CUSTOM_ELEMENT_NAME as PiCheckboxName } from '@polarityio/pi-checkbox';
|
|
24
|
+
export type { PiCheckboxProps } from '@polarityio/pi-checkbox';
|
|
25
|
+
export { PiExternalLink, CUSTOM_ELEMENT_NAME as PiExternalLinkName } from '@polarityio/pi-external-link';
|
|
26
|
+
export type { PiExternalLinkProps } from '@polarityio/pi-external-link';
|
|
27
|
+
export { PiInput, CUSTOM_ELEMENT_NAME as PiInputName } from '@polarityio/pi-input';
|
|
28
|
+
export type { PiInputProps } from '@polarityio/pi-input';
|
|
29
|
+
export { PiKeyValue, CUSTOM_ELEMENT_NAME as PiKeyValueName } from '@polarityio/pi-key-value';
|
|
30
|
+
export type { PiKeyValueProps } from '@polarityio/pi-key-value';
|
|
31
|
+
export { PiRadio, RADIO_CUSTOM_ELEMENT_NAME as PiRadioName } from '@polarityio/pi-radio';
|
|
32
|
+
export type { PiRadioProps } from '@polarityio/pi-radio';
|
|
33
|
+
export { PiRadioGroup, RADIO_GROUP_CUSTOM_ELEMENT_NAME as PiRadioGroupName } from '@polarityio/pi-radio';
|
|
34
|
+
export type { PiRadioGroupProps } from '@polarityio/pi-radio';
|
|
35
|
+
export { PiSpinner, CUSTOM_ELEMENT_NAME as PiSpinnerName } from '@polarityio/pi-spinner';
|
|
36
|
+
export type { PiSpinnerProps, PiSpinnerSize, PiSpinnerLabelPosition } from '@polarityio/pi-spinner';
|
|
37
|
+
export { PiTab, TAB_CUSTOM_ELEMENT_NAME as PiTabName } from '@polarityio/pi-tab';
|
|
38
|
+
export type { PiTabProps } from '@polarityio/pi-tab';
|
|
39
|
+
export { PiTabGroup, TAB_GROUP_CUSTOM_ELEMENT_NAME as PiTabGroupName } from '@polarityio/pi-tab';
|
|
40
|
+
export type { PiTabGroupProps, TabPlacement, TabActivation } from '@polarityio/pi-tab';
|
|
41
|
+
export { PiTabPanel, TAB_PANEL_CUSTOM_ELEMENT_NAME as PiTabPanelName } from '@polarityio/pi-tab';
|
|
42
|
+
export type { PiTabPanelProps } from '@polarityio/pi-tab';
|
|
43
|
+
export { PiTag, CUSTOM_ELEMENT_NAME as PiTagName } from '@polarityio/pi-tag';
|
|
44
|
+
export type { PiTagProps } from '@polarityio/pi-tag';
|
|
45
|
+
export { PiTooltip, CUSTOM_ELEMENT_NAME as PiTooltipName } from '@polarityio/pi-tooltip';
|
|
46
|
+
export type { PiTooltipProps } from '@polarityio/pi-tooltip';
|
|
47
|
+
export { PiSelect, CUSTOM_ELEMENT_NAME as PiSelectName } from '@polarityio/pi-select';
|
|
48
|
+
export type { PiSelectProps, PiSelectChangeDetail, PiSelectSearchDetail, PiSelectConfig, PiSelectState, PiSelectEventMap, MatcherFn, OptionRenderer, GroupObject, Option } from '@polarityio/pi-select';
|
|
49
|
+
export { PiShowMore, CUSTOM_ELEMENT_NAME as PiShowMoreName } from '@polarityio/pi-show-more';
|
|
50
|
+
export type { PiShowMoreProps } from '@polarityio/pi-show-more';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { IntegrationComponentBase, appendCustomElement, defineCustomElementOnce, getComponentElementName, injectPiTypography, libraryCustomElementName, renderCustomElement, typographyCSS } from "@polarityio/pi-shared";
|
|
2
|
+
import { CUSTOM_ELEMENT_NAME, PiObjectTable } from "@polarityio/pi-object-table";
|
|
3
|
+
import { PiIcon, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME2 } from "@polarityio/pi-icon";
|
|
4
|
+
import { PiSummaryTag, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME3 } from "@polarityio/pi-summary-tag";
|
|
5
|
+
import { CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME4, PiCopyButton } from "@polarityio/pi-copy-button";
|
|
6
|
+
import { PiSectionHeader, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME5 } from "@polarityio/pi-section-header";
|
|
7
|
+
import { PiButton, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME6 } from "@polarityio/pi-button";
|
|
8
|
+
import { PiCard, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME7 } from "@polarityio/pi-card";
|
|
9
|
+
import { PiCheckbox, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME8 } from "@polarityio/pi-checkbox";
|
|
10
|
+
import { PiExternalLink, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME9 } from "@polarityio/pi-external-link";
|
|
11
|
+
import { PiInput, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME10 } from "@polarityio/pi-input";
|
|
12
|
+
import { PiKeyValue, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME11 } from "@polarityio/pi-key-value";
|
|
13
|
+
import { PiRadio, PiRadioGroup, RADIO_GROUP_CUSTOM_ELEMENT_NAME, RADIO_CUSTOM_ELEMENT_NAME } from "@polarityio/pi-radio";
|
|
14
|
+
import { PiSpinner, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME12 } from "@polarityio/pi-spinner";
|
|
15
|
+
import { PiTab, PiTabGroup, TAB_GROUP_CUSTOM_ELEMENT_NAME, TAB_CUSTOM_ELEMENT_NAME, PiTabPanel, TAB_PANEL_CUSTOM_ELEMENT_NAME } from "@polarityio/pi-tab";
|
|
16
|
+
import { PiTag, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME13 } from "@polarityio/pi-tag";
|
|
17
|
+
import { PiTooltip, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME14 } from "@polarityio/pi-tooltip";
|
|
18
|
+
import { PiSelect, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME15 } from "@polarityio/pi-select";
|
|
19
|
+
import { PiShowMore, CUSTOM_ELEMENT_NAME as CUSTOM_ELEMENT_NAME16 } from "@polarityio/pi-show-more";
|
|
20
|
+
export {
|
|
21
|
+
CUSTOM_ELEMENT_NAME4 as CopyButtonName,
|
|
22
|
+
IntegrationComponentBase,
|
|
23
|
+
CUSTOM_ELEMENT_NAME as ObjectTableName,
|
|
24
|
+
PiButton,
|
|
25
|
+
CUSTOM_ELEMENT_NAME6 as PiButtonName,
|
|
26
|
+
PiCard,
|
|
27
|
+
CUSTOM_ELEMENT_NAME7 as PiCardName,
|
|
28
|
+
PiCheckbox,
|
|
29
|
+
CUSTOM_ELEMENT_NAME8 as PiCheckboxName,
|
|
30
|
+
PiCopyButton,
|
|
31
|
+
PiExternalLink,
|
|
32
|
+
CUSTOM_ELEMENT_NAME9 as PiExternalLinkName,
|
|
33
|
+
PiIcon,
|
|
34
|
+
CUSTOM_ELEMENT_NAME2 as PiIconName,
|
|
35
|
+
PiInput,
|
|
36
|
+
CUSTOM_ELEMENT_NAME10 as PiInputName,
|
|
37
|
+
PiKeyValue,
|
|
38
|
+
CUSTOM_ELEMENT_NAME11 as PiKeyValueName,
|
|
39
|
+
PiObjectTable,
|
|
40
|
+
PiRadio,
|
|
41
|
+
PiRadioGroup,
|
|
42
|
+
RADIO_GROUP_CUSTOM_ELEMENT_NAME as PiRadioGroupName,
|
|
43
|
+
RADIO_CUSTOM_ELEMENT_NAME as PiRadioName,
|
|
44
|
+
PiSectionHeader,
|
|
45
|
+
PiSelect,
|
|
46
|
+
CUSTOM_ELEMENT_NAME15 as PiSelectName,
|
|
47
|
+
PiShowMore,
|
|
48
|
+
CUSTOM_ELEMENT_NAME16 as PiShowMoreName,
|
|
49
|
+
PiSpinner,
|
|
50
|
+
CUSTOM_ELEMENT_NAME12 as PiSpinnerName,
|
|
51
|
+
PiSummaryTag,
|
|
52
|
+
CUSTOM_ELEMENT_NAME3 as PiSummaryTagName,
|
|
53
|
+
PiTab,
|
|
54
|
+
PiTabGroup,
|
|
55
|
+
TAB_GROUP_CUSTOM_ELEMENT_NAME as PiTabGroupName,
|
|
56
|
+
TAB_CUSTOM_ELEMENT_NAME as PiTabName,
|
|
57
|
+
PiTabPanel,
|
|
58
|
+
TAB_PANEL_CUSTOM_ELEMENT_NAME as PiTabPanelName,
|
|
59
|
+
PiTag,
|
|
60
|
+
CUSTOM_ELEMENT_NAME13 as PiTagName,
|
|
61
|
+
PiTooltip,
|
|
62
|
+
CUSTOM_ELEMENT_NAME14 as PiTooltipName,
|
|
63
|
+
CUSTOM_ELEMENT_NAME5 as SectionHeaderName,
|
|
64
|
+
appendCustomElement,
|
|
65
|
+
defineCustomElementOnce,
|
|
66
|
+
getComponentElementName,
|
|
67
|
+
injectPiTypography,
|
|
68
|
+
libraryCustomElementName,
|
|
69
|
+
renderCustomElement,
|
|
70
|
+
typographyCSS
|
|
71
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@polarityio/pi-components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Meta-package that re-exports all Polarity integration components",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/polarityio/integration-component-library.git",
|
|
12
|
+
"directory": "packages/components"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"module": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"source": "./src/index.ts",
|
|
23
|
+
"import": "./dist/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./component-registry.json": "./dist/component-registry.json"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@polarityio/pi-shared": "1.0.0",
|
|
32
|
+
"@polarityio/pi-object-table": "1.0.0",
|
|
33
|
+
"@polarityio/pi-icon": "1.0.0",
|
|
34
|
+
"@polarityio/pi-summary-tag": "1.0.0",
|
|
35
|
+
"@polarityio/pi-copy-button": "1.0.0",
|
|
36
|
+
"@polarityio/pi-section-header": "1.0.0",
|
|
37
|
+
"@polarityio/pi-select": "1.0.0",
|
|
38
|
+
"@polarityio/pi-show-more": "1.0.0",
|
|
39
|
+
"@polarityio/pi-button": "1.0.0",
|
|
40
|
+
"@polarityio/pi-card": "1.0.0",
|
|
41
|
+
"@polarityio/pi-checkbox": "1.0.0",
|
|
42
|
+
"@polarityio/pi-external-link": "1.0.0",
|
|
43
|
+
"@polarityio/pi-input": "1.0.0",
|
|
44
|
+
"@polarityio/pi-key-value": "1.0.0",
|
|
45
|
+
"@polarityio/pi-radio": "1.0.0",
|
|
46
|
+
"@polarityio/pi-spinner": "1.0.0",
|
|
47
|
+
"@polarityio/pi-tab": "1.0.0",
|
|
48
|
+
"@polarityio/pi-tag": "1.0.0",
|
|
49
|
+
"@polarityio/pi-tooltip": "1.0.0"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"lit": "^3.0.0"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "vite build",
|
|
56
|
+
"typecheck": "tsc --noEmit"
|
|
57
|
+
}
|
|
58
|
+
}
|