@classic-homes/theme-mcp 0.1.4 → 0.1.6

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/index.js CHANGED
@@ -2384,7 +2384,7 @@ var component_catalog_default = {
2384
2384
  },
2385
2385
  {
2386
2386
  name: "options",
2387
- type: "SelectOption[]",
2387
+ type: "ComboboxOption[]",
2388
2388
  default: "Required",
2389
2389
  required: false,
2390
2390
  description: "Array of options"
@@ -2392,6 +2392,7 @@ var component_catalog_default = {
2392
2392
  {
2393
2393
  name: "placeholder",
2394
2394
  type: "string",
2395
+ default: "'Select an option...'",
2395
2396
  required: false,
2396
2397
  description: "Placeholder text"
2397
2398
  },
@@ -2426,7 +2427,19 @@ var component_catalog_default = {
2426
2427
  name: "id",
2427
2428
  type: "string",
2428
2429
  required: false,
2429
- description: "Element ID"
2430
+ description: "Element ID (auto-generated if empty)"
2431
+ },
2432
+ {
2433
+ name: "label",
2434
+ type: "string",
2435
+ required: false,
2436
+ description: "Label text"
2437
+ },
2438
+ {
2439
+ name: "hint",
2440
+ type: "string",
2441
+ required: false,
2442
+ description: "Hint text below the input"
2430
2443
  },
2431
2444
  {
2432
2445
  name: "error",
@@ -2459,6 +2472,12 @@ var component_catalog_default = {
2459
2472
  type: "(query: string) => void",
2460
2473
  required: false,
2461
2474
  description: "Callback for search queries"
2475
+ },
2476
+ {
2477
+ name: "class",
2478
+ type: "string",
2479
+ required: false,
2480
+ description: "Additional CSS classes"
2462
2481
  }
2463
2482
  ],
2464
2483
  variants: [],
@@ -2487,11 +2506,11 @@ var component_catalog_default = {
2487
2506
  },
2488
2507
  {
2489
2508
  title: "User Search",
2490
- code: '<script>\n let selectedUser = $state(\'\');\n let users = $state([]);\n let loading = $state(false);\n\n async function searchUsers(query: string) {\n if (!query) {\n users = [];\n return;\n }\n loading = true;\n const response = await fetch(`/api/users?search=${query}`);\n users = await response.json();\n loading = false;\n }\n</script>\n\n<Combobox\n options={users}\n bind:value={selectedUser}\n onSearch={searchUsers}\n {loading}\n placeholder="Search users..."\n emptyMessage="No users found"\n/>'
2509
+ code: '<script>\n let selectedUser = $state(\'\');\n let users = $state([]);\n let loading = $state(false);\n\n async function searchUsers(query: string) {\n if (!query) {\n users = [];\n return;\n }\n loading = true;\n const response = await fetch(`/api/users?search=${query}`);\n users = await response.json();\n loading = false;\n }\n</script>\n\n<Combobox\n label="User"\n options={users}\n bind:value={selectedUser}\n onSearch={searchUsers}\n {loading}\n placeholder="Search users..."\n emptyMessage="No users found"\n/>'
2491
2510
  },
2492
2511
  {
2493
2512
  title: "Location Autocomplete",
2494
- code: '<Combobox\n options={locations}\n bind:value\n onSearch={searchLocations}\n placeholder="Enter city or zip code..."\n emptyMessage="No locations found"\n/>'
2513
+ code: '<Combobox\n label="Location"\n hint="Enter a city name or zip code"\n options={locations}\n bind:value\n onSearch={searchLocations}\n placeholder="Enter city or zip code..."\n emptyMessage="No locations found"\n/>'
2495
2514
  }
2496
2515
  ],
2497
2516
  relatedComponents: [
@@ -3696,6 +3715,12 @@ var component_catalog_default = {
3696
3715
  required: false,
3697
3716
  description: "Label text"
3698
3717
  },
3718
+ {
3719
+ name: "hint",
3720
+ type: "string",
3721
+ required: false,
3722
+ description: "Hint text below the picker"
3723
+ },
3699
3724
  {
3700
3725
  name: "error",
3701
3726
  type: "string",
@@ -6617,7 +6642,7 @@ var component_catalog_default = {
6617
6642
  },
6618
6643
  {
6619
6644
  name: "options",
6620
- type: "SelectOption[]",
6645
+ type: "MultiSelectOption[]",
6621
6646
  default: "Required",
6622
6647
  required: false,
6623
6648
  description: "Array of options"
@@ -6625,9 +6650,17 @@ var component_catalog_default = {
6625
6650
  {
6626
6651
  name: "placeholder",
6627
6652
  type: "string",
6653
+ default: "'Select options...'",
6628
6654
  required: false,
6629
6655
  description: "Placeholder text"
6630
6656
  },
6657
+ {
6658
+ name: "emptyMessage",
6659
+ type: "string",
6660
+ default: "'No results found.'",
6661
+ required: false,
6662
+ description: "Message when no options match"
6663
+ },
6631
6664
  {
6632
6665
  name: "disabled",
6633
6666
  type: "boolean",
@@ -6643,10 +6676,28 @@ var component_catalog_default = {
6643
6676
  description: "Marks as required"
6644
6677
  },
6645
6678
  {
6646
- name: "maxItems",
6647
- type: "number",
6679
+ name: "name",
6680
+ type: "string",
6648
6681
  required: false,
6649
- description: "Maximum selections allowed"
6682
+ description: "Name attribute for forms"
6683
+ },
6684
+ {
6685
+ name: "id",
6686
+ type: "string",
6687
+ required: false,
6688
+ description: "Element ID (auto-generated if empty)"
6689
+ },
6690
+ {
6691
+ name: "label",
6692
+ type: "string",
6693
+ required: false,
6694
+ description: "Label text"
6695
+ },
6696
+ {
6697
+ name: "hint",
6698
+ type: "string",
6699
+ required: false,
6700
+ description: "Hint text below the input"
6650
6701
  },
6651
6702
  {
6652
6703
  name: "error",
@@ -6654,11 +6705,43 @@ var component_catalog_default = {
6654
6705
  required: false,
6655
6706
  description: "Error message"
6656
6707
  },
6708
+ {
6709
+ name: "max",
6710
+ type: "number",
6711
+ required: false,
6712
+ description: "Maximum selections allowed"
6713
+ },
6714
+ {
6715
+ name: "loading",
6716
+ type: "boolean",
6717
+ default: "false",
6718
+ required: false,
6719
+ description: "Shows loading state"
6720
+ },
6721
+ {
6722
+ name: "debounceMs",
6723
+ type: "number",
6724
+ default: "300",
6725
+ required: false,
6726
+ description: "Debounce time for search"
6727
+ },
6657
6728
  {
6658
6729
  name: "onValueChange",
6659
6730
  type: "(value: string[]) => void",
6660
6731
  required: false,
6661
6732
  description: "Callback when value changes"
6733
+ },
6734
+ {
6735
+ name: "onSearch",
6736
+ type: "(query: string) => void",
6737
+ required: false,
6738
+ description: "Callback for search queries"
6739
+ },
6740
+ {
6741
+ name: "class",
6742
+ type: "string",
6743
+ required: false,
6744
+ description: "Additional CSS classes"
6662
6745
  }
6663
6746
  ],
6664
6747
  variants: [],
@@ -6698,11 +6781,17 @@ var component_catalog_default = {
6698
6781
  ];
6699
6782
  </script>
6700
6783
 
6701
- <MultiSelect label="Tags" options={tagOptions} bind:value={tags} placeholder="Add tags..." />`
6784
+ <MultiSelect
6785
+ label="Tags"
6786
+ hint="Add relevant tags"
6787
+ options={tagOptions}
6788
+ bind:value={tags}
6789
+ placeholder="Add tags..."
6790
+ />`
6702
6791
  },
6703
6792
  {
6704
6793
  title: "Team Members",
6705
- code: '<MultiSelect\n label="Assign to"\n options={teamMembers}\n bind:value={assignees}\n maxItems={5}\n placeholder="Select team members..."\n/>'
6794
+ code: '<MultiSelect\n label="Assign to"\n hint="Select team members to assign this task"\n options={teamMembers}\n bind:value={assignees}\n max={5}\n placeholder="Select team members..."\n/>'
6706
6795
  }
6707
6796
  ],
6708
6797
  relatedComponents: [
@@ -6847,8 +6936,8 @@ var component_catalog_default = {
6847
6936
  props: [
6848
6937
  {
6849
6938
  name: "value",
6850
- type: "number",
6851
- default: "0",
6939
+ type: "number | null",
6940
+ default: "null",
6852
6941
  required: false,
6853
6942
  description: "Current value (bindable)"
6854
6943
  },
@@ -6878,18 +6967,57 @@ var component_catalog_default = {
6878
6967
  required: false,
6879
6968
  description: "Disables the input"
6880
6969
  },
6970
+ {
6971
+ name: "readonly",
6972
+ type: "boolean",
6973
+ default: "false",
6974
+ required: false,
6975
+ description: "Makes input read-only"
6976
+ },
6977
+ {
6978
+ name: "required",
6979
+ type: "boolean",
6980
+ default: "false",
6981
+ required: false,
6982
+ description: "Marks field as required"
6983
+ },
6881
6984
  {
6882
6985
  name: "placeholder",
6883
6986
  type: "string",
6884
6987
  required: false,
6885
6988
  description: "Placeholder text"
6886
6989
  },
6990
+ {
6991
+ name: "name",
6992
+ type: "string",
6993
+ required: false,
6994
+ description: "Name attribute for form submission"
6995
+ },
6996
+ {
6997
+ name: "id",
6998
+ type: "string",
6999
+ required: false,
7000
+ description: "Element ID (auto-generated if empty)"
7001
+ },
7002
+ {
7003
+ name: "showStepper",
7004
+ type: "boolean",
7005
+ default: "true",
7006
+ required: false,
7007
+ description: "Show +/- stepper buttons"
7008
+ },
6887
7009
  {
6888
7010
  name: "label",
6889
7011
  type: "string",
6890
7012
  required: false,
6891
7013
  description: "Label text"
6892
7014
  },
7015
+ {
7016
+ name: "hint",
7017
+ type: "string",
7018
+ required: false,
7019
+ description: "Hint text below the input"
7020
+ },
6893
7021
  {
6894
7022
  name: "error",
6895
7023
  type: "string",
@@ -6898,9 +7026,15 @@ var component_catalog_default = {
6898
7026
  },
6899
7027
  {
6900
7028
  name: "onValueChange",
6901
- type: "(value: number) => void",
7029
+ type: "(value: number | null) => void",
6902
7030
  required: false,
6903
7031
  description: "Callback when value changes"
7032
+ },
7033
+ {
7034
+ name: "class",
7035
+ type: "string",
7036
+ required: false,
7037
+ description: "Additional CSS classes"
6904
7038
  }
6905
7039
  ],
6906
7040
  variants: [],
@@ -6963,17 +7097,48 @@ var component_catalog_default = {
6963
7097
  description: "Disables the input"
6964
7098
  },
6965
7099
  {
6966
- name: "error",
7100
+ name: "required",
7101
+ type: "boolean",
7102
+ default: "false",
7103
+ required: false,
7104
+ description: "Marks field as required"
7105
+ },
7106
+ {
7107
+ name: "type",
7108
+ type: "'numeric' | 'alphanumeric'",
7109
+ default: "'numeric'",
7110
+ required: false,
7111
+ description: "Input type"
7112
+ },
7113
+ {
7114
+ name: "name",
6967
7115
  type: "string",
6968
7116
  required: false,
6969
- description: "Error message"
7117
+ description: "Name attribute for form submission"
6970
7118
  },
6971
7119
  {
6972
- name: "autoFocus",
6973
- type: "boolean",
6974
- default: "false",
7120
+ name: "id",
7121
+ type: "string",
7122
+ required: false,
7123
+ description: "Element ID (auto-generated if empty)"
7124
+ },
7125
+ {
7126
+ name: "label",
7127
+ type: "string",
6975
7128
  required: false,
6976
- description: "Auto-focus first input"
7129
+ description: "Label text"
7130
+ },
7131
+ {
7132
+ name: "hint",
7133
+ type: "string",
7134
+ required: false,
7135
+ description: "Hint text below the input"
7136
+ },
7137
+ {
7138
+ name: "error",
7139
+ type: "string",
7140
+ required: false,
7141
+ description: "Error message"
6977
7142
  },
6978
7143
  {
6979
7144
  name: "onComplete",
@@ -6986,9 +7151,24 @@ var component_catalog_default = {
6986
7151
  type: "(value: string) => void",
6987
7152
  required: false,
6988
7153
  description: "Callback when value changes"
7154
+ },
7155
+ {
7156
+ name: "class",
7157
+ type: "string",
7158
+ required: false,
7159
+ description: "Additional CSS classes"
7160
+ }
7161
+ ],
7162
+ variants: [
7163
+ {
7164
+ name: "type",
7165
+ values: [
7166
+ "numeric",
7167
+ "alphanumeric"
7168
+ ],
7169
+ default: "numeric"
6989
7170
  }
6990
7171
  ],
6991
- variants: [],
6992
7172
  slots: [
6993
7173
  {
6994
7174
  name: "children",
@@ -7026,8 +7206,13 @@ var component_catalog_default = {
7026
7206
  </script>
7027
7207
 
7028
7208
  <div class="text-center space-y-4">
7029
- <p class="text-muted-foreground">Enter the 6-digit code sent to your email</p>
7030
- <OTPInput bind:value={code} {error} autoFocus onComplete={handleComplete} />
7209
+ <OTPInput
7210
+ label="Verification Code"
7211
+ hint="Enter the 6-digit code sent to your email"
7212
+ bind:value={code}
7213
+ {error}
7214
+ onComplete={handleComplete}
7215
+ />
7031
7216
  {#if verifying}
7032
7217
  <Spinner label="Verifying..." />
7033
7218
  {/if}
@@ -7035,7 +7220,7 @@ var component_catalog_default = {
7035
7220
  },
7036
7221
  {
7037
7222
  title: "Two-Factor Authentication",
7038
- code: "<OTPInput bind:value={twoFactorCode} length={6} autoFocus onComplete={verify2FA} />"
7223
+ code: '<OTPInput\n label="Authentication Code"\n hint="Enter code from your authenticator app"\n bind:value={twoFactorCode}\n length={6}\n onComplete={verify2FA}\n/>'
7039
7224
  }
7040
7225
  ],
7041
7226
  relatedComponents: [
@@ -7729,6 +7914,12 @@ var component_catalog_default = {
7729
7914
  required: false,
7730
7915
  description: "Group label"
7731
7916
  },
7917
+ {
7918
+ name: "hint",
7919
+ type: "string",
7920
+ required: false,
7921
+ description: "Hint text below the radio group"
7922
+ },
7732
7923
  {
7733
7924
  name: "orientation",
7734
7925
  type: "'horizontal' | 'vertical'",
@@ -7754,7 +7945,7 @@ var component_catalog_default = {
7754
7945
  name: "name",
7755
7946
  type: "string",
7756
7947
  required: false,
7757
- description: "Name attribute for forms"
7948
+ description: "Name attribute for forms (auto-generated if empty)"
7758
7949
  },
7759
7950
  {
7760
7951
  name: "error",
@@ -7832,6 +8023,7 @@ var component_catalog_default = {
7832
8023
 
7833
8024
  <RadioGroup
7834
8025
  label="Shipping Method"
8026
+ hint="Free shipping on orders over $50"
7835
8027
  name="shipping"
7836
8028
  options={shippingOptions}
7837
8029
  bind:value={shipping}
@@ -7869,6 +8061,7 @@ var component_catalog_default = {
7869
8061
  title: "Survey Scale",
7870
8062
  code: `<RadioGroup
7871
8063
  label="How satisfied are you?"
8064
+ hint="1 = Very Dissatisfied, 5 = Very Satisfied"
7872
8065
  name="satisfaction"
7873
8066
  options={[
7874
8067
  { value: '1', label: 'Very Dissatisfied' },
@@ -8277,13 +8470,19 @@ var component_catalog_default = {
8277
8470
  name: "id",
8278
8471
  type: "string",
8279
8472
  required: false,
8280
- description: "Element ID for accessibility"
8473
+ description: "Element ID (auto-generated if empty)"
8281
8474
  },
8282
8475
  {
8283
8476
  name: "label",
8284
8477
  type: "string",
8285
8478
  required: false,
8286
- description: "Optional label displayed above"
8479
+ description: "Label text"
8480
+ },
8481
+ {
8482
+ name: "hint",
8483
+ type: "string",
8484
+ required: false,
8485
+ description: "Hint text below the select"
8287
8486
  },
8288
8487
  {
8289
8488
  name: "error",
@@ -9005,6 +9204,18 @@ var component_catalog_default = {
9005
9204
  required: false,
9006
9205
  description: "Label text"
9007
9206
  },
9207
+ {
9208
+ name: "hint",
9209
+ type: "string",
9210
+ required: false,
9211
+ description: "Hint text below the slider"
9212
+ },
9213
+ {
9214
+ name: "error",
9215
+ type: "string",
9216
+ required: false,
9217
+ description: "Error message"
9218
+ },
9008
9219
  {
9009
9220
  name: "showValue",
9010
9221
  type: "boolean",
@@ -9071,15 +9282,15 @@ var component_catalog_default = {
9071
9282
  },
9072
9283
  {
9073
9284
  title: "Volume Control",
9074
- code: '<script>\n let volume = $state([70]);\n</script>\n\n<Slider\n label="Volume"\n bind:value={volume}\n min={0}\n max={100}\n showValue\n formatValue={(v) => `${v}%`}\n/>'
9285
+ code: '<script>\n let volume = $state([70]);\n</script>\n\n<Slider\n label="Volume"\n hint="Adjust speaker volume"\n bind:value={volume}\n min={0}\n max={100}\n showValue\n formatValue={(v) => `${v}%`}\n/>'
9075
9286
  },
9076
9287
  {
9077
9288
  title: "Price Filter",
9078
- code: '<script>\n let priceRange = $state([0, 500]);\n</script>\n\n<Slider\n label="Price Range"\n bind:value={priceRange}\n min={0}\n max={1000}\n step={10}\n showValue\n formatValue={(v) => `$${v}`}\n/>'
9289
+ code: '<script>\n let priceRange = $state([0, 500]);\n</script>\n\n<Slider\n label="Price Range"\n hint="Filter products by price"\n bind:value={priceRange}\n min={0}\n max={1000}\n step={10}\n showValue\n formatValue={(v) => `$${v}`}\n/>'
9079
9290
  },
9080
9291
  {
9081
9292
  title: "Temperature",
9082
- code: '<script>\n let temp = $state([72]);\n</script>\n\n<Slider\n label="Temperature"\n bind:value={temp}\n min={60}\n max={85}\n showValue\n formatValue={(v) => `${v}\xB0F`}\n/>'
9293
+ code: '<script>\n let temp = $state([72]);\n</script>\n\n<Slider\n label="Temperature"\n hint="Set thermostat temperature"\n bind:value={temp}\n min={60}\n max={85}\n showValue\n formatValue={(v) => `${v}\xB0F`}\n/>'
9083
9294
  },
9084
9295
  {
9085
9296
  title: "Opacity Control",
@@ -9094,6 +9305,7 @@ var component_catalog_default = {
9094
9305
 
9095
9306
  <Slider
9096
9307
  label="Rating"
9308
+ hint="Rate your experience"
9097
9309
  bind:value={rating}
9098
9310
  min={1}
9099
9311
  max={5}