@dnanpm/ui-components 0.5.0 → 0.6.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/README.md +3 -1
- package/dist/components/Accordion/Accordion.css +4 -4
- package/dist/components/Accordion/Accordion.module.css.cjs +3 -3
- package/dist/components/Accordion/Accordion.module.css.js +3 -3
- package/dist/components/AccordionItem/AccordionItem.css +18 -18
- package/dist/components/AccordionItem/AccordionItem.module.css.cjs +11 -11
- package/dist/components/AccordionItem/AccordionItem.module.css.js +11 -11
- package/dist/components/Breadcrumb/Breadcrumb.css +11 -12
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +6 -6
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +6 -6
- package/dist/components/Button/Button.cjs +3 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.css +33 -33
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +3 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.module.css.cjs +11 -11
- package/dist/components/Button/Button.module.css.js +11 -11
- package/dist/components/Hero/Hero.cjs +29 -38
- package/dist/components/Hero/Hero.cjs.map +1 -1
- package/dist/components/Hero/Hero.css +64 -60
- package/dist/components/Hero/Hero.d.ts.map +1 -1
- package/dist/components/Hero/Hero.js +29 -38
- package/dist/components/Hero/Hero.js.map +1 -1
- package/dist/components/Hero/Hero.module.css.cjs +20 -19
- package/dist/components/Hero/Hero.module.css.cjs.map +1 -1
- package/dist/components/Hero/Hero.module.css.js +20 -19
- package/dist/components/Hero/Hero.module.css.js.map +1 -1
- package/dist/components/Hero/Hero.types.d.ts +1 -5
- package/dist/components/Hero/Hero.types.d.ts.map +1 -1
- package/dist/components/Hero/Hero.utils.cjs +2 -1
- package/dist/components/Hero/Hero.utils.cjs.map +1 -1
- package/dist/components/Hero/Hero.utils.d.ts.map +1 -1
- package/dist/components/Hero/Hero.utils.js +2 -1
- package/dist/components/Hero/Hero.utils.js.map +1 -1
- package/dist/components/IconButton/IconButton.cjs +21 -5
- package/dist/components/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.css +87 -83
- package/dist/components/IconButton/IconButton.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +22 -6
- package/dist/components/IconButton/IconButton.js.map +1 -1
- package/dist/components/IconButton/IconButton.module.css.cjs +9 -10
- package/dist/components/IconButton/IconButton.module.css.cjs.map +1 -1
- package/dist/components/IconButton/IconButton.module.css.js +9 -10
- package/dist/components/IconButton/IconButton.module.css.js.map +1 -1
- package/dist/components/IconButton/IconButton.types.d.ts +15 -10
- package/dist/components/IconButton/IconButton.types.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/Label/Label.css +13 -8
- package/dist/components/Label/Label.module.css.cjs +7 -7
- package/dist/components/Label/Label.module.css.js +7 -7
- package/dist/components/Notification/Notification.css +14 -14
- package/dist/components/Notification/Notification.module.css.cjs +9 -9
- package/dist/components/Notification/Notification.module.css.js +9 -9
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/styles/utils/elevation.css +20 -17
- package/dist/styles/utils/elevation.module.css.cjs +4 -4
- package/dist/styles/utils/elevation.module.css.js +4 -4
- package/dist/styles/utils/focus.css +14 -14
- package/dist/styles/utils/focus.module.css.cjs +3 -3
- package/dist/styles/utils/focus.module.css.js +3 -3
- package/dist/styles.css +117 -85
- package/package.json +1 -1
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import focusStyles from "../../styles/utils/focus.module.css.js";
|
|
3
|
+
import textDecorationStyles from "../../styles/utils/text-decoration.module.css.js";
|
|
3
4
|
import styles from "./IconButton.module.css.js";
|
|
4
5
|
import { cn } from "../../utils/cn/cn.js";
|
|
5
6
|
import { Spinner } from "../Spinner/Spinner.js";
|
|
6
7
|
const IconButton = ({
|
|
7
|
-
variant = "default",
|
|
8
8
|
icon,
|
|
9
9
|
iconPosition = "start",
|
|
10
|
+
labelBehavior = "truncate",
|
|
10
11
|
size = "normal",
|
|
11
12
|
loading = false,
|
|
13
|
+
linkColoring = false,
|
|
12
14
|
className,
|
|
13
15
|
children,
|
|
14
16
|
ref,
|
|
@@ -18,15 +20,15 @@ const IconButton = ({
|
|
|
18
20
|
const isAnchor = "href" in props && props.href != null;
|
|
19
21
|
const classes = cn(
|
|
20
22
|
styles["icon-button"],
|
|
21
|
-
styles[`icon-button--${variant}`],
|
|
22
23
|
styles[`icon-button--${size}`],
|
|
23
24
|
focusStyles.focusable,
|
|
24
25
|
{ [styles["icon-button--disabled"]]: isDisabled },
|
|
25
26
|
{ [styles["icon-button--loading"]]: loading },
|
|
27
|
+
{ [styles["icon-button--link-coloring"]]: linkColoring },
|
|
26
28
|
className
|
|
27
29
|
);
|
|
28
30
|
const Icon = icon;
|
|
29
|
-
const iconSlot = loading ? /* @__PURE__ */ jsx("span", { className: styles["icon-
|
|
31
|
+
const iconSlot = loading ? /* @__PURE__ */ jsx("span", { className: styles["icon-button__icon"], "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
30
32
|
Spinner,
|
|
31
33
|
{
|
|
32
34
|
size: size === "small" ? "xs" : "s",
|
|
@@ -37,7 +39,15 @@ const IconButton = ({
|
|
|
37
39
|
) }) : /* @__PURE__ */ jsx("span", { className: styles["icon-button__icon"], "aria-hidden": "true", children: /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true" }) });
|
|
38
40
|
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
39
41
|
iconPosition === "start" && iconSlot,
|
|
40
|
-
/* @__PURE__ */ jsx(
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
className: cn(styles["icon-button__label"], textDecorationStyles.underlineLink, {
|
|
46
|
+
[styles["icon-button__label--wrap"]]: labelBehavior === "wrap"
|
|
47
|
+
}),
|
|
48
|
+
children
|
|
49
|
+
}
|
|
50
|
+
),
|
|
41
51
|
iconPosition === "end" && iconSlot
|
|
42
52
|
] });
|
|
43
53
|
if (isAnchor) {
|
|
@@ -67,7 +77,7 @@ const IconButton = ({
|
|
|
67
77
|
className: classes,
|
|
68
78
|
"aria-busy": loading || void 0,
|
|
69
79
|
"aria-disabled": loading || void 0,
|
|
70
|
-
tabIndex: loading ? -1 :
|
|
80
|
+
tabIndex: loading ? -1 : safeAnchorProps.tabIndex,
|
|
71
81
|
onClick: loading ? (e) => {
|
|
72
82
|
e.preventDefault();
|
|
73
83
|
e.stopPropagation();
|
|
@@ -82,6 +92,7 @@ const IconButton = ({
|
|
|
82
92
|
const {
|
|
83
93
|
type = "button",
|
|
84
94
|
disabled,
|
|
95
|
+
onClick,
|
|
85
96
|
href: _href,
|
|
86
97
|
target: _target,
|
|
87
98
|
rel: _rel,
|
|
@@ -95,7 +106,12 @@ const IconButton = ({
|
|
|
95
106
|
type,
|
|
96
107
|
disabled: disabled || loading,
|
|
97
108
|
className: classes,
|
|
109
|
+
"aria-disabled": loading || void 0,
|
|
98
110
|
"aria-busy": loading || void 0,
|
|
111
|
+
onClick: loading ? (e) => {
|
|
112
|
+
e.preventDefault();
|
|
113
|
+
e.stopPropagation();
|
|
114
|
+
} : onClick,
|
|
99
115
|
...buttonProps,
|
|
100
116
|
children: content
|
|
101
117
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sources":["../../../src/components/IconButton/IconButton.tsx"],"sourcesContent":["import type { AnchorHTMLAttributes, MouseEvent, ReactNode, Ref } from 'react';\nimport { cn } from '../../utils/cn';\nimport focusStyles from '../../styles/utils/focus.module.css';\nimport { Spinner } from '../Spinner';\nimport styles from './IconButton.module.css';\nimport type { IconButtonProps } from './IconButton.types';\n\nexport const IconButton = ({\n
|
|
1
|
+
{"version":3,"file":"IconButton.js","sources":["../../../src/components/IconButton/IconButton.tsx"],"sourcesContent":["import type { AnchorHTMLAttributes, MouseEvent, ReactNode, Ref } from 'react';\nimport { cn } from '../../utils/cn';\nimport focusStyles from '../../styles/utils/focus.module.css';\nimport textDecorationStyles from '../../styles/utils/text-decoration.module.css';\nimport { Spinner } from '../Spinner';\nimport styles from './IconButton.module.css';\nimport type { IconButtonProps } from './IconButton.types';\n\nexport const IconButton = ({\n icon,\n iconPosition = 'start',\n labelBehavior = 'truncate',\n size = 'normal',\n loading = false,\n linkColoring = false,\n className,\n children,\n ref,\n ...props\n}: IconButtonProps) => {\n const isDisabled = 'disabled' in props && props.disabled;\n const isAnchor = 'href' in props && props.href != null;\n\n const classes = cn(\n styles['icon-button'],\n styles[`icon-button--${size}`],\n focusStyles.focusable,\n { [styles['icon-button--disabled']]: isDisabled },\n { [styles['icon-button--loading']]: loading },\n { [styles['icon-button--link-coloring']]: linkColoring },\n className,\n );\n\n const Icon = icon;\n\n const iconSlot = loading ? (\n <span className={styles['icon-button__icon']} aria-hidden=\"true\">\n <Spinner\n size={size === 'small' ? 'xs' : 's'}\n color=\"inherit\"\n aria-hidden=\"true\"\n role=\"presentation\"\n />\n </span>\n ) : (\n <span className={styles['icon-button__icon']} aria-hidden=\"true\">\n <Icon aria-hidden=\"true\" />\n </span>\n );\n\n const content = (\n <>\n {iconPosition === 'start' && iconSlot}\n <span\n className={cn(styles['icon-button__label'], textDecorationStyles.underlineLink, {\n [styles['icon-button__label--wrap']]: labelBehavior === 'wrap',\n })}\n >\n {children}\n </span>\n {iconPosition === 'end' && iconSlot}\n </>\n );\n\n if (isAnchor) {\n const { href, renderLink, ...anchorProps } = props as Omit<\n typeof props,\n 'icon' | 'iconPosition' | 'size' | 'loading' | 'linkColoring'\n > & {\n href: string;\n renderLink?: (\n props: AnchorHTMLAttributes<HTMLAnchorElement> & {\n href: string;\n children: ReactNode;\n },\n ) => ReactNode;\n };\n\n const {\n disabled: _disabled,\n type: _type,\n name: _name,\n ...safeAnchorProps\n } = anchorProps as typeof anchorProps & {\n disabled?: boolean;\n type?: 'button' | 'submit' | 'reset';\n name?: string;\n };\n\n const target = safeAnchorProps.target;\n const rel = safeAnchorProps.rel;\n const shouldHardenRel = target?.toLowerCase() === '_blank';\n const relTokens = new Set(\n (rel ?? '')\n .split(/\\s+/)\n .filter(Boolean)\n .map((token) => token.toLowerCase()),\n );\n\n if (shouldHardenRel) {\n relTokens.add('noopener');\n relTokens.add('noreferrer');\n }\n\n const hardenedRel = relTokens.size > 0 ? Array.from(relTokens).join(' ') : undefined;\n\n const linkProps = {\n ...safeAnchorProps,\n ref: ref as Ref<HTMLAnchorElement>,\n href,\n rel: hardenedRel,\n className: classes,\n 'aria-busy': loading || undefined,\n 'aria-disabled': loading || undefined,\n tabIndex: loading ? -1 : safeAnchorProps.tabIndex,\n onClick: loading\n ? (e: MouseEvent<HTMLAnchorElement>) => {\n e.preventDefault();\n e.stopPropagation();\n }\n : safeAnchorProps.onClick,\n children: content,\n };\n\n if (renderLink) {\n return <>{renderLink(linkProps)}</>;\n }\n\n return <a {...linkProps} />;\n }\n\n const {\n type = 'button',\n disabled,\n onClick,\n href: _href,\n target: _target,\n rel: _rel,\n renderLink: _renderLink,\n ...buttonProps\n } = props as Omit<\n typeof props,\n 'icon' | 'iconPosition' | 'size' | 'loading' | 'href' | 'linkColoring'\n > & {\n type?: 'button' | 'submit' | 'reset';\n disabled?: boolean;\n href?: string;\n target?: string;\n rel?: string;\n renderLink?: unknown;\n };\n\n return (\n <button\n ref={ref as Ref<HTMLButtonElement>}\n type={type}\n disabled={disabled || loading}\n className={classes}\n aria-disabled={loading || undefined}\n aria-busy={loading || undefined}\n onClick={\n loading\n ? (e) => {\n e.preventDefault();\n e.stopPropagation();\n }\n : onClick\n }\n {...buttonProps}\n >\n {content}\n </button>\n );\n};\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,aAAa,CAAC;AAAA,EACv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MACX,iBAAe,WAAW;AAAA,MAC1B,aAAW,WAAW;AAAA,MACtB,SACI,UACM,CAAC,MAAM;AACH,UAAE,eAAA;AACF,UAAE,gBAAA;AAAA,MACN,IACA;AAAA,MAET,GAAG;AAAA,MAEH,UAAA;AAAA,IAAA;AAAA,EAAA;AAGb;"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
require('./IconButton.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
const styles = {
|
|
4
|
-
"icon-button": "_icon-
|
|
5
|
-
"icon-button--normal": "_icon-button--
|
|
6
|
-
"icon-button--small": "_icon-button--
|
|
7
|
-
"icon-button__label": "_icon-
|
|
8
|
-
"icon-
|
|
9
|
-
"icon-
|
|
10
|
-
"icon-button--
|
|
11
|
-
"icon-button--
|
|
12
|
-
"icon-button--
|
|
13
|
-
"icon-button--loading": "_icon-button--loading_1dpxf_105"
|
|
4
|
+
"icon-button": "_icon-button_1iv9h_1",
|
|
5
|
+
"icon-button--normal": "_icon-button--normal_1iv9h_23",
|
|
6
|
+
"icon-button--small": "_icon-button--small_1iv9h_28",
|
|
7
|
+
"icon-button__label": "_icon-button__label_1iv9h_33",
|
|
8
|
+
"icon-button__label--wrap": "_icon-button__label--wrap_1iv9h_45",
|
|
9
|
+
"icon-button__icon": "_icon-button__icon_1iv9h_53",
|
|
10
|
+
"icon-button--link-coloring": "_icon-button--link-coloring_1iv9h_85",
|
|
11
|
+
"icon-button--disabled": "_icon-button--disabled_1iv9h_111",
|
|
12
|
+
"icon-button--loading": "_icon-button--loading_1iv9h_112"
|
|
14
13
|
};
|
|
15
14
|
module.exports = styles;
|
|
16
15
|
//# sourceMappingURL=IconButton.module.css.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IconButton.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import './IconButton.css';
|
|
2
2
|
const styles = {
|
|
3
|
-
"icon-button": "_icon-
|
|
4
|
-
"icon-button--normal": "_icon-button--
|
|
5
|
-
"icon-button--small": "_icon-button--
|
|
6
|
-
"icon-button__label": "_icon-
|
|
7
|
-
"icon-
|
|
8
|
-
"icon-
|
|
9
|
-
"icon-button--
|
|
10
|
-
"icon-button--
|
|
11
|
-
"icon-button--
|
|
12
|
-
"icon-button--loading": "_icon-button--loading_1dpxf_105"
|
|
3
|
+
"icon-button": "_icon-button_1iv9h_1",
|
|
4
|
+
"icon-button--normal": "_icon-button--normal_1iv9h_23",
|
|
5
|
+
"icon-button--small": "_icon-button--small_1iv9h_28",
|
|
6
|
+
"icon-button__label": "_icon-button__label_1iv9h_33",
|
|
7
|
+
"icon-button__label--wrap": "_icon-button__label--wrap_1iv9h_45",
|
|
8
|
+
"icon-button__icon": "_icon-button__icon_1iv9h_53",
|
|
9
|
+
"icon-button--link-coloring": "_icon-button--link-coloring_1iv9h_85",
|
|
10
|
+
"icon-button--disabled": "_icon-button--disabled_1iv9h_111",
|
|
11
|
+
"icon-button--loading": "_icon-button--loading_1iv9h_112"
|
|
13
12
|
};
|
|
14
13
|
export {
|
|
15
14
|
styles as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IconButton.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ComponentType, ReactNode, SVGProps } from 'react';
|
|
2
|
-
export type IconButtonVariant = 'default' | 'link';
|
|
3
2
|
export type IconPosition = 'start' | 'end';
|
|
4
3
|
export type IconButtonSize = 'normal' | 'small';
|
|
4
|
+
export type IconButtonLabelBehavior = 'truncate' | 'wrap';
|
|
5
5
|
export type Icon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
6
6
|
export interface IconButtonLinkProps extends ComponentPropsWithRef<'a'> {
|
|
7
7
|
readonly href: string;
|
|
8
8
|
readonly children: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Visual variant for text/icon coloring.
|
|
13
|
-
* @default 'default'
|
|
14
|
-
*/
|
|
15
|
-
readonly variant?: IconButtonVariant;
|
|
16
|
-
/** Icon component (for example, `ChevronRight` from `@dnanpm/icons`). */
|
|
17
|
-
readonly icon: Icon;
|
|
10
|
+
type IconButtonBaseProps = {
|
|
18
11
|
/** Visible label content used as the button/link accessible name. */
|
|
19
12
|
readonly children: ReactNode;
|
|
13
|
+
/** Icon component (for example, `ChevronRight` from `@dnanpm/icons`). */
|
|
14
|
+
readonly icon: Icon;
|
|
20
15
|
/**
|
|
21
16
|
* Position of the icon relative to label text.
|
|
22
17
|
* @default 'start'
|
|
23
18
|
*/
|
|
24
19
|
readonly iconPosition?: IconPosition;
|
|
20
|
+
/**
|
|
21
|
+
* Controls how the text label behaves in narrow layouts.
|
|
22
|
+
* @default 'truncate'
|
|
23
|
+
*/
|
|
24
|
+
readonly labelBehavior?: IconButtonLabelBehavior;
|
|
25
25
|
/**
|
|
26
26
|
* Size variant controlling typography and icon size.
|
|
27
27
|
* @default 'normal'
|
|
@@ -33,7 +33,12 @@ interface IconButtonBaseProps {
|
|
|
33
33
|
* @default false
|
|
34
34
|
*/
|
|
35
35
|
readonly loading?: boolean;
|
|
36
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Applies link coloring to text and icon.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
readonly linkColoring?: boolean;
|
|
41
|
+
};
|
|
37
42
|
export type IconButtonAsButton = IconButtonBaseProps & Omit<ComponentPropsWithRef<'button'>, keyof IconButtonBaseProps> & {
|
|
38
43
|
readonly href?: never;
|
|
39
44
|
readonly target?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEvF,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"IconButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEvF,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,CAAC;AAC3C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAChD,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,MAAM,CAAC;AAC1D,MAAM,MAAM,IAAI,GAAG,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAE1D,MAAM,WAAW,mBAAoB,SAAQ,qBAAqB,CAAC,GAAG,CAAC;IACnE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAChC;AAED,KAAK,mBAAmB,GAAG;IACvB,qEAAqE;IACrE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,yEAAyE;IACzE,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;IACrC;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACjD;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAChD,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,MAAM,mBAAmB,CAAC,GAAG;IAC/D,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;CAC/B,CAAC;AAEN,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAChD,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,mBAAmB,CAAC,GAAG;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,SAAS,CAAC;CACnE,CAAC;AAEN,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG,kBAAkB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { IconButton } from './IconButton';
|
|
2
|
-
export type { Icon, IconPosition, IconButtonLinkProps, IconButtonProps, IconButtonSize,
|
|
2
|
+
export type { Icon, IconPosition, IconButtonLinkProps, IconButtonProps, IconButtonSize, } from './IconButton.types';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACR,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACR,IAAI,EACJ,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,GACjB,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
@layer dds-components {.
|
|
1
|
+
@layer dds-components {._label_7ugso_1 {
|
|
2
|
+
--_label-height: 22px;
|
|
3
|
+
|
|
2
4
|
display: inline-block;
|
|
5
|
+
height: var(--_label-height);
|
|
3
6
|
max-width: 100%;
|
|
4
|
-
padding:
|
|
7
|
+
padding: 0 var(--spacing-space-20);
|
|
5
8
|
border-radius: var(--radius-semantic-full);
|
|
6
9
|
font: var(--typography-label-md-bold);
|
|
10
|
+
/* exception: override line-height from font shorthand to lock height (22px) — prevents element height drift when text truncates */
|
|
11
|
+
line-height: var(--_label-height);
|
|
7
12
|
text-align: center;
|
|
8
13
|
text-transform: uppercase;
|
|
9
14
|
white-space: nowrap;
|
|
@@ -12,27 +17,27 @@
|
|
|
12
17
|
color: var(--color-semantic-foreground-default);
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
._label--
|
|
20
|
+
._label--default_7ugso_20 {
|
|
16
21
|
background-color: var(--color-semantic-surface-base);
|
|
17
22
|
}
|
|
18
23
|
|
|
19
|
-
._label--
|
|
24
|
+
._label--campaign_7ugso_24 {
|
|
20
25
|
background-color: var(--color-semantic-surface-primary-mid);
|
|
21
26
|
}
|
|
22
27
|
|
|
23
|
-
._label--
|
|
28
|
+
._label--new_7ugso_28 {
|
|
24
29
|
background-color: var(--color-semantic-accent-lemon-strong);
|
|
25
30
|
}
|
|
26
31
|
|
|
27
|
-
._label--
|
|
32
|
+
._label--presale_7ugso_32 {
|
|
28
33
|
background-color: var(--color-semantic-accent-orange-strong);
|
|
29
34
|
}
|
|
30
35
|
|
|
31
|
-
._label--
|
|
36
|
+
._label--soldout_7ugso_36 {
|
|
32
37
|
background-color: var(--color-semantic-surface-neutral-strong);
|
|
33
38
|
}
|
|
34
39
|
|
|
35
|
-
._label--
|
|
40
|
+
._label--other_7ugso_40 {
|
|
36
41
|
background-color: var(--color-semantic-accent-sky-strong);
|
|
37
42
|
}
|
|
38
43
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
require('./Label.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const label = "
|
|
4
|
+
const label = "_label_7ugso_1";
|
|
5
5
|
const styles = {
|
|
6
6
|
label,
|
|
7
|
-
"label--default": "_label--
|
|
8
|
-
"label--campaign": "_label--
|
|
9
|
-
"label--new": "_label--
|
|
10
|
-
"label--presale": "_label--
|
|
11
|
-
"label--soldout": "_label--
|
|
12
|
-
"label--other": "_label--
|
|
7
|
+
"label--default": "_label--default_7ugso_20",
|
|
8
|
+
"label--campaign": "_label--campaign_7ugso_24",
|
|
9
|
+
"label--new": "_label--new_7ugso_28",
|
|
10
|
+
"label--presale": "_label--presale_7ugso_32",
|
|
11
|
+
"label--soldout": "_label--soldout_7ugso_36",
|
|
12
|
+
"label--other": "_label--other_7ugso_40"
|
|
13
13
|
};
|
|
14
14
|
exports.default = styles;
|
|
15
15
|
exports.label = label;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './Label.css';
|
|
2
|
-
const label = "
|
|
2
|
+
const label = "_label_7ugso_1";
|
|
3
3
|
const styles = {
|
|
4
4
|
label,
|
|
5
|
-
"label--default": "_label--
|
|
6
|
-
"label--campaign": "_label--
|
|
7
|
-
"label--new": "_label--
|
|
8
|
-
"label--presale": "_label--
|
|
9
|
-
"label--soldout": "_label--
|
|
10
|
-
"label--other": "_label--
|
|
5
|
+
"label--default": "_label--default_7ugso_20",
|
|
6
|
+
"label--campaign": "_label--campaign_7ugso_24",
|
|
7
|
+
"label--new": "_label--new_7ugso_28",
|
|
8
|
+
"label--presale": "_label--presale_7ugso_32",
|
|
9
|
+
"label--soldout": "_label--soldout_7ugso_36",
|
|
10
|
+
"label--other": "_label--other_7ugso_40"
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
13
|
styles as default,
|
|
@@ -5,35 +5,35 @@
|
|
|
5
5
|
* These variables come from @dnanpm/design-tokens package.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
.
|
|
8
|
+
._notification_m746g_8 {
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
|
-
gap: var(--spacing-
|
|
12
|
-
padding-right: var(--spacing-
|
|
11
|
+
gap: var(--spacing-space-16);
|
|
12
|
+
padding-right: var(--spacing-space-20);
|
|
13
13
|
border: 2px solid var(--notification-color);
|
|
14
14
|
border-radius: var(--radius-semantic-sm);
|
|
15
15
|
overflow: clip;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/* Variant colors */
|
|
19
|
-
._notification--
|
|
19
|
+
._notification--info_m746g_19 {
|
|
20
20
|
--notification-color: var(--color-semantic-status-info);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
._notification--
|
|
23
|
+
._notification--success_m746g_23 {
|
|
24
24
|
--notification-color: var(--color-semantic-status-success);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
._notification--
|
|
27
|
+
._notification--warning_m746g_27 {
|
|
28
28
|
--notification-color: var(--color-semantic-status-warning);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
._notification--
|
|
31
|
+
._notification--error_m746g_31 {
|
|
32
32
|
--notification-color: var(--color-semantic-status-error);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* Icon container */
|
|
36
|
-
._notification__icon-
|
|
36
|
+
._notification__icon-container_m746g_36 {
|
|
37
37
|
/* The colored area size should be 48x48px on one line content, so we adjust padding based on whether the border is present or not */
|
|
38
38
|
--_icon-padding-with-border: 10px;
|
|
39
39
|
--_icon-padding-without-border: 12px;
|
|
@@ -49,24 +49,24 @@
|
|
|
49
49
|
color: var(--color-semantic-foreground-inverse);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.
|
|
52
|
+
._notification__icon_m746g_36 {
|
|
53
53
|
width: 24px;
|
|
54
54
|
height: 24px;
|
|
55
55
|
flex: 0 0 auto;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/* Content */
|
|
59
|
-
.
|
|
59
|
+
._notification__content_m746g_59 {
|
|
60
60
|
flex: 1 1 auto;
|
|
61
61
|
min-width: 0;
|
|
62
|
-
padding: var(--spacing-
|
|
62
|
+
padding: var(--spacing-space-8) 0;
|
|
63
63
|
font: var(--typography-body-md);
|
|
64
64
|
color: var(--color-semantic-foreground-default);
|
|
65
65
|
text-wrap: pretty;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/* Close button */
|
|
69
|
-
.
|
|
69
|
+
._notification__close_m746g_69 {
|
|
70
70
|
flex: 0 0 auto;
|
|
71
71
|
display: flex;
|
|
72
72
|
align-items: center;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
height: 32px;
|
|
76
76
|
padding: 0;
|
|
77
77
|
/* Negative margin to offset the button's size and maintain consistent spacing with the content */
|
|
78
|
-
margin: 0 calc(var(--spacing-
|
|
78
|
+
margin: 0 calc(var(--spacing-space-4) * -1);
|
|
79
79
|
border: none;
|
|
80
80
|
border-radius: var(--radius-semantic-sm);
|
|
81
81
|
background: none;
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
cursor: pointer;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.
|
|
86
|
+
._notification__close_m746g_69 svg {
|
|
87
87
|
width: 24px;
|
|
88
88
|
height: 24px;
|
|
89
89
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
require('./Notification.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const notification = "
|
|
5
|
-
const notification__icon = "
|
|
6
|
-
const notification__content = "
|
|
7
|
-
const notification__close = "
|
|
4
|
+
const notification = "_notification_m746g_8";
|
|
5
|
+
const notification__icon = "_notification__icon_m746g_36";
|
|
6
|
+
const notification__content = "_notification__content_m746g_59";
|
|
7
|
+
const notification__close = "_notification__close_m746g_69";
|
|
8
8
|
const styles = {
|
|
9
9
|
notification,
|
|
10
|
-
"notification--info": "_notification--
|
|
11
|
-
"notification--success": "_notification--
|
|
12
|
-
"notification--warning": "_notification--
|
|
13
|
-
"notification--error": "_notification--
|
|
14
|
-
"notification__icon-container": "_notification__icon-
|
|
10
|
+
"notification--info": "_notification--info_m746g_19",
|
|
11
|
+
"notification--success": "_notification--success_m746g_23",
|
|
12
|
+
"notification--warning": "_notification--warning_m746g_27",
|
|
13
|
+
"notification--error": "_notification--error_m746g_31",
|
|
14
|
+
"notification__icon-container": "_notification__icon-container_m746g_36",
|
|
15
15
|
notification__icon,
|
|
16
16
|
notification__content,
|
|
17
17
|
notification__close
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import './Notification.css';
|
|
2
|
-
const notification = "
|
|
3
|
-
const notification__icon = "
|
|
4
|
-
const notification__content = "
|
|
5
|
-
const notification__close = "
|
|
2
|
+
const notification = "_notification_m746g_8";
|
|
3
|
+
const notification__icon = "_notification__icon_m746g_36";
|
|
4
|
+
const notification__content = "_notification__content_m746g_59";
|
|
5
|
+
const notification__close = "_notification__close_m746g_69";
|
|
6
6
|
const styles = {
|
|
7
7
|
notification,
|
|
8
|
-
"notification--info": "_notification--
|
|
9
|
-
"notification--success": "_notification--
|
|
10
|
-
"notification--warning": "_notification--
|
|
11
|
-
"notification--error": "_notification--
|
|
12
|
-
"notification__icon-container": "_notification__icon-
|
|
8
|
+
"notification--info": "_notification--info_m746g_19",
|
|
9
|
+
"notification--success": "_notification--success_m746g_23",
|
|
10
|
+
"notification--warning": "_notification--warning_m746g_27",
|
|
11
|
+
"notification--error": "_notification--error_m746g_31",
|
|
12
|
+
"notification__icon-container": "_notification__icon-container_m746g_36",
|
|
13
13
|
notification__icon,
|
|
14
14
|
notification__content,
|
|
15
15
|
notification__close
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type { NotificationProps, NotificationVariant } from './components/Notifi
|
|
|
19
19
|
export type { LabelProps, LabelVariant } from './components/Label';
|
|
20
20
|
export type { PictographItemProps, PictographProps } from './components/Pictograph';
|
|
21
21
|
export type { SpinnerColor, SpinnerProps, SpinnerSize } from './components/Spinner';
|
|
22
|
-
export type { Icon, IconPosition, IconButtonLinkProps, IconButtonProps, IconButtonSize,
|
|
22
|
+
export type { Icon, IconPosition, IconButtonLinkProps, IconButtonProps, IconButtonSize, } from './components/IconButton';
|
|
23
23
|
export { cn } from './utils';
|
|
24
24
|
export type { CnDictionary, CnInput } from './utils';
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAG5B,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAA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EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
@layer dds-components {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
._elevationLow_4gnft_6 {
|
|
7
|
-
--_elevation-semantic-low: 0px 2px 16px 0px rgba(18, 18, 18, 0.06);
|
|
8
|
-
--_elevation-style: var(--_elevation-semantic-low);
|
|
1
|
+
@layer dds-components {._elevationLow_dspr0_1 {
|
|
2
|
+
--_elevation-style: var(--elevation-semantic-elevation-low-offset-x)
|
|
3
|
+
var(--elevation-semantic-elevation-low-offset-y)
|
|
4
|
+
var(--elevation-semantic-elevation-low-blur) var(--elevation-semantic-elevation-low-spread)
|
|
5
|
+
var(--elevation-semantic-elevation-low-color);
|
|
9
6
|
}
|
|
10
7
|
|
|
11
|
-
.
|
|
12
|
-
--_elevation-
|
|
13
|
-
|
|
8
|
+
._elevationMedium_dspr0_8 {
|
|
9
|
+
--_elevation-style: var(--elevation-semantic-elevation-medium-offset-x)
|
|
10
|
+
var(--elevation-semantic-elevation-medium-offset-y)
|
|
11
|
+
var(--elevation-semantic-elevation-medium-blur)
|
|
12
|
+
var(--elevation-semantic-elevation-medium-spread)
|
|
13
|
+
var(--elevation-semantic-elevation-medium-color);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
17
|
-
--_elevation-semantic-
|
|
18
|
-
|
|
16
|
+
._elevationHigh_dspr0_16 {
|
|
17
|
+
--_elevation-style: var(--elevation-semantic-elevation-high-offset-x)
|
|
18
|
+
var(--elevation-semantic-elevation-high-offset-y)
|
|
19
|
+
var(--elevation-semantic-elevation-high-blur)
|
|
20
|
+
var(--elevation-semantic-elevation-high-spread)
|
|
21
|
+
var(--elevation-semantic-elevation-high-color);
|
|
19
22
|
}
|
|
20
23
|
|
|
21
|
-
.
|
|
22
|
-
.
|
|
23
|
-
.
|
|
24
|
+
._elevationLow_dspr0_1,
|
|
25
|
+
._elevationMedium_dspr0_8,
|
|
26
|
+
._elevationHigh_dspr0_16 {
|
|
24
27
|
border: var(--borderwidth-semantic-xs) solid var(--color-semantic-border-neutral-base);
|
|
25
28
|
box-shadow: var(--_elevation-style);
|
|
26
29
|
border-radius: var(--radius-semantic-md);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
require('./elevation.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const elevationLow = "
|
|
5
|
-
const
|
|
4
|
+
const elevationLow = "_elevationLow_dspr0_1";
|
|
5
|
+
const elevationHigh = "_elevationHigh_dspr0_16";
|
|
6
6
|
const elevationStyles = {
|
|
7
7
|
elevationLow,
|
|
8
|
-
|
|
8
|
+
elevationHigh
|
|
9
9
|
};
|
|
10
10
|
exports.default = elevationStyles;
|
|
11
|
-
exports.
|
|
11
|
+
exports.elevationHigh = elevationHigh;
|
|
12
12
|
exports.elevationLow = elevationLow;
|
|
13
13
|
//# sourceMappingURL=elevation.module.css.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './elevation.css';
|
|
2
|
-
const elevationLow = "
|
|
3
|
-
const
|
|
2
|
+
const elevationLow = "_elevationLow_dspr0_1";
|
|
3
|
+
const elevationHigh = "_elevationHigh_dspr0_16";
|
|
4
4
|
const elevationStyles = {
|
|
5
5
|
elevationLow,
|
|
6
|
-
|
|
6
|
+
elevationHigh
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
elevationStyles as default,
|
|
10
|
-
|
|
10
|
+
elevationHigh,
|
|
11
11
|
elevationLow
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=elevation.module.css.js.map
|