@ds-gn/ui 0.0.0-stage → 0.5.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 +155 -2
- package/THIRD_PARTY_NOTICES +167 -0
- package/assets/logo-full-dark.svg +4 -0
- package/assets/logo-full.svg +4 -0
- package/assets/logo-mark.svg +3 -0
- package/custom-elements.json +4696 -0
- package/dist/common/Base/Base.d.ts +22 -0
- package/dist/common/controllers/AuroraMeshController.d.ts +68 -0
- package/dist/common/controllers/AutoRotateController.d.ts +38 -0
- package/dist/common/controllers/BreakpointController.d.ts +30 -0
- package/dist/common/controllers/LayoutChangeController.d.ts +28 -0
- package/dist/common/controllers/WordCycleController.d.ts +36 -0
- package/dist/common/helpers/aurora-mesh.d.ts +11 -0
- package/dist/common/helpers/define-element.d.ts +14 -0
- package/dist/common/helpers/enum-creator.d.ts +2 -0
- package/dist/common/helpers/enum-validator.d.ts +1 -0
- package/dist/common/helpers/layout-change.d.ts +39 -0
- package/dist/common/helpers/layout-change.testing.d.ts +15 -0
- package/dist/common/helpers/logo.string.d.ts +23 -0
- package/dist/common/helpers/logo.string.js +43 -0
- package/dist/common/helpers/logo.utils.d.ts +8 -0
- package/dist/common/helpers/motion.d.ts +9 -0
- package/dist/common/helpers/story.utils.d.ts +32 -0
- package/dist/common/props/surface/surface.props.d.ts +6 -0
- package/dist/components/Background/src/Background.d.ts +44 -0
- package/dist/components/Background/src/Background.js +576 -0
- package/dist/components/Background/src/Background.props.d.ts +20 -0
- package/dist/components/Background/src/Background.props.js +47 -0
- package/dist/components/Background/src/Background.styles.d.ts +3 -0
- package/dist/components/Badge/src/Badge.d.ts +28 -0
- package/dist/components/Badge/src/Badge.js +429 -0
- package/dist/components/Badge/src/Badge.playground.d.ts +2 -0
- package/dist/components/Badge/src/Badge.props.d.ts +16 -0
- package/dist/components/Badge/src/Badge.props.js +44 -0
- package/dist/components/Badge/src/Badge.styles.d.ts +2 -0
- package/dist/components/Button/src/Button.d.ts +138 -0
- package/dist/components/Button/src/Button.js +1102 -0
- package/dist/components/Button/src/Button.playground.d.ts +2 -0
- package/dist/components/Button/src/Button.props.d.ts +47 -0
- package/dist/components/Button/src/Button.props.js +79 -0
- package/dist/components/Button/src/Button.styles.d.ts +11 -0
- package/dist/components/Card/src/Card.d.ts +39 -0
- package/dist/components/Card/src/Card.js +564 -0
- package/dist/components/Card/src/Card.playground.d.ts +2 -0
- package/dist/components/Card/src/Card.props.d.ts +22 -0
- package/dist/components/Card/src/Card.props.js +42 -0
- package/dist/components/Card/src/Card.styles.d.ts +11 -0
- package/dist/components/CodeBlock/src/CodeBlock.d.ts +18 -0
- package/dist/components/CodeBlock/src/CodeBlock.js +372 -0
- package/dist/components/CodeBlock/src/CodeBlock.props.d.ts +1 -0
- package/dist/components/CodeBlock/src/CodeBlock.props.js +5 -0
- package/dist/components/CodeBlock/src/CodeBlock.styles.d.ts +9 -0
- package/dist/components/Container/src/Container.d.ts +26 -0
- package/dist/components/Container/src/Container.js +354 -0
- package/dist/components/Container/src/Container.props.d.ts +20 -0
- package/dist/components/Container/src/Container.props.js +49 -0
- package/dist/components/Container/src/Container.styles.d.ts +2 -0
- package/dist/components/Divider/src/Divider.d.ts +23 -0
- package/dist/components/Divider/src/Divider.js +250 -0
- package/dist/components/Divider/src/Divider.props.d.ts +7 -0
- package/dist/components/Divider/src/Divider.props.js +34 -0
- package/dist/components/Divider/src/Divider.styles.d.ts +2 -0
- package/dist/components/FeatureItem/src/FeatureItem.d.ts +30 -0
- package/dist/components/FeatureItem/src/FeatureItem.js +368 -0
- package/dist/components/FeatureItem/src/FeatureItem.props.d.ts +10 -0
- package/dist/components/FeatureItem/src/FeatureItem.props.js +37 -0
- package/dist/components/FeatureItem/src/FeatureItem.styles.d.ts +3 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.d.ts +48 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.js +1333 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.props.d.ts +27 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.props.js +80 -0
- package/dist/components/FeatureTabs/src/FeatureTabs.styles.d.ts +35 -0
- package/dist/components/Footer/src/Footer.d.ts +39 -0
- package/dist/components/Footer/src/Footer.js +361 -0
- package/dist/components/Footer/src/Footer.styles.d.ts +6 -0
- package/dist/components/FormBlock/src/FormBlock.d.ts +40 -0
- package/dist/components/FormBlock/src/FormBlock.js +476 -0
- package/dist/components/FormBlock/src/FormBlock.props.d.ts +5 -0
- package/dist/components/FormBlock/src/FormBlock.props.js +8 -0
- package/dist/components/FormBlock/src/FormBlock.styles.d.ts +6 -0
- package/dist/components/Grid/src/Grid.d.ts +35 -0
- package/dist/components/Grid/src/Grid.js +381 -0
- package/dist/components/Grid/src/Grid.props.d.ts +28 -0
- package/dist/components/Grid/src/Grid.props.js +57 -0
- package/dist/components/Grid/src/Grid.styles.d.ts +3 -0
- package/dist/components/Heading/src/Heading.d.ts +26 -0
- package/dist/components/Heading/src/Heading.js +755 -0
- package/dist/components/Heading/src/Heading.playground.d.ts +2 -0
- package/dist/components/Heading/src/Heading.props.d.ts +19 -0
- package/dist/components/Heading/src/Heading.props.js +47 -0
- package/dist/components/Heading/src/Heading.styles.d.ts +4 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.d.ts +28 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.js +288 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.playground.d.ts +2 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.props.d.ts +6 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.props.js +33 -0
- package/dist/components/HeadingBlock/src/HeadingBlock.styles.d.ts +2 -0
- package/dist/components/Hero/src/Hero.d.ts +42 -0
- package/dist/components/Hero/src/Hero.js +506 -0
- package/dist/components/Hero/src/Hero.props.d.ts +22 -0
- package/dist/components/Hero/src/Hero.props.js +51 -0
- package/dist/components/Hero/src/Hero.styles.d.ts +10 -0
- package/dist/components/Icon/src/Icon.d.ts +67 -0
- package/dist/components/Icon/src/Icon.js +303 -0
- package/dist/components/Icon/src/Icon.props.d.ts +8 -0
- package/dist/components/Icon/src/Icon.props.js +35 -0
- package/dist/components/Icon/src/Icon.styles.d.ts +3 -0
- package/dist/components/Icon/src/icons/arrow-left.d.ts +1 -0
- package/dist/components/Icon/src/icons/arrow-left.js +6 -0
- package/dist/components/Icon/src/icons/arrow-right.d.ts +1 -0
- package/dist/components/Icon/src/icons/arrow-right.js +6 -0
- package/dist/components/Icon/src/icons/calendar.d.ts +1 -0
- package/dist/components/Icon/src/icons/calendar.js +6 -0
- package/dist/components/Icon/src/icons/check.d.ts +1 -0
- package/dist/components/Icon/src/icons/check.js +6 -0
- package/dist/components/Icon/src/icons/chevron-down.d.ts +1 -0
- package/dist/components/Icon/src/icons/chevron-down.js +6 -0
- package/dist/components/Icon/src/icons/chevron-left.d.ts +1 -0
- package/dist/components/Icon/src/icons/chevron-left.js +6 -0
- package/dist/components/Icon/src/icons/chevron-right.d.ts +1 -0
- package/dist/components/Icon/src/icons/chevron-right.js +6 -0
- package/dist/components/Icon/src/icons/chevron-up.d.ts +1 -0
- package/dist/components/Icon/src/icons/chevron-up.js +6 -0
- package/dist/components/Icon/src/icons/circle-alert.d.ts +1 -0
- package/dist/components/Icon/src/icons/circle-alert.js +6 -0
- package/dist/components/Icon/src/icons/circle-check.d.ts +1 -0
- package/dist/components/Icon/src/icons/circle-check.js +6 -0
- package/dist/components/Icon/src/icons/circle-x.d.ts +1 -0
- package/dist/components/Icon/src/icons/circle-x.js +6 -0
- package/dist/components/Icon/src/icons/copy.d.ts +1 -0
- package/dist/components/Icon/src/icons/copy.js +6 -0
- package/dist/components/Icon/src/icons/download.d.ts +1 -0
- package/dist/components/Icon/src/icons/download.js +6 -0
- package/dist/components/Icon/src/icons/ellipsis-vertical.d.ts +1 -0
- package/dist/components/Icon/src/icons/ellipsis-vertical.js +6 -0
- package/dist/components/Icon/src/icons/ellipsis.d.ts +1 -0
- package/dist/components/Icon/src/icons/ellipsis.js +6 -0
- package/dist/components/Icon/src/icons/external-link.d.ts +1 -0
- package/dist/components/Icon/src/icons/external-link.js +6 -0
- package/dist/components/Icon/src/icons/eye-off.d.ts +1 -0
- package/dist/components/Icon/src/icons/eye-off.js +6 -0
- package/dist/components/Icon/src/icons/eye.d.ts +1 -0
- package/dist/components/Icon/src/icons/eye.js +6 -0
- package/dist/components/Icon/src/icons/icon-names.d.ts +2 -0
- package/dist/components/Icon/src/icons/icon-names.js +36 -0
- package/dist/components/Icon/src/icons/index.d.ts +34 -0
- package/dist/components/Icon/src/icons/index.js +35 -0
- package/dist/components/Icon/src/icons/info.d.ts +1 -0
- package/dist/components/Icon/src/icons/info.js +6 -0
- package/dist/components/Icon/src/icons/loader.d.ts +1 -0
- package/dist/components/Icon/src/icons/loader.js +6 -0
- package/dist/components/Icon/src/icons/mail.d.ts +1 -0
- package/dist/components/Icon/src/icons/mail.js +6 -0
- package/dist/components/Icon/src/icons/menu.d.ts +1 -0
- package/dist/components/Icon/src/icons/menu.js +6 -0
- package/dist/components/Icon/src/icons/minus.d.ts +1 -0
- package/dist/components/Icon/src/icons/minus.js +6 -0
- package/dist/components/Icon/src/icons/pencil.d.ts +1 -0
- package/dist/components/Icon/src/icons/pencil.js +6 -0
- package/dist/components/Icon/src/icons/plus.d.ts +1 -0
- package/dist/components/Icon/src/icons/plus.js +6 -0
- package/dist/components/Icon/src/icons/search.d.ts +1 -0
- package/dist/components/Icon/src/icons/search.js +6 -0
- package/dist/components/Icon/src/icons/settings.d.ts +1 -0
- package/dist/components/Icon/src/icons/settings.js +6 -0
- package/dist/components/Icon/src/icons/trash-2.d.ts +1 -0
- package/dist/components/Icon/src/icons/trash-2.js +6 -0
- package/dist/components/Icon/src/icons/triangle-alert.d.ts +1 -0
- package/dist/components/Icon/src/icons/triangle-alert.js +6 -0
- package/dist/components/Icon/src/icons/upload.d.ts +1 -0
- package/dist/components/Icon/src/icons/upload.js +6 -0
- package/dist/components/Icon/src/icons/user.d.ts +1 -0
- package/dist/components/Icon/src/icons/user.js +6 -0
- package/dist/components/Icon/src/icons/x.d.ts +1 -0
- package/dist/components/Icon/src/icons/x.js +6 -0
- package/dist/components/Image/src/Image.d.ts +76 -0
- package/dist/components/Image/src/Image.js +456 -0
- package/dist/components/Image/src/Image.props.d.ts +35 -0
- package/dist/components/Image/src/Image.props.js +65 -0
- package/dist/components/Image/src/Image.styles.d.ts +4 -0
- package/dist/components/Input/src/Input.d.ts +60 -0
- package/dist/components/Input/src/Input.js +648 -0
- package/dist/components/Input/src/Input.playground.d.ts +2 -0
- package/dist/components/Input/src/Input.props.d.ts +13 -0
- package/dist/components/Input/src/Input.props.js +41 -0
- package/dist/components/Input/src/Input.styles.d.ts +6 -0
- package/dist/components/Modal/src/Modal.d.ts +166 -0
- package/dist/components/Modal/src/Modal.js +1434 -0
- package/dist/components/Modal/src/Modal.playground.d.ts +2 -0
- package/dist/components/Modal/src/Modal.props.d.ts +66 -0
- package/dist/components/Modal/src/Modal.props.js +65 -0
- package/dist/components/Modal/src/Modal.styles.d.ts +29 -0
- package/dist/components/Nav/src/Nav.d.ts +66 -0
- package/dist/components/Nav/src/Nav.js +750 -0
- package/dist/components/Nav/src/Nav.props.d.ts +8 -0
- package/dist/components/Nav/src/Nav.props.js +13 -0
- package/dist/components/Nav/src/Nav.styles.d.ts +10 -0
- package/dist/components/NavDropdownColumn/src/NavDropdownColumn.d.ts +17 -0
- package/dist/components/NavDropdownColumn/src/NavDropdownColumn.js +170 -0
- package/dist/components/NavDropdownColumn/src/NavDropdownColumn.styles.d.ts +1 -0
- package/dist/components/NavLink/src/NavLink.d.ts +191 -0
- package/dist/components/NavLink/src/NavLink.js +1916 -0
- package/dist/components/NavLink/src/NavLink.props.d.ts +38 -0
- package/dist/components/NavLink/src/NavLink.props.js +58 -0
- package/dist/components/NavLink/src/NavLink.styles.d.ts +22 -0
- package/dist/components/Stack/src/Stack.d.ts +30 -0
- package/dist/components/Stack/src/Stack.js +300 -0
- package/dist/components/Stack/src/Stack.props.d.ts +24 -0
- package/dist/components/Stack/src/Stack.props.js +53 -0
- package/dist/components/Stack/src/Stack.styles.d.ts +2 -0
- package/dist/components/Text/src/Text.d.ts +32 -0
- package/dist/components/Text/src/Text.js +327 -0
- package/dist/components/Text/src/Text.props.d.ts +23 -0
- package/dist/components/Text/src/Text.props.js +52 -0
- package/dist/components/Text/src/Text.styles.d.ts +2 -0
- package/dist/playground/types.d.ts +29 -0
- package/dist/playground-manifest.d.ts +6 -0
- package/dist/playground-manifest.js +556 -0
- package/dist/react/Background.d.ts +6 -0
- package/dist/react/Background.js +13 -0
- package/dist/react/Badge.d.ts +6 -0
- package/dist/react/Badge.js +13 -0
- package/dist/react/Button.d.ts +6 -0
- package/dist/react/Button.js +13 -0
- package/dist/react/Card.d.ts +6 -0
- package/dist/react/Card.js +13 -0
- package/dist/react/CodeBlock.d.ts +6 -0
- package/dist/react/CodeBlock.js +13 -0
- package/dist/react/Container.d.ts +6 -0
- package/dist/react/Container.js +13 -0
- package/dist/react/Divider.d.ts +6 -0
- package/dist/react/Divider.js +13 -0
- package/dist/react/FeatureItem.d.ts +6 -0
- package/dist/react/FeatureItem.js +13 -0
- package/dist/react/FeatureTabs.d.ts +6 -0
- package/dist/react/FeatureTabs.js +13 -0
- package/dist/react/Footer.d.ts +6 -0
- package/dist/react/Footer.js +13 -0
- package/dist/react/FormBlock.d.ts +6 -0
- package/dist/react/FormBlock.js +13 -0
- package/dist/react/Grid.d.ts +6 -0
- package/dist/react/Grid.js +13 -0
- package/dist/react/Heading.d.ts +6 -0
- package/dist/react/Heading.js +13 -0
- package/dist/react/HeadingBlock.d.ts +6 -0
- package/dist/react/HeadingBlock.js +13 -0
- package/dist/react/Hero.d.ts +6 -0
- package/dist/react/Hero.js +13 -0
- package/dist/react/Icon.d.ts +6 -0
- package/dist/react/Icon.js +13 -0
- package/dist/react/Image.d.ts +8 -0
- package/dist/react/Image.js +13 -0
- package/dist/react/Input.d.ts +8 -0
- package/dist/react/Input.js +13 -0
- package/dist/react/Modal.d.ts +10 -0
- package/dist/react/Modal.js +17 -0
- package/dist/react/Nav.d.ts +6 -0
- package/dist/react/Nav.js +13 -0
- package/dist/react/NavDropdownColumn.d.ts +6 -0
- package/dist/react/NavDropdownColumn.js +13 -0
- package/dist/react/NavLink.d.ts +8 -0
- package/dist/react/NavLink.js +13 -0
- package/dist/react/Stack.d.ts +6 -0
- package/dist/react/Stack.js +13 -0
- package/dist/react/Text.d.ts +6 -0
- package/dist/react/Text.js +13 -0
- package/dist/react/index.d.ts +24 -0
- package/dist/react/index.js +25 -0
- package/dist/surface/surface.props.js +33 -0
- package/package.json +352 -4
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const buttonAppearanceValues: {
|
|
2
|
+
readonly SOLID: "solid";
|
|
3
|
+
readonly OUTLINE: "outline";
|
|
4
|
+
readonly GHOST: "ghost";
|
|
5
|
+
readonly LINK: "link";
|
|
6
|
+
readonly INLINE: "inline";
|
|
7
|
+
readonly MONO_SOLID: "mono-solid";
|
|
8
|
+
readonly MONO_OUTLINE: "mono-outline";
|
|
9
|
+
readonly GRADIENT: "gradient";
|
|
10
|
+
};
|
|
11
|
+
export type ButtonAppearanceType = (typeof buttonAppearanceValues)[keyof typeof buttonAppearanceValues];
|
|
12
|
+
export declare const buttonAppearanceProps: import("lit").PropertyDeclaration<unknown, unknown>;
|
|
13
|
+
export declare const buttonWeightValues: {
|
|
14
|
+
readonly NORMAL: "normal";
|
|
15
|
+
readonly MEDIUM: "medium";
|
|
16
|
+
readonly SEMIBOLD: "semibold";
|
|
17
|
+
readonly BOLD: "bold";
|
|
18
|
+
};
|
|
19
|
+
export type ButtonWeightType = (typeof buttonWeightValues)[keyof typeof buttonWeightValues];
|
|
20
|
+
export declare const buttonWeightProps: import("lit").PropertyDeclaration<unknown, unknown>;
|
|
21
|
+
export declare const buttonTargetValues: {
|
|
22
|
+
SELF: string;
|
|
23
|
+
BLANK: string;
|
|
24
|
+
};
|
|
25
|
+
export type ButtonTargetType = (typeof buttonTargetValues)[keyof typeof buttonTargetValues];
|
|
26
|
+
export declare const buttonTargetProps: import("lit").PropertyDeclaration<unknown, unknown>;
|
|
27
|
+
export declare const buttonTypeValues: {
|
|
28
|
+
readonly BUTTON: "button";
|
|
29
|
+
readonly SUBMIT: "submit";
|
|
30
|
+
readonly RESET: "reset";
|
|
31
|
+
};
|
|
32
|
+
export type ButtonTypeType = (typeof buttonTypeValues)[keyof typeof buttonTypeValues];
|
|
33
|
+
export declare const buttonTypeProps: import("lit").PropertyDeclaration<unknown, unknown>;
|
|
34
|
+
export declare const buttonSizeValues: {
|
|
35
|
+
readonly SM: "sm";
|
|
36
|
+
readonly MD: "md";
|
|
37
|
+
readonly LG: "lg";
|
|
38
|
+
};
|
|
39
|
+
export type ButtonSizeType = (typeof buttonSizeValues)[keyof typeof buttonSizeValues];
|
|
40
|
+
export declare const buttonSizeProps: import("lit").PropertyDeclaration<unknown, unknown>;
|
|
41
|
+
export declare const buttonIconPositionValues: {
|
|
42
|
+
readonly LEADING: "leading";
|
|
43
|
+
readonly TRAILING: "trailing";
|
|
44
|
+
readonly ONLY: "only";
|
|
45
|
+
};
|
|
46
|
+
export type ButtonIconPositionType = (typeof buttonIconPositionValues)[keyof typeof buttonIconPositionValues];
|
|
47
|
+
export declare const buttonIconPositionProps: import("lit").PropertyDeclaration<unknown, unknown>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
// common/helpers/enum-validator.ts
|
|
2
|
+
var enumValidator = (propName, enumSet, candidateValue) => {
|
|
3
|
+
if (!enumSet.has(candidateValue)) {
|
|
4
|
+
throw new Error(`Invalid prop ${propName} of value ${candidateValue}. Expected one of: ${Array.from(enumSet).join(", ")}`);
|
|
5
|
+
}
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
// common/helpers/enum-creator.ts
|
|
9
|
+
var enumCreator = (acceptableValues, propName, type, other = {}) => {
|
|
10
|
+
const acceptableValuesSet = new Set(acceptableValues);
|
|
11
|
+
return {
|
|
12
|
+
type,
|
|
13
|
+
hasChanged(newValue, oldValue) {
|
|
14
|
+
if (newValue !== oldValue) {
|
|
15
|
+
enumValidator(propName, acceptableValuesSet, newValue);
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
return false;
|
|
19
|
+
},
|
|
20
|
+
...other
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// components/Button/src/Button.props.ts
|
|
25
|
+
var buttonAppearanceValues = {
|
|
26
|
+
SOLID: "solid",
|
|
27
|
+
OUTLINE: "outline",
|
|
28
|
+
GHOST: "ghost",
|
|
29
|
+
LINK: "link",
|
|
30
|
+
INLINE: "inline",
|
|
31
|
+
MONO_SOLID: "mono-solid",
|
|
32
|
+
MONO_OUTLINE: "mono-outline",
|
|
33
|
+
GRADIENT: "gradient"
|
|
34
|
+
};
|
|
35
|
+
var buttonAppearanceProps = enumCreator(Object.values(buttonAppearanceValues), "appearance", String, { reflect: true });
|
|
36
|
+
var buttonWeightValues = {
|
|
37
|
+
NORMAL: "normal",
|
|
38
|
+
MEDIUM: "medium",
|
|
39
|
+
SEMIBOLD: "semibold",
|
|
40
|
+
BOLD: "bold"
|
|
41
|
+
};
|
|
42
|
+
var buttonWeightProps = enumCreator(Object.values(buttonWeightValues), "button-weight", String, { reflect: true, attribute: "button-weight" });
|
|
43
|
+
var buttonTargetValues = {
|
|
44
|
+
SELF: "_self",
|
|
45
|
+
BLANK: "_blank"
|
|
46
|
+
};
|
|
47
|
+
var buttonTargetProps = enumCreator(Object.values(buttonTargetValues), "target", String, { reflect: true });
|
|
48
|
+
var buttonTypeValues = {
|
|
49
|
+
BUTTON: "button",
|
|
50
|
+
SUBMIT: "submit",
|
|
51
|
+
RESET: "reset"
|
|
52
|
+
};
|
|
53
|
+
var buttonTypeProps = enumCreator(Object.values(buttonTypeValues), "type", String, { reflect: true });
|
|
54
|
+
var buttonSizeValues = {
|
|
55
|
+
SM: "sm",
|
|
56
|
+
MD: "md",
|
|
57
|
+
LG: "lg"
|
|
58
|
+
};
|
|
59
|
+
var buttonSizeProps = enumCreator(Object.values(buttonSizeValues), "size", String, { reflect: true });
|
|
60
|
+
var buttonIconPositionValues = {
|
|
61
|
+
LEADING: "leading",
|
|
62
|
+
TRAILING: "trailing",
|
|
63
|
+
ONLY: "only"
|
|
64
|
+
};
|
|
65
|
+
var buttonIconPositionProps = enumCreator(Object.values(buttonIconPositionValues), "icon-position", String, { attribute: "icon-position", reflect: true });
|
|
66
|
+
export {
|
|
67
|
+
buttonAppearanceProps,
|
|
68
|
+
buttonAppearanceValues,
|
|
69
|
+
buttonIconPositionProps,
|
|
70
|
+
buttonIconPositionValues,
|
|
71
|
+
buttonSizeProps,
|
|
72
|
+
buttonSizeValues,
|
|
73
|
+
buttonTargetProps,
|
|
74
|
+
buttonTargetValues,
|
|
75
|
+
buttonTypeProps,
|
|
76
|
+
buttonTypeValues,
|
|
77
|
+
buttonWeightProps,
|
|
78
|
+
buttonWeightValues
|
|
79
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ButtonAppearanceType, ButtonIconPositionType, ButtonSizeType, ButtonWeightType } from './Button.props.js';
|
|
2
|
+
export declare const spinnerClasses: () => string;
|
|
3
|
+
export interface ButtonClassOptions {
|
|
4
|
+
appearance: ButtonAppearanceType;
|
|
5
|
+
iconPosition?: ButtonIconPositionType;
|
|
6
|
+
weight?: ButtonWeightType;
|
|
7
|
+
size?: ButtonSizeType;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const classNames: ({ appearance, iconPosition, weight, size, disabled, loading, }: ButtonClassOptions) => string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import '../../../types/global.d.ts';
|
|
2
|
+
import '../../FeatureItem/src/FeatureItem.js';
|
|
3
|
+
import { type CSSResultGroup } from 'lit';
|
|
4
|
+
import { Base } from '../../../common/Base/Base.js';
|
|
5
|
+
import { type SurfaceType } from '../../../common/props/surface/surface.props.js';
|
|
6
|
+
import { type CardFeature, type CardPaddingType, type CardVariantType } from './Card.props.js';
|
|
7
|
+
/**
|
|
8
|
+
* @slot badge - Badge content above the heading.
|
|
9
|
+
* @slot heading - Card heading.
|
|
10
|
+
* @slot media - Card media.
|
|
11
|
+
* @slot footer - Card footer content.
|
|
12
|
+
*/
|
|
13
|
+
export declare class Card extends Base {
|
|
14
|
+
#private;
|
|
15
|
+
static styles: CSSResultGroup;
|
|
16
|
+
/**
|
|
17
|
+
* Surface theme variant (light or dark)
|
|
18
|
+
*/
|
|
19
|
+
surface: SurfaceType;
|
|
20
|
+
/**
|
|
21
|
+
* Visual card variant
|
|
22
|
+
*/
|
|
23
|
+
variant: CardVariantType;
|
|
24
|
+
/**
|
|
25
|
+
* Internal card padding
|
|
26
|
+
*/
|
|
27
|
+
padding: CardPaddingType;
|
|
28
|
+
/**
|
|
29
|
+
* Feature items rendered inside the card body
|
|
30
|
+
*/
|
|
31
|
+
features: CardFeature[];
|
|
32
|
+
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
33
|
+
render(): import("lit").TemplateResult<1>;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
'dsgn-card': Card;
|
|
38
|
+
}
|
|
39
|
+
}
|