myoperator-ui 0.0.96 → 0.0.98

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 +17 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -289,9 +289,9 @@ const buttonVariants = cva(
289
289
  "border border-dashed border-[#D5D7DA] bg-transparent text-[#717680] hover:border-[#343E55] hover:text-[#343E55] hover:bg-[#FAFAFA]",
290
290
  },
291
291
  size: {
292
- default: "py-2.5 px-4 [&_svg]:size-4",
293
- sm: "py-2 px-3 text-xs [&_svg]:size-3.5",
294
- lg: "py-3 px-6 [&_svg]:size-5",
292
+ default: "min-w-20 py-2.5 px-4 [&_svg]:size-4",
293
+ sm: "min-w-16 py-2 px-3 text-xs [&_svg]:size-3.5",
294
+ lg: "min-w-24 py-3 px-6 [&_svg]:size-5",
295
295
  icon: "h-8 w-8 rounded-md",
296
296
  "icon-sm": "h-7 w-7 rounded-md",
297
297
  "icon-lg": "h-10 w-10 rounded-md",
@@ -671,7 +671,7 @@ const Typography = React.forwardRef<HTMLElement, TypographyProps>(
671
671
  ref
672
672
  ) => {
673
673
  const key: Key = \`\${kind}-\${variant}\`;
674
- const Tag = tag || mapTagName[key];
674
+ const Tag = (tag || mapTagName[key]) as React.ElementType;
675
675
 
676
676
  const classes = cn(
677
677
  "m-0", // Reset margin
@@ -682,11 +682,13 @@ const Typography = React.forwardRef<HTMLElement, TypographyProps>(
682
682
  className
683
683
  );
684
684
 
685
+ const tagName = tag || mapTagName[key];
686
+
685
687
  return (
686
688
  <Tag
687
- ref={ref as React.Ref<HTMLElement>}
689
+ ref={ref}
688
690
  className={classes}
689
- htmlFor={Tag === "label" ? htmlFor : undefined}
691
+ htmlFor={tagName === "label" ? htmlFor : undefined}
690
692
  {...props}
691
693
  >
692
694
  {children}
@@ -3151,6 +3153,11 @@ export {
3151
3153
  "clsx",
3152
3154
  "tailwind-merge"
3153
3155
  ],
3156
+ internalDependencies: [
3157
+ "dialog",
3158
+ "button",
3159
+ "input"
3160
+ ],
3154
3161
  files: [
3155
3162
  {
3156
3163
  name: "delete-confirmation-modal.tsx",
@@ -3332,6 +3339,10 @@ export { DeleteConfirmationModal };
3332
3339
  "clsx",
3333
3340
  "tailwind-merge"
3334
3341
  ],
3342
+ internalDependencies: [
3343
+ "dialog",
3344
+ "button"
3345
+ ],
3335
3346
  files: [
3336
3347
  {
3337
3348
  name: "confirmation-modal.tsx",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myoperator-ui",
3
- "version": "0.0.96",
3
+ "version": "0.0.98",
4
4
  "description": "CLI for adding myOperator UI components to your project",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",