@axzydev/axzy_ui_system 1.2.13 → 1.2.14
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 +43 -0
- package/dist/index.cjs +6490 -6388
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +169 -110
- package/dist/index.d.ts +169 -110
- package/dist/index.js +6516 -6414
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
- package/src/App.tsx +86 -81
- package/src/components/{avatar → atoms/avatar}/avatar.doc.mdx +2 -2
- package/src/components/{avatar → atoms/avatar}/avatar.stories.tsx +1 -2
- package/src/components/{avatar → atoms/avatar}/avatar.tsx +1 -1
- package/src/components/{badget → atoms/badget}/badget.doc.mdx +4 -4
- package/src/components/{badget → atoms/badget}/badget.props.ts +1 -1
- package/src/components/{badget → atoms/badget}/badget.stories.tsx +1 -2
- package/src/components/{badget → atoms/badget}/badget.tsx +3 -3
- package/src/components/{button → atoms/button}/button.doc.mdx +3 -3
- package/src/components/{button → atoms/button}/button.props.ts +3 -3
- package/src/components/{button → atoms/button}/button.stories.tsx +1 -2
- package/src/components/{button → atoms/button}/button.tsx +7 -7
- package/src/components/{checkbox → atoms/checkbox}/checkbox.doc.mdx +2 -2
- package/src/components/{checkbox → atoms/checkbox}/checkbox.stories.tsx +2 -3
- package/src/components/{checkbox → atoms/checkbox}/checkbox.tsx +1 -1
- package/src/components/{divider → atoms/divider}/divider.doc.mdx +2 -2
- package/src/components/{divider → atoms/divider}/divider.stories.tsx +3 -4
- package/src/components/{flex → atoms/flex}/flex.doc.mdx +2 -2
- package/src/components/{flex → atoms/flex}/flex.stories.tsx +1 -2
- package/src/components/{grid → atoms/grid}/grid.doc.mdx +2 -2
- package/src/components/{grid → atoms/grid}/grid.stories.tsx +1 -2
- package/src/components/{image → atoms/image}/image.doc.mdx +2 -2
- package/src/components/{image → atoms/image}/image.stories.tsx +1 -2
- package/src/components/{input → atoms/input}/input.doc.mdx +3 -3
- package/src/components/{input → atoms/input}/input.props.ts +3 -3
- package/src/components/{input → atoms/input}/input.stories.tsx +2 -4
- package/src/components/{input → atoms/input}/input.tsx +5 -14
- package/src/components/{loader → atoms/loader}/loader.doc.mdx +2 -2
- package/src/components/{loader → atoms/loader}/loader.stories.tsx +2 -3
- package/src/components/{loader → atoms/loader}/loader.tsx +1 -1
- package/src/components/{popover → atoms/popover}/popover.doc.mdx +2 -2
- package/src/components/{popover → atoms/popover}/popover.stories.tsx +3 -4
- package/src/components/{progress → atoms/progress}/progress.doc.mdx +2 -2
- package/src/components/{progress → atoms/progress}/progress.stories.tsx +2 -3
- package/src/components/{radio → atoms/radio}/radio.doc.mdx +2 -2
- package/src/components/{radio → atoms/radio}/radio.stories.tsx +1 -3
- package/src/components/{radio → atoms/radio}/radio.tsx +1 -1
- package/src/components/{segmented-control → atoms/segmented-control}/segmented-control.doc.mdx +2 -2
- package/src/components/{segmented-control → atoms/segmented-control}/segmented-control.stories.tsx +1 -2
- package/src/components/{segmented-control → atoms/segmented-control}/segmented-control.tsx +1 -1
- package/src/components/{skeleton → atoms/skeleton}/skeleton.doc.mdx +2 -2
- package/src/components/{skeleton → atoms/skeleton}/skeleton.stories.tsx +2 -3
- package/src/components/{slide → atoms/slide}/slide.doc.mdx +2 -2
- package/src/components/{slide → atoms/slide}/slide.stories.tsx +1 -2
- package/src/components/{slider → atoms/slider}/slider.doc.mdx +2 -2
- package/src/components/{slider → atoms/slider}/slider.stories.tsx +1 -2
- package/src/components/{slider → atoms/slider}/slider.tsx +1 -1
- package/src/components/{stack → atoms/stack}/stack.doc.mdx +2 -2
- package/src/components/{stack → atoms/stack}/stack.stories.tsx +2 -3
- package/src/components/{text → atoms/text}/text.doc.mdx +2 -2
- package/src/components/{text → atoms/text}/text.stories.tsx +1 -2
- package/src/components/{textarea → atoms/textarea}/textarea.doc.mdx +2 -2
- package/src/components/{textarea → atoms/textarea}/textarea.props.ts +0 -2
- package/src/components/{textarea → atoms/textarea}/textarea.stories.tsx +1 -2
- package/src/components/{textarea → atoms/textarea}/textarea.tsx +1 -1
- package/src/components/{tooltip → atoms/tooltip}/tooltip.doc.mdx +2 -2
- package/src/components/{tooltip → atoms/tooltip}/tooltip.stories.tsx +2 -3
- package/src/components/{tooltip → atoms/tooltip}/tooltip.tsx +1 -1
- package/src/components/isolation/isolation.stories.tsx +202 -0
- package/src/components/{alert → molecules/alert}/alert.doc.mdx +2 -2
- package/src/components/{alert → molecules/alert}/alert.stories.tsx +1 -2
- package/src/components/{alert → molecules/alert}/alert.tsx +1 -2
- package/src/components/{breadcrumbs → molecules/breadcrumbs}/breadcrumbs.doc.mdx +2 -2
- package/src/components/{breadcrumbs → molecules/breadcrumbs}/breadcrumbs.stories.tsx +1 -2
- package/src/components/{breadcrumbs → molecules/breadcrumbs}/breadcrumbs.tsx +1 -1
- package/src/components/{calendar → molecules/calendar}/calendar.doc.mdx +2 -2
- package/src/components/{calendar → molecules/calendar}/calendar.stories.tsx +1 -2
- package/src/components/{calendar → molecules/calendar}/calendar.tsx +42 -42
- package/src/components/molecules/calendar/index.ts +2 -0
- package/src/components/{card → molecules/card}/card.doc.mdx +2 -2
- package/src/components/{card → molecules/card}/card.stories.tsx +2 -3
- package/src/components/{card → molecules/card}/card.tsx +4 -4
- package/src/components/{date-picker → molecules/date-picker}/date-picker.doc.mdx +3 -3
- package/src/components/{date-picker → molecules/date-picker}/date-picker.props.ts +1 -1
- package/src/components/{date-picker → molecules/date-picker}/date-picker.stories.tsx +1 -3
- package/src/components/{date-picker → molecules/date-picker}/datePicker.tsx +3 -3
- package/src/components/{empty-state → molecules/empty-state}/empty-state.doc.mdx +3 -3
- package/src/components/{empty-state → molecules/empty-state}/empty-state.stories.tsx +3 -4
- package/src/components/{empty-state → molecules/empty-state}/empty-state.tsx +1 -1
- package/src/components/{form-header → molecules/form-header}/form-header.doc.mdx +2 -2
- package/src/components/{form-header → molecules/form-header}/form-header.stories.tsx +1 -2
- package/src/components/{form-header → molecules/form-header}/form-header.tsx +2 -2
- package/src/components/{pagination → molecules/pagination}/pagination.doc.mdx +2 -2
- package/src/components/{pagination → molecules/pagination}/pagination.stories.tsx +1 -2
- package/src/components/{pagination → molecules/pagination}/pagination.tsx +8 -8
- package/src/components/{search-select → molecules/search-select}/index.ts +1 -1
- package/src/components/{search-select → molecules/search-select}/search-select.doc.mdx +2 -2
- package/src/components/{search-select → molecules/search-select}/search-select.props.ts +3 -0
- package/src/components/{search-select → molecules/search-select}/search-select.stories.tsx +1 -2
- package/src/components/{search-select → molecules/search-select}/search-select.tsx +8 -6
- package/src/components/{select → molecules/select}/select.doc.mdx +2 -2
- package/src/components/{select → molecules/select}/select.stories.tsx +1 -2
- package/src/components/{select → molecules/select}/select.tsx +8 -16
- package/src/components/{stat-card → molecules/stat-card}/stat-card.doc.mdx +2 -2
- package/src/components/{stat-card → molecules/stat-card}/stat-card.stories.tsx +2 -3
- package/src/components/{stat-card → molecules/stat-card}/stat-card.tsx +1 -1
- package/src/components/{stepper → molecules/stepper}/stepper.doc.mdx +2 -2
- package/src/components/{stepper → molecules/stepper}/stepper.stories.tsx +1 -2
- package/src/components/{stepper → molecules/stepper}/stepper.tsx +9 -10
- package/src/components/{table → molecules/table}/table.doc.mdx +2 -2
- package/src/components/{table → molecules/table}/table.stories.tsx +5 -22
- package/src/components/{table → molecules/table}/table.tsx +5 -15
- package/src/components/{tabs → molecules/tabs}/tabs.doc.mdx +2 -2
- package/src/components/{tabs → molecules/tabs}/tabs.stories.tsx +1 -2
- package/src/components/{tabs → molecules/tabs}/tabs.tsx +1 -1
- package/src/components/{time-picker → molecules/time-picker}/timePicker.doc.mdx +3 -3
- package/src/components/{time-picker → molecules/time-picker}/timePicker.props.ts +4 -2
- package/src/components/{time-picker → molecules/time-picker}/timePicker.stories.tsx +3 -4
- package/src/components/{time-picker → molecules/time-picker}/timePicker.tsx +5 -5
- package/src/components/{confirm-dialog → organisms/confirm-dialog}/confirm-dialog.doc.mdx +2 -2
- package/src/components/{confirm-dialog → organisms/confirm-dialog}/confirm-dialog.stories.tsx +2 -3
- package/src/components/{confirm-dialog → organisms/confirm-dialog}/confirm-dialog.tsx +4 -4
- package/src/components/{data-table → organisms/data-table}/ITDataTable.doc.mdx +2 -2
- package/src/components/{data-table → organisms/data-table}/ITDataTable.stories.tsx +3 -4
- package/src/components/{data-table → organisms/data-table}/dataTable.props.ts +1 -1
- package/src/components/{data-table → organisms/data-table}/dataTable.tsx +7 -8
- package/src/components/{dialog → organisms/dialog}/dialog.doc.mdx +2 -2
- package/src/components/{dialog → organisms/dialog}/dialog.stories.tsx +3 -5
- package/src/components/{dialog → organisms/dialog}/dialog.tsx +2 -2
- package/src/components/{drawer → organisms/drawer}/drawer.doc.mdx +2 -2
- package/src/components/{drawer → organisms/drawer}/drawer.stories.tsx +2 -3
- package/src/components/{drawer → organisms/drawer}/drawer.tsx +1 -1
- package/src/components/{dropfile → organisms/dropfile}/dropfile.doc.mdx +3 -3
- package/src/components/{dropfile → organisms/dropfile}/dropfile.props.ts +8 -4
- package/src/components/{dropfile → organisms/dropfile}/dropfile.stories.tsx +2 -5
- package/src/components/{dropfile → organisms/dropfile}/dropfile.tsx +25 -12
- package/src/components/{form-builder → organisms/form-builder}/fieldRenderer.tsx +30 -20
- package/src/components/{form-builder → organisms/form-builder}/formBuilder.context.tsx +3 -2
- package/src/components/{form-builder → organisms/form-builder}/formBuilder.doc.mdx +2 -2
- package/src/components/{form-builder → organisms/form-builder}/formBuilder.stories.tsx +0 -1
- package/src/components/{form-builder → organisms/form-builder}/formBuilder.tsx +4 -5
- package/src/components/{form-builder → organisms/form-builder}/useFormBuilder.ts +4 -4
- package/src/components/{navbar → organisms/navbar}/navbar.doc.mdx +2 -2
- package/src/components/{navbar → organisms/navbar}/navbar.stories.tsx +1 -2
- package/src/components/{navbar → organisms/navbar}/navbar.tsx +1 -1
- package/src/components/{page-header → organisms/page-header}/page-header.doc.mdx +2 -2
- package/src/components/{page-header → organisms/page-header}/page-header.props.ts +1 -1
- package/src/components/{page-header → organisms/page-header}/page-header.stories.tsx +5 -6
- package/src/components/{page-header → organisms/page-header}/page-header.tsx +2 -2
- package/src/components/{searchTable → organisms/searchTable}/components/EditableCell.tsx +4 -5
- package/src/components/{searchTable → organisms/searchTable}/components/PaginationControls.tsx +6 -6
- package/src/components/{searchTable → organisms/searchTable}/components/PaginationInfo.tsx +1 -1
- package/src/components/{searchTable → organisms/searchTable}/components/SearchAndSortBar.tsx +3 -3
- package/src/components/{searchTable → organisms/searchTable}/components/SearchInput.tsx +1 -1
- package/src/components/{searchTable → organisms/searchTable}/components/SortButton.tsx +1 -1
- package/src/components/{searchTable → organisms/searchTable}/components/TableEmptyState.tsx +1 -1
- package/src/components/{searchTable → organisms/searchTable}/components/TableHeaderCell.tsx +1 -1
- package/src/components/{searchTable → organisms/searchTable}/searchTable.doc.mdx +2 -2
- package/src/components/{searchTable → organisms/searchTable}/searchTable.stories.tsx +1 -2
- package/src/components/{searchTable → organisms/searchTable}/searchTable.tsx +1 -2
- package/src/components/{sidebar → organisms/sidebar}/sidebar.doc.mdx +2 -2
- package/src/components/{sidebar → organisms/sidebar}/sidebar.stories.tsx +1 -2
- package/src/components/{sidebar → organisms/sidebar}/sidebar.tsx +45 -43
- package/src/components/{toast → organisms/toast}/toast.doc.mdx +2 -2
- package/src/components/{toast → organisms/toast}/toast.stories.tsx +2 -3
- package/src/components/{toast → organisms/toast}/toast.tsx +1 -2
- package/src/components/{topbar → organisms/topbar}/topbar.doc.mdx +2 -2
- package/src/components/{topbar → organisms/topbar}/topbar.stories.tsx +1 -2
- package/src/components/{topbar → organisms/topbar}/topbar.tsx +25 -25
- package/src/components/{triple-filter → organisms/triple-filter}/tripleFilter.doc.mdx +2 -2
- package/src/components/{triple-filter → organisms/triple-filter}/tripleFilter.props.ts +0 -1
- package/src/components/{triple-filter → organisms/triple-filter}/tripleFilter.stories.tsx +0 -1
- package/src/components/{triple-filter → organisms/triple-filter}/tripleFilter.tsx +1 -1
- package/src/components/{layout → templates/layout}/layout.doc.mdx +2 -2
- package/src/components/{layout → templates/layout}/layout.props.ts +2 -2
- package/src/components/{layout → templates/layout}/layout.stories.tsx +1 -2
- package/src/components/{layout → templates/layout}/layout.tsx +2 -2
- package/src/components/{page → templates/page}/page.doc.mdx +2 -2
- package/src/components/{page → templates/page}/page.props.ts +1 -1
- package/src/components/{page → templates/page}/page.stories.tsx +6 -7
- package/src/components/{page → templates/page}/page.tsx +6 -6
- package/src/components/theme-provider/themePresets.ts +154 -0
- package/src/components/theme-provider/themeProvider.doc.mdx +10 -2
- package/src/components/theme-provider/themeProvider.props.ts +6 -0
- package/src/components/theme-provider/themeProvider.stories.tsx +3 -4
- package/src/components/theme-provider/themeProvider.tsx +210 -268
- package/src/hooks/useEditableRow.ts +1 -1
- package/src/index.css +36 -86
- package/src/index.ts +97 -97
- package/src/showcases/DataShowcases.tsx +4 -8
- package/src/showcases/FeedbackShowcases.tsx +6 -6
- package/src/showcases/FormShowcases.tsx +7 -7
- package/src/showcases/GettingStartedShowcase.tsx +8 -9
- package/src/showcases/HomeShowcase.tsx +12 -12
- package/src/showcases/LayoutPrimitivesShowcases.tsx +36 -57
- package/src/showcases/PageShowcases.tsx +41 -53
- package/src/showcases/ShowcaseLayout.tsx +1 -2
- package/src/showcases/SizesShowcase.tsx +85 -0
- package/src/showcases/StructureShowcases.tsx +31 -33
- package/src/theme/theme-context.ts +37 -0
- package/src/theme/theme.ts +71 -64
- package/src/theme/theme.types.ts +41 -0
- package/src/types/badget.types.ts +3 -3
- package/src/types/button.types.ts +3 -3
- package/src/types/sizes.types.ts +2 -1
- package/src/utils/styles.ts +37 -0
- package/src/components/calendar/index.ts +0 -3
- package/src/components/stepper/stepper.css +0 -26
- package/src/components/toast/toast.css +0 -32
- package/src/types/input.types.ts +0 -14
- /package/src/components/{avatar → atoms/avatar}/avatar.props.ts +0 -0
- /package/src/components/{checkbox → atoms/checkbox}/checkbox.props.ts +0 -0
- /package/src/components/{divider → atoms/divider}/divider.props.ts +0 -0
- /package/src/components/{divider → atoms/divider}/divider.tsx +0 -0
- /package/src/components/{flex → atoms/flex}/flex.props.ts +0 -0
- /package/src/components/{flex → atoms/flex}/flex.tsx +0 -0
- /package/src/components/{grid → atoms/grid}/grid.props.ts +0 -0
- /package/src/components/{grid → atoms/grid}/grid.tsx +0 -0
- /package/src/components/{image → atoms/image}/image.props.ts +0 -0
- /package/src/components/{image → atoms/image}/image.tsx +0 -0
- /package/src/components/{loader → atoms/loader}/loader.props.ts +0 -0
- /package/src/components/{popover → atoms/popover}/popover.props.ts +0 -0
- /package/src/components/{popover → atoms/popover}/popover.tsx +0 -0
- /package/src/components/{progress → atoms/progress}/progress.props.ts +0 -0
- /package/src/components/{progress → atoms/progress}/progress.tsx +0 -0
- /package/src/components/{radio → atoms/radio}/radio.props.ts +0 -0
- /package/src/components/{segmented-control → atoms/segmented-control}/segmented-control.props.ts +0 -0
- /package/src/components/{skeleton → atoms/skeleton}/skeleton.props.ts +0 -0
- /package/src/components/{skeleton → atoms/skeleton}/skeleton.tsx +0 -0
- /package/src/components/{slide → atoms/slide}/slide.props.ts +0 -0
- /package/src/components/{slide → atoms/slide}/slide.tsx +0 -0
- /package/src/components/{slider → atoms/slider}/slider.props.ts +0 -0
- /package/src/components/{stack → atoms/stack}/stack.props.ts +0 -0
- /package/src/components/{stack → atoms/stack}/stack.tsx +0 -0
- /package/src/components/{text → atoms/text}/text.props.ts +0 -0
- /package/src/components/{text → atoms/text}/text.tsx +0 -0
- /package/src/components/{tooltip → atoms/tooltip}/tooltip.props.ts +0 -0
- /package/src/components/{alert → molecules/alert}/alert.props.ts +0 -0
- /package/src/components/{breadcrumbs → molecules/breadcrumbs}/breadcrumbs.props.ts +0 -0
- /package/src/components/{calendar → molecules/calendar}/calendar.props.ts +0 -0
- /package/src/components/{card → molecules/card}/card.props.ts +0 -0
- /package/src/components/{empty-state → molecules/empty-state}/empty-state.props.ts +0 -0
- /package/src/components/{form-header → molecules/form-header}/form-header.props.ts +0 -0
- /package/src/components/{pagination → molecules/pagination}/pagination.props.ts +0 -0
- /package/src/components/{select → molecules/select}/select.props.ts +0 -0
- /package/src/components/{stat-card → molecules/stat-card}/stat-card.props.ts +0 -0
- /package/src/components/{stepper → molecules/stepper}/stepper.props.ts +0 -0
- /package/src/components/{table → molecules/table}/table.props.ts +0 -0
- /package/src/components/{tabs → molecules/tabs}/tabs.props.ts +0 -0
- /package/src/components/{confirm-dialog → organisms/confirm-dialog}/confirm-dialog.props.ts +0 -0
- /package/src/components/{dialog → organisms/dialog}/dialog.props.ts +0 -0
- /package/src/components/{drawer → organisms/drawer}/drawer.props.ts +0 -0
- /package/src/components/{form-builder → organisms/form-builder}/formBuilder.props.ts +0 -0
- /package/src/components/{navbar → organisms/navbar}/navbar.props.ts +0 -0
- /package/src/components/{searchTable → organisms/searchTable}/components/TableHeader.tsx +0 -0
- /package/src/components/{searchTable → organisms/searchTable}/components/TableRow.tsx +0 -0
- /package/src/components/{searchTable → organisms/searchTable}/searchTable.props.ts +0 -0
- /package/src/components/{sidebar → organisms/sidebar}/sidebar.props.ts +0 -0
- /package/src/components/{toast → organisms/toast}/toast.props.ts +0 -0
- /package/src/components/{topbar → organisms/topbar}/topbar.props.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -236,6 +236,9 @@ interface ITAvatarProps {
|
|
|
236
236
|
*/
|
|
237
237
|
declare function ITAvatar({ src, alt, initials, size, color, className, badge, onClick, }: ITAvatarProps): react_jsx_runtime.JSX.Element;
|
|
238
238
|
|
|
239
|
+
/** Escala única de tamaños del sistema: "sm" | "md" | "lg". */
|
|
240
|
+
type SizesTypes = "sm" | "md" | "lg";
|
|
241
|
+
|
|
239
242
|
declare const semanticColors: {
|
|
240
243
|
primary: {
|
|
241
244
|
50: string;
|
|
@@ -363,8 +366,6 @@ declare const badgeVariants: {
|
|
|
363
366
|
readonly outlined: "outlined";
|
|
364
367
|
};
|
|
365
368
|
|
|
366
|
-
type SizesTypes = "small" | "medium" | "large";
|
|
367
|
-
|
|
368
369
|
interface ITBadgetProps {
|
|
369
370
|
/** Text label displayed inside the badge. Overridden if `children` is provided. */
|
|
370
371
|
label?: string;
|
|
@@ -372,7 +373,7 @@ interface ITBadgetProps {
|
|
|
372
373
|
children?: React.ReactNode;
|
|
373
374
|
/** Color theme key. Values come from the semantic color palette (e.g. `"primary"`, `"secondary"`, `"success"`, `"danger"`, `"warning"`, `"info"`, `"purple"`, `"error"`, `"gray"`). @default "primary" */
|
|
374
375
|
color?: ColorsTypes;
|
|
375
|
-
/** Badge size. Valid values: `"
|
|
376
|
+
/** Badge size. Valid values: `"sm"`, `"md"`, `"lg"`. @default "md" */
|
|
376
377
|
size?: SizesTypes;
|
|
377
378
|
/** Badge visual style. Valid values: `"filled"`, `"outlined"`. @default "filled" */
|
|
378
379
|
variant?: keyof typeof badgeVariants;
|
|
@@ -387,7 +388,7 @@ interface ITBadgetProps {
|
|
|
387
388
|
* <ITBadget label="Active" color="success" variant="filled" />
|
|
388
389
|
*
|
|
389
390
|
* @example
|
|
390
|
-
* <ITBadget color="danger" variant="outlined" size="
|
|
391
|
+
* <ITBadget color="danger" variant="outlined" size="sm">
|
|
391
392
|
* <span className="flex items-center gap-1">3 new</span>
|
|
392
393
|
* </ITBadget>
|
|
393
394
|
*/
|
|
@@ -437,7 +438,7 @@ interface ITButtonProps {
|
|
|
437
438
|
onClick?: () => void;
|
|
438
439
|
/** Color theme key. Values come from the semantic color palette (e.g. `"primary"`, `"secondary"`, `"success"`, `"danger"`, `"warning"`, `"info"`, `"purple"`, `"error"`, `"gray"`). @default "primary" */
|
|
439
440
|
color?: ColorsTypes;
|
|
440
|
-
/** Button size. Valid values: `"
|
|
441
|
+
/** Button size. Valid values: `"sm"`, `"md"`, `"lg"`. @default "md" */
|
|
441
442
|
size?: SizesTypes;
|
|
442
443
|
/** Button visual style. Valid values: `"filled"`, `"outlined"`, `"raised"`, `"rounded"`, `"text"`, `"raised-text"`, `"icon-only"`, `"link"`. @default "filled" */
|
|
443
444
|
variant?: keyof typeof buttonVariants;
|
|
@@ -460,7 +461,7 @@ interface ITButtonProps {
|
|
|
460
461
|
* <ITButton label="Submit" color="primary" variant="filled" onClick={() => {}} />
|
|
461
462
|
*
|
|
462
463
|
* @example
|
|
463
|
-
* <ITButton color="danger" variant="outlined" size="
|
|
464
|
+
* <ITButton color="danger" variant="outlined" size="sm" icon={<FaTrash />}>
|
|
464
465
|
* Delete
|
|
465
466
|
* </ITButton>
|
|
466
467
|
*/
|
|
@@ -842,7 +843,7 @@ interface ITDatePickerProps {
|
|
|
842
843
|
range?: boolean;
|
|
843
844
|
/** Color variant matching the design system (ColorsTypes). @default "primary" */
|
|
844
845
|
variant?: ColorsTypes;
|
|
845
|
-
/** Size
|
|
846
|
+
/** Size preset: "sm" | "md" | "lg". @default "md" */
|
|
846
847
|
size?: SizesTypes;
|
|
847
848
|
/** Additional CSS classes for the wrapper element. */
|
|
848
849
|
className?: string;
|
|
@@ -1441,7 +1442,7 @@ interface ITInputProps {
|
|
|
1441
1442
|
minLength?: number;
|
|
1442
1443
|
/** Color variant from the theme palette */
|
|
1443
1444
|
variant?: ColorsTypes;
|
|
1444
|
-
/** Size preset: "
|
|
1445
|
+
/** Size preset: "sm" | "md" | "lg". @default "md" */
|
|
1445
1446
|
size?: SizesTypes;
|
|
1446
1447
|
/** Disable the input */
|
|
1447
1448
|
disabled?: boolean;
|
|
@@ -1510,7 +1511,7 @@ interface ITInputProps {
|
|
|
1510
1511
|
* maxLength={10}
|
|
1511
1512
|
* />
|
|
1512
1513
|
*/
|
|
1513
|
-
declare function ITInput({ name, type, label, placeholder, value, onChange, onBlur, disabled, className, containerClassName, labelClassName, touched, error, formatNumber, required, autoFocus, onClick, onKeyDown, iconLeft, iconRight, maxLength, minLength, checked, showHintLength, currencyFormat, rows, min, max, readOnly, focusContent }: ITInputProps): react_jsx_runtime.JSX.Element;
|
|
1514
|
+
declare function ITInput({ name, type, label, placeholder, value, onChange, onBlur, disabled, className, containerClassName, labelClassName, touched, error, formatNumber, required, autoFocus, onClick, onKeyDown, iconLeft, iconRight, maxLength, minLength, checked, showHintLength, currencyFormat, rows, min, max, readOnly, focusContent, size }: ITInputProps): react_jsx_runtime.JSX.Element;
|
|
1514
1515
|
|
|
1515
1516
|
/** Represents a navigation item in the sidebar. */
|
|
1516
1517
|
interface ITNavigationItem$1 {
|
|
@@ -1903,6 +1904,8 @@ interface ITSearchSelectProps {
|
|
|
1903
1904
|
error?: string | boolean;
|
|
1904
1905
|
/** Whether the field is read-only. */
|
|
1905
1906
|
readOnly?: boolean;
|
|
1907
|
+
/** Size preset: "sm" | "md" | "lg". @default "md" */
|
|
1908
|
+
size?: SizesTypes;
|
|
1906
1909
|
/** Callback for server-side search (Mode 2: API connection). Receives the search query string. */
|
|
1907
1910
|
onSearch?: (query: string) => void;
|
|
1908
1911
|
/** Whether options are being loaded from an external API. */
|
|
@@ -1940,7 +1943,7 @@ interface ITSearchSelectProps {
|
|
|
1940
1943
|
* />
|
|
1941
1944
|
* ```
|
|
1942
1945
|
*/
|
|
1943
|
-
declare function ITSearchSelect({ name, options, label, placeholder, valueField, labelField, value, onChange, onBlur, disabled, className, touched, required, error, readOnly, onSearch, isLoading, noResultsMessage, }: ITSearchSelectProps): react_jsx_runtime.JSX.Element;
|
|
1946
|
+
declare function ITSearchSelect({ name, options, label, placeholder, valueField, labelField, value, onChange, onBlur, disabled, className, touched, required, error, readOnly, onSearch, isLoading, noResultsMessage, size, }: ITSearchSelectProps): react_jsx_runtime.JSX.Element;
|
|
1944
1947
|
|
|
1945
1948
|
/** A generic key-value option: e.g. { value: "mx", label: "Mexico" }. */
|
|
1946
1949
|
interface OptionType {
|
|
@@ -1986,7 +1989,7 @@ interface ITSelectProps {
|
|
|
1986
1989
|
readOnly?: boolean;
|
|
1987
1990
|
}
|
|
1988
1991
|
|
|
1989
|
-
declare function ITSelect({ name, options, label, placeholder, valueField, labelField, value, onChange, onBlur, disabled, className, touched, required, error, readOnly, }: ITSelectProps): react_jsx_runtime.JSX.Element;
|
|
1992
|
+
declare function ITSelect({ name, options, label, placeholder, valueField, labelField, value, onChange, onBlur, disabled, className, touched, required, error, readOnly, size, }: ITSelectProps): react_jsx_runtime.JSX.Element;
|
|
1990
1993
|
|
|
1991
1994
|
interface CustomITSearchTableProps<T> extends ITSearchTableProps<T> {
|
|
1992
1995
|
editingRow?: number | null;
|
|
@@ -2023,7 +2026,7 @@ interface CustomITSearchTableProps<T> extends ITSearchTableProps<T> {
|
|
|
2023
2026
|
* />
|
|
2024
2027
|
* ```
|
|
2025
2028
|
*/
|
|
2026
|
-
declare function ITSearchTable<T extends Record<string, unknown>>({ columns, data, containerClassName, searchTermInitial, searchInputPlaceholder,
|
|
2029
|
+
declare function ITSearchTable<T extends Record<string, unknown>>({ columns, data, containerClassName, searchTermInitial, searchInputPlaceholder, variant, size, itemsPerPageOptions, defaultItemsPerPage, title, pageIndex, totalCount, totalPages, hasPreviousPage, hasNextPage, onPageChange, onItemsPerPageChange, onSortChange, onFilterChange, sortConfig, editingRow, validationSchema, onClearSearch, onEdit, onSave, onCancel, }: CustomITSearchTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2027
2030
|
|
|
2028
2031
|
/** Available sizes for the segmented control: "sm" | "md". */
|
|
2029
2032
|
type SegmentedControlSize = "sm" | "md";
|
|
@@ -2139,7 +2142,7 @@ interface ITSidebarProps {
|
|
|
2139
2142
|
* />
|
|
2140
2143
|
* ```
|
|
2141
2144
|
*/
|
|
2142
|
-
declare function ITSidebar({ navigationItems, isCollapsed,
|
|
2145
|
+
declare function ITSidebar({ navigationItems, isCollapsed, className, visibleOnMobile, onItemClick, onSubItemClick, subitemConnector, }: ITSidebarProps): react_jsx_runtime.JSX.Element;
|
|
2143
2146
|
|
|
2144
2147
|
/** Skeleton shape variant: "text" (line) | "circular" (avatar/icon) | "rectangular" (card/image). */
|
|
2145
2148
|
type SkeletonVariant = "text" | "circular" | "rectangular";
|
|
@@ -2354,7 +2357,7 @@ declare function ITStatCard({ label, value, trend, trendDirection, icon, color,
|
|
|
2354
2357
|
* size="sm"
|
|
2355
2358
|
* />
|
|
2356
2359
|
*/
|
|
2357
|
-
declare function ITTable<T extends Record<string, unknown>>({ columns, data, containerClassName,
|
|
2360
|
+
declare function ITTable<T extends Record<string, unknown>>({ columns, data, containerClassName, variant, size, itemsPerPageOptions, defaultItemsPerPage, title, renderCard, defaultView, showVerticalBorder, verticalBorderClassname, }: ITTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
2358
2361
|
|
|
2359
2362
|
interface ITTextProps extends HTMLAttributes<HTMLElement> {
|
|
2360
2363
|
/** The content rendered inside the element. */
|
|
@@ -2607,10 +2610,14 @@ interface ITDropfileProps {
|
|
|
2607
2610
|
initialPreviewUrl?: string | null;
|
|
2608
2611
|
/**
|
|
2609
2612
|
* Presentation mode. `"drop"` renders the dropzone/preview inline (default,
|
|
2610
|
-
* current behavior). `"button"` renders a
|
|
2611
|
-
* clicking it opens the same
|
|
2612
|
-
* callers don't need to build
|
|
2613
|
-
* `ITDropfile`.
|
|
2613
|
+
* current behavior, unaffected by anything below). `"button"` renders a
|
|
2614
|
+
* compact trigger button instead — clicking it opens the same
|
|
2615
|
+
* dropzone/preview UI inside an `ITDialog`, so callers don't need to build
|
|
2616
|
+
* their own "open a modal" button around `ITDropfile`. Meant for repeated
|
|
2617
|
+
* uploads (e.g. an attachments list): ~900ms after a successful confirm,
|
|
2618
|
+
* the modal closes AND the selection resets, so the trigger goes back to
|
|
2619
|
+
* `buttonLabel` ready for the next file — same effect callers previously
|
|
2620
|
+
* got by remounting `ITDropfile` with a changing `key`.
|
|
2614
2621
|
* @default "drop"
|
|
2615
2622
|
*/
|
|
2616
2623
|
view?: "drop" | "button";
|
|
@@ -2820,7 +2827,7 @@ interface ITStepperProps {
|
|
|
2820
2827
|
*/
|
|
2821
2828
|
declare function ITStepper({ steps, currentStep, onFinish, onStepChange, allowClickToJump, useIcons, disableNext, containerClassName, stepClassName, scrollableContent, maxContentHeight, color, }: ITStepperProps): react_jsx_runtime.JSX.Element;
|
|
2822
2829
|
|
|
2823
|
-
interface ITThemePalette {
|
|
2830
|
+
interface ITThemePalette$1 {
|
|
2824
2831
|
/** Main brand accent color (hex). Drives primary buttons, active nav items, focus rings, links, and the `--color-primary` CSS variable. @default "#06b6d4" */
|
|
2825
2832
|
primary: string;
|
|
2826
2833
|
/** Secondary/neutral accent color (hex). Used for less prominent actions and secondary badges/buttons. @default "#6b7280" */
|
|
@@ -2862,100 +2869,19 @@ interface ITThemePalette {
|
|
|
2862
2869
|
}
|
|
2863
2870
|
interface ITThemeProviderProps {
|
|
2864
2871
|
/** Partial palette overrides merged (deep merge) with the default theme. Supports primary, secondary, ternary, danger, success, info, alert, warning, layout, and table colors. Persisted to `localStorage` under `"it-theme-palette"` once the user edits it via the FAB/drawer. */
|
|
2865
|
-
theme?: Partial<ITThemePalette>;
|
|
2872
|
+
theme?: Partial<ITThemePalette$1>;
|
|
2866
2873
|
/** The subtree that receives the theme context and CSS variables. Must wrap your entire app (or the portion that uses AXZY UI System components) once, near the root. */
|
|
2867
2874
|
children: React.ReactNode;
|
|
2868
2875
|
/** Whether to render the floating action button (bottom-right) that opens the live theme-designer drawer, letting end users tweak colors and persist their choice. Set to `false` to hide the FAB in production and only theme via the `theme` prop. @default true */
|
|
2869
2876
|
showFab?: boolean;
|
|
2877
|
+
/** Global density/compactness factor. Values below 1 shrink the UI's base sizes, above 1 grow them (e.g. `0.8` = 80%: smaller fonts, paddings, gaps, spacing). Applied by scaling the root font-size so every `rem`-based token in Tailwind components compacts together, keeping the layout fluid (no empty margins, unlike CSS zoom). Clamped to `0.5`–`1.5`. @default 1 */
|
|
2878
|
+
density?: number;
|
|
2879
|
+
/** Global border radius in pixels applied to the entire rounding scale (`rounded-sm/md/lg/xl/2xl/…`). `radius={2}` ⇒ 2px corners (near-square), `8` ⇒ 8px, `0` ⇒ completely square. Every `rounded-*` utility resolves to a `--radius-*` variable, so this reshapes inputs, buttons, cards, dialogs and tables system-wide with no per-component changes. @default 0 (no override, Tailwind defaults) */
|
|
2880
|
+
radius?: number;
|
|
2881
|
+
/** Global shadow strength level. `0` ⇒ no shadows, `1` ⇒ subtle, `2` ⇒ default current look, `3` ⇒ pronounced. Shadows are injected as `--shadow-*`/`.shadow-*` overrides so cards, dropdowns and dialogs follow the level. @default 2 (keeps current default when omitted) */
|
|
2882
|
+
shadow?: number;
|
|
2870
2883
|
}
|
|
2871
2884
|
|
|
2872
|
-
interface ITThemeContextType {
|
|
2873
|
-
palette: ITThemePalette;
|
|
2874
|
-
colors: ITThemePalette;
|
|
2875
|
-
setPalette: (newPalette: ITThemePalette) => void;
|
|
2876
|
-
updateColor: (key: string, value: string) => void;
|
|
2877
|
-
resetTheme: () => void;
|
|
2878
|
-
applyPreset: (colors: ITThemePalette) => void;
|
|
2879
|
-
resolvedTheme: "light" | "dark";
|
|
2880
|
-
darkModeMode: "light" | "dark" | "system";
|
|
2881
|
-
setDarkModeMode: (mode: "light" | "dark" | "system") => void;
|
|
2882
|
-
}
|
|
2883
|
-
declare const useITTheme: () => ITThemeContextType;
|
|
2884
|
-
/**
|
|
2885
|
-
* Versión segura de useITTheme que retorna undefined
|
|
2886
|
-
* si se usa fuera de ITThemeProvider (no lanza error).
|
|
2887
|
-
*/
|
|
2888
|
-
declare const useITThemeSafe: () => ITThemeContextType | undefined;
|
|
2889
|
-
/**
|
|
2890
|
-
* Root theme context provider that injects CSS custom properties for all components,
|
|
2891
|
-
* supports custom color palettes, dark/light mode, and an optional in-app theme designer FAB.
|
|
2892
|
-
*
|
|
2893
|
-
* @example
|
|
2894
|
-
* <ITThemeProvider theme={{ primary: "#3b82f6", danger: "#ef4444" }}>
|
|
2895
|
-
* <App />
|
|
2896
|
-
* </ITThemeProvider>
|
|
2897
|
-
*
|
|
2898
|
-
* @example
|
|
2899
|
-
* <ITThemeProvider showFab={false}>
|
|
2900
|
-
* <Dashboard />
|
|
2901
|
-
* </ITThemeProvider>
|
|
2902
|
-
*/
|
|
2903
|
-
declare function ITThemeProvider({ children, theme, showFab, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
2904
|
-
|
|
2905
|
-
interface ITTimePickerProps {
|
|
2906
|
-
/** Form field name attribute and key for the change event. */
|
|
2907
|
-
name: string;
|
|
2908
|
-
/** Controlled time value in "HH:MM" format. */
|
|
2909
|
-
value?: string;
|
|
2910
|
-
/** Label text displayed above the input. */
|
|
2911
|
-
label?: string;
|
|
2912
|
-
/** Placeholder text when no value is set (default "HH:MM"). */
|
|
2913
|
-
placeholder?: string;
|
|
2914
|
-
/** Callback fired on valid time selection, receives event-like object with `target.name` and `target.value`. */
|
|
2915
|
-
onChange: (e: any) => void;
|
|
2916
|
-
/** Callback fired when the input loses focus. */
|
|
2917
|
-
onBlur?: (e: any) => void;
|
|
2918
|
-
/** Marks the field as required. */
|
|
2919
|
-
required?: boolean;
|
|
2920
|
-
/** Whether the input has been touched (interacted with). */
|
|
2921
|
-
touched?: boolean;
|
|
2922
|
-
/** Validation error message or boolean to show error state. */
|
|
2923
|
-
error?: string | boolean;
|
|
2924
|
-
/** Disables the time picker when true. */
|
|
2925
|
-
disabled?: boolean;
|
|
2926
|
-
/** Additional CSS classes for the wrapper. */
|
|
2927
|
-
className?: string;
|
|
2928
|
-
/** Size preset: "small" | "medium" | "large". */
|
|
2929
|
-
size?: "small" | "medium" | "large";
|
|
2930
|
-
/** Style variant for the input: "primary" | "secondary" | "danger" | "success" | "warning" | "info" | "purple". */
|
|
2931
|
-
variant?: "primary" | "secondary" | "danger" | "success" | "warning" | "info" | "purple";
|
|
2932
|
-
/** Theme color used for the dropdown highlight and confirm button. Accepts semantic keys or raw hex. */
|
|
2933
|
-
color?: "primary" | "secondary" | "danger" | "success" | "warning" | "info" | "purple" | string;
|
|
2934
|
-
}
|
|
2935
|
-
|
|
2936
|
-
/**
|
|
2937
|
-
* Time selection input with a dual-column dropdown (hours / minutes).
|
|
2938
|
-
* Supports manual typing with auto-formatting, validation, and keyboard-friendly picker.
|
|
2939
|
-
*
|
|
2940
|
-
* @example
|
|
2941
|
-
* <ITTimePicker
|
|
2942
|
-
* name="startTime"
|
|
2943
|
-
* label="Start Time"
|
|
2944
|
-
* value={startTime}
|
|
2945
|
-
* onChange={(e) => setStartTime(e.target.value)}
|
|
2946
|
-
* color="primary"
|
|
2947
|
-
* />
|
|
2948
|
-
*
|
|
2949
|
-
* @example
|
|
2950
|
-
* <ITTimePicker
|
|
2951
|
-
* name="endTime"
|
|
2952
|
-
* value={endTime}
|
|
2953
|
-
* onChange={(e) => setEndTime(e.target.value)}
|
|
2954
|
-
* error={isInvalid ? "Invalid time range" : undefined}
|
|
2955
|
-
* />
|
|
2956
|
-
*/
|
|
2957
|
-
declare function ITTimePicker({ name, value, label, placeholder, onChange, onBlur, required, touched, error, disabled, className, size, variant, color, }: ITTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
2958
|
-
|
|
2959
2885
|
type ColorScale = {
|
|
2960
2886
|
50: string;
|
|
2961
2887
|
100: string;
|
|
@@ -2969,6 +2895,46 @@ type ColorScale = {
|
|
|
2969
2895
|
900: string;
|
|
2970
2896
|
950?: string;
|
|
2971
2897
|
};
|
|
2898
|
+
interface ITThemePalette {
|
|
2899
|
+
/** Main brand accent color (hex). Drives primary buttons, active nav items, focus rings, links, and the `--color-primary` CSS variable. @default "#06b6d4" */
|
|
2900
|
+
primary: string;
|
|
2901
|
+
/** Secondary/neutral accent color (hex). Used for less prominent actions and secondary badges/buttons. @default "#6b7280" */
|
|
2902
|
+
secondary: string;
|
|
2903
|
+
/** Tertiary accent color (hex), used for a third level of emphasis (e.g. alternate badges, chart accents). @default "#8b5cf6" */
|
|
2904
|
+
ternary: string;
|
|
2905
|
+
/** Semantic color for destructive/error states (hex): delete buttons, error badges, invalid form fields. @default "#ef4444" */
|
|
2906
|
+
danger: string;
|
|
2907
|
+
/** Semantic color for success/confirmation states (hex): success badges, completed steps, positive stats. @default "#22c55e" */
|
|
2908
|
+
success: string;
|
|
2909
|
+
/** Semantic color for informational states (hex): info banners/badges, neutral notices. @default "#3b82f6" */
|
|
2910
|
+
info: string;
|
|
2911
|
+
/** Semantic color for alert/caution states (hex), distinct from `warning`. Used by components that need a stronger visual cue than warning. @default "#f97316" */
|
|
2912
|
+
alert: string;
|
|
2913
|
+
/** Semantic color for warning states (hex): warning badges/banners, pending states. @default "#eab308" */
|
|
2914
|
+
warning: string;
|
|
2915
|
+
/** Colors for the app shell's sidebar and top navbar (ITSidebar, ITNavbar, ITTopbar, ITLayout). */
|
|
2916
|
+
layout: {
|
|
2917
|
+
/** Background color of the sidebar (hex). @default "#ffffff" */
|
|
2918
|
+
sidebarBg: string;
|
|
2919
|
+
/** Text/icon color used on the sidebar. @default "#334155" */
|
|
2920
|
+
sidebarText: string;
|
|
2921
|
+
/** Background color of the top navigation bar (hex). @default "#ffffff" */
|
|
2922
|
+
navbarBg: string;
|
|
2923
|
+
/** Text/icon color used on the top navigation bar. @default "#1e293b" */
|
|
2924
|
+
navbarText: string;
|
|
2925
|
+
};
|
|
2926
|
+
/** Colors for ITTable/ITDataTable/ITSearchTable header and rows. */
|
|
2927
|
+
table: {
|
|
2928
|
+
/** Background color of the table header row (hex). @default "#f8fafc" */
|
|
2929
|
+
headerBg: string;
|
|
2930
|
+
/** Text color of the table header row. @default "#334155" */
|
|
2931
|
+
headerText: string;
|
|
2932
|
+
/** Background color of table body rows (hex). @default "#ffffff" */
|
|
2933
|
+
rowBg: string;
|
|
2934
|
+
/** Text color of table body rows. @default "#1e293b" */
|
|
2935
|
+
rowText: string;
|
|
2936
|
+
};
|
|
2937
|
+
}
|
|
2972
2938
|
type SemanticThemeColors = {
|
|
2973
2939
|
primary?: ColorScale;
|
|
2974
2940
|
secondary?: ColorScale;
|
|
@@ -3051,6 +3017,99 @@ interface ITThemeConfig {
|
|
|
3051
3017
|
};
|
|
3052
3018
|
}
|
|
3053
3019
|
|
|
3020
|
+
/**
|
|
3021
|
+
* Contexto de theming compartido por ITThemeProvider y componentes que lo
|
|
3022
|
+
* consumen (p.ej. ITFormHeader). Vive en @/theme para que ninguna capa
|
|
3023
|
+
* atómica dependa de otra a través del provider.
|
|
3024
|
+
*/
|
|
3025
|
+
interface ITThemeContextType {
|
|
3026
|
+
palette: ITThemePalette;
|
|
3027
|
+
colors: ITThemePalette;
|
|
3028
|
+
setPalette: (newPalette: ITThemePalette) => void;
|
|
3029
|
+
updateColor: (key: string, value: string) => void;
|
|
3030
|
+
resetTheme: () => void;
|
|
3031
|
+
applyPreset: (colors: ITThemePalette) => void;
|
|
3032
|
+
resolvedTheme: "light" | "dark";
|
|
3033
|
+
darkModeMode: "light" | "dark" | "system";
|
|
3034
|
+
setDarkModeMode: (mode: "light" | "dark" | "system") => void;
|
|
3035
|
+
}
|
|
3036
|
+
declare const useITTheme: () => ITThemeContextType;
|
|
3037
|
+
/**
|
|
3038
|
+
* Versión segura de useITTheme que retorna undefined
|
|
3039
|
+
* si se usa fuera de ITThemeProvider (no lanza error).
|
|
3040
|
+
*/
|
|
3041
|
+
declare const useITThemeSafe: () => ITThemeContextType | undefined;
|
|
3042
|
+
|
|
3043
|
+
/**
|
|
3044
|
+
* Root theme context provider that injects CSS custom properties for all components,
|
|
3045
|
+
* supports custom color palettes, dark/light mode, and an optional in-app theme designer FAB.
|
|
3046
|
+
*
|
|
3047
|
+
* @example
|
|
3048
|
+
* <ITThemeProvider theme={{ primary: "#3b82f6", danger: "#ef4444" }}>
|
|
3049
|
+
* <App />
|
|
3050
|
+
* </ITThemeProvider>
|
|
3051
|
+
*
|
|
3052
|
+
* @example
|
|
3053
|
+
* <ITThemeProvider showFab={false}>
|
|
3054
|
+
* <Dashboard />
|
|
3055
|
+
* </ITThemeProvider>
|
|
3056
|
+
*/
|
|
3057
|
+
declare function ITThemeProvider({ children, theme, showFab, density, radius, shadow, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
3058
|
+
|
|
3059
|
+
interface ITTimePickerProps {
|
|
3060
|
+
/** Form field name attribute and key for the change event. */
|
|
3061
|
+
name: string;
|
|
3062
|
+
/** Controlled time value in "HH:MM" format. */
|
|
3063
|
+
value?: string;
|
|
3064
|
+
/** Label text displayed above the input. */
|
|
3065
|
+
label?: string;
|
|
3066
|
+
/** Placeholder text when no value is set (default "HH:MM"). */
|
|
3067
|
+
placeholder?: string;
|
|
3068
|
+
/** Callback fired on valid time selection, receives event-like object with `target.name` and `target.value`. */
|
|
3069
|
+
onChange: (e: any) => void;
|
|
3070
|
+
/** Callback fired when the input loses focus. */
|
|
3071
|
+
onBlur?: (e: any) => void;
|
|
3072
|
+
/** Marks the field as required. */
|
|
3073
|
+
required?: boolean;
|
|
3074
|
+
/** Whether the input has been touched (interacted with). */
|
|
3075
|
+
touched?: boolean;
|
|
3076
|
+
/** Validation error message or boolean to show error state. */
|
|
3077
|
+
error?: string | boolean;
|
|
3078
|
+
/** Disables the time picker when true. */
|
|
3079
|
+
disabled?: boolean;
|
|
3080
|
+
/** Additional CSS classes for the wrapper. */
|
|
3081
|
+
className?: string;
|
|
3082
|
+
/** Size preset: "sm" | "md" | "lg". @default "md" */
|
|
3083
|
+
size?: SizesTypes;
|
|
3084
|
+
/** Style variant for the input: "primary" | "secondary" | "danger" | "success" | "warning" | "info" | "purple". */
|
|
3085
|
+
variant?: "primary" | "secondary" | "danger" | "success" | "warning" | "info" | "purple";
|
|
3086
|
+
/** Theme color used for the dropdown highlight and confirm button. Accepts semantic keys or raw hex. */
|
|
3087
|
+
color?: "primary" | "secondary" | "danger" | "success" | "warning" | "info" | "purple" | string;
|
|
3088
|
+
}
|
|
3089
|
+
|
|
3090
|
+
/**
|
|
3091
|
+
* Time selection input with a dual-column dropdown (hours / minutes).
|
|
3092
|
+
* Supports manual typing with auto-formatting, validation, and keyboard-friendly picker.
|
|
3093
|
+
*
|
|
3094
|
+
* @example
|
|
3095
|
+
* <ITTimePicker
|
|
3096
|
+
* name="startTime"
|
|
3097
|
+
* label="Start Time"
|
|
3098
|
+
* value={startTime}
|
|
3099
|
+
* onChange={(e) => setStartTime(e.target.value)}
|
|
3100
|
+
* color="primary"
|
|
3101
|
+
* />
|
|
3102
|
+
*
|
|
3103
|
+
* @example
|
|
3104
|
+
* <ITTimePicker
|
|
3105
|
+
* name="endTime"
|
|
3106
|
+
* value={endTime}
|
|
3107
|
+
* onChange={(e) => setEndTime(e.target.value)}
|
|
3108
|
+
* error={isInvalid ? "Invalid time range" : undefined}
|
|
3109
|
+
* />
|
|
3110
|
+
*/
|
|
3111
|
+
declare function ITTimePicker({ name, value, label, placeholder, onChange, onBlur, required, touched, error, disabled, className, size, variant, color, }: ITTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
3112
|
+
|
|
3054
3113
|
declare const createValidationSchema: (fields: FieldConfig[]) => Yup.ObjectSchema<{
|
|
3055
3114
|
[x: string]: never;
|
|
3056
3115
|
}, Yup.AnyObject, {
|
|
@@ -3064,10 +3123,10 @@ declare const isLightColor: (hex: string) => boolean;
|
|
|
3064
3123
|
/**
|
|
3065
3124
|
* Traduce un valor de color de CSS (hexadecimal o variable var(--...)) a hexadecimal absoluto.
|
|
3066
3125
|
*/
|
|
3067
|
-
declare const resolveCssColor: (colorStr: string, palette?: ITThemePalette, isDarkMode?: boolean) => string;
|
|
3126
|
+
declare const resolveCssColor: (colorStr: string, palette?: ITThemePalette$1, isDarkMode?: boolean) => string;
|
|
3068
3127
|
/**
|
|
3069
3128
|
* Obtiene la clase de color de texto óptima (blanca o gris oscuro) basado en el fondo.
|
|
3070
3129
|
*/
|
|
3071
|
-
declare const getContrastTextColor: (bgColor: string, palette?: ITThemePalette, isDarkMode?: boolean) => "text-white" | "text-slate-800";
|
|
3130
|
+
declare const getContrastTextColor: (bgColor: string, palette?: ITThemePalette$1, isDarkMode?: boolean) => "text-white" | "text-slate-800";
|
|
3072
3131
|
|
|
3073
|
-
export { type Column, type FieldConfig, type FieldConfigV2, FileTypeEnum, ITAlert, type ITAlertProps, ITAvatar, type ITAvatarProps, ITBadget, type ITBadgetProps, type ITBreadcrumbItem, ITBreadcrumbs, type ITBreadcrumbsProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITCheckbox, type ITCheckboxProps, ITConfirmDialog, type ITConfirmDialogProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDivider, type ITDividerProps, ITDrawer, type ITDrawerProps, ITDropfile, ITEmptyState, type ITEmptyStateProps, ITFlex, type ITFlexProps, ITFormBuilder, type ITFormBuilderProps, ITFormHeader, type ITFormHeaderProps, ITGrid, type ITGridProps, ITImage, type ITImageProps, ITInput, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, type LoaderProps as ITLoaderProps, ITNavbar, type ITNavbarProps, type ITNavigationItem, type ITNavigationSubItem, ITPage, ITPageHeader, type ITPageHeaderProps, type ITPageProps, ITPagination, type ITPaginationProps, ITPopover, type ITPopoverProps, ITProgress, type ITProgressProps, ITRadioGroup, type ITRadioGroupProps, type ITRadioOption, ITSearchSelect, type ITSearchSelectProps, ITSearchTable, type ITSearchTableProps, ITSegmentedControl, type ITSegmentedControlProps, ITSelect, type ITSelectProps, ITSidebar, type ITSidebarProps, ITSkeleton, type ITSkeletonProps, ITSlideToggle, type ITSlideToggleProps, ITSlider, type ITSliderProps, ITStack, type ITStackProps, ITStatCard, type ITStatCardProps, ITStepper, type ITStepperProps, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITTextProps, ITTextarea, type ITTextareaProps, type ITThemeConfig, type ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, UploadStatus, type UseTableStateOptions, type UseTableStateResult, createValidationSchema, getContrastTextColor, isLightColor, resolveCssColor, useClickOutside, useDebouncedSearch, useEditableRow, useITTheme, useITThemeSafe, useTableState };
|
|
3132
|
+
export { type Column, type FieldConfig, type FieldConfigV2, FileTypeEnum, ITAlert, type ITAlertProps, ITAvatar, type ITAvatarProps, ITBadget, type ITBadgetProps, type ITBreadcrumbItem, ITBreadcrumbs, type ITBreadcrumbsProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITCheckbox, type ITCheckboxProps, ITConfirmDialog, type ITConfirmDialogProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDivider, type ITDividerProps, ITDrawer, type ITDrawerProps, ITDropfile, ITEmptyState, type ITEmptyStateProps, ITFlex, type ITFlexProps, ITFormBuilder, type ITFormBuilderProps, ITFormHeader, type ITFormHeaderProps, ITGrid, type ITGridProps, ITImage, type ITImageProps, ITInput, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, type LoaderProps as ITLoaderProps, ITNavbar, type ITNavbarProps, type ITNavigationItem, type ITNavigationSubItem, ITPage, ITPageHeader, type ITPageHeaderProps, type ITPageProps, ITPagination, type ITPaginationProps, ITPopover, type ITPopoverProps, ITProgress, type ITProgressProps, ITRadioGroup, type ITRadioGroupProps, type ITRadioOption, ITSearchSelect, type ITSearchSelectProps, ITSearchTable, type ITSearchTableProps, ITSegmentedControl, type ITSegmentedControlProps, ITSelect, type ITSelectProps, ITSidebar, type ITSidebarProps, ITSkeleton, type ITSkeletonProps, ITSlideToggle, type ITSlideToggleProps, ITSlider, type ITSliderProps, ITStack, type ITStackProps, ITStatCard, type ITStatCardProps, ITStepper, type ITStepperProps, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITTextProps, ITTextarea, type ITTextareaProps, type ITThemeConfig, type ITThemePalette$1 as ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, UploadStatus, type UseTableStateOptions, type UseTableStateResult, createValidationSchema, getContrastTextColor, isLightColor, resolveCssColor, useClickOutside, useDebouncedSearch, useEditableRow, useITTheme, useITThemeSafe, useTableState };
|