@donotdev/components 0.0.3 → 0.0.5
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/atomic/CallToAction/index.d.ts +5 -0
- package/dist/atomic/CallToAction/index.d.ts.map +1 -1
- package/dist/atomic/CallToAction/index.js +3 -2
- package/dist/atomic/Card/index.d.ts +62 -6
- package/dist/atomic/Card/index.d.ts.map +1 -1
- package/dist/atomic/Card/index.js +66 -20
- package/dist/atomic/DualCard/index.d.ts +20 -24
- package/dist/atomic/DualCard/index.d.ts.map +1 -1
- package/dist/atomic/DualCard/index.js +7 -45
- package/dist/atomic/Grid/index.d.ts +25 -33
- package/dist/atomic/Grid/index.d.ts.map +1 -1
- package/dist/atomic/Grid/index.js +26 -29
- package/dist/atomic/HeroSection/index.d.ts +9 -46
- package/dist/atomic/HeroSection/index.d.ts.map +1 -1
- package/dist/atomic/HeroSection/index.js +6 -36
- package/dist/atomic/List/index.d.ts +7 -2
- package/dist/atomic/List/index.d.ts.map +1 -1
- package/dist/atomic/List/index.js +8 -4
- package/dist/atomic/Section/index.d.ts +32 -14
- package/dist/atomic/Section/index.d.ts.map +1 -1
- package/dist/atomic/Section/index.js +24 -12
- package/dist/atomic/Table/index.d.ts +2 -2
- package/dist/atomic/index.d.ts +3 -3
- package/dist/atomic/index.d.ts.map +1 -1
- package/dist/atomic/index.js +1 -1
- package/dist/index.js +4 -4
- package/dist/styles/index.css +255 -145
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,37 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview Hero Section Component
|
|
3
|
-
* @description
|
|
4
|
-
*
|
|
5
|
-
* Use utility class `dndev-max-w-none` to bypass width constraints.
|
|
3
|
+
* @description Punchy hero section with gradient title, subtitle, and optional children.
|
|
4
|
+
* Title always renders as h1 with maximum impact. Users who need different sizing make their own.
|
|
6
5
|
*
|
|
7
6
|
* **Polymorphic Component**: Can render as `section`, `header`, or `div` based on semantic needs.
|
|
8
|
-
* Defaults to `section` for semantic HTML. Use `header` for page headers with hero content.
|
|
9
7
|
*
|
|
10
8
|
* @example
|
|
11
9
|
* ```tsx
|
|
12
|
-
* // Standard hero section (default)
|
|
13
10
|
* <HeroSection
|
|
14
11
|
* title="Build Faster"
|
|
15
12
|
* subtitle="The ultimate framework"
|
|
16
13
|
* badge="New v2.0"
|
|
17
|
-
* variant="primary"
|
|
18
14
|
* >
|
|
19
15
|
* <Button>Get Started</Button>
|
|
20
16
|
* </HeroSection>
|
|
21
17
|
* ```
|
|
22
18
|
*
|
|
23
|
-
* @
|
|
24
|
-
* ```tsx
|
|
25
|
-
* // Page header with hero content
|
|
26
|
-
* <HeroSection
|
|
27
|
-
* as="header"
|
|
28
|
-
* title="Welcome"
|
|
29
|
-
* subtitle="Get started today"
|
|
30
|
-
* fullHeight
|
|
31
|
-
* />
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @version 0.0.3
|
|
19
|
+
* @version 0.0.4
|
|
35
20
|
* @since 0.0.1
|
|
36
21
|
* @author AMBROISE PARK Consulting
|
|
37
22
|
*/
|
|
@@ -41,40 +26,18 @@ import './HeroSection.css';
|
|
|
41
26
|
declare const heroSectionVariants: (props?: ({
|
|
42
27
|
variant?: "primary" | "accent" | "subtle" | null | undefined;
|
|
43
28
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
44
|
-
/**
|
|
45
|
-
* HeroSection-specific props (content and styling directives)
|
|
46
|
-
*/
|
|
47
29
|
interface HeroSectionOwnProps extends VariantProps<typeof heroSectionVariants> {
|
|
48
|
-
/**
|
|
49
|
-
* Element type to render as
|
|
50
|
-
* @default 'section'
|
|
51
|
-
* @example 'section' - Standard hero section (default)
|
|
52
|
-
* @example 'header' - Page header with hero content
|
|
53
|
-
* @example 'div' - Generic container when semantic meaning not needed
|
|
54
|
-
*/
|
|
30
|
+
/** Element type to render as @default 'section' */
|
|
55
31
|
as?: 'section' | 'header' | 'div';
|
|
56
32
|
/** Badge text */
|
|
57
33
|
badge?: string;
|
|
58
|
-
/** Hero title */
|
|
59
|
-
title?: string;
|
|
60
|
-
/**
|
|
61
|
-
|
|
62
|
-
* If provided, 'title' becomes desktop-only
|
|
63
|
-
*/
|
|
64
|
-
mobileTitle?: string;
|
|
65
|
-
/** Hero subtitle */
|
|
66
|
-
subtitle?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Mobile-specific hero subtitle (shown below 1024px)
|
|
69
|
-
* If provided, 'subtitle' becomes desktop-only
|
|
70
|
-
*/
|
|
71
|
-
mobileSubtitle?: string;
|
|
34
|
+
/** Hero title (renders as h1 with gradient) - string or ReactNode for Trans */
|
|
35
|
+
title?: string | ReactNode;
|
|
36
|
+
/** Hero subtitle - string or ReactNode for Trans */
|
|
37
|
+
subtitle?: string | ReactNode;
|
|
72
38
|
/** Full viewport height */
|
|
73
39
|
fullHeight?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Content alignment
|
|
76
|
-
* @default 'center'
|
|
77
|
-
*/
|
|
40
|
+
/** Content alignment @default 'center' */
|
|
78
41
|
align?: 'start' | 'center' | 'end';
|
|
79
42
|
/** Content */
|
|
80
43
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/HeroSection/index.tsx"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/HeroSection/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAOf,OAAO,mBAAmB,CAAC;AAE3B,QAAA,MAAM,mBAAmB;;8EAWvB,CAAC;AAEH,UAAU,mBAAoB,SAAQ,YAAY,CAAC,OAAO,mBAAmB,CAAC;IAC5E,mDAAmD;IACnD,EAAE,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;IAClC,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,cAAc;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,WAAW,GAAG,SAAS,IAC5D,mBAAmB,GACjB,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,mBAAmB,CAAC,CAAC;AAE9D,QAAA,MAAM,WAAW,kIA6DhB,CAAC;AAIF,eAAe,WAAW,CAAC"}
|
|
@@ -2,38 +2,23 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// packages/components/src/atomic/HeroSection/index.tsx
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Hero Section Component
|
|
5
|
-
* @description
|
|
6
|
-
*
|
|
7
|
-
* Use utility class `dndev-max-w-none` to bypass width constraints.
|
|
5
|
+
* @description Punchy hero section with gradient title, subtitle, and optional children.
|
|
6
|
+
* Title always renders as h1 with maximum impact. Users who need different sizing make their own.
|
|
8
7
|
*
|
|
9
8
|
* **Polymorphic Component**: Can render as `section`, `header`, or `div` based on semantic needs.
|
|
10
|
-
* Defaults to `section` for semantic HTML. Use `header` for page headers with hero content.
|
|
11
9
|
*
|
|
12
10
|
* @example
|
|
13
11
|
* ```tsx
|
|
14
|
-
* // Standard hero section (default)
|
|
15
12
|
* <HeroSection
|
|
16
13
|
* title="Build Faster"
|
|
17
14
|
* subtitle="The ultimate framework"
|
|
18
15
|
* badge="New v2.0"
|
|
19
|
-
* variant="primary"
|
|
20
16
|
* >
|
|
21
17
|
* <Button>Get Started</Button>
|
|
22
18
|
* </HeroSection>
|
|
23
19
|
* ```
|
|
24
20
|
*
|
|
25
|
-
* @
|
|
26
|
-
* ```tsx
|
|
27
|
-
* // Page header with hero content
|
|
28
|
-
* <HeroSection
|
|
29
|
-
* as="header"
|
|
30
|
-
* title="Welcome"
|
|
31
|
-
* subtitle="Get started today"
|
|
32
|
-
* fullHeight
|
|
33
|
-
* />
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @version 0.0.3
|
|
21
|
+
* @version 0.0.4
|
|
37
22
|
* @since 0.0.1
|
|
38
23
|
* @author AMBROISE PARK Consulting
|
|
39
24
|
*/
|
|
@@ -44,20 +29,6 @@ import Badge, { BADGE_VARIANT } from '../Badge';
|
|
|
44
29
|
import Stack from '../Stack';
|
|
45
30
|
import Text from '../Text';
|
|
46
31
|
import './HeroSection.css';
|
|
47
|
-
/**
|
|
48
|
-
* Auto-sizes hero title based on character count
|
|
49
|
-
* - 1-30 chars = h1 (80px / 3xl)
|
|
50
|
-
* - 31-60 chars = h2 (56px / 2xl)
|
|
51
|
-
* - 61+ chars = h3 (32px / xl)
|
|
52
|
-
*/
|
|
53
|
-
function getTitleLevel(title) {
|
|
54
|
-
const charCount = title.replace(/\n/g, '').length;
|
|
55
|
-
if (charCount <= 30)
|
|
56
|
-
return 'h1';
|
|
57
|
-
if (charCount <= 60)
|
|
58
|
-
return 'h2';
|
|
59
|
-
return 'h3';
|
|
60
|
-
}
|
|
61
32
|
const heroSectionVariants = cva('', {
|
|
62
33
|
variants: {
|
|
63
34
|
variant: {
|
|
@@ -70,9 +41,8 @@ const heroSectionVariants = cva('', {
|
|
|
70
41
|
variant: 'primary',
|
|
71
42
|
},
|
|
72
43
|
});
|
|
73
|
-
const HeroSection = forwardRef(function HeroSection({ as = 'section', badge, title,
|
|
74
|
-
|
|
75
|
-
return createElement(Component, {
|
|
44
|
+
const HeroSection = forwardRef(function HeroSection({ as = 'section', badge, title, subtitle, variant, fullHeight = false, align = 'center', children, className, ...props }, ref) {
|
|
45
|
+
return createElement(as, {
|
|
76
46
|
ref,
|
|
77
47
|
className: cn('dndev-hero-section', className),
|
|
78
48
|
'data-text-align': align,
|
|
@@ -86,7 +56,7 @@ const HeroSection = forwardRef(function HeroSection({ as = 'section', badge, tit
|
|
|
86
56
|
...props.style,
|
|
87
57
|
},
|
|
88
58
|
...props,
|
|
89
|
-
}, _jsxs(Stack, { gap: "medium", children: [badge && _jsx(Badge, { variant: BADGE_VARIANT.ACCENT, children: badge }), title && (_jsx(Text, { as: "h1", level:
|
|
59
|
+
}, _jsxs(Stack, { gap: "medium", children: [badge && _jsx(Badge, { variant: BADGE_VARIANT.ACCENT, children: badge }), title && (_jsx(Text, { as: "h1", level: "h1", className: "dndev-hero-title", "data-gradient-text": variant === 'subtle' ? undefined : variant || 'primary', children: title })), subtitle && (_jsx(Text, { as: "p", level: "body", className: "dndev-hero-subtitle", children: subtitle })), children] }));
|
|
90
60
|
});
|
|
91
61
|
HeroSection.displayName = 'HeroSection';
|
|
92
62
|
export default HeroSection;
|
|
@@ -14,9 +14,14 @@ export interface ListProps extends HTMLAttributes<HTMLUListElement | HTMLOListEl
|
|
|
14
14
|
items?: (string | ReactNode | ListItem)[];
|
|
15
15
|
/** Whether to render as ordered list (numbers) */
|
|
16
16
|
ordered?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Default icon for all string items.
|
|
19
|
+
* Individual ListItem.icon takes precedence.
|
|
20
|
+
*/
|
|
21
|
+
icon?: ReactNode;
|
|
17
22
|
/**
|
|
18
23
|
* Spacing between items
|
|
19
|
-
* @default '
|
|
24
|
+
* @default 'tight'
|
|
20
25
|
*/
|
|
21
26
|
gap?: GapVariant;
|
|
22
27
|
/**
|
|
@@ -53,7 +58,7 @@ export interface ListProps extends HTMLAttributes<HTMLUListElement | HTMLOListEl
|
|
|
53
58
|
* @param {ListProps} props - The props for the list
|
|
54
59
|
* @returns {JSX.Element} The rendered list component
|
|
55
60
|
*/
|
|
56
|
-
declare const List: ({ items, ordered, gap, density, className, ...props }: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
declare const List: ({ items, ordered, icon, gap, density, className, ...props }: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
62
|
export { GAP_VARIANT };
|
|
58
63
|
export type GapVariant = (typeof GAP_VARIANT)[keyof typeof GAP_VARIANT];
|
|
59
64
|
export default List;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/List/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,YAAY,CAAC;AAEpB,MAAM,WAAW,QAAQ;IACvB,uCAAuC;IACvC,OAAO,EAAE,SAAS,CAAC;IACnB,gCAAgC;IAChC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAU,SAAQ,cAAc,CAC/C,gBAAgB,GAAG,gBAAgB,CACpC;IACC,0CAA0C;IAC1C,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC,EAAE,CAAC;IAC1C,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,CAAC;IACxD,6B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|
@@ -33,20 +33,24 @@ import './List.css';
|
|
|
33
33
|
* @param {ListProps} props - The props for the list
|
|
34
34
|
* @returns {JSX.Element} The rendered list component
|
|
35
35
|
*/
|
|
36
|
-
const List = ({ items = [], ordered = false, gap = GAP_VARIANT.
|
|
36
|
+
const List = ({ items = [], ordered = false, icon, gap = GAP_VARIANT.TIGHT, density = 'default', className, ...props }) => {
|
|
37
37
|
const Component = ordered ? 'ol' : 'ul';
|
|
38
38
|
return (_jsx(Component, { className: cn('dndev-list', className), "data-ordered": ordered ? 'true' : undefined, "data-gap": gap, "data-density": density, ...props, children: items.map((item, index) => {
|
|
39
|
-
// Handle
|
|
39
|
+
// Handle string/number - apply container icon if provided
|
|
40
40
|
if (typeof item === 'string' || typeof item === 'number') {
|
|
41
|
+
if (icon) {
|
|
42
|
+
return (_jsxs("li", { className: "dndev-list-item", children: [_jsx("span", { className: "dndev-list-item-icon", children: icon }), _jsx("span", { className: "dndev-list-item-content", children: item })] }, index));
|
|
43
|
+
}
|
|
41
44
|
return (_jsx("li", { className: "dndev-list-item", children: item }, index));
|
|
42
45
|
}
|
|
43
46
|
// Handle ReactNode (JSX elements)
|
|
44
47
|
if (!item || typeof item !== 'object' || !('content' in item)) {
|
|
45
48
|
return (_jsx("li", { className: "dndev-list-item", children: item }, index));
|
|
46
49
|
}
|
|
47
|
-
// Handle ListItem object
|
|
50
|
+
// Handle ListItem object - item icon takes precedence over container icon
|
|
48
51
|
const listItem = item;
|
|
49
|
-
|
|
52
|
+
const itemIcon = listItem.icon ?? icon;
|
|
53
|
+
return (_jsxs("li", { className: cn('dndev-list-item', listItem.className), children: [itemIcon && (_jsx("span", { className: "dndev-list-item-icon", children: itemIcon })), _jsx("span", { className: "dndev-list-item-content", children: listItem.content })] }, index));
|
|
50
54
|
}) }));
|
|
51
55
|
};
|
|
52
56
|
export { GAP_VARIANT };
|
|
@@ -1,22 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview Section component
|
|
3
|
-
* @description Minimal layout section with title, optional separator, and
|
|
3
|
+
* @description Minimal layout section with title, optional separator, and tone backgrounds.
|
|
4
4
|
* Content width is automatically constrained by PageContainer's --content-width variable.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```tsx
|
|
8
|
+
* // Fixed 3 columns
|
|
8
9
|
* <Section title="Features" gridCols={3}>
|
|
9
|
-
* <Card
|
|
10
|
-
* <Card
|
|
11
|
-
* <Card
|
|
10
|
+
* <Card />
|
|
11
|
+
* <Card />
|
|
12
|
+
* <Card />
|
|
13
|
+
* </Section>
|
|
14
|
+
*
|
|
15
|
+
* // Responsive: [mobile, tablet, laptop, desktop]
|
|
16
|
+
* <Section title="Features" gridCols={[1, 1, 2, 3]}>
|
|
17
|
+
* <Card />
|
|
18
|
+
* <Card />
|
|
19
|
+
* <Card />
|
|
12
20
|
* </Section>
|
|
13
21
|
* ```
|
|
14
22
|
*
|
|
15
|
-
* @version 0.0.
|
|
23
|
+
* @version 0.0.4
|
|
16
24
|
* @since 0.0.1
|
|
17
25
|
* @author AMBROISE PARK Consulting
|
|
18
26
|
*/
|
|
19
27
|
import { type ElementType, type ComponentPropsWithRef, type ReactNode } from 'react';
|
|
28
|
+
import { type ResponsiveCols } from '../Grid';
|
|
20
29
|
import './Section.css';
|
|
21
30
|
/**
|
|
22
31
|
* Section-specific props
|
|
@@ -35,29 +44,38 @@ interface SectionOwnProps {
|
|
|
35
44
|
separator?: boolean;
|
|
36
45
|
/** Tone system for visual rhythm */
|
|
37
46
|
tone?: 'base' | 'muted' | 'elevated' | 'contrast' | 'accent';
|
|
38
|
-
/** Grid columns (1-4) */
|
|
39
|
-
gridCols?: 1 | 2 | 3 | 4;
|
|
40
|
-
/** Grid gap size */
|
|
41
|
-
gridGap?: 'none' | 'tight' | 'medium' | 'large';
|
|
42
47
|
/**
|
|
43
|
-
* Content alignment
|
|
48
|
+
* Content alignment (text alignment)
|
|
44
49
|
* @default 'center'
|
|
45
50
|
*/
|
|
46
51
|
align?: 'start' | 'center' | 'end';
|
|
52
|
+
/**
|
|
53
|
+
* Grid columns - fixed or responsive
|
|
54
|
+
* When provided, wraps children in Grid
|
|
55
|
+
* @example 3 - always 3 columns
|
|
56
|
+
* @example [1, 1, 2, 3] - responsive: 1 mobile/tablet, 2 laptop, 3 desktop
|
|
57
|
+
*/
|
|
58
|
+
gridCols?: number | ResponsiveCols;
|
|
59
|
+
/**
|
|
60
|
+
* Grid gap size
|
|
61
|
+
* @default 'medium'
|
|
62
|
+
*/
|
|
63
|
+
gridGap?: 'none' | 'tight' | 'medium' | 'large';
|
|
47
64
|
}
|
|
48
65
|
/**
|
|
49
66
|
* Polymorphic Section props
|
|
50
67
|
*/
|
|
51
68
|
export type SectionProps<T extends ElementType = 'section'> = SectionOwnProps & Omit<ComponentPropsWithRef<T>, keyof SectionOwnProps>;
|
|
52
69
|
/**
|
|
53
|
-
* Minimal layout section with title, optional separator, and
|
|
70
|
+
* Minimal layout section with title, optional separator, and tone backgrounds.
|
|
54
71
|
*
|
|
55
72
|
* @component
|
|
56
73
|
* @example
|
|
57
74
|
* ```tsx
|
|
58
|
-
* <Section title="Features" gridCols={3}>
|
|
59
|
-
* <Card
|
|
60
|
-
* <Card
|
|
75
|
+
* <Section title="Features" gridCols={[1, 1, 2, 3]}>
|
|
76
|
+
* <Card />
|
|
77
|
+
* <Card />
|
|
78
|
+
* <Card />
|
|
61
79
|
* </Section>
|
|
62
80
|
* ```
|
|
63
81
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Section/index.tsx"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Section/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAa,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAIpD,OAAO,eAAe,CAAC;AAEvB;;GAEG;AACH,UAAU,eAAe;IACvB;;;OAGG;IACH,EAAE,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IAEtD,sBAAsB;IACtB,QAAQ,EAAE,SAAS,CAAC;IAEpB,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;IAE7D;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAEnC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;IAEnC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,WAAW,GAAG,SAAS,IAAI,eAAe,GAC3E,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,eAAe,CAAC,CAAC;AAExD;;;;;;;;;;;;GAYG;AACH,QAAA,MAAM,OAAO,8HAmDZ,CAAC;AAIF,eAAe,OAAO,CAAC"}
|
|
@@ -2,49 +2,61 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
// packages/components/src/atomic/Section/index.tsx
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview Section component
|
|
5
|
-
* @description Minimal layout section with title, optional separator, and
|
|
5
|
+
* @description Minimal layout section with title, optional separator, and tone backgrounds.
|
|
6
6
|
* Content width is automatically constrained by PageContainer's --content-width variable.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```tsx
|
|
10
|
+
* // Fixed 3 columns
|
|
10
11
|
* <Section title="Features" gridCols={3}>
|
|
11
|
-
* <Card
|
|
12
|
-
* <Card
|
|
13
|
-
* <Card
|
|
12
|
+
* <Card />
|
|
13
|
+
* <Card />
|
|
14
|
+
* <Card />
|
|
15
|
+
* </Section>
|
|
16
|
+
*
|
|
17
|
+
* // Responsive: [mobile, tablet, laptop, desktop]
|
|
18
|
+
* <Section title="Features" gridCols={[1, 1, 2, 3]}>
|
|
19
|
+
* <Card />
|
|
20
|
+
* <Card />
|
|
21
|
+
* <Card />
|
|
14
22
|
* </Section>
|
|
15
23
|
* ```
|
|
16
24
|
*
|
|
17
|
-
* @version 0.0.
|
|
25
|
+
* @version 0.0.4
|
|
18
26
|
* @since 0.0.1
|
|
19
27
|
* @author AMBROISE PARK Consulting
|
|
20
28
|
*/
|
|
21
29
|
import { createElement, forwardRef, } from 'react';
|
|
22
30
|
import { GAP_VARIANT } from '../../styles/componentConstants';
|
|
23
31
|
import { cn } from '../../utils/helpers';
|
|
32
|
+
import Grid, {} from '../Grid';
|
|
24
33
|
import Separator, { SEPARATOR_VARIANT } from '../Separator';
|
|
34
|
+
import Text from '../Text';
|
|
25
35
|
import './Section.css';
|
|
26
36
|
/**
|
|
27
|
-
* Minimal layout section with title, optional separator, and
|
|
37
|
+
* Minimal layout section with title, optional separator, and tone backgrounds.
|
|
28
38
|
*
|
|
29
39
|
* @component
|
|
30
40
|
* @example
|
|
31
41
|
* ```tsx
|
|
32
|
-
* <Section title="Features" gridCols={3}>
|
|
33
|
-
* <Card
|
|
34
|
-
* <Card
|
|
42
|
+
* <Section title="Features" gridCols={[1, 1, 2, 3]}>
|
|
43
|
+
* <Card />
|
|
44
|
+
* <Card />
|
|
45
|
+
* <Card />
|
|
35
46
|
* </Section>
|
|
36
47
|
* ```
|
|
37
48
|
*/
|
|
38
|
-
const Section = forwardRef(function Section({ as = 'section', children, title, separator = false, tone = 'base',
|
|
49
|
+
const Section = forwardRef(function Section({ as = 'section', children, title, separator = false, tone = 'base', align: textAlign = 'center', gridCols, gridGap, className, ...props }, ref) {
|
|
39
50
|
const Component = as;
|
|
51
|
+
const content = gridCols ? (_jsx(Grid, { cols: gridCols, gap: gridGap || GAP_VARIANT.MEDIUM, children: children })) : (children);
|
|
40
52
|
return createElement(Component, {
|
|
41
53
|
ref,
|
|
42
54
|
'aria-label': props['aria-label'],
|
|
43
55
|
className: cn('dndev-section-full-width', className),
|
|
44
56
|
'data-tone': tone,
|
|
45
|
-
'data-text-align':
|
|
57
|
+
'data-text-align': textAlign,
|
|
46
58
|
...props,
|
|
47
|
-
}, _jsxs(_Fragment, { children: [separator && _jsx(Separator, { variant: SEPARATOR_VARIANT.ACCENT }), _jsxs("div", { className: "dndev-section-content", children: [title && _jsx(
|
|
59
|
+
}, _jsxs(_Fragment, { children: [separator && _jsx(Separator, { variant: SEPARATOR_VARIANT.ACCENT }), _jsxs("div", { className: "dndev-section-content", children: [title && (_jsx(Text, { as: "h2", className: "dndev-section-title", children: title })), content] })] }));
|
|
48
60
|
});
|
|
49
61
|
Section.displayName = 'Section';
|
|
50
62
|
export default Section;
|
|
@@ -4,7 +4,7 @@ import './Table.css';
|
|
|
4
4
|
* Table column configuration
|
|
5
5
|
*
|
|
6
6
|
* LAYOUT EXCEPTION: The `width` property is a layout control, not a styling prop.
|
|
7
|
-
* Similar to Grid's `
|
|
7
|
+
* Similar to Grid's `cols`, column width defines the structural layout of data,
|
|
8
8
|
* not superficial styling. This exception is documented in architecture docs.
|
|
9
9
|
*
|
|
10
10
|
* @version 0.0.1
|
|
@@ -21,7 +21,7 @@ export interface TableColumn<T = any> {
|
|
|
21
21
|
/**
|
|
22
22
|
* Column width - LAYOUT EXCEPTION
|
|
23
23
|
* Controls structural data presentation, not styling.
|
|
24
|
-
* Analogous to Grid's
|
|
24
|
+
* Analogous to Grid's cols for defining layout structure.
|
|
25
25
|
*/
|
|
26
26
|
width?: string | number;
|
|
27
27
|
/**
|
package/dist/atomic/index.d.ts
CHANGED
|
@@ -34,10 +34,10 @@ export type { CallToActionProps } from './CallToAction';
|
|
|
34
34
|
export { default as Calendar } from './Calendar';
|
|
35
35
|
export type { CalendarProps } from './Calendar';
|
|
36
36
|
export * from './Calendar/CalendarPrimitive';
|
|
37
|
-
export { default as Card } from './Card';
|
|
37
|
+
export { default as Card, renderCardContent, renderCardHeader } from './Card';
|
|
38
38
|
export { CARD_VARIANT } from './Card';
|
|
39
39
|
export { surfaceVariants, type SurfaceVariantProps } from '../utils/variants';
|
|
40
|
-
export type { CardProps, CardVariant } from './Card';
|
|
40
|
+
export type { CardProps, CardVariant, CardContent } from './Card';
|
|
41
41
|
export { default as DualCard } from './DualCard';
|
|
42
42
|
export type { DualCardProps, DualCardVariant } from './DualCard';
|
|
43
43
|
export { default as Checkbox } from './Checkbox';
|
|
@@ -68,7 +68,7 @@ export type { DropdownMenuProps, DropdownMenuItemData } from './DropdownMenu';
|
|
|
68
68
|
export { default as FeatureFallback, withFeatureFallback, type FeatureFallbackProps, } from './FeatureFallback';
|
|
69
69
|
export { default as FileButton } from './FileButton';
|
|
70
70
|
export { default as Grid, GridArea } from './Grid';
|
|
71
|
-
export type { GridProps, GridAreaProps } from './Grid';
|
|
71
|
+
export type { GridProps, GridAreaProps, ResponsiveCols } from './Grid';
|
|
72
72
|
export { default as HeroSection } from './HeroSection';
|
|
73
73
|
export type { HeroSectionProps } from './HeroSection';
|
|
74
74
|
export { default as HoverCard } from './HoverCard';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/atomic/index.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;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AAE,OAAO,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAChE,cAAc,4BAA4B,CAAC;AAC3C,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,cAAc,0CAA0C,CAAC"}
|
package/dist/atomic/index.js
CHANGED
|
@@ -25,7 +25,7 @@ export { buttonVariants, BUTTON_VARIANT } from './Button';
|
|
|
25
25
|
export { default as CallToAction } from './CallToAction';
|
|
26
26
|
export { default as Calendar } from './Calendar';
|
|
27
27
|
export * from './Calendar/CalendarPrimitive';
|
|
28
|
-
export { default as Card } from './Card';
|
|
28
|
+
export { default as Card, renderCardContent, renderCardHeader } from './Card';
|
|
29
29
|
export { CARD_VARIANT } from './Card';
|
|
30
30
|
export { surfaceVariants } from '../utils/variants';
|
|
31
31
|
export { default as DualCard } from './DualCard';
|