@parasutcom/fds 0.1.19 → 0.1.20

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.ts CHANGED
@@ -25,6 +25,7 @@ import { Select as Select_2 } from '@base-ui/react/select';
25
25
  import { Separator as Separator_2 } from '@base-ui/react/separator';
26
26
  import { Switch as Switch_2 } from '@base-ui/react/switch';
27
27
  import { Tabs as Tabs_2 } from '@base-ui/react/tabs';
28
+ import { toast } from 'sonner';
28
29
  import { ToasterProps } from 'sonner';
29
30
  import { Toggle as Toggle_2 } from '@base-ui/react/toggle';
30
31
  import { Tooltip as Tooltip_2 } from '@base-ui/react/tooltip';
@@ -802,6 +803,8 @@ declare const THEMES: {
802
803
  readonly dark: ".dark";
803
804
  };
804
805
 
806
+ export { toast }
807
+
805
808
  export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
806
809
 
807
810
  export declare function Toggle({ className, variant, size, ...props }: Toggle_2.Props & VariantProps<typeof toggleVariants>): JSX.Element;
package/dist/index.js CHANGED
@@ -29760,8 +29760,7 @@ const Lt = new k$(), _$ = (e, t) => {
29760
29760
  ...t,
29761
29761
  id: n
29762
29762
  }), n;
29763
- }, D$ = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", A$ = _$, V$ = () => Lt.toasts, F$ = () => Lt.getActiveToasts();
29764
- Object.assign(A$, {
29763
+ }, D$ = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", A$ = _$, V$ = () => Lt.toasts, F$ = () => Lt.getActiveToasts(), nH = Object.assign(A$, {
29765
29764
  success: Lt.success,
29766
29765
  info: Lt.info,
29767
29766
  warning: Lt.warning,
@@ -30238,7 +30237,7 @@ const Y$ = /* @__PURE__ */ j.forwardRef(function(t, n) {
30238
30237
  });
30239
30238
  })) : null;
30240
30239
  }));
30241
- }), nH = ({ ...e }) => {
30240
+ }), rH = ({ ...e }) => {
30242
30241
  const { theme: t = "system" } = w$();
30243
30242
  return /* @__PURE__ */ w(
30244
30243
  Y$,
@@ -30270,7 +30269,7 @@ const Y$ = /* @__PURE__ */ j.forwardRef(function(t, n) {
30270
30269
  function K$({ className: e, ...t }) {
30271
30270
  return /* @__PURE__ */ w(kx, { role: "status", "aria-label": "Loading", className: L("size-4 animate-spin", e), ...t });
30272
30271
  }
30273
- function rH({
30272
+ function oH({
30274
30273
  className: e,
30275
30274
  size: t = "default",
30276
30275
  ...n
@@ -30295,7 +30294,7 @@ function rH({
30295
30294
  }
30296
30295
  );
30297
30296
  }
30298
- function oH({ className: e, noWrapper: t, sticky: n, ...r }) {
30297
+ function iH({ className: e, noWrapper: t, sticky: n, ...r }) {
30299
30298
  const o = L(
30300
30299
  "w-full caption-bottom text-sm",
30301
30300
  n && "border-separate border-spacing-0",
@@ -30303,7 +30302,7 @@ function oH({ className: e, noWrapper: t, sticky: n, ...r }) {
30303
30302
  );
30304
30303
  return t ? /* @__PURE__ */ w("table", { "data-slot": "table", className: o, ...r }) : /* @__PURE__ */ w("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto", children: /* @__PURE__ */ w("table", { "data-slot": "table", className: o, ...r }) });
30305
30304
  }
30306
- function iH({ className: e, sticky: t, stickyTop: n = "0px", ...r }) {
30305
+ function aH({ className: e, sticky: t, stickyTop: n = "0px", ...r }) {
30307
30306
  return /* @__PURE__ */ w(
30308
30307
  "thead",
30309
30308
  {
@@ -30318,7 +30317,7 @@ function iH({ className: e, sticky: t, stickyTop: n = "0px", ...r }) {
30318
30317
  }
30319
30318
  );
30320
30319
  }
30321
- function aH({ className: e, ...t }) {
30320
+ function sH({ className: e, ...t }) {
30322
30321
  return /* @__PURE__ */ w(
30323
30322
  "tbody",
30324
30323
  {
@@ -30328,7 +30327,7 @@ function aH({ className: e, ...t }) {
30328
30327
  }
30329
30328
  );
30330
30329
  }
30331
- function sH({ className: e, ...t }) {
30330
+ function lH({ className: e, ...t }) {
30332
30331
  return /* @__PURE__ */ w(
30333
30332
  "tfoot",
30334
30333
  {
@@ -30338,7 +30337,7 @@ function sH({ className: e, ...t }) {
30338
30337
  }
30339
30338
  );
30340
30339
  }
30341
- function lH({ className: e, ...t }) {
30340
+ function cH({ className: e, ...t }) {
30342
30341
  return /* @__PURE__ */ w(
30343
30342
  "tr",
30344
30343
  {
@@ -30348,7 +30347,7 @@ function lH({ className: e, ...t }) {
30348
30347
  }
30349
30348
  );
30350
30349
  }
30351
- function cH({ className: e, ...t }) {
30350
+ function uH({ className: e, ...t }) {
30352
30351
  return /* @__PURE__ */ w(
30353
30352
  "th",
30354
30353
  {
@@ -30358,7 +30357,7 @@ function cH({ className: e, ...t }) {
30358
30357
  }
30359
30358
  );
30360
30359
  }
30361
- function uH({ className: e, ...t }) {
30360
+ function dH({ className: e, ...t }) {
30362
30361
  return /* @__PURE__ */ w(
30363
30362
  "td",
30364
30363
  {
@@ -30368,7 +30367,7 @@ function uH({ className: e, ...t }) {
30368
30367
  }
30369
30368
  );
30370
30369
  }
30371
- function dH({
30370
+ function fH({
30372
30371
  className: e,
30373
30372
  ...t
30374
30373
  }) {
@@ -30381,7 +30380,7 @@ function dH({
30381
30380
  }
30382
30381
  );
30383
30382
  }
30384
- function fH({
30383
+ function pH({
30385
30384
  className: e,
30386
30385
  orientation: t = "horizontal",
30387
30386
  ...n
@@ -30413,7 +30412,7 @@ const X$ = Bt(
30413
30412
  }
30414
30413
  }
30415
30414
  );
30416
- function pH({
30415
+ function mH({
30417
30416
  className: e,
30418
30417
  variant: t = "default",
30419
30418
  ...n
@@ -30428,7 +30427,7 @@ function pH({
30428
30427
  }
30429
30428
  );
30430
30429
  }
30431
- function mH({ className: e, ...t }) {
30430
+ function gH({ className: e, ...t }) {
30432
30431
  return /* @__PURE__ */ w(
30433
30432
  pS,
30434
30433
  {
@@ -30444,7 +30443,7 @@ function mH({ className: e, ...t }) {
30444
30443
  }
30445
30444
  );
30446
30445
  }
30447
- function gH({ className: e, ...t }) {
30446
+ function hH({ className: e, ...t }) {
30448
30447
  return /* @__PURE__ */ w(
30449
30448
  mS,
30450
30449
  {
@@ -30474,7 +30473,7 @@ const Z$ = Bt(
30474
30473
  }
30475
30474
  }
30476
30475
  );
30477
- function hH({
30476
+ function bH({
30478
30477
  className: e,
30479
30478
  variant: t = "default",
30480
30479
  size: n = "default",
@@ -30489,13 +30488,13 @@ function hH({
30489
30488
  }
30490
30489
  );
30491
30490
  }
30492
- function bH({ ...e }) {
30491
+ function vH({ ...e }) {
30493
30492
  return /* @__PURE__ */ w(t0, { "data-slot": "collapsible", ...e });
30494
30493
  }
30495
- function vH({ ...e }) {
30494
+ function yH({ ...e }) {
30496
30495
  return /* @__PURE__ */ w(n0, { "data-slot": "collapsible-trigger", ...e });
30497
30496
  }
30498
- function yH({ ...e }) {
30497
+ function xH({ ...e }) {
30499
30498
  return /* @__PURE__ */ w(r0, { "data-slot": "collapsible-content", ...e });
30500
30499
  }
30501
30500
  const Q$ = { emptyMessage: "Sonuç bulunamadı.", newBadge: "yeni", addAction: "ekle" }, J$ = { title: "Silme işlemini onaylayın", description: { single: "Bu kaydı silmek istediğinizden emin misiniz? Bu işlem geri alınamaz.", bulk: "{count} kaydı silmek istediğinizden emin misiniz? Bu işlem geri alınamaz." }, button: "Seçilenleri Sil", confirm: "Onayla ve sil", cancel: "Vazgeç" }, eW = { placeholder: "0,00", description: "Sayısal değer giriniz" }, tW = { invalidLength: "IBAN 26 karakter olmalıdır" }, nW = {
@@ -30517,7 +30516,7 @@ const Ud = 12, rW = 8, oW = "tr-TR", hR = new Intl.Collator(oW, { sensitivity: "
30517
30516
  const n = t.trim();
30518
30517
  return wx(e.label, n) || wx(e.value, n);
30519
30518
  }, aW = (e, t) => e.value === t.value;
30520
- function xH({
30519
+ function wH({
30521
30520
  options: e,
30522
30521
  value: t,
30523
30522
  defaultValue: n,
@@ -30629,7 +30628,7 @@ function xH({
30629
30628
  ] })
30630
30629
  ] });
30631
30630
  }
30632
- function wH({
30631
+ function EH({
30633
30632
  onConfirm: e,
30634
30633
  children: t,
30635
30634
  mode: n = "single",
@@ -30695,7 +30694,7 @@ function Cx(e) {
30695
30694
  const r = parseFloat(n);
30696
30695
  return isNaN(r) ? null : r;
30697
30696
  }
30698
- function EH({
30697
+ function CH({
30699
30698
  name: e,
30700
30699
  value: t,
30701
30700
  onChange: n,
@@ -30875,7 +30874,7 @@ const Zn = "TR", Kd = 26, Sx = (e, t) => {
30875
30874
  const r = n.slice(0, 2), o = n.slice(2).match(/.{1,4}/g)?.join(" ") ?? "";
30876
30875
  return o ? `${r} ${o}` : r;
30877
30876
  }, Xd = (e) => e.toUpperCase().replace(/[^A-Z0-9]/g, "");
30878
- function CH({
30877
+ function SH({
30879
30878
  value: e,
30880
30879
  onChange: t,
30881
30880
  showPrefix: n = !1,
@@ -30925,7 +30924,7 @@ function CH({
30925
30924
  );
30926
30925
  }
30927
30926
  const dW = 11, Rx = 12;
30928
- function SH({
30927
+ function RH({
30929
30928
  id: e,
30930
30929
  name: t,
30931
30930
  value: n,
@@ -31013,7 +31012,7 @@ export {
31013
31012
  AN as AlertDialogTitle,
31014
31013
  PN as AlertDialogTrigger,
31015
31014
  vW as AlertTitle,
31016
- xH as Autocomplete,
31015
+ wH as Autocomplete,
31017
31016
  EW as Avatar,
31018
31017
  RW as AvatarBadge,
31019
31018
  SW as AvatarFallback,
@@ -31048,9 +31047,9 @@ export {
31048
31047
  GW as ChartTooltip,
31049
31048
  YW as ChartTooltipContent,
31050
31049
  ZW as Checkbox,
31051
- bH as Collapsible,
31052
- yH as CollapsibleContent,
31053
- vH as CollapsibleTrigger,
31050
+ vH as Collapsible,
31051
+ xH as CollapsibleContent,
31052
+ yH as CollapsibleTrigger,
31054
31053
  GB as Combobox,
31055
31054
  aq as ComboboxChip,
31056
31055
  iq as ComboboxChips,
@@ -31075,7 +31074,7 @@ export {
31075
31074
  gq as CommandList,
31076
31075
  vq as CommandSeparator,
31077
31076
  xq as CommandShortcut,
31078
- wH as DeleteDialog,
31077
+ EH as DeleteDialog,
31079
31078
  Sz as Dialog,
31080
31079
  uq as DialogClose,
31081
31080
  Tz as DialogContent,
@@ -31117,7 +31116,7 @@ export {
31117
31116
  Yq as FieldSeparator,
31118
31117
  $q as FieldSet,
31119
31118
  Gq as FieldTitle,
31120
- CH as IbanField,
31119
+ SH as IbanField,
31121
31120
  RS as Input,
31122
31121
  Wo as InputGroup,
31123
31122
  Ln as InputGroupAddon,
@@ -31142,7 +31141,7 @@ export {
31142
31141
  cj as Kbd,
31143
31142
  uj as KbdGroup,
31144
31143
  _z as Label,
31145
- EH as NumericField,
31144
+ CH as NumericField,
31146
31145
  dj as Pagination,
31147
31146
  fj as PaginationContent,
31148
31147
  hj as PaginationEllipsis,
@@ -31201,24 +31200,24 @@ export {
31201
31200
  Aj as SidebarTrigger,
31202
31201
  bx as Skeleton,
31203
31202
  K$ as Spinner,
31204
- rH as Switch,
31205
- oH as Table,
31206
- aH as TableBody,
31207
- dH as TableCaption,
31208
- uH as TableCell,
31209
- sH as TableFooter,
31210
- cH as TableHead,
31211
- iH as TableHeader,
31212
- lH as TableRow,
31213
- fH as Tabs,
31214
- gH as TabsContent,
31215
- pH as TabsList,
31216
- mH as TabsTrigger,
31217
- SH as TaxIdField,
31203
+ oH as Switch,
31204
+ iH as Table,
31205
+ sH as TableBody,
31206
+ fH as TableCaption,
31207
+ dH as TableCell,
31208
+ lH as TableFooter,
31209
+ uH as TableHead,
31210
+ aH as TableHeader,
31211
+ cH as TableRow,
31212
+ pH as Tabs,
31213
+ hH as TabsContent,
31214
+ mH as TabsList,
31215
+ gH as TabsTrigger,
31216
+ RH as TaxIdField,
31218
31217
  uW as TextField,
31219
31218
  qB as Textarea,
31220
- nH as Toaster,
31221
- hH as Toggle,
31219
+ rH as Toaster,
31220
+ bH as Toggle,
31222
31221
  l$ as Tooltip,
31223
31222
  c$ as TooltipContent,
31224
31223
  s$ as TooltipProvider,
@@ -31228,6 +31227,7 @@ export {
31228
31227
  mf as buttonVariants,
31229
31228
  L as cn,
31230
31229
  X$ as tabsListVariants,
31230
+ nH as toast,
31231
31231
  Z$ as toggleVariants,
31232
31232
  eL as useComboboxAnchor,
31233
31233
  u$ as useIsMobile,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parasutcom/fds",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "FDS React UI components.",
5
5
  "author": "Mikrogrup",
6
6
  "keywords": [