@vielzeug/codex 26.10.7 → 26.10.9

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/data/refine.json CHANGED
@@ -945,7 +945,7 @@
945
945
  "type": {
946
946
  "text": "object"
947
947
  },
948
- "default": "{ color: prop.string<ThemeColor>(), }",
948
+ "default": "{ color: prop.oneOf(THEME_COLORS), }",
949
949
  "description": "Prop bundle for components that support a theme colour."
950
950
  },
951
951
  {
@@ -954,7 +954,7 @@
954
954
  "type": {
955
955
  "text": "object"
956
956
  },
957
- "default": "{ size: prop.string<ComponentSize>(), }",
957
+ "default": "{ size: prop.oneOf(COMPONENT_SIZES), }",
958
958
  "description": "Prop bundle for components with discrete size variants."
959
959
  },
960
960
  {
@@ -981,7 +981,7 @@
981
981
  "type": {
982
982
  "text": "object"
983
983
  },
984
- "default": "{ rounded: prop.string<RoundedSize>(), }",
984
+ "default": "{ rounded: prop.oneOf(ROUNDED_SIZES), }",
985
985
  "description": "Prop bundle for components with configurable border-radius."
986
986
  },
987
987
  {
@@ -990,7 +990,7 @@
990
990
  "type": {
991
991
  "text": "object"
992
992
  },
993
- "default": "{ elevation: prop.number<ElevationLevel>(), }",
993
+ "default": "{ elevation: prop.oneOf(ELEVATION_LEVELS), }",
994
994
  "description": "Prop bundle for components with an elevation / box-shadow."
995
995
  },
996
996
  {
@@ -1054,6 +1054,114 @@
1054
1054
  "default": "{ lg: { '--_min-height': 'var(--size-40)', fontSize: 'var(--text-base)', }, md: { '--_min-height': 'var(--size-32)', fontSize: 'var(--text-sm)', }, sm: { '--_min-height': 'var(--size-28)', fontSize: 'var(--text-xs)', }, } satisfies FullSizePreset",
1055
1055
  "description": "Shared size preset for the file-input dropzone."
1056
1056
  },
1057
+ {
1058
+ "kind": "variable",
1059
+ "name": "COMPONENT_SIZES",
1060
+ "type": {
1061
+ "text": "['sm', 'md', 'lg']"
1062
+ },
1063
+ "default": "['sm', 'md', 'lg']",
1064
+ "description": "Component size variants"
1065
+ },
1066
+ {
1067
+ "kind": "variable",
1068
+ "name": "THEME_COLORS",
1069
+ "type": {
1070
+ "text": "['primary', 'secondary', 'info', 'success', 'warning', 'error']"
1071
+ },
1072
+ "default": "['primary', 'secondary', 'info', 'success', 'warning', 'error']",
1073
+ "description": "Semantic theme colors"
1074
+ },
1075
+ {
1076
+ "kind": "variable",
1077
+ "name": "VISUAL_VARIANTS",
1078
+ "type": {
1079
+ "text": "['solid', 'flat', 'bordered', 'outline', 'ghost', 'text', 'frost']"
1080
+ },
1081
+ "default": "['solid', 'flat', 'bordered', 'outline', 'ghost', 'text', 'frost']",
1082
+ "description": "Visual variant styles"
1083
+ },
1084
+ {
1085
+ "kind": "variable",
1086
+ "name": "FIELD_VARIANTS",
1087
+ "type": {
1088
+ "text": "['flat', 'solid', 'bordered', 'outline', 'ghost']"
1089
+ },
1090
+ "default": "['flat', 'solid', 'bordered', 'outline', 'ghost']",
1091
+ "description": "Variant set accepted by text-field-style inputs (everything except `text` and `frost`)."
1092
+ },
1093
+ {
1094
+ "kind": "variable",
1095
+ "name": "INPUT_VARIANTS",
1096
+ "type": {
1097
+ "text": "['solid', 'flat', 'bordered', 'outline', 'ghost', 'text']"
1098
+ },
1099
+ "default": "['solid', 'flat', 'bordered', 'outline', 'ghost', 'text']",
1100
+ "description": "Variant set accepted by input/select-style fields (everything except `frost`)."
1101
+ },
1102
+ {
1103
+ "kind": "variable",
1104
+ "name": "DENSITY_LEVELS",
1105
+ "type": {
1106
+ "text": "['compact', 'cozy', 'comfortable']"
1107
+ },
1108
+ "default": "['compact', 'cozy', 'comfortable']",
1109
+ "description": "Table/grid density levels"
1110
+ },
1111
+ {
1112
+ "kind": "variable",
1113
+ "name": "ROUNDED_SIZES",
1114
+ "type": {
1115
+ "text": "['none', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', 'full']"
1116
+ },
1117
+ "default": "['none', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', 'full']",
1118
+ "description": "Border radius variants"
1119
+ },
1120
+ {
1121
+ "kind": "variable",
1122
+ "name": "ELEVATION_LEVELS",
1123
+ "type": {
1124
+ "text": "[0, 1, 2, 3, 4, 5]"
1125
+ },
1126
+ "default": "[0, 1, 2, 3, 4, 5]",
1127
+ "description": "Elevation/shadow depth levels"
1128
+ },
1129
+ {
1130
+ "kind": "variable",
1131
+ "name": "PADDING_SIZES",
1132
+ "type": {
1133
+ "text": "['none', 'sm', 'md', 'lg', 'xl']"
1134
+ },
1135
+ "default": "['none', 'sm', 'md', 'lg', 'xl']",
1136
+ "description": "Internal spacing variants"
1137
+ },
1138
+ {
1139
+ "kind": "variable",
1140
+ "name": "BUTTON_TYPES",
1141
+ "type": {
1142
+ "text": "['button', 'submit', 'reset']"
1143
+ },
1144
+ "default": "['button', 'submit', 'reset']",
1145
+ "description": "Button form-submission types"
1146
+ },
1147
+ {
1148
+ "kind": "variable",
1149
+ "name": "LINK_TARGETS",
1150
+ "type": {
1151
+ "text": "['_blank', '_self', '_parent', '_top']"
1152
+ },
1153
+ "default": "['_blank', '_self', '_parent', '_top']",
1154
+ "description": "Anchor browsing-context values"
1155
+ },
1156
+ {
1157
+ "kind": "variable",
1158
+ "name": "INPUT_TYPES",
1159
+ "type": {
1160
+ "text": "[\n 'text',\n 'email',\n 'password',\n 'number',\n 'tel',\n 'url',\n 'search',\n 'date',\n 'time',\n 'datetime-local',\n 'month',\n 'week',\n]"
1161
+ },
1162
+ "default": "[ 'text', 'email', 'password', 'number', 'tel', 'url', 'search', 'date', 'time', 'datetime-local', 'month', 'week', ]",
1163
+ "description": "Allowed HTML5 input type values for `<ore-input>`"
1164
+ },
1057
1165
  {
1058
1166
  "kind": "variable",
1059
1167
  "name": "AVATAR_GROUP_TAG",
@@ -1112,6 +1220,14 @@
1112
1220
  }
1113
1221
  ]
1114
1222
  },
1223
+ {
1224
+ "kind": "variable",
1225
+ "name": "AVATAR_STATUSES",
1226
+ "type": {
1227
+ "text": "['online', 'offline', 'busy', 'away']"
1228
+ },
1229
+ "default": "['online', 'offline', 'busy', 'away']"
1230
+ },
1115
1231
  {
1116
1232
  "kind": "variable",
1117
1233
  "name": "AVATAR_TAG",
@@ -1568,6 +1684,22 @@
1568
1684
  "summary": "",
1569
1685
  "demos": []
1570
1686
  },
1687
+ {
1688
+ "kind": "variable",
1689
+ "name": "CAROUSEL_ORIENTATIONS",
1690
+ "type": {
1691
+ "text": "['horizontal', 'vertical']"
1692
+ },
1693
+ "default": "['horizontal', 'vertical']"
1694
+ },
1695
+ {
1696
+ "kind": "variable",
1697
+ "name": "CAROUSEL_VARIANTS",
1698
+ "type": {
1699
+ "text": "['default', 'fade', 'filmstrip', 'gallery']"
1700
+ },
1701
+ "default": "['default', 'fade', 'filmstrip', 'gallery']"
1702
+ },
1571
1703
  {
1572
1704
  "kind": "variable",
1573
1705
  "name": "CAROUSEL_TAG",
@@ -1742,6 +1874,14 @@
1742
1874
  }
1743
1875
  ]
1744
1876
  },
1877
+ {
1878
+ "kind": "variable",
1879
+ "name": "CHAT_MESSAGE_STATUSES",
1880
+ "type": {
1881
+ "text": "['error', 'sending', 'sent']"
1882
+ },
1883
+ "default": "['error', 'sending', 'sent']"
1884
+ },
1745
1885
  {
1746
1886
  "kind": "variable",
1747
1887
  "name": "CHAT_MESSAGE_TAG",
@@ -2357,6 +2497,14 @@
2357
2497
  }
2358
2498
  ]
2359
2499
  },
2500
+ {
2501
+ "kind": "variable",
2502
+ "name": "KEYBOARD_KEY_SIZES",
2503
+ "type": {
2504
+ "text": "['sm', 'lg']"
2505
+ },
2506
+ "default": "['sm', 'lg']"
2507
+ },
2360
2508
  {
2361
2509
  "kind": "variable",
2362
2510
  "name": "KEYBOARD_SHORTCUT_TAG",
@@ -2607,6 +2755,15 @@
2607
2755
  }
2608
2756
  ]
2609
2757
  },
2758
+ {
2759
+ "kind": "variable",
2760
+ "name": "LIST_VARIANTS",
2761
+ "type": {
2762
+ "text": "['bordered', 'plain', 'separated']"
2763
+ },
2764
+ "default": "['bordered', 'plain', 'separated']",
2765
+ "description": "Visual variant for `ore-list`."
2766
+ },
2610
2767
  {
2611
2768
  "kind": "variable",
2612
2769
  "name": "LIST_CTX",
@@ -2693,6 +2850,14 @@
2693
2850
  }
2694
2851
  ]
2695
2852
  },
2853
+ {
2854
+ "kind": "variable",
2855
+ "name": "MARQUEE_DIRECTIONS",
2856
+ "type": {
2857
+ "text": "['left', 'right']"
2858
+ },
2859
+ "default": "['left', 'right']"
2860
+ },
2696
2861
  {
2697
2862
  "kind": "variable",
2698
2863
  "name": "MARQUEE_TAG",
@@ -2921,148 +3086,16 @@
2921
3086
  "type": {
2922
3087
  "text": "'ore-qr-code'"
2923
3088
  },
2924
- "default": "'ore-qr-code'",
2925
- "description": "Renders a QR code for `value` as inline SVG: themeable via `currentColor`,\ncrisp at any scale, no canvas. On capacity errors the component shows an\nerror state and emits `error` rather than throwing."
3089
+ "default": "'ore-qr-code'"
2926
3090
  },
2927
3091
  {
2928
3092
  "kind": "class",
2929
3093
  "name": "OreQrCodeElement",
2930
3094
  "tagName": "ore-qr-code",
2931
3095
  "customElement": true,
2932
- "description": "Renders a QR code for `value` as inline SVG: themeable via `currentColor`,\ncrisp at any scale, no canvas. On capacity errors the component shows an\nerror state and emits `error` rather than throwing.",
3096
+ "description": "",
2933
3097
  "summary": "",
2934
- "attributes": [
2935
- {
2936
- "name": "value",
2937
- "type": {
2938
- "text": "string"
2939
- },
2940
- "description": "The payload to encode"
2941
- },
2942
- {
2943
- "name": "error-correction",
2944
- "type": {
2945
- "text": "'L' | 'M' | 'Q' | 'H'"
2946
- },
2947
- "description": "'L' | 'M' | 'Q' | 'H' (default 'M')"
2948
- },
2949
- {
2950
- "name": "margin",
2951
- "type": {
2952
- "text": "number"
2953
- },
2954
- "description": "Quiet-zone modules (default 4)"
2955
- },
2956
- {
2957
- "name": "size",
2958
- "type": {
2959
- "text": "'sm' | 'md' | 'lg'"
2960
- },
2961
- "description": "'sm' | 'md' | 'lg', or a pixel value"
2962
- },
2963
- {
2964
- "name": "label",
2965
- "type": {
2966
- "text": "string"
2967
- },
2968
- "description": "Accessible label (default \"QR code\")"
2969
- },
2970
- {
2971
- "name": "rounded",
2972
- "type": {
2973
- "text": "string"
2974
- },
2975
- "description": "Border radius for the card variant"
2976
- }
2977
- ],
2978
- "events": [
2979
- {
2980
- "name": "render",
2981
- "description": "detail: `{ version, size }` after each successful render",
2982
- "type": {
2983
- "text": "CustomEvent"
2984
- }
2985
- },
2986
- {
2987
- "name": "error",
2988
- "description": "detail: `{ error }` when encoding fails",
2989
- "type": {
2990
- "text": "CustomEvent"
2991
- }
2992
- }
2993
- ],
2994
- "slots": [
2995
- {
2996
- "name": "caption",
2997
- "description": "Optional caption rendered below the code"
2998
- }
2999
- ],
3000
- "cssParts": [
3001
- {
3002
- "name": "wrapper",
3003
- "description": "Outer container"
3004
- },
3005
- {
3006
- "name": "svg",
3007
- "description": "The rendered `<svg>` element"
3008
- },
3009
- {
3010
- "name": "caption",
3011
- "description": "Caption slot container"
3012
- },
3013
- {
3014
- "name": "error",
3015
- "description": "Error-state container"
3016
- }
3017
- ],
3018
- "cssProperties": [
3019
- {
3020
- "name": "--qr-code-dark",
3021
- "description": "Module color (default `currentColor`)"
3022
- },
3023
- {
3024
- "name": "--qr-code-light",
3025
- "description": "Background color (default `transparent`)"
3026
- },
3027
- {
3028
- "name": "--qr-code-size",
3029
- "description": "Rendered size in px (overrides `size`)"
3030
- },
3031
- {
3032
- "name": "--qr-code-radius",
3033
- "description": "Border radius"
3034
- },
3035
- {
3036
- "name": "--qr-code-padding",
3037
- "description": "Inner padding"
3038
- },
3039
- {
3040
- "name": "--qr-code-bg",
3041
- "description": "Card background (variant=\"card\")"
3042
- },
3043
- {
3044
- "name": "--qr-code-border",
3045
- "description": "Card border width (variant=\"card\")"
3046
- },
3047
- {
3048
- "name": "--qr-code-border-color",
3049
- "description": "Card border color (variant=\"card\")"
3050
- },
3051
- {
3052
- "name": "--qr-code-shadow",
3053
- "description": "Card box shadow (variant=\"card\")"
3054
- },
3055
- {
3056
- "name": "--qr-code-error-color",
3057
- "description": "Error-state text color"
3058
- }
3059
- ],
3060
- "demos": [
3061
- {
3062
- "url": "",
3063
- "description": "```html\n<ore-qr-code value=\"https://example.com\"></ore-qr-code>\n<ore-qr-code value=\"otpauth://…\" error-correction=\"H\" size=\"256\"></ore-qr-code>\n```"
3064
- }
3065
- ]
3098
+ "demos": []
3066
3099
  },
3067
3100
  {
3068
3101
  "kind": "variable",
@@ -6312,6 +6345,15 @@
6312
6345
  },
6313
6346
  "default": "['solid', 'flat', 'bordered', 'outline', 'ghost', 'text', 'frost']"
6314
6347
  },
6348
+ {
6349
+ "kind": "variable",
6350
+ "name": "BUTTON_EFFECTS",
6351
+ "type": {
6352
+ "text": "['shine', 'rainbow']"
6353
+ },
6354
+ "default": "['shine', 'rainbow']",
6355
+ "description": "Animated border effect for ore-button."
6356
+ },
6315
6357
  {
6316
6358
  "kind": "variable",
6317
6359
  "name": "BUTTON_TAG",
@@ -6503,114 +6545,16 @@
6503
6545
  "type": {
6504
6546
  "text": "'ore-button-group'"
6505
6547
  },
6506
- "default": "'ore-button-group'",
6507
- "description": "A container for grouping related buttons.\nChild `ore-button` components automatically inherit the group's color, size, and variant."
6548
+ "default": "'ore-button-group'"
6508
6549
  },
6509
6550
  {
6510
6551
  "kind": "class",
6511
6552
  "name": "OreButtonGroupElement",
6512
6553
  "tagName": "ore-button-group",
6513
6554
  "customElement": true,
6514
- "description": "A container for grouping related buttons.\nChild `ore-button` components automatically inherit the group's color, size, and variant.",
6555
+ "description": "",
6515
6556
  "summary": "",
6516
- "attributes": [
6517
- {
6518
- "name": "attached",
6519
- "type": {
6520
- "text": "boolean"
6521
- },
6522
- "description": "Join buttons together into a unit"
6523
- },
6524
- {
6525
- "name": "color",
6526
- "type": {
6527
- "text": "'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'"
6528
- },
6529
- "description": "Shared color tint: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error'"
6530
- },
6531
- {
6532
- "name": "fullwidth",
6533
- "type": {
6534
- "text": "boolean"
6535
- },
6536
- "description": "Group spans full width"
6537
- },
6538
- {
6539
- "name": "label",
6540
- "type": {
6541
- "text": "string"
6542
- },
6543
- "description": "Accessible label"
6544
- },
6545
- {
6546
- "name": "orientation",
6547
- "type": {
6548
- "text": "'horizontal' | 'vertical'"
6549
- },
6550
- "description": "'horizontal' | 'vertical'"
6551
- },
6552
- {
6553
- "name": "rounded",
6554
- "type": {
6555
- "text": "'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full'"
6556
- },
6557
- "description": "Corner radius: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full' (bare attribute defaults to 'full')"
6558
- },
6559
- {
6560
- "name": "size",
6561
- "type": {
6562
- "text": "'sm' | 'md' | 'lg'"
6563
- },
6564
- "description": "Shared size: 'sm' | 'md' | 'lg'"
6565
- },
6566
- {
6567
- "name": "variant",
6568
- "type": {
6569
- "text": "'solid' | 'flat' | 'bordered' | 'outline' | 'ghost' | 'frost'"
6570
- },
6571
- "description": "Shared visual variant: 'solid' | 'flat' | 'bordered' | 'outline' | 'ghost' | 'frost'"
6572
- }
6573
- ],
6574
- "slots": [
6575
- {
6576
- "name": "",
6577
- "description": "Place ore-button elements here"
6578
- }
6579
- ],
6580
- "cssParts": [
6581
- {
6582
- "name": "group",
6583
- "description": "Group container."
6584
- }
6585
- ],
6586
- "cssProperties": [
6587
- {
6588
- "name": "--group-gap",
6589
- "description": "Gap between buttons (non-attached mode)"
6590
- },
6591
- {
6592
- "name": "--group-radius",
6593
- "description": "Border radius of the group container, defaults to the `rounded` attribute's token"
6594
- },
6595
- {
6596
- "name": "--button-radius",
6597
- "description": "Passed through to child buttons to control corner radius"
6598
- },
6599
- {
6600
- "name": "--button-border-start",
6601
- "description": "Passed through to suppress start borders in attached mode"
6602
- },
6603
- {
6604
- "name": "--button-border-top",
6605
- "description": "Passed through to suppress top borders in vertical attached mode"
6606
- }
6607
- ],
6608
- "demos": [
6609
- {
6610
- "url": "",
6611
- "description": "```html\n<ore-button-group attached rounded=\"full\">\n <ore-button variant=\"solid\" color=\"primary\">Save</ore-button>\n <ore-button variant=\"solid\" color=\"primary\">Save &amp; Continue</ore-button>\n</ore-button-group>\n<ore-button-group orientation=\"vertical\" size=\"sm\">\n <ore-button>Top</ore-button>\n <ore-button>Middle</ore-button>\n <ore-button>Bottom</ore-button>\n</ore-button-group>\n```"
6612
- }
6613
- ]
6557
+ "demos": []
6614
6558
  },
6615
6559
  {
6616
6560
  "kind": "variable",
@@ -7584,6 +7528,14 @@
7584
7528
  },
7585
7529
  "default": "{ activeFilters: (count) => `${count} active filter${count === 1 ? '' : 's'}`, addFilter: 'Add filter…', ascending: 'A → Z', clearAllFilters: 'Clear all filters', clearFiltersAndSearch: 'Clear all filters & search', clearSort: 'Clear sort', closeSearch: 'Close search', collapseRow: 'Collapse row', columnOptions: 'Column options', columnVisibility: 'Column visibility', comfortableDensity: 'Density: Comfortable', compactDensity: 'Density: Compact', contains: 'Contains', cozyDensity: 'Density: Cozy', data: 'Data', descending: 'Z → A', emptyValue: '(empty)', equals: 'Equals', expandRow: 'Expand row', filter: 'Filter', filterBy: 'Filter by', filterOperator: (field) => `${field} operator`, greaterThan: 'Greater than', hiddenColumns: (count) => `${count} hidden column${count === 1 ? '' : 's'}`, lessThan: 'Less than', nextPage: 'Next page', numericAscending: '0 → 9', numericDescending: '9 → 0', pageNavigation: 'Page navigation', pagination: 'Pagination', previousPage: 'Previous page', property: 'Property', range: (start, end, total) => `${start} to ${end} of ${total}`, removeFilter: 'Remove filter', resetColumns: 'Reset', rowDetails: 'Row details', rows: (count) => `${count} row${count === 1 ? '' : 's'}`, rowsPerPage: 'Rows per page', search: 'Search', selectAllRows: 'Select all rows on this page', selectRow: 'Select row', sort: 'Sort', sortBy: 'Sort by', views: 'Views', visibleColumns: (count, total) => `${count} of ${total} visible`, }"
7586
7530
  },
7531
+ {
7532
+ "kind": "variable",
7533
+ "name": "SELECTION_MODES",
7534
+ "type": {
7535
+ "text": "['multi', 'none', 'single']"
7536
+ },
7537
+ "default": "['multi', 'none', 'single']"
7538
+ },
7587
7539
  {
7588
7540
  "kind": "function",
7589
7541
  "name": "createDataGridModel",
@@ -13125,6 +13077,14 @@
13125
13077
  }
13126
13078
  ]
13127
13079
  },
13080
+ {
13081
+ "kind": "variable",
13082
+ "name": "ORE_MENU_ITEM_TYPES",
13083
+ "type": {
13084
+ "text": "['checkbox', 'radio']"
13085
+ },
13086
+ "default": "['checkbox', 'radio']"
13087
+ },
13128
13088
  {
13129
13089
  "kind": "variable",
13130
13090
  "name": "MENU_ITEM_TAG",