@sps-woodland/core 8.56.12 → 8.56.13
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/lib/action-bar/action-bar/ActionBar.ve.js +1 -1
- package/lib/action-bar/index.js +3 -59
- package/lib/action-bar/style.css +1 -2
- package/lib/add-to-list/add-to-list/AddToList.js +4 -4
- package/lib/add-to-list/add-to-list/AddToList.ve.js +32 -32
- package/lib/add-to-list/add-to-list/ItemsList.js +3 -3
- package/lib/add-to-list/add-to-list/ListItem.js +1 -1
- package/lib/add-to-list/index.js +1 -402
- package/lib/add-to-list/style.css +1 -2
- package/lib/buttons/button/Button.js +2 -2
- package/lib/buttons/button/Button.ve.js +56 -56
- package/lib/buttons/index.js +1 -285
- package/lib/buttons/style.css +1 -2
- package/lib/cards/card/Card.ve.js +1 -1
- package/lib/cards/card-footer/CardFooter.ve.js +1 -1
- package/lib/cards/card-header/CardHeader.ve.js +1 -1
- package/lib/cards/card-title/CardTitle.ve.js +1 -1
- package/lib/cards/index.js +5 -56
- package/lib/cards/style.css +4 -2
- package/lib/components/icon/Icon.ve.js +5 -5
- package/lib/content-row/content-row/ContentRow.js +2 -2
- package/lib/content-row/content-row/ContentRow.ve.js +37 -37
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +14 -14
- package/lib/content-row/index.js +5 -419
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +3 -3
- package/lib/content-row/style.css +3 -2
- package/lib/content-tiles/content-tile/ContentTile.js +3 -3
- package/lib/content-tiles/content-tile/ContentTile.ve.js +12 -12
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
- package/lib/content-tiles/index.js +3 -162
- package/lib/content-tiles/style.css +2 -2
- package/lib/dropdowns/dropdown/Dropdown.js +1 -1
- package/lib/dropdowns/dropdown/Dropdown.ve.js +13 -13
- package/lib/dropdowns/index.js +4 -180
- package/lib/dropdowns/option-list/Option.js +1 -1
- package/lib/dropdowns/option-list/Option.ve.js +1 -1
- package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
- package/lib/dropdowns/style.css +3 -2
- package/lib/feedback-block/FeedbackBlock.ve.js +18 -18
- package/lib/feedback-block/index.js +1 -138
- package/lib/feedback-block/style.css +1 -2
- package/lib/file-upload/file-upload/FileUpload.js +4 -4
- package/lib/file-upload/file-upload/FileUpload.ve.js +28 -28
- package/lib/file-upload/index.js +1 -398
- package/lib/file-upload/style.css +1 -2
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +20 -20
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
- package/lib/filter-tiles/index.js +3 -148
- package/lib/filter-tiles/style.css +2 -2
- package/lib/focused-task/focused-task/FocusedTask.ve.js +5 -5
- package/lib/focused-task/index.js +4 -137
- package/lib/focused-task/style.css +1 -2
- package/lib/growler/Growler.js +1 -1
- package/lib/growler/Growler.ve.js +10 -10
- package/lib/growler/Sonner.ve.js +8 -8
- package/lib/growler/index.js +4 -261
- package/lib/growler/style.css +2 -2
- package/lib/index.js +28 -28
- package/lib/index.umd.cjs +1 -1
- package/lib/insight-card/InsightCard.ve.js +54 -54
- package/lib/insight-card/index.js +3 -276
- package/lib/insight-card/style.css +1 -2
- package/lib/key-value-set/index.js +3 -105
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +2 -2
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +4 -4
- package/lib/key-value-set/style.css +2 -2
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +9 -9
- package/lib/list-bar/index.js +8 -321
- package/lib/list-bar/list-bar/ListBar.js +5 -5
- package/lib/list-bar/list-bar/ListBar.ve.js +4 -4
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +2 -2
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -1
- package/lib/list-bar/style.css +3 -2
- package/lib/matrix/index.js +7 -87
- package/lib/matrix/matrix/Matrix.ve.js +1 -1
- package/lib/matrix/style.css +1 -2
- package/lib/modal/index.js +4 -207
- package/lib/modal/modal/Modal.js +1 -1
- package/lib/modal/modal/Modal.ve.js +23 -23
- package/lib/modal/style.css +1 -2
- package/lib/page-title/index.js +4 -38
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
- package/lib/page-title/page-title/PageTitle.ve.js +1 -1
- package/lib/page-title/style.css +2 -2
- package/lib/photo/index.js +3 -180
- package/lib/photo/photo/Photo.ve.js +7 -7
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +4 -4
- package/lib/photo/style.css +2 -2
- package/lib/product-bar/index.js +5 -387
- package/lib/product-bar/product-bar/ProductBar.ve.js +17 -17
- package/lib/product-bar/product-bar-name/ProductBarName.js +2 -2
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +3 -3
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
- package/lib/product-bar/product-bar-tab/ProductBarTab.js +1 -1
- package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
- package/lib/product-bar/style.css +3 -2
- package/lib/product-bar-vertical/index.js +5 -250
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +22 -22
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +1 -1
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +2 -2
- package/lib/product-bar-vertical/style.css +1 -2
- package/lib/progress-indicators/index.js +4 -381
- package/lib/progress-indicators/progress-bar/ProgressBar.js +2 -2
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +26 -26
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +42 -42
- package/lib/progress-indicators/style.css +2 -2
- package/lib/rich-text-editor/index.js +1 -580
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +2 -2
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +7 -7
- package/lib/rich-text-editor/style.css +2 -2
- package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
- package/lib/scrollable-container/index.js +1 -22
- package/lib/scrollable-container/style.css +1 -2
- package/lib/side-nav/index.js +5 -202
- package/lib/side-nav/side-nav/SideNav.js +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +7 -7
- package/lib/side-nav/side-nav-section/SideNavSection.js +1 -1
- package/lib/side-nav/style.css +1 -2
- package/lib/sorting-header/caret/caret.ve.js +3 -3
- package/lib/sorting-header/index.js +3 -276
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +9 -9
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +6 -6
- package/lib/sorting-header/style.css +3 -2
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +4 -261
- package/lib/tabs/style.css +2 -2
- package/lib/tabs/tab/Tab.ve.js +21 -21
- package/lib/tabs/tabs/Tabs.js +2 -2
- package/lib/tabs/tabs/Tabs.ve.js +5 -5
- package/lib/tags/clickable-tag/ClickableTag.js +1 -1
- package/lib/tags/clickable-tag/ClickableTag.ve.js +21 -21
- package/lib/tags/index.js +4 -352
- package/lib/tags/split-tag/SplitTag.js +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +15 -15
- package/lib/tags/style.css +3 -2
- package/lib/tags/tag/Tag.ve.js +19 -19
- package/lib/zero-state/ZeroState.js +1 -1
- package/lib/zero-state/ZeroState.ve.js +11 -11
- package/lib/zero-state/index.js +1 -109
- package/lib/zero-state/style.css +1 -2
- package/package.json +11 -41
- package/scripts/family-stylesheets.mjs +100 -0
- package/scripts/watch-all.mjs +11 -24
- package/vite.subpaths.config.mjs +15 -4
- package/lib/action-bar/index.umd.cjs +0 -1
- package/lib/add-to-list/index.umd.cjs +0 -1
- package/lib/buttons/index.umd.cjs +0 -1
- package/lib/cards/index.umd.cjs +0 -1
- package/lib/content-row/index.umd.cjs +0 -1
- package/lib/content-tiles/index.umd.cjs +0 -1
- package/lib/core.css +0 -2
- package/lib/dropdowns/index.umd.cjs +0 -1
- package/lib/feedback-block/index.umd.cjs +0 -1
- package/lib/file-upload/index.umd.cjs +0 -1
- package/lib/filter-tiles/index.umd.cjs +0 -1
- package/lib/focused-task/index.umd.cjs +0 -1
- package/lib/growler/index.umd.cjs +0 -1
- package/lib/insight-card/index.umd.cjs +0 -1
- package/lib/key-value-set/index.umd.cjs +0 -1
- package/lib/list-bar/index.umd.cjs +0 -1
- package/lib/matrix/index.umd.cjs +0 -1
- package/lib/modal/index.umd.cjs +0 -1
- package/lib/page-title/index.umd.cjs +0 -1
- package/lib/photo/index.umd.cjs +0 -1
- package/lib/product-bar/index.umd.cjs +0 -1
- package/lib/product-bar-vertical/index.umd.cjs +0 -1
- package/lib/progress-indicators/index.umd.cjs +0 -1
- package/lib/rich-text-editor/index.umd.cjs +0 -13
- package/lib/scrollable-container/index.umd.cjs +0 -1
- package/lib/side-nav/index.umd.cjs +0 -1
- package/lib/sorting-header/index.umd.cjs +0 -1
- package/lib/tabs/index.umd.cjs +0 -1
- package/lib/tags/index.umd.cjs +0 -1
- package/lib/zero-state/index.umd.cjs +0 -1
- package/vite.action-bar.config.mjs +0 -43
- package/vite.add-to-list.config.mjs +0 -43
- package/vite.buttons.config.mjs +0 -44
- package/vite.cards.config.mjs +0 -43
- package/vite.content-row.config.mjs +0 -43
- package/vite.content-tiles.config.mjs +0 -43
- package/vite.dropdowns.config.mjs +0 -44
- package/vite.editable-table.config.mjs +0 -71
- package/vite.feedback-block.config.mjs +0 -43
- package/vite.file-upload.config.mjs +0 -43
- package/vite.filter-tiles.config.mjs +0 -43
- package/vite.focused-task.config.mjs +0 -43
- package/vite.growler.config.mjs +0 -44
- package/vite.insight-card.config.mjs +0 -43
- package/vite.key-value-set.config.mjs +0 -43
- package/vite.list-bar.config.mjs +0 -43
- package/vite.matrix.config.mjs +0 -43
- package/vite.modal.config.mjs +0 -43
- package/vite.page-title.config.mjs +0 -43
- package/vite.photo.config.mjs +0 -43
- package/vite.product-bar-vertical.config.mjs +0 -43
- package/vite.product-bar.config.mjs +0 -45
- package/vite.progress-indicators.config.mjs +0 -43
- package/vite.rich-text-editor.config.mjs +0 -51
- package/vite.scrollable-container.config.mjs +0 -43
- package/vite.side-nav.config.mjs +0 -43
- package/vite.sorting-header.config.mjs +0 -43
- package/vite.tabs.config.mjs +0 -46
- package/vite.tags.config.mjs +0 -43
- package/vite.zero-state.config.mjs +0 -43
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vite config for building scrollable-container CSS separately.
|
|
3
|
-
*/
|
|
4
|
-
import path from "node:path";
|
|
5
|
-
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
6
|
-
import { defineConfig } from "vite";
|
|
7
|
-
import pkg from "./package.json" with { type: "json" };
|
|
8
|
-
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
-
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
10
|
-
|
|
11
|
-
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
12
|
-
|
|
13
|
-
export default defineConfig(
|
|
14
|
-
withOutputGlobals({
|
|
15
|
-
plugins: [
|
|
16
|
-
vanillaExtractPlugin(
|
|
17
|
-
getVanillaExtractPluginProps({
|
|
18
|
-
packageName: pkg.name,
|
|
19
|
-
packageVersion,
|
|
20
|
-
})
|
|
21
|
-
),
|
|
22
|
-
],
|
|
23
|
-
build: {
|
|
24
|
-
lib: {
|
|
25
|
-
entry: path.resolve(__dirname, "src/scrollable-container/index.ts"),
|
|
26
|
-
name: "ScrollableContainer",
|
|
27
|
-
fileName: "index",
|
|
28
|
-
cssFileName: "style",
|
|
29
|
-
},
|
|
30
|
-
outDir: path.resolve(__dirname, "./lib/scrollable-container"),
|
|
31
|
-
emptyOutDir: false,
|
|
32
|
-
rollupOptions: {
|
|
33
|
-
external: [
|
|
34
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
-
/^@sps-woodland\//,
|
|
36
|
-
/^@spscommerce\//,
|
|
37
|
-
/^react/,
|
|
38
|
-
/^react-dom/,
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
})
|
|
43
|
-
);
|
package/vite.side-nav.config.mjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vite config for building side-nav CSS separately.
|
|
3
|
-
*/
|
|
4
|
-
import path from "node:path";
|
|
5
|
-
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
6
|
-
import { defineConfig } from "vite";
|
|
7
|
-
import pkg from "./package.json" with { type: "json" };
|
|
8
|
-
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
-
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
10
|
-
|
|
11
|
-
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
12
|
-
|
|
13
|
-
export default defineConfig(
|
|
14
|
-
withOutputGlobals({
|
|
15
|
-
plugins: [
|
|
16
|
-
vanillaExtractPlugin(
|
|
17
|
-
getVanillaExtractPluginProps({
|
|
18
|
-
packageName: pkg.name,
|
|
19
|
-
packageVersion,
|
|
20
|
-
})
|
|
21
|
-
),
|
|
22
|
-
],
|
|
23
|
-
build: {
|
|
24
|
-
lib: {
|
|
25
|
-
entry: path.resolve(__dirname, "src/side-nav/index.ts"),
|
|
26
|
-
name: "SideNav",
|
|
27
|
-
fileName: "index",
|
|
28
|
-
cssFileName: "style",
|
|
29
|
-
},
|
|
30
|
-
outDir: path.resolve(__dirname, "./lib/side-nav"),
|
|
31
|
-
emptyOutDir: false,
|
|
32
|
-
rollupOptions: {
|
|
33
|
-
external: [
|
|
34
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
-
/^@sps-woodland\//,
|
|
36
|
-
/^@spscommerce\//,
|
|
37
|
-
/^react/,
|
|
38
|
-
/^react-dom/,
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
})
|
|
43
|
-
);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vite config for building sorting-header CSS separately.
|
|
3
|
-
*/
|
|
4
|
-
import path from "node:path";
|
|
5
|
-
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
6
|
-
import { defineConfig } from "vite";
|
|
7
|
-
import pkg from "./package.json" with { type: "json" };
|
|
8
|
-
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
-
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
10
|
-
|
|
11
|
-
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
12
|
-
|
|
13
|
-
export default defineConfig(
|
|
14
|
-
withOutputGlobals({
|
|
15
|
-
plugins: [
|
|
16
|
-
vanillaExtractPlugin(
|
|
17
|
-
getVanillaExtractPluginProps({
|
|
18
|
-
packageName: pkg.name,
|
|
19
|
-
packageVersion,
|
|
20
|
-
})
|
|
21
|
-
),
|
|
22
|
-
],
|
|
23
|
-
build: {
|
|
24
|
-
lib: {
|
|
25
|
-
entry: path.resolve(__dirname, "src/sorting-header/index.ts"),
|
|
26
|
-
name: "SortingHeader",
|
|
27
|
-
fileName: "index",
|
|
28
|
-
cssFileName: "style",
|
|
29
|
-
},
|
|
30
|
-
outDir: path.resolve(__dirname, "./lib/sorting-header"),
|
|
31
|
-
emptyOutDir: false,
|
|
32
|
-
rollupOptions: {
|
|
33
|
-
external: [
|
|
34
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
-
/^@sps-woodland\//,
|
|
36
|
-
/^@spscommerce\//,
|
|
37
|
-
/^react/,
|
|
38
|
-
/^react-dom/,
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
})
|
|
43
|
-
);
|
package/vite.tabs.config.mjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vite config for building tabs CSS separately.
|
|
3
|
-
*/
|
|
4
|
-
import path from "node:path";
|
|
5
|
-
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
6
|
-
import { defineConfig } from "vite";
|
|
7
|
-
import pkg from "./package.json" with { type: "json" };
|
|
8
|
-
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
-
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
10
|
-
|
|
11
|
-
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
12
|
-
|
|
13
|
-
export default defineConfig(
|
|
14
|
-
withOutputGlobals({
|
|
15
|
-
plugins: [
|
|
16
|
-
vanillaExtractPlugin(
|
|
17
|
-
getVanillaExtractPluginProps({
|
|
18
|
-
packageName: pkg.name,
|
|
19
|
-
packageVersion,
|
|
20
|
-
})
|
|
21
|
-
),
|
|
22
|
-
],
|
|
23
|
-
build: {
|
|
24
|
-
lib: {
|
|
25
|
-
entry: path.resolve(__dirname, "src/tabs/index.ts"),
|
|
26
|
-
name: "Tabs",
|
|
27
|
-
fileName: "index",
|
|
28
|
-
cssFileName: "style",
|
|
29
|
-
},
|
|
30
|
-
outDir: path.resolve(__dirname, "./lib/tabs"),
|
|
31
|
-
emptyOutDir: false,
|
|
32
|
-
rollupOptions: {
|
|
33
|
-
external: [
|
|
34
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
-
/^@sps-woodland\//,
|
|
36
|
-
/^@spscommerce\//,
|
|
37
|
-
/^@react-aria\//,
|
|
38
|
-
/^@react-stately\//,
|
|
39
|
-
/^@react-types\//,
|
|
40
|
-
/^react/,
|
|
41
|
-
/^react-dom/,
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
})
|
|
46
|
-
);
|
package/vite.tags.config.mjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vite config for building tags CSS separately.
|
|
3
|
-
*/
|
|
4
|
-
import path from "node:path";
|
|
5
|
-
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
6
|
-
import { defineConfig } from "vite";
|
|
7
|
-
import pkg from "./package.json" with { type: "json" };
|
|
8
|
-
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
-
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
10
|
-
|
|
11
|
-
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
12
|
-
|
|
13
|
-
export default defineConfig(
|
|
14
|
-
withOutputGlobals({
|
|
15
|
-
plugins: [
|
|
16
|
-
vanillaExtractPlugin(
|
|
17
|
-
getVanillaExtractPluginProps({
|
|
18
|
-
packageName: pkg.name,
|
|
19
|
-
packageVersion,
|
|
20
|
-
})
|
|
21
|
-
),
|
|
22
|
-
],
|
|
23
|
-
build: {
|
|
24
|
-
lib: {
|
|
25
|
-
entry: path.resolve(__dirname, "src/tags/index.ts"),
|
|
26
|
-
name: "Tags",
|
|
27
|
-
fileName: "index",
|
|
28
|
-
cssFileName: "style",
|
|
29
|
-
},
|
|
30
|
-
outDir: path.resolve(__dirname, "./lib/tags"),
|
|
31
|
-
emptyOutDir: false,
|
|
32
|
-
rollupOptions: {
|
|
33
|
-
external: [
|
|
34
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
-
/^@sps-woodland\//,
|
|
36
|
-
/^@spscommerce\//,
|
|
37
|
-
/^react/,
|
|
38
|
-
/^react-dom/,
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
})
|
|
43
|
-
);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vite config for building zero-state CSS separately.
|
|
3
|
-
*/
|
|
4
|
-
import path from "node:path";
|
|
5
|
-
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
6
|
-
import { defineConfig } from "vite";
|
|
7
|
-
import pkg from "./package.json" with { type: "json" };
|
|
8
|
-
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
-
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
10
|
-
|
|
11
|
-
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
12
|
-
|
|
13
|
-
export default defineConfig(
|
|
14
|
-
withOutputGlobals({
|
|
15
|
-
plugins: [
|
|
16
|
-
vanillaExtractPlugin(
|
|
17
|
-
getVanillaExtractPluginProps({
|
|
18
|
-
packageName: pkg.name,
|
|
19
|
-
packageVersion,
|
|
20
|
-
})
|
|
21
|
-
),
|
|
22
|
-
],
|
|
23
|
-
build: {
|
|
24
|
-
lib: {
|
|
25
|
-
entry: path.resolve(__dirname, "src/zero-state/index.ts"),
|
|
26
|
-
name: "ZeroState",
|
|
27
|
-
fileName: "index",
|
|
28
|
-
cssFileName: "style",
|
|
29
|
-
},
|
|
30
|
-
outDir: path.resolve(__dirname, "./lib/zero-state"),
|
|
31
|
-
emptyOutDir: false,
|
|
32
|
-
rollupOptions: {
|
|
33
|
-
external: [
|
|
34
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
-
/^@sps-woodland\//,
|
|
36
|
-
/^@spscommerce\//,
|
|
37
|
-
/^react/,
|
|
38
|
-
/^react-dom/,
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
})
|
|
43
|
-
);
|