@mrpelz/uikit-ish 7.13.1 → 7.29.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/style.css +0 -3
- package/dist/components/action-sheet/main.d.ts.map +1 -1
- package/dist/components/action-sheet/main.js +9 -6
- package/dist/components/action-sheet/main.js.map +1 -1
- package/dist/components/action-sheet/props.d.ts +2 -1
- package/dist/components/action-sheet/props.d.ts.map +1 -1
- package/dist/components/activity-view/style.css +17 -17
- package/dist/components/alert/main.d.ts.map +1 -1
- package/dist/components/alert/main.js +12 -4
- package/dist/components/alert/main.js.map +1 -1
- package/dist/components/alert/props.d.ts +2 -1
- package/dist/components/alert/props.d.ts.map +1 -1
- package/dist/components/alert/style.css +39 -15
- package/dist/components/avatar/style.css +2 -2
- package/dist/components/badge/style.css +1 -1
- package/dist/components/button/main.js +1 -1
- package/dist/components/button/main.js.map +1 -1
- package/dist/components/button/props.d.ts +3 -2
- package/dist/components/button/props.d.ts.map +1 -1
- package/dist/components/button/style.css +18 -29
- package/dist/components/card/buttons.d.ts +35 -0
- package/dist/components/card/buttons.d.ts.map +1 -0
- package/dist/components/card/buttons.js +60 -0
- package/dist/components/card/buttons.js.map +1 -0
- package/dist/components/card/channels.d.ts +43 -0
- package/dist/components/card/channels.d.ts.map +1 -0
- package/dist/components/card/channels.js +321 -0
- package/dist/components/card/channels.js.map +1 -0
- package/dist/components/card/color.d.ts +21 -0
- package/dist/components/card/color.d.ts.map +1 -0
- package/dist/components/card/color.js +100 -0
- package/dist/components/card/color.js.map +1 -0
- package/dist/components/card/main.d.ts +81 -0
- package/dist/components/card/main.d.ts.map +1 -0
- package/dist/components/card/main.js +91 -0
- package/dist/components/card/main.js.map +1 -0
- package/dist/components/card/parts.css +769 -0
- package/dist/components/card/press.d.ts +25 -0
- package/dist/components/card/press.d.ts.map +1 -0
- package/dist/components/card/press.js +111 -0
- package/dist/components/card/press.js.map +1 -0
- package/dist/components/card/progress.d.ts +43 -0
- package/dist/components/card/progress.d.ts.map +1 -0
- package/dist/components/card/progress.js +122 -0
- package/dist/components/card/progress.js.map +1 -0
- package/dist/components/card/props.d.ts +393 -0
- package/dist/components/card/props.d.ts.map +1 -0
- package/dist/components/card/props.js +2 -0
- package/dist/components/card/props.js.map +1 -0
- package/dist/components/card/root.d.ts +100 -0
- package/dist/components/card/root.d.ts.map +1 -0
- package/dist/components/card/root.js +388 -0
- package/dist/components/card/root.js.map +1 -0
- package/dist/components/card/rows.d.ts +19 -0
- package/dist/components/card/rows.d.ts.map +1 -0
- package/dist/components/card/rows.js +185 -0
- package/dist/components/card/rows.js.map +1 -0
- package/dist/components/card/segmented.d.ts +61 -0
- package/dist/components/card/segmented.d.ts.map +1 -0
- package/dist/components/card/segmented.js +289 -0
- package/dist/components/card/segmented.js.map +1 -0
- package/dist/components/card/shared.d.ts +55 -0
- package/dist/components/card/shared.d.ts.map +1 -0
- package/dist/components/card/shared.js +80 -0
- package/dist/components/card/shared.js.map +1 -0
- package/dist/components/card/slider.d.ts +16 -0
- package/dist/components/card/slider.d.ts.map +1 -0
- package/dist/components/card/slider.js +48 -0
- package/dist/components/card/slider.js.map +1 -0
- package/dist/components/card/stages.d.ts +18 -0
- package/dist/components/card/stages.d.ts.map +1 -0
- package/dist/components/card/stages.js +37 -0
- package/dist/components/card/stages.js.map +1 -0
- package/dist/components/card/style.css +959 -0
- package/dist/components/checkbox/style.css +10 -5
- package/dist/components/collapsible/style.css +0 -3
- package/dist/components/color-picker/color.d.ts +2 -2
- package/dist/components/color-picker/color.d.ts.map +1 -1
- package/dist/components/color-picker/color.js +7 -7
- package/dist/components/color-picker/color.js.map +1 -1
- package/dist/components/color-picker/main.d.ts +11 -5
- package/dist/components/color-picker/main.d.ts.map +1 -1
- package/dist/components/color-picker/main.js +147 -89
- package/dist/components/color-picker/main.js.map +1 -1
- package/dist/components/color-picker/props.d.ts +216 -6
- package/dist/components/color-picker/props.d.ts.map +1 -1
- package/dist/components/color-picker/style.css +12 -31
- package/dist/components/contextual-menu/main.d.ts +6 -2
- package/dist/components/contextual-menu/main.d.ts.map +1 -1
- package/dist/components/contextual-menu/main.js +67 -43
- package/dist/components/contextual-menu/main.js.map +1 -1
- package/dist/components/contextual-menu/props.d.ts +2 -1
- package/dist/components/contextual-menu/props.d.ts.map +1 -1
- package/dist/components/contextual-menu/style.css +64 -2
- package/dist/components/control-cards/main.d.ts +38 -0
- package/dist/components/control-cards/main.d.ts.map +1 -0
- package/dist/components/control-cards/main.js +196 -0
- package/dist/components/control-cards/main.js.map +1 -0
- package/dist/components/control-cards/props.d.ts +238 -0
- package/dist/components/control-cards/props.d.ts.map +1 -0
- package/dist/components/control-cards/props.js +2 -0
- package/dist/components/control-cards/props.js.map +1 -0
- package/dist/components/control-cards/style.css +2 -0
- package/dist/components/date-picker/main.d.ts +8 -3
- package/dist/components/date-picker/main.d.ts.map +1 -1
- package/dist/components/date-picker/main.js +73 -30
- package/dist/components/date-picker/main.js.map +1 -1
- package/dist/components/date-picker/pager.d.ts.map +1 -1
- package/dist/components/date-picker/pager.js +9 -2
- package/dist/components/date-picker/pager.js.map +1 -1
- package/dist/components/date-picker/props.d.ts +81 -5
- package/dist/components/date-picker/props.d.ts.map +1 -1
- package/dist/components/date-picker/style.css +25 -17
- package/dist/components/drawer/style.css +6 -0
- package/dist/components/edit-menu/main.d.ts +2 -1
- package/dist/components/edit-menu/main.d.ts.map +1 -1
- package/dist/components/edit-menu/main.js +8 -4
- package/dist/components/edit-menu/main.js.map +1 -1
- package/dist/components/edit-menu/style.css +2 -2
- package/dist/components/glass/backdrop.d.ts +75 -0
- package/dist/components/glass/backdrop.d.ts.map +1 -0
- package/dist/components/glass/backdrop.js +608 -0
- package/dist/components/glass/backdrop.js.map +1 -0
- package/dist/components/glass/gradient.d.ts +17 -0
- package/dist/components/glass/gradient.d.ts.map +1 -0
- package/dist/components/glass/gradient.js +233 -0
- package/dist/components/glass/gradient.js.map +1 -0
- package/dist/components/glass/main.d.ts +60 -6
- package/dist/components/glass/main.d.ts.map +1 -1
- package/dist/components/glass/main.js +100 -122
- package/dist/components/glass/main.js.map +1 -1
- package/dist/components/glass/marker.d.ts +66 -0
- package/dist/components/glass/marker.d.ts.map +1 -0
- package/dist/components/glass/marker.js +268 -0
- package/dist/components/glass/marker.js.map +1 -0
- package/dist/components/glass/props.d.ts +33 -7
- package/dist/components/glass/props.d.ts.map +1 -1
- package/dist/components/glass/style.css +172 -75
- package/dist/components/grid/dashes.d.ts +15 -0
- package/dist/components/grid/dashes.d.ts.map +1 -0
- package/dist/components/grid/dashes.js +37 -0
- package/dist/components/grid/dashes.js.map +1 -0
- package/dist/components/grid/edit.d.ts +11 -0
- package/dist/components/grid/edit.d.ts.map +1 -0
- package/dist/components/grid/edit.js +1066 -0
- package/dist/components/grid/edit.js.map +1 -0
- package/dist/components/grid/handle.d.ts +123 -0
- package/dist/components/grid/handle.d.ts.map +1 -0
- package/dist/components/grid/handle.js +194 -0
- package/dist/components/grid/handle.js.map +1 -0
- package/dist/components/grid/icons.d.ts +40 -0
- package/dist/components/grid/icons.d.ts.map +1 -0
- package/dist/components/grid/icons.js +140 -0
- package/dist/components/grid/icons.js.map +1 -0
- package/dist/components/grid/layout.d.ts +111 -0
- package/dist/components/grid/layout.d.ts.map +1 -0
- package/dist/components/grid/layout.js +1257 -0
- package/dist/components/grid/layout.js.map +1 -0
- package/dist/components/grid/main.d.ts +63 -0
- package/dist/components/grid/main.d.ts.map +1 -0
- package/dist/components/grid/main.js +1977 -0
- package/dist/components/grid/main.js.map +1 -0
- package/dist/components/grid/overlay.d.ts +24 -0
- package/dist/components/grid/overlay.d.ts.map +1 -0
- package/dist/components/grid/overlay.js +312 -0
- package/dist/components/grid/overlay.js.map +1 -0
- package/dist/components/grid/plan.d.ts +78 -0
- package/dist/components/grid/plan.d.ts.map +1 -0
- package/dist/components/grid/plan.js +249 -0
- package/dist/components/grid/plan.js.map +1 -0
- package/dist/components/grid/props.d.ts +579 -0
- package/dist/components/grid/props.d.ts.map +1 -0
- package/dist/components/grid/props.js +2 -0
- package/dist/components/grid/props.js.map +1 -0
- package/dist/components/grid/reshape.d.ts +60 -0
- package/dist/components/grid/reshape.d.ts.map +1 -0
- package/dist/components/grid/reshape.js +214 -0
- package/dist/components/grid/reshape.js.map +1 -0
- package/dist/components/grid/style.css +1323 -0
- package/dist/components/header/main.d.ts.map +1 -1
- package/dist/components/header/main.js +97 -10
- package/dist/components/header/main.js.map +1 -1
- package/dist/components/header/props.d.ts +2 -2
- package/dist/components/header/props.d.ts.map +1 -1
- package/dist/components/header/style.css +40 -49
- package/dist/components/index.d.ts +16 -10
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +11 -5
- package/dist/components/index.js.map +1 -1
- package/dist/components/island/main.d.ts +2 -2
- package/dist/components/island/main.d.ts.map +1 -1
- package/dist/components/island/main.js +193 -41
- package/dist/components/island/main.js.map +1 -1
- package/dist/components/island/props.d.ts +4 -2
- package/dist/components/island/props.d.ts.map +1 -1
- package/dist/components/island/style.css +50 -3
- package/dist/components/layout/main.d.ts +3 -6
- package/dist/components/layout/main.d.ts.map +1 -1
- package/dist/components/layout/main.js +225 -56
- package/dist/components/layout/main.js.map +1 -1
- package/dist/components/layout/props.d.ts +43 -2
- package/dist/components/layout/props.d.ts.map +1 -1
- package/dist/components/layout/style.css +81 -23
- package/dist/components/list/main.d.ts +8 -6
- package/dist/components/list/main.d.ts.map +1 -1
- package/dist/components/list/main.js +132 -24
- package/dist/components/list/main.js.map +1 -1
- package/dist/components/list/props.d.ts +25 -0
- package/dist/components/list/props.d.ts.map +1 -1
- package/dist/components/list/reorder.d.ts +50 -2
- package/dist/components/list/reorder.d.ts.map +1 -1
- package/dist/components/list/reorder.js +40 -17
- package/dist/components/list/reorder.js.map +1 -1
- package/dist/components/list/style.css +160 -75
- package/dist/components/menu/main.d.ts +9 -5
- package/dist/components/menu/main.d.ts.map +1 -1
- package/dist/components/menu/main.js +87 -9
- package/dist/components/menu/main.js.map +1 -1
- package/dist/components/menu/props.d.ts +14 -0
- package/dist/components/menu/props.d.ts.map +1 -1
- package/dist/components/menu/style.css +41 -31
- package/dist/components/navigation/main.d.ts.map +1 -1
- package/dist/components/navigation/main.js +35 -13
- package/dist/components/navigation/main.js.map +1 -1
- package/dist/components/navigation/style.css +7 -0
- package/dist/components/page/main.d.ts.map +1 -1
- package/dist/components/page/main.js +6 -3
- package/dist/components/page/main.js.map +1 -1
- package/dist/components/page/props.d.ts +3 -2
- package/dist/components/page/props.d.ts.map +1 -1
- package/dist/components/page/style.css +8 -4
- package/dist/components/page-control/main.d.ts.map +1 -1
- package/dist/components/page-control/main.js +32 -15
- package/dist/components/page-control/main.js.map +1 -1
- package/dist/components/page-control/props.d.ts +9 -3
- package/dist/components/page-control/props.d.ts.map +1 -1
- package/dist/components/page-control/style.css +36 -0
- package/dist/components/pager/main.d.ts +12 -0
- package/dist/components/pager/main.d.ts.map +1 -0
- package/dist/components/pager/main.js +368 -0
- package/dist/components/pager/main.js.map +1 -0
- package/dist/components/pager/props.d.ts +36 -0
- package/dist/components/pager/props.d.ts.map +1 -0
- package/dist/components/pager/props.js +2 -0
- package/dist/components/pager/props.js.map +1 -0
- package/dist/components/pager/style.css +42 -0
- package/dist/components/popover/main.d.ts +10 -4
- package/dist/components/popover/main.d.ts.map +1 -1
- package/dist/components/popover/main.js +30 -19
- package/dist/components/popover/main.js.map +1 -1
- package/dist/components/popover/props.d.ts +2 -0
- package/dist/components/popover/props.d.ts.map +1 -1
- package/dist/components/popover/style.css +6 -2
- package/dist/components/progress/main.d.ts.map +1 -1
- package/dist/components/progress/main.js +3 -2
- package/dist/components/progress/main.js.map +1 -1
- package/dist/components/progress/style.css +4 -10
- package/dist/components/roll/main.d.ts.map +1 -1
- package/dist/components/roll/main.js +5 -3
- package/dist/components/roll/main.js.map +1 -1
- package/dist/components/roll/style.css +2 -2
- package/dist/components/segmented/main.d.ts.map +1 -1
- package/dist/components/segmented/main.js +4 -4
- package/dist/components/segmented/main.js.map +1 -1
- package/dist/components/segmented/props.d.ts +5 -2
- package/dist/components/segmented/props.d.ts.map +1 -1
- package/dist/components/segmented/style.css +17 -8
- package/dist/components/settings/main.d.ts +48 -1
- package/dist/components/settings/main.d.ts.map +1 -1
- package/dist/components/settings/main.js +311 -66
- package/dist/components/settings/main.js.map +1 -1
- package/dist/components/settings/props.d.ts +46 -4
- package/dist/components/settings/props.d.ts.map +1 -1
- package/dist/components/settings/region.d.ts +3 -0
- package/dist/components/settings/region.d.ts.map +1 -0
- package/dist/components/settings/region.js +120 -0
- package/dist/components/settings/region.js.map +1 -0
- package/dist/components/settings/style.css +2 -2
- package/dist/components/sheet/main.d.ts.map +1 -1
- package/dist/components/sheet/main.js +156 -45
- package/dist/components/sheet/main.js.map +1 -1
- package/dist/components/sheet/props.d.ts +4 -2
- package/dist/components/sheet/props.d.ts.map +1 -1
- package/dist/components/sheet/snap.d.ts +54 -0
- package/dist/components/sheet/snap.d.ts.map +1 -1
- package/dist/components/sheet/snap.js +261 -23
- package/dist/components/sheet/snap.js.map +1 -1
- package/dist/components/sheet/style.css +171 -20
- package/dist/components/sidebar/main.d.ts +2 -1
- package/dist/components/sidebar/main.d.ts.map +1 -1
- package/dist/components/sidebar/main.js +18 -6
- package/dist/components/sidebar/main.js.map +1 -1
- package/dist/components/sidebar/props.d.ts +2 -1
- package/dist/components/sidebar/props.d.ts.map +1 -1
- package/dist/components/sidebar/style.css +78 -0
- package/dist/components/slider/main.d.ts.map +1 -1
- package/dist/components/slider/main.js +55 -10
- package/dist/components/slider/main.js.map +1 -1
- package/dist/components/slider/props.d.ts +1 -0
- package/dist/components/slider/props.d.ts.map +1 -1
- package/dist/components/slider/style.css +15 -6
- package/dist/components/stack/main.d.ts +8 -0
- package/dist/components/stack/main.d.ts.map +1 -0
- package/dist/components/stack/main.js +25 -0
- package/dist/components/stack/main.js.map +1 -0
- package/dist/components/stack/props.d.ts +42 -0
- package/dist/components/stack/props.d.ts.map +1 -0
- package/dist/components/stack/props.js +2 -0
- package/dist/components/stack/props.js.map +1 -0
- package/dist/components/stack/style.css +68 -0
- package/dist/components/stepper/main.d.ts +3 -1
- package/dist/components/stepper/main.d.ts.map +1 -1
- package/dist/components/stepper/main.js +4 -0
- package/dist/components/stepper/main.js.map +1 -1
- package/dist/components/stepper/style.css +2 -2
- package/dist/components/switch/main.d.ts.map +1 -1
- package/dist/components/switch/main.js +9 -3
- package/dist/components/switch/main.js.map +1 -1
- package/dist/components/switch/props.d.ts +4 -1
- package/dist/components/switch/props.d.ts.map +1 -1
- package/dist/components/symbol/main.d.ts.map +1 -1
- package/dist/components/symbol/main.js +5 -1
- package/dist/components/symbol/main.js.map +1 -1
- package/dist/components/symbol/props.d.ts +10 -0
- package/dist/components/symbol/props.d.ts.map +1 -1
- package/dist/components/symbol/style.css +21 -3
- package/dist/components/tab-bar/main.d.ts.map +1 -1
- package/dist/components/tab-bar/main.js +8 -5
- package/dist/components/tab-bar/main.js.map +1 -1
- package/dist/components/tab-bar/props.d.ts +16 -12
- package/dist/components/tab-bar/props.d.ts.map +1 -1
- package/dist/components/tab-bar/style.css +38 -21
- package/dist/components/text-field/main.d.ts.map +1 -1
- package/dist/components/text-field/main.js +6 -3
- package/dist/components/text-field/main.js.map +1 -1
- package/dist/components/text-field/style.css +28 -17
- package/dist/components/toolbar/main.d.ts +5 -2
- package/dist/components/toolbar/main.d.ts.map +1 -1
- package/dist/components/toolbar/main.js +19 -1
- package/dist/components/toolbar/main.js.map +1 -1
- package/dist/components/toolbar/props.d.ts +18 -3
- package/dist/components/toolbar/props.d.ts.map +1 -1
- package/dist/components/toolbar/style.css +127 -11
- package/dist/components/tooltip/main.d.ts +6 -1
- package/dist/components/tooltip/main.d.ts.map +1 -1
- package/dist/components/tooltip/main.js +13 -7
- package/dist/components/tooltip/main.js.map +1 -1
- package/dist/components/tooltip/style.css +2 -2
- package/dist/components/typography/main.d.ts +1 -0
- package/dist/components/typography/main.d.ts.map +1 -1
- package/dist/components/typography/main.js +1 -0
- package/dist/components/typography/main.js.map +1 -1
- package/dist/components/typography/sizes.css +456 -0
- package/dist/components/typography/style.css +24 -456
- package/dist/components/utils/main.d.ts +50 -4
- package/dist/components/utils/main.d.ts.map +1 -1
- package/dist/components/utils/main.js +113 -3
- package/dist/components/utils/main.js.map +1 -1
- package/dist/components/viewport/current.d.ts +15 -0
- package/dist/components/viewport/current.d.ts.map +1 -0
- package/dist/components/viewport/current.js +74 -0
- package/dist/components/viewport/current.js.map +1 -0
- package/dist/components/viewport/edge-effect.d.ts.map +1 -1
- package/dist/components/viewport/edge-effect.js +58 -26
- package/dist/components/viewport/edge-effect.js.map +1 -1
- package/dist/components/viewport/edge.d.ts +7 -4
- package/dist/components/viewport/edge.d.ts.map +1 -1
- package/dist/components/viewport/edge.js +21 -7
- package/dist/components/viewport/edge.js.map +1 -1
- package/dist/components/viewport/focus-scroll.d.ts +21 -0
- package/dist/components/viewport/focus-scroll.d.ts.map +1 -0
- package/dist/components/viewport/focus-scroll.js +273 -0
- package/dist/components/viewport/focus-scroll.js.map +1 -0
- package/dist/components/viewport/input.d.ts +39 -1
- package/dist/components/viewport/input.d.ts.map +1 -1
- package/dist/components/viewport/input.js +122 -13
- package/dist/components/viewport/input.js.map +1 -1
- package/dist/components/viewport/main.d.ts +16 -1
- package/dist/components/viewport/main.d.ts.map +1 -1
- package/dist/components/viewport/main.js +276 -50
- package/dist/components/viewport/main.js.map +1 -1
- package/dist/components/viewport/padding.d.ts +1 -1
- package/dist/components/viewport/padding.d.ts.map +1 -1
- package/dist/components/viewport/padding.js +2 -2
- package/dist/components/viewport/props.d.ts +12 -2
- package/dist/components/viewport/props.d.ts.map +1 -1
- package/dist/components/viewport/status-bar.d.ts +9 -0
- package/dist/components/viewport/status-bar.d.ts.map +1 -0
- package/dist/components/viewport/status-bar.js +131 -0
- package/dist/components/viewport/status-bar.js.map +1 -0
- package/dist/components/viewport/style.css +67 -16
- package/dist/styles.css +371 -279
- package/package.json +5 -4
|
@@ -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,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;
|
|
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;AAaf,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;AAuNpB,+EAA+E;AAC/E,eAAO,MAAM,0BAA0B,GACrC,OAAO,GAAG,OAAO,OACd,iBAAiB,CAAC,OAAO,CAG7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW;WAnNV,OAAO,2DAKlB,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAG,YAAY;;;;;;;;;;;;;;;;;;;mBA+L3B,OAAO,iBAAgB,iBAAiB,CAAC,OAAO,CAAC;;;;;;;;;CAyBtE,CAAC"}
|
|
@@ -5,14 +5,15 @@ import '../alert/style.css';
|
|
|
5
5
|
import './style.css';
|
|
6
6
|
import { Popover as BasePopover } from '@base-ui/react/popover';
|
|
7
7
|
import { createContext, forwardRef, useContext, useMemo, useState, } from 'react';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { colorSchemeStyle, useGlassScheme } from '../glass/main.js';
|
|
9
|
+
import { ColorSchemeScope, useSettingsPortalProps } from '../settings/main.js';
|
|
10
|
+
import { cn, useCollision, useForwardedRef, useGrowAvoidance, useInitialFocus, usePortalContainer, withStyle, } from '../utils/main.js';
|
|
10
11
|
// An alert's panel (see `Alert`) of a title and description and its
|
|
11
12
|
// actions, stacked (secondary and destructive: on a gray fill, the label's
|
|
12
13
|
// color, red), at the control that presented it (below it, above it if there's no
|
|
13
14
|
// room; Base UI's `Popover`, positioned as a popover without an arrow,
|
|
14
15
|
// 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
|
+
// its container's bottom, above its safe area inset. Modal: the page dimmed
|
|
16
17
|
// behind it, dismissed by a press outside it.
|
|
17
18
|
//
|
|
18
19
|
// In a regular width, a popover (with an arrow) may suit better: the app's
|
|
@@ -57,17 +58,19 @@ const bottomAnchor = (container) => ({
|
|
|
57
58
|
* The sheet at its trigger (or its container's bottom), the page dimmed
|
|
58
59
|
* behind it, in its portal.
|
|
59
60
|
*/
|
|
60
|
-
const Popup = forwardRef(({ className, container: containerProp, initialFocus, ...props }, ref) => {
|
|
61
|
+
const Popup = forwardRef(({ children, className, container: containerProp, context, initialFocus, style, ...props }, ref) => {
|
|
61
62
|
const container = usePortalContainer(containerProp) ?? undefined;
|
|
62
63
|
const trigger = useContext(ActionSheetContext);
|
|
63
64
|
const popupRef = useForwardedRef(ref);
|
|
65
|
+
// Its glass's tone, its content's color scheme (see Glass).
|
|
66
|
+
const scheme = useGlassScheme(popupRef, context);
|
|
64
67
|
const focus = useInitialFocus(popupRef);
|
|
65
68
|
const bottom = useMemo(() => bottomAnchor(container), [container]);
|
|
66
|
-
// Within its container (e.g. the views' frames), clear of its safe area;
|
|
69
|
+
// Within its container (e.g. the views' frames), clear of its safe area insets;
|
|
67
70
|
// growing rather than scrolling (see `useGrowAvoidance`).
|
|
68
71
|
const collision = useCollision({});
|
|
69
72
|
const [grow, growRef] = useGrowAvoidance();
|
|
70
|
-
return (_jsxs(BasePopover.Portal, { className: "uikit-alert-portal", ...useSettingsPortalProps(), container: container, children: [_jsx(BasePopover.Backdrop, { className: "uikit-action-sheet-backdrop uikit-alert-backdrop", "data-action-sheet-part": "backdrop" }), _jsx(BasePopover.Positioner, { ref: growRef, anchor: trigger ? undefined : bottom, className: "uikit-action-sheet-positioner", ...collision, collisionAvoidance: grow, 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) }) })] }));
|
|
73
|
+
return (_jsxs(BasePopover.Portal, { className: "uikit-alert-portal", ...useSettingsPortalProps(), container: container, children: [_jsx(BasePopover.Backdrop, { className: "uikit-action-sheet-backdrop uikit-alert-backdrop", "data-action-sheet-part": "backdrop" }), _jsx(BasePopover.Positioner, { ref: growRef, anchor: trigger ? undefined : bottom, className: "uikit-action-sheet-positioner", ...collision, collisionAvoidance: grow, side: trigger ? 'bottom' : 'top', sideOffset: 8, children: _jsx(BasePopover.Popup, { ref: popupRef, "data-color-scheme": scheme, initialFocus: initialFocus ?? focus, ...props, "data-action-sheet-part": "popup", style: withStyle(colorSchemeStyle(scheme), style), className: cn('uikit-action-sheet-popup uikit-alert-panel uikit-glass-medium uikit-popup-transition', className), children: _jsx(ColorSchemeScope, { colorScheme: scheme, children: children }) }) })] }));
|
|
71
74
|
});
|
|
72
75
|
/** Its title and description (as an alert's, see `Alert.Header`). */
|
|
73
76
|
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) })));
|
|
@@ -1 +1 @@
|
|
|
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,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;
|
|
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,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EACL,EAAE,EACF,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAc1B,oEAAoE;AACpE,2EAA2E;AAC3E,kFAAkF;AAClF,uEAAuE;AACvE,2EAA2E;AAC3E,4EAA4E;AAC5E,8CAA8C;AAC9C,EAAE;AACF,2EAA2E;AAC3E,0BAA0B;AAE1B,mEAAmE;AACnE,MAAM,kBAAkB,GAAG,aAAa,CAAiB,IAAI,CAAC,CAAC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AAC,CAAC;IACzD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF;;;GAGG;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,5 +1,6 @@
|
|
|
1
1
|
import type { Popover as BasePopover } from '@base-ui/react/popover';
|
|
2
|
-
|
|
2
|
+
import type { GlassSurfaceProps } from '../glass/main.js';
|
|
3
|
+
export type ActionSheetPopupProps = Omit<BasePopover.Popup.Props, 'ref'> & GlassSurfaceProps & {
|
|
3
4
|
/**
|
|
4
5
|
* Where its portal renders it (Base UI's `Popover.Portal`), e.g. a frame
|
|
5
6
|
* of the app's: its dimmed backdrop filling it if it's a containing
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GACtE,iBAAiB,GAAG;IAClB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;CACnD,CAAC;AAEJ,mEAAmE;AACnE,MAAM,MAAM,iBAAiB,CAAC,OAAO,GAAG,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAE/E,8EAA8E;AAC9E,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"}
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
|
|
46
46
|
.uikit-activity-view-title {
|
|
47
47
|
color: var(--color-ui-label);
|
|
48
|
-
font-size:
|
|
49
|
-
font-variation-settings: 'wght' 510;
|
|
50
|
-
font-weight: round(down, 510, 100);
|
|
48
|
+
font-size: var(--font-ui-subheadline-size);
|
|
49
|
+
font-variation-settings: 'wght' calc(510 + var(--uikit-font-weight-boost, 0));
|
|
50
|
+
font-weight: round(down, calc(510 + var(--uikit-font-weight-boost, 0)), 100);
|
|
51
51
|
letter-spacing: -0.23px;
|
|
52
|
-
line-height:
|
|
52
|
+
line-height: var(--font-ui-subheadline-line-height);
|
|
53
53
|
|
|
54
54
|
& + [data-activity-view-part='subtitle'] {
|
|
55
55
|
margin-block-start: -11px;
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
color: var(--color-ui-secondary-label);
|
|
61
61
|
font-size: var(--font-ui-footnote-size);
|
|
62
62
|
font-style: normal;
|
|
63
|
-
font-variation-settings: 'wght' var(--font-ui-footnote-weight);
|
|
64
|
-
font-weight: round(down, var(--font-ui-footnote-weight), 100);
|
|
63
|
+
font-variation-settings: 'wght' calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0));
|
|
64
|
+
font-weight: round(down, calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
65
65
|
letter-spacing: var(--font-ui-footnote-tracking);
|
|
66
66
|
line-height: var(--font-ui-footnote-line-height);
|
|
67
67
|
}
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
color: var(--color-ui-secondary-label);
|
|
71
71
|
font-size: var(--font-ui-footnote-size);
|
|
72
72
|
font-style: normal;
|
|
73
|
-
font-variation-settings: 'wght' var(--font-ui-footnote-weight);
|
|
74
|
-
font-weight: round(down, var(--font-ui-footnote-weight), 100);
|
|
73
|
+
font-variation-settings: 'wght' calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0));
|
|
74
|
+
font-weight: round(down, calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
75
75
|
letter-spacing: var(--font-ui-footnote-tracking);
|
|
76
76
|
line-height: var(--font-ui-footnote-line-height);
|
|
77
77
|
}
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
display: -webkit-box;
|
|
91
91
|
overflow: hidden;
|
|
92
92
|
-webkit-box-orient: vertical;
|
|
93
|
-
font-size:
|
|
93
|
+
font-size: var(--font-ui-caption1-size);
|
|
94
94
|
letter-spacing: 0.06px;
|
|
95
95
|
-webkit-line-clamp: 2;
|
|
96
|
-
line-height:
|
|
96
|
+
line-height: calc(var(--font-ui-caption1-line-height) - 1px);
|
|
97
97
|
|
|
98
98
|
/* With a count (a group's): on one line, truncated. */
|
|
99
99
|
[data-activity-view-part='item']:has(> [data-activity-view-part='count'])
|
|
@@ -107,9 +107,9 @@
|
|
|
107
107
|
|
|
108
108
|
.uikit-activity-view-count {
|
|
109
109
|
color: var(--color-ui-secondary-label);
|
|
110
|
-
font-size:
|
|
110
|
+
font-size: var(--font-ui-caption1-size);
|
|
111
111
|
letter-spacing: 0.06px;
|
|
112
|
-
line-height:
|
|
112
|
+
line-height: calc(var(--font-ui-caption1-line-height) - 1px);
|
|
113
113
|
margin-block-start: -5px;
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
border-radius: 50%;
|
|
155
155
|
background-color: var(--color-ui-tertiary-system-fill);
|
|
156
156
|
font-size: 25px;
|
|
157
|
-
font-variation-settings: 'wght' 300;
|
|
158
|
-
font-weight: round(down, 300, 100);
|
|
157
|
+
font-variation-settings: 'wght' calc(300 + var(--uikit-font-weight-boost, 0));
|
|
158
|
+
font-weight: round(down, calc(300 + var(--uikit-font-weight-boost, 0)), 100);
|
|
159
159
|
place-items: center;
|
|
160
160
|
}
|
|
161
161
|
|
|
@@ -169,11 +169,11 @@
|
|
|
169
169
|
-webkit-box-orient: vertical;
|
|
170
170
|
font-size: var(--font-ui-footnote-size);
|
|
171
171
|
font-style: normal;
|
|
172
|
-
font-variation-settings: 'wght' var(--font-ui-footnote-weight);
|
|
173
|
-
font-weight: round(down, var(--font-ui-footnote-weight), 100);
|
|
172
|
+
font-variation-settings: 'wght' calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0));
|
|
173
|
+
font-weight: round(down, calc(var(--font-ui-footnote-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
174
174
|
letter-spacing: var(--font-ui-footnote-tracking);
|
|
175
175
|
-webkit-line-clamp: 2;
|
|
176
|
-
line-height:
|
|
176
|
+
line-height: calc(var(--font-ui-footnote-line-height) - 3px);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/alert/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/components/alert/main.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC;AACjC,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAa7E,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,eAAe,EAChB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,eAAe,GAChB,MAAM,YAAY,CAAC;AAoEpB,iCAAiC;AACjC,eAAO,MAAM,WAAW;;EAUvB,CAAC;AAmDF,eAAO,MAAM,YAAY;;EAWxB,CAAC;AAwBF,yEAAyE;AACzE,eAAO,MAAM,oBAAoB,GAC/B,OAAO,GAAG,OAAO,OACd,WAAW,CAAC,OAAO,CAGvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;mBAfI,OAAO,iBAAgB,WAAW,CAAC,OAAO,CAAC;;;;;;;;CA0BhE,CAAC"}
|
|
@@ -5,8 +5,10 @@ import './style.css';
|
|
|
5
5
|
import { AlertDialog as BaseAlertDialog } from '@base-ui/react/alert-dialog';
|
|
6
6
|
import { Input as BaseInput } from '@base-ui/react/input';
|
|
7
7
|
import { forwardRef, useState } from 'react';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { colorSchemeStyle, useGlassScheme } from '../glass/main.js';
|
|
9
|
+
import { ColorSchemeScope, useSettingsPortalProps } from '../settings/main.js';
|
|
10
|
+
import { cn, useForwardedRef, usePortalContainer, withStyle, } from '../utils/main.js';
|
|
11
|
+
import { Viewport } from '../viewport/main.js';
|
|
10
12
|
// Alerts (buttons side by side or stacked; also action sheets, see
|
|
11
13
|
// `ActionSheet`): a glass panel 300px wide, 14px in,
|
|
12
14
|
// its corners 34px, its parts 10px apart: its title (Headline) and
|
|
@@ -25,9 +27,15 @@ import { cn, usePortalContainer } from '../utils/main.js';
|
|
|
25
27
|
// - Behind it, the page dims (black, 20%; 40% in dark mode); it scales in from 110% as it fades in.
|
|
26
28
|
/**
|
|
27
29
|
* The alert at the viewport's center (or its `container`'s, if that's a
|
|
28
|
-
* containing block), the page dimmed behind it, in its portal
|
|
30
|
+
* containing block), the page dimmed behind it, in its portal; lifted clear
|
|
31
|
+
* of the keyboard while a field in it is typed into.
|
|
29
32
|
*/
|
|
30
|
-
const Popup = forwardRef(({
|
|
33
|
+
const Popup = forwardRef(({ children, className, container, context, style, ...props }, forwardedRef) => {
|
|
34
|
+
const ref = useForwardedRef(forwardedRef);
|
|
35
|
+
// Its glass's tone, its content's color scheme (see Glass).
|
|
36
|
+
const scheme = useGlassScheme(ref, context);
|
|
37
|
+
return (_jsxs(BaseAlertDialog.Portal, { className: "uikit-alert-portal", ...useSettingsPortalProps(), container: usePortalContainer(container), children: [_jsx(BaseAlertDialog.Backdrop, { className: "uikit-alert-backdrop", "data-alert-part": "backdrop" }), _jsx(BaseAlertDialog.Viewport, { className: "uikit-alert-viewport", "data-alert-part": "viewport", render: _jsx(Viewport.KeyboardAccessory, {}), children: _jsx(BaseAlertDialog.Popup, { ref: ref, "data-color-scheme": scheme, ...props, "data-alert-part": "popup", style: withStyle(colorSchemeStyle(scheme), style), className: cn('uikit-alert-popup uikit-alert-panel uikit-glass-medium uikit-alert-centered', className), children: _jsx(ColorSchemeScope, { colorScheme: scheme, children: children }) }) })] }));
|
|
38
|
+
});
|
|
31
39
|
/** Its title and description. */
|
|
32
40
|
export const AlertHeader = forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-alert-part": "header", ...props, className: cn('uikit-alert-header', className) })));
|
|
33
41
|
const Title = forwardRef(({ className, ...props }, ref) => (_jsx(BaseAlertDialog.Title, { ref: ref, className: cn('uikit-alert-title', className), "data-alert-part": "title", ...props })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/alert/main.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC;AAC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AS,CAAC,GAC/C,CACH,CACF,CAAC;AAEF,mCAAmC;AACnC,MAAM,MAAM,GAAG,UAAU,CACvB,CAAC,EAAE,SAAS,EAAE,OAAO,GAAG,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACvD,KAAC,eAAe,CAAC,KAAK,IACpB,GAAG,EAAE,GAAG,qBACQ,QAAQ,kBACV,OAAO,KACjB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,GAC9C,CACH,CACF,CAAC;AAEF;;;;;GAKG;AACH,MAAM,YAAY,GAAG,GAA6C,EAAE,CAClE,eAAe,CAAC,YAAY,EAAW,CAAC;AAE1C,yEAAyE;AACzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAEV,EAAE;IAC1B,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,YAAY,EAAW,CAAC,CAAC;IACzD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,GAAG,eAAe;IAClB,KAAK;IACL,MAAM,EAAE,WAAW;IACnB,KAAK;IACL,WAAW;IACX,MAAM;IACN,KAAK;IACL,OAAO,EAAE,YAAY;IACrB,MAAM;IACN,YAAY;CACb,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AlertDialog as BaseAlertDialog } from '@base-ui/react/alert-dialog';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
|
-
|
|
3
|
+
import type { GlassSurfaceProps } from '../glass/main.js';
|
|
4
|
+
export type AlertPopupProps = Omit<BaseAlertDialog.Popup.Props, 'ref'> & GlassSurfaceProps & {
|
|
4
5
|
/**
|
|
5
6
|
* Where its portal renders it (Base UI's `AlertDialog.Portal`), e.g. a
|
|
6
7
|
* frame of the app's, centered in it if it's a containing block.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/alert/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/alert/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GACpE,iBAAiB,GAAG;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;CACvD,CAAC;AAEJ,4DAA4D;AAC5D,MAAM,MAAM,WAAW,CAAC,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAE7E,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACtD;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IACxE;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC"}
|
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
z-index: 100;
|
|
33
33
|
background-color: var(--uikit-alert-dim);
|
|
34
34
|
inset: 0;
|
|
35
|
+
|
|
36
|
+
/* (A drag on it never scrolling: nothing to scroll here, else the
|
|
37
|
+
document's (in a Home Screen app, its 1px, see Viewport's
|
|
38
|
+
status-bar.ts: moving the whole app, parked back once let go).
|
|
39
|
+
Presses and swipes still come, as pointer events.) */
|
|
40
|
+
touch-action: none;
|
|
35
41
|
transition: opacity 300ms;
|
|
36
42
|
|
|
37
43
|
&[data-starting-style],
|
|
@@ -40,16 +46,32 @@
|
|
|
40
46
|
}
|
|
41
47
|
}
|
|
42
48
|
|
|
43
|
-
/* (
|
|
44
|
-
|
|
49
|
+
/* Its popup's viewport (Base UI's, a `Viewport.KeyboardAccessory`):
|
|
50
|
+
centered in its containing block (the viewport, or a container's) as
|
|
51
|
+
large as the popup, by its margins (its translation is the accessory's
|
|
52
|
+
lift); an overlay, above the page's layers, overlays among themselves
|
|
53
|
+
in the order they open (see Menu). (More specific than the
|
|
54
|
+
accessory's own rules.) */
|
|
55
|
+
.uikit-alert-portal > .uikit-alert-viewport.uikit-viewport-keyboard-accessory {
|
|
45
56
|
position: fixed;
|
|
46
57
|
z-index: 100;
|
|
47
|
-
|
|
48
|
-
|
|
58
|
+
width: fit-content;
|
|
59
|
+
max-width: calc(100% - 32px);
|
|
60
|
+
height: fit-content;
|
|
61
|
+
margin: auto;
|
|
62
|
+
inset: 0;
|
|
63
|
+
|
|
64
|
+
/* (Its width the viewport's, not the panel's own share of it.) */
|
|
65
|
+
& > .uikit-alert-panel {
|
|
66
|
+
max-width: 100%;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Its popup, scaling in. */
|
|
71
|
+
.uikit-alert-centered {
|
|
49
72
|
transition-duration: 300ms;
|
|
50
73
|
transition-property: opacity, scale;
|
|
51
74
|
transition-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1);
|
|
52
|
-
translate: -50% -50%;
|
|
53
75
|
|
|
54
76
|
&[data-starting-style] {
|
|
55
77
|
opacity: 0;
|
|
@@ -67,8 +89,8 @@
|
|
|
67
89
|
margin: 0;
|
|
68
90
|
font-size: var(--font-ui-headline-size);
|
|
69
91
|
font-style: normal;
|
|
70
|
-
font-variation-settings: 'wght' var(--font-ui-headline-weight);
|
|
71
|
-
font-weight: round(down, var(--font-ui-headline-weight), 100);
|
|
92
|
+
font-variation-settings: 'wght' calc(var(--font-ui-headline-weight) + var(--uikit-font-weight-boost, 0));
|
|
93
|
+
font-weight: round(down, calc(var(--font-ui-headline-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
72
94
|
letter-spacing: var(--font-ui-headline-tracking);
|
|
73
95
|
line-height: var(--font-ui-headline-line-height);
|
|
74
96
|
}
|
|
@@ -78,8 +100,8 @@
|
|
|
78
100
|
margin: 0;
|
|
79
101
|
font-size: var(--font-ui-body-size);
|
|
80
102
|
font-style: normal;
|
|
81
|
-
font-variation-settings: 'wght' var(--font-ui-body-weight);
|
|
82
|
-
font-weight: round(down, var(--font-ui-body-weight), 100);
|
|
103
|
+
font-variation-settings: 'wght' calc(var(--font-ui-body-weight) + var(--uikit-font-weight-boost, 0));
|
|
104
|
+
font-weight: round(down, calc(var(--font-ui-body-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
83
105
|
letter-spacing: var(--font-ui-body-tracking);
|
|
84
106
|
line-height: var(--font-ui-body-line-height);
|
|
85
107
|
}
|
|
@@ -103,8 +125,8 @@
|
|
|
103
125
|
font-family: inherit;
|
|
104
126
|
font-size: var(--font-ui-body-size);
|
|
105
127
|
font-style: normal;
|
|
106
|
-
font-variation-settings: 'wght' 510;
|
|
107
|
-
font-weight: round(down, 510, 100);
|
|
128
|
+
font-variation-settings: 'wght' calc(510 + var(--uikit-font-weight-boost, 0));
|
|
129
|
+
font-weight: round(down, calc(510 + var(--uikit-font-weight-boost, 0)), 100);
|
|
108
130
|
letter-spacing: var(--font-ui-body-tracking);
|
|
109
131
|
line-height: var(--font-ui-body-line-height);
|
|
110
132
|
outline-offset: 2px;
|
|
@@ -148,7 +170,9 @@
|
|
|
148
170
|
|
|
149
171
|
.uikit-alert-field {
|
|
150
172
|
min-width: 0;
|
|
151
|
-
|
|
173
|
+
|
|
174
|
+
/* (52px at the default text size, with it: its line and padding.) */
|
|
175
|
+
min-height: calc(var(--font-ui-body-line-height) - 2px + 32px);
|
|
152
176
|
box-sizing: border-box;
|
|
153
177
|
padding: 0 16px;
|
|
154
178
|
border: 0;
|
|
@@ -162,10 +186,10 @@
|
|
|
162
186
|
font-family: inherit;
|
|
163
187
|
font-size: var(--font-ui-body-size);
|
|
164
188
|
font-style: normal;
|
|
165
|
-
font-variation-settings: 'wght' 510;
|
|
166
|
-
font-weight: round(down, 510, 100);
|
|
189
|
+
font-variation-settings: 'wght' calc(510 + var(--uikit-font-weight-boost, 0));
|
|
190
|
+
font-weight: round(down, calc(510 + var(--uikit-font-weight-boost, 0)), 100);
|
|
167
191
|
letter-spacing: var(--font-ui-body-tracking);
|
|
168
|
-
line-height:
|
|
192
|
+
line-height: calc(var(--font-ui-body-line-height) - 2px);
|
|
169
193
|
outline: none;
|
|
170
194
|
|
|
171
195
|
&:last-child {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
background: linear-gradient(#a5abb8, #858994);
|
|
27
27
|
color: #fff;
|
|
28
28
|
font-size: calc(var(--uikit-avatar-size, 70px) * 0.4);
|
|
29
|
-
font-variation-settings: 'wght' 590;
|
|
30
|
-
font-weight: round(down, 590, 100);
|
|
29
|
+
font-variation-settings: 'wght' calc(590 + var(--uikit-font-weight-boost, 0));
|
|
30
|
+
font-weight: round(down, calc(590 + var(--uikit-font-weight-boost, 0)), 100);
|
|
31
31
|
letter-spacing: 0;
|
|
32
32
|
line-height: 1;
|
|
33
33
|
place-items: center;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
color: var(--uikit-badge-text-color, #fff);
|
|
22
22
|
font-size: var(--uikit-badge-font-size, 16px);
|
|
23
23
|
font-variant-numeric: tabular-nums;
|
|
24
|
-
font-weight: var(--uikit-badge-weight, 400);
|
|
24
|
+
font-weight: round(down, calc(var(--uikit-badge-weight, 400) + var(--uikit-font-weight-boost, 0)), 100);
|
|
25
25
|
letter-spacing: 0;
|
|
26
26
|
line-height: var(--uikit-badge-line-height, 19px);
|
|
27
27
|
pointer-events: none;
|
|
@@ -53,7 +53,7 @@ const Root = forwardRef(({ children, className, context: contextProp, destructiv
|
|
|
53
53
|
}),
|
|
54
54
|
}, style), ...rootProps, className: cn('uikit-button-root', className), "data-button-part": "root", children: isGlassVariant ? (_jsxs(_Fragment, { children: [_jsx(GlassBackground, { kind: "button", tinted: variant === 'glass-prominent' }), _jsx("span", { className: "uikit-button-content", "data-button-part": "content", children: children })] })) : (children) }));
|
|
55
55
|
});
|
|
56
|
-
// (Marked
|
|
56
|
+
// (Marked: a toolbar's and a list's stylesheets address it.)
|
|
57
57
|
const Icon = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, "data-button-part": "icon", ...props, className: cn('uikit-button-icon', className) })));
|
|
58
58
|
const Label = forwardRef(({ className, ...props }, ref) => (_jsx("span", { ref: ref, "data-button-part": "label", ...props, className: cn('uikit-button-label', className) })));
|
|
59
59
|
export const Button = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/components/button/main.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAkB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EACL,EAAE,EACF,eAAe,EACf,iBAAiB,EACjB,SAAS,GACV,MAAM,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U,CACrB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAGhC,eACE,GAAG,EAAE,GAAG,sBACS,MAAM,KACnB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAC7C,CACH,CACF,CAAC;AAEF,MAAM,KAAK,GAAG,UAAU,CACtB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAEhC,eACE,GAAG,EAAE,GAAG,sBACS,OAAO,KACpB,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC,GAC9C,CACH,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,KAAK;CACN,CAAC"}
|
|
@@ -4,8 +4,9 @@ import type { GlassContextValue } from '../glass/main.js';
|
|
|
4
4
|
import type { SecondaryClickProps } from '../utils/main.js';
|
|
5
5
|
export type ButtonRootProps = BaseButtonProps & SecondaryClickProps & {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* How bright the content behind glass variants is (`adaptive`: by
|
|
8
|
+
* what's behind it, see `useBackdropTone`).
|
|
9
|
+
* @default the color scheme's
|
|
9
10
|
*/
|
|
10
11
|
context?: GlassContextValue;
|
|
11
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/button/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,eAAe,GAC3C,mBAAmB,GAAG;IACpB
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/button/props.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,eAAe,GAC3C,mBAAmB,GAAG;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,kBAAkB,CAAC;IAClD,wEAAwE;IACxE,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,OAAO,CAAC,EACJ,UAAU,GACV,oBAAoB,GACpB,oBAAoB,GACpB,YAAY,GACZ,OAAO,GACP,iBAAiB,CAAC;CACvB,CAAC"}
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
--uikit-button-radius: 1000px;
|
|
22
22
|
--uikit-button-size: 34px;
|
|
23
23
|
--uikit-button-icon-font-size: var(--font-ui-subheadline-size);
|
|
24
|
-
--uikit-button-font-weight: 400;
|
|
25
|
-
--uikit-button-icon-font-weight: 400;
|
|
24
|
+
--uikit-button-font-weight: round(down, calc(400 + var(--uikit-font-weight-boost, 0)), 100);
|
|
25
|
+
--uikit-button-icon-font-weight: round(down, calc(400 + var(--uikit-font-weight-boost, 0)), 100);
|
|
26
26
|
--uikit-button-icon-line-height: var(--font-ui-subheadline-line-height);
|
|
27
27
|
--uikit-glass-outset: 0px;
|
|
28
28
|
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
color: var(--uikit-button-color);
|
|
43
43
|
font-family: inherit;
|
|
44
44
|
font-size: var(--font-ui-subheadline-size);
|
|
45
|
-
font-variation-settings: 'wght' var(--uikit-button-font-weight);
|
|
46
|
-
font-weight: round(down, var(--uikit-button-font-weight), 100);
|
|
45
|
+
font-variation-settings: 'wght' calc(var(--uikit-button-font-weight) + var(--uikit-font-weight-boost, 0));
|
|
46
|
+
font-weight: round(down, calc(var(--uikit-button-font-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
47
47
|
gap: 4px;
|
|
48
48
|
letter-spacing: var(--font-ui-subheadline-tracking);
|
|
49
49
|
line-height: var(--font-ui-subheadline-line-height);
|
|
@@ -131,17 +131,17 @@
|
|
|
131
131
|
--uikit-button-color: var(--uikit-glass-content);
|
|
132
132
|
--uikit-button-color-disabled: var(--uikit-glass-content-disabled);
|
|
133
133
|
--uikit-button-blend: var(--uikit-glass-content-blend);
|
|
134
|
-
--uikit-button-icon-font-size:
|
|
135
|
-
--uikit-button-font-weight: 510;
|
|
136
|
-
--uikit-button-icon-font-weight: 590;
|
|
137
|
-
--uikit-button-icon-line-height:
|
|
134
|
+
--uikit-button-icon-font-size: calc(var(--font-ui-body-size) * 19 / 17);
|
|
135
|
+
--uikit-button-font-weight: round(down, calc(510 + var(--uikit-font-weight-boost, 0)), 100);
|
|
136
|
+
--uikit-button-icon-font-weight: round(down, calc(590 + var(--uikit-font-weight-boost, 0)), 100);
|
|
137
|
+
--uikit-button-icon-line-height: var(--font-ui-body-line-height);
|
|
138
138
|
|
|
139
139
|
padding: 6px 20px;
|
|
140
140
|
font-feature-settings: 'ss16';
|
|
141
|
-
font-size:
|
|
141
|
+
font-size: var(--font-ui-body-size);
|
|
142
142
|
gap: 4px;
|
|
143
143
|
letter-spacing: 0;
|
|
144
|
-
line-height:
|
|
144
|
+
line-height: calc(var(--font-ui-body-line-height) - 2px);
|
|
145
145
|
|
|
146
146
|
&::before {
|
|
147
147
|
position: absolute;
|
|
@@ -272,11 +272,11 @@
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
/* Blended and scaled as a whole
|
|
276
|
-
|
|
275
|
+
/* Blended and scaled as a whole, its symbols (and their badges) with it:
|
|
276
|
+
the button lifts, its content together, not each part on its own. */
|
|
277
277
|
.uikit-button-content {
|
|
278
|
-
--uikit-symbol-blend:
|
|
279
|
-
--uikit-symbol-scale:
|
|
278
|
+
--uikit-symbol-blend: normal;
|
|
279
|
+
--uikit-symbol-scale: none;
|
|
280
280
|
|
|
281
281
|
position: relative;
|
|
282
282
|
display: inline-flex;
|
|
@@ -284,21 +284,10 @@
|
|
|
284
284
|
align-items: center;
|
|
285
285
|
justify-content: center;
|
|
286
286
|
gap: inherit;
|
|
287
|
-
mix-blend-mode: var(--uikit-
|
|
288
|
-
scale: var(--uikit-
|
|
287
|
+
mix-blend-mode: var(--uikit-button-blend);
|
|
288
|
+
scale: var(--uikit-button-content-scale, none);
|
|
289
289
|
transition-duration: var(--glass-ui-lens-duration);
|
|
290
290
|
transition-property: scale;
|
|
291
|
-
|
|
292
|
-
&:has(.uikit-symbol) {
|
|
293
|
-
mix-blend-mode: normal;
|
|
294
|
-
scale: none;
|
|
295
|
-
|
|
296
|
-
& > :not(:has(.uikit-symbol)) {
|
|
297
|
-
mix-blend-mode: var(--uikit-symbol-blend);
|
|
298
|
-
scale: var(--uikit-symbol-scale);
|
|
299
|
-
transition: scale var(--glass-ui-lens-duration);
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
291
|
}
|
|
303
292
|
|
|
304
293
|
.uikit-button-icon {
|
|
@@ -307,8 +296,8 @@
|
|
|
307
296
|
align-items: center;
|
|
308
297
|
justify-content: center;
|
|
309
298
|
font-size: var(--uikit-button-icon-font-size);
|
|
310
|
-
font-variation-settings: 'wght' var(--uikit-button-icon-font-weight);
|
|
311
|
-
font-weight: round(down, var(--uikit-button-icon-font-weight), 100);
|
|
299
|
+
font-variation-settings: 'wght' calc(var(--uikit-button-icon-font-weight) + var(--uikit-font-weight-boost, 0));
|
|
300
|
+
font-weight: round(down, calc(var(--uikit-button-icon-font-weight) + var(--uikit-font-weight-boost, 0)), 100);
|
|
312
301
|
line-height: var(--uikit-button-icon-line-height);
|
|
313
302
|
}
|
|
314
303
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { CardCloseButtonProps, CardExpandButtonProps, CardOpenButtonProps } from './props.js';
|
|
2
|
+
/**
|
|
3
|
+
* A corner button expanding its card's tile in place and making it small
|
|
4
|
+
* again (bottom trailing): its grid item's expansion (see `Grid.Item`'s
|
|
5
|
+
* `expanded`, `expandedSize`). Its icon by where it goes (larger,
|
|
6
|
+
* expanding; smaller, collapsing). Hidden where expanding changes nothing
|
|
7
|
+
* (as its item would be either size now, the same; e.g. too few columns),
|
|
8
|
+
* or outside an item with an expanded size.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ExpandButton: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardExpandButtonProps> & {
|
|
11
|
+
ref?: import("preact").Ref<HTMLButtonElement> | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* Whether a ready-made card holding an open button wants it shown (see
|
|
15
|
+
* ControlCards' `Segmented`: only at its 1x1 size, its options hidden).
|
|
16
|
+
* Internal.
|
|
17
|
+
*/
|
|
18
|
+
export declare const OpenButtonHintContext: import("preact").Context<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* A corner button opening its card's tile above the page (bottom
|
|
21
|
+
* trailing): its grid item's `open` (see `Grid.Item`). Hidden while it's
|
|
22
|
+
* open (and in a ready-made segmented card, while its options show).
|
|
23
|
+
*/
|
|
24
|
+
export declare const OpenButton: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardOpenButtonProps> & {
|
|
25
|
+
ref?: import("preact").Ref<HTMLButtonElement> | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* A corner button closing its card's tile opened above the page (top
|
|
29
|
+
* trailing, clear of its symbol): its grid item's `open`. Shown only while
|
|
30
|
+
* it's open.
|
|
31
|
+
*/
|
|
32
|
+
export declare const CloseButton: import("preact").FunctionalComponent<import("react").PropsWithoutRef<CardCloseButtonProps> & {
|
|
33
|
+
ref?: import("preact").Ref<HTMLButtonElement> | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
//# sourceMappingURL=buttons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../src/components/card/buttons.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAOpB;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;EA0BvB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,mCAAsB,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,UAAU;;EAgBtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW;;EAiBvB,CAAC"}
|