Skip to content

Commit fc58108

Browse files
committed
Revert "feat: Add style api for token (#4346)"
This reverts commit 7d3ac02.
1 parent a6732f9 commit fc58108

File tree

15 files changed

+234
-683
lines changed

15 files changed

+234
-683
lines changed

build-tools/utils/custom-css-properties.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,5 @@ const customCssPropertiesList = [
167167
'styleSliderHandleBackgroundHover',
168168
'styleSliderHandleBackgroundActive',
169169
'styleSliderHandleBorderRadius',
170-
// Token style properties
171-
'tokenStyleBackgroundDefault',
172-
'tokenStyleBackgroundDisabled',
173-
'tokenStyleBackgroundReadOnly',
174-
'tokenStyleBorderColorDefault',
175-
'tokenStyleBorderColorDisabled',
176-
'tokenStyleBorderColorReadOnly',
177-
'tokenStyleDismissColorDefault',
178-
'tokenStyleDismissColorDisabled',
179-
'tokenStyleDismissColorHover',
180-
'tokenStyleDismissColorReadOnly',
181170
];
182171
module.exports = customCssPropertiesList;

pages/token/style-permutations.page.tsx

Lines changed: 0 additions & 83 deletions
This file was deleted.

src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap

Lines changed: 0 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -30071,173 +30071,6 @@ use the \`id\` attribute, consider setting it on a parent element instead.",
3007130071
"optional": true,
3007230072
"type": "boolean",
3007330073
},
30074-
{
30075-
"description": "An object containing CSS properties to customize the token's visual appearance.
30076-
Refer to the [style](/components/token/?tabId=style) tab for more details.",
30077-
"inlineType": {
30078-
"name": "TokenProps.Style",
30079-
"properties": [
30080-
{
30081-
"inlineType": {
30082-
"name": "object",
30083-
"properties": [
30084-
{
30085-
"inlineType": {
30086-
"name": "object",
30087-
"properties": [
30088-
{
30089-
"name": "default",
30090-
"optional": true,
30091-
"type": "string",
30092-
},
30093-
{
30094-
"name": "disabled",
30095-
"optional": true,
30096-
"type": "string",
30097-
},
30098-
{
30099-
"name": "hover",
30100-
"optional": true,
30101-
"type": "string",
30102-
},
30103-
{
30104-
"name": "readOnly",
30105-
"optional": true,
30106-
"type": "string",
30107-
},
30108-
],
30109-
"type": "object",
30110-
},
30111-
"name": "color",
30112-
"optional": true,
30113-
"type": "{ default?: string | undefined; disabled?: string | undefined; hover?: string | undefined; readOnly?: string | undefined; }",
30114-
},
30115-
{
30116-
"inlineType": {
30117-
"name": "object",
30118-
"properties": [
30119-
{
30120-
"name": "borderColor",
30121-
"optional": true,
30122-
"type": "string",
30123-
},
30124-
{
30125-
"name": "borderRadius",
30126-
"optional": true,
30127-
"type": "string",
30128-
},
30129-
{
30130-
"name": "borderWidth",
30131-
"optional": true,
30132-
"type": "string",
30133-
},
30134-
],
30135-
"type": "object",
30136-
},
30137-
"name": "focusRing",
30138-
"optional": true,
30139-
"type": "{ borderColor?: string | undefined; borderRadius?: string | undefined; borderWidth?: string | undefined; }",
30140-
},
30141-
],
30142-
"type": "object",
30143-
},
30144-
"name": "dismissButton",
30145-
"optional": true,
30146-
"type": "{ color?: { default?: string | undefined; disabled?: string | undefined; hover?: string | undefined; readOnly?: string | undefined; } | undefined; focusRing?: { borderColor?: string | undefined; borderRadius?: string | undefined; borderWidth?: string | undefined; } | undefined; }",
30147-
},
30148-
{
30149-
"inlineType": {
30150-
"name": "object",
30151-
"properties": [
30152-
{
30153-
"inlineType": {
30154-
"name": "{ default?: string | undefined; disabled?: string | undefined; readOnly?: string | undefined; }",
30155-
"properties": [
30156-
{
30157-
"name": "default",
30158-
"optional": true,
30159-
"type": "string",
30160-
},
30161-
{
30162-
"name": "disabled",
30163-
"optional": true,
30164-
"type": "string",
30165-
},
30166-
{
30167-
"name": "readOnly",
30168-
"optional": true,
30169-
"type": "string",
30170-
},
30171-
],
30172-
"type": "object",
30173-
},
30174-
"name": "background",
30175-
"optional": true,
30176-
"type": "{ default?: string | undefined; disabled?: string | undefined; readOnly?: string | undefined; }",
30177-
},
30178-
{
30179-
"inlineType": {
30180-
"name": "{ default?: string | undefined; disabled?: string | undefined; readOnly?: string | undefined; }",
30181-
"properties": [
30182-
{
30183-
"name": "default",
30184-
"optional": true,
30185-
"type": "string",
30186-
},
30187-
{
30188-
"name": "disabled",
30189-
"optional": true,
30190-
"type": "string",
30191-
},
30192-
{
30193-
"name": "readOnly",
30194-
"optional": true,
30195-
"type": "string",
30196-
},
30197-
],
30198-
"type": "object",
30199-
},
30200-
"name": "borderColor",
30201-
"optional": true,
30202-
"type": "{ default?: string | undefined; disabled?: string | undefined; readOnly?: string | undefined; }",
30203-
},
30204-
{
30205-
"name": "borderRadius",
30206-
"optional": true,
30207-
"type": "string",
30208-
},
30209-
{
30210-
"name": "borderWidth",
30211-
"optional": true,
30212-
"type": "string",
30213-
},
30214-
{
30215-
"name": "paddingBlock",
30216-
"optional": true,
30217-
"type": "string",
30218-
},
30219-
{
30220-
"name": "paddingInline",
30221-
"optional": true,
30222-
"type": "string",
30223-
},
30224-
],
30225-
"type": "object",
30226-
},
30227-
"name": "root",
30228-
"optional": true,
30229-
"type": "{ background?: { default?: string | undefined; disabled?: string | undefined; readOnly?: string | undefined; } | undefined; borderColor?: { default?: string | undefined; disabled?: string | undefined; readOnly?: string | undefined; } | undefined; borderRadius?: string | undefined; borderWidth?: string | undefined; p...",
30230-
},
30231-
],
30232-
"type": "object",
30233-
},
30234-
"name": "style",
30235-
"optional": true,
30236-
"systemTags": [
30237-
"core",
30238-
],
30239-
"type": "TokenProps.Style",
30240-
},
3024130074
{
3024230075
"description": "A list of tags giving further guidance about the token.",
3024330076
"name": "tags",

0 commit comments

Comments
 (0)