@pure-ds/core 0.5.60 → 0.6.1
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/dist/types/packages/pds-configurator/src/pds-home-content.d.ts +375 -0
- package/dist/types/packages/pds-configurator/src/pds-home-content.d.ts.map +1 -0
- package/dist/types/packages/pds-configurator/src/pds-home.d.ts +2 -0
- package/dist/types/packages/pds-configurator/src/pds-home.d.ts.map +1 -0
- package/dist/types/pds.config.d.ts +4 -8
- package/dist/types/pds.config.d.ts.map +1 -1
- package/dist/types/pds.d.ts +3 -1
- package/dist/types/public/assets/js/pds-manager.d.ts.map +1 -1
- package/dist/types/public/assets/js/pds.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-live-edit.d.ts +150 -0
- package/dist/types/public/assets/pds/components/pds-live-edit.d.ts.map +1 -0
- package/dist/types/public/assets/pds/components/pds-omnibox.d.ts +2 -0
- package/dist/types/public/assets/pds/components/pds-omnibox.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-richtext.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-theme.d.ts +5 -0
- package/dist/types/public/assets/pds/components/pds-theme.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-config.d.ts +457 -0
- package/dist/types/src/js/pds-core/pds-config.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-enhancers.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-live.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-ontology.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-start-helpers.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-theme-utils.d.ts +6 -0
- package/dist/types/src/js/pds-core/pds-theme-utils.d.ts.map +1 -0
- package/dist/types/src/js/pds.d.ts.map +1 -1
- package/package.json +1 -4
- package/packages/pds-cli/bin/templates/bootstrap/pds.config.js +9 -2
- package/public/assets/js/app.js +106 -5636
- package/public/assets/js/pds-manager.js +156 -156
- package/public/assets/js/pds.js +7 -7
- package/public/assets/pds/components/pds-live-edit.js +1555 -0
- package/public/assets/pds/components/pds-omnibox.js +558 -369
- package/public/assets/pds/components/pds-richtext.js +57 -7
- package/public/assets/pds/components/pds-theme.js +58 -0
- package/readme.md +2 -2
- package/src/js/pds-core/pds-config.js +705 -1
- package/src/js/pds-core/pds-enhancers.js +61 -4
- package/src/js/pds-core/pds-live.js +545 -437
- package/src/js/pds-core/pds-ontology.js +8 -0
- package/src/js/pds-core/pds-start-helpers.js +15 -0
- package/src/js/pds-core/pds-theme-utils.js +33 -0
- package/src/js/pds.d.ts +3 -1
- package/src/js/pds.js +22 -0
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export function validateDesignConfig(designConfig: any, { log, context }?: {
|
|
2
|
+
context?: string;
|
|
3
|
+
}): any[];
|
|
4
|
+
export function validateInitConfig(initConfig: any, { log, context }?: {
|
|
5
|
+
context?: string;
|
|
6
|
+
}): any[];
|
|
1
7
|
/**
|
|
2
8
|
* Default logging method - can be overridden at config root level
|
|
3
9
|
* This is exported separately so it can be added to the root config object
|
|
@@ -6,6 +12,11 @@
|
|
|
6
12
|
* @param {...any} data - additional data to log
|
|
7
13
|
*/
|
|
8
14
|
export function defaultLog(level: string, message: string, ...data: any[]): void;
|
|
15
|
+
/**
|
|
16
|
+
* Machine-readable config relations for live editing.
|
|
17
|
+
* Keys are design config paths (e.g., "colors.accent").
|
|
18
|
+
*/
|
|
19
|
+
export const PDS_CONFIG_RELATIONS: {};
|
|
9
20
|
/**
|
|
10
21
|
* Design system presets - pre-configured themes for quick starts.
|
|
11
22
|
* Expose as an object keyed by preset id.
|
|
@@ -113,6 +124,7 @@ export const presets: {
|
|
|
113
124
|
id: string;
|
|
114
125
|
name: string;
|
|
115
126
|
tags: string[];
|
|
127
|
+
themes: string[];
|
|
116
128
|
description: string;
|
|
117
129
|
colors: {
|
|
118
130
|
primary: string;
|
|
@@ -340,6 +352,7 @@ export const presets: {
|
|
|
340
352
|
"pastel-play": {
|
|
341
353
|
id: string;
|
|
342
354
|
name: string;
|
|
355
|
+
themes: string[];
|
|
343
356
|
description: string;
|
|
344
357
|
colors: {
|
|
345
358
|
primary: string;
|
|
@@ -754,4 +767,448 @@ export const presets: {
|
|
|
754
767
|
};
|
|
755
768
|
};
|
|
756
769
|
};
|
|
770
|
+
export type PDSDarkModeColorsConfig = {
|
|
771
|
+
/**
|
|
772
|
+
* - Affects dark surface palette and smart surface tokens.
|
|
773
|
+
*/
|
|
774
|
+
background?: string;
|
|
775
|
+
/**
|
|
776
|
+
* - Affects --color-dark-primary-* and interactive dark fills.
|
|
777
|
+
*/
|
|
778
|
+
primary?: string;
|
|
779
|
+
/**
|
|
780
|
+
* - Affects --color-dark-gray-* and dark borders/text.
|
|
781
|
+
*/
|
|
782
|
+
secondary?: string;
|
|
783
|
+
/**
|
|
784
|
+
* - Affects --color-dark-accent-* and accent interactions.
|
|
785
|
+
*/
|
|
786
|
+
accent?: string;
|
|
787
|
+
};
|
|
788
|
+
export type PDSColorsConfig = {
|
|
789
|
+
/**
|
|
790
|
+
* - Drives primary scale: --color-primary-50..900 and interactive tokens.
|
|
791
|
+
*/
|
|
792
|
+
primary?: string;
|
|
793
|
+
/**
|
|
794
|
+
* - Drives neutral scale: --color-gray-50..900.
|
|
795
|
+
*/
|
|
796
|
+
secondary?: string;
|
|
797
|
+
/**
|
|
798
|
+
* - Drives accent scale: --color-accent-50..900.
|
|
799
|
+
*/
|
|
800
|
+
accent?: string;
|
|
801
|
+
/**
|
|
802
|
+
* - Drives surface shades: --color-surface-* and smart surfaces.
|
|
803
|
+
*/
|
|
804
|
+
background?: string;
|
|
805
|
+
/**
|
|
806
|
+
* - Drives semantic success scale: --color-success-*.
|
|
807
|
+
*/
|
|
808
|
+
success?: string | null;
|
|
809
|
+
/**
|
|
810
|
+
* - Drives semantic warning scale: --color-warning-*.
|
|
811
|
+
*/
|
|
812
|
+
warning?: string | null;
|
|
813
|
+
/**
|
|
814
|
+
* - Drives semantic danger scale: --color-danger-*.
|
|
815
|
+
*/
|
|
816
|
+
danger?: string | null;
|
|
817
|
+
/**
|
|
818
|
+
* - Drives semantic info scale: --color-info-*.
|
|
819
|
+
*/
|
|
820
|
+
info?: string | null;
|
|
821
|
+
/**
|
|
822
|
+
* - Affects generated gradient scales.
|
|
823
|
+
*/
|
|
824
|
+
gradientStops?: number;
|
|
825
|
+
/**
|
|
826
|
+
* - Affects smart surface shadows (opacity).
|
|
827
|
+
*/
|
|
828
|
+
elevationOpacity?: number;
|
|
829
|
+
/**
|
|
830
|
+
* - Overrides dark mode palette generation.
|
|
831
|
+
*/
|
|
832
|
+
darkMode?: PDSDarkModeColorsConfig;
|
|
833
|
+
};
|
|
834
|
+
export type PDSTypographyConfig = {
|
|
835
|
+
/**
|
|
836
|
+
* - Affects --font-family-headings and heading styles.
|
|
837
|
+
*/
|
|
838
|
+
fontFamilyHeadings?: string;
|
|
839
|
+
/**
|
|
840
|
+
* - Affects --font-family-body and body text.
|
|
841
|
+
*/
|
|
842
|
+
fontFamilyBody?: string;
|
|
843
|
+
/**
|
|
844
|
+
* - Affects --font-family-mono and code styling.
|
|
845
|
+
*/
|
|
846
|
+
fontFamilyMono?: string;
|
|
847
|
+
/**
|
|
848
|
+
* - Sets base scale for --font-size-*.
|
|
849
|
+
*/
|
|
850
|
+
baseFontSize?: number;
|
|
851
|
+
/**
|
|
852
|
+
* - Controls modular scale for --font-size-*.
|
|
853
|
+
*/
|
|
854
|
+
fontScale?: number;
|
|
855
|
+
/**
|
|
856
|
+
* - Affects --font-weight-light.
|
|
857
|
+
*/
|
|
858
|
+
fontWeightLight?: string | number;
|
|
859
|
+
/**
|
|
860
|
+
* - Affects --font-weight-normal.
|
|
861
|
+
*/
|
|
862
|
+
fontWeightNormal?: string | number;
|
|
863
|
+
/**
|
|
864
|
+
* - Affects --font-weight-medium.
|
|
865
|
+
*/
|
|
866
|
+
fontWeightMedium?: string | number;
|
|
867
|
+
/**
|
|
868
|
+
* - Affects --font-weight-semibold.
|
|
869
|
+
*/
|
|
870
|
+
fontWeightSemibold?: string | number;
|
|
871
|
+
/**
|
|
872
|
+
* - Affects --font-weight-bold.
|
|
873
|
+
*/
|
|
874
|
+
fontWeightBold?: string | number;
|
|
875
|
+
/**
|
|
876
|
+
* - Affects --line-height-tight.
|
|
877
|
+
*/
|
|
878
|
+
lineHeightTight?: string | number;
|
|
879
|
+
/**
|
|
880
|
+
* - Affects --line-height-normal.
|
|
881
|
+
*/
|
|
882
|
+
lineHeightNormal?: string | number;
|
|
883
|
+
/**
|
|
884
|
+
* - Affects --line-height-relaxed.
|
|
885
|
+
*/
|
|
886
|
+
lineHeightRelaxed?: string | number;
|
|
887
|
+
/**
|
|
888
|
+
* - Affects --letter-spacing-tight.
|
|
889
|
+
*/
|
|
890
|
+
letterSpacingTight?: number;
|
|
891
|
+
/**
|
|
892
|
+
* - Affects --letter-spacing-normal.
|
|
893
|
+
*/
|
|
894
|
+
letterSpacingNormal?: number;
|
|
895
|
+
/**
|
|
896
|
+
* - Affects --letter-spacing-wide.
|
|
897
|
+
*/
|
|
898
|
+
letterSpacingWide?: number;
|
|
899
|
+
};
|
|
900
|
+
export type PDSSpatialRhythmConfig = {
|
|
901
|
+
/**
|
|
902
|
+
* - Generates spacing scale --spacing-1..N.
|
|
903
|
+
*/
|
|
904
|
+
baseUnit?: number;
|
|
905
|
+
/**
|
|
906
|
+
* - Reserved for derived spacing systems.
|
|
907
|
+
*/
|
|
908
|
+
scaleRatio?: number;
|
|
909
|
+
/**
|
|
910
|
+
* - Caps spacing tokens output.
|
|
911
|
+
*/
|
|
912
|
+
maxSpacingSteps?: number;
|
|
913
|
+
/**
|
|
914
|
+
* - Affects layout container sizing.
|
|
915
|
+
*/
|
|
916
|
+
containerMaxWidth?: number | string;
|
|
917
|
+
/**
|
|
918
|
+
* - Affects container padding tokens.
|
|
919
|
+
*/
|
|
920
|
+
containerPadding?: number;
|
|
921
|
+
/**
|
|
922
|
+
* - Affects input padding tokens.
|
|
923
|
+
*/
|
|
924
|
+
inputPadding?: number;
|
|
925
|
+
/**
|
|
926
|
+
* - Affects button padding tokens.
|
|
927
|
+
*/
|
|
928
|
+
buttonPadding?: number;
|
|
929
|
+
/**
|
|
930
|
+
* - Affects section spacing tokens.
|
|
931
|
+
*/
|
|
932
|
+
sectionSpacing?: number;
|
|
933
|
+
};
|
|
934
|
+
export type PDSShapeConfig = {
|
|
935
|
+
/**
|
|
936
|
+
* - Drives --radius-* scale.
|
|
937
|
+
*/
|
|
938
|
+
radiusSize?: string | number;
|
|
939
|
+
/**
|
|
940
|
+
* - Overrides radius scale base.
|
|
941
|
+
*/
|
|
942
|
+
customRadius?: string | number | null;
|
|
943
|
+
/**
|
|
944
|
+
* - Drives --border-width-* scale.
|
|
945
|
+
*/
|
|
946
|
+
borderWidth?: string | number;
|
|
947
|
+
};
|
|
948
|
+
export type PDSBehaviorConfig = {
|
|
949
|
+
/**
|
|
950
|
+
* - Drives --transition-* durations.
|
|
951
|
+
*/
|
|
952
|
+
transitionSpeed?: string | number;
|
|
953
|
+
/**
|
|
954
|
+
* - Drives --ease-* tokens.
|
|
955
|
+
*/
|
|
956
|
+
animationEasing?: string;
|
|
957
|
+
/**
|
|
958
|
+
* - Overrides transition durations.
|
|
959
|
+
*/
|
|
960
|
+
customTransitionSpeed?: number | null;
|
|
961
|
+
/**
|
|
962
|
+
* - Overrides easing curve.
|
|
963
|
+
*/
|
|
964
|
+
customEasing?: string | null;
|
|
965
|
+
/**
|
|
966
|
+
* - Affects focus ring thickness.
|
|
967
|
+
*/
|
|
968
|
+
focusRingWidth?: number;
|
|
969
|
+
/**
|
|
970
|
+
* - Affects focus ring opacity.
|
|
971
|
+
*/
|
|
972
|
+
focusRingOpacity?: number;
|
|
973
|
+
/**
|
|
974
|
+
* - Affects hover overlay opacity.
|
|
975
|
+
*/
|
|
976
|
+
hoverOpacity?: number;
|
|
977
|
+
};
|
|
978
|
+
export type PDSLayoutConfig = {
|
|
979
|
+
/**
|
|
980
|
+
* - Drives layout max width tokens.
|
|
981
|
+
*/
|
|
982
|
+
maxWidth?: number | string;
|
|
983
|
+
/**
|
|
984
|
+
* - Per-breakpoint max widths.
|
|
985
|
+
*/
|
|
986
|
+
maxWidths?: {
|
|
987
|
+
sm?: number | string;
|
|
988
|
+
md?: number | string;
|
|
989
|
+
lg?: number | string;
|
|
990
|
+
xl?: number | string;
|
|
991
|
+
};
|
|
992
|
+
/**
|
|
993
|
+
* - Drives layout container padding token.
|
|
994
|
+
*/
|
|
995
|
+
containerPadding?: number | string;
|
|
996
|
+
/**
|
|
997
|
+
* - Drives breakpoint tokens.
|
|
998
|
+
*/
|
|
999
|
+
breakpoints?: {
|
|
1000
|
+
sm?: number;
|
|
1001
|
+
md?: number;
|
|
1002
|
+
lg?: number;
|
|
1003
|
+
xl?: number;
|
|
1004
|
+
};
|
|
1005
|
+
/**
|
|
1006
|
+
* - Affects grid utilities.
|
|
1007
|
+
*/
|
|
1008
|
+
gridColumns?: number;
|
|
1009
|
+
/**
|
|
1010
|
+
* - Affects grid gap utilities.
|
|
1011
|
+
*/
|
|
1012
|
+
gridGutter?: number;
|
|
1013
|
+
/**
|
|
1014
|
+
* - Affects density tokens/utilities.
|
|
1015
|
+
*/
|
|
1016
|
+
densityCompact?: number;
|
|
1017
|
+
/**
|
|
1018
|
+
* - Affects density tokens/utilities.
|
|
1019
|
+
*/
|
|
1020
|
+
densityNormal?: number;
|
|
1021
|
+
/**
|
|
1022
|
+
* - Affects density tokens/utilities.
|
|
1023
|
+
*/
|
|
1024
|
+
densityComfortable?: number;
|
|
1025
|
+
/**
|
|
1026
|
+
* - Affects min-height tokens for buttons.
|
|
1027
|
+
*/
|
|
1028
|
+
buttonMinHeight?: number;
|
|
1029
|
+
/**
|
|
1030
|
+
* - Affects min-height tokens for inputs.
|
|
1031
|
+
*/
|
|
1032
|
+
inputMinHeight?: number;
|
|
1033
|
+
/**
|
|
1034
|
+
* - Affects layout shadow opacity.
|
|
1035
|
+
*/
|
|
1036
|
+
baseShadowOpacity?: number;
|
|
1037
|
+
/**
|
|
1038
|
+
* - Dark mode shadow opacity overrides.
|
|
1039
|
+
*/
|
|
1040
|
+
darkMode?: {
|
|
1041
|
+
baseShadowOpacity?: number;
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* - Toggles layout utilities generation.
|
|
1045
|
+
*/
|
|
1046
|
+
utilities?: Record<string, any>;
|
|
1047
|
+
/**
|
|
1048
|
+
* - Grid system configuration.
|
|
1049
|
+
*/
|
|
1050
|
+
gridSystem?: Record<string, any>;
|
|
1051
|
+
/**
|
|
1052
|
+
* - Affects container sizing token.
|
|
1053
|
+
*/
|
|
1054
|
+
containerMaxWidth?: number | string;
|
|
1055
|
+
};
|
|
1056
|
+
export type PDSLayersConfig = {
|
|
1057
|
+
/**
|
|
1058
|
+
* - Drives --shadow-* opacity.
|
|
1059
|
+
*/
|
|
1060
|
+
baseShadowOpacity?: number;
|
|
1061
|
+
/**
|
|
1062
|
+
* - Scales shadow blur.
|
|
1063
|
+
*/
|
|
1064
|
+
shadowBlurMultiplier?: number;
|
|
1065
|
+
/**
|
|
1066
|
+
* - Scales shadow offsets.
|
|
1067
|
+
*/
|
|
1068
|
+
shadowOffsetMultiplier?: number;
|
|
1069
|
+
/**
|
|
1070
|
+
* - Base depth style selection.
|
|
1071
|
+
*/
|
|
1072
|
+
shadowDepth?: string;
|
|
1073
|
+
/**
|
|
1074
|
+
* - Affects blur tokens.
|
|
1075
|
+
*/
|
|
1076
|
+
blurLight?: number;
|
|
1077
|
+
/**
|
|
1078
|
+
* - Affects blur tokens.
|
|
1079
|
+
*/
|
|
1080
|
+
blurMedium?: number;
|
|
1081
|
+
/**
|
|
1082
|
+
* - Affects blur tokens.
|
|
1083
|
+
*/
|
|
1084
|
+
blurHeavy?: number;
|
|
1085
|
+
/**
|
|
1086
|
+
* - Drives z-index token base.
|
|
1087
|
+
*/
|
|
1088
|
+
baseZIndex?: number;
|
|
1089
|
+
/**
|
|
1090
|
+
* - Drives z-index step scale.
|
|
1091
|
+
*/
|
|
1092
|
+
zIndexStep?: number;
|
|
1093
|
+
zIndexBase?: number;
|
|
1094
|
+
zIndexDropdown?: number;
|
|
1095
|
+
zIndexSticky?: number;
|
|
1096
|
+
zIndexFixed?: number;
|
|
1097
|
+
zIndexModal?: number;
|
|
1098
|
+
zIndexPopover?: number;
|
|
1099
|
+
zIndexTooltip?: number;
|
|
1100
|
+
zIndexNotification?: number;
|
|
1101
|
+
/**
|
|
1102
|
+
* - Dark mode shadow opacity overrides.
|
|
1103
|
+
*/
|
|
1104
|
+
darkMode?: {
|
|
1105
|
+
baseShadowOpacity?: number;
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
export type PDSIconsConfig = {
|
|
1109
|
+
/**
|
|
1110
|
+
* - Icon set name, affects icon resolution.
|
|
1111
|
+
*/
|
|
1112
|
+
set?: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* - Default icon weight.
|
|
1115
|
+
*/
|
|
1116
|
+
weight?: string;
|
|
1117
|
+
/**
|
|
1118
|
+
* - Default icon size token.
|
|
1119
|
+
*/
|
|
1120
|
+
defaultSize?: number;
|
|
1121
|
+
/**
|
|
1122
|
+
* - Icon size scale tokens.
|
|
1123
|
+
*/
|
|
1124
|
+
sizes?: Record<string, number | string>;
|
|
1125
|
+
/**
|
|
1126
|
+
* - Sprite URL used by icon component.
|
|
1127
|
+
*/
|
|
1128
|
+
spritePath?: string;
|
|
1129
|
+
/**
|
|
1130
|
+
* - External icon path for on-demand icons.
|
|
1131
|
+
*/
|
|
1132
|
+
externalPath?: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* - Icon allowlist for build.
|
|
1135
|
+
*/
|
|
1136
|
+
include?: Record<string, string[]>;
|
|
1137
|
+
};
|
|
1138
|
+
export type PDSEnhancer = {
|
|
1139
|
+
selector: string;
|
|
1140
|
+
description?: string;
|
|
1141
|
+
run: (element: Element) => void;
|
|
1142
|
+
};
|
|
1143
|
+
export type PDSAutoDefineConfig = {
|
|
1144
|
+
predefine?: string[];
|
|
1145
|
+
mapper?: (tag: string) => (string | undefined | null);
|
|
1146
|
+
enhancers?: PDSEnhancer[];
|
|
1147
|
+
scanExisting?: boolean;
|
|
1148
|
+
observeShadows?: boolean;
|
|
1149
|
+
patchAttachShadow?: boolean;
|
|
1150
|
+
debounceMs?: number;
|
|
1151
|
+
onError?: (error: any) => void;
|
|
1152
|
+
};
|
|
1153
|
+
export type PDSDesignConfig = {
|
|
1154
|
+
id?: string;
|
|
1155
|
+
name?: string;
|
|
1156
|
+
tags?: string[];
|
|
1157
|
+
description?: string;
|
|
1158
|
+
options?: Record<string, any>;
|
|
1159
|
+
form?: Record<string, any>;
|
|
1160
|
+
/**
|
|
1161
|
+
* - Affects tokens.colors and --color-* variables.
|
|
1162
|
+
*/
|
|
1163
|
+
colors?: PDSColorsConfig;
|
|
1164
|
+
/**
|
|
1165
|
+
* - Affects tokens.typography and --font-* variables.
|
|
1166
|
+
*/
|
|
1167
|
+
typography?: PDSTypographyConfig;
|
|
1168
|
+
/**
|
|
1169
|
+
* - Affects tokens.spacing and --spacing-* variables.
|
|
1170
|
+
*/
|
|
1171
|
+
spatialRhythm?: PDSSpatialRhythmConfig;
|
|
1172
|
+
/**
|
|
1173
|
+
* - Affects tokens.radius/borderWidths and --radius-* variables.
|
|
1174
|
+
*/
|
|
1175
|
+
shape?: PDSShapeConfig;
|
|
1176
|
+
/**
|
|
1177
|
+
* - Affects tokens.transitions and motion variables.
|
|
1178
|
+
*/
|
|
1179
|
+
behavior?: PDSBehaviorConfig;
|
|
1180
|
+
/**
|
|
1181
|
+
* - Affects tokens.layout and layout utilities.
|
|
1182
|
+
*/
|
|
1183
|
+
layout?: PDSLayoutConfig;
|
|
1184
|
+
/**
|
|
1185
|
+
* - Affects tokens.shadows/zIndex and layer effects.
|
|
1186
|
+
*/
|
|
1187
|
+
layers?: PDSLayersConfig;
|
|
1188
|
+
advanced?: Record<string, any>;
|
|
1189
|
+
a11y?: Record<string, any>;
|
|
1190
|
+
/**
|
|
1191
|
+
* - Affects tokens.icons and icon component behavior.
|
|
1192
|
+
*/
|
|
1193
|
+
icons?: PDSIconsConfig;
|
|
1194
|
+
components?: Record<string, any>;
|
|
1195
|
+
gap?: number;
|
|
1196
|
+
debug?: boolean;
|
|
1197
|
+
};
|
|
1198
|
+
export type PDSInitConfig = {
|
|
1199
|
+
mode?: string;
|
|
1200
|
+
preset?: string;
|
|
1201
|
+
design?: PDSDesignConfig;
|
|
1202
|
+
enhancers?: PDSEnhancer[] | Record<string, PDSEnhancer>;
|
|
1203
|
+
applyGlobalStyles?: boolean;
|
|
1204
|
+
manageTheme?: boolean;
|
|
1205
|
+
themeStorageKey?: string;
|
|
1206
|
+
preloadStyles?: boolean;
|
|
1207
|
+
criticalLayers?: string[];
|
|
1208
|
+
autoDefine?: PDSAutoDefineConfig;
|
|
1209
|
+
managerURL?: string;
|
|
1210
|
+
manager?: any;
|
|
1211
|
+
liveEdit?: boolean;
|
|
1212
|
+
log?: any;
|
|
1213
|
+
};
|
|
757
1214
|
//# sourceMappingURL=pds-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-config.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-config.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-config.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-config.js"],"names":[],"mappings":"AAwqBA;;UAUC;AAED;;UAUC;AAqnCD;;;;;;GAMG;AACH,kCAJW,MAAM,WACN,MAAM,WACH,GAAG,EAAA,QAchB;AAvqCD;;;GAGG;AACH,sCAGE;AA0BF;;;GAGG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;aACN,eAAe;gBACf,WAAW,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;wBAC3C,OAAO;kBACP,OAAO;sBACP,MAAM;oBACN,OAAO;qBACP,MAAM,EAAE;iBACR,mBAAmB;iBACnB,MAAM;cACN,GAAG;eACH,OAAO;UACP,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-enhancers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-enhancers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-enhancers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-enhancers.js"],"names":[],"mappings":"AA6fA;;;;;GAKG;AACH;;;IAGI;AA1eJ,mDAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-live.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-live.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-live.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-live.js"],"names":[],"mappings":"AAuSA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyPC;0BA5hByB,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-ontology.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-ontology.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-ontology.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-ontology.js"],"names":[],"mappings":"AAyvBA;;;;;;GAMG;AACH,iDALW,WAAW,iBAEnB;IAAwB,QAAQ,EAAxB,MAAM;CACd,GAAU,MAAO,IAAI,CAmKvB;AAED;;;GAGG;AACH,mCAFa,MAAM,EAAE,CAQpB;AAED;;;;;GAKG;AACH,sCAJW,MAAM,kBAEJ,KAAQ,CAoCpB;AAED;;;;GAIG;AACH,wCAHW,MAAM,OAUhB;AAED;;;GAGG;AACH,8BAFa,MAAM,EAAE,CAWpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-start-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-start-helpers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-start-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-start-helpers.js"],"names":[],"mappings":"AAqBA,sEAgCC;AAiBD,mDASC;AA6BD,8CAsBC;AAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwIC;AAGD;;;;;;;;EAmCC;AAED;;QASC;AAGD;;;;;GA+HC;AAhbM,qDAGI"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export function normalizePresetThemes(preset: any): any;
|
|
2
|
+
export function resolveThemePreference(preference: any, { preferDocument }?: {
|
|
3
|
+
preferDocument?: boolean;
|
|
4
|
+
}): string;
|
|
5
|
+
export function isPresetThemeCompatible(preset: any, themePreference: any): any;
|
|
6
|
+
//# sourceMappingURL=pds-theme-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pds-theme-utils.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-theme-utils.js"],"names":[],"mappings":"AAGA,wDAMC;AAED;;WAeC;AAED,gFAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../src/js/pds.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../src/js/pds.js"],"names":[],"mappings":"AA6LA,mDAsBC;AAGD,4DAuCC;;;;;;;;;;;;;;;;;;;;;;;;;cApOa,OAAO,4BAA4B,EAAE,WAAW;;;;iBAChD,CAAC,SAAS,CAAC,EAAE,OAAO,6BAA6B,EAAE,SAAS,KAAK,IAAI;;;;iBACrE,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,CAAC,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC;;;;qBAChG,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC;;;;sBAC7E,CAAC,GAAG,EAAC,MAAM,KAAK,aAAa;;AAW3C,+BAA+B;AAC/B,kBADW,MAAM,GAAG,OAAO,CACD;AArC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;GAIG;AACH;CAAoC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pure-ds/core",
|
|
3
3
|
"shortname": "pds",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"description": "Pure Design System - Why develop a Design System when you can generate one?",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"import": "./public/assets/js/pds.js"
|
|
40
40
|
},
|
|
41
41
|
"./pds-core": "./src/js/pds.js",
|
|
42
|
-
"./pds-configurator": "./public/assets/js/pds-configurator.js",
|
|
43
42
|
"./auto-define/*": "./public/auto-define/*"
|
|
44
43
|
},
|
|
45
44
|
"files": [
|
|
@@ -59,9 +58,7 @@
|
|
|
59
58
|
"packages/pds-cli/lib/",
|
|
60
59
|
"src/js/pds.d.ts",
|
|
61
60
|
"src/js/pds.js",
|
|
62
|
-
"src/js/pds-configurator.js",
|
|
63
61
|
"src/js/pds-core/",
|
|
64
|
-
"src/js/pds-configurator/",
|
|
65
62
|
"custom-elements.json",
|
|
66
63
|
"custom-elements-manifest.config.js",
|
|
67
64
|
"pds.html-data.json",
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// @ts-check
|
|
2
|
+
|
|
3
|
+
/** @typedef {import("@pure-ds/core").PDSInitConfig} PDSInitConfig */
|
|
4
|
+
|
|
5
|
+
const pdsGlobal = globalThis.PDS;
|
|
6
|
+
|
|
7
|
+
const standardPDSEnhancers = Array.isArray(pdsGlobal?.defaultEnhancers)
|
|
8
|
+
? pdsGlobal.defaultEnhancers
|
|
3
9
|
: [];
|
|
4
10
|
|
|
11
|
+
/** @type {PDSInitConfig} */
|
|
5
12
|
export const config = {
|
|
6
13
|
mode: "static",
|
|
7
14
|
preset: "social-feed",
|