@govtechsg/sgds-web-component 0.0.10 → 0.0.12
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/README.md +102 -10
- package/base/card-element.d.ts +12 -0
- package/{lib/utils → base}/dropdown-element.d.ts +38 -37
- package/{lib/utils → base}/link-element.d.ts +8 -7
- package/{lib/utils → base}/sgds-element.d.ts +6 -5
- package/components/Accordion/index.d.ts +2 -0
- package/components/Accordion/sgds-accordion-item.d.ts +40 -0
- package/components/Accordion/sgds-accordion.d.ts +19 -0
- package/components/ActionCard/index.d.ts +1 -0
- package/{lib/Card → components/ActionCard}/sgds-action-card.d.ts +21 -20
- package/components/Alert/index.d.ts +1 -0
- package/components/Alert/sgds-alert.d.ts +37 -0
- package/components/Badge/index.d.ts +1 -0
- package/components/Badge/sgds-badge.d.ts +10 -0
- package/components/Breadcrumb/index.d.ts +2 -0
- package/components/Breadcrumb/sgds-breadcrumb-item.d.ts +10 -0
- package/components/Breadcrumb/sgds-breadcrumb.d.ts +12 -0
- package/components/Button/index.d.ts +1 -0
- package/{lib → components}/Button/sgds-button.d.ts +55 -48
- package/components/Checkbox/index.d.ts +1 -0
- package/{lib → components}/Checkbox/sgds-checkbox.d.ts +36 -36
- package/components/CloseButton/index.d.ts +1 -0
- package/components/CloseButton/sgds-closebutton.d.ts +9 -0
- package/components/Dropdown/index.d.ts +3 -0
- package/{lib → components}/Dropdown/sgds-dropdown-item.d.ts +8 -7
- package/{lib → components}/Dropdown/sgds-dropdown.d.ts +8 -7
- package/components/FileUpload/index.d.ts +1 -0
- package/components/FileUpload/sgds-fileupload.d.ts +22 -0
- package/components/Footer/index.d.ts +1 -0
- package/{lib → components}/Footer/sgds-footer.d.ts +27 -23
- package/components/Input/index.d.ts +1 -0
- package/{lib → components}/Input/sgds-input.d.ts +42 -42
- package/components/Mainnav/index.d.ts +3 -0
- package/components/Mainnav/sgds-mainnav-dropdown.d.ts +6 -0
- package/components/Mainnav/sgds-mainnav-item.d.ts +8 -0
- package/{lib → components}/Mainnav/sgds-mainnav.d.ts +26 -22
- package/components/Masthead/index.d.ts +1 -0
- package/{lib → components}/Masthead/sgds-masthead.d.ts +9 -12
- package/components/Modal/index.d.ts +1 -0
- package/{lib → components}/Modal/sgds-modal.d.ts +28 -28
- package/components/QuantityToggle/index.d.ts +1 -0
- package/{lib/QuantityToggle/sgds-quantitytoggle.d.ts → components/QuantityToggle/sgds-quantity-toggle.d.ts} +30 -30
- package/components/Radio/index.d.ts +2 -0
- package/{lib/Radio/sgds-radiogroup.d.ts → components/Radio/sgds-radio-group.d.ts} +41 -41
- package/{lib → components}/Radio/sgds-radio.d.ts +31 -31
- package/components/Sidenav/index.d.ts +3 -0
- package/{lib → components}/Sidenav/sgds-sidenav-item.d.ts +36 -28
- package/components/Sidenav/sgds-sidenav-link.d.ts +8 -0
- package/{lib → components}/Sidenav/sgds-sidenav.d.ts +10 -6
- package/components/Stepper/index.d.ts +1 -0
- package/components/Stepper/sgds-stepper.d.ts +17 -0
- package/components/Tab/index.d.ts +3 -0
- package/{lib → components}/Tab/sgds-tab.d.ts +27 -26
- package/{lib → components}/Tab/sgds-tabgroup.d.ts +48 -47
- package/{lib → components}/Tab/sgds-tabpanel.d.ts +26 -25
- package/components/Table/index.d.ts +1 -0
- package/components/Table/sgds-table.d.ts +26 -0
- package/components/Textarea/index.d.ts +1 -0
- package/{lib → components}/Textarea/sgds-textarea.d.ts +53 -53
- package/components/Toast/index.d.ts +1 -0
- package/components/Toast/sgds-toast.d.ts +22 -0
- package/components/Tooltip/index.d.ts +1 -0
- package/components/Tooltip/sgds-tooltip.d.ts +30 -0
- package/index.d.ts +23 -0
- package/index.js +11543 -0
- package/index.js.map +1 -0
- package/main.d.ts +24 -0
- package/package.json +23 -65
- package/react/accordion/index.d.ts +3 -0
- package/react/accordion-item/index.d.ts +8 -0
- package/react/action-card/index.d.ts +3 -0
- package/react/alert/index.d.ts +3 -0
- package/react/badge/index.d.ts +3 -0
- package/react/breadcrumb/index.d.ts +3 -0
- package/react/breadcrumb-item/index.d.ts +3 -0
- package/react/button/index.d.ts +6 -0
- package/react/checkbox/index.d.ts +3 -0
- package/react/cjs/index.js +12510 -0
- package/react/cjs/index.js.map +1 -0
- package/react/closebutton/index.d.ts +5 -0
- package/react/dropdown/index.d.ts +3 -0
- package/react/dropdown-item/index.d.ts +3 -0
- package/react/fileupload/index.d.ts +3 -0
- package/react/footer/index.d.ts +3 -0
- package/react/index.d.ts +34 -0
- package/react/index.js +12453 -0
- package/react/index.js.map +1 -0
- package/react/input/index.d.ts +3 -0
- package/react/mainnav/index.d.ts +3 -0
- package/react/mainnav-dropdown/index.d.ts +3 -0
- package/react/mainnav-item/index.d.ts +3 -0
- package/react/masthead/index.d.ts +3 -0
- package/react/modal/index.d.ts +3 -0
- package/react/package.json +10 -0
- package/react/quantity-toggle/index.d.ts +3 -0
- package/react/radio/index.d.ts +3 -0
- package/react/radio-group/index.d.ts +3 -0
- package/react/sidenav/index.d.ts +3 -0
- package/react/sidenav-item/index.d.ts +5 -0
- package/react/sidenav-link/index.d.ts +3 -0
- package/react/stepper/index.d.ts +3 -0
- package/react/tab/index.d.ts +3 -0
- package/react/tab-group/index.d.ts +3 -0
- package/react/tab-panel/index.d.ts +3 -0
- package/react/table/index.d.ts +3 -0
- package/react/textarea/index.d.ts +3 -0
- package/react/toast/index.d.ts +3 -0
- package/react/tooltip/index.d.ts +3 -0
- package/umd/index.js +11995 -0
- package/umd/index.js.map +1 -0
- package/{lib/utils → utils}/animate.d.ts +10 -10
- package/{lib/utils → utils}/animation-registry.d.ts +18 -18
- package/{lib/utils → utils}/breakpoints.d.ts +5 -5
- package/{lib/utils → utils}/defaultvalue.d.ts +2 -2
- package/{lib/utils → utils}/event.d.ts +2 -2
- package/{lib/utils → utils}/form.d.ts +38 -38
- package/{lib/utils → utils}/generateId.d.ts +1 -1
- package/{lib/utils → utils}/mergeDeep.d.ts +2 -2
- package/{lib/utils → utils}/modal.d.ts +12 -12
- package/{lib/utils → utils}/object.d.ts +2 -2
- package/{lib/utils → utils}/offset.d.ts +4 -4
- package/{lib/utils → utils}/scroll.d.ts +13 -13
- package/{lib/utils → utils}/slot.d.ts +22 -22
- package/{lib/utils → utils}/tabbable.d.ts +8 -8
- package/{lib/utils → utils}/watch.d.ts +14 -14
- package/.github/workflows/publish-latest.yml +0 -22
- package/.github/workflows/publish-pr.yml +0 -28
- package/.husky/commit-msg +0 -4
- package/.husky/prepare-commit-msg +0 -8
- package/.storybook/main.js +0 -16
- package/.storybook/preview-head.html +0 -11
- package/.storybook/preview.js +0 -9
- package/.vscode/settings.json +0 -7
- package/CONTRIBUTING.md +0 -56
- package/LICENSE +0 -20
- package/amplify.yml +0 -22
- package/commitlint.config.js +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/button-element.scss.html +0 -112
- package/coverage/lcov-report/button-element.ts.html +0 -145
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -116
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -32
- package/index.html +0 -430
- package/lib/Button/index.d.ts +0 -1
- package/lib/Button/index.js +0 -6634
- package/lib/Button/index.js.map +0 -1
- package/lib/Button/package.json +0 -7
- package/lib/Card/index.d.ts +0 -1
- package/lib/Card/index.js +0 -6150
- package/lib/Card/index.js.map +0 -1
- package/lib/Card/package.json +0 -7
- package/lib/Checkbox/index.d.ts +0 -1
- package/lib/Checkbox/index.js +0 -6366
- package/lib/Checkbox/index.js.map +0 -1
- package/lib/Checkbox/package.json +0 -7
- package/lib/Dropdown/index.d.ts +0 -3
- package/lib/Dropdown/index.js +0 -13502
- package/lib/Dropdown/index.js.map +0 -1
- package/lib/Dropdown/package.json +0 -7
- package/lib/Footer/index.d.ts +0 -2
- package/lib/Footer/index.js +0 -7168
- package/lib/Footer/index.js.map +0 -1
- package/lib/Footer/package.json +0 -7
- package/lib/Input/index.d.ts +0 -1
- package/lib/Input/index.js +0 -6656
- package/lib/Input/index.js.map +0 -1
- package/lib/Input/package.json +0 -7
- package/lib/Mainnav/index.d.ts +0 -4
- package/lib/Mainnav/index.js +0 -32546
- package/lib/Mainnav/index.js.map +0 -1
- package/lib/Mainnav/package.json +0 -7
- package/lib/Mainnav/sgds-mainnav-dropdown.d.ts +0 -5
- package/lib/Mainnav/sgds-mainnav-item.d.ts +0 -4
- package/lib/Masthead/index.d.ts +0 -1
- package/lib/Masthead/index.js +0 -7371
- package/lib/Masthead/index.js.map +0 -1
- package/lib/Masthead/package.json +0 -7
- package/lib/Modal/index.d.ts +0 -1
- package/lib/Modal/index.js +0 -6432
- package/lib/Modal/index.js.map +0 -1
- package/lib/Modal/package.json +0 -7
- package/lib/QuantityToggle/index.d.ts +0 -1
- package/lib/QuantityToggle/index.js +0 -7049
- package/lib/QuantityToggle/index.js.map +0 -1
- package/lib/QuantityToggle/package.json +0 -7
- package/lib/Radio/index.d.ts +0 -2
- package/lib/Radio/index.js +0 -12607
- package/lib/Radio/index.js.map +0 -1
- package/lib/Radio/package.json +0 -7
- package/lib/Sidenav/index.d.ts +0 -3
- package/lib/Sidenav/index.js +0 -18739
- package/lib/Sidenav/index.js.map +0 -1
- package/lib/Sidenav/package.json +0 -7
- package/lib/Sidenav/sgds-sidenav-link.d.ts +0 -4
- package/lib/Tab/index.d.ts +0 -3
- package/lib/Tab/index.js +0 -13557
- package/lib/Tab/index.js.map +0 -1
- package/lib/Tab/package.json +0 -7
- package/lib/Textarea/index.d.ts +0 -1
- package/lib/Textarea/index.js +0 -6696
- package/lib/Textarea/index.js.map +0 -1
- package/lib/Textarea/package.json +0 -7
- package/lib/index.d.ts +0 -16
- package/lib/index.js +0 -134580
- package/lib/index.js.map +0 -1
- package/lib/umd/index.js +0 -134587
- package/lib/umd/index.js.map +0 -1
- package/lib/utils/card-element.d.ts +0 -11
- package/mocks/dropdown.d.ts +0 -4
- package/mocks/dropdown.ts +0 -27
- package/mocks/link.d.ts +0 -3
- package/mocks/link.ts +0 -6
- package/rollup.config.js +0 -73
- package/rollup.test.config.js +0 -42
- package/scripts/buildUtils.js +0 -30
- package/scripts/frankBuild.js +0 -49
- package/src/Button/index.ts +0 -1
- package/src/Button/sgds-button.scss +0 -28
- package/src/Button/sgds-button.ts +0 -153
- package/src/Card/index.ts +0 -1
- package/src/Card/sgds-action-card.scss +0 -27
- package/src/Card/sgds-action-card.ts +0 -115
- package/src/Checkbox/index.ts +0 -1
- package/src/Checkbox/sgds-checkbox.scss +0 -4
- package/src/Checkbox/sgds-checkbox.ts +0 -149
- package/src/Dropdown/index.ts +0 -3
- package/src/Dropdown/sgds-dropdown-item.ts +0 -39
- package/src/Dropdown/sgds-dropdown.scss +0 -5
- package/src/Dropdown/sgds-dropdown.ts +0 -54
- package/src/Footer/index.ts +0 -3
- package/src/Footer/sgds-footer.scss +0 -5
- package/src/Footer/sgds-footer.ts +0 -121
- package/src/Input/index.ts +0 -1
- package/src/Input/sgds-input.scss +0 -20
- package/src/Input/sgds-input.ts +0 -178
- package/src/Mainnav/index.ts +0 -4
- package/src/Mainnav/sgds-mainnav-dropdown.scss +0 -13
- package/src/Mainnav/sgds-mainnav-dropdown.ts +0 -45
- package/src/Mainnav/sgds-mainnav-item.scss +0 -24
- package/src/Mainnav/sgds-mainnav-item.ts +0 -8
- package/src/Mainnav/sgds-mainnav.scss +0 -39
- package/src/Mainnav/sgds-mainnav.ts +0 -183
- package/src/Masthead/index.ts +0 -1
- package/src/Masthead/sgds-masthead.scss +0 -217
- package/src/Masthead/sgds-masthead.ts +0 -189
- package/src/Modal/index.ts +0 -1
- package/src/Modal/sgds-modal.scss +0 -128
- package/src/Modal/sgds-modal.ts +0 -309
- package/src/QuantityToggle/index.ts +0 -1
- package/src/QuantityToggle/sgds-quantitytoggle.scss +0 -10
- package/src/QuantityToggle/sgds-quantitytoggle.ts +0 -130
- package/src/Radio/index.ts +0 -2
- package/src/Radio/sgds-radio.scss +0 -5
- package/src/Radio/sgds-radio.ts +0 -120
- package/src/Radio/sgds-radiogroup.scss +0 -22
- package/src/Radio/sgds-radiogroup.ts +0 -221
- package/src/Sidenav/index.ts +0 -4
- package/src/Sidenav/sgds-sidenav-item.scss +0 -73
- package/src/Sidenav/sgds-sidenav-item.ts +0 -145
- package/src/Sidenav/sgds-sidenav-link.scss +0 -25
- package/src/Sidenav/sgds-sidenav-link.ts +0 -8
- package/src/Sidenav/sgds-sidenav.scss +0 -6
- package/src/Sidenav/sgds-sidenav.ts +0 -33
- package/src/Tab/index.ts +0 -3
- package/src/Tab/sgds-tab.scss +0 -84
- package/src/Tab/sgds-tab.ts +0 -87
- package/src/Tab/sgds-tabgroup.scss +0 -198
- package/src/Tab/sgds-tabgroup.ts +0 -295
- package/src/Tab/sgds-tabpanel.scss +0 -12
- package/src/Tab/sgds-tabpanel.ts +0 -55
- package/src/Textarea/index.ts +0 -1
- package/src/Textarea/sgds-textarea.scss +0 -23
- package/src/Textarea/sgds-textarea.ts +0 -201
- package/src/index.ts +0 -16
- package/src/utils/animate.ts +0 -69
- package/src/utils/animation-registry.ts +0 -71
- package/src/utils/base.scss +0 -14
- package/src/utils/breakpoints.ts +0 -5
- package/src/utils/card-element.ts +0 -42
- package/src/utils/components.style.scss +0 -531
- package/src/utils/defaultvalue.ts +0 -51
- package/src/utils/dropdown-element.ts +0 -244
- package/src/utils/event.ts +0 -13
- package/src/utils/form.ts +0 -183
- package/src/utils/generateId.ts +0 -4
- package/src/utils/link-element.ts +0 -34
- package/src/utils/mergeDeep.ts +0 -22
- package/src/utils/modal.ts +0 -64
- package/src/utils/object.ts +0 -2
- package/src/utils/offset.ts +0 -6
- package/src/utils/scroll.ts +0 -57
- package/src/utils/sgds-element.ts +0 -18
- package/src/utils/slot.ts +0 -102
- package/src/utils/tabbable.ts +0 -81
- package/src/utils/watch.ts +0 -62
- package/stories/ActionCard.stories.mdx +0 -199
- package/stories/Button.stories.mdx +0 -194
- package/stories/Checkbox.stories.mdx +0 -196
- package/stories/Dropdown.stories.mdx +0 -152
- package/stories/Footer.stories.mdx +0 -261
- package/stories/Input.stories.mdx +0 -236
- package/stories/MainNav.stories.mdx +0 -169
- package/stories/Masthead.stories.mdx +0 -112
- package/stories/Modal.stories.mdx +0 -103
- package/stories/QuantityToggle.stories.mdx +0 -97
- package/stories/Radio.stories.mdx +0 -262
- package/stories/Sample.stories.js +0 -29
- package/stories/Sample.stories.mdx +0 -33
- package/stories/SideNav.stories.mdx +0 -245
- package/stories/common.js +0 -185
- package/stories/textarea.stories.mdx +0 -253
- package/test/button.element.test.ts +0 -185
- package/test/checkbox.test.ts +0 -240
- package/test/dropdown.test.ts +0 -637
- package/test/footer.test.ts +0 -181
- package/test/generateId.test.ts +0 -18
- package/test/input.element.test.ts +0 -316
- package/test/link-element.test.ts +0 -38
- package/test/mainnav.test.ts +0 -313
- package/test/masthead.test.ts +0 -116
- package/test/modal.test.ts +0 -149
- package/test/quantitytoggle.test.ts +0 -76
- package/test/radio.test.ts +0 -310
- package/test/selectable-card.test.ts +0 -159
- package/test/sidenav.test.ts +0 -390
- package/test/tab.test.ts +0 -76
- package/test/textarea.test.ts +0 -126
- package/tsconfig.json +0 -26
- package/tsconfig.test.json +0 -24
- package/typings/scss.d.ts +0 -5
- package/web-dev-server.config.mjs +0 -7
- package/web-test-runner.config.mjs +0 -47
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
export declare class SgdsCloseButton extends SgdsElement {
|
|
3
|
+
static styles: import("lit").CSSResultGroup[];
|
|
4
|
+
closed: boolean;
|
|
5
|
+
closeLabel: string;
|
|
6
|
+
handleClick(): void;
|
|
7
|
+
render(): import("lit").TemplateResult<1>;
|
|
8
|
+
}
|
|
9
|
+
export default SgdsCloseButton;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import LinkElement from "
|
|
2
|
-
export declare class SgdsDropdownItem extends LinkElement {
|
|
3
|
-
static styles: import("lit").CSSResultGroup;
|
|
4
|
-
anchor: HTMLElement;
|
|
5
|
-
firstUpdated(): void;
|
|
6
|
-
render(): import("lit").TemplateResult<1>;
|
|
7
|
-
}
|
|
1
|
+
import LinkElement from "../../base/link-element";
|
|
2
|
+
export declare class SgdsDropdownItem extends LinkElement {
|
|
3
|
+
static styles: import("lit").CSSResultGroup[];
|
|
4
|
+
anchor: HTMLElement;
|
|
5
|
+
firstUpdated(): void;
|
|
6
|
+
render(): import("lit").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
export default SgdsDropdownItem;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { DropdownElement } from "
|
|
2
|
-
export type DropDirection = "left" | "right" | "up" | "down";
|
|
3
|
-
export declare class SgdsDropdown extends DropdownElement {
|
|
4
|
-
static styles: import("lit").CSSResultGroup;
|
|
5
|
-
constructor();
|
|
6
|
-
render(): import("lit").TemplateResult<1>;
|
|
7
|
-
}
|
|
1
|
+
import { DropdownElement } from "../../base/dropdown-element";
|
|
2
|
+
export type DropDirection = "left" | "right" | "up" | "down";
|
|
3
|
+
export declare class SgdsDropdown extends DropdownElement {
|
|
4
|
+
static styles: import("lit").CSSResultGroup[];
|
|
5
|
+
constructor();
|
|
6
|
+
render(): import("lit").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
export default SgdsDropdown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SgdsFileUpload } from "./sgds-fileupload";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
export type FileUploadButtonVariant = "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | "link" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-danger" | "outline-warning" | "outline-info" | "outline-light" | "outline-dark";
|
|
3
|
+
export declare class SgdsFileUpload extends SgdsElement {
|
|
4
|
+
/** The button's variant. */
|
|
5
|
+
variant: FileUploadButtonVariant;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
/** Button sizes */
|
|
8
|
+
size: "sm" | "lg";
|
|
9
|
+
checkedIcon?: string;
|
|
10
|
+
cancelIcon?: string;
|
|
11
|
+
private fileList;
|
|
12
|
+
private selectedFiles;
|
|
13
|
+
constructor();
|
|
14
|
+
setFileList(fileList: any): void;
|
|
15
|
+
static styles: import("lit").CSSResultGroup[];
|
|
16
|
+
private inputRef;
|
|
17
|
+
private handleClick;
|
|
18
|
+
private handleInputChange;
|
|
19
|
+
removeFileHandler(index: number): void;
|
|
20
|
+
render(): import("lit").TemplateResult<1>;
|
|
21
|
+
}
|
|
22
|
+
export default SgdsFileUpload;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sgds-footer";
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import SgdsElement from "
|
|
2
|
-
export
|
|
3
|
-
href: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ColumnLinks {
|
|
7
|
-
title: string;
|
|
8
|
-
links: Links[];
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
export interface Links {
|
|
3
|
+
href: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ColumnLinks {
|
|
7
|
+
title: string;
|
|
8
|
+
links: Links[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @csspart footer-top - The component's footer-top section container.
|
|
12
|
+
* @csspart footer-bottom - The component's footer-bottom section container.
|
|
13
|
+
*/
|
|
14
|
+
export declare class SgdsFooter extends SgdsElement {
|
|
15
|
+
static styles: import("lit").CSSResultGroup[];
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
links: ColumnLinks[];
|
|
19
|
+
lastUpdatedDate: string;
|
|
20
|
+
contactHref: string;
|
|
21
|
+
feedbackHref: string;
|
|
22
|
+
vulnerabilityHref: string;
|
|
23
|
+
privacyHref: string;
|
|
24
|
+
termsOfUseHref: string;
|
|
25
|
+
render(): import("lit").TemplateResult<1>;
|
|
26
|
+
}
|
|
27
|
+
export default SgdsFooter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sgds-input";
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import SgdsElement from "
|
|
2
|
-
export declare class SgdsInput extends SgdsElement {
|
|
3
|
-
input: HTMLInputElement;
|
|
4
|
-
private hasFocus;
|
|
5
|
-
private readonly formSubmitController;
|
|
6
|
-
static styles: import("lit").CSSResultGroup;
|
|
7
|
-
type:
|
|
8
|
-
label: string;
|
|
9
|
-
hintText: string;
|
|
10
|
-
inputId: string;
|
|
11
|
-
name: string;
|
|
12
|
-
inputClasses: string;
|
|
13
|
-
iconName: string;
|
|
14
|
-
value: string;
|
|
15
|
-
minlength: any;
|
|
16
|
-
maxlength: any;
|
|
17
|
-
placeholder: string;
|
|
18
|
-
pattern: any;
|
|
19
|
-
invalidFeedback: string;
|
|
20
|
-
autofocus: boolean;
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
required: boolean;
|
|
23
|
-
/** Makes the input readonly. */
|
|
24
|
-
readonly: boolean;
|
|
25
|
-
invalid: boolean;
|
|
26
|
-
valid: boolean;
|
|
27
|
-
/** Gets or sets the default value used to reset this element. The initial value corresponds to the one originally specified in the HTML that created this element. */
|
|
28
|
-
defaultValue: string;
|
|
29
|
-
/** Sets focus on the input. */
|
|
30
|
-
focus(options?: FocusOptions): void;
|
|
31
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
32
|
-
reportValidity(): boolean;
|
|
33
|
-
handleInvalid(): void;
|
|
34
|
-
handleChange(event: string): void;
|
|
35
|
-
handleFocus(): void;
|
|
36
|
-
handleBlur(): void;
|
|
37
|
-
handleKeyDown(event: KeyboardEvent): void;
|
|
38
|
-
handleDisabledChange(): void;
|
|
39
|
-
handleValueChange(): void;
|
|
40
|
-
render(): import("lit").TemplateResult
|
|
41
|
-
}
|
|
42
|
-
export default SgdsInput;
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
export declare class SgdsInput extends SgdsElement {
|
|
3
|
+
input: HTMLInputElement;
|
|
4
|
+
private hasFocus;
|
|
5
|
+
private readonly formSubmitController;
|
|
6
|
+
static styles: import("lit").CSSResultGroup[];
|
|
7
|
+
type: "date" | "datetime-local" | "email" | "number" | "password" | "search" | "tel" | "text" | "time" | "url";
|
|
8
|
+
label: string;
|
|
9
|
+
hintText: string;
|
|
10
|
+
inputId: string;
|
|
11
|
+
name: string;
|
|
12
|
+
inputClasses: string;
|
|
13
|
+
iconName: string;
|
|
14
|
+
value: string;
|
|
15
|
+
minlength: any;
|
|
16
|
+
maxlength: any;
|
|
17
|
+
placeholder: string;
|
|
18
|
+
pattern: any;
|
|
19
|
+
invalidFeedback: string;
|
|
20
|
+
autofocus: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
required: boolean;
|
|
23
|
+
/** Makes the input readonly. */
|
|
24
|
+
readonly: boolean;
|
|
25
|
+
invalid: boolean;
|
|
26
|
+
valid: boolean;
|
|
27
|
+
/** Gets or sets the default value used to reset this element. The initial value corresponds to the one originally specified in the HTML that created this element. */
|
|
28
|
+
defaultValue: string;
|
|
29
|
+
/** Sets focus on the input. */
|
|
30
|
+
focus(options?: FocusOptions): void;
|
|
31
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
32
|
+
reportValidity(): boolean;
|
|
33
|
+
handleInvalid(): void;
|
|
34
|
+
handleChange(event: string): void;
|
|
35
|
+
handleFocus(): void;
|
|
36
|
+
handleBlur(): void;
|
|
37
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
38
|
+
handleDisabledChange(): void;
|
|
39
|
+
handleValueChange(): void;
|
|
40
|
+
render(): import("lit").TemplateResult;
|
|
41
|
+
}
|
|
42
|
+
export default SgdsInput;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
import SgdsElement from "
|
|
2
|
-
export type MainnavExpandSize = "sm" | "md" | "lg" | "xl" | "xxl" | "always" | "never";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
private
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
export type MainnavExpandSize = "sm" | "md" | "lg" | "xl" | "xxl" | "always" | "never";
|
|
3
|
+
/**
|
|
4
|
+
* @slot - Pass in SgdsMainnavItem elements here.
|
|
5
|
+
* @slot end - Elements in this slot will be positioned to the right end of .navbar-nav. Elements in this slot will also be included in collapsed menu.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SgdsMainnav extends SgdsElement {
|
|
8
|
+
static styles: import("lit").CSSResultGroup[];
|
|
9
|
+
constructor();
|
|
10
|
+
private myCollapse;
|
|
11
|
+
private bsCollapse;
|
|
12
|
+
private myOffcanvas;
|
|
13
|
+
private bsOffcanvas;
|
|
14
|
+
private _onClickButton;
|
|
15
|
+
brandHref: string;
|
|
16
|
+
collapseId: string;
|
|
17
|
+
expand: MainnavExpandSize;
|
|
18
|
+
mode: "offcanvas" | "default";
|
|
19
|
+
breakpointReached: boolean;
|
|
20
|
+
expanded: boolean;
|
|
21
|
+
firstUpdated(): void;
|
|
22
|
+
_handleSlotChange(e: Event): void;
|
|
23
|
+
render(): import("lit").TemplateResult<1>;
|
|
24
|
+
_expandClass(): string;
|
|
25
|
+
}
|
|
26
|
+
export default SgdsMainnav;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sgds-masthead";
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import SgdsElement from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
render(): import("lit").TemplateResult<1>;
|
|
11
|
-
}
|
|
12
|
-
export default SgdsMasthead;
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
export declare class SgdsMasthead extends SgdsElement {
|
|
3
|
+
static styles: import("lit").CSSResultGroup[];
|
|
4
|
+
fluid: boolean;
|
|
5
|
+
toggleVisibility: boolean;
|
|
6
|
+
private _toggleVisibility;
|
|
7
|
+
render(): import("lit").TemplateResult<1>;
|
|
8
|
+
}
|
|
9
|
+
export default SgdsMasthead;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sgds-modal";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import SgdsElement from "
|
|
2
|
-
export declare class SgdsModal extends SgdsElement {
|
|
3
|
-
static styles: import("lit").CSSResultGroup;
|
|
4
|
-
dialog: HTMLElement;
|
|
5
|
-
panel: HTMLElement;
|
|
6
|
-
overlay: HTMLElement;
|
|
7
|
-
private readonly hasSlotController;
|
|
8
|
-
private modal;
|
|
9
|
-
private originalTrigger;
|
|
10
|
-
open: boolean;
|
|
11
|
-
title: string;
|
|
12
|
-
titleIcon: string;
|
|
13
|
-
noHeader: boolean;
|
|
14
|
-
connectedCallback(): void;
|
|
15
|
-
firstUpdated(): void;
|
|
16
|
-
disconnectedCallback(): void;
|
|
17
|
-
/** Shows the dialog. */
|
|
18
|
-
show(): Promise<void>;
|
|
19
|
-
/** Hides the dialog */
|
|
20
|
-
hide(): Promise<void>;
|
|
21
|
-
private requestClose;
|
|
22
|
-
addOpenListeners(): void;
|
|
23
|
-
removeOpenListeners(): void;
|
|
24
|
-
handleDocumentKeyDown(event: KeyboardEvent): void;
|
|
25
|
-
handleOpenChange(): Promise<void>;
|
|
26
|
-
render(): import("lit").TemplateResult<1>;
|
|
27
|
-
}
|
|
28
|
-
export default SgdsModal;
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
export declare class SgdsModal extends SgdsElement {
|
|
3
|
+
static styles: import("lit").CSSResultGroup[];
|
|
4
|
+
dialog: HTMLElement;
|
|
5
|
+
panel: HTMLElement;
|
|
6
|
+
overlay: HTMLElement;
|
|
7
|
+
private readonly hasSlotController;
|
|
8
|
+
private modal;
|
|
9
|
+
private originalTrigger;
|
|
10
|
+
open: boolean;
|
|
11
|
+
title: string;
|
|
12
|
+
titleIcon: string;
|
|
13
|
+
noHeader: boolean;
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
firstUpdated(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
/** Shows the dialog. */
|
|
18
|
+
show(): Promise<void>;
|
|
19
|
+
/** Hides the dialog */
|
|
20
|
+
hide(): Promise<void>;
|
|
21
|
+
private requestClose;
|
|
22
|
+
addOpenListeners(): void;
|
|
23
|
+
removeOpenListeners(): void;
|
|
24
|
+
handleDocumentKeyDown(event: KeyboardEvent): void;
|
|
25
|
+
handleOpenChange(): Promise<void>;
|
|
26
|
+
render(): import("lit").TemplateResult<1>;
|
|
27
|
+
}
|
|
28
|
+
export default SgdsModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sgds-quantity-toggle";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export declare class SgdsQuantityToggle extends SgdsElement {
|
|
4
|
-
input: HTMLInputElement;
|
|
5
|
-
leftBtn: SgdsButton;
|
|
6
|
-
lastBtn: SgdsButton;
|
|
7
|
-
static styles: import("lit").CSSResultGroup;
|
|
8
|
-
quantToggleId: string;
|
|
9
|
-
name: string;
|
|
10
|
-
/** The input's minimum value. */
|
|
11
|
-
min: number | string;
|
|
12
|
-
/** The input's maximum value. */
|
|
13
|
-
max: number | string;
|
|
14
|
-
size:
|
|
15
|
-
count: number
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
quantityToggleClasses?: string;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
step: number;
|
|
23
|
-
/** Gets or sets the default value used to reset this element. The initial value corresponds to the one originally specified in the HTML that created this element. */
|
|
24
|
-
defaultValue: string;
|
|
25
|
-
handleChange(event: string): void;
|
|
26
|
-
onPlus(event: MouseEvent): void;
|
|
27
|
-
onMinus(event: MouseEvent): void;
|
|
28
|
-
render(): import("lit").TemplateResult
|
|
29
|
-
}
|
|
30
|
-
export default SgdsQuantityToggle;
|
|
1
|
+
import { SgdsButton } from "../Button";
|
|
2
|
+
import SgdsElement from "../../base/sgds-element";
|
|
3
|
+
export declare class SgdsQuantityToggle extends SgdsElement {
|
|
4
|
+
input: HTMLInputElement;
|
|
5
|
+
leftBtn: SgdsButton;
|
|
6
|
+
lastBtn: SgdsButton;
|
|
7
|
+
static styles: import("lit").CSSResultGroup[];
|
|
8
|
+
quantToggleId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
/** The input's minimum value. */
|
|
11
|
+
min: number | string;
|
|
12
|
+
/** The input's maximum value. */
|
|
13
|
+
max: number | string;
|
|
14
|
+
size: "sm" | "lg" | "default";
|
|
15
|
+
count: number;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
quantityToggleClasses?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is
|
|
20
|
+
* implied, allowing any numeric value.
|
|
21
|
+
*/
|
|
22
|
+
step: number;
|
|
23
|
+
/** Gets or sets the default value used to reset this element. The initial value corresponds to the one originally specified in the HTML that created this element. */
|
|
24
|
+
defaultValue: string;
|
|
25
|
+
handleChange(event: string): void;
|
|
26
|
+
onPlus(event: MouseEvent): void;
|
|
27
|
+
onMinus(event: MouseEvent): void;
|
|
28
|
+
render(): import("lit").TemplateResult;
|
|
29
|
+
}
|
|
30
|
+
export default SgdsQuantityToggle;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import SgdsElement from "
|
|
2
|
-
import { FormSubmitController } from "
|
|
3
|
-
export declare class SgdsRadioGroup extends SgdsElement {
|
|
4
|
-
static styles: import("lit").CSSResultGroup;
|
|
5
|
-
protected readonly formSubmitController: FormSubmitController;
|
|
6
|
-
defaultSlot: HTMLSlotElement;
|
|
7
|
-
input: HTMLInputElement;
|
|
8
|
-
private defaultValue;
|
|
9
|
-
private customErrorMessage;
|
|
10
|
-
/**
|
|
11
|
-
* The radio group label. Required for proper accessibility. If you need to display HTML, you can use the `label` slot
|
|
12
|
-
* instead.
|
|
13
|
-
*/
|
|
14
|
-
label: string;
|
|
15
|
-
/** The selected value of the control. */
|
|
16
|
-
value: string;
|
|
17
|
-
/** The name assigned to the radio controls. */
|
|
18
|
-
name: string;
|
|
19
|
-
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
20
|
-
required: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* This will be true when the control is in an invalid state.
|
|
23
|
-
*/
|
|
24
|
-
invalid: boolean;
|
|
25
|
-
invalidFeedback: string;
|
|
26
|
-
handleValueChange(): void;
|
|
27
|
-
connectedCallback(): void;
|
|
28
|
-
get validity(): ValidityState;
|
|
29
|
-
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
30
|
-
reportValidity(): boolean;
|
|
31
|
-
private getAllRadios;
|
|
32
|
-
handleRadioClick(event: MouseEvent): void;
|
|
33
|
-
handleKeyDown(event: KeyboardEvent): void;
|
|
34
|
-
handleLabelClick(): void;
|
|
35
|
-
handleSlotChange(): void;
|
|
36
|
-
handleInvalid(): void;
|
|
37
|
-
showNativeErrorMessage(): void;
|
|
38
|
-
updateCheckedRadio(): void;
|
|
39
|
-
render(): import("lit").TemplateResult<1>;
|
|
40
|
-
}
|
|
41
|
-
export default SgdsRadioGroup;
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
import { FormSubmitController } from "../../utils/form";
|
|
3
|
+
export declare class SgdsRadioGroup extends SgdsElement {
|
|
4
|
+
static styles: import("lit").CSSResultGroup[];
|
|
5
|
+
protected readonly formSubmitController: FormSubmitController;
|
|
6
|
+
defaultSlot: HTMLSlotElement;
|
|
7
|
+
input: HTMLInputElement;
|
|
8
|
+
private defaultValue;
|
|
9
|
+
private customErrorMessage;
|
|
10
|
+
/**
|
|
11
|
+
* The radio group label. Required for proper accessibility. If you need to display HTML, you can use the `label` slot
|
|
12
|
+
* instead.
|
|
13
|
+
*/
|
|
14
|
+
label: string;
|
|
15
|
+
/** The selected value of the control. */
|
|
16
|
+
value: string;
|
|
17
|
+
/** The name assigned to the radio controls. */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
20
|
+
required: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* This will be true when the control is in an invalid state.
|
|
23
|
+
*/
|
|
24
|
+
invalid: boolean;
|
|
25
|
+
invalidFeedback: string;
|
|
26
|
+
handleValueChange(): void;
|
|
27
|
+
connectedCallback(): void;
|
|
28
|
+
get validity(): ValidityState;
|
|
29
|
+
/** Checks for validity and shows the browser's validation message if the control is invalid. */
|
|
30
|
+
reportValidity(): boolean;
|
|
31
|
+
private getAllRadios;
|
|
32
|
+
handleRadioClick(event: MouseEvent): void;
|
|
33
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
34
|
+
handleLabelClick(): void;
|
|
35
|
+
handleSlotChange(): void;
|
|
36
|
+
handleInvalid(): void;
|
|
37
|
+
showNativeErrorMessage(): void;
|
|
38
|
+
updateCheckedRadio(): void;
|
|
39
|
+
render(): import("lit").TemplateResult<1>;
|
|
40
|
+
}
|
|
41
|
+
export default SgdsRadioGroup;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import SgdsElement from "
|
|
2
|
-
export declare class SgdsRadio extends SgdsElement {
|
|
3
|
-
static styles: import("lit").CSSResultGroup;
|
|
4
|
-
checked: boolean;
|
|
5
|
-
protected hasFocus: boolean;
|
|
6
|
-
/** The radio's value attribute. */
|
|
7
|
-
value: string;
|
|
8
|
-
/** For id/for pair of the HTML form control. */
|
|
9
|
-
radioId: string;
|
|
10
|
-
/** Disables the radio. */
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
/** Aligns the radios horizontally */
|
|
13
|
-
isInline: boolean;
|
|
14
|
-
/** For aria-label */
|
|
15
|
-
ariaLabel: string;
|
|
16
|
-
connectedCallback(): void;
|
|
17
|
-
handleCheckedChange(): void;
|
|
18
|
-
handleDisabledChange(): void;
|
|
19
|
-
private handleBlur;
|
|
20
|
-
private handleClick;
|
|
21
|
-
private handleFocus;
|
|
22
|
-
private addEventListeners;
|
|
23
|
-
private setInitialAttributes;
|
|
24
|
-
render(): import("lit").TemplateResult<1>;
|
|
25
|
-
}
|
|
26
|
-
declare global {
|
|
27
|
-
interface HTMLElementTagNameMap {
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export default SgdsRadio;
|
|
1
|
+
import SgdsElement from "../../base/sgds-element";
|
|
2
|
+
export declare class SgdsRadio extends SgdsElement {
|
|
3
|
+
static styles: import("lit").CSSResultGroup[];
|
|
4
|
+
checked: boolean;
|
|
5
|
+
protected hasFocus: boolean;
|
|
6
|
+
/** The radio's value attribute. */
|
|
7
|
+
value: string;
|
|
8
|
+
/** For id/for pair of the HTML form control. */
|
|
9
|
+
radioId: string;
|
|
10
|
+
/** Disables the radio. */
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
/** Aligns the radios horizontally */
|
|
13
|
+
isInline: boolean;
|
|
14
|
+
/** For aria-label */
|
|
15
|
+
ariaLabel: string;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
handleCheckedChange(): void;
|
|
18
|
+
handleDisabledChange(): void;
|
|
19
|
+
private handleBlur;
|
|
20
|
+
private handleClick;
|
|
21
|
+
private handleFocus;
|
|
22
|
+
private addEventListeners;
|
|
23
|
+
private setInitialAttributes;
|
|
24
|
+
render(): import("lit").TemplateResult<1>;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
"sgds-radio": SgdsRadio;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export default SgdsRadio;
|