diff --git a/packages/primevue/package.json b/packages/primevue/package.json index aea02de..33242d0 100644 --- a/packages/primevue/package.json +++ b/packages/primevue/package.json @@ -1,6 +1,6 @@ { "name": "@caido/primevue", - "version": "0.3.0", + "version": "0.3.1", "description": "Primevue themes for Caido", "main": "dist/primevue.mjs", "types": "dist/types/index.d.ts", diff --git a/packages/primevue/src/classic/step/index.ts b/packages/primevue/src/classic/step/index.ts index 8cb8e10..e96360c 100644 --- a/packages/primevue/src/classic/step/index.ts +++ b/packages/primevue/src/classic/step/index.ts @@ -6,13 +6,13 @@ export default { "cursor-default pointer-events-none select-none opacity-60": context.disabled, }, - "[&_[data-pc-section=separator]]:has-[~[data-p-active=true]]:bg-primary", + "[&_[data-pc-section=separator]]:has-[~[data-p-active=true]]:bg-secondary-400", ], }), header: ({ props, context }) => ({ class: [ "inline-flex items-center border-0 cursor-pointer rounded-md outline-transparent bg-transparent p-0 gap-2", - "focus:outline-none focus:outline-offset-0 focus-visible:ring-1 ring-inset focus-visible:ring-primary-400 dark:focus-visible:ring-primary-300", + "focus:outline-none focus:outline-offset-0 focus-visible:ring-1 ring-inset focus-visible:ring-secondary-400 dark:focus-visible:ring-secondary-300", { "!cursor-default": context.active }, { "cursor-auto": props.linear }, ], @@ -28,7 +28,9 @@ export default { "border-solid border-2 border-surface-200 dark:border-surface-700", // Colors (Conditional) - context.active ? "text-primary" : "text-surface-900 dark:text-surface-0", // Adjust colors as needed + context.active + ? "text-secondary-400" + : "text-surface-900 dark:text-surface-0", // Adjust colors as needed // Size and Shape "min-w-[2rem]", @@ -57,7 +59,7 @@ export default { // Text context.active - ? "text-primary" + ? "text-secondary-400" : "text-surface-700 dark:text-surface-0/80", "font-medium", diff --git a/packages/primevue/src/stories/Stepper.story.vue b/packages/primevue/src/stories/Stepper.story.vue new file mode 100644 index 0000000..87feb8f --- /dev/null +++ b/packages/primevue/src/stories/Stepper.story.vue @@ -0,0 +1,177 @@ + + + + + + + + + Personal Information + Contact Details + Review & Confirm + + + + + + + + Personal Information + + + + First Name + + + + Last Name + + + + + + + + + + Contact Details + + + Email + + + + Phone + + + + + + + + + + Review & Confirm + + Please review your information before proceeding. + + + + + + + + + + + + + + + + + + + + + Step 1 + Step 2 (Disabled) + Step 3 (Disabled) + + + + + + + Step 1 + + This is the first step. The next steps are disabled. + + + + + + + + Step 2 + + This step is disabled and cannot be accessed. + + + + + + + + Step 3 + + This step is also disabled. + + + + + + + + + +
+ Please review your information before proceeding. +
+ This is the first step. The next steps are disabled. +
+ This step is disabled and cannot be accessed. +
+ This step is also disabled. +