@powerhousedao/document-engineering 1.27.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/scalars/components/fragments/form-message/message-list.js +1 -1
- package/dist/src/scalars/components/fragments/form-message/message-list.js.map +1 -1
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/body.d.ts +1 -1
- package/dist/src/table/components/body.d.ts.map +1 -0
- package/dist/src/table/components/body.js.map +1 -0
- package/dist/src/table/components/cells/basic-cell.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/basic-cell.js +1 -1
- package/dist/src/table/components/cells/basic-cell.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/default-cell.d.ts +1 -0
- package/dist/src/table/components/cells/default-cell.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/default-cell.js +3 -3
- package/dist/src/table/components/cells/default-cell.js.map +1 -0
- package/dist/src/table/components/cells/information-cell.d.ts +6 -0
- package/dist/src/table/components/cells/information-cell.d.ts.map +1 -0
- package/dist/src/table/components/cells/information-cell.js +12 -0
- package/dist/src/table/components/cells/information-cell.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/render-cell/empty-cell.d.ts +1 -1
- package/dist/src/table/components/cells/render-cell/empty-cell.d.ts.map +1 -0
- package/dist/src/table/components/cells/render-cell/empty-cell.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/render-cell/render-cell.d.ts +2 -2
- package/dist/src/table/components/cells/render-cell/render-cell.d.ts.map +1 -0
- package/dist/src/table/components/cells/render-cell/render-cell.js +38 -0
- package/dist/src/table/components/cells/render-cell/render-cell.js.map +1 -0
- package/dist/src/table/components/cells/render-cell/use-cell-logic.d.ts +16 -0
- package/dist/src/table/components/cells/render-cell/use-cell-logic.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/render-cell/use-cell-logic.js +11 -6
- package/dist/src/table/components/cells/render-cell/use-cell-logic.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/row-number-cell.d.ts +1 -0
- package/dist/src/table/components/cells/row-number-cell.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/row-number-cell.js +3 -3
- package/dist/src/table/components/cells/row-number-cell.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/boolean-editor.d.ts +2 -2
- package/dist/src/table/components/default-cell-editors/boolean-editor.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/boolean-editor.js +2 -2
- package/dist/src/table/components/default-cell-editors/boolean-editor.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/get-cell-editor-fn.d.ts +1 -1
- package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/get-cell-editor-fn.js.map +1 -0
- package/dist/src/table/components/default-cell-editors/index.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-editors/index.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/number-editor.d.ts +2 -2
- package/dist/src/table/components/default-cell-editors/number-editor.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/number-editor.js +2 -2
- package/dist/src/table/components/default-cell-editors/number-editor.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/string-editor.d.ts +2 -2
- package/dist/src/table/components/default-cell-editors/string-editor.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/string-editor.js +1 -1
- package/dist/src/table/components/default-cell-editors/string-editor.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/boolean-render.d.ts +1 -1
- package/dist/src/table/components/default-cell-renderers/boolean-render.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/boolean-render.js +2 -2
- package/dist/src/table/components/default-cell-renderers/boolean-render.js.map +1 -0
- package/dist/src/table/components/default-cell-renderers/get-render-fn.d.ts +4 -0
- package/dist/src/table/components/default-cell-renderers/get-render-fn.d.ts.map +1 -0
- package/dist/src/table/components/default-cell-renderers/get-render-fn.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/number-render.d.ts +1 -1
- package/dist/src/table/components/default-cell-renderers/number-render.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/number-render.js +1 -1
- package/dist/src/table/components/default-cell-renderers/number-render.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/text-render.d.ts +1 -1
- package/dist/src/table/components/default-cell-renderers/text-render.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/text-render.js +1 -1
- package/dist/src/table/components/default-cell-renderers/text-render.js.map +1 -0
- package/dist/src/table/components/default-fns/default-cell-value-formatter.d.ts.map +1 -0
- package/dist/src/table/components/default-fns/default-cell-value-formatter.js.map +1 -0
- package/dist/src/table/components/default-fns/default-cell-value-getter.d.ts +4 -0
- package/dist/src/table/components/default-fns/default-cell-value-getter.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-fns/default-cell-value-getter.js +1 -1
- package/dist/src/table/components/default-fns/default-cell-value-getter.js.map +1 -0
- package/dist/src/table/components/default-fns/default-column-config.d.ts +4 -0
- package/dist/src/table/components/default-fns/default-column-config.d.ts.map +1 -0
- package/dist/src/table/components/default-fns/default-column-config.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-header-renderers/default-header-renderer.d.ts +1 -1
- package/dist/src/table/components/default-header-renderers/default-header-renderer.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-header-renderers/default-header-renderer.js +1 -1
- package/dist/src/table/components/default-header-renderers/default-header-renderer.js.map +1 -0
- package/dist/src/table/components/default-sort-columns/default-sort-fns.d.ts +3 -0
- package/dist/src/table/components/default-sort-columns/default-sort-fns.d.ts.map +1 -0
- package/dist/src/table/components/default-sort-columns/default-sort-fns.js.map +1 -0
- package/dist/src/table/components/header/header-cell.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header/header-cell.js +1 -1
- package/dist/src/table/components/header/header-cell.js.map +1 -0
- package/dist/src/table/components/header/header-number-td.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header/header-number-td.js +1 -1
- package/dist/src/table/components/header/header-number-td.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header.d.ts +1 -1
- package/dist/src/table/components/header.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header.js +2 -2
- package/dist/src/table/components/header.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/rows/render-row.d.ts +1 -1
- package/dist/src/table/components/rows/render-row.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/rows/render-row.js +24 -6
- package/dist/src/table/components/rows/render-row.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/rows/row-actions.d.ts +1 -1
- package/dist/src/table/components/rows/row-actions.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/rows/row-actions.js +3 -3
- package/dist/src/table/components/rows/row-actions.js.map +1 -0
- package/dist/src/table/components/rows/table-row.d.ts.map +1 -0
- package/dist/src/table/components/rows/table-row.js +15 -0
- package/dist/src/table/components/rows/table-row.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/sort-indicator.d.ts +1 -1
- package/dist/src/table/components/sort-indicator.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/sort-indicator.js +1 -1
- package/dist/src/table/components/sort-indicator.js.map +1 -0
- package/dist/src/table/components/table-focus-trap.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-focus-trap.js +1 -0
- package/dist/src/table/components/table-focus-trap.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-provider/table-provider.d.ts +1 -1
- package/dist/src/table/components/table-provider/table-provider.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-provider/table-provider.js +2 -1
- package/dist/src/table/components/table-provider/table-provider.js.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-provider/table-reducer.d.ts +7 -1
- package/dist/src/table/components/table-provider/table-reducer.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-provider/table-reducer.js +7 -4
- package/dist/src/table/components/table-provider/table-reducer.js.map +1 -0
- package/dist/src/table/examples/api-usage/api-usage.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/examples/api-usage/api-usage.js +5 -5
- package/dist/src/table/examples/api-usage/api-usage.js.map +1 -0
- package/dist/src/table/examples/api-usage/button.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/examples/api-usage/button.js +1 -1
- package/dist/src/table/examples/api-usage/button.js.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/examples/computed-columns/computed-columns.d.ts +2 -2
- package/dist/src/table/examples/computed-columns/computed-columns.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/examples/computed-columns/computed-columns.js +3 -3
- package/dist/src/table/examples/computed-columns/computed-columns.js.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/examples/custom-rendering/custom-rendering.d.ts +2 -2
- package/dist/src/table/examples/custom-rendering/custom-rendering.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/examples/custom-rendering/custom-rendering.js +5 -5
- package/dist/src/table/examples/custom-rendering/custom-rendering.js.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/examples/table-editing/table-editing.d.ts +2 -2
- package/dist/src/table/examples/table-editing/table-editing.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/examples/table-editing/table-editing.js +11 -8
- package/dist/src/table/examples/table-editing/table-editing.js.map +1 -0
- package/dist/src/table/hooks/useGlobalTableKeyEvents.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/hooks/useGlobalTableKeyEvents.js +2 -2
- package/dist/src/table/hooks/useGlobalTableKeyEvents.js.map +1 -0
- package/dist/src/table/index.d.ts +3 -0
- package/dist/src/table/index.d.ts.map +1 -0
- package/dist/src/table/index.js +2 -0
- package/dist/src/table/index.js.map +1 -0
- package/dist/src/table/logic/public-table-api.d.ts.map +1 -0
- package/dist/src/table/logic/public-table-api.js.map +1 -0
- package/dist/src/table/logic/selection-manager.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/logic/selection-manager.js +6 -2
- package/dist/src/table/logic/selection-manager.js.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/logic/table-api.d.ts +4 -2
- package/dist/src/table/logic/table-api.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/logic/table-api.js +68 -10
- package/dist/src/table/logic/table-api.js.map +1 -0
- package/dist/src/{ui/components/object-set-table → table}/logic/types.d.ts +4 -2
- package/dist/src/table/logic/types.d.ts.map +1 -0
- package/dist/src/table/logic/types.js.map +1 -0
- package/dist/src/table/table/index.d.ts +6 -0
- package/dist/src/table/table/index.d.ts.map +1 -0
- package/dist/src/table/table/index.js +6 -0
- package/dist/src/table/table/index.js.map +1 -0
- package/dist/src/table/table/mock-data.d.ts.map +1 -0
- package/dist/src/table/table/mock-data.js.map +1 -0
- package/dist/src/table/table/object-set-table.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table → table/table}/object-set-table.js +16 -12
- package/dist/src/table/table/object-set-table.js.map +1 -0
- package/dist/src/{ui/components/object-set-table → table/table}/types.d.ts +2 -2
- package/dist/src/table/table/types.d.ts.map +1 -0
- package/dist/src/table/table/types.js.map +1 -0
- package/dist/src/table/table/utils.d.ts.map +1 -0
- package/dist/src/{ui/components/object-set-table → table/table}/utils.js +2 -2
- package/dist/src/table/table/utils.js.map +1 -0
- package/dist/src/ui/components/data-entry/amount-input/use-amount-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/amount-input/use-amount-input.js +3 -2
- package/dist/src/ui/components/data-entry/amount-input/use-amount-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/file-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/file-input.js +7 -15
- package/dist/src/ui/components/data-entry/file-input/file-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/index.d.ts +1 -1
- package/dist/src/ui/components/data-entry/file-input/index.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts +3 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js +9 -2
- package/dist/src/ui/components/data-entry/file-input/sub-components/file-upload-item.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.d.ts +7 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.js +8 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.d.ts +10 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.js +17 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-file.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.d.ts +11 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.js +17 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/preview-image.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/types.d.ts +16 -0
- package/dist/src/ui/components/data-entry/file-input/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/types.js +6 -1
- package/dist/src/ui/components/data-entry/file-input/types.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts +1 -0
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.js +4 -1
- package/dist/src/ui/components/data-entry/file-input/useUploadFile.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/utils.d.ts +3 -0
- package/dist/src/ui/components/data-entry/file-input/utils.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/utils.js +24 -0
- package/dist/src/ui/components/data-entry/file-input/utils.js.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.js +4 -3
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/types.d.ts +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/types.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts +4 -2
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js +133 -17
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/select/command-list-item.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/select/command-list-item.js +1 -1
- package/dist/src/ui/components/data-entry/select/command-list-item.js.map +1 -1
- package/dist/src/ui/components/data-entry/text-input/text-input.js +1 -1
- package/dist/src/ui/components/data-entry/text-input/text-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/textarea/textarea.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/textarea/textarea.js +16 -6
- package/dist/src/ui/components/data-entry/textarea/textarea.js.map +1 -1
- package/dist/src/ui/components/icon-components/BookOpenText.d.ts +7 -0
- package/dist/src/ui/components/icon-components/BookOpenText.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/BookOpenText.js +7 -0
- package/dist/src/ui/components/icon-components/BookOpenText.js.map +1 -0
- package/dist/src/ui/components/icon-components/BrokenImage.d.ts +7 -0
- package/dist/src/ui/components/icon-components/BrokenImage.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/BrokenImage.js +7 -0
- package/dist/src/ui/components/icon-components/BrokenImage.js.map +1 -0
- package/dist/src/ui/components/icon-components/ContentUnavailableIcon.d.ts +7 -0
- package/dist/src/ui/components/icon-components/ContentUnavailableIcon.d.ts.map +1 -0
- package/dist/src/ui/components/icon-components/ContentUnavailableIcon.js +7 -0
- package/dist/src/ui/components/icon-components/ContentUnavailableIcon.js.map +1 -0
- package/dist/src/ui/components/icon-components/Image.d.ts.map +1 -1
- package/dist/src/ui/components/icon-components/Image.js +2 -2
- package/dist/src/ui/components/icon-components/Image.js.map +1 -1
- package/dist/src/ui/components/icon-components/index.d.ts +1 -1
- package/dist/src/ui/components/icon-components/index.d.ts.map +1 -1
- package/dist/src/ui/components/icon-components/index.js +12 -0
- package/dist/src/ui/components/icon-components/index.js.map +1 -1
- package/dist/src/ui/components/index.d.ts +0 -1
- package/dist/src/ui/components/index.d.ts.map +1 -1
- package/dist/src/ui/components/index.js +0 -2
- package/dist/src/ui/components/index.js.map +1 -1
- package/dist/style.css +89 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +7 -1
- package/dist/src/ui/components/object-set-table/examples/api-usage/api-usage.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/examples/api-usage/api-usage.js.map +0 -1
- package/dist/src/ui/components/object-set-table/examples/api-usage/button.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/examples/api-usage/button.js.map +0 -1
- package/dist/src/ui/components/object-set-table/examples/computed-columns/computed-columns.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/examples/computed-columns/computed-columns.js.map +0 -1
- package/dist/src/ui/components/object-set-table/examples/custom-rendering/custom-rendering.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/examples/custom-rendering/custom-rendering.js.map +0 -1
- package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/examples/table-editing/table-editing.js.map +0 -1
- package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.js.map +0 -1
- package/dist/src/ui/components/object-set-table/index.d.ts +0 -6
- package/dist/src/ui/components/object-set-table/index.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/index.js +0 -6
- package/dist/src/ui/components/object-set-table/index.js.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/public-table-api.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/public-table-api.js.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/selection-manager.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/selection-manager.js.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/table-api.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/table-api.js.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/types.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/types.js.map +0 -1
- package/dist/src/ui/components/object-set-table/mock-data.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/mock-data.js.map +0 -1
- package/dist/src/ui/components/object-set-table/object-set-table.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/object-set-table.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/body.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/body.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.d.ts +0 -3
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js +0 -7
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/empty-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js +0 -34
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/render-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.d.ts +0 -16
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/render-cell/use-cell-logic.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/boolean-editor.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/get-cell-editor-fn.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/index.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/index.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/number-editor.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-editors/string-editor.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/boolean-render.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.d.ts +0 -4
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-formatter.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-formatter.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-getter.d.ts +0 -4
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-getter.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-getter.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-column-config.d.ts +0 -4
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-column-config.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-column-config.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-header-renderers/default-header-renderer.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-header-renderers/default-header-renderer.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.d.ts +0 -3
- package/dist/src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-sort-columns/default-sort-fns.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-number-td.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-number-td.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/render-row.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/row-actions.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/row-actions.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/table-row.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/table-row.js +0 -14
- package/dist/src/ui/components/object-set-table/subcomponents/rows/table-row.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/sort-indicator.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/sort-indicator.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.js.map +0 -1
- package/dist/src/ui/components/object-set-table/types.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/types.js.map +0 -1
- package/dist/src/ui/components/object-set-table/utils.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/utils.js.map +0 -1
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/body.js +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/basic-cell.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/cells/render-cell/empty-cell.js +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/get-cell-editor-fn.js +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/index.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-editors/index.js +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-cell-renderers/get-render-fn.js +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-fns/default-cell-value-formatter.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-fns/default-cell-value-formatter.js +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-fns/default-column-config.js +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/default-sort-columns/default-sort-fns.js +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header/header-cell.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/header/header-number-td.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/rows/table-row.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table/subcomponents → table/components}/table-focus-trap.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table → table}/examples/api-usage/api-usage.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table → table}/examples/api-usage/button.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table → table}/hooks/useGlobalTableKeyEvents.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table → table}/logic/public-table-api.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table → table}/logic/public-table-api.js +0 -0
- /package/dist/src/{ui/components/object-set-table → table}/logic/selection-manager.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table → table}/logic/types.js +0 -0
- /package/dist/src/{ui/components/object-set-table → table/table}/mock-data.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table → table/table}/mock-data.js +0 -0
- /package/dist/src/{ui/components/object-set-table → table/table}/object-set-table.d.ts +0 -0
- /package/dist/src/{ui/components/object-set-table → table/table}/types.js +0 -0
- /package/dist/src/{ui/components/object-set-table → table/table}/utils.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { InputBaseProps, WithDifference } from '../../../../scalars/components/types.js';
|
|
3
3
|
import type { SelectProps } from '../select/types.js';
|
|
4
|
-
type PrefixOptionFormat = 'CodesOnly' | '
|
|
4
|
+
type PrefixOptionFormat = 'CodesOnly' | 'FlagsOnly' | 'FlagsAndCodes' | 'FlagsAndNumbers';
|
|
5
5
|
interface PhoneNumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof InputBaseProps<string> | 'onChange'>, InputBaseProps<string>, Omit<WithDifference<string>, 'diffMode'> {
|
|
6
6
|
onChange?: (value: string) => void;
|
|
7
7
|
allowedCountries?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/phone-number-input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAC7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,KAAK,kBAAkB,GAAG,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/phone-number-input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAC7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,KAAK,kBAAkB,GAAG,WAAW,GAAG,WAAW,GAAG,eAAe,GAAG,iBAAiB,CAAA;AAEzF,UAAU,qBACR,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,cAAc,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,EAClG,cAAc,CAAC,MAAM,CAAC,EACtB,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAC1C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,WAAW,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,YAAY,GAAG,WAAW,GAAG,kBAAkB,CAAC,CAAA;CACjG;AAED,YAAY,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -4,17 +4,19 @@ interface UsePhoneNumberInputProps {
|
|
|
4
4
|
value: PhoneNumberInputProps['value'];
|
|
5
5
|
defaultValue: PhoneNumberInputProps['defaultValue'];
|
|
6
6
|
onChange: PhoneNumberInputProps['onChange'];
|
|
7
|
+
onKeyDown: PhoneNumberInputProps['onKeyDown'];
|
|
7
8
|
allowedCountries: PhoneNumberInputProps['allowedCountries'];
|
|
8
9
|
excludedCountries: PhoneNumberInputProps['excludedCountries'];
|
|
9
10
|
includeDependentAreas: PhoneNumberInputProps['includeDependentAreas'];
|
|
10
11
|
prefixOptionFormat: PhoneNumberInputProps['prefixOptionFormat'];
|
|
11
12
|
}
|
|
12
|
-
export declare const usePhoneNumberInput: ({ onChange, }: UsePhoneNumberInputProps) => {
|
|
13
|
+
export declare const usePhoneNumberInput: ({ value, defaultValue, onChange, onKeyDown, allowedCountries, excludedCountries, includeDependentAreas, prefixOptionFormat, }: UsePhoneNumberInputProps) => {
|
|
13
14
|
options: SelectOption[];
|
|
14
15
|
selectValue: string;
|
|
15
|
-
inputValue: string;
|
|
16
|
+
inputValue: string | import("libphonenumber-js").NationalNumber;
|
|
16
17
|
handleSelectOnChange: (newSelectValue: string) => void;
|
|
17
18
|
handleInputOnChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
19
|
+
handleOnKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
18
20
|
};
|
|
19
21
|
export {};
|
|
20
22
|
//# sourceMappingURL=use-phone-number-input.d.ts.map
|
package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-phone-number-input.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/phone-number-input/use-phone-number-input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-phone-number-input.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/phone-number-input/use-phone-number-input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,UAAU,wBAAwB;IAChC,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAA;IACrC,YAAY,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAA;IACnD,QAAQ,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAA;IAC3C,SAAS,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAA;IAC7C,gBAAgB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAA;IAC3D,iBAAiB,EAAE,qBAAqB,CAAC,mBAAmB,CAAC,CAAA;IAC7D,qBAAqB,EAAE,qBAAqB,CAAC,uBAAuB,CAAC,CAAA;IACrE,kBAAkB,EAAE,qBAAqB,CAAC,oBAAoB,CAAC,CAAA;CAChE;AA+BD,eAAO,MAAM,mBAAmB,GAAI,+HASjC,wBAAwB;;;;2CAuEN,MAAM;6BAUnB,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC;yBAYnC,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC;CAgE5C,CAAA"}
|
|
@@ -1,34 +1,150 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import { CircleFlag } from 'react-circle-flags';
|
|
4
|
+
import countries from 'world-countries';
|
|
5
|
+
import parsePhoneNumber, { getCountryCallingCode } from 'libphonenumber-js';
|
|
6
|
+
const renderFlagIcon = (countryCode) => {
|
|
7
|
+
return _jsx(CircleFlag, { className: "size-4", countryCode: countryCode.toLowerCase(), height: 16 });
|
|
8
|
+
};
|
|
9
|
+
const getCallingCode = (countryCode) => {
|
|
10
|
+
try {
|
|
11
|
+
const callingCode = getCountryCallingCode(countryCode);
|
|
12
|
+
return `+${callingCode}`;
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const parsePhoneValue = (rawValue) => {
|
|
19
|
+
if (rawValue === '')
|
|
20
|
+
return null;
|
|
21
|
+
const sanitizedValue = `+${rawValue.replace(/\D/g, '')}`;
|
|
22
|
+
const parsedValue = parsePhoneNumber(sanitizedValue, { extract: false });
|
|
23
|
+
if (parsedValue?.isPossible() && parsedValue.country) {
|
|
24
|
+
const callingCode = `+${parsedValue.countryCallingCode}`;
|
|
25
|
+
const selectValue = `${callingCode}-${parsedValue.country}`;
|
|
26
|
+
const inputValue = parsedValue.nationalNumber;
|
|
27
|
+
return { selectValue, inputValue };
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
};
|
|
31
|
+
export const usePhoneNumberInput = ({ value, defaultValue, onChange, onKeyDown, allowedCountries, excludedCountries, includeDependentAreas = false, prefixOptionFormat = 'FlagsAndNumbers', }) => {
|
|
32
|
+
const [selectValue, setSelectValue] = useState(() => {
|
|
33
|
+
const parsedValue = parsePhoneValue(value ?? defaultValue ?? '');
|
|
34
|
+
return parsedValue?.selectValue ?? '';
|
|
35
|
+
});
|
|
36
|
+
const [inputValue, setInputValue] = useState(() => {
|
|
37
|
+
const parsedValue = parsePhoneValue(value ?? defaultValue ?? '');
|
|
38
|
+
return parsedValue?.inputValue ?? '';
|
|
39
|
+
});
|
|
40
|
+
const options = useMemo(() => {
|
|
41
|
+
const defaultOptions = countries
|
|
42
|
+
.filter((country) => (includeDependentAreas ? true : country.independent) &&
|
|
43
|
+
country.cca2 !== 'AQ' && // exclude Antarctica
|
|
44
|
+
getCallingCode(country.cca2) !== null // only countries with calling codes
|
|
45
|
+
)
|
|
46
|
+
.map((country) => {
|
|
47
|
+
const callingCode = getCallingCode(country.cca2);
|
|
48
|
+
const countryCode = country.cca2;
|
|
49
|
+
let label = '';
|
|
50
|
+
let icon = undefined;
|
|
51
|
+
switch (prefixOptionFormat) {
|
|
52
|
+
case 'CodesOnly':
|
|
53
|
+
label = countryCode;
|
|
54
|
+
break;
|
|
55
|
+
case 'FlagsOnly':
|
|
56
|
+
label = '';
|
|
57
|
+
icon = () => renderFlagIcon(countryCode);
|
|
58
|
+
break;
|
|
59
|
+
case 'FlagsAndCodes':
|
|
60
|
+
label = countryCode;
|
|
61
|
+
icon = () => renderFlagIcon(countryCode);
|
|
62
|
+
break;
|
|
63
|
+
case 'FlagsAndNumbers':
|
|
64
|
+
default:
|
|
65
|
+
label = callingCode;
|
|
66
|
+
icon = () => renderFlagIcon(countryCode);
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
value: `${callingCode}-${countryCode}`,
|
|
71
|
+
label,
|
|
72
|
+
icon,
|
|
73
|
+
};
|
|
74
|
+
})
|
|
75
|
+
.sort((a, b) => {
|
|
76
|
+
const aCode = parseInt(a.value.split('-')[0].replace('+', ''));
|
|
77
|
+
const bCode = parseInt(b.value.split('-')[0].replace('+', ''));
|
|
78
|
+
return aCode - bCode;
|
|
79
|
+
});
|
|
80
|
+
const filteredOptions = Array.isArray(allowedCountries) || Array.isArray(excludedCountries)
|
|
81
|
+
? defaultOptions.filter((option) => {
|
|
82
|
+
const countryCode = option.value.split('-')[1];
|
|
83
|
+
return ((!allowedCountries || allowedCountries.includes(countryCode)) && !excludedCountries?.includes(countryCode));
|
|
84
|
+
})
|
|
85
|
+
: defaultOptions;
|
|
86
|
+
return filteredOptions;
|
|
87
|
+
}, [allowedCountries, excludedCountries, includeDependentAreas, prefixOptionFormat]);
|
|
15
88
|
const handleSelectOnChange = useCallback((newSelectValue) => {
|
|
16
89
|
setSelectValue(newSelectValue);
|
|
17
|
-
const
|
|
90
|
+
const callingCode = newSelectValue.split('-')[0];
|
|
91
|
+
const fullValue = `${callingCode}${inputValue}`;
|
|
18
92
|
onChange?.(fullValue);
|
|
19
93
|
}, [inputValue, onChange]);
|
|
20
94
|
const handleInputOnChange = useCallback((e) => {
|
|
21
|
-
const newInputValue = e.target.value;
|
|
95
|
+
const newInputValue = e.target.value.replace(/\D/g, '');
|
|
22
96
|
setInputValue(newInputValue);
|
|
23
|
-
const
|
|
97
|
+
const callingCode = selectValue.split('-')[0];
|
|
98
|
+
const fullValue = `${callingCode}${newInputValue}`;
|
|
24
99
|
onChange?.(fullValue);
|
|
25
100
|
}, [selectValue, onChange]);
|
|
101
|
+
const handleOnKeyDown = useCallback((e) => {
|
|
102
|
+
const isCopyShortcut = (e.ctrlKey && (e.key === 'c' || e.key === 'C')) || (e.metaKey && (e.key === 'c' || e.key === 'C'));
|
|
103
|
+
const isCutShortcut = (e.ctrlKey && (e.key === 'x' || e.key === 'X')) || (e.metaKey && (e.key === 'x' || e.key === 'X'));
|
|
104
|
+
const isPasteShortcut = (e.ctrlKey && (e.key === 'v' || e.key === 'V')) || (e.metaKey && (e.key === 'v' || e.key === 'V'));
|
|
105
|
+
const isSelectAllShortcut = (e.ctrlKey && (e.key === 'a' || e.key === 'A')) || (e.metaKey && (e.key === 'a' || e.key === 'A'));
|
|
106
|
+
const allowed = new Set([
|
|
107
|
+
'Backspace',
|
|
108
|
+
'Delete',
|
|
109
|
+
'ArrowLeft',
|
|
110
|
+
'ArrowRight',
|
|
111
|
+
'ArrowUp',
|
|
112
|
+
'ArrowDown',
|
|
113
|
+
'Home',
|
|
114
|
+
'End',
|
|
115
|
+
'Tab',
|
|
116
|
+
'Enter',
|
|
117
|
+
'Escape',
|
|
118
|
+
]);
|
|
119
|
+
const isDigit = /^[0-9]$/.test(e.key);
|
|
120
|
+
if (isCopyShortcut || isCutShortcut || isPasteShortcut || isSelectAllShortcut || allowed.has(e.key) || isDigit) {
|
|
121
|
+
onKeyDown?.(e);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
e.preventDefault();
|
|
125
|
+
onKeyDown?.(e);
|
|
126
|
+
}, [onKeyDown]);
|
|
127
|
+
useEffect(() => {
|
|
128
|
+
if (value !== undefined) {
|
|
129
|
+
if (value === '') {
|
|
130
|
+
setSelectValue('');
|
|
131
|
+
setInputValue('');
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const parsedValue = parsePhoneValue(value);
|
|
135
|
+
if (parsedValue && options.some((o) => o.value === parsedValue.selectValue)) {
|
|
136
|
+
setSelectValue(parsedValue.selectValue);
|
|
137
|
+
setInputValue(parsedValue.inputValue);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}, [value, options]);
|
|
26
141
|
return {
|
|
27
142
|
options,
|
|
28
143
|
selectValue,
|
|
29
144
|
inputValue,
|
|
30
145
|
handleSelectOnChange,
|
|
31
146
|
handleInputOnChange,
|
|
147
|
+
handleOnKeyDown,
|
|
32
148
|
};
|
|
33
149
|
};
|
|
34
150
|
//# sourceMappingURL=use-phone-number-input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-phone-number-input.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/phone-number-input/use-phone-number-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"use-phone-number-input.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/phone-number-input/use-phone-number-input.tsx"],"names":[],"mappings":";AA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AAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-list-item.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/select/command-list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,UAAU,oBAAoB;IAC5B,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IAC/B,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,MAAM,GAAG,WAAW,CAAA;IACnC,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAA;IACvC,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"command-list-item.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/select/command-list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,UAAU,oBAAoB;IAC5B,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IAC/B,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,MAAM,GAAG,WAAW,CAAA;IACnC,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAA;IACvC,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAuF1D,CAAA"}
|
|
@@ -6,7 +6,7 @@ import { cn } from '../../../../scalars/lib/utils.js';
|
|
|
6
6
|
export const CommandListItem = ({ options = [], selectedValues, multiple, selectionIcon, selectionIconPosition, hasAnyIcon, toggleOption, tabIndex, className, }) => {
|
|
7
7
|
return (_jsx(_Fragment, { children: options.map((opt) => {
|
|
8
8
|
const isSelected = selectedValues.includes(opt.value);
|
|
9
|
-
return (_jsxs(CommandItem, { tabIndex: tabIndex,
|
|
9
|
+
return (_jsxs(CommandItem, { tabIndex: tabIndex, keywords: [opt.label, opt.value], value: opt.value, onSelect: () => {
|
|
10
10
|
if (!opt.disabled) {
|
|
11
11
|
toggleOption(opt.value);
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-list-item.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/select/command-list-item.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAA;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AAerD,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,OAAO,GAAG,EAAE,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,SAAS,GACV,EAAE,EAAE;IACH,OAAO,CACL,4BACG,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,MAAM,UAAU,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;YACrD,OAA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AAS,EAAE,EAAE,CACX,mDAAmD,EACnD,kCAAkC,EAClC,GAAG,CAAC,QAAQ,IAAI,kCAAkC,CACnD,YAEA,GAAG,CAAC,KAAK,GACL,EACN,aAAa,KAAK,WAAW,IAAI,qBAAqB,KAAK,OAAO,IAAI,CACrE,cAAK,SAAS,EAAC,QAAQ,YACpB,UAAU,IAAI,KAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAC,iCAAiC,GAAG,GAC1F,CACP,
|
|
1
|
+
{"version":3,"file":"command-list-item.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/select/command-list-item.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAA;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAA;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AAerD,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,OAAO,GAAG,EAAE,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,SAAS,GACV,EAAE,EAAE;IACH,OAAO,CACL,4BACG,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,MAAM,UAAU,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;YACrD,OAAO,CACL,MAAC,WAAW,IACV,QAAQ,EAAE,QAAQ,EAElB,QAAQ,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,EAChC,KAAK,EAAE,GAAG,CAAC,KAAK,EAChB,QAAQ,EAAE,GAAG,EAAE;oBACb,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;wBAClB,YAAY,CAAC,GAAG,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SAAS,EAAC,QAAQ,YACpB,UAAU,IAAI,KAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAC,iCAAiC,GAAG,GAC1F,CACP,KA/DI,YAAY,GAAG,CAAC,KAAK,EAAE,CAgEhB,CACf,CAAA;QACH,CAAC,CAAC,GACD,CACJ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -26,7 +26,7 @@ baseValue, viewMode = 'edition', diffMode, ...props }, ref) => {
|
|
|
26
26
|
sharedValueTransformers.trimOnEnter(!!trim),
|
|
27
27
|
], [trim, lowercase, uppercase]);
|
|
28
28
|
if (viewMode === 'edition') {
|
|
29
|
-
return (_jsxs(FormGroup, { children: [label && (_jsx(FormLabel, { htmlFor: id, required: props.required, disabled: props.disabled, hasError: !!errors?.length, children: label })), _jsx(ValueTransformer, { transformers: transformers, children: _jsx(Input, { id: id, value: value, defaultValue: defaultValue, onChange: onChange, pattern: pattern?.toString(), autoComplete: autoCompleteValue, ...props, ref: ref }) }), typeof maxLength === 'number' && maxLength > 0 && (_jsx("div", { className: cn('mt-[-6px] flex justify-end', hasContentBelow && '-mb-1'), children: _jsx(CharacterCounter, { maxLength: maxLength, value: value ?? '' }) })), description && _jsx(FormDescription, { children: description }), warnings && _jsx(FormMessageList, { messages: warnings, type: "warning" }), errors && _jsx(FormMessageList, { messages: errors, type: "error" })] }));
|
|
29
|
+
return (_jsxs(FormGroup, { children: [label && (_jsx(FormLabel, { htmlFor: id, required: props.required, disabled: props.disabled, hasError: !!errors?.length, children: label })), _jsx(ValueTransformer, { transformers: transformers, children: _jsx(Input, { id: id, value: value, defaultValue: defaultValue, onChange: onChange, pattern: pattern?.toString(), autoComplete: autoCompleteValue, ...props, ref: ref }) }), typeof maxLength === 'number' && maxLength > 0 && (_jsx("div", { "data-type": "character-counter", className: cn('mt-[-6px] flex justify-end', hasContentBelow && '-mb-1'), children: _jsx(CharacterCounter, { maxLength: maxLength, value: value ?? '' }) })), description && _jsx(FormDescription, { children: description }), warnings && _jsx(FormMessageList, { messages: warnings, type: "warning" }), errors && _jsx(FormMessageList, { messages: errors, type: "error" })] }));
|
|
30
30
|
}
|
|
31
31
|
// Diff mode
|
|
32
32
|
return (_jsx(TextInputDiff, { value: value ?? defaultValue ?? '', viewMode: viewMode, diffMode: diffMode, baseValue: baseValue, label: label, required: props.required, "data-testid": "text-input-diff" }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-input.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/text-input/text-input.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,gEAAgE,CAAA;AAChG,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAA;AACtG,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAA;AACpG,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAA;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAA;AACxF,OAAO,gBAEN,MAAM,iFAAiF,CAAA;AAExF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAA;AAC9F,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,aAAa,MAAM,sBAAsB,CAAA;AAchD,MAAM,SAAS,GAAG,UAAU,CAC1B,CACE,EACE,KAAK,EACL,WAAW,EACX,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,QAAQ;AACR,YAAY;AACZ,OAAO,EACP,IAAI,EACJ,SAAS,EACT,SAAS,EACT,SAAS,EACT,YAAY;AACZ,mBAAmB;AACnB,SAAS,EACT,QAAQ,GAAG,SAAS,EACpB,QAAQ,EACR,GAAG,KAAK,EACT,EACD,GAAG,EACH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,EACZ,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAC5B,YAAY,EAAE,iBAAiB,KAC3B,KAAK,EACT,GAAG,EAAE,GAAG,GACR,GACe,EAClB,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,GAAG,CAAC,IAAI,CACjD,
|
|
1
|
+
{"version":3,"file":"text-input.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/text-input/text-input.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,gEAAgE,CAAA;AAChG,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAA;AACtG,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAA;AACpG,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAA;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAA;AACxF,OAAO,gBAEN,MAAM,iFAAiF,CAAA;AAExF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAA;AAC9F,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,aAAa,MAAM,sBAAsB,CAAA;AAchD,MAAM,SAAS,GAAG,UAAU,CAC1B,CACE,EACE,KAAK,EACL,WAAW,EACX,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,QAAQ;AACR,YAAY;AACZ,OAAO,EACP,IAAI,EACJ,SAAS,EACT,SAAS,EACT,SAAS,EACT,YAAY;AACZ,mBAAmB;AACnB,SAAS,EACT,QAAQ,GAAG,SAAS,EACpB,QAAQ,EACR,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,WAAW,GAAG,KAAK,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BD,QAAA,MAAM,QAAQ,2FAkLb,CAAA;AAID,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,CAAA"}
|
|
@@ -23,7 +23,7 @@ const textareaBaseStyles = cn(
|
|
|
23
23
|
'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-gray-900 focus-visible:ring-offset-0 focus-visible:ring-offset-white', 'dark:focus-visible:ring-charcoal-300 dark:focus-visible:ring-offset-charcoal-900 dark:focus:bg-charcoal-900 focus:bg-gray-50',
|
|
24
24
|
// Disabled state
|
|
25
25
|
'disabled:cursor-not-allowed', 'disabled:border-gray-300 disabled:bg-gray-50 disabled:text-gray-700', 'disabled:dark:border-charcoal-800 disabled:dark:bg-charcoal-900 disabled:dark:text-gray-300');
|
|
26
|
-
const Textarea = React.forwardRef(({ autoComplete, autoExpand, multiline = true, className, defaultValue, description, errors, id: propId, label, lowercase, maxLength, minLength, name, onChange, placeholder, required, rows = 3, trim, uppercase, value, warnings, viewMode = 'edition', diffMode = 'words', baseValue, ...props }, ref) => {
|
|
26
|
+
const Textarea = React.forwardRef(({ autoComplete, autoExpand, multiline = true, className, defaultValue, description, errors, id: propId, label, lowercase, maxLength, minLength, name, onChange, onKeyDown, placeholder, required, rows = 3, trim, uppercase, value, warnings, viewMode = 'edition', diffMode = 'words', baseValue, ...props }, ref) => {
|
|
27
27
|
const autoCompleteValue = autoComplete === undefined ? undefined : autoComplete ? 'on' : 'off';
|
|
28
28
|
const hasError = errors && errors.length > 0;
|
|
29
29
|
const hasContentBelow = !!description || (Array.isArray(warnings) && warnings.length > 0) || (Array.isArray(errors) && errors.length > 0);
|
|
@@ -50,7 +50,7 @@ const Textarea = React.forwardRef(({ autoComplete, autoExpand, multiline = true,
|
|
|
50
50
|
useResizeObserver({
|
|
51
51
|
ref: textareaRef,
|
|
52
52
|
onResize: () => {
|
|
53
|
-
if (
|
|
53
|
+
if (autoExpand) {
|
|
54
54
|
adjustHeight();
|
|
55
55
|
}
|
|
56
56
|
},
|
|
@@ -62,13 +62,23 @@ const Textarea = React.forwardRef(({ autoComplete, autoExpand, multiline = true,
|
|
|
62
62
|
e.preventDefault();
|
|
63
63
|
}
|
|
64
64
|
// Call the original onKeyDown
|
|
65
|
-
|
|
65
|
+
onKeyDown?.(e);
|
|
66
|
+
};
|
|
67
|
+
const handleOnChange = (e) => {
|
|
68
|
+
if (autoExpand) {
|
|
69
|
+
adjustHeight();
|
|
70
|
+
}
|
|
71
|
+
// Call the original onChange
|
|
72
|
+
onChange?.(e);
|
|
66
73
|
};
|
|
67
74
|
useEffect(() => {
|
|
68
|
-
if (
|
|
75
|
+
if (autoExpand) {
|
|
69
76
|
adjustHeight();
|
|
70
77
|
}
|
|
71
|
-
|
|
78
|
+
else if (textareaRef.current) {
|
|
79
|
+
textareaRef.current.style.height = '';
|
|
80
|
+
}
|
|
81
|
+
}, [autoExpand, multiline, rows, value]);
|
|
72
82
|
const transformers = useMemo(() => [
|
|
73
83
|
sharedValueTransformers.trimOnBlur(!!trim),
|
|
74
84
|
sharedValueTransformers.lowercaseOnChange(!!lowercase),
|
|
@@ -93,7 +103,7 @@ const Textarea = React.forwardRef(({ autoComplete, autoExpand, multiline = true,
|
|
|
93
103
|
'scrollbar-thumb-gray-300 hover:scrollbar-thumb-gray-300',
|
|
94
104
|
'dark:scrollbar-thumb-charcoal-700 dark:hover:scrollbar-thumb-charcoal-700',
|
|
95
105
|
'scrollbar-thumb-rounded-md',
|
|
96
|
-
], className), ref: mergedRef, id: id, name: name, value: value, defaultValue: defaultValue, minLength: minLength, placeholder: placeholder, rows: multiline ? rows : 1, onChange:
|
|
106
|
+
], className), ref: mergedRef, id: id, name: name, value: value, defaultValue: defaultValue, minLength: minLength, placeholder: placeholder, rows: multiline ? rows : 1, onChange: handleOnChange, onKeyDown: handleKeyDown, ...props }) }), typeof maxLength === 'number' && maxLength > 0 && (_jsx("div", { className: cn('mt-0.5 flex justify-end', hasContentBelow && '-mb-1'), children: _jsx(CharacterCounter, { maxLength: maxLength, value: value ?? '' }) }))] }), description && _jsx(FormDescription, { children: description }), warnings && _jsx(FormMessageList, { messages: warnings, type: "warning" }), errors && _jsx(FormMessageList, { messages: errors, type: "error" })] }));
|
|
97
107
|
}
|
|
98
108
|
return (_jsx(SplittedTextareaDiff, { label: label, value: value ?? defaultValue ?? '', viewMode: viewMode, diffMode: diffMode, baseValue: baseValue, multiline: multiline, rows: rows, "data-testid": "textarea-diff" }));
|
|
99
109
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/textarea/textarea.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAA;AAC9F,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AACrD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAA;AACtG,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAA;AACpG,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAA;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAA;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,gEAAgE,CAAA;AAChG,OAAO,gBAEN,MAAM,qEAAqE,CAAA;AAG5E,OAAO,oBAAoB,MAAM,0CAA0C,CAAA;AAiB3E,MAAM,kBAAkB,GAAG,EAAE;AAC3B,cAAc;AACd,8FAA8F;AAC9F,sBAAsB;AACtB,+EAA+E;AAC/E,UAAU;AACV,eAAe;AACf,cAAc;AACd,oEAAoE;AACpE,eAAe;AACf,yIAAyI,EACzI,8HAA8H;AAC9H,iBAAiB;AACjB,6BAA6B,EAC7B,qEAAqE,EACrE,6FAA6F,CA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A;QACX,CAAC;aAAM,IAAI,GAAG,EAAE,CAAC;YACf,GAAG,CAAC,OAAO,GAAG,IAAI,CAAA;QACpB,CAAC;IACH,CAAC,CAAA;IAED,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;YACxB,kCAAkC;YAClC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAA;YACzC,iDAAiD;YACjD,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,YAAY,IAAI,CAAA;QAC5E,CAAC;IACH,CAAC,CAAA;IAED,iBAAiB,CAAC;QAChB,GAAG,EAAE,WAAW;QAChB,QAAQ,EAAE,GAAG,EAAE;YACb,IAAI,
|
|
1
|
+
{"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/textarea/textarea.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAA;AAC9F,OAAO,EAAE,EAAE,EAAE,MAAM,kCAAkC,CAAA;AACrD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAA;AACtG,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAA;AACpG,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAA;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,8DAA8D,CAAA;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,gEAAgE,CAAA;AAChG,OAAO,gBAEN,MAAM,qEAAqE,CAAA;AAG5E,OAAO,oBAAoB,MAAM,0CAA0C,CAAA;AAiB3E,MAAM,kBAAkB,GAAG,EAAE;AAC3B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ACE,eAAe,GAC3B,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAED,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAA;AAEjC,OAAO,EAAE,QAAQ,EAAsB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookOpenText.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/BookOpenText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC,QAAA,MAAM,YAAY;YAAW,KAAK;;CAYjC,CAAA;AAID,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const BookOpenText = (props) => {
|
|
3
|
+
return (_jsx("svg", { ...props, viewBox: "0 0 256 256", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M128 74.6667V224M128 74.6667C128 63.3508 123.505 52.4983 115.503 44.4968C107.502 36.4952 96.6494 32 85.3335 32H32.0002C29.1712 32 26.4581 33.1238 24.4577 35.1242C22.4573 37.1246 21.3335 39.8377 21.3335 42.6667V181.333C21.3335 184.162 22.4573 186.875 24.4577 188.876C26.4581 190.876 29.1712 192 32.0002 192H96.0002C104.487 192 112.626 195.371 118.628 201.373C124.629 207.374 128 215.513 128 224M128 74.6667C128 63.3508 132.495 52.4983 140.497 44.4968C148.498 36.4952 159.351 32 170.667 32H224C226.829 32 229.542 33.1238 231.543 35.1242C233.543 37.1246 234.667 39.8377 234.667 42.6667V181.333C234.667 184.162 233.543 186.875 231.543 188.876C229.542 190.876 226.829 192 224 192H160C151.513 192 143.374 195.371 137.373 201.373C131.372 207.374 128 215.513 128 224M170.667 128H192M170.667 85.3333H192M64.0002 128H85.3335M64.0002 85.3333H85.3335", stroke: "currentColor", strokeWidth: "21.3333", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
4
|
+
};
|
|
5
|
+
BookOpenText.displayName = 'BookOpenText';
|
|
6
|
+
export default BookOpenText;
|
|
7
|
+
//# sourceMappingURL=BookOpenText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BookOpenText.js","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/BookOpenText.tsx"],"names":[],"mappings":";AAEA,MAAM,YAAY,GAAG,CAAC,KAAY,EAAE,EAAE;IACpC,OAAO,CACL,iBAAS,KAAK,EAAE,OAAO,EAAC,aAAa,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,YAClF,eACE,CAAC,EAAC,w0BAAw0B,EAC10B,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,SAAS,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,GACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,YAAY,CAAC,WAAW,GAAG,cAAc,CAAA;AAEzC,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrokenImage.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/BrokenImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC,QAAA,MAAM,WAAW;YAAW,KAAK;;CAkBhC,CAAA;AAID,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const BrokenImage = (props) => {
|
|
3
|
+
return (_jsxs("svg", { ...props, viewBox: "0 0 128 128", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M117.333 101.333C117.333 110.17 110.17 117.333 101.333 117.333H29.667L91.5205 55.4785C94.3205 56.1103 96.9198 57.4873 99.0273 59.4922L99.3115 59.7695L99.3125 59.7705L106.667 67.124V40.333L115.601 31.3994C116.257 30.7428 116.834 30.0368 117.333 29.2939V101.333ZM88 65.752C86.5858 65.752 85.2296 66.3136 84.2295 67.3135L84.2285 67.3125L44.876 106.667H101.333C104.279 106.667 106.667 104.279 106.667 101.333V82.209L91.7705 67.3125C90.7704 66.3129 89.414 65.752 88 65.752ZM96.832 10.667C96.4772 10.9582 96.1331 11.2692 95.8018 11.6006L86.0693 21.333H26.667C23.7215 21.333 21.333 23.7215 21.333 26.667V86.0693L10.667 96.7354V26.667C10.667 17.8304 17.8304 10.667 26.667 10.667H96.832ZM48 32C55.4285 32 61.6736 37.0627 63.4756 43.9258L43.9258 63.4756C37.0627 61.6736 32 55.4285 32 48C32 39.1634 39.1634 32 48 32ZM48 42.667C45.0545 42.667 42.667 45.0545 42.667 48C42.667 50.9455 45.0545 53.333 48 53.333C50.9455 53.333 53.333 50.9455 53.333 48C53.333 45.0545 50.9455 42.667 48 42.667Z", fill: "currentColor" }), _jsx("line", { x1: "12.5", y1: "115.015", x2: "116.015", y2: "11.5", stroke: "currentColor", strokeWidth: "12", strokeLinecap: "round" })] }));
|
|
4
|
+
};
|
|
5
|
+
BrokenImage.displayName = 'BrokenImage';
|
|
6
|
+
export default BrokenImage;
|
|
7
|
+
//# sourceMappingURL=BrokenImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrokenImage.js","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/BrokenImage.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,GAAG,CAAC,KAAY,EAAE,EAAE;IACnC,OAAO,CACL,kBAAS,KAAK,EAAE,OAAO,EAAC,aAAa,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,aAClF,eACE,CAAC,EAAC,k9BAAk9B,EACp9B,IAAI,EAAC,cAAc,GACnB,EACF,eACE,EAAE,EAAC,MAAM,EACT,EAAE,EAAC,SAAS,EACZ,EAAE,EAAC,SAAS,EACZ,EAAE,EAAC,MAAM,EACT,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,IAAI,EAChB,aAAa,EAAC,OAAO,GACrB,IACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,WAAW,CAAC,WAAW,GAAG,aAAa,CAAA;AAEvC,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentUnavailableIcon.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/ContentUnavailableIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC,QAAA,MAAM,sBAAsB;YAAW,KAAK;;CAU3C,CAAA;AAID,eAAe,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
const ContentUnavailableIcon = (props) => {
|
|
3
|
+
return (_jsxs("svg", { ...props, viewBox: "0 0 256 256", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M244.353 36.2793C244.996 38.3282 245.334 40.48 245.334 42.667V181.333C245.334 186.991 243.086 192.417 239.086 196.418C235.085 200.419 229.659 202.667 224.001 202.667H160.001C154.343 202.667 148.917 204.915 144.916 208.915C140.915 212.916 138.667 218.342 138.667 224C138.667 229.891 133.892 234.667 128.001 234.667C122.294 234.667 117.633 230.185 117.348 224.549L117.334 224L117.327 223.471C117.192 218.005 114.962 212.791 111.086 208.915C107.085 204.914 101.659 202.667 96.001 202.667H80.333L101.331 181.668C106.989 182.381 112.428 184.22 117.334 187.053V165.666L138.667 144.333V187.053C145.098 183.34 152.446 181.333 160.001 181.333H224.001V58.999L238.908 44.0918L239.395 43.5928C241.493 41.3853 243.144 38.9089 244.353 36.2793ZM85.334 21.333C99.4785 21.3331 113.044 26.9525 123.046 36.9541C124.841 38.749 126.495 40.6598 128 42.667C129.506 40.6595 131.16 38.7492 132.955 36.9541C142.957 26.9525 156.522 21.3331 170.667 21.333H185.3L163.043 43.5889C157.41 44.9707 152.209 47.87 148.04 52.0391C143.87 56.2086 140.97 61.4105 139.588 67.0439L117.334 89.2988V74.667C117.334 66.1802 113.962 58.0402 107.961 52.0391C101.96 46.0382 93.8206 42.6671 85.334 42.667H32.001V174.632L13.9414 192.69C11.8187 189.315 10.667 185.384 10.667 181.333V42.667C10.667 37.009 12.9152 31.5828 16.916 27.582C20.9168 23.5814 26.3431 21.333 32.001 21.333H85.334ZM85.334 117.333C86.5254 117.333 87.6703 117.531 88.7402 117.892L67.9658 138.667H64.001C58.1099 138.667 53.334 133.891 53.334 128C53.334 122.109 58.1099 117.333 64.001 117.333H85.334ZM192.55 117.348C198.185 117.634 202.667 122.293 202.667 128C202.667 133.707 198.185 138.366 192.55 138.652L192.001 138.667H170.667C164.776 138.667 160.001 133.891 160.001 128C160.001 122.109 164.776 117.333 170.667 117.333H192.001L192.55 117.348ZM85.334 74.667C91.2247 74.6673 96.0008 79.4423 96.001 85.333C96.001 91.2239 91.2248 95.9997 85.334 96H64.001C58.1099 96 53.334 91.224 53.334 85.333C53.3342 79.4421 58.11 74.667 64.001 74.667H85.334ZM201.824 81.1748C202.366 82.4527 202.667 83.8576 202.667 85.333C202.667 91.2238 197.892 95.9996 192.001 96H187L201.824 81.1748Z", fill: "currentColor" }), _jsx("line", { x1: "25", y1: "221.029", x2: "231.029", y2: "15", stroke: "currentColor", strokeWidth: "24", strokeLinecap: "round" })] }));
|
|
4
|
+
};
|
|
5
|
+
ContentUnavailableIcon.displayName = 'ContentUnavailableIcon';
|
|
6
|
+
export default ContentUnavailableIcon;
|
|
7
|
+
//# sourceMappingURL=ContentUnavailableIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentUnavailableIcon.js","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/ContentUnavailableIcon.tsx"],"names":[],"mappings":";AAEA,MAAM,sBAAsB,GAAG,CAAC,KAAY,EAAE,EAAE;IAC9C,OAAO,CACL,kBAAS,KAAK,EAAE,OAAO,EAAC,aAAa,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,aAClF,eACE,CAAC,EAAC,0iEAA0iE,EAC5iE,IAAI,EAAC,cAAc,GACnB,EACF,eAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,IAAI,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,IAAI,EAAC,aAAa,EAAC,OAAO,GAAG,IAC3G,CACP,CAAA;AACH,CAAC,CAAA;AAED,sBAAsB,CAAC,WAAW,GAAG,wBAAwB,CAAA;AAE7D,eAAe,sBAAsB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC,QAAA,MAAM,KAAK;YAAW,KAAK;;
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAEvC,QAAA,MAAM,KAAK;YAAW,KAAK;;CAY1B,CAAA;AAID,eAAe,KAAK,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
const Image = (props) => {
|
|
3
|
-
return (
|
|
3
|
+
return (_jsx("svg", { ...props, viewBox: "0 0 128 128", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M112 80L95.5413 63.5413C93.541 61.5416 90.8284 60.4183 88 60.4183C85.1716 60.4183 82.459 61.5416 80.4587 63.5413L32 112M26.6667 16H101.333C107.224 16 112 20.7756 112 26.6667V101.333C112 107.224 107.224 112 101.333 112H26.6667C20.7756 112 16 107.224 16 101.333V26.6667C16 20.7756 20.7756 16 26.6667 16ZM58.6667 48C58.6667 53.891 53.891 58.6667 48 58.6667C42.109 58.6667 37.3333 53.891 37.3333 48C37.3333 42.109 42.109 37.3333 48 37.3333C53.891 37.3333 58.6667 42.109 58.6667 48Z", stroke: "currentColor", strokeWidth: "10.6667", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
4
4
|
};
|
|
5
5
|
Image.displayName = 'Image';
|
|
6
6
|
export default Image;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/Image.tsx"],"names":[],"mappings":";AAEA,MAAM,KAAK,GAAG,CAAC,KAAY,EAAE,EAAE;IAC7B,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"Image.js","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/Image.tsx"],"names":[],"mappings":";AAEA,MAAM,KAAK,GAAG,CAAC,KAAY,EAAE,EAAE;IAC7B,OAAO,CACL,iBAAS,KAAK,EAAE,OAAO,EAAC,aAAa,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B,YAClF,eACE,CAAC,EAAC,+dAA+d,EACje,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,SAAS,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,GACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,KAAK,CAAC,WAAW,GAAG,OAAO,CAAA;AAE3B,eAAe,KAAK,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Props } from './types.js';
|
|
2
|
-
export declare const iconNames: readonly ["ArrowCouterclockwise", "ArrowDownUp", "ArrowFilledRight", "ArrowLeft", "ArrowUp", "BarChart", "BaseArrowLeft", "BaseArrowRight", "Braces", "Branch", "BrickGlobe", "Briefcase", "Calendar", "CalendarTime", "Caret", "CaretDown", "CaretLeft", "CaretRight", "CaretSort", "Check", "CheckCircle", "CheckCircleFill", "Checkmark", "ChevronDown", "Circle", "CircleInfo", "Clock", "ClockFill", "ClockHistory", "CloudSlash", "Collapse", "Compass", "Connect", "ConnectSmall", "Copy", "Created", "CrossCircle", "Danger", "DescendenceModified", "Disconnect", "Discord", "DownloadFile", "Drive", "Duplicated", "Edit", "Ellipsis", "Error", "Ethscan", "Exclamation", "ExportCsv", "ExportJson", "ExportPdf", "ExportUbl", "ExportZip", "File", "FileUpload", "FilesEarmark", "FolderClose", "FolderOpen", "FolderPlus", "Forum", "Gear", "Github", "Globe", "GlobeWww", "Hdd", "Hide", "History", "InfoSquare", "Link", "Linkedin", "Lock", "M", "Modified", "Moved", "Npm", "PackageManager", "Pencil", "People", "PeopleFill", "Person", "Pin", "PinFilled", "PlaceholderImage", "Plus", "PlusCircle", "PlusSquare", "PowerhouseLogoSmall", "Project", "QuestionSquare", "RedoArrow", "Reload", "Removed", "Renown", "RenownHover", "RenownLight", "Ring", "Save", "Search", "Server", "Settings", "Show", "Synced", "Syncing", "Tabler", "Timeline", "TimelineCaret", "Trash", "TrashFill", "TreeViewSlash", "TriangleDown", "Tube", "VariantArrowLeft", "VerticalDots", "WarningFill", "XTwitter", "Xmark", "XmarkLight", "Youtube"];
|
|
2
|
+
export declare const iconNames: readonly ["ArrowCouterclockwise", "ArrowDownUp", "ArrowFilledRight", "ArrowLeft", "ArrowUp", "BarChart", "BaseArrowLeft", "BaseArrowRight", "BookOpenText", "Braces", "Branch", "BrickGlobe", "Briefcase", "BrokenImage", "Calendar", "CalendarTime", "Caret", "CaretDown", "CaretLeft", "CaretRight", "CaretSort", "Check", "CheckCircle", "CheckCircleFill", "Checkmark", "ChevronDown", "Circle", "CircleInfo", "Clock", "ClockFill", "ClockHistory", "CloudSlash", "Collapse", "Compass", "Connect", "ConnectSmall", "ContentUnavailableIcon", "Copy", "Created", "CrossCircle", "Danger", "DescendenceModified", "Disconnect", "Discord", "DownloadFile", "Drive", "Duplicated", "Edit", "Ellipsis", "Error", "Ethscan", "Exclamation", "ExportCsv", "ExportJson", "ExportPdf", "ExportUbl", "ExportZip", "File", "FileUpload", "FilesEarmark", "FolderClose", "FolderOpen", "FolderPlus", "Forum", "Gear", "Github", "Globe", "GlobeWww", "Hdd", "Hide", "History", "Image", "InfoSquare", "Link", "Linkedin", "Lock", "M", "Modified", "Moved", "Npm", "PackageManager", "Pencil", "People", "PeopleFill", "Person", "Pin", "PinFilled", "PlaceholderImage", "Plus", "PlusCircle", "PlusSquare", "PowerhouseLogoSmall", "Project", "QuestionSquare", "RedoArrow", "Reload", "Removed", "Renown", "RenownHover", "RenownLight", "Ring", "Save", "Search", "Server", "Settings", "Show", "Synced", "Syncing", "Tabler", "Timeline", "TimelineCaret", "Trash", "TrashFill", "TreeViewSlash", "TriangleDown", "Tube", "VariantArrowLeft", "VerticalDots", "WarningFill", "XTwitter", "Xmark", "XmarkLight", "Youtube"];
|
|
3
3
|
export type IconName = (typeof iconNames)[number];
|
|
4
4
|
export declare const iconComponents: Record<IconName, (props: Props) => React.JSX.Element>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/icon-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AA8HvC,eAAO,MAAM,SAAS,2hDA4HZ,CAAA;AAEV,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;AACjD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CA4HvE,CAAA"}
|