@sybilion/uilib 1.4.20 → 1.4.22

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 (83) hide show
  1. package/assets/globals.css +3 -0
  2. package/dist/agent-glossary/workspace.generated.ts +2 -0
  3. package/dist/agent-glossary/workspace.index.md +2 -0
  4. package/dist/agent-glossary/workspace.md +2 -0
  5. package/dist/esm/components/ui/Checkbox/Checkbox.js +2 -2
  6. package/dist/esm/components/ui/Checkbox/Checkbox.styl.js +2 -2
  7. package/dist/esm/components/ui/DatePicker/Calendar.js +72 -0
  8. package/dist/esm/components/ui/DatePicker/DatePicker.js +81 -0
  9. package/dist/esm/components/ui/DatePicker/DatePicker.styl.js +7 -0
  10. package/dist/esm/components/ui/DatePicker/DatePickerInput.js +70 -0
  11. package/dist/esm/components/ui/DatePicker/DateRangePickerInput.js +130 -0
  12. package/dist/esm/components/ui/DatePicker/dateUtils.js +137 -0
  13. package/dist/esm/components/ui/RadioGroup/RadioGroup.helpers.js +6 -0
  14. package/dist/esm/components/ui/RadioGroup/RadioGroup.js +18 -0
  15. package/dist/esm/components/ui/RadioGroup/RadioGroup.styl.js +7 -0
  16. package/dist/esm/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl.js +1 -1
  17. package/dist/esm/components/ui/TextShimmer/TextShimmer.js +1 -1
  18. package/dist/esm/components/ui/TextShimmer/TextShimmer.styl.js +1 -1
  19. package/dist/esm/index.js +5 -0
  20. package/dist/esm/types/src/components/ui/Checkbox/Checkbox.d.ts +1 -1
  21. package/dist/esm/types/src/components/ui/Checkbox/Checkbox.types.d.ts +2 -0
  22. package/dist/esm/types/src/components/ui/Checkbox/index.d.ts +1 -1
  23. package/dist/esm/types/src/components/ui/DatePicker/Calendar.d.ts +2 -0
  24. package/dist/esm/types/src/components/ui/DatePicker/DatePicker.d.ts +2 -0
  25. package/dist/esm/types/src/components/ui/DatePicker/DatePicker.types.d.ts +60 -0
  26. package/dist/esm/types/src/components/ui/DatePicker/DatePickerInput.d.ts +2 -0
  27. package/dist/esm/types/src/components/ui/DatePicker/DateRangePickerInput.d.ts +2 -0
  28. package/dist/esm/types/src/components/ui/DatePicker/dateUtils.d.ts +30 -0
  29. package/dist/esm/types/src/components/ui/DatePicker/index.d.ts +6 -0
  30. package/dist/esm/types/src/components/ui/RadioGroup/RadioGroup.d.ts +4 -0
  31. package/dist/esm/types/src/components/ui/RadioGroup/RadioGroup.example.d.ts +1 -0
  32. package/dist/esm/types/src/components/ui/RadioGroup/RadioGroup.helpers.d.ts +3 -0
  33. package/dist/esm/types/src/components/ui/RadioGroup/RadioGroup.types.d.ts +11 -0
  34. package/dist/esm/types/src/components/ui/RadioGroup/index.d.ts +2 -0
  35. package/dist/esm/types/src/docs/pages/DataDisplayOverviewPage.d.ts +1 -0
  36. package/dist/esm/types/src/docs/pages/DatePickerPage.d.ts +1 -0
  37. package/dist/esm/types/src/docs/pages/FeedbackOverviewPage.d.ts +1 -0
  38. package/dist/esm/types/src/docs/pages/FormsOverviewPage.d.ts +1 -0
  39. package/dist/esm/types/src/docs/pages/LayoutOverviewPage.d.ts +1 -0
  40. package/dist/esm/types/src/docs/pages/NavigationOverviewPage.d.ts +1 -0
  41. package/dist/esm/types/src/docs/pages/OverlaysOverviewPage.d.ts +1 -0
  42. package/dist/esm/types/src/docs/pages/RadioGroupPage.d.ts +1 -0
  43. package/dist/esm/types/src/index.d.ts +2 -0
  44. package/package.json +2 -1
  45. package/src/components/ui/Checkbox/AGENT.md +1 -0
  46. package/src/components/ui/Checkbox/Checkbox.styl +26 -2
  47. package/src/components/ui/Checkbox/Checkbox.styl.d.ts +4 -0
  48. package/src/components/ui/Checkbox/Checkbox.tsx +3 -3
  49. package/src/components/ui/Checkbox/Checkbox.types.ts +5 -1
  50. package/src/components/ui/Checkbox/index.ts +1 -1
  51. package/src/components/ui/DatePicker/AGENT.md +45 -0
  52. package/src/components/ui/DatePicker/Calendar.tsx +160 -0
  53. package/src/components/ui/DatePicker/DatePicker.styl +219 -0
  54. package/src/components/ui/DatePicker/DatePicker.styl.d.ts +39 -0
  55. package/src/components/ui/DatePicker/DatePicker.tsx +160 -0
  56. package/src/components/ui/DatePicker/DatePicker.types.ts +91 -0
  57. package/src/components/ui/DatePicker/DatePickerInput.tsx +169 -0
  58. package/src/components/ui/DatePicker/DateRangePickerInput.tsx +276 -0
  59. package/src/components/ui/DatePicker/dateUtils.ts +199 -0
  60. package/src/components/ui/DatePicker/index.ts +13 -0
  61. package/src/components/ui/RadioGroup/AGENT.md +24 -0
  62. package/src/components/ui/RadioGroup/RadioGroup.example.tsx +136 -0
  63. package/src/components/ui/RadioGroup/RadioGroup.helpers.ts +11 -0
  64. package/src/components/ui/RadioGroup/RadioGroup.styl +70 -0
  65. package/src/components/ui/RadioGroup/RadioGroup.styl.d.ts +13 -0
  66. package/src/components/ui/RadioGroup/RadioGroup.tsx +58 -0
  67. package/src/components/ui/RadioGroup/RadioGroup.types.ts +19 -0
  68. package/src/components/ui/RadioGroup/index.ts +6 -0
  69. package/src/components/ui/Sidebar/SidebarGroup/SidebarGroup.styl +3 -0
  70. package/src/components/ui/TextShimmer/TextShimmer.styl +1 -0
  71. package/src/components/ui/TextShimmer/TextShimmer.tsx +1 -1
  72. package/src/docs/components/DocsSidebar/DocsSidebar.tsx +7 -1
  73. package/src/docs/pages/CheckboxPage.tsx +129 -18
  74. package/src/docs/pages/DataDisplayOverviewPage.tsx +241 -0
  75. package/src/docs/pages/DatePickerPage.tsx +183 -0
  76. package/src/docs/pages/FeedbackOverviewPage.tsx +57 -0
  77. package/src/docs/pages/FormsOverviewPage.tsx +721 -0
  78. package/src/docs/pages/LayoutOverviewPage.tsx +259 -0
  79. package/src/docs/pages/NavigationOverviewPage.tsx +94 -0
  80. package/src/docs/pages/OverlaysOverviewPage.tsx +196 -0
  81. package/src/docs/pages/RadioGroupPage.tsx +21 -0
  82. package/src/docs/registry.ts +48 -0
  83. package/src/index.ts +2 -0
@@ -0,0 +1,70 @@
1
+ .groupRoot
2
+ display grid
3
+ gap var(--p-2)
4
+
5
+ &[data-orientation=horizontal]
6
+ display flex
7
+ flex-direction row
8
+ flex-wrap wrap
9
+ gap var(--p-4)
10
+
11
+ .radioRoot
12
+ cursor pointer
13
+ display flex
14
+ align-items center
15
+ justify-content center
16
+ flex-shrink 0
17
+
18
+ border-radius 50%
19
+ border 1px solid var(--input)
20
+ background transparent
21
+ box-shadow 0 1px 2px 0 rgba(0, 0, 0, 0.05)
22
+ outline none
23
+ transition box-shadow 0.15s ease-in-out
24
+
25
+ .dark &
26
+ background-color var(--input-30)
27
+
28
+ &[data-state=checked]
29
+ border-color var(--primary)
30
+ color var(--primary)
31
+ .dark &
32
+ border-color var(--primary)
33
+
34
+ &:focus-visible
35
+ border-color var(--ring)
36
+ box-shadow 0 0 0 3px var(--ring-50)
37
+
38
+ &[aria-invalid=true]
39
+ box-shadow 0 0 0 3px var(--destructive-200)
40
+ border-color var(--destructive)
41
+ .dark &
42
+ box-shadow 0 0 0 3px var(--destructive-400)
43
+
44
+ &:disabled
45
+ cursor not-allowed
46
+ opacity 0.5
47
+
48
+ .radioIndicator
49
+ width calc(100% - var(--dot-gap))
50
+ height calc(100% - var(--dot-gap))
51
+ border-radius 50%
52
+ background-color currentColor
53
+
54
+ color currentColor
55
+ transition none
56
+
57
+ .size-sm
58
+ --dot-gap 3px
59
+ width var(--icon-size-sm)
60
+ height var(--icon-size-sm)
61
+
62
+ .size-md
63
+ --dot-gap 4px
64
+ width var(--icon-size-md)
65
+ height var(--icon-size-md)
66
+
67
+ .size-lg
68
+ --dot-gap 5px
69
+ width var(--icon-size-lg)
70
+ height var(--icon-size-lg)
@@ -0,0 +1,13 @@
1
+ // This file is automatically generated.
2
+ // Please do not change this file!
3
+ interface CssExports {
4
+ 'dark': string;
5
+ 'groupRoot': string;
6
+ 'radioIndicator': string;
7
+ 'radioRoot': string;
8
+ 'size-lg': string;
9
+ 'size-md': string;
10
+ 'size-sm': string;
11
+ }
12
+ export const cssExports: CssExports;
13
+ export default cssExports;
@@ -0,0 +1,58 @@
1
+ import cn from 'classnames';
2
+ import { createContext, useContext } from 'react';
3
+
4
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
5
+
6
+ import {
7
+ getDefaultRadioGroupContextValues,
8
+ getRadioGroupContextValues,
9
+ } from './RadioGroup.helpers';
10
+ import S from './RadioGroup.styl';
11
+ import type {
12
+ RadioGroupContextValue,
13
+ RadioGroupItemProps,
14
+ RadioGroupProps,
15
+ } from './RadioGroup.types';
16
+
17
+ const RadioGroupContext = createContext<RadioGroupContextValue>(
18
+ getDefaultRadioGroupContextValues(),
19
+ );
20
+
21
+ function RadioGroup({
22
+ className,
23
+ size = 'md',
24
+ children,
25
+ ...props
26
+ }: RadioGroupProps) {
27
+ return (
28
+ <RadioGroupContext.Provider value={{ size }}>
29
+ <RadioGroupPrimitive.Root
30
+ data-slot="radio-group"
31
+ className={cn(S.groupRoot, className)}
32
+ {...props}
33
+ >
34
+ {children}
35
+ </RadioGroupPrimitive.Root>
36
+ </RadioGroupContext.Provider>
37
+ );
38
+ }
39
+
40
+ function RadioGroupItem({ className, size, ...props }: RadioGroupItemProps) {
41
+ const context = useContext(RadioGroupContext);
42
+ const resolvedSize = getRadioGroupContextValues(context, size);
43
+
44
+ return (
45
+ <RadioGroupPrimitive.Item
46
+ data-slot="radio-group-item"
47
+ className={cn(S.radioRoot, S[`size-${resolvedSize}`], className)}
48
+ {...props}
49
+ >
50
+ <RadioGroupPrimitive.Indicator
51
+ data-slot="radio-group-indicator"
52
+ className={S.radioIndicator}
53
+ />
54
+ </RadioGroupPrimitive.Item>
55
+ );
56
+ }
57
+
58
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,19 @@
1
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
2
+
3
+ export type RadioGroupSize = 'sm' | 'md' | 'lg';
4
+
5
+ export interface RadioGroupContextValue {
6
+ size?: RadioGroupSize;
7
+ }
8
+
9
+ export interface RadioGroupProps extends React.ComponentProps<
10
+ typeof RadioGroupPrimitive.Root
11
+ > {
12
+ size?: RadioGroupSize;
13
+ }
14
+
15
+ export interface RadioGroupItemProps extends React.ComponentProps<
16
+ typeof RadioGroupPrimitive.Item
17
+ > {
18
+ size?: RadioGroupSize;
19
+ }
@@ -0,0 +1,6 @@
1
+ export { RadioGroup, RadioGroupItem } from './RadioGroup';
2
+ export type {
3
+ RadioGroupItemProps,
4
+ RadioGroupProps,
5
+ RadioGroupSize,
6
+ } from './RadioGroup.types';
@@ -7,3 +7,6 @@
7
7
  min-width 0
8
8
  flex-direction column
9
9
  padding 0
10
+
11
+ &:first-child
12
+ padding-top var(--p-11)
@@ -1,6 +1,7 @@
1
1
  .root
2
2
  position relative
3
3
  display inline-block
4
+ width fit-content
4
5
  background-size 200% 100%, 100% 100%
5
6
  -webkit-background-clip text
6
7
  background-clip text
@@ -11,7 +11,7 @@ function TextShimmerComponent({
11
11
  as: Component = 'p',
12
12
  className,
13
13
  duration = 2,
14
- spread = 2,
14
+ spread = 4,
15
15
  inverted = false,
16
16
  }: TextShimmerProps) {
17
17
  const MotionComponent = motion.create(
@@ -26,7 +26,13 @@ function entriesBySection() {
26
26
  map.set(entry.section, list);
27
27
  }
28
28
  for (const list of map.values()) {
29
- list.sort((a, b) => a.title.localeCompare(b.title));
29
+ list.sort((a, b) => {
30
+ const aOverview = a.slug.endsWith('-overview');
31
+ const bOverview = b.slug.endsWith('-overview');
32
+ if (aOverview && !bOverview) return -1;
33
+ if (!aOverview && bOverview) return 1;
34
+ return a.title.localeCompare(b.title);
35
+ });
30
36
  }
31
37
  return map;
32
38
  }
@@ -7,38 +7,149 @@ import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
7
7
  import { DocsGuidance } from '../components/DocsGuidance/DocsGuidance';
8
8
  import { DocsHeaderActions } from '../docsHeaderActions';
9
9
 
10
+ const SIZES = ['sm', 'md', 'lg'] as const;
11
+
12
+ const STATES = [
13
+ { label: 'unchecked', checked: false },
14
+ { label: 'checked', checked: true },
15
+ ] as const;
16
+
10
17
  export default function CheckboxPage() {
11
18
  return (
12
19
  <>
13
20
  <AppPageHeader
14
21
  breadcrumbs={[{ label: 'Checkbox' }]}
15
22
  title="Checkbox"
16
- subheader="Binary control for selecting an option."
23
+ subheader="Sizes, checked/unchecked states, and disabled state."
17
24
  actions={<DocsHeaderActions />}
18
25
  />
19
26
  <DocsGuidance source={CheckboxGuidance} />
20
27
  <PageContentSection
21
28
  style={{ display: 'flex', flexDirection: 'column', gap: '2rem' }}
22
29
  >
23
- <div
24
- style={{
25
- display: 'flex',
26
- flexDirection: 'column',
27
- gap: 'var(--p-2)',
28
- padding: 'var(--p-2)',
29
- background: 'var(--background)',
30
- borderRadius: 'var(--radius-3)',
31
- }}
32
- >
33
- <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
34
- <Checkbox id="cb-default" />
35
- <Label htmlFor="cb-default">Option</Label>
30
+ <section>
31
+ <h3 style={{ marginBottom: '1rem' }}>States × sizes</h3>
32
+ <div style={{ overflowX: 'auto' }}>
33
+ <table style={{ borderCollapse: 'collapse', width: '100%' }}>
34
+ <thead>
35
+ <tr>
36
+ <th style={{ textAlign: 'left', padding: '0.5rem' }} />
37
+ {SIZES.map(s => (
38
+ <th key={s} style={{ padding: '0.5rem' }}>
39
+ {s}
40
+ </th>
41
+ ))}
42
+ </tr>
43
+ </thead>
44
+ <tbody>
45
+ {STATES.map(st => (
46
+ <tr key={st.label}>
47
+ <td
48
+ style={{
49
+ padding: '0.5rem',
50
+ fontWeight: 600,
51
+ whiteSpace: 'nowrap',
52
+ }}
53
+ >
54
+ {st.label}
55
+ </td>
56
+ {SIZES.map(s => (
57
+ <td key={s} style={{ padding: '0.5rem' }}>
58
+ <Checkbox
59
+ id={`cb-${st.label}-${s}`}
60
+ size={s}
61
+ checked={st.checked}
62
+ aria-label={`${st.label} ${s}`}
63
+ />
64
+ </td>
65
+ ))}
66
+ </tr>
67
+ ))}
68
+ </tbody>
69
+ </table>
70
+ </div>
71
+ </section>
72
+ <section>
73
+ <h3 style={{ marginBottom: '1rem' }}>With label</h3>
74
+ <div
75
+ style={{
76
+ display: 'flex',
77
+ flexWrap: 'wrap',
78
+ gap: '1.5rem',
79
+ alignItems: 'center',
80
+ }}
81
+ >
82
+ {SIZES.map(s => (
83
+ <div
84
+ key={s}
85
+ style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}
86
+ >
87
+ <Checkbox id={`cb-label-${s}`} size={s} defaultChecked />
88
+ <Label htmlFor={`cb-label-${s}`}>{s}</Label>
89
+ </div>
90
+ ))}
36
91
  </div>
37
- <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
38
- <Checkbox id="cb-disabled" disabled />
39
- <Label htmlFor="cb-disabled">Option</Label>
92
+ </section>
93
+ <section>
94
+ <h3 style={{ marginBottom: '1rem' }}>Disabled</h3>
95
+ <div style={{ overflowX: 'auto' }}>
96
+ <table style={{ borderCollapse: 'collapse', width: '100%' }}>
97
+ <thead>
98
+ <tr>
99
+ <th style={{ textAlign: 'left', padding: '0.5rem' }} />
100
+ {SIZES.map(s => (
101
+ <th key={s} style={{ padding: '0.5rem' }}>
102
+ {s}
103
+ </th>
104
+ ))}
105
+ </tr>
106
+ </thead>
107
+ <tbody>
108
+ <tr>
109
+ <td
110
+ style={{
111
+ padding: '0.5rem',
112
+ fontWeight: 600,
113
+ whiteSpace: 'nowrap',
114
+ }}
115
+ >
116
+ unchecked
117
+ </td>
118
+ {SIZES.map(s => (
119
+ <td key={s} style={{ padding: '0.5rem' }}>
120
+ <Checkbox
121
+ size={s}
122
+ disabled
123
+ aria-label={`Disabled unchecked ${s}`}
124
+ />
125
+ </td>
126
+ ))}
127
+ </tr>
128
+ <tr>
129
+ <td
130
+ style={{
131
+ padding: '0.5rem',
132
+ fontWeight: 600,
133
+ whiteSpace: 'nowrap',
134
+ }}
135
+ >
136
+ checked
137
+ </td>
138
+ {SIZES.map(s => (
139
+ <td key={s} style={{ padding: '0.5rem' }}>
140
+ <Checkbox
141
+ size={s}
142
+ checked
143
+ disabled
144
+ aria-label={`Disabled checked ${s}`}
145
+ />
146
+ </td>
147
+ ))}
148
+ </tr>
149
+ </tbody>
150
+ </table>
40
151
  </div>
41
- </div>
152
+ </section>
42
153
  </PageContentSection>
43
154
  </>
44
155
  );
@@ -0,0 +1,241 @@
1
+ import { useState } from 'react';
2
+
3
+ import { AnalysesSelector } from '#uilib/components/ui/AnalysesSelector';
4
+ import { AnalysisLineIcon } from '#uilib/components/ui/AnalysisLineIcon';
5
+ import {
6
+ Avatar,
7
+ AvatarFallback,
8
+ AvatarImage,
9
+ } from '#uilib/components/ui/Avatar';
10
+ import { Chip } from '#uilib/components/ui/Chip';
11
+ import { FileChip } from '#uilib/components/ui/FileChip';
12
+ import { Kicker } from '#uilib/components/ui/Kicker';
13
+ import { PageContentSection } from '#uilib/components/ui/Page';
14
+ import { PullQuote } from '#uilib/components/ui/PullQuote';
15
+ import { SmartTextTruncate } from '#uilib/components/ui/SmartTextTruncate';
16
+ import {
17
+ Table,
18
+ TableBody,
19
+ TableCell,
20
+ TableHead,
21
+ TableHeader,
22
+ TableRow,
23
+ } from '#uilib/components/ui/Table';
24
+ import { TextWithDeferTooltip } from '#uilib/components/ui/TextWithDeferTooltip';
25
+
26
+ import { AppPageHeader } from '../components/AppPageHeader/AppPageHeader';
27
+ import { DocsHeaderActions } from '../docsHeaderActions';
28
+
29
+ const SAMPLE_ROWS = [
30
+ { name: 'Ada', role: 'Admin', status: 'Active' },
31
+ { name: 'Bob', role: 'Viewer', status: 'Active' },
32
+ { name: 'Cara', role: 'Editor', status: 'Invited' },
33
+ ] as const;
34
+
35
+ const ANALYSES_ITEMS = [
36
+ { id: -1, label: 'Historical', color: 'var(--foreground)' },
37
+ {
38
+ id: 1,
39
+ label: 'Analysis A',
40
+ color: 'var(--chart-1)',
41
+ status: 'done' as const,
42
+ updated_at: new Date().toISOString(),
43
+ },
44
+ {
45
+ id: 2,
46
+ label: 'Analysis B',
47
+ color: 'var(--chart-2)',
48
+ status: 'done' as const,
49
+ updated_at: new Date().toISOString(),
50
+ },
51
+ ];
52
+
53
+ const LONG_TRUNCATE_LABEL =
54
+ 'Impact — Impact Report: Professional Beauty Segment Analysis Constraints Index';
55
+
56
+ const LONG_TOOLTIP_LABEL =
57
+ 'This is a long label that should overflow and show a tooltip on hover.';
58
+
59
+ const panelStyle: React.CSSProperties = {
60
+ display: 'flex',
61
+ flexDirection: 'column',
62
+ gap: '0.75rem',
63
+ padding: 'var(--p-3)',
64
+ borderRadius: 'var(--radius-3)',
65
+ };
66
+
67
+ export default function DataDisplayOverviewPage() {
68
+ const [selectedAnalysisIds, setSelectedAnalysisIds] = useState<Set<number>>(
69
+ () => new Set([1]),
70
+ );
71
+
72
+ return (
73
+ <>
74
+ <AppPageHeader
75
+ breadcrumbs={[{ label: 'Overview' }]}
76
+ title="Overview"
77
+ subheader="Avatars, labels, chips, and tabular data."
78
+ actions={<DocsHeaderActions />}
79
+ />
80
+ <PageContentSection
81
+ style={{ display: 'flex', flexDirection: 'column', gap: '2.5rem' }}
82
+ >
83
+ <section>
84
+ <h3 style={{ marginBottom: '1rem' }}>AnalysesSelector</h3>
85
+ <div style={{ ...panelStyle, maxWidth: 420 }}>
86
+ <AnalysesSelector
87
+ size="sm"
88
+ items={ANALYSES_ITEMS}
89
+ selectedIds={selectedAnalysisIds}
90
+ onItemToggle={id => {
91
+ setSelectedAnalysisIds(prev => {
92
+ const next = new Set(prev);
93
+ if (next.has(id)) next.delete(id);
94
+ else next.add(id);
95
+ return next;
96
+ });
97
+ }}
98
+ placeholder="Analyses"
99
+ />
100
+ </div>
101
+ </section>
102
+
103
+ <section>
104
+ <h3 style={{ marginBottom: '1rem' }}>AnalysisLineIcon</h3>
105
+ <div
106
+ style={{
107
+ ...panelStyle,
108
+ flexDirection: 'row',
109
+ alignItems: 'center',
110
+ }}
111
+ >
112
+ <AnalysisLineIcon color="var(--chart-1)" variant="solid" />
113
+ <AnalysisLineIcon color="var(--chart-2)" variant="dashed" />
114
+ </div>
115
+ </section>
116
+
117
+ <section>
118
+ <h3 style={{ marginBottom: '1rem' }}>Avatar</h3>
119
+ <div
120
+ style={{
121
+ ...panelStyle,
122
+ flexDirection: 'row',
123
+ alignItems: 'center',
124
+ }}
125
+ >
126
+ <Avatar>
127
+ <AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
128
+ <AvatarFallback>CN</AvatarFallback>
129
+ </Avatar>
130
+ <Avatar>
131
+ <AvatarFallback>AB</AvatarFallback>
132
+ </Avatar>
133
+ </div>
134
+ </section>
135
+
136
+ <section>
137
+ <h3 style={{ marginBottom: '1rem' }}>Chip</h3>
138
+ <div
139
+ style={{
140
+ ...panelStyle,
141
+ flexDirection: 'row',
142
+ flexWrap: 'wrap',
143
+ }}
144
+ >
145
+ <Chip variant="neutral">Neutral</Chip>
146
+ <Chip variant="positive">Positive</Chip>
147
+ <Chip variant="negative">Negative</Chip>
148
+ <Chip variant="accent">Accent</Chip>
149
+ </div>
150
+ </section>
151
+
152
+ <section>
153
+ <h3 style={{ marginBottom: '1rem' }}>FileChip</h3>
154
+ <div style={{ ...panelStyle, alignItems: 'flex-start' }}>
155
+ <FileChip name="report.pdf" format="pdf" hint="PDF" />
156
+ <FileChip
157
+ name="notes.txt"
158
+ format="text"
159
+ hint="Text file"
160
+ onRemove={() => {}}
161
+ />
162
+ </div>
163
+ </section>
164
+
165
+ <section>
166
+ <h3 style={{ marginBottom: '1rem' }}>Table</h3>
167
+ <div style={panelStyle}>
168
+ <Table size="md">
169
+ <TableHeader>
170
+ <TableRow>
171
+ <TableHead>Name</TableHead>
172
+ <TableHead>Role</TableHead>
173
+ <TableHead>Status</TableHead>
174
+ </TableRow>
175
+ </TableHeader>
176
+ <TableBody>
177
+ {SAMPLE_ROWS.map(row => (
178
+ <TableRow key={row.name}>
179
+ <TableCell>{row.name}</TableCell>
180
+ <TableCell>{row.role}</TableCell>
181
+ <TableCell>{row.status}</TableCell>
182
+ </TableRow>
183
+ ))}
184
+ </TableBody>
185
+ </Table>
186
+ </div>
187
+ </section>
188
+
189
+ <section>
190
+ <h3 style={{ marginBottom: '1rem' }}>Kicker</h3>
191
+ <div style={panelStyle}>
192
+ <Kicker dash>Quarterly outlook</Kicker>
193
+ <h2 style={{ marginTop: '0.5rem', marginBottom: 0 }}>
194
+ Polymer demand
195
+ </h2>
196
+ </div>
197
+ </section>
198
+
199
+ <section>
200
+ <h3 style={{ marginBottom: '1rem' }}>PullQuote</h3>
201
+ <div style={panelStyle}>
202
+ <PullQuote
203
+ attribution="Marta Linden"
204
+ attributionRole="Head of procurement"
205
+ >
206
+ Forecasts are only useful when they arrive before the decision.
207
+ </PullQuote>
208
+ </div>
209
+ </section>
210
+
211
+ <section>
212
+ <h3 style={{ marginBottom: '1rem' }}>SmartTextTruncate</h3>
213
+ <div
214
+ style={{
215
+ ...panelStyle,
216
+ width: 240,
217
+ border: '1px solid var(--border)',
218
+ }}
219
+ >
220
+ <SmartTextTruncate style={{ display: 'block', width: '100%' }}>
221
+ {LONG_TRUNCATE_LABEL}
222
+ </SmartTextTruncate>
223
+ </div>
224
+ </section>
225
+
226
+ <section>
227
+ <h3 style={{ marginBottom: '1rem' }}>TextWithDeferTooltip</h3>
228
+ <div
229
+ style={{
230
+ ...panelStyle,
231
+ maxWidth: 120,
232
+ border: '1px dashed var(--border)',
233
+ }}
234
+ >
235
+ <TextWithDeferTooltip>{LONG_TOOLTIP_LABEL}</TextWithDeferTooltip>
236
+ </div>
237
+ </section>
238
+ </PageContentSection>
239
+ </>
240
+ );
241
+ }