@rark-ui/themes 1.1.0 → 1.2.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/.tsbuildinfo +1 -0
- package/package.json +5 -2
- 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":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/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":"5affb812d64953d20096726d745620bd950ac1e48b506fea0d84d9edd232b6e5","signature":"9c424ca8b5948e60e14e8702ea2e0ee3d53d72762ccf652b4098d25c9db16503"},{"version":"98f8d1a2af15433b8e37ac45ec21f909723b09074d6dd9e8c849ddd089567397","signature":"85543833f21f9731bb5ea73c39aebd3679bc8dfce7be495d5c1380742aa21783"},{"version":"bb08370de65db21b262a00a9eefc3dedbe4d4c2fa10328784b78cdfa0635ba42","signature":"5203eea845accd9f387050d0a7df7200b0167b1beb38e258730b51cf54bb9d9d"},{"version":"77b572a6b72eb4646ad0e750d33df099dc8965693b8f6364f074a4ddd542be4c","signature":"12f0612467b8cf8b2f0d98464612ca0eecd5650ad56586089c113aa68b3895c9"},{"version":"476d19357b6030ff9c6ebaf6be15c28aff4608be27e6dbb9caea80792e0d795c","signature":"d515018026b3e03ec49c60bc55b288a550b621f29fe0692395c7f459420bb290"},{"version":"24225a094db6d4cdd824ebf7e1d34dac16b526be8d8f73200ee63c1c00eb225d","signature":"4f1e9903822a3437ca72c8e274a5af1ff75281b8117fb1f530d0a924b305c86d"},{"version":"0898f56fce053c8afdcbd0b8596126a854e86e094e9dde87f3c982f41149648d","signature":"54251d0f9c1817b241963b816bee61cc9f7c0b3cc0a39c78b150cb3de303a3e7"},{"version":"3a345d18bdd523e6656cb40f2de3964aa91e258d01474957c0d5d1a7577a6375","signature":"06a02ccc29010768f3a5958533009bf3463b6e1c34582dec276b1032d539e380"},{"version":"d354d938e41475617987d6fa5239f938c2e64ccb35332aab51dbe72decfcf643","signature":"2d66e336a28c65aaaa1ef7925f6b8170f0f29b3f5d63b23849a3d9e56c11fe09"},{"version":"f207ca9b18549c24546c0caa02bb3cf3c03fd80232d05b52397f8a5c8ff6cd08","signature":"430798ca6389148aef76f7f481875bb489ebd61f83756e844ffb8a768828409a"},{"version":"2a1a279180801079f7c4574d27494f083cf511be60ad2cfc4ad6ba980b06c2d4","signature":"59c0d149aea5fbb2217331ca682780ab781decbf67f4def6380cc90385f4fae3"},{"version":"73fd0b90a67c4b8283b2ad980be909065d6f06006984330c8a2aff4643a7385e","signature":"ed6df8d7b3ceb8816c6f4dfe6f5731c7a3de0f14f06d5c0285ff16450af25ddd"},{"version":"f30fdd3ae8d59740edc752525c836eef9524859943417a320f0a547a0430fa51","signature":"f62ecb20f4864929103adb1b716a465d4d9f002f6d866c2fd68b1b94c61a6a60"},{"version":"fcc63a35cb00ecc352fe09ea66e3c5e0b328360bf5d9fd92b7c1dfa3ffbffc20","signature":"9c5810960da2bd66f5ad6705d5f284919daa87058b515bd939ffcceda0a69a87"},{"version":"55d1018a3fe1dc9ef6af8df462786a006f62f2674d5dccce9148f50af64c9dc3","signature":"451c21395cd794350220afa02174794847d2bcdda137922be511914e8aa36bae"},{"version":"79b547d0d54967b50c15f69563919b05f49d5eade2a331e0ac094827a95f7281","signature":"149967b6c6248ee134a1ad03e93b848113f4874a4919016756d431f90fff6fd2"},{"version":"d00f9840d0d160582517e07c3218370604977570b0a8764cef73fd0aa7768f27","signature":"bb1146722e70404bac0610c4a07392ebb773e4420613577b7a32c493bf457417"},{"version":"94e65aba3e0979aee9cfcf1d979a27e5eb159ad8cc72730f80b3ecfbbacaaaa8","signature":"8abb73587bdb0605f8bd2733f57981ae36f556a35b826d6a7b76c7d1c3fb86aa"},{"version":"1b7dd97fcc51cf3ed70a9eb205ffca741ecf083d1987565da0ba819a205c8625","signature":"7fae2776b0c66192d0276fedf7630fb6503ae3aa0463e229af19a97dfd0767dc"},{"version":"e62ae46e3f9343dc60d766442f48937c9fe7c411cd2e30287e06fb49cca4e05b","signature":"8c747ff9c224728e89d0d072c1bc9912383ddb7405d21d1fb76822080919038f"},{"version":"c0307697c90db0d82299bdcfdcf1462019c078592f26ab36aa66750db33ce5d8","signature":"f7126c2c75d445582e636722c88a3bc2c740de3d629ab668047d0ba10beeda22"},{"version":"f81f7532431df680e51fde0ae0628beed7b745aeb1358e57e22bce5d0202935a","signature":"5829434591401f50fea590605a61a836903ba58fd3bd99ebd8bb319c5fff55e4"},{"version":"8a2804405a5929a8ec490a62c78d0b60232779f12517bc069a944f724ff20182","signature":"103b42337d3840f72ec913c2d05b0d56293b7c058e69e930432f5bcf3f6c90f9"},{"version":"d26f88a4888e2075d7a9b4071f511b78fedaeb78ffa4f2b58943a72d81f46173","signature":"2cd71daef697a0249c1bf65d4c9d76244521cbb570d23e3f09f2302eaa0c8e42"},{"version":"a3878cbd402f8a49dd5d628687c9cf59c04b67c6ddb210cf5f30ee1e6b695ee0","signature":"c51d6cdb7fd230a2ef950934abbec875dc5435b5dc33294337d2b47d1733587c"},{"version":"6688e66f7a1dc509849b1487afbae3c6a0eb034f76522e6614b027cfefa843d6","signature":"9a1d11fcb04cf3b72aa9e58f98d1f5290078aaa7589c4ffa5fa67a6bf6c4d779"},{"version":"1d2bd350e82a23c4037f10c5f16df179774f66edb48d382ed2ed070a3f537c23","signature":"43f022d1de643cab7c0d47c38c547c0e114821f81ddb5b8b78480ae8eca2df9f"},{"version":"afa3d9efee64623a7208f0ed2fcb6b8a2fb75fbacd2908560299e00e11685f91","signature":"fc2eafc3edc1c7ffc6c01d7489d81a05d190e724b5c6538de3e5823f08aee1eb"},{"version":"a3eb29b79850cc07ab18be1efe341a75c45250a97e2288bc9d11179f14ce55ff","signature":"e9eac07ba939d4a2143e40b3696e1e607312974324d844d4d6cb00ce0d50fff5"},{"version":"ba53c4daab6c3b729e55a85524ab2fa3abf7196d078623b8e90e621a2797bda6","signature":"be8f8af0306c88fb658033c7743d0dd8fee2fda1e5c4040ab577915d91334d73"},{"version":"c33733eba21131e51b46a945ad743403cbac3728a92a45d83d9d5f2bdfeca99c","signature":"03bd76c6aeb08a9b0f55f080b3516217c86836c5bae209b2ac5aec44deae6785"},{"version":"de509c6756c46d75de5212e088f3609f5c79147ec2c3f7fac6e3f83345fc8708","signature":"642620a61c5f3b2e70c50a8bbb60294c2361ca1463fc8b3550f9fd5dc142571d"},{"version":"f02edd6e5e91148c39c09db99aacf0555db05faff8a014cc9b967470b35a8e5c","signature":"225b4630e9eb79258b9b60eb799385166ed43511a85a97d8a919e05540056e08"},{"version":"d37395ba3cc75b1a44657e93fa86ad2258f0841982041fa063d109d7431550fc","signature":"9051eda57df4f97c41bf5dd803d84ef30760de32653d4f400b6cf431412f8fe6"},{"version":"91336661680445d97527e2219911f5c8a84382c68e6ef8e9d68aef65d0477a7a","signature":"92bf2f596ccc3a29b985b5e950a809862140bb4f594081337b4bdb251fafb48f"},{"version":"bde50294ad5cecd11a3f1a6e04d7164a5575beceaa573ddde22dae095d9d277c","signature":"ccaca12138aee8a8a587debc5cb9e07cbf75c2557e01347fcb756a729c991e88"},{"version":"b8ec84e5845806e61be8253054f2aec0ccc97925ae24da111c0b393dd5a0e53d","signature":"f0fa5f1e86f0a5ebe041d3d0253e74fb54640dfe1cc5f7a9d4b50a6da9b3afb8"},{"version":"95a953990aff149ee92b374616b0aef158ed2a9956b50a8d9a125becb1cad18a","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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rark-ui/themes",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"packageManager": "pnpm@10.13.1",
|
|
6
6
|
"description": "Themes for Rark UI",
|
|
7
7
|
"author": "Hwacc(mshcccck@gmail.com)",
|
|
@@ -23,10 +23,13 @@
|
|
|
23
23
|
"default": "./dist/default/index.js"
|
|
24
24
|
},
|
|
25
25
|
"./razer/index.css": "./dist/razer/index.css",
|
|
26
|
+
"./razer/preset.css": "./src/razer/preset.css",
|
|
26
27
|
"./default/index.css": "./dist/default/index.css"
|
|
27
28
|
},
|
|
29
|
+
"module": "./dist/index.js",
|
|
28
30
|
"files": [
|
|
29
|
-
"dist"
|
|
31
|
+
"dist",
|
|
32
|
+
"src"
|
|
30
33
|
],
|
|
31
34
|
"scripts": {
|
|
32
35
|
"build": "bun run build.ts",
|
|
@@ -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>
|