@swan-io/lake 2.1.1 → 2.1.3

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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@swan-io/lake",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "engines": {
5
- "node": ">=14.0.0",
6
- "yarn": "^1.20.0"
5
+ "node": ">=18.0.0",
6
+ "yarn": "^1.22.0"
7
7
  },
8
8
  "files": [
9
9
  "LICENSE",
@@ -26,10 +26,10 @@
26
26
  ],
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@popperjs/core": "^2.11.7",
29
+ "@popperjs/core": "^2.11.8",
30
30
  "@swan-io/boxed": "^1.0.2",
31
31
  "@swan-io/chicane": "^1.4.0",
32
- "dayjs": "^1.11.7",
32
+ "dayjs": "^1.11.8",
33
33
  "polished": "^4.2.2",
34
34
  "prism-react-renderer": "^2.0.4",
35
35
  "react": "^18.2.0",
@@ -41,15 +41,15 @@
41
41
  "rifm": "^0.12.1",
42
42
  "ts-dedent": "^2.2.0",
43
43
  "ts-pattern": "^4.3.0",
44
- "urql": "^4.0.2",
44
+ "urql": "^4.0.3",
45
45
  "uuid": "^9.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@types/react": "^18.2.7",
48
+ "@types/react": "^18.2.8",
49
49
  "@types/react-dom": "^18.2.4",
50
- "@types/react-native": "^0.72.1",
50
+ "@types/react-native": "^0.72.2",
51
51
  "@types/uuid": "^9.0.1",
52
- "jsdom": "^22.0.0",
53
- "type-fest": "^3.11.0"
52
+ "jsdom": "^22.1.0",
53
+ "type-fest": "^3.11.1"
54
54
  }
55
55
  }
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ type Props = {
3
+ trigger: ReactNode;
4
+ children: ReactNode;
5
+ };
6
+ export declare const Accordion: ({ trigger, children }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,45 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from "react";
3
+ import { Pressable, StyleSheet, View } from "react-native";
4
+ import { backgroundColor, colors, spacings } from "../constants/design";
5
+ import { useDisclosure } from "../hooks/useDisclosure";
6
+ import { Icon } from "./Icon";
7
+ import { LakeText } from "./LakeText";
8
+ import { Space } from "./Space";
9
+ const styles = StyleSheet.create({
10
+ trigger: {
11
+ flexDirection: "row",
12
+ alignItems: "center",
13
+ backgroundColor: backgroundColor.accented,
14
+ paddingVertical: spacings[12],
15
+ paddingHorizontal: spacings[20],
16
+ },
17
+ arrow: {
18
+ transitionProperty: "transform",
19
+ transitionDuration: "200ms",
20
+ },
21
+ arrowOpen: {
22
+ transform: "rotate(90deg)",
23
+ },
24
+ contentContainer: {
25
+ display: "grid",
26
+ gridTemplateRows: "0fr",
27
+ transitionProperty: "grid-template-rows",
28
+ transitionDuration: "300ms",
29
+ },
30
+ contentContainerDisplayed: {
31
+ gridTemplateRows: "1fr",
32
+ },
33
+ contentInner: {
34
+ overflow: "hidden",
35
+ },
36
+ content: {
37
+ paddingVertical: spacings[12],
38
+ paddingHorizontal: spacings[20],
39
+ },
40
+ });
41
+ export const Accordion = ({ trigger, children }) => {
42
+ const id = useId();
43
+ const [isOpen, { toggle }] = useDisclosure(false);
44
+ return (_jsxs(View, { children: [_jsxs(Pressable, { "aria-expanded": isOpen, "aria-controls": id, style: styles.trigger, onPress: toggle, children: [_jsx(Icon, { name: "chevron-right-filled", size: 12, color: colors.gray[500], style: [styles.arrow, isOpen && styles.arrowOpen] }), _jsx(Space, { width: 20 }), typeof trigger === "string" ? (_jsx(LakeText, { variant: "smallMedium", color: colors.gray[900], children: trigger })) : (trigger)] }), _jsx(View, { "aria-labelledby": id, "aria-hidden": !isOpen, role: "region", style: [styles.contentContainer, isOpen && styles.contentContainerDisplayed], children: _jsx(View, { style: styles.contentInner, children: _jsx(View, { style: styles.content, children: children }) }) })] }));
45
+ };
@@ -59,5 +59,5 @@ type FiltersStackProps<Definition extends FiltersDefinition, State extends Filte
59
59
  onChangeOpened: (value: (keyof Definition)[]) => void;
60
60
  onChangeFilters: (value: State) => void;
61
61
  };
62
- export declare const FiltersStack: <T extends FiltersDefinition>({ filters, openedFilters, definition, onChangeOpened, onChangeFilters, }: FiltersStackProps<T, { [K in keyof T]: ExtractFilterValue<T[K]> extends infer T_2 ? { [KeyType_2 in keyof T_2]: ExtractFilterValue<T[K]>[KeyType_2]; } : never; } extends infer T_1 ? { [KeyType_1 in keyof T_1]: { [K in keyof T]: ExtractFilterValue<T[K]> extends infer T_2 ? { [KeyType_2 in keyof T_2]: ExtractFilterValue<T[K]>[KeyType_2]; } : never; }[KeyType_1]; } : never>) => import("react/jsx-runtime").JSX.Element | null;
62
+ export declare const FiltersStack: <T extends FiltersDefinition>({ filters, openedFilters, definition, onChangeOpened, onChangeFilters, }: FiltersStackProps<T, { [KeyType_2 in keyof { [K in keyof T]: ExtractFilterValue<T[K]> extends infer T_1 ? { [KeyType_1 in keyof T_1]: ExtractFilterValue<T[K]>[KeyType_1]; } : never; }]: { [K in keyof T]: ExtractFilterValue<T[K]> extends infer T_1 ? { [KeyType_1 in keyof T_1]: ExtractFilterValue<T[K]>[KeyType_1]; } : never; }[KeyType_2]; }>) => import("react/jsx-runtime").JSX.Element | null;
63
63
  export {};
@@ -67,7 +67,7 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
67
67
  role?: import("react-native").WebRole | undefined;
68
68
  lang?: string | undefined;
69
69
  initialValue?: string | undefined;
70
- autoComplete?: "off" | "name" | "email" | "tel" | "url" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday" | "bday-day" | "bday-month" | "bday-year" | "cc-additional-name" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "impp" | "language" | "new-password" | "nickname" | "on" | "one-time-code" | "organization" | "organization-title" | "postal-code" | "sex" | "street-address" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "transaction-amount" | "transaction-currency" | "username" | undefined;
70
+ autoComplete?: "name" | "email" | "off" | "tel" | "url" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday" | "bday-day" | "bday-month" | "bday-year" | "cc-additional-name" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "impp" | "language" | "new-password" | "nickname" | "on" | "one-time-code" | "organization" | "organization-title" | "postal-code" | "sex" | "street-address" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "transaction-amount" | "transaction-currency" | "username" | undefined;
71
71
  enterKeyHint?: "enter" | "search" | "done" | "go" | "next" | "send" | "previous" | undefined;
72
72
  rows?: number | undefined;
73
73
  readOnly?: boolean | undefined;
@@ -199,7 +199,7 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
199
199
  rejectResponderTermination?: boolean | null | undefined;
200
200
  selectionState?: import("react-native").DocumentSelectionState | undefined;
201
201
  spellCheck?: boolean | undefined;
202
- textContentType?: "none" | "location" | "name" | "nickname" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "password" | "newPassword" | "oneTimeCode" | undefined;
202
+ textContentType?: "none" | "name" | "location" | "nickname" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "password" | "newPassword" | "oneTimeCode" | undefined;
203
203
  scrollEnabled?: boolean | undefined;
204
204
  lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
205
205
  cursorColor?: import("react-native").ColorValue | null | undefined;
@@ -222,7 +222,7 @@ export declare const LakeTextInput: import("react").ForwardRefExoticComponent<{
222
222
  validating?: boolean | undefined;
223
223
  valid?: boolean | undefined;
224
224
  disabled?: boolean | undefined;
225
- color?: "gray" | "live" | "sandbox" | "positive" | "warning" | "negative" | "current" | "partner" | "swan" | "shakespear" | "darkPink" | "sunglow" | "mediumSladeBlue" | undefined;
225
+ color?: "current" | "gray" | "live" | "sandbox" | "positive" | "warning" | "negative" | "partner" | "swan" | "shakespear" | "darkPink" | "sunglow" | "mediumSladeBlue" | undefined;
226
226
  multiline?: boolean | undefined;
227
227
  icon?: "lake-calendar-arrow-swap" | "lake-card" | "lake-card-one-off" | "lake-card-physical" | "lake-card-recurring" | "lake-card-single-use" | "lake-card-virtual" | "lake-chevron-double" | "lake-clipboard-bullet" | "lake-clock" | "lake-clock-arrow-swap" | "lake-close" | "lake-currencies" | "lake-delivery-grouped" | "lake-delivery-individual" | "lake-document-csv" | "lake-document-jpg" | "lake-document-pdf" | "lake-document-png" | "lake-document-xls" | "lake-email" | "lake-id-card" | "lake-inbox-empty" | "lake-menu" | "lake-people" | "lake-person-arrow-swap" | "lake-phone" | "lake-receipt" | "lake-settings" | "lake-signature" | "lake-transfer" | "lake-world-map" | "add-circle-filled" | "add-circle-regular" | "add-filled" | "approvals-app-filled" | "apps-list-filled" | "apps-list-regular" | "arrow-counterclockwise-filled" | "arrow-down-filled" | "arrow-down-regular" | "arrow-download-filled" | "arrow-left-filled" | "arrow-left-regular" | "arrow-right-filled" | "arrow-right-regular" | "arrow-swap-filled" | "arrow-swap-regular" | "arrow-up-filled" | "arrow-up-regular" | "arrow-upload-filled" | "arrow-upload-regular" | "beaker-filled" | "beaker-regular" | "board-regular" | "box-regular" | "building-bank-filled" | "building-bank-regular" | "building-filled" | "building-multiple-regular" | "building-regular" | "building-shop-regular" | "calendar-ltr-regular" | "cart-regular" | "chat-help-filled" | "chat-help-regular" | "checkmark-circle-regular" | "checkmark-filled" | "chevron-down-filled" | "chevron-left-filled" | "chevron-right-filled" | "chevron-up-down-regular" | "chevron-up-filled" | "clipboard-search-regular" | "clock-filled" | "clock-regular" | "cloud-sync-filled" | "cloud-sync-regular" | "code-filled" | "code-regular" | "color-regular" | "comment-note-regular" | "copy-filled" | "copy-regular" | "cursor-click-regular" | "database-filled" | "database-regular" | "delete-filled" | "delete-regular" | "desktop-regular" | "device-meeting-room-regular" | "dismiss-circle-regular" | "dismiss-filled" | "dismiss-regular" | "document-regular" | "earth-regular" | "edit-filled" | "edit-regular" | "error-circle-filled" | "error-circle-regular" | "eye-filled" | "eye-off-filled" | "eye-regular" | "filter-filled" | "flag-filled" | "flag-regular" | "flash-filled" | "flash-regular" | "form-new-filled" | "form-new-regular" | "hand-right-regular" | "image-add-filled" | "image-add-regular" | "image-filled" | "image-regular" | "info-filled" | "info-regular" | "key-regular" | "link-filled" | "live-filled" | "live-regular" | "lock-closed-filled" | "lock-closed-regular" | "lock-open-filled" | "lock-open-regular" | "mail-filled" | "mail-regular" | "money-regular" | "more-vertical-filled" | "open-filled" | "open-regular" | "options-regular" | "paint-brush-filled" | "paint-brush-regular" | "pause-regular" | "payment-filled" | "payment-regular" | "people-add-regular" | "people-community-filled" | "people-community-regular" | "people-filled" | "people-regular" | "people-team-regular" | "person-accounts-filled" | "person-accounts-regular" | "person-add-regular" | "person-call-filled" | "person-call-regular" | "person-filled" | "person-lock-regular" | "person-regular" | "phone-filled" | "phone-regular" | "pin-regular" | "play-filled" | "play-regular" | "preview-link-filled" | "question-circle-regular" | "receipt-money-filled" | "receipt-money-regular" | "rocket-regular" | "search-filled" | "send-filled" | "send-regular" | "settings-filled" | "settings-regular" | "shield-checkmark-filled" | "shield-checkmark-regular" | "shield-error-regular" | "shield-regular" | "sign-out-regular" | "signature-filled" | "signature-regular" | "subtract-circle-filled" | "subtract-circle-regular" | "target-arrow-regular" | "warning-filled" | "warning-regular" | "window-dev-tools-filled" | "window-dev-tools-regular" | undefined;
228
228
  unit?: string | undefined;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import { ViewStyle } from "react-native";
2
+ import { ViewProps } from "react-native";
3
3
  type Props = {
4
4
  children: ReactNode;
5
5
  content: ReactNode;
@@ -11,7 +11,7 @@ type Props = {
11
11
  placement: "left" | "top" | "bottom" | "right";
12
12
  width?: number;
13
13
  togglableOnFocus?: boolean;
14
- containerStyle?: ViewStyle;
14
+ containerStyle?: ViewProps["style"];
15
15
  disabled?: boolean;
16
16
  };
17
17
  type TooltipRef = {
@@ -22,6 +22,4 @@ export type MultiSelectProps<I> = {
22
22
  values: string[];
23
23
  id?: string;
24
24
  };
25
- export declare const MultiSelect: (<I extends MultiSelectItem>(props: MultiSelectProps<I>) => JSX.Element | null) & {
26
- displayName?: string | undefined;
27
- };
25
+ export declare const MultiSelect: import("react").NamedExoticComponent<MultiSelectProps<MultiSelectItem>>;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Array, Dict, Option } from "@swan-io/boxed";
3
- import { memo as reactMemo, useEffect, useMemo, useRef, useState } from "react";
3
+ import { memo, useEffect, useMemo, useRef, useState } from "react";
4
4
  import { FlatList, Pressable, SectionList, StyleSheet, Text, View, } from "react-native";
5
5
  import { backgroundColor, colors, radii, shadows, texts } from "../constants/design";
6
6
  import { useDisclosure } from "../hooks/useDisclosure";
@@ -134,7 +134,6 @@ const styles = StyleSheet.create({
134
134
  color: colors.gray.primary,
135
135
  },
136
136
  });
137
- const memo = reactMemo;
138
137
  export const MultiSelect = memo(({ color = "gray", disabled = false, emptyResultText, enableGroups = true, filterPlaceholder, items, onValueChange, placeholder, renderTagGroup, error, style, values, id, }) => {
139
138
  const [filter, setFilter] = useState("");
140
139
  const shouldScrollToBottomRef = useRef(false);
@@ -194,7 +194,7 @@ export declare const PressableTextInput: FC<{
194
194
  role?: import("react-native").WebRole | undefined;
195
195
  lang?: string | undefined;
196
196
  initialValue?: string | undefined;
197
- autoComplete?: "off" | "name" | "email" | "tel" | "url" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday" | "bday-day" | "bday-month" | "bday-year" | "cc-additional-name" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "impp" | "language" | "new-password" | "nickname" | "on" | "one-time-code" | "organization" | "organization-title" | "postal-code" | "sex" | "street-address" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "transaction-amount" | "transaction-currency" | "username" | undefined;
197
+ autoComplete?: "name" | "email" | "off" | "tel" | "url" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday" | "bday-day" | "bday-month" | "bday-year" | "cc-additional-name" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "impp" | "language" | "new-password" | "nickname" | "on" | "one-time-code" | "organization" | "organization-title" | "postal-code" | "sex" | "street-address" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "transaction-amount" | "transaction-currency" | "username" | undefined;
198
198
  enterKeyHint?: "enter" | "search" | "done" | "go" | "next" | "send" | "previous" | undefined;
199
199
  rows?: number | undefined;
200
200
  readOnly?: boolean | undefined;
@@ -323,7 +323,7 @@ export declare const PressableTextInput: FC<{
323
323
  rejectResponderTermination?: boolean | null | undefined;
324
324
  selectionState?: import("react-native").DocumentSelectionState | undefined;
325
325
  spellCheck?: boolean | undefined;
326
- textContentType?: "none" | "location" | "name" | "nickname" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "password" | "newPassword" | "oneTimeCode" | undefined;
326
+ textContentType?: "none" | "name" | "location" | "nickname" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "password" | "newPassword" | "oneTimeCode" | undefined;
327
327
  scrollEnabled?: boolean | undefined;
328
328
  lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
329
329
  cursorColor?: import("react-native").ColorValue | null | undefined;
@@ -12,6 +12,7 @@ const styles = StyleSheet.create({
12
12
  flexDirection: "row",
13
13
  alignItems: "flex-start",
14
14
  justifyContent: "center",
15
+ flexWrap: "wrap",
15
16
  },
16
17
  icon: {
17
18
  borderColor: colors.gray[300],
@@ -21,15 +22,16 @@ const styles = StyleSheet.create({
21
22
  paddingVertical: spacings[12],
22
23
  borderRadius: 32,
23
24
  },
25
+ actionContainer: {
26
+ flex: 1,
27
+ minWidth: 100,
28
+ },
24
29
  action: {
25
30
  alignItems: "center",
26
31
  paddingHorizontal: spacings[12],
27
- flexBasis: "30%",
32
+ paddingVertical: spacings[8],
28
33
  },
29
34
  disabled: {
30
- alignItems: "center",
31
- paddingHorizontal: spacings[12],
32
- flexBasis: "30%",
33
35
  opacity: 0.4,
34
36
  },
35
37
  label: {
@@ -37,7 +39,7 @@ const styles = StyleSheet.create({
37
39
  },
38
40
  });
39
41
  export const QuickActions = ({ actions, tooltipDisabled = false, tooltipText }) => {
40
- return (_jsx(View, { style: styles.container, children: actions.map((action, index) => (_jsx(LakeTooltip, { content: tooltipText, placement: "top", disabled: tooltipDisabled || isNullishOrEmpty(tooltipText), children: _jsxs(Pressable, { onPress: action.onPress, style: tooltipDisabled ? styles.action : styles.disabled, disabled: action.isLoading === true || !tooltipDisabled, children: [_jsx(View, { style: [
42
+ return (_jsx(View, { style: styles.container, children: actions.map((action, index) => (_jsx(LakeTooltip, { content: tooltipText, placement: "top", disabled: tooltipDisabled || isNullishOrEmpty(tooltipText), containerStyle: styles.actionContainer, children: _jsxs(Pressable, { onPress: action.onPress, style: [styles.action, !tooltipDisabled && styles.disabled], disabled: action.isLoading === true || !tooltipDisabled, children: [_jsx(View, { style: [
41
43
  styles.icon,
42
44
  action.backgroundColor != null
43
45
  ? { backgroundColor: action.backgroundColor, borderColor: action.backgroundColor }
@@ -7,6 +7,6 @@ export declare const Stack: import("react").ForwardRefExoticComponent<import("re
7
7
  justifyContent?: ("end" | "start" | "normal" | "center" | "spaceBetween" | "spaceAround" | "spaceEvenly") | undefined;
8
8
  style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
9
9
  } & {
10
- space?: 4 | 8 | 12 | 16 | 20 | 32 | 24 | 40 | 48 | 72 | 96 | undefined;
10
+ space?: 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 72 | 96 | undefined;
11
11
  wrap?: boolean | undefined;
12
12
  } & import("react").RefAttributes<View>>;
@@ -6,7 +6,7 @@ type Props = {
6
6
  style?: ViewProps["style"];
7
7
  children: ReactElement;
8
8
  };
9
- export declare const CurrentColorContext: import("react").Context<"gray" | "live" | "sandbox" | "positive" | "warning" | "negative" | "current" | "partner" | "swan" | "shakespear" | "darkPink" | "sunglow" | "mediumSladeBlue" | undefined>;
9
+ export declare const CurrentColorContext: import("react").Context<"current" | "gray" | "live" | "sandbox" | "positive" | "warning" | "negative" | "partner" | "swan" | "shakespear" | "darkPink" | "sunglow" | "mediumSladeBlue" | undefined>;
10
10
  export declare const useCurrentColor: (containerRef: MutableRefObject<HTMLElement | null>, variant: ColorVariants | undefined) => void;
11
11
  export declare const WithCurrentColor: ({ variant, style, children }: Props) => import("react/jsx-runtime").JSX.Element;
12
12
  export {};