bianic-ui 2.14.0-beta.4 → 2.14.0-beta.5
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/cjs/index.js +7 -7
- package/dist/cjs/types/components/Stepper/Horizontal/types.d.ts +1 -0
- package/dist/cjs/types/stories/HorizontalStepper/HorizontalStepper.stories.d.ts +2 -0
- package/dist/cjs/types/stories/HorizontalStepper/HorizontalStepper.test.stories.d.ts +14 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/types/components/Stepper/Horizontal/types.d.ts +1 -0
- package/dist/esm/types/stories/HorizontalStepper/HorizontalStepper.stories.d.ts +2 -0
- package/dist/esm/types/stories/HorizontalStepper/HorizontalStepper.test.stories.d.ts +14 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5641,7 +5641,7 @@ function SidebarProfileInner(_a, ref) {
|
|
|
5641
5641
|
}, className: cn$1('cubic-bezier(0.68, -0.1, 0.32, 1.2) flex w-full items-center gap-x-2.5 delay-500 duration-300', buttonClass, className) }),
|
|
5642
5642
|
avatarImage,
|
|
5643
5643
|
React.createElement("div", { className: "flex min-w-0 flex-col" },
|
|
5644
|
-
React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-bia-white delay-[400ms]', isMinimized
|
|
5644
|
+
React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
|
|
5645
5645
|
? 'opacity-0 duration-300 ease-in-out'
|
|
5646
5646
|
: 'opacity-100 delay-1000 duration-700 ease-in-out') }, username),
|
|
5647
5647
|
React.createElement(Text, { variant: "small-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
|
|
@@ -9302,7 +9302,7 @@ var navbarItemConfig = {
|
|
|
9302
9302
|
current: 'cursor-default',
|
|
9303
9303
|
clickable: 'cursor-pointer hover:bg-bia-white/15 active:bg-bia-white-transparent-80 focus-visible:outline focus-visible:outline-[3px] focus-visible:outline-offset-0 focus-visible:outline-bia-blue-light-50',
|
|
9304
9304
|
static: 'cursor-default',
|
|
9305
|
-
disabled: 'cursor-
|
|
9305
|
+
disabled: 'cursor-not-allowed',
|
|
9306
9306
|
};
|
|
9307
9307
|
var navbarCircleConfig = {
|
|
9308
9308
|
currentDefault: 'bg-bia-white border-bia-white text-bia-black',
|
|
@@ -9360,14 +9360,14 @@ function resolveItemState(isCurrent, isDisabled, isClickable) {
|
|
|
9360
9360
|
return 'clickable';
|
|
9361
9361
|
return 'static';
|
|
9362
9362
|
}
|
|
9363
|
-
function resolveCircleClass(isCurrent, isDisabled, isProcessed, navColor, processedIcon) {
|
|
9364
|
-
if (
|
|
9363
|
+
function resolveCircleClass(isCurrent, isDisabled, isFilled, isProcessed, navColor, processedIcon) {
|
|
9364
|
+
if (isDisabled)
|
|
9365
|
+
return navbarCircleConfig.disabled;
|
|
9366
|
+
if (isCurrent || isFilled) {
|
|
9365
9367
|
if (navColor)
|
|
9366
9368
|
return navbarCurrentColorConfig[navColor];
|
|
9367
9369
|
return navbarCircleConfig.currentDefault;
|
|
9368
9370
|
}
|
|
9369
|
-
if (isDisabled)
|
|
9370
|
-
return navbarCircleConfig.disabled;
|
|
9371
9371
|
if (isProcessed && navColor) {
|
|
9372
9372
|
if (processedIcon)
|
|
9373
9373
|
return navbarProcessedFilledColorConfig[navColor];
|
|
@@ -9403,7 +9403,7 @@ function NavbarHorizontalStepper(_a) {
|
|
|
9403
9403
|
var isClickable = !isCurrent && !isDisabled && Boolean(onStepClick);
|
|
9404
9404
|
var itemState = resolveItemState(isCurrent, isDisabled, isClickable);
|
|
9405
9405
|
var itemClass = cn$1('flex h-6 items-center gap-[5px] px-[5px] py-[3px]', !isCurrent && 'rounded-radius-sm', navbarItemConfig[itemState]);
|
|
9406
|
-
var circleClass = resolveCircleClass(isCurrent, isDisabled, isProcessed, navColor, processedIcon);
|
|
9406
|
+
var circleClass = resolveCircleClass(isCurrent, isDisabled, Boolean(step.isFilled), isProcessed, navColor, processedIcon);
|
|
9407
9407
|
var labelClass = isDisabled
|
|
9408
9408
|
? navbarLabelConfig.disabled
|
|
9409
9409
|
: navbarLabelConfig.enabled;
|
|
@@ -7,6 +7,7 @@ export interface Step {
|
|
|
7
7
|
description?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
isFilled?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export type HorizontalStepperVariant = 'default' | 'navbar';
|
|
12
13
|
export type HorizontalStepperColor = 'blue' | 'green' | 'teal' | 'crayola' | 'orange' | 'red';
|
|
@@ -119,6 +119,8 @@ export declare const DefaultVariant: Story;
|
|
|
119
119
|
export declare const WithColor: Story;
|
|
120
120
|
export declare const WithoutLabels: Story;
|
|
121
121
|
export declare const Navbar: Story;
|
|
122
|
+
export declare const NavbarFilledSteps: Story;
|
|
123
|
+
export declare const NavbarFilledStepsWithColor: Story;
|
|
122
124
|
export declare const NavbarWithColor: Story;
|
|
123
125
|
export declare const NavbarWithIcons: Story;
|
|
124
126
|
export declare const NavbarWithDisabledSteps: Story;
|
|
@@ -47,3 +47,17 @@ export declare const NavbarColorDisabledIgnoresColor: Story;
|
|
|
47
47
|
export declare const NavbarInvalidColor: Story;
|
|
48
48
|
export declare const NavbarIcons: Story;
|
|
49
49
|
export declare const NavbarCurrentShowsNumberWithoutIcon: Story;
|
|
50
|
+
export declare const NavbarDisabledCursorButton: Story;
|
|
51
|
+
export declare const NavbarDisabledCursorSpan: Story;
|
|
52
|
+
export declare const NavbarCurrentCursorDefault: Story;
|
|
53
|
+
export declare const NavbarPassedUnfilledPointer: Story;
|
|
54
|
+
export declare const NavbarUpcomingCursorPointer: Story;
|
|
55
|
+
export declare const NavbarFilledStepsLook: Story;
|
|
56
|
+
export declare const NavbarFilledAfterCurrent: Story;
|
|
57
|
+
export declare const NavbarFilledDisabledWins: Story;
|
|
58
|
+
export declare const NavbarFilledStepsColorLook: Story;
|
|
59
|
+
export declare const NavbarIconColorByFill: Story;
|
|
60
|
+
export declare const NavbarFilledGap: Story;
|
|
61
|
+
export declare const StandardIgnoresIsFilled: Story;
|
|
62
|
+
export declare const NavbarSimulationFilledFlow: Story;
|
|
63
|
+
export declare const NavbarLockedSimulationFilledFlow: Story;
|
package/dist/esm/index.js
CHANGED
|
@@ -5639,7 +5639,7 @@ function SidebarProfileInner(_a, ref) {
|
|
|
5639
5639
|
}, className: cn$1('cubic-bezier(0.68, -0.1, 0.32, 1.2) flex w-full items-center gap-x-2.5 delay-500 duration-300', buttonClass, className) }),
|
|
5640
5640
|
avatarImage,
|
|
5641
5641
|
React.createElement("div", { className: "flex min-w-0 flex-col" },
|
|
5642
|
-
React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-bia-white delay-[400ms]', isMinimized
|
|
5642
|
+
React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
|
|
5643
5643
|
? 'opacity-0 duration-300 ease-in-out'
|
|
5644
5644
|
: 'opacity-100 delay-1000 duration-700 ease-in-out') }, username),
|
|
5645
5645
|
React.createElement(Text, { variant: "small-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
|
|
@@ -9300,7 +9300,7 @@ var navbarItemConfig = {
|
|
|
9300
9300
|
current: 'cursor-default',
|
|
9301
9301
|
clickable: 'cursor-pointer hover:bg-bia-white/15 active:bg-bia-white-transparent-80 focus-visible:outline focus-visible:outline-[3px] focus-visible:outline-offset-0 focus-visible:outline-bia-blue-light-50',
|
|
9302
9302
|
static: 'cursor-default',
|
|
9303
|
-
disabled: 'cursor-
|
|
9303
|
+
disabled: 'cursor-not-allowed',
|
|
9304
9304
|
};
|
|
9305
9305
|
var navbarCircleConfig = {
|
|
9306
9306
|
currentDefault: 'bg-bia-white border-bia-white text-bia-black',
|
|
@@ -9358,14 +9358,14 @@ function resolveItemState(isCurrent, isDisabled, isClickable) {
|
|
|
9358
9358
|
return 'clickable';
|
|
9359
9359
|
return 'static';
|
|
9360
9360
|
}
|
|
9361
|
-
function resolveCircleClass(isCurrent, isDisabled, isProcessed, navColor, processedIcon) {
|
|
9362
|
-
if (
|
|
9361
|
+
function resolveCircleClass(isCurrent, isDisabled, isFilled, isProcessed, navColor, processedIcon) {
|
|
9362
|
+
if (isDisabled)
|
|
9363
|
+
return navbarCircleConfig.disabled;
|
|
9364
|
+
if (isCurrent || isFilled) {
|
|
9363
9365
|
if (navColor)
|
|
9364
9366
|
return navbarCurrentColorConfig[navColor];
|
|
9365
9367
|
return navbarCircleConfig.currentDefault;
|
|
9366
9368
|
}
|
|
9367
|
-
if (isDisabled)
|
|
9368
|
-
return navbarCircleConfig.disabled;
|
|
9369
9369
|
if (isProcessed && navColor) {
|
|
9370
9370
|
if (processedIcon)
|
|
9371
9371
|
return navbarProcessedFilledColorConfig[navColor];
|
|
@@ -9401,7 +9401,7 @@ function NavbarHorizontalStepper(_a) {
|
|
|
9401
9401
|
var isClickable = !isCurrent && !isDisabled && Boolean(onStepClick);
|
|
9402
9402
|
var itemState = resolveItemState(isCurrent, isDisabled, isClickable);
|
|
9403
9403
|
var itemClass = cn$1('flex h-6 items-center gap-[5px] px-[5px] py-[3px]', !isCurrent && 'rounded-radius-sm', navbarItemConfig[itemState]);
|
|
9404
|
-
var circleClass = resolveCircleClass(isCurrent, isDisabled, isProcessed, navColor, processedIcon);
|
|
9404
|
+
var circleClass = resolveCircleClass(isCurrent, isDisabled, Boolean(step.isFilled), isProcessed, navColor, processedIcon);
|
|
9405
9405
|
var labelClass = isDisabled
|
|
9406
9406
|
? navbarLabelConfig.disabled
|
|
9407
9407
|
: navbarLabelConfig.enabled;
|
|
@@ -7,6 +7,7 @@ export interface Step {
|
|
|
7
7
|
description?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
+
isFilled?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export type HorizontalStepperVariant = 'default' | 'navbar';
|
|
12
13
|
export type HorizontalStepperColor = 'blue' | 'green' | 'teal' | 'crayola' | 'orange' | 'red';
|
|
@@ -119,6 +119,8 @@ export declare const DefaultVariant: Story;
|
|
|
119
119
|
export declare const WithColor: Story;
|
|
120
120
|
export declare const WithoutLabels: Story;
|
|
121
121
|
export declare const Navbar: Story;
|
|
122
|
+
export declare const NavbarFilledSteps: Story;
|
|
123
|
+
export declare const NavbarFilledStepsWithColor: Story;
|
|
122
124
|
export declare const NavbarWithColor: Story;
|
|
123
125
|
export declare const NavbarWithIcons: Story;
|
|
124
126
|
export declare const NavbarWithDisabledSteps: Story;
|
|
@@ -47,3 +47,17 @@ export declare const NavbarColorDisabledIgnoresColor: Story;
|
|
|
47
47
|
export declare const NavbarInvalidColor: Story;
|
|
48
48
|
export declare const NavbarIcons: Story;
|
|
49
49
|
export declare const NavbarCurrentShowsNumberWithoutIcon: Story;
|
|
50
|
+
export declare const NavbarDisabledCursorButton: Story;
|
|
51
|
+
export declare const NavbarDisabledCursorSpan: Story;
|
|
52
|
+
export declare const NavbarCurrentCursorDefault: Story;
|
|
53
|
+
export declare const NavbarPassedUnfilledPointer: Story;
|
|
54
|
+
export declare const NavbarUpcomingCursorPointer: Story;
|
|
55
|
+
export declare const NavbarFilledStepsLook: Story;
|
|
56
|
+
export declare const NavbarFilledAfterCurrent: Story;
|
|
57
|
+
export declare const NavbarFilledDisabledWins: Story;
|
|
58
|
+
export declare const NavbarFilledStepsColorLook: Story;
|
|
59
|
+
export declare const NavbarIconColorByFill: Story;
|
|
60
|
+
export declare const NavbarFilledGap: Story;
|
|
61
|
+
export declare const StandardIgnoresIsFilled: Story;
|
|
62
|
+
export declare const NavbarSimulationFilledFlow: Story;
|
|
63
|
+
export declare const NavbarLockedSimulationFilledFlow: Story;
|
package/dist/index.d.ts
CHANGED
|
@@ -933,6 +933,7 @@ interface Step {
|
|
|
933
933
|
description?: string;
|
|
934
934
|
icon?: React__default.ReactNode;
|
|
935
935
|
disabled?: boolean;
|
|
936
|
+
isFilled?: boolean;
|
|
936
937
|
}
|
|
937
938
|
type HorizontalStepperVariant = 'default' | 'navbar';
|
|
938
939
|
type HorizontalStepperColor = 'blue' | 'green' | 'teal' | 'crayola' | 'orange' | 'red';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"@biaenergi:registry": "https://gitlab.com/api/v4/projects/50905269/packages/npm/"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.14.0-beta.
|
|
6
|
+
"version": "2.14.0-beta.5",
|
|
7
7
|
"description": "Design Language System develop by BIAENERGI",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|