@gobolt/genesis 0.2.21 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -11
- package/dist/_virtual/index6.cjs +4 -4
- package/dist/_virtual/index6.js +4 -4
- package/dist/_virtual/index7.cjs +5 -2
- package/dist/_virtual/index7.js +5 -2
- package/dist/_virtual/index8.cjs +3 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/utilities.cjs +3 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/components/Avatar/styles.d.ts +2 -2
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +1 -0
- package/dist/components/Badge/styles.cjs +2 -1
- package/dist/components/Badge/styles.d.ts +2 -2
- package/dist/components/Badge/styles.js +2 -1
- package/dist/components/Breadcrumb/styles.cjs +3 -1
- package/dist/components/Breadcrumb/styles.d.ts +4 -4
- package/dist/components/Breadcrumb/styles.js +3 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/icon-button-styles.d.ts +2 -2
- package/dist/components/Button/styles.d.ts +4 -4
- package/dist/components/Card/styles.d.ts +2 -2
- package/dist/components/Chat/Chat.cjs +247 -0
- package/dist/components/Chat/Chat.d.ts +18 -0
- package/dist/components/Chat/Chat.js +248 -0
- package/dist/components/Chat/Message.cjs +96 -0
- package/dist/components/Chat/Message.d.ts +8 -0
- package/dist/components/Chat/Message.js +97 -0
- package/dist/components/Chat/__stories__/Chat.stories.d.ts +19 -0
- package/dist/components/Chat/index.d.ts +2 -0
- package/dist/components/Checkbox/styles.d.ts +2 -2
- package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +2 -2
- package/dist/components/Dashboard/styles.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.cjs +2 -2
- package/dist/components/DatePicker/DatePicker.d.ts +3 -3
- package/dist/components/DatePicker/DatePicker.js +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.cjs +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.cjs +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.js +2 -2
- package/dist/components/ErrorBoundary/styles.d.ts +2 -2
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.cjs +12 -4
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +1 -1
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +12 -4
- package/dist/components/Filters/__stories__/Filters.stories.d.ts +0 -2
- package/dist/components/Filters/__stories__/mock.d.ts +5 -0
- package/dist/components/Filters/styles.d.ts +4 -4
- package/dist/components/Form/Form.cjs +2 -2
- package/dist/components/Form/Form.d.ts +2 -2
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Glyph/custom/UnitNumber.cjs +51 -0
- package/dist/components/Glyph/custom/UnitNumber.d.ts +5 -0
- package/dist/components/Glyph/custom/UnitNumber.js +52 -0
- package/dist/components/Glyph/custom/__stories__/UnitNumber.stories.d.ts +7 -0
- package/dist/components/Glyph/index.d.ts +2 -0
- package/dist/components/Glyph/styles.d.ts +2 -2
- package/dist/components/Input/Input.cjs +19 -2
- package/dist/components/Input/Input.d.ts +7 -3
- package/dist/components/Input/Input.js +19 -2
- package/dist/components/Input/styles.cjs +43 -12
- package/dist/components/Input/styles.d.ts +5 -4
- package/dist/components/Input/styles.js +43 -12
- package/dist/components/Layout/Content/ResponsiveContent.d.ts +2 -2
- package/dist/components/Layout/Content/styles.d.ts +2 -2
- package/dist/components/Message/Message.cjs +21 -11
- package/dist/components/Message/Message.js +21 -11
- package/dist/components/Notification/Notification.cjs +11 -6
- package/dist/components/Notification/Notification.js +11 -6
- package/dist/components/Notification/NotificationBadge/NotificationBadge.cjs +19 -10
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +19 -10
- package/dist/components/Notification/NotificationBadge/icons/ASN.cjs +2 -2
- package/dist/components/Notification/NotificationBadge/icons/ASN.d.ts +1 -1
- package/dist/components/Notification/NotificationBadge/icons/ASN.js +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Appointment.cjs +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Appointment.d.ts +1 -1
- package/dist/components/Notification/NotificationBadge/icons/Appointment.js +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Inventory.cjs +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Inventory.d.ts +1 -1
- package/dist/components/Notification/NotificationBadge/icons/Inventory.js +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Parcel.cjs +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Parcel.d.ts +1 -1
- package/dist/components/Notification/NotificationBadge/icons/Parcel.js +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Product.cjs +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Product.d.ts +1 -1
- package/dist/components/Notification/NotificationBadge/icons/Product.js +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Route.cjs +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Route.d.ts +1 -1
- package/dist/components/Notification/NotificationBadge/icons/Route.js +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Shipment.cjs +2 -2
- package/dist/components/Notification/NotificationBadge/icons/Shipment.d.ts +1 -1
- package/dist/components/Notification/NotificationBadge/icons/Shipment.js +2 -2
- package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.cjs +2 -2
- package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.d.ts +1 -1
- package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.js +2 -2
- package/dist/components/Notification/NotificationBadge/icons/System.cjs +2 -2
- package/dist/components/Notification/NotificationBadge/icons/System.d.ts +1 -1
- package/dist/components/Notification/NotificationBadge/icons/System.js +2 -2
- package/dist/components/Notification/NotificationRightChevron.cjs +2 -2
- package/dist/components/Notification/NotificationRightChevron.d.ts +1 -1
- package/dist/components/Notification/NotificationRightChevron.js +2 -2
- package/dist/components/Notification/styles.d.ts +2 -2
- package/dist/components/Popover/styles.d.ts +2 -2
- package/dist/components/Progress/Progress.cjs +1 -1
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Progress/styles.d.ts +2 -2
- package/dist/components/Radio/Radio.cjs +3 -3
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/Radio.js +3 -3
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Radio/states/RadioChecked.cjs +2 -2
- package/dist/components/Radio/states/RadioChecked.d.ts +1 -1
- package/dist/components/Radio/states/RadioChecked.js +2 -2
- package/dist/components/Radio/states/RadioCheckedDisabled.cjs +2 -2
- package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +1 -1
- package/dist/components/Radio/states/RadioCheckedDisabled.js +2 -2
- package/dist/components/Radio/states/RadioCheckedFocussed.cjs +2 -2
- package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +1 -1
- package/dist/components/Radio/states/RadioCheckedFocussed.js +2 -2
- package/dist/components/Radio/states/RadioCheckedHover.cjs +2 -2
- package/dist/components/Radio/states/RadioCheckedHover.d.ts +1 -1
- package/dist/components/Radio/states/RadioCheckedHover.js +2 -2
- package/dist/components/Radio/states/RadioUnchecked.cjs +2 -2
- package/dist/components/Radio/states/RadioUnchecked.d.ts +1 -1
- package/dist/components/Radio/states/RadioUnchecked.js +2 -2
- package/dist/components/Radio/states/RadioUncheckedDisabled.cjs +2 -2
- package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +1 -1
- package/dist/components/Radio/states/RadioUncheckedDisabled.js +2 -2
- package/dist/components/Radio/states/RadioUncheckedFocussed.cjs +2 -2
- package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +1 -1
- package/dist/components/Radio/states/RadioUncheckedFocussed.js +2 -2
- package/dist/components/Radio/states/RadioUncheckedHover.cjs +2 -2
- package/dist/components/Radio/states/RadioUncheckedHover.d.ts +1 -1
- package/dist/components/Radio/states/RadioUncheckedHover.js +2 -2
- package/dist/components/Row/Row.cjs +2 -2
- package/dist/components/Row/Row.d.ts +1 -1
- package/dist/components/Row/Row.js +2 -2
- package/dist/components/Row/RowActions/RowActions.d.ts +2 -2
- package/dist/components/Row/RowLabelValue/RowLabelValue.cjs +1 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +2 -2
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +1 -1
- package/dist/components/Row/RowLabelValue/styles.d.ts +2 -2
- package/dist/components/Row/styles.d.ts +2 -2
- package/dist/components/SegmentedControls/styles.d.ts +2 -2
- package/dist/components/Select/Select.cjs +187 -51
- package/dist/components/Select/Select.d.ts +10 -3
- package/dist/components/Select/Select.js +189 -53
- package/dist/components/Select/SelectTrigger.cjs +131 -0
- package/dist/components/Select/SelectTrigger.d.ts +23 -0
- package/dist/components/Select/SelectTrigger.js +132 -0
- package/dist/components/Select/__stories__/Select.stories.d.ts +4 -3
- package/dist/components/Select/index.d.ts +0 -2
- package/dist/components/Switch/styles.d.ts +2 -2
- package/dist/components/Table/Table.cjs +21 -2
- package/dist/components/Table/Table.d.ts +7 -3
- package/dist/components/Table/Table.js +21 -2
- package/dist/components/Table/TableControls/CustomPagination.cjs +321 -0
- package/dist/components/Table/TableControls/CustomPagination.d.ts +13 -0
- package/dist/components/Table/TableControls/CustomPagination.js +321 -0
- package/dist/components/Table/TableControls/PaginationNumber.cjs +44 -0
- package/dist/components/Table/TableControls/PaginationNumber.d.ts +7 -0
- package/dist/components/Table/TableControls/PaginationNumber.js +45 -0
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +74 -39
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.d.ts +3 -1
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +74 -39
- package/dist/components/Table/TableControls/SecondaryTableControlsRow.cjs +8 -6
- package/dist/components/Table/TableControls/SecondaryTableControlsRow.js +8 -6
- package/dist/components/Table/TableControls/TableControls.cjs +3 -1
- package/dist/components/Table/TableControls/TableControls.js +3 -1
- package/dist/components/Table/TableControls/__stories__/CustomPaginationStandalone.stories.d.ts +9 -0
- package/dist/components/Table/TableControls/__stories__/PaginationNumber.stories.d.ts +7 -0
- package/dist/components/Table/TableControls/styles.d.ts +2 -2
- package/dist/components/Table/TablePagination.cjs +51 -0
- package/dist/components/Table/TablePagination.d.ts +13 -0
- package/dist/components/Table/TablePagination.js +52 -0
- package/dist/components/Table/TableWithControls/TableWithControls.cjs +2 -2
- package/dist/components/Table/TableWithControls/TableWithControls.js +2 -2
- package/dist/components/Table/TableWithControls/useTableWithControls.cjs +19 -19
- package/dist/components/Table/TableWithControls/useTableWithControls.js +20 -20
- package/dist/components/Table/__mocks__/table-mocks.cjs +241 -9
- package/dist/components/Table/__mocks__/table-mocks.d.ts +1 -1
- package/dist/components/Table/__mocks__/table-mocks.js +241 -9
- package/dist/components/Table/__stories__/GenesisTable.stories.d.ts +3 -1
- package/dist/components/Table/__stories__/Table.stories.d.ts +4 -4
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/components/Table/styles.cjs +54 -25
- package/dist/components/Table/styles.d.ts +25 -4
- package/dist/components/Table/styles.js +54 -25
- package/dist/components/Tabs/styles.d.ts +2 -2
- package/dist/components/Tile/styles.d.ts +2 -2
- package/dist/components/Toast/Toast.cjs +20 -10
- package/dist/components/Toast/Toast.js +20 -10
- package/dist/components/Tooltip/Tooltip.cjs +4 -4
- package/dist/components/Tooltip/Tooltip.js +4 -4
- package/dist/components/Tooltip/styles.cjs +18 -2
- package/dist/components/Tooltip/styles.d.ts +2 -2
- package/dist/components/Tooltip/styles.js +18 -2
- package/dist/components/Typography/Typography.cjs +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/styles.cjs +4 -2
- package/dist/components/Typography/styles.d.ts +4 -4
- package/dist/components/Typography/styles.js +4 -2
- package/dist/components/index.d.ts +4 -2
- package/dist/components/shared/DropdownChevron.cjs +3 -3
- package/dist/components/shared/DropdownChevron.d.ts +1 -1
- package/dist/components/shared/DropdownChevron.js +3 -3
- package/dist/genesis/GenesisThemeDemo.d.ts +2 -2
- package/dist/genesis/styles.d.ts +3 -3
- package/dist/index.cjs +6 -4
- package/dist/index.js +52 -50
- package/dist/node_modules/@socket.io/component-emitter/lib/esm/index.cjs +72 -0
- package/dist/node_modules/@socket.io/component-emitter/lib/esm/index.js +73 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs +67 -0
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +68 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.cjs +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs +134 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +135 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.cjs +21 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +22 -0
- package/dist/node_modules/bail/index.cjs +7 -0
- package/dist/node_modules/bail/index.js +8 -0
- package/dist/node_modules/comma-separated-tokens/index.cjs +9 -0
- package/dist/node_modules/comma-separated-tokens/index.js +10 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.cjs +16 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +17 -0
- package/dist/node_modules/devlop/lib/default.cjs +7 -0
- package/dist/node_modules/devlop/lib/default.js +8 -0
- package/dist/node_modules/engine.io-client/build/esm/contrib/has-cors.cjs +8 -0
- package/dist/node_modules/engine.io-client/build/esm/contrib/has-cors.js +9 -0
- package/dist/node_modules/engine.io-client/build/esm/contrib/parseqs.cjs +23 -0
- package/dist/node_modules/engine.io-client/build/esm/contrib/parseqs.js +24 -0
- package/dist/node_modules/engine.io-client/build/esm/contrib/parseuri.cjs +60 -0
- package/dist/node_modules/engine.io-client/build/esm/contrib/parseuri.js +61 -0
- package/dist/node_modules/engine.io-client/build/esm/globals.cjs +25 -0
- package/dist/node_modules/engine.io-client/build/esm/globals.js +26 -0
- package/dist/node_modules/engine.io-client/build/esm/socket.cjs +575 -0
- package/dist/node_modules/engine.io-client/build/esm/socket.js +576 -0
- package/dist/node_modules/engine.io-client/build/esm/transport.cjs +137 -0
- package/dist/node_modules/engine.io-client/build/esm/transport.js +138 -0
- package/dist/node_modules/engine.io-client/build/esm/transports/index.cjs +10 -0
- package/dist/node_modules/engine.io-client/build/esm/transports/index.js +11 -0
- package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.cjs +248 -0
- package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +249 -0
- package/dist/node_modules/engine.io-client/build/esm/transports/polling.cjs +134 -0
- package/dist/node_modules/engine.io-client/build/esm/transports/polling.js +135 -0
- package/dist/node_modules/engine.io-client/build/esm/transports/websocket.cjs +101 -0
- package/dist/node_modules/engine.io-client/build/esm/transports/websocket.js +102 -0
- package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.cjs +66 -0
- package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js +67 -0
- package/dist/node_modules/engine.io-client/build/esm/util.cjs +52 -0
- package/dist/node_modules/engine.io-client/build/esm/util.js +53 -0
- package/dist/node_modules/engine.io-parser/build/esm/commons.cjs +17 -0
- package/dist/node_modules/engine.io-parser/build/esm/commons.js +18 -0
- package/dist/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.cjs +27 -0
- package/dist/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +28 -0
- package/dist/node_modules/engine.io-parser/build/esm/decodePacket.browser.cjs +55 -0
- package/dist/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +56 -0
- package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.cjs +56 -0
- package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +57 -0
- package/dist/node_modules/engine.io-parser/build/esm/index.cjs +151 -0
- package/dist/node_modules/engine.io-parser/build/esm/index.js +152 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.cjs +10 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +11 -0
- package/dist/node_modules/extend/index.cjs +93 -0
- package/dist/node_modules/extend/index.js +94 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +389 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +390 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.cjs +9 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/html-url-attributes/lib/index.cjs +25 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/node_modules/inline-style-parser/index.cjs +140 -0
- package/dist/node_modules/inline-style-parser/index.js +141 -0
- package/dist/node_modules/is-plain-obj/index.cjs +9 -0
- package/dist/node_modules/is-plain-obj/index.js +10 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs +718 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +719 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.cjs +114 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +115 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.cjs +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs +23 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +24 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.cjs +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs +40 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +41 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.cjs +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.cjs +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +11 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs +18 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.cjs +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +16 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.cjs +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +59 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs +23 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +24 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.cjs +17 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +18 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs +63 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +64 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.cjs +25 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +26 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.cjs +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.cjs +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs +34 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +35 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.cjs +38 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +39 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.cjs +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.cjs +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.cjs +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +29 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.cjs +147 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +148 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.cjs +37 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +38 -0
- package/dist/node_modules/micromark/lib/constructs.cjs +92 -0
- package/dist/node_modules/micromark/lib/constructs.js +93 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.cjs +319 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +320 -0
- package/dist/node_modules/micromark/lib/initialize/content.cjs +52 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +53 -0
- package/dist/node_modules/micromark/lib/initialize/document.cjs +185 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +186 -0
- package/dist/node_modules/micromark/lib/initialize/flow.cjs +41 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +42 -0
- package/dist/node_modules/micromark/lib/initialize/text.cjs +141 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +142 -0
- package/dist/node_modules/micromark/lib/parse.cjs +33 -0
- package/dist/node_modules/micromark/lib/parse.js +34 -0
- package/dist/node_modules/micromark/lib/postprocess.cjs +8 -0
- package/dist/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/node_modules/micromark/lib/preprocess.cjs +79 -0
- package/dist/node_modules/micromark/lib/preprocess.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.cjs +134 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +135 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.cjs +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +103 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.cjs +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.cjs +60 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +61 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.cjs +27 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +28 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.cjs +67 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +68 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.cjs +185 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +186 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.cjs +66 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +67 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.cjs +115 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +116 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.cjs +74 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +75 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.cjs +93 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +94 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.cjs +22 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +23 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.cjs +94 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +95 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.cjs +382 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +383 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.cjs +308 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +309 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.cjs +234 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +235 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.cjs +32 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +33 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.cjs +23 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +24 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.cjs +16 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.cjs +134 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +135 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.cjs +94 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +95 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.cjs +41 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +42 -0
- package/dist/node_modules/micromark-factory-destination/index.cjs +93 -0
- package/dist/node_modules/micromark-factory-destination/index.js +94 -0
- package/dist/node_modules/micromark-factory-label/index.cjs +62 -0
- package/dist/node_modules/micromark-factory-label/index.js +63 -0
- package/dist/node_modules/micromark-factory-space/index.cjs +23 -0
- package/dist/node_modules/micromark-factory-space/index.js +24 -0
- package/dist/node_modules/micromark-factory-title/index.cjs +64 -0
- package/dist/node_modules/micromark-factory-title/index.js +65 -0
- package/dist/node_modules/micromark-factory-whitespace/index.cjs +21 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +22 -0
- package/dist/node_modules/micromark-util-character/index.cjs +43 -0
- package/dist/node_modules/micromark-util-character/index.js +44 -0
- package/dist/node_modules/micromark-util-chunked/index.cjs +35 -0
- package/dist/node_modules/micromark-util-chunked/index.js +36 -0
- package/dist/node_modules/micromark-util-classify-character/index.cjs +11 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +12 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.cjs +40 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +41 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.cjs +18 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +19 -0
- package/dist/node_modules/micromark-util-decode-string/index.cjs +20 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +21 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.cjs +68 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +69 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.cjs +5 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.cjs +14 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +15 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.cjs +40 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +41 -0
- package/dist/node_modules/micromark-util-subtokenize/index.cjs +156 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +157 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.cjs +193 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +194 -0
- package/dist/node_modules/property-information/index.cjs +12 -0
- package/dist/node_modules/property-information/index.js +13 -0
- package/dist/node_modules/property-information/lib/aria.cjs +60 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.cjs +39 -0
- package/dist/node_modules/property-information/lib/find.js +40 -0
- package/dist/node_modules/property-information/lib/hast-to-react.cjs +21 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.cjs +367 -0
- package/dist/node_modules/property-information/lib/html.js +368 -0
- package/dist/node_modules/property-information/lib/normalize.cjs +5 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.cjs +565 -0
- package/dist/node_modules/property-information/lib/svg.js +566 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.cjs +6 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.cjs +5 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.cjs +24 -0
- package/dist/node_modules/property-information/lib/util/create.js +25 -0
- package/dist/node_modules/property-information/lib/util/defined-info.cjs +40 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +41 -0
- package/dist/node_modules/property-information/lib/util/info.cjs +28 -0
- package/dist/node_modules/property-information/lib/util/info.js +29 -0
- package/dist/node_modules/property-information/lib/util/merge.cjs +12 -0
- package/dist/node_modules/property-information/lib/util/merge.js +13 -0
- package/dist/node_modules/property-information/lib/util/schema.cjs +24 -0
- package/dist/node_modules/property-information/lib/util/schema.js +25 -0
- package/dist/node_modules/property-information/lib/util/types.cjs +19 -0
- package/dist/node_modules/property-information/lib/util/types.js +20 -0
- package/dist/node_modules/property-information/lib/xlink.cjs +18 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.cjs +10 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.cjs +10 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-icons/hi/index.cjs +32 -0
- package/dist/node_modules/react-icons/hi/index.js +33 -1
- package/dist/node_modules/react-icons/pi/index.cjs +4 -0
- package/dist/node_modules/react-icons/pi/index.js +5 -1
- package/dist/node_modules/react-markdown/lib/index.cjs +148 -0
- package/dist/node_modules/react-markdown/lib/index.js +149 -0
- package/dist/node_modules/remark-parse/lib/index.cjs +18 -0
- package/dist/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/node_modules/remark-rehype/lib/index.cjs +20 -0
- package/dist/node_modules/remark-rehype/lib/index.js +21 -0
- package/dist/node_modules/socket.io-client/build/esm/contrib/backo2.cjs +31 -0
- package/dist/node_modules/socket.io-client/build/esm/contrib/backo2.js +32 -0
- package/dist/node_modules/socket.io-client/build/esm/index.cjs +58 -0
- package/dist/node_modules/socket.io-client/build/esm/index.js +58 -0
- package/dist/node_modules/socket.io-client/build/esm/manager.cjs +363 -0
- package/dist/node_modules/socket.io-client/build/esm/manager.js +364 -0
- package/dist/node_modules/socket.io-client/build/esm/on.cjs +8 -0
- package/dist/node_modules/socket.io-client/build/esm/on.js +9 -0
- package/dist/node_modules/socket.io-client/build/esm/socket.cjs +777 -0
- package/dist/node_modules/socket.io-client/build/esm/socket.js +778 -0
- package/dist/node_modules/socket.io-client/build/esm/url.cjs +48 -0
- package/dist/node_modules/socket.io-client/build/esm/url.js +49 -0
- package/dist/node_modules/socket.io-parser/build/esm/binary.cjs +64 -0
- package/dist/node_modules/socket.io-parser/build/esm/binary.js +65 -0
- package/dist/node_modules/socket.io-parser/build/esm/index.cjs +261 -0
- package/dist/node_modules/socket.io-parser/build/esm/index.js +263 -0
- package/dist/node_modules/socket.io-parser/build/esm/is-binary.cjs +38 -0
- package/dist/node_modules/socket.io-parser/build/esm/is-binary.js +39 -0
- package/dist/node_modules/space-separated-tokens/index.cjs +5 -0
- package/dist/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/style-to-js/cjs/index.cjs +30 -0
- package/dist/node_modules/style-to-js/cjs/index.js +31 -0
- package/dist/node_modules/style-to-js/cjs/utilities.cjs +41 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +42 -0
- package/dist/node_modules/style-to-object/cjs/index.cjs +37 -0
- package/dist/node_modules/style-to-object/cjs/index.js +38 -0
- package/dist/node_modules/trim-lines/index.cjs +40 -0
- package/dist/node_modules/trim-lines/index.js +41 -0
- package/dist/node_modules/trough/lib/index.cjs +85 -0
- package/dist/node_modules/trough/lib/index.js +86 -0
- package/dist/node_modules/unified/lib/callable-instance.cjs +29 -0
- package/dist/node_modules/unified/lib/callable-instance.js +30 -0
- package/dist/node_modules/unified/lib/index.cjs +635 -0
- package/dist/node_modules/unified/lib/index.js +636 -0
- package/dist/node_modules/unist-util-is/lib/index.cjs +92 -0
- package/dist/node_modules/unist-util-is/lib/index.js +93 -0
- package/dist/node_modules/unist-util-position/lib/index.cjs +26 -0
- package/dist/node_modules/unist-util-position/lib/index.js +27 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.cjs +26 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +27 -0
- package/dist/node_modules/unist-util-visit/lib/index.cjs +26 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +28 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.cjs +5 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.cjs +82 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +83 -0
- package/dist/node_modules/vfile/lib/index.cjs +461 -0
- package/dist/node_modules/vfile/lib/index.js +462 -0
- package/dist/node_modules/vfile/lib/minpath.browser.cjs +213 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +214 -0
- package/dist/node_modules/vfile/lib/minproc.browser.cjs +6 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.cjs +45 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +46 -0
- package/dist/node_modules/vfile/lib/minurl.shared.cjs +8 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +9 -0
- package/dist/node_modules/vfile-message/lib/index.cjs +137 -0
- package/dist/node_modules/vfile-message/lib/index.js +138 -0
- package/dist/providers/BreakpointProvider.cjs +4 -2
- package/dist/providers/BreakpointProvider.d.ts +2 -2
- package/dist/providers/BreakpointProvider.js +4 -2
- package/dist/providers/GenesisProvider.cjs +1 -1
- package/dist/providers/GenesisProvider.d.ts +2 -2
- package/dist/providers/GenesisProvider.js +1 -1
- package/dist/providers/ToastProvider.cjs +3 -3
- package/dist/providers/ToastProvider.js +3 -3
- package/dist/providers/useGenesis.cjs +1 -1
- package/dist/providers/useGenesis.js +1 -1
- package/dist/styles/global-styles.cjs +1 -1
- package/dist/styles/global-styles.js +1 -1
- package/dist/styles/theme/genesis-theme.cjs +19 -8
- package/dist/styles/theme/genesis-theme.js +20 -9
- package/dist/styles/theme/genesis-theme.types.d.ts +7 -1
- package/dist/utils/icon-util.cjs +57 -48
- package/dist/utils/icon-util.js +58 -49
- package/dist/utils/styled.d.ts +1 -6
- package/dist/utils/user-util.cjs +2 -2
- package/dist/utils/user-util.js +2 -2
- package/package.json +11 -2
- package/dist/components/Select/MultiSelectCount.cjs +0 -48
- package/dist/components/Select/MultiSelectCount.d.ts +0 -13
- package/dist/components/Select/MultiSelectCount.js +0 -49
- package/dist/components/Select/__stories__/MultiSelectCount.stories.d.ts +0 -8
- package/dist/components/Select/styles.cjs +0 -238
- package/dist/components/Select/styles.d.ts +0 -41
- package/dist/components/Select/styles.js +0 -239
- package/dist/node_modules/@ant-design/icons/es/icons/ClockCircleFilled.cjs +0 -35
- package/dist/node_modules/@ant-design/icons/es/icons/ClockCircleFilled.js +0 -17
- package/dist/node_modules/@ant-design/icons/es/icons/MinusCircleFilled.cjs +0 -35
- package/dist/node_modules/@ant-design/icons/es/icons/MinusCircleFilled.js +0 -17
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ClockCircleFilled.cjs +0 -3
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ClockCircleFilled.js +0 -4
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MinusCircleFilled.cjs +0 -3
- package/dist/node_modules/@ant-design/icons-svg/es/asn/MinusCircleFilled.js +0 -4
- package/dist/node_modules/debounce/index.cjs +0 -83
- package/dist/node_modules/debounce/index.js +0 -84
- package/dist/utils/styled.cjs +0 -10
- package/dist/utils/styled.js +0 -11
- /package/dist/components/{Select/__tests__/Select.test.d.ts → Table/TableControls/__tests__/CustomPagination.test.d.ts} +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
const minpath = { basename, dirname, extname, join, sep: "/" };
|
|
2
|
+
function basename(path, extname2) {
|
|
3
|
+
if (extname2 !== void 0 && typeof extname2 !== "string") {
|
|
4
|
+
throw new TypeError('"ext" argument must be a string');
|
|
5
|
+
}
|
|
6
|
+
assertPath(path);
|
|
7
|
+
let start = 0;
|
|
8
|
+
let end = -1;
|
|
9
|
+
let index = path.length;
|
|
10
|
+
let seenNonSlash;
|
|
11
|
+
if (extname2 === void 0 || extname2.length === 0 || extname2.length > path.length) {
|
|
12
|
+
while (index--) {
|
|
13
|
+
if (path.codePointAt(index) === 47) {
|
|
14
|
+
if (seenNonSlash) {
|
|
15
|
+
start = index + 1;
|
|
16
|
+
break;
|
|
17
|
+
}
|
|
18
|
+
} else if (end < 0) {
|
|
19
|
+
seenNonSlash = true;
|
|
20
|
+
end = index + 1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return end < 0 ? "" : path.slice(start, end);
|
|
24
|
+
}
|
|
25
|
+
if (extname2 === path) {
|
|
26
|
+
return "";
|
|
27
|
+
}
|
|
28
|
+
let firstNonSlashEnd = -1;
|
|
29
|
+
let extnameIndex = extname2.length - 1;
|
|
30
|
+
while (index--) {
|
|
31
|
+
if (path.codePointAt(index) === 47) {
|
|
32
|
+
if (seenNonSlash) {
|
|
33
|
+
start = index + 1;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
} else {
|
|
37
|
+
if (firstNonSlashEnd < 0) {
|
|
38
|
+
seenNonSlash = true;
|
|
39
|
+
firstNonSlashEnd = index + 1;
|
|
40
|
+
}
|
|
41
|
+
if (extnameIndex > -1) {
|
|
42
|
+
if (path.codePointAt(index) === extname2.codePointAt(extnameIndex--)) {
|
|
43
|
+
if (extnameIndex < 0) {
|
|
44
|
+
end = index;
|
|
45
|
+
}
|
|
46
|
+
} else {
|
|
47
|
+
extnameIndex = -1;
|
|
48
|
+
end = firstNonSlashEnd;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (start === end) {
|
|
54
|
+
end = firstNonSlashEnd;
|
|
55
|
+
} else if (end < 0) {
|
|
56
|
+
end = path.length;
|
|
57
|
+
}
|
|
58
|
+
return path.slice(start, end);
|
|
59
|
+
}
|
|
60
|
+
function dirname(path) {
|
|
61
|
+
assertPath(path);
|
|
62
|
+
if (path.length === 0) {
|
|
63
|
+
return ".";
|
|
64
|
+
}
|
|
65
|
+
let end = -1;
|
|
66
|
+
let index = path.length;
|
|
67
|
+
let unmatchedSlash;
|
|
68
|
+
while (--index) {
|
|
69
|
+
if (path.codePointAt(index) === 47) {
|
|
70
|
+
if (unmatchedSlash) {
|
|
71
|
+
end = index;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
} else if (!unmatchedSlash) {
|
|
75
|
+
unmatchedSlash = true;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return end < 0 ? path.codePointAt(0) === 47 ? "/" : "." : end === 1 && path.codePointAt(0) === 47 ? "//" : path.slice(0, end);
|
|
79
|
+
}
|
|
80
|
+
function extname(path) {
|
|
81
|
+
assertPath(path);
|
|
82
|
+
let index = path.length;
|
|
83
|
+
let end = -1;
|
|
84
|
+
let startPart = 0;
|
|
85
|
+
let startDot = -1;
|
|
86
|
+
let preDotState = 0;
|
|
87
|
+
let unmatchedSlash;
|
|
88
|
+
while (index--) {
|
|
89
|
+
const code = path.codePointAt(index);
|
|
90
|
+
if (code === 47) {
|
|
91
|
+
if (unmatchedSlash) {
|
|
92
|
+
startPart = index + 1;
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
if (end < 0) {
|
|
98
|
+
unmatchedSlash = true;
|
|
99
|
+
end = index + 1;
|
|
100
|
+
}
|
|
101
|
+
if (code === 46) {
|
|
102
|
+
if (startDot < 0) {
|
|
103
|
+
startDot = index;
|
|
104
|
+
} else if (preDotState !== 1) {
|
|
105
|
+
preDotState = 1;
|
|
106
|
+
}
|
|
107
|
+
} else if (startDot > -1) {
|
|
108
|
+
preDotState = -1;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (startDot < 0 || end < 0 || // We saw a non-dot character immediately before the dot.
|
|
112
|
+
preDotState === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
113
|
+
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
114
|
+
return "";
|
|
115
|
+
}
|
|
116
|
+
return path.slice(startDot, end);
|
|
117
|
+
}
|
|
118
|
+
function join(...segments) {
|
|
119
|
+
let index = -1;
|
|
120
|
+
let joined;
|
|
121
|
+
while (++index < segments.length) {
|
|
122
|
+
assertPath(segments[index]);
|
|
123
|
+
if (segments[index]) {
|
|
124
|
+
joined = joined === void 0 ? segments[index] : joined + "/" + segments[index];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return joined === void 0 ? "." : normalize(joined);
|
|
128
|
+
}
|
|
129
|
+
function normalize(path) {
|
|
130
|
+
assertPath(path);
|
|
131
|
+
const absolute = path.codePointAt(0) === 47;
|
|
132
|
+
let value = normalizeString(path, !absolute);
|
|
133
|
+
if (value.length === 0 && !absolute) {
|
|
134
|
+
value = ".";
|
|
135
|
+
}
|
|
136
|
+
if (value.length > 0 && path.codePointAt(path.length - 1) === 47) {
|
|
137
|
+
value += "/";
|
|
138
|
+
}
|
|
139
|
+
return absolute ? "/" + value : value;
|
|
140
|
+
}
|
|
141
|
+
function normalizeString(path, allowAboveRoot) {
|
|
142
|
+
let result = "";
|
|
143
|
+
let lastSegmentLength = 0;
|
|
144
|
+
let lastSlash = -1;
|
|
145
|
+
let dots = 0;
|
|
146
|
+
let index = -1;
|
|
147
|
+
let code;
|
|
148
|
+
let lastSlashIndex;
|
|
149
|
+
while (++index <= path.length) {
|
|
150
|
+
if (index < path.length) {
|
|
151
|
+
code = path.codePointAt(index);
|
|
152
|
+
} else if (code === 47) {
|
|
153
|
+
break;
|
|
154
|
+
} else {
|
|
155
|
+
code = 47;
|
|
156
|
+
}
|
|
157
|
+
if (code === 47) {
|
|
158
|
+
if (lastSlash === index - 1 || dots === 1) ;
|
|
159
|
+
else if (lastSlash !== index - 1 && dots === 2) {
|
|
160
|
+
if (result.length < 2 || lastSegmentLength !== 2 || result.codePointAt(result.length - 1) !== 46 || result.codePointAt(result.length - 2) !== 46) {
|
|
161
|
+
if (result.length > 2) {
|
|
162
|
+
lastSlashIndex = result.lastIndexOf("/");
|
|
163
|
+
if (lastSlashIndex !== result.length - 1) {
|
|
164
|
+
if (lastSlashIndex < 0) {
|
|
165
|
+
result = "";
|
|
166
|
+
lastSegmentLength = 0;
|
|
167
|
+
} else {
|
|
168
|
+
result = result.slice(0, lastSlashIndex);
|
|
169
|
+
lastSegmentLength = result.length - 1 - result.lastIndexOf("/");
|
|
170
|
+
}
|
|
171
|
+
lastSlash = index;
|
|
172
|
+
dots = 0;
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
} else if (result.length > 0) {
|
|
176
|
+
result = "";
|
|
177
|
+
lastSegmentLength = 0;
|
|
178
|
+
lastSlash = index;
|
|
179
|
+
dots = 0;
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if (allowAboveRoot) {
|
|
184
|
+
result = result.length > 0 ? result + "/.." : "..";
|
|
185
|
+
lastSegmentLength = 2;
|
|
186
|
+
}
|
|
187
|
+
} else {
|
|
188
|
+
if (result.length > 0) {
|
|
189
|
+
result += "/" + path.slice(lastSlash + 1, index);
|
|
190
|
+
} else {
|
|
191
|
+
result = path.slice(lastSlash + 1, index);
|
|
192
|
+
}
|
|
193
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
194
|
+
}
|
|
195
|
+
lastSlash = index;
|
|
196
|
+
dots = 0;
|
|
197
|
+
} else if (code === 46 && dots > -1) {
|
|
198
|
+
dots++;
|
|
199
|
+
} else {
|
|
200
|
+
dots = -1;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return result;
|
|
204
|
+
}
|
|
205
|
+
function assertPath(path) {
|
|
206
|
+
if (typeof path !== "string") {
|
|
207
|
+
throw new TypeError(
|
|
208
|
+
"Path must be a string. Received " + JSON.stringify(path)
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
export {
|
|
213
|
+
minpath
|
|
214
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var minurl_shared = require("./minurl.shared.cjs");
|
|
3
|
+
function urlToPath(path) {
|
|
4
|
+
if (typeof path === "string") {
|
|
5
|
+
path = new URL(path);
|
|
6
|
+
} else if (!minurl_shared.isUrl(path)) {
|
|
7
|
+
const error = new TypeError(
|
|
8
|
+
'The "path" argument must be of type string or an instance of URL. Received `' + path + "`"
|
|
9
|
+
);
|
|
10
|
+
error.code = "ERR_INVALID_ARG_TYPE";
|
|
11
|
+
throw error;
|
|
12
|
+
}
|
|
13
|
+
if (path.protocol !== "file:") {
|
|
14
|
+
const error = new TypeError("The URL must be of scheme file");
|
|
15
|
+
error.code = "ERR_INVALID_URL_SCHEME";
|
|
16
|
+
throw error;
|
|
17
|
+
}
|
|
18
|
+
return getPathFromURLPosix(path);
|
|
19
|
+
}
|
|
20
|
+
function getPathFromURLPosix(url) {
|
|
21
|
+
if (url.hostname !== "") {
|
|
22
|
+
const error = new TypeError(
|
|
23
|
+
'File URL host must be "localhost" or empty on darwin'
|
|
24
|
+
);
|
|
25
|
+
error.code = "ERR_INVALID_FILE_URL_HOST";
|
|
26
|
+
throw error;
|
|
27
|
+
}
|
|
28
|
+
const pathname = url.pathname;
|
|
29
|
+
let index = -1;
|
|
30
|
+
while (++index < pathname.length) {
|
|
31
|
+
if (pathname.codePointAt(index) === 37 && pathname.codePointAt(index + 1) === 50) {
|
|
32
|
+
const third = pathname.codePointAt(index + 2);
|
|
33
|
+
if (third === 70 || third === 102) {
|
|
34
|
+
const error = new TypeError(
|
|
35
|
+
"File URL path must not include encoded / characters"
|
|
36
|
+
);
|
|
37
|
+
error.code = "ERR_INVALID_FILE_URL_PATH";
|
|
38
|
+
throw error;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return decodeURIComponent(pathname);
|
|
43
|
+
}
|
|
44
|
+
exports.isUrl = minurl_shared.isUrl;
|
|
45
|
+
exports.urlToPath = urlToPath;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { isUrl } from "./minurl.shared.js";
|
|
2
|
+
function urlToPath(path) {
|
|
3
|
+
if (typeof path === "string") {
|
|
4
|
+
path = new URL(path);
|
|
5
|
+
} else if (!isUrl(path)) {
|
|
6
|
+
const error = new TypeError(
|
|
7
|
+
'The "path" argument must be of type string or an instance of URL. Received `' + path + "`"
|
|
8
|
+
);
|
|
9
|
+
error.code = "ERR_INVALID_ARG_TYPE";
|
|
10
|
+
throw error;
|
|
11
|
+
}
|
|
12
|
+
if (path.protocol !== "file:") {
|
|
13
|
+
const error = new TypeError("The URL must be of scheme file");
|
|
14
|
+
error.code = "ERR_INVALID_URL_SCHEME";
|
|
15
|
+
throw error;
|
|
16
|
+
}
|
|
17
|
+
return getPathFromURLPosix(path);
|
|
18
|
+
}
|
|
19
|
+
function getPathFromURLPosix(url) {
|
|
20
|
+
if (url.hostname !== "") {
|
|
21
|
+
const error = new TypeError(
|
|
22
|
+
'File URL host must be "localhost" or empty on darwin'
|
|
23
|
+
);
|
|
24
|
+
error.code = "ERR_INVALID_FILE_URL_HOST";
|
|
25
|
+
throw error;
|
|
26
|
+
}
|
|
27
|
+
const pathname = url.pathname;
|
|
28
|
+
let index = -1;
|
|
29
|
+
while (++index < pathname.length) {
|
|
30
|
+
if (pathname.codePointAt(index) === 37 && pathname.codePointAt(index + 1) === 50) {
|
|
31
|
+
const third = pathname.codePointAt(index + 2);
|
|
32
|
+
if (third === 70 || third === 102) {
|
|
33
|
+
const error = new TypeError(
|
|
34
|
+
"File URL path must not include encoded / characters"
|
|
35
|
+
);
|
|
36
|
+
error.code = "ERR_INVALID_FILE_URL_PATH";
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return decodeURIComponent(pathname);
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
isUrl,
|
|
45
|
+
urlToPath
|
|
46
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function isUrl(fileUrlOrPath) {
|
|
3
|
+
return Boolean(
|
|
4
|
+
fileUrlOrPath !== null && typeof fileUrlOrPath === "object" && "href" in fileUrlOrPath && fileUrlOrPath.href && "protocol" in fileUrlOrPath && fileUrlOrPath.protocol && // @ts-expect-error: indexing is fine.
|
|
5
|
+
fileUrlOrPath.auth === void 0
|
|
6
|
+
);
|
|
7
|
+
}
|
|
8
|
+
exports.isUrl = isUrl;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function isUrl(fileUrlOrPath) {
|
|
2
|
+
return Boolean(
|
|
3
|
+
fileUrlOrPath !== null && typeof fileUrlOrPath === "object" && "href" in fileUrlOrPath && fileUrlOrPath.href && "protocol" in fileUrlOrPath && fileUrlOrPath.protocol && // @ts-expect-error: indexing is fine.
|
|
4
|
+
fileUrlOrPath.auth === void 0
|
|
5
|
+
);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
isUrl
|
|
9
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var index = require("../../unist-util-stringify-position/lib/index.cjs");
|
|
3
|
+
class VFileMessage extends Error {
|
|
4
|
+
/**
|
|
5
|
+
* Create a message for `reason`.
|
|
6
|
+
*
|
|
7
|
+
* > 🪦 **Note**: also has obsolete signatures.
|
|
8
|
+
*
|
|
9
|
+
* @overload
|
|
10
|
+
* @param {string} reason
|
|
11
|
+
* @param {Options | null | undefined} [options]
|
|
12
|
+
* @returns
|
|
13
|
+
*
|
|
14
|
+
* @overload
|
|
15
|
+
* @param {string} reason
|
|
16
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
17
|
+
* @param {string | null | undefined} [origin]
|
|
18
|
+
* @returns
|
|
19
|
+
*
|
|
20
|
+
* @overload
|
|
21
|
+
* @param {string} reason
|
|
22
|
+
* @param {Point | Position | null | undefined} place
|
|
23
|
+
* @param {string | null | undefined} [origin]
|
|
24
|
+
* @returns
|
|
25
|
+
*
|
|
26
|
+
* @overload
|
|
27
|
+
* @param {string} reason
|
|
28
|
+
* @param {string | null | undefined} [origin]
|
|
29
|
+
* @returns
|
|
30
|
+
*
|
|
31
|
+
* @overload
|
|
32
|
+
* @param {Error | VFileMessage} cause
|
|
33
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
34
|
+
* @param {string | null | undefined} [origin]
|
|
35
|
+
* @returns
|
|
36
|
+
*
|
|
37
|
+
* @overload
|
|
38
|
+
* @param {Error | VFileMessage} cause
|
|
39
|
+
* @param {Point | Position | null | undefined} place
|
|
40
|
+
* @param {string | null | undefined} [origin]
|
|
41
|
+
* @returns
|
|
42
|
+
*
|
|
43
|
+
* @overload
|
|
44
|
+
* @param {Error | VFileMessage} cause
|
|
45
|
+
* @param {string | null | undefined} [origin]
|
|
46
|
+
* @returns
|
|
47
|
+
*
|
|
48
|
+
* @param {Error | VFileMessage | string} causeOrReason
|
|
49
|
+
* Reason for message, should use markdown.
|
|
50
|
+
* @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
|
|
51
|
+
* Configuration (optional).
|
|
52
|
+
* @param {string | null | undefined} [origin]
|
|
53
|
+
* Place in code where the message originates (example:
|
|
54
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
55
|
+
* @returns
|
|
56
|
+
* Instance of `VFileMessage`.
|
|
57
|
+
*/
|
|
58
|
+
// eslint-disable-next-line complexity
|
|
59
|
+
constructor(causeOrReason, optionsOrParentOrPlace, origin) {
|
|
60
|
+
super();
|
|
61
|
+
if (typeof optionsOrParentOrPlace === "string") {
|
|
62
|
+
origin = optionsOrParentOrPlace;
|
|
63
|
+
optionsOrParentOrPlace = void 0;
|
|
64
|
+
}
|
|
65
|
+
let reason = "";
|
|
66
|
+
let options = {};
|
|
67
|
+
let legacyCause = false;
|
|
68
|
+
if (optionsOrParentOrPlace) {
|
|
69
|
+
if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) {
|
|
70
|
+
options = { place: optionsOrParentOrPlace };
|
|
71
|
+
} else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) {
|
|
72
|
+
options = { place: optionsOrParentOrPlace };
|
|
73
|
+
} else if ("type" in optionsOrParentOrPlace) {
|
|
74
|
+
options = {
|
|
75
|
+
ancestors: [optionsOrParentOrPlace],
|
|
76
|
+
place: optionsOrParentOrPlace.position
|
|
77
|
+
};
|
|
78
|
+
} else {
|
|
79
|
+
options = { ...optionsOrParentOrPlace };
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (typeof causeOrReason === "string") {
|
|
83
|
+
reason = causeOrReason;
|
|
84
|
+
} else if (!options.cause && causeOrReason) {
|
|
85
|
+
legacyCause = true;
|
|
86
|
+
reason = causeOrReason.message;
|
|
87
|
+
options.cause = causeOrReason;
|
|
88
|
+
}
|
|
89
|
+
if (!options.ruleId && !options.source && typeof origin === "string") {
|
|
90
|
+
const index2 = origin.indexOf(":");
|
|
91
|
+
if (index2 === -1) {
|
|
92
|
+
options.ruleId = origin;
|
|
93
|
+
} else {
|
|
94
|
+
options.source = origin.slice(0, index2);
|
|
95
|
+
options.ruleId = origin.slice(index2 + 1);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (!options.place && options.ancestors && options.ancestors) {
|
|
99
|
+
const parent = options.ancestors[options.ancestors.length - 1];
|
|
100
|
+
if (parent) {
|
|
101
|
+
options.place = parent.position;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
const start = options.place && "start" in options.place ? options.place.start : options.place;
|
|
105
|
+
this.ancestors = options.ancestors || void 0;
|
|
106
|
+
this.cause = options.cause || void 0;
|
|
107
|
+
this.column = start ? start.column : void 0;
|
|
108
|
+
this.fatal = void 0;
|
|
109
|
+
this.file;
|
|
110
|
+
this.message = reason;
|
|
111
|
+
this.line = start ? start.line : void 0;
|
|
112
|
+
this.name = index.stringifyPosition(options.place) || "1:1";
|
|
113
|
+
this.place = options.place || void 0;
|
|
114
|
+
this.reason = this.message;
|
|
115
|
+
this.ruleId = options.ruleId || void 0;
|
|
116
|
+
this.source = options.source || void 0;
|
|
117
|
+
this.stack = legacyCause && options.cause && typeof options.cause.stack === "string" ? options.cause.stack : "";
|
|
118
|
+
this.actual;
|
|
119
|
+
this.expected;
|
|
120
|
+
this.note;
|
|
121
|
+
this.url;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
VFileMessage.prototype.file = "";
|
|
125
|
+
VFileMessage.prototype.name = "";
|
|
126
|
+
VFileMessage.prototype.reason = "";
|
|
127
|
+
VFileMessage.prototype.message = "";
|
|
128
|
+
VFileMessage.prototype.stack = "";
|
|
129
|
+
VFileMessage.prototype.column = void 0;
|
|
130
|
+
VFileMessage.prototype.line = void 0;
|
|
131
|
+
VFileMessage.prototype.ancestors = void 0;
|
|
132
|
+
VFileMessage.prototype.cause = void 0;
|
|
133
|
+
VFileMessage.prototype.fatal = void 0;
|
|
134
|
+
VFileMessage.prototype.place = void 0;
|
|
135
|
+
VFileMessage.prototype.ruleId = void 0;
|
|
136
|
+
VFileMessage.prototype.source = void 0;
|
|
137
|
+
exports.VFileMessage = VFileMessage;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { stringifyPosition } from "../../unist-util-stringify-position/lib/index.js";
|
|
2
|
+
class VFileMessage extends Error {
|
|
3
|
+
/**
|
|
4
|
+
* Create a message for `reason`.
|
|
5
|
+
*
|
|
6
|
+
* > 🪦 **Note**: also has obsolete signatures.
|
|
7
|
+
*
|
|
8
|
+
* @overload
|
|
9
|
+
* @param {string} reason
|
|
10
|
+
* @param {Options | null | undefined} [options]
|
|
11
|
+
* @returns
|
|
12
|
+
*
|
|
13
|
+
* @overload
|
|
14
|
+
* @param {string} reason
|
|
15
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
16
|
+
* @param {string | null | undefined} [origin]
|
|
17
|
+
* @returns
|
|
18
|
+
*
|
|
19
|
+
* @overload
|
|
20
|
+
* @param {string} reason
|
|
21
|
+
* @param {Point | Position | null | undefined} place
|
|
22
|
+
* @param {string | null | undefined} [origin]
|
|
23
|
+
* @returns
|
|
24
|
+
*
|
|
25
|
+
* @overload
|
|
26
|
+
* @param {string} reason
|
|
27
|
+
* @param {string | null | undefined} [origin]
|
|
28
|
+
* @returns
|
|
29
|
+
*
|
|
30
|
+
* @overload
|
|
31
|
+
* @param {Error | VFileMessage} cause
|
|
32
|
+
* @param {Node | NodeLike | null | undefined} parent
|
|
33
|
+
* @param {string | null | undefined} [origin]
|
|
34
|
+
* @returns
|
|
35
|
+
*
|
|
36
|
+
* @overload
|
|
37
|
+
* @param {Error | VFileMessage} cause
|
|
38
|
+
* @param {Point | Position | null | undefined} place
|
|
39
|
+
* @param {string | null | undefined} [origin]
|
|
40
|
+
* @returns
|
|
41
|
+
*
|
|
42
|
+
* @overload
|
|
43
|
+
* @param {Error | VFileMessage} cause
|
|
44
|
+
* @param {string | null | undefined} [origin]
|
|
45
|
+
* @returns
|
|
46
|
+
*
|
|
47
|
+
* @param {Error | VFileMessage | string} causeOrReason
|
|
48
|
+
* Reason for message, should use markdown.
|
|
49
|
+
* @param {Node | NodeLike | Options | Point | Position | string | null | undefined} [optionsOrParentOrPlace]
|
|
50
|
+
* Configuration (optional).
|
|
51
|
+
* @param {string | null | undefined} [origin]
|
|
52
|
+
* Place in code where the message originates (example:
|
|
53
|
+
* `'my-package:my-rule'` or `'my-rule'`).
|
|
54
|
+
* @returns
|
|
55
|
+
* Instance of `VFileMessage`.
|
|
56
|
+
*/
|
|
57
|
+
// eslint-disable-next-line complexity
|
|
58
|
+
constructor(causeOrReason, optionsOrParentOrPlace, origin) {
|
|
59
|
+
super();
|
|
60
|
+
if (typeof optionsOrParentOrPlace === "string") {
|
|
61
|
+
origin = optionsOrParentOrPlace;
|
|
62
|
+
optionsOrParentOrPlace = void 0;
|
|
63
|
+
}
|
|
64
|
+
let reason = "";
|
|
65
|
+
let options = {};
|
|
66
|
+
let legacyCause = false;
|
|
67
|
+
if (optionsOrParentOrPlace) {
|
|
68
|
+
if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) {
|
|
69
|
+
options = { place: optionsOrParentOrPlace };
|
|
70
|
+
} else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) {
|
|
71
|
+
options = { place: optionsOrParentOrPlace };
|
|
72
|
+
} else if ("type" in optionsOrParentOrPlace) {
|
|
73
|
+
options = {
|
|
74
|
+
ancestors: [optionsOrParentOrPlace],
|
|
75
|
+
place: optionsOrParentOrPlace.position
|
|
76
|
+
};
|
|
77
|
+
} else {
|
|
78
|
+
options = { ...optionsOrParentOrPlace };
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (typeof causeOrReason === "string") {
|
|
82
|
+
reason = causeOrReason;
|
|
83
|
+
} else if (!options.cause && causeOrReason) {
|
|
84
|
+
legacyCause = true;
|
|
85
|
+
reason = causeOrReason.message;
|
|
86
|
+
options.cause = causeOrReason;
|
|
87
|
+
}
|
|
88
|
+
if (!options.ruleId && !options.source && typeof origin === "string") {
|
|
89
|
+
const index = origin.indexOf(":");
|
|
90
|
+
if (index === -1) {
|
|
91
|
+
options.ruleId = origin;
|
|
92
|
+
} else {
|
|
93
|
+
options.source = origin.slice(0, index);
|
|
94
|
+
options.ruleId = origin.slice(index + 1);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if (!options.place && options.ancestors && options.ancestors) {
|
|
98
|
+
const parent = options.ancestors[options.ancestors.length - 1];
|
|
99
|
+
if (parent) {
|
|
100
|
+
options.place = parent.position;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
const start = options.place && "start" in options.place ? options.place.start : options.place;
|
|
104
|
+
this.ancestors = options.ancestors || void 0;
|
|
105
|
+
this.cause = options.cause || void 0;
|
|
106
|
+
this.column = start ? start.column : void 0;
|
|
107
|
+
this.fatal = void 0;
|
|
108
|
+
this.file;
|
|
109
|
+
this.message = reason;
|
|
110
|
+
this.line = start ? start.line : void 0;
|
|
111
|
+
this.name = stringifyPosition(options.place) || "1:1";
|
|
112
|
+
this.place = options.place || void 0;
|
|
113
|
+
this.reason = this.message;
|
|
114
|
+
this.ruleId = options.ruleId || void 0;
|
|
115
|
+
this.source = options.source || void 0;
|
|
116
|
+
this.stack = legacyCause && options.cause && typeof options.cause.stack === "string" ? options.cause.stack : "";
|
|
117
|
+
this.actual;
|
|
118
|
+
this.expected;
|
|
119
|
+
this.note;
|
|
120
|
+
this.url;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
VFileMessage.prototype.file = "";
|
|
124
|
+
VFileMessage.prototype.name = "";
|
|
125
|
+
VFileMessage.prototype.reason = "";
|
|
126
|
+
VFileMessage.prototype.message = "";
|
|
127
|
+
VFileMessage.prototype.stack = "";
|
|
128
|
+
VFileMessage.prototype.column = void 0;
|
|
129
|
+
VFileMessage.prototype.line = void 0;
|
|
130
|
+
VFileMessage.prototype.ancestors = void 0;
|
|
131
|
+
VFileMessage.prototype.cause = void 0;
|
|
132
|
+
VFileMessage.prototype.fatal = void 0;
|
|
133
|
+
VFileMessage.prototype.place = void 0;
|
|
134
|
+
VFileMessage.prototype.ruleId = void 0;
|
|
135
|
+
VFileMessage.prototype.source = void 0;
|
|
136
|
+
export {
|
|
137
|
+
VFileMessage
|
|
138
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
var React = require("react");
|
|
4
|
-
var styled = require("
|
|
4
|
+
var styled = require("styled-components");
|
|
5
5
|
const BreakpointContext = React.createContext("wide");
|
|
6
|
-
const BreakpointProvider = ({
|
|
6
|
+
const BreakpointProvider = ({
|
|
7
|
+
children
|
|
8
|
+
}) => {
|
|
7
9
|
const [currentBreakpoint, setCurrentBreakpoint] = React.useState("wide");
|
|
8
10
|
const theme = styled.useTheme();
|
|
9
11
|
React.useEffect(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
interface
|
|
2
|
+
interface BreakpointProviderProperties {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const BreakpointProvider: ({ children }:
|
|
5
|
+
export declare const BreakpointProvider: ({ children, }: BreakpointProviderProperties) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const useBreakpoint: () => "narrow" | "medium" | "wide";
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useContext, useState, useEffect, createContext } from "react";
|
|
3
|
-
import { useTheme } from "
|
|
3
|
+
import { useTheme } from "styled-components";
|
|
4
4
|
const BreakpointContext = createContext("wide");
|
|
5
|
-
const BreakpointProvider = ({
|
|
5
|
+
const BreakpointProvider = ({
|
|
6
|
+
children
|
|
7
|
+
}) => {
|
|
6
8
|
const [currentBreakpoint, setCurrentBreakpoint] = useState("wide");
|
|
7
9
|
const theme = useTheme();
|
|
8
10
|
useEffect(() => {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
var BreakpointProvider = require("./BreakpointProvider.cjs");
|
|
5
5
|
var ToastProvider = require("./ToastProvider.cjs");
|
|
6
|
-
var styled = require("
|
|
6
|
+
var styled = require("styled-components");
|
|
7
7
|
var genesisTheme = require("../styles/theme/genesis-theme.cjs");
|
|
8
8
|
const GenesisProvider = ({
|
|
9
9
|
children,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
interface
|
|
2
|
+
interface GenesisProviderProperties {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
isDarkMode?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const GenesisProvider: React.FC<
|
|
6
|
+
export declare const GenesisProvider: React.FC<GenesisProviderProperties>;
|
|
7
7
|
export default GenesisProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { BreakpointProvider } from "./BreakpointProvider.js";
|
|
3
3
|
import { ToastProvider } from "./ToastProvider.js";
|
|
4
|
-
import { ThemeProvider } from "
|
|
4
|
+
import { ThemeProvider } from "styled-components";
|
|
5
5
|
import { darkTheme, lightTheme } from "../styles/theme/genesis-theme.js";
|
|
6
6
|
const GenesisProvider = ({
|
|
7
7
|
children,
|