@nimbus-ds/styles 9.18.0-rc.1 → 9.19.0-rc.1

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.d.ts CHANGED
@@ -13,6 +13,35 @@ export interface ThemeProviderContextProps {
13
13
  currentTheme: Theme;
14
14
  }
15
15
  export declare const useTheme: () => ThemeProviderContextProps;
16
+ /**
17
+ * Creates a linear gradient with flexible direction and multiple color stops
18
+ * @param direction - The direction of the gradient (e.g., "180deg", "to right", "45deg")
19
+ * @param colorStops - Variable number of color stops (e.g., "red", "blue 50%", "rgba(0,255,0,0.8)")
20
+ * @returns CSS linear-gradient string
21
+ *
22
+ * @example
23
+ * createLinearGradient("180deg", "red", "blue")
24
+ * createLinearGradient("to right", "red 0%", "yellow 50%", "blue 100%")
25
+ * createLinearGradient("45deg", "rgba(255,0,0,0.5)", "transparent")
26
+ */
27
+ export declare const createLinearGradient: (direction: string, ...colorStops: string[]) => string;
28
+ /**
29
+ * Creates a border gradient with a fallback background color.
30
+ * @param gradient - The gradient to use for the border. Commonly the return value of createLinearGradient function.
31
+ * @param backgroundColor - The background color to use for the fallback.
32
+ * @returns An array with the fallback background color and the border gradient.
33
+ * @example Use case with vanilla-extract:
34
+ * ```ts
35
+ * const variants = vanillaStyle({
36
+ * background: createBorderGradient(gradients.aiGradient, "white"),
37
+ * border: `${varsThemeBase.shape.border.width[2]} solid transparent`, // Defines the gradient width, and makes the border transparent to ensure the gradient is visible.
38
+ * });
39
+ * ```
40
+ */
41
+ export declare const createBorderGradient: (gradient: string, backgroundColor: string) => [
42
+ string,
43
+ string
44
+ ];
16
45
  export declare const badge: {
17
46
  classnames: {
18
47
  surface: Record<"primary" | "success" | "warning" | "danger" | "neutral", string>;
@@ -2901,7 +2930,7 @@ export declare const checkbox: {
2901
2930
  };
2902
2931
  export declare const chip: {
2903
2932
  classnames: {
2904
- base: string;
2933
+ appearance: Record<"neutral", string>;
2905
2934
  chip_close_icon_container: string;
2906
2935
  };
2907
2936
  };
@@ -3113,7 +3142,7 @@ export declare const input: {
3113
3142
  input: string;
3114
3143
  container: string;
3115
3144
  container__icon: string;
3116
- container__icon_append: Record<"end" | "start", string>;
3145
+ container__icon_append: Record<"start" | "end", string>;
3117
3146
  container__button: string;
3118
3147
  appearance: Record<"success" | "warning" | "danger" | "neutral", string>;
3119
3148
  };