@powerhousedao/design-system 6.2.3-dev.4 → 6.2.3-dev.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Removed-CO_5C1ce.js → Removed-OP4eTrAN.js} +1 -1
- package/dist/{Removed-CO_5C1ce.js.map → Removed-OP4eTrAN.js.map} +1 -1
- package/dist/{Tabler-FjvVqX5a.js → Tabler-rjLxlzUV.js} +1 -1
- package/dist/{Tabler-FjvVqX5a.js.map → Tabler-rjLxlzUV.js.map} +1 -1
- package/dist/button-BYcXvZXr.d.ts +13 -0
- package/dist/button-BYcXvZXr.d.ts.map +1 -0
- package/dist/{character-counter-BWoglM2P.d.ts → character-counter-BZmZZCHN.d.ts} +2 -1
- package/dist/character-counter-BZmZZCHN.d.ts.map +1 -0
- package/dist/{checkbox-CGBtXQnI.d.ts → checkbox-BmTXBcCE.d.ts} +4 -4
- package/dist/checkbox-BmTXBcCE.d.ts.map +1 -0
- package/dist/{checkbox-base-CZo-4eL0.d.ts → checkbox-base-Bm0GPWgm.d.ts} +2 -2
- package/dist/checkbox-base-Bm0GPWgm.d.ts.map +1 -0
- package/dist/{command-tFzjgzge.d.ts → command-DHHTsHfH.d.ts} +5 -5
- package/dist/command-DHHTsHfH.d.ts.map +1 -0
- package/dist/connect/components/toast/toast.d.ts +8 -10
- package/dist/connect/components/toast/toast.d.ts.map +1 -1
- package/dist/connect/components/toast/toast.js +4 -4
- package/dist/connect/components/toast/toast.js.map +1 -1
- package/dist/connect/index.d.ts +376 -355
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +779 -151
- package/dist/connect/index.js.map +1 -1
- package/dist/{content-BHWIqmio.d.ts → content-BMXLcwWY.d.ts} +3 -3
- package/dist/content-BMXLcwWY.d.ts.map +1 -0
- package/dist/{enum-field-CwZVs3Ux.d.ts → enum-field-qgV9wsyI.d.ts} +4 -4
- package/dist/enum-field-qgV9wsyI.d.ts.map +1 -0
- package/dist/{form-CKRKn0TQ.d.ts → form-Brj5AQNr.d.ts} +3 -4
- package/dist/form-Brj5AQNr.d.ts.map +1 -0
- package/dist/{form-description-CYkcMEzm.d.ts → form-description-DJrDJzJi.d.ts} +2 -1
- package/dist/form-description-DJrDJzJi.d.ts.map +1 -0
- package/dist/{form-group-C8kL6pdZ.d.ts → form-group-Ckd28lpW.d.ts} +2 -1
- package/dist/form-group-Ckd28lpW.d.ts.map +1 -0
- package/dist/{form-label-b6nQi0XO.d.ts → form-label-C8ghd_lR.d.ts} +2 -1
- package/dist/form-label-C8ghd_lR.d.ts.map +1 -0
- package/dist/{form-message-Dq72nBXz.d.ts → form-message-CnKUkvlj.d.ts} +2 -1
- package/dist/form-message-CnKUkvlj.d.ts.map +1 -0
- package/dist/form-server-error-message-D2tFtDZ0.d.ts +6 -0
- package/dist/form-server-error-message-D2tFtDZ0.d.ts.map +1 -0
- package/dist/{icon-C4QOpsdI.js → icon-01W_S_9A.js} +3 -3
- package/dist/{icon-C4QOpsdI.js.map → icon-01W_S_9A.js.map} +1 -1
- package/dist/{id-autocomplete-C-hwriS5.d.ts → id-autocomplete-CHvGhffo.d.ts} +3 -3
- package/dist/id-autocomplete-CHvGhffo.d.ts.map +1 -0
- package/dist/{id-autocomplete-input-container-DFEyPh5p.d.ts → id-autocomplete-input-container-BqRQGpcs.d.ts} +3 -3
- package/dist/id-autocomplete-input-container-BqRQGpcs.d.ts.map +1 -0
- package/dist/{id-autocomplete-list-EzLpF23C.d.ts → id-autocomplete-list-ChQsiJDg.d.ts} +3 -3
- package/dist/id-autocomplete-list-ChQsiJDg.d.ts.map +1 -0
- package/dist/{id-autocomplete-list-option-CB5B07Hi.d.ts → id-autocomplete-list-option-MsqKeLXD.d.ts} +3 -3
- package/dist/id-autocomplete-list-option-MsqKeLXD.d.ts.map +1 -0
- package/dist/{index--hDSfvJT.d.ts → index-C05uhexJ.d.ts} +14 -45
- package/dist/index-C05uhexJ.d.ts.map +1 -0
- package/dist/index-CpSqVZKp.d.ts +2 -0
- package/dist/index-D6Zk5OLV.d.ts +4 -0
- package/dist/index-DSknqh8u.d.ts +30 -0
- package/dist/index-DU-WgcAh.d.ts +4 -0
- package/dist/index-DaRBrjZI.d.ts +3 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -2
- package/dist/{input-BpEQjaWV.d.ts → input-WDvjJFqf.d.ts} +2 -2
- package/dist/input-WDvjJFqf.d.ts.map +1 -0
- package/dist/json-viewer-Kg0IBIt-.d.ts +7 -0
- package/dist/json-viewer-Kg0IBIt-.d.ts.map +1 -0
- package/dist/{message-list-C4mPpBBa.d.ts → message-list-D8d2ltLd.d.ts} +3 -3
- package/dist/message-list-D8d2ltLd.d.ts.map +1 -0
- package/dist/{popover-XSBOuSih.d.ts → popover-TvQxa0RU.d.ts} +2 -2
- package/dist/popover-TvQxa0RU.d.ts.map +1 -0
- package/dist/{radio-eL0Oy86J.d.ts → radio-CTS4WsNy.d.ts} +2 -2
- package/dist/radio-CTS4WsNy.d.ts.map +1 -0
- package/dist/{radio-group-Bkli6nUz.d.ts → radio-group-CROIwgYz.d.ts} +2 -2
- package/dist/radio-group-CROIwgYz.d.ts.map +1 -0
- package/dist/{radio-group-field-wlqeiLN3.d.ts → radio-group-field-CjX_Zt0C.d.ts} +5 -6
- package/dist/radio-group-field-CjX_Zt0C.d.ts.map +1 -0
- package/dist/{search-autocomplete-BJJkrZ1i.d.ts → search-autocomplete-COvFRZIb.d.ts} +3 -3
- package/dist/search-autocomplete-COvFRZIb.d.ts.map +1 -0
- package/dist/{select-field-C97QIhUL.d.ts → select-field-BuXjM43L.d.ts} +5 -5
- package/dist/select-field-BuXjM43L.d.ts.map +1 -0
- package/dist/{selected-content-CGsK5PR4.d.ts → selected-content-C49jmTLU.d.ts} +3 -3
- package/dist/selected-content-C49jmTLU.d.ts.map +1 -0
- package/dist/{sidebar-DOoE4krt.d.ts → sidebar-4juLhREX.d.ts} +3 -3
- package/dist/sidebar-4juLhREX.d.ts.map +1 -0
- package/dist/{sidebar-provider-C2eyz9TL.d.ts → sidebar-provider-CMG6WQWo.d.ts} +4 -8
- package/dist/sidebar-provider-CMG6WQWo.d.ts.map +1 -0
- package/dist/splitted-input-diff-DBkgDh9Q.d.ts +11 -0
- package/dist/splitted-input-diff-DBkgDh9Q.d.ts.map +1 -0
- package/dist/{src-CVV6HzQZ.js → src-CrUksCLW.js} +17 -14
- package/dist/{src-CVV6HzQZ.js.map → src-CrUksCLW.js.map} +1 -1
- package/dist/text-field-3j4fLJ-7.d.ts +9 -0
- package/dist/text-field-3j4fLJ-7.d.ts.map +1 -0
- package/dist/text-input-diff-B7iFyzTK.d.ts +12 -0
- package/dist/text-input-diff-B7iFyzTK.d.ts.map +1 -0
- package/dist/{text-input-8zXIWHLi.d.ts → text-input-tkqggbWx.d.ts} +5 -6
- package/dist/text-input-tkqggbWx.d.ts.map +1 -0
- package/dist/{tooltip-BxS9HpML.d.ts → tooltip-B4uQJPUm.d.ts} +3 -4
- package/dist/tooltip-B4uQJPUm.d.ts.map +1 -0
- package/dist/{types-Bsn62tJB.d.ts → types-BNTIrhb5.d.ts} +2 -1
- package/dist/types-BNTIrhb5.d.ts.map +1 -0
- package/dist/{types-BTq-St7H.d.ts → types-CpFPFB1a.d.ts} +2 -1
- package/dist/types-CpFPFB1a.d.ts.map +1 -0
- package/dist/{types-C04Q_Fan.d.ts → types-D4CirgNk.d.ts} +2 -2
- package/dist/types-D4CirgNk.d.ts.map +1 -0
- package/dist/{types-CNbvfWjh.d.ts → types-DDSmPhHp.d.ts} +3 -3
- package/dist/types-DDSmPhHp.d.ts.map +1 -0
- package/dist/ui/components/button/button.d.ts +3 -2
- package/dist/ui/components/button/button.js +1 -1
- package/dist/ui/components/button/button.js.map +1 -1
- package/dist/ui/components/character-counter/character-counter.d.ts +3 -2
- package/dist/ui/components/character-counter/character-counter.js.map +1 -1
- package/dist/ui/components/checkbox/checkbox-base.d.ts +3 -2
- package/dist/ui/components/checkbox/checkbox-base.js +1 -1
- package/dist/ui/components/checkbox/checkbox-base.js.map +1 -1
- package/dist/ui/components/checkbox/checkbox.d.ts +3 -2
- package/dist/ui/components/checkbox/checkbox.js +1 -1
- package/dist/ui/components/checkbox/checkbox.js.map +1 -1
- package/dist/ui/components/command/command.d.ts +3 -2
- package/dist/ui/components/command/command.js +8 -8
- package/dist/ui/components/command/command.js.map +1 -1
- package/dist/ui/components/enum-field/enum-field.d.ts +3 -2
- package/dist/ui/components/enum-field/enum-field.js +1 -1
- package/dist/ui/components/enum-field/enum-field.js.map +1 -1
- package/dist/ui/components/enum-field/types.d.ts +3 -2
- package/dist/ui/components/form/form.d.ts +3 -2
- package/dist/ui/components/form/form.js +1 -1
- package/dist/ui/components/form/form.js.map +1 -1
- package/dist/ui/components/form/utils.d.ts +4 -4
- package/dist/ui/components/form/utils.d.ts.map +1 -1
- package/dist/ui/components/form/utils.js.map +1 -1
- package/dist/ui/components/form-description/form-description.d.ts +3 -2
- package/dist/ui/components/form-description/form-description.js.map +1 -1
- package/dist/ui/components/form-group/form-group.d.ts +3 -2
- package/dist/ui/components/form-group/form-group.js.map +1 -1
- package/dist/ui/components/form-label/form-label.d.ts +3 -2
- package/dist/ui/components/form-label/form-label.js +3 -2
- package/dist/ui/components/form-label/form-label.js.map +1 -1
- package/dist/ui/components/form-message/form-message.d.ts +3 -2
- package/dist/ui/components/form-message/form-message.js.map +1 -1
- package/dist/ui/components/form-message/form-server-error-message.d.ts +3 -2
- package/dist/ui/components/form-message/form-server-error-message.js.map +1 -1
- package/dist/ui/components/form-message/message-list.d.ts +3 -2
- package/dist/ui/components/form-message/message-list.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-context.d.ts +3 -5
- package/dist/ui/components/id-autocomplete/id-autocomplete-context.d.ts.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-context.js +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-context.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js +2 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-input-container.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js +2 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-list-option.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete-list.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete-list.js.map +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/id-autocomplete.js +1 -1
- package/dist/ui/components/id-autocomplete/id-autocomplete.js.map +1 -1
- package/dist/ui/components/id-autocomplete/types.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/use-id-autocomplete.d.ts +3 -2
- package/dist/ui/components/id-autocomplete/use-id-autocomplete.js.map +1 -1
- package/dist/ui/components/index.d.ts +42 -40
- package/dist/ui/components/input/input.d.ts +3 -2
- package/dist/ui/components/input/input.js +1 -1
- package/dist/ui/components/input/input.js.map +1 -1
- package/dist/ui/components/input/splitted-input-diff.d.ts +3 -2
- package/dist/ui/components/input/splitted-input-diff.js +10 -9
- package/dist/ui/components/input/splitted-input-diff.js.map +1 -1
- package/dist/ui/components/input/subcomponent/input-diff.d.ts +2 -11
- package/dist/ui/components/input/subcomponent/input-diff.d.ts.map +1 -1
- package/dist/ui/components/input/subcomponent/input-diff.js.map +1 -1
- package/dist/ui/components/input/subcomponent/text-diff.d.ts +3 -12
- package/dist/ui/components/input/subcomponent/text-diff.d.ts.map +1 -1
- package/dist/ui/components/input/subcomponent/text-diff.js.map +1 -1
- package/dist/ui/components/json-viewer/json-viewer.d.ts +3 -2
- package/dist/ui/components/json-viewer/json-viewer.js +1 -1
- package/dist/ui/components/json-viewer/json-viewer.js.map +1 -1
- package/dist/ui/components/popover/popover.d.ts +3 -2
- package/dist/ui/components/popover/popover.js +1 -1
- package/dist/ui/components/popover/popover.js.map +1 -1
- package/dist/ui/components/radio-group-field/radio-group-field.d.ts +3 -2
- package/dist/ui/components/radio-group-field/radio-group-field.js +4 -3
- package/dist/ui/components/radio-group-field/radio-group-field.js.map +1 -1
- package/dist/ui/components/radio-group-field/radio-group.d.ts +3 -2
- package/dist/ui/components/radio-group-field/radio-group.js +1 -1
- package/dist/ui/components/radio-group-field/radio-group.js.map +1 -1
- package/dist/ui/components/radio-group-field/radio.d.ts +3 -2
- package/dist/ui/components/radio-group-field/radio.js +1 -1
- package/dist/ui/components/radio-group-field/radio.js.map +1 -1
- package/dist/ui/components/search-autocomplete/index.d.ts +6 -4
- package/dist/ui/components/search-autocomplete/search-autocomplete.d.ts +3 -2
- package/dist/ui/components/search-autocomplete/search-autocomplete.js.map +1 -1
- package/dist/ui/components/search-autocomplete/types.d.ts +3 -2
- package/dist/ui/components/search-autocomplete/use-search-autocomplete.d.ts +3 -2
- package/dist/ui/components/search-autocomplete/use-search-autocomplete.js.map +1 -1
- package/dist/ui/components/select-field/content.d.ts +3 -2
- package/dist/ui/components/select-field/content.js +1 -1
- package/dist/ui/components/select-field/content.js.map +1 -1
- package/dist/ui/components/select-field/select-field.d.ts +3 -2
- package/dist/ui/components/select-field/select-field.js +1 -1
- package/dist/ui/components/select-field/select-field.js.map +1 -1
- package/dist/ui/components/select-field/selected-content.d.ts +3 -2
- package/dist/ui/components/select-field/selected-content.js +1 -1
- package/dist/ui/components/select-field/selected-content.js.map +1 -1
- package/dist/ui/components/select-field/subcomponents/CommandItemList.d.ts +3 -4
- package/dist/ui/components/select-field/subcomponents/CommandItemList.d.ts.map +1 -1
- package/dist/ui/components/select-field/subcomponents/CommandItemList.js +1 -1
- package/dist/ui/components/select-field/subcomponents/CommandItemList.js.map +1 -1
- package/dist/ui/components/select-field/use-select-field.d.ts +4 -12
- package/dist/ui/components/select-field/use-select-field.d.ts.map +1 -1
- package/dist/ui/components/select-field/use-select-field.js.map +1 -1
- package/dist/ui/components/sidebar/index.d.ts +6 -4
- package/dist/ui/components/sidebar/sidebar.d.ts +3 -2
- package/dist/ui/components/sidebar/sidebar.js +1 -1
- package/dist/ui/components/sidebar/sidebar.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.d.ts +2 -7
- package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.js +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-content-area.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-header.d.ts +2 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-header.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-header.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-item.d.ts +3 -18
- package/dist/ui/components/sidebar/subcomponents/sidebar-item.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-item.js +3 -3
- package/dist/ui/components/sidebar/subcomponents/sidebar-item.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-pinning-area.d.ts +2 -4
- package/dist/ui/components/sidebar/subcomponents/sidebar-pinning-area.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-pinning-area.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/index.d.ts +4 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.d.ts +3 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.js +2 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.d.ts +7 -8
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.js +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/index.d.ts +2 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.d.ts +2 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.d.ts +2 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.d.ts +2 -2
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.js +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.d.ts +2 -8
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.js +2 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton-item.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton.d.ts +2 -4
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/sidebar-skeleton.js.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/status-icon.d.ts +3 -9
- package/dist/ui/components/sidebar/subcomponents/status-icon.d.ts.map +1 -1
- package/dist/ui/components/sidebar/subcomponents/status-icon.js +1 -1
- package/dist/ui/components/sidebar/subcomponents/status-icon.js.map +1 -1
- package/dist/ui/components/sidebar/types.d.ts +3 -2
- package/dist/ui/components/sidebar/types.js +1 -1
- package/dist/ui/components/sidebar/types.js.map +1 -1
- package/dist/ui/components/sidebar/use-ellipsis.d.ts +2 -2
- package/dist/ui/components/sidebar/use-ellipsis.d.ts.map +1 -1
- package/dist/ui/components/sidebar/use-ellipsis.js.map +1 -1
- package/dist/ui/components/sidebar/use-sidebar-resize.d.ts +3 -9
- package/dist/ui/components/sidebar/use-sidebar-resize.d.ts.map +1 -1
- package/dist/ui/components/sidebar/use-sidebar-resize.js.map +1 -1
- package/dist/ui/components/sidebar/utils.d.ts +10 -11
- package/dist/ui/components/sidebar/utils.d.ts.map +1 -1
- package/dist/ui/components/sidebar/utils.js.map +1 -1
- package/dist/ui/components/text-field/text-field.d.ts +3 -2
- package/dist/ui/components/text-field/text-field.js +3 -2
- package/dist/ui/components/text-field/text-field.js.map +1 -1
- package/dist/ui/components/text-input/text-input-diff.d.ts +3 -2
- package/dist/ui/components/text-input/text-input-diff.js.map +1 -1
- package/dist/ui/components/text-input/text-input.d.ts +3 -2
- package/dist/ui/components/text-input/text-input.js +1 -1
- package/dist/ui/components/text-input/text-input.js.map +1 -1
- package/dist/ui/components/text-input/types.d.ts +3 -2
- package/dist/ui/components/tooltip/tooltip.d.ts +3 -2
- package/dist/ui/components/tooltip/tooltip.js +1 -1
- package/dist/ui/components/tooltip/tooltip.js.map +1 -1
- package/dist/ui/components/types.d.ts +3 -2
- package/dist/ui/components/value-transformer/value-transformer.d.ts +3 -2
- package/dist/ui/components/value-transformer/value-transformer.js +5 -3
- package/dist/ui/components/value-transformer/value-transformer.js.map +1 -1
- package/dist/ui/components/with-field-validation/with-field-validation.d.ts +3 -2
- package/dist/ui/components/with-field-validation/with-field-validation.js +1 -1
- package/dist/ui/components/with-field-validation/with-field-validation.js.map +1 -1
- package/dist/ui/index.d.ts +44 -42
- package/dist/ui/lib/date-picker.d.ts +4 -5
- package/dist/ui/lib/date-picker.d.ts.map +1 -1
- package/dist/ui/lib/date-picker.js +2 -1
- package/dist/ui/lib/date-picker.js.map +1 -1
- package/dist/ui/lib/date-time-picker.d.ts +6 -6
- package/dist/ui/lib/date-time-picker.d.ts.map +1 -1
- package/dist/ui/lib/date-time-picker.js.map +1 -1
- package/dist/ui/lib/deep-equal.d.ts +2 -2
- package/dist/ui/lib/deep-equal.d.ts.map +1 -1
- package/dist/ui/lib/deep-equal.js.map +1 -1
- package/dist/ui/lib/index.d.ts +2 -1
- package/dist/ui/lib/is-empty.d.ts +2 -2
- package/dist/ui/lib/is-empty.d.ts.map +1 -1
- package/dist/ui/lib/is-empty.js.map +1 -1
- package/dist/ui/lib/shared-value-transformers.d.ts +3 -4
- package/dist/ui/lib/shared-value-transformers.d.ts.map +1 -1
- package/dist/ui/lib/shared-value-transformers.js.map +1 -1
- package/dist/ui/lib/types.d.ts +3 -2
- package/dist/ui/lib/value-cast.d.ts +4 -4
- package/dist/ui/lib/value-cast.d.ts.map +1 -1
- package/dist/ui/lib/value-cast.js +10 -4
- package/dist/ui/lib/value-cast.js.map +1 -1
- package/dist/ui/types.d.ts +4 -3
- package/dist/{use-id-autocomplete-By7YSChC.d.ts → use-id-autocomplete-wdw3CfYc.d.ts} +5 -16
- package/dist/use-id-autocomplete-wdw3CfYc.d.ts.map +1 -0
- package/dist/{use-search-autocomplete-IfcQ_gKh.d.ts → use-search-autocomplete-vSvcsvcB.d.ts} +5 -6
- package/dist/use-search-autocomplete-vSvcsvcB.d.ts.map +1 -0
- package/dist/{value-transformer-DQjqtNih.d.ts → value-transformer-BAD6r8Ol.d.ts} +5 -7
- package/dist/value-transformer-BAD6r8Ol.d.ts.map +1 -0
- package/dist/{with-field-validation-Di5D8vU-.d.ts → with-field-validation-Bt02MQn2.d.ts} +3 -3
- package/dist/with-field-validation-Bt02MQn2.d.ts.map +1 -0
- package/package.json +8 -9
- package/dist/button-C8doazjv.d.ts +0 -15
- package/dist/button-C8doazjv.d.ts.map +0 -1
- package/dist/character-counter-BWoglM2P.d.ts.map +0 -1
- package/dist/checkbox-CGBtXQnI.d.ts.map +0 -1
- package/dist/checkbox-base-CZo-4eL0.d.ts.map +0 -1
- package/dist/command-tFzjgzge.d.ts.map +0 -1
- package/dist/content-BHWIqmio.d.ts.map +0 -1
- package/dist/enum-field-CwZVs3Ux.d.ts.map +0 -1
- package/dist/form-CKRKn0TQ.d.ts.map +0 -1
- package/dist/form-description-CYkcMEzm.d.ts.map +0 -1
- package/dist/form-group-C8kL6pdZ.d.ts.map +0 -1
- package/dist/form-label-b6nQi0XO.d.ts.map +0 -1
- package/dist/form-message-Dq72nBXz.d.ts.map +0 -1
- package/dist/form-server-error-message-DXbaiTfF.d.ts +0 -7
- package/dist/form-server-error-message-DXbaiTfF.d.ts.map +0 -1
- package/dist/id-autocomplete-C-hwriS5.d.ts.map +0 -1
- package/dist/id-autocomplete-input-container-DFEyPh5p.d.ts.map +0 -1
- package/dist/id-autocomplete-list-EzLpF23C.d.ts.map +0 -1
- package/dist/id-autocomplete-list-option-CB5B07Hi.d.ts.map +0 -1
- package/dist/index--hDSfvJT.d.ts.map +0 -1
- package/dist/index--okzibnx.d.ts +0 -1
- package/dist/index-BLwMeReG.d.ts +0 -1
- package/dist/index-Cw3C7_1f.d.ts +0 -1
- package/dist/index-E7Wvm5uX.d.ts +0 -1
- package/dist/index-J3R2mDFQ.d.ts +0 -1
- package/dist/input-BpEQjaWV.d.ts.map +0 -1
- package/dist/json-viewer-DaTgmzkS.d.ts +0 -8
- package/dist/json-viewer-DaTgmzkS.d.ts.map +0 -1
- package/dist/message-list-C4mPpBBa.d.ts.map +0 -1
- package/dist/popover-XSBOuSih.d.ts.map +0 -1
- package/dist/radio-eL0Oy86J.d.ts.map +0 -1
- package/dist/radio-group-Bkli6nUz.d.ts.map +0 -1
- package/dist/radio-group-field-wlqeiLN3.d.ts.map +0 -1
- package/dist/search-autocomplete-BJJkrZ1i.d.ts.map +0 -1
- package/dist/select-field-C97QIhUL.d.ts.map +0 -1
- package/dist/selected-content-CGsK5PR4.d.ts.map +0 -1
- package/dist/sidebar-DOoE4krt.d.ts.map +0 -1
- package/dist/sidebar-provider-C2eyz9TL.d.ts.map +0 -1
- package/dist/splitted-input-diff-CwPedpov.d.ts +0 -18
- package/dist/splitted-input-diff-CwPedpov.d.ts.map +0 -1
- package/dist/text-field-DSInH67J.d.ts +0 -10
- package/dist/text-field-DSInH67J.d.ts.map +0 -1
- package/dist/text-input-8zXIWHLi.d.ts.map +0 -1
- package/dist/text-input-diff-B0vLSKQm.d.ts +0 -20
- package/dist/text-input-diff-B0vLSKQm.d.ts.map +0 -1
- package/dist/tooltip-BxS9HpML.d.ts.map +0 -1
- package/dist/types-BTq-St7H.d.ts.map +0 -1
- package/dist/types-Bsn62tJB.d.ts.map +0 -1
- package/dist/types-C04Q_Fan.d.ts.map +0 -1
- package/dist/types-CNbvfWjh.d.ts.map +0 -1
- package/dist/use-id-autocomplete-By7YSChC.d.ts.map +0 -1
- package/dist/use-search-autocomplete-IfcQ_gKh.d.ts.map +0 -1
- package/dist/value-transformer-DQjqtNih.d.ts.map +0 -1
- package/dist/with-field-validation-Di5D8vU-.d.ts.map +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { t as DateFieldValue } from "../../types-
|
|
2
|
-
|
|
1
|
+
import { t as DateFieldValue } from "../../types-CpFPFB1a.js";
|
|
3
2
|
//#region src/ui/lib/date-picker.d.ts
|
|
4
|
-
declare const splitIso8601DateTime: (isoString: string) => {
|
|
3
|
+
export declare const splitIso8601DateTime: (isoString: string) => {
|
|
5
4
|
date: string;
|
|
6
5
|
time: string;
|
|
7
6
|
};
|
|
8
|
-
declare const getDateFromValue: (value: DateFieldValue) => string;
|
|
7
|
+
export declare const getDateFromValue: (value: DateFieldValue) => string;
|
|
9
8
|
//#endregion
|
|
10
|
-
export {
|
|
9
|
+
export {};
|
|
11
10
|
//# sourceMappingURL=date-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.d.ts","names":[],"sources":["../../../src/ui/lib/date-picker.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"date-picker.d.ts","names":[],"sources":["../../../src/ui/lib/date-picker.ts"],"mappings":";;qBAGa,uBAAoB;EAI7B;EACA;;qBA4BS,mBAAgB,OAAW"}
|
|
@@ -21,7 +21,8 @@ const splitDateTime = (value) => {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
if (isValid(value)) {
|
|
24
|
-
const
|
|
24
|
+
const dateString = value.toISOString();
|
|
25
|
+
const { date, time } = splitIso8601DateTime(dateString);
|
|
25
26
|
return {
|
|
26
27
|
date,
|
|
27
28
|
time
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.js","names":["isValid","splitIso8601DateTime","isoString","datePart","timePart","split","date","time","splitDateTime","value","defaultResult","dateString","toISOString","getDateFromValue"],"sources":["../../../src/ui/lib/date-picker.ts"],"sourcesContent":["import { isValid } from \"date-fns\";\nimport type { DateFieldValue } from \"./types.js\";\n\nexport const splitIso8601DateTime = (isoString: string) => {\n const [datePart, timePart] = isoString.split(\"T\");\n\n return {\n date: datePart,\n time: timePart,\n };\n};\n\nconst splitDateTime = (\n value: DateFieldValue,\n): { date: string; time: string } => {\n const defaultResult = { date: \"\", time: \"\" };\n\n if (!value) {\n return defaultResult;\n }\n\n if (typeof value === \"string\") {\n const { date, time } = splitIso8601DateTime(value);\n\n return { date, time };\n }\n\n if (isValid(value)) {\n const dateString = value.toISOString();\n const { date, time } = splitIso8601DateTime(dateString);\n return { date, time };\n }\n\n return defaultResult;\n};\n\nexport const getDateFromValue = (value: DateFieldValue): string => {\n const { date } = splitDateTime(value);\n return date;\n};\n"],"mappings":";;AAGA,MAAaC,wBAAwBC,cAAsB;CACzD,MAAM,CAACC,UAAUC,YAAYF,UAAUG,MAAM,
|
|
1
|
+
{"version":3,"file":"date-picker.js","names":["isValid","splitIso8601DateTime","isoString","datePart","timePart","split","date","time","splitDateTime","value","defaultResult","dateString","toISOString","getDateFromValue"],"sources":["../../../src/ui/lib/date-picker.ts"],"sourcesContent":["import { isValid } from \"date-fns\";\nimport type { DateFieldValue } from \"./types.js\";\n\nexport const splitIso8601DateTime = (isoString: string) => {\n const [datePart, timePart] = isoString.split(\"T\");\n\n return {\n date: datePart,\n time: timePart,\n };\n};\n\nconst splitDateTime = (\n value: DateFieldValue,\n): { date: string; time: string } => {\n const defaultResult = { date: \"\", time: \"\" };\n\n if (!value) {\n return defaultResult;\n }\n\n if (typeof value === \"string\") {\n const { date, time } = splitIso8601DateTime(value);\n\n return { date, time };\n }\n\n if (isValid(value)) {\n const dateString = value.toISOString();\n const { date, time } = splitIso8601DateTime(dateString);\n return { date, time };\n }\n\n return defaultResult;\n};\n\nexport const getDateFromValue = (value: DateFieldValue): string => {\n const { date } = splitDateTime(value);\n return date;\n};\n"],"mappings":";;AAGA,MAAaC,wBAAwBC,cAAsB;CACzD,MAAM,CAACC,UAAUC,YAAYF,UAAUG,MAAM,GAAG;CAEhD,OAAO;EACLC,MAAMH;EACNI,MAAMH;CACR;AACF;AAEA,MAAMI,iBACJC,UACmC;CACnC,MAAMC,gBAAgB;EAAEJ,MAAM;EAAIC,MAAM;CAAG;CAE3C,IAAI,CAACE,OACH,OAAOC;CAGT,IAAI,OAAOD,UAAU,UAAU;EAC7B,MAAM,EAAEH,MAAMC,SAASN,qBAAqBQ,KAAK;EAEjD,OAAO;GAAEH;GAAMC;EAAK;CACtB;CAEA,IAAIP,QAAQS,KAAK,GAAG;EAClB,MAAME,aAAaF,MAAMG,YAAY;EACrC,MAAM,EAAEN,MAAMC,SAASN,qBAAqBU,UAAU;EACtD,OAAO;GAAEL;GAAMC;EAAK;CACtB;CAEA,OAAOG;AACT;AAEA,MAAaG,oBAAoBJ,UAAkC;CACjE,MAAM,EAAEH,SAASE,cAAcC,KAAK;CACpC,OAAOH;AACT"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/ui/lib/date-time-picker.d.ts
|
|
2
|
-
declare const ALLOWED_FORMATS: string[];
|
|
3
|
-
declare const dateFormatRegexes: {
|
|
2
|
+
export declare const ALLOWED_FORMATS: string[];
|
|
3
|
+
export declare const dateFormatRegexes: {
|
|
4
4
|
"yyyy-MM-dd": RegExp;
|
|
5
5
|
"dd/MM/yyyy": RegExp;
|
|
6
6
|
"MM/dd/yyyy": RegExp;
|
|
@@ -26,9 +26,9 @@ declare const dateFormatRegexes: {
|
|
|
26
26
|
* @example
|
|
27
27
|
* parseInputString("2024-01-01 12:00:00", "yyyy-MM-dd HH:mm:ss") // "2024-01-01 12:00:00"
|
|
28
28
|
*/
|
|
29
|
-
declare const parseInputString: (inputString: string, dateFormat?: string) => string;
|
|
30
|
-
declare const getDateFormat: (displayFormat: string) => string | undefined;
|
|
31
|
-
declare const normalizeMonthFormat: (dateString: string) => string;
|
|
29
|
+
export declare const parseInputString: (inputString: string, dateFormat?: string) => string;
|
|
30
|
+
export declare const getDateFormat: (displayFormat: string) => string | undefined;
|
|
31
|
+
export declare const normalizeMonthFormat: (dateString: string) => string;
|
|
32
32
|
//#endregion
|
|
33
|
-
export {
|
|
33
|
+
export {};
|
|
34
34
|
//# sourceMappingURL=date-time-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-time-picker.d.ts","names":[],"sources":["../../../src/ui/lib/date-time-picker.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"date-time-picker.d.ts","names":[],"sources":["../../../src/ui/lib/date-time-picker.ts"],"mappings":";qBAEa;qBAQA;EACX,cAAY;EACZ,cAAY;EACZ,cAAY;EACZ,eAAa;EAEb,eAAa;;;;;;;;;;;;;;;;;;;;;qBAwBF,mBAAgB,qBACR;qBA6BR,gBAAa;qBAiBb,uBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-time-picker.js","names":["format","isValid","parse","ALLOWED_FORMATS","dateFormatRegexes","parseInputString","inputString","dateFormat","newInputString","normalizeMonthFormat","specifiedFormatRegex","test","parsedDate","Date","formatStr","regex","Object","entries","newValue","getDateFormat","displayFormat","undefined","dateString","months","replace","month","upperMonth","toUpperCase","monthIndex","indexOf","charAt","slice","toLowerCase"],"sources":["../../../src/ui/lib/date-time-picker.ts"],"sourcesContent":["import { format, isValid, parse } from \"date-fns\";\n\nexport const ALLOWED_FORMATS = [\n \"yyyy-MM-dd\",\n \"dd/MM/yyyy\",\n \"MM/dd/yyyy\",\n \"dd-MMM-yyyy\",\n \"MMM-dd-yyyy\",\n];\n\nexport const dateFormatRegexes = {\n \"yyyy-MM-dd\": /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/,\n \"dd/MM/yyyy\": /^(0[1-9]|[12]\\d|3[01])\\/(0[1-9]|1[0-2])\\/\\d{4}$/,\n \"MM/dd/yyyy\": /^(0[1-9]|1[0-2])\\/(0[1-9]|[12]\\d|3[01])\\/\\d{4}$/,\n \"dd-MMM-yyyy\":\n /^(0[1-9]|[12]\\d|3[01])-(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\\d{4}$/,\n \"MMM-dd-yyyy\":\n /^(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(0[1-9]|[12]\\d|3[01])-\\d{4}$/,\n};\n\n/**\n * Gets the current UTC offset for a specific time zone\n * @param timeZone - The IANA time zone name (e.g. \"America/New_York\", \"Europe/London\").\n * If not provided or invalid, falls back to local system timezone.\n * @returns The offset in ISO 8601 format (±HH:mm) based on current DST rules.\n * @example\n * getOffset(\"America/New_York\") // Returns \"-04:00\" (EDT) or \"-05:00\" (EST)\n * getOffset(\"Asia/Kolkata\") // Returns \"+05:30\" (IST - no DST)\n * getOffset(\"Invalid/Zone\") // Returns local system offset (e.g. \"-03:00\")\n * getOffset() // Returns local system offset\n */\n\n/**\n * Parse an input string to a valid date format\n * @param inputString - The input string to parse\n * @param dateFormat - The date format to use\n * @returns The parsed date string\n * @example\n * parseInputString(\"2024-01-01 12:00:00\", \"yyyy-MM-dd HH:mm:ss\") // \"2024-01-01 12:00:00\"\n */\nexport const parseInputString = (\n inputString: string,\n dateFormat = ALLOWED_FORMATS[0],\n): string => {\n const newInputString = normalizeMonthFormat(inputString);\n\n if (!dateFormat || !inputString) return inputString;\n\n // First check the specified format\n const specifiedFormatRegex =\n dateFormatRegexes[dateFormat as keyof typeof dateFormatRegexes];\n if (specifiedFormatRegex.test(newInputString)) {\n const parsedDate = parse(newInputString, dateFormat, new Date());\n if (isValid(parsedDate)) {\n return format(parsedDate, dateFormat);\n }\n }\n\n for (const [formatStr, regex] of Object.entries(dateFormatRegexes)) {\n if (regex.test(newInputString)) {\n const parsedDate = parse(newInputString, formatStr, new Date());\n if (isValid(parsedDate)) {\n const newValue = format(parsedDate, dateFormat || formatStr);\n return newValue;\n }\n }\n }\n return inputString;\n};\n\nexport const getDateFormat = (displayFormat: string): string | undefined => {\n switch (displayFormat) {\n case \"YYYY-MM-DD\":\n return \"yyyy-MM-dd\";\n case \"DD/MM/YYYY\":\n return \"dd/MM/yyyy\";\n case \"MM/DD/YYYY\":\n return \"MM/dd/yyyy\";\n case \"DD-MMM-YYYY\":\n return \"dd-MMM-yyyy\";\n case \"MMM-DD-YYYY\":\n return \"MMM-dd-yyyy\";\n default:\n return undefined;\n }\n};\n\nexport const normalizeMonthFormat = (dateString: string): string => {\n const months = [\n \"JAN\",\n \"FEB\",\n \"MAR\",\n \"APR\",\n \"MAY\",\n \"JUN\",\n \"JUL\",\n \"AUG\",\n \"SEP\",\n \"OCT\",\n \"NOV\",\n \"DEC\",\n ];\n\n return dateString.replace(\n /(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/i,\n (month) => {\n const upperMonth = month.toUpperCase();\n const monthIndex = months.indexOf(upperMonth);\n if (monthIndex !== -1) {\n return (\n months[monthIndex].charAt(0) +\n months[monthIndex].slice(1).toLowerCase()\n );\n }\n return month;\n },\n );\n};\n"],"mappings":";;AAEA,MAAaG,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;
|
|
1
|
+
{"version":3,"file":"date-time-picker.js","names":["format","isValid","parse","ALLOWED_FORMATS","dateFormatRegexes","parseInputString","inputString","dateFormat","newInputString","normalizeMonthFormat","specifiedFormatRegex","test","parsedDate","Date","formatStr","regex","Object","entries","newValue","getDateFormat","displayFormat","undefined","dateString","months","replace","month","upperMonth","toUpperCase","monthIndex","indexOf","charAt","slice","toLowerCase"],"sources":["../../../src/ui/lib/date-time-picker.ts"],"sourcesContent":["import { format, isValid, parse } from \"date-fns\";\n\nexport const ALLOWED_FORMATS = [\n \"yyyy-MM-dd\",\n \"dd/MM/yyyy\",\n \"MM/dd/yyyy\",\n \"dd-MMM-yyyy\",\n \"MMM-dd-yyyy\",\n];\n\nexport const dateFormatRegexes = {\n \"yyyy-MM-dd\": /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/,\n \"dd/MM/yyyy\": /^(0[1-9]|[12]\\d|3[01])\\/(0[1-9]|1[0-2])\\/\\d{4}$/,\n \"MM/dd/yyyy\": /^(0[1-9]|1[0-2])\\/(0[1-9]|[12]\\d|3[01])\\/\\d{4}$/,\n \"dd-MMM-yyyy\":\n /^(0[1-9]|[12]\\d|3[01])-(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\\d{4}$/,\n \"MMM-dd-yyyy\":\n /^(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(0[1-9]|[12]\\d|3[01])-\\d{4}$/,\n};\n\n/**\n * Gets the current UTC offset for a specific time zone\n * @param timeZone - The IANA time zone name (e.g. \"America/New_York\", \"Europe/London\").\n * If not provided or invalid, falls back to local system timezone.\n * @returns The offset in ISO 8601 format (±HH:mm) based on current DST rules.\n * @example\n * getOffset(\"America/New_York\") // Returns \"-04:00\" (EDT) or \"-05:00\" (EST)\n * getOffset(\"Asia/Kolkata\") // Returns \"+05:30\" (IST - no DST)\n * getOffset(\"Invalid/Zone\") // Returns local system offset (e.g. \"-03:00\")\n * getOffset() // Returns local system offset\n */\n\n/**\n * Parse an input string to a valid date format\n * @param inputString - The input string to parse\n * @param dateFormat - The date format to use\n * @returns The parsed date string\n * @example\n * parseInputString(\"2024-01-01 12:00:00\", \"yyyy-MM-dd HH:mm:ss\") // \"2024-01-01 12:00:00\"\n */\nexport const parseInputString = (\n inputString: string,\n dateFormat = ALLOWED_FORMATS[0],\n): string => {\n const newInputString = normalizeMonthFormat(inputString);\n\n if (!dateFormat || !inputString) return inputString;\n\n // First check the specified format\n const specifiedFormatRegex =\n dateFormatRegexes[dateFormat as keyof typeof dateFormatRegexes];\n if (specifiedFormatRegex.test(newInputString)) {\n const parsedDate = parse(newInputString, dateFormat, new Date());\n if (isValid(parsedDate)) {\n return format(parsedDate, dateFormat);\n }\n }\n\n for (const [formatStr, regex] of Object.entries(dateFormatRegexes)) {\n if (regex.test(newInputString)) {\n const parsedDate = parse(newInputString, formatStr, new Date());\n if (isValid(parsedDate)) {\n const newValue = format(parsedDate, dateFormat || formatStr);\n return newValue;\n }\n }\n }\n return inputString;\n};\n\nexport const getDateFormat = (displayFormat: string): string | undefined => {\n switch (displayFormat) {\n case \"YYYY-MM-DD\":\n return \"yyyy-MM-dd\";\n case \"DD/MM/YYYY\":\n return \"dd/MM/yyyy\";\n case \"MM/DD/YYYY\":\n return \"MM/dd/yyyy\";\n case \"DD-MMM-YYYY\":\n return \"dd-MMM-yyyy\";\n case \"MMM-DD-YYYY\":\n return \"MMM-dd-yyyy\";\n default:\n return undefined;\n }\n};\n\nexport const normalizeMonthFormat = (dateString: string): string => {\n const months = [\n \"JAN\",\n \"FEB\",\n \"MAR\",\n \"APR\",\n \"MAY\",\n \"JUN\",\n \"JUL\",\n \"AUG\",\n \"SEP\",\n \"OCT\",\n \"NOV\",\n \"DEC\",\n ];\n\n return dateString.replace(\n /(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)/i,\n (month) => {\n const upperMonth = month.toUpperCase();\n const monthIndex = months.indexOf(upperMonth);\n if (monthIndex !== -1) {\n return (\n months[monthIndex].charAt(0) +\n months[monthIndex].slice(1).toLowerCase()\n );\n }\n return month;\n },\n );\n};\n"],"mappings":";;AAEA,MAAaG,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;AAAa;AAGf,MAAaC,oBAAoB;CAC/B,cAAc;CACd,cAAc;CACd,cAAc;CACd,eACE;CACF,eACE;AACJ;;;;;;;;;;;;;;;;;;;;AAsBA,MAAaC,oBACXC,aACAC,aAAaJ,gBAAgB,OAClB;CACX,MAAMK,iBAAiBC,qBAAqBH,WAAW;CAEvD,IAAI,CAACC,cAAc,CAACD,aAAa,OAAOA;CAKxC,IADEF,kBAAkBG,WACI,CAACI,KAAKH,cAAc,GAAG;EAC7C,MAAMI,aAAaV,MAAMM,gBAAgBD,4BAAY,IAAIM,KAAK,CAAC;EAC/D,IAAIZ,QAAQW,UAAU,GACpB,OAAOZ,OAAOY,YAAYL,UAAU;CAExC;CAEA,KAAK,MAAM,CAACO,WAAWC,UAAUC,OAAOC,QAAQb,iBAAiB,GAC/D,IAAIW,MAAMJ,KAAKH,cAAc,GAAG;EAC9B,MAAMI,aAAaV,MAAMM,gBAAgBM,2BAAW,IAAID,KAAK,CAAC;EAC9D,IAAIZ,QAAQW,UAAU,GAEpB,OADiBZ,OAAOY,YAAYL,cAAcO,SAC3CI;CAEX;CAEF,OAAOZ;AACT;AAEA,MAAaa,iBAAiBC,kBAA8C;CAC1E,QAAQA,eAAR;EACE,KAAK,cACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,cACH,OAAO;EACT,KAAK,eACH,OAAO;EACT,KAAK,eACH,OAAO;EACT,SACE;CACJ;AACF;AAEA,MAAaX,wBAAwBa,eAA+B;CAClE,MAAMC,SAAS;EACb;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAAK;CAGP,OAAOD,WAAWE,QAChB,uDACCC,UAAU;EACT,MAAMC,aAAaD,MAAME,YAAY;EACrC,MAAMC,aAAaL,OAAOM,QAAQH,UAAU;EAC5C,IAAIE,eAAe,IACjB,OACEL,OAAOK,WAAW,CAACE,OAAO,CAAC,IAC3BP,OAAOK,WAAW,CAACG,MAAM,CAAC,CAAC,CAACC,YAAY;EAG5C,OAAOP;CACT,CACF;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/ui/lib/deep-equal.d.ts
|
|
2
|
-
declare function deepEqual(a: unknown, b: unknown, visited?: Map<any, any>): boolean;
|
|
2
|
+
export declare function deepEqual(a: unknown, b: unknown, visited?: Map<any, any>): boolean;
|
|
3
3
|
//#endregion
|
|
4
|
-
export {
|
|
4
|
+
export {};
|
|
5
5
|
//# sourceMappingURL=deep-equal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deep-equal.d.ts","names":[],"sources":["../../../src/ui/lib/deep-equal.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"deep-equal.d.ts","names":[],"sources":["../../../src/ui/lib/deep-equal.ts"],"mappings":";wBAAgB,UACd,YACA,YACA,UAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deep-equal.js","names":["deepEqual","a","b","visited","Map","undefined","Array","isArray","get","set","length","every","value","index","aKeys","Object","keys","bKeys","key"],"sources":["../../../src/ui/lib/deep-equal.ts"],"sourcesContent":["export function deepEqual(\n a: unknown,\n b: unknown,\n visited = new Map(),\n): boolean {\n if (a === b) {\n return true;\n }\n\n if (a === null || b === null || a === undefined || b === undefined) {\n return false;\n }\n\n if (typeof a !== typeof b) {\n return false;\n }\n\n if (Array.isArray(a) && Array.isArray(b)) {\n if (visited.get(a) === b) {\n return true; // Same circular reference detected\n }\n visited.set(a, b);\n return (\n a.length === b.length &&\n a.every((value, index) => deepEqual(value, b[index], visited))\n );\n }\n\n if (\n typeof a === \"object\" &&\n typeof b === \"object\" &&\n !Array.isArray(a) &&\n !Array.isArray(b)\n ) {\n if (visited.get(a) === b) {\n return true; // Same circular reference detected\n }\n visited.set(a, b);\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n return (\n aKeys.length === bKeys.length &&\n aKeys.every((key) => {\n return (\n key in b &&\n deepEqual(\n (a as Record<string, unknown>)[key],\n (b as Record<string, unknown>)[key],\n visited,\n )\n );\n })\n );\n }\n\n return false;\n}\n"],"mappings":";AAAA,SAAgBA,UACdC,GACAC,GACAC,0BAAU,IAAIC,
|
|
1
|
+
{"version":3,"file":"deep-equal.js","names":["deepEqual","a","b","visited","Map","undefined","Array","isArray","get","set","length","every","value","index","aKeys","Object","keys","bKeys","key"],"sources":["../../../src/ui/lib/deep-equal.ts"],"sourcesContent":["export function deepEqual(\n a: unknown,\n b: unknown,\n visited = new Map(),\n): boolean {\n if (a === b) {\n return true;\n }\n\n if (a === null || b === null || a === undefined || b === undefined) {\n return false;\n }\n\n if (typeof a !== typeof b) {\n return false;\n }\n\n if (Array.isArray(a) && Array.isArray(b)) {\n if (visited.get(a) === b) {\n return true; // Same circular reference detected\n }\n visited.set(a, b);\n return (\n a.length === b.length &&\n a.every((value, index) => deepEqual(value, b[index], visited))\n );\n }\n\n if (\n typeof a === \"object\" &&\n typeof b === \"object\" &&\n !Array.isArray(a) &&\n !Array.isArray(b)\n ) {\n if (visited.get(a) === b) {\n return true; // Same circular reference detected\n }\n visited.set(a, b);\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n return (\n aKeys.length === bKeys.length &&\n aKeys.every((key) => {\n return (\n key in b &&\n deepEqual(\n (a as Record<string, unknown>)[key],\n (b as Record<string, unknown>)[key],\n visited,\n )\n );\n })\n );\n }\n\n return false;\n}\n"],"mappings":";AAAA,SAAgBA,UACdC,GACAC,GACAC,0BAAU,IAAIC,IAAI,GACT;CACT,IAAIH,MAAMC,GACR,OAAO;CAGT,IAAID,MAAM,QAAQC,MAAM,QAAQD,MAAMI,KAAAA,KAAaH,MAAMG,KAAAA,GACvD,OAAO;CAGT,IAAI,OAAOJ,MAAM,OAAOC,GACtB,OAAO;CAGT,IAAII,MAAMC,QAAQN,CAAC,KAAKK,MAAMC,QAAQL,CAAC,GAAG;EACxC,IAAIC,QAAQK,IAAIP,CAAC,MAAMC,GACrB,OAAO;EAETC,QAAQM,IAAIR,GAAGC,CAAC;EAChB,OACED,EAAES,WAAWR,EAAEQ,UACfT,EAAEU,OAAOC,OAAOC,UAAUb,UAAUY,OAAOV,EAAEW,QAAQV,OAAO,CAAC;CAEjE;CAEA,IACE,OAAOF,MAAM,YACb,OAAOC,MAAM,YACb,CAACI,MAAMC,QAAQN,CAAC,KAChB,CAACK,MAAMC,QAAQL,CAAC,GAChB;EACA,IAAIC,QAAQK,IAAIP,CAAC,MAAMC,GACrB,OAAO;EAETC,QAAQM,IAAIR,GAAGC,CAAC;EAChB,MAAMY,QAAQC,OAAOC,KAAKf,CAAC;EAC3B,MAAMgB,QAAQF,OAAOC,KAAKd,CAAC;EAC3B,OACEY,MAAMJ,WAAWO,MAAMP,UACvBI,MAAMH,OAAOO,QAAQ;GACnB,OACEA,OAAOhB,KACPF,UACGC,EAA8BiB,MAC9BhB,EAA8BgB,MAC/Bf,OACF;EAEJ,CAAC;CAEL;CAEA,OAAO;AACT"}
|
package/dist/ui/lib/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ import { deepEqual } from "./deep-equal.js";
|
|
|
4
4
|
import { isEmpty } from "./is-empty.js";
|
|
5
5
|
import { sharedValueTransformers } from "./shared-value-transformers.js";
|
|
6
6
|
import { ValueCast, castFunctions, castValue } from "./value-cast.js";
|
|
7
|
-
export { ALLOWED_FORMATS, ValueCast, castFunctions, castValue, dateFormatRegexes, deepEqual, getDateFormat, getDateFromValue, isEmpty, normalizeMonthFormat, parseInputString, sharedValueTransformers, splitIso8601DateTime };
|
|
7
|
+
export { ALLOWED_FORMATS, ValueCast, castFunctions, castValue, dateFormatRegexes, deepEqual, getDateFormat, getDateFromValue, isEmpty, normalizeMonthFormat, parseInputString, sharedValueTransformers, splitIso8601DateTime };
|
|
8
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-empty.d.ts","names":[],"sources":["../../../src/ui/lib/is-empty.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"is-empty.d.ts","names":[],"sources":["../../../src/ui/lib/is-empty.ts"],"mappings":";wBAAgB,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-empty.js","names":["isEmpty","value","undefined","isNaN","RegExp","Date","Array","isArray","length","Map","Set","size","Object","keys"],"sources":["../../../src/ui/lib/is-empty.ts"],"sourcesContent":["export function isEmpty(value: unknown): boolean {\n if (\n value === null ||\n value === undefined ||\n (typeof value === \"number\" && isNaN(value))\n ) {\n return true;\n }\n\n if (typeof value === \"boolean\" || typeof value === \"number\") {\n return false;\n }\n\n if (value instanceof RegExp || value instanceof Date) {\n return false; // Regex and Date are not considered empty\n }\n\n if (typeof value === \"string\" || Array.isArray(value)) {\n return value.length === 0;\n }\n\n if (value instanceof Map || value instanceof Set) {\n return value.size === 0;\n }\n\n if (typeof value === \"object\") {\n return Object.keys(value).length === 0;\n }\n\n return false;\n}\n"],"mappings":";AAAA,SAAgBA,QAAQC,OAAyB;
|
|
1
|
+
{"version":3,"file":"is-empty.js","names":["isEmpty","value","undefined","isNaN","RegExp","Date","Array","isArray","length","Map","Set","size","Object","keys"],"sources":["../../../src/ui/lib/is-empty.ts"],"sourcesContent":["export function isEmpty(value: unknown): boolean {\n if (\n value === null ||\n value === undefined ||\n (typeof value === \"number\" && isNaN(value))\n ) {\n return true;\n }\n\n if (typeof value === \"boolean\" || typeof value === \"number\") {\n return false;\n }\n\n if (value instanceof RegExp || value instanceof Date) {\n return false; // Regex and Date are not considered empty\n }\n\n if (typeof value === \"string\" || Array.isArray(value)) {\n return value.length === 0;\n }\n\n if (value instanceof Map || value instanceof Set) {\n return value.size === 0;\n }\n\n if (typeof value === \"object\") {\n return Object.keys(value).length === 0;\n }\n\n return false;\n}\n"],"mappings":";AAAA,SAAgBA,QAAQC,OAAyB;CAC/C,IACEA,UAAU,QACVA,UAAUC,KAAAA,KACT,OAAOD,UAAU,YAAYE,MAAMF,KAAK,GAEzC,OAAO;CAGT,IAAI,OAAOA,UAAU,aAAa,OAAOA,UAAU,UACjD,OAAO;CAGT,IAAIA,iBAAiBG,UAAUH,iBAAiBI,MAC9C,OAAO;CAGT,IAAI,OAAOJ,UAAU,YAAYK,MAAMC,QAAQN,KAAK,GAClD,OAAOA,MAAMO,WAAW;CAG1B,IAAIP,iBAAiBQ,OAAOR,iBAAiBS,KAC3C,OAAOT,MAAMU,SAAS;CAGxB,IAAI,OAAOV,UAAU,UACnB,OAAOW,OAAOC,KAAKZ,KAAK,CAAC,CAACO,WAAW;CAGvC,OAAO;AACT"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as TransformerObject } from "../../types-
|
|
2
|
-
|
|
1
|
+
import { r as TransformerObject } from "../../types-CpFPFB1a.js";
|
|
3
2
|
//#region src/ui/lib/shared-value-transformers.d.ts
|
|
4
|
-
declare const sharedValueTransformers: Record<string, (ifParam?: boolean) => TransformerObject>;
|
|
3
|
+
export declare const sharedValueTransformers: Record<string, (ifParam?: boolean) => TransformerObject>;
|
|
5
4
|
//#endregion
|
|
6
|
-
export {
|
|
5
|
+
export {};
|
|
7
6
|
//# sourceMappingURL=shared-value-transformers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-value-transformers.d.ts","names":[],"sources":["../../../src/ui/lib/shared-value-transformers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared-value-transformers.d.ts","names":[],"sources":["../../../src/ui/lib/shared-value-transformers.ts"],"mappings":";;qBAEa,yBAAyB,gBAEnC,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-value-transformers.js","names":["sharedValueTransformers","trimOnBlur","ifParam","transformer","value","trim","options","trigger","if","lowercaseOnChange","toLowerCase","uppercaseOnChange","toUpperCase","trimOnEnter"],"sources":["../../../src/ui/lib/shared-value-transformers.ts"],"sourcesContent":["import type { TransformerObject } from \"./types.js\";\n\nexport const sharedValueTransformers: Record<\n string,\n (ifParam?: boolean) => TransformerObject\n> = {\n trimOnBlur: (ifParam = true) => ({\n transformer: (value?: string) => value?.trim(),\n options: {\n trigger: \"blur\",\n if: ifParam,\n },\n }),\n lowercaseOnChange: (ifParam = true) => ({\n transformer: (value?: string) => value?.toLowerCase(),\n options: {\n trigger: \"change\",\n if: ifParam,\n },\n }),\n uppercaseOnChange: (ifParam = true) => ({\n transformer: (value?: string) => value?.toUpperCase(),\n options: {\n trigger: \"change\",\n if: ifParam,\n },\n }),\n trimOnEnter: (ifParam = true) => ({\n transformer: (value?: string) => value?.trim(),\n options: {\n trigger: \"keyDown\",\n if: ifParam,\n },\n }),\n};\n"],"mappings":";AAEA,MAAaA,0BAGT;CACFC,aAAaC,UAAU,UAAU;EAC/BC,cAAcC,UAAmBA,OAAOC,
|
|
1
|
+
{"version":3,"file":"shared-value-transformers.js","names":["sharedValueTransformers","trimOnBlur","ifParam","transformer","value","trim","options","trigger","if","lowercaseOnChange","toLowerCase","uppercaseOnChange","toUpperCase","trimOnEnter"],"sources":["../../../src/ui/lib/shared-value-transformers.ts"],"sourcesContent":["import type { TransformerObject } from \"./types.js\";\n\nexport const sharedValueTransformers: Record<\n string,\n (ifParam?: boolean) => TransformerObject\n> = {\n trimOnBlur: (ifParam = true) => ({\n transformer: (value?: string) => value?.trim(),\n options: {\n trigger: \"blur\",\n if: ifParam,\n },\n }),\n lowercaseOnChange: (ifParam = true) => ({\n transformer: (value?: string) => value?.toLowerCase(),\n options: {\n trigger: \"change\",\n if: ifParam,\n },\n }),\n uppercaseOnChange: (ifParam = true) => ({\n transformer: (value?: string) => value?.toUpperCase(),\n options: {\n trigger: \"change\",\n if: ifParam,\n },\n }),\n trimOnEnter: (ifParam = true) => ({\n transformer: (value?: string) => value?.trim(),\n options: {\n trigger: \"keyDown\",\n if: ifParam,\n },\n }),\n};\n"],"mappings":";AAEA,MAAaA,0BAGT;CACFC,aAAaC,UAAU,UAAU;EAC/BC,cAAcC,UAAmBA,OAAOC,KAAK;EAC7CC,SAAS;GACPC,SAAS;GACTC,IAAIN;EACN;CACF;CACAO,oBAAoBP,UAAU,UAAU;EACtCC,cAAcC,UAAmBA,OAAOM,YAAY;EACpDJ,SAAS;GACPC,SAAS;GACTC,IAAIN;EACN;CACF;CACAS,oBAAoBT,UAAU,UAAU;EACtCC,cAAcC,UAAmBA,OAAOQ,YAAY;EACpDN,SAAS;GACPC,SAAS;GACTC,IAAIN;EACN;CACF;CACAW,cAAcX,UAAU,UAAU;EAChCC,cAAcC,UAAmBA,OAAOC,KAAK;EAC7CC,SAAS;GACPC,SAAS;GACTC,IAAIN;EACN;CACF;AACF"}
|
package/dist/ui/lib/types.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { a as TransformerType, c as WeekStartDayNumber, i as TransformerTrigger, n as DatePickerView, o as ValueTransformerFn, r as TransformerObject, s as ValueTransformerProps, t as DateFieldValue } from "../../types-
|
|
2
|
-
export { DateFieldValue, DatePickerView, TransformerObject, TransformerTrigger, TransformerType, ValueTransformerFn, ValueTransformerProps, WeekStartDayNumber };
|
|
1
|
+
import { a as TransformerType, c as WeekStartDayNumber, i as TransformerTrigger, n as DatePickerView, o as ValueTransformerFn, r as TransformerObject, s as ValueTransformerProps, t as DateFieldValue } from "../../types-CpFPFB1a.js";
|
|
2
|
+
export { DateFieldValue, DatePickerView, TransformerObject, TransformerTrigger, TransformerType, ValueTransformerFn, ValueTransformerProps, WeekStartDayNumber };
|
|
3
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/ui/lib/value-cast.d.ts
|
|
2
|
-
type ValueCast = "BigInt" | "Number" | "URLTrim" | "AmountNumber" | "AmountBigInt" | "DateString" | "DateTimeString";
|
|
3
|
-
declare const castFunctions: Record<ValueCast, (value: any, castParams?: string) => any>;
|
|
4
|
-
declare function castValue(value: any, cast: string): any;
|
|
2
|
+
export type ValueCast = "BigInt" | "Number" | "URLTrim" | "AmountNumber" | "AmountBigInt" | "DateString" | "DateTimeString";
|
|
3
|
+
export declare const castFunctions: Record<ValueCast, (value: any, castParams?: string) => any>;
|
|
4
|
+
export declare function castValue(value: any, cast: string): any;
|
|
5
5
|
//#endregion
|
|
6
|
-
export {
|
|
6
|
+
export {};
|
|
7
7
|
//# sourceMappingURL=value-cast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-cast.d.ts","names":[],"sources":["../../../src/ui/lib/value-cast.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"value-cast.d.ts","names":[],"sources":["../../../src/ui/lib/value-cast.ts"],"mappings":";YASY;qBASC,eAAe,OAC1B,YACC,YAAY;wBAiEC,UAAU,YAAY"}
|
|
@@ -26,15 +26,21 @@ const castFunctions = {
|
|
|
26
26
|
};
|
|
27
27
|
},
|
|
28
28
|
DateString: (value, dateFormat = "yyyy-MM-dd") => {
|
|
29
|
-
const
|
|
29
|
+
const momentDate = getDateFromValue(value);
|
|
30
|
+
const date = normalizeMonthFormat(momentDate);
|
|
30
31
|
const correctFormat = getDateFormat(dateFormat);
|
|
31
|
-
|
|
32
|
+
const newValue = parseInputString(date, correctFormat);
|
|
33
|
+
const fechaUTC = parse(newValue, correctFormat ?? "yyyy-MM-dd", /* @__PURE__ */ new Date());
|
|
34
|
+
return format(fechaUTC, "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
|
|
32
35
|
},
|
|
33
36
|
DateTimeString: (value, dateFormat = "yyyy-MM-dd") => {
|
|
34
37
|
const [datePart, timePart] = value.split("T");
|
|
35
|
-
const
|
|
38
|
+
const unFormattedDate = getDateFromValue(datePart);
|
|
39
|
+
const date = normalizeMonthFormat(unFormattedDate);
|
|
36
40
|
const correctFormat = getDateFormat(dateFormat);
|
|
37
|
-
|
|
41
|
+
const normalizedDate = parseInputString(date, correctFormat);
|
|
42
|
+
const parsedDate = parse(normalizedDate, correctFormat ?? "yyyy-MM-dd", /* @__PURE__ */ new Date());
|
|
43
|
+
return `${format(parsedDate, "yyyy-MM-dd")}T${timePart}`;
|
|
38
44
|
}
|
|
39
45
|
};
|
|
40
46
|
function castValue(value, cast) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-cast.js","names":["format","parse","getDateFromValue","getDateFormat","normalizeMonthFormat","parseInputString","castFunctions","BigInt","value","Number","URLTrim","trim","AmountNumber","amount","undefined","unit","AmountBigInt","DateString","dateFormat","momentDate","date","correctFormat","newValue","fechaUTC","Date","isoDate","DateTimeString","datePart","timePart","split","unFormattedDate","normalizedDate","parsedDate","castValue","cast","castType","params"],"sources":["../../../src/ui/lib/value-cast.ts"],"sourcesContent":["import type { AmountValue } from \"#design-system\";\nimport { format, parse } from \"date-fns\";\nimport { getDateFromValue } from \"./date-picker.js\";\nimport {\n getDateFormat,\n normalizeMonthFormat,\n parseInputString,\n} from \"./date-time-picker.js\";\n\nexport type ValueCast =\n | \"BigInt\"\n | \"Number\"\n | \"URLTrim\"\n | \"AmountNumber\"\n | \"AmountBigInt\"\n | \"DateString\"\n | \"DateTimeString\";\n\nexport const castFunctions: Record<\n ValueCast,\n (value: any, castParams?: string) => any\n> = {\n BigInt: (value: string) => BigInt(value),\n Number: (value: string) => Number(value),\n URLTrim: (value?: string) => value?.trim(),\n AmountNumber: (value: AmountValue) => {\n if (typeof value === \"object\" && \"unit\" in value) {\n return {\n ...value,\n\n amount: value.amount !== undefined ? Number(value.amount) : null,\n unit: value.unit !== \"\" ? value.unit : null,\n };\n }\n if (typeof value === \"object\") {\n return {\n ...value,\n\n amount: Number(value.amount),\n };\n }\n return Number(value);\n },\n\n AmountBigInt: (value: AmountValue) => {\n if (typeof value === \"object\" && \"unit\" in value) {\n return {\n ...value,\n\n amount: value.amount !== undefined ? BigInt(value.amount) : null,\n unit: value.unit !== \"\" ? value.unit : null,\n };\n }\n },\n DateString: (value: string, dateFormat = \"yyyy-MM-dd\") => {\n const momentDate = getDateFromValue(value);\n const date = normalizeMonthFormat(momentDate);\n const correctFormat = getDateFormat(dateFormat);\n const newValue = parseInputString(date, correctFormat);\n\n const fechaUTC = parse(newValue, correctFormat ?? \"yyyy-MM-dd\", new Date());\n\n const isoDate = format(fechaUTC, \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n return isoDate;\n },\n DateTimeString: (value: string, dateFormat = \"yyyy-MM-dd\") => {\n const [datePart, timePart] = value.split(\"T\");\n\n const unFormattedDate = getDateFromValue(datePart);\n const date = normalizeMonthFormat(unFormattedDate);\n const correctFormat = getDateFormat(dateFormat);\n\n const normalizedDate = parseInputString(date, correctFormat);\n const parsedDate = parse(\n normalizedDate,\n correctFormat ?? \"yyyy-MM-dd\",\n new Date(),\n );\n\n const isoDate = format(parsedDate, \"yyyy-MM-dd\");\n\n return `${isoDate}T${timePart}`;\n },\n};\n\nexport function castValue(value: any, cast: string): any {\n const [castType, ...params] = cast.split(\":\");\n return castFunctions[castType as ValueCast](value, ...params);\n}\n"],"mappings":";;;;AAkBA,MAAaM,gBAGT;CACFC,SAASC,UAAkBD,OAAOC,
|
|
1
|
+
{"version":3,"file":"value-cast.js","names":["format","parse","getDateFromValue","getDateFormat","normalizeMonthFormat","parseInputString","castFunctions","BigInt","value","Number","URLTrim","trim","AmountNumber","amount","undefined","unit","AmountBigInt","DateString","dateFormat","momentDate","date","correctFormat","newValue","fechaUTC","Date","isoDate","DateTimeString","datePart","timePart","split","unFormattedDate","normalizedDate","parsedDate","castValue","cast","castType","params"],"sources":["../../../src/ui/lib/value-cast.ts"],"sourcesContent":["import type { AmountValue } from \"#design-system\";\nimport { format, parse } from \"date-fns\";\nimport { getDateFromValue } from \"./date-picker.js\";\nimport {\n getDateFormat,\n normalizeMonthFormat,\n parseInputString,\n} from \"./date-time-picker.js\";\n\nexport type ValueCast =\n | \"BigInt\"\n | \"Number\"\n | \"URLTrim\"\n | \"AmountNumber\"\n | \"AmountBigInt\"\n | \"DateString\"\n | \"DateTimeString\";\n\nexport const castFunctions: Record<\n ValueCast,\n (value: any, castParams?: string) => any\n> = {\n BigInt: (value: string) => BigInt(value),\n Number: (value: string) => Number(value),\n URLTrim: (value?: string) => value?.trim(),\n AmountNumber: (value: AmountValue) => {\n if (typeof value === \"object\" && \"unit\" in value) {\n return {\n ...value,\n\n amount: value.amount !== undefined ? Number(value.amount) : null,\n unit: value.unit !== \"\" ? value.unit : null,\n };\n }\n if (typeof value === \"object\") {\n return {\n ...value,\n\n amount: Number(value.amount),\n };\n }\n return Number(value);\n },\n\n AmountBigInt: (value: AmountValue) => {\n if (typeof value === \"object\" && \"unit\" in value) {\n return {\n ...value,\n\n amount: value.amount !== undefined ? BigInt(value.amount) : null,\n unit: value.unit !== \"\" ? value.unit : null,\n };\n }\n },\n DateString: (value: string, dateFormat = \"yyyy-MM-dd\") => {\n const momentDate = getDateFromValue(value);\n const date = normalizeMonthFormat(momentDate);\n const correctFormat = getDateFormat(dateFormat);\n const newValue = parseInputString(date, correctFormat);\n\n const fechaUTC = parse(newValue, correctFormat ?? \"yyyy-MM-dd\", new Date());\n\n const isoDate = format(fechaUTC, \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n return isoDate;\n },\n DateTimeString: (value: string, dateFormat = \"yyyy-MM-dd\") => {\n const [datePart, timePart] = value.split(\"T\");\n\n const unFormattedDate = getDateFromValue(datePart);\n const date = normalizeMonthFormat(unFormattedDate);\n const correctFormat = getDateFormat(dateFormat);\n\n const normalizedDate = parseInputString(date, correctFormat);\n const parsedDate = parse(\n normalizedDate,\n correctFormat ?? \"yyyy-MM-dd\",\n new Date(),\n );\n\n const isoDate = format(parsedDate, \"yyyy-MM-dd\");\n\n return `${isoDate}T${timePart}`;\n },\n};\n\nexport function castValue(value: any, cast: string): any {\n const [castType, ...params] = cast.split(\":\");\n return castFunctions[castType as ValueCast](value, ...params);\n}\n"],"mappings":";;;;AAkBA,MAAaM,gBAGT;CACFC,SAASC,UAAkBD,OAAOC,KAAK;CACvCC,SAASD,UAAkBC,OAAOD,KAAK;CACvCE,UAAUF,UAAmBA,OAAOG,KAAK;CACzCC,eAAeJ,UAAuB;EACpC,IAAI,OAAOA,UAAU,YAAY,UAAUA,OACzC,OAAO;GACL,GAAGA;GAEHK,QAAQL,MAAMK,WAAWC,KAAAA,IAAYL,OAAOD,MAAMK,MAAM,IAAI;GAC5DE,MAAMP,MAAMO,SAAS,KAAKP,MAAMO,OAAO;EACzC;EAEF,IAAI,OAAOP,UAAU,UACnB,OAAO;GACL,GAAGA;GAEHK,QAAQJ,OAAOD,MAAMK,MAAM;EAC7B;EAEF,OAAOJ,OAAOD,KAAK;CACrB;CAEAQ,eAAeR,UAAuB;EACpC,IAAI,OAAOA,UAAU,YAAY,UAAUA,OACzC,OAAO;GACL,GAAGA;GAEHK,QAAQL,MAAMK,WAAWC,KAAAA,IAAYP,OAAOC,MAAMK,MAAM,IAAI;GAC5DE,MAAMP,MAAMO,SAAS,KAAKP,MAAMO,OAAO;EACzC;CAEJ;CACAE,aAAaT,OAAeU,aAAa,iBAAiB;EACxD,MAAMC,aAAajB,iBAAiBM,KAAK;EACzC,MAAMY,OAAOhB,qBAAqBe,UAAU;EAC5C,MAAME,gBAAgBlB,cAAce,UAAU;EAC9C,MAAMI,WAAWjB,iBAAiBe,MAAMC,aAAa;EAErD,MAAME,WAAWtB,MAAMqB,UAAUD,iBAAiB,8BAAc,IAAIG,KAAK,CAAC;EAG1E,OADgBxB,OAAOuB,UAAU,8BAC1BE;CACT;CACAC,iBAAiBlB,OAAeU,aAAa,iBAAiB;EAC5D,MAAM,CAACS,UAAUC,YAAYpB,MAAMqB,MAAM,GAAG;EAE5C,MAAMC,kBAAkB5B,iBAAiByB,QAAQ;EACjD,MAAMP,OAAOhB,qBAAqB0B,eAAe;EACjD,MAAMT,gBAAgBlB,cAAce,UAAU;EAE9C,MAAMa,iBAAiB1B,iBAAiBe,MAAMC,aAAa;EAC3D,MAAMW,aAAa/B,MACjB8B,gBACAV,iBAAiB,8BACjB,IAAIG,KAAK,CACX;EAIA,OAAO,GAFSxB,OAAOgC,YAAY,YAEzBP,EAAO,GAAIG;CACvB;AACF;AAEA,SAAgBK,UAAUzB,OAAY0B,MAAmB;CACvD,MAAM,CAACC,UAAU,GAAGC,UAAUF,KAAKL,MAAM,GAAG;CAC5C,OAAOvB,cAAc6B,SAAsB,CAAC3B,OAAO,GAAG4B,MAAM;AAC9D"}
|
package/dist/ui/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { C as SelectProps, S as SelectOption, _ as WithDifference, a as AmountInputPropsGeneric, b as RadioGroupProps, c as Currency, d as ErrorMessage, f as FieldErrorHandling, g as ViewMode, h as ValidatorResult, i as AmountFiat, l as CurrencyTicker, m as ValidatorHandler, n as AmountCrypto, o as AmountPercentage, p as InputBaseProps, r as AmountCurrency, s as AmountValue, t as Amount, u as DiffMode, v as IdAutocompleteOption, x as SelectBaseProps, y as IdAutocompleteProps } from "../index
|
|
2
|
-
import { a as TransformerType, c as WeekStartDayNumber, i as TransformerTrigger, n as DatePickerView, o as ValueTransformerFn, r as TransformerObject, s as ValueTransformerProps, t as DateFieldValue } from "../types-
|
|
3
|
-
export { Amount, AmountCrypto, AmountCurrency, AmountFiat, AmountInputPropsGeneric, AmountPercentage, AmountValue, Currency, CurrencyTicker, DateFieldValue, DatePickerView, DiffMode, ErrorMessage, FieldErrorHandling, IdAutocompleteOption, IdAutocompleteProps, InputBaseProps, RadioGroupProps, SelectBaseProps, SelectOption, SelectProps, TransformerObject, TransformerTrigger, TransformerType, ValidatorHandler, ValidatorResult, ValueTransformerFn, ValueTransformerProps, ViewMode, WeekStartDayNumber, WithDifference };
|
|
1
|
+
import { C as SelectProps, S as SelectOption, _ as WithDifference, a as AmountInputPropsGeneric, b as RadioGroupProps, c as Currency, d as ErrorMessage, f as FieldErrorHandling, g as ViewMode, h as ValidatorResult, i as AmountFiat, l as CurrencyTicker, m as ValidatorHandler, n as AmountCrypto, o as AmountPercentage, p as InputBaseProps, r as AmountCurrency, s as AmountValue, t as Amount, u as DiffMode, v as IdAutocompleteOption, x as SelectBaseProps, y as IdAutocompleteProps } from "../index-C05uhexJ.js";
|
|
2
|
+
import { a as TransformerType, c as WeekStartDayNumber, i as TransformerTrigger, n as DatePickerView, o as ValueTransformerFn, r as TransformerObject, s as ValueTransformerProps, t as DateFieldValue } from "../types-CpFPFB1a.js";
|
|
3
|
+
export { Amount, AmountCrypto, AmountCurrency, AmountFiat, AmountInputPropsGeneric, AmountPercentage, AmountValue, Currency, CurrencyTicker, type DateFieldValue, type DatePickerView, DiffMode, ErrorMessage, FieldErrorHandling, type IdAutocompleteOption, type IdAutocompleteProps, InputBaseProps, type RadioGroupProps, type SelectBaseProps, type SelectOption, type SelectProps, type TransformerObject, type TransformerTrigger, type TransformerType, ValidatorHandler, ValidatorResult, type ValueTransformerFn, type ValueTransformerProps, ViewMode, type WeekStartDayNumber, WithDifference };
|
|
4
|
+
export {};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { v as IdAutocompleteOption, y as IdAutocompleteProps } from "./index
|
|
2
|
-
import * as react from "react";
|
|
3
|
-
|
|
1
|
+
import { v as IdAutocompleteOption, y as IdAutocompleteProps } from "./index-C05uhexJ.js";
|
|
4
2
|
//#region src/ui/components/id-autocomplete/use-id-autocomplete.d.ts
|
|
5
3
|
interface UseIdAutocompleteParams {
|
|
6
4
|
autoComplete: IdAutocompleteProps["autoComplete"];
|
|
@@ -13,21 +11,11 @@ interface UseIdAutocompleteParams {
|
|
|
13
11
|
fetchOptions: IdAutocompleteProps["fetchOptionsCallback"];
|
|
14
12
|
fetchSelectedOption: IdAutocompleteProps["fetchSelectedOptionCallback"];
|
|
15
13
|
}
|
|
16
|
-
declare function useIdAutocomplete({
|
|
17
|
-
autoComplete,
|
|
18
|
-
defaultValue,
|
|
19
|
-
value,
|
|
20
|
-
isOpenByDefault,
|
|
21
|
-
initialOptions,
|
|
22
|
-
onChange,
|
|
23
|
-
onBlur,
|
|
24
|
-
fetchOptions,
|
|
25
|
-
fetchSelectedOption
|
|
26
|
-
}: UseIdAutocompleteParams): {
|
|
14
|
+
declare function useIdAutocomplete({ autoComplete, defaultValue, value, isOpenByDefault, initialOptions, onChange, onBlur, fetchOptions, fetchSelectedOption }: UseIdAutocompleteParams): {
|
|
27
15
|
selectedValue: string;
|
|
28
16
|
selectedOption: IdAutocompleteOption | undefined;
|
|
29
17
|
isPopoverOpen: boolean;
|
|
30
|
-
commandListRef: react.RefObject<HTMLDivElement | null>;
|
|
18
|
+
commandListRef: import("react").RefObject<HTMLDivElement | null>;
|
|
31
19
|
options: IdAutocompleteOption[];
|
|
32
20
|
isLoading: boolean;
|
|
33
21
|
isLoadingSelectedOption: boolean;
|
|
@@ -44,4 +32,5 @@ declare function useIdAutocomplete({
|
|
|
44
32
|
};
|
|
45
33
|
//#endregion
|
|
46
34
|
export { useIdAutocomplete as t };
|
|
47
|
-
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=use-id-autocomplete-wdw3CfYc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-id-autocomplete-wdw3CfYc.d.ts","names":[],"sources":["../src/ui/components/id-autocomplete/use-id-autocomplete.ts"],"mappings":";;UAKU;EACR,cAAc;EACd;EACA;EACA,iBAAiB;EACjB,gBAAgB;EAChB,WAAW;EACX,SAAS,MAAM,kBAAkB;EACjC,cAAc;EACd,qBAAqB;;iBAGP,oBACd,cACA,cACA,OACA,iBACA,gBACA,UACA,QACA,cACA,uBACC;;;;;;;;;;;EAuIe,eAAA;EAVP,mBAAA;EAqCH,gBAAA,GAAA,MAAM,WAAW;EAfjB,eAAA,GAAA,MAAM,YAAY;EAUuB,qBAAA;EAjFrC,4BAAA;EA+FJ,cAAA,GAAA,MAAM,eAAe"}
|
package/dist/{use-search-autocomplete-IfcQ_gKh.d.ts → use-search-autocomplete-vSvcsvcB.d.ts}
RENAMED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { t as SearchAutocompleteOption } from "./types-
|
|
2
|
-
import * as react from "react";
|
|
3
|
-
|
|
1
|
+
import { t as SearchAutocompleteOption } from "./types-D4CirgNk.js";
|
|
4
2
|
//#region src/ui/components/search-autocomplete/use-search-autocomplete.d.ts
|
|
5
3
|
interface UseSearchAutocompleteOptions {
|
|
6
4
|
fetchOptions?: (query: string) => Promise<SearchAutocompleteOption[]>;
|
|
@@ -8,14 +6,15 @@ interface UseSearchAutocompleteOptions {
|
|
|
8
6
|
}
|
|
9
7
|
declare function useSearchAutocomplete(options: UseSearchAutocompleteOptions): {
|
|
10
8
|
query: string;
|
|
11
|
-
setQuery: react.Dispatch<react.SetStateAction<string>>;
|
|
9
|
+
setQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
12
10
|
results: SearchAutocompleteOption[];
|
|
13
11
|
isLoading: boolean;
|
|
14
12
|
error: string | undefined;
|
|
15
13
|
isOpen: boolean;
|
|
16
|
-
setIsOpen: react.Dispatch<react.SetStateAction<boolean>>;
|
|
14
|
+
setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
15
|
handleQueryChange: (value: string) => void;
|
|
18
16
|
};
|
|
19
17
|
//#endregion
|
|
20
18
|
export { useSearchAutocomplete as t };
|
|
21
|
-
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=use-search-autocomplete-vSvcsvcB.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-search-autocomplete-vSvcsvcB.d.ts","names":[],"sources":["../src/ui/components/search-autocomplete/use-search-autocomplete.ts"],"mappings":";;UAGU;EACR,gBAAgB,kBAAkB,QAAQ;EAC1C;;iBAGc,sBAAsB,SAAS;;;WAAA;;;;;EAoDnC,oBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index-C05uhexJ.js";
|
|
2
|
+
import { s as ValueTransformerProps } from "./types-CpFPFB1a.js";
|
|
2
3
|
import React from "react";
|
|
3
|
-
|
|
4
4
|
//#region src/ui/components/value-transformer/value-transformer.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Apply transformers to the value of the input element. A transformer is a function that
|
|
@@ -36,10 +36,8 @@ import React from "react";
|
|
|
36
36
|
* <Input />
|
|
37
37
|
* </ValueTransformer>
|
|
38
38
|
*/
|
|
39
|
-
declare function ValueTransformer({
|
|
40
|
-
transformers,
|
|
41
|
-
children
|
|
42
|
-
}: ValueTransformerProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
39
|
+
declare function ValueTransformer({ transformers, children }: ValueTransformerProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
43
40
|
//#endregion
|
|
44
41
|
export { ValueTransformer as t };
|
|
45
|
-
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=value-transformer-BAD6r8Ol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-transformer-BAD6r8Ol.d.ts","names":[],"sources":["../src/ui/components/value-transformer/value-transformer.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2FgB,mBACd,cACA,YACC,wBAAqB,MAAA,+BAAA,MAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { f as FieldErrorHandling, m as ValidatorHandler, p as InputBaseProps } from "./index
|
|
1
|
+
import { f as FieldErrorHandling, m as ValidatorHandler, p as InputBaseProps } from "./index-C05uhexJ.js";
|
|
2
2
|
import { ComponentType, ElementRef, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/ui/components/with-field-validation/with-field-validation.d.ts
|
|
5
4
|
interface PossibleProps extends InputBaseProps<unknown>, FieldErrorHandling {
|
|
6
5
|
pattern?: RegExp;
|
|
@@ -16,4 +15,5 @@ interface ValidationOptions<T> {
|
|
|
16
15
|
declare const withFieldValidation: <T extends PossibleProps, R extends ElementRef<any> = ElementRef<any>>(Component: ComponentType<T>, options?: ValidationOptions<T>) => ForwardRefExoticComponent<PropsWithoutRef<T> & RefAttributes<R>>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { withFieldValidation as n, ValidationOptions as t };
|
|
19
|
-
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=with-field-validation-Bt02MQn2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-field-validation-Bt02MQn2.d.ts","names":[],"sources":["../src/ui/components/with-field-validation/with-field-validation.tsx"],"mappings":";;;UAiBU,sBAAsB,yBAAyB;EACvD,UAAU;EACV;EACA;EACA;EACA;;UAQe,kBAAkB;EACjC,cAAc,gBAAgB,aAAa,MAAM;EACjD,kBAAkB;;cAGP,sBACX,UAAU,eACV,UAAU,kBAAkB,iBAAe,WAEhC,cAAc,IAAE,UACjB,kBAAkB,OAC3B,0BAA0B,gBAAgB,KAAK,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/design-system",
|
|
3
|
-
"version": "6.2.3-dev.
|
|
3
|
+
"version": "6.2.3-dev.41",
|
|
4
4
|
"description": "Powerhouse document-engineering design system — GraphQL scalar UI components for building consistent Powerhouse editors.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@babel/core": "^7.29.0",
|
|
71
71
|
"@babel/plugin-transform-react-pure-annotations": "^7.27.1",
|
|
72
72
|
"@babel/preset-typescript": "^7.28.5",
|
|
73
|
-
"@powerhousedao/config": "6.2.3-dev.
|
|
73
|
+
"@powerhousedao/config": "6.2.3-dev.41",
|
|
74
74
|
"@prettier/sync": "^0.5.2",
|
|
75
75
|
"@rollup/plugin-babel": "^7.0.0",
|
|
76
76
|
"@storybook/addon-actions": "^8.6.18",
|
|
@@ -100,16 +100,15 @@
|
|
|
100
100
|
"@types/react-virtualized": "^9.22.3",
|
|
101
101
|
"camelcase": "^8.0.0",
|
|
102
102
|
"happy-dom": "^20.8.9",
|
|
103
|
-
"jsdom": "^24.0.0",
|
|
104
103
|
"react": "19.2.6",
|
|
105
104
|
"react-dom": "19.2.6",
|
|
106
105
|
"storybook": "^8.6.18",
|
|
107
106
|
"storybook-addon-pseudo-states": "^4.0.4",
|
|
108
107
|
"tailwind-scrollbar": "^4.0.1",
|
|
109
108
|
"tailwindcss": "4.2.2",
|
|
110
|
-
"tsdown": "0.
|
|
111
|
-
"tsx": "4.
|
|
112
|
-
"vite": "8.0
|
|
109
|
+
"tsdown": "0.23.0",
|
|
110
|
+
"tsx": "4.23.13",
|
|
111
|
+
"vite": "8.3.0",
|
|
113
112
|
"vitest": "4.1.1"
|
|
114
113
|
},
|
|
115
114
|
"peerDependencies": {
|
|
@@ -117,8 +116,8 @@
|
|
|
117
116
|
"react-dom": ">=19.0.0"
|
|
118
117
|
},
|
|
119
118
|
"dependencies": {
|
|
120
|
-
"@powerhousedao/reactor-browser": "6.2.3-dev.
|
|
121
|
-
"@powerhousedao/shared": "6.2.3-dev.
|
|
119
|
+
"@powerhousedao/reactor-browser": "6.2.3-dev.41",
|
|
120
|
+
"@powerhousedao/shared": "6.2.3-dev.41",
|
|
122
121
|
"@radix-ui/react-checkbox": "^1.1.2",
|
|
123
122
|
"@radix-ui/react-dialog": "^1.1.2",
|
|
124
123
|
"@radix-ui/react-dropdown-menu": "^2.1.5",
|
|
@@ -163,7 +162,7 @@
|
|
|
163
162
|
],
|
|
164
163
|
"scripts": {
|
|
165
164
|
"tsc": "tsc",
|
|
166
|
-
"lint": "
|
|
165
|
+
"lint": "cd ../.. && oxlint packages/design-system",
|
|
167
166
|
"create-icon-components": "tsx scripts/create-icon-components.ts",
|
|
168
167
|
"build": "tsdown && pnpm run build:css",
|
|
169
168
|
"build:css": "pnpm exec tailwindcss -i style.css -o dist/style.css",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as react from "react";
|
|
2
|
-
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
|
-
|
|
5
|
-
//#region src/ui/components/button/button.d.ts
|
|
6
|
-
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "outline" | "ghost" | null | undefined;
|
|
8
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
9
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
|
-
asChild?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { ButtonProps as n, buttonVariants as r, Button as t };
|
|
15
|
-
//# sourceMappingURL=button-C8doazjv.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button-C8doazjv.d.ts","names":[],"sources":["../src/ui/components/button/button.tsx"],"mappings":";;;;;cAMM,cAAA,GAAc,KAAA;;IAqBnB,+BAAA,CAAA,SAAA;AAAA,UAEgB,WAAA,SAEb,KAAA,CAAM,oBAAA,CAAqB,iBAAA,GAC3B,YAAA,QAAoB,cAAA;EACtB,OAAA;AAAA;AAAA,cAGI,MAAA,EAAM,KAAA,CAAA,yBAAA,CAAA,WAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"character-counter-BWoglM2P.d.ts","names":[],"sources":["../src/ui/components/character-counter/character-counter.tsx"],"mappings":";UAAiB,qBAAA;EACf,SAAA;EACA,KAAA;AAAA;AAAA,cAeW,gBAAA,EAAkB,KAAA,CAAM,EAAA,CAAG,qBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-CGBtXQnI.d.ts","names":[],"sources":["../src/ui/components/checkbox/checkbox.tsx"],"mappings":";;;;;KAQK,iBAAA,GAAoB,IAAA,CACvB,KAAA,CAAM,oBAAA,CAAqB,iBAAA,SACrB,cAAA,CAAe,aAAA;AAAA,UAGN,aAAA,SACP,iBAAA,EAAmB,cAAA,CAAe,aAAA;EAC1C,QAAA,KAAa,OAAA,EAAS,aAAA,eAA4B,OAAA;AAAA;AAAA,cAG9C,QAAA,EAAQ,KAAA,CAAA,yBAAA,CAAA,aAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-base-CZo-4eL0.d.ts","names":[],"sources":["../src/ui/components/checkbox/checkbox-base.tsx"],"mappings":";;;;KAIK,aAAA;AAAA,cAQC,YAAA,EAAY,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,aAAA,GAAA,OAAA,CAAA,aAAA,CAAA,iBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-tFzjgzge.d.ts","names":[],"sources":["../src/ui/components/command/command.tsx"],"mappings":";;;cAKM,OAAA,EAAO,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;;;;;;;;cAeP,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,IAAA,CAAA,KAAA,CAAA,iBAAA,CAAA,KAAA,CAAA,mBAAA,CAAA,gBAAA,GAAA,gBAAA,iBAAA,KAAA,CAAA,mBAAA,CAAA,gBAAA;;;;;;;;;;cAyCZ,WAAA,EAAW,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;cAoBX,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;cAMd,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;cAMZ,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA;;;;;;;;;;;cAgBZ,WAAA,EAAW,KAAA,CAAA,yBAAA,CAAA,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content-BHWIqmio.d.ts","names":[],"sources":["../src/ui/components/select-field/content.tsx"],"mappings":";;;;UAaU,YAAA;EACR,UAAA;EACA,cAAA,EAAgB,KAAA,CAAM,SAAA,CAAU,cAAA;EAChC,QAAA;EACA,cAAA;EACA,aAAA;EACA,qBAAA;EACA,OAAA,EAAS,WAAA;EACT,eAAA,GAAkB,WAAA;EAClB,SAAA;EACA,YAAA,GAAe,KAAA;AAAA;AAAA,cAGJ,OAAA,EAAS,KAAA,CAAM,EAAA,CAAG,YAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enum-field-CwZVs3Ux.d.ts","names":[],"sources":["../src/ui/components/enum-field/enum-field.tsx"],"mappings":";;;;;KAUY,cAAA;EAEN,OAAA;AAAA,KACG,oBAAA,GAAuB,gBAAA;EAE1B,OAAA;AAAA,IACE,oBAAA;EAEF,OAAA;AAAA,IACE,gBAAA;AAAA,cAEK,SAAA,EAAS,KAAA,CAAA,yBAAA,CAAA,cAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA,GAAA,cAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-CKRKn0TQ.d.ts","names":[],"sources":["../src/ui/components/form/form.tsx"],"mappings":";;;;KAcK,WAAA,GAAc,aAAA;;;AALgD;EASjE,aAAA;;;;EAKA,MAAA;AAAA;AAAA,UAEQ,SAAA;EAFF;AAAA;;;;EAQN,QAAA,EAAU,KAAA,CAAM,SAAA,KAAc,OAAA,EAAS,WAAA,KAAgB,KAAA,CAAM,SAAA;EAAN;;;;;;EAQvD,QAAA,GAAW,IAAA,iBAAqB,OAAA;EAsDrB;;;;;EA/CX,uBAAA;EAfuD;;;;;;;;EAyBvD,iBAAA;EAcA;;;;EARA,aAAA,GAAgB,MAAA;EA6Bd;;;;;;EArBF,0BAAA;EAyND;;;;;EAlNC,cAAA,GAAiB,YAAA;EA2DF;;;;;;;;;;;EA9Cf,sBAAA,IACE,KAAA,EAAO,KAAA,EACP,UAAA,eACG,MAAA;;;;;EAML,SAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCW,IAAA,EAAI,KAAA,CAAA,yBAAA,CAAA,SAAA,GAAA,KAAA,CAAA,aAAA,CAAA,aAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-description-CYkcMEzm.d.ts","names":[],"sources":["../src/ui/components/form-description/form-description.tsx"],"mappings":";UAEiB,oBAAA,SAA6B,KAAA,CAAM,iBAAA;EAClD,EAAA,GAAK,KAAA,CAAM,WAAA;EACX,SAAA;AAAA;AAAA,cAGI,eAAA,EAAiB,KAAA,CAAM,EAAA,CAAG,oBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-group-C8kL6pdZ.d.ts","names":[],"sources":["../src/ui/components/form-group/form-group.tsx"],"mappings":";cAAa,SAAA,EAAW,KAAA,CAAM,EAAA,CAAG,KAAA,CAAM,iBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-label-b6nQi0XO.d.ts","names":[],"sources":["../src/ui/components/form-label/form-label.tsx"],"mappings":";UAIiB,cAAA,SACP,KAAA,CAAM,iBAAA,EAAmB,KAAA,CAAM,mBAAA,CAAoB,gBAAA;EAC3D,QAAA;EACA,QAAA;EACA,WAAA;EACA,QAAA;EACA,MAAA;EACA,SAAA;AAAA;AAAA,cAGW,SAAA,EAAW,KAAA,CAAM,EAAA,CAAG,cAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-message-Dq72nBXz.d.ts","names":[],"sources":["../src/ui/components/form-message/form-message.tsx"],"mappings":";KAEY,eAAA;AAAA,KAEP,mBAAA,WAA8B,KAAA,CAAM,WAAA,GAAc,KAAA,CAAM,WAAA;EAC3D,IAAA,GAAO,eAAA;EACP,EAAA,GAAK,CAAA;EACL,SAAA;AAAA;AAAA,KAGU,gBAAA,WAA2B,KAAA,CAAM,WAAA,IAC3C,mBAAA,CAAoB,CAAA,IAClB,IAAA,CAAK,KAAA,CAAM,wBAAA,CAAyB,CAAA,SAAU,mBAAA;AAAA,cAE5C,cAAA;AAAA,cAEO,WAAA,aAAwB,KAAA,CAAM,WAAA,UAAqB,cAAA,EAC9D,KAAA,EAAO,gBAAA,CAAiB,CAAA,MACrB,KAAA,CAAM,YAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
//#region src/ui/components/form-message/form-server-error-message.d.ts
|
|
4
|
-
declare const FormServerErrorMessage: () => react_jsx_runtime0.JSX.Element | null;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { FormServerErrorMessage as t };
|
|
7
|
-
//# sourceMappingURL=form-server-error-message-DXbaiTfF.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-server-error-message-DXbaiTfF.d.ts","names":[],"sources":["../src/ui/components/form-message/form-server-error-message.tsx"],"mappings":";;;cAGa,sBAAA,QAAsB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"id-autocomplete-C-hwriS5.d.ts","names":[],"sources":["../src/ui/components/id-autocomplete/id-autocomplete.tsx"],"mappings":";;;;cAkBM,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,mBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"id-autocomplete-input-container-DFEyPh5p.d.ts","names":[],"sources":["../src/ui/components/id-autocomplete/id-autocomplete-input-container.tsx"],"mappings":";;;;UAaU,iCAAA,SAA0C,IAAA,CAClD,cAAA;EAGA,SAAA;EACA,cAAA;EACA,QAAA,IAAY,CAAA,EAAG,KAAA,CAAM,WAAA,CAAY,gBAAA;EACjC,MAAA,IAAU,CAAA,EAAG,KAAA,CAAM,UAAA,CAAW,gBAAA;EAC9B,OAAA,IAAW,CAAA,EAAG,KAAA,CAAM,UAAA,CAAW,gBAAA;EAC/B,cAAA,GAAiB,oBAAA;EACjB,aAAA;EACA,gBAAA,IAAoB,IAAA;EACpB,SAAA,IAAa,CAAA,EAAG,KAAA,CAAM,aAAA,CAAc,gBAAA;EACpC,WAAA,IAAe,CAAA,EAAG,KAAA,CAAM,UAAA,CAAW,gBAAA;EACnC,WAAA;EACA,QAAA;EACA,aAAA;EACA,SAAA;EACA,WAAA,IAAe,CAAA,EAAG,KAAA,CAAM,cAAA,CAAe,gBAAA;EACvC,OAAA,IAAW,CAAA,EAAG,KAAA,CAAM,cAAA,CAAe,gBAAA;AAAA;AAAA,cAG/B,4BAAA,EAA4B,KAAA,CAAA,yBAAA,CAAA,iCAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"id-autocomplete-list-EzLpF23C.d.ts","names":[],"sources":["../src/ui/components/id-autocomplete/id-autocomplete-list.tsx"],"mappings":";;;;UAYU,uBAAA;EACR,OAAA,EAAS,mBAAA;EACT,cAAA,GAAiB,KAAA,CAAM,SAAA,CAAU,cAAA;EACjC,aAAA;EACA,OAAA,GAAU,oBAAA;EACV,YAAA,IAAgB,KAAA;EAChB,YAAA,IACE,MAAA,EAAQ,oBAAA,EACR,YAAA;IACE,aAAA;IACA,SAAA;IACA,uBAAA;IACA,yBAAA,IAA6B,KAAA;IAC7B,SAAA;EAAA,MAEC,KAAA,CAAM,SAAA;EACX,kBAAA,GAAqB,oBAAA;AAAA;AAAA,cAGjB,kBAAA,EAAoB,KAAA,CAAM,EAAA,CAAG,uBAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"id-autocomplete-list-option-CB5B07Hi.d.ts","names":[],"sources":["../src/ui/components/id-autocomplete/id-autocomplete-list-option.tsx"],"mappings":";;;;KAyEK,6BAAA;EACH,OAAA,EAAS,mBAAA;EACT,aAAA;EACA,SAAA;EACA,uBAAA;EACA,yBAAA,IAA6B,KAAA;EAC7B,yBAAA;EACA,SAAA;EACA,eAAA,GAAkB,QAAA,GAAW,KAAA,CAAM,YAAA;AAAA,IACjC,oBAAA,CAAqB,MAAA;AAAA,cAEnB,wBAAA,EAA0B,KAAA,CAAM,EAAA,CAAG,6BAAA"}
|