@vygruppen/spor-react 13.4.1 → 13.4.3

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/dist/index.d.cts CHANGED
@@ -1390,6 +1390,7 @@ interface DialogContentProps extends Dialog.ContentProps {
1390
1390
  portalRef?: React$1.RefObject<HTMLElement>;
1391
1391
  backdrop?: boolean;
1392
1392
  children?: React$1.ReactNode;
1393
+ positionerProps?: Dialog.PositionerProps;
1393
1394
  }
1394
1395
  declare const DialogContent: ({ ref, ...props }: DialogContentProps & {
1395
1396
  ref?: React$1.Ref<HTMLDivElement>;
@@ -1728,8 +1729,10 @@ type AttachedInputsProps = RecipeVariantProps<typeof attachedInputsRecipe> & Gro
1728
1729
  } | {
1729
1730
  onFlip: () => void;
1730
1731
  flipAriaLabel: string;
1731
- });
1732
- declare const AttachedInputs: ({ ref, ...props }: AttachedInputsProps & {
1732
+ }) & {
1733
+ flipButtonProps?: Omit<IconButtonProps$1, "icon" | "aria-label" | "onClick" | "variant" | "size" | "orientation" | "spinner">;
1734
+ };
1735
+ declare const AttachedInputs: ({ ref, flipButtonProps, ...props }: AttachedInputsProps & {
1733
1736
  ref?: React.Ref<HTMLDivElement>;
1734
1737
  }) => react_jsx_runtime.JSX.Element;
1735
1738
 
@@ -4273,7 +4276,124 @@ declare const TooltipContent: ({ ref, children, showArrow, ...props }: TooltipPr
4273
4276
  ref?: React.Ref<HTMLDivElement>;
4274
4277
  }) => react_jsx_runtime.JSX.Element;
4275
4278
 
4279
+ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4280
+ colorPalette: {
4281
+ neutral: {
4282
+ backgroundColor: "surface";
4283
+ color: "text";
4284
+ "& svg": {
4285
+ color: "icon";
4286
+ };
4287
+ };
4288
+ grey: {
4289
+ backgroundColor: "surface.neutral";
4290
+ color: "text.neutral";
4291
+ "& svg": {
4292
+ color: "icon.neutral";
4293
+ };
4294
+ };
4295
+ green: {
4296
+ backgroundColor: "surface.success";
4297
+ color: "text.success";
4298
+ "& svg": {
4299
+ color: "icon.success";
4300
+ };
4301
+ };
4302
+ blue: {
4303
+ backgroundColor: "surface.info";
4304
+ color: "text.info";
4305
+ "& svg": {
4306
+ color: "icon.info";
4307
+ };
4308
+ };
4309
+ cream: {
4310
+ backgroundColor: "surface.warning";
4311
+ color: "text.warning";
4312
+ "& svg": {
4313
+ color: "icon.warning";
4314
+ };
4315
+ };
4316
+ yellow: {
4317
+ backgroundColor: "surface.notice";
4318
+ color: "text.notice";
4319
+ "& svg": {
4320
+ color: "icon.notice";
4321
+ };
4322
+ };
4323
+ orange: {
4324
+ backgroundColor: "surface.caution";
4325
+ color: "text.caution";
4326
+ "& svg": {
4327
+ color: "icon.caution";
4328
+ };
4329
+ };
4330
+ red: {
4331
+ backgroundColor: "surface.critical";
4332
+ color: "text.critical";
4333
+ "& svg": {
4334
+ color: "icon.critical";
4335
+ };
4336
+ };
4337
+ brightRed: {
4338
+ backgroundColor: {
4339
+ _light: "brightRed";
4340
+ _dark: "brightRed";
4341
+ };
4342
+ color: {
4343
+ _light: "pink";
4344
+ _dark: "pink";
4345
+ };
4346
+ "& svg": {
4347
+ color: {
4348
+ _light: "pink";
4349
+ _dark: "pink";
4350
+ };
4351
+ };
4352
+ };
4353
+ disabled: {
4354
+ backgroundColor: "surface.disabled";
4355
+ color: "text.disabled";
4356
+ "& svg": {
4357
+ color: "icon.disabled";
4358
+ };
4359
+ };
4360
+ };
4361
+ size: {
4362
+ sm: {
4363
+ fontSize: "desktop.2xs";
4364
+ paddingX: "0.5";
4365
+ paddingY: "0";
4366
+ fontWeight: "normal";
4367
+ borderRadius: "xxs";
4368
+ };
4369
+ md: {
4370
+ fontSize: "desktop.2xs";
4371
+ paddingX: "1";
4372
+ paddingY: "0.5";
4373
+ fontWeight: "bold";
4374
+ borderRadius: "xs";
4375
+ };
4376
+ lg: {
4377
+ fontSize: "desktop.xs";
4378
+ paddingX: "1.5";
4379
+ paddingY: "0.5";
4380
+ fontWeight: "bold";
4381
+ borderRadius: "xs";
4382
+ };
4383
+ };
4384
+ attached: {
4385
+ true: {
4386
+ borderBottomRadius: "none";
4387
+ };
4388
+ };
4389
+ inverted: {
4390
+ true: {};
4391
+ };
4392
+ }>;
4393
+
4394
+ type BadgeVariantProps = RecipeVariantProps<typeof badgeRecipie>;
4276
4395
  type BadgeProps = BadgeProps$1 & {
4396
+ colorPalette?: BadgeVariantProps["colorPalette"];
4277
4397
  icon?: IconComponent;
4278
4398
  };
4279
4399
  declare const Badge: ({ ref, icon, children, ...props }: BadgeProps & {
package/dist/index.d.ts CHANGED
@@ -1390,6 +1390,7 @@ interface DialogContentProps extends Dialog.ContentProps {
1390
1390
  portalRef?: React$1.RefObject<HTMLElement>;
1391
1391
  backdrop?: boolean;
1392
1392
  children?: React$1.ReactNode;
1393
+ positionerProps?: Dialog.PositionerProps;
1393
1394
  }
1394
1395
  declare const DialogContent: ({ ref, ...props }: DialogContentProps & {
1395
1396
  ref?: React$1.Ref<HTMLDivElement>;
@@ -1728,8 +1729,10 @@ type AttachedInputsProps = RecipeVariantProps<typeof attachedInputsRecipe> & Gro
1728
1729
  } | {
1729
1730
  onFlip: () => void;
1730
1731
  flipAriaLabel: string;
1731
- });
1732
- declare const AttachedInputs: ({ ref, ...props }: AttachedInputsProps & {
1732
+ }) & {
1733
+ flipButtonProps?: Omit<IconButtonProps$1, "icon" | "aria-label" | "onClick" | "variant" | "size" | "orientation" | "spinner">;
1734
+ };
1735
+ declare const AttachedInputs: ({ ref, flipButtonProps, ...props }: AttachedInputsProps & {
1733
1736
  ref?: React.Ref<HTMLDivElement>;
1734
1737
  }) => react_jsx_runtime.JSX.Element;
1735
1738
 
@@ -4273,7 +4276,124 @@ declare const TooltipContent: ({ ref, children, showArrow, ...props }: TooltipPr
4273
4276
  ref?: React.Ref<HTMLDivElement>;
4274
4277
  }) => react_jsx_runtime.JSX.Element;
4275
4278
 
4279
+ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4280
+ colorPalette: {
4281
+ neutral: {
4282
+ backgroundColor: "surface";
4283
+ color: "text";
4284
+ "& svg": {
4285
+ color: "icon";
4286
+ };
4287
+ };
4288
+ grey: {
4289
+ backgroundColor: "surface.neutral";
4290
+ color: "text.neutral";
4291
+ "& svg": {
4292
+ color: "icon.neutral";
4293
+ };
4294
+ };
4295
+ green: {
4296
+ backgroundColor: "surface.success";
4297
+ color: "text.success";
4298
+ "& svg": {
4299
+ color: "icon.success";
4300
+ };
4301
+ };
4302
+ blue: {
4303
+ backgroundColor: "surface.info";
4304
+ color: "text.info";
4305
+ "& svg": {
4306
+ color: "icon.info";
4307
+ };
4308
+ };
4309
+ cream: {
4310
+ backgroundColor: "surface.warning";
4311
+ color: "text.warning";
4312
+ "& svg": {
4313
+ color: "icon.warning";
4314
+ };
4315
+ };
4316
+ yellow: {
4317
+ backgroundColor: "surface.notice";
4318
+ color: "text.notice";
4319
+ "& svg": {
4320
+ color: "icon.notice";
4321
+ };
4322
+ };
4323
+ orange: {
4324
+ backgroundColor: "surface.caution";
4325
+ color: "text.caution";
4326
+ "& svg": {
4327
+ color: "icon.caution";
4328
+ };
4329
+ };
4330
+ red: {
4331
+ backgroundColor: "surface.critical";
4332
+ color: "text.critical";
4333
+ "& svg": {
4334
+ color: "icon.critical";
4335
+ };
4336
+ };
4337
+ brightRed: {
4338
+ backgroundColor: {
4339
+ _light: "brightRed";
4340
+ _dark: "brightRed";
4341
+ };
4342
+ color: {
4343
+ _light: "pink";
4344
+ _dark: "pink";
4345
+ };
4346
+ "& svg": {
4347
+ color: {
4348
+ _light: "pink";
4349
+ _dark: "pink";
4350
+ };
4351
+ };
4352
+ };
4353
+ disabled: {
4354
+ backgroundColor: "surface.disabled";
4355
+ color: "text.disabled";
4356
+ "& svg": {
4357
+ color: "icon.disabled";
4358
+ };
4359
+ };
4360
+ };
4361
+ size: {
4362
+ sm: {
4363
+ fontSize: "desktop.2xs";
4364
+ paddingX: "0.5";
4365
+ paddingY: "0";
4366
+ fontWeight: "normal";
4367
+ borderRadius: "xxs";
4368
+ };
4369
+ md: {
4370
+ fontSize: "desktop.2xs";
4371
+ paddingX: "1";
4372
+ paddingY: "0.5";
4373
+ fontWeight: "bold";
4374
+ borderRadius: "xs";
4375
+ };
4376
+ lg: {
4377
+ fontSize: "desktop.xs";
4378
+ paddingX: "1.5";
4379
+ paddingY: "0.5";
4380
+ fontWeight: "bold";
4381
+ borderRadius: "xs";
4382
+ };
4383
+ };
4384
+ attached: {
4385
+ true: {
4386
+ borderBottomRadius: "none";
4387
+ };
4388
+ };
4389
+ inverted: {
4390
+ true: {};
4391
+ };
4392
+ }>;
4393
+
4394
+ type BadgeVariantProps = RecipeVariantProps<typeof badgeRecipie>;
4276
4395
  type BadgeProps = BadgeProps$1 & {
4396
+ colorPalette?: BadgeVariantProps["colorPalette"];
4277
4397
  icon?: IconComponent;
4278
4398
  };
4279
4399
  declare const Badge: ({ ref, icon, children, ...props }: BadgeProps & {