@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.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 { memo as _$memo } from "solid-js/web";
|
|
4
4
|
import { createContext, useContext, createMemo, createSignal, onMount, Show } from "solid-js";
|
|
@@ -82,7 +82,7 @@ function useIsHydrated() {
|
|
|
82
82
|
return isHydrated;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
// src/VisuallyHidden.tsx
|
|
85
|
+
// packages/solidaria-components/src/VisuallyHidden.tsx
|
|
86
86
|
import { createComponent as _$createComponent2 } from "solid-js/web";
|
|
87
87
|
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
88
88
|
import { splitProps } from "solid-js";
|
|
@@ -114,7 +114,7 @@ function VisuallyHidden(props) {
|
|
|
114
114
|
}));
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
// src/Button.tsx
|
|
117
|
+
// packages/solidaria-components/src/Button.tsx
|
|
118
118
|
import { template as _$template } from "solid-js/web";
|
|
119
119
|
import { getNextElement as _$getNextElement } from "solid-js/web";
|
|
120
120
|
import { runHydrationEvents as _$runHydrationEvents } from "solid-js/web";
|
|
@@ -126,7 +126,7 @@ import { memo as _$memo2 } from "solid-js/web";
|
|
|
126
126
|
import { createContext as createContext3, createMemo as createMemo2, splitProps as splitProps2, useContext as useContext3 } from "solid-js";
|
|
127
127
|
import { createButton, createFocusRing, createHover } from "@proyecto-viviana/solidaria";
|
|
128
128
|
|
|
129
|
-
// src/contexts.ts
|
|
129
|
+
// packages/solidaria-components/src/contexts.ts
|
|
130
130
|
import { createContext as createContext2, useContext as useContext2 } from "solid-js";
|
|
131
131
|
var OverlayTriggerStateContext = createContext2(null);
|
|
132
132
|
function useOverlayTriggerState() {
|
|
@@ -141,7 +141,7 @@ function usePopoverTrigger() {
|
|
|
141
141
|
return useContext2(PopoverTriggerContext);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
// src/Button.tsx
|
|
144
|
+
// packages/solidaria-components/src/Button.tsx
|
|
145
145
|
var _tmpl$ = /* @__PURE__ */ _$template(`<button>`);
|
|
146
146
|
var ButtonContext = createContext3(null);
|
|
147
147
|
function Button(props) {
|
|
@@ -272,7 +272,7 @@ function Button(props) {
|
|
|
272
272
|
})();
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
// src/Switch.tsx
|
|
275
|
+
// packages/solidaria-components/src/Switch.tsx
|
|
276
276
|
import { template as _$template2 } from "solid-js/web";
|
|
277
277
|
import { getNextMarker as _$getNextMarker } from "solid-js/web";
|
|
278
278
|
import { insert as _$insert2 } from "solid-js/web";
|
|
@@ -421,7 +421,7 @@ function ToggleSwitch(props) {
|
|
|
421
421
|
})();
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
// src/Checkbox.tsx
|
|
424
|
+
// packages/solidaria-components/src/Checkbox.tsx
|
|
425
425
|
import { template as _$template3 } from "solid-js/web";
|
|
426
426
|
import { getNextMarker as _$getNextMarker2 } from "solid-js/web";
|
|
427
427
|
import { use as _$use3 } from "solid-js/web";
|
|
@@ -695,7 +695,7 @@ function Checkbox(props) {
|
|
|
695
695
|
})();
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
// src/RadioGroup.tsx
|
|
698
|
+
// packages/solidaria-components/src/RadioGroup.tsx
|
|
699
699
|
import { template as _$template4 } from "solid-js/web";
|
|
700
700
|
import { getNextMarker as _$getNextMarker3 } from "solid-js/web";
|
|
701
701
|
import { use as _$use4 } from "solid-js/web";
|
|
@@ -948,7 +948,7 @@ function Radio(props) {
|
|
|
948
948
|
});
|
|
949
949
|
}
|
|
950
950
|
|
|
951
|
-
// src/TextField.tsx
|
|
951
|
+
// packages/solidaria-components/src/TextField.tsx
|
|
952
952
|
import { template as _$template5 } from "solid-js/web";
|
|
953
953
|
import { createComponent as _$createComponent6 } from "solid-js/web";
|
|
954
954
|
import { memo as _$memo6 } from "solid-js/web";
|
|
@@ -1143,7 +1143,7 @@ function TextField(props) {
|
|
|
1143
1143
|
});
|
|
1144
1144
|
}
|
|
1145
1145
|
|
|
1146
|
-
// src/Link.tsx
|
|
1146
|
+
// packages/solidaria-components/src/Link.tsx
|
|
1147
1147
|
import { createComponent as _$createComponent7 } from "solid-js/web";
|
|
1148
1148
|
import { mergeProps as _$mergeProps7 } from "solid-js/web";
|
|
1149
1149
|
import { memo as _$memo7 } from "solid-js/web";
|
|
@@ -1313,7 +1313,7 @@ function Link(props) {
|
|
|
1313
1313
|
}));
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
-
// src/ProgressBar.tsx
|
|
1316
|
+
// packages/solidaria-components/src/ProgressBar.tsx
|
|
1317
1317
|
import { template as _$template6 } from "solid-js/web";
|
|
1318
1318
|
import { getNextElement as _$getNextElement6 } from "solid-js/web";
|
|
1319
1319
|
import { runHydrationEvents as _$runHydrationEvents6 } from "solid-js/web";
|
|
@@ -1411,7 +1411,7 @@ function ProgressBar(props) {
|
|
|
1411
1411
|
})();
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
-
// src/Separator.tsx
|
|
1414
|
+
// packages/solidaria-components/src/Separator.tsx
|
|
1415
1415
|
import { createComponent as _$createComponent8 } from "solid-js/web";
|
|
1416
1416
|
import { mergeProps as _$mergeProps9 } from "solid-js/web";
|
|
1417
1417
|
import { createContext as createContext10, createMemo as createMemo9, splitProps as splitProps9 } from "solid-js";
|
|
@@ -1481,7 +1481,7 @@ function Separator(props) {
|
|
|
1481
1481
|
}));
|
|
1482
1482
|
}
|
|
1483
1483
|
|
|
1484
|
-
// src/Toolbar.tsx
|
|
1484
|
+
// packages/solidaria-components/src/Toolbar.tsx
|
|
1485
1485
|
import { template as _$template7 } from "solid-js/web";
|
|
1486
1486
|
import { getNextElement as _$getNextElement7 } from "solid-js/web";
|
|
1487
1487
|
import { runHydrationEvents as _$runHydrationEvents7 } from "solid-js/web";
|
|
@@ -1559,7 +1559,7 @@ function Toolbar(props) {
|
|
|
1559
1559
|
})();
|
|
1560
1560
|
}
|
|
1561
1561
|
|
|
1562
|
-
// src/Autocomplete.tsx
|
|
1562
|
+
// packages/solidaria-components/src/Autocomplete.tsx
|
|
1563
1563
|
import { createComponent as _$createComponent9 } from "solid-js/web";
|
|
1564
1564
|
import { createContext as createContext12, useContext as useContext8, createMemo as createMemo11, splitProps as splitProps11 } from "solid-js";
|
|
1565
1565
|
import { createAutocomplete } from "@proyecto-viviana/solidaria";
|
|
@@ -1621,7 +1621,7 @@ function Autocomplete(props) {
|
|
|
1621
1621
|
});
|
|
1622
1622
|
}
|
|
1623
1623
|
|
|
1624
|
-
// src/ListBox.tsx
|
|
1624
|
+
// packages/solidaria-components/src/ListBox.tsx
|
|
1625
1625
|
import { template as _$template8 } from "solid-js/web";
|
|
1626
1626
|
import { createComponent as _$createComponent10 } from "solid-js/web";
|
|
1627
1627
|
import { getNextElement as _$getNextElement8 } from "solid-js/web";
|
|
@@ -1719,7 +1719,7 @@ function ListBox(props) {
|
|
|
1719
1719
|
} = focusProps;
|
|
1720
1720
|
return rest;
|
|
1721
1721
|
};
|
|
1722
|
-
const isEmpty = () =>
|
|
1722
|
+
const isEmpty = () => stateProps.items.length === 0;
|
|
1723
1723
|
return _$createComponent10(ListBoxContext.Provider, {
|
|
1724
1724
|
value: {
|
|
1725
1725
|
state
|
|
@@ -1753,9 +1753,9 @@ function ListBox(props) {
|
|
|
1753
1753
|
var _c$ = _$memo8(() => !!(isEmpty() && local.renderEmptyState));
|
|
1754
1754
|
return () => _c$() ? local.renderEmptyState() : _$createComponent10(For, {
|
|
1755
1755
|
get each() {
|
|
1756
|
-
return stateProps.items
|
|
1756
|
+
return stateProps.items;
|
|
1757
1757
|
},
|
|
1758
|
-
children: (item) =>
|
|
1758
|
+
children: (item) => props.children(item)
|
|
1759
1759
|
});
|
|
1760
1760
|
})());
|
|
1761
1761
|
_$runHydrationEvents8();
|
|
@@ -1852,7 +1852,7 @@ function ListBoxOption(props) {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
ListBox.Option = ListBoxOption;
|
|
1854
1854
|
|
|
1855
|
-
// src/Menu.tsx
|
|
1855
|
+
// packages/solidaria-components/src/Menu.tsx
|
|
1856
1856
|
import { template as _$template9 } from "solid-js/web";
|
|
1857
1857
|
import { use as _$use5 } from "solid-js/web";
|
|
1858
1858
|
import { getNextElement as _$getNextElement9 } from "solid-js/web";
|
|
@@ -2120,9 +2120,9 @@ function Menu(props) {
|
|
|
2120
2120
|
}), false, true);
|
|
2121
2121
|
_$insert9(_el$2, _$createComponent11(For2, {
|
|
2122
2122
|
get each() {
|
|
2123
|
-
return stateProps.items
|
|
2123
|
+
return stateProps.items;
|
|
2124
2124
|
},
|
|
2125
|
-
children: (item) =>
|
|
2125
|
+
children: (item) => props.children?.(item)
|
|
2126
2126
|
}));
|
|
2127
2127
|
_$runHydrationEvents9();
|
|
2128
2128
|
return _el$2;
|
|
@@ -2241,7 +2241,7 @@ function MenuItem(props) {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
Menu.Item = MenuItem;
|
|
2243
2243
|
|
|
2244
|
-
// src/Select.tsx
|
|
2244
|
+
// packages/solidaria-components/src/Select.tsx
|
|
2245
2245
|
import { template as _$template10 } from "solid-js/web";
|
|
2246
2246
|
import { use as _$use6 } from "solid-js/web";
|
|
2247
2247
|
import { setProperty as _$setProperty } from "solid-js/web";
|
|
@@ -2269,7 +2269,7 @@ function Select(props) {
|
|
|
2269
2269
|
const [local, stateProps, ariaProps] = splitProps14(props, ["class", "style", "slot"], ["items", "getKey", "getTextValue", "getDisabled", "disabledKeys", "selectedKey", "defaultSelectedKey", "onSelectionChange", "isOpen", "defaultOpen", "onOpenChange", "name"]);
|
|
2270
2270
|
const state = createSelectState({
|
|
2271
2271
|
get items() {
|
|
2272
|
-
return stateProps.items
|
|
2272
|
+
return stateProps.items;
|
|
2273
2273
|
},
|
|
2274
2274
|
get getKey() {
|
|
2275
2275
|
return stateProps.getKey;
|
|
@@ -2810,7 +2810,7 @@ Select.Value = SelectValue;
|
|
|
2810
2810
|
Select.ListBox = SelectListBox;
|
|
2811
2811
|
Select.Option = SelectOption;
|
|
2812
2812
|
|
|
2813
|
-
// src/Tabs.tsx
|
|
2813
|
+
// packages/solidaria-components/src/Tabs.tsx
|
|
2814
2814
|
import { template as _$template11 } from "solid-js/web";
|
|
2815
2815
|
import { delegateEvents as _$delegateEvents } from "solid-js/web";
|
|
2816
2816
|
import { setProperty as _$setProperty2 } from "solid-js/web";
|
|
@@ -3220,7 +3220,7 @@ Tabs.Tab = Tab;
|
|
|
3220
3220
|
Tabs.Panel = TabPanel;
|
|
3221
3221
|
_$delegateEvents(["keydown"]);
|
|
3222
3222
|
|
|
3223
|
-
// src/Breadcrumbs.tsx
|
|
3223
|
+
// packages/solidaria-components/src/Breadcrumbs.tsx
|
|
3224
3224
|
import { template as _$template12 } from "solid-js/web";
|
|
3225
3225
|
import { getNextElement as _$getNextElement12 } from "solid-js/web";
|
|
3226
3226
|
import { runHydrationEvents as _$runHydrationEvents12 } from "solid-js/web";
|
|
@@ -3400,7 +3400,7 @@ function BreadcrumbItem(props) {
|
|
|
3400
3400
|
}
|
|
3401
3401
|
Breadcrumbs.Item = BreadcrumbItem;
|
|
3402
3402
|
|
|
3403
|
-
// src/NumberField.tsx
|
|
3403
|
+
// packages/solidaria-components/src/NumberField.tsx
|
|
3404
3404
|
import { template as _$template13 } from "solid-js/web";
|
|
3405
3405
|
import { createComponent as _$createComponent15 } from "solid-js/web";
|
|
3406
3406
|
import { getNextElement as _$getNextElement13 } from "solid-js/web";
|
|
@@ -3820,7 +3820,7 @@ NumberField.Input = NumberFieldInput;
|
|
|
3820
3820
|
NumberField.IncrementButton = NumberFieldIncrementButton;
|
|
3821
3821
|
NumberField.DecrementButton = NumberFieldDecrementButton;
|
|
3822
3822
|
|
|
3823
|
-
// src/SearchField.tsx
|
|
3823
|
+
// packages/solidaria-components/src/SearchField.tsx
|
|
3824
3824
|
import { template as _$template14 } from "solid-js/web";
|
|
3825
3825
|
import { use as _$use7 } from "solid-js/web";
|
|
3826
3826
|
import { createComponent as _$createComponent16 } from "solid-js/web";
|
|
@@ -4186,7 +4186,7 @@ SearchField.Label = SearchFieldLabel;
|
|
|
4186
4186
|
SearchField.Input = SearchFieldInput;
|
|
4187
4187
|
SearchField.ClearButton = SearchFieldClearButton;
|
|
4188
4188
|
|
|
4189
|
-
// src/Slider.tsx
|
|
4189
|
+
// packages/solidaria-components/src/Slider.tsx
|
|
4190
4190
|
import { template as _$template15 } from "solid-js/web";
|
|
4191
4191
|
import { use as _$use8 } from "solid-js/web";
|
|
4192
4192
|
import { getNextMarker as _$getNextMarker5 } from "solid-js/web";
|
|
@@ -4540,7 +4540,7 @@ Slider.Track = SliderTrack;
|
|
|
4540
4540
|
Slider.Thumb = SliderThumb;
|
|
4541
4541
|
Slider.Output = SliderOutput;
|
|
4542
4542
|
|
|
4543
|
-
// src/Tooltip.tsx
|
|
4543
|
+
// packages/solidaria-components/src/Tooltip.tsx
|
|
4544
4544
|
import { template as _$template16 } from "solid-js/web";
|
|
4545
4545
|
import { memo as _$memo16 } from "solid-js/web";
|
|
4546
4546
|
import { getNextElement as _$getNextElement16 } from "solid-js/web";
|
|
@@ -4811,7 +4811,7 @@ function TooltipContent(props) {
|
|
|
4811
4811
|
});
|
|
4812
4812
|
}
|
|
4813
4813
|
|
|
4814
|
-
// src/ComboBox.tsx
|
|
4814
|
+
// packages/solidaria-components/src/ComboBox.tsx
|
|
4815
4815
|
import { template as _$template17 } from "solid-js/web";
|
|
4816
4816
|
import { use as _$use10 } from "solid-js/web";
|
|
4817
4817
|
import { runHydrationEvents as _$runHydrationEvents17 } from "solid-js/web";
|
|
@@ -4842,7 +4842,7 @@ function ComboBox(props) {
|
|
|
4842
4842
|
let buttonRef = null;
|
|
4843
4843
|
const state = createComboBoxState({
|
|
4844
4844
|
get items() {
|
|
4845
|
-
return stateProps.items
|
|
4845
|
+
return stateProps.items;
|
|
4846
4846
|
},
|
|
4847
4847
|
get getKey() {
|
|
4848
4848
|
return stateProps.getKey;
|
|
@@ -5434,7 +5434,7 @@ ComboBox.Button = ComboBoxButton;
|
|
|
5434
5434
|
ComboBox.ListBox = ComboBoxListBox;
|
|
5435
5435
|
ComboBox.Option = ComboBoxOption;
|
|
5436
5436
|
|
|
5437
|
-
// src/Dialog.tsx
|
|
5437
|
+
// packages/solidaria-components/src/Dialog.tsx
|
|
5438
5438
|
import { template as _$template18 } from "solid-js/web";
|
|
5439
5439
|
import { className as _$className2 } from "solid-js/web";
|
|
5440
5440
|
import { setAttribute as _$setAttribute3 } from "solid-js/web";
|
|
@@ -5671,7 +5671,7 @@ function Heading(props) {
|
|
|
5671
5671
|
});
|
|
5672
5672
|
}
|
|
5673
5673
|
|
|
5674
|
-
// src/Modal.tsx
|
|
5674
|
+
// packages/solidaria-components/src/Modal.tsx
|
|
5675
5675
|
import { template as _$template19 } from "solid-js/web";
|
|
5676
5676
|
import { use as _$use12 } from "solid-js/web";
|
|
5677
5677
|
import { createComponent as _$createComponent21 } from "solid-js/web";
|
|
@@ -5927,7 +5927,7 @@ function ModalContent(props) {
|
|
|
5927
5927
|
});
|
|
5928
5928
|
}
|
|
5929
5929
|
|
|
5930
|
-
// src/Popover.tsx
|
|
5930
|
+
// packages/solidaria-components/src/Popover.tsx
|
|
5931
5931
|
import { template as _$template20 } from "solid-js/web";
|
|
5932
5932
|
import { setAttribute as _$setAttribute4 } from "solid-js/web";
|
|
5933
5933
|
import { style as _$style2 } from "solid-js/web";
|
|
@@ -6242,7 +6242,7 @@ function OverlayArrow(props) {
|
|
|
6242
6242
|
})();
|
|
6243
6243
|
}
|
|
6244
6244
|
|
|
6245
|
-
// src/Toast.tsx
|
|
6245
|
+
// packages/solidaria-components/src/Toast.tsx
|
|
6246
6246
|
import { template as _$template21 } from "solid-js/web";
|
|
6247
6247
|
import { delegateEvents as _$delegateEvents2 } from "solid-js/web";
|
|
6248
6248
|
import { getNextMarker as _$getNextMarker7 } from "solid-js/web";
|
|
@@ -6605,7 +6605,7 @@ function DefaultToast(props) {
|
|
|
6605
6605
|
}
|
|
6606
6606
|
_$delegateEvents2(["click"]);
|
|
6607
6607
|
|
|
6608
|
-
// src/Disclosure.tsx
|
|
6608
|
+
// packages/solidaria-components/src/Disclosure.tsx
|
|
6609
6609
|
import { template as _$template22 } from "solid-js/web";
|
|
6610
6610
|
import { use as _$use14 } from "solid-js/web";
|
|
6611
6611
|
import { createComponent as _$createComponent24 } from "solid-js/web";
|
|
@@ -6855,7 +6855,7 @@ function DisclosurePanel(props) {
|
|
|
6855
6855
|
})();
|
|
6856
6856
|
}
|
|
6857
6857
|
|
|
6858
|
-
// src/Meter.tsx
|
|
6858
|
+
// packages/solidaria-components/src/Meter.tsx
|
|
6859
6859
|
import { template as _$template23 } from "solid-js/web";
|
|
6860
6860
|
import { getNextElement as _$getNextElement23 } from "solid-js/web";
|
|
6861
6861
|
import { runHydrationEvents as _$runHydrationEvents23 } from "solid-js/web";
|
|
@@ -6945,7 +6945,7 @@ function Meter(props) {
|
|
|
6945
6945
|
})();
|
|
6946
6946
|
}
|
|
6947
6947
|
|
|
6948
|
-
// src/TagGroup.tsx
|
|
6948
|
+
// packages/solidaria-components/src/TagGroup.tsx
|
|
6949
6949
|
import { template as _$template24 } from "solid-js/web";
|
|
6950
6950
|
import { memo as _$memo21 } from "solid-js/web";
|
|
6951
6951
|
import { runHydrationEvents as _$runHydrationEvents24 } from "solid-js/web";
|
|
@@ -7190,7 +7190,7 @@ function TagRemoveButton(props) {
|
|
|
7190
7190
|
})();
|
|
7191
7191
|
}
|
|
7192
7192
|
|
|
7193
|
-
// src/Calendar.tsx
|
|
7193
|
+
// packages/solidaria-components/src/Calendar.tsx
|
|
7194
7194
|
import { template as _$template25 } from "solid-js/web";
|
|
7195
7195
|
import { use as _$use16 } from "solid-js/web";
|
|
7196
7196
|
import { memo as _$memo22 } from "solid-js/web";
|
|
@@ -7455,7 +7455,7 @@ function CalendarCell(props) {
|
|
|
7455
7455
|
})();
|
|
7456
7456
|
}
|
|
7457
7457
|
|
|
7458
|
-
// src/RangeCalendar.tsx
|
|
7458
|
+
// packages/solidaria-components/src/RangeCalendar.tsx
|
|
7459
7459
|
import { template as _$template26 } from "solid-js/web";
|
|
7460
7460
|
import { use as _$use17 } from "solid-js/web";
|
|
7461
7461
|
import { memo as _$memo23 } from "solid-js/web";
|
|
@@ -7728,7 +7728,7 @@ function RangeCalendarCell(props) {
|
|
|
7728
7728
|
})();
|
|
7729
7729
|
}
|
|
7730
7730
|
|
|
7731
|
-
// src/DateField.tsx
|
|
7731
|
+
// packages/solidaria-components/src/DateField.tsx
|
|
7732
7732
|
import { template as _$template27 } from "solid-js/web";
|
|
7733
7733
|
import { delegateEvents as _$delegateEvents3 } from "solid-js/web";
|
|
7734
7734
|
import { setAttribute as _$setAttribute7 } from "solid-js/web";
|
|
@@ -7911,7 +7911,7 @@ function DateSegment(props) {
|
|
|
7911
7911
|
}
|
|
7912
7912
|
_$delegateEvents3(["focusin", "focusout"]);
|
|
7913
7913
|
|
|
7914
|
-
// src/TimeField.tsx
|
|
7914
|
+
// packages/solidaria-components/src/TimeField.tsx
|
|
7915
7915
|
import { template as _$template28 } from "solid-js/web";
|
|
7916
7916
|
import { delegateEvents as _$delegateEvents4 } from "solid-js/web";
|
|
7917
7917
|
import { setAttribute as _$setAttribute8 } from "solid-js/web";
|
|
@@ -8200,7 +8200,7 @@ function getTimeSegmentLabel(type) {
|
|
|
8200
8200
|
}
|
|
8201
8201
|
_$delegateEvents4(["focusin", "focusout"]);
|
|
8202
8202
|
|
|
8203
|
-
// src/DatePicker.tsx
|
|
8203
|
+
// packages/solidaria-components/src/DatePicker.tsx
|
|
8204
8204
|
import { template as _$template29 } from "solid-js/web";
|
|
8205
8205
|
import { memo as _$memo24 } from "solid-js/web";
|
|
8206
8206
|
import { runHydrationEvents as _$runHydrationEvents29 } from "solid-js/web";
|
|
@@ -8393,7 +8393,7 @@ function DatePickerContent(props) {
|
|
|
8393
8393
|
});
|
|
8394
8394
|
}
|
|
8395
8395
|
|
|
8396
|
-
// src/Table.tsx
|
|
8396
|
+
// packages/solidaria-components/src/Table.tsx
|
|
8397
8397
|
import { template as _$template30 } from "solid-js/web";
|
|
8398
8398
|
import { createComponent as _$createComponent31 } from "solid-js/web";
|
|
8399
8399
|
import { getNextElement as _$getNextElement30 } from "solid-js/web";
|
|
@@ -8421,7 +8421,7 @@ function Table(props) {
|
|
|
8421
8421
|
const [ref, setRef] = createSignal12(null);
|
|
8422
8422
|
const collection = createMemo34(() => createTableCollection({
|
|
8423
8423
|
columns: stateProps.columns,
|
|
8424
|
-
rows: stateProps.items
|
|
8424
|
+
rows: stateProps.items,
|
|
8425
8425
|
getKey: stateProps.getKey,
|
|
8426
8426
|
getTextValue: stateProps.getTextValue,
|
|
8427
8427
|
showSelectionCheckboxes: stateProps.showSelectionCheckboxes ?? false
|
|
@@ -8459,7 +8459,7 @@ function Table(props) {
|
|
|
8459
8459
|
isFocusVisible: isFocusVisible(),
|
|
8460
8460
|
isDisabled: false,
|
|
8461
8461
|
// Tables don't have a global disabled state
|
|
8462
|
-
isEmpty:
|
|
8462
|
+
isEmpty: stateProps.items.length === 0
|
|
8463
8463
|
}));
|
|
8464
8464
|
const renderProps = useRenderProps({
|
|
8465
8465
|
children: props.children,
|
|
@@ -8519,7 +8519,7 @@ function Table(props) {
|
|
|
8519
8519
|
return isFocusVisible() || void 0;
|
|
8520
8520
|
},
|
|
8521
8521
|
get ["data-empty"]() {
|
|
8522
|
-
return
|
|
8522
|
+
return stateProps.items.length === 0 || void 0;
|
|
8523
8523
|
}
|
|
8524
8524
|
}), false, true);
|
|
8525
8525
|
_$insert30(_el$, () => renderProps.renderChildren());
|
|
@@ -9022,7 +9022,7 @@ Table.Cell = TableCell;
|
|
|
9022
9022
|
Table.SelectionCheckbox = TableSelectionCheckbox;
|
|
9023
9023
|
Table.SelectAllCheckbox = TableSelectAllCheckbox;
|
|
9024
9024
|
|
|
9025
|
-
// src/GridList.tsx
|
|
9025
|
+
// packages/solidaria-components/src/GridList.tsx
|
|
9026
9026
|
import { template as _$template31 } from "solid-js/web";
|
|
9027
9027
|
import { createComponent as _$createComponent32 } from "solid-js/web";
|
|
9028
9028
|
import { getNextElement as _$getNextElement31 } from "solid-js/web";
|
|
@@ -9112,7 +9112,7 @@ function buildGridCollection(items, getKey, getTextValue, getDisabled) {
|
|
|
9112
9112
|
function GridList(props) {
|
|
9113
9113
|
const [local, stateProps, ariaProps] = splitProps34(props, ["children", "class", "style", "slot", "renderEmptyState"], ["items", "getKey", "getTextValue", "getDisabled", "disabledKeys", "selectionMode", "selectedKeys", "defaultSelectedKeys", "onSelectionChange"]);
|
|
9114
9114
|
const [ref, setRef] = createSignal13(null);
|
|
9115
|
-
const collection = createMemo35(() => buildGridCollection(stateProps.items
|
|
9115
|
+
const collection = createMemo35(() => buildGridCollection(stateProps.items, stateProps.getKey, stateProps.getTextValue, stateProps.getDisabled));
|
|
9116
9116
|
const allDisabledKeys = createMemo35(() => {
|
|
9117
9117
|
const keys = /* @__PURE__ */ new Set();
|
|
9118
9118
|
if (stateProps.disabledKeys) {
|
|
@@ -9155,7 +9155,7 @@ function GridList(props) {
|
|
|
9155
9155
|
isFocused: state.isFocused || isFocused(),
|
|
9156
9156
|
isFocusVisible: isFocusVisible(),
|
|
9157
9157
|
isDisabled: ariaProps.isDisabled ?? false,
|
|
9158
|
-
isEmpty:
|
|
9158
|
+
isEmpty: stateProps.items.length === 0
|
|
9159
9159
|
}));
|
|
9160
9160
|
const renderProps = useRenderProps({
|
|
9161
9161
|
class: local.class,
|
|
@@ -9182,7 +9182,7 @@ function GridList(props) {
|
|
|
9182
9182
|
} = focusProps;
|
|
9183
9183
|
return rest;
|
|
9184
9184
|
};
|
|
9185
|
-
const isEmpty = () =>
|
|
9185
|
+
const isEmpty = () => stateProps.items.length === 0;
|
|
9186
9186
|
const contextValue = createMemo35(() => ({
|
|
9187
9187
|
state,
|
|
9188
9188
|
collection: collection(),
|
|
@@ -9222,9 +9222,9 @@ function GridList(props) {
|
|
|
9222
9222
|
var _c$ = _$memo26(() => !!(isEmpty() && local.renderEmptyState));
|
|
9223
9223
|
return () => _c$() ? local.renderEmptyState() : _$createComponent32(For13, {
|
|
9224
9224
|
get each() {
|
|
9225
|
-
return stateProps.items
|
|
9225
|
+
return stateProps.items;
|
|
9226
9226
|
},
|
|
9227
|
-
children: (item) =>
|
|
9227
|
+
children: (item) => props.children(item)
|
|
9228
9228
|
});
|
|
9229
9229
|
})());
|
|
9230
9230
|
_$runHydrationEvents31();
|
|
@@ -9366,7 +9366,7 @@ function GridListSelectionCheckbox(props) {
|
|
|
9366
9366
|
GridList.Item = GridListItem;
|
|
9367
9367
|
GridList.SelectionCheckbox = GridListSelectionCheckbox;
|
|
9368
9368
|
|
|
9369
|
-
// src/Tree.tsx
|
|
9369
|
+
// packages/solidaria-components/src/Tree.tsx
|
|
9370
9370
|
import { template as _$template32 } from "solid-js/web";
|
|
9371
9371
|
import { createComponent as _$createComponent33 } from "solid-js/web";
|
|
9372
9372
|
import { getNextElement as _$getNextElement32 } from "solid-js/web";
|
|
@@ -9732,7 +9732,7 @@ Tree.Item = TreeItem;
|
|
|
9732
9732
|
Tree.ExpandButton = TreeExpandButton;
|
|
9733
9733
|
Tree.SelectionCheckbox = TreeSelectionCheckbox;
|
|
9734
9734
|
|
|
9735
|
-
// src/Color.tsx
|
|
9735
|
+
// packages/solidaria-components/src/Color.tsx
|
|
9736
9736
|
import { template as _$template33 } from "solid-js/web";
|
|
9737
9737
|
import { use as _$use23 } from "solid-js/web";
|
|
9738
9738
|
import { getNextMarker as _$getNextMarker8 } from "solid-js/web";
|
|
@@ -10705,7 +10705,7 @@ function ColorSwatch(props) {
|
|
|
10705
10705
|
})();
|
|
10706
10706
|
}
|
|
10707
10707
|
|
|
10708
|
-
// src/Landmark.tsx
|
|
10708
|
+
// packages/solidaria-components/src/Landmark.tsx
|
|
10709
10709
|
import { createComponent as _$createComponent35 } from "solid-js/web";
|
|
10710
10710
|
import { mergeProps as _$mergeProps37 } from "solid-js/web";
|
|
10711
10711
|
import { createContext as createContext39, createMemo as createMemo38, createSignal as createSignal15, splitProps as splitProps37 } from "solid-js";
|