@atom63/ui-react 0.2.0-beta.11 → 0.2.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/button-DMnQeAEL.d.ts +22 -0
- package/dist/calendar/index.d.ts +2 -1
- package/dist/calendar/index.js +16 -1
- package/dist/calendar/index.js.map +1 -1
- package/dist/{chunk-J77BAGTA.js → chunk-IFBF2IA3.js} +17 -6
- package/dist/chunk-IFBF2IA3.js.map +1 -0
- package/dist/{chunk-NBHGMMQN.js → chunk-R7IQ3IL5.js} +26 -4
- package/dist/chunk-R7IQ3IL5.js.map +1 -0
- package/dist/{chunk-GDUMA6FI.js → chunk-RLF45GBS.js} +443 -275
- package/dist/chunk-RLF45GBS.js.map +1 -0
- package/dist/{chunk-R67OZVA2.js → chunk-WL27K6MO.js} +3 -2
- package/dist/chunk-WL27K6MO.js.map +1 -0
- package/dist/{chunk-X5L5DEUZ.js → chunk-ZEY2VU4O.js} +3 -3
- package/dist/{chunk-X5L5DEUZ.js.map → chunk-ZEY2VU4O.js.map} +1 -1
- package/dist/{destination-link-DMLeR-oF.d.ts → destination-link-BHVQyWry.d.ts} +2 -1
- package/dist/{index-BDzW8upQ.d.ts → index-CbgpSG4j.d.ts} +47 -8
- package/dist/index.d.ts +513 -141
- package/dist/index.js +1126 -235
- package/dist/index.js.map +1 -1
- package/dist/layout/index.d.ts +73 -1
- package/dist/layout/index.js +78 -2
- package/dist/layout/index.js.map +1 -1
- package/dist/media/index.d.ts +5 -4
- package/dist/media/index.js +35 -7
- package/dist/media/index.js.map +1 -1
- package/dist/media/media-lightbox/parts/index.d.ts +5 -4
- package/dist/media/media-lightbox/parts/index.js +2 -2
- package/dist/preview/index.d.ts +2 -3
- package/dist/preview/index.js +2 -2
- package/dist/theme/index.d.ts +3 -2
- package/dist/theme/index.js +2 -2
- package/dist/{types-Dxe5IzjE.d.ts → types-KQLxlHQZ.d.ts} +21 -0
- package/package.json +36 -26
- package/src/components/alert/alert.css +21 -18
- package/src/components/amount/amount.css +60 -0
- package/src/components/app-view/app-view.css +232 -0
- package/src/components/autocomplete/autocomplete.css +21 -5
- package/src/components/avatar/avatar.css +64 -8
- package/src/components/badge/badge.css +65 -0
- package/src/components/button/button.css +160 -31
- package/src/components/calendar/calendar.css +7 -3
- package/src/components/card/card.css +26 -10
- package/src/components/carousel/carousel.css +90 -5
- package/src/components/chat-composer/chat-composer.css +69 -0
- package/src/components/chat-message/chat-message.css +93 -0
- package/src/components/chat-steps/chat-steps.css +132 -0
- package/src/components/chat-typing-indicator/chat-typing-indicator.css +83 -0
- package/src/components/checkbox/checkbox.css +14 -1
- package/src/components/command/command.css +35 -5
- package/src/components/connected-panel/connected-panel.css +4 -19
- package/src/components/destination-link/destination-link.css +28 -0
- package/src/components/dialog/dialog.css +2 -2
- package/src/components/drawer/drawer.css +15 -2
- package/src/components/empty/empty.css +2 -4
- package/src/components/field/field.css +14 -9
- package/src/components/form/form.css +1 -1
- package/src/components/frame/frame.css +1 -1
- package/src/components/input/input.css +72 -4
- package/src/components/input-otp/input-otp.css +2 -2
- package/src/components/item/item.css +72 -2
- package/src/components/load-more-trigger/load-more-trigger.css +17 -0
- package/src/components/marquee/marquee.css +25 -3
- package/src/components/menu/menu.css +36 -1
- package/src/components/message/message.css +170 -0
- package/src/components/navigation-menu/navigation-menu.css +22 -4
- package/src/components/panel-setting-button/panel-setting-button.css +14 -0
- package/src/components/progress/progress.css +31 -1
- package/src/components/radio/radio.css +32 -5
- package/src/components/rating/rating.css +120 -0
- package/src/components/resizable/resizable.css +1 -1
- package/src/components/scroll-area/scroll-area.css +1 -1
- package/src/components/scrollable-list/scrollable-list.css +10 -5
- package/src/components/segmented-control/segmented-control.css +14 -0
- package/src/components/select/select.css +11 -3
- package/src/components/separator/separator.css +3 -1
- package/src/components/sheet/sheet.css +8 -4
- package/src/components/sidebar/sidebar.css +54 -24
- package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +38 -5
- package/src/components/slider/slider.css +11 -6
- package/src/components/switch/switch.css +30 -11
- package/src/components/table/table.css +118 -10
- package/src/components/tabs/tabs.css +10 -0
- package/src/components/textarea/textarea.css +3 -3
- package/src/components/toaster/toaster.css +32 -0
- package/src/components/toggle/toggle.css +20 -8
- package/src/components/toggle-group/toggle-group.css +79 -1
- package/src/media/media-lightbox/media-lightbox.css +32 -2
- package/src/styles/recipes.css +10 -0
- package/src/styles/reset.css +13 -2
- package/src/styles/utilities.css +41 -28
- package/dist/button-CfLIHg-R.d.ts +0 -13
- package/dist/chunk-GDUMA6FI.js.map +0 -1
- package/dist/chunk-J77BAGTA.js.map +0 -1
- package/dist/chunk-NBHGMMQN.js.map +0 -1
- package/dist/chunk-R67OZVA2.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as MediaLightboxItem, M as MediaLightboxLabels, c as MediaLightboxAppearance, b as MediaLightboxTransition } from '../../../types-
|
|
2
|
-
export { e as MediaLightboxItemKind, f as MediaLightboxVideoSource, g as MediaLightboxVideoTrack } from '../../../types-
|
|
1
|
+
import { d as MediaLightboxItem, M as MediaLightboxLabels, c as MediaLightboxAppearance, b as MediaLightboxTransition } from '../../../types-KQLxlHQZ.js';
|
|
2
|
+
export { e as MediaLightboxItemKind, f as MediaLightboxVideoSource, g as MediaLightboxVideoTrack } from '../../../types-KQLxlHQZ.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { RefObject, ReactNode } from 'react';
|
|
5
5
|
import { useRender } from '@base-ui/react/use-render';
|
|
6
|
-
import {
|
|
6
|
+
import { DestinationLink } from '../../../index.js';
|
|
7
7
|
import '@atom63/ui-foundation';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -289,4 +289,5 @@ declare const Lightbox: {
|
|
|
289
289
|
readonly ZoomOut: typeof LightboxZoomOut;
|
|
290
290
|
};
|
|
291
291
|
|
|
292
|
-
export { Lightbox, LightboxAppearanceToggle,
|
|
292
|
+
export { Lightbox, LightboxAppearanceToggle, LightboxBackdrop, LightboxCaption, LightboxClose, LightboxContent, LightboxCounter, LightboxDestination, LightboxFrame, LightboxMedia, LightboxNext, LightboxPortal, LightboxPrevious, LightboxRoot, LightboxSlide, LightboxSlides, LightboxStatus, LightboxThumbnail, LightboxThumbnails, LightboxViewport, LightboxZoom, LightboxZoomIn, LightboxZoomOut, MediaLightboxAppearance, MediaLightboxItem, MediaLightboxLabels, MediaLightboxTransition, useLightboxConfig, useLightboxRefs, useLightboxSlide, useLightboxState, useOptionalLightboxConfig };
|
|
293
|
+
export type { LightboxAppearanceToggleProps, LightboxBackdropProps, LightboxCaptionProps, LightboxCloseProps, LightboxConfig, LightboxContentProps, LightboxCounterProps, LightboxDestinationProps, LightboxFrameProps, LightboxNextProps, LightboxPortalProps, LightboxPreviousProps, LightboxRefs, LightboxRootProps, LightboxSlideProps, LightboxSlide$1 as LightboxSlideValue, LightboxSlidesProps, LightboxState, LightboxStatusProps, LightboxThumbnailContextValue, LightboxThumbnailProps, LightboxThumbnailsProps, LightboxTiming, LightboxViewportProps, LightboxZoomInProps, LightboxZoomOptions, LightboxZoomOutProps, LightboxZoomProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Lightbox, LightboxAppearanceToggle, LightboxBackdrop, LightboxCaption, LightboxClose, LightboxContent, LightboxCounter, LightboxDestination, LightboxFrame, LightboxMedia, LightboxNext, LightboxPortal, LightboxPrevious, LightboxRoot, LightboxSlide, LightboxSlides, LightboxStatus, LightboxThumbnail, LightboxThumbnails, LightboxViewport, LightboxZoom, LightboxZoomIn, LightboxZoomOut, useLightboxConfig, useLightboxRefs, useLightboxSlide, useLightboxState, useOptionalLightboxConfig } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
export { Lightbox, LightboxAppearanceToggle, LightboxBackdrop, LightboxCaption, LightboxClose, LightboxContent, LightboxCounter, LightboxDestination, LightboxFrame, LightboxMedia, LightboxNext, LightboxPortal, LightboxPrevious, LightboxRoot, LightboxSlide, LightboxSlides, LightboxStatus, LightboxThumbnail, LightboxThumbnails, LightboxViewport, LightboxZoom, LightboxZoomIn, LightboxZoomOut, useLightboxConfig, useLightboxRefs, useLightboxSlide, useLightboxState, useOptionalLightboxConfig } from '../../../chunk-ZEY2VU4O.js';
|
|
2
|
+
import '../../../chunk-WL27K6MO.js';
|
|
3
3
|
import '../../../chunk-UPPHQLZ2.js';
|
|
4
4
|
import '../../../chunk-AJLHJRK6.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/preview/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ATOM63_FLYOUT_TRANSITION, a as ATOM63_FLYOUT_TRANSITION_CSS, b as ATOM63_MOTION_EASE, c as ATOM63_MOTION_EASE_CSS, d as ATOM63_OVERLAY_MOTION_DURATION_CSS, e as ATOM63_OVERLAY_MOTION_DURATION_MS, f as ATOM63_OVERLAY_MOTION_EASE, g as ATOM63_OVERLAY_MOTION_EASE_CSS, n as AlertDialogCreateHandle, B as ButtonGroupProvider, $ as CommandCreateHandle,
|
|
1
|
+
export { A as ATOM63_FLYOUT_TRANSITION, a as ATOM63_FLYOUT_TRANSITION_CSS, b as ATOM63_MOTION_EASE, c as ATOM63_MOTION_EASE_CSS, d as ATOM63_OVERLAY_MOTION_DURATION_CSS, e as ATOM63_OVERLAY_MOTION_DURATION_MS, f as ATOM63_OVERLAY_MOTION_EASE, g as ATOM63_OVERLAY_MOTION_EASE_CSS, n as AlertDialogCreateHandle, B as ButtonGroupProvider, $ as CommandCreateHandle, al as DialogCreateHandle, aF as ReactRendererConformanceEvidence, aG as ReactVerifiedContractId, aW as TooltipCreateHandle, a_ as cardLinkClassName, a$ as getReactRendererConformance, b0 as navigationMenuTriggerStyle, b1 as reactRendererConformance, b2 as scrollableListControlClassNames, b3 as selectTriggerDefaultClassName, b4 as useButtonGroupContext } from '../index-CbgpSG4j.js';
|
|
2
2
|
export { Autocomplete as AutocompletePrimitive } from '@base-ui/react/autocomplete';
|
|
3
3
|
export { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
4
4
|
export { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
|
|
@@ -8,9 +8,8 @@ export { Dialog as DialogPrimitive, Dialog as SheetPrimitive } from '@base-ui/re
|
|
|
8
8
|
export { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
9
9
|
export { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
10
10
|
import 'react';
|
|
11
|
-
import '../button-
|
|
11
|
+
import '../button-DMnQeAEL.js';
|
|
12
12
|
import '@atom63/ui-foundation';
|
|
13
13
|
import '@base-ui/react/use-render';
|
|
14
|
-
import '@base-ui/react';
|
|
15
14
|
import '@base-ui/react/navigation-menu';
|
|
16
15
|
import '@base-ui/react/select';
|
package/dist/preview/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { AlertDialogCreateHandle, AlertDialogPrimitive, AutocompletePrimitive, AvatarPrimitive, ButtonGroupProvider, CommandCreateHandle, DialogCreateHandle, DialogPrimitive, InputPrimitive, ProgressPrimitive, SeparatorPrimitive, SheetPrimitive, TooltipCreateHandle, TooltipPrimitive, cardLinkClassName, getReactRendererConformance, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useButtonGroupContext } from '../chunk-
|
|
2
|
-
export { ATOM63_FLYOUT_TRANSITION, ATOM63_FLYOUT_TRANSITION_CSS, ATOM63_MOTION_EASE, ATOM63_MOTION_EASE_CSS, ATOM63_OVERLAY_MOTION_DURATION_CSS, ATOM63_OVERLAY_MOTION_DURATION_MS, ATOM63_OVERLAY_MOTION_EASE, ATOM63_OVERLAY_MOTION_EASE_CSS } from '../chunk-
|
|
1
|
+
export { AlertDialogCreateHandle, AlertDialogPrimitive, AutocompletePrimitive, AvatarPrimitive, ButtonGroupProvider, CommandCreateHandle, DialogCreateHandle, DialogPrimitive, InputPrimitive, ProgressPrimitive, SeparatorPrimitive, SheetPrimitive, TooltipCreateHandle, TooltipPrimitive, cardLinkClassName, getReactRendererConformance, navigationMenuTriggerStyle, reactRendererConformance, scrollableListControlClassNames, selectTriggerDefaultClassName, useButtonGroupContext } from '../chunk-RLF45GBS.js';
|
|
2
|
+
export { ATOM63_FLYOUT_TRANSITION, ATOM63_FLYOUT_TRANSITION_CSS, ATOM63_MOTION_EASE, ATOM63_MOTION_EASE_CSS, ATOM63_OVERLAY_MOTION_DURATION_CSS, ATOM63_OVERLAY_MOTION_DURATION_MS, ATOM63_OVERLAY_MOTION_EASE, ATOM63_OVERLAY_MOTION_EASE_CSS } from '../chunk-R7IQ3IL5.js';
|
|
3
3
|
import '../chunk-UPPHQLZ2.js';
|
|
4
4
|
import '../chunk-AJLHJRK6.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { Button } from '../index.js';
|
|
4
4
|
import '@atom63/ui-foundation';
|
|
5
5
|
import '@base-ui/react/use-render';
|
|
6
6
|
|
|
@@ -347,4 +347,5 @@ interface VisualChoiceControlProps<T extends string> {
|
|
|
347
347
|
}
|
|
348
348
|
declare function VisualChoiceControl<T extends string>({ className, columns, label, onChange, options, value, }: VisualChoiceControlProps<T>): React.ReactElement;
|
|
349
349
|
|
|
350
|
-
export { AUTO_FALLBACK_COLOR, AUTO_PRIMARY_ID, AppearanceMenu,
|
|
350
|
+
export { AUTO_FALLBACK_COLOR, AUTO_PRIMARY_ID, AppearanceMenu, AppearanceMenuTrigger, AppearancePanel, AppearanceSection, BRAND_OPTIONS, FONT_OPTIONS, ICON_THEME_OPTIONS, MODE_OPTIONS, OS_OPTIONS, RADIUS_OPTIONS, RangeTokenControl, SURFACE_OPTIONS, SegmentedTokenControl, SwatchTokenControl, THEME_OPTIONS, TYPE_SCALE_OPTIONS, VisualChoiceControl, applyAutoColorRamp, applyPersonalization, clearAutoColorRamp, createPersonalizationController, createThemeProvider, extractDominantColor, isAutoPrimary };
|
|
351
|
+
export type { AppearanceMenuProps, AppearanceMenuTriggerProps, AppearancePanelProps, AppearanceSectionId, AppearanceSectionProps, BrandId, ColorMode, CreatePersonalizationControllerOptions, CreateThemeProviderOptions, ExtractedColor, FontFamily, IconTheme, OsSystem, PersonalizationController, PersonalizationOption, PersonalizationState, RadiusScale, RangeTokenControlProps, SegmentedTokenControlProps, SurfaceId, SwatchTokenControlProps, ThemeContextValue, ThemeId, ThemeMode, ThemeModeOption, TypeScale, VisualChoiceControlProps, VisualChoiceOption };
|
package/dist/theme/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Slider, SegmentedControl, Frame, FramePanel, FrameFooter } from '../chunk-
|
|
2
|
-
import { ATOM63_FLYOUT_TRANSITION_CSS, Button, ScrollArea } from '../chunk-
|
|
1
|
+
import { Slider, SegmentedControl, Frame, FramePanel, FrameFooter } from '../chunk-IFBF2IA3.js';
|
|
2
|
+
import { ATOM63_FLYOUT_TRANSITION_CSS, Button, ScrollArea } from '../chunk-R7IQ3IL5.js';
|
|
3
3
|
import { cn } from '../chunk-AJLHJRK6.js';
|
|
4
4
|
import { useId, useRef, useState, useCallback, useEffect, createContext, useMemo, useContext } from 'react';
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
@@ -140,6 +140,27 @@ interface MediaLightboxProps {
|
|
|
140
140
|
* megabytes of decoded bitmap.
|
|
141
141
|
*/
|
|
142
142
|
preload?: number;
|
|
143
|
+
/**
|
|
144
|
+
* The caller's own buttons for the item on screen, in a row in the bottom
|
|
145
|
+
* dock, under the caption and above the thumbnails: the thumb zone on a
|
|
146
|
+
* phone. Called per item, so each one can offer different actions; return
|
|
147
|
+
* `null` for none.
|
|
148
|
+
*
|
|
149
|
+
* The row fades with the rest of the chrome (auto-hide and the
|
|
150
|
+
* pull-to-dismiss fade), clears the bottom safe area, and stays inside the
|
|
151
|
+
* focus trap. Presses there never page, zoom or close. Draw the buttons as
|
|
152
|
+
* `Button variant="overlay"`, which holds contrast on the black phone stage
|
|
153
|
+
* and on the themed backdrop above `sm` alike.
|
|
154
|
+
*/
|
|
155
|
+
actions?: (item: MediaLightboxItem, index: number) => React.ReactNode;
|
|
156
|
+
/**
|
|
157
|
+
* Extra controls for the item on screen, at the start of the top-right
|
|
158
|
+
* cluster beside Close: one icon button, such as a details toggle, fits
|
|
159
|
+
* best. Called per item; return `null` for none. Same chrome rules as
|
|
160
|
+
* `actions`. Draw it as `Button variant="overlay" shape="round"
|
|
161
|
+
* size="icon-xl"` with an `aria-label` to match the built-in controls.
|
|
162
|
+
*/
|
|
163
|
+
toolbar?: (item: MediaLightboxItem, index: number) => React.ReactNode;
|
|
143
164
|
}
|
|
144
165
|
|
|
145
166
|
export type { MediaLightboxLabels as M, MediaLightboxProps as a, MediaLightboxTransition as b, MediaLightboxAppearance as c, MediaLightboxItem as d, MediaLightboxItemKind as e, MediaLightboxVideoSource as f, MediaLightboxVideoTrack as g };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom63/ui-react",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.13",
|
|
4
4
|
"description": "React components, layout primitives, media, and theme controls for the Atom63 design system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -60,6 +60,12 @@
|
|
|
60
60
|
"import": "./dist/preview/index.js"
|
|
61
61
|
},
|
|
62
62
|
"./recipes.css": "./src/styles/recipes.css",
|
|
63
|
+
"./recipes/amount.css": "./src/components/amount/amount.css",
|
|
64
|
+
"./recipes/app-view.css": "./src/components/app-view/app-view.css",
|
|
65
|
+
"./recipes/chat-composer.css": "./src/components/chat-composer/chat-composer.css",
|
|
66
|
+
"./recipes/chat-message.css": "./src/components/chat-message/chat-message.css",
|
|
67
|
+
"./recipes/chat-steps.css": "./src/components/chat-steps/chat-steps.css",
|
|
68
|
+
"./recipes/chat-typing-indicator.css": "./src/components/chat-typing-indicator/chat-typing-indicator.css",
|
|
63
69
|
"./recipes/media-lightbox.css": "./src/media/media-lightbox/media-lightbox.css",
|
|
64
70
|
"./recipes/accordion.css": "./src/components/accordion/accordion.css",
|
|
65
71
|
"./recipes/alert-dialog.css": "./src/components/alert-dialog/alert-dialog.css",
|
|
@@ -79,6 +85,7 @@
|
|
|
79
85
|
"./recipes/connected-panel.css": "./src/components/connected-panel/connected-panel.css",
|
|
80
86
|
"./recipes/context-menu.css": "./src/components/menu/menu.css",
|
|
81
87
|
"./recipes/copy-button.css": "./src/components/copy-button/copy-button.css",
|
|
88
|
+
"./recipes/destination-link.css": "./src/components/destination-link/destination-link.css",
|
|
82
89
|
"./recipes/dialog.css": "./src/components/dialog/dialog.css",
|
|
83
90
|
"./recipes/drawer.css": "./src/components/drawer/drawer.css",
|
|
84
91
|
"./recipes/dropdown-menu.css": "./src/components/menu/menu.css",
|
|
@@ -96,6 +103,7 @@
|
|
|
96
103
|
"./recipes/load-more-trigger.css": "./src/components/load-more-trigger/load-more-trigger.css",
|
|
97
104
|
"./recipes/marquee.css": "./src/components/marquee/marquee.css",
|
|
98
105
|
"./recipes/menubar.css": "./src/components/menubar/menubar.css",
|
|
106
|
+
"./recipes/message.css": "./src/components/message/message.css",
|
|
99
107
|
"./recipes/navigation-menu.css": "./src/components/navigation-menu/navigation-menu.css",
|
|
100
108
|
"./recipes/pagination.css": "./src/components/pagination/pagination.css",
|
|
101
109
|
"./recipes/panel-setting-button.css": "./src/components/panel-setting-button/panel-setting-button.css",
|
|
@@ -103,6 +111,7 @@
|
|
|
103
111
|
"./recipes/preview-card.css": "./src/components/preview-card/preview-card.css",
|
|
104
112
|
"./recipes/progress.css": "./src/components/progress/progress.css",
|
|
105
113
|
"./recipes/radio.css": "./src/components/radio/radio.css",
|
|
114
|
+
"./recipes/rating.css": "./src/components/rating/rating.css",
|
|
106
115
|
"./recipes/resizable.css": "./src/components/resizable/resizable.css",
|
|
107
116
|
"./recipes/scroll-area.css": "./src/components/scroll-area/scroll-area.css",
|
|
108
117
|
"./recipes/scrollable-list.css": "./src/components/scrollable-list/scrollable-list.css",
|
|
@@ -119,6 +128,7 @@
|
|
|
119
128
|
"./recipes/tabs.css": "./src/components/tabs/tabs.css",
|
|
120
129
|
"./recipes/text-ticker.css": "./src/components/text-ticker/text-ticker.css",
|
|
121
130
|
"./recipes/textarea.css": "./src/components/textarea/textarea.css",
|
|
131
|
+
"./recipes/toaster.css": "./src/components/toaster/toaster.css",
|
|
122
132
|
"./recipes/toggle-group.css": "./src/components/toggle-group/toggle-group.css",
|
|
123
133
|
"./recipes/toggle.css": "./src/components/toggle/toggle.css",
|
|
124
134
|
"./recipes/tooltip.css": "./src/components/tooltip/tooltip.css",
|
|
@@ -143,14 +153,14 @@
|
|
|
143
153
|
"clsx": "^2.1.1",
|
|
144
154
|
"embla-carousel-react": "^8.6.0",
|
|
145
155
|
"input-otp": "^1.4.2",
|
|
146
|
-
"lucide-react": "^1.
|
|
147
|
-
"motion": "^
|
|
148
|
-
"react-day-picker": "^10.0.
|
|
149
|
-
"react-resizable-panels": "^4.
|
|
156
|
+
"lucide-react": "^1.70.0",
|
|
157
|
+
"motion": "^14.14.0",
|
|
158
|
+
"react-day-picker": "^10.0.2",
|
|
159
|
+
"react-resizable-panels": "^4.21.0",
|
|
150
160
|
"sonner": "^2.0.7",
|
|
151
161
|
"tailwind-merge": "^3.6.0",
|
|
152
|
-
"@atom63/styles": "0.1.0-beta.
|
|
153
|
-
"@atom63/ui-foundation": "0.
|
|
162
|
+
"@atom63/styles": "0.1.0-beta.9",
|
|
163
|
+
"@atom63/ui-foundation": "0.2.0-beta.6"
|
|
154
164
|
},
|
|
155
165
|
"peerDependencies": {
|
|
156
166
|
"react": "^19.1.0",
|
|
@@ -159,28 +169,28 @@
|
|
|
159
169
|
},
|
|
160
170
|
"devDependencies": {
|
|
161
171
|
"@eslint/js": "10.0.1",
|
|
162
|
-
"@storybook/addon-docs": "^10.6.
|
|
163
|
-
"@storybook/react-vite": "^10.6.
|
|
164
|
-
"@tailwindcss/cli": "^4.3.
|
|
165
|
-
"@testing-library/jest-dom": "
|
|
166
|
-
"@testing-library/react": "16.3.
|
|
167
|
-
"@testing-library/user-event": "14.6.
|
|
168
|
-
"@types/react": "^19.
|
|
169
|
-
"@types/react-dom": "^19.
|
|
170
|
-
"@vitejs/plugin-react": "^6.
|
|
171
|
-
"eslint": "10.
|
|
172
|
+
"@storybook/addon-docs": "^10.6.6",
|
|
173
|
+
"@storybook/react-vite": "^10.6.6",
|
|
174
|
+
"@tailwindcss/cli": "^4.3.5",
|
|
175
|
+
"@testing-library/jest-dom": "7.0.1",
|
|
176
|
+
"@testing-library/react": "16.3.3",
|
|
177
|
+
"@testing-library/user-event": "14.6.8",
|
|
178
|
+
"@types/react": "^19.3.0",
|
|
179
|
+
"@types/react-dom": "^19.3.0",
|
|
180
|
+
"@vitejs/plugin-react": "^6.3.0",
|
|
181
|
+
"eslint": "10.14.0",
|
|
172
182
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
173
183
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
174
184
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
175
|
-
"jsdom": "
|
|
176
|
-
"react": "^19.
|
|
177
|
-
"react-dom": "^19.
|
|
178
|
-
"react-hook-form": "^7.
|
|
179
|
-
"tailwindcss": "^4.3.
|
|
180
|
-
"tsup": "^
|
|
181
|
-
"typescript": "~
|
|
182
|
-
"typescript-eslint": "8.
|
|
183
|
-
"vitest": "
|
|
185
|
+
"jsdom": "31.0.1",
|
|
186
|
+
"react": "^19.3.1",
|
|
187
|
+
"react-dom": "^19.3.1",
|
|
188
|
+
"react-hook-form": "^7.91.0",
|
|
189
|
+
"tailwindcss": "^4.3.5",
|
|
190
|
+
"tsup": "^9.0.0",
|
|
191
|
+
"typescript": "~6.0.3",
|
|
192
|
+
"typescript-eslint": "8.72.2",
|
|
193
|
+
"vitest": "5.1.1",
|
|
184
194
|
"@atom63/eslint-config": "0.1.0",
|
|
185
195
|
"@atom63/tsconfig": "0.1.0"
|
|
186
196
|
},
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
* Alert recipe — a status callout. Faithful to prod @atom63/ui alert.tsx: a
|
|
3
3
|
* bordered status surface that re-flows its columns for a leading icon slot and
|
|
4
4
|
* a trailing action slot. The default variant is neutral; four semantic tones
|
|
5
|
-
* (error/info/success/warning) recolor border/bg/icon from --a63-status
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* (error/info/success/warning) recolor border/bg/icon from --a63-status-*. The
|
|
6
|
+
* action label is text, so it takes a text role (4.5:1), never the 3:1 status
|
|
7
|
+
* accent: error uses --a63-text-danger, the others their status
|
|
8
|
+
* -subtle-foreground step. It uses the SURFACE contract for
|
|
9
|
+
* wrapper treatment; controls inside the action slot keep their own
|
|
10
|
+
* action/control styling.
|
|
8
11
|
*/
|
|
9
12
|
|
|
10
13
|
.a63-Alert {
|
|
@@ -100,8 +103,8 @@
|
|
|
100
103
|
|
|
101
104
|
.a63-Alert-action {
|
|
102
105
|
position: absolute;
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
inset-block-start: var(--alert-action-inset);
|
|
107
|
+
inset-inline-end: var(--alert-action-inset);
|
|
105
108
|
display: flex;
|
|
106
109
|
gap: var(--a63-space-1);
|
|
107
110
|
}
|
|
@@ -123,29 +126,29 @@
|
|
|
123
126
|
}
|
|
124
127
|
|
|
125
128
|
/* ── Variants (default is the neutral base above) ──────────────────────── */
|
|
126
|
-
/* Default tone
|
|
127
|
-
|
|
128
|
-
background-color:
|
|
129
|
+
/* Default tone: no fill in light mode, a faint one in dark mode (prod dark:bg-input/32). */
|
|
130
|
+
.a63-Alert[data-variant='default'] {
|
|
131
|
+
background-color: var(--a63-alert-background);
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
.a63-Alert[data-variant='error'] {
|
|
132
|
-
--alert-accent: var(--a63-
|
|
133
|
-
--alert-action-foreground: var(--a63-
|
|
134
|
-
--alert-action-hover-background: color-mix(in oklch, var(--a63-
|
|
135
|
+
--alert-accent: var(--a63-status-danger);
|
|
136
|
+
--alert-action-foreground: var(--a63-text-danger);
|
|
137
|
+
--alert-action-hover-background: color-mix(in oklch, var(--a63-status-danger) 10%, transparent);
|
|
135
138
|
|
|
136
|
-
border-color: color-mix(in oklch, var(--a63-
|
|
137
|
-
background-color: color-mix(in oklch, var(--a63-
|
|
139
|
+
border-color: color-mix(in oklch, var(--a63-status-danger) 32%, transparent);
|
|
140
|
+
background-color: color-mix(in oklch, var(--a63-status-danger) 4%, transparent);
|
|
138
141
|
}
|
|
139
142
|
.a63-Alert[data-variant='error'] > svg {
|
|
140
|
-
color: var(--a63-
|
|
143
|
+
color: var(--a63-status-danger);
|
|
141
144
|
}
|
|
142
145
|
.a63-Alert[data-variant='error'] > [data-slot='alert-icon'] {
|
|
143
|
-
color: var(--a63-
|
|
146
|
+
color: var(--a63-status-danger);
|
|
144
147
|
}
|
|
145
148
|
|
|
146
149
|
.a63-Alert[data-variant='info'] {
|
|
147
150
|
--alert-accent: var(--a63-status-info);
|
|
148
|
-
--alert-action-foreground: var(--a63-status-info);
|
|
151
|
+
--alert-action-foreground: var(--a63-status-info-subtle-foreground);
|
|
149
152
|
--alert-action-hover-background: color-mix(in oklch, var(--a63-status-info) 10%, transparent);
|
|
150
153
|
|
|
151
154
|
border-color: color-mix(in oklch, var(--a63-status-info) 32%, transparent);
|
|
@@ -160,7 +163,7 @@
|
|
|
160
163
|
|
|
161
164
|
.a63-Alert[data-variant='success'] {
|
|
162
165
|
--alert-accent: var(--a63-status-success);
|
|
163
|
-
--alert-action-foreground: var(--a63-status-success);
|
|
166
|
+
--alert-action-foreground: var(--a63-status-success-subtle-foreground);
|
|
164
167
|
--alert-action-hover-background: color-mix(in oklch, var(--a63-status-success) 10%, transparent);
|
|
165
168
|
|
|
166
169
|
border-color: color-mix(in oklch, var(--a63-status-success) 32%, transparent);
|
|
@@ -175,7 +178,7 @@
|
|
|
175
178
|
|
|
176
179
|
.a63-Alert[data-variant='warning'] {
|
|
177
180
|
--alert-accent: var(--a63-status-warning);
|
|
178
|
-
--alert-action-foreground: var(--a63-status-warning);
|
|
181
|
+
--alert-action-foreground: var(--a63-status-warning-subtle-foreground);
|
|
179
182
|
--alert-action-hover-background: color-mix(in oklch, var(--a63-status-warning) 12%, transparent);
|
|
180
183
|
|
|
181
184
|
border-color: color-mix(in oklch, var(--a63-status-warning) 32%, transparent);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Amount recipe — the SURFACE archetype. Reads the display text roles
|
|
3
|
+
* (--a63-type-display-*, --a63-type-display-large-*), so it follows the type
|
|
4
|
+
* scale, the window size and the phone form factor. The fraction matches the
|
|
5
|
+
* `amount-fraction` utility and iOS AtomTokens.AmountFraction: half size,
|
|
6
|
+
* raised 0.8em, with no line height of its own so the line keeps the role's.
|
|
7
|
+
* data-fraction='baseline' matches `amount-fraction-baseline` and iOS
|
|
8
|
+
* AtomAmountFraction.baseline: the same size, on the baseline.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
.a63-Amount {
|
|
12
|
+
--amount-font-size: var(--a63-type-display-font-size);
|
|
13
|
+
--amount-line-height: var(--a63-type-display-line-height);
|
|
14
|
+
--amount-font-weight: var(--a63-type-display-font-weight);
|
|
15
|
+
--amount-font-weight-strong: var(--a63-type-display-font-weight-strong);
|
|
16
|
+
|
|
17
|
+
position: relative;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
font-size: var(--amount-font-size);
|
|
20
|
+
font-variant-numeric: tabular-nums;
|
|
21
|
+
font-weight: var(--amount-font-weight);
|
|
22
|
+
line-height: var(--amount-line-height);
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.a63-Amount[data-size='lg'] {
|
|
27
|
+
--amount-font-size: var(--a63-type-display-large-font-size);
|
|
28
|
+
--amount-line-height: var(--a63-type-display-large-line-height);
|
|
29
|
+
--amount-font-weight: var(--a63-type-display-large-font-weight);
|
|
30
|
+
--amount-font-weight-strong: var(--a63-type-display-large-font-weight-strong);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.a63-Amount[data-strong] {
|
|
34
|
+
font-weight: var(--amount-font-weight-strong);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.a63-AmountFraction {
|
|
38
|
+
font-size: 0.5em;
|
|
39
|
+
line-height: 0;
|
|
40
|
+
vertical-align: 0.8em;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.a63-Amount[data-fraction='baseline'] .a63-AmountFraction {
|
|
44
|
+
vertical-align: baseline;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* The whole amount as one label for assistive technology; the drawn parts are
|
|
48
|
+
aria-hidden. Not selectable, so copying the amount copies it once. */
|
|
49
|
+
.a63-Amount-label {
|
|
50
|
+
position: absolute;
|
|
51
|
+
width: 1px;
|
|
52
|
+
height: 1px;
|
|
53
|
+
padding: 0;
|
|
54
|
+
margin: -1px;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
clip: rect(0, 0, 0, 0);
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
border-width: 0;
|
|
59
|
+
user-select: none;
|
|
60
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* AppView recipe — the SURFACE archetype. The frame of a full-window view:
|
|
3
|
+
* the root is a column as tall as the viewport, and only the main region
|
|
4
|
+
* scrolls. The contract levers are data-layout (window, phone) and
|
|
5
|
+
* data-chrome (inset, flush). Each safe-area inset has one owner: the root
|
|
6
|
+
* takes the inline insets, the top bar the top one, and data-bottom-inset
|
|
7
|
+
* names the owner of the bottom one (tab-bar, bottom-bar or main).
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
.a63-AppView {
|
|
11
|
+
--a63-app-view-inset-top: var(--a63-safe-area-top, env(safe-area-inset-top, 0px));
|
|
12
|
+
--a63-app-view-inset-bottom: var(--a63-safe-area-bottom, env(safe-area-inset-bottom, 0px));
|
|
13
|
+
--a63-app-view-inset-inline: max(
|
|
14
|
+
var(--a63-safe-area-left, env(safe-area-inset-left, 0px)),
|
|
15
|
+
var(--a63-safe-area-right, env(safe-area-inset-right, 0px))
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
block-size: 100dvh;
|
|
22
|
+
padding-inline: var(--a63-app-view-inset-inline);
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
background-color: var(--a63-surface-page);
|
|
25
|
+
color: var(--a63-text-primary);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.a63-AppView [data-slot='app-view-top-bar'],
|
|
29
|
+
.a63-AppView > [data-slot='app-view-bottom-bar'],
|
|
30
|
+
.a63-AppView > [data-slot='app-view-tab-bar'] {
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.a63-AppView [data-slot='app-view-top-bar'] {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: var(--a63-space-2);
|
|
38
|
+
padding-block-start: var(--a63-app-view-inset-top);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.a63-AppView > [data-slot='app-view-body'],
|
|
42
|
+
.a63-AppView [data-slot='app-view-content'] > [data-slot='app-view-body'] {
|
|
43
|
+
position: relative;
|
|
44
|
+
display: flex;
|
|
45
|
+
flex: 1;
|
|
46
|
+
min-block-size: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.a63-AppView [data-slot='app-view-main'] {
|
|
50
|
+
flex: 1;
|
|
51
|
+
min-inline-size: 0;
|
|
52
|
+
overflow-y: auto;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.a63-AppView [data-slot='app-view-panel'] {
|
|
56
|
+
display: none;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
flex-shrink: 0;
|
|
59
|
+
inline-size: var(--a63-app-view-panel-width, 18rem);
|
|
60
|
+
overflow-y: auto;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* topBarSpan="main": the top bar and the main region share a column after the rail and panel. */
|
|
64
|
+
.a63-AppView [data-slot='app-view-content'] {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex: 1;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
min-inline-size: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.a63-AppView [data-slot='app-view-rail'],
|
|
72
|
+
.a63-AppView [data-slot='app-view-aside'] {
|
|
73
|
+
display: none;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
overflow-y: auto;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.a63-AppView [data-slot='app-view-rail'] {
|
|
80
|
+
inline-size: var(--a63-app-view-rail-width, 4rem);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.a63-AppView [data-slot='app-view-aside'] {
|
|
84
|
+
inline-size: var(--a63-app-view-aside-width, 22rem);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.a63-AppView [data-slot='app-view-main']:focus-visible,
|
|
88
|
+
.a63-AppView [data-slot='app-view-rail']:focus-visible,
|
|
89
|
+
.a63-AppView [data-slot='app-view-panel']:focus-visible,
|
|
90
|
+
.a63-AppView [data-slot='app-view-aside']:focus-visible {
|
|
91
|
+
outline: var(--a63-control-focus-ring-width, 2px) solid var(--a63-focus-ring);
|
|
92
|
+
outline-offset: calc(-1 * var(--a63-control-focus-ring-width, 2px));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* A Sidebar in the panel fills it instead of the viewport. */
|
|
96
|
+
.a63-AppView [data-slot='app-view-panel'] [data-slot='sidebar-wrapper'] {
|
|
97
|
+
min-block-size: 0;
|
|
98
|
+
block-size: 100%;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.a63-AppView [data-slot='app-view-overlay'] {
|
|
102
|
+
position: absolute;
|
|
103
|
+
inset-block-end: var(--a63-space-4);
|
|
104
|
+
inset-inline-end: var(--a63-space-4);
|
|
105
|
+
display: flex;
|
|
106
|
+
gap: var(--a63-space-2);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.a63-AppView > [data-slot='app-view-bottom-bar'] {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: var(--a63-space-4);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.a63-AppView[data-bottom-inset='tab-bar'] > [data-slot='app-view-tab-bar'],
|
|
116
|
+
.a63-AppView[data-bottom-inset='bottom-bar'] > [data-slot='app-view-bottom-bar'],
|
|
117
|
+
.a63-AppView[data-bottom-inset='main'] [data-slot='app-view-main'] {
|
|
118
|
+
padding-block-end: var(--a63-app-view-inset-bottom);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Window: the side panel from md up, the tab bar below md only. */
|
|
122
|
+
@media (min-width: 48rem) {
|
|
123
|
+
.a63-AppView[data-layout='window'] [data-slot='app-view-rail'],
|
|
124
|
+
.a63-AppView[data-layout='window'] [data-slot='app-view-panel'] {
|
|
125
|
+
display: flex;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.a63-AppView[data-layout='window'] > [data-slot='app-view-tab-bar'] {
|
|
129
|
+
display: none;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Window, lg up: the aside, and the overlay moves clear of it. */
|
|
134
|
+
@media (min-width: 64rem) {
|
|
135
|
+
.a63-AppView[data-layout='window'] [data-slot='app-view-aside'] {
|
|
136
|
+
display: flex;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.a63-AppView[data-aside] [data-slot='app-view-overlay'] {
|
|
140
|
+
inset-inline-end: calc(
|
|
141
|
+
var(--a63-space-4) + var(--a63-app-view-aside-width, 22rem) +
|
|
142
|
+
var(--a63-app-view-column-gap, 0px)
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Window, inset: a padded window with the panel and main on rounded cards. */
|
|
148
|
+
.a63-AppView[data-chrome='inset'] {
|
|
149
|
+
gap: var(--a63-space-2);
|
|
150
|
+
padding: var(--a63-space-2) max(var(--a63-space-2), var(--a63-app-view-inset-inline));
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.a63-AppView[data-chrome='inset'] {
|
|
154
|
+
--a63-app-view-column-gap: var(--a63-space-2);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.a63-AppView[data-chrome='inset'] [data-slot='app-view-body'],
|
|
158
|
+
.a63-AppView[data-chrome='inset'] [data-slot='app-view-content'] {
|
|
159
|
+
gap: var(--a63-space-2);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.a63-AppView[data-chrome='inset'] [data-slot='app-view-rail'],
|
|
163
|
+
.a63-AppView[data-chrome='inset'] [data-slot='app-view-panel'],
|
|
164
|
+
.a63-AppView[data-chrome='inset'] [data-slot='app-view-main'],
|
|
165
|
+
.a63-AppView[data-chrome='inset'] [data-slot='app-view-aside'] {
|
|
166
|
+
border-radius: var(--radius-xl);
|
|
167
|
+
background-color: var(--a63-surface-panel);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.a63-AppView[data-chrome='inset'] [data-slot='app-view-rail'],
|
|
171
|
+
.a63-AppView[data-chrome='inset'] [data-slot='app-view-panel'],
|
|
172
|
+
.a63-AppView[data-chrome='inset'] [data-slot='app-view-aside'] {
|
|
173
|
+
padding: var(--a63-space-2);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.a63-AppView[data-chrome='inset'] > [data-slot='app-view-bottom-bar'] {
|
|
177
|
+
padding-inline: var(--a63-space-2);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* The tab bar runs to the window edges and the bottom. */
|
|
181
|
+
.a63-AppView[data-chrome='inset'] > [data-slot='app-view-tab-bar'] {
|
|
182
|
+
margin-inline: calc(-1 * max(var(--a63-space-2), var(--a63-app-view-inset-inline)));
|
|
183
|
+
margin-block-end: calc(-1 * var(--a63-space-2));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* Flush (a flush window and every phone): edge to edge, split by borders. */
|
|
187
|
+
.a63-AppView[data-chrome='flush'] [data-slot='app-view-top-bar'] {
|
|
188
|
+
min-block-size: calc(3.5rem + var(--a63-app-view-inset-top));
|
|
189
|
+
padding-inline: var(--a63-space-4);
|
|
190
|
+
border-block-end: 1px solid var(--a63-border-subtle);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.a63-AppView[data-chrome='flush'] [data-slot='app-view-rail'],
|
|
194
|
+
.a63-AppView[data-chrome='flush'] [data-slot='app-view-panel'] {
|
|
195
|
+
border-inline-end: 1px solid var(--a63-border-subtle);
|
|
196
|
+
background-color: var(--a63-surface-sidebar);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.a63-AppView[data-chrome='flush'] [data-slot='app-view-rail'] {
|
|
200
|
+
padding-block: var(--a63-space-2);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.a63-AppView[data-chrome='flush'] [data-slot='app-view-aside'] {
|
|
204
|
+
border-inline-start: 1px solid var(--a63-border-subtle);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* With the top bar over the main region only, the rail and panel run to the top edge. */
|
|
208
|
+
.a63-AppView[data-chrome='flush'][data-top-bar-span='main'] [data-slot='app-view-rail'] {
|
|
209
|
+
padding-block-start: max(var(--a63-space-2), var(--a63-app-view-inset-top));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.a63-AppView[data-chrome='flush'][data-top-bar-span='main'] [data-slot='app-view-panel'] {
|
|
213
|
+
padding-block-start: var(--a63-app-view-inset-top);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.a63-AppView[data-chrome='flush'] > [data-slot='app-view-bottom-bar'] {
|
|
217
|
+
padding-block: var(--a63-space-2);
|
|
218
|
+
padding-inline: var(--a63-space-4);
|
|
219
|
+
border-block-start: 1px solid var(--a63-border-subtle);
|
|
220
|
+
gap: var(--a63-space-3);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.a63-AppView[data-chrome='flush'][data-bottom-inset='bottom-bar']
|
|
224
|
+
> [data-slot='app-view-bottom-bar'] {
|
|
225
|
+
padding-block-end: max(var(--a63-space-2), var(--a63-app-view-inset-bottom));
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* Phone: body-size text, so the screen inherits the phone type step. */
|
|
229
|
+
.a63-AppView[data-layout='phone'] {
|
|
230
|
+
font-size: var(--typography-base-font-size);
|
|
231
|
+
line-height: var(--typography-base-line-height);
|
|
232
|
+
}
|