@appdirect/design-system 0.0.9 → 0.0.11
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 +2 -0
- package/dist/ComplexComponents/PageContentHeader/PageContentHeader.tsx +24 -34
- package/dist/ComplexComponents/PageContentHeader/index.ts +0 -2
- package/dist/contracts/PageContentHeader.json +10 -5
- package/dist/contracts/index.json +1 -1
- package/dist/index.ts +3 -4
- package/dist/stories/Buttons/ActionIcon.stories.tsx +159 -0
- package/dist/stories/Buttons/Button.stories.tsx +145 -0
- package/dist/stories/Buttons/CloseButton.stories.tsx +121 -0
- package/dist/stories/Combobox/AutocompleteClearable.stories.tsx +554 -0
- package/dist/stories/Combobox/Combobox.stories.tsx +106 -0
- package/dist/stories/Combobox/Multiselect.stories.tsx +664 -0
- package/dist/stories/Combobox/SearchableSelect.stories.tsx +640 -0
- package/dist/stories/Combobox/Select.stories.tsx +311 -0
- package/dist/stories/ComplexComponents/DashboardWidget/DashboardWidget.stories.tsx +822 -0
- package/dist/stories/ComplexComponents/DataTable/DataTable.stories.tsx +502 -0
- package/dist/stories/ComplexComponents/KeyInsight/KeyInsights.stories.tsx +386 -0
- package/dist/stories/ComplexComponents/NameValue/NameValue.stories.tsx +405 -0
- package/dist/stories/ComplexComponents/PageContentHeader/PageContentHeader.stories.tsx +527 -0
- package/dist/stories/ComplexComponents/Placeholder/Placeholder.stories.tsx +76 -0
- package/dist/stories/ComplexComponents/Slat/Slat.stories.tsx +79 -0
- package/dist/stories/ComplexComponents/Utilities/CopyButton.stories.tsx +479 -0
- package/dist/stories/DataDisplay/Alert.stories.tsx +296 -0
- package/dist/stories/DataDisplay/Avatar.stories.tsx +251 -0
- package/dist/stories/DataDisplay/Badge.stories.tsx +176 -0
- package/dist/stories/DataDisplay/Card.stories.tsx +406 -0
- package/dist/stories/DataDisplay/Chip.stories.tsx +495 -0
- package/dist/stories/DataDisplay/Indicator.stories.tsx +571 -0
- package/dist/stories/DataDisplay/List.stories.tsx +376 -0
- package/dist/stories/DataDisplay/Pill.stories.tsx +506 -0
- package/dist/stories/DataDisplay/Progress.stories.tsx +352 -0
- package/dist/stories/DataDisplay/Table.stories.tsx +346 -0
- package/dist/stories/DataDisplay/ThemeIcon.stories.tsx +125 -0
- package/dist/stories/Inputs/Checkbox.stories.tsx +263 -0
- package/dist/stories/Inputs/ColorInput.stories.tsx +434 -0
- package/dist/stories/Inputs/DropZone.stories.tsx +401 -0
- package/dist/stories/Inputs/FileInput.stories.tsx +383 -0
- package/dist/stories/Inputs/NumberInput.stories.tsx +342 -0
- package/dist/stories/Inputs/Radio.stories.tsx +437 -0
- package/dist/stories/Inputs/RadioGroup.stories.tsx +526 -0
- package/dist/stories/Inputs/SegmentedControl.stories.tsx +60 -0
- package/dist/stories/Inputs/Slider.stories.tsx +22 -0
- package/dist/stories/Inputs/SliderWithLabel.stories.tsx +37 -0
- package/dist/stories/Inputs/Switch.stories.tsx +361 -0
- package/dist/stories/Inputs/TextArea.stories.tsx +355 -0
- package/dist/stories/Inputs/TextInput.stories.tsx +266 -0
- package/dist/stories/Misc/Divider.stories.tsx +581 -0
- package/dist/stories/Misc/Paper.stories.tsx +557 -0
- package/dist/stories/Navigation/Breadcrumb.stories.tsx +489 -0
- package/dist/stories/Navigation/NavLink.stories.tsx +601 -0
- package/dist/stories/Navigation/Stepper.stories.tsx +413 -0
- package/dist/stories/Navigation/Tabs.stories.tsx +528 -0
- package/dist/stories/Overlays/Drawer.stories.tsx +802 -0
- package/dist/stories/Overlays/Menu.stories.tsx +941 -0
- package/dist/stories/Overlays/Modal.stories.tsx +249 -0
- package/dist/stories/Overlays/Popover.stories.tsx +780 -0
- package/dist/stories/Overlays/Tooltip.stories.tsx +52 -0
- package/dist/stories/Typography/Code.stories.tsx +368 -0
- package/dist/stories/Typography/Kbd.stories.tsx +514 -0
- package/dist/stories/Typography/Text.stories.tsx +117 -0
- package/dist/stories/Typography/Title.stories.tsx +112 -0
- package/dist/stories/index.json +1435 -0
- package/package.json +5 -3
- package/dist/ComplexComponents/PageContentHeader/DescriptionBlock.tsx +0 -65
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appdirect/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "AppDirect Design System components. Wraps Mantine v9 with standardized props, variants, and tokens.",
|
|
5
5
|
"main": "./dist/index.ts",
|
|
6
6
|
"types": "./dist/index.ts",
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"./css/foundations.css": "./dist/css/foundations.css",
|
|
24
24
|
"./css/mantine.css": "./dist/css/mantine.css",
|
|
25
25
|
"./contracts": "./dist/contracts/index.json",
|
|
26
|
-
"./contracts/*": "./dist/contracts/*"
|
|
26
|
+
"./contracts/*": "./dist/contracts/*",
|
|
27
|
+
"./stories": "./dist/stories/index.json",
|
|
28
|
+
"./stories/*": "./dist/stories/*"
|
|
27
29
|
},
|
|
28
30
|
"files": [
|
|
29
31
|
"dist",
|
|
@@ -37,7 +39,7 @@
|
|
|
37
39
|
"prepublishOnly": "npm run build"
|
|
38
40
|
},
|
|
39
41
|
"dependencies": {
|
|
40
|
-
"@appdirect/ad-design-tokens": "0.0.
|
|
42
|
+
"@appdirect/ad-design-tokens": "0.0.11",
|
|
41
43
|
"@mantine/dropzone": "^9.6.0",
|
|
42
44
|
"@remixicon/react": "^4.6.0",
|
|
43
45
|
"@tabler/icons-react": "^3.33.0",
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Inline } from '../../Layout/Inline';
|
|
3
|
-
import { Title } from '../../Typography/Title';
|
|
4
|
-
import { Text } from '../../Typography/Text';
|
|
5
|
-
|
|
6
|
-
export interface DescriptionBlockProps {
|
|
7
|
-
/** Optional title for the description block */
|
|
8
|
-
title?: string;
|
|
9
|
-
/** Description text content */
|
|
10
|
-
description: string;
|
|
11
|
-
/** Whether description supports HTML/links */
|
|
12
|
-
allowHtml?: boolean;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* DescriptionBlock Component
|
|
17
|
-
*
|
|
18
|
-
* A component for displaying structured description content with an optional title.
|
|
19
|
-
* Uses Group layout with Title (h4) and Text (md) styling.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* // Basic usage with title
|
|
23
|
-
* <DescriptionBlock
|
|
24
|
-
* title="This is an optional title"
|
|
25
|
-
* description="This is some descriptive text. Try not to make this too long and don't be too specific to prevent stale documentation."
|
|
26
|
-
* />
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* // With HTML content
|
|
30
|
-
* <DescriptionBlock
|
|
31
|
-
* title="Getting Started"
|
|
32
|
-
* description="This is some descriptive text. It's <a href='/docs'>great to link into doc</a> pages!"
|
|
33
|
-
* allowHtml={true}
|
|
34
|
-
* />
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* // Description only (no title)
|
|
38
|
-
* <DescriptionBlock
|
|
39
|
-
* description="This standalone description provides context without a title."
|
|
40
|
-
* />
|
|
41
|
-
*/
|
|
42
|
-
export function DescriptionBlock({
|
|
43
|
-
title,
|
|
44
|
-
description,
|
|
45
|
-
allowHtml = false,
|
|
46
|
-
}: DescriptionBlockProps) {
|
|
47
|
-
return (
|
|
48
|
-
<Inline gap="xs" align="flex-start" p="sm">
|
|
49
|
-
{title && (
|
|
50
|
-
<Title order={4}>
|
|
51
|
-
{title}
|
|
52
|
-
</Title>
|
|
53
|
-
)}
|
|
54
|
-
{allowHtml ? (
|
|
55
|
-
<Text size="md" style={{ lineHeight: 1.6 }}>
|
|
56
|
-
<div dangerouslySetInnerHTML={{ __html: description }} />
|
|
57
|
-
</Text>
|
|
58
|
-
) : (
|
|
59
|
-
<Text size="md" style={{ lineHeight: 1.6 }}>
|
|
60
|
-
{description}
|
|
61
|
-
</Text>
|
|
62
|
-
)}
|
|
63
|
-
</Inline>
|
|
64
|
-
);
|
|
65
|
-
}
|