@ncino/web-components 1.0.0-alpha.44 → 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/dist/assets/index-chunk10.js +1 -5
- package/dist/assets/index-chunk11.js +5 -1
- package/dist/assets/index-chunk7.js +13 -1
- package/dist/assets/index-chunk8.js +2 -2
- package/dist/assets/index-chunk9.js +1 -13
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/alert/gator/base/alert.gator.js +3 -3
- package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +1 -1
- package/dist/components/alert/gator/title/alert-title.gator.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/gator/avatar.gator.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/banner/banner.js +1 -0
- package/dist/components/banner/gator/banner.gator.js +19 -0
- package/dist/components/banner/index.js +1 -0
- package/dist/components/boolean/boolean.gator.js +1 -1
- package/dist/components/boolean/index.js +1 -1
- package/dist/components/button-card/button-card.js +1 -0
- package/dist/components/button-card/gator/button-card.gator.js +23 -0
- package/dist/components/button-card/index.js +1 -0
- package/dist/components/card/gator/base/card.gator.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/checkbox/checkbox.gator.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.gator.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/chip/gator/chip.gator.js +4 -4
- package/dist/components/combobox/base/combobox.js +1 -1
- package/dist/components/combobox/base/combobox.slds.js +1 -1
- package/dist/components/combobox/base/index.js +1 -1
- package/dist/components/combobox/combobox-item/combobox-item.slds.js +1 -1
- package/dist/components/combobox/combobox-item/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/display-card/gator/display-card.gator.js +2 -2
- package/dist/components/display-card/index.js +1 -1
- package/dist/components/headline-card/gator/headline-card.gator.js +1 -1
- package/dist/components/headline-card/index.js +1 -1
- package/dist/components/icon/gator/index.js +1 -1
- package/dist/components/icon/gator/templates/chevron-right.js +14 -0
- package/dist/components/icon/gator/templates/index.js +1 -1
- package/dist/components/input-rich-text/index.js +1 -1
- package/dist/components/input-rich-text/input-rich-text.slds.js +1 -1
- package/dist/components/menu/base/gator/menu.gator.js +2 -2
- package/dist/components/menu/base/index.js +1 -1
- package/dist/components/menu/base/menu.js +1 -1
- package/dist/components/menu/base/slds/menu.slds.js +3 -3
- package/dist/components/menu/index.js +1 -1
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group.gator.js +1 -1
- package/dist/components/selection-box/index.js +1 -1
- package/dist/components/selection-box/selection-box.gator.js +2 -2
- package/dist/components/selection-box-group/index.js +1 -1
- package/dist/components/selection-box-group/selection-box-group.gator.js +2 -2
- package/dist/components/skeleton-loader/gator/skeleton-loader.gator.js +1 -1
- package/dist/components/skeleton-loader/index.js +1 -1
- package/dist/components/text-detail/gator/text-detail.gator.js +27 -0
- package/dist/components/text-detail/index.js +1 -0
- package/dist/components/text-detail/text-detail.js +1 -0
- package/dist/components/toast/gator/toast.gator.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/index.gator.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.slds.js +1 -1
- package/dist/types/components/alert/gator/base/alert.gator.d.ts +1 -1
- package/dist/types/components/banner/gator/banner.gator.d.ts +19 -0
- package/dist/types/components/banner/gator/banner.gator.test.d.ts +0 -0
- package/dist/types/components/banner/index.d.ts +1 -0
- package/dist/types/components/button-card/button-card.d.ts +8 -0
- package/dist/types/components/button-card/gator/button-card.gator.d.ts +8 -0
- package/dist/types/components/button-card/gator/button-card.gator.test.d.ts +0 -0
- package/dist/types/components/button-card/index.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/chevron-right.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/index.d.ts +7 -6
- package/dist/types/components/menu/base/gator/menu.gator.d.ts +1 -0
- package/dist/types/components/menu/base/menu.d.ts +5 -0
- package/dist/types/components/menu/base/slds/menu.slds.d.ts +2 -0
- package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +10 -0
- package/dist/types/components/text-detail/gator/text-detail.gator.test.d.ts +0 -0
- package/dist/types/components/text-detail/index.d.ts +1 -0
- package/dist/types/components/text-detail/text-detail.d.ts +29 -0
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.gator.d.ts +5 -2
- package/dist/types/utils/datatestid-utils.d.ts +12 -0
- package/dist/utils/datatestid-utils.js +1 -0
- package/dist/utils/mixins/attribute-deletion.js +1 -0
- package/package.json +19 -17
- package/web-types.json +1793 -0
- package/LICENSE.md +0 -1
- package/dist/types/components/alert/alert.d.ts +0 -9
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NjcButtonCard } from '../button-card.ts';
|
|
2
|
+
export declare class NgcButtonCard extends NjcButtonCard {
|
|
3
|
+
static styles: import('lit').CSSResult[];
|
|
4
|
+
render(): import('lit').TemplateResult<1>;
|
|
5
|
+
get cardLabelMarkup(): import('lit').TemplateResult<1> | null;
|
|
6
|
+
handleClick(event: Event): void;
|
|
7
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
8
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as NgcButtonCard from './gator/button-card.gator.ts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChevronRight: import('lit').TemplateResult;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export * from './arrow-right';
|
|
2
|
-
export * from './picture';
|
|
3
2
|
export * from './balloons';
|
|
4
|
-
export * from './exit-circle';
|
|
5
|
-
export * from './info';
|
|
6
|
-
export * from './warning';
|
|
7
3
|
export * from './check-circle';
|
|
8
|
-
export * from './restricted';
|
|
9
4
|
export * from './checkbox';
|
|
10
5
|
export * from './checkbox-selected';
|
|
6
|
+
export * from './chevron-right';
|
|
7
|
+
export * from './exit';
|
|
8
|
+
export * from './exit-circle';
|
|
9
|
+
export * from './info';
|
|
10
|
+
export * from './picture';
|
|
11
11
|
export * from './radio';
|
|
12
12
|
export * from './radio-selected';
|
|
13
|
-
export * from './
|
|
13
|
+
export * from './restricted';
|
|
14
|
+
export * from './warning';
|
|
@@ -4,6 +4,7 @@ export declare class NgcMenu extends NjcMenu {
|
|
|
4
4
|
private _setListeners;
|
|
5
5
|
private _button;
|
|
6
6
|
render(): import('lit').TemplateResult<1>;
|
|
7
|
+
updated(): void;
|
|
7
8
|
handleTriggerSlotChange(e: Event): void;
|
|
8
9
|
handleArrowDown(e: KeyboardEvent): void;
|
|
9
10
|
focusFirstMenuItem(): void;
|
|
@@ -4,10 +4,12 @@ export declare class NjcSldsMenu extends NjcMenu {
|
|
|
4
4
|
private _setListeners;
|
|
5
5
|
private _button;
|
|
6
6
|
render(): import('lit').TemplateResult<1>;
|
|
7
|
+
updated(): void;
|
|
7
8
|
handleTriggerSlotChange(e: Event): void;
|
|
8
9
|
private _topLevelFocusOut;
|
|
9
10
|
focusFirstMenuItem(): void;
|
|
10
11
|
handleItemSlotChange(e: Event): void;
|
|
12
|
+
assignDataTestids(submenu: Element, index: number): void;
|
|
11
13
|
handleClose(): void;
|
|
12
14
|
handleArrowDown(e: KeyboardEvent): void;
|
|
13
15
|
handleArrowUp(e: KeyboardEvent): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NjcTextDetail } from '../text-detail.ts';
|
|
2
|
+
export declare class NgcTextDetail extends NjcTextDetail {
|
|
3
|
+
static styles: import('lit').CSSResult[];
|
|
4
|
+
render(): import('lit').TemplateResult<1>;
|
|
5
|
+
get textDetailMarkup(): import('lit').TemplateResult<1>;
|
|
6
|
+
get textDetailLoadingMarkup(): import('lit').TemplateResult<1>;
|
|
7
|
+
get textDetailTitleMarkup(): import('lit').TemplateResult<1> | null;
|
|
8
|
+
get textDetailTitleIconMarkup(): import('lit').TemplateResult<1> | null;
|
|
9
|
+
get textDetailSubtitleMarkup(): import('lit').TemplateResult<1> | null;
|
|
10
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as NgcTextDetail from './gator/text-detail.gator.ts';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export type NJC_TEXT_DETAIL_SIZES = null | 'sm' | 'md' | 'lg';
|
|
3
|
+
export declare class NjcTextDetail extends LitElement {
|
|
4
|
+
/**
|
|
5
|
+
* @description The text detail title
|
|
6
|
+
* @property {string} title
|
|
7
|
+
*/
|
|
8
|
+
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* @description The text detail subtitle
|
|
11
|
+
* @property {string} subtitle
|
|
12
|
+
*/
|
|
13
|
+
subtitle: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description The size of the text detail
|
|
16
|
+
* @property {NJC_TEXT_DETAIL_SIZES} size
|
|
17
|
+
*/
|
|
18
|
+
size: NJC_TEXT_DETAIL_SIZES;
|
|
19
|
+
/**
|
|
20
|
+
* @description The name of the icon to be displayed in the title
|
|
21
|
+
* @property {string} titleIcon
|
|
22
|
+
*/
|
|
23
|
+
titleIcon: string;
|
|
24
|
+
/**
|
|
25
|
+
* @description Sets the loading state
|
|
26
|
+
* @property {boolean} loading
|
|
27
|
+
*/
|
|
28
|
+
loading: boolean;
|
|
29
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './components/alert';
|
|
2
2
|
export * from './components/badge';
|
|
3
|
+
export * from './components/banner';
|
|
3
4
|
export * from './components/boolean';
|
|
4
5
|
export * from './components/button';
|
|
6
|
+
export * from './components/button-card';
|
|
5
7
|
export * from './components/card';
|
|
6
8
|
export * from './components/checkbox';
|
|
7
9
|
export * from './components/checkbox-group';
|
|
@@ -13,14 +15,15 @@ export * from './components/headline-card';
|
|
|
13
15
|
export * from './components/icon';
|
|
14
16
|
export * from './components/input-rich-text';
|
|
15
17
|
export * from './components/menu';
|
|
16
|
-
export * from './components/radio';
|
|
17
18
|
export * from './components/pill';
|
|
18
19
|
export * from './components/radio';
|
|
20
|
+
export * from './components/radio';
|
|
19
21
|
export * from './components/radio-group';
|
|
20
22
|
export * from './components/scoped-notification';
|
|
21
23
|
export * from './components/selection-box';
|
|
22
24
|
export * from './components/selection-box-group';
|
|
23
25
|
export * from './components/skeleton-loader';
|
|
24
26
|
export * from './components/switch';
|
|
27
|
+
export * from './components/text-detail';
|
|
25
28
|
export * from './components/toast';
|
|
26
29
|
export * from './components/tooltip';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { NgcAlert, NgcAlertTitle, NgcAlertSubtitle } from './components/alert';
|
|
2
2
|
import { NgcAvatar } from './components/avatar';
|
|
3
|
+
import { NgcBanner } from './components/banner';
|
|
3
4
|
import { NgcBadge } from './components/badge';
|
|
4
5
|
import { NgcBoolean } from './components/boolean';
|
|
5
6
|
import { NgcButton } from './components/button';
|
|
7
|
+
import { NgcButtonCard } from './components/button-card';
|
|
6
8
|
import { NgcCard, NgcCardTitle, NgcCardSubtitle, NgcCardContent, NgcCardFooter } from './components/card';
|
|
7
9
|
import { NgcCheckbox } from './components/checkbox';
|
|
8
10
|
import { NgcCheckboxGroup } from './components/checkbox-group';
|
|
@@ -10,8 +12,8 @@ import { NgcChip } from './components/chip';
|
|
|
10
12
|
import { NgcDisplayCard } from './components/display-card';
|
|
11
13
|
import { NgcFab } from './components/fab';
|
|
12
14
|
import { NgcHeadlineCard } from './components/headline-card';
|
|
13
|
-
import { NgcIcon } from './components/icon';
|
|
14
15
|
import { NgcHelpText, NgcInputLabel } from './components/input';
|
|
16
|
+
import { NgcIcon } from './components/icon';
|
|
15
17
|
import { NgcMenu, NgcMenuItem } from './components/menu';
|
|
16
18
|
import { NgcRadio } from './components/radio';
|
|
17
19
|
import { NgcRadioGroup } from './components/radio-group';
|
|
@@ -19,6 +21,7 @@ import { NgcSelectionBox } from './components/selection-box';
|
|
|
19
21
|
import { NgcSelectionBoxGroup } from './components/selection-box-group';
|
|
20
22
|
import { NgcSkeletonLoader } from './components/skeleton-loader';
|
|
21
23
|
import { NgcSwitch } from './components/switch';
|
|
24
|
+
import { NgcTextDetail } from './components/text-detail';
|
|
22
25
|
import { NgcToast } from './components/toast';
|
|
23
26
|
import { NgcTooltip } from './components/tooltip';
|
|
24
|
-
export { NgcAlert, NgcAlertSubtitle, NgcAlertTitle, NgcAvatar, NgcBadge, NgcBoolean, NgcButton, NgcCard, NgcCardContent, NgcCardFooter, NgcCardSubtitle, NgcCardTitle, NgcCheckbox, NgcCheckboxGroup, NgcChip, NgcDisplayCard, NgcFab, NgcHeadlineCard, NgcHelpText,
|
|
27
|
+
export { NgcAlert, NgcAlertSubtitle, NgcAlertTitle, NgcAvatar, NgcBanner, NgcBadge, NgcBoolean, NgcButton, NgcButtonCard, NgcCard, NgcCardContent, NgcCardFooter, NgcCardSubtitle, NgcCardTitle, NgcCheckbox, NgcCheckboxGroup, NgcChip, NgcDisplayCard, NgcFab, NgcHeadlineCard, NgcHelpText, NgcIcon, NgcInputLabel, NgcMenu, NgcMenuItem, NgcRadio, NgcRadioGroup, NgcSelectionBox, NgcSelectionBoxGroup, NgcSkeletonLoader, NgcSwitch, NgcTextDetail, NgcToast, NgcTooltip };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handles the data-testid attribute for a given element.
|
|
3
|
+
*
|
|
4
|
+
* @param element - The element to set or remove the data-testid attribute on.
|
|
5
|
+
* @param componentDataTestid - The base data-testid for the component.
|
|
6
|
+
* @param dataTestidAppend - The string to append to the base data-testid.
|
|
7
|
+
*
|
|
8
|
+
* If componentDataTestid is not null or whitespace, sets the data-testid attribute
|
|
9
|
+
* on the element as `${componentDataTestid}-${dataTestidAppend}`.
|
|
10
|
+
* Otherwise, removes the data-testid attribute from the element.
|
|
11
|
+
*/
|
|
12
|
+
export declare function handleDataTestid(element: any, componentDataTestid: string, dataTestidAppend: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as t}from"./string-utils.js";function d(i,a,s){t(a)?i==null||i.setAttribute("data-testid",`${a}-${s}`):i==null||i.removeAttribute("data-testid")}export{d as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=t=>{class r extends t{attributeChangedCallback(e,s,i){if(!l(e)){super.attributeChangedCallback(e,s,i);return}this.removeAttribute(e);const a=u(e);i===null?delete this.dataset[a]:this.dataset[a]=i,this.requestUpdate(a,s)}}return r};function l(t){return["aria-label","aria-labelledby","id","title"].includes(t)}function u(t){return t.replace(/-\w/,r=>r[1].toUpperCase())}export{o as A};
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
|
-
"packageManager": "pnpm@9.12.
|
|
5
|
-
"version": "1.0.0
|
|
4
|
+
"packageManager": "pnpm@9.12.1",
|
|
5
|
+
"version": "1.0.0",
|
|
6
6
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "
|
|
12
|
+
"url": "git@github.com:ncino/force-sdk-web-components.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
|
-
"dist"
|
|
39
|
+
"dist",
|
|
40
|
+
"web-types.json"
|
|
40
41
|
],
|
|
41
42
|
"web-types": "./web-types.json",
|
|
42
43
|
"scripts": {
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
"dependencies:update:minor": "pnpm dlx npm-check-updates -u --target minor",
|
|
53
54
|
"lint": "eslint .",
|
|
54
55
|
"preview": "vite preview",
|
|
56
|
+
"semantic-release": "npx -p @semantic-release/changelog -p @semantic-release/exec -p @semantic-release/git -p @semantic-release/github -p @semantic-release/npm -p @semantic-release/release-notes-generator semantic-release",
|
|
55
57
|
"storybook:gator": "pnpm run analyze && storybook dev -c .storybook-gator -p 6006",
|
|
56
58
|
"storybook:slds": "pnpm run analyze && storybook dev -c .storybook-slds -p 6006",
|
|
57
59
|
"storybook:gator:cucumber": "kill $(lsof -ti:6006); pnpm run analyze && storybook dev -c .storybook-gator -p 6006 --no-open",
|
|
@@ -68,16 +70,16 @@
|
|
|
68
70
|
"@custom-elements-manifest/analyzer": "0.10.3",
|
|
69
71
|
"@lit/react": "^1.0.5",
|
|
70
72
|
"@salesforce-ux/design-system": "^2.25.2",
|
|
71
|
-
"@storybook/addon-a11y": "^8.3.
|
|
72
|
-
"@storybook/addon-actions": "^8.3.
|
|
73
|
+
"@storybook/addon-a11y": "^8.3.5",
|
|
74
|
+
"@storybook/addon-actions": "^8.3.5",
|
|
73
75
|
"@storybook/addon-designs": "^8.0.3",
|
|
74
|
-
"@storybook/addon-docs": "^8.3.
|
|
75
|
-
"@storybook/addon-essentials": "^8.3.
|
|
76
|
-
"@storybook/addon-links": "^8.3.
|
|
77
|
-
"@storybook/blocks": "^8.3.
|
|
78
|
-
"@storybook/test": "^8.3.
|
|
79
|
-
"@storybook/web-components": "^8.3.
|
|
80
|
-
"@storybook/web-components-vite": "^8.3.
|
|
76
|
+
"@storybook/addon-docs": "^8.3.5",
|
|
77
|
+
"@storybook/addon-essentials": "^8.3.5",
|
|
78
|
+
"@storybook/addon-links": "^8.3.5",
|
|
79
|
+
"@storybook/blocks": "^8.3.5",
|
|
80
|
+
"@storybook/test": "^8.3.5",
|
|
81
|
+
"@storybook/web-components": "^8.3.5",
|
|
82
|
+
"@storybook/web-components-vite": "^8.3.5",
|
|
81
83
|
"@types/react": "^18.3.11",
|
|
82
84
|
"@typescript-eslint/parser": "^8.8.0",
|
|
83
85
|
"@vitest/browser": "^2.1.2",
|
|
@@ -85,9 +87,10 @@
|
|
|
85
87
|
"@vitest/ui": "2.1.2",
|
|
86
88
|
"cem-plugin-expanded-types": "^1.3.3",
|
|
87
89
|
"chromatic": "^11.11.0",
|
|
90
|
+
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
88
91
|
"custom-element-jet-brains-integration": "^1.6.2",
|
|
89
92
|
"custom-elements-manifest": "^2.1.0",
|
|
90
|
-
"eslint": "^9.
|
|
93
|
+
"eslint": "^9.12.0",
|
|
91
94
|
"eslint-config-standard": "^17.1.0",
|
|
92
95
|
"eslint-plugin-import": "^2.31.0",
|
|
93
96
|
"eslint-plugin-json": "^4.0.1",
|
|
@@ -101,7 +104,7 @@
|
|
|
101
104
|
"react": "^18.3.1",
|
|
102
105
|
"rimraf": "^6.0.1",
|
|
103
106
|
"sass": "1.79.4",
|
|
104
|
-
"storybook": "^8.3.
|
|
107
|
+
"storybook": "^8.3.5",
|
|
105
108
|
"storybook-addon-badges": "^1.0.3",
|
|
106
109
|
"storybook-dark-mode": "^4.0.2",
|
|
107
110
|
"storybook-design-token": "^3.1.0",
|
|
@@ -117,6 +120,5 @@
|
|
|
117
120
|
"bugs": {
|
|
118
121
|
"url": "https://github.com/ncino/force-sdk-web-components/issues"
|
|
119
122
|
},
|
|
120
|
-
"homepage": "https://github.com/ncino/force-sdk-web-components#readme"
|
|
121
|
-
"gitHead": "85e8e5317b4b74e7cac26b287c3282b9a00287fa"
|
|
123
|
+
"homepage": "https://github.com/ncino/force-sdk-web-components#readme"
|
|
122
124
|
}
|