@swan-io/lake 1.4.3 → 1.5.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.
Files changed (114) hide show
  1. package/package.json +4 -5
  2. package/src/components/AppOpeningAnimation.js +13 -13
  3. package/src/components/AutoWidthImage.d.ts +1 -0
  4. package/src/components/AutoWidthImage.js +3 -4
  5. package/src/components/Avatar.js +3 -2
  6. package/src/components/BorderedButton.d.ts +1 -1
  7. package/src/components/BorderedButton.js +6 -4
  8. package/src/components/BottomPanel.js +2 -2
  9. package/src/components/Box.js +1 -1
  10. package/src/components/Breadcrumbs.js +17 -17
  11. package/src/components/ChoicePicker.js +6 -6
  12. package/src/components/Fill.js +2 -1
  13. package/src/components/FilterChooser.js +2 -2
  14. package/src/components/Filters.js +10 -10
  15. package/src/components/FixedListView.js +15 -12
  16. package/src/components/FixedListViewCells.js +2 -2
  17. package/src/components/Form.d.ts +1 -1
  18. package/src/components/FullViewportLayer.js +13 -10
  19. package/src/components/Heading.d.ts +1 -1
  20. package/src/components/Heading.js +1 -1
  21. package/src/components/Icon.d.ts +4 -4
  22. package/src/components/Icon.js +7 -1
  23. package/src/components/Input.d.ts +6 -6
  24. package/src/components/Input.js +5 -10
  25. package/src/components/InputError.js +1 -1
  26. package/src/components/Label.d.ts +1 -1
  27. package/src/components/Label.js +1 -1
  28. package/src/components/LakeButton.d.ts +3 -3
  29. package/src/components/LakeButton.js +4 -4
  30. package/src/components/LakeCheckbox.js +2 -2
  31. package/src/components/LakeCombobox.d.ts +2 -2
  32. package/src/components/LakeCombobox.js +6 -10
  33. package/src/components/LakeDownloadButton.js +1 -1
  34. package/src/components/LakeHeading.d.ts +3 -2
  35. package/src/components/LakeHeading.js +7 -1
  36. package/src/components/LakeLabel.d.ts +0 -1
  37. package/src/components/LakeLabel.js +4 -4
  38. package/src/components/LakeModal.js +6 -3
  39. package/src/components/LakeRadio.js +3 -3
  40. package/src/components/LakeScrollView.js +2 -1
  41. package/src/components/LakeSearchField.js +3 -3
  42. package/src/components/LakeSelect.d.ts +2 -2
  43. package/src/components/LakeSelect.js +14 -23
  44. package/src/components/LakeSlider.js +1 -1
  45. package/src/components/LakeStepper.js +5 -5
  46. package/src/components/LakeText.d.ts +9 -8
  47. package/src/components/LakeText.js +7 -1
  48. package/src/components/LakeTextInput.d.ts +11 -6
  49. package/src/components/LakeTextInput.js +5 -5
  50. package/src/components/LakeTooltip.js +7 -12
  51. package/src/components/Link.d.ts +53 -50
  52. package/src/components/Link.js +4 -4
  53. package/src/components/ListRightPanel.js +2 -2
  54. package/src/components/Modal.js +15 -5
  55. package/src/components/MultiSelect.d.ts +1 -1
  56. package/src/components/MultiSelect.js +9 -6
  57. package/src/components/PlainListView.js +5 -4
  58. package/src/components/Popover.js +9 -5
  59. package/src/components/Portal.js +2 -2
  60. package/src/components/Pressable.d.ts +112 -101
  61. package/src/components/Pressable.js +16 -6
  62. package/src/components/ProjectEnvTag.js +1 -1
  63. package/src/components/ReadOnlyFieldList.js +2 -2
  64. package/src/components/RightPanel.d.ts +1 -1
  65. package/src/components/RightPanel.js +14 -11
  66. package/src/components/Separator.js +1 -1
  67. package/src/components/SidebarNavigationTracker.js +4 -3
  68. package/src/components/Slider.js +28 -12
  69. package/src/components/SmsOpeningAnimation.js +15 -15
  70. package/src/components/Space.d.ts +1 -1
  71. package/src/components/Stack.d.ts +4 -4
  72. package/src/components/Stack.js +1 -1
  73. package/src/components/Stepper.js +1 -1
  74. package/src/components/Svg.d.ts +6 -7
  75. package/src/components/Switch.js +19 -7
  76. package/src/components/TabView.js +16 -15
  77. package/src/components/Tag.d.ts +2 -2
  78. package/src/components/Tag.js +6 -3
  79. package/src/components/Tile.js +2 -2
  80. package/src/components/ToastStack.js +19 -10
  81. package/src/components/Tooltip.js +3 -6
  82. package/src/components/TransitionGroupView.d.ts +2 -3
  83. package/src/components/TransitionGroupView.js +3 -3
  84. package/src/components/TransitionView.d.ts +2 -3
  85. package/src/components/TransitionView.js +2 -2
  86. package/src/components/WithCurrentColor.d.ts +1 -1
  87. package/src/constants/design.d.ts +4 -12
  88. package/src/constants/design.js +12 -12
  89. package/src/hooks/useAnimatedValue.js +9 -2
  90. package/src/hooks/useForceableState.js +1 -1
  91. package/src/hooks/useHover.js +1 -1
  92. package/src/hooks/useMergeRefs.js +1 -1
  93. package/src/hooks/usePressEvents.js +1 -1
  94. package/src/icons/fluent-icons.json +9 -7
  95. package/src/components/Alert.d.ts +0 -10
  96. package/src/components/Alert.js +0 -36
  97. package/src/components/Button.d.ts +0 -15
  98. package/src/components/Button.js +0 -83
  99. package/src/components/Checkbox.d.ts +0 -12
  100. package/src/components/Checkbox.js +0 -83
  101. package/src/components/Combobox.d.ts +0 -29
  102. package/src/components/Combobox.js +0 -182
  103. package/src/components/MultilineInput.d.ts +0 -15
  104. package/src/components/MultilineInput.js +0 -55
  105. package/src/components/Picker.d.ts +0 -26
  106. package/src/components/Picker.js +0 -116
  107. package/src/components/ProgressBar.d.ts +0 -11
  108. package/src/components/ProgressBar.js +0 -46
  109. package/src/components/SegmentedControl.d.ts +0 -19
  110. package/src/components/SegmentedControl.js +0 -74
  111. package/src/components/Table.d.ts +0 -34
  112. package/src/components/Table.js +0 -79
  113. package/src/hooks/useLazyRef.d.ts +0 -2
  114. package/src/hooks/useLazyRef.js +0 -9
@@ -59,7 +59,7 @@ const styles = StyleSheet.create({
59
59
  backgroundColor: colors.white,
60
60
  borderWidth: 1,
61
61
  borderColor: colors.gray[10],
62
- transform: [{ rotate: "45deg" }],
62
+ transform: "rotate(45deg)",
63
63
  },
64
64
  });
65
65
  const isReactText = (node) => ["string", "number"].includes(typeof node);
@@ -148,15 +148,12 @@ export const Tooltip = memo(forwardRef(({ children, describedBy, matchReferenceW
148
148
  styles.base,
149
149
  state?.placement === "top" && styles.baseTop,
150
150
  state?.placement === "bottom" && styles.baseBottom,
151
- ], children: [_jsx(View, { style: [styles.content, { width }], children: isReactText(children) ? _jsx(Text, { style: styles.text, children: children }) : children }), _jsx(View, { accessibilityRole: "none", style: [
151
+ ], children: [_jsx(View, { style: [styles.content, { width }], children: isReactText(children) ? _jsx(Text, { style: styles.text, children: children }) : children }), _jsx(View, { role: "none", style: [
152
152
  styles.arrowContainer,
153
153
  state?.placement === "top" && styles.arrowContainerTop,
154
154
  state?.placement === "bottom" && styles.arrowContainerBottom,
155
155
  {
156
- transform: [
157
- { translateX: -overflowOffset },
158
- { rotate: state?.placement === "bottom" ? "180deg" : "0deg" },
159
- ],
156
+ transform: `translateX(${-overflowOffset}px) rotate(${state?.placement === "bottom" ? "180deg" : "0deg"})`,
160
157
  },
161
158
  ], children: _jsx(View, { style: styles.arrow }) })] }) }) }));
162
159
  }));
@@ -1,12 +1,11 @@
1
1
  import { ReactNode } from "react";
2
- import { AnimationStyles, StyleProp, ViewProps, ViewStyle } from "react-native";
2
+ import { AnimationStyles, StyleProp, ViewStyle } from "react-native";
3
3
  type Props = {
4
4
  enter?: AnimationStyles;
5
5
  leave?: AnimationStyles;
6
6
  style?: StyleProp<ViewStyle>;
7
7
  childStyle?: StyleProp<ViewStyle>;
8
- pointerEvents?: ViewProps["pointerEvents"];
9
8
  children: ReactNode;
10
9
  };
11
- export declare const TransitionGroupView: ({ children, enter, leave, style, childStyle, pointerEvents, }: Props) => JSX.Element;
10
+ export declare const TransitionGroupView: ({ children, enter, leave, style, childStyle }: Props) => JSX.Element;
12
11
  export {};
@@ -2,10 +2,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Array, Option } from "@swan-io/boxed";
3
3
  import { Children, useMemo, useReducer, useRef } from "react";
4
4
  import { View } from "react-native";
5
- import { match, P } from "ts-pattern";
5
+ import { P, match } from "ts-pattern";
6
6
  import { usePreviousValue } from "../hooks/usePreviousValue";
7
7
  import { TransitionView } from "./TransitionView";
8
- export const TransitionGroupView = ({ children, enter, leave, style, childStyle, pointerEvents, }) => {
8
+ export const TransitionGroupView = ({ children, enter, leave, style, childStyle }) => {
9
9
  const leavingKeysAndIndicesRef = useRef([]);
10
10
  const [, forceUpdate] = useReducer(() => [], []);
11
11
  const onLeave = (key) => {
@@ -38,6 +38,6 @@ export const TransitionGroupView = ({ children, enter, leave, style, childStyle,
38
38
  }
39
39
  });
40
40
  return (_jsx(View, { style: style, children: childrenToRender.map(({ key, child }) => {
41
- return (_jsx(TransitionView, { enter: enter, leave: leave, style: childStyle, pointerEvents: pointerEvents, onLeave: () => onLeave(key), children: child }, key));
41
+ return (_jsx(TransitionView, { enter: enter, leave: leave, style: childStyle, onLeave: () => onLeave(key), children: child }, key));
42
42
  }) }));
43
43
  };
@@ -1,12 +1,11 @@
1
1
  import { ReactNode } from "react";
2
- import { AnimationStyles, StyleProp, ViewProps, ViewStyle } from "react-native";
2
+ import { AnimationStyles, StyleProp, ViewStyle } from "react-native";
3
3
  type Props = {
4
4
  enter?: AnimationStyles;
5
5
  leave?: AnimationStyles;
6
6
  style?: StyleProp<ViewStyle>;
7
- pointerEvents?: ViewProps["pointerEvents"];
8
7
  children: ReactNode | null;
9
8
  onLeave?: () => void;
10
9
  };
11
- export declare const TransitionView: ({ enter, leave, style, children, pointerEvents, onLeave, }: Props) => JSX.Element | null;
10
+ export declare const TransitionView: ({ enter, leave, style, children, onLeave }: Props) => JSX.Element | null;
12
11
  export {};
@@ -8,7 +8,7 @@ const styles = StyleSheet.create({
8
8
  animationFillMode: "forwards",
9
9
  },
10
10
  });
11
- export const TransitionView = ({ enter, leave, style, children, pointerEvents, onLeave, }) => {
11
+ export const TransitionView = ({ enter, leave, style, children, onLeave }) => {
12
12
  const viewRef = useRef(null);
13
13
  const childrenForLeaveAnimationRef = useRef(null);
14
14
  const [, forceUpdate] = useReducer(() => [], []);
@@ -34,7 +34,7 @@ export const TransitionView = ({ enter, leave, style, children, pointerEvents, o
34
34
  }
35
35
  }, [children, leave, onLeave]);
36
36
  const hasChildrenToDisplay = isNotNullish(children) || isNotNullish(childrenForLeaveAnimationRef.current);
37
- return hasChildrenToDisplay ? (_jsx(View, { pointerEvents: pointerEvents, ref: viewRef, style: [
37
+ return hasChildrenToDisplay ? (_jsx(View, { ref: viewRef, style: [
38
38
  styles.base,
39
39
  style,
40
40
  enter,
@@ -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<"warning" | "current" | "gray" | "live" | "sandbox" | "positive" | "negative" | "partner" | "swan" | "shakespear" | "darkPink" | "sunglow" | "mediumSladeBlue" | undefined>;
9
+ export declare const CurrentColorContext: import("react").Context<"gray" | "live" | "sandbox" | "positive" | "warning" | "negative" | "current" | "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) => JSX.Element;
12
12
  export {};
@@ -135,24 +135,16 @@ export declare const animations: {
135
135
  enter: {
136
136
  animationKeyframes: {
137
137
  "10%, 90%": {
138
- transform: {
139
- translateX: number;
140
- }[];
138
+ transform: string;
141
139
  };
142
140
  "20%, 80%": {
143
- transform: {
144
- translateX: number;
145
- }[];
141
+ transform: string;
146
142
  };
147
143
  "30%, 50%, 70%": {
148
- transform: {
149
- translateX: number;
150
- }[];
144
+ transform: string;
151
145
  };
152
146
  "40%, 60%": {
153
- transform: {
154
- translateX: number;
155
- }[];
147
+ transform: string;
156
148
  };
157
149
  }[];
158
150
  animationDuration: string;
@@ -439,7 +439,7 @@ const fadeAndSlideInFromTop = StyleSheet.create({
439
439
  animationKeyframes: {
440
440
  from: {
441
441
  opacity: 0,
442
- transform: [{ translateY: -10 }],
442
+ transform: "translateY(-10px)",
443
443
  },
444
444
  },
445
445
  animationDuration: "300ms",
@@ -449,7 +449,7 @@ const fadeAndSlideInFromTop = StyleSheet.create({
449
449
  animationKeyframes: {
450
450
  to: {
451
451
  opacity: 0,
452
- transform: [{ translateY: -10 }],
452
+ transform: "translateY(-10px)",
453
453
  },
454
454
  },
455
455
  animationDuration: "300ms",
@@ -462,7 +462,7 @@ const fadeAndSlideInFromLeft = StyleSheet.create({
462
462
  animationKeyframes: {
463
463
  from: {
464
464
  opacity: 0,
465
- transform: [{ translateX: -10 }],
465
+ transform: "translateX(-10px)",
466
466
  },
467
467
  },
468
468
  animationDuration: "300ms",
@@ -472,7 +472,7 @@ const fadeAndSlideInFromLeft = StyleSheet.create({
472
472
  animationKeyframes: {
473
473
  to: {
474
474
  opacity: 0,
475
- transform: [{ translateX: -10 }],
475
+ transform: "translateX(-10px)",
476
476
  },
477
477
  },
478
478
  animationDuration: "300ms",
@@ -485,7 +485,7 @@ const fadeAndSlideInFromBottom = StyleSheet.create({
485
485
  animationKeyframes: {
486
486
  from: {
487
487
  opacity: 0,
488
- transform: [{ translateY: 10 }],
488
+ transform: "translateY(10px)",
489
489
  },
490
490
  },
491
491
  animationDuration: "300ms",
@@ -495,7 +495,7 @@ const fadeAndSlideInFromBottom = StyleSheet.create({
495
495
  animationKeyframes: {
496
496
  to: {
497
497
  opacity: 0,
498
- transform: [{ translateY: 10 }],
498
+ transform: "translateY(10px)",
499
499
  },
500
500
  },
501
501
  animationDuration: "300ms",
@@ -508,7 +508,7 @@ const fadeAndSlideInFromRight = StyleSheet.create({
508
508
  animationKeyframes: {
509
509
  from: {
510
510
  opacity: 0,
511
- transform: [{ translateZ: 0 }, { translateX: 10 }],
511
+ transform: "translateZ(0px) translateX(10px)",
512
512
  },
513
513
  },
514
514
  animationDuration: "300ms",
@@ -518,7 +518,7 @@ const fadeAndSlideInFromRight = StyleSheet.create({
518
518
  animationKeyframes: {
519
519
  to: {
520
520
  opacity: 0,
521
- transform: [{ translateZ: 0 }, { translateX: 10 }],
521
+ transform: "translateZ(0px) translateX(10px)",
522
522
  },
523
523
  },
524
524
  animationDuration: "300ms",
@@ -532,16 +532,16 @@ const shake = StyleSheet.create({
532
532
  animationKeyframes: [
533
533
  {
534
534
  "10%, 90%": {
535
- transform: [{ translateX: -1 }],
535
+ transform: "translateX(-1px)",
536
536
  },
537
537
  "20%, 80%": {
538
- transform: [{ translateX: 2 }],
538
+ transform: "translateX(2px)",
539
539
  },
540
540
  "30%, 50%, 70%": {
541
- transform: [{ translateX: -4 }],
541
+ transform: "translateX(-4px)",
542
542
  },
543
543
  "40%, 60%": {
544
- transform: [{ translateX: 4 }],
544
+ transform: "translateX(4px)",
545
545
  },
546
546
  },
547
547
  ],
@@ -1,3 +1,10 @@
1
+ import { useRef } from "react";
1
2
  import { Animated } from "react-native";
2
- import { useLazyRef } from "./useLazyRef";
3
- export const useAnimatedValue = (value) => useLazyRef(() => new Animated.Value(value)).current;
3
+ const UNSET = Symbol("unset");
4
+ export const useAnimatedValue = (value) => {
5
+ const ref = useRef(UNSET);
6
+ if (ref.current === UNSET) {
7
+ ref.current = new Animated.Value(value);
8
+ }
9
+ return ref.current;
10
+ };
@@ -1,4 +1,4 @@
1
- // https://github.com/necolas/react-native-web/blob/0.17.5/packages/react-native-web/src/exports/Pressable/index.js#L220
1
+ // https://github.com/necolas/react-native-web/blob/0.19.1/packages/react-native-web/src/exports/Pressable/index.js#L221
2
2
  import { useState } from "react";
3
3
  export const useForceableState = (forced) => {
4
4
  const [value, setValue] = useState(false);
@@ -1,4 +1,4 @@
1
- // https://github.com/necolas/react-native-web/blob/0.17.5/packages/react-native-web/src/modules/useHover/index.js
1
+ // https://github.com/necolas/react-native-web/blob/0.19.1/packages/react-native-web/src/modules/useHover/index.js
2
2
  // @ts-expect-error
3
3
  import originaUseHover from "react-native-web/dist/cjs/modules/useHover";
4
4
  export const useHover = originaUseHover;
@@ -1,4 +1,4 @@
1
- // https://github.com/necolas/react-native-web/blob/0.17.5/packages/react-native-web/src/modules/useMergeRefs/index.js
1
+ // https://github.com/necolas/react-native-web/blob/0.19.1/packages/react-native-web/src/modules/useMergeRefs/index.js
2
2
  // https://github.com/theKashey/use-callback-ref (for typing)
3
3
  // @ts-expect-error
4
4
  import originalUseMergeRefs from "react-native-web/dist/cjs/modules/useMergeRefs";
@@ -1,4 +1,4 @@
1
- // https://github.com/necolas/react-native-web/blob/0.17.5/packages/react-native-web/src/modules/usePressEvents/index.js
1
+ // https://github.com/necolas/react-native-web/blob/0.19.1/packages/react-native-web/src/modules/usePressEvents/index.js
2
2
  // @ts-expect-error
3
3
  import originalUsePressEvents from "react-native-web/dist/cjs/modules/usePressEvents";
4
4
  export const usePressEvents = originalUsePressEvents;
@@ -17,15 +17,17 @@
17
17
  "arrow-swap-regular": "m14.78 2.22 4.5 4.5c.26.26.29.68.07.97l-.07.08-4.5 4.5a.75.75 0 0 1-1.13-.97l.07-.08L16.94 8H5.24a.75.75 0 0 1-.74-.65v-.1c0-.38.27-.7.64-.75H16.94l-3.22-3.22a.75.75 0 0 1-.07-.98l.07-.08a.75.75 0 0 1 .98-.07l.08.07 4.5 4.5-4.5-4.5Zm4.72 14.43v.1c0 .38-.28.7-.64.74l-.1.01H7.06l3.22 3.22c.27.27.3.68.08.98l-.08.08a.75.75 0 0 1-.97.07l-.09-.07-4.5-4.5a.75.75 0 0 1-.07-.97l.07-.09 4.5-4.5a.75.75 0 0 1 1.14.98l-.08.08L7.07 16h11.69c.38 0 .7.28.74.65v.1-.1Z",
18
18
  "arrow-up-filled": "M4.28 10.3a1 1 0 0 0 1.43 1.4L11 6.33V20a1 1 0 1 0 2 0V6.33l5.28 5.37a1 1 0 0 0 1.43-1.4l-6.82-6.93c-.5-.5-1.3-.5-1.78 0L4.28 10.3Z",
19
19
  "arrow-up-regular": "M4.2 10.73a.75.75 0 0 0 1.1 1.04l5.95-6.25v14.73a.75.75 0 0 0 1.5 0V5.52l5.95 6.25a.75.75 0 0 0 1.1-1.04l-7.08-7.42a1 1 0 0 0-1.44 0L4.2 10.73Z",
20
+ "arrow-upload-filled": "M5.25 3.5h13.5a.75.75 0 0 0 .1-1.5H5.25a.75.75 0 0 0-.1 1.49h.1ZM11.88 22H12a1 1 0 0 0 1-.88V8.4l3.3 3.3a1 1 0 0 0 1.31.08l.1-.09a1 1 0 0 0 .08-1.32l-.08-.1-5-4.99a1 1 0 0 0-1.32-.08l-.1.08-5 5a1 1 0 0 0 1.32 1.5l.1-.09L11 8.42V21a1 1 0 0 0 .88 1Z",
21
+ "arrow-upload-regular": "M18.25 3.51a.75.75 0 1 0 0-1.5h-13a.75.75 0 1 0 0 1.5h13ZM11.65 22h.1c.38 0 .7-.28.74-.64l.01-.1V7.56l3.72 3.72c.27.27.68.29.98.07l.08-.07a.75.75 0 0 0 .07-.98l-.07-.08-5-5a.75.75 0 0 0-.97-.07l-.09.07-5 5a.75.75 0 0 0 .98 1.13l.08-.07L11 7.58v13.67c0 .38.28.7.65.75Z",
20
22
  "beaker-filled": "M9 4.5v6.24c0 .37-.1.74-.27 1.07L7.53 14h8.93l-1.19-2.19c-.18-.33-.27-.7-.27-1.07V4.5h1A.75.75 0 0 0 16 3H8a.75.75 0 0 0 0 1.5h1Zm8.27 11H6.73l-1.59 2.91A1.75 1.75 0 0 0 6.68 21h10.64a1.75 1.75 0 0 0 1.54-2.59l-1.59-2.91Z",
21
23
  "beaker-regular": "M8 4.5h1v6.24c0 .37-.1.74-.27 1.07l-3.59 6.6A1.75 1.75 0 0 0 6.68 21h10.64a1.75 1.75 0 0 0 1.54-2.59l-3.59-6.6c-.18-.33-.27-.7-.27-1.07V4.5h1A.75.75 0 0 0 16 3H8a.75.75 0 0 0 0 1.5Zm2.5 6.24V4.5h3v6.24c0 .62.16 1.24.45 1.79l.8 1.47h-5.5l.8-1.47c.3-.55.45-1.17.45-1.8ZM8.43 15.5h7.14l1.97 3.63a.25.25 0 0 1-.22.37H6.68a.25.25 0 0 1-.22-.37l1.97-3.63Z",
22
24
  "board-regular": "M18.25 2.5a3.25 3.25 0 0 1 3.25 3.06v12.19c0 1.8-1.45 3.25-3.25 3.25h-12a3.25 3.25 0 0 1-3.24-3.06L3 17.75v-12C3 3.95 4.46 2.5 6.25 2.5h12Zm-6.75 7h-7v8.41c.09.9.84 1.6 1.75 1.6h5.25V9.5Zm8.5 6h-7v4h5.25c.97 0 1.75-.78 1.75-1.75V15.5ZM18.25 4H13v10h7V5.59a1.75 1.75 0 0 0-1.75-1.6ZM11.5 4H6.11c-.9.08-1.6.83-1.6 1.75L4.5 8h7V4Z",
23
25
  "box-regular": "M10.6 2.51c.9-.36 1.9-.36 2.8 0l7.5 3.04c.67.27 1.1.91 1.1 1.62v9.66c0 .71-.43 1.35-1.1 1.62l-7.5 3.04c-.9.37-1.9.37-2.8 0l-7.5-3.04c-.67-.27-1.1-.91-1.1-1.62V7.17c0-.7.43-1.35 1.1-1.62l7.5-3.04Zm2.25 1.4a2.25 2.25 0 0 0-1.7 0l-1.9.77 7.52 2.93 2.67-1.03-6.6-2.68Zm1.84 4.5L7.21 5.5 4.6 6.56 12 9.45l2.7-1.04ZM3.5 16.83c0 .1.06.2.16.23l7.5 3.04.09.04v-9.38L3.5 7.75v9.08Zm9.35 3.27 7.5-3.04c.09-.04.15-.13.15-.23V7.77l-7.75 3v9.37l.1-.04Z",
24
26
  "building-bank-filled": "M10.97 2.32a1.75 1.75 0 0 1 2.06 0l7.42 5.42c.98.71.48 2.26-.73 2.26H4.28a1.25 1.25 0 0 1-.73-2.26l7.42-5.42ZM13 6.25a1 1 0 1 0-2 0 1 1 0 0 0 2 0ZM11.25 16h-2v-5h2v5Zm3.5 0h-2v-5h2v5Zm3.75 0h-2.25v-5h2.25v5Zm.25 1H5.25C4.01 17 3 18 3 19.25v.5c0 .41.34.75.75.75h16.5c.41 0 .75-.34.75-.75v-.5c0-1.24-1-2.25-2.25-2.25Zm-11-1H5.5v-5h2.25v5Z",
25
27
  "building-bank-regular": "M13 6.25a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm.03-3.93a1.75 1.75 0 0 0-2.06 0L3.55 7.74c-.98.71-.48 2.26.73 2.26h.22v5.8A2.75 2.75 0 0 0 3 18.25v1.5c0 .41.34.75.75.75h16.5c.41 0 .75-.34.75-.75v-1.5c0-1.07-.61-2-1.5-2.45V10h.22c1.2 0 1.71-1.55.73-2.26l-7.42-5.42Zm-1.18 1.22c.09-.07.21-.07.3 0l6.8 4.96H5.05l6.8-4.96ZM18 10v5.5h-2V10h2Zm-3.5 0v5.5h-1.75V10h1.75Zm-3.25 0v5.5H9.5V10h1.75Zm-5.5 7h12.5c.69 0 1.25.56 1.25 1.25V19h-15v-.75c0-.69.56-1.25 1.25-1.25ZM6 15.5V10h2v5.5H6Z",
26
- "building-filled": "M8.5 12.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-1-2.5a1 1 0 1 0 2 0 1 1 0 0 0-2 0ZM12 5.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm3.5 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM4 4.25C4 3.01 5 2 6.25 2h8c1.24 0 2.25 1 2.25 2.25V9.5h1.25c1.25 0 2.25 1 2.25 2.25v9c0 .41-.33.75-.75.75H16.5v-4.25a.75.75 0 0 0-.75-.75h-7.5a.75.75 0 0 0-.75.75v4.25H4.75a.75.75 0 0 1-.75-.75V4.25ZM9 21.5h2.25V18H9v3.5Zm3.75 0H15V18h-2.25v3.5ZM8.5 5.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM11 10a1 1 0 1 0 2 0 1 1 0 0 0-2 0Zm1 2.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",
28
+ "building-filled": "M4 4.25C4 3.01 5 2 6.25 2h8c1.24 0 2.25 1 2.25 2.25V9.5h1.25c1.24 0 2.25 1 2.25 2.25v9.5c0 .41-.34.75-.75.75H16.5v-3.75c0-.69-.56-1.25-1.25-1.25h-6.5c-.69 0-1.25.56-1.25 1.25V22H4.75a.75.75 0 0 1-.75-.75v-17ZM15 18.5V22h-2.25v-3.5H15Zm-3.75 0V22H9v-3.5h2.25ZM7.5 6.5a1 1 0 1 0 2 0 1 1 0 0 0-2 0Zm1 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM12 5.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm3.5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM12 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",
27
29
  "building-multiple-regular": "M8 6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm0 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7-3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0-3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-2-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm2-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-2-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1-4v-.75C14 3.01 13 2 11.75 2h-6.5C4.01 2 3 3 3 4.25v16.5c0 .41.34.75.75.75h16.5c.41 0 .75-.34.75-.75V7.25C21 6.01 20 5 18.75 5H14Zm-9.5-.75c0-.41.34-.75.75-.75h6.5c.41 0 .75.34.75.75V5h-.25C11.01 5 10 6 10 7.25V20H4.5V4.25ZM14.5 20v-1.5h2V20h-2Zm3.5-2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75V20h-1.5V7.25c0-.41.34-.75.75-.75h6.5c.41 0 .75.34.75.75V20H18v-2.25Z",
28
- "building-regular": "M8.5 5.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-1 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm1-4.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM11 6.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm1 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm2.5 1a1 1 0 1 1 2 0 1 1 0 0 1-2 0ZM12 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM6.25 2C5.01 2 4 3 4 4.25v16.5c0 .41.34.75.75.75h14.5c.42 0 .75-.34.75-.75v-9c0-1.24-1-2.25-2.25-2.25H16.5V4.25c0-1.24-1-2.25-2.25-2.25h-8ZM5.5 4.25c0-.41.34-.75.75-.75h8c.41 0 .75.34.75.75v6c0 .41.34.75.75.75h2c.42 0 .75.34.75.75V20h-2v-2.75a.75.75 0 0 0-.75-.75h-7.5a.75.75 0 0 0-.75.75V20h-2V4.25ZM15 18v2h-2.25v-2H15Zm-3.75 0v2H9v-2h2.25Z",
30
+ "building-regular": "M6.25 3.5a.75.75 0 0 0-.75.75V20.5h2v-2.75c0-.69.56-1.25 1.25-1.25h6.5c.69 0 1.25.56 1.25 1.25v2.75h2v-8.75a.75.75 0 0 0-.75-.75h-2a.75.75 0 0 1-.75-.75v-6a.75.75 0 0 0-.75-.75h-8ZM9 18v2.5h2.25V18H9Zm3.75 0v2.5H15V18h-2.25Zm6.5 4H4.75a.75.75 0 0 1-.75-.75v-17C4 3.01 5 2 6.25 2h8c1.24 0 2.25 1 2.25 2.25V9.5h1.25c1.24 0 2.25 1 2.25 2.25v9.5c0 .41-.34.75-.75.75ZM7.5 6.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm1 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0-3.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM12 5.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm0 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm3.5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM12 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",
29
31
  "building-shop-regular": "M18 2c.17 0 .34.06.47.17l.08.07 3.27 3.53.03.04c.1.13.15.29.15.44v1.92c0 1-.38 1.9-1 2.58v10.5c0 .38-.28.7-.65.74l-.1.01H3.75a.75.75 0 0 1-.74-.65v-10.6a3.82 3.82 0 0 1-1-2.36V6.3c-.02-.14.01-.28.09-.4l.06-.1.04-.05 3.25-3.5c.12-.13.28-.2.45-.23L6 2h12Zm-2.92 8.44-.01.02a3.83 3.83 0 0 1-6.15-.02 3.82 3.82 0 0 1-4.42 1.32v8.74H6v-6.75c0-.38.28-.7.65-.74h4.6c.38 0 .69.27.74.64v6.85h7.5v-8.74a3.82 3.82 0 0 1-4.4-1.32ZM10.5 14.5h-3v6h3v-6Zm6.76-1.5c.37 0 .69.28.74.65v3.6c0 .38-.28.7-.64.75h-3.6a.75.75 0 0 1-.75-.65v-3.6c0-.38.28-.7.64-.74h3.6Zm-.76 1.5h-2v2h2v-2ZM8.17 7H3.5V8.34l.04.23.03.16.05.17.05.15.04.09.1.2.1.16.06.07.13.16.14.14.1.09.04.03c.32.25.7.42 1.11.48l.18.02h.16c1.24 0 2.25-.95 2.33-2.16V7Zm6.16 0H9.67v1.17c0 1.18.87 2.15 2.01 2.3l.16.02H12c1.23 0 2.24-.95 2.33-2.16V7Zm6.17 0h-4.67v1.17c0 1.18.88 2.15 2.02 2.3l.16.02h.16c.56 0 1.08-.2 1.48-.52l.1-.08.1-.12.15-.17c.06-.06.1-.14.15-.21l.1-.19.07-.14.06-.15.03-.1.04-.15.03-.16.01-.16V7ZM9.06 3.5H6.33l-1.86 2h3.98l.61-2Zm4.3 0h-2.73l-.62 2h3.97l-.61-2Zm4.31 0h-2.73l.61 2h3.98l-1.86-2Z",
30
32
  "calendar-ltr-regular": "M17.75 3C19.55 3 21 4.46 21 6.25v11.5c0 1.8-1.46 3.25-3.25 3.25H6.25A3.25 3.25 0 0 1 3 17.75V6.25C3 4.45 4.46 3 6.25 3h11.5Zm1.75 5.5h-15v9.25c0 .97.78 1.75 1.75 1.75h11.5c.97 0 1.75-.78 1.75-1.75V8.5Zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm1.5-6H6.25c-.97 0-1.75.78-1.75 1.75V7h15v-.75c0-.97-.78-1.75-1.75-1.75Z",
31
33
  "cart-regular": "M2.5 4.25c0-.41.34-.75.75-.75h.56c.95 0 1.52.64 1.84 1.23.22.4.38.86.5 1.27h12.6c.83 0 1.43.8 1.2 1.6L18.12 14a2.75 2.75 0 0 1-2.64 2H9.53a2.75 2.75 0 0 1-2.65-2.02l-.76-2.78-1.26-4.24v-.01c-.16-.57-.3-1.1-.52-1.5C4.13 5.07 3.96 5 3.8 5h-.56a.75.75 0 0 1-.75-.75Zm5.07 6.59.75 2.74c.15.54.65.92 1.21.92h5.95c.56 0 1.05-.37 1.2-.9l1.74-6.1H6.59l.97 3.29.01.05ZM11 19a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-1.5 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Zm8.5 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-1.5 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0Z",
@@ -59,7 +61,7 @@
59
61
  "dismiss-circle-regular": "M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm3.45 4.9.08.07c.27.27.3.68.07.98l-.07.08L13.06 12l2.47 2.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-2.47 2.47a.75.75 0 0 1-.98.07l-.08-.07a.75.75 0 0 1-.07-.98l.07-.08L10.94 12 8.47 9.53a.75.75 0 0 1-.07-.98l.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l2.47-2.47a.75.75 0 0 1 .98-.07Z",
60
62
  "dismiss-filled": "m4.21 4.39.08-.1a1 1 0 0 1 1.32-.08l.1.08L12 10.6l6.3-6.3a1 1 0 1 1 1.4 1.42L13.42 12l6.3 6.3a1 1 0 0 1 .08 1.31l-.08.1a1 1 0 0 1-1.32.08l-.1-.08L12 13.4l-6.3 6.3a1 1 0 0 1-1.4-1.42L10.58 12l-6.3-6.3a1 1 0 0 1-.08-1.31l.08-.1-.08.1Z",
61
63
  "dismiss-regular": "m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z",
62
- "document-regular": "M18.5 20a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4c0-.27.22-.5.5-.5h6V8c0 1.1.9 2 2 2h4.5v10Zm-5-15.38 3.88 3.88H14a.5.5 0 0 1-.5-.5V4.62Zm5.91 3.8L13.6 2.58l-.09-.07a2.07 2.07 0 0 0-.22-.18l-.13-.07-.21-.12c-.2-.08-.41-.12-.63-.14L12.17 2H6a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42Z",
64
+ "document-regular": "M6 2a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L13.6 2.6A2 2 0 0 0 12.17 2H6Zm-.5 2c0-.28.22-.5.5-.5h6V8c0 1.1.9 2 2 2h4.5v10a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4Zm11.88 4.5H14a.5.5 0 0 1-.5-.5V4.62l3.88 3.88Z",
63
65
  "earth-regular": "M10.95 2.05A10 10 0 1 1 4.1 18.13a10 10 0 0 1 6.83-16.08h.02ZM12 3.5h-.16c.12.25.26.53.37.85.35.92.67 2.28.1 3.49-.52 1.11-1.42 1.4-2.09 1.57l-.08.02c-.66.17-.9.24-1.1.52-.16.25-.14.58.07 1.25l.04.14c.09.26.18.57.23.87.07.36.09.82-.15 1.27-.23.45-.54.75-.9.95-.34.18-.7.25-.96.3l-.09.02c-.51.09-.76.13-1 .39-.19.2-.3.55-.38 1.07l-.06.65v.12c-.03.24-.05.52-.1.76a8.48 8.48 0 0 0 10.58 1.58l-.31-.35c-.34-.43-.79-1.16-.63-2.03.07-.42.3-.77.51-1.04.22-.27.49-.52.72-.74l.16-.14c.18-.17.33-.3.46-.44.17-.18.21-.26.21-.27.07-.22-.01-.38-.1-.45a.3.3 0 0 0-.2-.06.75.75 0 0 0-.4.14.91.91 0 0 1-.83.08c-.27-.1-.41-.31-.49-.43a2.75 2.75 0 0 1-.27-.77l-.12-.55-.04-.21a4.1 4.1 0 0 0-.13-.54l-.02-.04a6.23 6.23 0 0 0-.3-.42l-.1-.14c-.16-.21-.36-.47-.52-.71-.2-.3-.42-.7-.49-1.1a1.39 1.39 0 0 1 .54-1.38 13 13 0 0 0 1.83-1.97c.29-.36.54-.7.73-.95A8.46 8.46 0 0 0 12 3.5Zm5.73 2.22-.76.98c-.6.75-1.4 1.68-2.05 2.19.03.1.1.26.26.5a10.73 10.73 0 0 0 .56.77c.18.23.42.54.52.84.1.23.15.52.2.76l.05.25.08.37c.6-.17 1.2-.07 1.67.3.6.46.86 1.28.62 2.07-.11.36-.36.66-.56.87l-.56.53-.13.12c-.23.2-.42.4-.57.57a.9.9 0 0 0-.2.36c-.04.22.06.51.32.84a3.14 3.14 0 0 0 .38.4 8.48 8.48 0 0 0 .17-12.72ZM3.5 12c0 1.4.34 2.72.94 3.88.08-.56.26-1.25.74-1.77a2.91 2.91 0 0 1 1.93-.86c.25-.04.4-.08.5-.14a.7.7 0 0 0 .3-.32c0-.03.03-.1 0-.33-.04-.18-.1-.38-.18-.63l-.06-.2c-.18-.6-.48-1.6.12-2.5.53-.8 1.36-1 1.9-1.13l.16-.04c.56-.15.88-.28 1.1-.76.3-.63.18-1.48-.14-2.32a7.61 7.61 0 0 0-.58-1.2A8.5 8.5 0 0 0 3.5 12Z",
64
66
  "edit-filled": "M15.9 3.05a3.58 3.58 0 1 1 5.05 5.06l-.89.9L15 3.93l.9-.9ZM13.93 5l-10 10c-.4.4-.7.92-.82 1.48l-1.1 4.6a.75.75 0 0 0 .9.9l4.6-1.1A3.1 3.1 0 0 0 9 20.07l10-10L13.94 5Z",
65
67
  "edit-regular": "M20.95 3.05a3.58 3.58 0 0 0-5.06 0L3.94 15c-.4.4-.7.92-.82 1.48l-1.1 4.6a.75.75 0 0 0 .9.9l4.6-1.1A3.1 3.1 0 0 0 9 20.07L20.95 8.11a3.58 3.58 0 0 0 0-5.06Zm-4 1.06a2.08 2.08 0 1 1 2.94 2.94l-.89.89L16.06 5l.9-.9ZM15 6.06 17.94 9l-10 10a1.6 1.6 0 0 1-.76.43l-3.42.8.82-3.4c.06-.3.21-.56.42-.77l10-10Z",
@@ -103,16 +105,16 @@
103
105
  "payment-filled": "M5.25 5A3.25 3.25 0 0 0 2 8.25V9.5h20V8.25C22 6.45 20.54 5 18.75 5H5.25ZM22 11H2v4.75C2 17.55 3.46 19 5.25 19h13.5c1.8 0 3.25-1.46 3.25-3.25V11Zm-6.25 3.5h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1 0-1.5Z",
104
106
  "payment-regular": "M15.75 14.5a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5h-2.5ZM2 8.25C2 6.45 3.46 5 5.25 5h13.5C20.55 5 22 6.46 22 8.25v7.5c0 1.8-1.46 3.25-3.25 3.25H5.25A3.25 3.25 0 0 1 2 15.75v-7.5ZM20.5 9.5V8.25c0-.97-.78-1.75-1.75-1.75H5.25c-.97 0-1.75.78-1.75 1.75V9.5h17ZM3.5 11v4.75c0 .97.78 1.75 1.75 1.75h13.5c.97 0 1.75-.78 1.75-1.75V11h-17Z",
105
107
  "people-add-regular": "M5.5 7a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0ZM8 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm7.5 5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM17 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM4.25 13C3.01 13 2 14 2 15.25v.28a2.07 2.07 0 0 0 .01.2c.02.14.04.32.1.53.09.42.29.98.68 1.55C3.61 18.97 5.17 20 8 20c1.37 0 2.44-.24 3.28-.62a6.48 6.48 0 0 1-.27-1.55c-.65.38-1.6.67-3.01.67-2.42 0-3.49-.85-3.98-1.56a2.99 2.99 0 0 1-.52-1.43v-.26c0-.41.34-.75.75-.75h7.48c.25-.48.56-.92.91-1.32a2.24 2.24 0 0 0-.89-.18h-7.5ZM23 17.5a5.5 5.5 0 1 0-11 0 5.5 5.5 0 0 0 11 0Zm-5 .5v2.5a.5.5 0 1 1-1 0V18h-2.5a.5.5 0 0 1 0-1H17v-2.5a.5.5 0 1 1 1 0V17h2.5a.5.5 0 0 1 0 1H18Z",
106
- "people-community-filled": "M14.75 15c.97 0 1.75.78 1.75 1.75v.96c.12 2.2-1.51 3.3-4.43 3.3-2.91 0-4.57-1.1-4.57-3.26v-1c0-.97.78-1.75 1.75-1.75h5.5Zm-11-5h4.38a4 4 0 0 0 1.06 3.85l.17.15h-.11a2.75 2.75 0 0 0-2.65 2h-.03C3.66 16 2 14.93 2 12.76v-1c0-.97.78-1.75 1.75-1.75Zm16.5 0c.97 0 1.75.78 1.75 1.75v.96c.12 2.2-1.51 3.3-4.43 3.3h-.17a2.76 2.76 0 0 0-2.45-2l-.2-.01h-.1a3.99 3.99 0 0 0 1.22-4h4.38ZM12 8a3 3 0 1 1 0 6 3 3 0 0 1 0-6ZM6.5 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm11 0a3 3 0 1 1 0 6 3 3 0 0 1 0-6Z",
107
- "people-community-regular": "M14.75 15c.97 0 1.75.78 1.75 1.75v.96c.12 2.2-1.51 3.3-4.43 3.3-2.91 0-4.57-1.1-4.57-3.26v-1c0-.97.78-1.75 1.75-1.75h5.5Zm0 1.5h-5.5a.25.25 0 0 0-.25.25v1c0 1.18.89 1.76 3.07 1.76 2.16 0 3-.56 2.93-1.76v-1a.25.25 0 0 0-.25-.25Zm-11-6.5h4.38a4 4 0 0 0-.1 1.5H3.75a.25.25 0 0 0-.25.25v1c0 1.18.89 1.76 3.07 1.76.46 0 .86-.03 1.2-.08-.56.36-.98.92-1.17 1.58h-.03C3.66 16 2 14.9 2 12.75v-1c0-.97.78-1.75 1.75-1.75Zm16.5 0c.97 0 1.75.78 1.75 1.75v.96c.12 2.2-1.51 3.3-4.43 3.3h-.17a2.76 2.76 0 0 0-1.22-1.6c.39.06.85.1 1.39.1 2.16 0 3-.56 2.93-1.76v-1a.25.25 0 0 0-.25-.25h-4.28a4.05 4.05 0 0 0-.1-1.5h4.38ZM12 8a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM6.5 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm11 0a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm-11 1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm11 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z",
108
+ "people-community-filled": "M7.5 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM2 10.77C2 9.79 2.8 9 3.77 9h4.77a3.98 3.98 0 0 0 .81 5H8.27c-1.19 0-2.2.75-2.6 1.8a4.6 4.6 0 0 1-2.97-2.1 5.15 5.15 0 0 1-.7-2.57v-.36ZM16 11c0-.73-.2-1.41-.54-2h4.77c.98 0 1.77.8 1.77 1.77v.36c0 .2 0 1.4-.7 2.57a4.6 4.6 0 0 1-2.98 2.1 2.77 2.77 0 0 0-2.59-1.8h-1.08A3.99 3.99 0 0 0 16 11Zm3.5-6a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm-13 11.77c0-.98.8-1.77 1.77-1.77h7.46c.98 0 1.77.8 1.77 1.77v.36c0 .2 0 1.4-.7 2.57-.74 1.24-2.19 2.3-4.8 2.3s-4.06-1.06-4.8-2.3a5.15 5.15 0 0 1-.7-2.57v-.36ZM12 14a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",
109
+ "people-community-regular": "M7.5 3.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM4.5 5a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-.73 4C2.79 9 2 9.8 2 10.77v.36c0 .2 0 1.4.7 2.57a4.6 4.6 0 0 0 2.98 2.1c.2-.55.58-1.02 1.06-1.34-1.6-.17-2.36-.88-2.75-1.53a3.65 3.65 0 0 1-.49-1.8v-.36c0-.15.12-.27.27-.27h4.26c.07-.54.24-1.05.5-1.5H3.78Zm11.7 0c.26.45.43.96.5 1.5h4.26c.15 0 .27.12.27.27v.36c0 .14 0 1-.49 1.8-.39.65-1.14 1.36-2.75 1.53.48.32.86.79 1.06 1.34a4.6 4.6 0 0 0 2.98-2.1c.7-1.16.7-2.36.7-2.57v-.36C22 9.79 21.2 9 20.23 9h-4.77ZM15 5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm1.5-3a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM12 9.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM9 11a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-2.5 5.77c0-.98.8-1.77 1.77-1.77h7.46c.98 0 1.77.8 1.77 1.77v.36c0 .2 0 1.4-.7 2.57-.74 1.24-2.19 2.3-4.8 2.3s-4.06-1.06-4.8-2.3a5.15 5.15 0 0 1-.7-2.57v-.36Zm1.77-.27a.27.27 0 0 0-.27.27v.36c0 .14 0 1 .49 1.8.44.74 1.37 1.57 3.51 1.57 2.14 0 3.07-.83 3.51-1.57.49-.8.49-1.66.49-1.8v-.36a.27.27 0 0 0-.27-.27H8.27Z",
108
110
  "people-filled": "M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm9 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM4.25 14C3.01 14 2 15 2 16.25v.25S2 21 8 21s6-4.5 6-4.5v-.25c0-1.24-1-2.25-2.25-2.25h-7.5ZM17 19.5a7.33 7.33 0 0 1-2.75-.46 5.5 5.5 0 0 0 .75-2.49v-.3c0-.87-.34-1.66-.9-2.25H19.8c1.22 0 2.2.98 2.2 2.2 0 0 0 3.3-5 3.3Z",
109
111
  "people-regular": "M5.5 8a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0ZM8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm7.5 5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM17 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-2.75 13.04c.7.28 1.6.46 2.75.46 2.28 0 3.59-.7 4.3-1.56a3.14 3.14 0 0 0 .7-1.73v-.03c0-1.2-.97-2.18-2.18-2.18H14.1c.4.41.68.93.81 1.5h4.91a.68.68 0 0 1 .68.7l-.04.18c-.04.16-.13.38-.32.6C19.8 17.42 18.97 18 17 18c-.98 0-1.67-.15-2.17-.34-.1.4-.28.88-.58 1.38ZM4.25 14C3.01 14 2 15 2 16.25v.28a2.07 2.07 0 0 0 .01.2c.02.14.04.32.1.53.09.42.29.98.68 1.55C3.61 19.97 5.17 21 8 21s4.39-1.03 5.2-2.2a4.48 4.48 0 0 0 .8-2.27v-.28c0-1.24-1-2.25-2.25-2.25h-7.5Zm-.75 2.5v-.25c0-.41.34-.75.75-.75h7.5c.41 0 .75.34.75.75v.34l-.06.33c-.07.28-.2.65-.46 1.02-.5.71-1.56 1.56-3.98 1.56s-3.49-.85-3.98-1.56a2.99 2.99 0 0 1-.52-1.43Z",
110
112
  "people-team-regular": "M14.75 10c.97 0 1.75.78 1.75 1.75v4.75a4.5 4.5 0 0 1-9 0v-4.75c0-.97.79-1.75 1.75-1.75h5.5Zm0 1.5h-5.5a.25.25 0 0 0-.25.25v4.75a3 3 0 0 0 6 0v-4.75a.25.25 0 0 0-.25-.25Zm-11-1.5h3.38c-.34.41-.57.93-.62 1.5H3.75a.25.25 0 0 0-.25.25V15a2.5 2.5 0 0 0 3.08 2.43c.09.5.24.99.45 1.43A4 4 0 0 1 2 15v-3.24c0-.97.78-1.75 1.75-1.75Zm13.12 0h3.38c.97 0 1.75.78 1.75 1.75V15a4 4 0 0 1-5.03 3.87c.21-.45.37-.93.46-1.44A2.5 2.5 0 0 0 20.5 15v-3.25a.25.25 0 0 0-.25-.25h-2.76a2.74 2.74 0 0 0-.62-1.5ZM12 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm6.5 1a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm-13 0a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5Zm6.5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm6.5 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-13 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",
111
113
  "person-accounts-filled": "M13 14.05V14H4.25C3.01 14 2 15 2 16.25v.92c0 .57.18 1.13.51 1.6C4.06 20.92 6.58 22 10 22c.36 0 .7-.01 1.04-.03-.03-.15-.04-.31-.04-.47v-5c0-1.2.86-2.22 2-2.45ZM10 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm4 13h-.5c-.83 0-1.5.67-1.5 1.5v5c0 .83.67 1.5 1.5 1.5h8c.83 0 1.5-.67 1.5-1.5v-5c0-.83-.67-1.5-1.5-1.5H21v-1.25c0-.97-.78-1.75-1.75-1.75h-3.5c-.97 0-1.75.78-1.75 1.75V15Zm1.5-1.25c0-.14.11-.25.25-.25h3.5c.14 0 .25.11.25.25V15h-4v-1.25Z",
112
114
  "person-accounts-regular": "M13 14.05V14H4.25C3.01 14 2 15 2 16.25v.58c0 .89.32 1.75.9 2.43C4.47 21.1 6.85 22 10 22c.36 0 .7-.01 1.04-.03a2.5 2.5 0 0 1-.04-.47v-1.03c-.32.02-.65.03-1 .03-2.74 0-4.7-.74-5.96-2.21-.34-.4-.54-.93-.54-1.46v-.58c0-.41.34-.75.75-.75h6.96A2.5 2.5 0 0 1 13 14.05ZM10 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM14 15h-.5c-.83 0-1.5.67-1.5 1.5v5c0 .83.67 1.5 1.5 1.5h8c.83 0 1.5-.67 1.5-1.5v-5c0-.83-.67-1.5-1.5-1.5H21v-1.25c0-.97-.78-1.75-1.75-1.75h-3.5c-.97 0-1.75.78-1.75 1.75V15Zm1.5-1.25c0-.14.11-.25.25-.25h3.5c.14 0 .25.11.25.25V15h-4v-1.25Z",
113
115
  "person-add-regular": "M17.5 12a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-5.48 2c-.3.46-.53.97-.7 1.5H4.24a.75.75 0 0 0-.75.75v.58c0 .53.2 1.05.54 1.46C5.3 19.76 7.26 20.5 10 20.5c.6 0 1.16-.03 1.68-.1.25.49.55.95.91 1.36-.8.16-1.66.24-2.59.24-3.15 0-5.53-.9-7.1-2.74a3.75 3.75 0 0 1-.9-2.43v-.58C2 15 3.01 14 4.25 14h7.77Zm5.48 0h-.09a.5.5 0 0 0-.4.41l-.01.09V17H14.4a.5.5 0 0 0-.4.41v.18c.04.2.2.37.4.4l.1.01H17v2.59c.05.2.2.37.41.4l.09.01h.09a.5.5 0 0 0 .4-.41l.01-.09V18h2.6a.5.5 0 0 0 .4-.41v-.18a.5.5 0 0 0-.4-.4l-.1-.01H18v-2.59a.5.5 0 0 0-.41-.4L17.5 14ZM10 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z",
114
- "person-call-filled": "M5.25 14h11c.1.17.22.33.37.47l.72.69a4.23 4.23 0 0 1-1.1 1.9l-.8-.27a2.19 2.19 0 0 0-2.5.86l-.73 1.06c-.63.93-.52 2.19.27 2.98l.23.23c-.54.05-1.11.08-1.71.08-2.89 0-5.13-.66-6.7-2A3.75 3.75 0 0 1 3 17.16v-.91C3 15.01 4.01 14 5.25 14Zm11.76-1.75.5-1.2c.24-.55.8-.85 1.36-.74l.12.04.63.2c.62.2 1.1.73 1.26 1.4.36 1.6-.08 3.55-1.32 5.84-1.25 2.29-2.62 3.67-4.1 4.13-.58.18-1.2.05-1.67-.34l-.12-.12-.48-.48a1.36 1.36 0 0 1-.22-1.59l.07-.11.72-1.06A1.2 1.2 0 0 1 15 17.7l.12.04 1.34.44a5.08 5.08 0 0 0 1.92-3.1l.04-.28-1.1-1.05c-.37-.35-.5-.89-.36-1.37l.05-.13.5-1.2-.5 1.2ZM11 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z",
115
- "person-call-regular": "M5.25 14h11c.1.17.22.33.37.47l.72.69c-.04.16-.1.31-.16.47a.75.75 0 0 0-.43-.13H5.25a.75.75 0 0 0-.75.75v.9c0 .66.29 1.29.79 1.71C6.55 19.95 8.44 20.5 11 20.5c.3 0 .58 0 .85-.02.08.45.3.87.63 1.2l.23.24c-.54.05-1.11.08-1.71.08-2.89 0-5.13-.66-6.7-2A3.75 3.75 0 0 1 3 17.16v-.91C3 15.01 4.01 14 5.25 14Zm11.76-1.75.5-1.2c.24-.55.8-.85 1.36-.74l.12.04.63.2c.62.2 1.1.73 1.26 1.4.36 1.6-.08 3.55-1.32 5.84-1.25 2.29-2.62 3.67-4.1 4.13-.58.18-1.2.05-1.67-.34l-.12-.12-.48-.48a1.36 1.36 0 0 1-.22-1.59l.07-.11.72-1.06A1.2 1.2 0 0 1 15 17.7l.12.04 1.34.44a5.08 5.08 0 0 0 1.92-3.1l.04-.28-1.1-1.05c-.37-.35-.5-.89-.36-1.37l.05-.13.5-1.2-.5 1.2ZM11 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z",
116
+ "person-call-filled": "M17.72 15.95a2.2 2.2 0 0 1-.57-1.95H6.25C5.01 14 4 15 4 16.25v.92c0 .57.18 1.13.51 1.6C6.06 20.92 8.58 22 12 22a15 15 0 0 0 1.13-.04 2.25 2.25 0 0 1 .36-2.16l.8-1.01a2.2 2.2 0 0 1 2.23-.77l.84.2c.52-.43.83-.97.95-1.64l-.6-.63ZM12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm6.2 12 .47-1.21c.24-.61.92-.93 1.55-.73l.43.14c.72.24 1.32.8 1.35 1.57.1 3.11-2.48 7.58-5.22 9.06-.67.36-1.46.12-2.03-.4l-.34-.3a1.25 1.25 0 0 1-.14-1.7l.8-1.02a1.2 1.2 0 0 1 1.22-.42l1.3.32a3.78 3.78 0 0 0 1.77-3.08l-.92-.96a1.2 1.2 0 0 1-.25-1.28Z",
117
+ "person-call-regular": "M17.38 15.5a2.2 2.2 0 0 1-.23-1.5H6.25C5.01 14 4 15 4 16.25v.58c0 .89.32 1.75.9 2.43C6.47 21.1 8.85 22 12 22a15 15 0 0 0 1.13-.04 2.26 2.26 0 0 1 0-1.5c-.36.03-.74.04-1.13.04-2.74 0-4.7-.74-5.96-2.21-.34-.41-.54-.93-.54-1.46v-.58c0-.41.34-.75.75-.75h11.13ZM12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM18.2 14l.47-1.21c.24-.61.92-.93 1.55-.73l.43.14c.72.24 1.32.8 1.35 1.57.1 3.11-2.48 7.58-5.22 9.06-.67.36-1.46.12-2.03-.4l-.34-.3a1.25 1.25 0 0 1-.14-1.7l.8-1.02a1.2 1.2 0 0 1 1.22-.42l1.3.32a3.78 3.78 0 0 0 1.77-3.08l-.92-.96a1.2 1.2 0 0 1-.25-1.28Z",
116
118
  "person-filled": "M17.75 14C19 14 20 15 20 16.25v.92c0 .57-.18 1.13-.5 1.6C17.93 20.93 15.41 22 12 22s-5.94-1.07-7.49-3.24a2.75 2.75 0 0 1-.5-1.6v-.91C4 15 5 14 6.24 14h11.5ZM12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z",
117
119
  "person-lock-regular": "M14 14H4.25C3.01 14 2 15 2 16.25v.58c0 .89.32 1.75.9 2.43C4.47 21.1 6.85 22 10 22c.71 0 1.39-.05 2.03-.14a2.53 2.53 0 0 1-.03-.36v-1.15c-.61.1-1.28.15-2 .15-2.74 0-4.7-.74-5.96-2.21-.34-.4-.54-.93-.54-1.46v-.58c0-.41.34-.75.75-.75h7.96A2.5 2.5 0 0 1 14 14.05V14ZM10 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM15 15h-.5c-.83 0-1.5.67-1.5 1.5v5c0 .83.67 1.5 1.5 1.5h6c.83 0 1.5-.67 1.5-1.5v-5c0-.83-.67-1.5-1.5-1.5H20v-1a2.5 2.5 0 0 0-5 0v1Zm1.5-1a1 1 0 0 1 2 0v1h-2v-1Zm2 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",
118
120
  "person-regular": "M17.75 14C19 14 20 15 20 16.25v.57c0 .9-.32 1.76-.9 2.44C17.53 21.1 15.15 22 12 22c-3.15 0-5.53-.9-7.1-2.74a3.75 3.75 0 0 1-.9-2.43v-.58C4 15 5.01 14 6.25 14h11.5Zm0 1.5H6.25a.75.75 0 0 0-.75.75v.58c0 .53.2 1.05.54 1.46C7.3 19.76 9.26 20.5 12 20.5c2.74 0 4.7-.74 5.96-2.21.35-.41.54-.93.54-1.47v-.57a.75.75 0 0 0-.75-.75ZM12 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Zm0 1.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z",
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { StyleProp, ViewStyle } from "react-native";
3
- type AlertVariant = "info" | "warning" | "error";
4
- type Props = {
5
- variant: AlertVariant;
6
- children: string;
7
- style?: StyleProp<ViewStyle>;
8
- };
9
- export declare const Alert: ({ variant, children, style }: Props) => JSX.Element;
10
- export {};
@@ -1,36 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { StyleSheet, Text } from "react-native";
3
- import { colors } from "../constants/colors";
4
- import { typography } from "../constants/typography";
5
- import { Box } from "./Box";
6
- import { Icon } from "./Icon";
7
- import { Space } from "./Space";
8
- const styles = StyleSheet.create({
9
- base: {
10
- paddingVertical: 12,
11
- paddingHorizontal: 12,
12
- borderRadius: 4,
13
- },
14
- text: {
15
- ...typography.bodySmall,
16
- },
17
- });
18
- const alertIcon = {
19
- info: "info-filled",
20
- warning: "warning-filled",
21
- error: "error-circle-filled",
22
- };
23
- const alertColor = {
24
- info: colors.gray[80],
25
- warning: colors.orange[100],
26
- error: colors.red[100],
27
- };
28
- const alertBackground = {
29
- info: colors.gray[3],
30
- warning: colors.orange[10],
31
- error: colors.red[10],
32
- };
33
- export const Alert = ({ variant, children, style }) => {
34
- const color = alertColor[variant];
35
- return (_jsxs(Box, { direction: "row", alignItems: "center", style: [styles.base, { backgroundColor: alertBackground[variant] }, style], children: [_jsx(Icon, { name: alertIcon[variant], color: color, size: 20 }), _jsx(Space, { width: 12 }), _jsx(Text, { style: [styles.text, { color }], children: children })] }));
36
- };
@@ -1,15 +0,0 @@
1
- import { ReactText } from "react";
2
- import { GestureResponderEvent, StyleProp, View, ViewStyle } from "react-native";
3
- import { IconName } from "./Icon";
4
- type Props = {
5
- children?: ReactText;
6
- color?: string;
7
- disabled?: boolean;
8
- loading?: boolean;
9
- icon?: IconName;
10
- onPress?: (event: GestureResponderEvent) => void;
11
- size?: "large" | "small";
12
- style?: StyleProp<ViewStyle>;
13
- };
14
- export declare const Button: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<View>>>;
15
- export {};
@@ -1,83 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef, memo } from "react";
3
- import { ActivityIndicator, Pressable, StyleSheet, Text, View, } from "react-native";
4
- import { colors } from "../constants/colors";
5
- import { typography } from "../constants/typography";
6
- import { useComputedColors } from "../hooks/useComputedColors";
7
- import { isNotNullish, isNullish } from "../utils/nullish";
8
- import { Icon } from "./Icon";
9
- import { Space } from "./Space";
10
- const styles = StyleSheet.create({
11
- base: {
12
- alignItems: "center",
13
- backgroundColor: colors.black,
14
- borderRadius: 4,
15
- flexDirection: "row",
16
- flexShrink: 1,
17
- height: 48,
18
- justifyContent: "center",
19
- overflow: "hidden",
20
- paddingLeft: 20,
21
- paddingRight: 20,
22
- transitionDuration: "150ms",
23
- transitionProperty: "background-color",
24
- },
25
- small: {
26
- height: 40,
27
- paddingLeft: 16,
28
- paddingRight: 16,
29
- },
30
- withIcon: {
31
- paddingLeft: 18,
32
- },
33
- withIconSmall: {
34
- paddingLeft: 14,
35
- },
36
- iconOnly: {
37
- paddingLeft: 13,
38
- paddingRight: 13,
39
- },
40
- iconOnlySmall: {
41
- paddingLeft: 10,
42
- paddingRight: 10,
43
- },
44
- text: {
45
- ...typography.bodyLarge,
46
- fontWeight: typography.fontWeights.demi,
47
- },
48
- textSmall: {
49
- ...typography.bodySmall,
50
- fontWeight: typography.fontWeights.demi,
51
- },
52
- disabled: {
53
- cursor: "not-allowed",
54
- },
55
- loaderContainer: {
56
- ...StyleSheet.absoluteFillObject,
57
- alignItems: "center",
58
- justifyContent: "center",
59
- },
60
- });
61
- export const Button = memo(forwardRef(({ children, color = colors.gray[100], disabled = false, loading = false, icon, onPress, size = "large", style, }, forwardedRef) => {
62
- const computedColors = useComputedColors(color);
63
- const isSmall = size === "small";
64
- const iconSize = isSmall ? 18 : 20;
65
- return (_jsxs(Pressable, { accessibilityRole: "button", accessibilityBusy: loading, accessibilityDisabled: disabled, disabled: loading || disabled, ref: forwardedRef, onPress: onPress, style: ({ hovered, pressed }) => [
66
- styles.base,
67
- isSmall && styles.small,
68
- isNotNullish(icon) && (isSmall ? styles.withIconSmall : styles.withIcon),
69
- isNullish(children) && (isSmall ? styles.iconOnlySmall : styles.iconOnly),
70
- disabled && styles.disabled,
71
- style,
72
- {
73
- backgroundColor: disabled
74
- ? computedColors.disabled
75
- : pressed
76
- ? computedColors.pressed
77
- : hovered
78
- ? computedColors.hovered
79
- : computedColors.original,
80
- },
81
- ], children: [icon && _jsx(Icon, { color: computedColors.text, name: icon, size: iconSize }), isNotNullish(icon) && isNotNullish(children) && _jsx(Space, { width: isSmall ? 8 : 12 }), _jsx(Text, { numberOfLines: 1, selectable: false, style: [isSmall ? styles.textSmall : styles.text, { color: computedColors.text }], children: children }), loading && (_jsx(View, { accessibilityRole: "none", style: [styles.loaderContainer, { backgroundColor: computedColors.original }], children: _jsx(ActivityIndicator, { color: computedColors.text, size: iconSize }) }))] }));
82
- }));
83
- Button.displayName = "Button";
@@ -1,12 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { StyleProp, View, ViewStyle } from "react-native";
3
- type Props = {
4
- children?: ReactNode;
5
- disabled?: boolean;
6
- error?: string;
7
- style?: StyleProp<ViewStyle>;
8
- value: boolean;
9
- onValueChange?: (value: boolean) => void;
10
- };
11
- export declare const CheckBox: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<View>>>;
12
- export {};