diff --git a/app/NativeComponents/DemoLauncher.php b/app/NativeComponents/DemoLauncher.php index 5b72034..9ea603d 100644 --- a/app/NativeComponents/DemoLauncher.php +++ b/app/NativeComponents/DemoLauncher.php @@ -59,6 +59,20 @@ class DemoLauncher extends NativeComponent ['id' => 'numberswitcher', 'title' => 'Number Switcher', 'subtitle' => 'content-transition — rolling in-place digit changes', 'icon' => 'textformat.123', 'color' => '#14B8A6', 'url' => '/number-switcher'], ], ], + [ + 'title' => 'Edge Components', + 'demos' => [ + ['id' => 'edge-top-bar', 'title' => 'Top Bar', 'subtitle' => 'Title, subtitle, and trailing actions', 'icon' => 'rectangle.topthird.inset.filled', 'color' => '#0EA5E9', 'url' => '/edge-components/top-bar'], + ['id' => 'edge-top-bar-large-title', 'title' => 'Top Bar — Large Title', 'subtitle' => 'The large display mode', 'icon' => 'textformat.size.larger', 'color' => '#0EA5E9', 'url' => '/edge-components/top-bar-large-title'], + ['id' => 'edge-top-bar-search', 'title' => 'Top Bar — Search', 'subtitle' => 'An attached native search field', 'icon' => 'magnifyingglass', 'color' => '#0EA5E9', 'url' => '/edge-components/top-bar-search'], + ['id' => 'edge-top-bar-destructive-action', 'title' => 'Top Bar — Destructive Action', 'subtitle' => 'An action tinted for a destructive tap', 'icon' => 'trash', 'color' => '#EF4444', 'url' => '/edge-components/top-bar-destructive-action'], + ['id' => 'edge-top-bar-logo', 'title' => 'Top Bar — Logo', 'subtitle' => 'An image in the title slot', 'icon' => 'photo', 'color' => '#0EA5E9', 'url' => '/edge-components/top-bar-logo'], + ['id' => 'edge-bottom-nav', 'title' => 'Bottom Nav', 'subtitle' => 'Active, news, and badge items', 'icon' => 'square.grid.2x2', 'color' => '#22C55E', 'url' => '/edge-components/bottom-nav'], + ['id' => 'edge-bottom-nav-search-item', 'title' => 'Bottom Nav — Search Item', 'subtitle' => 'A dedicated search tab', 'icon' => 'magnifyingglass.circle', 'color' => '#22C55E', 'url' => '/edge-components/bottom-nav-search-item'], + ['id' => 'edge-side-nav', 'title' => 'Side Nav', 'subtitle' => 'Header, collapsed group, and a divider', 'icon' => 'sidebar.left', 'color' => '#A855F7', 'url' => '/edge-components/side-nav'], + ['id' => 'edge-side-nav-header-image', 'title' => 'Side Nav — Header Image', 'subtitle' => 'A background image behind the header', 'icon' => 'photo.on.rectangle', 'color' => '#A855F7', 'url' => '/edge-components/side-nav-header-image'], + ], + ], [ 'title' => 'Mini Apps', 'demos' => [ diff --git a/app/NativeComponents/EdgeComponents/BottomNav.php b/app/NativeComponents/EdgeComponents/BottomNav.php new file mode 100644 index 0000000..27fa2f1 --- /dev/null +++ b/app/NativeComponents/EdgeComponents/BottomNav.php @@ -0,0 +1,21 @@ + 'Edge Component showcase — this screen exists to show off the bottom nav below.']) + + + + + + diff --git a/resources/views/native/edge-components/bottom-nav.blade.php b/resources/views/native/edge-components/bottom-nav.blade.php new file mode 100644 index 0000000..1e034d6 --- /dev/null +++ b/resources/views/native/edge-components/bottom-nav.blade.php @@ -0,0 +1,7 @@ +@include('native.partials.edge-component-note', ['caption' => 'Edge Component showcase — this screen exists to show off the bottom nav below.']) + + + + + + diff --git a/resources/views/native/edge-components/side-nav-body.blade.php b/resources/views/native/edge-components/side-nav-body.blade.php new file mode 100644 index 0000000..acca81c --- /dev/null +++ b/resources/views/native/edge-components/side-nav-body.blade.php @@ -0,0 +1,5 @@ + + + Edge Component showcase — this screen exists to show off the side drawer. Its nav bar is hidden so the drawer's own ☰ affordance is the only leading icon on screen. + + diff --git a/resources/views/native/edge-components/side-nav-drawer.blade.php b/resources/views/native/edge-components/side-nav-drawer.blade.php new file mode 100644 index 0000000..e8f3dcf --- /dev/null +++ b/resources/views/native/edge-components/side-nav-drawer.blade.php @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/resources/views/native/edge-components/side-nav-header-image.blade.php b/resources/views/native/edge-components/side-nav-header-image.blade.php new file mode 100644 index 0000000..9f7117d --- /dev/null +++ b/resources/views/native/edge-components/side-nav-header-image.blade.php @@ -0,0 +1,7 @@ + + + diff --git a/resources/views/native/edge-components/top-bar-destructive-action.blade.php b/resources/views/native/edge-components/top-bar-destructive-action.blade.php new file mode 100644 index 0000000..3a69cd3 --- /dev/null +++ b/resources/views/native/edge-components/top-bar-destructive-action.blade.php @@ -0,0 +1,5 @@ + + + + +@include('native.partials.edge-component-note', ['caption' => 'Edge Component showcase — this screen exists to show off the top bar above.']) diff --git a/resources/views/native/edge-components/top-bar-large-title.blade.php b/resources/views/native/edge-components/top-bar-large-title.blade.php new file mode 100644 index 0000000..f2e92db --- /dev/null +++ b/resources/views/native/edge-components/top-bar-large-title.blade.php @@ -0,0 +1,5 @@ + + + + +@include('native.partials.edge-component-note', ['caption' => 'Edge Component showcase — this screen exists to show off the top bar above.']) diff --git a/resources/views/native/edge-components/top-bar-logo.blade.php b/resources/views/native/edge-components/top-bar-logo.blade.php new file mode 100644 index 0000000..aa2407d --- /dev/null +++ b/resources/views/native/edge-components/top-bar-logo.blade.php @@ -0,0 +1,7 @@ + + + + + + +@include('native.partials.edge-component-note', ['caption' => 'Edge Component showcase — this screen exists to show off the top bar above.']) diff --git a/resources/views/native/edge-components/top-bar-search.blade.php b/resources/views/native/edge-components/top-bar-search.blade.php new file mode 100644 index 0000000..3ccd3cb --- /dev/null +++ b/resources/views/native/edge-components/top-bar-search.blade.php @@ -0,0 +1,3 @@ + + +@include('native.partials.edge-component-note', ['caption' => 'Edge Component showcase — this screen exists to show off the top bar above.']) diff --git a/resources/views/native/edge-components/top-bar.blade.php b/resources/views/native/edge-components/top-bar.blade.php new file mode 100644 index 0000000..3a1212f --- /dev/null +++ b/resources/views/native/edge-components/top-bar.blade.php @@ -0,0 +1,16 @@ + + + + + +@include('native.partials.edge-component-note', ['caption' => 'Edge Component showcase — this screen exists to show off the top bar above.']) diff --git a/resources/views/native/explore/forms.blade.php b/resources/views/native/explore/forms.blade.php index db1647a..f985882 100644 --- a/resources/views/native/explore/forms.blade.php +++ b/resources/views/native/explore/forms.blade.php @@ -1,3 +1,4 @@ + Slider @@ -20,119 +21,60 @@ {{ number_format($slideValue * 10000000, 2) }} - - - - - - - - + + + {{-- TOGGLE --}} + Toggle + + + + + + + {{-- CHECKBOX --}} + Checkbox + + + + subscribed: {{ $subscribed ? 'yes' : 'no' }} - terms: {{ $termsAccepted ? 'yes' : 'no' }} + + + + + {{-- SELECT --}} + Select +