@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,271 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "../chunk-ORMEWXMH.js";
|
|
5
|
+
import { useRef, useState } from "react";
|
|
6
|
+
import { Upload, X } from "lucide-react";
|
|
7
|
+
import { Button } from "./button.js";
|
|
8
|
+
import { Tooltip } from "./tooltip.js";
|
|
9
|
+
import { ImageCropModal } from "./image-crop-modal.js";
|
|
10
|
+
const DEFAULT_LABELS = {
|
|
11
|
+
select: "Selecionar imagem",
|
|
12
|
+
change: "Trocar imagem",
|
|
13
|
+
remove: "Remover",
|
|
14
|
+
uploading: "Enviando\u2026",
|
|
15
|
+
dropTitle: "Arraste e solte uma imagem aqui",
|
|
16
|
+
dropHint: "ou clique para selecionar do seu computador",
|
|
17
|
+
aria: "\xC1rea de upload de imagem",
|
|
18
|
+
error: "Erro ao fazer upload"
|
|
19
|
+
};
|
|
20
|
+
const BUTTON_PREVIEW = {
|
|
21
|
+
logo: "h-16 w-auto max-w-[160px] object-contain rounded-(--radius-control) border border-stroke-default bg-surface-raised p-1",
|
|
22
|
+
banner: "w-full h-auto rounded-(--radius-control) border border-stroke-default",
|
|
23
|
+
square: "size-20 object-cover rounded-(--radius-control) border border-stroke-default"
|
|
24
|
+
};
|
|
25
|
+
const DROPZONE_PREVIEW = {
|
|
26
|
+
logo: "max-h-36 w-auto max-w-full object-contain rounded-(--radius-control) border border-stroke-default bg-surface-raised p-2",
|
|
27
|
+
banner: "w-full max-h-36 object-cover rounded-(--radius-control) border border-stroke-default shrink-0",
|
|
28
|
+
square: "size-36 object-cover rounded-(--radius-control) border border-stroke-default shrink-0"
|
|
29
|
+
};
|
|
30
|
+
const TILE_BOX = {
|
|
31
|
+
logo: "h-20 w-full max-w-[220px]",
|
|
32
|
+
banner: "h-24 w-full max-w-xs",
|
|
33
|
+
square: "size-28"
|
|
34
|
+
};
|
|
35
|
+
function ImageUpload({
|
|
36
|
+
name,
|
|
37
|
+
value,
|
|
38
|
+
onChange,
|
|
39
|
+
onUpload,
|
|
40
|
+
label,
|
|
41
|
+
hint,
|
|
42
|
+
aspect = "logo",
|
|
43
|
+
accept = "image/jpeg,image/png,image/webp",
|
|
44
|
+
className = "",
|
|
45
|
+
variant = "button",
|
|
46
|
+
previewClassName,
|
|
47
|
+
previewWrapperClassName,
|
|
48
|
+
crop,
|
|
49
|
+
labels
|
|
50
|
+
}) {
|
|
51
|
+
const L = __spreadValues(__spreadValues({}, DEFAULT_LABELS), labels);
|
|
52
|
+
const inputRef = useRef(null);
|
|
53
|
+
const [uploading, setUploading] = useState(false);
|
|
54
|
+
const [dragging, setDragging] = useState(false);
|
|
55
|
+
const [error, setError] = useState(null);
|
|
56
|
+
const [pendingFile, setPendingFile] = useState(null);
|
|
57
|
+
async function processFile(file) {
|
|
58
|
+
setError(null);
|
|
59
|
+
setUploading(true);
|
|
60
|
+
try {
|
|
61
|
+
const url = await onUpload(file);
|
|
62
|
+
onChange(url);
|
|
63
|
+
} catch (err) {
|
|
64
|
+
setError(err instanceof Error ? err.message : L.error);
|
|
65
|
+
} finally {
|
|
66
|
+
setUploading(false);
|
|
67
|
+
if (inputRef.current) inputRef.current.value = "";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
async function selectFile(file) {
|
|
71
|
+
if (crop) {
|
|
72
|
+
setError(null);
|
|
73
|
+
setPendingFile(file);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
await processFile(file);
|
|
77
|
+
}
|
|
78
|
+
async function handleCropConfirm(blob) {
|
|
79
|
+
var _a;
|
|
80
|
+
const base = pendingFile;
|
|
81
|
+
setPendingFile(null);
|
|
82
|
+
const name2 = ((_a = base == null ? void 0 : base.name) != null ? _a : "image").replace(/\.[^./\\]+$/, "") + ".jpg";
|
|
83
|
+
await processFile(new File([blob], name2, { type: blob.type || "image/jpeg" }));
|
|
84
|
+
}
|
|
85
|
+
function handleCropCancel() {
|
|
86
|
+
setPendingFile(null);
|
|
87
|
+
if (inputRef.current) inputRef.current.value = "";
|
|
88
|
+
}
|
|
89
|
+
async function handleFileInput(e) {
|
|
90
|
+
var _a;
|
|
91
|
+
const file = (_a = e.target.files) == null ? void 0 : _a[0];
|
|
92
|
+
if (file) await selectFile(file);
|
|
93
|
+
}
|
|
94
|
+
async function handleDrop(e) {
|
|
95
|
+
var _a;
|
|
96
|
+
e.preventDefault();
|
|
97
|
+
setDragging(false);
|
|
98
|
+
const file = (_a = e.dataTransfer.files) == null ? void 0 : _a[0];
|
|
99
|
+
if (file) await selectFile(file);
|
|
100
|
+
}
|
|
101
|
+
const cropModal = crop ? /* @__PURE__ */ React.createElement(
|
|
102
|
+
ImageCropModal,
|
|
103
|
+
{
|
|
104
|
+
open: !!pendingFile,
|
|
105
|
+
file: pendingFile,
|
|
106
|
+
onCancel: handleCropCancel,
|
|
107
|
+
onConfirm: handleCropConfirm,
|
|
108
|
+
presets: crop.presets,
|
|
109
|
+
minAspect: crop.minAspect,
|
|
110
|
+
maxAspect: crop.maxAspect,
|
|
111
|
+
maxSizeBytes: crop.maxSizeBytes,
|
|
112
|
+
title: crop.title,
|
|
113
|
+
confirmLabel: crop.confirmLabel
|
|
114
|
+
}
|
|
115
|
+
) : null;
|
|
116
|
+
const openPicker = () => {
|
|
117
|
+
var _a;
|
|
118
|
+
if (!uploading) (_a = inputRef.current) == null ? void 0 : _a.click();
|
|
119
|
+
};
|
|
120
|
+
const hiddenInputs = /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("input", { type: "hidden", name, value }), /* @__PURE__ */ React.createElement(
|
|
121
|
+
"input",
|
|
122
|
+
{
|
|
123
|
+
ref: inputRef,
|
|
124
|
+
type: "file",
|
|
125
|
+
accept,
|
|
126
|
+
onChange: handleFileInput,
|
|
127
|
+
className: "hidden"
|
|
128
|
+
}
|
|
129
|
+
));
|
|
130
|
+
if (variant === "tile") {
|
|
131
|
+
return /* @__PURE__ */ React.createElement("div", { className: ["space-y-2", className].join(" ") }, label && /* @__PURE__ */ React.createElement("p", { className: "text-label font-medium text-fg-primary" }, label), value ? (
|
|
132
|
+
// Preenchido: o tile É o preview. Trocar/Remover são botões-ícone SEMPRE visíveis no
|
|
133
|
+
// canto (não dependem de hover — a11y/baixa visão), sobre um scrim pra legibilidade.
|
|
134
|
+
/* @__PURE__ */ React.createElement(
|
|
135
|
+
"div",
|
|
136
|
+
{
|
|
137
|
+
className: [
|
|
138
|
+
"relative overflow-hidden rounded-(--radius-control) border border-stroke-default bg-surface-raised",
|
|
139
|
+
"flex items-center justify-center p-2",
|
|
140
|
+
TILE_BOX[aspect],
|
|
141
|
+
previewWrapperClassName
|
|
142
|
+
].filter(Boolean).join(" ")
|
|
143
|
+
},
|
|
144
|
+
/* @__PURE__ */ React.createElement("img", { src: value, alt: "preview", className: previewClassName != null ? previewClassName : "max-h-full max-w-full object-contain" }),
|
|
145
|
+
/* @__PURE__ */ React.createElement("div", { className: "absolute top-1 right-1 flex gap-1" }, /* @__PURE__ */ React.createElement(Tooltip, { content: L.change }, /* @__PURE__ */ React.createElement(
|
|
146
|
+
"button",
|
|
147
|
+
{
|
|
148
|
+
type: "button",
|
|
149
|
+
"aria-label": L.change,
|
|
150
|
+
onClick: openPicker,
|
|
151
|
+
disabled: uploading,
|
|
152
|
+
className: "flex items-center justify-center size-7 rounded-md bg-surface-default border border-stroke-default text-fg-secondary shadow-sm hover:bg-surface-raised hover:text-fg-primary disabled:opacity-50 transition-colors cursor-pointer"
|
|
153
|
+
},
|
|
154
|
+
/* @__PURE__ */ React.createElement(Upload, { size: 14 })
|
|
155
|
+
)), /* @__PURE__ */ React.createElement(Tooltip, { content: L.remove }, /* @__PURE__ */ React.createElement(
|
|
156
|
+
"button",
|
|
157
|
+
{
|
|
158
|
+
type: "button",
|
|
159
|
+
"aria-label": L.remove,
|
|
160
|
+
onClick: () => onChange(""),
|
|
161
|
+
className: "flex items-center justify-center size-7 rounded-md bg-surface-default border border-stroke-default text-fg-secondary shadow-sm hover:bg-danger-soft hover:text-danger-text transition-colors cursor-pointer"
|
|
162
|
+
},
|
|
163
|
+
/* @__PURE__ */ React.createElement(X, { size: 14 })
|
|
164
|
+
)))
|
|
165
|
+
)
|
|
166
|
+
) : (
|
|
167
|
+
// Vazio: o tile inteiro é o alvo de clique/drop.
|
|
168
|
+
/* @__PURE__ */ React.createElement(
|
|
169
|
+
"div",
|
|
170
|
+
{
|
|
171
|
+
role: "button",
|
|
172
|
+
tabIndex: 0,
|
|
173
|
+
"aria-label": label != null ? label : L.aria,
|
|
174
|
+
onClick: openPicker,
|
|
175
|
+
onKeyDown: (e) => {
|
|
176
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
177
|
+
e.preventDefault();
|
|
178
|
+
openPicker();
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
onDragOver: (e) => {
|
|
182
|
+
e.preventDefault();
|
|
183
|
+
setDragging(true);
|
|
184
|
+
},
|
|
185
|
+
onDragLeave: () => setDragging(false),
|
|
186
|
+
onDrop: handleDrop,
|
|
187
|
+
className: [
|
|
188
|
+
"rounded-(--radius-control) border-2 border-dashed cursor-pointer transition-colors p-2",
|
|
189
|
+
"flex flex-col items-center justify-center gap-1.5 text-center",
|
|
190
|
+
TILE_BOX[aspect],
|
|
191
|
+
dragging ? "border-brand-primary bg-[color-mix(in_srgb,var(--brand-primary)_8%,transparent)]" : "border-stroke-default bg-surface-page hover:border-stroke-strong hover:bg-surface-raised"
|
|
192
|
+
].join(" ")
|
|
193
|
+
},
|
|
194
|
+
/* @__PURE__ */ React.createElement(Upload, { size: 18, className: "text-brand-primary shrink-0" }),
|
|
195
|
+
/* @__PURE__ */ React.createElement("span", { className: "text-caption font-medium text-fg-secondary leading-tight" }, uploading ? L.uploading : L.select)
|
|
196
|
+
)
|
|
197
|
+
), error && /* @__PURE__ */ React.createElement("p", { className: "text-caption text-danger-text" }, error), hint && /* @__PURE__ */ React.createElement("p", { className: "text-caption text-fg-muted" }, hint), hiddenInputs, cropModal);
|
|
198
|
+
}
|
|
199
|
+
if (variant === "dropzone") {
|
|
200
|
+
return /* @__PURE__ */ React.createElement("div", { className: ["space-y-3", className].join(" ") }, label && /* @__PURE__ */ React.createElement("p", { className: "text-label font-medium text-fg-primary" }, label), /* @__PURE__ */ React.createElement(
|
|
201
|
+
"div",
|
|
202
|
+
{
|
|
203
|
+
role: "button",
|
|
204
|
+
tabIndex: 0,
|
|
205
|
+
"aria-label": label != null ? label : L.aria,
|
|
206
|
+
onClick: openPicker,
|
|
207
|
+
onKeyDown: (e) => {
|
|
208
|
+
var _a;
|
|
209
|
+
if (e.key === "Enter" || e.key === " ") (_a = inputRef.current) == null ? void 0 : _a.click();
|
|
210
|
+
},
|
|
211
|
+
onDragOver: (e) => {
|
|
212
|
+
e.preventDefault();
|
|
213
|
+
setDragging(true);
|
|
214
|
+
},
|
|
215
|
+
onDragLeave: () => setDragging(false),
|
|
216
|
+
onDrop: handleDrop,
|
|
217
|
+
className: [
|
|
218
|
+
"rounded-(--radius-control) border-2 border-dashed cursor-pointer transition-colors p-4",
|
|
219
|
+
dragging ? "border-brand-primary bg-[color-mix(in_srgb,var(--brand-primary)_8%,transparent)]" : "border-stroke-default bg-surface-page hover:border-stroke-strong hover:bg-surface-raised"
|
|
220
|
+
].join(" ")
|
|
221
|
+
},
|
|
222
|
+
value ? /* @__PURE__ */ React.createElement("div", { className: ["flex items-center justify-center transition-colors", previewWrapperClassName].filter(Boolean).join(" ") }, /* @__PURE__ */ React.createElement("img", { src: value, alt: "preview", className: previewClassName != null ? previewClassName : DROPZONE_PREVIEW[aspect] })) : /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-center py-4" }, /* @__PURE__ */ React.createElement("div", { className: "flex flex-col items-center gap-2 min-w-0" }, /* @__PURE__ */ React.createElement("div", { className: "size-10 rounded-full bg-[color-mix(in_srgb,var(--brand-primary)_10%,transparent)] flex items-center justify-center" }, /* @__PURE__ */ React.createElement(Upload, { size: 18, className: "text-brand-primary" })), /* @__PURE__ */ React.createElement("p", { className: "text-label font-medium text-fg-primary text-center" }, uploading ? L.uploading : L.dropTitle), /* @__PURE__ */ React.createElement("p", { className: "text-caption text-fg-muted text-center" }, L.dropHint)))
|
|
223
|
+
), /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ React.createElement(
|
|
224
|
+
Button,
|
|
225
|
+
{
|
|
226
|
+
type: "button",
|
|
227
|
+
size: "sm",
|
|
228
|
+
loading: uploading,
|
|
229
|
+
onClick: () => {
|
|
230
|
+
var _a;
|
|
231
|
+
return (_a = inputRef.current) == null ? void 0 : _a.click();
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
value ? L.change : L.select
|
|
235
|
+
), value && /* @__PURE__ */ React.createElement(
|
|
236
|
+
"button",
|
|
237
|
+
{
|
|
238
|
+
type: "button",
|
|
239
|
+
onClick: () => onChange(""),
|
|
240
|
+
className: "text-label text-fg-muted hover:text-danger-text transition-colors"
|
|
241
|
+
},
|
|
242
|
+
L.remove
|
|
243
|
+
)), error && /* @__PURE__ */ React.createElement("p", { className: "text-caption text-danger-text" }, error), hint && /* @__PURE__ */ React.createElement("p", { className: "text-caption text-fg-muted" }, hint), hiddenInputs, cropModal);
|
|
244
|
+
}
|
|
245
|
+
return /* @__PURE__ */ React.createElement("div", { className: ["space-y-2", className].join(" ") }, label && /* @__PURE__ */ React.createElement("p", { className: "block text-caption font-medium text-fg-secondary" }, label), value && // eslint-disable-next-line @next/next/no-img-element
|
|
246
|
+
/* @__PURE__ */ React.createElement("img", { src: value, alt: "preview", className: BUTTON_PREVIEW[aspect] }), /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React.createElement(
|
|
247
|
+
Button,
|
|
248
|
+
{
|
|
249
|
+
type: "button",
|
|
250
|
+
size: "sm",
|
|
251
|
+
variant: "outline",
|
|
252
|
+
onClick: () => {
|
|
253
|
+
var _a;
|
|
254
|
+
return (_a = inputRef.current) == null ? void 0 : _a.click();
|
|
255
|
+
},
|
|
256
|
+
disabled: uploading
|
|
257
|
+
},
|
|
258
|
+
uploading ? L.uploading : value ? L.change : L.select
|
|
259
|
+
), value && /* @__PURE__ */ React.createElement(
|
|
260
|
+
"button",
|
|
261
|
+
{
|
|
262
|
+
type: "button",
|
|
263
|
+
onClick: () => onChange(""),
|
|
264
|
+
className: "text-caption text-fg-muted hover:text-danger-text transition-colors"
|
|
265
|
+
},
|
|
266
|
+
L.remove
|
|
267
|
+
)), error && /* @__PURE__ */ React.createElement("p", { className: "text-caption text-danger-text" }, error), hint && /* @__PURE__ */ React.createElement("p", { className: "text-caption text-fg-muted" }, hint), hiddenInputs, cropModal);
|
|
268
|
+
}
|
|
269
|
+
export {
|
|
270
|
+
ImageUpload
|
|
271
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export { Alert, AlertProps, AlertVariant } from './alert.js';
|
|
2
|
+
export { FilterChip, FilterChipGroup, FilterChipGroupProps, FilterChipItem, FilterChipProps } from './filter-chip.js';
|
|
3
|
+
export { DataTableFilterDef, DataTableFilterOption, DataTableHeader, DataTableHeaderProps, DataTableHeaderSearch, DataTablePillDef, FilterDropdown } from './data-table-header.js';
|
|
4
|
+
export { Button, ButtonColor, ButtonSize, ButtonVariant, buttonVariants } from './button.js';
|
|
5
|
+
export { Badge, BadgeProps, BadgeVariant } from './badge.js';
|
|
6
|
+
export { Card, CardBody, CardFooter, CardHeader, CardTitle } from './card.js';
|
|
7
|
+
export { PricingCard, PricingCardProps } from './pricing-card.js';
|
|
8
|
+
export { Checkbox, CheckboxProps } from './checkbox.js';
|
|
9
|
+
export { Drawer, DrawerProps } from './drawer.js';
|
|
10
|
+
export { Input, InputProps } from './input.js';
|
|
11
|
+
export { Modal, ModalProps } from './modal.js';
|
|
12
|
+
export { Radio, RadioProps } from './radio.js';
|
|
13
|
+
export { Select, SelectProps } from './select.js';
|
|
14
|
+
export { Spinner, SpinnerProps } from './spinner.js';
|
|
15
|
+
export { Skeleton, SkeletonProps } from './skeleton.js';
|
|
16
|
+
export { StepProgress, StepProgressProps } from './step-progress.js';
|
|
17
|
+
export { EmptyState, EmptyStateCta, EmptyStateIcon, EmptyStateProps } from './empty-state.js';
|
|
18
|
+
export { InsightCard, InsightCardProps, InsightCardType } from './insight-card.js';
|
|
19
|
+
export { SectionCard, SectionCardProps } from './section-card.js';
|
|
20
|
+
export { SectionHeader, SectionHeaderProps } from './section-header.js';
|
|
21
|
+
export { FloatingStepper, FloatingStepperProps, FloatingStepperStep } from './floating-stepper.js';
|
|
22
|
+
export { SummaryBar, SummaryBarItem, SummaryBarProps, SummaryBarTone } from './summary-bar.js';
|
|
23
|
+
export { ToggleCard, ToggleCardProps } from './toggle-card.js';
|
|
24
|
+
export { PixIcon } from './pix-icon.js';
|
|
25
|
+
export { ToggleCardCompact, ToggleCardCompactProps } from './toggle-card-compact.js';
|
|
26
|
+
export { ChipInput, ChipInputProps, ChipItem } from './chip-input.js';
|
|
27
|
+
export { FormCardHeader, FormCardHeaderProps } from './form-card-header.js';
|
|
28
|
+
export { CopyField, CopyFieldProps } from './copy-field.js';
|
|
29
|
+
export { QRDisplay, QRDisplayProps } from './qr-display.js';
|
|
30
|
+
export { ChoiceCard, ChoiceCardProps } from './choice-card.js';
|
|
31
|
+
export { OptionTile, OptionTileGrid, OptionTileGridProps, OptionTileItem, OptionTileProps } from './option-tile.js';
|
|
32
|
+
export { SelectableCard, SelectableCardProps } from './selectable-card.js';
|
|
33
|
+
export { ChoicePreviewCard, ChoicePreviewCardProps } from './choice-preview-card.js';
|
|
34
|
+
export { SettingRow, SettingRowProps } from './setting-row.js';
|
|
35
|
+
export { SettingsList, SettingsListProps } from './settings-list.js';
|
|
36
|
+
export { Dropzone, DropzoneProps } from './dropzone.js';
|
|
37
|
+
export { MediaTile, MediaTileProps } from './media-tile.js';
|
|
38
|
+
export { ChatBubble, ChatBubbleProps, ChatBubbleState, ChatBubbleVariant } from './chat-bubble.js';
|
|
39
|
+
export { TypingIndicator, TypingIndicatorProps } from './typing-indicator.js';
|
|
40
|
+
export { ChoiceCarousel, ChoiceCarouselProps } from './choice-carousel.js';
|
|
41
|
+
export { PageTab, PageTabs, PageTabsProps } from './page-tabs.js';
|
|
42
|
+
export { SavingBar, SavingBarProps } from './saving-bar.js';
|
|
43
|
+
export { SavingBarProvider, SavingBarRegistration, SavingBarRoot, usePageSavingBar } from './saving-bar-context.js';
|
|
44
|
+
export { FABConfig, FABProvider, FABRoot, useFAB, usePageFAB } from './fab.js';
|
|
45
|
+
export { Table, TableBody, TableHead, TableRow, Td, Th } from './table.js';
|
|
46
|
+
export { Textarea, TextareaProps } from './textarea.js';
|
|
47
|
+
export { Toggle, ToggleProps } from './toggle.js';
|
|
48
|
+
export { Tooltip, TooltipProps } from './tooltip.js';
|
|
49
|
+
export { ToastOptions, ToastPosition, ToastVariant, ToastVisual, ToastVisualProps, Toaster, ToasterProps, toast } from './toaster.js';
|
|
50
|
+
export { Divider, DividerProps } from './divider.js';
|
|
51
|
+
export { Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, AvatarSize, AvatarStatus } from './avatar.js';
|
|
52
|
+
export { IconButton, IconButtonColor, IconButtonProps, IconButtonSize, IconButtonVariant } from './icon-button.js';
|
|
53
|
+
export { Breadcrumb, BreadcrumbItem, BreadcrumbProps, homeItem } from './breadcrumb.js';
|
|
54
|
+
export { Pagination, PaginationProps } from './pagination.js';
|
|
55
|
+
export { Label, LabelProps } from './label.js';
|
|
56
|
+
export { Popover, PopoverPlacement, PopoverProps } from './popover.js';
|
|
57
|
+
export { Menu, MenuItem, MenuItemProps, MenuLabel, MenuProps, MenuSeparator } from './menu.js';
|
|
58
|
+
export { Search, SearchProps } from './search.js';
|
|
59
|
+
export { ToggleGroup, ToggleGroupProps, ToggleOption } from './toggle-group.js';
|
|
60
|
+
export { Accordion, AccordionItem, AccordionItemProps, AccordionProps } from './accordion.js';
|
|
61
|
+
export { Slider, SliderProps } from './slider.js';
|
|
62
|
+
export { BottomSheet, BottomSheetProps } from './bottom-sheet.js';
|
|
63
|
+
export { ContextMenu, ContextMenuProps } from './context-menu.js';
|
|
64
|
+
export { Combobox, ComboboxOption, ComboboxProps } from './combobox.js';
|
|
65
|
+
export { DatePicker, DatePickerProps } from './date-picker.js';
|
|
66
|
+
export { TimePicker, TimePickerProps } from './time-picker.js';
|
|
67
|
+
export { Chip, ChipProps } from './chips.js';
|
|
68
|
+
export { BlockerCard, BlockerCardProps, BlockerCardTone } from './blocker-card.js';
|
|
69
|
+
export { PaywallBanner, PaywallBannerProps } from './paywall-banner.js';
|
|
70
|
+
export { PaywallContent, PaywallContentProps, PaywallModal, PaywallModalProps, PaywallReason, PaywallState, PaywallStateProps } from './paywall.js';
|
|
71
|
+
export { CardsSkeleton, CardsSkeletonProps, PageSkeleton, PageSkeletonProps } from './page-skeleton.js';
|
|
72
|
+
export { CurrencyInput, CurrencyInputProps } from './currency-input.js';
|
|
73
|
+
export { ColorInput, ColorInputProps } from './color-input.js';
|
|
74
|
+
export { ImageUpload, ImageUploadAspect, ImageUploadLabels, ImageUploadProps, ImageUploadVariant } from './image-upload.js';
|
|
75
|
+
export { CropPreset, ImageCropModal, ImageCropModalProps } from './image-crop-modal.js';
|
|
76
|
+
export { PhoneInput, PhoneInputProps } from './phone-input.js';
|
|
77
|
+
export { RowActionItem, RowActions, RowActionsProps } from './row-actions.js';
|
|
78
|
+
export { PageShell, PageShellBodyProps, PageShellHeaderProps, PageShellProps, PageShellWidth } from './page-shell.js';
|
|
79
|
+
export { DangerZone, DangerZoneItem, DangerZoneItemProps, DangerZoneProps } from './danger-zone.js';
|
|
80
|
+
export { Themed, ThemedProps, themeClass } from './themed.js';
|
|
81
|
+
export { PhoneFrame, PhoneFrameProps } from './phone-frame.js';
|
|
82
|
+
export { CopilotHint, CopilotHintPriority, CopilotHintProps } from './copilot-hint.js';
|
|
83
|
+
export { Notice, NoticeIntent, NoticeProps, NoticeSeverity } from './notice.js';
|
|
84
|
+
import 'react';
|
|
85
|
+
import 'lucide-react';
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import "../chunk-ORMEWXMH.js";
|
|
2
|
+
import { Alert } from "./alert.js";
|
|
3
|
+
import { FilterChip, FilterChipGroup } from "./filter-chip.js";
|
|
4
|
+
import { DataTableHeader, FilterDropdown } from "./data-table-header.js";
|
|
5
|
+
import { Button, buttonVariants } from "./button.js";
|
|
6
|
+
import { Badge } from "./badge.js";
|
|
7
|
+
import { Card, CardHeader, CardTitle, CardBody, CardFooter } from "./card.js";
|
|
8
|
+
import { PricingCard } from "./pricing-card.js";
|
|
9
|
+
import { Checkbox } from "./checkbox.js";
|
|
10
|
+
import { Drawer } from "./drawer.js";
|
|
11
|
+
import { Input } from "./input.js";
|
|
12
|
+
import { Modal } from "./modal.js";
|
|
13
|
+
import { Radio } from "./radio.js";
|
|
14
|
+
import { Select } from "./select.js";
|
|
15
|
+
import { Spinner } from "./spinner.js";
|
|
16
|
+
import { Skeleton } from "./skeleton.js";
|
|
17
|
+
import { StepProgress } from "./step-progress.js";
|
|
18
|
+
import { EmptyState } from "./empty-state.js";
|
|
19
|
+
import { InsightCard } from "./insight-card.js";
|
|
20
|
+
import { SectionCard } from "./section-card.js";
|
|
21
|
+
import { SectionHeader } from "./section-header.js";
|
|
22
|
+
import { FloatingStepper } from "./floating-stepper.js";
|
|
23
|
+
import { SummaryBar } from "./summary-bar.js";
|
|
24
|
+
import { ToggleCard } from "./toggle-card.js";
|
|
25
|
+
import { PixIcon } from "./pix-icon.js";
|
|
26
|
+
import { ToggleCardCompact } from "./toggle-card-compact.js";
|
|
27
|
+
import { ChipInput } from "./chip-input.js";
|
|
28
|
+
import { FormCardHeader } from "./form-card-header.js";
|
|
29
|
+
import { CopyField } from "./copy-field.js";
|
|
30
|
+
import { QRDisplay } from "./qr-display.js";
|
|
31
|
+
import { ChoiceCard } from "./choice-card.js";
|
|
32
|
+
import { OptionTile, OptionTileGrid } from "./option-tile.js";
|
|
33
|
+
import { SelectableCard } from "./selectable-card.js";
|
|
34
|
+
import { ChoicePreviewCard } from "./choice-preview-card.js";
|
|
35
|
+
import { SettingRow } from "./setting-row.js";
|
|
36
|
+
import { SettingsList } from "./settings-list.js";
|
|
37
|
+
import { Dropzone } from "./dropzone.js";
|
|
38
|
+
import { MediaTile } from "./media-tile.js";
|
|
39
|
+
import { ChatBubble } from "./chat-bubble.js";
|
|
40
|
+
import { TypingIndicator } from "./typing-indicator.js";
|
|
41
|
+
import { ChoiceCarousel } from "./choice-carousel.js";
|
|
42
|
+
import { PageTabs } from "./page-tabs.js";
|
|
43
|
+
import { SavingBar } from "./saving-bar.js";
|
|
44
|
+
import { SavingBarProvider, SavingBarRoot, usePageSavingBar } from "./saving-bar-context.js";
|
|
45
|
+
import { FABProvider, FABRoot, useFAB, usePageFAB } from "./fab.js";
|
|
46
|
+
import { Table, TableHead, TableBody, TableRow, Th, Td } from "./table.js";
|
|
47
|
+
import { Textarea } from "./textarea.js";
|
|
48
|
+
import { Toggle } from "./toggle.js";
|
|
49
|
+
import { Tooltip } from "./tooltip.js";
|
|
50
|
+
import { Toaster, ToastVisual, toast } from "./toaster.js";
|
|
51
|
+
import { Divider } from "./divider.js";
|
|
52
|
+
import { Avatar, AvatarGroup } from "./avatar.js";
|
|
53
|
+
import { IconButton } from "./icon-button.js";
|
|
54
|
+
import { Breadcrumb, homeItem } from "./breadcrumb.js";
|
|
55
|
+
import { Pagination } from "./pagination.js";
|
|
56
|
+
import { Label } from "./label.js";
|
|
57
|
+
import { Popover } from "./popover.js";
|
|
58
|
+
import { Menu, MenuItem, MenuSeparator, MenuLabel } from "./menu.js";
|
|
59
|
+
import { Search } from "./search.js";
|
|
60
|
+
import { ToggleGroup } from "./toggle-group.js";
|
|
61
|
+
import { Accordion, AccordionItem } from "./accordion.js";
|
|
62
|
+
import { Slider } from "./slider.js";
|
|
63
|
+
import { BottomSheet } from "./bottom-sheet.js";
|
|
64
|
+
import { ContextMenu } from "./context-menu.js";
|
|
65
|
+
import { Combobox } from "./combobox.js";
|
|
66
|
+
import { DatePicker } from "./date-picker.js";
|
|
67
|
+
import { TimePicker } from "./time-picker.js";
|
|
68
|
+
import { Chip } from "./chips.js";
|
|
69
|
+
import { BlockerCard } from "./blocker-card.js";
|
|
70
|
+
import { PaywallBanner } from "./paywall-banner.js";
|
|
71
|
+
import { PaywallContent, PaywallState, PaywallModal } from "./paywall.js";
|
|
72
|
+
import { PageSkeleton, CardsSkeleton } from "./page-skeleton.js";
|
|
73
|
+
import { CurrencyInput } from "./currency-input.js";
|
|
74
|
+
import { ColorInput } from "./color-input.js";
|
|
75
|
+
import { ImageUpload } from "./image-upload.js";
|
|
76
|
+
import { ImageCropModal } from "./image-crop-modal.js";
|
|
77
|
+
import { PhoneInput } from "./phone-input.js";
|
|
78
|
+
import { RowActions } from "./row-actions.js";
|
|
79
|
+
import { PageShell } from "./page-shell.js";
|
|
80
|
+
import { DangerZone, DangerZoneItem } from "./danger-zone.js";
|
|
81
|
+
import { Themed, themeClass } from "./themed.js";
|
|
82
|
+
import { PhoneFrame } from "./phone-frame.js";
|
|
83
|
+
import { CopilotHint } from "./copilot-hint.js";
|
|
84
|
+
import { Notice } from "./notice.js";
|
|
85
|
+
export {
|
|
86
|
+
Accordion,
|
|
87
|
+
AccordionItem,
|
|
88
|
+
Alert,
|
|
89
|
+
Avatar,
|
|
90
|
+
AvatarGroup,
|
|
91
|
+
Badge,
|
|
92
|
+
BlockerCard,
|
|
93
|
+
BottomSheet,
|
|
94
|
+
Breadcrumb,
|
|
95
|
+
Button,
|
|
96
|
+
Card,
|
|
97
|
+
CardBody,
|
|
98
|
+
CardFooter,
|
|
99
|
+
CardHeader,
|
|
100
|
+
CardTitle,
|
|
101
|
+
CardsSkeleton,
|
|
102
|
+
ChatBubble,
|
|
103
|
+
Checkbox,
|
|
104
|
+
Chip,
|
|
105
|
+
ChipInput,
|
|
106
|
+
ChoiceCard,
|
|
107
|
+
ChoiceCarousel,
|
|
108
|
+
ChoicePreviewCard,
|
|
109
|
+
ColorInput,
|
|
110
|
+
Combobox,
|
|
111
|
+
ContextMenu,
|
|
112
|
+
CopilotHint,
|
|
113
|
+
CopyField,
|
|
114
|
+
CurrencyInput,
|
|
115
|
+
DangerZone,
|
|
116
|
+
DangerZoneItem,
|
|
117
|
+
DataTableHeader,
|
|
118
|
+
DatePicker,
|
|
119
|
+
Divider,
|
|
120
|
+
Drawer,
|
|
121
|
+
Dropzone,
|
|
122
|
+
EmptyState,
|
|
123
|
+
FABProvider,
|
|
124
|
+
FABRoot,
|
|
125
|
+
FilterChip,
|
|
126
|
+
FilterChipGroup,
|
|
127
|
+
FilterDropdown,
|
|
128
|
+
FloatingStepper,
|
|
129
|
+
FormCardHeader,
|
|
130
|
+
IconButton,
|
|
131
|
+
ImageCropModal,
|
|
132
|
+
ImageUpload,
|
|
133
|
+
Input,
|
|
134
|
+
InsightCard,
|
|
135
|
+
Label,
|
|
136
|
+
MediaTile,
|
|
137
|
+
Menu,
|
|
138
|
+
MenuItem,
|
|
139
|
+
MenuLabel,
|
|
140
|
+
MenuSeparator,
|
|
141
|
+
Modal,
|
|
142
|
+
Notice,
|
|
143
|
+
OptionTile,
|
|
144
|
+
OptionTileGrid,
|
|
145
|
+
PageShell,
|
|
146
|
+
PageSkeleton,
|
|
147
|
+
PageTabs,
|
|
148
|
+
Pagination,
|
|
149
|
+
PaywallBanner,
|
|
150
|
+
PaywallContent,
|
|
151
|
+
PaywallModal,
|
|
152
|
+
PaywallState,
|
|
153
|
+
PhoneFrame,
|
|
154
|
+
PhoneInput,
|
|
155
|
+
PixIcon,
|
|
156
|
+
Popover,
|
|
157
|
+
PricingCard,
|
|
158
|
+
QRDisplay,
|
|
159
|
+
Radio,
|
|
160
|
+
RowActions,
|
|
161
|
+
SavingBar,
|
|
162
|
+
SavingBarProvider,
|
|
163
|
+
SavingBarRoot,
|
|
164
|
+
Search,
|
|
165
|
+
SectionCard,
|
|
166
|
+
SectionHeader,
|
|
167
|
+
Select,
|
|
168
|
+
SelectableCard,
|
|
169
|
+
SettingRow,
|
|
170
|
+
SettingsList,
|
|
171
|
+
Skeleton,
|
|
172
|
+
Slider,
|
|
173
|
+
Spinner,
|
|
174
|
+
StepProgress,
|
|
175
|
+
SummaryBar,
|
|
176
|
+
Table,
|
|
177
|
+
TableBody,
|
|
178
|
+
TableHead,
|
|
179
|
+
TableRow,
|
|
180
|
+
Td,
|
|
181
|
+
Textarea,
|
|
182
|
+
Th,
|
|
183
|
+
Themed,
|
|
184
|
+
TimePicker,
|
|
185
|
+
ToastVisual,
|
|
186
|
+
Toaster,
|
|
187
|
+
Toggle,
|
|
188
|
+
ToggleCard,
|
|
189
|
+
ToggleCardCompact,
|
|
190
|
+
ToggleGroup,
|
|
191
|
+
Tooltip,
|
|
192
|
+
TypingIndicator,
|
|
193
|
+
buttonVariants,
|
|
194
|
+
homeItem,
|
|
195
|
+
themeClass,
|
|
196
|
+
toast,
|
|
197
|
+
useFAB,
|
|
198
|
+
usePageFAB,
|
|
199
|
+
usePageSavingBar
|
|
200
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type InputSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix'> {
|
|
6
|
+
label?: string;
|
|
7
|
+
helper?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
size?: InputSize;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
optional?: boolean;
|
|
12
|
+
iconLeft?: ReactNode;
|
|
13
|
+
iconRight?: ReactNode;
|
|
14
|
+
prefix?: ReactNode;
|
|
15
|
+
suffix?: ReactNode;
|
|
16
|
+
clearable?: boolean;
|
|
17
|
+
onClear?: () => void;
|
|
18
|
+
/** Em type="password", mostra botão de revelar. default = true. */
|
|
19
|
+
passwordReveal?: boolean;
|
|
20
|
+
/** Conta caracteres (mostra "X/Y" se maxLength definido). */
|
|
21
|
+
showCount?: boolean;
|
|
22
|
+
}
|
|
23
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
24
|
+
|
|
25
|
+
export { Input, type InputProps, type InputSize };
|