@kushagradhawan/kookie-ui 0.1.52 → 0.1.54
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/components.css +72 -72
- package/dist/cjs/components/_internal/shell-bottom.js.map +2 -2
- package/dist/cjs/components/_internal/shell-handles.js +1 -1
- package/dist/cjs/components/_internal/shell-handles.js.map +3 -3
- package/dist/cjs/components/_internal/shell-inspector.js.map +2 -2
- package/dist/cjs/components/_internal/shell-sidebar.d.ts.map +1 -1
- package/dist/cjs/components/_internal/shell-sidebar.js +1 -1
- package/dist/cjs/components/_internal/shell-sidebar.js.map +2 -2
- package/dist/cjs/components/chatbar.d.ts.map +1 -1
- package/dist/cjs/components/chatbar.js +1 -1
- package/dist/cjs/components/chatbar.js.map +3 -3
- package/dist/cjs/components/shell.hooks.js +1 -1
- package/dist/cjs/components/shell.hooks.js.map +2 -2
- package/dist/cjs/components/shell.js +1 -1
- package/dist/cjs/components/shell.js.map +3 -3
- package/dist/cjs/components/shell.types.d.ts +2 -2
- package/dist/cjs/components/shell.types.d.ts.map +1 -1
- package/dist/cjs/components/shell.types.js +1 -1
- package/dist/cjs/components/shell.types.js.map +3 -3
- package/dist/esm/components/_internal/shell-bottom.js.map +2 -2
- package/dist/esm/components/_internal/shell-handles.js +1 -1
- package/dist/esm/components/_internal/shell-handles.js.map +3 -3
- package/dist/esm/components/_internal/shell-inspector.js.map +2 -2
- package/dist/esm/components/_internal/shell-sidebar.d.ts.map +1 -1
- package/dist/esm/components/_internal/shell-sidebar.js +1 -1
- package/dist/esm/components/_internal/shell-sidebar.js.map +2 -2
- package/dist/esm/components/chatbar.d.ts.map +1 -1
- package/dist/esm/components/chatbar.js +1 -1
- package/dist/esm/components/chatbar.js.map +3 -3
- package/dist/esm/components/shell.hooks.js +1 -1
- package/dist/esm/components/shell.hooks.js.map +3 -3
- package/dist/esm/components/shell.js +1 -1
- package/dist/esm/components/shell.js.map +3 -3
- package/dist/esm/components/shell.types.d.ts +2 -2
- package/dist/esm/components/shell.types.d.ts.map +1 -1
- package/dist/esm/components/shell.types.js +1 -1
- package/dist/esm/components/shell.types.js.map +3 -3
- package/package.json +1 -1
- package/schemas/base-button.json +1 -1
- package/schemas/button.json +1 -1
- package/schemas/icon-button.json +1 -1
- package/schemas/index.json +6 -6
- package/schemas/toggle-button.json +1 -1
- package/schemas/toggle-icon-button.json +1 -1
- package/src/components/_internal/shell-bottom.tsx +1 -1
- package/src/components/_internal/shell-handles.tsx +1 -1
- package/src/components/_internal/shell-inspector.tsx +1 -1
- package/src/components/_internal/shell-sidebar.tsx +2 -2
- package/src/components/chatbar.css +15 -12
- package/src/components/chatbar.tsx +7 -5
- package/src/components/shell.hooks.ts +3 -3
- package/src/components/shell.tsx +14 -14
- package/src/components/shell.types.ts +2 -2
- package/styles.css +72 -72
|
@@ -6,8 +6,8 @@ import { useShell } from '../shell.context.js';
|
|
|
6
6
|
import { useResponsivePresentation, useResponsiveValue } from '../shell.hooks.js';
|
|
7
7
|
import { PaneResizeContext } from './shell-resize.js';
|
|
8
8
|
import { SidebarHandle, PaneHandle } from './shell-handles.js';
|
|
9
|
-
import type { Breakpoint, PaneMode, PaneSizePersistence,
|
|
10
|
-
import {
|
|
9
|
+
import type { Breakpoint, PaneMode, PaneSizePersistence, ResponsivePresentation, SidebarMode, Responsive } from '../shell.types.js';
|
|
10
|
+
import { _BREAKPOINTS } from '../shell.types.js';
|
|
11
11
|
|
|
12
12
|
interface PaneProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
13
13
|
presentation?: ResponsivePresentation;
|
|
@@ -165,34 +165,37 @@
|
|
|
165
165
|
/* Sizes (padding and radius via tokens) */
|
|
166
166
|
@breakpoints {
|
|
167
167
|
.rt-ChatbarRoot:where(.rt-r-size-1) .rt-ChatbarBox {
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
/* Map Chatbar size 1 to Card size 2 */
|
|
169
|
+
border-radius: min(var(--radius-6), calc(var(--radius-2) + var(--space-2)));
|
|
170
|
+
padding: var(--space-3);
|
|
170
171
|
}
|
|
171
172
|
.rt-ChatbarRoot:where(.rt-r-size-1) .rt-ChatbarInput {
|
|
172
|
-
--text-area-padding-y: calc(var(--space-
|
|
173
|
-
--text-area-padding-x: calc(var(--space-
|
|
173
|
+
--text-area-padding-y: calc(var(--space-3) - var(--text-area-border-width));
|
|
174
|
+
--text-area-padding-x: calc(var(--space-3) - var(--text-area-border-width));
|
|
174
175
|
font-size: var(--font-size-1);
|
|
175
176
|
line-height: var(--line-height-1);
|
|
176
177
|
letter-spacing: var(--letter-spacing-1);
|
|
177
178
|
}
|
|
178
179
|
.rt-ChatbarRoot:where(.rt-r-size-2) .rt-ChatbarBox {
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
/* Map Chatbar size 2 to Card size 3 */
|
|
181
|
+
border-radius: min(var(--radius-7), calc(var(--radius-3) + var(--space-3)));
|
|
182
|
+
padding: var(--space-4);
|
|
181
183
|
}
|
|
182
184
|
.rt-ChatbarRoot:where(.rt-r-size-2) .rt-ChatbarInput {
|
|
183
|
-
--text-area-padding-y: calc(var(--space-
|
|
184
|
-
--text-area-padding-x: calc(var(--space-
|
|
185
|
+
--text-area-padding-y: calc(var(--space-4) - var(--text-area-border-width));
|
|
186
|
+
--text-area-padding-x: calc(var(--space-4) - var(--text-area-border-width));
|
|
185
187
|
font-size: var(--font-size-2);
|
|
186
188
|
line-height: var(--line-height-2);
|
|
187
189
|
letter-spacing: var(--letter-spacing-2);
|
|
188
190
|
}
|
|
189
191
|
.rt-ChatbarRoot:where(.rt-r-size-3) .rt-ChatbarBox {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
+
/* Map Chatbar size 3 to Card size 4 */
|
|
193
|
+
border-radius: min(var(--radius-8), calc(var(--radius-4) + var(--space-4)));
|
|
194
|
+
padding: var(--space-5);
|
|
192
195
|
}
|
|
193
196
|
.rt-ChatbarRoot:where(.rt-r-size-3) .rt-ChatbarInput {
|
|
194
|
-
--text-area-padding-y: calc(var(--space-
|
|
195
|
-
--text-area-padding-x: calc(var(--space-
|
|
197
|
+
--text-area-padding-y: calc(var(--space-5) - var(--text-area-border-width));
|
|
198
|
+
--text-area-padding-x: calc(var(--space-5) - var(--text-area-border-width));
|
|
196
199
|
font-size: var(--font-size-3);
|
|
197
200
|
line-height: var(--line-height-3);
|
|
198
201
|
letter-spacing: var(--letter-spacing-3);
|
|
@@ -8,9 +8,7 @@ import { Flex } from './flex.js';
|
|
|
8
8
|
import { ScrollArea } from './scroll-area.js';
|
|
9
9
|
import { Slot } from './slot.js';
|
|
10
10
|
import { Box } from './box.js';
|
|
11
|
-
import { Card } from './card.js';
|
|
12
11
|
import { Text } from './text.js';
|
|
13
|
-
import { Inset } from './inset.js';
|
|
14
12
|
import { useDropzone } from 'react-dropzone';
|
|
15
13
|
import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
|
|
16
14
|
|
|
@@ -287,7 +285,10 @@ const Root = React.forwardRef<RootElement, RootProps>((props, forwardedRef) => {
|
|
|
287
285
|
// `attachments={undefined}` to clear attachments. In that case we normalize to an empty array.
|
|
288
286
|
const isAttachmentsControlled = 'attachments' in props;
|
|
289
287
|
const [attachmentsUncontrolled, setAttachmentsUncontrolled] = React.useState<ChatbarAttachment[]>(defaultAttachments);
|
|
290
|
-
const attachments =
|
|
288
|
+
const attachments = React.useMemo(
|
|
289
|
+
() => (isAttachmentsControlled ? ((attachmentsProp ?? []) as ChatbarAttachment[]) : attachmentsUncontrolled),
|
|
290
|
+
[isAttachmentsControlled, attachmentsProp, attachmentsUncontrolled],
|
|
291
|
+
);
|
|
291
292
|
|
|
292
293
|
// Track generated object URLs for cleanup
|
|
293
294
|
const generatedUrlSetRef = React.useRef<Set<string>>(new Set());
|
|
@@ -416,11 +417,12 @@ const Root = React.forwardRef<RootElement, RootProps>((props, forwardedRef) => {
|
|
|
416
417
|
|
|
417
418
|
// Revoke any remaining generated URLs on unmount
|
|
418
419
|
React.useEffect(() => {
|
|
420
|
+
const urlSet = generatedUrlSetRef.current;
|
|
419
421
|
return () => {
|
|
420
|
-
for (const url of Array.from(
|
|
422
|
+
for (const url of Array.from(urlSet)) {
|
|
421
423
|
URL.revokeObjectURL(url);
|
|
422
424
|
}
|
|
423
|
-
|
|
425
|
+
urlSet.clear();
|
|
424
426
|
};
|
|
425
427
|
}, []);
|
|
426
428
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { Breakpoint, PresentationValue, ResponsivePresentation } from './shell.types.js';
|
|
3
|
-
import {
|
|
3
|
+
import { _BREAKPOINTS } from './shell.types.js';
|
|
4
4
|
import { useShell } from './shell.context.js';
|
|
5
5
|
|
|
6
6
|
export function useResponsivePresentation(presentation: ResponsivePresentation): PresentationValue {
|
|
@@ -15,7 +15,7 @@ export function useResponsivePresentation(presentation: ResponsivePresentation):
|
|
|
15
15
|
return presentation[currentBreakpoint]!;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
const bpKeys = Object.keys(
|
|
18
|
+
const bpKeys = Object.keys(_BREAKPOINTS) as Array<keyof typeof _BREAKPOINTS>;
|
|
19
19
|
const order: Breakpoint[] = ([...bpKeys].reverse() as Breakpoint[]).concat('initial' as Breakpoint);
|
|
20
20
|
const startIdx = order.indexOf(currentBreakpoint as Breakpoint);
|
|
21
21
|
|
|
@@ -50,7 +50,7 @@ export function useResponsiveValue<T>(value: T | Partial<Record<Breakpoint, T>>
|
|
|
50
50
|
return map[currentBreakpoint as Breakpoint] as T;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const bpKeys = Object.keys(
|
|
53
|
+
const bpKeys = Object.keys(_BREAKPOINTS) as Array<keyof typeof _BREAKPOINTS>;
|
|
54
54
|
const order: Breakpoint[] = ([...bpKeys].reverse() as Breakpoint[]).concat('initial' as Breakpoint);
|
|
55
55
|
const startIdx = order.indexOf(currentBreakpoint as Breakpoint);
|
|
56
56
|
|
package/src/components/shell.tsx
CHANGED
|
@@ -31,12 +31,12 @@ import * as Sheet from './sheet.js';
|
|
|
31
31
|
import { VisuallyHidden } from './visually-hidden.js';
|
|
32
32
|
import { useResponsivePresentation, useResponsiveValue } from './shell.hooks.js';
|
|
33
33
|
import { PaneResizeContext } from './_internal/shell-resize.js';
|
|
34
|
-
import { PaneHandle, PanelHandle
|
|
34
|
+
import { PaneHandle, PanelHandle } from './_internal/shell-handles.js';
|
|
35
35
|
import { Sidebar } from './_internal/shell-sidebar.js';
|
|
36
36
|
import { Bottom } from './_internal/shell-bottom.js';
|
|
37
37
|
import { Inspector } from './_internal/shell-inspector.js';
|
|
38
38
|
import type { PresentationValue, ResponsivePresentation, PaneMode, SidebarMode, PaneSizePersistence, Breakpoint, PaneTarget, Responsive } from './shell.types.js';
|
|
39
|
-
import {
|
|
39
|
+
import { _BREAKPOINTS } from './shell.types.js';
|
|
40
40
|
import {
|
|
41
41
|
ShellProvider,
|
|
42
42
|
useShell,
|
|
@@ -75,7 +75,7 @@ function useBreakpoint(): { bp: Breakpoint; ready: boolean } {
|
|
|
75
75
|
React.useEffect(() => {
|
|
76
76
|
if (typeof window === 'undefined') return;
|
|
77
77
|
|
|
78
|
-
const queries: [key: keyof typeof
|
|
78
|
+
const queries: [key: keyof typeof _BREAKPOINTS, query: string][] = Object.entries(_BREAKPOINTS) as any;
|
|
79
79
|
const mqls = queries.map(([k, q]) => [k, window.matchMedia(q)] as const);
|
|
80
80
|
|
|
81
81
|
const compute = () => {
|
|
@@ -556,7 +556,7 @@ type RailProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
|
556
556
|
|
|
557
557
|
// Left container - behaves like Inspector but contains Rail+Panel
|
|
558
558
|
const Left = React.forwardRef<HTMLDivElement, LeftProps>(
|
|
559
|
-
({ className, presentation = { initial: 'fixed', sm: 'fixed' }, collapsible = true, onExpand, onCollapse, children, style, ...props }, ref) => {
|
|
559
|
+
({ className, presentation = { initial: 'fixed', sm: 'fixed' }, collapsible: _collapsible = true, onExpand, onCollapse, children, style, ...props }, ref) => {
|
|
560
560
|
const shell = useShell();
|
|
561
561
|
const resolvedPresentation = useResponsivePresentation(presentation);
|
|
562
562
|
const isOverlay = resolvedPresentation === 'overlay';
|
|
@@ -581,7 +581,7 @@ const Left = React.forwardRef<HTMLDivElement, LeftProps>(
|
|
|
581
581
|
return () => shell.setHasLeft(false);
|
|
582
582
|
}, [shell]);
|
|
583
583
|
|
|
584
|
-
const
|
|
584
|
+
const _lastBpRef = React.useRef<Breakpoint | null>(null);
|
|
585
585
|
const lastLeftModeRef = React.useRef<PaneMode | null>(null);
|
|
586
586
|
const initNotifiedRef = React.useRef(false);
|
|
587
587
|
const resolvedDefaultOpen = useResponsiveValue((props as any).defaultOpen as any);
|
|
@@ -633,7 +633,7 @@ const Left = React.forwardRef<HTMLDivElement, LeftProps>(
|
|
|
633
633
|
}
|
|
634
634
|
}, [shell.leftMode, onExpand, onCollapse]);
|
|
635
635
|
|
|
636
|
-
const
|
|
636
|
+
const _isExpanded = shell.leftMode === 'expanded';
|
|
637
637
|
|
|
638
638
|
// Left is not resizable; width derives from Rail/Panel.
|
|
639
639
|
|
|
@@ -674,11 +674,11 @@ const Left = React.forwardRef<HTMLDivElement, LeftProps>(
|
|
|
674
674
|
const isType = (el: React.ReactElement, comp: any) => React.isValidElement(el) && el.type === comp;
|
|
675
675
|
const railEl = childArray.find((el) => isType(el, Rail));
|
|
676
676
|
const panelEl = childArray.find((el) => isType(el, Panel));
|
|
677
|
-
const
|
|
678
|
-
const
|
|
679
|
-
const
|
|
680
|
-
const
|
|
681
|
-
const
|
|
677
|
+
const _railSize = typeof (railEl as any)?.props?.expandedSize === 'number' ? (railEl as any).props.expandedSize : 64;
|
|
678
|
+
const _panelSize = typeof (panelEl as any)?.props?.expandedSize === 'number' ? (panelEl as any).props.expandedSize : 288;
|
|
679
|
+
const _hasRail = Boolean(railEl);
|
|
680
|
+
const _hasPanel = Boolean(panelEl);
|
|
681
|
+
const _includePanel = _hasPanel && (shell.panelMode === 'expanded' || shell.peekTarget === 'panel');
|
|
682
682
|
|
|
683
683
|
// Strip control props from DOM spread
|
|
684
684
|
const { open: _openIgnored, defaultOpen: _defaultOpenIgnored, onOpenChange: _onOpenChangeIgnored, ...stackDomProps } = props as any;
|
|
@@ -810,7 +810,7 @@ type PanelComponent = React.ForwardRefExoticComponent<PanelPublicProps & React.R
|
|
|
810
810
|
Handle: HandleComponent;
|
|
811
811
|
};
|
|
812
812
|
|
|
813
|
-
type
|
|
813
|
+
type _SidebarComponent = React.ForwardRefExoticComponent<
|
|
814
814
|
(Omit<PaneProps, 'mode' | 'defaultMode' | 'onModeChange'> & {
|
|
815
815
|
state?: Responsive<SidebarMode>;
|
|
816
816
|
defaultState?: SidebarMode;
|
|
@@ -821,9 +821,9 @@ type SidebarComponent = React.ForwardRefExoticComponent<
|
|
|
821
821
|
React.RefAttributes<HTMLDivElement>
|
|
822
822
|
> & { Handle: HandleComponent };
|
|
823
823
|
|
|
824
|
-
type
|
|
824
|
+
type _InspectorComponent = React.ForwardRefExoticComponent<PaneProps & React.RefAttributes<HTMLDivElement>> & { Handle: HandleComponent };
|
|
825
825
|
|
|
826
|
-
type
|
|
826
|
+
type _BottomComponent = React.ForwardRefExoticComponent<PaneProps & React.RefAttributes<HTMLDivElement>> & { Handle: HandleComponent };
|
|
827
827
|
|
|
828
828
|
const Panel = React.forwardRef<HTMLDivElement, PanelPublicProps>(
|
|
829
829
|
(
|
|
@@ -16,7 +16,7 @@ export type PaneSizePersistence = {
|
|
|
16
16
|
save?: (size: number) => void | Promise<void>;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
export const
|
|
19
|
+
export const _BREAKPOINTS = {
|
|
20
20
|
xs: '(min-width: 520px)',
|
|
21
21
|
sm: '(min-width: 768px)',
|
|
22
22
|
md: '(min-width: 1024px)',
|
|
@@ -24,6 +24,6 @@ export const BREAKPOINTS = {
|
|
|
24
24
|
xl: '(min-width: 1640px)',
|
|
25
25
|
} as const;
|
|
26
26
|
|
|
27
|
-
export type Breakpoint = 'initial' | keyof typeof
|
|
27
|
+
export type Breakpoint = 'initial' | keyof typeof _BREAKPOINTS;
|
|
28
28
|
|
|
29
29
|
export type PaneTarget = 'left' | 'rail' | 'panel' | 'sidebar' | 'inspector' | 'bottom';
|
package/styles.css
CHANGED
|
@@ -24489,68 +24489,68 @@
|
|
|
24489
24489
|
--backdrop-filter-components: none;
|
|
24490
24490
|
}
|
|
24491
24491
|
.rt-ChatbarRoot:where(.rt-r-size-1) .rt-ChatbarBox{
|
|
24492
|
-
border-radius: min(var(--radius-
|
|
24493
|
-
padding: var(--space-
|
|
24492
|
+
border-radius: min(var(--radius-6), calc(var(--radius-2) + var(--space-2)));
|
|
24493
|
+
padding: var(--space-3);
|
|
24494
24494
|
}
|
|
24495
24495
|
.rt-ChatbarRoot:where(.rt-r-size-1) .rt-ChatbarInput{
|
|
24496
|
-
--text-area-padding-y: calc(var(--space-
|
|
24497
|
-
--text-area-padding-x: calc(var(--space-
|
|
24496
|
+
--text-area-padding-y: calc(var(--space-3) - var(--text-area-border-width));
|
|
24497
|
+
--text-area-padding-x: calc(var(--space-3) - var(--text-area-border-width));
|
|
24498
24498
|
font-size: var(--font-size-1);
|
|
24499
24499
|
line-height: var(--line-height-1);
|
|
24500
24500
|
letter-spacing: var(--letter-spacing-1);
|
|
24501
24501
|
}
|
|
24502
24502
|
.rt-ChatbarRoot:where(.rt-r-size-2) .rt-ChatbarBox{
|
|
24503
|
-
border-radius: min(var(--radius-
|
|
24504
|
-
padding: var(--space-
|
|
24503
|
+
border-radius: min(var(--radius-7), calc(var(--radius-3) + var(--space-3)));
|
|
24504
|
+
padding: var(--space-4);
|
|
24505
24505
|
}
|
|
24506
24506
|
.rt-ChatbarRoot:where(.rt-r-size-2) .rt-ChatbarInput{
|
|
24507
|
-
--text-area-padding-y: calc(var(--space-
|
|
24508
|
-
--text-area-padding-x: calc(var(--space-
|
|
24507
|
+
--text-area-padding-y: calc(var(--space-4) - var(--text-area-border-width));
|
|
24508
|
+
--text-area-padding-x: calc(var(--space-4) - var(--text-area-border-width));
|
|
24509
24509
|
font-size: var(--font-size-2);
|
|
24510
24510
|
line-height: var(--line-height-2);
|
|
24511
24511
|
letter-spacing: var(--letter-spacing-2);
|
|
24512
24512
|
}
|
|
24513
24513
|
.rt-ChatbarRoot:where(.rt-r-size-3) .rt-ChatbarBox{
|
|
24514
|
-
border-radius: min(var(--radius-
|
|
24515
|
-
padding: var(--space-
|
|
24514
|
+
border-radius: min(var(--radius-8), calc(var(--radius-4) + var(--space-4)));
|
|
24515
|
+
padding: var(--space-5);
|
|
24516
24516
|
}
|
|
24517
24517
|
.rt-ChatbarRoot:where(.rt-r-size-3) .rt-ChatbarInput{
|
|
24518
|
-
--text-area-padding-y: calc(var(--space-
|
|
24519
|
-
--text-area-padding-x: calc(var(--space-
|
|
24518
|
+
--text-area-padding-y: calc(var(--space-5) - var(--text-area-border-width));
|
|
24519
|
+
--text-area-padding-x: calc(var(--space-5) - var(--text-area-border-width));
|
|
24520
24520
|
font-size: var(--font-size-3);
|
|
24521
24521
|
line-height: var(--line-height-3);
|
|
24522
24522
|
letter-spacing: var(--letter-spacing-3);
|
|
24523
24523
|
}
|
|
24524
24524
|
@media (min-width: 520px){
|
|
24525
24525
|
.rt-ChatbarRoot:where(.xs\:rt-r-size-1) .rt-ChatbarBox{
|
|
24526
|
-
border-radius: min(var(--radius-
|
|
24527
|
-
padding: var(--space-
|
|
24526
|
+
border-radius: min(var(--radius-6), calc(var(--radius-2) + var(--space-2)));
|
|
24527
|
+
padding: var(--space-3);
|
|
24528
24528
|
}
|
|
24529
24529
|
.rt-ChatbarRoot:where(.xs\:rt-r-size-1) .rt-ChatbarInput{
|
|
24530
|
-
--text-area-padding-y: calc(var(--space-
|
|
24531
|
-
--text-area-padding-x: calc(var(--space-
|
|
24530
|
+
--text-area-padding-y: calc(var(--space-3) - var(--text-area-border-width));
|
|
24531
|
+
--text-area-padding-x: calc(var(--space-3) - var(--text-area-border-width));
|
|
24532
24532
|
font-size: var(--font-size-1);
|
|
24533
24533
|
line-height: var(--line-height-1);
|
|
24534
24534
|
letter-spacing: var(--letter-spacing-1);
|
|
24535
24535
|
}
|
|
24536
24536
|
.rt-ChatbarRoot:where(.xs\:rt-r-size-2) .rt-ChatbarBox{
|
|
24537
|
-
border-radius: min(var(--radius-
|
|
24538
|
-
padding: var(--space-
|
|
24537
|
+
border-radius: min(var(--radius-7), calc(var(--radius-3) + var(--space-3)));
|
|
24538
|
+
padding: var(--space-4);
|
|
24539
24539
|
}
|
|
24540
24540
|
.rt-ChatbarRoot:where(.xs\:rt-r-size-2) .rt-ChatbarInput{
|
|
24541
|
-
--text-area-padding-y: calc(var(--space-
|
|
24542
|
-
--text-area-padding-x: calc(var(--space-
|
|
24541
|
+
--text-area-padding-y: calc(var(--space-4) - var(--text-area-border-width));
|
|
24542
|
+
--text-area-padding-x: calc(var(--space-4) - var(--text-area-border-width));
|
|
24543
24543
|
font-size: var(--font-size-2);
|
|
24544
24544
|
line-height: var(--line-height-2);
|
|
24545
24545
|
letter-spacing: var(--letter-spacing-2);
|
|
24546
24546
|
}
|
|
24547
24547
|
.rt-ChatbarRoot:where(.xs\:rt-r-size-3) .rt-ChatbarBox{
|
|
24548
|
-
border-radius: min(var(--radius-
|
|
24549
|
-
padding: var(--space-
|
|
24548
|
+
border-radius: min(var(--radius-8), calc(var(--radius-4) + var(--space-4)));
|
|
24549
|
+
padding: var(--space-5);
|
|
24550
24550
|
}
|
|
24551
24551
|
.rt-ChatbarRoot:where(.xs\:rt-r-size-3) .rt-ChatbarInput{
|
|
24552
|
-
--text-area-padding-y: calc(var(--space-
|
|
24553
|
-
--text-area-padding-x: calc(var(--space-
|
|
24552
|
+
--text-area-padding-y: calc(var(--space-5) - var(--text-area-border-width));
|
|
24553
|
+
--text-area-padding-x: calc(var(--space-5) - var(--text-area-border-width));
|
|
24554
24554
|
font-size: var(--font-size-3);
|
|
24555
24555
|
line-height: var(--line-height-3);
|
|
24556
24556
|
letter-spacing: var(--letter-spacing-3);
|
|
@@ -24558,34 +24558,34 @@
|
|
|
24558
24558
|
}
|
|
24559
24559
|
@media (min-width: 768px){
|
|
24560
24560
|
.rt-ChatbarRoot:where(.sm\:rt-r-size-1) .rt-ChatbarBox{
|
|
24561
|
-
border-radius: min(var(--radius-
|
|
24562
|
-
padding: var(--space-
|
|
24561
|
+
border-radius: min(var(--radius-6), calc(var(--radius-2) + var(--space-2)));
|
|
24562
|
+
padding: var(--space-3);
|
|
24563
24563
|
}
|
|
24564
24564
|
.rt-ChatbarRoot:where(.sm\:rt-r-size-1) .rt-ChatbarInput{
|
|
24565
|
-
--text-area-padding-y: calc(var(--space-
|
|
24566
|
-
--text-area-padding-x: calc(var(--space-
|
|
24565
|
+
--text-area-padding-y: calc(var(--space-3) - var(--text-area-border-width));
|
|
24566
|
+
--text-area-padding-x: calc(var(--space-3) - var(--text-area-border-width));
|
|
24567
24567
|
font-size: var(--font-size-1);
|
|
24568
24568
|
line-height: var(--line-height-1);
|
|
24569
24569
|
letter-spacing: var(--letter-spacing-1);
|
|
24570
24570
|
}
|
|
24571
24571
|
.rt-ChatbarRoot:where(.sm\:rt-r-size-2) .rt-ChatbarBox{
|
|
24572
|
-
border-radius: min(var(--radius-
|
|
24573
|
-
padding: var(--space-
|
|
24572
|
+
border-radius: min(var(--radius-7), calc(var(--radius-3) + var(--space-3)));
|
|
24573
|
+
padding: var(--space-4);
|
|
24574
24574
|
}
|
|
24575
24575
|
.rt-ChatbarRoot:where(.sm\:rt-r-size-2) .rt-ChatbarInput{
|
|
24576
|
-
--text-area-padding-y: calc(var(--space-
|
|
24577
|
-
--text-area-padding-x: calc(var(--space-
|
|
24576
|
+
--text-area-padding-y: calc(var(--space-4) - var(--text-area-border-width));
|
|
24577
|
+
--text-area-padding-x: calc(var(--space-4) - var(--text-area-border-width));
|
|
24578
24578
|
font-size: var(--font-size-2);
|
|
24579
24579
|
line-height: var(--line-height-2);
|
|
24580
24580
|
letter-spacing: var(--letter-spacing-2);
|
|
24581
24581
|
}
|
|
24582
24582
|
.rt-ChatbarRoot:where(.sm\:rt-r-size-3) .rt-ChatbarBox{
|
|
24583
|
-
border-radius: min(var(--radius-
|
|
24584
|
-
padding: var(--space-
|
|
24583
|
+
border-radius: min(var(--radius-8), calc(var(--radius-4) + var(--space-4)));
|
|
24584
|
+
padding: var(--space-5);
|
|
24585
24585
|
}
|
|
24586
24586
|
.rt-ChatbarRoot:where(.sm\:rt-r-size-3) .rt-ChatbarInput{
|
|
24587
|
-
--text-area-padding-y: calc(var(--space-
|
|
24588
|
-
--text-area-padding-x: calc(var(--space-
|
|
24587
|
+
--text-area-padding-y: calc(var(--space-5) - var(--text-area-border-width));
|
|
24588
|
+
--text-area-padding-x: calc(var(--space-5) - var(--text-area-border-width));
|
|
24589
24589
|
font-size: var(--font-size-3);
|
|
24590
24590
|
line-height: var(--line-height-3);
|
|
24591
24591
|
letter-spacing: var(--letter-spacing-3);
|
|
@@ -24593,34 +24593,34 @@
|
|
|
24593
24593
|
}
|
|
24594
24594
|
@media (min-width: 1024px){
|
|
24595
24595
|
.rt-ChatbarRoot:where(.md\:rt-r-size-1) .rt-ChatbarBox{
|
|
24596
|
-
border-radius: min(var(--radius-
|
|
24597
|
-
padding: var(--space-
|
|
24596
|
+
border-radius: min(var(--radius-6), calc(var(--radius-2) + var(--space-2)));
|
|
24597
|
+
padding: var(--space-3);
|
|
24598
24598
|
}
|
|
24599
24599
|
.rt-ChatbarRoot:where(.md\:rt-r-size-1) .rt-ChatbarInput{
|
|
24600
|
-
--text-area-padding-y: calc(var(--space-
|
|
24601
|
-
--text-area-padding-x: calc(var(--space-
|
|
24600
|
+
--text-area-padding-y: calc(var(--space-3) - var(--text-area-border-width));
|
|
24601
|
+
--text-area-padding-x: calc(var(--space-3) - var(--text-area-border-width));
|
|
24602
24602
|
font-size: var(--font-size-1);
|
|
24603
24603
|
line-height: var(--line-height-1);
|
|
24604
24604
|
letter-spacing: var(--letter-spacing-1);
|
|
24605
24605
|
}
|
|
24606
24606
|
.rt-ChatbarRoot:where(.md\:rt-r-size-2) .rt-ChatbarBox{
|
|
24607
|
-
border-radius: min(var(--radius-
|
|
24608
|
-
padding: var(--space-
|
|
24607
|
+
border-radius: min(var(--radius-7), calc(var(--radius-3) + var(--space-3)));
|
|
24608
|
+
padding: var(--space-4);
|
|
24609
24609
|
}
|
|
24610
24610
|
.rt-ChatbarRoot:where(.md\:rt-r-size-2) .rt-ChatbarInput{
|
|
24611
|
-
--text-area-padding-y: calc(var(--space-
|
|
24612
|
-
--text-area-padding-x: calc(var(--space-
|
|
24611
|
+
--text-area-padding-y: calc(var(--space-4) - var(--text-area-border-width));
|
|
24612
|
+
--text-area-padding-x: calc(var(--space-4) - var(--text-area-border-width));
|
|
24613
24613
|
font-size: var(--font-size-2);
|
|
24614
24614
|
line-height: var(--line-height-2);
|
|
24615
24615
|
letter-spacing: var(--letter-spacing-2);
|
|
24616
24616
|
}
|
|
24617
24617
|
.rt-ChatbarRoot:where(.md\:rt-r-size-3) .rt-ChatbarBox{
|
|
24618
|
-
border-radius: min(var(--radius-
|
|
24619
|
-
padding: var(--space-
|
|
24618
|
+
border-radius: min(var(--radius-8), calc(var(--radius-4) + var(--space-4)));
|
|
24619
|
+
padding: var(--space-5);
|
|
24620
24620
|
}
|
|
24621
24621
|
.rt-ChatbarRoot:where(.md\:rt-r-size-3) .rt-ChatbarInput{
|
|
24622
|
-
--text-area-padding-y: calc(var(--space-
|
|
24623
|
-
--text-area-padding-x: calc(var(--space-
|
|
24622
|
+
--text-area-padding-y: calc(var(--space-5) - var(--text-area-border-width));
|
|
24623
|
+
--text-area-padding-x: calc(var(--space-5) - var(--text-area-border-width));
|
|
24624
24624
|
font-size: var(--font-size-3);
|
|
24625
24625
|
line-height: var(--line-height-3);
|
|
24626
24626
|
letter-spacing: var(--letter-spacing-3);
|
|
@@ -24628,34 +24628,34 @@
|
|
|
24628
24628
|
}
|
|
24629
24629
|
@media (min-width: 1280px){
|
|
24630
24630
|
.rt-ChatbarRoot:where(.lg\:rt-r-size-1) .rt-ChatbarBox{
|
|
24631
|
-
border-radius: min(var(--radius-
|
|
24632
|
-
padding: var(--space-
|
|
24631
|
+
border-radius: min(var(--radius-6), calc(var(--radius-2) + var(--space-2)));
|
|
24632
|
+
padding: var(--space-3);
|
|
24633
24633
|
}
|
|
24634
24634
|
.rt-ChatbarRoot:where(.lg\:rt-r-size-1) .rt-ChatbarInput{
|
|
24635
|
-
--text-area-padding-y: calc(var(--space-
|
|
24636
|
-
--text-area-padding-x: calc(var(--space-
|
|
24635
|
+
--text-area-padding-y: calc(var(--space-3) - var(--text-area-border-width));
|
|
24636
|
+
--text-area-padding-x: calc(var(--space-3) - var(--text-area-border-width));
|
|
24637
24637
|
font-size: var(--font-size-1);
|
|
24638
24638
|
line-height: var(--line-height-1);
|
|
24639
24639
|
letter-spacing: var(--letter-spacing-1);
|
|
24640
24640
|
}
|
|
24641
24641
|
.rt-ChatbarRoot:where(.lg\:rt-r-size-2) .rt-ChatbarBox{
|
|
24642
|
-
border-radius: min(var(--radius-
|
|
24643
|
-
padding: var(--space-
|
|
24642
|
+
border-radius: min(var(--radius-7), calc(var(--radius-3) + var(--space-3)));
|
|
24643
|
+
padding: var(--space-4);
|
|
24644
24644
|
}
|
|
24645
24645
|
.rt-ChatbarRoot:where(.lg\:rt-r-size-2) .rt-ChatbarInput{
|
|
24646
|
-
--text-area-padding-y: calc(var(--space-
|
|
24647
|
-
--text-area-padding-x: calc(var(--space-
|
|
24646
|
+
--text-area-padding-y: calc(var(--space-4) - var(--text-area-border-width));
|
|
24647
|
+
--text-area-padding-x: calc(var(--space-4) - var(--text-area-border-width));
|
|
24648
24648
|
font-size: var(--font-size-2);
|
|
24649
24649
|
line-height: var(--line-height-2);
|
|
24650
24650
|
letter-spacing: var(--letter-spacing-2);
|
|
24651
24651
|
}
|
|
24652
24652
|
.rt-ChatbarRoot:where(.lg\:rt-r-size-3) .rt-ChatbarBox{
|
|
24653
|
-
border-radius: min(var(--radius-
|
|
24654
|
-
padding: var(--space-
|
|
24653
|
+
border-radius: min(var(--radius-8), calc(var(--radius-4) + var(--space-4)));
|
|
24654
|
+
padding: var(--space-5);
|
|
24655
24655
|
}
|
|
24656
24656
|
.rt-ChatbarRoot:where(.lg\:rt-r-size-3) .rt-ChatbarInput{
|
|
24657
|
-
--text-area-padding-y: calc(var(--space-
|
|
24658
|
-
--text-area-padding-x: calc(var(--space-
|
|
24657
|
+
--text-area-padding-y: calc(var(--space-5) - var(--text-area-border-width));
|
|
24658
|
+
--text-area-padding-x: calc(var(--space-5) - var(--text-area-border-width));
|
|
24659
24659
|
font-size: var(--font-size-3);
|
|
24660
24660
|
line-height: var(--line-height-3);
|
|
24661
24661
|
letter-spacing: var(--letter-spacing-3);
|
|
@@ -24663,34 +24663,34 @@
|
|
|
24663
24663
|
}
|
|
24664
24664
|
@media (min-width: 1640px){
|
|
24665
24665
|
.rt-ChatbarRoot:where(.xl\:rt-r-size-1) .rt-ChatbarBox{
|
|
24666
|
-
border-radius: min(var(--radius-
|
|
24667
|
-
padding: var(--space-
|
|
24666
|
+
border-radius: min(var(--radius-6), calc(var(--radius-2) + var(--space-2)));
|
|
24667
|
+
padding: var(--space-3);
|
|
24668
24668
|
}
|
|
24669
24669
|
.rt-ChatbarRoot:where(.xl\:rt-r-size-1) .rt-ChatbarInput{
|
|
24670
|
-
--text-area-padding-y: calc(var(--space-
|
|
24671
|
-
--text-area-padding-x: calc(var(--space-
|
|
24670
|
+
--text-area-padding-y: calc(var(--space-3) - var(--text-area-border-width));
|
|
24671
|
+
--text-area-padding-x: calc(var(--space-3) - var(--text-area-border-width));
|
|
24672
24672
|
font-size: var(--font-size-1);
|
|
24673
24673
|
line-height: var(--line-height-1);
|
|
24674
24674
|
letter-spacing: var(--letter-spacing-1);
|
|
24675
24675
|
}
|
|
24676
24676
|
.rt-ChatbarRoot:where(.xl\:rt-r-size-2) .rt-ChatbarBox{
|
|
24677
|
-
border-radius: min(var(--radius-
|
|
24678
|
-
padding: var(--space-
|
|
24677
|
+
border-radius: min(var(--radius-7), calc(var(--radius-3) + var(--space-3)));
|
|
24678
|
+
padding: var(--space-4);
|
|
24679
24679
|
}
|
|
24680
24680
|
.rt-ChatbarRoot:where(.xl\:rt-r-size-2) .rt-ChatbarInput{
|
|
24681
|
-
--text-area-padding-y: calc(var(--space-
|
|
24682
|
-
--text-area-padding-x: calc(var(--space-
|
|
24681
|
+
--text-area-padding-y: calc(var(--space-4) - var(--text-area-border-width));
|
|
24682
|
+
--text-area-padding-x: calc(var(--space-4) - var(--text-area-border-width));
|
|
24683
24683
|
font-size: var(--font-size-2);
|
|
24684
24684
|
line-height: var(--line-height-2);
|
|
24685
24685
|
letter-spacing: var(--letter-spacing-2);
|
|
24686
24686
|
}
|
|
24687
24687
|
.rt-ChatbarRoot:where(.xl\:rt-r-size-3) .rt-ChatbarBox{
|
|
24688
|
-
border-radius: min(var(--radius-
|
|
24689
|
-
padding: var(--space-
|
|
24688
|
+
border-radius: min(var(--radius-8), calc(var(--radius-4) + var(--space-4)));
|
|
24689
|
+
padding: var(--space-5);
|
|
24690
24690
|
}
|
|
24691
24691
|
.rt-ChatbarRoot:where(.xl\:rt-r-size-3) .rt-ChatbarInput{
|
|
24692
|
-
--text-area-padding-y: calc(var(--space-
|
|
24693
|
-
--text-area-padding-x: calc(var(--space-
|
|
24692
|
+
--text-area-padding-y: calc(var(--space-5) - var(--text-area-border-width));
|
|
24693
|
+
--text-area-padding-x: calc(var(--space-5) - var(--text-area-border-width));
|
|
24694
24694
|
font-size: var(--font-size-3);
|
|
24695
24695
|
line-height: var(--line-height-3);
|
|
24696
24696
|
letter-spacing: var(--letter-spacing-3);
|