periplo-ui 4.22.0 → 4.22.1
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,14 +13,14 @@ var ComboboxTrigger = forwardRef(({ id, disabled, open, hasValue, isMultilineLab
|
|
|
13
13
|
size,
|
|
14
14
|
"data-multiline": isMultilineLabel || void 0,
|
|
15
15
|
"data-empty": hasValue ? void 0 : "",
|
|
16
|
-
className: cn(
|
|
16
|
+
className: cn(`flex justify-between data-multiline:h-auto data-multiline:min-h-(--control-height) data-multiline:py-1`, className),
|
|
17
17
|
"aria-expanded": open,
|
|
18
18
|
"aria-haspopup": "listbox",
|
|
19
19
|
...rest,
|
|
20
20
|
children: [/* @__PURE__ */ jsx("span", {
|
|
21
|
-
className: "\n block truncate
|
|
21
|
+
className: "\n block min-w-0 truncate\n in-data-empty:text-neutral-500\n in-data-multiline:overflow-visible in-data-multiline:whitespace-normal\n ",
|
|
22
22
|
children: displayValue
|
|
23
|
-
}), /* @__PURE__ */ jsx(CaretDownIcon, { className: "
|
|
23
|
+
}), /* @__PURE__ */ jsx(CaretDownIcon, { className: "h-4 w-4 shrink-0 opacity-50 transition-opacity duration-150 clear-visible:opacity-0" })]
|
|
24
24
|
}));
|
|
25
25
|
ComboboxTrigger.displayName = "ComboboxTrigger";
|
|
26
26
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxTrigger.js","names":[],"sources":["../../../../src/components/inputs/Combobox/ComboboxTrigger.tsx"],"sourcesContent":["import { CaretDownIcon } from '@phosphor-icons/react/dist/ssr/CaretDown'\nimport { forwardRef } from 'react'\n\nimport { Button, type ControlSize } from '../Button'\n\nimport { cn } from '@/lib/utils'\n\ntype ComboboxTriggerProps = {\n id?: string\n disabled?: boolean\n open: boolean\n hasValue: boolean\n isMultilineLabel: boolean\n displayValue: React.ReactNode\n className?: string\n size?: ControlSize\n 'aria-invalid'?: React.AriaAttributes['aria-invalid']\n 'aria-describedby'?: string\n}\n\nexport const ComboboxTrigger = forwardRef<HTMLButtonElement, Readonly<ComboboxTriggerProps>>(\n ({ id, disabled, open, hasValue, isMultilineLabel, displayValue, className, size = 'lg', ...rest }, ref) => (\n <Button\n ref={ref}\n id={id}\n type=\"button\"\n disabled={disabled}\n variant=\"input\"\n size={size}\n data-multiline={isMultilineLabel || undefined}\n data-empty={hasValue ? undefined : ''}\n className={cn(\n
|
|
1
|
+
{"version":3,"file":"ComboboxTrigger.js","names":[],"sources":["../../../../src/components/inputs/Combobox/ComboboxTrigger.tsx"],"sourcesContent":["import { CaretDownIcon } from '@phosphor-icons/react/dist/ssr/CaretDown'\nimport { forwardRef } from 'react'\n\nimport { Button, type ControlSize } from '../Button'\n\nimport { cn } from '@/lib/utils'\n\ntype ComboboxTriggerProps = {\n id?: string\n disabled?: boolean\n open: boolean\n hasValue: boolean\n isMultilineLabel: boolean\n displayValue: React.ReactNode\n className?: string\n size?: ControlSize\n 'aria-invalid'?: React.AriaAttributes['aria-invalid']\n 'aria-describedby'?: string\n}\n\nexport const ComboboxTrigger = forwardRef<HTMLButtonElement, Readonly<ComboboxTriggerProps>>(\n ({ id, disabled, open, hasValue, isMultilineLabel, displayValue, className, size = 'lg', ...rest }, ref) => (\n <Button\n ref={ref}\n id={id}\n type=\"button\"\n disabled={disabled}\n variant=\"input\"\n size={size}\n data-multiline={isMultilineLabel || undefined}\n data-empty={hasValue ? undefined : ''}\n className={cn(\n `flex justify-between data-multiline:h-auto data-multiline:min-h-(--control-height) data-multiline:py-1`,\n className,\n )}\n aria-expanded={open}\n aria-haspopup=\"listbox\"\n {...rest}\n >\n <span\n className=\"\n block min-w-0 truncate\n in-data-empty:text-neutral-500\n in-data-multiline:overflow-visible in-data-multiline:whitespace-normal\n \"\n >\n {displayValue}\n </span>\n <CaretDownIcon className=\"h-4 w-4 shrink-0 opacity-50 transition-opacity duration-150 clear-visible:opacity-0\" />\n </Button>\n ),\n)\n\nComboboxTrigger.displayName = 'ComboboxTrigger'\n"],"mappings":";;;;;;AAoBA,IAAa,kBAAkB,YAC5B,EAAE,IAAI,UAAU,MAAM,UAAU,kBAAkB,cAAc,WAAW,OAAO,MAAM,GAAG,QAAQ,QAClG,qBAAC,QAAD;CACO;CACD;CACJ,MAAK;CACK;CACV,SAAQ;CACF;CACN,kBAAgB,oBAAoB,KAAA;CACpC,cAAY,WAAW,KAAA,IAAY;CACnC,WAAW,GACT,0GACA,SACF;CACA,iBAAe;CACf,iBAAc;CACd,GAAI;CAfN,UAAA,CAiBE,oBAAC,QAAD;EACE,WAAU;EAMT,UAAA;CACG,CAAA,GACN,oBAAC,eAAD,EAAe,WAAU,sFAAuF,CAAA,CAC1G;AAEZ,CAAA,CAAA;AAEA,gBAAgB,cAAc"}
|