myoperator-ui 0.0.105 → 0.0.107

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 (2) hide show
  1. package/dist/index.js +5 -6
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -567,7 +567,7 @@ type Key = \`\${Kind}-\${Variant}\`;
567
567
  /**
568
568
  * Maps kind-variant combinations to semantic HTML tags
569
569
  */
570
- const mapTagName: { [key in Key]: keyof JSX.IntrinsicElements } = {
570
+ const mapTagName: { [key in Key]: keyof React.JSX.IntrinsicElements } = {
571
571
  "display-large": "h4",
572
572
  "display-medium": "h4",
573
573
  "display-small": "h4",
@@ -650,7 +650,7 @@ export interface TypographyProps extends React.HTMLAttributes<HTMLElement> {
650
650
  /** Enable text truncation with ellipsis */
651
651
  truncate?: boolean;
652
652
  /** Override the default HTML tag */
653
- tag?: keyof JSX.IntrinsicElements;
653
+ tag?: keyof React.JSX.IntrinsicElements;
654
654
  /** For label elements - associates with form input */
655
655
  htmlFor?: string;
656
656
  }
@@ -4089,7 +4089,6 @@ const addToRemoveQueue = (toastId: string) => {
4089
4089
  toastTimeouts.set(toastId, timeout);
4090
4090
  };
4091
4091
 
4092
- // eslint-disable-next-line react-refresh/only-export-components
4093
4092
  export const reducer = (state: State, action: Action): State => {
4094
4093
  switch (action.type) {
4095
4094
  case "ADD_TOAST":
@@ -4254,7 +4253,7 @@ function Toaster() {
4254
4253
  const Icon = variant ? variantIcons[variant] : null;
4255
4254
 
4256
4255
  return (
4257
- <Toast key={id} variant={variant} className={variant} {...props}>
4256
+ <Toast key={id} variant={variant} className={variant ?? undefined} {...props}>
4258
4257
  <div className="flex gap-3">
4259
4258
  {Icon && (
4260
4259
  <Icon
@@ -4284,7 +4283,6 @@ function Toaster() {
4284
4283
  );
4285
4284
  }
4286
4285
 
4287
- // eslint-disable-next-line react-refresh/only-export-components
4288
4286
  export { useToast, toast, Toaster };
4289
4287
 
4290
4288
  /**
@@ -4848,7 +4846,8 @@ const PageHeader = React.forwardRef<HTMLDivElement, PageHeaderProps>(
4848
4846
  const result: React.ReactNode[] = [];
4849
4847
  React.Children.forEach(children, (child) => {
4850
4848
  if (React.isValidElement(child) && child.type === React.Fragment) {
4851
- result.push(...flattenChildren(child.props.children));
4849
+ const fragmentProps = child.props as { children?: React.ReactNode };
4850
+ result.push(...flattenChildren(fragmentProps.children));
4852
4851
  } else if (child !== null && child !== undefined) {
4853
4852
  result.push(child);
4854
4853
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-ui",
3
- "version": "0.0.105",
3
+ "version": "0.0.107",
4
4
  "description": "CLI for adding myOperator UI components to your project",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -21,7 +21,8 @@
21
21
  "integrity:snapshot": "node scripts/check-integrity.js snapshot",
22
22
  "integrity:verify": "node scripts/check-integrity.js verify",
23
23
  "validate-types": "node scripts/validate-types.js",
24
- "build": "npm run generate-registry && npm run validate:prefix && npm run validate:bootstrap && npm run validate:multifile && tsup src/index.ts --format esm --dts && npm run verify-build",
24
+ "validate:source-types": "node scripts/validate-source-types.js",
25
+ "build": "npm run validate:source-types && npm run generate-registry && npm run validate:prefix && npm run validate:bootstrap && npm run validate:multifile && tsup src/index.ts --format esm --dts && npm run verify-build",
25
26
  "build:safe": "npm run integrity:snapshot && npm run build",
26
27
  "dev": "tsup src/index.ts --format esm --watch",
27
28
  "typecheck": "tsc --noEmit",