@genesislcap/foundation-ui 14.274.1 → 14.275.0

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.
@@ -825,7 +825,24 @@
825
825
  },
826
826
  {
827
827
  "name": "prefix",
828
- "default": "'foundation'"
828
+ "default": "'foundation'",
829
+ "description": "The prefix for the design system. By default, this is 'foundation'."
830
+ },
831
+ {
832
+ "name": "tokens",
833
+ "optional": true,
834
+ "type": {
835
+ "text": "any"
836
+ },
837
+ "description": "The tokens for the design system. By default, this is the foundation tokens."
838
+ },
839
+ {
840
+ "name": "values",
841
+ "optional": true,
842
+ "type": {
843
+ "text": "any"
844
+ },
845
+ "description": "The values for the design system. By default, this is the foundation values."
829
846
  }
830
847
  ],
831
848
  "description": "Provides a design system for the specified element either by returning one that was\nalready created for that element or creating one.",
@@ -896,219 +913,6 @@
896
913
  }
897
914
  ]
898
915
  },
899
- {
900
- "kind": "javascript-module",
901
- "path": "src/accordion/accordion.styles.ts",
902
- "declarations": [
903
- {
904
- "kind": "function",
905
- "name": "foundationAccordionStyles",
906
- "return": {
907
- "type": {
908
- "text": "ElementStyles"
909
- }
910
- },
911
- "parameters": [
912
- {
913
- "name": "context",
914
- "type": {
915
- "text": "ElementDefinitionContext"
916
- }
917
- },
918
- {
919
- "name": "definition",
920
- "type": {
921
- "text": "FoundationElementDefinition"
922
- }
923
- }
924
- ]
925
- }
926
- ],
927
- "exports": [
928
- {
929
- "kind": "js",
930
- "name": "foundationAccordionStyles",
931
- "declaration": {
932
- "name": "foundationAccordionStyles",
933
- "module": "src/accordion/accordion.styles.ts"
934
- }
935
- }
936
- ]
937
- },
938
- {
939
- "kind": "javascript-module",
940
- "path": "src/accordion/accordion.template.ts",
941
- "declarations": [
942
- {
943
- "kind": "function",
944
- "name": "foundationAccordionTemplate",
945
- "return": {
946
- "type": {
947
- "text": "ViewTemplate<Accordion>"
948
- }
949
- },
950
- "parameters": [
951
- {
952
- "name": "context",
953
- "type": {
954
- "text": "ElementDefinitionContext"
955
- }
956
- },
957
- {
958
- "name": "definition",
959
- "type": {
960
- "text": "FoundationElementDefinition"
961
- }
962
- }
963
- ]
964
- }
965
- ],
966
- "exports": [
967
- {
968
- "kind": "js",
969
- "name": "foundationAccordionTemplate",
970
- "declaration": {
971
- "name": "foundationAccordionTemplate",
972
- "module": "src/accordion/accordion.template.ts"
973
- }
974
- }
975
- ]
976
- },
977
- {
978
- "kind": "javascript-module",
979
- "path": "src/accordion/accordion.ts",
980
- "declarations": [
981
- {
982
- "kind": "class",
983
- "description": "",
984
- "name": "Accordion",
985
- "superclass": {
986
- "name": "FASTAccordion",
987
- "package": "@microsoft/fast-foundation"
988
- },
989
- "tagName": "%%prefix%%-accordion",
990
- "customElement": true
991
- },
992
- {
993
- "kind": "variable",
994
- "name": "foundationAccordionShadowOptions",
995
- "type": {
996
- "text": "ShadowRootInit"
997
- },
998
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
999
- },
1000
- {
1001
- "kind": "variable",
1002
- "name": "defaultAccordionConfig",
1003
- "type": {
1004
- "text": "object"
1005
- },
1006
- "default": "{}"
1007
- },
1008
- {
1009
- "kind": "variable",
1010
- "name": "foundationAccordion",
1011
- "description": "The Foundation Accordion",
1012
- "privacy": "public"
1013
- }
1014
- ],
1015
- "exports": [
1016
- {
1017
- "kind": "js",
1018
- "name": "Accordion",
1019
- "declaration": {
1020
- "name": "Accordion",
1021
- "module": "src/accordion/accordion.ts"
1022
- }
1023
- },
1024
- {
1025
- "kind": "js",
1026
- "name": "foundationAccordionShadowOptions",
1027
- "declaration": {
1028
- "name": "foundationAccordionShadowOptions",
1029
- "module": "src/accordion/accordion.ts"
1030
- }
1031
- },
1032
- {
1033
- "kind": "js",
1034
- "name": "defaultAccordionConfig",
1035
- "declaration": {
1036
- "name": "defaultAccordionConfig",
1037
- "module": "src/accordion/accordion.ts"
1038
- }
1039
- },
1040
- {
1041
- "kind": "js",
1042
- "name": "foundationAccordion",
1043
- "declaration": {
1044
- "name": "foundationAccordion",
1045
- "module": "src/accordion/accordion.ts"
1046
- }
1047
- }
1048
- ]
1049
- },
1050
- {
1051
- "kind": "javascript-module",
1052
- "path": "src/accordion/index.ts",
1053
- "declarations": [],
1054
- "exports": [
1055
- {
1056
- "kind": "js",
1057
- "name": "*",
1058
- "declaration": {
1059
- "name": "*",
1060
- "package": "./accordion.template"
1061
- }
1062
- },
1063
- {
1064
- "kind": "js",
1065
- "name": "*",
1066
- "declaration": {
1067
- "name": "*",
1068
- "package": "./accordion.styles"
1069
- }
1070
- },
1071
- {
1072
- "kind": "js",
1073
- "name": "*",
1074
- "declaration": {
1075
- "name": "*",
1076
- "package": "./accordion"
1077
- }
1078
- }
1079
- ]
1080
- },
1081
- {
1082
- "kind": "javascript-module",
1083
- "path": "src/_config/index.ts",
1084
- "declarations": [],
1085
- "exports": [
1086
- {
1087
- "kind": "js",
1088
- "name": "*",
1089
- "declaration": {
1090
- "name": "*",
1091
- "package": "./styles"
1092
- }
1093
- },
1094
- {
1095
- "kind": "js",
1096
- "name": "*",
1097
- "declaration": {
1098
- "name": "*",
1099
- "package": "./tokens"
1100
- }
1101
- },
1102
- {
1103
- "kind": "js",
1104
- "name": "*",
1105
- "declaration": {
1106
- "name": "*",
1107
- "package": "./values"
1108
- }
1109
- }
1110
- ]
1111
- },
1112
916
  {
1113
917
  "kind": "javascript-module",
1114
918
  "path": "src/accordion-item/accordion-item.styles.ts",
@@ -1503,6 +1307,37 @@
1503
1307
  }
1504
1308
  ]
1505
1309
  },
1310
+ {
1311
+ "kind": "javascript-module",
1312
+ "path": "src/_config/index.ts",
1313
+ "declarations": [],
1314
+ "exports": [
1315
+ {
1316
+ "kind": "js",
1317
+ "name": "*",
1318
+ "declaration": {
1319
+ "name": "*",
1320
+ "package": "./styles"
1321
+ }
1322
+ },
1323
+ {
1324
+ "kind": "js",
1325
+ "name": "*",
1326
+ "declaration": {
1327
+ "name": "*",
1328
+ "package": "./tokens"
1329
+ }
1330
+ },
1331
+ {
1332
+ "kind": "js",
1333
+ "name": "*",
1334
+ "declaration": {
1335
+ "name": "*",
1336
+ "package": "./values"
1337
+ }
1338
+ }
1339
+ ]
1340
+ },
1506
1341
  {
1507
1342
  "kind": "javascript-module",
1508
1343
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -2582,6 +2417,188 @@
2582
2417
  }
2583
2418
  ]
2584
2419
  },
2420
+ {
2421
+ "kind": "javascript-module",
2422
+ "path": "src/accordion/accordion.styles.ts",
2423
+ "declarations": [
2424
+ {
2425
+ "kind": "function",
2426
+ "name": "foundationAccordionStyles",
2427
+ "return": {
2428
+ "type": {
2429
+ "text": "ElementStyles"
2430
+ }
2431
+ },
2432
+ "parameters": [
2433
+ {
2434
+ "name": "context",
2435
+ "type": {
2436
+ "text": "ElementDefinitionContext"
2437
+ }
2438
+ },
2439
+ {
2440
+ "name": "definition",
2441
+ "type": {
2442
+ "text": "FoundationElementDefinition"
2443
+ }
2444
+ }
2445
+ ]
2446
+ }
2447
+ ],
2448
+ "exports": [
2449
+ {
2450
+ "kind": "js",
2451
+ "name": "foundationAccordionStyles",
2452
+ "declaration": {
2453
+ "name": "foundationAccordionStyles",
2454
+ "module": "src/accordion/accordion.styles.ts"
2455
+ }
2456
+ }
2457
+ ]
2458
+ },
2459
+ {
2460
+ "kind": "javascript-module",
2461
+ "path": "src/accordion/accordion.template.ts",
2462
+ "declarations": [
2463
+ {
2464
+ "kind": "function",
2465
+ "name": "foundationAccordionTemplate",
2466
+ "return": {
2467
+ "type": {
2468
+ "text": "ViewTemplate<Accordion>"
2469
+ }
2470
+ },
2471
+ "parameters": [
2472
+ {
2473
+ "name": "context",
2474
+ "type": {
2475
+ "text": "ElementDefinitionContext"
2476
+ }
2477
+ },
2478
+ {
2479
+ "name": "definition",
2480
+ "type": {
2481
+ "text": "FoundationElementDefinition"
2482
+ }
2483
+ }
2484
+ ]
2485
+ }
2486
+ ],
2487
+ "exports": [
2488
+ {
2489
+ "kind": "js",
2490
+ "name": "foundationAccordionTemplate",
2491
+ "declaration": {
2492
+ "name": "foundationAccordionTemplate",
2493
+ "module": "src/accordion/accordion.template.ts"
2494
+ }
2495
+ }
2496
+ ]
2497
+ },
2498
+ {
2499
+ "kind": "javascript-module",
2500
+ "path": "src/accordion/accordion.ts",
2501
+ "declarations": [
2502
+ {
2503
+ "kind": "class",
2504
+ "description": "",
2505
+ "name": "Accordion",
2506
+ "superclass": {
2507
+ "name": "FASTAccordion",
2508
+ "package": "@microsoft/fast-foundation"
2509
+ },
2510
+ "tagName": "%%prefix%%-accordion",
2511
+ "customElement": true
2512
+ },
2513
+ {
2514
+ "kind": "variable",
2515
+ "name": "foundationAccordionShadowOptions",
2516
+ "type": {
2517
+ "text": "ShadowRootInit"
2518
+ },
2519
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2520
+ },
2521
+ {
2522
+ "kind": "variable",
2523
+ "name": "defaultAccordionConfig",
2524
+ "type": {
2525
+ "text": "object"
2526
+ },
2527
+ "default": "{}"
2528
+ },
2529
+ {
2530
+ "kind": "variable",
2531
+ "name": "foundationAccordion",
2532
+ "description": "The Foundation Accordion",
2533
+ "privacy": "public"
2534
+ }
2535
+ ],
2536
+ "exports": [
2537
+ {
2538
+ "kind": "js",
2539
+ "name": "Accordion",
2540
+ "declaration": {
2541
+ "name": "Accordion",
2542
+ "module": "src/accordion/accordion.ts"
2543
+ }
2544
+ },
2545
+ {
2546
+ "kind": "js",
2547
+ "name": "foundationAccordionShadowOptions",
2548
+ "declaration": {
2549
+ "name": "foundationAccordionShadowOptions",
2550
+ "module": "src/accordion/accordion.ts"
2551
+ }
2552
+ },
2553
+ {
2554
+ "kind": "js",
2555
+ "name": "defaultAccordionConfig",
2556
+ "declaration": {
2557
+ "name": "defaultAccordionConfig",
2558
+ "module": "src/accordion/accordion.ts"
2559
+ }
2560
+ },
2561
+ {
2562
+ "kind": "js",
2563
+ "name": "foundationAccordion",
2564
+ "declaration": {
2565
+ "name": "foundationAccordion",
2566
+ "module": "src/accordion/accordion.ts"
2567
+ }
2568
+ }
2569
+ ]
2570
+ },
2571
+ {
2572
+ "kind": "javascript-module",
2573
+ "path": "src/accordion/index.ts",
2574
+ "declarations": [],
2575
+ "exports": [
2576
+ {
2577
+ "kind": "js",
2578
+ "name": "*",
2579
+ "declaration": {
2580
+ "name": "*",
2581
+ "package": "./accordion.template"
2582
+ }
2583
+ },
2584
+ {
2585
+ "kind": "js",
2586
+ "name": "*",
2587
+ "declaration": {
2588
+ "name": "*",
2589
+ "package": "./accordion.styles"
2590
+ }
2591
+ },
2592
+ {
2593
+ "kind": "js",
2594
+ "name": "*",
2595
+ "declaration": {
2596
+ "name": "*",
2597
+ "package": "./accordion"
2598
+ }
2599
+ }
2600
+ ]
2601
+ },
2585
2602
  {
2586
2603
  "kind": "javascript-module",
2587
2604
  "path": "src/anchored-region/anchor-region.template.ts",
@@ -4,8 +4,11 @@ export declare function createDesignSystemProxy(designSystem: DesignSystem): Des
4
4
  * Provides a design system for the specified element either by returning one that was
5
5
  * already created for that element or creating one.
6
6
  * @param element - The element to root the design system at. By default, this is the body.
7
+ * @param prefix - The prefix for the design system. By default, this is 'foundation'.
8
+ * @param tokens - The tokens for the design system. By default, this is the foundation tokens.
9
+ * @param values - The values for the design system. By default, this is the foundation values.
7
10
  * @returns A Foundation Design System
8
11
  * @public
9
12
  */
10
- export declare const provideDesignSystem: (element?: HTMLElement, prefix?: string) => Pick<DesignSystem, 'register'>;
13
+ export declare const provideDesignSystem: (element?: HTMLElement, prefix?: string, tokens?: any, values?: any) => Pick<DesignSystem, 'register'>;
11
14
  //# sourceMappingURL=provide-design-system.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"provide-design-system.d.ts","sourceRoot":"","sources":["../../src/provide-design-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAM1D,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,YAAY,gBAWjE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,aACpB,WAAW,sBAEpB,KAAK,YAAY,EAAE,UAAU,CAM/B,CAAC"}
1
+ {"version":3,"file":"provide-design-system.d.ts","sourceRoot":"","sources":["../../src/provide-design-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAM1D,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,YAAY,gBAWjE;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,aACpB,WAAW,4BAEZ,GAAG,WACH,GAAG,KACX,KAAK,YAAY,EAAE,UAAU,CAM/B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { DesignSystem } from '@microsoft/fast-foundation';
2
- import * as tokens from './_config/tokens';
3
- import * as values from './_config/values';
2
+ import * as foundationTokens from './_config/tokens';
3
+ import * as foundationValues from './_config/values';
4
4
  import { provideTokens } from './design-system-provider';
5
5
  export function createDesignSystemProxy(designSystem) {
6
6
  return new Proxy(designSystem, {
@@ -16,12 +16,15 @@ export function createDesignSystemProxy(designSystem) {
16
16
  * Provides a design system for the specified element either by returning one that was
17
17
  * already created for that element or creating one.
18
18
  * @param element - The element to root the design system at. By default, this is the body.
19
+ * @param prefix - The prefix for the design system. By default, this is 'foundation'.
20
+ * @param tokens - The tokens for the design system. By default, this is the foundation tokens.
21
+ * @param values - The values for the design system. By default, this is the foundation values.
19
22
  * @returns A Foundation Design System
20
23
  * @public
21
24
  */
22
- export const provideDesignSystem = (element, prefix = 'foundation') => {
25
+ export const provideDesignSystem = (element, prefix = 'foundation', tokens, values) => {
23
26
  if (element) {
24
- provideTokens(tokens, values, element);
27
+ provideTokens(tokens !== null && tokens !== void 0 ? tokens : foundationTokens, values !== null && values !== void 0 ? values : foundationValues, element);
25
28
  }
26
29
  const designSystem = DesignSystem.getOrCreate(element).withPrefix(prefix);
27
30
  return createDesignSystemProxy(designSystem);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-ui",
3
3
  "description": "Genesis Foundation UI",
4
- "version": "14.274.1",
4
+ "version": "14.275.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -83,13 +83,13 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@genesislcap/foundation-testing": "14.274.1",
87
- "@genesislcap/genx": "14.274.1",
88
- "@genesislcap/rollup-builder": "14.274.1",
89
- "@genesislcap/ts-builder": "14.274.1",
90
- "@genesislcap/uvu-playwright-builder": "14.274.1",
91
- "@genesislcap/vite-builder": "14.274.1",
92
- "@genesislcap/webpack-builder": "14.274.1",
86
+ "@genesislcap/foundation-testing": "14.275.0",
87
+ "@genesislcap/genx": "14.275.0",
88
+ "@genesislcap/rollup-builder": "14.275.0",
89
+ "@genesislcap/ts-builder": "14.275.0",
90
+ "@genesislcap/uvu-playwright-builder": "14.275.0",
91
+ "@genesislcap/vite-builder": "14.275.0",
92
+ "@genesislcap/webpack-builder": "14.275.0",
93
93
  "copyfiles": "^2.4.1",
94
94
  "rimraf": "^5.0.0",
95
95
  "rxjs": "^7.5.4"
@@ -100,15 +100,15 @@
100
100
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
101
101
  "@fortawesome/free-solid-svg-icons": "^6.2.1",
102
102
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
103
- "@genesislcap/expression-builder": "14.274.1",
104
- "@genesislcap/foundation-comms": "14.274.1",
105
- "@genesislcap/foundation-criteria": "14.274.1",
106
- "@genesislcap/foundation-errors": "14.274.1",
107
- "@genesislcap/foundation-events": "14.274.1",
108
- "@genesislcap/foundation-logger": "14.274.1",
109
- "@genesislcap/foundation-notifications": "14.274.1",
110
- "@genesislcap/foundation-user": "14.274.1",
111
- "@genesislcap/foundation-utils": "14.274.1",
103
+ "@genesislcap/expression-builder": "14.275.0",
104
+ "@genesislcap/foundation-comms": "14.275.0",
105
+ "@genesislcap/foundation-criteria": "14.275.0",
106
+ "@genesislcap/foundation-errors": "14.275.0",
107
+ "@genesislcap/foundation-events": "14.275.0",
108
+ "@genesislcap/foundation-logger": "14.275.0",
109
+ "@genesislcap/foundation-notifications": "14.275.0",
110
+ "@genesislcap/foundation-user": "14.275.0",
111
+ "@genesislcap/foundation-utils": "14.275.0",
112
112
  "@microsoft/fast-colors": "5.3.1",
113
113
  "@microsoft/fast-components": "2.30.6",
114
114
  "@microsoft/fast-element": "1.14.0",
@@ -130,5 +130,5 @@
130
130
  "access": "public"
131
131
  },
132
132
  "customElements": "dist/custom-elements.json",
133
- "gitHead": "a4925dc9d6c9da09f282cc5255ade13937cba2cd"
133
+ "gitHead": "ce2f043a6de1db6be728298be2baf76d4586f705"
134
134
  }