@pibit.ai/cure-design-system 0.3.16 → 0.3.18
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/assets/icons/group-by.svg.js +4 -0
- package/dist/assets/icons/reorder-dots-new.svg.js +4 -0
- package/dist/assets/icons/reorder-dots.svg.js +4 -0
- package/dist/assets/icons/resize-1.svg.js +4 -0
- package/dist/assets/icons/resize-2.svg.js +4 -0
- package/dist/assets/icons/resize-4.svg.js +4 -0
- package/dist/assets/icons/resize-5.svg.js +4 -0
- package/dist/assets/icons/show-summary.svg.js +4 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +124 -62
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +46 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +65 -0
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/context/ReorderContext.js +5 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.js +70 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-combine-values.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-computed.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-motion-value.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +1 -1
- package/dist/node_modules/motion-dom/dist/es/utils/transform.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +21 -18
- package/dist/node_modules/motion-utils/dist/es/array.js +15 -6
- package/dist/patterns/table/TablePagination.d.ts +23 -0
- package/dist/patterns/table/TablePagination.d.ts.map +1 -0
- package/dist/patterns/table/TablePagination.js +60 -0
- package/dist/patterns/table/TableWrapper.d.ts +2 -81
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -1
- package/dist/patterns/table/TableWrapper.js +726 -157
- package/dist/patterns/table/index.d.ts +13 -2
- package/dist/patterns/table/index.d.ts.map +1 -1
- package/dist/patterns/table/pagination-base.d.ts +78 -0
- package/dist/patterns/table/pagination-base.d.ts.map +1 -0
- package/dist/patterns/table/pagination-base.js +127 -0
- package/dist/patterns/table/pagination-card.d.ts +9 -0
- package/dist/patterns/table/pagination-card.d.ts.map +1 -0
- package/dist/patterns/table/pagination-card.js +65 -0
- package/dist/patterns/table/row-height-icons.d.ts +9 -0
- package/dist/patterns/table/row-height-icons.d.ts.map +1 -0
- package/dist/patterns/table/row-height-icons.js +13 -0
- package/dist/patterns/table/storyHelpers/mockToolbarSlots.d.ts +7 -0
- package/dist/patterns/table/storyHelpers/mockToolbarSlots.d.ts.map +1 -0
- package/dist/patterns/table/storyHelpers/useMockTableState.d.ts +31 -0
- package/dist/patterns/table/storyHelpers/useMockTableState.d.ts.map +1 -0
- package/dist/patterns/table/storyHelpers/useMockTableToolbar.d.ts +3 -0
- package/dist/patterns/table/storyHelpers/useMockTableToolbar.d.ts.map +1 -0
- package/dist/patterns/table/table.d.ts +10 -13
- package/dist/patterns/table/table.d.ts.map +1 -1
- package/dist/patterns/table/table.js +235 -312
- package/dist/patterns/table/toolbar/AlignDropdown.d.ts +11 -0
- package/dist/patterns/table/toolbar/AlignDropdown.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/AlignDropdown.js +77 -0
- package/dist/patterns/table/toolbar/BasicSortPanel.d.ts +6 -0
- package/dist/patterns/table/toolbar/BasicSortPanel.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/BulkActionBar.d.ts +12 -0
- package/dist/patterns/table/toolbar/BulkActionBar.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/BulkActionBar.js +62 -0
- package/dist/patterns/table/toolbar/ColumnHeaderMenu.d.ts +41 -0
- package/dist/patterns/table/toolbar/ColumnHeaderMenu.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/ColumnHeaderMenu.js +171 -0
- package/dist/patterns/table/toolbar/GroupByDropdown.d.ts +11 -0
- package/dist/patterns/table/toolbar/GroupByDropdown.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/GroupByDropdown.js +80 -0
- package/dist/patterns/table/toolbar/HideFieldsDropdown.d.ts +13 -0
- package/dist/patterns/table/toolbar/HideFieldsDropdown.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/HideFieldsDropdown.js +180 -0
- package/dist/patterns/table/toolbar/LegacySortFilterTools.d.ts +9 -0
- package/dist/patterns/table/toolbar/LegacySortFilterTools.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/RowActionsMenu.d.ts +19 -0
- package/dist/patterns/table/toolbar/RowActionsMenu.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/RowActionsMenu.js +84 -0
- package/dist/patterns/table/toolbar/RowHeightDropdown.d.ts +9 -0
- package/dist/patterns/table/toolbar/RowHeightDropdown.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/RowHeightDropdown.js +60 -0
- package/dist/patterns/table/toolbar/ShowSummaryDropdown.d.ts +8 -0
- package/dist/patterns/table/toolbar/ShowSummaryDropdown.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/ShowSummaryDropdown.js +22 -0
- package/dist/patterns/table/toolbar/SummaryFooter.d.ts +16 -0
- package/dist/patterns/table/toolbar/SummaryFooter.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/SummaryFooter.js +83 -0
- package/dist/patterns/table/toolbar/TableToolbar.d.ts +55 -0
- package/dist/patterns/table/toolbar/TableToolbar.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/TableToolbar.js +234 -0
- package/dist/patterns/table/toolbar/ToolbarRadio.d.ts +18 -0
- package/dist/patterns/table/toolbar/ToolbarRadio.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/ToolbarRadio.js +63 -0
- package/dist/patterns/table/toolbar/index.d.ts +24 -0
- package/dist/patterns/table/toolbar/index.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/legacyToolbarTypes.d.ts +69 -0
- package/dist/patterns/table/toolbar/legacyToolbarTypes.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/tableToolbarHelpers.d.ts +35 -0
- package/dist/patterns/table/toolbar/tableToolbarHelpers.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/tableToolbarHelpers.js +259 -0
- package/dist/patterns/table/toolbar/tableToolbarHelpers.test.d.ts +2 -0
- package/dist/patterns/table/toolbar/tableToolbarHelpers.test.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/toolbarExtensions.d.ts +12 -0
- package/dist/patterns/table/toolbar/toolbarExtensions.d.ts.map +1 -0
- package/dist/patterns/table/toolbar/toolbarExtensions.js +18 -0
- package/dist/patterns/table/toolbar-icons.d.ts +8 -0
- package/dist/patterns/table/toolbar-icons.d.ts.map +1 -0
- package/dist/patterns/table/toolbar-icons.js +13 -0
- package/dist/patterns/table/types.d.ts +141 -0
- package/dist/patterns/table/types.d.ts.map +1 -0
- package/dist/patterns/table/useGridKeyboardNavigation.d.ts +38 -0
- package/dist/patterns/table/useGridKeyboardNavigation.d.ts.map +1 -0
- package/dist/patterns/table/useGridKeyboardNavigation.js +65 -0
- package/dist/primitives/checkbox/checkbox.d.ts +2 -2
- package/dist/primitives/checkbox/checkbox.d.ts.map +1 -1
- package/dist/primitives/dropdown/dropdown.d.ts +32 -0
- package/dist/primitives/dropdown/dropdown.d.ts.map +1 -0
- package/dist/primitives/dropdown/dropdown.js +118 -0
- package/dist/primitives/dropdown/index.d.ts +2 -0
- package/dist/primitives/dropdown/index.d.ts.map +1 -0
- package/dist/primitives/select/ExpandableSearchInput.d.ts +5 -1
- package/dist/primitives/select/ExpandableSearchInput.d.ts.map +1 -1
- package/dist/primitives/select/ExpandableSearchInput.js +80 -77
- package/dist/primitives/shimmer/index.d.ts +2 -0
- package/dist/primitives/shimmer/index.d.ts.map +1 -0
- package/dist/primitives/shimmer/shimmer.d.ts +24 -0
- package/dist/primitives/shimmer/shimmer.d.ts.map +1 -0
- package/dist/primitives/shimmer/shimmer.js +37 -0
- package/dist/primitives/tooltip/ellipsis-content.d.ts +12 -0
- package/dist/primitives/tooltip/ellipsis-content.d.ts.map +1 -0
- package/dist/primitives/tooltip/ellipsis-content.js +113 -0
- package/dist/primitives/tooltip/index.d.ts +1 -0
- package/dist/primitives/tooltip/index.d.ts.map +1 -1
- package/dist/styles/components.css +1 -1
- package/dist/styles/theme.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const C = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.9%205C9.46005%205%209.74008%205%209.95399%204.89101C10.1422%204.79513%2010.2951%204.64215%2010.391%204.45399C10.5%204.24008%2010.5%203.96005%2010.5%203.4V3.1C10.5%202.53995%2010.5%202.25992%2010.391%202.04601C10.2951%201.85785%2010.1422%201.70487%209.95399%201.60899C9.74008%201.5%209.46005%201.5%208.9%201.5L3.1%201.5C2.53995%201.5%202.25992%201.5%202.04601%201.60899C1.85785%201.70487%201.70487%201.85785%201.60899%202.04601C1.5%202.25992%201.5%202.53995%201.5%203.1L1.5%203.4C1.5%203.96005%201.5%204.24008%201.60899%204.45399C1.70487%204.64215%201.85785%204.79513%202.04601%204.89101C2.25992%205%202.53995%205%203.1%205L8.9%205Z'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.9%2010.5C9.46005%2010.5%209.74008%2010.5%209.95399%2010.391C10.1422%2010.2951%2010.2951%2010.1422%2010.391%209.95399C10.5%209.74008%2010.5%209.46005%2010.5%208.9V8.6C10.5%208.03995%2010.5%207.75992%2010.391%207.54601C10.2951%207.35785%2010.1422%207.20487%209.95399%207.10899C9.74008%207%209.46005%207%208.9%207L3.1%207C2.53995%207%202.25992%207%202.04601%207.10899C1.85785%207.20487%201.70487%207.35785%201.60899%207.54601C1.5%207.75992%201.5%208.03995%201.5%208.6L1.5%208.9C1.5%209.46005%201.5%209.74008%201.60899%209.95399C1.70487%2010.1422%201.85785%2010.2951%202.04601%2010.391C2.25992%2010.5%202.53995%2010.5%203.1%2010.5H8.9Z'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
C as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const o = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.66667%204.00033C6.03486%204.00033%206.33333%203.70185%206.33333%203.33366C6.33333%202.96547%206.03486%202.66699%205.66667%202.66699C5.29848%202.66699%205%202.96547%205%203.33366C5%203.70185%205.29848%204.00033%205.66667%204.00033Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.66667%208.66699C6.03486%208.66699%206.33333%208.36852%206.33333%208.00033C6.33333%207.63214%206.03486%207.33366%205.66667%207.33366C5.29848%207.33366%205%207.63214%205%208.00033C5%208.36852%205.29848%208.66699%205.66667%208.66699Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.66667%2013.3337C6.03486%2013.3337%206.33333%2013.0352%206.33333%2012.667C6.33333%2012.2988%206.03486%2012.0003%205.66667%2012.0003C5.29848%2012.0003%205%2012.2988%205%2012.667C5%2013.0352%205.29848%2013.3337%205.66667%2013.3337Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.3333%204.00033C10.7015%204.00033%2011%203.70185%2011%203.33366C11%202.96547%2010.7015%202.66699%2010.3333%202.66699C9.96514%202.66699%209.66667%202.96547%209.66667%203.33366C9.66667%203.70185%209.96514%204.00033%2010.3333%204.00033Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.3333%208.66699C10.7015%208.66699%2011%208.36852%2011%208.00033C11%207.63214%2010.7015%207.33366%2010.3333%207.33366C9.96514%207.33366%209.66667%207.63214%209.66667%208.00033C9.66667%208.36852%209.96514%208.66699%2010.3333%208.66699Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.3333%2013.3337C10.7015%2013.3337%2011%2013.0352%2011%2012.667C11%2012.2988%2010.7015%2012.0003%2010.3333%2012.0003C9.96514%2012.0003%209.66667%2012.2988%209.66667%2012.667C9.66667%2013.0352%209.96514%2013.3337%2010.3333%2013.3337Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
o as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const o = "data:image/svg+xml,%3csvg%20width='8'%20height='14'%20viewBox='0%200%208%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.375%202.125C1.78921%202.125%202.125%201.78921%202.125%201.375C2.125%200.960786%201.78921%200.625%201.375%200.625C0.960786%200.625%200.625%200.960786%200.625%201.375C0.625%201.78921%200.960786%202.125%201.375%202.125Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.375%207.375C1.78921%207.375%202.125%207.03921%202.125%206.625C2.125%206.21079%201.78921%205.875%201.375%205.875C0.960786%205.875%200.625%206.21079%200.625%206.625C0.625%207.03921%200.960786%207.375%201.375%207.375Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.375%2012.625C1.78921%2012.625%202.125%2012.2892%202.125%2011.875C2.125%2011.4608%201.78921%2011.125%201.375%2011.125C0.960786%2011.125%200.625%2011.4608%200.625%2011.875C0.625%2012.2892%200.960786%2012.625%201.375%2012.625Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.625%202.125C7.03921%202.125%207.375%201.78921%207.375%201.375C7.375%200.960786%207.03921%200.625%206.625%200.625C6.21079%200.625%205.875%200.960786%205.875%201.375C5.875%201.78921%206.21079%202.125%206.625%202.125Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.625%207.375C7.03921%207.375%207.375%207.03921%207.375%206.625C7.375%206.21079%207.03921%205.875%206.625%205.875C6.21079%205.875%205.875%206.21079%205.875%206.625C5.875%207.03921%206.21079%207.375%206.625%207.375Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.625%2012.625C7.03921%2012.625%207.375%2012.2892%207.375%2011.875C7.375%2011.4608%207.03921%2011.125%206.625%2011.125C6.21079%2011.125%205.875%2011.4608%205.875%2011.875C5.875%2012.2892%206.21079%2012.625%206.625%2012.625Z'%20stroke='currentColor'%20stroke-width='1.25'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
o as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.6666%207.99967L7.99992%207.99967M14.6666%203.66634H7.99992M14.6666%2012.333H7.99992M3.33325%2012.6663L3.33325%203.33301M5.33325%2011.333L3.33325%2012.6663L1.33325%2011.333M5.33325%204.66634L3.33325%203.33301L1.33325%204.66634'%20stroke='%23818792'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
e as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.6666%208.99967H7.99992M14.6666%2012.333H7.99992M3.33325%2012.6663L3.33325%203.33301M5.33325%2011.333L3.33325%2012.6663L1.33325%2011.333M5.33325%204.66634L3.33325%203.33301L1.33325%204.66634M9.06659%205.99967H13.5999C13.9733%205.99967%2014.16%205.99967%2014.3026%205.92701C14.428%205.8631%2014.53%205.76111%2014.5939%205.63567C14.6666%205.49306%2014.6666%205.30638%2014.6666%204.93301V4.39967C14.6666%204.02631%2014.6666%203.83962%2014.5939%203.69701C14.53%203.57157%2014.428%203.46959%2014.3026%203.40567C14.16%203.33301%2013.9733%203.33301%2013.5999%203.33301H9.06659C8.69322%203.33301%208.50653%203.33301%208.36392%203.40567C8.23848%203.46959%208.1365%203.57157%208.07258%203.69701C7.99992%203.83962%207.99992%204.02631%207.99992%204.39967V4.93301C7.99992%205.30638%207.99992%205.49306%208.07258%205.63567C8.1365%205.76111%208.23848%205.8631%208.36392%205.92701C8.50653%205.99967%208.69322%205.99967%209.06659%205.99967Z'%20stroke='%23818792'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
e as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.6666%209.66634H7.99992M14.6666%2012.333H7.99992M3.33325%2012.6663L3.33325%203.33301M5.33325%2011.333L3.33325%2012.6663L1.33325%2011.333M5.33325%204.66634L3.33325%203.33301L1.33325%204.66634M9.59992%207.33301H13.0666C13.6266%207.33301%2013.9067%207.33301%2014.1206%207.22401C14.3087%207.12814%2014.4617%206.97516%2014.5576%206.787C14.6666%206.57309%2014.6666%206.29306%2014.6666%205.73301V4.93301C14.6666%204.37296%2014.6666%204.09293%2014.5576%203.87902C14.4617%203.69086%2014.3087%203.53787%2014.1206%203.442C13.9067%203.33301%2013.6266%203.33301%2013.0666%203.33301H9.59992C9.03987%203.33301%208.75984%203.33301%208.54593%203.442C8.35777%203.53787%208.20479%203.69086%208.10891%203.87902C7.99992%204.09293%207.99992%204.37296%207.99992%204.93301V5.73301C7.99992%206.29306%207.99992%206.57309%208.10891%206.787C8.20479%206.97516%208.35777%207.12814%208.54593%207.22401C8.75984%207.33301%209.03987%207.33301%209.59992%207.33301Z'%20stroke='%23818792'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
e as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.33325%2012.6663L3.33325%203.33301M5.33325%2011.333L3.33325%2012.6663L1.33325%2011.333M5.33325%204.66634L3.33325%203.33301L1.33325%204.66634M9.59992%2012.333H13.0666C13.6266%2012.333%2013.9067%2012.333%2014.1206%2012.224C14.3087%2012.1281%2014.4617%2011.9752%2014.5576%2011.787C14.6666%2011.5731%2014.6666%2011.2931%2014.6666%2010.733V4.93301C14.6666%204.37296%2014.6666%204.09293%2014.5576%203.87902C14.4617%203.69086%2014.3087%203.53787%2014.1206%203.442C13.9067%203.33301%2013.6266%203.33301%2013.0666%203.33301H9.59992C9.03987%203.33301%208.75984%203.33301%208.54593%203.442C8.35777%203.53787%208.20479%203.69086%208.10891%203.87902C7.99992%204.09293%207.99992%204.37296%207.99992%204.93301V10.733C7.99992%2011.2931%207.99992%2011.5731%208.10891%2011.787C8.20479%2011.9752%208.35777%2012.1281%208.54593%2012.224C8.75984%2012.333%209.03987%2012.333%209.59992%2012.333Z'%20stroke='%23818792'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
e as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.25%201.5H1.75M10.25%204.5H1.75M1.5%209C1.5%208.53406%201.5%208.30109%201.57612%208.11732C1.67761%207.87229%201.87229%207.67761%202.11732%207.57612C2.30109%207.5%202.53406%207.5%203%207.5L9%207.5C9.46594%207.5%209.69891%207.5%209.88268%207.57612C10.1277%207.67761%2010.3224%207.87229%2010.4239%208.11732C10.5%208.30109%2010.5%208.53406%2010.5%209C10.5%209.46594%2010.5%209.69891%2010.4239%209.88268C10.3224%2010.1277%2010.1277%2010.3224%209.88268%2010.4239C9.69891%2010.5%209.46594%2010.5%209%2010.5H3C2.53406%2010.5%202.30109%2010.5%202.11732%2010.4239C1.87229%2010.3224%201.67761%2010.1277%201.57612%209.88268C1.5%209.69891%201.5%209.46594%201.5%209Z'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
e as default
|
|
4
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -8,9 +8,11 @@ export { Icon, type IconProps, type IconName } from './primitives/icon';
|
|
|
8
8
|
export { Text, type TextProps } from './primitives/text';
|
|
9
9
|
export { Heading, type HeadingProps } from './primitives/heading';
|
|
10
10
|
export { Select, type SelectProps, SearchableSelect, type SearchableSelectProps, MultiSelect, type MultiSelectProps, Popover, type PopoverProps, ExpandableSearchInput, type ExpandableSearchInputProps, } from './primitives/select';
|
|
11
|
-
export { Tooltip, type TooltipProps, TooltipTrigger, type TooltipTriggerProps, } from './primitives/tooltip';
|
|
11
|
+
export { Tooltip, type TooltipProps, TooltipTrigger, type TooltipTriggerProps, EllipsisContentWithTooltip, createEllipsisContent, type EllipsisContentWithTooltipProps, } from './primitives/tooltip';
|
|
12
12
|
export { CustomIcon, ICONS, type CustomIconProps, type CustomIconType } from './primitives/custom-icon';
|
|
13
|
-
export {
|
|
13
|
+
export { Dropdown, type DropdownItemProps, type DropdownMenuProps, type DropdownPopoverProps, } from './primitives/dropdown';
|
|
14
|
+
export { Shimmer, ShimmerLine, ShimmerCircle, ShimmerBox } from './primitives/shimmer';
|
|
15
|
+
export { Table, TableCard, TableCell, TableRowActionsDropdown, TableWrapper, type TableWrapperProps, type TableWrapperPaginationConfig, type TableWrapperToolbarConfig, type BulkActionContext, type TableWrapperEditChrome, type TableWrapperSelectedKeys, type TableWrapperSelectionChange, type ColumnConfig, TablePagination, type TablePaginationConfig, type TablePaginationProps, PaginationCardDefault, Pagination, ROW_HEIGHT_ICONS, type RowHeightIconKey, TOOLBAR_ICONS, type TableColumnSchema, type TableColumnMenuSchema, type TableColumnValueType, TableToolbar, pickCoreToolbarProps, registerToolbarExtensions, getToolbarExtensions, type ToolbarExtensionComponents, type SortToolConfig, type FilterToolConfig, type LegacySortToolConfig, type LegacyFilterToolConfig, RowHeightDropdown, HideFieldsDropdown, AlignDropdown, GroupByDropdown, ShowSummaryDropdown, SummaryFooterRow, ColumnHeaderMenu, RowActionsMenu, BulkActionBar, applyHideAndReorder, getDefaultAlignmentForType, getEffectiveAlignment, alignmentClass, getAggregationsForType, computeAggregation, groupRows, resolveColumnLabel, ROW_HEIGHT_CLASS, AGGREGATION_LABELS, type SearchToolConfig, type RowHeightToolConfig, type HideFieldsToolConfig, type AlignToolConfig, type GroupByToolConfig, type SummaryToolConfig, type RowHeightOption, type SummaryFooterRowProps, type ColumnMenuAction, type ColumnMenuCapabilities, type RowActionsConfig, type CellAlignment, type AggregationType, type AggregationOption, type RowGroup, GridNavProvider, useGridKeyboardNavigation, isWithinCellEditor, findGridCell, focusGridCell, getGridNeighbor, getGridTabNeighbor, type GridNavDirection, type GridNeighbor, type GridNavValue, } from './patterns/table';
|
|
14
16
|
export { TreeView, buildTreeViewNodes, type TreeViewNode, type TreeViewProps, type TreeViewBuildConfig, } from './patterns/tree-view';
|
|
15
17
|
export { cn, cx, sortCx } from './utils/cn';
|
|
16
18
|
export { isReactComponent, isFunctionComponent, isClassComponent, isForwardRefComponent, } from './utils/is-react-component';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,CAAC;AAG5B,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,KAAK,IAAI,cAAc,EAC5B,KAAK,WAAW,IAAI,iBAAiB,EACrC,MAAM,IAAI,YAAY,EACtB,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EACL,KAAK,EACL,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,SAAS,EACT,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,K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,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,mBAAmB,GACzB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,69 +1,131 @@
|
|
|
1
1
|
import "./styles/theme.css";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { cn as p, cx as
|
|
4
|
-
import { isClassComponent as a, isForwardRefComponent as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
3
|
+
import { cn as p, cx as i, sortCx as m } from "./utils/cn.js";
|
|
4
|
+
import { isClassComponent as a, isForwardRefComponent as l, isFunctionComponent as f, isReactComponent as x } from "./utils/is-react-component.js";
|
|
5
|
+
import { default as g, ShimmerBox as s, ShimmerCircle as C, ShimmerLine as T } from "./primitives/shimmer/shimmer.js";
|
|
6
|
+
import { Button as c, styles as b } from "./primitives/button/button.js";
|
|
7
|
+
import { ButtonUtility as h } from "./primitives/button/button-utility.js";
|
|
8
|
+
import { Input as B } from "./primitives/input/input.js";
|
|
9
|
+
import { Checkbox as I } from "./primitives/checkbox/checkbox.js";
|
|
10
|
+
import { Toggle as R } from "./primitives/toggle/toggle.js";
|
|
11
|
+
import { Badge as y, BadgeIcon as D, BadgeWithButton as W, BadgeWithDot as H, BadgeWithFlag as N, BadgeWithIcon as O, BadgeWithImage as v, filledColors as F } from "./primitives/badge/badge.js";
|
|
12
|
+
import { Avatar as P } from "./primitives/avatar/avatar.js";
|
|
13
|
+
import { Icon as k } from "./primitives/icon/icon.js";
|
|
14
|
+
import { Text as V } from "./primitives/text/text.js";
|
|
15
|
+
import { Heading as U } from "./primitives/heading/heading.js";
|
|
16
|
+
import { Select as q } from "./primitives/select/select.js";
|
|
17
|
+
import { SearchableSelect as J } from "./primitives/select/searchable-select.js";
|
|
18
|
+
import { MultiSelect as X } from "./primitives/select/multi-select.js";
|
|
19
|
+
import { Popover as Z } from "./primitives/select/popover.js";
|
|
20
|
+
import { ExpandableSearchInput as oo } from "./primitives/select/ExpandableSearchInput.js";
|
|
21
|
+
import { Tooltip as eo, TooltipTrigger as to } from "./primitives/tooltip/tooltip.js";
|
|
22
|
+
import { EllipsisContentWithTooltip as io, createEllipsisContent as mo } from "./primitives/tooltip/ellipsis-content.js";
|
|
23
|
+
import { CustomIcon as ao } from "./primitives/custom-icon/custom-icon.js";
|
|
24
|
+
import { ICONS as fo } from "./primitives/custom-icon/registry.js";
|
|
25
|
+
import { Dropdown as go } from "./primitives/dropdown/dropdown.js";
|
|
26
|
+
import { Table as Co, TableCard as To, TableCell as uo, TableRowActionsDropdown as co } from "./patterns/table/table.js";
|
|
27
|
+
import { TableWrapper as So } from "./patterns/table/TableWrapper.js";
|
|
28
|
+
import { TablePagination as wo } from "./patterns/table/TablePagination.js";
|
|
29
|
+
import { PaginationCardDefault as Ao } from "./patterns/table/pagination-card.js";
|
|
30
|
+
import { Pagination as Go } from "./patterns/table/pagination-base.js";
|
|
31
|
+
import { ROW_HEIGHT_ICONS as Eo } from "./patterns/table/row-height-icons.js";
|
|
32
|
+
import { TOOLBAR_ICONS as Do } from "./patterns/table/toolbar-icons.js";
|
|
33
|
+
import { TableToolbar as Ho, pickCoreToolbarProps as No } from "./patterns/table/toolbar/TableToolbar.js";
|
|
34
|
+
import { getToolbarExtensions as vo, registerToolbarExtensions as Fo } from "./patterns/table/toolbar/toolbarExtensions.js";
|
|
35
|
+
import { RowHeightDropdown as Po } from "./patterns/table/toolbar/RowHeightDropdown.js";
|
|
36
|
+
import { HideFieldsDropdown as ko } from "./patterns/table/toolbar/HideFieldsDropdown.js";
|
|
37
|
+
import { AlignDropdown as Vo } from "./patterns/table/toolbar/AlignDropdown.js";
|
|
38
|
+
import { GroupByDropdown as Uo } from "./patterns/table/toolbar/GroupByDropdown.js";
|
|
39
|
+
import { ShowSummaryDropdown as qo } from "./patterns/table/toolbar/ShowSummaryDropdown.js";
|
|
40
|
+
import { SummaryFooterRow as Jo } from "./patterns/table/toolbar/SummaryFooter.js";
|
|
41
|
+
import { ColumnHeaderMenu as Xo } from "./patterns/table/toolbar/ColumnHeaderMenu.js";
|
|
42
|
+
import { RowActionsMenu as Zo } from "./patterns/table/toolbar/RowActionsMenu.js";
|
|
43
|
+
import { BulkActionBar as or } from "./patterns/table/toolbar/BulkActionBar.js";
|
|
44
|
+
import { AGGREGATION_LABELS as er, ROW_HEIGHT_CLASS as tr, alignmentClass as pr, applyHideAndReorder as ir, computeAggregation as mr, getAggregationsForType as nr, getDefaultAlignmentForType as ar, getEffectiveAlignment as lr, groupRows as fr, resolveColumnLabel as xr } from "./patterns/table/toolbar/tableToolbarHelpers.js";
|
|
45
|
+
import { GridNavProvider as gr, findGridCell as sr, focusGridCell as Cr, getGridNeighbor as Tr, getGridTabNeighbor as ur, isWithinCellEditor as cr, useGridKeyboardNavigation as br } from "./patterns/table/useGridKeyboardNavigation.js";
|
|
46
|
+
import { TreeView as hr, buildTreeViewNodes as wr } from "./patterns/tree-view/tree-view.js";
|
|
26
47
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
y as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
N as
|
|
48
|
+
er as AGGREGATION_LABELS,
|
|
49
|
+
Vo as AlignDropdown,
|
|
50
|
+
P as Avatar,
|
|
51
|
+
y as Badge,
|
|
52
|
+
D as BadgeIcon,
|
|
53
|
+
W as BadgeWithButton,
|
|
54
|
+
H as BadgeWithDot,
|
|
55
|
+
N as BadgeWithFlag,
|
|
56
|
+
O as BadgeWithIcon,
|
|
57
|
+
v as BadgeWithImage,
|
|
58
|
+
or as BulkActionBar,
|
|
35
59
|
c as Button,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
ao as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
h as ButtonUtility,
|
|
61
|
+
I as Checkbox,
|
|
62
|
+
Xo as ColumnHeaderMenu,
|
|
63
|
+
ao as CustomIcon,
|
|
64
|
+
go as Dropdown,
|
|
65
|
+
io as EllipsisContentWithTooltip,
|
|
66
|
+
oo as ExpandableSearchInput,
|
|
67
|
+
gr as GridNavProvider,
|
|
68
|
+
Uo as GroupByDropdown,
|
|
69
|
+
U as Heading,
|
|
70
|
+
ko as HideFieldsDropdown,
|
|
71
|
+
fo as ICONS,
|
|
72
|
+
k as Icon,
|
|
73
|
+
B as Input,
|
|
74
|
+
X as MultiSelect,
|
|
75
|
+
Go as Pagination,
|
|
76
|
+
Ao as PaginationCardDefault,
|
|
77
|
+
Z as Popover,
|
|
78
|
+
tr as ROW_HEIGHT_CLASS,
|
|
79
|
+
Eo as ROW_HEIGHT_ICONS,
|
|
80
|
+
Zo as RowActionsMenu,
|
|
81
|
+
Po as RowHeightDropdown,
|
|
82
|
+
J as SearchableSelect,
|
|
83
|
+
q as Select,
|
|
84
|
+
g as Shimmer,
|
|
85
|
+
s as ShimmerBox,
|
|
86
|
+
C as ShimmerCircle,
|
|
87
|
+
T as ShimmerLine,
|
|
88
|
+
qo as ShowSummaryDropdown,
|
|
89
|
+
Jo as SummaryFooterRow,
|
|
90
|
+
Do as TOOLBAR_ICONS,
|
|
91
|
+
Co as Table,
|
|
92
|
+
To as TableCard,
|
|
93
|
+
uo as TableCell,
|
|
94
|
+
wo as TablePagination,
|
|
95
|
+
co as TableRowActionsDropdown,
|
|
96
|
+
Ho as TableToolbar,
|
|
97
|
+
So as TableWrapper,
|
|
98
|
+
V as Text,
|
|
99
|
+
R as Toggle,
|
|
100
|
+
eo as Tooltip,
|
|
101
|
+
to as TooltipTrigger,
|
|
102
|
+
hr as TreeView,
|
|
103
|
+
pr as alignmentClass,
|
|
104
|
+
ir as applyHideAndReorder,
|
|
105
|
+
wr as buildTreeViewNodes,
|
|
106
|
+
b as buttonStyles,
|
|
60
107
|
p as cn,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
108
|
+
mr as computeAggregation,
|
|
109
|
+
mo as createEllipsisContent,
|
|
110
|
+
i as cx,
|
|
111
|
+
F as filledColors,
|
|
112
|
+
sr as findGridCell,
|
|
113
|
+
Cr as focusGridCell,
|
|
114
|
+
nr as getAggregationsForType,
|
|
115
|
+
ar as getDefaultAlignmentForType,
|
|
116
|
+
lr as getEffectiveAlignment,
|
|
117
|
+
Tr as getGridNeighbor,
|
|
118
|
+
ur as getGridTabNeighbor,
|
|
119
|
+
vo as getToolbarExtensions,
|
|
120
|
+
fr as groupRows,
|
|
64
121
|
a as isClassComponent,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
122
|
+
l as isForwardRefComponent,
|
|
123
|
+
f as isFunctionComponent,
|
|
124
|
+
x as isReactComponent,
|
|
125
|
+
cr as isWithinCellEditor,
|
|
126
|
+
No as pickCoreToolbarProps,
|
|
127
|
+
Fo as registerToolbarExtensions,
|
|
128
|
+
xr as resolveColumnLabel,
|
|
129
|
+
m as sortCx,
|
|
130
|
+
br as useGridKeyboardNavigation
|
|
69
131
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, useRef as a, useEffect as G } from "react";
|
|
3
|
+
import { ReorderContext as O } from "../../context/ReorderContext.js";
|
|
4
|
+
import { motion as x } from "../../render/components/motion/proxy.js";
|
|
5
|
+
import { useConstant as I } from "../../utils/use-constant.js";
|
|
6
|
+
import { checkReorder as S } from "./utils/check-reorder.js";
|
|
7
|
+
import { invariant as b } from "../../../../../motion-utils/dist/es/errors.js";
|
|
8
|
+
function j({ children: e, as: c = "ul", axis: f = "y", onReorder: v, values: d, ...m }, t) {
|
|
9
|
+
const y = I(() => x[c]), o = [], s = a(!1), p = a(null);
|
|
10
|
+
b(!!d, "Reorder.Group must be provided a values prop", "reorder-values");
|
|
11
|
+
const R = {
|
|
12
|
+
axis: f,
|
|
13
|
+
groupRef: p,
|
|
14
|
+
registerItem: (r, n) => {
|
|
15
|
+
const u = o.findIndex((i) => r === i.value);
|
|
16
|
+
u !== -1 ? o[u].layout = n[f] : o.push({ value: r, layout: n[f] }), o.sort(A);
|
|
17
|
+
},
|
|
18
|
+
updateOrder: (r, n, u) => {
|
|
19
|
+
if (s.current)
|
|
20
|
+
return;
|
|
21
|
+
const i = S(o, r, n, u);
|
|
22
|
+
o !== i && (s.current = !0, v(i.map(k).filter((C) => d.indexOf(C) !== -1)));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
G(() => {
|
|
26
|
+
s.current = !1;
|
|
27
|
+
});
|
|
28
|
+
const g = (r) => {
|
|
29
|
+
p.current = r, typeof t == "function" ? t(r) : t && (t.current = r);
|
|
30
|
+
}, h = {
|
|
31
|
+
overflowAnchor: "none",
|
|
32
|
+
...m.style
|
|
33
|
+
};
|
|
34
|
+
return l(y, { ...m, style: h, ref: g, ignoreStrict: !0, children: l(O.Provider, { value: R, children: e }) });
|
|
35
|
+
}
|
|
36
|
+
const D = /* @__PURE__ */ w(j);
|
|
37
|
+
function k(e) {
|
|
38
|
+
return e.value;
|
|
39
|
+
}
|
|
40
|
+
function A(e, c) {
|
|
41
|
+
return e.layout.min - c.layout.min;
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
D as ReorderGroup,
|
|
45
|
+
j as ReorderGroupComponent
|
|
46
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as V, useContext as O } from "react";
|
|
3
|
+
import { ReorderContext as T } from "../../context/ReorderContext.js";
|
|
4
|
+
import { motion as b } from "../../render/components/motion/proxy.js";
|
|
5
|
+
import { useConstant as j } from "../../utils/use-constant.js";
|
|
6
|
+
import { useMotionValue as w } from "../../value/use-motion-value.js";
|
|
7
|
+
import { useTransform as z } from "../../value/use-transform.js";
|
|
8
|
+
import { autoScrollIfNeeded as A, resetAutoScrollState as B } from "./utils/auto-scroll.js";
|
|
9
|
+
import { isMotionValue as D } from "../../../../../motion-dom/dist/es/value/utils/is-motion-value.js";
|
|
10
|
+
import { invariant as G } from "../../../../../motion-utils/dist/es/errors.js";
|
|
11
|
+
function a(i, e = 0) {
|
|
12
|
+
return D(i) ? i : w(e);
|
|
13
|
+
}
|
|
14
|
+
function L({ children: i, style: e = {}, value: m, as: c = "li", onDrag: u, onDragEnd: f, layout: d = !0, ...l }, x) {
|
|
15
|
+
const y = j(() => b[c]), s = O(T), n = {
|
|
16
|
+
x: a(e.x),
|
|
17
|
+
y: a(e.y)
|
|
18
|
+
}, R = z([n.x, n.y], ([o, t]) => o || t ? 1 : "unset");
|
|
19
|
+
G(!!s, "Reorder.Item must be a child of Reorder.Group", "reorder-item-child");
|
|
20
|
+
const { axis: r, registerItem: g, updateOrder: I, groupRef: C } = s;
|
|
21
|
+
return h(y, { drag: r, ...l, dragSnapToOrigin: !0, style: { ...e, x: n.x, y: n.y, zIndex: R }, layout: d, onDrag: (o, t) => {
|
|
22
|
+
const { velocity: p, point: S } = t, M = n[r].get();
|
|
23
|
+
I(m, M, p[r]), A(C.current, S[r], r, p[r]), u && u(o, t);
|
|
24
|
+
}, onDragEnd: (o, t) => {
|
|
25
|
+
B(), f && f(o, t);
|
|
26
|
+
}, onLayoutMeasure: (o) => {
|
|
27
|
+
g(m, o);
|
|
28
|
+
}, ref: x, ignoreStrict: !0, children: i });
|
|
29
|
+
}
|
|
30
|
+
const Q = /* @__PURE__ */ V(L);
|
|
31
|
+
export {
|
|
32
|
+
Q as ReorderItem,
|
|
33
|
+
L as ReorderItemComponent
|
|
34
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const S = /* @__PURE__ */ new Set(["auto", "scroll"]), u = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
|
|
2
|
+
let d = null;
|
|
3
|
+
function x() {
|
|
4
|
+
if (d) {
|
|
5
|
+
const e = w(d, "y");
|
|
6
|
+
e && (a.delete(e), u.delete(e));
|
|
7
|
+
const n = w(d, "x");
|
|
8
|
+
n && n !== e && (a.delete(n), u.delete(n)), d = null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function g(e, n) {
|
|
12
|
+
const o = getComputedStyle(e), l = n === "x" ? o.overflowX : o.overflowY, t = e === document.body || e === document.documentElement;
|
|
13
|
+
return S.has(l) || t;
|
|
14
|
+
}
|
|
15
|
+
function w(e, n) {
|
|
16
|
+
let o = e == null ? void 0 : e.parentElement;
|
|
17
|
+
for (; o; ) {
|
|
18
|
+
if (g(o, n))
|
|
19
|
+
return o;
|
|
20
|
+
o = o.parentElement;
|
|
21
|
+
}
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
function p(e, n, o) {
|
|
25
|
+
const l = n.getBoundingClientRect(), t = o === "x" ? Math.max(0, l.left) : Math.max(0, l.top), f = o === "x" ? Math.min(window.innerWidth, l.right) : Math.min(window.innerHeight, l.bottom), r = e - t, c = f - e;
|
|
26
|
+
if (r < 50) {
|
|
27
|
+
const s = 1 - r / 50;
|
|
28
|
+
return { amount: -25 * s * s, edge: "start" };
|
|
29
|
+
} else if (c < 50) {
|
|
30
|
+
const s = 1 - c / 50;
|
|
31
|
+
return { amount: 25 * s * s, edge: "end" };
|
|
32
|
+
}
|
|
33
|
+
return { amount: 0, edge: null };
|
|
34
|
+
}
|
|
35
|
+
function y(e, n, o, l) {
|
|
36
|
+
if (!e)
|
|
37
|
+
return;
|
|
38
|
+
d = e;
|
|
39
|
+
const t = w(e, o);
|
|
40
|
+
if (!t)
|
|
41
|
+
return;
|
|
42
|
+
const f = n - (o === "x" ? window.scrollX : window.scrollY), { amount: r, edge: c } = p(f, t, o);
|
|
43
|
+
if (c === null) {
|
|
44
|
+
a.delete(t), u.delete(t);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const s = a.get(t), i = t === document.body || t === document.documentElement;
|
|
48
|
+
if (s !== c) {
|
|
49
|
+
if (!(c === "start" && l < 0 || c === "end" && l > 0))
|
|
50
|
+
return;
|
|
51
|
+
a.set(t, c);
|
|
52
|
+
const m = o === "x" ? t.scrollWidth - (i ? window.innerWidth : t.clientWidth) : t.scrollHeight - (i ? window.innerHeight : t.clientHeight);
|
|
53
|
+
u.set(t, m);
|
|
54
|
+
}
|
|
55
|
+
if (r > 0) {
|
|
56
|
+
const h = u.get(t);
|
|
57
|
+
if ((o === "x" ? i ? window.scrollX : t.scrollLeft : i ? window.scrollY : t.scrollTop) >= h)
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
o === "x" ? i ? window.scrollBy({ left: r }) : t.scrollLeft += r : i ? window.scrollBy({ top: r }) : t.scrollTop += r;
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
y as autoScrollIfNeeded,
|
|
64
|
+
x as resetAutoScrollState
|
|
65
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { mixNumber as s } from "../../../../../../motion-dom/dist/es/utils/mix/number.js";
|
|
2
|
+
import { moveItem as r } from "../../../../../../motion-utils/dist/es/array.js";
|
|
3
|
+
function p(t, f, m, i) {
|
|
4
|
+
if (!i)
|
|
5
|
+
return t;
|
|
6
|
+
const n = t.findIndex((a) => a.value === f);
|
|
7
|
+
if (n === -1)
|
|
8
|
+
return t;
|
|
9
|
+
const e = i > 0 ? 1 : -1, u = t[n + e];
|
|
10
|
+
if (!u)
|
|
11
|
+
return t;
|
|
12
|
+
const x = t[n], o = u.layout, c = s(o.min, o.max, 0.5);
|
|
13
|
+
return e === 1 && x.layout.max + m > c || e === -1 && x.layout.min + m < c ? r(t, n, n + e) : t;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
p as checkReorder
|
|
17
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { useConstant as r } from "../../utils/use-constant.js";
|
|
2
|
+
class s {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.componentControls = /* @__PURE__ */ new Set();
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Subscribe a component's internal `VisualElementDragControls` to the user-facing API.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
subscribe(o) {
|
|
12
|
+
return this.componentControls.add(o), () => this.componentControls.delete(o);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Start a drag gesture on every `motion` component that has this set of drag controls
|
|
16
|
+
* passed into it via the `dragControls` prop.
|
|
17
|
+
*
|
|
18
|
+
* ```jsx
|
|
19
|
+
* dragControls.start(e, {
|
|
20
|
+
* snapToCursor: true
|
|
21
|
+
* })
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @param event - PointerEvent
|
|
25
|
+
* @param options - Options
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
start(o, t) {
|
|
30
|
+
this.componentControls.forEach((n) => {
|
|
31
|
+
n.start(o.nativeEvent || o, t);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Cancels a drag gesture.
|
|
36
|
+
*
|
|
37
|
+
* ```jsx
|
|
38
|
+
* dragControls.cancel()
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
cancel() {
|
|
44
|
+
this.componentControls.forEach((o) => {
|
|
45
|
+
o.cancel();
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Stops a drag gesture.
|
|
50
|
+
*
|
|
51
|
+
* ```jsx
|
|
52
|
+
* dragControls.stop()
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
stop() {
|
|
58
|
+
this.componentControls.forEach((o) => {
|
|
59
|
+
o.stop();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const e = () => new s();
|
|
64
|
+
function l() {
|
|
65
|
+
return r(e);
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
s as DragControls,
|
|
69
|
+
l as useDragControls
|
|
70
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useIsomorphicLayoutEffect as a } from "../utils/use-isomorphic-effect.js";
|
|
2
|
+
import { useMotionValue as c } from "./use-motion-value.js";
|
|
3
|
+
import { frame as m, cancelFrame as p } from "../../../../motion-dom/dist/es/frameloop/frame.js";
|
|
4
|
+
function d(n, t) {
|
|
5
|
+
const r = c(t()), e = () => r.set(t());
|
|
6
|
+
return e(), a(() => {
|
|
7
|
+
const s = () => m.preRender(e, !1, !0), u = n.map((o) => o.on("change", s));
|
|
8
|
+
return () => {
|
|
9
|
+
u.forEach((o) => o()), p(e);
|
|
10
|
+
};
|
|
11
|
+
}), r;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
d as useCombineMotionValues
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useCombineMotionValues as n } from "./use-combine-values.js";
|
|
2
|
+
import { collectMotionValues as e } from "../../../../motion-dom/dist/es/value/index.js";
|
|
3
|
+
function i(o) {
|
|
4
|
+
e.current = [], o();
|
|
5
|
+
const r = n(e.current, o);
|
|
6
|
+
return e.current = void 0, r;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
i as useComputed
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useContext as s, useState as r, useEffect as u } from "react";
|
|
2
|
+
import { MotionConfigContext as f } from "../context/MotionConfigContext.js";
|
|
3
|
+
import { useConstant as i } from "../utils/use-constant.js";
|
|
4
|
+
import { motionValue as m } from "../../../../motion-dom/dist/es/value/index.js";
|
|
5
|
+
function x(t) {
|
|
6
|
+
const o = i(() => m(t)), { isStatic: e } = s(f);
|
|
7
|
+
if (e) {
|
|
8
|
+
const [, n] = r(t);
|
|
9
|
+
u(() => o.on("change", n), []);
|
|
10
|
+
}
|
|
11
|
+
return o;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
x as useMotionValue
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useConstant as u } from "../utils/use-constant.js";
|
|
2
|
+
import { useCombineMotionValues as c } from "./use-combine-values.js";
|
|
3
|
+
import { useComputed as i } from "./use-computed.js";
|
|
4
|
+
import { transform as a } from "../../../../motion-dom/dist/es/utils/transform.js";
|
|
5
|
+
function C(t, o, r, e) {
|
|
6
|
+
if (typeof t == "function")
|
|
7
|
+
return i(t);
|
|
8
|
+
const s = typeof o == "function" ? o : a(o, r, e);
|
|
9
|
+
return Array.isArray(t) ? f(t, s) : f([t], ([m]) => s(m));
|
|
10
|
+
}
|
|
11
|
+
function f(t, o) {
|
|
12
|
+
const r = u(() => []);
|
|
13
|
+
return c(t, () => {
|
|
14
|
+
r.length = 0;
|
|
15
|
+
const e = t.length;
|
|
16
|
+
for (let n = 0; n < e; n++)
|
|
17
|
+
r[n] = t[n].get();
|
|
18
|
+
return o(r);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
C as useTransform
|
|
23
|
+
};
|
|
@@ -23,7 +23,7 @@ import { eachAxis as G } from "../utils/each-axis.js";
|
|
|
23
23
|
import { FlatTree as St } from "../utils/flat-tree.js";
|
|
24
24
|
import { hasTransform as S, hasScale as q, has2DTranslate as Pt } from "../utils/has-transform.js";
|
|
25
25
|
import { globalProjectionState as F } from "./state.js";
|
|
26
|
-
import { frame as V, cancelFrame as X,
|
|
26
|
+
import { frame as V, cancelFrame as X, frameData as y, frameSteps as O } from "../../frameloop/frame.js";
|
|
27
27
|
import { SubscriptionManager as Bt } from "../../../../../motion-utils/dist/es/subscription-manager.js";
|
|
28
28
|
import { clamp as Rt } from "../../../../../motion-utils/dist/es/clamp.js";
|
|
29
29
|
import { noop as jt } from "../../../../../motion-utils/dist/es/noop.js";
|