@instincthub/react-ui 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -3
- package/dist/_virtual/_commonjsHelpers.js +1 -1
- package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/dist/_virtual/index.js +1 -1
- package/dist/_virtual/index2.js +1 -1
- package/dist/_virtual/lodash.js +1 -1
- package/dist/_virtual/react-is.development.js +1 -1
- package/dist/_virtual/react-is.production.min.js +1 -1
- package/dist/node_modules/@tiptap/core/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-character-count/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-character-count/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-highlight/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-highlight/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-history/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-history/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-image/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-image/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-table/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-table/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-table-cell/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-table-cell/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-table-header/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-table-header/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-table-row/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-table-row/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-task-item/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-task-item/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-task-list/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-task-list/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/react/dist/index.js +3 -3
- package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -1
- package/dist/node_modules/attr-accept/dist/es/index.js +1 -1
- package/dist/node_modules/attr-accept/dist/es/index.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +1 -1
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +1 -1
- package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/formatters.js +1 -1
- package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +1 -1
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +1 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +1 -1
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +1 -1
- package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +1 -1
- package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -1
- package/dist/node_modules/date-fns/constants.js +1 -1
- package/dist/node_modules/date-fns/constants.js.map +1 -1
- package/dist/node_modules/date-fns/constructFrom.js +1 -1
- package/dist/node_modules/date-fns/constructFrom.js.map +1 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +1 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -1
- package/dist/node_modules/date-fns/format.js +1 -1
- package/dist/node_modules/date-fns/format.js.map +1 -1
- package/dist/node_modules/date-fns/getDayOfYear.js +1 -1
- package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -1
- package/dist/node_modules/date-fns/getISOWeek.js +1 -1
- package/dist/node_modules/date-fns/getISOWeek.js.map +1 -1
- package/dist/node_modules/date-fns/getISOWeekYear.js +1 -1
- package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/getWeek.js +1 -1
- package/dist/node_modules/date-fns/getWeek.js.map +1 -1
- package/dist/node_modules/date-fns/getWeekYear.js +1 -1
- package/dist/node_modules/date-fns/getWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/isDate.js +1 -1
- package/dist/node_modules/date-fns/isDate.js.map +1 -1
- package/dist/node_modules/date-fns/isValid.js +1 -1
- package/dist/node_modules/date-fns/isValid.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US.js.map +1 -1
- package/dist/node_modules/date-fns/startOfDay.js +1 -1
- package/dist/node_modules/date-fns/startOfDay.js.map +1 -1
- package/dist/node_modules/date-fns/startOfISOWeek.js +1 -1
- package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -1
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +1 -1
- package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/startOfWeek.js +1 -1
- package/dist/node_modules/date-fns/startOfWeek.js.map +1 -1
- package/dist/node_modules/date-fns/startOfWeekYear.js +1 -1
- package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/startOfYear.js +1 -1
- package/dist/node_modules/date-fns/startOfYear.js.map +1 -1
- package/dist/node_modules/date-fns/toDate.js +1 -1
- package/dist/node_modules/date-fns/toDate.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.mjs.js +2 -1
- package/dist/node_modules/dompurify/dist/purify.es.mjs.js.map +1 -1
- package/dist/node_modules/file-selector/dist/es2015/file-selector.js +1 -1
- package/dist/node_modules/file-selector/dist/es2015/file-selector.js.map +1 -1
- package/dist/node_modules/file-selector/dist/es2015/file.js +1 -1
- package/dist/node_modules/file-selector/dist/es2015/file.js.map +1 -1
- package/dist/node_modules/html2canvas/dist/html2canvas.esm.js +2 -1
- package/dist/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -1
- package/dist/node_modules/linkifyjs/dist/linkify.es.js +1 -1
- package/dist/node_modules/linkifyjs/dist/linkify.es.js.map +1 -1
- package/dist/node_modules/lodash/lodash.js +3 -2
- package/dist/node_modules/lodash/lodash.js.map +1 -1
- package/dist/node_modules/marked/lib/marked.esm.js +1 -1
- package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
- package/dist/node_modules/object-assign/index.js +2 -1
- package/dist/node_modules/object-assign/index.js.map +1 -1
- package/dist/node_modules/orderedmap/dist/index.js +1 -1
- package/dist/node_modules/orderedmap/dist/index.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes.js +1 -1
- package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/index.js.map +1 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
- package/dist/node_modules/prop-types/lib/has.js +1 -1
- package/dist/node_modules/prop-types/lib/has.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +2 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +2 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-history/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-model/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-state/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-state/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-tables/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-tables/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-view/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -1
- package/dist/node_modules/react-dropzone/dist/es/index.js +1 -1
- package/dist/node_modules/react-dropzone/dist/es/index.js.map +1 -1
- package/dist/node_modules/react-dropzone/dist/es/utils/index.js +1 -1
- package/dist/node_modules/react-dropzone/dist/es/utils/index.js.map +1 -1
- package/dist/node_modules/rope-sequence/dist/index.js +1 -1
- package/dist/node_modules/rope-sequence/dist/index.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/w3c-keyname/index.js +1 -1
- package/dist/node_modules/w3c-keyname/index.js.map +1 -1
- package/dist/node_modules/xlsx/xlsx.mjs.js +2 -1
- package/dist/node_modules/xlsx/xlsx.mjs.js.map +1 -1
- package/dist/src/components/auth/ClientDetector.js +1 -1
- package/dist/src/components/auth/ClientOnly.js +1 -1
- package/dist/src/components/auth/FromInstinctHub.js +1 -1
- package/dist/src/components/auth/FromInstinctHub.js.map +1 -1
- package/dist/src/components/auth/IsUsernameEmailTaken.js +1 -1
- package/dist/src/components/auth/LoginForm.js +1 -1
- package/dist/src/components/auth/PasswordsMatch.js +1 -1
- package/dist/src/components/auth/ReactClientProviders.js +1 -1
- package/dist/src/components/cursors/Cursor.js +1 -1
- package/dist/src/components/cursors/CursorContext.js +1 -1
- package/dist/src/components/cursors/CursorControlDemo.js +1 -1
- package/dist/src/components/cursors/MagneticButton.js +1 -1
- package/dist/src/components/cursors/index.js +1 -1
- package/dist/src/components/cursors/index.js.map +1 -1
- package/dist/src/components/cursors/useCursorInteraction.js +1 -1
- package/dist/src/components/forms/ActionCallbackDropdown.js +1 -1
- package/dist/src/components/forms/ActionDropdown.js +1 -1
- package/dist/src/components/forms/AnimatedBox.js +1 -1
- package/dist/src/components/forms/CheckBoxes.js +1 -1
- package/dist/src/components/forms/CheckboxesField.js +1 -1
- package/dist/src/components/forms/ChipsInput.js +1 -1
- package/dist/src/components/forms/DateInput.js +1 -1
- package/dist/src/components/forms/DateInputPicker.js +1 -1
- package/dist/src/components/forms/DateTimeInput.js +1 -1
- package/dist/src/components/forms/DownloadAsExcel.js +1 -1
- package/dist/src/components/forms/DropFile.js +1 -1
- package/dist/src/components/forms/EmailList.js +1 -1
- package/dist/src/components/forms/FileField.js +1 -1
- package/dist/src/components/forms/FilterArray.js +1 -1
- package/dist/src/components/forms/FilterBy.js +1 -1
- package/dist/src/components/forms/FilterObjects.js +1 -1
- package/dist/src/components/forms/FormError.js +1 -1
- package/dist/src/components/forms/FormError.js.map +1 -1
- package/dist/src/components/forms/HandleError.js +1 -1
- package/dist/src/components/forms/InputAmount.js +1 -1
- package/dist/src/components/forms/InputNumber.js +1 -1
- package/dist/src/components/forms/InputText.js +1 -1
- package/dist/src/components/forms/InputTextarea.js +1 -1
- package/dist/src/components/forms/Logout.js +1 -1
- package/dist/src/components/forms/MessageDisplay.js +1 -1
- package/dist/src/components/forms/MessageDisplay.js.map +1 -1
- package/dist/src/components/forms/MultipleEmail.js +1 -1
- package/dist/src/components/forms/PageLoading.js +1 -1
- package/dist/src/components/forms/PageLoading.js.map +1 -1
- package/dist/src/components/forms/PasswordField.js +1 -1
- package/dist/src/components/forms/PhoneNumberInput.js +1 -1
- package/dist/src/components/forms/RadioField.js +1 -1
- package/dist/src/components/forms/RadioField.js.map +1 -1
- package/dist/src/components/forms/RadioSimple.js +1 -1
- package/dist/src/components/forms/RadioSimple.js.map +1 -1
- package/dist/src/components/forms/ReactTimeAgo.js +1 -1
- package/dist/src/components/forms/ReadTermsAndCondition.js +1 -1
- package/dist/src/components/forms/SearchField.js +1 -1
- package/dist/src/components/forms/SearchFieldDB.js +1 -1
- package/dist/src/components/forms/SearchObjectsFromDB.js +1 -1
- package/dist/src/components/forms/StepProgressBar.js +1 -1
- package/dist/src/components/forms/StepProgressBar.js.map +1 -1
- package/dist/src/components/forms/SubmitButton.js +1 -1
- package/dist/src/components/forms/TBodyNoData.js +1 -1
- package/dist/src/components/forms/TBodyNoData.js.map +1 -1
- package/dist/src/components/forms/THeadSortBtn.js +1 -1
- package/dist/src/components/forms/THeadSortBtn.js.map +1 -1
- package/dist/src/components/forms/THeadSortList.js +1 -1
- package/dist/src/components/forms/Tables.js +1 -1
- package/dist/src/components/forms/TextArea.js +1 -1
- package/dist/src/components/forms/TextArea.js.map +1 -1
- package/dist/src/components/forms/TextField.js +1 -1
- package/dist/src/components/forms/ToggleButton.js +1 -1
- package/dist/src/components/forms/Tooltip.js +1 -1
- package/dist/src/components/forms/UnsplashRandomImage.js +1 -1
- package/dist/src/components/forms/radio-btn/RadioButton.js +1 -1
- package/dist/src/components/forms/radio-btn/RadioButton.js.map +1 -1
- package/dist/src/components/forms/radio-btn/RadioGroup.js +1 -1
- package/dist/src/components/forms/radio-btn/RadioGroup.js.map +1 -1
- package/dist/src/components/forms/uploads/FileUploader.js +1 -1
- package/dist/src/components/forms/uploads/IhubFileUploader.js +1 -1
- package/dist/src/components/lib/auth/actions.js +1 -1
- package/dist/src/components/lib/auth/dbRequestst.js +1 -1
- package/dist/src/components/lib/auth/dbRequestst.js.map +1 -1
- package/dist/src/components/lib/charts.js +1 -1
- package/dist/src/components/lib/charts.js.map +1 -1
- package/dist/src/components/lib/convertArrayToObject.js +1 -1
- package/dist/src/components/lib/convertArrayToObject.js.map +1 -1
- package/dist/src/components/lib/createSubscription.js +1 -1
- package/dist/src/components/lib/createSubscription.js.map +1 -1
- package/dist/src/components/lib/elementIsVisibleInViewport.js +1 -1
- package/dist/src/components/lib/elementIsVisibleInViewport.js.map +1 -1
- package/dist/src/components/lib/fileToBase64.js +1 -1
- package/dist/src/components/lib/fileToBase64.js.map +1 -1
- package/dist/src/components/lib/formError.js +1 -1
- package/dist/src/components/lib/formError.js.map +1 -1
- package/dist/src/components/lib/format.js +1 -1
- package/dist/src/components/lib/format.js.map +1 -1
- package/dist/src/components/lib/getPriceObjects.js +1 -1
- package/dist/src/components/lib/getPriceObjects.js.map +1 -1
- package/dist/src/components/lib/helpFunction.js +1 -1
- package/dist/src/components/lib/helpFunction.js.map +1 -1
- package/dist/src/components/lib/index.js +1 -1
- package/dist/src/components/lib/index.js.map +1 -1
- package/dist/src/components/lib/json/accounts.js +1 -1
- package/dist/src/components/lib/json/accounts.js.map +1 -1
- package/dist/src/components/lib/json/countryObjects.js +1 -1
- package/dist/src/components/lib/json/countryObjects.js.map +1 -1
- package/dist/src/components/lib/json/unsplashDefaultObject.js +1 -1
- package/dist/src/components/lib/json/unsplashDefaultObject.js.map +1 -1
- package/dist/src/components/lib/loadScript.js +2 -0
- package/dist/src/components/lib/loadScript.js.map +1 -0
- package/dist/src/components/lib/modals/modals.js +1 -1
- package/dist/src/components/lib/modals/modals.js.map +1 -1
- package/dist/src/components/lib/modals/openConfirmDelete.js +1 -1
- package/dist/src/components/lib/modals/openConfirmDelete.js.map +1 -1
- package/dist/src/components/lib/oauth_json.js +1 -1
- package/dist/src/components/lib/oauth_json.js.map +1 -1
- package/dist/src/components/lib/paystack.js +1 -1
- package/dist/src/components/lib/paystack.js.map +1 -1
- package/dist/src/components/lib/permissions.js +1 -1
- package/dist/src/components/lib/permissions.js.map +1 -1
- package/dist/src/components/lib/queryParameters/index.js +1 -1
- package/dist/src/components/lib/queryParameters/index.js.map +1 -1
- package/dist/src/components/lib/redux/index.js +1 -1
- package/dist/src/components/lib/redux/middleware.js +1 -1
- package/dist/src/components/lib/redux/middleware.js.map +1 -1
- package/dist/src/components/lib/redux/rootReducer.js +1 -1
- package/dist/src/components/lib/redux/rootReducer.js.map +1 -1
- package/dist/src/components/lib/redux/slices/authSlice/channelCallbackUrl.js +1 -1
- package/dist/src/components/lib/redux/slices/authSlice/channelCallbackUrl.js.map +1 -1
- package/dist/src/components/lib/redux/slices/authSlice/selectors.js +1 -1
- package/dist/src/components/lib/redux/slices/authSlice/selectors.js.map +1 -1
- package/dist/src/components/lib/redux/slices/channelSlice/activeChannel.js +1 -1
- package/dist/src/components/lib/redux/slices/channelSlice/activeChannel.js.map +1 -1
- package/dist/src/components/lib/redux/slices/channelSlice/channelDetails.js +1 -1
- package/dist/src/components/lib/redux/slices/channelSlice/channelDetails.js.map +1 -1
- package/dist/src/components/lib/redux/slices/channelSlice/channelHandle.js +1 -1
- package/dist/src/components/lib/redux/slices/channelSlice/channelHandle.js.map +1 -1
- package/dist/src/components/lib/redux/slices/channelSlice/instructorChannelList.js +1 -1
- package/dist/src/components/lib/redux/slices/channelSlice/instructorChannelList.js.map +1 -1
- package/dist/src/components/lib/redux/slices/channelSlice/selectors.js +1 -1
- package/dist/src/components/lib/redux/slices/channelSlice/selectors.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseDetails.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseDetails.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseFilterDuration.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseFilterDuration.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseFilterLevel.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseFilterLevel.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseFilterSubject.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseFilterSubject.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseModules.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseModules.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseOverview.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseOverview.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseSearch.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/courseSearch.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/selectedCourses.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/selectedCourses.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/selectors.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/selectors.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/stepContent.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/stepContent.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/stepQuestions.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/stepQuestions.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/videoTimestamp.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/videoTimestamp.js.map +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/videoTimestampObject.js +1 -1
- package/dist/src/components/lib/redux/slices/courseSlice/videoTimestampObject.js.map +1 -1
- package/dist/src/components/lib/redux/slices/generics/arraySlice.js +1 -1
- package/dist/src/components/lib/redux/slices/generics/arraySlice.js.map +1 -1
- package/dist/src/components/lib/redux/slices/generics/objectSlice.js +1 -1
- package/dist/src/components/lib/redux/slices/generics/objectSlice.js.map +1 -1
- package/dist/src/components/lib/redux/slices/generics/selectors.js +1 -1
- package/dist/src/components/lib/redux/slices/generics/selectors.js.map +1 -1
- package/dist/src/components/lib/redux/slices/messageSlice/feedbackToggle.js +1 -1
- package/dist/src/components/lib/redux/slices/messageSlice/feedbackToggle.js.map +1 -1
- package/dist/src/components/lib/redux/slices/messageSlice/selectors.js +1 -1
- package/dist/src/components/lib/redux/slices/messageSlice/selectors.js.map +1 -1
- package/dist/src/components/lib/redux/slices/messageSlice/statusMessageState.js +1 -1
- package/dist/src/components/lib/redux/slices/messageSlice/statusMessageState.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/IPAdress.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/IPAdress.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/appToggle.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/appToggle.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/confirmDelete.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/confirmDelete.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/courseNextStep.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/courseNextStep.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/currentPromo.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/currentPromo.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/searchValue.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/searchValue.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/selectors.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/selectors.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/settingsToggle.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/settingsToggle.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/toggleCreateCohort.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/toggleCreateCohort.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/toggleCreateCourse.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/toggleCreateCourse.js.map +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/userLocation.js +1 -1
- package/dist/src/components/lib/redux/slices/navigationSlice/userLocation.js.map +1 -1
- package/dist/src/components/lib/redux/slices/utilsSlice/screenSize.js +1 -1
- package/dist/src/components/lib/redux/slices/utilsSlice/screenSize.js.map +1 -1
- package/dist/src/components/lib/redux/slices/utilsSlice/selectors.js +1 -1
- package/dist/src/components/lib/redux/slices/utilsSlice/selectors.js.map +1 -1
- package/dist/src/components/lib/redux/store.js +1 -1
- package/dist/src/components/lib/redux/store.js.map +1 -1
- package/dist/src/components/lib/roles.js +1 -1
- package/dist/src/components/lib/roles.js.map +1 -1
- package/dist/src/components/lib/utils.js +1 -1
- package/dist/src/components/lib/utils.js.map +1 -1
- package/dist/src/components/navbar/Breadcrumb.js +1 -1
- package/dist/src/components/navbar/ChannelListAvatar.js +1 -1
- package/dist/src/components/navbar/MenuDropdown.js +1 -1
- package/dist/src/components/navbar/ResponsiveNavbar.js +1 -1
- package/dist/src/components/navbar/SideNavbar.js +1 -1
- package/dist/src/components/status/CopyToClipBoard.js +1 -1
- package/dist/src/components/status/DeleteConfirmationModal.js +1 -1
- package/dist/src/components/status/Error500.js +1 -1
- package/dist/src/components/status/Error500.js.map +1 -1
- package/dist/src/components/status/ErrorState.js +1 -1
- package/dist/src/components/status/ErrorState.js.map +1 -1
- package/dist/src/components/status/ModalExamples.js +1 -1
- package/dist/src/components/status/MultiPurposeModal.js +1 -1
- package/dist/src/components/status/NotFound.js +1 -1
- package/dist/src/components/status/ReactTimeTracker.js +1 -1
- package/dist/src/components/status/SessionHandleProvider.js +1 -1
- package/dist/src/components/status/Unauthorized.js +1 -1
- package/dist/src/components/status/Unauthorized.js.map +1 -1
- package/dist/src/components/tabs/TabContent.js +1 -1
- package/dist/src/components/tabs/TabContent.js.map +1 -1
- package/dist/src/components/tabs/Tabs.js +1 -1
- package/dist/src/components/tabs/VerticalTabs.js +1 -1
- package/dist/src/components/theme/ChangeStyleVariable.js +1 -1
- package/dist/src/components/theme/DarkModeProvider.js +1 -1
- package/dist/src/components/theme/LoadingAnimate.js +1 -1
- package/dist/src/components/theme/LoadingAnimate.js.map +1 -1
- package/dist/src/components/theme/SessionProviders.js +1 -1
- package/dist/src/components/theme/signout/SessionExpiresLogout.js +1 -1
- package/dist/src/components/theme/signout/SignOutSession.js +1 -1
- package/dist/src/components/ui/Action.js +1 -1
- package/dist/src/components/ui/Action.js.map +1 -1
- package/dist/src/components/ui/Badge.js +1 -1
- package/dist/src/components/ui/Badge.js.map +1 -1
- package/dist/src/components/ui/ColorPicker.js +1 -1
- package/dist/src/components/ui/ComponentLists.js +1 -1
- package/dist/src/components/ui/ComponentLists.js.map +1 -1
- package/dist/src/components/ui/Dropdown.js +1 -1
- package/dist/src/components/ui/OrDivider.js +1 -1
- package/dist/src/components/ui/cards/Card.js +1 -1
- package/dist/src/components/ui/cards/CardGrid.js +1 -1
- package/dist/src/components/ui/cards/CardGrid.js.map +1 -1
- package/dist/src/components/ui/cards/CardList.js +1 -1
- package/dist/src/components/ui/cards/CardList.js.map +1 -1
- package/dist/src/components/ui/cards/FeatureCard.js +1 -1
- package/dist/src/components/ui/cards/FeatureCard.js.map +1 -1
- package/dist/src/components/ui/cards/HorizontalCard.js +1 -1
- package/dist/src/components/ui/cards/HorizontalCard.js.map +1 -1
- package/dist/src/components/ui/cards/MediaCard.js +1 -1
- package/dist/src/components/ui/cards/MediaCard.js.map +1 -1
- package/dist/src/components/ui/cards/PricingCard.js +1 -1
- package/dist/src/components/ui/cards/PricingCard.js.map +1 -1
- package/dist/src/components/ui/cards/ProfileCard.js +1 -1
- package/dist/src/components/ui/cards/ProfileCard.js.map +1 -1
- package/dist/src/components/ui/charts/ChartConfigurator.js +1 -1
- package/dist/src/components/ui/charts/InstinctHubChart.js +1 -1
- package/dist/src/components/ui/charts/InstinctHubChartDashboard.js +1 -1
- package/dist/src/components/ui/create-button/CreateButton.js +1 -1
- package/dist/src/components/ui/create-button/CreateButtonExample.js +1 -1
- package/dist/src/components/ui/create-button/CreateButtonExample.js.map +1 -1
- package/dist/src/components/ui/dialogs/Dialog.js +1 -1
- package/dist/src/components/ui/editor/CustomTextEditor.js +1 -1
- package/dist/src/components/ui/editor/MenuBar.js +1 -1
- package/dist/src/components/ui/images/RandomGradientImage.js +1 -1
- package/dist/src/components/ui/images/RandomGradientImage.js.map +1 -1
- package/dist/src/components/ui/pagination/Pagination.js +1 -1
- package/dist/src/components/ui/pagination/PaginationDemo.js +1 -1
- package/dist/src/components/ui/tables/IHubTable.js +1 -1
- package/dist/src/components/ui/tables/IHubTableServer.js +1 -1
- package/dist/src/components/ui/viewer/CodeDisplay.js +1 -1
- package/dist/src/components/ui/viewer/ContentViewOrEdit.js +1 -1
- package/dist/src/components/ui/viewer/ContentViewer.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/ssr.js +1 -1
- package/dist/src/types/components/auth/IsUsernameEmailTaken.d.ts +13 -0
- package/dist/src/types/components/forms/DateInput.d.ts +3 -4
- package/dist/src/types/components/forms/FilterObjects.d.ts +1 -1
- package/dist/src/types/components/forms/uploads/IhubFileUploader.d.ts +1 -1
- package/dist/src/types/components/lib/index.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/channelSlice/channelDetails.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/channelSlice/instructorChannelList.d.ts +3 -2
- package/dist/src/types/components/lib/redux/slices/courseSlice/courseDetails.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/courseSlice/courseFilterDuration.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/courseSlice/courseFilterLevel.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/courseSlice/courseFilterSubject.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/courseSlice/courseModules.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/courseSlice/courseOverview.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/courseSlice/courseSearch.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/courseSlice/stepContent.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/courseSlice/stepQuestions.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/courseSlice/videoTimestamp.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/courseSlice/videoTimestampObject.d.ts +1 -1
- package/dist/src/types/components/lib/redux/slices/navigationSlice/IPAdress.d.ts +1 -1
- package/dist/src/types/components/status/ReactTimeTracker.d.ts +1 -1
- package/dist/src/types/components/tabs/Tabs.d.ts +1 -1
- package/dist/src/types/components/tabs/VerticalTabs.d.ts +1 -1
- package/dist/src/types/components/theme/signout/SessionExpiresLogout.d.ts +1 -1
- package/dist/src/types/components/ui/Action.d.ts +1 -1
- package/dist/src/types/types/index.d.ts +4 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +48 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardList.js","sources":["../../../../../src/components/ui/cards/CardList.tsx"],"sourcesContent":["import React from \"react\";\r\n/**\r\n * Card List - Vertical list layout for cards\r\n */\r\nconst CardList = ({\r\n children,\r\n className = \"\",\r\n}: {\r\n children: React.ReactNode;\r\n className?: string;\r\n}) => {\r\n return <div className={`ihub-card-list ${className}`}>{children}</div>;\r\n};\r\n\r\nexport default CardList;\r\n"],"names":["
|
|
1
|
+
{"version":3,"file":"CardList.js","sources":["../../../../../src/components/ui/cards/CardList.tsx"],"sourcesContent":["import React from \"react\";\r\n/**\r\n * Card List - Vertical list layout for cards\r\n */\r\nconst CardList = ({\r\n children,\r\n className = \"\",\r\n}: {\r\n children: React.ReactNode;\r\n className?: string;\r\n}) => {\r\n return <div className={`ihub-card-list ${className}`}>{children}</div>;\r\n};\r\n\r\nexport default CardList;\r\n"],"names":["_ref","children","_ref$className","className","_jsx","concat"],"mappings":"uHAIiB,SAAHA,GAMT,IALHC,EAAQD,EAARC,SAAQC,EAAAF,EACRG,UAAAA,OAAY,IAAHD,EAAG,GAAEA,EAKd,OAAOE,EAAAA,IAAA,MAAA,CAAKD,UAASE,kBAAAA,OAAoBF,GAAWF,SAAGA,GACzD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),r=require("react/jsx-runtime"),i=require("./Card.js"),t=["icon","title","description","children"];exports.default=function(l){var c=l.icon,s=l.title,u=l.description,d=l.children,n=e.objectWithoutProperties(l,t);return r.jsx(i.default,e.objectSpread2(e.objectSpread2({},n),{},{title:null,children:r.jsxs("div",{className:"ihub-feature-card",children:[r.jsx("div",{className:"ihub-feature-icon",children:c}),r.jsx("h3",{children:s}),r.jsx("p",{children:u}),d]})}))};
|
|
2
2
|
//# sourceMappingURL=FeatureCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureCard.js","sources":["../../../../../src/components/ui/cards/FeatureCard.tsx"],"sourcesContent":["import React from \"react\";\r\nimport CardComponent from \"./Card\";\r\nimport { FeatureCardPropsType } from \"@/types/card\";\r\n\r\n/**\r\n * Feature Card - Highlights features with icons\r\n */\r\nconst FeatureCard = ({\r\n icon,\r\n title,\r\n description,\r\n children,\r\n ...cardProps\r\n}: FeatureCardPropsType) => {\r\n return (\r\n <CardComponent {...cardProps} title={null}>\r\n <div className=\"ihub-feature-card\">\r\n <div className=\"ihub-feature-icon\">{icon}</div>\r\n <h3>{title}</h3>\r\n <p>{description}</p>\r\n {children}\r\n </div>\r\n </CardComponent>\r\n );\r\n};\r\n\r\nexport default FeatureCard;\r\n"],"names":["
|
|
1
|
+
{"version":3,"file":"FeatureCard.js","sources":["../../../../../src/components/ui/cards/FeatureCard.tsx"],"sourcesContent":["import React from \"react\";\r\nimport CardComponent from \"./Card\";\r\nimport { FeatureCardPropsType } from \"@/types/card\";\r\n\r\n/**\r\n * Feature Card - Highlights features with icons\r\n */\r\nconst FeatureCard = ({\r\n icon,\r\n title,\r\n description,\r\n children,\r\n ...cardProps\r\n}: FeatureCardPropsType) => {\r\n return (\r\n <CardComponent {...cardProps} title={null}>\r\n <div className=\"ihub-feature-card\">\r\n <div className=\"ihub-feature-icon\">{icon}</div>\r\n <h3>{title}</h3>\r\n <p>{description}</p>\r\n {children}\r\n </div>\r\n </CardComponent>\r\n );\r\n};\r\n\r\nexport default FeatureCard;\r\n"],"names":["_ref","icon","title","description","children","cardProps","_objectWithoutProperties","objectWithoutProperties","_excluded","_jsx","CardComponent","_objectSpread","objectSpread2","_jsxs","jsxs","className","jsx"],"mappings":"yPAOoB,SAAHA,GAMU,IALzBC,EAAID,EAAJC,KACAC,EAAKF,EAALE,MACAC,EAAWH,EAAXG,YACAC,EAAQJ,EAARI,SACGC,EAASC,EAAAC,wBAAAP,EAAAQ,GAEZ,OACEC,EAAAA,IAACC,EAAAA,QAAaC,EAAAC,cAAAD,EAAAC,iBAAKP,GAAS,GAAA,CAAEH,MAAO,cACnCW,EAAKC,KAAA,MAAA,CAAAC,UAAU,8BACbN,EAAKO,IAAA,MAAA,CAAAD,UAAU,6BAAqBd,IACpCQ,EAAAO,IAAA,KAAA,CAAAZ,SAAKF,IACLO,EAAIO,IAAA,IAAA,CAAAZ,SAAAD,IACHC,OAIT"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),r=require("react/jsx-runtime"),a=require("./MediaCard.js"),t=["className"];exports.default=function(s){var u=s.className,i=void 0===u?"":u,o=e.objectWithoutProperties(s,t);return r.jsx(a.default,e.objectSpread2(e.objectSpread2({},o),{},{className:"ihub-card-horizontal ".concat(i)}))};
|
|
2
2
|
//# sourceMappingURL=HorizontalCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalCard.js","sources":["../../../../../src/components/ui/cards/HorizontalCard.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { MediaCardPropsType } from \"@/types/card\";\r\nimport MediaCard from \"./MediaCard\";\r\n\r\n/**\r\n * Horizontal Media Card - Card with side-by-side layout\r\n */\r\nconst HorizontalCard = (props: MediaCardPropsType) => {\r\n const { className = \"\", ...otherProps } = props;\r\n\r\n return (\r\n <MediaCard\r\n {...otherProps}\r\n className={`ihub-card-horizontal ${className}`}\r\n />\r\n );\r\n};\r\n\r\nexport default HorizontalCard;\r\n"],"names":["
|
|
1
|
+
{"version":3,"file":"HorizontalCard.js","sources":["../../../../../src/components/ui/cards/HorizontalCard.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { MediaCardPropsType } from \"@/types/card\";\r\nimport MediaCard from \"./MediaCard\";\r\n\r\n/**\r\n * Horizontal Media Card - Card with side-by-side layout\r\n */\r\nconst HorizontalCard = (props: MediaCardPropsType) => {\r\n const { className = \"\", ...otherProps } = props;\r\n\r\n return (\r\n <MediaCard\r\n {...otherProps}\r\n className={`ihub-card-horizontal ${className}`}\r\n />\r\n );\r\n};\r\n\r\nexport default HorizontalCard;\r\n"],"names":["props","_props$className","className","otherProps","_objectWithoutProperties","objectWithoutProperties","_excluded","_jsx","MediaCard","_objectSpread","objectSpread2","concat"],"mappings":"kOAOuB,SAACA,GACtB,IAAAC,EAA0CD,EAAlCE,UAAAA,OAAY,IAAHD,EAAG,GAAEA,EAAKE,EAAUC,EAAAC,wBAAKL,EAAKM,GAE/C,OACEC,EAAAA,IAACC,EAAAA,QAASC,EAAAC,cAAAD,EAAAC,iBACJP,GAAU,GAAA,CACdD,UAAS,wBAAAS,OAA0BT,KAGzC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),r=require("react/jsx-runtime"),a=require("./Card.js"),i=["imageUrl","imageAlt","badge"];exports.default=function(t){var c=t.imageUrl,d=t.imageAlt,l=t.badge,s=e.objectWithoutProperties(t,i);return r.jsxs(a.default,e.objectSpread2(e.objectSpread2({},s),{},{children:[r.jsxs("div",{className:"ihub-card-media",children:[r.jsx("img",{src:c,alt:d}),l&&r.jsx("div",{className:"ihub-card-media-badge",style:{backgroundColor:l.color},children:l.text})]}),r.jsxs("div",{className:"ihub-card-content",children:[s.title&&r.jsx("div",{className:"ihub-card-header ".concat(s.accentHeader?"with-accent":""),children:"string"==typeof s.title?r.jsx("h3",{children:s.title}):s.title}),r.jsx("div",{className:"ihub-card-body",children:s.children}),s.footer&&r.jsx("div",{className:"ihub-card-footer",children:s.footer})]})]}))};
|
|
2
2
|
//# sourceMappingURL=MediaCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaCard.js","sources":["../../../../../src/components/ui/cards/MediaCard.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { MediaCardPropsType } from \"@/types/card\";\r\nimport CardComponent from \"./Card\";\r\n\r\n/**\r\n * Media Card - Card with an image or video\r\n */\r\nconst MediaCard = ({\r\n imageUrl,\r\n imageAlt,\r\n badge,\r\n ...cardProps\r\n}: MediaCardPropsType) => {\r\n return (\r\n <CardComponent {...cardProps}>\r\n <div className=\"ihub-card-media\">\r\n <img src={imageUrl} alt={imageAlt} />\r\n {badge && (\r\n <div\r\n className=\"ihub-card-media-badge\"\r\n style={{ backgroundColor: badge.color }}\r\n >\r\n {badge.text}\r\n </div>\r\n )}\r\n </div>\r\n <div className=\"ihub-card-content\">\r\n {cardProps.title && (\r\n <div\r\n className={`ihub-card-header ${\r\n cardProps.accentHeader ? \"with-accent\" : \"\"\r\n }`}\r\n >\r\n {typeof cardProps.title === \"string\" ? (\r\n <h3>{cardProps.title}</h3>\r\n ) : (\r\n cardProps.title\r\n )}\r\n </div>\r\n )}\r\n <div className=\"ihub-card-body\">{cardProps.children}</div>\r\n {cardProps.footer && (\r\n <div className=\"ihub-card-footer\">{cardProps.footer}</div>\r\n )}\r\n </div>\r\n </CardComponent>\r\n );\r\n};\r\n\r\nexport default MediaCard;\r\n"],"names":["
|
|
1
|
+
{"version":3,"file":"MediaCard.js","sources":["../../../../../src/components/ui/cards/MediaCard.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { MediaCardPropsType } from \"@/types/card\";\r\nimport CardComponent from \"./Card\";\r\n\r\n/**\r\n * Media Card - Card with an image or video\r\n */\r\nconst MediaCard = ({\r\n imageUrl,\r\n imageAlt,\r\n badge,\r\n ...cardProps\r\n}: MediaCardPropsType) => {\r\n return (\r\n <CardComponent {...cardProps}>\r\n <div className=\"ihub-card-media\">\r\n <img src={imageUrl} alt={imageAlt} />\r\n {badge && (\r\n <div\r\n className=\"ihub-card-media-badge\"\r\n style={{ backgroundColor: badge.color }}\r\n >\r\n {badge.text}\r\n </div>\r\n )}\r\n </div>\r\n <div className=\"ihub-card-content\">\r\n {cardProps.title && (\r\n <div\r\n className={`ihub-card-header ${\r\n cardProps.accentHeader ? \"with-accent\" : \"\"\r\n }`}\r\n >\r\n {typeof cardProps.title === \"string\" ? (\r\n <h3>{cardProps.title}</h3>\r\n ) : (\r\n cardProps.title\r\n )}\r\n </div>\r\n )}\r\n <div className=\"ihub-card-body\">{cardProps.children}</div>\r\n {cardProps.footer && (\r\n <div className=\"ihub-card-footer\">{cardProps.footer}</div>\r\n )}\r\n </div>\r\n </CardComponent>\r\n );\r\n};\r\n\r\nexport default MediaCard;\r\n"],"names":["_ref","imageUrl","imageAlt","badge","cardProps","_objectWithoutProperties","objectWithoutProperties","_excluded","_jsxs","CardComponent","_objectSpread","objectSpread2","children","jsxs","className","_jsx","jsx","src","alt","style","backgroundColor","color","text","title","concat","accentHeader","footer"],"mappings":"+OAOkB,SAAHA,GAKU,IAJvBC,EAAQD,EAARC,SACAC,EAAQF,EAARE,SACAC,EAAKH,EAALG,MACGC,EAASC,EAAAC,wBAAAN,EAAAO,GAEZ,OACEC,EAAAA,KAACC,EAAAA,QAAaC,EAAAC,cAAAD,EAAAC,iBAAKP,GAAS,GAAA,CAAAQ,SAAA,CAC1BJ,EAAKK,KAAA,MAAA,CAAAC,UAAU,kBACbF,SAAA,CAAAG,EAAAC,IAAA,MAAA,CAAKC,IAAKhB,EAAUiB,IAAKhB,IACxBC,GACCY,EACEC,IAAA,MAAA,CAAAF,UAAU,wBACVK,MAAO,CAAEC,gBAAiBjB,EAAMkB,OAAOT,SAEtCT,EAAMmB,UAIbd,EAAAK,KAAA,MAAA,CAAKC,UAAU,oBAAmBF,SAAA,CAC/BR,EAAUmB,OACTR,EAAAA,IAAA,MAAA,CACED,UAAS,oBAAAU,OACPpB,EAAUqB,aAAe,cAAgB,IAG1Cb,SAA2B,iBAApBR,EAAUmB,MAChBR,EAAAA,IAAA,KAAA,CAAAH,SAAKR,EAAUmB,QAEfnB,EAAUmB,QAIhBR,EAAAC,IAAA,MAAA,CAAKF,UAAU,iBAAgBF,SAAER,EAAUQ,WAC1CR,EAAUsB,QACTX,EAAAA,IAAK,MAAA,CAAAD,UAAU,mBAAoBF,SAAAR,EAAUsB,eAKvD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react/jsx-runtime"),i=require("./Card.js"),r=["title","price","period","features","buttonText","onButtonClick","recommended"],c=["className"];exports.default=function(n){var a=n.title,l=n.price,o=n.period,s=n.features,u=n.buttonText,d=void 0===u?"Get Started":u,p=n.onButtonClick,b=n.recommended,h=void 0!==b&&b,j=e.objectWithoutProperties(n,r),m=j.className,x=void 0===m?"":m,v=e.objectWithoutProperties(j,c);return t.jsx(i.default,e.objectSpread2(e.objectSpread2({},v),{},{className:"".concat(x," ").concat(h?"ihub-card-accent-cyan":""),title:null,children:t.jsxs("div",{className:"ihub-pricing-card",children:[t.jsx("h3",{children:a}),t.jsx("div",{className:"ihub-price",children:l}),o&&t.jsx("div",{className:"ihub-pricing-period",children:o}),t.jsx("ul",{children:s.map((function(e,i){return t.jsx("li",{children:e},i)}))}),d&&t.jsx("button",{className:"".concat(h?"ihub-important-btn":"ihub-outlined-btn"),onClick:p,children:d})]})}))};
|
|
2
2
|
//# sourceMappingURL=PricingCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PricingCard.js","sources":["../../../../../src/components/ui/cards/PricingCard.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { PricingCardPropsType } from \"@/types/card\";\r\nimport CardComponent from \"./Card\";\r\n\r\n/**\r\n * Pricing Card - For subscription plans\r\n */\r\nconst PricingCard = ({\r\n title,\r\n price,\r\n period,\r\n features,\r\n buttonText = \"Get Started\",\r\n onButtonClick,\r\n recommended = false,\r\n ...cardProps\r\n}: PricingCardPropsType) => {\r\n const { className = \"\", ...otherProps } = cardProps;\r\n\r\n return (\r\n <CardComponent\r\n {...otherProps}\r\n className={`${className} ${recommended ? \"ihub-card-accent-cyan\" : \"\"}`}\r\n title={null}\r\n >\r\n <div className=\"ihub-pricing-card\">\r\n <h3>{title}</h3>\r\n <div className=\"ihub-price\">{price}</div>\r\n {period && <div className=\"ihub-pricing-period\">{period}</div>}\r\n\r\n <ul>\r\n {features.map((feature, index) => (\r\n <li key={index}>{feature}</li>\r\n ))}\r\n </ul>\r\n\r\n {buttonText && (\r\n <button\r\n className={`${\r\n recommended ? \"ihub-important-btn\" : \"ihub-outlined-btn\"\r\n }`}\r\n onClick={onButtonClick}\r\n >\r\n {buttonText}\r\n </button>\r\n )}\r\n </div>\r\n </CardComponent>\r\n );\r\n};\r\n\r\nexport default PricingCard;\r\n"],"names":["
|
|
1
|
+
{"version":3,"file":"PricingCard.js","sources":["../../../../../src/components/ui/cards/PricingCard.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { PricingCardPropsType } from \"@/types/card\";\r\nimport CardComponent from \"./Card\";\r\n\r\n/**\r\n * Pricing Card - For subscription plans\r\n */\r\nconst PricingCard = ({\r\n title,\r\n price,\r\n period,\r\n features,\r\n buttonText = \"Get Started\",\r\n onButtonClick,\r\n recommended = false,\r\n ...cardProps\r\n}: PricingCardPropsType) => {\r\n const { className = \"\", ...otherProps } = cardProps;\r\n\r\n return (\r\n <CardComponent\r\n {...otherProps}\r\n className={`${className} ${recommended ? \"ihub-card-accent-cyan\" : \"\"}`}\r\n title={null}\r\n >\r\n <div className=\"ihub-pricing-card\">\r\n <h3>{title}</h3>\r\n <div className=\"ihub-price\">{price}</div>\r\n {period && <div className=\"ihub-pricing-period\">{period}</div>}\r\n\r\n <ul>\r\n {features.map((feature, index) => (\r\n <li key={index}>{feature}</li>\r\n ))}\r\n </ul>\r\n\r\n {buttonText && (\r\n <button\r\n className={`${\r\n recommended ? \"ihub-important-btn\" : \"ihub-outlined-btn\"\r\n }`}\r\n onClick={onButtonClick}\r\n >\r\n {buttonText}\r\n </button>\r\n )}\r\n </div>\r\n </CardComponent>\r\n );\r\n};\r\n\r\nexport default PricingCard;\r\n"],"names":["_ref","title","price","period","features","_ref$buttonText","buttonText","onButtonClick","_ref$recommended","recommended","cardProps","_objectWithoutProperties","objectWithoutProperties","_excluded","_cardProps$className","className","otherProps","_excluded2","_jsx","CardComponent","_objectSpread","objectSpread2","concat","children","_jsxs","jsxs","jsx","map","feature","index","onClick"],"mappings":"gTAOoB,SAAHA,GASU,IARzBC,EAAKD,EAALC,MACAC,EAAKF,EAALE,MACAC,EAAMH,EAANG,OACAC,EAAQJ,EAARI,SAAQC,EAAAL,EACRM,WAAAA,OAAa,IAAHD,EAAG,cAAaA,EAC1BE,EAAaP,EAAbO,cAAaC,EAAAR,EACbS,YAAAA,OAAc,IAAHD,GAAQA,EAChBE,EAASC,EAAAC,wBAAAZ,EAAAa,GAEZC,EAA0CJ,EAAlCK,UAAAA,OAAY,IAAHD,EAAG,GAAEA,EAAKE,EAAUL,EAAAC,wBAAKF,EAASO,GAEnD,OACEC,EAAAA,IAACC,EAAAA,QAAaC,EAAAC,cAAAD,EAAAC,iBACRL,GAAU,GAAA,CACdD,UAASO,GAAAA,OAAKP,EAASO,KAAAA,OAAIb,EAAc,wBAA0B,IACnER,MAAO,KAEPsB,SAAAC,EAAAC,KAAA,MAAA,CAAKV,UAAU,8BACbG,EAAKQ,IAAA,KAAA,CAAAH,SAAAtB,IACLiB,EAAKQ,IAAA,MAAA,CAAAX,UAAU,aAAYQ,SAAErB,IAC5BC,GAAUe,EAAKQ,IAAA,MAAA,CAAAX,UAAU,sBAAuBQ,SAAApB,IAEjDe,EAAAQ,IAAA,KAAA,CAAAH,SACGnB,EAASuB,KAAI,SAACC,EAASC,GAAK,OAC3BX,EAAAA,IAAA,KAAA,CAAAK,SAAiBK,GAARC,QAIZvB,GACCY,gBACEH,UAAS,GAAAO,OACPb,EAAc,qBAAuB,qBAEvCqB,QAASvB,EAERgB,SAAAjB,SAMb"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),r=require("react/jsx-runtime"),l=require("./Card.js"),i=["imageUrl","name","role","bio","socialLinks","children"];exports.default=function(a){var s=a.imageUrl,n=a.name,t=a.role,c=a.bio,o=a.socialLinks,u=a.children,d=e.objectWithoutProperties(a,i);return r.jsx(l.default,e.objectSpread2(e.objectSpread2({},d),{},{title:null,children:r.jsxs("div",{className:"ihub-profile-card",children:[r.jsx("img",{src:s,alt:n,className:"ihub-profile-image"}),r.jsx("h4",{children:n}),t&&r.jsx("p",{className:"tw-500",children:t}),c&&r.jsx("p",{children:c}),u,o&&o.length>0&&r.jsx("div",{className:"ihub-profile-social",children:o.map((function(e,l){return r.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,children:e.icon},l)}))})]})}))};
|
|
2
2
|
//# sourceMappingURL=ProfileCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileCard.js","sources":["../../../../../src/components/ui/cards/ProfileCard.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { ProfileCardPropsType } from \"@/types/card\";\r\nimport CardComponent from \"./Card\";\r\n\r\n/**\r\n * Profile Card - For displaying user information\r\n */\r\nconst ProfileCard = ({\r\n imageUrl,\r\n name,\r\n role,\r\n bio,\r\n socialLinks,\r\n children,\r\n ...cardProps\r\n}: ProfileCardPropsType) => {\r\n return (\r\n <CardComponent {...cardProps} title={null}>\r\n <div className=\"ihub-profile-card\">\r\n <img src={imageUrl} alt={name} className=\"ihub-profile-image\" />\r\n <h4>{name}</h4>\r\n {role && <p className=\"tw-500\">{role}</p>}\r\n {bio && <p>{bio}</p>}\r\n {children}\r\n\r\n {socialLinks && socialLinks.length > 0 && (\r\n <div className=\"ihub-profile-social\">\r\n {socialLinks.map((link, index) => (\r\n <a\r\n key={index}\r\n href={link.url}\r\n target=\"_blank\"\r\n rel=\"noopener noreferrer\"\r\n aria-label={link.label}\r\n >\r\n {link.icon}\r\n </a>\r\n ))}\r\n </div>\r\n )}\r\n </div>\r\n </CardComponent>\r\n );\r\n};\r\n\r\nexport default ProfileCard;\r\n"],"names":["
|
|
1
|
+
{"version":3,"file":"ProfileCard.js","sources":["../../../../../src/components/ui/cards/ProfileCard.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { ProfileCardPropsType } from \"@/types/card\";\r\nimport CardComponent from \"./Card\";\r\n\r\n/**\r\n * Profile Card - For displaying user information\r\n */\r\nconst ProfileCard = ({\r\n imageUrl,\r\n name,\r\n role,\r\n bio,\r\n socialLinks,\r\n children,\r\n ...cardProps\r\n}: ProfileCardPropsType) => {\r\n return (\r\n <CardComponent {...cardProps} title={null}>\r\n <div className=\"ihub-profile-card\">\r\n <img src={imageUrl} alt={name} className=\"ihub-profile-image\" />\r\n <h4>{name}</h4>\r\n {role && <p className=\"tw-500\">{role}</p>}\r\n {bio && <p>{bio}</p>}\r\n {children}\r\n\r\n {socialLinks && socialLinks.length > 0 && (\r\n <div className=\"ihub-profile-social\">\r\n {socialLinks.map((link, index) => (\r\n <a\r\n key={index}\r\n href={link.url}\r\n target=\"_blank\"\r\n rel=\"noopener noreferrer\"\r\n aria-label={link.label}\r\n >\r\n {link.icon}\r\n </a>\r\n ))}\r\n </div>\r\n )}\r\n </div>\r\n </CardComponent>\r\n );\r\n};\r\n\r\nexport default ProfileCard;\r\n"],"names":["_ref","imageUrl","name","role","bio","socialLinks","children","cardProps","_objectWithoutProperties","objectWithoutProperties","_excluded","_jsx","CardComponent","_objectSpread","objectSpread2","title","_jsxs","jsxs","className","jsx","src","alt","length","map","link","index","href","url","target","rel","label","icon"],"mappings":"yQAOoB,SAAHA,GAQU,IAPzBC,EAAQD,EAARC,SACAC,EAAIF,EAAJE,KACAC,EAAIH,EAAJG,KACAC,EAAGJ,EAAHI,IACAC,EAAWL,EAAXK,YACAC,EAAQN,EAARM,SACGC,EAASC,EAAAC,wBAAAT,EAAAU,GAEZ,OACEC,EAAAA,IAACC,EAAAA,QAAaC,EAAAC,cAAAD,EAAAC,iBAAKP,GAAS,GAAA,CAAEQ,MAAO,KAAIT,SACvCU,EAAKC,KAAA,MAAA,CAAAC,UAAU,oBAAmBZ,SAAA,CAChCK,EAAKQ,IAAA,MAAA,CAAAC,IAAKnB,EAAUoB,IAAKnB,EAAMgB,UAAU,uBACzCP,EAAKQ,IAAA,KAAA,CAAAb,SAAAJ,IACJC,GAAQQ,EAAAQ,IAAA,IAAA,CAAGD,UAAU,SAAQZ,SAAEH,IAC/BC,GAAOO,EAAIQ,IAAA,IAAA,CAAAb,SAAAF,IACXE,EAEAD,GAAeA,EAAYiB,OAAS,GACnCX,EAAAQ,IAAA,MAAA,CAAKD,UAAU,sBACZZ,SAAAD,EAAYkB,KAAI,SAACC,EAAMC,GAAK,OAC3Bd,EAAAA,IAAA,IAAA,CAEEe,KAAMF,EAAKG,IACXC,OAAO,SACPC,IAAI,sBAAqB,aACbL,EAAKM,MAAKxB,SAErBkB,EAAKO,MANDN,aAcrB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),c=require("react/jsx-runtime"),n=require("react"),i=require("./InstinctHubChart.js"),a=require("../../lib/charts.js");exports.default=function(t){var r=t.initialData,s=t.initialType,o=void 0===s?"line":s,h=t.title,l=void 0===h?"Customizable Chart":h,u=t.availableDataKeys,d=void 0===u?["value"]:u,b=t.height,x=void 0===b?400:b,g=t.className,f=void 0===g?"":g,j=n.useState(o),p=e.slicedToArray(j,2),v=p[0],m=p[1],C=n.useState(d.includes("value")?["value"]:[d[0]]),N=e.slicedToArray(C,2),y=N[0],k=N[1],S=n.useState(!0),A=e.slicedToArray(S,2),T=A[0],w=A[1],q=n.useState(!0),D=e.slicedToArray(q,2),H=D[0],L=D[1],_=n.useState(x),G=e.slicedToArray(_,2),I=G[0],K=G[1],P=n.useState(!1),B=e.slicedToArray(P,2),O=B[0],z=B[1],M=n.useState(a.generateChartColors(d.length)),U=e.slicedToArray(M,2),E=U[0],F=U[1],J={type:v,data:r,dataKeys:y,title:l,height:I,colors:O?E:void 0,showLegend:H,showGrid:T};return c.jsxs("div",{className:"ihub-chart-configurator ".concat(f),children:[c.jsxs("div",{className:"ihub-chart-config-panel",children:[c.jsx("h3",{className:"ihub-chart-config-title",children:"Chart Configuration"}),c.jsxs("div",{className:"ihub-chart-config-section",children:[c.jsx("h4",{children:"Chart Type"}),c.jsxs("div",{className:"ihub-chart-config-options",children:[c.jsx("button",{className:"ihub-chart-config-btn ".concat("line"===v?"ihub-chart-config-btn-active":""),onClick:function(){return m("line")},children:"Line"}),c.jsx("button",{className:"ihub-chart-config-btn ".concat("bar"===v?"ihub-chart-config-btn-active":""),onClick:function(){return m("bar")},children:"Bar"}),c.jsx("button",{className:"ihub-chart-config-btn ".concat("area"===v?"ihub-chart-config-btn-active":""),onClick:function(){return m("area")},children:"Area"}),c.jsx("button",{className:"ihub-chart-config-btn ".concat("pie"===v?"ihub-chart-config-btn-active":""),onClick:function(){return m("pie")},children:"Pie"})]})]}),c.jsxs("div",{className:"ihub-chart-config-section",children:[c.jsx("h4",{children:"Data Series"}),c.jsx("div",{className:"ihub-chart-config-options ihub-chart-config-checkboxes",children:d.map((function(n){return c.jsxs("label",{className:"ihub-chart-config-checkbox",children:[c.jsx("input",{type:"checkbox",checked:y.includes(n),onChange:function(){return function(c){y.includes(c)?y.length>1&&k(y.filter((function(e){return e!==c}))):k([].concat(e.toConsumableArray(y),[c]))}(n)},disabled:1===y.length&&y.includes(n)}),c.jsx("span",{children:n})]},n)}))})]}),c.jsxs("div",{className:"ihub-chart-config-section",children:[c.jsx("h4",{children:"Display Options"}),c.jsxs("div",{className:"ihub-chart-config-options ihub-chart-config-checkboxes",children:[c.jsxs("label",{className:"ihub-chart-config-checkbox",children:[c.jsx("input",{type:"checkbox",checked:T,onChange:function(e){return w(e.target.checked)}}),c.jsx("span",{children:"Show Grid"})]}),c.jsxs("label",{className:"ihub-chart-config-checkbox",children:[c.jsx("input",{type:"checkbox",checked:H,onChange:function(e){return L(e.target.checked)}}),c.jsx("span",{children:"Show Legend"})]})]})]}),c.jsxs("div",{className:"ihub-chart-config-section",children:[c.jsx("h4",{children:"Chart Height"}),c.jsxs("div",{className:"ihub-chart-config-range",children:[c.jsx("input",{type:"range",min:"200",max:"600",step:"50",value:I,onChange:function(e){return K(parseInt(e.target.value))}}),c.jsxs("span",{children:[I,"px"]})]})]}),c.jsxs("div",{className:"ihub-chart-config-section",children:[c.jsx("h4",{children:"Colors"}),c.jsxs("label",{className:"ihub-chart-config-checkbox",children:[c.jsx("input",{type:"checkbox",checked:O,onChange:function(e){return z(e.target.checked)}}),c.jsx("span",{children:"Use Custom Colors"})]}),O&&c.jsx("div",{className:"ihub-chart-config-colors",children:y.map((function(n,i){return c.jsxs("div",{className:"ihub-chart-config-color",children:[c.jsx("span",{children:n}),c.jsx("input",{type:"color",value:E[i]||"#00838f",onChange:function(c){return function(c,n){var i=e.toConsumableArray(E);i[c]=n,F(i)}(i,c.target.value)}})]},n)}))})]})]}),c.jsx("div",{className:"ihub-chart-preview",children:c.jsx(i.default,e.objectSpread2({},J))}),c.jsxs("div",{className:"ihub-chart-config-code",children:[c.jsx("h4",{children:"Component Code"}),c.jsx("pre",{children:'<InstinctHubChart\n type="'.concat(v,'"\n data={data}\n dataKeys={[').concat(y.map((function(e){return"'".concat(e,"'")})).join(", "),']}\n title="').concat(l,'"\n height={').concat(I,"}\n ").concat(O?"colors={[".concat(E.map((function(e){return"'".concat(e,"'")})).join(", "),"]}"):"","\n showLegend={").concat(H,"}\n showGrid={").concat(T,"}\n/>")})]})]})};
|
|
2
2
|
//# sourceMappingURL=ChartConfigurator.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react/jsx-runtime"),r=require("react"),a=require("recharts");exports.default=function(s){var i=s.type,n=void 0===i?"line":i,o=s.data,l=void 0===o?[]:o,c=s.dataKeys,d=void 0===c?["value"]:c,x=s.title,h=s.height,u=void 0===h?300:h,j=s.colors,f=void 0===j?["#00838f","#bc658d","#69779b","#00c5a2","#756c83","#432160"]:j,p=s.showLegend,g=void 0===p||p,m=s.showGrid,y=void 0===m||m,v=s.className,b=void 0===v?"":v,L=r.useState(0),k=e.slicedToArray(L,2),A=k[0],C=k[1],K=r.useRef(null);r.useEffect((function(){var e=function(){K.current&&C(K.current.offsetWidth)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);return t.jsxs("div",{className:"ihub-chart-container ".concat(b),ref:K,children:[x&&t.jsx("h3",{className:"ihub-chart-title",children:x}),t.jsx("div",{className:"ihub-chart-wrapper",style:{height:"".concat(u,"px")},children:t.jsx(a.ResponsiveContainer,{width:"100%",height:"100%",children:function(){switch(n){case"line":return t.jsxs(a.LineChart,{data:l,margin:{top:10,right:30,left:0,bottom:0},children:[y&&t.jsx(a.CartesianGrid,{strokeDasharray:"3 3"}),t.jsx(a.XAxis,{dataKey:"name"}),t.jsx(a.YAxis,{}),t.jsx(a.Tooltip,{}),g&&t.jsx(a.Legend,{}),d.map((function(e,r){return t.jsx(a.Line,{type:"monotone",dataKey:e,stroke:f[r%f.length],activeDot:{r:8}},e)}))]});case"bar":return t.jsxs(a.BarChart,{data:l,margin:{top:10,right:30,left:0,bottom:0},children:[y&&t.jsx(a.CartesianGrid,{strokeDasharray:"3 3"}),t.jsx(a.XAxis,{dataKey:"name"}),t.jsx(a.YAxis,{}),t.jsx(a.Tooltip,{}),g&&t.jsx(a.Legend,{}),d.map((function(e,r){return t.jsx(a.Bar,{dataKey:e,fill:f[r%f.length]},e)}))]});case"barStackedBySign":return t.jsxs(a.BarChart,{data:l,stackOffset:"sign",margin:{top:10,right:30,left:0,bottom:0},children:[y&&t.jsx(a.CartesianGrid,{strokeDasharray:"3 3"}),t.jsx(a.XAxis,{dataKey:"name"}),t.jsx(a.YAxis,{}),t.jsx(a.Tooltip,{}),g&&t.jsx(a.Legend,{}),t.jsx(a.ReferenceLine,{y:0,stroke:"#000"}),d.map((function(e,r){return t.jsx(a.Bar,{dataKey:e,fill:f[r%f.length],stackId:"stack"},e)}))]});case"pie":return t.jsxs(a.PieChart,{children:[t.jsx(a.Tooltip,{}),g&&t.jsx(a.Legend,{}),t.jsx(a.Pie,{data:l,cx:"50%",cy:"50%",labelLine:!1,outerRadius:A>600?130:80,dataKey:"value",children:l.map((function(e,r){return t.jsx(a.Cell,{fill:f[r%f.length]},"cell-".concat(r))}))})]});case"area":return t.jsxs(a.AreaChart,{data:l,margin:{top:10,right:30,left:0,bottom:0},children:[y&&t.jsx(a.CartesianGrid,{strokeDasharray:"3 3"}),t.jsx(a.XAxis,{dataKey:"name"}),t.jsx(a.YAxis,{}),t.jsx(a.Tooltip,{}),g&&t.jsx(a.Legend,{}),d.map((function(e,r){return t.jsx(a.Area,{type:"monotone",dataKey:e,fill:f[r%f.length],stroke:f[r%f.length],fillOpacity:.3},e)}))]});default:return t.jsx("div",{children:"Unsupported chart type"})}}()})})]})};
|
|
2
2
|
//# sourceMappingURL=InstinctHubChart.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),s=require("react/jsx-runtime"),a=require("react"),i=require("./InstinctHubChart.js");exports.default=function(n){var r=n.className,t=void 0===r?"":r,o=a.useState([{name:"Jan",sales:4e3,expenses:2400,profit:1600},{name:"Feb",sales:3e3,expenses:1398,profit:1602},{name:"Mar",sales:2e3,expenses:1800,profit:200},{name:"Apr",sales:2780,expenses:2308,profit:472},{name:"May",sales:1890,expenses:2800,profit:-910},{name:"Jun",sales:2390,expenses:3800,profit:-1410},{name:"Jul",sales:3490,expenses:3e3,profit:490},{name:"Aug",sales:4e3,expenses:2400,profit:1600},{name:"Sep",sales:3e3,expenses:1398,profit:1602},{name:"Oct",sales:2e3,expenses:1800,profit:200},{name:"Nov",sales:2780,expenses:2308,profit:472},{name:"Dec",sales:3890,expenses:2800,profit:1090}]),d=e.slicedToArray(o,1)[0],c=a.useState([{name:"Mon",users:1e3,pageviews:3400,sessions:2100},{name:"Tue",users:1200,pageviews:4e3,sessions:2300},{name:"Wed",users:1300,pageviews:4200,sessions:2400},{name:"Thu",users:1200,pageviews:3800,sessions:2200},{name:"Fri",users:1100,pageviews:3600,sessions:2e3},{name:"Sat",users:800,pageviews:2400,sessions:1500},{name:"Sun",users:600,pageviews:2e3,sessions:1200}]),l=e.slicedToArray(c,1)[0],h=a.useState([{name:"Desktop",value:65},{name:"Mobile",value:25},{name:"Tablet",value:10}]),u=e.slicedToArray(h,1)[0],p=a.useState([{name:"Jan",conversion:40},{name:"Feb",conversion:45},{name:"Mar",conversion:42},{name:"Apr",conversion:38},{name:"May",conversion:50},{name:"Jun",conversion:55},{name:"Jul",conversion:58},{name:"Aug",conversion:56},{name:"Sep",conversion:60},{name:"Oct",conversion:62},{name:"Nov",conversion:64},{name:"Dec",conversion:65}]),m=e.slicedToArray(p,1)[0];return s.jsxs("div",{className:"ihub-chart-dashboard ".concat(t),children:[s.jsxs("div",{className:"ihub-chart-dashboard-header",children:[s.jsx("h2",{children:"InstinctHub Analytics Dashboard"}),s.jsx("p",{children:"View and analyze your data with interactive charts"})]}),s.jsxs("div",{className:"ihub-chart-dashboard-grid",children:[s.jsx("div",{className:"ihub-chart-dashboard-item ihub-chart-dashboard-item-wide",children:s.jsx(i.default,{type:"line",data:d,dataKeys:["sales","expenses","profit"],title:"Monthly Revenue Analysis",height:300,showGrid:!0,showLegend:!0})}),s.jsx("div",{className:"ihub-chart-dashboard-item",children:s.jsx(i.default,{type:"bar",data:l,dataKeys:["users","sessions","pageviews"],title:"Website Traffic",height:300,showGrid:!0,showLegend:!0})}),s.jsx("div",{className:"ihub-chart-dashboard-item",children:s.jsx(i.default,{type:"barStackedBySign",data:l,dataKeys:["users","sessions","pageviews"],title:"Website Traffic barStackedBySign",height:300,showGrid:!0,showLegend:!0})}),s.jsx("div",{className:"ihub-chart-dashboard-item",children:s.jsx(i.default,{type:"pie",data:u,title:"Device Distribution",height:300,showLegend:!0})}),s.jsx("div",{className:"ihub-chart-dashboard-item ihub-chart-dashboard-item-wide",children:s.jsx(i.default,{type:"area",data:m,dataKeys:["conversion"],title:"Conversion Rate Trend",height:300,showGrid:!0,showLegend:!0,colors:["#00c5a2"]})})]})]})};
|
|
2
2
|
//# sourceMappingURL=InstinctHubChartDashboard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),a=require("react/jsx-runtime"),i=require("next/navigation");exports.default=function(n){var t=n.label,r=void 0===t?"Create":t,s=n.searchParam,o=n.onClick,u=n.variant,l=void 0===u?"important":u,c=n.disabled,b=void 0!==c&&c,d=n.className,h=void 0===d?"":d,p=n.size,m=void 0===p?"medium":p,v=n.loading,j=void 0!==v&&v,g=n.icon,x=n.animated,k=void 0===x||x,f=n.buttonProps,w=i.useRouter(),N=i.useSearchParams();return a.jsxs("button",e.objectSpread2(e.objectSpread2({type:"button",className:function(){var e=[];switch(l){case"primary":e.push("ihub-primary-btn");break;case"outlined":e.push("ihub-outlined-btn");break;case"danger":e.push("ihub-danger-btn");break;default:e.push("ihub-important-btn")}switch(m){case"small":e.push("ihub-btn-small");break;case"large":e.push("ihub-btn-large")}return k&&e.push("ihub-anime-button"),j&&e.push("ihub-btn-loading"),h&&e.push(h),e.join(" ")}(),onClick:function(){if(!b&&!j)if(s){var e=new URLSearchParams(N.toString());e.set(s.key,s.value);var a="".concat(window.location.pathname,"?").concat(e.toString());w.replace(a)}else o&&o()},disabled:b||j},f),{},{children:[j&&a.jsx("div",{className:"ihub-btn-spinner",children:a.jsx("div",{className:"ihub-spinner"})}),g&&!j&&a.jsx("span",{className:"ihub-btn-icon",children:g}),a.jsx("span",{className:"ihub-btn-text",children:j?"Creating...":r}),k&&!j&&a.jsx("svg",{id:"animate",className:"ihub-btn-arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:a.jsx("path",{d:"M3 8h10m0 0l-3-3m3 3l-3 3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}))};
|
|
2
2
|
//# sourceMappingURL=CreateButton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("./CreateButton.js");exports.default=function(){var l=function(){alert("Fallback function called!")};return e.jsxs("div",{className:"ihub-create-button-demo",children:[e.jsx("h2",{children:"Create Button Component Examples"}),e.jsxs("div",{className:"ihub-button-grid",children:[e.jsxs("div",{className:"ihub-button-example",children:[e.jsx("h3",{children:"With Search Parameter"}),e.jsx(a.default,{label:"Create Course",searchParam:{key:"create",value:"course"},variant:"important",animated:!0})]}),e.jsxs("div",{className:"ihub-button-example",children:[e.jsx("h3",{children:"With Fallback Function"}),e.jsx(a.default,{label:"Create Project",onClick:l,variant:"primary",animated:!0})]}),e.jsxs("div",{className:"ihub-button-example",children:[e.jsx("h3",{children:"Different Variants"}),e.jsxs("div",{className:"ihub-button-row",children:[e.jsx(a.default,{label:"Important",variant:"important",onClick:l}),e.jsx(a.default,{label:"Outlined",variant:"outlined",onClick:l}),e.jsx(a.default,{label:"Primary",variant:"primary",onClick:l})]})]}),e.jsxs("div",{className:"ihub-button-example",children:[e.jsx("h3",{children:"Loading State"}),e.jsx(a.default,{label:"Create",loading:!0,variant:"important"})]}),e.jsxs("div",{className:"ihub-button-example",children:[e.jsx("h3",{children:"With Icon"}),e.jsx(a.default,{label:"Add New",icon:e.jsx("span",{children:"+"}),onClick:l,variant:"important"})]}),e.jsxs("div",{className:"ihub-button-example",children:[e.jsx("h3",{children:"Different Sizes"}),e.jsxs("div",{className:"ihub-button-row",children:[e.jsx(a.default,{label:"Small",size:"small",onClick:l}),e.jsx(a.default,{label:"Medium",size:"medium",onClick:l}),e.jsx(a.default,{label:"Large",size:"large",onClick:l})]})]})]})]})};
|
|
2
2
|
//# sourceMappingURL=CreateButtonExample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateButtonExample.js","sources":["../../../../../src/components/ui/create-button/CreateButtonExample.tsx"],"sourcesContent":["import CreateButton from \"./CreateButton\";\r\n\r\n// Example usage component\r\nconst CreateButtonExample: React.FC = () => {\r\n const handleFallbackClick = (): void => {\r\n alert(\"Fallback function called!\");\r\n };\r\n\r\n return (\r\n <div className=\"ihub-create-button-demo\">\r\n <h2>Create Button Component Examples</h2>\r\n \r\n <div className=\"ihub-button-grid\">\r\n {/* With search parameter */}\r\n <div className=\"ihub-button-example\">\r\n <h3>With Search Parameter</h3>\r\n <CreateButton\r\n label=\"Create Course\"\r\n searchParam={{ key: \"create\", value: \"course\" }}\r\n variant=\"important\"\r\n animated={true}\r\n />\r\n </div>\r\n\r\n {/* With fallback function */}\r\n <div className=\"ihub-button-example\">\r\n <h3>With Fallback Function</h3>\r\n <CreateButton\r\n label=\"Create Project\"\r\n onClick={handleFallbackClick}\r\n variant=\"primary\"\r\n animated={true}\r\n />\r\n </div>\r\n\r\n {/* Different variants */}\r\n <div className=\"ihub-button-example\">\r\n <h3>Different Variants</h3>\r\n <div className=\"ihub-button-row\">\r\n <CreateButton\r\n label=\"Important\"\r\n variant=\"important\"\r\n onClick={handleFallbackClick}\r\n />\r\n <CreateButton\r\n label=\"Outlined\"\r\n variant=\"outlined\"\r\n onClick={handleFallbackClick}\r\n />\r\n <CreateButton\r\n label=\"Primary\"\r\n variant=\"primary\"\r\n onClick={handleFallbackClick}\r\n />\r\n </div>\r\n </div>\r\n\r\n {/* With loading state */}\r\n <div className=\"ihub-button-example\">\r\n <h3>Loading State</h3>\r\n <CreateButton\r\n label=\"Create\"\r\n loading={true}\r\n variant=\"important\"\r\n />\r\n </div>\r\n\r\n {/* With icon */}\r\n <div className=\"ihub-button-example\">\r\n <h3>With Icon</h3>\r\n <CreateButton\r\n label=\"Add New\"\r\n icon={<span>+</span>}\r\n onClick={handleFallbackClick}\r\n variant=\"important\"\r\n />\r\n </div>\r\n\r\n {/* Different sizes */}\r\n <div className=\"ihub-button-example\">\r\n <h3>Different Sizes</h3>\r\n <div className=\"ihub-button-row\">\r\n <CreateButton\r\n label=\"Small\"\r\n size=\"small\"\r\n onClick={handleFallbackClick}\r\n />\r\n <CreateButton\r\n label=\"Medium\"\r\n size=\"medium\"\r\n onClick={handleFallbackClick}\r\n />\r\n <CreateButton\r\n label=\"Large\"\r\n size=\"large\"\r\n onClick={handleFallbackClick}\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default CreateButtonExample;"],"names":["
|
|
1
|
+
{"version":3,"file":"CreateButtonExample.js","sources":["../../../../../src/components/ui/create-button/CreateButtonExample.tsx"],"sourcesContent":["import CreateButton from \"./CreateButton\";\r\n\r\n// Example usage component\r\nconst CreateButtonExample: React.FC = () => {\r\n const handleFallbackClick = (): void => {\r\n alert(\"Fallback function called!\");\r\n };\r\n\r\n return (\r\n <div className=\"ihub-create-button-demo\">\r\n <h2>Create Button Component Examples</h2>\r\n \r\n <div className=\"ihub-button-grid\">\r\n {/* With search parameter */}\r\n <div className=\"ihub-button-example\">\r\n <h3>With Search Parameter</h3>\r\n <CreateButton\r\n label=\"Create Course\"\r\n searchParam={{ key: \"create\", value: \"course\" }}\r\n variant=\"important\"\r\n animated={true}\r\n />\r\n </div>\r\n\r\n {/* With fallback function */}\r\n <div className=\"ihub-button-example\">\r\n <h3>With Fallback Function</h3>\r\n <CreateButton\r\n label=\"Create Project\"\r\n onClick={handleFallbackClick}\r\n variant=\"primary\"\r\n animated={true}\r\n />\r\n </div>\r\n\r\n {/* Different variants */}\r\n <div className=\"ihub-button-example\">\r\n <h3>Different Variants</h3>\r\n <div className=\"ihub-button-row\">\r\n <CreateButton\r\n label=\"Important\"\r\n variant=\"important\"\r\n onClick={handleFallbackClick}\r\n />\r\n <CreateButton\r\n label=\"Outlined\"\r\n variant=\"outlined\"\r\n onClick={handleFallbackClick}\r\n />\r\n <CreateButton\r\n label=\"Primary\"\r\n variant=\"primary\"\r\n onClick={handleFallbackClick}\r\n />\r\n </div>\r\n </div>\r\n\r\n {/* With loading state */}\r\n <div className=\"ihub-button-example\">\r\n <h3>Loading State</h3>\r\n <CreateButton\r\n label=\"Create\"\r\n loading={true}\r\n variant=\"important\"\r\n />\r\n </div>\r\n\r\n {/* With icon */}\r\n <div className=\"ihub-button-example\">\r\n <h3>With Icon</h3>\r\n <CreateButton\r\n label=\"Add New\"\r\n icon={<span>+</span>}\r\n onClick={handleFallbackClick}\r\n variant=\"important\"\r\n />\r\n </div>\r\n\r\n {/* Different sizes */}\r\n <div className=\"ihub-button-example\">\r\n <h3>Different Sizes</h3>\r\n <div className=\"ihub-button-row\">\r\n <CreateButton\r\n label=\"Small\"\r\n size=\"small\"\r\n onClick={handleFallbackClick}\r\n />\r\n <CreateButton\r\n label=\"Medium\"\r\n size=\"medium\"\r\n onClick={handleFallbackClick}\r\n />\r\n <CreateButton\r\n label=\"Large\"\r\n size=\"large\"\r\n onClick={handleFallbackClick}\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default CreateButtonExample;"],"names":["handleFallbackClick","alert","_jsxs","className","children","_jsx","jsx","jsxs","CreateButton","label","searchParam","key","value","variant","animated","onClick","loading","icon","size"],"mappings":"sJAGsC,WACpC,IAAMA,EAAsB,WAC1BC,MAAM,8BAGR,OACEC,EAAAA,KAAA,MAAA,CAAKC,UAAU,0BAAyBC,SAAA,CACtCC,EAAyCC,IAAA,KAAA,CAAAF,SAAA,qCAEzCF,EAAKK,KAAA,MAAA,CAAAJ,UAAU,mBAEbC,SAAA,CAAAF,EAAAK,KAAA,MAAA,CAAKJ,UAAU,sBAAqBC,SAAA,CAClCC,EAA8BC,IAAA,KAAA,CAAAF,SAAA,0BAC9BC,EAACC,IAAAE,UACC,CAAAC,MAAM,gBACNC,YAAa,CAAEC,IAAK,SAAUC,MAAO,UACrCC,QAAQ,YACRC,UAAU,OAKdZ,EAAAK,KAAA,MAAA,CAAKJ,UAAU,sBAAqBC,SAAA,CAClCC,EAA+BC,IAAA,KAAA,CAAAF,SAAA,2BAC/BC,EAACC,IAAAE,UACC,CAAAC,MAAM,iBACNM,QAASf,EACTa,QAAQ,UACRC,UAAU,OAKdZ,EAAAK,KAAA,MAAA,CAAKJ,UAAU,sBAAqBC,SAAA,CAClCC,EAA2BC,IAAA,KAAA,CAAAF,SAAA,uBAC3BF,EAAKK,KAAA,MAAA,CAAAJ,UAAU,kBACbC,SAAA,CAAAC,EAAAC,IAACE,UAAY,CACXC,MAAM,YACNI,QAAQ,YACRE,QAASf,IAEXK,EAAAC,IAACE,UAAY,CACXC,MAAM,WACNI,QAAQ,WACRE,QAASf,IAEXK,EAAAC,IAACE,UAAY,CACXC,MAAM,UACNI,QAAQ,UACRE,QAASf,UAMfE,EAAKK,KAAA,MAAA,CAAAJ,UAAU,sBACbC,SAAA,CAAAC,EAAAC,IAAA,KAAA,CAAAF,SAAA,kBACAC,EAAAC,IAACE,UAAY,CACXC,MAAM,SACNO,SAAS,EACTH,QAAQ,iBAKZX,EAAKK,KAAA,MAAA,CAAAJ,UAAU,sBACbC,SAAA,CAAAC,EAAAC,IAAA,KAAA,CAAAF,SAAA,cACAC,EAAAC,IAACE,UAAY,CACXC,MAAM,UACNQ,KAAMZ,EAAcC,IAAA,OAAA,CAAAF,SAAA,MACpBW,QAASf,EACTa,QAAQ,iBAKZX,EAAAK,KAAA,MAAA,CAAKJ,UAAU,sBAAqBC,SAAA,CAClCC,EAAwBC,IAAA,KAAA,CAAAF,SAAA,oBACxBF,EAAKK,KAAA,MAAA,CAAAJ,UAAU,kBACbC,SAAA,CAAAC,EAAAC,IAACE,UAAY,CACXC,MAAM,QACNS,KAAK,QACLH,QAASf,IAEXK,EAAAC,IAACE,UAAY,CACXC,MAAM,SACNS,KAAK,SACLH,QAASf,IAEXK,EAAAC,IAACE,UAAY,CACXC,MAAM,QACNS,KAAK,QACLH,QAASf,eAOvB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react/jsx-runtime"),n=require("react");exports.default=function(r){var i=r.isOpen,o=r.onClose,s=r.title,l=r.children,d=r.footer,a=r.maxWidth,u=void 0===a?"902px":a,c=r.className,h=void 0===c?"":c,f=n.useRef(null),v=n.useState(!1),x=e.slicedToArray(v,2),m=x[0],j=x[1];return n.useEffect((function(){return j(!0),function(){return j(!1)}}),[]),n.useEffect((function(){var e=function(e){"Escape"===e.key&&i&&o()};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[i,o]),n.useEffect((function(){return document.body.style.overflow=i?"hidden":"",function(){document.body.style.overflow=""}}),[i]),i&&m?t.jsx("div",{className:"ihub-modal","aria-modal":"true",role:"dialog",onClick:function(e){e.target===e.currentTarget&&o()},children:t.jsxs("div",{className:"ihub-modal-content ".concat(h),ref:f,style:{maxWidth:u},tabIndex:-1,children:[t.jsxs("div",{className:"ihub-violet",children:[t.jsx("h2",{children:s}),t.jsx("span",{className:"ihub-close-it",onClick:o,"aria-label":"Close dialog",children:t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M18 6L6 18",stroke:"#2C333A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M6 6L18 18",stroke:"#2C333A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),t.jsx("div",{className:"ihub-txt-modal",children:l}),d&&t.jsx("div",{className:"ihub-next-prev",children:d})]})}):null};
|
|
2
2
|
//# sourceMappingURL=Dialog.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react/jsx-runtime"),i=require("react"),r=require("../../../../node_modules/@tiptap/react/dist/index.js"),n=require("../../../../node_modules/@tiptap/starter-kit/dist/index.js"),s=require("../../../../node_modules/@tiptap/extension-image/dist/index.js"),d=require("../../../../node_modules/@tiptap/extension-link/dist/index.js"),o=require("../../../../node_modules/@tiptap/extension-table/dist/index.js"),a=require("../../../../node_modules/@tiptap/extension-table-row/dist/index.js"),l=require("../../../../node_modules/@tiptap/extension-table-cell/dist/index.js"),u=require("../../../../node_modules/@tiptap/extension-table-header/dist/index.js"),c=require("../../../../node_modules/@tiptap/extension-code-block/dist/index.js"),p=require("../../../../node_modules/@tiptap/extension-highlight/dist/index.js"),x=require("../../../../node_modules/@tiptap/extension-task-list/dist/index.js"),h=require("../../../../node_modules/@tiptap/extension-task-item/dist/index.js"),j=require("../../../../node_modules/@tiptap/extension-placeholder/dist/index.js"),m=require("../../../../node_modules/@tiptap/extension-character-count/dist/index.js"),g=require("./MenuBar.js"),b=require("../../lib/helpFunction.js");function q(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var v=q(i);exports.default=function(i){var q=i.label,_=i.name,f=void 0===_?"editor-content":_,k=i.note,w=i.onChange,T=i.setIsEditing,C=i.content,B=i.isEditing,E=void 0!==B&&B,L=i.charLimit,P=void 0===L?5e3:L,H=i.placeholder,y=void 0===H?"Begin writing here...":H,I=i.lastUpdated,M=void 0===I?"":I,N=i.showPreviewBtn,F=void 0!==N&&N,O=i.required,S=void 0!==O&&O,U=v.default.useState(C||""),z=e.slicedToArray(U,2),A=z[0],D=z[1],K=r.useEditor({extensions:[n.StarterKit,s.Image,d.Link.configure({openOnClick:!1}),o.Table.configure({resizable:!0}),a.TableRow,l.TableCell,u.TableHeader,c.CodeBlock,p.Highlight,x.TaskList,h.TaskItem.configure({nested:!0}),j.Placeholder.configure({placeholder:y}),m.CharacterCount.configure({limit:P})],editorProps:{attributes:{class:"ihub-editor-content"}},content:A,onUpdate:function(e){var t=e.editor;w&&w(t.getHTML()),D(t.getHTML())}});return t.jsxs("div",{className:"ihub-editor",children:[q&&t.jsx("label",{htmlFor:f,children:q}),t.jsx(g.default,{editor:K,isEditing:E,setIsEditing:T,showPreviewBtn:F}),t.jsx(r.EditorContent,{editor:K,className:"ihub-editor-content-wrapper",required:S}),t.jsx("input",{type:"hidden",value:A,name:f}),K&&t.jsxs("div",{className:"ihub-editor-char-count",children:[t.jsx("p",{children:M?"Last updated: ".concat(b.formatDateToWord(M)):""}),t.jsxs("p",{children:[K.storage.characterCount.words()," words:"," ",K.storage.characterCount.characters()/P,"/",P," ","characters"]})]}),k&&t.jsx("p",{className:"ihub-editor-note",children:k})]})};
|
|
2
2
|
//# sourceMappingURL=CustomTextEditor.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),i=require("@mui/icons-material/FormatBold"),e=require("@mui/icons-material/FormatItalic"),n=require("@mui/icons-material/StrikethroughS"),o=require("@mui/icons-material/FormatListBulleted"),l=require("@mui/icons-material/FormatListNumbered"),u=require("@mui/icons-material/Code"),r=require("@mui/icons-material/TableChart"),a=require("@mui/icons-material/Link"),c=require("@mui/icons-material/Highlight"),s=require("@mui/icons-material/Undo"),d=require("@mui/icons-material/Redo"),b=require("@mui/icons-material/CheckBox"),m=require("@mui/icons-material/FormatQuote"),h=require("@mui/icons-material/HorizontalRule"),f=require("@mui/icons-material/FormatClear"),v=require("@mui/icons-material/Visibility"),g=require("@mui/icons-material/Edit");function x(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var j=x(i),k=x(e),N=x(n),C=x(o),p=x(l),y=x(u),q=x(r),S=x(a),z=x(c),H=x(s),L=x(d),A=x(b),B=x(m),R=x(h),w=x(f),F=x(v),I=x(g);exports.default=function(i){var e=i.editor,n=i.setIsEditing,o=i.isEditing,l=i.showPreviewBtn,u=void 0!==l&&l;if(!e)return null;return t.jsxs("div",{className:"ihub-editor-menu",children:[u?t.jsx("button",{type:"button",onClick:function(){return n&&n(!o)},className:"ihub-editor-btn",children:o?t.jsx(F.default,{fontSize:"small"}):t.jsx(I.default,{fontSize:"small"})}):"",t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleBold().run()},className:"ihub-editor-btn ".concat(e.isActive("bold")?"is-active":""),title:"Bold",children:t.jsx(j.default,{fontSize:"small"})}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleItalic().run()},className:"ihub-editor-btn ".concat(e.isActive("italic")?"is-active":""),title:"Italic",children:t.jsx(k.default,{fontSize:"small"})}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleStrike().run()},className:"ihub-editor-btn ".concat(e.isActive("strike")?"is-active":""),title:"Strike",children:t.jsx(N.default,{fontSize:"small"})}),t.jsx("div",{className:"ihub-editor-divider"}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleHeading({level:1}).run()},className:"ihub-editor-btn ".concat(e.isActive("heading",{level:1})?"is-active":""),title:"Heading 2",children:"H1"}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleHeading({level:2}).run()},className:"ihub-editor-btn ".concat(e.isActive("heading",{level:2})?"is-active":""),title:"Heading 2",children:"H2"}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleHeading({level:3}).run()},className:"ihub-editor-btn ".concat(e.isActive("heading",{level:3})?"is-active":""),title:"Heading 3",children:"H3"}),t.jsx("div",{className:"ihub-editor-divider"}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleBulletList().run()},className:"ihub-editor-btn ".concat(e.isActive("bulletList")?"is-active":""),title:"Bullet List",children:t.jsx(C.default,{fontSize:"small"})}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleOrderedList().run()},className:"ihub-editor-btn ".concat(e.isActive("orderedList")?"is-active":""),title:"Ordered List",children:t.jsx(p.default,{fontSize:"small"})}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleTaskList().run()},className:"ihub-editor-btn ".concat(e.isActive("taskList")?"is-active":""),title:"Task List",children:t.jsx(A.default,{fontSize:"small"})}),t.jsx("div",{className:"ihub-editor-divider"}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleCodeBlock().run()},className:"ihub-editor-btn ".concat(e.isActive("codeBlock")?"is-active":""),title:"Code Block",children:t.jsx(y.default,{fontSize:"small"})}),t.jsx("button",{type:"button",onClick:function(){var t=e.getAttributes("link").href,i=window.prompt("Enter link URL",t);null!==i&&(""!==i?e.chain().focus().extendMarkRange("link").setLink({href:i}).run():e.chain().focus().extendMarkRange("link").unsetLink().run())},className:"ihub-editor-btn ".concat(e.isActive("link")?"is-active":""),title:"Link",children:t.jsx(S.default,{fontSize:"small"})}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleHighlight().run()},className:"ihub-editor-btn ".concat(e.isActive("highlight")?"is-active":""),title:"Highlight",children:t.jsx(z.default,{fontSize:"small"})}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().toggleBlockquote().run()},className:"ihub-editor-btn ".concat(e.isActive("blockquote")?"is-active":""),title:"Blockquote",children:t.jsx(B.default,{fontSize:"small"})}),t.jsx("div",{className:"ihub-editor-divider"}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().setHorizontalRule().run()},className:"ihub-editor-btn",title:"Horizontal Rule",children:t.jsx(R.default,{fontSize:"small"})}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run()},className:"ihub-editor-btn",title:"Insert Table",children:t.jsx(q.default,{fontSize:"small"})}),t.jsx("div",{className:"ihub-editor-divider"}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().undo().run()},className:"ihub-editor-btn",disabled:!e.can().undo(),title:"Undo",children:t.jsx(H.default,{fontSize:"small"})}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().redo().run()},className:"ihub-editor-btn",disabled:!e.can().redo(),title:"Redo",children:t.jsx(L.default,{fontSize:"small"})}),t.jsx("button",{type:"button",onClick:function(){return e.chain().focus().clearNodes().unsetAllMarks().run()},className:"ihub-editor-btn",title:"Clear Formatting",children:t.jsx(w.default,{fontSize:"small"})})]})};
|
|
2
2
|
//# sourceMappingURL=MenuBar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),a=require("react");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(require("next/image"));exports.default=function(i){var t=i.thumbnail,d=i.title,n=i.width,f=void 0===n?128:n,g=i.height,l=void 0===g?128:g,o=a.useMemo((function(){return(e=["linear-gradient(45deg, #ff7e5f, #feb47b)","linear-gradient(45deg, #17ead9, #6078ea)","linear-gradient(45deg, #ff6e7f, #bfe9ff)","linear-gradient(45deg, #f46b45, #eea849)","linear-gradient(45deg, #26a0da, #31548b)","linear-gradient(45deg, #ff9a9e, #fad0c4)","linear-gradient(45deg, #a18cd1, #fbc2eb)","linear-gradient(45deg, #28c2ff, #7edbff)","linear-gradient(45deg, #4568dc, #b06ab3)","linear-gradient(45deg, #88d3ce, #6e45e1)"])[Math.floor(Math.random()*e.length)];var e}),[]);return Boolean(t)?e.jsx(r.default,{className:"ihub-dynamic-thumbnail",src:t,alt:d||"Thumbnail image",width:f,height:l,decoding:"async",loading:"lazy"}):e.jsx("div",{style:{background:o,width:"100%",height:"".concat(l,"px"),position:"relative",borderRadius:"4px"}})};
|
|
2
2
|
//# sourceMappingURL=RandomGradientImage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RandomGradientImage.js","sources":["../../../../../src/components/ui/images/RandomGradientImage.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\r\nimport Image from \"next/image\";\r\n\r\n// Type definition for the component props\r\ninterface RandomGradientImageProps {\r\n thumbnail?: string;\r\n title?: string;\r\n width?: number;\r\n height?: number;\r\n}\r\n\r\n/**\r\n * Returns a random gradient from predefined list\r\n * @returns A CSS linear gradient string\r\n */\r\nconst getRandomGradient = (): string => {\r\n const gradients: readonly string[] = [\r\n \"linear-gradient(45deg, #ff7e5f, #feb47b)\",\r\n \"linear-gradient(45deg, #17ead9, #6078ea)\",\r\n \"linear-gradient(45deg, #ff6e7f, #bfe9ff)\",\r\n \"linear-gradient(45deg, #f46b45, #eea849)\",\r\n \"linear-gradient(45deg, #26a0da, #31548b)\",\r\n \"linear-gradient(45deg, #ff9a9e, #fad0c4)\",\r\n \"linear-gradient(45deg, #a18cd1, #fbc2eb)\",\r\n \"linear-gradient(45deg, #28c2ff, #7edbff)\",\r\n \"linear-gradient(45deg, #4568dc, #b06ab3)\",\r\n \"linear-gradient(45deg, #88d3ce, #6e45e1)\",\r\n ];\r\n\r\n const randomIndex = Math.floor(Math.random() * gradients.length);\r\n return gradients[randomIndex];\r\n};\r\n\r\n/**\r\n * A component that displays either an image or a random gradient background\r\n * @param thumbnail - URL of the image\r\n * @param title - Title of the image\r\n * @param width - Width of the image\r\n * @param height - Height of the image or gradient\r\n */\r\nconst RandomGradientImage = ({\r\n thumbnail,\r\n title,\r\n width = 128,\r\n height = 128,\r\n}: RandomGradientImageProps) => {\r\n // Memoize the gradient to prevent regenerating on every render\r\n const gradient = useMemo(() => getRandomGradient(), []);\r\n const hasImage = Boolean(thumbnail);\r\n\r\n if (!hasImage) {\r\n return (\r\n <div\r\n style={{\r\n background: gradient,\r\n width: \"100%\",\r\n height: `${height}px`,\r\n position: \"relative\",\r\n borderRadius: \"4px\", // Optional: adds rounded corners\r\n }}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n <Image\r\n className=\"ihub-dynamic-thumbnail\"\r\n src={thumbnail!}\r\n alt={title || \"Thumbnail image\"}\r\n width={width}\r\n height={height}\r\n decoding=\"async\"\r\n loading=\"lazy\"\r\n />\r\n );\r\n};\r\n\r\nexport default RandomGradientImage;\r\n"],"names":["
|
|
1
|
+
{"version":3,"file":"RandomGradientImage.js","sources":["../../../../../src/components/ui/images/RandomGradientImage.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\r\nimport Image from \"next/image\";\r\n\r\n// Type definition for the component props\r\ninterface RandomGradientImageProps {\r\n thumbnail?: string;\r\n title?: string;\r\n width?: number;\r\n height?: number;\r\n}\r\n\r\n/**\r\n * Returns a random gradient from predefined list\r\n * @returns A CSS linear gradient string\r\n */\r\nconst getRandomGradient = (): string => {\r\n const gradients: readonly string[] = [\r\n \"linear-gradient(45deg, #ff7e5f, #feb47b)\",\r\n \"linear-gradient(45deg, #17ead9, #6078ea)\",\r\n \"linear-gradient(45deg, #ff6e7f, #bfe9ff)\",\r\n \"linear-gradient(45deg, #f46b45, #eea849)\",\r\n \"linear-gradient(45deg, #26a0da, #31548b)\",\r\n \"linear-gradient(45deg, #ff9a9e, #fad0c4)\",\r\n \"linear-gradient(45deg, #a18cd1, #fbc2eb)\",\r\n \"linear-gradient(45deg, #28c2ff, #7edbff)\",\r\n \"linear-gradient(45deg, #4568dc, #b06ab3)\",\r\n \"linear-gradient(45deg, #88d3ce, #6e45e1)\",\r\n ];\r\n\r\n const randomIndex = Math.floor(Math.random() * gradients.length);\r\n return gradients[randomIndex];\r\n};\r\n\r\n/**\r\n * A component that displays either an image or a random gradient background\r\n * @param thumbnail - URL of the image\r\n * @param title - Title of the image\r\n * @param width - Width of the image\r\n * @param height - Height of the image or gradient\r\n */\r\nconst RandomGradientImage = ({\r\n thumbnail,\r\n title,\r\n width = 128,\r\n height = 128,\r\n}: RandomGradientImageProps) => {\r\n // Memoize the gradient to prevent regenerating on every render\r\n const gradient = useMemo(() => getRandomGradient(), []);\r\n const hasImage = Boolean(thumbnail);\r\n\r\n if (!hasImage) {\r\n return (\r\n <div\r\n style={{\r\n background: gradient,\r\n width: \"100%\",\r\n height: `${height}px`,\r\n position: \"relative\",\r\n borderRadius: \"4px\", // Optional: adds rounded corners\r\n }}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n <Image\r\n className=\"ihub-dynamic-thumbnail\"\r\n src={thumbnail!}\r\n alt={title || \"Thumbnail image\"}\r\n width={width}\r\n height={height}\r\n decoding=\"async\"\r\n loading=\"lazy\"\r\n />\r\n );\r\n};\r\n\r\nexport default RandomGradientImage;\r\n"],"names":["_ref","thumbnail","title","_ref$width","width","_ref$height","height","gradient","useMemo","gradients","Math","floor","random","length","Boolean","_jsx","Image","className","src","alt","decoding","loading","style","background","concat","position","borderRadius"],"mappings":"iPAwC4B,SAAHA,GAKM,IAJ7BC,EAASD,EAATC,UACAC,EAAKF,EAALE,MAAKC,EAAAH,EACLI,MAAAA,OAAQ,IAAHD,EAAG,IAAGA,EAAAE,EAAAL,EACXM,OAAAA,OAAS,IAAHD,EAAG,IAAGA,EAGNE,EAAWC,EAAAA,SAAQ,WAAA,OA/BnBC,EAA+B,CACnC,2CACA,2CACA,2CACA,2CACA,2CACA,2CACA,2CACA,2CACA,2CACA,6CAGkBC,KAAKC,MAAMD,KAAKE,SAAWH,EAAUI,SAdjC,IAClBJ,CA+B4C,GAAE,IAGpD,OAFiBK,QAAQb,GAiBvBc,EAAAA,IAACC,EAAAA,QAAK,CACJC,UAAU,yBACVC,IAAKjB,EACLkB,IAAKjB,GAAS,kBACdE,MAAOA,EACPE,OAAQA,EACRc,SAAS,QACTC,QAAQ,SApBRN,EAAAA,IACE,MAAA,CAAAO,MAAO,CACLC,WAAYhB,EACZH,MAAO,OACPE,OAAMkB,GAAAA,OAAKlB,EAAU,MACrBmB,SAAU,WACVC,aAAc,QAiBxB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var a=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),e=require("react/jsx-runtime"),n=require("react"),i=require("next/link"),t=require("../../lib/helpFunction.js");require("../../lib/utils.js");var r=require("next/navigation");function o(a){return a&&"object"==typeof a&&"default"in a?a:{default:a}}var l=o(i),s=function(a){if(!a)return null;try{return new URL(a).searchParams.get("offset")}catch(a){return null}};exports.default=function(i){var o=i.data,c=i.limit,u=i.urlPath,h=i.setData,d=i.token,p=void 0===d?null:d,f=i.tabsValues,g=void 0===f?"":f,b=i.searchValues,v=void 0===b?"":b,m=i.rangeLimit,x=void 0===m?5:m,j=i.className,w=void 0===j?"":j,N=i.showFirstLast,L=void 0===N||N,y=r.useSearchParams(),P=y.get("offset")||"0",k=y.get("search")||"",S=n.useState([]),q=a.slicedToArray(S,2),I=q[0],R=q[1],G=n.useState(0),M=a.slicedToArray(G,2),A=M[0],T=M[1],C=n.useState(x||5),U=a.slicedToArray(C,2),_=U[0],B=U[1],E=n.useState(!1),F=a.slicedToArray(E,2),O=F[0],V=F[1],Z=n.useRef(!0),D=Number(P),H=Math.floor(D/c),z=s((null==o?void 0:o.next)||""),J=s((null==o?void 0:o.previous)||""),K=function(){var e=a.asyncToGenerator(a.regeneratorRuntime().mark((function e(n){var i,r,o,l,s;return a.regeneratorRuntime().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return V(!0),a.prev=1,i=t.reqOptions("GET",null,p),r=void 0!==n?"&offset=".concat(n):"",o=v||k?"&search=".concat(encodeURIComponent(v||k)):"",l=g?"&cat=".concat(encodeURIComponent(g)):"",s="".concat(u,"?limit=").concat(c).concat(r).concat(o).concat(l),a.next=9,t.fetchAPI(h,s,i,!0);case 9:a.next=14;break;case 11:a.prev=11,a.t0=a.catch(1),console.error("Pagination fetch error:",a.t0);case 14:return a.prev=14,Q(),V(!1),a.finish(14);case 18:case"end":return a.stop()}}),e,null,[[1,11,14,18]])})));return function(a){return e.apply(this,arguments)}}(),Q=function(){console.log("updatePageRange called with currentPageIndex:",H,x),H+1>=x?(T(H-2),B(H+3)):(T(0),B(x))};if(n.useEffect((function(){if(D>0||g||v||k?K(D):K(),null!=o&&o.count){var a=Math.ceil(o.count/c);R(Array.from({length:a},(function(a,e){return e})))}}),[P,null==o?void 0:o.count,g,c]),n.useEffect((function(){if(Z.current)Z.current=!1;else if("undefined"!=typeof window){var a=new URLSearchParams(window.location.search);a.set("offset","0"),window.history.replaceState({},"","".concat(window.location.pathname,"?").concat(a.toString()))}}),[v,k]),!I.length&&!O)return null;var W=I.length,X=0===H,Y=H===W-1,$=I.slice(A,_);return e.jsxs("div",{className:"ihub-pagination-container ".concat(w),role:"navigation","aria-label":"Pagination",children:[O&&e.jsxs("div",{className:"ihub-pagination-loading",children:[e.jsx("div",{className:"ihub-loading-spinner"}),e.jsx("span",{children:"Loading..."})]}),e.jsxs("ul",{className:"ihub-pagination-list",children:[e.jsxs("div",{className:"ihub-pagination-nav-group",children:[L&&e.jsx("li",{className:"ihub-pagination-item ".concat(X?"ihub-pagination-disabled":""),children:e.jsx(l.default,{href:"?offset=0",className:"ihub-pagination-link ihub-pagination-first","aria-label":"Go to first page",tabIndex:X?-1:0,children:"First"})}),e.jsx("li",{className:"ihub-pagination-item ".concat(X||null==o||!o.previous?"ihub-pagination-disabled":""),children:e.jsx(l.default,{href:"?offset=".concat(J||0),className:"ihub-pagination-link ihub-pagination-previous","aria-label":"Go to previous page",tabIndex:X||null==o||!o.previous?-1:0,children:e.jsx("svg",{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsx("path",{d:"M7.66927 1.83333L3.08594 6.41667L7.66927 11L6.7526 12.8333L0.335938 6.41667L6.7526 0L7.66927 1.83333Z",fill:"currentColor"})})})})]}),e.jsx("div",{className:"ihub-pagination-pages",children:($||[]).map((function(a){var n=H===a,i=a+1;return e.jsx("li",{className:"ihub-pagination-item ".concat(n?"ihub-pagination-active":""),"data-page":i,children:e.jsx(l.default,{href:"?offset=".concat(a*c),className:"ihub-pagination-link ihub-pagination-number","aria-label":"Go to page ".concat(i),"aria-current":n?"page":void 0,children:i})},a)}))}),e.jsxs("div",{className:"ihub-pagination-nav-group ".concat(null!=o&&o.next?"":"ihub-pagination-disabled"),children:[e.jsx("li",{className:"ihub-pagination-item ".concat(Y||null==o||!o.next?"ihub-pagination-disabled":""),children:e.jsx(l.default,{href:"?offset=".concat(z||D),className:"ihub-pagination-link ihub-pagination-next","aria-label":"Go to next page",tabIndex:Y||null==o||!o.next?-1:0,children:e.jsx("svg",{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsx("path",{d:"M0.330731 1.83333L4.91406 6.41667L0.330731 11L1.2474 12.8333L7.66406 6.41667L1.2474 0L0.330731 1.83333Z",fill:"currentColor"})})})}),L&&e.jsx("li",{className:"ihub-pagination-item ".concat(Y?"ihub-pagination-disabled":""),children:e.jsx(l.default,{href:"?offset=".concat((W-1)*c),className:"ihub-pagination-link ihub-pagination-last","aria-label":"Go to last page",tabIndex:Y?-1:0,children:"Last"})})]})]}),e.jsx("div",{className:"ihub-pagination-info",children:e.jsxs("span",{className:"ihub-pagination-summary",children:["Showing ",Math.min(D+1,(null==o?void 0:o.count)||0)," to"," ",Math.min(D+c,(null==o?void 0:o.count)||0)," of"," ",(null==o?void 0:o.count)||0," results"]})})]})};
|
|
2
2
|
//# sourceMappingURL=Pagination.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_rollupPluginBabelHelpers.js"),r=require("react/jsx-runtime"),s=require("react"),t=require("./Pagination.js"),i=require("../../lib/helpFunction.js");require("../../lib/utils.js");exports.default=function(){var a=s.useState({count:150,next:"http://127.0.0.1:8000/api/v1/posts/?limit=20&offset=20",previous:null,results:[]}),l=e.slicedToArray(a,2),n=l[0],o=l[1],d=s.useState(""),u=e.slicedToArray(d,2),c=u[0],p=u[1],h=s.useState(""),x=e.slicedToArray(h,2),j=x[0],v=x[1],g=s.useState("0"),m=e.slicedToArray(g,2),f=m[0],y=m[1];return r.jsxs("div",{style:{padding:"2rem",fontFamily:"var(--Nunito, sans-serif)"},children:[r.jsx("h2",{style:{marginBottom:"2rem",color:"var(--DarkCyan)"},children:"Enhanced Pagination with API Integration"}),r.jsxs("div",{style:{marginBottom:"2rem",display:"flex",gap:"1rem",flexWrap:"wrap"},children:[r.jsxs("div",{children:[r.jsx("label",{children:"Search: "}),r.jsx("input",{type:"text",value:c,onChange:function(e){return r=e.target.value,p(r),void y("0");var r},placeholder:"Search posts...",style:{padding:"0.5rem",border:"1px solid #ccc",borderRadius:"4px"}})]}),r.jsxs("div",{children:[r.jsx("label",{children:"Category: "}),r.jsxs("select",{value:j,onChange:function(e){return r=e.target.value,v(r),void y("0");var r},style:{padding:"0.5rem",border:"1px solid #ccc",borderRadius:"4px"},children:[r.jsx("option",{value:"",children:"All Categories"}),r.jsx("option",{value:"tech",children:"Technology"}),r.jsx("option",{value:"design",children:"Design"}),r.jsx("option",{value:"business",children:"Business"})]})]})]}),r.jsxs("div",{style:{marginBottom:"2rem",padding:"1rem",backgroundColor:"#f8f9fa",borderRadius:"8px"},children:[r.jsx("h3",{children:"Current State:"}),r.jsxs("p",{children:["Offset: ",f]}),r.jsxs("p",{children:['Search: "',c,'"']}),r.jsxs("p",{children:['Tab: "',j,'"']}),r.jsxs("p",{children:["Total items: ",n.count]})]}),r.jsx(t.default,{offset:f,data:n,limit:20,urlPath:i.API_HOST_URL+"posts/",setData:o,token:"mock-token",searchValues:c,tabsValues:j,rangeLimit:5,showFirstLast:!0})]})};
|
|
2
2
|
//# sourceMappingURL=PaginationDemo.js.map
|