@swisper.ai/web-chat-ui 0.0.9 → 0.2.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.
Files changed (87) hide show
  1. package/README.md +2 -5
  2. package/dist/components/chat-card/chat-card.stories.d.ts.map +1 -1
  3. package/dist/components/chat-card/components/chat-card-header.d.ts.map +1 -1
  4. package/dist/components/chat-card-container/chat-card-container.stories.d.ts.map +1 -1
  5. package/dist/components/chat-thinking-process/chat-thinking-process.d.ts.map +1 -1
  6. package/dist/components/rich-text-field/rich-text-field.stories.d.ts.map +1 -1
  7. package/dist/components/rich-text-field/utils.d.ts +38 -38
  8. package/dist/index.css +1 -1
  9. package/dist/index.d.ts +0 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.es.js +1571 -1813
  12. package/dist/index.es.js.map +1 -1
  13. package/package.json +5 -5
  14. package/src/components/chat-card/chat-card.json +6 -6
  15. package/src/components/chat-card/chat-card.stories.tsx +6 -14
  16. package/src/components/chat-card/components/chat-card-body.tsx +1 -1
  17. package/src/components/chat-card/components/chat-card-header.tsx +3 -7
  18. package/src/components/chat-card-container/chat-card-container.json +6 -6
  19. package/src/components/chat-card-container/chat-card-container.stories.tsx +10 -18
  20. package/src/components/chat-container/chat-container.json +1 -1
  21. package/src/components/chat-thinking-process/chat-thinking-process.tsx +4 -12
  22. package/src/components/rich-text-area/__tests__/rich-text-area.spec.tsx +12 -2
  23. package/src/components/rich-text-field/rich-text-field.stories.tsx +3 -1
  24. package/src/index.ts +0 -1
  25. package/dist/layouts/chat-card-list-layout/chat-card-list-layout.d.ts +0 -97
  26. package/dist/layouts/chat-card-list-layout/chat-card-list-layout.d.ts.map +0 -1
  27. package/dist/layouts/chat-card-list-layout/chat-card-list-layout.stories.d.ts +0 -52
  28. package/dist/layouts/chat-card-list-layout/chat-card-list-layout.stories.d.ts.map +0 -1
  29. package/dist/layouts/chat-card-list-layout/index.d.ts +0 -3
  30. package/dist/layouts/chat-card-list-layout/index.d.ts.map +0 -1
  31. package/dist/layouts/chat-card-three-column-layout/chat-card-three-column-layout.d.ts +0 -84
  32. package/dist/layouts/chat-card-three-column-layout/chat-card-three-column-layout.d.ts.map +0 -1
  33. package/dist/layouts/chat-card-three-column-layout/chat-card-three-column-layout.sizing.d.ts +0 -45
  34. package/dist/layouts/chat-card-three-column-layout/chat-card-three-column-layout.sizing.d.ts.map +0 -1
  35. package/dist/layouts/chat-card-three-column-layout/chat-card-three-column-layout.stories.d.ts +0 -62
  36. package/dist/layouts/chat-card-three-column-layout/chat-card-three-column-layout.stories.d.ts.map +0 -1
  37. package/dist/layouts/chat-card-three-column-layout/chat-card-three-column-layout.variants.d.ts +0 -81
  38. package/dist/layouts/chat-card-three-column-layout/chat-card-three-column-layout.variants.d.ts.map +0 -1
  39. package/dist/layouts/chat-card-three-column-layout/index.d.ts +0 -5
  40. package/dist/layouts/chat-card-three-column-layout/index.d.ts.map +0 -1
  41. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.d.ts +0 -37
  42. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.d.ts.map +0 -1
  43. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.sizing.d.ts +0 -12
  44. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.sizing.d.ts.map +0 -1
  45. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.stories.d.ts +0 -40
  46. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.stories.d.ts.map +0 -1
  47. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.variants.d.ts +0 -35
  48. package/dist/layouts/chat-card-two-column-layout/chat-card-two-column-layout.variants.d.ts.map +0 -1
  49. package/dist/layouts/chat-card-two-column-layout/index.d.ts +0 -4
  50. package/dist/layouts/chat-card-two-column-layout/index.d.ts.map +0 -1
  51. package/dist/layouts/index.d.ts +0 -4
  52. package/dist/layouts/index.d.ts.map +0 -1
  53. package/src/layouts/chat-card-list-layout/__stories__/fixtures.ts +0 -112
  54. package/src/layouts/chat-card-list-layout/__stories__/result-card.tsx +0 -36
  55. package/src/layouts/chat-card-list-layout/__stories__/types.ts +0 -31
  56. package/src/layouts/chat-card-list-layout/__tests__/chat-card-list-layout.spec.tsx +0 -204
  57. package/src/layouts/chat-card-list-layout/chat-card-list-layout.json +0 -129
  58. package/src/layouts/chat-card-list-layout/chat-card-list-layout.stories.tsx +0 -422
  59. package/src/layouts/chat-card-list-layout/chat-card-list-layout.tsx +0 -254
  60. package/src/layouts/chat-card-list-layout/index.ts +0 -11
  61. package/src/layouts/chat-card-three-column-layout/__stories__/fixtures.ts +0 -117
  62. package/src/layouts/chat-card-three-column-layout/__stories__/resizable-chat-window.tsx +0 -18
  63. package/src/layouts/chat-card-three-column-layout/__stories__/stay-details.tsx +0 -85
  64. package/src/layouts/chat-card-three-column-layout/__stories__/stay-list.tsx +0 -50
  65. package/src/layouts/chat-card-three-column-layout/__stories__/stay-map.tsx +0 -44
  66. package/src/layouts/chat-card-three-column-layout/__stories__/stay-rooms.tsx +0 -61
  67. package/src/layouts/chat-card-three-column-layout/__stories__/types.ts +0 -35
  68. package/src/layouts/chat-card-three-column-layout/__tests__/chat-card-three-column-layout.sizing.test.ts +0 -73
  69. package/src/layouts/chat-card-three-column-layout/__tests__/chat-card-three-column-layout.spec.tsx +0 -282
  70. package/src/layouts/chat-card-three-column-layout/chat-card-three-column-layout.json +0 -147
  71. package/src/layouts/chat-card-three-column-layout/chat-card-three-column-layout.sizing.ts +0 -78
  72. package/src/layouts/chat-card-three-column-layout/chat-card-three-column-layout.stories.tsx +0 -694
  73. package/src/layouts/chat-card-three-column-layout/chat-card-three-column-layout.tsx +0 -291
  74. package/src/layouts/chat-card-three-column-layout/chat-card-three-column-layout.variants.ts +0 -135
  75. package/src/layouts/chat-card-three-column-layout/index.ts +0 -24
  76. package/src/layouts/chat-card-two-column-layout/__stories__/connection-itinerary.tsx +0 -51
  77. package/src/layouts/chat-card-two-column-layout/__stories__/fixtures.ts +0 -83
  78. package/src/layouts/chat-card-two-column-layout/__stories__/route-map.tsx +0 -24
  79. package/src/layouts/chat-card-two-column-layout/__stories__/types.ts +0 -15
  80. package/src/layouts/chat-card-two-column-layout/__tests__/chat-card-two-column-layout.spec.tsx +0 -109
  81. package/src/layouts/chat-card-two-column-layout/chat-card-two-column-layout.json +0 -109
  82. package/src/layouts/chat-card-two-column-layout/chat-card-two-column-layout.sizing.ts +0 -21
  83. package/src/layouts/chat-card-two-column-layout/chat-card-two-column-layout.stories.tsx +0 -439
  84. package/src/layouts/chat-card-two-column-layout/chat-card-two-column-layout.tsx +0 -141
  85. package/src/layouts/chat-card-two-column-layout/chat-card-two-column-layout.variants.ts +0 -65
  86. package/src/layouts/chat-card-two-column-layout/index.ts +0 -17
  87. package/src/layouts/index.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swisper.ai/web-chat-ui",
3
- "version": "0.0.9",
3
+ "version": "0.2.0",
4
4
  "description": "React components for the Swisper chat: messages, composer and cards",
5
5
  "keywords": [
6
6
  "react",
@@ -65,10 +65,10 @@
65
65
  "@radix-ui/react-slot": "^1.1.0",
66
66
  "@shadcn/react": "^0.3.1",
67
67
  "@swisper.ai/design-system": "0.0.4",
68
- "@swisper.ai/icons": "0.0.4",
68
+ "@swisper.ai/icons": "0.0.6",
69
69
  "@swisper.ai/tailwind-config": "0.0.4",
70
- "@swisper.ai/ui": "0.3.1",
71
- "@swisper.ai/web-core": "0.0.3",
70
+ "@swisper.ai/ui": "0.4.1",
71
+ "@swisper.ai/web-core": "0.0.5",
72
72
  "@tanstack/react-virtual": "^3.14.5",
73
73
  "chroma-js": "^3.2.0",
74
74
  "class-variance-authority": "^0.7.1",
@@ -99,7 +99,7 @@
99
99
  "devDependencies": {
100
100
  "@fintama/swisper-int-storybook-theme": "0.0.2",
101
101
  "@fintama/swisper-int-vite-config": "0.0.1",
102
- "@fintama/swisper-int-vitest-config": "0.0.1",
102
+ "@fintama/swisper-int-vitest-config": "0.0.2",
103
103
  "@storybook/addon-a11y": "10.6.0",
104
104
  "@storybook/addon-docs": "10.6.0",
105
105
  "@storybook/addon-vitest": "10.6.0",
@@ -133,7 +133,7 @@
133
133
  "composition": {
134
134
  "allowedParents": [
135
135
  "web-chat-ui/chat-card-container",
136
- "web-chat-ui/ChatCardListLayoutItems",
136
+ "cards-ui/ListLayoutItems",
137
137
  "web-chat-ui/ChatCardContent"
138
138
  ],
139
139
  "allowedChildren": [
@@ -158,8 +158,8 @@
158
158
  "web-chat-ui/ChatCardFooterNotes",
159
159
  "web-chat-ui/ChatCardFooterPrice",
160
160
  "web-chat-ui/ChatCardFooterActions",
161
- "web-chat-ui/chat-card-two-column-layout",
162
- "web-chat-ui/chat-card-three-column-layout"
161
+ "cards-ui/two-column-layout",
162
+ "cards-ui/three-column-layout"
163
163
  ],
164
164
  "avoidCombinations": [
165
165
  "Nesting deeper than level 2 — there is no level 3; restructure the content instead",
@@ -206,9 +206,9 @@
206
206
  "relatedComponents": [
207
207
  "cards-ui/card",
208
208
  "web-chat-ui/chat-card-container",
209
- "web-chat-ui/chat-card-list-layout",
210
- "web-chat-ui/chat-card-two-column-layout",
211
- "web-chat-ui/chat-card-three-column-layout",
209
+ "cards-ui/list-layout",
210
+ "cards-ui/two-column-layout",
211
+ "cards-ui/three-column-layout",
212
212
  "web-chat-ui/chat-reply",
213
213
  "ui/card",
214
214
  "ui/collapsible"
@@ -16,11 +16,6 @@ import {
16
16
  import { Button, TextField, Typography, withTooltip } from '@swisper.ai/ui';
17
17
 
18
18
  import { ParentBlock } from '../../__storybook__/parent-block';
19
- import {
20
- ChatCardListLayout,
21
- ChatCardListLayoutItems,
22
- ChatCardListLayoutShowMore,
23
- } from '../../layouts/chat-card-list-layout';
24
19
  import { ChatCardContainer } from '../chat-card-container';
25
20
 
26
21
  import {
@@ -759,16 +754,13 @@ export const Examples: Story = {
759
754
  </ChatCardContainer>
760
755
  </ParentBlock>
761
756
 
762
- <ParentBlock parent="web-chat-ui/ChatCardListLayoutItems">
757
+ <ParentBlock parent="list of cards">
763
758
  <ChatCardContainer variant="fixed">
764
- <ChatCardListLayout className="flex flex-col gap-8">
765
- <ChatCardListLayoutItems>
766
- {INBOX_EMAILS.map((email) => (
767
- <EmailCard key={email.id} email={email} defaultOpen={false} />
768
- ))}
769
- </ChatCardListLayoutItems>
770
- <ChatCardListLayoutShowMore>Show more</ChatCardListLayoutShowMore>
771
- </ChatCardListLayout>
759
+ <div className="flex flex-col gap-8">
760
+ {INBOX_EMAILS.map((email) => (
761
+ <EmailCard key={email.id} email={email} defaultOpen={false} />
762
+ ))}
763
+ </div>
772
764
  </ChatCardContainer>
773
765
  </ParentBlock>
774
766
 
@@ -42,7 +42,7 @@ export function ChatCardBody({ className, children, asChild = false, ...rest }:
42
42
  className={cn(
43
43
  'flex flex-1 flex-col',
44
44
  'min-h-0',
45
- 'md:group-data-[collapsible=true]/chat-card:max-h-[90vh]',
45
+ 'md:group-data-[collapsible=true]/cards-ui-card:max-h-[calc(var(--chat-window-height)*0.9)]',
46
46
  'overflow-hidden',
47
47
  className,
48
48
  )}
@@ -1,7 +1,7 @@
1
1
  import type { ComponentProps, ReactNode } from 'react';
2
2
 
3
- import { ChevronDownIcon } from '@swisper.ai/icons';
4
3
  import {
4
+ CollapsibleChevron,
5
5
  CollapsibleTrigger,
6
6
  IconButton,
7
7
  Tooltip,
@@ -264,14 +264,10 @@ export function ChatCardCollapsibleButton({ className, ...rest }: ChatCardCollap
264
264
  data-slot="chat-card-collapsible-button"
265
265
  shouldPreventCollapse={false}
266
266
  isSemantic={false}
267
- className={cn(
268
- 'transition-transform duration-300',
269
- 'group-data-[state=open]/collapsible:rotate-180',
270
- className,
271
- )}
267
+ className={className}
272
268
  {...rest}
273
269
  >
274
- <ChevronDownIcon />
270
+ <CollapsibleChevron />
275
271
  </ChatCardActionButton>
276
272
  );
277
273
  }
@@ -8,7 +8,7 @@
8
8
  "<ChatCardContainer />"
9
9
  ],
10
10
  "useWhen": [
11
- "Placing a ChatCard (or a ChatCardListLayout of cards) in a chat message list",
11
+ "Placing a ChatCard (or a ListLayout of cards) in a chat message list",
12
12
  "A card should match the reading column of the messages around it (variant fixed)",
13
13
  "A card holds a wide layout that needs the whole chat window, such as a two- or three-column card body (variant full)",
14
14
  "A card is rendered inside a message body next to text and must share its inset (inline)"
@@ -40,10 +40,10 @@
40
40
  },
41
41
  "composition": {
42
42
  "allowedParents": ["web-chat-ui/chat-container", "web-chat-ui/ChatMessageContent"],
43
- "allowedChildren": ["web-chat-ui/chat-card", "web-chat-ui/chat-card-list-layout"],
43
+ "allowedChildren": ["web-chat-ui/chat-card", "cards-ui/list-layout"],
44
44
  "avoidCombinations": [
45
45
  "Adding px-message to a non-inline container — the card is then inset by two gutters; set inline instead",
46
- "variant=fixed around a card with ChatCardTwoColumnLayout or ChatCardThreeColumnLayout — the reading-column cap keeps it from ever reaching the multi-column width; use variant=full",
46
+ "variant=fixed around a card with TwoColumnLayout or ThreeColumnLayout — the reading-column cap keeps it from ever reaching the multi-column width; use variant=full",
47
47
  "Nesting one ChatCardContainer in another — the inner one subtracts the gutter a second time"
48
48
  ],
49
49
  "contexts": ["chat message list", "chat message body"]
@@ -79,9 +79,9 @@
79
79
  "cards-ui/flexible-container",
80
80
  "web-chat-ui/chat-card",
81
81
  "web-chat-ui/chat-container",
82
- "web-chat-ui/chat-card-list-layout",
83
- "web-chat-ui/chat-card-two-column-layout",
84
- "web-chat-ui/chat-card-three-column-layout"
82
+ "cards-ui/list-layout",
83
+ "cards-ui/two-column-layout",
84
+ "cards-ui/three-column-layout"
85
85
  ],
86
86
  "tokenReferences": {
87
87
  "source": "packages/design-system/src/tailwind.css",
@@ -2,11 +2,6 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { expect } from 'storybook/test';
3
3
 
4
4
  import { ParentBlock } from '../../__storybook__/parent-block';
5
- import {
6
- ChatCardListLayout,
7
- ChatCardListLayoutItems,
8
- ChatCardListLayoutShowMore,
9
- } from '../../layouts/chat-card-list-layout';
10
5
  import { ChatContainer } from '../chat-container';
11
6
  import { ChatMessage, ChatMessageContent } from '../chat-message';
12
7
 
@@ -36,7 +31,7 @@ const meta: Meta<typeof ChatCardContainer> = {
36
31
  },
37
32
  children: {
38
33
  control: false,
39
- description: 'The card to size: a `ChatCard`, or a `ChatCardListLayout` of cards.',
34
+ description: 'The card to size: a `ChatCard`, or a `ListLayout` of cards.',
40
35
  },
41
36
  className: {
42
37
  control: 'text',
@@ -55,17 +50,14 @@ type Story = StoryObj<typeof ChatCardContainer>;
55
50
  /** A train connection as one card of a result list. */
56
51
  function ConnectionCards() {
57
52
  return (
58
- <ChatCardListLayout visibleCount={2} className="flex flex-col gap-8">
59
- <ChatCardListLayoutItems>
60
- {TRAIN_CONNECTIONS.map((connection) => (
61
- <ResultCard key={connection.train} title={`${connection.train}, ${connection.route}`}>
62
- {connection.departure} to {connection.arrival}, {connection.duration}, from{' '}
63
- {connection.price}.
64
- </ResultCard>
65
- ))}
66
- </ChatCardListLayoutItems>
67
- <ChatCardListLayoutShowMore>Show more</ChatCardListLayoutShowMore>
68
- </ChatCardListLayout>
53
+ <div className="flex flex-col gap-8">
54
+ {TRAIN_CONNECTIONS.map((connection) => (
55
+ <ResultCard key={connection.train} title={`${connection.train}, ${connection.route}`}>
56
+ {connection.departure} to {connection.arrival}, {connection.duration}, from{' '}
57
+ {connection.price}.
58
+ </ResultCard>
59
+ ))}
60
+ </div>
69
61
  );
70
62
  }
71
63
 
@@ -291,7 +283,7 @@ export const Playground: Story = {
291
283
  Card: <ResultCard title="Weather in Zurich">{WEATHER_SUMMARY}</ResultCard>,
292
284
  'Card list': <ConnectionCards />,
293
285
  },
294
- description: 'What the container sizes: one `ChatCard`, or a `ChatCardListLayout` of cards.',
286
+ description: 'What the container sizes: one `ChatCard`, or a `ListLayout` of cards.',
295
287
  },
296
288
  },
297
289
  render: (args) => (
@@ -11,7 +11,7 @@
11
11
  "</ChatContainer>"
12
12
  ],
13
13
  "useWhen": [
14
- "Wrapping a full chat surface whose cards and layouts size against the chat window (web-chat-ui/chat-card-container, the chat-card layouts)",
14
+ "Wrapping a full chat surface whose cards and layouts size against the chat window (web-chat-ui/chat-card-container, the cards-ui layouts)",
15
15
  "The message list has to reserve room for a composer that grows as the user types, or for a welcome box shown on an empty chat",
16
16
  "The chat sits in a resizable or split pane and children must never grow wider than it"
17
17
  ],
@@ -1,9 +1,9 @@
1
1
  import { AnimatePresence, motion } from 'motion/react';
2
2
  import React, { forwardRef, type ComponentProps, type ReactNode, useMemo } from 'react';
3
3
 
4
- import { ChevronDownIcon } from '@swisper.ai/icons';
5
4
  import {
6
5
  Collapsible,
6
+ CollapsibleChevron,
7
7
  CollapsibleContent,
8
8
  CollapsibleTrigger,
9
9
  Typography,
@@ -144,20 +144,12 @@ export function ChatThinkingProcessTriggerArrow({
144
144
  ...rest
145
145
  }: ChatThinkingProcessTriggerArrowProps) {
146
146
  return (
147
- <span
147
+ <CollapsibleChevron
148
148
  data-slot="chat-thinking-process-trigger-arrow"
149
149
  data-testid="chat-thinking-process-trigger-arrow"
150
- aria-hidden
151
- className={cn(
152
- 'inline-flex shrink-0 items-center justify-center text-text-secondary',
153
- 'transition-transform duration-300',
154
- 'group-data-[state=open]/collapsible:rotate-180',
155
- className,
156
- )}
150
+ className={cn('items-center justify-center text-text-secondary', className)}
157
151
  {...rest}
158
- >
159
- <ChevronDownIcon />
160
- </span>
152
+ />
161
153
  );
162
154
  }
163
155
 
@@ -43,16 +43,26 @@ async function settle() {
43
43
  });
44
44
  }
45
45
 
46
- // The editor reads the desktop breakpoint token to decide whether to refocus, and no stylesheet
47
- // is loaded here.
46
+ // jsdom has no `matchMedia`, so the function is assigned rather than spied on.
47
+ const { matchMedia } = window;
48
+
49
+ // The editor reads the desktop breakpoint token and matches it to decide whether to refocus; no
50
+ // stylesheet is loaded here.
48
51
  beforeEach(() => {
49
52
  document.documentElement.style.setProperty('--breakpoint-lg', '1024px');
53
+ window.matchMedia = ((query: string) => ({
54
+ matches: true,
55
+ media: query,
56
+ addEventListener() {},
57
+ removeEventListener() {},
58
+ })) as unknown as typeof window.matchMedia;
50
59
  });
51
60
 
52
61
  afterEach(() => {
53
62
  cleanup();
54
63
  vi.restoreAllMocks();
55
64
  document.documentElement.style.removeProperty('--breakpoint-lg');
65
+ window.matchMedia = matchMedia;
56
66
  });
57
67
 
58
68
  describe('a value the parent renders', () => {
@@ -317,7 +317,9 @@ export const EmptyTypeAndFormat: Story = {
317
317
  await expect(boldButton).not.toHaveAttribute('data-active');
318
318
  await userEvent.click(boldButton);
319
319
  await expect(boldButton).toHaveAttribute('data-active');
320
- await userEvent.click(editor);
320
+ // The editor takes focus back by itself. Clicking into it here would move the caret, and
321
+ // Lexical drops a pending format on a caret move that comes over 200ms after the toggle.
322
+ await expect(editor).toHaveFocus();
321
323
  await userEvent.keyboard(' for us');
322
324
  await expect(editor).toHaveTextContent('Tuesday works for us');
323
325
  await expect(args.onChange).toHaveBeenLastCalledWith(expect.stringContaining('**'));
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
- export * from './layouts';
2
1
  export * from './components';
3
2
  export * from './contexts';
4
3
  export * from './domain';
@@ -1,97 +0,0 @@
1
- import { ComponentProps, ReactNode } from 'react';
2
- import { ButtonProps } from '@swisper.ai/ui';
3
- interface ChatCardListLayoutContextValue {
4
- visibleCount: number;
5
- isExpanded: boolean;
6
- expand: () => void;
7
- hiddenCount: number;
8
- setHiddenCount: (count: number) => void;
9
- }
10
- /**
11
- * Reads the layout's state from any descendant.
12
- *
13
- * Exported so a consumer can put the hidden count in their own label ("Show 5 more") or
14
- * build a trigger that isn't a `Button`. `hiddenCount` is `0` on the first render and
15
- * correct from the first layout effect onwards — see `ChatCardListLayoutItems`.
16
- */
17
- export declare function useChatCardListLayoutContext(): ChatCardListLayoutContextValue;
18
- export interface ChatCardListLayoutProps extends ComponentProps<'div'> {
19
- children: ReactNode;
20
- /**
21
- * How many items `ChatCardListLayoutItems` renders while collapsed.
22
- *
23
- * Clamped at zero: a negative value would reach `Array.slice` as a count from the end
24
- * and quietly render the *last* n items, which is the opposite of what the caller
25
- * asked for.
26
- */
27
- visibleCount?: number;
28
- /**
29
- * Expanded state for the uncontrolled case. Set it when the surrounding message is
30
- * restored from history and the reader had already expanded this list.
31
- */
32
- defaultExpanded?: boolean;
33
- /**
34
- * Controlled expanded state. Pass it only if something outside owns the state —
35
- * driving it back to `false` re-collapses the list and brings the button back, which
36
- * the uncontrolled component deliberately cannot do.
37
- */
38
- expanded?: boolean;
39
- onExpandedChange?: (expanded: boolean) => void;
40
- asChild?: boolean;
41
- }
42
- /**
43
- * Holds a list of chat cards and reveals the overflow behind a one-way "show more".
44
- *
45
- * Structure and state only. By default the root stacks its children in a left-aligned
46
- * column with an 8px gap; `className` is merged last, so the consumer's direction, gap and
47
- * alignment replace those and the same layout serves a stacked card list and a horizontal
48
- * strip without a variant prop. The `group/chat-card-list-layout` marker paints nothing
49
- * and exists so descendants can react to the expanded state with
50
- * `group-data-[expanded=true]/chat-card-list-layout:…`.
51
- *
52
- * The three parts exist because the pieces of information live in different places: only
53
- * `ChatCardListLayoutItems` knows how many children there are, only
54
- * `ChatCardListLayoutShowMore` needs to know whether any are hidden, and this root owns
55
- * the state that joins them. Slicing here instead would mean telling item children apart
56
- * from the button by inspecting `child.type`, which breaks the moment either is wrapped.
57
- */
58
- export declare const ChatCardListLayout: import('react').ForwardRefExoticComponent<Omit<ChatCardListLayoutProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
59
- export interface ChatCardListLayoutItemsProps {
60
- children: ReactNode;
61
- }
62
- /**
63
- * Renders the visible slice of the list, and nothing else — no wrapper element.
64
- *
65
- * A `div` here would sit between the root's `className` and the cards, so a consumer's
66
- * `flex`/`grid` on the root would apply to this one wrapper instead of to the items and
67
- * the layout would silently collapse to a single column. There is no `className` prop
68
- * for the same reason: there is no node to hang it on.
69
- *
70
- * Hidden items are sliced away rather than hidden with CSS, so they never mount: no DOM,
71
- * no image or data fetches from cards nobody has asked for, and nothing invisible in the
72
- * tab order.
73
- *
74
- * Only one of these per layout. Two would race on `hiddenCount` and the last effect
75
- * would win; summing across instances is buildable but nothing needs it yet.
76
- */
77
- export declare function ChatCardListLayoutItems({ children }: ChatCardListLayoutItemsProps): import('react').JSX.Element;
78
- export interface ChatCardListLayoutShowMoreProps extends Omit<ButtonProps, 'children'> {
79
- /**
80
- * The label. Required on purpose: a default `'Show more'` baked into the package would
81
- * be untranslatable by the app that ships it, and this is the one string in the layout
82
- * a reader actually sees.
83
- */
84
- children: ReactNode;
85
- }
86
- /**
87
- * The reveal trigger. Renders nothing once there is nothing left to reveal — either the
88
- * list is expanded, or it never overflowed — which is what makes the button a one-shot
89
- * affordance rather than a toggle.
90
- *
91
- * By default it is a small tertiary `Button` centred under the cards. Every `Button` prop
92
- * is forwarded after those defaults and `className` is merged last, so a consumer's
93
- * `variant`, `size` or classes win.
94
- */
95
- export declare const ChatCardListLayoutShowMore: import('react').ForwardRefExoticComponent<Omit<ChatCardListLayoutShowMoreProps, "ref"> & import('react').RefAttributes<HTMLButtonElement | HTMLSpanElement>>;
96
- export {};
97
- //# sourceMappingURL=chat-card-list-layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-card-list-layout.d.ts","sourceRoot":"","sources":["../../../src/layouts/chat-card-list-layout/chat-card-list-layout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAanE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAalD,UAAU,8BAA8B;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAID;;;;;;GAMG;AACH,wBAAgB,4BAA4B,mCAY3C;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc,CAAC,KAAK,CAAC;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,iIA2D9B,CAAC;AAIF,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE,4BAA4B,+BAkBjF;AAED,MAAM,WAAW,+BAAgC,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IACpF;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,8JAgCrC,CAAC"}
@@ -1,52 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { ButtonProps } from '@swisper.ai/ui';
3
- import { ChatCardListLayout } from './chat-card-list-layout';
4
- declare const meta: Meta<typeof ChatCardListLayout>;
5
- export default meta;
6
- type Story = StoryObj<typeof ChatCardListLayout>;
7
- /**
8
- * Six emails, three shown. The other three are not in the DOM until the button is clicked, and
9
- * the button removes itself once they are.
10
- */
11
- export declare const Default: Story;
12
- /** Checks that only the visible slice mounts, and that the button reveals the rest from the keyboard and then removes itself. */
13
- export declare const ShowMoreRevealsCards: Story;
14
- /**
15
- * Two events under the default limit of three. The button is never rendered, so a short list
16
- * carries no dead affordance.
17
- */
18
- export declare const ShorterThanLimit: Story;
19
- /** Checks that a list shorter than the limit mounts every card and no button. */
20
- export declare const ShorterThanLimitHasNoButton: Story;
21
- /**
22
- * A list that starts expanded, as in a message restored from history that the reader had already
23
- * expanded: every card is mounted and there is no button.
24
- */
25
- export declare const Expanded: Story;
26
- /**
27
- * The label is a required child rather than a built-in string, so it can be translated and can
28
- * carry the count: `useChatCardListLayoutContext` publishes `hiddenCount` for exactly this.
29
- */
30
- export declare const CountInLabel: Story;
31
- /** Checks that the label counts the hidden cards and that a click reveals them. */
32
- export declare const CountInLabelCountsHiddenCards: Story;
33
- /** The list in the parent it's allowed in, then in a chat thread and in an assistant message. */
34
- export declare const Examples: Story;
35
- interface ChatCardListLayoutPlaygroundProps {
36
- visibleCount: number;
37
- defaultExpanded: boolean;
38
- expanded?: boolean;
39
- asChild: boolean;
40
- className: string;
41
- itemCount: number;
42
- label: string;
43
- variant: ButtonProps['variant'];
44
- size: ButtonProps['size'];
45
- hasCountInLabel: boolean;
46
- onExpandedChange: (expanded: boolean) => void;
47
- onClick: () => void;
48
- }
49
- declare function ChatCardListLayoutPlayground({ visibleCount, defaultExpanded, expanded, asChild, className, itemCount, label, variant, size, hasCountInLabel, onExpandedChange, onClick, }: ChatCardListLayoutPlaygroundProps): import('react').JSX.Element;
50
- /** Every part of the list at once, with each prop, the card count and both kinds of trigger on the Controls panel. */
51
- export declare const Playground: StoryObj<typeof ChatCardListLayoutPlayground>;
52
- //# sourceMappingURL=chat-card-list-layout.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-card-list-layout.stories.d.ts","sourceRoot":"","sources":["../../../src/layouts/chat-card-list-layout/chat-card-list-layout.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AASlD,OAAO,EACL,kBAAkB,EAInB,MAAM,yBAAyB,CAAC;AAGjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAuDzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAmBrB,CAAC;AAEF,iIAAiI;AACjI,eAAO,MAAM,oBAAoB,EAAE,KAyBlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAgB9B,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,EAAE,KAQzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAGtB,CAAC;AAWF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,KAoB1B,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,6BAA6B,EAAE,KAiB3C,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,QAAQ,EAAE,KAoEtB,CAAC;AAEF,UAAU,iCAAiC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAChC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,iBAAS,4BAA4B,CAAC,EACpC,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,KAAK,EACL,OAAO,EACP,IAAI,EACJ,eAAe,EACf,gBAAgB,EAChB,OAAO,GACR,EAAE,iCAAiC,+BAwCnC;AAED,sHAAsH;AACtH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,OAAO,4BAA4B,CAiDpE,CAAC"}
@@ -1,3 +0,0 @@
1
- export { ChatCardListLayout, ChatCardListLayoutItems, ChatCardListLayoutShowMore, useChatCardListLayoutContext, } from './chat-card-list-layout';
2
- export type { ChatCardListLayoutProps, ChatCardListLayoutItemsProps, ChatCardListLayoutShowMoreProps, } from './chat-card-list-layout';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/chat-card-list-layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,uBAAuB,EACvB,4BAA4B,EAC5B,+BAA+B,GAChC,MAAM,yBAAyB,CAAC"}
@@ -1,84 +0,0 @@
1
- import { ComponentProps, ReactNode } from 'react';
2
- import { ChatCardThreeColumnLayoutDetailsPlacement } from './chat-card-three-column-layout.variants';
3
- /**
4
- * A pane's content, or a function of whether the pane is currently floating.
5
- *
6
- * The function form exists because a floating pane usually needs different content, not
7
- * just different styling: the places card shows a vertical list in the column and a
8
- * horizontal swipe strip when floating. CSS alone cannot swap the component tree.
9
- */
10
- export type ChatCardThreeColumnLayoutPaneChildren = ReactNode | ((isFloating: boolean) => ReactNode);
11
- export interface ChatCardThreeColumnLayoutProps extends ComponentProps<'div'> {
12
- children: ReactNode;
13
- /**
14
- * Whether Details may take its own column. See `ChatCardThreeColumnLayoutDetailsPlacement`.
15
- * It is on the root, not on Details, because the root's grid template has to change
16
- * with it.
17
- */
18
- detailsPlacement?: ChatCardThreeColumnLayoutDetailsPlacement;
19
- asChild?: boolean;
20
- }
21
- /**
22
- * A three-pane card body: List (fixed column), Main (flexible), Details (floating or a
23
- * right column).
24
- *
25
- * Which panes fit is decided by the layout's **own measured width**, not by viewport
26
- * breakpoints. The card is sized by the chat window, and a sidebar, a split view or the
27
- * Storybook panel all make the viewport claim room the card doesn't have (or the
28
- * reverse). The root measures itself, resolves the panes once (`resolveLayout`), and
29
- * publishes the result twice: as data attributes for the CSS, and through context for the render props. Both read the same numbers, so the content a
30
- * render prop picks always matches where its pane is drawn.
31
- *
32
- * Height is not set here, because it belongs to the content (a map needs a fixed height, a
33
- * table might not), so pass it in `className`.
34
- */
35
- export declare const ChatCardThreeColumnLayout: import('react').ForwardRefExoticComponent<Omit<ChatCardThreeColumnLayoutProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
36
- export interface ChatCardThreeColumnLayoutListProps extends Omit<ComponentProps<'aside'>, 'children'> {
37
- children: ChatCardThreeColumnLayoutPaneChildren;
38
- asChild?: boolean;
39
- }
40
- /**
41
- * Column 1 when the layout has room for it beside a usable Main; otherwise a strip pinned
42
- * to the bottom, over Main. It is the same element either way, so only the render prop's
43
- * output changes when it switches.
44
- *
45
- * `data-floating` is set too, for styling the pane itself without a render prop.
46
- */
47
- export declare const ChatCardThreeColumnLayoutList: import('react').ForwardRefExoticComponent<Omit<ChatCardThreeColumnLayoutListProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
48
- export interface ChatCardThreeColumnLayoutMainProps extends ComponentProps<'main'> {
49
- children: ReactNode;
50
- asChild?: boolean;
51
- }
52
- /**
53
- * Column 2, the flexible track. It never floats, so it takes plain children. It still
54
- * requires the layout, because outside the grid its `[grid-area:main]` means nothing and
55
- * the pane collapses without any error.
56
- */
57
- export declare const ChatCardThreeColumnLayoutMain: import('react').ForwardRefExoticComponent<Omit<ChatCardThreeColumnLayoutMainProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
58
- export interface ChatCardThreeColumnLayoutDetailsProps extends Omit<ComponentProps<'aside'>, 'children'> {
59
- children: ChatCardThreeColumnLayoutPaneChildren;
60
- asChild?: boolean;
61
- }
62
- /**
63
- * Column 3. Mount it only while there is something to show: its presence is what adds the
64
- * third grid track, so rendering it empty would reserve a blank column.
65
- *
66
- * It takes a column when the layout is wide enough and `detailsPlacement` allows it, and
67
- * floats over Main otherwise: pinned to Main's right edge, or a bottom sheet on a narrow
68
- * layout (`data-sheet`). `isFloating` in the render prop reflects all of that.
69
- */
70
- export declare const ChatCardThreeColumnLayoutDetails: import('react').ForwardRefExoticComponent<Omit<ChatCardThreeColumnLayoutDetailsProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
71
- export interface ChatCardThreeColumnLayoutPanelProps extends ComponentProps<'section'> {
72
- children: ReactNode;
73
- asChild?: boolean;
74
- }
75
- /**
76
- * An overlay covering everything but the List column (the whole layout when List floats),
77
- * inset 12px. Mount it only while it is open. Main and Details stay mounted under it, so
78
- * a map keeps its viewport and the open Details item survives closing the Panel.
79
- *
80
- * The pane is transparent: draw the surface (background, radius, shadow) in its content,
81
- * as for Details.
82
- */
83
- export declare const ChatCardThreeColumnLayoutPanel: import('react').ForwardRefExoticComponent<Omit<ChatCardThreeColumnLayoutPanelProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
84
- //# sourceMappingURL=chat-card-three-column-layout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-card-three-column-layout.d.ts","sourceRoot":"","sources":["../../../src/layouts/chat-card-three-column-layout/chat-card-three-column-layout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAarE,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,0CAA0C,CAAC;AA0B1G;;;;;;GAMG;AACH,MAAM,MAAM,qCAAqC,GAC/C,SAAS,GAAG,CAAC,CAAC,UAAU,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC;AAMnD,MAAM,WAAW,8BAA+B,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC3E,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,yCAAyC,CAAC;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAkBD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB,wIAsCrC,CAAC;AAIF,MAAM,WAAW,kCAAmC,SAAQ,IAAI,CAC9D,cAAc,CAAC,OAAO,CAAC,EACvB,UAAU,CACX;IACC,QAAQ,EAAE,qCAAqC,CAAC;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,4IAoBxC,CAAC;AAIH,MAAM,WAAW,kCAAmC,SAAQ,cAAc,CAAC,MAAM,CAAC;IAChF,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,4IAmBxC,CAAC;AAIH,MAAM,WAAW,qCAAsC,SAAQ,IAAI,CACjE,cAAc,CAAC,OAAO,CAAC,EACvB,UAAU,CACX;IACC,QAAQ,EAAE,qCAAqC,CAAC;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC,+IA0B3C,CAAC;AAIH,MAAM,WAAW,mCAAoC,SAAQ,cAAc,CAAC,SAAS,CAAC;IACpF,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,0IAmBzC,CAAC"}
@@ -1,45 +0,0 @@
1
- import { ChatCardThreeColumnLayoutDetailsPlacement } from './chat-card-three-column-layout.variants';
2
- export declare const LIST_WIDTH_LG = 290;
3
- /** List at `xl`, and Details at every tier (as a column and as a pinned floating pane). */
4
- export declare const PANE_WIDTH_XL = 358;
5
- /**
6
- * Narrowest Main may get before a pane has to float over it instead of sitting beside it.
7
- * Main is usually a map or a chart, and below ~400px a map shows too little context to
8
- * pick a place from. This is the one number to tune when a card feels cramped.
9
- */
10
- export declare const MIN_MAIN_WIDTH = 400;
11
- /** Must equal the `gap-[8px]` on the root grid, or the thresholds are off by that much. */
12
- export declare const GAP = 8;
13
- /**
14
- * Below this, a floating Details is a bottom sheet (`sm`). Pinned to Main's right edge at
15
- * 358px, it would leave a sliver of Main too thin to read or tap.
16
- */
17
- export declare const MD_MIN_WIDTH = 640;
18
- /** `lg`: a 290px List column fits beside a usable Main. */
19
- export declare const LG_MIN_WIDTH: number;
20
- /**
21
- * `xl`: a Details column fits beside a 358px List and a usable Main. List widens to 358px at
22
- * the same point, as in the original, where both changed at the `xl` breakpoint.
23
- */
24
- export declare const XL_MIN_WIDTH: number;
25
- /** Size tier, named after the viewport breakpoints the original card used. */
26
- export type ChatCardThreeColumnLayoutSize = 'sm' | 'md' | 'lg' | 'xl';
27
- export interface ChatCardThreeColumnLayoutResolved {
28
- size: ChatCardThreeColumnLayoutSize;
29
- isListFloating: boolean;
30
- isDetailsFloating: boolean;
31
- isDetailsSheet: boolean;
32
- }
33
- /**
34
- * Where each pane goes, given the width the layout actually has.
35
- *
36
- * The tiers are the original card's `md` / `lg` / `xl`, but measured on the layout, not
37
- * the viewport. The card is sized by the chat window, and a sidebar, a split view or the
38
- * Storybook panel all make the viewport claim room the card doesn't have (or the reverse).
39
- *
40
- * `'unset'` means the layout has not been measured yet (on the server, or before the first
41
- * layout effect). It resolves to `xl`: SSR HTML is mostly seen on desktops, and on the
42
- * client the measurement lands before paint.
43
- */
44
- export declare function resolveLayout(width: number | 'unset', detailsPlacement: ChatCardThreeColumnLayoutDetailsPlacement): ChatCardThreeColumnLayoutResolved;
45
- //# sourceMappingURL=chat-card-three-column-layout.sizing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-card-three-column-layout.sizing.d.ts","sourceRoot":"","sources":["../../../src/layouts/chat-card-three-column-layout/chat-card-three-column-layout.sizing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,0CAA0C,CAAC;AAQ1G,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,2FAA2F;AAC3F,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC;;;;GAIG;AACH,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,2FAA2F;AAC3F,eAAO,MAAM,GAAG,IAAI,CAAC;AAErB;;;GAGG;AACH,eAAO,MAAM,YAAY,MAAM,CAAC;AAEhC,2DAA2D;AAC3D,eAAO,MAAM,YAAY,QAAuC,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,YAAY,QAA+C,CAAC;AAEzE,8EAA8E;AAC9E,MAAM,MAAM,6BAA6B,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtE,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,6BAA6B,CAAC;IACpC,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;CACzB;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,GAAG,OAAO,EACvB,gBAAgB,EAAE,yCAAyC,GAC1D,iCAAiC,CASnC"}