From 65a9c6c2fe9f1b915be15dbe4d420f91299256b4 Mon Sep 17 00:00:00 2001 From: saller Date: Thu, 23 Nov 2023 16:02:03 +0800 Subject: [PATCH] feat: remove typography support (#1738) BREAKING CHANGE: typography is removed --- packages/components/index.ts | 12 +- .../__snapshots__/typography.spec.ts.snap | 3 - .../typography/__tests__/typography.spec.ts | 96 ----------- packages/components/typography/demo/Basic.md | 14 -- packages/components/typography/demo/Basic.vue | 24 --- packages/components/typography/demo/Text.md | 14 -- packages/components/typography/demo/Text.vue | 25 --- packages/components/typography/demo/Title.md | 14 -- packages/components/typography/demo/Title.vue | 7 - packages/components/typography/docs/Api.zh.md | 13 -- .../components/typography/docs/Design.zh.md | 8 - .../components/typography/docs/Index.zh.md | 7 - .../components/typography/docs/Theme.zh.md | 47 ------ packages/components/typography/src/types.ts | 19 --- .../components/typography/src/typography.ts | 60 ------- .../components/typography/style/index.less | 157 ------------------ .../components/typography/style/mixins.less | 86 ---------- .../typography/style/themes/default.less | 4 - .../typography/style/themes/default.ts | 3 - .../style/themes/default.variable.less | 45 ----- .../typography/style/themes/seer.less | 4 - .../typography/style/themes/seer.ts | 3 - .../style/themes/seer.variable.less | 1 - 23 files changed, 1 insertion(+), 665 deletions(-) delete mode 100644 packages/components/typography/__tests__/__snapshots__/typography.spec.ts.snap delete mode 100644 packages/components/typography/__tests__/typography.spec.ts delete mode 100644 packages/components/typography/demo/Basic.md delete mode 100644 packages/components/typography/demo/Basic.vue delete mode 100644 packages/components/typography/demo/Text.md delete mode 100644 packages/components/typography/demo/Text.vue delete mode 100644 packages/components/typography/demo/Title.md delete mode 100644 packages/components/typography/demo/Title.vue delete mode 100644 packages/components/typography/docs/Api.zh.md delete mode 100644 packages/components/typography/docs/Design.zh.md delete mode 100644 packages/components/typography/docs/Index.zh.md delete mode 100644 packages/components/typography/docs/Theme.zh.md delete mode 100644 packages/components/typography/src/types.ts delete mode 100644 packages/components/typography/src/typography.ts delete mode 100644 packages/components/typography/style/index.less delete mode 100644 packages/components/typography/style/mixins.less delete mode 100644 packages/components/typography/style/themes/default.less delete mode 100644 packages/components/typography/style/themes/default.ts delete mode 100644 packages/components/typography/style/themes/default.variable.less delete mode 100644 packages/components/typography/style/themes/seer.less delete mode 100644 packages/components/typography/style/themes/seer.ts delete mode 100644 packages/components/typography/style/themes/seer.variable.less diff --git a/packages/components/index.ts b/packages/components/index.ts index 14e397588..2ce81cfe6 100644 --- a/packages/components/index.ts +++ b/packages/components/index.ts @@ -5,7 +5,7 @@ * found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE */ -import type { App, Directive } from 'vue' +import type { App } from 'vue' import { IxAffix } from '@idux/components/affix' import { IxAlert } from '@idux/components/alert' @@ -75,7 +75,6 @@ import { IxTour } from '@idux/components/tour' import { IxTransfer, IxTransferList } from '@idux/components/transfer' import { IxTree } from '@idux/components/tree' import { IxTreeSelect } from '@idux/components/tree-select' -import { IxTypography } from '@idux/components/typography' import { IxUpload, IxUploadFiles } from '@idux/components/upload' import { version } from '@idux/components/version' import { IxWatermark } from '@idux/components/watermark' @@ -188,18 +187,10 @@ const components = [ IxWatermark, ] -const directives: Record = { - typography: IxTypography, -} - const install = (app: App): void => { components.forEach(component => { app.component(component.displayName ?? component.name, component) }) - - Object.keys(directives).forEach(key => { - app.directive(key, directives[key]) - }) } const installer = { install, version } @@ -269,7 +260,6 @@ export * from '@idux/components/tooltip' export * from '@idux/components/transfer' export * from '@idux/components/tree' export * from '@idux/components/tree-select' -export * from '@idux/components/typography' export * from '@idux/components/upload' export * from '@idux/components/utils' export * from '@idux/components/version' diff --git a/packages/components/typography/__tests__/__snapshots__/typography.spec.ts.snap b/packages/components/typography/__tests__/__snapshots__/typography.spec.ts.snap deleted file mode 100644 index 45f4c1e37..000000000 --- a/packages/components/typography/__tests__/__snapshots__/typography.spec.ts.snap +++ /dev/null @@ -1,3 +0,0 @@ -// Vitest Snapshot v1 - -exports[`typography.ts > render work 1`] = `"

Paragraph

"`; diff --git a/packages/components/typography/__tests__/typography.spec.ts b/packages/components/typography/__tests__/typography.spec.ts deleted file mode 100644 index d1e895aba..000000000 --- a/packages/components/typography/__tests__/typography.spec.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { mount } from '@vue/test-utils' -import { defineComponent } from 'vue' - -import { renderWork } from '@tests' - -import { TypographyProps } from '../src/types' -import IxTypography from '../src/typography' - -const TestComponent = defineComponent({ - // eslint-disable-next-line vue/require-prop-types - props: ['type'], - template: `

Paragraph

`, -}) - -describe.skip('typography.ts', () => { - const typographyMount = (props?: { type: TypographyProps }) => - mount(TestComponent, { global: { directives: { typography: IxTypography } }, props }) - - renderWork(TestComponent, { global: { directives: { typography: IxTypography } } }) - - test('type work', async () => { - const wrapper = typographyMount() - expect(wrapper.classes()).toEqual(['ix-typography']) - - await wrapper.setProps({ type: 'success' }) - expect(wrapper.classes()).toEqual(['ix-typography', 'ix-typography-success']) - - await wrapper.setProps({ type: 'warning' }) - expect(wrapper.classes()).toEqual(['ix-typography', 'ix-typography-warning']) - - await wrapper.setProps({ type: 'secondary' }) - expect(wrapper.classes()).toEqual(['ix-typography', 'ix-typography-secondary']) - - await wrapper.setProps({ type: 'error' }) - expect(wrapper.classes()).toEqual(['ix-typography', 'ix-typography-error']) - }) - - test('option work', async () => { - const wrapper = typographyMount({ type: { type: 'success' } }) - expect(wrapper.classes()).toEqual(['ix-typography', 'ix-typography-success']) - - await wrapper.setProps({ type: { type: 'warning' } }) - expect(wrapper.classes()).toEqual(['ix-typography', 'ix-typography-warning']) - - await wrapper.setProps({ type: { type: 'secondary' } }) - expect(wrapper.classes()).toEqual(['ix-typography', 'ix-typography-secondary']) - - await wrapper.setProps({ type: { type: 'error' } }) - expect(wrapper.classes()).toEqual(['ix-typography', 'ix-typography-error']) - }) - - test('disabled word', async () => { - const wrapper = typographyMount() - expect(wrapper.classes()).not.toContain('ix-typography-disabled') - - await wrapper.setProps({ type: { disabled: true } }) - expect(wrapper.classes()).toContain('ix-typography-disabled') - - await wrapper.setProps({ type: { disabled: false } }) - expect(wrapper.classes()).not.toContain('ix-typography-disabled') - }) - - test('dev warn work', () => { - const warn = vi.spyOn(console, 'warn').mockImplementation(() => {}) - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - const wrapper = typographyMount({ type: 'hello' }) - expect(wrapper.classes()).toEqual(['ix-typography']) - expect(warn).toBeCalled() - }) - - test('custom class work', async () => { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - const wrapper = typographyMount({ class: 'custom' }) - expect(wrapper.classes()).toEqual(['custom', 'ix-typography']) - - const wrapper2 = typographyMount() - await wrapper2.setProps({ class: 'custom' }) - expect(wrapper.classes()).toEqual(['custom', 'ix-typography']) - }) - - test('directive position work', () => { - const wrapper = mount( - { - template: ` -
Directive1
-
Directive2
- `, - }, - { global: { directives: { typography: IxTypography } } }, - ) - expect(wrapper.get('#directive1').classes()).toEqual(['custom-class1', 'ix-typography']) - expect(wrapper.get('#directive2').classes()).toEqual(['custom-class2', 'ix-typography']) - }) -}) diff --git a/packages/components/typography/demo/Basic.md b/packages/components/typography/demo/Basic.md deleted file mode 100644 index 5def57f7b..000000000 --- a/packages/components/typography/demo/Basic.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -order: 0 -title: - zh: 基本 - en: Basic ---- - -## zh - -展示文档样例。 - -## en - -Show the typography demo. diff --git a/packages/components/typography/demo/Basic.vue b/packages/components/typography/demo/Basic.vue deleted file mode 100644 index 676a108e1..000000000 --- a/packages/components/typography/demo/Basic.vue +++ /dev/null @@ -1,24 +0,0 @@ - diff --git a/packages/components/typography/demo/Text.md b/packages/components/typography/demo/Text.md deleted file mode 100644 index 27389f776..000000000 --- a/packages/components/typography/demo/Text.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -order: 2 -title: - zh: 文本组件 - en: Text component ---- - -## zh - -内置不同样式的文本。 - -## en - -Built-in different styles of text. diff --git a/packages/components/typography/demo/Text.vue b/packages/components/typography/demo/Text.vue deleted file mode 100644 index f0c7632cf..000000000 --- a/packages/components/typography/demo/Text.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/packages/components/typography/demo/Title.md b/packages/components/typography/demo/Title.md deleted file mode 100644 index 02c298e9f..000000000 --- a/packages/components/typography/demo/Title.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -order: 1 -title: - zh: 标题组件 - en: Title component ---- - -## zh - -展示不同级别的标题 - -## en - -Show different level of title. diff --git a/packages/components/typography/demo/Title.vue b/packages/components/typography/demo/Title.vue deleted file mode 100644 index 10ca8fd8a..000000000 --- a/packages/components/typography/demo/Title.vue +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/packages/components/typography/docs/Api.zh.md b/packages/components/typography/docs/Api.zh.md deleted file mode 100644 index 76a49a5a3..000000000 --- a/packages/components/typography/docs/Api.zh.md +++ /dev/null @@ -1,13 +0,0 @@ - -### IxTypography - -```typescript -type TypographyType = 'success' | 'warning' | 'error' | 'secondary' - -interface TypographyOptions { - type?: TypographyType - disabled?: boolean -} - -type TypographyConfig = TypographyType | TypographyOptions -``` diff --git a/packages/components/typography/docs/Design.zh.md b/packages/components/typography/docs/Design.zh.md deleted file mode 100644 index 6a1b8bdc6..000000000 --- a/packages/components/typography/docs/Design.zh.md +++ /dev/null @@ -1,8 +0,0 @@ -## 组件定义 - -文本的基本格式。 - -## 使用场景 - -- 当需要展示标题、段落、列表内容时使用,如文章/博客/日志的文本样式。 -- 当需要一列基于文本的基础操作时,如拷贝/省略/可编辑。 diff --git a/packages/components/typography/docs/Index.zh.md b/packages/components/typography/docs/Index.zh.md deleted file mode 100644 index 03f3900cf..000000000 --- a/packages/components/typography/docs/Index.zh.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -category: components -type: 通用 -title: Typography -subtitle: 排版 ---- - diff --git a/packages/components/typography/docs/Theme.zh.md b/packages/components/typography/docs/Theme.zh.md deleted file mode 100644 index ef8556226..000000000 --- a/packages/components/typography/docs/Theme.zh.md +++ /dev/null @@ -1,47 +0,0 @@ -| 名称 | default | seer | 备注 | -| --- | --- | --- | --- | -| `@typography-default-color` | `@text-color` | - | - | -| `@typography-color-secondary` | `@text-color-secondary` | - | - | -| `@typography-success` | `@color-success` | - | - | -| `@typography-warning` | `@color-warning` | - | - | -| `@typography-error` | `@color-error` | - | - | -| `@typography-disabled-color` | `@disabled-color` | - | - | -| `@typography-mark-padding` | `0` | - | - | -| `@typography-mark-background-color` | `@color-yellow-l50` | - | - | -| `@typography-code-margin` | `0 0.2em` | - | - | -| `@typography-code-padding` | `0.2em 0.4em 0.1em` | - | - | -| `@typography-code-font-size` | `85%` | - | - | -| `@typography-code-background` | `@color-grey` | - | - | -| `@typography-code-border` | `@border-width-sm @border-style @color-grey-d30` | - | - | -| `@typography-code-border-radius` | `@border-radius-md` | - | - | -| `@typography-kbd-margin` | `0 0.2em` | - | - | -| `@typography-kbd-padding` | `0.15em 0.4em 0.1em` | - | - | -| `@typography-kbd-font-size` | `90%` | - | - | -| `@typography-kbd-background` | `@color-grey` | - | - | -| `@typography-kbd-border-style` | `@border-style` | - | - | -| `@typography-kbd-border-color` | `@color-grey-d30` | - | - | -| `@typography-kbd-border-width` | `@border-width-sm @border-width-sm @border-width-md` | - | - | -| `@typography-kbd-border-radius` | `@border-radius-md` | - | - | -| `@typography-strong-font-weight` | `@font-weight-lg` | - | - | -| `@typography-a-color` | `@color-primary` | - | - | -| `@typography-a-outline` | `none` | - | - | -| `@typography-a-cursor` | `pointer` | - | - | -| `@typography-a-color-hover-focus` | `@color-blue-l30` | - | - | -| `@typography-a-color-active` | `@color-blue-d30` | - | - | -| `@typography-title-margin-top` | `1.2em` | - | - | -| `@typography-title-margin-bottom` | `0.5em` | - | - | -| `@typography-title-font-weight` | `@font-weight-xl` | - | - | -| `@typography-title-color` | `@color-black` | - | - | -| `@typography-title-1-font-size` | `@font-size-3xl` | - | - | -| `@typography-title-2-font-size` | `@font-size-2xl` | - | - | -| `@typography-title-3-font-size` | `@font-size-xl` | - | - | -| `@typography-title-4-font-size` | `@font-size-lg` | - | - | -| `@typography-title-5-font-size` | `@font-size-md` | - | - | -| `@typography-paragraph-margin-bottom` | `1em` | - | - | -| `@typography-list-margin` | `0 0 1em 0` | - | - | -| `@typography-list-padding` | `0` | - | - | -| `@typography-list-item-margin` | `0 0 0 20px` | - | - | -| `@typography-list-item-padding` | `0 0 0 4px` | - | - | -| `@typography-ul-list-style` | `circle` | - | - | -| `@typography-sub-ul-list-style` | `disc` | - | - | -| `@typography-ol-list-style` | `decimal` | - | - | diff --git a/packages/components/typography/src/types.ts b/packages/components/typography/src/types.ts deleted file mode 100644 index 065296798..000000000 --- a/packages/components/typography/src/types.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @license - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE - */ - -import type { FunctionDirective } from 'vue' - -export type TypographyType = 'success' | 'warning' | 'secondary' | 'error' - -export interface TypographyOptions { - type?: TypographyType - disabled?: boolean -} - -export type TypographyProps = TypographyType | TypographyOptions - -export type TypographyInstance = FunctionDirective diff --git a/packages/components/typography/src/typography.ts b/packages/components/typography/src/typography.ts deleted file mode 100644 index 0a3f443e5..000000000 --- a/packages/components/typography/src/typography.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * @license - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE - */ - -import type { TypographyOptions, TypographyProps } from './types' -import type { FunctionDirective } from 'vue' - -import { isObject } from 'lodash-es' - -import { Logger, addClass, removeClass } from '@idux/cdk/utils' - -/** - * @deprecated - */ -const typography: FunctionDirective = (el, binding) => { - if (__DEV__) { - Logger.warn('components/typography', 'the directive was deprecated.') - } - const className: string[] = ['ix-typography'] - const { value, oldValue } = binding - - const oldOptions: TypographyOptions = isObject(oldValue) ? oldValue : { type: oldValue ?? undefined } - const newOptions: TypographyOptions = isObject(value) ? value : { type: value } - - if (isLegality(oldOptions.type)) { - removeClass(el, `ix-typography-${oldOptions.type}`) - } - if (oldOptions.disabled) { - removeClass(el, 'ix-typography-disabled') - } - - if (isLegality(newOptions.type)) { - className.push(`ix-typography-${newOptions.type}`) - } - if (newOptions.disabled) { - className.push('ix-typography-disabled') - } - - addClass(el, className) -} - -export default typography - -function isLegality(type?: string): boolean { - const types: string[] = ['success', 'warning', 'error', 'secondary'] - - if (!type) { - return false - } - - if (types.includes(type)) { - return true - } - - __DEV__ && Logger.warn('components/typography', `${type} is not includes in ${types}.`) - return false -} diff --git a/packages/components/typography/style/index.less b/packages/components/typography/style/index.less deleted file mode 100644 index 11f4b1fb3..000000000 --- a/packages/components/typography/style/index.less +++ /dev/null @@ -1,157 +0,0 @@ -@import './mixins.less'; - -.@{typography-prefix} { - // basic - overflow-wrap: break-word; - color: @typography-default-color; - - // tag - - mark { - .typography-mark(); - } - - code { - .typography-code(); - } - - kbd { - .typography-keyboard(); - } - - u { - .typography-underline(); - } - - del { - .typography-delete(); - } - - strong { - .typography-strong(); - } - - a { - .typography-a(); - } - - // paragraph - - div&, - p { - .typography-paragraph(); - } - - // title - - h1&, - h1 { - .typography-title-1(); - } - - h2&, - h2 { - .typography-title-2(); - } - - h3&, - h3 { - .typography-title-3(); - } - - h4&, - h4 { - .typography-title-4(); - } - - h5&, - h5 { - .typography-title-5(); - } - - h1&, - h2&, - h3&, - h4&, - h5& { - .@{typography-prefix} + & { - margin-top: @typography-title-margin-top; - } - } - - div, - ul, - li, - p, - h1, - h2, - h3, - h4, - h5 { - - + h1, - + h2, - + h3, - + h4, - + h5 { - margin-top: @typography-title-margin-top; - } - } - - // text - - &-secondary { - color: @typography-color-secondary; - } - - &-success { - color: @typography-success; - } - - &-warning { - color: @typography-warning; - } - - &-error { - color: @typography-error; - } - - &-disabled { - color: @typography-disabled-color; - cursor: not-allowed; - - > * { - pointer-events: none; - } - - > a { - color: @typography-disabled-color; - cursor: not-allowed; - } - } - - // list - - ul, - ol { - margin: @typography-list-margin; - padding: @typography-list-padding; - - li { - margin: @typography-list-item-margin; - padding: @typography-list-item-padding; - } - } - - ul { - list-style-type: @typography-ul-list-style; - - ul { - list-style-type: @typography-sub-ul-list-style; - } - } - - ol { - list-style-type: @typography-ol-list-style; - } -} diff --git a/packages/components/typography/style/mixins.less b/packages/components/typography/style/mixins.less deleted file mode 100644 index 087d4f3e8..000000000 --- a/packages/components/typography/style/mixins.less +++ /dev/null @@ -1,86 +0,0 @@ -.typography-mark() { - padding: @typography-mark-padding; - background-color: @typography-mark-background-color; -} - -.typography-code() { - margin: @typography-code-margin; - padding: @typography-code-padding; - font-size: @typography-code-font-size; - background: @typography-code-background; - border: @typography-code-border; - border-radius: @typography-code-border-radius; -} - -.typography-keyboard() { - margin: @typography-kbd-margin; - padding: @typography-kbd-padding; - font-size: @typography-kbd-font-size; - border-radius: @typography-kbd-border-radius; - border-width: @typography-kbd-border-width; - border-style: @typography-kbd-border-style; - border-color: @typography-kbd-border-color; - background: @typography-kbd-background; -} - -.typography-underline() { - text-decoration: underline; - text-decoration-skip-ink: auto; -} - -.typography-delete() { - text-decoration: line-through; -} - -.typography-strong() { - font-weight: @typography-strong-font-weight; -} - -.typography-a() { - text-decoration: none; - color: @typography-a-color; - cursor: @typography-a-cursor; - outline: @typography-a-outline; - transition: color @transition-duration-base; - - &:hover, - &:focus { - color: @typography-a-color-hover-focus; - } - - &:active { - color: @typography-a-color-active; - } -} - -.typography-title(@spacing-bottom,@color,@font-weight,@font-size,@line-height) { - margin-bottom: @spacing-bottom; - color: @color; - font-weight: @font-weight; - font-size: @font-size; - line-height: @line-height; -} - -.typography-title-1() { - .typography-title(@typography-title-margin-bottom, @typography-title-color, @typography-title-font-weight, @typography-title-1-font-size, 1.23); -} - -.typography-title-2() { - .typography-title(@typography-title-margin-bottom, @typography-title-color, @typography-title-font-weight, @typography-title-2-font-size, 1.35); -} - -.typography-title-3() { - .typography-title(@typography-title-margin-bottom, @typography-title-color, @typography-title-font-weight, @typography-title-3-font-size, 1.35); -} - -.typography-title-4() { - .typography-title(@typography-title-margin-bottom, @typography-title-color, @typography-title-font-weight, @typography-title-4-font-size, 1.4); -} - -.typography-title-5() { - .typography-title(@typography-title-margin-bottom, @typography-title-color, @typography-title-font-weight, @typography-title-5-font-size, 1.5); -} - -.typography-paragraph() { - margin-bottom: @typography-paragraph-margin-bottom; -} diff --git a/packages/components/typography/style/themes/default.less b/packages/components/typography/style/themes/default.less deleted file mode 100644 index a66443560..000000000 --- a/packages/components/typography/style/themes/default.less +++ /dev/null @@ -1,4 +0,0 @@ -@import '../../../style/themes/default.less'; -@import './default.variable.less'; - -@import '../index.less'; diff --git a/packages/components/typography/style/themes/default.ts b/packages/components/typography/style/themes/default.ts deleted file mode 100644 index 47fe656f7..000000000 --- a/packages/components/typography/style/themes/default.ts +++ /dev/null @@ -1,3 +0,0 @@ -// style dependencies - -import './default.less' diff --git a/packages/components/typography/style/themes/default.variable.less b/packages/components/typography/style/themes/default.variable.less deleted file mode 100644 index 9db873d00..000000000 --- a/packages/components/typography/style/themes/default.variable.less +++ /dev/null @@ -1,45 +0,0 @@ -@typography-default-color: @text-color; -@typography-color-secondary: @text-color-secondary; -@typography-success: @color-success; -@typography-warning: @color-warning; -@typography-error: @color-error; -@typography-disabled-color: @disabled-color; -@typography-mark-padding: 0; -@typography-mark-background-color: @color-yellow-l50; -@typography-code-margin: 0 0.2em; -@typography-code-padding: 0.2em 0.4em 0.1em; -@typography-code-font-size: 85%; -@typography-code-background: @color-grey; -@typography-code-border: @border-width-sm @border-style @color-grey-d30; -@typography-code-border-radius: @border-radius-md; -@typography-kbd-margin: 0 0.2em; -@typography-kbd-padding: 0.15em 0.4em 0.1em; -@typography-kbd-font-size: 90%; -@typography-kbd-background: @color-grey; -@typography-kbd-border-style: @border-style; -@typography-kbd-border-color: @color-grey-d30; -@typography-kbd-border-width: @border-width-sm @border-width-sm @border-width-md; -@typography-kbd-border-radius: @border-radius-md; -@typography-strong-font-weight: @font-weight-lg; -@typography-a-color: @color-primary; -@typography-a-outline: none; -@typography-a-cursor: pointer; -@typography-a-color-hover-focus: @color-blue-l30; -@typography-a-color-active: @color-blue-d30; -@typography-title-margin-top: 1.2em; -@typography-title-margin-bottom: 0.5em; -@typography-title-font-weight: @font-weight-xl; -@typography-title-color: @color-black; -@typography-title-1-font-size: @font-size-3xl; -@typography-title-2-font-size: @font-size-2xl; -@typography-title-3-font-size: @font-size-xl; -@typography-title-4-font-size: @font-size-lg; -@typography-title-5-font-size: @font-size-md; -@typography-paragraph-margin-bottom: 1em; -@typography-list-margin: 0 0 1em 0; -@typography-list-padding: 0; -@typography-list-item-margin: 0 0 0 20px; -@typography-list-item-padding: 0 0 0 4px; -@typography-ul-list-style: circle; -@typography-sub-ul-list-style: disc; -@typography-ol-list-style: decimal; diff --git a/packages/components/typography/style/themes/seer.less b/packages/components/typography/style/themes/seer.less deleted file mode 100644 index 32bf707c1..000000000 --- a/packages/components/typography/style/themes/seer.less +++ /dev/null @@ -1,4 +0,0 @@ -@import '../../../style/themes/seer.less'; -@import './seer.variable.less'; - -@import '../index.less'; diff --git a/packages/components/typography/style/themes/seer.ts b/packages/components/typography/style/themes/seer.ts deleted file mode 100644 index 8f61ab076..000000000 --- a/packages/components/typography/style/themes/seer.ts +++ /dev/null @@ -1,3 +0,0 @@ -// style dependencies - -import './seer.less' diff --git a/packages/components/typography/style/themes/seer.variable.less b/packages/components/typography/style/themes/seer.variable.less deleted file mode 100644 index 498793af1..000000000 --- a/packages/components/typography/style/themes/seer.variable.less +++ /dev/null @@ -1 +0,0 @@ -@import './default.variable.less';