feat(companies): Enhance company forms with additional fields
This commit expands the company profile by adding several new fields to the create and edit forms. This allows for the collection of more detailed and comprehensive company information. Key changes include: - Added new fields: Establishment Date, Company Type, Business Nature, Industry, Country, State, and City. - Introduced a new reusable `DatePicker` component, utilizing `react-datepicker`, for date input. - Created a new `CalendarIcon` for use in the date picker. - Updated the company Zod schema, API services, and data types to support the new fields. Additionally, this commit includes a refactor to standardize the `MultiSelect` component by renaming the `text` prop to `label` for better consistency across form elements. Form labels are now capitalized for a uniform UI.
This commit is contained in:
@@ -46,6 +46,65 @@
|
||||
|
||||
/* third-party libraries CSS */
|
||||
|
||||
.rmdp-wrapper {
|
||||
@apply !shadow-3 dark:!shadow-card;
|
||||
}
|
||||
|
||||
.rmdp-calendar {
|
||||
@apply !p-6 dark:!bg-gray-dark;
|
||||
}
|
||||
.rmdp-month-picker {
|
||||
@apply dark:!bg-gray-dark;
|
||||
}
|
||||
.rmdp-year-picker {
|
||||
@apply dark:!bg-gray-dark;
|
||||
}
|
||||
|
||||
.rmdp-header-values,
|
||||
.rmdp-week-day {
|
||||
@apply dark:!text-white;
|
||||
}
|
||||
|
||||
.rmdp-arrow {
|
||||
@apply dark:!border-white;
|
||||
}
|
||||
|
||||
.rmdp-arrow:hover {
|
||||
@apply !bg-gray-2 dark:!bg-dark-2;
|
||||
}
|
||||
|
||||
.rmdp-day {
|
||||
@apply dark:!text-dark-6;
|
||||
}
|
||||
|
||||
.rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover {
|
||||
@apply !border-gray-2 !bg-gray-2 !text-dark dark:!border-dark-2 dark:!bg-dark-2 dark:!text-white;
|
||||
}
|
||||
|
||||
.rmdp-day.rmdp-today span {
|
||||
@apply !bg-gray-2/70 !text-dark dark:!bg-dark-2/70 dark:!text-white;
|
||||
}
|
||||
|
||||
.rmdp-selected span:not(.highlight) {
|
||||
@apply !border-primary !bg-primary !text-white;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
.rmdp-day.rmdp-range {
|
||||
@apply !bg-gray-2 !shadow-none dark:!bg-dark-2;
|
||||
color: inherit !important;
|
||||
}
|
||||
.rmdp-day.rmdp-range.start {
|
||||
@apply !bg-gray-2 !shadow-none dark:!bg-dark-2 !text-white;
|
||||
}
|
||||
.rmdp-day.rmdp-range.end {
|
||||
@apply !bg-gray-2 !shadow-none dark:!bg-dark-2 !text-white;
|
||||
}
|
||||
|
||||
.rmdp-day.rmdp-range.start,
|
||||
.rmdp-day.rmdp-range.end {
|
||||
@apply !bg-primary;
|
||||
}
|
||||
.tableCheckbox:checked ~ div span {
|
||||
@apply opacity-100;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user