@dnanpm/ui-components 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.css +1 -1
- package/dist/components/AccordionItem/AccordionItem.css +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.css +1 -1
- package/dist/components/Button/Button.css +36 -30
- 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 +74 -0
- package/dist/components/Hero/Hero.cjs.map +1 -0
- package/dist/components/Hero/Hero.css +245 -0
- package/dist/components/Hero/Hero.d.ts +3 -0
- package/dist/components/Hero/Hero.d.ts.map +1 -0
- package/dist/components/Hero/Hero.js +74 -0
- package/dist/components/Hero/Hero.js.map +1 -0
- package/dist/components/Hero/Hero.module.css.cjs +54 -0
- package/dist/components/Hero/Hero.module.css.cjs.map +1 -0
- package/dist/components/Hero/Hero.module.css.js +54 -0
- package/dist/components/Hero/Hero.module.css.js.map +1 -0
- package/dist/components/Hero/Hero.types.d.ts +55 -0
- package/dist/components/Hero/Hero.types.d.ts.map +1 -0
- package/dist/components/Hero/Hero.utils.cjs +12 -0
- package/dist/components/Hero/Hero.utils.cjs.map +1 -0
- package/dist/components/Hero/Hero.utils.d.ts +3 -0
- package/dist/components/Hero/Hero.utils.d.ts.map +1 -0
- package/dist/components/Hero/Hero.utils.js +12 -0
- package/dist/components/Hero/Hero.utils.js.map +1 -0
- package/dist/components/Hero/index.d.ts +3 -0
- package/dist/components/Hero/index.d.ts.map +1 -0
- package/dist/components/Label/Label.css +1 -1
- package/dist/components/Notification/Notification.css +1 -1
- package/dist/components/Pictograph/Pictograph.cjs +33 -0
- package/dist/components/Pictograph/Pictograph.cjs.map +1 -0
- package/dist/components/Pictograph/Pictograph.css +190 -0
- package/dist/components/Pictograph/Pictograph.d.ts +3 -0
- package/dist/components/Pictograph/Pictograph.d.ts.map +1 -0
- package/dist/components/Pictograph/Pictograph.js +33 -0
- package/dist/components/Pictograph/Pictograph.js.map +1 -0
- package/dist/components/Pictograph/Pictograph.module.css.cjs +22 -0
- package/dist/components/Pictograph/Pictograph.module.css.cjs.map +1 -0
- package/dist/components/Pictograph/Pictograph.module.css.js +22 -0
- package/dist/components/Pictograph/Pictograph.module.css.js.map +1 -0
- package/dist/components/Pictograph/Pictograph.types.d.ts +46 -0
- package/dist/components/Pictograph/Pictograph.types.d.ts.map +1 -0
- package/dist/components/Pictograph/PictographItem.cjs +19 -0
- package/dist/components/Pictograph/PictographItem.cjs.map +1 -0
- package/dist/components/Pictograph/PictographItem.css +63 -0
- package/dist/components/Pictograph/PictographItem.d.ts +3 -0
- package/dist/components/Pictograph/PictographItem.d.ts.map +1 -0
- package/dist/components/Pictograph/PictographItem.js +19 -0
- package/dist/components/Pictograph/PictographItem.js.map +1 -0
- package/dist/components/Pictograph/PictographItem.module.css.cjs +9 -0
- package/dist/components/Pictograph/PictographItem.module.css.cjs.map +1 -0
- package/dist/components/Pictograph/PictographItem.module.css.js +10 -0
- package/dist/components/Pictograph/PictographItem.module.css.js.map +1 -0
- package/dist/components/Pictograph/index.d.ts +4 -0
- package/dist/components/Pictograph/index.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.css +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/utils/elevation.css +1 -1
- package/dist/styles/utils/elevation.module.css.cjs +4 -1
- package/dist/styles/utils/elevation.module.css.cjs.map +1 -1
- package/dist/styles/utils/elevation.module.css.js +4 -1
- package/dist/styles/utils/elevation.module.css.js.map +1 -1
- package/dist/styles/utils/focus.css +1 -1
- package/dist/styles/utils/text-decoration.css +1 -1
- package/dist/styles.css +32 -16
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import './Pictograph.css';
|
|
2
|
+
const pictograph = "_pictograph_11vg9_16";
|
|
3
|
+
const pictograph__list = "_pictograph__list_11vg9_39";
|
|
4
|
+
const styles = {
|
|
5
|
+
pictograph,
|
|
6
|
+
"pictograph--vertical": "_pictograph--vertical_11vg9_32",
|
|
7
|
+
pictograph__list,
|
|
8
|
+
"pictograph__list--5": "_pictograph__list--5_11vg9_50",
|
|
9
|
+
"pictograph__list--2": "_pictograph__list--2_11vg9_56",
|
|
10
|
+
"pictograph__list--3": "_pictograph__list--3_11vg9_57",
|
|
11
|
+
"pictograph__list--4": "_pictograph__list--4_11vg9_58",
|
|
12
|
+
"pictograph--horizontal": "_pictograph--horizontal_11vg9_83",
|
|
13
|
+
"pictograph--centered": "_pictograph--centered_11vg9_123",
|
|
14
|
+
"pictograph--icon-small": "_pictograph--icon-small_11vg9_133",
|
|
15
|
+
"pictograph--icon-large": "_pictograph--icon-large_11vg9_145"
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
styles as default,
|
|
19
|
+
pictograph,
|
|
20
|
+
pictograph__list
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=Pictograph.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pictograph.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
export interface PictographProps extends ComponentPropsWithRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Size of the icon area in each item.
|
|
5
|
+
* - `small`: 40px (52px on tablet and above)
|
|
6
|
+
* - `large`: 52px (72px on tablet and above)
|
|
7
|
+
* @default 'small'
|
|
8
|
+
*/
|
|
9
|
+
readonly iconSize?: 'small' | 'large';
|
|
10
|
+
/**
|
|
11
|
+
* Alignment of icon and text within items.
|
|
12
|
+
* - In horizontal mode: controls vertical alignment between icon and text
|
|
13
|
+
* (`start` = tops aligned, `center` = vertically centered). Text is always left-aligned.
|
|
14
|
+
* - In vertical mode: controls horizontal alignment of icon and text
|
|
15
|
+
* (`start` = left-aligned, `center` = centered with centered text).
|
|
16
|
+
* @default 'center'
|
|
17
|
+
*/
|
|
18
|
+
readonly alignment?: 'start' | 'center';
|
|
19
|
+
/**
|
|
20
|
+
* Layout direction of icon relative to text within each item.
|
|
21
|
+
* - `horizontal`: icon and text side by side
|
|
22
|
+
* - `vertical`: icon above text
|
|
23
|
+
* @default 'horizontal'
|
|
24
|
+
*/
|
|
25
|
+
readonly mode?: 'horizontal' | 'vertical';
|
|
26
|
+
/**
|
|
27
|
+
* Number of columns in the grid layout (1–5) in desktop view. Columns are automatically adjusted based on available layout width.
|
|
28
|
+
* @default 3
|
|
29
|
+
*/
|
|
30
|
+
readonly columns?: 1 | 2 | 3 | 4 | 5;
|
|
31
|
+
/**
|
|
32
|
+
* PictographItem elements to render.
|
|
33
|
+
*/
|
|
34
|
+
readonly children: ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export interface PictographItemProps extends ComponentPropsWithRef<'li'> {
|
|
37
|
+
/**
|
|
38
|
+
* SVG icon element. Rendered as decorative with aria-hidden="true".
|
|
39
|
+
*/
|
|
40
|
+
readonly icon: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Text content for the pictograph item.
|
|
43
|
+
*/
|
|
44
|
+
readonly children: ReactNode;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=Pictograph.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pictograph.types.d.ts","sourceRoot":"","sources":["../../../src/components/Pictograph/Pictograph.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9D,MAAM,WAAW,eAAgB,SAAQ,qBAAqB,CAAC,KAAK,CAAC;IACjE;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACtC;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACxC;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAC1C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,mBAAoB,SAAQ,qBAAqB,CAAC,IAAI,CAAC;IACpE;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAChC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const PictographItem_module = require("./PictographItem.module.css.cjs");
|
|
5
|
+
const cn = require("../../utils/cn/cn.cjs");
|
|
6
|
+
const PictographItem = ({
|
|
7
|
+
icon,
|
|
8
|
+
children,
|
|
9
|
+
className,
|
|
10
|
+
ref,
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("li", { ref, className: cn.cn(PictographItem_module["pictograph-item"], className), ...props, children: [
|
|
14
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: PictographItem_module["pictograph-item__icon"], "aria-hidden": "true", children: icon }),
|
|
15
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: PictographItem_module["pictograph-item__text"], children })
|
|
16
|
+
] });
|
|
17
|
+
};
|
|
18
|
+
exports.PictographItem = PictographItem;
|
|
19
|
+
//# sourceMappingURL=PictographItem.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictographItem.cjs","sources":["../../../src/components/Pictograph/PictographItem.tsx"],"sourcesContent":["import { cn } from '../../utils/cn';\nimport styles from './PictographItem.module.css';\nimport type { PictographItemProps } from './Pictograph.types';\n\nexport const PictographItem = ({\n icon,\n children,\n className,\n ref,\n ...props\n}: PictographItemProps) => {\n return (\n <li ref={ref} className={cn(styles['pictograph-item'], className)} {...props}>\n <span className={styles['pictograph-item__icon']} aria-hidden=\"true\">\n {icon}\n </span>\n <div className={styles['pictograph-item__text']}>{children}</div>\n </li>\n );\n};\n"],"names":["jsxs","cn","styles","jsx"],"mappings":";;;;;AAIO,MAAM,iBAAiB,CAAC;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAA2B;AACvB,SACIA,2BAAAA,KAAC,MAAA,EAAG,KAAU,WAAWC,GAAAA,GAAGC,sBAAO,iBAAiB,GAAG,SAAS,GAAI,GAAG,OACnE,UAAA;AAAA,IAAAC,2BAAAA,IAAC,UAAK,WAAWD,sBAAO,uBAAuB,GAAG,eAAY,QACzD,UAAA,MACL;AAAA,mCACC,OAAA,EAAI,WAAWA,sBAAO,uBAAuB,GAAI,SAAA,CAAS;AAAA,EAAA,GAC/D;AAER;;"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@layer dds-components {/**
|
|
2
|
+
* PictographItem Component Styles
|
|
3
|
+
*
|
|
4
|
+
* Individual pictograph item containing an icon and text area.
|
|
5
|
+
* Reads CSS custom properties from the parent Pictograph component
|
|
6
|
+
* for direction, alignment, icon sizing, and gap.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
._pictograph-item_1udd7_9 {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: var(--pictograph-direction);
|
|
12
|
+
align-items: var(--pictograph-align);
|
|
13
|
+
gap: var(--pictograph-item-gap);
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
._pictograph-item__icon_1udd7_17 {
|
|
18
|
+
flex: 0 0 auto;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
color: var(--pictograph-icon-color);
|
|
23
|
+
width: var(--pictograph-icon-size);
|
|
24
|
+
height: var(--pictograph-icon-size);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
._pictograph-item__icon_1udd7_17 svg {
|
|
28
|
+
fill: currentColor;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
max-width: none;
|
|
32
|
+
max-height: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
._pictograph-item__text_1udd7_35 {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 10px;
|
|
39
|
+
text-align: var(--pictograph-text-align);
|
|
40
|
+
text-wrap: balance;
|
|
41
|
+
color: var(--pictograph-text-color);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
._pictograph-item__text_1udd7_35 > *:not(dialog) {
|
|
45
|
+
margin-top: 0;
|
|
46
|
+
margin-bottom: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Single paragraph gets larger font */
|
|
50
|
+
._pictograph-item__text_1udd7_35 > p:only-child {
|
|
51
|
+
font: var(--typography-body-lg);
|
|
52
|
+
margin-bottom: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Headings inside text area */
|
|
56
|
+
._pictograph-item__text_1udd7_35 h1,
|
|
57
|
+
._pictograph-item__text_1udd7_35 h2,
|
|
58
|
+
._pictograph-item__text_1udd7_35 h3,
|
|
59
|
+
._pictograph-item__text_1udd7_35 h4,
|
|
60
|
+
._pictograph-item__text_1udd7_35 h5 {
|
|
61
|
+
font: var(--typography-heading-xs);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictographItem.d.ts","sourceRoot":"","sources":["../../../src/components/Pictograph/PictographItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,eAAO,MAAM,cAAc,GAAI,8CAM5B,mBAAmB,4CASrB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./PictographItem.module.css.js";
|
|
3
|
+
import { cn } from "../../utils/cn/cn.js";
|
|
4
|
+
const PictographItem = ({
|
|
5
|
+
icon,
|
|
6
|
+
children,
|
|
7
|
+
className,
|
|
8
|
+
ref,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
return /* @__PURE__ */ jsxs("li", { ref, className: cn(styles["pictograph-item"], className), ...props, children: [
|
|
12
|
+
/* @__PURE__ */ jsx("span", { className: styles["pictograph-item__icon"], "aria-hidden": "true", children: icon }),
|
|
13
|
+
/* @__PURE__ */ jsx("div", { className: styles["pictograph-item__text"], children })
|
|
14
|
+
] });
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
PictographItem
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=PictographItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictographItem.js","sources":["../../../src/components/Pictograph/PictographItem.tsx"],"sourcesContent":["import { cn } from '../../utils/cn';\nimport styles from './PictographItem.module.css';\nimport type { PictographItemProps } from './Pictograph.types';\n\nexport const PictographItem = ({\n icon,\n children,\n className,\n ref,\n ...props\n}: PictographItemProps) => {\n return (\n <li ref={ref} className={cn(styles['pictograph-item'], className)} {...props}>\n <span className={styles['pictograph-item__icon']} aria-hidden=\"true\">\n {icon}\n </span>\n <div className={styles['pictograph-item__text']}>{children}</div>\n </li>\n );\n};\n"],"names":[],"mappings":";;;AAIO,MAAM,iBAAiB,CAAC;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACP,MAA2B;AACvB,SACI,qBAAC,MAAA,EAAG,KAAU,WAAW,GAAG,OAAO,iBAAiB,GAAG,SAAS,GAAI,GAAG,OACnE,UAAA;AAAA,IAAA,oBAAC,UAAK,WAAW,OAAO,uBAAuB,GAAG,eAAY,QACzD,UAAA,MACL;AAAA,wBACC,OAAA,EAAI,WAAW,OAAO,uBAAuB,GAAI,SAAA,CAAS;AAAA,EAAA,GAC/D;AAER;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
require('./PictographItem.css');
|
|
2
|
+
"use strict";
|
|
3
|
+
const styles = {
|
|
4
|
+
"pictograph-item": "_pictograph-item_1udd7_9",
|
|
5
|
+
"pictograph-item__icon": "_pictograph-item__icon_1udd7_17",
|
|
6
|
+
"pictograph-item__text": "_pictograph-item__text_1udd7_35"
|
|
7
|
+
};
|
|
8
|
+
module.exports = styles;
|
|
9
|
+
//# sourceMappingURL=PictographItem.module.css.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictographItem.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import './PictographItem.css';
|
|
2
|
+
const styles = {
|
|
3
|
+
"pictograph-item": "_pictograph-item_1udd7_9",
|
|
4
|
+
"pictograph-item__icon": "_pictograph-item__icon_1udd7_17",
|
|
5
|
+
"pictograph-item__text": "_pictograph-item__text_1udd7_35"
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
styles as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=PictographItem.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PictographItem.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pictograph/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -6,8 +6,11 @@ const AccordionItem = require("./components/AccordionItem/AccordionItem.cjs");
|
|
|
6
6
|
const Breadcrumb = require("./components/Breadcrumb/Breadcrumb.cjs");
|
|
7
7
|
const Button = require("./components/Button/Button.cjs");
|
|
8
8
|
const ColorScheme = require("./components/ColorScheme/ColorScheme.cjs");
|
|
9
|
+
const Hero = require("./components/Hero/Hero.cjs");
|
|
9
10
|
const Label = require("./components/Label/Label.cjs");
|
|
10
11
|
const Notification = require("./components/Notification/Notification.cjs");
|
|
12
|
+
const Pictograph = require("./components/Pictograph/Pictograph.cjs");
|
|
13
|
+
const PictographItem = require("./components/Pictograph/PictographItem.cjs");
|
|
11
14
|
const Spinner = require("./components/Spinner/Spinner.cjs");
|
|
12
15
|
const cn = require("./utils/cn/cn.cjs");
|
|
13
16
|
exports.Accordion = Accordion.Accordion;
|
|
@@ -15,8 +18,11 @@ exports.AccordionItem = AccordionItem.AccordionItem;
|
|
|
15
18
|
exports.Breadcrumb = Breadcrumb.Breadcrumb;
|
|
16
19
|
exports.Button = Button.Button;
|
|
17
20
|
exports.ColorScheme = ColorScheme.ColorScheme;
|
|
21
|
+
exports.Hero = Hero.Hero;
|
|
18
22
|
exports.Label = Label.Label;
|
|
19
23
|
exports.Notification = Notification.Notification;
|
|
24
|
+
exports.Pictograph = Pictograph.Pictograph;
|
|
25
|
+
exports.PictographItem = PictographItem.PictographItem;
|
|
20
26
|
exports.Spinner = Spinner.Spinner;
|
|
21
27
|
exports.cn = cn.cn;
|
|
22
28
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,16 +3,20 @@ export { AccordionItem } from './components/AccordionItem';
|
|
|
3
3
|
export { Breadcrumb } from './components/Breadcrumb';
|
|
4
4
|
export { Button } from './components/Button';
|
|
5
5
|
export { ColorScheme } from './components/ColorScheme';
|
|
6
|
+
export { Hero } from './components/Hero';
|
|
6
7
|
export { Notification } from './components/Notification';
|
|
7
8
|
export { Label } from './components/Label';
|
|
9
|
+
export { Pictograph, PictographItem } from './components/Pictograph';
|
|
8
10
|
export { Spinner } from './components/Spinner';
|
|
9
11
|
export type { AccordionProps } from './components/Accordion';
|
|
10
12
|
export type { AccordionItemProps } from './components/AccordionItem';
|
|
11
13
|
export type { BreadcrumbItem, BreadcrumbLinkProps, BreadcrumbProps } from './components/Breadcrumb';
|
|
12
14
|
export type { ButtonProps, ButtonLinkProps, ButtonVariant, ButtonSize } from './components/Button';
|
|
13
15
|
export type { ColorSchemeProps, ColorSchemeValue } from './components/ColorScheme';
|
|
16
|
+
export type { HeroProps, HeroHeadingLevel, HeroCommonImageProps, HeroImageComponent, } from './components/Hero';
|
|
14
17
|
export type { NotificationProps, NotificationVariant } from './components/Notification';
|
|
15
18
|
export type { LabelProps, LabelVariant } from './components/Label';
|
|
19
|
+
export type { PictographItemProps, PictographProps } from './components/Pictograph';
|
|
16
20
|
export type { SpinnerColor, SpinnerProps, SpinnerSize } from './components/Spinner';
|
|
17
21
|
export { cn } from './utils';
|
|
18
22
|
export type { CnDictionary, CnInput } from './utils';
|
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,S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AS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,11 @@ import { AccordionItem } from "./components/AccordionItem/AccordionItem.js";
|
|
|
4
4
|
import { Breadcrumb } from "./components/Breadcrumb/Breadcrumb.js";
|
|
5
5
|
import { Button } from "./components/Button/Button.js";
|
|
6
6
|
import { ColorScheme } from "./components/ColorScheme/ColorScheme.js";
|
|
7
|
+
import { Hero } from "./components/Hero/Hero.js";
|
|
7
8
|
import { Label } from "./components/Label/Label.js";
|
|
8
9
|
import { Notification } from "./components/Notification/Notification.js";
|
|
10
|
+
import { Pictograph } from "./components/Pictograph/Pictograph.js";
|
|
11
|
+
import { PictographItem } from "./components/Pictograph/PictographItem.js";
|
|
9
12
|
import { Spinner } from "./components/Spinner/Spinner.js";
|
|
10
13
|
import { cn } from "./utils/cn/cn.js";
|
|
11
14
|
export {
|
|
@@ -14,8 +17,11 @@ export {
|
|
|
14
17
|
Breadcrumb,
|
|
15
18
|
Button,
|
|
16
19
|
ColorScheme,
|
|
20
|
+
Hero,
|
|
17
21
|
Label,
|
|
18
22
|
Notification,
|
|
23
|
+
Pictograph,
|
|
24
|
+
PictographItem,
|
|
19
25
|
Spinner,
|
|
20
26
|
cn
|
|
21
27
|
};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -2,9 +2,12 @@ require('./elevation.css');
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
4
|
const elevationLow = "_elevationLow_4gnft_6";
|
|
5
|
+
const elevationExtraHigh = "_elevationExtraHigh_4gnft_16";
|
|
5
6
|
const elevationStyles = {
|
|
6
|
-
elevationLow
|
|
7
|
+
elevationLow,
|
|
8
|
+
elevationExtraHigh
|
|
7
9
|
};
|
|
8
10
|
exports.default = elevationStyles;
|
|
11
|
+
exports.elevationExtraHigh = elevationExtraHigh;
|
|
9
12
|
exports.elevationLow = elevationLow;
|
|
10
13
|
//# sourceMappingURL=elevation.module.css.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevation.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"elevation.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import './elevation.css';
|
|
2
2
|
const elevationLow = "_elevationLow_4gnft_6";
|
|
3
|
+
const elevationExtraHigh = "_elevationExtraHigh_4gnft_16";
|
|
3
4
|
const elevationStyles = {
|
|
4
|
-
elevationLow
|
|
5
|
+
elevationLow,
|
|
6
|
+
elevationExtraHigh
|
|
5
7
|
};
|
|
6
8
|
export {
|
|
7
9
|
elevationStyles as default,
|
|
10
|
+
elevationExtraHigh,
|
|
8
11
|
elevationLow
|
|
9
12
|
};
|
|
10
13
|
//# sourceMappingURL=elevation.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"elevation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer dds-base {
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Do not edit directly, this file was auto-generated.
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
--color-semantic-surface-secondary-strong: #551c3e;
|
|
34
34
|
--color-semantic-surface-secondary-mid: #69214c;
|
|
35
35
|
--color-semantic-surface-secondary-soft: #792a59;
|
|
36
|
+
--color-semantic-surface-base-inverse: #121212;
|
|
36
37
|
--color-semantic-border-neutral-mid: #d4d2ce;
|
|
37
38
|
--color-semantic-border-neutral-soft: #e7e5e3;
|
|
38
39
|
--color-semantic-border-neutral-base: #efeeed;
|
|
@@ -84,6 +85,11 @@
|
|
|
84
85
|
--color-semantic-interactive-inverse-focus: #ffffff;
|
|
85
86
|
--color-semantic-interactive-inverse-active: rgba(255, 255, 255, 0.9);
|
|
86
87
|
--color-semantic-interactive-inverse-disabled: rgba(255, 255, 255, 0.3);
|
|
88
|
+
--color-semantic-interactive-auxiliary-default: #ffdbad;
|
|
89
|
+
--color-semantic-interactive-auxiliary-hover: #ffb557;
|
|
90
|
+
--color-semantic-interactive-auxiliary-focus: #ffb557;
|
|
91
|
+
--color-semantic-interactive-auxiliary-active: #ffdbad;
|
|
92
|
+
--color-semantic-interactive-auxiliary-disabled: rgba(255, 219, 173, 0.3);
|
|
87
93
|
--spacing-ui-md: 16px;
|
|
88
94
|
--spacing-ui-lg: 20px;
|
|
89
95
|
--spacing-ui-sm: 12px;
|
|
@@ -113,13 +119,13 @@
|
|
|
113
119
|
--borderwidth-semantic-xl: 5px;
|
|
114
120
|
--borderwidth-semantic-xxl: 6px;
|
|
115
121
|
--borderwidth-semantic-sm: 2px;
|
|
116
|
-
--typography-font-size-heading-xxxl: 64px;
|
|
117
122
|
--typography-font-size-heading-xxl: 48px;
|
|
118
|
-
--typography-font-size-heading-xl:
|
|
119
|
-
--typography-font-size-heading-lg:
|
|
120
|
-
--typography-font-size-heading-md:
|
|
121
|
-
--typography-font-size-heading-sm:
|
|
122
|
-
--typography-font-size-heading-xs:
|
|
123
|
+
--typography-font-size-heading-xl: 40px;
|
|
124
|
+
--typography-font-size-heading-lg: 34px;
|
|
125
|
+
--typography-font-size-heading-md: 28px;
|
|
126
|
+
--typography-font-size-heading-sm: 24px;
|
|
127
|
+
--typography-font-size-heading-xs: 20px;
|
|
128
|
+
--typography-font-size-heading-xxs: 18px;
|
|
123
129
|
--typography-font-size-text-lg: 20px;
|
|
124
130
|
--typography-font-size-text-md: 16px;
|
|
125
131
|
--typography-font-size-text-sm: 14px;
|
|
@@ -141,7 +147,7 @@
|
|
|
141
147
|
}
|
|
142
148
|
}
|
|
143
149
|
|
|
144
|
-
@layer
|
|
150
|
+
@layer dds-base {
|
|
145
151
|
|
|
146
152
|
*,
|
|
147
153
|
*::before,
|
|
@@ -173,7 +179,7 @@ video {
|
|
|
173
179
|
}
|
|
174
180
|
}
|
|
175
181
|
|
|
176
|
-
@layer
|
|
182
|
+
@layer dds-base {
|
|
177
183
|
|
|
178
184
|
/* ==========================================================================
|
|
179
185
|
Typography shorthand variables
|
|
@@ -190,7 +196,8 @@ video {
|
|
|
190
196
|
========================================================================== */
|
|
191
197
|
|
|
192
198
|
:root {
|
|
193
|
-
/*
|
|
199
|
+
/* Font-family with fallbacks — Figma tokens only contain the primary font name,
|
|
200
|
+
so we override here to add the full fallback stack for CSS. */
|
|
194
201
|
--typography-font-family-heading: 'DNA Heading', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
195
202
|
--typography-font-family-text: 'DNA Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
196
203
|
|
|
@@ -218,12 +225,18 @@ video {
|
|
|
218
225
|
var(--typography-font-family-text);
|
|
219
226
|
|
|
220
227
|
/* Body */
|
|
221
|
-
--typography-body-lg: var(--typography-font-weight-
|
|
228
|
+
--typography-body-lg: var(--typography-font-weight-regular)
|
|
229
|
+
clamp(1.125rem, 1.083rem + 0.208cqw, 1.25rem)/var(--typography-line-height-lg)
|
|
230
|
+
var(--typography-font-family-text);
|
|
231
|
+
--typography-body-lg-medium: var(--typography-font-weight-medium)
|
|
222
232
|
clamp(1.125rem, 1.083rem + 0.208cqw, 1.25rem)/var(--typography-line-height-lg)
|
|
223
233
|
var(--typography-font-family-text);
|
|
224
234
|
--typography-body-md: var(--typography-font-weight-regular)
|
|
225
235
|
var(--typography-font-size-text-md)/var(--typography-line-height-lg)
|
|
226
236
|
var(--typography-font-family-text);
|
|
237
|
+
--typography-body-md-medium: var(--typography-font-weight-medium)
|
|
238
|
+
var(--typography-font-size-text-md)/var(--typography-line-height-lg)
|
|
239
|
+
var(--typography-font-family-text);
|
|
227
240
|
--typography-body-md-bold: var(--typography-font-weight-bold)
|
|
228
241
|
var(--typography-font-size-text-md)/var(--typography-line-height-lg)
|
|
229
242
|
var(--typography-font-family-text);
|
|
@@ -321,16 +334,19 @@ small {
|
|
|
321
334
|
/*
|
|
322
335
|
* Design decision (ADR-003): base links are color-driven, not underlined.
|
|
323
336
|
* Long-form content uses .dds-prose which adds underline + external link icon.
|
|
337
|
+
*
|
|
338
|
+
* :where() gives these base styles zero specificity so component classes
|
|
339
|
+
* (e.g. Button rendered as <a>) always win without needing !important.
|
|
324
340
|
*/
|
|
325
|
-
a {
|
|
341
|
+
:where(a) {
|
|
326
342
|
color: var(--color-semantic-foreground-link);
|
|
327
343
|
text-decoration: none;
|
|
328
344
|
cursor: pointer;
|
|
329
345
|
transition: color 0.2s ease-in-out;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
346
|
+
}
|
|
347
|
+
:where(a:hover) {
|
|
348
|
+
color: var(--color-semantic-foreground-link-hover);
|
|
349
|
+
text-decoration: none;
|
|
334
350
|
}
|
|
335
351
|
|
|
336
352
|
ul {
|