@mrpelz/uikit-ish 7.7.1-feat-base-ui-styled.2 → 7.9.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.
- package/dist/components/accordion/main.d.ts +12 -0
- package/dist/components/accordion/main.d.ts.map +1 -0
- package/dist/components/accordion/main.js +20 -0
- package/dist/components/accordion/main.js.map +1 -0
- package/dist/components/accordion/style.css +23 -0
- package/dist/components/action-sheet/main.d.ts +22 -15
- package/dist/components/action-sheet/main.d.ts.map +1 -1
- package/dist/components/action-sheet/main.js +86 -16
- package/dist/components/action-sheet/main.js.map +1 -1
- package/dist/components/action-sheet/props.d.ts +17 -5
- package/dist/components/action-sheet/props.d.ts.map +1 -1
- package/dist/components/action-sheet/style.css +15 -0
- package/dist/components/activity-view/main.d.ts +14 -3
- package/dist/components/activity-view/main.d.ts.map +1 -1
- package/dist/components/activity-view/main.js +19 -4
- package/dist/components/activity-view/main.js.map +1 -1
- package/dist/components/activity-view/props.d.ts +2 -10
- package/dist/components/activity-view/props.d.ts.map +1 -1
- package/dist/components/activity-view/style.css +8 -46
- package/dist/components/alert/main.d.ts +6 -4
- package/dist/components/alert/main.d.ts.map +1 -1
- package/dist/components/alert/main.js +20 -4
- package/dist/components/alert/main.js.map +1 -1
- package/dist/components/alert/props.d.ts +12 -1
- package/dist/components/alert/props.d.ts.map +1 -1
- package/dist/components/alert/style.css +13 -27
- package/dist/components/avatar/main.d.ts +5 -3
- package/dist/components/avatar/main.d.ts.map +1 -1
- package/dist/components/avatar/main.js +3 -0
- package/dist/components/avatar/main.js.map +1 -1
- package/dist/components/avatar/props.d.ts +4 -0
- package/dist/components/avatar/props.d.ts.map +1 -1
- package/dist/components/avatar/style.css +0 -6
- package/dist/components/badge/main.d.ts +2 -2
- package/dist/components/badge/main.d.ts.map +1 -1
- package/dist/components/badge/main.js +5 -5
- package/dist/components/badge/main.js.map +1 -1
- package/dist/components/badge/props.d.ts +4 -3
- package/dist/components/badge/props.d.ts.map +1 -1
- package/dist/components/badge/style.css +3 -2
- package/dist/components/button/main.d.ts.map +1 -1
- package/dist/components/button/main.js +6 -6
- package/dist/components/button/main.js.map +1 -1
- package/dist/components/button/style.css +11 -27
- package/dist/components/checkbox/style.css +2 -5
- package/dist/components/collapsible/main.d.ts +9 -0
- package/dist/components/collapsible/main.d.ts.map +1 -0
- package/dist/components/collapsible/main.js +19 -0
- package/dist/components/collapsible/main.js.map +1 -0
- package/dist/components/collapsible/style.css +23 -0
- package/dist/components/color-picker/main.d.ts +1 -1
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +40 -33
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/props.d.ts +21 -7
- package/dist/components/color-picker/props.d.ts.map +1 -1
- package/dist/components/color-picker/style.css +9 -27
- package/dist/components/contextual-menu/main.d.ts +11 -7
- package/dist/components/contextual-menu/main.d.ts.map +1 -1
- package/dist/components/contextual-menu/main.js +99 -47
- package/dist/components/contextual-menu/main.js.map +1 -1
- package/dist/components/contextual-menu/props.d.ts +17 -7
- package/dist/components/contextual-menu/props.d.ts.map +1 -1
- package/dist/components/contextual-menu/style.css +11 -8
- package/dist/components/date-picker/handle.d.ts +41 -0
- package/dist/components/date-picker/handle.d.ts.map +1 -0
- package/dist/components/date-picker/handle.js +47 -0
- package/dist/components/date-picker/handle.js.map +1 -0
- package/dist/components/date-picker/main.d.ts +31 -49
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +300 -139
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/pager.d.ts +24 -0
- package/dist/components/date-picker/pager.d.ts.map +1 -0
- package/dist/components/date-picker/pager.js +307 -0
- package/dist/components/date-picker/pager.js.map +1 -0
- package/dist/components/date-picker/props.d.ts +93 -22
- package/dist/components/date-picker/props.d.ts.map +1 -1
- package/dist/components/date-picker/style.css +59 -71
- package/dist/components/drawer/main.d.ts +31 -0
- package/dist/components/drawer/main.d.ts.map +1 -0
- package/dist/components/drawer/main.js +74 -0
- package/dist/components/drawer/main.js.map +1 -0
- package/dist/components/drawer/props.d.ts +39 -0
- package/dist/components/drawer/props.d.ts.map +1 -0
- package/dist/components/drawer/props.js +2 -0
- package/dist/components/drawer/props.js.map +1 -0
- package/dist/components/drawer/style.css +135 -0
- package/dist/components/edit-menu/main.d.ts +7 -7
- package/dist/components/edit-menu/main.d.ts.map +1 -1
- package/dist/components/edit-menu/main.js +31 -23
- package/dist/components/edit-menu/main.js.map +1 -1
- package/dist/components/edit-menu/props.d.ts +13 -0
- package/dist/components/edit-menu/props.d.ts.map +1 -1
- package/dist/components/edit-menu/style.css +5 -7
- package/dist/components/form/main.d.ts +8 -0
- package/dist/components/form/main.d.ts.map +1 -1
- package/dist/components/form/main.js +15 -2
- package/dist/components/form/main.js.map +1 -1
- package/dist/components/form/props.d.ts +1 -2
- package/dist/components/form/props.d.ts.map +1 -1
- package/dist/components/glass/style.css +19 -4
- package/dist/components/header/main.d.ts +5 -4
- package/dist/components/header/main.d.ts.map +1 -1
- package/dist/components/header/main.js +56 -27
- package/dist/components/header/main.js.map +1 -1
- package/dist/components/header/props.d.ts +2 -3
- package/dist/components/header/props.d.ts.map +1 -1
- package/dist/components/header/style.css +62 -42
- package/dist/components/index.d.ts +26 -22
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +17 -13
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/main.d.ts +2 -2
- package/dist/components/layout/main.d.ts.map +1 -1
- package/dist/components/layout/main.js +59 -163
- package/dist/components/layout/main.js.map +1 -1
- package/dist/components/layout/props.d.ts +2 -20
- package/dist/components/layout/props.d.ts.map +1 -1
- package/dist/components/layout/style.css +18 -89
- package/dist/components/list/main.d.ts +49 -9
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +769 -208
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +165 -8
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/style.css +308 -371
- package/dist/components/list/swipe-actions-handle.d.ts +40 -0
- package/dist/components/list/swipe-actions-handle.d.ts.map +1 -0
- package/dist/components/list/swipe-actions-handle.js +51 -0
- package/dist/components/list/swipe-actions-handle.js.map +1 -0
- package/dist/components/menu/main.d.ts +31 -8
- package/dist/components/menu/main.d.ts.map +1 -1
- package/dist/components/menu/main.js +175 -39
- package/dist/components/menu/main.js.map +1 -1
- package/dist/components/menu/props.d.ts +2 -1
- package/dist/components/menu/props.d.ts.map +1 -1
- package/dist/components/menu/style.css +10 -32
- package/dist/components/navigation/main.d.ts +11 -2
- package/dist/components/navigation/main.d.ts.map +1 -1
- package/dist/components/navigation/main.js +186 -98
- package/dist/components/navigation/main.js.map +1 -1
- package/dist/components/navigation/props.d.ts +20 -3
- package/dist/components/navigation/props.d.ts.map +1 -1
- package/dist/components/navigation/style.css +24 -7
- package/dist/components/page/main.d.ts.map +1 -1
- package/dist/components/page/main.js +2 -2
- package/dist/components/page/main.js.map +1 -1
- package/dist/components/page/props.d.ts +8 -0
- package/dist/components/page/props.d.ts.map +1 -1
- package/dist/components/page/style.css +39 -1
- package/dist/components/page-control/main.d.ts +1 -1
- package/dist/components/page-control/main.d.ts.map +1 -1
- package/dist/components/page-control/main.js +59 -25
- package/dist/components/page-control/main.js.map +1 -1
- package/dist/components/page-control/props.d.ts +10 -2
- package/dist/components/page-control/props.d.ts.map +1 -1
- package/dist/components/page-control/style.css +5 -0
- package/dist/components/popover/main.d.ts +11 -6
- package/dist/components/popover/main.d.ts.map +1 -1
- package/dist/components/popover/main.js +53 -31
- package/dist/components/popover/main.js.map +1 -1
- package/dist/components/popover/props.d.ts +7 -6
- package/dist/components/popover/props.d.ts.map +1 -1
- package/dist/components/popover/style.css +45 -4
- package/dist/components/progress/main.d.ts +1 -1
- package/dist/components/progress/main.d.ts.map +1 -1
- package/dist/components/progress/main.js +108 -15
- package/dist/components/progress/main.js.map +1 -1
- package/dist/components/progress/props.d.ts +25 -5
- package/dist/components/progress/props.d.ts.map +1 -1
- package/dist/components/progress/style.css +67 -35
- package/dist/components/roll/main.d.ts +1 -1
- package/dist/components/roll/main.d.ts.map +1 -1
- package/dist/components/roll/main.js +81 -25
- package/dist/components/roll/main.js.map +1 -1
- package/dist/components/roll/props.d.ts +24 -7
- package/dist/components/roll/props.d.ts.map +1 -1
- package/dist/components/roll/style.css +1 -13
- package/dist/components/segmented/main.js +3 -3
- package/dist/components/segmented/main.js.map +1 -1
- package/dist/components/segmented/style.css +2 -14
- package/dist/components/sheet/main.d.ts +25 -15
- package/dist/components/sheet/main.d.ts.map +1 -1
- package/dist/components/sheet/main.js +57 -73
- package/dist/components/sheet/main.js.map +1 -1
- package/dist/components/sheet/props.d.ts +36 -2
- package/dist/components/sheet/props.d.ts.map +1 -1
- package/dist/components/sheet/style.css +176 -44
- package/dist/components/sidebar/style.css +13 -7
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +6 -5
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/style.css +2 -28
- package/dist/components/stepper/main.d.ts +4 -6
- package/dist/components/stepper/main.d.ts.map +1 -1
- package/dist/components/stepper/main.js +17 -11
- package/dist/components/stepper/main.js.map +1 -1
- package/dist/components/stepper/style.css +4 -8
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +16 -11
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/switch/props.d.ts +2 -2
- package/dist/components/switch/props.d.ts.map +1 -1
- package/dist/components/switch/style.css +28 -1
- package/dist/components/symbol/main.d.ts +2 -2
- package/dist/components/symbol/main.d.ts.map +1 -1
- package/dist/components/symbol/main.js +34 -27
- package/dist/components/symbol/main.js.map +1 -1
- package/dist/components/symbol/props.d.ts +39 -4
- package/dist/components/symbol/props.d.ts.map +1 -1
- package/dist/components/symbol/style.css +25 -4
- package/dist/components/tab-bar/main.d.ts.map +1 -1
- package/dist/components/tab-bar/main.js +59 -46
- package/dist/components/tab-bar/main.js.map +1 -1
- package/dist/components/tab-bar/props.d.ts +3 -3
- package/dist/components/tab-bar/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +24 -46
- package/dist/components/text-field/main.d.ts.map +1 -1
- package/dist/components/text-field/main.js +9 -8
- package/dist/components/text-field/main.js.map +1 -1
- package/dist/components/text-field/props.d.ts +8 -1
- package/dist/components/text-field/props.d.ts.map +1 -1
- package/dist/components/text-field/style.css +21 -55
- package/dist/components/toolbar/main.d.ts.map +1 -1
- package/dist/components/toolbar/main.js +11 -9
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/style.css +28 -22
- package/dist/components/tooltip/main.d.ts +10 -9
- package/dist/components/tooltip/main.d.ts.map +1 -1
- package/dist/components/tooltip/main.js +35 -6
- package/dist/components/tooltip/main.js.map +1 -1
- package/dist/components/tooltip/props.d.ts +2 -0
- package/dist/components/tooltip/props.d.ts.map +1 -1
- package/dist/components/tooltip/style.css +11 -11
- package/dist/components/typography/main.d.ts.map +1 -1
- package/dist/components/typography/main.js +16 -6
- package/dist/components/typography/main.js.map +1 -1
- package/dist/components/typography/props.d.ts +2 -9
- package/dist/components/typography/props.d.ts.map +1 -1
- package/dist/components/typography/style.css +0 -120
- package/dist/components/utils/main.d.ts +34 -5
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +81 -12
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/utils/props.d.ts +4 -2
- package/dist/components/utils/props.d.ts.map +1 -1
- package/dist/components/utils/style.css +29 -16
- package/dist/components/viewport/input.d.ts +23 -0
- package/dist/components/viewport/input.d.ts.map +1 -0
- package/dist/components/viewport/input.js +95 -0
- package/dist/components/viewport/input.js.map +1 -0
- package/dist/components/viewport/main.d.ts +42 -9
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +488 -66
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/padding.d.ts +50 -0
- package/dist/components/viewport/padding.d.ts.map +1 -0
- package/dist/components/viewport/padding.js +226 -0
- package/dist/components/viewport/padding.js.map +1 -0
- package/dist/components/viewport/props.d.ts +155 -7
- package/dist/components/viewport/props.d.ts.map +1 -1
- package/dist/components/viewport/style.css +172 -6
- package/dist/main.d.ts +0 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js.map +1 -1
- package/dist/styles.css +35 -2
- package/dist/styles.d.ts +2 -1
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +2 -1
- package/dist/styles.js.map +1 -1
- package/package.json +6 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './style.css';
|
|
2
|
+
import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
|
|
3
|
+
export declare const Accordion: {
|
|
4
|
+
Panel: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/accordion").AccordionPanelProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref">> & {
|
|
5
|
+
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
6
|
+
}>;
|
|
7
|
+
Root: <Value = any>(props: BaseAccordion.Root.Props<Value>) => import("react").JSX.Element;
|
|
8
|
+
Item: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/accordion").AccordionItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Header: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/accordion").AccordionHeaderProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/accordion").AccordionTriggerProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/main.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AA2BtE,eAAO,MAAM,SAAS;;;;;;;;CAGrB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import './style.css';
|
|
3
|
+
import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { cn } from '../utils/main.js';
|
|
6
|
+
// Base UI's Accordion (collapsibles, one open at a time unless `multiple`),
|
|
7
|
+
// its panels opening and closing in place as a list's collapsible rows do
|
|
8
|
+
// (see `List.AccordionPanel`): their height and opacity transitioning
|
|
9
|
+
// (300ms). Its other parts are Base UI's, rendered by what they collapse
|
|
10
|
+
// and toggle (e.g. an item a `List.Section`, its trigger in a
|
|
11
|
+
// `List.Header`, its panel a `List.Group`).
|
|
12
|
+
//
|
|
13
|
+
// Deviations: none (Base UI's, styled).
|
|
14
|
+
/** Base UI's `Accordion.Panel`, its height and opacity transitioning. */
|
|
15
|
+
const Panel = forwardRef(({ className, ...props }, ref) => (_jsx(BaseAccordion.Panel, { ref: ref, className: cn('uikit-accordion-panel', className), "data-accordion-part": "panel", ...props })));
|
|
16
|
+
export const Accordion = {
|
|
17
|
+
...BaseAccordion,
|
|
18
|
+
Panel,
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/accordion/main.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAEtC,4EAA4E;AAC5E,0EAA0E;AAC1E,sEAAsE;AACtE,yEAAyE;AACzE,8DAA8D;AAC9D,4CAA4C;AAC5C,EAAE;AACF,wCAAwC;AAExC,yEAAyE;AACzE,MAAM,KAAK,GAAG,UAAU,CAGtB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,aAAa,CAAC,KAAK,IAClB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE,SAAS,CAAC,yBAC7B,OAAO,KACvB,KAAK,GACT,CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,GAAG,aAAa;IAChB,KAAK;CACN,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* Accordion (see main.tsx). */
|
|
2
|
+
@layer uikit-ish {
|
|
3
|
+
/* Its height (Base UI's, measured) and opacity transitioning, from and to
|
|
4
|
+
nothing (Base UI's starting and ending styles), as a list's collapsible
|
|
5
|
+
rows (List.AccordionPanel: 300ms). */
|
|
6
|
+
.uikit-accordion-panel {
|
|
7
|
+
overflow: clip;
|
|
8
|
+
height: var(--accordion-panel-height);
|
|
9
|
+
transition:
|
|
10
|
+
height 300ms ease,
|
|
11
|
+
opacity 300ms ease;
|
|
12
|
+
|
|
13
|
+
&[data-starting-style],
|
|
14
|
+
&[data-ending-style] {
|
|
15
|
+
height: 0;
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (prefers-reduced-motion: reduce) {
|
|
20
|
+
transition: none;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
import '../glass/style.css';
|
|
2
|
+
import '../menu/style.css';
|
|
2
3
|
import '../alert/style.css';
|
|
3
4
|
import './style.css';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import { Popover as BasePopover } from '@base-ui/react/popover';
|
|
6
|
+
import { ReactElement } from 'react';
|
|
7
|
+
import type { ActionSheetActionProps, ActionSheetHandle, ActionSheetPopupProps } from './props.js';
|
|
8
|
+
export type { ActionSheetActionProps, ActionSheetActionVariant, ActionSheetHandle, ActionSheetPopupProps, } from './props.js';
|
|
9
|
+
/** `ActionSheet.createHandle`, in a component: made once, for its lifetime. */
|
|
10
|
+
export declare const useCreateActionSheetHandle: <Payload = unknown>() => ActionSheetHandle<Payload>;
|
|
7
11
|
/**
|
|
8
12
|
* An action sheet (UIKit `UIAlertController`, style `actionSheet`; Base
|
|
9
|
-
* UI's `
|
|
13
|
+
* UI's `Popover`, modal): choices for an action, at the control that
|
|
14
|
+
* presented it.
|
|
10
15
|
*/
|
|
11
16
|
export declare const ActionSheet: {
|
|
12
|
-
|
|
17
|
+
Root: <Payload>({ modal, onOpenChange, onOpenChangeComplete, ...props }: BasePopover.Root.Props<Payload>) => ReactElement;
|
|
18
|
+
Popup: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ActionSheetPopupProps> & {
|
|
13
19
|
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
14
20
|
}>;
|
|
15
21
|
Header: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
|
|
16
22
|
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
17
23
|
}>;
|
|
18
|
-
Title: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/
|
|
24
|
+
Title: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/popover").PopoverTitleProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>, "ref">> & {
|
|
19
25
|
ref?: import("preact").Ref<HTMLHeadingElement> | undefined;
|
|
20
26
|
}>;
|
|
21
|
-
Description: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/
|
|
27
|
+
Description: import("preact").FunctionalComponent<import("react").PropsWithoutRef<Omit<Omit<import("@base-ui/react/popover").PopoverDescriptionProps, "ref"> & import("react").RefAttributes<HTMLParagraphElement>, "ref">> & {
|
|
22
28
|
ref?: import("preact").Ref<HTMLParagraphElement> | undefined;
|
|
23
29
|
}>;
|
|
24
30
|
Actions: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
|
|
@@ -27,13 +33,14 @@ export declare const ActionSheet: {
|
|
|
27
33
|
Action: import("preact").FunctionalComponent<import("react").PropsWithoutRef<ActionSheetActionProps> & {
|
|
28
34
|
ref?: import("preact").Ref<HTMLButtonElement> | undefined;
|
|
29
35
|
}>;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Portal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
createHandle: <Payload = unknown>() => ActionSheetHandle<Payload>;
|
|
37
|
+
Trigger: BasePopover.Trigger;
|
|
38
|
+
Portal: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverPortalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
39
|
+
Positioner: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverPositionerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
40
|
+
Arrow: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverArrowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
41
|
+
Backdrop: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverBackdropProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
42
|
+
Close: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
Viewport: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/popover").PopoverViewportProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
44
|
+
Handle: typeof BasePopover.Handle;
|
|
38
45
|
};
|
|
39
46
|
//# sourceMappingURL=main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAIL,YAAY,EAKb,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAkMpB,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,GACrC,OAAO,GAAG,OAAO,OACd,iBAAiB,CAAC,OAAO,CAG7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW;WA9LV,OAAO,2DAKlB,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAG,YAAY;;;;;;;;;;;;;;;;;;;mBAyK3B,OAAO,iBAAgB,iBAAiB,CAAC,OAAO,CAAC;;;;;;;;;CA0BtE,CAAC"}
|
|
@@ -1,35 +1,105 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import '../glass/style.css';
|
|
3
|
+
import '../menu/style.css';
|
|
3
4
|
import '../alert/style.css';
|
|
4
5
|
import './style.css';
|
|
5
|
-
import {
|
|
6
|
-
import { forwardRef } from 'react';
|
|
7
|
-
import {
|
|
8
|
-
import { cn } from '../utils/main.js';
|
|
6
|
+
import { Popover as BasePopover } from '@base-ui/react/popover';
|
|
7
|
+
import { createContext, forwardRef, useContext, useMemo, useState, } from 'react';
|
|
8
|
+
import { cn, useCollision, useForwardedRef, useInitialFocus, usePortalContainer, } from '../utils/main.js';
|
|
9
9
|
// Source: Apple iOS 26 Figma (“Action Sheets”): an alert's panel (see
|
|
10
10
|
// `Alert`) of a title and description and its actions, stacked (Secondary
|
|
11
|
-
// and Destructive types: on a gray fill, the label's color, red). As
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
// `
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
// and Destructive types: on a gray fill, the label's color, red). As iOS
|
|
12
|
+
// 26's: at the control that presented it (below it, above it if there's no
|
|
13
|
+
// room; Base UI's `Popover`, positioned as a popover without an arrow,
|
|
14
|
+
// scaling in from it as menus); presented without one (e.g. by `open`), at
|
|
15
|
+
// its container's bottom, above its safe area. Modal: the page dimmed
|
|
16
|
+
// behind it (Figma has none), dismissed by a press outside it.
|
|
17
|
+
//
|
|
18
|
+
// iPad shows action sheets as popovers (with an arrow): the app's choice
|
|
19
|
+
// (see `Popover`).
|
|
20
|
+
// The trigger it opened from (its change's), if any (see `Popup`).
|
|
21
|
+
const ActionSheetContext = createContext(null);
|
|
22
|
+
const Root = ({ modal = true, onOpenChange, onOpenChangeComplete, ...props }) => {
|
|
23
|
+
const [trigger, setTrigger] = useState(null);
|
|
24
|
+
return (_jsx(ActionSheetContext.Provider, { value: trigger, children: _jsx(BasePopover.Root, { modal: modal, ...props, onOpenChange: (isOpen, eventDetails) => {
|
|
25
|
+
if (isOpen)
|
|
26
|
+
setTrigger(eventDetails.trigger ?? null);
|
|
27
|
+
onOpenChange?.(isOpen, eventDetails);
|
|
28
|
+
}, onOpenChangeComplete: (isOpen) => {
|
|
29
|
+
// (Closed: presented anew, by a trigger or not.)
|
|
30
|
+
if (!isOpen)
|
|
31
|
+
setTrigger(null);
|
|
32
|
+
onOpenChangeComplete?.(isOpen);
|
|
33
|
+
} }) }));
|
|
34
|
+
};
|
|
35
|
+
/** An element of a portal's container (its ref's, or the document's). */
|
|
36
|
+
const containerElement = (container) => {
|
|
37
|
+
const element = container && 'current' in container
|
|
38
|
+
? container.current
|
|
39
|
+
: container;
|
|
40
|
+
return element instanceof Element ? element : document.documentElement;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Its anchor without a trigger: its container's bottom center, above its
|
|
44
|
+
* safe area (the container's `--uikit-safe-area-inset-bottom`, if any).
|
|
45
|
+
*/
|
|
46
|
+
const bottomAnchor = (container) => ({
|
|
47
|
+
getBoundingClientRect: () => {
|
|
48
|
+
const element = containerElement(container);
|
|
49
|
+
const box = element === document.documentElement
|
|
50
|
+
? new DOMRect(0, 0, innerWidth, innerHeight)
|
|
51
|
+
: element.getBoundingClientRect();
|
|
52
|
+
const inset = Number.parseFloat(getComputedStyle(element).getPropertyValue('--uikit-safe-area-inset-bottom')) || 0;
|
|
53
|
+
return new DOMRect(box.left + box.width / 2, box.bottom - inset, 0, 0);
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* The sheet at its trigger (or its container's bottom), the page dimmed
|
|
58
|
+
* behind it, in its portal.
|
|
59
|
+
*/
|
|
60
|
+
const Popup = forwardRef(({ className, container: containerProp, initialFocus, ...props }, ref) => {
|
|
61
|
+
const container = usePortalContainer(containerProp) ?? undefined;
|
|
62
|
+
const trigger = useContext(ActionSheetContext);
|
|
63
|
+
const popupRef = useForwardedRef(ref);
|
|
64
|
+
const focus = useInitialFocus(popupRef);
|
|
65
|
+
const bottom = useMemo(() => bottomAnchor(container), [container]);
|
|
66
|
+
// Within its container (e.g. the views' frames), clear of its safe area.
|
|
67
|
+
const collision = useCollision({});
|
|
68
|
+
return (_jsxs(BasePopover.Portal, { className: "uikit-alert-portal", container: container, children: [_jsx(BasePopover.Backdrop, { className: "uikit-action-sheet-backdrop uikit-alert-backdrop", "data-action-sheet-part": "backdrop" }), _jsx(BasePopover.Positioner, { anchor: trigger ? undefined : bottom, className: "uikit-action-sheet-positioner", ...collision, side: trigger ? 'bottom' : 'top', sideOffset: 8, children: _jsx(BasePopover.Popup, { ref: popupRef, initialFocus: initialFocus ?? focus, ...props, "data-action-sheet-part": "popup", className: cn('uikit-action-sheet-popup uikit-alert-panel uikit-glass-medium uikit-popup-transition', className) }) })] }));
|
|
69
|
+
});
|
|
70
|
+
/** Its title and description (as an alert's, see `Alert.Header`). */
|
|
71
|
+
const Header = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-action-sheet-part": "header", ...props, className: cn('uikit-action-sheet-header uikit-alert-header', className) })));
|
|
72
|
+
const Title = forwardRef(({ className, ...props }, ref) => (_jsx(BasePopover.Title, { ref: ref, className: cn('uikit-action-sheet-title uikit-alert-title', className), "data-action-sheet-part": "title", ...props })));
|
|
73
|
+
const Description = forwardRef(({ className, ...props }, ref) => (_jsx(BasePopover.Description, { ref: ref, "data-action-sheet-part": "description", className: cn('uikit-action-sheet-description uikit-alert-description', className), ...props })));
|
|
19
74
|
const Actions = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn('uikit-action-sheet-actions', className), "data-action-sheet-part": "actions", ...props })));
|
|
20
75
|
/** An action, closing the sheet. */
|
|
21
|
-
const Action = forwardRef(({ className, variant = 'secondary', ...props }, ref) => (_jsx(
|
|
76
|
+
const Action = forwardRef(({ className, variant = 'secondary', ...props }, ref) => (_jsx(BasePopover.Close, { ref: ref, "data-action-sheet-part": "action", "data-variant": variant, ...props, className: cn('uikit-action-sheet-action uikit-alert-action', className) })));
|
|
77
|
+
/**
|
|
78
|
+
* A handle linking an action sheet to its triggers outside it, and opening
|
|
79
|
+
* or closing it imperatively (Base UI's `Popover.createHandle`): pass it to
|
|
80
|
+
* the root's and the triggers' `handle` (in a component, see
|
|
81
|
+
* `useCreateActionSheetHandle`).
|
|
82
|
+
*/
|
|
83
|
+
const createHandle = () => BasePopover.createHandle();
|
|
84
|
+
/** `ActionSheet.createHandle`, in a component: made once, for its lifetime. */
|
|
85
|
+
export const useCreateActionSheetHandle = () => {
|
|
86
|
+
const [handle] = useState(() => createHandle());
|
|
87
|
+
return handle;
|
|
88
|
+
};
|
|
22
89
|
/**
|
|
23
90
|
* An action sheet (UIKit `UIAlertController`, style `actionSheet`; Base
|
|
24
|
-
* UI's `
|
|
91
|
+
* UI's `Popover`, modal): choices for an action, at the control that
|
|
92
|
+
* presented it.
|
|
25
93
|
*/
|
|
26
94
|
export const ActionSheet = {
|
|
27
|
-
...
|
|
95
|
+
...BasePopover,
|
|
96
|
+
Root,
|
|
28
97
|
Popup,
|
|
29
|
-
Header
|
|
98
|
+
Header,
|
|
30
99
|
Title,
|
|
31
100
|
Description,
|
|
32
101
|
Actions,
|
|
33
102
|
Action,
|
|
103
|
+
createHandle,
|
|
34
104
|
};
|
|
35
105
|
//# sourceMappingURL=main.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/action-sheet/main.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/action-sheet/main.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAEL,aAAa,EACb,UAAU,EAGV,UAAU,EACV,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,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,WAAW;IACd,IAAI;IACJ,KAAK;IACL,MAAM;IACN,KAAK;IACL,WAAW;IACX,OAAO;IACP,MAAM;IACN,YAAY;CACb,CAAC"}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export type ActionSheetActionProps = Omit<BaseDialog.Close.Props, 'ref'> & {
|
|
1
|
+
import type { Popover as BasePopover } from '@base-ui/react/popover';
|
|
2
|
+
export type ActionSheetPopupProps = Omit<BasePopover.Popup.Props, 'ref'> & {
|
|
4
3
|
/**
|
|
5
|
-
*
|
|
4
|
+
* Where its portal renders it (Base UI's `Popover.Portal`), e.g. a frame
|
|
5
|
+
* of the app's: its dimmed backdrop filling it if it's a containing
|
|
6
|
+
* block; without a trigger, the sheet at its bottom.
|
|
7
|
+
* @default document.body
|
|
8
|
+
*/
|
|
9
|
+
container?: BasePopover.Portal.Props['container'];
|
|
10
|
+
};
|
|
11
|
+
/** A handle linking an action sheet to its triggers outside it. */
|
|
12
|
+
export type ActionSheetHandle<Payload = unknown> = BasePopover.Handle<Payload>;
|
|
13
|
+
/** Figma “Type” (no primary: an action sheet has no preferred action). */
|
|
14
|
+
export type ActionSheetActionVariant = 'destructive' | 'secondary';
|
|
15
|
+
export type ActionSheetActionProps = Omit<BasePopover.Close.Props, 'ref'> & {
|
|
16
|
+
/**
|
|
17
|
+
* Figma “Type”: secondary (the label's color), destructive (red).
|
|
6
18
|
* @default 'secondary'
|
|
7
19
|
*/
|
|
8
|
-
variant?:
|
|
20
|
+
variant?: ActionSheetActionVariant;
|
|
9
21
|
};
|
|
10
22
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/action-sheet/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACzE;;;;;OAKG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;CACnD,CAAC;AAEF,mEAAmE;AACnE,MAAM,MAAM,iBAAiB,CAAC,OAAO,GAAG,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAE/E,0EAA0E;AAC1E,MAAM,MAAM,wBAAwB,GAAG,aAAa,GAAG,WAAW,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IAC1E;;;OAGG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;CACpC,CAAC"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
/* Action-sheet (see main.tsx). */
|
|
2
2
|
@layer uikit-ish {
|
|
3
|
+
.uikit-action-sheet-positioner {
|
|
4
|
+
/* An overlay: above the page's layers (e.g. Viewport's bars), overlays
|
|
5
|
+
among themselves in the order they open (see Menu). */
|
|
6
|
+
z-index: 100;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Its panel: within the room for it (not its positioner's width), its
|
|
10
|
+
actions scrolling when they don't fit (as UIKit's). */
|
|
11
|
+
.uikit-action-sheet-popup.uikit-alert-panel {
|
|
12
|
+
max-width: var(--available-width);
|
|
13
|
+
max-height: var(--available-height);
|
|
14
|
+
overflow-y: auto;
|
|
15
|
+
overscroll-behavior: contain;
|
|
16
|
+
}
|
|
17
|
+
|
|
3
18
|
.uikit-action-sheet-actions {
|
|
4
19
|
display: flex;
|
|
5
20
|
flex-direction: column;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '../typography/style.css';
|
|
2
2
|
import './style.css';
|
|
3
|
-
import type { ActivityViewActionProps, ActivityViewPersonProps } from './props.js';
|
|
4
3
|
export type { ActivityViewActionProps, ActivityViewPersonProps, } from './props.js';
|
|
5
4
|
/**
|
|
6
5
|
* An activity view (UIKit `UIActivityViewController`, a share sheet): what's
|
|
@@ -29,15 +28,27 @@ export declare const ActivityView: {
|
|
|
29
28
|
People: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
|
|
30
29
|
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
31
30
|
}>;
|
|
32
|
-
Person: import("preact").FunctionalComponent<import("react").PropsWithoutRef<
|
|
31
|
+
Person: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
33
32
|
ref?: import("preact").Ref<HTMLButtonElement> | undefined;
|
|
34
33
|
}>;
|
|
34
|
+
Name: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLSpanElement>> & {
|
|
35
|
+
ref?: import("preact").Ref<HTMLSpanElement> | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
Count: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLSpanElement>> & {
|
|
38
|
+
ref?: import("preact").Ref<HTMLSpanElement> | undefined;
|
|
39
|
+
}>;
|
|
35
40
|
Actions: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLDivElement>> & {
|
|
36
41
|
ref?: import("preact").Ref<HTMLDivElement> | undefined;
|
|
37
42
|
}>;
|
|
38
|
-
Action: import("preact").FunctionalComponent<import("react").PropsWithoutRef<
|
|
43
|
+
Action: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
39
44
|
ref?: import("preact").Ref<HTMLButtonElement> | undefined;
|
|
40
45
|
}>;
|
|
46
|
+
Symbol: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLSpanElement>> & {
|
|
47
|
+
ref?: import("preact").Ref<HTMLSpanElement> | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
Label: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HTMLAttributes<HTMLSpanElement>> & {
|
|
50
|
+
ref?: import("preact").Ref<HTMLSpanElement> | undefined;
|
|
51
|
+
}>;
|
|
41
52
|
Separator: import("preact").FunctionalComponent<import("react").PropsWithoutRef<import("preact").HrHTMLAttributes<HTMLHRElement>> & {
|
|
42
53
|
ref?: import("preact").Ref<HTMLHRElement> | undefined;
|
|
43
54
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/activity-view/main.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/activity-view/main.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAUrB,YAAY,EACV,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AAkOpB;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBxB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import '../typography/style.css';
|
|
3
3
|
import './style.css';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
@@ -38,9 +38,20 @@ const People = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref:
|
|
|
38
38
|
/** Its actions (`Action`s), scrolling sideways. */
|
|
39
39
|
const Actions = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-activity-view-part": "actions", role: "list", ...props, className: cn('uikit-activity-view-row', className) })));
|
|
40
40
|
/** A person (or a group) to share with: its `Avatar` (the children). */
|
|
41
|
-
const Person = forwardRef(({ className,
|
|
42
|
-
/**
|
|
43
|
-
const
|
|
41
|
+
const Person = forwardRef(({ className, ...props }, ref) => (_jsx("div", { className: "uikit-activity-view-list-item", "data-activity-view-part": "list-item", role: "listitem", children: _jsx("button", { ref: ref, type: "button", ...props, className: cn('uikit-activity-view-item', className), "data-activity-view-part": "item" }) })));
|
|
42
|
+
/** A person's name (e.g. first and last name, two lines). */
|
|
43
|
+
const Name = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, ...props, className: cn('uikit-activity-view-name', className), "data-activity-view-part": "name" })));
|
|
44
|
+
/**
|
|
45
|
+
* How many people (a group's, e.g. “2 People”), below its name (on one
|
|
46
|
+
* line then).
|
|
47
|
+
*/
|
|
48
|
+
const Count = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, ...props, className: cn('uikit-activity-view-count', className), "data-activity-view-part": "count" })));
|
|
49
|
+
/** An action (Figma “Action”): its `Symbol` above its `Label`. */
|
|
50
|
+
const Action = forwardRef(({ className, ...props }, ref) => (_jsx("div", { className: "uikit-activity-view-list-item", "data-activity-view-part": "list-item", role: "listitem", children: _jsx("button", { ref: ref, type: "button", ...props, "data-activity-view-part": "item", className: cn('uikit-activity-view-item uikit-activity-view-action', className) }) })));
|
|
51
|
+
/** An action's symbol (e.g. a `Symbol`) in a 70px circle on a fill. */
|
|
52
|
+
const ActionSymbol = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, "aria-hidden": "true", ...props, className: cn('uikit-activity-view-symbol', className), "data-activity-view-part": "symbol" })));
|
|
53
|
+
/** An action's label (e.g. “Add to Reading List”, two lines). */
|
|
54
|
+
const Label = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, ...props, className: cn('uikit-activity-view-label', className), "data-activity-view-part": "label" })));
|
|
44
55
|
/** Between its sections (0.5px, 16px in). */
|
|
45
56
|
const Separator = forwardRef(({ className, ...props }, ref) => (_jsx("hr", { ref: ref, className: cn('uikit-activity-view-separator', className), "data-activity-view-part": "separator", ...props })));
|
|
46
57
|
/**
|
|
@@ -57,8 +68,12 @@ export const ActivityView = {
|
|
|
57
68
|
Message,
|
|
58
69
|
People,
|
|
59
70
|
Person,
|
|
71
|
+
Name,
|
|
72
|
+
Count,
|
|
60
73
|
Actions,
|
|
61
74
|
Action,
|
|
75
|
+
Symbol: ActionSymbol,
|
|
76
|
+
Label,
|
|
62
77
|
Separator,
|
|
63
78
|
};
|
|
64
79
|
//# sourceMappingURL=main.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/activity-view/main.tsx"],"names":[],"mappings":";AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAErB,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAWtC,sDAAsD;AACtD,0EAA0E;AAC1E,+BAA+B;AAC/B,qEAAqE;AACrE,yEAAyE;AACzE,0EAA0E;AAC1E,uEAAuE;AACvE,4EAA4E;AAC5E,2EAA2E;AAC3E,4EAA4E;AAC5E,wCAAwC;AACxC,8CAA8C;AAC9C,sCAAsC;AACtC,EAAE;AACF,cAAc;AACd,yEAAyE;AACzE,qBAAqB;AACrB,oEAAoE;AACpE,0EAA0E;AAC1E,oCAAoC;AAEpC,wEAAwE;AACxE,MAAM,MAAM,GAAG,UAAU,CACvB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,cACE,GAAG,EAAE,GAAG,6BACgB,QAAQ,KAC5B,KAAK,EACT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AE,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,6BAC/B,SAAS,KAC7B,KAAK,GACT,CACH,CACF,CAAC;AAEF,kDAAkD;AAClD,MAAM,MAAM,GAAG,UAAU,CACvB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAEhC,cACE,GAAG,EAAE,GAAG,6BACgB,QAAQ,EAChC,IAAI,EAAC,MAAM,KACP,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,GACnD,CACH,CACF,CAAC;AAEF,mDAAmD;AACnD,MAAM,OAAO,GAAG,UAAU,CACxB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,cACE,GAAG,EAAE,GAAG,6BACgB,SAAS,EACjC,IAAI,EAAC,MAAM,KACP,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,GACnD,CACH,CACF,CAAC;AAEF,wEAAwE;AACxE,MAAM,MAAM,GAAG,UAAU,CACvB,CAAC,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/activity-view/main.tsx"],"names":[],"mappings":";AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAErB,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAWtC,sDAAsD;AACtD,0EAA0E;AAC1E,+BAA+B;AAC/B,qEAAqE;AACrE,yEAAyE;AACzE,0EAA0E;AAC1E,uEAAuE;AACvE,4EAA4E;AAC5E,2EAA2E;AAC3E,4EAA4E;AAC5E,wCAAwC;AACxC,8CAA8C;AAC9C,sCAAsC;AACtC,EAAE;AACF,cAAc;AACd,yEAAyE;AACzE,qBAAqB;AACrB,oEAAoE;AACpE,0EAA0E;A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AAG,EAAE,GAAG,KACJ,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,2BAA2B,EAAE,SAAS,CAAC,6BAC7B,OAAO,GAC/B,CACH,CACF,CAAC;AAEF,6CAA6C;AAC7C,MAAM,SAAS,GAAG,UAAU,CAC1B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,aACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,SAAS,CAAC,6BACjC,WAAW,KAC/B,KAAK,GACT,CACH,CACF,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM;IACN,SAAS;IACT,OAAO;IACP,KAAK;IACL,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,IAAI;IACJ,KAAK;IACL,OAAO;IACP,MAAM;IACN,MAAM,EAAE,YAAY;IACpB,KAAK;IACL,SAAS;CACV,CAAC"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
-
export type ActivityViewPersonProps = ComponentProps<'button'
|
|
3
|
-
|
|
4
|
-
count?: string;
|
|
5
|
-
/** Its name (e.g. first and last name, wrapping). */
|
|
6
|
-
name: string;
|
|
7
|
-
};
|
|
8
|
-
export type ActivityViewActionProps = ComponentProps<'button'> & {
|
|
9
|
-
/** Its label (e.g. “Add to Reading List”, wrapping). */
|
|
10
|
-
label: string;
|
|
11
|
-
};
|
|
2
|
+
export type ActivityViewPersonProps = ComponentProps<'button'>;
|
|
3
|
+
export type ActivityViewActionProps = ComponentProps<'button'>;
|
|
12
4
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/activity-view/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/activity-view/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE/D,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
align-items: flex-start;
|
|
6
6
|
padding: 16px;
|
|
7
7
|
gap: 16px;
|
|
8
|
+
|
|
9
|
+
/* Below a sheet's grabber (over it, see Sheet). */
|
|
10
|
+
padding-block-start: calc(16px + var(--uikit-safe-area-inset-top, 0px));
|
|
8
11
|
}
|
|
9
12
|
|
|
10
13
|
.uikit-activity-view-thumbnail {
|
|
@@ -41,11 +44,6 @@
|
|
|
41
44
|
font-weight: round(down, 510, 100);
|
|
42
45
|
letter-spacing: -0.23px;
|
|
43
46
|
line-height: 20px;
|
|
44
|
-
stroke: currentcolor;
|
|
45
|
-
stroke-linejoin: round;
|
|
46
|
-
stroke-width: max(0px, (510 - 400) / 326 * 1px);
|
|
47
|
-
|
|
48
|
-
--uikit-symbol-thinning: max(0px, (400 - 510) / 326 * 1px);
|
|
49
47
|
|
|
50
48
|
& + [data-activity-view-part='subtitle'] {
|
|
51
49
|
margin-block-start: -11px;
|
|
@@ -60,14 +58,6 @@
|
|
|
60
58
|
font-weight: round(down, var(--font-ios-footnote-weight), 100);
|
|
61
59
|
letter-spacing: var(--font-ios-footnote-tracking);
|
|
62
60
|
line-height: var(--font-ios-footnote-line-height);
|
|
63
|
-
stroke: currentcolor;
|
|
64
|
-
stroke-linejoin: round;
|
|
65
|
-
stroke-width: max(0px, (var(--font-ios-footnote-weight) - 400) / 326 * 1px);
|
|
66
|
-
|
|
67
|
-
--uikit-symbol-thinning: max(
|
|
68
|
-
0px,
|
|
69
|
-
(400 - var(--font-ios-footnote-weight)) / 326 * 1px
|
|
70
|
-
);
|
|
71
61
|
}
|
|
72
62
|
|
|
73
63
|
.uikit-activity-view-message {
|
|
@@ -78,14 +68,6 @@
|
|
|
78
68
|
font-weight: round(down, var(--font-ios-footnote-weight), 100);
|
|
79
69
|
letter-spacing: var(--font-ios-footnote-tracking);
|
|
80
70
|
line-height: var(--font-ios-footnote-line-height);
|
|
81
|
-
stroke: currentcolor;
|
|
82
|
-
stroke-linejoin: round;
|
|
83
|
-
stroke-width: max(0px, (var(--font-ios-footnote-weight) - 400) / 326 * 1px);
|
|
84
|
-
|
|
85
|
-
--uikit-symbol-thinning: max(
|
|
86
|
-
0px,
|
|
87
|
-
(400 - var(--font-ios-footnote-weight)) / 326 * 1px
|
|
88
|
-
);
|
|
89
71
|
}
|
|
90
72
|
|
|
91
73
|
.uikit-activity-view-row {
|
|
@@ -94,11 +76,6 @@
|
|
|
94
76
|
padding: 14px 24px 20px;
|
|
95
77
|
gap: 14px;
|
|
96
78
|
overscroll-behavior-inline: contain;
|
|
97
|
-
scrollbar-width: none;
|
|
98
|
-
|
|
99
|
-
&::-webkit-scrollbar {
|
|
100
|
-
display: none;
|
|
101
|
-
}
|
|
102
79
|
}
|
|
103
80
|
|
|
104
81
|
.uikit-activity-view-name {
|
|
@@ -111,7 +88,8 @@
|
|
|
111
88
|
line-height: 15px;
|
|
112
89
|
|
|
113
90
|
/* With a count (a group's): on one line, truncated. */
|
|
114
|
-
|
|
91
|
+
[data-activity-view-part='item']:has(> [data-activity-view-part='count'])
|
|
92
|
+
> & {
|
|
115
93
|
display: block;
|
|
116
94
|
max-width: 100%;
|
|
117
95
|
text-overflow: ellipsis;
|
|
@@ -161,7 +139,7 @@
|
|
|
161
139
|
.uikit-activity-view-action {
|
|
162
140
|
gap: 7px;
|
|
163
141
|
|
|
164
|
-
& > [data-activity-view-part='
|
|
142
|
+
& > [data-activity-view-part='symbol'] {
|
|
165
143
|
display: grid;
|
|
166
144
|
width: 70px;
|
|
167
145
|
height: 70px;
|
|
@@ -171,18 +149,13 @@
|
|
|
171
149
|
font-variation-settings: 'wght' 300;
|
|
172
150
|
font-weight: round(down, 300, 100);
|
|
173
151
|
place-items: center;
|
|
174
|
-
stroke: currentcolor;
|
|
175
|
-
stroke-linejoin: round;
|
|
176
|
-
stroke-width: max(0px, (300 - 400) / 326 * 1px);
|
|
177
|
-
|
|
178
|
-
--uikit-symbol-thinning: max(0px, (400 - 300) / 326 * 1px);
|
|
179
152
|
}
|
|
180
153
|
|
|
181
|
-
&:active > [data-activity-view-part='
|
|
154
|
+
&:active > [data-activity-view-part='symbol'] {
|
|
182
155
|
filter: brightness(0.9);
|
|
183
156
|
}
|
|
184
157
|
|
|
185
|
-
& >
|
|
158
|
+
& > [data-activity-view-part='label'] {
|
|
186
159
|
display: -webkit-box;
|
|
187
160
|
overflow: hidden;
|
|
188
161
|
-webkit-box-orient: vertical;
|
|
@@ -193,17 +166,6 @@
|
|
|
193
166
|
letter-spacing: var(--font-ios-footnote-tracking);
|
|
194
167
|
-webkit-line-clamp: 2;
|
|
195
168
|
line-height: 15px;
|
|
196
|
-
stroke: currentcolor;
|
|
197
|
-
stroke-linejoin: round;
|
|
198
|
-
stroke-width: max(
|
|
199
|
-
0px,
|
|
200
|
-
(var(--font-ios-footnote-weight) - 400) / 326 * 1px
|
|
201
|
-
);
|
|
202
|
-
|
|
203
|
-
--uikit-symbol-thinning: max(
|
|
204
|
-
0px,
|
|
205
|
-
(400 - var(--font-ios-footnote-weight)) / 326 * 1px
|
|
206
|
-
);
|
|
207
169
|
}
|
|
208
170
|
}
|
|
209
171
|
}
|