@lime-bundles/widget 2.5.0 → 2.6.0

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.
@@ -122,6 +122,17 @@ The variant dropdown is an accessible custom combobox (not a native `<select>`).
122
122
  | `--lb-popular-badge-border-width` | `0px` | Badge border width. |
123
123
  | `--lb-popular-badge-radius` | `12px` | Badge corner radius. |
124
124
 
125
+ ## "Only X left" low-stock badge
126
+
127
+ Surfaces when a variant's `quantityAvailable` is at or below
128
+ `widgetConfig.lowStockThreshold`. Hidden when stock is unknown
129
+ (Storefront token without `unauthenticated_read_product_inventory`).
130
+
131
+ | Variable | Default | What it styles |
132
+ |---|---|---|
133
+ | `--lb-low-stock-bg` | `#FEF3C7` | Badge background. |
134
+ | `--lb-low-stock-text` | `#92400E` | Badge text. |
135
+
125
136
  ## Mix-and-match picker modal
126
137
 
127
138
  | Variable | Default | What it styles |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lime-bundles/widget",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "Drop-in <lime-bundle> web component for the Lime Bundles Shopify app. Embed merchant-configured bundles on Hydrogen, Astro, Vue, Svelte, or any JavaScript-enabled headless storefront.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -46,7 +46,7 @@
46
46
  "typecheck": "tsc --noEmit"
47
47
  },
48
48
  "dependencies": {
49
- "@lime-bundles/core": "^2.5.0"
49
+ "@lime-bundles/core": "^2.6.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "tsup": "^8.0.0",