@mirohq/design-system-base-hotkey 0.2.17 → 1.0.0-pdl-removing-ffs.1

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/main.js CHANGED
@@ -10,32 +10,18 @@ const Hotkey = designSystemStitches.styled(designSystemPrimitive.Primitive.span,
10
10
  fontSize: "$175",
11
11
  lineHeight: "20px",
12
12
  variants: {
13
- v1: {
14
- true: {}
15
- },
16
13
  variant: {
17
14
  neutral: {
18
15
  color: "$text-neutrals-subtle"
19
16
  },
20
17
  inverted: {
21
- backgroundColor: "$background-neutrals-inverted-subtle",
22
- color: "$text-neutrals-inverted",
23
- padding: "2px 6px",
24
- borderRadius: "$50"
25
- }
26
- }
27
- },
28
- compoundVariants: [
29
- {
30
- variant: "inverted",
31
- v1: true,
32
- css: {
33
18
  backgroundColor: "$gray-650",
34
19
  color: "$white",
35
- borderRadius: "$75"
20
+ borderRadius: "$75",
21
+ padding: "2px 6px"
36
22
  }
37
23
  }
38
- ],
24
+ },
39
25
  defaultVariants: {
40
26
  variant: "neutral"
41
27
  }
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sources":["../src/hotkey.ts"],"sourcesContent":["import type { ComponentPropsWithRef, HTMLAttributes } from 'react'\nimport type { CSS, SafeProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nexport const Hotkey = styled(Primitive.span, {\n whiteSpace: 'nowrap',\n fontSize: '$175',\n lineHeight: '20px',\n\n variants: {\n v1: {\n true: {},\n },\n variant: {\n neutral: {\n color: '$text-neutrals-subtle',\n },\n inverted: {\n backgroundColor: '$background-neutrals-inverted-subtle',\n color: '$text-neutrals-inverted',\n padding: '2px 6px',\n borderRadius: '$50',\n },\n },\n },\n compoundVariants: [\n {\n variant: 'inverted',\n v1: true,\n css: {\n backgroundColor: '$gray-650',\n color: '$white',\n borderRadius: '$75',\n },\n },\n ],\n defaultVariants: {\n variant: 'neutral',\n },\n})\n\nexport type HotkeyStyledProps = ComponentPropsWithRef<typeof Hotkey>\n\ntype SpanProps = HTMLAttributes<HTMLSpanElement>\nexport type HotkeySharedProps = SafeProps<SpanProps & { css?: CSS }>\n"],"names":["styled","Primitive"],"mappings":";;;;;;;AAKa,MAAA,MAAA,GAASA,2BAAO,CAAAC,+BAAA,CAAU,IAAM,EAAA;AAAA,EAC3C,UAAY,EAAA,QAAA;AAAA,EACZ,QAAU,EAAA,MAAA;AAAA,EACV,UAAY,EAAA,MAAA;AAAA,EAEZ,QAAU,EAAA;AAAA,IACR,EAAI,EAAA;AAAA,MACF,MAAM,EAAC;AAAA,KACT;AAAA,IACA,OAAS,EAAA;AAAA,MACP,OAAS,EAAA;AAAA,QACP,KAAO,EAAA,uBAAA;AAAA,OACT;AAAA,MACA,QAAU,EAAA;AAAA,QACR,eAAiB,EAAA,sCAAA;AAAA,QACjB,KAAO,EAAA,yBAAA;AAAA,QACP,OAAS,EAAA,SAAA;AAAA,QACT,YAAc,EAAA,KAAA;AAAA,OAChB;AAAA,KACF;AAAA,GACF;AAAA,EACA,gBAAkB,EAAA;AAAA,IAChB;AAAA,MACE,OAAS,EAAA,UAAA;AAAA,MACT,EAAI,EAAA,IAAA;AAAA,MACJ,GAAK,EAAA;AAAA,QACH,eAAiB,EAAA,WAAA;AAAA,QACjB,KAAO,EAAA,QAAA;AAAA,QACP,YAAc,EAAA,KAAA;AAAA,OAChB;AAAA,KACF;AAAA,GACF;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,OAAS,EAAA,SAAA;AAAA,GACX;AACF,CAAC;;;;"}
1
+ {"version":3,"file":"main.js","sources":["../src/hotkey.ts"],"sourcesContent":["import type { ComponentPropsWithRef, HTMLAttributes } from 'react'\nimport type { CSS, SafeProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nexport const Hotkey = styled(Primitive.span, {\n whiteSpace: 'nowrap',\n fontSize: '$175',\n lineHeight: '20px',\n\n variants: {\n variant: {\n neutral: {\n color: '$text-neutrals-subtle',\n },\n inverted: {\n backgroundColor: '$gray-650',\n color: '$white',\n borderRadius: '$75',\n padding: '2px 6px',\n },\n },\n },\n defaultVariants: {\n variant: 'neutral',\n },\n})\n\nexport type HotkeyStyledProps = ComponentPropsWithRef<typeof Hotkey>\n\ntype SpanProps = HTMLAttributes<HTMLSpanElement>\nexport type HotkeySharedProps = SafeProps<SpanProps & { css?: CSS }>\n"],"names":["styled","Primitive"],"mappings":";;;;;;;AAKa,MAAA,MAAA,GAASA,2BAAO,CAAAC,+BAAA,CAAU,IAAM,EAAA;AAAA,EAC3C,UAAY,EAAA,QAAA;AAAA,EACZ,QAAU,EAAA,MAAA;AAAA,EACV,UAAY,EAAA,MAAA;AAAA,EAEZ,QAAU,EAAA;AAAA,IACR,OAAS,EAAA;AAAA,MACP,OAAS,EAAA;AAAA,QACP,KAAO,EAAA,uBAAA;AAAA,OACT;AAAA,MACA,QAAU,EAAA;AAAA,QACR,eAAiB,EAAA,WAAA;AAAA,QACjB,KAAO,EAAA,QAAA;AAAA,QACP,YAAc,EAAA,KAAA;AAAA,QACd,OAAS,EAAA,SAAA;AAAA,OACX;AAAA,KACF;AAAA,GACF;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,OAAS,EAAA,SAAA;AAAA,GACX;AACF,CAAC;;;;"}
package/dist/module.js CHANGED
@@ -6,32 +6,18 @@ const Hotkey = styled(Primitive.span, {
6
6
  fontSize: "$175",
7
7
  lineHeight: "20px",
8
8
  variants: {
9
- v1: {
10
- true: {}
11
- },
12
9
  variant: {
13
10
  neutral: {
14
11
  color: "$text-neutrals-subtle"
15
12
  },
16
13
  inverted: {
17
- backgroundColor: "$background-neutrals-inverted-subtle",
18
- color: "$text-neutrals-inverted",
19
- padding: "2px 6px",
20
- borderRadius: "$50"
21
- }
22
- }
23
- },
24
- compoundVariants: [
25
- {
26
- variant: "inverted",
27
- v1: true,
28
- css: {
29
14
  backgroundColor: "$gray-650",
30
15
  color: "$white",
31
- borderRadius: "$75"
16
+ borderRadius: "$75",
17
+ padding: "2px 6px"
32
18
  }
33
19
  }
34
- ],
20
+ },
35
21
  defaultVariants: {
36
22
  variant: "neutral"
37
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sources":["../src/hotkey.ts"],"sourcesContent":["import type { ComponentPropsWithRef, HTMLAttributes } from 'react'\nimport type { CSS, SafeProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nexport const Hotkey = styled(Primitive.span, {\n whiteSpace: 'nowrap',\n fontSize: '$175',\n lineHeight: '20px',\n\n variants: {\n v1: {\n true: {},\n },\n variant: {\n neutral: {\n color: '$text-neutrals-subtle',\n },\n inverted: {\n backgroundColor: '$background-neutrals-inverted-subtle',\n color: '$text-neutrals-inverted',\n padding: '2px 6px',\n borderRadius: '$50',\n },\n },\n },\n compoundVariants: [\n {\n variant: 'inverted',\n v1: true,\n css: {\n backgroundColor: '$gray-650',\n color: '$white',\n borderRadius: '$75',\n },\n },\n ],\n defaultVariants: {\n variant: 'neutral',\n },\n})\n\nexport type HotkeyStyledProps = ComponentPropsWithRef<typeof Hotkey>\n\ntype SpanProps = HTMLAttributes<HTMLSpanElement>\nexport type HotkeySharedProps = SafeProps<SpanProps & { css?: CSS }>\n"],"names":[],"mappings":";;;AAKa,MAAA,MAAA,GAAS,MAAO,CAAA,SAAA,CAAU,IAAM,EAAA;AAAA,EAC3C,UAAY,EAAA,QAAA;AAAA,EACZ,QAAU,EAAA,MAAA;AAAA,EACV,UAAY,EAAA,MAAA;AAAA,EAEZ,QAAU,EAAA;AAAA,IACR,EAAI,EAAA;AAAA,MACF,MAAM,EAAC;AAAA,KACT;AAAA,IACA,OAAS,EAAA;AAAA,MACP,OAAS,EAAA;AAAA,QACP,KAAO,EAAA,uBAAA;AAAA,OACT;AAAA,MACA,QAAU,EAAA;AAAA,QACR,eAAiB,EAAA,sCAAA;AAAA,QACjB,KAAO,EAAA,yBAAA;AAAA,QACP,OAAS,EAAA,SAAA;AAAA,QACT,YAAc,EAAA,KAAA;AAAA,OAChB;AAAA,KACF;AAAA,GACF;AAAA,EACA,gBAAkB,EAAA;AAAA,IAChB;AAAA,MACE,OAAS,EAAA,UAAA;AAAA,MACT,EAAI,EAAA,IAAA;AAAA,MACJ,GAAK,EAAA;AAAA,QACH,eAAiB,EAAA,WAAA;AAAA,QACjB,KAAO,EAAA,QAAA;AAAA,QACP,YAAc,EAAA,KAAA;AAAA,OAChB;AAAA,KACF;AAAA,GACF;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,OAAS,EAAA,SAAA;AAAA,GACX;AACF,CAAC;;;;"}
1
+ {"version":3,"file":"module.js","sources":["../src/hotkey.ts"],"sourcesContent":["import type { ComponentPropsWithRef, HTMLAttributes } from 'react'\nimport type { CSS, SafeProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nexport const Hotkey = styled(Primitive.span, {\n whiteSpace: 'nowrap',\n fontSize: '$175',\n lineHeight: '20px',\n\n variants: {\n variant: {\n neutral: {\n color: '$text-neutrals-subtle',\n },\n inverted: {\n backgroundColor: '$gray-650',\n color: '$white',\n borderRadius: '$75',\n padding: '2px 6px',\n },\n },\n },\n defaultVariants: {\n variant: 'neutral',\n },\n})\n\nexport type HotkeyStyledProps = ComponentPropsWithRef<typeof Hotkey>\n\ntype SpanProps = HTMLAttributes<HTMLSpanElement>\nexport type HotkeySharedProps = SafeProps<SpanProps & { css?: CSS }>\n"],"names":[],"mappings":";;;AAKa,MAAA,MAAA,GAAS,MAAO,CAAA,SAAA,CAAU,IAAM,EAAA;AAAA,EAC3C,UAAY,EAAA,QAAA;AAAA,EACZ,QAAU,EAAA,MAAA;AAAA,EACV,UAAY,EAAA,MAAA;AAAA,EAEZ,QAAU,EAAA;AAAA,IACR,OAAS,EAAA;AAAA,MACP,OAAS,EAAA;AAAA,QACP,KAAO,EAAA,uBAAA;AAAA,OACT;AAAA,MACA,QAAU,EAAA;AAAA,QACR,eAAiB,EAAA,WAAA;AAAA,QACjB,KAAO,EAAA,QAAA;AAAA,QACP,YAAc,EAAA,KAAA;AAAA,QACd,OAAS,EAAA,SAAA;AAAA,OACX;AAAA,KACF;AAAA,GACF;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,OAAS,EAAA,SAAA;AAAA,GACX;AACF,CAAC;;;;"}
package/dist/types.d.ts CHANGED
@@ -5,11 +5,9 @@ import * as react from 'react';
5
5
  import { ComponentPropsWithRef, HTMLAttributes } from 'react';
6
6
  import * as _mirohq_design_system_primitive from '@mirohq/design-system-primitive';
7
7
 
8
- declare const Hotkey: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"span">>>, "v1" | "variant"> & _stitches_react_types_styled_component.TransformProps<{
9
- v1?: boolean | "true" | undefined;
8
+ declare const Hotkey: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"span">>>, "variant"> & _stitches_react_types_styled_component.TransformProps<{
10
9
  variant?: "neutral" | "inverted" | undefined;
11
10
  }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLSpanElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"span">>, {
12
- v1?: boolean | "true" | undefined;
13
11
  variant?: "neutral" | "inverted" | undefined;
14
12
  }, {}>;
15
13
  type HotkeyStyledProps = ComponentPropsWithRef<typeof Hotkey>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-base-hotkey",
3
- "version": "0.2.17",
3
+ "version": "1.0.0-pdl-removing-ffs.1",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",
@@ -26,8 +26,8 @@
26
26
  "react": "^16.14 || ^17 || ^18"
27
27
  },
28
28
  "dependencies": {
29
- "@mirohq/design-system-stitches": "^2.6.40",
30
- "@mirohq/design-system-primitive": "^1.1.2"
29
+ "@mirohq/design-system-primitive": "^2.0.0-pdl-removing-ffs.1",
30
+ "@mirohq/design-system-stitches": "^3.0.0-pdl-removing-ffs.1"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "rollup -c ../../../../rollup.config.js",