@instructure/ui-tag 8.9.2-snapshot.4 → 8.10.1-snapshot.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-tag
9
+
6
10
  ## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-tag
package/es/Tag/index.js CHANGED
@@ -95,7 +95,7 @@ let Tag = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = test
95
95
  onClick = _this$props4.onClick,
96
96
  margin = _this$props4.margin,
97
97
  styles = _this$props4.styles;
98
- const passthroughProps = View.omitViewProps(omitProps(this.props, Tag.propTypes), Tag);
98
+ const passthroughProps = View.omitViewProps(omitProps(this.props, Tag.allowedProps), Tag);
99
99
  return jsx(View, Object.assign({}, passthroughProps, {
100
100
  ref: this.handleRef,
101
101
  elementRef: this.props.elementRef,
package/lib/Tag/index.js CHANGED
@@ -89,7 +89,7 @@ let Tag = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec
89
89
  margin = _this$props4.margin,
90
90
  styles = _this$props4.styles;
91
91
 
92
- const passthroughProps = _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Tag.propTypes), Tag);
92
+ const passthroughProps = _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Tag.allowedProps), Tag);
93
93
 
94
94
  return (0, _emotion.jsx)(_View.View, Object.assign({}, passthroughProps, {
95
95
  ref: this.handleRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-tag",
3
- "version": "8.9.2-snapshot.4+bf1e82efc",
3
+ "version": "8.10.1-snapshot.4+6c5c9e653",
4
4
  "description": "A tag component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,22 +25,22 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.9.2-snapshot.4+bf1e82efc",
29
- "@instructure/emotion": "8.9.2-snapshot.4+bf1e82efc",
30
- "@instructure/shared-types": "8.9.2-snapshot.4+bf1e82efc",
31
- "@instructure/ui-color-utils": "8.9.2-snapshot.4+bf1e82efc",
32
- "@instructure/ui-dom-utils": "8.9.2-snapshot.4+bf1e82efc",
33
- "@instructure/ui-icons": "8.9.2-snapshot.4+bf1e82efc",
34
- "@instructure/ui-react-utils": "8.9.2-snapshot.4+bf1e82efc",
35
- "@instructure/ui-testable": "8.9.2-snapshot.4+bf1e82efc",
36
- "@instructure/ui-view": "8.9.2-snapshot.4+bf1e82efc",
28
+ "@instructure/console": "8.10.1-snapshot.4+6c5c9e653",
29
+ "@instructure/emotion": "8.10.1-snapshot.4+6c5c9e653",
30
+ "@instructure/shared-types": "8.10.1-snapshot.4+6c5c9e653",
31
+ "@instructure/ui-color-utils": "8.10.1-snapshot.4+6c5c9e653",
32
+ "@instructure/ui-dom-utils": "8.10.1-snapshot.4+6c5c9e653",
33
+ "@instructure/ui-icons": "8.10.1-snapshot.4+6c5c9e653",
34
+ "@instructure/ui-react-utils": "8.10.1-snapshot.4+6c5c9e653",
35
+ "@instructure/ui-testable": "8.10.1-snapshot.4+6c5c9e653",
36
+ "@instructure/ui-view": "8.10.1-snapshot.4+6c5c9e653",
37
37
  "prop-types": "^15"
38
38
  },
39
39
  "devDependencies": {
40
- "@instructure/ui-babel-preset": "8.9.2-snapshot.4+bf1e82efc",
41
- "@instructure/ui-test-locator": "8.9.2-snapshot.4+bf1e82efc",
42
- "@instructure/ui-test-utils": "8.9.2-snapshot.4+bf1e82efc",
43
- "@instructure/ui-themes": "8.9.2-snapshot.4+bf1e82efc"
40
+ "@instructure/ui-babel-preset": "8.10.1-snapshot.4+6c5c9e653",
41
+ "@instructure/ui-test-locator": "8.10.1-snapshot.4+6c5c9e653",
42
+ "@instructure/ui-test-utils": "8.10.1-snapshot.4+6c5c9e653",
43
+ "@instructure/ui-themes": "8.10.1-snapshot.4+6c5c9e653"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.8 <=17"
@@ -49,5 +49,5 @@
49
49
  "access": "public"
50
50
  },
51
51
  "sideEffects": false,
52
- "gitHead": "bf1e82efccb682510708448efd369eddaa24f74b"
52
+ "gitHead": "6c5c9e653f7ce3d239296f4ed19c5679fdddcd5b"
53
53
  }
package/src/Tag/index.tsx CHANGED
@@ -108,7 +108,7 @@ class Tag extends Component<TagProps> {
108
108
  } = this.props
109
109
 
110
110
  const passthroughProps = View.omitViewProps(
111
- omitProps(this.props, Tag.propTypes),
111
+ omitProps(this.props, Tag.allowedProps),
112
112
  Tag
113
113
  )
114
114
 
package/src/Tag/props.ts CHANGED
@@ -25,8 +25,12 @@ import PropTypes from 'prop-types'
25
25
 
26
26
  import { ThemeablePropTypes } from '@instructure/emotion'
27
27
 
28
- import type { Spacing, WithStyleProps } from '@instructure/emotion'
29
- import type { PropValidators } from '@instructure/shared-types'
28
+ import type {
29
+ Spacing,
30
+ WithStyleProps,
31
+ ComponentStyle
32
+ } from '@instructure/emotion'
33
+ import type { PropValidators, TagTheme } from '@instructure/shared-types'
30
34
 
31
35
  type TagOwnProps = {
32
36
  className?: string
@@ -46,7 +50,9 @@ type PropKeys = keyof TagOwnProps
46
50
 
47
51
  type AllowedPropKeys = Readonly<Array<PropKeys>>
48
52
 
49
- type TagProps = TagOwnProps & WithStyleProps
53
+ type TagProps = TagOwnProps & WithStyleProps<TagTheme, TagStyle>
54
+
55
+ type TagStyle = ComponentStyle<'tag' | 'text' | 'icon'>
50
56
 
51
57
  const propTypes: PropValidators<PropKeys> = {
52
58
  className: PropTypes.string,
@@ -93,5 +99,5 @@ const allowedProps: AllowedPropKeys = [
93
99
  'variant'
94
100
  ]
95
101
 
96
- export type { TagProps }
102
+ export type { TagProps, TagStyle }
97
103
  export { propTypes, allowedProps }
package/src/Tag/styles.ts CHANGED
@@ -22,8 +22,8 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { TagTheme } from '@instructure/shared-types'
26
- import { TagProps } from './props'
25
+ import type { TagTheme } from '@instructure/shared-types'
26
+ import type { TagProps, TagStyle } from './props'
27
27
 
28
28
  /**
29
29
  * ---
@@ -35,7 +35,7 @@ import { TagProps } from './props'
35
35
  * @param {Object} state the state of the component, the style is applied to
36
36
  * @return {Object} The final style object, which will be used in the component
37
37
  */
38
- const generateStyle = (componentTheme: TagTheme, props: TagProps) => {
38
+ const generateStyle = (componentTheme: TagTheme, props: TagProps): TagStyle => {
39
39
  const { variant, size, dismissible, onClick, disabled } = props
40
40
 
41
41
  const isButton = !!onClick
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { Spacing, WithStyleProps } from '@instructure/emotion';
3
- import type { PropValidators } from '@instructure/shared-types';
2
+ import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
3
+ import type { PropValidators, TagTheme } from '@instructure/shared-types';
4
4
  declare type TagOwnProps = {
5
5
  className?: string;
6
6
  text: string | React.ReactNode;
@@ -16,9 +16,10 @@ declare type TagOwnProps = {
16
16
  };
17
17
  declare type PropKeys = keyof TagOwnProps;
18
18
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
19
- declare type TagProps = TagOwnProps & WithStyleProps;
19
+ declare type TagProps = TagOwnProps & WithStyleProps<TagTheme, TagStyle>;
20
+ declare type TagStyle = ComponentStyle<'tag' | 'text' | 'icon'>;
20
21
  declare const propTypes: PropValidators<PropKeys>;
21
22
  declare const allowedProps: AllowedPropKeys;
22
- export type { TagProps };
23
+ export type { TagProps, TagStyle };
23
24
  export { propTypes, allowedProps };
24
25
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Tag/props.ts"],"names":[],"mappings":";AA2BA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,aAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACjC,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC/B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,WAAW,CAAA;AAEjC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAA;AAE5C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA6BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAYnB,CAAA;AAED,YAAY,EAAE,QAAQ,EAAE,CAAA;AACxB,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Tag/props.ts"],"names":[],"mappings":";AA2BA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEzE,aAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACjC,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC/B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,WAAW,CAAA;AAEjC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;AAEhE,aAAK,QAAQ,GAAG,cAAc,CAAC,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC,CAAA;AAEvD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA6BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAYnB,CAAA;AAED,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import { TagTheme } from '@instructure/shared-types';
2
- import { TagProps } from './props';
1
+ import type { TagTheme } from '@instructure/shared-types';
2
+ import type { TagProps, TagStyle } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
@@ -10,502 +10,6 @@ import { TagProps } from './props';
10
10
  * @param {Object} state the state of the component, the style is applied to
11
11
  * @return {Object} The final style object, which will be used in the component
12
12
  */
13
- declare const generateStyle: (componentTheme: TagTheme, props: TagProps) => {
14
- tag: {
15
- '&::before': {
16
- borderRadius?: string | undefined;
17
- content?: string | undefined;
18
- boxSizing?: string | undefined;
19
- border?: string | undefined;
20
- position?: string | undefined;
21
- top?: string | undefined;
22
- bottom?: string | undefined;
23
- left?: string | undefined;
24
- right?: string | undefined;
25
- opacity?: number | undefined;
26
- transform?: string | undefined;
27
- transition?: string | undefined;
28
- pointerEvents?: string | undefined;
29
- } | {
30
- borderRadius?: string | undefined;
31
- content?: string | undefined;
32
- boxSizing?: string | undefined;
33
- border?: string | undefined;
34
- position?: string | undefined;
35
- top?: string | undefined;
36
- bottom?: string | undefined;
37
- left?: string | undefined;
38
- right?: string | undefined;
39
- opacity?: number | undefined;
40
- transform?: string | undefined;
41
- transition?: string | undefined;
42
- pointerEvents?: string | undefined;
43
- };
44
- '&:hover'?: {
45
- backgroundColor: string;
46
- } | undefined;
47
- backgroundColor: string;
48
- border: string;
49
- borderRadius: string;
50
- color: string;
51
- cursor?: string | undefined;
52
- pointerEvents?: string | undefined;
53
- opacity?: number | undefined;
54
- '&:focus'?: {
55
- '&::before': {
56
- opacity: number;
57
- transform: string;
58
- };
59
- } | undefined;
60
- touchAction?: string | undefined;
61
- outline?: string | undefined;
62
- position?: string | undefined;
63
- overflow?: string | undefined;
64
- transition?: string | undefined;
65
- padding: string | 0;
66
- fontSize: string | 0;
67
- label: string;
68
- boxSizing: string;
69
- fontFamily: string;
70
- display: string;
71
- alignItems: string;
72
- textAlign: string;
73
- verticalAlign: string;
74
- userSelect: string;
75
- } | {
76
- '&::before': {
77
- borderRadius?: string | undefined;
78
- content?: string | undefined;
79
- boxSizing?: string | undefined;
80
- border?: string | undefined;
81
- position?: string | undefined;
82
- top?: string | undefined;
83
- bottom?: string | undefined;
84
- left?: string | undefined;
85
- right?: string | undefined;
86
- opacity?: number | undefined;
87
- transform?: string | undefined;
88
- transition?: string | undefined;
89
- pointerEvents?: string | undefined;
90
- } | {
91
- borderRadius?: string | undefined;
92
- content?: string | undefined;
93
- boxSizing?: string | undefined;
94
- border?: string | undefined;
95
- position?: string | undefined;
96
- top?: string | undefined;
97
- bottom?: string | undefined;
98
- left?: string | undefined;
99
- right?: string | undefined;
100
- opacity?: number | undefined;
101
- transform?: string | undefined;
102
- transition?: string | undefined;
103
- pointerEvents?: string | undefined;
104
- };
105
- '&:hover'?: {
106
- backgroundColor: string;
107
- } | undefined;
108
- backgroundColor: string;
109
- border: string;
110
- borderRadius: string;
111
- color: string;
112
- cursor: string;
113
- margin: string;
114
- pointerEvents?: string | undefined;
115
- opacity?: number | undefined;
116
- '&:focus'?: {
117
- '&::before': {
118
- opacity: number;
119
- transform: string;
120
- };
121
- } | undefined;
122
- touchAction?: string | undefined;
123
- outline?: string | undefined;
124
- position?: string | undefined;
125
- overflow?: string | undefined;
126
- transition?: string | undefined;
127
- padding: string | 0;
128
- fontSize: string | 0;
129
- label: string;
130
- boxSizing: string;
131
- fontFamily: string;
132
- display: string;
133
- alignItems: string;
134
- textAlign: string;
135
- verticalAlign: string;
136
- userSelect: string;
137
- } | {
138
- '&::before': {
139
- borderRadius?: string | undefined;
140
- content?: string | undefined;
141
- boxSizing?: string | undefined;
142
- border?: string | undefined;
143
- position?: string | undefined;
144
- top?: string | undefined;
145
- bottom?: string | undefined;
146
- left?: string | undefined;
147
- right?: string | undefined;
148
- opacity?: number | undefined;
149
- transform?: string | undefined;
150
- transition?: string | undefined;
151
- pointerEvents?: string | undefined;
152
- } | {
153
- borderRadius?: string | undefined;
154
- content?: string | undefined;
155
- boxSizing?: string | undefined;
156
- border?: string | undefined;
157
- position?: string | undefined;
158
- top?: string | undefined;
159
- bottom?: string | undefined;
160
- left?: string | undefined;
161
- right?: string | undefined;
162
- opacity?: number | undefined;
163
- transform?: string | undefined;
164
- transition?: string | undefined;
165
- pointerEvents?: string | undefined;
166
- };
167
- '&:hover'?: {
168
- backgroundColor: string;
169
- } | undefined;
170
- backgroundColor: string;
171
- border: string;
172
- borderRadius: string;
173
- color: string;
174
- cursor?: string | undefined;
175
- pointerEvents?: string | undefined;
176
- opacity?: number | undefined;
177
- '&:focus'?: {
178
- '&::before': {
179
- opacity: number;
180
- transform: string;
181
- };
182
- } | undefined;
183
- touchAction?: string | undefined;
184
- outline?: string | undefined;
185
- position?: string | undefined;
186
- overflow?: string | undefined;
187
- transition?: string | undefined;
188
- padding: string | 0;
189
- fontSize: string;
190
- label: string;
191
- boxSizing: string;
192
- fontFamily: string;
193
- display: string;
194
- alignItems: string;
195
- textAlign: string;
196
- verticalAlign: string;
197
- userSelect: string;
198
- } | {
199
- '&::before': {
200
- borderRadius?: string | undefined;
201
- content?: string | undefined;
202
- boxSizing?: string | undefined;
203
- border?: string | undefined;
204
- position?: string | undefined;
205
- top?: string | undefined;
206
- bottom?: string | undefined;
207
- left?: string | undefined;
208
- right?: string | undefined;
209
- opacity?: number | undefined;
210
- transform?: string | undefined;
211
- transition?: string | undefined;
212
- pointerEvents?: string | undefined;
213
- } | {
214
- borderRadius?: string | undefined;
215
- content?: string | undefined;
216
- boxSizing?: string | undefined;
217
- border?: string | undefined;
218
- position?: string | undefined;
219
- top?: string | undefined;
220
- bottom?: string | undefined;
221
- left?: string | undefined;
222
- right?: string | undefined;
223
- opacity?: number | undefined;
224
- transform?: string | undefined;
225
- transition?: string | undefined;
226
- pointerEvents?: string | undefined;
227
- };
228
- '&:hover'?: {
229
- backgroundColor: string;
230
- } | undefined;
231
- backgroundColor: string;
232
- border: string;
233
- borderRadius: string;
234
- color: string;
235
- cursor: string;
236
- margin: string;
237
- pointerEvents?: string | undefined;
238
- opacity?: number | undefined;
239
- '&:focus'?: {
240
- '&::before': {
241
- opacity: number;
242
- transform: string;
243
- };
244
- } | undefined;
245
- touchAction?: string | undefined;
246
- outline?: string | undefined;
247
- position?: string | undefined;
248
- overflow?: string | undefined;
249
- transition?: string | undefined;
250
- padding: string | 0;
251
- fontSize: string;
252
- label: string;
253
- boxSizing: string;
254
- fontFamily: string;
255
- display: string;
256
- alignItems: string;
257
- textAlign: string;
258
- verticalAlign: string;
259
- userSelect: string;
260
- } | {
261
- '&::before': {
262
- borderRadius?: string | undefined;
263
- content?: string | undefined;
264
- boxSizing?: string | undefined;
265
- border?: string | undefined;
266
- position?: string | undefined;
267
- top?: string | undefined;
268
- bottom?: string | undefined;
269
- left?: string | undefined;
270
- right?: string | undefined;
271
- opacity?: number | undefined;
272
- transform?: string | undefined;
273
- transition?: string | undefined;
274
- pointerEvents?: string | undefined;
275
- } | {
276
- borderRadius?: string | undefined;
277
- content?: string | undefined;
278
- boxSizing?: string | undefined;
279
- border?: string | undefined;
280
- position?: string | undefined;
281
- top?: string | undefined;
282
- bottom?: string | undefined;
283
- left?: string | undefined;
284
- right?: string | undefined;
285
- opacity?: number | undefined;
286
- transform?: string | undefined;
287
- transition?: string | undefined;
288
- pointerEvents?: string | undefined;
289
- };
290
- '&:hover'?: {
291
- backgroundColor: string;
292
- } | undefined;
293
- backgroundColor: string;
294
- border: string;
295
- borderRadius: string;
296
- color: string;
297
- cursor?: string | undefined;
298
- pointerEvents?: string | undefined;
299
- opacity?: number | undefined;
300
- '&:focus'?: {
301
- '&::before': {
302
- opacity: number;
303
- transform: string;
304
- };
305
- } | undefined;
306
- touchAction?: string | undefined;
307
- outline?: string | undefined;
308
- position?: string | undefined;
309
- overflow?: string | undefined;
310
- transition?: string | undefined;
311
- padding: string | 0;
312
- fontSize: string;
313
- label: string;
314
- boxSizing: string;
315
- fontFamily: string;
316
- display: string;
317
- alignItems: string;
318
- textAlign: string;
319
- verticalAlign: string;
320
- userSelect: string;
321
- } | {
322
- '&::before': {
323
- borderRadius?: string | undefined;
324
- content?: string | undefined;
325
- boxSizing?: string | undefined;
326
- border?: string | undefined;
327
- position?: string | undefined;
328
- top?: string | undefined;
329
- bottom?: string | undefined;
330
- left?: string | undefined;
331
- right?: string | undefined;
332
- opacity?: number | undefined;
333
- transform?: string | undefined;
334
- transition?: string | undefined;
335
- pointerEvents?: string | undefined;
336
- } | {
337
- borderRadius?: string | undefined;
338
- content?: string | undefined;
339
- boxSizing?: string | undefined;
340
- border?: string | undefined;
341
- position?: string | undefined;
342
- top?: string | undefined;
343
- bottom?: string | undefined;
344
- left?: string | undefined;
345
- right?: string | undefined;
346
- opacity?: number | undefined;
347
- transform?: string | undefined;
348
- transition?: string | undefined;
349
- pointerEvents?: string | undefined;
350
- };
351
- '&:hover'?: {
352
- backgroundColor: string;
353
- } | undefined;
354
- backgroundColor: string;
355
- border: string;
356
- borderRadius: string;
357
- color: string;
358
- cursor: string;
359
- margin: string;
360
- pointerEvents?: string | undefined;
361
- opacity?: number | undefined;
362
- '&:focus'?: {
363
- '&::before': {
364
- opacity: number;
365
- transform: string;
366
- };
367
- } | undefined;
368
- touchAction?: string | undefined;
369
- outline?: string | undefined;
370
- position?: string | undefined;
371
- overflow?: string | undefined;
372
- transition?: string | undefined;
373
- padding: string | 0;
374
- fontSize: string;
375
- label: string;
376
- boxSizing: string;
377
- fontFamily: string;
378
- display: string;
379
- alignItems: string;
380
- textAlign: string;
381
- verticalAlign: string;
382
- userSelect: string;
383
- };
384
- text: {
385
- lineHeight: string;
386
- label: string;
387
- whiteSpace: string;
388
- overflow: string;
389
- textOverflow: string;
390
- maxWidth: string | 0;
391
- } | {
392
- lineHeight: string;
393
- label: string;
394
- whiteSpace: string;
395
- overflow: string;
396
- textOverflow: string;
397
- maxWidth: string | 0;
398
- } | {
399
- lineHeight: string;
400
- label: string;
401
- whiteSpace: string;
402
- overflow: string;
403
- textOverflow: string;
404
- maxWidth: string | 0;
405
- };
406
- icon: {
407
- color?: string | undefined;
408
- '[class$="-tag"]:hover > &'?: {
409
- color: string;
410
- } | undefined;
411
- fontSize: string;
412
- label: string;
413
- marginInlineStart: string | 0;
414
- marginInlineEnd: number;
415
- transform: string;
416
- transition: string;
417
- cursor: string;
418
- } | {
419
- backgroundColor?: string | undefined;
420
- borderRadius?: string | undefined;
421
- color?: string | undefined;
422
- fontSize: string;
423
- padding?: string | undefined;
424
- position?: string | undefined;
425
- insetInlineEnd?: number | undefined;
426
- insetInlineStart?: string | undefined;
427
- top?: number | undefined;
428
- transform: string;
429
- '[class$="-tag"]:hover > &'?: {
430
- backgroundColor: string;
431
- } | undefined;
432
- '[dir="rtl"] &'?: {
433
- transform: string;
434
- } | undefined;
435
- label: string;
436
- marginInlineStart: string | 0;
437
- marginInlineEnd: number;
438
- transition: string;
439
- cursor: string;
440
- } | {
441
- color?: string | undefined;
442
- '[class$="-tag"]:hover > &'?: {
443
- color: string;
444
- } | undefined;
445
- fontSize: string;
446
- label: string;
447
- marginInlineStart: string | 0;
448
- marginInlineEnd: number;
449
- transform: string;
450
- transition: string;
451
- cursor: string;
452
- } | {
453
- backgroundColor?: string | undefined;
454
- borderRadius?: string | undefined;
455
- color?: string | undefined;
456
- fontSize: string;
457
- padding?: string | undefined;
458
- position?: string | undefined;
459
- insetInlineEnd?: number | undefined;
460
- insetInlineStart?: string | undefined;
461
- top?: number | undefined;
462
- transform: string;
463
- '[class$="-tag"]:hover > &'?: {
464
- backgroundColor: string;
465
- } | undefined;
466
- '[dir="rtl"] &'?: {
467
- transform: string;
468
- } | undefined;
469
- label: string;
470
- marginInlineStart: string | 0;
471
- marginInlineEnd: number;
472
- transition: string;
473
- cursor: string;
474
- } | {
475
- color?: string | undefined;
476
- '[class$="-tag"]:hover > &'?: {
477
- color: string;
478
- } | undefined;
479
- fontSize: string;
480
- label: string;
481
- marginInlineStart: string | 0;
482
- marginInlineEnd: number;
483
- transform: string;
484
- transition: string;
485
- cursor: string;
486
- } | {
487
- backgroundColor?: string | undefined;
488
- borderRadius?: string | undefined;
489
- color?: string | undefined;
490
- fontSize: string;
491
- padding?: string | undefined;
492
- position?: string | undefined;
493
- insetInlineEnd?: number | undefined;
494
- insetInlineStart?: string | undefined;
495
- top?: number | undefined;
496
- transform: string;
497
- '[class$="-tag"]:hover > &'?: {
498
- backgroundColor: string;
499
- } | undefined;
500
- '[dir="rtl"] &'?: {
501
- transform: string;
502
- } | undefined;
503
- label: string;
504
- marginInlineStart: string | 0;
505
- marginInlineEnd: number;
506
- transition: string;
507
- cursor: string;
508
- };
509
- };
13
+ declare const generateStyle: (componentTheme: TagTheme, props: TagProps) => TagStyle;
510
14
  export default generateStyle;
511
15
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Tag/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBAAoB,QAAQ,SAAS,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyL/D,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Tag/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEjD;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBAAoB,QAAQ,SAAS,QAAQ,KAAG,QAyLlE,CAAA;AAED,eAAe,aAAa,CAAA"}