@nubase/frontend 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +38 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -26
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +3 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2697,7 +2697,8 @@ declare const unorderedListCommand: MarkdownCommand;
|
|
|
2697
2697
|
declare const orderedListCommand: MarkdownCommand;
|
|
2698
2698
|
declare const checkListCommand: MarkdownCommand;
|
|
2699
2699
|
|
|
2700
|
-
|
|
2700
|
+
declare const markdownTextAreaVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
2701
|
+
interface MarkdownTextAreaProps extends React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof markdownTextAreaVariants> {
|
|
2701
2702
|
className?: string;
|
|
2702
2703
|
}
|
|
2703
2704
|
interface MarkdownTextAreaHandle {
|
package/dist/index.d.ts
CHANGED
|
@@ -2697,7 +2697,8 @@ declare const unorderedListCommand: MarkdownCommand;
|
|
|
2697
2697
|
declare const orderedListCommand: MarkdownCommand;
|
|
2698
2698
|
declare const checkListCommand: MarkdownCommand;
|
|
2699
2699
|
|
|
2700
|
-
|
|
2700
|
+
declare const markdownTextAreaVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
2701
|
+
interface MarkdownTextAreaProps extends React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof markdownTextAreaVariants> {
|
|
2701
2702
|
className?: string;
|
|
2702
2703
|
}
|
|
2703
2704
|
interface MarkdownTextAreaHandle {
|
package/dist/index.js
CHANGED
|
@@ -6163,7 +6163,7 @@ var textInputVariants = (0, import_class_variance_authority7.cva)([
|
|
|
6163
6163
|
"selection:bg-primary selection:text-primary-foreground",
|
|
6164
6164
|
// Focus State
|
|
6165
6165
|
"focus-visible:border-ring",
|
|
6166
|
-
"focus-visible:ring-ring/50",
|
|
6166
|
+
"focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
6167
6167
|
// Invalid State
|
|
6168
6168
|
"aria-invalid:border-destructive",
|
|
6169
6169
|
"aria-invalid:ring-destructive/20",
|
|
@@ -6805,7 +6805,7 @@ var SchemaFormBody = ({
|
|
|
6805
6805
|
" ",
|
|
6806
6806
|
metadataError.message
|
|
6807
6807
|
] }),
|
|
6808
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex-1 space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
6808
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex-1 space-y-4 pt-1", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
6809
6809
|
SchemaFormVerticalLayout,
|
|
6810
6810
|
{
|
|
6811
6811
|
layout,
|
|
@@ -14571,6 +14571,7 @@ var checkListCommand = {
|
|
|
14571
14571
|
};
|
|
14572
14572
|
|
|
14573
14573
|
// src/components/markdown-textarea/MarkdownTextArea.tsx
|
|
14574
|
+
var import_class_variance_authority14 = require("class-variance-authority");
|
|
14574
14575
|
var import_react64 = require("react");
|
|
14575
14576
|
|
|
14576
14577
|
// src/components/markdown-textarea/text-controller.ts
|
|
@@ -14684,6 +14685,27 @@ function canManipulateViaTextNodes(input) {
|
|
|
14684
14685
|
|
|
14685
14686
|
// src/components/markdown-textarea/MarkdownTextArea.tsx
|
|
14686
14687
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
14688
|
+
var markdownTextAreaVariants = (0, import_class_variance_authority14.cva)([
|
|
14689
|
+
// Layout & Sizing
|
|
14690
|
+
"w-full min-h-[200px]",
|
|
14691
|
+
// Spacing & Borders
|
|
14692
|
+
"px-3 py-2 rounded-md border border-border",
|
|
14693
|
+
// Background & Text
|
|
14694
|
+
"bg-background text-foreground",
|
|
14695
|
+
"font-mono text-sm",
|
|
14696
|
+
// Resize behavior
|
|
14697
|
+
"resize-vertical",
|
|
14698
|
+
// Visual Effects
|
|
14699
|
+
"outline-none",
|
|
14700
|
+
// Placeholder
|
|
14701
|
+
"placeholder:text-muted-foreground",
|
|
14702
|
+
// Focus State
|
|
14703
|
+
"focus-visible:border-ring",
|
|
14704
|
+
"focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
14705
|
+
// Disabled State
|
|
14706
|
+
"disabled:opacity-50",
|
|
14707
|
+
"disabled:cursor-not-allowed"
|
|
14708
|
+
]);
|
|
14687
14709
|
var MarkdownTextArea = (0, import_react64.forwardRef)(({ className, ...props }, ref) => {
|
|
14688
14710
|
const textAreaRef = (0, import_react64.useRef)(null);
|
|
14689
14711
|
const textControllerRef = (0, import_react64.useRef)(void 0);
|
|
@@ -14712,17 +14734,7 @@ var MarkdownTextArea = (0, import_react64.forwardRef)(({ className, ...props },
|
|
|
14712
14734
|
"textarea",
|
|
14713
14735
|
{
|
|
14714
14736
|
ref: textAreaRef,
|
|
14715
|
-
className: cn(
|
|
14716
|
-
"w-full min-h-[200px] px-3 py-2",
|
|
14717
|
-
"bg-background text-foreground",
|
|
14718
|
-
"border border-border rounded-md",
|
|
14719
|
-
"resize-vertical",
|
|
14720
|
-
"focus:outline-none focus:ring-2 focus:ring-ring/20 focus:border-primary",
|
|
14721
|
-
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
14722
|
-
"placeholder:text-muted-foreground",
|
|
14723
|
-
"font-mono text-sm",
|
|
14724
|
-
className
|
|
14725
|
-
),
|
|
14737
|
+
className: cn(markdownTextAreaVariants({ className })),
|
|
14726
14738
|
...props
|
|
14727
14739
|
}
|
|
14728
14740
|
);
|
|
@@ -14891,7 +14903,7 @@ var MainNav = (0, import_react66.forwardRef)(
|
|
|
14891
14903
|
MainNav.displayName = "MainNav";
|
|
14892
14904
|
|
|
14893
14905
|
// src/components/navigation/main-nav/NavItemComponent.tsx
|
|
14894
|
-
var
|
|
14906
|
+
var import_class_variance_authority15 = require("class-variance-authority");
|
|
14895
14907
|
|
|
14896
14908
|
// src/components/navigation/main-nav/SafeLink.tsx
|
|
14897
14909
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
@@ -14913,7 +14925,7 @@ var SafeLink = ({ to, className, onClick, children }) => {
|
|
|
14913
14925
|
|
|
14914
14926
|
// src/components/navigation/main-nav/NavItemComponent.tsx
|
|
14915
14927
|
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
14916
|
-
var navItemVariants = (0,
|
|
14928
|
+
var navItemVariants = (0, import_class_variance_authority15.cva)(
|
|
14917
14929
|
"flex items-center gap-3 px-3 py-2 text-sm font-medium transition-all duration-200 rounded-md group",
|
|
14918
14930
|
{
|
|
14919
14931
|
variants: {
|
|
@@ -15370,17 +15382,17 @@ var import_react_router5 = require("@tanstack/react-router");
|
|
|
15370
15382
|
var import_react69 = require("react");
|
|
15371
15383
|
|
|
15372
15384
|
// src/components/search-controls/LookupSelectFilter.tsx
|
|
15373
|
-
var
|
|
15385
|
+
var import_class_variance_authority17 = require("class-variance-authority");
|
|
15374
15386
|
var import_lodash_es = require("lodash-es");
|
|
15375
15387
|
var React9 = __toESM(require("react"));
|
|
15376
15388
|
|
|
15377
15389
|
// src/components/search-controls/SearchFilterDropdown.tsx
|
|
15378
15390
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
15379
|
-
var
|
|
15391
|
+
var import_class_variance_authority16 = require("class-variance-authority");
|
|
15380
15392
|
var import_lucide_react17 = require("lucide-react");
|
|
15381
15393
|
var React8 = __toESM(require("react"));
|
|
15382
15394
|
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
15383
|
-
var searchFilterTriggerVariants = (0,
|
|
15395
|
+
var searchFilterTriggerVariants = (0, import_class_variance_authority16.cva)(
|
|
15384
15396
|
[
|
|
15385
15397
|
// Base - matching TextInput height/roundness
|
|
15386
15398
|
"inline-flex items-center gap-1.5 h-9 px-3 rounded-md",
|
|
@@ -15402,7 +15414,7 @@ var searchFilterTriggerVariants = (0, import_class_variance_authority15.cva)(
|
|
|
15402
15414
|
}
|
|
15403
15415
|
}
|
|
15404
15416
|
);
|
|
15405
|
-
var searchFilterContentVariants = (0,
|
|
15417
|
+
var searchFilterContentVariants = (0, import_class_variance_authority16.cva)([
|
|
15406
15418
|
// Background & Border
|
|
15407
15419
|
"bg-popover text-popover-foreground",
|
|
15408
15420
|
"border rounded-md shadow-md",
|
|
@@ -15507,7 +15519,7 @@ SearchFilterDropdown.displayName = "SearchFilterDropdown";
|
|
|
15507
15519
|
|
|
15508
15520
|
// src/components/search-controls/LookupSelectFilter.tsx
|
|
15509
15521
|
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
15510
|
-
var optionVariants3 = (0,
|
|
15522
|
+
var optionVariants3 = (0, import_class_variance_authority17.cva)(
|
|
15511
15523
|
[
|
|
15512
15524
|
"flex items-center gap-2 px-3 py-2",
|
|
15513
15525
|
"cursor-pointer select-none",
|
|
@@ -15803,13 +15815,13 @@ var LookupSelectFilter = React9.forwardRef(
|
|
|
15803
15815
|
LookupSelectFilter.displayName = "LookupSelectFilter";
|
|
15804
15816
|
|
|
15805
15817
|
// src/components/search-controls/SearchFilterBar.tsx
|
|
15806
|
-
var
|
|
15818
|
+
var import_class_variance_authority18 = require("class-variance-authority");
|
|
15807
15819
|
var import_lodash_es2 = require("lodash-es");
|
|
15808
15820
|
var import_lucide_react18 = require("lucide-react");
|
|
15809
15821
|
var React10 = __toESM(require("react"));
|
|
15810
15822
|
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
15811
|
-
var searchFilterBarVariants = (0,
|
|
15812
|
-
var searchFilterBarInputVariants = (0,
|
|
15823
|
+
var searchFilterBarVariants = (0, import_class_variance_authority18.cva)(["flex items-center gap-2", "flex-wrap"]);
|
|
15824
|
+
var searchFilterBarInputVariants = (0, import_class_variance_authority18.cva)([
|
|
15813
15825
|
// Layout & Sizing
|
|
15814
15826
|
"flex h-9 min-w-0",
|
|
15815
15827
|
// Spacing & Borders (pl-10 for search icon)
|
|
@@ -15831,7 +15843,7 @@ var searchFilterBarInputVariants = (0, import_class_variance_authority17.cva)([
|
|
|
15831
15843
|
"disabled:cursor-not-allowed",
|
|
15832
15844
|
"disabled:opacity-50"
|
|
15833
15845
|
]);
|
|
15834
|
-
var searchFilterBarClearButtonVariants = (0,
|
|
15846
|
+
var searchFilterBarClearButtonVariants = (0, import_class_variance_authority18.cva)([
|
|
15835
15847
|
"inline-flex items-center gap-1 h-9 px-3",
|
|
15836
15848
|
"text-sm font-medium text-muted-foreground",
|
|
15837
15849
|
"hover:text-foreground",
|
|
@@ -15929,10 +15941,10 @@ var SearchFilterBar = React10.forwardRef(
|
|
|
15929
15941
|
SearchFilterBar.displayName = "SearchFilterBar";
|
|
15930
15942
|
|
|
15931
15943
|
// src/components/search-controls/SelectFilter.tsx
|
|
15932
|
-
var
|
|
15944
|
+
var import_class_variance_authority19 = require("class-variance-authority");
|
|
15933
15945
|
var React11 = __toESM(require("react"));
|
|
15934
15946
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
15935
|
-
var optionVariants4 = (0,
|
|
15947
|
+
var optionVariants4 = (0, import_class_variance_authority19.cva)(
|
|
15936
15948
|
[
|
|
15937
15949
|
// Layout
|
|
15938
15950
|
"flex items-center gap-2 px-3 py-2",
|