@proyecto-viviana/solidaria-components 0.2.1 → 0.2.3
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/Color.d.ts +2 -6
- package/dist/Color.d.ts.map +1 -1
- package/dist/ComboBox.d.ts +3 -3
- package/dist/ComboBox.d.ts.map +1 -1
- package/dist/GridList.d.ts +2 -2
- package/dist/GridList.d.ts.map +1 -1
- package/dist/ListBox.d.ts +5 -5
- package/dist/ListBox.d.ts.map +1 -1
- package/dist/Menu.d.ts +3 -3
- package/dist/Menu.d.ts.map +1 -1
- package/dist/Select.d.ts +3 -3
- package/dist/Select.d.ts.map +1 -1
- package/dist/Table.d.ts +2 -2
- package/dist/Table.d.ts.map +1 -1
- package/dist/Tabs.d.ts +1 -1
- package/dist/Tabs.d.ts.map +1 -1
- package/dist/index.js +56 -56
- package/dist/index.js.map +2 -2
- package/dist/index.ssr.js +56 -56
- package/dist/index.ssr.js.map +2 -2
- package/package.json +10 -8
- package/src/Autocomplete.tsx +174 -0
- package/src/Breadcrumbs.tsx +264 -0
- package/src/Button.tsx +238 -0
- package/src/Calendar.tsx +471 -0
- package/src/Checkbox.tsx +387 -0
- package/src/Color.tsx +1370 -0
- package/src/ComboBox.tsx +824 -0
- package/src/DateField.tsx +337 -0
- package/src/DatePicker.tsx +367 -0
- package/src/Dialog.tsx +262 -0
- package/src/Disclosure.tsx +439 -0
- package/src/GridList.tsx +511 -0
- package/src/Landmark.tsx +203 -0
- package/src/Link.tsx +201 -0
- package/src/ListBox.tsx +346 -0
- package/src/Menu.tsx +544 -0
- package/src/Meter.tsx +157 -0
- package/src/Modal.tsx +433 -0
- package/src/NumberField.tsx +542 -0
- package/src/Popover.tsx +540 -0
- package/src/ProgressBar.tsx +162 -0
- package/src/RadioGroup.tsx +356 -0
- package/src/RangeCalendar.tsx +462 -0
- package/src/SearchField.tsx +479 -0
- package/src/Select.tsx +734 -0
- package/src/Separator.tsx +130 -0
- package/src/Slider.tsx +500 -0
- package/src/Switch.tsx +213 -0
- package/src/Table.tsx +857 -0
- package/src/Tabs.tsx +552 -0
- package/src/TagGroup.tsx +421 -0
- package/src/TextField.tsx +271 -0
- package/src/TimeField.tsx +455 -0
- package/src/Toast.tsx +503 -0
- package/src/Toolbar.tsx +160 -0
- package/src/Tooltip.tsx +423 -0
- package/src/Tree.tsx +551 -0
- package/src/VisuallyHidden.tsx +60 -0
- package/src/contexts.ts +74 -0
- package/src/index.ts +620 -0
- package/src/utils.tsx +329 -0
package/dist/index.ssr.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/utils.tsx
|
|
1
|
+
// packages/solidaria-components/src/utils.tsx
|
|
2
2
|
import { createComponent as _$createComponent } from "solid-js/web";
|
|
3
3
|
import { createContext, useContext, createMemo, createSignal, onMount, Show } from "solid-js";
|
|
4
4
|
import { isServer } from "solid-js/web";
|
|
@@ -81,7 +81,7 @@ function useIsHydrated() {
|
|
|
81
81
|
return isHydrated;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
// src/VisuallyHidden.tsx
|
|
84
|
+
// packages/solidaria-components/src/VisuallyHidden.tsx
|
|
85
85
|
import { createComponent as _$createComponent2 } from "solid-js/web";
|
|
86
86
|
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
87
87
|
import { splitProps } from "solid-js";
|
|
@@ -113,14 +113,14 @@ function VisuallyHidden(props) {
|
|
|
113
113
|
}));
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
// src/Button.tsx
|
|
116
|
+
// packages/solidaria-components/src/Button.tsx
|
|
117
117
|
import { ssrElement as _$ssrElement } from "solid-js/web";
|
|
118
118
|
import { mergeProps as _$mergeProps2 } from "solid-js/web";
|
|
119
119
|
import { escape as _$escape } from "solid-js/web";
|
|
120
120
|
import { createContext as createContext3, createMemo as createMemo2, splitProps as splitProps2, useContext as useContext3 } from "solid-js";
|
|
121
121
|
import { createButton, createFocusRing, createHover } from "@proyecto-viviana/solidaria";
|
|
122
122
|
|
|
123
|
-
// src/contexts.ts
|
|
123
|
+
// packages/solidaria-components/src/contexts.ts
|
|
124
124
|
import { createContext as createContext2, useContext as useContext2 } from "solid-js";
|
|
125
125
|
var OverlayTriggerStateContext = createContext2(null);
|
|
126
126
|
function useOverlayTriggerState() {
|
|
@@ -135,7 +135,7 @@ function usePopoverTrigger() {
|
|
|
135
135
|
return useContext2(PopoverTriggerContext);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
// src/Button.tsx
|
|
138
|
+
// packages/solidaria-components/src/Button.tsx
|
|
139
139
|
var ButtonContext = createContext3(null);
|
|
140
140
|
function Button(props) {
|
|
141
141
|
const [local, ariaProps] = splitProps2(props, ["children", "class", "style", "slot"]);
|
|
@@ -258,7 +258,7 @@ function Button(props) {
|
|
|
258
258
|
}), _$escape(renderProps.renderChildren()), false);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
// src/Switch.tsx
|
|
261
|
+
// packages/solidaria-components/src/Switch.tsx
|
|
262
262
|
import { escape as _$escape2 } from "solid-js/web";
|
|
263
263
|
import { createComponent as _$createComponent3 } from "solid-js/web";
|
|
264
264
|
import { ssrElement as _$ssrElement2 } from "solid-js/web";
|
|
@@ -388,7 +388,7 @@ function ToggleSwitch(props) {
|
|
|
388
388
|
})), _$escape2(renderProps.renderChildren())], false);
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
// src/Checkbox.tsx
|
|
391
|
+
// packages/solidaria-components/src/Checkbox.tsx
|
|
392
392
|
import { createComponent as _$createComponent4 } from "solid-js/web";
|
|
393
393
|
import { ssrElement as _$ssrElement3 } from "solid-js/web";
|
|
394
394
|
import { mergeProps as _$mergeProps4 } from "solid-js/web";
|
|
@@ -638,7 +638,7 @@ function Checkbox(props) {
|
|
|
638
638
|
})), _$escape3(renderProps.renderChildren())], false);
|
|
639
639
|
}
|
|
640
640
|
|
|
641
|
-
// src/RadioGroup.tsx
|
|
641
|
+
// packages/solidaria-components/src/RadioGroup.tsx
|
|
642
642
|
import { createComponent as _$createComponent5 } from "solid-js/web";
|
|
643
643
|
import { ssrElement as _$ssrElement4 } from "solid-js/web";
|
|
644
644
|
import { mergeProps as _$mergeProps5 } from "solid-js/web";
|
|
@@ -867,7 +867,7 @@ function Radio(props) {
|
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
869
|
|
|
870
|
-
// src/TextField.tsx
|
|
870
|
+
// packages/solidaria-components/src/TextField.tsx
|
|
871
871
|
import { createComponent as _$createComponent6 } from "solid-js/web";
|
|
872
872
|
import { mergeProps as _$mergeProps6 } from "solid-js/web";
|
|
873
873
|
import { ssrElement as _$ssrElement5 } from "solid-js/web";
|
|
@@ -1034,7 +1034,7 @@ function TextField(props) {
|
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
|
-
// src/Link.tsx
|
|
1037
|
+
// packages/solidaria-components/src/Link.tsx
|
|
1038
1038
|
import { createComponent as _$createComponent7 } from "solid-js/web";
|
|
1039
1039
|
import { mergeProps as _$mergeProps7 } from "solid-js/web";
|
|
1040
1040
|
import { createContext as createContext8, createMemo as createMemo7, splitProps as splitProps7 } from "solid-js";
|
|
@@ -1203,7 +1203,7 @@ function Link(props) {
|
|
|
1203
1203
|
}));
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
|
-
// src/ProgressBar.tsx
|
|
1206
|
+
// packages/solidaria-components/src/ProgressBar.tsx
|
|
1207
1207
|
import { ssrElement as _$ssrElement6 } from "solid-js/web";
|
|
1208
1208
|
import { mergeProps as _$mergeProps8 } from "solid-js/web";
|
|
1209
1209
|
import { escape as _$escape6 } from "solid-js/web";
|
|
@@ -1291,7 +1291,7 @@ function ProgressBar(props) {
|
|
|
1291
1291
|
}), _$escape6(renderProps.renderChildren()), false);
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
-
// src/Separator.tsx
|
|
1294
|
+
// packages/solidaria-components/src/Separator.tsx
|
|
1295
1295
|
import { createComponent as _$createComponent8 } from "solid-js/web";
|
|
1296
1296
|
import { mergeProps as _$mergeProps9 } from "solid-js/web";
|
|
1297
1297
|
import { createContext as createContext10, createMemo as createMemo9, splitProps as splitProps9 } from "solid-js";
|
|
@@ -1361,7 +1361,7 @@ function Separator(props) {
|
|
|
1361
1361
|
}));
|
|
1362
1362
|
}
|
|
1363
1363
|
|
|
1364
|
-
// src/Toolbar.tsx
|
|
1364
|
+
// packages/solidaria-components/src/Toolbar.tsx
|
|
1365
1365
|
import { ssrElement as _$ssrElement7 } from "solid-js/web";
|
|
1366
1366
|
import { mergeProps as _$mergeProps10 } from "solid-js/web";
|
|
1367
1367
|
import { escape as _$escape7 } from "solid-js/web";
|
|
@@ -1429,7 +1429,7 @@ function Toolbar(props) {
|
|
|
1429
1429
|
}), _$escape7(resolvedChildren()), false);
|
|
1430
1430
|
}
|
|
1431
1431
|
|
|
1432
|
-
// src/Autocomplete.tsx
|
|
1432
|
+
// packages/solidaria-components/src/Autocomplete.tsx
|
|
1433
1433
|
import { createComponent as _$createComponent9 } from "solid-js/web";
|
|
1434
1434
|
import { createContext as createContext12, useContext as useContext8, createMemo as createMemo11, splitProps as splitProps11 } from "solid-js";
|
|
1435
1435
|
import { createAutocomplete } from "@proyecto-viviana/solidaria";
|
|
@@ -1491,7 +1491,7 @@ function Autocomplete(props) {
|
|
|
1491
1491
|
});
|
|
1492
1492
|
}
|
|
1493
1493
|
|
|
1494
|
-
// src/ListBox.tsx
|
|
1494
|
+
// packages/solidaria-components/src/ListBox.tsx
|
|
1495
1495
|
import { createComponent as _$createComponent10 } from "solid-js/web";
|
|
1496
1496
|
import { ssrElement as _$ssrElement8 } from "solid-js/web";
|
|
1497
1497
|
import { mergeProps as _$mergeProps11 } from "solid-js/web";
|
|
@@ -1583,7 +1583,7 @@ function ListBox(props) {
|
|
|
1583
1583
|
} = focusProps;
|
|
1584
1584
|
return rest;
|
|
1585
1585
|
};
|
|
1586
|
-
const isEmpty = () =>
|
|
1586
|
+
const isEmpty = () => stateProps.items.length === 0;
|
|
1587
1587
|
return _$createComponent10(ListBoxContext.Provider, {
|
|
1588
1588
|
value: {
|
|
1589
1589
|
state
|
|
@@ -1613,9 +1613,9 @@ function ListBox(props) {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
}), isEmpty() && local.renderEmptyState ? _$escape8(local.renderEmptyState()) : _$escape8(_$createComponent10(For, {
|
|
1615
1615
|
get each() {
|
|
1616
|
-
return stateProps.items
|
|
1616
|
+
return stateProps.items;
|
|
1617
1617
|
},
|
|
1618
|
-
children: (item) =>
|
|
1618
|
+
children: (item) => props.children(item)
|
|
1619
1619
|
})), false);
|
|
1620
1620
|
}
|
|
1621
1621
|
});
|
|
@@ -1703,7 +1703,7 @@ function ListBoxOption(props) {
|
|
|
1703
1703
|
}
|
|
1704
1704
|
ListBox.Option = ListBoxOption;
|
|
1705
1705
|
|
|
1706
|
-
// src/Menu.tsx
|
|
1706
|
+
// packages/solidaria-components/src/Menu.tsx
|
|
1707
1707
|
import { ssrElement as _$ssrElement9 } from "solid-js/web";
|
|
1708
1708
|
import { mergeProps as _$mergeProps12 } from "solid-js/web";
|
|
1709
1709
|
import { escape as _$escape9 } from "solid-js/web";
|
|
@@ -1954,9 +1954,9 @@ function Menu(props) {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
}), _$escape9(_$createComponent11(For2, {
|
|
1956
1956
|
get each() {
|
|
1957
|
-
return stateProps.items
|
|
1957
|
+
return stateProps.items;
|
|
1958
1958
|
},
|
|
1959
|
-
children: (item) =>
|
|
1959
|
+
children: (item) => props.children?.(item)
|
|
1960
1960
|
})), false);
|
|
1961
1961
|
}
|
|
1962
1962
|
});
|
|
@@ -2067,7 +2067,7 @@ function MenuItem(props) {
|
|
|
2067
2067
|
}
|
|
2068
2068
|
Menu.Item = MenuItem;
|
|
2069
2069
|
|
|
2070
|
-
// src/Select.tsx
|
|
2070
|
+
// packages/solidaria-components/src/Select.tsx
|
|
2071
2071
|
import { ssrAttribute as _$ssrAttribute } from "solid-js/web";
|
|
2072
2072
|
import { mergeProps as _$mergeProps13 } from "solid-js/web";
|
|
2073
2073
|
import { ssrElement as _$ssrElement10 } from "solid-js/web";
|
|
@@ -2085,7 +2085,7 @@ function Select(props) {
|
|
|
2085
2085
|
const [local, stateProps, ariaProps] = splitProps14(props, ["class", "style", "slot"], ["items", "getKey", "getTextValue", "getDisabled", "disabledKeys", "selectedKey", "defaultSelectedKey", "onSelectionChange", "isOpen", "defaultOpen", "onOpenChange", "name"]);
|
|
2086
2086
|
const state = createSelectState({
|
|
2087
2087
|
get items() {
|
|
2088
|
-
return stateProps.items
|
|
2088
|
+
return stateProps.items;
|
|
2089
2089
|
},
|
|
2090
2090
|
get getKey() {
|
|
2091
2091
|
return stateProps.getKey;
|
|
@@ -2590,7 +2590,7 @@ Select.Value = SelectValue;
|
|
|
2590
2590
|
Select.ListBox = SelectListBox;
|
|
2591
2591
|
Select.Option = SelectOption;
|
|
2592
2592
|
|
|
2593
|
-
// src/Tabs.tsx
|
|
2593
|
+
// packages/solidaria-components/src/Tabs.tsx
|
|
2594
2594
|
import { ssrStyle as _$ssrStyle } from "solid-js/web";
|
|
2595
2595
|
import { ssrAttribute as _$ssrAttribute2 } from "solid-js/web";
|
|
2596
2596
|
import { ssr as _$ssr2 } from "solid-js/web";
|
|
@@ -2897,7 +2897,7 @@ Tabs.List = TabList;
|
|
|
2897
2897
|
Tabs.Tab = Tab;
|
|
2898
2898
|
Tabs.Panel = TabPanel;
|
|
2899
2899
|
|
|
2900
|
-
// src/Breadcrumbs.tsx
|
|
2900
|
+
// packages/solidaria-components/src/Breadcrumbs.tsx
|
|
2901
2901
|
import { ssrElement as _$ssrElement12 } from "solid-js/web";
|
|
2902
2902
|
import { mergeProps as _$mergeProps15 } from "solid-js/web";
|
|
2903
2903
|
import { ssr as _$ssr3 } from "solid-js/web";
|
|
@@ -3060,7 +3060,7 @@ function BreadcrumbItem(props) {
|
|
|
3060
3060
|
}
|
|
3061
3061
|
Breadcrumbs.Item = BreadcrumbItem;
|
|
3062
3062
|
|
|
3063
|
-
// src/NumberField.tsx
|
|
3063
|
+
// packages/solidaria-components/src/NumberField.tsx
|
|
3064
3064
|
import { createComponent as _$createComponent15 } from "solid-js/web";
|
|
3065
3065
|
import { ssrElement as _$ssrElement13 } from "solid-js/web";
|
|
3066
3066
|
import { mergeProps as _$mergeProps16 } from "solid-js/web";
|
|
@@ -3439,7 +3439,7 @@ NumberField.Input = NumberFieldInput;
|
|
|
3439
3439
|
NumberField.IncrementButton = NumberFieldIncrementButton;
|
|
3440
3440
|
NumberField.DecrementButton = NumberFieldDecrementButton;
|
|
3441
3441
|
|
|
3442
|
-
// src/SearchField.tsx
|
|
3442
|
+
// packages/solidaria-components/src/SearchField.tsx
|
|
3443
3443
|
import { createComponent as _$createComponent16 } from "solid-js/web";
|
|
3444
3444
|
import { ssrElement as _$ssrElement14 } from "solid-js/web";
|
|
3445
3445
|
import { mergeProps as _$mergeProps17 } from "solid-js/web";
|
|
@@ -3773,7 +3773,7 @@ SearchField.Label = SearchFieldLabel;
|
|
|
3773
3773
|
SearchField.Input = SearchFieldInput;
|
|
3774
3774
|
SearchField.ClearButton = SearchFieldClearButton;
|
|
3775
3775
|
|
|
3776
|
-
// src/Slider.tsx
|
|
3776
|
+
// packages/solidaria-components/src/Slider.tsx
|
|
3777
3777
|
import { mergeProps as _$mergeProps18 } from "solid-js/web";
|
|
3778
3778
|
import { createComponent as _$createComponent17 } from "solid-js/web";
|
|
3779
3779
|
import { ssrElement as _$ssrElement15 } from "solid-js/web";
|
|
@@ -4088,7 +4088,7 @@ Slider.Track = SliderTrack;
|
|
|
4088
4088
|
Slider.Thumb = SliderThumb;
|
|
4089
4089
|
Slider.Output = SliderOutput;
|
|
4090
4090
|
|
|
4091
|
-
// src/Tooltip.tsx
|
|
4091
|
+
// packages/solidaria-components/src/Tooltip.tsx
|
|
4092
4092
|
import { ssrElement as _$ssrElement16 } from "solid-js/web";
|
|
4093
4093
|
import { mergeProps as _$mergeProps19 } from "solid-js/web";
|
|
4094
4094
|
import { escape as _$escape16 } from "solid-js/web";
|
|
@@ -4336,7 +4336,7 @@ function TooltipContent(props) {
|
|
|
4336
4336
|
});
|
|
4337
4337
|
}
|
|
4338
4338
|
|
|
4339
|
-
// src/ComboBox.tsx
|
|
4339
|
+
// packages/solidaria-components/src/ComboBox.tsx
|
|
4340
4340
|
import { ssrElement as _$ssrElement17 } from "solid-js/web";
|
|
4341
4341
|
import { mergeProps as _$mergeProps20 } from "solid-js/web";
|
|
4342
4342
|
import { createComponent as _$createComponent19 } from "solid-js/web";
|
|
@@ -4355,7 +4355,7 @@ function ComboBox(props) {
|
|
|
4355
4355
|
let buttonRef = null;
|
|
4356
4356
|
const state = createComboBoxState({
|
|
4357
4357
|
get items() {
|
|
4358
|
-
return stateProps.items
|
|
4358
|
+
return stateProps.items;
|
|
4359
4359
|
},
|
|
4360
4360
|
get getKey() {
|
|
4361
4361
|
return stateProps.getKey;
|
|
@@ -4915,7 +4915,7 @@ ComboBox.Button = ComboBoxButton;
|
|
|
4915
4915
|
ComboBox.ListBox = ComboBoxListBox;
|
|
4916
4916
|
ComboBox.Option = ComboBoxOption;
|
|
4917
4917
|
|
|
4918
|
-
// src/Dialog.tsx
|
|
4918
|
+
// packages/solidaria-components/src/Dialog.tsx
|
|
4919
4919
|
import { ssr as _$ssr5 } from "solid-js/web";
|
|
4920
4920
|
import { ssrAttribute as _$ssrAttribute4 } from "solid-js/web";
|
|
4921
4921
|
import { ssrElement as _$ssrElement18 } from "solid-js/web";
|
|
@@ -5074,7 +5074,7 @@ function Heading(props) {
|
|
|
5074
5074
|
});
|
|
5075
5075
|
}
|
|
5076
5076
|
|
|
5077
|
-
// src/Modal.tsx
|
|
5077
|
+
// packages/solidaria-components/src/Modal.tsx
|
|
5078
5078
|
import { createComponent as _$createComponent21 } from "solid-js/web";
|
|
5079
5079
|
import { ssrElement as _$ssrElement19 } from "solid-js/web";
|
|
5080
5080
|
import { mergeProps as _$mergeProps22 } from "solid-js/web";
|
|
@@ -5314,7 +5314,7 @@ function ModalContent(props) {
|
|
|
5314
5314
|
});
|
|
5315
5315
|
}
|
|
5316
5316
|
|
|
5317
|
-
// src/Popover.tsx
|
|
5317
|
+
// packages/solidaria-components/src/Popover.tsx
|
|
5318
5318
|
import { ssr as _$ssr6 } from "solid-js/web";
|
|
5319
5319
|
import { ssrStyle as _$ssrStyle2 } from "solid-js/web";
|
|
5320
5320
|
import { ssrAttribute as _$ssrAttribute5 } from "solid-js/web";
|
|
@@ -5601,7 +5601,7 @@ function OverlayArrow(props) {
|
|
|
5601
5601
|
return _$ssr6(_tmpl$8, _$ssrAttribute5("class", _$escape20(props.class, true), false), _$ssrStyle2(props.style), _$ssrAttribute5("data-placement", _$escape20(placement(), true), false), _$escape20(resolveChildren()));
|
|
5602
5602
|
}
|
|
5603
5603
|
|
|
5604
|
-
// src/Toast.tsx
|
|
5604
|
+
// packages/solidaria-components/src/Toast.tsx
|
|
5605
5605
|
import { ssrStyleProperty as _$ssrStyleProperty2 } from "solid-js/web";
|
|
5606
5606
|
import { ssr as _$ssr7 } from "solid-js/web";
|
|
5607
5607
|
import { ssrStyle as _$ssrStyle3 } from "solid-js/web";
|
|
@@ -5892,7 +5892,7 @@ function DefaultToast(props) {
|
|
|
5892
5892
|
});
|
|
5893
5893
|
}
|
|
5894
5894
|
|
|
5895
|
-
// src/Disclosure.tsx
|
|
5895
|
+
// packages/solidaria-components/src/Disclosure.tsx
|
|
5896
5896
|
import { createComponent as _$createComponent24 } from "solid-js/web";
|
|
5897
5897
|
import { ssrElement as _$ssrElement22 } from "solid-js/web";
|
|
5898
5898
|
import { mergeProps as _$mergeProps25 } from "solid-js/web";
|
|
@@ -6115,7 +6115,7 @@ function DisclosurePanel(props) {
|
|
|
6115
6115
|
}), _$escape22(renderProps.renderChildren()), false);
|
|
6116
6116
|
}
|
|
6117
6117
|
|
|
6118
|
-
// src/Meter.tsx
|
|
6118
|
+
// packages/solidaria-components/src/Meter.tsx
|
|
6119
6119
|
import { ssrElement as _$ssrElement23 } from "solid-js/web";
|
|
6120
6120
|
import { mergeProps as _$mergeProps26 } from "solid-js/web";
|
|
6121
6121
|
import { escape as _$escape23 } from "solid-js/web";
|
|
@@ -6195,7 +6195,7 @@ function Meter(props) {
|
|
|
6195
6195
|
}), _$escape23(renderProps.renderChildren()), false);
|
|
6196
6196
|
}
|
|
6197
6197
|
|
|
6198
|
-
// src/TagGroup.tsx
|
|
6198
|
+
// packages/solidaria-components/src/TagGroup.tsx
|
|
6199
6199
|
import { ssrElement as _$ssrElement24 } from "solid-js/web";
|
|
6200
6200
|
import { mergeProps as _$mergeProps27 } from "solid-js/web";
|
|
6201
6201
|
import { createComponent as _$createComponent25 } from "solid-js/web";
|
|
@@ -6390,7 +6390,7 @@ function TagRemoveButton(props) {
|
|
|
6390
6390
|
return _$ssr8(_tmpl$26, _$ssrAttribute7("class", _$escape24(props.class, true) ?? "solidaria-TagRemoveButton", false), _$ssrStyle4(props.style), _$escape24(props.children) ?? "\xD7");
|
|
6391
6391
|
}
|
|
6392
6392
|
|
|
6393
|
-
// src/Calendar.tsx
|
|
6393
|
+
// packages/solidaria-components/src/Calendar.tsx
|
|
6394
6394
|
import { ssrStyle as _$ssrStyle5 } from "solid-js/web";
|
|
6395
6395
|
import { ssrAttribute as _$ssrAttribute8 } from "solid-js/web";
|
|
6396
6396
|
import { ssrElement as _$ssrElement25 } from "solid-js/web";
|
|
@@ -6599,7 +6599,7 @@ function CalendarCell(props) {
|
|
|
6599
6599
|
}), _$escape25(getChildren()), false);
|
|
6600
6600
|
}
|
|
6601
6601
|
|
|
6602
|
-
// src/RangeCalendar.tsx
|
|
6602
|
+
// packages/solidaria-components/src/RangeCalendar.tsx
|
|
6603
6603
|
import { ssrStyle as _$ssrStyle6 } from "solid-js/web";
|
|
6604
6604
|
import { ssrAttribute as _$ssrAttribute9 } from "solid-js/web";
|
|
6605
6605
|
import { ssrElement as _$ssrElement26 } from "solid-js/web";
|
|
@@ -6816,7 +6816,7 @@ function RangeCalendarCell(props) {
|
|
|
6816
6816
|
}), _$escape26(getChildren()), false);
|
|
6817
6817
|
}
|
|
6818
6818
|
|
|
6819
|
-
// src/DateField.tsx
|
|
6819
|
+
// packages/solidaria-components/src/DateField.tsx
|
|
6820
6820
|
import { ssrStyle as _$ssrStyle7 } from "solid-js/web";
|
|
6821
6821
|
import { ssrAttribute as _$ssrAttribute10 } from "solid-js/web";
|
|
6822
6822
|
import { ssrElement as _$ssrElement27 } from "solid-js/web";
|
|
@@ -6959,7 +6959,7 @@ function DateSegment(props) {
|
|
|
6959
6959
|
}), _$escape27(getChildren()), false);
|
|
6960
6960
|
}
|
|
6961
6961
|
|
|
6962
|
-
// src/TimeField.tsx
|
|
6962
|
+
// packages/solidaria-components/src/TimeField.tsx
|
|
6963
6963
|
import { ssrStyle as _$ssrStyle8 } from "solid-js/web";
|
|
6964
6964
|
import { ssrAttribute as _$ssrAttribute11 } from "solid-js/web";
|
|
6965
6965
|
import { ssrElement as _$ssrElement28 } from "solid-js/web";
|
|
@@ -7208,7 +7208,7 @@ function getTimeSegmentLabel(type) {
|
|
|
7208
7208
|
}
|
|
7209
7209
|
}
|
|
7210
7210
|
|
|
7211
|
-
// src/DatePicker.tsx
|
|
7211
|
+
// packages/solidaria-components/src/DatePicker.tsx
|
|
7212
7212
|
import { ssrElement as _$ssrElement29 } from "solid-js/web";
|
|
7213
7213
|
import { mergeProps as _$mergeProps32 } from "solid-js/web";
|
|
7214
7214
|
import { escape as _$escape29 } from "solid-js/web";
|
|
@@ -7382,7 +7382,7 @@ function DatePickerContent(props) {
|
|
|
7382
7382
|
});
|
|
7383
7383
|
}
|
|
7384
7384
|
|
|
7385
|
-
// src/Table.tsx
|
|
7385
|
+
// packages/solidaria-components/src/Table.tsx
|
|
7386
7386
|
import { ssr as _$ssr14 } from "solid-js/web";
|
|
7387
7387
|
import { createComponent as _$createComponent31 } from "solid-js/web";
|
|
7388
7388
|
import { ssrElement as _$ssrElement30 } from "solid-js/web";
|
|
@@ -7400,7 +7400,7 @@ function Table(props) {
|
|
|
7400
7400
|
const [ref, setRef] = createSignal12(null);
|
|
7401
7401
|
const collection = createMemo34(() => createTableCollection({
|
|
7402
7402
|
columns: stateProps.columns,
|
|
7403
|
-
rows: stateProps.items
|
|
7403
|
+
rows: stateProps.items,
|
|
7404
7404
|
getKey: stateProps.getKey,
|
|
7405
7405
|
getTextValue: stateProps.getTextValue,
|
|
7406
7406
|
showSelectionCheckboxes: stateProps.showSelectionCheckboxes ?? false
|
|
@@ -7438,7 +7438,7 @@ function Table(props) {
|
|
|
7438
7438
|
isFocusVisible: isFocusVisible(),
|
|
7439
7439
|
isDisabled: false,
|
|
7440
7440
|
// Tables don't have a global disabled state
|
|
7441
|
-
isEmpty:
|
|
7441
|
+
isEmpty: stateProps.items.length === 0
|
|
7442
7442
|
}));
|
|
7443
7443
|
const renderProps = useRenderProps({
|
|
7444
7444
|
children: props.children,
|
|
@@ -7496,7 +7496,7 @@ function Table(props) {
|
|
|
7496
7496
|
return isFocusVisible() || void 0;
|
|
7497
7497
|
},
|
|
7498
7498
|
get ["data-empty"]() {
|
|
7499
|
-
return
|
|
7499
|
+
return stateProps.items.length === 0 || void 0;
|
|
7500
7500
|
}
|
|
7501
7501
|
}), _$escape30(renderProps.renderChildren()), false);
|
|
7502
7502
|
}
|
|
@@ -7955,7 +7955,7 @@ Table.Cell = TableCell;
|
|
|
7955
7955
|
Table.SelectionCheckbox = TableSelectionCheckbox;
|
|
7956
7956
|
Table.SelectAllCheckbox = TableSelectAllCheckbox;
|
|
7957
7957
|
|
|
7958
|
-
// src/GridList.tsx
|
|
7958
|
+
// packages/solidaria-components/src/GridList.tsx
|
|
7959
7959
|
import { createComponent as _$createComponent32 } from "solid-js/web";
|
|
7960
7960
|
import { ssrElement as _$ssrElement31 } from "solid-js/web";
|
|
7961
7961
|
import { mergeProps as _$mergeProps34 } from "solid-js/web";
|
|
@@ -8037,7 +8037,7 @@ function buildGridCollection(items, getKey, getTextValue, getDisabled) {
|
|
|
8037
8037
|
function GridList(props) {
|
|
8038
8038
|
const [local, stateProps, ariaProps] = splitProps34(props, ["children", "class", "style", "slot", "renderEmptyState"], ["items", "getKey", "getTextValue", "getDisabled", "disabledKeys", "selectionMode", "selectedKeys", "defaultSelectedKeys", "onSelectionChange"]);
|
|
8039
8039
|
const [ref, setRef] = createSignal13(null);
|
|
8040
|
-
const collection = createMemo35(() => buildGridCollection(stateProps.items
|
|
8040
|
+
const collection = createMemo35(() => buildGridCollection(stateProps.items, stateProps.getKey, stateProps.getTextValue, stateProps.getDisabled));
|
|
8041
8041
|
const allDisabledKeys = createMemo35(() => {
|
|
8042
8042
|
const keys = /* @__PURE__ */ new Set();
|
|
8043
8043
|
if (stateProps.disabledKeys) {
|
|
@@ -8080,7 +8080,7 @@ function GridList(props) {
|
|
|
8080
8080
|
isFocused: state.isFocused || isFocused(),
|
|
8081
8081
|
isFocusVisible: isFocusVisible(),
|
|
8082
8082
|
isDisabled: ariaProps.isDisabled ?? false,
|
|
8083
|
-
isEmpty:
|
|
8083
|
+
isEmpty: stateProps.items.length === 0
|
|
8084
8084
|
}));
|
|
8085
8085
|
const renderProps = useRenderProps({
|
|
8086
8086
|
class: local.class,
|
|
@@ -8107,7 +8107,7 @@ function GridList(props) {
|
|
|
8107
8107
|
} = focusProps;
|
|
8108
8108
|
return rest;
|
|
8109
8109
|
};
|
|
8110
|
-
const isEmpty = () =>
|
|
8110
|
+
const isEmpty = () => stateProps.items.length === 0;
|
|
8111
8111
|
const contextValue = createMemo35(() => ({
|
|
8112
8112
|
state,
|
|
8113
8113
|
collection: collection(),
|
|
@@ -8142,9 +8142,9 @@ function GridList(props) {
|
|
|
8142
8142
|
}
|
|
8143
8143
|
}), isEmpty() && local.renderEmptyState ? _$escape31(local.renderEmptyState()) : _$escape31(_$createComponent32(For13, {
|
|
8144
8144
|
get each() {
|
|
8145
|
-
return stateProps.items
|
|
8145
|
+
return stateProps.items;
|
|
8146
8146
|
},
|
|
8147
|
-
children: (item) =>
|
|
8147
|
+
children: (item) => props.children(item)
|
|
8148
8148
|
})), false);
|
|
8149
8149
|
}
|
|
8150
8150
|
});
|
|
@@ -8270,7 +8270,7 @@ function GridListSelectionCheckbox(props) {
|
|
|
8270
8270
|
GridList.Item = GridListItem;
|
|
8271
8271
|
GridList.SelectionCheckbox = GridListSelectionCheckbox;
|
|
8272
8272
|
|
|
8273
|
-
// src/Tree.tsx
|
|
8273
|
+
// packages/solidaria-components/src/Tree.tsx
|
|
8274
8274
|
import { createComponent as _$createComponent33 } from "solid-js/web";
|
|
8275
8275
|
import { ssrElement as _$ssrElement32 } from "solid-js/web";
|
|
8276
8276
|
import { mergeProps as _$mergeProps35 } from "solid-js/web";
|
|
@@ -8604,7 +8604,7 @@ Tree.Item = TreeItem;
|
|
|
8604
8604
|
Tree.ExpandButton = TreeExpandButton;
|
|
8605
8605
|
Tree.SelectionCheckbox = TreeSelectionCheckbox;
|
|
8606
8606
|
|
|
8607
|
-
// src/Color.tsx
|
|
8607
|
+
// packages/solidaria-components/src/Color.tsx
|
|
8608
8608
|
import { mergeProps as _$mergeProps36 } from "solid-js/web";
|
|
8609
8609
|
import { createComponent as _$createComponent34 } from "solid-js/web";
|
|
8610
8610
|
import { ssrElement as _$ssrElement33 } from "solid-js/web";
|
|
@@ -9484,7 +9484,7 @@ function ColorSwatch(props) {
|
|
|
9484
9484
|
}), _$escape33(renderProps.renderChildren()), false);
|
|
9485
9485
|
}
|
|
9486
9486
|
|
|
9487
|
-
// src/Landmark.tsx
|
|
9487
|
+
// packages/solidaria-components/src/Landmark.tsx
|
|
9488
9488
|
import { createComponent as _$createComponent35 } from "solid-js/web";
|
|
9489
9489
|
import { mergeProps as _$mergeProps37 } from "solid-js/web";
|
|
9490
9490
|
import { createContext as createContext39, createMemo as createMemo38, createSignal as createSignal15, splitProps as splitProps37 } from "solid-js";
|