@vlrc-fe/components 3.0.3 → 3.0.4
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 +17 -0
- package/README.md +10 -1
- package/bin/registry.mjs +1124 -0
- package/bin/vlrc.mjs +102 -7
- package/dist/ConfirmModal.cjs +276 -1
- package/dist/ConfirmModal.js +119 -103
- package/dist/DataTable/DataTable.cjs +203 -1
- package/dist/DataTable/DataTable.js +161 -120
- package/dist/DataTable/components/DataTableColumnHeader.cjs +214 -1
- package/dist/DataTable/components/DataTableColumnHeader.d.ts +3 -3
- package/dist/DataTable/components/DataTableColumnHeader.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableColumnHeader.js +201 -103
- package/dist/DataTable/components/DataTableFacetedFilter.cjs +332 -1
- package/dist/DataTable/components/DataTableFacetedFilter.d.ts +3 -3
- package/dist/DataTable/components/DataTableFacetedFilter.d.ts.map +1 -1
- package/dist/DataTable/components/DataTableFacetedFilter.js +285 -181
- package/dist/DataTable/components/DataTablePagination.cjs +200 -1
- package/dist/DataTable/components/DataTablePagination.js +188 -91
- package/dist/DataTable/components/DataTableRowActions.cjs +172 -1
- package/dist/DataTable/components/DataTableRowActions.js +161 -62
- package/dist/DataTable/components/DataTableTable.cjs +100 -1
- package/dist/DataTable/components/DataTableTable.js +87 -35
- package/dist/DataTable/components/DataTableToolbar.cjs +112 -1
- package/dist/DataTable/components/DataTableToolbar.js +106 -44
- package/dist/DataTable/components/DataTableViewOptions.cjs +113 -1
- package/dist/DataTable/components/DataTableViewOptions.js +105 -44
- package/dist/DataTable/render/createColumns.cjs +84 -1
- package/dist/DataTable/render/createColumns.js +65 -44
- package/dist/DataTable/render/defaults.cjs +38 -1
- package/dist/DataTable/render/defaults.js +18 -13
- package/dist/Dropdown/Dropdown.cjs +255 -1
- package/dist/Dropdown/Dropdown.js +138 -108
- package/dist/Form/Form.cjs +439 -1
- package/dist/Form/Form.js +417 -206
- package/dist/Form/FormDatePicker/FormDatePicker.cjs +84 -1
- package/dist/Form/FormDatePicker/FormDatePicker.js +68 -65
- package/dist/Form/FormDatePicker/MonthPickerPanel.cjs +217 -1
- package/dist/Form/FormDatePicker/MonthPickerPanel.js +194 -101
- package/dist/Form/FormDatePicker/RangeDatePicker.cjs +144 -1
- package/dist/Form/FormDatePicker/RangeDatePicker.js +94 -77
- package/dist/Form/FormDatePicker/SingleDatePicker.cjs +191 -1
- package/dist/Form/FormDatePicker/SingleDatePicker.js +144 -114
- package/dist/Form/FormDatePicker/TimeInput.cjs +172 -1
- package/dist/Form/FormDatePicker/TimeInput.js +162 -79
- package/dist/Form/FormDatePicker/TimePicker.cjs +107 -1
- package/dist/Form/FormDatePicker/TimePicker.js +58 -43
- package/dist/Form/FormDatePicker/YearPickerPanel.cjs +184 -1
- package/dist/Form/FormDatePicker/YearPickerPanel.js +164 -84
- package/dist/Form/FormDatePicker/types.cjs +10 -1
- package/dist/Form/FormDatePicker/types.js +8 -3
- package/dist/Form/FormDatePicker/useFormDatePicker.cjs +70 -1
- package/dist/Form/FormDatePicker/useFormDatePicker.js +58 -31
- package/dist/Form/FormFileUpload/FileUpload.cjs +603 -1
- package/dist/Form/FormFileUpload/FileUpload.js +452 -306
- package/dist/Form/FormFileUpload/index.cjs +175 -1
- package/dist/Form/FormFileUpload/index.js +164 -50
- package/dist/Form/FormMultiSelect/FormMultiSelect.cjs +46 -1
- package/dist/Form/FormMultiSelect/FormMultiSelect.js +42 -22
- package/dist/Form/FormNumberInput/FormNumberInput.cjs +71 -1
- package/dist/Form/FormNumberInput/FormNumberInput.js +60 -58
- package/dist/Form/FormNumberInput/StepperControls.cjs +104 -1
- package/dist/Form/FormNumberInput/StepperControls.js +78 -43
- package/dist/Form/FormNumberInput/useFormNumberInput.cjs +72 -1
- package/dist/Form/FormNumberInput/useFormNumberInput.js +68 -39
- package/dist/Form/FormRadioGroup/FormRadio.cjs +65 -1
- package/dist/Form/FormRadioGroup/FormRadio.js +38 -38
- package/dist/Form/FormRadioGroup/useFormRadio.cjs +38 -1
- package/dist/Form/FormRadioGroup/useFormRadio.js +27 -16
- package/dist/Form/FormSelect/FormSelect.cjs +46 -1
- package/dist/Form/FormSelect/FormSelect.js +40 -26
- package/dist/Form/FormSelect/useFormSelect.cjs +58 -1
- package/dist/Form/FormSelect/useFormSelect.js +52 -43
- package/dist/Icons/Icons.cjs +155 -1
- package/dist/Icons/Icons.js +142 -142
- package/dist/Modal.cjs +135 -1
- package/dist/Modal.js +67 -54
- package/dist/MultiSelect/MultiSelect.cjs +211 -1
- package/dist/MultiSelect/MultiSelect.js +127 -117
- package/dist/MultiSelect/renderers.cjs +571 -1
- package/dist/MultiSelect/renderers.js +508 -309
- package/dist/MultiSelect/useMultiSelect.cjs +243 -1
- package/dist/MultiSelect/useMultiSelect.js +207 -127
- package/dist/MultiSelect/utils.cjs +123 -1
- package/dist/MultiSelect/utils.js +79 -51
- package/dist/Select/BaseSelect.cjs +265 -1
- package/dist/Select/BaseSelect.js +165 -126
- package/dist/Select/MultiSelectTags.cjs +129 -1
- package/dist/Select/MultiSelectTags.js +82 -56
- package/dist/Typography/Blockquote.cjs +79 -1
- package/dist/Typography/Blockquote.js +40 -38
- package/dist/Typography/Code.cjs +131 -1
- package/dist/Typography/Code.js +64 -58
- package/dist/Typography/Link.cjs +141 -1
- package/dist/Typography/Link.d.ts +1 -2
- package/dist/Typography/Link.d.ts.map +1 -1
- package/dist/Typography/Link.js +74 -63
- package/dist/Typography/Paragraph.cjs +226 -1
- package/dist/Typography/Paragraph.d.ts +1 -2
- package/dist/Typography/Paragraph.d.ts.map +1 -1
- package/dist/Typography/Paragraph.js +119 -107
- package/dist/Typography/Text.cjs +224 -1
- package/dist/Typography/Text.d.ts +1 -2
- package/dist/Typography/Text.d.ts.map +1 -1
- package/dist/Typography/Text.js +117 -100
- package/dist/Typography/Title.cjs +220 -1
- package/dist/Typography/Title.d.ts +1 -2
- package/dist/Typography/Title.d.ts.map +1 -1
- package/dist/Typography/Title.js +125 -103
- package/dist/Typography/Typography.cjs +17 -1
- package/dist/Typography/Typography.js +14 -14
- package/dist/Typography/index.d.ts +1 -1
- package/dist/Typography/index.d.ts.map +1 -1
- package/dist/Typography/index.js +13 -13
- package/dist/Typography/tooltip.cjs +42 -1
- package/dist/Typography/tooltip.js +34 -14
- package/dist/Typography/types.cjs +20 -1
- package/dist/Typography/types.js +5 -2
- package/dist/Typography/utils.cjs +52 -1
- package/dist/Typography/utils.js +48 -21
- package/dist/Typography/weightStyles.cjs +58 -1
- package/dist/Typography/weightStyles.js +26 -25
- package/dist/_virtual/_rolldown/runtime.cjs +32 -1
- package/dist/_virtual/_rolldown/runtime.js +9 -7
- package/dist/assets/stylex.css +135 -1
- package/dist/astryx.cjs +18 -1
- package/dist/astryx.d.ts.map +1 -1
- package/dist/astryx.js +2 -1
- package/dist/index.cjs +789 -1
- package/dist/index.js +122 -118
- package/dist/layout/Box.cjs +203 -1
- package/dist/layout/Box.d.ts +8 -8
- package/dist/layout/Box.d.ts.map +1 -1
- package/dist/layout/Box.js +138 -49
- package/dist/layout/Center.cjs +51 -1
- package/dist/layout/Center.d.ts +3 -3
- package/dist/layout/Center.d.ts.map +1 -1
- package/dist/layout/Center.js +49 -20
- package/dist/layout/Container.cjs +81 -1
- package/dist/layout/Container.d.ts +8 -8
- package/dist/layout/Container.d.ts.map +1 -1
- package/dist/layout/Container.js +34 -30
- package/dist/layout/Stack.cjs +237 -1
- package/dist/layout/Stack.d.ts +9 -9
- package/dist/layout/Stack.d.ts.map +1 -1
- package/dist/layout/Stack.js +220 -75
- package/dist/layout/index.js +9 -9
- package/dist/lazyLoad.cjs +13 -1
- package/dist/lazyLoad.js +9 -9
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +551 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +440 -234
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +546 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +452 -236
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +330 -1
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +272 -164
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +150 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +132 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +90 -74
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +92 -67
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.cjs +11 -1
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.3/node_modules/@radix-ui/number/dist/index.js +8 -7
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.cjs +48 -1
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.js +34 -31
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs +145 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialog@1.1.23_@types_react-dom@19.3.0_@types_react@19.3.0__@types_023ac3f94ac95798b92bc4b7f556cbda/node_modules/@radix-ui/react-alert-dialog/dist/index.js +111 -73
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs +38 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-ratio@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_3fe40fa8e2833eaf8803b46e02e4c30f/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +19 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.cjs +126 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.2.6_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_c3568bdf5c60d38014d320037c857c95/node_modules/@radix-ui/react-avatar/dist/index.js +103 -72
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.cjs +134 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.20_@types_react-dom@19.3.0_@types_react@19.3.0__@types__75f9b408b6aa016f78c6c390e6f84227/node_modules/@radix-ui/react-collapsible/dist/index.js +113 -79
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.cjs +541 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.15_@types_react-dom@19.3.0_@types_react@19.3.0__@types_r_5961dc5beb3cb19a205dfdbd3304cbe5/node_modules/@radix-ui/react-collection/dist/index.js +459 -331
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +39 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-compose-refs/dist/index.js +26 -22
- package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.cjs +304 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-context-menu@2.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types__30d9c1a1570dd32a7a328fd93feebae9/node_modules/@radix-ui/react-context-menu/dist/index.js +234 -160
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.cjs +108 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.2.2_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-context/dist/index.js +82 -67
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.cjs +19 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-direction/dist/index.js +12 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +275 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@_221317ca07dfdaa6590fc49e548d4242/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +228 -127
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +53 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-focus-guards/dist/index.js +40 -22
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +215 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.16_@types_react-dom@19.3.0_@types_react@19.3.0__@types__3593711fa410ee31279d746c57990974/node_modules/@radix-ui/react-focus-scope/dist/index.js +171 -117
- package/dist/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.cjs +219 -1
- package/dist/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.js +178 -118
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.cjs +22 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-id/dist/index.js +17 -13
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.cjs +802 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_bd1746795e703f342b2f4982589d4efb/node_modules/@radix-ui/react-menu/dist/index.js +648 -422
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.cjs +410 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1.24_@types_react-dom@19.3.0_@types_react@19.3.0__@types_reac_b8d55f7c7c6b477421e3cc1ba6fb334b/node_modules/@radix-ui/react-menubar/dist/index.js +313 -212
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs +741 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-menu@1.2.22_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_fde94e4aef42debd49119dde2ad3b250/node_modules/@radix-ui/react-navigation-menu/dist/index.js +602 -417
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.cjs +246 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_ca4fb1e7b10e21399fbf7b38c61d930c/node_modules/@radix-ui/react-popper/dist/index.js +195 -121
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.cjs +27 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1.17_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_dcf9598b366f9d4cb930092169158fb6/node_modules/@radix-ui/react-portal/dist/index.js +20 -17
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.cjs +148 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_rea_d7b4951725c0f0b9fd732151cb937913/node_modules/@radix-ui/react-presence/dist/index.js +115 -67
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.cjs +55 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.10_@types_react-dom@19.3.0_@types_react@19.3.0__@types_re_b879c40dbdb8ea08e1db9842f10f20a8/node_modules/@radix-ui/react-primitive/dist/index.js +27 -21
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +223 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_43a41e6ed06e4781ce7b1fb0f0076623/node_modules/@radix-ui/react-roving-focus/dist/index.js +179 -131
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.cjs +576 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_0a49b18268a9d1d70ad7e785633a1513/node_modules/@radix-ui/react-slider/dist/index.js +437 -308
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.cjs +202 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3.7_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@_f8723a7bd506c0f648804ec2dc0f18e3/node_modules/@radix-ui/react-switch/dist/index.js +160 -125
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.cjs +159 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.21_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@1_2c04ca1fb5fd914a25ee24a303bd8469/node_modules/@radix-ui/react-tabs/dist/index.js +125 -93
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +158 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.19_@types_react-dom@19.3.0_@types_react@19.3.0__@types_e645c0ca626436d86b14232bd158d09b/node_modules/@radix-ui/react-toggle-group/dist/index.js +128 -98
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.cjs +39 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.18_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react_f121473145ec675e8ab50657e8e97e06/node_modules/@radix-ui/react-toggle/dist/index.js +29 -24
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +19 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +13 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +109 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.6_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +91 -68
- package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs +28 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-effect-event@0.0.5_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-effect-event/dist/index.js +22 -17
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +33 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.3_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +25 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +7 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-effect@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.cjs +25 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previous@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-previous/dist/index.js +18 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.cjs +47 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.4_@types_react@19.3.0_react@19.3.1/node_modules/@radix-ui/react-use-size/dist/index.js +38 -28
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +38 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.11_@types_react-dom@19.3.0_@types_react@19.3.0__@ty_ef452cff5863a129db7ebc4b37ab07c3/node_modules/@radix-ui/react-visually-hidden/dist/index.js +19 -15
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.cjs +106 -1
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +95 -34
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.cjs +5 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js +3 -3
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.cjs +6 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js +4 -4
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.cjs +423 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/formatters.js +237 -202
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.cjs +45 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js +35 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.cjs +42 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js +37 -32
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.cjs +20 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.cjs +7 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js +5 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.cjs +27 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/protectedTokens.js +15 -12
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.cjs +45 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constants.js +41 -4
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.cjs +45 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js +42 -4
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.cjs +49 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js +46 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.cjs +358 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js +341 -45
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.cjs +31 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js +28 -7
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.cjs +35 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js +32 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.cjs +44 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js +41 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.cjs +49 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js +46 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.cjs +61 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js +58 -12
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.cjs +38 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js +35 -3
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.cjs +39 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js +36 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +8 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +5 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +50 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +45 -11
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +27 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +20 -14
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +18 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +13 -12
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +77 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +14 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +31 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +6 -6
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +11 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +4 -3
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +210 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/localize.js +197 -188
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +122 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/match.js +12 -12
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.cjs +28 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js +20 -12
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.cjs +34 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js +31 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.cjs +37 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js +32 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.cjs +41 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js +38 -7
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.cjs +45 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js +42 -6
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.cjs +56 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js +53 -8
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.cjs +35 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js +32 -5
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.cjs +45 -1
- package/dist/node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js +42 -4
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.cjs +34 -1
- package/dist/node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.3.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +32 -21
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +39 -1
- package/dist/node_modules/.pnpm/embla-carousel-reactive-utils@8.6.0_embla-carousel@8.6.0/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +27 -20
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1391 -1
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js +1178 -803
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.cjs +7 -1
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +3 -4
- package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.cjs +369 -2
- package/dist/node_modules/.pnpm/input-otp@1.4.2_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/input-otp/dist/index.js +282 -238
- package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.cjs +625 -1
- package/dist/node_modules/.pnpm/react-hook-form@7.83.0_react@19.3.1/node_modules/react-hook-form/dist/index.esm.js +545 -276
- package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.cjs +1033 -9
- package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-number-format/dist/react-number-format.es.js +898 -460
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +47 -38
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/component.js +38 -64
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +13 -1
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +9 -2
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/index.cjs +4 -1
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +36 -1
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -16
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +15 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +10 -10
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +167 -4
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +144 -93
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.cjs +63 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +45 -35
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +14 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +11 -9
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +84 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +75 -43
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.cjs +3 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +3 -3
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +6 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@19.3.0_react@19.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +5 -5
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.cjs +1617 -1
- package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.esm.js +1332 -874
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.cjs +18 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/component.js +15 -7
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.cjs +26 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/hook.js +20 -10
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/index.cjs +4 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.cjs +40 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.3.0_react@19.3.1/node_modules/react-style-singleton/dist/es2015/singleton.js +29 -16
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.cjs +36 -1
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +25 -14
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +20 -1
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +18 -3
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +46 -1
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +38 -19
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.cjs +39 -1
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.3.0_react@19.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +29 -11
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.cjs +18 -1
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/exports.js +13 -12
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.cjs +81 -1
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.3.0_react@19.3.1/node_modules/use-sidecar/dist/es2015/medium.js +58 -45
- package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.cjs +1252 -3
- package/dist/node_modules/.pnpm/vaul@1.1.2_@types_react-dom@19.3.0_@types_react@19.3.0__@types_react@19.3.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/vaul/dist/index.js +1003 -648
- package/dist/theme/index.cjs +63 -1
- package/dist/theme/index.js +31 -31
- package/dist/theme/spacing.cjs +93 -1
- package/dist/theme/spacing.js +52 -26
- package/dist/theme/tokens.stylex.cjs +210 -1
- package/dist/theme/tokens.stylex.js +58 -26
- package/dist/theme/types.cjs +13 -1
- package/dist/theme/types.js +4 -3
- package/dist/theme/width.cjs +39 -1
- package/dist/theme/width.js +16 -4
- package/dist/theme/zIndex.cjs +64 -1
- package/dist/theme/zIndex.js +44 -15
- package/dist/theme.css +135 -1
- package/dist/ui/accordion.cjs +431 -1
- package/dist/ui/accordion.d.ts +10 -10
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +276 -136
- package/dist/ui/action-bar.cjs +274 -1
- package/dist/ui/action-bar.d.ts +11 -11
- package/dist/ui/action-bar.d.ts.map +1 -1
- package/dist/ui/action-bar.js +204 -98
- package/dist/ui/alert-dialog.cjs +538 -1
- package/dist/ui/alert-dialog.d.ts +19 -19
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +459 -167
- package/dist/ui/alert.cjs +163 -1
- package/dist/ui/alert.d.ts +7 -7
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +111 -50
- package/dist/ui/aspect-ratio.cjs +25 -1
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +22 -12
- package/dist/ui/avatar.cjs +341 -1
- package/dist/ui/avatar.d.ts +10 -10
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +226 -114
- package/dist/ui/badge-overflow.cjs +66 -1
- package/dist/ui/badge-overflow.d.ts +5 -5
- package/dist/ui/badge-overflow.d.ts.map +1 -1
- package/dist/ui/badge-overflow.js +34 -27
- package/dist/ui/badge.cjs +167 -1
- package/dist/ui/badge.d.ts +3 -3
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +48 -42
- package/dist/ui/breadcrumb.cjs +508 -1
- package/dist/ui/breadcrumb.d.ts +15 -15
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +386 -159
- package/dist/ui/button.cjs +425 -1
- package/dist/ui/button.d.ts +3 -3
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +137 -117
- package/dist/ui/calendar.cjs +626 -1
- package/dist/ui/calendar.d.ts +5 -5
- package/dist/ui/calendar.d.ts.map +1 -1
- package/dist/ui/calendar.js +309 -192
- package/dist/ui/card.cjs +401 -1
- package/dist/ui/card.d.ts +15 -15
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +300 -119
- package/dist/ui/carousel.cjs +333 -1
- package/dist/ui/carousel.d.ts +10 -10
- package/dist/ui/carousel.d.ts.map +1 -1
- package/dist/ui/carousel.js +245 -126
- package/dist/ui/checkbox.cjs +167 -1
- package/dist/ui/checkbox.d.ts +4 -4
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +66 -58
- package/dist/ui/circular-progress.cjs +139 -1
- package/dist/ui/circular-progress.d.ts +4 -4
- package/dist/ui/circular-progress.d.ts.map +1 -1
- package/dist/ui/circular-progress.js +65 -52
- package/dist/ui/code-block.cjs +819 -0
- package/dist/ui/code-block.d.ts +81 -0
- package/dist/ui/code-block.d.ts.map +1 -0
- package/dist/ui/code-block.js +809 -0
- package/dist/ui/collapsible.cjs +65 -1
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +58 -28
- package/dist/ui/command.cjs +556 -1
- package/dist/ui/command.d.ts +19 -19
- package/dist/ui/command.d.ts.map +1 -1
- package/dist/ui/command.js +432 -163
- package/dist/ui/compare-slider.cjs +170 -1
- package/dist/ui/compare-slider.d.ts +7 -7
- package/dist/ui/compare-slider.d.ts.map +1 -1
- package/dist/ui/compare-slider.js +106 -72
- package/dist/ui/context-menu.cjs +811 -1
- package/dist/ui/context-menu.d.ts +26 -26
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +693 -228
- package/dist/ui/copy-button.cjs +94 -1
- package/dist/ui/copy-button.d.ts +1 -2
- package/dist/ui/copy-button.d.ts.map +1 -1
- package/dist/ui/copy-button.js +56 -44
- package/dist/ui/dialog.cjs +409 -1
- package/dist/ui/dialog.d.ts +18 -18
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +317 -131
- package/dist/ui/drawer.cjs +476 -1
- package/dist/ui/drawer.d.ts +17 -17
- package/dist/ui/drawer.d.ts.map +1 -1
- package/dist/ui/drawer.js +394 -151
- package/dist/ui/dropdown-menu.cjs +638 -1
- package/dist/ui/dropdown-menu.d.ts +26 -26
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +511 -208
- package/dist/ui/editable.cjs +608 -1
- package/dist/ui/editable.d.ts +14 -14
- package/dist/ui/editable.d.ts.map +1 -1
- package/dist/ui/editable.js +478 -218
- package/dist/ui/empty.cjs +310 -1
- package/dist/ui/empty.d.ts +15 -15
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +277 -107
- package/dist/ui/field.cjs +621 -1
- package/dist/ui/field.d.ts +21 -21
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +468 -198
- package/dist/ui/file-upload-adapters.cjs +289 -1
- package/dist/ui/file-upload-adapters.d.ts +1 -2
- package/dist/ui/file-upload-adapters.d.ts.map +1 -1
- package/dist/ui/file-upload-adapters.js +244 -170
- package/dist/ui/file-upload.cjs +1481 -1
- package/dist/ui/file-upload.d.ts +22 -22
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +1064 -598
- package/dist/ui/flex.cjs +203 -1
- package/dist/ui/flex.d.ts +6 -6
- package/dist/ui/flex.d.ts.map +1 -1
- package/dist/ui/flex.js +111 -92
- package/dist/ui/form.cjs +454 -1
- package/dist/ui/form.d.ts +11 -11
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +421 -135
- package/dist/ui/gauge.cjs +127 -1
- package/dist/ui/gauge.d.ts +6 -6
- package/dist/ui/gauge.d.ts.map +1 -1
- package/dist/ui/gauge.js +61 -52
- package/dist/ui/grid.cjs +224 -1
- package/dist/ui/grid.d.ts +7 -7
- package/dist/ui/grid.d.ts.map +1 -1
- package/dist/ui/grid.js +125 -94
- package/dist/ui/hover-card.cjs +86 -1
- package/dist/ui/hover-card.d.ts +6 -6
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +57 -36
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/input-group.cjs +328 -1
- package/dist/ui/input-group.d.ts +12 -12
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input-group.js +207 -105
- package/dist/ui/input-otp.cjs +312 -1
- package/dist/ui/input-otp.d.ts +10 -10
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +217 -94
- package/dist/ui/input.cjs +388 -1
- package/dist/ui/input.d.ts +3 -3
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +137 -119
- package/dist/ui/item.cjs +585 -1
- package/dist/ui/item.d.ts +20 -20
- package/dist/ui/item.d.ts.map +1 -1
- package/dist/ui/item.js +460 -162
- package/dist/ui/kbd.cjs +115 -1
- package/dist/ui/kbd.d.ts +5 -5
- package/dist/ui/kbd.d.ts.map +1 -1
- package/dist/ui/kbd.js +42 -37
- package/dist/ui/label.cjs +67 -1
- package/dist/ui/label.d.ts +4 -4
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +51 -21
- package/dist/ui/marker.cjs +294 -0
- package/dist/ui/marker.d.ts +22 -0
- package/dist/ui/marker.d.ts.map +1 -0
- package/dist/ui/marker.js +290 -0
- package/dist/ui/masonry.cjs +58 -1
- package/dist/ui/masonry.d.ts +4 -4
- package/dist/ui/masonry.d.ts.map +1 -1
- package/dist/ui/masonry.js +41 -36
- package/dist/ui/menubar.cjs +908 -1
- package/dist/ui/menubar.d.ts +29 -29
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +737 -251
- package/dist/ui/navigation-menu.cjs +560 -1
- package/dist/ui/navigation-menu.d.ts +18 -18
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +442 -148
- package/dist/ui/pagination.cjs +575 -1
- package/dist/ui/pagination.d.ts +13 -13
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +422 -172
- package/dist/ui/popover.cjs +93 -1
- package/dist/ui/popover.d.ts +7 -7
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +61 -42
- package/dist/ui/progress.cjs +33 -1
- package/dist/ui/progress.d.ts +3 -3
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +19 -17
- package/dist/ui/questionnaire.cjs +679 -0
- package/dist/ui/questionnaire.d.ts +101 -0
- package/dist/ui/questionnaire.d.ts.map +1 -0
- package/dist/ui/questionnaire.js +667 -0
- package/dist/ui/radio-group.cjs +221 -1
- package/dist/ui/radio-group.d.ts +6 -6
- package/dist/ui/radio-group.d.ts.map +1 -1
- package/dist/ui/radio-group.js +125 -74
- package/dist/ui/rating.cjs +191 -1
- package/dist/ui/rating.d.ts +3 -3
- package/dist/ui/rating.d.ts.map +1 -1
- package/dist/ui/rating.js +96 -78
- package/dist/ui/resizable.cjs +175 -1
- package/dist/ui/resizable.d.ts +7 -7
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +150 -54
- package/dist/ui/responsive-dialog.cjs +400 -1
- package/dist/ui/responsive-dialog.d.ts +17 -17
- package/dist/ui/responsive-dialog.d.ts.map +1 -1
- package/dist/ui/responsive-dialog.js +372 -155
- package/dist/ui/row-col.cjs +510 -1
- package/dist/ui/row-col.d.ts +11 -11
- package/dist/ui/row-col.d.ts.map +1 -1
- package/dist/ui/row-col.js +238 -205
- package/dist/ui/scroll-area.cjs +142 -1
- package/dist/ui/scroll-area.d.ts +6 -6
- package/dist/ui/scroll-area.d.ts.map +1 -1
- package/dist/ui/scroll-area.js +103 -47
- package/dist/ui/segmented.cjs +170 -1
- package/dist/ui/segmented.d.ts +5 -5
- package/dist/ui/segmented.d.ts.map +1 -1
- package/dist/ui/segmented.js +75 -62
- package/dist/ui/select.cjs +484 -1
- package/dist/ui/select.d.ts +17 -17
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +353 -160
- package/dist/ui/separator.cjs +44 -1
- package/dist/ui/separator.d.ts +4 -4
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +17 -17
- package/dist/ui/sheet.cjs +460 -1
- package/dist/ui/sheet.d.ts +16 -16
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +329 -141
- package/dist/ui/sidebar.cjs +1453 -1
- package/dist/ui/sidebar.d.ts +48 -48
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +1057 -438
- package/dist/ui/signature-pad.cjs +740 -0
- package/dist/ui/signature-pad.d.ts +107 -0
- package/dist/ui/signature-pad.d.ts.map +1 -0
- package/dist/ui/signature-pad.js +730 -0
- package/dist/ui/skeleton.cjs +62 -1
- package/dist/ui/skeleton.d.ts +3 -3
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/skeleton.js +50 -20
- package/dist/ui/slider.cjs +47 -1
- package/dist/ui/slider.d.ts +4 -4
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +27 -26
- package/dist/ui/sonner.cjs +28 -1
- package/dist/ui/sonner.js +24 -22
- package/dist/ui/spinner.cjs +73 -1
- package/dist/ui/spinner.d.ts +3 -3
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/spinner.js +29 -28
- package/dist/ui/stat.cjs +334 -1
- package/dist/ui/stat.d.ts +15 -15
- package/dist/ui/stat.d.ts.map +1 -1
- package/dist/ui/stat.js +271 -130
- package/dist/ui/stepper.cjs +785 -1
- package/dist/ui/stepper.d.ts +24 -24
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +594 -281
- package/dist/ui/switch.cjs +203 -1
- package/dist/ui/switch.d.ts +4 -4
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +83 -72
- package/dist/ui/table.cjs +435 -1
- package/dist/ui/table.d.ts +17 -17
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +369 -129
- package/dist/ui/tabs.cjs +340 -1
- package/dist/ui/tabs.d.ts +10 -10
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +204 -95
- package/dist/ui/tags-input.cjs +585 -1
- package/dist/ui/tags-input.d.ts +13 -13
- package/dist/ui/tags-input.d.ts.map +1 -1
- package/dist/ui/tags-input.js +446 -221
- package/dist/ui/textarea.cjs +119 -1
- package/dist/ui/textarea.d.ts +3 -3
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +37 -33
- package/dist/ui/timeline.cjs +583 -1
- package/dist/ui/timeline.d.ts +22 -22
- package/dist/ui/timeline.d.ts.map +1 -1
- package/dist/ui/timeline.js +409 -198
- package/dist/ui/toggle-group.cjs +128 -1
- package/dist/ui/toggle-group.d.ts +7 -7
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +92 -41
- package/dist/ui/toggle.cjs +145 -1
- package/dist/ui/toggle.d.ts +4 -4
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +38 -34
- package/dist/ui/tooltip.cjs +81 -1
- package/dist/ui/tooltip.d.ts +7 -7
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +50 -37
- package/dist/ui/useBreakpoint.cjs +91 -1
- package/dist/ui/useBreakpoint.js +66 -43
- package/dist/utils.cjs +9 -1
- package/dist/utils.js +4 -4
- package/package.json +10 -2
|
@@ -0,0 +1,730 @@
|
|
|
1
|
+
import { Text } from "../Typography/Text.js";
|
|
2
|
+
import { Button } from "./button.js";
|
|
3
|
+
import { cn } from "../utils.js";
|
|
4
|
+
import { Box } from "../layout/Box.js";
|
|
5
|
+
import { HStack } from "../layout/Stack.js";
|
|
6
|
+
import * as stylex from "@stylexjs/stylex";
|
|
7
|
+
import { Redo2, RotateCcw, Undo2 } from "lucide-react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { createContext, forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
10
|
+
import { c } from "react/compiler-runtime";
|
|
11
|
+
// src/ui/signature-pad.tsx
|
|
12
|
+
var SignaturePadContext = createContext(null);
|
|
13
|
+
function useSignaturePad() {
|
|
14
|
+
const context = useContext(SignaturePadContext);
|
|
15
|
+
if (!context) throw new Error("useSignaturePad must be used within a SignaturePad");
|
|
16
|
+
return context;
|
|
17
|
+
}
|
|
18
|
+
var styles = {
|
|
19
|
+
root: {
|
|
20
|
+
k1xSpc: "x78zum5",
|
|
21
|
+
kXwgrk: "xdt5ytf",
|
|
22
|
+
kVAEAm: "x1n2onr6",
|
|
23
|
+
kzqmXN: "xh8yej3",
|
|
24
|
+
kB7OPa: "x9f619",
|
|
25
|
+
kOIVth: "x1m5ztt4",
|
|
26
|
+
$$css: true
|
|
27
|
+
},
|
|
28
|
+
rootDisabled: {
|
|
29
|
+
kSiTet: "xbyyjgo",
|
|
30
|
+
kfzvcC: "x47corl",
|
|
31
|
+
$$css: true
|
|
32
|
+
},
|
|
33
|
+
areaWrapper: {
|
|
34
|
+
kVAEAm: "x1n2onr6",
|
|
35
|
+
kzqmXN: "xh8yej3",
|
|
36
|
+
kAzted: "x1db3i3o",
|
|
37
|
+
kZKoxP: "x1m3v4wt",
|
|
38
|
+
kaIpWk: "xrijj7p",
|
|
39
|
+
kMzoRj: "xmkeg23",
|
|
40
|
+
ksu8eU: "x1y0btm7",
|
|
41
|
+
kVAM5u: "x1f1eyqo",
|
|
42
|
+
kWkggS: "xqlt9m5",
|
|
43
|
+
kVQacm: "xb3r6kr",
|
|
44
|
+
kFalU9: "x5ve5x3",
|
|
45
|
+
kfSwDN: "x87ps6o",
|
|
46
|
+
kB7OPa: "x9f619",
|
|
47
|
+
$$css: true
|
|
48
|
+
},
|
|
49
|
+
guide: {
|
|
50
|
+
kVAEAm: "x10l6tqk",
|
|
51
|
+
kbCHJM: "x1xbu8f8",
|
|
52
|
+
kCIrl2: "xcejyfz",
|
|
53
|
+
krVfgx: "xss27dn",
|
|
54
|
+
kZKoxP: "xjm9jq1",
|
|
55
|
+
kt9PQ7: "xso031l",
|
|
56
|
+
kfdmCh: "xpvcztv",
|
|
57
|
+
kL6WhQ: "xqhcqz8",
|
|
58
|
+
kfzvcC: "x47corl",
|
|
59
|
+
k1xSpc: "x78zum5",
|
|
60
|
+
kGNEyG: "x6s0dn4",
|
|
61
|
+
$$css: true
|
|
62
|
+
},
|
|
63
|
+
guideSign: {
|
|
64
|
+
kVAEAm: "x10l6tqk",
|
|
65
|
+
kbCHJM: "xu96u03",
|
|
66
|
+
krVfgx: "xa17w4h",
|
|
67
|
+
kfzvcC: "x47corl",
|
|
68
|
+
$$css: true
|
|
69
|
+
},
|
|
70
|
+
placeholder: {
|
|
71
|
+
kVAEAm: "x10l6tqk",
|
|
72
|
+
k87sOh: "xwa60dl",
|
|
73
|
+
kbCHJM: "x1nrll8i",
|
|
74
|
+
k3aq6I: "x11lhmoz",
|
|
75
|
+
kfzvcC: "x47corl",
|
|
76
|
+
kfSwDN: "x87ps6o",
|
|
77
|
+
$$css: true
|
|
78
|
+
},
|
|
79
|
+
controls: {
|
|
80
|
+
k1xSpc: "x78zum5",
|
|
81
|
+
kGNEyG: "x6s0dn4",
|
|
82
|
+
kjj79g: "x13a6bvl",
|
|
83
|
+
kOIVth: "x1m5ztt4",
|
|
84
|
+
$$css: true
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
function calculateDistance(p1, p2) {
|
|
88
|
+
return Math.hypot(p2.x - p1.x, p2.y - p1.y);
|
|
89
|
+
}
|
|
90
|
+
function calculateStrokeWidth(p1, p2, minWidth, maxWidth, widthSource) {
|
|
91
|
+
if (widthSource === "pressure" && typeof p2.pressure === "number" && p2.pressure > 0) return minWidth + (maxWidth - minWidth) * p2.pressure;
|
|
92
|
+
if (widthSource === "speed" || widthSource === "auto") {
|
|
93
|
+
if (p1.time && p2.time && p2.time > p1.time) {
|
|
94
|
+
const speed = calculateDistance(p1, p2) / (p2.time - p1.time);
|
|
95
|
+
const factor = Math.max(0, Math.min(1, 1 - speed / 2.5));
|
|
96
|
+
return minWidth + (maxWidth - minWidth) * factor;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return (minWidth + maxWidth) / 2;
|
|
100
|
+
}
|
|
101
|
+
function strokeToSvgPath(stroke) {
|
|
102
|
+
const pts = stroke.points;
|
|
103
|
+
if (pts.length === 0) return "";
|
|
104
|
+
if (pts.length === 1) return `M ${pts[0].x} ${pts[0].y} L ${pts[0].x + .1} ${pts[0].y + .1}`;
|
|
105
|
+
let d = `M ${pts[0].x} ${pts[0].y}`;
|
|
106
|
+
for (let i = 1; i < pts.length - 1; i++) {
|
|
107
|
+
const xc = (pts[i].x + pts[i + 1].x) / 2;
|
|
108
|
+
const yc = (pts[i].y + pts[i + 1].y) / 2;
|
|
109
|
+
d += ` Q ${pts[i].x} ${pts[i].y}, ${xc} ${yc}`;
|
|
110
|
+
}
|
|
111
|
+
d += ` L ${pts[pts.length - 1].x} ${pts[pts.length - 1].y}`;
|
|
112
|
+
return d;
|
|
113
|
+
}
|
|
114
|
+
var SignaturePad = forwardRef(({ value: controlledValue, defaultValue, onValueChange, onStrokeStart, onStrokeEnd, apiRef, color = "currentColor", minWidth = 1.5, maxWidth = 3.5, smoothing = .5, widthSource = "auto", allowedPointers = [
|
|
115
|
+
"mouse",
|
|
116
|
+
"touch",
|
|
117
|
+
"pen"
|
|
118
|
+
], disabled = false, readOnly = false, name, required = false, sx, className, children, ...props }, ref) => {
|
|
119
|
+
const isControlled = controlledValue !== void 0;
|
|
120
|
+
const [internalStrokes, setInternalStrokes] = useState(defaultValue || []);
|
|
121
|
+
const strokes = isControlled ? controlledValue : internalStrokes;
|
|
122
|
+
const [history, setHistory] = useState([]);
|
|
123
|
+
const [historyIndex, setHistoryIndex] = useState(-1);
|
|
124
|
+
const [currentPoints, setCurrentPoints] = useState([]);
|
|
125
|
+
const [isDrawing, setIsDrawing] = useState(false);
|
|
126
|
+
const canvasRef = useRef(null);
|
|
127
|
+
const updateStrokes = useCallback((newStrokes) => {
|
|
128
|
+
if (!isControlled) setInternalStrokes(newStrokes);
|
|
129
|
+
onValueChange?.(newStrokes);
|
|
130
|
+
setHistory((prev) => {
|
|
131
|
+
return [...prev.slice(0, historyIndex + 1), newStrokes];
|
|
132
|
+
});
|
|
133
|
+
setHistoryIndex((prev_0) => prev_0 + 1);
|
|
134
|
+
}, [
|
|
135
|
+
isControlled,
|
|
136
|
+
historyIndex,
|
|
137
|
+
onValueChange
|
|
138
|
+
]);
|
|
139
|
+
const clear = useCallback(() => {
|
|
140
|
+
if (disabled || readOnly) return;
|
|
141
|
+
updateStrokes([]);
|
|
142
|
+
}, [
|
|
143
|
+
disabled,
|
|
144
|
+
readOnly,
|
|
145
|
+
updateStrokes
|
|
146
|
+
]);
|
|
147
|
+
const undo = useCallback(() => {
|
|
148
|
+
if (disabled || readOnly || strokes.length === 0) return;
|
|
149
|
+
const nextStrokes = strokes.slice(0, -1);
|
|
150
|
+
if (!isControlled) setInternalStrokes(nextStrokes);
|
|
151
|
+
onValueChange?.(nextStrokes);
|
|
152
|
+
setHistoryIndex((prev_1) => Math.max(-1, prev_1 - 1));
|
|
153
|
+
}, [
|
|
154
|
+
disabled,
|
|
155
|
+
readOnly,
|
|
156
|
+
strokes,
|
|
157
|
+
isControlled,
|
|
158
|
+
onValueChange
|
|
159
|
+
]);
|
|
160
|
+
const redo = useCallback(() => {
|
|
161
|
+
if (disabled || readOnly) return;
|
|
162
|
+
if (historyIndex < history.length - 1) {
|
|
163
|
+
const nextIndex = historyIndex + 1;
|
|
164
|
+
const nextStrokes_0 = history[nextIndex];
|
|
165
|
+
if (nextStrokes_0) {
|
|
166
|
+
if (!isControlled) setInternalStrokes(nextStrokes_0);
|
|
167
|
+
onValueChange?.(nextStrokes_0);
|
|
168
|
+
setHistoryIndex(nextIndex);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}, [
|
|
172
|
+
disabled,
|
|
173
|
+
readOnly,
|
|
174
|
+
historyIndex,
|
|
175
|
+
history,
|
|
176
|
+
isControlled,
|
|
177
|
+
onValueChange
|
|
178
|
+
]);
|
|
179
|
+
const toSVG = useCallback(() => {
|
|
180
|
+
const canvas = canvasRef.current;
|
|
181
|
+
const width = canvas ? canvas.clientWidth || 400 : 400;
|
|
182
|
+
const height = canvas ? canvas.clientHeight || 200 : 200;
|
|
183
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${width} ${height}" width="${width}" height="${height}">\n ${strokes.map((stroke) => {
|
|
184
|
+
return `<path d="${strokeToSvgPath(stroke)}" fill="none" stroke="${stroke.color || "currentColor"}" stroke-width="${((stroke.minWidth ?? minWidth) + (stroke.maxWidth ?? maxWidth)) / 2}" stroke-linecap="round" stroke-linejoin="round" />`;
|
|
185
|
+
}).join("\n ")}\n</svg>`;
|
|
186
|
+
}, [
|
|
187
|
+
strokes,
|
|
188
|
+
minWidth,
|
|
189
|
+
maxWidth
|
|
190
|
+
]);
|
|
191
|
+
const toDataURL = useCallback((type = "image/png", quality = .92) => {
|
|
192
|
+
if (!canvasRef.current) return "";
|
|
193
|
+
return canvasRef.current.toDataURL(type, quality);
|
|
194
|
+
}, []);
|
|
195
|
+
const startStroke = useCallback((point) => {
|
|
196
|
+
if (disabled || readOnly) return;
|
|
197
|
+
setIsDrawing(true);
|
|
198
|
+
setCurrentPoints([point]);
|
|
199
|
+
}, [disabled, readOnly]);
|
|
200
|
+
const updateStroke = useCallback((point_0) => {
|
|
201
|
+
if (!isDrawing || disabled || readOnly) return;
|
|
202
|
+
setCurrentPoints((prev_2) => [...prev_2, point_0]);
|
|
203
|
+
}, [
|
|
204
|
+
isDrawing,
|
|
205
|
+
disabled,
|
|
206
|
+
readOnly
|
|
207
|
+
]);
|
|
208
|
+
const endStroke = useCallback(() => {
|
|
209
|
+
if (!isDrawing || disabled || readOnly) return;
|
|
210
|
+
setIsDrawing(false);
|
|
211
|
+
if (currentPoints.length > 0) {
|
|
212
|
+
const newStroke = {
|
|
213
|
+
points: currentPoints,
|
|
214
|
+
color,
|
|
215
|
+
minWidth,
|
|
216
|
+
maxWidth
|
|
217
|
+
};
|
|
218
|
+
const nextStrokes_1 = [...strokes, newStroke];
|
|
219
|
+
updateStrokes(nextStrokes_1);
|
|
220
|
+
onStrokeEnd?.(newStroke);
|
|
221
|
+
}
|
|
222
|
+
setCurrentPoints([]);
|
|
223
|
+
}, [
|
|
224
|
+
isDrawing,
|
|
225
|
+
disabled,
|
|
226
|
+
readOnly,
|
|
227
|
+
currentPoints,
|
|
228
|
+
color,
|
|
229
|
+
minWidth,
|
|
230
|
+
maxWidth,
|
|
231
|
+
strokes,
|
|
232
|
+
updateStrokes,
|
|
233
|
+
onStrokeEnd
|
|
234
|
+
]);
|
|
235
|
+
useEffect(() => {
|
|
236
|
+
const canvas_0 = canvasRef.current;
|
|
237
|
+
if (!canvas_0) return;
|
|
238
|
+
const ctx = canvas_0.getContext("2d");
|
|
239
|
+
if (!ctx) return;
|
|
240
|
+
const dpr = typeof window !== "undefined" ? window.devicePixelRatio || 1 : 1;
|
|
241
|
+
const rect = canvas_0.getBoundingClientRect();
|
|
242
|
+
const width_0 = rect.width || canvas_0.clientWidth || 400;
|
|
243
|
+
const height_0 = rect.height || canvas_0.clientHeight || 200;
|
|
244
|
+
if (canvas_0.width !== width_0 * dpr || canvas_0.height !== height_0 * dpr) {
|
|
245
|
+
canvas_0.width = width_0 * dpr;
|
|
246
|
+
canvas_0.height = height_0 * dpr;
|
|
247
|
+
}
|
|
248
|
+
ctx.save();
|
|
249
|
+
ctx.scale(dpr, dpr);
|
|
250
|
+
ctx.clearRect(0, 0, width_0, height_0);
|
|
251
|
+
const renderStrokes = [...strokes];
|
|
252
|
+
if (currentPoints.length > 0) renderStrokes.push({
|
|
253
|
+
points: currentPoints,
|
|
254
|
+
color,
|
|
255
|
+
minWidth,
|
|
256
|
+
maxWidth
|
|
257
|
+
});
|
|
258
|
+
for (const stroke_0 of renderStrokes) {
|
|
259
|
+
const pts = stroke_0.points;
|
|
260
|
+
if (pts.length === 0) continue;
|
|
261
|
+
ctx.strokeStyle = stroke_0.color || color;
|
|
262
|
+
ctx.lineCap = "round";
|
|
263
|
+
ctx.lineJoin = "round";
|
|
264
|
+
if (pts.length === 1) {
|
|
265
|
+
ctx.beginPath();
|
|
266
|
+
ctx.arc(pts[0].x, pts[0].y, (stroke_0.minWidth ?? minWidth) / 2, 0, Math.PI * 2);
|
|
267
|
+
ctx.fillStyle = stroke_0.color || color;
|
|
268
|
+
ctx.fill();
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
ctx.beginPath();
|
|
272
|
+
ctx.moveTo(pts[0].x, pts[0].y);
|
|
273
|
+
for (let i = 1; i < pts.length - 1; i++) {
|
|
274
|
+
const xc = (pts[i].x + pts[i + 1].x) / 2;
|
|
275
|
+
const yc = (pts[i].y + pts[i + 1].y) / 2;
|
|
276
|
+
ctx.lineWidth = calculateStrokeWidth(pts[i - 1], pts[i], stroke_0.minWidth ?? minWidth, stroke_0.maxWidth ?? maxWidth, widthSource);
|
|
277
|
+
ctx.quadraticCurveTo(pts[i].x, pts[i].y, xc, yc);
|
|
278
|
+
ctx.stroke();
|
|
279
|
+
ctx.beginPath();
|
|
280
|
+
ctx.moveTo(xc, yc);
|
|
281
|
+
}
|
|
282
|
+
const last = pts[pts.length - 1];
|
|
283
|
+
const prev_3 = pts[pts.length - 2];
|
|
284
|
+
ctx.lineWidth = calculateStrokeWidth(prev_3, last, stroke_0.minWidth ?? minWidth, stroke_0.maxWidth ?? maxWidth, widthSource);
|
|
285
|
+
ctx.lineTo(last.x, last.y);
|
|
286
|
+
ctx.stroke();
|
|
287
|
+
}
|
|
288
|
+
ctx.restore();
|
|
289
|
+
}, [
|
|
290
|
+
strokes,
|
|
291
|
+
currentPoints,
|
|
292
|
+
color,
|
|
293
|
+
minWidth,
|
|
294
|
+
maxWidth,
|
|
295
|
+
widthSource
|
|
296
|
+
]);
|
|
297
|
+
const api = useMemo(() => ({
|
|
298
|
+
clear,
|
|
299
|
+
undo,
|
|
300
|
+
redo,
|
|
301
|
+
toSVG,
|
|
302
|
+
toDataURL,
|
|
303
|
+
isEmpty: () => strokes.length === 0,
|
|
304
|
+
getStrokes: () => strokes
|
|
305
|
+
}), [
|
|
306
|
+
clear,
|
|
307
|
+
undo,
|
|
308
|
+
redo,
|
|
309
|
+
toSVG,
|
|
310
|
+
toDataURL,
|
|
311
|
+
strokes
|
|
312
|
+
]);
|
|
313
|
+
useImperativeHandle(apiRef, () => api, [api]);
|
|
314
|
+
const contextValue = {
|
|
315
|
+
strokes,
|
|
316
|
+
currentPoints,
|
|
317
|
+
isEmpty: strokes.length === 0 && currentPoints.length === 0,
|
|
318
|
+
isDrawing,
|
|
319
|
+
canUndo: strokes.length > 0,
|
|
320
|
+
canRedo: historyIndex < history.length - 1,
|
|
321
|
+
disabled,
|
|
322
|
+
readOnly,
|
|
323
|
+
color,
|
|
324
|
+
minWidth,
|
|
325
|
+
maxWidth,
|
|
326
|
+
smoothing,
|
|
327
|
+
widthSource,
|
|
328
|
+
allowedPointers,
|
|
329
|
+
clear,
|
|
330
|
+
undo,
|
|
331
|
+
redo,
|
|
332
|
+
toSVG,
|
|
333
|
+
toDataURL,
|
|
334
|
+
canvasRef,
|
|
335
|
+
startStroke,
|
|
336
|
+
updateStroke,
|
|
337
|
+
endStroke
|
|
338
|
+
};
|
|
339
|
+
const sxProps = stylex.props(styles.root, disabled && styles.rootDisabled, sx);
|
|
340
|
+
return /* @__PURE__ */ jsx(SignaturePadContext.Provider, {
|
|
341
|
+
value: contextValue,
|
|
342
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
343
|
+
ref,
|
|
344
|
+
"data-slot": "signature-pad",
|
|
345
|
+
"data-disabled": disabled ? "true" : void 0,
|
|
346
|
+
"data-readonly": readOnly ? "true" : void 0,
|
|
347
|
+
"data-empty": strokes.length === 0 ? "true" : "false",
|
|
348
|
+
className: cn(sxProps.className, className),
|
|
349
|
+
style: sxProps.style,
|
|
350
|
+
...props,
|
|
351
|
+
children: [name && /* @__PURE__ */ jsx("input", {
|
|
352
|
+
type: "hidden",
|
|
353
|
+
name,
|
|
354
|
+
value: strokes.length > 0 ? toSVG() : "",
|
|
355
|
+
required
|
|
356
|
+
}), children]
|
|
357
|
+
})
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
SignaturePad.displayName = "SignaturePad";
|
|
361
|
+
var SignaturePadArea = forwardRef((t0, ref) => {
|
|
362
|
+
const $ = c(44);
|
|
363
|
+
let children;
|
|
364
|
+
let className;
|
|
365
|
+
let props;
|
|
366
|
+
let sx;
|
|
367
|
+
if ($[0] !== t0) {
|
|
368
|
+
({sx, className, children, ...props} = t0);
|
|
369
|
+
$[0] = t0;
|
|
370
|
+
$[1] = children;
|
|
371
|
+
$[2] = className;
|
|
372
|
+
$[3] = props;
|
|
373
|
+
$[4] = sx;
|
|
374
|
+
} else {
|
|
375
|
+
children = $[1];
|
|
376
|
+
className = $[2];
|
|
377
|
+
props = $[3];
|
|
378
|
+
sx = $[4];
|
|
379
|
+
}
|
|
380
|
+
const { canvasRef, allowedPointers, startStroke, updateStroke, endStroke, disabled, readOnly } = useSignaturePad();
|
|
381
|
+
let t1;
|
|
382
|
+
if ($[5] !== allowedPointers || $[6] !== disabled || $[7] !== readOnly || $[8] !== startStroke) {
|
|
383
|
+
t1 = (e) => {
|
|
384
|
+
if (disabled || readOnly) return;
|
|
385
|
+
if (!allowedPointers.includes(e.pointerType)) return;
|
|
386
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
387
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
388
|
+
startStroke({
|
|
389
|
+
x: e.clientX - rect.left,
|
|
390
|
+
y: e.clientY - rect.top,
|
|
391
|
+
pressure: e.pressure,
|
|
392
|
+
time: Date.now()
|
|
393
|
+
});
|
|
394
|
+
};
|
|
395
|
+
$[5] = allowedPointers;
|
|
396
|
+
$[6] = disabled;
|
|
397
|
+
$[7] = readOnly;
|
|
398
|
+
$[8] = startStroke;
|
|
399
|
+
$[9] = t1;
|
|
400
|
+
} else t1 = $[9];
|
|
401
|
+
const handlePointerDown = t1;
|
|
402
|
+
let t2;
|
|
403
|
+
if ($[10] !== allowedPointers || $[11] !== disabled || $[12] !== readOnly || $[13] !== updateStroke) {
|
|
404
|
+
t2 = (e_0) => {
|
|
405
|
+
if (disabled || readOnly) return;
|
|
406
|
+
if (!allowedPointers.includes(e_0.pointerType)) return;
|
|
407
|
+
const rect_0 = e_0.currentTarget.getBoundingClientRect();
|
|
408
|
+
updateStroke({
|
|
409
|
+
x: e_0.clientX - rect_0.left,
|
|
410
|
+
y: e_0.clientY - rect_0.top,
|
|
411
|
+
pressure: e_0.pressure,
|
|
412
|
+
time: Date.now()
|
|
413
|
+
});
|
|
414
|
+
};
|
|
415
|
+
$[10] = allowedPointers;
|
|
416
|
+
$[11] = disabled;
|
|
417
|
+
$[12] = readOnly;
|
|
418
|
+
$[13] = updateStroke;
|
|
419
|
+
$[14] = t2;
|
|
420
|
+
} else t2 = $[14];
|
|
421
|
+
const handlePointerMove = t2;
|
|
422
|
+
let t3;
|
|
423
|
+
if ($[15] !== disabled || $[16] !== endStroke || $[17] !== readOnly) {
|
|
424
|
+
t3 = (e_1) => {
|
|
425
|
+
if (disabled || readOnly) return;
|
|
426
|
+
if (e_1.currentTarget.hasPointerCapture(e_1.pointerId)) e_1.currentTarget.releasePointerCapture(e_1.pointerId);
|
|
427
|
+
endStroke();
|
|
428
|
+
};
|
|
429
|
+
$[15] = disabled;
|
|
430
|
+
$[16] = endStroke;
|
|
431
|
+
$[17] = readOnly;
|
|
432
|
+
$[18] = t3;
|
|
433
|
+
} else t3 = $[18];
|
|
434
|
+
const handlePointerUp = t3;
|
|
435
|
+
let T0;
|
|
436
|
+
let sxProps;
|
|
437
|
+
let t4;
|
|
438
|
+
let t5;
|
|
439
|
+
let t6;
|
|
440
|
+
let t7;
|
|
441
|
+
if ($[19] !== className || $[20] !== disabled || $[21] !== ref || $[22] !== sx) {
|
|
442
|
+
sxProps = stylex.props(styles.areaWrapper, sx);
|
|
443
|
+
T0 = Box;
|
|
444
|
+
t4 = ref;
|
|
445
|
+
t5 = "signature-pad-area";
|
|
446
|
+
t6 = disabled ? -1 : 0;
|
|
447
|
+
t7 = cn(sxProps.className, className);
|
|
448
|
+
$[19] = className;
|
|
449
|
+
$[20] = disabled;
|
|
450
|
+
$[21] = ref;
|
|
451
|
+
$[22] = sx;
|
|
452
|
+
$[23] = T0;
|
|
453
|
+
$[24] = sxProps;
|
|
454
|
+
$[25] = t4;
|
|
455
|
+
$[26] = t5;
|
|
456
|
+
$[27] = t6;
|
|
457
|
+
$[28] = t7;
|
|
458
|
+
} else {
|
|
459
|
+
T0 = $[23];
|
|
460
|
+
sxProps = $[24];
|
|
461
|
+
t4 = $[25];
|
|
462
|
+
t5 = $[26];
|
|
463
|
+
t6 = $[27];
|
|
464
|
+
t7 = $[28];
|
|
465
|
+
}
|
|
466
|
+
let t8;
|
|
467
|
+
if ($[29] !== canvasRef || $[30] !== handlePointerDown || $[31] !== handlePointerMove || $[32] !== handlePointerUp) {
|
|
468
|
+
t8 = /* @__PURE__ */ jsx("canvas", {
|
|
469
|
+
ref: canvasRef,
|
|
470
|
+
"data-slot": "signature-pad-canvas",
|
|
471
|
+
className: "x10l6tqk x13vifvy xu96u03 xh8yej3 x5yr21d x1lliihq x5ve5x3",
|
|
472
|
+
onPointerDown: handlePointerDown,
|
|
473
|
+
onPointerMove: handlePointerMove,
|
|
474
|
+
onPointerUp: handlePointerUp,
|
|
475
|
+
onPointerCancel: handlePointerUp
|
|
476
|
+
});
|
|
477
|
+
$[29] = canvasRef;
|
|
478
|
+
$[30] = handlePointerDown;
|
|
479
|
+
$[31] = handlePointerMove;
|
|
480
|
+
$[32] = handlePointerUp;
|
|
481
|
+
$[33] = t8;
|
|
482
|
+
} else t8 = $[33];
|
|
483
|
+
let t9;
|
|
484
|
+
if ($[34] !== T0 || $[35] !== children || $[36] !== props || $[37] !== sxProps.style || $[38] !== t4 || $[39] !== t5 || $[40] !== t6 || $[41] !== t7 || $[42] !== t8) {
|
|
485
|
+
t9 = /* @__PURE__ */ jsxs(T0, {
|
|
486
|
+
ref: t4,
|
|
487
|
+
"data-slot": t5,
|
|
488
|
+
tabIndex: t6,
|
|
489
|
+
className: t7,
|
|
490
|
+
style: sxProps.style,
|
|
491
|
+
...props,
|
|
492
|
+
children: [t8, children]
|
|
493
|
+
});
|
|
494
|
+
$[34] = T0;
|
|
495
|
+
$[35] = children;
|
|
496
|
+
$[36] = props;
|
|
497
|
+
$[37] = sxProps.style;
|
|
498
|
+
$[38] = t4;
|
|
499
|
+
$[39] = t5;
|
|
500
|
+
$[40] = t6;
|
|
501
|
+
$[41] = t7;
|
|
502
|
+
$[42] = t8;
|
|
503
|
+
$[43] = t9;
|
|
504
|
+
} else t9 = $[43];
|
|
505
|
+
return t9;
|
|
506
|
+
});
|
|
507
|
+
SignaturePadArea.displayName = "SignaturePadArea";
|
|
508
|
+
var SignaturePadGuide = forwardRef((t0, ref) => {
|
|
509
|
+
const $ = c(24);
|
|
510
|
+
let children;
|
|
511
|
+
let className;
|
|
512
|
+
let props;
|
|
513
|
+
let sx;
|
|
514
|
+
if ($[0] !== t0) {
|
|
515
|
+
({sx, className, children, ...props} = t0);
|
|
516
|
+
$[0] = t0;
|
|
517
|
+
$[1] = children;
|
|
518
|
+
$[2] = className;
|
|
519
|
+
$[3] = props;
|
|
520
|
+
$[4] = sx;
|
|
521
|
+
} else {
|
|
522
|
+
children = $[1];
|
|
523
|
+
className = $[2];
|
|
524
|
+
props = $[3];
|
|
525
|
+
sx = $[4];
|
|
526
|
+
}
|
|
527
|
+
let T0;
|
|
528
|
+
let sxProps;
|
|
529
|
+
let t1;
|
|
530
|
+
let t2;
|
|
531
|
+
let t3;
|
|
532
|
+
let t4;
|
|
533
|
+
if ($[5] !== className || $[6] !== ref || $[7] !== sx) {
|
|
534
|
+
sxProps = stylex.props(styles.guide, sx);
|
|
535
|
+
T0 = Box;
|
|
536
|
+
t1 = ref;
|
|
537
|
+
t2 = "signature-pad-guide";
|
|
538
|
+
t3 = "true";
|
|
539
|
+
t4 = cn(sxProps.className, className);
|
|
540
|
+
$[5] = className;
|
|
541
|
+
$[6] = ref;
|
|
542
|
+
$[7] = sx;
|
|
543
|
+
$[8] = T0;
|
|
544
|
+
$[9] = sxProps;
|
|
545
|
+
$[10] = t1;
|
|
546
|
+
$[11] = t2;
|
|
547
|
+
$[12] = t3;
|
|
548
|
+
$[13] = t4;
|
|
549
|
+
} else {
|
|
550
|
+
T0 = $[8];
|
|
551
|
+
sxProps = $[9];
|
|
552
|
+
t1 = $[10];
|
|
553
|
+
t2 = $[11];
|
|
554
|
+
t3 = $[12];
|
|
555
|
+
t4 = $[13];
|
|
556
|
+
}
|
|
557
|
+
let t5;
|
|
558
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
559
|
+
t5 = /* @__PURE__ */ jsx(Box, {
|
|
560
|
+
"data-slot": "signature-pad-guide-sign",
|
|
561
|
+
sx: styles.guideSign,
|
|
562
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
563
|
+
size: "xs",
|
|
564
|
+
type: "secondary",
|
|
565
|
+
children: "✕"
|
|
566
|
+
})
|
|
567
|
+
});
|
|
568
|
+
$[14] = t5;
|
|
569
|
+
} else t5 = $[14];
|
|
570
|
+
let t6;
|
|
571
|
+
if ($[15] !== T0 || $[16] !== children || $[17] !== props || $[18] !== sxProps.style || $[19] !== t1 || $[20] !== t2 || $[21] !== t3 || $[22] !== t4) {
|
|
572
|
+
t6 = /* @__PURE__ */ jsxs(T0, {
|
|
573
|
+
ref: t1,
|
|
574
|
+
"data-slot": t2,
|
|
575
|
+
"aria-hidden": t3,
|
|
576
|
+
className: t4,
|
|
577
|
+
style: sxProps.style,
|
|
578
|
+
...props,
|
|
579
|
+
children: [t5, children]
|
|
580
|
+
});
|
|
581
|
+
$[15] = T0;
|
|
582
|
+
$[16] = children;
|
|
583
|
+
$[17] = props;
|
|
584
|
+
$[18] = sxProps.style;
|
|
585
|
+
$[19] = t1;
|
|
586
|
+
$[20] = t2;
|
|
587
|
+
$[21] = t3;
|
|
588
|
+
$[22] = t4;
|
|
589
|
+
$[23] = t6;
|
|
590
|
+
} else t6 = $[23];
|
|
591
|
+
return t6;
|
|
592
|
+
});
|
|
593
|
+
SignaturePadGuide.displayName = "SignaturePadGuide";
|
|
594
|
+
var SignaturePadPlaceholder = forwardRef(({ sx, className, children = "Sign here", ...props }, ref) => {
|
|
595
|
+
const { isEmpty } = useSignaturePad();
|
|
596
|
+
if (!isEmpty) return null;
|
|
597
|
+
const sxProps = stylex.props(styles.placeholder, sx);
|
|
598
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
599
|
+
ref,
|
|
600
|
+
"data-slot": "signature-pad-placeholder",
|
|
601
|
+
className: cn(sxProps.className, className),
|
|
602
|
+
style: sxProps.style,
|
|
603
|
+
...props,
|
|
604
|
+
children: typeof children === "string" ? /* @__PURE__ */ jsx(Text, {
|
|
605
|
+
size: "sm",
|
|
606
|
+
type: "secondary",
|
|
607
|
+
children
|
|
608
|
+
}) : children
|
|
609
|
+
});
|
|
610
|
+
});
|
|
611
|
+
SignaturePadPlaceholder.displayName = "SignaturePadPlaceholder";
|
|
612
|
+
var SignaturePadControls = forwardRef((t0, ref) => {
|
|
613
|
+
const $ = c(21);
|
|
614
|
+
let children;
|
|
615
|
+
let className;
|
|
616
|
+
let props;
|
|
617
|
+
let sx;
|
|
618
|
+
if ($[0] !== t0) {
|
|
619
|
+
({sx, className, children, ...props} = t0);
|
|
620
|
+
$[0] = t0;
|
|
621
|
+
$[1] = children;
|
|
622
|
+
$[2] = className;
|
|
623
|
+
$[3] = props;
|
|
624
|
+
$[4] = sx;
|
|
625
|
+
} else {
|
|
626
|
+
children = $[1];
|
|
627
|
+
className = $[2];
|
|
628
|
+
props = $[3];
|
|
629
|
+
sx = $[4];
|
|
630
|
+
}
|
|
631
|
+
let T0;
|
|
632
|
+
let sxProps;
|
|
633
|
+
let t1;
|
|
634
|
+
let t2;
|
|
635
|
+
let t3;
|
|
636
|
+
if ($[5] !== className || $[6] !== ref || $[7] !== sx) {
|
|
637
|
+
sxProps = stylex.props(styles.controls, sx);
|
|
638
|
+
T0 = HStack;
|
|
639
|
+
t1 = ref;
|
|
640
|
+
t2 = "signature-pad-controls";
|
|
641
|
+
t3 = cn(sxProps.className, className);
|
|
642
|
+
$[5] = className;
|
|
643
|
+
$[6] = ref;
|
|
644
|
+
$[7] = sx;
|
|
645
|
+
$[8] = T0;
|
|
646
|
+
$[9] = sxProps;
|
|
647
|
+
$[10] = t1;
|
|
648
|
+
$[11] = t2;
|
|
649
|
+
$[12] = t3;
|
|
650
|
+
} else {
|
|
651
|
+
T0 = $[8];
|
|
652
|
+
sxProps = $[9];
|
|
653
|
+
t1 = $[10];
|
|
654
|
+
t2 = $[11];
|
|
655
|
+
t3 = $[12];
|
|
656
|
+
}
|
|
657
|
+
let t4;
|
|
658
|
+
if ($[13] !== T0 || $[14] !== children || $[15] !== props || $[16] !== sxProps.style || $[17] !== t1 || $[18] !== t2 || $[19] !== t3) {
|
|
659
|
+
t4 = /* @__PURE__ */ jsx(T0, {
|
|
660
|
+
ref: t1,
|
|
661
|
+
"data-slot": t2,
|
|
662
|
+
className: t3,
|
|
663
|
+
style: sxProps.style,
|
|
664
|
+
...props,
|
|
665
|
+
children
|
|
666
|
+
});
|
|
667
|
+
$[13] = T0;
|
|
668
|
+
$[14] = children;
|
|
669
|
+
$[15] = props;
|
|
670
|
+
$[16] = sxProps.style;
|
|
671
|
+
$[17] = t1;
|
|
672
|
+
$[18] = t2;
|
|
673
|
+
$[19] = t3;
|
|
674
|
+
$[20] = t4;
|
|
675
|
+
} else t4 = $[20];
|
|
676
|
+
return t4;
|
|
677
|
+
});
|
|
678
|
+
SignaturePadControls.displayName = "SignaturePadControls";
|
|
679
|
+
var SignaturePadUndo = forwardRef(({ variant = "ghost", size = "sm", children, disabled: buttonDisabled, ...props }, ref) => {
|
|
680
|
+
const { undo, canUndo, disabled, readOnly } = useSignaturePad();
|
|
681
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
682
|
+
ref,
|
|
683
|
+
variant,
|
|
684
|
+
size,
|
|
685
|
+
disabled: buttonDisabled ?? (!canUndo || disabled || readOnly),
|
|
686
|
+
onClick: undo,
|
|
687
|
+
"aria-label": "Undo stroke",
|
|
688
|
+
"data-slot": "signature-pad-undo",
|
|
689
|
+
...props,
|
|
690
|
+
children: children || /* @__PURE__ */ jsx(Undo2, { size: 14 })
|
|
691
|
+
});
|
|
692
|
+
});
|
|
693
|
+
SignaturePadUndo.displayName = "SignaturePadUndo";
|
|
694
|
+
var SignaturePadRedo = forwardRef(({ variant = "ghost", size = "sm", children, disabled: buttonDisabled, ...props }, ref) => {
|
|
695
|
+
const { redo, canRedo, disabled, readOnly } = useSignaturePad();
|
|
696
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
697
|
+
ref,
|
|
698
|
+
variant,
|
|
699
|
+
size,
|
|
700
|
+
disabled: buttonDisabled ?? (!canRedo || disabled || readOnly),
|
|
701
|
+
onClick: redo,
|
|
702
|
+
"aria-label": "Redo stroke",
|
|
703
|
+
"data-slot": "signature-pad-redo",
|
|
704
|
+
...props,
|
|
705
|
+
children: children || /* @__PURE__ */ jsx(Redo2, { size: 14 })
|
|
706
|
+
});
|
|
707
|
+
});
|
|
708
|
+
SignaturePadRedo.displayName = "SignaturePadRedo";
|
|
709
|
+
var SignaturePadClear = forwardRef(({ variant = "ghost", size = "sm", children, disabled: buttonDisabled, ...props }, ref) => {
|
|
710
|
+
const { clear, isEmpty, disabled, readOnly } = useSignaturePad();
|
|
711
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
712
|
+
ref,
|
|
713
|
+
variant,
|
|
714
|
+
size,
|
|
715
|
+
disabled: buttonDisabled ?? (isEmpty || disabled || readOnly),
|
|
716
|
+
onClick: clear,
|
|
717
|
+
"aria-label": "Clear signature",
|
|
718
|
+
"data-slot": "signature-pad-clear",
|
|
719
|
+
...props,
|
|
720
|
+
children: children || /* @__PURE__ */ jsxs(HStack, {
|
|
721
|
+
gap: "xxs",
|
|
722
|
+
children: [/* @__PURE__ */ jsx(RotateCcw, { size: 14 }), /* @__PURE__ */ jsx(Text, {
|
|
723
|
+
size: "xs",
|
|
724
|
+
children: "Clear"
|
|
725
|
+
})]
|
|
726
|
+
})
|
|
727
|
+
});
|
|
728
|
+
});
|
|
729
|
+
SignaturePadClear.displayName = "SignaturePadClear";
|
|
730
|
+
export { SignaturePad, SignaturePadArea, SignaturePadClear, SignaturePadControls, SignaturePadGuide, SignaturePadPlaceholder, SignaturePadRedo, SignaturePadUndo, useSignaturePad };
|