@ultraviolet/ui 3.20.2 → 3.21.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/README.md +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/asyncToGenerator.js +2 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/defineProperty.js +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/extends.js +2 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectDestructuringEmpty.js +2 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectSpread2.js +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectWithoutProperties.js +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/objectWithoutPropertiesLoose.js +2 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/toPrimitive.js +3 -3
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/toPropertyKey.js +4 -4
- package/dist/_virtual/{_@oxc-project_runtime@0.133.0 → _@oxc-project_runtime@0.139.0}/helpers/esm/typeof.js +2 -2
- package/dist/_virtual/_rolldown/runtime.js +8 -1
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/Avatar/index.js +2 -2
- package/dist/components/Banner/index.js +1 -1
- package/dist/components/BarChart/index.js +1 -1
- package/dist/components/Breadcrumbs/components/Item.js +2 -2
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +3 -1
- package/dist/components/Carousel/Item.js +1 -1
- package/dist/components/CheckboxGroup/SingleCheckbox.js +1 -1
- package/dist/components/CheckboxGroup/index.js +2 -2
- package/dist/components/Chip/ChipIcon.js +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/DateInput/components/CalendarContent.js +1 -1
- package/dist/components/DateInput/components/CalendarDaily.js +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +1 -1
- package/dist/components/DateInput/components/Popup.js +1 -1
- package/dist/components/DateInput/helpers.js +5 -3
- package/dist/components/DateInput/helpersLocale.js +2 -1
- package/dist/components/DateInput/index.js +3 -2
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.d.ts.map +1 -1
- package/dist/components/Dialog/index.js +2 -2
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/EmptyState/index.js +1 -1
- package/dist/components/Expandable/AnimatedExpandable.js +1 -1
- package/dist/components/Expandable/NonAnimatedExpandable.js +1 -1
- package/dist/components/ExpandableCard/index.js +1 -1
- package/dist/components/FileInput/components/Button.js +3 -4
- package/dist/components/FileInput/components/List.js +3 -2
- package/dist/components/FileInput/helpers.js +3 -2
- package/dist/components/FileInput/index.js +5 -4
- package/dist/components/GlobalAlert/index.js +1 -1
- package/dist/components/InfiniteScroll/index.js +1 -1
- package/dist/components/Key/styles.css.d.ts.map +1 -1
- package/dist/components/LineChart/CustomLegend.js +1 -1
- package/dist/components/LineChart/index.js +1 -1
- package/dist/components/List/Cell.js +2 -2
- package/dist/components/List/ExpandButtonCell.js +1 -1
- package/dist/components/List/HeaderRow.js +1 -1
- package/dist/components/List/ListContext.js +3 -3
- package/dist/components/List/Row.js +1 -1
- package/dist/components/List/SelectRowCell.js +1 -1
- package/dist/components/List/SkeletonRows.js +1 -1
- package/dist/components/List/TableContainer.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/MenuContent.js +2 -1
- package/dist/components/Menu/index.js +2 -2
- package/dist/components/Modal/components/Dialog.js +3 -2
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/Notification/index.js +5 -2
- package/dist/components/NumberInput/components/Controls.d.ts +1 -1
- package/dist/components/NumberInput/components/Controls.d.ts.map +1 -1
- package/dist/components/NumberInput/components/Controls.js +6 -10
- package/dist/components/NumberInput/index.d.ts.map +1 -1
- package/dist/components/NumberInput/index.js +31 -9
- package/dist/components/PieChart/index.js +2 -2
- package/dist/components/Popup/index.js +1 -1
- package/dist/components/RadioGroup/SingleRadio.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Row/index.d.ts +1 -1
- package/dist/components/Row/index.d.ts.map +1 -1
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Row/styles.css.js +1 -1
- package/dist/components/SelectInput/SelectInputProvider.d.ts +1 -0
- package/dist/components/SelectInput/SelectInputProvider.d.ts.map +1 -1
- package/dist/components/SelectInput/SelectInputProvider.js +4 -5
- package/dist/components/SelectInput/components/Dropdown/Content.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Content.js +3 -3
- package/dist/components/SelectInput/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts +1 -1
- package/dist/components/SelectInput/components/Dropdown/Group.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/Group.js +4 -3
- package/dist/components/SelectInput/components/Dropdown/SearchBar.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/SearchBar.js +14 -7
- package/dist/components/SelectInput/components/Dropdown/SelectAll.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/SelectAll.js +14 -20
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts +2 -1
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown/dropdown.css.js +4 -4
- package/dist/components/SelectInput/reducerFunctions.d.ts +3 -8
- package/dist/components/SelectInput/reducerFunctions.d.ts.map +1 -1
- package/dist/components/SelectInput/reducerFunctions.js +4 -14
- package/dist/components/SelectInput/styles.css.d.ts +2 -1
- package/dist/components/SelectInput/styles.css.d.ts.map +1 -1
- package/dist/components/SelectInput/styles.css.js +16 -15
- package/dist/components/SelectInput/types.d.ts +0 -1
- package/dist/components/SelectInput/types.d.ts.map +1 -1
- package/dist/components/SelectableCard/MultiStateInput.js +2 -2
- package/dist/components/SelectableCard/SelectableCard.js +1 -1
- package/dist/components/SelectableCard/index.js +1 -1
- package/dist/components/SelectableCardGroup/index.js +1 -1
- package/dist/components/SelectableCardOptionGroup/SelectableCardOptionGroup.js +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +2 -2
- package/dist/components/SelectableCardOptionGroup/index.js +4 -2
- package/dist/components/Skeleton/index.js +2 -1
- package/dist/components/Slider/components/DoubleSlider.js +1 -1
- package/dist/components/Slider/components/Options.js +1 -1
- package/dist/components/Slider/components/SingleSlider.js +2 -2
- package/dist/components/Snippet/index.d.ts.map +1 -1
- package/dist/components/Snippet/index.js +2 -3
- package/dist/components/Stack/index.d.ts +1 -1
- package/dist/components/Stack/index.d.ts.map +1 -1
- package/dist/components/Stack/index.js +3 -4
- package/dist/components/Stack/styles.css.js +1 -1
- package/dist/components/StepList/Item.js +1 -1
- package/dist/components/Stepper/Bullet.js +1 -1
- package/dist/components/Stepper/Step.js +1 -1
- package/dist/components/Stepper/index.js +2 -2
- package/dist/components/SwitchButton/FocusOverlay.js +1 -1
- package/dist/components/SwitchButton/index.js +3 -2
- package/dist/components/Table/Cell.js +2 -2
- package/dist/components/Table/Row.js +1 -1
- package/dist/components/Table/TableContainer.js +1 -1
- package/dist/components/Table/TableContext.js +4 -7
- package/dist/components/Table/index.js +2 -2
- package/dist/components/Tabs/Tab.js +4 -5
- package/dist/components/Tabs/TabMenu.js +3 -4
- package/dist/components/Tabs/TabMenuItem.js +4 -5
- package/dist/components/Tabs/index.js +4 -5
- package/dist/components/Tabs/styles.css.d.ts.map +1 -1
- package/dist/components/TagInput/index.js +2 -2
- package/dist/components/TagList/index.js +2 -2
- package/dist/components/Text/constants.d.ts +2 -0
- package/dist/components/Text/constants.d.ts.map +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Text/style.css.d.ts.map +1 -1
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +24 -31
- package/dist/components/TextArea/styles.css.d.ts +0 -3
- package/dist/components/TextArea/styles.css.d.ts.map +1 -1
- package/dist/components/TimeInput/index.js +2 -2
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/Toaster/components/Button.js +3 -4
- package/dist/components/Toaster/components/Link.js +3 -3
- package/dist/components/Toaster/index.js +3 -1
- package/dist/components/ToggleGroup/index.js +1 -1
- package/dist/components/TreeMapChart/index.js +2 -2
- package/dist/components/UnitInput/index.js +1 -1
- package/dist/components/VerificationCode/index.js +4 -2
- package/dist/components/index.js +16 -16
- package/dist/components/styles.js +91 -91
- package/dist/composition.js +30 -30
- package/dist/compositions/EstimateCost/Components/Item.js +1 -1
- package/dist/compositions/EstimateCost/Components/LineThrough.js +3 -4
- package/dist/compositions/EstimateCost/Components/Unit.js +1 -1
- package/dist/compositions/EstimateCost/EstimateCostProvider.js +1 -1
- package/dist/compositions/EstimateCost/Image.js +1 -1
- package/dist/compositions/EstimateCost/styles.css.js +0 -2
- package/dist/compositions/FAQ/index.js +1 -1
- package/dist/compositions/Filters/filterTypes/FilterDateRange.d.ts +9 -0
- package/dist/compositions/Filters/filterTypes/FilterDateRange.d.ts.map +1 -0
- package/dist/compositions/Filters/filterTypes/FilterDateRange.js +36 -0
- package/dist/compositions/Filters/filterTypes/FilterMultiSelect.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterMultiSelect.js +2 -1
- package/dist/compositions/Filters/filterTypes/FilterSelect.d.ts +1 -1
- package/dist/compositions/Filters/filterTypes/FilterSelect.d.ts.map +1 -1
- package/dist/compositions/Filters/filterTypes/FilterSelect.js +3 -2
- package/dist/compositions/Filters/filterTypes/FilterSlider.js +1 -1
- package/dist/compositions/Filters/index.d.ts +1 -1
- package/dist/compositions/Filters/index.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/AbstractFilter.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/AbstractFilter.js +7 -3
- package/dist/compositions/Filters/parts/FiltersDrawer.d.ts.map +1 -1
- package/dist/compositions/Filters/parts/FiltersDrawer.js +2 -4
- package/dist/compositions/Filters/parts/reducer.js +9 -3
- package/dist/compositions/Filters/parts/useFilters.js +1 -1
- package/dist/compositions/Filters/types.d.ts +24 -1
- package/dist/compositions/Filters/types.d.ts.map +1 -1
- package/dist/compositions/InfoTable/components/Row.js +1 -1
- package/dist/compositions/InfoTable/styles.css.js +83 -83
- package/dist/compositions/Navigation/NavigationProvider.d.ts.map +1 -1
- package/dist/compositions/Navigation/NavigationProvider.js +2 -2
- package/dist/compositions/Navigation/styles.css.js +0 -2
- package/dist/compositions/OfferList/components/SelectableCell.js +1 -1
- package/dist/compositions/OptionSelector/styles.css.js +83 -97
- package/dist/compositions/OrderSummary/NonScrollableContent.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/NonScrollableContent.js +5 -0
- package/dist/compositions/OrderSummary/components/Category.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/components/Category.js +8 -0
- package/dist/compositions/OrderSummary/components/SubCategory.js +4 -0
- package/dist/compositions/OrderSummary/components/SubCategoryPrice.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/components/SubCategoryPrice.js +5 -0
- package/dist/compositions/OrderSummary/helpers.js +2 -2
- package/dist/compositions/OrderSummary/styles.css.d.ts +1 -0
- package/dist/compositions/OrderSummary/styles.css.d.ts.map +1 -1
- package/dist/compositions/OrderSummary/styles.css.js +2 -1
- package/dist/compositions/Plans/PlanHeader.d.ts +2 -2
- package/dist/compositions/Plans/PlanHeader.d.ts.map +1 -1
- package/dist/compositions/Plans/PlanHeader.js +2 -4
- package/dist/compositions/Plans/index.js +2 -1
- package/dist/compositions/RichTextInput/editorCore.js +1 -1
- package/dist/compositions/RichTextInput/index.js +1 -1
- package/dist/compositions/index.js +1 -1
- package/dist/compositions/styles.js +1 -1
- package/dist/helpers/treeMap.js +1 -1
- package/dist/index.js +71 -71
- package/dist/theme/ThemeProvider.d.ts +11 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/ThemeProvider.js +2 -7
- package/dist/theme/index.d.ts +27 -2
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +2 -1
- package/dist/ui.css +1 -1
- package/dist/utils/index.js +5 -1
- package/dist/utils/normalize.d.ts.map +1 -1
- package/dist/utils/normalize.js +0 -1
- package/dist/utils/responsive/index.js +11 -0
- package/dist/utils/responsive/utilities.js +1 -1
- package/package.json +13 -13
- package/dist/components/Avatar/variables.css.ts.vanilla.js +0 -8
- package/dist/components/List/variables.css.ts.vanilla.js +0 -8
- package/dist/components/Popup/variables.css.ts.vanilla.js +0 -8
- package/dist/components/ProgressBar/variables.css.ts.vanilla.js +0 -8
- package/dist/components/SelectableCard/variables.css.ts.vanilla.js +0 -8
- package/dist/components/Table/variables.css.ts.vanilla.js +0 -8
- package/dist/components/Text/variables.css.ts.vanilla.js +0 -8
- package/dist/compositions/Navigation/variables.css.ts.vanilla.js +0 -8
- package/dist/themes/dist/vanilla/themes.css.js.vanilla.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Stack/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Stack/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAI7D,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAqB,YAAY,EAAE,MAAM,OAAO,CAAA;AACxF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAGtE,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,kBAAkB,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAGxF,KAAK,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,MAAM,EAAE,GAAG,CAAC,GAAG,KAAK,CAAA;AAsBnF,KAAK,aAAa,GAAG;IACnB,GAAG,CAAC,EAAE,cAAc,CAAC,MAAM,kBAAkB,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IACrG,SAAS,CAAC,EAAE,cAAc,CAAC,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC,CAAA;IAC/E,UAAU,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAA;IAC3C,cAAc,CAAC,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAA;IACnD,IAAI,CAAC,EAAE,cAAc,CAAC,OAAO,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,CAAA;IAC1D,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAA;IAC9B,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;IACpC,QAAQ,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;IACpC,IAAI,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,yBAAyB,CAAC,CAAC,EAAE,aAAa,CAAC,CAAA;AAoFnG,eAAO,MAAM,KAAK,EAAa,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,YAAY,CAAA"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { init_styles_css, sprinkles, stackStyle } from "./styles.css.js";
|
|
4
4
|
import { flexVar, init_variables_css, maxWidthVar, minWidthVar, widthVar } from "./variables.css.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
6
|
+
import _objectWithoutProperties, { init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectWithoutProperties.js";
|
|
7
7
|
import { forwardRef, useMemo } from "react";
|
|
8
8
|
import { consoleLightTheme } from "@ultraviolet/themes";
|
|
9
9
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -36,8 +36,7 @@ var init_Stack = __esmMin(() => {
|
|
|
36
36
|
];
|
|
37
37
|
mapRepsonsiveGap = (object) => object ? Object.keys(object).reduce((acc, key) => _objectSpread2(_objectSpread2({}, acc), {}, { [key]: consoleLightTheme.space[object[key]] }), {}) : {};
|
|
38
38
|
IStack = forwardRef((_ref, ref) => {
|
|
39
|
-
let { gap, direction = "column", alignItems, justifyContent, wrap, className, children, id, "data-testid": dataTestId, width, maxWidth, minWidth, flex, as, style } = _ref;
|
|
40
|
-
let props = _objectWithoutProperties(_ref, _excluded);
|
|
39
|
+
let { gap, direction = "column", alignItems, justifyContent, wrap, className, children, id, "data-testid": dataTestId, width, maxWidth, minWidth, flex, as, style } = _ref, props = _objectWithoutProperties(_ref, _excluded);
|
|
41
40
|
const wrapValue = useMemo(() => {
|
|
42
41
|
if (typeof wrap === "boolean") return wrap ? "wrap" : "nowrap";
|
|
43
42
|
if (typeof wrap === "object") return Object.keys(wrap).reduce((acc, key) => _objectSpread2(_objectSpread2({}, acc), {}, { [key]: wrap[key] ? "wrap" : "nowrap" }), {});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { Bullet, init_Bullet } from "../Bullet/index.js";
|
|
4
3
|
import { init_styles_css, stepListStyle } from "./styles.css.js";
|
|
4
|
+
import { Bullet, init_Bullet } from "../Bullet/index.js";
|
|
5
5
|
import { cn } from "@ultraviolet/utils";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { init_styles_css, stepperStyle } from "./styles.css.js";
|
|
2
3
|
import { Bullet, init_Bullet as init_Bullet$1 } from "../Bullet/index.js";
|
|
3
4
|
import { init_StepperProvider, useStepper } from "./StepperProvider.js";
|
|
4
|
-
import { init_styles_css, stepperStyle } from "./styles.css.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { CheckIcon } from "@ultraviolet/icons/CheckIcon";
|
|
7
7
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
4
4
|
import { Text, init_Text } from "../Text/index.js";
|
|
5
|
-
import { init_StepperProvider, useStepper } from "./StepperProvider.js";
|
|
6
5
|
import { init_styles_css, stepperStyle } from "./styles.css.js";
|
|
6
|
+
import { init_StepperProvider, useStepper } from "./StepperProvider.js";
|
|
7
7
|
import { StepBullet, init_Bullet } from "./Bullet.js";
|
|
8
8
|
import { useMemo } from "react";
|
|
9
9
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import { StepperProvider, init_StepperProvider } from "./StepperProvider.js";
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
5
4
|
import { init_styles_css, stepperStyle } from "./styles.css.js";
|
|
5
|
+
import { StepperProvider, init_StepperProvider } from "./StepperProvider.js";
|
|
6
6
|
import { Step, init_Step } from "./Step.js";
|
|
7
7
|
import { Children, Fragment, isValidElement } from "react";
|
|
8
8
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { init_constant } from "./constant.js";
|
|
4
3
|
import { init_styles_css, switchButtonStyle } from "./styles.css.js";
|
|
4
|
+
import { init_constant } from "./constant.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/SwitchButton/FocusOverlay.tsx
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
4
4
|
import { Tooltip, init_Tooltip } from "../Tooltip/index.js";
|
|
5
|
-
import { init_constant } from "./constant.js";
|
|
6
5
|
import { init_styles_css, switchButtonStyle } from "./styles.css.js";
|
|
6
|
+
import { init_constant } from "./constant.js";
|
|
7
7
|
import { FocusOverlay, init_FocusOverlay } from "./FocusOverlay.js";
|
|
8
8
|
import { SwitchButtonContext, init_SwitchButtonContext } from "./SwitchButtonContext.js";
|
|
9
9
|
import { Option, init_Option } from "./Option.js";
|
|
@@ -80,7 +80,8 @@ var init_SwitchButton = __esmMin(() => {
|
|
|
80
80
|
const currentElement = getElement(event.target.value);
|
|
81
81
|
if (currentElement && containerRef.current) {
|
|
82
82
|
var _currentElement$offse;
|
|
83
|
-
|
|
83
|
+
const currentWidth = (_currentElement$offse = currentElement.offsetWidth) !== null && _currentElement$offse !== void 0 ? _currentElement$offse : 0;
|
|
84
|
+
setWidth(currentWidth);
|
|
84
85
|
setPosition(getPosition(currentElement));
|
|
85
86
|
}
|
|
86
87
|
}, [getElement, onChange]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import { init_ColumnProvider, useColumnProvider } from "../List/ColumnProvider.js";
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
5
4
|
import { init_styles_css, tableStyle } from "./styles.css.js";
|
|
5
|
+
import { init_ColumnProvider, useColumnProvider } from "../List/ColumnProvider.js";
|
|
6
6
|
import { init_variables_css, maxWidthCell, minWidthCell, widthCell } from "./variables.css.js";
|
|
7
7
|
import { cn } from "@ultraviolet/utils";
|
|
8
8
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
@@ -3,9 +3,9 @@ import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
|
3
3
|
import { Tooltip, init_Tooltip } from "../Tooltip/index.js";
|
|
4
4
|
import { Button, init_Button } from "../Button/index.js";
|
|
5
5
|
import { Checkbox, init_Checkbox } from "../Checkbox/index.js";
|
|
6
|
-
import { ColumnProvider, init_ColumnProvider } from "../List/ColumnProvider.js";
|
|
7
6
|
import { init_styles_css, listStyle } from "../List/styles.css.js";
|
|
8
7
|
import { init_styles_css as init_styles_css$1, tableStyle } from "./styles.css.js";
|
|
8
|
+
import { ColumnProvider, init_ColumnProvider } from "../List/ColumnProvider.js";
|
|
9
9
|
import { Cell, init_Cell } from "./Cell.js";
|
|
10
10
|
import { init_TableContext, useTableContext } from "./TableContext.js";
|
|
11
11
|
import { Children, useCallback, useEffect, useRef } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { init_ListContext, useListContext } from "../List/ListContext.js";
|
|
4
3
|
import { init_styles_css, listStyle } from "../List/styles.css.js";
|
|
4
|
+
import { init_ListContext, useListContext } from "../List/ListContext.js";
|
|
5
5
|
import { Children, useEffect, useState } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
|
+
import _objectWithoutProperties, { init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectWithoutProperties.js";
|
|
5
5
|
import { ListProvider, init_ListContext, useListContext } from "../List/ListContext.js";
|
|
6
6
|
import { createContext, useContext, useEffect, useMemo } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -21,9 +21,7 @@ var init_TableContext = __esmMin(() => {
|
|
|
21
21
|
];
|
|
22
22
|
TableContext = createContext(void 0);
|
|
23
23
|
Provider = ({ children, bordered, stripped, columns }) => {
|
|
24
|
-
const _useListContext = useListContext();
|
|
25
|
-
const { subscribeHandler } = _useListContext;
|
|
26
|
-
const listContext = _objectWithoutProperties(_useListContext, _excluded);
|
|
24
|
+
const _useListContext = useListContext(), { subscribeHandler } = _useListContext, listContext = _objectWithoutProperties(_useListContext, _excluded);
|
|
27
25
|
useEffect(subscribeHandler, [subscribeHandler]);
|
|
28
26
|
const value = useMemo(() => _objectSpread2(_objectSpread2({}, listContext), {}, {
|
|
29
27
|
bordered,
|
|
@@ -43,8 +41,7 @@ var init_TableContext = __esmMin(() => {
|
|
|
43
41
|
});
|
|
44
42
|
};
|
|
45
43
|
TableProvider = (_ref) => {
|
|
46
|
-
let { children, bordered, stripped, columns } = _ref;
|
|
47
|
-
let props = _objectWithoutProperties(_ref, _excluded2);
|
|
44
|
+
let { children, bordered, stripped, columns } = _ref, props = _objectWithoutProperties(_ref, _excluded2);
|
|
48
45
|
return /* @__PURE__ */ jsx(ListProvider, _objectSpread2(_objectSpread2({ columns: [] }, props), {}, { children: /* @__PURE__ */ jsx(Provider, _objectSpread2(_objectSpread2({
|
|
49
46
|
bordered,
|
|
50
47
|
columns,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import { Body, init_Body } from "./Body.js";
|
|
4
3
|
import { init_styles_css, tableStyle } from "./styles.css.js";
|
|
4
|
+
import { Body, init_Body } from "./Body.js";
|
|
5
5
|
import { Cell, init_Cell } from "./Cell.js";
|
|
6
6
|
import { Header, init_Header } from "./Header.js";
|
|
7
7
|
import { HeaderCell, init_HeaderCell } from "./HeaderCell.js";
|
|
@@ -76,4 +76,4 @@ var init_Table = __esmMin(() => {
|
|
|
76
76
|
|
|
77
77
|
//#endregion
|
|
78
78
|
init_Table();
|
|
79
|
-
export { Table, init_Table };
|
|
79
|
+
export { BaseTable, Table, init_Table };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
|
+
import _objectWithoutProperties, { init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectWithoutProperties.js";
|
|
5
5
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
6
6
|
import { Tooltip, init_Tooltip } from "../Tooltip/index.js";
|
|
7
7
|
import { Text, init_Text } from "../Text/index.js";
|
|
8
8
|
import { Badge, init_Badge } from "../Badge/index.js";
|
|
9
|
-
import { init_TabsContext, useTabsContext } from "./TabsContext.js";
|
|
10
9
|
import { init_styles_css, tabsStyle } from "./styles.css.js";
|
|
10
|
+
import { init_TabsContext, useTabsContext } from "./TabsContext.js";
|
|
11
11
|
import { forwardRef, useMemo } from "react";
|
|
12
12
|
import { cn } from "@ultraviolet/utils";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -37,8 +37,7 @@ var init_Tab = __esmMin(() => {
|
|
|
37
37
|
"value"
|
|
38
38
|
];
|
|
39
39
|
Tab = forwardRef((_ref, ref) => {
|
|
40
|
-
let { as, badge, children, className, counter, disabled = false, onClick, onKeyDown, subtitle, tooltip, value } = _ref;
|
|
41
|
-
let props = _objectWithoutProperties(_ref, _excluded);
|
|
40
|
+
let { as, badge, children, className, counter, disabled = false, onClick, onKeyDown, subtitle, tooltip, value } = _ref, props = _objectWithoutProperties(_ref, _excluded);
|
|
42
41
|
const { selected, onChange } = useTabsContext();
|
|
43
42
|
const computedAs = as !== null && as !== void 0 ? as : "button";
|
|
44
43
|
const ComputedComponent = as !== null && as !== void 0 ? as : "button";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
|
+
import _objectWithoutProperties, { init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectWithoutProperties.js";
|
|
5
5
|
import { Menu, init_Menu } from "../Menu/index.js";
|
|
6
6
|
import { init_styles_css, tabsStyle } from "./styles.css.js";
|
|
7
7
|
import { forwardRef } from "react";
|
|
@@ -26,8 +26,7 @@ var init_TabMenu = __esmMin(() => {
|
|
|
26
26
|
"aria-selected"
|
|
27
27
|
];
|
|
28
28
|
TabMenu = forwardRef((_ref, ref) => {
|
|
29
|
-
let { children, disclosure, visible, id, disabled, className, "aria-selected": ariaSelected } = _ref;
|
|
30
|
-
let props = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
+
let { children, disclosure, visible, id, disabled, className, "aria-selected": ariaSelected } = _ref, props = _objectWithoutProperties(_ref, _excluded);
|
|
31
30
|
return /* @__PURE__ */ jsx("div", {
|
|
32
31
|
className: tabsStyle.menuWrapper,
|
|
33
32
|
children: /* @__PURE__ */ jsx(Menu, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
|
+
import _objectWithoutProperties, { init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectWithoutProperties.js";
|
|
5
5
|
import { Menu, init_Menu } from "../Menu/index.js";
|
|
6
|
-
import { init_TabsContext, useTabsContext } from "./TabsContext.js";
|
|
7
6
|
import { init_styles_css, tabsStyle } from "./styles.css.js";
|
|
7
|
+
import { init_TabsContext, useTabsContext } from "./TabsContext.js";
|
|
8
8
|
import { useMemo } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
|
|
@@ -22,8 +22,7 @@ var init_TabMenuItem = __esmMin(() => {
|
|
|
22
22
|
"onClick"
|
|
23
23
|
];
|
|
24
24
|
TabMenuItem = (_ref) => {
|
|
25
|
-
let { value, children, onClick } = _ref;
|
|
26
|
-
let props = _objectWithoutProperties(_ref, _excluded);
|
|
25
|
+
let { value, children, onClick } = _ref, props = _objectWithoutProperties(_ref, _excluded);
|
|
27
26
|
const { selected, onChange } = useTabsContext();
|
|
28
27
|
const isSelected = useMemo(() => value !== void 0 && selected === value, [value, selected]);
|
|
29
28
|
return /* @__PURE__ */ jsx(Menu.Item, _objectSpread2(_objectSpread2({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { TabsContext, init_TabsContext } from "./TabsContext.js";
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
|
+
import _objectWithoutProperties, { init_objectWithoutProperties } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectWithoutProperties.js";
|
|
6
5
|
import { init_styles_css, tabsStyle } from "./styles.css.js";
|
|
6
|
+
import { TabsContext, init_TabsContext } from "./TabsContext.js";
|
|
7
7
|
import { Tab, init_Tab } from "./Tab.js";
|
|
8
8
|
import { TabMenu, init_TabMenu } from "./TabMenu.js";
|
|
9
9
|
import { TabMenuItem, init_TabMenuItem } from "./TabMenuItem.js";
|
|
@@ -31,8 +31,7 @@ var init_Tabs = __esmMin(() => {
|
|
|
31
31
|
];
|
|
32
32
|
SHADOW_THRESHOLD = 10;
|
|
33
33
|
Tabs = (_ref) => {
|
|
34
|
-
let { children = null, onChange, moreDisclosure = "More", selected, className, "data-testid": dataTestId } = _ref;
|
|
35
|
-
let props = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
+
let { children = null, onChange, moreDisclosure = "More", selected, className, "data-testid": dataTestId } = _ref, props = _objectWithoutProperties(_ref, _excluded);
|
|
36
35
|
const tabsRef = useRef({});
|
|
37
36
|
const moreStaticRef = useRef(null);
|
|
38
37
|
const [displayMore, setDisplayMore] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/styles.css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/styles.css.ts"],"names":[],"mappings":"AAgKA,eAAO,MAAM,SAAS;;;;;;;;;;CAUrB,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
5
5
|
import { Tooltip, init_Tooltip } from "../Tooltip/index.js";
|
|
6
6
|
import { Button, init_Button } from "../Button/index.js";
|
|
7
7
|
import { hasHelperText, init_hasHelperText } from "../../helpers/hasHelperText.js";
|
|
8
8
|
import { Description, init_Description } from "../Description/index.js";
|
|
9
9
|
import { Label, init_Label } from "../Label/index.js";
|
|
10
|
-
import { Tag, init_Tag } from "../Tag/index.js";
|
|
11
10
|
import { init_styles_css, tagInputStyle } from "./styles.css.js";
|
|
11
|
+
import { Tag, init_Tag } from "../Tag/index.js";
|
|
12
12
|
import { useEffect, useId, useRef, useState } from "react";
|
|
13
13
|
import { cn, getUUID } from "@ultraviolet/utils";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
|
+
import { init_styles_css, popoverTriggerWidthVar, tagListStyle } from "./styles.css.js";
|
|
4
5
|
import { Tag, init_Tag } from "../Tag/index.js";
|
|
5
6
|
import { Popover, init_Popover } from "../Popover/index.js";
|
|
6
7
|
import { DEFAULT_POPOVER_MAX_HEIGHT, TAGS_GAP, init_constant } from "./constant.js";
|
|
7
|
-
import { init_styles_css, popoverTriggerWidthVar, tagListStyle } from "./styles.css.js";
|
|
8
8
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { cn } from "@ultraviolet/utils";
|
|
10
10
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/Text/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;aACtB,OAAO,EAAE,EAAE;aACX,MAAM,EAAE,QAAQ;aAChB,QAAQ,EAAE,UAAU;aACpB,IAAI,EAAE,MAAM;CACJ,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/Text/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;aACtB,OAAO,EAAE,EAAE;aACX,MAAM,EAAE,QAAQ;aAChB,QAAQ,EAAE,UAAU;aACpB,IAAI,EAAE,MAAM;CACJ,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAA;AAEjD,eAAO,MAAM,gBAAgB,EAA+B,SAAS,UAAU,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import recursivelyGetChildrenString, { init_recursivelyGetChildrenString } from "../../helpers/recursivelyGetChildrenString.js";
|
|
5
5
|
import { init_useIsOverflowing, useIsOverflowing } from "../../hooks/useIsOverflowing.js";
|
|
6
6
|
import { Tooltip, init_Tooltip } from "../Tooltip/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.css.d.ts","sourceRoot":"","sources":["../../../src/components/Text/style.css.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,eAAe,EAAe,MAAM,qBAAqB,CAAA;AAItF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"style.css.d.ts","sourceRoot":"","sources":["../../../src/components/Text/style.css.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,eAAe,EAAe,MAAM,qBAAqB,CAAA;AAItF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAsB9D,KAAK,SAAS,GAAG,IAAI,CAAC,eAAe,EAAE,kBAAkB,GAAG,UAAU,GAAG,gBAAgB,GAAG,QAAQ,CAAC,GAAG;IACtG,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAmFD,QAAA,MAAM,IAAI;;QAkBJ,IAAI;;;;;;;;;;;;;;;QAeJ,OAAO;QACP,MAAM;QACN,QAAQ;QACR,IAAI;;;QAGJ,KAAK;QACL,MAAM;QACN,IAAI;QACJ,OAAO;QACP,OAAO;QACP,SAAS;QACT,OAAO;QACP,OAAO;QACP,KAAK;;;;;;;;;;;;;EAcT,CAAA;AAGF,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC,CAAA;AAEnE,eAAO,MAAM,SAAS;;;YAhDhB,IAAI;;;;;;;;;;;;;;;YAeJ,OAAO;YACP,MAAM;YACN,QAAQ;YACR,IAAI;;;YAGJ,KAAK;YACL,MAAM;YACN,IAAI;YACJ,OAAO;YACP,OAAO;YACP,SAAS;YACT,OAAO;YACP,OAAO;YACP,KAAK;;;;;;;;;;;;;;;CAmB+B,CAAA"}
|
|
@@ -38,7 +38,7 @@ type TextAreaProps = {
|
|
|
38
38
|
*/
|
|
39
39
|
helper?: ReactNode;
|
|
40
40
|
/**
|
|
41
|
-
* Number of rows to display. If 'auto', the textarea will grow with the content
|
|
41
|
+
* Number of rows to display. If 'auto', the textarea will grow with the content
|
|
42
42
|
*/
|
|
43
43
|
rows?: number | 'auto';
|
|
44
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAA;AAY7E,KAAK,UAAU,GACX;IACE,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,KAAK,CAAA;CACrB,GACD;IACE,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAEL,KAAK,aAAa,GAAG;IACnB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,GAAG,UAAU,GACZ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,kBAAkB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAA;AAY7E,KAAK,UAAU,GACX;IACE,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,KAAK,CAAA;CACrB,GACD;IACE,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAEL,KAAK,aAAa,GAAG;IACnB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,GAAG,UAAU,GACZ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,kBAAkB,CAAC,CAAA;AAK5G;;GAEG;AACH,eAAO,MAAM,QAAQ,+GA4KpB,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
5
5
|
import { Tooltip, init_Tooltip } from "../Tooltip/index.js";
|
|
6
6
|
import { Button, init_Button } from "../Button/index.js";
|
|
7
7
|
import { hasHelperText, init_hasHelperText } from "../../helpers/hasHelperText.js";
|
|
8
8
|
import { Label, init_Label } from "../Label/index.js";
|
|
9
|
+
import { init_styles_css, paddingRightVar, textAreaStyle } from "./styles.css.js";
|
|
9
10
|
import { SIZE_HEIGHT, init_constants } from "../Button/constants.js";
|
|
10
11
|
import { init_constant } from "./constant.js";
|
|
11
12
|
import { SuccessErrorIcon, init_Icon } from "./Icon.js";
|
|
12
13
|
import { Notice, init_Notice } from "./Notice.js";
|
|
13
|
-
import { init_styles_css, paddingRightVar, textAreaStyle } from "./styles.css.js";
|
|
14
14
|
import { forwardRef, useEffect, useId, useImperativeHandle, useRef } from "react";
|
|
15
15
|
import { useTheme } from "@ultraviolet/themes";
|
|
16
16
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
@@ -18,7 +18,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
18
18
|
import { CloseIcon } from "@ultraviolet/icons/CloseIcon";
|
|
19
19
|
|
|
20
20
|
//#region src/components/TextArea/index.tsx
|
|
21
|
-
var TextArea;
|
|
21
|
+
var BORDERS_WIDTH, AUTO_ROWS, TextArea;
|
|
22
22
|
var init_TextArea = __esmMin(() => {
|
|
23
23
|
init_hasHelperText();
|
|
24
24
|
init_Button();
|
|
@@ -31,44 +31,37 @@ var init_TextArea = __esmMin(() => {
|
|
|
31
31
|
init_Notice();
|
|
32
32
|
init_styles_css();
|
|
33
33
|
init_objectSpread2();
|
|
34
|
+
BORDERS_WIDTH = "2px";
|
|
35
|
+
AUTO_ROWS = 2;
|
|
34
36
|
TextArea = forwardRef(({ id, className, tabIndex, value, onChange, placeholder, rows = 3, maxRows, disabled = false, readOnly = false, success, error, helper, minLength, maxLength, tooltip, label, autoFocus, required = false, "data-testid": dataTestId, name, onFocus, onBlur, onKeyDown, clearable = false, size = "large", labelDescription, "aria-label": ariaLabel, style, "aria-describedby": ariaDescribedBy }, ref) => {
|
|
35
|
-
var _textAreaRef$current;
|
|
36
37
|
const localId = useId();
|
|
37
38
|
const helperId = useId();
|
|
38
39
|
const theme = useTheme();
|
|
39
40
|
const textAreaRef = useRef(null);
|
|
40
41
|
useImperativeHandle(ref, () => textAreaRef.current);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (textAreaRef.current && window.CSS && CSS.supports("field-sizing", "content")) textAreaRef.current.style.fieldSizing = rows === "auto" ? "content" : "fixed";
|
|
44
|
+
}, [rows]);
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
const textArea = textAreaRef.current;
|
|
47
|
+
if (!textArea || rows !== "auto") return;
|
|
48
|
+
const userResized = textArea.style.height.match(/^\d+px$/);
|
|
49
|
+
const hasNativeAutoResize = textArea.style.fieldSizing === "content";
|
|
50
|
+
if (userResized || hasNativeAutoResize) return;
|
|
51
|
+
textArea.style.height = `calc(${textArea.scrollHeight}px + ${BORDERS_WIDTH})`;
|
|
52
|
+
}, [value, rows]);
|
|
41
53
|
useEffect(() => {
|
|
42
54
|
const textArea = textAreaRef.current;
|
|
43
|
-
const padding = theme.space["1.5"];
|
|
44
55
|
if (!textArea) return;
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} else textArea.style.resize = "vertical";
|
|
51
|
-
if (textArea && (maxRows || typeof rows === "number")) {
|
|
52
|
-
const lineHeight = Number.parseFloat(getComputedStyle(textArea).lineHeight);
|
|
53
|
-
if (maxRows) {
|
|
54
|
-
textArea.style.height = "auto";
|
|
55
|
-
const maxHeight = maxRows * lineHeight;
|
|
56
|
-
textArea.style.height = `${textArea.scrollHeight + 2}px`;
|
|
57
|
-
textArea.style.maxHeight = `calc(${maxHeight}px + 2*${padding})`;
|
|
58
|
-
} else if (typeof rows === "number") textArea.style.height = "auto";
|
|
59
|
-
if (typeof rows === "number") {
|
|
60
|
-
const minHeight = rows * lineHeight;
|
|
61
|
-
textArea.style.minHeight = `calc(${minHeight}px + 2*${padding})`;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
requestAnimationFrame(updateHeight);
|
|
56
|
+
const padding = theme.space["1.5"];
|
|
57
|
+
const lineHeight = Number.parseFloat(getComputedStyle(textArea).lineHeight);
|
|
58
|
+
if (maxRows) textArea.style.maxBlockSize = `calc(${maxRows * lineHeight}px + 2*${padding} + ${BORDERS_WIDTH})`;
|
|
59
|
+
const minRows = rows === "auto" ? AUTO_ROWS : rows;
|
|
60
|
+
textArea.style.minBlockSize = `calc(${minRows * lineHeight}px + 2*${padding} + ${BORDERS_WIDTH})`;
|
|
66
61
|
}, [
|
|
67
|
-
value,
|
|
68
|
-
rows,
|
|
69
|
-
theme,
|
|
70
62
|
maxRows,
|
|
71
|
-
|
|
63
|
+
rows,
|
|
64
|
+
theme.space
|
|
72
65
|
]);
|
|
73
66
|
const nonDefaultState = success || error;
|
|
74
67
|
const computedClearable = clearable && !!value;
|
|
@@ -117,7 +110,7 @@ var init_TextArea = __esmMin(() => {
|
|
|
117
110
|
placeholder,
|
|
118
111
|
readOnly: !!readOnly,
|
|
119
112
|
ref: textAreaRef,
|
|
120
|
-
rows: rows === "auto" ?
|
|
113
|
+
rows: rows === "auto" ? AUTO_ROWS : rows,
|
|
121
114
|
style: _objectSpread2(_objectSpread2({}, assignInlineVars({ [paddingRightVar]: `calc(${defaultPadding} + ${spaceForClearButton} + ${spaceForStateIcon} + ${gapBetweenButtons} + ${gapButtonsContent}) ` })), style),
|
|
122
115
|
tabIndex,
|
|
123
116
|
value
|
|
@@ -15,15 +15,12 @@ export declare const textAreaStyle: {
|
|
|
15
15
|
size: {
|
|
16
16
|
small: {
|
|
17
17
|
fontSize: `var(--${string})`;
|
|
18
|
-
minHeight: `var(--${string})`;
|
|
19
18
|
};
|
|
20
19
|
medium: {
|
|
21
20
|
fontSize: `var(--${string})`;
|
|
22
|
-
minHeight: `var(--${string})`;
|
|
23
21
|
};
|
|
24
22
|
large: {
|
|
25
23
|
fontSize: `var(--${string})`;
|
|
26
|
-
minHeight: `var(--${string})`;
|
|
27
24
|
};
|
|
28
25
|
};
|
|
29
26
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/styles.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,oBAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/styles.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,oBAAc,CAAA;AA+E1C,eAAO,MAAM,aAAa;;;;YAvBpB,IAAI;gBACF,WAAW;;;;YAIb,IAAI;gBACF,WAAW;;;;YAIb,KAAK;gBACH,QAAQ;;YAEV,MAAM;gBACJ,QAAQ;;YAEV,KAAK;gBACH,QAAQ;;;;;CAUf,CAAA"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Stack, init_Stack } from "../Stack/index.js";
|
|
5
5
|
import { Text, init_Text } from "../Text/index.js";
|
|
6
6
|
import { hasHelperText, init_hasHelperText } from "../../helpers/hasHelperText.js";
|
|
7
7
|
import { Description, init_Description } from "../Description/index.js";
|
|
8
8
|
import { Label, init_Label } from "../Label/index.js";
|
|
9
|
+
import { init_styles_css, timeInputStyle } from "./styles.css.js";
|
|
9
10
|
import { DEFAULT_DATE, DEFAULT_PLACEHOLDER, TIME_KEYS, init_constants } from "./constants.js";
|
|
10
11
|
import { canConcat, format, getLastTypedChar, getValueByType, init_helpers, isAOrP, isCompleteHour, isNumber, setValueByType } from "./helpers.js";
|
|
11
12
|
import { RightIcon, init_RightIcon } from "./RightIcon.js";
|
|
12
|
-
import { init_styles_css, timeInputStyle } from "./styles.css.js";
|
|
13
13
|
import { useEffect, useId, useMemo, useRef, useState } from "react";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { CloseButton, init_CloseButton } from "./components/CloseButton.js";
|
|
5
5
|
import { Content, init_Content } from "./components/Content.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
|
+
import _objectWithoutProperties, { init_objectWithoutProperties } from "../../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectWithoutProperties.js";
|
|
5
5
|
import { Button, init_Button as init_Button$1 } from "../../Button/index.js";
|
|
6
6
|
import { init_styles_css, toasterStyle } from "../styles.css.js";
|
|
7
7
|
import { cn } from "@ultraviolet/utils";
|
|
@@ -16,8 +16,7 @@ var init_Button = __esmMin(() => {
|
|
|
16
16
|
init_objectSpread2();
|
|
17
17
|
_excluded = ["variant", "className"];
|
|
18
18
|
ToastButton = (_ref) => {
|
|
19
|
-
let { variant, className } = _ref;
|
|
20
|
-
let props = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
let { variant, className } = _ref, props = _objectWithoutProperties(_ref, _excluded);
|
|
21
20
|
if (variant === "ghost") return /* @__PURE__ */ jsx(Button, _objectSpread2(_objectSpread2({ className: cn(className, toasterStyle.button) }, props), {}, {
|
|
22
21
|
size: "xsmall",
|
|
23
22
|
variant
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { __esmMin, __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
-
import
|
|
3
|
+
import _objectSpread2, { init_objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectSpread2.js";
|
|
4
4
|
import { Link, init_Link as init_Link$1 } from "../../Link/index.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import _objectDestructuringEmpty, { init_objectDestructuringEmpty } from "../../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/objectDestructuringEmpty.js";
|
|
6
|
+
import _extends, { init_extends } from "../../../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/extends.js";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/Toaster/components/Link.tsx
|
|
@@ -9,6 +9,8 @@ var Toast;
|
|
|
9
9
|
var init_Toaster = __esmMin(() => {
|
|
10
10
|
init_Button();
|
|
11
11
|
init_Link();
|
|
12
|
+
init_Toaster$1();
|
|
13
|
+
init_ToasterContainer();
|
|
12
14
|
Toast = {
|
|
13
15
|
Button: ToastButton,
|
|
14
16
|
Link: ToastLink
|
|
@@ -17,4 +19,4 @@ var init_Toaster = __esmMin(() => {
|
|
|
17
19
|
|
|
18
20
|
//#endregion
|
|
19
21
|
init_Toaster();
|
|
20
|
-
export { Toast, init_Toaster };
|
|
22
|
+
export { Toast, ToastContainer, init_Toaster, toast };
|
|
@@ -5,9 +5,9 @@ import { Text, init_Text } from "../Text/index.js";
|
|
|
5
5
|
import { hasHelperText, init_hasHelperText } from "../../helpers/hasHelperText.js";
|
|
6
6
|
import { Description, init_Description } from "../Description/index.js";
|
|
7
7
|
import { Label, init_Label } from "../Label/index.js";
|
|
8
|
+
import { init_styles_css, toggleGroupStyle } from "./styles.css.js";
|
|
8
9
|
import { ToggleGroupContext, init_Context } from "./Context.js";
|
|
9
10
|
import { ToggleGroupToggle, init_SingleToggle } from "./SingleToggle.js";
|
|
10
|
-
import { init_styles_css, toggleGroupStyle } from "./styles.css.js";
|
|
11
11
|
import { useId, useMemo } from "react";
|
|
12
12
|
import { cn } from "@ultraviolet/utils";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|