fina-react-ds 2.0.7 → 2.0.8

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.
@@ -13,6 +13,9 @@
13
13
  *
14
14
  * 3. AvatarGroup
15
15
  * - replace *:data-[slot=avatar]:ring-background by *:data-[slot=avatar]:ring-card
16
+ *
17
+ * 4. AvatarBadge
18
+ * - replace ring-background by ring-card
16
19
  **/
17
20
  import * as React from "react";
18
21
  import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
@@ -1 +1 @@
1
- var f=Object.defineProperty;var a=(o,i)=>f(o,"name",{value:i,configurable:!0});import{jsxs as t,jsx as e}from"react/jsx-runtime";import*as u from"react";import{Calendar as x}from"lucide-react";import{Calendar as g}from"./calendar.js";import{Popover as h,PopoverTrigger as b,PopoverContent as v}from"./popover.js";import{Button as P}from"./button.js";import{format as w}from"date-fns";import{fr as C}from"../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js";function B({placeholder:o="Choisir une date",onChange:i,value:r,isClearable:d=!1,ref:s,"aria-invalid":l=!1}){const[c,n]=u.useState(!1),m=a(p=>{i?.(p||null),n(!1)},"onSelect");return t(h,{open:c,onOpenChange:n,children:[t(b,{render:e("button",{ref:s,"aria-invalid":l,className:"border-input-border flex items-center h-9 w-full min-w-0 rounded-md border bg-input px-3 py-1 text-base shadow-xs focus-visible:border-ring ring-ring/50 focus-visible:ring-[3px] aria-expanded:ring-[3px] aria-expanded:border-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive! outline-none md:text-sm"}),children:[e(x,{className:"mr-2 size-4"}),r?e("span",{children:w(r,"PPP",{locale:C})}):e("span",{className:"text-placeholder",children:o})]}),t(v,{align:"start",className:"w-auto p-0",children:[e(g,{mode:"single",required:!0,selected:r||void 0,onSelect:m,defaultMonth:r||void 0,captionLayout:"dropdown"}),r&&d&&e("div",{className:"flex justify-center border-t",children:e(P,{variant:"ghost",color:"dark",className:"flex w-full",onClick:a(()=>{i?.(null),n(!1)},"onClick"),children:"Effacer"})})]})]})}a(B,"DatePicker");export{B as DatePicker};
1
+ var f=Object.defineProperty;var a=(o,i)=>f(o,"name",{value:i,configurable:!0});import{jsxs as t,jsx as e}from"react/jsx-runtime";import*as u from"react";import{Calendar as x}from"lucide-react";import{Calendar as g}from"./calendar.js";import{Popover as h,PopoverTrigger as b,PopoverContent as v}from"./popover.js";import{Button as P}from"./button.js";import{format as w}from"date-fns";import{fr as C}from"../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js";function B({placeholder:o="Choisir une date",onChange:i,value:r,isClearable:d=!1,ref:s,"aria-invalid":l=!1}){const[c,n]=u.useState(!1),m=a(p=>{i?.(p||null),n(!1)},"onSelect");return t(h,{open:c,onOpenChange:n,children:[t(b,{render:e("button",{ref:s,"aria-invalid":l,className:"border-input-border flex items-center h-8 w-full min-w-0 rounded-md border bg-input px-3 py-1 text-base shadow-xs focus-visible:border-ring ring-ring/50 focus-visible:ring-[3px] aria-expanded:ring-[3px] aria-expanded:border-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive! outline-none md:text-sm"}),children:[e(x,{className:"mr-2 size-4"}),r?e("span",{children:w(r,"PPP",{locale:C})}):e("span",{className:"text-placeholder",children:o})]}),t(v,{align:"start",className:"w-auto p-0",children:[e(g,{mode:"single",required:!0,selected:r||void 0,onSelect:m,defaultMonth:r||void 0,captionLayout:"dropdown"}),r&&d&&e("div",{className:"flex justify-center border-t",children:e(P,{variant:"ghost",color:"dark",className:"flex w-full",onClick:a(()=>{i?.(null),n(!1)},"onClick"),children:"Effacer"})})]})]})}a(B,"DatePicker");export{B as DatePicker};
@@ -0,0 +1,5 @@
1
+ export declare function FormCheckbox({ name, label, required, }: {
2
+ name: string;
3
+ label: string;
4
+ required?: boolean;
5
+ }): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/F1na/fina-react-ds"
6
6
  },
7
7
  "private": false,
8
- "version": "2.0.7",
8
+ "version": "2.0.8",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist"