@lolmath/ui 6.2.0 → 6.3.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/es/index.css +28 -10
- package/dist/es/index.d.ts +6 -3
- package/dist/es/index.js +37 -4
- package/dist/es/index.js.map +1 -1
- package/dist/lib/index.css +28 -10
- package/dist/lib/index.d.ts +6 -3
- package/dist/lib/index.js +37 -4
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/lib/index.css
CHANGED
|
@@ -1245,9 +1245,9 @@
|
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
|
-
/* src/components/menu.module.css?css_virtual&hash=
|
|
1248
|
+
/* src/components/menu/menu.module.css?css_virtual&hash=740d4 */
|
|
1249
1249
|
@layer lol {
|
|
1250
|
-
.
|
|
1250
|
+
.menu_c1735 {
|
|
1251
1251
|
box-sizing: border-box;
|
|
1252
1252
|
overflow: auto;
|
|
1253
1253
|
min-width: 150px;
|
|
@@ -1258,7 +1258,7 @@
|
|
|
1258
1258
|
border: 2px solid transparent;
|
|
1259
1259
|
font-family: var(--lol-font-family-spiegel);
|
|
1260
1260
|
}
|
|
1261
|
-
.
|
|
1261
|
+
.item_c1735 {
|
|
1262
1262
|
padding: 0.375rem 0.5rem;
|
|
1263
1263
|
outline: none;
|
|
1264
1264
|
font-size: var(--lol-font-size-sm);
|
|
@@ -1267,29 +1267,47 @@
|
|
|
1267
1267
|
letter-spacing: var(--lol-letter-spacing-sm);
|
|
1268
1268
|
color: var(--lol-color-gold-300);
|
|
1269
1269
|
}
|
|
1270
|
-
.
|
|
1270
|
+
.item_c1735[data-disabled] {
|
|
1271
1271
|
color: var(--lol-color-grey-150);
|
|
1272
1272
|
}
|
|
1273
|
-
.
|
|
1274
|
-
.
|
|
1273
|
+
.item_c1735[data-hovered],
|
|
1274
|
+
.item_c1735[data-focus-visible] {
|
|
1275
1275
|
background: var(--lol-color-grey-300);
|
|
1276
1276
|
color: var(--lol-color-gold-100);
|
|
1277
1277
|
}
|
|
1278
|
-
.
|
|
1278
|
+
.item_c1735[data-pressed] {
|
|
1279
1279
|
color: var(--lol-color-gold-300);
|
|
1280
1280
|
}
|
|
1281
|
-
.
|
|
1281
|
+
.item_c1735[data-selection-mode] {
|
|
1282
1282
|
padding-right: 2rem;
|
|
1283
1283
|
}
|
|
1284
|
-
.
|
|
1284
|
+
.item_c1735[data-selected] {
|
|
1285
1285
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAALCAYAAABPhbxiAAAAsElEQVR42pTQXQoBURTA8ZmbdxuxAi/WgfLmQb4pYgMi36QUJUuxBIvw7FEi/qfOrds0NPfW7+We85+mG95v18DjhGjglPKMNqjibTyilUYTbE3CaIE65ujLZZJQlptYomsvJUyjp1+Oi1pYo+MOjA7GmEWiKdrY6c7HHcqrjpDRpQeGGslv7VGLRjZ8Ii9PjAFyyOKISlxkQzkvFDUu4Izyr8gNA41KuODwL5LzFWAAUJ8mTIVblvcAAAAASUVORK5CYII=);
|
|
1286
1286
|
background-position: right 0.5rem center;
|
|
1287
1287
|
background-repeat: no-repeat;
|
|
1288
1288
|
}
|
|
1289
|
-
.
|
|
1289
|
+
.item_c1735[aria-haspopup] {
|
|
1290
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAH5QTFRFAAAA8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS8ObS0Xa8KQAAACp0Uk5TABq/MRLO/+oKqeQkCy8NpOE2Ca4mBrzfBbbbIAeo3iOeMrCjE9TmLR7Bzkf64wAAAH1JREFUeJw9zrEKwkAQhOF/yAlyBiHhlBQWFha+/9tYyaERBEUhBhtPPPA22327CzMCJCX+I3CZnzRxnm9Oo5E6ZVeDkaXeeD2MtBrw7mZkpSfNazR2uhPUF250zZtYnutwoauOFrQ+E2axBLXNCb/orcZOcavDVJK9vkX8ALB9HQ/tuMKnAAAAAElFTkSuQmCC);
|
|
1291
|
+
background-size: 12px;
|
|
1292
|
+
background-position: right 0.5rem center;
|
|
1293
|
+
background-repeat: no-repeat;
|
|
1294
|
+
}
|
|
1295
|
+
.popover_c1735 {
|
|
1290
1296
|
display: flex;
|
|
1291
1297
|
flex-direction: column;
|
|
1292
1298
|
}
|
|
1299
|
+
.section_c1735:not(:first-child) {
|
|
1300
|
+
margin-top: 0.1rem;
|
|
1301
|
+
}
|
|
1302
|
+
.header_c1735 {
|
|
1303
|
+
padding: 0.5rem 0.5rem 0.2rem 0.5rem;
|
|
1304
|
+
font-size: var(--lol-font-size-sm);
|
|
1305
|
+
}
|
|
1306
|
+
.separator_c1735 {
|
|
1307
|
+
height: 1px;
|
|
1308
|
+
background: rgb(from var(--lol-color-gold-100) r g b / 0.25);
|
|
1309
|
+
margin: 0.4rem 0.5rem;
|
|
1310
|
+
}
|
|
1293
1311
|
}
|
|
1294
1312
|
|
|
1295
1313
|
/* src/components/select/multiple-select.module.css?css_virtual&hash=2f6cf */
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_aria_components from 'react-aria-components';
|
|
2
|
-
import { ButtonProps as ButtonProps$1, DisclosureProps, DisclosurePanelProps, BreadcrumbsProps, BreadcrumbProps, LinkProps, CheckboxProps, HeadingProps as HeadingProps$1, ModalOverlayProps, DialogProps, NumberFieldProps, Input, Group, ProgressBarProps as ProgressBarProps$1, RadioGroupProps, RadioProps, SearchFieldProps, PopoverProps, ListBoxProps, ListBoxItemProps, SliderProps, SliderTrackProps, SliderThumbProps, SliderTrackRenderProps, SliderOutputProps, SwitchProps, TabListProps, TabProps, TabPanelProps, TextFieldProps, TextAreaProps, InputProps, ToggleButtonProps as ToggleButtonProps$1, LabelProps as LabelProps$1, MenuTrigger as MenuTrigger$1, MenuProps, MenuItemProps, ComboBoxProps, TagProps } from 'react-aria-components';
|
|
3
|
-
export { Autocomplete, Dialog, DialogTrigger, Key, MenuItemProps, MenuProps, RouterProvider, Select, SelectValue, Selection, Popover as UnstyledPopover, useFilter } from 'react-aria-components';
|
|
2
|
+
import { ButtonProps as ButtonProps$1, DisclosureProps, DisclosurePanelProps, BreadcrumbsProps, BreadcrumbProps, LinkProps, CheckboxProps, HeadingProps as HeadingProps$1, ModalOverlayProps, DialogProps, NumberFieldProps, Input, Group, ProgressBarProps as ProgressBarProps$1, RadioGroupProps, RadioProps, SearchFieldProps, PopoverProps, ListBoxProps, ListBoxItemProps, SliderProps, SliderTrackProps, SliderThumbProps, SliderTrackRenderProps, SliderOutputProps, SwitchProps, TabListProps, TabProps, TabPanelProps, TextFieldProps, TextAreaProps, InputProps, ToggleButtonProps as ToggleButtonProps$1, LabelProps as LabelProps$1, MenuTrigger as MenuTrigger$1, MenuProps, MenuItemProps, MenuSectionProps, Header, SeparatorProps, ComboBoxProps, TagProps } from 'react-aria-components';
|
|
3
|
+
export { Autocomplete, Collection, Dialog, DialogTrigger, Key, MenuItemProps, MenuProps, RouterProvider, Select, SelectValue, Selection, Popover as UnstyledPopover, useFilter } from 'react-aria-components';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import react__default, { Ref, ComponentProps, JSX } from 'react';
|
|
@@ -493,6 +493,9 @@ declare const SubmenuTrigger: (props: react_aria_components.SubmenuTriggerProps
|
|
|
493
493
|
declare function Menu<T extends object>({ className, ...props }: MenuProps<T>): react_jsx_runtime.JSX.Element;
|
|
494
494
|
declare function MenuItem<T extends object>({ className, ...props }: MenuItemProps<T>): react_jsx_runtime.JSX.Element;
|
|
495
495
|
declare function MenuPopover({ className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
496
|
+
declare function MenuSection<T extends object>({ className, ...props }: MenuSectionProps<T>): react_jsx_runtime.JSX.Element;
|
|
497
|
+
declare function MenuHeader({ className, ...props }: ComponentProps<typeof Header>): react_jsx_runtime.JSX.Element;
|
|
498
|
+
declare function MenuSeparator({ className, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
496
499
|
|
|
497
500
|
interface SelectedKey {
|
|
498
501
|
id: Key;
|
|
@@ -513,4 +516,4 @@ declare function MultipleSelect<T extends SelectedKey>({ children, items, select
|
|
|
513
516
|
|
|
514
517
|
declare function Tag({ children, className, ...props }: TagProps): react_jsx_runtime.JSX.Element;
|
|
515
518
|
|
|
516
|
-
export { Breadcrumb, Breadcrumbs, Button, ButtonLink, type ButtonPreset, type ButtonShape, type ButtonSize, Checkbox, DialogButtons, DialogHeading, Disclosure, DisclosureButton, DisclosureGroup, DisclosurePanel, Divider, Heading, type HeadingColor, type HeadingElement, Label, Menu, MenuItem, MenuPopover, MenuTrigger, Modal, MultipleSelect, NumberField, Popover, ProgressBar, Radio, RadioGroup, SearchField, SelectButton, SelectListBox, SelectListBoxItem, SelectPopover, type SelectedKey, Slider, SliderOutput, Sonner, type SonnerProps, Spinner, SubmenuTrigger, Switch, Tab, TabList, TabPanel, Tabs, Tag, Text, TextArea, type TextColor, type TextElement, TextField, type TextPreset, type ToastVariant, ToggleButton, type ToggleButtonPreset, _Button, _ButtonLink, button, heading, sonner, text, textField };
|
|
519
|
+
export { Breadcrumb, Breadcrumbs, Button, ButtonLink, type ButtonPreset, type ButtonShape, type ButtonSize, Checkbox, DialogButtons, DialogHeading, Disclosure, DisclosureButton, DisclosureGroup, DisclosurePanel, Divider, Heading, type HeadingColor, type HeadingElement, Label, Menu, MenuHeader, MenuItem, MenuPopover, MenuSection, MenuSeparator, MenuTrigger, Modal, MultipleSelect, NumberField, Popover, ProgressBar, Radio, RadioGroup, SearchField, SelectButton, SelectListBox, SelectListBoxItem, SelectPopover, type SelectedKey, Slider, SliderOutput, Sonner, type SonnerProps, Spinner, SubmenuTrigger, Switch, Tab, TabList, TabPanel, Tabs, Tag, Text, TextArea, type TextColor, type TextElement, TextField, type TextPreset, type ToastVariant, ToggleButton, type ToggleButtonPreset, _Button, _ButtonLink, button, heading, sonner, text, textField };
|
package/dist/lib/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(src_exports, {
|
|
|
36
36
|
Button: () => Button2,
|
|
37
37
|
ButtonLink: () => ButtonLink,
|
|
38
38
|
Checkbox: () => Checkbox,
|
|
39
|
+
Collection: () => import_react_aria_components25.Collection,
|
|
39
40
|
Dialog: () => import_react_aria_components25.Dialog,
|
|
40
41
|
DialogButtons: () => DialogButtons,
|
|
41
42
|
DialogHeading: () => DialogHeading,
|
|
@@ -48,8 +49,11 @@ __export(src_exports, {
|
|
|
48
49
|
Heading: () => Heading,
|
|
49
50
|
Label: () => Label2,
|
|
50
51
|
Menu: () => Menu,
|
|
52
|
+
MenuHeader: () => MenuHeader,
|
|
51
53
|
MenuItem: () => MenuItem,
|
|
52
54
|
MenuPopover: () => MenuPopover,
|
|
55
|
+
MenuSection: () => MenuSection,
|
|
56
|
+
MenuSeparator: () => MenuSeparator,
|
|
53
57
|
MenuTrigger: () => MenuTrigger,
|
|
54
58
|
Modal: () => Modal,
|
|
55
59
|
MultipleSelect: () => MultipleSelect,
|
|
@@ -1364,14 +1368,14 @@ function Popover({ children, className, ...props }) {
|
|
|
1364
1368
|
);
|
|
1365
1369
|
}
|
|
1366
1370
|
|
|
1367
|
-
// src/components/menu.tsx
|
|
1371
|
+
// src/components/menu/menu.tsx
|
|
1368
1372
|
var import_cva21 = require("cva");
|
|
1369
1373
|
var import_react_aria_components21 = require("react-aria-components");
|
|
1370
1374
|
|
|
1371
|
-
// src/components/menu.module.css
|
|
1372
|
-
var menu_default = { "menu": "
|
|
1375
|
+
// src/components/menu/menu.module.css
|
|
1376
|
+
var menu_default = { "menu": "menu_c1735", "item": "item_c1735", "popover": "popover_c1735", "section": "section_c1735", "header": "header_c1735", "separator": "separator_c1735" };
|
|
1373
1377
|
|
|
1374
|
-
// src/components/menu.tsx
|
|
1378
|
+
// src/components/menu/menu.tsx
|
|
1375
1379
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1376
1380
|
var MenuTrigger = import_react_aria_components21.MenuTrigger;
|
|
1377
1381
|
var SubmenuTrigger = import_react_aria_components21.SubmenuTrigger;
|
|
@@ -1405,6 +1409,31 @@ function MenuPopover({ className, ...props }) {
|
|
|
1405
1409
|
}
|
|
1406
1410
|
);
|
|
1407
1411
|
}
|
|
1412
|
+
function MenuSection({
|
|
1413
|
+
className,
|
|
1414
|
+
...props
|
|
1415
|
+
}) {
|
|
1416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components21.MenuSection, { ...props, className: (0, import_cva21.cx)(className, menu_default.section) });
|
|
1417
|
+
}
|
|
1418
|
+
function MenuHeader({
|
|
1419
|
+
className,
|
|
1420
|
+
...props
|
|
1421
|
+
}) {
|
|
1422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1423
|
+
import_react_aria_components21.Header,
|
|
1424
|
+
{
|
|
1425
|
+
...props,
|
|
1426
|
+
className: heading({
|
|
1427
|
+
className: (0, import_cva21.cx)(className, menu_default.header),
|
|
1428
|
+
color: "gold100",
|
|
1429
|
+
preset: "h5"
|
|
1430
|
+
})
|
|
1431
|
+
}
|
|
1432
|
+
);
|
|
1433
|
+
}
|
|
1434
|
+
function MenuSeparator({ className, ...props }) {
|
|
1435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components21.Separator, { ...props, className: (0, import_cva21.cx)(className, menu_default.separator) });
|
|
1436
|
+
}
|
|
1408
1437
|
|
|
1409
1438
|
// src/components/select/multiple-select.tsx
|
|
1410
1439
|
var import_cva22 = require("cva");
|
|
@@ -1654,6 +1683,7 @@ var import_react_aria_components24 = require("react-aria-components");
|
|
|
1654
1683
|
Button,
|
|
1655
1684
|
ButtonLink,
|
|
1656
1685
|
Checkbox,
|
|
1686
|
+
Collection,
|
|
1657
1687
|
Dialog,
|
|
1658
1688
|
DialogButtons,
|
|
1659
1689
|
DialogHeading,
|
|
@@ -1666,8 +1696,11 @@ var import_react_aria_components24 = require("react-aria-components");
|
|
|
1666
1696
|
Heading,
|
|
1667
1697
|
Label,
|
|
1668
1698
|
Menu,
|
|
1699
|
+
MenuHeader,
|
|
1669
1700
|
MenuItem,
|
|
1670
1701
|
MenuPopover,
|
|
1702
|
+
MenuSection,
|
|
1703
|
+
MenuSeparator,
|
|
1671
1704
|
MenuTrigger,
|
|
1672
1705
|
Modal,
|
|
1673
1706
|
MultipleSelect,
|