@parto-system-design/ui 1.1.11 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/brand/parto-logo.cjs +130 -0
- package/dist/components/brand/parto-logo.cjs.map +1 -0
- package/dist/components/brand/parto-logo.d.cts +38 -0
- package/dist/components/brand/parto-logo.d.ts +38 -0
- package/dist/components/brand/parto-logo.js +108 -0
- package/dist/components/brand/parto-logo.js.map +1 -0
- package/dist/components/charts/PartoAreaChart.cjs +579 -7
- package/dist/components/charts/PartoAreaChart.cjs.map +1 -1
- package/dist/components/charts/PartoAreaChart.js +564 -4
- package/dist/components/charts/PartoAreaChart.js.map +1 -1
- package/dist/components/charts/PartoBarChart.cjs +616 -7
- package/dist/components/charts/PartoBarChart.cjs.map +1 -1
- package/dist/components/charts/PartoBarChart.js +601 -4
- package/dist/components/charts/PartoBarChart.js.map +1 -1
- package/dist/components/charts/PartoLineChart.cjs +584 -7
- package/dist/components/charts/PartoLineChart.cjs.map +1 -1
- package/dist/components/charts/PartoLineChart.js +569 -4
- package/dist/components/charts/PartoLineChart.js.map +1 -1
- package/dist/components/charts/PartoPieChart.cjs +566 -7
- package/dist/components/charts/PartoPieChart.cjs.map +1 -1
- package/dist/components/charts/PartoPieChart.js +551 -4
- package/dist/components/charts/PartoPieChart.js.map +1 -1
- package/dist/components/ui/accordion.cjs +97 -0
- package/dist/components/ui/accordion.cjs.map +1 -0
- package/dist/components/ui/accordion.d.cts +22 -0
- package/dist/components/ui/accordion.d.ts +22 -0
- package/dist/components/ui/accordion.js +72 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/{chunk-MMC6M35Q.cjs → components/ui/alert-dialog.cjs} +216 -22
- package/dist/components/ui/alert-dialog.cjs.map +1 -0
- package/dist/components/ui/alert-dialog.d.cts +17 -0
- package/dist/components/ui/alert-dialog.d.ts +17 -0
- package/dist/{chunk-3QYYPPFJ.js → components/ui/alert-dialog.js} +175 -10
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert-rule-card.cjs +289 -8
- package/dist/components/ui/alert-rule-card.cjs.map +1 -1
- package/dist/components/ui/alert-rule-card.d.cts +1 -1
- package/dist/components/ui/alert-rule-card.d.ts +1 -1
- package/dist/components/ui/alert-rule-card.js +271 -4
- package/dist/components/ui/alert-rule-card.js.map +1 -1
- package/dist/components/ui/alert.cjs +81 -0
- package/dist/components/ui/alert.cjs.map +1 -0
- package/dist/components/ui/alert.d.cts +11 -0
- package/dist/components/ui/alert.d.ts +11 -0
- package/dist/components/ui/alert.js +57 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/app-bar.cjs +67 -0
- package/dist/components/ui/app-bar.cjs.map +1 -0
- package/dist/components/ui/app-bar.d.cts +22 -0
- package/dist/components/ui/app-bar.d.ts +22 -0
- package/dist/components/ui/app-bar.js +44 -0
- package/dist/components/ui/app-bar.js.map +1 -0
- package/dist/components/ui/avatar.cjs +66 -14
- package/dist/components/ui/avatar.cjs.map +1 -1
- package/dist/components/ui/avatar.js +47 -2
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.cjs +113 -9
- package/dist/components/ui/badge.cjs.map +1 -1
- package/dist/components/ui/badge.d.cts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.js +96 -2
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.cjs +100 -0
- package/dist/components/ui/breadcrumb.cjs.map +1 -0
- package/dist/components/ui/breadcrumb.d.cts +35 -0
- package/dist/components/ui/breadcrumb.d.ts +35 -0
- package/dist/components/ui/breadcrumb.js +92 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button.cjs +304 -11
- package/dist/components/ui/button.cjs.map +1 -1
- package/dist/components/ui/button.d.cts +3 -3
- package/dist/components/ui/button.d.ts +3 -3
- package/dist/components/ui/button.js +306 -3
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.cjs +401 -8
- package/dist/components/ui/calendar.cjs.map +1 -1
- package/dist/components/ui/calendar.js +404 -4
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.cjs +154 -30
- package/dist/components/ui/card.cjs.map +1 -1
- package/dist/components/ui/card.js +131 -2
- package/dist/components/ui/card.js.map +1 -1
- package/dist/{chunk-CAJKSTXX.cjs → components/ui/checkbox.cjs} +10 -5
- package/dist/components/ui/checkbox.cjs.map +1 -0
- package/dist/components/ui/checkbox.d.cts +6 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/{chunk-5JJSRGJD.js → components/ui/checkbox.js} +9 -4
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/concept-card.cjs +728 -11
- package/dist/components/ui/concept-card.cjs.map +1 -1
- package/dist/components/ui/concept-card.d.cts +2 -2
- package/dist/components/ui/concept-card.d.ts +2 -2
- package/dist/components/ui/concept-card.js +710 -7
- package/dist/components/ui/concept-card.js.map +1 -1
- package/dist/components/ui/data-table.cjs +1553 -10
- package/dist/components/ui/data-table.cjs.map +1 -1
- package/dist/components/ui/data-table.js +1537 -7
- package/dist/components/ui/data-table.js.map +1 -1
- package/dist/components/ui/dialog.cjs +119 -42
- package/dist/components/ui/dialog.cjs.map +1 -1
- package/dist/components/ui/dialog.js +92 -2
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/dropdown-menu.cjs +268 -0
- package/dist/components/ui/dropdown-menu.cjs.map +1 -0
- package/dist/components/ui/dropdown-menu.d.cts +73 -0
- package/dist/components/ui/dropdown-menu.d.ts +73 -0
- package/dist/components/ui/dropdown-menu.js +232 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/filter-provider.cjs +70 -13
- package/dist/components/ui/filter-provider.cjs.map +1 -1
- package/dist/components/ui/filter-provider.js +51 -1
- package/dist/components/ui/filter-provider.js.map +1 -1
- package/dist/components/ui/form.cjs +169 -0
- package/dist/components/ui/form.cjs.map +1 -0
- package/dist/components/ui/form.d.cts +46 -0
- package/dist/components/ui/form.d.ts +46 -0
- package/dist/components/ui/form.js +139 -0
- package/dist/components/ui/form.js.map +1 -0
- package/dist/components/ui/input.cjs +135 -15
- package/dist/components/ui/input.cjs.map +1 -1
- package/dist/components/ui/input.d.cts +15 -0
- package/dist/components/ui/input.d.ts +15 -0
- package/dist/components/ui/input.js +116 -3
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/iran-province-heat.cjs +328 -5
- package/dist/components/ui/iran-province-heat.cjs.map +1 -1
- package/dist/components/ui/iran-province-heat.js +312 -2
- package/dist/components/ui/iran-province-heat.js.map +1 -1
- package/dist/components/ui/label.cjs +52 -0
- package/dist/components/ui/label.cjs.map +1 -0
- package/dist/components/ui/label.d.cts +10 -0
- package/dist/components/ui/label.d.ts +10 -0
- package/dist/components/ui/label.js +30 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/page-card.cjs +627 -8
- package/dist/components/ui/page-card.cjs.map +1 -1
- package/dist/components/ui/page-card.d.cts +3 -2
- package/dist/components/ui/page-card.d.ts +3 -2
- package/dist/components/ui/page-card.js +611 -5
- package/dist/components/ui/page-card.js.map +1 -1
- package/dist/components/ui/page-header.cjs +299 -0
- package/dist/components/ui/page-header.cjs.map +1 -0
- package/dist/components/ui/page-header.d.cts +21 -0
- package/dist/components/ui/page-header.d.ts +21 -0
- package/dist/components/ui/page-header.js +277 -0
- package/dist/components/ui/page-header.js.map +1 -0
- package/dist/components/ui/password-input.cjs +168 -0
- package/dist/components/ui/password-input.cjs.map +1 -0
- package/dist/components/ui/password-input.d.cts +48 -0
- package/dist/components/ui/password-input.d.ts +48 -0
- package/dist/components/ui/password-input.js +146 -0
- package/dist/components/ui/password-input.js.map +1 -0
- package/dist/components/ui/popover.cjs +51 -18
- package/dist/components/ui/popover.cjs.map +1 -1
- package/dist/components/ui/popover.js +30 -2
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.cjs +95 -0
- package/dist/components/ui/progress.cjs.map +1 -0
- package/dist/components/ui/progress.d.cts +18 -0
- package/dist/components/ui/progress.d.ts +18 -0
- package/dist/components/ui/progress.js +72 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-card.cjs +84 -0
- package/dist/components/ui/radio-card.cjs.map +1 -0
- package/dist/components/ui/radio-card.d.cts +12 -0
- package/dist/components/ui/radio-card.d.ts +12 -0
- package/dist/components/ui/radio-card.js +58 -0
- package/dist/components/ui/radio-card.js.map +1 -0
- package/dist/components/ui/radio-group.cjs +62 -0
- package/dist/components/ui/radio-group.cjs.map +1 -0
- package/dist/components/ui/radio-group.d.cts +7 -0
- package/dist/components/ui/radio-group.d.ts +7 -0
- package/dist/components/ui/radio-group.js +38 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/saved-query-card.cjs +409 -7
- package/dist/components/ui/saved-query-card.cjs.map +1 -1
- package/dist/components/ui/saved-query-card.js +394 -4
- package/dist/components/ui/saved-query-card.js.map +1 -1
- package/dist/components/ui/scroll-area.cjs +79 -0
- package/dist/components/ui/scroll-area.cjs.map +1 -0
- package/dist/components/ui/scroll-area.d.cts +14 -0
- package/dist/components/ui/scroll-area.d.ts +14 -0
- package/dist/components/ui/scroll-area.js +56 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.cjs +242 -0
- package/dist/components/ui/select.cjs.map +1 -0
- package/dist/components/ui/select.d.cts +29 -0
- package/dist/components/ui/select.d.ts +29 -0
- package/dist/components/ui/select.js +210 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.cjs +105 -6
- package/dist/components/ui/separator.cjs.map +1 -1
- package/dist/components/ui/separator.js +87 -2
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.cjs +134 -38
- package/dist/components/ui/sheet.cjs.map +1 -1
- package/dist/components/ui/sheet.js +109 -2
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/{chunk-D2EBLE2B.cjs → components/ui/skeleton.cjs} +21 -16
- package/dist/components/ui/skeleton.cjs.map +1 -0
- package/dist/components/ui/skeleton.d.cts +90 -0
- package/dist/components/ui/skeleton.d.ts +90 -0
- package/dist/{chunk-SB5DSYR5.js → components/ui/skeleton.js} +8 -3
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.cjs +129 -0
- package/dist/components/ui/slider.cjs.map +1 -0
- package/dist/components/ui/slider.d.cts +10 -0
- package/dist/components/ui/slider.d.ts +10 -0
- package/dist/components/ui/slider.js +107 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/social-platform-badge.cjs +120 -0
- package/dist/components/ui/social-platform-badge.cjs.map +1 -0
- package/dist/components/ui/social-platform-badge.d.cts +21 -0
- package/dist/components/ui/social-platform-badge.d.ts +21 -0
- package/dist/components/ui/social-platform-badge.js +97 -0
- package/dist/components/ui/social-platform-badge.js.map +1 -0
- package/dist/components/ui/sonner.cjs +51 -0
- package/dist/components/ui/sonner.cjs.map +1 -0
- package/dist/components/ui/sonner.d.cts +13 -0
- package/dist/components/ui/sonner.d.ts +13 -0
- package/dist/components/ui/sonner.js +45 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/sparkline.cjs +159 -6
- package/dist/components/ui/sparkline.cjs.map +1 -1
- package/dist/components/ui/sparkline.js +142 -2
- package/dist/components/ui/sparkline.js.map +1 -1
- package/dist/components/ui/switch.cjs +96 -0
- package/dist/components/ui/switch.cjs.map +1 -0
- package/dist/components/ui/switch.d.cts +13 -0
- package/dist/components/ui/switch.d.ts +13 -0
- package/dist/components/ui/switch.js +73 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.cjs +188 -0
- package/dist/components/ui/table.cjs.map +1 -0
- package/dist/components/ui/table.d.cts +59 -0
- package/dist/components/ui/table.d.ts +59 -0
- package/dist/components/ui/table.js +178 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.cjs +140 -0
- package/dist/components/ui/tabs.cjs.map +1 -0
- package/dist/components/ui/tabs.d.cts +21 -0
- package/dist/components/ui/tabs.d.ts +21 -0
- package/dist/components/ui/tabs.js +115 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.cjs +56 -0
- package/dist/components/ui/textarea.cjs.map +1 -0
- package/dist/components/ui/textarea.d.cts +5 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/textarea.js +34 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toggle-group.cjs +123 -0
- package/dist/components/ui/toggle-group.cjs.map +1 -0
- package/dist/components/ui/toggle-group.d.cts +7 -0
- package/dist/components/ui/toggle-group.d.ts +7 -0
- package/dist/components/ui/toggle-group.js +99 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/tooltip.cjs +77 -18
- package/dist/components/ui/tooltip.cjs.map +1 -1
- package/dist/components/ui/tooltip.js +56 -2
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/{concept-card-RwPbqJ06.d.cts → concept-card-BXra9mr0.d.cts} +2 -2
- package/dist/{concept-card-CcOBb2Nz.d.ts → concept-card-BoJ5gIJD.d.ts} +2 -2
- package/dist/hooks/use-hotkey-registry.cjs +201 -14
- package/dist/hooks/use-hotkey-registry.cjs.map +1 -1
- package/dist/hooks/use-hotkey-registry.js +182 -2
- package/dist/hooks/use-hotkey-registry.js.map +1 -1
- package/dist/hooks/use-hotkeys.cjs +144 -9
- package/dist/hooks/use-hotkeys.cjs.map +1 -1
- package/dist/hooks/use-hotkeys.js +126 -1
- package/dist/hooks/use-hotkeys.js.map +1 -1
- package/dist/{i18n-CAd9wGOr.d.cts → i18n-BfRhV5aw.d.cts} +5 -3
- package/dist/{i18n-ArS3mqj0.d.ts → i18n-ewyqbKM-.d.ts} +5 -3
- package/dist/index.cjs +20906 -15706
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +396 -69
- package/dist/index.d.cts +49 -490
- package/dist/index.d.ts +49 -490
- package/dist/index.js +7704 -2032
- package/dist/index.js.map +1 -1
- package/dist/{page-card-CmShVqG-.d.cts → page-card-C9XXXOVr.d.cts} +3 -20
- package/dist/{page-card-HBn-cy4J.d.ts → page-card-DAnbez_f.d.ts} +3 -20
- package/dist/toggle-group-B8r4LOQw.d.cts +26 -0
- package/dist/toggle-group-B8r4LOQw.d.ts +26 -0
- package/package.json +132 -2
- package/tailwind.config.ts +45 -0
- package/dist/chunk-2ACKKPWA.cjs +0 -112
- package/dist/chunk-2ACKKPWA.cjs.map +0 -1
- package/dist/chunk-2UD3LGVX.cjs +0 -316
- package/dist/chunk-2UD3LGVX.cjs.map +0 -1
- package/dist/chunk-3QYYPPFJ.js.map +0 -1
- package/dist/chunk-4SVQNEVH.js +0 -173
- package/dist/chunk-4SVQNEVH.js.map +0 -1
- package/dist/chunk-4WONHORR.cjs +0 -152
- package/dist/chunk-4WONHORR.cjs.map +0 -1
- package/dist/chunk-5HCXH6GS.js +0 -409
- package/dist/chunk-5HCXH6GS.js.map +0 -1
- package/dist/chunk-5JJSRGJD.js.map +0 -1
- package/dist/chunk-5K6E4ZSW.cjs +0 -77
- package/dist/chunk-5K6E4ZSW.cjs.map +0 -1
- package/dist/chunk-5NY26ULO.js +0 -89
- package/dist/chunk-5NY26ULO.js.map +0 -1
- package/dist/chunk-7RVPG3LE.cjs +0 -231
- package/dist/chunk-7RVPG3LE.cjs.map +0 -1
- package/dist/chunk-AYEK3WOM.js +0 -207
- package/dist/chunk-AYEK3WOM.js.map +0 -1
- package/dist/chunk-BRMBLIQG.js +0 -53
- package/dist/chunk-BRMBLIQG.js.map +0 -1
- package/dist/chunk-CAJKSTXX.cjs.map +0 -1
- package/dist/chunk-CKFWMHQU.js +0 -401
- package/dist/chunk-CKFWMHQU.js.map +0 -1
- package/dist/chunk-CV3N3HVK.js +0 -672
- package/dist/chunk-CV3N3HVK.js.map +0 -1
- package/dist/chunk-D2EBLE2B.cjs.map +0 -1
- package/dist/chunk-GCZ6YATL.js +0 -940
- package/dist/chunk-GCZ6YATL.js.map +0 -1
- package/dist/chunk-GKRAZGDI.cjs +0 -84
- package/dist/chunk-GKRAZGDI.cjs.map +0 -1
- package/dist/chunk-GPYJ66CG.js +0 -45
- package/dist/chunk-GPYJ66CG.js.map +0 -1
- package/dist/chunk-HF6XU5NI.js +0 -84
- package/dist/chunk-HF6XU5NI.js.map +0 -1
- package/dist/chunk-HJPDZOMJ.cjs +0 -87
- package/dist/chunk-HJPDZOMJ.cjs.map +0 -1
- package/dist/chunk-HS3XI3CC.cjs +0 -69
- package/dist/chunk-HS3XI3CC.cjs.map +0 -1
- package/dist/chunk-HUCC3QH5.cjs +0 -53
- package/dist/chunk-HUCC3QH5.cjs.map +0 -1
- package/dist/chunk-HYZ6BQPS.cjs +0 -425
- package/dist/chunk-HYZ6BQPS.cjs.map +0 -1
- package/dist/chunk-ISCSZMYW.cjs +0 -106
- package/dist/chunk-ISCSZMYW.cjs.map +0 -1
- package/dist/chunk-IXFEFIDO.js +0 -82
- package/dist/chunk-IXFEFIDO.js.map +0 -1
- package/dist/chunk-JCJLN437.js +0 -108
- package/dist/chunk-JCJLN437.js.map +0 -1
- package/dist/chunk-JMKNNH63.cjs +0 -982
- package/dist/chunk-JMKNNH63.cjs.map +0 -1
- package/dist/chunk-JUBHQAA2.js +0 -53
- package/dist/chunk-JUBHQAA2.js.map +0 -1
- package/dist/chunk-K6G63EED.cjs +0 -41
- package/dist/chunk-K6G63EED.cjs.map +0 -1
- package/dist/chunk-KCWRCSI7.js +0 -62
- package/dist/chunk-KCWRCSI7.js.map +0 -1
- package/dist/chunk-KYM7NIJO.cjs +0 -433
- package/dist/chunk-KYM7NIJO.cjs.map +0 -1
- package/dist/chunk-L2L5CKC2.js +0 -291
- package/dist/chunk-L2L5CKC2.js.map +0 -1
- package/dist/chunk-M5CHZ5BA.js +0 -124
- package/dist/chunk-M5CHZ5BA.js.map +0 -1
- package/dist/chunk-MEK4RSGC.js +0 -65
- package/dist/chunk-MEK4RSGC.js.map +0 -1
- package/dist/chunk-MEKWH3GS.js +0 -89
- package/dist/chunk-MEKWH3GS.js.map +0 -1
- package/dist/chunk-MFTX2DDQ.js +0 -27
- package/dist/chunk-MFTX2DDQ.js.map +0 -1
- package/dist/chunk-MMC6M35Q.cjs.map +0 -1
- package/dist/chunk-NMH43BDC.js +0 -130
- package/dist/chunk-NMH43BDC.js.map +0 -1
- package/dist/chunk-NORDUD2T.cjs +0 -135
- package/dist/chunk-NORDUD2T.cjs.map +0 -1
- package/dist/chunk-NV4JOKWL.cjs +0 -197
- package/dist/chunk-NV4JOKWL.cjs.map +0 -1
- package/dist/chunk-O2JG7WY5.cjs +0 -121
- package/dist/chunk-O2JG7WY5.cjs.map +0 -1
- package/dist/chunk-ONO2FTV4.cjs +0 -68
- package/dist/chunk-ONO2FTV4.cjs.map +0 -1
- package/dist/chunk-OQB6HIUL.cjs +0 -108
- package/dist/chunk-OQB6HIUL.cjs.map +0 -1
- package/dist/chunk-OS6CMYAS.cjs +0 -79
- package/dist/chunk-OS6CMYAS.cjs.map +0 -1
- package/dist/chunk-PYURPUTV.js +0 -402
- package/dist/chunk-PYURPUTV.js.map +0 -1
- package/dist/chunk-RJ3HYZ7S.js +0 -44
- package/dist/chunk-RJ3HYZ7S.js.map +0 -1
- package/dist/chunk-RZNRIOLT.js +0 -128
- package/dist/chunk-RZNRIOLT.js.map +0 -1
- package/dist/chunk-S3T2L6NA.js +0 -38
- package/dist/chunk-S3T2L6NA.js.map +0 -1
- package/dist/chunk-S5IPJQZ3.cjs +0 -161
- package/dist/chunk-S5IPJQZ3.cjs.map +0 -1
- package/dist/chunk-SB5DSYR5.js.map +0 -1
- package/dist/chunk-SFXV2DUH.js +0 -106
- package/dist/chunk-SFXV2DUH.js.map +0 -1
- package/dist/chunk-SXEPGD4Z.cjs +0 -152
- package/dist/chunk-SXEPGD4Z.cjs.map +0 -1
- package/dist/chunk-SXWSOU3Y.js +0 -89
- package/dist/chunk-SXWSOU3Y.js.map +0 -1
- package/dist/chunk-SZMVOHT7.cjs +0 -107
- package/dist/chunk-SZMVOHT7.cjs.map +0 -1
- package/dist/chunk-TWJXOV4C.js +0 -145
- package/dist/chunk-TWJXOV4C.js.map +0 -1
- package/dist/chunk-U3ADRIVO.cjs +0 -434
- package/dist/chunk-U3ADRIVO.cjs.map +0 -1
- package/dist/chunk-U5FLLCGC.cjs +0 -151
- package/dist/chunk-U5FLLCGC.cjs.map +0 -1
- package/dist/chunk-UOZN45G4.cjs +0 -130
- package/dist/chunk-UOZN45G4.cjs.map +0 -1
- package/dist/chunk-VHLDOG74.cjs +0 -167
- package/dist/chunk-VHLDOG74.cjs.map +0 -1
- package/dist/chunk-YC5KLN6I.js +0 -139
- package/dist/chunk-YC5KLN6I.js.map +0 -1
- package/dist/chunk-YENXXYUV.cjs +0 -111
- package/dist/chunk-YENXXYUV.cjs.map +0 -1
- package/dist/chunk-YFQWC2PW.js +0 -113
- package/dist/chunk-YFQWC2PW.js.map +0 -1
- package/dist/chunk-Z2TY4A75.cjs +0 -700
- package/dist/chunk-Z2TY4A75.cjs.map +0 -1
- package/dist/chunk-Z56O7UEU.cjs +0 -136
- package/dist/chunk-Z56O7UEU.cjs.map +0 -1
- package/dist/chunk-ZBZDR4ZC.js +0 -106
- package/dist/chunk-ZBZDR4ZC.js.map +0 -1
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { S as SupportedLocale } from './utils-DlXWmDZ-.cjs';
|
|
3
|
-
import
|
|
4
|
-
import { c as StatusKey } from './i18n-
|
|
5
|
-
|
|
6
|
-
type SocialPlatform = 'instagram' | 'twitter' | 'tiktok' | 'youtube' | 'linkedin' | 'telegram' | 'threads' | 'facebook';
|
|
7
|
-
interface SocialPlatformBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
8
|
-
/** The social media platform to display */
|
|
9
|
-
platform: SocialPlatform;
|
|
10
|
-
/** Size of the badge */
|
|
11
|
-
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
12
|
-
/** Show the platform name label */
|
|
13
|
-
showLabel?: boolean;
|
|
14
|
-
/** Visual style of the badge */
|
|
15
|
-
variant?: 'flat' | 'badge';
|
|
16
|
-
}
|
|
17
|
-
declare const socialPlatformBadgeVariants: (props?: ({
|
|
18
|
-
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
19
|
-
variant?: "flat" | "badge" | null | undefined;
|
|
20
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
21
|
-
declare const SocialPlatformBadge: React.ForwardRefExoticComponent<SocialPlatformBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
3
|
+
import { SocialPlatform } from './components/ui/social-platform-badge.cjs';
|
|
4
|
+
import { c as StatusKey } from './i18n-BfRhV5aw.cjs';
|
|
22
5
|
|
|
23
6
|
type BotDetectionKey = 'real' | 'suspicious' | 'bot';
|
|
24
7
|
interface BotDetectionData {
|
|
@@ -97,4 +80,4 @@ interface PageCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
97
80
|
}
|
|
98
81
|
declare const PageCard: React.ForwardRefExoticComponent<PageCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
99
82
|
|
|
100
|
-
export { BotDetectionMeter as B, PageCard as P, type
|
|
83
|
+
export { BotDetectionMeter as B, PageCard as P, type PageCardContentMix as a, type PageCardProps as b, type BotDetectionKey as c, type BotDetectionData as d, type BotDetectionMeterProps as e };
|
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { S as SupportedLocale } from './utils-DlXWmDZ-.js';
|
|
3
|
-
import
|
|
4
|
-
import { c as StatusKey } from './i18n-
|
|
5
|
-
|
|
6
|
-
type SocialPlatform = 'instagram' | 'twitter' | 'tiktok' | 'youtube' | 'linkedin' | 'telegram' | 'threads' | 'facebook';
|
|
7
|
-
interface SocialPlatformBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
8
|
-
/** The social media platform to display */
|
|
9
|
-
platform: SocialPlatform;
|
|
10
|
-
/** Size of the badge */
|
|
11
|
-
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
12
|
-
/** Show the platform name label */
|
|
13
|
-
showLabel?: boolean;
|
|
14
|
-
/** Visual style of the badge */
|
|
15
|
-
variant?: 'flat' | 'badge';
|
|
16
|
-
}
|
|
17
|
-
declare const socialPlatformBadgeVariants: (props?: ({
|
|
18
|
-
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
19
|
-
variant?: "flat" | "badge" | null | undefined;
|
|
20
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
21
|
-
declare const SocialPlatformBadge: React.ForwardRefExoticComponent<SocialPlatformBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
3
|
+
import { SocialPlatform } from './components/ui/social-platform-badge.js';
|
|
4
|
+
import { c as StatusKey } from './i18n-ewyqbKM-.js';
|
|
22
5
|
|
|
23
6
|
type BotDetectionKey = 'real' | 'suspicious' | 'bot';
|
|
24
7
|
interface BotDetectionData {
|
|
@@ -97,4 +80,4 @@ interface PageCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
97
80
|
}
|
|
98
81
|
declare const PageCard: React.ForwardRefExoticComponent<PageCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
99
82
|
|
|
100
|
-
export { BotDetectionMeter as B, PageCard as P, type
|
|
83
|
+
export { BotDetectionMeter as B, PageCard as P, type PageCardContentMix as a, type PageCardProps as b, type BotDetectionKey as c, type BotDetectionData as d, type BotDetectionMeterProps as e };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
|
7
|
+
|
|
8
|
+
declare const toggleVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "outline" | "segmented" | null | undefined;
|
|
10
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
+
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare namespace Toggle {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare function ToggleGroup({ className, variant, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare namespace ToggleGroup {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare namespace ToggleGroupItem {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { Toggle as T, ToggleGroup as a, ToggleGroupItem as b, toggleVariants as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
|
7
|
+
|
|
8
|
+
declare const toggleVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "outline" | "segmented" | null | undefined;
|
|
10
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
+
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare namespace Toggle {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare function ToggleGroup({ className, variant, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
18
|
+
declare namespace ToggleGroup {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
22
|
+
declare namespace ToggleGroupItem {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { Toggle as T, ToggleGroup as a, ToggleGroupItem as b, toggleVariants as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parto-system-design/ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"description": "Persian-first, RTL-native React component library for public-opinion monitoring (افکارسنجی), social listening, and influencer analytics — Supabase-style design language adapted for Farsi typography.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Parto Design System contributors",
|
|
@@ -39,6 +39,11 @@
|
|
|
39
39
|
"import": "./dist/index.js",
|
|
40
40
|
"require": "./dist/index.cjs"
|
|
41
41
|
},
|
|
42
|
+
"./app-bar": {
|
|
43
|
+
"types": "./dist/components/ui/app-bar.d.ts",
|
|
44
|
+
"import": "./dist/components/ui/app-bar.js",
|
|
45
|
+
"require": "./dist/components/ui/app-bar.cjs"
|
|
46
|
+
},
|
|
42
47
|
"./button": {
|
|
43
48
|
"types": "./dist/components/ui/button.d.ts",
|
|
44
49
|
"import": "./dist/components/ui/button.js",
|
|
@@ -49,6 +54,11 @@
|
|
|
49
54
|
"import": "./dist/components/ui/input.js",
|
|
50
55
|
"require": "./dist/components/ui/input.cjs"
|
|
51
56
|
},
|
|
57
|
+
"./password-input": {
|
|
58
|
+
"types": "./dist/components/ui/password-input.d.ts",
|
|
59
|
+
"import": "./dist/components/ui/password-input.js",
|
|
60
|
+
"require": "./dist/components/ui/password-input.cjs"
|
|
61
|
+
},
|
|
52
62
|
"./card": {
|
|
53
63
|
"types": "./dist/components/ui/card.d.ts",
|
|
54
64
|
"import": "./dist/components/ui/card.js",
|
|
@@ -89,6 +99,126 @@
|
|
|
89
99
|
"import": "./dist/components/ui/separator.js",
|
|
90
100
|
"require": "./dist/components/ui/separator.cjs"
|
|
91
101
|
},
|
|
102
|
+
"./alert": {
|
|
103
|
+
"types": "./dist/components/ui/alert.d.ts",
|
|
104
|
+
"import": "./dist/components/ui/alert.js",
|
|
105
|
+
"require": "./dist/components/ui/alert.cjs"
|
|
106
|
+
},
|
|
107
|
+
"./label": {
|
|
108
|
+
"types": "./dist/components/ui/label.d.ts",
|
|
109
|
+
"import": "./dist/components/ui/label.js",
|
|
110
|
+
"require": "./dist/components/ui/label.cjs"
|
|
111
|
+
},
|
|
112
|
+
"./progress": {
|
|
113
|
+
"types": "./dist/components/ui/progress.d.ts",
|
|
114
|
+
"import": "./dist/components/ui/progress.js",
|
|
115
|
+
"require": "./dist/components/ui/progress.cjs"
|
|
116
|
+
},
|
|
117
|
+
"./scroll-area": {
|
|
118
|
+
"types": "./dist/components/ui/scroll-area.d.ts",
|
|
119
|
+
"import": "./dist/components/ui/scroll-area.js",
|
|
120
|
+
"require": "./dist/components/ui/scroll-area.cjs"
|
|
121
|
+
},
|
|
122
|
+
"./skeleton": {
|
|
123
|
+
"types": "./dist/components/ui/skeleton.d.ts",
|
|
124
|
+
"import": "./dist/components/ui/skeleton.js",
|
|
125
|
+
"require": "./dist/components/ui/skeleton.cjs"
|
|
126
|
+
},
|
|
127
|
+
"./sonner": {
|
|
128
|
+
"types": "./dist/components/ui/sonner.d.ts",
|
|
129
|
+
"import": "./dist/components/ui/sonner.js",
|
|
130
|
+
"require": "./dist/components/ui/sonner.cjs"
|
|
131
|
+
},
|
|
132
|
+
"./textarea": {
|
|
133
|
+
"types": "./dist/components/ui/textarea.d.ts",
|
|
134
|
+
"import": "./dist/components/ui/textarea.js",
|
|
135
|
+
"require": "./dist/components/ui/textarea.cjs"
|
|
136
|
+
},
|
|
137
|
+
"./checkbox": {
|
|
138
|
+
"types": "./dist/components/ui/checkbox.d.ts",
|
|
139
|
+
"import": "./dist/components/ui/checkbox.js",
|
|
140
|
+
"require": "./dist/components/ui/checkbox.cjs"
|
|
141
|
+
},
|
|
142
|
+
"./radio-group": {
|
|
143
|
+
"types": "./dist/components/ui/radio-group.d.ts",
|
|
144
|
+
"import": "./dist/components/ui/radio-group.js",
|
|
145
|
+
"require": "./dist/components/ui/radio-group.cjs"
|
|
146
|
+
},
|
|
147
|
+
"./switch": {
|
|
148
|
+
"types": "./dist/components/ui/switch.d.ts",
|
|
149
|
+
"import": "./dist/components/ui/switch.js",
|
|
150
|
+
"require": "./dist/components/ui/switch.cjs"
|
|
151
|
+
},
|
|
152
|
+
"./select": {
|
|
153
|
+
"types": "./dist/components/ui/select.d.ts",
|
|
154
|
+
"import": "./dist/components/ui/select.js",
|
|
155
|
+
"require": "./dist/components/ui/select.cjs"
|
|
156
|
+
},
|
|
157
|
+
"./tabs": {
|
|
158
|
+
"types": "./dist/components/ui/tabs.d.ts",
|
|
159
|
+
"import": "./dist/components/ui/tabs.js",
|
|
160
|
+
"require": "./dist/components/ui/tabs.cjs"
|
|
161
|
+
},
|
|
162
|
+
"./dropdown-menu": {
|
|
163
|
+
"types": "./dist/components/ui/dropdown-menu.d.ts",
|
|
164
|
+
"import": "./dist/components/ui/dropdown-menu.js",
|
|
165
|
+
"require": "./dist/components/ui/dropdown-menu.cjs"
|
|
166
|
+
},
|
|
167
|
+
"./accordion": {
|
|
168
|
+
"types": "./dist/components/ui/accordion.d.ts",
|
|
169
|
+
"import": "./dist/components/ui/accordion.js",
|
|
170
|
+
"require": "./dist/components/ui/accordion.cjs"
|
|
171
|
+
},
|
|
172
|
+
"./alert-dialog": {
|
|
173
|
+
"types": "./dist/components/ui/alert-dialog.d.ts",
|
|
174
|
+
"import": "./dist/components/ui/alert-dialog.js",
|
|
175
|
+
"require": "./dist/components/ui/alert-dialog.cjs"
|
|
176
|
+
},
|
|
177
|
+
"./table": {
|
|
178
|
+
"types": "./dist/components/ui/table.d.ts",
|
|
179
|
+
"import": "./dist/components/ui/table.js",
|
|
180
|
+
"require": "./dist/components/ui/table.cjs"
|
|
181
|
+
},
|
|
182
|
+
"./breadcrumb": {
|
|
183
|
+
"types": "./dist/components/ui/breadcrumb.d.ts",
|
|
184
|
+
"import": "./dist/components/ui/breadcrumb.js",
|
|
185
|
+
"require": "./dist/components/ui/breadcrumb.cjs"
|
|
186
|
+
},
|
|
187
|
+
"./form": {
|
|
188
|
+
"types": "./dist/components/ui/form.d.ts",
|
|
189
|
+
"import": "./dist/components/ui/form.js",
|
|
190
|
+
"require": "./dist/components/ui/form.cjs"
|
|
191
|
+
},
|
|
192
|
+
"./toggle-group": {
|
|
193
|
+
"types": "./dist/components/ui/toggle-group.d.ts",
|
|
194
|
+
"import": "./dist/components/ui/toggle-group.js",
|
|
195
|
+
"require": "./dist/components/ui/toggle-group.cjs"
|
|
196
|
+
},
|
|
197
|
+
"./slider": {
|
|
198
|
+
"types": "./dist/components/ui/slider.d.ts",
|
|
199
|
+
"import": "./dist/components/ui/slider.js",
|
|
200
|
+
"require": "./dist/components/ui/slider.cjs"
|
|
201
|
+
},
|
|
202
|
+
"./social-platform-badge": {
|
|
203
|
+
"types": "./dist/components/ui/social-platform-badge.d.ts",
|
|
204
|
+
"import": "./dist/components/ui/social-platform-badge.js",
|
|
205
|
+
"require": "./dist/components/ui/social-platform-badge.cjs"
|
|
206
|
+
},
|
|
207
|
+
"./page-header": {
|
|
208
|
+
"types": "./dist/components/ui/page-header.d.ts",
|
|
209
|
+
"import": "./dist/components/ui/page-header.js",
|
|
210
|
+
"require": "./dist/components/ui/page-header.cjs"
|
|
211
|
+
},
|
|
212
|
+
"./radio-card": {
|
|
213
|
+
"types": "./dist/components/ui/radio-card.d.ts",
|
|
214
|
+
"import": "./dist/components/ui/radio-card.js",
|
|
215
|
+
"require": "./dist/components/ui/radio-card.cjs"
|
|
216
|
+
},
|
|
217
|
+
"./parto-logo": {
|
|
218
|
+
"types": "./dist/components/brand/parto-logo.d.ts",
|
|
219
|
+
"import": "./dist/components/brand/parto-logo.js",
|
|
220
|
+
"require": "./dist/components/brand/parto-logo.cjs"
|
|
221
|
+
},
|
|
92
222
|
"./data-table": {
|
|
93
223
|
"types": "./dist/components/ui/data-table.d.ts",
|
|
94
224
|
"import": "./dist/components/ui/data-table.js",
|
|
@@ -272,7 +402,7 @@
|
|
|
272
402
|
},
|
|
273
403
|
"scripts": {
|
|
274
404
|
"dev": "tsup --watch",
|
|
275
|
-
"build": "tsup && tailwindcss -i ./src/globals.css -o ./dist/index.css && copyfiles -u 1 \"src/assets/fonts/*.woff2\" dist",
|
|
405
|
+
"build": "tsup && node scripts/restore-use-client.mjs && tailwindcss -i ./src/globals.css -o ./dist/index.css && copyfiles -u 1 \"src/assets/fonts/*.woff2\" dist",
|
|
276
406
|
"test": "vitest run",
|
|
277
407
|
"test:watch": "vitest",
|
|
278
408
|
"test:ui": "vitest --ui",
|
package/tailwind.config.ts
CHANGED
|
@@ -4,6 +4,22 @@ import plugin from 'tailwindcss/plugin';
|
|
|
4
4
|
const config: Config = {
|
|
5
5
|
darkMode: ['class', '[data-theme="dark"]'],
|
|
6
6
|
content: ['./src/**/*.{ts,tsx}'],
|
|
7
|
+
// Always ship the semantic-color utilities in the published dist/index.css,
|
|
8
|
+
// even though no DS component uses every shade. Consuming products
|
|
9
|
+
// (e.g. status palettes in srr) reference bg-info/text-success/etc.
|
|
10
|
+
// directly and rely on these being present. Without the safelist Tailwind
|
|
11
|
+
// tree-shakes them out of the DS bundle and the product's own Tailwind
|
|
12
|
+
// can't see them either (it scans the compiled JS, not source classes).
|
|
13
|
+
safelist: [
|
|
14
|
+
{
|
|
15
|
+
pattern: /^(bg|text|border)-(info|success|warning|destructive|brand)(-(200|300|400|500|600))?$/,
|
|
16
|
+
},
|
|
17
|
+
'text-on-info',
|
|
18
|
+
'text-on-success',
|
|
19
|
+
'text-on-warning',
|
|
20
|
+
'text-on-destructive',
|
|
21
|
+
'text-on-brand',
|
|
22
|
+
],
|
|
7
23
|
theme: {
|
|
8
24
|
container: {
|
|
9
25
|
center: true,
|
|
@@ -63,6 +79,15 @@ const config: Config = {
|
|
|
63
79
|
muted: 'hsl(var(--foreground-muted))',
|
|
64
80
|
contrast: 'hsl(var(--foreground-contrast))',
|
|
65
81
|
},
|
|
82
|
+
|
|
83
|
+
// On-color foreground tokens — pair with bg-brand / bg-warning /
|
|
84
|
+
// bg-destructive to guarantee WCAG AA. See foundations/colors.mdx.
|
|
85
|
+
// Enables `text-on-brand`, `hover:text-on-brand`, etc. as full Tailwind utilities.
|
|
86
|
+
'on-brand': 'hsl(var(--on-brand))',
|
|
87
|
+
'on-warning': 'hsl(var(--on-warning))',
|
|
88
|
+
'on-destructive': 'hsl(var(--on-destructive))',
|
|
89
|
+
'on-info': 'hsl(var(--on-info))',
|
|
90
|
+
'on-success': 'hsl(var(--on-success))',
|
|
66
91
|
|
|
67
92
|
// Supabase Design System - Border Colors
|
|
68
93
|
border: {
|
|
@@ -114,6 +139,26 @@ const config: Config = {
|
|
|
114
139
|
600: 'hsl(var(--destructive-600))',
|
|
115
140
|
foreground: 'hsl(var(--destructive-600))',
|
|
116
141
|
},
|
|
142
|
+
|
|
143
|
+
// Info (blue) — loading / in-progress / informational states. Added 1.1.15.
|
|
144
|
+
info: {
|
|
145
|
+
DEFAULT: 'hsl(var(--info-default))',
|
|
146
|
+
200: 'hsl(var(--info-200))',
|
|
147
|
+
300: 'hsl(var(--info-300))',
|
|
148
|
+
400: 'hsl(var(--info-400))',
|
|
149
|
+
500: 'hsl(var(--info-500))',
|
|
150
|
+
600: 'hsl(var(--info-600))',
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
// Success (green) — completed / confirmed states. Distinct from brand teal. Added 1.1.15.
|
|
154
|
+
success: {
|
|
155
|
+
DEFAULT: 'hsl(var(--success-default))',
|
|
156
|
+
200: 'hsl(var(--success-200))',
|
|
157
|
+
300: 'hsl(var(--success-300))',
|
|
158
|
+
400: 'hsl(var(--success-400))',
|
|
159
|
+
500: 'hsl(var(--success-500))',
|
|
160
|
+
600: 'hsl(var(--success-600))',
|
|
161
|
+
},
|
|
117
162
|
|
|
118
163
|
// Supabase Design System - Secondary Colors
|
|
119
164
|
secondary: {
|
package/dist/chunk-2ACKKPWA.cjs
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkNV4JOKWL_cjs = require('./chunk-NV4JOKWL.cjs');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
|
|
8
|
-
function _interopNamespace(e) {
|
|
9
|
-
if (e && e.__esModule) return e;
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
n.default = e;
|
|
23
|
-
return Object.freeze(n);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
-
|
|
28
|
-
var badgeVariants = classVarianceAuthority.cva(
|
|
29
|
-
"inline-flex items-center rounded-full font-normal whitespace-nowrap transition-colors duration-150",
|
|
30
|
-
{
|
|
31
|
-
variants: {
|
|
32
|
-
variant: {
|
|
33
|
-
default: "bg-surface-75 text-foreground-light border border-strong",
|
|
34
|
-
secondary: "bg-[hsl(var(--secondary-default)/0.1)] border border-[hsl(var(--secondary-default)/0.4)] text-[hsl(var(--secondary-default))]",
|
|
35
|
-
success: "bg-brand bg-opacity-10 text-brand-600 border border-brand-500",
|
|
36
|
-
warning: "bg-warning bg-opacity-10 text-warning border border-warning-500",
|
|
37
|
-
destructive: "bg-destructive bg-opacity-10 text-destructive-600 border border-destructive-500",
|
|
38
|
-
brand: "bg-brand bg-opacity-10 text-brand-600 border border-brand-500",
|
|
39
|
-
outline: "bg-transparent text-foreground border border-foreground-muted"
|
|
40
|
-
},
|
|
41
|
-
size: {
|
|
42
|
-
xs: "px-1.5 py-[3px] text-2xs leading-none tracking-wide uppercase",
|
|
43
|
-
sm: "px-2 py-0.5 text-xs",
|
|
44
|
-
md: "px-2 py-0.5 text-xs",
|
|
45
|
-
lg: "px-3 py-0.5 text-sm",
|
|
46
|
-
/** @deprecated Use xs */
|
|
47
|
-
tiny: "px-1.5 py-[3px] text-2xs leading-none tracking-wide uppercase",
|
|
48
|
-
/** @deprecated Use sm */
|
|
49
|
-
small: "px-2 py-0.5 text-xs",
|
|
50
|
-
/** @deprecated Use lg */
|
|
51
|
-
large: "px-3 py-0.5 text-sm"
|
|
52
|
-
},
|
|
53
|
-
dot: {
|
|
54
|
-
true: ""
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
defaultVariants: {
|
|
58
|
-
variant: "default",
|
|
59
|
-
size: "sm"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
var dotVariants = classVarianceAuthority.cva("size-2 rounded-full", {
|
|
64
|
-
variants: {
|
|
65
|
-
position: {
|
|
66
|
-
start: "-ms-0.5 me-1.5",
|
|
67
|
-
end: "ms-1.5 -me-0.5"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
defaultVariants: {
|
|
71
|
-
position: "start"
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
var Badge = React__namespace.forwardRef(
|
|
75
|
-
({ className, variant, size, dot, dotPosition = "end", children, ...props }, ref) => {
|
|
76
|
-
if (process.env.NODE_ENV !== "production") {
|
|
77
|
-
const deprecatedSizes = ["tiny", "small", "large"];
|
|
78
|
-
if (size && deprecatedSizes.includes(size)) {
|
|
79
|
-
console.warn(`[Parto UI] Badge: size="${size}" is deprecated. Use xs|sm|md|lg instead.`);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("span", { ref, "data-slot": "badge", className: chunkNV4JOKWL_cjs.cn(badgeVariants({ variant, size }), className), ...props, children: [
|
|
83
|
-
dot && dotPosition === "start" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
84
|
-
"svg",
|
|
85
|
-
{
|
|
86
|
-
"aria-hidden": "true",
|
|
87
|
-
className: chunkNV4JOKWL_cjs.cn(dotVariants({ position: "start" })),
|
|
88
|
-
fill: "currentColor",
|
|
89
|
-
viewBox: "0 0 8 8",
|
|
90
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "4", cy: "4", r: "3" })
|
|
91
|
-
}
|
|
92
|
-
),
|
|
93
|
-
children,
|
|
94
|
-
dot && dotPosition === "end" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
95
|
-
"svg",
|
|
96
|
-
{
|
|
97
|
-
"aria-hidden": "true",
|
|
98
|
-
className: chunkNV4JOKWL_cjs.cn(dotVariants({ position: "end" })),
|
|
99
|
-
fill: "currentColor",
|
|
100
|
-
viewBox: "0 0 8 8",
|
|
101
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "4", cy: "4", r: "3" })
|
|
102
|
-
}
|
|
103
|
-
)
|
|
104
|
-
] });
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
Badge.displayName = "Badge";
|
|
108
|
-
|
|
109
|
-
exports.Badge = Badge;
|
|
110
|
-
exports.badgeVariants = badgeVariants;
|
|
111
|
-
//# sourceMappingURL=chunk-2ACKKPWA.cjs.map
|
|
112
|
-
//# sourceMappingURL=chunk-2ACKKPWA.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/ui/badge.tsx"],"names":["cva","React","cn","jsx"],"mappings":"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","file":"chunk-2ACKKPWA.cjs","sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@/lib/utils'\n\nconst badgeVariants = cva(\n 'inline-flex items-center rounded-full font-normal whitespace-nowrap transition-colors duration-150',\n {\n variants: {\n variant: {\n default: 'bg-surface-75 text-foreground-light border border-strong',\n secondary:\n 'bg-[hsl(var(--secondary-default)/0.1)] border border-[hsl(var(--secondary-default)/0.4)] text-[hsl(var(--secondary-default))]',\n success: 'bg-brand bg-opacity-10 text-brand-600 border border-brand-500',\n warning: 'bg-warning bg-opacity-10 text-warning border border-warning-500',\n destructive: 'bg-destructive bg-opacity-10 text-destructive-600 border border-destructive-500',\n brand: 'bg-brand bg-opacity-10 text-brand-600 border border-brand-500',\n outline: 'bg-transparent text-foreground border border-foreground-muted',\n },\n size: {\n xs: 'px-1.5 py-[3px] text-2xs leading-none tracking-wide uppercase',\n sm: 'px-2 py-0.5 text-xs',\n md: 'px-2 py-0.5 text-xs',\n lg: 'px-3 py-0.5 text-sm',\n /** @deprecated Use xs */ tiny: 'px-1.5 py-[3px] text-2xs leading-none tracking-wide uppercase',\n /** @deprecated Use sm */ small: 'px-2 py-0.5 text-xs',\n /** @deprecated Use lg */ large: 'px-3 py-0.5 text-sm',\n },\n dot: {\n true: '',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'sm',\n },\n }\n)\n\nconst dotVariants = cva('size-2 rounded-full', {\n variants: {\n position: {\n start: '-ms-0.5 me-1.5',\n end: 'ms-1.5 -me-0.5',\n },\n },\n defaultVariants: {\n position: 'start',\n },\n})\n\nexport interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {\n dot?: boolean\n dotPosition?: 'start' | 'end'\n}\n\nconst Badge = React.forwardRef<HTMLSpanElement, BadgeProps>(\n ({ className, variant, size, dot, dotPosition = 'end', children, ...props }, ref) => {\n if (process.env.NODE_ENV !== 'production') {\n const deprecatedSizes = ['tiny', 'small', 'large']\n if (size && deprecatedSizes.includes(size as string)) {\n console.warn(`[Parto UI] Badge: size=\"${size}\" is deprecated. Use xs|sm|md|lg instead.`)\n }\n }\n\n return (\n <span ref={ref} data-slot=\"badge\" className={cn(badgeVariants({ variant, size }), className)} {...props}>\n {dot && dotPosition === 'start' && (\n <svg\n aria-hidden=\"true\"\n className={cn(dotVariants({ position: 'start' }))}\n fill=\"currentColor\"\n viewBox=\"0 0 8 8\"\n >\n <circle cx=\"4\" cy=\"4\" r=\"3\" />\n </svg>\n )}\n {children}\n {dot && dotPosition === 'end' && (\n <svg\n aria-hidden=\"true\"\n className={cn(dotVariants({ position: 'end' }))}\n fill=\"currentColor\"\n viewBox=\"0 0 8 8\"\n >\n <circle cx=\"4\" cy=\"4\" r=\"3\" />\n </svg>\n )}\n </span>\n )\n }\n)\n\nBadge.displayName = 'Badge'\n\nexport { Badge, badgeVariants }\n"]}
|