@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.
Files changed (64) hide show
  1. package/README.md +2 -0
  2. package/dist/ComplexComponents/PageContentHeader/PageContentHeader.tsx +24 -34
  3. package/dist/ComplexComponents/PageContentHeader/index.ts +0 -2
  4. package/dist/contracts/PageContentHeader.json +10 -5
  5. package/dist/contracts/index.json +1 -1
  6. package/dist/index.ts +3 -4
  7. package/dist/stories/Buttons/ActionIcon.stories.tsx +159 -0
  8. package/dist/stories/Buttons/Button.stories.tsx +145 -0
  9. package/dist/stories/Buttons/CloseButton.stories.tsx +121 -0
  10. package/dist/stories/Combobox/AutocompleteClearable.stories.tsx +554 -0
  11. package/dist/stories/Combobox/Combobox.stories.tsx +106 -0
  12. package/dist/stories/Combobox/Multiselect.stories.tsx +664 -0
  13. package/dist/stories/Combobox/SearchableSelect.stories.tsx +640 -0
  14. package/dist/stories/Combobox/Select.stories.tsx +311 -0
  15. package/dist/stories/ComplexComponents/DashboardWidget/DashboardWidget.stories.tsx +822 -0
  16. package/dist/stories/ComplexComponents/DataTable/DataTable.stories.tsx +502 -0
  17. package/dist/stories/ComplexComponents/KeyInsight/KeyInsights.stories.tsx +386 -0
  18. package/dist/stories/ComplexComponents/NameValue/NameValue.stories.tsx +405 -0
  19. package/dist/stories/ComplexComponents/PageContentHeader/PageContentHeader.stories.tsx +527 -0
  20. package/dist/stories/ComplexComponents/Placeholder/Placeholder.stories.tsx +76 -0
  21. package/dist/stories/ComplexComponents/Slat/Slat.stories.tsx +79 -0
  22. package/dist/stories/ComplexComponents/Utilities/CopyButton.stories.tsx +479 -0
  23. package/dist/stories/DataDisplay/Alert.stories.tsx +296 -0
  24. package/dist/stories/DataDisplay/Avatar.stories.tsx +251 -0
  25. package/dist/stories/DataDisplay/Badge.stories.tsx +176 -0
  26. package/dist/stories/DataDisplay/Card.stories.tsx +406 -0
  27. package/dist/stories/DataDisplay/Chip.stories.tsx +495 -0
  28. package/dist/stories/DataDisplay/Indicator.stories.tsx +571 -0
  29. package/dist/stories/DataDisplay/List.stories.tsx +376 -0
  30. package/dist/stories/DataDisplay/Pill.stories.tsx +506 -0
  31. package/dist/stories/DataDisplay/Progress.stories.tsx +352 -0
  32. package/dist/stories/DataDisplay/Table.stories.tsx +346 -0
  33. package/dist/stories/DataDisplay/ThemeIcon.stories.tsx +125 -0
  34. package/dist/stories/Inputs/Checkbox.stories.tsx +263 -0
  35. package/dist/stories/Inputs/ColorInput.stories.tsx +434 -0
  36. package/dist/stories/Inputs/DropZone.stories.tsx +401 -0
  37. package/dist/stories/Inputs/FileInput.stories.tsx +383 -0
  38. package/dist/stories/Inputs/NumberInput.stories.tsx +342 -0
  39. package/dist/stories/Inputs/Radio.stories.tsx +437 -0
  40. package/dist/stories/Inputs/RadioGroup.stories.tsx +526 -0
  41. package/dist/stories/Inputs/SegmentedControl.stories.tsx +60 -0
  42. package/dist/stories/Inputs/Slider.stories.tsx +22 -0
  43. package/dist/stories/Inputs/SliderWithLabel.stories.tsx +37 -0
  44. package/dist/stories/Inputs/Switch.stories.tsx +361 -0
  45. package/dist/stories/Inputs/TextArea.stories.tsx +355 -0
  46. package/dist/stories/Inputs/TextInput.stories.tsx +266 -0
  47. package/dist/stories/Misc/Divider.stories.tsx +581 -0
  48. package/dist/stories/Misc/Paper.stories.tsx +557 -0
  49. package/dist/stories/Navigation/Breadcrumb.stories.tsx +489 -0
  50. package/dist/stories/Navigation/NavLink.stories.tsx +601 -0
  51. package/dist/stories/Navigation/Stepper.stories.tsx +413 -0
  52. package/dist/stories/Navigation/Tabs.stories.tsx +528 -0
  53. package/dist/stories/Overlays/Drawer.stories.tsx +802 -0
  54. package/dist/stories/Overlays/Menu.stories.tsx +941 -0
  55. package/dist/stories/Overlays/Modal.stories.tsx +249 -0
  56. package/dist/stories/Overlays/Popover.stories.tsx +780 -0
  57. package/dist/stories/Overlays/Tooltip.stories.tsx +52 -0
  58. package/dist/stories/Typography/Code.stories.tsx +368 -0
  59. package/dist/stories/Typography/Kbd.stories.tsx +514 -0
  60. package/dist/stories/Typography/Text.stories.tsx +117 -0
  61. package/dist/stories/Typography/Title.stories.tsx +112 -0
  62. package/dist/stories/index.json +1435 -0
  63. package/package.json +5 -3
  64. 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.9",
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.9",
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
- }