@mirohq/design-system-spinner 1.1.15-themes.2 → 1.1.15
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.map +1 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +111 -123
- package/package.json +3 -3
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../src/spinner.styled.tsx","../src/spinner.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/spinner.styled.tsx","../src/spinner.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled, keyframes } from '@mirohq/design-system-stitches'\n\nconst rotateAnimation = keyframes({\n '100%': { transform: 'rotate(360deg)' },\n})\n\nconst strokeAnimation = keyframes({\n '0%': {\n strokeDasharray: '1, 200',\n strokeDashoffset: 0,\n },\n '50%': {\n strokeDasharray: '89, 200',\n strokeDashoffset: '-35px',\n },\n '100%': {\n strokeDasharray: '89, 200',\n strokeDashoffset: '-124px',\n },\n})\n\nexport const StyledSpinner = styled(Primitive.svg, {\n display: 'block',\n animation: 'rotate 2s linear infinite',\n transformOrigin: 'center center',\n stroke: 'currentColor',\n '@media (prefers-reduced-motion: no-preference)': {\n animationName: rotateAnimation,\n },\n '& [id=circle]': {\n fill: 'none',\n strokeMiterlimit: '10',\n strokeDasharray: '1, 200',\n strokeDashoffset: 0,\n animation: 'animate 1.5s ease-in-out infinite',\n strokeLinecap: 'round',\n '@media (prefers-reduced-motion: no-preference)': {\n animationName: strokeAnimation,\n },\n },\n variants: {\n size: {\n small: {\n width: '$4',\n height: '$4',\n '& [id=circle]': {\n strokeWidth: '6px',\n },\n },\n medium: {\n width: '$6',\n height: '$6',\n '& [id=circle]': {\n strokeWidth: '4px',\n },\n },\n },\n },\n})\n\nexport type StyledSpinnerProps = ComponentPropsWithRef<typeof StyledSpinner>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledSpinner } from './spinner.styled'\nimport type { StyledSpinnerProps } from './spinner.styled'\n\nexport interface SpinnerProps extends StyledSpinnerProps {\n /**\n * The size of the spinner.\n */\n size?: StyledSpinnerProps['size']\n}\n\nexport const Spinner = React.forwardRef<\n ElementRef<typeof StyledSpinner>,\n SpinnerProps\n>(({ size = 'medium', ...restProps }, forwardRef) => (\n <StyledSpinner\n {...restProps}\n viewBox='25 25 50 50'\n size={size}\n ref={forwardRef}\n >\n <circle id='circle' cx='50' cy='50' r='20' />\n </StyledSpinner>\n))\n"],"names":["keyframes","styled","Primitive","React","jsx"],"mappings":";;;;;;;;;;;;;AAIA,MAAM,kBAAkBA,8BAAU,CAAA;AAAA,EAChC,MAAA,EAAQ,EAAE,SAAA,EAAW,gBAAiB,EAAA;AACxC,CAAC,CAAA,CAAA;AAED,MAAM,kBAAkBA,8BAAU,CAAA;AAAA,EAChC,IAAM,EAAA;AAAA,IACJ,eAAiB,EAAA,QAAA;AAAA,IACjB,gBAAkB,EAAA,CAAA;AAAA,GACpB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,eAAiB,EAAA,SAAA;AAAA,IACjB,gBAAkB,EAAA,OAAA;AAAA,GACpB;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,eAAiB,EAAA,SAAA;AAAA,IACjB,gBAAkB,EAAA,QAAA;AAAA,GACpB;AACF,CAAC,CAAA,CAAA;AAEY,MAAA,aAAA,GAAgBC,2BAAO,CAAAC,+BAAA,CAAU,GAAK,EAAA;AAAA,EACjD,OAAS,EAAA,OAAA;AAAA,EACT,SAAW,EAAA,2BAAA;AAAA,EACX,eAAiB,EAAA,eAAA;AAAA,EACjB,MAAQ,EAAA,cAAA;AAAA,EACR,gDAAkD,EAAA;AAAA,IAChD,aAAe,EAAA,eAAA;AAAA,GACjB;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,MAAA;AAAA,IACN,gBAAkB,EAAA,IAAA;AAAA,IAClB,eAAiB,EAAA,QAAA;AAAA,IACjB,gBAAkB,EAAA,CAAA;AAAA,IAClB,SAAW,EAAA,mCAAA;AAAA,IACX,aAAe,EAAA,OAAA;AAAA,IACf,gDAAkD,EAAA;AAAA,MAChD,aAAe,EAAA,eAAA;AAAA,KACjB;AAAA,GACF;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA;AAAA,MACJ,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,IAAA;AAAA,QACP,MAAQ,EAAA,IAAA;AAAA,QACR,eAAiB,EAAA;AAAA,UACf,WAAa,EAAA,KAAA;AAAA,SACf;AAAA,OACF;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,KAAO,EAAA,IAAA;AAAA,QACP,MAAQ,EAAA,IAAA;AAAA,QACR,eAAiB,EAAA;AAAA,UACf,WAAa,EAAA,KAAA;AAAA,SACf;AAAA,OACF;AAAA,KACF;AAAA,GACF;AACF,CAAC,CAAA;;AC/CY,MAAA,OAAA,GAAUC,yBAAM,CAAA,UAAA,CAG3B,CAAC,EAAE,OAAO,QAAU,EAAA,GAAG,SAAU,EAAA,EAAG,UACpC,qBAAAC,cAAA;AAAA,EAAC,aAAA;AAAA,EAAA;AAAA,IACE,GAAG,SAAA;AAAA,IACJ,OAAQ,EAAA,aAAA;AAAA,IACR,IAAA;AAAA,IACA,GAAK,EAAA,UAAA;AAAA,IAEL,QAAA,kBAAAA,cAAA,CAAC,YAAO,EAAG,EAAA,QAAA,EAAS,IAAG,IAAK,EAAA,EAAA,EAAG,IAAK,EAAA,CAAA,EAAE,IAAK,EAAA,CAAA;AAAA,GAAA;AAC7C,CACD;;;;"}
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/spinner.styled.tsx","../src/spinner.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/spinner.styled.tsx","../src/spinner.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled, keyframes } from '@mirohq/design-system-stitches'\n\nconst rotateAnimation = keyframes({\n '100%': { transform: 'rotate(360deg)' },\n})\n\nconst strokeAnimation = keyframes({\n '0%': {\n strokeDasharray: '1, 200',\n strokeDashoffset: 0,\n },\n '50%': {\n strokeDasharray: '89, 200',\n strokeDashoffset: '-35px',\n },\n '100%': {\n strokeDasharray: '89, 200',\n strokeDashoffset: '-124px',\n },\n})\n\nexport const StyledSpinner = styled(Primitive.svg, {\n display: 'block',\n animation: 'rotate 2s linear infinite',\n transformOrigin: 'center center',\n stroke: 'currentColor',\n '@media (prefers-reduced-motion: no-preference)': {\n animationName: rotateAnimation,\n },\n '& [id=circle]': {\n fill: 'none',\n strokeMiterlimit: '10',\n strokeDasharray: '1, 200',\n strokeDashoffset: 0,\n animation: 'animate 1.5s ease-in-out infinite',\n strokeLinecap: 'round',\n '@media (prefers-reduced-motion: no-preference)': {\n animationName: strokeAnimation,\n },\n },\n variants: {\n size: {\n small: {\n width: '$4',\n height: '$4',\n '& [id=circle]': {\n strokeWidth: '6px',\n },\n },\n medium: {\n width: '$6',\n height: '$6',\n '& [id=circle]': {\n strokeWidth: '4px',\n },\n },\n },\n },\n})\n\nexport type StyledSpinnerProps = ComponentPropsWithRef<typeof StyledSpinner>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledSpinner } from './spinner.styled'\nimport type { StyledSpinnerProps } from './spinner.styled'\n\nexport interface SpinnerProps extends StyledSpinnerProps {\n /**\n * The size of the spinner.\n */\n size?: StyledSpinnerProps['size']\n}\n\nexport const Spinner = React.forwardRef<\n ElementRef<typeof StyledSpinner>,\n SpinnerProps\n>(({ size = 'medium', ...restProps }, forwardRef) => (\n <StyledSpinner\n {...restProps}\n viewBox='25 25 50 50'\n size={size}\n ref={forwardRef}\n >\n <circle id='circle' cx='50' cy='50' r='20' />\n </StyledSpinner>\n))\n"],"names":[],"mappings":";;;;;AAIA,MAAM,kBAAkB,SAAU,CAAA;AAAA,EAChC,MAAA,EAAQ,EAAE,SAAA,EAAW,gBAAiB,EAAA;AACxC,CAAC,CAAA,CAAA;AAED,MAAM,kBAAkB,SAAU,CAAA;AAAA,EAChC,IAAM,EAAA;AAAA,IACJ,eAAiB,EAAA,QAAA;AAAA,IACjB,gBAAkB,EAAA,CAAA;AAAA,GACpB;AAAA,EACA,KAAO,EAAA;AAAA,IACL,eAAiB,EAAA,SAAA;AAAA,IACjB,gBAAkB,EAAA,OAAA;AAAA,GACpB;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,eAAiB,EAAA,SAAA;AAAA,IACjB,gBAAkB,EAAA,QAAA;AAAA,GACpB;AACF,CAAC,CAAA,CAAA;AAEY,MAAA,aAAA,GAAgB,MAAO,CAAA,SAAA,CAAU,GAAK,EAAA;AAAA,EACjD,OAAS,EAAA,OAAA;AAAA,EACT,SAAW,EAAA,2BAAA;AAAA,EACX,eAAiB,EAAA,eAAA;AAAA,EACjB,MAAQ,EAAA,cAAA;AAAA,EACR,gDAAkD,EAAA;AAAA,IAChD,aAAe,EAAA,eAAA;AAAA,GACjB;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,MAAA;AAAA,IACN,gBAAkB,EAAA,IAAA;AAAA,IAClB,eAAiB,EAAA,QAAA;AAAA,IACjB,gBAAkB,EAAA,CAAA;AAAA,IAClB,SAAW,EAAA,mCAAA;AAAA,IACX,aAAe,EAAA,OAAA;AAAA,IACf,gDAAkD,EAAA;AAAA,MAChD,aAAe,EAAA,eAAA;AAAA,KACjB;AAAA,GACF;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA;AAAA,MACJ,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,IAAA;AAAA,QACP,MAAQ,EAAA,IAAA;AAAA,QACR,eAAiB,EAAA;AAAA,UACf,WAAa,EAAA,KAAA;AAAA,SACf;AAAA,OACF;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,KAAO,EAAA,IAAA;AAAA,QACP,MAAQ,EAAA,IAAA;AAAA,QACR,eAAiB,EAAA;AAAA,UACf,WAAa,EAAA,KAAA;AAAA,SACf;AAAA,OACF;AAAA,KACF;AAAA,GACF;AACF,CAAC,CAAA;;AC/CY,MAAA,OAAA,GAAU,KAAM,CAAA,UAAA,CAG3B,CAAC,EAAE,OAAO,QAAU,EAAA,GAAG,SAAU,EAAA,EAAG,UACpC,qBAAA,GAAA;AAAA,EAAC,aAAA;AAAA,EAAA;AAAA,IACE,GAAG,SAAA;AAAA,IACJ,OAAQ,EAAA,aAAA;AAAA,IACR,IAAA;AAAA,IACA,GAAK,EAAA,UAAA;AAAA,IAEL,QAAA,kBAAA,GAAA,CAAC,YAAO,EAAG,EAAA,QAAA,EAAS,IAAG,IAAK,EAAA,EAAA,EAAG,IAAK,EAAA,CAAA,EAAE,IAAK,EAAA,CAAA;AAAA,GAAA;AAC7C,CACD;;;;"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default from 'react';
|
|
2
|
+
import react__default, { ComponentPropsWithRef } from 'react';
|
|
3
3
|
import * as _mirohq_design_system_primitive from '@mirohq/design-system-primitive';
|
|
4
4
|
import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
|
|
5
|
-
import { StrictComponentProps } from '@mirohq/design-system-stitches';
|
|
6
5
|
import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
|
|
7
6
|
import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
|
|
8
7
|
|
|
@@ -23,7 +22,6 @@ declare const StyledSpinner: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
23
22
|
readonly lg: "4px";
|
|
24
23
|
};
|
|
25
24
|
colors: {
|
|
26
|
-
readonly black: any;
|
|
27
25
|
readonly 'blue-100': any;
|
|
28
26
|
readonly 'blue-200': any;
|
|
29
27
|
readonly 'blue-300': any;
|
|
@@ -43,15 +41,6 @@ declare const StyledSpinner: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
43
41
|
readonly 'gray-700': any;
|
|
44
42
|
readonly 'gray-800': any;
|
|
45
43
|
readonly 'gray-900': any;
|
|
46
|
-
readonly 'green-100': any;
|
|
47
|
-
readonly 'green-200': any;
|
|
48
|
-
readonly 'green-300': any;
|
|
49
|
-
readonly 'green-400': any;
|
|
50
|
-
readonly 'green-500': any;
|
|
51
|
-
readonly 'green-600': any;
|
|
52
|
-
readonly 'green-700': any;
|
|
53
|
-
readonly 'green-800': any;
|
|
54
|
-
readonly 'green-900': any;
|
|
55
44
|
readonly 'indigo-100': any;
|
|
56
45
|
readonly 'indigo-200': any;
|
|
57
46
|
readonly 'indigo-300': any;
|
|
@@ -70,8 +59,6 @@ declare const StyledSpinner: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
70
59
|
readonly 'red-700': any;
|
|
71
60
|
readonly 'red-800': any;
|
|
72
61
|
readonly 'red-900': any;
|
|
73
|
-
readonly transparent: any;
|
|
74
|
-
readonly white: any;
|
|
75
62
|
readonly 'yellow-100': any;
|
|
76
63
|
readonly 'yellow-200': any;
|
|
77
64
|
readonly 'yellow-300': any;
|
|
@@ -81,112 +68,113 @@ declare const StyledSpinner: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
81
68
|
readonly 'yellow-700': any;
|
|
82
69
|
readonly 'yellow-800': any;
|
|
83
70
|
readonly 'yellow-900': any;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
71
|
+
readonly 'green-100': any;
|
|
72
|
+
readonly 'green-200': any;
|
|
73
|
+
readonly 'green-300': any;
|
|
74
|
+
readonly 'green-400': any;
|
|
75
|
+
readonly 'green-500': any;
|
|
76
|
+
readonly 'green-600': any;
|
|
77
|
+
readonly 'green-700': any;
|
|
78
|
+
readonly 'green-800': any;
|
|
79
|
+
readonly 'green-900': any;
|
|
80
|
+
readonly black: any;
|
|
81
|
+
readonly white: any;
|
|
82
|
+
readonly transparent: any;
|
|
83
|
+
readonly 'background-danger'?: any;
|
|
84
|
+
readonly 'background-danger-hover'?: any;
|
|
85
|
+
readonly 'background-danger-prominent'?: any;
|
|
86
|
+
readonly 'background-danger-prominent-active'?: any;
|
|
87
|
+
readonly 'background-danger-prominent-hover'?: any;
|
|
88
|
+
readonly 'background-neutrals'?: any;
|
|
89
|
+
readonly 'background-neutrals-container'?: any;
|
|
90
|
+
readonly 'background-neutrals-controls-disabled'?: any;
|
|
91
|
+
readonly 'background-neutrals-disabled'?: any;
|
|
92
|
+
readonly 'background-neutrals-inactive'?: any;
|
|
93
|
+
readonly 'background-neutrals-inactive-hover'?: any;
|
|
94
|
+
readonly 'background-neutrals-inverted'?: any;
|
|
95
|
+
readonly 'background-neutrals-inverted-subtle'?: any;
|
|
96
|
+
readonly 'background-neutrals-page'?: any;
|
|
97
|
+
readonly 'background-neutrals-page-subtle'?: any;
|
|
98
|
+
readonly 'background-neutrals-scrolls'?: any;
|
|
99
|
+
readonly 'background-neutrals-scrolls-hover'?: any;
|
|
100
|
+
readonly 'background-neutrals-subtle'?: any;
|
|
101
|
+
readonly 'background-neutrals-subtle-active'?: any;
|
|
102
|
+
readonly 'background-neutrals-subtle-hover'?: any;
|
|
103
|
+
readonly 'background-primary-prominent'?: any;
|
|
104
|
+
readonly 'background-primary-prominent-active'?: any;
|
|
105
|
+
readonly 'background-primary-prominent-hover'?: any;
|
|
106
|
+
readonly 'background-primary-prominent-selected'?: any;
|
|
107
|
+
readonly 'background-primary-subtle'?: any;
|
|
108
|
+
readonly 'background-primary-subtle-active'?: any;
|
|
109
|
+
readonly 'background-primary-subtle-hover'?: any;
|
|
110
|
+
readonly 'background-primary-subtle-selected'?: any;
|
|
111
|
+
readonly 'background-success'?: any;
|
|
112
|
+
readonly 'background-warning-prominent'?: any;
|
|
113
|
+
readonly 'background-warning-subtle'?: any;
|
|
114
|
+
readonly 'text-danger'?: any;
|
|
115
|
+
readonly 'text-danger-active'?: any;
|
|
116
|
+
readonly 'text-danger-hover'?: any;
|
|
117
|
+
readonly 'text-danger-inverted'?: any;
|
|
118
|
+
readonly 'text-neutrals'?: any;
|
|
119
|
+
readonly 'text-neutrals-disabled'?: any;
|
|
120
|
+
readonly 'text-neutrals-inverted'?: any;
|
|
121
|
+
readonly 'text-neutrals-placeholder'?: any;
|
|
122
|
+
readonly 'text-neutrals-placeholder-only'?: any;
|
|
123
|
+
readonly 'text-neutrals-subtle'?: any;
|
|
124
|
+
readonly 'text-neutrals-subtle-active'?: any;
|
|
125
|
+
readonly 'text-neutrals-subtle-hover'?: any;
|
|
126
|
+
readonly 'text-primary'?: any;
|
|
127
|
+
readonly 'text-primary-active'?: any;
|
|
128
|
+
readonly 'text-primary-hover'?: any;
|
|
129
|
+
readonly 'text-primary-inverted'?: any;
|
|
130
|
+
readonly 'text-primary-inverted-subtle'?: any;
|
|
131
|
+
readonly 'text-primary-selected'?: any;
|
|
132
|
+
readonly 'text-success'?: any;
|
|
133
|
+
readonly 'text-warning'?: any;
|
|
134
|
+
readonly 'icon-danger'?: any;
|
|
135
|
+
readonly 'icon-danger-active'?: any;
|
|
136
|
+
readonly 'icon-danger-hover'?: any;
|
|
137
|
+
readonly 'icon-danger-inverted'?: any;
|
|
138
|
+
readonly 'icon-neutrals'?: any;
|
|
139
|
+
readonly 'icon-neutrals-disabled'?: any;
|
|
140
|
+
readonly 'icon-neutrals-inactive'?: any;
|
|
141
|
+
readonly 'icon-neutrals-inactive-hover'?: any;
|
|
142
|
+
readonly 'icon-neutrals-inverted'?: any;
|
|
143
|
+
readonly 'icon-neutrals-search'?: any;
|
|
144
|
+
readonly 'icon-neutrals-subtle'?: any;
|
|
145
|
+
readonly 'icon-neutrals-text'?: any;
|
|
146
|
+
readonly 'icon-primary'?: any;
|
|
147
|
+
readonly 'icon-primary-active'?: any;
|
|
148
|
+
readonly 'icon-primary-hover'?: any;
|
|
149
|
+
readonly 'icon-primary-inverted'?: any;
|
|
150
|
+
readonly 'icon-primary-selected'?: any;
|
|
151
|
+
readonly 'icon-success'?: any;
|
|
152
|
+
readonly 'icon-success-inverted'?: any;
|
|
153
|
+
readonly 'icon-warning'?: any;
|
|
154
|
+
readonly 'icon-warning-prominent'?: any;
|
|
155
|
+
readonly 'border-danger'?: any;
|
|
156
|
+
readonly 'border-danger-active'?: any;
|
|
157
|
+
readonly 'border-danger-hover'?: any;
|
|
158
|
+
readonly 'border-focus-inner'?: any;
|
|
159
|
+
readonly 'border-focus-middle'?: any;
|
|
160
|
+
readonly 'border-focus-outer'?: any;
|
|
161
|
+
readonly 'border-neutrals'?: any;
|
|
162
|
+
readonly 'border-neutrals-active'?: any;
|
|
163
|
+
readonly 'border-neutrals-controls'?: any;
|
|
164
|
+
readonly 'border-neutrals-controls-disabled'?: any;
|
|
165
|
+
readonly 'border-neutrals-disabled'?: any;
|
|
166
|
+
readonly 'border-neutrals-hover'?: any;
|
|
167
|
+
readonly 'border-neutrals-inverted'?: any;
|
|
168
|
+
readonly 'border-neutrals-subtle'?: any;
|
|
169
|
+
readonly 'border-neutrals-text-subtle'?: any;
|
|
170
|
+
readonly 'border-neutrals-text-subtle-active'?: any;
|
|
171
|
+
readonly 'border-neutrals-text-subtle-hover'?: any;
|
|
172
|
+
readonly 'border-primary'?: any;
|
|
173
|
+
readonly 'border-primary-active'?: any;
|
|
174
|
+
readonly 'border-primary-hover'?: any;
|
|
175
|
+
readonly 'border-primary-inverted'?: any;
|
|
176
|
+
readonly 'border-success'?: any;
|
|
177
|
+
readonly 'border-warning'?: any;
|
|
190
178
|
};
|
|
191
179
|
'font-sizes': {
|
|
192
180
|
readonly 150: "0.75rem";
|
|
@@ -475,14 +463,14 @@ declare const StyledSpinner: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
475
463
|
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<SVGSVGElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"svg">>, {
|
|
476
464
|
size?: "small" | "medium" | undefined;
|
|
477
465
|
}, {}>;
|
|
478
|
-
declare type StyledSpinnerProps =
|
|
466
|
+
declare type StyledSpinnerProps = ComponentPropsWithRef<typeof StyledSpinner>;
|
|
479
467
|
|
|
480
|
-
interface SpinnerProps extends
|
|
468
|
+
interface SpinnerProps extends StyledSpinnerProps {
|
|
481
469
|
/**
|
|
482
470
|
* The size of the spinner.
|
|
483
471
|
*/
|
|
484
472
|
size?: StyledSpinnerProps['size'];
|
|
485
473
|
}
|
|
486
|
-
declare const Spinner: react__default.ForwardRefExoticComponent<SpinnerProps & react__default.RefAttributes<SVGSVGElement>>;
|
|
474
|
+
declare const Spinner: react__default.ForwardRefExoticComponent<Omit<SpinnerProps, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
487
475
|
|
|
488
476
|
export { Spinner, SpinnerProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-spinner",
|
|
3
|
-
"version": "1.1.15
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@mirohq/design-system-primitive": "^1.1.0",
|
|
30
|
-
"@mirohq/design-
|
|
31
|
-
"@mirohq/design-
|
|
30
|
+
"@mirohq/design-tokens": "^2.7.1",
|
|
31
|
+
"@mirohq/design-system-stitches": "^2.3.4"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "rollup -c ../../../rollup.config.js",
|