kitunga-web 0.1.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/buttons/components/Btns/Button.d.ts +32 -0
- package/dist/features/buttons/components/Btns/Button.d.ts.map +1 -0
- package/dist/features/buttons/components/Btns/Button.js +50 -0
- package/dist/features/buttons/components/Btns/Button.js.map +1 -0
- package/dist/features/buttons/components/Btns/Button.module.css +205 -0
- package/dist/features/data-display/components/Cards/ChartCard.d.ts +9 -0
- package/dist/features/data-display/components/Cards/ChartCard.d.ts.map +1 -0
- package/dist/features/data-display/components/Cards/ChartCard.js +7 -0
- package/dist/features/data-display/components/Cards/ChartCard.js.map +1 -0
- package/dist/features/data-display/components/Cards/ChartCard.module.css +27 -0
- package/dist/features/data-display/components/Cards/MetricCard.d.ts +11 -0
- package/dist/features/data-display/components/Cards/MetricCard.d.ts.map +1 -0
- package/dist/features/data-display/components/Cards/MetricCard.js +10 -0
- package/dist/features/data-display/components/Cards/MetricCard.js.map +1 -0
- package/dist/features/data-display/components/Cards/MetricCard.module.css +86 -0
- package/dist/features/data-display/components/Cards/StatCard.d.ts +15 -0
- package/dist/features/data-display/components/Cards/StatCard.d.ts.map +1 -0
- package/dist/features/data-display/components/Cards/StatCard.js +23 -0
- package/dist/features/data-display/components/Cards/StatCard.js.map +1 -0
- package/dist/features/data-display/components/Cards/StatCard.module.css +98 -0
- package/dist/features/data-display/components/Table/LineItemsTable.d.ts +4 -0
- package/dist/features/data-display/components/Table/LineItemsTable.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/LineItemsTable.js +216 -0
- package/dist/features/data-display/components/Table/LineItemsTable.js.map +1 -0
- package/dist/features/data-display/components/Table/LineItemsTable.module.css +223 -0
- package/dist/features/data-display/components/Table/Table.d.ts +4 -0
- package/dist/features/data-display/components/Table/Table.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/Table.js +181 -0
- package/dist/features/data-display/components/Table/Table.js.map +1 -0
- package/dist/features/data-display/components/Table/Table.module.css +305 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.d.ts +83 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.js +2 -0
- package/dist/features/data-display/components/Table/types/LineItemsTable.js.map +1 -0
- package/dist/features/data-display/components/Table/types/Table.d.ts +78 -0
- package/dist/features/data-display/components/Table/types/Table.d.ts.map +1 -0
- package/dist/features/data-display/components/Table/types/Table.js +2 -0
- package/dist/features/data-display/components/Table/types/Table.js.map +1 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.d.ts +12 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.d.ts.map +1 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.js +7 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.js.map +1 -0
- package/dist/features/data-display/components/Tabs/PillTabs/PillTabs.module.css +36 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.d.ts +18 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.d.ts.map +1 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.js +52 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.js.map +1 -0
- package/dist/features/feedback/components/ChangedDataSummary/ChangedDataSummary.module.css +90 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.d.ts +21 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.d.ts.map +1 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.js +37 -0
- package/dist/features/feedback/components/ChangedDataSummary/getFormDataChanges.js.map +1 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.d.ts +15 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.d.ts.map +1 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.js +56 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.js.map +1 -0
- package/dist/features/feedback/components/CreatedDataSummary/CreatedDataSummary.module.css +90 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.d.ts +9 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.d.ts.map +1 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.js +9 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.js.map +1 -0
- package/dist/features/feedback/components/EmptyStates/SearchEmptyState/SearchEmptyState.module.css +36 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.d.ts +8 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.d.ts.map +1 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.js +52 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.js.map +1 -0
- package/dist/features/feedback/components/FlowNotice/FlowNotice.module.css +122 -0
- package/dist/features/feedback/components/Loading/AppLoading.d.ts +14 -0
- package/dist/features/feedback/components/Loading/AppLoading.d.ts.map +1 -0
- package/dist/features/feedback/components/Loading/AppLoading.js +17 -0
- package/dist/features/feedback/components/Loading/AppLoading.js.map +1 -0
- package/dist/features/feedback/components/Loading/AppLoading.module.css +95 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.d.ts +24 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.d.ts.map +1 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.js +11 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.js.map +1 -0
- package/dist/features/feedback/components/SuccesModal/ModalSuccess.module.css +141 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.d.ts +10 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.d.ts.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.js +48 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.js.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltip.module.css +123 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.d.ts +11 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.d.ts.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.js +8 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.js.map +1 -0
- package/dist/features/feedback/components/Tooltips/InfoTooltipContent.module.css +58 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.d.ts +27 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.d.ts.map +1 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.js +56 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.js.map +1 -0
- package/dist/features/feedback/components/Tooltips/ProgressChecklistTooltip.module.css +200 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.d.ts +13 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.js +97 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/features/inputs/components/DatePicker/DatePicker.module.css +186 -0
- package/dist/features/inputs/components/Inputs/DateInput.d.ts +27 -0
- package/dist/features/inputs/components/Inputs/DateInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/DateInput.js +236 -0
- package/dist/features/inputs/components/Inputs/DateInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/DateInput.module.css +301 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.d.ts +24 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.js +10 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/DateRangeInput.module.css +24 -0
- package/dist/features/inputs/components/Inputs/NumberInput.d.ts +21 -0
- package/dist/features/inputs/components/Inputs/NumberInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/NumberInput.js +82 -0
- package/dist/features/inputs/components/Inputs/NumberInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/NumberInput.module.css +148 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.d.ts +9 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.js +187 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/PhoneInput.module.css +259 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.js +20 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/ao.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.js +9 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/br.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.d.ts +5 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.js +48 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/index.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.js +9 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/pt.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.d.ts +3 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.js +17 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/countries/us.js.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.d.ts +10 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.js +2 -0
- package/dist/features/inputs/components/Inputs/PhoneInput/types/phone.types.js.map +1 -0
- package/dist/features/inputs/components/Inputs/SearchInput.d.ts +13 -0
- package/dist/features/inputs/components/Inputs/SearchInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/SearchInput.js +12 -0
- package/dist/features/inputs/components/Inputs/SearchInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/SearchInput.module.css +107 -0
- package/dist/features/inputs/components/Inputs/StepperInput.d.ts +14 -0
- package/dist/features/inputs/components/Inputs/StepperInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/StepperInput.js +44 -0
- package/dist/features/inputs/components/Inputs/StepperInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/StepperInput.module.css +96 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.d.ts +15 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.js +102 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/TaxIdInput.module.css +259 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.d.ts +5 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.js +3 -0
- package/dist/features/inputs/components/Inputs/TaxIdInput/index.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TextInput.d.ts +4 -0
- package/dist/features/inputs/components/Inputs/TextInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TextInput.js +61 -0
- package/dist/features/inputs/components/Inputs/TextInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TextInput.module.css +174 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.d.ts +4 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.js +45 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.js.map +1 -0
- package/dist/features/inputs/components/Inputs/TextareaInput.module.css +144 -0
- package/dist/features/inputs/components/Inputs/types/input.types.d.ts +28 -0
- package/dist/features/inputs/components/Inputs/types/input.types.d.ts.map +1 -0
- package/dist/features/inputs/components/Inputs/types/input.types.js +2 -0
- package/dist/features/inputs/components/Inputs/types/input.types.js.map +1 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.d.ts +25 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.d.ts.map +1 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.js +40 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.js.map +1 -0
- package/dist/features/navigation/components/Menu/SharedMenuItem.module.css +219 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.d.ts +13 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.d.ts.map +1 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.js +52 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.js.map +1 -0
- package/dist/features/navigation/components/PageFooter/PageFooter.module.css +24 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.d.ts +14 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.js +22 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/features/navigation/components/PageHeader/PageHeader.module.css +41 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.d.ts +24 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.js +131 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.js.map +1 -0
- package/dist/features/navigation/components/Sidebar/Sidebar.module.css +139 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.d.ts +66 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.d.ts.map +1 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.js +89 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.js.map +1 -0
- package/dist/features/overlays/components/DeleteModal/ComprehensiveDeleteModal.module.css +269 -0
- package/dist/features/overlays/components/Popup/Popup.d.ts +8 -0
- package/dist/features/overlays/components/Popup/Popup.d.ts.map +1 -0
- package/dist/features/overlays/components/Popup/Popup.js +23 -0
- package/dist/features/overlays/components/Popup/Popup.js.map +1 -0
- package/dist/features/overlays/components/Popup/Popup.module.css +64 -0
- package/dist/features/overlays/components/Popup/index.d.ts +3 -0
- package/dist/features/overlays/components/Popup/index.d.ts.map +1 -0
- package/dist/features/overlays/components/Popup/index.js +2 -0
- package/dist/features/overlays/components/Popup/index.js.map +1 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.d.ts +36 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.d.ts.map +1 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.js +38 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.js.map +1 -0
- package/dist/features/overlays/components/PrerequisiteGuardModal/PrerequisiteGuardModal.module.css +339 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.d.ts +18 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.d.ts.map +1 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.js +34 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.js.map +1 -0
- package/dist/features/overlays/components/dropdowns/DropdownMenu.module.css +23 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.d.ts +36 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.js +19 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/FormActions.module.css +88 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.d.ts +14 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.js +119 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/GenericStepRenderer.module.css +76 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.d.ts +3 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.js +486 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepForm.module.css +55 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.d.ts +16 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.js +8 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/MultiStepHeader.module.css +77 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.d.ts +10 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.js +9 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepIndicator.module.css +86 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.d.ts +13 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.js +9 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/StepsContainer.module.css +8 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.d.ts +20 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.js +7 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/components/SuccessScreen.module.css +13 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.d.ts +216 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.js +2 -0
- package/dist/features/patterns/components/Form/MultiStepForm/types/types.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.d.ts +6 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.js +22 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/constants.js.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.d.ts +10 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.js +31 -0
- package/dist/features/patterns/components/Form/MultiStepForm/utils/utils.js.map +1 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.d.ts +19 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.d.ts.map +1 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.js +104 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.js.map +1 -0
- package/dist/features/patterns/components/Form/VerificationCodeStep/VerificationCodeStep.module.css +55 -0
- package/dist/features/selects/components/Selects/CustomSelect.d.ts +27 -0
- package/dist/features/selects/components/Selects/CustomSelect.d.ts.map +1 -0
- package/dist/features/selects/components/Selects/CustomSelect.js +53 -0
- package/dist/features/selects/components/Selects/CustomSelect.js.map +1 -0
- package/dist/features/selects/components/Selects/CustomSelect.module.css +307 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.d.ts +12 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.d.ts.map +1 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.js +178 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.js.map +1 -0
- package/dist/features/uploads/components/ImageUpload/ImageUpload.module.css +254 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.d.ts +12 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.d.ts.map +1 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.js +183 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.js.map +1 -0
- package/dist/features/uploads/components/VideoUpload/VideoUpload.module.css +277 -0
- package/dist/features/uploads/components/VideoUpload/index.d.ts +2 -0
- package/dist/features/uploads/components/VideoUpload/index.d.ts.map +1 -0
- package/dist/features/uploads/components/VideoUpload/index.js +2 -0
- package/dist/features/uploads/components/VideoUpload/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/shared/styles/globals.css +80 -0
- package/dist/shared/styles/tokens.css +138 -0
- package/dist/shared/utils/devDelay.d.ts +8 -0
- package/dist/shared/utils/devDelay.d.ts.map +1 -0
- package/dist/shared/utils/devDelay.js +11 -0
- package/dist/shared/utils/devDelay.js.map +1 -0
- package/dist/shared/utils/files.d.ts +9 -0
- package/dist/shared/utils/files.d.ts.map +1 -0
- package/dist/shared/utils/files.js +26 -0
- package/dist/shared/utils/files.js.map +1 -0
- package/dist/shared/utils/formatCurrency.d.ts +24 -0
- package/dist/shared/utils/formatCurrency.d.ts.map +1 -0
- package/dist/shared/utils/formatCurrency.js +96 -0
- package/dist/shared/utils/formatCurrency.js.map +1 -0
- package/dist/shared/utils/location/countries/ao.d.ts +3 -0
- package/dist/shared/utils/location/countries/ao.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/ao.js +52 -0
- package/dist/shared/utils/location/countries/ao.js.map +1 -0
- package/dist/shared/utils/location/countries/ao.json +254 -0
- package/dist/shared/utils/location/countries/ao.official-2026.json +254 -0
- package/dist/shared/utils/location/countries/br.d.ts +3 -0
- package/dist/shared/utils/location/countries/br.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/br.js +33 -0
- package/dist/shared/utils/location/countries/br.js.map +1 -0
- package/dist/shared/utils/location/countries/mz.d.ts +3 -0
- package/dist/shared/utils/location/countries/mz.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/mz.js +17 -0
- package/dist/shared/utils/location/countries/mz.js.map +1 -0
- package/dist/shared/utils/location/countries/ng.d.ts +3 -0
- package/dist/shared/utils/location/countries/ng.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/ng.js +43 -0
- package/dist/shared/utils/location/countries/ng.js.map +1 -0
- package/dist/shared/utils/location/countries/pt.d.ts +3 -0
- package/dist/shared/utils/location/countries/pt.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/pt.js +26 -0
- package/dist/shared/utils/location/countries/pt.js.map +1 -0
- package/dist/shared/utils/location/countries/us.d.ts +3 -0
- package/dist/shared/utils/location/countries/us.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/us.js +57 -0
- package/dist/shared/utils/location/countries/us.js.map +1 -0
- package/dist/shared/utils/location/countries/za.d.ts +3 -0
- package/dist/shared/utils/location/countries/za.d.ts.map +1 -0
- package/dist/shared/utils/location/countries/za.js +15 -0
- package/dist/shared/utils/location/countries/za.js.map +1 -0
- package/dist/shared/utils/location/index.d.ts +14 -0
- package/dist/shared/utils/location/index.d.ts.map +1 -0
- package/dist/shared/utils/location/index.js +131 -0
- package/dist/shared/utils/location/index.js.map +1 -0
- package/dist/shared/utils/location/types.d.ts +24 -0
- package/dist/shared/utils/location/types.d.ts.map +1 -0
- package/dist/shared/utils/location/types.js +2 -0
- package/dist/shared/utils/location/types.js.map +1 -0
- package/dist/shared/utils/logger.d.ts +43 -0
- package/dist/shared/utils/logger.d.ts.map +1 -0
- package/dist/shared/utils/logger.js +139 -0
- package/dist/shared/utils/logger.js.map +1 -0
- package/dist/shared/utils/maskedDecimal.d.ts +8 -0
- package/dist/shared/utils/maskedDecimal.d.ts.map +1 -0
- package/dist/shared/utils/maskedDecimal.js +42 -0
- package/dist/shared/utils/maskedDecimal.js.map +1 -0
- package/dist/shared/utils/slug.d.ts +12 -0
- package/dist/shared/utils/slug.d.ts.map +1 -0
- package/dist/shared/utils/slug.js +31 -0
- package/dist/shared/utils/slug.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/ao.d.ts +11 -0
- package/dist/shared/utils/tax-id/countries/ao.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/ao.js +115 -0
- package/dist/shared/utils/tax-id/countries/ao.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/br.d.ts +3 -0
- package/dist/shared/utils/tax-id/countries/br.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/br.js +24 -0
- package/dist/shared/utils/tax-id/countries/br.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/index.d.ts +8 -0
- package/dist/shared/utils/tax-id/countries/index.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/index.js +12 -0
- package/dist/shared/utils/tax-id/countries/index.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/pt.d.ts +3 -0
- package/dist/shared/utils/tax-id/countries/pt.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/pt.js +24 -0
- package/dist/shared/utils/tax-id/countries/pt.js.map +1 -0
- package/dist/shared/utils/tax-id/countries/us.d.ts +3 -0
- package/dist/shared/utils/tax-id/countries/us.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/countries/us.js +24 -0
- package/dist/shared/utils/tax-id/countries/us.js.map +1 -0
- package/dist/shared/utils/tax-id/index.d.ts +14 -0
- package/dist/shared/utils/tax-id/index.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/index.js +140 -0
- package/dist/shared/utils/tax-id/index.js.map +1 -0
- package/dist/shared/utils/tax-id/types.d.ts +21 -0
- package/dist/shared/utils/tax-id/types.d.ts.map +1 -0
- package/dist/shared/utils/tax-id/types.js +2 -0
- package/dist/shared/utils/tax-id/types.js.map +1 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +2 -0
- package/dist/styles.js.map +1 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +2 -0
- package/dist/tokens.js.map +1 -0
- package/dist/ui.d.ts +67 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +39 -0
- package/dist/ui.js.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +4 -0
- package/dist/utils.js.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
type ButtonCommonProps = {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
text?: ReactNode;
|
|
5
|
+
leftIcon?: ReactNode;
|
|
6
|
+
rightIcon?: ReactNode;
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'secondaryGhost' | 'danger' | 'outline' | 'dangerGradient';
|
|
8
|
+
size?: 'sm' | 'md' | 'lg';
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
shape?: 'default' | 'round';
|
|
14
|
+
};
|
|
15
|
+
type ButtonAsButtonProps = ButtonCommonProps & {
|
|
16
|
+
as?: 'button';
|
|
17
|
+
type?: 'button' | 'submit';
|
|
18
|
+
href?: never;
|
|
19
|
+
target?: never;
|
|
20
|
+
rel?: never;
|
|
21
|
+
};
|
|
22
|
+
type ButtonAsLinkProps = ButtonCommonProps & {
|
|
23
|
+
as: 'link';
|
|
24
|
+
href: string;
|
|
25
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
26
|
+
rel?: string;
|
|
27
|
+
type?: never;
|
|
28
|
+
};
|
|
29
|
+
export type ButtonProps = ButtonAsButtonProps | ButtonAsLinkProps;
|
|
30
|
+
export default function Button({ children, text, leftIcon, rightIcon, variant, size, disabled, loading, onClick, className, shape, as, type, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/features/buttons/components/Btns/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG/D,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,gBAAgB,CAAC;IAC/F,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAC7B,CAAC;AAEF,KAAK,mBAAmB,GAAG,iBAAiB,GAAG;IAC7C,EAAE,CAAC,EAAE,QAAQ,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,GAAG,CAAC,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,KAAK,iBAAiB,GAAG,iBAAiB,GAAG;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IACjD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG,iBAAiB,CAAC;AAElE,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,OAAmB,EACnB,IAAW,EACX,QAAgB,EAChB,OAAe,EACf,OAAO,EACP,SAAc,EACd,KAAiB,EACjB,EAAa,EACb,IAAe,EACf,GAAG,IAAI,EACR,EAAE,WAAW,2CAuEb"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import Link from 'next/link';
|
|
14
|
+
import styles from './Button.module.css';
|
|
15
|
+
export default function Button(_a) {
|
|
16
|
+
var { children, text, leftIcon, rightIcon, variant = 'primary', size = 'md', disabled = false, loading = false, onClick, className = '', shape = 'default', as = 'button', type = 'button' } = _a, rest = __rest(_a, ["children", "text", "leftIcon", "rightIcon", "variant", "size", "disabled", "loading", "onClick", "className", "shape", "as", "type"]);
|
|
17
|
+
const content = text !== null && text !== void 0 ? text : children;
|
|
18
|
+
const isRound = shape === 'round';
|
|
19
|
+
const roundSizeClass = isRound
|
|
20
|
+
? size === 'sm'
|
|
21
|
+
? styles.roundSm
|
|
22
|
+
: size === 'lg'
|
|
23
|
+
? styles.roundLg
|
|
24
|
+
: styles.roundMd
|
|
25
|
+
: '';
|
|
26
|
+
const buttonClasses = [
|
|
27
|
+
styles.button,
|
|
28
|
+
styles[variant],
|
|
29
|
+
styles[size],
|
|
30
|
+
isRound && styles.round,
|
|
31
|
+
roundSizeClass,
|
|
32
|
+
disabled && styles.disabled,
|
|
33
|
+
loading && styles.loading,
|
|
34
|
+
className
|
|
35
|
+
].filter(Boolean).join(' ');
|
|
36
|
+
const contentNode = loading ? (_jsxs("div", { className: styles.loader, children: [_jsx("div", { className: styles.spinner }), _jsx("span", { className: styles.label, children: content })] })) : (_jsxs("span", { className: styles.content, children: [leftIcon ? _jsx("span", { className: styles.icon, children: leftIcon }) : null, _jsx("span", { className: styles.label, children: content }), rightIcon ? _jsx("span", { className: styles.icon, children: rightIcon }) : null] }));
|
|
37
|
+
if (as === 'link') {
|
|
38
|
+
const { href, target, rel } = rest;
|
|
39
|
+
const handleLinkClick = (event) => {
|
|
40
|
+
if (disabled || loading) {
|
|
41
|
+
event.preventDefault();
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
45
|
+
};
|
|
46
|
+
return (_jsx(Link, { href: href, target: target, rel: rel, className: buttonClasses, "aria-disabled": disabled || loading, tabIndex: disabled || loading ? -1 : undefined, onClick: handleLinkClick, children: contentNode }));
|
|
47
|
+
}
|
|
48
|
+
return (_jsx("button", { type: type, className: buttonClasses, onClick: onClick, disabled: disabled || loading, children: contentNode }));
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../../src/features/buttons/components/Btns/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAkCzC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAejB;QAfiB,EAC7B,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,OAAO,GAAG,SAAS,EACnB,IAAI,GAAG,IAAI,EACX,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,KAAK,EACf,OAAO,EACP,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,SAAS,EACjB,EAAE,GAAG,QAAQ,EACb,IAAI,GAAG,QAAQ,OAEH,EADT,IAAI,cAdsB,sIAe9B,CADQ;IAEP,MAAM,OAAO,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,QAAQ,CAAC;IACjC,MAAM,OAAO,GAAG,KAAK,KAAK,OAAO,CAAC;IAClC,MAAM,cAAc,GAAG,OAAO;QAC5B,CAAC,CAAC,IAAI,KAAK,IAAI;YACb,CAAC,CAAC,MAAM,CAAC,OAAO;YAChB,CAAC,CAAC,IAAI,KAAK,IAAI;gBACb,CAAC,CAAC,MAAM,CAAC,OAAO;gBAChB,CAAC,CAAC,MAAM,CAAC,OAAO;QACpB,CAAC,CAAC,EAAE,CAAC;IAEP,MAAM,aAAa,GAAG;QACpB,MAAM,CAAC,MAAM;QACb,MAAM,CAAC,OAAO,CAAC;QACf,MAAM,CAAC,IAAI,CAAC;QACZ,OAAO,IAAI,MAAM,CAAC,KAAK;QACvB,cAAc;QACd,QAAQ,IAAI,MAAM,CAAC,QAAQ;QAC3B,OAAO,IAAI,MAAM,CAAC,OAAO;QACzB,SAAS;KACV,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE5B,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAC5B,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,GAAQ,EACtC,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,OAAO,GAAQ,IAC3C,CACP,CAAC,CAAC,CAAC,CACF,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,QAAQ,CAAC,CAAC,CAAC,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,QAAQ,GAAQ,CAAC,CAAC,CAAC,IAAI,EAClE,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,OAAO,GAAQ,EAC9C,SAAS,CAAC,CAAC,CAAC,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,SAAS,GAAQ,CAAC,CAAC,CAAC,IAAI,IAC/D,CACR,CAAC;IAEF,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;QAClB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,IAAyB,CAAC;QACxD,MAAM,eAAe,GAAyC,CAAC,KAAK,EAAE,EAAE;YACtE,IAAI,QAAQ,IAAI,OAAO,EAAE,CAAC;gBACxB,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,OAAO;YACT,CAAC;YAED,OAAO,aAAP,OAAO,uBAAP,OAAO,EAAI,CAAC;QACd,CAAC,CAAC;QAEF,OAAO,CACL,KAAC,IAAI,IACH,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,aAAa,mBACT,QAAQ,IAAI,OAAO,EAClC,QAAQ,EAAE,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EAC9C,OAAO,EAAE,eAAe,YAEvB,WAAW,GACP,CACR,CAAC;IACJ,CAAC;IAED,OAAO,CACL,iBACE,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IAAI,OAAO,YAE5B,WAAW,GACL,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
.button {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: var(--spacing-sm);
|
|
6
|
+
border: none;
|
|
7
|
+
border-radius: var(--radius-sm);
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
transition: all var(--transition-fast);
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
font-family: inherit;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.content {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
gap: var(--spacing-sm);
|
|
22
|
+
min-width: 0;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.label {
|
|
27
|
+
display: block;
|
|
28
|
+
text-align: center;
|
|
29
|
+
line-height: 1;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
min-width: 0;
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.icon {
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.button:focus {
|
|
45
|
+
outline: 2px solid var(--color-primary);
|
|
46
|
+
outline-offset: 2px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/* Variants */
|
|
51
|
+
.primary {
|
|
52
|
+
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
|
|
53
|
+
color: white;
|
|
54
|
+
padding: var(--spacing-sm-md) var(--spacing-md);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.primary:hover:not(:disabled) {
|
|
58
|
+
background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.secondary {
|
|
62
|
+
background-color: var(--bg-surface-secondary);
|
|
63
|
+
color: var(--text-primary);
|
|
64
|
+
border: 1px solid var(--border-divider);
|
|
65
|
+
padding: var(--spacing-sm-md) var(--spacing-md);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.secondary:hover:not(:disabled) {
|
|
69
|
+
background-color: var(--bg-hover-normal);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.secondaryGhost {
|
|
73
|
+
background-color: var(--bg-surface-secondary);
|
|
74
|
+
color: var(--text-primary);
|
|
75
|
+
border: none;
|
|
76
|
+
padding: var(--spacing-sm-md) var(--spacing-md);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.secondaryGhost:hover:not(:disabled) {
|
|
80
|
+
background-color: var(--bg-hover-normal);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.danger {
|
|
84
|
+
background-color: var(--color-error);
|
|
85
|
+
color: white;
|
|
86
|
+
padding: var(--spacing-sm-md) var(--spacing-md);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.danger:hover:not(:disabled) {
|
|
90
|
+
background-color: #dc2626;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
.outline {
|
|
95
|
+
background-color: transparent;
|
|
96
|
+
color: var(--color-primary);
|
|
97
|
+
border: none;
|
|
98
|
+
padding: var(--spacing-sm-md) var(--spacing-md);
|
|
99
|
+
position: relative;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.outline::before {
|
|
103
|
+
content: '';
|
|
104
|
+
position: absolute;
|
|
105
|
+
inset: 0;
|
|
106
|
+
padding: 2px;
|
|
107
|
+
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
|
|
108
|
+
border-radius: inherit;
|
|
109
|
+
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
110
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
111
|
+
mask-composite: xor;
|
|
112
|
+
-webkit-mask-composite: xor;
|
|
113
|
+
pointer-events: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.outline:hover:not(:disabled) {
|
|
117
|
+
background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
|
|
118
|
+
color: white;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.outline:hover:not(:disabled)::before {
|
|
122
|
+
background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.round {
|
|
126
|
+
border-radius: 50%;
|
|
127
|
+
padding: 0;
|
|
128
|
+
overflow: visible;
|
|
129
|
+
max-width: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.round .content {
|
|
133
|
+
overflow: visible;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.round .label:empty {
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.roundSm {
|
|
141
|
+
width: 35px;
|
|
142
|
+
min-width: 35px;
|
|
143
|
+
height: 35px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.roundMd {
|
|
147
|
+
width: 40px;
|
|
148
|
+
min-width: 40px;
|
|
149
|
+
height: 40px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.roundLg {
|
|
153
|
+
width: 45px;
|
|
154
|
+
min-width: 45px;
|
|
155
|
+
height: 45px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* Sizes */
|
|
159
|
+
.sm {
|
|
160
|
+
padding: var(--spacing-sm) var(--spacing-md);
|
|
161
|
+
font-size: 0.875rem;
|
|
162
|
+
height: 35px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.md {
|
|
166
|
+
height: 40px;
|
|
167
|
+
padding: var(--spacing-sm-md) var(--spacing-md);
|
|
168
|
+
font-size: 0.95rem;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.lg {
|
|
172
|
+
height: 45px;
|
|
173
|
+
font-size: 1rem;
|
|
174
|
+
padding: var(--spacing-md);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* States */
|
|
178
|
+
.disabled {
|
|
179
|
+
opacity: 0.6;
|
|
180
|
+
cursor: auto;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.loading {
|
|
184
|
+
cursor: wait;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.loader {
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
gap: var(--spacing-sm);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.spinner {
|
|
194
|
+
width: 16px;
|
|
195
|
+
height: 16px;
|
|
196
|
+
border: 2px solid transparent;
|
|
197
|
+
border-top: 2px solid currentColor;
|
|
198
|
+
border-radius: 50%;
|
|
199
|
+
animation: spin 1s linear infinite;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@keyframes spin {
|
|
203
|
+
0% { transform: rotate(0deg); }
|
|
204
|
+
100% { transform: rotate(360deg); }
|
|
205
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ChartCardProps {
|
|
2
|
+
title: string;
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
headerRight?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default function ChartCard({ title, children, className, headerRight }: ChartCardProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ChartCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/data-display/components/Cards/ChartCard.tsx"],"names":[],"mappings":"AAIA,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAc,EAAE,WAAW,EAAE,EAAE,cAAc,2CAYjG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import styles from './ChartCard.module.css';
|
|
4
|
+
export default function ChartCard({ title, children, className = '', headerRight }) {
|
|
5
|
+
return (_jsxs("div", { className: `${styles.card} ${className}`, children: [_jsxs("div", { className: styles.header, children: [_jsx("h3", { className: styles.title, children: title }), headerRight] }), _jsx("div", { className: styles.content, children: children })] }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ChartCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartCard.js","sourceRoot":"","sources":["../../../../../src/features/data-display/components/Cards/ChartCard.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAS5C,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,GAAG,EAAE,EAAE,WAAW,EAAkB;IAChG,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,SAAS,EAAE,aAC3C,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,KAAK,GAAM,EACxC,WAAW,IACR,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAC3B,QAAQ,GACL,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
background: white;
|
|
3
|
+
border-radius: var(--radius-sm);
|
|
4
|
+
padding: var(--spacing-md);
|
|
5
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
6
|
+
border: 1px solid #e5e7eb;
|
|
7
|
+
height: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.header {
|
|
11
|
+
margin-bottom: 1.5rem;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
gap: var(--spacing-md);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.title {
|
|
19
|
+
font-size: 18px;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
color: #1f2937;
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.content {
|
|
26
|
+
height: calc(100% - 3rem);
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface MetricCardProps {
|
|
2
|
+
title: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
change?: number;
|
|
5
|
+
changeLabel?: string;
|
|
6
|
+
icon: React.ReactNode;
|
|
7
|
+
color?: 'blue' | 'green' | 'yellow' | 'red' | 'purple';
|
|
8
|
+
}
|
|
9
|
+
export default function MetricCard({ title, value, change, changeLabel, icon, color }: MetricCardProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=MetricCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/data-display/components/Cards/MetricCard.tsx"],"names":[],"mappings":"AAKA,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;CACxD;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,KAAK,EACL,KAAK,EACL,MAAM,EACN,WAAW,EACX,IAAI,EACJ,KAAc,EACf,EAAE,eAAe,2CAyBjB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { TrendingUp, TrendingDown } from 'lucide-react';
|
|
4
|
+
import styles from './MetricCard.module.css';
|
|
5
|
+
export default function MetricCard({ title, value, change, changeLabel, icon, color = 'blue' }) {
|
|
6
|
+
const isPositive = change && change > 0;
|
|
7
|
+
const isNegative = change && change < 0;
|
|
8
|
+
return (_jsxs("div", { className: `${styles.card} ${styles[color]}`, children: [_jsxs("div", { className: styles.header, children: [_jsx("div", { className: styles.iconContainer, children: icon }), _jsx("div", { className: styles.title, children: title })] }), _jsx("div", { className: styles.value, children: value }), change !== undefined && (_jsxs("div", { className: `${styles.change} ${isPositive ? styles.positive : isNegative ? styles.negative : ''}`, children: [isPositive && _jsx(TrendingUp, { size: 16 }), isNegative && _jsx(TrendingDown, { size: 16 }), _jsxs("span", { children: [Math.abs(change), "%"] }), changeLabel && _jsx("span", { className: styles.changeLabel, children: changeLabel })] }))] }));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=MetricCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricCard.js","sourceRoot":"","sources":["../../../../../src/features/data-display/components/Cards/MetricCard.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAW7C,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,KAAK,EACL,KAAK,EACL,MAAM,EACN,WAAW,EACX,IAAI,EACJ,KAAK,GAAG,MAAM,EACE;IAChB,MAAM,UAAU,GAAG,MAAM,IAAI,MAAM,GAAG,CAAC,CAAC;IACxC,MAAM,UAAU,GAAG,MAAM,IAAI,MAAM,GAAG,CAAC,CAAC;IAExC,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,aAC/C,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,aAAa,YACjC,IAAI,GACD,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,KAAK,GAAO,IACvC,EAEN,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,KAAK,GAAO,EAE1C,MAAM,KAAK,SAAS,IAAI,CACvB,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,aACnG,UAAU,IAAI,KAAC,UAAU,IAAC,IAAI,EAAE,EAAE,GAAI,EACtC,UAAU,IAAI,KAAC,YAAY,IAAC,IAAI,EAAE,EAAE,GAAI,EACzC,2BAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,EAC/B,WAAW,IAAI,eAAM,SAAS,EAAE,MAAM,CAAC,WAAW,YAAG,WAAW,GAAQ,IACrE,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
background: white;
|
|
3
|
+
border-radius: 8px;
|
|
4
|
+
padding: 1.5rem;
|
|
5
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
6
|
+
border: 1px solid #e5e7eb;
|
|
7
|
+
transition: all 0.2s;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.card:hover {
|
|
11
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
12
|
+
transform: translateY(-1px);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.header {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
margin-bottom: 1rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.iconContainer {
|
|
23
|
+
width: 40px;
|
|
24
|
+
height: 40px;
|
|
25
|
+
border-radius: 8px;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
color: white;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.title {
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
color: #6b7280;
|
|
36
|
+
text-align: right;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.value {
|
|
40
|
+
font-size: 2rem;
|
|
41
|
+
font-weight: 700;
|
|
42
|
+
color: #1f2937;
|
|
43
|
+
margin-bottom: 0.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.change {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: 0.25rem;
|
|
50
|
+
font-size: 14px;
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.positive {
|
|
55
|
+
color: #059669;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.negative {
|
|
59
|
+
color: #dc2626;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.changeLabel {
|
|
63
|
+
color: #6b7280;
|
|
64
|
+
font-weight: 400;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Color variants */
|
|
68
|
+
.blue .iconContainer {
|
|
69
|
+
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.green .iconContainer {
|
|
73
|
+
background: linear-gradient(135deg, #10b981, #059669);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.yellow .iconContainer {
|
|
77
|
+
background: linear-gradient(135deg, #f59e0b, #d97706);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.red .iconContainer {
|
|
81
|
+
background: linear-gradient(135deg, #ef4444, #dc2626);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.purple .iconContainer {
|
|
85
|
+
background: linear-gradient(135deg, #8b5cf6, #7c3aed);
|
|
86
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type StatCardValueFormat = 'default' | 'compact-number' | 'compact-currency';
|
|
3
|
+
export interface StatCardProps {
|
|
4
|
+
icon: ReactNode;
|
|
5
|
+
value: string | number;
|
|
6
|
+
label: string;
|
|
7
|
+
subtext?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
valueFormat?: StatCardValueFormat;
|
|
11
|
+
compactDecimals?: number;
|
|
12
|
+
compactCurrencySuffix?: string;
|
|
13
|
+
}
|
|
14
|
+
export default function StatCard({ icon, value, label, subtext, className, isLoading, valueFormat, compactDecimals, compactCurrencySuffix, }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=StatCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../../../../../src/features/data-display/components/Cards/StatCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;AAEpF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAqBD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,KAAK,EACL,OAAO,EACP,SAAc,EACd,SAAiB,EACjB,WAAuB,EACvB,eAAmB,EACnB,qBAAqB,GACtB,EAAE,aAAa,2CA8Bf"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { formatCompactCurrency, formatCompactNumber } from '@/shared/utils/formatCurrency';
|
|
3
|
+
import styles from './StatCard.module.css';
|
|
4
|
+
function resolveValue(params) {
|
|
5
|
+
const { value, valueFormat, compactDecimals, compactCurrencySuffix } = params;
|
|
6
|
+
if (valueFormat === 'compact-number') {
|
|
7
|
+
return formatCompactNumber(value, compactDecimals);
|
|
8
|
+
}
|
|
9
|
+
if (valueFormat === 'compact-currency') {
|
|
10
|
+
return formatCompactCurrency(value, compactCurrencySuffix, compactDecimals);
|
|
11
|
+
}
|
|
12
|
+
return value;
|
|
13
|
+
}
|
|
14
|
+
export default function StatCard({ icon, value, label, subtext, className = '', isLoading = false, valueFormat = 'default', compactDecimals = 1, compactCurrencySuffix, }) {
|
|
15
|
+
const resolvedValue = resolveValue({
|
|
16
|
+
value,
|
|
17
|
+
valueFormat,
|
|
18
|
+
compactDecimals,
|
|
19
|
+
compactCurrencySuffix,
|
|
20
|
+
});
|
|
21
|
+
return (_jsxs("div", { className: `${styles.statCard} ${className}`, children: [_jsx("div", { className: styles.statIcon, children: icon }), _jsxs("div", { className: styles.statContent, children: [_jsx("div", { className: styles.statValue, children: isLoading ? _jsx("span", { className: styles.skeletonValue }) : resolvedValue }), _jsxs("div", { className: styles.statContentText, children: [_jsx("div", { className: styles.statLabel, children: isLoading ? _jsx("span", { className: styles.skeletonLabel }) : label }), subtext && (_jsx("div", { className: styles.statChange, children: isLoading ? _jsx("span", { className: styles.skeletonSubtext }) : subtext }))] })] })] }));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=StatCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatCard.js","sourceRoot":"","sources":["../../../../../src/features/data-display/components/Cards/StatCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAgB3C,SAAS,YAAY,CAAC,MAKrB;IACC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;IAE9E,IAAI,WAAW,KAAK,gBAAgB,EAAE,CAAC;QACrC,OAAO,mBAAmB,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,WAAW,KAAK,kBAAkB,EAAE,CAAC;QACvC,OAAO,qBAAqB,CAAC,KAAK,EAAE,qBAAqB,EAAE,eAAe,CAAC,CAAC;IAC9E,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,KAAK,EACL,OAAO,EACP,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,SAAS,EACvB,eAAe,GAAG,CAAC,EACnB,qBAAqB,GACP;IACd,MAAM,aAAa,GAAG,YAAY,CAAC;QACjC,KAAK;QACL,WAAW;QACX,eAAe;QACf,qBAAqB;KACtB,CAAC,CAAC;IAEH,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,SAAS,EAAE,aAC/C,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC5B,IAAI,GACD,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,WAAW,aAChC,cAAK,SAAS,EAAE,MAAM,CAAC,SAAS,YAC7B,SAAS,CAAC,CAAC,CAAC,eAAM,SAAS,EAAE,MAAM,CAAC,aAAa,GAAI,CAAC,CAAC,CAAC,aAAa,GAClE,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,eAAe,aACpC,cAAK,SAAS,EAAE,MAAM,CAAC,SAAS,YAC7B,SAAS,CAAC,CAAC,CAAC,eAAM,SAAS,EAAE,MAAM,CAAC,aAAa,GAAI,CAAC,CAAC,CAAC,KAAK,GAC1D,EACL,OAAO,IAAI,CACV,cAAK,SAAS,EAAE,MAAM,CAAC,UAAU,YAC9B,SAAS,CAAC,CAAC,CAAC,eAAM,SAAS,EAAE,MAAM,CAAC,eAAe,GAAI,CAAC,CAAC,CAAC,OAAO,GAC9D,CACP,IACG,IACF,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
.statCard {
|
|
2
|
+
box-shadow: var(--shadow-sm);
|
|
3
|
+
border: 1px solid var(--border-divider);
|
|
4
|
+
border-radius: var(--radius-sm);
|
|
5
|
+
padding: var(--spacing-md);
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: var(--spacing-md);
|
|
9
|
+
background-color: white;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.statIcon {
|
|
13
|
+
width: 40px;
|
|
14
|
+
height: 40px;
|
|
15
|
+
background: var(--bg-page);
|
|
16
|
+
border-radius: var(--radius-sm);
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.statContent {
|
|
25
|
+
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
text-align: left;
|
|
30
|
+
gap: var(--spacing-xs);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.statValue {
|
|
34
|
+
font-size: 2.1rem;
|
|
35
|
+
font-weight: 700;
|
|
36
|
+
color: var(--text-primary);
|
|
37
|
+
line-height: 1.0;
|
|
38
|
+
text-align: left;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.statContentText {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
margin-top: -2px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.statLabel {
|
|
48
|
+
font-size: 0.875rem;
|
|
49
|
+
color: var(--text-secondary);
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
text-align: left;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.statChange {
|
|
55
|
+
font-size: 0.75rem;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
color: var(--text-tertiary);
|
|
58
|
+
text-align: left;
|
|
59
|
+
line-height: 1.0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.skeletonValue {
|
|
63
|
+
display: inline-block;
|
|
64
|
+
width: 40px;
|
|
65
|
+
height: 26px;
|
|
66
|
+
border-radius: 8px;
|
|
67
|
+
background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.10) 37%, rgba(0,0,0,0.06) 63%);
|
|
68
|
+
background-size: 400% 100%;
|
|
69
|
+
animation: statcard-shimmer 1.2s ease-in-out infinite;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.skeletonSubtext {
|
|
73
|
+
display: inline-block;
|
|
74
|
+
width: 86px;
|
|
75
|
+
height: 9px;
|
|
76
|
+
border-radius: 6px;
|
|
77
|
+
background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.10) 37%, rgba(0,0,0,0.06) 63%);
|
|
78
|
+
background-size: 400% 100%;
|
|
79
|
+
animation: statcard-shimmer 1.2s ease-in-out infinite;
|
|
80
|
+
margin-top: -15px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.skeletonLabel {
|
|
84
|
+
display: inline-block;
|
|
85
|
+
width: 72px;
|
|
86
|
+
height: 9px;
|
|
87
|
+
border-radius: 6px;
|
|
88
|
+
background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.10) 37%, rgba(0,0,0,0.06) 63%);
|
|
89
|
+
background-size: 400% 100%;
|
|
90
|
+
animation: statcard-shimmer 1.2s ease-in-out infinite;
|
|
91
|
+
margin-top: -20px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@keyframes statcard-shimmer {
|
|
95
|
+
0% { background-position: 100% 0; }
|
|
96
|
+
100% { background-position: 0 0; }
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { LineItemsTableProps } from './types/LineItemsTable';
|
|
2
|
+
export type { LineItemsAction as LineItemsActionType, LineItemsCalculations as LineItemsCalculationsType, LineItemsColumn as LineItemsColumnType, LineItemsColumnType as LineItemsColumnKind, LineItemsSummaryConfig as LineItemsSummaryConfigType, LineItemsTableProps as LineItemsTablePropsType, } from './types/LineItemsTable';
|
|
3
|
+
export default function LineItemsTable<T extends Record<string, any>>({ rows, columns, onAddRow, onUpdateRow, onRemoveRow, className, emptyText, addLabel, calculations, summaryConfig, }: LineItemsTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=LineItemsTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineItemsTable.d.ts","sourceRoot":"","sources":["../../../../../src/features/data-display/components/Table/LineItemsTable.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAOV,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,eAAe,IAAI,mBAAmB,EACtC,qBAAqB,IAAI,yBAAyB,EAClD,eAAe,IAAI,mBAAmB,EACtC,mBAAmB,IAAI,mBAAmB,EAC1C,sBAAsB,IAAI,0BAA0B,EACpD,mBAAmB,IAAI,uBAAuB,GAC/C,MAAM,wBAAwB,CAAC;AAwEhC,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EACpE,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,WAAW,EACX,SAAc,EACd,SAAuB,EACvB,QAA8B,EAC9B,YAAY,EACZ,aAAa,GACd,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CAkVxB"}
|