@techsio/ui-kit 0.54.2 → 0.56.0
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/atoms/button.js +1 -1
- package/dist/atoms/icon.js +8 -2
- package/dist/atoms/rating.js +17 -4
- package/dist/atoms/skeleton.js +23 -4
- package/dist/atoms/status-text.js +2 -0
- package/dist/atoms/textarea.js +1 -1
- package/dist/internal/described-by.js +33 -0
- package/dist/internal/reduced-motion.js +11 -0
- package/dist/molecules/carousel.js +62 -63
- package/dist/molecules/cascade-select.js +2 -2
- package/dist/molecules/chart.js +6 -3
- package/dist/molecules/combobox.js +5 -4
- package/dist/molecules/file-upload.js +2 -1
- package/dist/molecules/form-input.js +7 -5
- package/dist/molecules/form-numeric-input.js +6 -4
- package/dist/molecules/form-textarea.js +7 -5
- package/dist/molecules/pagination.js +5 -1
- package/dist/molecules/phone-input.js +11 -3
- package/dist/molecules/product-card.js +2 -2
- package/dist/molecules/radio-group.js +10 -2
- package/dist/molecules/search-form.js +1 -0
- package/dist/molecules/select.js +14 -6
- package/dist/molecules/slider.js +7 -3
- package/dist/molecules/steps.js +33 -4
- package/dist/molecules/switch.js +5 -2
- package/dist/molecules/tabs.js +22 -7
- package/dist/molecules/totals-summary.js +103 -0
- package/dist/molecules/tour.js +1 -1
- package/dist/organisms/data-table.fields.js +6 -2
- package/dist/organisms/data-table.js +51 -22
- package/dist/organisms/footer.js +22 -4
- package/dist/organisms/line-item.js +199 -0
- package/dist/src/atoms/action-icon.d.ts +10 -2
- package/dist/src/atoms/action-icon.d.ts.map +1 -1
- package/dist/src/atoms/button.d.ts +4 -4
- package/dist/src/atoms/icon.d.ts +9 -4
- package/dist/src/atoms/icon.d.ts.map +1 -1
- package/dist/src/atoms/link-button.d.ts +4 -4
- package/dist/src/atoms/numeric-input.d.ts +1 -1
- package/dist/src/atoms/rating.d.ts +1 -1
- package/dist/src/atoms/rating.d.ts.map +1 -1
- package/dist/src/atoms/skeleton.d.ts +1 -1
- package/dist/src/atoms/skeleton.d.ts.map +1 -1
- package/dist/src/atoms/status-text.d.ts +1 -1
- package/dist/src/atoms/status-text.d.ts.map +1 -1
- package/dist/src/atoms/textarea.d.ts +4 -4
- package/dist/src/atoms/textarea.d.ts.map +1 -1
- package/dist/src/internal/described-by.d.ts +11 -0
- package/dist/src/internal/described-by.d.ts.map +1 -0
- package/dist/src/internal/reduced-motion.d.ts +2 -0
- package/dist/src/internal/reduced-motion.d.ts.map +1 -0
- package/dist/src/molecules/accordion.d.ts +2 -2
- package/dist/src/molecules/accordion.d.ts.map +1 -1
- package/dist/src/molecules/carousel.d.ts +19 -13
- package/dist/src/molecules/carousel.d.ts.map +1 -1
- package/dist/src/molecules/cascade-select.d.ts +1 -1
- package/dist/src/molecules/cascade-select.d.ts.map +1 -1
- package/dist/src/molecules/chart.d.ts +4 -1
- package/dist/src/molecules/chart.d.ts.map +1 -1
- package/dist/src/molecules/combobox.d.ts +1 -1
- package/dist/src/molecules/combobox.d.ts.map +1 -1
- package/dist/src/molecules/file-upload.d.ts +1 -1
- package/dist/src/molecules/file-upload.d.ts.map +1 -1
- package/dist/src/molecules/form-input.d.ts +5 -4
- package/dist/src/molecules/form-input.d.ts.map +1 -1
- package/dist/src/molecules/form-numeric-input.d.ts +1 -1
- package/dist/src/molecules/form-numeric-input.d.ts.map +1 -1
- package/dist/src/molecules/form-textarea.d.ts +5 -4
- package/dist/src/molecules/form-textarea.d.ts.map +1 -1
- package/dist/src/molecules/pagination.d.ts +1 -1
- package/dist/src/molecules/pagination.d.ts.map +1 -1
- package/dist/src/molecules/phone-input.d.ts +4 -2
- package/dist/src/molecules/phone-input.d.ts.map +1 -1
- package/dist/src/molecules/product-card.d.ts +6 -4
- package/dist/src/molecules/product-card.d.ts.map +1 -1
- package/dist/src/molecules/radio-group.d.ts +4 -2
- package/dist/src/molecules/radio-group.d.ts.map +1 -1
- package/dist/src/molecules/search-form.d.ts +1 -1
- package/dist/src/molecules/search-form.d.ts.map +1 -1
- package/dist/src/molecules/select.d.ts +3 -1
- package/dist/src/molecules/select.d.ts.map +1 -1
- package/dist/src/molecules/slider.d.ts +8 -3
- package/dist/src/molecules/slider.d.ts.map +1 -1
- package/dist/src/molecules/steps.d.ts +3 -0
- package/dist/src/molecules/steps.d.ts.map +1 -1
- package/dist/src/molecules/switch.d.ts.map +1 -1
- package/dist/src/molecules/tabs.d.ts.map +1 -1
- package/dist/src/molecules/totals-summary.d.ts +31 -0
- package/dist/src/molecules/totals-summary.d.ts.map +1 -0
- package/dist/src/molecules/tour.d.ts +1 -1
- package/dist/src/organisms/data-table.d.ts +1 -1
- package/dist/src/organisms/data-table.d.ts.map +1 -1
- package/dist/src/organisms/data-table.fields.d.ts +9 -1
- package/dist/src/organisms/data-table.fields.d.ts.map +1 -1
- package/dist/src/organisms/footer.d.ts +1 -1
- package/dist/src/organisms/footer.d.ts.map +1 -1
- package/dist/src/organisms/line-item.d.ts +51 -0
- package/dist/src/organisms/line-item.d.ts.map +1 -0
- package/dist/src/templates/accordion.d.ts +1 -1
- package/dist/src/templates/carousel.d.ts +1 -1
- package/dist/src/templates/numeric-input.d.ts +7 -3
- package/dist/src/templates/numeric-input.d.ts.map +1 -1
- package/dist/src/templates/product-card.d.ts +6 -4
- package/dist/src/templates/product-card.d.ts.map +1 -1
- package/dist/src/templates/select.d.ts +1 -1
- package/dist/src/templates/tabs.d.ts +1 -1
- package/dist/templates/product-card.js +2 -1
- package/package.json +1 -1
- package/src/tokens/_tokens-base.css +4 -0
- package/src/tokens/components/components.css +2 -0
- package/src/tokens/components/molecules/_totals-summary.css +25 -0
- package/src/tokens/components/molecules/_vertical-navigation.css +0 -20
- package/src/tokens/components/molecules/_vertical-navigation.derived.css +27 -0
- package/src/tokens/components/organisms/_line-item.css +31 -0
- package/src/tokens/figma/akros/variables.css +27 -8
- package/src/tokens/figma/brand-overrides.css +47 -45
- package/src/tokens/figma/business/variables.css +30 -11
- package/src/tokens/figma/dark/variables.css +29 -9
- package/src/tokens/figma/light/variables.css +302 -131
- package/src/tokens/figma/neo/variables.css +49 -30
- package/src/tokens/figma/neo-dark/variables.css +53 -34
- package/src/tokens/figma/variables.css +305 -134
package/dist/molecules/tour.js
CHANGED
|
@@ -302,7 +302,7 @@ Tour.CloseTrigger = function({ className, icon = "token-icon-close", onClick, re
|
|
|
302
302
|
const { onClick: onMachineClick, "aria-label": machineLabel, ...machineProps } = api.getCloseTriggerProps();
|
|
303
303
|
return /*#__PURE__*/ jsx(ActionIcon, {
|
|
304
304
|
...mergeProps(props, machineProps),
|
|
305
|
-
"aria-label": props["aria-label"] ?? machineLabel,
|
|
305
|
+
"aria-label": props["aria-label"] ?? machineLabel ?? "Close tour",
|
|
306
306
|
className: tourStyles().closeTrigger({
|
|
307
307
|
className
|
|
308
308
|
}),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
2
3
|
import { ActionIcon } from "../atoms/action-icon.js";
|
|
3
4
|
import { Input } from "../atoms/input.js";
|
|
4
5
|
import { NumericInput } from "../atoms/numeric-input.js";
|
|
@@ -108,9 +109,12 @@ function selectMinWidthCh(items, placeholder) {
|
|
|
108
109
|
const longest = items.reduce((max, item)=>Math.max(max, String(item.label ?? item.value).length), placeholder?.length ?? 0);
|
|
109
110
|
return `${longest + 7}ch`;
|
|
110
111
|
}
|
|
112
|
+
const FieldTableLayoutContext = /*#__PURE__*/ createContext("auto");
|
|
111
113
|
function FieldSelect({ items, value, ariaLabel, placeholder, disabled, size = "sm", invalid, onChange }) {
|
|
114
|
+
const tableLayout = useContext(FieldTableLayoutContext);
|
|
112
115
|
return /*#__PURE__*/ jsx("div", {
|
|
113
|
-
|
|
116
|
+
className: "fixed" === tableLayout ? "w-full min-w-0" : void 0,
|
|
117
|
+
style: "fixed" === tableLayout ? void 0 : {
|
|
114
118
|
minWidth: selectMinWidthCh(items, placeholder)
|
|
115
119
|
},
|
|
116
120
|
children: /*#__PURE__*/ jsxs(Select, {
|
|
@@ -717,4 +721,4 @@ function typedFilterMatch(type, cell, rawFilterValue) {
|
|
|
717
721
|
return matchText(cell, filterValue);
|
|
718
722
|
}
|
|
719
723
|
}
|
|
720
|
-
export { DEFAULT_EDITOR_RENDERERS, DEFAULT_FILTER_RENDERERS, FieldSelect, NUMBER_FILTER_OPERATORS, TEXT_FILTER_OPERATORS, columnLabel, isBlank, matchBetween, typedFilterMatch };
|
|
724
|
+
export { DEFAULT_EDITOR_RENDERERS, DEFAULT_FILTER_RENDERERS, FieldSelect, FieldTableLayoutContext, NUMBER_FILTER_OPERATORS, TEXT_FILTER_OPERATORS, columnLabel, isBlank, matchBetween, typedFilterMatch };
|
|
@@ -20,7 +20,7 @@ import { Menu } from "../molecules/menu.js";
|
|
|
20
20
|
import { Pagination } from "../molecules/pagination.js";
|
|
21
21
|
import { SearchForm } from "../molecules/search-form.js";
|
|
22
22
|
import { tv } from "../utils.js";
|
|
23
|
-
import { DEFAULT_EDITOR_RENDERERS, DEFAULT_FILTER_RENDERERS, FieldSelect, columnLabel, isBlank } from "./data-table.fields.js";
|
|
23
|
+
import { DEFAULT_EDITOR_RENDERERS, DEFAULT_FILTER_RENDERERS, FieldSelect, FieldTableLayoutContext, columnLabel, isBlank } from "./data-table.fields.js";
|
|
24
24
|
import { DATA_TABLE_Z, applyColumnDefaults, conditionalFilterFn, dataTableFeatures, getColumnSizeStyles, getPinningStyles, isFirstEndPinned, isLastStartPinned, resolveColumnType } from "./data-table.helpers.js";
|
|
25
25
|
import { Table } from "./table.js";
|
|
26
26
|
const dataTableVariants = tv({
|
|
@@ -1087,6 +1087,28 @@ function DataTable(props) {
|
|
|
1087
1087
|
leafColumns
|
|
1088
1088
|
]);
|
|
1089
1089
|
const hasActionsColumn = !!renderRowActions || !!rowActions?.length || enableInlineEdit || enableExpanding && (!!renderExpandedRow || !!getSubRows || !!getRowCanExpand);
|
|
1090
|
+
const [fixedActionsWidth, setFixedActionsWidth] = useState();
|
|
1091
|
+
useIsomorphicLayoutEffect(()=>{
|
|
1092
|
+
if ("fixed" !== tableLayout || !hasActionsColumn) return;
|
|
1093
|
+
const contents = scrollRef.current?.querySelectorAll('[data-part="actions-cell-content"]');
|
|
1094
|
+
if (!contents?.length) return;
|
|
1095
|
+
let widest = 0;
|
|
1096
|
+
for (const content of contents){
|
|
1097
|
+
const rects = [
|
|
1098
|
+
...content.children
|
|
1099
|
+
].map((child)=>child.getBoundingClientRect());
|
|
1100
|
+
if (rects.length) {
|
|
1101
|
+
const start = Math.min(...rects.map((r)=>r.left));
|
|
1102
|
+
const end = Math.max(...rects.map((r)=>r.right));
|
|
1103
|
+
widest = Math.max(widest, end - start);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
const cell = contents[0]?.parentElement;
|
|
1107
|
+
if (!cell || 0 === widest) return;
|
|
1108
|
+
const cellStyle = getComputedStyle(cell);
|
|
1109
|
+
const width = Math.ceil(widest + Number.parseFloat(cellStyle.paddingLeft) + Number.parseFloat(cellStyle.paddingRight));
|
|
1110
|
+
if (width !== fixedActionsWidth) setFixedActionsWidth(width);
|
|
1111
|
+
});
|
|
1090
1112
|
const hasWarnedAboutPinnedActionsOverlap = useRef(false);
|
|
1091
1113
|
useEffect(()=>{
|
|
1092
1114
|
const endPinned = enableColumnPinning && table.getAllLeafColumns().some((c)=>"end" === c.getIsPinned());
|
|
@@ -1203,6 +1225,9 @@ function DataTable(props) {
|
|
|
1203
1225
|
...OPAQUE_HEADER_BG,
|
|
1204
1226
|
...stickyActions ? {
|
|
1205
1227
|
zIndex: DATA_TABLE_Z.stickyActionsHeaderCell
|
|
1228
|
+
} : void 0,
|
|
1229
|
+
..."fixed" === tableLayout && fixedActionsWidth ? {
|
|
1230
|
+
width: fixedActionsWidth
|
|
1206
1231
|
} : void 0
|
|
1207
1232
|
},
|
|
1208
1233
|
children: translations.actionsLabel
|
|
@@ -1332,6 +1357,7 @@ function DataTable(props) {
|
|
|
1332
1357
|
} : void 0,
|
|
1333
1358
|
children: /*#__PURE__*/ jsxs("div", {
|
|
1334
1359
|
className: styles.actionsCell(),
|
|
1360
|
+
"data-part": "actions-cell-content",
|
|
1335
1361
|
children: [
|
|
1336
1362
|
enableExpanding && row.getCanExpand() ? /*#__PURE__*/ jsx(Button, {
|
|
1337
1363
|
"aria-controls": expandAriaControls(row.id),
|
|
@@ -1557,27 +1583,30 @@ function DataTable(props) {
|
|
|
1557
1583
|
]
|
|
1558
1584
|
}, footerGroup.id))
|
|
1559
1585
|
}) : null;
|
|
1560
|
-
const tableEl = /*#__PURE__*/
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1586
|
+
const tableEl = /*#__PURE__*/ jsx(FieldTableLayoutContext.Provider, {
|
|
1587
|
+
value: tableLayout,
|
|
1588
|
+
children: /*#__PURE__*/ jsxs(Table, {
|
|
1589
|
+
"aria-busy": loading || loadingMore || void 0,
|
|
1590
|
+
"aria-rowcount": headerRowCount + table.getRowCount(),
|
|
1591
|
+
interactive: (interactive || !!onRowClick) && !locked,
|
|
1592
|
+
showColumnBorder: showColumnBorder,
|
|
1593
|
+
size: size,
|
|
1594
|
+
stickyHeader: stickyHeader,
|
|
1595
|
+
variant: outlined || "striped" === variant ? "line" : variant,
|
|
1596
|
+
...slotProps?.root,
|
|
1597
|
+
style: {
|
|
1598
|
+
tableLayout,
|
|
1599
|
+
...slotProps?.root?.style
|
|
1600
|
+
},
|
|
1601
|
+
children: [
|
|
1602
|
+
caption && /*#__PURE__*/ jsx(Table.Caption, {
|
|
1603
|
+
children: caption
|
|
1604
|
+
}),
|
|
1605
|
+
headerContent,
|
|
1606
|
+
bodyContent,
|
|
1607
|
+
footerContent
|
|
1608
|
+
]
|
|
1609
|
+
})
|
|
1581
1610
|
});
|
|
1582
1611
|
const handleDragEnd = (event)=>{
|
|
1583
1612
|
if (event.canceled) return;
|
package/dist/organisms/footer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useContext } from "react";
|
|
2
|
+
import { Children, Fragment, cloneElement, createContext, isValidElement, useContext } from "react";
|
|
3
3
|
import { Link } from "../atoms/link.js";
|
|
4
4
|
import { tv } from "../utils.js";
|
|
5
5
|
const footerVariants = tv({
|
|
@@ -9,8 +9,8 @@ const footerVariants = tv({
|
|
|
9
9
|
section: "bg-footer-section-bg",
|
|
10
10
|
list: "flex list-none flex-col gap-footer-list bg-footer-list-bg",
|
|
11
11
|
bottom: "border-t-(length:--border-footer-width) flex w-full items-center justify-between bg-footer-bottom-bg pt-footer-bottom",
|
|
12
|
-
title: "font-footer-title text-footer-title-fg transition-
|
|
13
|
-
link: "font-footer-link text-footer-link-fg transition-
|
|
12
|
+
title: "font-footer-title text-footer-title-fg transition-colors duration-200 hover:text-footer-title-fg-hover motion-reduce:transition-none",
|
|
13
|
+
link: "font-footer-link text-footer-link-fg transition-colors duration-200 hover:text-footer-link-fg-hover motion-reduce:transition-none",
|
|
14
14
|
text: "text-footer-text-fg",
|
|
15
15
|
divider: "flex h-footer-divider w-full border-0 bg-footer-divider-bg"
|
|
16
16
|
},
|
|
@@ -166,6 +166,22 @@ Footer.Text = function({ children, className }) {
|
|
|
166
166
|
children: children
|
|
167
167
|
});
|
|
168
168
|
};
|
|
169
|
+
function flattenFragments(children, keyPrefix = "") {
|
|
170
|
+
return Children.toArray(children).flatMap((child)=>{
|
|
171
|
+
if (/*#__PURE__*/ isValidElement(child)) {
|
|
172
|
+
const key = `${keyPrefix}${child.key ?? ""}`;
|
|
173
|
+
if (child.type === Fragment) return flattenFragments(child.props.children, `${key}/`);
|
|
174
|
+
return [
|
|
175
|
+
keyPrefix ? /*#__PURE__*/ cloneElement(child, {
|
|
176
|
+
key
|
|
177
|
+
}) : child
|
|
178
|
+
];
|
|
179
|
+
}
|
|
180
|
+
return [
|
|
181
|
+
child
|
|
182
|
+
];
|
|
183
|
+
});
|
|
184
|
+
}
|
|
169
185
|
Footer.List = function({ children, className, ...props }) {
|
|
170
186
|
const { size } = useContext(FooterContext);
|
|
171
187
|
const { list } = footerVariants({
|
|
@@ -176,7 +192,9 @@ Footer.List = function({ children, className, ...props }) {
|
|
|
176
192
|
className
|
|
177
193
|
}),
|
|
178
194
|
...props,
|
|
179
|
-
children: children
|
|
195
|
+
children: flattenFragments(children).map((child)=>/*#__PURE__*/ isValidElement(child) && "li" !== child.type ? /*#__PURE__*/ jsx("li", {
|
|
196
|
+
children: child
|
|
197
|
+
}, child.key) : child)
|
|
180
198
|
});
|
|
181
199
|
};
|
|
182
200
|
Footer.Divider = function({ className, ...props }) {
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { createContext, useContext, useId } from "react";
|
|
4
|
+
import { Button } from "../atoms/button.js";
|
|
5
|
+
import { StatusText } from "../atoms/status-text.js";
|
|
6
|
+
import { tv } from "../utils.js";
|
|
7
|
+
const lineItemVariants = tv({
|
|
8
|
+
slots: {
|
|
9
|
+
root: "grid min-w-0 gap-line-item text-line-item-content-fg has-[>[data-part=image]]:grid-cols-line-item",
|
|
10
|
+
image: "size-line-item-image overflow-hidden rounded-line-item-image [&>img]:size-full [&>img]:object-contain",
|
|
11
|
+
body: "flex min-w-0 flex-col gap-line-item-content",
|
|
12
|
+
heading: "flex min-w-0 flex-wrap items-start gap-line-item-heading",
|
|
13
|
+
title: "min-w-0 break-words font-line-item-title text-line-item-title-size [[data-part=heading]>&]:flex-1 [[data-part=heading]>&]:basis-line-item-title-min-width",
|
|
14
|
+
price: "min-w-0 max-w-full",
|
|
15
|
+
options: "break-words text-line-item-detail-size text-line-item-options-fg",
|
|
16
|
+
controls: "flex min-w-0 flex-wrap items-end gap-line-item-controls",
|
|
17
|
+
quantity: "min-w-0 max-w-full flex-1 basis-line-item-quantity-width",
|
|
18
|
+
quantityLabel: "break-words text-line-item-detail-size",
|
|
19
|
+
actions: "flex flex-wrap items-center gap-line-item-controls",
|
|
20
|
+
pending: "col-span-full text-line-item-content-fg"
|
|
21
|
+
},
|
|
22
|
+
variants: {
|
|
23
|
+
layout: {
|
|
24
|
+
default: {},
|
|
25
|
+
compact: {
|
|
26
|
+
image: "size-line-item-image-compact",
|
|
27
|
+
root: "gap-line-item-compact"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
layout: "default"
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
const LineItemContext = /*#__PURE__*/ createContext(null);
|
|
36
|
+
function useLineItemContext() {
|
|
37
|
+
const context = useContext(LineItemContext);
|
|
38
|
+
if (!context) throw new Error("LineItem parts must be rendered inside LineItem");
|
|
39
|
+
return context;
|
|
40
|
+
}
|
|
41
|
+
function LineItem({ title, children, readOnly = false, pending = false, pendingLabel, layout = "default", className, ref, "aria-describedby": ariaDescribedBy, ...props }) {
|
|
42
|
+
const pendingId = useId();
|
|
43
|
+
const describedBy = [
|
|
44
|
+
ariaDescribedBy,
|
|
45
|
+
pending ? pendingId : void 0
|
|
46
|
+
].filter(Boolean).join(" ") || void 0;
|
|
47
|
+
const styles = lineItemVariants({
|
|
48
|
+
layout
|
|
49
|
+
});
|
|
50
|
+
return /*#__PURE__*/ jsx(LineItemContext.Provider, {
|
|
51
|
+
value: {
|
|
52
|
+
title,
|
|
53
|
+
readOnly,
|
|
54
|
+
pending,
|
|
55
|
+
styles
|
|
56
|
+
},
|
|
57
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
58
|
+
...props,
|
|
59
|
+
"aria-busy": pending || void 0,
|
|
60
|
+
"aria-describedby": describedBy,
|
|
61
|
+
className: styles.root({
|
|
62
|
+
className
|
|
63
|
+
}),
|
|
64
|
+
"data-layout": layout,
|
|
65
|
+
"data-pending": pending || void 0,
|
|
66
|
+
"data-readonly": readOnly || void 0,
|
|
67
|
+
"data-scope": "line-item",
|
|
68
|
+
ref: ref,
|
|
69
|
+
children: [
|
|
70
|
+
children,
|
|
71
|
+
pending ? /*#__PURE__*/ jsx(StatusText, {
|
|
72
|
+
className: styles.pending(),
|
|
73
|
+
id: pendingId,
|
|
74
|
+
children: pendingLabel
|
|
75
|
+
}) : null
|
|
76
|
+
]
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
LineItem.Image = function({ className, ...props }) {
|
|
81
|
+
const { styles } = useLineItemContext();
|
|
82
|
+
return /*#__PURE__*/ jsx("div", {
|
|
83
|
+
...props,
|
|
84
|
+
className: styles.image({
|
|
85
|
+
className
|
|
86
|
+
}),
|
|
87
|
+
"data-part": "image"
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
LineItem.Body = function({ className, ...props }) {
|
|
91
|
+
const { styles } = useLineItemContext();
|
|
92
|
+
return /*#__PURE__*/ jsx("div", {
|
|
93
|
+
...props,
|
|
94
|
+
className: styles.body({
|
|
95
|
+
className
|
|
96
|
+
}),
|
|
97
|
+
"data-part": "body"
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
LineItem.Heading = function({ className, ...props }) {
|
|
101
|
+
const { styles } = useLineItemContext();
|
|
102
|
+
return /*#__PURE__*/ jsx("div", {
|
|
103
|
+
...props,
|
|
104
|
+
className: styles.heading({
|
|
105
|
+
className
|
|
106
|
+
}),
|
|
107
|
+
"data-part": "heading"
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
LineItem.Title = function({ className, children, ...props }) {
|
|
111
|
+
const { title, styles } = useLineItemContext();
|
|
112
|
+
return /*#__PURE__*/ jsx("div", {
|
|
113
|
+
...props,
|
|
114
|
+
className: styles.title({
|
|
115
|
+
className
|
|
116
|
+
}),
|
|
117
|
+
"data-part": "title",
|
|
118
|
+
children: children ?? title
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
LineItem.Price = function({ className, ...props }) {
|
|
122
|
+
const { styles } = useLineItemContext();
|
|
123
|
+
return /*#__PURE__*/ jsx("div", {
|
|
124
|
+
...props,
|
|
125
|
+
className: styles.price({
|
|
126
|
+
className
|
|
127
|
+
}),
|
|
128
|
+
"data-part": "price"
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
LineItem.Options = function({ className, ...props }) {
|
|
132
|
+
const { styles } = useLineItemContext();
|
|
133
|
+
return /*#__PURE__*/ jsx("div", {
|
|
134
|
+
...props,
|
|
135
|
+
className: styles.options({
|
|
136
|
+
className
|
|
137
|
+
}),
|
|
138
|
+
"data-part": "options"
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
LineItem.Controls = function({ className, ...props }) {
|
|
142
|
+
const { styles } = useLineItemContext();
|
|
143
|
+
return /*#__PURE__*/ jsx("div", {
|
|
144
|
+
...props,
|
|
145
|
+
className: styles.controls({
|
|
146
|
+
className
|
|
147
|
+
}),
|
|
148
|
+
"data-part": "controls"
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
LineItem.Quantity = function({ readOnlyLabel, children, className, ...props }) {
|
|
152
|
+
const { styles, readOnly, pending } = useLineItemContext();
|
|
153
|
+
return readOnly ? /*#__PURE__*/ jsx("div", {
|
|
154
|
+
...props,
|
|
155
|
+
className: styles.quantityLabel({
|
|
156
|
+
className
|
|
157
|
+
}),
|
|
158
|
+
"data-part": "quantity",
|
|
159
|
+
children: readOnlyLabel
|
|
160
|
+
}) : /*#__PURE__*/ jsx("div", {
|
|
161
|
+
...props,
|
|
162
|
+
className: styles.quantity({
|
|
163
|
+
className
|
|
164
|
+
}),
|
|
165
|
+
"data-part": "quantity",
|
|
166
|
+
inert: pending || void 0,
|
|
167
|
+
children: children
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
LineItem.Actions = function({ className, ...props }) {
|
|
171
|
+
const { styles, readOnly, pending } = useLineItemContext();
|
|
172
|
+
if (readOnly) return null;
|
|
173
|
+
return /*#__PURE__*/ jsx("div", {
|
|
174
|
+
...props,
|
|
175
|
+
className: styles.actions({
|
|
176
|
+
className
|
|
177
|
+
}),
|
|
178
|
+
"data-part": "actions",
|
|
179
|
+
inert: pending || void 0
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
LineItem.Remove = function({ label, onClick, disabled, size = "sm", theme = "borderless", ...props }) {
|
|
183
|
+
const { title, readOnly, pending } = useLineItemContext();
|
|
184
|
+
if (readOnly) return null;
|
|
185
|
+
return /*#__PURE__*/ jsx(Button, {
|
|
186
|
+
...props,
|
|
187
|
+
"aria-label": `${label}: ${title}`,
|
|
188
|
+
"data-part": "remove",
|
|
189
|
+
disabled: pending || disabled,
|
|
190
|
+
onClick: (event)=>{
|
|
191
|
+
if (!(pending || disabled)) onClick?.(event);
|
|
192
|
+
},
|
|
193
|
+
size: size,
|
|
194
|
+
theme: theme,
|
|
195
|
+
type: "button",
|
|
196
|
+
children: label
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
export { LineItem };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ActionIcon — @techsio/ui-kit atom.
|
|
3
3
|
*
|
|
4
4
|
* @component ActionIcon
|
|
5
|
-
* @componentVersion v1.
|
|
5
|
+
* @componentVersion v1.1.0
|
|
6
6
|
* @skill action-icon-usage
|
|
7
7
|
* @changelog libs/ui/stories/changelog/changelog.stories.tsx
|
|
8
8
|
*
|
|
@@ -44,7 +44,15 @@ declare const actionIconVariants: import("tailwind-variants").TVReturnType<{
|
|
|
44
44
|
};
|
|
45
45
|
}, undefined>>;
|
|
46
46
|
type ActionIconVariants = VariantProps<typeof actionIconVariants>;
|
|
47
|
-
|
|
47
|
+
/** An icon-only button has no text, so the type requires a name. */
|
|
48
|
+
type ActionIconName = {
|
|
49
|
+
"aria-label": string;
|
|
50
|
+
"aria-labelledby"?: string;
|
|
51
|
+
} | {
|
|
52
|
+
"aria-label"?: string;
|
|
53
|
+
"aria-labelledby": string;
|
|
54
|
+
};
|
|
55
|
+
export type ActionIconProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "aria-label" | "aria-labelledby"> & ActionIconVariants & ActionIconName & {
|
|
48
56
|
icon: IconType;
|
|
49
57
|
ref?: Ref<HTMLButtonElement>;
|
|
50
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-icon.d.ts","sourceRoot":"","sources":["../../../src/atoms/action-icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAY5C,QAAA,MAAM,kBAAkB;;;;;;;QAgBlB,OAAO;QAIP,MAAM;;;;;;;;;;;;;;;;;;;;;;cAUV,CAAA;AAEF,KAAK,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEjE,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,
|
|
1
|
+
{"version":3,"file":"action-icon.d.ts","sourceRoot":"","sources":["../../../src/atoms/action-icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAY5C,QAAA,MAAM,kBAAkB;;;;;;;QAgBlB,OAAO;QAIP,MAAM;;;;;;;;;;;;;;;;;;;;;;cAUV,CAAA;AAEF,KAAK,kBAAkB,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEjE,oEAAoE;AACpE,KAAK,cAAc,GACf;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAA;AAExD,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,YAAY,GAAG,iBAAiB,CAC9C,GACC,kBAAkB,GAClB,cAAc,GAAG;IACf,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAC7B,CAAA;AAEH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAe,EACf,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,eAAe,+BAWjB;yBAnBe,UAAU"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Button — @techsio/ui-kit atom.
|
|
3
3
|
*
|
|
4
4
|
* @component Button
|
|
5
|
-
* @componentVersion v0.3.
|
|
5
|
+
* @componentVersion v0.3.4
|
|
6
6
|
* @skill button-usage
|
|
7
7
|
* @changelog libs/ui/stories/changelog/changelog.stories.tsx
|
|
8
8
|
*
|
|
@@ -33,7 +33,7 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
|
33
33
|
size: {
|
|
34
34
|
sm: "h-form-control-sm gap-button-sm rounded-button-sm p-button-sm text-button-sm";
|
|
35
35
|
md: "h-form-control-md gap-button-md rounded-button-md p-button-md text-button-md";
|
|
36
|
-
lg: "gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
36
|
+
lg: "h-form-control-lg gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
37
37
|
current: "gap-button-md text-inherit";
|
|
38
38
|
};
|
|
39
39
|
block: {
|
|
@@ -60,7 +60,7 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
|
60
60
|
size: {
|
|
61
61
|
sm: "h-form-control-sm gap-button-sm rounded-button-sm p-button-sm text-button-sm";
|
|
62
62
|
md: "h-form-control-md gap-button-md rounded-button-md p-button-md text-button-md";
|
|
63
|
-
lg: "gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
63
|
+
lg: "h-form-control-lg gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
64
64
|
current: "gap-button-md text-inherit";
|
|
65
65
|
};
|
|
66
66
|
block: {
|
|
@@ -87,7 +87,7 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
|
87
87
|
size: {
|
|
88
88
|
sm: "h-form-control-sm gap-button-sm rounded-button-sm p-button-sm text-button-sm";
|
|
89
89
|
md: "h-form-control-md gap-button-md rounded-button-md p-button-md text-button-md";
|
|
90
|
-
lg: "gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
90
|
+
lg: "h-form-control-lg gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
91
91
|
current: "gap-button-md text-inherit";
|
|
92
92
|
};
|
|
93
93
|
block: {
|
package/dist/src/atoms/icon.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Icon — @techsio/ui-kit atom.
|
|
3
3
|
*
|
|
4
4
|
* @component Icon
|
|
5
|
-
* @componentVersion v1.
|
|
5
|
+
* @componentVersion v1.1.0
|
|
6
6
|
* @skill icon-usage
|
|
7
7
|
* @changelog libs/ui/stories/changelog/changelog.stories.tsx
|
|
8
8
|
*
|
|
@@ -67,10 +67,15 @@ declare const iconVariants: import("tailwind-variants").TVReturnType<{
|
|
|
67
67
|
warning: "text-warning";
|
|
68
68
|
};
|
|
69
69
|
}, undefined>>;
|
|
70
|
-
export
|
|
70
|
+
export type IconProps = Omit<HTMLAttributes<HTMLSpanElement>, "color"> & VariantProps<typeof iconVariants> & {
|
|
71
71
|
icon: IconType;
|
|
72
72
|
className?: string;
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Accessible name for a meaningful standalone icon (rendered as `role="img"`).
|
|
75
|
+
* Omit it for decorative icons and icons next to text: they stay `aria-hidden`.
|
|
76
|
+
*/
|
|
77
|
+
label?: string;
|
|
78
|
+
};
|
|
79
|
+
export declare function Icon({ icon, size, color, className, label, ...props }: IconProps): import("react").JSX.Element;
|
|
75
80
|
export {};
|
|
76
81
|
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/atoms/icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGrD,MAAM,MAAM,QAAQ,GAAG,cAAc,MAAM,EAAE,GAAG,SAAS,MAAM,GAAG,CAAA;AAElE,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyBhB,CAAA;AAEF,MAAM,
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/atoms/icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGrD,MAAM,MAAM,QAAQ,GAAG,cAAc,MAAM,EAAE,GAAG,SAAS,MAAM,GAAG,CAAA;AAElE,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyBhB,CAAA;AAEF,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC,GACpE,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG;IAClC,IAAI,EAAE,QAAQ,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAEH,wBAAgB,IAAI,CAAC,EACnB,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,SAAS,+BAYX"}
|
|
@@ -92,7 +92,7 @@ declare const linkButton: import("tailwind-variants").TVReturnType<{
|
|
|
92
92
|
size: {
|
|
93
93
|
sm: "h-form-control-sm gap-button-sm rounded-button-sm p-button-sm text-button-sm";
|
|
94
94
|
md: "h-form-control-md gap-button-md rounded-button-md p-button-md text-button-md";
|
|
95
|
-
lg: "gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
95
|
+
lg: "h-form-control-lg gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
96
96
|
current: "gap-button-md text-inherit";
|
|
97
97
|
};
|
|
98
98
|
block: {
|
|
@@ -119,7 +119,7 @@ declare const linkButton: import("tailwind-variants").TVReturnType<{
|
|
|
119
119
|
size: {
|
|
120
120
|
sm: "h-form-control-sm gap-button-sm rounded-button-sm p-button-sm text-button-sm";
|
|
121
121
|
md: "h-form-control-md gap-button-md rounded-button-md p-button-md text-button-md";
|
|
122
|
-
lg: "gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
122
|
+
lg: "h-form-control-lg gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
123
123
|
current: "gap-button-md text-inherit";
|
|
124
124
|
};
|
|
125
125
|
block: {
|
|
@@ -146,7 +146,7 @@ declare const linkButton: import("tailwind-variants").TVReturnType<{
|
|
|
146
146
|
size: {
|
|
147
147
|
sm: "h-form-control-sm gap-button-sm rounded-button-sm p-button-sm text-button-sm";
|
|
148
148
|
md: "h-form-control-md gap-button-md rounded-button-md p-button-md text-button-md";
|
|
149
|
-
lg: "gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
149
|
+
lg: "h-form-control-lg gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
150
150
|
current: "gap-button-md text-inherit";
|
|
151
151
|
};
|
|
152
152
|
block: {
|
|
@@ -173,7 +173,7 @@ declare const linkButton: import("tailwind-variants").TVReturnType<{
|
|
|
173
173
|
size: {
|
|
174
174
|
sm: "h-form-control-sm gap-button-sm rounded-button-sm p-button-sm text-button-sm";
|
|
175
175
|
md: "h-form-control-md gap-button-md rounded-button-md p-button-md text-button-md";
|
|
176
|
-
lg: "gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
176
|
+
lg: "h-form-control-lg gap-button-lg rounded-button-lg p-button-lg text-button-lg";
|
|
177
177
|
current: "gap-button-md text-inherit";
|
|
178
178
|
};
|
|
179
179
|
block: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rating.d.ts","sourceRoot":"","sources":["../../../src/atoms/rating.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAA;AAEnD,OAAO,EAAE,KAAK,cAAc,EAAS,MAAM,OAAO,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIrD,QAAA,MAAM,MAAM;;QAuBN,EAAE;YACA,IAAI;YACJ,OAAO;YACP,IAAI;;QAEN,EAAE;YACA,IAAI;YACJ,OAAO;YACP,IAAI;;QAEN,EAAE;YACA,IAAI;YACJ,OAAO;YACP,IAAI;;;;QAIN,IAAI;QACJ,KAAK;YACH,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAO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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/atoms/skeleton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,SAAS,EACd,KAAK,GAAG,EAET,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/atoms/skeleton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,SAAS,EACd,KAAK,GAAG,EAET,MAAM,OAAO,CAAA;AAkHd,UAAU,iBACR,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAA;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAC1B;AAED,wBAAgB,QAAQ,CAAC,EACvB,QAAgB,EAChB,OAAO,EACP,QAAQ,EACR,KAAK,EACL,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,iBAAiB,+BAmBnB;yBA3Be,QAAQ;gGAgDrB,mBAAmB;mIAmDnB,iBAAiB;;6FA2DjB,sBAAsB;;AAjIzB,UAAU,mBACR,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IACzD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE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;;;;;;;;;;;;;;;;;;;;;;;;GASV,CAAA;AASF,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,cAAc,CAAC,GAC1D,YAAY,CAAC,OAAO,kBAAkB,CAAC,GAAG;IACxC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IACzB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAEH,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,QAAgB,EAChB,MAAkB,EAClB,IAAW,EACX,KAAgB,EAChB,IAAI,EACJ,QAAQ,EACR,GAAG,EACH,GAAG,KAAK,EACT,EAAE,eAAe,+BAoCjB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Textarea — @techsio/ui-kit atom.
|
|
3
3
|
*
|
|
4
4
|
* @component Textarea
|
|
5
|
-
* @componentVersion v1.0.
|
|
5
|
+
* @componentVersion v1.0.2
|
|
6
6
|
* @skill textarea-usage
|
|
7
7
|
* @changelog libs/ui/stories/changelog/changelog.stories.tsx
|
|
8
8
|
*
|
|
@@ -32,7 +32,7 @@ declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
|
32
32
|
auto: "field-sizing-content resize-none";
|
|
33
33
|
};
|
|
34
34
|
readonly: {
|
|
35
|
-
true: "cursor-default border-textarea-border-disabled bg-textarea-bg-disabled
|
|
35
|
+
true: "cursor-default border-textarea-border-disabled bg-textarea-bg-disabled";
|
|
36
36
|
};
|
|
37
37
|
}, undefined, string[], {
|
|
38
38
|
variant: {
|
|
@@ -55,7 +55,7 @@ declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
|
55
55
|
auto: "field-sizing-content resize-none";
|
|
56
56
|
};
|
|
57
57
|
readonly: {
|
|
58
|
-
true: "cursor-default border-textarea-border-disabled bg-textarea-bg-disabled
|
|
58
|
+
true: "cursor-default border-textarea-border-disabled bg-textarea-bg-disabled";
|
|
59
59
|
};
|
|
60
60
|
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
61
61
|
variant: {
|
|
@@ -78,7 +78,7 @@ declare const textareaVariants: import("tailwind-variants").TVReturnType<{
|
|
|
78
78
|
auto: "field-sizing-content resize-none";
|
|
79
79
|
};
|
|
80
80
|
readonly: {
|
|
81
|
-
true: "cursor-default border-textarea-border-disabled bg-textarea-bg-disabled
|
|
81
|
+
true: "cursor-default border-textarea-border-disabled bg-textarea-bg-disabled";
|
|
82
82
|
};
|
|
83
83
|
}, undefined>>;
|
|
84
84
|
export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size">, VariantProps<typeof textareaVariants> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/atoms/textarea.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/atoms/textarea.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0EpB,CAAA;AAEF,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC,EAC/D,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAA;CAC/B;AAED,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,aAAa,+BAef;yBAvBe,QAAQ"}
|