@vlrc-fe/components 2.7.0 → 2.8.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/CHANGELOG.md +25 -0
- package/dist/ConfirmModal.d.ts +2 -3
- package/dist/ConfirmModal.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableFacetedFilter.d.ts.map +1 -1
- package/dist/DataTable/components/DataTablePagination.d.ts.map +1 -1
- package/dist/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/Dropdown/types.d.ts +1 -1
- package/dist/Dropdown/types.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/FormDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts +2 -1
- package/dist/Form/FormDatePicker/MonthPickerPanel.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts +7 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts +5 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimeInput.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/TimePicker.d.ts.map +1 -1
- package/dist/Form/FormDatePicker/types.d.ts +5 -0
- package/dist/Form/FormDatePicker/types.d.ts.map +1 -1
- package/dist/Form/FormFileUpload/index.d.ts.map +1 -1
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts +2 -2
- package/dist/Form/FormNumberInput/useFormNumberInput.d.ts.map +1 -1
- package/dist/Form/FormSelect/FormSelect.d.ts.map +1 -1
- package/dist/Form/FormSelect/types.d.ts +1 -1
- package/dist/Form/FormSelect/types.d.ts.map +1 -1
- package/dist/Form/FormSelect/useFormSelect.d.ts +1 -1
- package/dist/Form/FormSelect/useFormSelect.d.ts.map +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts +3 -31
- package/dist/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/MultiSelect/renderers.d.ts.map +1 -1
- package/dist/MultiSelect/type.d.ts +1 -0
- package/dist/MultiSelect/type.d.ts.map +1 -1
- package/dist/MultiSelect/useMultiSelect.d.ts.map +1 -1
- package/dist/Select/BaseSelect.d.ts.map +1 -1
- package/dist/Select/MultiSelectTags.d.ts.map +1 -1
- package/dist/Select/type.d.ts +1 -1
- package/dist/Select/type.d.ts.map +1 -1
- package/dist/Typography/Code.d.ts.map +1 -1
- package/dist/Typography/Link.d.ts.map +1 -1
- package/dist/Typography/Paragraph.d.ts.map +1 -1
- package/dist/Typography/Text.d.ts.map +1 -1
- package/dist/Typography/Title.d.ts.map +1 -1
- package/dist/Typography/types.d.ts +37 -1
- package/dist/Typography/types.d.ts.map +1 -1
- package/dist/Typography/utils.d.ts +3 -2
- package/dist/Typography/utils.d.ts.map +1 -1
- package/dist/assets/stylex.css +36 -24
- package/dist/index.cjs +1 -1
- package/dist/index.js +108 -108
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +18 -55
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +89 -89
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +29 -29
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +128 -124
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +16 -16
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +2 -2
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +114 -117
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +95 -92
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +41 -41
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +36 -164
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +1 -1
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +1 -1
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +128 -120
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +151 -151
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +96 -91
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +18 -18
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +2 -2
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +15 -15
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +147 -103
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +10 -10
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +31 -31
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +3 -3
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +2 -2
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +53 -49
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +35 -38
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +114 -107
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +8 -8
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +53 -53
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +130 -102
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +134 -130
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +7 -7
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +95 -95
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +2 -2
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +113 -99
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +8 -8
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +16 -16
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +20 -20
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +154 -80
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +2 -2
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +24 -24
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +2 -2
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +15 -15
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +3 -3
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +2 -2
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +1 -1
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +88 -88
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +64 -64
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +116 -63
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +9 -9
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +1 -1
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +41 -41
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +73 -73
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +34 -34
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +8 -8
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +1 -1
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +30 -30
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +21 -21
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +60 -91
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +59 -59
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +2 -2
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +50 -50
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +11 -11
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +1 -1
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +33 -33
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +11 -11
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +2 -2
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +7 -7
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +74 -65
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +122 -15
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +9 -9
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +7 -7
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +12 -12
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +15 -15
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +13 -13
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +2 -2
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +140 -115
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +4 -4
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +47 -47
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +15 -268
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +36 -25
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +4 -4
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +5 -8
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +5 -15
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +5 -20
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +5 -16
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +8 -5
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +11 -281
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +7 -4
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +12 -6
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +6 -5
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +6 -5
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +6 -7
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +10 -68
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +9 -10
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +5 -201
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +7 -123
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +7 -31
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +26 -11
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +66 -17
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +8 -68
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +13 -13
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +6 -6
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +15 -278
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +171 -126
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +21 -19
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +16 -8
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +123 -13
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +19 -7
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +29 -26
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +8 -6
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +9 -9
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +13 -8
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +9 -4
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +9 -6
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +4 -6
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +42 -9
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +386 -8
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +37 -14
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +22 -10
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +367 -59
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +57 -9
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +39 -4
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +116 -35
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +85 -387
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +87 -35
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +116 -18
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +97 -55
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +154 -37
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +76 -121
- package/dist/index229.cjs +9 -1
- package/dist/index229.js +588 -77
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +212 -29
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +64 -68
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +42 -115
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +65 -98
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +48 -149
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +98 -68
- package/dist/index235.cjs +1 -9
- package/dist/index235.js +214 -580
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +29 -66
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +23 -40
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +55 -59
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +419 -46
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +200 -312
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +30 -97
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +205 -196
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +228 -124
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +161 -86
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +89 -143
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +140 -76
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +92 -84
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +84 -26
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +26 -35
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +39 -86
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +84 -231
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +234 -44
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +39 -26
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +30 -14
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +14 -13
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +13 -3
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +4 -87
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +83 -174
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +66 -142
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +217 -62
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +135 -47
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +47 -260
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +273 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +7 -4
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +4 -503
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +472 -177
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +205 -23
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +21 -1008
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +1014 -21
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +22 -207
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +181 -130
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +132 -99
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +123 -19
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +17 -79
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +75 -90
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +91 -9
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +12 -91
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +62 -5
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +92 -31
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +29 -208
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +123 -99
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +17 -17
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +28 -28
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +30 -30
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +11 -11
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +22 -28
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +20 -20
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +7 -7
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +28 -28
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +28 -61
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +60 -15
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/calendar.d.ts +1 -1
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/command.d.ts +1 -1
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/editable.d.ts.map +1 -1
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-otp.d.ts +1 -1
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/pagination.d.ts +3 -1
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/toggle-group.d.ts +1 -1
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/useBreakpoint.d.ts +0 -4
- package/dist/ui/useBreakpoint.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index242.cjs +0 -1
- package/dist/index242.js +0 -25
- package/dist/index243.cjs +0 -1
- package/dist/index243.js +0 -26
- package/dist/index244.cjs +0 -1
- package/dist/index244.js +0 -63
- package/dist/index245.cjs +0 -1
- package/dist/index245.js +0 -422
- package/dist/index246.cjs +0 -1
- package/dist/index246.js +0 -25
- package/dist/index247.cjs +0 -1
- package/dist/index247.js +0 -209
package/dist/index42.js
CHANGED
|
@@ -1,69 +1,224 @@
|
|
|
1
|
-
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import * as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { Avatar as e, AvatarFallback as t, AvatarImage as n } from "./index40.js";
|
|
3
|
+
import { Popover as r, PopoverContent as i, PopoverTrigger as a } from "./index41.js";
|
|
4
|
+
import * as o from "@stylexjs/stylex";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
import * as l from "react";
|
|
7
|
+
import { c as u } from "react/compiler-runtime";
|
|
8
|
+
// src/ui/avatar.tsx
|
|
9
|
+
var d = l.createContext(null), f = {
|
|
10
|
+
root: {
|
|
11
|
+
kVAEAm: "x1n2onr6",
|
|
12
|
+
k1xSpc: "x78zum5",
|
|
13
|
+
kmuXW: "x2lah0s",
|
|
14
|
+
kVQacm: "xb3r6kr",
|
|
15
|
+
kaIpWk: "x7xypw4",
|
|
16
|
+
$$css: !0
|
|
17
|
+
},
|
|
18
|
+
sizeXxs: {
|
|
19
|
+
kzqmXN: "xwqq7k2",
|
|
20
|
+
kZKoxP: "xmll18r",
|
|
21
|
+
kGuDYH: "x2ohwh0",
|
|
22
|
+
$$css: !0
|
|
23
|
+
},
|
|
24
|
+
sizeXs: {
|
|
25
|
+
kzqmXN: "xp8d6y2",
|
|
26
|
+
kZKoxP: "xam5rvr",
|
|
27
|
+
kGuDYH: "x12lo8hy",
|
|
28
|
+
$$css: !0
|
|
29
|
+
},
|
|
30
|
+
sizeSm: {
|
|
31
|
+
kzqmXN: "xh29eag",
|
|
32
|
+
kZKoxP: "xb8l8e1",
|
|
33
|
+
kGuDYH: "xboafo0",
|
|
34
|
+
$$css: !0
|
|
35
|
+
},
|
|
36
|
+
sizeMd: {
|
|
37
|
+
kzqmXN: "xs5h3dt",
|
|
38
|
+
kZKoxP: "xettwda",
|
|
39
|
+
kGuDYH: "xkpwil5",
|
|
40
|
+
$$css: !0
|
|
41
|
+
},
|
|
42
|
+
sizeLg: {
|
|
43
|
+
kzqmXN: "xvm51jw",
|
|
44
|
+
kZKoxP: "xwaiz5r",
|
|
45
|
+
kGuDYH: "x1jchvi3",
|
|
46
|
+
$$css: !0
|
|
47
|
+
},
|
|
48
|
+
sizeXl: {
|
|
49
|
+
kzqmXN: "x188tqju",
|
|
50
|
+
kZKoxP: "x1pizb70",
|
|
51
|
+
kGuDYH: "x1603h9y",
|
|
52
|
+
$$css: !0
|
|
53
|
+
},
|
|
54
|
+
sizeXxl: {
|
|
55
|
+
kzqmXN: "xekueh",
|
|
56
|
+
kZKoxP: "x1sh0tsm",
|
|
57
|
+
kGuDYH: "xngnso2",
|
|
58
|
+
$$css: !0
|
|
59
|
+
},
|
|
60
|
+
image: {
|
|
61
|
+
kOBAk4: "x1y5e3q9",
|
|
62
|
+
kzqmXN: "xh8yej3",
|
|
63
|
+
kZKoxP: "x5yr21d",
|
|
64
|
+
kVIFPx: "xl1xv1r",
|
|
65
|
+
$$css: !0
|
|
66
|
+
},
|
|
67
|
+
fallback: {
|
|
68
|
+
k1xSpc: "x78zum5",
|
|
69
|
+
kzqmXN: "xh8yej3",
|
|
70
|
+
kZKoxP: "x5yr21d",
|
|
71
|
+
kGNEyG: "x6s0dn4",
|
|
72
|
+
kjj79g: "xl56j7k",
|
|
73
|
+
kaIpWk: "x7xypw4",
|
|
74
|
+
kWkggS: "x1qry0bl",
|
|
75
|
+
kMwMTN: "xw3nh4a",
|
|
76
|
+
k63SB2: "xk50ysn",
|
|
77
|
+
$$css: !0
|
|
78
|
+
},
|
|
79
|
+
group: {
|
|
80
|
+
k1xSpc: "x3nfvp2",
|
|
81
|
+
kGNEyG: "x6s0dn4",
|
|
82
|
+
kXwgrk: "x1q0g3np",
|
|
83
|
+
$$css: !0
|
|
84
|
+
},
|
|
85
|
+
groupItem: {
|
|
86
|
+
koQZXg: "xxyw1jk",
|
|
87
|
+
kMzoRj: "xdh2fpr",
|
|
88
|
+
ksu8eU: "x1y0btm7",
|
|
89
|
+
kVAM5u: "x1ft9520",
|
|
90
|
+
kMWQxv: "x4o9dxs",
|
|
91
|
+
$$css: !0
|
|
92
|
+
},
|
|
93
|
+
overflowFallback: {
|
|
94
|
+
kWkggS: "x1qry0bl",
|
|
95
|
+
kMwMTN: "x84br7x",
|
|
96
|
+
k63SB2: "x1s688f",
|
|
97
|
+
kkrTdU: "x1ypdohk",
|
|
98
|
+
$$css: !0
|
|
99
|
+
},
|
|
100
|
+
overflowPopoverContent: {
|
|
101
|
+
kzqmXN: "x14atkfc",
|
|
102
|
+
ks0D6T: "x9h9p8b",
|
|
103
|
+
kmVPX3: "x79iv2k",
|
|
104
|
+
$$css: !0
|
|
105
|
+
}
|
|
106
|
+
}, p = {
|
|
107
|
+
xxs: f.sizeXxs,
|
|
108
|
+
xs: f.sizeXs,
|
|
109
|
+
sm: f.sizeSm,
|
|
110
|
+
md: f.sizeMd,
|
|
111
|
+
lg: f.sizeLg,
|
|
112
|
+
xl: f.sizeXl,
|
|
113
|
+
xxl: f.sizeXxl
|
|
114
|
+
};
|
|
115
|
+
function m(t) {
|
|
116
|
+
let n = u(17), r, i, a, c;
|
|
117
|
+
n[0] === t ? (r = n[1], i = n[2], a = n[3], c = n[4]) : ({className: r, size: a, sx: c, ...i} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = c);
|
|
118
|
+
let m = l.useContext(d), h = a ?? m?.size ?? "md", g = !!m?.inGroup, _;
|
|
119
|
+
n[5] !== g || n[6] !== h || n[7] !== c ? (_ = o.props(f.root, p[h] ?? f.sizeMd, g && f.groupItem, c), n[5] = g, n[6] = h, n[7] = c, n[8] = _) : _ = n[8];
|
|
120
|
+
let v = _, y;
|
|
121
|
+
n[9] !== r || n[10] !== v.className ? (y = r ? `${v.className || ""} ${r}`.trim() : v.className, n[9] = r, n[10] = v.className, n[11] = y) : y = n[11];
|
|
122
|
+
let b;
|
|
123
|
+
return n[12] !== i || n[13] !== h || n[14] !== v || n[15] !== y ? (b = /* @__PURE__ */ s(e, {
|
|
124
|
+
"data-slot": "avatar",
|
|
125
|
+
"data-size": h,
|
|
126
|
+
...v,
|
|
127
|
+
className: y,
|
|
128
|
+
...i
|
|
129
|
+
}), n[12] = i, n[13] = h, n[14] = v, n[15] = y, n[16] = b) : b = n[16], b;
|
|
31
130
|
}
|
|
32
|
-
function
|
|
33
|
-
let t =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
131
|
+
function h(e) {
|
|
132
|
+
let t = u(13), r, i, a;
|
|
133
|
+
t[0] === e ? (r = t[1], i = t[2], a = t[3]) : ({className: r, sx: a, ...i} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = a);
|
|
134
|
+
let c;
|
|
135
|
+
t[4] === a ? c = t[5] : (c = o.props(f.image, a), t[4] = a, t[5] = c);
|
|
136
|
+
let l = c, d;
|
|
137
|
+
t[6] !== r || t[7] !== l.className ? (d = r ? `${l.className || ""} ${r}`.trim() : l.className, t[6] = r, t[7] = l.className, t[8] = d) : d = t[8];
|
|
138
|
+
let p;
|
|
139
|
+
return t[9] !== i || t[10] !== l || t[11] !== d ? (p = /* @__PURE__ */ s(n, {
|
|
140
|
+
"data-slot": "avatar-image",
|
|
141
|
+
...l,
|
|
142
|
+
className: d,
|
|
143
|
+
...i
|
|
144
|
+
}), t[9] = i, t[10] = l, t[11] = d, t[12] = p) : p = t[12], p;
|
|
38
145
|
}
|
|
39
|
-
function
|
|
40
|
-
let
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
146
|
+
function g(e) {
|
|
147
|
+
let n = u(13), r, i, a;
|
|
148
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, sx: a, ...i} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
149
|
+
let c;
|
|
150
|
+
n[4] === a ? c = n[5] : (c = o.props(f.fallback, a), n[4] = a, n[5] = c);
|
|
151
|
+
let l = c, d;
|
|
152
|
+
n[6] !== r || n[7] !== l.className ? (d = r ? `${l.className || ""} ${r}`.trim() : l.className, n[6] = r, n[7] = l.className, n[8] = d) : d = n[8];
|
|
153
|
+
let p;
|
|
154
|
+
return n[9] !== i || n[10] !== l || n[11] !== d ? (p = /* @__PURE__ */ s(t, {
|
|
155
|
+
"data-slot": "avatar-fallback",
|
|
156
|
+
...l,
|
|
157
|
+
className: d,
|
|
158
|
+
...i
|
|
159
|
+
}), n[9] = i, n[10] = l, n[11] = d, n[12] = p) : p = n[12], p;
|
|
45
160
|
}
|
|
46
|
-
function
|
|
47
|
-
let
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
161
|
+
function _({ className: e, max: t, size: n = "md", sx: u, children: p, ...h }) {
|
|
162
|
+
let _ = o.props(f.group, u), v = l.Children.toArray(p).filter(l.isValidElement), y = t === void 0 ? v : v.slice(0, t), b = t === void 0 ? [] : v.slice(t), x = t === void 0 ? 0 : Math.max(0, v.length - t), [S, C] = l.useState(!1), w = l.useRef(null), T = () => {
|
|
163
|
+
w.current && clearTimeout(w.current), C(!0);
|
|
164
|
+
}, E = () => {
|
|
165
|
+
w.current = setTimeout(() => {
|
|
166
|
+
C(!1);
|
|
167
|
+
}, 150);
|
|
168
|
+
};
|
|
169
|
+
l.useEffect(() => () => {
|
|
170
|
+
w.current && clearTimeout(w.current);
|
|
171
|
+
}, []);
|
|
172
|
+
let D = l.useMemo(() => ({
|
|
173
|
+
size: n,
|
|
174
|
+
inGroup: !0
|
|
175
|
+
}), [n]);
|
|
176
|
+
return /* @__PURE__ */ s(d.Provider, {
|
|
177
|
+
value: D,
|
|
178
|
+
children: /* @__PURE__ */ c("div", {
|
|
179
|
+
role: "group",
|
|
180
|
+
"data-slot": "avatar-group",
|
|
181
|
+
"data-size": n,
|
|
182
|
+
..._,
|
|
183
|
+
className: e ? `${_.className || ""} ${e}`.trim() : _.className,
|
|
54
184
|
...h,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
185
|
+
children: [y, x > 0 && /* @__PURE__ */ c(r, {
|
|
186
|
+
open: S,
|
|
187
|
+
onOpenChange: C,
|
|
188
|
+
children: [/* @__PURE__ */ s(a, {
|
|
189
|
+
asChild: !0,
|
|
190
|
+
children: /* @__PURE__ */ s("div", {
|
|
191
|
+
className: "x3nfvp2 x1ypdohk",
|
|
192
|
+
onMouseEnter: T,
|
|
193
|
+
onMouseLeave: E,
|
|
194
|
+
children: /* @__PURE__ */ s(m, {
|
|
195
|
+
size: n,
|
|
196
|
+
"data-slot": "avatar-group-overflow",
|
|
197
|
+
children: /* @__PURE__ */ c(g, {
|
|
198
|
+
sx: f.overflowFallback,
|
|
199
|
+
children: ["+", x]
|
|
200
|
+
})
|
|
201
|
+
})
|
|
202
|
+
})
|
|
203
|
+
}), /* @__PURE__ */ s(i, {
|
|
204
|
+
side: "top",
|
|
205
|
+
align: "center",
|
|
206
|
+
sx: f.overflowPopoverContent,
|
|
207
|
+
onMouseEnter: T,
|
|
208
|
+
onMouseLeave: E,
|
|
209
|
+
children: /* @__PURE__ */ s(d.Provider, {
|
|
210
|
+
value: {
|
|
211
|
+
size: n,
|
|
212
|
+
inGroup: !1
|
|
213
|
+
},
|
|
214
|
+
children: /* @__PURE__ */ s("div", {
|
|
215
|
+
className: "x78zum5 x1a02dak x13z6uf9 x6s0dn4",
|
|
216
|
+
children: b
|
|
217
|
+
})
|
|
218
|
+
})
|
|
219
|
+
})]
|
|
220
|
+
})]
|
|
66
221
|
})
|
|
67
222
|
});
|
|
68
223
|
}
|
|
69
|
-
export {
|
|
224
|
+
export { m as Avatar, g as AvatarFallback, _ as AvatarGroup, h as AvatarImage };
|
package/dist/index43.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs")
|
|
1
|
+
const e=require("./index2.cjs");let t=require("@stylexjs/stylex");t=e.__toESM(t,1);let n=require("react/jsx-runtime"),r=require("react");r=e.__toESM(r,1);let i=require("@radix-ui/react-slot");var a={base:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kaIpWk:`x7xypw4`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`x9r1u3d`,kg3NbH:`x97vtpp`,k8WAf4:`x1dus959`,kGuDYH:`xboafo0`,k63SB2:`xk50ysn`,kzqmXN:`xeq5yr9`,khDVqt:`xuxw1ft`,kmuXW:`x2lah0s`,kOIVth:`xvh977a`,k1ekBW:`x18o7qk9`,kIyJzY:`xx6bhzk`,kVQacm:`xb3r6kr`,kI3sdo:`x1a2a7pz`,kOJeXU:`x156qtes`,kEtg5x:`x1ippke1`,$$css:!0},sizeXxs:{kZKoxP:`x1l36t39`,kGuDYH:`x2ohwh0`,kg3NbH:`x18a9hih`,k8WAf4:`xt970qd`,kOIVth:`x1enigpx`,$$css:!0},sizeXs:{kZKoxP:`xmll18r`,kGuDYH:`x12lo8hy`,kg3NbH:`x8srd2o`,k8WAf4:`x1iv7sc9`,kOIVth:`x4484yh`,$$css:!0},sizeSm:{kZKoxP:`x11q3zg3`,kGuDYH:`xboafo0`,kg3NbH:`x97vtpp`,k8WAf4:`x1iv7sc9`,kOIVth:`xvh977a`,$$css:!0},sizeMd:{kGuDYH:`xboafo0`,kg3NbH:`x97vtpp`,k8WAf4:`x1dus959`,kOIVth:`xvh977a`,$$css:!0},sizeLg:{kZKoxP:`xb8l8e1`,kGuDYH:`x1dcheo9`,kg3NbH:`xvpgqt4`,k8WAf4:`x1dus959`,kOIVth:`xx7b8my`,$$css:!0},sizeXl:{kZKoxP:`xettwda`,kGuDYH:`xkpwil5`,kg3NbH:`x1ryrjj2`,k8WAf4:`x1o5vn8x`,kOIVth:`xpj7pl4`,$$css:!0},sizeXxl:{kZKoxP:`xk8t5le`,kGuDYH:`x1jchvi3`,kg3NbH:`x13s4r1c`,k8WAf4:`x1qrv0by`,kOIVth:`x13z6uf9`,$$css:!0},variantDefault:{kVAM5u:`x9r1u3d`,kWkggS:`x1j7ufkg`,kMwMTN:`xstwp1q`,kKhh5M:`x18uuni6`,$$css:!0},variantSecondary:{kVAM5u:`x9r1u3d`,kWkggS:`xr2cb9l`,kMwMTN:`x2mg7mp`,kKhh5M:`x18uuni6`,$$css:!0},variantDestructive:{kVAM5u:`x9r1u3d`,kWkggS:`x57dptr`,kMwMTN:`x1f7m26b`,kKhh5M:`x18uuni6`,kEtg5x:`xi3z2r8`,$$css:!0},variantOutline:{kVAM5u:`xb30jbz`,kWkggS:`xjbqb8w`,kMwMTN:`x84br7x`,kGzVvX:`x9p52ec`,kDPRdz:`x10ubyu6`,$$css:!0}},o={default:a.variantDefault,secondary:a.variantSecondary,destructive:a.variantDestructive,outline:a.variantOutline},s={xxs:a.sizeXxs,xs:a.sizeXs,sm:a.sizeSm,md:a.sizeMd,lg:a.sizeLg,xl:a.sizeXl,xxl:a.sizeXxl};function c({className:e,variant:r=`default`,size:c=`md`,asChild:l=!1,sx:u,...d}){let f=l?i.Slot:`span`,p=c===`md`?void 0:s[c],m=t.props(a.base,o[r],p,u);return(0,n.jsx)(f,{"data-slot":`badge`,"data-variant":r,"data-size":c,...m,className:e?`${m.className||``} ${e}`.trim():m.className,...d})}function l(e){let n=e?.variant||`default`,r=e?.size||`md`,i=r===`md`?void 0:s[r];return t.props(a.base,o[n],i).className||``}exports.Badge=c,exports.badgeVariants=l;
|
package/dist/index43.js
CHANGED
|
@@ -1,57 +1,145 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as e from "@stylexjs/stylex";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
root: {
|
|
4
|
+
import { Slot as n } from "@radix-ui/react-slot";
|
|
5
|
+
// src/ui/badge.tsx
|
|
6
|
+
var r = {
|
|
7
|
+
base: {
|
|
9
8
|
k1xSpc: "x3nfvp2",
|
|
10
9
|
kGNEyG: "x6s0dn4",
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
kjj79g: "xl56j7k",
|
|
11
|
+
kaIpWk: "x7xypw4",
|
|
12
|
+
kMzoRj: "xmkeg23",
|
|
13
|
+
ksu8eU: "x1y0btm7",
|
|
14
|
+
kVAM5u: "x9r1u3d",
|
|
15
|
+
kg3NbH: "x97vtpp",
|
|
16
|
+
k8WAf4: "x1dus959",
|
|
17
|
+
kGuDYH: "xboafo0",
|
|
18
|
+
k63SB2: "xk50ysn",
|
|
19
|
+
kzqmXN: "xeq5yr9",
|
|
20
|
+
khDVqt: "xuxw1ft",
|
|
21
|
+
kmuXW: "x2lah0s",
|
|
22
|
+
kOIVth: "xvh977a",
|
|
23
|
+
k1ekBW: "x18o7qk9",
|
|
24
|
+
kIyJzY: "xx6bhzk",
|
|
25
|
+
kVQacm: "xb3r6kr",
|
|
26
|
+
kI3sdo: "x1a2a7pz",
|
|
27
|
+
kOJeXU: "x156qtes",
|
|
28
|
+
kEtg5x: "x1ippke1",
|
|
13
29
|
$$css: !0
|
|
14
30
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
sizeXxs: {
|
|
32
|
+
kZKoxP: "x1l36t39",
|
|
33
|
+
kGuDYH: "x2ohwh0",
|
|
34
|
+
kg3NbH: "x18a9hih",
|
|
35
|
+
k8WAf4: "xt970qd",
|
|
36
|
+
kOIVth: "x1enigpx",
|
|
37
|
+
$$css: !0
|
|
38
|
+
},
|
|
39
|
+
sizeXs: {
|
|
40
|
+
kZKoxP: "xmll18r",
|
|
41
|
+
kGuDYH: "x12lo8hy",
|
|
42
|
+
kg3NbH: "x8srd2o",
|
|
43
|
+
k8WAf4: "x1iv7sc9",
|
|
44
|
+
kOIVth: "x4484yh",
|
|
45
|
+
$$css: !0
|
|
46
|
+
},
|
|
47
|
+
sizeSm: {
|
|
48
|
+
kZKoxP: "x11q3zg3",
|
|
49
|
+
kGuDYH: "xboafo0",
|
|
50
|
+
kg3NbH: "x97vtpp",
|
|
51
|
+
k8WAf4: "x1iv7sc9",
|
|
52
|
+
kOIVth: "xvh977a",
|
|
53
|
+
$$css: !0
|
|
54
|
+
},
|
|
55
|
+
sizeMd: {
|
|
56
|
+
kGuDYH: "xboafo0",
|
|
57
|
+
kg3NbH: "x97vtpp",
|
|
58
|
+
k8WAf4: "x1dus959",
|
|
59
|
+
kOIVth: "xvh977a",
|
|
60
|
+
$$css: !0
|
|
61
|
+
},
|
|
62
|
+
sizeLg: {
|
|
63
|
+
kZKoxP: "xb8l8e1",
|
|
64
|
+
kGuDYH: "x1dcheo9",
|
|
65
|
+
kg3NbH: "xvpgqt4",
|
|
66
|
+
k8WAf4: "x1dus959",
|
|
67
|
+
kOIVth: "xx7b8my",
|
|
68
|
+
$$css: !0
|
|
69
|
+
},
|
|
70
|
+
sizeXl: {
|
|
71
|
+
kZKoxP: "xettwda",
|
|
72
|
+
kGuDYH: "xkpwil5",
|
|
73
|
+
kg3NbH: "x1ryrjj2",
|
|
74
|
+
k8WAf4: "x1o5vn8x",
|
|
75
|
+
kOIVth: "xpj7pl4",
|
|
76
|
+
$$css: !0
|
|
77
|
+
},
|
|
78
|
+
sizeXxl: {
|
|
79
|
+
kZKoxP: "xk8t5le",
|
|
80
|
+
kGuDYH: "x1jchvi3",
|
|
81
|
+
kg3NbH: "x13s4r1c",
|
|
82
|
+
k8WAf4: "x1qrv0by",
|
|
83
|
+
kOIVth: "x13z6uf9",
|
|
84
|
+
$$css: !0
|
|
85
|
+
},
|
|
86
|
+
variantDefault: {
|
|
87
|
+
kVAM5u: "x9r1u3d",
|
|
88
|
+
kWkggS: "x1j7ufkg",
|
|
89
|
+
kMwMTN: "xstwp1q",
|
|
90
|
+
kKhh5M: "x18uuni6",
|
|
91
|
+
$$css: !0
|
|
92
|
+
},
|
|
93
|
+
variantSecondary: {
|
|
94
|
+
kVAM5u: "x9r1u3d",
|
|
95
|
+
kWkggS: "xr2cb9l",
|
|
96
|
+
kMwMTN: "x2mg7mp",
|
|
97
|
+
kKhh5M: "x18uuni6",
|
|
98
|
+
$$css: !0
|
|
99
|
+
},
|
|
100
|
+
variantDestructive: {
|
|
101
|
+
kVAM5u: "x9r1u3d",
|
|
102
|
+
kWkggS: "x57dptr",
|
|
103
|
+
kMwMTN: "x1f7m26b",
|
|
104
|
+
kKhh5M: "x18uuni6",
|
|
105
|
+
kEtg5x: "xi3z2r8",
|
|
106
|
+
$$css: !0
|
|
107
|
+
},
|
|
108
|
+
variantOutline: {
|
|
109
|
+
kVAM5u: "xb30jbz",
|
|
110
|
+
kWkggS: "xjbqb8w",
|
|
111
|
+
kMwMTN: "x84br7x",
|
|
112
|
+
kGzVvX: "x9p52ec",
|
|
113
|
+
kDPRdz: "x10ubyu6",
|
|
21
114
|
$$css: !0
|
|
22
115
|
}
|
|
116
|
+
}, i = {
|
|
117
|
+
default: r.variantDefault,
|
|
118
|
+
secondary: r.variantSecondary,
|
|
119
|
+
destructive: r.variantDestructive,
|
|
120
|
+
outline: r.variantOutline
|
|
121
|
+
}, a = {
|
|
122
|
+
xxs: r.sizeXxs,
|
|
123
|
+
xs: r.sizeXs,
|
|
124
|
+
sm: r.sizeSm,
|
|
125
|
+
md: r.sizeMd,
|
|
126
|
+
lg: r.sizeLg,
|
|
127
|
+
xl: r.sizeXl,
|
|
128
|
+
xxl: r.sizeXxl
|
|
23
129
|
};
|
|
24
|
-
function
|
|
25
|
-
let
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
...h,
|
|
34
|
-
children: [g.map((e, t) => y(e, t)), v > 0 && (f ? f(v, _) : p ? /* @__PURE__ */ o(t, { children: [/* @__PURE__ */ a(r, {
|
|
35
|
-
asChild: !0,
|
|
36
|
-
children: /* @__PURE__ */ o(e, {
|
|
37
|
-
variant: "outline",
|
|
38
|
-
"data-slot": "badge-overflow-trigger",
|
|
39
|
-
sx: s.overflowBadge,
|
|
40
|
-
children: ["+", v]
|
|
41
|
-
})
|
|
42
|
-
}), /* @__PURE__ */ a(n, {
|
|
43
|
-
align: "start",
|
|
44
|
-
sideOffset: 4,
|
|
45
|
-
children: /* @__PURE__ */ a("div", {
|
|
46
|
-
"data-slot": "badge-overflow-popover-content",
|
|
47
|
-
className: "x78zum5 x1a02dak x1m5ztt4 x8z6zn4",
|
|
48
|
-
children: _.map((e, t) => y(e, u + t))
|
|
49
|
-
})
|
|
50
|
-
})] }) : /* @__PURE__ */ o(e, {
|
|
51
|
-
variant: "outline",
|
|
52
|
-
"data-slot": "badge-overflow-count",
|
|
53
|
-
children: ["+", v]
|
|
54
|
-
}))]
|
|
130
|
+
function o({ className: o, variant: s = "default", size: c = "md", asChild: l = !1, sx: u, ...d }) {
|
|
131
|
+
let f = l ? n : "span", p = c === "md" ? void 0 : a[c], m = e.props(r.base, i[s], p, u);
|
|
132
|
+
return /* @__PURE__ */ t(f, {
|
|
133
|
+
"data-slot": "badge",
|
|
134
|
+
"data-variant": s,
|
|
135
|
+
"data-size": c,
|
|
136
|
+
...m,
|
|
137
|
+
className: o ? `${m.className || ""} ${o}`.trim() : m.className,
|
|
138
|
+
...d
|
|
55
139
|
});
|
|
56
140
|
}
|
|
57
|
-
|
|
141
|
+
function s(t) {
|
|
142
|
+
let n = t?.variant || "default", o = t?.size || "md", s = o === "md" ? void 0 : a[o];
|
|
143
|
+
return e.props(r.base, i[n], s).className || "";
|
|
144
|
+
}
|
|
145
|
+
export { o as Badge, s as badgeVariants };
|
package/dist/index44.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs")
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index41.cjs"),n=require("./index43.cjs");let r=require("@stylexjs/stylex");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react");a=e.__toESM(a,1);var o={root:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kwnvtZ:`x1a02dak`,kOIVth:`x1m5ztt4`,$$css:!0},overflowBadge:{kkrTdU:`x1ypdohk`,kfSwDN:`x87ps6o`,k1ekBW:`x19991ni`,kIyJzY:`xx6bhzk`,kKhh5M:`x5z6fxw`,$$css:!0}};function s({className:e,items:a,max:s=3,renderBadge:c,renderOverflow:l,showPopover:u=!0,sx:d,...f}){let p=a.slice(0,s),m=a.slice(s),h=m.length,g=c??((e,t)=>(0,i.jsx)(n.Badge,{variant:`secondary`,children:typeof e==`string`?e:String(t)},t)),_=r.props(o.root,d);return(0,i.jsxs)(`div`,{"data-slot":`badge-overflow`,..._,className:e?`${_.className||``} ${e}`.trim():_.className,...f,children:[p.map((e,t)=>g(e,t)),h>0&&(l?l(h,m):u?(0,i.jsxs)(t.Popover,{children:[(0,i.jsx)(t.PopoverTrigger,{asChild:!0,children:(0,i.jsxs)(n.Badge,{variant:`outline`,"data-slot":`badge-overflow-trigger`,sx:o.overflowBadge,children:[`+`,h]})}),(0,i.jsx)(t.PopoverContent,{align:`start`,sideOffset:4,children:(0,i.jsx)(`div`,{"data-slot":`badge-overflow-popover-content`,className:`x78zum5 x1a02dak x1m5ztt4 x8z6zn4`,children:m.map((e,t)=>g(e,s+t))})})]}):(0,i.jsxs)(n.Badge,{variant:`outline`,"data-slot":`badge-overflow-count`,children:[`+`,h]}))]})}exports.BadgeOverflow=s;
|