Skip to content

Commit

Permalink
fix: remove re-exports (#3343)
Browse files Browse the repository at this point in the history
* fix: remove re-exports

* fix: remove unused deps
  • Loading branch information
gyfchong authored Mar 3, 2023
1 parent d3366d1 commit 1f928f1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 105 deletions.
45 changes: 1 addition & 44 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,55 +28,12 @@
},
"homepage": "https://github.com/cultureamp/kaizen-design-system#readme",
"dependencies": {
"@kaizen/a11y": "^1.7.2",
"@kaizen/brand": "^1.5.4",
"@kaizen/brand-moment": "^1.12.67",
"@kaizen/button": "^2.0.23",
"@kaizen/component-base": "^1.1.3",
"@kaizen/component-library": "^16.4.2",
"@kaizen/date-picker": "^5.20.0",
"@kaizen/design-tokens": "^10.3.1",
"@kaizen/draft-avatar": "^2.8.29",
"@kaizen/draft-badge": "^1.13.6",
"@kaizen/draft-card": "^3.2.6",
"@kaizen/draft-collapsible": "^3.5.22",
"@kaizen/draft-divider": "^2.2.6",
"@kaizen/draft-empty-state": "^5.3.29",
"@kaizen/draft-filter-menu-button": "^2.6.35",
"@kaizen/draft-form": "^10.3.3",
"@kaizen/draft-guidance-block": "^6.1.18",
"@kaizen/draft-hero-card": "^2.2.15",
"@kaizen/draft-illustration": "^6.0.20",
"@kaizen/draft-likert-scale-legacy": "^1.10.43",
"@kaizen/draft-menu": "^4.8.34",
"@kaizen/draft-modal": "^10.6.4",
"@kaizen/draft-page-layout": "^2.3.7",
"@kaizen/draft-popover": "^5.3.3",
"@kaizen/draft-select": "^2.10.24",
"@kaizen/draft-table": "^5.6.19",
"@kaizen/draft-tabs": "^5.2.29",
"@kaizen/draft-tag": "^3.4.3",
"@kaizen/draft-tile": "^5.9.29",
"@kaizen/draft-title-block-zen": "^7.9.9",
"@kaizen/draft-tooltip": "^5.4.31",
"@kaizen/draft-well": "^4.3.3",
"@kaizen/hosted-assets": "^2.0.1",
"@kaizen/loading-skeleton": "^2.0.2",
"@kaizen/loading-spinner": "^2.3.6",
"@kaizen/notification": "^1.4.3",
"@kaizen/pagination": "^1.6.29",
"@kaizen/progress-bar": "^2.3.22",
"@kaizen/responsive": "^1.8.5",
"@kaizen/rich-text-editor": "^1.19.33",
"@kaizen/select": "^6.13.10",
"@kaizen/split-button": "^1.3.36",
"@kaizen/tabs": "^1.5.33",
"@kaizen/tailwind": "^0.5.1",
"@kaizen/typography": "^2.3.6",
"classnames": "^2.3.2"
},
"devDependencies": {
"@deanc/esbuild-plugin-postcss": "^1.0.2",
"@kaizen/tailwind": "^0.5.1",
"autoprefixer": "^10.4.13",
"tailwindcss": "^3.2.7",
"tiny-glob": "^0.2.9",
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/__future__/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export * from "./ExampleComponent"

// Re-exports which need to be moved into this package
export * from "@kaizen/select"
export * from "@kaizen/tabs"
57 changes: 0 additions & 57 deletions packages/components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,59 +1,2 @@
// Components inside this package
export * from "./KaizenProvider"

// Re-exports which need to be moved into this package
export * from "@kaizen/a11y"
export * from "@kaizen/brand"
export * from "@kaizen/brand-moment"
export * from "@kaizen/button"
export * from "@kaizen/component-base"
export { Icon, Box, Spacing } from "@kaizen/component-library"
export * from "@kaizen/date-picker"
export * from "@kaizen/draft-avatar"
export * from "@kaizen/draft-badge"
export * from "@kaizen/draft-card"
export * from "@kaizen/draft-collapsible"
export * from "@kaizen/draft-divider"
export * from "@kaizen/draft-empty-state"
export * from "@kaizen/draft-filter-menu-button"
export * from "@kaizen/draft-form"
export * from "@kaizen/draft-guidance-block"
export * from "@kaizen/draft-hero-card"
export * from "@kaizen/draft-illustration"
export * from "@kaizen/draft-likert-scale-legacy"
export * from "@kaizen/draft-menu"
export * from "@kaizen/draft-modal"
export * from "@kaizen/draft-page-layout"
export * from "@kaizen/draft-popover"
export * from "@kaizen/draft-table"
export * from "@kaizen/draft-tabs"
export * from "@kaizen/draft-tag"
export * from "@kaizen/draft-tile"
export * from "@kaizen/draft-title-block-zen"
export * from "@kaizen/draft-tooltip"
export * from "@kaizen/draft-well"
export * from "@kaizen/hosted-assets"
export * from "@kaizen/loading-skeleton"
export * from "@kaizen/loading-spinner"
export * from "@kaizen/notification"
export * from "@kaizen/pagination"
export * from "@kaizen/progress-bar"
export * from "@kaizen/responsive"
export * from "@kaizen/rich-text-editor"
export * from "@kaizen/split-button"
export * from "@kaizen/typography"

// Special cases

// Part of design tokens is already exported from KaizenProvider
export {
makeCssVariableDefinitionsMap,
makeCSSVariableTheme,
mapLeafsOfObject,
} from "@kaizen/design-tokens"
// --- //

// ValueType naming clash with @kaizen/date-picker requires us to export individual parts of draft-select
export { Select, AsyncSelect } from "@kaizen/draft-select"
export type { ValueType as SelectValueType } from "@kaizen/draft-select"
// --- //

0 comments on commit 1f928f1

Please sign in to comment.