@spothero/ui 25.2.0 → 25.4.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.
package/dist/index.esm.js CHANGED
@@ -433,7 +433,8 @@ const colors = {
433
433
  default: yellow['400']
434
434
  }),
435
435
  primary: _objectSpread2(_objectSpread2({}, blue), {}, {
436
- default: blue['500']
436
+ default: blue['500'],
437
+ brand: blue['500']
437
438
  }),
438
439
  secondary: _objectSpread2(_objectSpread2({}, navy), {}, {
439
440
  default: navy['900']
@@ -806,14 +807,14 @@ const destructiveButtonStyles = {
806
807
  * ## OKLCH Color Adjustments Reference
807
808
  * | State | OKLCH Calculation | Visual Effect |
808
809
  * |-------|-------------------|---------------|
809
- * | Default | `primary.default` | Base color |
810
+ * | Default | `primary.brand` | Base color |
810
811
  * | Hover (light bg) | `calc(l - 0.1)` | 10% darker (lightness) |
811
812
  * | Active/Pressed | `calc(l - 0.15)` | 15% darker (lightness) |
812
813
  * | Hover (secondary) | `calc(l - 0.3)` | 3% darker (lightness) |
813
814
  * | Active/Pressed (secondary) | `calc(l - 0.6)` | 6% darker (lightness) |
814
815
  * | Hover (dark bg) | `calc(l + 0.1)` | 10% lighter (lightness) |
815
816
  * | Disabled | `opacity: 0.4` | 60% transparent |
816
- */
817
+ */
817
818
 
818
819
  //Helper function to make oklch color strings
819
820
  const generateOklchColor = (colorVar, adjustment) => {
@@ -821,9 +822,9 @@ const generateOklchColor = (colorVar, adjustment) => {
821
822
  };
822
823
 
823
824
  // 10% darker (lightness)
824
- const hoverPrimaryColor = generateOklchColor('primary-default', '- 0.1');
825
+ const hoverPrimaryColor = generateOklchColor('primary-brand', '- 0.1');
825
826
  // 15% darker (lightness)
826
- const activePrimaryColor = generateOklchColor('primary-default', '- 0.15');
827
+ const activePrimaryColor = generateOklchColor('primary-brand', '- 0.15');
827
828
  // 3% darker (lightness)
828
829
  const hoverSecondaryColor = generateOklchColor('white', '- 0.03');
829
830
  // 6% darker (lightness)
@@ -836,7 +837,7 @@ const hoverDarkColor = generateOklchColor('yellow-default', '+ 0.1');
836
837
  *
837
838
  * This implementation uses OKLCH relative color syntax for perceptually uniform color adjustments.
838
839
  * Benefits:
839
- * - White-label theming: Only need ONE brand color (primary.default)
840
+ * - White-label theming: Only need ONE brand color (primary.brand)
840
841
  * - No package dependencies (native CSS)
841
842
  * - Text color NOT affected (unlike CSS filters)
842
843
  * - Perceptually uniform adjustments (10% lighter looks consistent across all hues)
@@ -854,8 +855,8 @@ const hoverDarkColor = generateOklchColor('yellow-default', '+ 0.1');
854
855
  */
855
856
  const variants$d = {
856
857
  primary: {
857
- bg: 'primary.default',
858
- borderColor: 'primary.default',
858
+ bg: 'primary.brand',
859
+ borderColor: 'primary.brand',
859
860
  color: 'white',
860
861
  _hover: _objectSpread2({
861
862
  bg: hoverPrimaryColor,
@@ -2138,9 +2139,7 @@ var Link_styles = merge(theme$2.components.Link, {
2138
2139
  defaultProps: defaultProps$5
2139
2140
  });
2140
2141
 
2141
- const { definePartsStyle: definePartsStyle$1, defineMultiStyleConfig: defineMultiStyleConfig$1 } =
2142
- createMultiStyleConfigHelpers(accordionAnatomy.keys);
2143
-
2142
+ const { definePartsStyle: definePartsStyle$1, defineMultiStyleConfig: defineMultiStyleConfig$1 } = createMultiStyleConfigHelpers(accordionAnatomy.keys);
2144
2143
  const baseStyle$9 = definePartsStyle$1({
2145
2144
  icon: {
2146
2145
  color: 'primary.default',
@@ -2159,7 +2158,6 @@ const baseStyle$9 = definePartsStyle$1({
2159
2158
  borderColor: 'gray.medium',
2160
2159
  },
2161
2160
  });
2162
-
2163
2161
  const variants$7 = {
2164
2162
  lined: {
2165
2163
  button: {
@@ -2221,21 +2219,18 @@ const variants$7 = {
2221
2219
  },
2222
2220
  }
2223
2221
  };
2224
-
2225
2222
  const defaultProps$4 = {
2226
2223
  variant: 'lined',
2227
2224
  };
2228
-
2229
- const accordionTheme = defineMultiStyleConfig$1({
2225
+ const accordionTheme = defineMultiStyleConfig$1({
2230
2226
  baseStyle: baseStyle$9,
2231
2227
  variants: variants$7,
2232
2228
  //TODO: add @rollup/plugin-typescript to this project
2233
2229
  //@ts-expect-error - This is due to babel not having a ts parser in it
2234
2230
  defaultProps: defaultProps$4,
2235
2231
  });
2236
-
2237
2232
  const theme$1 = extendTheme({
2238
- ...accordionTheme,
2233
+ ...accordionTheme,
2239
2234
  });
2240
2235
 
2241
2236
  const colorScheme = {
@@ -2532,27 +2527,23 @@ var index$5 = merge(inputStyles, {
2532
2527
  variants: variants$4
2533
2528
  });
2534
2529
 
2535
- const { definePartsStyle, defineMultiStyleConfig } =
2536
- createMultiStyleConfigHelpers(selectAnatomy.keys);
2537
-
2530
+ const { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(selectAnatomy.keys);
2538
2531
  const refreshed = definePartsStyle({
2539
- field: {
2540
- ...selectStyles.variants.outline.field,
2541
- height: 'auto',
2542
- paddingTop: 6,
2543
- paddingBottom: 3,
2544
- },
2545
- icon: {
2546
- ...selectStyles.variants.outline.field,
2547
- }
2532
+ field: {
2533
+ ...selectStyles.variants.outline.field,
2534
+ height: 'auto',
2535
+ paddingTop: 6,
2536
+ paddingBottom: 3,
2537
+ },
2538
+ icon: {
2539
+ ...selectStyles.variants.outline.field,
2540
+ }
2548
2541
  });
2549
-
2550
2542
  const selectTheme = defineMultiStyleConfig({
2551
- variants: { refreshed },
2543
+ variants: { refreshed },
2552
2544
  });
2553
-
2554
2545
  const theme = extendTheme({
2555
- components: { Select: selectTheme },
2546
+ components: { Select: selectTheme },
2556
2547
  });
2557
2548
 
2558
2549
  const variants$3 = {
@@ -3266,7 +3257,7 @@ const ThemeProvider = /*#__PURE__*/forwardRef((_ref, ref) => {
3266
3257
  props = _objectWithoutProperties(_ref, _excluded$h);
3267
3258
  return /*#__PURE__*/React__default.createElement(ChakraProvider, _extends$6({}, props, {
3268
3259
  ref: ref,
3269
- theme: merge(THEME, theme)
3260
+ theme: merge({}, THEME, theme)
3270
3261
  }), disableExternalFonts ? null : /*#__PURE__*/React__default.createElement(Fonts, null), /*#__PURE__*/React__default.createElement(LegacyOverrides, {
3271
3262
  useLegacyOverrides: useLegacyOverrides
3272
3263
  }), children);