@gobolt/genesis 0.2.20 → 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/index5.cjs +4 -4
- package/dist/_virtual/index5.js +4 -4
- 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/Badge.cjs +3 -3
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +1 -0
- package/dist/components/Badge/styles.cjs +9 -10
- package/dist/components/Badge/styles.d.ts +5 -6
- package/dist/components/Badge/styles.js +9 -10
- 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/antd/es/typography/hooks/useCopyClick.cjs +1 -1
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.js +1 -1
- 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
|
@@ -8,14 +8,14 @@ const Tooltip = ({ tip = "", children }) => {
|
|
|
8
8
|
{
|
|
9
9
|
"data-testid": "Tooltip",
|
|
10
10
|
placement: "top",
|
|
11
|
-
|
|
12
|
-
title: /* @__PURE__ */ jsx(
|
|
11
|
+
title: /* @__PURE__ */ jsx("div", { style: { marginTop: 2 }, children: /* @__PURE__ */ jsx(
|
|
13
12
|
Typography,
|
|
14
13
|
{
|
|
15
|
-
variant: TYPOGRAPHY_VARIANT.
|
|
14
|
+
variant: TYPOGRAPHY_VARIANT.body2,
|
|
15
|
+
color: "white",
|
|
16
16
|
children: tip
|
|
17
17
|
}
|
|
18
|
-
),
|
|
18
|
+
) }),
|
|
19
19
|
children
|
|
20
20
|
}
|
|
21
21
|
);
|
|
@@ -2,8 +2,24 @@
|
|
|
2
2
|
var styled = require("styled-components");
|
|
3
3
|
var index = require("../../node_modules/antd/es/tooltip/index.cjs");
|
|
4
4
|
const getGenesisClass = ({ colors, borderRadius, sizing }, type = "primary", state = "active") => `
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
.ant-tooltip {
|
|
6
|
+
--antd-arrow-background-color: ${colors.surface.dark};
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ant-tooltip-inner {
|
|
10
|
+
background-color: ${colors.surface.dark};
|
|
11
|
+
border-radius: ${borderRadius.sm};
|
|
12
|
+
padding: ${sizing.xs} ${sizing.sm};
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
line-height: 20px;
|
|
15
|
+
color: ${colors.onsurface.white};
|
|
16
|
+
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ant-tooltip-arrow-content {
|
|
20
|
+
background-color: ${colors.surface.dark};
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
7
23
|
const Tooltip = styled(index)`
|
|
8
24
|
${({ theme, type, state }) => {
|
|
9
25
|
return getGenesisClass(theme, type, state);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
-
interface
|
|
2
|
+
interface StyledTooltipProperties {
|
|
3
3
|
theme?: GenesisTheme;
|
|
4
4
|
type?: "primary" | "secondary";
|
|
5
5
|
state?: "active" | "disabled";
|
|
@@ -13,7 +13,7 @@ export declare const Tooltip: import('styled-components/dist/types').IStyledComp
|
|
|
13
13
|
ref?: import('react').Ref<import('antd/es/tooltip').TooltipRef>;
|
|
14
14
|
}) | (Omit<import('antd/es/tooltip').TooltipPropsWithOverlay & import('react').RefAttributes<import('antd/es/tooltip').TooltipRef>, "ref"> & {
|
|
15
15
|
ref?: import('react').Ref<import('antd/es/tooltip').TooltipRef>;
|
|
16
|
-
}),
|
|
16
|
+
}), StyledTooltipProperties>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd').TooltipProps & import('react').RefAttributes<import('antd/es/tooltip').TooltipRef>> & {
|
|
17
17
|
_InternalPanelDoNotUseOrYouWillBeFired: import('react').FC<import('antd/es/tooltip/PurePanel').PurePanelProps>;
|
|
18
18
|
}, keyof import('react').Component<any, {}, any>>;
|
|
19
19
|
export {};
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import Tooltip$1 from "../../node_modules/antd/es/tooltip/index.js";
|
|
3
3
|
const getGenesisClass = ({ colors, borderRadius, sizing }, type = "primary", state = "active") => `
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
.ant-tooltip {
|
|
5
|
+
--antd-arrow-background-color: ${colors.surface.dark};
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ant-tooltip-inner {
|
|
9
|
+
background-color: ${colors.surface.dark};
|
|
10
|
+
border-radius: ${borderRadius.sm};
|
|
11
|
+
padding: ${sizing.xs} ${sizing.sm};
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
line-height: 20px;
|
|
14
|
+
color: ${colors.onsurface.white};
|
|
15
|
+
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ant-tooltip-arrow-content {
|
|
19
|
+
background-color: ${colors.surface.dark};
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
6
22
|
const Tooltip = styled(Tooltip$1)`
|
|
7
23
|
${({ theme, type, state }) => {
|
|
8
24
|
return getGenesisClass(theme, type, state);
|
|
@@ -17,7 +17,7 @@ const getColor = (color, colors, $themeType) => {
|
|
|
17
17
|
};
|
|
18
18
|
const getFontFamily = (variant) => {
|
|
19
19
|
return `
|
|
20
|
-
${
|
|
20
|
+
${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
|
|
21
21
|
`;
|
|
22
22
|
};
|
|
23
23
|
const getGenesisTypographyClass = ({ colors, typography }, $themeType, variant, state, breakpoint, color, $isFullWidth) => `
|
|
@@ -57,7 +57,9 @@ const Headline = styled(index.Title)`
|
|
|
57
57
|
);
|
|
58
58
|
}}
|
|
59
59
|
`;
|
|
60
|
-
const Paragraph = styled(
|
|
60
|
+
const Paragraph = styled(
|
|
61
|
+
index.Paragraph
|
|
62
|
+
)`
|
|
61
63
|
${({
|
|
62
64
|
theme,
|
|
63
65
|
$themeType,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
2
|
import { TYPE, STATE } from '../../constants';
|
|
3
|
-
interface
|
|
3
|
+
interface TypographyStyledProperties {
|
|
4
4
|
theme: GenesisTheme;
|
|
5
5
|
$themeType?: keyof typeof TYPE;
|
|
6
6
|
variant?: string;
|
|
@@ -11,11 +11,11 @@ interface TypographyStyledProps {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const Headline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
|
|
13
13
|
ref?: import('react').Ref<HTMLElement>;
|
|
14
|
-
},
|
|
14
|
+
}, TypographyStyledProperties>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
|
|
15
15
|
export declare const Paragraph: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Paragraph').ParagraphProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
|
|
16
16
|
ref?: import('react').Ref<HTMLElement>;
|
|
17
|
-
},
|
|
17
|
+
}, TypographyStyledProperties>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Paragraph').ParagraphProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
|
|
18
18
|
export declare const Text: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Text').TextProps & import('react').RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
19
19
|
ref?: import('react').Ref<HTMLSpanElement>;
|
|
20
|
-
},
|
|
20
|
+
}, TypographyStyledProperties>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Text').TextProps & import('react').RefAttributes<HTMLSpanElement>>, keyof import('react').Component<any, {}, any>>;
|
|
21
21
|
export {};
|
|
@@ -16,7 +16,7 @@ const getColor = (color, colors, $themeType) => {
|
|
|
16
16
|
};
|
|
17
17
|
const getFontFamily = (variant) => {
|
|
18
18
|
return `
|
|
19
|
-
${
|
|
19
|
+
${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
|
|
20
20
|
`;
|
|
21
21
|
};
|
|
22
22
|
const getGenesisTypographyClass = ({ colors, typography }, $themeType, variant, state, breakpoint, color, $isFullWidth) => `
|
|
@@ -56,7 +56,9 @@ const Headline = styled(Typography.Title)`
|
|
|
56
56
|
);
|
|
57
57
|
}}
|
|
58
58
|
`;
|
|
59
|
-
const Paragraph = styled(
|
|
59
|
+
const Paragraph = styled(
|
|
60
|
+
Typography.Paragraph
|
|
61
|
+
)`
|
|
60
62
|
${({
|
|
61
63
|
theme,
|
|
62
64
|
$themeType,
|
|
@@ -15,6 +15,8 @@ export { default as Card } from './Card';
|
|
|
15
15
|
export type { CardProps } from './Card';
|
|
16
16
|
export { default as Checkbox } from './Checkbox';
|
|
17
17
|
export type { CheckboxProps } from './Checkbox';
|
|
18
|
+
export { default as Chat } from './Chat';
|
|
19
|
+
export type { ChatProps } from './Chat';
|
|
18
20
|
export { default as DatePicker } from './DatePicker';
|
|
19
21
|
export type { DatePickerProps } from './DatePicker';
|
|
20
22
|
export { default as DateRangePicker } from './DateRangePicker';
|
|
@@ -25,6 +27,8 @@ export { default as ErrorBoundaryFallback } from './ErrorBoundaryFallback';
|
|
|
25
27
|
export type { ErrorBoundaryFallbackProps } from './ErrorBoundaryFallback';
|
|
26
28
|
export { default as Form } from './Form';
|
|
27
29
|
export type { FormProps } from './Form';
|
|
30
|
+
export { default as UnitNumber } from './Glyph/custom/UnitNumber';
|
|
31
|
+
export type { UnitNumberProps } from './Glyph/custom/UnitNumber';
|
|
28
32
|
export { default as Input } from './Input';
|
|
29
33
|
export type { InputProps } from './Input';
|
|
30
34
|
export { default as Layout } from './Layout';
|
|
@@ -45,8 +49,6 @@ export { default as SegmentedControls } from './SegmentedControls';
|
|
|
45
49
|
export type { SegmentedControlsProps } from './SegmentedControls';
|
|
46
50
|
export { default as Select } from './Select';
|
|
47
51
|
export type { SelectProps } from './Select';
|
|
48
|
-
export { default as MultiSelectCount } from './Select/MultiSelectCount';
|
|
49
|
-
export type { MultiSelectCountProps } from './Select/MultiSelectCount';
|
|
50
52
|
export { default as Shapes } from './Shapes';
|
|
51
53
|
export type { ShapesProps } from './Shapes';
|
|
52
54
|
export { default as Switch } from './Switch';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var jsxRuntime = require("react/jsx-runtime");
|
|
3
3
|
var useGenesis = require("../../providers/useGenesis.cjs");
|
|
4
|
-
const DropdownChevron = (
|
|
4
|
+
const DropdownChevron = (properties) => {
|
|
5
5
|
const { theme } = useGenesis.useGenesis();
|
|
6
6
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7
7
|
"svg",
|
|
@@ -10,11 +10,11 @@ const DropdownChevron = (props) => {
|
|
|
10
10
|
width: 20,
|
|
11
11
|
height: 20,
|
|
12
12
|
fill: "none",
|
|
13
|
-
...
|
|
13
|
+
...properties,
|
|
14
14
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15
15
|
"path",
|
|
16
16
|
{
|
|
17
|
-
fill:
|
|
17
|
+
fill: "#222",
|
|
18
18
|
fillRule: "evenodd",
|
|
19
19
|
d: "M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414Z",
|
|
20
20
|
clipRule: "evenodd"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const DropdownChevron: (
|
|
1
|
+
declare const DropdownChevron: (properties: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default DropdownChevron;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useGenesis } from "../../providers/useGenesis.js";
|
|
3
|
-
const DropdownChevron = (
|
|
3
|
+
const DropdownChevron = (properties) => {
|
|
4
4
|
const { theme } = useGenesis();
|
|
5
5
|
return /* @__PURE__ */ jsx(
|
|
6
6
|
"svg",
|
|
@@ -9,11 +9,11 @@ const DropdownChevron = (props) => {
|
|
|
9
9
|
width: 20,
|
|
10
10
|
height: 20,
|
|
11
11
|
fill: "none",
|
|
12
|
-
...
|
|
12
|
+
...properties,
|
|
13
13
|
children: /* @__PURE__ */ jsx(
|
|
14
14
|
"path",
|
|
15
15
|
{
|
|
16
|
-
fill:
|
|
16
|
+
fill: "#222",
|
|
17
17
|
fillRule: "evenodd",
|
|
18
18
|
d: "M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414Z",
|
|
19
19
|
clipRule: "evenodd"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface GenesisThemeDemoProperties {
|
|
3
3
|
}
|
|
4
|
-
declare const GenesisThemeDemo: React.FC<
|
|
4
|
+
declare const GenesisThemeDemo: React.FC<GenesisThemeDemoProperties>;
|
|
5
5
|
export default GenesisThemeDemo;
|
package/dist/genesis/styles.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
|
2
|
-
interface
|
|
2
|
+
interface StyledProperties {
|
|
3
3
|
theme: DefaultTheme;
|
|
4
4
|
}
|
|
5
5
|
export declare const Card: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd').CardProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
6
|
ref?: import('react').Ref<HTMLDivElement>;
|
|
7
|
-
},
|
|
7
|
+
}, StyledProperties>> & string & Omit<import('antd/es/card').CardInterface, keyof import('react').Component<any, {}, any>>;
|
|
8
8
|
export declare const Headline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
|
|
9
9
|
ref?: import('react').Ref<HTMLElement>;
|
|
10
|
-
},
|
|
10
|
+
}, StyledProperties>> & string & Omit<import('react').ForwardRefExoticComponent<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>>, keyof import('react').Component<any, {}, any>>;
|
|
11
11
|
export {};
|
package/dist/index.cjs
CHANGED
|
@@ -9,11 +9,13 @@ var UtilityButton = require("./components/Button/UtilityButton.cjs");
|
|
|
9
9
|
var IconButton = require("./components/Button/IconButton.cjs");
|
|
10
10
|
var Card = require("./components/Card/Card.cjs");
|
|
11
11
|
var Checkbox = require("./components/Checkbox/Checkbox.cjs");
|
|
12
|
+
var Chat = require("./components/Chat/Chat.cjs");
|
|
12
13
|
var DatePicker = require("./components/DatePicker/DatePicker.cjs");
|
|
13
14
|
var DateRangePicker = require("./components/DateRangePicker/DateRangePicker.cjs");
|
|
14
15
|
var ErrorBoundary = require("./components/ErrorBoundary/ErrorBoundary.cjs");
|
|
15
16
|
var ErrorBoundaryFallback = require("./components/ErrorBoundaryFallback/ErrorBoundaryFallback.cjs");
|
|
16
17
|
var Form = require("./components/Form/Form.cjs");
|
|
18
|
+
var UnitNumber = require("./components/Glyph/custom/UnitNumber.cjs");
|
|
17
19
|
var Input = require("./components/Input/Input.cjs");
|
|
18
20
|
var Layout = require("./components/Layout/Layout.cjs");
|
|
19
21
|
var Message = require("./components/Message/Message.cjs");
|
|
@@ -24,10 +26,9 @@ var RadioGroup = require("./components/Radio/RadioGroup.cjs");
|
|
|
24
26
|
var Row = require("./components/Row/Row.cjs");
|
|
25
27
|
var SegmentedControls = require("./components/SegmentedControls/SegmentedControls.cjs");
|
|
26
28
|
var Select = require("./components/Select/Select.cjs");
|
|
27
|
-
var MultiSelectCount = require("./components/Select/MultiSelectCount.cjs");
|
|
28
29
|
var Shapes = require("./components/Shapes/Shapes.cjs");
|
|
29
30
|
var Switch = require("./components/Switch/Switch.cjs");
|
|
30
|
-
var
|
|
31
|
+
var TablePagination = require("./components/Table/TablePagination.cjs");
|
|
31
32
|
var TableWithControls = require("./components/Table/TableWithControls/TableWithControls.cjs");
|
|
32
33
|
var Tabs = require("./components/Tabs/Tabs.cjs");
|
|
33
34
|
var Tile = require("./components/Tile/Tile.cjs");
|
|
@@ -49,11 +50,13 @@ exports.UtilityButton = UtilityButton;
|
|
|
49
50
|
exports.IconButton = IconButton;
|
|
50
51
|
exports.Card = Card;
|
|
51
52
|
exports.Checkbox = Checkbox;
|
|
53
|
+
exports.Chat = Chat;
|
|
52
54
|
exports.DatePicker = DatePicker;
|
|
53
55
|
exports.DateRangePicker = DateRangePicker;
|
|
54
56
|
exports.ErrorBoundary = ErrorBoundary;
|
|
55
57
|
exports.ErrorBoundaryFallback = ErrorBoundaryFallback;
|
|
56
58
|
exports.Form = Form.default;
|
|
59
|
+
exports.UnitNumber = UnitNumber;
|
|
57
60
|
exports.Input = Input;
|
|
58
61
|
exports.Layout = Layout;
|
|
59
62
|
exports.Message = Message;
|
|
@@ -64,10 +67,9 @@ exports.RadioGroup = RadioGroup;
|
|
|
64
67
|
exports.Row = Row;
|
|
65
68
|
exports.SegmentedControls = SegmentedControls;
|
|
66
69
|
exports.Select = Select;
|
|
67
|
-
exports.MultiSelectCount = MultiSelectCount;
|
|
68
70
|
exports.Shapes = Shapes;
|
|
69
71
|
exports.Switch = Switch;
|
|
70
|
-
exports.Table =
|
|
72
|
+
exports.Table = TablePagination;
|
|
71
73
|
exports.TableWithControls = TableWithControls;
|
|
72
74
|
exports.Tabs = Tabs;
|
|
73
75
|
exports.Tile = Tile;
|
package/dist/index.js
CHANGED
|
@@ -8,31 +8,32 @@ import { default as default7 } from "./components/Button/UtilityButton.js";
|
|
|
8
8
|
import { default as default8 } from "./components/Button/IconButton.js";
|
|
9
9
|
import { default as default9 } from "./components/Card/Card.js";
|
|
10
10
|
import { default as default10 } from "./components/Checkbox/Checkbox.js";
|
|
11
|
-
import { default as default11 } from "./components/
|
|
12
|
-
import { default as default12 } from "./components/
|
|
13
|
-
import { default as default13 } from "./components/
|
|
14
|
-
import { default as default14 } from "./components/
|
|
15
|
-
import { default as default15 } from "./components/
|
|
16
|
-
import { default as default16 } from "./components/
|
|
17
|
-
import { default as default17 } from "./components/
|
|
18
|
-
import { default as default18 } from "./components/
|
|
19
|
-
import { default as default19 } from "./components/
|
|
20
|
-
import { default as default20 } from "./components/
|
|
21
|
-
import { default as default21 } from "./components/
|
|
22
|
-
import { default as default22 } from "./components/
|
|
23
|
-
import { default as default23 } from "./components/
|
|
24
|
-
import { default as default24 } from "./components/
|
|
25
|
-
import { default as default25 } from "./components/
|
|
26
|
-
import { default as default26 } from "./components/
|
|
27
|
-
import { default as default27 } from "./components/
|
|
28
|
-
import { default as default28 } from "./components/
|
|
29
|
-
import { default as default29 } from "./components/
|
|
30
|
-
import { default as default30 } from "./components/Table/
|
|
31
|
-
import { default as default31 } from "./components/
|
|
32
|
-
import { default as default32 } from "./components/
|
|
33
|
-
import { default as default33 } from "./components/
|
|
34
|
-
import { default as default34 } from "./components/
|
|
35
|
-
import { default as default35 } from "./components/
|
|
11
|
+
import { default as default11 } from "./components/Chat/Chat.js";
|
|
12
|
+
import { default as default12 } from "./components/DatePicker/DatePicker.js";
|
|
13
|
+
import { default as default13 } from "./components/DateRangePicker/DateRangePicker.js";
|
|
14
|
+
import { default as default14 } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
15
|
+
import { default as default15 } from "./components/ErrorBoundaryFallback/ErrorBoundaryFallback.js";
|
|
16
|
+
import { default as default16 } from "./components/Form/Form.js";
|
|
17
|
+
import { default as default17 } from "./components/Glyph/custom/UnitNumber.js";
|
|
18
|
+
import { default as default18 } from "./components/Input/Input.js";
|
|
19
|
+
import { default as default19 } from "./components/Layout/Layout.js";
|
|
20
|
+
import { default as default20 } from "./components/Message/Message.js";
|
|
21
|
+
import { default as default21 } from "./components/Notification/Notification.js";
|
|
22
|
+
import { default as default22 } from "./components/Popover/Popover.js";
|
|
23
|
+
import { default as default23 } from "./components/Progress/Progress.js";
|
|
24
|
+
import { default as default24 } from "./components/Radio/RadioGroup.js";
|
|
25
|
+
import { default as default25 } from "./components/Row/Row.js";
|
|
26
|
+
import { default as default26 } from "./components/SegmentedControls/SegmentedControls.js";
|
|
27
|
+
import { default as default27 } from "./components/Select/Select.js";
|
|
28
|
+
import { default as default28 } from "./components/Shapes/Shapes.js";
|
|
29
|
+
import { default as default29 } from "./components/Switch/Switch.js";
|
|
30
|
+
import { default as default30 } from "./components/Table/TablePagination.js";
|
|
31
|
+
import { default as default31 } from "./components/Table/TableWithControls/TableWithControls.js";
|
|
32
|
+
import { default as default32 } from "./components/Tabs/Tabs.js";
|
|
33
|
+
import { default as default33 } from "./components/Tile/Tile.js";
|
|
34
|
+
import { default as default34 } from "./components/Toast/Toast.js";
|
|
35
|
+
import { default as default35 } from "./components/Tooltip/Tooltip.js";
|
|
36
|
+
import { default as default36 } from "./components/Typography/Typography.js";
|
|
36
37
|
import { GenesisProvider } from "./providers/GenesisProvider.js";
|
|
37
38
|
import { useTable } from "./components/Table/useTable.js";
|
|
38
39
|
import { useTableWithControls } from "./components/Table/TableWithControls/useTableWithControls.js";
|
|
@@ -44,37 +45,38 @@ export {
|
|
|
44
45
|
default5 as Breadcrumb,
|
|
45
46
|
default6 as Button,
|
|
46
47
|
default9 as Card,
|
|
48
|
+
default11 as Chat,
|
|
47
49
|
default10 as Checkbox,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
default12 as DatePicker,
|
|
51
|
+
default13 as DateRangePicker,
|
|
52
|
+
default14 as ErrorBoundary,
|
|
53
|
+
default15 as ErrorBoundaryFallback,
|
|
54
|
+
default16 as Form,
|
|
53
55
|
default2 as GENESIS,
|
|
54
56
|
GenesisProvider,
|
|
55
57
|
GlobalStyles,
|
|
56
58
|
default8 as IconButton,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
default35 as Typography,
|
|
59
|
+
default18 as Input,
|
|
60
|
+
default19 as Layout,
|
|
61
|
+
default20 as Message,
|
|
62
|
+
default21 as Notification,
|
|
63
|
+
default22 as Popover,
|
|
64
|
+
default23 as Progress,
|
|
65
|
+
default24 as RadioGroup,
|
|
66
|
+
default25 as Row,
|
|
67
|
+
default26 as SegmentedControls,
|
|
68
|
+
default27 as Select,
|
|
69
|
+
default28 as Shapes,
|
|
70
|
+
default29 as Switch,
|
|
71
|
+
default30 as Table,
|
|
72
|
+
default31 as TableWithControls,
|
|
73
|
+
default32 as Tabs,
|
|
74
|
+
default33 as Tile,
|
|
75
|
+
default34 as Toast,
|
|
76
|
+
default35 as Tooltip,
|
|
77
|
+
default36 as Typography,
|
|
77
78
|
TypographySizeKey,
|
|
79
|
+
default17 as UnitNumber,
|
|
78
80
|
default7 as UtilityButton,
|
|
79
81
|
baseTokens,
|
|
80
82
|
breakpoints,
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function Emitter(obj) {
|
|
3
|
+
if (obj) return mixin(obj);
|
|
4
|
+
}
|
|
5
|
+
function mixin(obj) {
|
|
6
|
+
for (var key in Emitter.prototype) {
|
|
7
|
+
obj[key] = Emitter.prototype[key];
|
|
8
|
+
}
|
|
9
|
+
return obj;
|
|
10
|
+
}
|
|
11
|
+
Emitter.prototype.on = Emitter.prototype.addEventListener = function(event, fn) {
|
|
12
|
+
this._callbacks = this._callbacks || {};
|
|
13
|
+
(this._callbacks["$" + event] = this._callbacks["$" + event] || []).push(fn);
|
|
14
|
+
return this;
|
|
15
|
+
};
|
|
16
|
+
Emitter.prototype.once = function(event, fn) {
|
|
17
|
+
function on() {
|
|
18
|
+
this.off(event, on);
|
|
19
|
+
fn.apply(this, arguments);
|
|
20
|
+
}
|
|
21
|
+
on.fn = fn;
|
|
22
|
+
this.on(event, on);
|
|
23
|
+
return this;
|
|
24
|
+
};
|
|
25
|
+
Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function(event, fn) {
|
|
26
|
+
this._callbacks = this._callbacks || {};
|
|
27
|
+
if (0 == arguments.length) {
|
|
28
|
+
this._callbacks = {};
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
var callbacks = this._callbacks["$" + event];
|
|
32
|
+
if (!callbacks) return this;
|
|
33
|
+
if (1 == arguments.length) {
|
|
34
|
+
delete this._callbacks["$" + event];
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
var cb;
|
|
38
|
+
for (var i = 0; i < callbacks.length; i++) {
|
|
39
|
+
cb = callbacks[i];
|
|
40
|
+
if (cb === fn || cb.fn === fn) {
|
|
41
|
+
callbacks.splice(i, 1);
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (callbacks.length === 0) {
|
|
46
|
+
delete this._callbacks["$" + event];
|
|
47
|
+
}
|
|
48
|
+
return this;
|
|
49
|
+
};
|
|
50
|
+
Emitter.prototype.emit = function(event) {
|
|
51
|
+
this._callbacks = this._callbacks || {};
|
|
52
|
+
var args = new Array(arguments.length - 1), callbacks = this._callbacks["$" + event];
|
|
53
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
54
|
+
args[i - 1] = arguments[i];
|
|
55
|
+
}
|
|
56
|
+
if (callbacks) {
|
|
57
|
+
callbacks = callbacks.slice(0);
|
|
58
|
+
for (var i = 0, len = callbacks.length; i < len; ++i) {
|
|
59
|
+
callbacks[i].apply(this, args);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return this;
|
|
63
|
+
};
|
|
64
|
+
Emitter.prototype.emitReserved = Emitter.prototype.emit;
|
|
65
|
+
Emitter.prototype.listeners = function(event) {
|
|
66
|
+
this._callbacks = this._callbacks || {};
|
|
67
|
+
return this._callbacks["$" + event] || [];
|
|
68
|
+
};
|
|
69
|
+
Emitter.prototype.hasListeners = function(event) {
|
|
70
|
+
return !!this.listeners(event).length;
|
|
71
|
+
};
|
|
72
|
+
exports.Emitter = Emitter;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
function Emitter(obj) {
|
|
2
|
+
if (obj) return mixin(obj);
|
|
3
|
+
}
|
|
4
|
+
function mixin(obj) {
|
|
5
|
+
for (var key in Emitter.prototype) {
|
|
6
|
+
obj[key] = Emitter.prototype[key];
|
|
7
|
+
}
|
|
8
|
+
return obj;
|
|
9
|
+
}
|
|
10
|
+
Emitter.prototype.on = Emitter.prototype.addEventListener = function(event, fn) {
|
|
11
|
+
this._callbacks = this._callbacks || {};
|
|
12
|
+
(this._callbacks["$" + event] = this._callbacks["$" + event] || []).push(fn);
|
|
13
|
+
return this;
|
|
14
|
+
};
|
|
15
|
+
Emitter.prototype.once = function(event, fn) {
|
|
16
|
+
function on() {
|
|
17
|
+
this.off(event, on);
|
|
18
|
+
fn.apply(this, arguments);
|
|
19
|
+
}
|
|
20
|
+
on.fn = fn;
|
|
21
|
+
this.on(event, on);
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
Emitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function(event, fn) {
|
|
25
|
+
this._callbacks = this._callbacks || {};
|
|
26
|
+
if (0 == arguments.length) {
|
|
27
|
+
this._callbacks = {};
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
var callbacks = this._callbacks["$" + event];
|
|
31
|
+
if (!callbacks) return this;
|
|
32
|
+
if (1 == arguments.length) {
|
|
33
|
+
delete this._callbacks["$" + event];
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
var cb;
|
|
37
|
+
for (var i = 0; i < callbacks.length; i++) {
|
|
38
|
+
cb = callbacks[i];
|
|
39
|
+
if (cb === fn || cb.fn === fn) {
|
|
40
|
+
callbacks.splice(i, 1);
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (callbacks.length === 0) {
|
|
45
|
+
delete this._callbacks["$" + event];
|
|
46
|
+
}
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
49
|
+
Emitter.prototype.emit = function(event) {
|
|
50
|
+
this._callbacks = this._callbacks || {};
|
|
51
|
+
var args = new Array(arguments.length - 1), callbacks = this._callbacks["$" + event];
|
|
52
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
53
|
+
args[i - 1] = arguments[i];
|
|
54
|
+
}
|
|
55
|
+
if (callbacks) {
|
|
56
|
+
callbacks = callbacks.slice(0);
|
|
57
|
+
for (var i = 0, len = callbacks.length; i < len; ++i) {
|
|
58
|
+
callbacks[i].apply(this, args);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return this;
|
|
62
|
+
};
|
|
63
|
+
Emitter.prototype.emitReserved = Emitter.prototype.emit;
|
|
64
|
+
Emitter.prototype.listeners = function(event) {
|
|
65
|
+
this._callbacks = this._callbacks || {};
|
|
66
|
+
return this._callbacks["$" + event] || [];
|
|
67
|
+
};
|
|
68
|
+
Emitter.prototype.hasListeners = function(event) {
|
|
69
|
+
return !!this.listeners(event).length;
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
Emitter
|
|
73
|
+
};
|