@powerhousedao/design-system 6.2.3-dev.7 → 6.2.3-dev.71
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/PinFilled-cSbUqZCA.js +41 -0
- package/dist/PinFilled-cSbUqZCA.js.map +1 -0
- 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/add-local-drive-form.impl-xsC6R634.js +75 -0
- package/dist/add-local-drive-form.impl-xsC6R634.js.map +1 -0
- package/dist/add-remote-drive-form.impl-B2DxdWGF.js +114 -0
- package/dist/add-remote-drive-form.impl-B2DxdWGF.js.map +1 -0
- package/dist/address-DfZqD6IM.js +92 -0
- package/dist/address-DfZqD6IM.js.map +1 -0
- 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-BIhO-KB2.d.ts} +4 -4
- package/dist/checkbox-BIhO-KB2.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/combobox.impl-EqgAawKJ.js +144 -0
- package/dist/combobox.impl-EqgAawKJ.js.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 +514 -364
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +963 -1605
- package/dist/connect/index.js.map +1 -1
- package/dist/{content-BHWIqmio.d.ts → content-Ch3oDYCL.d.ts} +3 -3
- package/dist/content-Ch3oDYCL.d.ts.map +1 -0
- package/dist/default-editor.impl-a6EOuEme.js +30 -0
- package/dist/default-editor.impl-a6EOuEme.js.map +1 -0
- package/dist/document-timeline.impl-CCkyXpt5.js +254 -0
- package/dist/document-timeline.impl-CCkyXpt5.js.map +1 -0
- package/dist/drive-settings-form.impl-Bwam9-CG.js +171 -0
- package/dist/drive-settings-form.impl-Bwam9-CG.js.map +1 -0
- package/dist/{enum-field-CwZVs3Ux.d.ts → enum-field-DsyC0ml7.d.ts} +4 -4
- package/dist/enum-field-DsyC0ml7.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/formatted-json-viewer.impl-DadZ5uvb.js +58 -0
- package/dist/formatted-json-viewer.impl-DadZ5uvb.js.map +1 -0
- package/dist/icon-CHR45tj_.js +358 -0
- package/dist/icon-CHR45tj_.js.map +1 -0
- package/dist/{icon-C4QOpsdI.js → icon-components-CJ4I3Y6Y.js} +7 -481
- package/dist/icon-components-CJ4I3Y6Y.js.map +1 -0
- package/dist/{id-autocomplete-C-hwriS5.d.ts → id-autocomplete-Cr7p129s.d.ts} +3 -3
- package/dist/id-autocomplete-Cr7p129s.d.ts.map +1 -0
- package/dist/{id-autocomplete-input-container-DFEyPh5p.d.ts → id-autocomplete-input-container-iTw9wYZn.d.ts} +3 -3
- package/dist/id-autocomplete-input-container-iTw9wYZn.d.ts.map +1 -0
- package/dist/{id-autocomplete-list-EzLpF23C.d.ts → id-autocomplete-list-BIC3RxOp.d.ts} +3 -3
- package/dist/id-autocomplete-list-BIC3RxOp.d.ts.map +1 -0
- package/dist/{id-autocomplete-list-option-CB5B07Hi.d.ts → id-autocomplete-list-option-DlpZer-2.d.ts} +4 -3
- package/dist/id-autocomplete-list-option-DlpZer-2.d.ts.map +1 -0
- package/dist/index-C-Tup7Br.d.ts +4 -0
- package/dist/{index--hDSfvJT.d.ts → index-Ck34z7kD.d.ts} +23 -59
- package/dist/index-Ck34z7kD.d.ts.map +1 -0
- package/dist/index-D6Zk5OLV.d.ts +4 -0
- package/dist/index-Ds9-qjjC.d.ts +30 -0
- package/dist/index-jfVVOU-H.d.ts +2 -0
- package/dist/index.d.ts +5 -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/label-nH2HoKfI.js +15 -0
- package/dist/label-nH2HoKfI.js.map +1 -0
- package/dist/location-info-C3YbSsV0.js +47 -0
- package/dist/location-info-C3YbSsV0.js.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-0-cC_e65.d.ts} +5 -6
- package/dist/radio-group-field-0-cC_e65.d.ts.map +1 -0
- package/dist/revision-history.impl-CrtSnhXQ.js +642 -0
- package/dist/revision-history.impl-CrtSnhXQ.js.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-VZPf666l.d.ts} +5 -5
- package/dist/select-field-VZPf666l.d.ts.map +1 -0
- package/dist/{selected-content-CGsK5PR4.d.ts → selected-content-D6NWiceG.d.ts} +3 -3
- package/dist/selected-content-D6NWiceG.d.ts.map +1 -0
- package/dist/{sidebar-DOoE4krt.d.ts → sidebar-DFqreKf1.d.ts} +3 -3
- package/dist/sidebar-DFqreKf1.d.ts.map +1 -0
- package/dist/{sidebar-provider-C2eyz9TL.d.ts → sidebar-provider-CZHhqW5n.d.ts} +4 -8
- package/dist/sidebar-provider-CZHhqW5n.d.ts.map +1 -0
- package/dist/splitted-input-diff-Bkoi0Odc.d.ts +11 -0
- package/dist/splitted-input-diff-Bkoi0Odc.d.ts.map +1 -0
- package/dist/{src-CVV6HzQZ.js → src-CohvVFnR.js} +178 -22
- package/dist/src-CohvVFnR.js.map +1 -0
- package/dist/style.css +3 -6
- package/dist/text-field-CDYSwanK.d.ts +9 -0
- package/dist/text-field-CDYSwanK.d.ts.map +1 -0
- package/dist/{text-input-8zXIWHLi.d.ts → text-input-CFRCPYq6.d.ts} +5 -6
- package/dist/text-input-CFRCPYq6.d.ts.map +1 -0
- package/dist/text-input-diff-BgJAxPQV.d.ts +12 -0
- package/dist/text-input-diff-BgJAxPQV.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-FTqFl5du.d.ts} +3 -3
- package/dist/types-FTqFl5du.d.ts.map +1 -0
- package/dist/types-TZijOYrE.d.ts +17 -0
- package/dist/types-TZijOYrE.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 +4 -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-WH2ROfQn.d.ts} +5 -16
- package/dist/use-id-autocomplete-WH2ROfQn.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-Cg5TEYP2.d.ts} +5 -7
- package/dist/value-transformer-Cg5TEYP2.d.ts.map +1 -0
- package/dist/{with-field-validation-Di5D8vU-.d.ts → with-field-validation-CObZoT4r.d.ts} +3 -3
- package/dist/with-field-validation-CObZoT4r.d.ts.map +1 -0
- package/package.json +17 -12
- package/plugins.css +6 -0
- package/tailwind.css +175 -0
- package/vendor.css +3 -0
- 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/icon-C4QOpsdI.js.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/src-CVV6HzQZ.js.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 +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-Ck34z7kD.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-Ck34z7kD.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-WH2ROfQn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-id-autocomplete-WH2ROfQn.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-Ck34z7kD.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-Cg5TEYP2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-transformer-Cg5TEYP2.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-Ck34z7kD.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-CObZoT4r.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-field-validation-CObZoT4r.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,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/design-system",
|
|
3
|
-
"version": "6.2.3-dev.
|
|
3
|
+
"version": "6.2.3-dev.71",
|
|
4
4
|
"description": "Powerhouse document-engineering design system — GraphQL scalar UI components for building consistent Powerhouse editors.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
|
-
"theme.css"
|
|
7
|
+
"theme.css",
|
|
8
|
+
"tailwind.css",
|
|
9
|
+
"plugins.css",
|
|
10
|
+
"vendor.css"
|
|
8
11
|
],
|
|
9
12
|
"type": "module",
|
|
10
13
|
"repository": {
|
|
@@ -56,6 +59,9 @@
|
|
|
56
59
|
"import": "./dist/connect/components/toast/toast.js"
|
|
57
60
|
},
|
|
58
61
|
"./style.css": "./dist/style.css",
|
|
62
|
+
"./tailwind.css": "./tailwind.css",
|
|
63
|
+
"./plugins.css": "./plugins.css",
|
|
64
|
+
"./vendor.css": "./vendor.css",
|
|
59
65
|
"./theme.css": "./theme.css"
|
|
60
66
|
},
|
|
61
67
|
"author": {
|
|
@@ -70,7 +76,7 @@
|
|
|
70
76
|
"@babel/core": "^7.29.0",
|
|
71
77
|
"@babel/plugin-transform-react-pure-annotations": "^7.27.1",
|
|
72
78
|
"@babel/preset-typescript": "^7.28.5",
|
|
73
|
-
"@powerhousedao/config": "6.2.3-dev.
|
|
79
|
+
"@powerhousedao/config": "6.2.3-dev.71",
|
|
74
80
|
"@prettier/sync": "^0.5.2",
|
|
75
81
|
"@rollup/plugin-babel": "^7.0.0",
|
|
76
82
|
"@storybook/addon-actions": "^8.6.18",
|
|
@@ -100,25 +106,23 @@
|
|
|
100
106
|
"@types/react-virtualized": "^9.22.3",
|
|
101
107
|
"camelcase": "^8.0.0",
|
|
102
108
|
"happy-dom": "^20.8.9",
|
|
103
|
-
"jsdom": "^24.0.0",
|
|
104
109
|
"react": "19.2.6",
|
|
105
110
|
"react-dom": "19.2.6",
|
|
106
111
|
"storybook": "^8.6.18",
|
|
107
112
|
"storybook-addon-pseudo-states": "^4.0.4",
|
|
108
|
-
"tailwind-scrollbar": "^4.0.1",
|
|
109
113
|
"tailwindcss": "4.2.2",
|
|
110
|
-
"tsdown": "0.
|
|
111
|
-
"tsx": "4.
|
|
112
|
-
"vite": "8.
|
|
113
|
-
"vitest": "
|
|
114
|
+
"tsdown": "0.23.0",
|
|
115
|
+
"tsx": "4.23.13",
|
|
116
|
+
"vite": "8.3.4",
|
|
117
|
+
"vitest": "5.0.3"
|
|
114
118
|
},
|
|
115
119
|
"peerDependencies": {
|
|
116
120
|
"react": ">=19.0.0",
|
|
117
121
|
"react-dom": ">=19.0.0"
|
|
118
122
|
},
|
|
119
123
|
"dependencies": {
|
|
120
|
-
"@powerhousedao/reactor-browser": "6.2.3-dev.
|
|
121
|
-
"@powerhousedao/shared": "6.2.3-dev.
|
|
124
|
+
"@powerhousedao/reactor-browser": "6.2.3-dev.71",
|
|
125
|
+
"@powerhousedao/shared": "6.2.3-dev.71",
|
|
122
126
|
"@radix-ui/react-checkbox": "^1.1.2",
|
|
123
127
|
"@radix-ui/react-dialog": "^1.1.2",
|
|
124
128
|
"@radix-ui/react-dropdown-menu": "^2.1.5",
|
|
@@ -144,6 +148,7 @@
|
|
|
144
148
|
"react-virtualized": "^9.22.6",
|
|
145
149
|
"remeda": "2.33.7",
|
|
146
150
|
"tailwind-merge": "3.4.0",
|
|
151
|
+
"tailwind-scrollbar": "^4.0.1",
|
|
147
152
|
"type-fest": "5.6.0",
|
|
148
153
|
"usehooks-ts": "^3.1.1"
|
|
149
154
|
},
|
|
@@ -163,7 +168,7 @@
|
|
|
163
168
|
],
|
|
164
169
|
"scripts": {
|
|
165
170
|
"tsc": "tsc",
|
|
166
|
-
"lint": "
|
|
171
|
+
"lint": "cd ../.. && oxlint packages/design-system",
|
|
167
172
|
"create-icon-components": "tsx scripts/create-icon-components.ts",
|
|
168
173
|
"build": "tsdown && pnpm run build:css",
|
|
169
174
|
"build:css": "pnpm exec tailwindcss -i style.css -o dist/style.css",
|
package/plugins.css
ADDED
package/tailwind.css
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/* The design system for a Tailwind host: its tokens, its components' rules and
|
|
2
|
+
the classes its code uses. Third-party CSS is in vendor.css. */
|
|
3
|
+
@import "./theme.css";
|
|
4
|
+
@import "./plugins.css";
|
|
5
|
+
@source "./dist";
|
|
6
|
+
|
|
7
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
8
|
+
|
|
9
|
+
:root {
|
|
10
|
+
/* Toastify */
|
|
11
|
+
--toastify-toast-min-height: 48px;
|
|
12
|
+
--toastify-toast-bd-radius: 8px;
|
|
13
|
+
--toastify-text-color-light: var(--color-gray-800);
|
|
14
|
+
|
|
15
|
+
--toastify-color-progress-info: var(--color-gray-300);
|
|
16
|
+
--toastify-color-progress-success: var(--color-gray-300);
|
|
17
|
+
--toastify-color-progress-warning: var(--color-gray-300);
|
|
18
|
+
--toastify-color-progress-error: var(--color-gray-300);
|
|
19
|
+
--toastify-color-progress-light: var(--color-gray-300);
|
|
20
|
+
/* Toastify end */
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
html:has(dialog[open]) {
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.checkbox-container input[type="checkbox"] {
|
|
28
|
+
accent-color: var(--color-gray-900);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* React Multi Select */
|
|
32
|
+
.rmsc {
|
|
33
|
+
--rmsc-main: var(--color-gray-300) !important;
|
|
34
|
+
--rmsc-hover: var(--color-gray-100) !important;
|
|
35
|
+
--rmsc-selected: var(--color-gray-300) !important;
|
|
36
|
+
}
|
|
37
|
+
/* React Multi Select end */
|
|
38
|
+
|
|
39
|
+
/* Toastify */
|
|
40
|
+
.Toastify__toast-body {
|
|
41
|
+
padding: 0;
|
|
42
|
+
margin: 0;
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.Toastify__toast {
|
|
48
|
+
box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.32);
|
|
49
|
+
padding: 12px 16px 12px 16px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.Toastify__progress-bar--wrp {
|
|
53
|
+
height: 2px;
|
|
54
|
+
}
|
|
55
|
+
/* Toastify end */
|
|
56
|
+
|
|
57
|
+
input[type="number"]::-webkit-inner-spin-button,
|
|
58
|
+
input[type="number"]::-webkit-outer-spin-button {
|
|
59
|
+
-webkit-appearance: none;
|
|
60
|
+
-moz-appearance: none;
|
|
61
|
+
appearance: none;
|
|
62
|
+
margin: 0;
|
|
63
|
+
}
|
|
64
|
+
/* Remove the increment/decrement buttons in Firefox */
|
|
65
|
+
input[type="number"] {
|
|
66
|
+
-moz-appearance: textfield;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.hover-bg-transparent:hover {
|
|
70
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@layer base {
|
|
74
|
+
/* The theme's text colour, so content outside the app's root (portals) follows dark mode. */
|
|
75
|
+
body {
|
|
76
|
+
@apply text-foreground;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
button {
|
|
80
|
+
@apply cursor-pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ph-default-styles h1 {
|
|
84
|
+
@apply mb-4 mt-6 font-sans text-3xl font-bold leading-tight text-foreground;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ph-default-styles h2 {
|
|
88
|
+
@apply mb-3 mt-5 font-sans text-2xl font-bold leading-tight text-foreground;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ph-default-styles h3 {
|
|
92
|
+
@apply mb-2 mt-4 font-sans text-xl font-bold leading-tight text-foreground;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.ph-default-styles p {
|
|
96
|
+
@apply font-sans text-base font-normal leading-tight text-foreground;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ph-default-styles small {
|
|
100
|
+
@apply font-sans text-sm font-normal leading-none text-foreground;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Default styles for text input fields and textareas based on Storybook */
|
|
104
|
+
.ph-default-styles input[type="text"],
|
|
105
|
+
.ph-default-styles input[type="email"],
|
|
106
|
+
.ph-default-styles input[type="password"],
|
|
107
|
+
.ph-default-styles input[type="search"],
|
|
108
|
+
.ph-default-styles input[type="tel"],
|
|
109
|
+
.ph-default-styles input[type="url"],
|
|
110
|
+
.ph-default-styles input[type="number"],
|
|
111
|
+
.ph-default-styles textarea {
|
|
112
|
+
/* Consistent with other defaults, Tailwind uses font-sans */
|
|
113
|
+
/* text-sm, font-normal, leading-5 */
|
|
114
|
+
/* text-gray-900 is #1a202c, using established default */
|
|
115
|
+
/* bg-white */
|
|
116
|
+
/* border border-gray-300 (#d1d5db), using established default */
|
|
117
|
+
/* rounded-md */
|
|
118
|
+
/* py-[7px] (textarea) / py-2 (input), px-3 */
|
|
119
|
+
/* w-full */
|
|
120
|
+
/* For some default spacing */
|
|
121
|
+
@apply mb-2.5 box-border w-full rounded-md border border-input bg-card px-3 py-1.75 font-sans text-sm font-normal leading-5 text-foreground;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.ph-default-styles textarea {
|
|
125
|
+
/* min-h-9 from textarea styles */
|
|
126
|
+
/* resize-y from textarea styles */
|
|
127
|
+
@apply min-h-9 resize-y;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ph-default-styles input[type="text"]:is([readonly], [disabled]),
|
|
131
|
+
.ph-default-styles input[type="email"]:is([readonly], [disabled]),
|
|
132
|
+
.ph-default-styles input[type="password"]:is([readonly], [disabled]),
|
|
133
|
+
.ph-default-styles input[type="search"]:is([readonly], [disabled]),
|
|
134
|
+
.ph-default-styles input[type="tel"]:is([readonly], [disabled]),
|
|
135
|
+
.ph-default-styles input[type="url"]:is([readonly], [disabled]),
|
|
136
|
+
.ph-default-styles input[type="number"]:is([readonly], [disabled]),
|
|
137
|
+
.ph-default-styles textarea:is([readonly], [disabled]) {
|
|
138
|
+
@apply bg-background text-muted-foreground;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Default styles for anchor/links */
|
|
142
|
+
.ph-default-styles a {
|
|
143
|
+
/* Example link color - match your design system */
|
|
144
|
+
@apply text-info no-underline;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.ph-default-styles a:hover {
|
|
148
|
+
/* Darker shade for hover */
|
|
149
|
+
@apply text-info brightness-50 underline;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.ph-default-styles a:focus {
|
|
153
|
+
/* Example focus ring */
|
|
154
|
+
@apply outline-none ring-2 ring-ring/50 ring-offset-2;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* Default styles for lists */
|
|
158
|
+
.ph-default-styles ul,
|
|
159
|
+
.ph-default-styles ol {
|
|
160
|
+
@apply mb-0 mt-0 pl-0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Default styles for labels */
|
|
164
|
+
.ph-default-styles label {
|
|
165
|
+
/* font-medium or similar */
|
|
166
|
+
/* Match other text colors */
|
|
167
|
+
@apply block font-sans font-medium text-foreground;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Default styles for horizontal rules */
|
|
171
|
+
.ph-default-styles hr {
|
|
172
|
+
/* A common light grey border color */
|
|
173
|
+
@apply my-4 h-px border-0 bg-border;
|
|
174
|
+
}
|
|
175
|
+
}
|
package/vendor.css
ADDED
|
@@ -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"}
|