@rark-ui/themes 1.1.0 → 1.2.1
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/.tsbuildinfo +1 -0
- package/dist/default/crafts/message.js +1 -1
- package/dist/default/crafts/toast.js +1 -1
- package/dist/razer/index.css +4 -4
- package/package.json +10 -8
- package/src/default/crafts/badge.ts +56 -0
- package/src/default/crafts/button.ts +68 -0
- package/src/default/crafts/checkbox.ts +75 -0
- package/src/default/crafts/collapsible.ts +61 -0
- package/src/default/crafts/date-picker.ts +261 -0
- package/src/default/crafts/dialog.ts +103 -0
- package/src/default/crafts/editable.ts +108 -0
- package/src/default/crafts/floating-panel.ts +71 -0
- package/src/default/crafts/hotkey.ts +24 -0
- package/src/default/crafts/hover-card.ts +83 -0
- package/src/default/crafts/icon.ts +15 -0
- package/src/default/crafts/index.ts +62 -0
- package/src/default/crafts/input.ts +50 -0
- package/src/default/crafts/menu.ts +118 -0
- package/src/default/crafts/message.ts +66 -0
- package/src/default/crafts/number-input.ts +51 -0
- package/src/default/crafts/pagination.ts +120 -0
- package/src/default/crafts/popover.ts +74 -0
- package/src/default/crafts/progress.ts +131 -0
- package/src/default/crafts/radio-group.ts +100 -0
- package/src/default/crafts/rating-group.ts +46 -0
- package/src/default/crafts/scroll-area.ts +116 -0
- package/src/default/crafts/select.ts +122 -0
- package/src/default/crafts/skeleton.ts +23 -0
- package/src/default/crafts/slider.ts +93 -0
- package/src/default/crafts/spin.ts +64 -0
- package/src/default/crafts/switch.ts +71 -0
- package/src/default/crafts/tabs.ts +122 -0
- package/src/default/crafts/tags-input.ts +81 -0
- package/src/default/crafts/toast.ts +70 -0
- package/src/default/crafts/toggle-group.ts +57 -0
- package/src/default/crafts/toggle.ts +34 -0
- package/src/default/crafts/tooltip.ts +63 -0
- package/src/default/crafts/tree.ts +165 -0
- package/src/default/index.css +3 -0
- package/src/default/index.ts +4 -0
- package/src/default/tailwind.config.ts +9 -0
- package/src/razer/components/arrow.css +20 -0
- package/src/razer/components/badge.css +13 -0
- package/src/razer/components/button.css +40 -0
- package/src/razer/components/checkbox.css +39 -0
- package/src/razer/components/collapsible.css +16 -0
- package/src/razer/components/date-picker.css +46 -0
- package/src/razer/components/dialog.css +29 -0
- package/src/razer/components/editable.css +27 -0
- package/src/razer/components/floating-panel.css +11 -0
- package/src/razer/components/hotkey.css +5 -0
- package/src/razer/components/hover-card.css +14 -0
- package/src/razer/components/input.css +29 -0
- package/src/razer/components/menu.css +47 -0
- package/src/razer/components/message.css +41 -0
- package/src/razer/components/number-input.css +9 -0
- package/src/razer/components/pagination.css +14 -0
- package/src/razer/components/popover.css +19 -0
- package/src/razer/components/progress.css +78 -0
- package/src/razer/components/radio-group.css +44 -0
- package/src/razer/components/rating-group.css +26 -0
- package/src/razer/components/scroll-area.css +14 -0
- package/src/razer/components/select.css +31 -0
- package/src/razer/components/skeleton.css +11 -0
- package/src/razer/components/slider.css +27 -0
- package/src/razer/components/spin.css +15 -0
- package/src/razer/components/switch.css +24 -0
- package/src/razer/components/tabs.css +11 -0
- package/src/razer/components/tags-input.css +16 -0
- package/src/razer/components/toast.css +41 -0
- package/src/razer/components/toggle-group.css +19 -0
- package/src/razer/components/toggle.css +17 -0
- package/src/razer/components/tooltip.css +16 -0
- package/src/razer/components/tree.css +19 -0
- package/src/razer/components/virtual.css +17 -0
- package/src/razer/components.css +33 -0
- package/src/razer/crafts/index.ts +16 -0
- package/src/razer/index.css +6 -0
- package/src/razer/index.ts +4 -0
- package/src/razer/preset.css +261 -0
- package/src/razer/tailwind.config.ts +10 -0
- package/src/shared/css/animation-easing.css +21 -0
- package/src/shared/css/animations.css +252 -0
- package/src/shared/css/index.css +2 -0
- package/src/shared/css/static.css +31 -0
- package/src/shared/utils/cn.ts +1 -0
- package/src/shared/utils/tv.ts +91 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es5.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.scripthost.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.es2020.full.d.ts","../node_modules/tailwind-merge/dist/types.d.ts","../node_modules/tailwind-variants/dist/config.d.ts","../node_modules/tailwind-variants/dist/types.d.ts","../node_modules/tailwind-variants/dist/index.d.ts","../src/shared/utils/cn.ts","../src/shared/utils/tv.ts","../src/default/crafts/badge.ts","../src/default/crafts/button.ts","../src/default/crafts/checkbox.ts","../src/default/crafts/collapsible.ts","../src/default/crafts/date-picker.ts","../src/default/crafts/dialog.ts","../src/default/crafts/input.ts","../src/default/crafts/editable.ts","../src/default/crafts/floating-panel.ts","../src/default/crafts/hotkey.ts","../src/default/crafts/hover-card.ts","../src/default/crafts/icon.ts","../src/default/crafts/menu.ts","../src/default/crafts/message.ts","../src/default/crafts/number-input.ts","../src/default/crafts/pagination.ts","../src/default/crafts/popover.ts","../src/default/crafts/progress.ts","../src/default/crafts/radio-group.ts","../src/default/crafts/rating-group.ts","../src/default/crafts/scroll-area.ts","../src/default/crafts/select.ts","../src/default/crafts/skeleton.ts","../src/default/crafts/slider.ts","../src/default/crafts/spin.ts","../src/default/crafts/switch.ts","../src/default/crafts/tabs.ts","../src/default/crafts/tags-input.ts","../src/default/crafts/toast.ts","../src/default/crafts/toggle.ts","../src/default/crafts/toggle-group.ts","../src/default/crafts/tooltip.ts","../src/default/crafts/tree.ts","../src/default/crafts/index.ts","../src/default/index.ts","../src/razer/crafts/index.ts","../src/razer/index.ts"],"fileIdsList":[[52],[53,54],[52,53],[57],[57,64],[58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90],[56,57,91],[56,57,93],[55]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"1305d1e76ca44e30fb8b2b8075fa522b83f60c0bcf5d4326a9d2cf79b53724f8","impliedFormat":1},{"version":"51954e948be6a5b728fcfaf561f12331b4f54f068934c77adfc8f70eea17d285","impliedFormat":1},{"version":"18443cbae1d44789ab133e1e4e443796bbe2d9c7eeb469747b239677915d0ae9","impliedFormat":99},{"version":"ea979cd7b2700d8fd993b68f3bc04ebe1b53d242161af9f71860889ea32e4b9a","impliedFormat":99},{"version":"59e3b57a4d02faf2c6aea0de70996bfc3702a18d8f44cc13ed3f236ccdafacbe","impliedFormat":99},{"version":"4c25ad4dba0f9fd3e3aee76ce9c87b2cdf27da3f9b4d3f9d1d8100f30f061b0d","signature":"875e07e21d3d7733b0e366e9c8dbf4760e07c0d1653ae4b60350b1457ef2611b"},{"version":"15f06b05afc616c4050c9f55daba1efa8f768da943b008cb14de71a70141c96c","signature":"9c424ca8b5948e60e14e8702ea2e0ee3d53d72762ccf652b4098d25c9db16503"},{"version":"cbc10ae2f2886f93e43969dae5944e7ca19d61e771a278c9f582eedfa1797ae6","signature":"85543833f21f9731bb5ea73c39aebd3679bc8dfce7be495d5c1380742aa21783"},{"version":"366d36af278fa09cded7bcc5df016994652fdc16a7b8da09be65c9e6391ea0ef","signature":"5203eea845accd9f387050d0a7df7200b0167b1beb38e258730b51cf54bb9d9d"},{"version":"aa7df2316f7ce1c99f2aa3f3c285f8e1cc352397301e83f556b7e3ba2319c0ee","signature":"12f0612467b8cf8b2f0d98464612ca0eecd5650ad56586089c113aa68b3895c9"},{"version":"052f17de349e6148784027761c5a37c9a4231f1117765060c370943ffda1aae4","signature":"d515018026b3e03ec49c60bc55b288a550b621f29fe0692395c7f459420bb290"},{"version":"0a682c8504250354f62b0b81d91525e5836b38e8f79db9816665f524c308974e","signature":"4f1e9903822a3437ca72c8e274a5af1ff75281b8117fb1f530d0a924b305c86d"},{"version":"0c998fc3daa27f86a8edf41034b74b574daefdadfa1cd7906c91aaffda117a7c","signature":"54251d0f9c1817b241963b816bee61cc9f7c0b3cc0a39c78b150cb3de303a3e7"},{"version":"a188a035a862db5bcaea4276cc7116a68c58ddec3278bf9538bfd2888f02f071","signature":"06a02ccc29010768f3a5958533009bf3463b6e1c34582dec276b1032d539e380"},{"version":"c2073749384bd98dbfc94cdb761391a90d078de66b481c51441339c0c7a257d9","signature":"2d66e336a28c65aaaa1ef7925f6b8170f0f29b3f5d63b23849a3d9e56c11fe09"},{"version":"a81c27f6914406ee8218fffd25e108459f1ce77241ee56a25ecfaaab95f52f2c","signature":"430798ca6389148aef76f7f481875bb489ebd61f83756e844ffb8a768828409a"},{"version":"91994ea1e69c8e4bf4169d6e4ae6ea40d41dfecd32b7d5d9cf3b4fd38289b8a2","signature":"59c0d149aea5fbb2217331ca682780ab781decbf67f4def6380cc90385f4fae3"},{"version":"d3497b90948a1f334b22257138d8c526aa1de1b7cd960c4cecb82c6560d1e6d5","signature":"ed6df8d7b3ceb8816c6f4dfe6f5731c7a3de0f14f06d5c0285ff16450af25ddd"},{"version":"99ddc07bed1b8e8d108f4f1649ca170840ab78acf076c0c4d7865a474746b7d8","signature":"f62ecb20f4864929103adb1b716a465d4d9f002f6d866c2fd68b1b94c61a6a60"},{"version":"aefda30a355bf5522b0fe29d293f4c9c754722cbe6cd9aa5808afe445308b109","signature":"9c5810960da2bd66f5ad6705d5f284919daa87058b515bd939ffcceda0a69a87"},{"version":"924418a7fb9f65fb97cd4772a926768d8eb4b582d599035e5ace09ec372d4f8f","signature":"451c21395cd794350220afa02174794847d2bcdda137922be511914e8aa36bae"},{"version":"839d8aea50bf966c8fe6da7d5efbca39e5b0bc2976ad7939a607dbdb3e342f76","signature":"149967b6c6248ee134a1ad03e93b848113f4874a4919016756d431f90fff6fd2"},{"version":"86199788473cd2eac04d1cc7a56a154e3b35ac2f6b314531d3e6b99bb865561d","signature":"bb1146722e70404bac0610c4a07392ebb773e4420613577b7a32c493bf457417"},{"version":"253cf9d8ec4fdfaac1e0fd7ff8413518d046831fdfd14a47ccb15d157216d28e","signature":"8abb73587bdb0605f8bd2733f57981ae36f556a35b826d6a7b76c7d1c3fb86aa"},{"version":"0ab9a5b9e775c9fb3e584de5f9e37b4c785e5fc3269eed45dda5e8dc6cbf0776","signature":"7fae2776b0c66192d0276fedf7630fb6503ae3aa0463e229af19a97dfd0767dc"},{"version":"edfed907e5243e9e778d206bfcb2afd81a454107ba19dec68515fe919f139897","signature":"8c747ff9c224728e89d0d072c1bc9912383ddb7405d21d1fb76822080919038f"},{"version":"46746fcf061c99dfa1b873346fca25dd7e393214fe01b5d158348ec3617be163","signature":"f7126c2c75d445582e636722c88a3bc2c740de3d629ab668047d0ba10beeda22"},{"version":"1713cc354ab8b86fc27871b3cb012a6667592be5c09c062d9a0e3f5534bce929","signature":"5829434591401f50fea590605a61a836903ba58fd3bd99ebd8bb319c5fff55e4"},{"version":"9cc6230d81cefd140dc31e019b47f124fd472a129165f27078f460186dd2becc","signature":"103b42337d3840f72ec913c2d05b0d56293b7c058e69e930432f5bcf3f6c90f9"},{"version":"022761b7b11795f3e3a4c8a645b2526811dc1049ce8c57400cdbb176cf2258f9","signature":"2cd71daef697a0249c1bf65d4c9d76244521cbb570d23e3f09f2302eaa0c8e42"},{"version":"1dfa7b83d01d2bc5625c3bf7ba16a6657b2bfdc0cb0fdcdcc5d96c496fde282f","signature":"c51d6cdb7fd230a2ef950934abbec875dc5435b5dc33294337d2b47d1733587c"},{"version":"7a451aefc2f14a076297d7b4183f1cbb8d27de10ddba5456ec8eaf562eb6884c","signature":"9a1d11fcb04cf3b72aa9e58f98d1f5290078aaa7589c4ffa5fa67a6bf6c4d779"},{"version":"7c60a0c15665476d3fd8ee739fda6169b7cd00e8232a38003db8605388d0395e","signature":"43f022d1de643cab7c0d47c38c547c0e114821f81ddb5b8b78480ae8eca2df9f"},{"version":"7c3cf6e7ec16bad53143a87374621d7a03e5e25f1324ef100fc27f0b260aa6b3","signature":"fc2eafc3edc1c7ffc6c01d7489d81a05d190e724b5c6538de3e5823f08aee1eb"},{"version":"990d4f2c518f736190b45a1ef12dcd52cfb6f5ab5b4cd0f975fb872d181d7cde","signature":"e9eac07ba939d4a2143e40b3696e1e607312974324d844d4d6cb00ce0d50fff5"},{"version":"77184a6f5e32f84ec4f1a86b0eb28afa30060f34000682e2c4e7f68481131040","signature":"be8f8af0306c88fb658033c7743d0dd8fee2fda1e5c4040ab577915d91334d73"},{"version":"70b3878b9f563199250d9561de11cbc136979a0a5b85c52698c73a1f7b6fc6db","signature":"03bd76c6aeb08a9b0f55f080b3516217c86836c5bae209b2ac5aec44deae6785"},{"version":"dc383996da1a7a6f7256a6640c4562491c5cc8b9a9b589507f649123b2517e4f","signature":"642620a61c5f3b2e70c50a8bbb60294c2361ca1463fc8b3550f9fd5dc142571d"},{"version":"7f69be1dafc01718c26611b1be4fd1c9e72b93a9d458bd23a50c2d930dfcc07b","signature":"225b4630e9eb79258b9b60eb799385166ed43511a85a97d8a919e05540056e08"},{"version":"20e175ac2dd8ae23398d2428411ebea8848d46b3b0d01c26f2263eba919e5b6e","signature":"9051eda57df4f97c41bf5dd803d84ef30760de32653d4f400b6cf431412f8fe6"},{"version":"49ff88654556808da4b355db2ef3cfd67ba6856b4672e86b9aefebb4d3b0637c","signature":"92bf2f596ccc3a29b985b5e950a809862140bb4f594081337b4bdb251fafb48f"},{"version":"dcf49fbb1cc4cc10ea93a2a1848383112a8980f6800cd85591363499dd5d7d26","signature":"ccaca12138aee8a8a587debc5cb9e07cbf75c2557e01347fcb756a729c991e88"},{"version":"b44fbfd46ed94ff815752163dd5740014369e2569a8bae7b842decab50056cb9","signature":"f0fa5f1e86f0a5ebe041d3d0253e74fb54640dfe1cc5f7a9d4b50a6da9b3afb8"},{"version":"e95af0f6002b604575ed823484fce8bec412c71ebea37a248c0d3c5ac63980cc","signature":"601fa3c1f7e4b600d7901b806d9985d9e211946af83ff7a46b1cb885ba89242b"}],"root":[[56,94]],"options":{"composite":true,"declaration":true,"declarationMap":false,"module":99,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":false,"strict":true,"target":7,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[53,1],[55,2],[54,3],[58,4],[59,4],[60,4],[61,4],[62,4],[63,4],[65,5],[66,4],[67,5],[68,4],[69,4],[91,6],[64,4],[70,4],[71,4],[72,4],[73,4],[74,4],[75,4],[76,4],[77,4],[78,4],[79,4],[80,4],[81,4],[82,4],[83,4],[84,4],[85,4],[86,4],[88,4],[87,4],[89,4],[90,4],[92,7],[94,8],[56,9],[57,9]],"latestChangedDtsFile":"./razer/index.d.ts","version":"5.9.3"}
|
package/dist/razer/index.css
CHANGED
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
--radius: 0.125rem;
|
|
35
35
|
--tw-duration: var(--motion-duration);
|
|
36
36
|
--tw-timing: var(--motion-timing);
|
|
37
|
-
--animate-collapsible-down: collapsible-down var(--tw-duration, 200ms)
|
|
37
|
+
--animate-collapsible-down: collapsible-down var(--tw-duration, 200ms)
|
|
38
38
|
var(--tw-timing, ease-in-out);
|
|
39
|
-
--animate-collapsible-up: collapsible-up var(--tw-duration, 200ms)
|
|
39
|
+
--animate-collapsible-up: collapsible-up var(--tw-duration, 200ms)
|
|
40
40
|
var(--tw-timing, ease-in-out);
|
|
41
41
|
--animate-rippling: rippling var(--tw-ripple-duration, 600ms) ease-out;
|
|
42
|
-
--animate-backdrop-blur-in: backdrop-blur-in var(--tw-duration, 200ms)
|
|
42
|
+
--animate-backdrop-blur-in: backdrop-blur-in var(--tw-duration, 200ms)
|
|
43
43
|
var(--tw-timing, ease-out) forwards;
|
|
44
|
-
--animate-backdrop-blur-out: backdrop-blur-out var(--tw-duration, 200ms)
|
|
44
|
+
--animate-backdrop-blur-out: backdrop-blur-out var(--tw-duration, 200ms)
|
|
45
45
|
var(--tw-timing, ease-out) forwards;
|
|
46
46
|
--z-base: 0;
|
|
47
47
|
--z-sticky: 10;
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rark-ui/themes",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1
|
|
5
|
-
"packageManager": "pnpm@10.13.1",
|
|
4
|
+
"version": "1.2.1",
|
|
6
5
|
"description": "Themes for Rark UI",
|
|
7
6
|
"author": "Hwacc(mshcccck@gmail.com)",
|
|
8
7
|
"license": "MIT",
|
|
@@ -23,15 +22,14 @@
|
|
|
23
22
|
"default": "./dist/default/index.js"
|
|
24
23
|
},
|
|
25
24
|
"./razer/index.css": "./dist/razer/index.css",
|
|
25
|
+
"./razer/preset.css": "./src/razer/preset.css",
|
|
26
26
|
"./default/index.css": "./dist/default/index.css"
|
|
27
27
|
},
|
|
28
|
+
"module": "./dist/index.js",
|
|
28
29
|
"files": [
|
|
29
|
-
"dist"
|
|
30
|
+
"dist",
|
|
31
|
+
"src"
|
|
30
32
|
],
|
|
31
|
-
"scripts": {
|
|
32
|
-
"build": "bun run build.ts",
|
|
33
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
34
|
-
},
|
|
35
33
|
"dependencies": {
|
|
36
34
|
"tailwind-merge": "^3.4.0",
|
|
37
35
|
"tailwind-variants": "^3.2.2"
|
|
@@ -44,5 +42,9 @@
|
|
|
44
42
|
},
|
|
45
43
|
"publishConfig": {
|
|
46
44
|
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "bun run build.ts",
|
|
48
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
47
49
|
}
|
|
48
|
-
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { VariantProps } from '../../shared/utils/tv'
|
|
2
|
+
import { tv } from '../../shared/utils/tv'
|
|
3
|
+
|
|
4
|
+
const prefix = 'rui-badge'
|
|
5
|
+
|
|
6
|
+
export const tvBadge = tv(
|
|
7
|
+
{
|
|
8
|
+
base: [
|
|
9
|
+
'inline-flex',
|
|
10
|
+
'items-center',
|
|
11
|
+
'rounded',
|
|
12
|
+
'uppercase',
|
|
13
|
+
'outline-none',
|
|
14
|
+
'transition-colors',
|
|
15
|
+
],
|
|
16
|
+
variants: {
|
|
17
|
+
variant: {
|
|
18
|
+
default: '',
|
|
19
|
+
secondary: '',
|
|
20
|
+
dot: ['rounded-full', '-top-[.5em]', '-right-[.5em]'],
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
xs: ['text-3xs', 'py-0.25', 'px-1'],
|
|
24
|
+
sm: ['text-2xs', 'py-0.25', 'px-1'],
|
|
25
|
+
base: ['text-xs', 'py-0.5', 'px-1.25'],
|
|
26
|
+
lg: ['text-sm', 'py-0.5', 'px-1.5'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
variant: 'default',
|
|
31
|
+
size: 'base',
|
|
32
|
+
},
|
|
33
|
+
compoundVariants: [
|
|
34
|
+
{
|
|
35
|
+
variant: 'dot',
|
|
36
|
+
size: 'base',
|
|
37
|
+
class: ['p-0', 'size-[.375rem]'],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
variant: 'dot',
|
|
41
|
+
size: 'sm',
|
|
42
|
+
class: ['p-0', 'size-[.25rem]'],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
variant: 'dot',
|
|
46
|
+
size: 'lg',
|
|
47
|
+
class: ['p-0', 'size-[.5rem]'],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
class: prefix,
|
|
53
|
+
},
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
export type BadgeVariants = VariantProps<typeof tvBadge>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { VariantProps } from '../../shared/utils/tv'
|
|
2
|
+
import { tv } from '../../shared/utils/tv'
|
|
3
|
+
|
|
4
|
+
const prefix = 'rui-btn'
|
|
5
|
+
|
|
6
|
+
export const tvButton = tv(
|
|
7
|
+
{
|
|
8
|
+
slots: {
|
|
9
|
+
root: [
|
|
10
|
+
'inline-flex',
|
|
11
|
+
'items-center',
|
|
12
|
+
'justify-center',
|
|
13
|
+
'rounded',
|
|
14
|
+
'border',
|
|
15
|
+
'transition-all',
|
|
16
|
+
'disabled:pointer-events-none',
|
|
17
|
+
'disabled:opacity-(--disabled-opacity)',
|
|
18
|
+
'[&_svg]:pointer-events-none',
|
|
19
|
+
'[&_svg]:shrink-0',
|
|
20
|
+
],
|
|
21
|
+
loading: 'size-[1lh] animate-spin',
|
|
22
|
+
},
|
|
23
|
+
variants: {
|
|
24
|
+
variant: {
|
|
25
|
+
default: '',
|
|
26
|
+
normal: '',
|
|
27
|
+
outline: '',
|
|
28
|
+
text: '',
|
|
29
|
+
icon: {
|
|
30
|
+
root: ['p-0', 'aspect-square', 'border-none'],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
size: {
|
|
34
|
+
xs: {
|
|
35
|
+
root: 'h-6 px-3 gap-1.5 text-xs',
|
|
36
|
+
},
|
|
37
|
+
sm: {
|
|
38
|
+
root: 'h-7 px-4 gap-2 text-sm',
|
|
39
|
+
},
|
|
40
|
+
base: {
|
|
41
|
+
root: 'h-8 px-5 gap-2.5 text-base',
|
|
42
|
+
},
|
|
43
|
+
lg: {
|
|
44
|
+
root: 'h-9 px-6 gap-3 text-lg',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
loading: {
|
|
48
|
+
true: {
|
|
49
|
+
root: 'pointer-events-none',
|
|
50
|
+
},
|
|
51
|
+
false: '',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
defaultVariants: {
|
|
55
|
+
variant: 'default',
|
|
56
|
+
size: 'base',
|
|
57
|
+
loading: false,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
slots: {
|
|
62
|
+
root: prefix,
|
|
63
|
+
loading: `${prefix}-loading`,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
export type ButtonVariants = VariantProps<typeof tvButton>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { VariantProps } from '../../shared/utils/tv'
|
|
2
|
+
import { tv } from '../../shared/utils/tv'
|
|
3
|
+
|
|
4
|
+
const prefix = 'rui-checkbox'
|
|
5
|
+
|
|
6
|
+
export const tvCheckbox = tv({
|
|
7
|
+
slots: {
|
|
8
|
+
root: ['flex', 'items-center', 'gap-2.5', 'w-fit'],
|
|
9
|
+
control: ['peer', 'shrink-0', 'rounded-xs', 'border'],
|
|
10
|
+
indicator: ['flex', 'h-full', 'w-full', 'items-center', 'justify-center', 'text-inherit'],
|
|
11
|
+
indicatorChecked: 'size-[0.875lh] stroke-black stroke-[.125rem] [&>path]:animate-check-dash',
|
|
12
|
+
indicatorMinus: 'size-[0.875lh] stroke-black stroke-[.125rem] [&_path]:animate-indeterminate-dash',
|
|
13
|
+
label: '',
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
disabled: {
|
|
17
|
+
true: '',
|
|
18
|
+
false: '',
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
xs: '',
|
|
22
|
+
sm: '',
|
|
23
|
+
base: '',
|
|
24
|
+
lg: '',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
size: 'base',
|
|
29
|
+
},
|
|
30
|
+
compoundVariants: [
|
|
31
|
+
{
|
|
32
|
+
size: 'xs',
|
|
33
|
+
class: {
|
|
34
|
+
control: 'size-3.5',
|
|
35
|
+
label: 'text-xs',
|
|
36
|
+
indicator: 'text-xs',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
size: 'sm',
|
|
41
|
+
class: {
|
|
42
|
+
control: 'size-4',
|
|
43
|
+
label: 'text-sm',
|
|
44
|
+
indicator: 'text-sm',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
size: 'base',
|
|
49
|
+
class: {
|
|
50
|
+
control: 'size-4.5',
|
|
51
|
+
label: 'text-base',
|
|
52
|
+
indicator: 'text-base',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
size: 'lg',
|
|
57
|
+
class: {
|
|
58
|
+
control: 'size-5',
|
|
59
|
+
label: 'text-lg',
|
|
60
|
+
indicator: 'text-lg',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
}, {
|
|
65
|
+
slots: {
|
|
66
|
+
root: prefix,
|
|
67
|
+
control: `${prefix}-control`,
|
|
68
|
+
indicator: `${prefix}-indicator`,
|
|
69
|
+
indicatorChecked: `${prefix}-indicator-checked`,
|
|
70
|
+
indicatorMinus: `${prefix}-indicator-minus`,
|
|
71
|
+
label: `${prefix}-label`,
|
|
72
|
+
},
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
export type CheckboxVariants = VariantProps<typeof tvCheckbox>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { VariantProps } from '../../shared/utils/tv'
|
|
2
|
+
import { tv } from '../../shared/utils/tv'
|
|
3
|
+
|
|
4
|
+
const prefix = 'rui-collapsible'
|
|
5
|
+
|
|
6
|
+
export const tvCollapsible = tv({
|
|
7
|
+
slots: {
|
|
8
|
+
root: [],
|
|
9
|
+
trigger: ['w-fit flex items-center'],
|
|
10
|
+
indicator: [
|
|
11
|
+
'data-[state=closed]:rotate-0',
|
|
12
|
+
'data-[state=open]:rotate-180',
|
|
13
|
+
'transition-transform',
|
|
14
|
+
],
|
|
15
|
+
content: [
|
|
16
|
+
'overflow-hidden',
|
|
17
|
+
'data-[state=open]:animate-collapsible-down',
|
|
18
|
+
'data-[state=closed]:animate-collapsible-up',
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
variants: {
|
|
22
|
+
size: {
|
|
23
|
+
xs: {
|
|
24
|
+
trigger: ['text-xs gap-3'],
|
|
25
|
+
},
|
|
26
|
+
sm: {
|
|
27
|
+
trigger: ['text-sm gap-4'],
|
|
28
|
+
},
|
|
29
|
+
base: {
|
|
30
|
+
trigger: ['text-base gap-4.5'],
|
|
31
|
+
},
|
|
32
|
+
lg: {
|
|
33
|
+
trigger: ['text-lg gap-5'],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
}, {
|
|
38
|
+
slots: {
|
|
39
|
+
root: prefix,
|
|
40
|
+
trigger: `${prefix}-trigger`,
|
|
41
|
+
indicator: `${prefix}-trigger-indicator`,
|
|
42
|
+
content: `${prefix}-content`,
|
|
43
|
+
},
|
|
44
|
+
})
|
|
45
|
+
export type CollapsibleVariants = VariantProps<typeof tvCollapsible>
|
|
46
|
+
|
|
47
|
+
const readMorePrefix = 'rui-readmore'
|
|
48
|
+
export const tvReadMore = tv({
|
|
49
|
+
slots: {
|
|
50
|
+
root: [],
|
|
51
|
+
content: [],
|
|
52
|
+
trigger: [],
|
|
53
|
+
},
|
|
54
|
+
}, {
|
|
55
|
+
slots: {
|
|
56
|
+
root: readMorePrefix,
|
|
57
|
+
content: `${readMorePrefix}-content`,
|
|
58
|
+
trigger: `${readMorePrefix}-trigger`,
|
|
59
|
+
},
|
|
60
|
+
})
|
|
61
|
+
export type ReadMoreVariants = VariantProps<typeof tvReadMore>
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import type { VariantProps } from '../../shared/utils/tv'
|
|
2
|
+
import { tv } from '../../shared/utils/tv'
|
|
3
|
+
|
|
4
|
+
const prefix = 'rui-date-picker'
|
|
5
|
+
|
|
6
|
+
export const tvDatePicker = tv(
|
|
7
|
+
{
|
|
8
|
+
slots: {
|
|
9
|
+
root: '',
|
|
10
|
+
control: ['flex', 'items-center', 'gap-2', 'w-fit'],
|
|
11
|
+
content: [
|
|
12
|
+
'group/content',
|
|
13
|
+
'relative',
|
|
14
|
+
'z-auto',
|
|
15
|
+
'min-w-(--reference-width)',
|
|
16
|
+
'rounded',
|
|
17
|
+
'p-0',
|
|
18
|
+
'z-(--z-popover)',
|
|
19
|
+
'data-[state=open]:motion-opacity-in',
|
|
20
|
+
'data-[state=open]:motion-scale-in-95',
|
|
21
|
+
'data-[state=open]:data-[placement^=bottom]:motion-translate-y-in-[.25rem]',
|
|
22
|
+
'data-[state=open]:data-[placement^=top]:-motion-translate-y-in-[.25rem]',
|
|
23
|
+
'data-[state=open]:data-[placement^=left]:-motion-translate-x-in-[.25rem]',
|
|
24
|
+
'data-[state=open]:data-[placement^=right]:motion-translate-x-in-[.25rem]',
|
|
25
|
+
'data-[state=closed]:motion-opacity-out',
|
|
26
|
+
'data-[state=closed]:motion-scale-out-95',
|
|
27
|
+
'data-[state=closed]:data-[placement^=bottom]:motion-translate-y-out-[.25rem]',
|
|
28
|
+
'data-[state=closed]:data-[placement^=top]:-motion-translate-y-out-[.25rem]',
|
|
29
|
+
'data-[state=closed]:data-[placement^=left]:-motion-translate-x-out-[.25rem]',
|
|
30
|
+
'data-[state=closed]:data-[placement^=right]:motion-translate-x-out-[.25rem]',
|
|
31
|
+
],
|
|
32
|
+
contentInner: '',
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
variants: {
|
|
36
|
+
size: {
|
|
37
|
+
xs: {
|
|
38
|
+
contentInner: 'px-1.5 py-1',
|
|
39
|
+
},
|
|
40
|
+
sm: {
|
|
41
|
+
contentInner: 'px-2 py-1.5',
|
|
42
|
+
},
|
|
43
|
+
base: {
|
|
44
|
+
contentInner: 'px-2.5 py-1.5',
|
|
45
|
+
},
|
|
46
|
+
lg: {
|
|
47
|
+
contentInner: 'px-3 py-2',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
bordered: {
|
|
51
|
+
true: {
|
|
52
|
+
content: 'border',
|
|
53
|
+
},
|
|
54
|
+
false: '',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
slots: {
|
|
60
|
+
root: `${prefix}`,
|
|
61
|
+
control: `${prefix}-control`,
|
|
62
|
+
content: `${prefix}-content`,
|
|
63
|
+
contentInner: `${prefix}-content-inner`,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
export type DatePickerVariants = VariantProps<typeof tvDatePicker>
|
|
69
|
+
|
|
70
|
+
export const tvDatePickerView = tv(
|
|
71
|
+
{
|
|
72
|
+
slots: {
|
|
73
|
+
view: 'flex flex-col gap-2',
|
|
74
|
+
viewControl: ['flex', 'items-center', 'justify-between', 'w-full'],
|
|
75
|
+
viewControlTrigger: '',
|
|
76
|
+
viewTrigger: 'rounded',
|
|
77
|
+
table: 'grid gap-2',
|
|
78
|
+
tableHead: 'grid',
|
|
79
|
+
tableHeader: 'block text-center truncate uppercase',
|
|
80
|
+
tableBody: 'grid',
|
|
81
|
+
tableCell: '',
|
|
82
|
+
tableCellTrigger: [
|
|
83
|
+
'relative',
|
|
84
|
+
'flex',
|
|
85
|
+
'items-center',
|
|
86
|
+
'justify-center',
|
|
87
|
+
'size-full',
|
|
88
|
+
'cursor-default',
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
variants: {
|
|
92
|
+
size: {
|
|
93
|
+
xs: {
|
|
94
|
+
view: 'text-xs',
|
|
95
|
+
viewControl: '',
|
|
96
|
+
viewControlTrigger: 'box-content p-1.5',
|
|
97
|
+
viewTrigger: 'text-xs h-6 px-1.5',
|
|
98
|
+
tableHeader: 'w-6 text-xxs',
|
|
99
|
+
},
|
|
100
|
+
sm: {
|
|
101
|
+
view: 'text-sm',
|
|
102
|
+
viewControl: '',
|
|
103
|
+
viewControlTrigger: 'box-content p-2',
|
|
104
|
+
viewTrigger: 'text-sm h-8 px-2',
|
|
105
|
+
tableHeader: 'w-8 text-xs',
|
|
106
|
+
},
|
|
107
|
+
base: {
|
|
108
|
+
view: 'text-base',
|
|
109
|
+
viewControl: '',
|
|
110
|
+
viewControlTrigger: 'box-content p-2.5',
|
|
111
|
+
viewTrigger: 'text-base h-9.5 px-2.5',
|
|
112
|
+
tableHeader: 'w-10 text-sm',
|
|
113
|
+
},
|
|
114
|
+
lg: {
|
|
115
|
+
view: 'text-lg',
|
|
116
|
+
viewControl: '',
|
|
117
|
+
viewControlTrigger: 'box-content p-3',
|
|
118
|
+
viewTrigger: 'text-lg h-10 px-3',
|
|
119
|
+
tableHeader: 'w-12 text-base',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
view: {
|
|
124
|
+
day: {
|
|
125
|
+
tableHead: 'grid-cols-7',
|
|
126
|
+
tableBody: 'grid-cols-7',
|
|
127
|
+
tableCell: 'aspect-square',
|
|
128
|
+
},
|
|
129
|
+
month: {
|
|
130
|
+
tableBody: 'grid-cols-4',
|
|
131
|
+
tableCell: 'aspect-[16/9]',
|
|
132
|
+
},
|
|
133
|
+
year: {
|
|
134
|
+
tableBody: 'grid-cols-4',
|
|
135
|
+
tableCell: 'aspect-[16/9]',
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
selected: {
|
|
140
|
+
true: {
|
|
141
|
+
tableCellTrigger: 'rounded',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
inRange: {
|
|
146
|
+
true: {
|
|
147
|
+
tableCellTrigger: 'rounded-none',
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
firstInRange: {
|
|
151
|
+
true: {
|
|
152
|
+
tableCellTrigger: 'rounded-tl rounded-bl',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
firstInHoveredRange: {
|
|
156
|
+
true: {
|
|
157
|
+
tableCellTrigger: 'rounded-tl rounded-bl',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
lastInRange: {
|
|
161
|
+
true: {
|
|
162
|
+
tableCellTrigger: 'rounded-br rounded-tr',
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
lastInHoveredRange: {
|
|
166
|
+
true: {
|
|
167
|
+
tableCellTrigger: 'rounded-br rounded-tr',
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
today: {
|
|
171
|
+
true: {
|
|
172
|
+
tableCellTrigger: [
|
|
173
|
+
'after:content-[""]',
|
|
174
|
+
'after:absolute',
|
|
175
|
+
'after:top-0',
|
|
176
|
+
'after:right-0',
|
|
177
|
+
'after:rounded-full',
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
compoundVariants: [
|
|
184
|
+
{
|
|
185
|
+
size: 'xs',
|
|
186
|
+
view: ['month', 'year'],
|
|
187
|
+
class: {
|
|
188
|
+
tableCell: 'w-12',
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
size: 'sm',
|
|
193
|
+
view: ['month', 'year'],
|
|
194
|
+
class: {
|
|
195
|
+
tableCell: 'w-14',
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
size: 'base',
|
|
200
|
+
view: ['month', 'year'],
|
|
201
|
+
class: {
|
|
202
|
+
tableCell: 'w-16',
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
size: 'lg',
|
|
207
|
+
view: ['month', 'year'],
|
|
208
|
+
class: {
|
|
209
|
+
tableCell: 'w-18',
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
today: true,
|
|
214
|
+
size: 'xs',
|
|
215
|
+
class: {
|
|
216
|
+
tableCellTrigger: 'after:w-1.25 after:h-1.25',
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
today: true,
|
|
221
|
+
size: 'sm',
|
|
222
|
+
class: {
|
|
223
|
+
tableCellTrigger: 'after:w-1.5 after:h-1.5',
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
today: true,
|
|
228
|
+
size: 'base',
|
|
229
|
+
class: {
|
|
230
|
+
tableCellTrigger: 'after:w-1.75 after:h-1.75',
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
today: true,
|
|
235
|
+
size: 'lg',
|
|
236
|
+
class: {
|
|
237
|
+
tableCellTrigger: 'after:w-2 after:h-2',
|
|
238
|
+
},
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
defaultVariants: {
|
|
242
|
+
size: 'base',
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
slots: {
|
|
247
|
+
view: `${prefix}-view`,
|
|
248
|
+
viewControl: `${prefix}-view-control`,
|
|
249
|
+
viewTrigger: `${prefix}-view-trigger`,
|
|
250
|
+
viewControlTrigger: `${prefix}-view-control-trigger`,
|
|
251
|
+
table: `${prefix}-table`,
|
|
252
|
+
tableHead: `${prefix}-table-head`,
|
|
253
|
+
tableHeader: `${prefix}-table-header`,
|
|
254
|
+
tableBody: `${prefix}-table-body`,
|
|
255
|
+
tableCell: `${prefix}-table-cell`,
|
|
256
|
+
tableCellTrigger: `${prefix}-table-cell-trigger`,
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
)
|
|
260
|
+
|
|
261
|
+
export type DatePickerViewVariants = VariantProps<typeof tvDatePickerView>
|