@rojaostudio/ds 1.0.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/LICENSE +21 -0
- package/README.md +89 -0
- package/brand/rojao-black-on-white.png +0 -0
- package/brand/rojao-black.png +0 -0
- package/brand/rojao-white-on-black.png +0 -0
- package/brand/rojao-white.png +0 -0
- package/dist/chunk-ORMEWXMH.js +37 -0
- package/dist/compat/generate.d.ts +6 -0
- package/dist/compat/generate.js +1 -0
- package/dist/compat/recipes.d.ts +1 -0
- package/dist/compat/recipes.js +1 -0
- package/dist/compat/themes.d.ts +1 -0
- package/dist/compat/themes.js +1 -0
- package/dist/compat/tokens.d.ts +1 -0
- package/dist/compat/tokens.js +1 -0
- package/dist/components/accordion.d.ts +35 -0
- package/dist/components/accordion.js +95 -0
- package/dist/components/alert.d.ts +24 -0
- package/dist/components/alert.js +72 -0
- package/dist/components/avatar.d.ts +45 -0
- package/dist/components/avatar.js +97 -0
- package/dist/components/badge.d.ts +45 -0
- package/dist/components/badge.js +114 -0
- package/dist/components/blocker-card.d.ts +42 -0
- package/dist/components/blocker-card.js +45 -0
- package/dist/components/bottom-sheet.d.ts +31 -0
- package/dist/components/bottom-sheet.js +120 -0
- package/dist/components/breadcrumb.d.ts +28 -0
- package/dist/components/breadcrumb.js +52 -0
- package/dist/components/button.d.ts +27 -0
- package/dist/components/button.js +124 -0
- package/dist/components/card.d.ts +27 -0
- package/dist/components/card.js +52 -0
- package/dist/components/chat-bubble.d.ts +16 -0
- package/dist/components/chat-bubble.js +55 -0
- package/dist/components/checkbox.d.ts +14 -0
- package/dist/components/checkbox.js +78 -0
- package/dist/components/chip-input.d.ts +26 -0
- package/dist/components/chip-input.js +182 -0
- package/dist/components/chips.d.ts +22 -0
- package/dist/components/chips.js +94 -0
- package/dist/components/choice-card.d.ts +16 -0
- package/dist/components/choice-card.js +60 -0
- package/dist/components/choice-carousel.d.ts +16 -0
- package/dist/components/choice-carousel.js +154 -0
- package/dist/components/choice-preview-card.d.ts +37 -0
- package/dist/components/choice-preview-card.js +39 -0
- package/dist/components/color-input.d.ts +20 -0
- package/dist/components/color-input.js +79 -0
- package/dist/components/combobox.d.ts +70 -0
- package/dist/components/combobox.js +213 -0
- package/dist/components/context-menu.d.ts +33 -0
- package/dist/components/context-menu.js +70 -0
- package/dist/components/copilot-hint.d.ts +18 -0
- package/dist/components/copilot-hint.js +63 -0
- package/dist/components/copy-field.d.ts +16 -0
- package/dist/components/copy-field.js +41 -0
- package/dist/components/currency-input.d.ts +32 -0
- package/dist/components/currency-input.js +138 -0
- package/dist/components/danger-zone.d.ts +20 -0
- package/dist/components/danger-zone.js +21 -0
- package/dist/components/data-table-header.d.ts +43 -0
- package/dist/components/data-table-header.js +205 -0
- package/dist/components/date-picker.d.ts +40 -0
- package/dist/components/date-picker.js +252 -0
- package/dist/components/divider.d.ts +20 -0
- package/dist/components/divider.js +47 -0
- package/dist/components/drawer.d.ts +26 -0
- package/dist/components/drawer.js +82 -0
- package/dist/components/dropzone.d.ts +19 -0
- package/dist/components/dropzone.js +65 -0
- package/dist/components/empty-state.d.ts +48 -0
- package/dist/components/empty-state.js +91 -0
- package/dist/components/fab.d.ts +38 -0
- package/dist/components/fab.js +100 -0
- package/dist/components/filter-chip.d.ts +54 -0
- package/dist/components/filter-chip.js +66 -0
- package/dist/components/floating-stepper.d.ts +44 -0
- package/dist/components/floating-stepper.js +53 -0
- package/dist/components/form-card-header.d.ts +13 -0
- package/dist/components/form-card-header.js +8 -0
- package/dist/components/icon-button.d.ts +17 -0
- package/dist/components/icon-button.js +80 -0
- package/dist/components/image-crop-modal.d.ts +59 -0
- package/dist/components/image-crop-modal.js +240 -0
- package/dist/components/image-upload.d.ts +72 -0
- package/dist/components/image-upload.js +271 -0
- package/dist/components/index.d.ts +85 -0
- package/dist/components/index.js +200 -0
- package/dist/components/input.d.ts +25 -0
- package/dist/components/input.js +136 -0
- package/dist/components/insight-card.d.ts +19 -0
- package/dist/components/insight-card.js +27 -0
- package/dist/components/label.d.ts +16 -0
- package/dist/components/label.js +43 -0
- package/dist/components/media-tile.d.ts +24 -0
- package/dist/components/media-tile.js +28 -0
- package/dist/components/menu.d.ts +50 -0
- package/dist/components/menu.js +80 -0
- package/dist/components/modal.d.ts +25 -0
- package/dist/components/modal.js +71 -0
- package/dist/components/notice.d.ts +50 -0
- package/dist/components/notice.js +103 -0
- package/dist/components/option-tile.d.ts +60 -0
- package/dist/components/option-tile.js +144 -0
- package/dist/components/page-shell.d.ts +29 -0
- package/dist/components/page-shell.js +36 -0
- package/dist/components/page-skeleton.d.ts +35 -0
- package/dist/components/page-skeleton.js +12 -0
- package/dist/components/page-tabs.d.ts +35 -0
- package/dist/components/page-tabs.js +55 -0
- package/dist/components/pagination.d.ts +31 -0
- package/dist/components/pagination.js +80 -0
- package/dist/components/paywall-banner.d.ts +37 -0
- package/dist/components/paywall-banner.js +42 -0
- package/dist/components/paywall.d.ts +44 -0
- package/dist/components/paywall.js +55 -0
- package/dist/components/phone-frame.d.ts +9 -0
- package/dist/components/phone-frame.js +18 -0
- package/dist/components/phone-input.d.ts +24 -0
- package/dist/components/phone-input.js +92 -0
- package/dist/components/pix-icon.d.ts +8 -0
- package/dist/components/pix-icon.js +24 -0
- package/dist/components/popover.d.ts +44 -0
- package/dist/components/popover.js +140 -0
- package/dist/components/pricing-card.d.ts +42 -0
- package/dist/components/pricing-card.js +29 -0
- package/dist/components/qr-display.d.ts +19 -0
- package/dist/components/qr-display.js +24 -0
- package/dist/components/radio.d.ts +33 -0
- package/dist/components/radio.js +97 -0
- package/dist/components/row-actions.d.ts +24 -0
- package/dist/components/row-actions.js +76 -0
- package/dist/components/saving-bar-context.d.ts +40 -0
- package/dist/components/saving-bar-context.js +125 -0
- package/dist/components/saving-bar.d.ts +18 -0
- package/dist/components/saving-bar.js +72 -0
- package/dist/components/search.d.ts +30 -0
- package/dist/components/search.js +81 -0
- package/dist/components/section-card.d.ts +14 -0
- package/dist/components/section-card.js +49 -0
- package/dist/components/section-header.d.ts +29 -0
- package/dist/components/section-header.js +7 -0
- package/dist/components/select.d.ts +21 -0
- package/dist/components/select.js +140 -0
- package/dist/components/selectable-card.d.ts +35 -0
- package/dist/components/selectable-card.js +27 -0
- package/dist/components/setting-row.d.ts +33 -0
- package/dist/components/setting-row.js +19 -0
- package/dist/components/settings-list.d.ts +25 -0
- package/dist/components/settings-list.js +22 -0
- package/dist/components/skeleton.d.ts +24 -0
- package/dist/components/skeleton.js +49 -0
- package/dist/components/slider.d.ts +32 -0
- package/dist/components/slider.js +79 -0
- package/dist/components/spinner.d.ts +14 -0
- package/dist/components/spinner.js +36 -0
- package/dist/components/step-progress.d.ts +12 -0
- package/dist/components/step-progress.js +24 -0
- package/dist/components/summary-bar.d.ts +31 -0
- package/dist/components/summary-bar.js +54 -0
- package/dist/components/table.d.ts +23 -0
- package/dist/components/table.js +80 -0
- package/dist/components/textarea.d.ts +21 -0
- package/dist/components/textarea.js +95 -0
- package/dist/components/themed.d.ts +36 -0
- package/dist/components/themed.js +22 -0
- package/dist/components/time-picker.d.ts +34 -0
- package/dist/components/time-picker.js +213 -0
- package/dist/components/toaster.d.ts +84 -0
- package/dist/components/toaster.js +284 -0
- package/dist/components/toggle-card-compact.d.ts +21 -0
- package/dist/components/toggle-card-compact.js +99 -0
- package/dist/components/toggle-card.d.ts +15 -0
- package/dist/components/toggle-card.js +76 -0
- package/dist/components/toggle-group.d.ts +67 -0
- package/dist/components/toggle-group.js +80 -0
- package/dist/components/toggle.d.ts +13 -0
- package/dist/components/toggle.js +64 -0
- package/dist/components/tooltip.d.ts +17 -0
- package/dist/components/tooltip.js +89 -0
- package/dist/components/typing-indicator.d.ts +8 -0
- package/dist/components/typing-indicator.js +27 -0
- package/dist/components/use-dismiss.d.ts +9 -0
- package/dist/components/use-dismiss.js +28 -0
- package/dist/components/use-focus-trap.d.ts +5 -0
- package/dist/components/use-focus-trap.js +54 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +89 -0
- package/dist/targets/native/components/accordion.d.ts +18 -0
- package/dist/targets/native/components/accordion.js +122 -0
- package/dist/targets/native/components/alert.d.ts +16 -0
- package/dist/targets/native/components/alert.js +58 -0
- package/dist/targets/native/components/avatar.d.ts +25 -0
- package/dist/targets/native/components/avatar.js +88 -0
- package/dist/targets/native/components/badge.d.ts +27 -0
- package/dist/targets/native/components/badge.js +59 -0
- package/dist/targets/native/components/button.d.ts +18 -0
- package/dist/targets/native/components/button.js +84 -0
- package/dist/targets/native/components/card.d.ts +6 -0
- package/dist/targets/native/components/card.js +36 -0
- package/dist/targets/native/components/checkbox.d.ts +12 -0
- package/dist/targets/native/components/checkbox.js +59 -0
- package/dist/targets/native/components/chips.d.ts +17 -0
- package/dist/targets/native/components/chips.js +77 -0
- package/dist/targets/native/components/choice-card.d.ts +11 -0
- package/dist/targets/native/components/choice-card.js +52 -0
- package/dist/targets/native/components/context-menu.d.ts +11 -0
- package/dist/targets/native/components/context-menu.js +19 -0
- package/dist/targets/native/components/currency-input.d.ts +22 -0
- package/dist/targets/native/components/currency-input.js +105 -0
- package/dist/targets/native/components/danger-zone.d.ts +13 -0
- package/dist/targets/native/components/danger-zone.js +27 -0
- package/dist/targets/native/components/date-picker.d.ts +13 -0
- package/dist/targets/native/components/date-picker.js +185 -0
- package/dist/targets/native/components/divider.d.ts +9 -0
- package/dist/targets/native/components/divider.js +36 -0
- package/dist/targets/native/components/empty-state.d.ts +13 -0
- package/dist/targets/native/components/empty-state.js +10 -0
- package/dist/targets/native/components/fab.d.ts +25 -0
- package/dist/targets/native/components/fab.js +112 -0
- package/dist/targets/native/components/filter-chip.d.ts +22 -0
- package/dist/targets/native/components/filter-chip.js +70 -0
- package/dist/targets/native/components/form-field.d.ts +13 -0
- package/dist/targets/native/components/form-field.js +29 -0
- package/dist/targets/native/components/form-screen.d.ts +19 -0
- package/dist/targets/native/components/form-screen.js +88 -0
- package/dist/targets/native/components/google-icon.d.ts +8 -0
- package/dist/targets/native/components/google-icon.js +32 -0
- package/dist/targets/native/components/icon-button.d.ts +18 -0
- package/dist/targets/native/components/icon-button.js +80 -0
- package/dist/targets/native/components/icon.d.ts +11 -0
- package/dist/targets/native/components/icon.js +9 -0
- package/dist/targets/native/components/image-upload.d.ts +12 -0
- package/dist/targets/native/components/image-upload.js +95 -0
- package/dist/targets/native/components/index.d.ts +45 -0
- package/dist/targets/native/components/index.js +100 -0
- package/dist/targets/native/components/input.d.ts +17 -0
- package/dist/targets/native/components/input.js +103 -0
- package/dist/targets/native/components/list-item.d.ts +20 -0
- package/dist/targets/native/components/list-item.js +71 -0
- package/dist/targets/native/components/menu.d.ts +24 -0
- package/dist/targets/native/components/menu.js +71 -0
- package/dist/targets/native/components/modal.d.ts +15 -0
- package/dist/targets/native/components/modal.js +110 -0
- package/dist/targets/native/components/paywall-banner.d.ts +11 -0
- package/dist/targets/native/components/paywall-banner.js +46 -0
- package/dist/targets/native/components/paywall.d.ts +18 -0
- package/dist/targets/native/components/paywall.js +61 -0
- package/dist/targets/native/components/radio.d.ts +20 -0
- package/dist/targets/native/components/radio.js +71 -0
- package/dist/targets/native/components/search.d.ts +22 -0
- package/dist/targets/native/components/search.js +92 -0
- package/dist/targets/native/components/select.d.ts +17 -0
- package/dist/targets/native/components/select.js +86 -0
- package/dist/targets/native/components/sheet.d.ts +11 -0
- package/dist/targets/native/components/sheet.js +51 -0
- package/dist/targets/native/components/skeleton.d.ts +18 -0
- package/dist/targets/native/components/skeleton.js +52 -0
- package/dist/targets/native/components/slider.d.ts +18 -0
- package/dist/targets/native/components/slider.js +153 -0
- package/dist/targets/native/components/spinner.d.ts +7 -0
- package/dist/targets/native/components/spinner.js +10 -0
- package/dist/targets/native/components/stepper.d.ts +10 -0
- package/dist/targets/native/components/stepper.js +33 -0
- package/dist/targets/native/components/switch.d.ts +20 -0
- package/dist/targets/native/components/switch.js +68 -0
- package/dist/targets/native/components/text.d.ts +12 -0
- package/dist/targets/native/components/text.js +31 -0
- package/dist/targets/native/components/textarea.d.ts +13 -0
- package/dist/targets/native/components/textarea.js +92 -0
- package/dist/targets/native/components/theme.d.ts +18 -0
- package/dist/targets/native/components/theme.js +20 -0
- package/dist/targets/native/components/toaster.d.ts +35 -0
- package/dist/targets/native/components/toaster.js +159 -0
- package/dist/targets/native/fonts.d.ts +9 -0
- package/dist/targets/native/fonts.js +10 -0
- package/dist/targets/native/icons.d.ts +1 -0
- package/dist/targets/native/icons.js +1 -0
- package/dist/targets/native/index.d.ts +3 -0
- package/dist/targets/native/index.js +11 -0
- package/dist/targets/native/preset.cjs +69 -0
- package/dist/targets/native/resolve.d.ts +22 -0
- package/dist/targets/native/resolve.js +85 -0
- package/dist/targets/native/theme.css +118 -0
- package/dist/targets/native/theme.d.ts +117 -0
- package/dist/targets/native/theme.js +118 -0
- package/package.json +194 -0
- package/styles/_primitives.generated.css +284 -0
- package/styles/base.css +950 -0
- package/styles/themes/rojao.css +107 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "../../../chunk-ORMEWXMH.js";
|
|
5
|
+
import { Text as RNText } from "react-native";
|
|
6
|
+
import { fonts } from "../fonts.js";
|
|
7
|
+
import { useTheme } from "./theme.js";
|
|
8
|
+
const VARIANT = {
|
|
9
|
+
heading: { fontSize: 24, lineHeight: 30, fontWeight: "700", fontFamily: fonts.display.bold },
|
|
10
|
+
title: { fontSize: 18, lineHeight: 24, fontWeight: "600", fontFamily: fonts.display.semibold },
|
|
11
|
+
label: { fontSize: 14, lineHeight: 18, fontWeight: "600" },
|
|
12
|
+
body: { fontSize: 16, lineHeight: 22, fontWeight: "400" },
|
|
13
|
+
"body-sm": { fontSize: 14, lineHeight: 20, fontWeight: "400" },
|
|
14
|
+
caption: { fontSize: 12, lineHeight: 16, fontWeight: "400" }
|
|
15
|
+
};
|
|
16
|
+
const COLOR_TOKEN = {
|
|
17
|
+
primary: "--text-primary",
|
|
18
|
+
secondary: "--text-secondary",
|
|
19
|
+
muted: "--text-muted",
|
|
20
|
+
inverse: "--text-inverse",
|
|
21
|
+
danger: "--danger-text",
|
|
22
|
+
brand: "--brand-primary"
|
|
23
|
+
};
|
|
24
|
+
function Text(_a) {
|
|
25
|
+
var _b = _a, { variant = "body", color = "primary", style } = _b, rest = __objRest(_b, ["variant", "color", "style"]);
|
|
26
|
+
const t = useTheme();
|
|
27
|
+
return /* @__PURE__ */ React.createElement(RNText, __spreadValues({ style: [VARIANT[variant], { color: t[COLOR_TOKEN[color]] }, style] }, rest));
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
Text
|
|
31
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { TextInputProps } from 'react-native';
|
|
3
|
+
|
|
4
|
+
type Props = TextInputProps & {
|
|
5
|
+
error?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
autoGrow?: boolean;
|
|
9
|
+
maxRows?: number;
|
|
10
|
+
};
|
|
11
|
+
declare function TextArea({ style, onFocus, onBlur, onContentSizeChange, numberOfLines, error, disabled, label, accessibilityLabel, autoGrow, maxRows, ...rest }: Props): react.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { TextArea };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "../../../chunk-ORMEWXMH.js";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import {
|
|
7
|
+
StyleSheet,
|
|
8
|
+
TextInput
|
|
9
|
+
} from "react-native";
|
|
10
|
+
import { useTheme } from "./theme.js";
|
|
11
|
+
const LINE_HEIGHT = 22;
|
|
12
|
+
const VERTICAL_PADDING = 28;
|
|
13
|
+
function TextArea(_a) {
|
|
14
|
+
var _b = _a, {
|
|
15
|
+
style,
|
|
16
|
+
onFocus,
|
|
17
|
+
onBlur,
|
|
18
|
+
onContentSizeChange,
|
|
19
|
+
numberOfLines = 4,
|
|
20
|
+
error,
|
|
21
|
+
disabled,
|
|
22
|
+
label,
|
|
23
|
+
accessibilityLabel,
|
|
24
|
+
autoGrow,
|
|
25
|
+
maxRows = 10
|
|
26
|
+
} = _b, rest = __objRest(_b, [
|
|
27
|
+
"style",
|
|
28
|
+
"onFocus",
|
|
29
|
+
"onBlur",
|
|
30
|
+
"onContentSizeChange",
|
|
31
|
+
"numberOfLines",
|
|
32
|
+
"error",
|
|
33
|
+
"disabled",
|
|
34
|
+
"label",
|
|
35
|
+
"accessibilityLabel",
|
|
36
|
+
"autoGrow",
|
|
37
|
+
"maxRows"
|
|
38
|
+
]);
|
|
39
|
+
const t = useTheme();
|
|
40
|
+
const [focused, setFocused] = useState(false);
|
|
41
|
+
const [contentHeight, setContentHeight] = useState(null);
|
|
42
|
+
const borderColor = error ? t["--danger"] : focused ? t["--border-focus"] : t["--border-default"];
|
|
43
|
+
function handleFocus(e) {
|
|
44
|
+
setFocused(true);
|
|
45
|
+
onFocus == null ? void 0 : onFocus(e);
|
|
46
|
+
}
|
|
47
|
+
function handleBlur(e) {
|
|
48
|
+
setFocused(false);
|
|
49
|
+
onBlur == null ? void 0 : onBlur(e);
|
|
50
|
+
}
|
|
51
|
+
function handleContentSizeChange(e) {
|
|
52
|
+
if (autoGrow) {
|
|
53
|
+
setContentHeight(e.nativeEvent.contentSize.height);
|
|
54
|
+
}
|
|
55
|
+
onContentSizeChange == null ? void 0 : onContentSizeChange(e);
|
|
56
|
+
}
|
|
57
|
+
const maxHeight = maxRows * LINE_HEIGHT + VERTICAL_PADDING;
|
|
58
|
+
const autoGrowStyle = autoGrow ? { height: Math.min(contentHeight != null ? contentHeight : 0, maxHeight) || void 0, maxHeight } : null;
|
|
59
|
+
return /* @__PURE__ */ React.createElement(
|
|
60
|
+
TextInput,
|
|
61
|
+
__spreadValues({
|
|
62
|
+
multiline: true,
|
|
63
|
+
numberOfLines: autoGrow ? void 0 : numberOfLines,
|
|
64
|
+
textAlignVertical: "top",
|
|
65
|
+
placeholderTextColor: t["--text-placeholder"],
|
|
66
|
+
editable: !disabled,
|
|
67
|
+
accessibilityLabel: accessibilityLabel != null ? accessibilityLabel : label,
|
|
68
|
+
accessibilityState: { disabled: !!disabled },
|
|
69
|
+
onFocus: handleFocus,
|
|
70
|
+
onBlur: handleBlur,
|
|
71
|
+
onContentSizeChange: handleContentSizeChange,
|
|
72
|
+
style: [
|
|
73
|
+
styles.area,
|
|
74
|
+
{
|
|
75
|
+
borderColor,
|
|
76
|
+
backgroundColor: t["--surface-default"],
|
|
77
|
+
color: disabled ? t["--text-disabled"] : t["--text-primary"]
|
|
78
|
+
},
|
|
79
|
+
disabled && styles.disabled,
|
|
80
|
+
autoGrowStyle,
|
|
81
|
+
style
|
|
82
|
+
]
|
|
83
|
+
}, rest)
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
const styles = StyleSheet.create({
|
|
87
|
+
area: { minHeight: 96, borderRadius: 12, borderWidth: 1, padding: 14, fontSize: 16 },
|
|
88
|
+
disabled: { opacity: 0.5 }
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
TextArea
|
|
92
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type ThemeTokens = Record<string, string>;
|
|
5
|
+
/** Mapa de marca: o mesmo formato que `dsTheme`. Gere o seu com `pnpm build:brands`. */
|
|
6
|
+
type ThemeMaps = {
|
|
7
|
+
light: Record<string, string>;
|
|
8
|
+
dark: Record<string, string>;
|
|
9
|
+
};
|
|
10
|
+
type Props = {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
scheme?: 'light' | 'dark';
|
|
13
|
+
theme?: ThemeMaps;
|
|
14
|
+
};
|
|
15
|
+
declare function DSThemeProvider({ children, scheme, theme }: Props): react.JSX.Element;
|
|
16
|
+
declare function useTheme(): ThemeTokens;
|
|
17
|
+
|
|
18
|
+
export { DSThemeProvider, type ThemeMaps, type ThemeTokens, useTheme };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "../../../chunk-ORMEWXMH.js";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
import { useColorScheme } from "react-native";
|
|
4
|
+
import { dsTheme } from "../theme.js";
|
|
5
|
+
const ThemeContext = createContext(dsTheme.light);
|
|
6
|
+
function DSThemeProvider({ children, scheme, theme }) {
|
|
7
|
+
var _a;
|
|
8
|
+
const system = useColorScheme();
|
|
9
|
+
const isDark = ((_a = scheme != null ? scheme : system) != null ? _a : "light") === "dark";
|
|
10
|
+
const mapa = theme != null ? theme : dsTheme;
|
|
11
|
+
const resolved = isDark ? mapa.dark : mapa.light;
|
|
12
|
+
return /* @__PURE__ */ React.createElement(ThemeContext.Provider, { value: resolved }, children);
|
|
13
|
+
}
|
|
14
|
+
function useTheme() {
|
|
15
|
+
return useContext(ThemeContext);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
DSThemeProvider,
|
|
19
|
+
useTheme
|
|
20
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Toaster (RN) — host único + API imperativa via store-em-módulo.
|
|
5
|
+
*
|
|
6
|
+
* Uso:
|
|
7
|
+
* // monte uma vez, no topo da árvore (dentro do DSThemeProvider):
|
|
8
|
+
* <Toaster />
|
|
9
|
+
* // dispare de qualquer lugar:
|
|
10
|
+
* toast.success('Salvo');
|
|
11
|
+
* toast.error('Falhou'); toast.warning('...'); toast.info('...');
|
|
12
|
+
*
|
|
13
|
+
* Comportamento: um por vez (novo substitui o anterior), auto-dismiss por
|
|
14
|
+
* timeout, animação de entrada/saída (fade + slide) via Animated.
|
|
15
|
+
*/
|
|
16
|
+
type ToastVariant = 'success' | 'error' | 'warning' | 'info';
|
|
17
|
+
type ToastPosition = 'top' | 'bottom';
|
|
18
|
+
interface ToastOptions {
|
|
19
|
+
/** ms até auto-dismiss. Omitido → fallback do Material (2750, LENGTH_LONG). <=0 mantém persistente. */
|
|
20
|
+
duration?: number;
|
|
21
|
+
}
|
|
22
|
+
interface ToastFn {
|
|
23
|
+
success: (message: string, options?: ToastOptions) => number;
|
|
24
|
+
error: (message: string, options?: ToastOptions) => number;
|
|
25
|
+
warning: (message: string, options?: ToastOptions) => number;
|
|
26
|
+
info: (message: string, options?: ToastOptions) => number;
|
|
27
|
+
}
|
|
28
|
+
declare const toast: ToastFn;
|
|
29
|
+
interface ToasterProps {
|
|
30
|
+
/** Posição na tela. default = 'bottom'. */
|
|
31
|
+
position?: ToastPosition;
|
|
32
|
+
}
|
|
33
|
+
declare function Toaster({ position }?: ToasterProps): react.JSX.Element | null;
|
|
34
|
+
|
|
35
|
+
export { type ToastFn, type ToastOptions, type ToastPosition, type ToastVariant, Toaster, type ToasterProps, toast };
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadValues
|
|
3
|
+
} from "../../../chunk-ORMEWXMH.js";
|
|
4
|
+
import { useEffect, useRef, useState } from "react";
|
|
5
|
+
import { CheckCircle, AlertCircle, AlertTriangle, Info } from "lucide-react-native";
|
|
6
|
+
import { Animated, Platform, StyleSheet, View } from "react-native";
|
|
7
|
+
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
8
|
+
import { Text } from "./text.js";
|
|
9
|
+
import { useTheme } from "./theme.js";
|
|
10
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
11
|
+
let counter = 0;
|
|
12
|
+
function show(message, variant, options = {}) {
|
|
13
|
+
var _a;
|
|
14
|
+
counter += 1;
|
|
15
|
+
const item = {
|
|
16
|
+
id: counter,
|
|
17
|
+
message,
|
|
18
|
+
variant,
|
|
19
|
+
duration: (_a = options.duration) != null ? _a : 2750
|
|
20
|
+
// Material LENGTH_LONG (mobile: default único, sem hover-to-pause)
|
|
21
|
+
};
|
|
22
|
+
for (const l of listeners) l(item);
|
|
23
|
+
return item.id;
|
|
24
|
+
}
|
|
25
|
+
const toast = {
|
|
26
|
+
success: (m, o) => show(m, "success", o),
|
|
27
|
+
error: (m, o) => show(m, "error", o),
|
|
28
|
+
warning: (m, o) => show(m, "warning", o),
|
|
29
|
+
info: (m, o) => show(m, "info", o)
|
|
30
|
+
};
|
|
31
|
+
const VARIANT = {
|
|
32
|
+
success: { soft: "--success-soft", border: "--success-border", text: "--success-text", icon: CheckCircle },
|
|
33
|
+
error: { soft: "--danger-soft", border: "--danger-border", text: "--danger-text", icon: AlertCircle },
|
|
34
|
+
warning: { soft: "--warning-soft", border: "--warning-border", text: "--warning-text", icon: AlertTriangle },
|
|
35
|
+
info: { soft: "--info-soft", border: "--info-border", text: "--info-text", icon: Info }
|
|
36
|
+
};
|
|
37
|
+
const ENTER_MS = 200;
|
|
38
|
+
const EXIT_MS = 150;
|
|
39
|
+
function Toaster({ position = "bottom" } = {}) {
|
|
40
|
+
var _a, _b, _c;
|
|
41
|
+
const t = useTheme();
|
|
42
|
+
const insets = useSafeAreaInsets();
|
|
43
|
+
const [current, setCurrent] = useState(null);
|
|
44
|
+
const opacity = useRef(new Animated.Value(0)).current;
|
|
45
|
+
const translateY = useRef(new Animated.Value(0)).current;
|
|
46
|
+
const timerRef = useRef(null);
|
|
47
|
+
const currentRef = useRef(null);
|
|
48
|
+
currentRef.current = current;
|
|
49
|
+
const isTop = position === "top";
|
|
50
|
+
const offscreen = isTop ? -16 : 16;
|
|
51
|
+
const clearTimer = () => {
|
|
52
|
+
if (timerRef.current) {
|
|
53
|
+
clearTimeout(timerRef.current);
|
|
54
|
+
timerRef.current = null;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
const animateIn = (item) => {
|
|
59
|
+
opacity.setValue(0);
|
|
60
|
+
translateY.setValue(offscreen);
|
|
61
|
+
Animated.parallel([
|
|
62
|
+
Animated.timing(opacity, { toValue: 1, duration: ENTER_MS, useNativeDriver: true }),
|
|
63
|
+
Animated.timing(translateY, { toValue: 0, duration: ENTER_MS, useNativeDriver: true })
|
|
64
|
+
]).start();
|
|
65
|
+
clearTimer();
|
|
66
|
+
if (item.duration > 0) {
|
|
67
|
+
timerRef.current = setTimeout(() => animateOut(item.id), item.duration);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const animateOut = (id) => {
|
|
71
|
+
clearTimer();
|
|
72
|
+
Animated.parallel([
|
|
73
|
+
Animated.timing(opacity, { toValue: 0, duration: EXIT_MS, useNativeDriver: true }),
|
|
74
|
+
Animated.timing(translateY, { toValue: offscreen, duration: EXIT_MS, useNativeDriver: true })
|
|
75
|
+
]).start(() => {
|
|
76
|
+
setCurrent((prev) => prev && prev.id === id ? null : prev);
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
const listener = (item) => {
|
|
80
|
+
setCurrent(item);
|
|
81
|
+
animateIn(item);
|
|
82
|
+
};
|
|
83
|
+
listeners.add(listener);
|
|
84
|
+
return () => {
|
|
85
|
+
listeners.delete(listener);
|
|
86
|
+
clearTimer();
|
|
87
|
+
};
|
|
88
|
+
}, [offscreen]);
|
|
89
|
+
if (!current) return null;
|
|
90
|
+
const spec = VARIANT[current.variant];
|
|
91
|
+
const bg = (_a = t[spec.soft]) != null ? _a : t["--surface-raised"];
|
|
92
|
+
const border = (_b = t[spec.border]) != null ? _b : t["--border-default"];
|
|
93
|
+
const fg = (_c = t[spec.text]) != null ? _c : t["--text-primary"];
|
|
94
|
+
const Icon = spec.icon;
|
|
95
|
+
const isError = current.variant === "error";
|
|
96
|
+
const edgePadding = isTop ? { paddingTop: (insets.top > 0 ? insets.top : 0) + 12 } : { paddingBottom: (insets.bottom > 0 ? insets.bottom : 0) + 12 };
|
|
97
|
+
return /* @__PURE__ */ React.createElement(
|
|
98
|
+
View,
|
|
99
|
+
{
|
|
100
|
+
pointerEvents: "box-none",
|
|
101
|
+
style: [styles.overlay, isTop ? styles.overlayTop : styles.overlayBottom, edgePadding]
|
|
102
|
+
},
|
|
103
|
+
/* @__PURE__ */ React.createElement(
|
|
104
|
+
Animated.View,
|
|
105
|
+
{
|
|
106
|
+
accessibilityLiveRegion: isError ? "assertive" : "polite",
|
|
107
|
+
accessibilityRole: isError ? "alert" : "summary",
|
|
108
|
+
style: [
|
|
109
|
+
styles.toast,
|
|
110
|
+
{
|
|
111
|
+
backgroundColor: bg,
|
|
112
|
+
borderColor: border,
|
|
113
|
+
opacity,
|
|
114
|
+
transform: [{ translateY }]
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
/* @__PURE__ */ React.createElement(Icon, { size: 18, color: fg, style: styles.icon }),
|
|
119
|
+
/* @__PURE__ */ React.createElement(Text, { variant: "label", style: [styles.message, { color: fg }], numberOfLines: 3 }, current.message)
|
|
120
|
+
)
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
const styles = StyleSheet.create({
|
|
124
|
+
overlay: {
|
|
125
|
+
position: "absolute",
|
|
126
|
+
left: 0,
|
|
127
|
+
right: 0,
|
|
128
|
+
alignItems: "center",
|
|
129
|
+
paddingHorizontal: 16
|
|
130
|
+
},
|
|
131
|
+
overlayTop: { top: 0 },
|
|
132
|
+
overlayBottom: { bottom: 0 },
|
|
133
|
+
toast: __spreadValues({
|
|
134
|
+
flexDirection: "row",
|
|
135
|
+
alignItems: "center",
|
|
136
|
+
gap: 12,
|
|
137
|
+
minHeight: 56,
|
|
138
|
+
maxWidth: 560,
|
|
139
|
+
paddingHorizontal: 16,
|
|
140
|
+
paddingVertical: 12,
|
|
141
|
+
borderRadius: 12,
|
|
142
|
+
borderWidth: 1
|
|
143
|
+
}, Platform.select({
|
|
144
|
+
ios: {
|
|
145
|
+
shadowColor: "#000000",
|
|
146
|
+
shadowOffset: { width: 0, height: 4 },
|
|
147
|
+
shadowOpacity: 0.18,
|
|
148
|
+
shadowRadius: 12
|
|
149
|
+
},
|
|
150
|
+
android: { elevation: 6 },
|
|
151
|
+
default: {}
|
|
152
|
+
})),
|
|
153
|
+
icon: { marginTop: 0 },
|
|
154
|
+
message: { flex: 1, minWidth: 0 }
|
|
155
|
+
});
|
|
156
|
+
export {
|
|
157
|
+
Toaster,
|
|
158
|
+
toast
|
|
159
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'lucide-react-native';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "lucide-react-native";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../../chunk-ORMEWXMH.js";
|
|
2
|
+
import { primitives } from "@rojaostudio/ds-core/tokens";
|
|
3
|
+
import { dsTheme } from "./theme.js";
|
|
4
|
+
import { dsTheme as dsTheme2 } from "./theme.js";
|
|
5
|
+
import { fonts } from "./fonts.js";
|
|
6
|
+
export {
|
|
7
|
+
dsTheme,
|
|
8
|
+
fonts,
|
|
9
|
+
primitives,
|
|
10
|
+
dsTheme2 as taiqTheme
|
|
11
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// AUTO-GERADO por scripts/build-native.ts — não editar à mão.
|
|
2
|
+
// Preset NativeWind do tema padrão do DS. As cores apontam pras vars de theme.css.
|
|
3
|
+
// Uso no app: presets: [require("nativewind/preset"), require("@rojaostudio/ds/native/preset")]
|
|
4
|
+
module.exports = {
|
|
5
|
+
theme: {
|
|
6
|
+
extend: {
|
|
7
|
+
colors: {
|
|
8
|
+
"surface": {
|
|
9
|
+
"DEFAULT": "var(--ds-surface-default)",
|
|
10
|
+
"page": "var(--ds-surface-page)",
|
|
11
|
+
"raised": "var(--ds-surface-raised)",
|
|
12
|
+
"overlay": "var(--ds-surface-overlay)",
|
|
13
|
+
"invert": "var(--ds-surface-invert)"
|
|
14
|
+
},
|
|
15
|
+
"fg": {
|
|
16
|
+
"DEFAULT": "var(--ds-text-primary)",
|
|
17
|
+
"secondary": "var(--ds-text-secondary)",
|
|
18
|
+
"muted": "var(--ds-text-muted)",
|
|
19
|
+
"disabled": "var(--ds-text-disabled)",
|
|
20
|
+
"inverse": "var(--ds-text-inverse)",
|
|
21
|
+
"placeholder": "var(--ds-text-placeholder)"
|
|
22
|
+
},
|
|
23
|
+
"icon": {
|
|
24
|
+
"DEFAULT": "var(--ds-icon-default)"
|
|
25
|
+
},
|
|
26
|
+
"line": {
|
|
27
|
+
"DEFAULT": "var(--ds-border-default)",
|
|
28
|
+
"subtle": "var(--ds-border-subtle)",
|
|
29
|
+
"strong": "var(--ds-border-strong)",
|
|
30
|
+
"focus": "var(--ds-border-focus)"
|
|
31
|
+
},
|
|
32
|
+
"brand": {
|
|
33
|
+
"DEFAULT": "var(--ds-brand-primary)",
|
|
34
|
+
"hover": "var(--ds-brand-hover)",
|
|
35
|
+
"secondary": "var(--ds-brand-secondary)",
|
|
36
|
+
"accent": "var(--ds-brand-accent)",
|
|
37
|
+
"accent-light": "var(--ds-brand-accent-light)",
|
|
38
|
+
"on-primary": "var(--ds-brand-on-primary)",
|
|
39
|
+
"on-secondary": "var(--ds-brand-on-secondary)",
|
|
40
|
+
"on-accent": "var(--ds-brand-on-accent)"
|
|
41
|
+
},
|
|
42
|
+
"danger": {
|
|
43
|
+
"DEFAULT": "var(--ds-danger)",
|
|
44
|
+
"soft": "var(--ds-danger-soft)",
|
|
45
|
+
"border": "var(--ds-danger-border)",
|
|
46
|
+
"text": "var(--ds-danger-text)"
|
|
47
|
+
},
|
|
48
|
+
"success": {
|
|
49
|
+
"DEFAULT": "var(--ds-success)",
|
|
50
|
+
"soft": "var(--ds-success-soft)",
|
|
51
|
+
"border": "var(--ds-success-border)",
|
|
52
|
+
"text": "var(--ds-success-text)"
|
|
53
|
+
},
|
|
54
|
+
"warning": {
|
|
55
|
+
"DEFAULT": "var(--ds-warning)",
|
|
56
|
+
"soft": "var(--ds-warning-soft)",
|
|
57
|
+
"border": "var(--ds-warning-border)",
|
|
58
|
+
"text": "var(--ds-warning-text)"
|
|
59
|
+
},
|
|
60
|
+
"info": {
|
|
61
|
+
"DEFAULT": "var(--ds-info)",
|
|
62
|
+
"soft": "var(--ds-info-soft)",
|
|
63
|
+
"border": "var(--ds-info-border)",
|
|
64
|
+
"text": "var(--ds-info-text)"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* resolve.ts — resolve a saída do gerador (generateTheme) para cores utilizáveis no
|
|
3
|
+
* React Native. RN não tem CSS vars nem color-mix, então:
|
|
4
|
+
* var(--color-coal-900) → '#1a1a1a'
|
|
5
|
+
* color-mix(in srgb, var(--color-red-500) 8%, transparent) → 'rgba(244,67,54,0.08)'
|
|
6
|
+
*
|
|
7
|
+
* Puro e determinístico (testável). Não conhece o gerador nem o RN — só strings de cor.
|
|
8
|
+
*/
|
|
9
|
+
type Rgba = {
|
|
10
|
+
r: number;
|
|
11
|
+
g: number;
|
|
12
|
+
b: number;
|
|
13
|
+
a: number;
|
|
14
|
+
};
|
|
15
|
+
/** primitives.color (nested) → mapa plano keyed pelo nome do ref: 'coal-900', 'white', 'whiteAlpha-100'. */
|
|
16
|
+
declare function flattenPrimitives(color: Record<string, unknown>): Record<string, string>;
|
|
17
|
+
/** Resolve um valor de token para cor RN (hex ou rgba()). Valores não-cor passam direto. */
|
|
18
|
+
declare function resolveValue(value: string, prims: Record<string, string>): string;
|
|
19
|
+
/** Resolve um TokenMap inteiro, descartando tokens de fonte (não são cor). */
|
|
20
|
+
declare function resolveTokenMap(map: Record<string, string>, prims: Record<string, string>): Record<string, string>;
|
|
21
|
+
|
|
22
|
+
export { type Rgba, flattenPrimitives, resolveTokenMap, resolveValue };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import "../../chunk-ORMEWXMH.js";
|
|
2
|
+
function flattenPrimitives(color) {
|
|
3
|
+
const out = {};
|
|
4
|
+
for (const [name, val] of Object.entries(color)) {
|
|
5
|
+
if (typeof val === "string") {
|
|
6
|
+
out[name] = val;
|
|
7
|
+
} else if (val && typeof val === "object") {
|
|
8
|
+
for (const [step, hex] of Object.entries(val)) {
|
|
9
|
+
out[`${name}-${step}`] = hex;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return out;
|
|
14
|
+
}
|
|
15
|
+
function hexToRgba(hex) {
|
|
16
|
+
let h = hex.replace("#", "").trim();
|
|
17
|
+
if (h.length === 3) h = h.split("").map((c) => c + c).join("");
|
|
18
|
+
const r = parseInt(h.slice(0, 2), 16);
|
|
19
|
+
const g = parseInt(h.slice(2, 4), 16);
|
|
20
|
+
const b = parseInt(h.slice(4, 6), 16);
|
|
21
|
+
const a = h.length >= 8 ? parseInt(h.slice(6, 8), 16) / 255 : 1;
|
|
22
|
+
return { r, g, b, a };
|
|
23
|
+
}
|
|
24
|
+
function toCss({ r, g, b, a }) {
|
|
25
|
+
if (a >= 1) {
|
|
26
|
+
const hx = (n) => n.toString(16).padStart(2, "0");
|
|
27
|
+
return `#${hx(r)}${hx(g)}${hx(b)}`;
|
|
28
|
+
}
|
|
29
|
+
return `rgba(${r}, ${g}, ${b}, ${Number(a.toFixed(4))})`;
|
|
30
|
+
}
|
|
31
|
+
function resolveColor(token, prims) {
|
|
32
|
+
const t = token.trim();
|
|
33
|
+
if (t === "transparent") return { r: 0, g: 0, b: 0, a: 0 };
|
|
34
|
+
const varMatch = t.match(/^var\(--color-([a-zA-Z]+(?:-\d+)?)\)$/);
|
|
35
|
+
if (varMatch) {
|
|
36
|
+
const hex = prims[varMatch[1]];
|
|
37
|
+
if (!hex) throw new Error(`Primitiva n\xE3o encontrada: --color-${varMatch[1]}`);
|
|
38
|
+
return hexToRgba(hex);
|
|
39
|
+
}
|
|
40
|
+
if (t.startsWith("#")) return hexToRgba(t);
|
|
41
|
+
const rgb = t.match(/^rgba?\(([^)]+)\)$/);
|
|
42
|
+
if (rgb) {
|
|
43
|
+
const p = rgb[1].split(",").map((s) => s.trim());
|
|
44
|
+
return { r: +p[0], g: +p[1], b: +p[2], a: p[3] !== void 0 ? +p[3] : 1 };
|
|
45
|
+
}
|
|
46
|
+
throw new Error(`Cor n\xE3o reconhecida: "${token}"`);
|
|
47
|
+
}
|
|
48
|
+
function resolveColorMix(expr, prims) {
|
|
49
|
+
const inner = expr.replace(/^color-mix\(in srgb,\s*/, "").replace(/\)\s*$/, "");
|
|
50
|
+
const comma = inner.indexOf(",");
|
|
51
|
+
const [aTok, aPct] = splitPct(inner.slice(0, comma));
|
|
52
|
+
const [bTok, bPct] = splitPct(inner.slice(comma + 1));
|
|
53
|
+
const A = resolveColor(aTok, prims);
|
|
54
|
+
const B = resolveColor(bTok, prims);
|
|
55
|
+
const wa = (aPct != null ? aPct : bPct !== void 0 ? 100 - bPct : 50) / 100;
|
|
56
|
+
const a = wa * A.a + (1 - wa) * B.a;
|
|
57
|
+
if (a === 0) return { r: 0, g: 0, b: 0, a: 0 };
|
|
58
|
+
const mix = (ca, cb) => Math.round((wa * A.a * ca + (1 - wa) * B.a * cb) / a);
|
|
59
|
+
return { r: mix(A.r, B.r), g: mix(A.g, B.g), b: mix(A.b, B.b), a: Number(a.toFixed(4)) };
|
|
60
|
+
}
|
|
61
|
+
function splitPct(s) {
|
|
62
|
+
const m = s.trim().match(/^(.*?)\s+(\d+(?:\.\d+)?)%$/);
|
|
63
|
+
return m ? [m[1].trim(), +m[2]] : [s.trim(), void 0];
|
|
64
|
+
}
|
|
65
|
+
function resolveValue(value, prims) {
|
|
66
|
+
const v = value.trim();
|
|
67
|
+
if (v.startsWith("color-mix(")) return toCss(resolveColorMix(v, prims));
|
|
68
|
+
if (v.startsWith("var(--color-")) return toCss(resolveColor(v, prims));
|
|
69
|
+
if (v.startsWith("#")) return toCss(hexToRgba(v));
|
|
70
|
+
return v;
|
|
71
|
+
}
|
|
72
|
+
function resolveTokenMap(map, prims) {
|
|
73
|
+
const out = {};
|
|
74
|
+
for (const [key, val] of Object.entries(map)) {
|
|
75
|
+
if (key.startsWith("--font")) continue;
|
|
76
|
+
if (key.startsWith("--brand-secondary-texture")) continue;
|
|
77
|
+
out[key] = resolveValue(val, prims);
|
|
78
|
+
}
|
|
79
|
+
return out;
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
flattenPrimitives,
|
|
83
|
+
resolveTokenMap,
|
|
84
|
+
resolveValue
|
|
85
|
+
};
|