@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/index12.js
CHANGED
|
@@ -1,90 +1,83 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Icons as e } from "./index4.js";
|
|
2
|
+
import { resolveCustomTypographyStyle as t } from "./index7.js";
|
|
3
|
+
import { renderWithTooltip as ee, resolveTooltipContent as te } from "./index10.js";
|
|
4
|
+
import { typographyWeightStyles as ne } from "./index11.js";
|
|
5
|
+
import * as re from "@stylexjs/stylex";
|
|
6
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
7
|
import * as i from "react";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// src/Typography/Paragraph.tsx
|
|
8
|
-
var c = {
|
|
8
|
+
// src/Typography/Title.tsx
|
|
9
|
+
var a = {
|
|
9
10
|
base: {
|
|
10
11
|
kogj98: "x1ghz6dp",
|
|
12
|
+
k63SB2: "x1xlr1w8",
|
|
11
13
|
kMwMTN: "x84br7x",
|
|
12
|
-
kLWn49: "
|
|
14
|
+
kLWn49: "x132q4wb",
|
|
15
|
+
k1xSpc: "x78zum5",
|
|
16
|
+
kGNEyG: "x6s0dn4",
|
|
17
|
+
kOIVth: "x13z6uf9",
|
|
13
18
|
$$css: !0
|
|
14
19
|
},
|
|
15
20
|
sizeXxs: {
|
|
16
|
-
kGuDYH: "x6phcfz",
|
|
17
|
-
kLWn49: "x37zpob",
|
|
18
|
-
$$css: !0
|
|
19
|
-
},
|
|
20
|
-
sizeXs: {
|
|
21
21
|
kGuDYH: "x2ohwh0",
|
|
22
|
-
kLWn49: "
|
|
22
|
+
kLWn49: "xwn7fz2",
|
|
23
23
|
$$css: !0
|
|
24
24
|
},
|
|
25
|
-
|
|
25
|
+
sizeXs: {
|
|
26
26
|
kGuDYH: "xboafo0",
|
|
27
|
-
kLWn49: "
|
|
27
|
+
kLWn49: "xwn7fz2",
|
|
28
28
|
$$css: !0
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
sizeSm: {
|
|
31
31
|
kGuDYH: "xkpwil5",
|
|
32
|
-
kLWn49: "
|
|
32
|
+
kLWn49: "x1xfvgam",
|
|
33
33
|
$$css: !0
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
sizeMd: {
|
|
36
36
|
kGuDYH: "x1jchvi3",
|
|
37
|
-
kLWn49: "
|
|
37
|
+
kLWn49: "x1xfvgam",
|
|
38
38
|
$$css: !0
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
sizeLg: {
|
|
41
41
|
kGuDYH: "x1603h9y",
|
|
42
|
-
kLWn49: "
|
|
42
|
+
kLWn49: "xwn7fz2",
|
|
43
43
|
$$css: !0
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
sizeXl: {
|
|
46
46
|
kGuDYH: "xngnso2",
|
|
47
|
-
kLWn49: "
|
|
48
|
-
$$css: !0
|
|
49
|
-
},
|
|
50
|
-
defaultVariant: { $$css: !0 },
|
|
51
|
-
leadVariant: {
|
|
52
|
-
kGuDYH: "x1603h9y",
|
|
53
|
-
kLWn49: "x1dbl2gt",
|
|
54
|
-
kMwMTN: "xw3nh4a",
|
|
55
|
-
k63SB2: "xo1l8bm",
|
|
56
|
-
$$css: !0
|
|
57
|
-
},
|
|
58
|
-
spacingNone: {
|
|
59
|
-
k1K539: "xat24cr",
|
|
47
|
+
kLWn49: "x132q4wb",
|
|
60
48
|
$$css: !0
|
|
61
49
|
},
|
|
62
|
-
|
|
63
|
-
|
|
50
|
+
sizeXxl: {
|
|
51
|
+
kGuDYH: "x579bpy",
|
|
52
|
+
kLWn49: "x1u7k74",
|
|
53
|
+
kb6lSQ: "x72az59",
|
|
64
54
|
$$css: !0
|
|
65
55
|
},
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
defaultVariant: {
|
|
57
|
+
kMwMTN: "x84br7x",
|
|
68
58
|
$$css: !0
|
|
69
59
|
},
|
|
70
|
-
|
|
71
|
-
|
|
60
|
+
gradientVariant: {
|
|
61
|
+
kKwaWg: "xunasow",
|
|
62
|
+
kBahZS: "x1t23j8t",
|
|
63
|
+
kUisrP: "xg7jpbn",
|
|
72
64
|
$$css: !0
|
|
73
65
|
},
|
|
74
|
-
|
|
75
|
-
|
|
66
|
+
monoVariant: {
|
|
67
|
+
kMv6JI: "x17yh6e0",
|
|
68
|
+
k63SB2: "x1s688f",
|
|
76
69
|
$$css: !0
|
|
77
70
|
},
|
|
78
|
-
|
|
79
|
-
|
|
71
|
+
tight: {
|
|
72
|
+
kb6lSQ: "xrq0m5f",
|
|
80
73
|
$$css: !0
|
|
81
74
|
},
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
normal: {
|
|
76
|
+
kb6lSQ: "x1i21sxh",
|
|
84
77
|
$$css: !0
|
|
85
78
|
},
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
wide: {
|
|
80
|
+
kb6lSQ: "x2ujxvm",
|
|
88
81
|
$$css: !0
|
|
89
82
|
},
|
|
90
83
|
ellipsisSingle: {
|
|
@@ -96,60 +89,111 @@ var c = {
|
|
|
96
89
|
k7Eaqz: "xeuugli",
|
|
97
90
|
$$css: !0
|
|
98
91
|
}
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
92
|
+
}, ie = {
|
|
93
|
+
1: "xxl",
|
|
94
|
+
2: "xl",
|
|
95
|
+
3: "lg",
|
|
96
|
+
4: "md",
|
|
97
|
+
5: "sm",
|
|
98
|
+
6: "xs"
|
|
99
|
+
}, o = {
|
|
100
|
+
xxs: a.sizeXxs,
|
|
101
|
+
xs: a.sizeXs,
|
|
102
|
+
sm: a.sizeSm,
|
|
103
|
+
md: a.sizeMd,
|
|
104
|
+
lg: a.sizeLg,
|
|
105
|
+
xl: a.sizeXl,
|
|
106
|
+
xxl: a.sizeXxl
|
|
107
|
+
}, s = {
|
|
108
|
+
default: a.defaultVariant,
|
|
109
|
+
gradient: a.gradientVariant,
|
|
110
|
+
mono: a.monoVariant
|
|
111
|
+
}, c = {
|
|
112
|
+
tight: a.tight,
|
|
113
|
+
normal: a.normal,
|
|
114
|
+
wide: a.wide
|
|
115
|
+
}, l = i.forwardRef(function({ level: l = 1, size: ae, variant: u = "default", tracking: oe = "normal", weight: d, customSize: se, lines: f, rows: p, lineHeight: ce, ellipsis: m, tooltip: h, textDecoration: g, textDecorationLine: _, textDecorationStyle: v, textDecorationColor: y, textDecorationThickness: b, textUnderlineOffset: x, color: S, margin: C, m: w, marginTop: T, mt: E, marginBottom: D, mb: O, marginLeft: k, ml: A, marginRight: j, mr: M, marginInline: N, mx: P, marginBlock: F, my: I, letterSpacing: le, editable: L, copyable: R, onEdit: z, required: B, as: V, className: H, children: U, sx: W, ...ue }, de) {
|
|
116
|
+
let fe = V || `h${l}`, [G, K] = i.useState(!1), [q, J] = i.useState(!1), [Y, pe] = i.useState(typeof U == "string" ? U : ""), X = ae ?? ie[l] ?? "xxl", me = o[X] ?? a.sizeXxl, he = f ?? p ?? (typeof m == "object" ? m?.rows : void 0), Z = (m === !0 || typeof m == "object" && !!m && !m.rows) && !he, ge = t({
|
|
117
|
+
customSize: se,
|
|
118
|
+
color: S,
|
|
119
|
+
lines: f,
|
|
120
|
+
rows: p,
|
|
121
|
+
lineHeight: ce,
|
|
122
|
+
ellipsis: m,
|
|
123
|
+
textDecoration: g,
|
|
124
|
+
textDecorationLine: _,
|
|
125
|
+
textDecorationStyle: v,
|
|
126
|
+
textDecorationColor: y,
|
|
127
|
+
textDecorationThickness: b,
|
|
128
|
+
textUnderlineOffset: x,
|
|
129
|
+
margin: C,
|
|
130
|
+
m: w,
|
|
131
|
+
marginTop: T,
|
|
132
|
+
mt: E,
|
|
133
|
+
marginBottom: D,
|
|
134
|
+
mb: O,
|
|
135
|
+
marginLeft: k,
|
|
136
|
+
ml: A,
|
|
137
|
+
marginRight: j,
|
|
138
|
+
mr: M,
|
|
139
|
+
marginInline: N,
|
|
140
|
+
mx: P,
|
|
141
|
+
marginBlock: F,
|
|
142
|
+
my: I,
|
|
143
|
+
letterSpacing: le
|
|
144
|
+
}), _e = async () => {
|
|
145
|
+
let e = typeof U == "string" ? U : Y;
|
|
146
|
+
try {
|
|
147
|
+
await navigator.clipboard.writeText(e), K(!0), setTimeout(() => K(!1), 2e3);
|
|
148
|
+
} catch {}
|
|
149
|
+
}, Q = () => {
|
|
150
|
+
J(!1), z?.(Y);
|
|
151
|
+
}, $ = re.props(a.base, me, s[u], c[oe], d && ne[d], Z && a.ellipsisSingle, W), ve = te(h, m, U), ye = /* @__PURE__ */ r(fe, {
|
|
152
|
+
ref: de,
|
|
153
|
+
"data-slot": "typography-title",
|
|
154
|
+
"data-level": l,
|
|
155
|
+
"data-size": X,
|
|
156
|
+
"data-variant": u,
|
|
157
|
+
"data-weight": d,
|
|
158
|
+
...$,
|
|
140
159
|
style: {
|
|
141
|
-
|
|
142
|
-
...
|
|
160
|
+
...$.style,
|
|
161
|
+
...ge
|
|
143
162
|
},
|
|
144
|
-
className:
|
|
145
|
-
...
|
|
146
|
-
children: [
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
163
|
+
className: H ? `${$.className || ""} ${H}`.trim() : $.className,
|
|
164
|
+
...ue,
|
|
165
|
+
children: [
|
|
166
|
+
q ? /* @__PURE__ */ n("input", {
|
|
167
|
+
autoFocus: !0,
|
|
168
|
+
value: Y,
|
|
169
|
+
onChange: (e) => pe(e.target.value),
|
|
170
|
+
onBlur: Q,
|
|
171
|
+
onKeyDown: (e) => {
|
|
172
|
+
e.key === "Enter" && Q(), e.key === "Escape" && J(!1);
|
|
173
|
+
},
|
|
174
|
+
className: "x1qlqyl8 x1pd3egz xjb2p0i x84br7x x1mlyrtw xmkeg23 x1y0btm7 x1puiyjm x1q0v2j7 x97vtpp x1o5vn8x x1a2a7pz"
|
|
175
|
+
}) : /* @__PURE__ */ r("span", { children: [U, B && /* @__PURE__ */ n("span", {
|
|
176
|
+
"aria-hidden": "true",
|
|
177
|
+
className: "xuuroe4 x4aigyd x1rg5ohu xo5v014 x1s688f x87ps6o",
|
|
178
|
+
children: "*"
|
|
179
|
+
})] }),
|
|
180
|
+
L && !q && /* @__PURE__ */ n("button", {
|
|
181
|
+
type: "button",
|
|
182
|
+
onClick: () => J(!0),
|
|
183
|
+
className: "xjyslct xc342km xjbqb8w xw3nh4a x1ypdohk x78pyy4 x1q0v2j7 x3nfvp2 x6s0dn4 xl56j7k x1a2a7pz x1gbuem2 xx6bhzk x8aud5w x9p52ec",
|
|
184
|
+
"aria-label": "Edit title",
|
|
185
|
+
children: /* @__PURE__ */ n(e.Pencil, { className: "xcdlrvm x1l36t39" })
|
|
186
|
+
}),
|
|
187
|
+
R && /* @__PURE__ */ n("button", {
|
|
188
|
+
type: "button",
|
|
189
|
+
onClick: _e,
|
|
190
|
+
className: "xjyslct xc342km xjbqb8w xw3nh4a x1ypdohk x78pyy4 x1q0v2j7 x3nfvp2 x6s0dn4 xl56j7k x1a2a7pz x1gbuem2 xx6bhzk x8aud5w x9p52ec",
|
|
191
|
+
"aria-label": G ? "Copied" : "Copy title",
|
|
192
|
+
children: n(G ? e.Check : e.Copy, { className: "xcdlrvm x1l36t39" })
|
|
193
|
+
})
|
|
194
|
+
]
|
|
151
195
|
});
|
|
152
|
-
return
|
|
196
|
+
return ee(ye, ve);
|
|
153
197
|
});
|
|
154
|
-
|
|
155
|
-
export {
|
|
198
|
+
l.displayName = "Typography.Title";
|
|
199
|
+
export { l as Title };
|
package/dist/index120.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index6.cjs"),n=require("./index118.cjs"),r=require("./index119.cjs");let i=require("@stylexjs/stylex");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("react"),s=e.__toESM(o,1);o=e.__toESM(o);let c=require("@radix-ui/react-slot");var l={base:{k1xSpc:`xrvj5dj`,kB7OPa:`x9f619`,$$css:!0},inline:{k1xSpc:`xwz0xwf`,$$css:!0},alignStart:{kGNEyG:`x1cy8zhl`,$$css:!0},alignCenter:{kGNEyG:`x6s0dn4`,$$css:!0},alignEnd:{kGNEyG:`xuk3077`,$$css:!0},alignStretch:{kGNEyG:`x1qjc9v5`,$$css:!0},justifyStart:{kjj79g:`x1nhvcw1`,$$css:!0},justifyCenter:{kjj79g:`xl56j7k`,$$css:!0},justifyEnd:{kjj79g:`x13a6bvl`,$$css:!0},justifyBetween:{kjj79g:`x1qughib`,$$css:!0},justifyAround:{kjj79g:`x1l1ennw`,$$css:!0},justifyEvenly:{kjj79g:`xaw8158`,$$css:!0},justifyStretch:{kjj79g:`x1szn6h9`,$$css:!0},flowRow:{kprqdN:`x1sdr0u7`,$$css:!0},flowCol:{kprqdN:`x1mt1orb`,$$css:!0},flowRowDense:{kprqdN:`xf2va4h`,$$css:!0},flowColDense:{kprqdN:`xw78oal`,$$css:!0},gapXxs:{kOIVth:`x118fsrc`,$$css:!0},gapXs:{kOIVth:`x1m5ztt4`,$$css:!0},gapSm:{kOIVth:`xdkmor2`,$$css:!0},gapMd:{kOIVth:`x1b1hbqf`,$$css:!0},gapLg:{kOIVth:`x1oqwmkw`,$$css:!0},gapXl:{kOIVth:`x1d8n61f`,$$css:!0},gapXxl:{kOIVth:`x12iavo`,$$css:!0},itemBase:{kB7OPa:`x9f619`,k7Eaqz:`xeuugli`,$$css:!0}},u={start:l.alignStart,center:l.alignCenter,end:l.alignEnd,stretch:l.alignStretch},d={start:l.justifyStart,center:l.justifyCenter,end:l.justifyEnd,"space-between":l.justifyBetween,"space-around":l.justifyAround,"space-evenly":l.justifyEvenly,stretch:l.justifyStretch},f={row:l.flowRow,column:l.flowCol,"row dense":l.flowRowDense,"column dense":l.flowColDense},p={xxs:l.gapXxs,xs:l.gapXs,sm:l.gapSm,md:l.gapMd,lg:l.gapLg,xl:l.gapXl,xxl:l.gapXxl},m=s.forwardRef(function({colSpan:e,rowSpan:t,colStart:n,colEnd:r,rowStart:o,rowEnd:s,area:u,asChild:d=!1,as:f=`div`,className:p,style:m,sx:h,children:g,..._},v){let y=i.props(l.itemBase,h),b=p?`${y.className||``} ${p}`.trim():y.className,x={...y.style,...m};return e!==void 0&&(x.gridColumn=e===`auto`?`auto`:`span ${e} / span ${e}`),t!==void 0&&(x.gridRow=t===`auto`?`auto`:`span ${t} / span ${t}`),n!==void 0&&(x.gridColumnStart=n),r!==void 0&&(x.gridColumnEnd=r),o!==void 0&&(x.gridRowStart=o),s!==void 0&&(x.gridRowEnd=s),u!==void 0&&(x.gridArea=u),(0,a.jsx)(d?c.Slot:f,{ref:v,"data-slot":`grid-item`,...y,style:x,className:b,..._,children:g})});m.displayName=`GridItem`;var h=s.forwardRef(function({columns:e,rows:r,minChildWidth:o,gap:s,rowGap:m,columnGap:h,autoFlow:g,autoRows:_,autoColumns:v,align:y,justify:b,inline:x=!1,asChild:S=!1,as:C=`div`,className:w,style:T,sx:E,children:D,...O},k){let A=n.useBreakpoint(),j=t.isComponentSize(s),M=j?p[s]:void 0,N=i.props(l.base,x&&l.inline,y?u[y]:void 0,b?d[b]:void 0,g?f[g]:void 0,M,E),P=w?`${N.className||``} ${w}`.trim():N.className,F={...N.style,...T};if(o!==void 0)F.gridTemplateColumns=`repeat(auto-fit, minmax(${typeof o==`number`?`${o}px`:o}, 1fr))`;else if(e!==void 0){if(typeof e==`number`)F.gridTemplateColumns=`repeat(${e}, minmax(0, 1fr))`;else if(typeof e==`string`)F.gridTemplateColumns=e;else if(typeof e==`object`){let t=[`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],n;for(let r of t)if(A[r]&&e[r]!==void 0){n=e[r];break}n!==void 0&&(F.gridTemplateColumns=typeof n==`number`?`repeat(${n}, minmax(0, 1fr))`:n)}}return r!==void 0&&(F.gridTemplateRows=typeof r==`number`?`repeat(${r}, minmax(0, 1fr))`:r),s!==void 0&&!j&&(F.gap=t.resolveGap(s)),m!==void 0&&(F.rowGap=t.resolveSpacing(m)),h!==void 0&&(F.columnGap=t.resolveSpacing(h)),_!==void 0&&(F.gridAutoRows=_),v!==void 0&&(F.gridAutoColumns=v),(0,a.jsx)(S?c.Slot:C,{ref:k,"data-slot":`grid`,...N,style:F,className:P,...O,children:D})});h.displayName=`Grid`,h.Row=r.Row,h.Col=r.Col,h.Column=r.Column,h.Item=m,h.useBreakpoint=n.useBreakpoint,exports.Grid=h,exports.GridItem=m;
|
package/dist/index120.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { isComponentSize as e, resolveGap as t, resolveSpacing as n } from "./
|
|
1
|
+
import { isComponentSize as e, resolveGap as t, resolveSpacing as n } from "./index6.js";
|
|
2
2
|
import { useBreakpoint as r } from "./index118.js";
|
|
3
3
|
import { Col as i, Column as a, Row as o } from "./index119.js";
|
|
4
|
-
import * as s from "
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import * as s from "@stylexjs/stylex";
|
|
5
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
6
|
+
import * as l from "react";
|
|
7
7
|
import { Slot as u } from "@radix-ui/react-slot";
|
|
8
8
|
// src/ui/grid.tsx
|
|
9
9
|
var d = {
|
|
@@ -135,12 +135,12 @@ var d = {
|
|
|
135
135
|
lg: d.gapLg,
|
|
136
136
|
xl: d.gapXl,
|
|
137
137
|
xxl: d.gapXxl
|
|
138
|
-
}, g =
|
|
139
|
-
let y =
|
|
138
|
+
}, g = l.forwardRef(function({ colSpan: e, rowSpan: t, colStart: n, colEnd: r, rowStart: i, rowEnd: a, area: o, asChild: l = !1, as: f = "div", className: p, style: m, sx: h, children: g, ..._ }, v) {
|
|
139
|
+
let y = s.props(d.itemBase, h), b = p ? `${y.className || ""} ${p}`.trim() : y.className, x = {
|
|
140
140
|
...y.style,
|
|
141
141
|
...m
|
|
142
142
|
};
|
|
143
|
-
return e !== void 0 && (x.gridColumn = e === "auto" ? "auto" : `span ${e} / span ${e}`), t !== void 0 && (x.gridRow = t === "auto" ? "auto" : `span ${t} / span ${t}`), n !== void 0 && (x.gridColumnStart = n), r !== void 0 && (x.gridColumnEnd = r), i !== void 0 && (x.gridRowStart = i), a !== void 0 && (x.gridRowEnd = a), o !== void 0 && (x.gridArea = o), /* @__PURE__ */ l
|
|
143
|
+
return e !== void 0 && (x.gridColumn = e === "auto" ? "auto" : `span ${e} / span ${e}`), t !== void 0 && (x.gridRow = t === "auto" ? "auto" : `span ${t} / span ${t}`), n !== void 0 && (x.gridColumnStart = n), r !== void 0 && (x.gridColumnEnd = r), i !== void 0 && (x.gridRowStart = i), a !== void 0 && (x.gridRowEnd = a), o !== void 0 && (x.gridArea = o), /* @__PURE__ */ c(l ? u : f, {
|
|
144
144
|
ref: v,
|
|
145
145
|
"data-slot": "grid-item",
|
|
146
146
|
...y,
|
|
@@ -151,8 +151,8 @@ var d = {
|
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
g.displayName = "GridItem";
|
|
154
|
-
var _ =
|
|
155
|
-
let M = r(), N = e(
|
|
154
|
+
var _ = l.forwardRef(function({ columns: i, rows: a, minChildWidth: o, gap: l, rowGap: g, columnGap: _, autoFlow: v, autoRows: y, autoColumns: b, align: x, justify: S, inline: C = !1, asChild: w = !1, as: T = "div", className: E, style: D, sx: O, children: k, ...A }, j) {
|
|
155
|
+
let M = r(), N = e(l), P = N ? h[l] : void 0, F = s.props(d.base, C && d.inline, x ? f[x] : void 0, S ? p[S] : void 0, v ? m[v] : void 0, P, O), I = E ? `${F.className || ""} ${E}`.trim() : F.className, L = {
|
|
156
156
|
...F.style,
|
|
157
157
|
...D
|
|
158
158
|
};
|
|
@@ -176,7 +176,7 @@ var _ = s.forwardRef(function({ columns: i, rows: a, minChildWidth: o, gap: s, r
|
|
|
176
176
|
t !== void 0 && (L.gridTemplateColumns = typeof t == "number" ? `repeat(${t}, minmax(0, 1fr))` : t);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
return a !== void 0 && (L.gridTemplateRows = typeof a == "number" ? `repeat(${a}, minmax(0, 1fr))` : a),
|
|
179
|
+
return a !== void 0 && (L.gridTemplateRows = typeof a == "number" ? `repeat(${a}, minmax(0, 1fr))` : a), l !== void 0 && !N && (L.gap = t(l)), g !== void 0 && (L.rowGap = n(g)), _ !== void 0 && (L.columnGap = n(_)), y !== void 0 && (L.gridAutoRows = y), b !== void 0 && (L.gridAutoColumns = b), /* @__PURE__ */ c(w ? u : T, {
|
|
180
180
|
ref: j,
|
|
181
181
|
"data-slot": "grid",
|
|
182
182
|
...F,
|
package/dist/index121.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index30.cjs"),n=require("./index31.cjs"),r=require("./index32.cjs"),i=require("./index35.cjs"),a=require("./index57.cjs"),o=require("./index58.cjs"),s=require("./index65.cjs"),c=require("./index74.cjs"),l=require("./index75.cjs");let u=require("react/jsx-runtime"),d=require("react"),f=e.__toESM(d,1);d=e.__toESM(d);var p=Object.defineProperty,m=(e,t)=>p(e,`name`,{value:t,configurable:!0}),h,g=`HoverCard`,[_,v]=t.createContextScope(g,[c.createPopperScope]),y=c.createPopperScope(),[b,x]=_(g),S=m(e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:s=700,closeDelay:l=300}=e,d=y(t),p=f.useRef(0),m=f.useRef(0),h=f.useRef(!1),_=f.useRef(!1),[v,x]=a.useControllableState({prop:r,defaultProp:i??!1,onChange:o,caller:g}),S=f.useCallback(()=>{clearTimeout(m.current),p.current=window.setTimeout(()=>x(!0),s)},[s,x]),C=f.useCallback(()=>{clearTimeout(p.current),!h.current&&!_.current&&(m.current=window.setTimeout(()=>x(!1),l))},[l,x]),w=f.useCallback(()=>x(!1),[x]);return f.useEffect(()=>()=>{clearTimeout(p.current),clearTimeout(m.current)},[]),(0,u.jsx)(b,{scope:t,open:v,onOpenChange:x,onOpen:S,onClose:C,onDismiss:w,hasSelectionRef:h,isPointerDownOnContentRef:_,children:(0,u.jsx)(c.Root,{...d,children:n})})},`HoverCard`),C=`HoverCardTrigger`,w=f.forwardRef(m(function(e,t){let{__scopeHoverCard:n,...a}=e,o=x(C,n),s=y(n);return(0,u.jsx)(c.Anchor,{asChild:!0,...s,children:(0,u.jsx)(i.Primitive.a,{"data-state":o.open?`open`:`closed`,...a,ref:t,onPointerEnter:r.composeEventHandlers(e.onPointerEnter,M(o.onOpen)),onPointerLeave:r.composeEventHandlers(e.onPointerLeave,M(o.onClose)),onFocus:r.composeEventHandlers(e.onFocus,o.onOpen),onBlur:r.composeEventHandlers(e.onBlur,o.onClose),onTouchStart:r.composeEventHandlers(e.onTouchStart,e=>e.preventDefault())})})},`HoverCardTrigger`)),T=`HoverCardPortal`,[E,D]=_(T,{forceMount:void 0}),O=m(e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,a=x(T,t);return(0,u.jsx)(E,{scope:t,forceMount:n,children:(0,u.jsx)(o.Presence,{present:n||a.open,children:(0,u.jsx)(l.Portal,{asChild:!0,container:i,children:r})})})},`HoverCardPortal`),k=`HoverCardContent`,A=f.forwardRef(m(function(e,t){let n=D(k,e.__scopeHoverCard),{forceMount:i=n.forceMount,...a}=e,s=x(k,e.__scopeHoverCard);return(0,u.jsx)(o.Presence,{present:i||s.open,children:(0,u.jsx)(j,{"data-state":s.open?`open`:`closed`,...a,onPointerEnter:r.composeEventHandlers(e.onPointerEnter,M(s.onOpen)),onPointerLeave:r.composeEventHandlers(e.onPointerLeave,M(s.onClose)),ref:t})})},`HoverCardContent`)),j=f.forwardRef(m(function(e,t){let{__scopeHoverCard:i,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:d,...p}=e,g=x(k,i),_=y(i),v=f.useRef(null),b=n.useComposedRefs(t,v),[S,C]=f.useState(!1);return f.useEffect(()=>{if(S){let e=document.body;return h=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect=`none`,e.style.webkitUserSelect=`none`,()=>{e.style.userSelect=h,e.style.webkitUserSelect=h}}},[S]),f.useEffect(()=>{if(v.current){let e=m(()=>{C(!1),g.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==``&&(g.hasSelectionRef.current=!0)})},`handlePointerUp`);return document.addEventListener(`pointerup`,e),()=>{document.removeEventListener(`pointerup`,e),g.hasSelectionRef.current=!1,g.isPointerDownOnContentRef.current=!1}}},[g.isPointerDownOnContentRef,g.hasSelectionRef]),f.useEffect(()=>{v.current&&N(v.current).forEach(e=>e.setAttribute(`tabindex`,`-1`))}),(0,u.jsx)(s.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:r.composeEventHandlers(l,e=>{e.preventDefault()}),onDismiss:g.onDismiss,children:(0,u.jsx)(c.Content,{..._,...p,onPointerDown:r.composeEventHandlers(p.onPointerDown,e=>{e.currentTarget.contains(e.target)&&C(!0),g.hasSelectionRef.current=!1,g.isPointerDownOnContentRef.current=!0}),ref:b,style:{...p.style,userSelect:S?`text`:void 0,WebkitUserSelect:S?`text`:void 0,"--radix-hover-card-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-hover-card-content-available-width":`var(--radix-popper-available-width)`,"--radix-hover-card-content-available-height":`var(--radix-popper-available-height)`,"--radix-hover-card-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-hover-card-trigger-height":`var(--radix-popper-anchor-height)`}})})},`HoverCardContentImpl`));function M(e){return t=>t.pointerType===`touch`?void 0:e()}m(M,`excludeTouch`);function N(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:m(e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}m(N,`getTabbableNodes`);var P=S,F=w,I=O,L=A;exports.Content=L,exports.HoverCard=S,exports.HoverCardContent=A,exports.HoverCardPortal=O,exports.HoverCardTrigger=w,exports.Portal=I,exports.Root=P,exports.Trigger=F;
|
package/dist/index121.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { createContextScope as e } from "./
|
|
3
|
-
import { useComposedRefs as t } from "./
|
|
4
|
-
import { composeEventHandlers as n } from "./
|
|
5
|
-
import { Primitive as r } from "./
|
|
6
|
-
import { useControllableState as i } from "./
|
|
7
|
-
import { Presence as a } from "./
|
|
2
|
+
import { createContextScope as e } from "./index30.js";
|
|
3
|
+
import { useComposedRefs as t } from "./index31.js";
|
|
4
|
+
import { composeEventHandlers as n } from "./index32.js";
|
|
5
|
+
import { Primitive as r } from "./index35.js";
|
|
6
|
+
import { useControllableState as i } from "./index57.js";
|
|
7
|
+
import { Presence as a } from "./index58.js";
|
|
8
8
|
import { DismissableLayer as o } from "./index65.js";
|
|
9
9
|
import { Anchor as s, Content as c, Root as l, createPopperScope as u } from "./index74.js";
|
|
10
10
|
import { Portal as d } from "./index75.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
11
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
12
|
+
import * as p from "react";
|
|
13
13
|
// ../../node_modules/.pnpm/@radix-ui+react-hover-card@1.1.23_@types+react-dom@19.3.0_@types+react@19.3.0__@types+r_a8ac333b78a7741970303e37358b886d/node_modules/@radix-ui/react-hover-card/dist/index.mjs
|
|
14
14
|
var m = Object.defineProperty, h = (e, t) => m(e, "name", {
|
|
15
15
|
value: t,
|
|
16
16
|
configurable: !0
|
|
17
17
|
}), g, _ = "HoverCard", [v, y] = e(_, [u]), b = u(), [x, S] = v(_), C = /* @__PURE__ */ h((e) => {
|
|
18
|
-
let { __scopeHoverCard: t, children: n, open: r, defaultOpen: a, onOpenChange: o, openDelay: s = 700, closeDelay: c = 300 } = e, u = b(t), d =
|
|
18
|
+
let { __scopeHoverCard: t, children: n, open: r, defaultOpen: a, onOpenChange: o, openDelay: s = 700, closeDelay: c = 300 } = e, u = b(t), d = p.useRef(0), m = p.useRef(0), h = p.useRef(!1), g = p.useRef(!1), [v, y] = i({
|
|
19
19
|
prop: r,
|
|
20
20
|
defaultProp: a ?? !1,
|
|
21
21
|
onChange: o,
|
|
22
22
|
caller: _
|
|
23
|
-
}), S =
|
|
23
|
+
}), S = p.useCallback(() => {
|
|
24
24
|
clearTimeout(m.current), d.current = window.setTimeout(() => y(!0), s);
|
|
25
|
-
}, [s, y]), C =
|
|
25
|
+
}, [s, y]), C = p.useCallback(() => {
|
|
26
26
|
clearTimeout(d.current), !h.current && !g.current && (m.current = window.setTimeout(() => y(!1), c));
|
|
27
|
-
}, [c, y]), w =
|
|
28
|
-
return
|
|
27
|
+
}, [c, y]), w = p.useCallback(() => y(!1), [y]);
|
|
28
|
+
return p.useEffect(() => () => {
|
|
29
29
|
clearTimeout(d.current), clearTimeout(m.current);
|
|
30
|
-
}, []), /* @__PURE__ */
|
|
30
|
+
}, []), /* @__PURE__ */ f(x, {
|
|
31
31
|
scope: t,
|
|
32
32
|
open: v,
|
|
33
33
|
onOpenChange: y,
|
|
@@ -36,17 +36,17 @@ var m = Object.defineProperty, h = (e, t) => m(e, "name", {
|
|
|
36
36
|
onDismiss: w,
|
|
37
37
|
hasSelectionRef: h,
|
|
38
38
|
isPointerDownOnContentRef: g,
|
|
39
|
-
children: /* @__PURE__ */
|
|
39
|
+
children: /* @__PURE__ */ f(l, {
|
|
40
40
|
...u,
|
|
41
41
|
children: n
|
|
42
42
|
})
|
|
43
43
|
});
|
|
44
|
-
}, "HoverCard"), w = "HoverCardTrigger", T = /* @__PURE__ */
|
|
44
|
+
}, "HoverCard"), w = "HoverCardTrigger", T = /* @__PURE__ */ p.forwardRef(/* @__PURE__ */ h(function(e, t) {
|
|
45
45
|
let { __scopeHoverCard: i, ...a } = e, o = S(w, i), c = b(i);
|
|
46
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ f(s, {
|
|
47
47
|
asChild: !0,
|
|
48
48
|
...c,
|
|
49
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ f(r.a, {
|
|
50
50
|
"data-state": o.open ? "open" : "closed",
|
|
51
51
|
...a,
|
|
52
52
|
ref: t,
|
|
@@ -59,23 +59,23 @@ var m = Object.defineProperty, h = (e, t) => m(e, "name", {
|
|
|
59
59
|
});
|
|
60
60
|
}, "HoverCardTrigger")), E = "HoverCardPortal", [D, O] = v(E, { forceMount: void 0 }), k = /* @__PURE__ */ h((e) => {
|
|
61
61
|
let { __scopeHoverCard: t, forceMount: n, children: r, container: i } = e, o = S(E, t);
|
|
62
|
-
return /* @__PURE__ */
|
|
62
|
+
return /* @__PURE__ */ f(D, {
|
|
63
63
|
scope: t,
|
|
64
64
|
forceMount: n,
|
|
65
|
-
children: /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ f(a, {
|
|
66
66
|
present: n || o.open,
|
|
67
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ f(d, {
|
|
68
68
|
asChild: !0,
|
|
69
69
|
container: i,
|
|
70
70
|
children: r
|
|
71
71
|
})
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
|
-
}, "HoverCardPortal"), A = "HoverCardContent", j = /* @__PURE__ */
|
|
74
|
+
}, "HoverCardPortal"), A = "HoverCardContent", j = /* @__PURE__ */ p.forwardRef(/* @__PURE__ */ h(function(e, t) {
|
|
75
75
|
let r = O(A, e.__scopeHoverCard), { forceMount: i = r.forceMount, ...o } = e, s = S(A, e.__scopeHoverCard);
|
|
76
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ f(a, {
|
|
77
77
|
present: i || s.open,
|
|
78
|
-
children: /* @__PURE__ */
|
|
78
|
+
children: /* @__PURE__ */ f(M, {
|
|
79
79
|
"data-state": s.open ? "open" : "closed",
|
|
80
80
|
...o,
|
|
81
81
|
onPointerEnter: n(e.onPointerEnter, N(s.onOpen)),
|
|
@@ -83,16 +83,16 @@ var m = Object.defineProperty, h = (e, t) => m(e, "name", {
|
|
|
83
83
|
ref: t
|
|
84
84
|
})
|
|
85
85
|
});
|
|
86
|
-
}, "HoverCardContent")), M = /* @__PURE__ */
|
|
87
|
-
let { __scopeHoverCard: i, onEscapeKeyDown: a, onPointerDownOutside: s, onFocusOutside: l, onInteractOutside: u, ...d } = e, m = S(A, i), _ = b(i), v =
|
|
88
|
-
return
|
|
86
|
+
}, "HoverCardContent")), M = /* @__PURE__ */ p.forwardRef(/* @__PURE__ */ h(function(e, r) {
|
|
87
|
+
let { __scopeHoverCard: i, onEscapeKeyDown: a, onPointerDownOutside: s, onFocusOutside: l, onInteractOutside: u, ...d } = e, m = S(A, i), _ = b(i), v = p.useRef(null), y = t(r, v), [x, C] = p.useState(!1);
|
|
88
|
+
return p.useEffect(() => {
|
|
89
89
|
if (x) {
|
|
90
90
|
let e = document.body;
|
|
91
91
|
return g = e.style.userSelect || e.style.webkitUserSelect, e.style.userSelect = "none", e.style.webkitUserSelect = "none", () => {
|
|
92
92
|
e.style.userSelect = g, e.style.webkitUserSelect = g;
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
}, [x]),
|
|
95
|
+
}, [x]), p.useEffect(() => {
|
|
96
96
|
if (v.current) {
|
|
97
97
|
let e = /* @__PURE__ */ h(() => {
|
|
98
98
|
C(!1), m.isPointerDownOnContentRef.current = !1, setTimeout(() => {
|
|
@@ -103,9 +103,9 @@ var m = Object.defineProperty, h = (e, t) => m(e, "name", {
|
|
|
103
103
|
document.removeEventListener("pointerup", e), m.hasSelectionRef.current = !1, m.isPointerDownOnContentRef.current = !1;
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
}, [m.isPointerDownOnContentRef, m.hasSelectionRef]),
|
|
106
|
+
}, [m.isPointerDownOnContentRef, m.hasSelectionRef]), p.useEffect(() => {
|
|
107
107
|
v.current && P(v.current).forEach((e) => e.setAttribute("tabindex", "-1"));
|
|
108
|
-
}), /* @__PURE__ */
|
|
108
|
+
}), /* @__PURE__ */ f(o, {
|
|
109
109
|
asChild: !0,
|
|
110
110
|
disableOutsidePointerEvents: !1,
|
|
111
111
|
onInteractOutside: u,
|
|
@@ -115,7 +115,7 @@ var m = Object.defineProperty, h = (e, t) => m(e, "name", {
|
|
|
115
115
|
e.preventDefault();
|
|
116
116
|
}),
|
|
117
117
|
onDismiss: m.onDismiss,
|
|
118
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ f(c, {
|
|
119
119
|
..._,
|
|
120
120
|
...d,
|
|
121
121
|
onPointerDown: n(d.onPointerDown, (e) => {
|
package/dist/index122.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
"use client";const e=require("./index2.cjs"),t=require("./index8.cjs"),n=require("./index46.cjs"),r=require("./index121.cjs");let i=require("@stylexjs/stylex");i=e.__toESM(i,1);let a=require("react/jsx-runtime"),o=require("react");o=e.__toESM(o,1);let s=require("react/compiler-runtime");var c={content:{kY2c9j:`x11uqc5h`,kzqmXN:`x1e67fm3`,kaIpWk:`xsda711`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xb30jbz`,kWkggS:`xa4jey1`,kMwMTN:`x5e7vtp`,kmVPX3:`x1uz70x1`,kGVxlE:`xoanrfg`,kI3sdo:`x1a2a7pz`,$$css:!0}};function l(e){let t=(0,s.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let i;return t[2]===n?i=t[3]:(i=(0,a.jsx)(r.Root,{"data-slot":`hover-card`,...n}),t[2]=n,t[3]=i),i}function u(e){let t=(0,s.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let i;return t[2]===n?i=t[3]:(i=(0,a.jsx)(r.Trigger,{"data-slot":`hover-card-trigger`,...n}),t[2]=n,t[3]=i),i}function d({className:e,align:o=`center`,sideOffset:s=4,sx:l,style:u,...d}){let f=t.useZIndex(`popover`),p=i.props(c.content,l);return(0,a.jsx)(r.Portal,{"data-slot":`hover-card-portal`,children:(0,a.jsx)(r.Content,{"data-slot":`hover-card-content`,align:o,sideOffset:s,...p,style:{zIndex:f,...p.style,...u},className:n.cn(p.className,e),...d})})}exports.HoverCard=l,exports.HoverCardContent=d,exports.HoverCardTrigger=u;
|
package/dist/index122.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useZIndex as e } from "./
|
|
3
|
-
import { cn as t } from "./
|
|
2
|
+
import { useZIndex as e } from "./index8.js";
|
|
3
|
+
import { cn as t } from "./index46.js";
|
|
4
4
|
import { Content as n, Portal as r, Root as i, Trigger as a } from "./index121.js";
|
|
5
|
-
import "react";
|
|
6
5
|
import * as o from "@stylexjs/stylex";
|
|
7
6
|
import { jsx as s } from "react/jsx-runtime";
|
|
7
|
+
import "react";
|
|
8
8
|
import { c } from "react/compiler-runtime";
|
|
9
9
|
// src/ui/hover-card.tsx
|
|
10
10
|
var l = { content: {
|
package/dist/index123.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./index2.cjs"),t=require("./
|
|
1
|
+
const e=require("./index2.cjs"),t=require("./index20.cjs");let n=require("@stylexjs/stylex");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("react");i=e.__toESM(i,1);var a={base:{kzqmXN:`xh8yej3`,k7Eaqz:`xeuugli`,kaIpWk:`xsda711`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xsyin8q`,kWkggS:`xjbqb8w`,kMwMTN:`x84br7x`,kGVxlE:`x1dsmnui`,k1ekBW:`x1bh2a3r`,kIyJzY:`xx6bhzk`,kI3sdo:`x1a2a7pz`,k8Qsv1:`x1guo4m0`,k5V0q4:`x16a5dtp`,kwNz1F:`x1c4dosm`,kws8Wn:`xoo4nqz`,kyhJmN:`xu197gb`,k1g6Oj:`xpn7oa2`,knelA6:`xpblgp8`,k958Fn:`xqj1k98`,kWNeyc:`xjmbuqf`,kOJeXU:`x156qtes`,kEtg5x:`x1ippke1`,k7HAVu:`xaqnwrm`,kYPGJ8:`x1s07b3s`,kWCcOm:`xijokvz`,$$css:!0},sizeXxs:{kZKoxP:`xam5rvr`,kaIpWk:`x1q0v2j7`,kGuDYH:`x12lo8hy`,kg3NbH:`x97vtpp`,k8WAf4:`x1dus959`,$$css:!0},sizeXs:{kZKoxP:`xb8l8e1`,kaIpWk:`x1q0v2j7`,kGuDYH:`xboafo0`,kg3NbH:`xvpgqt4`,k8WAf4:`x5utbj`,$$css:!0},sizeSm:{kZKoxP:`xettwda`,kaIpWk:`xsda711`,kGuDYH:`x1dcheo9`,kg3NbH:`x1ryrjj2`,k8WAf4:`x1o5vn8x`,$$css:!0},sizeMd:{kZKoxP:`xk8t5le`,kaIpWk:`xsda711`,kGuDYH:`xkpwil5`,kg3NbH:`x1ryrjj2`,k8WAf4:`x1o5vn8x`,$$css:!0},sizeLg:{kZKoxP:`xwaiz5r`,kaIpWk:`xsda711`,kGuDYH:`x6u19be`,kg3NbH:`xnxx81d`,k8WAf4:`x1bilvtl`,$$css:!0},sizeXl:{kZKoxP:`x12hms15`,kaIpWk:`x1f78wua`,kGuDYH:`x1jchvi3`,kg3NbH:`x11h0hc`,k8WAf4:`x18g2hj5`,$$css:!0},sizeXxl:{kZKoxP:`x1j7fsof`,kaIpWk:`x1f78wua`,kGuDYH:`x1c3i2sq`,kg3NbH:`x1qhpy6z`,k8WAf4:`x13eudtd`,$$css:!0},invalid:{kVAM5u:`x1uwefn5`,kGVxlE:`xrqv5e9`,$$css:!0},wrapper:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kzqmXN:`xh8yej3`,k7Eaqz:`xeuugli`,kaIpWk:`xsda711`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xsyin8q`,kWkggS:`xjbqb8w`,kGVxlE:`x1dsmnui`,k1ekBW:`x1bh2a3r`,kIyJzY:`xx6bhzk`,kYcSvW:`x1eqqpix`,knuKkz:`xy7i05z`,$$css:!0},wrapperInvalid:{kVAM5u:`x1uwefn5`,kGVxlE:`xrqv5e9`,$$css:!0},wrapperDisabled:{kfzvcC:`x47corl`,kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,$$css:!0},innerInput:{kUk6DE:`x12lumcd`,k7Eaqz:`xeuugli`,kMzoRj:`xc342km`,kWkggS:`xjbqb8w`,kMwMTN:`x84br7x`,kI3sdo:`x1a2a7pz`,kmVPX3:`x1717udv`,kGuDYH:`x1qlqyl8`,k8Qsv1:`x1guo4m0`,k7HAVu:`xaqnwrm`,kYPGJ8:`x1s07b3s`,$$css:!0},addonContainer:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kMwMTN:`xw3nh4a`,$$css:!0},iconGlyphXxs:{kzqmXN:`x1jw3ynk`,kZKoxP:`xvle69y`,$$css:!0},iconGlyphXs:{kzqmXN:`x1xvt488`,kZKoxP:`xf08kfj`,$$css:!0},iconGlyphSm:{kzqmXN:`xcdlrvm`,kZKoxP:`x1l36t39`,$$css:!0},iconGlyphMd:{kzqmXN:`xsk17dz`,kZKoxP:`xaylbqo`,$$css:!0},iconGlyphLg:{kzqmXN:`xwqq7k2`,kZKoxP:`xmll18r`,$$css:!0},iconGlyphXl:{kzqmXN:`x1h5jark`,kZKoxP:`x11q3zg3`,$$css:!0},iconGlyphXxl:{kzqmXN:`xp8d6y2`,kZKoxP:`xam5rvr`,$$css:!0},buttonSlotXxs:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`xvh977a`,$$css:!0},buttonSlotXs:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`xvh977a`,$$css:!0},buttonSlotSm:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`xpj7pl4`,$$css:!0},buttonSlotMd:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`xpj7pl4`,$$css:!0},buttonSlotLg:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x13z6uf9`,$$css:!0},buttonSlotXl:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`x13z6uf9`,$$css:!0},buttonSlotXxl:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`xb6y1gh`,$$css:!0},paddingXxs:{kg3NbH:`x18a9hih`,kOIVth:`xvh977a`,$$css:!0},paddingXs:{kg3NbH:`x97vtpp`,kOIVth:`xx7b8my`,$$css:!0},paddingSm:{kg3NbH:`xvpgqt4`,kOIVth:`xpj7pl4`,$$css:!0},paddingMd:{kg3NbH:`x1ryrjj2`,kOIVth:`x13z6uf9`,$$css:!0},paddingLg:{kg3NbH:`x13s4r1c`,kOIVth:`x13z6uf9`,$$css:!0},paddingXl:{kg3NbH:`xnxx81d`,kOIVth:`xb6y1gh`,$$css:!0},paddingXxl:{kg3NbH:`x1qhpy6z`,kOIVth:`x8233eu`,$$css:!0}},o={xxs:a.sizeXxs,xs:a.sizeXs,sm:a.sizeSm,md:a.sizeMd,lg:a.sizeLg,xl:a.sizeXl,xxl:a.sizeXxl},s={xxs:a.paddingXxs,xs:a.paddingXs,sm:a.paddingSm,md:a.paddingMd,lg:a.paddingLg,xl:a.paddingXl,xxl:a.paddingXxl},c={xxs:a.iconGlyphXxs,xs:a.iconGlyphXs,sm:a.iconGlyphSm,md:a.iconGlyphMd,lg:a.iconGlyphLg,xl:a.iconGlyphXl,xxl:a.iconGlyphXxl},l={xxs:a.buttonSlotXxs,xs:a.buttonSlotXs,sm:a.buttonSlotSm,md:a.buttonSlotMd,lg:a.buttonSlotLg,xl:a.buttonSlotXl,xxl:a.buttonSlotXxl},u={xxs:`xxs`,xs:`xs`,sm:`sm`,md:`sm`,lg:`md`,xl:`lg`,xxl:`xl`};function d({className:e,type:i,size:d=`md`,width:f,style:p,prefix:m,prefixIcon:h,prefixButton:g,suffix:_,suffixIcon:v,suffixButton:y,buttonSize:b,iconSize:x,wrapperSx:S,wrapperClassName:C,disabled:w,sx:T,htmlType:E,htmlSize:D,...O}){let k=O[`aria-invalid`]===!0||O[`aria-invalid`]===`true`,A=d,j=o[A]??a.sizeMd,M=t.resolveWidth(f),N=E??i,P=h??m,F=v??_,I=!!(g||P||y||F),L=u[A]??`sm`,R=x??L,z=b??A;if(!I){let t=n.props(a.base,j,k&&a.invalid,T);return(0,r.jsx)(`input`,{type:N,"data-slot":`input`,"data-size":A,"data-width":f,disabled:w,size:D,...t,style:{...t.style,...p,...M?{width:M}:{}},className:e?`${t.className||``} ${e}`.trim():t.className,...O})}let B=n.props(a.wrapper,j,s[A]??a.paddingMd,k&&a.wrapperInvalid,w&&a.wrapperDisabled,S),V=C?`${B.className||``} ${C}`.trim():B.className,H=n.props(a.innerInput,T),U=e?`${H.className||``} ${e}`.trim():H.className;return(0,r.jsxs)(`div`,{"data-slot":`input-wrapper`,"data-size":A,"data-width":f,...B,style:{...B.style,...M?{width:M}:{}},className:V,children:[g?(0,r.jsx)(`div`,{"data-slot":`input-prefix-button`,...n.props(l[z]),children:g}):P?(0,r.jsx)(`span`,{"data-slot":`input-prefix-icon`,...n.props(a.addonContainer,c[R]),children:P}):null,(0,r.jsx)(`input`,{type:N,"data-slot":`input`,"data-size":A,disabled:w,size:D,...H,style:{...H.style,...p},className:U,...O}),y?(0,r.jsx)(`div`,{"data-slot":`input-suffix-button`,...n.props(l[z]),children:y}):F?(0,r.jsx)(`span`,{"data-slot":`input-suffix-icon`,...n.props(a.addonContainer,c[R]),children:F}):null]})}exports.Input=d;
|
package/dist/index123.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { resolveWidth as e } from "./
|
|
2
|
-
import "react";
|
|
1
|
+
import { resolveWidth as e } from "./index20.js";
|
|
3
2
|
import * as t from "@stylexjs/stylex";
|
|
4
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import "react";
|
|
5
5
|
// src/ui/input.tsx
|
|
6
6
|
var i = {
|
|
7
7
|
base: {
|