@openedx/paragon 23.23.1 → 23.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Card/CardFooter.d.ts +19 -0
- package/dist/Card/CardFooter.js +5 -31
- package/dist/Card/CardFooter.js.map +1 -1
- package/dist/Card/CardSection.d.ts +19 -0
- package/dist/Card/CardSection.js +5 -31
- package/dist/Card/CardSection.js.map +1 -1
- package/dist/Card/CardStatus.d.ts +17 -0
- package/dist/Card/CardStatus.js +3 -25
- package/dist/Card/CardStatus.js.map +1 -1
- package/dist/Collapsible/CollapsibleAdvanced.d.ts +41 -0
- package/dist/Collapsible/CollapsibleAdvanced.js +8 -38
- package/dist/Collapsible/CollapsibleAdvanced.js.map +1 -1
- package/dist/Collapsible/CollapsibleBody.d.ts +11 -0
- package/dist/Collapsible/CollapsibleBody.js +6 -20
- package/dist/Collapsible/CollapsibleBody.js.map +1 -1
- package/dist/Collapsible/CollapsibleTrigger.d.ts +17 -0
- package/dist/Collapsible/CollapsibleTrigger.js +16 -33
- package/dist/Collapsible/CollapsibleTrigger.js.map +1 -1
- package/dist/Collapsible/CollapsibleVisible.d.ts +11 -0
- package/dist/Collapsible/CollapsibleVisible.js +6 -17
- package/dist/Collapsible/CollapsibleVisible.js.map +1 -1
- package/dist/Collapsible/index.d.ts +40 -0
- package/dist/Collapsible/index.js +23 -73
- package/dist/Collapsible/index.js.map +1 -1
- package/dist/DataTable/filters/DropdownFilter.d.ts +28 -0
- package/dist/DataTable/filters/DropdownFilter.js +0 -24
- package/dist/DataTable/filters/DropdownFilter.js.map +1 -1
- package/dist/Form/FormAutosuggestOption.d.ts +11 -0
- package/dist/Form/FormAutosuggestOption.js +1 -15
- package/dist/Form/FormAutosuggestOption.js.map +1 -1
- package/dist/Form/FormControlDecorator.d.ts +7 -0
- package/dist/Form/FormControlDecorator.js +1 -9
- package/dist/Form/FormControlDecorator.js.map +1 -1
- package/dist/Form/FormControlFloatingLabel.d.ts +6 -0
- package/dist/Form/FormControlFloatingLabel.js +0 -4
- package/dist/Form/FormControlFloatingLabel.js.map +1 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/Form/index.js +0 -1
- package/dist/Form/index.js.map +1 -1
- package/dist/Modal/ModalCloseButton.d.ts +15 -0
- package/dist/Modal/ModalCloseButton.js +11 -25
- package/dist/Modal/ModalCloseButton.js.map +1 -1
- package/dist/Modal/ModalDialog.d.ts +1 -1
- package/dist/Modal/ModalDialog.js +0 -1
- package/dist/Modal/ModalDialog.js.map +1 -1
- package/dist/ProductTour/CheckpointBody.d.ts +6 -0
- package/dist/ProductTour/CheckpointBody.js +3 -10
- package/dist/ProductTour/CheckpointBody.js.map +1 -1
- package/dist/ProductTour/CheckpointTitle.d.ts +6 -0
- package/dist/ProductTour/CheckpointTitle.js +3 -10
- package/dist/ProductTour/CheckpointTitle.js.map +1 -1
- package/dist/StatefulButton/index.d.ts +45 -0
- package/dist/StatefulButton/index.js +15 -61
- package/dist/StatefulButton/index.js.map +1 -1
- package/dist/Stepper/Stepper.d.ts +22 -0
- package/dist/Stepper/Stepper.js +1 -12
- package/dist/Stepper/Stepper.js.map +1 -1
- package/dist/Stepper/StepperActionRow.d.ts +19 -0
- package/dist/Stepper/StepperActionRow.js +10 -21
- package/dist/Stepper/StepperActionRow.js.map +1 -1
- package/dist/Stepper/StepperContext.d.ts +33 -0
- package/dist/Stepper/StepperContext.js +7 -10
- package/dist/Stepper/StepperContext.js.map +1 -1
- package/dist/Stepper/StepperHeader.d.ts +27 -0
- package/dist/Stepper/StepperHeader.js +17 -43
- package/dist/Stepper/StepperHeader.js.map +1 -1
- package/dist/Stepper/StepperHeaderStep.d.ts +16 -0
- package/dist/Stepper/StepperHeaderStep.js +2 -23
- package/dist/Stepper/StepperHeaderStep.js.map +1 -1
- package/dist/Stepper/StepperStep.d.ts +29 -0
- package/dist/Stepper/StepperStep.js +1 -36
- package/dist/Stepper/StepperStep.js.map +1 -1
- package/dist/Stepper/index.js +1 -0
- package/dist/Stepper/index.js.map +1 -0
- package/dist/TransitionReplace/index.d.ts +54 -0
- package/dist/TransitionReplace/index.js +9 -60
- package/dist/TransitionReplace/index.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/dist/theme-urls.json +6 -6
- package/lib/__tests__/build-scss.test.js +90 -2
- package/lib/build-scss.js +17 -10
- package/package.json +1 -1
- package/src/Card/{CardFooter.jsx → CardFooter.tsx} +25 -34
- package/src/Card/{CardSection.jsx → CardSection.tsx} +25 -34
- package/src/Card/{CardStatus.jsx → CardStatus.tsx} +21 -33
- package/src/Collapsible/{Collapsible.test.jsx → Collapsible.test.tsx} +88 -21
- package/src/Collapsible/{CollapsibleAdvanced.jsx → CollapsibleAdvanced.tsx} +42 -43
- package/src/Collapsible/{CollapsibleBody.jsx → CollapsibleBody.tsx} +13 -22
- package/src/Collapsible/{CollapsibleTrigger.jsx → CollapsibleTrigger.tsx} +29 -36
- package/src/Collapsible/{CollapsibleVisible.jsx → CollapsibleVisible.tsx} +14 -20
- package/src/Collapsible/__snapshots__/{Collapsible.test.jsx.snap → Collapsible.test.tsx.snap} +0 -1
- package/src/Collapsible/index.tsx +91 -0
- package/src/DataTable/filters/{DropdownFilter.jsx → DropdownFilter.tsx} +27 -28
- package/src/Form/{FormAutosuggestOption.jsx → FormAutosuggestOption.tsx} +12 -19
- package/src/Form/FormControlDecorator.tsx +16 -0
- package/src/Form/{FormControlFloatingLabel.jsx → FormControlFloatingLabel.tsx} +6 -7
- package/src/Form/index.tsx +0 -1
- package/src/Modal/ModalCloseButton.tsx +48 -0
- package/src/Modal/ModalDialog.tsx +0 -1
- package/src/Modal/tests/ModalDialog.test.tsx +1 -1
- package/src/ProductTour/{Checkpoint.test.jsx → Checkpoint.test.tsx} +11 -1
- package/src/ProductTour/CheckpointBody.tsx +21 -0
- package/src/ProductTour/CheckpointTitle.tsx +15 -0
- package/src/StatefulButton/{StatefulButtontest.test.jsx → StatefulButtontest.test.tsx} +4 -4
- package/src/StatefulButton/{index.jsx → index.tsx} +47 -57
- package/src/Stepper/{Stepper.jsx → Stepper.tsx} +18 -12
- package/src/Stepper/StepperActionRow.tsx +41 -0
- package/src/Stepper/{StepperContext.jsx → StepperContext.tsx} +41 -17
- package/src/Stepper/{StepperHeader.jsx → StepperHeader.tsx} +47 -44
- package/src/Stepper/{StepperHeaderStep.jsx → StepperHeaderStep.tsx} +18 -26
- package/src/Stepper/{StepperStep.jsx → StepperStep.tsx} +30 -39
- package/src/Stepper/index.ts +1 -0
- package/src/Stepper/tests/{Stepper.test.jsx → Stepper.test.tsx} +156 -14
- package/src/TransitionReplace/{TransitionReplace.test.jsx → TransitionReplace.test.tsx} +12 -10
- package/src/TransitionReplace/{index.jsx → index.tsx} +63 -72
- package/src/index.ts +4 -8
- package/src/Collapsible/index.jsx +0 -99
- package/src/Form/FormControlDecorator.jsx +0 -21
- package/src/Modal/ModalCloseButton.jsx +0 -45
- package/src/ProductTour/CheckpointBody.jsx +0 -24
- package/src/ProductTour/CheckpointTitle.jsx +0 -18
- package/src/Stepper/StepperActionRow.jsx +0 -40
- /package/{src/Stepper/index.js → dist/Stepper/index.d.ts} +0 -0
- /package/src/StatefulButton/__snapshots__/{StatefulButtontest.test.jsx.snap → StatefulButtontest.test.tsx.snap} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -9,11 +9,14 @@ export { default as Bubble } from './Bubble';
|
|
|
9
9
|
export { default as Button, ButtonGroup, ButtonToolbar } from './Button';
|
|
10
10
|
export { default as Chip, CHIP_PGN_CLASS } from './Chip';
|
|
11
11
|
export { default as ChipCarousel } from './ChipCarousel';
|
|
12
|
+
export { default as CloseButton } from './CloseButton';
|
|
12
13
|
export { default as Container, type ContainerSize } from './Container';
|
|
14
|
+
export { default as DropdownFilter } from './DataTable/filters/DropdownFilter';
|
|
13
15
|
export { default as Form, RadioControl, CheckboxControl, SwitchControl, FormSwitchSet, FormControl, FormControlDecoratorGroup, FormControlFeedback, FormCheck, FormFile, FormRadio, FormRadioSet, FormRadioSetContext, FormGroup, FormLabel, useCheckboxSetValues, FormText, FormAutosuggest, FormAutosuggestOption, InputGroup, } from './Form';
|
|
14
16
|
export { default as Hyperlink } from './Hyperlink';
|
|
15
17
|
export { default as Icon } from './Icon';
|
|
16
18
|
export { default as IconButton, IconButtonWithTooltip } from './IconButton';
|
|
19
|
+
export { default as ModalCloseButton } from './Modal/ModalCloseButton';
|
|
17
20
|
export { default as ModalContext } from './Modal/ModalContext';
|
|
18
21
|
export { default as ModalDialog } from './Modal/ModalDialog';
|
|
19
22
|
export { default as ModalLayer } from './Modal/ModalLayer';
|
|
@@ -22,6 +25,7 @@ export { default as Portal } from './Modal/Portal';
|
|
|
22
25
|
export { default as Scrollable } from './Scrollable';
|
|
23
26
|
export { default as Spinner } from './Spinner';
|
|
24
27
|
export { default as Stack } from './Stack';
|
|
28
|
+
export { default as StatefulButton } from './StatefulButton';
|
|
25
29
|
export { default as Toast, TOAST_CLOSE_LABEL_TEXT, TOAST_DELAY } from './Toast';
|
|
26
30
|
export { default as Tooltip } from './Tooltip';
|
|
27
31
|
export { default as useWindowSize, type WindowSizeData } from './hooks/useWindowSizeHook';
|
|
@@ -33,7 +37,6 @@ export { default as breakpoints } from './utils/breakpoints';
|
|
|
33
37
|
export { default as asInput } from './asInput';
|
|
34
38
|
export { default as Card, CardColumns, CardDeck, CardImg, CardGroup, CardGrid, CardCarousel, CARD_VARIANTS, } from './Card';
|
|
35
39
|
export { default as Carousel, CarouselItem, CAROUSEL_NEXT_LABEL_TEXT, CAROUSEL_PREV_LABEL_TEXT, } from './Carousel';
|
|
36
|
-
export { default as CloseButton } from './CloseButton';
|
|
37
40
|
export { default as Layout, Col, Row } from './Layout';
|
|
38
41
|
export { default as Collapse } from './Collapse';
|
|
39
42
|
export { default as Collapsible } from './Collapsible';
|
|
@@ -46,7 +49,6 @@ export { default as Media } from './Media';
|
|
|
46
49
|
export { default as Menu } from './Menu';
|
|
47
50
|
export { default as MenuItem } from './Menu/MenuItem';
|
|
48
51
|
export { default as SelectMenu, SELECT_MENU_DEFAULT_MESSAGE } from './Menu/SelectMenu';
|
|
49
|
-
export { default as ModalCloseButton } from './Modal/ModalCloseButton';
|
|
50
52
|
export { default as FullscreenModal, FULLSCREEN_MODAL_CLOSE_LABEL } from './Modal/FullscreenModal';
|
|
51
53
|
export { default as MarketingModal } from './Modal/MarketingModal';
|
|
52
54
|
export { default as StandardModal, STANDARD_MODAL_CLOSE_LABEL } from './Modal/StandardModal';
|
|
@@ -64,14 +66,12 @@ export { default as ResponsiveEmbed } from './ResponsiveEmbed';
|
|
|
64
66
|
export { default as SearchField, SEARCH_FIELD_SCREEN_READER_TEXT_LABEL, SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON, SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON, SEARCH_FIELD_BUTTON_TEXT, } from './SearchField';
|
|
65
67
|
export { default as Sheet } from './Sheet';
|
|
66
68
|
export { default as Stepper } from './Stepper';
|
|
67
|
-
export { default as StatefulButton } from './StatefulButton';
|
|
68
69
|
export { default as Tabs, Tab, TabContainer, TabContent, TabPane, } from './Tabs';
|
|
69
70
|
export { default as TransitionReplace } from './TransitionReplace';
|
|
70
71
|
export { default as ValidationMessage } from './ValidationMessage';
|
|
71
72
|
export { default as DataTable } from './DataTable';
|
|
72
73
|
export { default as TextFilter } from './DataTable/filters/TextFilter';
|
|
73
74
|
export { default as CheckboxFilter } from './DataTable/filters/CheckboxFilter';
|
|
74
|
-
export { default as DropdownFilter } from './DataTable/filters/DropdownFilter';
|
|
75
75
|
export { default as MultiSelectDropdownFilter } from './DataTable/filters/MultiSelectDropdownFilter';
|
|
76
76
|
export { default as TableHeaderCell } from './DataTable/TableHeaderCell';
|
|
77
77
|
export { default as TableCell } from './DataTable/TableCell';
|
package/dist/index.js
CHANGED
|
@@ -12,11 +12,14 @@ export { default as Bubble } from './Bubble';
|
|
|
12
12
|
export { default as Button, ButtonGroup, ButtonToolbar } from './Button';
|
|
13
13
|
export { default as Chip, CHIP_PGN_CLASS } from './Chip';
|
|
14
14
|
export { default as ChipCarousel } from './ChipCarousel';
|
|
15
|
+
export { default as CloseButton } from './CloseButton';
|
|
15
16
|
export { default as Container } from './Container';
|
|
17
|
+
export { default as DropdownFilter } from './DataTable/filters/DropdownFilter';
|
|
16
18
|
export { default as Form, RadioControl, CheckboxControl, SwitchControl, FormSwitchSet, FormControl, FormControlDecoratorGroup, FormControlFeedback, FormCheck, FormFile, FormRadio, FormRadioSet, FormRadioSetContext, FormGroup, FormLabel, useCheckboxSetValues, FormText, FormAutosuggest, FormAutosuggestOption, InputGroup } from './Form';
|
|
17
19
|
export { default as Hyperlink } from './Hyperlink';
|
|
18
20
|
export { default as Icon } from './Icon';
|
|
19
21
|
export { default as IconButton, IconButtonWithTooltip } from './IconButton';
|
|
22
|
+
export { default as ModalCloseButton } from './Modal/ModalCloseButton';
|
|
20
23
|
export { default as ModalContext } from './Modal/ModalContext';
|
|
21
24
|
export { default as ModalDialog } from './Modal/ModalDialog';
|
|
22
25
|
export { default as ModalLayer } from './Modal/ModalLayer';
|
|
@@ -25,6 +28,7 @@ export { default as Portal } from './Modal/Portal';
|
|
|
25
28
|
export { default as Scrollable } from './Scrollable';
|
|
26
29
|
export { default as Spinner } from './Spinner';
|
|
27
30
|
export { default as Stack } from './Stack';
|
|
31
|
+
export { default as StatefulButton } from './StatefulButton';
|
|
28
32
|
export { default as Toast, TOAST_CLOSE_LABEL_TEXT, TOAST_DELAY } from './Toast';
|
|
29
33
|
export { default as Tooltip } from './Tooltip';
|
|
30
34
|
export { default as useWindowSize } from './hooks/useWindowSizeHook';
|
|
@@ -46,8 +50,6 @@ export { default as Carousel, CarouselItem, CAROUSEL_NEXT_LABEL_TEXT, CAROUSEL_P
|
|
|
46
50
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
47
51
|
} from './Carousel';
|
|
48
52
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
49
|
-
export { default as CloseButton } from './CloseButton';
|
|
50
|
-
// @ts-ignore: has yet to be converted to TypeScript
|
|
51
53
|
export { default as Layout, Col, Row } from './Layout';
|
|
52
54
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
53
55
|
export { default as Collapse } from './Collapse';
|
|
@@ -73,8 +75,6 @@ export { default as MenuItem } from './Menu/MenuItem';
|
|
|
73
75
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
74
76
|
export { default as SelectMenu, SELECT_MENU_DEFAULT_MESSAGE } from './Menu/SelectMenu';
|
|
75
77
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
76
|
-
export { default as ModalCloseButton } from './Modal/ModalCloseButton';
|
|
77
|
-
// @ts-ignore: has yet to be converted to TypeScript
|
|
78
78
|
export { default as FullscreenModal, FULLSCREEN_MODAL_CLOSE_LABEL } from './Modal/FullscreenModal';
|
|
79
79
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
80
80
|
export { default as MarketingModal } from './Modal/MarketingModal';
|
|
@@ -111,8 +111,6 @@ export { default as SearchField, SEARCH_FIELD_SCREEN_READER_TEXT_LABEL, SEARCH_F
|
|
|
111
111
|
export { default as Sheet } from './Sheet';
|
|
112
112
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
113
113
|
export { default as Stepper } from './Stepper';
|
|
114
|
-
// @ts-ignore: has yet to be converted to TypeScript
|
|
115
|
-
export { default as StatefulButton } from './StatefulButton';
|
|
116
114
|
export { default as Tabs, Tab, TabContainer, TabContent, TabPane
|
|
117
115
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
118
116
|
} from './Tabs';
|
|
@@ -127,8 +125,6 @@ export { default as TextFilter } from './DataTable/filters/TextFilter';
|
|
|
127
125
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
128
126
|
export { default as CheckboxFilter } from './DataTable/filters/CheckboxFilter';
|
|
129
127
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
130
|
-
export { default as DropdownFilter } from './DataTable/filters/DropdownFilter';
|
|
131
|
-
// @ts-ignore: has yet to be converted to TypeScript
|
|
132
128
|
export { default as MultiSelectDropdownFilter } from './DataTable/filters/MultiSelectDropdownFilter';
|
|
133
129
|
// @ts-ignore: has yet to be converted to TypeScript
|
|
134
130
|
export { default as TableHeaderCell } from './DataTable/TableHeaderCell';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","ActionRow","Alert","ALERT_CLOSE_LABEL_TEXT","Annotation","Avatar","AvatarButton","Badge","Breadcrumb","Bubble","Button","ButtonGroup","ButtonToolbar","Chip","CHIP_PGN_CLASS","ChipCarousel","Container","Form","RadioControl","CheckboxControl","SwitchControl","FormSwitchSet","FormControl","FormControlDecoratorGroup","FormControlFeedback","FormCheck","FormFile","FormRadio","FormRadioSet","FormRadioSetContext","FormGroup","FormLabel","useCheckboxSetValues","FormText","FormAutosuggest","FormAutosuggestOption","InputGroup","Hyperlink","Icon","IconButton","IconButtonWithTooltip","ModalContext","ModalDialog","ModalLayer","Overlay","OverlayTrigger","Portal","Scrollable","Spinner","Stack","Toast","TOAST_CLOSE_LABEL_TEXT","TOAST_DELAY","Tooltip","useWindowSize","useToggle","useArrowKeyNavigation","useIndexOfLastVisibleChild","useIsVisible","breakpoints","asInput","Card","CardColumns","CardDeck","CardImg","CardGroup","CardGrid","CardCarousel","CARD_VARIANTS","Carousel","CarouselItem","CAROUSEL_NEXT_LABEL_TEXT","CAROUSEL_PREV_LABEL_TEXT","CloseButton","Layout","Col","Row","Collapse","Collapsible","Dropdown","DropdownToggle","DropdownButton","SplitButton","Fade","IconButtonToggle","Image","Figure","MailtoLink","MAIL_TO_LINK_EXTERNAL_LINK_ALTERNATIVE_TEXT","MAIL_TO_LINK_EXTERNAL_LINK_TITLE","Media","Menu","MenuItem","SelectMenu","SELECT_MENU_DEFAULT_MESSAGE","ModalCloseButton","FullscreenModal","FULLSCREEN_MODAL_CLOSE_LABEL","MarketingModal","StandardModal","STANDARD_MODAL_CLOSE_LABEL","AlertModal","ModalPopup","PopperElement","Nav","NavDropdown","NavItem","NavLink","Navbar","NavbarBrand","NAVBAR_LABEL","PageBanner","PAGE_BANNER_DISMISS_ALT_TEXT","Pagination","PAGINATION_BUTTON_LABEL_PREV","PAGINATION_BUTTON_ICON_BUTTON_NEXT_ALT","PAGINATION_BUTTON_ICON_BUTTON_PREV_ALT","PAGINATION_BUTTON_LABEL_PAGE_OF_COUNT","PAGINATION_BUTTON_LABEL_CURRENT_PAGE","PAGINATION_BUTTON_LABEL_NEXT","PAGINATION_BUTTON_LABEL_PAGE","Popover","PopoverTitle","PopoverContent","ProgressBar","ProductTour","ResponsiveEmbed","SearchField","SEARCH_FIELD_SCREEN_READER_TEXT_LABEL","SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON","SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON","SEARCH_FIELD_BUTTON_TEXT","Sheet","Stepper","StatefulButton","Tabs","Tab","TabContainer","TabContent","TabPane","TransitionReplace","ValidationMessage","DataTable","TextFilter","CheckboxFilter","DropdownFilter","MultiSelectDropdownFilter","TableHeaderCell","TableCell","TableFilters","TABLE_FILTERS_BUTTON_TEXT","TableHeader","TableRow","TablePagination","TablePaginationMinimal","DataTableContext","BulkActions","TableControlBar","TableFooter","CardView","Skeleton","SkeletonTheme","ToggleButton","ToggleButtonGroup","Sticky","SelectableBox","Variant","OverflowScrollContext","OverflowScroll","useOverflowScroll","useOverflowScrollItems","Dropzone","messages","Truncate","ColorPicker","MediaQuery","useMediaQuery","Context","ResponsiveContext","useTable","useFilters","useGlobalFilter","useSortBy","useGroupBy","useExpanded","usePagination","useRowSelect","useRowState","useColumnOrder","useResizeColumns","useBlockLayout","useAbsoluteLayout","useFlexLayout"],"sources":["../src/index.ts"],"sourcesContent":["// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// Things that have types\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\nexport { default as ActionRow } from './ActionRow';\nexport { default as Alert, ALERT_CLOSE_LABEL_TEXT } from './Alert';\nexport { default as Annotation } from './Annotation';\nexport { default as Avatar } from './Avatar';\nexport { default as AvatarButton } from './AvatarButton';\nexport { default as Badge } from './Badge';\nexport { default as Breadcrumb } from './Breadcrumb';\nexport { default as Bubble } from './Bubble';\nexport { default as Button, ButtonGroup, ButtonToolbar } from './Button';\nexport { default as Chip, CHIP_PGN_CLASS } from './Chip';\nexport { default as ChipCarousel } from './ChipCarousel';\nexport { default as Container, type ContainerSize } from './Container';\nexport {\n default as Form,\n RadioControl,\n CheckboxControl,\n SwitchControl,\n FormSwitchSet,\n FormControl,\n FormControlDecoratorGroup,\n FormControlFeedback,\n FormCheck,\n FormFile,\n FormRadio,\n FormRadioSet,\n FormRadioSetContext,\n FormGroup,\n FormLabel,\n useCheckboxSetValues,\n FormText,\n FormAutosuggest,\n FormAutosuggestOption,\n InputGroup,\n} from './Form';\nexport { default as Hyperlink } from './Hyperlink';\nexport { default as Icon } from './Icon';\nexport { default as IconButton, IconButtonWithTooltip } from './IconButton';\nexport { default as ModalContext } from './Modal/ModalContext';\nexport { default as ModalDialog } from './Modal/ModalDialog';\nexport { default as ModalLayer } from './Modal/ModalLayer';\nexport { default as Overlay, OverlayTrigger } from './Overlay';\nexport { default as Portal } from './Modal/Portal';\nexport { default as Scrollable } from './Scrollable';\nexport { default as Spinner } from './Spinner';\nexport { default as Stack } from './Stack';\nexport { default as Toast, TOAST_CLOSE_LABEL_TEXT, TOAST_DELAY } from './Toast';\nexport { default as Tooltip } from './Tooltip';\nexport { default as useWindowSize, type WindowSizeData } from './hooks/useWindowSizeHook';\nexport { default as useToggle, type Toggler, type ToggleHandlers } from './hooks/useToggleHook';\nexport { default as useArrowKeyNavigation, type ArrowKeyNavProps } from './hooks/useArrowKeyNavigationHook';\nexport { default as useIndexOfLastVisibleChild } from './hooks/useIndexOfLastVisibleChildHook';\nexport { default as useIsVisible } from './hooks/useIsVisibleHook';\nexport { default as breakpoints } from './utils/breakpoints';\n\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// Things that don't have types\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as asInput } from './asInput';\n\nexport {\n default as Card,\n CardColumns,\n CardDeck,\n CardImg,\n CardGroup,\n CardGrid,\n CardCarousel,\n CARD_VARIANTS,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Card';\nexport {\n default as Carousel, CarouselItem, CAROUSEL_NEXT_LABEL_TEXT, CAROUSEL_PREV_LABEL_TEXT,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Carousel';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as CloseButton } from './CloseButton';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Layout, Col, Row } from './Layout';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Collapse } from './Collapse';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Collapsible } from './Collapsible';\nexport {\n default as Dropdown,\n DropdownToggle,\n DropdownButton,\n SplitButton,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Dropdown';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Fade } from './Fade';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as IconButtonToggle } from './IconButtonToggle';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Image, Figure } from './Image';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MailtoLink, MAIL_TO_LINK_EXTERNAL_LINK_ALTERNATIVE_TEXT, MAIL_TO_LINK_EXTERNAL_LINK_TITLE } from './MailtoLink';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Media } from './Media';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Menu } from './Menu';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MenuItem } from './Menu/MenuItem';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as SelectMenu, SELECT_MENU_DEFAULT_MESSAGE } from './Menu/SelectMenu';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ModalCloseButton } from './Modal/ModalCloseButton';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as FullscreenModal, FULLSCREEN_MODAL_CLOSE_LABEL } from './Modal/FullscreenModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MarketingModal } from './Modal/MarketingModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as StandardModal, STANDARD_MODAL_CLOSE_LABEL } from './Modal/StandardModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as AlertModal } from './Modal/AlertModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ModalPopup } from './Modal/ModalPopup';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as PopperElement } from './Modal/PopperElement';\n\nexport {\n default as Nav,\n NavDropdown,\n NavItem,\n NavLink,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Nav';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Navbar, NavbarBrand, NAVBAR_LABEL } from './Navbar';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as PageBanner, PAGE_BANNER_DISMISS_ALT_TEXT } from './PageBanner';\nexport {\n default as Pagination,\n PAGINATION_BUTTON_LABEL_PREV,\n PAGINATION_BUTTON_ICON_BUTTON_NEXT_ALT,\n PAGINATION_BUTTON_ICON_BUTTON_PREV_ALT,\n PAGINATION_BUTTON_LABEL_PAGE_OF_COUNT,\n PAGINATION_BUTTON_LABEL_CURRENT_PAGE,\n PAGINATION_BUTTON_LABEL_NEXT,\n PAGINATION_BUTTON_LABEL_PAGE,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Pagination';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Popover, PopoverTitle, PopoverContent } from './Popover';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ProgressBar } from './ProgressBar';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ProductTour } from './ProductTour';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ResponsiveEmbed } from './ResponsiveEmbed';\nexport {\n default as SearchField,\n SEARCH_FIELD_SCREEN_READER_TEXT_LABEL,\n SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON,\n SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON,\n SEARCH_FIELD_BUTTON_TEXT,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './SearchField';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Sheet } from './Sheet';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Stepper } from './Stepper';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as StatefulButton } from './StatefulButton';\nexport {\n default as Tabs,\n Tab,\n TabContainer,\n TabContent,\n TabPane,\n// @ts-ignore: has yet to be converted to TypeScript\n} from './Tabs';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TransitionReplace } from './TransitionReplace';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ValidationMessage } from './ValidationMessage';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as DataTable } from './DataTable';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TextFilter } from './DataTable/filters/TextFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as CheckboxFilter } from './DataTable/filters/CheckboxFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as DropdownFilter } from './DataTable/filters/DropdownFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MultiSelectDropdownFilter } from './DataTable/filters/MultiSelectDropdownFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableHeaderCell } from './DataTable/TableHeaderCell';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableCell } from './DataTable/TableCell';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableFilters, TABLE_FILTERS_BUTTON_TEXT } from './DataTable/TableFilters';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableHeader } from './DataTable/TableHeaderRow';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableRow } from './DataTable/TableRow';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TablePagination } from './DataTable/TablePagination';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TablePaginationMinimal } from './DataTable/TablePaginationMinimal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as DataTableContext } from './DataTable/DataTableContext';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as BulkActions } from './DataTable/BulkActions';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableControlBar } from './DataTable/TableControlBar';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableFooter } from './DataTable/TableFooter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as CardView } from './DataTable/CardView';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Skeleton, SkeletonTheme } from './Skeleton/index';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ToggleButton, ToggleButtonGroup } from './ToggleButton';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Sticky } from './Sticky';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as SelectableBox } from './SelectableBox';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Variant } from './utils/constants';\nexport {\n OverflowScrollContext,\n OverflowScroll,\n useOverflowScroll,\n useOverflowScrollItems,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './OverflowScroll';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Dropzone } from './Dropzone';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as messages } from './i18n';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Truncate } from './Truncate';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ColorPicker } from './ColorPicker';\n\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// Pass through any needed whole third-party library functionality\n// useTable for example is needed to use the DataTable component seamlessly\n// rather than setting a peer dependency in this project, we opt to tightly\n// couple these dependencies by passing through needed functionality.\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\nexport {\n default as MediaQuery,\n useMediaQuery,\n Context as ResponsiveContext,\n} from 'react-responsive';\nexport {\n useTable,\n useFilters,\n useGlobalFilter,\n useSortBy,\n useGroupBy,\n useExpanded,\n usePagination,\n useRowSelect,\n useRowState,\n useColumnOrder,\n useResizeColumns,\n useBlockLayout,\n useAbsoluteLayout,\n useFlexLayout,\n} from 'react-table';\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,OAAO,IAAIC,SAAS,QAAQ,aAAa;AAClD,SAASD,OAAO,IAAIE,KAAK,EAAEC,sBAAsB,QAAQ,SAAS;AAClE,SAASH,OAAO,IAAII,UAAU,QAAQ,cAAc;AACpD,SAASJ,OAAO,IAAIK,MAAM,QAAQ,UAAU;AAC5C,SAASL,OAAO,IAAIM,YAAY,QAAQ,gBAAgB;AACxD,SAASN,OAAO,IAAIO,KAAK,QAAQ,SAAS;AAC1C,SAASP,OAAO,IAAIQ,UAAU,QAAQ,cAAc;AACpD,SAASR,OAAO,IAAIS,MAAM,QAAQ,UAAU;AAC5C,SAAST,OAAO,IAAIU,MAAM,EAAEC,WAAW,EAAEC,aAAa,QAAQ,UAAU;AACxE,SAASZ,OAAO,IAAIa,IAAI,EAAEC,cAAc,QAAQ,QAAQ;AACxD,SAASd,OAAO,IAAIe,YAAY,QAAQ,gBAAgB;AACxD,SAASf,OAAO,IAAIgB,SAAS,QAA4B,aAAa;AACtE,SACEhB,OAAO,IAAIiB,IAAI,EACfC,YAAY,EACZC,eAAe,EACfC,aAAa,EACbC,aAAa,EACbC,WAAW,EACXC,yBAAyB,EACzBC,mBAAmB,EACnBC,SAAS,EACTC,QAAQ,EACRC,SAAS,EACTC,YAAY,EACZC,mBAAmB,EACnBC,SAAS,EACTC,SAAS,EACTC,oBAAoB,EACpBC,QAAQ,EACRC,eAAe,EACfC,qBAAqB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K,OAAO,IAAIsK,OAAO,QAAQ,mBAAmB;AACtD,SACEC,qBAAqB,EACrBC,cAAc,EACdC,iBAAiB,EACjBC;AACA;AAAA,OACK,kBAAkB;AACzB;AACA,SAAS1K,OAAO,IAAI2K,QAAQ,QAAQ,YAAY;AAChD;AACA,SAAS3K,OAAO,IAAI4K,QAAQ,QAAQ,QAAQ;AAC5C;AACA,SAAS5K,OAAO,IAAI6K,QAAQ,QAAQ,YAAY;AAChD;AACA,SAAS7K,OAAO,IAAI8K,WAAW,QAAQ,eAAe;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA,SACE9K,OAAO,IAAI+K,UAAU,EACrBC,aAAa,EACbC,OAAO,IAAIC,iBAAiB,QACvB,kBAAkB;AACzB,SACEC,QAAQ,EACRC,UAAU,EACVC,eAAe,EACfC,SAAS,EACTC,UAAU,EACVC,WAAW,EACXC,aAAa,EACbC,YAAY,EACZC,WAAW,EACXC,cAAc,EACdC,gBAAgB,EAChBC,cAAc,EACdC,iBAAiB,EACjBC,aAAa,QACR,aAAa","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","ActionRow","Alert","ALERT_CLOSE_LABEL_TEXT","Annotation","Avatar","AvatarButton","Badge","Breadcrumb","Bubble","Button","ButtonGroup","ButtonToolbar","Chip","CHIP_PGN_CLASS","ChipCarousel","CloseButton","Container","DropdownFilter","Form","RadioControl","CheckboxControl","SwitchControl","FormSwitchSet","FormControl","FormControlDecoratorGroup","FormControlFeedback","FormCheck","FormFile","FormRadio","FormRadioSet","FormRadioSetContext","FormGroup","FormLabel","useCheckboxSetValues","FormText","FormAutosuggest","FormAutosuggestOption","InputGroup","Hyperlink","Icon","IconButton","IconButtonWithTooltip","ModalCloseButton","ModalContext","ModalDialog","ModalLayer","Overlay","OverlayTrigger","Portal","Scrollable","Spinner","Stack","StatefulButton","Toast","TOAST_CLOSE_LABEL_TEXT","TOAST_DELAY","Tooltip","useWindowSize","useToggle","useArrowKeyNavigation","useIndexOfLastVisibleChild","useIsVisible","breakpoints","asInput","Card","CardColumns","CardDeck","CardImg","CardGroup","CardGrid","CardCarousel","CARD_VARIANTS","Carousel","CarouselItem","CAROUSEL_NEXT_LABEL_TEXT","CAROUSEL_PREV_LABEL_TEXT","Layout","Col","Row","Collapse","Collapsible","Dropdown","DropdownToggle","DropdownButton","SplitButton","Fade","IconButtonToggle","Image","Figure","MailtoLink","MAIL_TO_LINK_EXTERNAL_LINK_ALTERNATIVE_TEXT","MAIL_TO_LINK_EXTERNAL_LINK_TITLE","Media","Menu","MenuItem","SelectMenu","SELECT_MENU_DEFAULT_MESSAGE","FullscreenModal","FULLSCREEN_MODAL_CLOSE_LABEL","MarketingModal","StandardModal","STANDARD_MODAL_CLOSE_LABEL","AlertModal","ModalPopup","PopperElement","Nav","NavDropdown","NavItem","NavLink","Navbar","NavbarBrand","NAVBAR_LABEL","PageBanner","PAGE_BANNER_DISMISS_ALT_TEXT","Pagination","PAGINATION_BUTTON_LABEL_PREV","PAGINATION_BUTTON_ICON_BUTTON_NEXT_ALT","PAGINATION_BUTTON_ICON_BUTTON_PREV_ALT","PAGINATION_BUTTON_LABEL_PAGE_OF_COUNT","PAGINATION_BUTTON_LABEL_CURRENT_PAGE","PAGINATION_BUTTON_LABEL_NEXT","PAGINATION_BUTTON_LABEL_PAGE","Popover","PopoverTitle","PopoverContent","ProgressBar","ProductTour","ResponsiveEmbed","SearchField","SEARCH_FIELD_SCREEN_READER_TEXT_LABEL","SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON","SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON","SEARCH_FIELD_BUTTON_TEXT","Sheet","Stepper","Tabs","Tab","TabContainer","TabContent","TabPane","TransitionReplace","ValidationMessage","DataTable","TextFilter","CheckboxFilter","MultiSelectDropdownFilter","TableHeaderCell","TableCell","TableFilters","TABLE_FILTERS_BUTTON_TEXT","TableHeader","TableRow","TablePagination","TablePaginationMinimal","DataTableContext","BulkActions","TableControlBar","TableFooter","CardView","Skeleton","SkeletonTheme","ToggleButton","ToggleButtonGroup","Sticky","SelectableBox","Variant","OverflowScrollContext","OverflowScroll","useOverflowScroll","useOverflowScrollItems","Dropzone","messages","Truncate","ColorPicker","MediaQuery","useMediaQuery","Context","ResponsiveContext","useTable","useFilters","useGlobalFilter","useSortBy","useGroupBy","useExpanded","usePagination","useRowSelect","useRowState","useColumnOrder","useResizeColumns","useBlockLayout","useAbsoluteLayout","useFlexLayout"],"sources":["../src/index.ts"],"sourcesContent":["// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// Things that have types\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\nexport { default as ActionRow } from './ActionRow';\nexport { default as Alert, ALERT_CLOSE_LABEL_TEXT } from './Alert';\nexport { default as Annotation } from './Annotation';\nexport { default as Avatar } from './Avatar';\nexport { default as AvatarButton } from './AvatarButton';\nexport { default as Badge } from './Badge';\nexport { default as Breadcrumb } from './Breadcrumb';\nexport { default as Bubble } from './Bubble';\nexport { default as Button, ButtonGroup, ButtonToolbar } from './Button';\nexport { default as Chip, CHIP_PGN_CLASS } from './Chip';\nexport { default as ChipCarousel } from './ChipCarousel';\nexport { default as CloseButton } from './CloseButton';\nexport { default as Container, type ContainerSize } from './Container';\nexport { default as DropdownFilter } from './DataTable/filters/DropdownFilter';\nexport {\n default as Form,\n RadioControl,\n CheckboxControl,\n SwitchControl,\n FormSwitchSet,\n FormControl,\n FormControlDecoratorGroup,\n FormControlFeedback,\n FormCheck,\n FormFile,\n FormRadio,\n FormRadioSet,\n FormRadioSetContext,\n FormGroup,\n FormLabel,\n useCheckboxSetValues,\n FormText,\n FormAutosuggest,\n FormAutosuggestOption,\n InputGroup,\n} from './Form';\nexport { default as Hyperlink } from './Hyperlink';\nexport { default as Icon } from './Icon';\nexport { default as IconButton, IconButtonWithTooltip } from './IconButton';\nexport { default as ModalCloseButton } from './Modal/ModalCloseButton';\nexport { default as ModalContext } from './Modal/ModalContext';\nexport { default as ModalDialog } from './Modal/ModalDialog';\nexport { default as ModalLayer } from './Modal/ModalLayer';\nexport { default as Overlay, OverlayTrigger } from './Overlay';\nexport { default as Portal } from './Modal/Portal';\nexport { default as Scrollable } from './Scrollable';\nexport { default as Spinner } from './Spinner';\nexport { default as Stack } from './Stack';\nexport { default as StatefulButton } from './StatefulButton';\nexport { default as Toast, TOAST_CLOSE_LABEL_TEXT, TOAST_DELAY } from './Toast';\nexport { default as Tooltip } from './Tooltip';\nexport { default as useWindowSize, type WindowSizeData } from './hooks/useWindowSizeHook';\nexport { default as useToggle, type Toggler, type ToggleHandlers } from './hooks/useToggleHook';\nexport { default as useArrowKeyNavigation, type ArrowKeyNavProps } from './hooks/useArrowKeyNavigationHook';\nexport { default as useIndexOfLastVisibleChild } from './hooks/useIndexOfLastVisibleChildHook';\nexport { default as useIsVisible } from './hooks/useIsVisibleHook';\nexport { default as breakpoints } from './utils/breakpoints';\n\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// Things that don't have types\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as asInput } from './asInput';\n\nexport {\n default as Card,\n CardColumns,\n CardDeck,\n CardImg,\n CardGroup,\n CardGrid,\n CardCarousel,\n CARD_VARIANTS,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Card';\nexport {\n default as Carousel, CarouselItem, CAROUSEL_NEXT_LABEL_TEXT, CAROUSEL_PREV_LABEL_TEXT,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Carousel';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Layout, Col, Row } from './Layout';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Collapse } from './Collapse';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Collapsible } from './Collapsible';\nexport {\n default as Dropdown,\n DropdownToggle,\n DropdownButton,\n SplitButton,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Dropdown';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Fade } from './Fade';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as IconButtonToggle } from './IconButtonToggle';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Image, Figure } from './Image';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MailtoLink, MAIL_TO_LINK_EXTERNAL_LINK_ALTERNATIVE_TEXT, MAIL_TO_LINK_EXTERNAL_LINK_TITLE } from './MailtoLink';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Media } from './Media';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Menu } from './Menu';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MenuItem } from './Menu/MenuItem';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as SelectMenu, SELECT_MENU_DEFAULT_MESSAGE } from './Menu/SelectMenu';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as FullscreenModal, FULLSCREEN_MODAL_CLOSE_LABEL } from './Modal/FullscreenModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MarketingModal } from './Modal/MarketingModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as StandardModal, STANDARD_MODAL_CLOSE_LABEL } from './Modal/StandardModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as AlertModal } from './Modal/AlertModal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ModalPopup } from './Modal/ModalPopup';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as PopperElement } from './Modal/PopperElement';\n\nexport {\n default as Nav,\n NavDropdown,\n NavItem,\n NavLink,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Nav';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Navbar, NavbarBrand, NAVBAR_LABEL } from './Navbar';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as PageBanner, PAGE_BANNER_DISMISS_ALT_TEXT } from './PageBanner';\nexport {\n default as Pagination,\n PAGINATION_BUTTON_LABEL_PREV,\n PAGINATION_BUTTON_ICON_BUTTON_NEXT_ALT,\n PAGINATION_BUTTON_ICON_BUTTON_PREV_ALT,\n PAGINATION_BUTTON_LABEL_PAGE_OF_COUNT,\n PAGINATION_BUTTON_LABEL_CURRENT_PAGE,\n PAGINATION_BUTTON_LABEL_NEXT,\n PAGINATION_BUTTON_LABEL_PAGE,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './Pagination';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Popover, PopoverTitle, PopoverContent } from './Popover';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ProgressBar } from './ProgressBar';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ProductTour } from './ProductTour';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ResponsiveEmbed } from './ResponsiveEmbed';\nexport {\n default as SearchField,\n SEARCH_FIELD_SCREEN_READER_TEXT_LABEL,\n SEARCH_FIELD_SCREEN_READER_TEXT_CLEAR_BUTTON,\n SEARCH_FIELD_SCREEN_READER_TEXT_SUBMIT_BUTTON,\n SEARCH_FIELD_BUTTON_TEXT,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './SearchField';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Sheet } from './Sheet';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Stepper } from './Stepper';\nexport {\n default as Tabs,\n Tab,\n TabContainer,\n TabContent,\n TabPane,\n// @ts-ignore: has yet to be converted to TypeScript\n} from './Tabs';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TransitionReplace } from './TransitionReplace';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ValidationMessage } from './ValidationMessage';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as DataTable } from './DataTable';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TextFilter } from './DataTable/filters/TextFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as CheckboxFilter } from './DataTable/filters/CheckboxFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as MultiSelectDropdownFilter } from './DataTable/filters/MultiSelectDropdownFilter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableHeaderCell } from './DataTable/TableHeaderCell';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableCell } from './DataTable/TableCell';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableFilters, TABLE_FILTERS_BUTTON_TEXT } from './DataTable/TableFilters';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableHeader } from './DataTable/TableHeaderRow';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableRow } from './DataTable/TableRow';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TablePagination } from './DataTable/TablePagination';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TablePaginationMinimal } from './DataTable/TablePaginationMinimal';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as DataTableContext } from './DataTable/DataTableContext';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as BulkActions } from './DataTable/BulkActions';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableControlBar } from './DataTable/TableControlBar';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as TableFooter } from './DataTable/TableFooter';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as CardView } from './DataTable/CardView';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Skeleton, SkeletonTheme } from './Skeleton/index';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ToggleButton, ToggleButtonGroup } from './ToggleButton';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Sticky } from './Sticky';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as SelectableBox } from './SelectableBox';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Variant } from './utils/constants';\nexport {\n OverflowScrollContext,\n OverflowScroll,\n useOverflowScroll,\n useOverflowScrollItems,\n // @ts-ignore: has yet to be converted to TypeScript\n} from './OverflowScroll';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Dropzone } from './Dropzone';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as messages } from './i18n';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as Truncate } from './Truncate';\n// @ts-ignore: has yet to be converted to TypeScript\nexport { default as ColorPicker } from './ColorPicker';\n\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\n// Pass through any needed whole third-party library functionality\n// useTable for example is needed to use the DataTable component seamlessly\n// rather than setting a peer dependency in this project, we opt to tightly\n// couple these dependencies by passing through needed functionality.\n// // // // // // // // // // // // // // // // // // // // // // // // // // //\nexport {\n default as MediaQuery,\n useMediaQuery,\n Context as ResponsiveContext,\n} from 'react-responsive';\nexport {\n useTable,\n useFilters,\n useGlobalFilter,\n useSortBy,\n useGroupBy,\n useExpanded,\n usePagination,\n useRowSelect,\n useRowState,\n useColumnOrder,\n useResizeColumns,\n useBlockLayout,\n useAbsoluteLayout,\n useFlexLayout,\n} from 'react-table';\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,OAAO,IAAIC,SAAS,QAAQ,aAAa;AAClD,SAASD,OAAO,IAAIE,KAAK,EAAEC,sBAAsB,QAAQ,SAAS;AAClE,SAASH,OAAO,IAAII,UAAU,QAAQ,cAAc;AACpD,SAASJ,OAAO,IAAIK,MAAM,QAAQ,UAAU;AAC5C,SAASL,OAAO,IAAIM,YAAY,QAAQ,gBAAgB;AACxD,SAASN,OAAO,IAAIO,KAAK,QAAQ,SAAS;AAC1C,SAASP,OAAO,IAAIQ,UAAU,QAAQ,cAAc;AACpD,SAASR,OAAO,IAAIS,MAAM,QAAQ,UAAU;AAC5C,SAAST,OAAO,IAAIU,MAAM,EAAEC,WAAW,EAAEC,aAAa,QAAQ,UAAU;AACxE,SAASZ,OAAO,IAAIa,IAAI,EAAEC,cAAc,QAAQ,QAAQ;AACxD,SAASd,OAAO,IAAIe,YAAY,QAAQ,gBAAgB;AACxD,SAASf,OAAO,IAAIg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B;AAC1D;AACA,SAAS/J,OAAO,IAAIgK,QAAQ,EAAEC,aAAa,QAAQ,kBAAkB;AACrE;AACA,SAASjK,OAAO,IAAIkK,YAAY,EAAEC,iBAAiB,QAAQ,gBAAgB;AAC3E;AACA,SAASnK,OAAO,IAAIoK,MAAM,QAAQ,UAAU;AAC5C;AACA,SAASpK,OAAO,IAAIqK,aAAa,QAAQ,iBAAiB;AAC1D;AACA,SAASrK,OAAO,IAAIsK,OAAO,QAAQ,mBAAmB;AACtD,SACEC,qBAAqB,EACrBC,cAAc,EACdC,iBAAiB,EACjBC;AACA;AAAA,OACK,kBAAkB;AACzB;AACA,SAAS1K,OAAO,IAAI2K,QAAQ,QAAQ,YAAY;AAChD;AACA,SAAS3K,OAAO,IAAI4K,QAAQ,QAAQ,QAAQ;AAC5C;AACA,SAAS5K,OAAO,IAAI6K,QAAQ,QAAQ,YAAY;AAChD;AACA,SAAS7K,OAAO,IAAI8K,WAAW,QAAQ,eAAe;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA,SACE9K,OAAO,IAAI+K,UAAU,EACrBC,aAAa,EACbC,OAAO,IAAIC,iBAAiB,QACvB,kBAAkB;AACzB,SACEC,QAAQ,EACRC,UAAU,EACVC,eAAe,EACfC,SAAS,EACTC,UAAU,EACVC,WAAW,EACXC,aAAa,EACbC,YAAY,EACZC,WAAW,EACXC,cAAc,EACdC,gBAAgB,EAChBC,cAAc,EACdC,iBAAiB,EACjBC,aAAa,QACR,aAAa","ignoreList":[]}
|
package/dist/theme-urls.json
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"themeUrls": {
|
|
3
|
+
"core": {
|
|
4
|
+
"paths": {
|
|
5
|
+
"default": "./core.css",
|
|
6
|
+
"minified": "./core.min.css"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
3
9
|
"defaults": {
|
|
4
10
|
"light": "light"
|
|
5
11
|
},
|
|
@@ -10,12 +16,6 @@
|
|
|
10
16
|
"minified": "./light.min.css"
|
|
11
17
|
}
|
|
12
18
|
}
|
|
13
|
-
},
|
|
14
|
-
"core": {
|
|
15
|
-
"paths": {
|
|
16
|
-
"default": "./core.css",
|
|
17
|
-
"minified": "./core.min.css"
|
|
18
|
-
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -3,6 +3,7 @@ const path = require('path');
|
|
|
3
3
|
const { spawn } = require('node:child_process');
|
|
4
4
|
const os = require('os');
|
|
5
5
|
const sass = require('sass');
|
|
6
|
+
const postCSS = require('postcss');
|
|
6
7
|
|
|
7
8
|
const buildScssCommand = require('../build-scss');
|
|
8
9
|
const { updateParagonThemeOutput } = require('../build-scss');
|
|
@@ -21,8 +22,25 @@ jest.mock('ora', () => jest.fn(() => ({
|
|
|
21
22
|
start: jest.fn().mockReturnThis(),
|
|
22
23
|
succeed: jest.fn().mockReturnThis(),
|
|
23
24
|
fail: jest.fn().mockReturnThis(),
|
|
25
|
+
stop: jest.fn().mockReturnThis(),
|
|
24
26
|
})));
|
|
25
27
|
|
|
28
|
+
const processedResult = {
|
|
29
|
+
css: '.processed { color: black; }',
|
|
30
|
+
map: {
|
|
31
|
+
toString: () => 'minified sourcemap content',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// The minify pass is the only `process` call that asks for an external source map.
|
|
36
|
+
const isMinifyCall = (options) => options.map && options.map.inline === false;
|
|
37
|
+
|
|
38
|
+
const mockPostCss = (processImpl) => {
|
|
39
|
+
postCSS.mockImplementation(() => ({ process: jest.fn(processImpl) }));
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const writtenFiles = () => fs.writeFileSync.mock.calls.map(([filePath]) => filePath);
|
|
43
|
+
|
|
26
44
|
describe('updateParagonThemeOutput', () => {
|
|
27
45
|
it('should add core theme correctly', () => {
|
|
28
46
|
const input = {
|
|
@@ -104,6 +122,8 @@ describe('updateParagonThemeOutput', () => {
|
|
|
104
122
|
describe('buildScssCommand', () => {
|
|
105
123
|
beforeEach(() => {
|
|
106
124
|
jest.clearAllMocks();
|
|
125
|
+
mockPostCss(() => Promise.resolve(processedResult));
|
|
126
|
+
fs.writeFileSync.mockImplementation(() => {});
|
|
107
127
|
fs.existsSync.mockReturnValue(false);
|
|
108
128
|
fs.readdirSync.mockReturnValue([
|
|
109
129
|
{ name: 'light', isDirectory: () => true },
|
|
@@ -117,7 +137,7 @@ describe('buildScssCommand', () => {
|
|
|
117
137
|
});
|
|
118
138
|
});
|
|
119
139
|
|
|
120
|
-
it('should compile core and theme stylesheets', () => {
|
|
140
|
+
it('should compile core and theme stylesheets', async () => {
|
|
121
141
|
const args = [
|
|
122
142
|
'--corePath=styles/core.scss',
|
|
123
143
|
'--themesPath=styles/themes',
|
|
@@ -125,7 +145,7 @@ describe('buildScssCommand', () => {
|
|
|
125
145
|
'--defaultThemeVariants=light',
|
|
126
146
|
];
|
|
127
147
|
|
|
128
|
-
buildScssCommand(args);
|
|
148
|
+
await buildScssCommand(args);
|
|
129
149
|
|
|
130
150
|
expect(sass.compile).toHaveBeenCalledWith(
|
|
131
151
|
expect.stringContaining('core.scss'),
|
|
@@ -160,6 +180,74 @@ describe('buildScssCommand', () => {
|
|
|
160
180
|
expect.objectContaining({ withFileTypes: true }),
|
|
161
181
|
);
|
|
162
182
|
});
|
|
183
|
+
it('should resolve only after every stylesheet, minified file and source map is written', async () => {
|
|
184
|
+
mockPostCss((css, options) => {
|
|
185
|
+
if (isMinifyCall(options)) {
|
|
186
|
+
return new Promise((resolve) => { setTimeout(() => resolve(processedResult), 20); });
|
|
187
|
+
}
|
|
188
|
+
return Promise.resolve(processedResult);
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
await buildScssCommand(['--outDir=dist']);
|
|
192
|
+
|
|
193
|
+
expect(writtenFiles()).toEqual(expect.arrayContaining(
|
|
194
|
+
['core', 'light', 'dark'].flatMap((name) => [
|
|
195
|
+
`dist/${name}.css`,
|
|
196
|
+
`dist/${name}.min.css`,
|
|
197
|
+
`dist/${name}.css.map`,
|
|
198
|
+
]),
|
|
199
|
+
));
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
it('should list core and every theme variant in theme-urls.json', async () => {
|
|
203
|
+
const files = {};
|
|
204
|
+
fs.writeFileSync.mockImplementation((filePath, content) => { files[filePath] = content; });
|
|
205
|
+
fs.existsSync.mockImplementation((filePath) => filePath in files);
|
|
206
|
+
fs.readFileSync.mockImplementation((filePath) => files[filePath]);
|
|
207
|
+
|
|
208
|
+
await buildScssCommand(['--outDir=dist', '--defaultThemeVariants=light']);
|
|
209
|
+
|
|
210
|
+
const { themeUrls } = JSON.parse(files['dist/theme-urls.json']);
|
|
211
|
+
expect(themeUrls.core.paths.minified).toBe('./core.min.css');
|
|
212
|
+
expect(Object.keys(themeUrls.variants)).toEqual(['light', 'dark']);
|
|
213
|
+
expect(themeUrls.defaults).toEqual({ light: 'light' });
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
it('should reject when Sass compilation fails', async () => {
|
|
217
|
+
sass.compile.mockImplementation(() => { throw new Error('Undefined variable.'); });
|
|
218
|
+
|
|
219
|
+
await expect(buildScssCommand(['--outDir=dist'])).rejects.toThrow('Undefined variable.');
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
it('should reject when PostCSS processing fails', async () => {
|
|
223
|
+
mockPostCss(() => Promise.reject(new Error('PostCSS failed')));
|
|
224
|
+
|
|
225
|
+
await expect(buildScssCommand(['--outDir=dist'])).rejects.toThrow('PostCSS failed');
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
it('should reject when minification fails', async () => {
|
|
229
|
+
mockPostCss((css, options) => (
|
|
230
|
+
isMinifyCall(options) ? Promise.reject(new Error('Minify failed')) : Promise.resolve(processedResult)
|
|
231
|
+
));
|
|
232
|
+
|
|
233
|
+
await expect(buildScssCommand(['--outDir=dist'])).rejects.toThrow('Minify failed');
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
it('should reject when the output directory does not exist', async () => {
|
|
237
|
+
fs.writeFileSync.mockImplementation((filePath) => {
|
|
238
|
+
throw new Error(`ENOENT: no such file or directory, open '${filePath}'`);
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
await expect(buildScssCommand(['--outDir=missing'])).rejects.toThrow('ENOENT');
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
it('should not build theme variants after the core stylesheet fails', async () => {
|
|
245
|
+
mockPostCss(() => Promise.reject(new Error('PostCSS failed')));
|
|
246
|
+
|
|
247
|
+
await expect(buildScssCommand(['--outDir=dist'])).rejects.toThrow();
|
|
248
|
+
|
|
249
|
+
expect(sass.compile).toHaveBeenCalledTimes(1);
|
|
250
|
+
});
|
|
163
251
|
});
|
|
164
252
|
|
|
165
253
|
describe('SIGINT handling', () => {
|
package/lib/build-scss.js
CHANGED
|
@@ -75,6 +75,7 @@ const updateParagonThemeOutput = ({
|
|
|
75
75
|
* @param {string} outDir - indicates where to output compiled files
|
|
76
76
|
* @param {boolean} isThemeVariant - indicates whether the stylesheet is a theme variant
|
|
77
77
|
* @param {boolean} isDefaultThemeVariant - indicates whether the stylesheet is a default theme variant
|
|
78
|
+
* @returns {Promise<void>} Resolves once all files are written; rejects if any step fails.
|
|
78
79
|
*/
|
|
79
80
|
const compileAndWriteStyleSheets = ({
|
|
80
81
|
name,
|
|
@@ -109,17 +110,17 @@ const compileAndWriteStyleSheets = ({
|
|
|
109
110
|
];
|
|
110
111
|
|
|
111
112
|
const postCSSCompilation = ora(`Compilation for ${capitalize(name)} stylesheet...`).start();
|
|
112
|
-
postCSS(commonPostCssPlugins)
|
|
113
|
+
return postCSS(commonPostCssPlugins)
|
|
113
114
|
.process(compiledStyleSheet.css, { from: stylesPath, map: false })
|
|
114
115
|
.then((result) => {
|
|
115
116
|
postCSSCompilation.succeed(`Successfully compiled ${capitalize(name)} theme stylesheet`);
|
|
116
117
|
fs.writeFileSync(`${outDir}/${name}.css`, result.css);
|
|
117
|
-
postCSS([postCSSMinify()])
|
|
118
|
-
.process(result.css, { from: `${name}.css`, map: { inline: false } })
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
return postCSS([postCSSMinify()])
|
|
119
|
+
.process(result.css, { from: `${name}.css`, map: { inline: false } });
|
|
120
|
+
})
|
|
121
|
+
.then((minifiedResult) => {
|
|
122
|
+
fs.writeFileSync(`${outDir}/${name}.css.map`, minifiedResult.map.toString());
|
|
123
|
+
fs.writeFileSync(`${outDir}/${name}.min.css`, minifiedResult.css);
|
|
123
124
|
|
|
124
125
|
const hasExistingParagonThemeOutput = fs.existsSync(`${outDir}/${paragonThemeOutputFilename}`);
|
|
125
126
|
let paragonThemeOutput;
|
|
@@ -147,7 +148,11 @@ const compileAndWriteStyleSheets = ({
|
|
|
147
148
|
ora().succeed(chalk.underline.bold.green(`Successfully built stylesheet for ${capitalize(name)} theme!\n`));
|
|
148
149
|
})
|
|
149
150
|
.catch((error) => {
|
|
151
|
+
if (postCSSCompilation.isSpinning) {
|
|
152
|
+
postCSSCompilation.stop();
|
|
153
|
+
}
|
|
150
154
|
ora().fail(chalk.bold(`Failed to build stylesheets for ${capitalize(name)}: ${error.message}`));
|
|
155
|
+
throw error;
|
|
151
156
|
});
|
|
152
157
|
};
|
|
153
158
|
|
|
@@ -156,7 +161,7 @@ const compileAndWriteStyleSheets = ({
|
|
|
156
161
|
*
|
|
157
162
|
* @param {Array<string>} commandArgs - Command line arguments for building SCSS stylesheets.
|
|
158
163
|
*/
|
|
159
|
-
function buildScssCommand(commandArgs) {
|
|
164
|
+
async function buildScssCommand(commandArgs) {
|
|
160
165
|
const defaultArgs = {
|
|
161
166
|
corePath: path.resolve(process.cwd(), 'styles/scss/core/core.scss'),
|
|
162
167
|
excludeCore: false,
|
|
@@ -175,7 +180,7 @@ function buildScssCommand(commandArgs) {
|
|
|
175
180
|
|
|
176
181
|
// Core CSS
|
|
177
182
|
if (!excludeCore) {
|
|
178
|
-
compileAndWriteStyleSheets({
|
|
183
|
+
await compileAndWriteStyleSheets({
|
|
179
184
|
name: 'core',
|
|
180
185
|
stylesPath: corePath,
|
|
181
186
|
outDir,
|
|
@@ -186,8 +191,10 @@ function buildScssCommand(commandArgs) {
|
|
|
186
191
|
const themeDirs = fs.readdirSync(themesPath, { withFileTypes: true })
|
|
187
192
|
.filter((item) => item.isDirectory());
|
|
188
193
|
|
|
194
|
+
// Built one at a time so the first failure stops the build.
|
|
189
195
|
for (const themeDir of themeDirs) {
|
|
190
|
-
|
|
196
|
+
// eslint-disable-next-line no-await-in-loop
|
|
197
|
+
await compileAndWriteStyleSheets({
|
|
191
198
|
name: themeDir.name,
|
|
192
199
|
stylesPath: `${themesPath}/${themeDir.name}/index.css`,
|
|
193
200
|
outDir,
|
package/package.json
CHANGED
|
@@ -1,20 +1,38 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
|
|
1
|
+
import React, {
|
|
2
|
+
useContext, forwardRef, ForwardedRef, ReactNode,
|
|
3
|
+
} from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import Skeleton from 'react-loading-skeleton';
|
|
5
6
|
import CardContext from './CardContext';
|
|
6
7
|
|
|
7
8
|
const IS_LOADING_HEIGHT_VALUE = 18;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
interface CardFooterProps {
|
|
11
|
+
/** Specifies contents of the component. */
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
/** Specifies class name to append to the base element. */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Optional node to display near actions. Should be either a plain text or an element containing text (e.g. link). */
|
|
16
|
+
textElement?: ReactNode;
|
|
17
|
+
/** Specifies whether to use stacked variant. */
|
|
18
|
+
isStacked?: boolean;
|
|
19
|
+
/** Specifies which orientation to use. This prop will override context value if provided. */
|
|
20
|
+
orientation?: 'horizontal' | 'vertical';
|
|
21
|
+
/** Specifies height of skeleton in loading state. */
|
|
22
|
+
skeletonHeight?: number;
|
|
23
|
+
/** Specifies width of skeleton in loading state. */
|
|
24
|
+
skeletonWidth?: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const CardFooter = forwardRef(({
|
|
28
|
+
children = null,
|
|
11
29
|
className,
|
|
12
|
-
isStacked,
|
|
30
|
+
isStacked = false,
|
|
13
31
|
textElement,
|
|
14
|
-
skeletonHeight,
|
|
32
|
+
skeletonHeight = IS_LOADING_HEIGHT_VALUE,
|
|
15
33
|
skeletonWidth,
|
|
16
34
|
orientation,
|
|
17
|
-
}, ref) => {
|
|
35
|
+
}: CardFooterProps, ref: ForwardedRef<HTMLDivElement>) => {
|
|
18
36
|
const { orientation: cardOrientation, isLoading } = useContext(CardContext);
|
|
19
37
|
const footerOrientation = orientation || cardOrientation;
|
|
20
38
|
const wrapperClassName = `pgn__card-footer ${footerOrientation}${isStacked ? '-stacked' : ''}`;
|
|
@@ -40,31 +58,4 @@ const CardFooter = React.forwardRef(({
|
|
|
40
58
|
);
|
|
41
59
|
});
|
|
42
60
|
|
|
43
|
-
CardFooter.propTypes = {
|
|
44
|
-
/** Specifies contents of the component. */
|
|
45
|
-
children: PropTypes.node,
|
|
46
|
-
/** Specifies class name to append to the base element. */
|
|
47
|
-
className: PropTypes.string,
|
|
48
|
-
/** Optional node to display near actions. Should be either a plain text or an element containing text (e.g. link). */
|
|
49
|
-
textElement: PropTypes.node,
|
|
50
|
-
/** Specifies whether to use stacked variant. */
|
|
51
|
-
isStacked: PropTypes.bool,
|
|
52
|
-
/** Specifies which orientation to use. This prop will override context value if provided. */
|
|
53
|
-
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
54
|
-
/** Specifies height of skeleton in loading state. */
|
|
55
|
-
skeletonHeight: PropTypes.number,
|
|
56
|
-
/** Specifies width of skeleton in loading state. */
|
|
57
|
-
skeletonWidth: PropTypes.number,
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
CardFooter.defaultProps = {
|
|
61
|
-
children: null,
|
|
62
|
-
className: undefined,
|
|
63
|
-
textElement: undefined,
|
|
64
|
-
isStacked: false,
|
|
65
|
-
orientation: undefined,
|
|
66
|
-
skeletonHeight: IS_LOADING_HEIGHT_VALUE,
|
|
67
|
-
skeletonWidth: undefined,
|
|
68
|
-
};
|
|
69
|
-
|
|
70
61
|
export default CardFooter;
|
|
@@ -1,20 +1,38 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
|
|
1
|
+
import React, {
|
|
2
|
+
useContext, forwardRef, ForwardedRef, ReactNode,
|
|
3
|
+
} from 'react';
|
|
3
4
|
import classNames from 'classnames';
|
|
4
5
|
import Skeleton from 'react-loading-skeleton';
|
|
5
6
|
import CardContext from './CardContext';
|
|
6
7
|
|
|
7
8
|
const SKELETON_HEIGHT_VALUE = 100;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
interface CardSectionProps {
|
|
11
|
+
/** Specifies class name to append to the base element. */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Specifies contents of the component. */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
/** Specifies title of the `Section`. */
|
|
16
|
+
title?: ReactNode;
|
|
17
|
+
/** Specifies node to render on the bottom right of the `Section` (i.e. `ActionRow`). */
|
|
18
|
+
actions?: ReactNode;
|
|
19
|
+
/** Specifies whether to display `Section` with muted styling. */
|
|
20
|
+
muted?: boolean;
|
|
21
|
+
/** Specifies height of skeleton in loading state. */
|
|
22
|
+
skeletonHeight?: number;
|
|
23
|
+
/** Specifies width of skeleton in loading state. */
|
|
24
|
+
skeletonWidth?: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const CardSection = forwardRef(({
|
|
10
28
|
className,
|
|
11
|
-
children,
|
|
29
|
+
children = null,
|
|
12
30
|
title,
|
|
13
31
|
actions,
|
|
14
|
-
muted,
|
|
15
|
-
skeletonHeight,
|
|
32
|
+
muted = false,
|
|
33
|
+
skeletonHeight = SKELETON_HEIGHT_VALUE,
|
|
16
34
|
skeletonWidth,
|
|
17
|
-
}, ref) => {
|
|
35
|
+
}: CardSectionProps, ref: ForwardedRef<HTMLDivElement>) => {
|
|
18
36
|
const { isLoading } = useContext(CardContext);
|
|
19
37
|
|
|
20
38
|
if (isLoading) {
|
|
@@ -41,31 +59,4 @@ const CardSection = React.forwardRef(({
|
|
|
41
59
|
);
|
|
42
60
|
});
|
|
43
61
|
|
|
44
|
-
CardSection.propTypes = {
|
|
45
|
-
/** Specifies class name to append to the base element. */
|
|
46
|
-
className: PropTypes.string,
|
|
47
|
-
/** Specifies contents of the component. */
|
|
48
|
-
children: PropTypes.node,
|
|
49
|
-
/** Specifies title of the `Section`. */
|
|
50
|
-
title: PropTypes.node,
|
|
51
|
-
/** Specifies node to render on the bottom right of the `Section` (i.e. `ActionRow`). */
|
|
52
|
-
actions: PropTypes.node,
|
|
53
|
-
/** Specifies whether to display `Section` with muted styling. */
|
|
54
|
-
muted: PropTypes.bool,
|
|
55
|
-
/** Specifies height of skeleton in loading state. */
|
|
56
|
-
skeletonHeight: PropTypes.number,
|
|
57
|
-
/** Specifies width of skeleton in loading state. */
|
|
58
|
-
skeletonWidth: PropTypes.number,
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
CardSection.defaultProps = {
|
|
62
|
-
children: null,
|
|
63
|
-
className: undefined,
|
|
64
|
-
title: undefined,
|
|
65
|
-
actions: undefined,
|
|
66
|
-
muted: false,
|
|
67
|
-
skeletonHeight: SKELETON_HEIGHT_VALUE,
|
|
68
|
-
skeletonWidth: undefined,
|
|
69
|
-
};
|
|
70
|
-
|
|
71
62
|
export default CardSection;
|