@mlola-ui/registry 1.0.10 → 1.0.11

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 (74) hide show
  1. package/components/accordion.json +2 -2
  2. package/components/alert.json +1 -1
  3. package/components/app-shell.json +1 -1
  4. package/components/badge.json +1 -1
  5. package/components/breadcrumb.json +1 -1
  6. package/components/button.json +1 -1
  7. package/components/calendar.json +1 -1
  8. package/components/carousel.json +2 -2
  9. package/components/checkbox.json +1 -1
  10. package/components/color-picker.json +1 -1
  11. package/components/combobox.json +2 -2
  12. package/components/command-menu.json +2 -2
  13. package/components/context-menu.json +2 -2
  14. package/components/copy-button.json +1 -1
  15. package/components/date-picker.json +1 -1
  16. package/components/dropdown-menu.json +2 -2
  17. package/components/dropzone.json +1 -1
  18. package/components/hover-card.json +1 -1
  19. package/components/modal.json +2 -2
  20. package/components/number-input.json +1 -1
  21. package/components/pagination.json +1 -1
  22. package/components/password-input.json +2 -2
  23. package/components/popover.json +1 -1
  24. package/components/segmented-control.json +1 -1
  25. package/components/select.json +2 -2
  26. package/components/sheet.json +2 -2
  27. package/components/slider.json +1 -1
  28. package/components/stepper.json +1 -1
  29. package/components/tabs.json +1 -1
  30. package/components/tag-input.json +1 -1
  31. package/components/time-picker.json +1 -1
  32. package/components/timeline.json +1 -1
  33. package/components/toast.json +1 -1
  34. package/components/tour.json +2 -2
  35. package/generated/catalog.js +43 -43
  36. package/index.json +1 -1
  37. package/package.json +1 -1
  38. package/snapshot/index.json +46 -46
  39. package/snapshot/items/components/accordion.json +2 -2
  40. package/snapshot/items/components/alert.json +1 -1
  41. package/snapshot/items/components/app-shell.json +1 -1
  42. package/snapshot/items/components/badge.json +1 -1
  43. package/snapshot/items/components/breadcrumb.json +1 -1
  44. package/snapshot/items/components/button.json +1 -1
  45. package/snapshot/items/components/calendar.json +1 -1
  46. package/snapshot/items/components/carousel.json +2 -2
  47. package/snapshot/items/components/checkbox.json +1 -1
  48. package/snapshot/items/components/color-picker.json +1 -1
  49. package/snapshot/items/components/combobox.json +2 -2
  50. package/snapshot/items/components/command-menu.json +2 -2
  51. package/snapshot/items/components/context-menu.json +2 -2
  52. package/snapshot/items/components/copy-button.json +1 -1
  53. package/snapshot/items/components/date-picker.json +1 -1
  54. package/snapshot/items/components/dropdown-menu.json +2 -2
  55. package/snapshot/items/components/dropzone.json +1 -1
  56. package/snapshot/items/components/hover-card.json +1 -1
  57. package/snapshot/items/components/modal.json +2 -2
  58. package/snapshot/items/components/number-input.json +1 -1
  59. package/snapshot/items/components/pagination.json +1 -1
  60. package/snapshot/items/components/password-input.json +2 -2
  61. package/snapshot/items/components/popover.json +1 -1
  62. package/snapshot/items/components/segmented-control.json +1 -1
  63. package/snapshot/items/components/select.json +2 -2
  64. package/snapshot/items/components/sheet.json +2 -2
  65. package/snapshot/items/components/slider.json +1 -1
  66. package/snapshot/items/components/stepper.json +1 -1
  67. package/snapshot/items/components/tabs.json +1 -1
  68. package/snapshot/items/components/tag-input.json +1 -1
  69. package/snapshot/items/components/time-picker.json +1 -1
  70. package/snapshot/items/components/timeline.json +1 -1
  71. package/snapshot/items/components/toast.json +1 -1
  72. package/snapshot/items/components/tour.json +2 -2
  73. package/snapshot/source/packages/components/_internal/match.ts +8 -0
  74. package/snapshot/source-manifest.json +1 -1
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/icons": "^1.0.10"
21
+ "@mlola-ui/icons": "^1.0.11"
22
22
  },
23
23
  "options": [
24
24
  {
@@ -23,7 +23,7 @@
23
23
  "sheet"
24
24
  ],
25
25
  "engineDependencies": {
26
- "@mlola-ui/icons": "^1.0.10"
26
+ "@mlola-ui/icons": "^1.0.11"
27
27
  },
28
28
  "options": [],
29
29
  "variants": [],
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/icons": "^1.0.10"
21
+ "@mlola-ui/icons": "^1.0.11"
22
22
  },
23
23
  "options": [
24
24
  {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "registryDependencies": [],
19
19
  "engineDependencies": {
20
- "@mlola-ui/icons": "^1.0.10"
20
+ "@mlola-ui/icons": "^1.0.11"
21
21
  },
22
22
  "options": [],
23
23
  "variants": [],
@@ -20,7 +20,7 @@
20
20
  "spinner"
21
21
  ],
22
22
  "engineDependencies": {
23
- "@mlola-ui/motion": "^1.0.10"
23
+ "@mlola-ui/motion": "^1.0.11"
24
24
  },
25
25
  "options": [
26
26
  {
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "registryDependencies": [],
21
21
  "engineDependencies": {
22
- "@mlola-ui/icons": "^1.0.10"
22
+ "@mlola-ui/icons": "^1.0.11"
23
23
  },
24
24
  "options": [
25
25
  {
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "registryDependencies": [],
21
21
  "engineDependencies": {
22
- "@mlola-ui/behavior": "^1.0.10",
23
- "@mlola-ui/icons": "^1.0.10"
22
+ "@mlola-ui/behavior": "^1.0.11",
23
+ "@mlola-ui/icons": "^1.0.11"
24
24
  },
25
25
  "options": [
26
26
  {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/icons": "^1.0.10"
21
+ "@mlola-ui/icons": "^1.0.11"
22
22
  },
23
23
  "options": [],
24
24
  "variants": [],
@@ -24,7 +24,7 @@
24
24
  "popover"
25
25
  ],
26
26
  "engineDependencies": {
27
- "@mlola-ui/icons": "^1.0.10"
27
+ "@mlola-ui/icons": "^1.0.11"
28
28
  },
29
29
  "options": [
30
30
  {
@@ -22,7 +22,7 @@
22
22
  "input"
23
23
  ],
24
24
  "engineDependencies": {
25
- "@mlola-ui/icons": "^1.0.10"
25
+ "@mlola-ui/icons": "^1.0.11"
26
26
  },
27
27
  "options": [
28
28
  {
@@ -41,7 +41,7 @@
41
41
  "path": "packages/components/_internal/match.ts",
42
42
  "target": "{{aliases.components}}/_internal/match.ts",
43
43
  "type": "registry:ui",
44
- "integrity": "sha256-nKBpKWeow5ubAHUhOW8yOjlrKs0lqYdjbaYYfE8VoII="
44
+ "integrity": "sha256-3tUYob6xmD2nLerh634E3R5iPbzMeNBzdDynsDFjj28="
45
45
  },
46
46
  {
47
47
  "path": "packages/components/_internal/react.ts",
@@ -22,7 +22,7 @@
22
22
  "modal"
23
23
  ],
24
24
  "engineDependencies": {
25
- "@mlola-ui/icons": "^1.0.10"
25
+ "@mlola-ui/icons": "^1.0.11"
26
26
  },
27
27
  "options": [],
28
28
  "variants": [],
@@ -32,7 +32,7 @@
32
32
  "path": "packages/components/_internal/match.ts",
33
33
  "target": "{{aliases.components}}/_internal/match.ts",
34
34
  "type": "registry:ui",
35
- "integrity": "sha256-nKBpKWeow5ubAHUhOW8yOjlrKs0lqYdjbaYYfE8VoII="
35
+ "integrity": "sha256-3tUYob6xmD2nLerh634E3R5iPbzMeNBzdDynsDFjj28="
36
36
  },
37
37
  {
38
38
  "path": "packages/components/_internal/react.ts",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "registryDependencies": [],
21
21
  "engineDependencies": {
22
- "@mlola-ui/behavior": "^1.0.10",
23
- "@mlola-ui/icons": "^1.0.10"
22
+ "@mlola-ui/behavior": "^1.0.11",
23
+ "@mlola-ui/icons": "^1.0.11"
24
24
  },
25
25
  "options": [],
26
26
  "variants": [],
@@ -20,7 +20,7 @@
20
20
  "button"
21
21
  ],
22
22
  "engineDependencies": {
23
- "@mlola-ui/icons": "^1.0.10"
23
+ "@mlola-ui/icons": "^1.0.11"
24
24
  },
25
25
  "options": [
26
26
  {
@@ -23,7 +23,7 @@
23
23
  "popover"
24
24
  ],
25
25
  "engineDependencies": {
26
- "@mlola-ui/icons": "^1.0.10"
26
+ "@mlola-ui/icons": "^1.0.11"
27
27
  },
28
28
  "options": [
29
29
  {
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/behavior": "^1.0.10",
22
- "@mlola-ui/icons": "^1.0.10"
21
+ "@mlola-ui/behavior": "^1.0.11",
22
+ "@mlola-ui/icons": "^1.0.11"
23
23
  },
24
24
  "options": [
25
25
  {
@@ -21,7 +21,7 @@
21
21
  "input"
22
22
  ],
23
23
  "engineDependencies": {
24
- "@mlola-ui/icons": "^1.0.10"
24
+ "@mlola-ui/icons": "^1.0.11"
25
25
  },
26
26
  "options": [],
27
27
  "variants": [],
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "registryDependencies": [],
21
21
  "engineDependencies": {
22
- "@mlola-ui/behavior": "^1.0.10"
22
+ "@mlola-ui/behavior": "^1.0.11"
23
23
  },
24
24
  "options": [
25
25
  {
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/behavior": "^1.0.10",
22
- "@mlola-ui/icons": "^1.0.10"
21
+ "@mlola-ui/behavior": "^1.0.11",
22
+ "@mlola-ui/icons": "^1.0.11"
23
23
  },
24
24
  "options": [
25
25
  {
@@ -22,7 +22,7 @@
22
22
  "input"
23
23
  ],
24
24
  "engineDependencies": {
25
- "@mlola-ui/icons": "^1.0.10"
25
+ "@mlola-ui/icons": "^1.0.11"
26
26
  },
27
27
  "options": [],
28
28
  "variants": [],
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/icons": "^1.0.10"
21
+ "@mlola-ui/icons": "^1.0.11"
22
22
  },
23
23
  "options": [],
24
24
  "variants": [],
@@ -20,8 +20,8 @@
20
20
  "input"
21
21
  ],
22
22
  "engineDependencies": {
23
- "@mlola-ui/behavior": "^1.0.10",
24
- "@mlola-ui/icons": "^1.0.10"
23
+ "@mlola-ui/behavior": "^1.0.11",
24
+ "@mlola-ui/icons": "^1.0.11"
25
25
  },
26
26
  "options": [
27
27
  {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/behavior": "^1.0.10"
21
+ "@mlola-ui/behavior": "^1.0.11"
22
22
  },
23
23
  "options": [
24
24
  {
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "registryDependencies": [],
21
21
  "engineDependencies": {
22
- "@mlola-ui/behavior": "^1.0.10"
22
+ "@mlola-ui/behavior": "^1.0.11"
23
23
  },
24
24
  "options": [],
25
25
  "variants": [],
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/behavior": "^1.0.10",
22
- "@mlola-ui/icons": "^1.0.10"
21
+ "@mlola-ui/behavior": "^1.0.11",
22
+ "@mlola-ui/icons": "^1.0.11"
23
23
  },
24
24
  "options": [
25
25
  {
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/behavior": "^1.0.10",
22
- "@mlola-ui/icons": "^1.0.10"
21
+ "@mlola-ui/behavior": "^1.0.11",
22
+ "@mlola-ui/icons": "^1.0.11"
23
23
  },
24
24
  "options": [
25
25
  {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/behavior": "^1.0.10"
21
+ "@mlola-ui/behavior": "^1.0.11"
22
22
  },
23
23
  "options": [
24
24
  {
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "registryDependencies": [],
22
22
  "engineDependencies": {
23
- "@mlola-ui/icons": "^1.0.10"
23
+ "@mlola-ui/icons": "^1.0.11"
24
24
  },
25
25
  "options": [
26
26
  {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/behavior": "^1.0.10"
21
+ "@mlola-ui/behavior": "^1.0.11"
22
22
  },
23
23
  "options": [
24
24
  {
@@ -23,7 +23,7 @@
23
23
  "input"
24
24
  ],
25
25
  "engineDependencies": {
26
- "@mlola-ui/icons": "^1.0.10"
26
+ "@mlola-ui/icons": "^1.0.11"
27
27
  },
28
28
  "options": [],
29
29
  "variants": [],
@@ -22,7 +22,7 @@
22
22
  "popover"
23
23
  ],
24
24
  "engineDependencies": {
25
- "@mlola-ui/icons": "^1.0.10"
25
+ "@mlola-ui/icons": "^1.0.11"
26
26
  },
27
27
  "options": [],
28
28
  "variants": [],
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "registryDependencies": [],
20
20
  "engineDependencies": {
21
- "@mlola-ui/icons": "^1.0.10"
21
+ "@mlola-ui/icons": "^1.0.11"
22
22
  },
23
23
  "options": [
24
24
  {
@@ -20,7 +20,7 @@
20
20
  "spinner"
21
21
  ],
22
22
  "engineDependencies": {
23
- "@mlola-ui/icons": "^1.0.10"
23
+ "@mlola-ui/icons": "^1.0.11"
24
24
  },
25
25
  "options": [
26
26
  {
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "registryDependencies": [],
22
22
  "engineDependencies": {
23
- "@mlola-ui/behavior": "^1.0.10",
24
- "@mlola-ui/icons": "^1.0.10"
23
+ "@mlola-ui/behavior": "^1.0.11",
24
+ "@mlola-ui/icons": "^1.0.11"
25
25
  },
26
26
  "options": [],
27
27
  "variants": [],
@@ -22,6 +22,14 @@ export function matchCommand(label: string, query: string, keywords: string[] =
22
22
  if (inside >= 0) return { score: 60 - inside * 0.5, positions: range(inside) };
23
23
  if (keywords.some((keyword) => keyword.toLowerCase().includes(needle))) return { score: 45, positions: [] };
24
24
 
25
+ // Several words, each starting a word somewhere in the label or keywords ("rate limit head" → "Limit headers" under "Rate limits").
26
+ const words = needle.split(/\s+/);
27
+ if (words.length > 1) {
28
+ const haystack = [text, ...keywords.map((keyword) => keyword.toLowerCase())].join(" ");
29
+ const startsWord = (word: string) => new RegExp(`\\b${word.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`).test(haystack);
30
+ if (words.every(startsWord)) return { score: 40, positions: [] };
31
+ }
32
+
25
33
  // Letters in order, preferring word starts and runs.
26
34
  const positions: number[] = [];
27
35
  let from = 0;
@@ -3,7 +3,7 @@
3
3
  "packages/components/_internal/clipboard.ts": "sha256-0y5p88CTXWuOrUYlC5J4XP1VCrOwkx9jYWVHmD2LouQ=",
4
4
  "packages/components/_internal/dialog.ts": "sha256-796y3oNOVWarLvICTdi+d0/2axqSrzLVJiyBeh9X7bU=",
5
5
  "packages/components/_internal/floating.ts": "sha256-+WxgC4CtAlSr2qA1EkoDTgto535XLIPsvtOfdOK6CHk=",
6
- "packages/components/_internal/match.ts": "sha256-nKBpKWeow5ubAHUhOW8yOjlrKs0lqYdjbaYYfE8VoII=",
6
+ "packages/components/_internal/match.ts": "sha256-3tUYob6xmD2nLerh634E3R5iPbzMeNBzdDynsDFjj28=",
7
7
  "packages/components/_internal/react.ts": "sha256-SH63/haiB4Q93uFjMIMe5xZbaxENu3VI+GcidV8HELM=",
8
8
  "packages/components/_internal/scroll.ts": "sha256-/YxhPPJa6Iax4q5eEs8dmpQp634TbvB+421MphEyscQ=",
9
9
  "packages/components/accordion/accordion.tsx": "sha256-0ALaLJd1fvj8Vbx86HLBKm3qUItrtwbrGJTykVfNSMg=",