diff --git a/app/Enums/Example.php b/app/Enums/Example.php
index 9667dd3e..57fb476d 100644
--- a/app/Enums/Example.php
+++ b/app/Enums/Example.php
@@ -7,6 +7,7 @@
use App\Enums\Examples\DarkTheme;
use App\Enums\Examples\Form\Checkbox;
use App\Enums\Examples\Form\Input;
+use App\Enums\Examples\Form\Number;
use App\Enums\Examples\Form\Password;
use App\Enums\Examples\Form\Radio;
use App\Enums\Examples\Form\Textarea;
@@ -26,6 +27,7 @@
use App\Enums\Examples\Ui\Dropdown;
use App\Enums\Examples\Ui\Error;
use App\Enums\Examples\Ui\Icon;
+use App\Enums\Examples\Ui\Loading;
use App\Enums\Examples\Ui\Modal;
use App\Enums\Examples\Ui\Select;
use App\Enums\Examples\Ui\Slide;
@@ -55,6 +57,7 @@ enum Example: string
case Error = Error::class;
case Icon = Icon::class;
case Input = Input::class;
+ case Number = Number::class;
case Installation = Installation::class;
case Password = Password::class;
case Radio = Radio::class;
@@ -68,6 +71,7 @@ enum Example: string
case Toggle = Toggle::class;
case Tooltip = Tooltip::class;
case Modal = Modal::class;
+ case Loading = Loading::class;
case Welcome = Welcome::class;
public function variables(): array
diff --git a/app/Enums/Examples/Configuration.php b/app/Enums/Examples/Configuration.php
index 839624cd..8b6f17ed 100644
--- a/app/Enums/Examples/Configuration.php
+++ b/app/Enums/Examples/Configuration.php
@@ -31,6 +31,10 @@ class Configuration
/* Alloweds: sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl */
'size' => '2xl',
],
+ 'loading' => [
+ 'blur' => false,
+ 'opacity' => true,
+ ],
'slide' => [
'z-index' => 'z-50',
'blur' => false,
@@ -46,10 +50,6 @@ class Configuration
/* Alloweds: top-right, top-left, bottom-right, bottom-left */
'position' => 'top-right',
],
- 'tooltip' => [
- /* Enable theme variation between light/dark theme */
- 'thematic' => false,
- ],
],
// ...
diff --git a/app/Enums/Examples/Form/Number.php b/app/Enums/Examples/Form/Number.php
new file mode 100644
index 00000000..2b2247a3
--- /dev/null
+++ b/app/Enums/Examples/Form/Number.php
@@ -0,0 +1,34 @@
+
+ HTML;
+
+ public const LABEL_HINT = <<<'HTML'
+
+ HTML;
+
+ public const MIN_MAX = <<<'HTML'
+
+ HTML;
+
+ public const DELAY = <<<'HTML'
+
+ HTML;
+
+ public const ICON = <<<'HTML'
+
+ HTML;
+
+ public const PERSONALIZATION = <<<'HTML'
+ TallStackUi::personalize()
+ ->form('number')
+ ->block('block', 'classes');
+ HTML;
+}
diff --git a/app/Enums/Examples/Personalization/SoftPersonalization.php b/app/Enums/Examples/Personalization/SoftPersonalization.php
index 696c66ac..2a70177e 100644
--- a/app/Enums/Examples/Personalization/SoftPersonalization.php
+++ b/app/Enums/Examples/Personalization/SoftPersonalization.php
@@ -189,22 +189,10 @@ public function boot(): void
TallStackUi::personalize()
->form('input')
->block('input.class.base')
- ->replace('rounded-md', 'rounded-full'); // string or array [tl! highlight]
-
- TallStackUi::personalize()
- ->form('input')
- ->block('input.class.base')
- ->remove('rounded-md'); // string or array [tl! highlight]
-
- TallStackUi::personalize()
- ->form('input')
- ->block('input.class.base')
- ->append('px-4'); // string only [tl! highlight]
-
- TallStackUi::personalize()
- ->form('input')
- ->block('input.class.base')
- ->prepend('py-4'); // string only [tl! highlight]
+ ->replace('rounded-md', 'rounded-full') // string or array
+ ->remove('rounded-md') // string or array
+ ->append('px-4') // string only
+ ->prepend('py-4'); // string only
}
}
HTML;
diff --git a/app/Enums/Examples/Ui/Loading.php b/app/Enums/Examples/Ui/Loading.php
new file mode 100644
index 00000000..f3d8cf2d
--- /dev/null
+++ b/app/Enums/Examples/Ui/Loading.php
@@ -0,0 +1,55 @@
+ {{-- [tl! remove] --}}
+
+ {{-- [tl! add] --}}
+ HTML;
+
+ public const USAGE = <<<'HTML'
+
+
+
+ {{-- [tl! add] --}}
+
+
+
+ HTML;
+
+ public const BASIC = <<<'HTML'
+
+ HTML;
+
+ public const TEXT = <<<'HTML'
+
+
+
+ Loading ...
+
+
+ HTML;
+
+ public const TARGET_DELAY = <<<'HTML'
+
+
+
+
+
+ HTML;
+
+ public const PERSONALIZATION = <<<'HTML'
+ TallStackUi::personalize()
+ ->loading()
+ ->block('block', 'classes');
+ HTML;
+}
diff --git a/app/Enums/Examples/Ui/Tooltip.php b/app/Enums/Examples/Ui/Tooltip.php
index fff9811b..a97717c5 100644
--- a/app/Enums/Examples/Ui/Tooltip.php
+++ b/app/Enums/Examples/Ui/Tooltip.php
@@ -5,6 +5,28 @@
class Tooltip
{
public const BASIC = <<<'HTML'
+
+ HTML;
+
+ public const POSITIONS = <<<'HTML'
+
+
diff --git a/app/Http/Controllers/Documentation/Form/Number.php b/app/Http/Controllers/Documentation/Form/Number.php
new file mode 100644
index 00000000..ededc98f
--- /dev/null
+++ b/app/Http/Controllers/Documentation/Form/Number.php
@@ -0,0 +1,15 @@
+variables());
+ }
+}
diff --git a/app/Http/Controllers/Documentation/Ui/Dialog.php b/app/Http/Controllers/Documentation/Interactions/Dialog.php
similarity index 56%
rename from app/Http/Controllers/Documentation/Ui/Dialog.php
rename to app/Http/Controllers/Documentation/Interactions/Dialog.php
index 6f5dc6e3..65647933 100644
--- a/app/Http/Controllers/Documentation/Ui/Dialog.php
+++ b/app/Http/Controllers/Documentation/Interactions/Dialog.php
@@ -1,6 +1,6 @@
variables());
+ return view('documentation.interactions.dialog', Example::Dialog->variables());
}
}
diff --git a/app/Http/Controllers/Documentation/Ui/Toast.php b/app/Http/Controllers/Documentation/Interactions/Toast.php
similarity index 56%
rename from app/Http/Controllers/Documentation/Ui/Toast.php
rename to app/Http/Controllers/Documentation/Interactions/Toast.php
index 6ff0ac2b..04dbe7df 100644
--- a/app/Http/Controllers/Documentation/Ui/Toast.php
+++ b/app/Http/Controllers/Documentation/Interactions/Toast.php
@@ -1,6 +1,6 @@
variables());
+ return view('documentation.interactions.toast', Example::Toast->variables());
}
}
diff --git a/app/Http/Controllers/Documentation/Loading.php b/app/Http/Controllers/Documentation/Loading.php
new file mode 100644
index 00000000..cfc4f02d
--- /dev/null
+++ b/app/Http/Controllers/Documentation/Loading.php
@@ -0,0 +1,14 @@
+variables());
+ }
+}
diff --git a/app/View/Components/OnThisPage.php b/app/View/Components/OnThisPage.php
index dc149619..d5c2bc18 100644
--- a/app/View/Components/OnThisPage.php
+++ b/app/View/Components/OnThisPage.php
@@ -7,7 +7,7 @@
class OnThisPage extends Component
{
- public function __construct(public ?array $contents = [])
+ public function __construct(public ?array $contents = [], public ?bool $mobile = false)
{
$this->contents();
}
diff --git a/composer.lock b/composer.lock
index b2076770..4a8295c8 100644
--- a/composer.lock
+++ b/composer.lock
@@ -61,6 +61,75 @@
],
"time": "2023-01-15T23:15:59+00:00"
},
+ {
+ "name": "carbonphp/carbon-doctrine-types",
+ "version": "3.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/CarbonPHP/carbon-doctrine-types.git",
+ "reference": "49856fbc09fe91b5433381faec60e3620ad364ad"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/49856fbc09fe91b5433381faec60e3620ad364ad",
+ "reference": "49856fbc09fe91b5433381faec60e3620ad364ad",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^8.1"
+ },
+ "conflict": {
+ "doctrine/dbal": "<4.0.0 || >=5.0.0"
+ },
+ "require-dev": {
+ "doctrine/dbal": "^4.0.0",
+ "nesbot/carbon": "^2.71.0 || ^3.0.0",
+ "phpunit/phpunit": "^10.3"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Carbon\\Doctrine\\": "src/Carbon/Doctrine/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "KyleKatarn",
+ "email": "kylekatarnls@gmail.com"
+ }
+ ],
+ "description": "Types to use Carbon in Doctrine",
+ "keywords": [
+ "carbon",
+ "date",
+ "datetime",
+ "doctrine",
+ "time"
+ ],
+ "support": {
+ "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues",
+ "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.0.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/kylekatarnls",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/Carbon",
+ "type": "open_collective"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2023-10-01T14:36:55+00:00"
+ },
{
"name": "dflydev/dot-access-data",
"version": "v3.0.2",
@@ -567,16 +636,16 @@
},
{
"name": "guzzlehttp/guzzle",
- "version": "7.8.0",
+ "version": "7.8.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
- "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9"
+ "reference": "41042bc7ab002487b876a0683fc8dce04ddce104"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1110f66a6530a40fe7aea0378fe608ee2b2248f9",
- "reference": "1110f66a6530a40fe7aea0378fe608ee2b2248f9",
+ "url": "https://api.github.com/repos/guzzle/guzzle/zipball/41042bc7ab002487b876a0683fc8dce04ddce104",
+ "reference": "41042bc7ab002487b876a0683fc8dce04ddce104",
"shasum": ""
},
"require": {
@@ -591,11 +660,11 @@
"psr/http-client-implementation": "1.0"
},
"require-dev": {
- "bamarni/composer-bin-plugin": "^1.8.1",
+ "bamarni/composer-bin-plugin": "^1.8.2",
"ext-curl": "*",
"php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999",
"php-http/message-factory": "^1.1",
- "phpunit/phpunit": "^8.5.29 || ^9.5.23",
+ "phpunit/phpunit": "^8.5.36 || ^9.6.15",
"psr/log": "^1.1 || ^2.0 || ^3.0"
},
"suggest": {
@@ -673,7 +742,7 @@
],
"support": {
"issues": "https://github.com/guzzle/guzzle/issues",
- "source": "https://github.com/guzzle/guzzle/tree/7.8.0"
+ "source": "https://github.com/guzzle/guzzle/tree/7.8.1"
},
"funding": [
{
@@ -689,28 +758,28 @@
"type": "tidelift"
}
],
- "time": "2023-08-27T10:20:53+00:00"
+ "time": "2023-12-03T20:35:24+00:00"
},
{
"name": "guzzlehttp/promises",
- "version": "2.0.1",
+ "version": "2.0.2",
"source": {
"type": "git",
"url": "https://github.com/guzzle/promises.git",
- "reference": "111166291a0f8130081195ac4556a5587d7f1b5d"
+ "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/promises/zipball/111166291a0f8130081195ac4556a5587d7f1b5d",
- "reference": "111166291a0f8130081195ac4556a5587d7f1b5d",
+ "url": "https://api.github.com/repos/guzzle/promises/zipball/bbff78d96034045e58e13dedd6ad91b5d1253223",
+ "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223",
"shasum": ""
},
"require": {
"php": "^7.2.5 || ^8.0"
},
"require-dev": {
- "bamarni/composer-bin-plugin": "^1.8.1",
- "phpunit/phpunit": "^8.5.29 || ^9.5.23"
+ "bamarni/composer-bin-plugin": "^1.8.2",
+ "phpunit/phpunit": "^8.5.36 || ^9.6.15"
},
"type": "library",
"extra": {
@@ -756,7 +825,7 @@
],
"support": {
"issues": "https://github.com/guzzle/promises/issues",
- "source": "https://github.com/guzzle/promises/tree/2.0.1"
+ "source": "https://github.com/guzzle/promises/tree/2.0.2"
},
"funding": [
{
@@ -772,20 +841,20 @@
"type": "tidelift"
}
],
- "time": "2023-08-03T15:11:55+00:00"
+ "time": "2023-12-03T20:19:20+00:00"
},
{
"name": "guzzlehttp/psr7",
- "version": "2.6.1",
+ "version": "2.6.2",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
- "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727"
+ "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/be45764272e8873c72dbe3d2edcfdfcc3bc9f727",
- "reference": "be45764272e8873c72dbe3d2edcfdfcc3bc9f727",
+ "url": "https://api.github.com/repos/guzzle/psr7/zipball/45b30f99ac27b5ca93cb4831afe16285f57b8221",
+ "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221",
"shasum": ""
},
"require": {
@@ -799,9 +868,9 @@
"psr/http-message-implementation": "1.0"
},
"require-dev": {
- "bamarni/composer-bin-plugin": "^1.8.1",
+ "bamarni/composer-bin-plugin": "^1.8.2",
"http-interop/http-factory-tests": "^0.9",
- "phpunit/phpunit": "^8.5.29 || ^9.5.23"
+ "phpunit/phpunit": "^8.5.36 || ^9.6.15"
},
"suggest": {
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
@@ -872,7 +941,7 @@
],
"support": {
"issues": "https://github.com/guzzle/psr7/issues",
- "source": "https://github.com/guzzle/psr7/tree/2.6.1"
+ "source": "https://github.com/guzzle/psr7/tree/2.6.2"
},
"funding": [
{
@@ -888,32 +957,38 @@
"type": "tidelift"
}
],
- "time": "2023-08-27T10:13:57+00:00"
+ "time": "2023-12-03T20:05:35+00:00"
},
{
"name": "guzzlehttp/uri-template",
- "version": "v1.0.2",
+ "version": "v1.0.3",
"source": {
"type": "git",
"url": "https://github.com/guzzle/uri-template.git",
- "reference": "61bf437fc2197f587f6857d3ff903a24f1731b5d"
+ "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/uri-template/zipball/61bf437fc2197f587f6857d3ff903a24f1731b5d",
- "reference": "61bf437fc2197f587f6857d3ff903a24f1731b5d",
+ "url": "https://api.github.com/repos/guzzle/uri-template/zipball/ecea8feef63bd4fef1f037ecb288386999ecc11c",
+ "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c",
"shasum": ""
},
"require": {
"php": "^7.2.5 || ^8.0",
- "symfony/polyfill-php80": "^1.17"
+ "symfony/polyfill-php80": "^1.24"
},
"require-dev": {
- "bamarni/composer-bin-plugin": "^1.8.1",
- "phpunit/phpunit": "^8.5.19 || ^9.5.8",
+ "bamarni/composer-bin-plugin": "^1.8.2",
+ "phpunit/phpunit": "^8.5.36 || ^9.6.15",
"uri-template/tests": "1.0.0"
},
"type": "library",
+ "extra": {
+ "bamarni-bin": {
+ "bin-links": true,
+ "forward-command": false
+ }
+ },
"autoload": {
"psr-4": {
"GuzzleHttp\\UriTemplate\\": "src"
@@ -952,7 +1027,7 @@
],
"support": {
"issues": "https://github.com/guzzle/uri-template/issues",
- "source": "https://github.com/guzzle/uri-template/tree/v1.0.2"
+ "source": "https://github.com/guzzle/uri-template/tree/v1.0.3"
},
"funding": [
{
@@ -968,7 +1043,7 @@
"type": "tidelift"
}
],
- "time": "2023-08-27T10:19:19+00:00"
+ "time": "2023-12-03T19:50:20+00:00"
},
{
"name": "laravel/breeze",
@@ -1676,16 +1751,16 @@
},
{
"name": "league/flysystem",
- "version": "3.21.0",
+ "version": "3.22.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
- "reference": "a326d8a2d007e4ca327a57470846e34363789258"
+ "reference": "d18526ee587f265f091f47bb83f1d9a001ef6f36"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/a326d8a2d007e4ca327a57470846e34363789258",
- "reference": "a326d8a2d007e4ca327a57470846e34363789258",
+ "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/d18526ee587f265f091f47bb83f1d9a001ef6f36",
+ "reference": "d18526ee587f265f091f47bb83f1d9a001ef6f36",
"shasum": ""
},
"require": {
@@ -1713,7 +1788,7 @@
"friendsofphp/php-cs-fixer": "^3.5",
"google/cloud-storage": "^1.23",
"microsoft/azure-storage-blob": "^1.1",
- "phpseclib/phpseclib": "^3.0.14",
+ "phpseclib/phpseclib": "^3.0.34",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.5.11|^10.0",
"sabre/dav": "^4.3.1"
@@ -1750,7 +1825,7 @@
],
"support": {
"issues": "https://github.com/thephpleague/flysystem/issues",
- "source": "https://github.com/thephpleague/flysystem/tree/3.21.0"
+ "source": "https://github.com/thephpleague/flysystem/tree/3.22.0"
},
"funding": [
{
@@ -1762,20 +1837,20 @@
"type": "github"
}
],
- "time": "2023-11-18T13:59:15+00:00"
+ "time": "2023-12-03T18:35:53+00:00"
},
{
"name": "league/flysystem-local",
- "version": "3.21.0",
+ "version": "3.22.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem-local.git",
- "reference": "470eb1c09eaabd49ebd908ae06f23983ba3ecfe7"
+ "reference": "42dfb4eaafc4accd248180f0dd66f17073b40c4c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/470eb1c09eaabd49ebd908ae06f23983ba3ecfe7",
- "reference": "470eb1c09eaabd49ebd908ae06f23983ba3ecfe7",
+ "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/42dfb4eaafc4accd248180f0dd66f17073b40c4c",
+ "reference": "42dfb4eaafc4accd248180f0dd66f17073b40c4c",
"shasum": ""
},
"require": {
@@ -1810,7 +1885,7 @@
],
"support": {
"issues": "https://github.com/thephpleague/flysystem-local/issues",
- "source": "https://github.com/thephpleague/flysystem-local/tree/3.21.0"
+ "source": "https://github.com/thephpleague/flysystem-local/tree/3.22.0"
},
"funding": [
{
@@ -1822,7 +1897,7 @@
"type": "github"
}
],
- "time": "2023-11-18T13:41:42+00:00"
+ "time": "2023-11-18T20:52:53+00:00"
},
{
"name": "league/mime-type-detection",
@@ -1882,16 +1957,16 @@
},
{
"name": "livewire/livewire",
- "version": "v3.2.2",
+ "version": "v3.2.3",
"source": {
"type": "git",
"url": "https://github.com/livewire/livewire.git",
- "reference": "c5366279aeb10f75bb358032bb832702e3d0d35a"
+ "reference": "724e712cac25c40455102f0b5abd002fd269433b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/livewire/livewire/zipball/c5366279aeb10f75bb358032bb832702e3d0d35a",
- "reference": "c5366279aeb10f75bb358032bb832702e3d0d35a",
+ "url": "https://api.github.com/repos/livewire/livewire/zipball/724e712cac25c40455102f0b5abd002fd269433b",
+ "reference": "724e712cac25c40455102f0b5abd002fd269433b",
"shasum": ""
},
"require": {
@@ -1944,7 +2019,7 @@
"description": "A front-end framework for Laravel.",
"support": {
"issues": "https://github.com/livewire/livewire/issues",
- "source": "https://github.com/livewire/livewire/tree/v3.2.2"
+ "source": "https://github.com/livewire/livewire/tree/v3.2.3"
},
"funding": [
{
@@ -1952,7 +2027,7 @@
"type": "github"
}
],
- "time": "2023-11-29T17:43:29+00:00"
+ "time": "2023-12-02T18:55:31+00:00"
},
{
"name": "livewire/volt",
@@ -2129,19 +2204,20 @@
},
{
"name": "nesbot/carbon",
- "version": "2.71.0",
+ "version": "2.72.0",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
- "reference": "98276233188583f2ff845a0f992a235472d9466a"
+ "reference": "a6885fcbad2ec4360b0e200ee0da7d9b7c90786b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/98276233188583f2ff845a0f992a235472d9466a",
- "reference": "98276233188583f2ff845a0f992a235472d9466a",
+ "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/a6885fcbad2ec4360b0e200ee0da7d9b7c90786b",
+ "reference": "a6885fcbad2ec4360b0e200ee0da7d9b7c90786b",
"shasum": ""
},
"require": {
+ "carbonphp/carbon-doctrine-types": "*",
"ext-json": "*",
"php": "^7.1.8 || ^8.0",
"psr/clock": "^1.0",
@@ -2153,8 +2229,8 @@
"psr/clock-implementation": "1.0"
},
"require-dev": {
- "doctrine/dbal": "^2.0 || ^3.1.4",
- "doctrine/orm": "^2.7",
+ "doctrine/dbal": "^2.0 || ^3.1.4 || ^4.0",
+ "doctrine/orm": "^2.7 || ^3.0",
"friendsofphp/php-cs-fixer": "^3.0",
"kylekatarnls/multi-tester": "^2.0",
"ondrejmirtes/better-reflection": "*",
@@ -2231,7 +2307,7 @@
"type": "tidelift"
}
],
- "time": "2023-09-25T11:31:05+00:00"
+ "time": "2023-11-28T10:13:25+00:00"
},
{
"name": "nette/schema",
@@ -5574,16 +5650,16 @@
},
{
"name": "tallstackui/tallstackui",
- "version": "v1.1.0",
+ "version": "v1.2.0",
"source": {
"type": "git",
"url": "https://github.com/tallstackui/tallstackui.git",
- "reference": "53c10a9231cd3a236d250b93312cbc33c95b0b06"
+ "reference": "81e0ef4c838604f97390368eef3aacb969e0437a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/tallstackui/tallstackui/zipball/53c10a9231cd3a236d250b93312cbc33c95b0b06",
- "reference": "53c10a9231cd3a236d250b93312cbc33c95b0b06",
+ "url": "https://api.github.com/repos/tallstackui/tallstackui/zipball/81e0ef4c838604f97390368eef3aacb969e0437a",
+ "reference": "81e0ef4c838604f97390368eef3aacb969e0437a",
"shasum": ""
},
"require": {
@@ -5629,9 +5705,9 @@
"description": "A curated list of TallStack UI Components",
"support": {
"issues": "https://github.com/tallstackui/tallstackui/issues",
- "source": "https://github.com/tallstackui/tallstackui/tree/v1.1.0"
+ "source": "https://github.com/tallstackui/tallstackui/tree/v1.2.0"
},
- "time": "2023-12-01T01:11:11+00:00"
+ "time": "2023-12-04T02:24:19+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
diff --git a/config/tallstackui.php b/config/tallstackui.php
new file mode 100644
index 00000000..a882c0e2
--- /dev/null
+++ b/config/tallstackui.php
@@ -0,0 +1,98 @@
+ 'solid',
+
+ /*
+ |--------------------------------------------------------------------------
+ | Component Settings
+ |--------------------------------------------------------------------------
+ |
+ | General components settings.
+ */
+ 'settings' => [
+ 'dialog' => [
+ 'z-index' => 'z-50',
+ 'blur' => false,
+ 'uncloseable' => false,
+ ],
+ 'modal' => [
+ 'z-index' => 'z-50',
+ 'blur' => false,
+ 'persistent' => false,
+ /* Alloweds: sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl */
+ 'size' => '2xl',
+ ],
+ 'loading' => [
+ 'blur' => false,
+ 'opacity' => true,
+ ],
+ 'slide' => [
+ 'z-index' => 'z-50',
+ 'blur' => false,
+ 'persistent' => false,
+ /* Alloweds: sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl, full */
+ 'size' => 'lg',
+ /* Alloweds: right, left */
+ 'position' => 'right',
+ ],
+ 'toast' => [
+ 'z-index' => 'z-50',
+ 'progress' => true,
+ /* Alloweds: top-right, top-left, bottom-right, bottom-left */
+ 'position' => 'top-right',
+ ],
+ ],
+
+ /*
+ |--------------------------------------------------------------------------
+ | Component List
+ |--------------------------------------------------------------------------
+ |
+ | List of all TallStackUi components.
+ */
+ 'components' => [
+ 'alert' => Components\Alert::class,
+ 'avatar' => Components\Avatar::class,
+ 'badge' => Components\Badge::class,
+ 'banner' => Components\Banner::class,
+ 'button' => Components\Button\Button::class,
+ 'button.circle' => Components\Button\Circle::class,
+ 'card' => Components\Card::class,
+ 'checkbox' => Components\Form\Checkbox::class,
+ 'dialog' => Components\Interaction\Dialog::class,
+ 'dropdown' => Components\Dropdown\Dropdown::class,
+ 'dropdown.items' => Components\Dropdown\Items::class,
+ 'error' => Components\Form\Error::class,
+ 'errors' => Components\Errors::class,
+ 'hint' => Components\Form\Hint::class,
+ 'icon' => Components\Icon::class,
+ 'input' => Components\Form\Input::class,
+ 'label' => Components\Form\Label::class,
+ 'loading' => Components\Loading::class,
+ 'modal' => Components\Modal::class,
+ 'number' => Components\Form\Number::class,
+ 'password' => Components\Form\Password::class,
+ 'radio' => Components\Form\Radio::class,
+ 'select.native' => Components\Select\Native::class,
+ 'select.styled' => Components\Select\Styled::class,
+ 'slide' => Components\Slide::class,
+ 'tab' => Components\Tab\Tab::class,
+ 'tab.items' => Components\Tab\Items::class,
+ 'textarea' => Components\Form\Textarea::class,
+ 'toast' => Components\Interaction\Toast::class,
+ 'toggle' => Components\Form\Toggle::class,
+ 'tooltip' => Components\Tooltip::class,
+ 'wrapper.input' => Components\Wrapper\Input::class,
+ 'wrapper.radio' => Components\Wrapper\Radio::class,
+ ],
+];
diff --git a/contents/on-this-page.json b/contents/on-this-page.json
index 90fe424e..3015774e 100644
--- a/contents/on-this-page.json
+++ b/contents/on-this-page.json
@@ -17,6 +17,12 @@
"1": "Label & Hint",
"2": "Required Label Indicator"
},
+ "docs.form.number": {
+ "0": "Basic Usage",
+ "1": "Label & Hint",
+ "2": "Min & Max Control",
+ "3": "Delay Control"
+ },
"docs.form.textarea": {
"0": "Basic Usage",
"1": "Label & Hint",
@@ -168,6 +174,15 @@
"9": "AlpineJS Helper",
"10": "Configurations"
},
+ "docs.ui.loading": {
+ "0": "Concept",
+ "1": "Attributes",
+ "2": "Usage",
+ "3": "Basic Usage",
+ "4": "Text Slot",
+ "5": "Target & Delay Options",
+ "6": "Configurations"
+ },
"docs.ui.select": {
"Native": {
"prefix": true,
@@ -221,11 +236,12 @@
},
"docs.ui.tooltip": {
"0": "Basic Usage",
- "1": "Customized Icon",
- "2": "Size Variations",
- "3": "HTML Content",
- "4": "Color Variations",
- "5": "Outline Variations"
+ "1": "Available Positions",
+ "2": "Customized Icon",
+ "3": "Size Variations",
+ "4": "HTML Content",
+ "5": "Color Variations",
+ "6": "Outline Variations"
},
"docs.interaction.dialog": {
"0": "Configuration",
diff --git a/resources/views/components/code.blade.php b/resources/views/components/code.blade.php
index 2d07e7e3..c6a43193 100644
--- a/resources/views/components/code.blade.php
+++ b/resources/views/components/code.blade.php
@@ -13,4 +13,4 @@
@endif
class(['overflow-auto custom-scrollbar rounded-lg bg-[#292D3E] p-4 my-2']) }}
@if ($unpadding) style="padding-left: 0rem !important;" @endif>
-
\ No newline at end of file
+
diff --git a/resources/views/components/github.blade.php b/resources/views/components/github.blade.php
index ca831011..e7cf324e 100644
--- a/resources/views/components/github.blade.php
+++ b/resources/views/components/github.blade.php
@@ -1,4 +1,6 @@
-
+@props(['repository' => false])
+
+
diff --git a/resources/views/components/navigation/link.blade.php b/resources/views/components/layout/footer-navigation.blade.php
similarity index 100%
rename from resources/views/components/navigation/link.blade.php
rename to resources/views/components/layout/footer-navigation.blade.php
diff --git a/resources/views/components/layout/header.blade.php b/resources/views/components/layout/header.blade.php
index 69bc9f67..974a7cfc 100644
--- a/resources/views/components/layout/header.blade.php
+++ b/resources/views/components/layout/header.blade.php
@@ -15,6 +15,6 @@ class="h-6 w-6 stroke-slate-500">
-
+
diff --git a/resources/views/components/layout/menu-badge-new.blade.php b/resources/views/components/layout/menu-badge-new.blade.php
new file mode 100644
index 00000000..ccba44f3
--- /dev/null
+++ b/resources/views/components/layout/menu-badge-new.blade.php
@@ -0,0 +1,3 @@
+
+ NEW
+
diff --git a/resources/views/components/layout/navigation.blade.php b/resources/views/components/layout/navigation.blade.php
deleted file mode 100644
index 7185ec69..00000000
--- a/resources/views/components/layout/navigation.blade.php
+++ /dev/null
@@ -1,249 +0,0 @@
-
diff --git a/resources/views/components/layout/navigation/index.blade.php b/resources/views/components/layout/navigation/index.blade.php
new file mode 100644
index 00000000..a1680175
--- /dev/null
+++ b/resources/views/components/layout/navigation/index.blade.php
@@ -0,0 +1,183 @@
+
diff --git a/resources/views/components/layout/navigation/link.blade.php b/resources/views/components/layout/navigation/link.blade.php
new file mode 100644
index 00000000..2dca46fe
--- /dev/null
+++ b/resources/views/components/layout/navigation/link.blade.php
@@ -0,0 +1,24 @@
+@props(['text' => null, 'href' => null, 'activated' => null, 'new' => false])
+
+@php
+ use Illuminate\Support\Facades\Route;
+
+ $activated ??= str($href)->contains(Route::current()->compiled->getStaticPrefix());
+@endphp
+
+class([
+ 'transition inline-flex items-center gap-x-2',
+ 'text-gray-500 dark:text-gray-400' => ! $activated,
+ 'text-pink-700 dark:text-pink-500' => $activated,
+ ]) }}>
+ @if ($activated)
+
+ @endif
+ {!! $text ?? $slot !!}
+ @if ($new)
+
+ NEW
+
+ @endif
+
diff --git a/resources/views/components/on-this-page.blade.php b/resources/views/components/on-this-page.blade.php
index 267c1f08..f7891670 100644
--- a/resources/views/components/on-this-page.blade.php
+++ b/resources/views/components/on-this-page.blade.php
@@ -1,5 +1,9 @@
@if (!empty($contents))
-
+
!$mobile,
+ 'pb-8' => $mobile,
+ ])>