@ufoui/core 0.0.5 → 0.0.40

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.
Files changed (80) hide show
  1. package/assets/icons.d.ts +8 -2
  2. package/components/accordion/accordion.d.ts +31 -3
  3. package/components/accordion/accordionItem.d.ts +31 -3
  4. package/components/badge/badge.d.ts +2 -2
  5. package/components/base/boxBase.d.ts +14 -36
  6. package/components/base/buttonBase.d.ts +4 -4
  7. package/components/base/checkboxBase.d.ts +2 -2
  8. package/components/base/dialogBase.d.ts +111 -13
  9. package/components/base/fieldBase.d.ts +1 -2
  10. package/components/base/textBase.d.ts +1 -2
  11. package/components/breadcrumbs/breadcrumbs.d.ts +48 -0
  12. package/components/calendar/calendar.d.ts +23 -0
  13. package/components/calendar/calendarUtils.d.ts +18 -0
  14. package/components/card/card.d.ts +2 -2
  15. package/components/collapse/collapse.d.ts +15 -20
  16. package/components/dialogs/dialog.d.ts +1 -1
  17. package/components/dialogs/dialogActions.d.ts +19 -7
  18. package/components/dialogs/dialogActions.guards.d.ts +15 -0
  19. package/components/dialogs/dialogContent.d.ts +7 -1
  20. package/components/dialogs/dialogHeader.d.ts +60 -0
  21. package/components/dialogs/dialogTitle.d.ts +9 -5
  22. package/components/dialogs/drawer.d.ts +1 -1
  23. package/components/dialogs/index.d.ts +1 -0
  24. package/components/fieldset/fieldset.d.ts +1 -1
  25. package/components/link/link.d.ts +58 -0
  26. package/components/list/list.d.ts +1 -1
  27. package/components/menu/menu.d.ts +2 -2
  28. package/components/rating/rating.d.ts +68 -0
  29. package/components/slider/slider.d.ts +11 -0
  30. package/components/switch/switch.d.ts +2 -10
  31. package/components/themeProvider/themeProvider.d.ts +10 -15
  32. package/components/toast/toast.d.ts +18 -4
  33. package/components/toast/toastViewport.d.ts +4 -3
  34. package/components/tooltip/tooltip.d.ts +2 -2
  35. package/context/selectionContext.d.ts +18 -17
  36. package/hooks/index.d.ts +3 -1
  37. package/hooks/useAnimate.d.ts +36 -16
  38. package/hooks/useFocusTrap.d.ts +32 -0
  39. package/hooks/useFocusVisible.d.ts +16 -14
  40. package/hooks/useResizeObserver.d.ts +7 -3
  41. package/hooks/useRovingFocus.d.ts +30 -0
  42. package/hooks/useSelection.d.ts +10 -7
  43. package/hooks/useSelectionState.d.ts +29 -0
  44. package/hooks/useSliderKeys.d.ts +41 -0
  45. package/index.css +1 -1
  46. package/index.d.ts +4 -8
  47. package/index.js +4782 -0
  48. package/internal/controlGrid/controlGrid.d.ts +32 -0
  49. package/internal/controlLabel/controlLabel.d.ts +31 -0
  50. package/internal/description/description.d.ts +18 -0
  51. package/internal/icon/icon.d.ts +28 -0
  52. package/internal/index.d.ts +7 -0
  53. package/internal/inlineTooltip/index.d.ts +1 -0
  54. package/internal/inlineTooltip/inlineTooltipManager.d.ts +3 -3
  55. package/internal/slots/slot.d.ts +44 -0
  56. package/internal/stateLayer/stateLayer.d.ts +33 -0
  57. package/package.json +12 -3
  58. package/types/dialog.d.ts +37 -0
  59. package/types/index.d.ts +1 -0
  60. package/types/motion.d.ts +2 -2
  61. package/types/theme.d.ts +0 -30
  62. package/utils/applyThemeTokens.d.ts +10 -0
  63. package/utils/calculateFloatingPosition.d.ts +3 -3
  64. package/utils/color.d.ts +61 -216
  65. package/utils/colorRegistry.d.ts +44 -0
  66. package/utils/controlStyle.d.ts +8 -8
  67. package/utils/flatChildren.d.ts +17 -0
  68. package/utils/generateMaterialColors.d.ts +7 -7
  69. package/utils/getWrapperStyle.d.ts +53 -0
  70. package/utils/index.d.ts +5 -1
  71. package/utils/renderPortal.d.ts +30 -0
  72. package/utils/toasts/ensureViewport.d.ts +6 -1
  73. package/utils/toasts/toast.d.ts +66 -10
  74. package/utils/toasts/toastStore.d.ts +55 -1
  75. package/utils/utils.d.ts +67 -55
  76. package/hooks/useFocusState.d.ts +0 -16
  77. package/index.mjs +0 -4649
  78. package/internal/inlineTooltip/inlineTooltip.d.ts +0 -11
  79. package/internal/inlineTooltip/inlineTooltip2.d.ts +0 -10
  80. package/utils/generateSchemes.d.ts +0 -32
@@ -1,11 +0,0 @@
1
- import { default as React, HTMLProps } from 'react';
2
- interface InlineTooltipProps extends HTMLProps<HTMLSpanElement> {
3
- id: string;
4
- title: string;
5
- triggerRef: React.RefObject<HTMLElement>;
6
- }
7
- export declare const InlineTooltip: {
8
- ({ id, title, triggerRef, }: InlineTooltipProps): import("react/jsx-runtime").JSX.Element;
9
- displayName: string;
10
- };
11
- export {};
@@ -1,10 +0,0 @@
1
- import { HTMLProps } from 'react';
2
- interface InlineTooltipProps2 extends HTMLProps<HTMLSpanElement> {
3
- id: string;
4
- title: string;
5
- }
6
- export declare const InlineTooltip2: {
7
- ({ id, title }: InlineTooltipProps2): import("react/jsx-runtime").JSX.Element;
8
- displayName: string;
9
- };
10
- export {};
@@ -1,32 +0,0 @@
1
- import { ExtraColorOverrides } from './generateMaterialColors';
2
- import { PartialThemeSchemes, ThemeSchemes } from '../types';
3
- /**
4
- * Generates and injects CSS custom properties for Material Design 3 theme colors.
5
- *
6
- * This function calls `generateMaterialColors()` to resolve a complete light/dark
7
- * `ThemeSchemes` object based on a seed color, optional extra semantic colors
8
- * (`info`, `warning`, `success`), and optional overrides for individual color tokens.
9
- *
10
- * All resolved tokens are converted to CSS variables using kebab-case, e.g.:
11
- * `--uui-color-primary`, `--uui-color-on-surface`, etc.
12
- *
13
- * Light mode tokens are injected into `:root`, dark mode tokens into `.dark`.
14
- * Variables are injected once into a single `<style>` tag with ID `ufo-ui-theme`.
15
- *
16
- * @param seedColor - The base seed color used to generate MD3 tonal palettes.
17
- * Defaults to `#6750A4` if not provided.
18
- * @param extraColors - Optional map of base semantic colors for `info`, `warning`, and `success`.
19
- * These override the default values.
20
- * @param schemes - Optional overrides for light and dark color tokens.
21
- * Partial values will be merged with the generated ones.
22
- *
23
- * @returns A fully resolved `ThemeSchemes` object containing all tokens for light and dark modes.
24
- *
25
- * @example
26
- * ```ts
27
- * const schemes = generateSchemes('#6200ee', { info: '#0288d1' }, { light: { primary: '#ff5722' } });
28
- * ```
29
- *
30
- * @category Theme
31
- */
32
- export declare function generateSchemes(seedColor?: string, extraColors?: ExtraColorOverrides, schemes?: PartialThemeSchemes): ThemeSchemes;