@aglyn/shared-data-enums 1.0.0-beta.143

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.
Files changed (42) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/package.json +39 -0
  4. package/src/enums.d.ts +26 -0
  5. package/src/enums.js +27 -0
  6. package/src/enums.js.map +1 -0
  7. package/src/index.d.ts +17 -0
  8. package/src/index.js +18 -0
  9. package/src/index.js.map +1 -0
  10. package/src/lib/aglyn-applications.d.ts +39 -0
  11. package/src/lib/aglyn-applications.js +53 -0
  12. package/src/lib/aglyn-applications.js.map +1 -0
  13. package/src/lib/aglyn.d.ts +49 -0
  14. package/src/lib/aglyn.js +86 -0
  15. package/src/lib/aglyn.js.map +1 -0
  16. package/src/lib/breakpoint-span.d.ts +66 -0
  17. package/src/lib/breakpoint-span.js +117 -0
  18. package/src/lib/breakpoint-span.js.map +1 -0
  19. package/src/lib/data-table.d.ts +107 -0
  20. package/src/lib/data-table.js +225 -0
  21. package/src/lib/data-table.js.map +1 -0
  22. package/src/lib/firebase-auth.d.ts +73 -0
  23. package/src/lib/firebase-auth.js +178 -0
  24. package/src/lib/firebase-auth.js.map +1 -0
  25. package/src/lib/global.d.ts +32 -0
  26. package/src/lib/global.js +33 -0
  27. package/src/lib/global.js.map +1 -0
  28. package/src/lib/http.d.ts +145 -0
  29. package/src/lib/http.js +155 -0
  30. package/src/lib/http.js.map +1 -0
  31. package/src/lib/icons.d.ts +108 -0
  32. package/src/lib/icons.js +130 -0
  33. package/src/lib/icons.js.map +1 -0
  34. package/src/lib/palette-token-css-var.d.ts +111 -0
  35. package/src/lib/palette-token-css-var.js +221 -0
  36. package/src/lib/palette-token-css-var.js.map +1 -0
  37. package/src/lib/styles.d.ts +170 -0
  38. package/src/lib/styles.js +315 -0
  39. package/src/lib/styles.js.map +1 -0
  40. package/src/lib/sx-property-aliases.d.ts +129 -0
  41. package/src/lib/sx-property-aliases.js +231 -0
  42. package/src/lib/sx-property-aliases.js.map +1 -0
@@ -0,0 +1,108 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export declare const ICON_VARIANT_ARRAY: import("@aglyn/shared-data-mdi").Icon;
18
+ export declare const ICON_VARIANT_COLLECTION: import("@aglyn/shared-data-mdi").Icon;
19
+ export declare const ICON_VARIANT_DATE: import("@aglyn/shared-data-mdi").Icon;
20
+ export declare const ICON_VARIANT_DATE_TIME: import("@aglyn/shared-data-mdi").Icon;
21
+ export declare const ICON_VARIANT_DOCUMENT: import("@aglyn/shared-data-mdi").Icon;
22
+ export declare const ICON_VARIANT_COMPONENT: import("@aglyn/shared-data-mdi").Icon;
23
+ export declare const ICON_VARIANT_ELEMENT: import("@aglyn/shared-data-mdi").Icon;
24
+ export declare const ICON_VARIANT_IDENTIFIER: import("@aglyn/shared-data-mdi").Icon;
25
+ export declare const ICON_VARIANT_OBJECT: import("@aglyn/shared-data-mdi").Icon;
26
+ export declare const ICON_VARIANT_PRIMARY_KEY: import("@aglyn/shared-data-mdi").Icon;
27
+ export declare const ICON_VARIANT_PROPERTY: import("@aglyn/shared-data-mdi").Icon;
28
+ export declare const ICON_VARIANT_STRING: import("@aglyn/shared-data-mdi").Icon;
29
+ export declare const ICON_VARIANT_TEXT: import("@aglyn/shared-data-mdi").Icon;
30
+ export declare const ICON_VARIANT_FLEX_START: import("@aglyn/shared-data-mdi").Icon;
31
+ export declare const ICON_VARIANT_FLEX_END: import("@aglyn/shared-data-mdi").Icon;
32
+ export declare const ICON_VARIANT_FLEX_CENTER: import("@aglyn/shared-data-mdi").Icon;
33
+ export declare const ICON_VARIANT_FLEX_SPACE_EVENLY: import("@aglyn/shared-data-mdi").Icon;
34
+ export declare const ICON_VARIANT_FLEX_SPACE_AROUND: import("@aglyn/shared-data-mdi").Icon;
35
+ export declare const ICON_VARIANT_FLEX_SPACE_BETWEEN: import("@aglyn/shared-data-mdi").Icon;
36
+ export declare const ICON_VARIANT_CSS_DEFAULT: import("@aglyn/shared-data-mdi").Icon;
37
+ export declare const ICON_VARIANT_CSS_INHERIT: import("@aglyn/shared-data-mdi").Icon;
38
+ export declare const ICON_VARIANT_ALIGN_LEFT: import("@aglyn/shared-data-mdi").Icon;
39
+ export declare const ICON_VARIANT_ALIGN_CENTER: import("@aglyn/shared-data-mdi").Icon;
40
+ export declare const ICON_VARIANT_ALIGN_RIGHT: import("@aglyn/shared-data-mdi").Icon;
41
+ export declare const ICON_VARIANT_ALIGN_JUSTIFY: import("@aglyn/shared-data-mdi").Icon;
42
+ export declare const ICON_VARIANT_CLEAR: import("@aglyn/shared-data-mdi").Icon;
43
+ export declare const ICON_VARIANT_CLOSE: import("@aglyn/shared-data-mdi").Icon;
44
+ export declare const ICON_VARIANT_COLLAPSIBLE_CLOSE: import("@aglyn/shared-data-mdi").Icon;
45
+ export declare const ICON_VARIANT_COLLAPSIBLE_OPEN: import("@aglyn/shared-data-mdi").Icon;
46
+ export declare const ICON_VARIANT_DOCK_BOTTOM_TOGGLE: import("@aglyn/shared-data-mdi").Icon;
47
+ export declare const ICON_VARIANT_DOCK_LEFT_TOGGLE: import("@aglyn/shared-data-mdi").Icon;
48
+ export declare const ICON_VARIANT_DOCK_RIGHT_TOGGLE: import("@aglyn/shared-data-mdi").Icon;
49
+ export declare const ICON_VARIANT_FILTER: import("@aglyn/shared-data-mdi").Icon;
50
+ export declare const ICON_VARIANT_LEFT: import("@aglyn/shared-data-mdi").Icon;
51
+ export declare const ICON_VARIANT_CHEVRON_DOWN: import("@aglyn/shared-data-mdi").Icon;
52
+ export declare const ICON_VARIANT_MENU_DOWN: import("@aglyn/shared-data-mdi").Icon;
53
+ export declare const ICON_VARIANT_MODIFY_ADD: import("@aglyn/shared-data-mdi").Icon;
54
+ export declare const ICON_VARIANT_MODIFY_COPY: import("@aglyn/shared-data-mdi").Icon;
55
+ export declare const ICON_VARIANT_MODIFY_DELETE: import("@aglyn/shared-data-mdi").Icon;
56
+ export declare const ICON_VARIANT_MODIFY_DRAG: import("@aglyn/shared-data-mdi").Icon;
57
+ export declare const ICON_VARIANT_MODIFY_DUPLICATE: import("@aglyn/shared-data-mdi").Icon;
58
+ export declare const ICON_VARIANT_MODIFY_EDIT: import("@aglyn/shared-data-mdi").Icon;
59
+ export declare const ICON_VARIANT_MODIFY_MODE_REARRANGE: import("@aglyn/shared-data-mdi").Icon;
60
+ export declare const ICON_VARIANT_MODIFY_MODE_SELECT: import("@aglyn/shared-data-mdi").Icon;
61
+ export declare const ICON_VARIANT_MODIFY_MOVE_DOWN: import("@aglyn/shared-data-mdi").Icon;
62
+ export declare const ICON_VARIANT_MODIFY_MOVE_IN: import("@aglyn/shared-data-mdi").Icon;
63
+ export declare const ICON_VARIANT_MODIFY_MOVE_OUT: import("@aglyn/shared-data-mdi").Icon;
64
+ export declare const ICON_VARIANT_MODIFY_MOVE_UP: import("@aglyn/shared-data-mdi").Icon;
65
+ export declare const ICON_VARIANT_MODIFY_PASTE: import("@aglyn/shared-data-mdi").Icon;
66
+ export declare const ICON_VARIANT_MODIFY_REDO: import("@aglyn/shared-data-mdi").Icon;
67
+ export declare const ICON_VARIANT_MODIFY_SAVE: import("@aglyn/shared-data-mdi").Icon;
68
+ export declare const ICON_VARIANT_MODIFY_UNDO: import("@aglyn/shared-data-mdi").Icon;
69
+ export declare const ICON_VARIANT_NEW_TAB: import("@aglyn/shared-data-mdi").Icon;
70
+ export declare const ICON_VARIANT_RIGHT: import("@aglyn/shared-data-mdi").Icon;
71
+ export declare const ICON_VARIANT_SEARCH: import("@aglyn/shared-data-mdi").Icon;
72
+ export declare const ICON_VARIANT_SELECT_PARENT: import("@aglyn/shared-data-mdi").Icon;
73
+ export declare const ICON_VARIANT_SHOW_DETAIL: import("@aglyn/shared-data-mdi").Icon;
74
+ export declare const ICON_VARIANT_SHOW_MORE: import("@aglyn/shared-data-mdi").Icon;
75
+ export declare const ICON_VARIANT_SHOW_MORE_VERTICAL: import("@aglyn/shared-data-mdi").Icon;
76
+ export declare const ICON_VARIANT_APP_PREFERENCES: import("@aglyn/shared-data-mdi").Icon;
77
+ export declare const ICON_VARIANT_APP_SETTINGS: import("@aglyn/shared-data-mdi").Icon;
78
+ export declare const ICON_VARIANT_BESIGNER: import("@aglyn/shared-data-mdi").Icon;
79
+ export declare const ICON_VARIANT_HOME: import("@aglyn/shared-data-mdi").Icon;
80
+ export declare const ICON_VARIANT_ORGANIZATION: import("@aglyn/shared-data-mdi").Icon;
81
+ export declare const ICON_VARIANT_PAGES: import("@aglyn/shared-data-mdi").Icon;
82
+ export declare const ICON_VARIANT_SIGN_IN: import("@aglyn/shared-data-mdi").Icon;
83
+ export declare const ICON_VARIANT_SIGN_OUT: import("@aglyn/shared-data-mdi").Icon;
84
+ export declare const ICON_VARIANT_USER_SETTINGS: import("@aglyn/shared-data-mdi").Icon;
85
+ export declare const ICON_VARIANT_HOST_GROUP: import("@aglyn/shared-data-mdi").Icon;
86
+ export declare const ICON_VARIANT_HOST: import("@aglyn/shared-data-mdi").Icon;
87
+ export declare const ICON_VARIANT_VISIBILITY_SHOWN: import("@aglyn/shared-data-mdi").Icon;
88
+ export declare const ICON_VARIANT_VISIBILITY_HIDDEN: import("@aglyn/shared-data-mdi").Icon;
89
+ export declare const ICON_VARIANT_ELEMENT_BROWSE: import("@aglyn/shared-data-mdi").Icon;
90
+ export declare const ICON_VARIANT_ELEMENT_DETAILS: import("@aglyn/shared-data-mdi").Icon;
91
+ export declare const ICON_VARIANT_ELEMENT_PROPERTIES: import("@aglyn/shared-data-mdi").Icon;
92
+ export declare const ICON_VARIANT_ELEMENT_INTERACTIONS: import("@aglyn/shared-data-mdi").Icon;
93
+ export declare const ICON_VARIANT_ELEMENT_STYLES: import("@aglyn/shared-data-mdi").Icon;
94
+ export declare const ICON_VARIANT_ELEMENT_TREE_VIEW: import("@aglyn/shared-data-mdi").Icon;
95
+ export declare const ICON_VARIANT_THEME_DARK: import("@aglyn/shared-data-mdi").Icon;
96
+ export declare const ICON_VARIANT_THEME_LIGHT: import("@aglyn/shared-data-mdi").Icon;
97
+ export declare const ICON_VARIANT_THEME_SYSTEM: import("@aglyn/shared-data-mdi").Icon;
98
+ export declare const ICON_VARIANT_FLUID_RESPONSIVE: import("@aglyn/shared-data-mdi").Icon;
99
+ export declare const ICON_VARIANT_LAPTOP: import("@aglyn/shared-data-mdi").Icon;
100
+ export declare const ICON_VARIANT_MOBILE: import("@aglyn/shared-data-mdi").Icon;
101
+ export declare const ICON_VARIANT_MONITOR_LARGE: import("@aglyn/shared-data-mdi").Icon;
102
+ export declare const ICON_VARIANT_MONITOR_SMALL: import("@aglyn/shared-data-mdi").Icon;
103
+ export declare const ICON_VARIANT_TABLET: import("@aglyn/shared-data-mdi").Icon;
104
+ export declare const ICON_VARIANT_SYMBOL_CONFIRMED: import("@aglyn/shared-data-mdi").Icon;
105
+ export declare const ICON_VARIANT_SYMBOL_FLAG: import("@aglyn/shared-data-mdi").Icon;
106
+ export declare const ICON_VARIANT_SYMBOL_MAIL: import("@aglyn/shared-data-mdi").Icon;
107
+ export declare const ICON_VARIANT_SYMBOL_MINUS: import("@aglyn/shared-data-mdi").Icon;
108
+ export declare const ICON_VARIANT_SYMBOL_SECURE: import("@aglyn/shared-data-mdi").Icon;
@@ -0,0 +1,130 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ import { mdiAccountSettings, mdiAlignHorizontalDistribute, mdiAlignVerticalCenter, mdiAlphabetical, mdiArrowDown, mdiArrowExpandHorizontal, mdiArrowLeft, mdiArrowRight, mdiArrowRightBottom, mdiArrowULeftTop, mdiArrowUp, mdiBookVariant, mdiBookVariantMultiple, mdiCalendar, mdiCalendarClock, mdiCellphone, mdiCheck, mdiChevronDown, mdiChevronRight, mdiClose, mdiCodeArray, mdiCodeBracesBox, mdiCodeString, mdiCog, mdiContentCopy, mdiContentDuplicate, mdiContentPaste, mdiContentSave, mdiCubeOutline, mdiCursorDefault, mdiCursorMove, mdiDockBottom, mdiDockLeft, mdiDockRight, mdiDomain, mdiDotsHorizontal, mdiDotsVertical, mdiDrag, mdiFileTree, mdiFilter, mdiEmailOutline, mdiEyeOffOutline, mdiEyeOutline, mdiFlagVariant, mdiFormatAlignCenter, mdiFormatAlignJustify, mdiFormatAlignLeft, mdiFormatAlignRight, mdiFormatHorizontalAlignCenter, mdiFormatHorizontalAlignLeft, mdiFormatHorizontalAlignRight, mdiFormatIndentDecrease, mdiFormatIndentIncrease, mdiFormDropdown, mdiGroup, mdiHomeVariant, mdiIdentifier, mdiInformationVariant, mdiKeyVariant, mdiLaptop, mdiLoginVariant, mdiLogoutVariant, mdiMagnify, mdiMathCompass, mdiMenuDown, mdiMinus, mdiMonitor, mdiMonitorSmall, mdiOpenInNew, mdiPageNextOutline, mdiGestureTapHold, mdiPaletteOutline, mdiPencil, mdiPlus, mdiRedo, mdiShieldLock, mdiTablet, mdiThemeLightDark, mdiTune, mdiUndo, mdiVariable, mdiVectorSquare, mdiWeatherNight, mdiWeb, mdiWebBox, mdiWhiteBalanceSunny, mdiWindowClose } from "@aglyn/shared-data-mdi";
17
+ // Data-Type
18
+ export const ICON_VARIANT_ARRAY = mdiCodeArray;
19
+ export const ICON_VARIANT_COLLECTION = mdiBookVariantMultiple;
20
+ export const ICON_VARIANT_DATE = mdiCalendar;
21
+ export const ICON_VARIANT_DATE_TIME = mdiCalendarClock;
22
+ export const ICON_VARIANT_DOCUMENT = mdiBookVariant;
23
+ export const ICON_VARIANT_COMPONENT = mdiCubeOutline;
24
+ export const ICON_VARIANT_ELEMENT = mdiVectorSquare;
25
+ export const ICON_VARIANT_IDENTIFIER = mdiIdentifier;
26
+ export const ICON_VARIANT_OBJECT = mdiCodeBracesBox;
27
+ export const ICON_VARIANT_PRIMARY_KEY = mdiKeyVariant;
28
+ export const ICON_VARIANT_PROPERTY = mdiVariable;
29
+ export const ICON_VARIANT_STRING = mdiCodeString;
30
+ export const ICON_VARIANT_TEXT = mdiAlphabetical;
31
+ // Flexbox
32
+ export const ICON_VARIANT_FLEX_START = mdiFormatHorizontalAlignRight;
33
+ export const ICON_VARIANT_FLEX_END = mdiFormatHorizontalAlignLeft;
34
+ export const ICON_VARIANT_FLEX_CENTER = mdiFormatHorizontalAlignCenter;
35
+ export const ICON_VARIANT_FLEX_SPACE_EVENLY = mdiAlignHorizontalDistribute;
36
+ export const ICON_VARIANT_FLEX_SPACE_AROUND = mdiAlignHorizontalDistribute;
37
+ export const ICON_VARIANT_FLEX_SPACE_BETWEEN = mdiAlignVerticalCenter;
38
+ // Global CSS Values
39
+ export const ICON_VARIANT_CSS_DEFAULT = mdiMinus;
40
+ export const ICON_VARIANT_CSS_INHERIT = mdiArrowRightBottom;
41
+ export const ICON_VARIANT_ALIGN_LEFT = mdiFormatAlignLeft;
42
+ export const ICON_VARIANT_ALIGN_CENTER = mdiFormatAlignCenter;
43
+ export const ICON_VARIANT_ALIGN_RIGHT = mdiFormatAlignRight;
44
+ export const ICON_VARIANT_ALIGN_JUSTIFY = mdiFormatAlignJustify;
45
+ // Action + Navigation
46
+ export const ICON_VARIANT_CLEAR = mdiClose;
47
+ export const ICON_VARIANT_CLOSE = mdiClose;
48
+ export const ICON_VARIANT_COLLAPSIBLE_CLOSE = mdiChevronDown;
49
+ export const ICON_VARIANT_COLLAPSIBLE_OPEN = mdiChevronRight;
50
+ export const ICON_VARIANT_DOCK_BOTTOM_TOGGLE = mdiDockBottom;
51
+ export const ICON_VARIANT_DOCK_LEFT_TOGGLE = mdiDockLeft;
52
+ export const ICON_VARIANT_DOCK_RIGHT_TOGGLE = mdiDockRight;
53
+ export const ICON_VARIANT_FILTER = mdiFilter;
54
+ export const ICON_VARIANT_LEFT = mdiArrowLeft;
55
+ // A true chevron, not `mdiMenuDown`'s small filled triangle. A split-button
56
+ // affordance needs a mark that reads at 16-18px beside a text label, and the
57
+ // triangle disappears there (AGL-1152).
58
+ export const ICON_VARIANT_CHEVRON_DOWN = mdiChevronDown;
59
+ export const ICON_VARIANT_MENU_DOWN = mdiMenuDown;
60
+ export const ICON_VARIANT_MODIFY_ADD = mdiPlus;
61
+ export const ICON_VARIANT_MODIFY_COPY = mdiContentCopy;
62
+ export const ICON_VARIANT_MODIFY_DELETE = mdiWindowClose;
63
+ export const ICON_VARIANT_MODIFY_DRAG = mdiDrag;
64
+ export const ICON_VARIANT_MODIFY_DUPLICATE = mdiContentDuplicate;
65
+ export const ICON_VARIANT_MODIFY_EDIT = mdiPencil;
66
+ export const ICON_VARIANT_MODIFY_MODE_REARRANGE = mdiCursorMove;
67
+ export const ICON_VARIANT_MODIFY_MODE_SELECT = mdiCursorDefault;
68
+ export const ICON_VARIANT_MODIFY_MOVE_DOWN = mdiArrowDown;
69
+ // Reparenting a node in the hierarchy is an outdent / indent, and reads as
70
+ // one (AGL-1405) — the arrows above are sibling reordering.
71
+ export const ICON_VARIANT_MODIFY_MOVE_IN = mdiFormatIndentIncrease;
72
+ export const ICON_VARIANT_MODIFY_MOVE_OUT = mdiFormatIndentDecrease;
73
+ export const ICON_VARIANT_MODIFY_MOVE_UP = mdiArrowUp;
74
+ export const ICON_VARIANT_MODIFY_PASTE = mdiContentPaste;
75
+ export const ICON_VARIANT_MODIFY_REDO = mdiRedo;
76
+ export const ICON_VARIANT_MODIFY_SAVE = mdiContentSave;
77
+ export const ICON_VARIANT_MODIFY_UNDO = mdiUndo;
78
+ export const ICON_VARIANT_NEW_TAB = mdiOpenInNew;
79
+ export const ICON_VARIANT_RIGHT = mdiArrowRight;
80
+ export const ICON_VARIANT_SEARCH = mdiMagnify;
81
+ export const ICON_VARIANT_SELECT_PARENT = mdiArrowULeftTop;
82
+ export const ICON_VARIANT_SHOW_DETAIL = mdiPageNextOutline;
83
+ export const ICON_VARIANT_SHOW_MORE = mdiDotsHorizontal;
84
+ export const ICON_VARIANT_SHOW_MORE_VERTICAL = mdiDotsVertical;
85
+ // Areas + Pages
86
+ export const ICON_VARIANT_APP_PREFERENCES = mdiTune;
87
+ export const ICON_VARIANT_APP_SETTINGS = mdiCog;
88
+ export const ICON_VARIANT_BESIGNER = mdiMathCompass;
89
+ export const ICON_VARIANT_HOME = mdiHomeVariant;
90
+ export const ICON_VARIANT_ORGANIZATION = mdiDomain;
91
+ export const ICON_VARIANT_PAGES = mdiWeb;
92
+ export const ICON_VARIANT_SIGN_IN = mdiLoginVariant;
93
+ export const ICON_VARIANT_SIGN_OUT = mdiLogoutVariant;
94
+ export const ICON_VARIANT_USER_SETTINGS = mdiAccountSettings;
95
+ export const ICON_VARIANT_HOST_GROUP = mdiWebBox;
96
+ export const ICON_VARIANT_HOST = mdiWeb;
97
+ // Canvas visibility (AGL-592): whether an element is shown while it is being
98
+ // designed. Distinct from whether the published site shows it — the eye
99
+ // reports and toggles the CANVAS, never the document.
100
+ export const ICON_VARIANT_VISIBILITY_SHOWN = mdiEyeOutline;
101
+ export const ICON_VARIANT_VISIBILITY_HIDDEN = mdiEyeOffOutline;
102
+ // Views + Panels
103
+ export const ICON_VARIANT_ELEMENT_BROWSE = mdiGroup;
104
+ export const ICON_VARIANT_ELEMENT_DETAILS = mdiInformationVariant;
105
+ export const ICON_VARIANT_ELEMENT_PROPERTIES = mdiFormDropdown;
106
+ export const ICON_VARIANT_ELEMENT_INTERACTIONS = mdiGestureTapHold;
107
+ export const ICON_VARIANT_ELEMENT_STYLES = mdiPaletteOutline;
108
+ export const ICON_VARIANT_ELEMENT_TREE_VIEW = mdiFileTree;
109
+ // Theme mode
110
+ export const ICON_VARIANT_THEME_DARK = mdiWeatherNight;
111
+ export const ICON_VARIANT_THEME_LIGHT = mdiWhiteBalanceSunny;
112
+ export const ICON_VARIANT_THEME_SYSTEM = mdiThemeLightDark;
113
+ // Devices
114
+ export const ICON_VARIANT_FLUID_RESPONSIVE = mdiArrowExpandHorizontal;
115
+ export const ICON_VARIANT_LAPTOP = mdiLaptop;
116
+ export const ICON_VARIANT_MOBILE = mdiCellphone;
117
+ export const ICON_VARIANT_MONITOR_LARGE = mdiMonitor;
118
+ export const ICON_VARIANT_MONITOR_SMALL = mdiMonitorSmall;
119
+ export const ICON_VARIANT_TABLET = mdiTablet;
120
+ // Symbols + Status
121
+ export const ICON_VARIANT_SYMBOL_CONFIRMED = mdiCheck;
122
+ // Release-flagged surface marker (AGL-229): staff-only badge on nav tabs
123
+ // and admin flag rows for features hidden from customers.
124
+ export const ICON_VARIANT_SYMBOL_FLAG = mdiFlagVariant;
125
+ // Staff system-email templates (AGL-748).
126
+ export const ICON_VARIANT_SYMBOL_MAIL = mdiEmailOutline;
127
+ export const ICON_VARIANT_SYMBOL_MINUS = mdiMinus;
128
+ export const ICON_VARIANT_SYMBOL_SECURE = mdiShieldLock;
129
+
130
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../libs/shared/data/enums/src/lib/icons.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n mdiAccountSettings,\n mdiAlignHorizontalDistribute,\n mdiAlignVerticalCenter,\n mdiAlphabetical,\n mdiArrowDown,\n mdiArrowExpandHorizontal,\n mdiArrowLeft,\n mdiArrowRight,\n mdiArrowRightBottom,\n mdiArrowULeftTop,\n mdiArrowUp,\n mdiBookVariant,\n mdiBookVariantMultiple,\n mdiCalendar,\n mdiCalendarClock,\n mdiCellphone,\n mdiCheck,\n mdiChevronDown,\n mdiChevronRight,\n mdiClose,\n mdiCodeArray,\n mdiCodeBracesBox,\n mdiCodeString,\n mdiCog,\n mdiContentCopy,\n mdiContentDuplicate,\n mdiContentPaste,\n mdiContentSave,\n mdiCubeOutline,\n mdiCursorDefault,\n mdiCursorMove,\n mdiDockBottom,\n mdiDockLeft,\n mdiDockRight,\n mdiDomain,\n mdiDotsHorizontal,\n mdiDotsVertical,\n mdiDrag,\n mdiFileTree,\n mdiFilter,\n mdiEmailOutline,\n mdiEyeOffOutline,\n mdiEyeOutline,\n mdiFlagVariant,\n mdiFormatAlignCenter,\n mdiFormatAlignJustify,\n mdiFormatAlignLeft,\n mdiFormatAlignRight,\n mdiFormatHorizontalAlignCenter,\n mdiFormatHorizontalAlignLeft,\n mdiFormatHorizontalAlignRight,\n mdiFormatIndentDecrease,\n mdiFormatIndentIncrease,\n mdiFormDropdown,\n mdiGroup,\n mdiHomeVariant,\n mdiIdentifier,\n mdiInformationVariant,\n mdiKeyVariant,\n mdiLaptop,\n mdiLoginVariant,\n mdiLogoutVariant,\n mdiMagnify,\n mdiMathCompass,\n mdiMenuDown,\n mdiMinus,\n mdiMonitor,\n mdiMonitorSmall,\n mdiOpenInNew,\n mdiPageNextOutline,\n mdiGestureTapHold,\n mdiPaletteOutline,\n mdiPencil,\n mdiPlus,\n mdiRedo,\n mdiShieldLock,\n mdiTablet,\n mdiThemeLightDark,\n mdiTune,\n mdiUndo,\n mdiVariable,\n mdiVectorSquare,\n mdiWeatherNight,\n mdiWeb,\n mdiWebBox,\n mdiWhiteBalanceSunny,\n mdiWindowClose,\n} from '@aglyn/shared-data-mdi'\n\n// Data-Type\nexport const ICON_VARIANT_ARRAY = mdiCodeArray\nexport const ICON_VARIANT_COLLECTION = mdiBookVariantMultiple\nexport const ICON_VARIANT_DATE = mdiCalendar\nexport const ICON_VARIANT_DATE_TIME = mdiCalendarClock\nexport const ICON_VARIANT_DOCUMENT = mdiBookVariant\nexport const ICON_VARIANT_COMPONENT = mdiCubeOutline\nexport const ICON_VARIANT_ELEMENT = mdiVectorSquare\nexport const ICON_VARIANT_IDENTIFIER = mdiIdentifier\nexport const ICON_VARIANT_OBJECT = mdiCodeBracesBox\nexport const ICON_VARIANT_PRIMARY_KEY = mdiKeyVariant\nexport const ICON_VARIANT_PROPERTY = mdiVariable\nexport const ICON_VARIANT_STRING = mdiCodeString\nexport const ICON_VARIANT_TEXT = mdiAlphabetical\n\n// Flexbox\nexport const ICON_VARIANT_FLEX_START = mdiFormatHorizontalAlignRight\nexport const ICON_VARIANT_FLEX_END = mdiFormatHorizontalAlignLeft\nexport const ICON_VARIANT_FLEX_CENTER = mdiFormatHorizontalAlignCenter\nexport const ICON_VARIANT_FLEX_SPACE_EVENLY = mdiAlignHorizontalDistribute\nexport const ICON_VARIANT_FLEX_SPACE_AROUND = mdiAlignHorizontalDistribute\nexport const ICON_VARIANT_FLEX_SPACE_BETWEEN = mdiAlignVerticalCenter\n\n// Global CSS Values\nexport const ICON_VARIANT_CSS_DEFAULT = mdiMinus\nexport const ICON_VARIANT_CSS_INHERIT = mdiArrowRightBottom\nexport const ICON_VARIANT_ALIGN_LEFT = mdiFormatAlignLeft\nexport const ICON_VARIANT_ALIGN_CENTER = mdiFormatAlignCenter\nexport const ICON_VARIANT_ALIGN_RIGHT = mdiFormatAlignRight\nexport const ICON_VARIANT_ALIGN_JUSTIFY = mdiFormatAlignJustify\n\n// Action + Navigation\nexport const ICON_VARIANT_CLEAR = mdiClose\nexport const ICON_VARIANT_CLOSE = mdiClose\nexport const ICON_VARIANT_COLLAPSIBLE_CLOSE = mdiChevronDown\nexport const ICON_VARIANT_COLLAPSIBLE_OPEN = mdiChevronRight\nexport const ICON_VARIANT_DOCK_BOTTOM_TOGGLE = mdiDockBottom\nexport const ICON_VARIANT_DOCK_LEFT_TOGGLE = mdiDockLeft\nexport const ICON_VARIANT_DOCK_RIGHT_TOGGLE = mdiDockRight\nexport const ICON_VARIANT_FILTER = mdiFilter\nexport const ICON_VARIANT_LEFT = mdiArrowLeft\n// A true chevron, not `mdiMenuDown`'s small filled triangle. A split-button\n// affordance needs a mark that reads at 16-18px beside a text label, and the\n// triangle disappears there (AGL-1152).\nexport const ICON_VARIANT_CHEVRON_DOWN = mdiChevronDown\nexport const ICON_VARIANT_MENU_DOWN = mdiMenuDown\nexport const ICON_VARIANT_MODIFY_ADD = mdiPlus\nexport const ICON_VARIANT_MODIFY_COPY = mdiContentCopy\nexport const ICON_VARIANT_MODIFY_DELETE = mdiWindowClose\nexport const ICON_VARIANT_MODIFY_DRAG = mdiDrag\nexport const ICON_VARIANT_MODIFY_DUPLICATE = mdiContentDuplicate\nexport const ICON_VARIANT_MODIFY_EDIT = mdiPencil\nexport const ICON_VARIANT_MODIFY_MODE_REARRANGE = mdiCursorMove\nexport const ICON_VARIANT_MODIFY_MODE_SELECT = mdiCursorDefault\nexport const ICON_VARIANT_MODIFY_MOVE_DOWN = mdiArrowDown\n// Reparenting a node in the hierarchy is an outdent / indent, and reads as\n// one (AGL-1405) — the arrows above are sibling reordering.\nexport const ICON_VARIANT_MODIFY_MOVE_IN = mdiFormatIndentIncrease\nexport const ICON_VARIANT_MODIFY_MOVE_OUT = mdiFormatIndentDecrease\nexport const ICON_VARIANT_MODIFY_MOVE_UP = mdiArrowUp\nexport const ICON_VARIANT_MODIFY_PASTE = mdiContentPaste\nexport const ICON_VARIANT_MODIFY_REDO = mdiRedo\nexport const ICON_VARIANT_MODIFY_SAVE = mdiContentSave\nexport const ICON_VARIANT_MODIFY_UNDO = mdiUndo\nexport const ICON_VARIANT_NEW_TAB = mdiOpenInNew\nexport const ICON_VARIANT_RIGHT = mdiArrowRight\nexport const ICON_VARIANT_SEARCH = mdiMagnify\nexport const ICON_VARIANT_SELECT_PARENT = mdiArrowULeftTop\nexport const ICON_VARIANT_SHOW_DETAIL = mdiPageNextOutline\nexport const ICON_VARIANT_SHOW_MORE = mdiDotsHorizontal\nexport const ICON_VARIANT_SHOW_MORE_VERTICAL = mdiDotsVertical\n\n// Areas + Pages\nexport const ICON_VARIANT_APP_PREFERENCES = mdiTune\nexport const ICON_VARIANT_APP_SETTINGS = mdiCog\nexport const ICON_VARIANT_BESIGNER = mdiMathCompass\nexport const ICON_VARIANT_HOME = mdiHomeVariant\nexport const ICON_VARIANT_ORGANIZATION = mdiDomain\nexport const ICON_VARIANT_PAGES = mdiWeb\nexport const ICON_VARIANT_SIGN_IN = mdiLoginVariant\nexport const ICON_VARIANT_SIGN_OUT = mdiLogoutVariant\nexport const ICON_VARIANT_USER_SETTINGS = mdiAccountSettings\nexport const ICON_VARIANT_HOST_GROUP = mdiWebBox\nexport const ICON_VARIANT_HOST = mdiWeb\n\n// Canvas visibility (AGL-592): whether an element is shown while it is being\n// designed. Distinct from whether the published site shows it — the eye\n// reports and toggles the CANVAS, never the document.\nexport const ICON_VARIANT_VISIBILITY_SHOWN = mdiEyeOutline\nexport const ICON_VARIANT_VISIBILITY_HIDDEN = mdiEyeOffOutline\n\n// Views + Panels\nexport const ICON_VARIANT_ELEMENT_BROWSE = mdiGroup\nexport const ICON_VARIANT_ELEMENT_DETAILS = mdiInformationVariant\nexport const ICON_VARIANT_ELEMENT_PROPERTIES = mdiFormDropdown\nexport const ICON_VARIANT_ELEMENT_INTERACTIONS = mdiGestureTapHold\nexport const ICON_VARIANT_ELEMENT_STYLES = mdiPaletteOutline\nexport const ICON_VARIANT_ELEMENT_TREE_VIEW = mdiFileTree\n\n// Theme mode\nexport const ICON_VARIANT_THEME_DARK = mdiWeatherNight\nexport const ICON_VARIANT_THEME_LIGHT = mdiWhiteBalanceSunny\nexport const ICON_VARIANT_THEME_SYSTEM = mdiThemeLightDark\n\n// Devices\nexport const ICON_VARIANT_FLUID_RESPONSIVE = mdiArrowExpandHorizontal\nexport const ICON_VARIANT_LAPTOP = mdiLaptop\nexport const ICON_VARIANT_MOBILE = mdiCellphone\nexport const ICON_VARIANT_MONITOR_LARGE = mdiMonitor\nexport const ICON_VARIANT_MONITOR_SMALL = mdiMonitorSmall\nexport const ICON_VARIANT_TABLET = mdiTablet\n\n// Symbols + Status\nexport const ICON_VARIANT_SYMBOL_CONFIRMED = mdiCheck\n// Release-flagged surface marker (AGL-229): staff-only badge on nav tabs\n// and admin flag rows for features hidden from customers.\nexport const ICON_VARIANT_SYMBOL_FLAG = mdiFlagVariant\n// Staff system-email templates (AGL-748).\nexport const ICON_VARIANT_SYMBOL_MAIL = mdiEmailOutline\nexport const ICON_VARIANT_SYMBOL_MINUS = mdiMinus\nexport const ICON_VARIANT_SYMBOL_SECURE = mdiShieldLock\n"],"names":["mdiAccountSettings","mdiAlignHorizontalDistribute","mdiAlignVerticalCenter","mdiAlphabetical","mdiArrowDown","mdiArrowExpandHorizontal","mdiArrowLeft","mdiArrowRight","mdiArrowRightBottom","mdiArrowULeftTop","mdiArrowUp","mdiBookVariant","mdiBookVariantMultiple","mdiCalendar","mdiCalendarClock","mdiCellphone","mdiCheck","mdiChevronDown","mdiChevronRight","mdiClose","mdiCodeArray","mdiCodeBracesBox","mdiCodeString","mdiCog","mdiContentCopy","mdiContentDuplicate","mdiContentPaste","mdiContentSave","mdiCubeOutline","mdiCursorDefault","mdiCursorMove","mdiDockBottom","mdiDockLeft","mdiDockRight","mdiDomain","mdiDotsHorizontal","mdiDotsVertical","mdiDrag","mdiFileTree","mdiFilter","mdiEmailOutline","mdiEyeOffOutline","mdiEyeOutline","mdiFlagVariant","mdiFormatAlignCenter","mdiFormatAlignJustify","mdiFormatAlignLeft","mdiFormatAlignRight","mdiFormatHorizontalAlignCenter","mdiFormatHorizontalAlignLeft","mdiFormatHorizontalAlignRight","mdiFormatIndentDecrease","mdiFormatIndentIncrease","mdiFormDropdown","mdiGroup","mdiHomeVariant","mdiIdentifier","mdiInformationVariant","mdiKeyVariant","mdiLaptop","mdiLoginVariant","mdiLogoutVariant","mdiMagnify","mdiMathCompass","mdiMenuDown","mdiMinus","mdiMonitor","mdiMonitorSmall","mdiOpenInNew","mdiPageNextOutline","mdiGestureTapHold","mdiPaletteOutline","mdiPencil","mdiPlus","mdiRedo","mdiShieldLock","mdiTablet","mdiThemeLightDark","mdiTune","mdiUndo","mdiVariable","mdiVectorSquare","mdiWeatherNight","mdiWeb","mdiWebBox","mdiWhiteBalanceSunny","mdiWindowClose","ICON_VARIANT_ARRAY","ICON_VARIANT_COLLECTION","ICON_VARIANT_DATE","ICON_VARIANT_DATE_TIME","ICON_VARIANT_DOCUMENT","ICON_VARIANT_COMPONENT","ICON_VARIANT_ELEMENT","ICON_VARIANT_IDENTIFIER","ICON_VARIANT_OBJECT","ICON_VARIANT_PRIMARY_KEY","ICON_VARIANT_PROPERTY","ICON_VARIANT_STRING","ICON_VARIANT_TEXT","ICON_VARIANT_FLEX_START","ICON_VARIANT_FLEX_END","ICON_VARIANT_FLEX_CENTER","ICON_VARIANT_FLEX_SPACE_EVENLY","ICON_VARIANT_FLEX_SPACE_AROUND","ICON_VARIANT_FLEX_SPACE_BETWEEN","ICON_VARIANT_CSS_DEFAULT","ICON_VARIANT_CSS_INHERIT","ICON_VARIANT_ALIGN_LEFT","ICON_VARIANT_ALIGN_CENTER","ICON_VARIANT_ALIGN_RIGHT","ICON_VARIANT_ALIGN_JUSTIFY","ICON_VARIANT_CLEAR","ICON_VARIANT_CLOSE","ICON_VARIANT_COLLAPSIBLE_CLOSE","ICON_VARIANT_COLLAPSIBLE_OPEN","ICON_VARIANT_DOCK_BOTTOM_TOGGLE","ICON_VARIANT_DOCK_LEFT_TOGGLE","ICON_VARIANT_DOCK_RIGHT_TOGGLE","ICON_VARIANT_FILTER","ICON_VARIANT_LEFT","ICON_VARIANT_CHEVRON_DOWN","ICON_VARIANT_MENU_DOWN","ICON_VARIANT_MODIFY_ADD","ICON_VARIANT_MODIFY_COPY","ICON_VARIANT_MODIFY_DELETE","ICON_VARIANT_MODIFY_DRAG","ICON_VARIANT_MODIFY_DUPLICATE","ICON_VARIANT_MODIFY_EDIT","ICON_VARIANT_MODIFY_MODE_REARRANGE","ICON_VARIANT_MODIFY_MODE_SELECT","ICON_VARIANT_MODIFY_MOVE_DOWN","ICON_VARIANT_MODIFY_MOVE_IN","ICON_VARIANT_MODIFY_MOVE_OUT","ICON_VARIANT_MODIFY_MOVE_UP","ICON_VARIANT_MODIFY_PASTE","ICON_VARIANT_MODIFY_REDO","ICON_VARIANT_MODIFY_SAVE","ICON_VARIANT_MODIFY_UNDO","ICON_VARIANT_NEW_TAB","ICON_VARIANT_RIGHT","ICON_VARIANT_SEARCH","ICON_VARIANT_SELECT_PARENT","ICON_VARIANT_SHOW_DETAIL","ICON_VARIANT_SHOW_MORE","ICON_VARIANT_SHOW_MORE_VERTICAL","ICON_VARIANT_APP_PREFERENCES","ICON_VARIANT_APP_SETTINGS","ICON_VARIANT_BESIGNER","ICON_VARIANT_HOME","ICON_VARIANT_ORGANIZATION","ICON_VARIANT_PAGES","ICON_VARIANT_SIGN_IN","ICON_VARIANT_SIGN_OUT","ICON_VARIANT_USER_SETTINGS","ICON_VARIANT_HOST_GROUP","ICON_VARIANT_HOST","ICON_VARIANT_VISIBILITY_SHOWN","ICON_VARIANT_VISIBILITY_HIDDEN","ICON_VARIANT_ELEMENT_BROWSE","ICON_VARIANT_ELEMENT_DETAILS","ICON_VARIANT_ELEMENT_PROPERTIES","ICON_VARIANT_ELEMENT_INTERACTIONS","ICON_VARIANT_ELEMENT_STYLES","ICON_VARIANT_ELEMENT_TREE_VIEW","ICON_VARIANT_THEME_DARK","ICON_VARIANT_THEME_LIGHT","ICON_VARIANT_THEME_SYSTEM","ICON_VARIANT_FLUID_RESPONSIVE","ICON_VARIANT_LAPTOP","ICON_VARIANT_MOBILE","ICON_VARIANT_MONITOR_LARGE","ICON_VARIANT_MONITOR_SMALL","ICON_VARIANT_TABLET","ICON_VARIANT_SYMBOL_CONFIRMED","ICON_VARIANT_SYMBOL_FLAG","ICON_VARIANT_SYMBOL_MAIL","ICON_VARIANT_SYMBOL_MINUS","ICON_VARIANT_SYMBOL_SECURE"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED,SACEA,kBAAkB,EAClBC,4BAA4B,EAC5BC,sBAAsB,EACtBC,eAAe,EACfC,YAAY,EACZC,wBAAwB,EACxBC,YAAY,EACZC,aAAa,EACbC,mBAAmB,EACnBC,gBAAgB,EAChBC,UAAU,EACVC,cAAc,EACdC,sBAAsB,EACtBC,WAAW,EACXC,gBAAgB,EAChBC,YAAY,EACZC,QAAQ,EACRC,cAAc,EACdC,eAAe,EACfC,QAAQ,EACRC,YAAY,EACZC,gBAAgB,EAChBC,aAAa,EACbC,MAAM,EACNC,cAAc,EACdC,mBAAmB,EACnBC,eAAe,EACfC,cAAc,EACdC,cAAc,EACdC,gBAAgB,EAChBC,aAAa,EACbC,aAAa,EACbC,WAAW,EACXC,YAAY,EACZC,SAAS,EACTC,iBAAiB,EACjBC,eAAe,EACfC,OAAO,EACPC,WAAW,EACXC,SAAS,EACTC,eAAe,EACfC,gBAAgB,EAChBC,aAAa,EACbC,cAAc,EACdC,oBAAoB,EACpBC,qBAAqB,EACrBC,kBAAkB,EAClBC,mBAAmB,EACnBC,8BAA8B,EAC9BC,4BAA4B,EAC5BC,6BAA6B,EAC7BC,uBAAuB,EACvBC,uBAAuB,EACvBC,eAAe,EACfC,QAAQ,EACRC,cAAc,EACdC,aAAa,EACbC,qBAAqB,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BjF,qBAAoB;AAC5D,OAAO,MAAMkF,4BAA4B1F,kBAAiB;AAE1D,UAAU;AACV,OAAO,MAAM2F,gCAAgCnK,yBAAwB;AACrE,OAAO,MAAMoK,sBAAsB9G,UAAS;AAC5C,OAAO,MAAM+G,sBAAsB3J,aAAY;AAC/C,OAAO,MAAM4J,6BAA6BzG,WAAU;AACpD,OAAO,MAAM0G,6BAA6BzG,gBAAe;AACzD,OAAO,MAAM0G,sBAAsBjG,UAAS;AAE5C,mBAAmB;AACnB,OAAO,MAAMkG,gCAAgC9J,SAAQ;AACrD,yEAAyE;AACzE,0DAA0D;AAC1D,OAAO,MAAM+J,2BAA2BpI,eAAc;AACtD,0CAA0C;AAC1C,OAAO,MAAMqI,2BAA2BxI,gBAAe;AACvD,OAAO,MAAMyI,4BAA4BhH,SAAQ;AACjD,OAAO,MAAMiH,6BAA6BvG,cAAa"}
@@ -0,0 +1,111 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Palette tokens as CSS custom properties: the `var(--mui-palette-…)` form a
19
+ * bound colour is persisted in, its channel variant for author-chosen alpha,
20
+ * and the readers that take both back apart.
21
+ *
22
+ * Its own module because a published page reads only these — the sx palette
23
+ * resolver rewrites every token-bound colour on the page through them — while
24
+ * `styles.ts` around it is authoring-surface work: the unit enum and its
25
+ * pickers, the dimension parser, and the whole gradient model. None of that
26
+ * runs to resolve a colour, and a bundler cannot drop it around three named
27
+ * imports.
28
+ */
29
+ /**
30
+ * Splits a CSS argument list on TOP-LEVEL commas, respecting nesting.
31
+ *
32
+ * Exported because the gradient parser in `styles.ts` splits stop lists with
33
+ * the same rule; one implementation, so a nested `rgba()` cannot start
34
+ * parsing differently in the two places.
35
+ */
36
+ export declare function splitTopLevelArgs(text: string): string[];
37
+ /** A palette token reference parsed out of a `var()` expression. */
38
+ export interface PaletteTokenRef {
39
+ /** Dot path into the palette, e.g. `primary.main`. */
40
+ path: string;
41
+ /** Literal colour rendered when the custom property is undefined. */
42
+ fallback?: string;
43
+ }
44
+ /**
45
+ * The CSS custom-property name a palette token path maps to:
46
+ * `primary.main` becomes `--mui-palette-primary-main`, matching MUI's own
47
+ * naming. Path segments are lowercase words in every token the picker
48
+ * offers, so the `.`/`-` swap is exactly reversible by
49
+ * {@link cssVarNameToPaletteToken}.
50
+ */
51
+ export declare function paletteTokenToCssVarName(path: string): string;
52
+ /** Inverse of {@link paletteTokenToCssVarName}; undefined for other vars. */
53
+ export declare function cssVarNameToPaletteToken(name: string): string | undefined;
54
+ /** Builds the persisted form of a token-bound colour. */
55
+ export declare function paletteTokenToCssVar(path: string, fallback?: string): string;
56
+ /**
57
+ * Reads a `var(--mui-palette-…[, fallback])` expression back into its token
58
+ * path plus fallback. Anything else (a literal, a non-palette custom
59
+ * property) returns undefined so callers treat it as a plain colour.
60
+ */
61
+ export declare function parsePaletteTokenCssVar(value: string | undefined | null): PaletteTokenRef | undefined;
62
+ /** `primary.main` → `--mui-palette-primary-mainChannel`. */
63
+ export declare function paletteTokenToChannelCssVarName(path: string): string;
64
+ /**
65
+ * The palette path a CHANNEL custom property names — `primary.main` for
66
+ * `--mui-palette-primary-mainChannel` — or undefined when the name is not a
67
+ * channel reference. Note this returns the path of the COLOUR, not of a
68
+ * `mainChannel` key: a theme built with plain `createTheme` (which is what
69
+ * `createResponsiveTheme` does) has no channel entries at all, so the
70
+ * resolver derives the triplet from the colour itself.
71
+ */
72
+ export declare function channelCssVarNameToPaletteToken(name: string): string | undefined;
73
+ /**
74
+ * A colour's `R G B` triplet — MUI's channel form — or undefined when the
75
+ * value is not one this can read (a named colour, `hsl()`, a `var()` that has
76
+ * not been substituted yet). Undefined is a real answer: the caller then
77
+ * leaves the reference's literal fallback in place rather than emitting a
78
+ * malformed `rgba()` that the browser would drop.
79
+ *
80
+ * An alpha component in the input is deliberately DISCARDED — the channel is
81
+ * the colour, and the alpha being applied is the author's, not the palette's.
82
+ */
83
+ export declare function cssColorToChannel(color: string | undefined | null): string | undefined;
84
+ /** A palette token carrying an author-chosen alpha. */
85
+ export interface PaletteAlphaTokenRef {
86
+ /** Dot path into the palette, e.g. `primary.main`. */
87
+ path: string;
88
+ /** Opacity in [0, 1]. */
89
+ alpha: number;
90
+ /** Literal channel triplet rendered when the custom property is undefined. */
91
+ fallback?: string;
92
+ }
93
+ /**
94
+ * The persisted form of "a theme token at N% opacity":
95
+ * `rgba(var(--mui-palette-primary-mainChannel, 31 41 55) / 0.12)`.
96
+ *
97
+ * A CSS var reference with a literal fallback, exactly like the gradient
98
+ * field's token stops (AGL-1331) — the reference is what keeps the value a
99
+ * TOKEN, and the fallback is what renders if the substitution pass is ever
100
+ * skipped, so the worst case is a slightly stale colour rather than a dropped
101
+ * declaration. `fallbackColor` is the colour the token resolves to today; it
102
+ * is converted to channels here so callers never have to know the form.
103
+ */
104
+ export declare function paletteTokenToAlphaCssVar(path: string, alpha: number, fallbackColor?: string): string;
105
+ /**
106
+ * Reads {@link paletteTokenToAlphaCssVar} back into its token path and alpha,
107
+ * so re-opening the picker on a stored value shows the TOKEN and its opacity
108
+ * rather than an opaque string. Anything else returns undefined and is treated
109
+ * as a plain colour.
110
+ */
111
+ export declare function parsePaletteTokenAlphaCssVar(value: string | undefined | null): PaletteAlphaTokenRef | undefined;
@@ -0,0 +1,221 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */ /**
17
+ * Palette tokens as CSS custom properties: the `var(--mui-palette-…)` form a
18
+ * bound colour is persisted in, its channel variant for author-chosen alpha,
19
+ * and the readers that take both back apart.
20
+ *
21
+ * Its own module because a published page reads only these — the sx palette
22
+ * resolver rewrites every token-bound colour on the page through them — while
23
+ * `styles.ts` around it is authoring-surface work: the unit enum and its
24
+ * pickers, the dimension parser, and the whole gradient model. None of that
25
+ * runs to resolve a colour, and a bundler cannot drop it around three named
26
+ * imports.
27
+ */ /**
28
+ * Splits a CSS argument list on TOP-LEVEL commas, respecting nesting.
29
+ *
30
+ * Exported because the gradient parser in `styles.ts` splits stop lists with
31
+ * the same rule; one implementation, so a nested `rgba()` cannot start
32
+ * parsing differently in the two places.
33
+ */ export function splitTopLevelArgs(text) {
34
+ const args = [];
35
+ let depth = 0;
36
+ let start = 0;
37
+ for(let i = 0; i < text.length; i += 1){
38
+ const char = text[i];
39
+ if (char === '(') depth += 1;
40
+ else if (char === ')') depth -= 1;
41
+ else if (char === ',' && depth === 0) {
42
+ args.push(text.slice(start, i).trim());
43
+ start = i + 1;
44
+ }
45
+ }
46
+ args.push(text.slice(start).trim());
47
+ return args;
48
+ }
49
+ /**
50
+ * CSS custom-property prefix MUI uses for palette entries — the same one
51
+ * `theme.vars.palette.*` emits under the default `mui` cssVarPrefix.
52
+ *
53
+ * A gradient stop bound to a THEME TOKEN is persisted as
54
+ * `var(--mui-palette-primary-main, #00B0FF)` (AGL-1331): `backgroundImage`
55
+ * is not one of MUI's palette-keyed sx properties (only `color`, `bgcolor`
56
+ * and `backgroundColor` are), so a bare `primary.main` inside a gradient
57
+ * would reach CSS verbatim and the whole declaration would be dropped —
58
+ * the exact silent failure this issue is about. A `var()` reference with a
59
+ * literal fallback is valid CSS everywhere, so the worst case is the
60
+ * fallback colour, never a vanished background.
61
+ */ const PALETTE_CSS_VAR_PREFIX = '--mui-palette-';
62
+ /**
63
+ * The CSS custom-property name a palette token path maps to:
64
+ * `primary.main` becomes `--mui-palette-primary-main`, matching MUI's own
65
+ * naming. Path segments are lowercase words in every token the picker
66
+ * offers, so the `.`/`-` swap is exactly reversible by
67
+ * {@link cssVarNameToPaletteToken}.
68
+ */ export function paletteTokenToCssVarName(path) {
69
+ return `${PALETTE_CSS_VAR_PREFIX}${path.trim().split('.').join('-')}`;
70
+ }
71
+ /** Inverse of {@link paletteTokenToCssVarName}; undefined for other vars. */ export function cssVarNameToPaletteToken(name) {
72
+ const trimmed = name.trim();
73
+ if (!trimmed.startsWith(PALETTE_CSS_VAR_PREFIX)) return undefined;
74
+ const rest = trimmed.slice(PALETTE_CSS_VAR_PREFIX.length);
75
+ return rest ? rest.split('-').join('.') : undefined;
76
+ }
77
+ /** Builds the persisted form of a token-bound colour. */ export function paletteTokenToCssVar(path, fallback) {
78
+ const name = paletteTokenToCssVarName(path);
79
+ return fallback ? `var(${name}, ${fallback})` : `var(${name})`;
80
+ }
81
+ /**
82
+ * Reads a `var(--mui-palette-…[, fallback])` expression back into its token
83
+ * path plus fallback. Anything else (a literal, a non-palette custom
84
+ * property) returns undefined so callers treat it as a plain colour.
85
+ */ export function parsePaletteTokenCssVar(value) {
86
+ if (!value) return undefined;
87
+ const text = `${value}`.trim();
88
+ if (!text.toLowerCase().startsWith('var(') || !text.endsWith(')')) {
89
+ return undefined;
90
+ }
91
+ const [name, ...fallbackParts] = splitTopLevelArgs(text.slice(4, -1));
92
+ if (name === undefined) return undefined;
93
+ const path = cssVarNameToPaletteToken(name);
94
+ if (!path) return undefined;
95
+ const fallback = fallbackParts.join(', ').trim();
96
+ return fallback ? {
97
+ path,
98
+ fallback
99
+ } : {
100
+ path
101
+ };
102
+ }
103
+ /**
104
+ * Suffix MUI appends to a palette custom property holding the SPACE-SEPARATED
105
+ * RGB channels of a colour — `--mui-palette-primary-mainChannel` is
106
+ * `31 41 55` where `--mui-palette-primary-main` is `#1F2937`.
107
+ *
108
+ * MUI publishes these for exactly one reason: so alpha can be applied to a
109
+ * palette TOKEN at render time, as `rgba(var(…Channel) / 0.12)`, instead of
110
+ * the token being flattened to a literal `rgba(…)` by
111
+ * whoever wrote the style. That distinction is the whole feature: a flattened
112
+ * literal stops following the palette, so a white-label site or a palette
113
+ * change keeps the old colour for ever and nothing reports it. The designer's
114
+ * own chrome already uses this form (`box-styler/components/box-diagram.tsx`).
115
+ */ const PALETTE_CHANNEL_SUFFIX = 'Channel';
116
+ /** `primary.main` → `--mui-palette-primary-mainChannel`. */ export function paletteTokenToChannelCssVarName(path) {
117
+ return `${paletteTokenToCssVarName(path)}${PALETTE_CHANNEL_SUFFIX}`;
118
+ }
119
+ /**
120
+ * The palette path a CHANNEL custom property names — `primary.main` for
121
+ * `--mui-palette-primary-mainChannel` — or undefined when the name is not a
122
+ * channel reference. Note this returns the path of the COLOUR, not of a
123
+ * `mainChannel` key: a theme built with plain `createTheme` (which is what
124
+ * `createResponsiveTheme` does) has no channel entries at all, so the
125
+ * resolver derives the triplet from the colour itself.
126
+ */ export function channelCssVarNameToPaletteToken(name) {
127
+ const trimmed = `${name != null ? name : ''}`.trim();
128
+ // Case-insensitive on the suffix only: CSS custom properties ARE
129
+ // case-sensitive, but a value that reached us through a CSS minifier or a
130
+ // hand edit should still round-trip into the picker rather than reading as
131
+ // an opaque literal.
132
+ if (trimmed.slice(-PALETTE_CHANNEL_SUFFIX.length).toLowerCase() !== PALETTE_CHANNEL_SUFFIX.toLowerCase()) {
133
+ return undefined;
134
+ }
135
+ return cssVarNameToPaletteToken(trimmed.slice(0, -PALETTE_CHANNEL_SUFFIX.length));
136
+ }
137
+ const HEX_CHANNEL_PATTERN = /^#([0-9a-f]{3,8})$/i;
138
+ const RGB_FUNCTION_PATTERN = /^rgba?\(([^()]*)\)$/i;
139
+ /**
140
+ * A colour's `R G B` triplet — MUI's channel form — or undefined when the
141
+ * value is not one this can read (a named colour, `hsl()`, a `var()` that has
142
+ * not been substituted yet). Undefined is a real answer: the caller then
143
+ * leaves the reference's literal fallback in place rather than emitting a
144
+ * malformed `rgba()` that the browser would drop.
145
+ *
146
+ * An alpha component in the input is deliberately DISCARDED — the channel is
147
+ * the colour, and the alpha being applied is the author's, not the palette's.
148
+ */ export function cssColorToChannel(color) {
149
+ const text = `${color != null ? color : ''}`.trim();
150
+ if (!text) return undefined;
151
+ const hex = HEX_CHANNEL_PATTERN.exec(text);
152
+ if (hex) {
153
+ const digits = hex[1];
154
+ // `#abc` and `#abcd` are shorthand: each digit doubles. The 8-digit form
155
+ // carries alpha in the last pair, which is dropped with the rest.
156
+ const expanded = digits.length <= 4 ? digits.split('').map((digit)=>`${digit}${digit}`).join('') : digits;
157
+ if (expanded.length < 6) return undefined;
158
+ const channels = [
159
+ 0,
160
+ 2,
161
+ 4
162
+ ].map((offset)=>Number.parseInt(expanded.slice(offset, offset + 2), 16));
163
+ return channels.some((channel)=>Number.isNaN(channel)) ? undefined : channels.join(' ');
164
+ }
165
+ const fn = RGB_FUNCTION_PATTERN.exec(text);
166
+ if (!fn) return undefined;
167
+ // Both the legacy comma form and the modern `r g b / a` form, since either
168
+ // can appear in a hand-authored palette.
169
+ const parts = fn[1].split('/')[0].split(/[\s,]+/).filter((part)=>part !== '');
170
+ if (parts.length < 3) return undefined;
171
+ const channels = parts.slice(0, 3).map((part)=>Number.parseFloat(part));
172
+ if (channels.some((channel)=>!Number.isFinite(channel))) return undefined;
173
+ return channels.map((channel)=>Math.round(channel)).join(' ');
174
+ }
175
+ /**
176
+ * The persisted form of "a theme token at N% opacity":
177
+ * `rgba(var(--mui-palette-primary-mainChannel, 31 41 55) / 0.12)`.
178
+ *
179
+ * A CSS var reference with a literal fallback, exactly like the gradient
180
+ * field's token stops (AGL-1331) — the reference is what keeps the value a
181
+ * TOKEN, and the fallback is what renders if the substitution pass is ever
182
+ * skipped, so the worst case is a slightly stale colour rather than a dropped
183
+ * declaration. `fallbackColor` is the colour the token resolves to today; it
184
+ * is converted to channels here so callers never have to know the form.
185
+ */ export function paletteTokenToAlphaCssVar(path, alpha, fallbackColor) {
186
+ const name = paletteTokenToChannelCssVarName(path);
187
+ const fallback = cssColorToChannel(fallbackColor);
188
+ const reference = fallback ? `var(${name}, ${fallback})` : `var(${name})`;
189
+ // Trimmed so `0.5` does not persist as `0.50`, and clamped because an
190
+ // out-of-range alpha is a dropped declaration, not a clipped colour.
191
+ const clamped = Math.min(1, Math.max(0, Number(alpha)));
192
+ const amount = Number.isFinite(clamped) ? Number(clamped.toFixed(4)) : 1;
193
+ return `rgba(${reference} / ${amount})`;
194
+ }
195
+ const ALPHA_TOKEN_PATTERN = /^rgba?\(\s*var\(\s*(--mui-palette-[a-z0-9-]+channel)\s*(?:,([^()]*))?\)\s*\/\s*([0-9]*\.?[0-9]+)\s*\)$/i;
196
+ /**
197
+ * Reads {@link paletteTokenToAlphaCssVar} back into its token path and alpha,
198
+ * so re-opening the picker on a stored value shows the TOKEN and its opacity
199
+ * rather than an opaque string. Anything else returns undefined and is treated
200
+ * as a plain colour.
201
+ */ export function parsePaletteTokenAlphaCssVar(value) {
202
+ var _matched_;
203
+ if (!value) return undefined;
204
+ const matched = ALPHA_TOKEN_PATTERN.exec(`${value}`.trim());
205
+ if (!matched) return undefined;
206
+ const path = channelCssVarNameToPaletteToken(matched[1]);
207
+ if (!path) return undefined;
208
+ const alpha = Number.parseFloat(matched[3]);
209
+ if (!Number.isFinite(alpha) || alpha < 0 || alpha > 1) return undefined;
210
+ const fallback = ((_matched_ = matched[2]) != null ? _matched_ : '').trim();
211
+ return fallback ? {
212
+ path,
213
+ alpha,
214
+ fallback
215
+ } : {
216
+ path,
217
+ alpha
218
+ };
219
+ }
220
+
221
+ //# sourceMappingURL=palette-token-css-var.js.map