@instructure/ui-pill 11.7.8-snapshot-5 → 11.7.8-snapshot-7
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 +1 -1
- package/es/Pill/v2/index.js +2 -1
- package/lib/Pill/v2/index.js +2 -1
- package/package.json +15 -15
- package/src/Pill/v2/index.tsx +2 -1
- package/src/Pill/v2/props.ts +2 -2
- package/src/Pill/v2/styles.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Pill/v2/index.d.ts.map +1 -1
- package/types/Pill/v2/props.d.ts +2 -2
- package/types/Pill/v2/props.d.ts.map +1 -1
- package/types/Pill/v2/styles.d.ts +2 -2
- package/types/Pill/v2/styles.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
|
-
## [11.7.8-snapshot-
|
|
6
|
+
## [11.7.8-snapshot-7](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8-snapshot-7) (2026-10-02)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-pill
|
|
9
9
|
|
package/es/Pill/v2/index.js
CHANGED
|
@@ -30,6 +30,7 @@ import { Tooltip } from '@instructure/ui-tooltip/latest';
|
|
|
30
30
|
import { withStyleNew } from '@instructure/emotion';
|
|
31
31
|
import generateStyle from './styles.js';
|
|
32
32
|
import { allowedProps } from './props.js';
|
|
33
|
+
import { frozenThemesDesignTokensV1 } from '@instructure/ui-themes';
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
36
|
---
|
|
@@ -37,7 +38,7 @@ category: components
|
|
|
37
38
|
---
|
|
38
39
|
**/
|
|
39
40
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
40
|
-
let Pill = (_dec = withStyleNew(generateStyle), _dec(_class = class Pill extends Component {
|
|
41
|
+
let Pill = (_dec = withStyleNew(generateStyle, null, frozenThemesDesignTokensV1), _dec(_class = class Pill extends Component {
|
|
41
42
|
static displayName = 'Pill';
|
|
42
43
|
static componentId = 'Pill';
|
|
43
44
|
static allowedProps = allowedProps;
|
package/lib/Pill/v2/index.js
CHANGED
|
@@ -12,6 +12,7 @@ var _latest2 = require("@instructure/ui-tooltip/latest");
|
|
|
12
12
|
var _emotion = require("@instructure/emotion");
|
|
13
13
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
14
14
|
var _props = require("./props.js");
|
|
15
|
+
var _uiThemes = require("@instructure/ui-themes");
|
|
15
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
16
17
|
var _dec, _class;
|
|
17
18
|
/*
|
|
@@ -42,7 +43,7 @@ var _dec, _class;
|
|
|
42
43
|
category: components
|
|
43
44
|
---
|
|
44
45
|
**/
|
|
45
|
-
let Pill = exports.Pill = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class Pill extends _react.Component {
|
|
46
|
+
let Pill = exports.Pill = (_dec = (0, _emotion.withStyleNew)(_styles.default, null, _uiThemes.frozenThemesDesignTokensV1), _dec(_class = class Pill extends _react.Component {
|
|
46
47
|
static displayName = 'Pill';
|
|
47
48
|
static componentId = 'Pill';
|
|
48
49
|
static allowedProps = _props.allowedProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-pill",
|
|
3
|
-
"version": "11.7.8-snapshot-
|
|
3
|
+
"version": "11.7.8-snapshot-7",
|
|
4
4
|
"description": "A UI component to communicate concise status.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/Pill/11_5/index.js",
|
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.7",
|
|
18
|
-
"@instructure/console": "11.7.8-snapshot-
|
|
19
|
-
"@instructure/shared-types": "11.7.8-snapshot-
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-react-utils": "11.7.8-snapshot-
|
|
23
|
-
"@instructure/ui-tooltip": "11.7.8-snapshot-
|
|
24
|
-
"@instructure/ui-utils": "11.7.8-snapshot-
|
|
25
|
-
"@instructure/ui-truncate-text": "11.7.8-snapshot-
|
|
26
|
-
"@instructure/ui-view": "11.7.8-snapshot-
|
|
18
|
+
"@instructure/console": "11.7.8-snapshot-7",
|
|
19
|
+
"@instructure/shared-types": "11.7.8-snapshot-7",
|
|
20
|
+
"@instructure/emotion": "11.7.8-snapshot-7",
|
|
21
|
+
"@instructure/ui-themes": "11.7.8-snapshot-7",
|
|
22
|
+
"@instructure/ui-react-utils": "11.7.8-snapshot-7",
|
|
23
|
+
"@instructure/ui-tooltip": "11.7.8-snapshot-7",
|
|
24
|
+
"@instructure/ui-utils": "11.7.8-snapshot-7",
|
|
25
|
+
"@instructure/ui-truncate-text": "11.7.8-snapshot-7",
|
|
26
|
+
"@instructure/ui-view": "11.7.8-snapshot-7"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"vitest": "^5.0.0",
|
|
30
|
-
"@instructure/ui-
|
|
31
|
-
"@instructure/ui-
|
|
32
|
-
"@instructure/ui-
|
|
33
|
-
"@instructure/ui-
|
|
34
|
-
"@instructure/ui-
|
|
30
|
+
"@instructure/ui-axe-check": "11.7.8-snapshot-7",
|
|
31
|
+
"@instructure/ui-icons": "11.7.8-snapshot-7",
|
|
32
|
+
"@instructure/ui-color-utils": "11.7.8-snapshot-7",
|
|
33
|
+
"@instructure/ui-scripts": "11.7.8-snapshot-7",
|
|
34
|
+
"@instructure/ui-babel-preset": "11.7.8-snapshot-7"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": ">=18 <=19"
|
package/src/Pill/v2/index.tsx
CHANGED
|
@@ -35,6 +35,7 @@ import generateStyle from './styles.js'
|
|
|
35
35
|
|
|
36
36
|
import type { PillProps, PillState } from './props'
|
|
37
37
|
import { allowedProps } from './props.js'
|
|
38
|
+
import { frozenThemesDesignTokensV1 } from '@instructure/ui-themes'
|
|
38
39
|
|
|
39
40
|
/**
|
|
40
41
|
---
|
|
@@ -42,7 +43,7 @@ category: components
|
|
|
42
43
|
---
|
|
43
44
|
**/
|
|
44
45
|
|
|
45
|
-
@withStyleNew(generateStyle)
|
|
46
|
+
@withStyleNew(generateStyle, null, frozenThemesDesignTokensV1)
|
|
46
47
|
class Pill extends Component<PillProps, PillState> {
|
|
47
48
|
static displayName = 'Pill'
|
|
48
49
|
static readonly componentId = 'Pill'
|
package/src/Pill/v2/props.ts
CHANGED
|
@@ -27,11 +27,11 @@ import type {
|
|
|
27
27
|
WithStyleProps,
|
|
28
28
|
ComponentStyle
|
|
29
29
|
} from '@instructure/emotion'
|
|
30
|
-
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
31
30
|
import type {
|
|
32
31
|
AsElementType,
|
|
33
32
|
OtherHTMLAttributes
|
|
34
33
|
} from '@instructure/shared-types'
|
|
34
|
+
import type { DesignTokensV1ComponentTypes } from '@instructure/ui-themes'
|
|
35
35
|
|
|
36
36
|
type PillOwnProps = {
|
|
37
37
|
as?: AsElementType
|
|
@@ -63,7 +63,7 @@ type PropKeys = keyof PillOwnProps
|
|
|
63
63
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
64
64
|
|
|
65
65
|
type PillProps = PillOwnProps &
|
|
66
|
-
WithStyleProps<ReturnType<
|
|
66
|
+
WithStyleProps<ReturnType<DesignTokensV1ComponentTypes['Pill']>, PillStyle> &
|
|
67
67
|
OtherHTMLAttributes<PillOwnProps>
|
|
68
68
|
|
|
69
69
|
type PillStyle = ComponentStyle<
|
package/src/Pill/v2/styles.ts
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
26
25
|
import type { PillProps, PillStyle } from './props'
|
|
26
|
+
import type { DesignTokensV1ComponentTypes } from '@instructure/ui-themes'
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* ---
|
|
@@ -35,7 +35,7 @@ import type { PillProps, PillStyle } from './props'
|
|
|
35
35
|
* @return {Object} The final style object, which will be used in the component
|
|
36
36
|
*/
|
|
37
37
|
const generateStyle = (
|
|
38
|
-
componentTheme: ReturnType<
|
|
38
|
+
componentTheme: ReturnType<DesignTokensV1ComponentTypes['Pill']>,
|
|
39
39
|
props: PillProps
|
|
40
40
|
): PillStyle => {
|
|
41
41
|
const { color } = props
|